@coopdigital/react 1.20.0 → 1.21.1

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 (153) hide show
  1. package/dist/components/AlertBanner/AlertBanner.d.ts +2 -2
  2. package/dist/components/Author/Author.d.ts +2 -2
  3. package/dist/components/Button/Button.d.ts +2 -2
  4. package/dist/components/Card/Card.d.ts +2 -2
  5. package/dist/components/Checkbox/Checkbox.d.ts +2 -2
  6. package/dist/components/DatePicker/DatePicker.d.ts +2 -2
  7. package/dist/components/DatePicker/datepicker-utils.d.ts +2 -3
  8. package/dist/components/Dialog/Dialog.d.ts +2 -2
  9. package/dist/components/Expandable/Expandable.d.ts +2 -2
  10. package/dist/components/FieldMarkers/Error.d.ts +2 -3
  11. package/dist/components/FieldMarkers/Hint.d.ts +2 -3
  12. package/dist/components/FieldMarkers/Label.d.ts +2 -3
  13. package/dist/components/FieldMarkers/Legend.d.ts +2 -3
  14. package/dist/components/Fieldset/Fieldset.d.ts +2 -2
  15. package/dist/components/Flourish/Flourish.d.ts +2 -2
  16. package/dist/components/Form/Form.d.ts +2 -2
  17. package/dist/components/Image/Image.d.ts +2 -2
  18. package/dist/components/LoadingSpinner/LoadingSpinner.d.ts +3 -3
  19. package/dist/components/Logo/Logo.d.ts +3 -3
  20. package/dist/components/PasswordInput/PasswordInput.d.ts +2 -2
  21. package/dist/components/Picture/Picture.d.ts +3 -3
  22. package/dist/components/Pill/Pill.d.ts +2 -2
  23. package/dist/components/Prose/Prose.d.ts +3 -3
  24. package/dist/components/Radio/Radio.d.ts +2 -2
  25. package/dist/components/Searchbox/Searchbox.d.ts +2 -2
  26. package/dist/components/Select/Select.d.ts +2 -2
  27. package/dist/components/Signpost/Signpost.d.ts +2 -2
  28. package/dist/components/SkipNav/SkipNav.d.ts +2 -2
  29. package/dist/components/Squircle/Squircle.d.ts +9 -5
  30. package/dist/components/Squircle/Squircle.js +35 -5
  31. package/dist/components/Squircle/index.d.ts +2 -2
  32. package/dist/components/Tag/Tag.d.ts +2 -2
  33. package/dist/components/TextInput/TextInput.d.ts +2 -2
  34. package/dist/components/Textarea/Textarea.d.ts +2 -2
  35. package/dist/components/ValidationSummary/ValidationSummary.d.ts +2 -2
  36. package/dist/components/icons/AccountCircleFilledIcon.d.ts +2 -3
  37. package/dist/components/icons/AccountCircleIcon.d.ts +2 -3
  38. package/dist/components/icons/AccountFilledIcon.d.ts +2 -3
  39. package/dist/components/icons/AccountIcon.d.ts +2 -3
  40. package/dist/components/icons/AddIcon.d.ts +2 -3
  41. package/dist/components/icons/AppsFilledIcon.d.ts +2 -3
  42. package/dist/components/icons/AppsIcon.d.ts +2 -3
  43. package/dist/components/icons/ArrowDownIcon.d.ts +2 -3
  44. package/dist/components/icons/ArrowLeftIcon.d.ts +2 -3
  45. package/dist/components/icons/ArrowRightIcon.d.ts +2 -3
  46. package/dist/components/icons/ArrowUpIcon.d.ts +2 -3
  47. package/dist/components/icons/BackspaceFilledIcon.d.ts +2 -3
  48. package/dist/components/icons/BackspaceIcon.d.ts +2 -3
  49. package/dist/components/icons/BasketFilledIcon.d.ts +2 -3
  50. package/dist/components/icons/BasketIcon.d.ts +2 -3
  51. package/dist/components/icons/BellFilledIcon.d.ts +2 -3
  52. package/dist/components/icons/BellIcon.d.ts +2 -3
  53. package/dist/components/icons/BroomIcon.d.ts +2 -3
  54. package/dist/components/icons/CalendarFilledIcon.d.ts +2 -3
  55. package/dist/components/icons/CalendarIcon.d.ts +2 -3
  56. package/dist/components/icons/CashFilledIcon.d.ts +2 -3
  57. package/dist/components/icons/CashIcon.d.ts +2 -3
  58. package/dist/components/icons/ChevronDownIcon.d.ts +2 -3
  59. package/dist/components/icons/ChevronLeftIcon.d.ts +2 -3
  60. package/dist/components/icons/ChevronRightIcon.d.ts +2 -3
  61. package/dist/components/icons/ChevronUpIcon.d.ts +2 -3
  62. package/dist/components/icons/CircleBurgerFilledIcon.d.ts +2 -3
  63. package/dist/components/icons/CircleBurgerIcon.d.ts +2 -3
  64. package/dist/components/icons/ClipboardFilledIcon.d.ts +2 -3
  65. package/dist/components/icons/ClipboardIcon.d.ts +2 -3
  66. package/dist/components/icons/ClockFilledIcon.d.ts +2 -3
  67. package/dist/components/icons/ClockIcon.d.ts +2 -3
  68. package/dist/components/icons/CloseAltFilledIcon.d.ts +2 -3
  69. package/dist/components/icons/CloseAltIcon.d.ts +2 -3
  70. package/dist/components/icons/CogIcon.d.ts +2 -3
  71. package/dist/components/icons/CommunityFilledIcon.d.ts +2 -3
  72. package/dist/components/icons/CommunityIcon.d.ts +2 -3
  73. package/dist/components/icons/ComputerIcon.d.ts +2 -3
  74. package/dist/components/icons/ContactFilledIcon.d.ts +2 -3
  75. package/dist/components/icons/ContactIcon.d.ts +2 -3
  76. package/dist/components/icons/ContactlessFilledIcon.d.ts +2 -3
  77. package/dist/components/icons/ContactlessIcon.d.ts +2 -3
  78. package/dist/components/icons/CoopLiveIcon.d.ts +2 -3
  79. package/dist/components/icons/CoopLocationFilledIcon.d.ts +2 -3
  80. package/dist/components/icons/CoopLogoIcon.d.ts +2 -3
  81. package/dist/components/icons/CoopMembershipCardFilledIcon.d.ts +2 -3
  82. package/dist/components/icons/CreditCardFilledIcon.d.ts +2 -3
  83. package/dist/components/icons/CreditCardIcon.d.ts +2 -3
  84. package/dist/components/icons/CrossIcon.d.ts +2 -3
  85. package/dist/components/icons/DocumentIcon.d.ts +2 -3
  86. package/dist/components/icons/DownloadIcon.d.ts +2 -3
  87. package/dist/components/icons/EnterStoreIcon.d.ts +2 -3
  88. package/dist/components/icons/ExitStoreIcon.d.ts +2 -3
  89. package/dist/components/icons/EyeFilledIcon.d.ts +2 -3
  90. package/dist/components/icons/EyeIcon.d.ts +2 -3
  91. package/dist/components/icons/EyeStrikeFilledIcon.d.ts +2 -3
  92. package/dist/components/icons/EyeStrikeIcon.d.ts +2 -3
  93. package/dist/components/icons/FeedbackFilledIcon.d.ts +2 -3
  94. package/dist/components/icons/FeedbackIcon.d.ts +2 -3
  95. package/dist/components/icons/FilterIcon.d.ts +2 -3
  96. package/dist/components/icons/GiftCardFilledIcon.d.ts +2 -3
  97. package/dist/components/icons/GiftCardIcon.d.ts +2 -3
  98. package/dist/components/icons/GiftFilledIcon.d.ts +2 -3
  99. package/dist/components/icons/GiftIcon.d.ts +2 -3
  100. package/dist/components/icons/HelpFilledIcon.d.ts +2 -3
  101. package/dist/components/icons/HelpIcon.d.ts +2 -3
  102. package/dist/components/icons/HomeFilledIcon.d.ts +2 -3
  103. package/dist/components/icons/HomeIcon.d.ts +2 -3
  104. package/dist/components/icons/HowDoIAssistantIcon.d.ts +2 -3
  105. package/dist/components/icons/InfoIcon.d.ts +2 -3
  106. package/dist/components/icons/KebabIcon.d.ts +2 -3
  107. package/dist/components/icons/LoadingIcon.d.ts +2 -3
  108. package/dist/components/icons/LocationFilledIcon.d.ts +2 -3
  109. package/dist/components/icons/LocationIcon.d.ts +2 -3
  110. package/dist/components/icons/LogoutIcon.d.ts +2 -3
  111. package/dist/components/icons/MailIcon.d.ts +2 -3
  112. package/dist/components/icons/MenuIcon.d.ts +2 -3
  113. package/dist/components/icons/MessageIcon.d.ts +2 -3
  114. package/dist/components/icons/MinusIcon.d.ts +2 -3
  115. package/dist/components/icons/NotesFilledIcon.d.ts +2 -3
  116. package/dist/components/icons/NotesIcon.d.ts +2 -3
  117. package/dist/components/icons/OpenNewIcon.d.ts +2 -3
  118. package/dist/components/icons/OwnBagIcon.d.ts +2 -3
  119. package/dist/components/icons/PadlockIcon.d.ts +2 -3
  120. package/dist/components/icons/PencilIcon.d.ts +2 -3
  121. package/dist/components/icons/PhoneIcon.d.ts +2 -3
  122. package/dist/components/icons/PowerIcon.d.ts +2 -3
  123. package/dist/components/icons/SaveFilledIcon.d.ts +2 -3
  124. package/dist/components/icons/SaveIcon.d.ts +2 -3
  125. package/dist/components/icons/ScooterIcon.d.ts +2 -3
  126. package/dist/components/icons/SearchFilledIcon.d.ts +2 -3
  127. package/dist/components/icons/SearchIcon.d.ts +2 -3
  128. package/dist/components/icons/SendIcon.d.ts +2 -3
  129. package/dist/components/icons/SpannerIcon.d.ts +2 -3
  130. package/dist/components/icons/StarFilledIcon.d.ts +2 -3
  131. package/dist/components/icons/StarIcon.d.ts +2 -3
  132. package/dist/components/icons/TickAltFilledIcon.d.ts +2 -3
  133. package/dist/components/icons/TickAltIcon.d.ts +2 -3
  134. package/dist/components/icons/TickIcon.d.ts +2 -3
  135. package/dist/components/icons/TruckIcon.d.ts +2 -3
  136. package/dist/components/icons/UserWipeIcon.d.ts +2 -3
  137. package/dist/components/icons/VoucherFilledIcon.d.ts +2 -3
  138. package/dist/components/icons/VoucherIcon.d.ts +2 -3
  139. package/dist/components/icons/WarningCircleFilledIcon.d.ts +2 -3
  140. package/dist/components/icons/WarningCircleIcon.d.ts +2 -3
  141. package/dist/components/icons/WarningFilledIcon.d.ts +2 -3
  142. package/dist/components/icons/WarningIcon.d.ts +2 -3
  143. package/dist/components/icons/WifiIcon.d.ts +2 -3
  144. package/dist/components/icons/WriteIcon.d.ts +2 -3
  145. package/dist/hooks/useDebounce.d.ts +2 -3
  146. package/dist/hooks/useId.d.ts +3 -4
  147. package/dist/hooks/useSlots.d.ts +2 -3
  148. package/dist/index.d.ts +2 -2
  149. package/dist/types/colors.d.ts +8 -9
  150. package/dist/types/index.d.ts +2 -3
  151. package/dist/utils/index.d.ts +6 -7
  152. package/package.json +10 -10
  153. package/src/components/Squircle/Squircle.tsx +50 -13
@@ -1,6 +1,6 @@
1
1
  import { HTMLAttributes, JSX, ReactNode, Ref } from "react";
2
2
  //#region src/components/AlertBanner/AlertBanner.d.ts
3
- interface AlertBannerProps extends HTMLAttributes<HTMLDivElement> {
3
+ export interface AlertBannerProps extends HTMLAttributes<HTMLDivElement> {
4
4
  /** **(Optional)** Main content inside the banner. It can be any valid JSX or string. */
5
5
  children?: string | ReactNode;
6
6
  /** **(Optional)** Specify additional CSS classes to be applied to the component. */
@@ -35,4 +35,4 @@ declare const AlertBannerHeading: {
35
35
  };
36
36
  };
37
37
  //#endregion
38
- export { AlertBanner, AlertBanner as default, AlertBannerHeading, AlertBannerProps };
38
+ export { AlertBanner, AlertBanner as default, AlertBannerHeading };
@@ -2,7 +2,7 @@ import { ImageProps } from "../Image/Image.js";
2
2
  import "../Image/index.js";
3
3
  import { HTMLAttributes, JSX, Ref } from "react";
4
4
  //#region src/components/Author/Author.d.ts
5
- interface AuthorProps extends HTMLAttributes<HTMLDivElement> {
5
+ export interface AuthorProps extends HTMLAttributes<HTMLDivElement> {
6
6
  /** **(Optional)** Specify the Author name. */
7
7
  author?: string;
8
8
  /** **(Optional)** Specify additional CSS classes to be applied to the component. */
@@ -25,4 +25,4 @@ declare const Author: {
25
25
  };
26
26
  };
27
27
  //#endregion
28
- export { Author, Author as default, AuthorProps };
28
+ export { Author, Author as default };
@@ -1,6 +1,6 @@
1
1
  import React, { ButtonHTMLAttributes, ForwardRefExoticComponent, JSX, Ref } from "react";
2
2
  //#region src/components/Button/Button.d.ts
3
- interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
3
+ export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
4
4
  /** **(Optional)** Specify a custom element to override default `a` or `button`. */
5
5
  as?: React.FC<any> | ForwardRefExoticComponent<any> | string;
6
6
  /** **(Optional)** Main content inside the component. It can be any valid JSX or string. */
@@ -33,4 +33,4 @@ declare const Button: {
33
33
  };
34
34
  };
35
35
  //#endregion
36
- export { Button, Button as default, ButtonProps };
36
+ export { Button, Button as default };
@@ -5,7 +5,7 @@ import "../Picture/index.js";
5
5
  import { StandardSizes } from "../../types/index.js";
6
6
  import React, { AnchorHTMLAttributes, ForwardRefExoticComponent, HTMLAttributes, JSX, Ref } from "react";
7
7
  //#region src/components/Card/Card.d.ts
8
- interface CardProps extends HTMLAttributes<HTMLDivElement> {
8
+ export interface CardProps extends HTMLAttributes<HTMLDivElement> {
9
9
  /** **(Optional)** Specify how the Card behaves across screen sizes.
10
10
  *
11
11
  * For finer control, use utility classes or custom CSS to control flex-direction. */
@@ -178,4 +178,4 @@ declare const CardLink: {
178
178
  };
179
179
  };
180
180
  //#endregion
181
- export { Card, Card as default, CardBadge, CardContent, CardHeading, CardIcon, CardImage, CardLink, CardPicture, CardProps };
181
+ export { Card, Card as default, CardBadge, CardContent, CardHeading, CardIcon, CardImage, CardLink, CardPicture };
@@ -1,7 +1,7 @@
1
1
  import { StandardSizes } from "../../types/index.js";
2
2
  import { InputHTMLAttributes, JSX, Ref } from "react";
3
3
  //#region src/components/Checkbox/Checkbox.d.ts
4
- interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "type"> {
4
+ export interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "type"> {
5
5
  /** **(Optional)** Specify additional CSS classes to be applied to the component. */
6
6
  className?: string;
7
7
  /** **(Optional)** Specify whether the Checkbox should be disabled. Refer to Experience Library guidance on disabled form controls and accessibility. */
@@ -26,4 +26,4 @@ declare const Checkbox: {
26
26
  };
27
27
  };
28
28
  //#endregion
29
- export { Checkbox, Checkbox as default, CheckboxProps };
29
+ export { Checkbox, Checkbox as default };
@@ -7,7 +7,7 @@ type OnDateSelectHandler = (selected: string | string[] | {
7
7
  from?: string;
8
8
  to?: string;
9
9
  } | undefined) => void;
10
- interface DatePickerProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "onSelect" | "onChange" | "onChangeCapture" | "size" | "type"> {
10
+ export interface DatePickerProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "onSelect" | "onChange" | "onChangeCapture" | "size" | "type"> {
11
11
  /** **(Optional)** Specify additional CSS classes to be applied to the wrapper. */
12
12
  className?: string;
13
13
  /** **(Optional)** Specify whether the picker should close when selecting a date. Has no effect in range mode. */
@@ -65,4 +65,4 @@ declare const DatePicker: {
65
65
  };
66
66
  };
67
67
  //#endregion
68
- export { DatePicker, DatePicker as default, DatePickerProps };
68
+ export { DatePicker, DatePicker as default };
@@ -1,8 +1,7 @@
1
1
  import { Mode } from "react-day-picker";
2
2
  //#region src/components/DatePicker/datepicker-utils.d.ts
3
- interface DateRange {
3
+ export interface DateRange {
4
4
  from: Date | undefined;
5
5
  to?: Date | undefined;
6
6
  }
7
- //#endregion
8
- export { DateRange };
7
+ //#endregion
@@ -1,6 +1,6 @@
1
1
  import React, { DialogHTMLAttributes, HTMLAttributes, JSX, ReactEventHandler, ReactNode, Ref } from "react";
2
2
  //#region src/components/Dialog/Dialog.d.ts
3
- interface DialogProps extends Omit<DialogHTMLAttributes<HTMLDialogElement>, "closedby"> {
3
+ export interface DialogProps extends Omit<DialogHTMLAttributes<HTMLDialogElement>, "closedby"> {
4
4
  /** Content inside the Dialog.
5
5
  *
6
6
  * This should be a `<Dialog.Header>` and `<Dialog.Body>`, although arbitrary JSX children are also accepted. */
@@ -92,4 +92,4 @@ declare const DialogBody: {
92
92
  };
93
93
  };
94
94
  //#endregion
95
- export { Dialog, Dialog as default, DialogBody, DialogHeader, DialogProps };
95
+ export { Dialog, Dialog as default, DialogBody, DialogHeader };
@@ -1,6 +1,6 @@
1
1
  import { DetailsHTMLAttributes, HTMLAttributes, JSX, Ref } from "react";
2
2
  //#region src/components/Expandable/Expandable.d.ts
3
- interface ExpandableProps extends DetailsHTMLAttributes<HTMLDetailsElement> {
3
+ export interface ExpandableProps extends DetailsHTMLAttributes<HTMLDetailsElement> {
4
4
  /** Main content inside the component. This should be an `Expandable.Summary` and `Expandable.Content`. */
5
5
  children: React.ReactNode;
6
6
  /** **(Optional)** Specify additional CSS classes to be applied to the component. */
@@ -51,4 +51,4 @@ declare const ExpandableContent: {
51
51
  };
52
52
  };
53
53
  //#endregion
54
- export { Expandable, Expandable as default, ExpandableContent, ExpandableProps, ExpandableSummary };
54
+ export { Expandable, Expandable as default, ExpandableContent, ExpandableSummary };
@@ -1,6 +1,6 @@
1
1
  import { HTMLAttributes, JSX, ReactNode, Ref } from "react";
2
2
  //#region src/components/FieldMarkers/Error.d.ts
3
- interface ErrorProps extends HTMLAttributes<HTMLSpanElement> {
3
+ export interface ErrorProps extends HTMLAttributes<HTMLSpanElement> {
4
4
  /** **(Optional)** Error text for the form element. Accepts any valid JSX or string. */
5
5
  children?: string | ReactNode;
6
6
  /** **(Optional)** Specify additional CSS classes to be applied to the component. */
@@ -8,5 +8,4 @@ interface ErrorProps extends HTMLAttributes<HTMLSpanElement> {
8
8
  /** **(Optional)** Specify a custom React ref for this component. */
9
9
  ref?: Ref<HTMLSpanElement>;
10
10
  }
11
- //#endregion
12
- export { ErrorProps };
11
+ //#endregion
@@ -1,6 +1,6 @@
1
1
  import { HTMLAttributes, JSX, ReactNode, Ref } from "react";
2
2
  //#region src/components/FieldMarkers/Hint.d.ts
3
- interface HintProps extends HTMLAttributes<HTMLDivElement> {
3
+ export interface HintProps extends HTMLAttributes<HTMLDivElement> {
4
4
  /** **(Optional)** Hint text for the form element. Accepts any valid JSX or string. */
5
5
  children?: string | ReactNode;
6
6
  /** **(Optional)** Specify additional CSS classes to be applied to the component. */
@@ -8,5 +8,4 @@ interface HintProps extends HTMLAttributes<HTMLDivElement> {
8
8
  /** **(Optional)** Specify a custom React ref for this component. */
9
9
  ref?: Ref<HTMLDivElement>;
10
10
  }
11
- //#endregion
12
- export { HintProps };
11
+ //#endregion
@@ -1,6 +1,6 @@
1
1
  import { JSX, LabelHTMLAttributes, Ref } from "react";
2
2
  //#region src/components/FieldMarkers/Label.d.ts
3
- interface LabelProps extends LabelHTMLAttributes<HTMLLabelElement> {
3
+ export interface LabelProps extends LabelHTMLAttributes<HTMLLabelElement> {
4
4
  /** **(Optional)** Main label for the form element. Accepts any valid JSX or string. */
5
5
  children?: string | React.ReactNode;
6
6
  /** **(Optional)** Specify additional CSS classes to be applied to the component. */
@@ -10,5 +10,4 @@ interface LabelProps extends LabelHTMLAttributes<HTMLLabelElement> {
10
10
  /** **(Optional)** Specify a custom React ref for this component. */
11
11
  ref?: Ref<HTMLLabelElement>;
12
12
  }
13
- //#endregion
14
- export { LabelProps };
13
+ //#endregion
@@ -1,6 +1,6 @@
1
1
  import { HTMLAttributes, JSX, Ref } from "react";
2
2
  //#region src/components/FieldMarkers/Legend.d.ts
3
- interface LegendProps extends HTMLAttributes<HTMLLegendElement> {
3
+ export interface LegendProps extends HTMLAttributes<HTMLLegendElement> {
4
4
  /** **(Optional)** Main legend for the fieldset. Accepts any valid JSX or string. */
5
5
  children?: string | React.ReactNode;
6
6
  /** **(Optional)** Specify additional CSS classes to be applied to the component. */
@@ -10,5 +10,4 @@ interface LegendProps extends HTMLAttributes<HTMLLegendElement> {
10
10
  /** **(Optional)** Specify a custom React ref for this component. */
11
11
  ref?: Ref<HTMLLegendElement>;
12
12
  }
13
- //#endregion
14
- export { LegendProps };
13
+ //#endregion
@@ -4,7 +4,7 @@ import { HintProps } from "../FieldMarkers/Hint.js";
4
4
  import { LegendProps } from "../FieldMarkers/Legend.js";
5
5
  import { FieldsetHTMLAttributes, HTMLAttributes, JSX, Ref } from "react";
6
6
  //#region src/components/Fieldset/Fieldset.d.ts
7
- interface FieldsetProps extends FieldsetHTMLAttributes<HTMLFieldSetElement> {
7
+ export interface FieldsetProps extends FieldsetHTMLAttributes<HTMLFieldSetElement> {
8
8
  /** Form elements inside the Fieldset.
9
9
  *
10
10
  * Usually this will be a combination of `Fieldset.Legend` and `Fieldset.Fields`. */
@@ -87,4 +87,4 @@ declare const FieldsetError: {
87
87
  };
88
88
  };
89
89
  //#endregion
90
- export { Fieldset, Fieldset as default, FieldsetError, FieldsetFields, FieldsetHint, FieldsetLegend, FieldsetProps };
90
+ export { Fieldset, Fieldset as default, FieldsetError, FieldsetFields, FieldsetHint, FieldsetLegend };
@@ -1,7 +1,7 @@
1
1
  import { Black, BrandBlue, Darks, Lights, OfferRed, Tints, White } from "../../types/colors.js";
2
2
  import { JSX, ReactNode, Ref, SVGProps } from "react";
3
3
  //#region src/components/Flourish/Flourish.d.ts
4
- interface FlourishProps extends SVGProps<SVGSVGElement> {
4
+ export interface FlourishProps extends SVGProps<SVGSVGElement> {
5
5
  /** Specify the text to be highlighted by the Flourish. */
6
6
  children: string | ReactNode;
7
7
  /** **(Optional)** Specify additional CSS classes to be applied to the component. */
@@ -18,4 +18,4 @@ declare const Flourish: {
18
18
  };
19
19
  };
20
20
  //#endregion
21
- export { Flourish, Flourish as default, FlourishProps };
21
+ export { Flourish, Flourish as default };
@@ -1,6 +1,6 @@
1
1
  import { FormHTMLAttributes, JSX, ReactNode, Ref } from "react";
2
2
  //#region src/components/Form/Form.d.ts
3
- interface FormProps extends FormHTMLAttributes<HTMLFormElement> {
3
+ export interface FormProps extends FormHTMLAttributes<HTMLFormElement> {
4
4
  /** **(Optional)** Main content inside the form. This will usually be a collection of Field, Fieldset and Button components. */
5
5
  children?: string | ReactNode;
6
6
  /** **(Optional)** Specify additional CSS classes to be applied to the component. */
@@ -15,4 +15,4 @@ declare const Form: {
15
15
  };
16
16
  };
17
17
  //#endregion
18
- export { Form, Form as default, FormProps };
18
+ export { Form, Form as default };
@@ -1,6 +1,6 @@
1
1
  import { ImgHTMLAttributes, JSX, Ref } from "react";
2
2
  //#region src/components/Image/Image.d.ts
3
- interface ImageProps extends ImgHTMLAttributes<HTMLImageElement> {
3
+ export interface ImageProps extends ImgHTMLAttributes<HTMLImageElement> {
4
4
  /** Specify text to describe the image. Refer to Experience Library guidelines on writing good alt text. */
5
5
  alt: string;
6
6
  /** **(Optional)** Specify the height of the image. */
@@ -19,4 +19,4 @@ declare const Image: {
19
19
  };
20
20
  };
21
21
  //#endregion
22
- export { Image, Image as default, ImageProps };
22
+ export { Image, Image as default };
@@ -1,6 +1,6 @@
1
1
  import { JSX, Ref, SVGProps } from "react";
2
2
  //#region src/components/LoadingSpinner/LoadingSpinner.d.ts
3
- interface LoadingSpinnerProps extends SVGProps<SVGSVGElement> {
3
+ export interface LoadingSpinnerProps extends SVGProps<SVGSVGElement> {
4
4
  /** **(Optional)** Specify additional CSS classes to be applied to the component. */
5
5
  className?: string;
6
6
  /** **(Optional)** Specify a custom React ref for this component. */
@@ -10,6 +10,6 @@ interface LoadingSpinnerProps extends SVGProps<SVGSVGElement> {
10
10
  /** **(Optional)** Specify LoadingSpinner stroke width. */
11
11
  strokeWidth?: string;
12
12
  }
13
- declare const LoadingSpinner: ({ className, ref, stroke, strokeWidth, ...props }: LoadingSpinnerProps) => JSX.Element;
13
+ export declare const LoadingSpinner: ({ className, ref, stroke, strokeWidth, ...props }: LoadingSpinnerProps) => JSX.Element;
14
14
  //#endregion
15
- export { LoadingSpinner, LoadingSpinner as default, LoadingSpinnerProps };
15
+ export { LoadingSpinner as default };
@@ -1,6 +1,6 @@
1
1
  import { JSX, SVGProps } from "react";
2
2
  //#region src/components/Logo/Logo.d.ts
3
- interface LogoProps extends SVGProps<SVGSVGElement> {
3
+ export interface LogoProps extends SVGProps<SVGSVGElement> {
4
4
  /** **(Optional)** Specify the Logo alternative text. */
5
5
  alt?: string;
6
6
  /** **(Optional)** Specify additional CSS classes to be applied to the component. */
@@ -14,6 +14,6 @@ interface LogoProps extends SVGProps<SVGSVGElement> {
14
14
  /** **(Optional)** Specify the Logo width. */
15
15
  width?: number;
16
16
  }
17
- declare const Logo: ({ alt, className, fill, height, id, ref, width, ...props }: LogoProps) => JSX.Element;
17
+ export declare const Logo: ({ alt, className, fill, height, id, ref, width, ...props }: LogoProps) => JSX.Element;
18
18
  //#endregion
19
- export { Logo, Logo as default, LogoProps };
19
+ export { Logo as default };
@@ -2,7 +2,7 @@ import { TextInputProps } from "../TextInput/TextInput.js";
2
2
  import "../TextInput/index.js";
3
3
  import { JSX } from "react";
4
4
  //#region src/components/PasswordInput/PasswordInput.d.ts
5
- interface PasswordInputProps extends Omit<TextInputProps, "prefix" | "prefixInline" | "suffix" | "suffixInline" | "type"> {
5
+ export interface PasswordInputProps extends Omit<TextInputProps, "prefix" | "prefixInline" | "suffix" | "suffixInline" | "type"> {
6
6
  /**
7
7
  * **(Optional)** Specify if the show/hide toggle button should be shown.
8
8
  *
@@ -18,4 +18,4 @@ declare const PasswordInput: {
18
18
  };
19
19
  };
20
20
  //#endregion
21
- export { PasswordInput, PasswordInput as default, PasswordInputProps };
21
+ export { PasswordInput, PasswordInput as default };
@@ -1,6 +1,6 @@
1
1
  import { HTMLAttributes, JSX, ReactNode, Ref } from "react";
2
2
  //#region src/components/Picture/Picture.d.ts
3
- interface PictureProps extends HTMLAttributes<HTMLPictureElement> {
3
+ export interface PictureProps extends HTMLAttributes<HTMLPictureElement> {
4
4
  /** **(Optional)** Content inside the component. */
5
5
  children?: string | ReactNode;
6
6
  /** **(Optional)** Specify additional CSS classes. */
@@ -10,6 +10,6 @@ interface PictureProps extends HTMLAttributes<HTMLPictureElement> {
10
10
  /** **(Optional)** Specify a custom React ref for this component. */
11
11
  ref?: Ref<HTMLPictureElement>;
12
12
  }
13
- declare const Picture: ({ children, className, crop, ref, ...props }: PictureProps) => JSX.Element;
13
+ export declare const Picture: ({ children, className, crop, ref, ...props }: PictureProps) => JSX.Element;
14
14
  //#endregion
15
- export { Picture, Picture as default, PictureProps };
15
+ export { Picture as default };
@@ -1,7 +1,7 @@
1
1
  import { StandardSizes } from "../../types/index.js";
2
2
  import React, { ForwardRefExoticComponent, HTMLAttributes, JSX, Ref } from "react";
3
3
  //#region src/components/Pill/Pill.d.ts
4
- interface PillProps extends HTMLAttributes<HTMLAnchorElement> {
4
+ export interface PillProps extends HTMLAttributes<HTMLAnchorElement> {
5
5
  /** **(Optional)** Specify a custom element to override default `a` or `span`. */
6
6
  as?: React.FC<any> | ForwardRefExoticComponent<any> | string;
7
7
  /** **(Optional)** Main content inside the component. It can be any valid JSX or string. */
@@ -40,4 +40,4 @@ declare const PillBadge: {
40
40
  };
41
41
  };
42
42
  //#endregion
43
- export { Pill, Pill as default, PillBadge, PillProps };
43
+ export { Pill, Pill as default, PillBadge };
@@ -1,7 +1,7 @@
1
1
  import { StandardSizes } from "../../types/index.js";
2
2
  import { HTMLAttributes, JSX, ReactNode, Ref } from "react";
3
3
  //#region src/components/Prose/Prose.d.ts
4
- interface ProseProps extends HTMLAttributes<HTMLDivElement> {
4
+ export interface ProseProps extends HTMLAttributes<HTMLDivElement> {
5
5
  /** **(Optional)** Main content inside the component. It can be any valid JSX or string. */
6
6
  children?: string | ReactNode;
7
7
  /** **(Optional)** Specify additional CSS classes to be applied to the component. */
@@ -23,6 +23,6 @@ interface ProseProps extends HTMLAttributes<HTMLDivElement> {
23
23
  */
24
24
  spacing?: StandardSizes;
25
25
  }
26
- declare const Prose: ({ children, className, full, ref, size, spacing, ...props }: ProseProps) => JSX.Element;
26
+ export declare const Prose: ({ children, className, full, ref, size, spacing, ...props }: ProseProps) => JSX.Element;
27
27
  //#endregion
28
- export { Prose, Prose as default, ProseProps };
28
+ export { Prose as default };
@@ -1,7 +1,7 @@
1
1
  import { StandardSizes } from "../../types/index.js";
2
2
  import { InputHTMLAttributes, JSX, Ref } from "react";
3
3
  //#region src/components/Radio/Radio.d.ts
4
- interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "type"> {
4
+ export interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "type"> {
5
5
  /** **(Optional)** Specify additional CSS classes to be applied to the component. */
6
6
  className?: string;
7
7
  /** **(Optional)** Specify whether the Radio should be disabled. Refer to Experience Library guidance on disabled form controls and accessibility. */
@@ -26,4 +26,4 @@ declare const Radio: {
26
26
  };
27
27
  };
28
28
  //#endregion
29
- export { Radio, Radio as default, RadioProps };
29
+ export { Radio, Radio as default };
@@ -5,7 +5,7 @@ import { TextInputProps } from "../TextInput/TextInput.js";
5
5
  import "../TextInput/index.js";
6
6
  import React, { FormHTMLAttributes, JSX, RefObject } from "react";
7
7
  //#region src/components/Searchbox/Searchbox.d.ts
8
- interface SearchboxProps extends FormHTMLAttributes<HTMLFormElement> {
8
+ export interface SearchboxProps extends FormHTMLAttributes<HTMLFormElement> {
9
9
  /** **(Optional)** Specify a server endpoint to submit the form. Will be ignored if onSubmit is also set. */
10
10
  action?: string;
11
11
  /** **(Optional)** Specify props to forward to the Button element. Use `label` to set Button text. */
@@ -53,4 +53,4 @@ declare const SearchboxInput: {
53
53
  displayName: string;
54
54
  };
55
55
  //#endregion
56
- export { Searchbox, Searchbox as default, SearchboxButton, SearchboxInput, SearchboxProps };
56
+ export { Searchbox, Searchbox as default, SearchboxButton, SearchboxInput };
@@ -1,7 +1,7 @@
1
1
  import { StandardSizes } from "../../types/index.js";
2
2
  import { JSX, OptgroupHTMLAttributes, OptionHTMLAttributes, ReactNode, Ref, SelectHTMLAttributes } from "react";
3
3
  //#region src/components/Select/Select.d.ts
4
- interface SelectProps extends Omit<SelectHTMLAttributes<HTMLSelectElement>, "size"> {
4
+ export interface SelectProps extends Omit<SelectHTMLAttributes<HTMLSelectElement>, "size"> {
5
5
  /** **(Optional)** Options inside the Select. This should be a set of `Select.Option` or `Select.OptionGroup` components. */
6
6
  children?: ReactNode;
7
7
  /** **(Optional)** Specify additional CSS classes to be applied to the component. */
@@ -70,4 +70,4 @@ declare const SelectOption: {
70
70
  };
71
71
  };
72
72
  //#endregion
73
- export { Select, Select as default, SelectOption, SelectOptionGroup, SelectProps };
73
+ export { Select, Select as default, SelectOption, SelectOptionGroup };
@@ -2,7 +2,7 @@ import { ImageProps } from "../Image/Image.js";
2
2
  import "../Image/index.js";
3
3
  import React, { ForwardRefExoticComponent, HTMLAttributes, JSX, Ref } from "react";
4
4
  //#region src/components/Signpost/Signpost.d.ts
5
- interface SignpostProps extends HTMLAttributes<HTMLDivElement> {
5
+ export interface SignpostProps extends HTMLAttributes<HTMLDivElement> {
6
6
  /** **(Optional)** Specify a custom element to override default `a`. */
7
7
  as?: React.FC<any> | ForwardRefExoticComponent<any> | string;
8
8
  /** Main content inside the component. It can be any valid JSX or string. */
@@ -28,4 +28,4 @@ declare const Signpost: {
28
28
  };
29
29
  };
30
30
  //#endregion
31
- export { Signpost, Signpost as default, SignpostProps };
31
+ export { Signpost, Signpost as default };
@@ -4,7 +4,7 @@ interface SkipNavLink {
4
4
  href: string;
5
5
  label: string;
6
6
  }
7
- interface SkipNavProps extends HTMLAttributes<HTMLDivElement> {
7
+ export interface SkipNavProps extends HTMLAttributes<HTMLDivElement> {
8
8
  /** **(Optional)** Specify additional CSS classes to be applied to the component. */
9
9
  className?: string;
10
10
  /** **(Optional)** Specify whether the SkipNav is visible immediately or only when tabbing. Useful for testing purposes only. */
@@ -22,4 +22,4 @@ declare const SkipNav: {
22
22
  };
23
23
  };
24
24
  //#endregion
25
- export { SkipNav, SkipNav as default, SkipNavProps };
25
+ export { SkipNav, SkipNav as default };
@@ -1,20 +1,24 @@
1
- import { HTMLAttributes, JSX, Ref } from "react";
1
+ import { HTMLAttributes, JSX, Ref, SVGAttributes } from "react";
2
2
  //#region src/components/Squircle/Squircle.d.ts
3
- interface SquircleProps extends HTMLAttributes<HTMLDivElement> {
3
+ export interface SquircleProps extends HTMLAttributes<HTMLDivElement> {
4
4
  /** **(Optional)** Main content inside the component. It can be any valid JSX or string. */
5
5
  children?: React.ReactNode;
6
6
  /** **(Optional)** Specify additional CSS classes to be applied to the component. */
7
7
  className?: string;
8
8
  /** **(Optional)** Specify a custom React ref for this component. */
9
9
  ref?: Ref<HTMLDivElement>;
10
+ }
11
+ export interface SquircleSvgProps extends SVGAttributes<SVGElement> {
10
12
  /** **(Optional)** Specify the Squircle size. */
11
- size?: "sm" | "md" | "lg";
13
+ size?: string | number;
12
14
  }
13
15
  declare const Squircle: {
14
- ({ children, className, ref, size, ...props }: SquircleProps): JSX.Element;
16
+ ({ children, className, ref, ...props }: SquircleProps): JSX.Element;
17
+ Svg: ({ size, ...props }: SquircleSvgProps) => JSX.Element;
18
+ Text: ({ children, className, ...props }: HTMLAttributes<HTMLDivElement>) => JSX.Element;
15
19
  slot: {
16
20
  name: string;
17
21
  };
18
22
  };
19
23
  //#endregion
20
- export { Squircle, Squircle as default, SquircleProps };
24
+ export { Squircle, Squircle as default };
@@ -1,19 +1,49 @@
1
- import { hasUserBg } from "../../utils/index.js";
2
1
  import clsx from "clsx";
3
2
  import { jsx } from "react/jsx-runtime";
4
3
  //#region src/components/Squircle/Squircle.tsx
5
- const Squircle = ({ children, className, ref, size = "md", ...props }) => {
4
+ const Squircle = ({ children, className, ref, ...props }) => {
6
5
  const componentProps = {
7
- className: clsx("coop-squircle", !hasUserBg(className) && "bg-offer", className),
8
- "data-size": size.length && size !== "md" ? size : void 0,
6
+ className: clsx("coop-squircle", className),
9
7
  ...props
10
8
  };
11
9
  return /* @__PURE__ */ jsx("figure", {
12
10
  ...componentProps,
13
11
  ref,
14
- children: /* @__PURE__ */ jsx("figcaption", { children })
12
+ children
15
13
  });
16
14
  };
15
+ const sizeMap = {
16
+ sm: "32",
17
+ md: "64",
18
+ lg: "96"
19
+ };
20
+ const SquircleSvg = ({ size, ...props }) => {
21
+ const safeSize = sizeMap[size] ?? size ?? "64";
22
+ return /* @__PURE__ */ jsx("svg", {
23
+ height: safeSize,
24
+ width: safeSize,
25
+ ...props,
26
+ "aria-hidden": "true",
27
+ viewBox: "0 0 64 64",
28
+ xmlns: "http://www.w3.org/2000/svg",
29
+ children: /* @__PURE__ */ jsx("path", {
30
+ d: "M0,32 C0,10.56,10.56,0,32,0 S64,10.56,64,32 S53.44,64,32,64 S0,53.44,0,32",
31
+ vectorEffect: "non-scaling-stroke"
32
+ })
33
+ });
34
+ };
35
+ const SquircleText = ({ children, className, ...props }) => {
36
+ const componentProps = {
37
+ className,
38
+ ...props
39
+ };
40
+ return /* @__PURE__ */ jsx("figcaption", {
41
+ ...componentProps,
42
+ children
43
+ });
44
+ };
45
+ Squircle.Svg = SquircleSvg;
46
+ Squircle.Text = SquircleText;
17
47
  Squircle.slot = { name: "Squircle" };
18
48
  //#endregion
19
49
  export { Squircle, Squircle as default };
@@ -1,2 +1,2 @@
1
- import { Squircle, SquircleProps } from "./Squircle.js";
2
- export { Squircle, Squircle as default, SquircleProps };
1
+ import { Squircle, SquircleProps, SquircleSvgProps } from "./Squircle.js";
2
+ export { Squircle, Squircle as default, SquircleProps, SquircleSvgProps };
@@ -1,6 +1,6 @@
1
1
  import React, { ForwardRefExoticComponent, HTMLAttributes, JSX, Ref } from "react";
2
2
  //#region src/components/Tag/Tag.d.ts
3
- interface TagProps extends HTMLAttributes<HTMLAnchorElement> {
3
+ export interface TagProps extends HTMLAttributes<HTMLAnchorElement> {
4
4
  /** **(Optional)** Specify a custom element to override default `a` or `span`. */
5
5
  as?: React.FC<any> | ForwardRefExoticComponent<any> | string;
6
6
  /** **(Optional)** Main content inside the component. It can be any valid JSX or string. */
@@ -21,4 +21,4 @@ declare const Tag: {
21
21
  };
22
22
  };
23
23
  //#endregion
24
- export { Tag, Tag as default, TagProps };
24
+ export { Tag, Tag as default };
@@ -1,7 +1,7 @@
1
1
  import { StandardSizes } from "../../types/index.js";
2
2
  import { InputHTMLAttributes, JSX, Ref } from "react";
3
3
  //#region src/components/TextInput/TextInput.d.ts
4
- interface TextInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "prefix" | "size" | "type"> {
4
+ export interface TextInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "prefix" | "size" | "type"> {
5
5
  /** **(Optional)** Specify additional CSS classes to be applied to the component. */
6
6
  className?: string;
7
7
  /** **(Optional)** Specify whether the TextInput should be disabled. Refer to Experience Library guidance on disabled form controls and accessibility. */
@@ -42,4 +42,4 @@ declare const TextInput: {
42
42
  };
43
43
  };
44
44
  //#endregion
45
- export { TextInput, TextInput as default, TextInputProps };
45
+ export { TextInput, TextInput as default };
@@ -1,7 +1,7 @@
1
1
  import { StandardSizes } from "../../types/index.js";
2
2
  import { JSX, Ref, TextareaHTMLAttributes } from "react";
3
3
  //#region src/components/Textarea/Textarea.d.ts
4
- interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
4
+ export interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
5
5
  /** **(Optional)** Specify additional CSS classes to be applied to the component. */
6
6
  className?: string;
7
7
  /** Specify the number of columns (characters per row) in the Textarea. Defaults to `30`. */
@@ -45,4 +45,4 @@ declare const Textarea: {
45
45
  };
46
46
  };
47
47
  //#endregion
48
- export { Textarea, Textarea as default, TextareaProps };
48
+ export { Textarea, Textarea as default };
@@ -1,6 +1,6 @@
1
1
  import React, { HTMLAttributes, JSX, ReactNode, Ref } from "react";
2
2
  //#region src/components/ValidationSummary/ValidationSummary.d.ts
3
- interface ValidationSummaryProps extends HTMLAttributes<HTMLDivElement> {
3
+ export interface ValidationSummaryProps extends HTMLAttributes<HTMLDivElement> {
4
4
  /** **(Optional)** Specify if the summary should be focused and the parent form scrolled into view if there are errors.
5
5
  *
6
6
  * Default: true
@@ -91,4 +91,4 @@ declare const ValidationSummaryErrors: {
91
91
  };
92
92
  };
93
93
  //#endregion
94
- export { ValidationSummary, ValidationSummary as default, ValidationSummaryErrors, ValidationSummaryHeading, ValidationSummaryPrompt, ValidationSummaryProps };
94
+ export { ValidationSummary, ValidationSummary as default, ValidationSummaryErrors, ValidationSummaryHeading, ValidationSummaryPrompt };
@@ -3,6 +3,5 @@ import { JSX, SVGProps } from "react";
3
3
  interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
- declare const AccountCircleFilledIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
8
- export { AccountCircleFilledIcon };
6
+ export declare const AccountCircleFilledIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
+ //#endregion
@@ -3,6 +3,5 @@ import { JSX, SVGProps } from "react";
3
3
  interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
- declare const AccountCircleIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
8
- export { AccountCircleIcon };
6
+ export declare const AccountCircleIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
+ //#endregion
@@ -3,6 +3,5 @@ import { JSX, SVGProps } from "react";
3
3
  interface IconProps extends SVGProps<SVGSVGElement> {
4
4
  alt?: string;
5
5
  }
6
- declare const AccountFilledIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
- //#endregion
8
- export { AccountFilledIcon };
6
+ export declare const AccountFilledIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
7
+ //#endregion