@purpur/library 9.5.0 → 9.7.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.json +66 -0
- package/CHANGELOG.md +29 -1
- package/dist/LICENSE.txt +27 -6
- package/dist/ThemeProvider-D7oXcAde.js +2 -0
- package/dist/{ThemeProvider-Dy771oix.js.map → ThemeProvider-D7oXcAde.js.map} +1 -1
- package/dist/ThemeProvider-DiDBfyFA.mjs +348 -0
- package/dist/{ThemeProvider-CkX-BNWN.mjs.map → ThemeProvider-DiDBfyFA.mjs.map} +1 -1
- package/dist/avatar-CYnD57o4.js +2 -0
- package/dist/avatar-CYnD57o4.js.map +1 -0
- package/dist/avatar-CzbDD1MK.mjs +27 -0
- package/dist/avatar-CzbDD1MK.mjs.map +1 -0
- package/dist/avatar.cjs.js +2 -0
- package/dist/avatar.cjs.js.map +1 -0
- package/dist/avatar.es.js +5 -0
- package/dist/avatar.es.js.map +1 -0
- package/dist/carousel-BIKcwvYz.mjs +1658 -0
- package/dist/carousel-BIKcwvYz.mjs.map +1 -0
- package/dist/carousel-DnSaLDZf.js +2 -0
- package/dist/carousel-DnSaLDZf.js.map +1 -0
- package/dist/carousel.cjs.js +1 -1
- package/dist/carousel.es.js +1 -1
- package/dist/color-dot-BEE5rKco.js +2 -0
- package/dist/color-dot-BEE5rKco.js.map +1 -0
- package/dist/color-dot-Dz9yzVX3.mjs +28 -0
- package/dist/color-dot-Dz9yzVX3.mjs.map +1 -0
- package/dist/color-dot.cjs.js +1 -1
- package/dist/color-dot.es.js +4 -3
- package/dist/comparison-table-0UDB2BTU.js +2 -0
- package/dist/comparison-table-0UDB2BTU.js.map +1 -0
- package/dist/comparison-table-CjTE-fHN.mjs +292 -0
- package/dist/comparison-table-CjTE-fHN.mjs.map +1 -0
- package/dist/comparison-table.cjs.js +1 -1
- package/dist/comparison-table.es.js +1 -1
- package/dist/components/avatar/src/avatar-constants.d.ts +2 -0
- package/dist/components/avatar/src/avatar-constants.d.ts.map +1 -0
- package/dist/components/avatar/src/avatar.d.ts +26 -0
- package/dist/components/avatar/src/avatar.d.ts.map +1 -0
- package/dist/components/button/src/button.visual.fixtures.d.ts +43 -0
- package/dist/components/button/src/button.visual.fixtures.d.ts.map +1 -0
- package/dist/components/carousel/src/carousel.d.ts.map +1 -1
- package/dist/components/color-dot/src/color-dot.d.ts +18 -8
- package/dist/components/color-dot/src/color-dot.d.ts.map +1 -1
- package/dist/components/comparison-table/src/components/OptionCard/option-card.d.ts.map +1 -1
- package/dist/components/date-picker/src/date-picker.d.ts +8 -0
- package/dist/components/date-picker/src/date-picker.d.ts.map +1 -1
- package/dist/components/drawer/src/drawer-content.d.ts +21 -0
- package/dist/components/drawer/src/drawer-content.d.ts.map +1 -1
- package/dist/components/hero-banner/src/hero-banner.visual.fixtures.d.ts +14 -0
- package/dist/components/hero-banner/src/hero-banner.visual.fixtures.d.ts.map +1 -0
- package/dist/components/loading/src/loading-dots.d.ts +19 -0
- package/dist/components/loading/src/loading-dots.d.ts.map +1 -0
- package/dist/components/loading/src/loading-text.d.ts +21 -0
- package/dist/components/loading/src/loading-text.d.ts.map +1 -0
- package/dist/components/loading/src/loading.d.ts +10 -0
- package/dist/components/loading/src/loading.d.ts.map +1 -0
- package/dist/components/message/src/message-bubble.d.ts +22 -0
- package/dist/components/message/src/message-bubble.d.ts.map +1 -0
- package/dist/components/message/src/message-stamp.d.ts +26 -0
- package/dist/components/message/src/message-stamp.d.ts.map +1 -0
- package/dist/components/message/src/message-utils.d.ts +3 -0
- package/dist/components/message/src/message-utils.d.ts.map +1 -0
- package/dist/components/message/src/message.d.ts +42 -0
- package/dist/components/message/src/message.d.ts.map +1 -0
- package/dist/components/modal/src/modal-content.d.ts +21 -0
- package/dist/components/modal/src/modal-content.d.ts.map +1 -1
- package/dist/components/modal/src/modal.d.ts +2 -0
- package/dist/components/modal/src/modal.d.ts.map +1 -1
- package/dist/components/popover/src/popover-content.d.ts +14 -0
- package/dist/components/popover/src/popover-content.d.ts.map +1 -1
- package/dist/components/radio-card-group/src/is-radio-card-item.d.ts +4 -0
- package/dist/components/radio-card-group/src/is-radio-card-item.d.ts.map +1 -0
- package/dist/components/radio-card-group/src/radio-card-group.constants.d.ts +5 -0
- package/dist/components/radio-card-group/src/radio-card-group.constants.d.ts.map +1 -0
- package/dist/components/radio-card-group/src/radio-card-group.d.ts +5 -6
- package/dist/components/radio-card-group/src/radio-card-group.d.ts.map +1 -1
- package/dist/components/radio-card-group/src/radio-card-item.d.ts +1 -2
- package/dist/components/radio-card-group/src/radio-card-item.d.ts.map +1 -1
- package/dist/components/search-field/src/search-field-autocomplete.d.ts +6 -3
- package/dist/components/search-field/src/search-field-autocomplete.d.ts.map +1 -1
- package/dist/components/search-field/src/search-field-base.d.ts +10 -3
- package/dist/components/search-field/src/search-field-base.d.ts.map +1 -1
- package/dist/components/search-field/src/search-field-button.d.ts +3 -1
- package/dist/components/search-field/src/search-field-button.d.ts.map +1 -1
- package/dist/components/search-field/src/search-field.d.ts +12 -6
- package/dist/components/search-field/src/search-field.d.ts.map +1 -1
- package/dist/components/table/src/drag-indicator-circle.d.ts +8 -1
- package/dist/components/table/src/drag-indicator-circle.d.ts.map +1 -1
- package/dist/components/table/src/table.d.ts.map +1 -1
- package/dist/components/tooltip/src/tooltip.d.ts +21 -0
- package/dist/components/tooltip/src/tooltip.d.ts.map +1 -1
- package/dist/components-metadata.js +33 -4
- package/dist/date-picker-CIizn3Pv.js +2 -0
- package/dist/{date-picker-uyPKJulK.js.map → date-picker-CIizn3Pv.js.map} +1 -1
- package/dist/date-picker-DixxW60s.mjs +1617 -0
- package/dist/{date-picker-CzxhZxsw.mjs.map → date-picker-DixxW60s.mjs.map} +1 -1
- package/dist/date-picker.cjs.js +1 -1
- package/dist/date-picker.es.js +1 -1
- package/dist/drawer-BzkRd9F0.mjs +577 -0
- package/dist/drawer-BzkRd9F0.mjs.map +1 -0
- package/dist/drawer-DyhsP34o.js +2 -0
- package/dist/drawer-DyhsP34o.js.map +1 -0
- package/dist/drawer.cjs.js +1 -1
- package/dist/drawer.es.js +1 -1
- package/dist/{footer-D9AcPwlH.js → footer-3Y-664-8.js} +2 -2
- package/dist/{footer-D9AcPwlH.js.map → footer-3Y-664-8.js.map} +1 -1
- package/dist/{footer-BLPlXaZK.mjs → footer-DenAcikt.mjs} +3 -3
- package/dist/{footer-BLPlXaZK.mjs.map → footer-DenAcikt.mjs.map} +1 -1
- package/dist/footer.cjs.js +1 -1
- package/dist/footer.es.js +1 -1
- package/dist/{hero-banner-DkC_BqM7.mjs → hero-banner-B7xrDfzN.mjs} +2 -2
- package/dist/{hero-banner-DkC_BqM7.mjs.map → hero-banner-B7xrDfzN.mjs.map} +1 -1
- package/dist/{hero-banner-D1A-_qou.js → hero-banner-DthITuQ7.js} +2 -2
- package/dist/{hero-banner-D1A-_qou.js.map → hero-banner-DthITuQ7.js.map} +1 -1
- package/dist/hero-banner.cjs.js +1 -1
- package/dist/hero-banner.es.js +1 -1
- package/dist/libraries/library/src/avatar.d.ts +6 -0
- package/dist/libraries/library/src/avatar.d.ts.map +1 -0
- package/dist/libraries/library/src/library.d.ts +3 -0
- package/dist/libraries/library/src/library.d.ts.map +1 -1
- package/dist/libraries/library/src/loading.d.ts +6 -0
- package/dist/libraries/library/src/loading.d.ts.map +1 -0
- package/dist/libraries/library/src/message.d.ts +6 -0
- package/dist/libraries/library/src/message.d.ts.map +1 -0
- package/dist/libraries/theme/src/ThemeProvider.d.ts.map +1 -1
- package/dist/libraries/theme/src/theme.d.ts +1 -0
- package/dist/libraries/theme/src/theme.d.ts.map +1 -1
- package/dist/libraries/theme/src/types.d.ts +7 -0
- package/dist/libraries/theme/src/types.d.ts.map +1 -1
- package/dist/libraries/theme/src/useThemePortalContainer.d.ts +12 -0
- package/dist/libraries/theme/src/useThemePortalContainer.d.ts.map +1 -0
- package/dist/library.cjs.js +1 -1
- package/dist/library.es.js +630 -623
- package/dist/library.es.js.map +1 -1
- package/dist/loading-Dwtkjstg.js +2 -0
- package/dist/loading-Dwtkjstg.js.map +1 -0
- package/dist/loading-r23nxJSz.mjs +107 -0
- package/dist/loading-r23nxJSz.mjs.map +1 -0
- package/dist/loading.cjs.js +2 -0
- package/dist/loading.cjs.js.map +1 -0
- package/dist/loading.es.js +5 -0
- package/dist/loading.es.js.map +1 -0
- package/dist/message-0yTS5pOF.js +3 -0
- package/dist/message-0yTS5pOF.js.map +1 -0
- package/dist/message-D9CDwcw9.mjs +132 -0
- package/dist/message-D9CDwcw9.mjs.map +1 -0
- package/dist/message.cjs.js +2 -0
- package/dist/message.cjs.js.map +1 -0
- package/dist/message.es.js +5 -0
- package/dist/message.es.js.map +1 -0
- package/dist/modal-DJn9idcw.js +2 -0
- package/dist/modal-DJn9idcw.js.map +1 -0
- package/dist/{modal-fp37VbrH.mjs → modal-EIP36327.mjs} +83 -80
- package/dist/modal-EIP36327.mjs.map +1 -0
- package/dist/modal.cjs.js +1 -1
- package/dist/modal.es.js +1 -1
- package/dist/{popover-I26xNbTz.mjs → popover-DERrvReO.mjs} +328 -325
- package/dist/popover-DERrvReO.mjs.map +1 -0
- package/dist/popover-DnGgzfQr.js +2 -0
- package/dist/popover-DnGgzfQr.js.map +1 -0
- package/dist/popover.cjs.js +1 -1
- package/dist/popover.es.js +1 -1
- package/dist/{product-card-CoY1KggV.js → product-card-8X-Ld2d_.js} +2 -2
- package/dist/{product-card-CoY1KggV.js.map → product-card-8X-Ld2d_.js.map} +1 -1
- package/dist/{product-card-C3_N0t-R.mjs → product-card-Bt-F0wKr.mjs} +10 -10
- package/dist/{product-card-C3_N0t-R.mjs.map → product-card-Bt-F0wKr.mjs.map} +1 -1
- package/dist/product-card.cjs.js +1 -1
- package/dist/product-card.es.js +1 -1
- package/dist/{promotion-card-BiHnQvhn.mjs → promotion-card-BnzIVNQ4.mjs} +2 -2
- package/dist/{promotion-card-BiHnQvhn.mjs.map → promotion-card-BnzIVNQ4.mjs.map} +1 -1
- package/dist/{promotion-card-Bag64gqP.js → promotion-card-DKc2Cx1h.js} +2 -2
- package/dist/{promotion-card-Bag64gqP.js.map → promotion-card-DKc2Cx1h.js.map} +1 -1
- package/dist/promotion-card.cjs.js +1 -1
- package/dist/promotion-card.es.js +1 -1
- package/dist/purpur.css +1 -1
- package/dist/radio-card-group-ZBXjYcQs.mjs +166 -0
- package/dist/radio-card-group-ZBXjYcQs.mjs.map +1 -0
- package/dist/radio-card-group-nrDi5EPK.js +2 -0
- package/dist/radio-card-group-nrDi5EPK.js.map +1 -0
- package/dist/radio-card-group.cjs.js +1 -1
- package/dist/radio-card-group.es.js +3 -5
- package/dist/search-field-2vdDbiT0.js +2 -0
- package/dist/search-field-2vdDbiT0.js.map +1 -0
- package/dist/search-field-DKyNh7pE.mjs +167 -0
- package/dist/search-field-DKyNh7pE.mjs.map +1 -0
- package/dist/search-field.cjs.js +1 -1
- package/dist/search-field.es.js +1 -1
- package/dist/{stepper-CWR2vGPj.mjs → stepper-BDsSa6yr.mjs} +2 -2
- package/dist/{stepper-CWR2vGPj.mjs.map → stepper-BDsSa6yr.mjs.map} +1 -1
- package/dist/{stepper-Df4X7DDR.js → stepper-DpauItjx.js} +2 -2
- package/dist/{stepper-Df4X7DDR.js.map → stepper-DpauItjx.js.map} +1 -1
- package/dist/stepper.cjs.js +1 -1
- package/dist/stepper.es.js +1 -1
- package/dist/{table-gnGUejtb.js → table-BOCcBzSO.js} +4 -4
- package/dist/table-BOCcBzSO.js.map +1 -0
- package/dist/{table-g_n68i4s.mjs → table-i1Gs9e0e.mjs} +440 -440
- package/dist/table-i1Gs9e0e.mjs.map +1 -0
- package/dist/table.cjs.js +1 -1
- package/dist/table.es.js +1 -1
- package/dist/{text-area-peNKG7g4.js → text-area-D0truMT1.js} +2 -2
- package/dist/{text-area-peNKG7g4.js.map → text-area-D0truMT1.js.map} +1 -1
- package/dist/{text-area-kJvg6cFp.mjs → text-area-IVH-k4MM.mjs} +3 -3
- package/dist/{text-area-kJvg6cFp.mjs.map → text-area-IVH-k4MM.mjs.map} +1 -1
- package/dist/text-area.cjs.js +1 -1
- package/dist/text-area.es.js +1 -1
- package/dist/theme.cjs.js +1 -1
- package/dist/theme.es.js +8 -6
- package/dist/theme.es.js.map +1 -1
- package/dist/tooltip-CJGmJDFQ.js +2 -0
- package/dist/{tooltip-C8Zxnqdb.js.map → tooltip-CJGmJDFQ.js.map} +1 -1
- package/dist/{tooltip-LU2Cy-QC.mjs → tooltip-RA-03bKs.mjs} +277 -274
- package/dist/{tooltip-LU2Cy-QC.mjs.map → tooltip-RA-03bKs.mjs.map} +1 -1
- package/dist/tooltip.cjs.js +1 -1
- package/dist/tooltip.es.js +1 -1
- package/dist/{useColorScheme-tAkY9LHt.mjs → useColorScheme-B9DWd-LN.mjs} +2 -2
- package/dist/{useColorScheme-tAkY9LHt.mjs.map → useColorScheme-B9DWd-LN.mjs.map} +1 -1
- package/dist/useColorScheme-DbTQjxNB.js +2 -0
- package/dist/{useColorScheme-DNyjsWX9.js.map → useColorScheme-DbTQjxNB.js.map} +1 -1
- package/dist/useThemePortalContainer-D9BYjEvT.js +2 -0
- package/dist/useThemePortalContainer-D9BYjEvT.js.map +1 -0
- package/dist/useThemePortalContainer-tFLTaYKN.mjs +9 -0
- package/dist/useThemePortalContainer-tFLTaYKN.mjs.map +1 -0
- package/package.json +27 -24
- package/src/aliases.ts +12 -0
- package/src/avatar.ts +6 -0
- package/src/entries.js +3 -0
- package/src/library.ts +5 -68
- package/src/loading.ts +6 -0
- package/src/message.ts +6 -0
- package/dist/ThemeProvider-CkX-BNWN.mjs +0 -337
- package/dist/ThemeProvider-Dy771oix.js +0 -2
- package/dist/carousel-DLkTL9sj.mjs +0 -1633
- package/dist/carousel-DLkTL9sj.mjs.map +0 -1
- package/dist/carousel-DXrtxRz5.js +0 -2
- package/dist/carousel-DXrtxRz5.js.map +0 -1
- package/dist/color-dot-6Mxngvce.mjs +0 -34
- package/dist/color-dot-6Mxngvce.mjs.map +0 -1
- package/dist/color-dot-B9w_ucWb.js +0 -2
- package/dist/color-dot-B9w_ucWb.js.map +0 -1
- package/dist/comparison-table-C74IAVqz.js +0 -2
- package/dist/comparison-table-C74IAVqz.js.map +0 -1
- package/dist/comparison-table-DctKxmX9.mjs +0 -267
- package/dist/comparison-table-DctKxmX9.mjs.map +0 -1
- package/dist/date-picker-CzxhZxsw.mjs +0 -1611
- package/dist/date-picker-uyPKJulK.js +0 -2
- package/dist/drawer-8Acg4wkV.mjs +0 -574
- package/dist/drawer-8Acg4wkV.mjs.map +0 -1
- package/dist/drawer-BLHgcEqb.js +0 -2
- package/dist/drawer-BLHgcEqb.js.map +0 -1
- package/dist/modal-Baisuc6m.js +0 -2
- package/dist/modal-Baisuc6m.js.map +0 -1
- package/dist/modal-fp37VbrH.mjs.map +0 -1
- package/dist/popover-B0XJZ5mj.js +0 -2
- package/dist/popover-B0XJZ5mj.js.map +0 -1
- package/dist/popover-I26xNbTz.mjs.map +0 -1
- package/dist/radio-card-group-CneOprGY.mjs +0 -168
- package/dist/radio-card-group-CneOprGY.mjs.map +0 -1
- package/dist/radio-card-group-Ctuvg61o.js +0 -2
- package/dist/radio-card-group-Ctuvg61o.js.map +0 -1
- package/dist/search-field-CpkHGIYi.mjs +0 -151
- package/dist/search-field-CpkHGIYi.mjs.map +0 -1
- package/dist/search-field-Z0PqDARl.js +0 -2
- package/dist/search-field-Z0PqDARl.js.map +0 -1
- package/dist/table-g_n68i4s.mjs.map +0 -1
- package/dist/table-gnGUejtb.js.map +0 -1
- package/dist/tooltip-C8Zxnqdb.js +0 -2
- package/dist/useColorScheme-DNyjsWX9.js +0 -2
- package/tokens/_dark.scss +0 -9
- package/tokens/_index.scss +0 -9
- package/tokens/border/variables.css +0 -13
- package/tokens/border/variables.d.ts +0 -10
- package/tokens/border/variables.dark.css +0 -12
- package/tokens/border/variables.dark.d.ts +0 -10
- package/tokens/border/variables.dark.js +0 -10
- package/tokens/border/variables.dark.json +0 -18
- package/tokens/border/variables.dark.scss +0 -10
- package/tokens/border/variables.js +0 -10
- package/tokens/border/variables.json +0 -18
- package/tokens/border/variables.scss +0 -10
- package/tokens/breakpoint/variables.css +0 -11
- package/tokens/breakpoint/variables.d.ts +0 -8
- package/tokens/breakpoint/variables.dark.css +0 -10
- package/tokens/breakpoint/variables.dark.d.ts +0 -8
- package/tokens/breakpoint/variables.dark.js +0 -8
- package/tokens/breakpoint/variables.dark.json +0 -14
- package/tokens/breakpoint/variables.dark.scss +0 -8
- package/tokens/breakpoint/variables.js +0 -8
- package/tokens/breakpoint/variables.json +0 -14
- package/tokens/breakpoint/variables.scss +0 -8
- package/tokens/color/variables.css +0 -262
- package/tokens/color/variables.d.ts +0 -253
- package/tokens/color/variables.dark.css +0 -262
- package/tokens/color/variables.dark.d.ts +0 -252
- package/tokens/color/variables.dark.js +0 -252
- package/tokens/color/variables.dark.json +0 -306
- package/tokens/color/variables.dark.scss +0 -252
- package/tokens/color/variables.js +0 -253
- package/tokens/color/variables.json +0 -307
- package/tokens/color/variables.scss +0 -253
- package/tokens/dark.css +0 -9
- package/tokens/dark.d.ts +0 -9
- package/tokens/dark.js +0 -9
- package/tokens/filter/variables.css +0 -4
- package/tokens/filter/variables.d.ts +0 -1
- package/tokens/filter/variables.dark.css +0 -3
- package/tokens/filter/variables.dark.d.ts +0 -1
- package/tokens/filter/variables.dark.js +0 -1
- package/tokens/filter/variables.dark.json +0 -7
- package/tokens/filter/variables.dark.scss +0 -1
- package/tokens/filter/variables.js +0 -1
- package/tokens/filter/variables.json +0 -7
- package/tokens/filter/variables.scss +0 -1
- package/tokens/gradient/variables.css +0 -53
- package/tokens/gradient/variables.d.ts +0 -9
- package/tokens/gradient/variables.dark.css +0 -51
- package/tokens/gradient/variables.dark.d.ts +0 -9
- package/tokens/gradient/variables.dark.js +0 -18
- package/tokens/gradient/variables.dark.json +0 -27
- package/tokens/gradient/variables.dark.scss +0 -36
- package/tokens/gradient/variables.js +0 -18
- package/tokens/gradient/variables.json +0 -27
- package/tokens/gradient/variables.scss +0 -42
- package/tokens/index.css +0 -18
- package/tokens/index.d.ts +0 -9
- package/tokens/index.js +0 -9
- package/tokens/motion/variables.css +0 -14
- package/tokens/motion/variables.d.ts +0 -11
- package/tokens/motion/variables.dark.css +0 -13
- package/tokens/motion/variables.dark.d.ts +0 -11
- package/tokens/motion/variables.dark.js +0 -11
- package/tokens/motion/variables.dark.json +0 -19
- package/tokens/motion/variables.dark.scss +0 -11
- package/tokens/motion/variables.js +0 -11
- package/tokens/motion/variables.json +0 -19
- package/tokens/motion/variables.scss +0 -11
- package/tokens/shadow/variables.css +0 -11
- package/tokens/shadow/variables.d.ts +0 -4
- package/tokens/shadow/variables.dark.css +0 -10
- package/tokens/shadow/variables.dark.d.ts +0 -4
- package/tokens/shadow/variables.dark.js +0 -4
- package/tokens/shadow/variables.dark.json +0 -8
- package/tokens/shadow/variables.dark.scss +0 -4
- package/tokens/shadow/variables.js +0 -4
- package/tokens/shadow/variables.json +0 -8
- package/tokens/shadow/variables.scss +0 -4
- package/tokens/spacing/variables.css +0 -26
- package/tokens/spacing/variables.d.ts +0 -23
- package/tokens/spacing/variables.dark.css +0 -17
- package/tokens/spacing/variables.dark.d.ts +0 -15
- package/tokens/spacing/variables.dark.js +0 -15
- package/tokens/spacing/variables.dark.json +0 -19
- package/tokens/spacing/variables.dark.scss +0 -15
- package/tokens/spacing/variables.js +0 -23
- package/tokens/spacing/variables.json +0 -31
- package/tokens/spacing/variables.scss +0 -23
- package/tokens/typography/variables.css +0 -30
- package/tokens/typography/variables.d.ts +0 -26
- package/tokens/typography/variables.dark.css +0 -29
- package/tokens/typography/variables.dark.d.ts +0 -26
- package/tokens/typography/variables.dark.js +0 -28
- package/tokens/typography/variables.dark.json +0 -38
- package/tokens/typography/variables.dark.scss +0 -26
- package/tokens/typography/variables.js +0 -28
- package/tokens/typography/variables.json +0 -38
- package/tokens/typography/variables.scss +0 -26
|
@@ -1,337 +0,0 @@
|
|
|
1
|
-
import { jsx as g } from "react/jsx-runtime";
|
|
2
|
-
import { useEffect as l, createContext as T, useContext as k, useState as d, useMemo as x } from "react";
|
|
3
|
-
import { aC as m, az as f, aB as N, aA as y, aD as $, ay as P, au as E, av as O, an as b, ap as A, aq as H, ar as M, at as W, as as D, aj as h, ak as F, am as L, ao as w, al as R, aF as Q, ax as j, aH as q, aE as z, aw as G, aG as K, W as J, Y as U, X, V as Y, K as Z, U as V, R as _, H as rr, G as er, O as or, N as tr, J as ar, I as cr, T as ur, S as nr, Q as ir, P as sr, M as lr, L as pr, v as vr, m as gr, e as dr, x as Br, z as Sr, h as Cr, j as Ir, k as Tr, q as kr, s as xr, t as mr, p as fr, b as Nr, c as yr, a as $r, l as Pr, u as Er, d as Or, w as br, y as Ar, g as Hr, i as Mr, f as Wr, o as Dr, r as hr, n as Fr, B as Lr, F as wr, D as Rr, A as Qr, E as jr, C as qr, cG as zr, cF as Gr, cE as Kr, cC as Jr, cs as Ur, cq as Xr, cA as Yr, cn as Zr, co as Vr, cm as _r, cw as re, cv as ee, cr as oe, cp as te, cD as ae, cB as ce, cz as ue, cx as ne, cu as ie, ct as se, c6 as le, c8 as pe, c9 as ve, cb as ge, ce as de, cg as Be, ch as Se, ci as Ce, c3 as Ie, c5 as Te, c7 as ke, c4 as xe, ca as me, cd as fe, cf as Ne, cc as ye, cI as $e, cl as Pe, c2 as Ee, cH as Oe, ck as be, c1 as Ae, aP as He, aO as Me, aM as We, aI as De, aK as he, aN as Fe, aJ as Le, aL as we } from "./variables-B5hbV0Uy.mjs";
|
|
4
|
-
const Re = "#f4e0ff", Qe = "#c461f7", je = "#29003e", qe = "#ede1d8", ze = "#4f4741", Ge = "#3b332d", Ke = "#ffffff", Je = "#202022", Ue = "rgba(255, 255, 255, 0.95)", Xe = "rgba(255, 255, 255, 0.66)", Ye = "rgba(255, 255, 255, 0.37)", Ze = "rgba(0, 0, 0, 0.8)", Ve = "rgba(0, 0, 0, 0.54)", _e = "rgba(0, 0, 0, 0.44)", ro = "#f4e0ff", eo = "#faf0ff", oo = "#ffffff", to = "#4e0174", ao = "#ffffff", co = "#6d02a3", uo = "#4e0174", no = "#29003e", io = "#ffffff", so = "#ffffff", lo = "#29003e", po = "#ffffff", vo = "#29003e", go = "#ffffff", Bo = "#ffffff", So = "#d58df9", Co = "#d58df9", Io = "#ffafc9", To = "#980233", ko = "#fb4885", xo = "#e4175c", mo = "#79d9a7", fo = "#02562b", No = "#1fa15e", yo = "#f9bb5b", $o = "#f39200", Po = "#a86602", Eo = "#91cdf4", Oo = "#3694d3", bo = "#ffffff", Ao = "#ffffff", Ho = "#4e0174", Mo = "#202022", Wo = "#29003e", Do = "#f4e0ff", ho = "#ffffff", Fo = "#121212", Lo = "#ffffff", wo = "#202022", Ro = "#f5f5fa", Qo = "rgba(0, 0, 0, 0.71)", jo = "rgba(255, 255, 255, 0.84)", qo = "#03385b", zo = "#f4e0ff", Go = "#e4b6fb", Ko = "#d58df9", Jo = "#4e0174", Uo = "#6d02a3", Xo = "#8c07d0", Yo = "#990ae3", Zo = "#c461f7", Vo = "#d58df9", _o = "#990ae3", rt = "#6d02a3", et = "#4e0174", ot = "rgba(255, 255, 255, 0.11)", tt = "rgba(0, 0, 0, 0.1)", at = "#4e0174", ct = "#e4b6fb", ut = "#6d02a3", nt = "#d58df9", it = "rgba(255, 255, 255, 0.16)", st = "rgba(0, 0, 0, 0.05)", lt = "rgba(255, 255, 255, 0.07)", pt = "rgba(0, 0, 0, 0.05)", vt = "#e4175c", gt = "#c00543", dt = "#980233", Bt = "#03385b", St = "#62b2e7", Ct = "#003e1e", It = "#3dbf7c", Tt = "#1fa15e", kt = "#700025", xt = "#ff80ab", mt = "#fb4885", ft = "#4c2f03", Nt = "#f39200", yt = "#f39200", $t = "#353537", Pt = "#6d02a3", Et = "#f4e0ff", Ot = "#ffffff", bt = "#f4e0ff", At = "#29003e", Ht = "#4f4741", Mt = "#2d2824", Wt = "rgba(255, 255, 255, 0.29)", Dt = "rgba(0, 0, 0, 0.33)", ht = "rgba(255, 255, 255, 0.46)", Ft = "rgba(0, 0, 0, 0.54)", Lt = "rgba(255, 255, 255, 0.16)", wt = "rgba(0, 0, 0, 0.16)", Rt = "#c461f7", Qt = "#f4e0ff", jt = "#6d02a3", qt = "#faf0ff", zt = "#ffffff", Gt = "#4e0174", Kt = "#29003e", Jt = "#990ae3", Ut = "#d58df9", Xt = "rgba(255, 255, 255, 0.37)", Yt = "rgba(0, 0, 0, 0.44)", Zt = "#e4b6fb", Vt = "#6d02a3", _t = "#fb4885", ra = "#e4175c", ea = "#f39200", oa = "#3694d3", ta = "#1fa15e", aa = "#018842", ca = {
|
|
5
|
-
colorBrandDeepPurple: Re,
|
|
6
|
-
colorBrandCorePurple: Qe,
|
|
7
|
-
colorBrandLightPurple: je,
|
|
8
|
-
colorBrandDeepBeige: qe,
|
|
9
|
-
colorBrandBeige: ze,
|
|
10
|
-
colorBrandLightBeige: Ge,
|
|
11
|
-
colorBrandOffBlack: Ke,
|
|
12
|
-
colorBrandWhite: Je,
|
|
13
|
-
colorTextDefault: Ue,
|
|
14
|
-
colorTextMedium: Xe,
|
|
15
|
-
colorTextWeak: Ye,
|
|
16
|
-
colorTextDefaultNegative: Ze,
|
|
17
|
-
colorTextMediumNegative: Ve,
|
|
18
|
-
colorTextWeakNegative: _e,
|
|
19
|
-
colorTextInteractivePrimary: ro,
|
|
20
|
-
colorTextInteractivePrimaryHover: eo,
|
|
21
|
-
colorTextInteractivePrimaryActive: oo,
|
|
22
|
-
colorTextInteractiveOnPrimary: to,
|
|
23
|
-
colorTextInteractiveOnExpressive: io,
|
|
24
|
-
colorTextInteractiveOnExpressiveHover: lo,
|
|
25
|
-
colorTextInteractiveOnExpressiveActive: vo,
|
|
26
|
-
colorTextInteractiveOnDestructive: Bo,
|
|
27
|
-
colorTextInteractiveSelected: So,
|
|
28
|
-
colorTextInteractivePrimaryNegative: co,
|
|
29
|
-
colorTextInteractivePrimaryHoverNegative: uo,
|
|
30
|
-
colorTextInteractivePrimaryActiveNegative: no,
|
|
31
|
-
colorTextInteractiveOnPrimaryNegative: ao,
|
|
32
|
-
colorTextInteractiveOnExpressiveNegative: so,
|
|
33
|
-
colorTextInteractiveOnExpressiveHoverNegative: po,
|
|
34
|
-
colorTextInteractiveOnExpressiveActiveNegative: go,
|
|
35
|
-
colorTextStatusInfoMedium: Oo,
|
|
36
|
-
colorTextStatusInfoStrong: Eo,
|
|
37
|
-
colorTextStatusSuccessMedium: No,
|
|
38
|
-
colorTextStatusSuccessStrong: mo,
|
|
39
|
-
colorTextStatusWarningMedium: $o,
|
|
40
|
-
colorTextStatusWarningStrong: yo,
|
|
41
|
-
colorTextStatusErrorMedium: ko,
|
|
42
|
-
colorTextStatusErrorStrong: Io,
|
|
43
|
-
colorTextStatusNeutral: bo,
|
|
44
|
-
colorTextStatusSpecial: Ao,
|
|
45
|
-
colorTextStatusAttention: Ho,
|
|
46
|
-
colorTextStatusDiscount: Co,
|
|
47
|
-
colorTextStatusBlackFriday: Mo,
|
|
48
|
-
colorTextStatusSuccessStrongNegative: fo,
|
|
49
|
-
colorTextStatusErrorMediumNegative: xo,
|
|
50
|
-
colorTextStatusErrorStrongNegative: To,
|
|
51
|
-
colorTextStatusWarningMediumNegative: Po,
|
|
52
|
-
colorTextToneOnTonePrimary: Wo,
|
|
53
|
-
colorTextToneOnToneSecondary: Do,
|
|
54
|
-
colorTextToneOnToneTertiary: ho,
|
|
55
|
-
colorBackgroundPrimary: Fo,
|
|
56
|
-
colorBackgroundSecondary: wo,
|
|
57
|
-
colorBackgroundOnImage: Qo,
|
|
58
|
-
colorBackgroundPrimaryNegative: Lo,
|
|
59
|
-
colorBackgroundSecondaryNegative: Ro,
|
|
60
|
-
colorBackgroundOnImageNegative: jo,
|
|
61
|
-
colorBackgroundInteractivePrimary: zo,
|
|
62
|
-
colorBackgroundInteractivePrimaryHover: Go,
|
|
63
|
-
colorBackgroundInteractivePrimaryActive: Ko,
|
|
64
|
-
colorBackgroundInteractiveExpressive: Yo,
|
|
65
|
-
colorBackgroundInteractiveExpressiveHover: Zo,
|
|
66
|
-
colorBackgroundInteractiveExpressiveActive: Vo,
|
|
67
|
-
colorBackgroundInteractiveTransparentHover: at,
|
|
68
|
-
colorBackgroundInteractiveTransparentActive: ut,
|
|
69
|
-
colorBackgroundInteractiveDisabled: ot,
|
|
70
|
-
colorBackgroundInteractiveReadOnly: lt,
|
|
71
|
-
colorBackgroundInteractiveInactive: it,
|
|
72
|
-
colorBackgroundInteractiveDestructive: vt,
|
|
73
|
-
colorBackgroundInteractiveDestructiveHover: gt,
|
|
74
|
-
colorBackgroundInteractiveDestructiveActive: dt,
|
|
75
|
-
colorBackgroundInteractiveAutoFill: qo,
|
|
76
|
-
colorBackgroundInteractivePrimaryNegative: Jo,
|
|
77
|
-
colorBackgroundInteractivePrimaryHoverNegative: Uo,
|
|
78
|
-
colorBackgroundInteractivePrimaryActiveNegative: Xo,
|
|
79
|
-
colorBackgroundInteractiveExpressiveNegative: _o,
|
|
80
|
-
colorBackgroundInteractiveExpressiveHoverNegative: rt,
|
|
81
|
-
colorBackgroundInteractiveExpressiveActiveNegative: et,
|
|
82
|
-
colorBackgroundInteractiveTransparentHoverNegative: ct,
|
|
83
|
-
colorBackgroundInteractiveTransparentActiveNegative: nt,
|
|
84
|
-
colorBackgroundInteractiveDisabledNegative: tt,
|
|
85
|
-
colorBackgroundInteractiveInactiveNegative: st,
|
|
86
|
-
colorBackgroundInteractiveReadOnlyNegative: pt,
|
|
87
|
-
colorBackgroundStatusInfoMedium: Bt,
|
|
88
|
-
colorBackgroundStatusInfoStrong: St,
|
|
89
|
-
colorBackgroundStatusSuccessMedium: Ct,
|
|
90
|
-
colorBackgroundStatusSuccessStrong: It,
|
|
91
|
-
colorBackgroundStatusWarningMedium: ft,
|
|
92
|
-
colorBackgroundStatusWarningStrong: Nt,
|
|
93
|
-
colorBackgroundStatusErrorMedium: kt,
|
|
94
|
-
colorBackgroundStatusErrorStrong: xt,
|
|
95
|
-
colorBackgroundStatusNeutral: $t,
|
|
96
|
-
colorBackgroundStatusSpecial: Pt,
|
|
97
|
-
colorBackgroundStatusAttention: Et,
|
|
98
|
-
colorBackgroundStatusBlackFriday: Ot,
|
|
99
|
-
colorBackgroundStatusSuccessStrongNegative: Tt,
|
|
100
|
-
colorBackgroundStatusWarningStrongNegative: yt,
|
|
101
|
-
colorBackgroundStatusErrorStrongNegative: mt,
|
|
102
|
-
colorBackgroundToneOnTonePrimary: bt,
|
|
103
|
-
colorBackgroundToneOnToneSecondary: At,
|
|
104
|
-
colorBackgroundToneOnToneTertiary: Ht,
|
|
105
|
-
colorBackgroundToneOnToneQuaternary: Mt,
|
|
106
|
-
colorBorderWeak: Lt,
|
|
107
|
-
colorBorderMedium: Wt,
|
|
108
|
-
colorBorderStrong: ht,
|
|
109
|
-
colorBorderWeakNegative: wt,
|
|
110
|
-
colorBorderMediumNegative: Dt,
|
|
111
|
-
colorBorderStrongNegative: Ft,
|
|
112
|
-
colorBorderInteractivePrimary: Qt,
|
|
113
|
-
colorBorderInteractivePrimaryHover: qt,
|
|
114
|
-
colorBorderInteractivePrimaryActive: zt,
|
|
115
|
-
colorBorderInteractiveFocus: Rt,
|
|
116
|
-
colorBorderInteractiveExpressive: Jt,
|
|
117
|
-
colorBorderInteractiveSubtle: Xt,
|
|
118
|
-
colorBorderInteractiveSubtleHover: Zt,
|
|
119
|
-
colorBorderInteractiveSelected: Ut,
|
|
120
|
-
colorBorderInteractivePrimaryNegative: jt,
|
|
121
|
-
colorBorderInteractivePrimaryHoverNegative: Gt,
|
|
122
|
-
colorBorderInteractivePrimaryActiveNegative: Kt,
|
|
123
|
-
colorBorderInteractiveSubtleNegative: Yt,
|
|
124
|
-
colorBorderInteractiveSubtleHoverNegative: Vt,
|
|
125
|
-
colorBorderStatusError: _t,
|
|
126
|
-
colorBorderStatusWarning: ea,
|
|
127
|
-
colorBorderStatusInfo: oa,
|
|
128
|
-
colorBorderStatusSuccess: ta,
|
|
129
|
-
colorBorderStatusErrorNegative: ra,
|
|
130
|
-
colorBorderStatusSuccessNegative: aa
|
|
131
|
-
}, ua = {
|
|
132
|
-
colorBrandDeepPurple: we,
|
|
133
|
-
colorBrandCorePurple: Le,
|
|
134
|
-
colorBrandLightPurple: Fe,
|
|
135
|
-
colorBrandDeepBeige: he,
|
|
136
|
-
colorBrandBeige: De,
|
|
137
|
-
colorBrandLightBeige: We,
|
|
138
|
-
colorBrandOffBlack: Me,
|
|
139
|
-
colorBrandWhite: He,
|
|
140
|
-
colorTextDefault: Ae,
|
|
141
|
-
colorTextMedium: be,
|
|
142
|
-
colorTextWeak: Oe,
|
|
143
|
-
colorTextDefaultNegative: Ee,
|
|
144
|
-
colorTextMediumNegative: Pe,
|
|
145
|
-
colorTextWeakNegative: $e,
|
|
146
|
-
colorTextInteractivePrimary: ye,
|
|
147
|
-
colorTextInteractivePrimaryHover: Ne,
|
|
148
|
-
colorTextInteractivePrimaryActive: fe,
|
|
149
|
-
colorTextInteractiveOnPrimary: me,
|
|
150
|
-
colorTextInteractiveOnExpressive: xe,
|
|
151
|
-
colorTextInteractiveOnExpressiveHover: ke,
|
|
152
|
-
colorTextInteractiveOnExpressiveActive: Te,
|
|
153
|
-
colorTextInteractiveOnDestructive: Ie,
|
|
154
|
-
colorTextInteractiveSelected: Ce,
|
|
155
|
-
colorTextInteractivePrimaryNegative: Se,
|
|
156
|
-
colorTextInteractivePrimaryHoverNegative: Be,
|
|
157
|
-
colorTextInteractivePrimaryActiveNegative: de,
|
|
158
|
-
colorTextInteractiveOnPrimaryNegative: ge,
|
|
159
|
-
colorTextInteractiveOnExpressiveNegative: ve,
|
|
160
|
-
colorTextInteractiveOnExpressiveHoverNegative: pe,
|
|
161
|
-
colorTextInteractiveOnExpressiveActiveNegative: le,
|
|
162
|
-
colorTextStatusInfoMedium: se,
|
|
163
|
-
colorTextStatusInfoStrong: ie,
|
|
164
|
-
colorTextStatusSuccessMedium: ne,
|
|
165
|
-
colorTextStatusSuccessStrong: ue,
|
|
166
|
-
colorTextStatusWarningMedium: ce,
|
|
167
|
-
colorTextStatusWarningStrong: ae,
|
|
168
|
-
colorTextStatusErrorMedium: te,
|
|
169
|
-
colorTextStatusErrorStrong: oe,
|
|
170
|
-
colorTextStatusNeutral: ee,
|
|
171
|
-
colorTextStatusSpecial: re,
|
|
172
|
-
colorTextStatusAttention: _r,
|
|
173
|
-
colorTextStatusDiscount: Vr,
|
|
174
|
-
colorTextStatusBlackFriday: Zr,
|
|
175
|
-
colorTextStatusSuccessStrongNegative: Yr,
|
|
176
|
-
colorTextStatusErrorMediumNegative: Xr,
|
|
177
|
-
colorTextStatusErrorStrongNegative: Ur,
|
|
178
|
-
colorTextStatusWarningMediumNegative: Jr,
|
|
179
|
-
colorTextToneOnTonePrimary: Kr,
|
|
180
|
-
colorTextToneOnToneSecondary: Gr,
|
|
181
|
-
colorTextToneOnToneTertiary: zr,
|
|
182
|
-
colorBackgroundPrimary: qr,
|
|
183
|
-
colorBackgroundSecondary: jr,
|
|
184
|
-
colorBackgroundOnImage: Qr,
|
|
185
|
-
colorBackgroundPrimaryNegative: Rr,
|
|
186
|
-
colorBackgroundSecondaryNegative: wr,
|
|
187
|
-
colorBackgroundOnImageNegative: Lr,
|
|
188
|
-
colorBackgroundInteractivePrimary: Fr,
|
|
189
|
-
colorBackgroundInteractivePrimaryHover: hr,
|
|
190
|
-
colorBackgroundInteractivePrimaryActive: Dr,
|
|
191
|
-
colorBackgroundInteractiveExpressive: Wr,
|
|
192
|
-
colorBackgroundInteractiveExpressiveHover: Mr,
|
|
193
|
-
colorBackgroundInteractiveExpressiveActive: Hr,
|
|
194
|
-
colorBackgroundInteractiveTransparentHover: Ar,
|
|
195
|
-
colorBackgroundInteractiveTransparentActive: br,
|
|
196
|
-
colorBackgroundInteractiveDisabled: Or,
|
|
197
|
-
colorBackgroundInteractiveReadOnly: Er,
|
|
198
|
-
colorBackgroundInteractiveInactive: Pr,
|
|
199
|
-
colorBackgroundInteractiveDestructive: $r,
|
|
200
|
-
colorBackgroundInteractiveDestructiveHover: yr,
|
|
201
|
-
colorBackgroundInteractiveDestructiveActive: Nr,
|
|
202
|
-
colorBackgroundInteractiveAutoFill: fr,
|
|
203
|
-
colorBackgroundInteractivePrimaryNegative: mr,
|
|
204
|
-
colorBackgroundInteractivePrimaryHoverNegative: xr,
|
|
205
|
-
colorBackgroundInteractivePrimaryActiveNegative: kr,
|
|
206
|
-
colorBackgroundInteractiveExpressiveNegative: Tr,
|
|
207
|
-
colorBackgroundInteractiveExpressiveHoverNegative: Ir,
|
|
208
|
-
colorBackgroundInteractiveExpressiveActiveNegative: Cr,
|
|
209
|
-
colorBackgroundInteractiveTransparentHoverNegative: Sr,
|
|
210
|
-
colorBackgroundInteractiveTransparentActiveNegative: Br,
|
|
211
|
-
colorBackgroundInteractiveDisabledNegative: dr,
|
|
212
|
-
colorBackgroundInteractiveInactiveNegative: gr,
|
|
213
|
-
colorBackgroundInteractiveReadOnlyNegative: vr,
|
|
214
|
-
colorBackgroundStatusInfoMedium: pr,
|
|
215
|
-
colorBackgroundStatusInfoStrong: lr,
|
|
216
|
-
colorBackgroundStatusSuccessMedium: sr,
|
|
217
|
-
colorBackgroundStatusSuccessStrong: ir,
|
|
218
|
-
colorBackgroundStatusWarningMedium: nr,
|
|
219
|
-
colorBackgroundStatusWarningStrong: ur,
|
|
220
|
-
colorBackgroundStatusErrorMedium: cr,
|
|
221
|
-
colorBackgroundStatusErrorStrong: ar,
|
|
222
|
-
colorBackgroundStatusNeutral: tr,
|
|
223
|
-
colorBackgroundStatusSpecial: or,
|
|
224
|
-
colorBackgroundStatusAttention: er,
|
|
225
|
-
colorBackgroundStatusBlackFriday: rr,
|
|
226
|
-
colorBackgroundStatusSuccessStrongNegative: _,
|
|
227
|
-
colorBackgroundStatusWarningStrongNegative: V,
|
|
228
|
-
colorBackgroundStatusErrorStrongNegative: Z,
|
|
229
|
-
colorBackgroundToneOnTonePrimary: Y,
|
|
230
|
-
colorBackgroundToneOnToneSecondary: X,
|
|
231
|
-
colorBackgroundToneOnToneTertiary: U,
|
|
232
|
-
colorBackgroundToneOnToneQuaternary: J,
|
|
233
|
-
colorBorderWeak: K,
|
|
234
|
-
colorBorderMedium: G,
|
|
235
|
-
colorBorderStrong: z,
|
|
236
|
-
colorBorderWeakNegative: q,
|
|
237
|
-
colorBorderMediumNegative: j,
|
|
238
|
-
colorBorderStrongNegative: Q,
|
|
239
|
-
colorBorderInteractivePrimary: R,
|
|
240
|
-
colorBorderInteractivePrimaryHover: w,
|
|
241
|
-
colorBorderInteractivePrimaryActive: L,
|
|
242
|
-
colorBorderInteractiveFocus: F,
|
|
243
|
-
colorBorderInteractiveExpressive: h,
|
|
244
|
-
colorBorderInteractiveSubtle: D,
|
|
245
|
-
colorBorderInteractiveSubtleHover: W,
|
|
246
|
-
colorBorderInteractiveSelected: M,
|
|
247
|
-
colorBorderInteractivePrimaryNegative: H,
|
|
248
|
-
colorBorderInteractivePrimaryHoverNegative: A,
|
|
249
|
-
colorBorderInteractivePrimaryActiveNegative: b,
|
|
250
|
-
colorBorderInteractiveSubtleNegative: O,
|
|
251
|
-
colorBorderInteractiveSubtleHoverNegative: E,
|
|
252
|
-
colorBorderStatusError: P,
|
|
253
|
-
colorBorderStatusWarning: $,
|
|
254
|
-
colorBorderStatusInfo: y,
|
|
255
|
-
colorBorderStatusSuccess: N,
|
|
256
|
-
colorBorderStatusErrorNegative: f,
|
|
257
|
-
colorBorderStatusSuccessNegative: m
|
|
258
|
-
}, B = {
|
|
259
|
-
light: ua,
|
|
260
|
-
dark: ca
|
|
261
|
-
}, na = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), ia = ({
|
|
262
|
-
theme: e = B,
|
|
263
|
-
cssVariablesSelector: r,
|
|
264
|
-
currentColorScheme: t
|
|
265
|
-
}) => {
|
|
266
|
-
l(() => {
|
|
267
|
-
t && Object.entries(e?.[t] ?? B[t]).forEach(
|
|
268
|
-
([u, n]) => {
|
|
269
|
-
((r ? document.querySelector(r) : null) ?? document.documentElement).style.setProperty(
|
|
270
|
-
`--purpur-${na(u)}`,
|
|
271
|
-
n
|
|
272
|
-
);
|
|
273
|
-
}
|
|
274
|
-
);
|
|
275
|
-
}, [e, r, t]);
|
|
276
|
-
}, S = T({
|
|
277
|
-
colorScheme: "light",
|
|
278
|
-
currentColorScheme: "light",
|
|
279
|
-
setColorScheme: () => {
|
|
280
|
-
},
|
|
281
|
-
options: {}
|
|
282
|
-
}), ga = ({
|
|
283
|
-
cssVariablesSelector: e,
|
|
284
|
-
forceColorScheme: r,
|
|
285
|
-
theme: t,
|
|
286
|
-
children: u,
|
|
287
|
-
options: n = {},
|
|
288
|
-
...p
|
|
289
|
-
}) => {
|
|
290
|
-
const [a, i] = d(r ?? "auto"), [c, s] = d(
|
|
291
|
-
r ?? "light"
|
|
292
|
-
);
|
|
293
|
-
l(() => {
|
|
294
|
-
if (r)
|
|
295
|
-
i(r);
|
|
296
|
-
else {
|
|
297
|
-
const o = localStorage.getItem("colorScheme");
|
|
298
|
-
o && i(o);
|
|
299
|
-
}
|
|
300
|
-
}, [r]), l(() => {
|
|
301
|
-
const o = window.matchMedia("(prefers-color-scheme: dark)");
|
|
302
|
-
s(a === "auto" ? o.matches ? "dark" : "light" : a);
|
|
303
|
-
const v = (I) => {
|
|
304
|
-
!r && a === "auto" && s(I.matches ? "dark" : "light");
|
|
305
|
-
};
|
|
306
|
-
return o.addEventListener("change", v), () => {
|
|
307
|
-
o.removeEventListener("change", v);
|
|
308
|
-
};
|
|
309
|
-
}, [a, r]), ia({
|
|
310
|
-
theme: t,
|
|
311
|
-
cssVariablesSelector: e,
|
|
312
|
-
currentColorScheme: t !== void 0 ? c : void 0
|
|
313
|
-
});
|
|
314
|
-
const C = x(
|
|
315
|
-
() => ({
|
|
316
|
-
colorScheme: a,
|
|
317
|
-
currentColorScheme: c,
|
|
318
|
-
setColorScheme: (o) => {
|
|
319
|
-
r || (i(o), localStorage.setItem("colorScheme", o));
|
|
320
|
-
}
|
|
321
|
-
}),
|
|
322
|
-
[a, c, r]
|
|
323
|
-
);
|
|
324
|
-
return /* @__PURE__ */ g(S.Provider, { value: { ...C, options: n }, children: /* @__PURE__ */ g("div", { "data-color-scheme": c, className: c, ...p, children: u }) });
|
|
325
|
-
}, da = () => {
|
|
326
|
-
const e = k(S);
|
|
327
|
-
if (!e)
|
|
328
|
-
throw new Error("useTheme must be used within a ThemeProvider");
|
|
329
|
-
return e;
|
|
330
|
-
};
|
|
331
|
-
export {
|
|
332
|
-
ga as T,
|
|
333
|
-
da as a,
|
|
334
|
-
B as t,
|
|
335
|
-
ia as u
|
|
336
|
-
};
|
|
337
|
-
//# sourceMappingURL=ThemeProvider-CkX-BNWN.mjs.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const B=require("react/jsx-runtime"),a=require("react"),r=require("./variables-DoI78zZc.js"),k="#f4e0ff",x="#c461f7",f="#29003e",m="#ede1d8",N="#4f4741",y="#3b332d",P="#ffffff",E="#202022",O="rgba(255, 255, 255, 0.95)",b="rgba(255, 255, 255, 0.66)",A="rgba(255, 255, 255, 0.37)",H="rgba(0, 0, 0, 0.8)",M="rgba(0, 0, 0, 0.54)",W="rgba(0, 0, 0, 0.44)",D="#f4e0ff",h="#faf0ff",F="#ffffff",L="#4e0174",R="#ffffff",w="#6d02a3",Q="#4e0174",j="#29003e",q="#ffffff",$="#ffffff",z="#29003e",K="#ffffff",Z="#29003e",G="#ffffff",J="#ffffff",U="#d58df9",X="#d58df9",Y="#ffafc9",_="#980233",V="#fb4885",rr="#e4175c",er="#79d9a7",or="#02562b",tr="#1fa15e",ar="#f9bb5b",ur="#f39200",cr="#a86602",nr="#91cdf4",ir="#3694d3",lr="#ffffff",pr="#ffffff",vr="#4e0174",sr="#202022",gr="#29003e",dr="#f4e0ff",Br="#ffffff",Sr="#121212",Cr="#ffffff",Tr="#202022",Ir="#f5f5fa",kr="rgba(0, 0, 0, 0.71)",xr="rgba(255, 255, 255, 0.84)",fr="#03385b",mr="#f4e0ff",Nr="#e4b6fb",yr="#d58df9",Pr="#4e0174",Er="#6d02a3",Or="#8c07d0",br="#990ae3",Ar="#c461f7",Hr="#d58df9",Mr="#990ae3",Wr="#6d02a3",Dr="#4e0174",hr="rgba(255, 255, 255, 0.11)",Fr="rgba(0, 0, 0, 0.1)",Lr="#4e0174",Rr="#e4b6fb",wr="#6d02a3",Qr="#d58df9",jr="rgba(255, 255, 255, 0.16)",qr="rgba(0, 0, 0, 0.05)",$r="rgba(255, 255, 255, 0.07)",zr="rgba(0, 0, 0, 0.05)",Kr="#e4175c",Zr="#c00543",Gr="#980233",Jr="#03385b",Ur="#62b2e7",Xr="#003e1e",Yr="#3dbf7c",_r="#1fa15e",Vr="#700025",re="#ff80ab",ee="#fb4885",oe="#4c2f03",te="#f39200",ae="#f39200",ue="#353537",ce="#6d02a3",ne="#f4e0ff",ie="#ffffff",le="#f4e0ff",pe="#29003e",ve="#4f4741",se="#2d2824",ge="rgba(255, 255, 255, 0.29)",de="rgba(0, 0, 0, 0.33)",Be="rgba(255, 255, 255, 0.46)",Se="rgba(0, 0, 0, 0.54)",Ce="rgba(255, 255, 255, 0.16)",Te="rgba(0, 0, 0, 0.16)",Ie="#c461f7",ke="#f4e0ff",xe="#6d02a3",fe="#faf0ff",me="#ffffff",Ne="#4e0174",ye="#29003e",Pe="#990ae3",Ee="#d58df9",Oe="rgba(255, 255, 255, 0.37)",be="rgba(0, 0, 0, 0.44)",Ae="#e4b6fb",He="#6d02a3",Me="#fb4885",We="#e4175c",De="#f39200",he="#3694d3",Fe="#1fa15e",Le="#018842",Re={colorBrandDeepPurple:k,colorBrandCorePurple:x,colorBrandLightPurple:f,colorBrandDeepBeige:m,colorBrandBeige:N,colorBrandLightBeige:y,colorBrandOffBlack:P,colorBrandWhite:E,colorTextDefault:O,colorTextMedium:b,colorTextWeak:A,colorTextDefaultNegative:H,colorTextMediumNegative:M,colorTextWeakNegative:W,colorTextInteractivePrimary:D,colorTextInteractivePrimaryHover:h,colorTextInteractivePrimaryActive:F,colorTextInteractiveOnPrimary:L,colorTextInteractiveOnExpressive:q,colorTextInteractiveOnExpressiveHover:z,colorTextInteractiveOnExpressiveActive:Z,colorTextInteractiveOnDestructive:J,colorTextInteractiveSelected:U,colorTextInteractivePrimaryNegative:w,colorTextInteractivePrimaryHoverNegative:Q,colorTextInteractivePrimaryActiveNegative:j,colorTextInteractiveOnPrimaryNegative:R,colorTextInteractiveOnExpressiveNegative:$,colorTextInteractiveOnExpressiveHoverNegative:K,colorTextInteractiveOnExpressiveActiveNegative:G,colorTextStatusInfoMedium:ir,colorTextStatusInfoStrong:nr,colorTextStatusSuccessMedium:tr,colorTextStatusSuccessStrong:er,colorTextStatusWarningMedium:ur,colorTextStatusWarningStrong:ar,colorTextStatusErrorMedium:V,colorTextStatusErrorStrong:Y,colorTextStatusNeutral:lr,colorTextStatusSpecial:pr,colorTextStatusAttention:vr,colorTextStatusDiscount:X,colorTextStatusBlackFriday:sr,colorTextStatusSuccessStrongNegative:or,colorTextStatusErrorMediumNegative:rr,colorTextStatusErrorStrongNegative:_,colorTextStatusWarningMediumNegative:cr,colorTextToneOnTonePrimary:gr,colorTextToneOnToneSecondary:dr,colorTextToneOnToneTertiary:Br,colorBackgroundPrimary:Sr,colorBackgroundSecondary:Tr,colorBackgroundOnImage:kr,colorBackgroundPrimaryNegative:Cr,colorBackgroundSecondaryNegative:Ir,colorBackgroundOnImageNegative:xr,colorBackgroundInteractivePrimary:mr,colorBackgroundInteractivePrimaryHover:Nr,colorBackgroundInteractivePrimaryActive:yr,colorBackgroundInteractiveExpressive:br,colorBackgroundInteractiveExpressiveHover:Ar,colorBackgroundInteractiveExpressiveActive:Hr,colorBackgroundInteractiveTransparentHover:Lr,colorBackgroundInteractiveTransparentActive:wr,colorBackgroundInteractiveDisabled:hr,colorBackgroundInteractiveReadOnly:$r,colorBackgroundInteractiveInactive:jr,colorBackgroundInteractiveDestructive:Kr,colorBackgroundInteractiveDestructiveHover:Zr,colorBackgroundInteractiveDestructiveActive:Gr,colorBackgroundInteractiveAutoFill:fr,colorBackgroundInteractivePrimaryNegative:Pr,colorBackgroundInteractivePrimaryHoverNegative:Er,colorBackgroundInteractivePrimaryActiveNegative:Or,colorBackgroundInteractiveExpressiveNegative:Mr,colorBackgroundInteractiveExpressiveHoverNegative:Wr,colorBackgroundInteractiveExpressiveActiveNegative:Dr,colorBackgroundInteractiveTransparentHoverNegative:Rr,colorBackgroundInteractiveTransparentActiveNegative:Qr,colorBackgroundInteractiveDisabledNegative:Fr,colorBackgroundInteractiveInactiveNegative:qr,colorBackgroundInteractiveReadOnlyNegative:zr,colorBackgroundStatusInfoMedium:Jr,colorBackgroundStatusInfoStrong:Ur,colorBackgroundStatusSuccessMedium:Xr,colorBackgroundStatusSuccessStrong:Yr,colorBackgroundStatusWarningMedium:oe,colorBackgroundStatusWarningStrong:te,colorBackgroundStatusErrorMedium:Vr,colorBackgroundStatusErrorStrong:re,colorBackgroundStatusNeutral:ue,colorBackgroundStatusSpecial:ce,colorBackgroundStatusAttention:ne,colorBackgroundStatusBlackFriday:ie,colorBackgroundStatusSuccessStrongNegative:_r,colorBackgroundStatusWarningStrongNegative:ae,colorBackgroundStatusErrorStrongNegative:ee,colorBackgroundToneOnTonePrimary:le,colorBackgroundToneOnToneSecondary:pe,colorBackgroundToneOnToneTertiary:ve,colorBackgroundToneOnToneQuaternary:se,colorBorderWeak:Ce,colorBorderMedium:ge,colorBorderStrong:Be,colorBorderWeakNegative:Te,colorBorderMediumNegative:de,colorBorderStrongNegative:Se,colorBorderInteractivePrimary:ke,colorBorderInteractivePrimaryHover:fe,colorBorderInteractivePrimaryActive:me,colorBorderInteractiveFocus:Ie,colorBorderInteractiveExpressive:Pe,colorBorderInteractiveSubtle:Oe,colorBorderInteractiveSubtleHover:Ae,colorBorderInteractiveSelected:Ee,colorBorderInteractivePrimaryNegative:xe,colorBorderInteractivePrimaryHoverNegative:Ne,colorBorderInteractivePrimaryActiveNegative:ye,colorBorderInteractiveSubtleNegative:be,colorBorderInteractiveSubtleHoverNegative:He,colorBorderStatusError:Me,colorBorderStatusWarning:De,colorBorderStatusInfo:he,colorBorderStatusSuccess:Fe,colorBorderStatusErrorNegative:We,colorBorderStatusSuccessNegative:Le},we={colorBrandDeepPurple:r.purpurColorBrandDeepPurple,colorBrandCorePurple:r.purpurColorBrandCorePurple,colorBrandLightPurple:r.purpurColorBrandLightPurple,colorBrandDeepBeige:r.purpurColorBrandDeepBeige,colorBrandBeige:r.purpurColorBrandBeige,colorBrandLightBeige:r.purpurColorBrandLightBeige,colorBrandOffBlack:r.purpurColorBrandOffBlack,colorBrandWhite:r.purpurColorBrandWhite,colorTextDefault:r.purpurColorTextDefault,colorTextMedium:r.purpurColorTextMedium,colorTextWeak:r.purpurColorTextWeak,colorTextDefaultNegative:r.purpurColorTextDefaultNegative,colorTextMediumNegative:r.purpurColorTextMediumNegative,colorTextWeakNegative:r.purpurColorTextWeakNegative,colorTextInteractivePrimary:r.purpurColorTextInteractivePrimary,colorTextInteractivePrimaryHover:r.purpurColorTextInteractivePrimaryHover,colorTextInteractivePrimaryActive:r.purpurColorTextInteractivePrimaryActive,colorTextInteractiveOnPrimary:r.purpurColorTextInteractiveOnPrimary,colorTextInteractiveOnExpressive:r.purpurColorTextInteractiveOnExpressive,colorTextInteractiveOnExpressiveHover:r.purpurColorTextInteractiveOnExpressiveHover,colorTextInteractiveOnExpressiveActive:r.purpurColorTextInteractiveOnExpressiveActive,colorTextInteractiveOnDestructive:r.purpurColorTextInteractiveOnDestructive,colorTextInteractiveSelected:r.purpurColorTextInteractiveSelected,colorTextInteractivePrimaryNegative:r.purpurColorTextInteractivePrimaryNegative,colorTextInteractivePrimaryHoverNegative:r.purpurColorTextInteractivePrimaryHoverNegative,colorTextInteractivePrimaryActiveNegative:r.purpurColorTextInteractivePrimaryActiveNegative,colorTextInteractiveOnPrimaryNegative:r.purpurColorTextInteractiveOnPrimaryNegative,colorTextInteractiveOnExpressiveNegative:r.purpurColorTextInteractiveOnExpressiveNegative,colorTextInteractiveOnExpressiveHoverNegative:r.purpurColorTextInteractiveOnExpressiveHoverNegative,colorTextInteractiveOnExpressiveActiveNegative:r.purpurColorTextInteractiveOnExpressiveActiveNegative,colorTextStatusInfoMedium:r.purpurColorTextStatusInfoMedium,colorTextStatusInfoStrong:r.purpurColorTextStatusInfoStrong,colorTextStatusSuccessMedium:r.purpurColorTextStatusSuccessMedium,colorTextStatusSuccessStrong:r.purpurColorTextStatusSuccessStrong,colorTextStatusWarningMedium:r.purpurColorTextStatusWarningMedium,colorTextStatusWarningStrong:r.purpurColorTextStatusWarningStrong,colorTextStatusErrorMedium:r.purpurColorTextStatusErrorMedium,colorTextStatusErrorStrong:r.purpurColorTextStatusErrorStrong,colorTextStatusNeutral:r.purpurColorTextStatusNeutral,colorTextStatusSpecial:r.purpurColorTextStatusSpecial,colorTextStatusAttention:r.purpurColorTextStatusAttention,colorTextStatusDiscount:r.purpurColorTextStatusDiscount,colorTextStatusBlackFriday:r.purpurColorTextStatusBlackFriday,colorTextStatusSuccessStrongNegative:r.purpurColorTextStatusSuccessStrongNegative,colorTextStatusErrorMediumNegative:r.purpurColorTextStatusErrorMediumNegative,colorTextStatusErrorStrongNegative:r.purpurColorTextStatusErrorStrongNegative,colorTextStatusWarningMediumNegative:r.purpurColorTextStatusWarningMediumNegative,colorTextToneOnTonePrimary:r.purpurColorTextToneOnTonePrimary,colorTextToneOnToneSecondary:r.purpurColorTextToneOnToneSecondary,colorTextToneOnToneTertiary:r.purpurColorTextToneOnToneTertiary,colorBackgroundPrimary:r.purpurColorBackgroundPrimary,colorBackgroundSecondary:r.purpurColorBackgroundSecondary,colorBackgroundOnImage:r.purpurColorBackgroundOnImage,colorBackgroundPrimaryNegative:r.purpurColorBackgroundPrimaryNegative,colorBackgroundSecondaryNegative:r.purpurColorBackgroundSecondaryNegative,colorBackgroundOnImageNegative:r.purpurColorBackgroundOnImageNegative,colorBackgroundInteractivePrimary:r.purpurColorBackgroundInteractivePrimary,colorBackgroundInteractivePrimaryHover:r.purpurColorBackgroundInteractivePrimaryHover,colorBackgroundInteractivePrimaryActive:r.purpurColorBackgroundInteractivePrimaryActive,colorBackgroundInteractiveExpressive:r.purpurColorBackgroundInteractiveExpressive,colorBackgroundInteractiveExpressiveHover:r.purpurColorBackgroundInteractiveExpressiveHover,colorBackgroundInteractiveExpressiveActive:r.purpurColorBackgroundInteractiveExpressiveActive,colorBackgroundInteractiveTransparentHover:r.purpurColorBackgroundInteractiveTransparentHover,colorBackgroundInteractiveTransparentActive:r.purpurColorBackgroundInteractiveTransparentActive,colorBackgroundInteractiveDisabled:r.purpurColorBackgroundInteractiveDisabled,colorBackgroundInteractiveReadOnly:r.purpurColorBackgroundInteractiveReadOnly,colorBackgroundInteractiveInactive:r.purpurColorBackgroundInteractiveInactive,colorBackgroundInteractiveDestructive:r.purpurColorBackgroundInteractiveDestructive,colorBackgroundInteractiveDestructiveHover:r.purpurColorBackgroundInteractiveDestructiveHover,colorBackgroundInteractiveDestructiveActive:r.purpurColorBackgroundInteractiveDestructiveActive,colorBackgroundInteractiveAutoFill:r.purpurColorBackgroundInteractiveAutoFill,colorBackgroundInteractivePrimaryNegative:r.purpurColorBackgroundInteractivePrimaryNegative,colorBackgroundInteractivePrimaryHoverNegative:r.purpurColorBackgroundInteractivePrimaryHoverNegative,colorBackgroundInteractivePrimaryActiveNegative:r.purpurColorBackgroundInteractivePrimaryActiveNegative,colorBackgroundInteractiveExpressiveNegative:r.purpurColorBackgroundInteractiveExpressiveNegative,colorBackgroundInteractiveExpressiveHoverNegative:r.purpurColorBackgroundInteractiveExpressiveHoverNegative,colorBackgroundInteractiveExpressiveActiveNegative:r.purpurColorBackgroundInteractiveExpressiveActiveNegative,colorBackgroundInteractiveTransparentHoverNegative:r.purpurColorBackgroundInteractiveTransparentHoverNegative,colorBackgroundInteractiveTransparentActiveNegative:r.purpurColorBackgroundInteractiveTransparentActiveNegative,colorBackgroundInteractiveDisabledNegative:r.purpurColorBackgroundInteractiveDisabledNegative,colorBackgroundInteractiveInactiveNegative:r.purpurColorBackgroundInteractiveInactiveNegative,colorBackgroundInteractiveReadOnlyNegative:r.purpurColorBackgroundInteractiveReadOnlyNegative,colorBackgroundStatusInfoMedium:r.purpurColorBackgroundStatusInfoMedium,colorBackgroundStatusInfoStrong:r.purpurColorBackgroundStatusInfoStrong,colorBackgroundStatusSuccessMedium:r.purpurColorBackgroundStatusSuccessMedium,colorBackgroundStatusSuccessStrong:r.purpurColorBackgroundStatusSuccessStrong,colorBackgroundStatusWarningMedium:r.purpurColorBackgroundStatusWarningMedium,colorBackgroundStatusWarningStrong:r.purpurColorBackgroundStatusWarningStrong,colorBackgroundStatusErrorMedium:r.purpurColorBackgroundStatusErrorMedium,colorBackgroundStatusErrorStrong:r.purpurColorBackgroundStatusErrorStrong,colorBackgroundStatusNeutral:r.purpurColorBackgroundStatusNeutral,colorBackgroundStatusSpecial:r.purpurColorBackgroundStatusSpecial,colorBackgroundStatusAttention:r.purpurColorBackgroundStatusAttention,colorBackgroundStatusBlackFriday:r.purpurColorBackgroundStatusBlackFriday,colorBackgroundStatusSuccessStrongNegative:r.purpurColorBackgroundStatusSuccessStrongNegative,colorBackgroundStatusWarningStrongNegative:r.purpurColorBackgroundStatusWarningStrongNegative,colorBackgroundStatusErrorStrongNegative:r.purpurColorBackgroundStatusErrorStrongNegative,colorBackgroundToneOnTonePrimary:r.purpurColorBackgroundToneOnTonePrimary,colorBackgroundToneOnToneSecondary:r.purpurColorBackgroundToneOnToneSecondary,colorBackgroundToneOnToneTertiary:r.purpurColorBackgroundToneOnToneTertiary,colorBackgroundToneOnToneQuaternary:r.purpurColorBackgroundToneOnToneQuaternary,colorBorderWeak:r.purpurColorBorderWeak,colorBorderMedium:r.purpurColorBorderMedium,colorBorderStrong:r.purpurColorBorderStrong,colorBorderWeakNegative:r.purpurColorBorderWeakNegative,colorBorderMediumNegative:r.purpurColorBorderMediumNegative,colorBorderStrongNegative:r.purpurColorBorderStrongNegative,colorBorderInteractivePrimary:r.purpurColorBorderInteractivePrimary,colorBorderInteractivePrimaryHover:r.purpurColorBorderInteractivePrimaryHover,colorBorderInteractivePrimaryActive:r.purpurColorBorderInteractivePrimaryActive,colorBorderInteractiveFocus:r.purpurColorBorderInteractiveFocus,colorBorderInteractiveExpressive:r.purpurColorBorderInteractiveExpressive,colorBorderInteractiveSubtle:r.purpurColorBorderInteractiveSubtle,colorBorderInteractiveSubtleHover:r.purpurColorBorderInteractiveSubtleHover,colorBorderInteractiveSelected:r.purpurColorBorderInteractiveSelected,colorBorderInteractivePrimaryNegative:r.purpurColorBorderInteractivePrimaryNegative,colorBorderInteractivePrimaryHoverNegative:r.purpurColorBorderInteractivePrimaryHoverNegative,colorBorderInteractivePrimaryActiveNegative:r.purpurColorBorderInteractivePrimaryActiveNegative,colorBorderInteractiveSubtleNegative:r.purpurColorBorderInteractiveSubtleNegative,colorBorderInteractiveSubtleHoverNegative:r.purpurColorBorderInteractiveSubtleHoverNegative,colorBorderStatusError:r.purpurColorBorderStatusError,colorBorderStatusWarning:r.purpurColorBorderStatusWarning,colorBorderStatusInfo:r.purpurColorBorderStatusInfo,colorBorderStatusSuccess:r.purpurColorBorderStatusSuccess,colorBorderStatusErrorNegative:r.purpurColorBorderStatusErrorNegative,colorBorderStatusSuccessNegative:r.purpurColorBorderStatusSuccessNegative},s={light:we,dark:Re},Qe=o=>o.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),S=({theme:o=s,cssVariablesSelector:e,currentColorScheme:u})=>{a.useEffect(()=>{u&&Object.entries(o?.[u]??s[u]).forEach(([i,l])=>{((e?document.querySelector(e):null)??document.documentElement).style.setProperty(`--purpur-${Qe(i)}`,l)})},[o,e,u])},C=a.createContext({colorScheme:"light",currentColorScheme:"light",setColorScheme:()=>{},options:{}}),je=({cssVariablesSelector:o,forceColorScheme:e,theme:u,children:i,options:l={},...g})=>{const[c,p]=a.useState(e??"auto"),[n,v]=a.useState(e??"light");a.useEffect(()=>{if(e)p(e);else{const t=localStorage.getItem("colorScheme");t&&p(t)}},[e]),a.useEffect(()=>{const t=window.matchMedia("(prefers-color-scheme: dark)");v(c==="auto"?t.matches?"dark":"light":c);const d=I=>{!e&&c==="auto"&&v(I.matches?"dark":"light")};return t.addEventListener("change",d),()=>{t.removeEventListener("change",d)}},[c,e]),S({theme:u,cssVariablesSelector:o,currentColorScheme:u!==void 0?n:void 0});const T=a.useMemo(()=>({colorScheme:c,currentColorScheme:n,setColorScheme:t=>{e||(p(t),localStorage.setItem("colorScheme",t))}}),[c,n,e]);return B.jsx(C.Provider,{value:{...T,options:l},children:B.jsx("div",{"data-color-scheme":n,className:n,...g,children:i})})},qe=()=>{const o=a.useContext(C);if(!o)throw new Error("useTheme must be used within a ThemeProvider");return o};exports.ThemeProvider=je;exports.teliaTheme=s;exports.useApplyTheme=S;exports.useTheme=qe;
|
|
2
|
-
//# sourceMappingURL=ThemeProvider-Dy771oix.js.map
|