@everlywell/consumer-ui 1.44.0 → 1.45.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.js +9 -9
- package/index.mjs +1026 -1081
- package/lib/components/Navbar/NavigationBar/NavigationBar.builder.d.ts.map +1 -1
- package/lib/components/Navbar/NavigationBar/NavigationBar.d.ts +0 -53
- package/lib/components/Navbar/NavigationBar/NavigationBar.d.ts.map +1 -1
- package/lib/components/Navbar/NavigationBar/NavigationBar.stories.d.ts +0 -12
- package/lib/components/Navbar/NavigationBar/NavigationBar.stories.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationBar.builder.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/NavigationBar/NavigationBar.builder.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,iBAAiB,CAAC;AAKzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAOtD,eAAO,MAAM,iBAAiB,EAAE,kBAqB/B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,CAAC,kBAAkB,GAAG,iBAAiB,CAAC,EAgOpE,CAAC;AAEF,eAAO,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"NavigationBar.builder.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/NavigationBar/NavigationBar.builder.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,iBAAiB,CAAC;AAKzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAOtD,eAAO,MAAM,iBAAiB,EAAE,kBAqB/B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,CAAC,kBAAkB,GAAG,iBAAiB,CAAC,EAgOpE,CAAC;AAEF,eAAO,MAAM,uBAAuB,2CAyBnC,CAAC;AAmEF,eAAO,MAAM,YAAY,EAAE,kBAO1B,CAAC;AAEF,eAAO,MAAM,uBAAuB,WAC3B,OAAO,CAAC,kBAAkB,CAAC,KACjC,kBAGD,CAAC"}
|
|
@@ -59,15 +59,6 @@ export type NavigationBarProps = {
|
|
|
59
59
|
* Array of navigation categories or direct links
|
|
60
60
|
*/
|
|
61
61
|
categories: (NavigationCategory | NavigationBarLink)[];
|
|
62
|
-
/**
|
|
63
|
-
* Number of items in the cart
|
|
64
|
-
* @default 0
|
|
65
|
-
*/
|
|
66
|
-
numberOfCartItems: number;
|
|
67
|
-
/**
|
|
68
|
-
* Callback for when the cart button is clicked
|
|
69
|
-
*/
|
|
70
|
-
onCartClick: VoidFunction;
|
|
71
62
|
/**
|
|
72
63
|
* Optional label for the main category. Used only for mobile navigation.
|
|
73
64
|
* @default 'menu'
|
|
@@ -82,34 +73,6 @@ export type NavigationBarProps = {
|
|
|
82
73
|
* @default 'https://www.everlywell.com'
|
|
83
74
|
*/
|
|
84
75
|
logoLink?: string;
|
|
85
|
-
/**
|
|
86
|
-
* Whether to show the search button
|
|
87
|
-
* @default true
|
|
88
|
-
*/
|
|
89
|
-
hasSearch?: boolean;
|
|
90
|
-
/**
|
|
91
|
-
* Whether to show the EVA search or ask button
|
|
92
|
-
* @default true
|
|
93
|
-
*/
|
|
94
|
-
hasEvaEnabled?: boolean;
|
|
95
|
-
/**
|
|
96
|
-
* Callback for when the EVA ask or search button is clicked
|
|
97
|
-
*/
|
|
98
|
-
onEvaClick?: VoidFunction;
|
|
99
|
-
/**
|
|
100
|
-
* Callback for when the search button is clicked
|
|
101
|
-
*/
|
|
102
|
-
onSearchClick?: VoidFunction;
|
|
103
|
-
/**
|
|
104
|
-
* URL for the registration link
|
|
105
|
-
* @default 'https://www.everlywell.com/register'
|
|
106
|
-
*/
|
|
107
|
-
registrationUrl: string;
|
|
108
|
-
/**
|
|
109
|
-
* URL for the login/profile link. Pass it accordingly to go to login or my everly.
|
|
110
|
-
* @default 'https://secure.everlywell.com/login'
|
|
111
|
-
*/
|
|
112
|
-
profileUrl: string;
|
|
113
76
|
/**
|
|
114
77
|
* Array of buttons to show in the mobile bottom navigation.
|
|
115
78
|
* These buttons will be displayed at the bottom of the mobile navigation drawer.
|
|
@@ -127,22 +90,6 @@ export type NavigationBarProps = {
|
|
|
127
90
|
* Callback for when a category is opened/clicked
|
|
128
91
|
*/
|
|
129
92
|
onCategoryOpen?(label: string): void;
|
|
130
|
-
/**
|
|
131
|
-
* Callback for when the mobile menu is opened
|
|
132
|
-
* */
|
|
133
|
-
onMobileMenuOpen?: VoidFunction;
|
|
134
|
-
/**
|
|
135
|
-
* Callback for when the back button is clicked to go back to the main menu. Used in the category drawer for mobile.
|
|
136
|
-
* */
|
|
137
|
-
onBackToMainMenu?: VoidFunction;
|
|
138
|
-
/**
|
|
139
|
-
* Callback for when the register kit button is clicked. Desktop only.
|
|
140
|
-
* */
|
|
141
|
-
onRegisterKitClick?: VoidFunction;
|
|
142
|
-
/**
|
|
143
|
-
* Callback for when the profile button is clicked (to login or go to my everly).
|
|
144
|
-
* */
|
|
145
|
-
onProfileClick?: VoidFunction;
|
|
146
93
|
/**
|
|
147
94
|
* Callback for when the logo is clicked
|
|
148
95
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationBar.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/NavigationBar/NavigationBar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NavigationBar.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/NavigationBar/NavigationBar.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,EAAY,YAAY,EAAa,MAAM,OAAO,CAAC;AAIjE,OAAkB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACzD,OAAsB,EAAE,kBAAkB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CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,UAAU,EAAE,CAAC,kBAAkB,GAAG,iBAAiB,CAAC,EAAE,CAAC;IACvD;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,aAAa,CAAC,EAAE,mBAAmB,CAAC;IACpC;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;;OAMG;IACH,mBAAmB,CAAC,EAAE,KAAK,CAAC,YAAY,EAAE,CAAC;IAC3C;;OAEG;IACH,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,EAAE,KAAK,IAAI,CAAC;IAIzE,WAAW,CAAC,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC;;OAEG;IACH,cAAc,CAAC,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC;;OAEG;IACH,WAAW,CAAC,EAAE,YAAY,CAAC;IAC3B;;;OAGG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B,0EAA0E;IAC1E,sBAAsB,CAAC,EAAE,YAAY,CAAC;IACtC,oEAAoE;IACpE,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,+IAA+I;IAC/I,QAAQ,CAAC,EACL,KAAK,CAAC,SAAS,GACf,CAAC,CAAC,GAAG,EAAE,gBAAgB,KAAK,KAAK,CAAC,SAAS,CAAC,CAAC;CAClD,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA4dtD,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -7,25 +7,13 @@ declare const meta: {
|
|
|
7
7
|
};
|
|
8
8
|
decorators: ((Story: import("@storybook/csf").PartialStoryFn<import("@storybook/react").ReactRenderer, {
|
|
9
9
|
categories: (import("./NavigationBar").NavigationCategory | import("./NavigationBar").NavigationBarLink)[];
|
|
10
|
-
numberOfCartItems: number;
|
|
11
|
-
onCartClick: VoidFunction;
|
|
12
10
|
mainCategoryLabel?: string | undefined;
|
|
13
11
|
linkComponent?: import("../types").CustomLinkComponent | undefined;
|
|
14
12
|
logoLink?: string | undefined;
|
|
15
|
-
hasSearch?: boolean | undefined;
|
|
16
|
-
hasEvaEnabled?: boolean | undefined;
|
|
17
|
-
onEvaClick?: VoidFunction | undefined;
|
|
18
|
-
onSearchClick?: VoidFunction | undefined;
|
|
19
|
-
registrationUrl: string;
|
|
20
|
-
profileUrl: string;
|
|
21
13
|
mobileBottomButtons?: import("react").ReactElement[] | undefined;
|
|
22
14
|
onSearchCallback?: ((query: string, results: import("./NavigationBar").NavigationBarLink[]) => void) | undefined;
|
|
23
15
|
onLinkClick?: ((label: string) => void) | undefined;
|
|
24
16
|
onCategoryOpen?: ((label: string) => void) | undefined;
|
|
25
|
-
onMobileMenuOpen?: VoidFunction | undefined;
|
|
26
|
-
onBackToMainMenu?: VoidFunction | undefined;
|
|
27
|
-
onRegisterKitClick?: VoidFunction | undefined;
|
|
28
|
-
onProfileClick?: VoidFunction | undefined;
|
|
29
17
|
onLogoClick?: VoidFunction | undefined;
|
|
30
18
|
shopAllProductsUrl: string;
|
|
31
19
|
onShopAllProductsClick?: VoidFunction | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationBar.stories.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/NavigationBar/NavigationBar.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAIvD,QAAA,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"NavigationBar.stories.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/NavigationBar/NavigationBar.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAIvD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;CAa4B,CAAC;AAEvC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC"}
|