@youversion/design-system-components 1.2.1 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist/index.es.js +1315 -1297
- package/dist/index.umd.js +2 -2
- package/dist/src/Banner/Banner.d.ts +33 -0
- package/dist/src/Banner/Banner.d.ts.map +1 -1
- package/dist/src/Banner/BannerStyles.d.ts +26 -0
- package/dist/src/Banner/BannerStyles.d.ts.map +1 -0
- package/dist/src/List/List.stories.d.ts +1 -0
- package/dist/src/List/List.stories.d.ts.map +1 -1
- package/dist/src/ListItem/ListItem.d.ts +31 -3
- package/dist/src/ListItem/ListItem.d.ts.map +1 -1
- package/dist/src/ListItem/ListItem.stories.d.ts +30 -9
- package/dist/src/ListItem/ListItem.stories.d.ts.map +1 -1
- package/dist/src/Select/Select.d.ts +2 -0
- package/dist/src/Select/Select.d.ts.map +1 -1
- package/dist/src/Select/Select.stories.d.ts +1 -0
- package/dist/src/Select/Select.stories.d.ts.map +1 -1
- package/dist/src/Toast/Toast.d.ts +1 -1
- package/dist/src/Toast/Toast.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -5,6 +5,39 @@ interface Props extends Omit<AllHTMLAttributes<HTMLDivElement>, 'width' | 'heigh
|
|
|
5
5
|
className?: ClassValue;
|
|
6
6
|
variant?: BannerVariant;
|
|
7
7
|
}
|
|
8
|
+
/**
|
|
9
|
+
* The **Banner** component is used to display a message to the user. It can take a component or string.
|
|
10
|
+
* In cases where a component like Trans is passed, style must be manually applied.
|
|
11
|
+
*
|
|
12
|
+
* Accepts {@link Props}.
|
|
13
|
+
*
|
|
14
|
+
* @returns Renders a div component, with a nested div that displays the message.
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* function MyComponent() {
|
|
18
|
+
* return (
|
|
19
|
+
* <>
|
|
20
|
+
* <Banner variant='error' className='w-[400px] mlb-3 p-2'>
|
|
21
|
+
* <Text className={bannerTextColorVariants.error}>
|
|
22
|
+
* <Trans
|
|
23
|
+
* components={{
|
|
24
|
+
a: (
|
|
25
|
+
<a
|
|
26
|
+
className={`underline ${bannerTextColorVariants.error}`}
|
|
27
|
+
href='https://partner-support.youversion.com/'
|
|
28
|
+
/>
|
|
29
|
+
),
|
|
30
|
+
}}
|
|
31
|
+
i18nKey='common:generic_error_message'
|
|
32
|
+
t={t}
|
|
33
|
+
/>
|
|
34
|
+
</Text>
|
|
35
|
+
</Banner>
|
|
36
|
+
* </>
|
|
37
|
+
* )
|
|
38
|
+
* }
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
8
41
|
export declare function Banner({ className, children, variant }: Props): JSX.Element;
|
|
9
42
|
export {};
|
|
10
43
|
//# sourceMappingURL=Banner.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Banner.d.ts","sourceRoot":"","sources":["../../../src/Banner/Banner.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAW,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Banner.d.ts","sourceRoot":"","sources":["../../../src/Banner/Banner.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAW,MAAM,OAAO,CAAC;AAKnD,KAAK,aAAa,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,CAAC;AAEnF,UAAU,KAAM,SAAQ,IAAI,CAAC,iBAAiB,CAAC,cAAc,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,WAAW,CAAC;IAC/F,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,wBAAgB,MAAM,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAmB,EAAE,EAAE,KAAK,eAqBzE"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare const iconWrapper: {
|
|
2
|
+
default: string;
|
|
3
|
+
error: string;
|
|
4
|
+
info: string;
|
|
5
|
+
mail: string;
|
|
6
|
+
success: string;
|
|
7
|
+
warning: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const bannerBaseStyles = "flex flex-start items-center justify-start plb-2 pis-2 pie-4 rounded-1 w-full text-base leading-normal box-border gap-sm";
|
|
10
|
+
export declare const bannerStyleVariants: {
|
|
11
|
+
default: string;
|
|
12
|
+
error: string;
|
|
13
|
+
info: string;
|
|
14
|
+
mail: string;
|
|
15
|
+
success: string;
|
|
16
|
+
warning: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const bannerTextColorVariants: {
|
|
19
|
+
default: string;
|
|
20
|
+
error: string;
|
|
21
|
+
info: string;
|
|
22
|
+
mail: string;
|
|
23
|
+
success: string;
|
|
24
|
+
warning: string;
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=BannerStyles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BannerStyles.d.ts","sourceRoot":"","sources":["../../../src/Banner/BannerStyles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW;;;;;;;CAOvB,CAAC;AAEF,eAAO,MAAM,gBAAgB,6HAC+F,CAAC;AAE7H,eAAO,MAAM,mBAAmB;;;;;;;CAO/B,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;;;;;CAOnC,CAAC"}
|
|
@@ -6,6 +6,7 @@ export declare const FiveItems: import("@storybook/types").AnnotatedStoryFn<impo
|
|
|
6
6
|
export declare const WithDividers: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./List").ListProps & import("react").RefAttributes<HTMLUListElement>>;
|
|
7
7
|
export declare const WithOnClick: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./List").ListProps & import("react").RefAttributes<HTMLUListElement>>;
|
|
8
8
|
export declare const WithOnClickAndDividers: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./List").ListProps & import("react").RefAttributes<HTMLUListElement>>;
|
|
9
|
+
export declare const WithLinks: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./List").ListProps & import("react").RefAttributes<HTMLUListElement>>;
|
|
9
10
|
export declare const StartIcons: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./List").ListProps & import("react").RefAttributes<HTMLUListElement>>;
|
|
10
11
|
export declare const EndIcons: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./List").ListProps & import("react").RefAttributes<HTMLUListElement>>;
|
|
11
12
|
export declare const StartAndEndIcons: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./List").ListProps & import("react").RefAttributes<HTMLUListElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"List.stories.d.ts","sourceRoot":"","sources":["../../../src/List/List.stories.tsx"],"names":[],"mappings":";;AAMA,wBASuB;AAKvB,eAAO,MAAM,OAAO,6KAAoB,CAAC;AASzC,eAAO,MAAM,SAAS,6KAAoB,CAAC;AAuB3C,eAAO,MAAM,YAAY,6KAAoB,CAAC;AAuB9C,eAAO,MAAM,WAAW,6KAAoB,CAAC;AAuB7C,eAAO,MAAM,sBAAsB,6KAAoB,CAAC;AAuBxD,eAAO,MAAM,UAAU,6KAAoB,CAAC;AAsC5C,eAAO,MAAM,QAAQ,6KAAoB,CAAC;AAsC1C,eAAO,MAAM,gBAAgB,6KAAoB,CAAC;AAqDlD,eAAO,MAAM,wBAAwB,6KAAoB,CAAC;AAqD1D,eAAO,MAAM,WAAW,6KAAoB,CAAC;AAgD7C,eAAO,MAAM,SAAS,6KAAoB,CAAC;AAgD3C,eAAO,MAAM,iCAAiC,6KAAoB,CAAC;AAqInE,eAAO,MAAM,YAAY,6KAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"List.stories.d.ts","sourceRoot":"","sources":["../../../src/List/List.stories.tsx"],"names":[],"mappings":";;AAMA,wBASuB;AAKvB,eAAO,MAAM,OAAO,6KAAoB,CAAC;AASzC,eAAO,MAAM,SAAS,6KAAoB,CAAC;AAuB3C,eAAO,MAAM,YAAY,6KAAoB,CAAC;AAuB9C,eAAO,MAAM,WAAW,6KAAoB,CAAC;AAuB7C,eAAO,MAAM,sBAAsB,6KAAoB,CAAC;AAuBxD,eAAO,MAAM,SAAS,6KAAoB,CAAC;AAsC3C,eAAO,MAAM,UAAU,6KAAoB,CAAC;AAsC5C,eAAO,MAAM,QAAQ,6KAAoB,CAAC;AAsC1C,eAAO,MAAM,gBAAgB,6KAAoB,CAAC;AAqDlD,eAAO,MAAM,wBAAwB,6KAAoB,CAAC;AAqD1D,eAAO,MAAM,WAAW,6KAAoB,CAAC;AAgD7C,eAAO,MAAM,SAAS,6KAAoB,CAAC;AAgD3C,eAAO,MAAM,iCAAiC,6KAAoB,CAAC;AAqInE,eAAO,MAAM,YAAY,6KAAoB,CAAC"}
|
|
@@ -1,11 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
export interface ListItemProps extends LiHTMLAttributes<HTMLLIElement> {
|
|
1
|
+
import { ComponentPropsWithoutRef, ElementType, LiHTMLAttributes, ReactElement, Ref } from 'react';
|
|
2
|
+
export interface ListItemProps<TComponent extends ElementType> extends LiHTMLAttributes<HTMLLIElement> {
|
|
3
3
|
children: React.ReactNode;
|
|
4
|
+
/** Class names of the `<li>` component. */
|
|
4
5
|
className?: string;
|
|
6
|
+
/** The component type just inside the `<li>`. Defaults to `div`. */
|
|
7
|
+
component?: TComponent;
|
|
8
|
+
/** Props to pass to the component just inside the `<li>`.*/
|
|
9
|
+
componentProps?: ComponentPropsWithoutRef<ElementType extends TComponent ? 'div' : TComponent>;
|
|
5
10
|
disabled?: boolean;
|
|
6
11
|
/** Display a divider between ListItems. */
|
|
7
12
|
divider?: boolean;
|
|
13
|
+
/** Class names for the component just inside the `<li>`. */
|
|
8
14
|
innerBoxClassName?: string;
|
|
15
|
+
/** Function to run in `onClick, onKeyUp, onTouchEnd` events. */
|
|
9
16
|
onClick?: () => void;
|
|
10
17
|
}
|
|
11
18
|
/**
|
|
@@ -52,6 +59,27 @@ export interface ListItemProps extends LiHTMLAttributes<HTMLLIElement> {
|
|
|
52
59
|
* )
|
|
53
60
|
* }
|
|
54
61
|
* ```
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* Renders a list item as a link.
|
|
65
|
+
* ```tsx
|
|
66
|
+
* import { ListItem } from '@youversion/design-system-components';
|
|
67
|
+
*
|
|
68
|
+
* function MyComponent() {
|
|
69
|
+
* return (
|
|
70
|
+
* <ListItem
|
|
71
|
+
* component='a'
|
|
72
|
+
* componentProps={{
|
|
73
|
+
* href: 'https://example.com',
|
|
74
|
+
* rel: 'noopener noreferrer',
|
|
75
|
+
* target: '_blank'
|
|
76
|
+
* }}
|
|
77
|
+
* />
|
|
78
|
+
* );
|
|
79
|
+
* }
|
|
80
|
+
* ```
|
|
55
81
|
*/
|
|
56
|
-
export declare const ListItem:
|
|
82
|
+
export declare const ListItem: <T extends ElementType<any>>(p: ListItemProps<T> & {
|
|
83
|
+
ref?: Ref<HTMLLIElement> | undefined;
|
|
84
|
+
}) => ReactElement;
|
|
57
85
|
//# sourceMappingURL=ListItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListItem.d.ts","sourceRoot":"","sources":["../../../src/ListItem/ListItem.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ListItem.d.ts","sourceRoot":"","sources":["../../../src/ListItem/ListItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EAExB,WAAW,EAIX,gBAAgB,EAEhB,YAAY,EACZ,GAAG,EACJ,MAAM,OAAO,CAAC;AAIf,MAAM,WAAW,aAAa,CAAC,UAAU,SAAS,WAAW,CAAE,SAAQ,gBAAgB,CAAC,aAAa,CAAC;IACpG,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,2CAA2C;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oEAAoE;IACpE,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,4DAA4D;IAC5D,cAAc,CAAC,EAAE,wBAAwB,CAAC,WAAW,SAAS,UAAU,GAAG,KAAK,GAAG,UAAU,CAAC,CAAC;IAC/F,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,2CAA2C;IAC3C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,4DAA4D;IAC5D,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,gEAAgE;IAChE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAyDD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+DG;AACH,eAAO,MAAM,QAAQ;;MAEhB,YAAY,CAAC"}
|
|
@@ -1,12 +1,33 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("./ListItem").ListItemProps
|
|
2
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("./ListItem").ListItemProps<import("react").ElementType<any>> & {
|
|
3
|
+
ref?: import("react").Ref<HTMLLIElement> | undefined;
|
|
4
|
+
}>;
|
|
3
5
|
export default _default;
|
|
4
|
-
export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./ListItem").ListItemProps
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export declare const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export declare const
|
|
11
|
-
|
|
6
|
+
export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./ListItem").ListItemProps<import("react").ElementType<any>> & {
|
|
7
|
+
ref?: import("react").Ref<HTMLLIElement> | undefined;
|
|
8
|
+
}>;
|
|
9
|
+
export declare const WithHref: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./ListItem").ListItemProps<import("react").ElementType<any>> & {
|
|
10
|
+
ref?: import("react").Ref<HTMLLIElement> | undefined;
|
|
11
|
+
}>;
|
|
12
|
+
export declare const WithStartIcon: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./ListItem").ListItemProps<import("react").ElementType<any>> & {
|
|
13
|
+
ref?: import("react").Ref<HTMLLIElement> | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
export declare const WithEndIcon: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./ListItem").ListItemProps<import("react").ElementType<any>> & {
|
|
16
|
+
ref?: import("react").Ref<HTMLLIElement> | undefined;
|
|
17
|
+
}>;
|
|
18
|
+
export declare const StartAndEndIcons: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./ListItem").ListItemProps<import("react").ElementType<any>> & {
|
|
19
|
+
ref?: import("react").Ref<HTMLLIElement> | undefined;
|
|
20
|
+
}>;
|
|
21
|
+
export declare const WithStartAction: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./ListItem").ListItemProps<import("react").ElementType<any>> & {
|
|
22
|
+
ref?: import("react").Ref<HTMLLIElement> | undefined;
|
|
23
|
+
}>;
|
|
24
|
+
export declare const WithEndActions: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./ListItem").ListItemProps<import("react").ElementType<any>> & {
|
|
25
|
+
ref?: import("react").Ref<HTMLLIElement> | undefined;
|
|
26
|
+
}>;
|
|
27
|
+
export declare const StartAndEndActions: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./ListItem").ListItemProps<import("react").ElementType<any>> & {
|
|
28
|
+
ref?: import("react").Ref<HTMLLIElement> | undefined;
|
|
29
|
+
}>;
|
|
30
|
+
export declare const WithPopoverActions: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./ListItem").ListItemProps<import("react").ElementType<any>> & {
|
|
31
|
+
ref?: import("react").Ref<HTMLLIElement> | undefined;
|
|
32
|
+
}>;
|
|
12
33
|
//# sourceMappingURL=ListItem.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListItem.stories.d.ts","sourceRoot":"","sources":["../../../src/ListItem/ListItem.stories.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ListItem.stories.d.ts","sourceRoot":"","sources":["../../../src/ListItem/ListItem.stories.tsx"],"names":[],"mappings":";;;;AAkBA,wBAM2B;AAe3B,eAAO,MAAM,OAAO;;EAAoB,CAAC;AAYzC,eAAO,MAAM,QAAQ;;EAAoB,CAAC;AAgB1C,eAAO,MAAM,aAAa;;EAAoB,CAAC;AAc/C,eAAO,MAAM,WAAW;;EAAoB,CAAC;AAc7C,eAAO,MAAM,gBAAgB;;EAAoB,CAAC;AAkBlD,eAAO,MAAM,eAAe;;EAAoB,CAAC;AAgBjD,eAAO,MAAM,cAAc;;EAAoB,CAAC;AAqBhD,eAAO,MAAM,kBAAkB;;EAAoB,CAAC;AA+JpD,eAAO,MAAM,kBAAkB;;EAA2B,CAAC"}
|
|
@@ -9,6 +9,8 @@ export interface SelectProps extends Omit<SelectHTMLAttributes<HTMLSelectElement
|
|
|
9
9
|
error?: string;
|
|
10
10
|
/** A hint to provide to the user. */
|
|
11
11
|
hint?: string;
|
|
12
|
+
/** An icon that can be passed in to the select. */
|
|
13
|
+
icon?: React.ReactNode;
|
|
12
14
|
/** This shows up above the selected options when an item is selected. */
|
|
13
15
|
label?: string;
|
|
14
16
|
/** The name of the select. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/Select/Select.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAIL,oBAAoB,EAKrB,MAAM,OAAO,CAAC;AAiBf,MAAM,WAAW,WACf,SAAQ,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,WAAW,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;IAC5G,mDAAmD;IACnD,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,6EAA6E;IAC7E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,qCAAqC;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,yEAAyE;IACzE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,8BAA8B;IAC9B,IAAI,EAAE,MAAM,CAAC;CACd;
|
|
1
|
+
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/Select/Select.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAIL,oBAAoB,EAKrB,MAAM,OAAO,CAAC;AAiBf,MAAM,WAAW,WACf,SAAQ,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,WAAW,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;IAC5G,mDAAmD;IACnD,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,6EAA6E;IAC7E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,qCAAqC;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mDAAmD;IACnD,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,yEAAyE;IACzE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,8BAA8B;IAC9B,IAAI,EAAE,MAAM,CAAC;CACd;AAsED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,eAAO,MAAM,MAAM,2GAA8B,CAAC"}
|
|
@@ -6,6 +6,7 @@ export declare const Controlled: () => JSX.Element;
|
|
|
6
6
|
export declare const ControlledNoLabel: () => JSX.Element;
|
|
7
7
|
export declare const UncontrolledNoLabel: () => JSX.Element;
|
|
8
8
|
export declare const UncontrolledWithLabel: () => JSX.Element;
|
|
9
|
+
export declare const UncontrolledWithLabelAndIcon: () => JSX.Element;
|
|
9
10
|
export declare const UncontrolledNoLabelOrPlaceholder: () => JSX.Element;
|
|
10
11
|
export declare const UncontrolledWithLabelNoPlaceholder: () => JSX.Element;
|
|
11
12
|
export declare const NoPlaceholder: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./Select").SelectProps & import("react").RefAttributes<HTMLSelectElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.stories.d.ts","sourceRoot":"","sources":["../../../src/Select/Select.stories.tsx"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"Select.stories.d.ts","sourceRoot":"","sources":["../../../src/Select/Select.stories.tsx"],"names":[],"mappings":";;AAmBA,wBAsCyB;AAOzB,eAAO,MAAM,OAAO,kLAAoB,CAAC;AAGzC,eAAO,MAAM,UAAU,mBActB,CAAC;AAEF,eAAO,MAAM,iBAAiB,mBAc7B,CAAC;AAEF,eAAO,MAAM,mBAAmB,mBAQ/B,CAAC;AACF,eAAO,MAAM,qBAAqB,mBAQjC,CAAC;AAEF,eAAO,MAAM,4BAA4B,mBAQxC,CAAC;AAEF,eAAO,MAAM,gCAAgC,mBAQ5C,CAAC;AACF,eAAO,MAAM,kCAAkC,mBAQ9C,CAAC;AAEF,eAAO,MAAM,aAAa,kLAAoB,CAAC;AAM/C,eAAO,MAAM,gBAAgB,kLAAoB,CAAC;AAKlD,eAAO,MAAM,QAAQ,kLAAoB,CAAC;AAK1C,eAAO,MAAM,SAAS,kLAAoB,CAAC;AAK3C,eAAO,MAAM,QAAQ,kLAAoB,CAAC;AAQ1C,eAAO,MAAM,kBAAkB,kLAAoB,CAAC"}
|
|
@@ -4,7 +4,7 @@ type ToastVariant = 'success' | 'error' | 'info' | 'caution' | 'default';
|
|
|
4
4
|
export interface ToastProps extends Omit<AllHTMLAttributes<HTMLDivElement>, 'width' | 'height' | 'className'> {
|
|
5
5
|
/** May add styles around the wrapper div of this component */
|
|
6
6
|
className?: string;
|
|
7
|
-
/** Callback that is is loaded when the
|
|
7
|
+
/** Callback that is is loaded when the notification times out of the dismiss button is clicked. */
|
|
8
8
|
dismiss?: () => void;
|
|
9
9
|
/** If set, the toast will timeout automatically in milliseconds */
|
|
10
10
|
duration?: number;
|
|
@@ -1 +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,
|
|
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,mGAAmG;IACnG,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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@youversion/design-system-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"main": "./dist/index.umd.js",
|
|
5
5
|
"module": "./dist/index.es.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@youversion/design-system-core": "1.1.0",
|
|
25
|
-
"@youversion/design-system-icons": "1.
|
|
25
|
+
"@youversion/design-system-icons": "1.1.0",
|
|
26
26
|
"@youversion/design-system-tokens": "1.3.0",
|
|
27
27
|
"clsx": "1.2.1",
|
|
28
28
|
"tailwind-merge": "1.13.2"
|