@kaizen/components 1.7.8 → 1.7.10

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/dist/cjs/index.js CHANGED
@@ -1,449 +1,45 @@
1
1
  'use strict';
2
2
 
3
+ var index = require('./index-05670f16.js');
3
4
  var React = require('react');
4
- var index = require('./index-10631f0d.js');
5
5
  var designTokens = require('@kaizen/design-tokens');
6
6
 
7
7
  function _interopNamespaceDefault(e) {
8
- var n = Object.create(null);
9
- if (e) {
10
- Object.keys(e).forEach(function (k) {
11
- if (k !== 'default') {
12
- var d = Object.getOwnPropertyDescriptor(e, k);
13
- Object.defineProperty(n, k, d.get ? d : {
14
- enumerable: true,
15
- get: function () { return e[k]; }
16
- });
17
- }
8
+ var n = Object.create(null);
9
+ if (e) {
10
+ Object.keys(e).forEach(function (k) {
11
+ if (k !== 'default') {
12
+ var d = Object.getOwnPropertyDescriptor(e, k);
13
+ Object.defineProperty(n, k, d.get ? d : {
14
+ enumerable: true,
15
+ get: function () { return e[k]; }
18
16
  });
19
- }
20
- n.default = e;
21
- return Object.freeze(n);
17
+ }
18
+ });
19
+ }
20
+ n.default = e;
21
+ return Object.freeze(n);
22
22
  }
23
23
 
24
24
  var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
25
25
 
26
- var ThemeManager = (
27
- /** @class */
28
- function() {
29
- function ThemeManager2(theme, rootElementId, apply) {
30
- if (rootElementId === void 0) {
31
- rootElementId = "";
32
- }
33
- if (apply === void 0) {
34
- apply = true;
35
- }
36
- var _this = this;
37
- this.themeChangeListeners = [];
38
- this.rootElement = null;
39
- this.getRootElement = function() {
40
- return _this.rootElement;
41
- };
42
- this.getRootElementId = function() {
43
- return _this.rootElementId;
44
- };
45
- this.getCurrentTheme = function() {
46
- return _this.theme;
47
- };
48
- this.setRootElement = function(element) {
49
- _this.rootElement = element;
50
- };
51
- this.setRootElementId = function(rootElementId2) {
52
- return _this.rootElementId = rootElementId2;
53
- };
54
- this.setAndApplyTheme = function(theme2, force) {
55
- if (!force) {
56
- if (_this.theme === theme2)
57
- return;
58
- }
59
- _this.theme = theme2;
60
- _this.applyCurrentTheme();
61
- _this.notifyThemeChangeListeners(theme2);
62
- };
63
- this.addThemeChangeListener = function(listener) {
64
- _this.themeChangeListeners.push(listener);
65
- };
66
- this.removeThemeChangeListener = function(listener) {
67
- _this.themeChangeListeners = _this.themeChangeListeners.filter(function(l) {
68
- return l !== listener;
69
- });
70
- };
71
- this.applyCurrentTheme = function() {
72
- var _a;
73
- if (typeof window !== "undefined") {
74
- _this.setRootElement((_a = document.getElementById(_this.rootElementId)) !== null && _a !== void 0 ? _a : document.documentElement);
75
- var cssVariableDefinitions = designTokens.makeCssVariableDefinitionsMap(_this.theme);
76
- Object.entries(cssVariableDefinitions).forEach(function(_a2) {
77
- var _b;
78
- var key = _a2[0], value = _a2[1];
79
- (_b = _this.rootElement) === null || _b === void 0 ? void 0 : _b.style.setProperty(key, value);
80
- });
81
- }
82
- };
83
- this.notifyThemeChangeListeners = function(theme2) {
84
- _this.themeChangeListeners.forEach(function(listener) {
85
- return listener(theme2);
86
- });
87
- };
88
- this.theme = theme;
89
- this.rootElementId = rootElementId;
90
- if (apply)
91
- this.applyCurrentTheme();
92
- }
93
- return ThemeManager2;
94
- }()
95
- );
26
+ const ORIGIN_BASE_URL = "https://d1e7r7b0lb8p4d.cloudfront.net";
27
+ const assetUrl = (path) => [ORIGIN_BASE_URL, path].join("/");
96
28
 
97
- var heartTheme = {
98
- themeKey: "heart",
99
- animation: {
100
- easingFunction: {
101
- easeInOut: "cubic-bezier(0.455, 0.03, 0.515, 0.955)",
102
- easeIn: "cubic-bezier(0.55, 0.085, 0.68, 0.53)",
103
- easeOut: "cubic-bezier(0.25, 0.46, 0.45, 0.94)",
104
- linear: "linear",
105
- bounceIn: "cubic-bezier(0.485, 0.155, 0.24, 1.245)",
106
- bounceOut: "cubic-bezier(0.485, 0.155, 0.515, 0.845)",
107
- bounceInOut: "cubic-bezier(0.76, -0.245, 0.24, 1.245)"
108
- },
109
- duration: {
110
- instant: "0ms",
111
- immediate: "100ms",
112
- rapid: "200ms",
113
- fast: "300ms",
114
- slow: "400ms",
115
- deliberate: "700ms"
116
- }
117
- },
118
- border: {
119
- solid: {
120
- borderWidth: "2px",
121
- borderRadius: "7px",
122
- borderStyle: "solid",
123
- borderColor: "#e1e2ea"
124
- },
125
- dashed: {
126
- borderWidth: "2px",
127
- borderRadius: "7px",
128
- borderStyle: "dashed"
129
- },
130
- borderless: {
131
- borderWidth: "2px",
132
- borderRadius: "7px",
133
- borderStyle: "solid",
134
- borderColor: "transparent"
135
- },
136
- focusRing: {
137
- borderWidth: "2px",
138
- borderRadius: "10px",
139
- borderStyle: "solid"
140
- }
141
- },
142
- color: {
143
- purple: {
144
- 100: "#f4edf8",
145
- 200: "#dfc9ea",
146
- 300: "#c9a5dd",
147
- 400: "#ae67b1",
148
- 500: "#844587",
149
- 600: "#5f3361",
150
- 700: "#4a234d",
151
- 800: "#2f2438"
152
- },
153
- blue: {
154
- 100: "#e6f6ff",
155
- 200: "#bde2f5",
156
- 300: "#73c0e8",
157
- 400: "#008bd6",
158
- 500: "#0168b3",
159
- 600: "#004970",
160
- 700: "#003157"
161
- },
162
- green: {
163
- 100: "#e8f8f4",
164
- 200: "#c4ede2",
165
- 300: "#8fdbc7",
166
- 400: "#5dcbad",
167
- 500: "#44a289",
168
- 600: "#2c7d67",
169
- 700: "#22594a"
170
- },
171
- yellow: {
172
- 100: "#fff9e4",
173
- 200: "#ffeeb3",
174
- 300: "#ffe36e",
175
- 400: "#ffca4d",
176
- 500: "#ffb600",
177
- 600: "#c68600",
178
- 700: "#876400"
179
- },
180
- red: {
181
- 100: "#fdeaee",
182
- 200: "#f9c2cb",
183
- 300: "#f597a8",
184
- 400: "#e0707d",
185
- 500: "#c93b55",
186
- 600: "#a82433",
187
- 700: "#6c1e20"
188
- },
189
- orange: {
190
- 100: "#fff0e8",
191
- 200: "#ffd1b9",
192
- 300: "#ffb08a",
193
- 400: "#ff9461",
194
- 500: "#e96c2f",
195
- 600: "#b74302",
196
- 700: "#903c00"
197
- },
198
- gray: {
199
- 100: "#f9f9f9",
200
- 200: "#f4f4f5",
201
- 300: "#eaeaec",
202
- 400: "#cdcdd0",
203
- 500: "#8c8c97",
204
- 600: "#524e56"
205
- },
206
- white: "#ffffff"
207
- },
208
- dataViz: {
209
- favorable: "#7dd5bd",
210
- unfavorable: "#e68d97"
211
- },
212
- layout: {
213
- contentMaxWidth: "1392px",
214
- contentMaxWidthWithSidebar: "1080px",
215
- contentSideMargin: "72px",
216
- mobileActionsDrawerHeight: "60px",
217
- navigationBarHeight: "72px",
218
- breakpoints: {
219
- medium: "768px",
220
- large: "1080px"
221
- }
222
- },
223
- shadow: {
224
- small: {
225
- boxShadow: "0px 3px 16px rgba(0, 0, 0, 0.06), 0px 1px 3px rgba(0, 0, 0, 0.1)"
226
- },
227
- large: {
228
- boxShadow: "0px 8px 40px rgba(0, 0, 0, 0.08), 0px 3px 9px rgba(0, 0, 0, 0.1)"
229
- }
230
- },
231
- spacing: {
232
- xs: "0.375rem",
233
- sm: "0.75rem",
234
- md: "1.5rem",
235
- lg: "2.25rem",
236
- xl: "3rem",
237
- xxl: "3.75rem",
238
- xxxl: "4.5rem",
239
- xxxxl: "5.25rem",
240
- xxxxxl: "6rem",
241
- 0: "0",
242
- 1: ".0625rem",
243
- 2: ".125rem",
244
- 4: ".25rem",
245
- 6: ".375rem",
246
- 8: ".5rem",
247
- 12: ".75rem",
248
- 16: "1rem",
249
- 24: "1.5rem",
250
- 32: "2rem",
251
- 40: "2.5rem",
252
- 48: "3rem",
253
- 56: "3.5rem",
254
- 64: "4rem",
255
- 72: "4.5rem",
256
- 80: "5rem",
257
- 96: "6rem",
258
- 112: "7rem",
259
- 128: "8rem",
260
- 160: "10rem",
261
- 200: "12.5rem",
262
- 240: "15rem",
263
- 280: "17.5rem",
264
- 320: "20rem"
265
- },
266
- typography: {
267
- dataLarge: {
268
- fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
269
- fontWeight: 700,
270
- fontSize: "5.25rem",
271
- lineHeight: "5.25rem",
272
- letterSpacing: "normal"
273
- },
274
- dataLargeUnits: {
275
- fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
276
- fontWeight: 700,
277
- fontSize: "2.625rem",
278
- lineHeight: "5.25rem",
279
- letterSpacing: "normal"
280
- },
281
- dataMedium: {
282
- fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
283
- fontWeight: 700,
284
- fontSize: "3rem",
285
- lineHeight: "5rem",
286
- letterSpacing: "normal"
287
- },
288
- dataMediumUnits: {
289
- fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
290
- fontWeight: 700,
291
- fontSize: "1.5rem",
292
- lineHeight: "5rem",
293
- letterSpacing: "normal"
294
- },
295
- dataSmall: {
296
- fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
297
- fontWeight: 700,
298
- fontSize: "1.5rem",
299
- lineHeight: "1.5rem",
300
- letterSpacing: "normal"
301
- },
302
- dataSmallUnits: {
303
- fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
304
- fontWeight: 700,
305
- fontSize: "1.125rem",
306
- lineHeight: "1.5rem",
307
- letterSpacing: "normal"
308
- },
309
- display0: {
310
- fontFamily: '"Tiempos Headline", Georgia, serif',
311
- fontWeight: 800,
312
- fontSize: "4.5rem",
313
- lineHeight: "5.25rem",
314
- letterSpacing: "0em"
315
- },
316
- heading1: {
317
- fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
318
- fontWeight: 700,
319
- fontSize: "2.125rem",
320
- lineHeight: "2.625rem",
321
- letterSpacing: "normal"
322
- },
323
- heading2: {
324
- fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
325
- fontWeight: 700,
326
- fontSize: "1.75rem",
327
- lineHeight: "2.25rem",
328
- letterSpacing: "normal"
329
- },
330
- heading3: {
331
- fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
332
- fontWeight: 700,
333
- fontSize: "1.375rem",
334
- lineHeight: "1.875rem",
335
- letterSpacing: "normal"
336
- },
337
- heading4: {
338
- fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
339
- fontWeight: 600,
340
- fontSize: "1.125rem",
341
- lineHeight: "1.5rem",
342
- letterSpacing: "normal"
343
- },
344
- heading5: {
345
- fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
346
- fontWeight: 600,
347
- fontSize: "1rem",
348
- lineHeight: "1.5rem",
349
- letterSpacing: "normal"
350
- },
351
- heading6: {
352
- fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
353
- fontWeight: 700,
354
- fontSize: "0.875rem",
355
- lineHeight: "1.5rem",
356
- letterSpacing: "normal"
357
- },
358
- paragraphIntroLede: {
359
- fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
360
- fontWeight: 400,
361
- fontSize: "1.25rem",
362
- lineHeight: "1.875rem",
363
- letterSpacing: "0"
364
- },
365
- paragraphBody: {
366
- fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
367
- fontWeight: 400,
368
- fontSize: "1rem",
369
- lineHeight: "1.5rem",
370
- letterSpacing: "normal"
371
- },
372
- paragraphSmall: {
373
- fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
374
- fontWeight: 400,
375
- fontSize: "0.875rem",
376
- lineHeight: "1.125rem",
377
- letterSpacing: "normal"
378
- },
379
- paragraphExtraSmall: {
380
- fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
381
- fontWeight: 400,
382
- fontSize: "0.75rem",
383
- lineHeight: "1.125rem",
384
- letterSpacing: "normal"
385
- },
386
- paragraphBold: {
387
- fontWeight: 600
388
- },
389
- buttonPrimary: {
390
- fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
391
- fontWeight: 700,
392
- fontSize: "1.125rem",
393
- lineHeight: "1.5rem",
394
- letterSpacing: "normal"
395
- },
396
- buttonSecondary: {
397
- fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
398
- fontWeight: 500,
399
- fontSize: "1rem",
400
- lineHeight: "1.5rem",
401
- letterSpacing: "normal"
402
- }
403
- }
404
- };
29
+ var styles$f = {"img":"Brand-module_img__uWvra"};
405
30
 
406
- var defaultTheme = heartTheme;
407
-
408
- var ThemeContext = React.createContext(defaultTheme);
409
- var ThemeProvider = function(_a) {
410
- var themeManager = _a.themeManager, props = index.__rest(_a, ["themeManager"]);
411
- var themeManagerInstance = React.useState(function() {
412
- return themeManager || new ThemeManager(defaultTheme);
413
- })[0];
414
- var _b = React.useState(themeManagerInstance.getCurrentTheme()), theme = _b[0], setTheme = _b[1];
415
- React.useEffect(function() {
416
- var cancelled = false;
417
- var listener = function(newTheme) {
418
- if (!cancelled)
419
- setTheme(newTheme);
420
- };
421
- themeManagerInstance.addThemeChangeListener(listener);
422
- return function() {
423
- cancelled = true;
424
- themeManagerInstance.removeThemeChangeListener(listener);
425
- };
426
- }, []);
31
+ var Brand = function(_a) {
32
+ var variant = _a.variant, alt = _a.alt, _b = _a.reversed, reversed = _b === void 0 ? false : _b, classNameOverride = _a.classNameOverride, restProps = index.__rest(_a, ["variant", "alt", "reversed", "classNameOverride"]);
33
+ var brandTheme = reversed ? "-reversed" : "-default";
427
34
  return React.createElement(
428
- React.Fragment,
429
- null,
430
- React.createElement(ThemeContext.Provider, { value: theme }, props.children),
431
- React.createElement("link", { rel: "preload", href: "https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-bold.woff2", as: "font", type: "font/woff2", crossOrigin: "anonymous" }),
432
- React.createElement("link", { rel: "preload", href: "https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-demi-bold.woff2", as: "font", type: "font/woff2", crossOrigin: "anonymous" }),
433
- React.createElement("link", { rel: "preload", href: "https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-medium.woff2", as: "font", type: "font/woff2", crossOrigin: "anonymous" }),
434
- React.createElement("link", { rel: "preload", href: "https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-regular.woff2", as: "font", type: "font/woff2", crossOrigin: "anonymous" }),
435
- React.createElement("link", { rel: "preload", href: "https://d1e7r7b0lb8p4d.cloudfront.net/fonts/tiempos/tiempos-headline-bold.woff2", as: "font", type: "font/woff2", crossOrigin: "anonymous" })
35
+ "picture",
36
+ index.__assign({ className: classNameOverride }, restProps),
37
+ React.createElement("source", { srcSet: assetUrl("brand/".concat(variant, "-reversed.svg")), media: "(forced-colors: active) and (prefers-color-scheme: dark)" }),
38
+ React.createElement("source", { srcSet: assetUrl("brand/".concat(variant, "-default.svg")), media: "(forced-colors: active) and (prefers-color-scheme: light)" }),
39
+ React.createElement("img", { src: assetUrl("brand/".concat(variant).concat(brandTheme, ".svg")), alt, className: styles$f.img })
436
40
  );
437
41
  };
438
- var useTheme = function() {
439
- return React.useContext(ThemeContext);
440
- };
441
-
442
- var KaizenProvider = function(_a) {
443
- var children = _a.children, themeManager = _a.themeManager;
444
- return React.createElement(ThemeProvider, { themeManager }, children);
445
- };
446
- KaizenProvider.displayName = "KaizenProvider";
42
+ Brand.displayName = "Brand";
447
43
 
448
44
  var zeroRightClassName = 'right-scroll-bar-position';
449
45
  var fullWidthClassName = 'width-before-scroll-bar';
@@ -37267,11 +36863,11 @@ function Reference(_ref) {
37267
36863
  // Public types
37268
36864
 
37269
36865
  var esm = /*#__PURE__*/Object.freeze({
37270
- __proto__: null,
37271
- Manager: Manager,
37272
- Popper: Popper,
37273
- Reference: Reference,
37274
- usePopper: usePopper
36866
+ __proto__: null,
36867
+ Manager: Manager,
36868
+ Popper: Popper,
36869
+ Reference: Reference,
36870
+ usePopper: usePopper
37275
36871
  });
37276
36872
 
37277
36873
  var styles$d = {"filterPopover":"FilterPopover-module_filterPopover__OgOEM"};
@@ -37497,10 +37093,10 @@ var AppearanceAnim = {};
37497
37093
  function c(u,e,c){var i=this,a=React.useRef(null),o=React.useRef(0),f=React.useRef(null),l=React.useRef([]),m=React.useRef(),v=React.useRef(),d=React.useRef(u),p=React.useRef(!0);React.useEffect(function(){d.current=u;},[u]);var g=!e&&0!==e&&"undefined"!=typeof window;if("function"!=typeof u)throw new TypeError("Expected a function");e=+e||0;var w=!!(c=c||{}).leading,s=!("trailing"in c)||!!c.trailing,x="maxWait"in c,y=x?Math.max(+c.maxWait||0,e):null;React.useEffect(function(){return p.current=!0,function(){p.current=!1;}},[]);var h=React.useMemo(function(){var r=function(r){var n=l.current,t=m.current;return l.current=m.current=null,o.current=r,v.current=d.current.apply(t,n)},n=function(r,n){g&&cancelAnimationFrame(f.current),f.current=g?requestAnimationFrame(r):setTimeout(r,n);},t=function(r){if(!p.current)return !1;var n=r-a.current;return !a.current||n>=e||n<0||x&&r-o.current>=y},u=function(n){return f.current=null,s&&l.current?r(n):(l.current=m.current=null,v.current)},c=function r(){var c=Date.now();if(t(c))return u(c);if(p.current){var i=e-(c-a.current),f=x?Math.min(i,y-(c-o.current)):i;n(r,f);}},h=function(){var u=Date.now(),d=t(u);if(l.current=[].slice.call(arguments),m.current=i,a.current=u,d){if(!f.current&&p.current)return o.current=a.current,n(c,e),w?r(a.current):v.current;if(x)return n(c,e),r(a.current)}return f.current||n(c,e),v.current};return h.cancel=function(){f.current&&(g?cancelAnimationFrame(f.current):clearTimeout(f.current)),o.current=0,l.current=a.current=m.current=f.current=null;},h.isPending=function(){return !!f.current},h.flush=function(){return f.current?u(Date.now()):v.current},h},[w,x,e,y,s,g]);return h}function i(r,n){return r===n}function a(r){return "function"==typeof r?function(){return r}:r}function o(n,t,o){var f,l,m=o&&o.equalityFn||i,v=(f=React.useState(a(n)),l=f[1],[f[0],React.useCallback(function(r){return l(a(r))},[])]),d=v[0],p=v[1],g=c(React.useCallback(function(r){return p(r)},[p]),t,o),w=React.useRef(n);return m(w.current,n)||(g(n),w.current=n),[d,g]}function f$1(r,n,t){var u=void 0===t?{}:t,e=u.leading,i=u.trailing;return c(r,n,{maxWait:n,leading:void 0===e||e,trailing:void 0===i||i})}
37498
37094
 
37499
37095
  var index_module = /*#__PURE__*/Object.freeze({
37500
- __proto__: null,
37501
- useDebounce: o,
37502
- useDebouncedCallback: c,
37503
- useThrottledCallback: f$1
37096
+ __proto__: null,
37097
+ useDebounce: o,
37098
+ useDebouncedCallback: c,
37099
+ useThrottledCallback: f$1
37504
37100
  });
37505
37101
 
37506
37102
  var require$$1$1 = /*@__PURE__*/getAugmentedNamespace(index_module);
@@ -38213,16 +37809,16 @@ function version(uuid) {
38213
37809
  }
38214
37810
 
38215
37811
  var esmBrowser = /*#__PURE__*/Object.freeze({
38216
- __proto__: null,
38217
- NIL: nil,
38218
- parse: parse,
38219
- stringify: stringify,
38220
- v1: v1,
38221
- v3: v3$1,
38222
- v4: v4,
38223
- v5: v5$1,
38224
- validate: validate,
38225
- version: version
37812
+ __proto__: null,
37813
+ NIL: nil,
37814
+ parse: parse,
37815
+ stringify: stringify,
37816
+ v1: v1,
37817
+ v3: v3$1,
37818
+ v4: v4,
37819
+ v5: v5$1,
37820
+ validate: validate,
37821
+ version: version
38226
37822
  });
38227
37823
 
38228
37824
  var require$$1 = /*@__PURE__*/getAugmentedNamespace(esmBrowser);
@@ -38241,8 +37837,8 @@ useUuid$1.useUuid = useUuid;
38241
37837
  var Tooltip_module = {"tooltip":"Tooltip-module_tooltip__80yPv","tooltipContent":"Tooltip-module_tooltipContent__gXHKT","default":"Tooltip-module_default__oLBfa","informative":"Tooltip-module_informative__Lw2ZJ","positive":"Tooltip-module_positive__31-es","cautionary":"Tooltip-module_cautionary__jr2QQ","highlight":"Tooltip-module_highlight__b5HMe","arrow":"Tooltip-module_arrow__LWe4h","arrowInner":"Tooltip-module_arrowInner__whQvw","arrowMain":"Tooltip-module_arrowMain__VSut6","arrowShadow":"Tooltip-module_arrowShadow__cwgsV","displayInline":"Tooltip-module_displayInline__iojZb","displayBlock":"Tooltip-module_displayBlock__RfmWl","displayInlineBlock":"Tooltip-module_displayInlineBlock__2q-e6","displayFlex":"Tooltip-module_displayFlex__orTOm","displayInlineFlex":"Tooltip-module_displayInlineFlex__z-4AS"};
38242
37838
 
38243
37839
  var Tooltip_module$1 = /*#__PURE__*/Object.freeze({
38244
- __proto__: null,
38245
- default: Tooltip_module
37840
+ __proto__: null,
37841
+ default: Tooltip_module
38246
37842
  });
38247
37843
 
38248
37844
  var require$$6 = /*@__PURE__*/getAugmentedNamespace(Tooltip_module$1);
@@ -45420,6 +45016,429 @@ FilterSelect.SectionDivider = SectionDivider;
45420
45016
  FilterSelect.Option = Option;
45421
45017
  FilterSelect.ItemDefaultRender = ListItem;
45422
45018
 
45019
+ var ThemeManager = (
45020
+ /** @class */
45021
+ function() {
45022
+ function ThemeManager2(theme, rootElementId, apply) {
45023
+ if (rootElementId === void 0) {
45024
+ rootElementId = "";
45025
+ }
45026
+ if (apply === void 0) {
45027
+ apply = true;
45028
+ }
45029
+ var _this = this;
45030
+ this.themeChangeListeners = [];
45031
+ this.rootElement = null;
45032
+ this.getRootElement = function() {
45033
+ return _this.rootElement;
45034
+ };
45035
+ this.getRootElementId = function() {
45036
+ return _this.rootElementId;
45037
+ };
45038
+ this.getCurrentTheme = function() {
45039
+ return _this.theme;
45040
+ };
45041
+ this.setRootElement = function(element) {
45042
+ _this.rootElement = element;
45043
+ };
45044
+ this.setRootElementId = function(rootElementId2) {
45045
+ return _this.rootElementId = rootElementId2;
45046
+ };
45047
+ this.setAndApplyTheme = function(theme2, force) {
45048
+ if (!force) {
45049
+ if (_this.theme === theme2)
45050
+ return;
45051
+ }
45052
+ _this.theme = theme2;
45053
+ _this.applyCurrentTheme();
45054
+ _this.notifyThemeChangeListeners(theme2);
45055
+ };
45056
+ this.addThemeChangeListener = function(listener) {
45057
+ _this.themeChangeListeners.push(listener);
45058
+ };
45059
+ this.removeThemeChangeListener = function(listener) {
45060
+ _this.themeChangeListeners = _this.themeChangeListeners.filter(function(l) {
45061
+ return l !== listener;
45062
+ });
45063
+ };
45064
+ this.applyCurrentTheme = function() {
45065
+ var _a;
45066
+ if (typeof window !== "undefined") {
45067
+ _this.setRootElement((_a = document.getElementById(_this.rootElementId)) !== null && _a !== void 0 ? _a : document.documentElement);
45068
+ var cssVariableDefinitions = designTokens.makeCssVariableDefinitionsMap(_this.theme);
45069
+ Object.entries(cssVariableDefinitions).forEach(function(_a2) {
45070
+ var _b;
45071
+ var key = _a2[0], value = _a2[1];
45072
+ (_b = _this.rootElement) === null || _b === void 0 ? void 0 : _b.style.setProperty(key, value);
45073
+ });
45074
+ }
45075
+ };
45076
+ this.notifyThemeChangeListeners = function(theme2) {
45077
+ _this.themeChangeListeners.forEach(function(listener) {
45078
+ return listener(theme2);
45079
+ });
45080
+ };
45081
+ this.theme = theme;
45082
+ this.rootElementId = rootElementId;
45083
+ if (apply)
45084
+ this.applyCurrentTheme();
45085
+ }
45086
+ return ThemeManager2;
45087
+ }()
45088
+ );
45089
+
45090
+ var heartTheme = {
45091
+ themeKey: "heart",
45092
+ animation: {
45093
+ easingFunction: {
45094
+ easeInOut: "cubic-bezier(0.455, 0.03, 0.515, 0.955)",
45095
+ easeIn: "cubic-bezier(0.55, 0.085, 0.68, 0.53)",
45096
+ easeOut: "cubic-bezier(0.25, 0.46, 0.45, 0.94)",
45097
+ linear: "linear",
45098
+ bounceIn: "cubic-bezier(0.485, 0.155, 0.24, 1.245)",
45099
+ bounceOut: "cubic-bezier(0.485, 0.155, 0.515, 0.845)",
45100
+ bounceInOut: "cubic-bezier(0.76, -0.245, 0.24, 1.245)"
45101
+ },
45102
+ duration: {
45103
+ instant: "0ms",
45104
+ immediate: "100ms",
45105
+ rapid: "200ms",
45106
+ fast: "300ms",
45107
+ slow: "400ms",
45108
+ deliberate: "700ms"
45109
+ }
45110
+ },
45111
+ border: {
45112
+ solid: {
45113
+ borderWidth: "2px",
45114
+ borderRadius: "7px",
45115
+ borderStyle: "solid",
45116
+ borderColor: "#e1e2ea"
45117
+ },
45118
+ dashed: {
45119
+ borderWidth: "2px",
45120
+ borderRadius: "7px",
45121
+ borderStyle: "dashed"
45122
+ },
45123
+ borderless: {
45124
+ borderWidth: "2px",
45125
+ borderRadius: "7px",
45126
+ borderStyle: "solid",
45127
+ borderColor: "transparent"
45128
+ },
45129
+ focusRing: {
45130
+ borderWidth: "2px",
45131
+ borderRadius: "10px",
45132
+ borderStyle: "solid"
45133
+ }
45134
+ },
45135
+ color: {
45136
+ purple: {
45137
+ 100: "#f4edf8",
45138
+ 200: "#dfc9ea",
45139
+ 300: "#c9a5dd",
45140
+ 400: "#ae67b1",
45141
+ 500: "#844587",
45142
+ 600: "#5f3361",
45143
+ 700: "#4a234d",
45144
+ 800: "#2f2438"
45145
+ },
45146
+ blue: {
45147
+ 100: "#e6f6ff",
45148
+ 200: "#bde2f5",
45149
+ 300: "#73c0e8",
45150
+ 400: "#008bd6",
45151
+ 500: "#0168b3",
45152
+ 600: "#004970",
45153
+ 700: "#003157"
45154
+ },
45155
+ green: {
45156
+ 100: "#e8f8f4",
45157
+ 200: "#c4ede2",
45158
+ 300: "#8fdbc7",
45159
+ 400: "#5dcbad",
45160
+ 500: "#44a289",
45161
+ 600: "#2c7d67",
45162
+ 700: "#22594a"
45163
+ },
45164
+ yellow: {
45165
+ 100: "#fff9e4",
45166
+ 200: "#ffeeb3",
45167
+ 300: "#ffe36e",
45168
+ 400: "#ffca4d",
45169
+ 500: "#ffb600",
45170
+ 600: "#c68600",
45171
+ 700: "#876400"
45172
+ },
45173
+ red: {
45174
+ 100: "#fdeaee",
45175
+ 200: "#f9c2cb",
45176
+ 300: "#f597a8",
45177
+ 400: "#e0707d",
45178
+ 500: "#c93b55",
45179
+ 600: "#a82433",
45180
+ 700: "#6c1e20"
45181
+ },
45182
+ orange: {
45183
+ 100: "#fff0e8",
45184
+ 200: "#ffd1b9",
45185
+ 300: "#ffb08a",
45186
+ 400: "#ff9461",
45187
+ 500: "#e96c2f",
45188
+ 600: "#b74302",
45189
+ 700: "#903c00"
45190
+ },
45191
+ gray: {
45192
+ 100: "#f9f9f9",
45193
+ 200: "#f4f4f5",
45194
+ 300: "#eaeaec",
45195
+ 400: "#cdcdd0",
45196
+ 500: "#8c8c97",
45197
+ 600: "#524e56"
45198
+ },
45199
+ white: "#ffffff"
45200
+ },
45201
+ dataViz: {
45202
+ favorable: "#7dd5bd",
45203
+ unfavorable: "#e68d97"
45204
+ },
45205
+ layout: {
45206
+ contentMaxWidth: "1392px",
45207
+ contentMaxWidthWithSidebar: "1080px",
45208
+ contentSideMargin: "72px",
45209
+ mobileActionsDrawerHeight: "60px",
45210
+ navigationBarHeight: "72px",
45211
+ breakpoints: {
45212
+ medium: "768px",
45213
+ large: "1080px"
45214
+ }
45215
+ },
45216
+ shadow: {
45217
+ small: {
45218
+ boxShadow: "0px 3px 16px rgba(0, 0, 0, 0.06), 0px 1px 3px rgba(0, 0, 0, 0.1)"
45219
+ },
45220
+ large: {
45221
+ boxShadow: "0px 8px 40px rgba(0, 0, 0, 0.08), 0px 3px 9px rgba(0, 0, 0, 0.1)"
45222
+ }
45223
+ },
45224
+ spacing: {
45225
+ xs: "0.375rem",
45226
+ sm: "0.75rem",
45227
+ md: "1.5rem",
45228
+ lg: "2.25rem",
45229
+ xl: "3rem",
45230
+ xxl: "3.75rem",
45231
+ xxxl: "4.5rem",
45232
+ xxxxl: "5.25rem",
45233
+ xxxxxl: "6rem",
45234
+ 0: "0",
45235
+ 1: ".0625rem",
45236
+ 2: ".125rem",
45237
+ 4: ".25rem",
45238
+ 6: ".375rem",
45239
+ 8: ".5rem",
45240
+ 12: ".75rem",
45241
+ 16: "1rem",
45242
+ 24: "1.5rem",
45243
+ 32: "2rem",
45244
+ 40: "2.5rem",
45245
+ 48: "3rem",
45246
+ 56: "3.5rem",
45247
+ 64: "4rem",
45248
+ 72: "4.5rem",
45249
+ 80: "5rem",
45250
+ 96: "6rem",
45251
+ 112: "7rem",
45252
+ 128: "8rem",
45253
+ 160: "10rem",
45254
+ 200: "12.5rem",
45255
+ 240: "15rem",
45256
+ 280: "17.5rem",
45257
+ 320: "20rem"
45258
+ },
45259
+ typography: {
45260
+ dataLarge: {
45261
+ fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
45262
+ fontWeight: 700,
45263
+ fontSize: "5.25rem",
45264
+ lineHeight: "5.25rem",
45265
+ letterSpacing: "normal"
45266
+ },
45267
+ dataLargeUnits: {
45268
+ fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
45269
+ fontWeight: 700,
45270
+ fontSize: "2.625rem",
45271
+ lineHeight: "5.25rem",
45272
+ letterSpacing: "normal"
45273
+ },
45274
+ dataMedium: {
45275
+ fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
45276
+ fontWeight: 700,
45277
+ fontSize: "3rem",
45278
+ lineHeight: "5rem",
45279
+ letterSpacing: "normal"
45280
+ },
45281
+ dataMediumUnits: {
45282
+ fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
45283
+ fontWeight: 700,
45284
+ fontSize: "1.5rem",
45285
+ lineHeight: "5rem",
45286
+ letterSpacing: "normal"
45287
+ },
45288
+ dataSmall: {
45289
+ fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
45290
+ fontWeight: 700,
45291
+ fontSize: "1.5rem",
45292
+ lineHeight: "1.5rem",
45293
+ letterSpacing: "normal"
45294
+ },
45295
+ dataSmallUnits: {
45296
+ fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
45297
+ fontWeight: 700,
45298
+ fontSize: "1.125rem",
45299
+ lineHeight: "1.5rem",
45300
+ letterSpacing: "normal"
45301
+ },
45302
+ display0: {
45303
+ fontFamily: '"Tiempos Headline", Georgia, serif',
45304
+ fontWeight: 800,
45305
+ fontSize: "4.5rem",
45306
+ lineHeight: "5.25rem",
45307
+ letterSpacing: "0em"
45308
+ },
45309
+ heading1: {
45310
+ fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
45311
+ fontWeight: 700,
45312
+ fontSize: "2.125rem",
45313
+ lineHeight: "2.625rem",
45314
+ letterSpacing: "normal"
45315
+ },
45316
+ heading2: {
45317
+ fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
45318
+ fontWeight: 700,
45319
+ fontSize: "1.75rem",
45320
+ lineHeight: "2.25rem",
45321
+ letterSpacing: "normal"
45322
+ },
45323
+ heading3: {
45324
+ fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
45325
+ fontWeight: 700,
45326
+ fontSize: "1.375rem",
45327
+ lineHeight: "1.875rem",
45328
+ letterSpacing: "normal"
45329
+ },
45330
+ heading4: {
45331
+ fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
45332
+ fontWeight: 600,
45333
+ fontSize: "1.125rem",
45334
+ lineHeight: "1.5rem",
45335
+ letterSpacing: "normal"
45336
+ },
45337
+ heading5: {
45338
+ fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
45339
+ fontWeight: 600,
45340
+ fontSize: "1rem",
45341
+ lineHeight: "1.5rem",
45342
+ letterSpacing: "normal"
45343
+ },
45344
+ heading6: {
45345
+ fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
45346
+ fontWeight: 700,
45347
+ fontSize: "0.875rem",
45348
+ lineHeight: "1.5rem",
45349
+ letterSpacing: "normal"
45350
+ },
45351
+ paragraphIntroLede: {
45352
+ fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
45353
+ fontWeight: 400,
45354
+ fontSize: "1.25rem",
45355
+ lineHeight: "1.875rem",
45356
+ letterSpacing: "0"
45357
+ },
45358
+ paragraphBody: {
45359
+ fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
45360
+ fontWeight: 400,
45361
+ fontSize: "1rem",
45362
+ lineHeight: "1.5rem",
45363
+ letterSpacing: "normal"
45364
+ },
45365
+ paragraphSmall: {
45366
+ fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
45367
+ fontWeight: 400,
45368
+ fontSize: "0.875rem",
45369
+ lineHeight: "1.125rem",
45370
+ letterSpacing: "normal"
45371
+ },
45372
+ paragraphExtraSmall: {
45373
+ fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
45374
+ fontWeight: 400,
45375
+ fontSize: "0.75rem",
45376
+ lineHeight: "1.125rem",
45377
+ letterSpacing: "normal"
45378
+ },
45379
+ paragraphBold: {
45380
+ fontWeight: 600
45381
+ },
45382
+ buttonPrimary: {
45383
+ fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
45384
+ fontWeight: 700,
45385
+ fontSize: "1.125rem",
45386
+ lineHeight: "1.5rem",
45387
+ letterSpacing: "normal"
45388
+ },
45389
+ buttonSecondary: {
45390
+ fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
45391
+ fontWeight: 500,
45392
+ fontSize: "1rem",
45393
+ lineHeight: "1.5rem",
45394
+ letterSpacing: "normal"
45395
+ }
45396
+ }
45397
+ };
45398
+
45399
+ var defaultTheme = heartTheme;
45400
+
45401
+ var ThemeContext = React.createContext(defaultTheme);
45402
+ var ThemeProvider = function(_a) {
45403
+ var themeManager = _a.themeManager, props = index.__rest(_a, ["themeManager"]);
45404
+ var themeManagerInstance = React.useState(function() {
45405
+ return themeManager || new ThemeManager(defaultTheme);
45406
+ })[0];
45407
+ var _b = React.useState(themeManagerInstance.getCurrentTheme()), theme = _b[0], setTheme = _b[1];
45408
+ React.useEffect(function() {
45409
+ var cancelled = false;
45410
+ var listener = function(newTheme) {
45411
+ if (!cancelled)
45412
+ setTheme(newTheme);
45413
+ };
45414
+ themeManagerInstance.addThemeChangeListener(listener);
45415
+ return function() {
45416
+ cancelled = true;
45417
+ themeManagerInstance.removeThemeChangeListener(listener);
45418
+ };
45419
+ }, []);
45420
+ return React.createElement(
45421
+ React.Fragment,
45422
+ null,
45423
+ React.createElement(ThemeContext.Provider, { value: theme }, props.children),
45424
+ React.createElement("link", { rel: "preload", href: "https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-bold.woff2", as: "font", type: "font/woff2", crossOrigin: "anonymous" }),
45425
+ React.createElement("link", { rel: "preload", href: "https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-demi-bold.woff2", as: "font", type: "font/woff2", crossOrigin: "anonymous" }),
45426
+ React.createElement("link", { rel: "preload", href: "https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-medium.woff2", as: "font", type: "font/woff2", crossOrigin: "anonymous" }),
45427
+ React.createElement("link", { rel: "preload", href: "https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-regular.woff2", as: "font", type: "font/woff2", crossOrigin: "anonymous" }),
45428
+ React.createElement("link", { rel: "preload", href: "https://d1e7r7b0lb8p4d.cloudfront.net/fonts/tiempos/tiempos-headline-bold.woff2", as: "font", type: "font/woff2", crossOrigin: "anonymous" })
45429
+ );
45430
+ };
45431
+ var useTheme = function() {
45432
+ return React.useContext(ThemeContext);
45433
+ };
45434
+
45435
+ var KaizenProvider = function(_a) {
45436
+ var children = _a.children, themeManager = _a.themeManager;
45437
+ return React.createElement(ThemeProvider, { themeManager }, children);
45438
+ };
45439
+ KaizenProvider.displayName = "KaizenProvider";
45440
+
45441
+ exports.Brand = Brand;
45423
45442
  exports.Filter = Filter;
45424
45443
  exports.FilterButton = FilterButton;
45425
45444
  exports.FilterButtonRemovable = FilterButtonRemovable;