@kaizen/components 1.4.20 → 1.4.22-canary.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/esm/index.js +0 -53
- package/dist/iife/KaizenProvider/ThemeProvider/ThemeManager.js +62 -2968
- package/dist/iife/KaizenProvider/ThemeProvider/ThemeManager.spec.js +369 -2968
- package/dist/iife/KaizenProvider/ThemeProvider/index.js +64 -764
- package/dist/iife/KaizenProvider/index.js +67 -767
- package/dist/iife/index.js +1176 -115636
- package/dist/index.d.ts +1 -41
- package/dist/index.js +1 -54
- package/package.json +32 -32
- package/dist/iife/ActionButton.module-LHTIA2D3.scss +0 -10
- package/dist/iife/Avatar.module-GUG7HXMZ.scss +0 -165
- package/dist/iife/AvatarGroup.module-QAVTI4PR.scss +0 -85
- package/dist/iife/Base.module-DJPJNUQ5.scss +0 -80
- package/dist/iife/BaseButton.module-4FKZZLVI.scss +0 -103
- package/dist/iife/Brand.module-FCHTLJQK.scss +0 -4
- package/dist/iife/BrandMoment.module-4P7H2D3W.scss +0 -196
- package/dist/iife/Calendar.module-H7XBQXTA.scss +0 -211
- package/dist/iife/CalendarRange.module-QWW624PJ.scss +0 -64
- package/dist/iife/CalendarSingle.module-N2P3DWLM.scss +0 -18
- package/dist/iife/Card.module-VEUOO2LT.scss +0 -38
- package/dist/iife/Collapsible.module-ZJNVWQIB.scss +0 -119
- package/dist/iife/CollapsibleGroup.module-UR2SIYLJ.scss +0 -10
- package/dist/iife/ConfirmationModal.module-RN2H7KPL.scss +0 -157
- package/dist/iife/Content.module-6CTLBAHR.scss +0 -25
- package/dist/iife/ContextModal.module-TTFVPUPU.scss +0 -77
- package/dist/iife/DateInput.module-YBXARKD2.scss +0 -3
- package/dist/iife/DateInputDescription.module-SGAJNB7K.scss +0 -19
- package/dist/iife/DateInputField.module-2LG4I24X.scss +0 -5
- package/dist/iife/DateInputWithIconButton.module-RSUEQ345.scss +0 -53
- package/dist/iife/DateRangePicker.module-EIUGUIIA.scss +0 -115
- package/dist/iife/Dropdown.module-4CIBZTRZ.scss +0 -100
- package/dist/iife/DropdownButton.module-WZ6FRRPS.scss +0 -44
- package/dist/iife/EditableRichTextContent.module-N2SFSI5C.scss +0 -25
- package/dist/iife/EmptyState.module-DOSURL5X.scss +0 -156
- package/dist/iife/ExpertAdviceCollapsible.module-L554JCXB.scss +0 -47
- package/dist/iife/FilterMenuButton.module-26EL5K3H.scss +0 -19
- package/dist/iife/FilterSplitButton.module-LMMEHFXQ.scss +0 -133
- package/dist/iife/FloatingCalendarWrapper.module-62NLSOUD.scss +0 -12
- package/dist/iife/GenericModal.module-DW6NSOGA.scss +0 -110
- package/dist/iife/GenericModalSection.module-MJ4MTMSP.scss +0 -7
- package/dist/iife/GenericNotification.module-DAERSOHE.scss +0 -115
- package/dist/iife/GenericTile.module-ZXQ4XWP4.scss +0 -136
- package/dist/iife/GuidanceBlock.module-FAHJFZMK.scss +0 -324
- package/dist/iife/HeroCard.module-LXHTKJTW.scss +0 -106
- package/dist/iife/InputEditModal.module-X3TLJPFO.scss +0 -36
- package/dist/iife/Layout.module-MZ6JYT46.scss +0 -58
- package/dist/iife/LikertScaleLegacy.module-JYCJ5CON.scss +0 -298
- package/dist/iife/LinkPopover-7NCAPCQ3.scss +0 -22
- package/dist/iife/MainActions.module-T43D33YO.scss +0 -16
- package/dist/iife/Menu.module-N76N74LN.scss +0 -111
- package/dist/iife/MenuDropdown.module-DYV6JLT6.scss +0 -26
- package/dist/iife/MenuItem.module-LD7ZYX4T.scss +0 -99
- package/dist/iife/MenuList.module-44RMG7CF.scss +0 -35
- package/dist/iife/MobileActions.module-Z6PD4VIR.scss +0 -198
- package/dist/iife/ModalAccessibleDescription.module-NIJNKHHO.scss +0 -3
- package/dist/iife/ModalAccessibleLabel.module-NG26HDU4.scss +0 -58
- package/dist/iife/ModalFooter.module-TK3HAXMB.scss +0 -69
- package/dist/iife/ModalHeader.module-6SW7KZ22.scss +0 -23
- package/dist/iife/MultiActionTile.module-4Y2NA4H6.scss +0 -3
- package/dist/iife/NavigationTabs.module-VDIXMFXJ.scss +0 -108
- package/dist/iife/Pagination.module-U5S6WZ5K.scss +0 -124
- package/dist/iife/Popover.module-5ZQUBHXG.scss +0 -264
- package/dist/iife/ProgressBar.module-RL2UWVEH.scss +0 -91
- package/dist/iife/RichTextContent.module-4HA44IM4.scss +0 -5
- package/dist/iife/RichTextEditor.module-ZHXEK4XJ.scss +0 -97
- package/dist/iife/RoadblockModal.module-KVZCYLF2.scss +0 -45
- package/dist/iife/Select.module-6LHWOGGY.scss +0 -391
- package/dist/iife/Skirt.module-S3GPHMMQ.scss +0 -32
- package/dist/iife/SkirtCard.module-6YQ4PS2K.scss +0 -16
- package/dist/iife/SplitButton.module-WMGCIDDK.scss +0 -4
- package/dist/iife/StatelessMenu.module-SX2T5P4I.scss +0 -3
- package/dist/iife/Table.module-LCDRXCBP.scss +0 -233
- package/dist/iife/Tabs.module-BUPNPYW4.scss +0 -172
- package/dist/iife/Tag.module-T6PQJLSW.scss +0 -268
- package/dist/iife/Text.module-SXGFOHGJ.scss +0 -173
- package/dist/iife/TileGrid.module-NJQFVYRS.scss +0 -23
- package/dist/iife/TimeField.module-B4WNYAUE.scss +0 -75
- package/dist/iife/TimeSegment.module-TKOTKIXH.scss +0 -53
- package/dist/iife/TitleBlockMenuItem.module-LWVSMJTH.scss +0 -99
- package/dist/iife/TitleBlockZen.module-OK3QIC4Y.scss +0 -695
- package/dist/iife/ToastNotificationsList.module-EHDVGWDW.scss +0 -26
- package/dist/iife/ToggleIconButton.module-COM67MDC.scss +0 -132
- package/dist/iife/Toolbar.module-3BZYZE6H.scss +0 -44
- package/dist/iife/Toolbar.module-BP3GTBGW.scss +0 -6
- package/dist/iife/ToolbarSection.module-LZTHWGO7.scss +0 -15
- package/dist/iife/Well.module-4TIRC3HQ.scss +0 -73
- package/dist/iife/add-link.icon-2JH25LOT.svg +0 -3
- package/dist/iife/arrow-left.icon-RWWYLDT3.svg +0 -17
- package/dist/iife/arrow-right.icon-3ZGNCW3O.svg +0 -17
- package/dist/iife/bold.icon-FEZQ56AP.svg +0 -3
- package/dist/iife/bulletted-list.icon-ZDSXNO72.svg +0 -3
- package/dist/iife/caution.icon-BHBJMNMA.svg +0 -1
- package/dist/iife/clear-white.icon-O3ZK5Z2K.svg +0 -18
- package/dist/iife/close.icon-7H6W45MB.svg +0 -1
- package/dist/iife/date-start.icon-NV4EVRXI.svg +0 -17
- package/dist/iife/decrease-indent.icon-VAYQUHQG.svg +0 -3
- package/dist/iife/edit.icon-YJ4EIXHJ.svg +0 -17
- package/dist/iife/ellipsis.icon-DECY5OPU.svg +0 -17
- package/dist/iife/exclamation.icon-FJBHW7NP.svg +0 -17
- package/dist/iife/external-link.icon-7FNRTMN2.svg +0 -17
- package/dist/iife/hamburger.icon-YHQT7RB6.svg +0 -17
- package/dist/iife/increase-indent.icon-3XUPJEBD.svg +0 -3
- package/dist/iife/information-white.icon-3DXZDERC.svg +0 -19
- package/dist/iife/information.icon-5LHKLG66.svg +0 -17
- package/dist/iife/italics.icon-WWQDZP3S.svg +0 -3
- package/dist/iife/meatballs.icon-DECY5OPU.svg +0 -17
- package/dist/iife/numbered-list.icon-WPE4LE5R.svg +0 -3
- package/dist/iife/remove-link.icon-QMFTP7WO.svg +0 -3
- package/dist/iife/sort-ascending.icon-E24DTSHO.svg +0 -17
- package/dist/iife/sort-descending.icon-4SMPW2PG.svg +0 -17
- package/dist/iife/success-white.icon-VXFA2PUU.svg +0 -18
- package/dist/iife/underline.icon-ACYVVVSD.svg +0 -3
- package/dist/iife/user.icon-24JPACDP.svg +0 -17
- package/dist/styles.css +0 -98
|
@@ -2208,346 +2208,6 @@
|
|
|
2208
2208
|
}
|
|
2209
2209
|
});
|
|
2210
2210
|
|
|
2211
|
-
// ../design-tokens/dist/themes/heart.js
|
|
2212
|
-
var require_heart = __commonJS({
|
|
2213
|
-
"../design-tokens/dist/themes/heart.js"(exports) {
|
|
2214
|
-
"use strict";
|
|
2215
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2216
|
-
exports.heartTheme = void 0;
|
|
2217
|
-
exports.heartTheme = {
|
|
2218
|
-
themeKey: "heart",
|
|
2219
|
-
animation: {
|
|
2220
|
-
easingFunction: {
|
|
2221
|
-
easeInOut: "cubic-bezier(0.455, 0.03, 0.515, 0.955)",
|
|
2222
|
-
easeIn: "cubic-bezier(0.55, 0.085, 0.68, 0.53)",
|
|
2223
|
-
easeOut: "cubic-bezier(0.25, 0.46, 0.45, 0.94)",
|
|
2224
|
-
linear: "linear",
|
|
2225
|
-
bounceIn: "cubic-bezier(0.485, 0.155, 0.24, 1.245)",
|
|
2226
|
-
bounceOut: "cubic-bezier(0.485, 0.155, 0.515, 0.845)",
|
|
2227
|
-
bounceInOut: "cubic-bezier(0.76, -0.245, 0.24, 1.245)"
|
|
2228
|
-
},
|
|
2229
|
-
duration: {
|
|
2230
|
-
instant: "0ms",
|
|
2231
|
-
immediate: "100ms",
|
|
2232
|
-
rapid: "200ms",
|
|
2233
|
-
fast: "300ms",
|
|
2234
|
-
slow: "400ms",
|
|
2235
|
-
deliberate: "700ms"
|
|
2236
|
-
}
|
|
2237
|
-
},
|
|
2238
|
-
border: {
|
|
2239
|
-
solid: {
|
|
2240
|
-
borderWidth: "2px",
|
|
2241
|
-
borderRadius: "7px",
|
|
2242
|
-
borderStyle: "solid",
|
|
2243
|
-
borderColor: "#e1e2ea"
|
|
2244
|
-
},
|
|
2245
|
-
dashed: {
|
|
2246
|
-
borderWidth: "2px",
|
|
2247
|
-
borderRadius: "7px",
|
|
2248
|
-
borderStyle: "dashed"
|
|
2249
|
-
},
|
|
2250
|
-
borderless: {
|
|
2251
|
-
borderWidth: "2px",
|
|
2252
|
-
borderRadius: "7px",
|
|
2253
|
-
borderStyle: "solid",
|
|
2254
|
-
borderColor: "transparent"
|
|
2255
|
-
},
|
|
2256
|
-
focusRing: {
|
|
2257
|
-
borderWidth: "2px",
|
|
2258
|
-
borderRadius: "10px",
|
|
2259
|
-
borderStyle: "solid"
|
|
2260
|
-
}
|
|
2261
|
-
},
|
|
2262
|
-
color: {
|
|
2263
|
-
purple: {
|
|
2264
|
-
100: "#f4edf8",
|
|
2265
|
-
200: "#dfc9ea",
|
|
2266
|
-
300: "#c9a5dd",
|
|
2267
|
-
400: "#ae67b1",
|
|
2268
|
-
500: "#844587",
|
|
2269
|
-
600: "#5f3361",
|
|
2270
|
-
700: "#4a234d",
|
|
2271
|
-
800: "#2f2438"
|
|
2272
|
-
},
|
|
2273
|
-
blue: {
|
|
2274
|
-
100: "#e6f6ff",
|
|
2275
|
-
200: "#bde2f5",
|
|
2276
|
-
300: "#73c0e8",
|
|
2277
|
-
400: "#008bd6",
|
|
2278
|
-
500: "#0168b3",
|
|
2279
|
-
600: "#004970",
|
|
2280
|
-
700: "#003157"
|
|
2281
|
-
},
|
|
2282
|
-
green: {
|
|
2283
|
-
100: "#e8f8f4",
|
|
2284
|
-
200: "#c4ede2",
|
|
2285
|
-
300: "#8fdbc7",
|
|
2286
|
-
400: "#5dcbad",
|
|
2287
|
-
500: "#44a289",
|
|
2288
|
-
600: "#2c7d67",
|
|
2289
|
-
700: "#22594a"
|
|
2290
|
-
},
|
|
2291
|
-
yellow: {
|
|
2292
|
-
100: "#fff9e4",
|
|
2293
|
-
200: "#ffeeb3",
|
|
2294
|
-
300: "#ffe36e",
|
|
2295
|
-
400: "#ffca4d",
|
|
2296
|
-
500: "#ffb600",
|
|
2297
|
-
600: "#c68600",
|
|
2298
|
-
700: "#876400"
|
|
2299
|
-
},
|
|
2300
|
-
red: {
|
|
2301
|
-
100: "#fdeaee",
|
|
2302
|
-
200: "#f9c2cb",
|
|
2303
|
-
300: "#f597a8",
|
|
2304
|
-
400: "#e0707d",
|
|
2305
|
-
500: "#c93b55",
|
|
2306
|
-
600: "#a82433",
|
|
2307
|
-
700: "#6c1e20"
|
|
2308
|
-
},
|
|
2309
|
-
orange: {
|
|
2310
|
-
100: "#fff0e8",
|
|
2311
|
-
200: "#ffd1b9",
|
|
2312
|
-
300: "#ffb08a",
|
|
2313
|
-
400: "#ff9461",
|
|
2314
|
-
500: "#e96c2f",
|
|
2315
|
-
600: "#b74302",
|
|
2316
|
-
700: "#903c00"
|
|
2317
|
-
},
|
|
2318
|
-
gray: {
|
|
2319
|
-
100: "#f9f9f9",
|
|
2320
|
-
200: "#f4f4f5",
|
|
2321
|
-
300: "#eaeaec",
|
|
2322
|
-
400: "#cdcdd0",
|
|
2323
|
-
500: "#8c8c97",
|
|
2324
|
-
600: "#524e56"
|
|
2325
|
-
},
|
|
2326
|
-
white: "#ffffff"
|
|
2327
|
-
},
|
|
2328
|
-
dataViz: {
|
|
2329
|
-
favorable: "#7dd5bd",
|
|
2330
|
-
unfavorable: "#e68d97"
|
|
2331
|
-
},
|
|
2332
|
-
layout: {
|
|
2333
|
-
contentMaxWidth: "1392px",
|
|
2334
|
-
contentMaxWidthWithSidebar: "1080px",
|
|
2335
|
-
contentSideMargin: "72px",
|
|
2336
|
-
mobileActionsDrawerHeight: "60px",
|
|
2337
|
-
navigationBarHeight: "72px",
|
|
2338
|
-
breakpoints: {
|
|
2339
|
-
medium: "768px",
|
|
2340
|
-
large: "1080px"
|
|
2341
|
-
}
|
|
2342
|
-
},
|
|
2343
|
-
shadow: {
|
|
2344
|
-
small: {
|
|
2345
|
-
boxShadow: "0px 3px 16px rgba(0, 0, 0, 0.06), 0px 1px 3px rgba(0, 0, 0, 0.1)"
|
|
2346
|
-
},
|
|
2347
|
-
large: {
|
|
2348
|
-
boxShadow: "0px 8px 40px rgba(0, 0, 0, 0.08), 0px 3px 9px rgba(0, 0, 0, 0.1)"
|
|
2349
|
-
}
|
|
2350
|
-
},
|
|
2351
|
-
spacing: {
|
|
2352
|
-
xs: "0.375rem",
|
|
2353
|
-
sm: "0.75rem",
|
|
2354
|
-
md: "1.5rem",
|
|
2355
|
-
lg: "2.25rem",
|
|
2356
|
-
xl: "3rem",
|
|
2357
|
-
xxl: "3.75rem",
|
|
2358
|
-
xxxl: "4.5rem",
|
|
2359
|
-
xxxxl: "5.25rem",
|
|
2360
|
-
xxxxxl: "6rem",
|
|
2361
|
-
0: "0",
|
|
2362
|
-
1: ".0625rem",
|
|
2363
|
-
2: ".125rem",
|
|
2364
|
-
4: ".25rem",
|
|
2365
|
-
6: ".375rem",
|
|
2366
|
-
8: ".5rem",
|
|
2367
|
-
12: ".75rem",
|
|
2368
|
-
16: "1rem",
|
|
2369
|
-
24: "1.5rem",
|
|
2370
|
-
32: "2rem",
|
|
2371
|
-
40: "2.5rem",
|
|
2372
|
-
48: "3rem",
|
|
2373
|
-
56: "3.5rem",
|
|
2374
|
-
64: "4rem",
|
|
2375
|
-
72: "4.5rem",
|
|
2376
|
-
80: "5rem",
|
|
2377
|
-
96: "6rem",
|
|
2378
|
-
112: "7rem",
|
|
2379
|
-
128: "8rem",
|
|
2380
|
-
160: "10rem",
|
|
2381
|
-
200: "12.5rem",
|
|
2382
|
-
240: "15rem",
|
|
2383
|
-
280: "17.5rem",
|
|
2384
|
-
320: "20rem"
|
|
2385
|
-
},
|
|
2386
|
-
typography: {
|
|
2387
|
-
dataLarge: {
|
|
2388
|
-
fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
|
|
2389
|
-
fontWeight: 700,
|
|
2390
|
-
fontSize: "5.25rem",
|
|
2391
|
-
lineHeight: "5.25rem",
|
|
2392
|
-
letterSpacing: "normal"
|
|
2393
|
-
},
|
|
2394
|
-
dataLargeUnits: {
|
|
2395
|
-
fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
|
|
2396
|
-
fontWeight: 700,
|
|
2397
|
-
fontSize: "2.625rem",
|
|
2398
|
-
lineHeight: "5.25rem",
|
|
2399
|
-
letterSpacing: "normal"
|
|
2400
|
-
},
|
|
2401
|
-
dataMedium: {
|
|
2402
|
-
fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
|
|
2403
|
-
fontWeight: 700,
|
|
2404
|
-
fontSize: "3rem",
|
|
2405
|
-
lineHeight: "5rem",
|
|
2406
|
-
letterSpacing: "normal"
|
|
2407
|
-
},
|
|
2408
|
-
dataMediumUnits: {
|
|
2409
|
-
fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
|
|
2410
|
-
fontWeight: 700,
|
|
2411
|
-
fontSize: "1.5rem",
|
|
2412
|
-
lineHeight: "5rem",
|
|
2413
|
-
letterSpacing: "normal"
|
|
2414
|
-
},
|
|
2415
|
-
dataSmall: {
|
|
2416
|
-
fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
|
|
2417
|
-
fontWeight: 700,
|
|
2418
|
-
fontSize: "1.5rem",
|
|
2419
|
-
lineHeight: "1.5rem",
|
|
2420
|
-
letterSpacing: "normal"
|
|
2421
|
-
},
|
|
2422
|
-
dataSmallUnits: {
|
|
2423
|
-
fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
|
|
2424
|
-
fontWeight: 700,
|
|
2425
|
-
fontSize: "1.125rem",
|
|
2426
|
-
lineHeight: "1.5rem",
|
|
2427
|
-
letterSpacing: "normal"
|
|
2428
|
-
},
|
|
2429
|
-
display0: {
|
|
2430
|
-
fontFamily: '"Tiempos Headline", Georgia, serif',
|
|
2431
|
-
fontWeight: 800,
|
|
2432
|
-
fontSize: "4.5rem",
|
|
2433
|
-
lineHeight: "5.25rem",
|
|
2434
|
-
letterSpacing: "0em"
|
|
2435
|
-
},
|
|
2436
|
-
heading1: {
|
|
2437
|
-
fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
|
|
2438
|
-
fontWeight: 700,
|
|
2439
|
-
fontSize: "2.125rem",
|
|
2440
|
-
lineHeight: "2.625rem",
|
|
2441
|
-
letterSpacing: "normal"
|
|
2442
|
-
},
|
|
2443
|
-
heading2: {
|
|
2444
|
-
fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
|
|
2445
|
-
fontWeight: 700,
|
|
2446
|
-
fontSize: "1.75rem",
|
|
2447
|
-
lineHeight: "2.25rem",
|
|
2448
|
-
letterSpacing: "normal"
|
|
2449
|
-
},
|
|
2450
|
-
heading3: {
|
|
2451
|
-
fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
|
|
2452
|
-
fontWeight: 700,
|
|
2453
|
-
fontSize: "1.375rem",
|
|
2454
|
-
lineHeight: "1.875rem",
|
|
2455
|
-
letterSpacing: "normal"
|
|
2456
|
-
},
|
|
2457
|
-
heading4: {
|
|
2458
|
-
fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
|
|
2459
|
-
fontWeight: 600,
|
|
2460
|
-
fontSize: "1.125rem",
|
|
2461
|
-
lineHeight: "1.5rem",
|
|
2462
|
-
letterSpacing: "normal"
|
|
2463
|
-
},
|
|
2464
|
-
heading5: {
|
|
2465
|
-
fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
|
|
2466
|
-
fontWeight: 600,
|
|
2467
|
-
fontSize: "1rem",
|
|
2468
|
-
lineHeight: "1.5rem",
|
|
2469
|
-
letterSpacing: "normal"
|
|
2470
|
-
},
|
|
2471
|
-
heading6: {
|
|
2472
|
-
fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
|
|
2473
|
-
fontWeight: 700,
|
|
2474
|
-
fontSize: "0.875rem",
|
|
2475
|
-
lineHeight: "1.5rem",
|
|
2476
|
-
letterSpacing: "normal"
|
|
2477
|
-
},
|
|
2478
|
-
paragraphIntroLede: {
|
|
2479
|
-
fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
|
|
2480
|
-
fontWeight: 400,
|
|
2481
|
-
fontSize: "1.25rem",
|
|
2482
|
-
lineHeight: "1.875rem",
|
|
2483
|
-
letterSpacing: "0"
|
|
2484
|
-
},
|
|
2485
|
-
paragraphBody: {
|
|
2486
|
-
fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
|
|
2487
|
-
fontWeight: 400,
|
|
2488
|
-
fontSize: "1rem",
|
|
2489
|
-
lineHeight: "1.5rem",
|
|
2490
|
-
letterSpacing: "normal"
|
|
2491
|
-
},
|
|
2492
|
-
paragraphSmall: {
|
|
2493
|
-
fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
|
|
2494
|
-
fontWeight: 400,
|
|
2495
|
-
fontSize: "0.875rem",
|
|
2496
|
-
lineHeight: "1.125rem",
|
|
2497
|
-
letterSpacing: "normal"
|
|
2498
|
-
},
|
|
2499
|
-
paragraphExtraSmall: {
|
|
2500
|
-
fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
|
|
2501
|
-
fontWeight: 400,
|
|
2502
|
-
fontSize: "0.75rem",
|
|
2503
|
-
lineHeight: "1.125rem",
|
|
2504
|
-
letterSpacing: "normal"
|
|
2505
|
-
},
|
|
2506
|
-
paragraphBold: {
|
|
2507
|
-
fontWeight: 600
|
|
2508
|
-
},
|
|
2509
|
-
buttonPrimary: {
|
|
2510
|
-
fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
|
|
2511
|
-
fontWeight: 700,
|
|
2512
|
-
fontSize: "1.125rem",
|
|
2513
|
-
lineHeight: "1.5rem",
|
|
2514
|
-
letterSpacing: "normal"
|
|
2515
|
-
},
|
|
2516
|
-
buttonSecondary: {
|
|
2517
|
-
fontFamily: '"Inter", "Noto Sans", Helvetica, Arial, sans-serif',
|
|
2518
|
-
fontWeight: 500,
|
|
2519
|
-
fontSize: "1rem",
|
|
2520
|
-
lineHeight: "1.5rem",
|
|
2521
|
-
letterSpacing: "normal"
|
|
2522
|
-
}
|
|
2523
|
-
}
|
|
2524
|
-
};
|
|
2525
|
-
}
|
|
2526
|
-
});
|
|
2527
|
-
|
|
2528
|
-
// ../design-tokens/dist/themes/index.js
|
|
2529
|
-
var require_themes = __commonJS({
|
|
2530
|
-
"../design-tokens/dist/themes/index.js"(exports) {
|
|
2531
|
-
"use strict";
|
|
2532
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2533
|
-
exports.defaultTheme = exports.heartTheme = void 0;
|
|
2534
|
-
var heart_1 = require_heart();
|
|
2535
|
-
var heart_2 = require_heart();
|
|
2536
|
-
Object.defineProperty(exports, "heartTheme", { enumerable: true, get: function() {
|
|
2537
|
-
return heart_2.heartTheme;
|
|
2538
|
-
} });
|
|
2539
|
-
exports.defaultTheme = heart_1.heartTheme;
|
|
2540
|
-
}
|
|
2541
|
-
});
|
|
2542
|
-
|
|
2543
|
-
// ../design-tokens/dist/types.js
|
|
2544
|
-
var require_types = __commonJS({
|
|
2545
|
-
"../design-tokens/dist/types.js"(exports) {
|
|
2546
|
-
"use strict";
|
|
2547
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2548
|
-
}
|
|
2549
|
-
});
|
|
2550
|
-
|
|
2551
2211
|
// ../../node_modules/color-name/index.js
|
|
2552
2212
|
var require_color_name = __commonJS({
|
|
2553
2213
|
"../../node_modules/color-name/index.js"(exports, module) {
|
|
@@ -3252,444 +2912,84 @@
|
|
|
3252
2912
|
}
|
|
3253
2913
|
});
|
|
3254
2914
|
|
|
3255
|
-
//
|
|
3256
|
-
var
|
|
3257
|
-
"../design-tokens/dist/lib/cssVariables.js"(exports) {
|
|
3258
|
-
"use strict";
|
|
3259
|
-
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
3260
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
3261
|
-
};
|
|
3262
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3263
|
-
exports.objectPathToCssVarIdentifier = exports.objectPathToCssVarFunction = void 0;
|
|
3264
|
-
var lodash_kebabcase_1 = __importDefault(require_lodash());
|
|
3265
|
-
var objectPathToCssVarFunction = function(path, value) {
|
|
3266
|
-
return "var(".concat((0, exports.objectPathToCssVarIdentifier)(path), ", ").concat(value, ")");
|
|
3267
|
-
};
|
|
3268
|
-
exports.objectPathToCssVarFunction = objectPathToCssVarFunction;
|
|
3269
|
-
var objectPathToCssVarIdentifier = function(path) {
|
|
3270
|
-
return "--".concat(path.map(lodash_kebabcase_1.default).join("-"));
|
|
3271
|
-
};
|
|
3272
|
-
exports.objectPathToCssVarIdentifier = objectPathToCssVarIdentifier;
|
|
3273
|
-
}
|
|
3274
|
-
});
|
|
3275
|
-
|
|
3276
|
-
// ../design-tokens/dist/lib/addExtraThemeEntries.js
|
|
3277
|
-
var require_addExtraThemeEntries = __commonJS({
|
|
3278
|
-
"../design-tokens/dist/lib/addExtraThemeEntries.js"(exports) {
|
|
3279
|
-
"use strict";
|
|
3280
|
-
var __spreadArray = exports && exports.__spreadArray || function(to, from, pack) {
|
|
3281
|
-
if (pack || arguments.length === 2)
|
|
3282
|
-
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
3283
|
-
if (ar || !(i in from)) {
|
|
3284
|
-
if (!ar)
|
|
3285
|
-
ar = Array.prototype.slice.call(from, 0, i);
|
|
3286
|
-
ar[i] = from[i];
|
|
3287
|
-
}
|
|
3288
|
-
}
|
|
3289
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
3290
|
-
};
|
|
3291
|
-
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
3292
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
3293
|
-
};
|
|
3294
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3295
|
-
exports.addExtraThemeEntries = void 0;
|
|
3296
|
-
var color_string_1 = __importDefault(require_color_string());
|
|
3297
|
-
var cssVariables_1 = require_cssVariables();
|
|
3298
|
-
var addExtraThemeEntries = function(path, key, value, printValue, _a) {
|
|
3299
|
-
var _b;
|
|
3300
|
-
var augmentWithId = _a.augmentWithId;
|
|
3301
|
-
var colorRgb = typeof value === "string" ? color_string_1.default.get.rgb(value) : null;
|
|
3302
|
-
var result = (_b = {}, _b[key] = printValue(path, value), _b);
|
|
3303
|
-
if (colorRgb) {
|
|
3304
|
-
result[key] = printValue(path, value).toLowerCase();
|
|
3305
|
-
var rgbPath = __spreadArray(__spreadArray([], path, true), ["rgb"], false);
|
|
3306
|
-
var rgbTriple = printValue(rgbPath, colorRgb.slice(0, 3).join(", "));
|
|
3307
|
-
result["".concat(key, "-rgb")] = rgbTriple;
|
|
3308
|
-
if (augmentWithId) {
|
|
3309
|
-
result["".concat(key, "-rgb-id")] = (0, cssVariables_1.objectPathToCssVarIdentifier)(rgbPath);
|
|
3310
|
-
}
|
|
3311
|
-
}
|
|
3312
|
-
if (augmentWithId) {
|
|
3313
|
-
result["".concat(key, "-id")] = (0, cssVariables_1.objectPathToCssVarIdentifier)(path);
|
|
3314
|
-
}
|
|
3315
|
-
return result;
|
|
3316
|
-
};
|
|
3317
|
-
exports.addExtraThemeEntries = addExtraThemeEntries;
|
|
3318
|
-
}
|
|
3319
|
-
});
|
|
2915
|
+
// src/KaizenProvider/KaizenProvider.tsx
|
|
2916
|
+
var import_react2 = __toESM(require_react());
|
|
3320
2917
|
|
|
3321
|
-
//
|
|
3322
|
-
var
|
|
3323
|
-
"../design-tokens/dist/lib/mapLeafsOfObject.js"(exports) {
|
|
3324
|
-
"use strict";
|
|
3325
|
-
var __assign = exports && exports.__assign || function() {
|
|
3326
|
-
__assign = Object.assign || function(t) {
|
|
3327
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
3328
|
-
s = arguments[i];
|
|
3329
|
-
for (var p in s)
|
|
3330
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
3331
|
-
t[p] = s[p];
|
|
3332
|
-
}
|
|
3333
|
-
return t;
|
|
3334
|
-
};
|
|
3335
|
-
return __assign.apply(this, arguments);
|
|
3336
|
-
};
|
|
3337
|
-
var __spreadArray = exports && exports.__spreadArray || function(to, from, pack) {
|
|
3338
|
-
if (pack || arguments.length === 2)
|
|
3339
|
-
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
3340
|
-
if (ar || !(i in from)) {
|
|
3341
|
-
if (!ar)
|
|
3342
|
-
ar = Array.prototype.slice.call(from, 0, i);
|
|
3343
|
-
ar[i] = from[i];
|
|
3344
|
-
}
|
|
3345
|
-
}
|
|
3346
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
3347
|
-
};
|
|
3348
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3349
|
-
exports.mapLeafsOfObject = void 0;
|
|
3350
|
-
function mapLeafsOfObject(object, mapper) {
|
|
3351
|
-
var recurser = function(currentPath, obj) {
|
|
3352
|
-
var handleEntry = function(key, value) {
|
|
3353
|
-
var pathToKey = __spreadArray(__spreadArray([], currentPath, true), [key], false);
|
|
3354
|
-
if (typeof value === "object" && value !== null && value !== void 0) {
|
|
3355
|
-
return recurser(pathToKey, value);
|
|
3356
|
-
}
|
|
3357
|
-
return mapper(pathToKey, value);
|
|
3358
|
-
};
|
|
3359
|
-
return Object.entries(obj).reduce(function(acc, _a) {
|
|
3360
|
-
var _b;
|
|
3361
|
-
var nextKey = _a[0], nextValue = _a[1];
|
|
3362
|
-
return __assign(__assign({}, acc), (_b = {}, _b[nextKey] = handleEntry(nextKey, nextValue), _b));
|
|
3363
|
-
}, {});
|
|
3364
|
-
};
|
|
3365
|
-
return recurser([], object);
|
|
3366
|
-
}
|
|
3367
|
-
exports.mapLeafsOfObject = mapLeafsOfObject;
|
|
3368
|
-
}
|
|
3369
|
-
});
|
|
2918
|
+
// src/KaizenProvider/ThemeProvider/ThemeProvider.tsx
|
|
2919
|
+
var import_react = __toESM(require_react());
|
|
3370
2920
|
|
|
3371
|
-
// ../design-tokens/
|
|
3372
|
-
var
|
|
3373
|
-
"../design-tokens/dist/lib/makeCssVariableDefinitionsMap.js"(exports) {
|
|
3374
|
-
"use strict";
|
|
3375
|
-
var __assign = exports && exports.__assign || function() {
|
|
3376
|
-
__assign = Object.assign || function(t) {
|
|
3377
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
3378
|
-
s = arguments[i];
|
|
3379
|
-
for (var p in s)
|
|
3380
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
3381
|
-
t[p] = s[p];
|
|
3382
|
-
}
|
|
3383
|
-
return t;
|
|
3384
|
-
};
|
|
3385
|
-
return __assign.apply(this, arguments);
|
|
3386
|
-
};
|
|
3387
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3388
|
-
exports.makeCssVariableDefinitionsMap = void 0;
|
|
3389
|
-
var addExtraThemeEntries_1 = require_addExtraThemeEntries();
|
|
3390
|
-
var cssVariables_1 = require_cssVariables();
|
|
3391
|
-
var mapLeafsOfObject_1 = require_mapLeafsOfObject();
|
|
3392
|
-
function makeCssVariableDefinitionsMap2(theme) {
|
|
3393
|
-
var accumulatedCssVariables = {};
|
|
3394
|
-
(0, mapLeafsOfObject_1.mapLeafsOfObject)(theme, function(path, value) {
|
|
3395
|
-
var key = (0, cssVariables_1.objectPathToCssVarIdentifier)(path);
|
|
3396
|
-
var nextCssVariables = (0, addExtraThemeEntries_1.addExtraThemeEntries)(path, key, value, function(_, v) {
|
|
3397
|
-
return "".concat(v);
|
|
3398
|
-
}, { augmentWithId: false });
|
|
3399
|
-
accumulatedCssVariables = __assign(__assign({}, accumulatedCssVariables), nextCssVariables);
|
|
3400
|
-
});
|
|
3401
|
-
return accumulatedCssVariables;
|
|
3402
|
-
}
|
|
3403
|
-
exports.makeCssVariableDefinitionsMap = makeCssVariableDefinitionsMap2;
|
|
3404
|
-
}
|
|
3405
|
-
});
|
|
2921
|
+
// ../design-tokens/src/lib/addExtraThemeEntries.ts
|
|
2922
|
+
var import_color_string = __toESM(require_color_string());
|
|
3406
2923
|
|
|
3407
|
-
// ../design-tokens/
|
|
3408
|
-
var
|
|
3409
|
-
|
|
3410
|
-
"use strict";
|
|
3411
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3412
|
-
exports.ThemeManager = void 0;
|
|
3413
|
-
var makeCssVariableDefinitionsMap_1 = require_makeCssVariableDefinitionsMap();
|
|
3414
|
-
var ThemeManager3 = (
|
|
3415
|
-
/** @class */
|
|
3416
|
-
function() {
|
|
3417
|
-
function ThemeManager4(theme, rootElementId, apply) {
|
|
3418
|
-
if (rootElementId === void 0) {
|
|
3419
|
-
rootElementId = "";
|
|
3420
|
-
}
|
|
3421
|
-
if (apply === void 0) {
|
|
3422
|
-
apply = true;
|
|
3423
|
-
}
|
|
3424
|
-
var _this = this;
|
|
3425
|
-
this.themeChangeListeners = [];
|
|
3426
|
-
this.rootElement = null;
|
|
3427
|
-
this.getRootElement = function() {
|
|
3428
|
-
return _this.rootElement;
|
|
3429
|
-
};
|
|
3430
|
-
this.getRootElementId = function() {
|
|
3431
|
-
return _this.rootElementId;
|
|
3432
|
-
};
|
|
3433
|
-
this.getCurrentTheme = function() {
|
|
3434
|
-
return _this.theme;
|
|
3435
|
-
};
|
|
3436
|
-
this.setRootElement = function(element) {
|
|
3437
|
-
_this.rootElement = element;
|
|
3438
|
-
};
|
|
3439
|
-
this.setRootElementId = function(rootElementId2) {
|
|
3440
|
-
return _this.rootElementId = rootElementId2;
|
|
3441
|
-
};
|
|
3442
|
-
this.setAndApplyTheme = function(theme2, force) {
|
|
3443
|
-
if (!force) {
|
|
3444
|
-
if (_this.theme === theme2)
|
|
3445
|
-
return;
|
|
3446
|
-
}
|
|
3447
|
-
_this.theme = theme2;
|
|
3448
|
-
_this.applyCurrentTheme();
|
|
3449
|
-
_this.notifyThemeChangeListeners(theme2);
|
|
3450
|
-
};
|
|
3451
|
-
this.addThemeChangeListener = function(listener) {
|
|
3452
|
-
_this.themeChangeListeners.push(listener);
|
|
3453
|
-
};
|
|
3454
|
-
this.removeThemeChangeListener = function(listener) {
|
|
3455
|
-
_this.themeChangeListeners = _this.themeChangeListeners.filter(function(l) {
|
|
3456
|
-
return l !== listener;
|
|
3457
|
-
});
|
|
3458
|
-
};
|
|
3459
|
-
this.applyCurrentTheme = function() {
|
|
3460
|
-
var _a;
|
|
3461
|
-
if (typeof window !== "undefined") {
|
|
3462
|
-
_this.setRootElement((_a = document.getElementById(_this.rootElementId)) !== null && _a !== void 0 ? _a : document.documentElement);
|
|
3463
|
-
var cssVariableDefinitions = (0, makeCssVariableDefinitionsMap_1.makeCssVariableDefinitionsMap)(_this.theme);
|
|
3464
|
-
Object.entries(cssVariableDefinitions).forEach(function(_a2) {
|
|
3465
|
-
var _b;
|
|
3466
|
-
var key = _a2[0], value = _a2[1];
|
|
3467
|
-
(_b = _this.rootElement) === null || _b === void 0 ? void 0 : _b.style.setProperty(key, value);
|
|
3468
|
-
});
|
|
3469
|
-
}
|
|
3470
|
-
};
|
|
3471
|
-
this.notifyThemeChangeListeners = function(theme2) {
|
|
3472
|
-
_this.themeChangeListeners.forEach(function(listener) {
|
|
3473
|
-
return listener(theme2);
|
|
3474
|
-
});
|
|
3475
|
-
};
|
|
3476
|
-
this.theme = theme;
|
|
3477
|
-
this.rootElementId = rootElementId;
|
|
3478
|
-
if (apply)
|
|
3479
|
-
this.applyCurrentTheme();
|
|
3480
|
-
}
|
|
3481
|
-
return ThemeManager4;
|
|
3482
|
-
}()
|
|
3483
|
-
);
|
|
3484
|
-
exports.ThemeManager = ThemeManager3;
|
|
3485
|
-
}
|
|
3486
|
-
});
|
|
2924
|
+
// ../design-tokens/src/lib/cssVariables.ts
|
|
2925
|
+
var import_lodash = __toESM(require_lodash());
|
|
2926
|
+
var objectPathToCssVarIdentifier = (path) => `--${path.map(import_lodash.default).join("-")}`;
|
|
3487
2927
|
|
|
3488
|
-
// ../design-tokens/
|
|
3489
|
-
var
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
k2 = k;
|
|
3505
|
-
o[k2] = m[k];
|
|
3506
|
-
});
|
|
3507
|
-
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
|
|
3508
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
3509
|
-
} : function(o, v) {
|
|
3510
|
-
o["default"] = v;
|
|
3511
|
-
});
|
|
3512
|
-
var __importStar = exports && exports.__importStar || function(mod) {
|
|
3513
|
-
if (mod && mod.__esModule)
|
|
3514
|
-
return mod;
|
|
3515
|
-
var result = {};
|
|
3516
|
-
if (mod != null) {
|
|
3517
|
-
for (var k in mod)
|
|
3518
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
3519
|
-
__createBinding(result, mod, k);
|
|
3520
|
-
}
|
|
3521
|
-
__setModuleDefault(result, mod);
|
|
3522
|
-
return result;
|
|
3523
|
-
};
|
|
3524
|
-
var __rest = exports && exports.__rest || function(s, e) {
|
|
3525
|
-
var t = {};
|
|
3526
|
-
for (var p in s)
|
|
3527
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
3528
|
-
t[p] = s[p];
|
|
3529
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
3530
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
3531
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
3532
|
-
t[p[i]] = s[p[i]];
|
|
3533
|
-
}
|
|
3534
|
-
return t;
|
|
3535
|
-
};
|
|
3536
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3537
|
-
exports.useTheme = exports.ThemeProvider = exports.ThemeContext = void 0;
|
|
3538
|
-
var react_1 = __importStar(require_react());
|
|
3539
|
-
var __1 = require_dist();
|
|
3540
|
-
exports.ThemeContext = react_1.default.createContext(__1.defaultTheme);
|
|
3541
|
-
var ThemeProvider2 = function(_a) {
|
|
3542
|
-
var themeManager = _a.themeManager, props = __rest(_a, ["themeManager"]);
|
|
3543
|
-
var themeManagerInstance = (0, react_1.useState)(function() {
|
|
3544
|
-
return themeManager || new __1.ThemeManager(__1.defaultTheme);
|
|
3545
|
-
})[0];
|
|
3546
|
-
var _b = react_1.default.useState(themeManagerInstance.getCurrentTheme()), theme = _b[0], setTheme = _b[1];
|
|
3547
|
-
react_1.default.useEffect(function() {
|
|
3548
|
-
var cancelled = false;
|
|
3549
|
-
var listener = function(newTheme) {
|
|
3550
|
-
if (!cancelled)
|
|
3551
|
-
setTheme(newTheme);
|
|
3552
|
-
};
|
|
3553
|
-
themeManagerInstance.addThemeChangeListener(listener);
|
|
3554
|
-
return function() {
|
|
3555
|
-
cancelled = true;
|
|
3556
|
-
themeManagerInstance.removeThemeChangeListener(listener);
|
|
3557
|
-
};
|
|
3558
|
-
}, []);
|
|
3559
|
-
return react_1.default.createElement(
|
|
3560
|
-
react_1.default.Fragment,
|
|
3561
|
-
null,
|
|
3562
|
-
react_1.default.createElement(exports.ThemeContext.Provider, { value: theme }, props.children),
|
|
3563
|
-
react_1.default.createElement("link", { rel: "preload", href: "https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-bold.woff2", as: "font", type: "font/woff2", crossOrigin: "anonymous" }),
|
|
3564
|
-
react_1.default.createElement("link", { rel: "preload", href: "https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-demi-bold.woff2", as: "font", type: "font/woff2", crossOrigin: "anonymous" }),
|
|
3565
|
-
react_1.default.createElement("link", { rel: "preload", href: "https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-medium.woff2", as: "font", type: "font/woff2", crossOrigin: "anonymous" }),
|
|
3566
|
-
react_1.default.createElement("link", { rel: "preload", href: "https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-regular.woff2", as: "font", type: "font/woff2", crossOrigin: "anonymous" }),
|
|
3567
|
-
react_1.default.createElement("link", { rel: "preload", href: "https://d1e7r7b0lb8p4d.cloudfront.net/fonts/tiempos/tiempos-headline-bold.woff2", as: "font", type: "font/woff2", crossOrigin: "anonymous" })
|
|
3568
|
-
);
|
|
3569
|
-
};
|
|
3570
|
-
exports.ThemeProvider = ThemeProvider2;
|
|
3571
|
-
var useTheme2 = function() {
|
|
3572
|
-
return react_1.default.useContext(exports.ThemeContext);
|
|
3573
|
-
};
|
|
3574
|
-
exports.useTheme = useTheme2;
|
|
2928
|
+
// ../design-tokens/src/lib/addExtraThemeEntries.ts
|
|
2929
|
+
var addExtraThemeEntries = (path, key, value, printValue, {
|
|
2930
|
+
augmentWithId
|
|
2931
|
+
}) => {
|
|
2932
|
+
const colorRgb = typeof value === "string" ? import_color_string.default.get.rgb(value) : null;
|
|
2933
|
+
const result = {
|
|
2934
|
+
[key]: printValue(path, value)
|
|
2935
|
+
};
|
|
2936
|
+
if (colorRgb) {
|
|
2937
|
+
result[key] = printValue(path, value).toLowerCase();
|
|
2938
|
+
const rgbPath = [...path, "rgb"];
|
|
2939
|
+
const rgbTriple = printValue(rgbPath, colorRgb.slice(0, 3).join(", "));
|
|
2940
|
+
result[`${key}-rgb`] = rgbTriple;
|
|
2941
|
+
if (augmentWithId) {
|
|
2942
|
+
result[`${key}-rgb-id`] = objectPathToCssVarIdentifier(rgbPath);
|
|
2943
|
+
}
|
|
3575
2944
|
}
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
// ../design-tokens/dist/react/index.js
|
|
3579
|
-
var require_react2 = __commonJS({
|
|
3580
|
-
"../design-tokens/dist/react/index.js"(exports) {
|
|
3581
|
-
"use strict";
|
|
3582
|
-
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
3583
|
-
if (k2 === void 0)
|
|
3584
|
-
k2 = k;
|
|
3585
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
3586
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
3587
|
-
desc = { enumerable: true, get: function() {
|
|
3588
|
-
return m[k];
|
|
3589
|
-
} };
|
|
3590
|
-
}
|
|
3591
|
-
Object.defineProperty(o, k2, desc);
|
|
3592
|
-
} : function(o, m, k, k2) {
|
|
3593
|
-
if (k2 === void 0)
|
|
3594
|
-
k2 = k;
|
|
3595
|
-
o[k2] = m[k];
|
|
3596
|
-
});
|
|
3597
|
-
var __exportStar = exports && exports.__exportStar || function(m, exports2) {
|
|
3598
|
-
for (var p in m)
|
|
3599
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p))
|
|
3600
|
-
__createBinding(exports2, m, p);
|
|
3601
|
-
};
|
|
3602
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3603
|
-
__exportStar(require_ThemeProvider(), exports);
|
|
2945
|
+
if (augmentWithId) {
|
|
2946
|
+
result[`${key}-id`] = objectPathToCssVarIdentifier(path);
|
|
3604
2947
|
}
|
|
3605
|
-
|
|
2948
|
+
return result;
|
|
2949
|
+
};
|
|
3606
2950
|
|
|
3607
|
-
// ../design-tokens/
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
var cssVariables_1 = require_cssVariables();
|
|
3615
|
-
var mapLeafsOfObject_1 = require_mapLeafsOfObject();
|
|
3616
|
-
function makeCSSVariableTheme(theme, printValue) {
|
|
3617
|
-
if (printValue === void 0) {
|
|
3618
|
-
printValue = cssVariables_1.objectPathToCssVarFunction;
|
|
2951
|
+
// ../design-tokens/src/lib/mapLeafsOfObject.ts
|
|
2952
|
+
function mapLeafsOfObject(object, mapper) {
|
|
2953
|
+
const recurser = (currentPath, obj) => {
|
|
2954
|
+
const handleEntry = (key, value) => {
|
|
2955
|
+
const pathToKey = [...currentPath, key];
|
|
2956
|
+
if (typeof value === "object" && value !== null && value !== void 0) {
|
|
2957
|
+
return recurser(pathToKey, value);
|
|
3619
2958
|
}
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
};
|
|
3633
|
-
(0, mapLeafsOfObject_1.mapLeafsOfObject)(theme, mapper);
|
|
3634
|
-
return augmentedTheme;
|
|
3635
|
-
}
|
|
3636
|
-
exports.makeCSSVariableTheme = makeCSSVariableTheme;
|
|
3637
|
-
}
|
|
3638
|
-
});
|
|
2959
|
+
return mapper(pathToKey, value);
|
|
2960
|
+
};
|
|
2961
|
+
return Object.entries(obj).reduce(
|
|
2962
|
+
(acc, [nextKey, nextValue]) => ({
|
|
2963
|
+
...acc,
|
|
2964
|
+
[nextKey]: handleEntry(nextKey, nextValue)
|
|
2965
|
+
}),
|
|
2966
|
+
{}
|
|
2967
|
+
);
|
|
2968
|
+
};
|
|
2969
|
+
return recurser([], object);
|
|
2970
|
+
}
|
|
3639
2971
|
|
|
3640
|
-
// ../design-tokens/
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
if (k2 === void 0)
|
|
3656
|
-
k2 = k;
|
|
3657
|
-
o[k2] = m[k];
|
|
3658
|
-
});
|
|
3659
|
-
var __exportStar = exports && exports.__exportStar || function(m, exports2) {
|
|
3660
|
-
for (var p in m)
|
|
3661
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p))
|
|
3662
|
-
__createBinding(exports2, m, p);
|
|
2972
|
+
// ../design-tokens/src/lib/makeCssVariableDefinitionsMap.ts
|
|
2973
|
+
function makeCssVariableDefinitionsMap(theme) {
|
|
2974
|
+
let accumulatedCssVariables = {};
|
|
2975
|
+
mapLeafsOfObject(theme, (path, value) => {
|
|
2976
|
+
const key = objectPathToCssVarIdentifier(path);
|
|
2977
|
+
const nextCssVariables = addExtraThemeEntries(
|
|
2978
|
+
path,
|
|
2979
|
+
key,
|
|
2980
|
+
value,
|
|
2981
|
+
(_, v) => `${v}`,
|
|
2982
|
+
{ augmentWithId: false }
|
|
2983
|
+
);
|
|
2984
|
+
accumulatedCssVariables = {
|
|
2985
|
+
...accumulatedCssVariables,
|
|
2986
|
+
...nextCssVariables
|
|
3663
2987
|
};
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
__exportStar(require_types(), exports);
|
|
3668
|
-
__exportStar(require_ThemeManager(), exports);
|
|
3669
|
-
__exportStar(require_react2(), exports);
|
|
3670
|
-
var makeCssVariableDefinitionsMap_1 = require_makeCssVariableDefinitionsMap();
|
|
3671
|
-
Object.defineProperty(exports, "makeCssVariableDefinitionsMap", { enumerable: true, get: function() {
|
|
3672
|
-
return makeCssVariableDefinitionsMap_1.makeCssVariableDefinitionsMap;
|
|
3673
|
-
} });
|
|
3674
|
-
var makeCssVariableTheme_1 = require_makeCssVariableTheme();
|
|
3675
|
-
Object.defineProperty(exports, "makeCSSVariableTheme", { enumerable: true, get: function() {
|
|
3676
|
-
return makeCssVariableTheme_1.makeCSSVariableTheme;
|
|
3677
|
-
} });
|
|
3678
|
-
var mapLeafsOfObject_1 = require_mapLeafsOfObject();
|
|
3679
|
-
Object.defineProperty(exports, "mapLeafsOfObject", { enumerable: true, get: function() {
|
|
3680
|
-
return mapLeafsOfObject_1.mapLeafsOfObject;
|
|
3681
|
-
} });
|
|
3682
|
-
}
|
|
3683
|
-
});
|
|
3684
|
-
|
|
3685
|
-
// src/KaizenProvider/KaizenProvider.tsx
|
|
3686
|
-
var import_react2 = __toESM(require_react());
|
|
3687
|
-
|
|
3688
|
-
// src/KaizenProvider/ThemeProvider/ThemeProvider.tsx
|
|
3689
|
-
var import_react = __toESM(require_react());
|
|
2988
|
+
});
|
|
2989
|
+
return accumulatedCssVariables;
|
|
2990
|
+
}
|
|
3690
2991
|
|
|
3691
2992
|
// src/KaizenProvider/ThemeProvider/ThemeManager.ts
|
|
3692
|
-
var import_design_tokens = __toESM(require_dist());
|
|
3693
2993
|
var ThemeManager = class {
|
|
3694
2994
|
constructor(theme, rootElementId = "", apply = true) {
|
|
3695
2995
|
this.themeChangeListeners = [];
|
|
@@ -3723,7 +3023,7 @@
|
|
|
3723
3023
|
this.setRootElement(
|
|
3724
3024
|
document.getElementById(this.rootElementId) ?? document.documentElement
|
|
3725
3025
|
);
|
|
3726
|
-
const cssVariableDefinitions =
|
|
3026
|
+
const cssVariableDefinitions = makeCssVariableDefinitionsMap(this.theme);
|
|
3727
3027
|
Object.entries(cssVariableDefinitions).forEach(([key, value]) => {
|
|
3728
3028
|
var _a;
|
|
3729
3029
|
(_a = this.rootElement) == null ? void 0 : _a.style.setProperty(key, value);
|