@clicoh/orion-library 1.0.18 → 1.1.0-beta.0

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 (219) hide show
  1. package/assets/css/base.css +42 -6
  2. package/dist/components/00-base/RootLayout/RootLayout.d.ts.map +1 -1
  3. package/dist/components/00-base/RootLayout/RootLayout.jsx +7 -3
  4. package/dist/components/00-base/RootLayout/RootLayout.jsx.map +1 -1
  5. package/dist/components/01-atoms/Badge/Badge.d.ts.map +1 -1
  6. package/dist/components/01-atoms/Badge/Badge.jsx +7 -7
  7. package/dist/components/01-atoms/Badge/Badge.jsx.map +1 -1
  8. package/dist/components/01-atoms/Button/Button.jsx +2 -2
  9. package/dist/components/01-atoms/Button/Button.jsx.map +1 -1
  10. package/dist/components/01-atoms/Checkbox/Checkbox.d.ts.map +1 -1
  11. package/dist/components/01-atoms/Checkbox/Checkbox.jsx +17 -11
  12. package/dist/components/01-atoms/Checkbox/Checkbox.jsx.map +1 -1
  13. package/dist/components/01-atoms/FileUpload/FileUpload.d.ts +2 -0
  14. package/dist/components/01-atoms/FileUpload/FileUpload.d.ts.map +1 -1
  15. package/dist/components/01-atoms/FileUpload/FileUpload.jsx +21 -15
  16. package/dist/components/01-atoms/FileUpload/FileUpload.jsx.map +1 -1
  17. package/dist/components/01-atoms/Input/Input.d.ts +3 -1
  18. package/dist/components/01-atoms/Input/Input.d.ts.map +1 -1
  19. package/dist/components/01-atoms/Input/Input.jsx +28 -18
  20. package/dist/components/01-atoms/Input/Input.jsx.map +1 -1
  21. package/dist/components/01-atoms/Input/utils/RenderErrorOrHelperText.d.ts +5 -3
  22. package/dist/components/01-atoms/Input/utils/RenderErrorOrHelperText.d.ts.map +1 -1
  23. package/dist/components/01-atoms/Input/utils/RenderErrorOrHelperText.jsx +4 -4
  24. package/dist/components/01-atoms/Input/utils/RenderErrorOrHelperText.jsx.map +1 -1
  25. package/dist/components/01-atoms/Input/utils/border.d.ts.map +1 -1
  26. package/dist/components/01-atoms/Input/utils/border.js +4 -2
  27. package/dist/components/01-atoms/Input/utils/border.js.map +1 -1
  28. package/dist/components/01-atoms/Logo/Logo.d.ts +1 -1
  29. package/dist/components/01-atoms/Logo/Logo.d.ts.map +1 -1
  30. package/dist/components/01-atoms/Logo/Logo.jsx +3 -2
  31. package/dist/components/01-atoms/Logo/Logo.jsx.map +1 -1
  32. package/dist/components/01-atoms/MultiSelect/MultiSelect.d.ts +3 -1
  33. package/dist/components/01-atoms/MultiSelect/MultiSelect.d.ts.map +1 -1
  34. package/dist/components/01-atoms/MultiSelect/MultiSelect.jsx +112 -35
  35. package/dist/components/01-atoms/MultiSelect/MultiSelect.jsx.map +1 -1
  36. package/dist/components/01-atoms/OtpInput/OtpInput.d.ts +4 -2
  37. package/dist/components/01-atoms/OtpInput/OtpInput.d.ts.map +1 -1
  38. package/dist/components/01-atoms/OtpInput/OtpInput.jsx +14 -8
  39. package/dist/components/01-atoms/OtpInput/OtpInput.jsx.map +1 -1
  40. package/dist/components/01-atoms/RadialProgressBar/RadialProgressBar.d.ts.map +1 -1
  41. package/dist/components/01-atoms/RadialProgressBar/RadialProgressBar.jsx +4 -4
  42. package/dist/components/01-atoms/RadialProgressBar/RadialProgressBar.jsx.map +1 -1
  43. package/dist/components/01-atoms/Radio/Radio.d.ts.map +1 -1
  44. package/dist/components/01-atoms/Radio/Radio.jsx +24 -31
  45. package/dist/components/01-atoms/Radio/Radio.jsx.map +1 -1
  46. package/dist/components/01-atoms/Select/Select.d.ts.map +1 -1
  47. package/dist/components/01-atoms/Select/Select.jsx +18 -19
  48. package/dist/components/01-atoms/Select/Select.jsx.map +1 -1
  49. package/dist/components/01-atoms/Spinner/Spinner.d.ts +6 -1
  50. package/dist/components/01-atoms/Spinner/Spinner.d.ts.map +1 -1
  51. package/dist/components/01-atoms/Spinner/Spinner.jsx +3 -4
  52. package/dist/components/01-atoms/Spinner/Spinner.jsx.map +1 -1
  53. package/dist/components/01-atoms/Switch/Switch.d.ts.map +1 -1
  54. package/dist/components/01-atoms/Switch/Switch.jsx +6 -5
  55. package/dist/components/01-atoms/Switch/Switch.jsx.map +1 -1
  56. package/dist/components/01-atoms/ThemeSwitch/ThemeSwitch.d.ts +8 -0
  57. package/dist/components/01-atoms/ThemeSwitch/ThemeSwitch.d.ts.map +1 -0
  58. package/dist/components/01-atoms/ThemeSwitch/ThemeSwitch.jsx +17 -0
  59. package/dist/components/01-atoms/ThemeSwitch/ThemeSwitch.jsx.map +1 -0
  60. package/dist/components/01-atoms/ThemeSwitch/index.d.ts +2 -0
  61. package/dist/components/01-atoms/ThemeSwitch/index.d.ts.map +1 -0
  62. package/dist/components/01-atoms/ThemeSwitch/index.js +2 -0
  63. package/dist/components/01-atoms/ThemeSwitch/index.js.map +1 -0
  64. package/dist/components/01-atoms/Toast/Toast.d.ts.map +1 -1
  65. package/dist/components/01-atoms/Toast/Toast.jsx +9 -11
  66. package/dist/components/01-atoms/Toast/Toast.jsx.map +1 -1
  67. package/dist/components/01-atoms/Tooltip/Tooltip.d.ts.map +1 -1
  68. package/dist/components/01-atoms/Tooltip/Tooltip.jsx +2 -2
  69. package/dist/components/01-atoms/Tooltip/Tooltip.jsx.map +1 -1
  70. package/dist/components/01-atoms/index.d.ts +1 -0
  71. package/dist/components/01-atoms/index.d.ts.map +1 -1
  72. package/dist/components/01-atoms/index.js +1 -0
  73. package/dist/components/01-atoms/index.js.map +1 -1
  74. package/dist/components/02-molecules/Accordion/AccordionSection.d.ts.map +1 -1
  75. package/dist/components/02-molecules/Accordion/AccordionSection.jsx +14 -10
  76. package/dist/components/02-molecules/Accordion/AccordionSection.jsx.map +1 -1
  77. package/dist/components/02-molecules/Autocomplete/Autocomplete.d.ts +4 -1
  78. package/dist/components/02-molecules/Autocomplete/Autocomplete.d.ts.map +1 -1
  79. package/dist/components/02-molecules/Autocomplete/Autocomplete.jsx +68 -8
  80. package/dist/components/02-molecules/Autocomplete/Autocomplete.jsx.map +1 -1
  81. package/dist/components/02-molecules/Avatar/Avatar.d.ts +3 -2
  82. package/dist/components/02-molecules/Avatar/Avatar.d.ts.map +1 -1
  83. package/dist/components/02-molecules/Avatar/Avatar.jsx +22 -5
  84. package/dist/components/02-molecules/Avatar/Avatar.jsx.map +1 -1
  85. package/dist/components/02-molecules/Avatar/AvatarItem.d.ts.map +1 -1
  86. package/dist/components/02-molecules/Avatar/AvatarItem.jsx +3 -3
  87. package/dist/components/02-molecules/Avatar/AvatarItem.jsx.map +1 -1
  88. package/dist/components/02-molecules/BellNotifications/BellNotification.d.ts +4 -1
  89. package/dist/components/02-molecules/BellNotifications/BellNotification.d.ts.map +1 -1
  90. package/dist/components/02-molecules/BellNotifications/BellNotification.jsx +24 -6
  91. package/dist/components/02-molecules/BellNotifications/BellNotification.jsx.map +1 -1
  92. package/dist/components/02-molecules/BellNotifications/NotificationPanel.d.ts +4 -1
  93. package/dist/components/02-molecules/BellNotifications/NotificationPanel.d.ts.map +1 -1
  94. package/dist/components/02-molecules/BellNotifications/NotificationPanel.jsx +48 -41
  95. package/dist/components/02-molecules/BellNotifications/NotificationPanel.jsx.map +1 -1
  96. package/dist/components/02-molecules/Breadcrumb/Breadcrumb.d.ts +3 -1
  97. package/dist/components/02-molecules/Breadcrumb/Breadcrumb.d.ts.map +1 -1
  98. package/dist/components/02-molecules/Breadcrumb/Breadcrumb.jsx +7 -7
  99. package/dist/components/02-molecules/Breadcrumb/Breadcrumb.jsx.map +1 -1
  100. package/dist/components/02-molecules/Breadcrumb/BreadcrumbSkeleton.d.ts +6 -2
  101. package/dist/components/02-molecules/Breadcrumb/BreadcrumbSkeleton.d.ts.map +1 -1
  102. package/dist/components/02-molecules/Breadcrumb/BreadcrumbSkeleton.jsx +3 -4
  103. package/dist/components/02-molecules/Breadcrumb/BreadcrumbSkeleton.jsx.map +1 -1
  104. package/dist/components/02-molecules/ButtonGroup/ButtonGroup.d.ts +1 -0
  105. package/dist/components/02-molecules/ButtonGroup/ButtonGroup.d.ts.map +1 -1
  106. package/dist/components/02-molecules/ButtonGroup/ButtonGroup.jsx +4 -3
  107. package/dist/components/02-molecules/ButtonGroup/ButtonGroup.jsx.map +1 -1
  108. package/dist/components/02-molecules/Dropdown/Dropdown.d.ts.map +1 -1
  109. package/dist/components/02-molecules/Dropdown/Dropdown.jsx +110 -19
  110. package/dist/components/02-molecules/Dropdown/Dropdown.jsx.map +1 -1
  111. package/dist/components/02-molecules/Filter/Filter.d.ts +4 -1
  112. package/dist/components/02-molecules/Filter/Filter.d.ts.map +1 -1
  113. package/dist/components/02-molecules/Filter/Filter.jsx +11 -8
  114. package/dist/components/02-molecules/Filter/Filter.jsx.map +1 -1
  115. package/dist/components/02-molecules/Menu/MenuItem.d.ts +4 -1
  116. package/dist/components/02-molecules/Menu/MenuItem.d.ts.map +1 -1
  117. package/dist/components/02-molecules/Menu/MenuItem.jsx +56 -28
  118. package/dist/components/02-molecules/Menu/MenuItem.jsx.map +1 -1
  119. package/dist/components/02-molecules/Menu/MenuList.d.ts +5 -2
  120. package/dist/components/02-molecules/Menu/MenuList.d.ts.map +1 -1
  121. package/dist/components/02-molecules/Menu/MenuList.jsx +60 -16
  122. package/dist/components/02-molecules/Menu/MenuList.jsx.map +1 -1
  123. package/dist/components/02-molecules/Modal/Modal.d.ts +5 -1
  124. package/dist/components/02-molecules/Modal/Modal.d.ts.map +1 -1
  125. package/dist/components/02-molecules/Modal/Modal.jsx +25 -10
  126. package/dist/components/02-molecules/Modal/Modal.jsx.map +1 -1
  127. package/dist/components/02-molecules/Modal/useDialogFocus.d.ts +10 -0
  128. package/dist/components/02-molecules/Modal/useDialogFocus.d.ts.map +1 -0
  129. package/dist/components/02-molecules/Modal/useDialogFocus.js +73 -0
  130. package/dist/components/02-molecules/Modal/useDialogFocus.js.map +1 -0
  131. package/dist/components/02-molecules/Pagination/Pagination.d.ts +5 -1
  132. package/dist/components/02-molecules/Pagination/Pagination.d.ts.map +1 -1
  133. package/dist/components/02-molecules/Pagination/Pagination.jsx +18 -15
  134. package/dist/components/02-molecules/Pagination/Pagination.jsx.map +1 -1
  135. package/dist/components/02-molecules/SlideOver/SlideOver.d.ts +6 -2
  136. package/dist/components/02-molecules/SlideOver/SlideOver.d.ts.map +1 -1
  137. package/dist/components/02-molecules/SlideOver/SlideOver.jsx +17 -15
  138. package/dist/components/02-molecules/SlideOver/SlideOver.jsx.map +1 -1
  139. package/dist/components/02-molecules/Tab/TabItem.d.ts +2 -2
  140. package/dist/components/02-molecules/Tab/TabItem.d.ts.map +1 -1
  141. package/dist/components/02-molecules/Tab/TabItem.jsx +4 -5
  142. package/dist/components/02-molecules/Tab/TabItem.jsx.map +1 -1
  143. package/dist/components/02-molecules/Tab/TabList.d.ts.map +1 -1
  144. package/dist/components/02-molecules/Tab/TabList.jsx +42 -13
  145. package/dist/components/02-molecules/Tab/TabList.jsx.map +1 -1
  146. package/dist/components/02-molecules/Table/Table.d.ts +5 -1
  147. package/dist/components/02-molecules/Table/Table.d.ts.map +1 -1
  148. package/dist/components/02-molecules/Table/Table.jsx +31 -14
  149. package/dist/components/02-molecules/Table/Table.jsx.map +1 -1
  150. package/dist/components/02-molecules/Table/TableEmpty.d.ts.map +1 -1
  151. package/dist/components/02-molecules/Table/TableEmpty.jsx +2 -2
  152. package/dist/components/02-molecules/Table/TableEmpty.jsx.map +1 -1
  153. package/dist/components/02-molecules/Table/TableSkeleton.jsx +2 -2
  154. package/dist/components/02-molecules/Table/TableSkeleton.jsx.map +1 -1
  155. package/dist/components/02-molecules/TimePicker/TimePicker.d.ts +6 -1
  156. package/dist/components/02-molecules/TimePicker/TimePicker.d.ts.map +1 -1
  157. package/dist/components/02-molecules/TimePicker/TimePicker.jsx +11 -11
  158. package/dist/components/02-molecules/TimePicker/TimePicker.jsx.map +1 -1
  159. package/dist/components/03-organisms/AsideFilters/AsideFilters.jsx +1 -1
  160. package/dist/components/03-organisms/AsideFilters/AsideFilters.jsx.map +1 -1
  161. package/dist/components/03-organisms/DataTable/DataTable.d.ts +2 -2
  162. package/dist/components/03-organisms/DataTable/DataTable.d.ts.map +1 -1
  163. package/dist/components/03-organisms/DataTable/DataTable.jsx +1 -1
  164. package/dist/components/03-organisms/DataTable/DataTable.jsx.map +1 -1
  165. package/dist/components/03-organisms/Header/Header.d.ts +3 -1
  166. package/dist/components/03-organisms/Header/Header.d.ts.map +1 -1
  167. package/dist/components/03-organisms/Header/Header.jsx +4 -3
  168. package/dist/components/03-organisms/Header/Header.jsx.map +1 -1
  169. package/dist/components/03-organisms/ModalMultiple/ModalMultiple.d.ts +9 -5
  170. package/dist/components/03-organisms/ModalMultiple/ModalMultiple.d.ts.map +1 -1
  171. package/dist/components/03-organisms/ModalMultiple/ModalMultiple.jsx +25 -12
  172. package/dist/components/03-organisms/ModalMultiple/ModalMultiple.jsx.map +1 -1
  173. package/dist/components/04-templates/DashboardTemplate/DashboardTemplate.d.ts +3 -1
  174. package/dist/components/04-templates/DashboardTemplate/DashboardTemplate.d.ts.map +1 -1
  175. package/dist/components/04-templates/DashboardTemplate/DashboardTemplate.jsx +5 -5
  176. package/dist/components/04-templates/DashboardTemplate/DashboardTemplate.jsx.map +1 -1
  177. package/dist/components/04-templates/DashboardTemplate/HeadingWithTitleSkeleton.d.ts +6 -2
  178. package/dist/components/04-templates/DashboardTemplate/HeadingWithTitleSkeleton.d.ts.map +1 -1
  179. package/dist/components/04-templates/DashboardTemplate/HeadingWithTitleSkeleton.jsx +3 -4
  180. package/dist/components/04-templates/DashboardTemplate/HeadingWithTitleSkeleton.jsx.map +1 -1
  181. package/dist/components/04-templates/LoginTemplate/LoginForm.d.ts +7 -1
  182. package/dist/components/04-templates/LoginTemplate/LoginForm.d.ts.map +1 -1
  183. package/dist/components/04-templates/LoginTemplate/LoginForm.jsx +7 -7
  184. package/dist/components/04-templates/LoginTemplate/LoginForm.jsx.map +1 -1
  185. package/dist/components/04-templates/LoginTemplate/LoginTemplate.d.ts +1 -0
  186. package/dist/components/04-templates/LoginTemplate/LoginTemplate.d.ts.map +1 -1
  187. package/dist/components/04-templates/LoginTemplate/LoginTemplate.jsx +4 -4
  188. package/dist/components/04-templates/LoginTemplate/LoginTemplate.jsx.map +1 -1
  189. package/dist/components/04-templates/LoginTemplate/SetupMfa/StepFour.d.ts.map +1 -1
  190. package/dist/components/04-templates/LoginTemplate/SetupMfa/StepFour.jsx +3 -3
  191. package/dist/components/04-templates/LoginTemplate/SetupMfa/StepFour.jsx.map +1 -1
  192. package/dist/components/04-templates/LoginTemplate/SetupMfa/StepOne.d.ts +2 -1
  193. package/dist/components/04-templates/LoginTemplate/SetupMfa/StepOne.d.ts.map +1 -1
  194. package/dist/components/04-templates/LoginTemplate/SetupMfa/StepOne.jsx +5 -5
  195. package/dist/components/04-templates/LoginTemplate/SetupMfa/StepOne.jsx.map +1 -1
  196. package/dist/components/04-templates/LoginTemplate/SetupMfa/StepThree.d.ts +3 -1
  197. package/dist/components/04-templates/LoginTemplate/SetupMfa/StepThree.d.ts.map +1 -1
  198. package/dist/components/04-templates/LoginTemplate/SetupMfa/StepThree.jsx +9 -9
  199. package/dist/components/04-templates/LoginTemplate/SetupMfa/StepThree.jsx.map +1 -1
  200. package/dist/components/04-templates/LoginTemplate/SetupMfa/StepTwo.d.ts +2 -1
  201. package/dist/components/04-templates/LoginTemplate/SetupMfa/StepTwo.d.ts.map +1 -1
  202. package/dist/components/04-templates/LoginTemplate/SetupMfa/StepTwo.jsx +6 -6
  203. package/dist/components/04-templates/LoginTemplate/SetupMfa/StepTwo.jsx.map +1 -1
  204. package/dist/components/04-templates/LoginTemplate/SetupMfa/index.d.ts +11 -1
  205. package/dist/components/04-templates/LoginTemplate/SetupMfa/index.d.ts.map +1 -1
  206. package/dist/components/04-templates/LoginTemplate/SetupMfa/index.jsx +16 -6
  207. package/dist/components/04-templates/LoginTemplate/SetupMfa/index.jsx.map +1 -1
  208. package/dist/components/04-templates/SideFilterTemplate/SideFilterTemplate.d.ts.map +1 -1
  209. package/dist/components/04-templates/SideFilterTemplate/SideFilterTemplate.jsx +5 -3
  210. package/dist/components/04-templates/SideFilterTemplate/SideFilterTemplate.jsx.map +1 -1
  211. package/dist/hooks/index.d.ts +2 -0
  212. package/dist/hooks/index.d.ts.map +1 -1
  213. package/dist/hooks/index.js +1 -0
  214. package/dist/hooks/index.js.map +1 -1
  215. package/dist/hooks/useTheme.d.ts +21 -0
  216. package/dist/hooks/useTheme.d.ts.map +1 -0
  217. package/dist/hooks/useTheme.jsx +82 -0
  218. package/dist/hooks/useTheme.jsx.map +1 -0
  219. package/package.json +3 -2
@@ -45,12 +45,12 @@
45
45
  --color-success-dark-1: #264936;
46
46
 
47
47
  --color-info-1: #e9f2ff;
48
- --color-info-2: #DBEAFE;
48
+ --color-info-2: #dbeafe;
49
49
  --color-info: #297eff;
50
50
  --color-info-dark: #5498ff;
51
51
  --color-info-dark-1: #233554;
52
- --color-info-dark-2: #DBEAFE;
53
- --color-info-dark-3: #1E40AF;
52
+ --color-info-dark-2: #dbeafe;
53
+ --color-info-dark-3: #1e40af;
54
54
 
55
55
  --color-teal-1: #e8fcfa;
56
56
  --color-teal: #25dec8;
@@ -66,7 +66,7 @@
66
66
  --color-pink: #f144d6;
67
67
  --color-pink-dark: #f144d6;
68
68
  --color-pink-dark-1: #222329;
69
- --color-pink-light: #FCDDEC;
69
+ --color-pink-light: #fcddec;
70
70
 
71
71
  --color-violet-1: #fdf8fe;
72
72
  --color-violet: #c854e4;
@@ -103,16 +103,41 @@
103
103
  --body-bg-color: var(--color-white);
104
104
  }
105
105
 
106
- * {
107
- outline: none;
106
+ .dark {
107
+ --body-text-color: var(--color-white);
108
+ --body-bg-color: var(--color-black);
109
+ color-scheme: dark;
110
+ }
111
+
112
+ :focus-visible {
113
+ outline: 2px solid var(--color-lavender);
114
+ outline-offset: 2px;
115
+ }
116
+
117
+ .dark :focus-visible {
118
+ outline-color: var(--color-lavender-dark);
108
119
  }
109
120
 
110
121
  body {
111
122
  color: var(--body-text-color);
112
123
  background: var(--body-bg-color);
124
+ transition:
125
+ color 150ms ease,
126
+ background-color 150ms ease;
113
127
  @apply text-sm;
114
128
  }
115
129
 
130
+ @media (prefers-reduced-motion: reduce) {
131
+ *,
132
+ ::before,
133
+ ::after {
134
+ scroll-behavior: auto !important;
135
+ animation-duration: 0.01ms !important;
136
+ animation-iteration-count: 1 !important;
137
+ transition-duration: 0.01ms !important;
138
+ }
139
+ }
140
+
116
141
  .Toastify__toast-icon {
117
142
  width: 24px;
118
143
  height: 24px;
@@ -121,3 +146,14 @@ body {
121
146
  .Toastify__close-button {
122
147
  align-self: center;
123
148
  }
149
+
150
+ .dark .Toastify__toast {
151
+ --toastify-color-light: var(--color-black-1);
152
+ --toastify-text-color-light: var(--color-white);
153
+ background-color: var(--color-black-1);
154
+ color: var(--color-white);
155
+ }
156
+
157
+ .dark .Toastify__close-button {
158
+ color: var(--color-white);
159
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"RootLayout.d.ts","sourceRoot":"","sources":["../../../../src/components/00-base/RootLayout/RootLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGlC,OAAO,iCAAiC,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGlD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,EAAE,WAAW,GAAG,SAAS,CAmB/D"}
1
+ {"version":3,"file":"RootLayout.d.ts","sourceRoot":"","sources":["../../../../src/components/00-base/RootLayout/RootLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGlC,OAAO,iCAAiC,CAAC;AAEzC,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGlD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,EAAE,WAAW,GAAG,SAAS,CAsB/D"}
@@ -1,6 +1,7 @@
1
1
  import { ToastContainer } from 'react-toastify';
2
2
  import FaviconImg from '../../../../assets/favicon.ico';
3
3
  import '../../../../assets/css/base.css';
4
+ import { ThemeProvider, ThemeScript } from '../../../hooks/useTheme';
4
5
  import { notoSans } from '../typography';
5
6
  /**
6
7
  * RootLayout component for rendering the root layout of the application.
@@ -21,15 +22,18 @@ import { notoSans } from '../typography';
21
22
  * @returns {ReactNode} The rendered RootLayout component.
22
23
  */
23
24
  export function RootLayout({ children }) {
24
- return (<html lang="es" className={notoSans.className}>
25
+ return (<html lang="es" className={notoSans.className} suppressHydrationWarning>
25
26
  <head>
27
+ <ThemeScript />
26
28
  <link rel="shortcut icon" href={FaviconImg.src} type="image/x-icon" sizes="48x48"/>
27
29
  <meta name="author" content="clicOH"/>
28
30
  <link rel="author" href="https://clicoh.com"/>
29
31
  </head>
30
32
  <body className={'antialiased'}>
31
- {children}
32
- <ToastContainer />
33
+ <ThemeProvider>
34
+ {children}
35
+ <ToastContainer />
36
+ </ThemeProvider>
33
37
  </body>
34
38
  </html>);
35
39
  }
@@ -1 +1 @@
1
- {"version":3,"file":"RootLayout.jsx","sourceRoot":"","sources":["../../../../src/components/00-base/RootLayout/RootLayout.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,UAAU,MAAM,gCAAgC,CAAC;AACxD,OAAO,iCAAiC,CAAC;AAEzC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,UAAU,UAAU,CAAC,EAAE,QAAQ,EAAe;IAClD,OAAO,CACL,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,CAC5C;MAAA,CAAC,IAAI,CACH;QAAA,CAAC,IAAI,CACH,GAAG,CAAC,eAAe,CACnB,IAAI,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,CACrB,IAAI,CAAC,cAAc,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C,QAAQ,CAAC,IAAI,CAAC,oBAAoB,EAC9C;MAAA,EAAE,IAAI,CACN;MAAA,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,aAAa,CAAC,CAC7B;QAAA,CAAC,aAAa,CACZ;UAAA,CAAC,QAAQ,CACT;UAAA,CAAC,cAAc,CAAC,AAAD,EACjB;QAAA,EAAE,aAAa,CACjB;MAAA,EAAE,IAAI,CACR;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../../src/components/01-atoms/Badge/Badge.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvD,KAAK,UAAU,GAAG;IAChB,QAAQ,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,UAAU,GAAG,UAAU,CAAC;CAC9E,GAAG,cAAc,CAAC,eAAe,CAAC,CAAC;AAWpC;;;;;;;;;;;;;GAaG;AACH,wBAAgB,KAAK,CAAC,EACpB,QAAQ,EACR,QAAQ,EACR,GAAG,SAAS,EACb,EAAE,UAAU,GAAG,SAAS,CAexB"}
1
+ {"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../../src/components/01-atoms/Badge/Badge.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvD,KAAK,UAAU,GAAG;IAChB,QAAQ,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,UAAU,GAAG,UAAU,CAAC;CAC9E,GAAG,cAAc,CAAC,eAAe,CAAC,CAAC;AAuBpC;;;;;;;;;;;;;GAaG;AACH,wBAAgB,KAAK,CAAC,EACpB,QAAQ,EACR,QAAQ,EACR,GAAG,SAAS,EACb,EAAE,UAAU,GAAG,SAAS,CAexB"}
@@ -1,12 +1,12 @@
1
1
  import clsx from 'clsx';
2
2
  import { Paragraph } from '../Paragraph';
3
3
  const styleMap = {
4
- success: clsx('border-success before:bg-success'),
5
- warning: clsx('border-warning before:bg-warning'),
6
- error: clsx('border-error before:bg-error'),
7
- info: clsx('border-info before:bg-info'),
8
- progress: clsx('border-lavender before:bg-lavender'),
9
- disabled: clsx('border-gray-1 before:bg-gray-1'),
4
+ success: clsx('border-success before:bg-success dark:border-success-dark dark:before:bg-success-dark'),
5
+ warning: clsx('border-warning before:bg-warning dark:border-warning-dark dark:before:bg-warning-dark'),
6
+ error: clsx('border-error before:bg-error dark:border-error-dark dark:before:bg-error-dark'),
7
+ info: clsx('border-info before:bg-info dark:border-info-dark dark:before:bg-info-dark'),
8
+ progress: clsx('border-lavender before:bg-lavender dark:border-lavender-dark dark:before:bg-lavender-dark'),
9
+ disabled: clsx('border-gray-1 before:bg-gray-1 dark:border-gray-2 dark:before:bg-gray-2'),
10
10
  };
11
11
  /**
12
12
  * Badge component used for indicating different statuses.
@@ -25,7 +25,7 @@ const styleMap = {
25
25
  export function Badge({ modifier, children, ...restProps }) {
26
26
  const className = clsx('relative inline-block rounded-full border py-1 pr-2 pl-6', 'before:absolute before:start-3 before:top-[50%] before:-mt-1 before:block before:h-[6px] before:w-[6px] before:rounded-full', styleMap[modifier], restProps.className);
27
27
  return (<span {...restProps} className={className}>
28
- <Paragraph size="chips" className="text-nowrap">
28
+ <Paragraph size="chips" className="text-nowrap dark:text-white">
29
29
  {children}
30
30
  </Paragraph>
31
31
  </span>);
@@ -1 +1 @@
1
- {"version":3,"file":"Badge.jsx","sourceRoot":"","sources":["../../../../src/components/01-atoms/Badge/Badge.tsx"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAMzC,MAAM,QAAQ,GAA2C;IACvD,OAAO,EAAE,IAAI,CAAC,kCAAkC,CAAC;IACjD,OAAO,EAAE,IAAI,CAAC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,EACpB,QAAQ,EACR,QAAQ,EACR,GAAG,SAAS,EACD;IACX,MAAM,SAAS,GAAG,IAAI,CACpB,0DAA0D,EAC1D,6HAA6H,EAC7H,QAAQ,CAAC,QAAQ,CAAC,EAClB,SAAS,CAAC,SAAS,CACpB,CAAC;IAEF,OAAO,CACL,CAAC,IAAI,CAAC,IAAI,SAAS,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,CACxC;MAAA,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,6BAA6B,CAC7D;QAAA,CAAC,QAAQ,CACX;MAAA,EAAE,SAAS,CACb;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import clsx from 'clsx';
2
2
  const styleMap = {
3
3
  principal: clsx('text-white not-disabled:hover:text-black not-disabled:active:text-black disabled:text-white [&:not(:disabled):not(:hover)]:focus:text-white', 'disabled:before:bg-gray-3 not-disabled:active:before:bg-gray-6 before:bg-black not-disabled:hover:before:bg-white [&:not(:disabled):not(:hover)]:focus:before:bg-black', 'disabled:after:bg-gray-3 [&:not(:disabled):not(:hover)]:focus:after:bg-clicoh not-disabled:hover:after:bg-clicoh not-disabled:active:after:bg-clicoh after:bg-black', 'dark:not-disabled:active:text-gray-6 dark:text-black dark:not-disabled:hover:text-white dark:disabled:text-white dark:[&:not(:disabled):not(:hover)]:focus:text-black', 'dark:disabled:before:bg-gray-1 dark:[&:not(:disabled):not(:hover)]:focus:before:bg-gray-5 dark:before:bg-white dark:not-disabled:hover:before:bg-black dark:not-disabled:active:before:bg-black', 'dark:disabled:after:bg-gray-1 dark:[&:not(:disabled):not(:hover)]:focus:after:bg-gray-5 dark:not-disabled:hover:after:bg-clicoh dark:not-disabled:active:after:bg-clicoh dark:after:bg-white'),
4
- second: clsx('text-gray-1 disabled:text-gray-3 [&:not(:disabled):not(:hover)]:focus:text-gray-1 not-disabled:active:text-gray-5 not-disabled:hover:text-white', 'disable:before:bg-white [&:not(:disabled):not(:hover)]:focus:before:bg-gray-6 before:bg-white not-disabled:hover:before:bg-black not-disabled:active:before:bg-black', 'after:bg-gray-1 disabled:after:bg-gray-3 [&:not(:disabled):not(:hover)]:focus:after:bg-gray-1 not-disabled:hover:after:bg-black not-disabled:active:after:bg-black', 'dark:disabled:text-gray-2 dark:[&:not(:disabled):not(:hover)]:focus:text-gray-5 dark:text-white dark:not-disabled:hover:text-black dark:not-disabled:active:text-black', 'dark:disable:before:bg-white dark:not-disabled:active:before:bg-gray-6 dark:before:bg-black dark:not-disabled:hover:before:bg-white dark:[&:not(:disabled):not(:hover)]:focus:before:bg-black', 'dark:disabled:after:bg-gray-2 dark:[&:not(:disabled):not(:hover)]:focus:after:bg-gray-5 dark:not-disabled:active:after:bg-gray-6 dark:after:bg-white dark:not-disabled:hover:after:bg-white'),
4
+ second: clsx('text-gray-1 disabled:text-gray-3 [&:not(:disabled):not(:hover)]:focus:text-gray-1 not-disabled:active:text-gray-5 not-disabled:hover:text-white', 'disable:before:bg-white [&:not(:disabled):not(:hover)]:focus:before:bg-gray-6 before:bg-white not-disabled:hover:before:bg-black not-disabled:active:before:bg-black', 'after:bg-gray-1 disabled:after:bg-gray-3 [&:not(:disabled):not(:hover)]:focus:after:bg-gray-1 not-disabled:hover:after:bg-black not-disabled:active:after:bg-black', 'dark:disabled:text-gray-2 dark:[&:not(:disabled):not(:hover)]:focus:text-gray-5 dark:text-white dark:not-disabled:hover:text-black dark:not-disabled:active:text-black', 'dark:not-disabled:active:before:bg-gray-6 dark:before:bg-black dark:not-disabled:hover:before:bg-white dark:disabled:before:bg-white dark:[&:not(:disabled):not(:hover)]:focus:before:bg-black', 'dark:disabled:after:bg-gray-2 dark:[&:not(:disabled):not(:hover)]:focus:after:bg-gray-5 dark:not-disabled:active:after:bg-gray-6 dark:after:bg-white dark:not-disabled:hover:after:bg-white'),
5
5
  text: clsx('underline', 'text-black', 'disabled:text-gray-3', 'active:text-gray-1', 'not-disabled:hover:before:bg-gray-5', 'not-disabled:hover:after:bg-gray-5', 'dark:active:text-gray-7 dark:disabled:text-gray-1 dark:text-white', 'dark:not-disabled:hover:before:bg-gray-1', 'dark:not-disabled:hover:after:bg-gray-1'),
6
6
  action: clsx('disabled:text-gray-3 not-disabled:active:text-gray-5 text-black not-disabled:hover:text-white [&:not(:disabled):not(:hover)]:focus:text-black', '[&:not(:disabled):not(:hover)]:focus:before:bg-gray-5 before:bg-white not-disabled:hover:before:bg-black not-disabled:active:before:bg-black disabled:before:bg-white', 'after:bg-clicoh disabled:after:bg-gray-3 not-disabled:hover:after:bg-black not-disabled:hover:after:bg-none not-disabled:active:after:bg-black not-disabled:active:after:bg-none disabled:after:bg-none', 'dark:disabled:text-gray-2 dark:[&:not(:disabled):not(:hover)]:focus:text-gray-5 dark:text-white dark:not-disabled:hover:text-black dark:not-disabled:active:text-black', 'dark:not-disabled:active:before:bg-gray-5 dark:before:bg-black dark:not-disabled:hover:before:bg-white dark:disabled:before:bg-black dark:[&:not(:disabled):not(:hover)]:focus:before:bg-black', 'dark:after:bg-clicoh dark:disabled:after:bg-gray-2 dark:not-disabled:active:after:bg-gray-5 dark:not-disabled:hover:after:bg-white dark:not-disabled:hover:after:bg-none dark:not-disabled:active:after:bg-none dark:disabled:after:bg-none'),
7
7
  };
@@ -23,7 +23,7 @@ const styleMap = {
23
23
  * @returns {ReactNode} The rendered Button component.
24
24
  */
25
25
  export function Button({ modifier = 'principal', iconL, iconR, children, ...restProps }) {
26
- const className = clsx('relative flex items-center justify-center py-[10px] text-center text-sm font-semibold', 'rounded-3xl border-2 border-transparent transition-colors', 'before:absolute before:inset-0 before:-z-10 before:block before:rounded-3xl before:transition-colors', 'after:absolute after:-inset-[2px] after:-z-20 after:block after:rounded-3xl after:transition-colors', iconL ? 'pl-4' : 'pl-6', iconR ? 'pr-4' : 'pr-6', styleMap[modifier], restProps.className);
26
+ const className = clsx('relative isolate flex items-center justify-center py-[10px] text-center text-sm font-semibold', 'rounded-3xl border-2 border-transparent transition-colors', 'before:absolute before:inset-0 before:-z-10 before:block before:rounded-3xl before:transition-colors', 'after:absolute after:-inset-[2px] after:-z-20 after:block after:rounded-3xl after:transition-colors', iconL ? 'pl-4' : 'pl-6', iconR ? 'pr-4' : 'pr-6', styleMap[modifier], restProps.className);
27
27
  return (<button {...restProps} className={className}>
28
28
  {!!iconL && <span className="pr-2 text-base">{iconL}</span>}
29
29
  <span>{children}</span>
@@ -1 +1 @@
1
- {"version":3,"file":"Button.jsx","sourceRoot":"","sources":["../../../../src/components/01-atoms/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AAWxB,MAAM,QAAQ,GAAoC;IAChD,SAAS,EAAE,IAAI,CACb,6IAA6I,EAC7I,wKAAwK,EACxK,qKAAqK,EACrK,uKAAuK,EACvK,iMAAiM,EACjM,8LAA8L,CAC/L;IACD,MAAM,EAAE,IAAI,CACV,iJAAiJ,EACjJ,sKAAsK,EACtK,oKAAoK,EACpK,wKAAwK,EACxK,+LAA+L,EAC/L,6LAA6L,CAC9L;IACD,IAAI,EAAE,IAAI,CACR,WAAW,EACX,YAAY,EACZ,sBAAsB,EACtB,oBAAoB,EACpB,qCAAqC,EACrC,oCAAoC,EACpC,mEAAmE,EACnE,0CAA0C,EAC1C,yCAAyC,CAC1C;IACD,MAAM,EAAE,IAAI,CACV,+IAA+I,EAC/I,uKAAuK,EACvK,yMAAyM,EACzM,wKAAwK,EACxK,gMAAgM,EAChM,6OAA6O,CAC9O;CACF,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,MAAM,CAAC,EACrB,QAAQ,GAAG,WAAW,EACtB,KAAK,EACL,KAAK,EACL,QAAQ,EACR,GAAG,SAAS,EACA;IACZ,MAAM,SAAS,GAAG,IAAI,CACpB,uFAAuF,EACvF,2DAA2D,EAC3D,sGAAsG,EACtG,qGAAqG,EACrG,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CA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AI,CAAC,CAAC;IAC7D,QAAQ,CAAC,QAAQ,EAAE,iBAAiB,CAClC,mBAAmB,CAAC,gBAAgB,CAAC,EACrC,gBAAgB,CACjB,CAAC;IACF,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,QAAQ,CAAC,EACvB,KAAK,EACL,QAAQ,EACR,UAAU,EACV,KAAK,GACN,EAAE,aAAa,GAAG,SAAS,CA6C3B"}
1
+ {"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../../src/components/01-atoms/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,SAAS,EAEf,MAAM,OAAO,CAAC;AAGf,KAAK,aAAa,GAAG;IACnB,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,CAAC,gBAAgB,CAAC,EAAE,IAAI,CAAC,CAAC;IAC7D,QAAQ,CAAC,QAAQ,EAAE,iBAAiB,CAClC,mBAAmB,CAAC,gBAAgB,CAAC,EACrC,gBAAgB,CACjB,CAAC;IACF,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,QAAQ,CAAC,EACvB,KAAK,EACL,QAAQ,EACR,UAAU,EACV,KAAK,GACN,EAAE,aAAa,GAAG,SAAS,CAsD3B"}
@@ -1,7 +1,6 @@
1
1
  'use client';
2
2
  import clsx from 'clsx';
3
- import { useEffect, useState, } from 'react';
4
- import { generateUniqueId } from '../../../utils';
3
+ import { useId, } from 'react';
5
4
  import { RenderErrorOrHelperText } from '../Input/utils/RenderErrorOrHelperText';
6
5
  /**
7
6
  * Checkbox component used for rendering a labeled checkbox with optional helper text and error message.
@@ -25,24 +24,31 @@ import { RenderErrorOrHelperText } from '../Input/utils/RenderErrorOrHelperText'
25
24
  * @returns {ReactNode} The rendered Checkbox component.
26
25
  */
27
26
  export function Checkbox({ label, checkbox, helperText, error, }) {
28
- const [id, setId] = useState('');
29
- const checkboxClasses = clsx('relative h-4 w-4 cursor-pointer border-2 outline-hidden', error && !checkbox.disabled ? 'accent-error' : 'accent-black', !checkbox.disabled &&
30
- 'hover:before:bg-opacity/15 before:absolute before:-top-1 before:-left-1 before:h-6 before:w-6 before:rounded-full before:bg-transparent before:transition hover:before:bg-black/15', checkbox.className);
27
+ const generatedId = useId();
28
+ const id = checkbox.id ?? generatedId;
29
+ const descriptionId = error || helperText ? `${id}-description` : undefined;
30
+ const describedBy = [checkbox['aria-describedby'], descriptionId].filter(Boolean).join(' ') ||
31
+ undefined;
32
+ const checkboxClasses = clsx('disabled:accent-gray-3 dark:disabled:accent-gray-2 relative h-4 w-4 cursor-pointer border-2 outline-hidden disabled:cursor-not-allowed', error && !checkbox.disabled
33
+ ? 'accent-error dark:accent-error-dark'
34
+ : 'accent-black dark:accent-white', !checkbox.disabled &&
35
+ 'hover:before:bg-opacity/15 before:absolute before:-top-1 before:-left-1 before:h-6 before:w-6 before:rounded-full before:bg-transparent before:transition hover:before:bg-black/15 dark:hover:before:bg-white/15', checkbox.className);
31
36
  const labelProps = {
32
37
  htmlFor: id,
33
- className: clsx('cursor-pointer p-2 text-sm', error ? 'text-error' : 'text-black', checkbox.disabled && 'text-gray-3', label?.className),
38
+ className: clsx('cursor-pointer p-2 text-sm', checkbox.disabled
39
+ ? 'text-gray-3 dark:text-gray-2 cursor-not-allowed'
40
+ : error
41
+ ? 'text-error dark:text-error-dark'
42
+ : 'text-black dark:text-white', label?.className),
34
43
  };
35
- useEffect(() => {
36
- setId(generateUniqueId());
37
- }, []);
38
44
  return (<div className="w-full max-w-full">
39
45
  <div className="flex items-center px-2">
40
- <input {...checkbox} id={id} type="checkbox" className={checkboxClasses}/>
46
+ <input {...checkbox} id={id} type="checkbox" className={checkboxClasses} aria-invalid={error ? true : checkbox['aria-invalid']} aria-describedby={describedBy}/>
41
47
  <label {...label} {...labelProps}>
42
48
  {label.children}
43
49
  </label>
44
50
  </div>
45
- <RenderErrorOrHelperText disabled={checkbox.disabled} helperText={helperText} error={error}/>
51
+ <RenderErrorOrHelperText id={descriptionId} disabled={checkbox.disabled} helperText={helperText} error={error}/>
46
52
  </div>);
47
53
  }
48
54
  //# sourceMappingURL=Checkbox.jsx.map
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.jsx","sourceRoot":"","sources":["../../../../src/components/01-atoms/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAKL,SAAS,EACT,QAAQ,GACT,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AAYjF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,UAAU,QAAQ,CAAC,EACvB,KAAK,EACL,QAAQ,EACR,UAAU,EACV,KAAK,GACS;IACd,MAAM,CAAC,EAAE,EAAE,KAAK,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IAEjC,MAAM,eAAe,GAAG,IAAI,CAC1B,yDAAyD,EACzD,KAAK,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,cAAc,EAC7D,CAAC,QAAQ,CAAC,QAAQ;QAChB,oLAAoL,EACtL,QAAQ,CAAC,SAAS,CACnB,CAAC;IAEF,MAAM,UAAU,GAA4C;QAC1D,OAAO,EAAE,EAAE;QACX,SAAS,EAAE,IAAI,CACb,4BAA4B,EAC5B,KAAK,CAAC,CAA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,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,CAAC,IAAI,UAAU,CAAC,CAC/B;UAAA,CAAC,KAAK,CAAC,QAAQ,CACjB;QAAA,EAAE,KAAK,CACT;MAAA,EAAE,GAAG,CACL;MAAA,CAAC,uBAAuB,CACtB,EAAE,CAAC,CAAC,aAAa,CAAC,CAClB,QAAQ,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAC5B,UAAU,CAAC,CAAC,UAAU,CAAC,CACvB,KAAK,CAAC,CAAC,KAAK,CAAC,EAEjB;IAAA,EAAE,GAAG,CAAC,CACP,CAAC;AACJ,CAAC"}
@@ -24,6 +24,7 @@ type FileUploadRef = {
24
24
  * @param {string} [props.accept] - Optional string to specify the types of files that the input accepts.
25
25
  * @param {boolean} [props.disabled] - Optional boolean to specify whether it is enable or not
26
26
  * @param {string} [props.errorText] - Optional string to display when is an error
27
+ * @param {string} [props.removeButtonAriaLabel] - Accessible label for the selected file removal button.
27
28
  * @param {HTMLAttributes<HTMLDivElement>} restProps - Additional properties for the div element.
28
29
  *
29
30
  * @returns {ReactNode} The rendered FileUpload component.
@@ -36,6 +37,7 @@ export declare const FileUpload: import("react").ForwardRefExoticComponent<{
36
37
  helperText?: string;
37
38
  error?: string;
38
39
  supportText?: string;
40
+ removeButtonAriaLabel?: string;
39
41
  } & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<FileUploadRef>>;
40
42
  export {};
41
43
  //# sourceMappingURL=FileUpload.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FileUpload.d.ts","sourceRoot":"","sources":["../../../../src/components/01-atoms/FileUpload/FileUpload.tsx"],"names":[],"mappings":"AAGA,OAAO,EAEL,KAAK,iBAAiB,EAGtB,KAAK,cAAc,EACnB,KAAK,mBAAmB,EAOzB,MAAM,OAAO,CAAC;AAsBf,KAAK,aAAa,GAAG;IACnB,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,UAAU;YA1Cb,MAAM;mBACC,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI;YAClC,IAAI,CACV,iBAAiB,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC,EAC1E,MAAM,CACP;eACU,OAAO;iBACL,MAAM;YACX,MAAM;kBACA,MAAM;kFAsLrB,CAAC"}
1
+ {"version":3,"file":"FileUpload.d.ts","sourceRoot":"","sources":["../../../../src/components/01-atoms/FileUpload/FileUpload.tsx"],"names":[],"mappings":"AAGA,OAAO,EAEL,KAAK,iBAAiB,EAGtB,KAAK,cAAc,EACnB,KAAK,mBAAmB,EAOzB,MAAM,OAAO,CAAC;AAuBf,KAAK,aAAa,GAAG;IACnB,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,UAAU;YA5Cb,MAAM;mBACC,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI;YAClC,IAAI,CACV,iBAAiB,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC,EAC1E,MAAM,CACP;eACU,OAAO;iBACL,MAAM;YACX,MAAM;kBACA,MAAM;4BACI,MAAM;kFA2M/B,CAAC"}
@@ -30,14 +30,16 @@ import { Paragraph } from '../Paragraph';
30
30
  * @param {string} [props.accept] - Optional string to specify the types of files that the input accepts.
31
31
  * @param {boolean} [props.disabled] - Optional boolean to specify whether it is enable or not
32
32
  * @param {string} [props.errorText] - Optional string to display when is an error
33
+ * @param {string} [props.removeButtonAriaLabel] - Accessible label for the selected file removal button.
33
34
  * @param {HTMLAttributes<HTMLDivElement>} restProps - Additional properties for the div element.
34
35
  *
35
36
  * @returns {ReactNode} The rendered FileUpload component.
36
37
  */
37
- export const FileUpload = forwardRef(function ({ onFileSelect, accept, disabled, helperText, error, input, supportText, ...restProps }, ref) {
38
+ export const FileUpload = forwardRef(function ({ onFileSelect, accept, disabled, helperText, error, input, supportText, removeButtonAriaLabel, ...restProps }, ref) {
38
39
  const [id, setId] = useState('');
39
40
  const [selectedFile, setSelectedFile] = useState(null);
40
41
  const fileInputRef = useRef(null);
42
+ const feedbackId = `${id}-feedback`;
41
43
  const handleDrag = useCallback((e) => {
42
44
  e.preventDefault();
43
45
  e.stopPropagation();
@@ -71,37 +73,39 @@ export const FileUpload = forwardRef(function ({ onFileSelect, accept, disabled,
71
73
  useEffect(() => {
72
74
  setId(generateUniqueId());
73
75
  }, []);
74
- return (<div className="w-full max-w-full min-w-0">
75
- <div {...restProps} onDragEnter={handleDrag} onDragOver={handleDrag} onDragLeave={handleDrag} onDrop={handleDrop} className={clsx('bg-gray-6 rounded-md border-2 border-dashed', error
76
- ? 'border-error'
76
+ return (<div className="w-full max-w-full min-w-0 text-black dark:text-white">
77
+ <div {...restProps} onDragEnter={handleDrag} onDragOver={handleDrag} onDragLeave={handleDrag} onDrop={handleDrop} className={clsx('bg-gray-6 dark:bg-black-1 rounded-md border-2 border-dashed', error
78
+ ? 'border-error dark:border-error-dark'
77
79
  : !disabled
78
- ? 'border-gray-3'
79
- : 'border-gray-5 pointer-events-none select-none', restProps.className)}>
80
- <input {...input} type="file" className="hidden" id={id} onChange={handleChange} ref={fileInputRef} accept={accept} disabled={disabled}/>
81
- <label htmlFor={id} className="block cursor-pointer px-4 py-5">
80
+ ? 'border-gray-3 dark:border-gray-1'
81
+ : 'border-gray-5 dark:border-gray-1 pointer-events-none select-none', restProps.className)}>
82
+ <input {...input} type="file" className="peer sr-only" id={id} onChange={handleChange} ref={fileInputRef} accept={accept} disabled={disabled} aria-invalid={Boolean(error)} aria-describedby={error || helperText ? feedbackId : undefined}/>
83
+ <label htmlFor={id} className="peer-focus-visible:outline-lavender dark:peer-focus-visible:outline-lavender-dark block cursor-pointer rounded-md px-4 py-5 peer-focus-visible:outline-2">
82
84
  <Show>
83
85
  <Show.When isTrue={Boolean(selectedFile)}>
84
86
  <div className="flex items-center justify-between gap-2">
85
- <CiFileOn size={32}/>
87
+ <CiFileOn aria-hidden="true" size={32}/>
86
88
  <div className="max-w-[calc(100%-64px-1rem)]">
87
89
  <Paragraph size="subtitle-1" className="truncate">
88
90
  {selectedFile?.name}
89
91
  </Paragraph>
90
- <Paragraph size="body-2" className="text-gray-1">
92
+ <Paragraph size="body-2" className="text-gray-1 dark:text-gray-2">
91
93
  {calculateFileSize(selectedFile?.size)}
92
94
  </Paragraph>
93
95
  </div>
94
- <button className="cursor-pointer" onClick={(e) => {
96
+ <button type="button" aria-label={removeButtonAriaLabel} className="hover:text-error dark:hover:text-error-dark cursor-pointer rounded-full transition-colors" disabled={disabled} onClick={(e) => {
95
97
  e.preventDefault();
96
98
  clearFile();
97
99
  }}>
98
- <MdDeleteOutline size={32}/>
100
+ <MdDeleteOutline aria-hidden="true" size={32}/>
99
101
  </button>
100
102
  </div>
101
103
  </Show.When>
102
104
  <Show.Else>
103
- <div className={clsx('flex flex-wrap items-center justify-center gap-2', disabled && 'text-gray-3', error ? 'text-error' : disabled && 'text-gray-3')}>
104
- <AiOutlineCloudUpload size={32}/>
105
+ <div className={clsx('flex flex-wrap items-center justify-center gap-2', disabled && 'text-gray-3 dark:text-gray-2', error
106
+ ? 'text-error dark:text-error-dark'
107
+ : disabled && 'text-gray-3 dark:text-gray-2')}>
108
+ <AiOutlineCloudUpload aria-hidden="true" size={32}/>
105
109
  <Paragraph size="subtitle-1" className="text-center">
106
110
  <Show>
107
111
  <Show.When isTrue={Boolean(supportText)}>
@@ -118,7 +122,9 @@ export const FileUpload = forwardRef(function ({ onFileSelect, accept, disabled,
118
122
  </Show>
119
123
  </label>
120
124
  </div>
121
- <RenderErrorOrHelperText disabled={disabled} helperText={helperText} error={error}/>
125
+ <div id={feedbackId}>
126
+ <RenderErrorOrHelperText disabled={disabled} helperText={helperText} error={error} className={clsx(error && !disabled ? 'dark:text-error-dark' : 'dark:text-gray-2')}/>
127
+ </div>
122
128
  </div>);
123
129
  });
124
130
  FileUpload.displayName = 'FileUpload';
@@ -1 +1 @@
1
- {"version":3,"file":"FileUpload.jsx","sourceRoot":"","sources":["../../../../src/components/01-atoms/FileUpload/FileUpload.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAIL,UAAU,EAIV,WAAW,EACX,SAAS,EACT,mBAAmB,EACnB,MAAM,EACN,QAAQ,GACT,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACrE,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AACjF,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAmBzC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,UAAU,CAClC,UACE,EACE,YAAY,EACZ,MAAM,EACN,QAAQ,EACR,UAAU,EACV,KAAK,EACL,KAAK,EACL,WAAW,EACX,GAAG,SAAS,EACM,EACpB,GAAG;IAEH,MAAM,CAAC,EAAE,EAAE,KAAK,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IACjC,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAc,IAAI,CAAC,CAAC;IACpE,MAAM,YAAY,GAAG,MAAM,CAA0B,IAAI,CAAC,CAAC;IAE3D,MAAM,UAAU,GAAG,WAAW,CAAC,CAAC,CAA4B,EAAQ,EAAE;QACpE,CAAC,CAAC,cAAc,EAAE,CAAC;QACnB,CAAC,CA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kBAAA,EAAE,SAAS,CACb;gBAAA,EAAE,GAAG,CACP;cAAA,EAAE,IAAI,CAAC,IAAI,CACb;YAAA,EAAE,IAAI,CACR;UAAA,EAAE,KAAK,CACT;QAAA,EAAE,GAAG,CACL;QAAA,CAAC,uBAAuB,CACtB,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,UAAU,CAAC,CAAC,UAAU,CAAC,CACvB,KAAK,CAAC,CAAC,KAAK,CAAC,EAEjB;MAAA,EAAE,GAAG,CAAC,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AACF,UAAU,CAAC,WAAW,GAAG,YAAY,CAAC"}
1
+ {"version":3,"file":"FileUpload.jsx","sourceRoot":"","sources":["../../../../src/components/01-atoms/FileUpload/FileUpload.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAIL,UAAU,EAIV,WAAW,EACX,SAAS,EACT,mBAAmB,EACnB,MAAM,EACN,QAAQ,GACT,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACrE,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AACjF,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAoBzC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,UAAU,CAClC,UACE,EACE,YAAY,EACZ,MAAM,EACN,QAAQ,EACR,UAAU,EACV,KAAK,EACL,KAAK,EACL,WAAW,EACX,qBAAqB,EACrB,GAAG,SAAS,EACM,E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,GAAG,CAAC,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AACF,UAAU,CAAC,WAAW,GAAG,YAAY,CAAC"}
@@ -8,6 +8,8 @@ type InputProps = {
8
8
  error?: string;
9
9
  iconL?: ReactNode;
10
10
  iconR?: ReactNode;
11
+ showPasswordAriaLabel?: string;
12
+ hidePasswordAriaLabel?: string;
11
13
  };
12
14
  /**
13
15
  * Input component for rendering a labeled input field with optional icons, helper text, and error message.
@@ -34,6 +36,6 @@ type InputProps = {
34
36
  *
35
37
  * @returns {ReactNode} The rendered Input component.
36
38
  */
37
- export declare function Input({ label, input, helperText, error, iconL, iconR, }: InputProps): ReactNode;
39
+ export declare function Input({ label, input, helperText, error, iconL, iconR, showPasswordAriaLabel, hidePasswordAriaLabel, }: InputProps): ReactNode;
38
40
  export {};
39
41
  //# sourceMappingURL=Input.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../../src/components/01-atoms/Input/Input.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,SAAS,EAGf,MAAM,OAAO,CAAC;AAKf,KAAK,UAAU,GAAG;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE;QACL,IAAI,EAAE,IAAI,CACR,iBAAiB,CACf,mBAAmB,CAAC,gBAAgB,CAAC,EACrC,gBAAgB,CACjB,CAAC,MAAM,CAAC,EACT,QAAQ,GAAG,UAAU,GAAG,OAAO,CAChC,CAAC;KACH,GAAG,IAAI,CACN,iBAAiB,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC,EAC1E,aAAa,CACd,CAAC;IACF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,KAAK,CAAC,EACpB,KAAK,EACL,KAAK,EACL,UAAU,EACV,KAAK,EACL,KAAK,EACL,KAAK,GACN,EAAE,UAAU,GAAG,SAAS,CAwDxB"}
1
+ {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../../src/components/01-atoms/Input/Input.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,SAAS,EAGf,MAAM,OAAO,CAAC;AAKf,KAAK,UAAU,GAAG;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE;QACL,IAAI,EAAE,IAAI,CACR,iBAAiB,CACf,mBAAmB,CAAC,gBAAgB,CAAC,EACrC,gBAAgB,CACjB,CAAC,MAAM,CAAC,EACT,QAAQ,GAAG,UAAU,GAAG,OAAO,CAChC,CAAC;KACH,GAAG,IAAI,CACN,iBAAiB,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC,EAC1E,aAAa,CACd,CAAC;IACF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,KAAK,CAAC,EACpB,KAAK,EACL,KAAK,EACL,UAAU,EACV,KAAK,EACL,KAAK,EACL,KAAK,EACL,qBAAqB,EACrB,qBAAqB,GACtB,EAAE,UAAU,GAAG,SAAS,CA+FxB"}
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import clsx from 'clsx';
3
- import { useEffect, useState, } from 'react';
4
- import { generateUniqueId } from '../../../utils';
3
+ import { useId, useState, } from 'react';
4
+ import { FiEye, FiEyeOff } from 'react-icons/fi';
5
5
  import { generateBorder } from './utils/border';
6
6
  import { RenderErrorOrHelperText } from './utils/RenderErrorOrHelperText';
7
7
  /**
@@ -29,32 +29,42 @@ import { RenderErrorOrHelperText } from './utils/RenderErrorOrHelperText';
29
29
  *
30
30
  * @returns {ReactNode} The rendered Input component.
31
31
  */
32
- export function Input({ label, input, helperText, error, iconL, iconR, }) {
33
- const [id, setId] = useState('');
34
- const inputClasses = clsx('peer disabled:text-gray-3 h-full w-full rounded-full bg-transparent px-5 text-sm font-normal text-black outline-0 transition-all focus:text-black', input.className);
32
+ export function Input({ label, input, helperText, error, iconL, iconR, showPasswordAriaLabel, hidePasswordAriaLabel, }) {
33
+ const generatedId = useId();
34
+ const [showPassword, setShowPassword] = useState(false);
35
+ const id = input.id ?? generatedId;
36
+ const descriptionId = error || helperText ? `${id}-description` : undefined;
37
+ const describedBy = [input['aria-describedby'], descriptionId].filter(Boolean).join(' ') ||
38
+ undefined;
39
+ const isPassword = input.type === 'password';
40
+ const effectiveType = isPassword && showPassword ? 'text' : input.type;
41
+ const inputClasses = clsx('peer disabled:text-gray-3 dark:disabled:text-gray-2 h-full w-full rounded-full bg-transparent px-5 text-sm font-normal text-black outline-0 transition-all focus:text-black dark:text-white dark:focus:text-white', input.className);
35
42
  const { labelProps, legendClasses, fieldsetClasses } = generateBorder(error);
36
- if (id) {
37
- input.id = id;
38
- labelProps.htmlFor = id;
39
- }
40
- useEffect(() => {
41
- setId(generateUniqueId());
42
- }, []);
43
+ labelProps.htmlFor = id;
44
+ const rightSlot = isPassword ? (<button type="button" onClick={() => setShowPassword((prev) => !prev)} aria-pressed={showPassword} aria-label={showPassword ? hidePasswordAriaLabel : showPasswordAriaLabel} disabled={input.disabled} className={clsx('disabled:text-gray-3 dark:disabled:text-gray-2 flex cursor-pointer items-center justify-center rounded-full p-1 transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-black/20 disabled:cursor-not-allowed dark:focus-visible:ring-white/30', error
45
+ ? 'text-error dark:text-error-dark'
46
+ : 'text-black dark:text-white')}>
47
+ {showPassword ? (<FiEyeOff size={18} aria-hidden="true"/>) : (<FiEye size={18} aria-hidden="true"/>)}
48
+ </button>) : (iconR);
43
49
  return (<div className="w-full max-w-full">
44
50
  <div className="relative h-9">
45
- <input {...input} className={inputClasses} placeholder=" "/>
51
+ <input {...input} id={id} type={effectiveType} className={inputClasses} placeholder=" " aria-invalid={error ? true : input['aria-invalid']} aria-describedby={describedBy}/>
46
52
  <label {...labelProps}>{label}</label>
47
- <fieldset className={fieldsetClasses}>
53
+ <fieldset aria-hidden="true" className={fieldsetClasses}>
48
54
  <legend className={legendClasses}>{label}</legend>
49
55
  </fieldset>
50
- {!!iconL && (<span className={clsx('peer-disabled:text-gray-3 absolute top-3 left-1', error ? 'text-error' : 'text-black')}>
56
+ {!!iconL && (<span aria-hidden="true" className={clsx('peer-disabled:text-gray-3 dark:peer-disabled:text-gray-2 absolute top-3 left-1', error
57
+ ? 'text-error dark:text-error-dark'
58
+ : 'text-black dark:text-white')}>
51
59
  {iconL}
52
60
  </span>)}
53
- {!!iconR && (<span className={clsx('peer-disabled:text-gray-3 absolute top-3 right-2', error ? 'text-error' : 'text-black')}>
54
- {iconR}
61
+ {!!rightSlot && (<span className={clsx('peer-disabled:text-gray-3 dark:peer-disabled:text-gray-2 absolute top-2 right-2', error
62
+ ? 'text-error dark:text-error-dark'
63
+ : 'text-black dark:text-white')}>
64
+ {rightSlot}
55
65
  </span>)}
56
66
  </div>
57
- <RenderErrorOrHelperText disabled={input.disabled} helperText={helperText} error={error} className="pl-6"/>
67
+ <RenderErrorOrHelperText id={descriptionId} disabled={input.disabled} helperText={helperText} error={error} className="pl-6"/>
58
68
  </div>);
59
69
  }
60
70
  //# sourceMappingURL=Input.jsx.map
@@ -1 +1 @@
1
- {"version":3,"file":"Input.jsx","sourceRoot":"","sources":["../../../../src/components/01-atoms/Input/Input.tsx"],"names":[],"mappings":"AAAA,YAAY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AC,EAAE,MAAM,CACnD;QAAA,EAAE,QAAQ,CACV;QAAA,CAAC,CAAC,CAAC,KAAK,IAAI,CACV,CAAC,IAAI,CACH,WAAW,CAAC,MAAM,CAClB,SAAS,CAAC,CAAC,IAAI,CACb,gFAAgF,EAChF,KAAK;gBACH,CAAC,CAAC,iCAAiC;gBACnC,CAAC,CAAC,4BAA4B,CACjC,CAAC,CAEF;YAAA,CAAC,KAAK,CACR;UAAA,EAAE,IAAI,CAAC,CACR,CACD;QAAA,CAAC,CAAC,CAAC,SAAS,IAAI,CACd,CAAC,IAAI,CACH,SAAS,CAAC,CAAC,IAAI,CACb,iFAAiF,EACjF,KAAK;gBACH,CAAC,CAAC,iCAAiC;gBACnC,CAAC,CAAC,4BAA4B,CACjC,CAAC,CAEF;YAAA,CAAC,SAAS,CACZ;UAAA,EAAE,IAAI,CAAC,CACR,CACH;MAAA,EAAE,GAAG,CACL;MAAA,CAAC,uBAAuB,CACtB,EAAE,CAAC,CAAC,aAAa,CAAC,CAClB,QAAQ,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CACzB,UAAU,CAAC,CAAC,UAAU,CAAC,CACvB,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,SAAS,CAAC,MAAM,EAEpB;IAAA,EAAE,GAAG,CAAC,CACP,CAAC;AACJ,CAAC"}
@@ -1,9 +1,11 @@
1
- interface RenderErrorOrHelperTextProps {
1
+ import type { ReactNode } from 'react';
2
+ type RenderErrorOrHelperTextProps = {
3
+ id?: string;
2
4
  error?: string;
3
5
  helperText?: string;
4
6
  disabled?: boolean;
5
7
  className?: string;
6
- }
7
- export declare function RenderErrorOrHelperText({ error, helperText, disabled, className, }: RenderErrorOrHelperTextProps): import("react").JSX.Element | null;
8
+ };
9
+ export declare function RenderErrorOrHelperText({ id, error, helperText, disabled, className, }: RenderErrorOrHelperTextProps): ReactNode;
8
10
  export {};
9
11
  //# sourceMappingURL=RenderErrorOrHelperText.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RenderErrorOrHelperText.d.ts","sourceRoot":"","sources":["../../../../../src/components/01-atoms/Input/utils/RenderErrorOrHelperText.tsx"],"names":[],"mappings":"AAGA,UAAU,4BAA4B;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,uBAAuB,CAAC,EACtC,KAAK,EACL,UAAU,EACV,QAAQ,EACR,SAAS,GACV,EAAE,4BAA4B,sCAqB9B"}
1
+ {"version":3,"file":"RenderErrorOrHelperText.d.ts","sourceRoot":"","sources":["../../../../../src/components/01-atoms/Input/utils/RenderErrorOrHelperText.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,KAAK,4BAA4B,GAAG;IAClC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,wBAAgB,uBAAuB,CAAC,EACtC,EAAE,EACF,KAAK,EACL,UAAU,EACV,QAAQ,EACR,SAAS,GACV,EAAE,4BAA4B,GAAG,SAAS,CAsB1C"}
@@ -1,14 +1,14 @@
1
1
  import clsx from 'clsx';
2
2
  import { Paragraph } from '../../Paragraph';
3
- export function RenderErrorOrHelperText({ error, helperText, disabled, className, }) {
3
+ export function RenderErrorOrHelperText({ id, error, helperText, disabled, className, }) {
4
4
  if (!error && !helperText) {
5
5
  return null;
6
6
  }
7
- return (<Paragraph className={clsx('pt-1.5', error && !disabled
7
+ return (<Paragraph id={id} className={clsx('pt-1.5', error && !disabled
8
8
  ? 'text-error dark:text-error-dark'
9
9
  : disabled
10
- ? 'text-gray-3'
11
- : 'text-gray-1', className)} size="body-2">
10
+ ? 'text-gray-3 dark:text-gray-2'
11
+ : 'text-gray-1 dark:text-gray-2', className)} size="body-2">
12
12
  {error && !disabled ? error : helperText}
13
13
  </Paragraph>);
14
14
  }
@@ -1 +1 @@
1
- {"version":3,"file":"RenderErrorOrHelperText.jsx","sourceRoot":"","sources":["../../../../../src/components/01-atoms/Input/utils/RenderErrorOrHelperText.tsx"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAS5C,MAAM,UAAU,uBAAuB,CAAC,EACtC,KAAK,EACL,UAAU,EACV,QAAQ,EACR,SAAS,GACoB;IAC7B,IAAI,CAAC,KAAK,IAAI,CAAC,UAAU,EAAE,CAAC;QAC1B,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,CACL,CAAC,SAAS,CACR,SAAS,CAAC,CAAC,IAAI,CACb,QAAQ,EACR,KAAK,IAAI,CAAC,QAAQ;YAChB,CAAC,CAAC,iCAAiC;YACnC,CAAC,CAAC,QAAQ;gBACR,CAAC,CAAC,aAAa;gBACf,CAAC,CAAC,aAAa,EACnB,SAAS,CACV,CAAC,CACF,IAAI,CAAC,QAAQ,CAEb;MAAA,CAAC,KAAK,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,UAAU,CAC1C;IAAA,EAAE,SAAS,CAAC,CACb,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"RenderErrorOrHelperText.jsx","sourceRoot":"","sources":["../../../../../src/components/01-atoms/Input/utils/RenderErrorOrHelperText.tsx"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAU5C,MAAM,UAAU,uBAAuB,CAAC,EACtC,EAAE,EACF,KAAK,EACL,UAAU,EACV,QAAQ,EACR,SAAS,GACoB;IAC7B,IAAI,CAAC,KAAK,IAAI,CAAC,UAAU,EAAE,CAAC;QAC1B,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,CACL,CAAC,SAAS,CACR,EAAE,CAAC,CAAC,EAAE,CAAC,CACP,SAAS,CAAC,CAAC,IAAI,CACb,QAAQ,EACR,KAAK,IAAI,CAAC,QAAQ;YAChB,CAAC,CAAC,iCAAiC;YACnC,CAAC,CAAC,QAAQ;gBACR,CAAC,CAAC,8BAA8B;gBAChC,CAAC,CAAC,8BAA8B,EACpC,SAAS,CACV,CAAC,CACF,IAAI,CAAC,QAAQ,CAEb;MAAA,CAAC,KAAK,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,UAAU,CAC1C;IAAA,EAAE,SAAS,CAAC,CACb,CAAC;AACJ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"border.d.ts","sourceRoot":"","sources":["../../../../../src/components/01-atoms/Input/utils/border.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,WAAY,MAAM;;kBACb,MAAM;mBAAa,MAAM;;;;CAuBxD,CAAC"}
1
+ {"version":3,"file":"border.d.ts","sourceRoot":"","sources":["../../../../../src/components/01-atoms/Input/utils/border.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,WAAY,MAAM;;kBACb,MAAM;mBAAa,MAAM;;;;CAyBxD,CAAC"}
@@ -1,9 +1,11 @@
1
1
  import clsx from 'clsx';
2
2
  export const generateBorder = (error) => {
3
3
  const labelProps = {
4
- className: clsx('pointer-events-none absolute -top-2 left-[1.0625rem] truncate overflow-visible px-1 text-xs leading-tight transition-all select-none', 'peer-disabled:text-gray-3 peer-not-empty:-top-2 peer-not-empty:text-xs peer-placeholder-shown:top-2.5 peer-placeholder-shown:text-sm peer-placeholder-shown:leading-tight peer-autofill:-top-2 peer-autofill:text-xs peer-focus:-top-2 peer-focus:text-xs', error ? 'text-error' : 'text-black'),
4
+ className: clsx('pointer-events-none absolute -top-2 left-[1.0625rem] truncate overflow-visible px-1 text-xs leading-tight transition-all select-none', 'peer-disabled:text-gray-3 dark:peer-disabled:text-gray-2 peer-not-empty:-top-2 peer-not-empty:text-xs peer-placeholder-shown:top-2.5 peer-placeholder-shown:text-sm peer-placeholder-shown:leading-tight peer-autofill:-top-2 peer-autofill:text-xs peer-focus:-top-2 peer-focus:text-xs', error ? 'text-error dark:text-error-dark' : 'text-black dark:text-white'),
5
5
  };
6
- const fieldsetClasses = clsx('pointer-events-none absolute -top-2 left-0 h-[calc(100%+.5rem)] w-full rounded-full border px-4', 'peer-disabled:border-gray-3 peer-not-empty:*:max-w-full peer-not-empty:*:px-1 peer-placeholder-shown:*:max-w-0 peer-placeholder-shown:*:px-0 peer-autofill:max-w-full peer-autofill:*:px-1 peer-focus:*:max-w-full peer-focus:*:px-1', error ? 'border-error' : 'border-black');
6
+ const fieldsetClasses = clsx('pointer-events-none absolute -top-2 left-0 h-[calc(100%+.5rem)] w-full rounded-full border px-4', 'peer-disabled:border-gray-3 dark:peer-disabled:border-gray-2 peer-not-empty:*:max-w-full peer-not-empty:*:px-1 peer-placeholder-shown:*:max-w-0 peer-placeholder-shown:*:px-0 peer-autofill:max-w-full peer-autofill:*:px-1 peer-focus:*:max-w-full peer-focus:*:px-1', error
7
+ ? 'border-error dark:border-error-dark'
8
+ : 'border-black dark:border-white');
7
9
  const legendClasses = clsx('invisible max-w-full px-1 text-left text-xs text-nowrap transition-all');
8
10
  return {
9
11
  labelProps,