@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
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
import { jsx as B } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect as p, createContext as x, useContext as m, useState as l, useMemo as f } from "react";
|
|
3
|
+
import { aC as N, az as y, aB as $, aA as P, aD as E, ay as O, au as b, av as A, an as H, ap as M, aq as W, ar as D, at as h, as as F, aj as L, ak as w, am as R, ao as Q, al as j, aF as q, ax as z, aH as G, aE as K, aw as J, aG as U, W as X, Y, X as Z, V, K as _, U as rr, R as er, H as or, G as tr, O as ar, N as cr, J as ur, I as nr, T as ir, S as sr, Q as lr, P as pr, M as vr, L as gr, v as dr, m as Br, e as Sr, x as Cr, z as Ir, h as Tr, j as kr, k as xr, q as mr, s as fr, t as Nr, p as yr, b as $r, c as Pr, a as Er, l as Or, u as br, d as Ar, w as Hr, y as Mr, g as Wr, i as Dr, f as hr, o as Fr, r as Lr, n as wr, B as Rr, F as Qr, D as jr, A as qr, E as zr, C as Gr, cG as Kr, cF as Jr, cE as Ur, cC as Xr, cs as Yr, cq as Zr, cA as Vr, cn as _r, co as re, cm as ee, cw as oe, cv as te, cr as ae, cp as ce, cD as ue, cB as ne, cz as ie, cx as se, cu as le, ct as pe, c6 as ve, c8 as ge, c9 as de, cb as Be, ce as Se, cg as Ce, ch as Ie, ci as Te, c3 as ke, c5 as xe, c7 as me, c4 as fe, ca as Ne, cd as ye, cf as $e, cc as Pe, cI as Ee, cl as Oe, c2 as be, cH as Ae, ck as He, c1 as Me, aP as We, aO as De, aM as he, aI as Fe, aK as Le, aN as we, aJ as Re, aL as Qe } from "./variables-B5hbV0Uy.mjs";
|
|
4
|
+
const je = "#f4e0ff", qe = "#c461f7", ze = "#29003e", Ge = "#ede1d8", Ke = "#4f4741", Je = "#3b332d", Ue = "#ffffff", Xe = "#202022", Ye = "rgba(255, 255, 255, 0.95)", Ze = "rgba(255, 255, 255, 0.66)", Ve = "rgba(255, 255, 255, 0.37)", _e = "rgba(0, 0, 0, 0.8)", ro = "rgba(0, 0, 0, 0.54)", eo = "rgba(0, 0, 0, 0.44)", oo = "#f4e0ff", to = "#faf0ff", ao = "#ffffff", co = "#4e0174", uo = "#ffffff", no = "#6d02a3", io = "#4e0174", so = "#29003e", lo = "#ffffff", po = "#ffffff", vo = "#29003e", go = "#ffffff", Bo = "#29003e", So = "#ffffff", Co = "#ffffff", Io = "#d58df9", To = "#d58df9", ko = "#ffafc9", xo = "#980233", mo = "#fb4885", fo = "#e4175c", No = "#79d9a7", yo = "#02562b", $o = "#1fa15e", Po = "#f9bb5b", Eo = "#f39200", Oo = "#a86602", bo = "#91cdf4", Ao = "#3694d3", Ho = "#ffffff", Mo = "#ffffff", Wo = "#4e0174", Do = "#202022", ho = "#29003e", Fo = "#f4e0ff", Lo = "#ffffff", wo = "#121212", Ro = "#ffffff", Qo = "#202022", jo = "#f5f5fa", qo = "rgba(0, 0, 0, 0.71)", zo = "rgba(255, 255, 255, 0.84)", Go = "#03385b", Ko = "#f4e0ff", Jo = "#e4b6fb", Uo = "#d58df9", Xo = "#4e0174", Yo = "#6d02a3", Zo = "#8c07d0", Vo = "#990ae3", _o = "#c461f7", rt = "#d58df9", et = "#990ae3", ot = "#6d02a3", tt = "#4e0174", at = "rgba(255, 255, 255, 0.11)", ct = "rgba(0, 0, 0, 0.1)", ut = "#4e0174", nt = "#e4b6fb", it = "#6d02a3", st = "#d58df9", lt = "rgba(255, 255, 255, 0.16)", pt = "rgba(0, 0, 0, 0.05)", vt = "rgba(255, 255, 255, 0.07)", gt = "rgba(0, 0, 0, 0.05)", dt = "#e4175c", Bt = "#c00543", St = "#980233", Ct = "#03385b", It = "#62b2e7", Tt = "#003e1e", kt = "#3dbf7c", xt = "#1fa15e", mt = "#700025", ft = "#ff80ab", Nt = "#fb4885", yt = "#4c2f03", $t = "#f39200", Pt = "#f39200", Et = "#353537", Ot = "#6d02a3", bt = "#f4e0ff", At = "#ffffff", Ht = "#f4e0ff", Mt = "#29003e", Wt = "#4f4741", Dt = "#2d2824", ht = "rgba(255, 255, 255, 0.29)", Ft = "rgba(0, 0, 0, 0.33)", Lt = "rgba(255, 255, 255, 0.46)", wt = "rgba(0, 0, 0, 0.54)", Rt = "rgba(255, 255, 255, 0.16)", Qt = "rgba(0, 0, 0, 0.16)", jt = "#c461f7", qt = "#f4e0ff", zt = "#6d02a3", Gt = "#faf0ff", Kt = "#ffffff", Jt = "#4e0174", Ut = "#29003e", Xt = "#990ae3", Yt = "#d58df9", Zt = "rgba(255, 255, 255, 0.37)", Vt = "rgba(0, 0, 0, 0.44)", _t = "#e4b6fb", ra = "#6d02a3", ea = "#fb4885", oa = "#e4175c", ta = "#f39200", aa = "#3694d3", ca = "#1fa15e", ua = "#018842", na = {
|
|
5
|
+
colorBrandDeepPurple: je,
|
|
6
|
+
colorBrandCorePurple: qe,
|
|
7
|
+
colorBrandLightPurple: ze,
|
|
8
|
+
colorBrandDeepBeige: Ge,
|
|
9
|
+
colorBrandBeige: Ke,
|
|
10
|
+
colorBrandLightBeige: Je,
|
|
11
|
+
colorBrandOffBlack: Ue,
|
|
12
|
+
colorBrandWhite: Xe,
|
|
13
|
+
colorTextDefault: Ye,
|
|
14
|
+
colorTextMedium: Ze,
|
|
15
|
+
colorTextWeak: Ve,
|
|
16
|
+
colorTextDefaultNegative: _e,
|
|
17
|
+
colorTextMediumNegative: ro,
|
|
18
|
+
colorTextWeakNegative: eo,
|
|
19
|
+
colorTextInteractivePrimary: oo,
|
|
20
|
+
colorTextInteractivePrimaryHover: to,
|
|
21
|
+
colorTextInteractivePrimaryActive: ao,
|
|
22
|
+
colorTextInteractiveOnPrimary: co,
|
|
23
|
+
colorTextInteractiveOnExpressive: lo,
|
|
24
|
+
colorTextInteractiveOnExpressiveHover: vo,
|
|
25
|
+
colorTextInteractiveOnExpressiveActive: Bo,
|
|
26
|
+
colorTextInteractiveOnDestructive: Co,
|
|
27
|
+
colorTextInteractiveSelected: Io,
|
|
28
|
+
colorTextInteractivePrimaryNegative: no,
|
|
29
|
+
colorTextInteractivePrimaryHoverNegative: io,
|
|
30
|
+
colorTextInteractivePrimaryActiveNegative: so,
|
|
31
|
+
colorTextInteractiveOnPrimaryNegative: uo,
|
|
32
|
+
colorTextInteractiveOnExpressiveNegative: po,
|
|
33
|
+
colorTextInteractiveOnExpressiveHoverNegative: go,
|
|
34
|
+
colorTextInteractiveOnExpressiveActiveNegative: So,
|
|
35
|
+
colorTextStatusInfoMedium: Ao,
|
|
36
|
+
colorTextStatusInfoStrong: bo,
|
|
37
|
+
colorTextStatusSuccessMedium: $o,
|
|
38
|
+
colorTextStatusSuccessStrong: No,
|
|
39
|
+
colorTextStatusWarningMedium: Eo,
|
|
40
|
+
colorTextStatusWarningStrong: Po,
|
|
41
|
+
colorTextStatusErrorMedium: mo,
|
|
42
|
+
colorTextStatusErrorStrong: ko,
|
|
43
|
+
colorTextStatusNeutral: Ho,
|
|
44
|
+
colorTextStatusSpecial: Mo,
|
|
45
|
+
colorTextStatusAttention: Wo,
|
|
46
|
+
colorTextStatusDiscount: To,
|
|
47
|
+
colorTextStatusBlackFriday: Do,
|
|
48
|
+
colorTextStatusSuccessStrongNegative: yo,
|
|
49
|
+
colorTextStatusErrorMediumNegative: fo,
|
|
50
|
+
colorTextStatusErrorStrongNegative: xo,
|
|
51
|
+
colorTextStatusWarningMediumNegative: Oo,
|
|
52
|
+
colorTextToneOnTonePrimary: ho,
|
|
53
|
+
colorTextToneOnToneSecondary: Fo,
|
|
54
|
+
colorTextToneOnToneTertiary: Lo,
|
|
55
|
+
colorBackgroundPrimary: wo,
|
|
56
|
+
colorBackgroundSecondary: Qo,
|
|
57
|
+
colorBackgroundOnImage: qo,
|
|
58
|
+
colorBackgroundPrimaryNegative: Ro,
|
|
59
|
+
colorBackgroundSecondaryNegative: jo,
|
|
60
|
+
colorBackgroundOnImageNegative: zo,
|
|
61
|
+
colorBackgroundInteractivePrimary: Ko,
|
|
62
|
+
colorBackgroundInteractivePrimaryHover: Jo,
|
|
63
|
+
colorBackgroundInteractivePrimaryActive: Uo,
|
|
64
|
+
colorBackgroundInteractiveExpressive: Vo,
|
|
65
|
+
colorBackgroundInteractiveExpressiveHover: _o,
|
|
66
|
+
colorBackgroundInteractiveExpressiveActive: rt,
|
|
67
|
+
colorBackgroundInteractiveTransparentHover: ut,
|
|
68
|
+
colorBackgroundInteractiveTransparentActive: it,
|
|
69
|
+
colorBackgroundInteractiveDisabled: at,
|
|
70
|
+
colorBackgroundInteractiveReadOnly: vt,
|
|
71
|
+
colorBackgroundInteractiveInactive: lt,
|
|
72
|
+
colorBackgroundInteractiveDestructive: dt,
|
|
73
|
+
colorBackgroundInteractiveDestructiveHover: Bt,
|
|
74
|
+
colorBackgroundInteractiveDestructiveActive: St,
|
|
75
|
+
colorBackgroundInteractiveAutoFill: Go,
|
|
76
|
+
colorBackgroundInteractivePrimaryNegative: Xo,
|
|
77
|
+
colorBackgroundInteractivePrimaryHoverNegative: Yo,
|
|
78
|
+
colorBackgroundInteractivePrimaryActiveNegative: Zo,
|
|
79
|
+
colorBackgroundInteractiveExpressiveNegative: et,
|
|
80
|
+
colorBackgroundInteractiveExpressiveHoverNegative: ot,
|
|
81
|
+
colorBackgroundInteractiveExpressiveActiveNegative: tt,
|
|
82
|
+
colorBackgroundInteractiveTransparentHoverNegative: nt,
|
|
83
|
+
colorBackgroundInteractiveTransparentActiveNegative: st,
|
|
84
|
+
colorBackgroundInteractiveDisabledNegative: ct,
|
|
85
|
+
colorBackgroundInteractiveInactiveNegative: pt,
|
|
86
|
+
colorBackgroundInteractiveReadOnlyNegative: gt,
|
|
87
|
+
colorBackgroundStatusInfoMedium: Ct,
|
|
88
|
+
colorBackgroundStatusInfoStrong: It,
|
|
89
|
+
colorBackgroundStatusSuccessMedium: Tt,
|
|
90
|
+
colorBackgroundStatusSuccessStrong: kt,
|
|
91
|
+
colorBackgroundStatusWarningMedium: yt,
|
|
92
|
+
colorBackgroundStatusWarningStrong: $t,
|
|
93
|
+
colorBackgroundStatusErrorMedium: mt,
|
|
94
|
+
colorBackgroundStatusErrorStrong: ft,
|
|
95
|
+
colorBackgroundStatusNeutral: Et,
|
|
96
|
+
colorBackgroundStatusSpecial: Ot,
|
|
97
|
+
colorBackgroundStatusAttention: bt,
|
|
98
|
+
colorBackgroundStatusBlackFriday: At,
|
|
99
|
+
colorBackgroundStatusSuccessStrongNegative: xt,
|
|
100
|
+
colorBackgroundStatusWarningStrongNegative: Pt,
|
|
101
|
+
colorBackgroundStatusErrorStrongNegative: Nt,
|
|
102
|
+
colorBackgroundToneOnTonePrimary: Ht,
|
|
103
|
+
colorBackgroundToneOnToneSecondary: Mt,
|
|
104
|
+
colorBackgroundToneOnToneTertiary: Wt,
|
|
105
|
+
colorBackgroundToneOnToneQuaternary: Dt,
|
|
106
|
+
colorBorderWeak: Rt,
|
|
107
|
+
colorBorderMedium: ht,
|
|
108
|
+
colorBorderStrong: Lt,
|
|
109
|
+
colorBorderWeakNegative: Qt,
|
|
110
|
+
colorBorderMediumNegative: Ft,
|
|
111
|
+
colorBorderStrongNegative: wt,
|
|
112
|
+
colorBorderInteractivePrimary: qt,
|
|
113
|
+
colorBorderInteractivePrimaryHover: Gt,
|
|
114
|
+
colorBorderInteractivePrimaryActive: Kt,
|
|
115
|
+
colorBorderInteractiveFocus: jt,
|
|
116
|
+
colorBorderInteractiveExpressive: Xt,
|
|
117
|
+
colorBorderInteractiveSubtle: Zt,
|
|
118
|
+
colorBorderInteractiveSubtleHover: _t,
|
|
119
|
+
colorBorderInteractiveSelected: Yt,
|
|
120
|
+
colorBorderInteractivePrimaryNegative: zt,
|
|
121
|
+
colorBorderInteractivePrimaryHoverNegative: Jt,
|
|
122
|
+
colorBorderInteractivePrimaryActiveNegative: Ut,
|
|
123
|
+
colorBorderInteractiveSubtleNegative: Vt,
|
|
124
|
+
colorBorderInteractiveSubtleHoverNegative: ra,
|
|
125
|
+
colorBorderStatusError: ea,
|
|
126
|
+
colorBorderStatusWarning: ta,
|
|
127
|
+
colorBorderStatusInfo: aa,
|
|
128
|
+
colorBorderStatusSuccess: ca,
|
|
129
|
+
colorBorderStatusErrorNegative: oa,
|
|
130
|
+
colorBorderStatusSuccessNegative: ua
|
|
131
|
+
}, ia = {
|
|
132
|
+
colorBrandDeepPurple: Qe,
|
|
133
|
+
colorBrandCorePurple: Re,
|
|
134
|
+
colorBrandLightPurple: we,
|
|
135
|
+
colorBrandDeepBeige: Le,
|
|
136
|
+
colorBrandBeige: Fe,
|
|
137
|
+
colorBrandLightBeige: he,
|
|
138
|
+
colorBrandOffBlack: De,
|
|
139
|
+
colorBrandWhite: We,
|
|
140
|
+
colorTextDefault: Me,
|
|
141
|
+
colorTextMedium: He,
|
|
142
|
+
colorTextWeak: Ae,
|
|
143
|
+
colorTextDefaultNegative: be,
|
|
144
|
+
colorTextMediumNegative: Oe,
|
|
145
|
+
colorTextWeakNegative: Ee,
|
|
146
|
+
colorTextInteractivePrimary: Pe,
|
|
147
|
+
colorTextInteractivePrimaryHover: $e,
|
|
148
|
+
colorTextInteractivePrimaryActive: ye,
|
|
149
|
+
colorTextInteractiveOnPrimary: Ne,
|
|
150
|
+
colorTextInteractiveOnExpressive: fe,
|
|
151
|
+
colorTextInteractiveOnExpressiveHover: me,
|
|
152
|
+
colorTextInteractiveOnExpressiveActive: xe,
|
|
153
|
+
colorTextInteractiveOnDestructive: ke,
|
|
154
|
+
colorTextInteractiveSelected: Te,
|
|
155
|
+
colorTextInteractivePrimaryNegative: Ie,
|
|
156
|
+
colorTextInteractivePrimaryHoverNegative: Ce,
|
|
157
|
+
colorTextInteractivePrimaryActiveNegative: Se,
|
|
158
|
+
colorTextInteractiveOnPrimaryNegative: Be,
|
|
159
|
+
colorTextInteractiveOnExpressiveNegative: de,
|
|
160
|
+
colorTextInteractiveOnExpressiveHoverNegative: ge,
|
|
161
|
+
colorTextInteractiveOnExpressiveActiveNegative: ve,
|
|
162
|
+
colorTextStatusInfoMedium: pe,
|
|
163
|
+
colorTextStatusInfoStrong: le,
|
|
164
|
+
colorTextStatusSuccessMedium: se,
|
|
165
|
+
colorTextStatusSuccessStrong: ie,
|
|
166
|
+
colorTextStatusWarningMedium: ne,
|
|
167
|
+
colorTextStatusWarningStrong: ue,
|
|
168
|
+
colorTextStatusErrorMedium: ce,
|
|
169
|
+
colorTextStatusErrorStrong: ae,
|
|
170
|
+
colorTextStatusNeutral: te,
|
|
171
|
+
colorTextStatusSpecial: oe,
|
|
172
|
+
colorTextStatusAttention: ee,
|
|
173
|
+
colorTextStatusDiscount: re,
|
|
174
|
+
colorTextStatusBlackFriday: _r,
|
|
175
|
+
colorTextStatusSuccessStrongNegative: Vr,
|
|
176
|
+
colorTextStatusErrorMediumNegative: Zr,
|
|
177
|
+
colorTextStatusErrorStrongNegative: Yr,
|
|
178
|
+
colorTextStatusWarningMediumNegative: Xr,
|
|
179
|
+
colorTextToneOnTonePrimary: Ur,
|
|
180
|
+
colorTextToneOnToneSecondary: Jr,
|
|
181
|
+
colorTextToneOnToneTertiary: Kr,
|
|
182
|
+
colorBackgroundPrimary: Gr,
|
|
183
|
+
colorBackgroundSecondary: zr,
|
|
184
|
+
colorBackgroundOnImage: qr,
|
|
185
|
+
colorBackgroundPrimaryNegative: jr,
|
|
186
|
+
colorBackgroundSecondaryNegative: Qr,
|
|
187
|
+
colorBackgroundOnImageNegative: Rr,
|
|
188
|
+
colorBackgroundInteractivePrimary: wr,
|
|
189
|
+
colorBackgroundInteractivePrimaryHover: Lr,
|
|
190
|
+
colorBackgroundInteractivePrimaryActive: Fr,
|
|
191
|
+
colorBackgroundInteractiveExpressive: hr,
|
|
192
|
+
colorBackgroundInteractiveExpressiveHover: Dr,
|
|
193
|
+
colorBackgroundInteractiveExpressiveActive: Wr,
|
|
194
|
+
colorBackgroundInteractiveTransparentHover: Mr,
|
|
195
|
+
colorBackgroundInteractiveTransparentActive: Hr,
|
|
196
|
+
colorBackgroundInteractiveDisabled: Ar,
|
|
197
|
+
colorBackgroundInteractiveReadOnly: br,
|
|
198
|
+
colorBackgroundInteractiveInactive: Or,
|
|
199
|
+
colorBackgroundInteractiveDestructive: Er,
|
|
200
|
+
colorBackgroundInteractiveDestructiveHover: Pr,
|
|
201
|
+
colorBackgroundInteractiveDestructiveActive: $r,
|
|
202
|
+
colorBackgroundInteractiveAutoFill: yr,
|
|
203
|
+
colorBackgroundInteractivePrimaryNegative: Nr,
|
|
204
|
+
colorBackgroundInteractivePrimaryHoverNegative: fr,
|
|
205
|
+
colorBackgroundInteractivePrimaryActiveNegative: mr,
|
|
206
|
+
colorBackgroundInteractiveExpressiveNegative: xr,
|
|
207
|
+
colorBackgroundInteractiveExpressiveHoverNegative: kr,
|
|
208
|
+
colorBackgroundInteractiveExpressiveActiveNegative: Tr,
|
|
209
|
+
colorBackgroundInteractiveTransparentHoverNegative: Ir,
|
|
210
|
+
colorBackgroundInteractiveTransparentActiveNegative: Cr,
|
|
211
|
+
colorBackgroundInteractiveDisabledNegative: Sr,
|
|
212
|
+
colorBackgroundInteractiveInactiveNegative: Br,
|
|
213
|
+
colorBackgroundInteractiveReadOnlyNegative: dr,
|
|
214
|
+
colorBackgroundStatusInfoMedium: gr,
|
|
215
|
+
colorBackgroundStatusInfoStrong: vr,
|
|
216
|
+
colorBackgroundStatusSuccessMedium: pr,
|
|
217
|
+
colorBackgroundStatusSuccessStrong: lr,
|
|
218
|
+
colorBackgroundStatusWarningMedium: sr,
|
|
219
|
+
colorBackgroundStatusWarningStrong: ir,
|
|
220
|
+
colorBackgroundStatusErrorMedium: nr,
|
|
221
|
+
colorBackgroundStatusErrorStrong: ur,
|
|
222
|
+
colorBackgroundStatusNeutral: cr,
|
|
223
|
+
colorBackgroundStatusSpecial: ar,
|
|
224
|
+
colorBackgroundStatusAttention: tr,
|
|
225
|
+
colorBackgroundStatusBlackFriday: or,
|
|
226
|
+
colorBackgroundStatusSuccessStrongNegative: er,
|
|
227
|
+
colorBackgroundStatusWarningStrongNegative: rr,
|
|
228
|
+
colorBackgroundStatusErrorStrongNegative: _,
|
|
229
|
+
colorBackgroundToneOnTonePrimary: V,
|
|
230
|
+
colorBackgroundToneOnToneSecondary: Z,
|
|
231
|
+
colorBackgroundToneOnToneTertiary: Y,
|
|
232
|
+
colorBackgroundToneOnToneQuaternary: X,
|
|
233
|
+
colorBorderWeak: U,
|
|
234
|
+
colorBorderMedium: J,
|
|
235
|
+
colorBorderStrong: K,
|
|
236
|
+
colorBorderWeakNegative: G,
|
|
237
|
+
colorBorderMediumNegative: z,
|
|
238
|
+
colorBorderStrongNegative: q,
|
|
239
|
+
colorBorderInteractivePrimary: j,
|
|
240
|
+
colorBorderInteractivePrimaryHover: Q,
|
|
241
|
+
colorBorderInteractivePrimaryActive: R,
|
|
242
|
+
colorBorderInteractiveFocus: w,
|
|
243
|
+
colorBorderInteractiveExpressive: L,
|
|
244
|
+
colorBorderInteractiveSubtle: F,
|
|
245
|
+
colorBorderInteractiveSubtleHover: h,
|
|
246
|
+
colorBorderInteractiveSelected: D,
|
|
247
|
+
colorBorderInteractivePrimaryNegative: W,
|
|
248
|
+
colorBorderInteractivePrimaryHoverNegative: M,
|
|
249
|
+
colorBorderInteractivePrimaryActiveNegative: H,
|
|
250
|
+
colorBorderInteractiveSubtleNegative: A,
|
|
251
|
+
colorBorderInteractiveSubtleHoverNegative: b,
|
|
252
|
+
colorBorderStatusError: O,
|
|
253
|
+
colorBorderStatusWarning: E,
|
|
254
|
+
colorBorderStatusInfo: P,
|
|
255
|
+
colorBorderStatusSuccess: $,
|
|
256
|
+
colorBorderStatusErrorNegative: y,
|
|
257
|
+
colorBorderStatusSuccessNegative: N
|
|
258
|
+
}, S = {
|
|
259
|
+
light: ia,
|
|
260
|
+
dark: na
|
|
261
|
+
}, sa = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), la = ({
|
|
262
|
+
theme: e = S,
|
|
263
|
+
cssVariablesSelector: r,
|
|
264
|
+
currentColorScheme: t
|
|
265
|
+
}) => {
|
|
266
|
+
p(() => {
|
|
267
|
+
t && Object.entries(e?.[t] ?? S[t]).forEach(
|
|
268
|
+
([u, n]) => {
|
|
269
|
+
((r ? document.querySelector(r) : null) ?? document.documentElement).style.setProperty(
|
|
270
|
+
`--purpur-${sa(u)}`,
|
|
271
|
+
n
|
|
272
|
+
);
|
|
273
|
+
}
|
|
274
|
+
);
|
|
275
|
+
}, [e, r, t]);
|
|
276
|
+
}, C = x({
|
|
277
|
+
colorScheme: "light",
|
|
278
|
+
currentColorScheme: "light",
|
|
279
|
+
setColorScheme: () => {
|
|
280
|
+
},
|
|
281
|
+
options: {},
|
|
282
|
+
portalContainer: null
|
|
283
|
+
}), Ba = ({
|
|
284
|
+
cssVariablesSelector: e,
|
|
285
|
+
forceColorScheme: r,
|
|
286
|
+
theme: t,
|
|
287
|
+
children: u,
|
|
288
|
+
options: n = {},
|
|
289
|
+
...v
|
|
290
|
+
}) => {
|
|
291
|
+
const [a, i] = l(r ?? "auto"), [c, s] = l(
|
|
292
|
+
r ?? "light"
|
|
293
|
+
), [g, I] = l(null);
|
|
294
|
+
p(() => {
|
|
295
|
+
if (r)
|
|
296
|
+
i(r);
|
|
297
|
+
else {
|
|
298
|
+
const o = localStorage.getItem("colorScheme");
|
|
299
|
+
o && i(o);
|
|
300
|
+
}
|
|
301
|
+
}, [r]), p(() => {
|
|
302
|
+
const o = window.matchMedia("(prefers-color-scheme: dark)");
|
|
303
|
+
s(a === "auto" ? o.matches ? "dark" : "light" : a);
|
|
304
|
+
const d = (k) => {
|
|
305
|
+
!r && a === "auto" && s(k.matches ? "dark" : "light");
|
|
306
|
+
};
|
|
307
|
+
return o.addEventListener("change", d), () => {
|
|
308
|
+
o.removeEventListener("change", d);
|
|
309
|
+
};
|
|
310
|
+
}, [a, r]), la({
|
|
311
|
+
theme: t,
|
|
312
|
+
cssVariablesSelector: e,
|
|
313
|
+
currentColorScheme: t !== void 0 ? c : void 0
|
|
314
|
+
});
|
|
315
|
+
const T = f(
|
|
316
|
+
() => ({
|
|
317
|
+
colorScheme: a,
|
|
318
|
+
currentColorScheme: c,
|
|
319
|
+
setColorScheme: (o) => {
|
|
320
|
+
r || (i(o), localStorage.setItem("colorScheme", o));
|
|
321
|
+
},
|
|
322
|
+
portalContainer: g
|
|
323
|
+
}),
|
|
324
|
+
[a, c, r, g]
|
|
325
|
+
);
|
|
326
|
+
return /* @__PURE__ */ B(C.Provider, { value: { ...T, options: n }, children: /* @__PURE__ */ B(
|
|
327
|
+
"div",
|
|
328
|
+
{
|
|
329
|
+
"data-color-scheme": c,
|
|
330
|
+
className: c,
|
|
331
|
+
ref: I,
|
|
332
|
+
...v,
|
|
333
|
+
children: u
|
|
334
|
+
}
|
|
335
|
+
) });
|
|
336
|
+
}, Sa = () => {
|
|
337
|
+
const e = m(C);
|
|
338
|
+
if (!e)
|
|
339
|
+
throw new Error("useTheme must be used within a ThemeProvider");
|
|
340
|
+
return e;
|
|
341
|
+
};
|
|
342
|
+
export {
|
|
343
|
+
Ba as T,
|
|
344
|
+
Sa as a,
|
|
345
|
+
S as t,
|
|
346
|
+
la as u
|
|
347
|
+
};
|
|
348
|
+
//# sourceMappingURL=ThemeProvider-DiDBfyFA.mjs.map
|