@aws-amplify/ui-react 3.0.0 → 3.0.3

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 (134) hide show
  1. package/README.md +1 -1
  2. package/dist/IconWarning-45c2c272.js +1 -0
  3. package/dist/esm/components/Authenticator/Authenticator.js +1 -1
  4. package/dist/esm/components/Authenticator/ConfirmSignIn/ConfirmSignIn.js +1 -1
  5. package/dist/esm/components/Authenticator/ConfirmSignUp/ConfirmSignUp.js +1 -1
  6. package/dist/esm/components/Authenticator/FederatedSignIn/FederatedSignIn.js +1 -1
  7. package/dist/esm/components/Authenticator/ForceNewPassword/ForceNewPassword.js +1 -1
  8. package/dist/esm/components/Authenticator/ResetPassword/ConfirmResetPassword.js +1 -1
  9. package/dist/esm/components/Authenticator/ResetPassword/ResetPassword.js +1 -1
  10. package/dist/esm/components/Authenticator/Router/Router.js +1 -1
  11. package/dist/esm/components/Authenticator/SetupTOTP/SetupTOTP.js +1 -1
  12. package/dist/esm/components/Authenticator/SignIn/SignIn.js +1 -1
  13. package/dist/esm/components/Authenticator/SignUp/SignUp.js +1 -1
  14. package/dist/esm/components/Authenticator/VerifyUser/ConfirmVerifyUser.js +1 -1
  15. package/dist/esm/components/Authenticator/VerifyUser/VerifyUser.js +1 -1
  16. package/dist/esm/components/Authenticator/hooks/useAuthenticator/index.js +1 -1
  17. package/dist/esm/components/Authenticator/shared/ValidationErrors.js +1 -1
  18. package/dist/esm/primitives/shared/constants.js +1 -1
  19. package/dist/esm/primitives-catalog.js +9 -0
  20. package/dist/index.js +1 -1
  21. package/dist/internal.js +1 -1
  22. package/dist/primitives.json +9 -0
  23. package/dist/styles.css +140 -1
  24. package/dist/types/components/Authenticator/Authenticator.d.ts +2 -2
  25. package/dist/types/components/Authenticator/ConfirmSignUp/ConfirmSignUp.d.ts +1 -1
  26. package/dist/types/components/Authenticator/Router/Router.d.ts +3 -1
  27. package/dist/types/components/Authenticator/hooks/useAuthenticator/index.d.ts +30 -31
  28. package/dist/types/components/Authenticator/hooks/useFormHandlers/useFormHandlers.d.ts +2 -2
  29. package/dist/types/components/Authenticator/shared/ValidationErrors.d.ts +1 -1
  30. package/dist/types/components/Authenticator/withAuthenticator.d.ts +2 -2
  31. package/dist/types/components/Geo/LocationSearch/index.d.ts +1 -1
  32. package/dist/types/components/Geo/MapView/index.d.ts +1 -1
  33. package/dist/types/hooks/useAuth.d.ts +0 -1
  34. package/dist/types/primitives/Alert/Alert.d.ts +1 -1
  35. package/dist/types/primitives/Badge/Badge.d.ts +1 -1
  36. package/dist/types/primitives/Button/Button.d.ts +1 -1
  37. package/dist/types/primitives/ButtonGroup/ButtonGroup.d.ts +1 -1
  38. package/dist/types/primitives/Card/Card.d.ts +1 -1
  39. package/dist/types/primitives/Checkbox/Checkbox.d.ts +1 -1
  40. package/dist/types/primitives/CheckboxField/CheckboxField.d.ts +1 -1
  41. package/dist/types/primitives/Divider/Divider.d.ts +1 -1
  42. package/dist/types/primitives/Expander/Expander.d.ts +1 -1
  43. package/dist/types/primitives/Expander/ExpanderItem.d.ts +1 -1
  44. package/dist/types/primitives/Field/FieldClearButton.d.ts +1 -1
  45. package/dist/types/primitives/FieldGroup/FieldGroup.d.ts +1 -1
  46. package/dist/types/primitives/FieldGroupIcon/FieldGroupIcon.d.ts +1 -1
  47. package/dist/types/primitives/FieldGroupIcon/FieldGroupIconButton.d.ts +1 -1
  48. package/dist/types/primitives/Flex/Flex.d.ts +1 -1
  49. package/dist/types/primitives/Grid/Grid.d.ts +1 -1
  50. package/dist/types/primitives/Heading/Heading.d.ts +1 -1
  51. package/dist/types/primitives/Icon/Icon.d.ts +1 -1
  52. package/dist/types/primitives/Image/Image.d.ts +1 -1
  53. package/dist/types/primitives/Input/Input.d.ts +1 -1
  54. package/dist/types/primitives/Label/Label.d.ts +1 -1
  55. package/dist/types/primitives/Link/Link.d.ts +1 -1
  56. package/dist/types/primitives/Loader/Loader.d.ts +1 -1
  57. package/dist/types/primitives/Menu/Menu.d.ts +1 -1
  58. package/dist/types/primitives/Pagination/Pagination.d.ts +1 -1
  59. package/dist/types/primitives/PasswordField/PasswordField.d.ts +1 -1
  60. package/dist/types/primitives/PasswordField/ShowPasswordButton.d.ts +1 -1
  61. package/dist/types/primitives/PhoneNumberField/CountryCodeSelect.d.ts +1 -1
  62. package/dist/types/primitives/PhoneNumberField/PhoneNumberField.d.ts +1 -1
  63. package/dist/types/primitives/Placeholder/Placeholder.d.ts +1 -1
  64. package/dist/types/primitives/Radio/Radio.d.ts +1 -1
  65. package/dist/types/primitives/RadioGroupField/RadioGroupField.d.ts +1 -1
  66. package/dist/types/primitives/Rating/Rating.d.ts +1 -1
  67. package/dist/types/primitives/ScrollView/ScrollView.d.ts +1 -1
  68. package/dist/types/primitives/SearchField/SearchField.d.ts +1 -1
  69. package/dist/types/primitives/SearchField/SearchFieldButton.d.ts +1 -1
  70. package/dist/types/primitives/Select/Select.d.ts +1 -1
  71. package/dist/types/primitives/SelectField/SelectField.d.ts +1 -1
  72. package/dist/types/primitives/SliderField/SliderField.d.ts +1 -1
  73. package/dist/types/primitives/StepperField/StepperField.d.ts +1 -1
  74. package/dist/types/primitives/SwitchField/SwitchField.d.ts +1 -1
  75. package/dist/types/primitives/Table/Table.d.ts +1 -1
  76. package/dist/types/primitives/Table/TableBody.d.ts +1 -1
  77. package/dist/types/primitives/Table/TableCell.d.ts +1 -1
  78. package/dist/types/primitives/Table/TableFoot.d.ts +1 -1
  79. package/dist/types/primitives/Table/TableHead.d.ts +1 -1
  80. package/dist/types/primitives/Table/TableRow.d.ts +1 -1
  81. package/dist/types/primitives/Tabs/Tabs.d.ts +2 -2
  82. package/dist/types/primitives/Text/Text.d.ts +1 -1
  83. package/dist/types/primitives/TextArea/TextArea.d.ts +1 -1
  84. package/dist/types/primitives/TextAreaField/TextAreaField.d.ts +1 -1
  85. package/dist/types/primitives/ToggleButton/ToggleButton.d.ts +1 -1
  86. package/dist/types/primitives/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
  87. package/dist/types/primitives/View/View.d.ts +2 -2
  88. package/dist/types/primitives/VisuallyHidden/VisuallyHidden.d.ts +1 -1
  89. package/dist/types/primitives/shared/constants.d.ts +1 -1
  90. package/dist/types/primitives/types/alert.d.ts +6 -0
  91. package/dist/types/primitives/types/badge.d.ts +2 -0
  92. package/dist/types/primitives/types/base.d.ts +15 -0
  93. package/dist/types/primitives/types/button.d.ts +12 -2
  94. package/dist/types/primitives/types/card.d.ts +4 -0
  95. package/dist/types/primitives/types/checkbox.d.ts +8 -4
  96. package/dist/types/primitives/types/collection.d.ts +20 -2
  97. package/dist/types/primitives/types/divider.d.ts +7 -2
  98. package/dist/types/primitives/types/expander.d.ts +7 -0
  99. package/dist/types/primitives/types/field.d.ts +6 -1
  100. package/dist/types/primitives/types/fieldGroupIcon.d.ts +2 -0
  101. package/dist/types/primitives/types/flex.d.ts +8 -1
  102. package/dist/types/primitives/types/grid.d.ts +84 -0
  103. package/dist/types/primitives/types/heading.d.ts +4 -0
  104. package/dist/types/primitives/types/icon.d.ts +16 -9
  105. package/dist/types/primitives/types/image.d.ts +26 -9
  106. package/dist/types/primitives/types/input.d.ts +47 -22
  107. package/dist/types/primitives/types/label.d.ts +2 -0
  108. package/dist/types/primitives/types/link.d.ts +10 -0
  109. package/dist/types/primitives/types/loader.d.ts +7 -0
  110. package/dist/types/primitives/types/menu.d.ts +16 -3
  111. package/dist/types/primitives/types/pagination.d.ts +29 -6
  112. package/dist/types/primitives/types/passwordField.d.ts +22 -6
  113. package/dist/types/primitives/types/phoneNumberField.d.ts +25 -0
  114. package/dist/types/primitives/types/placeholder.d.ts +4 -1
  115. package/dist/types/primitives/types/radio.d.ts +1 -0
  116. package/dist/types/primitives/types/radioGroupField.d.ts +2 -0
  117. package/dist/types/primitives/types/rating.d.ts +7 -0
  118. package/dist/types/primitives/types/searchField.d.ts +9 -2
  119. package/dist/types/primitives/types/select.d.ts +52 -0
  120. package/dist/types/primitives/types/selectField.d.ts +1 -0
  121. package/dist/types/primitives/types/sliderField.d.ts +56 -0
  122. package/dist/types/primitives/types/stepperField.d.ts +39 -2
  123. package/dist/types/primitives/types/style.d.ts +387 -6
  124. package/dist/types/primitives/types/switchField.d.ts +13 -1
  125. package/dist/types/primitives/types/table.d.ts +12 -0
  126. package/dist/types/primitives/types/tabs.d.ts +8 -0
  127. package/dist/types/primitives/types/text.d.ts +3 -0
  128. package/dist/types/primitives/types/textArea.d.ts +34 -14
  129. package/dist/types/primitives/types/textField.d.ts +5 -0
  130. package/dist/types/primitives/types/toggleButton.d.ts +16 -0
  131. package/dist/types/primitives/types/toggleButtonGroup.d.ts +20 -0
  132. package/dist/types/primitives/types/view.d.ts +25 -0
  133. package/package.json +2 -2
  134. package/dist/IconWarning-3289842c.js +0 -1
@@ -4,65 +4,85 @@ import { Sizes } from './base';
4
4
  import { FieldVariations } from './field';
5
5
  import { ViewProps } from './view';
6
6
  export interface TextAreaStyleProps {
7
+ /**
8
+ * @description
9
+ * Defines if (and how) an element is resizable by the user
10
+ */
7
11
  resize?: Property.Resize;
8
12
  }
9
13
  export interface TextAreaProps extends TextAreaStyleProps, ViewProps {
10
14
  /**
11
- * Specifies permissions for browser UA to autocomplete field
12
- * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete
15
+ * @description
16
+ * Specifies permissions for browser UA to autocomplete field.
17
+ * @see
18
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete)
13
19
  */
14
20
  autoComplete?: string;
15
21
  /**
16
- * Use this to provide a default value for an uncontrolled field
22
+ * @description
23
+ * Use this to provide a default value for an uncontrolled field.
17
24
  */
18
25
  defaultValue?: React.AllHTMLAttributes<'textarea'>['defaultValue'];
19
26
  /**
20
- * Indicates that Field is in error state
27
+ * @description
28
+ * Indicates that Field is in error state.
21
29
  */
22
30
  hasError?: boolean;
23
31
  /**
24
- * Determines whether field should be disabled
25
- * @default false
32
+ * @description
33
+ * Determines whether field should be disabled.
34
+ * @default
35
+ * false
26
36
  */
27
37
  isDisabled?: boolean;
28
38
  /**
29
- * Determines whether field should be immutable
30
- * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-readonly
31
- * @default false
39
+ * @description
40
+ * @see
41
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-readonly)
42
+ * @default
43
+ * false
32
44
  */
33
45
  isReadOnly?: boolean;
34
46
  /**
35
- * Whether field should be marked required
47
+ * @description
48
+ * Whether field should be marked required.
36
49
  */
37
50
  isRequired?: boolean;
38
51
  /**
39
- * Text contents maximum length
52
+ * @description
53
+ * Text contents maximum length.
40
54
  */
41
55
  maxLength?: number;
42
56
  /**
57
+ * @description
43
58
  * Name of the field. Submitted with the form as part of a name/value pair.
44
59
  */
45
60
  name?: string;
46
61
  /**
62
+ * @description
47
63
  * Placeholder text shown when field is empty
48
64
  * Accessibility tip: avoid putting important instructions for
49
65
  * filling out the TextField in the placeholder. Use descriptiveText
50
- * for important instructions
66
+ * for important instructions.
51
67
  */
52
68
  placeholder?: string;
53
69
  /**
54
- * Controls height based on number of rows of text to display
70
+ * @description
71
+ * Controls height based on number of rows of text to display.
55
72
  */
56
73
  rows?: number;
57
74
  /**
75
+ * @description
58
76
  * Changes the font-size, padding, and height of the field.
59
77
  */
60
78
  size?: Sizes;
61
79
  /**
62
- * If value is provided, this will be a controlled field
80
+ * @description
81
+ * If value is provided, this will be a controlled field.
63
82
  */
64
83
  value?: React.AllHTMLAttributes<'textarea'>['value'];
65
84
  /**
85
+ * @description
66
86
  * Variants
67
87
  */
68
88
  variation?: FieldVariations;
@@ -5,22 +5,27 @@ import { FieldProps } from './field';
5
5
  import { TextAreaProps } from './textArea';
6
6
  export interface TextFieldOptions extends FieldProps, FlexContainerStyleProps {
7
7
  /**
8
+ * @description
8
9
  * Component(s) to show after input
9
10
  */
10
11
  outerEndComponent?: React.ReactNode;
11
12
  /**
13
+ * @description
12
14
  * Component(s) to show before input
13
15
  */
14
16
  outerStartComponent?: React.ReactNode;
15
17
  /**
18
+ * @description
16
19
  * FieldGroupIconButton component to show inside of input at start
17
20
  */
18
21
  innerStartComponent?: React.ReactNode;
19
22
  /**
23
+ * @description
20
24
  * FieldGroupIconButton component to show inside of input at end
21
25
  */
22
26
  innerEndComponent?: React.ReactNode;
23
27
  /**
28
+ * @description
24
29
  * Input field type (only applies when isMultiline = false)
25
30
  */
26
31
  type?: InputProps['type'];
@@ -1,7 +1,23 @@
1
1
  import { ButtonProps } from './button';
2
2
  export interface ToggleButtonProps extends ButtonProps {
3
+ /**
4
+ * @description
5
+ * Controls the selected state of the ToggleButton
6
+ */
3
7
  value?: string;
8
+ /**
9
+ * @description
10
+ * Controls the `isPressed` state of the ToggleButton when using it as a controlled component
11
+ */
4
12
  isPressed?: boolean;
13
+ /**
14
+ * @description
15
+ * When `true`, sets the `isPressed` state of the ToggleButton to `true` on initial render
16
+ */
5
17
  defaultPressed?: boolean;
18
+ /**
19
+ * @description
20
+ * Handles changes to the current value when using the ToggleButton as a controlled component
21
+ */
6
22
  onChange?: (value: string) => void;
7
23
  }
@@ -2,9 +2,29 @@ import * as React from 'react';
2
2
  import { FlexProps } from './flex';
3
3
  import { ToggleButtonProps } from './toggleButton';
4
4
  export interface ToggleButtonGroupProps extends FlexProps, Pick<ToggleButtonProps, 'size' | 'variation'> {
5
+ /**
6
+ * @description
7
+ * Accepts any number of ToggleButton components
8
+ */
5
9
  children: React.ReactNode;
10
+ /**
11
+ * @description
12
+ * When `true`, only allows one ToggleButton to be pressed at a time within a ToggleButtonGroup
13
+ */
6
14
  isExclusive?: boolean;
15
+ /**
16
+ * @description
17
+ * Used when at least one ToggleButton needs to be currently pressed
18
+ */
7
19
  isSelectionRequired?: boolean;
20
+ /**
21
+ * @description
22
+ * Controls which of its ToggleButton children are currently selected
23
+ */
8
24
  value: string | string[];
25
+ /**
26
+ * @description
27
+ * Handles changes to the current value when using the ToggleButtonGroup as a controlled component
28
+ */
9
29
  onChange: (value: string | string[]) => void;
10
30
  }
@@ -4,26 +4,51 @@ import { BaseStyleProps } from './style';
4
4
  declare type MergeProps<A, B> = A & Omit<B, keyof A>;
5
5
  export declare type ElementType = React.FC<any> | keyof JSX.IntrinsicElements;
6
6
  /**
7
+ * @description
7
8
  * Convert string element type to DOMElement Type
8
9
  * e.g. 'button' => HTMLButtonElement
9
10
  */
10
11
  export declare type HTMLElementType<Element extends ElementType> = Element extends keyof JSX.IntrinsicElements ? React.ElementRef<Element> : HTMLElementTypeFromExoticComponentRef<Element>;
11
12
  /**
13
+ * @description
12
14
  * Allows us to extract ElementType from `typeof Root` used in SliderField
13
15
  * e.g. React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<HTMLSpanElement>> => HTMLSpanElement
14
16
  */
15
17
  declare type HTMLElementTypeFromExoticComponentRef<Element extends ElementType> = Element extends React.ForwardRefExoticComponent<React.RefAttributes<infer DOMHTMLElement>> ? DOMHTMLElement : HTMLElement;
16
18
  export declare type ElementProps<Element extends ElementType> = Element extends keyof JSX.IntrinsicElements ? JSX.IntrinsicElements[Element] : Element extends React.FC<infer ComponentProps> ? ComponentProps : never;
17
19
  export declare type PrimitiveProps<Props extends ViewProps, Element extends ElementType> = MergeProps<Omit<Props, 'as'> & {
20
+ /**
21
+ * @description
22
+ * Changes the type of HTML element rendered
23
+ */
18
24
  as?: Element | Props['as'];
19
25
  }, Omit<ElementProps<Element>, 'ref'>>;
20
26
  export declare type PrimitivePropsWithRef<Props extends ViewProps, Element extends ElementType> = PrimitiveProps<Props, Element> & {
27
+ /**
28
+ * @description
29
+ * References a DOM element from within a parent component
30
+ */
21
31
  ref?: React.Ref<HTMLElementType<Element>>;
22
32
  };
23
33
  export declare type Primitive<Props extends ViewProps, Element extends ElementType> = React.ForwardRefRenderFunction<HTMLElementType<Element>, PrimitivePropsWithRef<Props, Element>>;
24
34
  export interface ViewProps extends BaseComponentProps, BaseStyleProps, AriaProps {
35
+ /**
36
+ * @description
37
+ * Changes the type of HTML element rendered
38
+ */
25
39
  as?: ElementType;
40
+ /**
41
+ * @description
42
+ * Sets the Boolean `disabled` HTML attribute, which, when present, makes the element not mutable, focusable, or even submitted with the form
43
+ */
26
44
  isDisabled?: boolean;
45
+ /**
46
+ * @description
47
+ * Accepts a JavaScript object with camelCased properties rather than a CSS string.
48
+ * This is consistent with the DOM style JavaScript property, is more efficient, and prevents XSS security holes.
49
+ * @see
50
+ *[React docs](https://reactjs.org/docs/dom-elements.html#style)
51
+ */
27
52
  style?: React.CSSProperties;
28
53
  }
29
54
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/ui-react",
3
- "version": "3.0.0",
3
+ "version": "3.0.3",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "exports": {
@@ -59,7 +59,7 @@
59
59
  "size": "yarn run size-limit"
60
60
  },
61
61
  "dependencies": {
62
- "@aws-amplify/ui": "3.11.0",
62
+ "@aws-amplify/ui": "3.12.1",
63
63
  "@aws-amplify/ui-react-v1": "npm:@aws-amplify/ui-react@1.2.9",
64
64
  "@radix-ui/react-accordion": "0.1.6",
65
65
  "@radix-ui/react-dropdown-menu": "0.1.6",
@@ -1 +0,0 @@
1
- "use strict";var e=require("lodash/isEmpty"),t=require("lodash/isArray"),i=require("lodash/isObject"),a=require("react/jsx-runtime"),n=require("classnames"),o=require("react"),s=require("@aws-amplify/ui");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function r(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(i){if("default"!==i){var a=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,a.get?a:{enumerable:!0,get:function(){return e[i]}})}})),t.default=e,Object.freeze(t)}var p=l(e),c=l(t),d=l(i),m=l(n),h=r(o);const g=h.createContext({theme:s.createTheme()});function u(e,t){var i={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(i[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(a=Object.getOwnPropertySymbols(e);n<a.length;n++)t.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(i[a[n]]=e[a[n]])}return i}const f=e=>d.default(e)&&p.default(e),w=e=>c.default(e)&&p.default(e),b={alignContent:"alignContent",alignItems:"alignItems",alignSelf:"alignSelf",area:"gridArea",autoColumns:"gridAutoColumns",autoFlow:"gridAutoFlow",autoRows:"gridAutoRows",backgroundColor:"backgroundColor",backgroundImage:"backgroundImage",basis:"flexBasis",border:"border",borderRadius:"borderRadius",bottom:"bottom",boxShadow:"boxShadow",color:"color",column:"gridColumn",columnEnd:"gridColumnEnd",columnGap:"columnGap",columnSpan:"gridColumn",columnStart:"gridColumnStart",direction:"flexDirection",display:"display",flex:"flex",fontFamily:"fontFamily",fontSize:"fontSize",fontStyle:"fontStyle",fontWeight:"fontWeight",gap:"gap",grow:"flexGrow",height:"height",justifyContent:"justifyContent",left:"left",letterSpacing:"letterSpacing",lineHeight:"lineHeight",margin:"margin",marginBlock:"marginBlock",marginBlockEnd:"marginBlockEnd",marginBlockStart:"marginBlockStart",marginBottom:"marginBlockEnd",marginInline:"marginInline",marginInlineEnd:"marginInlineEnd",marginInlineStart:"marginInlineStart",marginLeft:"marginInlineStart",marginRight:"marginInlineEnd",marginTop:"marginBlockStart",maxHeight:"maxHeight",maxWidth:"maxWidth",minHeight:"minHeight",minWidth:"minWidth",objectFit:"objectFit",objectPosition:"objectPosition",opacity:"opacity",order:"order",overflow:"overflow",padding:"padding",paddingBlock:"paddingBlock",paddingBlockEnd:"paddingBlockEnd",paddingBlockStart:"paddingBlockStart",paddingBottom:"paddingBlockEnd",paddingInline:"paddingInline",paddingInlineEnd:"paddingInlineEnd",paddingInlineStart:"paddingInlineStart",paddingLeft:"paddingInlineStart",paddingRight:"paddingInlineEnd",paddingTop:"paddingBlockStart",position:"position",resize:"resize",right:"right",row:"gridRow",rowEnd:"gridRowEnd",rowGap:"rowGap",rowSpan:"gridRow",rowStart:"gridRowStart",shrink:"flexShrink",templateAreas:"gridTemplateAreas",templateColumns:"gridTemplateColumns",templateRows:"gridTemplateRows",textAlign:"textAlign",textDecoration:"textDecoration",textTransform:"textTransform",top:"top",transform:"transform",transformOrigin:"transformOrigin",width:"width",whiteSpace:"whiteSpace",wrap:"flexWrap"},x=Object.keys(b),y={backgroundColor:"colors",color:"colors",borderRadius:"radii",fontSize:"fontSizes",fontWeight:"fontWeights",fontFamily:"fonts",lineHeight:"lineHeights",opacity:"opacities",boxShadow:"shadows",transform:"transforms",left:"space",right:"space",top:"space",bottom:"space",height:"space",width:"space",letterSpacing:"space",margin:"space",marginBlock:"space",marginBlockEnd:"space",marginBlockStart:"space",marginInline:"space",marginInlineEnd:"space",marginInlineStart:"space",marginLeft:"space",marginRight:"space",marginTop:"space",marginBottom:"space",maxHeight:"space",maxWidth:"space",minHeight:"space",minWidth:"space",padding:"space",paddingBlock:"space",paddingBlockEnd:"space",paddingBlockStart:"space",paddingInline:"space",paddingInlineEnd:"space",paddingInlineStart:"space",paddingLeft:"space",paddingRight:"space",paddingTop:"space",paddingBottom:"space",gap:"space",columnGap:"space",rowGap:"space"},C=e=>"string"==typeof e&&0===e.length,v=e=>null==e||C(e);const N=(e,t)=>{if("string"!=typeof t)return t;if(t.includes(" "))return t.split(" ").map((t=>N(e,t))).join(" ");const i=t.split(".");let{tokens:a}=s.defaultTheme;a=a[y[e]];for(let e=0;e<i.length&&a;e++)a=a[i[e]];return s.isDesignToken(a)?`var(--${s.cssNameTransform({path:[y[e],...i]})})`:t},S=(e,t,i,a)=>{if(s.isDesignToken(e))return e.toString();if("object"!=typeof e)return N(a,e);let n={};const o=Object.keys(i).sort(((e,t)=>i[e]-i[t]));return Array.isArray(e)?e.map(((e,t)=>{n[o[t]]=e})):n=e,j(a,n,t,i)},j=(e,t,i,a)=>{if(t.hasOwnProperty(i)){const a=t[i];return s.isDesignToken(a)?a.toString():N(e,a)}const n=Object.keys(a).sort(((e,t)=>a[t]-a[e])),o=n.slice(n.indexOf(i));for(const i of o)if(t.hasOwnProperty(i)){const a=t[i];return s.isDesignToken(a)?a.toString():N(e,a)}return null},F="undefined"==typeof window?h.useEffect:h.useLayoutEffect,T=({breakpoints:e,defaultBreakpoint:t})=>{const i="undefined"!=typeof window&&void 0!==window.matchMedia?window.matchMedia:null,a=h.useMemo((()=>(({breakpoints:e})=>{const t=Object.keys(e).sort(((t,i)=>e[i]-e[t]));return t.map(((i,a)=>{let n="",o=e[i];const s=t[a-1],l=s?e[s]-1:null;return o>=0&&(n=`(min-width: ${o}px)`),null!==l&&(n&&(n+=" and "),n+=`(max-width: ${l}px)`),{breakpoint:i,query:n,maxWidth:l,minWidth:o}}))})({breakpoints:e})),[e]),[n,o]=h.useState(t),s=h.useCallback(((e,t)=>{e&&o(t)}),[o]);return F((()=>{if(!i)return;const e=a.map((({query:e,breakpoint:t})=>{const a=i(e);s(a.matches,t);const n=e=>{e.matches&&o(t)};return a.addEventListener("change",n),()=>a.removeEventListener("change",n)}));return()=>{e.forEach((e=>e()))}}),[e,o,i,a]),h.useDebugValue(n,(e=>e)),n},_=e=>void 0===e||void 0===e.theme?s.createTheme():e.theme,k=()=>{const e=h.useContext(g);return _(e)},L=(e,t)=>{const{breakpoints:{values:i,defaultBreakpoint:a}}=k(),n=T({breakpoints:i,defaultBreakpoint:a}),o=(e=>{const{rowSpan:t,columnSpan:i,row:a,column:n}=e,o=u(e,["rowSpan","columnSpan","row","column"]),{rowFromSpanValue:s,columnFromSpanValue:l}=h.useMemo((()=>({rowFromSpanValue:I(t),columnFromSpanValue:I(i)})),[t,i]);return Object.assign({row:v(a)?s:a,column:v(n)?l:n},o)})(e);return h.useMemo((()=>B({props:o,style:t,breakpoint:n,breakpoints:i})),[o,t,i,n])},I=e=>{if((e=>"auto"===e||"number"==typeof e&&!isNaN(e)||"string"==typeof e&&!isNaN(parseFloat(e)))(e))return O(e);if(Array.isArray(e))return e.map((e=>O(e)));if("object"==typeof e&&null!=e){const t={};return Object.entries(e).forEach((([e,i])=>{t[e]=O(i)})),t}return null},O=e=>"auto"===e?"auto":`span ${e}`,B=({props:e={},style:t={},breakpoint:i,breakpoints:a})=>{const n={};return Object.keys(e).filter((t=>null!=e[t])).forEach((o=>{if(o in b){if(!C(e[o])){let n=e[o];n=S(n,i,a,o);const s=b[o];t=Object.assign(Object.assign({},t),{[s]:n})}}else n[o]=e[o]})),{propStyles:t,nonStyleProps:n}},E={alignContent:!0,alignItems:!0,direction:!0,gap:!0,justifyContent:!0,wrap:!0,columnGap:!0,rowGap:!0},M={alignSelf:!0,area:!0,backgroundColor:!0,backgroundImage:!0,basis:!0,border:!0,borderRadius:!0,bottom:!0,boxShadow:!0,color:!0,column:!0,columnEnd:!0,columnSpan:!0,columnStart:!0,display:!0,flex:!0,fontFamily:!0,fontSize:!0,fontStyle:!0,fontWeight:!0,grow:!0,height:!0,left:!0,letterSpacing:!0,lineHeight:!0,margin:!0,marginBlock:!0,marginBlockEnd:!0,marginBlockStart:!0,marginBottom:!0,marginInline:!0,marginInlineEnd:!0,marginInlineStart:!0,marginLeft:!0,marginRight:!0,marginTop:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,opacity:!0,order:!0,overflow:!0,padding:!0,paddingBlock:!0,paddingBlockEnd:!0,paddingBlockStart:!0,paddingBottom:!0,paddingInline:!0,paddingInlineEnd:!0,paddingInlineStart:!0,paddingLeft:!0,paddingRight:!0,paddingTop:!0,position:!0,right:!0,row:!0,rowEnd:!0,rowSpan:!0,rowStart:!0,shrink:!0,textAlign:!0,textDecoration:!0,textTransform:!0,top:!0,transform:!0,transformOrigin:!0,width:!0,whiteSpace:!0},H=h.forwardRef(((e,t)=>{var{as:i="div",children:a,testId:n,ariaLabel:o,isDisabled:s,style:l}=e,r=u(e,["as","children","testId","ariaLabel","isDisabled","style"]);const{propStyles:p,nonStyleProps:c}=L(r,l);return h.createElement(i,Object.assign({"aria-label":o,"data-testid":n,disabled:s,ref:t,style:p},c),a)}));H.displayName="View";const P={Alert:{className:"amplify-alert",components:["Alert"],description:"Top level element that wraps the Alert primitive"},AlertIcon:{className:"amplify-alert__icon",components:["Alert"],description:"Class applied to Icon component within the Alert primitive"},AlertHeading:{className:"amplify-alert__heading",components:["Alert"],description:"Class applied to the heading View"},AlertBody:{className:"amplify-alert__body",components:["Alert"],description:"Class applied to the body View"},AlertDismiss:{className:"amplify-alert__dismiss",components:["Alert"],description:"Class applied to the close Button"},Badge:{className:"amplify-badge",components:["Badge"],description:"Top level element that wraps the Badge component"},Button:{className:"amplify-button",components:["Button"],description:"Top level element that wraps the Button primitive"},ButtonGroup:{className:"amplify-buttongroup"},ButtonLoaderWrapper:{className:"amplify-button__loader-wrapper",components:["Button"],description:"Class applied to the Loader component within the Button Loading state"},Card:{className:"amplify-card",components:["Card"],description:"Top level element that wraps the Card primitive"},Checkbox:{className:"amplify-checkbox",components:["Checkbox"],description:"Top level element that wraps the Checkbox primitive"},CheckboxButton:{className:"amplify-checkbox__button",components:["Checkbox"],description:"Wrapper for the checked icon within the Checkbox primitive"},CheckboxIcon:{className:"amplify-checkbox__icon",components:["Checkbox"],description:"Class applied to the checked icon within the Checkbox primitive"},CheckboxInput:{className:"amplify-checkbox__input",components:["Checkbox"],description:"Class applied to the visually hidden checkbox input within the Checkbox primitive"},CheckboxLabel:{className:"amplify-checkbox__label",components:["Checkbox"],description:"Class applied to the label within the Checkbox primitive"},CheckboxField:{className:"amplify-checkboxfield",components:["CheckboxField"],description:"Top level element that wraps the CheckboxField primitive"},Collection:{className:"amplify-collection",components:["Collection"],description:"Top level element that wraps the Collection primitive"},CollectionItems:{className:"amplify-collection-items",components:["Collection"],description:"Class applied to the element that wraps all the items in a collection"},CollectionSearch:{className:"amplify-collection-search",components:["Collection"],description:"Class applied to the element that wraps the collection search box"},CollectionPagination:{className:"amplify-collection-pagination",components:["Collection"],description:"Class applied to the element that wraps the pagination component in a collection"},CountryCodeSelect:{className:"amplify-countrycodeselect",components:["PhoneNumberField"],description:"Class applied to the Country Code Select within the PhoneNumberField primitive"},Divider:{className:"amplify-divider",components:["Divider"],description:"Top level element that wraps the Divider primitive"},DividerLabel:{className:"amplify-divider--label",components:["Divider"],description:"Class applied to the label of the Divider component"},Expander:{className:"amplify-expander",components:["Expander"],description:"Top level element that wraps the Expander primitive"},ExpanderContent:{className:"amplify-expander__content",components:["Expander"],description:"Expander content container"},ExpanderContentText:{className:"amplify-expander__content__text",components:["Expander"],description:"Expander content text"},ExpanderHeader:{className:"amplify-expander__header",components:["Expander"],description:"Expander item header"},ExpanderIcon:{className:"amplify-expander__icon",components:["Expander"],description:"Icon to indicate whether an item is expanded or collapsed"},ExpanderItem:{className:"amplify-expander__item",components:["Expander"],description:"Expander item(containier for header, trigger, and content)"},ExpanderTrigger:{className:"amplify-expander__trigger",components:["Expander"],description:"Expander item trigger(button)"},Field:{className:"amplify-field"},FieldDescription:{className:"amplify-field__description"},FieldErrorMessage:{className:"amplify-field__error-message"},FieldGroup:{className:"amplify-field-group"},FieldGroupControl:{className:"amplify-field-group__control"},FieldGroupOuterEnd:{className:"amplify-field-group__outer-end"},FieldGroupOuterStart:{className:"amplify-field-group__outer-start"},FieldGroupInnerEnd:{className:"amplify-field-group__inner-end"},FieldGroupInnerStart:{className:"amplify-field-group__inner-start"},FieldGroupIcon:{className:"amplify-field-group__icon"},FieldGroupIconButton:{className:"amplify-field-group__icon-button"},FieldGroupHasInnerEnd:{className:"amplify-field-group--has-inner-end"},FieldGroupHasInnerStart:{className:"amplify-field-group--has-inner-start"},FieldShowPassword:{className:"amplify-field__show-password"},FieldGroupFieldWrapper:{className:"amplify-field-group__field-wrapper"},Flex:{className:"amplify-flex",components:["Flex"],description:"Top level element that wraps the Flex primitive"},Grid:{className:"amplify-grid",components:["Grid"],description:"Top level element that wraps the Grid primitive"},Heading:{className:"amplify-heading",components:["Heading"],description:"Top level element that wraps the Heading primitive"},Icon:{className:"amplify-icon",components:["Icon"],description:"Top level element that wraps the Icon primitive"},Image:{className:"amplify-image",components:["Image"],description:"Top level element that wraps the Image primitive"},Input:{className:"amplify-input"},Label:{className:"amplify-label"},Link:{className:"amplify-link",components:["Link"],description:"Top level element that wraps the Link primitive"},Loader:{className:"amplify-loader",components:["Loader"],description:"Top level element that wraps the Loader primitive"},LoaderDeterminate:{className:"amplify-loader--determinate",components:["Loader"],description:"Class applied to a determinate loader"},LoaderPercentageText:{className:"amplify-loader__percentage-text",components:["Loader"],description:"Class applied to the percentage text of loader"},MenuContent:{className:"amplify-menu-content",components:["Menu"],description:"Menu content container (Flex)"},MenuItem:{className:"amplify-menu-content__item",components:["Menu"],description:"Menu item button (MenuButton, wrapped in amplify-menu-content class)"},MenuTrigger:{className:"amplify-menu-trigger",components:["Menu"],description:"Menu trigger button (MenuButton, not wrapped in amplify-menu-content class)"},Pagination:{className:"amplify-pagination",components:["Pagination"],description:"Top level element that wraps the Pagination primitive"},PaginationItemButton:{className:"amplify-pagination__item-button",components:["Pagination"],description:"Class applied to the pagination buttons"},PaginationItemCurrent:{className:"amplify-pagination__item-current",components:["Pagination"],description:"Class applied to the currently selected pagination button"},PaginationItemEllipsis:{className:"amplify-pagination__item-ellipsis",components:["Pagination"],description:"Class applied to the ellipsis within the Pagination primitive"},PasswordField:{className:"amplify-passwordfield",components:["PasswordField"],description:"Top level element that wraps the PasswordField primitive"},PhoneNumberField:{className:"amplify-phonenumberfield",components:["PhoneNumberField"],description:"Top level element that wraps the PhoneNumberField primitive"},Placeholder:{className:"amplify-placeholder",components:["Placeholder"],description:"Top level element that wraps the Placeholder primitive"},Radio:{className:"amplify-radio",components:["RadioGroupField","Radio"],description:"Top level element that wraps the Radio primitive"},RadioButton:{className:"amplify-radio__button",compoents:["RadioGroupField","Radio"],description:"Class applied to the displayed radio button"},RadioInput:{className:"amplify-radio__input",components:["RadioGroupField","Radio"],description:"Class applied to the visually hidden radio input"},RadioLabel:{className:"amplify-radio__label",components:["RadioGroupField","Radio"],description:"Class applied to the radio label"},RadioGroupField:{className:"amplify-radiogroupfield",components:["RadioGroupField"],description:"Top level element that wraps the RadioGroupField primitive"},RadioGroup:{className:"amplify-radiogroup",components:["RadioGroupField"],description:"Class applied to the radio group wrapper"},Rating:{className:"amplify-rating",components:["Rating"],description:"Top level element that wraps the Rating primitive"},ScrollView:{className:"amplify-scrollview",components:["ScrollView"],description:"Top level element that wraps the ScrollView primitive"},SearchField:{className:"amplify-searchfield",components:["SearchField"],description:"Top level element that wraps the SearchField primitive"},SearchFieldClear:{className:"amplify-searchfield__clear",components:["SearchField"],description:"Class applied to the search field clear button"},SearchFieldSearch:{className:"amplify-searchfield__search",components:["SearchField"],description:"Class applied to the search button"},Select:{className:"amplify-select",components:["Select","SelectField"],description:"Class applied to the select element"},SelectField:{className:"amplify-selectfield",components:["SelectField"],description:"Top level element that wraps the SelectField primitive"},SelectWrapper:{className:"amplify-select__wrapper",components:["Select","SelectField"],description:"Class applied to the select wrapper"},SelectIconWrapper:{className:"amplify-select__icon-wrapper",components:["Select","SelectField"],description:"Class applied to the select icon wrapper"},SliderField:{className:"amplify-sliderfield",components:["SliderField"],description:"Top level element that wraps the SliderField primitive"},SliderFieldGroup:{className:"amplify-sliderfield__group",components:["SliderField"],description:"Class applied to the element that wraps the slider root"},SliderFieldLabel:{className:"amplify-sliderfield__label",components:["SliderField"],description:"Class applied to the slider label"},SliderFieldRange:{className:"amplify-sliderfield__range",components:["SliderField"],description:"Class applied to the filled in portion of the slider track"},SliderFieldRoot:{className:"amplify-sliderfield__root",components:["SliderField"],description:"Class applied to the slider root which wraps the track and thumb"},SliderFieldThumb:{className:"amplify-sliderfield__thumb",components:["SliderField"],description:"Class applied to the slider thumb"},SliderFieldTrack:{className:"amplify-sliderfield__track",components:["SliderField"],description:"Class applied to the slider track"},StepperField:{className:"amplify-stepperfield",components:["StepperField"],description:"Top level element that wraps the StepperField primitive"},StepperFieldButtonDecrease:{className:"amplify-stepperfield__button--decrease",components:["StepperField"],description:"Class applied to the decrease button"},StepperFieldButtonIncrease:{className:"amplify-stepperfield__button--increase",components:["StepperField"],description:"Class applied to the increase button"},StepperFieldInput:{className:"amplify-stepperfield__input",components:["StepperField"],description:"Class applied to the StepperField input"},SwitchField:{className:"amplify-switchfield",components:["SwitchField"],description:"Top level element that wraps the SwitchField primitive"},SwitchLabel:{className:"amplify-switch-label",components:["SwitchField"],description:"Class applied to the SwitchField label text"},SwitchThumb:{className:"amplify-switch-thumb",components:["SwitchField"],description:"Class applied to the SwitchField thumb"},SwitchTrack:{className:"amplify-switch-track",components:["SwitchField"],description:"Class applied to the SwitchField track"},SwitchWrapper:{className:"amplify-switch__wrapper",components:["SwitchField"],description:"Class applied to the label element that wraps the SwitchField label and track"},Table:{className:"amplify-table",components:["Table"],description:"Top level element that wraps the Table primitive"},TableCaption:{className:"amplify-table__caption",components:["Table"],description:"Class applied to the content provided as the caption prop"},TableBody:{className:"amplify-table__body",components:["Table"],description:"Class applied to TableBody component"},TableTd:{className:"amplify-table__td",components:["Table"],description:'Class applied to TableCell component rendered as a <td> element (<TableCell as="td" />)'},TableTh:{className:"amplify-table__th",components:["Table"],description:'Class applied to TableCell comopnent rendered as a <th> element (<TableCell as="th" />)'},TableFoot:{className:"amplify-table__foot",components:["Table"],description:"Class applied to TableFoot component"},TableHead:{className:"amplify-table__head",components:["Table"],description:"Class applied to TableHead component"},TableRow:{className:"amplify-table__row",components:["Table"],description:"Class applied to TableRow component"},Tabs:{className:"amplify-tabs",components:["Tabs"],description:"Top level element that wraps the Tabs primitive"},TabItems:{className:"amplify-tabs-item",components:["Tabs"],description:"Top level element that wraps the TabItem primitive"},Text:{className:"amplify-text",components:["Text"],description:"Top level element that wraps the Text primitive"},Textarea:{className:"amplify-textarea",components:["TextAreaField"],description:"Class applied to the text area"},TextAreaField:{className:"amplify-textareafield",components:["TextAreaField"],description:"Top level element that wraps the TextAreaField primitive"},TextField:{className:"amplify-textfield",components:["TextField"],description:"Top level element that wraps the TextField primitive"},ToggleButton:{className:"amplify-togglebutton",components:["ToggleButton"],description:"Top level element that wraps the ToggleButton primitive"},ToggleButtonGroup:{className:"amplify-togglebuttongroup",components:["ToggleButton","ToggleButtonGroup"],description:"Top level element that wraps the ToggleButtonGroup primitive"},VisuallyHidden:{className:"amplify-visually-hidden",components:["VisuallyHidden"],description:"Top level element that wraps the VisuallyHidden primitive"}};let V={};Object.keys(P).map((e=>{V[e]=P[e].className})),Object.freeze(V);exports.AmplifyContext=g,exports.ComponentClassNames=V,exports.ComponentClassObject=P,exports.ComponentPropsToStylePropsMap=b,exports.ComponentPropsToStylePropsMapKeys=x,exports.ComponentText={Collection:{searchButtonLabel:"Search"},Fields:{clearButtonLabel:"Clear input"},PaginationItem:{currentPageLabel:"Current Page:",nextLabel:"Go to next page",pageLabel:"Go to page",previousLabel:"Go to previous page"},PhoneNumberField:{countryCodeLabel:"Country code"},SearchField:{searchButtonLabel:"Search"},PasswordField:{showPasswordButtonLabel:"Show password",hidePasswordButtonLabel:"Hide password"},StepperField:{increaseButtonLabel:"Increase to",decreaseButtonLabel:"Decrease to"}},exports.IconAdd=e=>{const{className:t}=e,i=u(e,["className"]);return a.jsx(H,Object.assign({as:"span",width:"1em",height:"1em",className:m.default(V.Icon,t)},i,{children:a.jsx("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:a.jsx("path",{d:"M19 13H13V19H11V13H5V11H11V5H13V11H19V13Z",fill:"currentColor"})}))}))},exports.IconCheck=e=>{const{className:t}=e,i=u(e,["className"]);return a.jsx(H,Object.assign({as:"span",width:"1em",height:"1em",className:m.default(V.Icon,t)},i,{children:a.jsx("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:a.jsx("path",{d:"M9.00016 16.1698L4.83016 11.9998L3.41016 13.4098L9.00016 18.9998L21.0002 6.99984L19.5902 5.58984L9.00016 16.1698Z",fill:"currentColor"})}))}))},exports.IconCheckCircle=e=>{const{className:t}=e,i=u(e,["className"]);return a.jsx(H,Object.assign({as:"span",width:"1em",height:"1em",className:m.default(V.Icon,t)},i,{children:a.jsx("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:a.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM16.59 7.58L10 14.17L7.41 11.59L6 13L10 17L18 9L16.59 7.58Z",fill:"currentColor"})}))}))},exports.IconChevronLeft=e=>{const{className:t}=e,i=u(e,["className"]);return a.jsx(H,Object.assign({as:"span",width:"1em",height:"1em",className:m.default(V.Icon,t)},i,{children:a.jsx("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:a.jsx("path",{d:"M15.41 7.41L14 6L8 12L14 18L15.41 16.59L10.83 12L15.41 7.41Z",fill:"currentColor"})}))}))},exports.IconChevronRight=e=>{const{className:t}=e,i=u(e,["className"]);return a.jsx(H,Object.assign({as:"span",width:"1em",height:"1em",className:m.default(V.Icon,t)},i,{children:a.jsx("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:a.jsx("path",{d:"M9.99984 6L8.58984 7.41L13.1698 12L8.58984 16.59L9.99984 18L15.9998 12L9.99984 6Z",fill:"currentColor"})}))}))},exports.IconClose=e=>{const{className:t}=e,i=u(e,["className"]);return a.jsx(H,Object.assign({as:"span",width:"1em",height:"1em",className:m.default(V.Icon,t)},i,{children:a.jsx("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:a.jsx("path",{d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z",fill:"currentColor"})}))}))},exports.IconError=e=>{const{className:t}=e,i=u(e,["className"]);return a.jsx(H,Object.assign({as:"span",width:"1em",height:"1em",className:m.default(V.Icon,t)},i,{children:a.jsx("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:a.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM13 17H11V15H13V17ZM13 13H11V7H13V13Z",fill:"currentColor"})}))}))},exports.IconExpandMore=e=>{const{className:t}=e,i=u(e,["className"]);return a.jsx(H,Object.assign({as:"span",width:"1em",height:"1em",className:m.default(V.Icon,t)},i,{children:a.jsx("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:a.jsx("path",{d:"M16.59 8.58984L12 13.1698L7.41 8.58984L6 9.99984L12 15.9998L18 9.99984L16.59 8.58984Z",fill:"currentColor"})}))}))},exports.IconInfo=e=>{const{className:t}=e,i=u(e,["className"]);return a.jsx(H,Object.assign({as:"span",width:"1em",height:"1em",className:m.default(V.Icon,t)},i,{children:a.jsx("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:a.jsx("path",{d:"M11 7H13V9H11V7ZM11 11H13V17H11V11ZM12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20Z",fill:"currentColor"})}))}))},exports.IconMenu=e=>{const{className:t}=e,i=u(e,["className"]);return a.jsx(H,Object.assign({as:"span",width:"1em",height:"1em",className:m.default(V.Icon,t)},i,{children:a.jsx("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:a.jsx("path",{d:"M3 18H21V16H3V18ZM3 13H21V11H3V13ZM3 6V8H21V6H3Z",fill:"currentColor"})}))}))},exports.IconRemove=e=>{const{className:t}=e,i=u(e,["className"]);return a.jsx(H,Object.assign({as:"span",width:"1em",height:"1em",className:m.default(V.Icon,t)},i,{children:a.jsx("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:a.jsx("path",{d:"M19 13H5V11H19V13Z",fill:"currentColor"})}))}))},exports.IconSearch=e=>{const{className:t}=e,i=u(e,["className"]);return a.jsx(H,Object.assign({as:"span",width:"1em",height:"1em",className:m.default(V.Icon,t)},i,{children:a.jsx("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:a.jsx("path",{d:"M15.5 14H14.71L14.43 13.73C15.41 12.59 16 11.11 16 9.5C16 5.91 13.09 3 9.5 3C5.91 3 3 5.91 3 9.5C3 13.09 5.91 16 9.5 16C11.11 16 12.59 15.41 13.73 14.43L14 14.71V15.5L19 20.49L20.49 19L15.5 14V14ZM9.5 14C7.01 14 5 11.99 5 9.5C5 7.01 7.01 5 9.5 5C11.99 5 14 7.01 14 9.5C14 11.99 11.99 14 9.5 14Z",fill:"currentColor"})}))}))},exports.IconStar=e=>{const{className:t}=e,i=u(e,["className"]);return a.jsx(H,Object.assign({as:"span",width:"1em",height:"1em",className:m.default(V.Icon,t)},i,{children:a.jsx("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:a.jsx("path",{d:"M12 17.27L18.18 21L16.54 13.97L22 9.24L14.81 8.63L12 2L9.19 8.63L2 9.24L7.46 13.97L5.82 21L12 17.27Z",fill:"currentColor"})}))}))},exports.IconVisibility=e=>{const{className:t}=e,i=u(e,["className"]);return a.jsx(H,Object.assign({as:"span",width:"1em",height:"1em",className:m.default(V.Icon,t)},i,{children:a.jsx("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:a.jsx("path",{d:"M12 6C15.79 6 19.17 8.13 20.82 11.5C19.17 14.87 15.79 17 12 17C8.21 17 4.83 14.87 3.18 11.5C4.83 8.13 8.21 6 12 6ZM12 4C7 4 2.73 7.11 1 11.5C2.73 15.89 7 19 12 19C17 19 21.27 15.89 23 11.5C21.27 7.11 17 4 12 4ZM12 9C13.38 9 14.5 10.12 14.5 11.5C14.5 12.88 13.38 14 12 14C10.62 14 9.5 12.88 9.5 11.5C9.5 10.12 10.62 9 12 9ZM12 7C9.52 7 7.5 9.02 7.5 11.5C7.5 13.98 9.52 16 12 16C14.48 16 16.5 13.98 16.5 11.5C16.5 9.02 14.48 7 12 7Z",fill:"currentColor"})}))}))},exports.IconVisibilityOff=e=>{const{className:t}=e,i=u(e,["className"]);return a.jsx(H,Object.assign({as:"span",width:"1em",height:"1em",className:m.default(V.Icon,t)},i,{children:a.jsx("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:a.jsx("path",{d:"M12 6.0002C15.79 6.0002 19.17 8.1302 20.82 11.5002C20.23 12.7202 19.4 13.7702 18.41 14.6202L19.82 16.0302C21.21 14.8002 22.31 13.2602 23 11.5002C21.27 7.1102 17 4.0002 12 4.0002C10.73 4.0002 9.51 4.2002 8.36 4.5702L10.01 6.2202C10.66 6.0902 11.32 6.0002 12 6.0002ZM10.93 7.14019L13 9.2102C13.57 9.4602 14.03 9.9202 14.28 10.4902L16.35 12.5602C16.43 12.2202 16.49 11.8602 16.49 11.4902C16.5 9.0102 14.48 7.0002 12 7.0002C11.63 7.0002 11.28 7.05019 10.93 7.14019ZM2.01 3.8702L4.69 6.5502C3.06 7.8302 1.77 9.5302 1 11.5002C2.73 15.8902 7 19.0002 12 19.0002C13.52 19.0002 14.98 18.7102 16.32 18.1802L19.74 21.6002L21.15 20.1902L3.42 2.4502L2.01 3.8702ZM9.51 11.3702L12.12 13.9802C12.08 13.9902 12.04 14.0002 12 14.0002C10.62 14.0002 9.5 12.8802 9.5 11.5002C9.5 11.4502 9.51 11.4202 9.51 11.3702V11.3702ZM6.11 7.97019L7.86 9.7202C7.63 10.2702 7.5 10.8702 7.5 11.5002C7.5 13.9802 9.52 16.0002 12 16.0002C12.63 16.0002 13.23 15.8702 13.77 15.6402L14.75 16.6202C13.87 16.8602 12.95 17.0002 12 17.0002C8.21 17.0002 4.83 14.8702 3.18 11.5002C3.88 10.0702 4.9 8.89019 6.11 7.97019Z",fill:"currentColor"})}))}))},exports.IconWarning=e=>{const{className:t}=e,i=u(e,["className"]);return a.jsx(H,Object.assign({as:"span",width:"1em",height:"1em",className:m.default(V.Icon,t)},i,{children:a.jsx("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:a.jsx("path",{d:"M1 21H23L12 2L1 21ZM13 18H11V16H13V18ZM13 14H11V10H13V14Z",fill:"currentColor"})}))}))},exports.View=H,exports.__awaiter=function(e,t,i,a){return new(i||(i=Promise))((function(n,o){function s(e){try{r(a.next(e))}catch(e){o(e)}}function l(e){try{r(a.throw(e))}catch(e){o(e)}}function r(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,l)}r((a=a.apply(e,t||[])).next())}))},exports.__rest=u,exports.areArrayValuesEqual=(e,t)=>e.length===t.length&&e.every(((e,i)=>{const a=t[i];return!(!w(e)||!w(a))||(!(!f(e)||!f(a))||e===a)})),exports.classNameModifier=(e,t)=>t?`${e}--${t}`:null,exports.classNameModifierByFlag=(e,t,i)=>i?`${e}--${t}`:null,exports.findChildOverrides=(e,t)=>{if(!e)return null;const i=Object.entries(e).filter((e=>e[0].startsWith(t)));return Object.assign({},...Array.from(i,(([e,i])=>({[e.replace(t,"")]:i}))))},exports.getConsecutiveIntArray=(e,t)=>{const i=t-e+1;return Array.from({length:i},((t,i)=>i+e))},exports.getErrorMessage=e=>(e=>{if("object"==typeof(t=e)&&null!==t&&"message"in t&&"string"==typeof t.message)return e;var t;try{return new Error(JSON.stringify(e))}catch(t){return new Error(String(e))}})(e).message,exports.getFormDataFromEvent=e=>{const t=new FormData(e.target);return Object.fromEntries(t)},exports.getOverrideProps=(e,t)=>{if(!e)return null;const i=Object.entries(e).filter((([e])=>e===t)).flatMap((([,e])=>Object.entries(e))).filter((e=>null==e?void 0:e[0]));return Object.fromEntries(i)},exports.getOverridesFromVariants=function(e,t){const i=[...new Set(e.flatMap((e=>Object.keys(e.variantValues))))],a=Object.keys(t).filter((e=>i.includes(e)&&t[e])).reduce(((e,i)=>(e[i]=t[i],e)),{});return e.filter((({variantValues:e})=>Object.keys(e).length===Object.keys(a).length&&Object.entries(e).every((([e,t])=>a[e]===t)))).reduce(((e,t)=>Object.assign(Object.assign({},e),t.overrides)),{})},exports.getThemeFromContext=_,exports.getValueAtCurrentBreakpoint=S,exports.isFunction=e=>"function"==typeof e,exports.mergeVariantsAndOverrides=(e,t)=>{if(!e&&!t)return null;if(!t)return e;if(!e)return t;const i=new Set(Object.keys(t)),a=Object.keys(e).filter((e=>i.has(e))),n=Object.fromEntries(a.map((i=>[i,Object.assign(Object.assign({},e[i]),t[i])])));return Object.assign(Object.assign(Object.assign({},e),t),n)},exports.splitPrimitiveProps=e=>{const t={flexContainerStyleProps:{},baseStyleProps:{},rest:{}};return Object.keys(e).forEach((i=>{i in E?t.flexContainerStyleProps[i]=e[i]:i in M?t.baseStyleProps[i]=e[i]:t.rest[i]=e[i]})),t},exports.strHasLength=e=>"string"==typeof e&&e.length>0,exports.useBreakpoint=T,exports.useStyles=L,exports.useTheme=k;