wca-designsystem 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +20 -20
- package/README.md +73 -181
- package/package.json +111 -104
- package/src/assets/imagens/icons/FlexaPassos.svg +3 -3
- package/src/assets/imagens/icons/SetaAbaixo.svg +13 -0
- package/src/assets/imagens/novos-icones/STI_logo_Cor.svg +9 -9
- package/src/components/atomos/AjudaIcone/index.tsx +5 -1
- package/src/components/atomos/BadgeModulos/Badge.test.tsx +12 -0
- package/src/components/atomos/BadgeModulos/BadgeModulos.stories.tsx +21 -0
- package/src/components/atomos/BadgeModulos/index.tsx +33 -0
- package/src/components/atomos/BadgeModulos/styles.ts +16 -0
- package/src/components/atomos/BarraDeProgresso/BarraDeProgresso.stories.tsx +20 -0
- package/src/components/atomos/BarraDeProgresso/BarraDeProgresso.test.tsx +12 -0
- package/src/components/atomos/BarraDeProgresso/index.tsx +81 -0
- package/src/components/atomos/BarraDeProgresso/styles.ts +43 -0
- package/src/components/atomos/Botao/Botao.stories.tsx +3 -0
- package/src/components/atomos/Botao/Botao.test.tsx +3 -6
- package/src/components/atomos/Botao/index.tsx +19 -2
- package/src/components/atomos/Botao/styles.ts +65 -7
- package/src/components/atomos/HoverPopUp/index.tsx +2 -1
- package/src/components/atomos/Icone/index.tsx +56 -54
- package/src/components/atomos/IconeBotao/IconeBotao.stories.tsx +14 -2
- package/src/components/atomos/IconeBotao/IconeBotao.test.tsx +11 -3
- package/src/components/atomos/IconeBotao/index.tsx +19 -3
- package/src/components/atomos/IconeBotao/styles.ts +44 -10
- package/src/components/atomos/InputDeArquivo/InputDeArquivo.stories.tsx +16 -0
- package/src/components/atomos/InputDeArquivo/InputDeArquivo.test.tsx +12 -0
- package/src/components/atomos/InputDeArquivo/index.tsx +39 -0
- package/src/components/atomos/InputDeArquivo/styles.ts +47 -0
- package/src/components/atomos/InputDeData/InputDeData.stories.tsx +17 -0
- package/src/components/atomos/InputDeData/InputDeData.test.tsx +13 -0
- package/src/components/atomos/InputDeData/index.tsx +25 -0
- package/src/components/atomos/InputDeData/styles.ts +16 -0
- package/src/components/atomos/InputDeTexto/InputDeTexto.stories.tsx +2 -0
- package/src/components/atomos/InputDeTexto/index.tsx +59 -11
- package/src/components/atomos/InputDeTexto/styles.ts +41 -13
- package/src/components/atomos/LinkNavbar/index.tsx +4 -2
- package/src/components/atomos/MultiSelect/MultiSelect.stories.tsx +14 -0
- package/src/components/atomos/MultiSelect/MultiSelect.test.tsx +14 -0
- package/src/components/atomos/MultiSelect/index.tsx +33 -0
- package/src/components/atomos/MultiSelect/styles.ts +14 -0
- package/src/components/atomos/NavbarTituloHeader/index.tsx +13 -2
- package/src/components/atomos/NavbarTituloHeader/styles.ts +16 -4
- package/src/components/atomos/Notificacoes/Notificacoes.test.tsx +14 -0
- package/src/components/atomos/Select/index.tsx +26 -16
- package/src/components/atomos/Select/styles.ts +33 -14
- package/src/components/atomos/UsuarioNotification/styles.ts +3 -3
- package/src/components/atomos/Versao/Versao.test.tsx +1 -1
- package/src/components/atomos/Versao/index.tsx +2 -2
- package/src/components/modules/Cabecalho/Cabecalho.stories.tsx +1 -0
- package/src/components/modules/Cabecalho/index.tsx +20 -78
- package/src/components/modules/Cabecalho/styles.ts +12 -6
- package/src/components/modules/ConchaAplicacao/ConchaAplicacao.stories.tsx +11 -0
- package/src/components/modules/ConchaAplicacao/ConchaAplicacao.test.tsx +13 -2
- package/src/components/modules/ConchaAplicacao/index.tsx +51 -40
- package/src/components/modules/ConchaAplicacao/styles.ts +9 -7
- package/src/components/modules/Navbar/Navbar.stories.tsx +5 -0
- package/src/components/modules/Navbar/Navbar.test.tsx +19 -2
- package/src/components/modules/Navbar/index.tsx +60 -37
- package/src/components/modules/Navbar/styles.ts +18 -14
- package/src/components/modules/Tabs/Tabs.stories.tsx +38 -0
- package/src/components/modules/Tabs/index.tsx +68 -0
- package/src/components/modules/Tabs/styles.ts +45 -0
- package/src/components/molecules/CardDestaque/CardDestaque.stories.tsx +7 -1
- package/src/components/molecules/CardDestaque/index.tsx +61 -17
- package/src/components/molecules/CardDestaque/styles.ts +22 -13
- package/src/components/molecules/CardInicial/CardInicial.stories.tsx +21 -4
- package/src/components/molecules/CardInicial/CardInicial.test.tsx +2 -3
- package/src/components/molecules/CardInicial/index.tsx +45 -10
- package/src/components/molecules/CardInicial/styles.ts +23 -5
- package/src/components/molecules/Graficos/Area/Area.stories.tsx +94 -0
- package/src/components/molecules/Graficos/Area/Area.test.tsx +102 -0
- package/src/components/molecules/Graficos/Area/index.tsx +76 -0
- package/src/components/molecules/Graficos/Area/styles.ts +53 -0
- package/src/components/molecules/Graficos/Barras/Barras.stories.tsx +104 -0
- package/src/components/molecules/Graficos/Barras/Barras.test.tsx +99 -0
- package/src/components/molecules/Graficos/Barras/index.tsx +28 -0
- package/src/components/molecules/Graficos/Donut/Donut.stories.tsx +42 -0
- package/src/components/molecules/Graficos/Donut/Donut.test.tsx +57 -0
- package/src/components/molecules/Graficos/Donut/index.tsx +27 -0
- package/src/components/molecules/Graficos/Donut/styles.ts +34 -0
- package/src/components/molecules/Graficos/Linhas/Linhas.stories.tsx +63 -0
- package/src/components/molecules/Graficos/Linhas/Linhas.test.tsx +99 -0
- package/src/components/molecules/Graficos/Linhas/index.tsx +29 -0
- package/src/components/molecules/GrupoDeLinks/LinkGroup.test.tsx +1 -1
- package/src/components/molecules/GrupoDeLinks/index.tsx +24 -20
- package/src/components/molecules/GrupoDeLinks/styles.ts +16 -12
- package/src/components/molecules/Modal/Modal.stories.tsx +31 -0
- package/src/components/molecules/Modal/Modal.test.tsx +22 -0
- package/src/components/molecules/Modal/index.tsx +50 -0
- package/src/components/molecules/Modal/styles.ts +34 -0
- package/src/components/molecules/Paginacao/Paginacao.test.tsx +1 -21
- package/src/components/molecules/Paginacao/index.tsx +52 -44
- package/src/components/molecules/Paginacao/styles.ts +25 -22
- package/src/components/molecules/Passos/Passos.stories.tsx +20 -6
- package/src/components/molecules/Passos/Passos.test.tsx +3 -2
- package/src/components/molecules/Passos/index.tsx +85 -40
- package/src/components/molecules/Passos/styles.ts +49 -20
- package/src/components/molecules/RelatorioCard/RelatorioCard.stories.tsx +32 -0
- package/src/components/molecules/RelatorioCard/RelatorioCard.test.tsx +36 -0
- package/src/components/molecules/RelatorioCard/index.tsx +60 -0
- package/src/components/molecules/RelatorioCard/styles.ts +82 -0
- package/src/components/molecules/TabelaHeader/index.tsx +136 -139
- package/src/components/molecules/TabelaHeader/styles.ts +42 -38
- package/src/components/organismos/Calendario/Calendario.modal.tsx +75 -0
- package/src/components/organismos/Calendario/Calendario.stories.tsx +29 -0
- package/src/components/organismos/Calendario/index.tsx +111 -0
- package/src/components/organismos/Calendario/styles.ts +130 -0
- package/src/components/organismos/Tabela/SkeletonTable.tsx +14 -12
- package/src/components/organismos/Tabela/Tabela.stories.tsx +81 -44
- package/src/components/organismos/Tabela/Tabela.test.tsx +55 -43
- package/src/components/organismos/Tabela/body.tsx +223 -0
- package/src/components/organismos/Tabela/header.tsx +199 -0
- package/src/components/organismos/Tabela/index.tsx +197 -304
- package/src/components/organismos/Tabela/pagination.tsx +119 -0
- package/src/components/organismos/Tabela/styles.ts +179 -104
- package/src/hooks/users/index.tsx +24 -22
- package/src/styles/theme.ts +28 -27
- package/src/test/render.tsx +84 -84
- package/src/utils/functions.ts +4 -0
- package/src/utils/tableLocale.ts +2 -2
- package/src/components/molecules/TabelaHeader/TabelaHeader.stories.tsx +0 -33
- package/src/components/molecules/TabelaHeader/TabelaHeader.test.tsx +0 -47
- package/src/components/organismos/Tabela/BodyTable.tsx +0 -88
- package/src/components/organismos/Tabela/FooterTable.tsx +0 -65
- package/src/components/organismos/Tabela/HeaderTable.tsx +0 -93
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2024 André Luiz Santos
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 André Luiz Santos
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
21
|
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,181 +1,73 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
index.tsx # EDIT THIS
|
|
75
|
-
/test
|
|
76
|
-
blah.test.tsx # EDIT THIS
|
|
77
|
-
/stories
|
|
78
|
-
Thing.stories.tsx # EDIT THIS
|
|
79
|
-
/.storybook
|
|
80
|
-
main.js
|
|
81
|
-
preview.js
|
|
82
|
-
.gitignore
|
|
83
|
-
package.json
|
|
84
|
-
README.md # EDIT THIS
|
|
85
|
-
tsconfig.json
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
#### React Testing Library
|
|
89
|
-
|
|
90
|
-
We do not set up `react-testing-library` for you yet, we welcome contributions and documentation on this.
|
|
91
|
-
|
|
92
|
-
### Rollup
|
|
93
|
-
|
|
94
|
-
TSDX uses [Rollup](https://rollupjs.org) as a bundler and generates multiple rollup configs for various module formats and build settings. See [Optimizations](#optimizations) for details.
|
|
95
|
-
|
|
96
|
-
### TypeScript
|
|
97
|
-
|
|
98
|
-
`tsconfig.json` is set up to interpret `dom` and `esnext` types, as well as `react` for `jsx`. Adjust according to your needs.
|
|
99
|
-
|
|
100
|
-
## Continuous Integration
|
|
101
|
-
|
|
102
|
-
### GitHub Actions
|
|
103
|
-
|
|
104
|
-
Two actions are added by default:
|
|
105
|
-
|
|
106
|
-
- `main` which installs deps w/ cache, lints, tests, and builds on all pushes against a Node and OS matrix
|
|
107
|
-
- `size` which comments cost comparison of your library on every pull request using [size-limit](https://github.com/ai/size-limit)
|
|
108
|
-
|
|
109
|
-
## Optimizations
|
|
110
|
-
|
|
111
|
-
Please see the main `tsdx` [optimizations docs](https://github.com/palmerhq/tsdx#optimizations). In particular, know that you can take advantage of development-only optimizations:
|
|
112
|
-
|
|
113
|
-
```js
|
|
114
|
-
// ./types/index.d.ts
|
|
115
|
-
declare var __DEV__: boolean;
|
|
116
|
-
|
|
117
|
-
// inside your code...
|
|
118
|
-
if (__DEV__) {
|
|
119
|
-
console.log('foo');
|
|
120
|
-
}
|
|
121
|
-
```
|
|
122
|
-
|
|
123
|
-
You can also choose to install and use [invariant](https://github.com/palmerhq/tsdx#invariant) and [warning](https://github.com/palmerhq/tsdx#warning) functions.
|
|
124
|
-
|
|
125
|
-
## Module Formats
|
|
126
|
-
|
|
127
|
-
CJS, ESModules, and UMD module formats are supported.
|
|
128
|
-
|
|
129
|
-
The appropriate paths are configured in `package.json` and `dist/index.js` accordingly. Please report if any issues are found.
|
|
130
|
-
|
|
131
|
-
## Deploying the Example Playground
|
|
132
|
-
|
|
133
|
-
The Playground is just a simple [Parcel](https://parceljs.org) app, you can deploy it anywhere you would normally deploy that. Here are some guidelines for **manually** deploying with the Netlify CLI (`npm i -g netlify-cli`):
|
|
134
|
-
|
|
135
|
-
```bash
|
|
136
|
-
cd example # if not already in the example folder
|
|
137
|
-
npm run build # builds to dist
|
|
138
|
-
netlify deploy # deploy the dist folder
|
|
139
|
-
```
|
|
140
|
-
|
|
141
|
-
Alternatively, if you already have a git repo connected, you can set up continuous deployment with Netlify:
|
|
142
|
-
|
|
143
|
-
```bash
|
|
144
|
-
netlify init
|
|
145
|
-
# build command: yarn build && cd example && yarn && yarn build
|
|
146
|
-
# directory to deploy: example/dist
|
|
147
|
-
# pick yes for netlify.toml
|
|
148
|
-
```
|
|
149
|
-
|
|
150
|
-
## Named Exports
|
|
151
|
-
|
|
152
|
-
Per Palmer Group guidelines, [always use named exports.](https://github.com/palmerhq/typescript#exports) Code split inside your React app instead of your React library.
|
|
153
|
-
|
|
154
|
-
## Including Styles
|
|
155
|
-
|
|
156
|
-
There are many ways to ship styles, including with CSS-in-JS. TSDX has no opinion on this, configure how you like.
|
|
157
|
-
|
|
158
|
-
For vanilla CSS, you can include it at the root directory and add it to the `files` section in your `package.json`, so that it can be imported separately by your users and run through their bundler's loader.
|
|
159
|
-
|
|
160
|
-
## Publishing to NPM
|
|
161
|
-
|
|
162
|
-
We recommend using [np](https://github.com/sindresorhus/np).
|
|
163
|
-
|
|
164
|
-
## Usage with Lerna
|
|
165
|
-
|
|
166
|
-
When creating a new package with TSDX within a project set up with Lerna, you might encounter a `Cannot resolve dependency` error when trying to run the `example` project. To fix that you will need to make changes to the `package.json` file _inside the `example` directory_.
|
|
167
|
-
|
|
168
|
-
The problem is that due to the nature of how dependencies are installed in Lerna projects, the aliases in the example project's `package.json` might not point to the right place, as those dependencies might have been installed in the root of your Lerna project.
|
|
169
|
-
|
|
170
|
-
Change the `alias` to point to where those packages are actually installed. This depends on the directory structure of your Lerna project, so the actual path might be different from the diff below.
|
|
171
|
-
|
|
172
|
-
```diff
|
|
173
|
-
"alias": {
|
|
174
|
-
- "react": "../node_modules/react",
|
|
175
|
-
- "react-dom": "../node_modules/react-dom"
|
|
176
|
-
+ "react": "../../../node_modules/react",
|
|
177
|
-
+ "react-dom": "../../../node_modules/react-dom"
|
|
178
|
-
},
|
|
179
|
-
```
|
|
180
|
-
|
|
181
|
-
An alternative to fixing this problem would be to remove aliases altogether and define the dependencies referenced as aliases as dev dependencies instead. [However, that might cause other problems.](https://github.com/palmerhq/tsdx/issues/64)
|
|
1
|
+
# Documentação do Design System
|
|
2
|
+
|
|
3
|
+
## Visão Geral
|
|
4
|
+
Este projeto é um Design System baseado em React e TypeScript, utilizando TSDX para compilação, Storybook para documentação e Jest para testes automatizados.
|
|
5
|
+
|
|
6
|
+
## Requisitos
|
|
7
|
+
Antes de iniciar, certifique-se de ter instalado:
|
|
8
|
+
- [Node.js](https://nodejs.org/) (versão recomendada: 18 ou superior)
|
|
9
|
+
- [npm](https://www.npmjs.com/) ou [yarn](https://yarnpkg.com/)
|
|
10
|
+
|
|
11
|
+
## Instalação
|
|
12
|
+
Clone o repositório e instale as dependências:
|
|
13
|
+
```sh
|
|
14
|
+
# Clonar o repositório
|
|
15
|
+
git clone http://wcavmdevops:82/WCA/_git/WCA.DesignSystem
|
|
16
|
+
cd wca-designsystem
|
|
17
|
+
|
|
18
|
+
# Instalar dependências
|
|
19
|
+
npm install
|
|
20
|
+
# ou
|
|
21
|
+
yarn install
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Storybook, para poder ver os componentes
|
|
25
|
+
Para visualizar a documentação interativa dos componentes:
|
|
26
|
+
```sh
|
|
27
|
+
npm run storybook
|
|
28
|
+
# ou
|
|
29
|
+
yarn storybook
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
O Storybook estará disponível em `http://localhost:6006/`.
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
## Executando os Testes
|
|
36
|
+
Para rodar os testes unitários com Jest:
|
|
37
|
+
```sh
|
|
38
|
+
npm run test
|
|
39
|
+
# ou
|
|
40
|
+
yarn test
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Linter e Formatação
|
|
44
|
+
Verifique o código com ESLint:
|
|
45
|
+
```sh
|
|
46
|
+
npm run lint
|
|
47
|
+
# ou
|
|
48
|
+
yarn lint
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
## Publicação
|
|
53
|
+
Para publicar uma nova versão do Design System no NPM:
|
|
54
|
+
```sh
|
|
55
|
+
npm run deploy
|
|
56
|
+
# ou
|
|
57
|
+
yarn deploy
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
---
|
|
61
|
+
Isso irá gerar uma nova versão irá atualizar a versão e subir para o NPM vinculado ao projeto.
|
|
62
|
+
```sh
|
|
63
|
+
https://www.npmjs.com/package/wca-designsystem
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Para conseguir subir o projeto, o usuário tem que estar logado no NPM, e precisa fazer parte da organização acima.
|
|
67
|
+
|
|
68
|
+
```sh
|
|
69
|
+
npm login
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
package/package.json
CHANGED
|
@@ -1,104 +1,111 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": "1.0.
|
|
3
|
-
"license": "MIT",
|
|
4
|
-
"main": "dist/index.js",
|
|
5
|
-
"typings": "dist/index.d.ts",
|
|
6
|
-
"files": [
|
|
7
|
-
"dist",
|
|
8
|
-
"src"
|
|
9
|
-
],
|
|
10
|
-
"engines": {
|
|
11
|
-
"node": ">=10"
|
|
12
|
-
},
|
|
13
|
-
"scripts": {
|
|
14
|
-
"start": "tsdx watch",
|
|
15
|
-
"build": "tsdx build",
|
|
16
|
-
"test": "jest --
|
|
17
|
-
"lint": "tsdx lint",
|
|
18
|
-
"prepare": "tsdx build",
|
|
19
|
-
"size": "size-limit",
|
|
20
|
-
"analyze": "size-limit --why",
|
|
21
|
-
"storybook": "storybook dev -p 6006",
|
|
22
|
-
"build-storybook": "storybook build",
|
|
23
|
-
"deploy": "npm publish"
|
|
24
|
-
},
|
|
25
|
-
"peerDependencies": {
|
|
26
|
-
"react": ">=16"
|
|
27
|
-
},
|
|
28
|
-
"husky": {
|
|
29
|
-
"hooks": {
|
|
30
|
-
"pre-commit": "tsdx lint"
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
"prettier": {
|
|
34
|
-
"printWidth": 80,
|
|
35
|
-
"semi": true,
|
|
36
|
-
"singleQuote": true,
|
|
37
|
-
"trailingComma": "es5"
|
|
38
|
-
},
|
|
39
|
-
"name": "wca-designsystem",
|
|
40
|
-
"author": "wca.dev",
|
|
41
|
-
"module": "dist/components.esm.js",
|
|
42
|
-
"size-limit": [
|
|
43
|
-
{
|
|
44
|
-
"path": "dist/components.cjs.production.min.js",
|
|
45
|
-
"limit": "10 KB"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"path": "dist/components.esm.js",
|
|
49
|
-
"limit": "10 KB"
|
|
50
|
-
}
|
|
51
|
-
],
|
|
52
|
-
"devDependencies": {
|
|
53
|
-
"@babel/core": "^7.13.10",
|
|
54
|
-
"@babel/preset-env": "^7.13.12",
|
|
55
|
-
"@babel/preset-react": "^7.13.13",
|
|
56
|
-
"@babel/preset-typescript": "^7.13.0",
|
|
57
|
-
"@chromatic-com/storybook": "^1.5.0",
|
|
58
|
-
"@size-limit/preset-small-lib": "^11.1.4",
|
|
59
|
-
"@storybook/addon-essentials": "^8.1.6",
|
|
60
|
-
"@storybook/addon-interactions": "^8.1.6",
|
|
61
|
-
"@storybook/addon-links": "^8.1.6",
|
|
62
|
-
"@storybook/addon-onboarding": "^8.1.6",
|
|
63
|
-
"@storybook/addon-webpack5-compiler-swc": "^1.0.3",
|
|
64
|
-
"@storybook/blocks": "^8.1.6",
|
|
65
|
-
"@storybook/react": "^8.1.6",
|
|
66
|
-
"@storybook/react-webpack5": "^8.1.6",
|
|
67
|
-
"@storybook/test": "^8.1.6",
|
|
68
|
-
"@testing-library/dom": "^10.1.0",
|
|
69
|
-
"@testing-library/react": "^11.2.6",
|
|
70
|
-
"@types/jest": "^29.5.12",
|
|
71
|
-
"@types/react": "^18.3.3",
|
|
72
|
-
"@types/react-dom": "^18.3.0",
|
|
73
|
-
"babel-jest": "^29.0.0",
|
|
74
|
-
"babel-loader": "^9.1.3",
|
|
75
|
-
"husky": "^9.0.11",
|
|
76
|
-
"identity-obj-proxy": "^3.0.0",
|
|
77
|
-
"jest": "^29.7.0",
|
|
78
|
-
"jest-environment-jsdom": "^29.7.0",
|
|
79
|
-
"postcss-preset-mantine": "1.13.0",
|
|
80
|
-
"react": "^18.3.1",
|
|
81
|
-
"react-dom": "^18.3.1",
|
|
82
|
-
"react-is": "^18.3.1",
|
|
83
|
-
"size-limit": "^11.1.4",
|
|
84
|
-
"storybook": "^8.1.6",
|
|
85
|
-
"ts-jest": "^29.1.4",
|
|
86
|
-
"tsdx": "^0.14.1",
|
|
87
|
-
"tslib": "^2.6.3",
|
|
88
|
-
"typescript": "^5.4.5"
|
|
89
|
-
},
|
|
90
|
-
"dependencies": {
|
|
91
|
-
"@
|
|
92
|
-
"@
|
|
93
|
-
"@
|
|
94
|
-
"@
|
|
95
|
-
"@
|
|
96
|
-
"@
|
|
97
|
-
"@
|
|
98
|
-
"
|
|
99
|
-
"mantine
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
|
|
104
|
-
|
|
1
|
+
{
|
|
2
|
+
"version": "1.0.2",
|
|
3
|
+
"license": "MIT",
|
|
4
|
+
"main": "dist/index.js",
|
|
5
|
+
"typings": "dist/index.d.ts",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist",
|
|
8
|
+
"src"
|
|
9
|
+
],
|
|
10
|
+
"engines": {
|
|
11
|
+
"node": ">=10"
|
|
12
|
+
},
|
|
13
|
+
"scripts": {
|
|
14
|
+
"start": "tsdx watch",
|
|
15
|
+
"build": "tsdx build",
|
|
16
|
+
"test": "jest --watchAll=false",
|
|
17
|
+
"lint": "tsdx lint",
|
|
18
|
+
"prepare": "tsdx build",
|
|
19
|
+
"size": "size-limit",
|
|
20
|
+
"analyze": "size-limit --why",
|
|
21
|
+
"storybook": "storybook dev -p 6006",
|
|
22
|
+
"build-storybook": "storybook build",
|
|
23
|
+
"deploy": "npm version patch && npm publish"
|
|
24
|
+
},
|
|
25
|
+
"peerDependencies": {
|
|
26
|
+
"react": ">=16"
|
|
27
|
+
},
|
|
28
|
+
"husky": {
|
|
29
|
+
"hooks": {
|
|
30
|
+
"pre-commit": "tsdx lint"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"prettier": {
|
|
34
|
+
"printWidth": 80,
|
|
35
|
+
"semi": true,
|
|
36
|
+
"singleQuote": true,
|
|
37
|
+
"trailingComma": "es5"
|
|
38
|
+
},
|
|
39
|
+
"name": "wca-designsystem",
|
|
40
|
+
"author": "wca.dev",
|
|
41
|
+
"module": "dist/components.esm.js",
|
|
42
|
+
"size-limit": [
|
|
43
|
+
{
|
|
44
|
+
"path": "dist/components.cjs.production.min.js",
|
|
45
|
+
"limit": "10 KB"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"path": "dist/components.esm.js",
|
|
49
|
+
"limit": "10 KB"
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"@babel/core": "^7.13.10",
|
|
54
|
+
"@babel/preset-env": "^7.13.12",
|
|
55
|
+
"@babel/preset-react": "^7.13.13",
|
|
56
|
+
"@babel/preset-typescript": "^7.13.0",
|
|
57
|
+
"@chromatic-com/storybook": "^1.5.0",
|
|
58
|
+
"@size-limit/preset-small-lib": "^11.1.4",
|
|
59
|
+
"@storybook/addon-essentials": "^8.1.6",
|
|
60
|
+
"@storybook/addon-interactions": "^8.1.6",
|
|
61
|
+
"@storybook/addon-links": "^8.1.6",
|
|
62
|
+
"@storybook/addon-onboarding": "^8.1.6",
|
|
63
|
+
"@storybook/addon-webpack5-compiler-swc": "^1.0.3",
|
|
64
|
+
"@storybook/blocks": "^8.1.6",
|
|
65
|
+
"@storybook/react": "^8.1.6",
|
|
66
|
+
"@storybook/react-webpack5": "^8.1.6",
|
|
67
|
+
"@storybook/test": "^8.1.6",
|
|
68
|
+
"@testing-library/dom": "^10.1.0",
|
|
69
|
+
"@testing-library/react": "^11.2.6",
|
|
70
|
+
"@types/jest": "^29.5.12",
|
|
71
|
+
"@types/react": "^18.3.3",
|
|
72
|
+
"@types/react-dom": "^18.3.0",
|
|
73
|
+
"babel-jest": "^29.0.0",
|
|
74
|
+
"babel-loader": "^9.1.3",
|
|
75
|
+
"husky": "^9.0.11",
|
|
76
|
+
"identity-obj-proxy": "^3.0.0",
|
|
77
|
+
"jest": "^29.7.0",
|
|
78
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
79
|
+
"postcss-preset-mantine": "1.13.0",
|
|
80
|
+
"react": "^18.3.1",
|
|
81
|
+
"react-dom": "^18.3.1",
|
|
82
|
+
"react-is": "^18.3.1",
|
|
83
|
+
"size-limit": "^11.1.4",
|
|
84
|
+
"storybook": "^8.1.6",
|
|
85
|
+
"ts-jest": "^29.1.4",
|
|
86
|
+
"tsdx": "^0.14.1",
|
|
87
|
+
"tslib": "^2.6.3",
|
|
88
|
+
"typescript": "^5.4.5"
|
|
89
|
+
},
|
|
90
|
+
"dependencies": {
|
|
91
|
+
"@fullcalendar/core": "^6.1.15",
|
|
92
|
+
"@fullcalendar/daygrid": "^6.1.15",
|
|
93
|
+
"@fullcalendar/interaction": "^6.1.15",
|
|
94
|
+
"@fullcalendar/react": "^6.1.15",
|
|
95
|
+
"@fullcalendar/timegrid": "^6.1.15",
|
|
96
|
+
"@mantine/charts": "^7.14.3",
|
|
97
|
+
"@mantine/core": "^7.14.3",
|
|
98
|
+
"@mantine/dates": "^7.14.3",
|
|
99
|
+
"@mantine/form": "^7.14.3",
|
|
100
|
+
"@mantine/hooks": "^7.14.3",
|
|
101
|
+
"@tanstack/query-sync-storage-persister": "^5.40.0",
|
|
102
|
+
"@tanstack/react-query": "^5.40.1",
|
|
103
|
+
"@tanstack/react-query-persist-client": "^5.40.1",
|
|
104
|
+
"axios": "^1.7.2",
|
|
105
|
+
"dayjs": "^1.11.13",
|
|
106
|
+
"react-router-dom": "^6.23.1",
|
|
107
|
+
"recharts": "^2.14.1",
|
|
108
|
+
"styled-components": "^6.1.11",
|
|
109
|
+
"xlsx": "^0.18.5"
|
|
110
|
+
}
|
|
111
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
<svg width="40" height="16" viewBox="0 0 40 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M36.7071 8.70711C37.0976 8.31658 37.0976 7.68342 36.7071 7.29289L30.3431 0.928932C29.9526 0.538408 29.3195 0.538408 28.9289 0.928932C28.5384 1.31946 28.5384 1.95262 28.9289 2.34315L34.5858 8L28.9289 13.6569C28.5384 14.0474 28.5384 14.6805 28.9289 15.0711C29.3195 15.4616 29.9526 15.4616 30.3431 15.0711L36.7071 8.70711ZM4 9H36V7H4V9Z" fill="#CBCBCB"/>
|
|
3
|
-
</svg>
|
|
1
|
+
<svg width="40" height="16" viewBox="0 0 40 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M36.7071 8.70711C37.0976 8.31658 37.0976 7.68342 36.7071 7.29289L30.3431 0.928932C29.9526 0.538408 29.3195 0.538408 28.9289 0.928932C28.5384 1.31946 28.5384 1.95262 28.9289 2.34315L34.5858 8L28.9289 13.6569C28.5384 14.0474 28.5384 14.6805 28.9289 15.0711C29.3195 15.4616 29.9526 15.4616 30.3431 15.0711L36.7071 8.70711ZM4 9H36V7H4V9Z" fill="#CBCBCB"/>
|
|
3
|
+
</svg>
|