@everlywell/consumer-ui 1.20.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.
@@ -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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everlywell/consumer-ui",
3
- "version": "1.20.0",
3
+ "version": "1.21.0",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {