nectiasw 0.0.293 → 0.0.295

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.
Files changed (191) hide show
  1. package/README.md +30 -30
  2. package/package.json +110 -110
  3. package/dist/App.d.ts +0 -2
  4. package/dist/components/Alert/Alert.stories.d.ts +0 -13
  5. package/dist/components/Alert/index.d.ts +0 -2
  6. package/dist/components/Alert/types.d.ts +0 -9
  7. package/dist/components/Badge/Bagde.stories.d.ts +0 -17
  8. package/dist/components/Badge/index.d.ts +0 -16
  9. package/dist/components/Badge/types.d.ts +0 -5
  10. package/dist/components/Box/index.d.ts +0 -3
  11. package/dist/components/Box/styles.d.ts +0 -9
  12. package/dist/components/Box/types.d.ts +0 -105
  13. package/dist/components/Button/builder.d.ts +0 -20
  14. package/dist/components/Button/index.d.ts +0 -9
  15. package/dist/components/Button/styled.d.ts +0 -4
  16. package/dist/components/Button/styles.d.ts +0 -4
  17. package/dist/components/Button/types.d.ts +0 -25
  18. package/dist/components/Button/variants/Weekday/Weekday.stories.d.ts +0 -6
  19. package/dist/components/Button/variants/Weekday/index.d.ts +0 -3
  20. package/dist/components/Button/variants/Weekday/styled.d.ts +0 -13
  21. package/dist/components/Button/variants/Weekday/types.d.ts +0 -15
  22. package/dist/components/Card/Card.stories.d.ts +0 -13
  23. package/dist/components/Card/index.d.ts +0 -6
  24. package/dist/components/Card/styles.d.ts +0 -17
  25. package/dist/components/Card/types.d.ts +0 -10
  26. package/dist/components/Card/variants/Schedule/index.d.ts +0 -4
  27. package/dist/components/Card/variants/Schedule/styled.d.ts +0 -3
  28. package/dist/components/Card/variants/Schedule/types.d.ts +0 -13
  29. package/dist/components/Chart/Chart.stories.d.ts +0 -40
  30. package/dist/components/Chart/index.d.ts +0 -47
  31. package/dist/components/Chart/styles.d.ts +0 -5
  32. package/dist/components/Checkbox/index.d.ts +0 -27
  33. package/dist/components/Checkbox/styled.d.ts +0 -22
  34. package/dist/components/Checkbox/styles.d.ts +0 -7
  35. package/dist/components/Col/index.d.ts +0 -3
  36. package/dist/components/Col/styled.d.ts +0 -2
  37. package/dist/components/Col/types.d.ts +0 -13
  38. package/dist/components/Collapse/index.d.ts +0 -16
  39. package/dist/components/Collapse/styles.d.ts +0 -17
  40. package/dist/components/Container/index.d.ts +0 -12
  41. package/dist/components/Counter/index.d.ts +0 -11
  42. package/dist/components/Counter/styles.d.ts +0 -9
  43. package/dist/components/Datepicker/index.d.ts +0 -29
  44. package/dist/components/Datepicker/styled.d.ts +0 -8
  45. package/dist/components/Datepicker/styles.d.ts +0 -5
  46. package/dist/components/DeadlineChart/index.d.ts +0 -53
  47. package/dist/components/DeadlineChart/styles.d.ts +0 -11
  48. package/dist/components/Detail/Detail.stories.d.ts +0 -9
  49. package/dist/components/Detail/index.d.ts +0 -37
  50. package/dist/components/Detail/styles.d.ts +0 -14
  51. package/dist/components/Dragarea/index.d.ts +0 -3
  52. package/dist/components/Dragarea/styled.d.ts +0 -5
  53. package/dist/components/Dragarea/svg.d.ts +0 -5
  54. package/dist/components/Dragarea/types.d.ts +0 -38
  55. package/dist/components/Dropdown/index.d.ts +0 -41
  56. package/dist/components/Dropdown/styles.d.ts +0 -21
  57. package/dist/components/Empty/index.d.ts +0 -13
  58. package/dist/components/EnterprisesFilter/EnterpriseContext.d.ts +0 -17
  59. package/dist/components/EnterprisesFilter/index.d.ts +0 -21
  60. package/dist/components/FirstModal/index.d.ts +0 -3
  61. package/dist/components/FirstModal/styled.d.ts +0 -6
  62. package/dist/components/FirstModal/types.d.ts +0 -14
  63. package/dist/components/Flex/index.d.ts +0 -25
  64. package/dist/components/Flex/styles.d.ts +0 -8
  65. package/dist/components/Footer/index.d.ts +0 -7
  66. package/dist/components/Footer/styled.d.ts +0 -2
  67. package/dist/components/Footer/styles.d.ts +0 -3
  68. package/dist/components/Footer/svg.d.ts +0 -5
  69. package/dist/components/Grid/index.d.ts +0 -37
  70. package/dist/components/Input/index.d.ts +0 -59
  71. package/dist/components/Input/styles.d.ts +0 -8
  72. package/dist/components/Input/variants/InputTable.d.ts +0 -3
  73. package/dist/components/Layout/hooks.d.ts +0 -1
  74. package/dist/components/Layout/index.d.ts +0 -20
  75. package/dist/components/Layout/styles.d.ts +0 -11
  76. package/dist/components/Loading/index.d.ts +0 -16
  77. package/dist/components/Loading/styles.d.ts +0 -19
  78. package/dist/components/Modal/index.d.ts +0 -8
  79. package/dist/components/Modal/styles.d.ts +0 -25
  80. package/dist/components/Modal/variant/TCModal.d.ts +0 -4
  81. package/dist/components/Modal/variant/TCModal.stories.d.ts +0 -7
  82. package/dist/components/Modal/variant/styles.d.ts +0 -11
  83. package/dist/components/Modal/variant/svg.d.ts +0 -1
  84. package/dist/components/Modal/variant/types.d.ts +0 -14
  85. package/dist/components/ModalUnathorized/index.d.ts +0 -4
  86. package/dist/components/Navbar/Navbar.stories.d.ts +0 -7
  87. package/dist/components/Navbar/index.d.ts +0 -24
  88. package/dist/components/Navbar/styles.d.ts +0 -49
  89. package/dist/components/Pagination/index.d.ts +0 -3
  90. package/dist/components/Pagination/styles.d.ts +0 -26
  91. package/dist/components/Pagination/types.d.ts +0 -19
  92. package/dist/components/RadioButton/index.d.ts +0 -13
  93. package/dist/components/RadioButton/styles.d.ts +0 -7
  94. package/dist/components/Row/index.d.ts +0 -14
  95. package/dist/components/Search/index.d.ts +0 -7
  96. package/dist/components/Search/styled.d.ts +0 -12
  97. package/dist/components/Search/styles.d.ts +0 -20
  98. package/dist/components/Search/types.d.ts +0 -75
  99. package/dist/components/Search/variants/ScrollSearch.d.ts +0 -4
  100. package/dist/components/Search/variants/styled.d.ts +0 -21
  101. package/dist/components/Select/Select.stories.d.ts +0 -15
  102. package/dist/components/Select/builder.d.ts +0 -27
  103. package/dist/components/Select/index.d.ts +0 -46
  104. package/dist/components/Select/styled.d.ts +0 -1
  105. package/dist/components/Sidebar/Sidebar.stories.d.ts +0 -36
  106. package/dist/components/Sidebar/index.d.ts +0 -2
  107. package/dist/components/Sidebar/styles.d.ts +0 -26
  108. package/dist/components/Sidebar/types.d.ts +0 -37
  109. package/dist/components/Stepper/index.d.ts +0 -17
  110. package/dist/components/Stepper/styles.d.ts +0 -15
  111. package/dist/components/Switch/index.d.ts +0 -18
  112. package/dist/components/Table/Table.stories.d.ts +0 -8
  113. package/dist/components/Table/builder.d.ts +0 -18
  114. package/dist/components/Table/index.d.ts +0 -32
  115. package/dist/components/Table/styled.d.ts +0 -30
  116. package/dist/components/Table/styles.d.ts +0 -27
  117. package/dist/components/Table/svg.d.ts +0 -1
  118. package/dist/components/Table/types.d.ts +0 -98
  119. package/dist/components/Tableinput/index.d.ts +0 -40
  120. package/dist/components/Tableinput/styles.d.ts +0 -3
  121. package/dist/components/Tableinput/types.d.ts +0 -8
  122. package/dist/components/Text/index.d.ts +0 -47
  123. package/dist/components/Text/styles.d.ts +0 -23
  124. package/dist/components/Textarea/TextArea.stories.d.ts +0 -10
  125. package/dist/components/Textarea/index.d.ts +0 -15
  126. package/dist/components/Textarea/styled.d.ts +0 -2
  127. package/dist/components/Textarea/styles.d.ts +0 -23
  128. package/dist/components/Timeline/index.d.ts +0 -3
  129. package/dist/components/Timeline/styled.d.ts +0 -12
  130. package/dist/components/Timeline/styles.d.ts +0 -26
  131. package/dist/components/Timeline/types.d.ts +0 -26
  132. package/dist/components/Tooltip/index.d.ts +0 -16
  133. package/dist/components/Tooltip/styled.d.ts +0 -22
  134. package/dist/components/Tooltip/styles.d.ts +0 -3
  135. package/dist/components/Totalhours/index.d.ts +0 -48
  136. package/dist/constants/index.d.ts +0 -11
  137. package/dist/events/index.d.ts +0 -58
  138. package/dist/hooks/usecache/config.d.ts +0 -7
  139. package/dist/hooks/usecache/index.d.ts +0 -13
  140. package/dist/hooks/usecheckbox/index.d.ts +0 -12
  141. package/dist/hooks/usetoggle/index.d.ts +0 -14
  142. package/dist/index.d.ts +0 -133
  143. package/dist/index.es.js +0 -35384
  144. package/dist/index.es.js.map +0 -1
  145. package/dist/index.umd.js +0 -2126
  146. package/dist/index.umd.js.map +0 -1
  147. package/dist/main.d.ts +0 -0
  148. package/dist/providers/channel/hooks.d.ts +0 -11
  149. package/dist/providers/channel/index.d.ts +0 -26
  150. package/dist/providers/channel/types.d.ts +0 -8
  151. package/dist/providers/context/hooks.d.ts +0 -1
  152. package/dist/providers/context/index.d.ts +0 -31
  153. package/dist/providers/context/types.d.ts +0 -48
  154. package/dist/providers/https/http.api.d.ts +0 -27
  155. package/dist/providers/https/index.d.ts +0 -68
  156. package/dist/providers/logger/index.d.ts +0 -24
  157. package/dist/providers/microfront/index.d.ts +0 -16
  158. package/dist/providers/microfront/types.d.ts +0 -50
  159. package/dist/providers/permissions/index.d.ts +0 -12
  160. package/dist/providers/permissions/types.d.ts +0 -86
  161. package/dist/providers/permissions/utils.d.ts +0 -11
  162. package/dist/providers/private/index.d.ts +0 -25
  163. package/dist/providers/storage/crypto.d.ts +0 -1
  164. package/dist/providers/storage/index.d.ts +0 -4
  165. package/dist/providers/storage/session/index.d.ts +0 -53
  166. package/dist/providers/storage/types.d.ts +0 -32
  167. package/dist/providers/taggeo/tagEvent.d.ts +0 -12
  168. package/dist/stories/Button.d.ts +0 -26
  169. package/dist/stories/Button.stories.d.ts +0 -23
  170. package/dist/stories/Header.d.ts +0 -11
  171. package/dist/stories/Header.stories.d.ts +0 -18
  172. package/dist/stories/Page.d.ts +0 -2
  173. package/dist/stories/Page.stories.d.ts +0 -12
  174. package/dist/style.css +0 -1
  175. package/dist/theme/index.d.ts +0 -12
  176. package/dist/typings/index.d.ts +0 -150
  177. package/dist/utils/amount/index.d.ts +0 -1
  178. package/dist/utils/bearer/index.d.ts +0 -6
  179. package/dist/utils/cache/index.d.ts +0 -7
  180. package/dist/utils/capitalize/index.d.ts +0 -6
  181. package/dist/utils/download/index.d.ts +0 -6
  182. package/dist/utils/index.d.ts +0 -13
  183. package/dist/utils/mapping/index.d.ts +0 -19
  184. package/dist/utils/microfront/index.d.ts +0 -8
  185. package/dist/utils/responsive/index.d.ts +0 -5
  186. package/dist/utils/revert/index.d.ts +0 -5
  187. package/dist/utils/slots/index.d.ts +0 -14
  188. package/dist/utils/sort/index.d.ts +0 -6
  189. package/dist/utils/stack/index.d.ts +0 -5
  190. package/dist/utils/time/index.d.ts +0 -7
  191. package/dist/vite.svg +0 -1
package/README.md CHANGED
@@ -1,30 +1,30 @@
1
- # React + TypeScript + Vite
2
-
3
- This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
4
-
5
- Currently, two official plugins are available:
6
-
7
- - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
8
- - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
9
-
10
- ## Expanding the ESLint configuration
11
-
12
- If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
13
-
14
- - Configure the top-level `parserOptions` property like this:
15
-
16
- ```js
17
- export default {
18
- // other rules...
19
- parserOptions: {
20
- ecmaVersion: 'latest',
21
- sourceType: 'module',
22
- project: ['./tsconfig.json', './tsconfig.node.json', './tsconfig.app.json'],
23
- tsconfigRootDir: __dirname,
24
- },
25
- };
26
- ```
27
-
28
- - Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked`
29
- - Optionally add `plugin:@typescript-eslint/stylistic-type-checked`
30
- - Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list
1
+ # React + TypeScript + Vite
2
+
3
+ This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
4
+
5
+ Currently, two official plugins are available:
6
+
7
+ - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
8
+ - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
9
+
10
+ ## Expanding the ESLint configuration
11
+
12
+ If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
13
+
14
+ - Configure the top-level `parserOptions` property like this:
15
+
16
+ ```js
17
+ export default {
18
+ // other rules...
19
+ parserOptions: {
20
+ ecmaVersion: 'latest',
21
+ sourceType: 'module',
22
+ project: ['./tsconfig.json', './tsconfig.node.json', './tsconfig.app.json'],
23
+ tsconfigRootDir: __dirname,
24
+ },
25
+ };
26
+ ```
27
+
28
+ - Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked`
29
+ - Optionally add `plugin:@typescript-eslint/stylistic-type-checked`
30
+ - Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list
package/package.json CHANGED
@@ -1,110 +1,110 @@
1
- {
2
- "name": "nectiasw",
3
- "private": false,
4
- "version": "0.0.293",
5
- "type": "module",
6
- "types": "dist/index.d.ts",
7
- "main": "dist/index.umd.js",
8
- "module": "dist/index.es.js",
9
- "exports": {
10
- ".": {
11
- "types": "./dist/index.d.ts",
12
- "require": "./dist/index.umd.js",
13
- "import": "./dist/index.es.js"
14
- },
15
- "./style": "./dist/style.css"
16
- },
17
- "files": [
18
- "/dist"
19
- ],
20
- "publishConfig": {
21
- "access": "public"
22
- },
23
- "scripts": {
24
- "dev": "vite",
25
- "build": "vite build",
26
- "deploy": "vite build && npm publish",
27
- "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
28
- "preview": "vite preview",
29
- "storybook": "storybook dev -p 6006",
30
- "build-storybook": "storybook build",
31
- "version-publish": "npm version patch && vite build && npm publish ",
32
- "build:datepicker": "cross-env BUILD_TARGET=datepicker vite build",
33
- "format": "prettier --write ."
34
- },
35
- "dependencies": {
36
- "@headlessui/react": "^1.7.13",
37
- "@heroicons/react": "^2.2.0",
38
- "@jridgewell/sourcemap-codec": "^1.5.4",
39
- "@phosphor-icons/react": "^2.1.10",
40
- "@tanstack/react-query": "^4.32.5",
41
- "@tippyjs/react": "^4.2.6",
42
- "antd": "^5.9.3",
43
- "autoprefixer": "^10.4.19",
44
- "axios": "^1.7.2",
45
- "chart.js": "^3.9.1",
46
- "clsx": "^2.1.1",
47
- "crypto-js": "^4.2.0",
48
- "date-fns": "^3.6.0",
49
- "framer-motion": "^12.9.7",
50
- "history": "^5.3.0",
51
- "jwt-decode": "^4.0.0",
52
- "lodash": "^4.17.21",
53
- "moment": "^2.30.1",
54
- "postcss": "^8.4.40",
55
- "primereact": "^10.8.0",
56
- "react": "^18.3.1",
57
- "react-chartjs-2": "^4.3.1",
58
- "react-datepicker": "^7.3.0",
59
- "react-dom": "^18.3.1",
60
- "react-dropzone": "^14.2.3",
61
- "react-icons": "^5.4.0",
62
- "react-select": "^5.7.2",
63
- "react-spinners-kit": "^1.9.1",
64
- "rut.js": "^2.1.0",
65
- "rxjs": "^7.8.1",
66
- "single-spa": "^6.0.1",
67
- "styled-components": "^6.1.12",
68
- "sweetalert2": "^11.12.3",
69
- "tailwindcss": "^3.4.7",
70
- "tailwindcss-classnames": "^3.1.0",
71
- "usehooks-ts": "^3.1.1",
72
- "uuid": "^10.0.0",
73
- "vite-plugin-lib-inject-css": "^2.1.1",
74
- "zustand": "^4.5.4"
75
- },
76
- "devDependencies": {
77
- "@chromatic-com/storybook": "^1.6.1",
78
- "@storybook/addon-essentials": "^8.2.7",
79
- "@storybook/addon-interactions": "^8.2.7",
80
- "@storybook/addon-links": "^8.2.7",
81
- "@storybook/addon-onboarding": "^8.2.7",
82
- "@storybook/blocks": "^8.2.7",
83
- "@storybook/react": "^8.2.7",
84
- "@storybook/react-vite": "^8.2.7",
85
- "@storybook/test": "^8.2.7",
86
- "@types/crypto-js": "^4.2.2",
87
- "@types/lodash": "^4.17.7",
88
- "@types/node": "^22.0.0",
89
- "@types/react": "^18.3.3",
90
- "@types/react-dom": "^18.3.0",
91
- "@types/styled-components": "^5.1.34",
92
- "@types/uuid": "^10.0.0",
93
- "@typescript-eslint/eslint-plugin": "^7.15.0",
94
- "@typescript-eslint/parser": "^7.15.0",
95
- "@vitejs/plugin-react": "^4.3.1",
96
- "cross-env": "^7.0.3",
97
- "eslint": "^8.57.0",
98
- "eslint-plugin-react-hooks": "^4.6.2",
99
- "eslint-plugin-react-refresh": "^0.4.7",
100
- "eslint-plugin-storybook": "^0.8.0",
101
- "prettier": "3.6.2",
102
- "rollup-plugin-visualizer": "^5.14.0",
103
- "storybook": "^8.2.7",
104
- "typescript": "^5.2.2",
105
- "vite": "^5.3.4",
106
- "vite-plugin-css-injected-by-js": "^3.5.2",
107
- "vite-plugin-dts": "^4.0.0-beta.2",
108
- "vite-tsconfig-paths": "^4.3.2"
109
- }
110
- }
1
+ {
2
+ "name": "nectiasw",
3
+ "private": false,
4
+ "version": "0.0.295",
5
+ "type": "module",
6
+ "types": "dist/index.d.ts",
7
+ "main": "dist/index.umd.js",
8
+ "module": "dist/index.es.js",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "require": "./dist/index.umd.js",
13
+ "import": "./dist/index.es.js"
14
+ },
15
+ "./style": "./dist/style.css"
16
+ },
17
+ "files": [
18
+ "/dist"
19
+ ],
20
+ "publishConfig": {
21
+ "access": "public"
22
+ },
23
+ "scripts": {
24
+ "dev": "vite",
25
+ "build": "vite build",
26
+ "deploy": "vite build && npm publish",
27
+ "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
28
+ "preview": "vite preview",
29
+ "storybook": "storybook dev -p 6006",
30
+ "build-storybook": "storybook build",
31
+ "version-publish": "npm version patch && vite build && npm publish ",
32
+ "build:datepicker": "cross-env BUILD_TARGET=datepicker vite build",
33
+ "format": "prettier --write ."
34
+ },
35
+ "dependencies": {
36
+ "@headlessui/react": "^1.7.13",
37
+ "@heroicons/react": "^2.2.0",
38
+ "@jridgewell/sourcemap-codec": "^1.5.4",
39
+ "@phosphor-icons/react": "^2.1.10",
40
+ "@tanstack/react-query": "^4.32.5",
41
+ "@tippyjs/react": "^4.2.6",
42
+ "antd": "^5.9.3",
43
+ "autoprefixer": "^10.4.19",
44
+ "axios": "^1.7.2",
45
+ "chart.js": "^3.9.1",
46
+ "clsx": "^2.1.1",
47
+ "crypto-js": "^4.2.0",
48
+ "date-fns": "^3.6.0",
49
+ "framer-motion": "^12.9.7",
50
+ "history": "^5.3.0",
51
+ "jwt-decode": "^4.0.0",
52
+ "lodash": "^4.17.21",
53
+ "moment": "^2.30.1",
54
+ "postcss": "^8.4.40",
55
+ "primereact": "^10.8.0",
56
+ "react": "^18.3.1",
57
+ "react-chartjs-2": "^4.3.1",
58
+ "react-datepicker": "^7.3.0",
59
+ "react-dom": "^18.3.1",
60
+ "react-dropzone": "^14.2.3",
61
+ "react-icons": "^5.4.0",
62
+ "react-select": "^5.7.2",
63
+ "react-spinners-kit": "^1.9.1",
64
+ "rut.js": "^2.1.0",
65
+ "rxjs": "^7.8.1",
66
+ "single-spa": "^6.0.1",
67
+ "styled-components": "^6.1.12",
68
+ "sweetalert2": "^11.12.3",
69
+ "tailwindcss": "^3.4.7",
70
+ "tailwindcss-classnames": "^3.1.0",
71
+ "usehooks-ts": "^3.1.1",
72
+ "uuid": "^10.0.0",
73
+ "vite-plugin-lib-inject-css": "^2.1.1",
74
+ "zustand": "^4.5.4"
75
+ },
76
+ "devDependencies": {
77
+ "@chromatic-com/storybook": "^1.6.1",
78
+ "@storybook/addon-essentials": "^8.2.7",
79
+ "@storybook/addon-interactions": "^8.2.7",
80
+ "@storybook/addon-links": "^8.2.7",
81
+ "@storybook/addon-onboarding": "^8.2.7",
82
+ "@storybook/blocks": "^8.2.7",
83
+ "@storybook/react": "^8.2.7",
84
+ "@storybook/react-vite": "^8.2.7",
85
+ "@storybook/test": "^8.2.7",
86
+ "@types/crypto-js": "^4.2.2",
87
+ "@types/lodash": "^4.17.7",
88
+ "@types/node": "^22.0.0",
89
+ "@types/react": "^18.3.3",
90
+ "@types/react-dom": "^18.3.0",
91
+ "@types/styled-components": "^5.1.34",
92
+ "@types/uuid": "^10.0.0",
93
+ "@typescript-eslint/eslint-plugin": "^7.15.0",
94
+ "@typescript-eslint/parser": "^7.15.0",
95
+ "@vitejs/plugin-react": "^4.3.1",
96
+ "cross-env": "^7.0.3",
97
+ "eslint": "^8.57.0",
98
+ "eslint-plugin-react-hooks": "^4.6.2",
99
+ "eslint-plugin-react-refresh": "^0.4.7",
100
+ "eslint-plugin-storybook": "^0.8.0",
101
+ "prettier": "3.6.2",
102
+ "rollup-plugin-visualizer": "^5.14.0",
103
+ "storybook": "^8.2.7",
104
+ "typescript": "^5.2.2",
105
+ "vite": "^5.3.4",
106
+ "vite-plugin-css-injected-by-js": "^3.5.2",
107
+ "vite-plugin-dts": "^4.0.0-beta.2",
108
+ "vite-tsconfig-paths": "^4.3.2"
109
+ }
110
+ }
package/dist/App.d.ts DELETED
@@ -1,2 +0,0 @@
1
- declare function App(): import("react/jsx-runtime").JSX.Element;
2
- export default App;
@@ -1,13 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/react';
2
- import { Alert } from '.';
3
- declare const meta: Meta<typeof Alert>;
4
- export default meta;
5
- type Story = StoryObj<typeof meta>;
6
- export declare const Default: Story;
7
- export declare const WarningOutlined: Story;
8
- export declare const WarningSolid: Story;
9
- export declare const Info: Story;
10
- export declare const Error: Story;
11
- export declare const Success: Story;
12
- export declare const WithoutIcon: Story;
13
- export declare const ComplexContent: Story;
@@ -1,2 +0,0 @@
1
- import { AlertProps } from './types';
2
- export declare const Alert: ({ icon: Icon, iconSize, iconColor, iconTextColor, content, className, }: AlertProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,9 +0,0 @@
1
- import { ComponentType, ReactNode, SVGProps } from 'react';
2
- export type AlertProps = {
3
- icon?: ComponentType<SVGProps<SVGSVGElement>>;
4
- iconSize?: number | string;
5
- iconColor?: string;
6
- iconTextColor?: string;
7
- content?: ReactNode;
8
- className?: string;
9
- };
@@ -1,17 +0,0 @@
1
- import { StoryObj } from '@storybook/react';
2
- declare const meta: {
3
- title: string;
4
- component: import('react').FunctionComponent<import('.').BadgeProps>;
5
- parameters: {
6
- layout: string;
7
- };
8
- tags: string[];
9
- argTypes: {};
10
- args: {
11
- onClick: import('@vitest/spy').Mock<(...args: any[]) => any>;
12
- };
13
- };
14
- export default meta;
15
- type Story = StoryObj<typeof meta>;
16
- export declare const Correct: Story;
17
- export declare const WithError: Story;
@@ -1,16 +0,0 @@
1
- import { default as React } from 'react';
2
- import { BadgeStatus } from './types';
3
- export type BadgeProps = {
4
- color?: string;
5
- error?: number;
6
- width?: string;
7
- height?: string;
8
- className?: string;
9
- status?: BadgeStatus;
10
- onClick?: () => void;
11
- borderRadius?: string;
12
- backgroundColor?: string;
13
- isLabel?: boolean;
14
- children?: React.ReactNode;
15
- };
16
- export declare const Badge: React.FunctionComponent<BadgeProps>;
@@ -1,5 +0,0 @@
1
- export declare enum BadgeStatus {
2
- DEFAULT = 1,
3
- ERROR = 2,
4
- SUCCESS = 3
5
- }
@@ -1,3 +0,0 @@
1
- import { default as React } from 'react';
2
- import { BoxProps } from './types';
3
- export declare const Box: React.FC<BoxProps>;
@@ -1,9 +0,0 @@
1
- import { BoxProps } from './types';
2
- type ContainerArgs = Partial<BoxProps>;
3
- export declare const classes: (props: ContainerArgs) => string;
4
- /**
5
- * @description
6
- * Hover utility to avoid redundant hovering classes.
7
- */
8
- export declare const hoverFn: (props: BoxProps) => string;
9
- export {};
@@ -1,105 +0,0 @@
1
- export declare enum Rule {
2
- REM = "rem",
3
- PIXELS = "px"
4
- }
5
- type RotateDegree = '0' | '1' | '2' | '3' | '6' | '12' | '45' | '90' | '180';
6
- type BrightnessLevel = '0' | '50' | '75' | '90' | '95' | '100' | '105' | '110' | '125' | '150' | '200';
7
- type ScaleLevel = '0' | '50' | '75' | '90' | '95' | '100';
8
- type BorderWidth = '0' | '2' | '4' | '8' | 'x-0' | 'x-2' | 'x-4' | 'x-8' | 'x' | 'y-0' | 'y-2' | 'y-4' | 'y-8' | 'y' | 's-0' | 's-2' | 's-4' | 's-8' | 's' | 'e-0' | 'e-2' | 'e-4' | 'e-8' | 'e' | 't-0' | 't-2' | 't-4' | 't-8' | 't' | 'r-0' | 'r-2' | 'r-4' | 'r-8' | 'r' | 'b-0' | 'b-2' | 'b-4' | 'b-8' | 'b' | 'l-0' | 'l-2' | 'l-4' | 'l-8' | 'l';
9
- type Radius = 'none' | 'sm' | 'full' | 'md' | 'lg' | 'xl' | '2xl' | '3xl';
10
- type OpacityValue = '0' | '5' | '10' | '20' | '25' | '30' | '40' | '50' | '60' | '70' | '75' | '80' | '90' | '95' | '100';
11
- type BorderRadius = Radius | `s-${Radius}` | `e-${Radius}` | `t-${Radius}` | `r-${Radius}` | `b-${Radius}` | `ss-${Radius}` | `se-${Radius}` | `ee-${Radius}` | `es-${Radius}` | `tl-${Radius}` | `tr-${Radius}` | `bl-${Radius}` | `br-${Radius}`;
12
- type BreakTiming = 'auto' | 'avoid' | 'all' | 'avoid-page' | 'page' | 'left' | 'right' | 'column';
13
- type ScreenSize = '0' | 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | '7xl' | 'full' | 'min' | 'max' | 'fit' | 'prose';
14
- type BlurLevel = 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl';
15
- type SelectProperties = 'none' | 'text' | 'all' | 'auto';
16
- type TextOverflowProperties = 'truncate' | 'ellipsis' | 'clip';
17
- type DisplayProperties = 'block' | 'inline' | 'inline-block' | string;
18
- type PositionProperties = 'static' | 'relative' | 'absolute' | 'sticky' | 'fixed';
19
- type OverflowProperties = 'auto' | 'hidden' | 'clip' | 'visible' | 'scroll' | 'x-auto' | 'y-auto' | 'x-hidden' | 'y-hidden' | 'x-clip' | 'y-visible' | 'x-scroll' | 'y-scroll';
20
- type whiteSpaceProperties = 'normal' | 'nowrap' | 'pre' | 'pre-line' | 'pre-wrap' | 'break-spaces';
21
- export type BoxProps = {
22
- id?: string;
23
- as?: string;
24
- rule?: Rule;
25
- color?: string;
26
- blur?: BlurLevel;
27
- grid?: boolean;
28
- style?: React.CSSProperties;
29
- onClick?: () => void;
30
- onMouseEnter?: () => void;
31
- onMouseLeave?: () => void;
32
- fullWidth?: boolean;
33
- fullHeight?: boolean;
34
- width?: number | string;
35
- height?: number | string;
36
- top?: number | string;
37
- left?: number | string;
38
- right?: number | string;
39
- bottom?: number | string;
40
- insetX?: number | string;
41
- insetY?: number | string;
42
- margin?: number | string;
43
- marginX?: number | string;
44
- marginY?: number | string;
45
- padding?: number | string;
46
- paddingY?: number | string;
47
- paddingX?: number | string;
48
- paddingTop?: number | string;
49
- paddingLeft?: number | string;
50
- paddingRight?: number | string;
51
- paddingBottom?: number | string;
52
- maxWidth?: number | string;
53
- minWidth?: number | string;
54
- maxHeight?: number | string;
55
- minHeight?: number | string;
56
- minWidthScreen?: ScreenSize | string;
57
- minHeightScreen?: ScreenSize | string;
58
- maxWidthScreen?: ScreenSize | string;
59
- maxHeightScreen?: ScreenSize | string;
60
- marginTop?: number | string;
61
- marginLeft?: number | string;
62
- marginRight?: number | string;
63
- marginBottom?: number | string;
64
- backgroundColor?: string;
65
- zIndex?: number | string;
66
- display?: DisplayProperties;
67
- position?: PositionProperties;
68
- overflow?: OverflowProperties;
69
- borderWidth?: BorderWidth | string | number;
70
- textOverflow?: TextOverflowProperties;
71
- borderTop?: boolean;
72
- borderLeft?: boolean;
73
- borderRight?: boolean;
74
- borderBottom?: boolean;
75
- container?: boolean;
76
- breakAfter?: BreakTiming;
77
- breakInside?: BreakTiming;
78
- breakBefore?: BreakTiming;
79
- float?: 'left' | 'right';
80
- borderBox?: 'border' | 'content';
81
- clear?: 'left' | 'right' | 'both' | 'none';
82
- borders?: string[];
83
- wordBreak?: 'normal' | 'words' | 'all' | 'keep';
84
- borderStyle?: 'solid' | 'dashed';
85
- borderColor?: string;
86
- visibility?: 'visibile' | 'invisible' | 'collapse';
87
- textAlign?: 'left' | 'center' | 'right' | 'justify' | 'start' | 'end';
88
- textTransform?: 'uppercase' | 'lowercase' | 'capitalize' | 'normal-case';
89
- textDecoration?: 'underline' | 'overline' | 'line-through' | 'no-underline';
90
- lineHeight?: number | string;
91
- ringColor?: string | number;
92
- ringWidth?: string | number;
93
- ringOfsset?: string | number;
94
- brightness?: BrightnessLevel;
95
- borderRadius?: BorderRadius;
96
- scale?: ScaleLevel | string;
97
- scaleY?: ScaleLevel | string;
98
- scaleX?: ScaleLevel | string;
99
- rotate?: RotateDegree;
100
- select?: SelectProperties;
101
- whiteSpace?: whiteSpaceProperties;
102
- onHover?: Partial<BoxProps> & Exclude<BoxProps, 'hover'>;
103
- opacity?: OpacityValue;
104
- } & React.DetailedHTMLProps<React.HtmlHTMLAttributes<HTMLDivElement>, HTMLDivElement>;
105
- export {};
@@ -1,20 +0,0 @@
1
- import { ButtonProps } from './types';
2
- export type Override<T, U> = Omit<T, keyof U> & U;
3
- export type OverrideBuilder = Override<Builder, {
4
- backgrounds: typeof Builder.prototype.backgrounds;
5
- variants: typeof Builder.prototype.variants;
6
- }>;
7
- declare class Builder {
8
- private base;
9
- private props;
10
- variants: Record<string, string>;
11
- fontSize: Record<string, string>;
12
- backgrounds: Record<string, string>;
13
- private disabled;
14
- private active;
15
- tailwind: string;
16
- constructor(props: Partial<ButtonProps>, override?: OverrideBuilder);
17
- private getDisabledStyle;
18
- private buildClassName;
19
- }
20
- export { Builder };
@@ -1,9 +0,0 @@
1
- import { default as React } from 'react';
2
- import { ButtonProps } from './types';
3
- /**
4
- * @description
5
- * Button component with TailwindCSS support and default props for size and variant.
6
- * The component is styled with styled-components.
7
- * @param props - ButtonProps
8
- */
9
- export declare const Button: React.FunctionComponent<ButtonProps>;
@@ -1,4 +0,0 @@
1
- import { ButtonProps } from './types';
2
- type ButtonStyledProps = Pick<ButtonProps, 'fullWidth' | 'tabWithHover' | 'visuallyDisabled'>;
3
- export declare const StyledButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ButtonStyledProps>> & string;
4
- export {};
@@ -1,4 +0,0 @@
1
- export declare const classes: {
2
- wrap: string;
3
- disabledTest: string;
4
- };
@@ -1,25 +0,0 @@
1
- import { default as React } from 'react';
2
- import { OverrideBuilder } from './builder';
3
- export type Variant = 'primary' | 'secondary' | 'outline' | 'tertiary' | 'quaternary' | 'quinary' | 'senary' | 'secondarymuted' | 'danger' | 'info-outline' | 'danger-outline' | 'primary-outline' | 'darkened-outline' | 'secondary-outline';
4
- export type ButtonProps = {
5
- disabled?: boolean;
6
- variant: Variant;
7
- children?: React.ReactNode;
8
- size: 'xs' | 'sm' | 'base' | 'lg' | 'xl' | 'xxl' | 'circle';
9
- fontSize?: 'xs' | 'sm' | 'base' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl';
10
- onClick?: () => void;
11
- disabledStyle?: string | Record<string, string>;
12
- Icon?: JSX.Element;
13
- override?: OverrideBuilder;
14
- activeAsTab?: boolean;
15
- className?: string;
16
- fullWidth?: boolean;
17
- tabWithHover?: boolean;
18
- visuallyDisabled?: boolean;
19
- orientationIcon?: 'right' | 'left';
20
- };
21
- export type ButtonStyledProps = {
22
- fullWidth?: boolean;
23
- tabWithHover?: boolean;
24
- activeColor?: string;
25
- };
@@ -1,6 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/react';
2
- import { WeekdayBarProps } from './types';
3
- declare const meta: Meta<WeekdayBarProps>;
4
- export default meta;
5
- type Story = StoryObj<WeekdayBarProps>;
6
- export declare const Default: Story;
@@ -1,3 +0,0 @@
1
- import { default as React } from 'react';
2
- import { WeekdayBarProps } from './types';
3
- export declare const WeekdayBar: React.FunctionComponent<WeekdayBarProps>;
@@ -1,13 +0,0 @@
1
- interface ButtonProps {
2
- color: string;
3
- hoverColor: string;
4
- activeColor?: string;
5
- isActive: boolean;
6
- onClick: () => void;
7
- }
8
- export declare const WeekdayButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ButtonProps>> & string;
9
- interface ButtonBarProps {
10
- isMobile?: boolean;
11
- }
12
- export declare const ButtonBar: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ButtonBarProps>> & string;
13
- export {};
@@ -1,15 +0,0 @@
1
- export interface Day {
2
- name: string;
3
- color: string;
4
- hoverColor: string;
5
- id: number;
6
- }
7
- export interface WeekdayBarProps {
8
- activeDays: number[];
9
- days: Day[];
10
- activeColor?: string;
11
- hoverColor?: string;
12
- isActive?: boolean;
13
- setActiveDays: (activeDays: number[]) => void;
14
- isMobile?: boolean;
15
- }
@@ -1,13 +0,0 @@
1
- import { StoryObj } from '@storybook/react';
2
- declare const meta: {
3
- title: string;
4
- component: import('react').FunctionComponent<import('./types').CardProps>;
5
- parameters: {
6
- layout: string;
7
- };
8
- tags: string[];
9
- argTypes: {};
10
- };
11
- export default meta;
12
- type Story = StoryObj<typeof meta>;
13
- export declare const Requirement: Story;
@@ -1,6 +0,0 @@
1
- import { default as React } from 'react';
2
- import { CardProps, CardTitleProps } from './types';
3
- export declare const Card: React.FunctionComponent<CardProps>;
4
- export declare const DangerTitle: React.FC<CardTitleProps>;
5
- export declare const CheckTitle: React.FC<CardTitleProps>;
6
- export declare const AlertTitle: React.FC<CardTitleProps>;
@@ -1,17 +0,0 @@
1
- export declare const classes: {
2
- card: {
3
- size: string;
4
- style: string;
5
- separator: string;
6
- title: string;
7
- body: string;
8
- icon: string;
9
- };
10
- title: {
11
- rule: string;
12
- danger: string;
13
- alert: string;
14
- pass: string;
15
- icon: string;
16
- };
17
- };