@youversion/design-system-components 0.27.0 → 0.29.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.
- package/CHANGELOG.md +29 -0
- package/dist/index.es.js +2338 -1960
- package/dist/index.umd.js +3 -3
- package/dist/src/Button/Button.d.ts +4 -2
- package/dist/src/Button/Button.d.ts.map +1 -1
- package/dist/src/Button/Button.stories.d.ts +3 -0
- package/dist/src/Button/Button.stories.d.ts.map +1 -1
- package/dist/src/ColorSelect/ColorSelect.d.ts +28 -0
- package/dist/src/ColorSelect/ColorSelect.d.ts.map +1 -0
- package/dist/src/ColorSelect/ColorSelect.stories.d.ts +7 -0
- package/dist/src/ColorSelect/ColorSelect.stories.d.ts.map +1 -0
- package/dist/src/ColorSelect/index.d.ts +2 -0
- package/dist/src/ColorSelect/index.d.ts.map +1 -0
- package/dist/src/FauxPhone/FauxPhone.d.ts +25 -0
- package/dist/src/FauxPhone/FauxPhone.d.ts.map +1 -0
- package/dist/src/FauxPhone/FauxPhone.stories.d.ts +8 -0
- package/dist/src/FauxPhone/FauxPhone.stories.d.ts.map +1 -0
- package/dist/src/FauxPhone/index.d.ts +2 -0
- package/dist/src/FauxPhone/index.d.ts.map +1 -0
- package/dist/src/FeatureWell/FeatureWell.d.ts +29 -0
- package/dist/src/FeatureWell/FeatureWell.d.ts.map +1 -0
- package/dist/src/FeatureWell/FeatureWell.stories.d.ts +8 -0
- package/dist/src/FeatureWell/FeatureWell.stories.d.ts.map +1 -0
- package/dist/src/FeatureWell/FeatureWellButton.d.ts +31 -0
- package/dist/src/FeatureWell/FeatureWellButton.d.ts.map +1 -0
- package/dist/src/FeatureWell/FeatureWellColumn.d.ts +30 -0
- package/dist/src/FeatureWell/FeatureWellColumn.d.ts.map +1 -0
- package/dist/src/FeatureWell/FeatureWellImage.d.ts +28 -0
- package/dist/src/FeatureWell/FeatureWellImage.d.ts.map +1 -0
- package/dist/src/FeatureWell/FeatureWellText.d.ts +31 -0
- package/dist/src/FeatureWell/FeatureWellText.d.ts.map +1 -0
- package/dist/src/FeatureWell/index.d.ts +6 -0
- package/dist/src/FeatureWell/index.d.ts.map +1 -0
- package/dist/src/IconButton/IconButton.d.ts +2 -0
- package/dist/src/IconButton/IconButton.d.ts.map +1 -1
- package/dist/src/IconButton/IconButton.stories.d.ts +3 -0
- package/dist/src/IconButton/IconButton.stories.d.ts.map +1 -1
- package/dist/src/SearchableSelect/SearchableSelect.d.ts +33 -0
- package/dist/src/SearchableSelect/SearchableSelect.d.ts.map +1 -0
- package/dist/src/SearchableSelect/SearchableSelect.stories.d.ts +6 -0
- package/dist/src/SearchableSelect/SearchableSelect.stories.d.ts.map +1 -0
- package/dist/src/SearchableSelect/index.d.ts +2 -0
- package/dist/src/SearchableSelect/index.d.ts.map +1 -0
- package/dist/src/TextArea/TextArea.d.ts +43 -0
- package/dist/src/TextArea/TextArea.d.ts.map +1 -0
- package/dist/src/TextArea/TextArea.stories.d.ts +12 -0
- package/dist/src/TextArea/TextArea.stories.d.ts.map +1 -0
- package/dist/src/TextArea/index.d.ts +2 -0
- package/dist/src/TextArea/index.d.ts.map +1 -0
- package/dist/src/Toast/Toast.d.ts +20 -0
- package/dist/src/Toast/Toast.d.ts.map +1 -0
- package/dist/src/Toast/Toast.stories.d.ts +14 -0
- package/dist/src/Toast/Toast.stories.d.ts.map +1 -0
- package/dist/src/Toast/index.d.ts +2 -0
- package/dist/src/Toast/index.d.ts.map +1 -0
- package/dist/src/index.d.ts +5 -0
- package/dist/src/index.d.ts.map +1 -1
- package/package.json +3 -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;
|
|
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;AAKhG,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,KAAK,GAAG,SAAS,CAAC;AAEvD,eAAO,MAAM,iBAAiB;;;;;;CAMpB,CAAC;AAEX,eAAO,MAAM,oBAAoB,iBAAkB,YAAY;;;;;;CA2B9D,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;CAMZ,CAAC;AAEX,eAAO,MAAM,oBAAoB,sLACoJ,CAAC;AAEtL,eAAO,MAAM,cAAc;;;;;;;;;;;;CAuBjB,CAAC;AAEX,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IACzF,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;CACtC;AAED,MAAM,WAAW,YAAa,SAAQ,eAAe;IACnD,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IACxC,OAAO,CAAC,EAAE,OAAO,CAAC,MAAM,OAAO,cAAc,EAAE,UAAU,GAAG,eAAe,CAAC,CAAC;CAC9E;AAED,MAAM,WAAW,cAAe,SAAQ,eAAe;IACrD,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,OAAO,CAAC,EAAE,UAAU,GAAG,eAAe,CAAC;CACxC;AAED,MAAM,MAAM,WAAW,GAAG,YAAY,GAAG,cAAc,CAAC;AAExD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,eAAO,MAAM,eAAe,oIAcvB,WAAW,OACT,aAAa,iBAAiB,CAAC,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":";;
|
|
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 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ColorSelect/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,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 @@
|
|
|
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 @@
|
|
|
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"}
|
|
@@ -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;
|
|
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":";;
|
|
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"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/// <reference types="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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchableSelect.d.ts","sourceRoot":"","sources":["../../../src/SearchableSelect/SearchableSelect.tsx"],"names":[],"mappings":";AASA,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;CACpC;AAED,MAAM,WAAW,qBACf,SAAQ,IAAI,CACV,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAC3C,OAAO,GAAG,QAAQ,GAAG,WAAW,GAAG,MAAM,GAAG,UAAU,GAAG,UAAU,GAAG,QAAQ,CAC/E;IACD,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,6EAA6E;IAC7E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,qCAAqC;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,2BAA2B;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,oCAAoC;IACpC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,2DAA2D;IAC3D,aAAa,EAAE,MAAM,CAAC;IACtB,qDAAqD;IACrD,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,yCAAyC;IACzC,QAAQ,EAAE,CAAC,SAAS,EAAE,sBAAsB,KAAK,IAAI,CAAC;IACtD,6CAA6C;IAC7C,OAAO,EAAE,KAAK,CAAC,sBAAsB,CAAC,CAAC;IACvC,kCAAkC;IAClC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,MAAM,mBAAmB,GAAG,OAAO,CAAC,gBAAgB,CAAC,GAAG;IAC5D,iCAAiC;IACjC,cAAc,EAAE,YAAY,CAAC;CAC9B,CAAC;AAoHF,eAAO,MAAM,gBAAgB,uHAAwC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { StoryFn } from '@storybook/react';
|
|
2
|
+
import { SearchableSelect } from './SearchableSelect';
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("./SearchableSelect").SearchableSelectProps & import("react").RefAttributes<import("./SearchableSelect").SearchableSelectRef>>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Story: StoryFn<typeof SearchableSelect>;
|
|
6
|
+
//# sourceMappingURL=SearchableSelect.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchableSelect.stories.d.ts","sourceRoot":"","sources":["../../../src/SearchableSelect/SearchableSelect.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAGjD,OAAO,EAAE,gBAAgB,EAA0B,MAAM,oBAAoB,CAAC;;AAE9E,wBAGmC;AAUnC,eAAO,MAAM,KAAK,EAAE,OAAO,CAAC,OAAO,gBAAgB,CAclD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/SearchableSelect/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface TextAreaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
3
|
+
/** A class that can be passed in to the TextArea. */
|
|
4
|
+
className?: string;
|
|
5
|
+
/** Prevent the user from resizing the TextArea. */
|
|
6
|
+
disableResize?: boolean;
|
|
7
|
+
/** Disables the TextArea, also applies disabled styling. */
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
/** Message to provide to the user, also applies error styling. */
|
|
10
|
+
error?: string;
|
|
11
|
+
/** Hint to provide to the user. */
|
|
12
|
+
hint?: string;
|
|
13
|
+
/** Label for the TextArea. */
|
|
14
|
+
label?: string;
|
|
15
|
+
/** Name used inside of the form. */
|
|
16
|
+
name: string;
|
|
17
|
+
/** Function to handle the onChange event when using as a controlled input. */
|
|
18
|
+
onChange?: React.ChangeEventHandler<HTMLTextAreaElement>;
|
|
19
|
+
/** Placeholder to display. */
|
|
20
|
+
placeholder?: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* The **TextArea** component is used to allow the user to enter multiline text into a form.
|
|
24
|
+
*
|
|
25
|
+
* Accepts {@link TextAreaProps}.
|
|
26
|
+
*
|
|
27
|
+
* @returns Renders the TextArea field to be used in a form.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```tsx
|
|
31
|
+
* import { TextArea } from '@youversion/design-system-components';
|
|
32
|
+
*
|
|
33
|
+
* function MyComponent() {
|
|
34
|
+
* return (
|
|
35
|
+
* <>
|
|
36
|
+
* <TextArea name='firstName' label='First Name' />
|
|
37
|
+
* </>
|
|
38
|
+
* )
|
|
39
|
+
* }
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
export declare const TextArea: import("react").ForwardRefExoticComponent<TextAreaProps & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
43
|
+
//# sourceMappingURL=TextArea.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../src/TextArea/TextArea.tsx"],"names":[],"mappings":";AAMA,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,sBAAsB,CAAC,mBAAmB,CAAC;IACtF,qDAAqD;IACrD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mDAAmD;IACnD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kEAAkE;IAClE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mCAAmC;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,8BAA8B;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oCAAoC;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,8EAA8E;IAC9E,QAAQ,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAC;IACzD,8BAA8B;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AA8FD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,QAAQ,+GAAgC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("./TextArea").TextAreaProps & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
3
|
+
export default _default;
|
|
4
|
+
export declare const Uncontrolled: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./TextArea").TextAreaProps & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
5
|
+
export declare const UncontrolledPlaceholder: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./TextArea").TextAreaProps & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
6
|
+
export declare const Controlled: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./TextArea").TextAreaProps & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
7
|
+
export declare const ControlledPlaceholder: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./TextArea").TextAreaProps & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
8
|
+
export declare const Disabled: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./TextArea").TextAreaProps & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
9
|
+
export declare const WithHint: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./TextArea").TextAreaProps & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
10
|
+
export declare const WithError: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./TextArea").TextAreaProps & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
11
|
+
export declare const WithErrorAndHint: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./TextArea").TextAreaProps & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
12
|
+
//# sourceMappingURL=TextArea.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextArea.stories.d.ts","sourceRoot":"","sources":["../../../src/TextArea/TextArea.stories.tsx"],"names":[],"mappings":";;AAKA,wBAgB2B;AAuB3B,eAAO,MAAM,YAAY,wLAAoB,CAAC;AAG9C,eAAO,MAAM,uBAAuB,wLAAoB,CAAC;AAGzD,eAAO,MAAM,UAAU,wLAAoB,CAAC;AAG5C,eAAO,MAAM,qBAAqB,wLAAoB,CAAC;AAOvD,eAAO,MAAM,QAAQ,wLAAoB,CAAC;AAG1C,eAAO,MAAM,QAAQ,wLAAoB,CAAC;AAG1C,eAAO,MAAM,SAAS,wLAAoB,CAAC;AAG3C,eAAO,MAAM,gBAAgB,wLAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/TextArea/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { AllHTMLAttributes, FC, PropsWithChildren } from 'react';
|
|
2
|
+
type ToastPosition = 'inlineEnd' | 'inlineStart';
|
|
3
|
+
type ToastVariant = 'success' | 'error' | 'info' | 'caution' | 'default';
|
|
4
|
+
export interface ToastProps extends Omit<AllHTMLAttributes<HTMLDivElement>, 'width' | 'height' | 'className'> {
|
|
5
|
+
/** May add styles around the wrapper div of this component */
|
|
6
|
+
className?: string;
|
|
7
|
+
/** Callback that is is loaded when the noitfication timesout of the dismiss button is clicked. */
|
|
8
|
+
dismiss?: () => void;
|
|
9
|
+
/** If set, the toast will timeout automatically in milliseconds */
|
|
10
|
+
duration?: number;
|
|
11
|
+
/** If this prop is added as `true` this will hide the dismiss button, so a user will be unable to dismiss the toast. */
|
|
12
|
+
hideDismissButton?: boolean;
|
|
13
|
+
/** Sets the direction the toast animates in from `inlineEnd` or `inlineStart`. Defaults to inlineEnd. */
|
|
14
|
+
position?: ToastPosition;
|
|
15
|
+
/** Sets the toast color. `error`, `success`, `info`, amd `default`. */
|
|
16
|
+
variant?: ToastVariant;
|
|
17
|
+
}
|
|
18
|
+
export declare const Toast: FC<PropsWithChildren<ToastProps>>;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=Toast.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../src/Toast/Toast.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,EAAE,EAAE,iBAAiB,EAAwC,MAAM,OAAO,CAAC;AAIvG,KAAK,aAAa,GAAG,WAAW,GAAG,aAAa,CAAC;AAEjD,KAAK,YAAY,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC;AAiBzE,MAAM,WAAW,UAAW,SAAQ,IAAI,CAAC,iBAAiB,CAAC,cAAc,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,WAAW,CAAC;IAC3G,8DAA8D;IAC9D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kGAAkG;IAClG,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,mEAAmE;IACnE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,wHAAwH;IACxH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,yGAAyG;IACzG,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,uEAAuE;IACvE,OAAO,CAAC,EAAE,YAAY,CAAC;CACxB;AAED,eAAO,MAAM,KAAK,EAAE,EAAE,CAAC,iBAAiB,CAAC,UAAU,CAAC,CA+EnD,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
component: import("react").FC<import("react").PropsWithChildren<import("./Toast").ToastProps>>;
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const StandardToast: () => JSX.Element;
|
|
7
|
+
export declare const ErrorLeftToast: () => JSX.Element;
|
|
8
|
+
export declare const SuccessRightToast: () => JSX.Element;
|
|
9
|
+
export declare const InfoRightToast: () => JSX.Element;
|
|
10
|
+
export declare const CautionRightToast: () => JSX.Element;
|
|
11
|
+
export declare const TimeoutLongToast: () => JSX.Element;
|
|
12
|
+
export declare const NoDismissToast: () => JSX.Element;
|
|
13
|
+
export declare const MultipleToasts: () => JSX.Element;
|
|
14
|
+
//# sourceMappingURL=Toast.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toast.stories.d.ts","sourceRoot":"","sources":["../../../src/Toast/Toast.stories.tsx"],"names":[],"mappings":";;;;AAEA,wBAGE;AAEF,eAAO,MAAM,aAAa,mBAEzB,CAAC;AAEF,eAAO,MAAM,cAAc,mBAM1B,CAAC;AAEF,eAAO,MAAM,iBAAiB,mBAM7B,CAAC;AAEF,eAAO,MAAM,cAAc,mBAM1B,CAAC;AAEF,eAAO,MAAM,iBAAiB,mBAM7B,CAAC;AAEF,eAAO,MAAM,gBAAgB,mBAW5B,CAAC;AAEF,eAAO,MAAM,cAAc,mBAM1B,CAAC;AAEF,eAAO,MAAM,cAAc,mBAU1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Toast/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC"}
|
package/dist/src/index.d.ts
CHANGED
|
@@ -4,9 +4,11 @@ export * from './Box';
|
|
|
4
4
|
export * from './Breadcrumb';
|
|
5
5
|
export * from './Button';
|
|
6
6
|
export * from './Checkbox';
|
|
7
|
+
export * from './ColorSelect';
|
|
7
8
|
export * from './Dialog';
|
|
8
9
|
export * from './Divider';
|
|
9
10
|
export * from './EditableWell';
|
|
11
|
+
export * from './FauxPhone';
|
|
10
12
|
export * from './FocusTrap';
|
|
11
13
|
export * from './Grid';
|
|
12
14
|
export * from './hooks';
|
|
@@ -28,6 +30,7 @@ export * from './PopoverBody';
|
|
|
28
30
|
export * from './PopoverTrigger';
|
|
29
31
|
export * from './RadioSet';
|
|
30
32
|
export * from './Search';
|
|
33
|
+
export * from './SearchableSelect';
|
|
31
34
|
export * from './SegmentedControl';
|
|
32
35
|
export * from './Select';
|
|
33
36
|
export * from './Switch';
|
|
@@ -35,7 +38,9 @@ export * from './Tab';
|
|
|
35
38
|
export * from './TabBar';
|
|
36
39
|
export * from './Table';
|
|
37
40
|
export * from './Tag';
|
|
41
|
+
export * from './TextArea';
|
|
38
42
|
export * from './TimePicker';
|
|
43
|
+
export * from './Toast';
|
|
39
44
|
export * from './Tooltip';
|
|
40
45
|
export * from './Typography';
|
|
41
46
|
export * from './UserProfileButton';
|