@adobe-commerce/elsie 1.0.0-alpha3 → 1.0.0-alpha4

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 (194) hide show
  1. package/config/eslint.js +1 -0
  2. package/config/storybook/addon.js +1 -1
  3. package/package.json +2 -2
  4. package/src/components/Accordion/Accordion.stories.tsx +7 -0
  5. package/src/components/Accordion/Accordion.tsx +3 -1
  6. package/src/components/Icon/Icon.stories.tsx +1 -0
  7. package/src/docs/API/initializer.mdx +23 -14
  8. package/src/icons/GiftCard.svg +2 -2
  9. package/src/lib/image-params-keymap.ts +3 -1
  10. package/src/lib/initializer.ts +7 -4
  11. package/src/lib/resolve-image.ts +19 -4
  12. package/dist/chunks/deviceUtils.js +0 -14
  13. package/dist/chunks/icons/Add.js +0 -3
  14. package/dist/chunks/icons/AddressBook.js +0 -3
  15. package/dist/chunks/icons/Bulk.js +0 -3
  16. package/dist/chunks/icons/Burger.js +0 -3
  17. package/dist/chunks/icons/Card.js +0 -3
  18. package/dist/chunks/icons/Cart.js +0 -3
  19. package/dist/chunks/icons/Check.js +0 -3
  20. package/dist/chunks/icons/CheckWithCircle.js +0 -3
  21. package/dist/chunks/icons/ChevronDown.js +0 -3
  22. package/dist/chunks/icons/ChevronRight.js +0 -3
  23. package/dist/chunks/icons/ChevronUp.js +0 -3
  24. package/dist/chunks/icons/Close.js +0 -3
  25. package/dist/chunks/icons/Coupon.js +0 -3
  26. package/dist/chunks/icons/Date.js +0 -3
  27. package/dist/chunks/icons/Delivery.js +0 -3
  28. package/dist/chunks/icons/EmptyBox.js +0 -3
  29. package/dist/chunks/icons/Eye.js +0 -3
  30. package/dist/chunks/icons/EyeClose.js +0 -3
  31. package/dist/chunks/icons/Gift.js +0 -3
  32. package/dist/chunks/icons/GiftCard.js +0 -3
  33. package/dist/chunks/icons/Heart.js +0 -3
  34. package/dist/chunks/icons/HeartFilled.js +0 -3
  35. package/dist/chunks/icons/InfoFilled.js +0 -3
  36. package/dist/chunks/icons/Locker.js +0 -3
  37. package/dist/chunks/icons/Minus.js +0 -3
  38. package/dist/chunks/icons/Order.js +0 -3
  39. package/dist/chunks/icons/OrderError.js +0 -3
  40. package/dist/chunks/icons/OrderSuccess.js +0 -3
  41. package/dist/chunks/icons/PaymentError.js +0 -3
  42. package/dist/chunks/icons/Placeholder.js +0 -3
  43. package/dist/chunks/icons/PlaceholderFilled.js +0 -3
  44. package/dist/chunks/icons/Search.js +0 -3
  45. package/dist/chunks/icons/SearchFilled.js +0 -3
  46. package/dist/chunks/icons/Sort.js +0 -3
  47. package/dist/chunks/icons/Star.js +0 -3
  48. package/dist/chunks/icons/Trash.js +0 -3
  49. package/dist/chunks/icons/User.js +0 -3
  50. package/dist/chunks/icons/View.js +0 -3
  51. package/dist/chunks/icons/Wallet.js +0 -3
  52. package/dist/chunks/icons/Warning.js +0 -3
  53. package/dist/chunks/icons/WarningFilled.js +0 -3
  54. package/dist/chunks/icons/WarningWithCircle.js +0 -3
  55. package/dist/chunks/image-params-keymap.js +0 -3
  56. package/dist/chunks/initializer.js +0 -5
  57. package/dist/components.d.ts +0 -1
  58. package/dist/components.js +0 -3
  59. package/dist/event-bus.d.ts +0 -1
  60. package/dist/event-bus.js +0 -3
  61. package/dist/fetch-graphql.d.ts +0 -1
  62. package/dist/fetch-graphql.js +0 -3
  63. package/dist/i18n.d.ts +0 -1
  64. package/dist/i18n.js +0 -5
  65. package/dist/initializer.d.ts +0 -1
  66. package/dist/initializer.js +0 -5
  67. package/dist/lib.d.ts +0 -1
  68. package/dist/lib.js +0 -3
  69. package/dist/preact-compat.d.ts +0 -1
  70. package/dist/preact-compat.js +0 -3
  71. package/dist/preact-hooks.d.ts +0 -1
  72. package/dist/preact-hooks.js +0 -3
  73. package/dist/preact-jsx-runtime.d.ts +0 -1
  74. package/dist/preact-jsx-runtime.js +0 -3
  75. package/dist/preact.d.ts +0 -1
  76. package/dist/preact.js +0 -3
  77. package/dist/recaptcha.d.ts +0 -1
  78. package/dist/recaptcha.js +0 -14
  79. package/dist/signals.d.ts +0 -1
  80. package/dist/signals.js +0 -3
  81. package/dist/types/elsie/src/components/Accordion/Accordion.d.ts +0 -27
  82. package/dist/types/elsie/src/components/Accordion/index.d.ts +0 -3
  83. package/dist/types/elsie/src/components/ActionButton/ActionButton.d.ts +0 -11
  84. package/dist/types/elsie/src/components/ActionButton/index.d.ts +0 -2
  85. package/dist/types/elsie/src/components/ActionButtonGroup/ActionButtonGroup.d.ts +0 -20
  86. package/dist/types/elsie/src/components/ActionButtonGroup/index.d.ts +0 -2
  87. package/dist/types/elsie/src/components/AlertBanner/AlertBanner.d.ts +0 -15
  88. package/dist/types/elsie/src/components/AlertBanner/index.d.ts +0 -3
  89. package/dist/types/elsie/src/components/Breadcrumbs/Breadcrumbs.d.ts +0 -9
  90. package/dist/types/elsie/src/components/Breadcrumbs/index.d.ts +0 -3
  91. package/dist/types/elsie/src/components/Button/Button.d.ts +0 -15
  92. package/dist/types/elsie/src/components/Button/index.d.ts +0 -3
  93. package/dist/types/elsie/src/components/Card/Card.d.ts +0 -9
  94. package/dist/types/elsie/src/components/Card/index.d.ts +0 -2
  95. package/dist/types/elsie/src/components/CartItem/CartItem.d.ts +0 -36
  96. package/dist/types/elsie/src/components/CartItem/CartItemSkeleton.d.ts +0 -4
  97. package/dist/types/elsie/src/components/CartItem/index.d.ts +0 -4
  98. package/dist/types/elsie/src/components/CartList/CartList.d.ts +0 -7
  99. package/dist/types/elsie/src/components/CartList/index.d.ts +0 -3
  100. package/dist/types/elsie/src/components/Checkbox/Checkbox.d.ts +0 -13
  101. package/dist/types/elsie/src/components/Checkbox/index.d.ts +0 -2
  102. package/dist/types/elsie/src/components/ColorSwatch/ColorSwatch.d.ts +0 -20
  103. package/dist/types/elsie/src/components/ColorSwatch/index.d.ts +0 -3
  104. package/dist/types/elsie/src/components/ContentGrid/ContentGrid.d.ts +0 -10
  105. package/dist/types/elsie/src/components/ContentGrid/index.d.ts +0 -19
  106. package/dist/types/elsie/src/components/Divider/Divider.d.ts +0 -8
  107. package/dist/types/elsie/src/components/Divider/index.d.ts +0 -3
  108. package/dist/types/elsie/src/components/Field/Field.d.ts +0 -14
  109. package/dist/types/elsie/src/components/Field/index.d.ts +0 -2
  110. package/dist/types/elsie/src/components/Header/Header.d.ts +0 -11
  111. package/dist/types/elsie/src/components/Header/index.d.ts +0 -3
  112. package/dist/types/elsie/src/components/Icon/Icon.d.ts +0 -18
  113. package/dist/types/elsie/src/components/Icon/index.d.ts +0 -2
  114. package/dist/types/elsie/src/components/IllustratedMessage/IllustratedMessage.d.ts +0 -13
  115. package/dist/types/elsie/src/components/IllustratedMessage/index.d.ts +0 -3
  116. package/dist/types/elsie/src/components/Image/Image.d.ts +0 -11
  117. package/dist/types/elsie/src/components/Image/index.d.ts +0 -2
  118. package/dist/types/elsie/src/components/ImageSwatch/ImageSwatch.d.ts +0 -20
  119. package/dist/types/elsie/src/components/ImageSwatch/index.d.ts +0 -3
  120. package/dist/types/elsie/src/components/InLineAlert/InLineAlert.d.ts +0 -19
  121. package/dist/types/elsie/src/components/InLineAlert/index.d.ts +0 -3
  122. package/dist/types/elsie/src/components/Incrementer/Incrementer.d.ts +0 -17
  123. package/dist/types/elsie/src/components/Incrementer/index.d.ts +0 -2
  124. package/dist/types/elsie/src/components/Input/Input.d.ts +0 -19
  125. package/dist/types/elsie/src/components/Input/index.d.ts +0 -3
  126. package/dist/types/elsie/src/components/InputDate/InputDate.d.ts +0 -11
  127. package/dist/types/elsie/src/components/InputDate/index.d.ts +0 -3
  128. package/dist/types/elsie/src/components/InputPassword/InputPassword.d.ts +0 -19
  129. package/dist/types/elsie/src/components/InputPassword/PasswordStatusIndicator/PasswordStatusIndicator.d.ts +0 -18
  130. package/dist/types/elsie/src/components/InputPassword/PasswordStatusIndicator/index.d.ts +0 -3
  131. package/dist/types/elsie/src/components/InputPassword/index.d.ts +0 -3
  132. package/dist/types/elsie/src/components/Modal/Modal.d.ts +0 -15
  133. package/dist/types/elsie/src/components/Modal/index.d.ts +0 -2
  134. package/dist/types/elsie/src/components/Pagination/Pagination.d.ts +0 -15
  135. package/dist/types/elsie/src/components/Pagination/index.d.ts +0 -3
  136. package/dist/types/elsie/src/components/Picker/Picker.d.ts +0 -28
  137. package/dist/types/elsie/src/components/Picker/index.d.ts +0 -2
  138. package/dist/types/elsie/src/components/Price/Price.d.ts +0 -17
  139. package/dist/types/elsie/src/components/Price/index.d.ts +0 -2
  140. package/dist/types/elsie/src/components/PriceRange/PriceRange.d.ts +0 -17
  141. package/dist/types/elsie/src/components/PriceRange/index.d.ts +0 -3
  142. package/dist/types/elsie/src/components/ProgressSpinner/ProgressSpinner.d.ts +0 -14
  143. package/dist/types/elsie/src/components/ProgressSpinner/index.d.ts +0 -3
  144. package/dist/types/elsie/src/components/RadioButton/RadioButton.d.ts +0 -16
  145. package/dist/types/elsie/src/components/RadioButton/index.d.ts +0 -3
  146. package/dist/types/elsie/src/components/Skeleton/Skeleton.d.ts +0 -17
  147. package/dist/types/elsie/src/components/Skeleton/index.d.ts +0 -2
  148. package/dist/types/elsie/src/components/Tag/Tag.d.ts +0 -9
  149. package/dist/types/elsie/src/components/Tag/index.d.ts +0 -3
  150. package/dist/types/elsie/src/components/TextArea/TextArea.d.ts +0 -11
  151. package/dist/types/elsie/src/components/TextArea/index.d.ts +0 -3
  152. package/dist/types/elsie/src/components/TextSwatch/TextSwatch.d.ts +0 -18
  153. package/dist/types/elsie/src/components/TextSwatch/index.d.ts +0 -3
  154. package/dist/types/elsie/src/components/ToggleButton/ToggleButton.d.ts +0 -14
  155. package/dist/types/elsie/src/components/ToggleButton/index.d.ts +0 -3
  156. package/dist/types/elsie/src/components/UIProvider/UIProvider.d.ts +0 -19
  157. package/dist/types/elsie/src/components/UIProvider/index.d.ts +0 -2
  158. package/dist/types/elsie/src/components/index.d.ts +0 -41
  159. package/dist/types/elsie/src/i18n/en_US.json.d.ts +0 -149
  160. package/dist/types/elsie/src/i18n/index.d.ts +0 -443
  161. package/dist/types/elsie/src/icons/index.d.ts +0 -43
  162. package/dist/types/elsie/src/lib/classes.d.ts +0 -6
  163. package/dist/types/elsie/src/lib/config.d.ts +0 -7
  164. package/dist/types/elsie/src/lib/debounce.d.ts +0 -2
  165. package/dist/types/elsie/src/lib/deepmerge.d.ts +0 -5
  166. package/dist/types/elsie/src/lib/deviceUtils.d.ts +0 -2
  167. package/dist/types/elsie/src/lib/form-values.d.ts +0 -5
  168. package/dist/types/elsie/src/lib/i18n.d.ts +0 -8
  169. package/dist/types/elsie/src/lib/image-params-keymap.d.ts +0 -4
  170. package/dist/types/elsie/src/lib/index.d.ts +0 -16
  171. package/dist/types/elsie/src/lib/initializer.d.ts +0 -81
  172. package/dist/types/elsie/src/lib/is-number.d.ts +0 -2
  173. package/dist/types/elsie/src/lib/render.d.ts +0 -42
  174. package/dist/types/elsie/src/lib/resolve-image.d.ts +0 -10
  175. package/dist/types/elsie/src/lib/signals.d.ts +0 -2
  176. package/dist/types/elsie/src/lib/slot.d.ts +0 -45
  177. package/dist/types/elsie/src/lib/tests.d.ts +0 -5
  178. package/dist/types/elsie/src/lib/types.d.ts +0 -10
  179. package/dist/types/elsie/src/lib/vcomponent.d.ts +0 -9
  180. package/dist/types/event-bus/src/events-catalog.d.ts +0 -16
  181. package/dist/types/event-bus/src/index.d.ts +0 -53
  182. package/dist/types/fetch-graphql/src/index.d.ts +0 -105
  183. package/dist/types/recaptcha/src/configs/index.d.ts +0 -4
  184. package/dist/types/recaptcha/src/configs/message.config.d.ts +0 -8
  185. package/dist/types/recaptcha/src/configs/recaptchaBadgeSelector.config.d.ts +0 -2
  186. package/dist/types/recaptcha/src/configs/typeForms.config.d.ts +0 -2
  187. package/dist/types/recaptcha/src/graphql/recaptchaConfig.graphql.d.ts +0 -2
  188. package/dist/types/recaptcha/src/index.d.ts +0 -42
  189. package/dist/types/recaptcha/src/lib/_checkRecaptchaBadge.d.ts +0 -2
  190. package/dist/types/recaptcha/src/lib/_convertKeysToCamelCase.d.ts +0 -6
  191. package/dist/types/recaptcha/src/lib/_extendConfig.d.ts +0 -4
  192. package/dist/types/recaptcha/src/lib/_storageConfig.d.ts +0 -6
  193. package/dist/types/recaptcha/src/lib/index.d.ts +0 -5
  194. package/dist/types/recaptcha/src/services/recaptcha.service.d.ts +0 -6
@@ -1,3 +0,0 @@
1
- export * from './Divider';
2
- export { Divider as default } from './Divider';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1,14 +0,0 @@
1
- import { FunctionComponent, VNode } from 'preact';
2
- import { HTMLAttributes } from 'preact/compat';
3
-
4
- export interface FieldProps extends Omit<HTMLAttributes<HTMLDivElement>, 'size'> {
5
- label?: string;
6
- error?: string;
7
- hint?: string;
8
- success?: string;
9
- disabled?: boolean;
10
- children?: VNode;
11
- size?: 'medium' | 'large';
12
- }
13
- export declare const Field: FunctionComponent<FieldProps>;
14
- //# sourceMappingURL=Field.d.ts.map
@@ -1,2 +0,0 @@
1
- export * from './Field';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1,11 +0,0 @@
1
- import { FunctionComponent, VNode } from 'preact';
2
- import { HTMLAttributes } from 'preact/compat';
3
-
4
- export interface HeaderProps extends HTMLAttributes<HTMLDivElement> {
5
- title: string;
6
- size?: 'medium' | 'large';
7
- divider?: boolean;
8
- cta?: VNode;
9
- }
10
- export declare const Header: FunctionComponent<HeaderProps>;
11
- //# sourceMappingURL=Header.d.ts.map
@@ -1,3 +0,0 @@
1
- export * from './Header';
2
- export { Header as default } from './Header';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1,18 +0,0 @@
1
- import { FunctionComponent } from 'preact';
2
- import { SVGProps } from 'preact/compat';
3
-
4
- export type IconType = keyof typeof import('@adobe-commerce/elsie/icons');
5
- export interface IconProps extends Omit<SVGProps<SVGSVGElement>, 'size'> {
6
- source: FunctionComponent<SVGProps<SVGSVGElement> & {
7
- title?: string;
8
- }> | IconType;
9
- size?: '12' | '16' | '24' | '32' | '64' | '80';
10
- stroke?: '1' | '2' | '3' | '4';
11
- className?: string;
12
- title?: string;
13
- }
14
- export type IconNode = FunctionComponent<SVGProps<SVGSVGElement> & {
15
- title?: string;
16
- }>;
17
- export declare function Icon({ source: Source, size, stroke, viewBox, className, ...props }: IconProps): import("preact").JSX.Element;
18
- //# sourceMappingURL=Icon.d.ts.map
@@ -1,2 +0,0 @@
1
- export * from './Icon';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1,13 +0,0 @@
1
- import { FunctionComponent, VNode } from 'preact';
2
- import { HTMLAttributes } from 'preact/compat';
3
-
4
- export interface IllustratedMessageProps extends Omit<HTMLAttributes<HTMLDivElement>, 'icon' | 'action'> {
5
- icon?: VNode<HTMLAttributes<SVGSVGElement>>;
6
- heading?: string;
7
- headingLevel?: 1 | 2 | 3 | 4 | 5 | 6;
8
- message?: VNode<HTMLAttributes<HTMLElement>>;
9
- action?: VNode;
10
- variant?: 'primary' | 'secondary';
11
- }
12
- export declare const IllustratedMessage: FunctionComponent<IllustratedMessageProps>;
13
- //# sourceMappingURL=IllustratedMessage.d.ts.map
@@ -1,3 +0,0 @@
1
- export * from './IllustratedMessage';
2
- export { IllustratedMessage as default } from './IllustratedMessage';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1,11 +0,0 @@
1
- import { FunctionComponent } from 'preact';
2
- import { HTMLAttributes } from 'preact/compat';
3
- import { ResolveImageUrlOptions } from '../../lib';
4
-
5
- export interface ImageProps extends HTMLAttributes<HTMLDivElement> {
6
- params?: ResolveImageUrlOptions;
7
- src: string;
8
- onLoad?: (e: any) => void;
9
- }
10
- export declare const Image: FunctionComponent<ImageProps>;
11
- //# sourceMappingURL=Image.d.ts.map
@@ -1,2 +0,0 @@
1
- export * from './Image';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1,20 +0,0 @@
1
- import { FunctionComponent } from 'preact';
2
- import { HTMLAttributes } from 'preact/compat';
3
-
4
- export interface ImageSwatchProps extends Omit<HTMLAttributes<HTMLInputElement>, 'label'> {
5
- name?: string;
6
- label?: string;
7
- groupAriaLabel?: string;
8
- id?: string;
9
- src: string;
10
- alt?: string;
11
- value?: string;
12
- disabled?: boolean;
13
- selected?: boolean;
14
- outOfStock?: boolean;
15
- multi?: boolean;
16
- onValue?: (value: any) => void;
17
- onUpdateError?: (error: Error) => void;
18
- }
19
- export declare const ImageSwatch: FunctionComponent<ImageSwatchProps>;
20
- //# sourceMappingURL=ImageSwatch.d.ts.map
@@ -1,3 +0,0 @@
1
- export * from './ImageSwatch';
2
- export { ImageSwatch as default } from './ImageSwatch';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1,19 +0,0 @@
1
- import { FunctionComponent, VNode } from 'preact';
2
- import { HTMLAttributes } from 'preact/compat';
3
-
4
- export interface InLineAlertProps extends Omit<HTMLAttributes<HTMLDivElement>, 'icon'> {
5
- variant?: 'primary' | 'secondary';
6
- heading: string;
7
- description?: string;
8
- type?: 'error' | 'warning' | 'success';
9
- icon?: VNode<HTMLAttributes<SVGSVGElement>>;
10
- additionalActions?: Array<{
11
- label: string;
12
- onClick: (event: Event) => void;
13
- }>;
14
- onDismiss?: (event: Event) => void;
15
- itemList?: VNode;
16
- actionButtonPosition?: 'top' | 'bottom';
17
- }
18
- export declare const InLineAlert: FunctionComponent<InLineAlertProps>;
19
- //# sourceMappingURL=InLineAlert.d.ts.map
@@ -1,3 +0,0 @@
1
- export * from './InLineAlert';
2
- export { InLineAlert as default } from './InLineAlert';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1,17 +0,0 @@
1
- import { FunctionComponent } from 'preact';
2
- import { HTMLAttributes } from 'preact/compat';
3
-
4
- export interface IncrementerProps extends Omit<HTMLAttributes<HTMLInputElement>, 'size'> {
5
- name?: string;
6
- size?: 'medium' | 'large';
7
- onValue?: (value: any) => void;
8
- onUpdateError?: (error: Error) => void;
9
- error?: boolean;
10
- success?: boolean;
11
- min?: number;
12
- max?: number;
13
- disabled?: boolean;
14
- maxLength?: number;
15
- }
16
- export declare const Incrementer: FunctionComponent<IncrementerProps>;
17
- //# sourceMappingURL=Incrementer.d.ts.map
@@ -1,2 +0,0 @@
1
- export * from './Incrementer';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1,19 +0,0 @@
1
- import { FunctionComponent, VNode } from 'preact';
2
- import { HTMLAttributes } from 'preact/compat';
3
-
4
- export interface InputProps extends Omit<HTMLAttributes<HTMLInputElement>, 'size' | 'icon'> {
5
- id?: string;
6
- name?: string;
7
- variant?: 'primary' | 'secondary';
8
- disabled?: boolean;
9
- error?: boolean;
10
- floatingLabel?: string;
11
- onUpdateError?: (error: Error) => void;
12
- onValue?: (value: any) => void;
13
- size?: 'medium' | 'large';
14
- success?: boolean;
15
- icon?: VNode<HTMLAttributes<SVGSVGElement>>;
16
- maxLength?: number;
17
- }
18
- export declare const Input: FunctionComponent<InputProps>;
19
- //# sourceMappingURL=Input.d.ts.map
@@ -1,3 +0,0 @@
1
- export * from './Input';
2
- export { Input as default } from '.';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1,11 +0,0 @@
1
- import { FunctionComponent } from 'preact';
2
- import { InputProps } from '..';
3
-
4
- export interface InputDateProps extends Omit<InputProps, 'error' | 'value'> {
5
- label?: string;
6
- name?: string;
7
- error?: string;
8
- value?: Date;
9
- }
10
- export declare const InputDate: FunctionComponent<InputDateProps>;
11
- //# sourceMappingURL=InputDate.d.ts.map
@@ -1,3 +0,0 @@
1
- export * from './InputDate';
2
- export { InputDate as default } from './InputDate';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1,19 +0,0 @@
1
- import { FunctionComponent } from 'preact';
2
- import { PasswordStatusIndicatorProps } from './PasswordStatusIndicator';
3
- import { HTMLAttributes } from 'preact/compat';
4
-
5
- export interface InputPasswordProps extends PasswordStatusIndicatorProps, Omit<HTMLAttributes<HTMLDivElement>, 'minLength'> {
6
- placeholder?: string;
7
- floatingLabel?: string;
8
- defaultValue?: string;
9
- className?: string;
10
- name?: string;
11
- autoComplete?: string;
12
- errorMessage?: string | undefined;
13
- required?: boolean;
14
- hideStatusIndicator?: boolean;
15
- onValue?: (value: any) => void;
16
- onBlur?: (event: Event) => void;
17
- }
18
- export declare const InputPassword: FunctionComponent<InputPasswordProps>;
19
- //# sourceMappingURL=InputPassword.d.ts.map
@@ -1,18 +0,0 @@
1
- import { FunctionComponent } from 'preact';
2
- import { HTMLAttributes } from 'preact/compat';
3
-
4
- type statusTypes = '' | 'success' | 'error' | 'pending';
5
- export interface ValidateLengthConfigProps {
6
- status?: statusTypes;
7
- icon?: statusTypes;
8
- message?: string;
9
- }
10
- export interface PasswordStatusIndicatorProps {
11
- validateLengthConfig?: ValidateLengthConfigProps;
12
- uniqueSymbolsStatus?: statusTypes;
13
- minLength?: number;
14
- requiredCharacterClasses?: number;
15
- }
16
- export declare const PasswordStatusIndicator: FunctionComponent<PasswordStatusIndicatorProps & HTMLAttributes<HTMLDivElement>>;
17
- export {};
18
- //# sourceMappingURL=PasswordStatusIndicator.d.ts.map
@@ -1,3 +0,0 @@
1
- export * from './PasswordStatusIndicator';
2
- export { PasswordStatusIndicator as default } from './PasswordStatusIndicator';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1,3 +0,0 @@
1
- export * from './InputPassword';
2
- export { InputPassword as default } from './InputPassword';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1,15 +0,0 @@
1
- import { FunctionComponent, HTMLAttributes } from 'preact/compat';
2
- import { VNode } from 'preact';
3
-
4
- export interface ModalProps extends Omit<HTMLAttributes<HTMLDivElement>, 'size' | 'title'> {
5
- size?: 'small' | 'medium' | 'full';
6
- title?: VNode;
7
- centered?: boolean;
8
- onClose?: () => void;
9
- backgroundDim?: boolean;
10
- clickToDismiss?: boolean;
11
- escapeToDismiss?: boolean;
12
- showCloseButton?: boolean;
13
- }
14
- export declare const Modal: FunctionComponent<ModalProps>;
15
- //# sourceMappingURL=Modal.d.ts.map
@@ -1,2 +0,0 @@
1
- export * from './Modal';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1,15 +0,0 @@
1
- import { FunctionComponent } from 'preact';
2
-
3
- export interface PaginationProps {
4
- className?: string;
5
- currentPage?: number;
6
- totalPages?: number;
7
- onChange?: (currentPage: number) => void;
8
- }
9
- export type PaginationList = {
10
- page: number | string;
11
- isActive: boolean;
12
- label: number | string;
13
- };
14
- export declare const Pagination: FunctionComponent<PaginationProps>;
15
- //# sourceMappingURL=Pagination.d.ts.map
@@ -1,3 +0,0 @@
1
- export * from './Pagination';
2
- export { Pagination as default } from './Pagination';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1,28 +0,0 @@
1
- import { FunctionComponent, VNode } from 'preact';
2
- import { HTMLAttributes } from 'preact/compat';
3
-
4
- type PickerValue = string | null;
5
- export interface PickerOption {
6
- value: PickerValue;
7
- text?: string;
8
- icon?: VNode<HTMLAttributes<SVGSVGElement>>;
9
- disabled?: boolean;
10
- }
11
- export interface PickerProps extends Omit<HTMLAttributes<HTMLSelectElement>, 'value' | 'size' | 'icon'> {
12
- id?: string;
13
- name?: string;
14
- value?: PickerValue;
15
- placeholder?: string;
16
- variant?: 'primary' | 'secondary';
17
- size?: 'medium' | 'large';
18
- floatingLabel?: string;
19
- icon?: VNode<HTMLAttributes<SVGSVGElement>>;
20
- options?: PickerOption[];
21
- defaultOption?: PickerOption;
22
- disabled?: boolean;
23
- error?: boolean;
24
- handleSelect?: (event: Event) => void;
25
- }
26
- export declare const Picker: FunctionComponent<PickerProps>;
27
- export {};
28
- //# sourceMappingURL=Picker.d.ts.map
@@ -1,2 +0,0 @@
1
- export * from './Picker';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1,17 +0,0 @@
1
- import { FunctionComponent } from 'preact';
2
- import { HTMLAttributes } from 'preact/compat';
3
-
4
- export interface PriceProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'size'> {
5
- amount?: number;
6
- currency?: string;
7
- locale?: string;
8
- formatOptions?: {
9
- [key: string]: any;
10
- };
11
- variant?: 'default' | 'strikethrough';
12
- weight?: 'bold' | 'normal';
13
- sale?: boolean;
14
- size?: 'small' | 'medium' | 'large';
15
- }
16
- export declare const Price: FunctionComponent<PriceProps>;
17
- //# sourceMappingURL=Price.d.ts.map
@@ -1,2 +0,0 @@
1
- export * from './Price';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1,17 +0,0 @@
1
- import { FunctionComponent } from 'preact';
2
- import { HTMLAttributes } from 'preact/compat';
3
-
4
- export interface PriceRangeProps extends Omit<HTMLAttributes<HTMLDivElement>, 'size'> {
5
- locale?: string;
6
- currency?: string;
7
- amount?: number;
8
- variant?: 'default' | 'strikethrough';
9
- minimumAmount?: number;
10
- maximumAmount?: number;
11
- display?: 'dash' | 'from to' | 'as low as';
12
- size?: 'small' | 'medium' | 'large';
13
- specialPrice?: number;
14
- sale?: boolean;
15
- }
16
- export declare const PriceRange: FunctionComponent<PriceRangeProps>;
17
- //# sourceMappingURL=PriceRange.d.ts.map
@@ -1,3 +0,0 @@
1
- export * from './PriceRange';
2
- export { PriceRange as default } from './PriceRange';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1,14 +0,0 @@
1
- import { FunctionComponent } from 'preact';
2
- import { HTMLAttributes } from 'preact/compat';
3
-
4
- /**
5
- * @param size this is the size of the spinner ranging in [12px, 24px, 36px, 48px]
6
- * @param stroke this is the stroke of the spinner ranging in [1px, 2px, 3px, 4px]
7
- */
8
- export interface ProgressSpinnerProps extends Omit<HTMLAttributes<HTMLDivElement>, 'size'> {
9
- ariaLabel?: string;
10
- size?: 'small' | 'medium' | 'big' | 'large';
11
- stroke?: '1' | '2' | '3' | '4';
12
- }
13
- export declare const ProgressSpinner: FunctionComponent<ProgressSpinnerProps>;
14
- //# sourceMappingURL=ProgressSpinner.d.ts.map
@@ -1,3 +0,0 @@
1
- export * from './ProgressSpinner';
2
- export { ProgressSpinner as default } from './ProgressSpinner';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1,16 +0,0 @@
1
- import { FunctionComponent, VNode } from 'preact';
2
- import { HTMLAttributes } from 'preact/compat';
3
-
4
- export interface RadioButtonProps extends Omit<HTMLAttributes<HTMLInputElement>, 'size' | 'label'> {
5
- label: string | VNode<HTMLAttributes<HTMLElement>>;
6
- name: string;
7
- value: string;
8
- size?: 'medium' | 'large';
9
- checked?: boolean;
10
- disabled?: boolean;
11
- error?: boolean;
12
- description?: string;
13
- busy?: boolean;
14
- }
15
- export declare const RadioButton: FunctionComponent<RadioButtonProps>;
16
- //# sourceMappingURL=RadioButton.d.ts.map
@@ -1,3 +0,0 @@
1
- export * from './RadioButton';
2
- export { RadioButton as default } from './RadioButton';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1,17 +0,0 @@
1
- import { FunctionComponent } from 'preact';
2
- import { HTMLAttributes } from 'preact/compat';
3
-
4
- export interface SkeletonRowProps extends Omit<HTMLAttributes<HTMLDivElement>, 'size'> {
5
- fullWidth?: boolean;
6
- lines?: number;
7
- size?: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
8
- variant?: 'heading' | 'row' | 'empty';
9
- multilineGap?: 'xsmall' | 'small' | 'medium' | 'big' | 'xbig';
10
- children?: string;
11
- }
12
- export declare const SkeletonRow: FunctionComponent<SkeletonRowProps>;
13
- export interface SkeletonProps extends Omit<HTMLAttributes<HTMLDivElement>, 'size'> {
14
- rowGap?: 'xsmall' | 'small' | 'medium' | 'big' | 'xbig';
15
- }
16
- export declare const Skeleton: FunctionComponent<SkeletonProps>;
17
- //# sourceMappingURL=Skeleton.d.ts.map
@@ -1,2 +0,0 @@
1
- export * from './Skeleton';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1,9 +0,0 @@
1
- import { FunctionComponent, VNode } from 'preact';
2
- import { HTMLAttributes } from 'preact/compat';
3
-
4
- export interface TagProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'icon'> {
5
- label?: string;
6
- children?: VNode | VNode[];
7
- }
8
- export declare const Tag: FunctionComponent<TagProps>;
9
- //# sourceMappingURL=Tag.d.ts.map
@@ -1,3 +0,0 @@
1
- export * from './Tag';
2
- export { Tag as default } from './Tag';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1,11 +0,0 @@
1
- import { FunctionComponent } from 'preact';
2
- import { HTMLAttributes } from 'preact/compat';
3
-
4
- export interface TextAreaProps extends HTMLAttributes<HTMLTextAreaElement> {
5
- id?: string;
6
- name?: string;
7
- disabled?: boolean;
8
- errorMessage?: string;
9
- }
10
- export declare const TextArea: FunctionComponent<TextAreaProps>;
11
- //# sourceMappingURL=TextArea.d.ts.map
@@ -1,3 +0,0 @@
1
- export * from './TextArea';
2
- export { TextArea as default } from './TextArea';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1,18 +0,0 @@
1
- import { FunctionComponent } from 'preact';
2
- import { HTMLAttributes } from 'preact/compat';
3
-
4
- export interface TextSwatchProps extends Omit<HTMLAttributes<HTMLInputElement>, 'label'> {
5
- name?: string;
6
- label: string;
7
- groupAriaLabel?: string;
8
- value?: string;
9
- id: string;
10
- disabled?: boolean;
11
- selected?: boolean;
12
- outOfStock?: boolean;
13
- multi?: boolean;
14
- onValue?: (value: any) => void;
15
- onUpdateError?: (error: Error) => void;
16
- }
17
- export declare const TextSwatch: FunctionComponent<TextSwatchProps>;
18
- //# sourceMappingURL=TextSwatch.d.ts.map
@@ -1,3 +0,0 @@
1
- export * from './TextSwatch';
2
- export { TextSwatch as default } from './TextSwatch';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1,14 +0,0 @@
1
- import { FunctionComponent, VNode } from 'preact';
2
- import { HTMLAttributes } from 'preact/compat';
3
-
4
- export interface ToggleButtonProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'icon'> {
5
- label: string;
6
- name: string;
7
- value: string;
8
- selected?: boolean;
9
- onChange?: (value: string) => void;
10
- icon?: VNode<HTMLAttributes<SVGSVGElement>> | VNode<HTMLAttributes<HTMLImageElement>>;
11
- busy?: boolean;
12
- }
13
- export declare const ToggleButton: FunctionComponent<ToggleButtonProps>;
14
- //# sourceMappingURL=ToggleButton.d.ts.map
@@ -1,3 +0,0 @@
1
- export * from './ToggleButton';
2
- export { ToggleButton as default } from './ToggleButton';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1,19 +0,0 @@
1
- import { FunctionComponent } from 'preact';
2
- import { HTMLAttributes } from 'preact/compat';
3
- import { Render } from '../../lib';
4
- import { Lang } from '../../i18n';
5
-
6
- export declare const UIContext: import('preact').Context<{
7
- locale: string;
8
- }>;
9
- type LangDefinitions = {
10
- [key: string]: any;
11
- };
12
- export interface UIProviderProps extends HTMLAttributes<HTMLDivElement> {
13
- lang?: Lang;
14
- langDefinitions?: LangDefinitions;
15
- }
16
- export declare const UIProvider: FunctionComponent<UIProviderProps>;
17
- export declare const provider: Render;
18
- export {};
19
- //# sourceMappingURL=UIProvider.d.ts.map
@@ -1,2 +0,0 @@
1
- export * from './UIProvider';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1,41 +0,0 @@
1
- export * from './Skeleton';
2
- export * from './UIProvider';
3
- export * from './Incrementer';
4
- export * from './Input';
5
- export * from './InputDate';
6
- export * from './InputPassword';
7
- export * from './TextArea';
8
- export * from './Image';
9
- export * from './Divider';
10
- export * from './Icon';
11
- export * from './Price';
12
- export * from './RadioButton';
13
- export * from './Image';
14
- export * from './Divider';
15
- export * from './Icon';
16
- export * from './Button';
17
- export * from './Picker';
18
- export * from './Field';
19
- export * from './ActionButton';
20
- export * from './ActionButtonGroup';
21
- export * from './Card';
22
- export * from './Checkbox';
23
- export * from './ColorSwatch';
24
- export * from './TextSwatch';
25
- export * from './ProgressSpinner';
26
- export * from './ImageSwatch';
27
- export * from './Accordion';
28
- export * from './InLineAlert';
29
- export * from './Modal';
30
- export * from './CartItem';
31
- export * from './CartList';
32
- export * from './PriceRange';
33
- export * from './Breadcrumbs';
34
- export * from './AlertBanner';
35
- export * from './IllustratedMessage';
36
- export * from './ToggleButton';
37
- export * from './Header';
38
- export * from './Tag';
39
- export * from './ContentGrid';
40
- export * from './Pagination';
41
- //# sourceMappingURL=index.d.ts.map