@kaizen/components 1.4.22-canary.0 → 1.4.22
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 +53 -0
- package/dist/iife/ActionButton.module-LHTIA2D3.scss +10 -0
- package/dist/iife/Avatar.module-GUG7HXMZ.scss +165 -0
- package/dist/iife/AvatarGroup.module-QAVTI4PR.scss +85 -0
- package/dist/iife/Base.module-DJPJNUQ5.scss +80 -0
- package/dist/iife/BaseButton.module-4FKZZLVI.scss +103 -0
- package/dist/iife/Brand.module-FCHTLJQK.scss +4 -0
- package/dist/iife/BrandMoment.module-4P7H2D3W.scss +196 -0
- package/dist/iife/Calendar.module-H7XBQXTA.scss +211 -0
- package/dist/iife/CalendarRange.module-QWW624PJ.scss +64 -0
- package/dist/iife/CalendarSingle.module-N2P3DWLM.scss +18 -0
- package/dist/iife/Card.module-VEUOO2LT.scss +38 -0
- package/dist/iife/Collapsible.module-ZJNVWQIB.scss +119 -0
- package/dist/iife/CollapsibleGroup.module-UR2SIYLJ.scss +10 -0
- package/dist/iife/ConfirmationModal.module-RN2H7KPL.scss +157 -0
- package/dist/iife/Content.module-6CTLBAHR.scss +25 -0
- package/dist/iife/ContextModal.module-TTFVPUPU.scss +77 -0
- package/dist/iife/DateInput.module-YBXARKD2.scss +3 -0
- package/dist/iife/DateInputDescription.module-SGAJNB7K.scss +19 -0
- package/dist/iife/DateInputField.module-2LG4I24X.scss +5 -0
- package/dist/iife/DateInputWithIconButton.module-RSUEQ345.scss +53 -0
- package/dist/iife/DateRangePicker.module-EIUGUIIA.scss +115 -0
- package/dist/iife/Dropdown.module-4CIBZTRZ-4CIBZTRZ.scss +100 -0
- package/dist/iife/DropdownButton.module-WZ6FRRPS.scss +44 -0
- package/dist/iife/EditableRichTextContent.module-N2SFSI5C.scss +25 -0
- package/dist/iife/EmptyState.module-DOSURL5X.scss +156 -0
- package/dist/iife/ExpertAdviceCollapsible.module-L554JCXB.scss +47 -0
- package/dist/iife/FilterMenuButton.module-26EL5K3H.scss +19 -0
- package/dist/iife/FilterSplitButton.module-LMMEHFXQ.scss +133 -0
- package/dist/iife/FloatingCalendarWrapper.module-62NLSOUD.scss +12 -0
- package/dist/iife/GenericModal.module-DW6NSOGA.scss +110 -0
- package/dist/iife/GenericModalSection.module-MJ4MTMSP.scss +7 -0
- package/dist/iife/GenericNotification.module-DAERSOHE.scss +115 -0
- package/dist/iife/GenericTile.module-ZXQ4XWP4.scss +136 -0
- package/dist/iife/GuidanceBlock.module-FAHJFZMK.scss +324 -0
- package/dist/iife/HeroCard.module-LXHTKJTW.scss +106 -0
- package/dist/iife/Icon.module-VD7NKLAR-VD7NKLAR.scss +72 -0
- package/dist/iife/InputEditModal.module-X3TLJPFO.scss +36 -0
- package/dist/iife/KaizenProvider/ThemeProvider/ThemeManager.js +2968 -62
- package/dist/iife/KaizenProvider/ThemeProvider/ThemeManager.spec.js +2968 -369
- package/dist/iife/KaizenProvider/ThemeProvider/index.js +764 -64
- package/dist/iife/KaizenProvider/index.js +767 -67
- package/dist/iife/Layout.module-MZ6JYT46-MZ6JYT46.scss +58 -0
- package/dist/iife/LikertScaleLegacy.module-JYCJ5CON.scss +298 -0
- package/dist/iife/LinkPopover-7NCAPCQ3.scss +22 -0
- package/dist/iife/MainActions.module-T43D33YO.scss +16 -0
- package/dist/iife/Menu.module-N76N74LN-N76N74LN.scss +111 -0
- package/dist/iife/MenuDropdown.module-DYV6JLT6.scss +26 -0
- package/dist/iife/MenuItem.module-LD7ZYX4T.scss +99 -0
- package/dist/iife/MenuList.module-44RMG7CF.scss +35 -0
- package/dist/iife/MobileActions.module-Z6PD4VIR.scss +198 -0
- package/dist/iife/ModalAccessibleDescription.module-NIJNKHHO.scss +3 -0
- package/dist/iife/ModalAccessibleLabel.module-NG26HDU4.scss +58 -0
- package/dist/iife/ModalFooter.module-TK3HAXMB.scss +69 -0
- package/dist/iife/ModalHeader.module-6SW7KZ22.scss +23 -0
- package/dist/iife/MultiActionTile.module-4Y2NA4H6.scss +3 -0
- package/dist/iife/NavigationTabs.module-VDIXMFXJ.scss +108 -0
- package/dist/iife/Pagination.module-U5S6WZ5K.scss +124 -0
- package/dist/iife/Popover.module-5ZQUBHXG.scss +264 -0
- package/dist/iife/ProgressBar.module-RL2UWVEH.scss +91 -0
- package/dist/iife/RichTextContent.module-4HA44IM4.scss +5 -0
- package/dist/iife/RichTextEditor.module-ZHXEK4XJ.scss +97 -0
- package/dist/iife/RoadblockModal.module-KVZCYLF2.scss +45 -0
- package/dist/iife/Select.module-6LHWOGGY.scss +391 -0
- package/dist/iife/Skirt.module-S3GPHMMQ.scss +32 -0
- package/dist/iife/SkirtCard.module-6YQ4PS2K.scss +16 -0
- package/dist/iife/SplitButton.module-WMGCIDDK.scss +4 -0
- package/dist/iife/StatelessMenu.module-SX2T5P4I.scss +3 -0
- package/dist/iife/Table.module-LCDRXCBP.scss +233 -0
- package/dist/iife/Tabs.module-BUPNPYW4.scss +172 -0
- package/dist/iife/Tag.module-T6PQJLSW.scss +268 -0
- package/dist/iife/Text.module-SXGFOHGJ-SXGFOHGJ.scss +173 -0
- package/dist/iife/TileGrid.module-NJQFVYRS.scss +23 -0
- package/dist/iife/TimeField.module-B4WNYAUE.scss +75 -0
- package/dist/iife/TimeSegment.module-TKOTKIXH.scss +53 -0
- package/dist/iife/TitleBlockMenuItem.module-LWVSMJTH.scss +99 -0
- package/dist/iife/TitleBlockZen.module-OK3QIC4Y.scss +695 -0
- package/dist/iife/ToastNotificationsList.module-EHDVGWDW.scss +26 -0
- package/dist/iife/ToggleIconButton.module-COM67MDC.scss +132 -0
- package/dist/iife/Toolbar.module-3BZYZE6H.scss +44 -0
- package/dist/iife/Toolbar.module-BP3GTBGW.scss +6 -0
- package/dist/iife/ToolbarSection.module-LZTHWGO7.scss +15 -0
- package/dist/iife/Well.module-4TIRC3HQ.scss +73 -0
- package/dist/iife/__future__/index.js +915 -594
- package/dist/iife/add-link.icon-2JH25LOT.svg +3 -0
- package/dist/iife/arrow-left.icon-RWWYLDT3.svg +17 -0
- package/dist/iife/arrow-right.icon-3ZGNCW3O.svg +17 -0
- package/dist/iife/bold.icon-FEZQ56AP.svg +3 -0
- package/dist/iife/bulletted-list.icon-ZDSXNO72.svg +3 -0
- package/dist/iife/caution.icon-BHBJMNMA.svg +1 -0
- package/dist/iife/clear-white.icon-O3ZK5Z2K.svg +18 -0
- package/dist/iife/close.icon-7H6W45MB.svg +1 -0
- package/dist/iife/date-start.icon-NV4EVRXI.svg +17 -0
- package/dist/iife/decrease-indent.icon-VAYQUHQG.svg +3 -0
- package/dist/iife/edit.icon-YJ4EIXHJ.svg +17 -0
- package/dist/iife/ellipsis.icon-DECY5OPU.svg +17 -0
- package/dist/iife/exclamation.icon-FJBHW7NP.svg +17 -0
- package/dist/iife/external-link.icon-7FNRTMN2.svg +17 -0
- package/dist/iife/hamburger.icon-YHQT7RB6.svg +17 -0
- package/dist/iife/increase-indent.icon-3XUPJEBD.svg +3 -0
- package/dist/iife/index.js +115500 -1173
- package/dist/iife/information-white.icon-3DXZDERC.svg +19 -0
- package/dist/iife/information.icon-5LHKLG66.svg +17 -0
- package/dist/iife/italics.icon-WWQDZP3S.svg +3 -0
- package/dist/iife/meatballs.icon-DECY5OPU.svg +17 -0
- package/dist/iife/numbered-list.icon-WPE4LE5R.svg +3 -0
- package/dist/iife/remove-link.icon-QMFTP7WO.svg +3 -0
- package/dist/iife/sort-ascending.icon-E24DTSHO.svg +17 -0
- package/dist/iife/sort-descending.icon-4SMPW2PG.svg +17 -0
- package/dist/iife/success-white.icon-VXFA2PUU.svg +18 -0
- package/dist/iife/underline.icon-ACYVVVSD.svg +3 -0
- package/dist/iife/user.icon-24JPACDP.svg +17 -0
- package/dist/index.d.ts +41 -1
- package/dist/index.js +54 -1
- package/dist/styles.css +98 -0
- package/package.json +32 -32
- /package/dist/iife/{Margin.module-DJURK5K7.scss → Margin.module-DJURK5K7-DJURK5K7.scss} +0 -0
- /package/dist/iife/{Padding.module-QSNUEZBU.scss → Padding.module-QSNUEZBU-QSNUEZBU.scss} +0 -0
- /package/dist/iife/{SkipLink.module-KAZA7PAL.scss → SkipLink.module-KAZA7PAL-KAZA7PAL.scss} +0 -0
- /package/dist/iife/{VisuallyHidden.module-E5JUNEF5.scss → VisuallyHidden.module-E5JUNEF5-E5JUNEF5.scss} +0 -0
|
@@ -2208,6 +2208,346 @@
|
|
|
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
|
+
|
|
2211
2551
|
// ../../node_modules/color-name/index.js
|
|
2212
2552
|
var require_color_name = __commonJS({
|
|
2213
2553
|
"../../node_modules/color-name/index.js"(exports, module) {
|
|
@@ -2912,84 +3252,444 @@
|
|
|
2912
3252
|
}
|
|
2913
3253
|
});
|
|
2914
3254
|
|
|
2915
|
-
//
|
|
2916
|
-
var
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
3255
|
+
// ../design-tokens/dist/lib/cssVariables.js
|
|
3256
|
+
var require_cssVariables = __commonJS({
|
|
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
|
+
});
|
|
2920
3275
|
|
|
2921
|
-
// ../design-tokens/
|
|
2922
|
-
var
|
|
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
|
+
});
|
|
2923
3320
|
|
|
2924
|
-
// ../design-tokens/
|
|
2925
|
-
var
|
|
2926
|
-
|
|
3321
|
+
// ../design-tokens/dist/lib/mapLeafsOfObject.js
|
|
3322
|
+
var require_mapLeafsOfObject = __commonJS({
|
|
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
|
+
});
|
|
2927
3370
|
|
|
2928
|
-
// ../design-tokens/
|
|
2929
|
-
var
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
3371
|
+
// ../design-tokens/dist/lib/makeCssVariableDefinitionsMap.js
|
|
3372
|
+
var require_makeCssVariableDefinitionsMap = __commonJS({
|
|
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;
|
|
2943
3402
|
}
|
|
3403
|
+
exports.makeCssVariableDefinitionsMap = makeCssVariableDefinitionsMap2;
|
|
3404
|
+
}
|
|
3405
|
+
});
|
|
3406
|
+
|
|
3407
|
+
// ../design-tokens/dist/ThemeManager.js
|
|
3408
|
+
var require_ThemeManager = __commonJS({
|
|
3409
|
+
"../design-tokens/dist/ThemeManager.js"(exports) {
|
|
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;
|
|
2944
3485
|
}
|
|
2945
|
-
|
|
2946
|
-
|
|
3486
|
+
});
|
|
3487
|
+
|
|
3488
|
+
// ../design-tokens/dist/react/ThemeProvider.js
|
|
3489
|
+
var require_ThemeProvider = __commonJS({
|
|
3490
|
+
"../design-tokens/dist/react/ThemeProvider.js"(exports) {
|
|
3491
|
+
"use strict";
|
|
3492
|
+
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
3493
|
+
if (k2 === void 0)
|
|
3494
|
+
k2 = k;
|
|
3495
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
3496
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
3497
|
+
desc = { enumerable: true, get: function() {
|
|
3498
|
+
return m[k];
|
|
3499
|
+
} };
|
|
3500
|
+
}
|
|
3501
|
+
Object.defineProperty(o, k2, desc);
|
|
3502
|
+
} : function(o, m, k, k2) {
|
|
3503
|
+
if (k2 === void 0)
|
|
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;
|
|
2947
3575
|
}
|
|
2948
|
-
|
|
2949
|
-
};
|
|
3576
|
+
});
|
|
2950
3577
|
|
|
2951
|
-
// ../design-tokens/
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
if (
|
|
2957
|
-
|
|
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
|
+
} };
|
|
2958
3590
|
}
|
|
2959
|
-
|
|
2960
|
-
}
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
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);
|
|
3604
|
+
}
|
|
3605
|
+
});
|
|
2971
3606
|
|
|
2972
|
-
// ../design-tokens/
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
3607
|
+
// ../design-tokens/dist/lib/makeCssVariableTheme.js
|
|
3608
|
+
var require_makeCssVariableTheme = __commonJS({
|
|
3609
|
+
"../design-tokens/dist/lib/makeCssVariableTheme.js"(exports) {
|
|
3610
|
+
"use strict";
|
|
3611
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3612
|
+
exports.makeCSSVariableTheme = void 0;
|
|
3613
|
+
var addExtraThemeEntries_1 = require_addExtraThemeEntries();
|
|
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;
|
|
3619
|
+
}
|
|
3620
|
+
var augmentedTheme = {};
|
|
3621
|
+
var mapper = function(leafPath, value) {
|
|
3622
|
+
var leafKey = leafPath[leafPath.length - 1];
|
|
3623
|
+
var pathWithoutLast = leafPath.slice(0, leafPath.length - 1);
|
|
3624
|
+
var leafObject = pathWithoutLast.reduce(function(child, segment) {
|
|
3625
|
+
return child[segment] || (child[segment] = {});
|
|
3626
|
+
}, augmentedTheme);
|
|
3627
|
+
if (!leafKey) {
|
|
3628
|
+
throw new Error("leafKey is undefined");
|
|
3629
|
+
}
|
|
3630
|
+
var cssVariablesOfToken = (0, addExtraThemeEntries_1.addExtraThemeEntries)(leafPath, leafKey, value, printValue, { augmentWithId: true });
|
|
3631
|
+
Object.assign(leafObject, cssVariablesOfToken);
|
|
3632
|
+
};
|
|
3633
|
+
(0, mapLeafsOfObject_1.mapLeafsOfObject)(theme, mapper);
|
|
3634
|
+
return augmentedTheme;
|
|
3635
|
+
}
|
|
3636
|
+
exports.makeCSSVariableTheme = makeCSSVariableTheme;
|
|
3637
|
+
}
|
|
3638
|
+
});
|
|
3639
|
+
|
|
3640
|
+
// ../design-tokens/dist/index.js
|
|
3641
|
+
var require_dist = __commonJS({
|
|
3642
|
+
"../design-tokens/dist/index.js"(exports) {
|
|
3643
|
+
"use strict";
|
|
3644
|
+
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
3645
|
+
if (k2 === void 0)
|
|
3646
|
+
k2 = k;
|
|
3647
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
3648
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
3649
|
+
desc = { enumerable: true, get: function() {
|
|
3650
|
+
return m[k];
|
|
3651
|
+
} };
|
|
3652
|
+
}
|
|
3653
|
+
Object.defineProperty(o, k2, desc);
|
|
3654
|
+
} : function(o, m, k, k2) {
|
|
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);
|
|
2987
3663
|
};
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
3664
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3665
|
+
exports.mapLeafsOfObject = exports.makeCSSVariableTheme = exports.makeCssVariableDefinitionsMap = void 0;
|
|
3666
|
+
__exportStar(require_themes(), exports);
|
|
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());
|
|
2991
3690
|
|
|
2992
3691
|
// src/KaizenProvider/ThemeProvider/ThemeManager.ts
|
|
3692
|
+
var import_design_tokens = __toESM(require_dist());
|
|
2993
3693
|
var ThemeManager = class {
|
|
2994
3694
|
constructor(theme, rootElementId = "", apply = true) {
|
|
2995
3695
|
this.themeChangeListeners = [];
|
|
@@ -3023,7 +3723,7 @@
|
|
|
3023
3723
|
this.setRootElement(
|
|
3024
3724
|
document.getElementById(this.rootElementId) ?? document.documentElement
|
|
3025
3725
|
);
|
|
3026
|
-
const cssVariableDefinitions = makeCssVariableDefinitionsMap(this.theme);
|
|
3726
|
+
const cssVariableDefinitions = (0, import_design_tokens.makeCssVariableDefinitionsMap)(this.theme);
|
|
3027
3727
|
Object.entries(cssVariableDefinitions).forEach(([key, value]) => {
|
|
3028
3728
|
var _a;
|
|
3029
3729
|
(_a = this.rootElement) == null ? void 0 : _a.style.setProperty(key, value);
|