@coopdigital/react 1.31.0 → 1.32.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 (383) hide show
  1. package/dist/components/AlertBanner/AlertBanner.d.ts +0 -2
  2. package/dist/components/AlertBanner/AlertBanner.js +1 -2
  3. package/dist/components/AlertBanner/index.js +1 -2
  4. package/dist/components/Author/Author.d.ts +0 -2
  5. package/dist/components/Author/Author.js +1 -2
  6. package/dist/components/Author/index.js +1 -2
  7. package/dist/components/Box/Box.d.ts +0 -2
  8. package/dist/components/Box/Box.js +1 -2
  9. package/dist/components/Box/index.js +1 -2
  10. package/dist/components/Button/Button.d.ts +2 -4
  11. package/dist/components/Button/Button.js +1 -2
  12. package/dist/components/Button/index.js +1 -2
  13. package/dist/components/Card/Card.d.ts +0 -2
  14. package/dist/components/Card/Card.js +1 -2
  15. package/dist/components/Card/index.js +1 -2
  16. package/dist/components/Checkbox/Checkbox.d.ts +0 -2
  17. package/dist/components/Checkbox/Checkbox.js +1 -2
  18. package/dist/components/Checkbox/index.js +1 -2
  19. package/dist/components/Combobox/Combobox.context.js +1 -2
  20. package/dist/components/Combobox/Combobox.d.ts +0 -2
  21. package/dist/components/Combobox/Combobox.js +1 -2
  22. package/dist/components/Combobox/combobox-internal.js +1 -2
  23. package/dist/components/Combobox/combobox-utils.d.ts +1 -3
  24. package/dist/components/Combobox/index.js +1 -2
  25. package/dist/components/DateInput/DateInput.context.js +1 -2
  26. package/dist/components/DateInput/DateInput.d.ts +2 -3
  27. package/dist/components/DateInput/DateInput.js +2 -3
  28. package/dist/components/DateInput/dateinput-utils.d.ts +2 -65
  29. package/dist/components/DateInput/dateinput-utils.js +2 -83
  30. package/dist/components/DateInput/index.d.ts +2 -2
  31. package/dist/components/DateInput/index.js +3 -4
  32. package/dist/components/DatePicker/DatePicker.d.ts +0 -2
  33. package/dist/components/DatePicker/DatePicker.js +1 -2
  34. package/dist/components/DatePicker/datepicker-utils.d.ts +1 -3
  35. package/dist/components/DatePicker/datepicker-utils.js +1 -2
  36. package/dist/components/DatePicker/index.js +1 -2
  37. package/dist/components/Dialog/Dialog.d.ts +0 -2
  38. package/dist/components/Dialog/Dialog.js +1 -2
  39. package/dist/components/Dialog/index.js +1 -2
  40. package/dist/components/Expandable/Expandable.d.ts +0 -2
  41. package/dist/components/Expandable/Expandable.js +1 -2
  42. package/dist/components/Expandable/index.js +1 -2
  43. package/dist/components/Field/Field.context.js +1 -2
  44. package/dist/components/Field/Field.d.ts +0 -2
  45. package/dist/components/Field/Field.js +1 -2
  46. package/dist/components/Field/index.js +1 -2
  47. package/dist/components/FieldMarkers/Error.d.ts +1 -3
  48. package/dist/components/FieldMarkers/Error.js +1 -2
  49. package/dist/components/FieldMarkers/Hint.d.ts +1 -3
  50. package/dist/components/FieldMarkers/Hint.js +1 -2
  51. package/dist/components/FieldMarkers/Label.d.ts +1 -3
  52. package/dist/components/FieldMarkers/Label.js +1 -2
  53. package/dist/components/FieldMarkers/Legend.d.ts +1 -3
  54. package/dist/components/FieldMarkers/Legend.js +1 -2
  55. package/dist/components/FieldMarkers/fieldmarkers-internal.js +1 -2
  56. package/dist/components/Fieldset/Fieldset.context.js +1 -2
  57. package/dist/components/Fieldset/Fieldset.d.ts +0 -2
  58. package/dist/components/Fieldset/Fieldset.js +1 -2
  59. package/dist/components/Fieldset/index.js +1 -2
  60. package/dist/components/Flourish/Flourish.d.ts +0 -2
  61. package/dist/components/Flourish/Flourish.js +1 -2
  62. package/dist/components/Flourish/index.js +1 -2
  63. package/dist/components/Form/Form.d.ts +0 -2
  64. package/dist/components/Form/Form.js +1 -2
  65. package/dist/components/Form/index.js +1 -2
  66. package/dist/components/Image/Image.d.ts +0 -2
  67. package/dist/components/Image/Image.js +1 -2
  68. package/dist/components/Image/index.js +1 -2
  69. package/dist/components/LoadingSpinner/LoadingSpinner.d.ts +0 -2
  70. package/dist/components/LoadingSpinner/LoadingSpinner.js +1 -2
  71. package/dist/components/LoadingSpinner/index.js +1 -2
  72. package/dist/components/Logo/Logo.d.ts +0 -2
  73. package/dist/components/Logo/Logo.js +1 -2
  74. package/dist/components/Logo/index.js +1 -2
  75. package/dist/components/PasswordInput/PasswordInput.d.ts +0 -2
  76. package/dist/components/PasswordInput/PasswordInput.js +1 -2
  77. package/dist/components/PasswordInput/index.js +1 -2
  78. package/dist/components/Picture/Picture.d.ts +0 -2
  79. package/dist/components/Picture/Picture.js +1 -2
  80. package/dist/components/Picture/index.js +1 -2
  81. package/dist/components/Pill/Pill.d.ts +0 -2
  82. package/dist/components/Pill/Pill.js +1 -2
  83. package/dist/components/Pill/index.js +1 -2
  84. package/dist/components/Popover/Popover.d.ts +0 -2
  85. package/dist/components/Popover/Popover.js +1 -2
  86. package/dist/components/Popover/index.js +1 -2
  87. package/dist/components/Prose/Prose.d.ts +0 -2
  88. package/dist/components/Prose/Prose.js +1 -2
  89. package/dist/components/Prose/index.js +1 -2
  90. package/dist/components/Radio/Radio.d.ts +0 -2
  91. package/dist/components/Radio/Radio.js +1 -2
  92. package/dist/components/Radio/index.js +1 -2
  93. package/dist/components/RootSVG/RootSVG.d.ts +0 -2
  94. package/dist/components/RootSVG/RootSVG.js +1 -2
  95. package/dist/components/RootSVG/index.js +1 -2
  96. package/dist/components/Searchbox/Searchbox.context.js +1 -2
  97. package/dist/components/Searchbox/Searchbox.d.ts +0 -2
  98. package/dist/components/Searchbox/Searchbox.js +1 -2
  99. package/dist/components/Searchbox/index.js +1 -2
  100. package/dist/components/Section/Section.d.ts +0 -2
  101. package/dist/components/Section/Section.js +1 -2
  102. package/dist/components/Section/index.js +1 -2
  103. package/dist/components/Select/Select.d.ts +0 -2
  104. package/dist/components/Select/Select.js +1 -2
  105. package/dist/components/Select/index.js +1 -2
  106. package/dist/components/Signpost/Signpost.d.ts +0 -2
  107. package/dist/components/Signpost/Signpost.js +1 -2
  108. package/dist/components/Signpost/index.js +1 -2
  109. package/dist/components/SkipNav/SkipNav.d.ts +0 -2
  110. package/dist/components/SkipNav/SkipNav.js +1 -2
  111. package/dist/components/SkipNav/index.js +1 -2
  112. package/dist/components/Squircle/Squircle.d.ts +0 -2
  113. package/dist/components/Squircle/Squircle.js +1 -2
  114. package/dist/components/Squircle/index.js +1 -2
  115. package/dist/components/Tag/Tag.d.ts +0 -2
  116. package/dist/components/Tag/Tag.js +1 -2
  117. package/dist/components/Tag/index.js +1 -2
  118. package/dist/components/TextInput/TextInput.d.ts +0 -2
  119. package/dist/components/TextInput/TextInput.js +1 -2
  120. package/dist/components/TextInput/index.js +1 -2
  121. package/dist/components/Textarea/Textarea.d.ts +0 -2
  122. package/dist/components/Textarea/Textarea.js +1 -2
  123. package/dist/components/Textarea/index.js +1 -2
  124. package/dist/components/ValidationSummary/ValidationSummary.context.js +1 -2
  125. package/dist/components/ValidationSummary/ValidationSummary.d.ts +0 -2
  126. package/dist/components/ValidationSummary/ValidationSummary.js +1 -2
  127. package/dist/components/ValidationSummary/index.js +1 -2
  128. package/dist/components/ValidationSummary/validationsummary-internal.d.ts +1 -3
  129. package/dist/components/ValidationSummary/validationsummary-internal.js +1 -2
  130. package/dist/components/Wrapper/Wrapper.d.ts +0 -2
  131. package/dist/components/Wrapper/Wrapper.js +1 -2
  132. package/dist/components/Wrapper/index.js +1 -2
  133. package/dist/components/icons/AccountCircleFilledIcon.d.ts +0 -2
  134. package/dist/components/icons/AccountCircleFilledIcon.js +1 -2
  135. package/dist/components/icons/AccountCircleIcon.d.ts +0 -2
  136. package/dist/components/icons/AccountCircleIcon.js +1 -2
  137. package/dist/components/icons/AccountFilledIcon.d.ts +0 -2
  138. package/dist/components/icons/AccountFilledIcon.js +1 -2
  139. package/dist/components/icons/AccountIcon.d.ts +0 -2
  140. package/dist/components/icons/AccountIcon.js +1 -2
  141. package/dist/components/icons/AddIcon.d.ts +0 -2
  142. package/dist/components/icons/AddIcon.js +1 -2
  143. package/dist/components/icons/AppsFilledIcon.d.ts +0 -2
  144. package/dist/components/icons/AppsFilledIcon.js +1 -2
  145. package/dist/components/icons/AppsIcon.d.ts +0 -2
  146. package/dist/components/icons/AppsIcon.js +1 -2
  147. package/dist/components/icons/ArrowDownIcon.d.ts +0 -2
  148. package/dist/components/icons/ArrowDownIcon.js +1 -2
  149. package/dist/components/icons/ArrowLeftIcon.d.ts +0 -2
  150. package/dist/components/icons/ArrowLeftIcon.js +1 -2
  151. package/dist/components/icons/ArrowRightIcon.d.ts +0 -2
  152. package/dist/components/icons/ArrowRightIcon.js +1 -2
  153. package/dist/components/icons/ArrowUpIcon.d.ts +0 -2
  154. package/dist/components/icons/ArrowUpIcon.js +1 -2
  155. package/dist/components/icons/BackspaceFilledIcon.d.ts +0 -2
  156. package/dist/components/icons/BackspaceFilledIcon.js +1 -2
  157. package/dist/components/icons/BackspaceIcon.d.ts +0 -2
  158. package/dist/components/icons/BackspaceIcon.js +1 -2
  159. package/dist/components/icons/BasketFilledIcon.d.ts +0 -2
  160. package/dist/components/icons/BasketFilledIcon.js +1 -2
  161. package/dist/components/icons/BasketIcon.d.ts +0 -2
  162. package/dist/components/icons/BasketIcon.js +1 -2
  163. package/dist/components/icons/BellFilledIcon.d.ts +0 -2
  164. package/dist/components/icons/BellFilledIcon.js +1 -2
  165. package/dist/components/icons/BellIcon.d.ts +0 -2
  166. package/dist/components/icons/BellIcon.js +1 -2
  167. package/dist/components/icons/BroomIcon.d.ts +0 -2
  168. package/dist/components/icons/BroomIcon.js +1 -2
  169. package/dist/components/icons/CalendarFilledIcon.d.ts +0 -2
  170. package/dist/components/icons/CalendarFilledIcon.js +1 -2
  171. package/dist/components/icons/CalendarIcon.d.ts +0 -2
  172. package/dist/components/icons/CalendarIcon.js +1 -2
  173. package/dist/components/icons/CashFilledIcon.d.ts +0 -2
  174. package/dist/components/icons/CashFilledIcon.js +1 -2
  175. package/dist/components/icons/CashIcon.d.ts +0 -2
  176. package/dist/components/icons/CashIcon.js +1 -2
  177. package/dist/components/icons/ChevronDownIcon.d.ts +0 -2
  178. package/dist/components/icons/ChevronDownIcon.js +1 -2
  179. package/dist/components/icons/ChevronLeftIcon.d.ts +0 -2
  180. package/dist/components/icons/ChevronLeftIcon.js +1 -2
  181. package/dist/components/icons/ChevronRightIcon.d.ts +0 -2
  182. package/dist/components/icons/ChevronRightIcon.js +1 -2
  183. package/dist/components/icons/ChevronUpIcon.d.ts +0 -2
  184. package/dist/components/icons/ChevronUpIcon.js +1 -2
  185. package/dist/components/icons/CircleBurgerFilledIcon.d.ts +0 -2
  186. package/dist/components/icons/CircleBurgerFilledIcon.js +1 -2
  187. package/dist/components/icons/CircleBurgerIcon.d.ts +0 -2
  188. package/dist/components/icons/CircleBurgerIcon.js +1 -2
  189. package/dist/components/icons/ClipboardFilledIcon.d.ts +0 -2
  190. package/dist/components/icons/ClipboardFilledIcon.js +1 -2
  191. package/dist/components/icons/ClipboardIcon.d.ts +0 -2
  192. package/dist/components/icons/ClipboardIcon.js +1 -2
  193. package/dist/components/icons/ClockFilledIcon.d.ts +0 -2
  194. package/dist/components/icons/ClockFilledIcon.js +1 -2
  195. package/dist/components/icons/ClockIcon.d.ts +0 -2
  196. package/dist/components/icons/ClockIcon.js +1 -2
  197. package/dist/components/icons/CloseAltFilledIcon.d.ts +0 -2
  198. package/dist/components/icons/CloseAltFilledIcon.js +1 -2
  199. package/dist/components/icons/CloseAltIcon.d.ts +0 -2
  200. package/dist/components/icons/CloseAltIcon.js +1 -2
  201. package/dist/components/icons/CogIcon.d.ts +0 -2
  202. package/dist/components/icons/CogIcon.js +1 -2
  203. package/dist/components/icons/CommunityFilledIcon.d.ts +0 -2
  204. package/dist/components/icons/CommunityFilledIcon.js +1 -2
  205. package/dist/components/icons/CommunityIcon.d.ts +0 -2
  206. package/dist/components/icons/CommunityIcon.js +1 -2
  207. package/dist/components/icons/ComputerIcon.d.ts +0 -2
  208. package/dist/components/icons/ComputerIcon.js +1 -2
  209. package/dist/components/icons/ContactFilledIcon.d.ts +0 -2
  210. package/dist/components/icons/ContactFilledIcon.js +1 -2
  211. package/dist/components/icons/ContactIcon.d.ts +0 -2
  212. package/dist/components/icons/ContactIcon.js +1 -2
  213. package/dist/components/icons/ContactlessFilledIcon.d.ts +0 -2
  214. package/dist/components/icons/ContactlessFilledIcon.js +1 -2
  215. package/dist/components/icons/ContactlessIcon.d.ts +0 -2
  216. package/dist/components/icons/ContactlessIcon.js +1 -2
  217. package/dist/components/icons/CoopLiveIcon.d.ts +0 -2
  218. package/dist/components/icons/CoopLiveIcon.js +1 -2
  219. package/dist/components/icons/CoopLocationFilledIcon.d.ts +0 -2
  220. package/dist/components/icons/CoopLocationFilledIcon.js +1 -2
  221. package/dist/components/icons/CoopLogoIcon.d.ts +0 -2
  222. package/dist/components/icons/CoopLogoIcon.js +1 -2
  223. package/dist/components/icons/CoopMembershipCardFilledIcon.d.ts +0 -2
  224. package/dist/components/icons/CoopMembershipCardFilledIcon.js +1 -2
  225. package/dist/components/icons/CreditCardFilledIcon.d.ts +0 -2
  226. package/dist/components/icons/CreditCardFilledIcon.js +1 -2
  227. package/dist/components/icons/CreditCardIcon.d.ts +0 -2
  228. package/dist/components/icons/CreditCardIcon.js +1 -2
  229. package/dist/components/icons/CrossIcon.d.ts +0 -2
  230. package/dist/components/icons/CrossIcon.js +1 -2
  231. package/dist/components/icons/DocumentIcon.d.ts +0 -2
  232. package/dist/components/icons/DocumentIcon.js +1 -2
  233. package/dist/components/icons/DownloadIcon.d.ts +0 -2
  234. package/dist/components/icons/DownloadIcon.js +1 -2
  235. package/dist/components/icons/EnterStoreIcon.d.ts +0 -2
  236. package/dist/components/icons/EnterStoreIcon.js +1 -2
  237. package/dist/components/icons/ExitStoreIcon.d.ts +0 -2
  238. package/dist/components/icons/ExitStoreIcon.js +1 -2
  239. package/dist/components/icons/EyeFilledIcon.d.ts +0 -2
  240. package/dist/components/icons/EyeFilledIcon.js +1 -2
  241. package/dist/components/icons/EyeIcon.d.ts +0 -2
  242. package/dist/components/icons/EyeIcon.js +1 -2
  243. package/dist/components/icons/EyeStrikeFilledIcon.d.ts +0 -2
  244. package/dist/components/icons/EyeStrikeFilledIcon.js +1 -2
  245. package/dist/components/icons/EyeStrikeIcon.d.ts +0 -2
  246. package/dist/components/icons/EyeStrikeIcon.js +1 -2
  247. package/dist/components/icons/FeedbackFilledIcon.d.ts +0 -2
  248. package/dist/components/icons/FeedbackFilledIcon.js +1 -2
  249. package/dist/components/icons/FeedbackIcon.d.ts +0 -2
  250. package/dist/components/icons/FeedbackIcon.js +1 -2
  251. package/dist/components/icons/FilterIcon.d.ts +0 -2
  252. package/dist/components/icons/FilterIcon.js +1 -2
  253. package/dist/components/icons/GiftCardFilledIcon.d.ts +0 -2
  254. package/dist/components/icons/GiftCardFilledIcon.js +1 -2
  255. package/dist/components/icons/GiftCardIcon.d.ts +0 -2
  256. package/dist/components/icons/GiftCardIcon.js +1 -2
  257. package/dist/components/icons/GiftFilledIcon.d.ts +0 -2
  258. package/dist/components/icons/GiftFilledIcon.js +1 -2
  259. package/dist/components/icons/GiftIcon.d.ts +0 -2
  260. package/dist/components/icons/GiftIcon.js +1 -2
  261. package/dist/components/icons/HelpFilledIcon.d.ts +0 -2
  262. package/dist/components/icons/HelpFilledIcon.js +1 -2
  263. package/dist/components/icons/HelpIcon.d.ts +0 -2
  264. package/dist/components/icons/HelpIcon.js +1 -2
  265. package/dist/components/icons/HomeFilledIcon.d.ts +0 -2
  266. package/dist/components/icons/HomeFilledIcon.js +1 -2
  267. package/dist/components/icons/HomeIcon.d.ts +0 -2
  268. package/dist/components/icons/HomeIcon.js +1 -2
  269. package/dist/components/icons/HowDoIAssistantIcon.d.ts +0 -2
  270. package/dist/components/icons/HowDoIAssistantIcon.js +1 -2
  271. package/dist/components/icons/InfoIcon.d.ts +0 -2
  272. package/dist/components/icons/InfoIcon.js +1 -2
  273. package/dist/components/icons/KebabIcon.d.ts +0 -2
  274. package/dist/components/icons/KebabIcon.js +1 -2
  275. package/dist/components/icons/LoadingIcon.d.ts +0 -2
  276. package/dist/components/icons/LoadingIcon.js +1 -2
  277. package/dist/components/icons/LocationFilledIcon.d.ts +0 -2
  278. package/dist/components/icons/LocationFilledIcon.js +1 -2
  279. package/dist/components/icons/LocationIcon.d.ts +0 -2
  280. package/dist/components/icons/LocationIcon.js +1 -2
  281. package/dist/components/icons/LogoutIcon.d.ts +0 -2
  282. package/dist/components/icons/LogoutIcon.js +1 -2
  283. package/dist/components/icons/MailIcon.d.ts +0 -2
  284. package/dist/components/icons/MailIcon.js +1 -2
  285. package/dist/components/icons/MenuIcon.d.ts +0 -2
  286. package/dist/components/icons/MenuIcon.js +1 -2
  287. package/dist/components/icons/MessageIcon.d.ts +0 -2
  288. package/dist/components/icons/MessageIcon.js +1 -2
  289. package/dist/components/icons/MinusIcon.d.ts +0 -2
  290. package/dist/components/icons/MinusIcon.js +1 -2
  291. package/dist/components/icons/NotesFilledIcon.d.ts +0 -2
  292. package/dist/components/icons/NotesFilledIcon.js +1 -2
  293. package/dist/components/icons/NotesIcon.d.ts +0 -2
  294. package/dist/components/icons/NotesIcon.js +1 -2
  295. package/dist/components/icons/OpenNewIcon.d.ts +0 -2
  296. package/dist/components/icons/OpenNewIcon.js +1 -2
  297. package/dist/components/icons/OwnBagIcon.d.ts +0 -2
  298. package/dist/components/icons/OwnBagIcon.js +1 -2
  299. package/dist/components/icons/PadlockIcon.d.ts +0 -2
  300. package/dist/components/icons/PadlockIcon.js +1 -2
  301. package/dist/components/icons/PencilIcon.d.ts +0 -2
  302. package/dist/components/icons/PencilIcon.js +1 -2
  303. package/dist/components/icons/PhoneIcon.d.ts +0 -2
  304. package/dist/components/icons/PhoneIcon.js +1 -2
  305. package/dist/components/icons/PowerIcon.d.ts +0 -2
  306. package/dist/components/icons/PowerIcon.js +1 -2
  307. package/dist/components/icons/SaveFilledIcon.d.ts +0 -2
  308. package/dist/components/icons/SaveFilledIcon.js +1 -2
  309. package/dist/components/icons/SaveIcon.d.ts +0 -2
  310. package/dist/components/icons/SaveIcon.js +1 -2
  311. package/dist/components/icons/ScooterIcon.d.ts +0 -2
  312. package/dist/components/icons/ScooterIcon.js +1 -2
  313. package/dist/components/icons/SearchFilledIcon.d.ts +0 -2
  314. package/dist/components/icons/SearchFilledIcon.js +1 -2
  315. package/dist/components/icons/SearchIcon.d.ts +0 -2
  316. package/dist/components/icons/SearchIcon.js +1 -2
  317. package/dist/components/icons/SendIcon.d.ts +0 -2
  318. package/dist/components/icons/SendIcon.js +1 -2
  319. package/dist/components/icons/SpannerIcon.d.ts +0 -2
  320. package/dist/components/icons/SpannerIcon.js +1 -2
  321. package/dist/components/icons/StarFilledIcon.d.ts +0 -2
  322. package/dist/components/icons/StarFilledIcon.js +1 -2
  323. package/dist/components/icons/StarIcon.d.ts +0 -2
  324. package/dist/components/icons/StarIcon.js +1 -2
  325. package/dist/components/icons/TickAltFilledIcon.d.ts +0 -2
  326. package/dist/components/icons/TickAltFilledIcon.js +1 -2
  327. package/dist/components/icons/TickAltIcon.d.ts +0 -2
  328. package/dist/components/icons/TickAltIcon.js +1 -2
  329. package/dist/components/icons/TickIcon.d.ts +0 -2
  330. package/dist/components/icons/TickIcon.js +1 -2
  331. package/dist/components/icons/TruckIcon.d.ts +0 -2
  332. package/dist/components/icons/TruckIcon.js +1 -2
  333. package/dist/components/icons/UserWipeIcon.d.ts +0 -2
  334. package/dist/components/icons/UserWipeIcon.js +1 -2
  335. package/dist/components/icons/VoucherFilledIcon.d.ts +0 -2
  336. package/dist/components/icons/VoucherFilledIcon.js +1 -2
  337. package/dist/components/icons/VoucherIcon.d.ts +0 -2
  338. package/dist/components/icons/VoucherIcon.js +1 -2
  339. package/dist/components/icons/WarningCircleFilledIcon.d.ts +0 -2
  340. package/dist/components/icons/WarningCircleFilledIcon.js +1 -2
  341. package/dist/components/icons/WarningCircleIcon.d.ts +0 -2
  342. package/dist/components/icons/WarningCircleIcon.js +1 -2
  343. package/dist/components/icons/WarningFilledIcon.d.ts +0 -2
  344. package/dist/components/icons/WarningFilledIcon.js +1 -2
  345. package/dist/components/icons/WarningIcon.d.ts +0 -2
  346. package/dist/components/icons/WarningIcon.js +1 -2
  347. package/dist/components/icons/WifiIcon.d.ts +0 -2
  348. package/dist/components/icons/WifiIcon.js +1 -2
  349. package/dist/components/icons/WriteIcon.d.ts +0 -2
  350. package/dist/components/icons/WriteIcon.js +1 -2
  351. package/dist/hooks/useDebounce.d.ts +1 -3
  352. package/dist/hooks/useDebounce.js +1 -2
  353. package/dist/hooks/useFormReset.d.ts +0 -2
  354. package/dist/hooks/useFormReset.js +1 -2
  355. package/dist/hooks/useId.d.ts +1 -3
  356. package/dist/hooks/useId.js +1 -2
  357. package/dist/hooks/useSlots.d.ts +0 -2
  358. package/dist/hooks/useSlots.js +1 -2
  359. package/dist/index.d.ts +2 -1
  360. package/dist/index.js +2 -1
  361. package/dist/types/colors.d.ts +1 -3
  362. package/dist/types/index.d.ts +1 -3
  363. package/dist/types/index.js +1 -2
  364. package/dist/utils/classes.d.ts +1 -3
  365. package/dist/utils/classes.js +1 -2
  366. package/dist/utils/slots.d.ts +1 -3
  367. package/dist/utils/slots.js +1 -2
  368. package/dist/validations/date-internal.d.ts +4 -0
  369. package/dist/{components/DateInput/dateinput-internal.js → validations/date-internal.js} +4 -5
  370. package/dist/validations/date.d.ts +58 -0
  371. package/dist/validations/date.js +79 -0
  372. package/dist/validations/index.d.ts +2 -0
  373. package/dist/validations/index.js +1 -0
  374. package/package.json +18 -12
  375. package/src/components/Button/Button.tsx +2 -2
  376. package/src/components/DateInput/DateInput.context.ts +2 -1
  377. package/src/components/DateInput/DateInput.tsx +4 -7
  378. package/src/components/DateInput/dateinput-utils.ts +1 -183
  379. package/src/index.ts +1 -0
  380. package/src/{components/DateInput/dateinput-internal.ts → validations/date-internal.ts} +15 -24
  381. package/src/validations/date.ts +177 -0
  382. package/src/validations/index.ts +1 -0
  383. package/dist/components/DateInput/dateinput-internal.d.ts +0 -6
@@ -1,8 +1,6 @@
1
1
  import { JSX, SVGProps } from "react";
2
- //#region src/components/icons/TickIcon.d.ts
3
2
  interface IconProps extends SVGProps<SVGSVGElement> {
4
3
  alt?: string;
5
4
  }
6
5
  export declare const TickIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
8
6
  export {};
@@ -1,7 +1,7 @@
1
1
  import { useId } from "../../hooks/useId.js";
2
2
  import clsx from "clsx";
3
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
- //#region src/components/icons/TickIcon.tsx
4
+ // src/components/icons/TickIcon.tsx
5
5
  const TickIcon = ({ alt, className, fill, id, ref, ...props }) => {
6
6
  const uid = useId(id);
7
7
  const componentProps = {
@@ -23,5 +23,4 @@ const TickIcon = ({ alt, className, fill, id, ref, ...props }) => {
23
23
  }) : null, /* @__PURE__ */ jsx("path", { d: "M28.293 6.293a1 1 0 0 1 1.414 1.414l-18 18a1 1 0 0 1-1.414 0l-8-8a1 1 0 1 1 1.414-1.414L11 23.586z" })]
24
24
  });
25
25
  };
26
- //#endregion
27
26
  export { TickIcon };
@@ -1,8 +1,6 @@
1
1
  import { JSX, SVGProps } from "react";
2
- //#region src/components/icons/TruckIcon.d.ts
3
2
  interface IconProps extends SVGProps<SVGSVGElement> {
4
3
  alt?: string;
5
4
  }
6
5
  export declare const TruckIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
8
6
  export {};
@@ -1,7 +1,7 @@
1
1
  import { useId } from "../../hooks/useId.js";
2
2
  import clsx from "clsx";
3
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
- //#region src/components/icons/TruckIcon.tsx
4
+ // src/components/icons/TruckIcon.tsx
5
5
  const TruckIcon = ({ alt, className, fill, id, ref, ...props }) => {
6
6
  const uid = useId(id);
7
7
  const componentProps = {
@@ -23,5 +23,4 @@ const TruckIcon = ({ alt, className, fill, id, ref, ...props }) => {
23
23
  }) : null, /* @__PURE__ */ jsx("path", { d: "M20 6a2 2 0 0 1 2 2h4.29l.19.009a2 2 0 0 1 1.8 1.792l.5 5q.017.181.002.358A2 2 0 0 1 30 17v7a2 2 0 0 1-2 2h-1.258a4.5 4.5 0 0 1-8.484 0h-4.516a4.5 4.5 0 0 1-8.484 0H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2zM9.5 22a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5m13 0a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5m-4.483 2.89q0 .022.003.043a5 5 0 0 1-.014-.202zM4 24h1.028a4.5 4.5 0 0 1 8.944 0h4.056a4.5 4.5 0 0 1 8.944 0H28v-7h-6a2 2 0 0 1-.39-.04q-.038-.008-.077-.018-.05-.011-.1-.025-.042-.013-.083-.027a2 2 0 0 1-.266-.114l-.066-.035-.094-.057-.063-.04q-.038-.028-.075-.057a2 2 0 0 1-.374-.374q-.022-.028-.043-.056l-.027-.039q-.014-.022-.027-.043-.03-.045-.057-.094l-.035-.066a2 2 0 0 1-.114-.266q-.015-.04-.027-.083-.015-.054-.027-.109l-.017-.067a2 2 0 0 1-.027-.186L20 15V8H4zm18-9h4.79l-.5-5H22zm-8.021 9.933" })]
24
24
  });
25
25
  };
26
- //#endregion
27
26
  export { TruckIcon };
@@ -1,8 +1,6 @@
1
1
  import { JSX, SVGProps } from "react";
2
- //#region src/components/icons/UserWipeIcon.d.ts
3
2
  interface IconProps extends SVGProps<SVGSVGElement> {
4
3
  alt?: string;
5
4
  }
6
5
  export declare const UserWipeIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
8
6
  export {};
@@ -1,7 +1,7 @@
1
1
  import { useId } from "../../hooks/useId.js";
2
2
  import clsx from "clsx";
3
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
- //#region src/components/icons/UserWipeIcon.tsx
4
+ // src/components/icons/UserWipeIcon.tsx
5
5
  const UserWipeIcon = ({ alt, className, fill, id, ref, ...props }) => {
6
6
  const uid = useId(id);
7
7
  const componentProps = {
@@ -23,5 +23,4 @@ const UserWipeIcon = ({ alt, className, fill, id, ref, ...props }) => {
23
23
  }) : null, /* @__PURE__ */ jsx("path", { d: "M3.707 5.093a1 1 0 0 1 1.26-.126l22.2 22.2a1 1 0 0 1-1.54 1.26L24.398 27.2a14 14 0 0 1-4.497 2.248l-.03.01q-.447.127-.904.227l-.038.007q-.126.027-.251.051l-.099.02a14 14 0 0 1-.558.091l-.09.013a13 13 0 0 1-.559.067l-.203.017-.115.01q-.153.011-.306.02l-.033.001a14 14 0 0 1-1.43 0q-.018 0-.034-.002l-.306-.019-.115-.01q-.102-.007-.203-.017l-.225-.025-.087-.01-.245-.03-.093-.014-.236-.037-.1-.016a15 15 0 0 1-.57-.109l-.039-.008a14 14 0 0 1-.903-.227l-.032-.01C6.264 27.757 2 22.377 2 16c0-3.152 1.042-6.06 2.8-8.4L3.707 6.507a1 1 0 0 1 0-1.414M16.001 20a9.99 9.99 0 0 0-8.397 4.57A11.95 11.95 0 0 0 16 28c2.599 0 5-.83 6.964-2.235L17.28 20.08a10 10 0 0 0-1.28-.081M16 2c7.732 0 14 6.268 14 14 0 3.145-1.04 6.045-2.791 8.38l-1.434-1.433c.435-.61.817-1.26 1.132-1.947A11.95 11.95 0 0 0 28 16c0-6.627-5.373-12-12-12-2.592 0-4.99.823-6.952 2.22L7.615 4.787A13.94 13.94 0 0 1 16 2M6.232 9.032A11.94 11.94 0 0 0 4 16a11.95 11.95 0 0 0 2.256 6.997 12.03 12.03 0 0 1 5.92-4.374 5.99 5.99 0 0 1-2.074-5.72zm5.872 5.871a4 4 0 0 0 2.99 2.992zM16 8a6 6 0 0 1 4.636 9.808l-1.424-1.424a4 4 0 0 0-5.597-5.597l-1.424-1.424A5.98 5.98 0 0 1 16 8" })]
24
24
  });
25
25
  };
26
- //#endregion
27
26
  export { UserWipeIcon };
@@ -1,8 +1,6 @@
1
1
  import { JSX, SVGProps } from "react";
2
- //#region src/components/icons/VoucherFilledIcon.d.ts
3
2
  interface IconProps extends SVGProps<SVGSVGElement> {
4
3
  alt?: string;
5
4
  }
6
5
  export declare const VoucherFilledIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
8
6
  export {};
@@ -1,7 +1,7 @@
1
1
  import { useId } from "../../hooks/useId.js";
2
2
  import clsx from "clsx";
3
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
- //#region src/components/icons/VoucherFilledIcon.tsx
4
+ // src/components/icons/VoucherFilledIcon.tsx
5
5
  const VoucherFilledIcon = ({ alt, className, fill, id, ref, ...props }) => {
6
6
  const uid = useId(id);
7
7
  const componentProps = {
@@ -23,5 +23,4 @@ const VoucherFilledIcon = ({ alt, className, fill, id, ref, ...props }) => {
23
23
  }) : null, /* @__PURE__ */ jsx("path", { d: "M28 6a2 2 0 0 1 2 2v3.05c0 .88-.62 1.619-1.291 2.188A3.61 3.61 0 0 0 27.429 16c0 1.106.497 2.096 1.28 2.76.67.57 1.291 1.308 1.291 2.188V24a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2zM7 17a1 1 0 1 0 0 2h10a1 1 0 1 0 0-2zm0-4a1 1 0 1 0 0 2h6a1 1 0 1 0 0-2z" })]
24
24
  });
25
25
  };
26
- //#endregion
27
26
  export { VoucherFilledIcon };
@@ -1,8 +1,6 @@
1
1
  import { JSX, SVGProps } from "react";
2
- //#region src/components/icons/VoucherIcon.d.ts
3
2
  interface IconProps extends SVGProps<SVGSVGElement> {
4
3
  alt?: string;
5
4
  }
6
5
  export declare const VoucherIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
8
6
  export {};
@@ -1,7 +1,7 @@
1
1
  import { useId } from "../../hooks/useId.js";
2
2
  import clsx from "clsx";
3
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
- //#region src/components/icons/VoucherIcon.tsx
4
+ // src/components/icons/VoucherIcon.tsx
5
5
  const VoucherIcon = ({ alt, className, fill, id, ref, ...props }) => {
6
6
  const uid = useId(id);
7
7
  const componentProps = {
@@ -23,5 +23,4 @@ const VoucherIcon = ({ alt, className, fill, id, ref, ...props }) => {
23
23
  }) : null, /* @__PURE__ */ jsx("path", { d: "M28.204 6.01A2 2 0 0 1 30 8v3.05c0 .88-.62 1.619-1.291 2.188l-.144.128A3.61 3.61 0 0 0 27.43 16c0 1.106.496 2.096 1.279 2.76.67.57 1.291 1.308 1.291 2.188V24l-.01.204a2 2 0 0 1-1.786 1.785L28 26H4a2 2 0 0 1-1.99-1.796L2 24V8a2 2 0 0 1 2-2h24zM4 24h24v-3.038a.6.6 0 0 0-.068-.13 2.8 2.8 0 0 0-.517-.546A5.61 5.61 0 0 1 25.43 16c0-1.719.774-3.258 1.984-4.286.255-.217.423-.402.518-.547.088-.135.068-.165.068-.116V8H4zm13-7a1 1 0 1 1 0 2H7a1 1 0 1 1 0-2zm-4-4a1 1 0 1 1 0 2H7a1 1 0 1 1 0-2z" })]
24
24
  });
25
25
  };
26
- //#endregion
27
26
  export { VoucherIcon };
@@ -1,8 +1,6 @@
1
1
  import { JSX, SVGProps } from "react";
2
- //#region src/components/icons/WarningCircleFilledIcon.d.ts
3
2
  interface IconProps extends SVGProps<SVGSVGElement> {
4
3
  alt?: string;
5
4
  }
6
5
  export declare const WarningCircleFilledIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
8
6
  export {};
@@ -1,7 +1,7 @@
1
1
  import { useId } from "../../hooks/useId.js";
2
2
  import clsx from "clsx";
3
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
- //#region src/components/icons/WarningCircleFilledIcon.tsx
4
+ // src/components/icons/WarningCircleFilledIcon.tsx
5
5
  const WarningCircleFilledIcon = ({ alt, className, fill, id, ref, ...props }) => {
6
6
  const uid = useId(id);
7
7
  const componentProps = {
@@ -27,5 +27,4 @@ const WarningCircleFilledIcon = ({ alt, className, fill, id, ref, ...props }) =>
27
27
  })]
28
28
  });
29
29
  };
30
- //#endregion
31
30
  export { WarningCircleFilledIcon };
@@ -1,8 +1,6 @@
1
1
  import { JSX, SVGProps } from "react";
2
- //#region src/components/icons/WarningCircleIcon.d.ts
3
2
  interface IconProps extends SVGProps<SVGSVGElement> {
4
3
  alt?: string;
5
4
  }
6
5
  export declare const WarningCircleIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
8
6
  export {};
@@ -1,7 +1,7 @@
1
1
  import { useId } from "../../hooks/useId.js";
2
2
  import clsx from "clsx";
3
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
- //#region src/components/icons/WarningCircleIcon.tsx
4
+ // src/components/icons/WarningCircleIcon.tsx
5
5
  const WarningCircleIcon = ({ alt, className, fill, id, ref, ...props }) => {
6
6
  const uid = useId(id);
7
7
  const componentProps = {
@@ -31,5 +31,4 @@ const WarningCircleIcon = ({ alt, className, fill, id, ref, ...props }) => {
31
31
  ]
32
32
  });
33
33
  };
34
- //#endregion
35
34
  export { WarningCircleIcon };
@@ -1,8 +1,6 @@
1
1
  import { JSX, SVGProps } from "react";
2
- //#region src/components/icons/WarningFilledIcon.d.ts
3
2
  interface IconProps extends SVGProps<SVGSVGElement> {
4
3
  alt?: string;
5
4
  }
6
5
  export declare const WarningFilledIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
8
6
  export {};
@@ -1,7 +1,7 @@
1
1
  import { useId } from "../../hooks/useId.js";
2
2
  import clsx from "clsx";
3
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
- //#region src/components/icons/WarningFilledIcon.tsx
4
+ // src/components/icons/WarningFilledIcon.tsx
5
5
  const WarningFilledIcon = ({ alt, className, fill, id, ref, ...props }) => {
6
6
  const uid = useId(id);
7
7
  const componentProps = {
@@ -23,5 +23,4 @@ const WarningFilledIcon = ({ alt, className, fill, id, ref, ...props }) => {
23
23
  }) : null, /* @__PURE__ */ jsx("path", { d: "M14.239 5.27c.755-1.402 2.767-1.402 3.522 0l10.652 19.782C29.13 26.384 28.165 28 26.652 28H5.348c-1.513 0-2.478-1.616-1.76-2.948zM16 21a1 1 0 1 0 0 2 1 1 0 0 0 0-2M16 13a1 1 0 0 0-1 1v5a1 1 0 0 0 2 0v-5c0-.552-.448-1-1-1" })]
24
24
  });
25
25
  };
26
- //#endregion
27
26
  export { WarningFilledIcon };
@@ -1,8 +1,6 @@
1
1
  import { JSX, SVGProps } from "react";
2
- //#region src/components/icons/WarningIcon.d.ts
3
2
  interface IconProps extends SVGProps<SVGSVGElement> {
4
3
  alt?: string;
5
4
  }
6
5
  export declare const WarningIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
8
6
  export {};
@@ -1,7 +1,7 @@
1
1
  import { useId } from "../../hooks/useId.js";
2
2
  import clsx from "clsx";
3
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
- //#region src/components/icons/WarningIcon.tsx
4
+ // src/components/icons/WarningIcon.tsx
5
5
  const WarningIcon = ({ alt, className, fill, id, ref, ...props }) => {
6
6
  const uid = useId(id);
7
7
  const componentProps = {
@@ -23,5 +23,4 @@ const WarningIcon = ({ alt, className, fill, id, ref, ...props }) => {
23
23
  }) : null, /* @__PURE__ */ jsx("path", { d: "M14.239 5.27c.755-1.402 2.766-1.402 3.521 0l10.652 19.782c.717 1.332-.248 2.948-1.76 2.948H5.347l-.14-.005a2 2 0 0 1-1.683-2.817l.063-.126zM5.349 26H26.65L16 6.219zm10.65-5a1 1 0 1 1 0 2 1 1 0 0 1 0-2m0-8a1 1 0 0 1 1 1v5a1 1 0 0 1-2 0v-5a1 1 0 0 1 1-1" })]
24
24
  });
25
25
  };
26
- //#endregion
27
26
  export { WarningIcon };
@@ -1,8 +1,6 @@
1
1
  import { JSX, SVGProps } from "react";
2
- //#region src/components/icons/WifiIcon.d.ts
3
2
  interface IconProps extends SVGProps<SVGSVGElement> {
4
3
  alt?: string;
5
4
  }
6
5
  export declare const WifiIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
8
6
  export {};
@@ -1,7 +1,7 @@
1
1
  import { useId } from "../../hooks/useId.js";
2
2
  import clsx from "clsx";
3
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
- //#region src/components/icons/WifiIcon.tsx
4
+ // src/components/icons/WifiIcon.tsx
5
5
  const WifiIcon = ({ alt, className, fill, id, ref, ...props }) => {
6
6
  const uid = useId(id);
7
7
  const componentProps = {
@@ -23,5 +23,4 @@ const WifiIcon = ({ alt, className, fill, id, ref, ...props }) => {
23
23
  }) : null, /* @__PURE__ */ jsx("path", { d: "M16 22a2 2 0 1 1 0 4 2 2 0 0 1 0-4m-7.987-4.836c4.419-4.418 11.583-4.418 16.001 0a1.5 1.5 0 0 1-2.12 2.121 8.316 8.316 0 0 0-11.76 0 1.5 1.5 0 1 1-2.12-2.12m-5.552-5.55c7.485-7.485 19.621-7.485 27.106 0a1.5 1.5 0 0 1-2.122 2.12c-6.314-6.313-16.55-6.313-22.863 0a1.5 1.5 0 0 1-2.121-2.12" })]
24
24
  });
25
25
  };
26
- //#endregion
27
26
  export { WifiIcon };
@@ -1,8 +1,6 @@
1
1
  import { JSX, SVGProps } from "react";
2
- //#region src/components/icons/WriteIcon.d.ts
3
2
  interface IconProps extends SVGProps<SVGSVGElement> {
4
3
  alt?: string;
5
4
  }
6
5
  export declare const WriteIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
8
6
  export {};
@@ -1,7 +1,7 @@
1
1
  import { useId } from "../../hooks/useId.js";
2
2
  import clsx from "clsx";
3
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
- //#region src/components/icons/WriteIcon.tsx
4
+ // src/components/icons/WriteIcon.tsx
5
5
  const WriteIcon = ({ alt, className, fill, id, ref, ...props }) => {
6
6
  const uid = useId(id);
7
7
  const componentProps = {
@@ -27,5 +27,4 @@ const WriteIcon = ({ alt, className, fill, id, ref, ...props }) => {
27
27
  })]
28
28
  });
29
29
  };
30
- //#endregion
31
30
  export { WriteIcon };
@@ -1,3 +1 @@
1
- //#region src/hooks/useDebounce.d.ts
2
- export declare function useDebounce<T>(value: T, delay: number): T;
3
- //#endregion
1
+ export declare function useDebounce<T>(value: T, delay: number): T;
@@ -1,5 +1,5 @@
1
1
  import { useEffect, useState } from "react";
2
- //#region src/hooks/useDebounce.ts
2
+ // src/hooks/useDebounce.ts
3
3
  function useDebounce(value, delay) {
4
4
  const [debouncedValue, setDebouncedValue] = useState(value);
5
5
  useEffect(() => {
@@ -12,5 +12,4 @@ function useDebounce(value, delay) {
12
12
  }, [value, delay]);
13
13
  return debouncedValue;
14
14
  }
15
- //#endregion
16
15
  export { useDebounce };
@@ -1,6 +1,4 @@
1
1
  import { RefObject } from "react";
2
- //#region src/hooks/useFormReset.d.ts
3
2
  type FormControl = HTMLButtonElement | HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;
4
3
  export declare function useFormReset(ref: RefObject<FormControl | null>, onReset: () => void): void;
5
- //#endregion
6
4
  export {};
@@ -1,5 +1,5 @@
1
1
  import { useEffect, useRef } from "react";
2
- //#region src/hooks/useFormReset.ts
2
+ // src/hooks/useFormReset.ts
3
3
  function useFormReset(ref, onReset) {
4
4
  const onResetRef = useRef(onReset);
5
5
  useEffect(() => {
@@ -15,5 +15,4 @@ function useFormReset(ref, onReset) {
15
15
  return () => form.removeEventListener("reset", handleReset);
16
16
  }, [ref]);
17
17
  }
18
- //#endregion
19
18
  export { useFormReset };
@@ -1,4 +1,2 @@
1
- //#region src/hooks/useId.d.ts
2
1
  export type UseId = (id?: string) => string;
3
- export declare const useId: UseId;
4
- //#endregion
2
+ export declare const useId: UseId;
@@ -1,8 +1,7 @@
1
1
  import { useId } from "react";
2
- //#region src/hooks/useId.ts
2
+ // src/hooks/useId.ts
3
3
  const useId$1 = (id) => {
4
4
  const uniqueId = useId();
5
5
  return id ?? uniqueId;
6
6
  };
7
- //#endregion
8
7
  export { useId$1 as useId };
@@ -1,8 +1,6 @@
1
1
  import React from "react";
2
- //#region src/hooks/useSlots.d.ts
3
2
  type Slots<T> = Record<keyof T, React.ReactNode>;
4
3
  export declare function useSlots<T>(componentSlots: Slots<T>, children: React.ReactNode, options?: {
5
4
  collect?: string[];
6
5
  }): Slots<T>;
7
- //#endregion
8
6
  export {};
@@ -1,6 +1,6 @@
1
1
  import { getSlotName } from "../utils/slots.js";
2
2
  import React from "react";
3
- //#region src/hooks/useSlots.ts
3
+ // src/hooks/useSlots.ts
4
4
  function isKey(x, k) {
5
5
  return k in x;
6
6
  }
@@ -14,5 +14,4 @@ function useSlots(componentSlots, children, options) {
14
14
  return slots;
15
15
  }, { ...componentSlots });
16
16
  }
17
- //#endregion
18
17
  export { isKey, useSlots };
package/dist/index.d.ts CHANGED
@@ -12,7 +12,8 @@ import { ComboboxItem, ComboboxOption } from "./components/Combobox/combobox-uti
12
12
  import { TextInput, TextInputProps } from "./components/TextInput/TextInput.js";
13
13
  import { Combobox, ComboboxButton, ComboboxButtonProps, ComboboxControls, ComboboxControlsProps, ComboboxInput, ComboboxInputProps, ComboboxOptions, ComboboxOptionsProps, ComboboxProps, ComboboxSelectEvent } from "./components/Combobox/Combobox.js";
14
14
  import "./components/Combobox/index.js";
15
- import { DATE_ERROR_MESSAGES, DATE_PARTS, DateErrorCode, DateErrorMessage, DateInputMode, DatePart, DateParts, DateValidation, DateValidationError, DateValidationOptions, DateValidationSuccess, getAutoComplete, validateDate, validateDateParts, validateDob } from "./components/DateInput/dateinput-utils.js";
15
+ import { DATE_ERROR_MESSAGES, DATE_PARTS, DateErrorCode, DateErrorMessage, DatePart, DateParts, DateValidation, DateValidationError, DateValidationOptions, DateValidationSuccess, validateDate, validateDateParts, validateDob } from "./validations/date.js";
16
+ import { DateInputMode, getAutoComplete } from "./components/DateInput/dateinput-utils.js";
16
17
  import { DateInput, DateInputChangeEvent, DateInputDay, DateInputMonth, DateInputPartProps, DateInputProps, DateInputYear } from "./components/DateInput/DateInput.js";
17
18
  import "./components/DateInput/index.js";
18
19
  import { DateType, DateTypeStr } from "./components/DatePicker/datepicker-utils.js";
package/dist/index.js CHANGED
@@ -10,7 +10,7 @@ import { Checkbox } from "./components/Checkbox/Checkbox.js";
10
10
  import { TextInput } from "./components/TextInput/TextInput.js";
11
11
  import { Combobox, ComboboxButton, ComboboxControls, ComboboxInput, ComboboxOptions } from "./components/Combobox/Combobox.js";
12
12
  import { Field, FieldError, FieldHint, FieldLabel } from "./components/Field/Field.js";
13
- import { DATE_ERROR_MESSAGES, DATE_PARTS, getAutoComplete, validateDate, validateDateParts, validateDob } from "./components/DateInput/dateinput-utils.js";
13
+ import { getAutoComplete } from "./components/DateInput/dateinput-utils.js";
14
14
  import { DateInput, DateInputDay, DateInputMonth, DateInputYear } from "./components/DateInput/DateInput.js";
15
15
  import { Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger } from "./components/Popover/Popover.js";
16
16
  import { DatePicker } from "./components/DatePicker/DatePicker.js";
@@ -34,4 +34,5 @@ import { Tag } from "./components/Tag/Tag.js";
34
34
  import { Textarea } from "./components/Textarea/Textarea.js";
35
35
  import { ValidationSummary, ValidationSummaryErrors, ValidationSummaryHeading, ValidationSummaryPrompt } from "./components/ValidationSummary/ValidationSummary.js";
36
36
  import { Wrapper } from "./components/Wrapper/Wrapper.js";
37
+ import { DATE_ERROR_MESSAGES, DATE_PARTS, validateDate, validateDateParts, validateDob } from "./validations/date.js";
37
38
  export { AlertBanner, AlertBannerHeading, Author, AuthorImage, AuthorMeta, Box, Button, Card, CardBadge, CardContent, CardHeading, CardIcon, CardImage, CardLink, CardPicture, Checkbox, Combobox, ComboboxButton, ComboboxControls, ComboboxInput, ComboboxOptions, DATE_ERROR_MESSAGES, DATE_PARTS, DateInput, DateInputDay, DateInputMonth, DateInputYear, DatePicker, Dialog, DialogBody, DialogHeader, Expandable, ExpandableContent, ExpandableSummary, Field, FieldError, FieldHint, FieldLabel, Fieldset, FieldsetError, FieldsetFields, FieldsetHint, FieldsetLegend, Flourish, Form, Image, LoadingSpinner, Logo, PasswordInput, Picture, Pill, PillBadge, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, Radio, RootSVG, Searchbox, SearchboxButton, SearchboxInput, Section, Select, SelectOption, SelectOptionGroup, Signpost, SkipNav, Squircle, SquircleSvg, SquircleText, Tag, TextInput, Textarea, ValidationSummary, ValidationSummaryErrors, ValidationSummaryHeading, ValidationSummaryPrompt, Wrapper, getAutoComplete, validateDate, validateDateParts, validateDob };
@@ -1,9 +1,7 @@
1
- //#region src/types/colors.d.ts
2
1
  export type Darks = "dark-blue" | "dark-yellow" | "dark-green" | "dark-lilac" | "dark-orange" | "dark-pink" | "dark-purple" | "dark-red";
3
2
  export type Tints = "tint-blue" | "tint-brown" | "tint-yellow" | "tint-green" | "tint-grey" | "tint-lilac" | "tint-orange" | "tint-pink" | "tint-purple" | "tint-red";
4
3
  export type Lights = "light-blue" | "light-yellow" | "light-green" | "light-lilac" | "light-orange" | "light-pink" | "light-purple" | "light-red";
5
4
  export type White = "white";
6
5
  export type Black = "black";
7
6
  export type BrandBlue = "brand-blue";
8
- export type OfferRed = "offer";
9
- //#endregion
7
+ export type OfferRed = "offer";
@@ -1,4 +1,3 @@
1
- //#region src/types/index.d.ts
2
1
  export type StandardSizes = "sm" | "md" | "lg";
3
2
  export type StandardSizesWithNone = "none" | "sm" | "md" | "lg";
4
3
  export interface SlotConfig {
@@ -15,5 +14,4 @@ export interface LazyComponent<T extends React.ComponentType<any>> {
15
14
  _payload: Promise<LazyPayload<T>> | LazyPayload<T>;
16
15
  $$typeof: typeof REACT_LAZY_TYPE;
17
16
  }
18
- export declare const REACT_LAZY_TYPE: any;
19
- //#endregion
17
+ export declare const REACT_LAZY_TYPE: any;
@@ -1,4 +1,3 @@
1
- //#region src/types/index.ts
1
+ // src/types/index.ts
2
2
  const REACT_LAZY_TYPE = Symbol.for("react.lazy");
3
- //#endregion
4
3
  export { REACT_LAZY_TYPE };
@@ -1,6 +1,4 @@
1
- //#region src/utils/classes.d.ts
2
1
  export declare const bgPropToClass: (color: string, userClasses?: string) => string;
3
2
  export declare const hasUserBg: (userClasses?: string) => boolean;
4
3
  export declare const hasUserBorder: (userClasses?: string) => boolean;
5
- export declare const bgClassToColor: (userClasses: string) => string | null;
6
- //#endregion
4
+ export declare const bgClassToColor: (userClasses: string) => string | null;
@@ -1,4 +1,4 @@
1
- //#region src/utils/classes.ts
1
+ // src/utils/classes.ts
2
2
  const bgPropToClass = (color, userClasses) => userClasses?.includes("bg-") ? "" : `bg-${color}`;
3
3
  const hasUserBg = (userClasses) => {
4
4
  return typeof userClasses === "string" && userClasses?.includes("bg-") ? true : false;
@@ -9,5 +9,4 @@ const hasUserBorder = (userClasses) => {
9
9
  const bgClassToColor = (userClasses) => {
10
10
  return /bg-([^\s]+)/.exec(userClasses)?.[1] ?? null;
11
11
  };
12
- //#endregion
13
12
  export { bgClassToColor, bgPropToClass, hasUserBg, hasUserBorder };
@@ -1,9 +1,7 @@
1
1
  import { LazyComponent, SlotConfig } from "../types/index.js";
2
2
  import React, { ReactElement, ReactNode } from "react";
3
- //#region src/utils/slots.d.ts
4
3
  export declare function getSlotProp<R = unknown>(slot: React.ReactNode, prop: string): R | undefined;
5
4
  export declare function isLazy<T extends React.ComponentType<any>>(type: unknown): type is LazyComponent<T>;
6
5
  export declare const forEachSlot: (children: ReactNode, fn: (slot: SlotConfig, child: ReactElement) => void) => void;
7
6
  export declare function resolveComponentName(child: React.ReactNode): string | null;
8
- export declare function getSlotName(node: React.ReactNode): string | false;
9
- //#endregion
7
+ export declare function getSlotName(node: React.ReactNode): string | false;
@@ -1,6 +1,6 @@
1
1
  import { REACT_LAZY_TYPE } from "../types/index.js";
2
2
  import { isValidElement } from "react";
3
- //#region src/utils/slots.ts
3
+ // src/utils/slots.ts
4
4
  function getSlotProp(slot, prop) {
5
5
  if (isValidElement(slot) && prop in slot.props) return slot.props[prop];
6
6
  }
@@ -41,5 +41,4 @@ function getSlotName(node) {
41
41
  if (slotName) return slotName.replaceAll(".", "");
42
42
  return false;
43
43
  }
44
- //#endregion
45
44
  export { forEachSlot, getSlotName, getSlotProp, isLazy, resolveComponentName };
@@ -0,0 +1,4 @@
1
+ export interface Limits {
2
+ max?: string;
3
+ min?: string;
4
+ }
@@ -1,5 +1,5 @@
1
1
  import { format, formatISO, isExists, isValid, parseISO } from "date-fns";
2
- //#region src/components/DateInput/dateinput-internal.ts
2
+ // src/validations/date-internal.ts
3
3
  const VALUE_ORDER = [
4
4
  "year",
5
5
  "month",
@@ -72,11 +72,10 @@ const getRangeError = (value, min, max) => {
72
72
  if (min && value < cut(min)) return "before-min";
73
73
  if (max && value > cut(max)) return "after-max";
74
74
  };
75
- const getMessage = (code, label, messages = {}, limits, defaults) => {
75
+ const getMessage = (code, subject, messages = {}, limits, defaults) => {
76
76
  const custom = messages[code];
77
- if (custom !== void 0) return typeof custom === "function" ? custom(label) : custom;
77
+ if (custom !== void 0) return typeof custom === "function" ? custom(subject) : custom;
78
78
  const fallback = defaults[code];
79
- return typeof fallback === "function" ? fallback(label, limits) : fallback;
79
+ return typeof fallback === "function" ? fallback(subject, limits) : fallback;
80
80
  };
81
- //#endregion
82
81
  export { WHOLE_DATE_ERRORS, formatDateValue, formatLimit, getDateErrors, getInvalidParts, getMessage, getRangeError, isValidPart, pad, parseDateValue, toDateParts, toDateValue, toISODate, toLimit, toNumber, trimParts };
@@ -0,0 +1,58 @@
1
+ import { Limits } from "./date-internal.js";
2
+ export type DatePart = "day" | "month" | "year";
3
+ export interface DateParts {
4
+ day?: string;
5
+ month?: string;
6
+ year?: string;
7
+ }
8
+ export type DateErrorCode = "missing-date" | "missing-day" | "missing-month" | "missing-year" | "invalid-day" | "invalid-month" | "invalid-year" | "impossible-date" | "unsupported-parts" | "before-min" | "after-max";
9
+ /** A message, or a function that builds one from the subject. */
10
+ export type DateErrorMessage = string | ((subject?: string) => string);
11
+ export interface DateValidationOptions {
12
+ /** Upper bound, as a `Date` or ISO string.
13
+ *
14
+ * Only the parts used are compared. */
15
+ max?: Date | string;
16
+ /** Messages to use instead of defaults. */
17
+ messages?: Partial<Record<DateErrorCode, DateErrorMessage>>;
18
+ /** Lower bound, as a `Date` or ISO string.
19
+ *
20
+ * Only the parts used are compared. */
21
+ min?: Date | string;
22
+ /** The parts used, in the order they are entered.
23
+ *
24
+ * Default: `day`, `month`, `year`. */
25
+ parts?: DatePart[];
26
+ /** Date as it would start a sentence, such as "Date of birth".
27
+ *
28
+ * Default: `Date`. */
29
+ subject?: string;
30
+ }
31
+ export interface DateValidationSuccess {
32
+ /** Whether the date is valid. */
33
+ valid: true;
34
+ /** The date as an ISO 8601 string, such as 1990-08-21. */
35
+ value: string;
36
+ }
37
+ export interface DateValidationError {
38
+ /** Error code for the first problem. */
39
+ error: DateErrorCode;
40
+ /** Parts with an error. Every part is invalid when the date is empty,
41
+ * impossible, has no ISO format or is outside min/max. */
42
+ invalid: DatePart[];
43
+ /** Error message. */
44
+ message: string;
45
+ /** Whether the date is valid. */
46
+ valid: false;
47
+ }
48
+ export type DateValidation = DateValidationSuccess | DateValidationError;
49
+ export declare const DATE_PARTS: DatePart[];
50
+ export declare const DATE_ERROR_MESSAGES: Record<DateErrorCode, string | ((subject?: string, limits?: Limits) => string)>;
51
+ export declare const validateDateParts: (date: DateParts, { max, messages, min, parts, subject }?: DateValidationOptions) => DateValidation;
52
+ /** Validate a date.
53
+ *
54
+ * If you are only validating a partial date (eg month-year), provide
55
+ * the `parts` option. */
56
+ export declare const validateDate: (value: string, options?: DateValidationOptions) => DateValidation;
57
+ /** Validate a date of birth. */
58
+ export declare const validateDob: (value: string, options?: DateValidationOptions) => DateValidation;