@clubmed/trident-ui 1.6.0 → 1.6.1-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (472) hide show
  1. package/README.md +3 -2
  2. package/assets/icons/Utilities/LightBulb.svg +3 -0
  3. package/assets/trident-ui.css +1 -1
  4. package/atoms/Heading/Heading.d.ts +1 -6
  5. package/atoms/Heading/Heading.js +2 -11
  6. package/atoms/Heading/Heading.js.map +1 -1
  7. package/atoms/Heading/HeadingGroup.d.ts +1 -7
  8. package/atoms/Heading/HeadingGroup.js +2 -12
  9. package/atoms/Heading/HeadingGroup.js.map +1 -1
  10. package/atoms/Icons/IconsResolver.js +2 -2
  11. package/atoms/Icons/contexts/IconsContext.js +2 -2
  12. package/atoms/Icons/index.d.ts +0 -1
  13. package/atoms/Icons/index.js +8 -9
  14. package/atoms/Icons/index.js.map +1 -1
  15. package/atoms/Image/Image.d.ts +1 -7
  16. package/atoms/Image/Image.js +2 -15
  17. package/atoms/Image/Image.js.map +1 -1
  18. package/atoms/Prose/Prose.d.ts +1 -5
  19. package/atoms/Prose/Prose.js +2 -15
  20. package/atoms/Prose/Prose.js.map +1 -1
  21. package/chunks/ResizeObserver.js +13 -13
  22. package/chunks/ResizeObserver.js.map +1 -1
  23. package/chunks/_commonjsHelpers.js +4 -29
  24. package/chunks/_commonjsHelpers.js.map +1 -1
  25. package/chunks/clsx.js.map +1 -1
  26. package/chunks/plugin.js +4 -4
  27. package/chunks/plugin.js.map +1 -1
  28. package/molecules/Arrows/Arrows.d.ts +1 -16
  29. package/molecules/Arrows/Arrows.js +2 -63
  30. package/molecules/Arrows/Arrows.js.map +1 -1
  31. package/molecules/Arrows.d.ts +1 -1
  32. package/molecules/Arrows.js +1 -1
  33. package/molecules/Avatar.d.ts +1 -8
  34. package/molecules/Avatar.js +2 -47
  35. package/molecules/Avatar.js.map +1 -1
  36. package/molecules/Backdrop.d.ts +1 -23
  37. package/molecules/Backdrop.js +2 -115
  38. package/molecules/Backdrop.js.map +1 -1
  39. package/molecules/Breadcrumb.d.ts +1 -10
  40. package/molecules/Breadcrumb.js +2 -47
  41. package/molecules/Breadcrumb.js.map +1 -1
  42. package/molecules/Breadcrumb.themes.d.ts +1 -8
  43. package/molecules/Breadcrumb.themes.js +2 -12
  44. package/molecules/Breadcrumb.themes.js.map +1 -1
  45. package/molecules/Buttons/ArrowButton.js.map +1 -1
  46. package/molecules/Buttons/Button.d.ts +1 -1
  47. package/molecules/Buttons/Button.js +1 -1
  48. package/molecules/Buttons/Button.js.map +1 -1
  49. package/molecules/Buttons/ButtonAnchor.js +1 -1
  50. package/molecules/Buttons/ButtonAnchor.js.map +1 -1
  51. package/molecules/Buttons/ButtonContent.d.ts +1 -17
  52. package/molecules/Buttons/ButtonContent.js +2 -15
  53. package/molecules/Buttons/ButtonContent.js.map +1 -1
  54. package/molecules/Buttons/FakeButton.d.ts +1 -1
  55. package/molecules/Buttons/FakeButton.js +1 -1
  56. package/molecules/Buttons/FakeButton.js.map +1 -1
  57. package/molecules/Buttons/v2/Button.d.ts +1 -2288
  58. package/molecules/Buttons/v2/Button.js +3 -47
  59. package/molecules/Buttons/v2/Button.js.map +1 -1
  60. package/molecules/Buttons/v2/Button.type.d.ts +1 -57
  61. package/molecules/Buttons/v2/Button.type.js +6 -42
  62. package/molecules/Buttons/v2/Button.type.js.map +1 -1
  63. package/molecules/Card.d.ts +1 -1
  64. package/molecules/Card.js +1 -1
  65. package/molecules/Cards/Card.js +2 -2
  66. package/molecules/Cards/CardAspectRatios.d.ts +1 -6
  67. package/molecules/Cards/CardAspectRatios.js +2 -7
  68. package/molecules/Cards/CardAspectRatios.js.map +1 -1
  69. package/molecules/Cards/CardBackground.d.ts +1 -4
  70. package/molecules/Cards/CardBackground.js +2 -27
  71. package/molecules/Cards/CardBackground.js.map +1 -1
  72. package/molecules/Cards/CardBackgroundContext.d.ts +1 -6
  73. package/molecules/Cards/CardBackgroundContext.js +3 -7
  74. package/molecules/Cards/CardBackgroundContext.js.map +1 -1
  75. package/molecules/Cards/CardClickable.d.ts +1 -6
  76. package/molecules/Cards/CardClickable.js +2 -34
  77. package/molecules/Cards/CardClickable.js.map +1 -1
  78. package/molecules/Cards/ExpandableCard.d.ts +1 -14
  79. package/molecules/Cards/ExpandableCard.js +2 -77
  80. package/molecules/Cards/ExpandableCard.js.map +1 -1
  81. package/molecules/Cards/v2/Card.d.ts +1 -15
  82. package/molecules/Cards/v2/Card.js +2 -31
  83. package/molecules/Cards/v2/Card.js.map +1 -1
  84. package/molecules/Chip.d.ts +1 -9
  85. package/molecules/Chip.js +2 -28
  86. package/molecules/Chip.js.map +1 -1
  87. package/molecules/Chip.themes.d.ts +1 -12
  88. package/molecules/Chip.themes.js +3 -21
  89. package/molecules/Chip.themes.js.map +1 -1
  90. package/molecules/Clickable/Clickable.d.ts +1 -0
  91. package/molecules/Clickable/Clickable.js +5 -0
  92. package/molecules/Clickable/Clickable.js.map +1 -0
  93. package/molecules/ElasticHeight.d.ts +1 -8
  94. package/molecules/ElasticHeight.js +2 -33
  95. package/molecules/ElasticHeight.js.map +1 -1
  96. package/molecules/Forms/Checkboxes/Checkbox.d.ts +1 -6
  97. package/molecules/Forms/Checkboxes/Checkbox.js +2 -97
  98. package/molecules/Forms/Checkboxes/Checkbox.js.map +1 -1
  99. package/molecules/Forms/Checkboxes/Checkboxes.d.ts +1 -5
  100. package/molecules/Forms/Checkboxes/Checkboxes.js +2 -46
  101. package/molecules/Forms/Checkboxes/Checkboxes.js.map +1 -1
  102. package/molecules/Forms/Checkboxes/index.d.ts +2 -2
  103. package/molecules/Forms/Checkboxes/index.js +2 -2
  104. package/molecules/Forms/DateField.d.ts +1 -24
  105. package/molecules/Forms/DateField.js +2 -185
  106. package/molecules/Forms/DateField.js.map +1 -1
  107. package/molecules/Forms/Filter.d.ts +1 -9
  108. package/molecules/Forms/Filter.js +2 -65
  109. package/molecules/Forms/Filter.js.map +1 -1
  110. package/molecules/Forms/FormControl.d.ts +1 -14
  111. package/molecules/Forms/FormControl.js +2 -51
  112. package/molecules/Forms/FormControl.js.map +1 -1
  113. package/molecules/Forms/FormControlError.d.ts +1 -2
  114. package/molecules/Forms/FormControlError.js +2 -23
  115. package/molecules/Forms/FormControlError.js.map +1 -1
  116. package/molecules/Forms/FormLabel.d.ts +1 -8
  117. package/molecules/Forms/FormLabel.js +2 -34
  118. package/molecules/Forms/FormLabel.js.map +1 -1
  119. package/molecules/Forms/NumberField.d.ts +1 -320
  120. package/molecules/Forms/NumberField.js +3 -126
  121. package/molecules/Forms/NumberField.js.map +1 -1
  122. package/molecules/Forms/Password/Password.d.ts +1 -7
  123. package/molecules/Forms/Password/Password.js +2 -112
  124. package/molecules/Forms/Password/Password.js.map +1 -1
  125. package/molecules/Forms/Password/ValidationMessage.d.ts +1 -6
  126. package/molecules/Forms/Password/ValidationMessage.js +2 -25
  127. package/molecules/Forms/Password/ValidationMessage.js.map +1 -1
  128. package/molecules/Forms/Password/index.d.ts +2 -2
  129. package/molecules/Forms/Password/index.js +2 -2
  130. package/molecules/Forms/Radios/Radio.d.ts +1 -17
  131. package/molecules/Forms/Radios/Radio.js +2 -60
  132. package/molecules/Forms/Radios/Radio.js.map +1 -1
  133. package/molecules/Forms/Radios/RadioGroup.d.ts +1 -5
  134. package/molecules/Forms/Radios/RadioGroup.js +2 -73
  135. package/molecules/Forms/Radios/RadioGroup.js.map +1 -1
  136. package/molecules/Forms/Radios/index.d.ts +2 -2
  137. package/molecules/Forms/Radios/index.js +4 -4
  138. package/molecules/Forms/Range.d.ts +1 -40
  139. package/molecules/Forms/Range.js +2 -230
  140. package/molecules/Forms/Range.js.map +1 -1
  141. package/molecules/Forms/Select.d.ts +1 -10
  142. package/molecules/Forms/Select.js +2 -101
  143. package/molecules/Forms/Select.js.map +1 -1
  144. package/molecules/Forms/Switch.d.ts +1 -5
  145. package/molecules/Forms/Switch.js +2 -60
  146. package/molecules/Forms/Switch.js.map +1 -1
  147. package/molecules/Forms/TextField.d.ts +1 -12
  148. package/molecules/Forms/TextField.js +2 -95
  149. package/molecules/Forms/TextField.js.map +1 -1
  150. package/molecules/HamburgerIcon.d.ts +1 -6
  151. package/molecules/HamburgerIcon.js +2 -40
  152. package/molecules/HamburgerIcon.js.map +1 -1
  153. package/molecules/Link.d.ts +1 -35
  154. package/molecules/Link.js +2 -53
  155. package/molecules/Link.js.map +1 -1
  156. package/molecules/Loader.d.ts +1 -7
  157. package/molecules/Loader.js +2 -63
  158. package/molecules/Loader.js.map +1 -1
  159. package/molecules/Pagination.d.ts +1 -38
  160. package/molecules/Pagination.helper.d.ts +1 -48
  161. package/molecules/Pagination.helper.js +5 -27
  162. package/molecules/Pagination.helper.js.map +1 -1
  163. package/molecules/Pagination.js +2 -151
  164. package/molecules/Pagination.js.map +1 -1
  165. package/molecules/Popin.d.ts +1 -22
  166. package/molecules/Popin.js +2 -58
  167. package/molecules/Popin.js.map +1 -1
  168. package/molecules/Portal/Portal.d.ts +1 -11
  169. package/molecules/Portal/Portal.js +2 -28
  170. package/molecules/Portal/Portal.js.map +1 -1
  171. package/molecules/Spinner.d.ts +1 -9
  172. package/molecules/Spinner.js +2 -19
  173. package/molecules/Spinner.js.map +1 -1
  174. package/molecules/Tabs/Tab.d.ts +1 -31
  175. package/molecules/Tabs/Tab.js +2 -107
  176. package/molecules/Tabs/Tab.js.map +1 -1
  177. package/molecules/Tabs/TabList.d.ts +1 -10
  178. package/molecules/Tabs/TabList.js +2 -51
  179. package/molecules/Tabs/TabList.js.map +1 -1
  180. package/molecules/Tabs/TabPanel.d.ts +1 -17
  181. package/molecules/Tabs/TabPanel.js +2 -40
  182. package/molecules/Tabs/TabPanel.js.map +1 -1
  183. package/molecules/Tabs/Tabs.d.ts +1 -12
  184. package/molecules/Tabs/Tabs.js +2 -17
  185. package/molecules/Tabs/Tabs.js.map +1 -1
  186. package/molecules/Tabs/TabsBody.d.ts +0 -6
  187. package/molecules/Tabs/TabsBody.js +1 -6
  188. package/molecules/Tabs/TabsBody.js.map +1 -1
  189. package/molecules/Tabs/TabsHeader.js +1 -1
  190. package/molecules/Tabs/TabsHeading.js +1 -1
  191. package/molecules/Tabs/TabsPanel.js +1 -1
  192. package/molecules/Tabs/context/TabControl.d.ts +1 -52
  193. package/molecules/Tabs/context/TabControl.js +3 -87
  194. package/molecules/Tabs/context/TabControl.js.map +1 -1
  195. package/molecules/Tabs/hooks/tabControl.d.ts +1 -44
  196. package/molecules/Tabs/hooks/tabControl.js +7 -31
  197. package/molecules/Tabs/hooks/tabControl.js.map +1 -1
  198. package/molecules/Tabs/index.d.ts +7 -7
  199. package/molecules/Tabs/index.js +13 -14
  200. package/molecules/Tabs/theme.d.ts +1 -10
  201. package/molecules/Tabs/theme.js +1 -20
  202. package/molecules/Tabs/theme.js.map +1 -1
  203. package/molecules/Tag.d.ts +1 -45
  204. package/molecules/Tag.js +2 -76
  205. package/molecules/Tag.js.map +1 -1
  206. package/package.json +30 -93
  207. package/tailwind/tailwind.preset.js +232 -232
  208. package/tailwind/tailwind.preset.js.map +1 -1
  209. package/ui/Avatar.d.ts +8 -0
  210. package/ui/Avatar.js +50 -0
  211. package/ui/Avatar.js.map +1 -0
  212. package/ui/Backdrop.d.ts +23 -0
  213. package/ui/Backdrop.js +118 -0
  214. package/ui/Backdrop.js.map +1 -0
  215. package/ui/Breadcrumb.d.ts +10 -0
  216. package/ui/Breadcrumb.js +50 -0
  217. package/ui/Breadcrumb.js.map +1 -0
  218. package/ui/Breadcrumb.themes.d.ts +8 -0
  219. package/ui/Breadcrumb.themes.js +15 -0
  220. package/ui/Breadcrumb.themes.js.map +1 -0
  221. package/ui/Chip.d.ts +9 -0
  222. package/ui/Chip.js +31 -0
  223. package/ui/Chip.js.map +1 -0
  224. package/ui/Chip.themes.d.ts +12 -0
  225. package/ui/Chip.themes.js +24 -0
  226. package/ui/Chip.themes.js.map +1 -0
  227. package/{atoms/Clickable → ui}/Clickable.js +1 -1
  228. package/ui/Clickable.js.map +1 -0
  229. package/ui/ElasticHeight.d.ts +8 -0
  230. package/ui/ElasticHeight.js +36 -0
  231. package/ui/ElasticHeight.js.map +1 -0
  232. package/ui/HamburgerIcon.d.ts +6 -0
  233. package/ui/HamburgerIcon.js +43 -0
  234. package/ui/HamburgerIcon.js.map +1 -0
  235. package/ui/Image.d.ts +7 -0
  236. package/ui/Image.js +18 -0
  237. package/ui/Image.js.map +1 -0
  238. package/ui/Link.d.ts +35 -0
  239. package/ui/Link.js +56 -0
  240. package/ui/Link.js.map +1 -0
  241. package/ui/Loader.d.ts +7 -0
  242. package/ui/Loader.js +66 -0
  243. package/ui/Loader.js.map +1 -0
  244. package/ui/Pagination.d.ts +38 -0
  245. package/ui/Pagination.helper.d.ts +48 -0
  246. package/ui/Pagination.helper.js +30 -0
  247. package/ui/Pagination.helper.js.map +1 -0
  248. package/ui/Pagination.js +154 -0
  249. package/ui/Pagination.js.map +1 -0
  250. package/ui/Popin.d.ts +22 -0
  251. package/ui/Popin.js +61 -0
  252. package/ui/Popin.js.map +1 -0
  253. package/ui/Portal.d.ts +11 -0
  254. package/ui/Portal.js +31 -0
  255. package/ui/Portal.js.map +1 -0
  256. package/ui/Prose.d.ts +5 -0
  257. package/ui/Prose.js +18 -0
  258. package/ui/Prose.js.map +1 -0
  259. package/ui/Spinner.d.ts +9 -0
  260. package/ui/Spinner.js +22 -0
  261. package/ui/Spinner.js.map +1 -0
  262. package/ui/Tag.d.ts +45 -0
  263. package/ui/Tag.js +79 -0
  264. package/ui/Tag.js.map +1 -0
  265. package/ui/arrows/Arrows.d.ts +16 -0
  266. package/ui/arrows/Arrows.js +66 -0
  267. package/ui/arrows/Arrows.js.map +1 -0
  268. package/ui/buttons/ArrowButton.d.ts +6 -0
  269. package/ui/buttons/ArrowButton.js +7 -0
  270. package/ui/buttons/ArrowButton.js.map +1 -0
  271. package/ui/buttons/Button.d.ts +2392 -0
  272. package/ui/buttons/Button.js +50 -0
  273. package/ui/buttons/Button.js.map +1 -0
  274. package/ui/buttons/Button.type.d.ts +57 -0
  275. package/ui/buttons/Button.type.js +45 -0
  276. package/ui/buttons/Button.type.js.map +1 -0
  277. package/ui/buttons/ButtonContent.d.ts +17 -0
  278. package/ui/buttons/ButtonContent.js +18 -0
  279. package/ui/buttons/ButtonContent.js.map +1 -0
  280. package/ui/cards/Card.d.ts +15 -0
  281. package/ui/cards/Card.js +34 -0
  282. package/ui/cards/Card.js.map +1 -0
  283. package/ui/cards/CardAspectRatios.d.ts +6 -0
  284. package/ui/cards/CardAspectRatios.js +10 -0
  285. package/ui/cards/CardAspectRatios.js.map +1 -0
  286. package/ui/cards/CardBackground.d.ts +4 -0
  287. package/ui/cards/CardBackground.js +30 -0
  288. package/ui/cards/CardBackground.js.map +1 -0
  289. package/ui/cards/CardBackgroundContext.d.ts +6 -0
  290. package/ui/cards/CardBackgroundContext.js +10 -0
  291. package/ui/cards/CardBackgroundContext.js.map +1 -0
  292. package/ui/cards/CardClickable.d.ts +6 -0
  293. package/ui/cards/CardClickable.js +37 -0
  294. package/ui/cards/CardClickable.js.map +1 -0
  295. package/ui/cards/ExpandableCard.d.ts +14 -0
  296. package/ui/cards/ExpandableCard.js +80 -0
  297. package/ui/cards/ExpandableCard.js.map +1 -0
  298. package/{contexts → ui/contexts}/Device.d.ts +1 -1
  299. package/{contexts → ui/contexts}/Device.js +1 -1
  300. package/{contexts → ui/contexts}/TridentUIConfig.js +68 -68
  301. package/ui/contexts/TridentUIConfig.js.map +1 -0
  302. package/ui/contexts/devices/Device.js.map +1 -0
  303. package/{contexts/Devices → ui/contexts/devices}/hooks/useQueries.d.ts +8 -1
  304. package/ui/contexts/devices/hooks/useQueries.js.map +1 -0
  305. package/ui/contexts/devices/reducers/reducer.js.map +1 -0
  306. package/ui/forms/DateField.d.ts +24 -0
  307. package/ui/forms/DateField.js +162 -0
  308. package/ui/forms/DateField.js.map +1 -0
  309. package/ui/forms/Filter.d.ts +9 -0
  310. package/ui/forms/Filter.js +68 -0
  311. package/ui/forms/Filter.js.map +1 -0
  312. package/ui/forms/FormControl.d.ts +14 -0
  313. package/ui/forms/FormControl.js +54 -0
  314. package/ui/forms/FormControl.js.map +1 -0
  315. package/ui/forms/FormControlError.d.ts +2 -0
  316. package/ui/forms/FormControlError.js +26 -0
  317. package/ui/forms/FormControlError.js.map +1 -0
  318. package/ui/forms/FormLabel.d.ts +8 -0
  319. package/ui/forms/FormLabel.js +37 -0
  320. package/ui/forms/FormLabel.js.map +1 -0
  321. package/ui/forms/NumberField.d.ts +332 -0
  322. package/ui/forms/NumberField.js +129 -0
  323. package/ui/forms/NumberField.js.map +1 -0
  324. package/ui/forms/Range.d.ts +40 -0
  325. package/ui/forms/Range.js +161 -0
  326. package/ui/forms/Range.js.map +1 -0
  327. package/ui/forms/Select.d.ts +10 -0
  328. package/ui/forms/Select.js +104 -0
  329. package/ui/forms/Select.js.map +1 -0
  330. package/ui/forms/Switch.d.ts +5 -0
  331. package/ui/forms/Switch.js +63 -0
  332. package/ui/forms/Switch.js.map +1 -0
  333. package/ui/forms/TextField.d.ts +12 -0
  334. package/ui/forms/TextField.js +98 -0
  335. package/ui/forms/TextField.js.map +1 -0
  336. package/ui/forms/checkboxes/Checkbox.d.ts +6 -0
  337. package/ui/forms/checkboxes/Checkbox.js +100 -0
  338. package/ui/forms/checkboxes/Checkbox.js.map +1 -0
  339. package/ui/forms/checkboxes/Checkboxes.d.ts +5 -0
  340. package/ui/forms/checkboxes/Checkboxes.js +49 -0
  341. package/ui/forms/checkboxes/Checkboxes.js.map +1 -0
  342. package/ui/forms/checkboxes/index.d.ts +2 -0
  343. package/ui/forms/checkboxes/index.js +7 -0
  344. package/ui/forms/checkboxes/index.js.map +1 -0
  345. package/ui/forms/password/Password.d.ts +7 -0
  346. package/ui/forms/password/Password.js +115 -0
  347. package/ui/forms/password/Password.js.map +1 -0
  348. package/ui/forms/password/ValidationMessage.d.ts +6 -0
  349. package/ui/forms/password/ValidationMessage.js +28 -0
  350. package/ui/forms/password/ValidationMessage.js.map +1 -0
  351. package/ui/forms/password/index.d.ts +2 -0
  352. package/ui/forms/password/index.js +7 -0
  353. package/ui/forms/password/index.js.map +1 -0
  354. package/ui/forms/radios/Radio.d.ts +17 -0
  355. package/ui/forms/radios/Radio.js +63 -0
  356. package/ui/forms/radios/Radio.js.map +1 -0
  357. package/ui/forms/radios/RadioGroup.d.ts +5 -0
  358. package/ui/forms/radios/RadioGroup.js +76 -0
  359. package/ui/forms/radios/RadioGroup.js.map +1 -0
  360. package/ui/forms/radios/index.d.ts +2 -0
  361. package/ui/forms/radios/index.js +7 -0
  362. package/ui/forms/radios/index.js.map +1 -0
  363. package/ui/heading/Heading.d.ts +6 -0
  364. package/ui/heading/Heading.js +14 -0
  365. package/ui/heading/Heading.js.map +1 -0
  366. package/ui/heading/HeadingGroup.d.ts +7 -0
  367. package/ui/heading/HeadingGroup.js +15 -0
  368. package/ui/heading/HeadingGroup.js.map +1 -0
  369. package/ui/helpers/colors/colors.js.map +1 -0
  370. package/ui/helpers/twMerge.js.map +1 -0
  371. package/ui/hooks/keyboard.constants.js.map +1 -0
  372. package/{hooks → ui/hooks}/useInternalStatus.d.ts +1 -1
  373. package/ui/hooks/useInternalStatus.js.map +1 -0
  374. package/ui/hooks/useKeyboardControls.js.map +1 -0
  375. package/{hooks → ui/hooks}/useResizeObserver.js +1 -1
  376. package/ui/hooks/useResizeObserver.js.map +1 -0
  377. package/{hooks → ui/hooks}/useSafeBoop.js +674 -708
  378. package/ui/hooks/useSafeBoop.js.map +1 -0
  379. package/ui/hooks/useSlots.js.map +1 -0
  380. package/ui/hooks/useValue.js.map +1 -0
  381. package/ui/tabs/Tab.d.ts +31 -0
  382. package/ui/tabs/Tab.js +110 -0
  383. package/ui/tabs/Tab.js.map +1 -0
  384. package/ui/tabs/TabList.d.ts +10 -0
  385. package/ui/tabs/TabList.js +54 -0
  386. package/ui/tabs/TabList.js.map +1 -0
  387. package/ui/tabs/TabPanel.d.ts +17 -0
  388. package/ui/tabs/TabPanel.js +43 -0
  389. package/ui/tabs/TabPanel.js.map +1 -0
  390. package/ui/tabs/Tabs.d.ts +12 -0
  391. package/ui/tabs/Tabs.js +20 -0
  392. package/ui/tabs/Tabs.js.map +1 -0
  393. package/ui/tabs/TabsBody.d.ts +6 -0
  394. package/ui/tabs/TabsBody.js +7 -0
  395. package/ui/tabs/TabsBody.js.map +1 -0
  396. package/ui/tabs/context/TabControl.d.ts +52 -0
  397. package/ui/tabs/context/TabControl.js +90 -0
  398. package/ui/tabs/context/TabControl.js.map +1 -0
  399. package/ui/tabs/hooks/tabControl.d.ts +44 -0
  400. package/ui/tabs/hooks/tabControl.js +34 -0
  401. package/ui/tabs/hooks/tabControl.js.map +1 -0
  402. package/ui/tabs/index.d.ts +5 -0
  403. package/ui/tabs/index.js +13 -0
  404. package/ui/tabs/index.js.map +1 -0
  405. package/ui/tabs/theme.d.ts +10 -0
  406. package/ui/tabs/theme.js +24 -0
  407. package/ui/tabs/theme.js.map +1 -0
  408. package/ui/types/Devices.js.map +1 -0
  409. package/CHANGELOG.md +0 -1949
  410. package/atoms/Clickable/Clickable.js.map +0 -1
  411. package/atoms/Icons/Iconics.d.ts +0 -9
  412. package/atoms/Icons/Iconics.js +0 -2
  413. package/atoms/Icons/Iconics.js.map +0 -1
  414. package/contexts/Devices/Device.js.map +0 -1
  415. package/contexts/Devices/hooks/useQueries.js.map +0 -1
  416. package/contexts/Devices/reducers/reducer.js.map +0 -1
  417. package/contexts/TridentUIConfig.js.map +0 -1
  418. package/helpers/colors/colors.js.map +0 -1
  419. package/helpers/twMerge.js.map +0 -1
  420. package/hooks/keyboard.constants.js.map +0 -1
  421. package/hooks/useInternalStatus.js.map +0 -1
  422. package/hooks/useKeyboardControls.js.map +0 -1
  423. package/hooks/useResizeObserver.js.map +0 -1
  424. package/hooks/useSafeBoop.js.map +0 -1
  425. package/hooks/useSlots.js.map +0 -1
  426. package/hooks/useValue.js.map +0 -1
  427. package/types/Devices.js.map +0 -1
  428. /package/{atoms/Clickable → ui}/Clickable.d.ts +0 -0
  429. /package/{molecules/Arrows → ui/arrows}/ArrowsLabels.d.js +0 -0
  430. /package/{molecules/Arrows → ui/arrows}/ArrowsLabels.d.js.map +0 -0
  431. /package/{contexts → ui/contexts}/Device.js.map +0 -0
  432. /package/{contexts → ui/contexts}/TridentUIConfig.d.ts +0 -0
  433. /package/{contexts/Devices → ui/contexts/devices}/Device.d.ts +0 -0
  434. /package/{contexts/Devices → ui/contexts/devices}/Device.js +0 -0
  435. /package/{contexts/Devices → ui/contexts/devices}/hooks/useQueries.js +0 -0
  436. /package/{contexts/Devices → ui/contexts/devices}/reducers/reducer.d.ts +0 -0
  437. /package/{contexts/Devices → ui/contexts/devices}/reducers/reducer.js +0 -0
  438. /package/{helpers → ui/helpers}/colors/colors.d.ts +0 -0
  439. /package/{helpers → ui/helpers}/colors/colors.js +0 -0
  440. /package/{helpers → ui/helpers}/twMerge.d.ts +0 -0
  441. /package/{helpers → ui/helpers}/twMerge.js +0 -0
  442. /package/{hooks → ui/hooks}/keyboard.constants.d.ts +0 -0
  443. /package/{hooks → ui/hooks}/keyboard.constants.js +0 -0
  444. /package/{hooks → ui/hooks}/useInternalStatus.js +0 -0
  445. /package/{hooks → ui/hooks}/useKeyboardControls.d.ts +0 -0
  446. /package/{hooks → ui/hooks}/useKeyboardControls.js +0 -0
  447. /package/{hooks → ui/hooks}/useResizeObserver.d.ts +0 -0
  448. /package/{hooks → ui/hooks}/useSafeBoop.d.ts +0 -0
  449. /package/{hooks → ui/hooks}/useSlots.d.ts +0 -0
  450. /package/{hooks → ui/hooks}/useSlots.js +0 -0
  451. /package/{hooks → ui/hooks}/useValue.d.ts +0 -0
  452. /package/{hooks → ui/hooks}/useValue.js +0 -0
  453. /package/{types → ui/types}/Colors.d.ts +0 -0
  454. /package/{types → ui/types}/Colors.js +0 -0
  455. /package/{types → ui/types}/Colors.js.map +0 -0
  456. /package/{types → ui/types}/Devices.d.ts +0 -0
  457. /package/{types → ui/types}/Devices.js +0 -0
  458. /package/{types → ui/types}/Direction.d.ts +0 -0
  459. /package/{types → ui/types}/Direction.js +0 -0
  460. /package/{types → ui/types}/Direction.js.map +0 -0
  461. /package/{types → ui/types}/LiteralUnion.d.ts +0 -0
  462. /package/{types → ui/types}/LiteralUnion.js +0 -0
  463. /package/{types → ui/types}/LiteralUnion.js.map +0 -0
  464. /package/{types → ui/types}/ScrollerLabels.d.ts +0 -0
  465. /package/{types → ui/types}/ScrollerLabels.js +0 -0
  466. /package/{types → ui/types}/ScrollerLabels.js.map +0 -0
  467. /package/{types → ui/types}/Theme.d.ts +0 -0
  468. /package/{types → ui/types}/Theme.js +0 -0
  469. /package/{types → ui/types}/Theme.js.map +0 -0
  470. /package/{types → ui/types}/index.d.ts +0 -0
  471. /package/{types → ui/types}/index.js +0 -0
  472. /package/{types → ui/types}/index.js.map +0 -0
@@ -1,24 +1,6 @@
1
- import { c as e } from "../chunks/clsx.js";
2
- import { getBorderColor as r, getTextColor as g, getBgColor as n, getComplementaryTextColor as i } from "../helpers/colors/colors.js";
3
- const l = (t) => ({
4
- solid: {
5
- thRoot: e(n(t), r(t), i(t))
6
- },
7
- outline: {
8
- thRoot: e("bg-transparent", r(t), g(t))
9
- },
10
- light: {
11
- thRoot: e("bg-lightSand text-black border-lightSand")
12
- },
13
- dark: {
14
- thRoot: e("bg-ultramarine text-white border-ultramarine")
15
- }
16
- }), s = (t, { color: a }) => {
17
- const o = l(a);
18
- return o[t] || o.solid;
19
- };
1
+ import { getTheme as t, themes as h } from "../ui/Chip.themes.js";
20
2
  export {
21
- s as getTheme,
22
- l as themes
3
+ t as getTheme,
4
+ h as themes
23
5
  };
24
6
  //# sourceMappingURL=Chip.themes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Chip.themes.js","sources":["../../lib/molecules/Chip.themes.ts"],"sourcesContent":["import clsx from 'clsx';\nimport type { Colors } from '@/types/Colors';\nimport {\n getBgColor,\n getBorderColor,\n getComplementaryTextColor,\n getTextColor,\n} from '@/helpers/colors/colors';\n\nexport type Theme = 'solid' | 'outline' | 'light' | 'dark';\n\ntype Options = { color: Colors };\n\nexport const themes = (color: Colors): Record<Theme, { thRoot: string }> => ({\n solid: {\n thRoot: clsx(getBgColor(color), getBorderColor(color), getComplementaryTextColor(color)),\n },\n outline: {\n thRoot: clsx('bg-transparent', getBorderColor(color), getTextColor(color)),\n },\n light: {\n thRoot: clsx('bg-lightSand text-black border-lightSand'),\n },\n dark: {\n thRoot: clsx('bg-ultramarine text-white border-ultramarine'),\n },\n});\n\nexport const getTheme = (theme: Theme, { color }: Options) => {\n const THEMES = themes(color);\n\n return THEMES[theme] || THEMES.solid;\n};\n"],"names":["themes","color","clsx","getBgColor","getBorderColor","getComplementaryTextColor","getTextColor","getTheme","theme","THEMES"],"mappings":";;AAaO,MAAMA,IAAS,CAACC,OAAsD;AAAA,EAC3E,OAAO;AAAA,IACL,QAAQC,EAAKC,EAAWF,CAAK,GAAGG,EAAeH,CAAK,GAAGI,EAA0BJ,CAAK,CAAC;AAAA,EAAA;AAAA,EAEzF,SAAS;AAAA,IACP,QAAQC,EAAK,kBAAkBE,EAAeH,CAAK,GAAGK,EAAaL,CAAK,CAAC;AAAA,EAAA;AAAA,EAE3E,OAAO;AAAA,IACL,QAAQC,EAAK,0CAA0C;AAAA,EAAA;AAAA,EAEzD,MAAM;AAAA,IACJ,QAAQA,EAAK,8CAA8C;AAAA,EAAA;AAE/D,IAEaK,IAAW,CAACC,GAAc,EAAE,OAAAP,QAAqB;AAC5D,QAAMQ,IAAST,EAAOC,CAAK;AAE3B,SAAOQ,EAAOD,CAAK,KAAKC,EAAO;AACjC;"}
1
+ {"version":3,"file":"Chip.themes.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1 @@
1
+ export * from '../../ui/Clickable';
@@ -0,0 +1,5 @@
1
+ import { Clickable as o } from "../../ui/Clickable.js";
2
+ export {
3
+ o as Clickable
4
+ };
5
+ //# sourceMappingURL=Clickable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Clickable.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,8 +1 @@
1
- import { ComponentPropsWithoutRef, FunctionComponent } from 'react';
2
- interface ElasticHeightProps extends ComponentPropsWithoutRef<'div'> {
3
- innerClassName?: string;
4
- isExpanded?: boolean;
5
- min?: number;
6
- }
7
- export declare const ElasticHeight: FunctionComponent<ElasticHeightProps>;
8
- export {};
1
+ export * from '../ui/ElasticHeight';
@@ -1,36 +1,5 @@
1
- "use client";
2
- import { jsx as s } from "react/jsx-runtime";
3
- import { c as u } from "../chunks/clsx.js";
4
- import { useRef as l, useState as m, useLayoutEffect as d } from "react";
5
- import h from "../hooks/useResizeObserver.js";
6
- const H = ({
7
- className: i,
8
- children: o,
9
- innerClassName: n,
10
- isExpanded: t = !1,
11
- min: a = 0,
12
- ...f
13
- }) => {
14
- const e = l(null), [c, r] = m(0);
15
- return h({
16
- ref: e,
17
- onResize: () => {
18
- e.current && r(e.current?.offsetHeight);
19
- }
20
- }), d(() => {
21
- e.current && r(e.current.offsetHeight);
22
- }, [e]), /* @__PURE__ */ s(
23
- "div",
24
- {
25
- ...f,
26
- className: u("overflow-hidden transition-all duration-500", i),
27
- "data-expanded": t,
28
- style: { height: t ? c : a },
29
- children: /* @__PURE__ */ s("div", { className: n, ref: e, children: o })
30
- }
31
- );
32
- };
1
+ import { ElasticHeight as i } from "../ui/ElasticHeight.js";
33
2
  export {
34
- H as ElasticHeight
3
+ i as ElasticHeight
35
4
  };
36
5
  //# sourceMappingURL=ElasticHeight.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ElasticHeight.js","sources":["../../lib/molecules/ElasticHeight.tsx"],"sourcesContent":["'use client';\n\nimport clsx from 'clsx';\nimport {\n type ComponentPropsWithoutRef,\n type FunctionComponent,\n useLayoutEffect,\n useRef,\n useState,\n} from 'react';\nimport useResizeObserver from '@/hooks/useResizeObserver';\n\ninterface ElasticHeightProps extends ComponentPropsWithoutRef<'div'> {\n innerClassName?: string;\n isExpanded?: boolean;\n min?: number;\n}\n\nexport const ElasticHeight: FunctionComponent<ElasticHeightProps> = ({\n className,\n children,\n innerClassName,\n isExpanded = false,\n min = 0,\n ...attrs\n}) => {\n const ref = useRef<HTMLDivElement>(null as any);\n const [max, setMax] = useState(0);\n\n useResizeObserver<HTMLDivElement>({\n ref: ref,\n onResize: () => {\n if (ref.current) {\n setMax(ref.current?.offsetHeight);\n }\n },\n });\n\n useLayoutEffect(() => {\n if (!ref.current) {\n return;\n }\n setMax(ref.current.offsetHeight);\n }, [ref]);\n\n return (\n <div\n {...attrs}\n className={clsx('overflow-hidden transition-all duration-500', className)}\n data-expanded={isExpanded}\n style={{ height: isExpanded ? max : min }}\n >\n <div className={innerClassName} ref={ref}>\n {children}\n </div>\n </div>\n );\n};\n"],"names":["ElasticHeight","className","children","innerClassName","isExpanded","min","attrs","ref","useRef","max","setMax","useState","useResizeObserver","useLayoutEffect","jsx","clsx"],"mappings":";;;;;AAkBO,MAAMA,IAAuD,CAAC;AAAA,EACnE,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,YAAAC,IAAa;AAAA,EACb,KAAAC,IAAM;AAAA,EACN,GAAGC;AACL,MAAM;AACJ,QAAMC,IAAMC,EAAuB,IAAW,GACxC,CAACC,GAAKC,CAAM,IAAIC,EAAS,CAAC;AAEhC,SAAAC,EAAkC;AAAA,IAChC,KAAAL;AAAA,IACA,UAAU,MAAM;AACd,MAAIA,EAAI,WACNG,EAAOH,EAAI,SAAS,YAAY;AAAA,IAEpC;AAAA,EAAA,CACD,GAEDM,EAAgB,MAAM;AACpB,IAAKN,EAAI,WAGTG,EAAOH,EAAI,QAAQ,YAAY;AAAA,EACjC,GAAG,CAACA,CAAG,CAAC,GAGN,gBAAAO;AAAA,IAAC;AAAA,IAAA;AAAA,MACE,GAAGR;AAAA,MACJ,WAAWS,EAAK,+CAA+Cd,CAAS;AAAA,MACxE,iBAAeG;AAAA,MACf,OAAO,EAAE,QAAQA,IAAaK,IAAMJ,EAAA;AAAA,MAEpC,UAAA,gBAAAS,EAAC,OAAA,EAAI,WAAWX,GAAgB,KAAAI,GAC7B,UAAAL,EAAA,CACH;AAAA,IAAA;AAAA,EAAA;AAGN;"}
1
+ {"version":3,"file":"ElasticHeight.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,6 +1 @@
1
- import { FormControlProps } from '../FormControl';
2
- export interface CheckboxProps<Value = string> extends FormControlProps<Value> {
3
- size?: number;
4
- onChange?: (name: string, value: Value | null) => void;
5
- }
6
- export declare function Checkbox<Value = string>(props: CheckboxProps<Value>): import("react/jsx-runtime").JSX.Element;
1
+ export * from '../../../ui/forms/checkboxes/Checkbox';
@@ -1,100 +1,5 @@
1
- import { jsxs as t, jsx as a } from "react/jsx-runtime";
2
- import { c as n } from "../../../chunks/clsx.js";
3
- import { useId as D } from "react";
4
- import { useValue as S } from "../../../hooks/useValue.js";
5
- /* empty css */
6
- import { useInternalStatus as V } from "../../../hooks/useInternalStatus.js";
7
- import { Icon as h } from "@clubmed/trident-icons";
8
- function A(p) {
9
- const u = D(), {
10
- id: s = u,
11
- name: o = s,
12
- className: x,
13
- dataTestId: f,
14
- disabled: r = !1,
15
- checked: b = !1,
16
- value: l,
17
- size: i = 24,
18
- tabIndex: k = 0,
19
- validationStatus: g = "default",
20
- errorMessage: c,
21
- children: v,
22
- onChange: C,
23
- ...N
24
- } = p, { value: d, setValue: y } = S({
25
- name: o,
26
- initialValue: b,
27
- onChange(w, m) {
28
- C?.(w, m ? l !== void 0 ? l : m : null);
29
- }
30
- }), e = V({
31
- isDisabled: r,
32
- validationStatus: g
33
- }), I = e === "error" && c;
34
- return /* @__PURE__ */ t(
35
- "div",
36
- {
37
- className: n("flex flex-col space-y-2", x),
38
- "data-testid": `checkbox-container-${s}`,
39
- children: [
40
- /* @__PURE__ */ t(
41
- "label",
42
- {
43
- className: n("cursor-pointer relative flex text-b3 items-center", {
44
- "text-grey": e === "disabled",
45
- "text-black": e !== "default"
46
- }),
47
- children: [
48
- /* @__PURE__ */ t("span", { className: "relative self-start me-8", children: [
49
- /* @__PURE__ */ a(
50
- "input",
51
- {
52
- ...N,
53
- name: o,
54
- "data-testid": f,
55
- type: "checkbox",
56
- tabIndex: k,
57
- onChange: () => {
58
- r || y(!d);
59
- },
60
- checked: d,
61
- "data-name": "Checkbox",
62
- disabled: r,
63
- value: l
64
- }
65
- ),
66
- /* @__PURE__ */ a(
67
- "span",
68
- {
69
- style: { height: i, width: i },
70
- className: n({ "!border-red": e === "error" }),
71
- "data-testid": `check-container-${s}`,
72
- children: /* @__PURE__ */ a(
73
- h,
74
- {
75
- name: "CheckDefault",
76
- type: "svg",
77
- width: `${i}px`,
78
- color: "black",
79
- className: "absolute"
80
- }
81
- )
82
- }
83
- )
84
- ] }),
85
- v
86
- ]
87
- }
88
- ),
89
- I && /* @__PURE__ */ t("span", { className: "text-red text-b4 flex items-start space-x-4 ps-20", role: "alert", children: [
90
- /* @__PURE__ */ a(h, { name: "Error", width: "20px" }),
91
- c
92
- ] })
93
- ]
94
- }
95
- );
96
- }
1
+ import { Checkbox as r } from "../../../ui/forms/checkboxes/Checkbox.js";
97
2
  export {
98
- A as Checkbox
3
+ r as Checkbox
99
4
  };
100
5
  //# sourceMappingURL=Checkbox.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.js","sources":["../../../../lib/molecules/Forms/Checkboxes/Checkbox.tsx"],"sourcesContent":["import clsx from 'clsx';\nimport { useId } from 'react';\nimport { useValue } from '@/hooks/useValue.js';\nimport '../controls.css';\nimport type { FormControlProps } from '@/molecules/Forms/FormControl';\nimport { useInternalStatus } from '@/hooks/useInternalStatus';\nimport { Icon } from '@clubmed/trident-icons';\n\nexport interface CheckboxProps<Value = string> extends FormControlProps<Value> {\n size?: number;\n onChange?: (name: string, value: Value | null) => void;\n}\n\nexport function Checkbox<Value = string>(props: CheckboxProps<Value>) {\n const internalId = useId();\n\n const {\n id = internalId,\n name = id,\n className,\n dataTestId,\n disabled = false,\n checked: initialChecked = false,\n value,\n size = 24,\n tabIndex = 0,\n validationStatus = 'default',\n errorMessage,\n children,\n onChange,\n ...rest\n } = props;\n\n const { value: checked, setValue } = useValue<boolean>({\n name,\n initialValue: initialChecked,\n onChange(name, checked) {\n onChange?.(name, checked ? ((value !== undefined ? value : checked) as Value) : null);\n },\n });\n const internalStatus = useInternalStatus({\n isDisabled: disabled,\n validationStatus,\n });\n\n const shouldDisplayErrorMessage = internalStatus === 'error' && errorMessage;\n\n return (\n <div\n className={clsx('flex flex-col space-y-2', className)}\n data-testid={`checkbox-container-${id}`}\n >\n <label\n className={clsx('cursor-pointer relative flex text-b3 items-center', {\n 'text-grey': internalStatus === 'disabled',\n 'text-black': internalStatus !== 'default',\n })}\n >\n <span className=\"relative self-start me-8\">\n <input\n {...rest}\n name={name}\n data-testid={dataTestId}\n type=\"checkbox\"\n tabIndex={tabIndex}\n onChange={() => {\n if (!disabled) setValue(!checked);\n }}\n checked={checked}\n data-name=\"Checkbox\"\n disabled={disabled}\n value={value as any}\n />\n\n <span\n style={{ height: size, width: size }}\n className={clsx({ '!border-red': internalStatus === 'error' })}\n data-testid={`check-container-${id}`}\n >\n <Icon\n name=\"CheckDefault\"\n type=\"svg\"\n width={`${size}px`}\n color=\"black\"\n className=\"absolute\"\n />\n </span>\n </span>\n\n {children}\n </label>\n\n {shouldDisplayErrorMessage && (\n <span className=\"text-red text-b4 flex items-start space-x-4 ps-20\" role=\"alert\">\n <Icon name=\"Error\" width=\"20px\" />\n {errorMessage}\n </span>\n )}\n </div>\n );\n}\n"],"names":["Checkbox","props","internalId","useId","id","name","className","dataTestId","disabled","initialChecked","value","size","tabIndex","validationStatus","errorMessage","children","onChange","rest","checked","setValue","useValue","internalStatus","useInternalStatus","shouldDisplayErrorMessage","jsxs","clsx","jsx","Icon"],"mappings":";;;;;;;AAaO,SAASA,EAAyBC,GAA6B;AACpE,QAAMC,IAAaC,EAAA,GAEb;AAAA,IACJ,IAAAC,I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AA;AAAA,oBACA,aAAU;AAAA,oBACV,UAAAV;AAAA,oBACA,OAAAE;AAAA,kBAAA;AAAA,gBAAA;AAAA,gBAGF,gBAAAgB;AAAA,kBAAC;AAAA,kBAAA;AAAA,oBACC,OAAO,EAAE,QAAQf,GAAM,OAAOA,EAAA;AAAA,oBAC9B,WAAWc,EAAK,EAAE,eAAeJ,MAAmB,SAAS;AAAA,oBAC7D,eAAa,mBAAmBjB,CAAE;AAAA,oBAElC,UAAA,gBAAAsB;AAAA,sBAACC;AAAA,sBAAA;AAAA,wBACC,MAAK;AAAA,wBACL,MAAK;AAAA,wBACL,OAAO,GAAGhB,CAAI;AAAA,wBACd,OAAM;AAAA,wBACN,WAAU;AAAA,sBAAA;AAAA,oBAAA;AAAA,kBACZ;AAAA,gBAAA;AAAA,cACF,GACF;AAAA,cAECI;AAAA,YAAA;AAAA,UAAA;AAAA,QAAA;AAAA,QAGFQ,KACC,gBAAAC,EAAC,QAAA,EAAK,WAAU,qDAAoD,MAAK,SACvE,UAAA;AAAA,UAAA,gBAAAE,EAACC,GAAA,EAAK,MAAK,SAAQ,OAAM,QAAO;AAAA,UAC/Bb;AAAA,QAAA,EAAA,CACH;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAIR;"}
1
+ {"version":3,"file":"Checkbox.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,5 +1 @@
1
- import { HTMLAttributes } from 'react';
2
- import { FormControlProps } from '../FormControl.js';
3
- export interface CheckboxesProps<Value = string> extends Pick<FormControlProps<Value[]>, 'id' | 'name' | 'value' | 'onChange' | 'disabled' | 'readOnly' | 'tabIndex' | 'description' | 'validationStatus' | 'errorMessage'>, Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
4
- }
5
- export declare function Checkboxes<Value = string>(props: CheckboxesProps<Value>): import("react/jsx-runtime").JSX.Element;
1
+ export * from '../../../ui/forms/checkboxes/Checkboxes';
@@ -1,49 +1,5 @@
1
- import { jsx as I } from "react/jsx-runtime";
2
- import { useId as N, Children as v, isValidElement as g, cloneElement as h } from "react";
3
- import { useValue as k } from "../../../hooks/useValue.js";
4
- import { c as E } from "../../../chunks/clsx.js";
5
- function q(i) {
6
- const m = N(), {
7
- id: r = m,
8
- name: n = r,
9
- children: u,
10
- value: c,
11
- defaultValue: p,
12
- onChange: d,
13
- disabled: f,
14
- readOnly: V,
15
- tabIndex: x = 0,
16
- ...s
17
- } = i, { value: t, setValue: o } = k({
18
- name: n,
19
- initialValue: c,
20
- formatter(e) {
21
- return e !== void 0 ? [].concat(e) : e;
22
- },
23
- defaultValue: p || [],
24
- onChange: d
25
- });
26
- return /* @__PURE__ */ I("div", { ...s, className: s.className, role: "listbox", children: v.map(u, (e, l) => {
27
- if (g(e)) {
28
- const a = e.props.value;
29
- return h(e, {
30
- ...e.props,
31
- name: n,
32
- id: `${r}-${l}`,
33
- disabled: f,
34
- readOnly: V,
35
- tabIndex: x + l + 1,
36
- className: E(e.props.className || "mt-8 first:mt-0"),
37
- checked: t.includes(a),
38
- onChange($, b) {
39
- o(b === null ? t.filter((C) => C !== a) : t.concat(a));
40
- }
41
- });
42
- }
43
- return e;
44
- }) });
45
- }
1
+ import { Checkboxes as r } from "../../../ui/forms/checkboxes/Checkboxes.js";
46
2
  export {
47
- q as Checkboxes
3
+ r as Checkboxes
48
4
  };
49
5
  //# sourceMappingURL=Checkboxes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Checkboxes.js","sources":["../../../../lib/molecules/Forms/Checkboxes/Checkboxes.tsx"],"sourcesContent":["import { Children, cloneElement, type HTMLAttributes, isValidElement, useId } from 'react';\nimport type { FormControlProps } from '@/molecules/Forms/FormControl.js';\nimport { useValue } from '@/hooks/useValue.js';\nimport type { CheckboxProps } from './Checkbox.js';\nimport clsx from 'clsx';\n\nexport interface CheckboxesProps<Value = string>\n extends Pick<\n FormControlProps<Value[]>,\n | 'id'\n | 'name'\n | 'value'\n | 'onChange'\n | 'disabled'\n | 'readOnly'\n | 'tabIndex'\n | 'description'\n | 'validationStatus'\n | 'errorMessage'\n >,\n Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {}\n\nexport function Checkboxes<Value = string>(props: CheckboxesProps<Value>) {\n const internalId = useId();\n\n const {\n id = internalId,\n name = id,\n children,\n value: initialValue,\n defaultValue,\n onChange,\n disabled,\n readOnly,\n tabIndex = 0,\n ...rest\n } = props;\n\n const { value, setValue } = useValue<Value[]>({\n name,\n initialValue,\n formatter(value) {\n return value !== undefined ? ([].concat(value as never) as Value[]) : value;\n },\n defaultValue: (defaultValue as Value[]) || ([] as Value[]),\n onChange,\n });\n\n return (\n <div {...rest} className={rest.className} role=\"listbox\">\n {Children.map(children, (child, index) => {\n if (isValidElement(child)) {\n const propValue: Value = (child.props as CheckboxProps<Value>).value as Value;\n\n return cloneElement(child, {\n ...child.props,\n name,\n id: `${id}-${index}`,\n disabled,\n readOnly,\n tabIndex: tabIndex + index + 1,\n className: clsx(child.props.className || 'mt-8 first:mt-0'),\n checked: value.includes(propValue),\n onChange(_: string, item: Value | null) {\n if (item === null) {\n setValue(value.filter((v) => v !== propValue));\n } else {\n setValue(value.concat(propValue));\n }\n },\n } as CheckboxProps<Value>);\n }\n\n return child;\n })}\n </div>\n );\n}\n"],"names":["Checkboxes","props","internalId","useId","id","name","children","initialValue","defaultValue","onChange","disabled","readOnly","tabIndex","rest","value","setValue","useValue","jsx","Children","child","index","isValidElement","propValue","cloneElement","clsx","_","item","v"],"mappings":";;;;AAsBO,SAASA,EAA2BC,GAA+B;AACxE,QAAMC,IAAaC,EAAA,GAEb;AAAA,IACJ,IAAAC,IAAKF;AAAA,IACL,MAAAG,IAAOD;AAAA,IACP,UAAAE;AAAA,IACA,OAAOC;AAAA,IACP,cAAAC;AAAA,IACA,UAAAC;AAAA,IACA,UAAAC;AAAA,IACA,UAAAC;AAAA,IACA,UAAAC,IAAW;AAAA,IACX,GAAGC;AAAA,EAAA,IACDZ,GAEE,EAAE,OAAAa,GAAO,UAAAC,EAAA,IAAaC,EAAkB;AAAA,IAC5C,MAAAX;AAAA,IACA,cAAAE;AAAA,IACA,UAAUO,GAAO;AACf,aAAOA,MAAU,SAAa,CAAA,EAAG,OAAOA,CAAc,IAAgBA;AAAAA,IACxE;AAAA,IACA,cAAeN,KAA6B,CAAA;AAAA,IAC5C,UAAAC;AAAA,EAAA,CACD;AAED,SACE,gBAAAQ,EAAC,OAAA,EAAK,GAAGJ,GAAM,WAAWA,EAAK,WAAW,MAAK,WAC5C,UAAAK,EAAS,IAAIZ,GAAU,CAACa,GAAOC,MAAU;AACxC,QAAIC,EAAeF,CAAK,GAAG;AACzB,YAAMG,IAAoBH,EAAM,MAA+B;AAE/D,aAAOI,EAAaJ,GAAO;AAAA,QACzB,GAAGA,EAAM;AAAA,QACT,MAAAd;AAAA,QACA,IAAI,GAAGD,CAAE,IAAIgB,CAAK;AAAA,QAClB,UAAAV;AAAA,QACA,UAAAC;AAAA,QACA,UAAUC,IAAWQ,IAAQ;AAAA,QAC7B,WAAWI,EAAKL,EAAM,MAAM,aAAa,iBAAiB;AAAA,QAC1D,SAASL,EAAM,SAASQ,CAAS;AAAA,QACjC,SAASG,GAAWC,GAAoB;AACtC,UACEX,EADEW,MAAS,OACFZ,EAAM,OAAO,CAACa,MAAMA,MAAML,CAAS,IAEnCR,EAAM,OAAOQ,CAAS,CAFc;AAAA,QAIjD;AAAA,MAAA,CACuB;AAAA,IAC3B;AAEA,WAAOH;AAAA,EACT,CAAC,EAAA,CACH;AAEJ;"}
1
+ {"version":3,"file":"Checkboxes.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,2 +1,2 @@
1
- export * from './Checkbox.js';
2
- export * from './Checkboxes.js';
1
+ export * from './Checkbox';
2
+ export * from './Checkboxes';
@@ -1,5 +1,5 @@
1
- import { Checkbox as r } from "./Checkbox.js";
2
- import { Checkboxes as b } from "./Checkboxes.js";
1
+ import { Checkbox as r } from "../../../ui/forms/checkboxes/Checkbox.js";
2
+ import { Checkboxes as b } from "../../../ui/forms/checkboxes/Checkboxes.js";
3
3
  export {
4
4
  r as Checkbox,
5
5
  b as Checkboxes
@@ -1,24 +1 @@
1
- import { IconicNames, IconicTypes } from '@clubmed/trident-icons';
2
- import { FormControlProps } from './FormControl.js';
3
- interface DateFieldProps extends Omit<FormControlProps<Date | null>, 'max' | 'min'> {
4
- description?: string;
5
- /**
6
- * Open datepicker text
7
- */
8
- openDatepicker?: string;
9
- id?: string;
10
- icon?: IconicNames;
11
- iconType?: IconicTypes;
12
- errorMessage?: string;
13
- dataTestId?: string;
14
- /**
15
- * Minimum Date allowed
16
- */
17
- min?: Date | undefined;
18
- /**
19
- * Maximum Date allowed
20
- */
21
- max?: Date | undefined;
22
- }
23
- export declare const DateField: (props: DateFieldProps) => import("react/jsx-runtime").JSX.Element;
24
- export {};
1
+ export * from '../../ui/forms/DateField';
@@ -1,188 +1,5 @@
1
- import { jsx as p, jsxs as C } from "react/jsx-runtime";
2
- import { c as q } from "../../chunks/clsx.js";
3
- import { useId as A, useRef as B, useState as H, useCallback as L, useEffect as J } from "react";
4
- import { Icon as E } from "@clubmed/trident-icons";
5
- import { useValue as K } from "../../hooks/useValue.js";
6
- import { useInternalStatus as Q } from "../../hooks/useInternalStatus.js";
7
- import { FormControl as U } from "./FormControl.js";
8
- function V(t) {
9
- "@babel/helpers - typeof";
10
- return V = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
11
- return typeof e;
12
- } : function(e) {
13
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
14
- }, V(t);
15
- }
16
- function P(t, e) {
17
- if (e.length < t)
18
- throw new TypeError(t + " argument" + (t > 1 ? "s" : "") + " required, but only " + e.length + " present");
19
- }
20
- function z(t) {
21
- P(1, arguments);
22
- var e = Object.prototype.toString.call(t);
23
- return t instanceof Date || V(t) === "object" && e === "[object Date]" ? new Date(t.getTime()) : typeof t == "number" || e === "[object Number]" ? new Date(t) : ((typeof t == "string" || e === "[object String]") && typeof console < "u" && (console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"), console.warn(new Error().stack)), /* @__PURE__ */ new Date(NaN));
24
- }
25
- function G(t, e) {
26
- return P(2, arguments), z(t).getTime() - z(e).getTime();
27
- }
28
- function f(t, e) {
29
- for (var n = t < 0 ? "-" : "", r = Math.abs(t).toString(); r.length < e; )
30
- r = "0" + r;
31
- return n + r;
32
- }
33
- function W(t, e) {
34
- var n, r;
35
- P(1, arguments);
36
- var a = z(t);
37
- if (isNaN(a.getTime()))
38
- throw new RangeError("Invalid time value");
39
- var c = String((n = e?.format) !== null && n !== void 0 ? n : "extended"), i = String((r = e?.representation) !== null && r !== void 0 ? r : "complete");
40
- if (c !== "extended" && c !== "basic")
41
- throw new RangeError("format must be 'extended' or 'basic'");
42
- if (i !== "date" && i !== "time" && i !== "complete")
43
- throw new RangeError("representation must be 'date', 'time', or 'complete'");
44
- var d = "", g = "", D = c === "extended" ? "-" : "", I = c === "extended" ? ":" : "";
45
- if (i !== "time") {
46
- var o = f(a.getDate(), 2), y = f(a.getMonth() + 1, 2), T = f(a.getFullYear(), 4);
47
- d = "".concat(T).concat(D).concat(y).concat(D).concat(o);
48
- }
49
- if (i !== "date") {
50
- var b = a.getTimezoneOffset();
51
- if (b !== 0) {
52
- var x = Math.abs(b), l = f(Math.floor(x / 60), 2), u = f(x % 60, 2), j = b < 0 ? "+" : "-";
53
- g = "".concat(j).concat(l, ":").concat(u);
54
- } else
55
- g = "Z";
56
- var F = f(a.getHours(), 2), w = f(a.getMinutes(), 2), S = f(a.getSeconds(), 2), M = d === "" ? "" : "T", s = [F, w, S].join(I);
57
- d = "".concat(d).concat(M).concat(s).concat(g);
58
- }
59
- return d;
60
- }
61
- const O = (t) => t ? W(new Date(t), { representation: "date" }) : "", X = (t, e, n) => {
62
- if (!t)
63
- return !0;
64
- const r = (i) => new Date(i.getFullYear(), i.getMonth(), i.getDate()), a = new Date(t), c = r(a);
65
- return !(e && c < r(e) || n && c > r(n));
66
- }, se = (t) => {
67
- const e = A(), {
68
- id: n = e,
69
- name: r = n,
70
- label: a,
71
- description: c,
72
- openDatepicker: i,
73
- validationStatus: d = "default",
74
- icon: g = "CalendarDefault",
75
- iconType: D,
76
- errorMessage: I,
77
- disabled: o = !1,
78
- required: y = !1,
79
- hideRequiredStar: T,
80
- dataTestId: b = "DateField",
81
- value: x,
82
- min: l,
83
- max: u,
84
- onChange: j,
85
- ...F
86
- } = t, w = B(null), [S, M] = H(!1), s = Q({
87
- isDisabled: o,
88
- validationStatus: d
89
- }), { setValue: v, value: h } = K({
90
- name: r,
91
- formatter: O,
92
- initialValue: x,
93
- onChange: (m, R) => j?.(m, new Date(R))
94
- }), N = O(l), k = O(u), Y = (m) => {
95
- v(m.target.value);
96
- }, Z = () => {
97
- w.current?.showPicker();
98
- }, _ = L(() => {
99
- const m = new Date(h);
100
- if (l && u) {
101
- const R = Math.abs(G(m, l)), $ = Math.abs(G(m, u));
102
- v(R <= $ ? N : k);
103
- return;
104
- }
105
- if (l) {
106
- v(N);
107
- return;
108
- }
109
- if (u) {
110
- v(k);
111
- return;
112
- }
113
- }, [u, l, k, N, v, h]);
114
- return J(() => {
115
- !X(h, l, u) && !S && _();
116
- }, [_, u, l, S, h]), /* @__PURE__ */ p(
117
- U,
118
- {
119
- id: n,
120
- label: a,
121
- description: c,
122
- dataName: "DateField",
123
- dataTestId: b,
124
- disabled: o,
125
- required: y,
126
- hideRequiredStar: T,
127
- validationStatus: d,
128
- errorMessage: I,
129
- children: /* @__PURE__ */ C("div", { className: "relative", children: [
130
- /* @__PURE__ */ p(
131
- "input",
132
- {
133
- ...F,
134
- type: "date",
135
- className: q(
136
- "text-b3 rounded-pill date-field min-h-[50px] w-full border px-20 py-12 ps-[52px] font-normal outline-none",
137
- {
138
- "border-lightGrey focus:border-black active:border-black": s === "default",
139
- "pe-[52px]": s === "error" || s === "success",
140
- "bg-pearl text-grey": o,
141
- "bg-white text-black": !o,
142
- "border-red": !o && s === "error",
143
- "border-green": !o && s === "success"
144
- }
145
- ),
146
- id: n,
147
- disabled: o,
148
- required: y,
149
- ref: w,
150
- value: h,
151
- min: N,
152
- max: k,
153
- onChange: Y,
154
- onFocus: () => M(!0),
155
- onBlur: () => M(!1)
156
- }
157
- ),
158
- /* @__PURE__ */ C(
159
- "div",
160
- {
161
- className: q(
162
- "pointer-events-none absolute inset-0 flex items-center justify-between px-20 py-12",
163
- {
164
- "text-grey": o,
165
- "text-red": !o && s === "error",
166
- "text-green": !o && s === "success"
167
- }
168
- ),
169
- children: [
170
- /* @__PURE__ */ C("button", { className: "pointer-events-auto leading-none", onClick: Z, children: [
171
- /* @__PURE__ */ p(E, { name: g, iconType: D, width: "24px" }),
172
- /* @__PURE__ */ p("span", { className: "sr-only", children: i })
173
- ] }),
174
- /* @__PURE__ */ C("span", { className: "ms-auto flex gap-x-8", children: [
175
- s === "error" && /* @__PURE__ */ p(E, { name: "CrossDefault", width: "24px" }),
176
- s === "success" && /* @__PURE__ */ p(E, { name: "CheckDefault", width: "24px" })
177
- ] })
178
- ]
179
- }
180
- )
181
- ] })
182
- }
183
- );
184
- };
1
+ import { DateField as r } from "../../ui/forms/DateField.js";
185
2
  export {
186
- se as DateField
3
+ r as DateField
187
4
  };
188
5
  //# sourceMappingURL=DateField.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DateField.js","sources":["../../../node_modules/@babel/runtime/helpers/esm/typeof.js","../../../node_modules/date-fns/esm/_lib/requiredArgs/index.js","../../../node_modules/date-fns/esm/toDate/index.js","../../../node_modules/date-fns/esm/differenceInMilliseconds/index.js","../../../node_modules/date-fns/esm/_lib/addLeadingZeros/index.js","../../../node_modules/date-fns/esm/formatISO/index.js","../../../lib/molecules/Forms/DateField.tsx"],"sourcesContent":["export default function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}","export default function requiredArgs(required, args) {\n if (args.length < required) {\n throw new TypeError(required + ' argument' + (required > 1 ? 's' : '') + ' required, but only ' + args.length + ' present');\n }\n}","import _typeof from \"@babel/runtime/helpers/esm/typeof\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name toDate\n * @category Common Helpers\n * @summary Convert the given argument to an instance of Date.\n *\n * @description\n * Convert the given argument to an instance of Date.\n *\n * If the argument is an instance of Date, the function returns its clone.\n *\n * If the argument is a number, it is treated as a timestamp.\n *\n * If the argument is none of the above, the function returns Invalid Date.\n *\n * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.\n *\n * @param {Date|Number} argument - the value to convert\n * @returns {Date} the parsed date in the local time zone\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Clone the date:\n * const result = toDate(new Date(2014, 1, 11, 11, 30, 30))\n * //=> Tue Feb 11 2014 11:30:30\n *\n * @example\n * // Convert the timestamp to date:\n * const result = toDate(1392098430000)\n * //=> Tue Feb 11 2014 11:30:30\n */\nexport default function toDate(argument) {\n requiredArgs(1, arguments);\n var argStr = Object.prototype.toString.call(argument);\n\n // Clone the date\n if (argument instanceof Date || _typeof(argument) === 'object' && argStr === '[object Date]') {\n // Prevent the date to lose the milliseconds when passed to new Date() in IE10\n return new Date(argument.getTime());\n } else if (typeof argument === 'number' || argStr === '[object Number]') {\n return new Date(argument);\n } else {\n if ((typeof argument === 'string' || argStr === '[object String]') && typeof console !== 'undefined') {\n // eslint-disable-next-line no-console\n console.warn(\"Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments\");\n // eslint-disable-next-line no-console\n console.warn(new Error().stack);\n }\n return new Date(NaN);\n }\n}","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name differenceInMilliseconds\n * @category Millisecond Helpers\n * @summary Get the number of milliseconds between the given dates.\n *\n * @description\n * Get the number of milliseconds between the given dates.\n *\n * @param {Date|Number} dateLeft - the later date\n * @param {Date|Number} dateRight - the earlier date\n * @returns {Number} the number of milliseconds\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // How many milliseconds are between\n * // 2 July 2014 12:30:20.600 and 2 July 2014 12:30:21.700?\n * const result = differenceInMilliseconds(\n * new Date(2014, 6, 2, 12, 30, 21, 700),\n * new Date(2014, 6, 2, 12, 30, 20, 600)\n * )\n * //=> 1100\n */\nexport default function differenceInMilliseconds(dateLeft, dateRight) {\n requiredArgs(2, arguments);\n return toDate(dateLeft).getTime() - toDate(dateRight).getTime();\n}","export default function addLeadingZeros(number, targetLength) {\n var sign = number < 0 ? '-' : '';\n var output = Math.abs(number).toString();\n while (output.length < targetLength) {\n output = '0' + output;\n }\n return sign + output;\n}","import toDate from \"../toDate/index.js\";\nimport addLeadingZeros from \"../_lib/addLeadingZeros/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name formatISO\n * @category Common Helpers\n * @summary Format the date according to the ISO 8601 standard (https://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a003169814.htm).\n *\n * @description\n * Return the formatted date string in ISO 8601 format. Options may be passed to control the parts and notations of the date.\n *\n * @param {Date|Number} date - the original date\n * @param {Object} [options] - an object with options.\n * @param {'extended'|'basic'} [options.format='extended'] - if 'basic', hide delimiters between date and time values.\n * @param {'complete'|'date'|'time'} [options.representation='complete'] - format date, time with local time zone, or both.\n * @returns {String} the formatted date string (in local time zone)\n * @throws {TypeError} 1 argument required\n * @throws {RangeError} `date` must not be Invalid Date\n * @throws {RangeError} `options.format` must be 'extended' or 'basic'\n * @throws {RangeError} `options.representation` must be 'date', 'time' or 'complete'\n *\n * @example\n * // Represent 18 September 2019 in ISO 8601 format (local time zone is UTC):\n * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52))\n * //=> '2019-09-18T19:00:52Z'\n *\n * @example\n * // Represent 18 September 2019 in ISO 8601, short format (local time zone is UTC):\n * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52), { format: 'basic' })\n * //=> '20190918T190052'\n *\n * @example\n * // Represent 18 September 2019 in ISO 8601 format, date only:\n * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52), { representation: 'date' })\n * //=> '2019-09-18'\n *\n * @example\n * // Represent 18 September 2019 in ISO 8601 format, time only (local time zone is UTC):\n * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52), { representation: 'time' })\n * //=> '19:00:52Z'\n */\nexport default function formatISO(date, options) {\n var _options$format, _options$representati;\n requiredArgs(1, arguments);\n var originalDate = toDate(date);\n if (isNaN(originalDate.getTime())) {\n throw new RangeError('Invalid time value');\n }\n var format = String((_options$format = options === null || options === void 0 ? void 0 : options.format) !== null && _options$format !== void 0 ? _options$format : 'extended');\n var representation = String((_options$representati = options === null || options === void 0 ? void 0 : options.representation) !== null && _options$representati !== void 0 ? _options$representati : 'complete');\n if (format !== 'extended' && format !== 'basic') {\n throw new RangeError(\"format must be 'extended' or 'basic'\");\n }\n if (representation !== 'date' && representation !== 'time' && representation !== 'complete') {\n throw new RangeError(\"representation must be 'date', 'time', or 'complete'\");\n }\n var result = '';\n var tzOffset = '';\n var dateDelimiter = format === 'extended' ? '-' : '';\n var timeDelimiter = format === 'extended' ? ':' : '';\n\n // Representation is either 'date' or 'complete'\n if (representation !== 'time') {\n var day = addLeadingZeros(originalDate.getDate(), 2);\n var month = addLeadingZeros(originalDate.getMonth() + 1, 2);\n var year = addLeadingZeros(originalDate.getFullYear(), 4);\n\n // yyyyMMdd or yyyy-MM-dd.\n result = \"\".concat(year).concat(dateDelimiter).concat(month).concat(dateDelimiter).concat(day);\n }\n\n // Representation is either 'time' or 'complete'\n if (representation !== 'date') {\n // Add the timezone.\n var offset = originalDate.getTimezoneOffset();\n if (offset !== 0) {\n var absoluteOffset = Math.abs(offset);\n var hourOffset = addLeadingZeros(Math.floor(absoluteOffset / 60), 2);\n var minuteOffset = addLeadingZeros(absoluteOffset % 60, 2);\n // If less than 0, the sign is +, because it is ahead of time.\n var sign = offset < 0 ? '+' : '-';\n tzOffset = \"\".concat(sign).concat(hourOffset, \":\").concat(minuteOffset);\n } else {\n tzOffset = 'Z';\n }\n var hour = addLeadingZeros(originalDate.getHours(), 2);\n var minute = addLeadingZeros(originalDate.getMinutes(), 2);\n var second = addLeadingZeros(originalDate.getSeconds(), 2);\n\n // If there's also date, separate it with time with 'T'\n var separator = result === '' ? '' : 'T';\n\n // Creates a time string consisting of hour, minute, and second, separated by delimiters, if defined.\n var time = [hour, minute, second].join(timeDelimiter);\n\n // HHmmss or HH:mm:ss.\n result = \"\".concat(result).concat(separator).concat(time).concat(tzOffset);\n }\n return result;\n}","import clsx from 'clsx';\nimport { differenceInMilliseconds, formatISO } from 'date-fns';\nimport { type ChangeEvent, useCallback, useEffect, useId, useRef, useState } from 'react';\nimport { Icon, type IconicNames, type IconicTypes } from '@clubmed/trident-icons';\n\nimport { useValue } from '@/hooks/useValue.js';\nimport { useInternalStatus } from '@/hooks/useInternalStatus.js';\nimport { FormControl, type FormControlProps } from './FormControl.js';\n\ninterface DateFieldProps extends Omit<FormControlProps<Date | null>, 'max' | 'min'> {\n description?: string;\n /**\n * Open datepicker text\n */\n openDatepicker?: string;\n id?: string;\n icon?: IconicNames;\n iconType?: IconicTypes;\n errorMessage?: string;\n dataTestId?: string;\n /**\n * Minimum Date allowed\n */\n min?: Date | undefined;\n /**\n * Maximum Date allowed\n */\n max?: Date | undefined;\n}\n\nconst formatDate = (value: Date | number | undefined | null): string => {\n if (!value) {\n return '';\n }\n\n return formatISO(new Date(value), { representation: 'date' });\n};\n\nconst validateDateRange = (date: string, min?: Date, max?: Date): boolean => {\n if (!date) {\n return true;\n }\n\n const normalizeDate = (d: Date) => new Date(d.getFullYear(), d.getMonth(), d.getDate());\n const inputDate = new Date(date);\n const normalizedInputDate = normalizeDate(inputDate);\n\n if (min && normalizedInputDate < normalizeDate(min)) {\n return false;\n }\n if (max && normalizedInputDate > normalizeDate(max)) {\n return false;\n }\n\n return true;\n};\n\nexport const DateField = (props: DateFieldProps) => {\n const internalId = useId();\n\n const {\n id = internalId,\n name = id,\n label,\n description,\n openDatepicker,\n validationStatus = 'default',\n icon = 'CalendarDefault',\n iconType,\n errorMessage,\n disabled = false,\n required = false,\n hideRequiredStar,\n dataTestId = 'DateField',\n value: initialValue,\n min: initialMin,\n max: initialMax,\n onChange,\n ...rest\n } = props;\n\n // NO LOGIC IS IMPLEMENTED YET HERE\n // THIS IS A VISUAL COMPONENT ONLY\n const ref = useRef<HTMLInputElement>(null);\n const [isFocused, setIsFocused] = useState<boolean>(false);\n\n const internalStatus = useInternalStatus({\n isDisabled: disabled,\n validationStatus,\n });\n\n const { setValue, value } = useValue<string, Date | number | undefined | null>({\n name,\n formatter: formatDate as never,\n initialValue,\n onChange: (name, value) => onChange?.(name, new Date(value)),\n });\n\n const min = formatDate(initialMin);\n const max = formatDate(initialMax);\n\n const handleChange = (event: ChangeEvent<HTMLInputElement>) => {\n setValue(event.target.value);\n };\n\n const handleClickPicker = () => {\n ref.current?.showPicker();\n };\n\n const handleOutOfRangeDate = useCallback(() => {\n const currentDate = new Date(value);\n\n if (initialMin && initialMax) {\n const distanceToMin = Math.abs(differenceInMilliseconds(currentDate, initialMin));\n const distanceToMax = Math.abs(differenceInMilliseconds(currentDate, initialMax));\n setValue(distanceToMin <= distanceToMax ? min : max);\n return;\n }\n\n if (initialMin) {\n setValue(min);\n return;\n }\n\n if (initialMax) {\n setValue(max);\n return;\n }\n }, [initialMax, initialMin, max, min, setValue, value]);\n\n useEffect(() => {\n const isValid = validateDateRange(value, initialMin, initialMax);\n if (!isValid && !isFocused) {\n handleOutOfRangeDate();\n }\n }, [handleOutOfRangeDate, initialMax, initialMin, isFocused, value]);\n\n return (\n <FormControl\n id={id}\n label={label}\n description={description}\n dataName=\"DateField\"\n dataTestId={dataTestId}\n disabled={disabled}\n required={required}\n hideRequiredStar={hideRequiredStar}\n validationStatus={validationStatus}\n errorMessage={errorMessage}\n >\n <div className=\"relative\">\n <input\n {...rest}\n type=\"date\"\n className={clsx(\n 'text-b3 rounded-pill date-field min-h-[50px] w-full border px-20 py-12 ps-[52px] font-normal outline-none',\n {\n 'border-lightGrey focus:border-black active:border-black':\n internalStatus === 'default',\n 'pe-[52px]': internalStatus === 'error' || internalStatus === 'success',\n 'bg-pearl text-grey': disabled,\n 'bg-white text-black': !disabled,\n 'border-red': !disabled && internalStatus === 'error',\n 'border-green': !disabled && internalStatus === 'success',\n },\n )}\n id={id}\n disabled={disabled}\n required={required}\n ref={ref}\n value={value}\n min={min}\n max={max}\n onChange={handleChange}\n onFocus={() => setIsFocused(true)}\n onBlur={() => setIsFocused(false)}\n />\n <div\n className={clsx(\n 'pointer-events-none absolute inset-0 flex items-center justify-between px-20 py-12',\n {\n 'text-grey': disabled,\n 'text-red': !disabled && internalStatus === 'error',\n 'text-green': !disabled && internalStatus === 'success',\n },\n )}\n >\n <button className=\"pointer-events-auto leading-none\" onClick={handleClickPicker}>\n <Icon name={icon} iconType={iconType} width=\"24px\" />\n <span className=\"sr-only\">\n {openDatepicker}\n {/* REPLACE THAT WITH SOMETHING LIKE \"OPEN DATEPICKER\" SOONER RATHER THAN LATER PLZ */}\n </span>\n </button>\n <span className=\"ms-auto flex gap-x-8\">\n {internalStatus === 'error' && <Icon name=\"CrossDefault\" width=\"24px\" />}\n {internalStatus === 'success' && <Icon name=\"CheckDefault\" width=\"24px\" />}\n </span>\n </div>\n </div>\n </FormControl>\n );\n};\n"],"names":["_typeof","o","requiredArgs","required","args","toDate","argument","argStr","differenceInMilliseconds","dateLeft","dateRight","addLeadingZeros","number","targetLength","sign","output","formatISO","date","options","_options$format","_options$representati","originalDate","format","representation","result","tzOffset","dateDelimiter","timeDelimiter","day","month","year","offset","absoluteOffset","hourOffset","minuteOffset","hour","minute","second","separator","time","formatDate","value","validateDateRange","min","max","normalizeDate","d","inputDate","normalizedInputDate","DateField","props","internalId","useId","id","name","label","description","openDatepicker","validationStatus","icon","iconType","errorMessage","disabled","hideRequiredStar","dataTestId","initialValue","initialMin","initialMax","onChange","rest","ref","useRef","isFocused","setIsFocused","useState","internalStatus","useInternalStatus","setValue","useValue","handleChange","event","handleClickPicker","handleOutOfRangeDate","useCallback","currentDate","distanceToMin","distanceToMax","useEffect","jsx","FormControl","jsxs","clsx","Icon"],"mappings":";;;;;;;AAAe,SAASA,EAAQC,GAAG;AACjC;AAEA,SAAOD,IAAwB,OAAO,UAArB,cAA2C,OAAO,OAAO,YAA1B,WAAqC,SAAUC,GAAG;AAChG,WAAO,OAAOA;AAAA,EAChB,IAAI,SAAUA,GAAG;AACf,WAAOA,KAAmB,OAAO,UAArB,cAA+BA,EAAE,gBAAgB,UAAUA,MAAM,OAAO,YAAY,WAAW,OAAOA;AAAA,EACpH,GAAGD,EAAQC,CAAC;AACd;ACRe,SAASC,EAAaC,GAAUC,GAAM;AACnD,MAAIA,EAAK,SAASD;AAChB,UAAM,IAAI,UAAUA,IAAW,eAAeA,IAAW,IAAI,MAAM,MAAM,yBAAyBC,EAAK,SAAS,UAAU;AAE9H;AC4Be,SAASC,EAAOC,GAAU;AACvC,EAAAJ,EAAa,GAAG,SAAS;AACzB,MAAIK,IAAS,OAAO,UAAU,SAAS,KAAKD,CAAQ;AAGpD,SAAIA,aAAoB,QAAQN,EAAQM,CAAQ,MAAM,YAAYC,MAAW,kBAEpE,IAAI,KAAKD,EAAS,SAAS,IACzB,OAAOA,KAAa,YAAYC,MAAW,oBAC7C,IAAI,KAAKD,CAAQ,MAEnB,OAAOA,KAAa,YAAYC,MAAW,sBAAsB,OAAO,UAAY,QAEvF,QAAQ,KAAK,oNAAoN,GAEjO,QAAQ,KAAK,IAAI,MAAK,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,OAAA7B;AAAA,YACA,KAAAE;AAAA,YACA,KAAAC;AAAA,YACA,UAAUmC;AAAA,YACV,SAAS,MAAMN,EAAa,EAAI;AAAA,YAChC,QAAQ,MAAMA,EAAa,EAAK;AAAA,UAAA;AAAA,QAAA;AAAA,QAElC,gBAAAiB;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,WAAWC;AAAA,cACT;AAAA,cACA;AAAA,gBACE,aAAa7B;AAAA,gBACb,YAAY,CAACA,KAAYa,MAAmB;AAAA,gBAC5C,cAAc,CAACb,KAAYa,MAAmB;AAAA,cAAA;AAAA,YAChD;AAAA,YAGF,UAAA;AAAA,cAAA,gBAAAe,EAAC,UAAA,EAAO,WAAU,oCAAmC,SAAST,GAC5D,UAAA;AAAA,gBAAA,gBAAAO,EAACI,GAAA,EAAK,MAAMjC,GAAM,UAAAC,GAAoB,OAAM,QAAO;AAAA,gBACnD,gBAAA4B,EAAC,QAAA,EAAK,WAAU,WACb,UAAA/B,EAAA,CAEH;AAAA,cAAA,GACF;AAAA,cACA,gBAAAiC,EAAC,QAAA,EAAK,WAAU,wBACb,UAAA;AAAA,gBAAAf,MAAmB,WAAW,gBAAAa,EAACI,GAAA,EAAK,MAAK,gBAAe,OAAM,QAAO;AAAA,gBACrEjB,MAAmB,aAAa,gBAAAa,EAACI,KAAK,MAAK,gBAAe,OAAM,OAAA,CAAO;AAAA,cAAA,EAAA,CAC1E;AAAA,YAAA;AAAA,UAAA;AAAA,QAAA;AAAA,MACF,EAAA,CACF;AAAA,IAAA;AAAA,EAAA;AAGN;","x_google_ignoreList":[0,1,2,3,4,5]}
1
+ {"version":3,"file":"DateField.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,9 +1 @@
1
- import { FormControlProps } from './FormControl';
2
- export interface FilterProps<Value = string> extends FormControlProps<Value> {
3
- /**
4
- * Is it attached to a dropdown?
5
- */
6
- hasDropdown?: boolean;
7
- onChange?: (name: string, value: Value | null) => void;
8
- }
9
- export declare function Filter<Value = string>(props: FilterProps<Value>): import("react/jsx-runtime").JSX.Element;
1
+ export * from '../../ui/forms/Filter';