-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(card): Added the
Card
design component
- Loading branch information
1 parent
00ce373
commit 7bd2773
Showing
25 changed files
with
8,594 additions
and
3,385 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"extends": ["../../.eslintrc.base.json"], | ||
"ignorePatterns": ["!**/*", "node_modules/*"], | ||
"overrides": [ | ||
{ | ||
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"], | ||
"parserOptions": { | ||
"project": ["components/card/tsconfig.*?.json"] | ||
}, | ||
"rules": {} | ||
}, | ||
{ | ||
"files": ["*.ts", "*.tsx"], | ||
"rules": {} | ||
}, | ||
{ | ||
"files": ["*.js", "*.jsx"], | ||
"rules": {} | ||
}, | ||
{ | ||
"files": ["*.json"], | ||
"parser": "jsonc-eslint-parser", | ||
"rules": { | ||
"@nx/dependency-checks": [ | ||
"error", | ||
{ | ||
"buildTargets": ["build"], | ||
"ignoredFiles": [ | ||
"{projectRoot}/esbuild.config.{js,ts,mjs,mts}", | ||
"{projectRoot}/jest.config.ts" | ||
], | ||
"checkMissingDependencies": true, | ||
"checkObsoleteDependencies": true, | ||
"checkVersionMismatches": false | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<!-- START header --> | ||
<!-- END header --> | ||
|
||
# card | ||
|
||
A package containing the Card component used by Storm Software | ||
|
||
<!-- START doctoc --> | ||
<!-- END doctoc --> | ||
|
||
## Installing | ||
|
||
Using [pnpm](http://pnpm.io): | ||
|
||
```bash | ||
pnpm add -D @cyclone-ui/card | ||
``` | ||
|
||
<details> | ||
<summary>Using npm</summary> | ||
|
||
```bash | ||
npm install -D @cyclone-ui/card | ||
``` | ||
|
||
</details> | ||
|
||
<details> | ||
<summary>Using yarn</summary> | ||
|
||
```bash | ||
yarn add -D @cyclone-ui/card | ||
``` | ||
|
||
</details> | ||
|
||
## Reduced Package Size | ||
|
||
This project uses [tsup](https://tsup.egoist.dev/) to package the source code due to its ability to remove unused code and ship smaller javascript files thanks to code splitting. This helps to greatly reduce the size of the package and to make it easier to use in other projects. | ||
|
||
## Development | ||
|
||
This project is built using [Nx](https://nx.dev). As a result, many of the usual commands are available to assist in development. | ||
|
||
### Building | ||
|
||
Run `nx build card` to build the library. | ||
|
||
### Running unit tests | ||
|
||
Run `nx test card` to execute the unit tests via [Jest](https://jestjs.io). | ||
|
||
### Linting | ||
|
||
Run `nx lint card` to run [ESLint](https://eslint.org/) on the package. | ||
|
||
<!-- START footer --> | ||
<!-- END footer --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { getJestConfig } from '@storm-software/testing-tools'; | ||
|
||
export default getJestConfig('components/card', true, 'card'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
"name": "@cyclone-ui/card", | ||
"version": "0.0.1", | ||
"private": false, | ||
"description": "A repository containing the core front-end components used by Storm Software across many platforms", | ||
"repository": { | ||
"type": "github", | ||
"url": "https://github.com/storm-software/cyclone-ui.git", | ||
"directory": "components/card" | ||
}, | ||
"sideEffects": [ | ||
"*.css" | ||
], | ||
"type": "module", | ||
"exports": { | ||
"./package.json": "./package.json", | ||
".": { | ||
"types": "./types/index.d.ts", | ||
"import": "./dist/esm/index.mjs", | ||
"require": "./dist/cjs/index.js", | ||
"react-native": "./dist/cjs/index.native.js" | ||
} | ||
}, | ||
"main": "dist/cjs", | ||
"module": "dist/esm", | ||
"types": "./types/index.d.ts", | ||
"files": [ | ||
"types", | ||
"src", | ||
"dist" | ||
], | ||
"dependencies": { | ||
"@tamagui/core": "^1.97.1", | ||
"@tamagui/font-size": "^1.97.1", | ||
"@tamagui/get-font-sized": "^1.97.1", | ||
"@tamagui/helpers": "^1.97.1", | ||
"@tamagui/helpers-tamagui": "^1.97.1", | ||
"@tamagui/linear-gradient": "^1.97.1", | ||
"@tamagui/stacks": "^1.97.1", | ||
"@tamagui/text": "^1.97.1", | ||
"@tamagui/web": "^1.97.1" | ||
}, | ||
"devDependencies": { | ||
"@tamagui/lucide-icons": "^1.97.1", | ||
"react": "^18.2.0", | ||
"react-native": "0.73.2", | ||
"react-native-svg": "^15.2.0" | ||
}, | ||
"peerDependencies": { | ||
"react": "^18.2.0", | ||
"react-native": "0.73.2" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"module:jsx": "dist/jsx" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"name": "card", | ||
"$schema": "../../node_modules/nx/schemas/project-schema.json", | ||
"projectType": "library", | ||
"sourceRoot": "components/card/src", | ||
"targets": { | ||
"build": { | ||
"cache": true, | ||
"executor": "@cyclone-ui/nx:build", | ||
"inputs": ["default", "^production"], | ||
"dependsOn": ["^build"], | ||
"output": "{options.outputPath}", | ||
"options": { | ||
"outputPath": "dist/components/card", | ||
"tsConfig": "components/card/tsconfig.json", | ||
"project": "components/card/package.json", | ||
"defaultConfiguration": "production", | ||
"assets": [ | ||
{ | ||
"input": "components/card", | ||
"glob": "*.md", | ||
"output": "/" | ||
}, | ||
{ | ||
"input": "", | ||
"glob": "LICENSE", | ||
"output": "/" | ||
} | ||
] | ||
}, | ||
"configurations": { | ||
"production": { | ||
"debug": false, | ||
"verbose": false | ||
}, | ||
"development": { | ||
"debug": true, | ||
"verbose": true | ||
} | ||
} | ||
}, | ||
"nx-release-publish": { | ||
"executor": "@storm-software/workspace-tools:npm-publish" | ||
} | ||
} | ||
} |
Oops, something went wrong.