@everlywell/consumer-ui 1.21.1 → 1.22.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/index.d.mts +4 -3
- package/index.d.ts +4 -3
- package/index.d.ts.map +1 -1
- package/index.js +10 -10
- package/index.mjs +541 -445
- package/lib/components/Navbar/BasketButton/BasketButton.d.ts +2 -2
- package/lib/components/Navbar/BasketButton/BasketButton.d.ts.map +1 -1
- package/lib/components/Navbar/NavButton/NavButton.d.ts.map +1 -1
- package/lib/components/Navbar/NavbarDrawerLink/NavbarDrawerLink.d.ts +9 -0
- package/lib/components/Navbar/NavbarDrawerLink/NavbarDrawerLink.d.ts.map +1 -0
- package/lib/components/Navbar/{MobileNavLink/MobileNavLink.stories.d.ts → NavbarDrawerLink/NavbarDrawerLink.stories.d.ts} +4 -4
- package/lib/components/Navbar/NavbarDrawerLink/NavbarDrawerLink.stories.d.ts.map +1 -0
- package/lib/components/Navbar/NavbarDrawerLink/index.d.ts +3 -0
- package/lib/components/Navbar/NavbarDrawerLink/index.d.ts.map +1 -0
- package/lib/components/Navbar/SpotlightCard/SpotlightCard.d.ts.map +1 -1
- package/lib/components/Navbar/TopNavIconButton/TopNavIconButton.d.ts +5 -0
- package/lib/components/Navbar/TopNavIconButton/TopNavIconButton.d.ts.map +1 -0
- package/lib/components/Navbar/TopNavIconButton/TopNavIconButton.stories.d.ts +8 -0
- package/lib/components/Navbar/TopNavIconButton/TopNavIconButton.stories.d.ts.map +1 -0
- package/lib/components/Navbar/TopNavIconButton/index.d.ts +3 -0
- package/lib/components/Navbar/TopNavIconButton/index.d.ts.map +1 -0
- package/lib/components/Navbar/TopNavigation/Logo.d.ts +2 -0
- package/lib/components/Navbar/TopNavigation/Logo.d.ts.map +1 -0
- package/lib/components/Navbar/TopNavigation/TopNavigation.d.ts +44 -0
- package/lib/components/Navbar/TopNavigation/TopNavigation.d.ts.map +1 -0
- package/lib/components/Navbar/TopNavigation/TopNavigation.stories.d.ts +20 -0
- package/lib/components/Navbar/TopNavigation/TopNavigation.stories.d.ts.map +1 -0
- package/lib/components/Navbar/TopNavigation/index.d.ts +3 -0
- package/lib/components/Navbar/TopNavigation/index.d.ts.map +1 -0
- package/lib/utils/testHelpers/rtl.d.ts +16 -0
- package/lib/utils/testHelpers/rtl.d.ts.map +1 -0
- package/package.json +1 -1
- package/lib/components/Navbar/DesktopNavLink/DesktopNavLink.d.ts +0 -9
- package/lib/components/Navbar/DesktopNavLink/DesktopNavLink.d.ts.map +0 -1
- package/lib/components/Navbar/DesktopNavLink/DesktopNavLink.stories.d.ts +0 -9
- package/lib/components/Navbar/DesktopNavLink/DesktopNavLink.stories.d.ts.map +0 -1
- package/lib/components/Navbar/DesktopNavLink/index.d.ts +0 -3
- package/lib/components/Navbar/DesktopNavLink/index.d.ts.map +0 -1
- package/lib/components/Navbar/MobileNavItems/MobileNavItems.d.ts +0 -7
- package/lib/components/Navbar/MobileNavItems/MobileNavItems.d.ts.map +0 -1
- package/lib/components/Navbar/MobileNavItems/MobileNavItems.stories.d.ts +0 -7
- package/lib/components/Navbar/MobileNavItems/MobileNavItems.stories.d.ts.map +0 -1
- package/lib/components/Navbar/MobileNavItems/index.d.ts +0 -3
- package/lib/components/Navbar/MobileNavItems/index.d.ts.map +0 -1
- package/lib/components/Navbar/MobileNavLink/MobileNavLink.d.ts +0 -9
- package/lib/components/Navbar/MobileNavLink/MobileNavLink.d.ts.map +0 -1
- package/lib/components/Navbar/MobileNavLink/MobileNavLink.stories.d.ts.map +0 -1
- package/lib/components/Navbar/MobileNavLink/index.d.ts +0 -3
- package/lib/components/Navbar/MobileNavLink/index.d.ts.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TopNavIconButtonProps } from '../TopNavIconButton';
|
|
2
2
|
/**
|
|
3
3
|
* Props for the BasketButton component.
|
|
4
4
|
*
|
|
@@ -7,7 +7,7 @@ import { IconButtonProps } from '../../../../../../ui-kit/src/index.ts';
|
|
|
7
7
|
*
|
|
8
8
|
* @property {number} count - The number of items in the basket.
|
|
9
9
|
*/
|
|
10
|
-
export type BasketButtonProps =
|
|
10
|
+
export type BasketButtonProps = TopNavIconButtonProps & {
|
|
11
11
|
count: number;
|
|
12
12
|
};
|
|
13
13
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BasketButton.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/BasketButton/BasketButton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BasketButton.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/BasketButton/BasketButton.tsx"],"names":[],"mappings":"AAGA,OAAyB,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE9E;;;;;;;GAOG;AAEH,MAAM,MAAM,iBAAiB,GAAG,qBAAqB,GAAG;IACtD,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;;;GAKG;AAEH,eAAO,MAAM,YAAY,8BAGtB,iBAAiB,4CA2BnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +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,
|
|
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,4CAsBhB,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { LinkProps } from '../../../../../../ui-kit/src/index.ts';
|
|
2
|
+
import { ReactElement } from 'react';
|
|
3
|
+
export interface NavbarDrawerLinkProps extends LinkProps {
|
|
4
|
+
label: string;
|
|
5
|
+
additionalContent?: string | ReactElement;
|
|
6
|
+
}
|
|
7
|
+
declare const NavbarDrawerLink: ({ label, additionalContent, ...wrapperProps }: NavbarDrawerLinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default NavbarDrawerLink;
|
|
9
|
+
//# sourceMappingURL=NavbarDrawerLink.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavbarDrawerLink.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/NavbarDrawerLink/NavbarDrawerLink.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,SAAS,EAAoB,MAAM,oBAAoB,CAAC;AAEvE,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAErC,MAAM,WAAW,qBAAsB,SAAQ,SAAS;IACtD,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB,CAAC,EAAE,MAAM,GAAG,YAAY,CAAC;CAC3C;AAOD,QAAA,MAAM,gBAAgB,kDAInB,qBAAqB,4CA0DvB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import
|
|
3
|
-
declare const meta: Meta<typeof
|
|
2
|
+
import NavbarDrawerLink from './NavbarDrawerLink';
|
|
3
|
+
declare const meta: Meta<typeof NavbarDrawerLink>;
|
|
4
4
|
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof
|
|
5
|
+
type Story = StoryObj<typeof NavbarDrawerLink>;
|
|
6
6
|
export declare const Default: Story;
|
|
7
7
|
export declare const WithStringAdditionalContent: Story;
|
|
8
8
|
export declare const WithElementAdditionalContent: Story;
|
|
9
|
-
//# sourceMappingURL=
|
|
9
|
+
//# sourceMappingURL=NavbarDrawerLink.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavbarDrawerLink.stories.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/NavbarDrawerLink/NavbarDrawerLink.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAElD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,gBAAgB,CAwBvC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE/C,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,KAMzC,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,KAU1C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/NavbarDrawerLink/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,cAAc,oBAAoB,CAAC"}
|
|
@@ -1 +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,
|
|
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,4CA+DpB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IconButtonProps } from '../../../../../../ui-kit/src/index.ts';
|
|
2
|
+
export type TopNavIconButtonProps = IconButtonProps;
|
|
3
|
+
export declare const TopNavIconButton: (props: IconButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export default TopNavIconButton;
|
|
5
|
+
//# sourceMappingURL=TopNavIconButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TopNavIconButton.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/TopNavIconButton/TopNavIconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAEjE,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC;AAEpD,eAAO,MAAM,gBAAgB,UAAW,eAAe,4CAsBtD,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { TopNavIconButton } from './TopNavIconButton';
|
|
3
|
+
declare const meta: Meta<typeof TopNavIconButton>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof TopNavIconButton>;
|
|
6
|
+
export declare const Search: Story;
|
|
7
|
+
export declare const Profile: Story;
|
|
8
|
+
//# sourceMappingURL=TopNavIconButton.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TopNavIconButton.stories.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/TopNavIconButton/TopNavIconButton.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,gBAAgB,CAMvC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE/C,eAAO,MAAM,MAAM,EAAE,KAKpB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/TopNavIconButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Logo.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/TopNavigation/Logo.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,+CAsB1B,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type TopNavigationProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Desktop only buttons that should be displayed at the top of the page.
|
|
5
|
+
* This should a container (div) with a list of displayed horizontally, using the NavButton component.
|
|
6
|
+
*/
|
|
7
|
+
desktopTopButtons: React.ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* This expects an element that should be a Link using the NavButton component. This is the registration button that will be displayed on the top right of the page.
|
|
10
|
+
* It should link to the kit registration page.
|
|
11
|
+
* */
|
|
12
|
+
kitRegistrationElement: React.ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* This expects an element that should be a Link using the TopNavIconButton component. This is the profile icon that will be displayed on the top right of the page.
|
|
15
|
+
* It should be a link to the user's profile page or the login page accordingly.
|
|
16
|
+
* */
|
|
17
|
+
profileElement: React.ReactNode;
|
|
18
|
+
/**
|
|
19
|
+
* This expects an element that should be using the BasketButton. This is the cart button that will be displayed on the top right of the page.
|
|
20
|
+
* It should be a link to the cart page.
|
|
21
|
+
* */
|
|
22
|
+
cartElement: React.ReactNode;
|
|
23
|
+
/**
|
|
24
|
+
* Callback for when the menu button is clicked
|
|
25
|
+
* */
|
|
26
|
+
onMenuClick: () => void;
|
|
27
|
+
/**
|
|
28
|
+
* Callback for when the search button is clicked
|
|
29
|
+
* */
|
|
30
|
+
onSearchClick?: () => void;
|
|
31
|
+
/**
|
|
32
|
+
* Whether the search button should be displayed. Remember to pass the onSearchClick callback if this is true.
|
|
33
|
+
* @default false
|
|
34
|
+
* */
|
|
35
|
+
hasSearch?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* URL for the logo link.
|
|
38
|
+
* @default 'https://www.everlywell.com'
|
|
39
|
+
* */
|
|
40
|
+
logoLink?: string;
|
|
41
|
+
};
|
|
42
|
+
export declare const TopNavigation: React.FC<TopNavigationProps>;
|
|
43
|
+
export default TopNavigation;
|
|
44
|
+
//# sourceMappingURL=TopNavigation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TopNavigation.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/TopNavigation/TopNavigation.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;;OAGG;IACH,iBAAiB,EAAE,KAAK,CAAC,SAAS,CAAC;IACnC;;;SAGK;IACL,sBAAsB,EAAE,KAAK,CAAC,SAAS,CAAC;IACxC;;;SAGK;IACL,cAAc,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC;;;SAGK;IACL,WAAW,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B;;SAEK;IACL,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB;;SAEK;IACL,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B;;;SAGK;IACL,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;SAGK;IACL,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA0DtD,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { TopNavigation } from './TopNavigation';
|
|
3
|
+
declare const meta: Meta<typeof TopNavigation>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof TopNavigation>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const withSearch: Story;
|
|
8
|
+
export declare const WithItems: {
|
|
9
|
+
args: {
|
|
10
|
+
cartElement: import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
desktopTopButtons?: import("react").ReactNode;
|
|
12
|
+
kitRegistrationElement?: import("react").ReactNode;
|
|
13
|
+
profileElement?: import("react").ReactNode;
|
|
14
|
+
onMenuClick?: (() => void) | undefined;
|
|
15
|
+
onSearchClick?: () => void;
|
|
16
|
+
hasSearch?: boolean;
|
|
17
|
+
logoLink?: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=TopNavigation.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TopNavigation.stories.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/TopNavigation/TopNavigation.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAKvD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,aAAa,CAMpC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,aAAa,CAAC,CAAC;AAE5C,eAAO,MAAM,OAAO,EAAE,KAoDrB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAKxB,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;;;;;;CAKrB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/TopNavigation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { theme } from '../../../../../ui-kit/src/index.ts';
|
|
2
|
+
import { RenderOptions, RenderResult } from '@testing-library/react';
|
|
3
|
+
import { ReactElement, ReactNode } from 'react';
|
|
4
|
+
type RenderOptionsWithBreakpoint = RenderOptions & {
|
|
5
|
+
breakpoint?: keyof typeof theme.breakpoints;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Custom render method that wraps unit under test with some app-level wrappers
|
|
9
|
+
* and providers
|
|
10
|
+
*/
|
|
11
|
+
declare function renderWithProviders(ui: ReactElement, options?: RenderOptionsWithBreakpoint): RenderResult & {
|
|
12
|
+
rerender: (ui: ReactNode, options?: RenderOptionsWithBreakpoint) => RenderResult;
|
|
13
|
+
};
|
|
14
|
+
export * from '@testing-library/react';
|
|
15
|
+
export { renderWithProviders, RenderOptionsWithBreakpoint };
|
|
16
|
+
//# sourceMappingURL=rtl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rtl.d.ts","sourceRoot":"","sources":["../../../../../../libs/consumer-ui/src/lib/utils/testHelpers/rtl.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAiB,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAU,aAAa,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC7E,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAwChD,KAAK,2BAA2B,GAAG,aAAa,GAAG;IACjD,UAAU,CAAC,EAAE,MAAM,OAAO,KAAK,CAAC,WAAW,CAAC;CAC7C,CAAC;AAEF;;;GAGG;AACH,iBAAS,mBAAmB,CAC1B,EAAE,EAAE,YAAY,EAChB,OAAO,CAAC,EAAE,2BAA2B,GACpC,YAAY,GAAG;IAChB,QAAQ,EAAE,CACR,EAAE,EAAE,SAAS,EACb,OAAO,CAAC,EAAE,2BAA2B,KAClC,YAAY,CAAC;CACnB,CAoBA;AAED,cAAc,wBAAwB,CAAC;AAEvC,OAAO,EAAE,mBAAmB,EAAE,2BAA2B,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { LinkProps } from '../../../../../../ui-kit/src/index.ts';
|
|
2
|
-
import { ReactElement } from 'react';
|
|
3
|
-
export interface DesktopNavLinkProps extends LinkProps {
|
|
4
|
-
label: string;
|
|
5
|
-
additionalContent?: string | ReactElement;
|
|
6
|
-
}
|
|
7
|
-
declare const DesktopNavLink: ({ label, additionalContent, ...wrapperProps }: DesktopNavLinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export default DesktopNavLink;
|
|
9
|
-
//# sourceMappingURL=DesktopNavLink.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import DesktopNavLink from './DesktopNavLink';
|
|
3
|
-
declare const meta: Meta<typeof DesktopNavLink>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof DesktopNavLink>;
|
|
6
|
-
export declare const Default: Story;
|
|
7
|
-
export declare const WithStringAdditionalContent: Story;
|
|
8
|
-
export declare const WithElementAdditionalContent: Story;
|
|
9
|
-
//# sourceMappingURL=DesktopNavLink.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { StackProps } from '../../../../../../ui-kit/src/index.ts';
|
|
2
|
-
export interface MobileNavItemsProps extends StackProps {
|
|
3
|
-
children: React.ReactNode;
|
|
4
|
-
}
|
|
5
|
-
declare const MobileNavItems: ({ children, ...wrapperProps }: MobileNavItemsProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export default MobileNavItems;
|
|
7
|
-
//# sourceMappingURL=MobileNavItems.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Meta } from '@storybook/react';
|
|
2
|
-
import { MobileNavItemsProps } from './MobileNavItems';
|
|
3
|
-
declare const _default: Meta;
|
|
4
|
-
export default _default;
|
|
5
|
-
export declare const Primary: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, MobileNavItemsProps>;
|
|
6
|
-
export declare const WithClickHandler: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, MobileNavItemsProps>;
|
|
7
|
-
//# sourceMappingURL=MobileNavItems.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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,9 +0,0 @@
|
|
|
1
|
-
import { LinkProps } from '../../../../../../ui-kit/src/index.ts';
|
|
2
|
-
import { ReactElement } from 'react';
|
|
3
|
-
export interface MobileNavLinkProps extends LinkProps {
|
|
4
|
-
label: string;
|
|
5
|
-
additionalContent?: string | ReactElement;
|
|
6
|
-
}
|
|
7
|
-
declare const MobileNavLink: ({ label, additionalContent, ...wrapperProps }: MobileNavLinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export default MobileNavLink;
|
|
9
|
-
//# sourceMappingURL=MobileNavLink.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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"}
|