@kaizen/components 1.7.9 → 1.7.11
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/CHANGELOG.md +11 -3
- package/dist/cjs/dts/Brand/Brand.d.ts +11 -0
- package/dist/cjs/dts/Brand/index.d.ts +1 -0
- package/dist/cjs/dts/index.d.ts +2 -1
- package/dist/cjs/future.js +1 -1
- package/dist/cjs/{index-89a2803d.js → index-7f3aa247.js} +1 -1
- package/dist/cjs/{index-89a2803d.js.map → index-7f3aa247.js.map} +1 -1
- package/dist/cjs/index.css +2 -1
- package/dist/cjs/index.js +1696 -588
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/dts/Brand/Brand.d.ts +11 -0
- package/dist/esm/dts/Brand/index.d.ts +1 -0
- package/dist/esm/dts/index.d.ts +2 -1
- package/dist/esm/future.js +1 -1
- package/dist/esm/{index-cd3cb19d.js → index-cce2ecd8.js} +1 -1
- package/dist/esm/{index-cd3cb19d.js.map → index-cce2ecd8.js.map} +1 -1
- package/dist/esm/index.css +2 -1
- package/dist/esm/index.js +1684 -577
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +143 -133
- package/dist/styles.css +1 -1
- package/package.json +7 -6
package/dist/cjs/index.js
CHANGED
|
@@ -1,449 +1,45 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var index = require('./index-7f3aa247.js');
|
|
3
4
|
var React = require('react');
|
|
4
|
-
var index = require('./index-89a2803d.js');
|
|
5
5
|
var designTokens = require('@kaizen/design-tokens');
|
|
6
6
|
|
|
7
7
|
function _interopNamespaceDefault(e) {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
|
|
21
|
-
|
|
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
|
-
|
|
27
|
-
|
|
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
|
|
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$e = {"img":"Brand-module_img__uWvra"};
|
|
405
30
|
|
|
406
|
-
var
|
|
407
|
-
|
|
408
|
-
var
|
|
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
|
-
|
|
429
|
-
|
|
430
|
-
React.createElement(
|
|
431
|
-
React.createElement("
|
|
432
|
-
React.createElement("
|
|
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$e.img })
|
|
436
40
|
);
|
|
437
41
|
};
|
|
438
|
-
|
|
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';
|
|
@@ -3792,8 +3388,8 @@ var hideOthers = function (originalTarget, parentNode, markerName) {
|
|
|
3792
3388
|
};
|
|
3793
3389
|
|
|
3794
3390
|
var Style = styleSingleton();
|
|
3795
|
-
var styles$
|
|
3796
|
-
var InteractivityDisabler = function () { return React__namespace.createElement(Style, { styles: styles$
|
|
3391
|
+
var styles$d = "\n [" + focusHiddenMarker + "] {\n pointer-events: none !important;\n }\n";
|
|
3392
|
+
var InteractivityDisabler = function () { return React__namespace.createElement(Style, { styles: styles$d }); };
|
|
3797
3393
|
|
|
3798
3394
|
var extractRef = function (ref) {
|
|
3799
3395
|
return 'current' in ref ? ref.current : ref;
|
|
@@ -37267,14 +36863,14 @@ function Reference(_ref) {
|
|
|
37267
36863
|
// Public types
|
|
37268
36864
|
|
|
37269
36865
|
var esm = /*#__PURE__*/Object.freeze({
|
|
37270
|
-
|
|
37271
|
-
|
|
37272
|
-
|
|
37273
|
-
|
|
37274
|
-
|
|
36866
|
+
__proto__: null,
|
|
36867
|
+
Manager: Manager,
|
|
36868
|
+
Popper: Popper,
|
|
36869
|
+
Reference: Reference,
|
|
36870
|
+
usePopper: usePopper
|
|
37275
36871
|
});
|
|
37276
36872
|
|
|
37277
|
-
var styles$
|
|
36873
|
+
var styles$c = {"filterPopover":"FilterPopover-module_filterPopover__OgOEM"};
|
|
37278
36874
|
|
|
37279
36875
|
var FilterPopover = function(_a) {
|
|
37280
36876
|
var children = _a.children, referenceElement = _a.referenceElement, popperOptions = _a.popperOptions, classNameOverride = _a.classNameOverride, restProps = index.__rest(_a, ["children", "referenceElement", "popperOptions", "classNameOverride"]);
|
|
@@ -37287,7 +36883,7 @@ var FilterPopover = function(_a) {
|
|
|
37287
36883
|
}
|
|
37288
36884
|
}
|
|
37289
36885
|
], placement: "bottom-start", strategy: "fixed" }, popperOptions)), popperStyles = _c.styles, popperAttributes = _c.attributes;
|
|
37290
|
-
return React.createElement("div", index.__assign({ ref: setPopperElement, style: popperStyles === null || popperStyles === void 0 ? void 0 : popperStyles.popper }, popperAttributes === null || popperAttributes === void 0 ? void 0 : popperAttributes.popper, { className: index.classNames(styles$
|
|
36886
|
+
return React.createElement("div", index.__assign({ ref: setPopperElement, style: popperStyles === null || popperStyles === void 0 ? void 0 : popperStyles.popper }, popperAttributes === null || popperAttributes === void 0 ? void 0 : popperAttributes.popper, { className: index.classNames(styles$c.filterPopover, classNameOverride), role: "dialog", "aria-modal": "true" }, restProps), children);
|
|
37291
36887
|
};
|
|
37292
36888
|
FilterPopover.displayName = "FilterPopover";
|
|
37293
36889
|
|
|
@@ -37332,31 +36928,31 @@ var Filter = function(_a) {
|
|
|
37332
36928
|
};
|
|
37333
36929
|
Filter.displayName = "Filter";
|
|
37334
36930
|
|
|
37335
|
-
var styles$
|
|
36931
|
+
var styles$b = {"filterContents":"FilterContents-module_filterContents__uNUpd"};
|
|
37336
36932
|
|
|
37337
36933
|
var FilterContents = function(_a) {
|
|
37338
36934
|
var children = _a.children, classNameOverride = _a.classNameOverride, restProps = index.__rest(_a, ["children", "classNameOverride"]);
|
|
37339
|
-
return React.createElement("div", index.__assign({ className: index.classNames(styles$
|
|
36935
|
+
return React.createElement("div", index.__assign({ className: index.classNames(styles$b.filterContents, classNameOverride) }, restProps), children);
|
|
37340
36936
|
};
|
|
37341
36937
|
FilterContents.displayName = "FilterContents";
|
|
37342
36938
|
|
|
37343
|
-
var yellow
|
|
37344
|
-
var reset
|
|
37345
|
-
var warn
|
|
37346
|
-
console.warn("".concat(yellow
|
|
36939
|
+
var yellow = "\x1B[33m ";
|
|
36940
|
+
var reset = "\x1B[0m ";
|
|
36941
|
+
var warn = function(message) {
|
|
36942
|
+
console.warn("".concat(yellow, "\nKAIZEN WARNING:\n").concat(singleLine(message)).concat(reset, "\n"));
|
|
37347
36943
|
};
|
|
37348
|
-
var singleLine
|
|
36944
|
+
var singleLine = function(message) {
|
|
37349
36945
|
return message.replace(/^ +/gm, " ").replace(/\n|\r/gm, "").trim();
|
|
37350
36946
|
};
|
|
37351
36947
|
|
|
37352
|
-
var styles$
|
|
36948
|
+
var styles$a = {"icon":"SVG-module_icon__FE6iP","inheritSize":"SVG-module_inheritSize__wiKMe","interactiveIconWrapper":"SVG-module_interactiveIconWrapper__ACcob","disabled":"SVG-module_disabled__WB5BU","hover":"SVG-module_hover__QivVO","active":"SVG-module_active__R9jic","reversedInteractiveIconWrapper":"SVG-module_reversedInteractiveIconWrapper__hTsnf SVG-module_interactiveIconWrapper__ACcob"};
|
|
37353
36949
|
|
|
37354
36950
|
var SVG = function(_a) {
|
|
37355
36951
|
var _b, _c;
|
|
37356
36952
|
var _d = _a.inheritSize, inheritSize = _d === void 0 ? false : _d, _e = _a.role, role = _e === void 0 ? "img" : _e, _f = _a.title, title = _f === void 0 ? "" : _f, _g = _a.desc, desc = _g === void 0 ? "" : _g, _h = _a.viewBox, viewBox = _h === void 0 ? "0 0 20 20" : _h, classNameOverride = _a.classNameOverride, children = _a.children, props = index.__rest(_a, ["inheritSize", "role", "title", "desc", "viewBox", "classNameOverride", "children"]);
|
|
37357
36953
|
var isMeaningfulImg = role === "img";
|
|
37358
36954
|
if (isMeaningfulImg && !title) {
|
|
37359
|
-
warn
|
|
36955
|
+
warn(`
|
|
37360
36956
|
Icon with role "img" missing a title attribute.
|
|
37361
36957
|
|
|
37362
36958
|
Assistive technologies that enable vision-impaired users to read web pages
|
|
@@ -37381,7 +36977,7 @@ var SVG = function(_a) {
|
|
|
37381
36977
|
return React.createElement(
|
|
37382
36978
|
"svg",
|
|
37383
36979
|
index.__assign({
|
|
37384
|
-
className: index.classNames(styles$
|
|
36980
|
+
className: index.classNames(styles$a.icon, classNameOverride, (_c = {}, _c[styles$a.inheritSize] = inheritSize, _c)),
|
|
37385
36981
|
viewBox,
|
|
37386
36982
|
// Work around IE11 making all SVGs focusable.
|
|
37387
36983
|
// See http://simplyaccessible.com/article/7-solutions-svgs/#acc-heading-4
|
|
@@ -37450,15 +37046,15 @@ var isRefObject = function(ref) {
|
|
|
37450
37046
|
return ref !== null && "current" in ref;
|
|
37451
37047
|
};
|
|
37452
37048
|
|
|
37453
|
-
var styles$
|
|
37049
|
+
var styles$9 = {"filterButtonBase":"FilterButtonBase-module_filterButtonBase__I8mV-"};
|
|
37454
37050
|
|
|
37455
37051
|
var FilterButtonBase = React.forwardRef(function(_a, ref) {
|
|
37456
37052
|
var children = _a.children, classNameOverride = _a.classNameOverride, restProps = index.__rest(_a, ["children", "classNameOverride"]);
|
|
37457
|
-
return React.createElement("button", index.__assign({ ref, className: index.classNames(styles$
|
|
37053
|
+
return React.createElement("button", index.__assign({ ref, className: index.classNames(styles$9.filterButtonBase, classNameOverride) }, restProps), children);
|
|
37458
37054
|
});
|
|
37459
37055
|
FilterButtonBase.displayName = "FilterButtonBase";
|
|
37460
37056
|
|
|
37461
|
-
var styles$
|
|
37057
|
+
var styles$8 = {"filterButton":"FilterButton-module_filterButton__Q2dMX","labelContainer":"FilterButton-module_labelContainer__5G-MD","hasSelectedValues":"FilterButton-module_hasSelectedValues__dyQkL","labelSeparator":"FilterButton-module_labelSeparator__xrkAx"};
|
|
37462
37058
|
|
|
37463
37059
|
var FilterButton = React.forwardRef(function(_a, ref) {
|
|
37464
37060
|
var label = _a.label, selectedValue = _a.selectedValue, _b = _a.isOpen, isOpen = _b === void 0 ? false : _b, classNameOverride = _a.classNameOverride, restProps = index.__rest(_a, ["label", "selectedValue", "isOpen", "classNameOverride"]);
|
|
@@ -37467,15 +37063,15 @@ var FilterButton = React.forwardRef(function(_a, ref) {
|
|
|
37467
37063
|
var selectedValuesLabel = selectedValue;
|
|
37468
37064
|
return React.createElement(
|
|
37469
37065
|
FilterButtonBase,
|
|
37470
|
-
index.__assign({ ref: triggerRef, classNameOverride: index.classNames(styles$
|
|
37471
|
-
React.createElement("span", { className: styles$
|
|
37066
|
+
index.__assign({ ref: triggerRef, classNameOverride: index.classNames(styles$8.filterButton, classNameOverride), "aria-haspopup": "true", "aria-expanded": isOpen }, restProps),
|
|
37067
|
+
React.createElement("span", { className: styles$8.labelContainer }, selectedValuesLabel ? React.createElement(
|
|
37472
37068
|
React.Fragment,
|
|
37473
37069
|
null,
|
|
37474
37070
|
React.createElement(
|
|
37475
37071
|
"span",
|
|
37476
|
-
{ className: styles$
|
|
37072
|
+
{ className: styles$8.hasSelectedValues },
|
|
37477
37073
|
React.createElement("span", null, label),
|
|
37478
|
-
React.createElement("span", { className: styles$
|
|
37074
|
+
React.createElement("span", { className: styles$8.labelSeparator }, ":")
|
|
37479
37075
|
),
|
|
37480
37076
|
React.createElement("span", null, selectedValuesLabel)
|
|
37481
37077
|
) : label),
|
|
@@ -37490,20 +37086,20 @@ var Tooltip$1 = {};
|
|
|
37490
37086
|
|
|
37491
37087
|
var Tooltip = {};
|
|
37492
37088
|
|
|
37493
|
-
var require$$3 = /*@__PURE__*/getAugmentedNamespace(esm);
|
|
37089
|
+
var require$$3$2 = /*@__PURE__*/getAugmentedNamespace(esm);
|
|
37494
37090
|
|
|
37495
37091
|
var AppearanceAnim = {};
|
|
37496
37092
|
|
|
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
|
-
|
|
37501
|
-
|
|
37502
|
-
|
|
37503
|
-
|
|
37096
|
+
__proto__: null,
|
|
37097
|
+
useDebounce: o,
|
|
37098
|
+
useDebouncedCallback: c,
|
|
37099
|
+
useThrottledCallback: f$1
|
|
37504
37100
|
});
|
|
37505
37101
|
|
|
37506
|
-
var require$$1$
|
|
37102
|
+
var require$$1$5 = /*@__PURE__*/getAugmentedNamespace(index_module);
|
|
37507
37103
|
|
|
37508
37104
|
(function(exports) {
|
|
37509
37105
|
var __assign = commonjsGlobal && commonjsGlobal.__assign || function() {
|
|
@@ -37565,7 +37161,7 @@ var require$$1$1 = /*@__PURE__*/getAugmentedNamespace(index_module);
|
|
|
37565
37161
|
exports.__esModule = true;
|
|
37566
37162
|
exports.useAnimation = exports.AnimationProvider = exports.AnimationContext = void 0;
|
|
37567
37163
|
var react_1 = __importStar(React);
|
|
37568
|
-
var use_debounce_1 = require$$1$
|
|
37164
|
+
var use_debounce_1 = require$$1$5;
|
|
37569
37165
|
var ANIM_DURATION_MS = 400;
|
|
37570
37166
|
exports.AnimationContext = react_1["default"].createContext({
|
|
37571
37167
|
isVisible: false,
|
|
@@ -38213,24 +37809,24 @@ function version(uuid) {
|
|
|
38213
37809
|
}
|
|
38214
37810
|
|
|
38215
37811
|
var esmBrowser = /*#__PURE__*/Object.freeze({
|
|
38216
|
-
|
|
38217
|
-
|
|
38218
|
-
|
|
38219
|
-
|
|
38220
|
-
|
|
38221
|
-
|
|
38222
|
-
|
|
38223
|
-
|
|
38224
|
-
|
|
38225
|
-
|
|
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
|
-
var require$$1 = /*@__PURE__*/getAugmentedNamespace(esmBrowser);
|
|
37824
|
+
var require$$1$4 = /*@__PURE__*/getAugmentedNamespace(esmBrowser);
|
|
38229
37825
|
|
|
38230
37826
|
useUuid$1.__esModule = true;
|
|
38231
37827
|
useUuid$1.useUuid = void 0;
|
|
38232
37828
|
var react_1 = React;
|
|
38233
|
-
var uuid_1 = require$$1;
|
|
37829
|
+
var uuid_1 = require$$1$4;
|
|
38234
37830
|
var useUuid = function() {
|
|
38235
37831
|
return (0, react_1.useMemo)(function() {
|
|
38236
37832
|
return (0, uuid_1.v4)();
|
|
@@ -38241,11 +37837,11 @@ 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
|
-
|
|
38245
|
-
|
|
37840
|
+
__proto__: null,
|
|
37841
|
+
default: Tooltip_module
|
|
38246
37842
|
});
|
|
38247
37843
|
|
|
38248
|
-
var require$$6 = /*@__PURE__*/getAugmentedNamespace(Tooltip_module$1);
|
|
37844
|
+
var require$$6$1 = /*@__PURE__*/getAugmentedNamespace(Tooltip_module$1);
|
|
38249
37845
|
|
|
38250
37846
|
(function(exports) {
|
|
38251
37847
|
var __assign = commonjsGlobal && commonjsGlobal.__assign || function() {
|
|
@@ -38300,10 +37896,10 @@ var require$$6 = /*@__PURE__*/getAugmentedNamespace(Tooltip_module$1);
|
|
|
38300
37896
|
var react_1 = __importStar(React);
|
|
38301
37897
|
var react_dom_1 = __importDefault(reactDomExports);
|
|
38302
37898
|
var classnames_1 = __importDefault(index.classnamesExports);
|
|
38303
|
-
var react_popper_1 = require$$3;
|
|
37899
|
+
var react_popper_1 = require$$3$2;
|
|
38304
37900
|
var AppearanceAnim_1 = AppearanceAnim;
|
|
38305
37901
|
var useUuid_1 = useUuid$1;
|
|
38306
|
-
var Tooltip_module_scss_1 = __importDefault(require$$6);
|
|
37902
|
+
var Tooltip_module_scss_1 = __importDefault(require$$6$1);
|
|
38307
37903
|
var positionToPlacement = /* @__PURE__ */ new Map([
|
|
38308
37904
|
["above", "top"],
|
|
38309
37905
|
["below", "bottom"],
|
|
@@ -38489,7 +38085,7 @@ var ClearIcon = function(props) {
|
|
|
38489
38085
|
);
|
|
38490
38086
|
};
|
|
38491
38087
|
|
|
38492
|
-
var styles$
|
|
38088
|
+
var styles$7 = {"buttonGroup":"ButtonGroup-module_buttonGroup__bsy2X","child":"ButtonGroup-module_child__K6AP-","firstChild":"ButtonGroup-module_firstChild__uEn1j","lastChild":"ButtonGroup-module_lastChild__Vicsx"};
|
|
38493
38089
|
|
|
38494
38090
|
var isFilterButton = function(node) {
|
|
38495
38091
|
return React.isValidElement(node) && node.type === FilterButtonBase;
|
|
@@ -38497,11 +38093,11 @@ var isFilterButton = function(node) {
|
|
|
38497
38093
|
var ButtonGroup = function(_a) {
|
|
38498
38094
|
var children = _a.children, classNameOverride = _a.classNameOverride, restProps = index.__rest(_a, ["children", "classNameOverride"]);
|
|
38499
38095
|
var childCount = React.Children.count(children);
|
|
38500
|
-
var containerProps = index.__assign({ role: "group", className: index.classNames(styles$
|
|
38096
|
+
var containerProps = index.__assign({ role: "group", className: index.classNames(styles$7.buttonGroup, classNameOverride) }, restProps);
|
|
38501
38097
|
if (childCount === 1)
|
|
38502
38098
|
return React.createElement("div", index.__assign({}, containerProps), children);
|
|
38503
38099
|
return React.createElement("div", index.__assign({}, containerProps), React.Children.map(children, function(child, index$1) {
|
|
38504
|
-
var buttonClassNames = index.classNames(styles$
|
|
38100
|
+
var buttonClassNames = index.classNames(styles$7.child, index$1 === 0 && styles$7.firstChild, index$1 === childCount - 1 && styles$7.lastChild, child.props.classNameOverride);
|
|
38505
38101
|
if (child.type === tooltip.Tooltip) {
|
|
38506
38102
|
var button = child.props.children;
|
|
38507
38103
|
if (isFilterButton(button)) {
|
|
@@ -45029,46 +44625,46 @@ function $af383d3bef1cfdc9$export$c3f9f39876e4bc7(props) {
|
|
|
45029
44625
|
};
|
|
45030
44626
|
}
|
|
45031
44627
|
|
|
45032
|
-
var styles$
|
|
44628
|
+
var styles$6 = {"listBox":"ListBox-module_listBox__FQ9sQ","focus":"ListBox-module_focus__Tm-jn"};
|
|
45033
44629
|
|
|
45034
44630
|
var ListBox = function(_a) {
|
|
45035
44631
|
var children = _a.children, menuProps = _a.menuProps, classNameOverride = _a.classNameOverride, restProps = index.__rest(_a, ["children", "menuProps", "classNameOverride"]);
|
|
45036
44632
|
var state = useSelectContext().state;
|
|
45037
44633
|
var ref = React.useRef(null);
|
|
45038
44634
|
var listBoxProps = $c132121280ec012d$export$50eacbbf140a3141(index.__assign(index.__assign({}, menuProps), { disallowEmptySelection: true, autoFocus: "first" }), state, ref).listBoxProps;
|
|
45039
|
-
return React.createElement("ul", index.__assign({ ref, className: index.classNames(styles$
|
|
44635
|
+
return React.createElement("ul", index.__assign({ ref, className: index.classNames(styles$6.listBox, classNameOverride) }, listBoxProps, restProps), children);
|
|
45040
44636
|
};
|
|
45041
44637
|
ListBox.displayName = "ListBox";
|
|
45042
44638
|
|
|
45043
|
-
var styles$
|
|
44639
|
+
var styles$5 = {"heading":"Heading-module_heading__Fe11y","display-0":"Heading-module_display-0__As5Ny","heading-1":"Heading-module_heading-1__fMzkm","heading-2":"Heading-module_heading-2__bgkcr","heading-3":"Heading-module_heading-3__ZRUkC","heading-4":"Heading-module_heading-4__XbONZ","heading-5":"Heading-module_heading-5__fj2Gb","heading-6":"Heading-module_heading-6__Cmand","dark":"Heading-module_dark__9m1Av","dark-reduced-opacity":"Heading-module_dark-reduced-opacity__APHzM","white":"Heading-module_white__6Flbw","white-reduced-opacity":"Heading-module_white-reduced-opacity__-3jNg","positive":"Heading-module_positive__uTfoL","small":"Heading-module_small__I8UMW","large":"Heading-module_large__wKrUS","negative":"Heading-module_negative__hcnMm"};
|
|
45044
44640
|
|
|
45045
|
-
var __defProp$
|
|
44641
|
+
var __defProp$1 = Object.defineProperty;
|
|
45046
44642
|
var __defProps = Object.defineProperties;
|
|
45047
44643
|
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
45048
|
-
var __getOwnPropSymbols$
|
|
45049
|
-
var __hasOwnProp$
|
|
45050
|
-
var __propIsEnum$
|
|
45051
|
-
var __defNormalProp$
|
|
45052
|
-
var __spreadValues$
|
|
44644
|
+
var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
|
|
44645
|
+
var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
|
|
44646
|
+
var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
|
|
44647
|
+
var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
44648
|
+
var __spreadValues$1 = (a, b) => {
|
|
45053
44649
|
for (var prop in b || (b = {}))
|
|
45054
|
-
if (__hasOwnProp$
|
|
45055
|
-
__defNormalProp$
|
|
45056
|
-
if (__getOwnPropSymbols$
|
|
45057
|
-
for (var prop of __getOwnPropSymbols$
|
|
45058
|
-
if (__propIsEnum$
|
|
45059
|
-
__defNormalProp$
|
|
44650
|
+
if (__hasOwnProp$1.call(b, prop))
|
|
44651
|
+
__defNormalProp$1(a, prop, b[prop]);
|
|
44652
|
+
if (__getOwnPropSymbols$1)
|
|
44653
|
+
for (var prop of __getOwnPropSymbols$1(b)) {
|
|
44654
|
+
if (__propIsEnum$1.call(b, prop))
|
|
44655
|
+
__defNormalProp$1(a, prop, b[prop]);
|
|
45060
44656
|
}
|
|
45061
44657
|
return a;
|
|
45062
44658
|
};
|
|
45063
44659
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
45064
|
-
var __objRest$
|
|
44660
|
+
var __objRest$1 = (source, exclude) => {
|
|
45065
44661
|
var target = {};
|
|
45066
44662
|
for (var prop in source)
|
|
45067
|
-
if (__hasOwnProp$
|
|
44663
|
+
if (__hasOwnProp$1.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
45068
44664
|
target[prop] = source[prop];
|
|
45069
|
-
if (source != null && __getOwnPropSymbols$
|
|
45070
|
-
for (var prop of __getOwnPropSymbols$
|
|
45071
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
44665
|
+
if (source != null && __getOwnPropSymbols$1)
|
|
44666
|
+
for (var prop of __getOwnPropSymbols$1(source)) {
|
|
44667
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$1.call(source, prop))
|
|
45072
44668
|
target[prop] = source[prop];
|
|
45073
44669
|
}
|
|
45074
44670
|
return target;
|
|
@@ -45081,7 +44677,7 @@ const Heading = (_a) => {
|
|
|
45081
44677
|
variant,
|
|
45082
44678
|
color = "dark",
|
|
45083
44679
|
classNameOverride
|
|
45084
|
-
} = _b, restProps = __objRest$
|
|
44680
|
+
} = _b, restProps = __objRest$1(_b, [
|
|
45085
44681
|
"children",
|
|
45086
44682
|
"tag",
|
|
45087
44683
|
"variant",
|
|
@@ -45090,13 +44686,13 @@ const Heading = (_a) => {
|
|
|
45090
44686
|
]);
|
|
45091
44687
|
const inferredTag = tag === void 0 ? translateHeadingLevelToTag(variant) : tag;
|
|
45092
44688
|
const className = index.classNames([
|
|
45093
|
-
styles$
|
|
45094
|
-
styles$
|
|
44689
|
+
styles$5.heading,
|
|
44690
|
+
styles$5[variant],
|
|
45095
44691
|
classNameOverride,
|
|
45096
|
-
styles$
|
|
45097
|
-
VARIANTS_24PX_OR_GREATER.includes(variant) ? styles$
|
|
44692
|
+
styles$5[color],
|
|
44693
|
+
VARIANTS_24PX_OR_GREATER.includes(variant) ? styles$5.large : styles$5.small
|
|
45098
44694
|
]);
|
|
45099
|
-
return React.createElement(inferredTag, __spreadProps(__spreadValues$
|
|
44695
|
+
return React.createElement(inferredTag, __spreadProps(__spreadValues$1({}, restProps), { className }), children);
|
|
45100
44696
|
};
|
|
45101
44697
|
Heading.displayName = "Heading";
|
|
45102
44698
|
const translateHeadingLevelToTag = (headingLevel) => {
|
|
@@ -45118,67 +44714,107 @@ const translateHeadingLevelToTag = (headingLevel) => {
|
|
|
45118
44714
|
}
|
|
45119
44715
|
};
|
|
45120
44716
|
|
|
45121
|
-
|
|
45122
|
-
const reset = "\x1B[0m ";
|
|
45123
|
-
const warn = (message) => {
|
|
45124
|
-
console.warn(
|
|
45125
|
-
`${yellow}
|
|
45126
|
-
CULTUREAMP UI WARNING:
|
|
45127
|
-
${singleLine(message)}${reset}
|
|
45128
|
-
`
|
|
45129
|
-
);
|
|
45130
|
-
};
|
|
45131
|
-
const singleLine = (message) => message.replace(/^ +/gm, " ").replace(/\n|\r/gm, "").trim();
|
|
44717
|
+
var componentLibrary = {};
|
|
45132
44718
|
|
|
45133
|
-
var
|
|
44719
|
+
var components = {};
|
|
45134
44720
|
|
|
45135
|
-
var
|
|
45136
|
-
|
|
45137
|
-
var
|
|
45138
|
-
|
|
45139
|
-
var
|
|
45140
|
-
|
|
45141
|
-
|
|
45142
|
-
|
|
45143
|
-
|
|
45144
|
-
|
|
45145
|
-
|
|
45146
|
-
|
|
45147
|
-
|
|
45148
|
-
|
|
45149
|
-
|
|
45150
|
-
|
|
45151
|
-
|
|
45152
|
-
|
|
45153
|
-
|
|
45154
|
-
|
|
45155
|
-
|
|
45156
|
-
|
|
45157
|
-
|
|
45158
|
-
|
|
45159
|
-
|
|
45160
|
-
|
|
45161
|
-
|
|
45162
|
-
|
|
45163
|
-
|
|
45164
|
-
|
|
45165
|
-
|
|
45166
|
-
|
|
45167
|
-
|
|
45168
|
-
|
|
45169
|
-
|
|
45170
|
-
|
|
45171
|
-
}
|
|
45172
|
-
|
|
45173
|
-
|
|
45174
|
-
"
|
|
45175
|
-
|
|
45176
|
-
|
|
45177
|
-
|
|
45178
|
-
|
|
45179
|
-
|
|
45180
|
-
|
|
45181
|
-
|
|
44721
|
+
var Dropdown$1 = {};
|
|
44722
|
+
|
|
44723
|
+
var Dropdown = {};
|
|
44724
|
+
|
|
44725
|
+
var img$2 = "data:image/svg+xml,%3c%3fxml version='1.0' encoding='UTF-8'%3f%3e%3csvg width='20px' height='20px' viewBox='0 0 20 20' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3e %3c!-- Generator: Sketch 44.1 (41455) - http://www.bohemiancoding.com/sketch --%3e %3ctitle%3eIcons/Directional/chevron-down%3c/title%3e %3cdesc%3eCreated with Sketch.%3c/desc%3e %3cdefs%3e %3cpolygon id='path-1' points='6.17916667 6.84500003 10 10.746733 13.8208333 6.84500003 15 8.04913353 10 13.155 5 8.04913353'%3e%3c/polygon%3e %3c/defs%3e %3cg id='Symbols' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3e %3cg id='Icons/Directional/chevron-down'%3e %3cmask id='mask-2' fill='white'%3e %3cuse xlink:href='%23path-1'%3e%3c/use%3e %3c/mask%3e %3cuse fill='black' xlink:href='%23path-1'%3e%3c/use%3e %3c/g%3e %3c/g%3e%3c/svg%3e";
|
|
44726
|
+
|
|
44727
|
+
var chevronDown_icon = /*#__PURE__*/Object.freeze({
|
|
44728
|
+
__proto__: null,
|
|
44729
|
+
default: img$2
|
|
44730
|
+
});
|
|
44731
|
+
|
|
44732
|
+
var require$$2$1 = /*@__PURE__*/getAugmentedNamespace(chevronDown_icon);
|
|
44733
|
+
|
|
44734
|
+
var img$1 = "data:image/svg+xml,%3c%3fxml version='1.0' encoding='UTF-8'%3f%3e%3csvg width='20px' height='20px' viewBox='0 0 20 20' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3e %3c!-- Generator: Sketch 46.2 (44496) - http://www.bohemiancoding.com/sketch --%3e %3ctitle%3emeatballs%3c/title%3e %3cdesc%3eCreated with Sketch.%3c/desc%3e %3cdefs%3e %3cpath d='M4%2c8 C2.9%2c8 2%2c8.9 2%2c10 C2%2c11.1 2.9%2c12 4%2c12 C5.1%2c12 6%2c11.1 6%2c10 C6%2c8.9 5.1%2c8 4%2c8 L4%2c8 Z M16%2c8 C14.9%2c8 14%2c8.9 14%2c10 C14%2c11.1 14.9%2c12 16%2c12 C17.1%2c12 18%2c11.1 18%2c10 C18%2c8.9 17.1%2c8 16%2c8 L16%2c8 Z M10%2c8 C8.9%2c8 8%2c8.9 8%2c10 C8%2c11.1 8.9%2c12 10%2c12 C11.1%2c12 12%2c11.1 12%2c10 C12%2c8.9 11.1%2c8 10%2c8 L10%2c8 Z' id='path-1'%3e%3c/path%3e %3c/defs%3e %3cg id='Symbols' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3e %3cg id='meatballs'%3e %3cmask id='mask-2' fill='white'%3e %3cuse xlink:href='%23path-1'%3e%3c/use%3e %3c/mask%3e %3cuse id='Icons/Actions/metballs' fill='black' xlink:href='%23path-1'%3e%3c/use%3e %3c/g%3e %3c/g%3e%3c/svg%3e";
|
|
44735
|
+
|
|
44736
|
+
var ellipsis_icon = /*#__PURE__*/Object.freeze({
|
|
44737
|
+
__proto__: null,
|
|
44738
|
+
default: img$1
|
|
44739
|
+
});
|
|
44740
|
+
|
|
44741
|
+
var require$$3$1 = /*@__PURE__*/getAugmentedNamespace(ellipsis_icon);
|
|
44742
|
+
|
|
44743
|
+
var Icon$1 = {};
|
|
44744
|
+
|
|
44745
|
+
var Icon = {};
|
|
44746
|
+
|
|
44747
|
+
var console$1 = {};
|
|
44748
|
+
|
|
44749
|
+
(function(exports) {
|
|
44750
|
+
exports.__esModule = true;
|
|
44751
|
+
exports.singleLine = exports.warn = exports.error = void 0;
|
|
44752
|
+
var red = "\x1B[31m ";
|
|
44753
|
+
var yellow = "\x1B[33m ";
|
|
44754
|
+
var reset = "\x1B[0m ";
|
|
44755
|
+
var error = function(message) {
|
|
44756
|
+
throw new Error("".concat(red, "\nCULTUREAMP UI ERROR:\n").concat((0, exports.singleLine)(message)).concat(reset, "\n"));
|
|
44757
|
+
};
|
|
44758
|
+
exports.error = error;
|
|
44759
|
+
var warn = function(message) {
|
|
44760
|
+
console.warn("".concat(yellow, "\nCULTUREAMP UI WARNING:\n").concat((0, exports.singleLine)(message)).concat(reset, "\n"));
|
|
44761
|
+
};
|
|
44762
|
+
exports.warn = warn;
|
|
44763
|
+
var singleLine = function(message) {
|
|
44764
|
+
return message.replace(/^ +/gm, " ").replace(/\n|\r/gm, "").trim();
|
|
44765
|
+
};
|
|
44766
|
+
exports.singleLine = singleLine;
|
|
44767
|
+
})(console$1);
|
|
44768
|
+
|
|
44769
|
+
var Icon_module = {"icon":"Icon-module_icon__1r20x","inheritSize":"Icon-module_inheritSize__xtkKA","interactiveIconWrapper":"Icon-module_interactiveIconWrapper__ieTrE","disabled":"Icon-module_disabled__bqMQV","hover":"Icon-module_hover__EdRCd","active":"Icon-module_active__d47mz","reversedInteractiveIconWrapper":"Icon-module_reversedInteractiveIconWrapper__sZ6CO Icon-module_interactiveIconWrapper__ieTrE"};
|
|
44770
|
+
|
|
44771
|
+
var Icon_module$1 = /*#__PURE__*/Object.freeze({
|
|
44772
|
+
__proto__: null,
|
|
44773
|
+
default: Icon_module
|
|
44774
|
+
});
|
|
44775
|
+
|
|
44776
|
+
var require$$3 = /*@__PURE__*/getAugmentedNamespace(Icon_module$1);
|
|
44777
|
+
|
|
44778
|
+
(function(exports) {
|
|
44779
|
+
var __assign = commonjsGlobal && commonjsGlobal.__assign || function() {
|
|
44780
|
+
__assign = Object.assign || function(t) {
|
|
44781
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
44782
|
+
s = arguments[i];
|
|
44783
|
+
for (var p in s)
|
|
44784
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
44785
|
+
t[p] = s[p];
|
|
44786
|
+
}
|
|
44787
|
+
return t;
|
|
44788
|
+
};
|
|
44789
|
+
return __assign.apply(this, arguments);
|
|
44790
|
+
};
|
|
44791
|
+
var __rest = commonjsGlobal && commonjsGlobal.__rest || function(s, e) {
|
|
44792
|
+
var t = {};
|
|
44793
|
+
for (var p in s)
|
|
44794
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
44795
|
+
t[p] = s[p];
|
|
44796
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
44797
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
44798
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
44799
|
+
t[p[i]] = s[p[i]];
|
|
44800
|
+
}
|
|
44801
|
+
return t;
|
|
44802
|
+
};
|
|
44803
|
+
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
44804
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
44805
|
+
};
|
|
44806
|
+
exports.__esModule = true;
|
|
44807
|
+
exports.Icon = void 0;
|
|
44808
|
+
var react_1 = __importDefault(React);
|
|
44809
|
+
var classnames_1 = __importDefault(index.classnamesExports);
|
|
44810
|
+
var console_1 = console$1;
|
|
44811
|
+
var Icon_module_scss_1 = __importDefault(require$$3);
|
|
44812
|
+
var Icon = function(_a) {
|
|
44813
|
+
var _b, _c;
|
|
44814
|
+
var icon = _a.icon, _d = _a.inheritSize, inheritSize = _d === void 0 ? false : _d, _e = _a.role, role = _e === void 0 ? "img" : _e, _f = _a.title, title = _f === void 0 ? "" : _f, _g = _a.desc, desc = _g === void 0 ? "" : _g, classNameOverride = _a.classNameOverride, props = __rest(_a, ["icon", "inheritSize", "role", "title", "desc", "classNameOverride"]);
|
|
44815
|
+
var isMeaningfulImg = role === "img";
|
|
44816
|
+
if (isMeaningfulImg && !title) {
|
|
44817
|
+
(0, console_1.warn)(`
|
|
45182
44818
|
Icon with role "img" missing a title attribute.
|
|
45183
44819
|
|
|
45184
44820
|
Assistive technologies that enable vision-impaired users to read web pages
|
|
@@ -45190,28 +44826,1077 @@ const Icon = (_a) => {
|
|
|
45190
44826
|
Either add the missing title prop, or set this icon's role to
|
|
45191
44827
|
"presentation" to indicate it is not meaningful.
|
|
45192
44828
|
`);
|
|
45193
|
-
|
|
45194
|
-
|
|
45195
|
-
|
|
45196
|
-
|
|
45197
|
-
|
|
45198
|
-
|
|
44829
|
+
}
|
|
44830
|
+
var renderTitle = function() {
|
|
44831
|
+
return isMeaningfulImg && !!title && react_1["default"].createElement("title", null, title);
|
|
44832
|
+
};
|
|
44833
|
+
var renderDesc = function() {
|
|
44834
|
+
return isMeaningfulImg && !!desc && react_1["default"].createElement("desc", null, desc);
|
|
44835
|
+
};
|
|
44836
|
+
var accessibilityProps = (_b = {
|
|
44837
|
+
role
|
|
44838
|
+
}, _b["aria-hidden"] = isMeaningfulImg ? void 0 : true, _b);
|
|
44839
|
+
return react_1["default"].createElement(
|
|
44840
|
+
"svg",
|
|
44841
|
+
__assign({
|
|
44842
|
+
className: (0, classnames_1["default"])(Icon_module_scss_1["default"].icon, classNameOverride, (_c = {}, _c[Icon_module_scss_1["default"].inheritSize] = inheritSize, _c)),
|
|
44843
|
+
viewBox: icon.viewBox,
|
|
44844
|
+
// Work around IE11 making all SVGs focusable.
|
|
44845
|
+
// See http://simplyaccessible.com/article/7-solutions-svgs/#acc-heading-4
|
|
44846
|
+
focusable: "false"
|
|
44847
|
+
}, accessibilityProps, props),
|
|
44848
|
+
renderTitle(),
|
|
44849
|
+
renderDesc(),
|
|
44850
|
+
react_1["default"].createElement("use", { xlinkHref: "#".concat(icon.id) })
|
|
44851
|
+
);
|
|
45199
44852
|
};
|
|
45200
|
-
|
|
45201
|
-
|
|
45202
|
-
|
|
45203
|
-
|
|
45204
|
-
|
|
45205
|
-
|
|
45206
|
-
|
|
45207
|
-
|
|
45208
|
-
|
|
45209
|
-
|
|
45210
|
-
|
|
45211
|
-
|
|
44853
|
+
exports.Icon = Icon;
|
|
44854
|
+
exports.Icon.displayName = "Icon";
|
|
44855
|
+
})(Icon);
|
|
44856
|
+
|
|
44857
|
+
(function(exports) {
|
|
44858
|
+
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
44859
|
+
if (k2 === void 0)
|
|
44860
|
+
k2 = k;
|
|
44861
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
44862
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
44863
|
+
desc = { enumerable: true, get: function() {
|
|
44864
|
+
return m[k];
|
|
44865
|
+
} };
|
|
44866
|
+
}
|
|
44867
|
+
Object.defineProperty(o, k2, desc);
|
|
44868
|
+
} : function(o, m, k, k2) {
|
|
44869
|
+
if (k2 === void 0)
|
|
44870
|
+
k2 = k;
|
|
44871
|
+
o[k2] = m[k];
|
|
44872
|
+
});
|
|
44873
|
+
var __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function(m, exports2) {
|
|
44874
|
+
for (var p in m)
|
|
44875
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p))
|
|
44876
|
+
__createBinding(exports2, m, p);
|
|
44877
|
+
};
|
|
44878
|
+
exports.__esModule = true;
|
|
44879
|
+
__exportStar(Icon, exports);
|
|
44880
|
+
})(Icon$1);
|
|
44881
|
+
|
|
44882
|
+
var DropdownMenu = {};
|
|
44883
|
+
|
|
44884
|
+
var Dropdown_module = {"dropdown":"Dropdown-module_dropdown__09sgL","buttonReset":"Dropdown-module_buttonReset__O69sc","dropdownButton":"Dropdown-module_dropdownButton__FiRVW Dropdown-module_buttonReset__O69sc","dropdownControlAction":"Dropdown-module_dropdownControlAction__iWJog","dropdownIcon":"Dropdown-module_dropdownIcon__tZfDQ","dropdownLabel":"Dropdown-module_dropdownLabel__bpY-X","dropdownHoverArea":"Dropdown-module_dropdownHoverArea__M-Y-K","isOpen":"Dropdown-module_isOpen__Kf4XR","chevronIcon":"Dropdown-module_chevronIcon__Ieh4i","menuContainer":"Dropdown-module_menuContainer__xl9MT","reversedColor":"Dropdown-module_reversedColor__rGeiB"};
|
|
44885
|
+
|
|
44886
|
+
var Dropdown_module$1 = /*#__PURE__*/Object.freeze({
|
|
44887
|
+
__proto__: null,
|
|
44888
|
+
default: Dropdown_module
|
|
44889
|
+
});
|
|
44890
|
+
|
|
44891
|
+
var require$$6 = /*@__PURE__*/getAugmentedNamespace(Dropdown_module$1);
|
|
44892
|
+
|
|
44893
|
+
(function(exports) {
|
|
44894
|
+
var __extends = commonjsGlobal && commonjsGlobal.__extends || function() {
|
|
44895
|
+
var extendStatics = function(d, b) {
|
|
44896
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
44897
|
+
d2.__proto__ = b2;
|
|
44898
|
+
} || function(d2, b2) {
|
|
44899
|
+
for (var p in b2)
|
|
44900
|
+
if (Object.prototype.hasOwnProperty.call(b2, p))
|
|
44901
|
+
d2[p] = b2[p];
|
|
44902
|
+
};
|
|
44903
|
+
return extendStatics(d, b);
|
|
44904
|
+
};
|
|
44905
|
+
return function(d, b) {
|
|
44906
|
+
if (typeof b !== "function" && b !== null)
|
|
44907
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
44908
|
+
extendStatics(d, b);
|
|
44909
|
+
function __() {
|
|
44910
|
+
this.constructor = d;
|
|
44911
|
+
}
|
|
44912
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
44913
|
+
};
|
|
44914
|
+
}();
|
|
44915
|
+
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
44916
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
44917
|
+
};
|
|
44918
|
+
exports.__esModule = true;
|
|
44919
|
+
var react_1 = __importDefault(React);
|
|
44920
|
+
var Dropdown_module_scss_1 = __importDefault(require$$6);
|
|
44921
|
+
var DropdownMenu = (
|
|
44922
|
+
/** @class */
|
|
44923
|
+
function(_super) {
|
|
44924
|
+
__extends(DropdownMenu2, _super);
|
|
44925
|
+
function DropdownMenu2() {
|
|
44926
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
44927
|
+
_this.menu = react_1["default"].createRef();
|
|
44928
|
+
_this.handleDocumentClick = function(e) {
|
|
44929
|
+
if (_this.menu && _this.menu.current && e.target instanceof Node && !_this.menu.current.contains(e.target)) {
|
|
44930
|
+
_this.props.hideDropdownMenu();
|
|
44931
|
+
}
|
|
44932
|
+
};
|
|
44933
|
+
_this.handleDocumentResize = function() {
|
|
44934
|
+
_this.props.hideDropdownMenu();
|
|
44935
|
+
};
|
|
44936
|
+
return _this;
|
|
44937
|
+
}
|
|
44938
|
+
DropdownMenu2.prototype.componentDidMount = function() {
|
|
44939
|
+
document.addEventListener("click", this.handleDocumentClick, false);
|
|
44940
|
+
window.addEventListener("resize", this.handleDocumentResize, false);
|
|
44941
|
+
this.positionMenu();
|
|
44942
|
+
};
|
|
44943
|
+
DropdownMenu2.prototype.componentWillUnmount = function() {
|
|
44944
|
+
document.removeEventListener("click", this.handleDocumentClick, false);
|
|
44945
|
+
window.removeEventListener("resize", this.handleDocumentResize, false);
|
|
44946
|
+
};
|
|
44947
|
+
DropdownMenu2.prototype.render = function() {
|
|
44948
|
+
var _a = this.props, hideDropdownMenu = _a.hideDropdownMenu, children = _a.children;
|
|
44949
|
+
return (
|
|
44950
|
+
// Disabling instead of addressing because this component is deprecated
|
|
44951
|
+
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
44952
|
+
react_1["default"].createElement("div", { className: Dropdown_module_scss_1["default"].menuContainer, ref: this.menu, onClick: hideDropdownMenu }, children)
|
|
44953
|
+
);
|
|
44954
|
+
};
|
|
44955
|
+
DropdownMenu2.prototype.positionMenu = function() {
|
|
44956
|
+
var menu = this.menu;
|
|
44957
|
+
if (!this.props.position || !menu) {
|
|
44958
|
+
return;
|
|
44959
|
+
}
|
|
44960
|
+
if (menu.current) {
|
|
44961
|
+
var pos = this.props.position;
|
|
44962
|
+
var innerHeight_1 = window.innerHeight;
|
|
44963
|
+
var rect = menu.current.getBoundingClientRect();
|
|
44964
|
+
if (pos.bottom > innerHeight_1 - rect.height) {
|
|
44965
|
+
menu.current.style.bottom = "24px";
|
|
44966
|
+
menu.current.style.top = "auto";
|
|
44967
|
+
} else {
|
|
44968
|
+
menu.current.style.top = "24px";
|
|
44969
|
+
menu.current.style.bottom = "auto";
|
|
44970
|
+
}
|
|
44971
|
+
}
|
|
44972
|
+
};
|
|
44973
|
+
DropdownMenu2.displayName = "DropdownMenu";
|
|
44974
|
+
return DropdownMenu2;
|
|
44975
|
+
}(react_1["default"].Component)
|
|
44976
|
+
);
|
|
44977
|
+
exports["default"] = DropdownMenu;
|
|
44978
|
+
})(DropdownMenu);
|
|
44979
|
+
|
|
44980
|
+
(function(exports) {
|
|
44981
|
+
var __extends = commonjsGlobal && commonjsGlobal.__extends || function() {
|
|
44982
|
+
var extendStatics = function(d, b) {
|
|
44983
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
44984
|
+
d2.__proto__ = b2;
|
|
44985
|
+
} || function(d2, b2) {
|
|
44986
|
+
for (var p in b2)
|
|
44987
|
+
if (Object.prototype.hasOwnProperty.call(b2, p))
|
|
44988
|
+
d2[p] = b2[p];
|
|
44989
|
+
};
|
|
44990
|
+
return extendStatics(d, b);
|
|
44991
|
+
};
|
|
44992
|
+
return function(d, b) {
|
|
44993
|
+
if (typeof b !== "function" && b !== null)
|
|
44994
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
44995
|
+
extendStatics(d, b);
|
|
44996
|
+
function __() {
|
|
44997
|
+
this.constructor = d;
|
|
44998
|
+
}
|
|
44999
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
45000
|
+
};
|
|
45001
|
+
}();
|
|
45002
|
+
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
45003
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
45004
|
+
};
|
|
45005
|
+
exports.__esModule = true;
|
|
45006
|
+
var react_1 = __importDefault(React);
|
|
45007
|
+
var classnames_1 = __importDefault(index.classnamesExports);
|
|
45008
|
+
var chevron_down_icon_svg_1 = __importDefault(require$$2$1);
|
|
45009
|
+
var ellipsis_icon_svg_1 = __importDefault(require$$3$1);
|
|
45010
|
+
var Icon_1 = Icon$1;
|
|
45011
|
+
var DropdownMenu_1 = __importDefault(DropdownMenu);
|
|
45012
|
+
var Dropdown_module_scss_1 = __importDefault(require$$6);
|
|
45013
|
+
var Dropdown = (
|
|
45014
|
+
/** @class */
|
|
45015
|
+
function(_super) {
|
|
45016
|
+
__extends(Dropdown2, _super);
|
|
45017
|
+
function Dropdown2(props) {
|
|
45018
|
+
var _this = _super.call(this, props) || this;
|
|
45019
|
+
_this.dropdownButton = react_1["default"].createRef();
|
|
45020
|
+
_this.toggleDropdownMenu = function(e) {
|
|
45021
|
+
e.stopPropagation();
|
|
45022
|
+
var currentState = _this.state.isMenuVisible;
|
|
45023
|
+
_this.setState({
|
|
45024
|
+
isMenuVisible: !currentState
|
|
45025
|
+
});
|
|
45026
|
+
};
|
|
45027
|
+
_this.hideDropdownMenu = function() {
|
|
45028
|
+
_this.setState({
|
|
45029
|
+
isMenuVisible: false
|
|
45030
|
+
});
|
|
45031
|
+
};
|
|
45032
|
+
_this.renderIcon = function(icon) {
|
|
45033
|
+
if (!icon)
|
|
45034
|
+
return;
|
|
45035
|
+
return react_1["default"].createElement(
|
|
45036
|
+
"span",
|
|
45037
|
+
{ className: Dropdown_module_scss_1["default"].dropdownIcon },
|
|
45038
|
+
react_1["default"].createElement(Icon_1.Icon, { icon, role: "img", title: "Open menu" })
|
|
45039
|
+
);
|
|
45040
|
+
};
|
|
45041
|
+
_this.renderDownArrow = function() {
|
|
45042
|
+
var _a = _this.props, label = _a.label, controlAction = _a.controlAction;
|
|
45043
|
+
if (!label || !controlAction)
|
|
45044
|
+
return;
|
|
45045
|
+
return react_1["default"].createElement(
|
|
45046
|
+
"span",
|
|
45047
|
+
{ className: Dropdown_module_scss_1["default"].chevronIcon },
|
|
45048
|
+
react_1["default"].createElement(Icon_1.Icon, { icon: chevron_down_icon_svg_1["default"], role: "img", title: "Open menu" })
|
|
45049
|
+
);
|
|
45050
|
+
};
|
|
45051
|
+
_this.renderButtonContent = function() {
|
|
45052
|
+
var label = _this.props.label;
|
|
45053
|
+
var icon = _this.props.icon;
|
|
45054
|
+
if (!icon && !label) {
|
|
45055
|
+
icon = ellipsis_icon_svg_1["default"];
|
|
45056
|
+
}
|
|
45057
|
+
return react_1["default"].createElement(
|
|
45058
|
+
react_1["default"].Fragment,
|
|
45059
|
+
null,
|
|
45060
|
+
_this.renderIcon(icon),
|
|
45061
|
+
label && react_1["default"].createElement("span", { className: Dropdown_module_scss_1["default"].dropdownLabel }, label),
|
|
45062
|
+
_this.renderDownArrow()
|
|
45063
|
+
);
|
|
45064
|
+
};
|
|
45065
|
+
_this.renderReversedButtonContent = function() {
|
|
45066
|
+
var _a = _this.props, icon = _a.icon, label = _a.label;
|
|
45067
|
+
return react_1["default"].createElement(
|
|
45068
|
+
react_1["default"].Fragment,
|
|
45069
|
+
null,
|
|
45070
|
+
_this.renderDownArrow(),
|
|
45071
|
+
label && react_1["default"].createElement("span", { className: Dropdown_module_scss_1["default"].dropdownLabel }, label),
|
|
45072
|
+
_this.renderIcon(icon)
|
|
45073
|
+
);
|
|
45074
|
+
};
|
|
45075
|
+
_this.state = {
|
|
45076
|
+
isMenuVisible: Boolean(props.menuVisible)
|
|
45077
|
+
};
|
|
45078
|
+
return _this;
|
|
45079
|
+
}
|
|
45080
|
+
Dropdown2.prototype.getPosition = function() {
|
|
45081
|
+
return this.dropdownButton && this.dropdownButton.current ? this.dropdownButton.current.getBoundingClientRect() : null;
|
|
45082
|
+
};
|
|
45083
|
+
Dropdown2.prototype.renderDropdownMenu = function() {
|
|
45084
|
+
return react_1["default"].createElement(DropdownMenu_1["default"], { hideDropdownMenu: this.hideDropdownMenu, position: this.getPosition() }, this.props.children);
|
|
45085
|
+
};
|
|
45086
|
+
Dropdown2.prototype.render = function() {
|
|
45087
|
+
var _a;
|
|
45088
|
+
var _b = this.props, controlAction = _b.controlAction, automationId = _b.automationId, iconPosition = _b.iconPosition, reversedColor = _b.reversedColor;
|
|
45089
|
+
var reverseIcon = iconPosition === "end";
|
|
45090
|
+
var btnClass = (0, classnames_1["default"])(Dropdown_module_scss_1["default"].dropdownButton, (_a = {}, _a[Dropdown_module_scss_1["default"].dropdownControlAction] = controlAction, _a[Dropdown_module_scss_1["default"].isOpen] = this.state.isMenuVisible, _a[Dropdown_module_scss_1["default"].reversedColor] = reversedColor, _a));
|
|
45091
|
+
return react_1["default"].createElement(
|
|
45092
|
+
"div",
|
|
45093
|
+
{ className: Dropdown_module_scss_1["default"].dropdown },
|
|
45094
|
+
react_1["default"].createElement(
|
|
45095
|
+
"button",
|
|
45096
|
+
{ className: btnClass, onClick: this.toggleDropdownMenu, onMouseDown: function(e) {
|
|
45097
|
+
return e.preventDefault();
|
|
45098
|
+
}, ref: this.dropdownButton, "data-automation-id": automationId },
|
|
45099
|
+
!reverseIcon && this.renderButtonContent(),
|
|
45100
|
+
reverseIcon && this.renderReversedButtonContent()
|
|
45101
|
+
),
|
|
45102
|
+
this.state.isMenuVisible && this.renderDropdownMenu()
|
|
45103
|
+
);
|
|
45104
|
+
};
|
|
45105
|
+
Dropdown2.displayName = "Dropdown";
|
|
45106
|
+
Dropdown2.defaultProps = {
|
|
45107
|
+
iconPosition: "start"
|
|
45108
|
+
};
|
|
45109
|
+
return Dropdown2;
|
|
45110
|
+
}(react_1["default"].Component)
|
|
45111
|
+
);
|
|
45112
|
+
exports["default"] = Dropdown;
|
|
45113
|
+
})(Dropdown);
|
|
45114
|
+
|
|
45115
|
+
(function(exports) {
|
|
45116
|
+
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
45117
|
+
if (k2 === void 0)
|
|
45118
|
+
k2 = k;
|
|
45119
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
45120
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
45121
|
+
desc = { enumerable: true, get: function() {
|
|
45122
|
+
return m[k];
|
|
45123
|
+
} };
|
|
45124
|
+
}
|
|
45125
|
+
Object.defineProperty(o, k2, desc);
|
|
45126
|
+
} : function(o, m, k, k2) {
|
|
45127
|
+
if (k2 === void 0)
|
|
45128
|
+
k2 = k;
|
|
45129
|
+
o[k2] = m[k];
|
|
45130
|
+
});
|
|
45131
|
+
exports.__esModule = true;
|
|
45132
|
+
exports.Dropdown = void 0;
|
|
45133
|
+
var Dropdown_1 = Dropdown;
|
|
45134
|
+
__createBinding(exports, Dropdown_1, "default", "Dropdown");
|
|
45135
|
+
})(Dropdown$1);
|
|
45136
|
+
|
|
45137
|
+
var Layout$1 = {};
|
|
45138
|
+
|
|
45139
|
+
var Layout = {};
|
|
45140
|
+
|
|
45141
|
+
var Layout_module = {"root":"Layout-module_root__SgXZT","navigationBar":"Layout-module_navigationBar__1xbfp","page":"Layout-module_page__ZSTUO","header":"Layout-module_header__X1E96","footer":"Layout-module_footer__wFknz","body":"Layout-module_body__r1d-M","bodyInner":"Layout-module_bodyInner__e5WA6","sidebar":"Layout-module_sidebar__FSH-B","content":"Layout-module_content__6gaoR","toasts":"Layout-module_toasts__ZDy2G","announcers":"Layout-module_announcers__fAmmq"};
|
|
45142
|
+
|
|
45143
|
+
var Layout_module$1 = /*#__PURE__*/Object.freeze({
|
|
45144
|
+
__proto__: null,
|
|
45145
|
+
default: Layout_module
|
|
45146
|
+
});
|
|
45147
|
+
|
|
45148
|
+
var require$$1$3 = /*@__PURE__*/getAugmentedNamespace(Layout_module$1);
|
|
45149
|
+
|
|
45150
|
+
(function(exports) {
|
|
45151
|
+
var __extends = commonjsGlobal && commonjsGlobal.__extends || function() {
|
|
45152
|
+
var extendStatics = function(d, b) {
|
|
45153
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
45154
|
+
d2.__proto__ = b2;
|
|
45155
|
+
} || function(d2, b2) {
|
|
45156
|
+
for (var p in b2)
|
|
45157
|
+
if (Object.prototype.hasOwnProperty.call(b2, p))
|
|
45158
|
+
d2[p] = b2[p];
|
|
45159
|
+
};
|
|
45160
|
+
return extendStatics(d, b);
|
|
45161
|
+
};
|
|
45162
|
+
return function(d, b) {
|
|
45163
|
+
if (typeof b !== "function" && b !== null)
|
|
45164
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
45165
|
+
extendStatics(d, b);
|
|
45166
|
+
function __() {
|
|
45167
|
+
this.constructor = d;
|
|
45168
|
+
}
|
|
45169
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
45170
|
+
};
|
|
45171
|
+
}();
|
|
45172
|
+
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
45173
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
45174
|
+
};
|
|
45175
|
+
exports.__esModule = true;
|
|
45176
|
+
var react_1 = __importDefault(React);
|
|
45177
|
+
var Layout_module_scss_1 = __importDefault(require$$1$3);
|
|
45178
|
+
var NavigationBar = function(_a) {
|
|
45179
|
+
var children = _a.children;
|
|
45180
|
+
return react_1["default"].createElement("div", { className: Layout_module_scss_1["default"].navigationBar }, children);
|
|
45181
|
+
};
|
|
45182
|
+
NavigationBar.displayName = "NavigationBar";
|
|
45183
|
+
var Sidebar = function(_a) {
|
|
45184
|
+
var children = _a.children;
|
|
45185
|
+
return react_1["default"].createElement(
|
|
45186
|
+
"div",
|
|
45187
|
+
{ className: Layout_module_scss_1["default"].sidebar },
|
|
45188
|
+
react_1["default"].createElement("div", { className: Layout_module_scss_1["default"].sidebarInner }, children)
|
|
45189
|
+
);
|
|
45190
|
+
};
|
|
45191
|
+
Sidebar.displayName = "Sidebar";
|
|
45192
|
+
var Header = function(_a) {
|
|
45193
|
+
var children = _a.children;
|
|
45194
|
+
return react_1["default"].createElement("aside", { className: Layout_module_scss_1["default"].header }, children);
|
|
45195
|
+
};
|
|
45196
|
+
Header.displayName = "Header";
|
|
45197
|
+
var Footer = function(_a) {
|
|
45198
|
+
var children = _a.children;
|
|
45199
|
+
return react_1["default"].createElement("footer", { className: Layout_module_scss_1["default"].footer }, children);
|
|
45200
|
+
};
|
|
45201
|
+
Footer.displayName = "Footer";
|
|
45202
|
+
var Toasts = function(_a) {
|
|
45203
|
+
var children = _a.children;
|
|
45204
|
+
return react_1["default"].createElement("div", { className: Layout_module_scss_1["default"].toasts, "aria-live": "assertive" }, children);
|
|
45205
|
+
};
|
|
45206
|
+
Toasts.displayName = "Toasts";
|
|
45207
|
+
var Announcers = function(_a) {
|
|
45208
|
+
var children = _a.children;
|
|
45209
|
+
return react_1["default"].createElement("div", { className: Layout_module_scss_1["default"].announcers, "aria-live": "assertive" }, children);
|
|
45210
|
+
};
|
|
45211
|
+
Announcers.displayName = "Announcers";
|
|
45212
|
+
var Layout = (
|
|
45213
|
+
/** @class */
|
|
45214
|
+
function(_super) {
|
|
45215
|
+
__extends(Layout2, _super);
|
|
45216
|
+
function Layout2() {
|
|
45217
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
45218
|
+
}
|
|
45219
|
+
Layout2.prototype.render = function() {
|
|
45220
|
+
var content = react_1["default"].Children.toArray(this.props.children);
|
|
45221
|
+
var navbar = extractChildOfType(content, NavigationBar);
|
|
45222
|
+
var header = extractChildOfType(content, Header);
|
|
45223
|
+
var sidebar = extractChildOfType(content, Sidebar);
|
|
45224
|
+
var footer = extractChildOfType(content, Footer);
|
|
45225
|
+
var announcers = extractChildOfType(content, Announcers);
|
|
45226
|
+
var toasts = extractChildOfType(content, Toasts);
|
|
45227
|
+
return react_1["default"].createElement(
|
|
45228
|
+
"div",
|
|
45229
|
+
{ className: Layout_module_scss_1["default"].root },
|
|
45230
|
+
navbar,
|
|
45231
|
+
announcers,
|
|
45232
|
+
react_1["default"].createElement(
|
|
45233
|
+
"div",
|
|
45234
|
+
{ className: Layout_module_scss_1["default"].page },
|
|
45235
|
+
header,
|
|
45236
|
+
toasts,
|
|
45237
|
+
react_1["default"].createElement(
|
|
45238
|
+
"div",
|
|
45239
|
+
{ className: Layout_module_scss_1["default"].body },
|
|
45240
|
+
react_1["default"].createElement(
|
|
45241
|
+
"div",
|
|
45242
|
+
{ className: Layout_module_scss_1["default"].bodyInner },
|
|
45243
|
+
sidebar,
|
|
45244
|
+
react_1["default"].createElement("main", { className: Layout_module_scss_1["default"].content }, content)
|
|
45245
|
+
)
|
|
45246
|
+
),
|
|
45247
|
+
footer
|
|
45248
|
+
)
|
|
45249
|
+
);
|
|
45250
|
+
};
|
|
45251
|
+
Layout2.displayName = "Layout";
|
|
45252
|
+
Layout2.NavigationBar = NavigationBar;
|
|
45253
|
+
Layout2.Sidebar = Sidebar;
|
|
45254
|
+
Layout2.Header = Header;
|
|
45255
|
+
Layout2.Footer = Footer;
|
|
45256
|
+
Layout2.Toasts = Toasts;
|
|
45257
|
+
Layout2.Announcers = Announcers;
|
|
45258
|
+
return Layout2;
|
|
45259
|
+
}(react_1["default"].Component)
|
|
45212
45260
|
);
|
|
45261
|
+
var extractChildOfType = function(children, type) {
|
|
45262
|
+
var match = children.find(function(child) {
|
|
45263
|
+
if (react_1["default"].isValidElement(child) && typeof child.type === "function") {
|
|
45264
|
+
return child.type.displayName === type.displayName;
|
|
45265
|
+
}
|
|
45266
|
+
return false;
|
|
45267
|
+
});
|
|
45268
|
+
if (match) {
|
|
45269
|
+
var index = children.indexOf(match);
|
|
45270
|
+
children.splice(index, 1);
|
|
45271
|
+
}
|
|
45272
|
+
return match;
|
|
45273
|
+
};
|
|
45274
|
+
exports["default"] = Layout;
|
|
45275
|
+
})(Layout);
|
|
45276
|
+
|
|
45277
|
+
(function(exports) {
|
|
45278
|
+
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
45279
|
+
if (k2 === void 0)
|
|
45280
|
+
k2 = k;
|
|
45281
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
45282
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
45283
|
+
desc = { enumerable: true, get: function() {
|
|
45284
|
+
return m[k];
|
|
45285
|
+
} };
|
|
45286
|
+
}
|
|
45287
|
+
Object.defineProperty(o, k2, desc);
|
|
45288
|
+
} : function(o, m, k, k2) {
|
|
45289
|
+
if (k2 === void 0)
|
|
45290
|
+
k2 = k;
|
|
45291
|
+
o[k2] = m[k];
|
|
45292
|
+
});
|
|
45293
|
+
exports.__esModule = true;
|
|
45294
|
+
exports.Layout = void 0;
|
|
45295
|
+
var Layout_1 = Layout;
|
|
45296
|
+
__createBinding(exports, Layout_1, "default", "Layout");
|
|
45297
|
+
})(Layout$1);
|
|
45298
|
+
|
|
45299
|
+
var MenuList$1 = {};
|
|
45300
|
+
|
|
45301
|
+
var MenuList = {};
|
|
45302
|
+
|
|
45303
|
+
var Menu_module = {"menuList":"Menu-module_menuList__behqY","header":"Menu-module_header__MMpNm","header__title":"Menu-module_header__title__4QK0E","menuItem":"Menu-module_menuItem__0rlZg Icon-module_interactiveIconWrapper__ieTrE","menuItem--active":"Menu-module_menuItem--active__xr3IS Icon-module_active__d47mz","menuItem__Icon":"Menu-module_menuItem__Icon__SEvH-","menuItem--destructive":"Menu-module_menuItem--destructive__bg0qx","menuItem__Label":"Menu-module_menuItem__Label__KPrkg","hoverIcon":"Menu-module_hoverIcon__WCsbC","separator":"Menu-module_separator__RCRVm"};
|
|
45304
|
+
|
|
45305
|
+
var Menu_module$1 = /*#__PURE__*/Object.freeze({
|
|
45306
|
+
__proto__: null,
|
|
45307
|
+
default: Menu_module
|
|
45308
|
+
});
|
|
45309
|
+
|
|
45310
|
+
var require$$1$2 = /*@__PURE__*/getAugmentedNamespace(Menu_module$1);
|
|
45311
|
+
|
|
45312
|
+
(function(exports) {
|
|
45313
|
+
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
45314
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
45315
|
+
};
|
|
45316
|
+
exports.__esModule = true;
|
|
45317
|
+
var react_1 = __importDefault(React);
|
|
45318
|
+
var Menu_module_scss_1 = __importDefault(require$$1$2);
|
|
45319
|
+
var MenuList = function(props) {
|
|
45320
|
+
return react_1["default"].createElement("div", { className: Menu_module_scss_1["default"].menuList }, props.children);
|
|
45321
|
+
};
|
|
45322
|
+
MenuList.displayName = "MenuList";
|
|
45323
|
+
exports["default"] = MenuList;
|
|
45324
|
+
})(MenuList);
|
|
45325
|
+
|
|
45326
|
+
var MenuHeader = {};
|
|
45327
|
+
|
|
45328
|
+
(function(exports) {
|
|
45329
|
+
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
45330
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
45331
|
+
};
|
|
45332
|
+
exports.__esModule = true;
|
|
45333
|
+
var react_1 = __importDefault(React);
|
|
45334
|
+
var Menu_module_scss_1 = __importDefault(require$$1$2);
|
|
45335
|
+
var MenuHeader = function(props) {
|
|
45336
|
+
return react_1["default"].createElement(
|
|
45337
|
+
"div",
|
|
45338
|
+
{ className: Menu_module_scss_1["default"].header },
|
|
45339
|
+
react_1["default"].createElement("span", { className: Menu_module_scss_1["default"].header__title }, props.title)
|
|
45340
|
+
);
|
|
45341
|
+
};
|
|
45342
|
+
MenuHeader.displayName = "MenuHeader";
|
|
45343
|
+
exports["default"] = MenuHeader;
|
|
45344
|
+
})(MenuHeader);
|
|
45345
|
+
|
|
45346
|
+
var MenuItem = {};
|
|
45347
|
+
|
|
45348
|
+
(function(exports) {
|
|
45349
|
+
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
45350
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
45351
|
+
};
|
|
45352
|
+
exports.__esModule = true;
|
|
45353
|
+
var react_1 = __importDefault(React);
|
|
45354
|
+
var classnames_1 = __importDefault(index.classnamesExports);
|
|
45355
|
+
var Icon_1 = Icon$1;
|
|
45356
|
+
var Menu_module_scss_1 = __importDefault(require$$1$2);
|
|
45357
|
+
var MenuItem = function(props) {
|
|
45358
|
+
var _a;
|
|
45359
|
+
var icon = props.icon, hoverIcon = props.hoverIcon, children = props.children, action = props.action, active = props.active, destructive = props.destructive, automationId = props.automationId;
|
|
45360
|
+
var isLink = typeof action === "string";
|
|
45361
|
+
var label = react_1["default"].createElement(
|
|
45362
|
+
"span",
|
|
45363
|
+
{ className: Menu_module_scss_1["default"].menuItem__Label },
|
|
45364
|
+
children,
|
|
45365
|
+
isLink && "\u2026"
|
|
45366
|
+
);
|
|
45367
|
+
var iconNode = icon && react_1["default"].createElement(
|
|
45368
|
+
"span",
|
|
45369
|
+
{ className: Menu_module_scss_1["default"].menuItem__Icon },
|
|
45370
|
+
react_1["default"].createElement(Icon_1.Icon, { icon, role: "presentation" })
|
|
45371
|
+
);
|
|
45372
|
+
var className = (0, classnames_1["default"])((_a = {}, _a[Menu_module_scss_1["default"].menuItem] = true, _a[Menu_module_scss_1["default"].hoverIcon] = icon && hoverIcon, _a[Menu_module_scss_1["default"]["menuItem--active"]] = active, _a[Menu_module_scss_1["default"]["menuItem--destructive"]] = destructive, _a));
|
|
45373
|
+
if (typeof action === "string") {
|
|
45374
|
+
return react_1["default"].createElement(
|
|
45375
|
+
"a",
|
|
45376
|
+
{ href: action, className, "data-automation-id": automationId },
|
|
45377
|
+
label,
|
|
45378
|
+
iconNode
|
|
45379
|
+
);
|
|
45380
|
+
}
|
|
45381
|
+
return (
|
|
45382
|
+
// Disabling instead of addressing because this component is deprecated.
|
|
45383
|
+
// eslint-disable-next-line jsx-a11y/anchor-is-valid
|
|
45384
|
+
react_1["default"].createElement(
|
|
45385
|
+
"a",
|
|
45386
|
+
{ href: "#", onClick: action, className, "data-automation-id": automationId },
|
|
45387
|
+
label,
|
|
45388
|
+
iconNode
|
|
45389
|
+
)
|
|
45390
|
+
);
|
|
45391
|
+
};
|
|
45392
|
+
MenuItem.displayName = "MenuItem";
|
|
45393
|
+
exports["default"] = MenuItem;
|
|
45394
|
+
})(MenuItem);
|
|
45395
|
+
|
|
45396
|
+
var MenuSeparator = {};
|
|
45397
|
+
|
|
45398
|
+
(function(exports) {
|
|
45399
|
+
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
45400
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
45401
|
+
};
|
|
45402
|
+
exports.__esModule = true;
|
|
45403
|
+
var react_1 = __importDefault(React);
|
|
45404
|
+
var Menu_module_scss_1 = __importDefault(require$$1$2);
|
|
45405
|
+
var MenuSeparator = function() {
|
|
45406
|
+
return react_1["default"].createElement("hr", { className: Menu_module_scss_1["default"].separator });
|
|
45407
|
+
};
|
|
45408
|
+
MenuSeparator.displayName = "MenuSeparator";
|
|
45409
|
+
exports["default"] = MenuSeparator;
|
|
45410
|
+
})(MenuSeparator);
|
|
45411
|
+
|
|
45412
|
+
(function(exports) {
|
|
45413
|
+
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
45414
|
+
if (k2 === void 0)
|
|
45415
|
+
k2 = k;
|
|
45416
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
45417
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
45418
|
+
desc = { enumerable: true, get: function() {
|
|
45419
|
+
return m[k];
|
|
45420
|
+
} };
|
|
45421
|
+
}
|
|
45422
|
+
Object.defineProperty(o, k2, desc);
|
|
45423
|
+
} : function(o, m, k, k2) {
|
|
45424
|
+
if (k2 === void 0)
|
|
45425
|
+
k2 = k;
|
|
45426
|
+
o[k2] = m[k];
|
|
45427
|
+
});
|
|
45428
|
+
exports.__esModule = true;
|
|
45429
|
+
exports.MenuSeparator = exports.MenuItem = exports.MenuHeader = exports.MenuList = void 0;
|
|
45430
|
+
var MenuList_1 = MenuList;
|
|
45431
|
+
__createBinding(exports, MenuList_1, "default", "MenuList");
|
|
45432
|
+
var MenuHeader_1 = MenuHeader;
|
|
45433
|
+
__createBinding(exports, MenuHeader_1, "default", "MenuHeader");
|
|
45434
|
+
var MenuItem_1 = MenuItem;
|
|
45435
|
+
__createBinding(exports, MenuItem_1, "default", "MenuItem");
|
|
45436
|
+
var MenuSeparator_1 = MenuSeparator;
|
|
45437
|
+
__createBinding(exports, MenuSeparator_1, "default", "MenuSeparator");
|
|
45438
|
+
})(MenuList$1);
|
|
45439
|
+
|
|
45440
|
+
var Text$1 = {};
|
|
45441
|
+
|
|
45442
|
+
var Text = {};
|
|
45443
|
+
|
|
45444
|
+
var Text_module = {"page-title":"Text-module_page-title__LPGyH","default-style":"Text-module_default-style__wxvqC","title":"Text-module_title__zDZi1","display":"Text-module_display__4XAjg","heading":"Text-module_heading__bdw3r","lede":"Text-module_lede__rvztp","paragraph":"Text-module_paragraph__65c7w","body":"Text-module_body__5HknB","body-bold":"Text-module_body-bold__M2YFx","small":"Text-module_small__VBWdb","small-bold":"Text-module_small-bold__IFUAu","notification":"Text-module_notification__jl725","label":"Text-module_label__gUBTw","control-action":"Text-module_control-action__BErPr","button":"Text-module_button__nPbRH","inheritBaseline":"Text-module_inheritBaseline__D0Lfs","inline":"Text-module_inline__KlYw2","defaultStyle":"Text-module_defaultStyle__Tka8v Text-module_default-style__wxvqC","pageTitle":"Text-module_pageTitle__-NMTK Text-module_page-title__LPGyH","bodyBold":"Text-module_bodyBold__CCDF7 Text-module_body-bold__M2YFx","smallBold":"Text-module_smallBold__TdPug Text-module_small-bold__IFUAu","controlAction":"Text-module_controlAction__WB-Pz Text-module_control-action__BErPr","zen-display-0":"Text-module_zen-display-0__s1w7g","zen-heading-1":"Text-module_zen-heading-1__YX01A","zen-heading-2":"Text-module_zen-heading-2__JVOtq","zen-heading-3":"Text-module_zen-heading-3__JOT3q","zen-data-large":"Text-module_zen-data-large__EgwWh","zen-data-large-units":"Text-module_zen-data-large-units__lZjpK","zen-data-medium":"Text-module_zen-data-medium__wKodD","zen-data-medium-units":"Text-module_zen-data-medium-units__zh-e8","zen-data-small":"Text-module_zen-data-small__LtxHR","zen-data-small-units":"Text-module_zen-data-small-units__0RtFJ"};
|
|
45445
|
+
|
|
45446
|
+
var Text_module$1 = /*#__PURE__*/Object.freeze({
|
|
45447
|
+
__proto__: null,
|
|
45448
|
+
default: Text_module
|
|
45449
|
+
});
|
|
45450
|
+
|
|
45451
|
+
var require$$2 = /*@__PURE__*/getAugmentedNamespace(Text_module$1);
|
|
45452
|
+
|
|
45453
|
+
(function(exports) {
|
|
45454
|
+
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
45455
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
45456
|
+
};
|
|
45457
|
+
exports.__esModule = true;
|
|
45458
|
+
var react_1 = __importDefault(React);
|
|
45459
|
+
var classnames_1 = __importDefault(index.classnamesExports);
|
|
45460
|
+
var Text_module_scss_1 = __importDefault(require$$2);
|
|
45461
|
+
var Text = function(_a) {
|
|
45462
|
+
var _b;
|
|
45463
|
+
var tag = _a.tag, children = _a.children, _c = _a.inheritBaseline, inheritBaseline = _c === void 0 ? false : _c, _d = _a.inline, inline = _d === void 0 ? false : _d, _e = _a.style, style = _e === void 0 ? "default-style" : _e;
|
|
45464
|
+
return react_1["default"].createElement(tag, {
|
|
45465
|
+
className: (0, classnames_1["default"])(Text_module_scss_1["default"][style], (_b = {}, _b[Text_module_scss_1["default"].inheritBaseline] = inheritBaseline, _b[Text_module_scss_1["default"].inline] = inline, _b))
|
|
45466
|
+
}, children);
|
|
45467
|
+
};
|
|
45468
|
+
Text.displayName = "Text";
|
|
45469
|
+
exports["default"] = Text;
|
|
45470
|
+
})(Text);
|
|
45471
|
+
|
|
45472
|
+
(function(exports) {
|
|
45473
|
+
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
45474
|
+
if (k2 === void 0)
|
|
45475
|
+
k2 = k;
|
|
45476
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
45477
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
45478
|
+
desc = { enumerable: true, get: function() {
|
|
45479
|
+
return m[k];
|
|
45480
|
+
} };
|
|
45481
|
+
}
|
|
45482
|
+
Object.defineProperty(o, k2, desc);
|
|
45483
|
+
} : function(o, m, k, k2) {
|
|
45484
|
+
if (k2 === void 0)
|
|
45485
|
+
k2 = k;
|
|
45486
|
+
o[k2] = m[k];
|
|
45487
|
+
});
|
|
45488
|
+
exports.__esModule = true;
|
|
45489
|
+
exports.Text = void 0;
|
|
45490
|
+
var Text_1 = Text;
|
|
45491
|
+
__createBinding(exports, Text_1, "default", "Text");
|
|
45492
|
+
})(Text$1);
|
|
45493
|
+
|
|
45494
|
+
var Spacing = {};
|
|
45495
|
+
|
|
45496
|
+
var padding = {};
|
|
45497
|
+
|
|
45498
|
+
var util = {};
|
|
45499
|
+
|
|
45500
|
+
util.__esModule = true;
|
|
45501
|
+
util.convertFractionToString = void 0;
|
|
45502
|
+
var convertFractionToString = function(fraction) {
|
|
45503
|
+
switch (fraction) {
|
|
45504
|
+
case 0:
|
|
45505
|
+
default:
|
|
45506
|
+
return "0";
|
|
45507
|
+
case 0.25:
|
|
45508
|
+
return "0-point-25";
|
|
45509
|
+
case 0.5:
|
|
45510
|
+
return "0-point-5";
|
|
45511
|
+
case 0.75:
|
|
45512
|
+
return "0-point-75";
|
|
45513
|
+
case 1:
|
|
45514
|
+
return "1";
|
|
45515
|
+
case 1.25:
|
|
45516
|
+
return "1-point-25";
|
|
45517
|
+
case 1.5:
|
|
45518
|
+
return "1-point-5";
|
|
45519
|
+
case 1.75:
|
|
45520
|
+
return "1-point-75";
|
|
45521
|
+
case 2:
|
|
45522
|
+
return "2";
|
|
45523
|
+
case 2.5:
|
|
45524
|
+
return "2-point-5";
|
|
45525
|
+
case 3:
|
|
45526
|
+
return "3";
|
|
45527
|
+
case 3.5:
|
|
45528
|
+
return "3-point-5";
|
|
45529
|
+
case 4:
|
|
45530
|
+
return "4";
|
|
45531
|
+
}
|
|
45213
45532
|
};
|
|
45214
|
-
|
|
45533
|
+
util.convertFractionToString = convertFractionToString;
|
|
45534
|
+
|
|
45535
|
+
var Padding_module = {"p-0":"Padding-module_p-0__MEDlm","pt-0":"Padding-module_pt-0__2lPMY","pr-0":"Padding-module_pr-0__tgwOG","pb-0":"Padding-module_pb-0__h-og-","pl-0":"Padding-module_pl-0__KQQIN","p-0-point-25":"Padding-module_p-0-point-25__WR6Pl","pt-0-point-25":"Padding-module_pt-0-point-25__OHxwL","pr-0-point-25":"Padding-module_pr-0-point-25__dw3lt","pb-0-point-25":"Padding-module_pb-0-point-25__R-G37","pl-0-point-25":"Padding-module_pl-0-point-25__4H6f8","p-0-point-5":"Padding-module_p-0-point-5__5z-Tg","pt-0-point-5":"Padding-module_pt-0-point-5__BILAZ","pr-0-point-5":"Padding-module_pr-0-point-5__Qdc6L","pb-0-point-5":"Padding-module_pb-0-point-5__FJOcg","pl-0-point-5":"Padding-module_pl-0-point-5__gctiZ","p-0-point-75":"Padding-module_p-0-point-75__SCNgd","pt-0-point-75":"Padding-module_pt-0-point-75__Cve0I","pr-0-point-75":"Padding-module_pr-0-point-75__11l9x","pb-0-point-75":"Padding-module_pb-0-point-75__WfgDh","pl-0-point-75":"Padding-module_pl-0-point-75__YKbVF","p-1":"Padding-module_p-1__jIDUT","pt-1":"Padding-module_pt-1__r358b","pr-1":"Padding-module_pr-1__fdsMH","pb-1":"Padding-module_pb-1__gkHqH","pl-1":"Padding-module_pl-1__1fvrt","p-1-point-25":"Padding-module_p-1-point-25__9q2Tk","pt-1-point-25":"Padding-module_pt-1-point-25__uYpt3","pr-1-point-25":"Padding-module_pr-1-point-25__8xYeA","pb-1-point-25":"Padding-module_pb-1-point-25__JwIfB","pl-1-point-25":"Padding-module_pl-1-point-25__-w5XU","p-1-point-5":"Padding-module_p-1-point-5__LICS6","pt-1-point-5":"Padding-module_pt-1-point-5__p9H7t","pr-1-point-5":"Padding-module_pr-1-point-5__agJTp","pb-1-point-5":"Padding-module_pb-1-point-5__Ig7SW","pl-1-point-5":"Padding-module_pl-1-point-5__iBcnI","p-1-point-75":"Padding-module_p-1-point-75__lctpg","pt-1-point-75":"Padding-module_pt-1-point-75__MVIUz","pr-1-point-75":"Padding-module_pr-1-point-75__A-Ur-","pb-1-point-75":"Padding-module_pb-1-point-75__TctUk","pl-1-point-75":"Padding-module_pl-1-point-75__ahplz","p-2":"Padding-module_p-2__iEsEq","pt-2":"Padding-module_pt-2__-uaDE","pr-2":"Padding-module_pr-2__py781","pb-2":"Padding-module_pb-2__75eso","pl-2":"Padding-module_pl-2__4L8zZ","p-2-point-5":"Padding-module_p-2-point-5__fFM5N","pt-2-point-5":"Padding-module_pt-2-point-5__aDZvm","pr-2-point-5":"Padding-module_pr-2-point-5__H-fJW","pb-2-point-5":"Padding-module_pb-2-point-5__0oSvZ","pl-2-point-5":"Padding-module_pl-2-point-5__BGKgq","p-3":"Padding-module_p-3__LltVV","pt-3":"Padding-module_pt-3__Ew6IB","pr-3":"Padding-module_pr-3__ehVq5","pb-3":"Padding-module_pb-3__u8K7J","pl-3":"Padding-module_pl-3__GLx74","p-3-point-5":"Padding-module_p-3-point-5__PyzuE","pt-3-point-5":"Padding-module_pt-3-point-5__qKa2E","pr-3-point-5":"Padding-module_pr-3-point-5__xJlsH","pb-3-point-5":"Padding-module_pb-3-point-5__H4D4H","pl-3-point-5":"Padding-module_pl-3-point-5__krW-a","p-4":"Padding-module_p-4__boMST","pt-4":"Padding-module_pt-4__lHX5n","pr-4":"Padding-module_pr-4__sl2rR","pb-4":"Padding-module_pb-4__ffDeO","pl-4":"Padding-module_pl-4__mRkKo"};
|
|
45536
|
+
|
|
45537
|
+
var Padding_module$1 = /*#__PURE__*/Object.freeze({
|
|
45538
|
+
__proto__: null,
|
|
45539
|
+
default: Padding_module
|
|
45540
|
+
});
|
|
45541
|
+
|
|
45542
|
+
var require$$1$1 = /*@__PURE__*/getAugmentedNamespace(Padding_module$1);
|
|
45543
|
+
|
|
45544
|
+
(function(exports) {
|
|
45545
|
+
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
45546
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
45547
|
+
};
|
|
45548
|
+
exports.__esModule = true;
|
|
45549
|
+
exports.paddingClasses = exports.p = exports.py = exports.px = exports.pl = exports.pb = exports.pr = exports.pt = void 0;
|
|
45550
|
+
var util_1 = util;
|
|
45551
|
+
var Padding_module_scss_1 = __importDefault(require$$1$1);
|
|
45552
|
+
var pt = function(unit) {
|
|
45553
|
+
return [
|
|
45554
|
+
Padding_module_scss_1["default"]["pt-".concat((0, util_1.convertFractionToString)(unit))]
|
|
45555
|
+
];
|
|
45556
|
+
};
|
|
45557
|
+
exports.pt = pt;
|
|
45558
|
+
var pr = function(unit) {
|
|
45559
|
+
return [
|
|
45560
|
+
Padding_module_scss_1["default"]["pr-".concat((0, util_1.convertFractionToString)(unit))]
|
|
45561
|
+
];
|
|
45562
|
+
};
|
|
45563
|
+
exports.pr = pr;
|
|
45564
|
+
var pb = function(unit) {
|
|
45565
|
+
return [
|
|
45566
|
+
Padding_module_scss_1["default"]["pb-".concat((0, util_1.convertFractionToString)(unit))]
|
|
45567
|
+
];
|
|
45568
|
+
};
|
|
45569
|
+
exports.pb = pb;
|
|
45570
|
+
var pl = function(unit) {
|
|
45571
|
+
return [
|
|
45572
|
+
Padding_module_scss_1["default"]["pl-".concat((0, util_1.convertFractionToString)(unit))]
|
|
45573
|
+
];
|
|
45574
|
+
};
|
|
45575
|
+
exports.pl = pl;
|
|
45576
|
+
var px = function(unit) {
|
|
45577
|
+
return [
|
|
45578
|
+
Padding_module_scss_1["default"]["pl-".concat((0, util_1.convertFractionToString)(unit))],
|
|
45579
|
+
Padding_module_scss_1["default"]["pr-".concat((0, util_1.convertFractionToString)(unit))]
|
|
45580
|
+
];
|
|
45581
|
+
};
|
|
45582
|
+
exports.px = px;
|
|
45583
|
+
var py = function(unit) {
|
|
45584
|
+
return [
|
|
45585
|
+
Padding_module_scss_1["default"]["pt-".concat((0, util_1.convertFractionToString)(unit))],
|
|
45586
|
+
Padding_module_scss_1["default"]["pb-".concat((0, util_1.convertFractionToString)(unit))]
|
|
45587
|
+
];
|
|
45588
|
+
};
|
|
45589
|
+
exports.py = py;
|
|
45590
|
+
var p = function(unit) {
|
|
45591
|
+
var classes = [];
|
|
45592
|
+
if (typeof unit === "number") {
|
|
45593
|
+
classes.push(Padding_module_scss_1["default"]["p-".concat((0, util_1.convertFractionToString)(unit))]);
|
|
45594
|
+
} else {
|
|
45595
|
+
Object.keys(unit).forEach(function(key) {
|
|
45596
|
+
classes.push(Padding_module_scss_1["default"]["p-".concat((0, util_1.convertFractionToString)(unit[key]), "--").concat(key)]);
|
|
45597
|
+
});
|
|
45598
|
+
}
|
|
45599
|
+
return classes;
|
|
45600
|
+
};
|
|
45601
|
+
exports.p = p;
|
|
45602
|
+
var paddingClasses = function(_a) {
|
|
45603
|
+
var padding2 = _a.p, paddingTop = _a.pt, paddingRight = _a.pr, paddingBottom = _a.pb, paddingLeft = _a.pl, paddingXAxis = _a.px, paddingYAxis = _a.py, _b = _a.rtl, rtl = _b === void 0 ? false : _b;
|
|
45604
|
+
var classes = [];
|
|
45605
|
+
if (padding2 !== void 0)
|
|
45606
|
+
classes.push.apply(classes, (0, exports.p)(padding2));
|
|
45607
|
+
if (paddingTop !== void 0)
|
|
45608
|
+
classes.push.apply(classes, (0, exports.pt)(paddingTop));
|
|
45609
|
+
if (paddingBottom !== void 0)
|
|
45610
|
+
classes.push.apply(classes, (0, exports.pb)(paddingBottom));
|
|
45611
|
+
if (paddingXAxis !== void 0)
|
|
45612
|
+
classes.push.apply(classes, (0, exports.px)(paddingXAxis));
|
|
45613
|
+
if (paddingYAxis !== void 0)
|
|
45614
|
+
classes.push.apply(classes, (0, exports.py)(paddingYAxis));
|
|
45615
|
+
if (rtl) {
|
|
45616
|
+
if (paddingRight !== void 0)
|
|
45617
|
+
classes.push.apply(classes, (0, exports.pl)(paddingRight));
|
|
45618
|
+
if (paddingLeft !== void 0)
|
|
45619
|
+
classes.push.apply(classes, (0, exports.pr)(paddingLeft));
|
|
45620
|
+
} else {
|
|
45621
|
+
if (paddingRight !== void 0)
|
|
45622
|
+
classes.push.apply(classes, (0, exports.pr)(paddingRight));
|
|
45623
|
+
if (paddingLeft !== void 0)
|
|
45624
|
+
classes.push.apply(classes, (0, exports.pl)(paddingLeft));
|
|
45625
|
+
}
|
|
45626
|
+
if (padding2 === void 0 && paddingTop === void 0 && paddingRight === void 0 && paddingBottom === void 0 && paddingLeft === void 0 && paddingXAxis === void 0 && paddingYAxis === void 0) {
|
|
45627
|
+
classes.push.apply(classes, (0, exports.p)(0));
|
|
45628
|
+
}
|
|
45629
|
+
return classes;
|
|
45630
|
+
};
|
|
45631
|
+
exports.paddingClasses = paddingClasses;
|
|
45632
|
+
})(padding);
|
|
45633
|
+
|
|
45634
|
+
var margin = {};
|
|
45635
|
+
|
|
45636
|
+
var Margin_module = {"m-0":"Margin-module_m-0__hSA96","mt-0":"Margin-module_mt-0__7WGbv","mr-0":"Margin-module_mr-0__CX8k-","mb-0":"Margin-module_mb-0__LjHy2","ml-0":"Margin-module_ml-0__Ffq2J","m-0-point-25":"Margin-module_m-0-point-25__RrkvF","mt-0-point-25":"Margin-module_mt-0-point-25__lOnmq","mr-0-point-25":"Margin-module_mr-0-point-25__JYjnr","mb-0-point-25":"Margin-module_mb-0-point-25__aSIWe","ml-0-point-25":"Margin-module_ml-0-point-25__UIx-6","m-0-point-5":"Margin-module_m-0-point-5__o1ClI","mt-0-point-5":"Margin-module_mt-0-point-5__Hlw6J","mr-0-point-5":"Margin-module_mr-0-point-5__lTVga","mb-0-point-5":"Margin-module_mb-0-point-5__09Kv0","ml-0-point-5":"Margin-module_ml-0-point-5__IyBy5","m-0-point-75":"Margin-module_m-0-point-75__IttHs","mt-0-point-75":"Margin-module_mt-0-point-75__8aL1j","mr-0-point-75":"Margin-module_mr-0-point-75__1iTsr","mb-0-point-75":"Margin-module_mb-0-point-75__bcGVL","ml-0-point-75":"Margin-module_ml-0-point-75__UoIM3","m-1":"Margin-module_m-1__WoH7S","mt-1":"Margin-module_mt-1__rmDMg","mr-1":"Margin-module_mr-1__bFRhS","mb-1":"Margin-module_mb-1__6Siyc","ml-1":"Margin-module_ml-1__j3WF6","m-1-point-25":"Margin-module_m-1-point-25__aslNk","mt-1-point-25":"Margin-module_mt-1-point-25__l-Kna","mr-1-point-25":"Margin-module_mr-1-point-25__yKHfB","mb-1-point-25":"Margin-module_mb-1-point-25__k7Wnb","ml-1-point-25":"Margin-module_ml-1-point-25__tKCHD","m-1-point-5":"Margin-module_m-1-point-5__e5RRa","mt-1-point-5":"Margin-module_mt-1-point-5__0oleV","mr-1-point-5":"Margin-module_mr-1-point-5__UV2Ds","mb-1-point-5":"Margin-module_mb-1-point-5__DgIcA","ml-1-point-5":"Margin-module_ml-1-point-5__-a31T","m-1-point-75":"Margin-module_m-1-point-75__IxxDx","mt-1-point-75":"Margin-module_mt-1-point-75__zBEJc","mr-1-point-75":"Margin-module_mr-1-point-75__7oQH3","mb-1-point-75":"Margin-module_mb-1-point-75__CyezZ","ml-1-point-75":"Margin-module_ml-1-point-75__8AcEE","m-2":"Margin-module_m-2__xDAX5","mt-2":"Margin-module_mt-2__BaPgk","mr-2":"Margin-module_mr-2__-8KSg","mb-2":"Margin-module_mb-2__lqKMm","ml-2":"Margin-module_ml-2__y6zUv","m-2-point-5":"Margin-module_m-2-point-5__nPaB6","mt-2-point-5":"Margin-module_mt-2-point-5__NtVq0","mr-2-point-5":"Margin-module_mr-2-point-5__u5ycP","mb-2-point-5":"Margin-module_mb-2-point-5__KoWcH","ml-2-point-5":"Margin-module_ml-2-point-5__rKkfV","m-3":"Margin-module_m-3__3Xx0F","mt-3":"Margin-module_mt-3__M2Jx3","mr-3":"Margin-module_mr-3__Ydznr","mb-3":"Margin-module_mb-3__-jI8t","ml-3":"Margin-module_ml-3__GKa-l","m-3-point-5":"Margin-module_m-3-point-5__3ZDkz","mt-3-point-5":"Margin-module_mt-3-point-5__VBSF-","mr-3-point-5":"Margin-module_mr-3-point-5__wf0U2","mb-3-point-5":"Margin-module_mb-3-point-5__OMror","ml-3-point-5":"Margin-module_ml-3-point-5__ootW1","m-4":"Margin-module_m-4__dZ985","mt-4":"Margin-module_mt-4__BUm9K","mr-4":"Margin-module_mr-4__mKUUj","mb-4":"Margin-module_mb-4__dO-YX","ml-4":"Margin-module_ml-4__EE62n"};
|
|
45637
|
+
|
|
45638
|
+
var Margin_module$1 = /*#__PURE__*/Object.freeze({
|
|
45639
|
+
__proto__: null,
|
|
45640
|
+
default: Margin_module
|
|
45641
|
+
});
|
|
45642
|
+
|
|
45643
|
+
var require$$1 = /*@__PURE__*/getAugmentedNamespace(Margin_module$1);
|
|
45644
|
+
|
|
45645
|
+
(function(exports) {
|
|
45646
|
+
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
45647
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
45648
|
+
};
|
|
45649
|
+
exports.__esModule = true;
|
|
45650
|
+
exports.marginClasses = exports.m = exports.my = exports.mx = exports.ml = exports.mb = exports.mr = exports.mt = void 0;
|
|
45651
|
+
var util_1 = util;
|
|
45652
|
+
var Margin_module_scss_1 = __importDefault(require$$1);
|
|
45653
|
+
var mt = function(unit) {
|
|
45654
|
+
return [
|
|
45655
|
+
Margin_module_scss_1["default"]["mt-".concat((0, util_1.convertFractionToString)(unit))]
|
|
45656
|
+
];
|
|
45657
|
+
};
|
|
45658
|
+
exports.mt = mt;
|
|
45659
|
+
var mr = function(unit) {
|
|
45660
|
+
return [
|
|
45661
|
+
Margin_module_scss_1["default"]["mr-".concat((0, util_1.convertFractionToString)(unit))]
|
|
45662
|
+
];
|
|
45663
|
+
};
|
|
45664
|
+
exports.mr = mr;
|
|
45665
|
+
var mb = function(unit) {
|
|
45666
|
+
return [
|
|
45667
|
+
Margin_module_scss_1["default"]["mb-".concat((0, util_1.convertFractionToString)(unit))]
|
|
45668
|
+
];
|
|
45669
|
+
};
|
|
45670
|
+
exports.mb = mb;
|
|
45671
|
+
var ml = function(unit) {
|
|
45672
|
+
return [
|
|
45673
|
+
Margin_module_scss_1["default"]["ml-".concat((0, util_1.convertFractionToString)(unit))]
|
|
45674
|
+
];
|
|
45675
|
+
};
|
|
45676
|
+
exports.ml = ml;
|
|
45677
|
+
var mx = function(unit) {
|
|
45678
|
+
return [
|
|
45679
|
+
Margin_module_scss_1["default"]["ml-".concat((0, util_1.convertFractionToString)(unit))],
|
|
45680
|
+
Margin_module_scss_1["default"]["mr-".concat((0, util_1.convertFractionToString)(unit))]
|
|
45681
|
+
];
|
|
45682
|
+
};
|
|
45683
|
+
exports.mx = mx;
|
|
45684
|
+
var my = function(unit) {
|
|
45685
|
+
return [
|
|
45686
|
+
Margin_module_scss_1["default"]["mt-".concat((0, util_1.convertFractionToString)(unit))],
|
|
45687
|
+
Margin_module_scss_1["default"]["mb-".concat((0, util_1.convertFractionToString)(unit))]
|
|
45688
|
+
];
|
|
45689
|
+
};
|
|
45690
|
+
exports.my = my;
|
|
45691
|
+
var m = function(unit) {
|
|
45692
|
+
var classes = [];
|
|
45693
|
+
if (typeof unit === "number") {
|
|
45694
|
+
classes.push(Margin_module_scss_1["default"]["m-".concat((0, util_1.convertFractionToString)(unit))]);
|
|
45695
|
+
} else {
|
|
45696
|
+
Object.keys(unit).forEach(function(key) {
|
|
45697
|
+
classes.push(Margin_module_scss_1["default"]["m-".concat((0, util_1.convertFractionToString)(unit[key]), "--").concat(key)]);
|
|
45698
|
+
});
|
|
45699
|
+
}
|
|
45700
|
+
return classes;
|
|
45701
|
+
};
|
|
45702
|
+
exports.m = m;
|
|
45703
|
+
var marginClasses = function(_a) {
|
|
45704
|
+
var margin2 = _a.m, marginTop = _a.mt, marginRight = _a.mr, marginBottom = _a.mb, marginLeft = _a.ml, marginXAxis = _a.mx, marginYAxis = _a.my, _b = _a.rtl, rtl = _b === void 0 ? false : _b;
|
|
45705
|
+
var classes = [];
|
|
45706
|
+
if (margin2 !== void 0)
|
|
45707
|
+
classes.push.apply(classes, (0, exports.m)(margin2));
|
|
45708
|
+
if (marginTop !== void 0)
|
|
45709
|
+
classes.push.apply(classes, (0, exports.mt)(marginTop));
|
|
45710
|
+
if (marginBottom !== void 0)
|
|
45711
|
+
classes.push.apply(classes, (0, exports.mb)(marginBottom));
|
|
45712
|
+
if (marginXAxis !== void 0)
|
|
45713
|
+
classes.push.apply(classes, (0, exports.mx)(marginXAxis));
|
|
45714
|
+
if (marginYAxis !== void 0)
|
|
45715
|
+
classes.push.apply(classes, (0, exports.my)(marginYAxis));
|
|
45716
|
+
if (rtl) {
|
|
45717
|
+
if (marginRight !== void 0)
|
|
45718
|
+
classes.push.apply(classes, (0, exports.ml)(marginRight));
|
|
45719
|
+
if (marginLeft !== void 0)
|
|
45720
|
+
classes.push.apply(classes, (0, exports.mr)(marginLeft));
|
|
45721
|
+
} else {
|
|
45722
|
+
if (marginRight !== void 0)
|
|
45723
|
+
classes.push.apply(classes, (0, exports.mr)(marginRight));
|
|
45724
|
+
if (marginLeft !== void 0)
|
|
45725
|
+
classes.push.apply(classes, (0, exports.ml)(marginLeft));
|
|
45726
|
+
}
|
|
45727
|
+
if (margin2 === void 0 && marginTop === void 0 && marginRight === void 0 && marginBottom === void 0 && marginLeft === void 0 && marginXAxis === void 0 && marginYAxis === void 0) {
|
|
45728
|
+
classes.push.apply(classes, (0, exports.m)(0));
|
|
45729
|
+
}
|
|
45730
|
+
return classes;
|
|
45731
|
+
};
|
|
45732
|
+
exports.marginClasses = marginClasses;
|
|
45733
|
+
})(margin);
|
|
45734
|
+
|
|
45735
|
+
var types = {};
|
|
45736
|
+
|
|
45737
|
+
types.__esModule = true;
|
|
45738
|
+
|
|
45739
|
+
(function(exports) {
|
|
45740
|
+
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
45741
|
+
if (k2 === void 0)
|
|
45742
|
+
k2 = k;
|
|
45743
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
45744
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
45745
|
+
desc = { enumerable: true, get: function() {
|
|
45746
|
+
return m[k];
|
|
45747
|
+
} };
|
|
45748
|
+
}
|
|
45749
|
+
Object.defineProperty(o, k2, desc);
|
|
45750
|
+
} : function(o, m, k, k2) {
|
|
45751
|
+
if (k2 === void 0)
|
|
45752
|
+
k2 = k;
|
|
45753
|
+
o[k2] = m[k];
|
|
45754
|
+
});
|
|
45755
|
+
var __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function(m, exports2) {
|
|
45756
|
+
for (var p in m)
|
|
45757
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p))
|
|
45758
|
+
__createBinding(exports2, m, p);
|
|
45759
|
+
};
|
|
45760
|
+
exports.__esModule = true;
|
|
45761
|
+
__exportStar(padding, exports);
|
|
45762
|
+
__exportStar(margin, exports);
|
|
45763
|
+
__exportStar(types, exports);
|
|
45764
|
+
})(Spacing);
|
|
45765
|
+
|
|
45766
|
+
var Box$1 = {};
|
|
45767
|
+
|
|
45768
|
+
var Box = {};
|
|
45769
|
+
|
|
45770
|
+
(function(exports) {
|
|
45771
|
+
var __assign = commonjsGlobal && commonjsGlobal.__assign || function() {
|
|
45772
|
+
__assign = Object.assign || function(t) {
|
|
45773
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
45774
|
+
s = arguments[i];
|
|
45775
|
+
for (var p in s)
|
|
45776
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
45777
|
+
t[p] = s[p];
|
|
45778
|
+
}
|
|
45779
|
+
return t;
|
|
45780
|
+
};
|
|
45781
|
+
return __assign.apply(this, arguments);
|
|
45782
|
+
};
|
|
45783
|
+
var __rest = commonjsGlobal && commonjsGlobal.__rest || function(s, e) {
|
|
45784
|
+
var t = {};
|
|
45785
|
+
for (var p in s)
|
|
45786
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
45787
|
+
t[p] = s[p];
|
|
45788
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
45789
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
45790
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
45791
|
+
t[p[i]] = s[p[i]];
|
|
45792
|
+
}
|
|
45793
|
+
return t;
|
|
45794
|
+
};
|
|
45795
|
+
var __spreadArray = commonjsGlobal && commonjsGlobal.__spreadArray || function(to, from, pack) {
|
|
45796
|
+
if (pack || arguments.length === 2)
|
|
45797
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
45798
|
+
if (ar || !(i in from)) {
|
|
45799
|
+
if (!ar)
|
|
45800
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
45801
|
+
ar[i] = from[i];
|
|
45802
|
+
}
|
|
45803
|
+
}
|
|
45804
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
45805
|
+
};
|
|
45806
|
+
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
45807
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
45808
|
+
};
|
|
45809
|
+
exports.__esModule = true;
|
|
45810
|
+
exports.Box = void 0;
|
|
45811
|
+
var react_1 = __importDefault(React);
|
|
45812
|
+
var classnames_1 = __importDefault(index.classnamesExports);
|
|
45813
|
+
var Spacing_1 = Spacing;
|
|
45814
|
+
var Box = function(_a) {
|
|
45815
|
+
var children = _a.children, _b = _a.rtl, rtl = _b === void 0 ? false : _b, m = _a.m, mt = _a.mt, mr = _a.mr, mb = _a.mb, ml = _a.ml, mx = _a.mx, my = _a.my, p = _a.p, pt = _a.pt, pr = _a.pr, pb = _a.pb, pl = _a.pl, px = _a.px, py = _a.py, classNameOverride = _a.classNameOverride, restProps = __rest(_a, ["children", "rtl", "m", "mt", "mr", "mb", "ml", "mx", "my", "p", "pt", "pr", "pb", "pl", "px", "py", "classNameOverride"]);
|
|
45816
|
+
var classes = __spreadArray(__spreadArray([], (0, Spacing_1.paddingClasses)({ p, pt, pr, pb, pl, px, py, rtl }), true), (0, Spacing_1.marginClasses)({ m, mt, mr, mb, ml, mx, my, rtl }), true);
|
|
45817
|
+
return react_1["default"].createElement("div", __assign({ className: (0, classnames_1["default"])(classes, classNameOverride) }, restProps), children);
|
|
45818
|
+
};
|
|
45819
|
+
exports.Box = Box;
|
|
45820
|
+
exports.Box.displayName = "Box";
|
|
45821
|
+
})(Box);
|
|
45822
|
+
|
|
45823
|
+
(function(exports) {
|
|
45824
|
+
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
45825
|
+
if (k2 === void 0)
|
|
45826
|
+
k2 = k;
|
|
45827
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
45828
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
45829
|
+
desc = { enumerable: true, get: function() {
|
|
45830
|
+
return m[k];
|
|
45831
|
+
} };
|
|
45832
|
+
}
|
|
45833
|
+
Object.defineProperty(o, k2, desc);
|
|
45834
|
+
} : function(o, m, k, k2) {
|
|
45835
|
+
if (k2 === void 0)
|
|
45836
|
+
k2 = k;
|
|
45837
|
+
o[k2] = m[k];
|
|
45838
|
+
});
|
|
45839
|
+
exports.__esModule = true;
|
|
45840
|
+
exports.Box = void 0;
|
|
45841
|
+
var Box_1 = Box;
|
|
45842
|
+
__createBinding(exports, Box_1, "Box");
|
|
45843
|
+
})(Box$1);
|
|
45844
|
+
|
|
45845
|
+
(function(exports) {
|
|
45846
|
+
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
45847
|
+
if (k2 === void 0)
|
|
45848
|
+
k2 = k;
|
|
45849
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
45850
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
45851
|
+
desc = { enumerable: true, get: function() {
|
|
45852
|
+
return m[k];
|
|
45853
|
+
} };
|
|
45854
|
+
}
|
|
45855
|
+
Object.defineProperty(o, k2, desc);
|
|
45856
|
+
} : function(o, m, k, k2) {
|
|
45857
|
+
if (k2 === void 0)
|
|
45858
|
+
k2 = k;
|
|
45859
|
+
o[k2] = m[k];
|
|
45860
|
+
});
|
|
45861
|
+
var __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function(m, exports2) {
|
|
45862
|
+
for (var p in m)
|
|
45863
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p))
|
|
45864
|
+
__createBinding(exports2, m, p);
|
|
45865
|
+
};
|
|
45866
|
+
exports.__esModule = true;
|
|
45867
|
+
__exportStar(Dropdown$1, exports);
|
|
45868
|
+
__exportStar(Layout$1, exports);
|
|
45869
|
+
__exportStar(Icon$1, exports);
|
|
45870
|
+
__exportStar(MenuList$1, exports);
|
|
45871
|
+
__exportStar(Text$1, exports);
|
|
45872
|
+
__exportStar(Spacing, exports);
|
|
45873
|
+
__exportStar(Box$1, exports);
|
|
45874
|
+
})(components);
|
|
45875
|
+
|
|
45876
|
+
(function(exports) {
|
|
45877
|
+
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
45878
|
+
if (k2 === void 0)
|
|
45879
|
+
k2 = k;
|
|
45880
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
45881
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
45882
|
+
desc = { enumerable: true, get: function() {
|
|
45883
|
+
return m[k];
|
|
45884
|
+
} };
|
|
45885
|
+
}
|
|
45886
|
+
Object.defineProperty(o, k2, desc);
|
|
45887
|
+
} : function(o, m, k, k2) {
|
|
45888
|
+
if (k2 === void 0)
|
|
45889
|
+
k2 = k;
|
|
45890
|
+
o[k2] = m[k];
|
|
45891
|
+
});
|
|
45892
|
+
var __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function(m, exports2) {
|
|
45893
|
+
for (var p in m)
|
|
45894
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p))
|
|
45895
|
+
__createBinding(exports2, m, p);
|
|
45896
|
+
};
|
|
45897
|
+
exports.__esModule = true;
|
|
45898
|
+
__exportStar(components, exports);
|
|
45899
|
+
})(componentLibrary);
|
|
45215
45900
|
|
|
45216
45901
|
var img = "data:image/svg+xml,%3c%3fxml version='1.0' encoding='UTF-8'%3f%3e%3csvg width='20px' height='20px' viewBox='0 0 20 20' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3e %3c!-- Generator: Sketch 44.1 (41455) - http://www.bohemiancoding.com/sketch --%3e %3ctitle%3eIcons/Informational/check%3c/title%3e %3cdesc%3eCreated with Sketch.%3c/desc%3e %3cdefs%3e %3cpolygon id='path-1' points='8.33333333 14.3416667 4.16666667 10.175 5.34166667 9 8.33333333 11.9833333 14.6583333 5.65833333 15.8333333 6.84166667'%3e%3c/polygon%3e %3c/defs%3e %3cg id='Symbols' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3e %3cg id='Icons/Informational/check'%3e %3cmask id='mask-2' fill='white'%3e %3cuse xlink:href='%23path-1'%3e%3c/use%3e %3c/mask%3e %3cuse fill='black' xlink:href='%23path-1'%3e%3c/use%3e %3c/g%3e %3c/g%3e%3c/svg%3e";
|
|
45217
45902
|
var check = img;
|
|
@@ -45234,7 +45919,7 @@ var Option = function(_a) {
|
|
|
45234
45919
|
classNameOverride
|
|
45235
45920
|
]), "aria-label": item.textValue }),
|
|
45236
45921
|
item.rendered,
|
|
45237
|
-
React.createElement("span", { className: index.classNames([styles$4.icon, isSelected && styles$4.isSelected]) }, isSelected && React.createElement(Icon, { icon: check, role: "presentation" }))
|
|
45922
|
+
React.createElement("span", { className: index.classNames([styles$4.icon, isSelected && styles$4.isSelected]) }, isSelected && React.createElement(componentLibrary.Icon, { icon: check, role: "presentation" }))
|
|
45238
45923
|
);
|
|
45239
45924
|
};
|
|
45240
45925
|
Option.displayName = "Option";
|
|
@@ -45420,6 +46105,429 @@ FilterSelect.SectionDivider = SectionDivider;
|
|
|
45420
46105
|
FilterSelect.Option = Option;
|
|
45421
46106
|
FilterSelect.ItemDefaultRender = ListItem;
|
|
45422
46107
|
|
|
46108
|
+
var ThemeManager = (
|
|
46109
|
+
/** @class */
|
|
46110
|
+
function() {
|
|
46111
|
+
function ThemeManager2(theme, rootElementId, apply) {
|
|
46112
|
+
if (rootElementId === void 0) {
|
|
46113
|
+
rootElementId = "";
|
|
46114
|
+
}
|
|
46115
|
+
if (apply === void 0) {
|
|
46116
|
+
apply = true;
|
|
46117
|
+
}
|
|
46118
|
+
var _this = this;
|
|
46119
|
+
this.themeChangeListeners = [];
|
|
46120
|
+
this.rootElement = null;
|
|
46121
|
+
this.getRootElement = function() {
|
|
46122
|
+
return _this.rootElement;
|
|
46123
|
+
};
|
|
46124
|
+
this.getRootElementId = function() {
|
|
46125
|
+
return _this.rootElementId;
|
|
46126
|
+
};
|
|
46127
|
+
this.getCurrentTheme = function() {
|
|
46128
|
+
return _this.theme;
|
|
46129
|
+
};
|
|
46130
|
+
this.setRootElement = function(element) {
|
|
46131
|
+
_this.rootElement = element;
|
|
46132
|
+
};
|
|
46133
|
+
this.setRootElementId = function(rootElementId2) {
|
|
46134
|
+
return _this.rootElementId = rootElementId2;
|
|
46135
|
+
};
|
|
46136
|
+
this.setAndApplyTheme = function(theme2, force) {
|
|
46137
|
+
if (!force) {
|
|
46138
|
+
if (_this.theme === theme2)
|
|
46139
|
+
return;
|
|
46140
|
+
}
|
|
46141
|
+
_this.theme = theme2;
|
|
46142
|
+
_this.applyCurrentTheme();
|
|
46143
|
+
_this.notifyThemeChangeListeners(theme2);
|
|
46144
|
+
};
|
|
46145
|
+
this.addThemeChangeListener = function(listener) {
|
|
46146
|
+
_this.themeChangeListeners.push(listener);
|
|
46147
|
+
};
|
|
46148
|
+
this.removeThemeChangeListener = function(listener) {
|
|
46149
|
+
_this.themeChangeListeners = _this.themeChangeListeners.filter(function(l) {
|
|
46150
|
+
return l !== listener;
|
|
46151
|
+
});
|
|
46152
|
+
};
|
|
46153
|
+
this.applyCurrentTheme = function() {
|
|
46154
|
+
var _a;
|
|
46155
|
+
if (typeof window !== "undefined") {
|
|
46156
|
+
_this.setRootElement((_a = document.getElementById(_this.rootElementId)) !== null && _a !== void 0 ? _a : document.documentElement);
|
|
46157
|
+
var cssVariableDefinitions = designTokens.makeCssVariableDefinitionsMap(_this.theme);
|
|
46158
|
+
Object.entries(cssVariableDefinitions).forEach(function(_a2) {
|
|
46159
|
+
var _b;
|
|
46160
|
+
var key = _a2[0], value = _a2[1];
|
|
46161
|
+
(_b = _this.rootElement) === null || _b === void 0 ? void 0 : _b.style.setProperty(key, value);
|
|
46162
|
+
});
|
|
46163
|
+
}
|
|
46164
|
+
};
|
|
46165
|
+
this.notifyThemeChangeListeners = function(theme2) {
|
|
46166
|
+
_this.themeChangeListeners.forEach(function(listener) {
|
|
46167
|
+
return listener(theme2);
|
|
46168
|
+
});
|
|
46169
|
+
};
|
|
46170
|
+
this.theme = theme;
|
|
46171
|
+
this.rootElementId = rootElementId;
|
|
46172
|
+
if (apply)
|
|
46173
|
+
this.applyCurrentTheme();
|
|
46174
|
+
}
|
|
46175
|
+
return ThemeManager2;
|
|
46176
|
+
}()
|
|
46177
|
+
);
|
|
46178
|
+
|
|
46179
|
+
var heartTheme = {
|
|
46180
|
+
themeKey: "heart",
|
|
46181
|
+
animation: {
|
|
46182
|
+
easingFunction: {
|
|
46183
|
+
easeInOut: "cubic-bezier(0.455, 0.03, 0.515, 0.955)",
|
|
46184
|
+
easeIn: "cubic-bezier(0.55, 0.085, 0.68, 0.53)",
|
|
46185
|
+
easeOut: "cubic-bezier(0.25, 0.46, 0.45, 0.94)",
|
|
46186
|
+
linear: "linear",
|
|
46187
|
+
bounceIn: "cubic-bezier(0.485, 0.155, 0.24, 1.245)",
|
|
46188
|
+
bounceOut: "cubic-bezier(0.485, 0.155, 0.515, 0.845)",
|
|
46189
|
+
bounceInOut: "cubic-bezier(0.76, -0.245, 0.24, 1.245)"
|
|
46190
|
+
},
|
|
46191
|
+
duration: {
|
|
46192
|
+
instant: "0ms",
|
|
46193
|
+
immediate: "100ms",
|
|
46194
|
+
rapid: "200ms",
|
|
46195
|
+
fast: "300ms",
|
|
46196
|
+
slow: "400ms",
|
|
46197
|
+
deliberate: "700ms"
|
|
46198
|
+
}
|
|
46199
|
+
},
|
|
46200
|
+
border: {
|
|
46201
|
+
solid: {
|
|
46202
|
+
borderWidth: "2px",
|
|
46203
|
+
borderRadius: "7px",
|
|
46204
|
+
borderStyle: "solid",
|
|
46205
|
+
borderColor: "#e1e2ea"
|
|
46206
|
+
},
|
|
46207
|
+
dashed: {
|
|
46208
|
+
borderWidth: "2px",
|
|
46209
|
+
borderRadius: "7px",
|
|
46210
|
+
borderStyle: "dashed"
|
|
46211
|
+
},
|
|
46212
|
+
borderless: {
|
|
46213
|
+
borderWidth: "2px",
|
|
46214
|
+
borderRadius: "7px",
|
|
46215
|
+
borderStyle: "solid",
|
|
46216
|
+
borderColor: "transparent"
|
|
46217
|
+
},
|
|
46218
|
+
focusRing: {
|
|
46219
|
+
borderWidth: "2px",
|
|
46220
|
+
borderRadius: "10px",
|
|
46221
|
+
borderStyle: "solid"
|
|
46222
|
+
}
|
|
46223
|
+
},
|
|
46224
|
+
color: {
|
|
46225
|
+
purple: {
|
|
46226
|
+
100: "#f4edf8",
|
|
46227
|
+
200: "#dfc9ea",
|
|
46228
|
+
300: "#c9a5dd",
|
|
46229
|
+
400: "#ae67b1",
|
|
46230
|
+
500: "#844587",
|
|
46231
|
+
600: "#5f3361",
|
|
46232
|
+
700: "#4a234d",
|
|
46233
|
+
800: "#2f2438"
|
|
46234
|
+
},
|
|
46235
|
+
blue: {
|
|
46236
|
+
100: "#e6f6ff",
|
|
46237
|
+
200: "#bde2f5",
|
|
46238
|
+
300: "#73c0e8",
|
|
46239
|
+
400: "#008bd6",
|
|
46240
|
+
500: "#0168b3",
|
|
46241
|
+
600: "#004970",
|
|
46242
|
+
700: "#003157"
|
|
46243
|
+
},
|
|
46244
|
+
green: {
|
|
46245
|
+
100: "#e8f8f4",
|
|
46246
|
+
200: "#c4ede2",
|
|
46247
|
+
300: "#8fdbc7",
|
|
46248
|
+
400: "#5dcbad",
|
|
46249
|
+
500: "#44a289",
|
|
46250
|
+
600: "#2c7d67",
|
|
46251
|
+
700: "#22594a"
|
|
46252
|
+
},
|
|
46253
|
+
yellow: {
|
|
46254
|
+
100: "#fff9e4",
|
|
46255
|
+
200: "#ffeeb3",
|
|
46256
|
+
300: "#ffe36e",
|
|
46257
|
+
400: "#ffca4d",
|
|
46258
|
+
500: "#ffb600",
|
|
46259
|
+
600: "#c68600",
|
|
46260
|
+
700: "#876400"
|
|
46261
|
+
},
|
|
46262
|
+
red: {
|
|
46263
|
+
100: "#fdeaee",
|
|
46264
|
+
200: "#f9c2cb",
|
|
46265
|
+
300: "#f597a8",
|
|
46266
|
+
400: "#e0707d",
|
|
46267
|
+
500: "#c93b55",
|
|
46268
|
+
600: "#a82433",
|
|
46269
|
+
700: "#6c1e20"
|
|
46270
|
+
},
|
|
46271
|
+
orange: {
|
|
46272
|
+
100: "#fff0e8",
|
|
46273
|
+
200: "#ffd1b9",
|
|
46274
|
+
300: "#ffb08a",
|
|
46275
|
+
400: "#ff9461",
|
|
46276
|
+
500: "#e96c2f",
|
|
46277
|
+
600: "#b74302",
|
|
46278
|
+
700: "#903c00"
|
|
46279
|
+
},
|
|
46280
|
+
gray: {
|
|
46281
|
+
100: "#f9f9f9",
|
|
46282
|
+
200: "#f4f4f5",
|
|
46283
|
+
300: "#eaeaec",
|
|
46284
|
+
400: "#cdcdd0",
|
|
46285
|
+
500: "#8c8c97",
|
|
46286
|
+
600: "#524e56"
|
|
46287
|
+
},
|
|
46288
|
+
white: "#ffffff"
|
|
46289
|
+
},
|
|
46290
|
+
dataViz: {
|
|
46291
|
+
favorable: "#7dd5bd",
|
|
46292
|
+
unfavorable: "#e68d97"
|
|
46293
|
+
},
|
|
46294
|
+
layout: {
|
|
46295
|
+
contentMaxWidth: "1392px",
|
|
46296
|
+
contentMaxWidthWithSidebar: "1080px",
|
|
46297
|
+
contentSideMargin: "72px",
|
|
46298
|
+
mobileActionsDrawerHeight: "60px",
|
|
46299
|
+
navigationBarHeight: "72px",
|
|
46300
|
+
breakpoints: {
|
|
46301
|
+
medium: "768px",
|
|
46302
|
+
large: "1080px"
|
|
46303
|
+
}
|
|
46304
|
+
},
|
|
46305
|
+
shadow: {
|
|
46306
|
+
small: {
|
|
46307
|
+
boxShadow: "0px 3px 16px rgba(0, 0, 0, 0.06), 0px 1px 3px rgba(0, 0, 0, 0.1)"
|
|
46308
|
+
},
|
|
46309
|
+
large: {
|
|
46310
|
+
boxShadow: "0px 8px 40px rgba(0, 0, 0, 0.08), 0px 3px 9px rgba(0, 0, 0, 0.1)"
|
|
46311
|
+
}
|
|
46312
|
+
},
|
|
46313
|
+
spacing: {
|
|
46314
|
+
xs: "0.375rem",
|
|
46315
|
+
sm: "0.75rem",
|
|
46316
|
+
md: "1.5rem",
|
|
46317
|
+
lg: "2.25rem",
|
|
46318
|
+
xl: "3rem",
|
|
46319
|
+
xxl: "3.75rem",
|
|
46320
|
+
xxxl: "4.5rem",
|
|
46321
|
+
xxxxl: "5.25rem",
|
|
46322
|
+
xxxxxl: "6rem",
|
|
46323
|
+
0: "0",
|
|
46324
|
+
1: ".0625rem",
|
|
46325
|
+
2: ".125rem",
|
|
46326
|
+
4: ".25rem",
|
|
46327
|
+
6: ".375rem",
|
|
46328
|
+
8: ".5rem",
|
|
46329
|
+
12: ".75rem",
|
|
46330
|
+
16: "1rem",
|
|
46331
|
+
24: "1.5rem",
|
|
46332
|
+
32: "2rem",
|
|
46333
|
+
40: "2.5rem",
|
|
46334
|
+
48: "3rem",
|
|
46335
|
+
56: "3.5rem",
|
|
46336
|
+
64: "4rem",
|
|
46337
|
+
72: "4.5rem",
|
|
46338
|
+
80: "5rem",
|
|
46339
|
+
96: "6rem",
|
|
46340
|
+
112: "7rem",
|
|
46341
|
+
128: "8rem",
|
|
46342
|
+
160: "10rem",
|
|
46343
|
+
200: "12.5rem",
|
|
46344
|
+
240: "15rem",
|
|
46345
|
+
280: "17.5rem",
|
|
46346
|
+
320: "20rem"
|
|
46347
|
+
},
|
|
46348
|
+
typography: {
|
|
46349
|
+
dataLarge: {
|
|
46350
|
+
fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
|
|
46351
|
+
fontWeight: 700,
|
|
46352
|
+
fontSize: "5.25rem",
|
|
46353
|
+
lineHeight: "5.25rem",
|
|
46354
|
+
letterSpacing: "normal"
|
|
46355
|
+
},
|
|
46356
|
+
dataLargeUnits: {
|
|
46357
|
+
fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
|
|
46358
|
+
fontWeight: 700,
|
|
46359
|
+
fontSize: "2.625rem",
|
|
46360
|
+
lineHeight: "5.25rem",
|
|
46361
|
+
letterSpacing: "normal"
|
|
46362
|
+
},
|
|
46363
|
+
dataMedium: {
|
|
46364
|
+
fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
|
|
46365
|
+
fontWeight: 700,
|
|
46366
|
+
fontSize: "3rem",
|
|
46367
|
+
lineHeight: "5rem",
|
|
46368
|
+
letterSpacing: "normal"
|
|
46369
|
+
},
|
|
46370
|
+
dataMediumUnits: {
|
|
46371
|
+
fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
|
|
46372
|
+
fontWeight: 700,
|
|
46373
|
+
fontSize: "1.5rem",
|
|
46374
|
+
lineHeight: "5rem",
|
|
46375
|
+
letterSpacing: "normal"
|
|
46376
|
+
},
|
|
46377
|
+
dataSmall: {
|
|
46378
|
+
fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
|
|
46379
|
+
fontWeight: 700,
|
|
46380
|
+
fontSize: "1.5rem",
|
|
46381
|
+
lineHeight: "1.5rem",
|
|
46382
|
+
letterSpacing: "normal"
|
|
46383
|
+
},
|
|
46384
|
+
dataSmallUnits: {
|
|
46385
|
+
fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
|
|
46386
|
+
fontWeight: 700,
|
|
46387
|
+
fontSize: "1.125rem",
|
|
46388
|
+
lineHeight: "1.5rem",
|
|
46389
|
+
letterSpacing: "normal"
|
|
46390
|
+
},
|
|
46391
|
+
display0: {
|
|
46392
|
+
fontFamily: '"Tiempos Headline", Georgia, serif',
|
|
46393
|
+
fontWeight: 800,
|
|
46394
|
+
fontSize: "4.5rem",
|
|
46395
|
+
lineHeight: "5.25rem",
|
|
46396
|
+
letterSpacing: "0em"
|
|
46397
|
+
},
|
|
46398
|
+
heading1: {
|
|
46399
|
+
fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
|
|
46400
|
+
fontWeight: 700,
|
|
46401
|
+
fontSize: "2.125rem",
|
|
46402
|
+
lineHeight: "2.625rem",
|
|
46403
|
+
letterSpacing: "normal"
|
|
46404
|
+
},
|
|
46405
|
+
heading2: {
|
|
46406
|
+
fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
|
|
46407
|
+
fontWeight: 700,
|
|
46408
|
+
fontSize: "1.75rem",
|
|
46409
|
+
lineHeight: "2.25rem",
|
|
46410
|
+
letterSpacing: "normal"
|
|
46411
|
+
},
|
|
46412
|
+
heading3: {
|
|
46413
|
+
fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
|
|
46414
|
+
fontWeight: 700,
|
|
46415
|
+
fontSize: "1.375rem",
|
|
46416
|
+
lineHeight: "1.875rem",
|
|
46417
|
+
letterSpacing: "normal"
|
|
46418
|
+
},
|
|
46419
|
+
heading4: {
|
|
46420
|
+
fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
|
|
46421
|
+
fontWeight: 600,
|
|
46422
|
+
fontSize: "1.125rem",
|
|
46423
|
+
lineHeight: "1.5rem",
|
|
46424
|
+
letterSpacing: "normal"
|
|
46425
|
+
},
|
|
46426
|
+
heading5: {
|
|
46427
|
+
fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
|
|
46428
|
+
fontWeight: 600,
|
|
46429
|
+
fontSize: "1rem",
|
|
46430
|
+
lineHeight: "1.5rem",
|
|
46431
|
+
letterSpacing: "normal"
|
|
46432
|
+
},
|
|
46433
|
+
heading6: {
|
|
46434
|
+
fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
|
|
46435
|
+
fontWeight: 700,
|
|
46436
|
+
fontSize: "0.875rem",
|
|
46437
|
+
lineHeight: "1.5rem",
|
|
46438
|
+
letterSpacing: "normal"
|
|
46439
|
+
},
|
|
46440
|
+
paragraphIntroLede: {
|
|
46441
|
+
fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
|
|
46442
|
+
fontWeight: 400,
|
|
46443
|
+
fontSize: "1.25rem",
|
|
46444
|
+
lineHeight: "1.875rem",
|
|
46445
|
+
letterSpacing: "0"
|
|
46446
|
+
},
|
|
46447
|
+
paragraphBody: {
|
|
46448
|
+
fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
|
|
46449
|
+
fontWeight: 400,
|
|
46450
|
+
fontSize: "1rem",
|
|
46451
|
+
lineHeight: "1.5rem",
|
|
46452
|
+
letterSpacing: "normal"
|
|
46453
|
+
},
|
|
46454
|
+
paragraphSmall: {
|
|
46455
|
+
fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
|
|
46456
|
+
fontWeight: 400,
|
|
46457
|
+
fontSize: "0.875rem",
|
|
46458
|
+
lineHeight: "1.125rem",
|
|
46459
|
+
letterSpacing: "normal"
|
|
46460
|
+
},
|
|
46461
|
+
paragraphExtraSmall: {
|
|
46462
|
+
fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
|
|
46463
|
+
fontWeight: 400,
|
|
46464
|
+
fontSize: "0.75rem",
|
|
46465
|
+
lineHeight: "1.125rem",
|
|
46466
|
+
letterSpacing: "normal"
|
|
46467
|
+
},
|
|
46468
|
+
paragraphBold: {
|
|
46469
|
+
fontWeight: 600
|
|
46470
|
+
},
|
|
46471
|
+
buttonPrimary: {
|
|
46472
|
+
fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
|
|
46473
|
+
fontWeight: 700,
|
|
46474
|
+
fontSize: "1.125rem",
|
|
46475
|
+
lineHeight: "1.5rem",
|
|
46476
|
+
letterSpacing: "normal"
|
|
46477
|
+
},
|
|
46478
|
+
buttonSecondary: {
|
|
46479
|
+
fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
|
|
46480
|
+
fontWeight: 500,
|
|
46481
|
+
fontSize: "1rem",
|
|
46482
|
+
lineHeight: "1.5rem",
|
|
46483
|
+
letterSpacing: "normal"
|
|
46484
|
+
}
|
|
46485
|
+
}
|
|
46486
|
+
};
|
|
46487
|
+
|
|
46488
|
+
var defaultTheme = heartTheme;
|
|
46489
|
+
|
|
46490
|
+
var ThemeContext = React.createContext(defaultTheme);
|
|
46491
|
+
var ThemeProvider = function(_a) {
|
|
46492
|
+
var themeManager = _a.themeManager, props = index.__rest(_a, ["themeManager"]);
|
|
46493
|
+
var themeManagerInstance = React.useState(function() {
|
|
46494
|
+
return themeManager || new ThemeManager(defaultTheme);
|
|
46495
|
+
})[0];
|
|
46496
|
+
var _b = React.useState(themeManagerInstance.getCurrentTheme()), theme = _b[0], setTheme = _b[1];
|
|
46497
|
+
React.useEffect(function() {
|
|
46498
|
+
var cancelled = false;
|
|
46499
|
+
var listener = function(newTheme) {
|
|
46500
|
+
if (!cancelled)
|
|
46501
|
+
setTheme(newTheme);
|
|
46502
|
+
};
|
|
46503
|
+
themeManagerInstance.addThemeChangeListener(listener);
|
|
46504
|
+
return function() {
|
|
46505
|
+
cancelled = true;
|
|
46506
|
+
themeManagerInstance.removeThemeChangeListener(listener);
|
|
46507
|
+
};
|
|
46508
|
+
}, []);
|
|
46509
|
+
return React.createElement(
|
|
46510
|
+
React.Fragment,
|
|
46511
|
+
null,
|
|
46512
|
+
React.createElement(ThemeContext.Provider, { value: theme }, props.children),
|
|
46513
|
+
React.createElement("link", { rel: "preload", href: "https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-bold.woff2", as: "font", type: "font/woff2", crossOrigin: "anonymous" }),
|
|
46514
|
+
React.createElement("link", { rel: "preload", href: "https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-demi-bold.woff2", as: "font", type: "font/woff2", crossOrigin: "anonymous" }),
|
|
46515
|
+
React.createElement("link", { rel: "preload", href: "https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-medium.woff2", as: "font", type: "font/woff2", crossOrigin: "anonymous" }),
|
|
46516
|
+
React.createElement("link", { rel: "preload", href: "https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-regular.woff2", as: "font", type: "font/woff2", crossOrigin: "anonymous" }),
|
|
46517
|
+
React.createElement("link", { rel: "preload", href: "https://d1e7r7b0lb8p4d.cloudfront.net/fonts/tiempos/tiempos-headline-bold.woff2", as: "font", type: "font/woff2", crossOrigin: "anonymous" })
|
|
46518
|
+
);
|
|
46519
|
+
};
|
|
46520
|
+
var useTheme = function() {
|
|
46521
|
+
return React.useContext(ThemeContext);
|
|
46522
|
+
};
|
|
46523
|
+
|
|
46524
|
+
var KaizenProvider = function(_a) {
|
|
46525
|
+
var children = _a.children, themeManager = _a.themeManager;
|
|
46526
|
+
return React.createElement(ThemeProvider, { themeManager }, children);
|
|
46527
|
+
};
|
|
46528
|
+
KaizenProvider.displayName = "KaizenProvider";
|
|
46529
|
+
|
|
46530
|
+
exports.Brand = Brand;
|
|
45423
46531
|
exports.Filter = Filter;
|
|
45424
46532
|
exports.FilterButton = FilterButton;
|
|
45425
46533
|
exports.FilterButtonRemovable = FilterButtonRemovable;
|