@youversion/design-system-components 0.30.0 → 0.31.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 (30) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/index.es.js +1228 -1190
  3. package/dist/index.umd.js +2 -2
  4. package/dist/src/AutocompleteSelect/AutocompleteSelect.d.ts +2 -0
  5. package/dist/src/AutocompleteSelect/AutocompleteSelect.d.ts.map +1 -1
  6. package/dist/src/AutocompleteSelect/AutocompleteSelect.stories.d.ts.map +1 -1
  7. package/dist/src/ColorSelect/ColorSelect.d.ts +2 -2
  8. package/dist/src/ColorSelect/ColorSelect.d.ts.map +1 -1
  9. package/dist/src/ColorSelect/ColorSelect.stories.d.ts.map +1 -1
  10. package/dist/src/FeatureWell/FeatureWellColumn.d.ts +3 -1
  11. package/dist/src/FeatureWell/FeatureWellColumn.d.ts.map +1 -1
  12. package/dist/src/Input/Input.d.ts +4 -0
  13. package/dist/src/Input/Input.d.ts.map +1 -1
  14. package/dist/src/Input/Input.stories.d.ts +1 -0
  15. package/dist/src/Input/Input.stories.d.ts.map +1 -1
  16. package/dist/src/SideNav/SideNav.d.ts +10 -0
  17. package/dist/src/SideNav/SideNav.d.ts.map +1 -0
  18. package/dist/src/SideNav/SideNav.stories.d.ts +5 -0
  19. package/dist/src/SideNav/SideNav.stories.d.ts.map +1 -0
  20. package/dist/src/SideNav/SideNavFooter.d.ts +8 -0
  21. package/dist/src/SideNav/SideNavFooter.d.ts.map +1 -0
  22. package/dist/src/SideNav/SideNavHeader.d.ts +8 -0
  23. package/dist/src/SideNav/SideNavHeader.d.ts.map +1 -0
  24. package/dist/src/SideNav/SideNavItem.d.ts +18 -0
  25. package/dist/src/SideNav/SideNavItem.d.ts.map +1 -0
  26. package/dist/src/SideNav/SideNavItems.d.ts +8 -0
  27. package/dist/src/SideNav/SideNavItems.d.ts.map +1 -0
  28. package/dist/src/SideNav/index.d.ts +6 -0
  29. package/dist/src/SideNav/index.d.ts.map +1 -0
  30. package/package.json +1 -1
@@ -10,6 +10,8 @@ export interface AutocompleteSelectProps extends Omit<React.InputHTMLAttributes<
10
10
  error?: string;
11
11
  /** A hint to provide to the user. */
12
12
  hint?: string;
13
+ /** If true, the select will display a loading spinner. */
14
+ isLoading?: boolean;
13
15
  /** Label for the input. */
14
16
  label: string;
15
17
  /** Name used inside of the form. */
@@ -1 +1 @@
1
- {"version":3,"file":"AutocompleteSelect.d.ts","sourceRoot":"","sources":["../../../src/AutocompleteSelect/AutocompleteSelect.tsx"],"names":[],"mappings":";AAQA,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;CACpC;AAED,MAAM,WAAW,uBACf,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,YAAY,KAAK,IAAI,CAAC;IAC5C,6CAA6C;IAC7C,OAAO,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;IAC7B,kCAAkC;IAClC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,MAAM,q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C,gBAAgB,CAAC,GAAG;IAC9D,iCAAiC;IACjC,cAAc,EAAE,YAAY,CAAC;CAC9B,CAAC;AAwHF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,kBAAkB,2HAA0C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"AutocompleteSelect.stories.d.ts","sourceRoot":"","sources":["../../../src/AutocompleteSelect/AutocompleteSelect.stories.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAsB,uBAAuB,EAAgB,MAAM,IAAI,CAAC;;AAE/E,wBA2CqC;AAyBrC,eAAO,MAAM,yBAAyB,8MAAoB,CAAC"}
1
+ {"version":3,"file":"AutocompleteSelect.stories.d.ts","sourceRoot":"","sources":["../../../src/AutocompleteSelect/AutocompleteSelect.stories.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAsB,uBAAuB,EAAgB,MAAM,IAAI,CAAC;;AAE/E,wBAgDqC;AAyBrC,eAAO,MAAM,yBAAyB,8MAAoB,CAAC"}
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React, { ChangeEventHandler } from 'react';
2
2
  export interface ColorSelectProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
3
3
  /** May add styles around the wrapper div of this component. */
4
4
  className?: string;
@@ -14,7 +14,7 @@ export interface ColorSelectProps extends Omit<React.InputHTMLAttributes<HTMLInp
14
14
  label: string;
15
15
  /** Required. Determines the color text field input name. */
16
16
  name: string;
17
- onChange: (value: string) => void;
17
+ onChange: ChangeEventHandler;
18
18
  /** Placeholder text in the color text field. */
19
19
  placeholder?: string;
20
20
  /** Aria label for the reset color button. */
@@ -1 +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,g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E,MAAM,CAAC;IACd,4DAA4D;IAC5D,IAAI,EAAE,MAAM,CAAC;IAEb,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,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;AA0ID,eAAO,MAAM,WAAW,2FAAmC,CAAC"}
@@ -1 +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"}
1
+ {"version":3,"file":"ColorSelect.stories.d.ts","sourceRoot":"","sources":["../../../src/ColorSelect/ColorSelect.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAsB,MAAM,OAAO,CAAC;;AAI3C,wBAmB8B;AAgB9B,eAAO,MAAM,OAAO,iLAAoB,CAAC;AAGzC,eAAO,MAAM,QAAQ,iLAAoB,CAAC;AAG1C,eAAO,MAAM,SAAS,iLAAoB,CAAC"}
@@ -12,6 +12,7 @@ export interface FeatureWellColumnProps extends HTMLAttributes<HTMLElement> {
12
12
  * @returns Renders the column for a FeatureWell.
13
13
  *
14
14
  * @example
15
+ * ```tsx
15
16
  * import { FeaturedWell, FeatureWellColumn, FeatureWellText } from '@youversion/design-system';
16
17
  *
17
18
  * export const Example = () => {
@@ -25,6 +26,7 @@ export interface FeatureWellColumnProps extends HTMLAttributes<HTMLElement> {
25
26
  * </FeaturedWell>
26
27
  * );
27
28
  * };
29
+ * ```
28
30
  */
29
- export declare const FeatureWellColumn: ({ children, ...rest }: FeatureWellColumnProps) => JSX.Element;
31
+ export declare const FeatureWellColumn: ({ children, className, ...rest }: FeatureWellColumnProps) => JSX.Element;
30
32
  //# sourceMappingURL=FeatureWellColumn.d.ts.map
@@ -1 +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"}
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;AAI9C,MAAM,WAAW,sBAAuB,SAAQ,cAAc,CAAC,WAAW,CAAC;IACzE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,iBAAiB,qCAAsC,sBAAsB,gBAMzF,CAAC"}
@@ -18,8 +18,12 @@ export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement>
18
18
  onChange?: React.ChangeEventHandler<HTMLInputElement>;
19
19
  /** Placeholder to display. */
20
20
  placeholder?: string;
21
+ /** Text that should be displayed before the input text. */
22
+ prefix?: string;
21
23
  /** Icon to render at the start of the Input. */
22
24
  startIcon?: React.ReactNode;
25
+ /** Text that should be displayed after the input text. */
26
+ suffix?: string;
23
27
  }
24
28
  /**
25
29
  * The **Input** component is used to allow the user to enter text into a form.
@@ -1 +1 @@
1
- {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/Input/Input.tsx"],"names":[],"mappings":";AAKA,MAAM,WAAW,UAAW,SAAQ,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC;IAC7E,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yDAAyD;IACzD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,8CAA8C;IAC9C,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,kEAAkE;IAClE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mCAAmC;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,2BAA2B;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oCAAoC;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,8EAA8E;IAC9E,QAAQ,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;IACtD,8BAA8B;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gDAAgD;IAChD,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B;AAwGD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,KAAK,yGAA6B,CAAC"}
1
+ {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/Input/Input.tsx"],"names":[],"mappings":";AAMA,MAAM,WAAW,UAAW,SAAQ,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC;IAC7E,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yDAAyD;IACzD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,8CAA8C;IAC9C,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,kEAAkE;IAClE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mCAAmC;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,2BAA2B;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oCAAoC;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,8EAA8E;IAC9E,QAAQ,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;IACtD,8BAA8B;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2DAA2D;IAC3D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gDAAgD;IAChD,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,0DAA0D;IAC1D,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAmID;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,KAAK,yGAA6B,CAAC"}
@@ -12,4 +12,5 @@ export declare const Disabled: import("@storybook/types").AnnotatedStoryFn<impor
12
12
  export declare const WithHint: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./Input").InputProps & import("react").RefAttributes<HTMLInputElement>>;
13
13
  export declare const WithError: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./Input").InputProps & import("react").RefAttributes<HTMLInputElement>>;
14
14
  export declare const WithErrorAndHint: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./Input").InputProps & import("react").RefAttributes<HTMLInputElement>>;
15
+ export declare const WithPrefix: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./Input").InputProps & import("react").RefAttributes<HTMLInputElement>>;
15
16
  //# sourceMappingURL=Input.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Input.stories.d.ts","sourceRoot":"","sources":["../../../src/Input/Input.stories.tsx"],"names":[],"mappings":";;AAMA,wBAqBwB;AAyBxB,eAAO,MAAM,YAAY,+KAAoB,CAAC;AAG9C,eAAO,MAAM,uBAAuB,+KAAoB,CAAC;AAGzD,eAAO,MAAM,SAAS,+KAAoB,CAAC;AAG3C,eAAO,MAAM,OAAO,+KAAoB,CAAC;AAGzC,eAAO,MAAM,gBAAgB,+KAAoB,CAAC;AAGlD,eAAO,MAAM,UAAU,+KAAoB,CAAC;AAG5C,eAAO,MAAM,qBAAqB,+KAAoB,CAAC;AAOvD,eAAO,MAAM,QAAQ,+KAAoB,CAAC;AAG1C,eAAO,MAAM,QAAQ,+KAAoB,CAAC;AAG1C,eAAO,MAAM,SAAS,+KAAoB,CAAC;AAG3C,eAAO,MAAM,gBAAgB,+KAAoB,CAAC"}
1
+ {"version":3,"file":"Input.stories.d.ts","sourceRoot":"","sources":["../../../src/Input/Input.stories.tsx"],"names":[],"mappings":";;AAMA,wBAqBwB;AAyBxB,eAAO,MAAM,YAAY,+KAAoB,CAAC;AAG9C,eAAO,MAAM,uBAAuB,+KAAoB,CAAC;AAGzD,eAAO,MAAM,SAAS,+KAAoB,CAAC;AAG3C,eAAO,MAAM,OAAO,+KAAoB,CAAC;AAGzC,eAAO,MAAM,gBAAgB,+KAAoB,CAAC;AAGlD,eAAO,MAAM,UAAU,+KAAoB,CAAC;AAG5C,eAAO,MAAM,qBAAqB,+KAAoB,CAAC;AAOvD,eAAO,MAAM,QAAQ,+KAAoB,CAAC;AAG1C,eAAO,MAAM,QAAQ,+KAAoB,CAAC;AAG1C,eAAO,MAAM,SAAS,+KAAoB,CAAC;AAG3C,eAAO,MAAM,gBAAgB,+KAAoB,CAAC;AAGlD,eAAO,MAAM,UAAU,+KAAoB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { HTMLAttributes } from 'react';
2
+ interface SideNavProps extends HTMLAttributes<HTMLDivElement> {
3
+ /** Optional. May add styles around the wrapper div of this component. */
4
+ className?: string;
5
+ /** Optional. A number representing the width of the component. Use this prop to set the width of the component in 'px' */
6
+ width?: number;
7
+ }
8
+ export declare const SideNav: import("react").ForwardRefExoticComponent<SideNavProps & import("react").RefAttributes<HTMLDivElement>>;
9
+ export {};
10
+ //# sourceMappingURL=SideNav.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SideNav.d.ts","sourceRoot":"","sources":["../../../src/SideNav/SideNav.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA4B,cAAc,EAAE,MAAM,OAAO,CAAC;AAIjE,UAAU,YAAa,SAAQ,cAAc,CAAC,cAAc,CAAC;IAC3D,yEAAyE;IACzE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0HAA0H;IAC1H,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAgDD,eAAO,MAAM,OAAO,yGAA+B,CAAC"}
@@ -0,0 +1,5 @@
1
+ declare const meta: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
2
+ export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
3
+ export declare const WithDisabledItem: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
4
+ export default meta;
5
+ //# sourceMappingURL=SideNav.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SideNav.stories.d.ts","sourceRoot":"","sources":["../../../src/SideNav/SideNav.stories.tsx"],"names":[],"mappings":"AAQA,QAAA,MAAM,IAAI,oIAGD,CAAC;AAmBV,eAAO,MAAM,OAAO,gIAAoB,CAAC;AAsBzC,eAAO,MAAM,gBAAgB,gIAAmC,CAAC;AAGjE,eAAe,IAAI,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { HTMLAttributes } from 'react';
2
+ interface SideNavFooterProps extends HTMLAttributes<HTMLDivElement> {
3
+ /** Optional. May add styles around the wrapper div of this component. */
4
+ className?: string;
5
+ }
6
+ export declare const SideNavFooter: import("react").ForwardRefExoticComponent<SideNavFooterProps & import("react").RefAttributes<HTMLDivElement>>;
7
+ export {};
8
+ //# sourceMappingURL=SideNavFooter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SideNavFooter.d.ts","sourceRoot":"","sources":["../../../src/SideNav/SideNavFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA4B,cAAc,EAAE,MAAM,OAAO,CAAC;AAIjE,UAAU,kBAAmB,SAAQ,cAAc,CAAC,cAAc,CAAC;IACjE,yEAAyE;IACzE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAuBD,eAAO,MAAM,aAAa,+GAAqC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { HTMLAttributes } from 'react';
2
+ interface SideNavHeaderProps extends HTMLAttributes<HTMLDivElement> {
3
+ /** Optional. May add styles around the wrapper div of this component. */
4
+ className?: string;
5
+ }
6
+ export declare const SideNavHeader: import("react").ForwardRefExoticComponent<SideNavHeaderProps & import("react").RefAttributes<HTMLDivElement>>;
7
+ export {};
8
+ //# sourceMappingURL=SideNavHeader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SideNavHeader.d.ts","sourceRoot":"","sources":["../../../src/SideNav/SideNavHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA4B,cAAc,EAAE,MAAM,OAAO,CAAC;AAIjE,UAAU,kBAAmB,SAAQ,cAAc,CAAC,cAAc,CAAC;IACjE,yEAAyE;IACzE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAuBD,eAAO,MAAM,aAAa,+GAAqC,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { ElementType, HTMLAttributes, ReactNode } from 'react';
2
+ interface SideNavItemProps extends HTMLAttributes<HTMLDivElement> {
3
+ /** Optional. Specifies whether the side navigation item is active or not. */
4
+ active?: boolean;
5
+ /** Optional. May add styles around the wrapper div of this component. */
6
+ className?: string;
7
+ /** Optional. The component type or element type to be used for rendering the side navigation item. Defaults to 'a'.*/
8
+ component?: ElementType;
9
+ /** Optional. Specifies whether the side navigation item is disabled or not. */
10
+ disabled?: boolean;
11
+ /** Optional. A string representing the URL or path to navigate to when the item is clicked. Use this prop if the side navigation item is a link. */
12
+ href?: string;
13
+ /** Optional. A React node representing an icon to be displayed before the side navigation item text. */
14
+ icon?: ReactNode;
15
+ }
16
+ export declare const SideNavItem: import("react").ForwardRefExoticComponent<SideNavItemProps & import("react").RefAttributes<HTMLDivElement>>;
17
+ export {};
18
+ //# sourceMappingURL=SideNavItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SideNavItem.d.ts","sourceRoot":"","sources":["../../../src/SideNav/SideNavItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAA4B,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKzF,UAAU,gBAAiB,SAAQ,cAAc,CAAC,cAAc,CAAC;IAC/D,6EAA6E;IAC7E,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,yEAAyE;IACzE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sHAAsH;IACtH,SAAS,CAAC,EAAE,WAAW,CAAC;IACxB,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oJAAoJ;IACpJ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,wGAAwG;IACxG,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB;AA0CD,eAAO,MAAM,WAAW,6GAAmC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { HTMLAttributes } from 'react';
2
+ interface SideNavItemsProps extends HTMLAttributes<HTMLDivElement> {
3
+ /** Optional. May add styles around the wrapper div of this component. */
4
+ className?: string;
5
+ }
6
+ export declare const SideNavItems: import("react").ForwardRefExoticComponent<SideNavItemsProps & import("react").RefAttributes<HTMLDivElement>>;
7
+ export {};
8
+ //# sourceMappingURL=SideNavItems.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SideNavItems.d.ts","sourceRoot":"","sources":["../../../src/SideNav/SideNavItems.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA4B,cAAc,EAAE,MAAM,OAAO,CAAC;AAIjE,UAAU,iBAAkB,SAAQ,cAAc,CAAC,cAAc,CAAC;IAChE,yEAAyE;IACzE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAkCD,eAAO,MAAM,YAAY,8GAAoC,CAAC"}
@@ -0,0 +1,6 @@
1
+ export * from './SideNav';
2
+ export * from './SideNavFooter';
3
+ export * from './SideNavHeader';
4
+ export * from './SideNavItem';
5
+ export * from './SideNavItems';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/SideNav/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@youversion/design-system-components",
3
- "version": "0.30.0",
3
+ "version": "0.31.0",
4
4
  "main": "./dist/index.umd.js",
5
5
  "module": "./dist/index.es.js",
6
6
  "types": "./dist/index.d.ts",