@gobolt/genesis 0.0.7 → 0.0.9

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 (254) hide show
  1. package/README.md +18 -2
  2. package/dist/{AntdIcon-Bsnbyy6g.js → AntdIcon-BoLh1dP8.js} +37 -35
  3. package/dist/CheckOutlined-CeTKr6II.js +13 -0
  4. package/dist/{CloseCircleFilled-ZIY-u-27.js → CloseCircleFilled-DXCxlIQL.js} +2 -2
  5. package/dist/CloseOutlined-ClXDNn82.js +13 -0
  6. package/dist/{Compact-CJBo3f0u.js → Compact-CGY560JF.js} +45 -53
  7. package/dist/{ContextIsolator-CGkdKtc3.js → ContextIsolator-D5x2Ih51.js} +2 -2
  8. package/dist/{ExclamationCircleFilled-BICVVQIg.js → ExclamationCircleFilled-C0Kj5KQV.js} +2 -2
  9. package/dist/{CheckOutlined-DAynWe12.js → KeyCode-DM2sFh3-.js} +10 -20
  10. package/dist/LoadingOutlined-8EnJdZ7I.js +13 -0
  11. package/dist/Overflow-PBZD-PFm.js +360 -0
  12. package/dist/PurePanel-BqPLRtc2.js +203 -0
  13. package/dist/SearchOutlined-BP3Z2K6j.js +13 -0
  14. package/dist/{TextArea-3MOYYuAQ.js → TextArea-DKwCct3i.js} +26 -16
  15. package/dist/Typography-aGoDUl4R.js +710 -0
  16. package/dist/bundle.css +1204 -0
  17. package/dist/{button-BNV2qdrP.js → button-CDQgO1OK.js} +200 -197
  18. package/dist/collapse-Dtpt-6W_.js +20 -0
  19. package/dist/components/Badge/Badge.d.ts +6 -0
  20. package/dist/components/Badge/Badge.js +103 -0
  21. package/dist/components/Badge/__stories__/Badge.stories.d.ts +13 -0
  22. package/dist/components/Badge/__tests__/Badge.test.js +18 -0
  23. package/dist/components/Badge/icons/ASN.d.ts +2 -0
  24. package/dist/components/Badge/icons/ASN.js +23 -0
  25. package/dist/components/Badge/icons/Appointment.d.ts +2 -0
  26. package/dist/components/Badge/icons/Appointment.js +23 -0
  27. package/dist/components/Badge/icons/Inventory.d.ts +2 -0
  28. package/dist/components/Badge/icons/Inventory.js +23 -0
  29. package/dist/components/Badge/icons/Parcel.d.ts +2 -0
  30. package/dist/components/Badge/icons/Parcel.js +23 -0
  31. package/dist/components/Badge/icons/Product.d.ts +2 -0
  32. package/dist/components/Badge/icons/Product.js +23 -0
  33. package/dist/components/Badge/icons/Route.d.ts +2 -0
  34. package/dist/components/Badge/icons/Route.js +23 -0
  35. package/dist/components/Badge/icons/Shipment.d.ts +2 -0
  36. package/dist/components/Badge/icons/Shipment.js +23 -0
  37. package/dist/components/Badge/icons/ShoppingCart.d.ts +2 -0
  38. package/dist/components/Badge/icons/ShoppingCart.js +23 -0
  39. package/dist/components/Badge/icons/System.d.ts +2 -0
  40. package/dist/components/Badge/icons/System.js +23 -0
  41. package/dist/components/Badge/index.d.ts +2 -0
  42. package/dist/components/Badge/index.js +4 -0
  43. package/dist/components/Badge/styles.d.ts +3 -0
  44. package/dist/components/Badge/styles.js +34 -0
  45. package/dist/components/Breadcrumb/Breadcrumb.d.ts +8 -0
  46. package/dist/components/Breadcrumb/Breadcrumb.js +11 -0
  47. package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +22 -0
  48. package/dist/components/Breadcrumb/Breadcrumb.types.js +1 -0
  49. package/dist/components/Breadcrumb/__stories__/Breadcrumb.stories.d.ts +10 -0
  50. package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +23 -0
  51. package/dist/components/Breadcrumb/index.d.ts +3 -0
  52. package/dist/components/Breadcrumb/index.js +4 -0
  53. package/dist/components/Breadcrumb/styles.d.ts +27 -0
  54. package/dist/components/Breadcrumb/styles.js +2436 -0
  55. package/dist/components/Button/Button.d.ts +14 -0
  56. package/dist/components/Button/Button.js +22 -0
  57. package/dist/components/Button/__tests__/Button.test.js +16 -0
  58. package/dist/components/Button/styles.d.ts +16 -0
  59. package/dist/components/{atoms/button → Button}/styles.js +12 -12
  60. package/dist/components/{atoms/checkbox → Checkbox}/Checkbox.d.ts +2 -1
  61. package/dist/components/Checkbox/Checkbox.js +40 -0
  62. package/dist/components/{atoms/checkbox → Checkbox}/__tests__/Checkbox.test.js +1 -1
  63. package/dist/components/{atoms/checkbox → Checkbox}/styles.d.ts +5 -0
  64. package/dist/components/{atoms/checkbox → Checkbox}/styles.js +97 -96
  65. package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.d.ts +8 -0
  66. package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +40 -0
  67. package/dist/components/ErrorBoundaryFallback/index.d.ts +2 -0
  68. package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/styles.js +22 -21
  69. package/dist/components/Form/Form.d.ts +26 -0
  70. package/dist/components/Form/Form.js +8 -0
  71. package/dist/components/Form/__stories__/FormStory.js +93 -0
  72. package/dist/components/Form/__tests__/form.test.d.ts +1 -0
  73. package/dist/components/Form/__tests__/form.test.js +18 -0
  74. package/dist/components/Form/index.js +4 -0
  75. package/dist/components/Form/styles.d.ts +3 -0
  76. package/dist/components/Form/styles.js +5 -0
  77. package/dist/components/{atoms/input → Input}/Input.d.ts +1 -3
  78. package/dist/components/Input/Input.js +19 -0
  79. package/dist/components/{atoms/input → Input}/__stories__/Input.stories.d.ts +5 -1
  80. package/dist/components/Input/__tests__/Input.test.d.ts +1 -0
  81. package/dist/components/Input/__tests__/Input.test.js +24 -0
  82. package/dist/components/{atoms/input → Input}/styles.d.ts +2 -0
  83. package/dist/components/Input/styles.js +529 -0
  84. package/dist/components/Message/Message.d.ts +13 -0
  85. package/dist/components/Message/Message.js +78 -0
  86. package/dist/components/Message/__stories__/Message.stories.d.ts +15 -0
  87. package/dist/components/Message/__tests__/Message.test.d.ts +1 -0
  88. package/dist/components/Message/__tests__/Message.test.js +42 -0
  89. package/dist/components/Message/index.d.ts +2 -0
  90. package/dist/components/Message/index.js +4 -0
  91. package/dist/components/Message/styles.d.ts +8 -0
  92. package/dist/components/Message/styles.js +41 -0
  93. package/dist/components/Notification/Notification.d.ts +17 -0
  94. package/dist/components/Notification/Notification.js +1370 -0
  95. package/dist/components/Notification/NotificationRightChevron.d.ts +2 -0
  96. package/dist/components/Notification/NotificationRightChevron.js +23 -0
  97. package/dist/components/Notification/__stories__/Notification.stories.d.ts +10 -0
  98. package/dist/components/Notification/__tests__/Notification.test.d.ts +1 -0
  99. package/dist/components/Notification/__tests__/Notification.test.js +15 -0
  100. package/dist/components/Notification/index.d.ts +2 -0
  101. package/dist/components/Notification/index.js +4 -0
  102. package/dist/components/Notification/styles.d.ts +16 -0
  103. package/dist/components/Notification/styles.js +65 -0
  104. package/dist/components/Radio/Radio.d.ts +14 -0
  105. package/dist/components/Radio/Radio.js +28 -0
  106. package/dist/components/Radio/RadioGroup.d.ts +12 -0
  107. package/dist/components/Radio/RadioGroup.js +33 -0
  108. package/dist/components/Radio/__stories__/RadioGroup.stories.d.ts +9 -0
  109. package/dist/components/Radio/__tests__/RadioGroup.test.d.ts +1 -0
  110. package/dist/components/Radio/__tests__/RadioGroup.test.js +30 -0
  111. package/dist/components/Radio/index.d.ts +2 -0
  112. package/dist/components/Radio/index.js +4 -0
  113. package/dist/components/Radio/states/RadioChecked.d.ts +2 -0
  114. package/dist/components/Radio/states/RadioChecked.js +18 -0
  115. package/dist/components/Radio/states/RadioCheckedDisabled.d.ts +2 -0
  116. package/dist/components/Radio/states/RadioCheckedDisabled.js +18 -0
  117. package/dist/components/Radio/states/RadioCheckedFocussed.d.ts +2 -0
  118. package/dist/components/Radio/states/RadioCheckedFocussed.js +30 -0
  119. package/dist/components/Radio/states/RadioCheckedHover.d.ts +2 -0
  120. package/dist/components/Radio/states/RadioCheckedHover.js +18 -0
  121. package/dist/components/Radio/states/RadioUnchecked.d.ts +2 -0
  122. package/dist/components/Radio/states/RadioUnchecked.js +15 -0
  123. package/dist/components/Radio/states/RadioUncheckedDisabled.d.ts +2 -0
  124. package/dist/components/Radio/states/RadioUncheckedDisabled.js +15 -0
  125. package/dist/components/Radio/states/RadioUncheckedFocussed.d.ts +2 -0
  126. package/dist/components/Radio/states/RadioUncheckedFocussed.js +29 -0
  127. package/dist/components/Radio/states/RadioUncheckedHover.d.ts +2 -0
  128. package/dist/components/Radio/states/RadioUncheckedHover.js +18 -0
  129. package/dist/components/Select/DropdownChevron.d.ts +2 -0
  130. package/dist/components/Select/DropdownChevron.js +23 -0
  131. package/dist/components/Select/Select.d.ts +16 -0
  132. package/dist/components/Select/Select.js +36 -0
  133. package/dist/components/{atoms/select → Select}/__stories__/Select.stories.d.ts +3 -1
  134. package/dist/components/Select/__tests__/Select.test.d.ts +1 -0
  135. package/dist/components/{atoms/select → Select}/__tests__/Select.test.js +1165 -1140
  136. package/dist/components/Select/styles.d.ts +32 -0
  137. package/dist/components/{atoms/select → Select}/styles.js +1517 -1651
  138. package/dist/components/Toast/Toast.d.ts +14 -0
  139. package/dist/components/Toast/Toast.js +19 -0
  140. package/dist/components/Toast/__stories__/Toast.stories.d.ts +16 -0
  141. package/dist/components/Toast/__tests__/Toast.test.d.ts +1 -0
  142. package/dist/components/Toast/__tests__/Toast.test.js +18 -0
  143. package/dist/components/Toast/index.d.ts +2 -0
  144. package/dist/components/Toast/index.js +4 -0
  145. package/dist/components/Toast/styles.d.ts +10 -0
  146. package/dist/components/Toast/styles.js +54 -0
  147. package/dist/components/Typography/Typography.d.ts +15 -0
  148. package/dist/components/Typography/Typography.js +8 -0
  149. package/dist/components/{atoms/typography → Typography}/__stories__/Typography.stories.d.ts +1 -0
  150. package/dist/components/Typography/__tests__/Typography.test.d.ts +1 -0
  151. package/dist/components/Typography/__tests__/Typography.test.js +23 -0
  152. package/dist/components/Typography/index.js +4 -0
  153. package/dist/components/Typography/styles.d.ts +21 -0
  154. package/dist/components/Typography/styles.js +48 -0
  155. package/dist/components/index.d.ts +26 -14
  156. package/dist/components/index.js +23 -13
  157. package/dist/constants/index.d.ts +104 -0
  158. package/dist/constants/index.js +41 -7
  159. package/dist/{context-CZsFJmh6.js → context-BMW3aJEf.js} +162 -161
  160. package/dist/genesis/GenesisThemeBreakdown.js +54 -24
  161. package/dist/genesis/GenesisThemeDemo.d.ts +0 -2
  162. package/dist/genesis/GenesisThemeDemo.js +3 -4
  163. package/dist/genesis/styles.js +1095 -2186
  164. package/dist/{index-C7kFNqp2.js → index-1CBpubM3.js} +36 -36
  165. package/dist/{index-3MWkSVA1.js → index-BZAhCB_K.js} +6 -5
  166. package/dist/{index-D1v_7IIx.js → index-C0SmxWLS.js} +95 -94
  167. package/dist/index-C8haFnXI.js +1112 -0
  168. package/dist/{index-VDH3iLaC.js → index-CfDY25LP.js} +298 -309
  169. package/dist/{index-SAAXFt-P.js → index-DPW8XdWj.js} +255 -249
  170. package/dist/{index-BQO27mgE.js → index-bKlRxQp4.js} +52 -51
  171. package/dist/index-oK7z6jnz.js +22795 -0
  172. package/dist/index.d.ts +2 -0
  173. package/dist/index.js +31 -18
  174. package/dist/{isVisible-CNQjrJPN.js → isVisible-A-IfeFoT.js} +34 -33
  175. package/dist/{magic-string.es-BkUFmFT4.js → magic-string.es-D2FWSwU3.js} +1 -1
  176. package/dist/{SearchOutlined-DuzJkIiQ.js → pickAttrs-B0YTfcV1.js} +16 -26
  177. package/dist/providers/GenesisProvider.js +9 -5
  178. package/dist/providers/ThemeProvider.d.ts +2 -2
  179. package/dist/providers/ThemeProvider.js +4 -1
  180. package/dist/providers/ToastProvider.d.ts +13 -0
  181. package/dist/providers/ToastProvider.js +20 -0
  182. package/dist/providers/__stories__/GenesisProvider.stories.d.ts +6 -0
  183. package/dist/providers/index.d.ts +1 -1
  184. package/dist/providers/index.js +4 -4
  185. package/dist/providers/useGenesis.d.ts +7 -0
  186. package/dist/providers/useGenesis.js +6 -0
  187. package/dist/{setup-CMYVZCPF.js → setup-BvfREoHl.js} +6948 -6940
  188. package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +22 -16
  189. package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +21 -15
  190. package/dist/styles/design-tokens/{typography → typography-tokens}/TypographyTokens.stories.d.ts +1 -0
  191. package/dist/styles/design-tokens/variables.d.ts +17 -17
  192. package/dist/styles/design-tokens/variables.js +48 -48
  193. package/dist/styles/global-styles.d.ts +1 -0
  194. package/dist/styles/global-styles.js +13 -29
  195. package/dist/styles/theme/genesis-theme.d.ts +3 -0
  196. package/dist/styles/theme/genesis-theme.js +461 -277
  197. package/dist/styles/theme/genesis-theme.types.d.ts +46 -0
  198. package/dist/{Form-Cylpi4M4.js → styles-CT_fyXBd.js} +417 -424
  199. package/dist/test/setup.js +2 -1
  200. package/dist/useLocale-DT-z_vQ6.js +16 -0
  201. package/dist/{useVariants-CEpw6Ww6.js → useVariants-DvhXfgJY.js} +9 -8
  202. package/dist/warning-C63HNL9U.js +789 -0
  203. package/package.json +10 -4
  204. package/dist/Overflow-CP1M4Z0s.js +0 -369
  205. package/dist/components/atoms/button/Button.d.ts +0 -12
  206. package/dist/components/atoms/button/Button.js +0 -27
  207. package/dist/components/atoms/button/styles.d.ts +0 -12
  208. package/dist/components/atoms/checkbox/Checkbox.js +0 -13
  209. package/dist/components/atoms/index.d.ts +0 -1
  210. package/dist/components/atoms/index.js +0 -3
  211. package/dist/components/atoms/input/Input.js +0 -12
  212. package/dist/components/atoms/input/__tests__/Input.test.js +0 -28
  213. package/dist/components/atoms/input/styles.js +0 -415
  214. package/dist/components/atoms/select/Select.d.ts +0 -11
  215. package/dist/components/atoms/select/Select.js +0 -24
  216. package/dist/components/atoms/select/styles.d.ts +0 -15
  217. package/dist/components/atoms/typography/Typography.d.ts +0 -11
  218. package/dist/components/atoms/typography/Typography.js +0 -44
  219. package/dist/components/atoms/typography/__tests__/Typography.test.js +0 -16
  220. package/dist/components/atoms/typography/index.js +0 -4
  221. package/dist/components/atoms/typography/styles.d.ts +0 -11
  222. package/dist/components/atoms/typography/styles.js +0 -28
  223. package/dist/components/molecules/error-boundary-fallback/ErrorBoundaryFallback.d.ts +0 -10
  224. package/dist/components/molecules/error-boundary-fallback/ErrorBoundaryFallback.js +0 -35
  225. package/dist/components/molecules/error-boundary-fallback/index.d.ts +0 -1
  226. package/dist/components/molecules/form/Form.d.ts +0 -15
  227. package/dist/components/molecules/form/Form.js +0 -7
  228. package/dist/components/molecules/form/__stories__/FormStory.js +0 -90
  229. package/dist/components/molecules/form/index.js +0 -4
  230. package/dist/index-BPtFqhcp.js +0 -19110
  231. package/dist/index-BWys7dkb.js +0 -4462
  232. package/dist/styles/theme/global-styles.d.ts +0 -1
  233. package/dist/styles/theme/global-styles.js +0 -35
  234. /package/dist/components/{atoms/checkbox/__tests__/Checkbox.test.d.ts → Badge/__tests__/Badge.test.d.ts} +0 -0
  235. /package/dist/components/{atoms/input/__tests__/Input.test.d.ts → Breadcrumb/__tests__/Breadcrumb.test.d.ts} +0 -0
  236. /package/dist/components/{atoms/button → Button}/__stories__/Button.stories.d.ts +0 -0
  237. /package/dist/components/{atoms/select/__tests__/Select.test.d.ts → Button/__tests__/Button.test.d.ts} +0 -0
  238. /package/dist/components/{atoms/button → Button}/index.d.ts +0 -0
  239. /package/dist/components/{atoms/button → Button}/index.js +0 -0
  240. /package/dist/components/{atoms/checkbox → Checkbox}/__stories__/Checkbox.stories.d.ts +0 -0
  241. /package/dist/components/{atoms/typography/__tests__/Typography.test.d.ts → Checkbox/__tests__/Checkbox.test.d.ts} +0 -0
  242. /package/dist/components/{atoms/checkbox → Checkbox}/index.d.ts +0 -0
  243. /package/dist/components/{atoms/checkbox → Checkbox}/index.js +0 -0
  244. /package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/__stories__/ErrorBoundaryFallback.stories.d.ts +0 -0
  245. /package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/index.js +0 -0
  246. /package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/styles.d.ts +0 -0
  247. /package/dist/components/{molecules/form → Form}/__stories__/Form.stories.d.ts +0 -0
  248. /package/dist/components/{molecules/form → Form}/__stories__/FormStory.d.ts +0 -0
  249. /package/dist/components/{molecules/form → Form}/index.d.ts +0 -0
  250. /package/dist/components/{atoms/input → Input}/index.d.ts +0 -0
  251. /package/dist/components/{atoms/input → Input}/index.js +0 -0
  252. /package/dist/components/{atoms/select → Select}/index.d.ts +0 -0
  253. /package/dist/components/{atoms/select → Select}/index.js +0 -0
  254. /package/dist/components/{atoms/typography → Typography}/index.d.ts +0 -0
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@gobolt/genesis",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "description": "genesis design system",
5
5
  "author": "gobolt",
6
6
  "license": "MIT",
7
7
  "repository": "SecondCloset/genesis",
8
8
  "type": "module",
9
9
  "main": "dist/index.js",
10
- "types": "dist/lib/index.d.ts",
10
+ "types": "dist/components/index.d.ts",
11
11
  "files": [
12
12
  "dist"
13
13
  ],
@@ -24,7 +24,8 @@
24
24
  "coverage": "vitest run --coverage",
25
25
  "generate": "tsx ./lab/generate/generate-component",
26
26
  "generate:story": "tsx ./lab/generate/generate-story",
27
- "test:watch": "vitest"
27
+ "test:watch": "vitest",
28
+ "type": "tsc --noEmit"
28
29
  },
29
30
  "peerDependencies": {
30
31
  "react": "^18.0.0",
@@ -32,6 +33,8 @@
32
33
  },
33
34
  "devDependencies": {
34
35
  "@changesets/cli": "^2.27.8",
36
+ "@fontsource/inter": "^5.1.1",
37
+ "@fontsource/roboto-mono": "^5.1.1",
35
38
  "@rollup/plugin-node-resolve": "^15.3.0",
36
39
  "@rollup/plugin-typescript": "^12.1.1",
37
40
  "@storybook/addon-essentials": "^8.5.0",
@@ -39,10 +42,12 @@
39
42
  "@storybook/addon-links": "^8.5.0",
40
43
  "@storybook/addon-mdx-gfm": "^8.5.0",
41
44
  "@storybook/blocks": "^8.5.0",
45
+ "@storybook/manager-api": "^8.5.2",
42
46
  "@storybook/react": "^8.5.0",
43
47
  "@storybook/react-vite": "^8.5.0",
44
48
  "@storybook/test": "^8.5.0",
45
49
  "@storybook/test-runner": "^0.19.1",
50
+ "@storybook/theming": "^8.5.2",
46
51
  "@types/jest": "^29.5.11",
47
52
  "@types/react": "^18.2.37",
48
53
  "@types/react-dom": "^18.2.15",
@@ -70,7 +75,6 @@
70
75
  },
71
76
  "dependencies": {
72
77
  "@ant-design/icons": "^5.5.2",
73
- "@fontsource/inter": "^5.1.1",
74
78
  "@mdx-js/react": "^3.0.1",
75
79
  "@secondcloset/types": "^3.4.6",
76
80
  "@storybook/addon-a11y": "^8.5.0",
@@ -80,9 +84,11 @@
80
84
  "@testing-library/react": "^14.1.2",
81
85
  "@testing-library/user-event": "^14.6.0",
82
86
  "antd": "^5.23.1",
87
+ "chalk": "^5.4.1",
83
88
  "clsx": "^1.1.0",
84
89
  "date-fns": "^3.6.0",
85
90
  "react-error-boundary": "^4.0.11",
91
+ "react-toastify": "^11.0.3",
86
92
  "rollup-plugin-css-only": "^4.5.2",
87
93
  "styled-components": "^6.1.14",
88
94
  "vite-plugin-css-injected-by-js": "^3.3.0",
@@ -1,369 +0,0 @@
1
- import { _ as S, d as P, c as oe, a as b, B as Ze, e as p, k as et, O as tt } from "./index-BWys7dkb.js";
2
- import * as r from "react";
3
- import nt, { useState as se, useMemo as Ce, useCallback as Oe } from "react";
4
- import { I as rt } from "./AntdIcon-Bsnbyy6g.js";
5
- import { K as E, i as at } from "./index-VDH3iLaC.js";
6
- import { R as Ie } from "./index-BQO27mgE.js";
7
- import { r as it } from "./index-BPtFqhcp.js";
8
- var st = { icon: { tag: "svg", attrs: { "fill-rule": "evenodd", viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" } }] }, name: "close", theme: "outlined" }, ot = function(i, f) {
9
- return /* @__PURE__ */ r.createElement(rt, S({}, i, {
10
- ref: f,
11
- icon: st
12
- }));
13
- }, ft = /* @__PURE__ */ r.forwardRef(ot);
14
- process.env.NODE_ENV !== "production" && (ft.displayName = "CloseOutlined");
15
- const lt = new E("antSlideUpIn", {
16
- "0%": {
17
- transform: "scaleY(0.8)",
18
- transformOrigin: "0% 0%",
19
- opacity: 0
20
- },
21
- "100%": {
22
- transform: "scaleY(1)",
23
- transformOrigin: "0% 0%",
24
- opacity: 1
25
- }
26
- }), ct = new E("antSlideUpOut", {
27
- "0%": {
28
- transform: "scaleY(1)",
29
- transformOrigin: "0% 0%",
30
- opacity: 1
31
- },
32
- "100%": {
33
- transform: "scaleY(0.8)",
34
- transformOrigin: "0% 0%",
35
- opacity: 0
36
- }
37
- }), ut = new E("antSlideDownIn", {
38
- "0%": {
39
- transform: "scaleY(0.8)",
40
- transformOrigin: "100% 100%",
41
- opacity: 0
42
- },
43
- "100%": {
44
- transform: "scaleY(1)",
45
- transformOrigin: "100% 100%",
46
- opacity: 1
47
- }
48
- }), dt = new E("antSlideDownOut", {
49
- "0%": {
50
- transform: "scaleY(1)",
51
- transformOrigin: "100% 100%",
52
- opacity: 1
53
- },
54
- "100%": {
55
- transform: "scaleY(0.8)",
56
- transformOrigin: "100% 100%",
57
- opacity: 0
58
- }
59
- }), mt = new E("antSlideLeftIn", {
60
- "0%": {
61
- transform: "scaleX(0.8)",
62
- transformOrigin: "0% 0%",
63
- opacity: 0
64
- },
65
- "100%": {
66
- transform: "scaleX(1)",
67
- transformOrigin: "0% 0%",
68
- opacity: 1
69
- }
70
- }), vt = new E("antSlideLeftOut", {
71
- "0%": {
72
- transform: "scaleX(1)",
73
- transformOrigin: "0% 0%",
74
- opacity: 1
75
- },
76
- "100%": {
77
- transform: "scaleX(0.8)",
78
- transformOrigin: "0% 0%",
79
- opacity: 0
80
- }
81
- }), yt = new E("antSlideRightIn", {
82
- "0%": {
83
- transform: "scaleX(0.8)",
84
- transformOrigin: "100% 0%",
85
- opacity: 0
86
- },
87
- "100%": {
88
- transform: "scaleX(1)",
89
- transformOrigin: "100% 0%",
90
- opacity: 1
91
- }
92
- }), pt = new E("antSlideRightOut", {
93
- "0%": {
94
- transform: "scaleX(1)",
95
- transformOrigin: "100% 0%",
96
- opacity: 1
97
- },
98
- "100%": {
99
- transform: "scaleX(0.8)",
100
- transformOrigin: "100% 0%",
101
- opacity: 0
102
- }
103
- }), gt = {
104
- "slide-up": {
105
- inKeyframes: lt,
106
- outKeyframes: ct
107
- },
108
- "slide-down": {
109
- inKeyframes: ut,
110
- outKeyframes: dt
111
- },
112
- "slide-left": {
113
- inKeyframes: mt,
114
- outKeyframes: vt
115
- },
116
- "slide-right": {
117
- inKeyframes: yt,
118
- outKeyframes: pt
119
- }
120
- }, $t = (e, i) => {
121
- const {
122
- antCls: f
123
- } = e, s = `${f}-${i}`, {
124
- inKeyframes: l,
125
- outKeyframes: a
126
- } = gt[i];
127
- return [at(s, l, a, e.motionDurationMid), {
128
- [`
129
- ${s}-enter,
130
- ${s}-appear
131
- `]: {
132
- transform: "scale(0)",
133
- transformOrigin: "0% 0%",
134
- opacity: 0,
135
- animationTimingFunction: e.motionEaseOutQuint,
136
- "&-prepare": {
137
- transform: "scale(1)"
138
- }
139
- },
140
- [`${s}-leave`]: {
141
- animationTimingFunction: e.motionEaseInQuint
142
- }
143
- }];
144
- };
145
- var Rt = ["prefixCls", "invalidate", "item", "renderItem", "responsive", "responsiveDisabled", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"], x = void 0;
146
- function St(e, i) {
147
- var f = e.prefixCls, s = e.invalidate, l = e.item, a = e.renderItem, c = e.responsive, g = e.responsiveDisabled, m = e.registerSize, C = e.itemKey, O = e.className, Q = e.style, H = e.children, q = e.display, u = e.order, W = e.component, L = W === void 0 ? "div" : W, K = P(e, Rt), v = c && !q;
148
- function U(R) {
149
- m(C, R);
150
- }
151
- r.useEffect(function() {
152
- return function() {
153
- U(null);
154
- };
155
- }, []);
156
- var J = a && l !== x ? a(l, {
157
- index: u
158
- }) : H, I;
159
- s || (I = {
160
- opacity: v ? 0 : 1,
161
- height: v ? 0 : x,
162
- overflowY: v ? "hidden" : x,
163
- order: c ? u : x,
164
- pointerEvents: v ? "none" : x,
165
- position: v ? "absolute" : x
166
- });
167
- var X = {};
168
- v && (X["aria-hidden"] = !0);
169
- var h = /* @__PURE__ */ r.createElement(L, S({
170
- className: oe(!s && f, O),
171
- style: b(b({}, I), Q)
172
- }, X, K, {
173
- ref: i
174
- }), J);
175
- return c && (h = /* @__PURE__ */ r.createElement(Ie, {
176
- onResize: function(Z) {
177
- var A = Z.offsetWidth;
178
- U(A);
179
- },
180
- disabled: g
181
- }, h)), h;
182
- }
183
- var $ = /* @__PURE__ */ r.forwardRef(St);
184
- $.displayName = "Item";
185
- function Et(e) {
186
- if (typeof MessageChannel > "u")
187
- Ze(e);
188
- else {
189
- var i = new MessageChannel();
190
- i.port1.onmessage = function() {
191
- return e();
192
- }, i.port2.postMessage(void 0);
193
- }
194
- }
195
- function ht() {
196
- var e = r.useRef(null), i = function(s) {
197
- e.current || (e.current = [], Et(function() {
198
- it.unstable_batchedUpdates(function() {
199
- e.current.forEach(function(l) {
200
- l();
201
- }), e.current = null;
202
- });
203
- })), e.current.push(s);
204
- };
205
- return i;
206
- }
207
- function M(e, i) {
208
- var f = r.useState(i), s = p(f, 2), l = s[0], a = s[1], c = et(function(g) {
209
- e(function() {
210
- a(g);
211
- });
212
- });
213
- return [l, c];
214
- }
215
- var j = /* @__PURE__ */ nt.createContext(null), wt = ["component"], _t = ["className"], Ct = ["className"], Ot = function(i, f) {
216
- var s = r.useContext(j);
217
- if (!s) {
218
- var l = i.component, a = l === void 0 ? "div" : l, c = P(i, wt);
219
- return /* @__PURE__ */ r.createElement(a, S({}, c, {
220
- ref: f
221
- }));
222
- }
223
- var g = s.className, m = P(s, _t), C = i.className, O = P(i, Ct);
224
- return /* @__PURE__ */ r.createElement(j.Provider, {
225
- value: null
226
- }, /* @__PURE__ */ r.createElement($, S({
227
- ref: f,
228
- className: oe(g, C)
229
- }, m, O)));
230
- }, Ne = /* @__PURE__ */ r.forwardRef(Ot);
231
- Ne.displayName = "RawItem";
232
- var It = ["prefixCls", "data", "renderItem", "renderRawItem", "itemKey", "itemWidth", "ssr", "style", "className", "maxCount", "renderRest", "renderRawRest", "suffix", "component", "itemComponent", "onVisibleChange"], xe = "responsive", be = "invalidate";
233
- function Nt(e) {
234
- return "+ ".concat(e.length, " ...");
235
- }
236
- function xt(e, i) {
237
- var f = e.prefixCls, s = f === void 0 ? "rc-overflow" : f, l = e.data, a = l === void 0 ? [] : l, c = e.renderItem, g = e.renderRawItem, m = e.itemKey, C = e.itemWidth, O = C === void 0 ? 10 : C, Q = e.ssr, H = e.style, q = e.className, u = e.maxCount, W = e.renderRest, L = e.renderRawRest, K = e.suffix, v = e.component, U = v === void 0 ? "div" : v, J = e.itemComponent, I = e.onVisibleChange, X = P(e, It), h = Q === "full", R = ht(), Z = M(R, null), A = p(Z, 2), Y = A[0], Ke = A[1], w = Y || 0, De = M(R, /* @__PURE__ */ new Map()), fe = p(De, 2), le = fe[0], ze = fe[1], Me = M(R, 0), ce = p(Me, 2), Pe = ce[0], $e = ce[1], We = M(R, 0), ue = p(We, 2), V = ue[0], Le = ue[1], Ue = M(R, 0), de = p(Ue, 2), F = de[0], Xe = de[1], Ae = se(null), me = p(Ae, 2), ee = me[0], ve = me[1], Ye = se(null), ye = p(Ye, 2), T = ye[0], Ve = ye[1], N = r.useMemo(function() {
238
- return T === null && h ? Number.MAX_SAFE_INTEGER : T || 0;
239
- }, [T, Y]), Fe = se(!1), pe = p(Fe, 2), Te = pe[0], ke = pe[1], te = "".concat(s, "-item"), ge = Math.max(Pe, V), ne = u === xe, y = a.length && ne, Re = u === be, Be = y || typeof u == "number" && a.length > u, _ = Ce(function() {
240
- var t = a;
241
- return y ? Y === null && h ? t = a : t = a.slice(0, Math.min(a.length, w / O)) : typeof u == "number" && (t = a.slice(0, u)), t;
242
- }, [a, O, Y, u, y]), re = Ce(function() {
243
- return y ? a.slice(N + 1) : a.slice(_.length);
244
- }, [a, _, y, N]), k = Oe(function(t, n) {
245
- var o;
246
- return typeof m == "function" ? m(t) : (o = m && (t == null ? void 0 : t[m])) !== null && o !== void 0 ? o : n;
247
- }, [m]), je = Oe(c || function(t) {
248
- return t;
249
- }, [c]);
250
- function B(t, n, o) {
251
- T === t && (n === void 0 || n === ee) || (Ve(t), o || (ke(t < a.length - 1), I == null || I(t)), n !== void 0 && ve(n));
252
- }
253
- function Ge(t, n) {
254
- Ke(n.clientWidth);
255
- }
256
- function Se(t, n) {
257
- ze(function(o) {
258
- var d = new Map(o);
259
- return n === null ? d.delete(t) : d.set(t, n), d;
260
- });
261
- }
262
- function Qe(t, n) {
263
- Le(n), $e(V);
264
- }
265
- function He(t, n) {
266
- Xe(n);
267
- }
268
- function ae(t) {
269
- return le.get(k(_[t], t));
270
- }
271
- tt(function() {
272
- if (w && typeof ge == "number" && _) {
273
- var t = F, n = _.length, o = n - 1;
274
- if (!n) {
275
- B(0, null);
276
- return;
277
- }
278
- for (var d = 0; d < n; d += 1) {
279
- var z = ae(d);
280
- if (h && (z = z || 0), z === void 0) {
281
- B(d - 1, void 0, !0);
282
- break;
283
- }
284
- if (t += z, // Only one means `totalWidth` is the final width
285
- o === 0 && t <= w || // Last two width will be the final width
286
- d === o - 1 && t + ae(o) <= w) {
287
- B(o, null);
288
- break;
289
- } else if (t + ge > w) {
290
- B(d - 1, t - z - F + V);
291
- break;
292
- }
293
- }
294
- K && ae(0) + F > w && ve(null);
295
- }
296
- }, [w, le, V, F, k, _]);
297
- var Ee = Te && !!re.length, he = {};
298
- ee !== null && y && (he = {
299
- position: "absolute",
300
- left: ee,
301
- top: 0
302
- });
303
- var D = {
304
- prefixCls: te,
305
- responsive: y,
306
- component: J,
307
- invalidate: Re
308
- }, qe = g ? function(t, n) {
309
- var o = k(t, n);
310
- return /* @__PURE__ */ r.createElement(j.Provider, {
311
- key: o,
312
- value: b(b({}, D), {}, {
313
- order: n,
314
- item: t,
315
- itemKey: o,
316
- registerSize: Se,
317
- display: n <= N
318
- })
319
- }, g(t, n));
320
- } : function(t, n) {
321
- var o = k(t, n);
322
- return /* @__PURE__ */ r.createElement($, S({}, D, {
323
- order: n,
324
- key: o,
325
- item: t,
326
- renderItem: je,
327
- itemKey: o,
328
- registerSize: Se,
329
- display: n <= N
330
- }));
331
- }, we = {
332
- order: Ee ? N : Number.MAX_SAFE_INTEGER,
333
- className: "".concat(te, "-rest"),
334
- registerSize: Qe,
335
- display: Ee
336
- }, ie = W || Nt, Je = L ? /* @__PURE__ */ r.createElement(j.Provider, {
337
- value: b(b({}, D), we)
338
- }, L(re)) : /* @__PURE__ */ r.createElement($, S({}, D, we), typeof ie == "function" ? ie(re) : ie), _e = /* @__PURE__ */ r.createElement(U, S({
339
- className: oe(!Re && s, q),
340
- style: H,
341
- ref: i
342
- }, X), _.map(qe), Be ? Je : null, K && /* @__PURE__ */ r.createElement($, S({}, D, {
343
- responsive: ne,
344
- responsiveDisabled: !y,
345
- order: N,
346
- className: "".concat(te, "-suffix"),
347
- registerSize: He,
348
- display: !0,
349
- style: he
350
- }), K));
351
- return ne ? /* @__PURE__ */ r.createElement(Ie, {
352
- onResize: Ge,
353
- disabled: !y
354
- }, _e) : _e;
355
- }
356
- var G = /* @__PURE__ */ r.forwardRef(xt);
357
- G.displayName = "Overflow";
358
- G.Item = Ne;
359
- G.RESPONSIVE = xe;
360
- G.INVALIDATE = be;
361
- export {
362
- G as F,
363
- ft as R,
364
- ut as a,
365
- ct as b,
366
- dt as c,
367
- $t as i,
368
- lt as s
369
- };
@@ -1,12 +0,0 @@
1
- import { default as React } from 'react';
2
- import { ButtonProps as AntButtonProps } from 'antd/es/button';
3
-
4
- export interface ButtonProps extends AntButtonProps {
5
- onClick: () => void;
6
- children?: React.ReactNode;
7
- type?: "primary" | "secondary" | "tertiary";
8
- state?: keyof typeof STATE;
9
- isIconButton?: boolean;
10
- }
11
- declare const Button: React.FC<Props>;
12
- export default Button;
@@ -1,27 +0,0 @@
1
- import { jsx as n } from "react/jsx-runtime";
2
- import { Button as m } from "./styles.js";
3
- import { useBreakpoint as p } from "../../../providers/ThemeProvider.js";
4
- const f = ({
5
- children: o,
6
- onClick: r,
7
- type: i = "primary",
8
- state: t = "active",
9
- ...a
10
- }) => {
11
- const e = p();
12
- return /* @__PURE__ */ n(
13
- m,
14
- {
15
- onClick: r,
16
- type: i,
17
- state: t,
18
- breakpoint: e,
19
- disabled: t === "disabled",
20
- ...a,
21
- children: o
22
- }
23
- );
24
- };
25
- export {
26
- f as default
27
- };
@@ -1,12 +0,0 @@
1
- import { ButtonProps as AntButtonProps } from 'antd/es/button';
2
- import { GenesisTheme } from '@styles/theme/genesis-theme.types';
3
- import { ButtonType } from './Button';
4
-
5
- interface StyledButtonProps extends AntButtonProps {
6
- theme?: GenesisTheme;
7
- type?: ButtonType;
8
- state?: "active" | "hover" | "pressed" | "focus" | "disabled";
9
- children?: React.ReactNode;
10
- }
11
- export declare const Button: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components/dist/types').BaseObject, never>> & string & Omit<StyledButtonProps, keyof import('react').Component<any, {}, any>>;
12
- export {};
@@ -1,13 +0,0 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { StyledCheckbox as t } from "./styles.js";
3
- import { useBreakpoint as d } from "../../../providers/ThemeProvider.js";
4
- const s = ({ state: o = "active", ...e }) => (d(), /* @__PURE__ */ r(
5
- t,
6
- {
7
- ...e,
8
- disabled: o === "disabled" || e.disabled
9
- }
10
- ));
11
- export {
12
- s as default
13
- };
@@ -1 +0,0 @@
1
- export * from './button';
@@ -1,3 +0,0 @@
1
- import "react/jsx-runtime";
2
- import "./button/styles.js";
3
- import "../../providers/ThemeProvider.js";
@@ -1,12 +0,0 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { Input as o } from "./styles.js";
3
- import { useBreakpoint as p } from "../../../providers/ThemeProvider.js";
4
- import { TYPE as m, STATE as e } from "../../../constants/index.js";
5
- const I = ({
6
- type: a = m.primary,
7
- state: i = e.active,
8
- ...t
9
- }) => (p(), /* @__PURE__ */ r(o, { ...t }));
10
- export {
11
- I as default
12
- };
@@ -1,28 +0,0 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { d as r, i as o, a as s, s as n, g as i } from "../../../../setup-CMYVZCPF.js";
3
- import p from "../Input.js";
4
- import { TYPE as u, STATE as c } from "../../../../constants/index.js";
5
- r("Input Component", () => {
6
- o("customRenders input with default props", () => {
7
- s(/* @__PURE__ */ e(p, {}));
8
- const t = n.getByRole("textbox");
9
- i(t).toBeInTheDocument();
10
- }), o("customRenders input with primary type", () => {
11
- s(/* @__PURE__ */ e(p, { type: u.primary }));
12
- const t = n.getByRole("textbox");
13
- i(t).toHaveAttribute("type", "text");
14
- }), o("customRenders input with active state", () => {
15
- s(/* @__PURE__ */ e(p, { state: c.active }));
16
- const t = n.getByRole("textbox");
17
- i(t).toBeEnabled();
18
- }), o("passes through additional props", () => {
19
- const t = "Enter text";
20
- s(/* @__PURE__ */ e(p, { placeholder: t }));
21
- const a = n.getByPlaceholderText(t);
22
- i(a).toBeInTheDocument();
23
- }), o("handles disabled state", () => {
24
- s(/* @__PURE__ */ e(p, { disabled: !0 }));
25
- const t = n.getByRole("textbox");
26
- i(t).toBeDisabled();
27
- });
28
- });