@coopdigital/react 1.30.1 → 1.31.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 (176) hide show
  1. package/dist/components/Author/Author.d.ts +3 -1
  2. package/dist/components/Author/Author.js +1 -1
  3. package/dist/components/Author/index.d.ts +2 -2
  4. package/dist/components/Author/index.js +2 -2
  5. package/dist/components/Combobox/Combobox.d.ts +1 -1
  6. package/dist/components/Combobox/Combobox.js +29 -8
  7. package/dist/components/Combobox/{combobox-utils.js → combobox-internal.js} +4 -2
  8. package/dist/components/DateInput/DateInput.context.js +7 -0
  9. package/dist/components/DateInput/DateInput.d.ts +104 -0
  10. package/dist/components/DateInput/DateInput.js +128 -0
  11. package/dist/components/DateInput/dateinput-internal.d.ts +6 -0
  12. package/dist/components/DateInput/dateinput-internal.js +82 -0
  13. package/dist/components/DateInput/dateinput-utils.d.ts +66 -0
  14. package/dist/components/DateInput/dateinput-utils.js +91 -0
  15. package/dist/components/DateInput/index.d.ts +3 -0
  16. package/dist/components/DateInput/index.js +6 -0
  17. package/dist/components/Field/Field.context.js +1 -1
  18. package/dist/components/Field/Field.js +1 -1
  19. package/dist/components/FieldMarkers/{fieldmarkers-utils.js → fieldmarkers-internal.js} +1 -1
  20. package/dist/components/Fieldset/Fieldset.js +1 -1
  21. package/dist/components/Form/Form.d.ts +7 -1
  22. package/dist/components/Form/Form.js +2 -1
  23. package/dist/components/Squircle/Squircle.d.ts +3 -1
  24. package/dist/components/Squircle/Squircle.js +1 -1
  25. package/dist/components/Squircle/index.d.ts +2 -2
  26. package/dist/components/Squircle/index.js +2 -2
  27. package/dist/components/Textarea/Textarea.js +14 -4
  28. package/dist/components/ValidationSummary/ValidationSummary.d.ts +1 -1
  29. package/dist/components/ValidationSummary/ValidationSummary.js +1 -1
  30. package/dist/components/ValidationSummary/{validationsummary-utils.d.ts → validationsummary-internal.d.ts} +1 -1
  31. package/dist/components/ValidationSummary/{validationsummary-utils.js → validationsummary-internal.js} +3 -2
  32. package/dist/components/icons/AccountCircleFilledIcon.d.ts +2 -1
  33. package/dist/components/icons/AccountCircleIcon.d.ts +2 -1
  34. package/dist/components/icons/AccountFilledIcon.d.ts +2 -1
  35. package/dist/components/icons/AccountIcon.d.ts +2 -1
  36. package/dist/components/icons/AddIcon.d.ts +2 -1
  37. package/dist/components/icons/AppsFilledIcon.d.ts +2 -1
  38. package/dist/components/icons/AppsIcon.d.ts +2 -1
  39. package/dist/components/icons/ArrowDownIcon.d.ts +2 -1
  40. package/dist/components/icons/ArrowLeftIcon.d.ts +2 -1
  41. package/dist/components/icons/ArrowRightIcon.d.ts +2 -1
  42. package/dist/components/icons/ArrowUpIcon.d.ts +2 -1
  43. package/dist/components/icons/BackspaceFilledIcon.d.ts +2 -1
  44. package/dist/components/icons/BackspaceIcon.d.ts +2 -1
  45. package/dist/components/icons/BasketFilledIcon.d.ts +2 -1
  46. package/dist/components/icons/BasketIcon.d.ts +2 -1
  47. package/dist/components/icons/BellFilledIcon.d.ts +2 -1
  48. package/dist/components/icons/BellIcon.d.ts +2 -1
  49. package/dist/components/icons/BroomIcon.d.ts +2 -1
  50. package/dist/components/icons/CalendarFilledIcon.d.ts +2 -1
  51. package/dist/components/icons/CalendarIcon.d.ts +2 -1
  52. package/dist/components/icons/CashFilledIcon.d.ts +2 -1
  53. package/dist/components/icons/CashIcon.d.ts +2 -1
  54. package/dist/components/icons/ChevronDownIcon.d.ts +2 -1
  55. package/dist/components/icons/ChevronLeftIcon.d.ts +2 -1
  56. package/dist/components/icons/ChevronRightIcon.d.ts +2 -1
  57. package/dist/components/icons/ChevronUpIcon.d.ts +2 -1
  58. package/dist/components/icons/CircleBurgerFilledIcon.d.ts +2 -1
  59. package/dist/components/icons/CircleBurgerIcon.d.ts +2 -1
  60. package/dist/components/icons/ClipboardFilledIcon.d.ts +2 -1
  61. package/dist/components/icons/ClipboardIcon.d.ts +2 -1
  62. package/dist/components/icons/ClockFilledIcon.d.ts +2 -1
  63. package/dist/components/icons/ClockIcon.d.ts +2 -1
  64. package/dist/components/icons/CloseAltFilledIcon.d.ts +2 -1
  65. package/dist/components/icons/CloseAltIcon.d.ts +2 -1
  66. package/dist/components/icons/CogIcon.d.ts +2 -1
  67. package/dist/components/icons/CommunityFilledIcon.d.ts +2 -1
  68. package/dist/components/icons/CommunityIcon.d.ts +2 -1
  69. package/dist/components/icons/ComputerIcon.d.ts +2 -1
  70. package/dist/components/icons/ContactFilledIcon.d.ts +2 -1
  71. package/dist/components/icons/ContactIcon.d.ts +2 -1
  72. package/dist/components/icons/ContactlessFilledIcon.d.ts +2 -1
  73. package/dist/components/icons/ContactlessIcon.d.ts +2 -1
  74. package/dist/components/icons/CoopLiveIcon.d.ts +2 -1
  75. package/dist/components/icons/CoopLocationFilledIcon.d.ts +2 -1
  76. package/dist/components/icons/CoopLogoIcon.d.ts +2 -1
  77. package/dist/components/icons/CoopMembershipCardFilledIcon.d.ts +2 -1
  78. package/dist/components/icons/CreditCardFilledIcon.d.ts +2 -1
  79. package/dist/components/icons/CreditCardIcon.d.ts +2 -1
  80. package/dist/components/icons/CrossIcon.d.ts +2 -1
  81. package/dist/components/icons/DocumentIcon.d.ts +2 -1
  82. package/dist/components/icons/DownloadIcon.d.ts +2 -1
  83. package/dist/components/icons/EnterStoreIcon.d.ts +2 -1
  84. package/dist/components/icons/ExitStoreIcon.d.ts +2 -1
  85. package/dist/components/icons/EyeFilledIcon.d.ts +2 -1
  86. package/dist/components/icons/EyeIcon.d.ts +2 -1
  87. package/dist/components/icons/EyeStrikeFilledIcon.d.ts +2 -1
  88. package/dist/components/icons/EyeStrikeIcon.d.ts +2 -1
  89. package/dist/components/icons/FeedbackFilledIcon.d.ts +2 -1
  90. package/dist/components/icons/FeedbackIcon.d.ts +2 -1
  91. package/dist/components/icons/FilterIcon.d.ts +2 -1
  92. package/dist/components/icons/GiftCardFilledIcon.d.ts +2 -1
  93. package/dist/components/icons/GiftCardIcon.d.ts +2 -1
  94. package/dist/components/icons/GiftFilledIcon.d.ts +2 -1
  95. package/dist/components/icons/GiftIcon.d.ts +2 -1
  96. package/dist/components/icons/HelpFilledIcon.d.ts +2 -1
  97. package/dist/components/icons/HelpIcon.d.ts +2 -1
  98. package/dist/components/icons/HomeFilledIcon.d.ts +2 -1
  99. package/dist/components/icons/HomeIcon.d.ts +2 -1
  100. package/dist/components/icons/HowDoIAssistantIcon.d.ts +2 -1
  101. package/dist/components/icons/InfoIcon.d.ts +2 -1
  102. package/dist/components/icons/KebabIcon.d.ts +2 -1
  103. package/dist/components/icons/LoadingIcon.d.ts +2 -1
  104. package/dist/components/icons/LocationFilledIcon.d.ts +2 -1
  105. package/dist/components/icons/LocationIcon.d.ts +2 -1
  106. package/dist/components/icons/LogoutIcon.d.ts +2 -1
  107. package/dist/components/icons/MailIcon.d.ts +2 -1
  108. package/dist/components/icons/MenuIcon.d.ts +2 -1
  109. package/dist/components/icons/MessageIcon.d.ts +2 -1
  110. package/dist/components/icons/MinusIcon.d.ts +2 -1
  111. package/dist/components/icons/NotesFilledIcon.d.ts +2 -1
  112. package/dist/components/icons/NotesIcon.d.ts +2 -1
  113. package/dist/components/icons/OpenNewIcon.d.ts +2 -1
  114. package/dist/components/icons/OwnBagIcon.d.ts +2 -1
  115. package/dist/components/icons/PadlockIcon.d.ts +2 -1
  116. package/dist/components/icons/PencilIcon.d.ts +2 -1
  117. package/dist/components/icons/PhoneIcon.d.ts +2 -1
  118. package/dist/components/icons/PowerIcon.d.ts +2 -1
  119. package/dist/components/icons/SaveFilledIcon.d.ts +2 -1
  120. package/dist/components/icons/SaveIcon.d.ts +2 -1
  121. package/dist/components/icons/ScooterIcon.d.ts +2 -1
  122. package/dist/components/icons/SearchFilledIcon.d.ts +2 -1
  123. package/dist/components/icons/SearchIcon.d.ts +2 -1
  124. package/dist/components/icons/SendIcon.d.ts +2 -1
  125. package/dist/components/icons/SpannerIcon.d.ts +2 -1
  126. package/dist/components/icons/StarFilledIcon.d.ts +2 -1
  127. package/dist/components/icons/StarIcon.d.ts +2 -1
  128. package/dist/components/icons/TickAltFilledIcon.d.ts +2 -1
  129. package/dist/components/icons/TickAltIcon.d.ts +2 -1
  130. package/dist/components/icons/TickIcon.d.ts +2 -1
  131. package/dist/components/icons/TruckIcon.d.ts +2 -1
  132. package/dist/components/icons/UserWipeIcon.d.ts +2 -1
  133. package/dist/components/icons/VoucherFilledIcon.d.ts +2 -1
  134. package/dist/components/icons/VoucherIcon.d.ts +2 -1
  135. package/dist/components/icons/WarningCircleFilledIcon.d.ts +2 -1
  136. package/dist/components/icons/WarningCircleIcon.d.ts +2 -1
  137. package/dist/components/icons/WarningFilledIcon.d.ts +2 -1
  138. package/dist/components/icons/WarningIcon.d.ts +2 -1
  139. package/dist/components/icons/WifiIcon.d.ts +2 -1
  140. package/dist/components/icons/WriteIcon.d.ts +2 -1
  141. package/dist/hooks/index.d.ts +2 -1
  142. package/dist/hooks/index.js +2 -1
  143. package/dist/hooks/useFormReset.d.ts +6 -0
  144. package/dist/hooks/useFormReset.js +19 -0
  145. package/dist/hooks/useSlots.d.ts +2 -1
  146. package/dist/index.d.ts +6 -3
  147. package/dist/index.js +6 -4
  148. package/dist/types/index.js +4 -0
  149. package/dist/utils/slots.d.ts +1 -1
  150. package/dist/utils/slots.js +20 -12
  151. package/package.json +22 -18
  152. package/src/components/Author/Author.tsx +1 -1
  153. package/src/components/Combobox/Combobox.context.ts +3 -1
  154. package/src/components/Combobox/Combobox.tsx +57 -24
  155. package/src/components/Combobox/combobox-internal.ts +60 -0
  156. package/src/components/Combobox/combobox-utils.ts +1 -41
  157. package/src/components/Combobox/index.ts +1 -0
  158. package/src/components/DateInput/DateInput.context.ts +25 -0
  159. package/src/components/DateInput/DateInput.tsx +252 -0
  160. package/src/components/DateInput/dateinput-internal.ts +176 -0
  161. package/src/components/DateInput/dateinput-utils.ts +194 -0
  162. package/src/components/DateInput/index.ts +6 -0
  163. package/src/components/Field/Field.context.ts +1 -1
  164. package/src/components/Field/Field.tsx +1 -1
  165. package/src/components/Fieldset/Fieldset.tsx +5 -1
  166. package/src/components/Form/Form.tsx +9 -1
  167. package/src/components/Squircle/Squircle.tsx +1 -1
  168. package/src/components/Textarea/Textarea.tsx +19 -4
  169. package/src/components/ValidationSummary/ValidationSummary.context.ts +1 -1
  170. package/src/components/ValidationSummary/ValidationSummary.tsx +1 -1
  171. package/src/components/ValidationSummary/{validationsummary-utils.ts → validationsummary-internal.ts} +9 -8
  172. package/src/hooks/index.ts +1 -0
  173. package/src/hooks/useFormReset.ts +28 -0
  174. package/src/index.ts +1 -0
  175. package/src/utils/slots.ts +37 -23
  176. /package/src/components/FieldMarkers/{fieldmarkers-utils.ts → fieldmarkers-internal.ts} +0 -0
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const EnterStoreIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const ExitStoreIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const EyeFilledIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const EyeIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const EyeStrikeFilledIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const EyeStrikeIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const FeedbackFilledIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const FeedbackIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const FilterIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const GiftCardFilledIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const GiftCardIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const GiftFilledIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const GiftIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const HelpFilledIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const HelpIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const HomeFilledIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const HomeIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const HowDoIAssistantIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const InfoIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const KebabIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const LoadingIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const LocationFilledIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const LocationIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const LogoutIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const MailIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const MenuIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const MessageIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const MinusIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const NotesFilledIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const NotesIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const OpenNewIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const OwnBagIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const PadlockIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const PencilIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const PhoneIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const PowerIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const SaveFilledIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const SaveIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const ScooterIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const SearchFilledIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const SearchIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const SendIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const SpannerIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const StarFilledIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const StarIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const TickAltFilledIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const TickAltIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const TickIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const TruckIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const UserWipeIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const VoucherFilledIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const VoucherIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const WarningCircleFilledIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const WarningCircleIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const WarningFilledIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const WarningIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const WifiIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -4,4 +4,5 @@ interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
6
  export declare const WriteIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -1,4 +1,5 @@
1
1
  import { useDebounce } from "./useDebounce.js";
2
+ import { useFormReset } from "./useFormReset.js";
2
3
  import { useId } from "./useId.js";
3
4
  import { useSlots } from "./useSlots.js";
4
- export { useDebounce, useId, useSlots };
5
+ export { useDebounce, useFormReset, useId, useSlots };
@@ -1,4 +1,5 @@
1
1
  import { useId } from "./useId.js";
2
2
  import { useSlots } from "./useSlots.js";
3
3
  import { useDebounce } from "./useDebounce.js";
4
- export { useDebounce, useId, useSlots };
4
+ import { useFormReset } from "./useFormReset.js";
5
+ export { useDebounce, useFormReset, useId, useSlots };
@@ -0,0 +1,6 @@
1
+ import { RefObject } from "react";
2
+ //#region src/hooks/useFormReset.d.ts
3
+ type FormControl = HTMLButtonElement | HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;
4
+ export declare function useFormReset(ref: RefObject<FormControl | null>, onReset: () => void): void;
5
+ //#endregion
6
+ export {};
@@ -0,0 +1,19 @@
1
+ import { useEffect, useRef } from "react";
2
+ //#region src/hooks/useFormReset.ts
3
+ function useFormReset(ref, onReset) {
4
+ const onResetRef = useRef(onReset);
5
+ useEffect(() => {
6
+ onResetRef.current = onReset;
7
+ });
8
+ useEffect(() => {
9
+ const form = ref.current?.form;
10
+ if (!form) return;
11
+ const handleReset = (event) => {
12
+ if (!event.defaultPrevented) onResetRef.current();
13
+ };
14
+ form.addEventListener("reset", handleReset);
15
+ return () => form.removeEventListener("reset", handleReset);
16
+ }, [ref]);
17
+ }
18
+ //#endregion
19
+ export { useFormReset };
@@ -4,4 +4,5 @@ type Slots<T> = Record<keyof T, React.ReactNode>;
4
4
  export declare function useSlots<T>(componentSlots: Slots<T>, children: React.ReactNode, options?: {
5
5
  collect?: string[];
6
6
  }): Slots<T>;
7
- //#endregion
7
+ //#endregion
8
+ export {};
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { AlertBanner, AlertBannerHeading, AlertBannerProps } from "./components/AlertBanner/AlertBanner.js";
2
2
  import { Image, ImageProps } from "./components/Image/Image.js";
3
- import { Author, AuthorImageProps, AuthorMetaProps, AuthorProps } from "./components/Author/Author.js";
3
+ import { Author, AuthorImage, AuthorImageProps, AuthorMeta, AuthorMetaProps, AuthorProps } from "./components/Author/Author.js";
4
4
  import { Box, BoxProps } from "./components/Box/Box.js";
5
5
  import "./components/Box/index.js";
6
6
  import { Button, ButtonProps } from "./components/Button/Button.js";
@@ -12,6 +12,9 @@ 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";
16
+ import { DateInput, DateInputChangeEvent, DateInputDay, DateInputMonth, DateInputPartProps, DateInputProps, DateInputYear } from "./components/DateInput/DateInput.js";
17
+ import "./components/DateInput/index.js";
15
18
  import { DateType, DateTypeStr } from "./components/DatePicker/datepicker-utils.js";
16
19
  import { DatePicker, DatePickerProps } from "./components/DatePicker/DatePicker.js";
17
20
  import { Dialog, DialogBody, DialogHeader, DialogProps } from "./components/Dialog/Dialog.js";
@@ -33,10 +36,10 @@ import "./components/Section/index.js";
33
36
  import { Select, SelectOption, SelectOptionGroup, SelectProps } from "./components/Select/Select.js";
34
37
  import { Signpost, SignpostProps } from "./components/Signpost/Signpost.js";
35
38
  import { SkipNav, SkipNavProps } from "./components/SkipNav/SkipNav.js";
36
- import { Squircle, SquircleProps, SquircleSvgProps } from "./components/Squircle/Squircle.js";
39
+ import { Squircle, SquircleProps, SquircleSvg, SquircleSvgProps, SquircleText } from "./components/Squircle/Squircle.js";
37
40
  import { Tag, TagProps } from "./components/Tag/Tag.js";
38
41
  import { Textarea, TextareaProps } from "./components/Textarea/Textarea.js";
39
42
  import { ValidationSummary, ValidationSummaryErrors, ValidationSummaryHeading, ValidationSummaryPrompt, ValidationSummaryProps } from "./components/ValidationSummary/ValidationSummary.js";
40
43
  import { Wrapper, WrapperProps } from "./components/Wrapper/Wrapper.js";
41
44
  import "./components/Wrapper/index.js";
42
- export { AlertBanner, AlertBannerHeading, AlertBannerProps, Author, AuthorImageProps, AuthorMetaProps, AuthorProps, Box, BoxProps, Button, ButtonProps, Card, CardBadge, CardContent, CardHeading, CardIcon, CardImage, CardLink, CardPicture, CardProps, Checkbox, CheckboxProps, Combobox, ComboboxButton, ComboboxButtonProps, ComboboxControls, ComboboxControlsProps, ComboboxInput, ComboboxInputProps, type ComboboxItem, type ComboboxOption, ComboboxOptions, ComboboxOptionsProps, ComboboxProps, ComboboxSelectEvent, DatePicker, DatePickerProps, type DateType, type DateTypeStr, Dialog, DialogBody, DialogHeader, DialogProps, Expandable, ExpandableContent, ExpandableProps, ExpandableSummary, Field, FieldError, FieldHint, FieldLabel, Fieldset, FieldsetError, FieldsetFields, FieldsetHint, FieldsetLegend, FieldsetProps, Flourish, FlourishProps, Form, FormProps, Image, ImageProps, LoadingSpinner, LoadingSpinnerProps, Logo, LogoProps, PasswordInput, PasswordInputProps, Picture, PictureProps, Pill, PillBadge, PillProps, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverProps, PopoverTrigger, Radio, RadioProps, RootSVG, Searchbox, SearchboxButton, SearchboxInput, SearchboxProps, Section, SectionProps, Select, SelectOption, SelectOptionGroup, SelectProps, Signpost, SignpostProps, SkipNav, SkipNavProps, Squircle, SquircleProps, SquircleSvgProps, Tag, TagProps, TextInput, TextInputProps, Textarea, TextareaProps, ValidationSummary, ValidationSummaryErrors, ValidationSummaryHeading, ValidationSummaryPrompt, ValidationSummaryProps, Wrapper, WrapperProps };
45
+ export { AlertBanner, AlertBannerHeading, AlertBannerProps, Author, AuthorImage, AuthorImageProps, AuthorMeta, AuthorMetaProps, AuthorProps, Box, BoxProps, Button, ButtonProps, Card, CardBadge, CardContent, CardHeading, CardIcon, CardImage, CardLink, CardPicture, CardProps, Checkbox, CheckboxProps, Combobox, ComboboxButton, ComboboxButtonProps, ComboboxControls, ComboboxControlsProps, ComboboxInput, ComboboxInputProps, type ComboboxItem, type ComboboxOption, ComboboxOptions, ComboboxOptionsProps, ComboboxProps, ComboboxSelectEvent, DATE_ERROR_MESSAGES, DATE_PARTS, DateErrorCode, DateErrorMessage, DateInput, DateInputChangeEvent, DateInputDay, DateInputMode, DateInputMonth, DateInputPartProps, DateInputProps, DateInputYear, DatePart, DateParts, DatePicker, DatePickerProps, type DateType, type DateTypeStr, DateValidation, DateValidationError, DateValidationOptions, DateValidationSuccess, Dialog, DialogBody, DialogHeader, DialogProps, Expandable, ExpandableContent, ExpandableProps, ExpandableSummary, Field, FieldError, FieldHint, FieldLabel, Fieldset, FieldsetError, FieldsetFields, FieldsetHint, FieldsetLegend, FieldsetProps, Flourish, FlourishProps, Form, FormProps, Image, ImageProps, LoadingSpinner, LoadingSpinnerProps, Logo, LogoProps, PasswordInput, PasswordInputProps, Picture, PictureProps, Pill, PillBadge, PillProps, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverProps, PopoverTrigger, Radio, RadioProps, RootSVG, Searchbox, SearchboxButton, SearchboxInput, SearchboxProps, Section, SectionProps, Select, SelectOption, SelectOptionGroup, SelectProps, Signpost, SignpostProps, SkipNav, SkipNavProps, Squircle, SquircleProps, SquircleSvg, SquircleSvgProps, SquircleText, Tag, TagProps, TextInput, TextInputProps, Textarea, TextareaProps, ValidationSummary, ValidationSummaryErrors, ValidationSummaryHeading, ValidationSummaryPrompt, ValidationSummaryProps, Wrapper, WrapperProps, getAutoComplete, validateDate, validateDateParts, validateDob };
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { AlertBanner, AlertBannerHeading } from "./components/AlertBanner/AlertBanner.js";
2
2
  import { Image } from "./components/Image/Image.js";
3
- import { Author } from "./components/Author/Author.js";
3
+ import { Author, AuthorImage, AuthorMeta } from "./components/Author/Author.js";
4
4
  import { Box } from "./components/Box/Box.js";
5
5
  import { LoadingSpinner } from "./components/LoadingSpinner/LoadingSpinner.js";
6
6
  import { Button } from "./components/Button/Button.js";
@@ -9,11 +9,13 @@ import { Card, CardBadge, CardContent, CardHeading, CardIcon, CardImage, CardLin
9
9
  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
+ 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";
14
+ import { DateInput, DateInputDay, DateInputMonth, DateInputYear } from "./components/DateInput/DateInput.js";
12
15
  import { Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger } from "./components/Popover/Popover.js";
13
16
  import { DatePicker } from "./components/DatePicker/DatePicker.js";
14
17
  import { Dialog, DialogBody, DialogHeader } from "./components/Dialog/Dialog.js";
15
18
  import { Expandable, ExpandableContent, ExpandableSummary } from "./components/Expandable/Expandable.js";
16
- import { Field, FieldError, FieldHint, FieldLabel } from "./components/Field/Field.js";
17
19
  import { Fieldset, FieldsetError, FieldsetFields, FieldsetHint, FieldsetLegend } from "./components/Fieldset/Fieldset.js";
18
20
  import { Flourish } from "./components/Flourish/Flourish.js";
19
21
  import { Form } from "./components/Form/Form.js";
@@ -27,9 +29,9 @@ import { Section } from "./components/Section/Section.js";
27
29
  import { Select, SelectOption, SelectOptionGroup } from "./components/Select/Select.js";
28
30
  import { Signpost } from "./components/Signpost/Signpost.js";
29
31
  import { SkipNav } from "./components/SkipNav/SkipNav.js";
30
- import { Squircle } from "./components/Squircle/Squircle.js";
32
+ import { Squircle, SquircleSvg, SquircleText } from "./components/Squircle/Squircle.js";
31
33
  import { Tag } from "./components/Tag/Tag.js";
32
34
  import { Textarea } from "./components/Textarea/Textarea.js";
33
35
  import { ValidationSummary, ValidationSummaryErrors, ValidationSummaryHeading, ValidationSummaryPrompt } from "./components/ValidationSummary/ValidationSummary.js";
34
36
  import { Wrapper } from "./components/Wrapper/Wrapper.js";
35
- export { AlertBanner, AlertBannerHeading, Author, Box, Button, Card, CardBadge, CardContent, CardHeading, CardIcon, CardImage, CardLink, CardPicture, Checkbox, Combobox, ComboboxButton, ComboboxControls, ComboboxInput, ComboboxOptions, 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, Tag, TextInput, Textarea, ValidationSummary, ValidationSummaryErrors, ValidationSummaryHeading, ValidationSummaryPrompt, Wrapper };
37
+ 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 };
@@ -0,0 +1,4 @@
1
+ //#region src/types/index.ts
2
+ const REACT_LAZY_TYPE = Symbol.for("react.lazy");
3
+ //#endregion
4
+ export { REACT_LAZY_TYPE };