@everlywell/consumer-ui 1.19.0 → 1.21.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 (67) hide show
  1. package/index.d.mts +7 -1
  2. package/index.d.ts +7 -1
  3. package/index.d.ts.map +1 -0
  4. package/index.js +11 -11
  5. package/index.mjs +532 -318
  6. package/lib/components/Navbar/BasketButton/BasketButton.d.ts +21 -0
  7. package/lib/components/Navbar/BasketButton/BasketButton.d.ts.map +1 -0
  8. package/lib/components/Navbar/BasketButton/BasketButton.stories.d.ts +9 -0
  9. package/lib/components/Navbar/BasketButton/BasketButton.stories.d.ts.map +1 -0
  10. package/lib/components/Navbar/BasketButton/index.d.ts +3 -0
  11. package/lib/components/Navbar/BasketButton/index.d.ts.map +1 -0
  12. package/lib/components/{CategoryLabel → Navbar/CategoryLabel}/CategoryLabel.d.ts +3 -2
  13. package/lib/components/Navbar/CategoryLabel/CategoryLabel.d.ts.map +1 -0
  14. package/lib/components/{CategoryLabel → Navbar/CategoryLabel}/CategoryLabel.stories.d.ts +1 -0
  15. package/lib/components/Navbar/CategoryLabel/CategoryLabel.stories.d.ts.map +1 -0
  16. package/lib/components/Navbar/CategoryLabel/index.d.ts +3 -0
  17. package/lib/components/Navbar/CategoryLabel/index.d.ts.map +1 -0
  18. package/lib/components/Navbar/DesktopNavLink/DesktopNavLink.d.ts +3 -2
  19. package/lib/components/Navbar/DesktopNavLink/DesktopNavLink.d.ts.map +1 -0
  20. package/lib/components/Navbar/DesktopNavLink/DesktopNavLink.stories.d.ts +1 -0
  21. package/lib/components/Navbar/DesktopNavLink/DesktopNavLink.stories.d.ts.map +1 -0
  22. package/lib/components/Navbar/DesktopNavLink/index.d.ts +1 -0
  23. package/lib/components/Navbar/DesktopNavLink/index.d.ts.map +1 -0
  24. package/lib/components/Navbar/MobileNavItems/MobileNavItems.d.ts +1 -0
  25. package/lib/components/Navbar/MobileNavItems/MobileNavItems.d.ts.map +1 -0
  26. package/lib/components/Navbar/MobileNavItems/MobileNavItems.stories.d.ts +1 -0
  27. package/lib/components/Navbar/MobileNavItems/MobileNavItems.stories.d.ts.map +1 -0
  28. package/lib/components/Navbar/MobileNavItems/index.d.ts +1 -0
  29. package/lib/components/Navbar/MobileNavItems/index.d.ts.map +1 -0
  30. package/lib/components/Navbar/MobileNavLink/MobileNavLink.d.ts +3 -2
  31. package/lib/components/Navbar/MobileNavLink/MobileNavLink.d.ts.map +1 -0
  32. package/lib/components/Navbar/MobileNavLink/MobileNavLink.stories.d.ts +1 -0
  33. package/lib/components/Navbar/MobileNavLink/MobileNavLink.stories.d.ts.map +1 -0
  34. package/lib/components/Navbar/MobileNavLink/index.d.ts +1 -0
  35. package/lib/components/Navbar/MobileNavLink/index.d.ts.map +1 -0
  36. package/lib/components/Navbar/NavButton/NavButton.d.ts +1 -0
  37. package/lib/components/Navbar/NavButton/NavButton.d.ts.map +1 -0
  38. package/lib/components/Navbar/NavButton/NavButton.stories.d.ts +1 -0
  39. package/lib/components/Navbar/NavButton/NavButton.stories.d.ts.map +1 -0
  40. package/lib/components/Navbar/NavButton/index.d.ts +1 -0
  41. package/lib/components/Navbar/NavButton/index.d.ts.map +1 -0
  42. package/lib/components/Navbar/SpotlightCard/SpotlightCard.d.ts +71 -0
  43. package/lib/components/Navbar/SpotlightCard/SpotlightCard.d.ts.map +1 -0
  44. package/lib/components/Navbar/SpotlightCard/SpotlightCard.stories.d.ts +8 -0
  45. package/lib/components/Navbar/SpotlightCard/SpotlightCard.stories.d.ts.map +1 -0
  46. package/lib/components/Navbar/SpotlightCard/index.d.ts +3 -0
  47. package/lib/components/Navbar/SpotlightCard/index.d.ts.map +1 -0
  48. package/lib/components/Stepper/Stepper.builder.d.ts +1 -0
  49. package/lib/components/Stepper/Stepper.builder.d.ts.map +1 -0
  50. package/lib/components/Stepper/Stepper.d.ts +1 -0
  51. package/lib/components/Stepper/Stepper.d.ts.map +1 -0
  52. package/lib/components/Stepper/Stepper.stories.d.ts +1 -0
  53. package/lib/components/Stepper/Stepper.stories.d.ts.map +1 -0
  54. package/lib/components/Stepper/index.d.ts +1 -0
  55. package/lib/components/Stepper/index.d.ts.map +1 -0
  56. package/lib/components/TemporaryCard/TemporaryCard.d.ts +1 -0
  57. package/lib/components/TemporaryCard/TemporaryCard.d.ts.map +1 -0
  58. package/lib/components/TemporaryCard/TemporaryCard.stories.d.ts +1 -0
  59. package/lib/components/TemporaryCard/TemporaryCard.stories.d.ts.map +1 -0
  60. package/lib/components/TemporaryCard/index.d.ts +1 -0
  61. package/lib/components/TemporaryCard/index.d.ts.map +1 -0
  62. package/lib/consumer-ui.d.ts +1 -0
  63. package/lib/consumer-ui.d.ts.map +1 -0
  64. package/lib/utils/utils.storybook.d.ts +1 -0
  65. package/lib/utils/utils.storybook.d.ts.map +1 -0
  66. package/package.json +1 -1
  67. package/lib/components/CategoryLabel/index.d.ts +0 -1
@@ -0,0 +1,21 @@
1
+ import { IconButtonProps } from '../../../../../../ui-kit/src/index.ts';
2
+ /**
3
+ * Props for the BasketButton component.
4
+ *
5
+ * @remarks
6
+ * This type extends the `IconButtonProps` from Everlywell UI Kit, adding the `count` property.
7
+ *
8
+ * @property {number} count - The number of items in the basket.
9
+ */
10
+ export type BasketButtonProps = IconButtonProps & {
11
+ count: number;
12
+ };
13
+ /**
14
+ * BasketButton component
15
+ *
16
+ * @param {BasketButtonProps} props - The props for the BasketButton component.
17
+ * @returns {JSX.Element} The rendered BasketButton component.
18
+ */
19
+ export declare const BasketButton: ({ count, ...buttonProps }: BasketButtonProps) => import("react/jsx-runtime").JSX.Element;
20
+ export default BasketButton;
21
+ //# sourceMappingURL=BasketButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BasketButton.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/BasketButton/BasketButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAmB,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAGtE;;;;;;;GAOG;AAEH,MAAM,MAAM,iBAAiB,GAAG,eAAe,GAAG;IAChD,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;;;GAKG;AAEH,eAAO,MAAM,YAAY,8BAGtB,iBAAiB,4CAoCnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { BasketButton } from './BasketButton';
3
+ declare const meta: Meta<typeof BasketButton>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof BasketButton>;
6
+ export declare const Default: Story;
7
+ export declare const WithItems: Story;
8
+ export declare const WithLargeCount: Story;
9
+ //# sourceMappingURL=BasketButton.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BasketButton.stories.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/BasketButton/BasketButton.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,YAAY,CAiBnC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,YAAY,CAAC,CAAC;AAE3C,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAKvB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAK5B,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './BasketButton';
2
+ export { default } from './BasketButton';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/BasketButton/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAE/B,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC"}
@@ -8,7 +8,7 @@ import { TextProps } from '@chakra-ui/react';
8
8
  * @property {string | number} children - The content to be displayed inside the CategoryLabel.
9
9
  * It can be either a string or a number.
10
10
  */
11
- type CategoryLabelProps = Omit<TextProps, 'children'> & {
11
+ export type CategoryLabelProps = Omit<TextProps, 'children'> & {
12
12
  children: string | number;
13
13
  };
14
14
  /**
@@ -18,4 +18,5 @@ type CategoryLabelProps = Omit<TextProps, 'children'> & {
18
18
  * @returns {JSX.Element} The rendered CategoryLabel component.
19
19
  */
20
20
  export declare const CategoryLabel: ({ children, ...props }: CategoryLabelProps) => JSX.Element;
21
- export {};
21
+ export default CategoryLabel;
22
+ //# sourceMappingURL=CategoryLabel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CategoryLabel.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/CategoryLabel/CategoryLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAEnD;;;;;;;;GAQG;AACH,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,GAAG;IAC7D,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC;CAC3B,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,aAAa,2BAGvB,kBAAkB,KAAG,GAAG,CAAC,OAM3B,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -5,3 +5,4 @@ export default meta;
5
5
  type Story = StoryObj<typeof CategoryLabel>;
6
6
  export declare const Default: Story;
7
7
  export declare const WithCustomProps: Story;
8
+ //# sourceMappingURL=CategoryLabel.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CategoryLabel.stories.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/CategoryLabel/CategoryLabel.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,aAAa,CAiBpC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,aAAa,CAAC,CAAC;AAE5C,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAM7B,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { default } from './CategoryLabel';
2
+ export * from './CategoryLabel';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/CategoryLabel/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,cAAc,iBAAiB,CAAC"}
@@ -1,8 +1,9 @@
1
1
  import { LinkProps } from '../../../../../../ui-kit/src/index.ts';
2
2
  import { ReactElement } from 'react';
3
- export interface DesktopNavbarLink extends LinkProps {
3
+ export interface DesktopNavLinkProps extends LinkProps {
4
4
  label: string;
5
5
  additionalContent?: string | ReactElement;
6
6
  }
7
- declare const DesktopNavLink: ({ label, additionalContent, ...wrapperProps }: DesktopNavbarLink) => import("react/jsx-runtime").JSX.Element;
7
+ declare const DesktopNavLink: ({ label, additionalContent, ...wrapperProps }: DesktopNavLinkProps) => import("react/jsx-runtime").JSX.Element;
8
8
  export default DesktopNavLink;
9
+ //# sourceMappingURL=DesktopNavLink.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DesktopNavLink.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/DesktopNavLink/DesktopNavLink.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,SAAS,EAAoB,MAAM,oBAAoB,CAAC;AAEvE,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAErC,MAAM,WAAW,mBAAoB,SAAQ,SAAS;IACpD,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB,CAAC,EAAE,MAAM,GAAG,YAAY,CAAC;CAC3C;AAED,QAAA,MAAM,cAAc,kDAIjB,mBAAmB,4CA0CrB,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -6,3 +6,4 @@ type Story = StoryObj<typeof DesktopNavLink>;
6
6
  export declare const Default: Story;
7
7
  export declare const WithStringAdditionalContent: Story;
8
8
  export declare const WithElementAdditionalContent: Story;
9
+ //# sourceMappingURL=DesktopNavLink.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DesktopNavLink.stories.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/DesktopNavLink/DesktopNavLink.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAE9C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,cAAc,CAiBrC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,cAAc,CAAC,CAAC;AAE7C,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,KAMzC,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,KAM1C,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export { default } from './DesktopNavLink';
2
2
  export * from './DesktopNavLink';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/DesktopNavLink/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,cAAc,kBAAkB,CAAC"}
@@ -4,3 +4,4 @@ export interface MobileNavItemsProps extends StackProps {
4
4
  }
5
5
  declare const MobileNavItems: ({ children, ...wrapperProps }: MobileNavItemsProps) => import("react/jsx-runtime").JSX.Element;
6
6
  export default MobileNavItems;
7
+ //# sourceMappingURL=MobileNavItems.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MobileNavItems.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/MobileNavItems/MobileNavItems.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEvD,MAAM,WAAW,mBAAoB,SAAQ,UAAU;IACrD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,QAAA,MAAM,cAAc,kCAAmC,mBAAmB,4CAUzE,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -4,3 +4,4 @@ declare const _default: Meta;
4
4
  export default _default;
5
5
  export declare const Primary: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, MobileNavItemsProps>;
6
6
  export declare const WithClickHandler: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, MobileNavItemsProps>;
7
+ //# sourceMappingURL=MobileNavItems.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MobileNavItems.stories.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/MobileNavItems/MobileNavItems.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAExC,OAAuB,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;wBAmBlE,IAAI;AAHT,wBAGU;AAEV,eAAO,MAAM,OAAO,0GAYnB,CAAC;AAEF,eAAO,MAAM,gBAAgB,0GAqB5B,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export { default } from './MobileNavItems';
2
2
  export * from './MobileNavItems';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/MobileNavItems/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,cAAc,kBAAkB,CAAC"}
@@ -1,8 +1,9 @@
1
1
  import { LinkProps } from '../../../../../../ui-kit/src/index.ts';
2
2
  import { ReactElement } from 'react';
3
- export interface MobileNavbarLink extends LinkProps {
3
+ export interface MobileNavLinkProps extends LinkProps {
4
4
  label: string;
5
5
  additionalContent?: string | ReactElement;
6
6
  }
7
- declare const MobileNavLink: ({ label, additionalContent, ...wrapperProps }: MobileNavbarLink) => import("react/jsx-runtime").JSX.Element;
7
+ declare const MobileNavLink: ({ label, additionalContent, ...wrapperProps }: MobileNavLinkProps) => import("react/jsx-runtime").JSX.Element;
8
8
  export default MobileNavLink;
9
+ //# sourceMappingURL=MobileNavLink.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MobileNavLink.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/MobileNavLink/MobileNavLink.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,SAAS,EAAoB,MAAM,oBAAoB,CAAC;AAEvE,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAErC,MAAM,WAAW,kBAAmB,SAAQ,SAAS;IACnD,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB,CAAC,EAAE,MAAM,GAAG,YAAY,CAAC;CAC3C;AAED,QAAA,MAAM,aAAa,kDAIhB,kBAAkB,4CA6CpB,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -6,3 +6,4 @@ type Story = StoryObj<typeof MobileNavLink>;
6
6
  export declare const Default: Story;
7
7
  export declare const WithStringAdditionalContent: Story;
8
8
  export declare const WithElementAdditionalContent: Story;
9
+ //# sourceMappingURL=MobileNavLink.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MobileNavLink.stories.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/MobileNavLink/MobileNavLink.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAE5C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,aAAa,CAwBpC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,aAAa,CAAC,CAAC;AAE5C,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,KAMzC,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,KAM1C,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export { default } from './MobileNavLink';
2
2
  export * from './MobileNavLink';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/MobileNavLink/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,cAAc,iBAAiB,CAAC"}
@@ -9,3 +9,4 @@ export interface NavButtonProps extends Omit<ButtonProps, 'children'> {
9
9
  }
10
10
  declare const NavButton: ({ children, isSelected, ...buttonProps }: NavButtonProps) => import("react/jsx-runtime").JSX.Element;
11
11
  export default NavButton;
12
+ //# sourceMappingURL=NavButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NavButton.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/NavButton/NavButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEzD,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,WAAW,EAAE,UAAU,CAAC;IACnE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;;SAGK;IACL,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,QAAA,MAAM,SAAS,6CAIZ,cAAc,4CAoBhB,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -5,3 +5,4 @@ export default meta;
5
5
  type Story = StoryObj<typeof NavButton>;
6
6
  export declare const Default: Story;
7
7
  export declare const WithOverrides: Story;
8
+ //# sourceMappingURL=NavButton.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NavButton.stories.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/NavButton/NavButton.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,SAAS,MAAM,aAAa,CAAC;AAGpC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,SAAS,CAGhC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,SAAS,CAAC,CAAC;AAExC,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAa3B,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export { default } from './NavButton';
2
2
  export type { NavButtonProps } from './NavButton';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/NavButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,71 @@
1
+ import { ReactElement } from 'react';
2
+ /**
3
+ * Base properties for the SpotlightCard component.
4
+ */
5
+ interface BaseSpotlightCardProps {
6
+ /**
7
+ * The title text to display in the card
8
+ * @type {string}
9
+ */
10
+ title: string;
11
+ /**
12
+ * The description text to display in the card
13
+ * @type {string}
14
+ */
15
+ description: string;
16
+ /**
17
+ * The button element to be displayed on the card
18
+ * @type {ReactElement}
19
+ */
20
+ button: ReactElement;
21
+ /**
22
+ * The background color of the card. Use a color from the theme.
23
+ * @type {string}
24
+ * @default 'tints.lightCream'
25
+ */
26
+ backgroundColor: string;
27
+ /**
28
+ * Optional function called when the card is clicked
29
+ * @type {() => void}
30
+ */
31
+ onClick?: () => void;
32
+ }
33
+ /**
34
+ * Properties for the SpotlightCard component when using an image URL.
35
+ */
36
+ export interface SpotlightCardWithImageSrc extends BaseSpotlightCardProps {
37
+ /**
38
+ * The URL of the image to display
39
+ * @type {string}
40
+ */
41
+ imageSrc: string;
42
+ /**
43
+ * The image element should not be provided when imageSrc is used
44
+ * @type {never}
45
+ */
46
+ imageElement?: never;
47
+ }
48
+ /**
49
+ * Properties for the SpotlightCard component when using a custom image element.
50
+ */
51
+ export interface SpotlightCardWithImageElement extends BaseSpotlightCardProps {
52
+ /**
53
+ * A custom React element to use as the image
54
+ * @type {ReactElement}
55
+ */
56
+ imageElement: ReactElement;
57
+ /**
58
+ * The image source should not be provided when imageElement is used
59
+ * @type {never}
60
+ */
61
+ imageSrc?: never;
62
+ }
63
+ /**
64
+ * A card component that displays an image, title, description, and a button.
65
+ * The image can be provided either as a URL string or as a custom React element.
66
+ * The card has different layouts for mobile and desktop views.
67
+ */
68
+ export type SpotlightCardProps = SpotlightCardWithImageSrc | SpotlightCardWithImageElement;
69
+ export declare const SpotlightCard: ({ title, description, imageSrc, imageElement, button, backgroundColor, onClick, }: SpotlightCardProps) => import("react/jsx-runtime").JSX.Element;
70
+ export default SpotlightCard;
71
+ //# sourceMappingURL=SpotlightCard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SpotlightCard.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/SpotlightCard/SpotlightCard.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAErC;;GAEG;AACH,UAAU,sBAAsB;IAC9B;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,MAAM,EAAE,YAAY,CAAC;IAErB;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,yBAA0B,SAAQ,sBAAsB;IACvE;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,6BAA8B,SAAQ,sBAAsB;IAC3E;;;OAGG;IACH,YAAY,EAAE,YAAY,CAAC;IAE3B;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC;CAClB;AAED;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAC1B,yBAAyB,GACzB,6BAA6B,CAAC;AAElC,eAAO,MAAM,aAAa,sFAQvB,kBAAkB,4CA8DpB,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import SpotlightCard from './';
3
+ declare const meta: Meta<typeof SpotlightCard>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof SpotlightCard>;
6
+ export declare const WithImageSrc: Story;
7
+ export declare const WithImageElement: Story;
8
+ //# sourceMappingURL=SpotlightCard.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SpotlightCard.stories.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/SpotlightCard/SpotlightCard.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,aAAa,MAAM,IAAI,CAAC;AAK/B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,aAAa,CAcpC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,aAAa,CAAC,CAAC;AAG5C,eAAO,MAAM,YAAY,EAAE,KAY1B,CAAC;AAGF,eAAO,MAAM,gBAAgB,EAAE,KAqB9B,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { default } from './SpotlightCard';
2
+ export * from './SpotlightCard';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/SpotlightCard/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,cAAc,iBAAiB,CAAC"}
@@ -1,2 +1,3 @@
1
1
  import { StepperProps } from './Stepper';
2
2
  export declare const buildStepperData: (overrides?: Partial<StepperProps>) => StepperProps;
3
+ //# sourceMappingURL=Stepper.builder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Stepper.builder.d.ts","sourceRoot":"","sources":["../../../../../../libs/consumer-ui/src/lib/components/Stepper/Stepper.builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC,eAAO,MAAM,gBAAgB,eAChB,OAAO,CAAC,YAAY,CAAC,KAC/B,YAYF,CAAC"}
@@ -13,3 +13,4 @@ export interface StepperProps {
13
13
  }
14
14
  declare const _default: React.NamedExoticComponent<StepperProps>;
15
15
  export default _default;
16
+ //# sourceMappingURL=Stepper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Stepper.d.ts","sourceRoot":"","sources":["../../../../../../libs/consumer-ui/src/lib/components/Stepper/Stepper.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAIzC,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,YAAY,CAAC,EAAE;QACb,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;CACH;;AAkID,wBAAmC"}
@@ -40,3 +40,4 @@ export declare const VarianEggplanHideIndicatortExample: import("@storybook/csf"
40
40
  steps: import("./Stepper").StepProps[];
41
41
  activeStepIndex: number;
42
42
  }>;
43
+ //# sourceMappingURL=Stepper.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Stepper.stories.d.ts","sourceRoot":"","sources":["../../../../../../libs/consumer-ui/src/lib/components/Stepper/Stepper.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAW,MAAM,kBAAkB,CAAC;AAGjD,OAAgB,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;wBA2B7C,IAAI;AAHT,wBAGU;AAiBV;;;;GAIG;AACH,eAAO,MAAM,eAAe,mGAG1B,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;EAYzC,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;EAWjC,CAAC;AAEF,eAAO,MAAM,kCAAkC;;;;;;;;EAY9C,CAAC"}
@@ -1,3 +1,4 @@
1
1
  export { default } from './Stepper';
2
2
  export * from './Stepper';
3
3
  export * from './Stepper.builder';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../libs/consumer-ui/src/lib/components/Stepper/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC"}
@@ -17,3 +17,4 @@ export type TemporaryCardProps = {
17
17
  * This component is just to test the flow of the component library. To be removed.
18
18
  */
19
19
  export default function TemporaryCard({ title, subtitle, children, }: TemporaryCardProps): import("react/jsx-runtime").JSX.Element;
20
+ //# sourceMappingURL=TemporaryCard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TemporaryCard.d.ts","sourceRoot":"","sources":["../../../../../../libs/consumer-ui/src/lib/components/TemporaryCard/TemporaryCard.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF;;GAEG;AAEH,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EACpC,KAAK,EACL,QAAQ,EACR,QAAQ,GACT,EAAE,kBAAkB,2CAkBpB"}
@@ -5,3 +5,4 @@ export declare const Primary: import("@storybook/csf").AnnotatedStoryFn<import("
5
5
  title: string;
6
6
  subtitle: string;
7
7
  }>;
8
+ //# sourceMappingURL=TemporaryCard.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TemporaryCard.stories.d.ts","sourceRoot":"","sources":["../../../../../../libs/consumer-ui/src/lib/components/TemporaryCard/TemporaryCard.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;wBAuBnC,IAAI;AAlBT,wBAkBU;AAEV,eAAO,MAAM,OAAO;;;EAanB,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export { default } from './TemporaryCard';
2
2
  export * from './TemporaryCard';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../libs/consumer-ui/src/lib/components/TemporaryCard/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,cAAc,iBAAiB,CAAC"}
@@ -2,3 +2,4 @@ export interface ConsumerUiProps {
2
2
  }
3
3
  export declare function ConsumerUi(props: ConsumerUiProps): import("react/jsx-runtime").JSX.Element;
4
4
  export default ConsumerUi;
5
+ //# sourceMappingURL=consumer-ui.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"consumer-ui.d.ts","sourceRoot":"","sources":["../../../../libs/consumer-ui/src/lib/consumer-ui.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,eAAe;CAAG;AAMnC,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,2CAMhD;AAED,eAAe,UAAU,CAAC"}
@@ -22,3 +22,4 @@ type Options<T> = {
22
22
  export declare function createPrimary<T>(story: StoryFn<T>, options: Options<T>): StoryFn<T>;
23
23
  export declare function flattenObject(obj: Record<string, unknown>, prefix?: string): Record<string, unknown>;
24
24
  export {};
25
+ //# sourceMappingURL=utils.storybook.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.storybook.d.ts","sourceRoot":"","sources":["../../../../../libs/consumer-ui/src/lib/utils/utils.storybook.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,KAAK,OAAO,CAAC,CAAC,IAAI;IAChB;;OAEG;IACH,YAAY,EAAE,CAAC,CAAC;IAChB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,MAAM,CAAC,EAAE,YAAY,GAAG,QAAQ,GAAG,UAAU,CAAC;CAC/C,CAAC;AAEF,wBAAgB,aAAa,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,cAqBtE;AAGD,wBAAgB,aAAa,CAC3B,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC5B,MAAM,SAAK,GACV,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAwBzB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everlywell/consumer-ui",
3
- "version": "1.19.0",
3
+ "version": "1.21.0",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
@@ -1 +0,0 @@
1
- export * from './CategoryLabel';