@youversion/design-system-components 0.26.0 → 0.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/index.es.js +2552 -2406
  3. package/dist/index.umd.js +3 -3
  4. package/dist/src/Button/Button.d.ts +4 -2
  5. package/dist/src/Button/Button.d.ts.map +1 -1
  6. package/dist/src/Button/Button.stories.d.ts +3 -0
  7. package/dist/src/Button/Button.stories.d.ts.map +1 -1
  8. package/dist/src/ColorSelect/ColorSelect.d.ts +28 -0
  9. package/dist/src/ColorSelect/ColorSelect.d.ts.map +1 -0
  10. package/dist/src/ColorSelect/ColorSelect.stories.d.ts +7 -0
  11. package/dist/src/ColorSelect/ColorSelect.stories.d.ts.map +1 -0
  12. package/dist/src/ColorSelect/index.d.ts +2 -0
  13. package/dist/src/ColorSelect/index.d.ts.map +1 -0
  14. package/dist/src/EditableWell/EditableWell.d.ts +55 -0
  15. package/dist/src/EditableWell/EditableWell.d.ts.map +1 -0
  16. package/dist/src/EditableWell/EditableWell.stories.d.ts +5 -0
  17. package/dist/src/EditableWell/EditableWell.stories.d.ts.map +1 -0
  18. package/dist/src/EditableWell/index.d.ts +2 -0
  19. package/dist/src/EditableWell/index.d.ts.map +1 -0
  20. package/dist/src/FauxPhone/FauxPhone.d.ts +25 -0
  21. package/dist/src/FauxPhone/FauxPhone.d.ts.map +1 -0
  22. package/dist/src/FauxPhone/FauxPhone.stories.d.ts +8 -0
  23. package/dist/src/FauxPhone/FauxPhone.stories.d.ts.map +1 -0
  24. package/dist/src/FauxPhone/index.d.ts +2 -0
  25. package/dist/src/FauxPhone/index.d.ts.map +1 -0
  26. package/dist/src/FeatureWell/FeatureWell.d.ts +29 -0
  27. package/dist/src/FeatureWell/FeatureWell.d.ts.map +1 -0
  28. package/dist/src/FeatureWell/FeatureWell.stories.d.ts +8 -0
  29. package/dist/src/FeatureWell/FeatureWell.stories.d.ts.map +1 -0
  30. package/dist/src/FeatureWell/FeatureWellButton.d.ts +31 -0
  31. package/dist/src/FeatureWell/FeatureWellButton.d.ts.map +1 -0
  32. package/dist/src/FeatureWell/FeatureWellColumn.d.ts +30 -0
  33. package/dist/src/FeatureWell/FeatureWellColumn.d.ts.map +1 -0
  34. package/dist/src/FeatureWell/FeatureWellImage.d.ts +28 -0
  35. package/dist/src/FeatureWell/FeatureWellImage.d.ts.map +1 -0
  36. package/dist/src/FeatureWell/FeatureWellText.d.ts +31 -0
  37. package/dist/src/FeatureWell/FeatureWellText.d.ts.map +1 -0
  38. package/dist/src/FeatureWell/index.d.ts +6 -0
  39. package/dist/src/FeatureWell/index.d.ts.map +1 -0
  40. package/dist/src/Grid/Column.d.ts +17 -0
  41. package/dist/src/Grid/Column.d.ts.map +1 -0
  42. package/dist/src/Grid/Grid.d.ts +38 -0
  43. package/dist/src/Grid/Grid.d.ts.map +1 -0
  44. package/dist/src/Grid/Grid.stories.d.ts +4 -0
  45. package/dist/src/Grid/Grid.stories.d.ts.map +1 -0
  46. package/dist/src/Grid/Row.d.ts +12 -0
  47. package/dist/src/Grid/Row.d.ts.map +1 -0
  48. package/dist/src/Grid/index.d.ts +4 -0
  49. package/dist/src/Grid/index.d.ts.map +1 -0
  50. package/dist/src/IconButton/IconButton.d.ts +2 -0
  51. package/dist/src/IconButton/IconButton.d.ts.map +1 -1
  52. package/dist/src/IconButton/IconButton.stories.d.ts +3 -0
  53. package/dist/src/IconButton/IconButton.stories.d.ts.map +1 -1
  54. package/dist/src/PopoverBody/PopoverBody.d.ts +1 -1
  55. package/dist/src/PopoverBody/PopoverBody.d.ts.map +1 -1
  56. package/dist/src/SearchableSelect/SearchableSelect.d.ts +33 -0
  57. package/dist/src/SearchableSelect/SearchableSelect.d.ts.map +1 -0
  58. package/dist/src/SearchableSelect/SearchableSelect.stories.d.ts +6 -0
  59. package/dist/src/SearchableSelect/SearchableSelect.stories.d.ts.map +1 -0
  60. package/dist/src/SearchableSelect/index.d.ts +2 -0
  61. package/dist/src/SearchableSelect/index.d.ts.map +1 -0
  62. package/dist/src/TextArea/TextArea.d.ts +43 -0
  63. package/dist/src/TextArea/TextArea.d.ts.map +1 -0
  64. package/dist/src/TextArea/TextArea.stories.d.ts +12 -0
  65. package/dist/src/TextArea/TextArea.stories.d.ts.map +1 -0
  66. package/dist/src/TextArea/index.d.ts +2 -0
  67. package/dist/src/TextArea/index.d.ts.map +1 -0
  68. package/dist/src/Toast/Toast.d.ts +20 -0
  69. package/dist/src/Toast/Toast.d.ts.map +1 -0
  70. package/dist/src/Toast/Toast.stories.d.ts +14 -0
  71. package/dist/src/Toast/Toast.stories.d.ts.map +1 -0
  72. package/dist/src/Toast/index.d.ts +2 -0
  73. package/dist/src/Toast/index.d.ts.map +1 -0
  74. package/dist/src/context/Toast/Toast.d.ts +7 -0
  75. package/dist/src/context/Toast/Toast.d.ts.map +1 -0
  76. package/dist/src/context/Toast/Toast.stories.d.ts +8 -0
  77. package/dist/src/context/Toast/Toast.stories.d.ts.map +1 -0
  78. package/dist/src/context/Toast/Toast.types.d.ts +57 -0
  79. package/dist/src/context/Toast/Toast.types.d.ts.map +1 -0
  80. package/dist/src/hooks/index.d.ts +1 -0
  81. package/dist/src/hooks/index.d.ts.map +1 -1
  82. package/dist/src/hooks/useOnClickOutside.d.ts +32 -0
  83. package/dist/src/hooks/useOnClickOutside.d.ts.map +1 -0
  84. package/dist/src/index.d.ts +7 -0
  85. package/dist/src/index.d.ts.map +1 -1
  86. package/package.json +2 -3
@@ -21,7 +21,7 @@ export declare const iconSizes: {
21
21
  readonly xl: 36;
22
22
  readonly xs: 12;
23
23
  };
24
- export declare const defaultButtonClasses = "items-center leading-default font-bold ease-in-out duration-100 focus:ring-2 focus:ring-info-light dark:focus:ring-info-dark flex w-full max-w-fit h-fit";
24
+ export declare const defaultButtonClasses = "relative overflow-hidden items-center leading-default font-bold ease-in-out duration-100 focus:ring-2 focus:ring-info-light dark:focus:ring-info-dark flex w-full max-w-fit h-fit";
25
25
  export declare const variantClasses: {
26
26
  readonly all_caps: "bg-transparent text-gray-50 dark:text-white hover:text-info-light dark:hover:text-info-dark active:text-blue-40 dark:active:text-blue-20 disabled:opacity-50 disabled:text-gray-50 dark:disabled:text-white uppercase";
27
27
  readonly borderless: "bg-transparent text-gray-50 dark:text-white hover:bg-gray-10 dark:hover:bg-gray-40 disabled:opacity-50 dark:disabled:bg-transparent";
@@ -40,6 +40,8 @@ export interface BaseButtonProps extends Omit<AllHTMLAttributes<HTMLButtonElemen
40
40
  icon?: ElementType;
41
41
  iconAction?: () => void;
42
42
  iconPosition?: IconPosition;
43
+ isLoading?: boolean;
44
+ loadingSpinnerLabel?: string;
43
45
  type?: 'button' | 'submit' | 'reset';
44
46
  }
45
47
  export interface BaseVariants extends BaseButtonProps {
@@ -77,6 +79,6 @@ export type ButtonProps = BaseVariants | AllCapsVariant;
77
79
  * }
78
80
  * ```
79
81
  */
80
- export declare const ButtonComponent: ({ className, children, disabled, icon, iconAction, iconPosition, size, type, variant, ...rest }: ButtonProps, ref: ForwardedRef<HTMLButtonElement>) => JSX.Element;
82
+ export declare const ButtonComponent: ({ className, children, disabled, icon, iconAction, iconPosition, isLoading, loadingSpinnerLabel, size, type, variant, ...rest }: ButtonProps, ref: ForwardedRef<HTMLButtonElement>) => JSX.Element;
81
83
  export declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
82
84
  //# sourceMappingURL=Button.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAiB,WAAW,EAAE,YAAY,EAAc,MAAM,OAAO,CAAC;AAIhG,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,KAAK,GAAG,SAAS,CAAC;AAEvD,eAAO,MAAM,iBAAiB;;;;;;CAMpB,CAAC;AAEX,eAAO,MAAM,oBAAoB,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gBA2CrC,CAAC;AAEF,eAAO,MAAM,MAAM,2GAA8B,CAAC"}
@@ -1,5 +1,8 @@
1
1
  /// <reference types="react" />
2
+ import { StoryFn } from '@storybook/react';
3
+ import { Button } from './Button';
2
4
  declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("./Button").ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
3
5
  export default _default;
4
6
  export declare const Story: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./Button").ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
7
+ export declare const Loading: StoryFn<typeof Button>;
5
8
  //# sourceMappingURL=Button.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button.stories.d.ts","sourceRoot":"","sources":["../../../src/Button/Button.stories.tsx"],"names":[],"mappings":";;AAKA,wBAgCyB;AAQzB,eAAO,MAAM,KAAK,kLAAoB,CAAC"}
1
+ {"version":3,"file":"Button.stories.d.ts","sourceRoot":"","sources":["../../../src/Button/Button.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAQ,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAIjD,OAAO,EAAE,MAAM,EAAqC,MAAM,UAAU,CAAC;;AAErE,wBAgCyB;AAQzB,eAAO,MAAM,KAAK,kLAAoB,CAAC;AASvC,eAAO,MAAM,OAAO,EAAE,OAAO,CAAC,OAAO,MAAM,CAY1C,CAAC"}
@@ -0,0 +1,28 @@
1
+ import React from 'react';
2
+ export interface ColorSelectProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
3
+ /** May add styles around the wrapper div of this component. */
4
+ className?: string;
5
+ /** Boolean that disables the entire color select group. */
6
+ disabled?: boolean;
7
+ /** Enable the reset button when there is a current color selected. */
8
+ enableResetButton?: boolean;
9
+ /** Text to display if there is an error. Turns the border red. */
10
+ error?: string;
11
+ /** Text to display a hint for the user. */
12
+ hint?: string;
13
+ /** Required. Text to display as the label for the color text field. Also displays as the placeholder text if one is not defined. */
14
+ label: string;
15
+ /** Required. Determines the color text field input name. */
16
+ name: string;
17
+ onChange: (value: string) => void;
18
+ /** Placeholder text in the color text field. */
19
+ placeholder?: string;
20
+ /** Aria label for the reset color button. */
21
+ resetAriaLabel?: string;
22
+ /** Value that the reset button should set the value to. */
23
+ resetValue?: string;
24
+ /** Value on the form */
25
+ value: string;
26
+ }
27
+ export declare const ColorSelect: React.ForwardRefExoticComponent<ColorSelectProps & React.RefAttributes<HTMLInputElement>>;
28
+ //# sourceMappingURL=ColorSelect.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ColorSelect.d.ts","sourceRoot":"","sources":["../../../src/ColorSelect/ColorSelect.tsx"],"names":[],"mappings":"AACA,OAAO,KAAoF,MAAM,OAAO,CAAC;AAIzG,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,UAAU,CAAC;IACrG,+DAA+D;IAC/D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,sEAAsE;IACtE,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,kEAAkE;IAClE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2CAA2C;IAC3C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,oIAAoI;IACpI,KAAK,EAAE,MAAM,CAAC;IACd,4DAA4D;IAC5D,IAAI,EAAE,MAAM,CAAC;IAEb,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,gDAAgD;IAChD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,6CAA6C;IAC7C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,2DAA2D;IAC3D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,wBAAwB;IACxB,KAAK,EAAE,MAAM,CAAC;CACf;AA0HD,eAAO,MAAM,WAAW,2FAAmC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("./ColorSelect").ColorSelectProps & React.RefAttributes<HTMLInputElement>>;
3
+ export default _default;
4
+ export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./ColorSelect").ColorSelectProps & React.RefAttributes<HTMLInputElement>>;
5
+ export declare const Disabled: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./ColorSelect").ColorSelectProps & React.RefAttributes<HTMLInputElement>>;
6
+ export declare const WithError: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./ColorSelect").ColorSelectProps & React.RefAttributes<HTMLInputElement>>;
7
+ //# sourceMappingURL=ColorSelect.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ColorSelect.stories.d.ts","sourceRoot":"","sources":["../../../src/ColorSelect/ColorSelect.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;;AAI1B,wBAmB8B;AAgB9B,eAAO,MAAM,OAAO,iLAAoB,CAAC;AAGzC,eAAO,MAAM,QAAQ,iLAAoB,CAAC;AAG1C,eAAO,MAAM,SAAS,iLAAoB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './ColorSelect';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ColorSelect/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
@@ -0,0 +1,55 @@
1
+ import React from 'react';
2
+ import { BoxProps } from '../Box';
3
+ import { HeadlineVariant } from '../Typography/Typography';
4
+ interface EditableWellBase extends BoxProps {
5
+ /** ARIA Edit Icon Label. */
6
+ editIconLabel?: string;
7
+ /** Used to override the default component type of `a`. */
8
+ editLinkComponent?: React.ElementType;
9
+ /** Title of the EditableWell. */
10
+ title?: string;
11
+ /** Heading level of the title. */
12
+ titleSize?: HeadlineVariant['size'];
13
+ }
14
+ interface EditableWellWithOnClick extends EditableWellBase {
15
+ /** Where the edit button should direct the user. */
16
+ href?: never;
17
+ /** Function to run when Edit Icon is clicked. */
18
+ onClick: () => void;
19
+ }
20
+ interface EditableWellWithHref extends EditableWellBase {
21
+ /** Where the edit button should direct the user. */
22
+ href: string;
23
+ /** Function to run when Edit Icon is clicked. */
24
+ onClick?: never;
25
+ }
26
+ interface EditableWellWithoutButton extends EditableWellBase {
27
+ /** Where the edit button should direct the user. */
28
+ href?: never;
29
+ /** Function to run when Edit Icon is clicked. */
30
+ onClick?: never;
31
+ }
32
+ export type EditableWellProps = EditableWellWithHref | EditableWellWithOnClick | EditableWellWithoutButton;
33
+ /**
34
+ * A specialized container that calls out content that can be modified. Any modifiable content should be added as `children` of the `EditableWell` component.
35
+ *
36
+ * Accepts {@link EditableWellProps}.
37
+ *
38
+ * @example
39
+ * ```tsx
40
+ * import { EditableWell } from '@youversion/design-system-components';
41
+ *
42
+ * function MyComponent() {
43
+ * return (
44
+ * <EditableWell href="https://bible.com" title="Superheroes: A Retrospective">
45
+ * <Text>
46
+ * "You're saying there's a multiverse?"
47
+ * </Text>
48
+ * </EditableWell>
49
+ * );
50
+ * }
51
+ * ```
52
+ */
53
+ export declare const EditableWell: React.ForwardRefExoticComponent<EditableWellProps & React.RefAttributes<HTMLDivElement>>;
54
+ export {};
55
+ //# sourceMappingURL=EditableWell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EditableWell.d.ts","sourceRoot":"","sources":["../../../src/EditableWell/EditableWell.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmC,MAAM,OAAO,CAAC;AAExD,OAAO,EAAO,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAIvC,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAG3D,UAAU,gBAAiB,SAAQ,QAAQ;IACzC,4BAA4B;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,0DAA0D;IAC1D,iBAAiB,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACtC,iCAAiC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kCAAkC;IAClC,SAAS,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;CACrC;AAED,UAAU,uBAAwB,SAAQ,gBAAgB;IACxD,oDAAoD;IACpD,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,iDAAiD;IACjD,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,UAAU,oBAAqB,SAAQ,gBAAgB;IACrD,oDAAoD;IACpD,IAAI,EAAE,MAAM,CAAC;IACb,iDAAiD;IACjD,OAAO,CAAC,EAAE,KAAK,CAAC;CACjB;AAED,UAAU,yBAA0B,SAAQ,gBAAgB;IAC1D,oDAAoD;IACpD,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,iDAAiD;IACjD,OAAO,CAAC,EAAE,KAAK,CAAC;CACjB;AAED,MAAM,MAAM,iBAAiB,GAAG,oBAAoB,GAAG,uBAAuB,GAAG,yBAAyB,CAAC;AA0D3G;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,YAAY,0FAAoC,CAAC"}
@@ -0,0 +1,5 @@
1
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("./EditableWell").EditableWellProps & import("react").RefAttributes<HTMLDivElement>>;
2
+ export default _default;
3
+ export declare function WithEditButton(): JSX.Element;
4
+ export declare function WithEditLink(): JSX.Element;
5
+ //# sourceMappingURL=EditableWell.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EditableWell.stories.d.ts","sourceRoot":"","sources":["../../../src/EditableWell/EditableWell.stories.tsx"],"names":[],"mappings":";AAKA,wBAA0G;AAE1G,wBAAgB,cAAc,gBAM7B;AAED,wBAAgB,YAAY,gBAM3B"}
@@ -0,0 +1,2 @@
1
+ export * from './EditableWell';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/EditableWell/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { AllHTMLAttributes } from 'react';
2
+ export interface FauxPhoneProps extends Omit<AllHTMLAttributes<HTMLDivElement>, 'width' | 'height' | 'color'> {
3
+ }
4
+ /**
5
+ * The **FauxPhone** component displays its children within a phone-like frame.
6
+ *
7
+ * Accepts {@link FauxPhoneProps}.
8
+ *
9
+ * @example
10
+ * ```tsx
11
+ * import { FauxPhone } from '@youversion/design-system-components'
12
+ *
13
+ * function MyComponent() {
14
+ * return (
15
+ * <>
16
+ * <FauxPhone>
17
+ * <img alt='screenshot' className='h-full' src='https://picsum.photos/id/484/320/620' />
18
+ * </FauxPhone>
19
+ * </>
20
+ * );
21
+ * }
22
+ * ```
23
+ */
24
+ export declare const FauxPhone: import("react").ForwardRefExoticComponent<FauxPhoneProps & import("react").RefAttributes<HTMLDivElement>>;
25
+ //# sourceMappingURL=FauxPhone.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FauxPhone.d.ts","sourceRoot":"","sources":["../../../src/FauxPhone/FauxPhone.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAA4B,MAAM,OAAO,CAAC;AAKpE,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,iBAAiB,CAAC,cAAc,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;CAAG;AAgBhH;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,SAAS,2GAAiC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ import { FauxPhone, FauxPhoneProps } from './FauxPhone';
3
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, FauxPhoneProps & import("react").RefAttributes<HTMLDivElement>>;
4
+ export default _default;
5
+ type Story = StoryObj<typeof FauxPhone>;
6
+ export declare const Empty: Story;
7
+ export declare function WithImage(props: FauxPhoneProps): JSX.Element;
8
+ //# sourceMappingURL=FauxPhone.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FauxPhone.stories.d.ts","sourceRoot":"","sources":["../../../src/FauxPhone/FauxPhone.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;;AAExD,wBAK4B;AAE5B,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,SAAS,CAAC,CAAC;AAExC,eAAO,MAAM,KAAK,EAAE,KAAU,CAAC;AAE/B,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,eAO9C"}
@@ -0,0 +1,2 @@
1
+ export * from './FauxPhone';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/FauxPhone/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
@@ -0,0 +1,29 @@
1
+ import React, { HTMLAttributes } from 'react';
2
+ export interface FeatureWellProps extends HTMLAttributes<HTMLElement> {
3
+ children: React.ReactNode;
4
+ className?: string;
5
+ }
6
+ /**
7
+ *The Feature Well highlights a feature by bringing vision and clarity to its value.
8
+ *
9
+ * @example
10
+ * import { FeatureWell } from '@youversion/design-system';
11
+ *
12
+ * export const Example = () => {
13
+ * return (
14
+ * <FeatureWell>
15
+ * <FeatureWellColumn>
16
+ * <FeatureWellText>
17
+ * Continue to customize your Church Profile by adding your Church Leader's name and photo.
18
+ * </FeatureWellText>
19
+ * <FeatureWellButton>Add Church Leader</FeatureWellButton>
20
+ * </FeatureWellColumn>
21
+ * <FeatureWellColumn>
22
+ * <FeatureWellImage alt='This is image' src='' />
23
+ * </FeatureWellColumn>
24
+ * </FeatureWell>
25
+ * );
26
+ * };
27
+ */
28
+ export declare const FeatureWell: ({ children, className, ...rest }: FeatureWellProps) => JSX.Element;
29
+ //# sourceMappingURL=FeatureWell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FeatureWell.d.ts","sourceRoot":"","sources":["../../../src/FeatureWell/FeatureWell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAI9C,MAAM,WAAW,gBAAiB,SAAQ,cAAc,CAAC,WAAW,CAAC;IACnE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,WAAW,qCAAsC,gBAAgB,gBAY7E,CAAC"}
@@ -0,0 +1,8 @@
1
+ declare const _default: {
2
+ component: ({ children, className, ...rest }: import("./FeatureWell").FeatureWellProps) => JSX.Element;
3
+ title: string;
4
+ };
5
+ export default _default;
6
+ export declare const Default: () => JSX.Element;
7
+ export declare const FeatureBanner: () => JSX.Element;
8
+ //# sourceMappingURL=FeatureWell.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FeatureWell.stories.d.ts","sourceRoot":"","sources":["../../../src/FeatureWell/FeatureWell.stories.tsx"],"names":[],"mappings":";;;;AAMA,wBAGE;AAEF,eAAO,MAAM,OAAO,mBASnB,CAAC;AAEF,eAAO,MAAM,aAAa,mBAczB,CAAC"}
@@ -0,0 +1,31 @@
1
+ import { LabelVariant } from '../Typography/Typography';
2
+ export interface FeatureWellButtonProps {
3
+ children: string;
4
+ className?: string;
5
+ size?: LabelVariant['size'];
6
+ }
7
+ /**
8
+ * The **FeatureWellButton** component is to be used inside of the **FeatureWell** component. This is the button rendered in
9
+ * FeatureWell component.
10
+ *
11
+ * Accepts {@link FeatureWellButtonProps}.
12
+ *
13
+ * @returns Renders the button for a FeatureWell.
14
+ *
15
+ * @example
16
+ * ```tsx
17
+ * import { FeatureWell, FeatureWellButton } from '@youversion/design-system-components';
18
+ *
19
+ * function MyComponent() {
20
+ * return (
21
+ * <FeatureWell>
22
+ * <FeatureWellButton>
23
+ * Button
24
+ * </FeatureWellButton>
25
+ * </FeatureWell>
26
+ * )
27
+ * }
28
+ * ```
29
+ */
30
+ export declare const FeatureWellButton: ({ children, className, size }: FeatureWellButtonProps) => JSX.Element;
31
+ //# sourceMappingURL=FeatureWellButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FeatureWellButton.d.ts","sourceRoot":"","sources":["../../../src/FeatureWell/FeatureWellButton.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;CAC7B;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,iBAAiB,kCAA0C,sBAAsB,gBAQ7F,CAAC"}
@@ -0,0 +1,30 @@
1
+ import React, { HTMLAttributes } from 'react';
2
+ export interface FeatureWellColumnProps extends HTMLAttributes<HTMLElement> {
3
+ children: React.ReactNode;
4
+ className?: string;
5
+ }
6
+ /**
7
+ * The **FeatureWellColumn** component is to be used inside of the **FeatureWell** component. This is the column rendered in
8
+ * FeatureWell component.
9
+ *
10
+ * Accepts {@link FeatureWellColumnProps}.
11
+ *
12
+ * @returns Renders the column for a FeatureWell.
13
+ *
14
+ * @example
15
+ * import { FeaturedWell, FeatureWellColumn, FeatureWellText } from '@youversion/design-system';
16
+ *
17
+ * export const Example = () => {
18
+ * return (
19
+ * <FeaturedWell>
20
+ * <FeatureWellColumn>
21
+ * <FeatureWellText>
22
+ * Continue to customize your Church Profile by adding your Church Leader's name and photo.
23
+ * </FeatureWellText>
24
+ * </FeatureWellColumn>
25
+ * </FeaturedWell>
26
+ * );
27
+ * };
28
+ */
29
+ export declare const FeatureWellColumn: ({ children, ...rest }: FeatureWellColumnProps) => JSX.Element;
30
+ //# sourceMappingURL=FeatureWellColumn.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FeatureWellColumn.d.ts","sourceRoot":"","sources":["../../../src/FeatureWell/FeatureWellColumn.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE9C,MAAM,WAAW,sBAAuB,SAAQ,cAAc,CAAC,WAAW,CAAC;IACzE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,iBAAiB,0BAA2B,sBAAsB,gBAM9E,CAAC"}
@@ -0,0 +1,28 @@
1
+ export interface FeatureWellImageProps {
2
+ alt?: string;
3
+ className?: string;
4
+ src: string;
5
+ }
6
+ /**
7
+ * The **FeatureWellImage** component is to be used inside of the **FeatureWell** component. This is the image rendered for
8
+ * FeatureWell.
9
+ *
10
+ * Accepts {@link FeatureWellImageProps}.
11
+ *
12
+ * @returns Renders the image for a FeatureWellImage.
13
+ *
14
+ * @example
15
+ * ```tsx
16
+ * import { FeatureWell, FeatureWellImage } from '@youversion/design-system-components';
17
+ *
18
+ * function MyComponent() {
19
+ * return (
20
+ * <FeatureWell>
21
+ * <FeatureWellImage alt="Image" src={path} />
22
+ * </FeatureWell>
23
+ * )
24
+ * }
25
+ * ```
26
+ */
27
+ export declare const FeatureWellImage: ({ alt, className, src }: FeatureWellImageProps) => JSX.Element;
28
+ //# sourceMappingURL=FeatureWellImage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FeatureWellImage.d.ts","sourceRoot":"","sources":["../../../src/FeatureWell/FeatureWellImage.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,qBAAqB;IACpC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;CACb;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,gBAAgB,4BAA6B,qBAAqB,gBAM9E,CAAC"}
@@ -0,0 +1,31 @@
1
+ import { LabelVariant } from '../Typography/Typography';
2
+ export interface FeatureWellTextProps {
3
+ children: string;
4
+ className?: string;
5
+ size?: LabelVariant['size'];
6
+ }
7
+ /**
8
+ * The **FeatureWellText** component is to be used inside of the **FeatureWell** component. This is the text rendered for
9
+ * FeatureWell component.
10
+ *
11
+ * Accepts {@link FeatureWellTextProps}.
12
+ *
13
+ * @returns Renders the text for a FeatureWell.
14
+ *
15
+ * @example
16
+ * ```tsx
17
+ * import { FeatureWell, FeatureWellText } from '@youversion/design-system-components';
18
+ *
19
+ * function MyComponent() {
20
+ * return (
21
+ * <FeatureWell>
22
+ * <FeatureWellText>
23
+ * FeatureWell text
24
+ * </FeatureWellText>
25
+ * </FeatureWell>
26
+ * )
27
+ * }
28
+ * ```
29
+ */
30
+ export declare const FeatureWellText: ({ children, className, size }: FeatureWellTextProps) => JSX.Element;
31
+ //# sourceMappingURL=FeatureWellText.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FeatureWellText.d.ts","sourceRoot":"","sources":["../../../src/FeatureWell/FeatureWellText.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAGxD,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;CAC7B;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,eAAe,kCAA0C,oBAAoB,gBAQzF,CAAC"}
@@ -0,0 +1,6 @@
1
+ export * from './FeatureWell';
2
+ export * from './FeatureWellButton';
3
+ export * from './FeatureWellColumn';
4
+ export * from './FeatureWellImage';
5
+ export * from './FeatureWellText';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/FeatureWell/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { ClassValue } from 'clsx';
2
+ import { ReactNode } from 'react';
3
+ interface Props {
4
+ align?: 'fill' | 'start' | 'center' | 'end';
5
+ children: ReactNode;
6
+ className?: ClassValue;
7
+ start?: number;
8
+ width?: number;
9
+ }
10
+ /**
11
+ * Represents a Column within a **Row** of a **Grid**.
12
+ *
13
+ * Accepts {@link Props}.
14
+ */
15
+ export declare const Column: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<HTMLDivElement>>;
16
+ export {};
17
+ //# sourceMappingURL=Column.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Column.d.ts","sourceRoot":"","sources":["../../../src/Grid/Column.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAA4B,SAAS,EAAE,MAAM,OAAO,CAAC;AAI5D,UAAU,KAAK;IACb,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IAC5C,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAqBD;;;;GAIG;AACH,eAAO,MAAM,MAAM,kGAA8B,CAAC"}
@@ -0,0 +1,38 @@
1
+ import { Spacing } from '@youversion/design-system-tokens';
2
+ import { AllHTMLAttributes } from 'react';
3
+ type RowSpacingType = `gap-y-${Spacing}`;
4
+ export interface GridProps extends AllHTMLAttributes<HTMLDivElement> {
5
+ rowSpacing?: RowSpacingType;
6
+ }
7
+ /**
8
+ * A **Grid** is a layout component that arranges its children into rows and columns.
9
+ *
10
+ * Accepts {@link GridProps}.
11
+ *
12
+ * @example
13
+ * ```tsx
14
+ * import { Grid, Row, Column } from '@youversion/design-system-components';
15
+ *
16
+ * function MyComponent() {
17
+ * return (
18
+ * <>
19
+ * <Grid>
20
+ * <Row>
21
+ * <Column>
22
+ * <span>Row 1, Column 1</span>
23
+ * </Column>
24
+ * </Row>
25
+ * <Row>
26
+ * <Column start={3} width={3}>
27
+ * <span>Row 2, Column 3 - 5</span>
28
+ * </Column>
29
+ * </Row>
30
+ * </Grid>
31
+ * </>
32
+ * );
33
+ * }
34
+ * ```
35
+ */
36
+ export declare const Grid: import("react").ForwardRefExoticComponent<GridProps & import("react").RefAttributes<HTMLDivElement>>;
37
+ export {};
38
+ //# sourceMappingURL=Grid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Grid.d.ts","sourceRoot":"","sources":["../../../src/Grid/Grid.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAA4B,MAAM,OAAO,CAAC;AAIpE,KAAK,cAAc,GAAG,SAAS,OAAO,EAAE,CAAC;AAEzC,MAAM,WAAW,SAAU,SAAQ,iBAAiB,CAAC,cAAc,CAAC;IAClE,UAAU,CAAC,EAAE,cAAc,CAAC;CAC7B;AAiBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,IAAI,sGAA4B,CAAC"}
@@ -0,0 +1,4 @@
1
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("./Grid").GridProps & import("react").RefAttributes<HTMLDivElement>>;
2
+ export default _default;
3
+ export declare const Story: () => JSX.Element;
4
+ //# sourceMappingURL=Grid.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Grid.stories.d.ts","sourceRoot":"","sources":["../../../src/Grid/Grid.stories.tsx"],"names":[],"mappings":";AAOA,wBAGuB;AAavB,eAAO,MAAM,KAAK,mBAkDjB,CAAC"}
@@ -0,0 +1,12 @@
1
+ import React, { AllHTMLAttributes } from 'react';
2
+ interface Props extends AllHTMLAttributes<HTMLDivElement> {
3
+ children: React.ReactNode;
4
+ }
5
+ /**
6
+ * Represents a row within a **Grid**.
7
+ *
8
+ * Accepts {@link Props}.
9
+ */
10
+ export declare const Row: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
11
+ export {};
12
+ //# sourceMappingURL=Row.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Row.d.ts","sourceRoot":"","sources":["../../../src/Grid/Row.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAA4B,MAAM,OAAO,CAAC;AAI3E,UAAU,KAAM,SAAQ,iBAAiB,CAAC,cAAc,CAAC;IACvD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAUD;;;;GAIG;AACH,eAAO,MAAM,GAAG,8EAA2B,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from './Column';
2
+ export * from './Grid';
3
+ export * from './Row';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Grid/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC"}
@@ -3,6 +3,8 @@ import { variantClasses } from '../Button';
3
3
  export interface IconButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
4
4
  children: React.ReactNode;
5
5
  disabled?: boolean;
6
+ isLoading?: boolean;
7
+ loadingSpinnerLabel?: string;
6
8
  variant?: keyof typeof variantClasses;
7
9
  }
8
10
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../src/IconButton/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAA4B,MAAM,OAAO,CAAC;AAEvE,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAG3C,MAAM,WAAW,eAAgB,SAAQ,oBAAoB,CAAC,iBAAiB,CAAC;IAC9E,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,OAAO,cAAc,CAAC;CACvC;AAwBD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,UAAU,+GAAkC,CAAC"}
1
+ {"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../src/IconButton/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAA4B,MAAM,OAAO,CAAC;AAEvE,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAI3C,MAAM,WAAW,eAAgB,SAAQ,oBAAoB,CAAC,iBAAiB,CAAC;IAC9E,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,OAAO,cAAc,CAAC;CACvC;AA+CD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,UAAU,+GAAkC,CAAC"}
@@ -1,5 +1,8 @@
1
1
  /// <reference types="react" />
2
+ import { StoryFn } from '@storybook/react';
3
+ import { IconButton } from './IconButton';
2
4
  declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("./IconButton").IconButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
3
5
  export default _default;
4
6
  export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./IconButton").IconButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
7
+ export declare const Loading: StoryFn<typeof IconButton>;
5
8
  //# sourceMappingURL=IconButton.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"IconButton.stories.d.ts","sourceRoot":"","sources":["../../../src/IconButton/IconButton.stories.tsx"],"names":[],"mappings":";;AAMA,wBAuB6B;AAO7B,eAAO,MAAM,OAAO,0LAAoB,CAAC"}
1
+ {"version":3,"file":"IconButton.stories.d.ts","sourceRoot":"","sources":["../../../src/IconButton/IconButton.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAQ,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAKjD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;;AAE1C,wBAuB6B;AAO7B,eAAO,MAAM,OAAO,0LAAoB,CAAC;AAKzC,eAAO,MAAM,OAAO,EAAE,OAAO,CAAC,OAAO,UAAU,CAgB9C,CAAC"}
@@ -1,4 +1,4 @@
1
- import { HTMLAttributes } from 'react';
1
+ import React, { HTMLAttributes } from 'react';
2
2
  export interface PopoverAlign {
3
3
  horizontal: 'start' | 'center' | 'end';
4
4
  vertical: 'top' | 'bottom';
@@ -1 +1 @@
1
- {"version":3,"file":"PopoverBody.d.ts","sourceRoot":"","sources":["../../../src/PopoverBody/PopoverBody.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAU,MAAM,OAAO,CAAC;AAM/C,MAAM,WAAW,YAAY;IAC3B,UAAU,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IACvC,QAAQ,EAAE,KAAK,GAAG,QAAQ,CAAC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react" />
2
+ export interface SearchableSelectOption {
3
+ label: string;
4
+ value: string | number | undefined;
5
+ }
6
+ export interface SearchableSelectProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'width' | 'height' | 'className' | 'type' | 'onChange' | 'onSelect' | 'onBlur'> {
7
+ /** If true, the select will be disabled. */
8
+ disabled?: boolean;
9
+ /** The error message to display. Also turns the border of the select red. */
10
+ error?: string;
11
+ /** A hint to provide to the user. */
12
+ hint?: string;
13
+ /** Label for the input. */
14
+ label: string;
15
+ /** Name used inside of the form. */
16
+ name?: string;
17
+ /** Text that will appear when no options are available. */
18
+ noOptionsText: string;
19
+ /** Executes when input changes. Must be memoized. */
20
+ onChange: (newValue: string) => void;
21
+ /** Executes when an item is selected. */
22
+ onSelect: (selection: SearchableSelectOption) => void;
23
+ /** The options to filter and select from. */
24
+ options: Array<SearchableSelectOption>;
25
+ /** The value of the component. */
26
+ value: string;
27
+ }
28
+ export type SearchableSelectRef = Partial<HTMLInputElement> & {
29
+ /** Clears the selected value. */
30
+ clearSelection: VoidFunction;
31
+ };
32
+ export declare const SearchableSelect: import("react").ForwardRefExoticComponent<SearchableSelectProps & import("react").RefAttributes<SearchableSelectRef>>;
33
+ //# sourceMappingURL=SearchableSelect.d.ts.map