@everlywell/consumer-ui 1.22.0 → 1.23.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/index.d.mts +1 -1
- package/index.d.ts +1 -1
- package/index.d.ts.map +1 -1
- package/index.js +10 -10
- package/index.mjs +427 -409
- package/lib/components/Navbar/NavButton/NavButton.d.ts +3 -8
- package/lib/components/Navbar/NavButton/NavButton.d.ts.map +1 -1
- package/lib/components/Navbar/NavSkeleton/NavSkeleton.d.ts +20 -0
- package/lib/components/Navbar/NavSkeleton/NavSkeleton.d.ts.map +1 -0
- package/lib/components/Navbar/NavSkeleton/NavSkeleton.stories.d.ts +10 -0
- package/lib/components/Navbar/NavSkeleton/NavSkeleton.stories.d.ts.map +1 -0
- package/lib/components/Navbar/NavSkeleton/index.d.ts +3 -0
- package/lib/components/Navbar/NavSkeleton/index.d.ts.map +1 -0
- package/lib/components/Navbar/NavbarDrawer/NavbarDrawer.d.ts +52 -0
- package/lib/components/Navbar/NavbarDrawer/NavbarDrawer.d.ts.map +1 -0
- package/lib/components/Navbar/NavbarDrawer/NavbarDrawer.stories.d.ts +9 -0
- package/lib/components/Navbar/NavbarDrawer/NavbarDrawer.stories.d.ts.map +1 -0
- package/lib/components/Navbar/NavbarDrawer/index.d.ts +3 -0
- package/lib/components/Navbar/NavbarDrawer/index.d.ts.map +1 -0
- package/lib/components/Navbar/NavbarDrawerLink/NavbarDrawerLink.d.ts.map +1 -1
- package/lib/components/Navbar/SpotlightCard/SpotlightCard.d.ts.map +1 -1
- package/package.json +1 -1
- package/lib/components/TemporaryCard/TemporaryCard.d.ts +0 -20
- package/lib/components/TemporaryCard/TemporaryCard.d.ts.map +0 -1
- package/lib/components/TemporaryCard/TemporaryCard.stories.d.ts +0 -8
- package/lib/components/TemporaryCard/TemporaryCard.stories.d.ts.map +0 -1
- package/lib/components/TemporaryCard/index.d.ts +0 -3
- package/lib/components/TemporaryCard/index.d.ts.map +0 -1
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import { ButtonProps } from '
|
|
2
|
-
export interface NavButtonProps extends
|
|
3
|
-
children: React.ReactNode;
|
|
4
|
-
/**
|
|
5
|
-
* Whether the button is selected or not
|
|
6
|
-
* @default false
|
|
7
|
-
* */
|
|
1
|
+
import type { ComponentWithAs, ButtonProps as ChakraButtonProps } from '@chakra-ui/react';
|
|
2
|
+
export interface NavButtonProps extends ChakraButtonProps {
|
|
8
3
|
isSelected?: boolean;
|
|
9
4
|
}
|
|
10
|
-
declare const NavButton:
|
|
5
|
+
declare const NavButton: ComponentWithAs<"button", NavButtonProps>;
|
|
11
6
|
export default NavButton;
|
|
12
7
|
//# sourceMappingURL=NavButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavButton.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/NavButton/NavButton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NavButton.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/NavButton/NavButton.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,eAAe,EACf,WAAW,IAAI,iBAAiB,EACjC,MAAM,kBAAkB,CAAC;AAE1B,MAAM,WAAW,cAAe,SAAQ,iBAAiB;IACvD,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAgBD,QAAA,MAAM,SAAS,EAyBV,eAAe,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC;AAE/C,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
export interface NavSkeletonProps {
|
|
3
|
+
/**
|
|
4
|
+
* Number of navigation links to display
|
|
5
|
+
* @default 5
|
|
6
|
+
*/
|
|
7
|
+
numLinks?: number;
|
|
8
|
+
/**
|
|
9
|
+
* Whether to show the promo button
|
|
10
|
+
* @default true
|
|
11
|
+
*/
|
|
12
|
+
showPromoButton?: boolean;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* A loading skeleton component for the navigation bar that provides a visual placeholder
|
|
16
|
+
* while content is being loaded.
|
|
17
|
+
*/
|
|
18
|
+
declare const NavSkeleton: FC<NavSkeletonProps>;
|
|
19
|
+
export default NavSkeleton;
|
|
20
|
+
//# sourceMappingURL=NavSkeleton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavSkeleton.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/NavSkeleton/NavSkeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAU3B,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED;;;GAGG;AACH,QAAA,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAiCrC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import NavSkeleton from './NavSkeleton';
|
|
3
|
+
declare const meta: Meta<typeof NavSkeleton>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof NavSkeleton>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithCustomLinks: Story;
|
|
8
|
+
export declare const WithoutPromoButton: Story;
|
|
9
|
+
export declare const CustomLinksAndNoPromo: Story;
|
|
10
|
+
//# sourceMappingURL=NavSkeleton.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavSkeleton.stories.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/NavSkeleton/NavSkeleton.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,WAAW,MAAM,eAAe,CAAC;AAExC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CAkBlC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,WAAW,CAAC,CAAC;AAE1C,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAI7B,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,KAIhC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,KAKnC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/NavSkeleton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type NavbarDrawerProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Whether the drawer is open. Defaults to false.
|
|
5
|
+
*/
|
|
6
|
+
isOpen: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Callback for when the drawer should close
|
|
9
|
+
*/
|
|
10
|
+
onClose: () => void;
|
|
11
|
+
/**
|
|
12
|
+
* The title text to display in the drawer header
|
|
13
|
+
*/
|
|
14
|
+
title: string;
|
|
15
|
+
/**
|
|
16
|
+
* Mobile navigation links that should be displayed at the top of the drawer.
|
|
17
|
+
* This should be a container with a list of NavbarDrawerLink components.
|
|
18
|
+
*/
|
|
19
|
+
navDrawerLinks: React.ReactNode;
|
|
20
|
+
/**
|
|
21
|
+
* Bottom section content including promo and navigation buttons.
|
|
22
|
+
* This should be a container with the promo content and NavButton components.
|
|
23
|
+
*/
|
|
24
|
+
bottomNavButtons: React.ReactNode;
|
|
25
|
+
/**
|
|
26
|
+
* Optional spotlight cards. This should be using the SpotlightCard component. If passing multiple cards, wrap them in a fragment <></>.
|
|
27
|
+
*/
|
|
28
|
+
spotlightCards?: React.ReactNode;
|
|
29
|
+
/**
|
|
30
|
+
* Optional button to be displayed at the bottom of the drawer.
|
|
31
|
+
*/
|
|
32
|
+
bottomButton?: React.ReactNode;
|
|
33
|
+
/**
|
|
34
|
+
* Whether to show the back button. Only use in mobile view.
|
|
35
|
+
* @default true
|
|
36
|
+
*/
|
|
37
|
+
hasBackButton?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Callback for when the back button is clicked.
|
|
40
|
+
* Only used when hasBackButton is true.
|
|
41
|
+
*/
|
|
42
|
+
onBackClick?: () => void;
|
|
43
|
+
/**
|
|
44
|
+
* Whether the drawer has only spotlight cards.
|
|
45
|
+
* This is used to adjust the layout of the drawer.
|
|
46
|
+
* @default false
|
|
47
|
+
*/
|
|
48
|
+
hasOnlySpotlightCards?: boolean;
|
|
49
|
+
};
|
|
50
|
+
export declare const NavbarDrawer: React.FC<NavbarDrawerProps>;
|
|
51
|
+
export default NavbarDrawer;
|
|
52
|
+
//# sourceMappingURL=NavbarDrawer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavbarDrawer.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/NavbarDrawer/NavbarDrawer.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,cAAc,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC;;;OAGG;IACH,gBAAgB,EAAE,KAAK,CAAC,SAAS,CAAC;IAClC;;OAEG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACjC;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAkIpD,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { NavbarDrawer } from './NavbarDrawer';
|
|
3
|
+
declare const meta: Meta<typeof NavbarDrawer>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof NavbarDrawer>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const MobileMenu: Story;
|
|
8
|
+
export declare const WithOnlySpotlightCards: Story;
|
|
9
|
+
//# sourceMappingURL=NavbarDrawer.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavbarDrawer.stories.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/NavbarDrawer/NavbarDrawer.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAY9C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,YAAY,CAkBnC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,YAAY,CAAC,CAAC;AAiH3C,eAAO,MAAM,OAAO,EAAE,KAQrB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAOxB,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,KAiCpC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/NavbarDrawer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,cAAc,gBAAgB,CAAC"}
|
|
@@ -1 +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,
|
|
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,4CA2DvB,CAAC;AAEF,eAAe,gBAAgB,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,4CAoEpB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export type TemporaryCardProps = {
|
|
3
|
-
/**
|
|
4
|
-
* The title of the card
|
|
5
|
-
*/
|
|
6
|
-
title: string;
|
|
7
|
-
/**
|
|
8
|
-
* The subtitle of the card
|
|
9
|
-
*/
|
|
10
|
-
subtitle: string;
|
|
11
|
-
/**
|
|
12
|
-
* The children of the card
|
|
13
|
-
*/
|
|
14
|
-
children: React.ReactNode;
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* This component is just to test the flow of the component library. To be removed.
|
|
18
|
-
*/
|
|
19
|
-
export default function TemporaryCard({ title, subtitle, children, }: TemporaryCardProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
-
//# sourceMappingURL=TemporaryCard.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Meta } from '@storybook/react';
|
|
2
|
-
declare const _default: Meta;
|
|
3
|
-
export default _default;
|
|
4
|
-
export declare const Primary: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, {
|
|
5
|
-
title: string;
|
|
6
|
-
subtitle: string;
|
|
7
|
-
}>;
|
|
8
|
-
//# sourceMappingURL=TemporaryCard.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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"}
|