@purpur/library 9.0.2 → 9.0.4

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.
Files changed (83) hide show
  1. package/CHANGELOG.json +27 -0
  2. package/CHANGELOG.md +16 -1
  3. package/dist/ThemeProvider-CrjMv3M8.mjs +337 -0
  4. package/dist/{ThemeProvider-mOHIAi2k.mjs.map → ThemeProvider-CrjMv3M8.mjs.map} +1 -1
  5. package/dist/ThemeProvider-ipAIFRUi.js +2 -0
  6. package/dist/{ThemeProvider-djmNDpmy.js.map → ThemeProvider-ipAIFRUi.js.map} +1 -1
  7. package/dist/{footer-DY0s_C6e.mjs → footer-DcWsihxS.mjs} +3 -4
  8. package/dist/{footer-DY0s_C6e.mjs.map → footer-DcWsihxS.mjs.map} +1 -1
  9. package/dist/footer-DrjAwjuL.js +2 -0
  10. package/dist/{footer-Btsh40pg.js.map → footer-DrjAwjuL.js.map} +1 -1
  11. package/dist/footer.cjs.js +1 -1
  12. package/dist/footer.es.js +1 -1
  13. package/dist/{hero-banner-Cl5YFaKh.mjs → hero-banner-B8fRHxXc.mjs} +4 -5
  14. package/dist/{hero-banner-Cl5YFaKh.mjs.map → hero-banner-B8fRHxXc.mjs.map} +1 -1
  15. package/dist/hero-banner-D3peC1NR.js +2 -0
  16. package/dist/{hero-banner-4JZr2Tzb.js.map → hero-banner-D3peC1NR.js.map} +1 -1
  17. package/dist/hero-banner.cjs.js +1 -1
  18. package/dist/hero-banner.es.js +1 -1
  19. package/dist/libraries/library/src/library.d.ts +1 -1
  20. package/dist/libraries/library/src/tokens.d.ts +1 -1
  21. package/dist/libraries/theme/src/useApplyTheme.d.ts.map +1 -1
  22. package/dist/libraries/tokens/dist/border/variables.d.ts +9 -0
  23. package/dist/libraries/tokens/dist/border/variables.dark.d.ts +9 -0
  24. package/dist/libraries/tokens/dist/breakpoint/variables.d.ts +8 -0
  25. package/dist/libraries/tokens/dist/breakpoint/variables.dark.d.ts +8 -0
  26. package/dist/libraries/tokens/dist/color/variables.d.ts +252 -0
  27. package/dist/libraries/tokens/dist/color/variables.dark.d.ts +251 -0
  28. package/dist/libraries/tokens/dist/dark.d.ts +9 -0
  29. package/dist/libraries/tokens/dist/filter/variables.d.ts +1 -0
  30. package/dist/libraries/tokens/dist/filter/variables.dark.d.ts +1 -0
  31. package/dist/libraries/tokens/dist/gradient/variables.d.ts +9 -0
  32. package/dist/libraries/tokens/dist/gradient/variables.dark.d.ts +9 -0
  33. package/dist/libraries/tokens/dist/index.d.ts +9 -0
  34. package/dist/libraries/tokens/dist/motion/variables.d.ts +11 -0
  35. package/dist/libraries/tokens/dist/motion/variables.dark.d.ts +11 -0
  36. package/dist/libraries/tokens/dist/shadow/variables.d.ts +4 -0
  37. package/dist/libraries/tokens/dist/shadow/variables.dark.d.ts +4 -0
  38. package/dist/libraries/tokens/dist/spacing/variables.d.ts +23 -0
  39. package/dist/libraries/tokens/dist/spacing/variables.dark.d.ts +15 -0
  40. package/dist/libraries/tokens/dist/typography/variables.d.ts +26 -0
  41. package/dist/libraries/tokens/dist/typography/variables.dark.d.ts +26 -0
  42. package/dist/library.cjs.js +1 -1
  43. package/dist/library.es.js +6 -6
  44. package/dist/promotion-card-C7B5ZJaB.js +2 -0
  45. package/dist/{promotion-card-DMCtLQwW.js.map → promotion-card-C7B5ZJaB.js.map} +1 -1
  46. package/dist/{promotion-card-D2F-EWgn.mjs → promotion-card-wGGt75eI.mjs} +4 -5
  47. package/dist/{promotion-card-D2F-EWgn.mjs.map → promotion-card-wGGt75eI.mjs.map} +1 -1
  48. package/dist/promotion-card.cjs.js +1 -1
  49. package/dist/promotion-card.es.js +1 -1
  50. package/dist/text-area-9ggiIWtJ.js +2 -0
  51. package/dist/{text-area-C4mcG5c0.js.map → text-area-9ggiIWtJ.js.map} +1 -1
  52. package/dist/{text-area-CJD8ksqm.mjs → text-area-Cb9Hm2Z9.mjs} +3 -4
  53. package/dist/{text-area-CJD8ksqm.mjs.map → text-area-Cb9Hm2Z9.mjs.map} +1 -1
  54. package/dist/text-area.cjs.js +1 -1
  55. package/dist/text-area.es.js +1 -1
  56. package/dist/theme.cjs.js +1 -1
  57. package/dist/theme.es.js +2 -2
  58. package/dist/tokens/dark.css +9 -0
  59. package/dist/tokens/dark.d.ts +9 -0
  60. package/dist/tokens/dark.js +9 -0
  61. package/dist/tokens/index.css +18 -0
  62. package/dist/tokens/index.d.ts +9 -0
  63. package/dist/tokens/index.js +9 -0
  64. package/dist/useColorScheme-DNNu9bz0.js +2 -0
  65. package/dist/{useColorScheme-DwlZAnlk.js.map → useColorScheme-DNNu9bz0.js.map} +1 -1
  66. package/dist/{useColorScheme-CgjazeGp.mjs → useColorScheme-DRQcbSog.mjs} +2 -2
  67. package/dist/{useColorScheme-CgjazeGp.mjs.map → useColorScheme-DRQcbSog.mjs.map} +1 -1
  68. package/package.json +17 -20
  69. package/scripts/generate.mts +1 -0
  70. package/src/aliases.ts +1 -0
  71. package/tokens/dark.css +9 -0
  72. package/tokens/dark.d.ts +9 -0
  73. package/tokens/dark.js +9 -0
  74. package/tokens/index.css +18 -0
  75. package/tokens/index.d.ts +9 -0
  76. package/tokens/index.js +9 -0
  77. package/dist/ThemeProvider-djmNDpmy.js +0 -2
  78. package/dist/ThemeProvider-mOHIAi2k.mjs +0 -338
  79. package/dist/footer-Btsh40pg.js +0 -2
  80. package/dist/hero-banner-4JZr2Tzb.js +0 -2
  81. package/dist/promotion-card-DMCtLQwW.js +0 -2
  82. package/dist/text-area-C4mcG5c0.js +0 -2
  83. package/dist/useColorScheme-DwlZAnlk.js +0 -2
@@ -1 +1 @@
1
- {"version":3,"file":"ThemeProvider-djmNDpmy.js","sources":["../../tokens/dist/color/variables.dark.js","../../theme/src/telia-dark.ts","../../theme/src/telia-light.ts","../../theme/src/telia-theme.ts","../../theme/src/useApplyTheme.ts","../../theme/src/ThemeProvider.tsx"],"sourcesContent":["export const purpurColorPurple50 = \"#faf0ff\";\nexport const purpurColorPurple100 = \"#f4e0ff\";\nexport const purpurColorPurple200 = \"#e4b6fb\";\nexport const purpurColorPurple300 = \"#d58df9\";\nexport const purpurColorPurple400 = \"#c461f7\";\nexport const purpurColorPurple500 = \"#b12df4\";\nexport const purpurColorPurple550 = \"#990ae3\";\nexport const purpurColorPurple600 = \"#8c07d0\";\nexport const purpurColorPurple700 = \"#6d02a3\";\nexport const purpurColorPurple800 = \"#4e0174\";\nexport const purpurColorPurple900 = \"#29003e\";\nexport const purpurColorPurple950 = \"#1f002e\";\nexport const purpurColorBeige50 = \"#f9f1ec\";\nexport const purpurColorBeige100 = \"#ede1d8\";\nexport const purpurColorBeige200 = \"#d7c3b5\";\nexport const purpurColorBeige300 = \"#bba494\";\nexport const purpurColorBeige400 = \"#a08877\";\nexport const purpurColorBeige500 = \"#807268\";\nexport const purpurColorBeige600 = \"#665e58\";\nexport const purpurColorBeige700 = \"#4f4741\";\nexport const purpurColorBeige800 = \"#3b332d\";\nexport const purpurColorBeige900 = \"#2d2824\";\nexport const purpurColorBeige950 = \"#170f09\";\nexport const purpurColorTeal50 = \"#edf5f5\";\nexport const purpurColorTeal100 = \"#d5eae9\";\nexport const purpurColorTeal200 = \"#a1cfcd\";\nexport const purpurColorTeal300 = \"#6eb5b2\";\nexport const purpurColorTeal400 = \"#3a9b96\";\nexport const purpurColorTeal500 = \"#00847e\";\nexport const purpurColorTeal600 = \"#006c67\";\nexport const purpurColorTeal700 = \"#02534f\";\nexport const purpurColorTeal800 = \"#063c39\";\nexport const purpurColorTeal900 = \"#032220\";\nexport const purpurColorTeal950 = \"#011413\";\nexport const purpurColorGray50 = \"#f5f5fa\";\nexport const purpurColorGray100 = \"#e5e5eb\";\nexport const purpurColorGray150 = \"#d6d6dd\";\nexport const purpurColorGray200 = \"#c6c6cd\";\nexport const purpurColorGray300 = \"#aaaab0\";\nexport const purpurColorGray400 = \"#8d8d94\";\nexport const purpurColorGray500 = \"#757579\";\nexport const purpurColorGray600 = \"#5f5f63\";\nexport const purpurColorGray700 = \"#4a4a4d\";\nexport const purpurColorGray800 = \"#353537\";\nexport const purpurColorGray850 = \"#2a2a2c\";\nexport const purpurColorGray900 = \"#202022\";\nexport const purpurColorGray950 = \"#121212\";\nexport const purpurColorGreen50 = \"#e1f9ec\";\nexport const purpurColorGreen100 = \"#c5efd9\";\nexport const purpurColorGreen200 = \"#79d9a7\";\nexport const purpurColorGreen300 = \"#3dbf7c\";\nexport const purpurColorGreen400 = \"#1fa15e\";\nexport const purpurColorGreen500 = \"#018842\";\nexport const purpurColorGreen600 = \"#017037\";\nexport const purpurColorGreen700 = \"#02562b\";\nexport const purpurColorGreen800 = \"#003e1e\";\nexport const purpurColorGreen900 = \"#002411\";\nexport const purpurColorGreen950 = \"#00150a\";\nexport const purpurColorRed50 = \"#fff0f5\";\nexport const purpurColorRed100 = \"#ffdde8\";\nexport const purpurColorRed200 = \"#ffafc9\";\nexport const purpurColorRed300 = \"#ff80ab\";\nexport const purpurColorRed400 = \"#fb4885\";\nexport const purpurColorRed500 = \"#e4175c\";\nexport const purpurColorRed600 = \"#c00543\";\nexport const purpurColorRed700 = \"#980233\";\nexport const purpurColorRed800 = \"#700025\";\nexport const purpurColorRed900 = \"#440016\";\nexport const purpurColorRed950 = \"#2c000e\";\nexport const purpurColorOrange50 = \"#fff2de\";\nexport const purpurColorOrange100 = \"#ffe1b3\";\nexport const purpurColorOrange200 = \"#f9bb5b\";\nexport const purpurColorOrange300 = \"#f39200\";\nexport const purpurColorOrange400 = \"#cc7a00\";\nexport const purpurColorOrange500 = \"#a86602\";\nexport const purpurColorOrange600 = \"#8b5301\";\nexport const purpurColorOrange700 = \"#6a4102\";\nexport const purpurColorOrange800 = \"#4c2f03\";\nexport const purpurColorOrange900 = \"#2b1b03\";\nexport const purpurColorOrange950 = \"#1a0f00\";\nexport const purpurColorBlue50 = \"#e8f6ff\";\nexport const purpurColorBlue100 = \"#caeaff\";\nexport const purpurColorBlue200 = \"#91cdf4\";\nexport const purpurColorBlue300 = \"#62b2e7\";\nexport const purpurColorBlue400 = \"#3694d3\";\nexport const purpurColorBlue500 = \"#0078cb\";\nexport const purpurColorBlue600 = \"#0063a6\";\nexport const purpurColorBlue700 = \"#014d80\";\nexport const purpurColorBlue800 = \"#03385b\";\nexport const purpurColorBlue900 = \"#002036\";\nexport const purpurColorBlue950 = \"#011320\";\nexport const purpurColorTransparentBlack50 = \"rgba(0, 0, 0, 0.05)\";\nexport const purpurColorTransparentBlack100 = \"rgba(0, 0, 0, 0.1)\";\nexport const purpurColorTransparentBlack150 = \"rgba(0, 0, 0, 0.16)\";\nexport const purpurColorTransparentBlack200 = \"rgba(0, 0, 0, 0.22)\";\nexport const purpurColorTransparentBlack300 = \"rgba(0, 0, 0, 0.33)\";\nexport const purpurColorTransparentBlack400 = \"rgba(0, 0, 0, 0.44)\";\nexport const purpurColorTransparentBlack500 = \"rgba(0, 0, 0, 0.54)\";\nexport const purpurColorTransparentBlack600 = \"rgba(0, 0, 0, 0.62)\";\nexport const purpurColorTransparentBlack700 = \"rgba(0, 0, 0, 0.71)\";\nexport const purpurColorTransparentBlack800 = \"rgba(0, 0, 0, 0.8)\";\nexport const purpurColorTransparentBlack850 = \"rgba(0, 0, 0, 0.84)\";\nexport const purpurColorTransparentBlack900 = \"rgba(0, 0, 0, 0.88)\";\nexport const purpurColorTransparentBlack950 = \"rgba(0, 0, 0, 0.93)\";\nexport const purpurColorTransparentWhite50 = \"rgba(255, 255, 255, 0.07)\";\nexport const purpurColorTransparentWhite100 = \"rgba(255, 255, 255, 0.11)\";\nexport const purpurColorTransparentWhite150 = \"rgba(255, 255, 255, 0.16)\";\nexport const purpurColorTransparentWhite200 = \"rgba(255, 255, 255, 0.21)\";\nexport const purpurColorTransparentWhite300 = \"rgba(255, 255, 255, 0.29)\";\nexport const purpurColorTransparentWhite400 = \"rgba(255, 255, 255, 0.37)\";\nexport const purpurColorTransparentWhite500 = \"rgba(255, 255, 255, 0.46)\";\nexport const purpurColorTransparentWhite600 = \"rgba(255, 255, 255, 0.55)\";\nexport const purpurColorTransparentWhite700 = \"rgba(255, 255, 255, 0.66)\";\nexport const purpurColorTransparentWhite800 = \"rgba(255, 255, 255, 0.79)\";\nexport const purpurColorTransparentWhite850 = \"rgba(255, 255, 255, 0.84)\";\nexport const purpurColorTransparentWhite900 = \"rgba(255, 255, 255, 0.89)\";\nexport const purpurColorTransparentWhite950 = \"rgba(255, 255, 255, 0.95)\";\nexport const purpurColorFunctionalBlack = \"#000000\";\nexport const purpurColorFunctionalWhite = \"#ffffff\";\nexport const purpurColorFunctionalTransparent = \"rgba(255, 255, 255, 0)\";\nexport const purpurColorBrandDeepPurple = \"#f4e0ff\";\nexport const purpurColorBrandCorePurple = \"#c461f7\";\nexport const purpurColorBrandLightPurple = \"#29003e\";\nexport const purpurColorBrandDeepBeige = \"#ede1d8\";\nexport const purpurColorBrandBeige = \"#4f4741\";\nexport const purpurColorBrandLightBeige = \"#3b332d\";\nexport const purpurColorBrandOffBlack = \"#ffffff\";\nexport const purpurColorBrandWhite = \"#202022\";\nexport const purpurColorTextDefault = \"rgba(255, 255, 255, 0.95)\";\nexport const purpurColorTextMedium = \"rgba(255, 255, 255, 0.66)\";\nexport const purpurColorTextWeak = \"rgba(255, 255, 255, 0.37)\";\nexport const purpurColorTextDefaultNegative = \"rgba(0, 0, 0, 0.8)\";\nexport const purpurColorTextMediumNegative = \"rgba(0, 0, 0, 0.54)\";\nexport const purpurColorTextWeakNegative = \"rgba(0, 0, 0, 0.44)\";\nexport const purpurColorTextInteractivePrimary = \"#e4b6fb\";\nexport const purpurColorTextInteractivePrimaryHover = \"#f4e0ff\";\nexport const purpurColorTextInteractivePrimaryActive = \"#faf0ff\";\nexport const purpurColorTextInteractiveOnPrimary = \"#4e0174\";\nexport const purpurColorTextInteractiveOnPrimaryNegative = \"#ffffff\";\nexport const purpurColorTextInteractivePrimaryNegative = \"#8c07d0\";\nexport const purpurColorTextInteractivePrimaryHoverNegative = \"#6d02a3\";\nexport const purpurColorTextInteractivePrimaryActiveNegative = \"#4e0174\";\nexport const purpurColorTextInteractiveOnExpressive = \"#ffffff\";\nexport const purpurColorTextInteractiveOnExpressiveNegative = \"#ffffff\";\nexport const purpurColorTextInteractiveOnExpressiveHover = \"#29003e\";\nexport const purpurColorTextInteractiveOnExpressiveHoverNegative = \"#ffffff\";\nexport const purpurColorTextInteractiveOnExpressiveActive = \"#29003e\";\nexport const purpurColorTextInteractiveOnExpressiveActiveNegative = \"#ffffff\";\nexport const purpurColorTextInteractiveOnDestructive = \"#ffffff\";\nexport const purpurColorTextInteractiveSelected = \"#d58df9\";\nexport const purpurColorTextStatusDiscount = \"#d58df9\";\nexport const purpurColorTextStatusErrorStrong = \"#ffafc9\";\nexport const purpurColorTextStatusErrorStrongNegative = \"#980233\";\nexport const purpurColorTextStatusErrorMedium = \"#fb4885\";\nexport const purpurColorTextStatusErrorMediumNegative = \"#e4175c\";\nexport const purpurColorTextStatusSuccessStrong = \"#79d9a7\";\nexport const purpurColorTextStatusSuccessStrongNegative = \"#02562b\";\nexport const purpurColorTextStatusSuccessMedium = \"#1fa15e\";\nexport const purpurColorTextStatusWarningStrong = \"#f9bb5b\";\nexport const purpurColorTextStatusWarningMedium = \"#f39200\";\nexport const purpurColorTextStatusWarningMediumNegative = \"#a86602\";\nexport const purpurColorTextStatusInfoStrong = \"#91cdf4\";\nexport const purpurColorTextStatusInfoMedium = \"#3694d3\";\nexport const purpurColorTextStatusNeutral = \"#ffffff\";\nexport const purpurColorTextStatusSpecial = \"#ffffff\";\nexport const purpurColorTextStatusAttention = \"#4e0174\";\nexport const purpurColorTextStatusBlackFriday = \"#202022\";\nexport const purpurColorTextToneOnTonePrimary = \"#29003e\";\nexport const purpurColorTextToneOnToneSecondary = \"#f4e0ff\";\nexport const purpurColorTextToneOnToneTertiary = \"#ffffff\";\nexport const purpurColorBackgroundPrimary = \"#121212\";\nexport const purpurColorBackgroundPrimaryNegative = \"#ffffff\";\nexport const purpurColorBackgroundSecondary = \"#202022\";\nexport const purpurColorBackgroundSecondaryNegative = \"#f5f5fa\";\nexport const purpurColorBackgroundOnImage = \"rgba(0, 0, 0, 0.71)\";\nexport const purpurColorBackgroundOnImageNegative = \"rgba(255, 255, 255, 0.84)\";\nexport const purpurColorBackgroundInteractiveAutoFill = \"#03385b\";\nexport const purpurColorBackgroundInteractivePrimary = \"#f4e0ff\";\nexport const purpurColorBackgroundInteractivePrimaryHover = \"#e4b6fb\";\nexport const purpurColorBackgroundInteractivePrimaryActive = \"#d58df9\";\nexport const purpurColorBackgroundInteractivePrimaryNegative = \"#4e0174\";\nexport const purpurColorBackgroundInteractivePrimaryHoverNegative = \"#6d02a3\";\nexport const purpurColorBackgroundInteractivePrimaryActiveNegative = \"#8c07d0\";\nexport const purpurColorBackgroundInteractiveExpressive = \"#990ae3\";\nexport const purpurColorBackgroundInteractiveExpressiveHover = \"#c461f7\";\nexport const purpurColorBackgroundInteractiveExpressiveActive = \"#d58df9\";\nexport const purpurColorBackgroundInteractiveExpressiveNegative = \"#990ae3\";\nexport const purpurColorBackgroundInteractiveExpressiveHoverNegative = \"#6d02a3\";\nexport const purpurColorBackgroundInteractiveExpressiveActiveNegative = \"#4e0174\";\nexport const purpurColorBackgroundInteractiveDisabled = \"rgba(255, 255, 255, 0.11)\";\nexport const purpurColorBackgroundInteractiveDisabledNegative = \"rgba(0, 0, 0, 0.1)\";\nexport const purpurColorBackgroundInteractiveTransparentHover = \"#4e0174\";\nexport const purpurColorBackgroundInteractiveTransparentHoverNegative = \"#e4b6fb\";\nexport const purpurColorBackgroundInteractiveTransparentActive = \"#6d02a3\";\nexport const purpurColorBackgroundInteractiveTransparentActiveNegative = \"#d58df9\";\nexport const purpurColorBackgroundInteractiveInactive = \"rgba(255, 255, 255, 0.16)\";\nexport const purpurColorBackgroundInteractiveInactiveNegative = \"rgba(0, 0, 0, 0.05)\";\nexport const purpurColorBackgroundInteractiveReadOnly = \"rgba(255, 255, 255, 0.07)\";\nexport const purpurColorBackgroundInteractiveReadOnlyNegative = \"rgba(0, 0, 0, 0.05)\";\nexport const purpurColorBackgroundInteractiveDestructive = \"#e4175c\";\nexport const purpurColorBackgroundInteractiveDestructiveHover = \"#c00543\";\nexport const purpurColorBackgroundInteractiveDestructiveActive = \"#980233\";\nexport const purpurColorBackgroundStatusInfoMedium = \"#03385b\";\nexport const purpurColorBackgroundStatusInfoStrong = \"#62b2e7\";\nexport const purpurColorBackgroundStatusSuccessMedium = \"#003e1e\";\nexport const purpurColorBackgroundStatusSuccessStrong = \"#3dbf7c\";\nexport const purpurColorBackgroundStatusSuccessStrongNegative = \"#1fa15e\";\nexport const purpurColorBackgroundStatusErrorMedium = \"#700025\";\nexport const purpurColorBackgroundStatusErrorStrong = \"#ff80ab\";\nexport const purpurColorBackgroundStatusErrorStrongNegative = \"#fb4885\";\nexport const purpurColorBackgroundStatusWarningMedium = \"#4c2f03\";\nexport const purpurColorBackgroundStatusWarningStrong = \"#f39200\";\nexport const purpurColorBackgroundStatusWarningStrongNegative = \"#f39200\";\nexport const purpurColorBackgroundStatusNeutral = \"#353537\";\nexport const purpurColorBackgroundStatusSpecial = \"#6d02a3\";\nexport const purpurColorBackgroundStatusAttention = \"#f4e0ff\";\nexport const purpurColorBackgroundStatusBlackFriday = \"#ffffff\";\nexport const purpurColorBackgroundToneOnTonePrimary = \"#f4e0ff\";\nexport const purpurColorBackgroundToneOnToneSecondary = \"#29003e\";\nexport const purpurColorBackgroundToneOnToneTertiary = \"#4f4741\";\nexport const purpurColorBackgroundToneOnToneQuaternary = \"#2d2824\";\nexport const purpurColorBorderMedium = \"rgba(255, 255, 255, 0.29)\";\nexport const purpurColorBorderMediumNegative = \"rgba(0, 0, 0, 0.33)\";\nexport const purpurColorBorderStrong = \"rgba(255, 255, 255, 0.46)\";\nexport const purpurColorBorderStrongNegative = \"rgba(0, 0, 0, 0.54)\";\nexport const purpurColorBorderWeak = \"rgba(255, 255, 255, 0.16)\";\nexport const purpurColorBorderWeakNegative = \"rgba(0, 0, 0, 0.16)\";\nexport const purpurColorBorderInteractiveFocus = \"#c461f7\";\nexport const purpurColorBorderInteractivePrimary = \"#e4b6fb\";\nexport const purpurColorBorderInteractivePrimaryNegative = \"#8c07d0\";\nexport const purpurColorBorderInteractivePrimaryHover = \"#f4e0ff\";\nexport const purpurColorBorderInteractivePrimaryActive = \"#faf0ff\";\nexport const purpurColorBorderInteractivePrimaryHoverNegative = \"#6d02a3\";\nexport const purpurColorBorderInteractivePrimaryActiveNegative = \"#4e0174\";\nexport const purpurColorBorderInteractiveExpressive = \"#990ae3\";\nexport const purpurColorBorderInteractiveSelected = \"#d58df9\";\nexport const purpurColorBorderInteractiveSubtle = \"rgba(255, 255, 255, 0.37)\";\nexport const purpurColorBorderInteractiveSubtleNegative = \"rgba(0, 0, 0, 0.44)\";\nexport const purpurColorBorderInteractiveSubtleHover = \"#e4b6fb\";\nexport const purpurColorBorderInteractiveSubtleHoverNegative = \"#6d02a3\";\nexport const purpurColorBorderStatusError = \"#fb4885\";\nexport const purpurColorBorderStatusErrorNegative = \"#e4175c\";\nexport const purpurColorBorderStatusWarning = \"#f39200\";\nexport const purpurColorBorderStatusInfo = \"#3694d3\";\nexport const purpurColorBorderStatusSuccess = \"#1fa15e\";\nexport const purpurColorBorderStatusSuccessNegative = \"#018842\";\nexport const purpurColorOverlayDefault = \"rgba(0, 0, 0, 0.33)\";\nexport const purpurColorGradientAiBottom = \"#62b2e7\";\nexport const purpurColorGradientAiBottomNegative = \"#3694d3\";\nexport const purpurColorGradientAiTop = \"#d58df9\";\nexport const purpurColorGradientAiTopNegative = \"#b12df4\";\n","import {\n purpurColorBackgroundInteractiveAutoFill,\n purpurColorBackgroundInteractiveDestructive,\n purpurColorBackgroundInteractiveDestructiveActive,\n purpurColorBackgroundInteractiveDestructiveHover,\n purpurColorBackgroundInteractiveDisabled,\n purpurColorBackgroundInteractiveDisabledNegative,\n purpurColorBackgroundInteractiveExpressive,\n purpurColorBackgroundInteractiveExpressiveActive,\n purpurColorBackgroundInteractiveExpressiveActiveNegative,\n purpurColorBackgroundInteractiveExpressiveHover,\n purpurColorBackgroundInteractiveExpressiveHoverNegative,\n purpurColorBackgroundInteractiveExpressiveNegative,\n purpurColorBackgroundInteractiveInactive,\n purpurColorBackgroundInteractiveInactiveNegative,\n purpurColorBackgroundInteractivePrimary,\n purpurColorBackgroundInteractivePrimaryActive,\n purpurColorBackgroundInteractivePrimaryActiveNegative,\n purpurColorBackgroundInteractivePrimaryHover,\n purpurColorBackgroundInteractivePrimaryHoverNegative,\n purpurColorBackgroundInteractivePrimaryNegative,\n purpurColorBackgroundInteractiveReadOnly,\n purpurColorBackgroundInteractiveReadOnlyNegative,\n purpurColorBackgroundInteractiveTransparentActive,\n purpurColorBackgroundInteractiveTransparentActiveNegative,\n purpurColorBackgroundInteractiveTransparentHover,\n purpurColorBackgroundInteractiveTransparentHoverNegative,\n purpurColorBackgroundOnImage,\n purpurColorBackgroundOnImageNegative,\n purpurColorBackgroundPrimary,\n purpurColorBackgroundPrimaryNegative,\n purpurColorBackgroundSecondary,\n purpurColorBackgroundSecondaryNegative,\n purpurColorBackgroundStatusAttention,\n purpurColorBackgroundStatusBlackFriday,\n purpurColorBackgroundStatusErrorMedium,\n purpurColorBackgroundStatusErrorStrong,\n purpurColorBackgroundStatusErrorStrongNegative,\n purpurColorBackgroundStatusInfoMedium,\n purpurColorBackgroundStatusInfoStrong,\n purpurColorBackgroundStatusNeutral,\n purpurColorBackgroundStatusSpecial,\n purpurColorBackgroundStatusSuccessMedium,\n purpurColorBackgroundStatusSuccessStrong,\n purpurColorBackgroundStatusSuccessStrongNegative,\n purpurColorBackgroundStatusWarningMedium,\n purpurColorBackgroundStatusWarningStrong,\n purpurColorBackgroundStatusWarningStrongNegative,\n purpurColorBackgroundToneOnTonePrimary,\n purpurColorBackgroundToneOnToneQuaternary,\n purpurColorBackgroundToneOnToneSecondary,\n purpurColorBackgroundToneOnToneTertiary,\n purpurColorBorderInteractiveExpressive,\n purpurColorBorderInteractiveFocus,\n purpurColorBorderInteractivePrimary,\n purpurColorBorderInteractivePrimaryActive,\n purpurColorBorderInteractivePrimaryActiveNegative,\n purpurColorBorderInteractivePrimaryHover,\n purpurColorBorderInteractivePrimaryHoverNegative,\n purpurColorBorderInteractivePrimaryNegative,\n purpurColorBorderInteractiveSelected,\n purpurColorBorderInteractiveSubtle,\n purpurColorBorderInteractiveSubtleHover,\n purpurColorBorderInteractiveSubtleHoverNegative,\n purpurColorBorderInteractiveSubtleNegative,\n purpurColorBorderMedium,\n purpurColorBorderMediumNegative,\n purpurColorBorderStatusError,\n purpurColorBorderStatusErrorNegative,\n purpurColorBorderStatusInfo,\n purpurColorBorderStatusSuccess,\n purpurColorBorderStatusSuccessNegative,\n purpurColorBorderStatusWarning,\n purpurColorBorderStrong,\n purpurColorBorderStrongNegative,\n purpurColorBorderWeak,\n purpurColorBorderWeakNegative,\n purpurColorBrandBeige,\n purpurColorBrandCorePurple,\n purpurColorBrandDeepBeige,\n purpurColorBrandDeepPurple,\n purpurColorBrandLightBeige,\n purpurColorBrandLightPurple,\n purpurColorBrandOffBlack,\n purpurColorBrandWhite,\n purpurColorTextDefault,\n purpurColorTextDefaultNegative,\n purpurColorTextInteractiveOnDestructive,\n purpurColorTextInteractiveOnExpressive,\n purpurColorTextInteractiveOnExpressiveActive,\n purpurColorTextInteractiveOnExpressiveActiveNegative,\n purpurColorTextInteractiveOnExpressiveHover,\n purpurColorTextInteractiveOnExpressiveHoverNegative,\n purpurColorTextInteractiveOnExpressiveNegative,\n purpurColorTextInteractiveOnPrimary,\n purpurColorTextInteractiveOnPrimaryNegative,\n purpurColorTextInteractivePrimary,\n purpurColorTextInteractivePrimaryActive,\n purpurColorTextInteractivePrimaryActiveNegative,\n purpurColorTextInteractivePrimaryHover,\n purpurColorTextInteractivePrimaryHoverNegative,\n purpurColorTextInteractivePrimaryNegative,\n purpurColorTextInteractiveSelected,\n purpurColorTextMedium,\n purpurColorTextMediumNegative,\n purpurColorTextStatusAttention,\n purpurColorTextStatusBlackFriday,\n purpurColorTextStatusDiscount,\n purpurColorTextStatusErrorMedium,\n purpurColorTextStatusErrorMediumNegative,\n purpurColorTextStatusErrorStrong,\n purpurColorTextStatusErrorStrongNegative,\n purpurColorTextStatusInfoMedium,\n purpurColorTextStatusInfoStrong,\n purpurColorTextStatusNeutral,\n purpurColorTextStatusSpecial,\n purpurColorTextStatusSuccessMedium,\n purpurColorTextStatusSuccessStrong,\n purpurColorTextStatusSuccessStrongNegative,\n purpurColorTextStatusWarningMedium,\n purpurColorTextStatusWarningMediumNegative,\n purpurColorTextStatusWarningStrong,\n purpurColorTextToneOnTonePrimary,\n purpurColorTextToneOnToneSecondary,\n purpurColorTextToneOnToneTertiary,\n purpurColorTextWeak,\n purpurColorTextWeakNegative,\n} from \"@purpur/tokens/dark\";\n\nimport type { ThemeProps } from \"./theme-props\";\n\nexport const dark = {\n colorBrandDeepPurple: purpurColorBrandDeepPurple,\n colorBrandCorePurple: purpurColorBrandCorePurple,\n colorBrandLightPurple: purpurColorBrandLightPurple,\n colorBrandDeepBeige: purpurColorBrandDeepBeige,\n colorBrandBeige: purpurColorBrandBeige,\n colorBrandLightBeige: purpurColorBrandLightBeige,\n colorBrandOffBlack: purpurColorBrandOffBlack,\n colorBrandWhite: purpurColorBrandWhite,\n\n colorTextDefault: purpurColorTextDefault,\n colorTextMedium: purpurColorTextMedium,\n colorTextWeak: purpurColorTextWeak,\n colorTextDefaultNegative: purpurColorTextDefaultNegative,\n colorTextMediumNegative: purpurColorTextMediumNegative,\n colorTextWeakNegative: purpurColorTextWeakNegative,\n\n colorTextInteractivePrimary: purpurColorTextInteractivePrimary,\n colorTextInteractivePrimaryHover: purpurColorTextInteractivePrimaryHover,\n colorTextInteractivePrimaryActive: purpurColorTextInteractivePrimaryActive,\n colorTextInteractiveOnPrimary: purpurColorTextInteractiveOnPrimary,\n colorTextInteractiveOnExpressive: purpurColorTextInteractiveOnExpressive,\n colorTextInteractiveOnExpressiveHover: purpurColorTextInteractiveOnExpressiveHover,\n colorTextInteractiveOnExpressiveActive: purpurColorTextInteractiveOnExpressiveActive,\n colorTextInteractiveOnDestructive: purpurColorTextInteractiveOnDestructive,\n colorTextInteractiveSelected: purpurColorTextInteractiveSelected,\n colorTextInteractivePrimaryNegative: purpurColorTextInteractivePrimaryNegative,\n colorTextInteractivePrimaryHoverNegative: purpurColorTextInteractivePrimaryHoverNegative,\n colorTextInteractivePrimaryActiveNegative: purpurColorTextInteractivePrimaryActiveNegative,\n colorTextInteractiveOnPrimaryNegative: purpurColorTextInteractiveOnPrimaryNegative,\n colorTextInteractiveOnExpressiveNegative: purpurColorTextInteractiveOnExpressiveNegative,\n colorTextInteractiveOnExpressiveHoverNegative:\n purpurColorTextInteractiveOnExpressiveHoverNegative,\n colorTextInteractiveOnExpressiveActiveNegative:\n purpurColorTextInteractiveOnExpressiveActiveNegative,\n\n colorTextStatusInfoMedium: purpurColorTextStatusInfoMedium,\n colorTextStatusInfoStrong: purpurColorTextStatusInfoStrong,\n colorTextStatusSuccessMedium: purpurColorTextStatusSuccessMedium,\n colorTextStatusSuccessStrong: purpurColorTextStatusSuccessStrong,\n colorTextStatusWarningMedium: purpurColorTextStatusWarningMedium,\n colorTextStatusWarningStrong: purpurColorTextStatusWarningStrong,\n colorTextStatusErrorMedium: purpurColorTextStatusErrorMedium,\n colorTextStatusErrorStrong: purpurColorTextStatusErrorStrong,\n colorTextStatusNeutral: purpurColorTextStatusNeutral,\n colorTextStatusSpecial: purpurColorTextStatusSpecial,\n colorTextStatusAttention: purpurColorTextStatusAttention,\n colorTextStatusDiscount: purpurColorTextStatusDiscount,\n colorTextStatusBlackFriday: purpurColorTextStatusBlackFriday,\n colorTextStatusSuccessStrongNegative: purpurColorTextStatusSuccessStrongNegative,\n colorTextStatusErrorMediumNegative: purpurColorTextStatusErrorMediumNegative,\n colorTextStatusErrorStrongNegative: purpurColorTextStatusErrorStrongNegative,\n colorTextStatusWarningMediumNegative: purpurColorTextStatusWarningMediumNegative,\n\n colorTextToneOnTonePrimary: purpurColorTextToneOnTonePrimary,\n colorTextToneOnToneSecondary: purpurColorTextToneOnToneSecondary,\n colorTextToneOnToneTertiary: purpurColorTextToneOnToneTertiary,\n\n colorBackgroundPrimary: purpurColorBackgroundPrimary,\n colorBackgroundSecondary: purpurColorBackgroundSecondary,\n colorBackgroundOnImage: purpurColorBackgroundOnImage,\n colorBackgroundPrimaryNegative: purpurColorBackgroundPrimaryNegative,\n colorBackgroundSecondaryNegative: purpurColorBackgroundSecondaryNegative,\n colorBackgroundOnImageNegative: purpurColorBackgroundOnImageNegative,\n\n colorBackgroundInteractivePrimary: purpurColorBackgroundInteractivePrimary,\n colorBackgroundInteractivePrimaryHover: purpurColorBackgroundInteractivePrimaryHover,\n colorBackgroundInteractivePrimaryActive: purpurColorBackgroundInteractivePrimaryActive,\n colorBackgroundInteractiveExpressive: purpurColorBackgroundInteractiveExpressive,\n colorBackgroundInteractiveExpressiveHover: purpurColorBackgroundInteractiveExpressiveHover,\n colorBackgroundInteractiveExpressiveActive: purpurColorBackgroundInteractiveExpressiveActive,\n colorBackgroundInteractiveTransparentHover: purpurColorBackgroundInteractiveTransparentHover,\n colorBackgroundInteractiveTransparentActive: purpurColorBackgroundInteractiveTransparentActive,\n colorBackgroundInteractiveDisabled: purpurColorBackgroundInteractiveDisabled,\n colorBackgroundInteractiveReadOnly: purpurColorBackgroundInteractiveReadOnly,\n colorBackgroundInteractiveInactive: purpurColorBackgroundInteractiveInactive,\n colorBackgroundInteractiveDestructive: purpurColorBackgroundInteractiveDestructive,\n colorBackgroundInteractiveDestructiveHover: purpurColorBackgroundInteractiveDestructiveHover,\n colorBackgroundInteractiveDestructiveActive: purpurColorBackgroundInteractiveDestructiveActive,\n colorBackgroundInteractiveAutoFill: purpurColorBackgroundInteractiveAutoFill,\n colorBackgroundInteractivePrimaryNegative: purpurColorBackgroundInteractivePrimaryNegative,\n colorBackgroundInteractivePrimaryHoverNegative:\n purpurColorBackgroundInteractivePrimaryHoverNegative,\n colorBackgroundInteractivePrimaryActiveNegative:\n purpurColorBackgroundInteractivePrimaryActiveNegative,\n colorBackgroundInteractiveExpressiveNegative: purpurColorBackgroundInteractiveExpressiveNegative,\n colorBackgroundInteractiveExpressiveHoverNegative:\n purpurColorBackgroundInteractiveExpressiveHoverNegative,\n colorBackgroundInteractiveExpressiveActiveNegative:\n purpurColorBackgroundInteractiveExpressiveActiveNegative,\n colorBackgroundInteractiveTransparentHoverNegative:\n purpurColorBackgroundInteractiveTransparentHoverNegative,\n colorBackgroundInteractiveTransparentActiveNegative:\n purpurColorBackgroundInteractiveTransparentActiveNegative,\n colorBackgroundInteractiveDisabledNegative: purpurColorBackgroundInteractiveDisabledNegative,\n colorBackgroundInteractiveInactiveNegative: purpurColorBackgroundInteractiveInactiveNegative,\n colorBackgroundInteractiveReadOnlyNegative: purpurColorBackgroundInteractiveReadOnlyNegative,\n\n colorBackgroundStatusInfoMedium: purpurColorBackgroundStatusInfoMedium,\n colorBackgroundStatusInfoStrong: purpurColorBackgroundStatusInfoStrong,\n colorBackgroundStatusSuccessMedium: purpurColorBackgroundStatusSuccessMedium,\n colorBackgroundStatusSuccessStrong: purpurColorBackgroundStatusSuccessStrong,\n colorBackgroundStatusWarningMedium: purpurColorBackgroundStatusWarningMedium,\n colorBackgroundStatusWarningStrong: purpurColorBackgroundStatusWarningStrong,\n colorBackgroundStatusErrorMedium: purpurColorBackgroundStatusErrorMedium,\n colorBackgroundStatusErrorStrong: purpurColorBackgroundStatusErrorStrong,\n colorBackgroundStatusNeutral: purpurColorBackgroundStatusNeutral,\n colorBackgroundStatusSpecial: purpurColorBackgroundStatusSpecial,\n colorBackgroundStatusAttention: purpurColorBackgroundStatusAttention,\n colorBackgroundStatusBlackFriday: purpurColorBackgroundStatusBlackFriday,\n colorBackgroundStatusSuccessStrongNegative: purpurColorBackgroundStatusSuccessStrongNegative,\n colorBackgroundStatusWarningStrongNegative: purpurColorBackgroundStatusWarningStrongNegative,\n colorBackgroundStatusErrorStrongNegative: purpurColorBackgroundStatusErrorStrongNegative,\n\n colorBackgroundToneOnTonePrimary: purpurColorBackgroundToneOnTonePrimary,\n colorBackgroundToneOnToneSecondary: purpurColorBackgroundToneOnToneSecondary,\n colorBackgroundToneOnToneTertiary: purpurColorBackgroundToneOnToneTertiary,\n colorBackgroundToneOnToneQuaternary: purpurColorBackgroundToneOnToneQuaternary,\n\n colorBorderWeak: purpurColorBorderWeak,\n colorBorderMedium: purpurColorBorderMedium,\n colorBorderStrong: purpurColorBorderStrong,\n colorBorderWeakNegative: purpurColorBorderWeakNegative,\n colorBorderMediumNegative: purpurColorBorderMediumNegative,\n colorBorderStrongNegative: purpurColorBorderStrongNegative,\n\n colorBorderInteractivePrimary: purpurColorBorderInteractivePrimary,\n colorBorderInteractivePrimaryHover: purpurColorBorderInteractivePrimaryHover,\n colorBorderInteractivePrimaryActive: purpurColorBorderInteractivePrimaryActive,\n colorBorderInteractiveFocus: purpurColorBorderInteractiveFocus,\n colorBorderInteractiveExpressive: purpurColorBorderInteractiveExpressive,\n colorBorderInteractiveSubtle: purpurColorBorderInteractiveSubtle,\n colorBorderInteractiveSubtleHover: purpurColorBorderInteractiveSubtleHover,\n colorBorderInteractiveSelected: purpurColorBorderInteractiveSelected,\n colorBorderInteractivePrimaryNegative: purpurColorBorderInteractivePrimaryNegative,\n colorBorderInteractivePrimaryHoverNegative: purpurColorBorderInteractivePrimaryHoverNegative,\n colorBorderInteractivePrimaryActiveNegative: purpurColorBorderInteractivePrimaryActiveNegative,\n colorBorderInteractiveSubtleNegative: purpurColorBorderInteractiveSubtleNegative,\n colorBorderInteractiveSubtleHoverNegative: purpurColorBorderInteractiveSubtleHoverNegative,\n\n colorBorderStatusError: purpurColorBorderStatusError,\n colorBorderStatusWarning: purpurColorBorderStatusWarning,\n colorBorderStatusInfo: purpurColorBorderStatusInfo,\n colorBorderStatusSuccess: purpurColorBorderStatusSuccess,\n colorBorderStatusErrorNegative: purpurColorBorderStatusErrorNegative,\n colorBorderStatusSuccessNegative: purpurColorBorderStatusSuccessNegative,\n} satisfies ThemeProps;\n","import {\n purpurColorBackgroundInteractiveAutoFill,\n purpurColorBackgroundInteractiveDestructive,\n purpurColorBackgroundInteractiveDestructiveActive,\n purpurColorBackgroundInteractiveDestructiveHover,\n purpurColorBackgroundInteractiveDisabled,\n purpurColorBackgroundInteractiveDisabledNegative,\n purpurColorBackgroundInteractiveExpressive,\n purpurColorBackgroundInteractiveExpressiveActive,\n purpurColorBackgroundInteractiveExpressiveActiveNegative,\n purpurColorBackgroundInteractiveExpressiveHover,\n purpurColorBackgroundInteractiveExpressiveHoverNegative,\n purpurColorBackgroundInteractiveExpressiveNegative,\n purpurColorBackgroundInteractiveInactive,\n purpurColorBackgroundInteractiveInactiveNegative,\n purpurColorBackgroundInteractivePrimary,\n purpurColorBackgroundInteractivePrimaryActive,\n purpurColorBackgroundInteractivePrimaryActiveNegative,\n purpurColorBackgroundInteractivePrimaryHover,\n purpurColorBackgroundInteractivePrimaryHoverNegative,\n purpurColorBackgroundInteractivePrimaryNegative,\n purpurColorBackgroundInteractiveReadOnly,\n purpurColorBackgroundInteractiveReadOnlyNegative,\n purpurColorBackgroundInteractiveTransparentActive,\n purpurColorBackgroundInteractiveTransparentActiveNegative,\n purpurColorBackgroundInteractiveTransparentHover,\n purpurColorBackgroundInteractiveTransparentHoverNegative,\n purpurColorBackgroundOnImage,\n purpurColorBackgroundOnImageNegative,\n purpurColorBackgroundPrimary,\n purpurColorBackgroundPrimaryNegative,\n purpurColorBackgroundSecondary,\n purpurColorBackgroundSecondaryNegative,\n purpurColorBackgroundStatusAttention,\n purpurColorBackgroundStatusBlackFriday,\n purpurColorBackgroundStatusErrorMedium,\n purpurColorBackgroundStatusErrorStrong,\n purpurColorBackgroundStatusErrorStrongNegative,\n purpurColorBackgroundStatusInfoMedium,\n purpurColorBackgroundStatusInfoStrong,\n purpurColorBackgroundStatusNeutral,\n purpurColorBackgroundStatusSpecial,\n purpurColorBackgroundStatusSuccessMedium,\n purpurColorBackgroundStatusSuccessStrong,\n purpurColorBackgroundStatusSuccessStrongNegative,\n purpurColorBackgroundStatusWarningMedium,\n purpurColorBackgroundStatusWarningStrong,\n purpurColorBackgroundStatusWarningStrongNegative,\n purpurColorBackgroundToneOnTonePrimary,\n purpurColorBackgroundToneOnToneQuaternary,\n purpurColorBackgroundToneOnToneSecondary,\n purpurColorBackgroundToneOnToneTertiary,\n purpurColorBorderInteractiveExpressive,\n purpurColorBorderInteractiveFocus,\n purpurColorBorderInteractivePrimary,\n purpurColorBorderInteractivePrimaryActive,\n purpurColorBorderInteractivePrimaryActiveNegative,\n purpurColorBorderInteractivePrimaryHover,\n purpurColorBorderInteractivePrimaryHoverNegative,\n purpurColorBorderInteractivePrimaryNegative,\n purpurColorBorderInteractiveSelected,\n purpurColorBorderInteractiveSubtle,\n purpurColorBorderInteractiveSubtleHover,\n purpurColorBorderInteractiveSubtleHoverNegative,\n purpurColorBorderInteractiveSubtleNegative,\n purpurColorBorderMedium,\n purpurColorBorderMediumNegative,\n purpurColorBorderStatusError,\n purpurColorBorderStatusErrorNegative,\n purpurColorBorderStatusInfo,\n purpurColorBorderStatusSuccess,\n purpurColorBorderStatusSuccessNegative,\n purpurColorBorderStatusWarning,\n purpurColorBorderStrong,\n purpurColorBorderStrongNegative,\n purpurColorBorderWeak,\n purpurColorBorderWeakNegative,\n purpurColorBrandBeige,\n purpurColorBrandCorePurple,\n purpurColorBrandDeepBeige,\n purpurColorBrandDeepPurple,\n purpurColorBrandLightBeige,\n purpurColorBrandLightPurple,\n purpurColorBrandOffBlack,\n purpurColorBrandWhite,\n purpurColorTextDefault,\n purpurColorTextDefaultNegative,\n purpurColorTextInteractiveOnDestructive,\n purpurColorTextInteractiveOnExpressive,\n purpurColorTextInteractiveOnExpressiveActive,\n purpurColorTextInteractiveOnExpressiveActiveNegative,\n purpurColorTextInteractiveOnExpressiveHover,\n purpurColorTextInteractiveOnExpressiveHoverNegative,\n purpurColorTextInteractiveOnExpressiveNegative,\n purpurColorTextInteractiveOnPrimary,\n purpurColorTextInteractiveOnPrimaryNegative,\n purpurColorTextInteractivePrimary,\n purpurColorTextInteractivePrimaryActive,\n purpurColorTextInteractivePrimaryActiveNegative,\n purpurColorTextInteractivePrimaryHover,\n purpurColorTextInteractivePrimaryHoverNegative,\n purpurColorTextInteractivePrimaryNegative,\n purpurColorTextInteractiveSelected,\n purpurColorTextMedium,\n purpurColorTextMediumNegative,\n purpurColorTextStatusAttention,\n purpurColorTextStatusBlackFriday,\n purpurColorTextStatusDiscount,\n purpurColorTextStatusErrorMedium,\n purpurColorTextStatusErrorMediumNegative,\n purpurColorTextStatusErrorStrong,\n purpurColorTextStatusErrorStrongNegative,\n purpurColorTextStatusInfoMedium,\n purpurColorTextStatusInfoStrong,\n purpurColorTextStatusNeutral,\n purpurColorTextStatusSpecial,\n purpurColorTextStatusSuccessMedium,\n purpurColorTextStatusSuccessStrong,\n purpurColorTextStatusSuccessStrongNegative,\n purpurColorTextStatusWarningMedium,\n purpurColorTextStatusWarningMediumNegative,\n purpurColorTextStatusWarningStrong,\n purpurColorTextToneOnTonePrimary,\n purpurColorTextToneOnToneSecondary,\n purpurColorTextToneOnToneTertiary,\n purpurColorTextWeak,\n purpurColorTextWeakNegative,\n} from \"@purpur/tokens\";\n\nimport type { ThemeProps } from \"./theme-props\";\n\nexport const light = {\n colorBrandDeepPurple: purpurColorBrandDeepPurple,\n colorBrandCorePurple: purpurColorBrandCorePurple,\n colorBrandLightPurple: purpurColorBrandLightPurple,\n colorBrandDeepBeige: purpurColorBrandDeepBeige,\n colorBrandBeige: purpurColorBrandBeige,\n colorBrandLightBeige: purpurColorBrandLightBeige,\n colorBrandOffBlack: purpurColorBrandOffBlack,\n colorBrandWhite: purpurColorBrandWhite,\n\n colorTextDefault: purpurColorTextDefault,\n colorTextMedium: purpurColorTextMedium,\n colorTextWeak: purpurColorTextWeak,\n colorTextDefaultNegative: purpurColorTextDefaultNegative,\n colorTextMediumNegative: purpurColorTextMediumNegative,\n colorTextWeakNegative: purpurColorTextWeakNegative,\n\n colorTextInteractivePrimary: purpurColorTextInteractivePrimary,\n colorTextInteractivePrimaryHover: purpurColorTextInteractivePrimaryHover,\n colorTextInteractivePrimaryActive: purpurColorTextInteractivePrimaryActive,\n colorTextInteractiveOnPrimary: purpurColorTextInteractiveOnPrimary,\n colorTextInteractiveOnExpressive: purpurColorTextInteractiveOnExpressive,\n colorTextInteractiveOnExpressiveHover: purpurColorTextInteractiveOnExpressiveHover,\n colorTextInteractiveOnExpressiveActive: purpurColorTextInteractiveOnExpressiveActive,\n colorTextInteractiveOnDestructive: purpurColorTextInteractiveOnDestructive,\n colorTextInteractiveSelected: purpurColorTextInteractiveSelected,\n colorTextInteractivePrimaryNegative: purpurColorTextInteractivePrimaryNegative,\n colorTextInteractivePrimaryHoverNegative: purpurColorTextInteractivePrimaryHoverNegative,\n colorTextInteractivePrimaryActiveNegative: purpurColorTextInteractivePrimaryActiveNegative,\n colorTextInteractiveOnPrimaryNegative: purpurColorTextInteractiveOnPrimaryNegative,\n colorTextInteractiveOnExpressiveNegative: purpurColorTextInteractiveOnExpressiveNegative,\n colorTextInteractiveOnExpressiveHoverNegative:\n purpurColorTextInteractiveOnExpressiveHoverNegative,\n colorTextInteractiveOnExpressiveActiveNegative:\n purpurColorTextInteractiveOnExpressiveActiveNegative,\n\n colorTextStatusInfoMedium: purpurColorTextStatusInfoMedium,\n colorTextStatusInfoStrong: purpurColorTextStatusInfoStrong,\n colorTextStatusSuccessMedium: purpurColorTextStatusSuccessMedium,\n colorTextStatusSuccessStrong: purpurColorTextStatusSuccessStrong,\n colorTextStatusWarningMedium: purpurColorTextStatusWarningMedium,\n colorTextStatusWarningStrong: purpurColorTextStatusWarningStrong,\n colorTextStatusErrorMedium: purpurColorTextStatusErrorMedium,\n colorTextStatusErrorStrong: purpurColorTextStatusErrorStrong,\n colorTextStatusNeutral: purpurColorTextStatusNeutral,\n colorTextStatusSpecial: purpurColorTextStatusSpecial,\n colorTextStatusAttention: purpurColorTextStatusAttention,\n colorTextStatusDiscount: purpurColorTextStatusDiscount,\n colorTextStatusBlackFriday: purpurColorTextStatusBlackFriday,\n colorTextStatusSuccessStrongNegative: purpurColorTextStatusSuccessStrongNegative,\n colorTextStatusErrorMediumNegative: purpurColorTextStatusErrorMediumNegative,\n colorTextStatusErrorStrongNegative: purpurColorTextStatusErrorStrongNegative,\n colorTextStatusWarningMediumNegative: purpurColorTextStatusWarningMediumNegative,\n\n colorTextToneOnTonePrimary: purpurColorTextToneOnTonePrimary,\n colorTextToneOnToneSecondary: purpurColorTextToneOnToneSecondary,\n colorTextToneOnToneTertiary: purpurColorTextToneOnToneTertiary,\n\n colorBackgroundPrimary: purpurColorBackgroundPrimary,\n colorBackgroundSecondary: purpurColorBackgroundSecondary,\n colorBackgroundOnImage: purpurColorBackgroundOnImage,\n colorBackgroundPrimaryNegative: purpurColorBackgroundPrimaryNegative,\n colorBackgroundSecondaryNegative: purpurColorBackgroundSecondaryNegative,\n colorBackgroundOnImageNegative: purpurColorBackgroundOnImageNegative,\n\n colorBackgroundInteractivePrimary: purpurColorBackgroundInteractivePrimary,\n colorBackgroundInteractivePrimaryHover: purpurColorBackgroundInteractivePrimaryHover,\n colorBackgroundInteractivePrimaryActive: purpurColorBackgroundInteractivePrimaryActive,\n colorBackgroundInteractiveExpressive: purpurColorBackgroundInteractiveExpressive,\n colorBackgroundInteractiveExpressiveHover: purpurColorBackgroundInteractiveExpressiveHover,\n colorBackgroundInteractiveExpressiveActive: purpurColorBackgroundInteractiveExpressiveActive,\n colorBackgroundInteractiveTransparentHover: purpurColorBackgroundInteractiveTransparentHover,\n colorBackgroundInteractiveTransparentActive: purpurColorBackgroundInteractiveTransparentActive,\n colorBackgroundInteractiveDisabled: purpurColorBackgroundInteractiveDisabled,\n colorBackgroundInteractiveReadOnly: purpurColorBackgroundInteractiveReadOnly,\n colorBackgroundInteractiveInactive: purpurColorBackgroundInteractiveInactive,\n colorBackgroundInteractiveDestructive: purpurColorBackgroundInteractiveDestructive,\n colorBackgroundInteractiveDestructiveHover: purpurColorBackgroundInteractiveDestructiveHover,\n colorBackgroundInteractiveDestructiveActive: purpurColorBackgroundInteractiveDestructiveActive,\n colorBackgroundInteractiveAutoFill: purpurColorBackgroundInteractiveAutoFill,\n colorBackgroundInteractivePrimaryNegative: purpurColorBackgroundInteractivePrimaryNegative,\n colorBackgroundInteractivePrimaryHoverNegative:\n purpurColorBackgroundInteractivePrimaryHoverNegative,\n colorBackgroundInteractivePrimaryActiveNegative:\n purpurColorBackgroundInteractivePrimaryActiveNegative,\n colorBackgroundInteractiveExpressiveNegative: purpurColorBackgroundInteractiveExpressiveNegative,\n colorBackgroundInteractiveExpressiveHoverNegative:\n purpurColorBackgroundInteractiveExpressiveHoverNegative,\n colorBackgroundInteractiveExpressiveActiveNegative:\n purpurColorBackgroundInteractiveExpressiveActiveNegative,\n colorBackgroundInteractiveTransparentHoverNegative:\n purpurColorBackgroundInteractiveTransparentHoverNegative,\n colorBackgroundInteractiveTransparentActiveNegative:\n purpurColorBackgroundInteractiveTransparentActiveNegative,\n colorBackgroundInteractiveDisabledNegative: purpurColorBackgroundInteractiveDisabledNegative,\n colorBackgroundInteractiveInactiveNegative: purpurColorBackgroundInteractiveInactiveNegative,\n colorBackgroundInteractiveReadOnlyNegative: purpurColorBackgroundInteractiveReadOnlyNegative,\n\n colorBackgroundStatusInfoMedium: purpurColorBackgroundStatusInfoMedium,\n colorBackgroundStatusInfoStrong: purpurColorBackgroundStatusInfoStrong,\n colorBackgroundStatusSuccessMedium: purpurColorBackgroundStatusSuccessMedium,\n colorBackgroundStatusSuccessStrong: purpurColorBackgroundStatusSuccessStrong,\n colorBackgroundStatusWarningMedium: purpurColorBackgroundStatusWarningMedium,\n colorBackgroundStatusWarningStrong: purpurColorBackgroundStatusWarningStrong,\n colorBackgroundStatusErrorMedium: purpurColorBackgroundStatusErrorMedium,\n colorBackgroundStatusErrorStrong: purpurColorBackgroundStatusErrorStrong,\n colorBackgroundStatusNeutral: purpurColorBackgroundStatusNeutral,\n colorBackgroundStatusSpecial: purpurColorBackgroundStatusSpecial,\n colorBackgroundStatusAttention: purpurColorBackgroundStatusAttention,\n colorBackgroundStatusBlackFriday: purpurColorBackgroundStatusBlackFriday,\n colorBackgroundStatusSuccessStrongNegative: purpurColorBackgroundStatusSuccessStrongNegative,\n colorBackgroundStatusWarningStrongNegative: purpurColorBackgroundStatusWarningStrongNegative,\n colorBackgroundStatusErrorStrongNegative: purpurColorBackgroundStatusErrorStrongNegative,\n\n colorBackgroundToneOnTonePrimary: purpurColorBackgroundToneOnTonePrimary,\n colorBackgroundToneOnToneSecondary: purpurColorBackgroundToneOnToneSecondary,\n colorBackgroundToneOnToneTertiary: purpurColorBackgroundToneOnToneTertiary,\n colorBackgroundToneOnToneQuaternary: purpurColorBackgroundToneOnToneQuaternary,\n\n colorBorderWeak: purpurColorBorderWeak,\n colorBorderMedium: purpurColorBorderMedium,\n colorBorderStrong: purpurColorBorderStrong,\n colorBorderWeakNegative: purpurColorBorderWeakNegative,\n colorBorderMediumNegative: purpurColorBorderMediumNegative,\n colorBorderStrongNegative: purpurColorBorderStrongNegative,\n\n colorBorderInteractivePrimary: purpurColorBorderInteractivePrimary,\n colorBorderInteractivePrimaryHover: purpurColorBorderInteractivePrimaryHover,\n colorBorderInteractivePrimaryActive: purpurColorBorderInteractivePrimaryActive,\n colorBorderInteractiveFocus: purpurColorBorderInteractiveFocus,\n colorBorderInteractiveExpressive: purpurColorBorderInteractiveExpressive,\n colorBorderInteractiveSubtle: purpurColorBorderInteractiveSubtle,\n colorBorderInteractiveSubtleHover: purpurColorBorderInteractiveSubtleHover,\n colorBorderInteractiveSelected: purpurColorBorderInteractiveSelected,\n colorBorderInteractivePrimaryNegative: purpurColorBorderInteractivePrimaryNegative,\n colorBorderInteractivePrimaryHoverNegative: purpurColorBorderInteractivePrimaryHoverNegative,\n colorBorderInteractivePrimaryActiveNegative: purpurColorBorderInteractivePrimaryActiveNegative,\n colorBorderInteractiveSubtleNegative: purpurColorBorderInteractiveSubtleNegative,\n colorBorderInteractiveSubtleHoverNegative: purpurColorBorderInteractiveSubtleHoverNegative,\n\n colorBorderStatusError: purpurColorBorderStatusError,\n colorBorderStatusWarning: purpurColorBorderStatusWarning,\n colorBorderStatusInfo: purpurColorBorderStatusInfo,\n colorBorderStatusSuccess: purpurColorBorderStatusSuccess,\n colorBorderStatusErrorNegative: purpurColorBorderStatusErrorNegative,\n colorBorderStatusSuccessNegative: purpurColorBorderStatusSuccessNegative,\n} satisfies ThemeProps;\n","import { dark } from \"./telia-dark\";\nimport { light } from \"./telia-light\";\nimport type { ThemeProps } from \"./theme-props\";\n\nexport const teliaTheme = {\n light,\n dark,\n} satisfies { light: ThemeProps; dark: ThemeProps };\n","import { useEffect } from \"react\";\nimport { kebabCase } from \"change-case\";\n\nimport { teliaTheme } from \"./telia-theme\";\nimport type { ColorScheme, Theme } from \"./types\";\n\ntype Props = {\n theme?: Theme;\n cssVariablesSelector?: string;\n currentColorScheme?: ColorScheme;\n};\n\nexport const useApplyTheme = ({\n theme = teliaTheme,\n cssVariablesSelector,\n currentColorScheme,\n}: Props) => {\n useEffect(() => {\n if (currentColorScheme) {\n Object.entries(theme?.[currentColorScheme] ?? teliaTheme[currentColorScheme]).forEach(\n ([key, value]) => {\n const element = cssVariablesSelector\n ? (document.querySelector(cssVariablesSelector) as HTMLElement)\n : null;\n\n (element ?? document.documentElement).style.setProperty(\n `--purpur-${kebabCase(key)}`,\n value\n );\n }\n );\n }\n }, [theme, cssVariablesSelector, currentColorScheme]);\n};\n","import React, {\n createContext,\n type ReactNode,\n useContext,\n useEffect,\n useMemo,\n useState,\n} from \"react\";\nimport type { BaseProps } from \"@purpur/common-types\";\n\nimport type { ThemeProps } from \"./theme-props\";\nimport type { ColorOptions, ColorScheme, ThemeContextType } from \"./types\";\nimport { useApplyTheme } from \"./useApplyTheme\";\n\nconst ThemeContext = createContext<ThemeContextType>({\n colorScheme: \"light\",\n currentColorScheme: \"light\",\n setColorScheme: () => {},\n options: {},\n});\n\ntype PropsBase = Omit<BaseProps, \"children\"> & {\n children: ReactNode;\n cssVariablesSelector?: string;\n options?: ThemeContextType[\"options\"];\n};\n\nexport type Props =\n | PropsBase &\n (\n | {\n theme: { light: ThemeProps; dark?: never };\n forceColorScheme: \"light\";\n }\n | {\n theme?: { light: ThemeProps; dark: ThemeProps };\n forceColorScheme?: ColorScheme;\n }\n );\n\nexport const ThemeProvider = ({\n cssVariablesSelector,\n forceColorScheme,\n theme,\n children,\n options = {},\n ...props\n}: Props) => {\n const [colorScheme, setColorScheme] = useState<ColorOptions>(forceColorScheme ?? \"auto\");\n const [currentColorScheme, setCurrentColorScheme] = useState<ColorScheme>(\n forceColorScheme ?? \"light\"\n );\n\n useEffect(() => {\n if (!forceColorScheme) {\n const savedColorScheme = localStorage.getItem(\"colorScheme\") as ColorOptions | null;\n if (savedColorScheme) {\n setColorScheme(savedColorScheme);\n }\n } else {\n setColorScheme(forceColorScheme);\n }\n }, [forceColorScheme]);\n\n useEffect(() => {\n const mediaQuery = window.matchMedia(\"(prefers-color-scheme: dark)\");\n\n if (colorScheme === \"auto\") {\n setCurrentColorScheme(mediaQuery.matches ? \"dark\" : \"light\");\n } else {\n setCurrentColorScheme(colorScheme);\n }\n\n const handleChange = (e: MediaQueryListEvent) => {\n if (!forceColorScheme && colorScheme === \"auto\") {\n setCurrentColorScheme(e.matches ? \"dark\" : \"light\");\n }\n };\n\n mediaQuery.addEventListener(\"change\", handleChange);\n\n return () => {\n mediaQuery.removeEventListener(\"change\", handleChange);\n };\n }, [colorScheme, forceColorScheme]);\n\n const isCustomTheme = theme !== undefined;\n\n useApplyTheme({\n theme,\n cssVariablesSelector,\n currentColorScheme: isCustomTheme ? currentColorScheme : undefined,\n });\n\n const contextValue = useMemo(\n () => ({\n colorScheme,\n currentColorScheme,\n setColorScheme: (scheme: ColorOptions) => {\n if (!forceColorScheme) {\n setColorScheme(scheme);\n localStorage.setItem(\"colorScheme\", scheme);\n }\n },\n }),\n [colorScheme, currentColorScheme, forceColorScheme]\n );\n\n return (\n <ThemeContext.Provider value={{ ...contextValue, options }}>\n <div data-color-scheme={currentColorScheme} className={currentColorScheme} {...props}>\n {children}\n </div>\n </ThemeContext.Provider>\n );\n};\n\nexport const useTheme = (): ThemeContextType => {\n const context = useContext(ThemeContext);\n if (!context) {\n throw new Error(\"useTheme must be used within a ThemeProvider\");\n }\n return context;\n};\n"],"names":["purpurColorBrandDeepPurple","purpurColorBrandCorePurple","purpurColorBrandLightPurple","purpurColorBrandDeepBeige","purpurColorBrandBeige","purpurColorBrandLightBeige","purpurColorBrandOffBlack","purpurColorBrandWhite","purpurColorTextDefault","purpurColorTextMedium","purpurColorTextWeak","purpurColorTextDefaultNegative","purpurColorTextMediumNegative","purpurColorTextWeakNegative","purpurColorTextInteractivePrimary","purpurColorTextInteractivePrimaryHover","purpurColorTextInteractivePrimaryActive","purpurColorTextInteractiveOnPrimary","purpurColorTextInteractiveOnPrimaryNegative","purpurColorTextInteractivePrimaryNegative","purpurColorTextInteractivePrimaryHoverNegative","purpurColorTextInteractivePrimaryActiveNegative","purpurColorTextInteractiveOnExpressive","purpurColorTextInteractiveOnExpressiveNegative","purpurColorTextInteractiveOnExpressiveHover","purpurColorTextInteractiveOnExpressiveHoverNegative","purpurColorTextInteractiveOnExpressiveActive","purpurColorTextInteractiveOnExpressiveActiveNegative","purpurColorTextInteractiveOnDestructive","purpurColorTextInteractiveSelected","purpurColorTextStatusDiscount","purpurColorTextStatusErrorStrong","purpurColorTextStatusErrorStrongNegative","purpurColorTextStatusErrorMedium","purpurColorTextStatusErrorMediumNegative","purpurColorTextStatusSuccessStrong","purpurColorTextStatusSuccessStrongNegative","purpurColorTextStatusSuccessMedium","purpurColorTextStatusWarningStrong","purpurColorTextStatusWarningMedium","purpurColorTextStatusWarningMediumNegative","purpurColorTextStatusInfoStrong","purpurColorTextStatusInfoMedium","purpurColorTextStatusNeutral","purpurColorTextStatusSpecial","purpurColorTextStatusAttention","purpurColorTextStatusBlackFriday","purpurColorTextToneOnTonePrimary","purpurColorTextToneOnToneSecondary","purpurColorTextToneOnToneTertiary","purpurColorBackgroundPrimary","purpurColorBackgroundPrimaryNegative","purpurColorBackgroundSecondary","purpurColorBackgroundSecondaryNegative","purpurColorBackgroundOnImage","purpurColorBackgroundOnImageNegative","purpurColorBackgroundInteractiveAutoFill","purpurColorBackgroundInteractivePrimary","purpurColorBackgroundInteractivePrimaryHover","purpurColorBackgroundInteractivePrimaryActive","purpurColorBackgroundInteractivePrimaryNegative","purpurColorBackgroundInteractivePrimaryHoverNegative","purpurColorBackgroundInteractivePrimaryActiveNegative","purpurColorBackgroundInteractiveExpressive","purpurColorBackgroundInteractiveExpressiveHover","purpurColorBackgroundInteractiveExpressiveActive","purpurColorBackgroundInteractiveExpressiveNegative","purpurColorBackgroundInteractiveExpressiveHoverNegative","purpurColorBackgroundInteractiveExpressiveActiveNegative","purpurColorBackgroundInteractiveDisabled","purpurColorBackgroundInteractiveDisabledNegative","purpurColorBackgroundInteractiveTransparentHover","purpurColorBackgroundInteractiveTransparentHoverNegative","purpurColorBackgroundInteractiveTransparentActive","purpurColorBackgroundInteractiveTransparentActiveNegative","purpurColorBackgroundInteractiveInactive","purpurColorBackgroundInteractiveInactiveNegative","purpurColorBackgroundInteractiveReadOnly","purpurColorBackgroundInteractiveReadOnlyNegative","purpurColorBackgroundInteractiveDestructive","purpurColorBackgroundInteractiveDestructiveHover","purpurColorBackgroundInteractiveDestructiveActive","purpurColorBackgroundStatusInfoMedium","purpurColorBackgroundStatusInfoStrong","purpurColorBackgroundStatusSuccessMedium","purpurColorBackgroundStatusSuccessStrong","purpurColorBackgroundStatusSuccessStrongNegative","purpurColorBackgroundStatusErrorMedium","purpurColorBackgroundStatusErrorStrong","purpurColorBackgroundStatusErrorStrongNegative","purpurColorBackgroundStatusWarningMedium","purpurColorBackgroundStatusWarningStrong","purpurColorBackgroundStatusWarningStrongNegative","purpurColorBackgroundStatusNeutral","purpurColorBackgroundStatusSpecial","purpurColorBackgroundStatusAttention","purpurColorBackgroundStatusBlackFriday","purpurColorBackgroundToneOnTonePrimary","purpurColorBackgroundToneOnToneSecondary","purpurColorBackgroundToneOnToneTertiary","purpurColorBackgroundToneOnToneQuaternary","purpurColorBorderMedium","purpurColorBorderMediumNegative","purpurColorBorderStrong","purpurColorBorderStrongNegative","purpurColorBorderWeak","purpurColorBorderWeakNegative","purpurColorBorderInteractiveFocus","purpurColorBorderInteractivePrimary","purpurColorBorderInteractivePrimaryNegative","purpurColorBorderInteractivePrimaryHover","purpurColorBorderInteractivePrimaryActive","purpurColorBorderInteractivePrimaryHoverNegative","purpurColorBorderInteractivePrimaryActiveNegative","purpurColorBorderInteractiveExpressive","purpurColorBorderInteractiveSelected","purpurColorBorderInteractiveSubtle","purpurColorBorderInteractiveSubtleNegative","purpurColorBorderInteractiveSubtleHover","purpurColorBorderInteractiveSubtleHoverNegative","purpurColorBorderStatusError","purpurColorBorderStatusErrorNegative","purpurColorBorderStatusWarning","purpurColorBorderStatusInfo","purpurColorBorderStatusSuccess","purpurColorBorderStatusSuccessNegative","dark","light","teliaTheme","useApplyTheme","theme","cssVariablesSelector","currentColorScheme","useEffect","key","value","kebabCase","ThemeContext","createContext","ThemeProvider","forceColorScheme","children","options","props","colorScheme","setColorScheme","useState","setCurrentColorScheme","savedColorScheme","mediaQuery","handleChange","e","contextValue","useMemo","scheme","jsx","useTheme","context","useContext"],"mappings":"mIAwHaA,EAA6B,UAC7BC,EAA6B,UAC7BC,EAA8B,UAC9BC,EAA4B,UAC5BC,EAAwB,UACxBC,EAA6B,UAC7BC,EAA2B,UAC3BC,EAAwB,UACxBC,EAAyB,4BACzBC,EAAwB,4BACxBC,EAAsB,4BACtBC,EAAiC,qBACjCC,EAAgC,sBAChCC,EAA8B,sBAC9BC,EAAoC,UACpCC,EAAyC,UACzCC,EAA0C,UAC1CC,EAAsC,UACtCC,EAA8C,UAC9CC,EAA4C,UAC5CC,EA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ACH,MAAM,IAAI,MAAM,8CAA8C,EAEhE,OAAOA,CACT"}
1
+ {"version":3,"file":"ThemeProvider-ipAIFRUi.js","sources":["../../tokens/dist/color/variables.dark.js","../../theme/src/telia-dark.ts","../../theme/src/telia-light.ts","../../theme/src/telia-theme.ts","../../theme/src/useApplyTheme.ts","../../theme/src/ThemeProvider.tsx"],"sourcesContent":["export const purpurColorPurple50 = \"#faf0ff\";\nexport const purpurColorPurple100 = \"#f4e0ff\";\nexport const purpurColorPurple200 = \"#e4b6fb\";\nexport const purpurColorPurple300 = \"#d58df9\";\nexport const purpurColorPurple400 = \"#c461f7\";\nexport const purpurColorPurple500 = \"#b12df4\";\nexport const purpurColorPurple550 = \"#990ae3\";\nexport const purpurColorPurple600 = \"#8c07d0\";\nexport const purpurColorPurple700 = \"#6d02a3\";\nexport const purpurColorPurple800 = \"#4e0174\";\nexport const purpurColorPurple900 = \"#29003e\";\nexport const purpurColorPurple950 = \"#1f002e\";\nexport const purpurColorBeige50 = \"#f9f1ec\";\nexport const purpurColorBeige100 = \"#ede1d8\";\nexport const purpurColorBeige200 = \"#d7c3b5\";\nexport const purpurColorBeige300 = \"#bba494\";\nexport const purpurColorBeige400 = \"#a08877\";\nexport const purpurColorBeige500 = \"#807268\";\nexport const purpurColorBeige600 = \"#665e58\";\nexport const purpurColorBeige700 = \"#4f4741\";\nexport const purpurColorBeige800 = \"#3b332d\";\nexport const purpurColorBeige900 = \"#2d2824\";\nexport const purpurColorBeige950 = \"#170f09\";\nexport const purpurColorTeal50 = \"#edf5f5\";\nexport const purpurColorTeal100 = \"#d5eae9\";\nexport const purpurColorTeal200 = \"#a1cfcd\";\nexport const purpurColorTeal300 = \"#6eb5b2\";\nexport const purpurColorTeal400 = \"#3a9b96\";\nexport const purpurColorTeal500 = \"#00847e\";\nexport const purpurColorTeal600 = \"#006c67\";\nexport const purpurColorTeal700 = \"#02534f\";\nexport const purpurColorTeal800 = \"#063c39\";\nexport const purpurColorTeal900 = \"#032220\";\nexport const purpurColorTeal950 = \"#011413\";\nexport const purpurColorGray50 = \"#f5f5fa\";\nexport const purpurColorGray100 = \"#e5e5eb\";\nexport const purpurColorGray150 = \"#d6d6dd\";\nexport const purpurColorGray200 = \"#c6c6cd\";\nexport const purpurColorGray300 = \"#aaaab0\";\nexport const purpurColorGray400 = \"#8d8d94\";\nexport const purpurColorGray500 = \"#757579\";\nexport const purpurColorGray600 = \"#5f5f63\";\nexport const purpurColorGray700 = \"#4a4a4d\";\nexport const purpurColorGray800 = \"#353537\";\nexport const purpurColorGray850 = \"#2a2a2c\";\nexport const purpurColorGray900 = \"#202022\";\nexport const purpurColorGray950 = \"#121212\";\nexport const purpurColorGreen50 = \"#e1f9ec\";\nexport const purpurColorGreen100 = \"#c5efd9\";\nexport const purpurColorGreen200 = \"#79d9a7\";\nexport const purpurColorGreen300 = \"#3dbf7c\";\nexport const purpurColorGreen400 = \"#1fa15e\";\nexport const purpurColorGreen500 = \"#018842\";\nexport const purpurColorGreen600 = \"#017037\";\nexport const purpurColorGreen700 = \"#02562b\";\nexport const purpurColorGreen800 = \"#003e1e\";\nexport const purpurColorGreen900 = \"#002411\";\nexport const purpurColorGreen950 = \"#00150a\";\nexport const purpurColorRed50 = \"#fff0f5\";\nexport const purpurColorRed100 = \"#ffdde8\";\nexport const purpurColorRed200 = \"#ffafc9\";\nexport const purpurColorRed300 = \"#ff80ab\";\nexport const purpurColorRed400 = \"#fb4885\";\nexport const purpurColorRed500 = \"#e4175c\";\nexport const purpurColorRed600 = \"#c00543\";\nexport const purpurColorRed700 = \"#980233\";\nexport const purpurColorRed800 = \"#700025\";\nexport const purpurColorRed900 = \"#440016\";\nexport const purpurColorRed950 = \"#2c000e\";\nexport const purpurColorOrange50 = \"#fff2de\";\nexport const purpurColorOrange100 = \"#ffe1b3\";\nexport const purpurColorOrange200 = \"#f9bb5b\";\nexport const purpurColorOrange300 = \"#f39200\";\nexport const purpurColorOrange400 = \"#cc7a00\";\nexport const purpurColorOrange500 = \"#a86602\";\nexport const purpurColorOrange600 = \"#8b5301\";\nexport const purpurColorOrange700 = \"#6a4102\";\nexport const purpurColorOrange800 = \"#4c2f03\";\nexport const purpurColorOrange900 = \"#2b1b03\";\nexport const purpurColorOrange950 = \"#1a0f00\";\nexport const purpurColorBlue50 = \"#e8f6ff\";\nexport const purpurColorBlue100 = \"#caeaff\";\nexport const purpurColorBlue200 = \"#91cdf4\";\nexport const purpurColorBlue300 = \"#62b2e7\";\nexport const purpurColorBlue400 = \"#3694d3\";\nexport const purpurColorBlue500 = \"#0078cb\";\nexport const purpurColorBlue600 = \"#0063a6\";\nexport const purpurColorBlue700 = \"#014d80\";\nexport const purpurColorBlue800 = \"#03385b\";\nexport const purpurColorBlue900 = \"#002036\";\nexport const purpurColorBlue950 = \"#011320\";\nexport const purpurColorTransparentBlack50 = \"rgba(0, 0, 0, 0.05)\";\nexport const purpurColorTransparentBlack100 = \"rgba(0, 0, 0, 0.1)\";\nexport const purpurColorTransparentBlack150 = \"rgba(0, 0, 0, 0.16)\";\nexport const purpurColorTransparentBlack200 = \"rgba(0, 0, 0, 0.22)\";\nexport const purpurColorTransparentBlack300 = \"rgba(0, 0, 0, 0.33)\";\nexport const purpurColorTransparentBlack400 = \"rgba(0, 0, 0, 0.44)\";\nexport const purpurColorTransparentBlack500 = \"rgba(0, 0, 0, 0.54)\";\nexport const purpurColorTransparentBlack600 = \"rgba(0, 0, 0, 0.62)\";\nexport const purpurColorTransparentBlack700 = \"rgba(0, 0, 0, 0.71)\";\nexport const purpurColorTransparentBlack800 = \"rgba(0, 0, 0, 0.8)\";\nexport const purpurColorTransparentBlack850 = \"rgba(0, 0, 0, 0.84)\";\nexport const purpurColorTransparentBlack900 = \"rgba(0, 0, 0, 0.88)\";\nexport const purpurColorTransparentBlack950 = \"rgba(0, 0, 0, 0.93)\";\nexport const purpurColorTransparentWhite50 = \"rgba(255, 255, 255, 0.07)\";\nexport const purpurColorTransparentWhite100 = \"rgba(255, 255, 255, 0.11)\";\nexport const purpurColorTransparentWhite150 = \"rgba(255, 255, 255, 0.16)\";\nexport const purpurColorTransparentWhite200 = \"rgba(255, 255, 255, 0.21)\";\nexport const purpurColorTransparentWhite300 = \"rgba(255, 255, 255, 0.29)\";\nexport const purpurColorTransparentWhite400 = \"rgba(255, 255, 255, 0.37)\";\nexport const purpurColorTransparentWhite500 = \"rgba(255, 255, 255, 0.46)\";\nexport const purpurColorTransparentWhite600 = \"rgba(255, 255, 255, 0.55)\";\nexport const purpurColorTransparentWhite700 = \"rgba(255, 255, 255, 0.66)\";\nexport const purpurColorTransparentWhite800 = \"rgba(255, 255, 255, 0.79)\";\nexport const purpurColorTransparentWhite850 = \"rgba(255, 255, 255, 0.84)\";\nexport const purpurColorTransparentWhite900 = \"rgba(255, 255, 255, 0.89)\";\nexport const purpurColorTransparentWhite950 = \"rgba(255, 255, 255, 0.95)\";\nexport const purpurColorFunctionalBlack = \"#000000\";\nexport const purpurColorFunctionalWhite = \"#ffffff\";\nexport const purpurColorFunctionalTransparent = \"rgba(255, 255, 255, 0)\";\nexport const purpurColorBrandDeepPurple = \"#f4e0ff\";\nexport const purpurColorBrandCorePurple = \"#c461f7\";\nexport const purpurColorBrandLightPurple = \"#29003e\";\nexport const purpurColorBrandDeepBeige = \"#ede1d8\";\nexport const purpurColorBrandBeige = \"#4f4741\";\nexport const purpurColorBrandLightBeige = \"#3b332d\";\nexport const purpurColorBrandOffBlack = \"#ffffff\";\nexport const purpurColorBrandWhite = \"#202022\";\nexport const purpurColorTextDefault = \"rgba(255, 255, 255, 0.95)\";\nexport const purpurColorTextMedium = \"rgba(255, 255, 255, 0.66)\";\nexport const purpurColorTextWeak = \"rgba(255, 255, 255, 0.37)\";\nexport const purpurColorTextDefaultNegative = \"rgba(0, 0, 0, 0.8)\";\nexport const purpurColorTextMediumNegative = \"rgba(0, 0, 0, 0.54)\";\nexport const purpurColorTextWeakNegative = \"rgba(0, 0, 0, 0.44)\";\nexport const purpurColorTextInteractivePrimary = \"#e4b6fb\";\nexport const purpurColorTextInteractivePrimaryHover = \"#f4e0ff\";\nexport const purpurColorTextInteractivePrimaryActive = \"#faf0ff\";\nexport const purpurColorTextInteractiveOnPrimary = \"#4e0174\";\nexport const purpurColorTextInteractiveOnPrimaryNegative = \"#ffffff\";\nexport const purpurColorTextInteractivePrimaryNegative = \"#8c07d0\";\nexport const purpurColorTextInteractivePrimaryHoverNegative = \"#6d02a3\";\nexport const purpurColorTextInteractivePrimaryActiveNegative = \"#4e0174\";\nexport const purpurColorTextInteractiveOnExpressive = \"#ffffff\";\nexport const purpurColorTextInteractiveOnExpressiveNegative = \"#ffffff\";\nexport const purpurColorTextInteractiveOnExpressiveHover = \"#29003e\";\nexport const purpurColorTextInteractiveOnExpressiveHoverNegative = \"#ffffff\";\nexport const purpurColorTextInteractiveOnExpressiveActive = \"#29003e\";\nexport const purpurColorTextInteractiveOnExpressiveActiveNegative = \"#ffffff\";\nexport const purpurColorTextInteractiveOnDestructive = \"#ffffff\";\nexport const purpurColorTextInteractiveSelected = \"#d58df9\";\nexport const purpurColorTextStatusDiscount = \"#d58df9\";\nexport const purpurColorTextStatusErrorStrong = \"#ffafc9\";\nexport const purpurColorTextStatusErrorStrongNegative = \"#980233\";\nexport const purpurColorTextStatusErrorMedium = \"#fb4885\";\nexport const purpurColorTextStatusErrorMediumNegative = \"#e4175c\";\nexport const purpurColorTextStatusSuccessStrong = \"#79d9a7\";\nexport const purpurColorTextStatusSuccessStrongNegative = \"#02562b\";\nexport const purpurColorTextStatusSuccessMedium = \"#1fa15e\";\nexport const purpurColorTextStatusWarningStrong = \"#f9bb5b\";\nexport const purpurColorTextStatusWarningMedium = \"#f39200\";\nexport const purpurColorTextStatusWarningMediumNegative = \"#a86602\";\nexport const purpurColorTextStatusInfoStrong = \"#91cdf4\";\nexport const purpurColorTextStatusInfoMedium = \"#3694d3\";\nexport const purpurColorTextStatusNeutral = \"#ffffff\";\nexport const purpurColorTextStatusSpecial = \"#ffffff\";\nexport const purpurColorTextStatusAttention = \"#4e0174\";\nexport const purpurColorTextStatusBlackFriday = \"#202022\";\nexport const purpurColorTextToneOnTonePrimary = \"#29003e\";\nexport const purpurColorTextToneOnToneSecondary = \"#f4e0ff\";\nexport const purpurColorTextToneOnToneTertiary = \"#ffffff\";\nexport const purpurColorBackgroundPrimary = \"#121212\";\nexport const purpurColorBackgroundPrimaryNegative = \"#ffffff\";\nexport const purpurColorBackgroundSecondary = \"#202022\";\nexport const purpurColorBackgroundSecondaryNegative = \"#f5f5fa\";\nexport const purpurColorBackgroundOnImage = \"rgba(0, 0, 0, 0.71)\";\nexport const purpurColorBackgroundOnImageNegative = \"rgba(255, 255, 255, 0.84)\";\nexport const purpurColorBackgroundInteractiveAutoFill = \"#03385b\";\nexport const purpurColorBackgroundInteractivePrimary = \"#f4e0ff\";\nexport const purpurColorBackgroundInteractivePrimaryHover = \"#e4b6fb\";\nexport const purpurColorBackgroundInteractivePrimaryActive = \"#d58df9\";\nexport const purpurColorBackgroundInteractivePrimaryNegative = \"#4e0174\";\nexport const purpurColorBackgroundInteractivePrimaryHoverNegative = \"#6d02a3\";\nexport const purpurColorBackgroundInteractivePrimaryActiveNegative = \"#8c07d0\";\nexport const purpurColorBackgroundInteractiveExpressive = \"#990ae3\";\nexport const purpurColorBackgroundInteractiveExpressiveHover = \"#c461f7\";\nexport const purpurColorBackgroundInteractiveExpressiveActive = \"#d58df9\";\nexport const purpurColorBackgroundInteractiveExpressiveNegative = \"#990ae3\";\nexport const purpurColorBackgroundInteractiveExpressiveHoverNegative = \"#6d02a3\";\nexport const purpurColorBackgroundInteractiveExpressiveActiveNegative = \"#4e0174\";\nexport const purpurColorBackgroundInteractiveDisabled = \"rgba(255, 255, 255, 0.11)\";\nexport const purpurColorBackgroundInteractiveDisabledNegative = \"rgba(0, 0, 0, 0.1)\";\nexport const purpurColorBackgroundInteractiveTransparentHover = \"#4e0174\";\nexport const purpurColorBackgroundInteractiveTransparentHoverNegative = \"#e4b6fb\";\nexport const purpurColorBackgroundInteractiveTransparentActive = \"#6d02a3\";\nexport const purpurColorBackgroundInteractiveTransparentActiveNegative = \"#d58df9\";\nexport const purpurColorBackgroundInteractiveInactive = \"rgba(255, 255, 255, 0.16)\";\nexport const purpurColorBackgroundInteractiveInactiveNegative = \"rgba(0, 0, 0, 0.05)\";\nexport const purpurColorBackgroundInteractiveReadOnly = \"rgba(255, 255, 255, 0.07)\";\nexport const purpurColorBackgroundInteractiveReadOnlyNegative = \"rgba(0, 0, 0, 0.05)\";\nexport const purpurColorBackgroundInteractiveDestructive = \"#e4175c\";\nexport const purpurColorBackgroundInteractiveDestructiveHover = \"#c00543\";\nexport const purpurColorBackgroundInteractiveDestructiveActive = \"#980233\";\nexport const purpurColorBackgroundStatusInfoMedium = \"#03385b\";\nexport const purpurColorBackgroundStatusInfoStrong = \"#62b2e7\";\nexport const purpurColorBackgroundStatusSuccessMedium = \"#003e1e\";\nexport const purpurColorBackgroundStatusSuccessStrong = \"#3dbf7c\";\nexport const purpurColorBackgroundStatusSuccessStrongNegative = \"#1fa15e\";\nexport const purpurColorBackgroundStatusErrorMedium = \"#700025\";\nexport const purpurColorBackgroundStatusErrorStrong = \"#ff80ab\";\nexport const purpurColorBackgroundStatusErrorStrongNegative = \"#fb4885\";\nexport const purpurColorBackgroundStatusWarningMedium = \"#4c2f03\";\nexport const purpurColorBackgroundStatusWarningStrong = \"#f39200\";\nexport const purpurColorBackgroundStatusWarningStrongNegative = \"#f39200\";\nexport const purpurColorBackgroundStatusNeutral = \"#353537\";\nexport const purpurColorBackgroundStatusSpecial = \"#6d02a3\";\nexport const purpurColorBackgroundStatusAttention = \"#f4e0ff\";\nexport const purpurColorBackgroundStatusBlackFriday = \"#ffffff\";\nexport const purpurColorBackgroundToneOnTonePrimary = \"#f4e0ff\";\nexport const purpurColorBackgroundToneOnToneSecondary = \"#29003e\";\nexport const purpurColorBackgroundToneOnToneTertiary = \"#4f4741\";\nexport const purpurColorBackgroundToneOnToneQuaternary = \"#2d2824\";\nexport const purpurColorBorderMedium = \"rgba(255, 255, 255, 0.29)\";\nexport const purpurColorBorderMediumNegative = \"rgba(0, 0, 0, 0.33)\";\nexport const purpurColorBorderStrong = \"rgba(255, 255, 255, 0.46)\";\nexport const purpurColorBorderStrongNegative = \"rgba(0, 0, 0, 0.54)\";\nexport const purpurColorBorderWeak = \"rgba(255, 255, 255, 0.16)\";\nexport const purpurColorBorderWeakNegative = \"rgba(0, 0, 0, 0.16)\";\nexport const purpurColorBorderInteractiveFocus = \"#c461f7\";\nexport const purpurColorBorderInteractivePrimary = \"#e4b6fb\";\nexport const purpurColorBorderInteractivePrimaryNegative = \"#8c07d0\";\nexport const purpurColorBorderInteractivePrimaryHover = \"#f4e0ff\";\nexport const purpurColorBorderInteractivePrimaryActive = \"#faf0ff\";\nexport const purpurColorBorderInteractivePrimaryHoverNegative = \"#6d02a3\";\nexport const purpurColorBorderInteractivePrimaryActiveNegative = \"#4e0174\";\nexport const purpurColorBorderInteractiveExpressive = \"#990ae3\";\nexport const purpurColorBorderInteractiveSelected = \"#d58df9\";\nexport const purpurColorBorderInteractiveSubtle = \"rgba(255, 255, 255, 0.37)\";\nexport const purpurColorBorderInteractiveSubtleNegative = \"rgba(0, 0, 0, 0.44)\";\nexport const purpurColorBorderInteractiveSubtleHover = \"#e4b6fb\";\nexport const purpurColorBorderInteractiveSubtleHoverNegative = \"#6d02a3\";\nexport const purpurColorBorderStatusError = \"#fb4885\";\nexport const purpurColorBorderStatusErrorNegative = \"#e4175c\";\nexport const purpurColorBorderStatusWarning = \"#f39200\";\nexport const purpurColorBorderStatusInfo = \"#3694d3\";\nexport const purpurColorBorderStatusSuccess = \"#1fa15e\";\nexport const purpurColorBorderStatusSuccessNegative = \"#018842\";\nexport const purpurColorOverlayDefault = \"rgba(0, 0, 0, 0.33)\";\nexport const purpurColorGradientAiBottom = \"#62b2e7\";\nexport const purpurColorGradientAiBottomNegative = \"#3694d3\";\nexport const purpurColorGradientAiTop = \"#d58df9\";\nexport const purpurColorGradientAiTopNegative = \"#b12df4\";\n","import {\n purpurColorBackgroundInteractiveAutoFill,\n purpurColorBackgroundInteractiveDestructive,\n purpurColorBackgroundInteractiveDestructiveActive,\n purpurColorBackgroundInteractiveDestructiveHover,\n purpurColorBackgroundInteractiveDisabled,\n purpurColorBackgroundInteractiveDisabledNegative,\n purpurColorBackgroundInteractiveExpressive,\n purpurColorBackgroundInteractiveExpressiveActive,\n purpurColorBackgroundInteractiveExpressiveActiveNegative,\n purpurColorBackgroundInteractiveExpressiveHover,\n purpurColorBackgroundInteractiveExpressiveHoverNegative,\n purpurColorBackgroundInteractiveExpressiveNegative,\n purpurColorBackgroundInteractiveInactive,\n purpurColorBackgroundInteractiveInactiveNegative,\n purpurColorBackgroundInteractivePrimary,\n purpurColorBackgroundInteractivePrimaryActive,\n purpurColorBackgroundInteractivePrimaryActiveNegative,\n purpurColorBackgroundInteractivePrimaryHover,\n purpurColorBackgroundInteractivePrimaryHoverNegative,\n purpurColorBackgroundInteractivePrimaryNegative,\n purpurColorBackgroundInteractiveReadOnly,\n purpurColorBackgroundInteractiveReadOnlyNegative,\n purpurColorBackgroundInteractiveTransparentActive,\n purpurColorBackgroundInteractiveTransparentActiveNegative,\n purpurColorBackgroundInteractiveTransparentHover,\n purpurColorBackgroundInteractiveTransparentHoverNegative,\n purpurColorBackgroundOnImage,\n purpurColorBackgroundOnImageNegative,\n purpurColorBackgroundPrimary,\n purpurColorBackgroundPrimaryNegative,\n purpurColorBackgroundSecondary,\n purpurColorBackgroundSecondaryNegative,\n purpurColorBackgroundStatusAttention,\n purpurColorBackgroundStatusBlackFriday,\n purpurColorBackgroundStatusErrorMedium,\n purpurColorBackgroundStatusErrorStrong,\n purpurColorBackgroundStatusErrorStrongNegative,\n purpurColorBackgroundStatusInfoMedium,\n purpurColorBackgroundStatusInfoStrong,\n purpurColorBackgroundStatusNeutral,\n purpurColorBackgroundStatusSpecial,\n purpurColorBackgroundStatusSuccessMedium,\n purpurColorBackgroundStatusSuccessStrong,\n purpurColorBackgroundStatusSuccessStrongNegative,\n purpurColorBackgroundStatusWarningMedium,\n purpurColorBackgroundStatusWarningStrong,\n purpurColorBackgroundStatusWarningStrongNegative,\n purpurColorBackgroundToneOnTonePrimary,\n purpurColorBackgroundToneOnToneQuaternary,\n purpurColorBackgroundToneOnToneSecondary,\n purpurColorBackgroundToneOnToneTertiary,\n purpurColorBorderInteractiveExpressive,\n purpurColorBorderInteractiveFocus,\n purpurColorBorderInteractivePrimary,\n purpurColorBorderInteractivePrimaryActive,\n purpurColorBorderInteractivePrimaryActiveNegative,\n purpurColorBorderInteractivePrimaryHover,\n purpurColorBorderInteractivePrimaryHoverNegative,\n purpurColorBorderInteractivePrimaryNegative,\n purpurColorBorderInteractiveSelected,\n purpurColorBorderInteractiveSubtle,\n purpurColorBorderInteractiveSubtleHover,\n purpurColorBorderInteractiveSubtleHoverNegative,\n purpurColorBorderInteractiveSubtleNegative,\n purpurColorBorderMedium,\n purpurColorBorderMediumNegative,\n purpurColorBorderStatusError,\n purpurColorBorderStatusErrorNegative,\n purpurColorBorderStatusInfo,\n purpurColorBorderStatusSuccess,\n purpurColorBorderStatusSuccessNegative,\n purpurColorBorderStatusWarning,\n purpurColorBorderStrong,\n purpurColorBorderStrongNegative,\n purpurColorBorderWeak,\n purpurColorBorderWeakNegative,\n purpurColorBrandBeige,\n purpurColorBrandCorePurple,\n purpurColorBrandDeepBeige,\n purpurColorBrandDeepPurple,\n purpurColorBrandLightBeige,\n purpurColorBrandLightPurple,\n purpurColorBrandOffBlack,\n purpurColorBrandWhite,\n purpurColorTextDefault,\n purpurColorTextDefaultNegative,\n purpurColorTextInteractiveOnDestructive,\n purpurColorTextInteractiveOnExpressive,\n purpurColorTextInteractiveOnExpressiveActive,\n purpurColorTextInteractiveOnExpressiveActiveNegative,\n purpurColorTextInteractiveOnExpressiveHover,\n purpurColorTextInteractiveOnExpressiveHoverNegative,\n purpurColorTextInteractiveOnExpressiveNegative,\n purpurColorTextInteractiveOnPrimary,\n purpurColorTextInteractiveOnPrimaryNegative,\n purpurColorTextInteractivePrimary,\n purpurColorTextInteractivePrimaryActive,\n purpurColorTextInteractivePrimaryActiveNegative,\n purpurColorTextInteractivePrimaryHover,\n purpurColorTextInteractivePrimaryHoverNegative,\n purpurColorTextInteractivePrimaryNegative,\n purpurColorTextInteractiveSelected,\n purpurColorTextMedium,\n purpurColorTextMediumNegative,\n purpurColorTextStatusAttention,\n purpurColorTextStatusBlackFriday,\n purpurColorTextStatusDiscount,\n purpurColorTextStatusErrorMedium,\n purpurColorTextStatusErrorMediumNegative,\n purpurColorTextStatusErrorStrong,\n purpurColorTextStatusErrorStrongNegative,\n purpurColorTextStatusInfoMedium,\n purpurColorTextStatusInfoStrong,\n purpurColorTextStatusNeutral,\n purpurColorTextStatusSpecial,\n purpurColorTextStatusSuccessMedium,\n purpurColorTextStatusSuccessStrong,\n purpurColorTextStatusSuccessStrongNegative,\n purpurColorTextStatusWarningMedium,\n purpurColorTextStatusWarningMediumNegative,\n purpurColorTextStatusWarningStrong,\n purpurColorTextToneOnTonePrimary,\n purpurColorTextToneOnToneSecondary,\n purpurColorTextToneOnToneTertiary,\n purpurColorTextWeak,\n purpurColorTextWeakNegative,\n} from \"@purpur/tokens/dark\";\n\nimport type { ThemeProps } from \"./theme-props\";\n\nexport const dark = {\n colorBrandDeepPurple: purpurColorBrandDeepPurple,\n colorBrandCorePurple: purpurColorBrandCorePurple,\n colorBrandLightPurple: purpurColorBrandLightPurple,\n colorBrandDeepBeige: purpurColorBrandDeepBeige,\n colorBrandBeige: purpurColorBrandBeige,\n colorBrandLightBeige: purpurColorBrandLightBeige,\n colorBrandOffBlack: purpurColorBrandOffBlack,\n colorBrandWhite: purpurColorBrandWhite,\n\n colorTextDefault: purpurColorTextDefault,\n colorTextMedium: purpurColorTextMedium,\n colorTextWeak: purpurColorTextWeak,\n colorTextDefaultNegative: purpurColorTextDefaultNegative,\n colorTextMediumNegative: purpurColorTextMediumNegative,\n colorTextWeakNegative: purpurColorTextWeakNegative,\n\n colorTextInteractivePrimary: purpurColorTextInteractivePrimary,\n colorTextInteractivePrimaryHover: purpurColorTextInteractivePrimaryHover,\n colorTextInteractivePrimaryActive: purpurColorTextInteractivePrimaryActive,\n colorTextInteractiveOnPrimary: purpurColorTextInteractiveOnPrimary,\n colorTextInteractiveOnExpressive: purpurColorTextInteractiveOnExpressive,\n colorTextInteractiveOnExpressiveHover: purpurColorTextInteractiveOnExpressiveHover,\n colorTextInteractiveOnExpressiveActive: purpurColorTextInteractiveOnExpressiveActive,\n colorTextInteractiveOnDestructive: purpurColorTextInteractiveOnDestructive,\n colorTextInteractiveSelected: purpurColorTextInteractiveSelected,\n colorTextInteractivePrimaryNegative: purpurColorTextInteractivePrimaryNegative,\n colorTextInteractivePrimaryHoverNegative: purpurColorTextInteractivePrimaryHoverNegative,\n colorTextInteractivePrimaryActiveNegative: purpurColorTextInteractivePrimaryActiveNegative,\n colorTextInteractiveOnPrimaryNegative: purpurColorTextInteractiveOnPrimaryNegative,\n colorTextInteractiveOnExpressiveNegative: purpurColorTextInteractiveOnExpressiveNegative,\n colorTextInteractiveOnExpressiveHoverNegative:\n purpurColorTextInteractiveOnExpressiveHoverNegative,\n colorTextInteractiveOnExpressiveActiveNegative:\n purpurColorTextInteractiveOnExpressiveActiveNegative,\n\n colorTextStatusInfoMedium: purpurColorTextStatusInfoMedium,\n colorTextStatusInfoStrong: purpurColorTextStatusInfoStrong,\n colorTextStatusSuccessMedium: purpurColorTextStatusSuccessMedium,\n colorTextStatusSuccessStrong: purpurColorTextStatusSuccessStrong,\n colorTextStatusWarningMedium: purpurColorTextStatusWarningMedium,\n colorTextStatusWarningStrong: purpurColorTextStatusWarningStrong,\n colorTextStatusErrorMedium: purpurColorTextStatusErrorMedium,\n colorTextStatusErrorStrong: purpurColorTextStatusErrorStrong,\n colorTextStatusNeutral: purpurColorTextStatusNeutral,\n colorTextStatusSpecial: purpurColorTextStatusSpecial,\n colorTextStatusAttention: purpurColorTextStatusAttention,\n colorTextStatusDiscount: purpurColorTextStatusDiscount,\n colorTextStatusBlackFriday: purpurColorTextStatusBlackFriday,\n colorTextStatusSuccessStrongNegative: purpurColorTextStatusSuccessStrongNegative,\n colorTextStatusErrorMediumNegative: purpurColorTextStatusErrorMediumNegative,\n colorTextStatusErrorStrongNegative: purpurColorTextStatusErrorStrongNegative,\n colorTextStatusWarningMediumNegative: purpurColorTextStatusWarningMediumNegative,\n\n colorTextToneOnTonePrimary: purpurColorTextToneOnTonePrimary,\n colorTextToneOnToneSecondary: purpurColorTextToneOnToneSecondary,\n colorTextToneOnToneTertiary: purpurColorTextToneOnToneTertiary,\n\n colorBackgroundPrimary: purpurColorBackgroundPrimary,\n colorBackgroundSecondary: purpurColorBackgroundSecondary,\n colorBackgroundOnImage: purpurColorBackgroundOnImage,\n colorBackgroundPrimaryNegative: purpurColorBackgroundPrimaryNegative,\n colorBackgroundSecondaryNegative: purpurColorBackgroundSecondaryNegative,\n colorBackgroundOnImageNegative: purpurColorBackgroundOnImageNegative,\n\n colorBackgroundInteractivePrimary: purpurColorBackgroundInteractivePrimary,\n colorBackgroundInteractivePrimaryHover: purpurColorBackgroundInteractivePrimaryHover,\n colorBackgroundInteractivePrimaryActive: purpurColorBackgroundInteractivePrimaryActive,\n colorBackgroundInteractiveExpressive: purpurColorBackgroundInteractiveExpressive,\n colorBackgroundInteractiveExpressiveHover: purpurColorBackgroundInteractiveExpressiveHover,\n colorBackgroundInteractiveExpressiveActive: purpurColorBackgroundInteractiveExpressiveActive,\n colorBackgroundInteractiveTransparentHover: purpurColorBackgroundInteractiveTransparentHover,\n colorBackgroundInteractiveTransparentActive: purpurColorBackgroundInteractiveTransparentActive,\n colorBackgroundInteractiveDisabled: purpurColorBackgroundInteractiveDisabled,\n colorBackgroundInteractiveReadOnly: purpurColorBackgroundInteractiveReadOnly,\n colorBackgroundInteractiveInactive: purpurColorBackgroundInteractiveInactive,\n colorBackgroundInteractiveDestructive: purpurColorBackgroundInteractiveDestructive,\n colorBackgroundInteractiveDestructiveHover: purpurColorBackgroundInteractiveDestructiveHover,\n colorBackgroundInteractiveDestructiveActive: purpurColorBackgroundInteractiveDestructiveActive,\n colorBackgroundInteractiveAutoFill: purpurColorBackgroundInteractiveAutoFill,\n colorBackgroundInteractivePrimaryNegative: purpurColorBackgroundInteractivePrimaryNegative,\n colorBackgroundInteractivePrimaryHoverNegative:\n purpurColorBackgroundInteractivePrimaryHoverNegative,\n colorBackgroundInteractivePrimaryActiveNegative:\n purpurColorBackgroundInteractivePrimaryActiveNegative,\n colorBackgroundInteractiveExpressiveNegative: purpurColorBackgroundInteractiveExpressiveNegative,\n colorBackgroundInteractiveExpressiveHoverNegative:\n purpurColorBackgroundInteractiveExpressiveHoverNegative,\n colorBackgroundInteractiveExpressiveActiveNegative:\n purpurColorBackgroundInteractiveExpressiveActiveNegative,\n colorBackgroundInteractiveTransparentHoverNegative:\n purpurColorBackgroundInteractiveTransparentHoverNegative,\n colorBackgroundInteractiveTransparentActiveNegative:\n purpurColorBackgroundInteractiveTransparentActiveNegative,\n colorBackgroundInteractiveDisabledNegative: purpurColorBackgroundInteractiveDisabledNegative,\n colorBackgroundInteractiveInactiveNegative: purpurColorBackgroundInteractiveInactiveNegative,\n colorBackgroundInteractiveReadOnlyNegative: purpurColorBackgroundInteractiveReadOnlyNegative,\n\n colorBackgroundStatusInfoMedium: purpurColorBackgroundStatusInfoMedium,\n colorBackgroundStatusInfoStrong: purpurColorBackgroundStatusInfoStrong,\n colorBackgroundStatusSuccessMedium: purpurColorBackgroundStatusSuccessMedium,\n colorBackgroundStatusSuccessStrong: purpurColorBackgroundStatusSuccessStrong,\n colorBackgroundStatusWarningMedium: purpurColorBackgroundStatusWarningMedium,\n colorBackgroundStatusWarningStrong: purpurColorBackgroundStatusWarningStrong,\n colorBackgroundStatusErrorMedium: purpurColorBackgroundStatusErrorMedium,\n colorBackgroundStatusErrorStrong: purpurColorBackgroundStatusErrorStrong,\n colorBackgroundStatusNeutral: purpurColorBackgroundStatusNeutral,\n colorBackgroundStatusSpecial: purpurColorBackgroundStatusSpecial,\n colorBackgroundStatusAttention: purpurColorBackgroundStatusAttention,\n colorBackgroundStatusBlackFriday: purpurColorBackgroundStatusBlackFriday,\n colorBackgroundStatusSuccessStrongNegative: purpurColorBackgroundStatusSuccessStrongNegative,\n colorBackgroundStatusWarningStrongNegative: purpurColorBackgroundStatusWarningStrongNegative,\n colorBackgroundStatusErrorStrongNegative: purpurColorBackgroundStatusErrorStrongNegative,\n\n colorBackgroundToneOnTonePrimary: purpurColorBackgroundToneOnTonePrimary,\n colorBackgroundToneOnToneSecondary: purpurColorBackgroundToneOnToneSecondary,\n colorBackgroundToneOnToneTertiary: purpurColorBackgroundToneOnToneTertiary,\n colorBackgroundToneOnToneQuaternary: purpurColorBackgroundToneOnToneQuaternary,\n\n colorBorderWeak: purpurColorBorderWeak,\n colorBorderMedium: purpurColorBorderMedium,\n colorBorderStrong: purpurColorBorderStrong,\n colorBorderWeakNegative: purpurColorBorderWeakNegative,\n colorBorderMediumNegative: purpurColorBorderMediumNegative,\n colorBorderStrongNegative: purpurColorBorderStrongNegative,\n\n colorBorderInteractivePrimary: purpurColorBorderInteractivePrimary,\n colorBorderInteractivePrimaryHover: purpurColorBorderInteractivePrimaryHover,\n colorBorderInteractivePrimaryActive: purpurColorBorderInteractivePrimaryActive,\n colorBorderInteractiveFocus: purpurColorBorderInteractiveFocus,\n colorBorderInteractiveExpressive: purpurColorBorderInteractiveExpressive,\n colorBorderInteractiveSubtle: purpurColorBorderInteractiveSubtle,\n colorBorderInteractiveSubtleHover: purpurColorBorderInteractiveSubtleHover,\n colorBorderInteractiveSelected: purpurColorBorderInteractiveSelected,\n colorBorderInteractivePrimaryNegative: purpurColorBorderInteractivePrimaryNegative,\n colorBorderInteractivePrimaryHoverNegative: purpurColorBorderInteractivePrimaryHoverNegative,\n colorBorderInteractivePrimaryActiveNegative: purpurColorBorderInteractivePrimaryActiveNegative,\n colorBorderInteractiveSubtleNegative: purpurColorBorderInteractiveSubtleNegative,\n colorBorderInteractiveSubtleHoverNegative: purpurColorBorderInteractiveSubtleHoverNegative,\n\n colorBorderStatusError: purpurColorBorderStatusError,\n colorBorderStatusWarning: purpurColorBorderStatusWarning,\n colorBorderStatusInfo: purpurColorBorderStatusInfo,\n colorBorderStatusSuccess: purpurColorBorderStatusSuccess,\n colorBorderStatusErrorNegative: purpurColorBorderStatusErrorNegative,\n colorBorderStatusSuccessNegative: purpurColorBorderStatusSuccessNegative,\n} satisfies ThemeProps;\n","import {\n purpurColorBackgroundInteractiveAutoFill,\n purpurColorBackgroundInteractiveDestructive,\n purpurColorBackgroundInteractiveDestructiveActive,\n purpurColorBackgroundInteractiveDestructiveHover,\n purpurColorBackgroundInteractiveDisabled,\n purpurColorBackgroundInteractiveDisabledNegative,\n purpurColorBackgroundInteractiveExpressive,\n purpurColorBackgroundInteractiveExpressiveActive,\n purpurColorBackgroundInteractiveExpressiveActiveNegative,\n purpurColorBackgroundInteractiveExpressiveHover,\n purpurColorBackgroundInteractiveExpressiveHoverNegative,\n purpurColorBackgroundInteractiveExpressiveNegative,\n purpurColorBackgroundInteractiveInactive,\n purpurColorBackgroundInteractiveInactiveNegative,\n purpurColorBackgroundInteractivePrimary,\n purpurColorBackgroundInteractivePrimaryActive,\n purpurColorBackgroundInteractivePrimaryActiveNegative,\n purpurColorBackgroundInteractivePrimaryHover,\n purpurColorBackgroundInteractivePrimaryHoverNegative,\n purpurColorBackgroundInteractivePrimaryNegative,\n purpurColorBackgroundInteractiveReadOnly,\n purpurColorBackgroundInteractiveReadOnlyNegative,\n purpurColorBackgroundInteractiveTransparentActive,\n purpurColorBackgroundInteractiveTransparentActiveNegative,\n purpurColorBackgroundInteractiveTransparentHover,\n purpurColorBackgroundInteractiveTransparentHoverNegative,\n purpurColorBackgroundOnImage,\n purpurColorBackgroundOnImageNegative,\n purpurColorBackgroundPrimary,\n purpurColorBackgroundPrimaryNegative,\n purpurColorBackgroundSecondary,\n purpurColorBackgroundSecondaryNegative,\n purpurColorBackgroundStatusAttention,\n purpurColorBackgroundStatusBlackFriday,\n purpurColorBackgroundStatusErrorMedium,\n purpurColorBackgroundStatusErrorStrong,\n purpurColorBackgroundStatusErrorStrongNegative,\n purpurColorBackgroundStatusInfoMedium,\n purpurColorBackgroundStatusInfoStrong,\n purpurColorBackgroundStatusNeutral,\n purpurColorBackgroundStatusSpecial,\n purpurColorBackgroundStatusSuccessMedium,\n purpurColorBackgroundStatusSuccessStrong,\n purpurColorBackgroundStatusSuccessStrongNegative,\n purpurColorBackgroundStatusWarningMedium,\n purpurColorBackgroundStatusWarningStrong,\n purpurColorBackgroundStatusWarningStrongNegative,\n purpurColorBackgroundToneOnTonePrimary,\n purpurColorBackgroundToneOnToneQuaternary,\n purpurColorBackgroundToneOnToneSecondary,\n purpurColorBackgroundToneOnToneTertiary,\n purpurColorBorderInteractiveExpressive,\n purpurColorBorderInteractiveFocus,\n purpurColorBorderInteractivePrimary,\n purpurColorBorderInteractivePrimaryActive,\n purpurColorBorderInteractivePrimaryActiveNegative,\n purpurColorBorderInteractivePrimaryHover,\n purpurColorBorderInteractivePrimaryHoverNegative,\n purpurColorBorderInteractivePrimaryNegative,\n purpurColorBorderInteractiveSelected,\n purpurColorBorderInteractiveSubtle,\n purpurColorBorderInteractiveSubtleHover,\n purpurColorBorderInteractiveSubtleHoverNegative,\n purpurColorBorderInteractiveSubtleNegative,\n purpurColorBorderMedium,\n purpurColorBorderMediumNegative,\n purpurColorBorderStatusError,\n purpurColorBorderStatusErrorNegative,\n purpurColorBorderStatusInfo,\n purpurColorBorderStatusSuccess,\n purpurColorBorderStatusSuccessNegative,\n purpurColorBorderStatusWarning,\n purpurColorBorderStrong,\n purpurColorBorderStrongNegative,\n purpurColorBorderWeak,\n purpurColorBorderWeakNegative,\n purpurColorBrandBeige,\n purpurColorBrandCorePurple,\n purpurColorBrandDeepBeige,\n purpurColorBrandDeepPurple,\n purpurColorBrandLightBeige,\n purpurColorBrandLightPurple,\n purpurColorBrandOffBlack,\n purpurColorBrandWhite,\n purpurColorTextDefault,\n purpurColorTextDefaultNegative,\n purpurColorTextInteractiveOnDestructive,\n purpurColorTextInteractiveOnExpressive,\n purpurColorTextInteractiveOnExpressiveActive,\n purpurColorTextInteractiveOnExpressiveActiveNegative,\n purpurColorTextInteractiveOnExpressiveHover,\n purpurColorTextInteractiveOnExpressiveHoverNegative,\n purpurColorTextInteractiveOnExpressiveNegative,\n purpurColorTextInteractiveOnPrimary,\n purpurColorTextInteractiveOnPrimaryNegative,\n purpurColorTextInteractivePrimary,\n purpurColorTextInteractivePrimaryActive,\n purpurColorTextInteractivePrimaryActiveNegative,\n purpurColorTextInteractivePrimaryHover,\n purpurColorTextInteractivePrimaryHoverNegative,\n purpurColorTextInteractivePrimaryNegative,\n purpurColorTextInteractiveSelected,\n purpurColorTextMedium,\n purpurColorTextMediumNegative,\n purpurColorTextStatusAttention,\n purpurColorTextStatusBlackFriday,\n purpurColorTextStatusDiscount,\n purpurColorTextStatusErrorMedium,\n purpurColorTextStatusErrorMediumNegative,\n purpurColorTextStatusErrorStrong,\n purpurColorTextStatusErrorStrongNegative,\n purpurColorTextStatusInfoMedium,\n purpurColorTextStatusInfoStrong,\n purpurColorTextStatusNeutral,\n purpurColorTextStatusSpecial,\n purpurColorTextStatusSuccessMedium,\n purpurColorTextStatusSuccessStrong,\n purpurColorTextStatusSuccessStrongNegative,\n purpurColorTextStatusWarningMedium,\n purpurColorTextStatusWarningMediumNegative,\n purpurColorTextStatusWarningStrong,\n purpurColorTextToneOnTonePrimary,\n purpurColorTextToneOnToneSecondary,\n purpurColorTextToneOnToneTertiary,\n purpurColorTextWeak,\n purpurColorTextWeakNegative,\n} from \"@purpur/tokens\";\n\nimport type { ThemeProps } from \"./theme-props\";\n\nexport const light = {\n colorBrandDeepPurple: purpurColorBrandDeepPurple,\n colorBrandCorePurple: purpurColorBrandCorePurple,\n colorBrandLightPurple: purpurColorBrandLightPurple,\n colorBrandDeepBeige: purpurColorBrandDeepBeige,\n colorBrandBeige: purpurColorBrandBeige,\n colorBrandLightBeige: purpurColorBrandLightBeige,\n colorBrandOffBlack: purpurColorBrandOffBlack,\n colorBrandWhite: purpurColorBrandWhite,\n\n colorTextDefault: purpurColorTextDefault,\n colorTextMedium: purpurColorTextMedium,\n colorTextWeak: purpurColorTextWeak,\n colorTextDefaultNegative: purpurColorTextDefaultNegative,\n colorTextMediumNegative: purpurColorTextMediumNegative,\n colorTextWeakNegative: purpurColorTextWeakNegative,\n\n colorTextInteractivePrimary: purpurColorTextInteractivePrimary,\n colorTextInteractivePrimaryHover: purpurColorTextInteractivePrimaryHover,\n colorTextInteractivePrimaryActive: purpurColorTextInteractivePrimaryActive,\n colorTextInteractiveOnPrimary: purpurColorTextInteractiveOnPrimary,\n colorTextInteractiveOnExpressive: purpurColorTextInteractiveOnExpressive,\n colorTextInteractiveOnExpressiveHover: purpurColorTextInteractiveOnExpressiveHover,\n colorTextInteractiveOnExpressiveActive: purpurColorTextInteractiveOnExpressiveActive,\n colorTextInteractiveOnDestructive: purpurColorTextInteractiveOnDestructive,\n colorTextInteractiveSelected: purpurColorTextInteractiveSelected,\n colorTextInteractivePrimaryNegative: purpurColorTextInteractivePrimaryNegative,\n colorTextInteractivePrimaryHoverNegative: purpurColorTextInteractivePrimaryHoverNegative,\n colorTextInteractivePrimaryActiveNegative: purpurColorTextInteractivePrimaryActiveNegative,\n colorTextInteractiveOnPrimaryNegative: purpurColorTextInteractiveOnPrimaryNegative,\n colorTextInteractiveOnExpressiveNegative: purpurColorTextInteractiveOnExpressiveNegative,\n colorTextInteractiveOnExpressiveHoverNegative:\n purpurColorTextInteractiveOnExpressiveHoverNegative,\n colorTextInteractiveOnExpressiveActiveNegative:\n purpurColorTextInteractiveOnExpressiveActiveNegative,\n\n colorTextStatusInfoMedium: purpurColorTextStatusInfoMedium,\n colorTextStatusInfoStrong: purpurColorTextStatusInfoStrong,\n colorTextStatusSuccessMedium: purpurColorTextStatusSuccessMedium,\n colorTextStatusSuccessStrong: purpurColorTextStatusSuccessStrong,\n colorTextStatusWarningMedium: purpurColorTextStatusWarningMedium,\n colorTextStatusWarningStrong: purpurColorTextStatusWarningStrong,\n colorTextStatusErrorMedium: purpurColorTextStatusErrorMedium,\n colorTextStatusErrorStrong: purpurColorTextStatusErrorStrong,\n colorTextStatusNeutral: purpurColorTextStatusNeutral,\n colorTextStatusSpecial: purpurColorTextStatusSpecial,\n colorTextStatusAttention: purpurColorTextStatusAttention,\n colorTextStatusDiscount: purpurColorTextStatusDiscount,\n colorTextStatusBlackFriday: purpurColorTextStatusBlackFriday,\n colorTextStatusSuccessStrongNegative: purpurColorTextStatusSuccessStrongNegative,\n colorTextStatusErrorMediumNegative: purpurColorTextStatusErrorMediumNegative,\n colorTextStatusErrorStrongNegative: purpurColorTextStatusErrorStrongNegative,\n colorTextStatusWarningMediumNegative: purpurColorTextStatusWarningMediumNegative,\n\n colorTextToneOnTonePrimary: purpurColorTextToneOnTonePrimary,\n colorTextToneOnToneSecondary: purpurColorTextToneOnToneSecondary,\n colorTextToneOnToneTertiary: purpurColorTextToneOnToneTertiary,\n\n colorBackgroundPrimary: purpurColorBackgroundPrimary,\n colorBackgroundSecondary: purpurColorBackgroundSecondary,\n colorBackgroundOnImage: purpurColorBackgroundOnImage,\n colorBackgroundPrimaryNegative: purpurColorBackgroundPrimaryNegative,\n colorBackgroundSecondaryNegative: purpurColorBackgroundSecondaryNegative,\n colorBackgroundOnImageNegative: purpurColorBackgroundOnImageNegative,\n\n colorBackgroundInteractivePrimary: purpurColorBackgroundInteractivePrimary,\n colorBackgroundInteractivePrimaryHover: purpurColorBackgroundInteractivePrimaryHover,\n colorBackgroundInteractivePrimaryActive: purpurColorBackgroundInteractivePrimaryActive,\n colorBackgroundInteractiveExpressive: purpurColorBackgroundInteractiveExpressive,\n colorBackgroundInteractiveExpressiveHover: purpurColorBackgroundInteractiveExpressiveHover,\n colorBackgroundInteractiveExpressiveActive: purpurColorBackgroundInteractiveExpressiveActive,\n colorBackgroundInteractiveTransparentHover: purpurColorBackgroundInteractiveTransparentHover,\n colorBackgroundInteractiveTransparentActive: purpurColorBackgroundInteractiveTransparentActive,\n colorBackgroundInteractiveDisabled: purpurColorBackgroundInteractiveDisabled,\n colorBackgroundInteractiveReadOnly: purpurColorBackgroundInteractiveReadOnly,\n colorBackgroundInteractiveInactive: purpurColorBackgroundInteractiveInactive,\n colorBackgroundInteractiveDestructive: purpurColorBackgroundInteractiveDestructive,\n colorBackgroundInteractiveDestructiveHover: purpurColorBackgroundInteractiveDestructiveHover,\n colorBackgroundInteractiveDestructiveActive: purpurColorBackgroundInteractiveDestructiveActive,\n colorBackgroundInteractiveAutoFill: purpurColorBackgroundInteractiveAutoFill,\n colorBackgroundInteractivePrimaryNegative: purpurColorBackgroundInteractivePrimaryNegative,\n colorBackgroundInteractivePrimaryHoverNegative:\n purpurColorBackgroundInteractivePrimaryHoverNegative,\n colorBackgroundInteractivePrimaryActiveNegative:\n purpurColorBackgroundInteractivePrimaryActiveNegative,\n colorBackgroundInteractiveExpressiveNegative: purpurColorBackgroundInteractiveExpressiveNegative,\n colorBackgroundInteractiveExpressiveHoverNegative:\n purpurColorBackgroundInteractiveExpressiveHoverNegative,\n colorBackgroundInteractiveExpressiveActiveNegative:\n purpurColorBackgroundInteractiveExpressiveActiveNegative,\n colorBackgroundInteractiveTransparentHoverNegative:\n purpurColorBackgroundInteractiveTransparentHoverNegative,\n colorBackgroundInteractiveTransparentActiveNegative:\n purpurColorBackgroundInteractiveTransparentActiveNegative,\n colorBackgroundInteractiveDisabledNegative: purpurColorBackgroundInteractiveDisabledNegative,\n colorBackgroundInteractiveInactiveNegative: purpurColorBackgroundInteractiveInactiveNegative,\n colorBackgroundInteractiveReadOnlyNegative: purpurColorBackgroundInteractiveReadOnlyNegative,\n\n colorBackgroundStatusInfoMedium: purpurColorBackgroundStatusInfoMedium,\n colorBackgroundStatusInfoStrong: purpurColorBackgroundStatusInfoStrong,\n colorBackgroundStatusSuccessMedium: purpurColorBackgroundStatusSuccessMedium,\n colorBackgroundStatusSuccessStrong: purpurColorBackgroundStatusSuccessStrong,\n colorBackgroundStatusWarningMedium: purpurColorBackgroundStatusWarningMedium,\n colorBackgroundStatusWarningStrong: purpurColorBackgroundStatusWarningStrong,\n colorBackgroundStatusErrorMedium: purpurColorBackgroundStatusErrorMedium,\n colorBackgroundStatusErrorStrong: purpurColorBackgroundStatusErrorStrong,\n colorBackgroundStatusNeutral: purpurColorBackgroundStatusNeutral,\n colorBackgroundStatusSpecial: purpurColorBackgroundStatusSpecial,\n colorBackgroundStatusAttention: purpurColorBackgroundStatusAttention,\n colorBackgroundStatusBlackFriday: purpurColorBackgroundStatusBlackFriday,\n colorBackgroundStatusSuccessStrongNegative: purpurColorBackgroundStatusSuccessStrongNegative,\n colorBackgroundStatusWarningStrongNegative: purpurColorBackgroundStatusWarningStrongNegative,\n colorBackgroundStatusErrorStrongNegative: purpurColorBackgroundStatusErrorStrongNegative,\n\n colorBackgroundToneOnTonePrimary: purpurColorBackgroundToneOnTonePrimary,\n colorBackgroundToneOnToneSecondary: purpurColorBackgroundToneOnToneSecondary,\n colorBackgroundToneOnToneTertiary: purpurColorBackgroundToneOnToneTertiary,\n colorBackgroundToneOnToneQuaternary: purpurColorBackgroundToneOnToneQuaternary,\n\n colorBorderWeak: purpurColorBorderWeak,\n colorBorderMedium: purpurColorBorderMedium,\n colorBorderStrong: purpurColorBorderStrong,\n colorBorderWeakNegative: purpurColorBorderWeakNegative,\n colorBorderMediumNegative: purpurColorBorderMediumNegative,\n colorBorderStrongNegative: purpurColorBorderStrongNegative,\n\n colorBorderInteractivePrimary: purpurColorBorderInteractivePrimary,\n colorBorderInteractivePrimaryHover: purpurColorBorderInteractivePrimaryHover,\n colorBorderInteractivePrimaryActive: purpurColorBorderInteractivePrimaryActive,\n colorBorderInteractiveFocus: purpurColorBorderInteractiveFocus,\n colorBorderInteractiveExpressive: purpurColorBorderInteractiveExpressive,\n colorBorderInteractiveSubtle: purpurColorBorderInteractiveSubtle,\n colorBorderInteractiveSubtleHover: purpurColorBorderInteractiveSubtleHover,\n colorBorderInteractiveSelected: purpurColorBorderInteractiveSelected,\n colorBorderInteractivePrimaryNegative: purpurColorBorderInteractivePrimaryNegative,\n colorBorderInteractivePrimaryHoverNegative: purpurColorBorderInteractivePrimaryHoverNegative,\n colorBorderInteractivePrimaryActiveNegative: purpurColorBorderInteractivePrimaryActiveNegative,\n colorBorderInteractiveSubtleNegative: purpurColorBorderInteractiveSubtleNegative,\n colorBorderInteractiveSubtleHoverNegative: purpurColorBorderInteractiveSubtleHoverNegative,\n\n colorBorderStatusError: purpurColorBorderStatusError,\n colorBorderStatusWarning: purpurColorBorderStatusWarning,\n colorBorderStatusInfo: purpurColorBorderStatusInfo,\n colorBorderStatusSuccess: purpurColorBorderStatusSuccess,\n colorBorderStatusErrorNegative: purpurColorBorderStatusErrorNegative,\n colorBorderStatusSuccessNegative: purpurColorBorderStatusSuccessNegative,\n} satisfies ThemeProps;\n","import { dark } from \"./telia-dark\";\nimport { light } from \"./telia-light\";\nimport type { ThemeProps } from \"./theme-props\";\n\nexport const teliaTheme = {\n light,\n dark,\n} satisfies { light: ThemeProps; dark: ThemeProps };\n","import { useEffect } from \"react\";\n\nimport { teliaTheme } from \"./telia-theme\";\nimport type { ColorScheme, Theme } from \"./types\";\n\nconst toKebabCase = (str: string) => str.replace(/([a-z0-9])([A-Z])/g, \"$1-$2\").toLowerCase();\n\ntype Props = {\n theme?: Theme;\n cssVariablesSelector?: string;\n currentColorScheme?: ColorScheme;\n};\n\nexport const useApplyTheme = ({\n theme = teliaTheme,\n cssVariablesSelector,\n currentColorScheme,\n}: Props) => {\n useEffect(() => {\n if (currentColorScheme) {\n Object.entries(theme?.[currentColorScheme] ?? teliaTheme[currentColorScheme]).forEach(\n ([key, value]) => {\n const element = cssVariablesSelector\n ? (document.querySelector(cssVariablesSelector) as HTMLElement)\n : null;\n\n (element ?? document.documentElement).style.setProperty(\n `--purpur-${toKebabCase(key)}`,\n value\n );\n }\n );\n }\n }, [theme, cssVariablesSelector, currentColorScheme]);\n};\n","import React, {\n createContext,\n type ReactNode,\n useContext,\n useEffect,\n useMemo,\n useState,\n} from \"react\";\nimport type { BaseProps } from \"@purpur/common-types\";\n\nimport type { ThemeProps } from \"./theme-props\";\nimport type { ColorOptions, ColorScheme, ThemeContextType } from \"./types\";\nimport { useApplyTheme } from \"./useApplyTheme\";\n\nconst ThemeContext = createContext<ThemeContextType>({\n colorScheme: \"light\",\n currentColorScheme: \"light\",\n setColorScheme: () => {},\n options: {},\n});\n\ntype PropsBase = Omit<BaseProps, \"children\"> & {\n children: ReactNode;\n cssVariablesSelector?: string;\n options?: ThemeContextType[\"options\"];\n};\n\nexport type Props =\n | PropsBase &\n (\n | {\n theme: { light: ThemeProps; dark?: never };\n forceColorScheme: \"light\";\n }\n | {\n theme?: { light: ThemeProps; dark: ThemeProps };\n forceColorScheme?: ColorScheme;\n }\n );\n\nexport const ThemeProvider = ({\n cssVariablesSelector,\n forceColorScheme,\n theme,\n children,\n options = {},\n ...props\n}: Props) => {\n const [colorScheme, setColorScheme] = useState<ColorOptions>(forceColorScheme ?? \"auto\");\n const [currentColorScheme, setCurrentColorScheme] = useState<ColorScheme>(\n forceColorScheme ?? \"light\"\n );\n\n useEffect(() => {\n if (!forceColorScheme) {\n const savedColorScheme = localStorage.getItem(\"colorScheme\") as ColorOptions | null;\n if (savedColorScheme) {\n setColorScheme(savedColorScheme);\n }\n } else {\n setColorScheme(forceColorScheme);\n }\n }, [forceColorScheme]);\n\n useEffect(() => {\n const mediaQuery = window.matchMedia(\"(prefers-color-scheme: dark)\");\n\n if (colorScheme === \"auto\") {\n setCurrentColorScheme(mediaQuery.matches ? \"dark\" : \"light\");\n } else {\n setCurrentColorScheme(colorScheme);\n }\n\n const handleChange = (e: MediaQueryListEvent) => {\n if (!forceColorScheme && colorScheme === \"auto\") {\n setCurrentColorScheme(e.matches ? \"dark\" : \"light\");\n }\n };\n\n mediaQuery.addEventListener(\"change\", handleChange);\n\n return () => {\n mediaQuery.removeEventListener(\"change\", handleChange);\n };\n }, [colorScheme, forceColorScheme]);\n\n const isCustomTheme = theme !== undefined;\n\n useApplyTheme({\n theme,\n cssVariablesSelector,\n currentColorScheme: isCustomTheme ? currentColorScheme : undefined,\n });\n\n const contextValue = useMemo(\n () => ({\n colorScheme,\n currentColorScheme,\n setColorScheme: (scheme: ColorOptions) => {\n if (!forceColorScheme) {\n setColorScheme(scheme);\n localStorage.setItem(\"colorScheme\", scheme);\n }\n },\n }),\n [colorScheme, currentColorScheme, forceColorScheme]\n );\n\n return (\n <ThemeContext.Provider value={{ ...contextValue, options }}>\n <div data-color-scheme={currentColorScheme} className={currentColorScheme} {...props}>\n {children}\n </div>\n </ThemeContext.Provider>\n );\n};\n\nexport const useTheme = (): ThemeContextType => {\n const context = useContext(ThemeContext);\n if (!context) {\n throw new Error(\"useTheme must be used within a ThemeProvider\");\n }\n return context;\n};\n"],"names":["purpurColorBrandDeepPurple","purpurColorBrandCorePurple","purpurColorBrandLightPurple","purpurColorBrandDeepBeige","purpurColorBrandBeige","purpurColorBrandLightBeige","purpurColorBrandOffBlack","purpurColorBrandWhite","purpurColorTextDefault","purpurColorTextMedium","purpurColorTextWeak","purpurColorTextDefaultNegative","purpurColorTextMediumNegative","purpurColorTextWeakNegative","purpurColorTextInteractivePrimary","purpurColorTextInteractivePrimaryHover","purpurColorTextInteractivePrimaryActive","purpurColorTextInteractiveOnPrimary","purpurColorTextInteractiveOnPrimaryNegative","purpurColorTextInteractivePrimaryNegative","purpurColorTextInteractivePrimaryHoverNegative","purpurColorTextInteractivePrimaryActiveNegative","purpurColorTextInteractiveOnExpressive","purpurColorTextInteractiveOnExpressiveNegative","purpurColorTextInteractiveOnExpressiveHover","purpurColorTextInteractiveOnExpressiveHoverNegative","purpurColorTextInteractiveOnExpressiveActive","purpurColorTextInteractiveOnExpressiveActiveNegative","purpurColorTextInteractiveOnDestructive","purpurColorTextInteractiveSelected","purpurColorTextStatusDiscount","purpurColorTextStatusErrorStrong","purpurColorTextStatusErrorStrongNegative","purpurColorTextStatusErrorMedium","purpurColorTextStatusErrorMediumNegative","purpurColorTextStatusSuccessStrong","purpurColorTextStatusSuccessStrongNegative","purpurColorTextStatusSuccessMedium","purpurColorTextStatusWarningStrong","purpurColorTextStatusWarningMedium","purpurColorTextStatusWarningMediumNegative","purpurColorTextStatusInfoStrong","purpurColorTextStatusInfoMedium","purpurColorTextStatusNeutral","purpurColorTextStatusSpecial","purpurColorTextStatusAttention","purpurColorTextStatusBlackFriday","purpurColorTextToneOnTonePrimary","purpurColorTextToneOnToneSecondary","purpurColorTextToneOnToneTertiary","purpurColorBackgroundPrimary","purpurColorBackgroundPrimaryNegative","purpurColorBackgroundSecondary","purpurColorBackgroundSecondaryNegative","purpurColorBackgroundOnImage","purpurColorBackgroundOnImageNegative","purpurColorBackgroundInteractiveAutoFill","purpurColorBackgroundInteractivePrimary","purpurColorBackgroundInteractivePrimaryHover","purpurColorBackgroundInteractivePrimaryActive","purpurColorBackgroundInteractivePrimaryNegative","purpurColorBackgroundInteractivePrimaryHoverNegative","purpurColorBackgroundInteractivePrimaryActiveNegative","purpurColorBackgroundInteractiveExpressive","purpurColorBackgroundInteractiveExpressiveHover","purpurColorBackgroundInteractiveExpressiveActive","purpurColorBackgroundInteractiveExpressiveNegative","purpurColorBackgroundInteractiveExpressiveHoverNegative","purpurColorBackgroundInteractiveExpressiveActiveNegative","purpurColorBackgroundInteractiveDisabled","purpurColorBackgroundInteractiveDisabledNegative","purpurColorBackgroundInteractiveTransparentHover","purpurColorBackgroundInteractiveTransparentHoverNegative","purpurColorBackgroundInteractiveTransparentActive","purpurColorBackgroundInteractiveTransparentActiveNegative","purpurColorBackgroundInteractiveInactive","purpurColorBackgroundInteractiveInactiveNegative","purpurColorBackgroundInteractiveReadOnly","purpurColorBackgroundInteractiveReadOnlyNegative","purpurColorBackgroundInteractiveDestructive","purpurColorBackgroundInteractiveDestructiveHover","purpurColorBackgroundInteractiveDestructiveActive","purpurColorBackgroundStatusInfoMedium","purpurColorBackgroundStatusInfoStrong","purpurColorBackgroundStatusSuccessMedium","purpurColorBackgroundStatusSuccessStrong","purpurColorBackgroundStatusSuccessStrongNegative","purpurColorBackgroundStatusErrorMedium","purpurColorBackgroundStatusErrorStrong","purpurColorBackgroundStatusErrorStrongNegative","purpurColorBackgroundStatusWarningMedium","purpurColorBackgroundStatusWarningStrong","purpurColorBackgroundStatusWarningStrongNegative","purpurColorBackgroundStatusNeutral","purpurColorBackgroundStatusSpecial","purpurColorBackgroundStatusAttention","purpurColorBackgroundStatusBlackFriday","purpurColorBackgroundToneOnTonePrimary","purpurColorBackgroundToneOnToneSecondary","purpurColorBackgroundToneOnToneTertiary","purpurColorBackgroundToneOnToneQuaternary","purpurColorBorderMedium","purpurColorBorderMediumNegative","purpurColorBorderStrong","purpurColorBorderStrongNegative","purpurColorBorderWeak","purpurColorBorderWeakNegative","purpurColorBorderInteractiveFocus","purpurColorBorderInteractivePrimary","purpurColorBorderInteractivePrimaryNegative","purpurColorBorderInteractivePrimaryHover","purpurColorBorderInteractivePrimaryActive","purpurColorBorderInteractivePrimaryHoverNegative","purpurColorBorderInteractivePrimaryActiveNegative","purpurColorBorderInteractiveExpressive","purpurColorBorderInteractiveSelected","purpurColorBorderInteractiveSubtle","purpurColorBorderInteractiveSubtleNegative","purpurColorBorderInteractiveSubtleHover","purpurColorBorderInteractiveSubtleHoverNegative","purpurColorBorderStatusError","purpurColorBorderStatusErrorNegative","purpurColorBorderStatusWarning","purpurColorBorderStatusInfo","purpurColorBorderStatusSuccess","purpurColorBorderStatusSuccessNegative","dark","light","teliaTheme","toKebabCase","str","useApplyTheme","theme","cssVariablesSelector","currentColorScheme","useEffect","key","value","ThemeContext","createContext","ThemeProvider","forceColorScheme","children","options","props","colorScheme","setColorScheme","useState","setCurrentColorScheme","savedColorScheme","mediaQuery","handleChange","e","contextValue","useMemo","scheme","jsx","useT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AAiBqB,GAAyB,CACnCd,IACHK,EAAeS,CAAM,EACrB,aAAa,QAAQ,cAAeA,CAAM,EAE9C,CAAA,GAEF,CAACV,EAAaX,EAAoBO,CAAgB,CAAA,EAGpD,aACGH,EAAa,SAAb,CAAsB,MAAO,CAAE,GAAGe,EAAc,QAAAV,CAAA,EAC/C,SAAAa,EAAAA,IAAC,MAAA,CAAI,oBAAmBtB,EAAoB,UAAWA,EAAqB,GAAGU,EAC5E,SAAAF,EACH,EACF,CAEJ,EAEae,GAAW,IAAwB,CAC9C,MAAMC,EAAUC,EAAAA,WAAWrB,CAAY,EACvC,GAAI,CAACoB,EACH,MAAM,IAAI,MAAM,8CAA8C,EAEhE,OAAOA,CACT"}
@@ -3,9 +3,8 @@ import { createElement as f } from "react";
3
3
  import { a as w } from "./container-Bw12NgHN.mjs";
4
4
  import { a as $ } from "./link-DY5WLpyc.mjs";
5
5
  import { S as x } from "./select-BEmu_fh9.mjs";
6
- import { u as F } from "./ThemeProvider-mOHIAi2k.mjs";
7
- import "change-case";
8
- import { u as S } from "./useColorScheme-CgjazeGp.mjs";
6
+ import { u as F } from "./ThemeProvider-CrjMv3M8.mjs";
7
+ import { u as S } from "./useColorScheme-DRQcbSog.mjs";
9
8
  import { c as g } from "./bind-CU-R61T-.mjs";
10
9
  import { A as y } from "./accordion-DWflnyWa.mjs";
11
10
  import { b as T } from "./icon.es-CZcKxTaM.mjs";
@@ -309,4 +308,4 @@ E.displayName = "Footer";
309
308
  export {
310
309
  E as F
311
310
  };
312
- //# sourceMappingURL=footer-DY0s_C6e.mjs.map
311
+ //# sourceMappingURL=footer-DcWsihxS.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"footer-DY0s_C6e.mjs","sources":["../../../components/footer/src/constants.ts","../../../components/footer/src/footer-navigation.tsx","../../../components/footer/src/footer-social-link.tsx","../../../components/footer/src/telia-logo.tsx","../../../components/footer/src/footer.tsx"],"sourcesContent":["export const rootClassName = \"purpur-footer\";\n","import React, { type AnchorHTMLAttributes, type ForwardRefExoticComponent } from \"react\";\nimport { Accordion } from \"@purpur/accordion\";\nimport type { BaseProps } from \"@purpur/common-types\";\nimport { Link } from \"@purpur/link\";\nimport c from \"classnames/bind\";\n\nimport { rootClassName } from \"./constants\";\nimport styles from \"./footer.module.scss\";\n\nconst cx = c.bind(styles);\n\nexport type FooterNavigationItemLink = Omit<BaseProps<\"a\">, \"href\"> & {\n text: string;\n href: string;\n};\n\nexport type FooterNavigationItem = {\n heading: string;\n links: FooterNavigationItemLink[];\n};\n\nexport type CustomLinkType =\n | ForwardRefExoticComponent<AnchorHTMLAttributes<HTMLAnchorElement>>\n | \"a\";\n\ntype NavigationLinksProps = {\n links: FooterNavigationItemLink[];\n customLink?: CustomLinkType;\n};\n\nconst NavigationLinks = ({ links, customLink: CustomLink }: NavigationLinksProps) => (\n <ul>\n {links.map(({ href, text, ...linkProps }, j) => (\n <li key={j}>\n {CustomLink ? (\n <CustomLink\n {...linkProps}\n href={href}\n className={cx(`${rootClassName}__custom-link-navigation`)}\n >\n {text}\n </CustomLink>\n ) : (\n <Link {...linkProps} variant=\"navigation\" negative href={href} disableVisited={true}>\n {text}\n </Link>\n )}\n </li>\n ))}\n </ul>\n);\n\ntype FooterNavigationProps = {\n customLink?: CustomLinkType;\n sectionProps?: Omit<BaseProps<\"section\">, \"children\">;\n navigationLinks: FooterNavigationItem[];\n};\n\nexport const FooterNavigation = ({\n navigationLinks,\n sectionProps,\n customLink,\n}: FooterNavigationProps) => (\n <>\n <section\n {...sectionProps}\n className={cx(\n `${rootClassName}__navigation`,\n `${rootClassName}__navigation--lg`,\n sectionProps?.className\n )}\n >\n {navigationLinks.map((section, i) => (\n <div key={i} className={cx(`${rootClassName}__navigation-section`)}>\n <h3 className={cx(`${rootClassName}__navigation-section-heading`)}>{section.heading}</h3>\n <NavigationLinks links={section.links} customLink={customLink} />\n </div>\n ))}\n </section>\n <section\n {...sectionProps}\n className={cx(\n `${rootClassName}__navigation`,\n `${rootClassName}__navigation--sm`,\n sectionProps?.className\n )}\n >\n <Accordion negative>\n {navigationLinks.map((section, i) => (\n <Accordion.Item\n key={i}\n title={section.heading}\n titleTag=\"h2\"\n className={cx(`${rootClassName}__navigation-section`)}\n >\n <NavigationLinks links={section.links} customLink={customLink} />\n </Accordion.Item>\n ))}\n </Accordion>\n </section>\n </>\n);\n","import React from \"react\";\nimport type { BaseProps } from \"@purpur/common-types\";\nimport { Icon, type IconProps } from \"@purpur/icon\";\nimport c from \"classnames/bind\";\n\nimport { rootClassName } from \"./constants\";\nimport styles from \"./footer.module.scss\";\n\nexport type FooterSocialLinkProps = Omit<BaseProps<\"a\">, \"aria-label\" | \"href\" | \"children\"> & {\n \"aria-label\": string;\n icon: IconProps[\"svg\"];\n href: string;\n};\n\nconst cx = c.bind(styles);\n\nexport const FooterSocialLink = ({ icon, href, ...props }: FooterSocialLinkProps) => (\n <a\n {...props}\n href={href}\n className={cx(`${rootClassName}__social-link`)}\n rel=\"noreferrer\"\n target=\"_blank\"\n >\n <Icon svg={icon} />\n </a>\n);\n","import React from \"react\";\n\nexport const TeliaLogo = () => (\n <svg\n width=\"81\"\n height=\"32\"\n viewBox=\"0 0 81 32\"\n xmlns=\"http://www.w3.org/2000/svg\"\n role=\"img\"\n aria-hidden=\"true\"\n >\n <g clipPath=\"url(#clip0_5309_7721)\">\n <path\n d=\"M81.28 16.8043V25.2064H78.5458V23.8293C77.6183 25.04 76.1438 25.4912 74.9076 25.4912C72.3401 25.4912 70.8186 23.8773 70.8186 21.8592C70.8186 19.5573 73.4107 17.6821 76.5723 17.6821C77.1909 17.6821 77.8566 17.7301 78.4507 17.92V17.1371C78.4507 15.9499 77.7615 15.3333 76.3586 15.3333C75.0989 15.3333 73.9812 15.9744 73.2921 16.8053L71.2235 15.2864C72.3882 13.9339 74.3862 12.9845 76.4067 12.9845C79.5683 12.9824 81.28 14.3595 81.28 16.8043ZM78.4507 20.6251V20.1024C77.9752 19.936 77.4762 19.8891 76.8576 19.8891C74.7174 19.8891 73.6244 20.7435 73.6244 21.7877C73.6244 22.6421 74.3616 23.1883 75.4792 23.1883C76.9527 23.1883 78.4507 22.3104 78.4507 20.6251Z\"\n fill=\"currentColor\"\n />\n <path\n d=\"M65.8021 9.968C65.8021 9.04214 66.6109 8.28267 67.5373 8.28267C68.4412 8.28267 69.249 9.04214 69.249 9.968C69.249 10.8939 68.4401 11.6533 67.5373 11.6533C66.6109 11.6533 65.8021 10.8939 65.8021 9.968ZM66.0638 25.2064V13.3387H68.9883V25.2064H66.0638Z\"\n fill=\"currentColor\"\n />\n <path\n d=\"M64.2806 25.2533C63.8286 25.3483 63.3531 25.3717 62.9257 25.3717C60.8337 25.3717 59.9062 24.3744 59.9062 22.3573V8.59093H62.8306V21.9541C62.8306 22.9749 63.4493 23.1168 64.2806 23.0219V25.2533Z\"\n fill=\"currentColor\"\n />\n <path\n d=\"M58.0513 20.1035H49.2781C49.5869 21.8603 50.8477 23.0229 52.4643 23.0229C53.677 23.0229 54.6514 22.4768 55.2466 21.5755L57.5769 22.976C56.3877 24.5664 54.4388 25.5157 52.4653 25.5157C49.2086 25.5157 46.3793 22.9291 46.3793 19.2256C46.3793 15.5221 49.1851 12.96 52.3232 12.96C56.4347 12.9589 58.4552 16.2347 58.0513 20.1035ZM49.3732 17.8955H55.222C54.8651 16.3531 53.8672 15.3792 52.3211 15.3792C50.8712 15.3803 49.7771 16.3765 49.3732 17.8955Z\"\n fill=\"currentColor\"\n />\n <path\n d=\"M48.6359 11.2971H43.69V25.2064H40.5518V11.2971H35.5589V8.59093H48.6359V11.2971Z\"\n fill=\"currentColor\"\n />\n <path\n d=\"M16.9321 27.4656C11.5983 29.6245 8.54567 28.9365 6.85855 27.5904L6.83397 27.5712C9.44532 30.1717 12.4221 32.0011 15.0324 32.0011C19.6033 32.0011 25.8614 26.4651 28.8232 17.8805C27.1542 20.9792 23.5727 24.7861 16.9321 27.4656Z\"\n fill=\"currentColor\"\n />\n <path\n d=\"M20.9806 22.4843C25.137 20.0779 28.8809 15.9968 30.0616 13.0869C30.3971 10.6784 30.4654 10.3744 30.506 7.7248C30.5114 7.35787 30.4889 7.00587 30.4548 6.6688C30.2122 10.56 25.1743 15.4528 18.5092 18.6496C10.4689 22.5056 4.43738 23.5435 1.74589 20.6027C2.6808 22.4459 3.29411 23.3408 4.34549 24.7083C7.45048 27.4539 13.9853 26.5355 20.9806 22.4843Z\"\n fill=\"currentColor\"\n />\n <path\n d=\"M17.5721 15.8923C25.1562 12.24 30.4387 7.04427 29.5177 3.6C28.0058 0.993067 24.9457 0 21.6644 0C11.9381 0 0 6.4 0 14.5653C0 15.6149 0.231859 16.7883 0.647496 18.0181C2.86565 20.9568 9.64833 19.7077 17.5721 15.8923Z\"\n fill=\"currentColor\"\n />\n </g>\n <defs>\n <clipPath id=\"clip0_5309_7721\">\n <rect width=\"81\" height=\"32\" fill=\"currentColor\" />\n </clipPath>\n </defs>\n </svg>\n);\n","import React, { type ReactElement, type ReactNode } from \"react\";\nimport type { BaseProps } from \"@purpur/common-types\";\nimport { Container } from \"@purpur/container\";\nimport { Link, type LinkProps } from \"@purpur/link\";\nimport { Select } from \"@purpur/select\";\nimport { type ColorOptions, type ColorScheme, useColorScheme, useTheme } from \"@purpur/theme\";\nimport c from \"classnames/bind\";\n\nimport { rootClassName } from \"./constants\";\nimport styles from \"./footer.module.scss\";\nimport {\n type CustomLinkType,\n FooterNavigation,\n type FooterNavigationItem,\n type FooterNavigationItemLink,\n} from \"./footer-navigation\";\nimport { FooterSocialLink, type FooterSocialLinkProps } from \"./footer-social-link\";\nimport { TeliaLogo } from \"./telia-logo\";\n\nconst cx = c.bind(styles);\n\ntype AdditionalLink = FooterNavigationItemLink &\n Omit<LinkProps, \"href\" | \"variant\" | \"negative\" | \"children\" | \"disableVisited\">;\n\ntype SectionProps = Omit<BaseProps<\"section\">, \"children\">;\n\nexport type FooterProps = BaseProps<\"footer\"> & {\n /**\n * Navigation section of the footer.\n */\n navigation?: {\n customLink?: CustomLinkType;\n links: FooterNavigationItem[];\n sectionProps?: SectionProps;\n };\n /**\n * Social links section of the footer.\n */\n social?: {\n links: FooterSocialLinkProps[];\n sectionProps?: SectionProps;\n };\n /**\n * Contacts section of the footer.\n */\n contacts?: {\n copyright?: string;\n address?: {\n content: ReactElement;\n addressProps?: Omit<BaseProps<\"address\">, \"children\">;\n };\n sectionProps?: SectionProps;\n };\n /**\n * Additional links section of the footer.\n */\n additional?: {\n links: AdditionalLink[];\n sectionProps?: SectionProps;\n };\n /**\n * Custom content section of the footer.\n */\n custom?: {\n content: ReactElement;\n sectionProps?: SectionProps;\n };\n /**\n * Payment images section of the footer.\n */\n payments?: {\n /**\n * @deprecated use content instead\n */\n images?: { src: string; alt: string }[];\n content?: ReactElement | ReactElement[];\n sectionProps?: SectionProps;\n };\n /**\n * Custom logo that replaces the default Telia logo.\n */\n logo?: ReactNode;\n themeSelect?: {\n label: string;\n options: { value: ColorOptions; label: string }[];\n };\n forceColorScheme?: ColorScheme;\n};\n\nexport const Footer = ({\n className,\n navigation,\n social,\n contacts,\n additional,\n custom,\n payments,\n logo,\n themeSelect,\n forceColorScheme,\n ...props\n}: FooterProps) => {\n const classes = cx(className, rootClassName);\n\n const { options } = useTheme();\n const [colorScheme, setColorScheme] = useColorScheme();\n\n const resolvedColorScheme = forceColorScheme ?? options?.footerColorScheme;\n\n return (\n <footer data-color-scheme={resolvedColorScheme} className={classes} {...props}>\n <Container>\n <div className={cx(`${rootClassName}__container`)}>\n <div\n className={cx(`${rootClassName}__logo`, {\n [`${rootClassName}__logo--telia`]: !logo,\n })}\n >\n {logo ?? <TeliaLogo />}\n </div>\n {social && (\n <section\n {...social.sectionProps}\n className={cx(\n `${rootClassName}__social`,\n `${rootClassName}__social--md`,\n social.sectionProps?.className\n )}\n >\n {social.links.map(({ icon, href, ...socialLinkProps }) => (\n <FooterSocialLink {...socialLinkProps} icon={icon} href={href} key={href} />\n ))}\n </section>\n )}\n {navigation && (\n <FooterNavigation\n customLink={navigation.customLink}\n navigationLinks={navigation.links}\n sectionProps={navigation.sectionProps}\n />\n )}\n {payments && (\n <section\n {...payments.sectionProps}\n className={cx(`${rootClassName}__payments`, payments.sectionProps?.className)}\n >\n {payments.content}\n {payments.images?.map(({ alt, src }) => (\n <img\n className={cx(`${rootClassName}__payments-image`)}\n src={src}\n alt={alt}\n key={src}\n />\n ))}\n </section>\n )}\n {themeSelect && (\n <section className={cx(`${rootClassName}__theme-select`)}>\n <Select\n value={colorScheme}\n label={themeSelect.label}\n options={themeSelect.options}\n negative\n onChange={(event) => {\n setColorScheme(event.target.value as ColorOptions);\n }}\n />\n </section>\n )}\n {contacts && (\n <section\n {...contacts.sectionProps}\n className={cx(`${rootClassName}__contacts`, contacts.sectionProps?.className)}\n >\n {contacts.copyright && (\n <div className={cx(`${rootClassName}__contacts-copyright`)}>\n {contacts.copyright}\n </div>\n )}\n {contacts.address && (\n <address\n {...contacts.address.addressProps}\n className={cx(\n `${rootClassName}__contacts-address`,\n contacts.address.addressProps?.className\n )}\n >\n {contacts.address.content}\n </address>\n )}\n </section>\n )}\n {(custom || additional) && (\n <div className={cx(`${rootClassName}__additional`)}>\n {custom && (\n <section\n {...custom.sectionProps}\n className={cx(`${rootClassName}__custom-content`, custom.sectionProps?.className)}\n >\n {custom.content}\n </section>\n )}\n {additional && (\n <section\n {...additional.sectionProps}\n className={cx(\n `${rootClassName}__additional-links`,\n additional.sectionProps?.className\n )}\n >\n {additional?.links?.map(({ href, text, ...additionalLinkProps }) => (\n <Link\n {...additionalLinkProps}\n variant=\"standalone\"\n negative\n href={href}\n key={href}\n disableVisited={true}\n >\n {text}\n </Link>\n ))}\n </section>\n )}\n </div>\n )}\n {social && (\n <section\n {...social.sectionProps}\n className={cx(\n `${rootClassName}__social`,\n `${rootClassName}__social--sm`,\n social.sectionProps?.className\n )}\n >\n {social.links.map(({ icon, href, ...socialLinkProps }) => (\n <FooterSocialLink {...socialLinkProps} icon={icon} href={href} key={href} />\n ))}\n </section>\n )}\n </div>\n </Container>\n </footer>\n );\n};\n\nFooter.displayName = \"Footer\";\n"],"names":["rootClassName","cx","c","styles","NavigationLinks","links","CustomLink","href","text","linkProps","j","jsx","Link","FooterNavigation","navigationLinks","sectionProps","customLink","jsxs","Fragment","section","i","Accordion","FooterSocialLink","icon","props","Icon","TeliaLogo","Footer","className","navigation","social","contacts","additional","custom","payments","logo","themeSelect","forceColorScheme","classes","options","useTheme","colorScheme","setColorScheme","useColorScheme","resolvedColorScheme","Container","socialLinkProps","createElement","alt","src","Select","event","additionalLinkProps"],"mappings":";;;;;;;;;;;AAAO,MAAMA,IAAgB;;;;;;;;;;;;;;;;;;;;;;;;GCSvBC,IAAKC,EAAE,KAAKC,CAAM,GAqBlBC,IAAkB,CAAC,EAAE,OAAAC,GAAO,YAAYC,0BAC3C,MAAA,EACE,UAAAD,EAAM,IAAI,CAAC,EAAE,MAAAE,GAAM,MAAAC,GAAM,GAAGC,KAAaC,MACxC,gBAAAC,EAAC,MAAA,EACE,UAAAL,IACC,gBAAAK;AAAA,EAACL;AAAA,EAAA;AAAA,IACE,GAAGG;AAAA,IACJ,MAAAF;AAAA,IACA,WAAWN,EAAG,GAAGD,CAAa,0BAA0B;AAAA,IAEvD,UAAAQ;AAAA,EAAA;AACH,IAEA,gBAAAG,EAACC,GAAA,EAAM,GAAGH,GAAW,SAAQ,cAAa,UAAQ,IAAC,MAAAF,GAAY,gBAAgB,IAC5E,UAAAC,EAAA,CACH,KAZKE,CAcT,CACD,GACH,GASWG,IAAmB,CAAC;AAAA,EAC/B,iBAAAC;AAAA,EACA,cAAAC;AAAA,EACA,YAAAC;AACF,MACE,gBAAAC,EAAAC,GAAA,EACE,UAAA;AAAA,EAAA,gBAAAP;AAAA,IAAC;AAAA,IAAA;AAAA,MACE,GAAGI;AAAA,MACJ,WAAWd;AAAAA,QACT,GAAGD,CAAa;AAAA,QAChB,GAAGA,CAAa;AAAA,QAChBe,GAAc;AAAA,MAAA;AAAA,MAGf,UAAAD,EAAgB,IAAI,CAACK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E,MAAAP,GAAM,MAAAhB,GAAM,GAAGuC,EAAA,MAClC,gBAAAC,EAACzB,KAAkB,GAAGwB,GAAiB,MAAAvB,GAAY,MAAAhB,GAAY,KAAKA,GAAM,CAC3E;AAAA,MAAA;AAAA,IAAA;AAAA,EACH,EAAA,CAEJ,GACF,GACF;AAEJ;AAEAoB,EAAO,cAAc;"}
1
+ {"version":3,"file":"footer-DcWsihxS.mjs","sources":["../../../components/footer/src/constants.ts","../../../components/footer/src/footer-navigation.tsx","../../../components/footer/src/footer-social-link.tsx","../../../components/footer/src/telia-logo.tsx","../../../components/footer/src/footer.tsx"],"sourcesContent":["export const rootClassName = \"purpur-footer\";\n","import React, { type AnchorHTMLAttributes, type ForwardRefExoticComponent } from \"react\";\nimport { Accordion } from \"@purpur/accordion\";\nimport type { BaseProps } from \"@purpur/common-types\";\nimport { Link } from \"@purpur/link\";\nimport c from \"classnames/bind\";\n\nimport { rootClassName } from \"./constants\";\nimport styles from \"./footer.module.scss\";\n\nconst cx = c.bind(styles);\n\nexport type FooterNavigationItemLink = Omit<BaseProps<\"a\">, \"href\"> & {\n text: string;\n href: string;\n};\n\nexport type FooterNavigationItem = {\n heading: string;\n links: FooterNavigationItemLink[];\n};\n\nexport type CustomLinkType =\n | ForwardRefExoticComponent<AnchorHTMLAttributes<HTMLAnchorElement>>\n | \"a\";\n\ntype NavigationLinksProps = {\n links: FooterNavigationItemLink[];\n customLink?: CustomLinkType;\n};\n\nconst NavigationLinks = ({ links, customLink: CustomLink }: NavigationLinksProps) => (\n <ul>\n {links.map(({ href, text, ...linkProps }, j) => (\n <li key={j}>\n {CustomLink ? (\n <CustomLink\n {...linkProps}\n href={href}\n className={cx(`${rootClassName}__custom-link-navigation`)}\n >\n {text}\n </CustomLink>\n ) : (\n <Link {...linkProps} variant=\"navigation\" negative href={href} disableVisited={true}>\n {text}\n </Link>\n )}\n </li>\n ))}\n </ul>\n);\n\ntype FooterNavigationProps = {\n customLink?: CustomLinkType;\n sectionProps?: Omit<BaseProps<\"section\">, \"children\">;\n navigationLinks: FooterNavigationItem[];\n};\n\nexport const FooterNavigation = ({\n navigationLinks,\n sectionProps,\n customLink,\n}: FooterNavigationProps) => (\n <>\n <section\n {...sectionProps}\n className={cx(\n `${rootClassName}__navigation`,\n `${rootClassName}__navigation--lg`,\n sectionProps?.className\n )}\n >\n {navigationLinks.map((section, i) => (\n <div key={i} className={cx(`${rootClassName}__navigation-section`)}>\n <h3 className={cx(`${rootClassName}__navigation-section-heading`)}>{section.heading}</h3>\n <NavigationLinks links={section.links} customLink={customLink} />\n </div>\n ))}\n </section>\n <section\n {...sectionProps}\n className={cx(\n `${rootClassName}__navigation`,\n `${rootClassName}__navigation--sm`,\n sectionProps?.className\n )}\n >\n <Accordion negative>\n {navigationLinks.map((section, i) => (\n <Accordion.Item\n key={i}\n title={section.heading}\n titleTag=\"h2\"\n className={cx(`${rootClassName}__navigation-section`)}\n >\n <NavigationLinks links={section.links} customLink={customLink} />\n </Accordion.Item>\n ))}\n </Accordion>\n </section>\n </>\n);\n","import React from \"react\";\nimport type { BaseProps } from \"@purpur/common-types\";\nimport { Icon, type IconProps } from \"@purpur/icon\";\nimport c from \"classnames/bind\";\n\nimport { rootClassName } from \"./constants\";\nimport styles from \"./footer.module.scss\";\n\nexport type FooterSocialLinkProps = Omit<BaseProps<\"a\">, \"aria-label\" | \"href\" | \"children\"> & {\n \"aria-label\": string;\n icon: IconProps[\"svg\"];\n href: string;\n};\n\nconst cx = c.bind(styles);\n\nexport const FooterSocialLink = ({ icon, href, ...props }: FooterSocialLinkProps) => (\n <a\n {...props}\n href={href}\n className={cx(`${rootClassName}__social-link`)}\n rel=\"noreferrer\"\n target=\"_blank\"\n >\n <Icon svg={icon} />\n </a>\n);\n","import React from \"react\";\n\nexport const TeliaLogo = () => (\n <svg\n width=\"81\"\n height=\"32\"\n viewBox=\"0 0 81 32\"\n xmlns=\"http://www.w3.org/2000/svg\"\n role=\"img\"\n aria-hidden=\"true\"\n >\n <g clipPath=\"url(#clip0_5309_7721)\">\n <path\n d=\"M81.28 16.8043V25.2064H78.5458V23.8293C77.6183 25.04 76.1438 25.4912 74.9076 25.4912C72.3401 25.4912 70.8186 23.8773 70.8186 21.8592C70.8186 19.5573 73.4107 17.6821 76.5723 17.6821C77.1909 17.6821 77.8566 17.7301 78.4507 17.92V17.1371C78.4507 15.9499 77.7615 15.3333 76.3586 15.3333C75.0989 15.3333 73.9812 15.9744 73.2921 16.8053L71.2235 15.2864C72.3882 13.9339 74.3862 12.9845 76.4067 12.9845C79.5683 12.9824 81.28 14.3595 81.28 16.8043ZM78.4507 20.6251V20.1024C77.9752 19.936 77.4762 19.8891 76.8576 19.8891C74.7174 19.8891 73.6244 20.7435 73.6244 21.7877C73.6244 22.6421 74.3616 23.1883 75.4792 23.1883C76.9527 23.1883 78.4507 22.3104 78.4507 20.6251Z\"\n fill=\"currentColor\"\n />\n <path\n d=\"M65.8021 9.968C65.8021 9.04214 66.6109 8.28267 67.5373 8.28267C68.4412 8.28267 69.249 9.04214 69.249 9.968C69.249 10.8939 68.4401 11.6533 67.5373 11.6533C66.6109 11.6533 65.8021 10.8939 65.8021 9.968ZM66.0638 25.2064V13.3387H68.9883V25.2064H66.0638Z\"\n fill=\"currentColor\"\n />\n <path\n d=\"M64.2806 25.2533C63.8286 25.3483 63.3531 25.3717 62.9257 25.3717C60.8337 25.3717 59.9062 24.3744 59.9062 22.3573V8.59093H62.8306V21.9541C62.8306 22.9749 63.4493 23.1168 64.2806 23.0219V25.2533Z\"\n fill=\"currentColor\"\n />\n <path\n d=\"M58.0513 20.1035H49.2781C49.5869 21.8603 50.8477 23.0229 52.4643 23.0229C53.677 23.0229 54.6514 22.4768 55.2466 21.5755L57.5769 22.976C56.3877 24.5664 54.4388 25.5157 52.4653 25.5157C49.2086 25.5157 46.3793 22.9291 46.3793 19.2256C46.3793 15.5221 49.1851 12.96 52.3232 12.96C56.4347 12.9589 58.4552 16.2347 58.0513 20.1035ZM49.3732 17.8955H55.222C54.8651 16.3531 53.8672 15.3792 52.3211 15.3792C50.8712 15.3803 49.7771 16.3765 49.3732 17.8955Z\"\n fill=\"currentColor\"\n />\n <path\n d=\"M48.6359 11.2971H43.69V25.2064H40.5518V11.2971H35.5589V8.59093H48.6359V11.2971Z\"\n fill=\"currentColor\"\n />\n <path\n d=\"M16.9321 27.4656C11.5983 29.6245 8.54567 28.9365 6.85855 27.5904L6.83397 27.5712C9.44532 30.1717 12.4221 32.0011 15.0324 32.0011C19.6033 32.0011 25.8614 26.4651 28.8232 17.8805C27.1542 20.9792 23.5727 24.7861 16.9321 27.4656Z\"\n fill=\"currentColor\"\n />\n <path\n d=\"M20.9806 22.4843C25.137 20.0779 28.8809 15.9968 30.0616 13.0869C30.3971 10.6784 30.4654 10.3744 30.506 7.7248C30.5114 7.35787 30.4889 7.00587 30.4548 6.6688C30.2122 10.56 25.1743 15.4528 18.5092 18.6496C10.4689 22.5056 4.43738 23.5435 1.74589 20.6027C2.6808 22.4459 3.29411 23.3408 4.34549 24.7083C7.45048 27.4539 13.9853 26.5355 20.9806 22.4843Z\"\n fill=\"currentColor\"\n />\n <path\n d=\"M17.5721 15.8923C25.1562 12.24 30.4387 7.04427 29.5177 3.6C28.0058 0.993067 24.9457 0 21.6644 0C11.9381 0 0 6.4 0 14.5653C0 15.6149 0.231859 16.7883 0.647496 18.0181C2.86565 20.9568 9.64833 19.7077 17.5721 15.8923Z\"\n fill=\"currentColor\"\n />\n </g>\n <defs>\n <clipPath id=\"clip0_5309_7721\">\n <rect width=\"81\" height=\"32\" fill=\"currentColor\" />\n </clipPath>\n </defs>\n </svg>\n);\n","import React, { type ReactElement, type ReactNode } from \"react\";\nimport type { BaseProps } from \"@purpur/common-types\";\nimport { Container } from \"@purpur/container\";\nimport { Link, type LinkProps } from \"@purpur/link\";\nimport { Select } from \"@purpur/select\";\nimport { type ColorOptions, type ColorScheme, useColorScheme, useTheme } from \"@purpur/theme\";\nimport c from \"classnames/bind\";\n\nimport { rootClassName } from \"./constants\";\nimport styles from \"./footer.module.scss\";\nimport {\n type CustomLinkType,\n FooterNavigation,\n type FooterNavigationItem,\n type FooterNavigationItemLink,\n} from \"./footer-navigation\";\nimport { FooterSocialLink, type FooterSocialLinkProps } from \"./footer-social-link\";\nimport { TeliaLogo } from \"./telia-logo\";\n\nconst cx = c.bind(styles);\n\ntype AdditionalLink = FooterNavigationItemLink &\n Omit<LinkProps, \"href\" | \"variant\" | \"negative\" | \"children\" | \"disableVisited\">;\n\ntype SectionProps = Omit<BaseProps<\"section\">, \"children\">;\n\nexport type FooterProps = BaseProps<\"footer\"> & {\n /**\n * Navigation section of the footer.\n */\n navigation?: {\n customLink?: CustomLinkType;\n links: FooterNavigationItem[];\n sectionProps?: SectionProps;\n };\n /**\n * Social links section of the footer.\n */\n social?: {\n links: FooterSocialLinkProps[];\n sectionProps?: SectionProps;\n };\n /**\n * Contacts section of the footer.\n */\n contacts?: {\n copyright?: string;\n address?: {\n content: ReactElement;\n addressProps?: Omit<BaseProps<\"address\">, \"children\">;\n };\n sectionProps?: SectionProps;\n };\n /**\n * Additional links section of the footer.\n */\n additional?: {\n links: AdditionalLink[];\n sectionProps?: SectionProps;\n };\n /**\n * Custom content section of the footer.\n */\n custom?: {\n content: ReactElement;\n sectionProps?: SectionProps;\n };\n /**\n * Payment images section of the footer.\n */\n payments?: {\n /**\n * @deprecated use content instead\n */\n images?: { src: string; alt: string }[];\n content?: ReactElement | ReactElement[];\n sectionProps?: SectionProps;\n };\n /**\n * Custom logo that replaces the default Telia logo.\n */\n logo?: ReactNode;\n themeSelect?: {\n label: string;\n options: { value: ColorOptions; label: string }[];\n };\n forceColorScheme?: ColorScheme;\n};\n\nexport const Footer = ({\n className,\n navigation,\n social,\n contacts,\n additional,\n custom,\n payments,\n logo,\n themeSelect,\n forceColorScheme,\n ...props\n}: FooterProps) => {\n const classes = cx(className, rootClassName);\n\n const { options } = useTheme();\n const [colorScheme, setColorScheme] = useColorScheme();\n\n const resolvedColorScheme = forceColorScheme ?? options?.footerColorScheme;\n\n return (\n <footer data-color-scheme={resolvedColorScheme} className={classes} {...props}>\n <Container>\n <div className={cx(`${rootClassName}__container`)}>\n <div\n className={cx(`${rootClassName}__logo`, {\n [`${rootClassName}__logo--telia`]: !logo,\n })}\n >\n {logo ?? <TeliaLogo />}\n </div>\n {social && (\n <section\n {...social.sectionProps}\n className={cx(\n `${rootClassName}__social`,\n `${rootClassName}__social--md`,\n social.sectionProps?.className\n )}\n >\n {social.links.map(({ icon, href, ...socialLinkProps }) => (\n <FooterSocialLink {...socialLinkProps} icon={icon} href={href} key={href} />\n ))}\n </section>\n )}\n {navigation && (\n <FooterNavigation\n customLink={navigation.customLink}\n navigationLinks={navigation.links}\n sectionProps={navigation.sectionProps}\n />\n )}\n {payments && (\n <section\n {...payments.sectionProps}\n className={cx(`${rootClassName}__payments`, payments.sectionProps?.className)}\n >\n {payments.content}\n {payments.images?.map(({ alt, src }) => (\n <img\n className={cx(`${rootClassName}__payments-image`)}\n src={src}\n alt={alt}\n key={src}\n />\n ))}\n </section>\n )}\n {themeSelect && (\n <section className={cx(`${rootClassName}__theme-select`)}>\n <Select\n value={colorScheme}\n label={themeSelect.label}\n options={themeSelect.options}\n negative\n onChange={(event) => {\n setColorScheme(event.target.value as ColorOptions);\n }}\n />\n </section>\n )}\n {contacts && (\n <section\n {...contacts.sectionProps}\n className={cx(`${rootClassName}__contacts`, contacts.sectionProps?.className)}\n >\n {contacts.copyright && (\n <div className={cx(`${rootClassName}__contacts-copyright`)}>\n {contacts.copyright}\n </div>\n )}\n {contacts.address && (\n <address\n {...contacts.address.addressProps}\n className={cx(\n `${rootClassName}__contacts-address`,\n contacts.address.addressProps?.className\n )}\n >\n {contacts.address.content}\n </address>\n )}\n </section>\n )}\n {(custom || additional) && (\n <div className={cx(`${rootClassName}__additional`)}>\n {custom && (\n <section\n {...custom.sectionProps}\n className={cx(`${rootClassName}__custom-content`, custom.sectionProps?.className)}\n >\n {custom.content}\n </section>\n )}\n {additional && (\n <section\n {...additional.sectionProps}\n className={cx(\n `${rootClassName}__additional-links`,\n additional.sectionProps?.className\n )}\n >\n {additional?.links?.map(({ href, text, ...additionalLinkProps }) => (\n <Link\n {...additionalLinkProps}\n variant=\"standalone\"\n negative\n href={href}\n key={href}\n disableVisited={true}\n >\n {text}\n </Link>\n ))}\n </section>\n )}\n </div>\n )}\n {social && (\n <section\n {...social.sectionProps}\n className={cx(\n `${rootClassName}__social`,\n `${rootClassName}__social--sm`,\n social.sectionProps?.className\n )}\n >\n {social.links.map(({ icon, href, ...socialLinkProps }) => (\n <FooterSocialLink {...socialLinkProps} icon={icon} href={href} key={href} />\n ))}\n </section>\n )}\n </div>\n </Container>\n </footer>\n );\n};\n\nFooter.displayName = \"Footer\";\n"],"names":["rootClassName","cx","c","styles","NavigationLinks","links","CustomLink","href","text","linkProps","j","jsx","Link","FooterNavigation","navigationLinks","sectionProps","customLink","jsxs","Fragment","section","i","Accordion","FooterSocialLink","icon","props","Icon","TeliaLogo","Footer","className","navigation","social","contacts","additional","custom","payments","logo","themeSelect","forceColorScheme","classes","options","useTheme","colorScheme","setColorScheme","useColorScheme","resolvedColorScheme","Container","socialLinkProps","createElement","alt","src","Select","event","additionalLinkProps"],"mappings":";;;;;;;;;;AAAO,MAAMA,IAAgB;;;;;;;;;;;;;;;;;;;;;;;;GCSvBC,IAAKC,EAAE,KAAKC,CAAM,GAqBlBC,IAAkB,CAAC,EAAE,OAAAC,GAAO,YAAYC,0BAC3C,MAAA,EACE,UAAAD,EAAM,IAAI,CAAC,EAAE,MAAAE,GAAM,MAAAC,GAAM,GAAGC,KAAaC,MACxC,gBAAAC,EAAC,MAAA,EACE,UAAAL,IACC,gBAAAK;AAAA,EAACL;AAAA,EAAA;AAAA,IACE,GAAGG;AAAA,IACJ,MAAAF;AAAA,IACA,WAAWN,EAAG,GAAGD,CAAa,0BAA0B;AAAA,IAEvD,UAAAQ;AAAA,EAAA;AACH,IAEA,gBAAAG,EAACC,GAAA,EAAM,G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A;AAAA,cACE,GAAGwC;AAAA,cACJ,SAAQ;AAAA,cACR,UAAQ;AAAA,cACR,MAAA7C;AAAA,cACA,KAAKA;AAAA,cACL,gBAAgB;AAAA,YAAA;AAAA,YAEfC;AAAA,UAAA,CAEJ;AAAA,QAAA;AAAA,MAAA;AAAA,IACH,GAEJ;AAAA,IAEDsB,KACC,gBAAAnB;AAAA,MAAC;AAAA,MAAA;AAAA,QACE,GAAGmB,EAAO;AAAA,QACX,WAAW7B;AAAA,UACT,GAAGD,CAAa;AAAA,UAChB,GAAGA,CAAa;AAAA,UAChB8B,EAAO,cAAc;AAAA,QAAA;AAAA,QAGtB,YAAO,MAAM,IAAI,CAAC,EAAE,MAAAP,GAAM,MAAAhB,GAAM,GAAGuC,EAAA,MAClC,gBAAAC,EAACzB,KAAkB,GAAGwB,GAAiB,MAAAvB,GAAY,MAAAhB,GAAY,KAAKA,GAAM,CAC3E;AAAA,MAAA;AAAA,IAAA;AAAA,EACH,EAAA,CAEJ,GACF,GACF;AAEJ;AAEAoB,EAAO,cAAc;"}
@@ -0,0 +1,2 @@
1
+ "use strict";const e=require("react/jsx-runtime"),m=require("react"),Z=require("./container-DRwKIAjh.js"),y=require("./link-DhWVrkTz.js"),H=require("./select-DOqTJgTj.js"),L=require("./ThemeProvider-ipAIFRUi.js"),w=require("./useColorScheme-DNNu9bz0.js"),g=require("./bind-DeUYJ6m9.js"),x=require("./accordion-CF2fj2uq.js"),F=require("./icon.es-j3eRib6d.js"),r="purpur-footer",C={"purpur-footer":"_purpur-footer_yqb4h_1","purpur-footer__container":"_purpur-footer__container_yqb4h_8","purpur-footer__logo":"_purpur-footer__logo_yqb4h_30","purpur-footer__logo--telia":"_purpur-footer__logo--telia_yqb4h_34","purpur-footer__social":"_purpur-footer__social_yqb4h_54","purpur-footer__social--md":"_purpur-footer__social--md_yqb4h_70","purpur-footer__social--sm":"_purpur-footer__social--sm_yqb4h_78","purpur-footer__social-link":"_purpur-footer__social-link_yqb4h_87","purpur-footer__navigation":"_purpur-footer__navigation_yqb4h_107","purpur-footer__navigation-section":"_purpur-footer__navigation-section_yqb4h_116","purpur-footer__navigation-section-heading":"_purpur-footer__navigation-section-heading_yqb4h_119","purpur-footer__navigation--lg":"_purpur-footer__navigation--lg_yqb4h_142","purpur-footer__navigation--sm":"_purpur-footer__navigation--sm_yqb4h_156","purpur-footer__custom-link-navigation":"_purpur-footer__custom-link-navigation_yqb4h_180","purpur-footer__payments":"_purpur-footer__payments_yqb4h_202","purpur-footer__payments-image":"_purpur-footer__payments-image_yqb4h_219","purpur-footer__contacts":"_purpur-footer__contacts_yqb4h_223","purpur-footer__contacts-copyright":"_purpur-footer__contacts-copyright_yqb4h_238","purpur-footer__contacts-address":"_purpur-footer__contacts-address_yqb4h_243","purpur-footer__theme-select":"_purpur-footer__theme-select_yqb4h_247","purpur-footer__additional":"_purpur-footer__additional_yqb4h_263","purpur-footer__additional-links":"_purpur-footer__additional-links_yqb4h_280","purpur-footer__custom-content":"_purpur-footer__custom-content_yqb4h_292"},p=g.c.bind(C),j=({links:c,customLink:t})=>e.jsx("ul",{children:c.map(({href:s,text:o,..._},l)=>e.jsx("li",{children:t?e.jsx(t,{..._,href:s,className:p(`${r}__custom-link-navigation`),children:o}):e.jsx(y.Link,{..._,variant:"navigation",negative:!0,href:s,disableVisited:!0,children:o})},l))}),S=({navigationLinks:c,sectionProps:t,customLink:s})=>e.jsxs(e.Fragment,{children:[e.jsx("section",{...t,className:p(`${r}__navigation`,`${r}__navigation--lg`,t?.className),children:c.map((o,_)=>e.jsxs("div",{className:p(`${r}__navigation-section`),children:[e.jsx("h3",{className:p(`${r}__navigation-section-heading`),children:o.heading}),e.jsx(j,{links:o.links,customLink:s})]},_))}),e.jsx("section",{...t,className:p(`${r}__navigation`,`${r}__navigation--sm`,t?.className),children:e.jsx(x.Accordion,{negative:!0,children:c.map((o,_)=>e.jsx(x.Accordion.Item,{title:o.heading,titleTag:"h2",className:p(`${r}__navigation-section`),children:e.jsx(j,{links:o.links,customLink:s})},_))})})]}),T=g.c.bind(C),v=({icon:c,href:t,...s})=>e.jsx("a",{...s,href:t,className:T(`${r}__social-link`),rel:"noreferrer",target:"_blank",children:e.jsx(F.b,{svg:c})}),E=()=>e.jsxs("svg",{width:"81",height:"32",viewBox:"0 0 81 32",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-hidden":"true",children:[e.jsxs("g",{clipPath:"url(#clip0_5309_7721)",children:[e.jsx("path",{d:"M81.28 16.8043V25.2064H78.5458V23.8293C77.6183 25.04 76.1438 25.4912 74.9076 25.4912C72.3401 25.4912 70.8186 23.8773 70.8186 21.8592C70.8186 19.5573 73.4107 17.6821 76.5723 17.6821C77.1909 17.6821 77.8566 17.7301 78.4507 17.92V17.1371C78.4507 15.9499 77.7615 15.3333 76.3586 15.3333C75.0989 15.3333 73.9812 15.9744 73.2921 16.8053L71.2235 15.2864C72.3882 13.9339 74.3862 12.9845 76.4067 12.9845C79.5683 12.9824 81.28 14.3595 81.28 16.8043ZM78.4507 20.6251V20.1024C77.9752 19.936 77.4762 19.8891 76.8576 19.8891C74.7174 19.8891 73.6244 20.7435 73.6244 21.7877C73.6244 22.6421 74.3616 23.1883 75.4792 23.1883C76.9527 23.1883 78.4507 22.3104 78.4507 20.6251Z",fill:"currentColor"}),e.jsx("path",{d:"M65.8021 9.968C65.8021 9.04214 66.6109 8.28267 67.5373 8.28267C68.4412 8.28267 69.249 9.04214 69.249 9.968C69.249 10.8939 68.4401 11.6533 67.5373 11.6533C66.6109 11.6533 65.8021 10.8939 65.8021 9.968ZM66.0638 25.2064V13.3387H68.9883V25.2064H66.0638Z",fill:"currentColor"}),e.jsx("path",{d:"M64.2806 25.2533C63.8286 25.3483 63.3531 25.3717 62.9257 25.3717C60.8337 25.3717 59.9062 24.3744 59.9062 22.3573V8.59093H62.8306V21.9541C62.8306 22.9749 63.4493 23.1168 64.2806 23.0219V25.2533Z",fill:"currentColor"}),e.jsx("path",{d:"M58.0513 20.1035H49.2781C49.5869 21.8603 50.8477 23.0229 52.4643 23.0229C53.677 23.0229 54.6514 22.4768 55.2466 21.5755L57.5769 22.976C56.3877 24.5664 54.4388 25.5157 52.4653 25.5157C49.2086 25.5157 46.3793 22.9291 46.3793 19.2256C46.3793 15.5221 49.1851 12.96 52.3232 12.96C56.4347 12.9589 58.4552 16.2347 58.0513 20.1035ZM49.3732 17.8955H55.222C54.8651 16.3531 53.8672 15.3792 52.3211 15.3792C50.8712 15.3803 49.7771 16.3765 49.3732 17.8955Z",fill:"currentColor"}),e.jsx("path",{d:"M48.6359 11.2971H43.69V25.2064H40.5518V11.2971H35.5589V8.59093H48.6359V11.2971Z",fill:"currentColor"}),e.jsx("path",{d:"M16.9321 27.4656C11.5983 29.6245 8.54567 28.9365 6.85855 27.5904L6.83397 27.5712C9.44532 30.1717 12.4221 32.0011 15.0324 32.0011C19.6033 32.0011 25.8614 26.4651 28.8232 17.8805C27.1542 20.9792 23.5727 24.7861 16.9321 27.4656Z",fill:"currentColor"}),e.jsx("path",{d:"M20.9806 22.4843C25.137 20.0779 28.8809 15.9968 30.0616 13.0869C30.3971 10.6784 30.4654 10.3744 30.506 7.7248C30.5114 7.35787 30.4889 7.00587 30.4548 6.6688C30.2122 10.56 25.1743 15.4528 18.5092 18.6496C10.4689 22.5056 4.43738 23.5435 1.74589 20.6027C2.6808 22.4459 3.29411 23.3408 4.34549 24.7083C7.45048 27.4539 13.9853 26.5355 20.9806 22.4843Z",fill:"currentColor"}),e.jsx("path",{d:"M17.5721 15.8923C25.1562 12.24 30.4387 7.04427 29.5177 3.6C28.0058 0.993067 24.9457 0 21.6644 0C11.9381 0 0 6.4 0 14.5653C0 15.6149 0.231859 16.7883 0.647496 18.0181C2.86565 20.9568 9.64833 19.7077 17.5721 15.8923Z",fill:"currentColor"})]}),e.jsx("defs",{children:e.jsx("clipPath",{id:"clip0_5309_7721",children:e.jsx("rect",{width:"81",height:"32",fill:"currentColor"})})})]}),i=g.c.bind(C),N=({className:c,navigation:t,social:s,contacts:o,additional:_,custom:l,payments:u,logo:f,themeSelect:h,forceColorScheme:b,...q})=>{const $=i(c,r),{options:k}=L.useTheme(),[P,V]=w.useColorScheme(),M=b??k?.footerColorScheme;return e.jsx("footer",{"data-color-scheme":M,className:$,...q,children:e.jsx(Z.Container,{children:e.jsxs("div",{className:i(`${r}__container`),children:[e.jsx("div",{className:i(`${r}__logo`,{[`${r}__logo--telia`]:!f}),children:f??e.jsx(E,{})}),s&&e.jsx("section",{...s.sectionProps,className:i(`${r}__social`,`${r}__social--md`,s.sectionProps?.className),children:s.links.map(({icon:n,href:a,...d})=>m.createElement(v,{...d,icon:n,href:a,key:a}))}),t&&e.jsx(S,{customLink:t.customLink,navigationLinks:t.links,sectionProps:t.sectionProps}),u&&e.jsxs("section",{...u.sectionProps,className:i(`${r}__payments`,u.sectionProps?.className),children:[u.content,u.images?.map(({alt:n,src:a})=>e.jsx("img",{className:i(`${r}__payments-image`),src:a,alt:n},a))]}),h&&e.jsx("section",{className:i(`${r}__theme-select`),children:e.jsx(H.Select,{value:P,label:h.label,options:h.options,negative:!0,onChange:n=>{V(n.target.value)}})}),o&&e.jsxs("section",{...o.sectionProps,className:i(`${r}__contacts`,o.sectionProps?.className),children:[o.copyright&&e.jsx("div",{className:i(`${r}__contacts-copyright`),children:o.copyright}),o.address&&e.jsx("address",{...o.address.addressProps,className:i(`${r}__contacts-address`,o.address.addressProps?.className),children:o.address.content})]}),(l||_)&&e.jsxs("div",{className:i(`${r}__additional`),children:[l&&e.jsx("section",{...l.sectionProps,className:i(`${r}__custom-content`,l.sectionProps?.className),children:l.content}),_&&e.jsx("section",{..._.sectionProps,className:i(`${r}__additional-links`,_.sectionProps?.className),children:_?.links?.map(({href:n,text:a,...d})=>m.createElement(y.Link,{...d,variant:"standalone",negative:!0,href:n,key:n,disableVisited:!0},a))})]}),s&&e.jsx("section",{...s.sectionProps,className:i(`${r}__social`,`${r}__social--sm`,s.sectionProps?.className),children:s.links.map(({icon:n,href:a,...d})=>m.createElement(v,{...d,icon:n,href:a,key:a}))})]})})})};N.displayName="Footer";exports.Footer=N;
2
+ //# sourceMappingURL=footer-DrjAwjuL.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"footer-Btsh40pg.js","sources":["../../../components/footer/src/constants.ts","../../../components/footer/src/footer-navigation.tsx","../../../components/footer/src/footer-social-link.tsx","../../../components/footer/src/telia-logo.tsx","../../../components/footer/src/footer.tsx"],"sourcesContent":["export const rootClassName = \"purpur-footer\";\n","import React, { type AnchorHTMLAttributes, type ForwardRefExoticComponent } from \"react\";\nimport { Accordion } from \"@purpur/accordion\";\nimport type { BaseProps } from \"@purpur/common-types\";\nimport { Link } from \"@purpur/link\";\nimport c from \"classnames/bind\";\n\nimport { rootClassName } from \"./constants\";\nimport styles from \"./footer.module.scss\";\n\nconst cx = c.bind(styles);\n\nexport type FooterNavigationItemLink = Omit<BaseProps<\"a\">, \"href\"> & {\n text: string;\n href: string;\n};\n\nexport type FooterNavigationItem = {\n heading: string;\n links: FooterNavigationItemLink[];\n};\n\nexport type CustomLinkType =\n | ForwardRefExoticComponent<AnchorHTMLAttributes<HTMLAnchorElement>>\n | \"a\";\n\ntype NavigationLinksProps = {\n links: FooterNavigationItemLink[];\n customLink?: CustomLinkType;\n};\n\nconst NavigationLinks = ({ links, customLink: CustomLink }: NavigationLinksProps) => (\n <ul>\n {links.map(({ href, text, ...linkProps }, j) => (\n <li key={j}>\n {CustomLink ? (\n <CustomLink\n {...linkProps}\n href={href}\n className={cx(`${rootClassName}__custom-link-navigation`)}\n >\n {text}\n </CustomLink>\n ) : (\n <Link {...linkProps} variant=\"navigation\" negative href={href} disableVisited={true}>\n {text}\n </Link>\n )}\n </li>\n ))}\n </ul>\n);\n\ntype FooterNavigationProps = {\n customLink?: CustomLinkType;\n sectionProps?: Omit<BaseProps<\"section\">, \"children\">;\n navigationLinks: FooterNavigationItem[];\n};\n\nexport const FooterNavigation = ({\n navigationLinks,\n sectionProps,\n customLink,\n}: FooterNavigationProps) => (\n <>\n <section\n {...sectionProps}\n className={cx(\n `${rootClassName}__navigation`,\n `${rootClassName}__navigation--lg`,\n sectionProps?.className\n )}\n >\n {navigationLinks.map((section, i) => (\n <div key={i} className={cx(`${rootClassName}__navigation-section`)}>\n <h3 className={cx(`${rootClassName}__navigation-section-heading`)}>{section.heading}</h3>\n <NavigationLinks links={section.links} customLink={customLink} />\n </div>\n ))}\n </section>\n <section\n {...sectionProps}\n className={cx(\n `${rootClassName}__navigation`,\n `${rootClassName}__navigation--sm`,\n sectionProps?.className\n )}\n >\n <Accordion negative>\n {navigationLinks.map((section, i) => (\n <Accordion.Item\n key={i}\n title={section.heading}\n titleTag=\"h2\"\n className={cx(`${rootClassName}__navigation-section`)}\n >\n <NavigationLinks links={section.links} customLink={customLink} />\n </Accordion.Item>\n ))}\n </Accordion>\n </section>\n </>\n);\n","import React from \"react\";\nimport type { BaseProps } from \"@purpur/common-types\";\nimport { Icon, type IconProps } from \"@purpur/icon\";\nimport c from \"classnames/bind\";\n\nimport { rootClassName } from \"./constants\";\nimport styles from \"./footer.module.scss\";\n\nexport type FooterSocialLinkProps = Omit<BaseProps<\"a\">, \"aria-label\" | \"href\" | \"children\"> & {\n \"aria-label\": string;\n icon: IconProps[\"svg\"];\n href: string;\n};\n\nconst cx = c.bind(styles);\n\nexport const FooterSocialLink = ({ icon, href, ...props }: FooterSocialLinkProps) => (\n <a\n {...props}\n href={href}\n className={cx(`${rootClassName}__social-link`)}\n rel=\"noreferrer\"\n target=\"_blank\"\n >\n <Icon svg={icon} />\n </a>\n);\n","import React from \"react\";\n\nexport const TeliaLogo = () => (\n <svg\n width=\"81\"\n height=\"32\"\n viewBox=\"0 0 81 32\"\n xmlns=\"http://www.w3.org/2000/svg\"\n role=\"img\"\n aria-hidden=\"true\"\n >\n <g clipPath=\"url(#clip0_5309_7721)\">\n <path\n d=\"M81.28 16.8043V25.2064H78.5458V23.8293C77.6183 25.04 76.1438 25.4912 74.9076 25.4912C72.3401 25.4912 70.8186 23.8773 70.8186 21.8592C70.8186 19.5573 73.4107 17.6821 76.5723 17.6821C77.1909 17.6821 77.8566 17.7301 78.4507 17.92V17.1371C78.4507 15.9499 77.7615 15.3333 76.3586 15.3333C75.0989 15.3333 73.9812 15.9744 73.2921 16.8053L71.2235 15.2864C72.3882 13.9339 74.3862 12.9845 76.4067 12.9845C79.5683 12.9824 81.28 14.3595 81.28 16.8043ZM78.4507 20.6251V20.1024C77.9752 19.936 77.4762 19.8891 76.8576 19.8891C74.7174 19.8891 73.6244 20.7435 73.6244 21.7877C73.6244 22.6421 74.3616 23.1883 75.4792 23.1883C76.9527 23.1883 78.4507 22.3104 78.4507 20.6251Z\"\n fill=\"currentColor\"\n />\n <path\n d=\"M65.8021 9.968C65.8021 9.04214 66.6109 8.28267 67.5373 8.28267C68.4412 8.28267 69.249 9.04214 69.249 9.968C69.249 10.8939 68.4401 11.6533 67.5373 11.6533C66.6109 11.6533 65.8021 10.8939 65.8021 9.968ZM66.0638 25.2064V13.3387H68.9883V25.2064H66.0638Z\"\n fill=\"currentColor\"\n />\n <path\n d=\"M64.2806 25.2533C63.8286 25.3483 63.3531 25.3717 62.9257 25.3717C60.8337 25.3717 59.9062 24.3744 59.9062 22.3573V8.59093H62.8306V21.9541C62.8306 22.9749 63.4493 23.1168 64.2806 23.0219V25.2533Z\"\n fill=\"currentColor\"\n />\n <path\n d=\"M58.0513 20.1035H49.2781C49.5869 21.8603 50.8477 23.0229 52.4643 23.0229C53.677 23.0229 54.6514 22.4768 55.2466 21.5755L57.5769 22.976C56.3877 24.5664 54.4388 25.5157 52.4653 25.5157C49.2086 25.5157 46.3793 22.9291 46.3793 19.2256C46.3793 15.5221 49.1851 12.96 52.3232 12.96C56.4347 12.9589 58.4552 16.2347 58.0513 20.1035ZM49.3732 17.8955H55.222C54.8651 16.3531 53.8672 15.3792 52.3211 15.3792C50.8712 15.3803 49.7771 16.3765 49.3732 17.8955Z\"\n fill=\"currentColor\"\n />\n <path\n d=\"M48.6359 11.2971H43.69V25.2064H40.5518V11.2971H35.5589V8.59093H48.6359V11.2971Z\"\n fill=\"currentColor\"\n />\n <path\n d=\"M16.9321 27.4656C11.5983 29.6245 8.54567 28.9365 6.85855 27.5904L6.83397 27.5712C9.44532 30.1717 12.4221 32.0011 15.0324 32.0011C19.6033 32.0011 25.8614 26.4651 28.8232 17.8805C27.1542 20.9792 23.5727 24.7861 16.9321 27.4656Z\"\n fill=\"currentColor\"\n />\n <path\n d=\"M20.9806 22.4843C25.137 20.0779 28.8809 15.9968 30.0616 13.0869C30.3971 10.6784 30.4654 10.3744 30.506 7.7248C30.5114 7.35787 30.4889 7.00587 30.4548 6.6688C30.2122 10.56 25.1743 15.4528 18.5092 18.6496C10.4689 22.5056 4.43738 23.5435 1.74589 20.6027C2.6808 22.4459 3.29411 23.3408 4.34549 24.7083C7.45048 27.4539 13.9853 26.5355 20.9806 22.4843Z\"\n fill=\"currentColor\"\n />\n <path\n d=\"M17.5721 15.8923C25.1562 12.24 30.4387 7.04427 29.5177 3.6C28.0058 0.993067 24.9457 0 21.6644 0C11.9381 0 0 6.4 0 14.5653C0 15.6149 0.231859 16.7883 0.647496 18.0181C2.86565 20.9568 9.64833 19.7077 17.5721 15.8923Z\"\n fill=\"currentColor\"\n />\n </g>\n <defs>\n <clipPath id=\"clip0_5309_7721\">\n <rect width=\"81\" height=\"32\" fill=\"currentColor\" />\n </clipPath>\n </defs>\n </svg>\n);\n","import React, { type ReactElement, type ReactNode } from \"react\";\nimport type { BaseProps } from \"@purpur/common-types\";\nimport { Container } from \"@purpur/container\";\nimport { Link, type LinkProps } from \"@purpur/link\";\nimport { Select } from \"@purpur/select\";\nimport { type ColorOptions, type ColorScheme, useColorScheme, useTheme } from \"@purpur/theme\";\nimport c from \"classnames/bind\";\n\nimport { rootClassName } from \"./constants\";\nimport styles from \"./footer.module.scss\";\nimport {\n type CustomLinkType,\n FooterNavigation,\n type FooterNavigationItem,\n type FooterNavigationItemLink,\n} from \"./footer-navigation\";\nimport { FooterSocialLink, type FooterSocialLinkProps } from \"./footer-social-link\";\nimport { TeliaLogo } from \"./telia-logo\";\n\nconst cx = c.bind(styles);\n\ntype AdditionalLink = FooterNavigationItemLink &\n Omit<LinkProps, \"href\" | \"variant\" | \"negative\" | \"children\" | \"disableVisited\">;\n\ntype SectionProps = Omit<BaseProps<\"section\">, \"children\">;\n\nexport type FooterProps = BaseProps<\"footer\"> & {\n /**\n * Navigation section of the footer.\n */\n navigation?: {\n customLink?: CustomLinkType;\n links: FooterNavigationItem[];\n sectionProps?: SectionProps;\n };\n /**\n * Social links section of the footer.\n */\n social?: {\n links: FooterSocialLinkProps[];\n sectionProps?: SectionProps;\n };\n /**\n * Contacts section of the footer.\n */\n contacts?: {\n copyright?: string;\n address?: {\n content: ReactElement;\n addressProps?: Omit<BaseProps<\"address\">, \"children\">;\n };\n sectionProps?: SectionProps;\n };\n /**\n * Additional links section of the footer.\n */\n additional?: {\n links: AdditionalLink[];\n sectionProps?: SectionProps;\n };\n /**\n * Custom content section of the footer.\n */\n custom?: {\n content: ReactElement;\n sectionProps?: SectionProps;\n };\n /**\n * Payment images section of the footer.\n */\n payments?: {\n /**\n * @deprecated use content instead\n */\n images?: { src: string; alt: string }[];\n content?: ReactElement | ReactElement[];\n sectionProps?: SectionProps;\n };\n /**\n * Custom logo that replaces the default Telia logo.\n */\n logo?: ReactNode;\n themeSelect?: {\n label: string;\n options: { value: ColorOptions; label: string }[];\n };\n forceColorScheme?: ColorScheme;\n};\n\nexport const Footer = ({\n className,\n navigation,\n social,\n contacts,\n additional,\n custom,\n payments,\n logo,\n themeSelect,\n forceColorScheme,\n ...props\n}: FooterProps) => {\n const classes = cx(className, rootClassName);\n\n const { options } = useTheme();\n const [colorScheme, setColorScheme] = useColorScheme();\n\n const resolvedColorScheme = forceColorScheme ?? options?.footerColorScheme;\n\n return (\n <footer data-color-scheme={resolvedColorScheme} className={classes} {...props}>\n <Container>\n <div className={cx(`${rootClassName}__container`)}>\n <div\n className={cx(`${rootClassName}__logo`, {\n [`${rootClassName}__logo--telia`]: !logo,\n })}\n >\n {logo ?? <TeliaLogo />}\n </div>\n {social && (\n <section\n {...social.sectionProps}\n className={cx(\n `${rootClassName}__social`,\n `${rootClassName}__social--md`,\n social.sectionProps?.className\n )}\n >\n {social.links.map(({ icon, href, ...socialLinkProps }) => (\n <FooterSocialLink {...socialLinkProps} icon={icon} href={href} key={href} />\n ))}\n </section>\n )}\n {navigation && (\n <FooterNavigation\n customLink={navigation.customLink}\n navigationLinks={navigation.links}\n sectionProps={navigation.sectionProps}\n />\n )}\n {payments && (\n <section\n {...payments.sectionProps}\n className={cx(`${rootClassName}__payments`, payments.sectionProps?.className)}\n >\n {payments.content}\n {payments.images?.map(({ alt, src }) => (\n <img\n className={cx(`${rootClassName}__payments-image`)}\n src={src}\n alt={alt}\n key={src}\n />\n ))}\n </section>\n )}\n {themeSelect && (\n <section className={cx(`${rootClassName}__theme-select`)}>\n <Select\n value={colorScheme}\n label={themeSelect.label}\n options={themeSelect.options}\n negative\n onChange={(event) => {\n setColorScheme(event.target.value as ColorOptions);\n }}\n />\n </section>\n )}\n {contacts && (\n <section\n {...contacts.sectionProps}\n className={cx(`${rootClassName}__contacts`, contacts.sectionProps?.className)}\n >\n {contacts.copyright && (\n <div className={cx(`${rootClassName}__contacts-copyright`)}>\n {contacts.copyright}\n </div>\n )}\n {contacts.address && (\n <address\n {...contacts.address.addressProps}\n className={cx(\n `${rootClassName}__contacts-address`,\n contacts.address.addressProps?.className\n )}\n >\n {contacts.address.content}\n </address>\n )}\n </section>\n )}\n {(custom || additional) && (\n <div className={cx(`${rootClassName}__additional`)}>\n {custom && (\n <section\n {...custom.sectionProps}\n className={cx(`${rootClassName}__custom-content`, custom.sectionProps?.className)}\n >\n {custom.content}\n </section>\n )}\n {additional && (\n <section\n {...additional.sectionProps}\n className={cx(\n `${rootClassName}__additional-links`,\n additional.sectionProps?.className\n )}\n >\n {additional?.links?.map(({ href, text, ...additionalLinkProps }) => (\n <Link\n {...additionalLinkProps}\n variant=\"standalone\"\n negative\n href={href}\n key={href}\n disableVisited={true}\n >\n {text}\n </Link>\n ))}\n </section>\n )}\n </div>\n )}\n {social && (\n <section\n {...social.sectionProps}\n className={cx(\n `${rootClassName}__social`,\n `${rootClassName}__social--sm`,\n social.sectionProps?.className\n )}\n >\n {social.links.map(({ icon, href, ...socialLinkProps }) => (\n <FooterSocialLink {...socialLinkProps} icon={icon} href={href} key={href} />\n ))}\n </section>\n )}\n </div>\n </Container>\n </footer>\n );\n};\n\nFooter.displayName = \"Footer\";\n"],"names":["rootClassName","cx","c","styles","NavigationLinks","links","CustomLink","href","text","linkProps","j","jsx","Link","FooterNavigation","navigationLinks","sectionProps","customLink","jsxs","Fragment","section","i","Accordion","FooterSocialLink","icon","props","Icon","TeliaLogo","Footer","className","navigation","social","contacts","additional","custom","payments","logo","themeSelect","forceColorScheme","classes","options","useTheme","colorScheme","setColorScheme","useColorScheme","resolvedColorScheme","Container","socialLinkProps","createElement","alt","src","Select","event","additionalLinkProps"],"mappings":"oYAAaA,EAAgB,inDCSvBC,EAAKC,EAAAA,EAAE,KAAKC,CAAM,EAqBlBC,EAAkB,CAAC,CAAE,MAAAC,EAAO,WAAYC,WAC3C,KAAA,CACE,SAAAD,EAAM,IAAI,CAAC,CAAE,KAAAE,EAAM,KAAAC,EAAM,GAAGC,GAAaC,IACxCC,EAAAA,IAAC,KAAA,CACE,SAAAL,EACCK,EAAAA,IAACL,EAAA,CACE,GAAGG,EACJ,KAAAF,EACA,UAAWN,EAAG,GAAGD,CAAa,0BAA0B,EAEvD,SAAAQ,CAAA,CACH,EAEAG,EAAAA,IAACC,EAAAA,KAAA,CAAM,GAAGH,EAAW,QAAQ,aAAa,SAAQ,GAAC,KAAAF,EAAY,eAAgB,GAC5E,SAAAC,CAAA,CACH,GAZKE,CAcT,CACD,EACH,EASWG,EAAmB,CAAC,CAC/B,gBAAAC,EACA,aAAAC,EACA,WAAAC,CACF,IACEC,EAAAA,KAAAC,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AP,EAAM,KAAAhB,EAAM,GAAGuC,CAAA,IAClCC,EAAAA,cAACzB,GAAkB,GAAGwB,EAAiB,KAAAvB,EAAY,KAAAhB,EAAY,IAAKA,EAAM,CAC3E,CAAA,CAAA,CACH,CAAA,CAEJ,EACF,EACF,CAEJ,EAEAoB,EAAO,YAAc"}
1
+ {"version":3,"file":"footer-DrjAwjuL.js","sources":["../../../components/footer/src/constants.ts","../../../components/footer/src/footer-navigation.tsx","../../../components/footer/src/footer-social-link.tsx","../../../components/footer/src/telia-logo.tsx","../../../components/footer/src/footer.tsx"],"sourcesContent":["export const rootClassName = \"purpur-footer\";\n","import React, { type AnchorHTMLAttributes, type ForwardRefExoticComponent } from \"react\";\nimport { Accordion } from \"@purpur/accordion\";\nimport type { BaseProps } from \"@purpur/common-types\";\nimport { Link } from \"@purpur/link\";\nimport c from \"classnames/bind\";\n\nimport { rootClassName } from \"./constants\";\nimport styles from \"./footer.module.scss\";\n\nconst cx = c.bind(styles);\n\nexport type FooterNavigationItemLink = Omit<BaseProps<\"a\">, \"href\"> & {\n text: string;\n href: string;\n};\n\nexport type FooterNavigationItem = {\n heading: string;\n links: FooterNavigationItemLink[];\n};\n\nexport type CustomLinkType =\n | ForwardRefExoticComponent<AnchorHTMLAttributes<HTMLAnchorElement>>\n | \"a\";\n\ntype NavigationLinksProps = {\n links: FooterNavigationItemLink[];\n customLink?: CustomLinkType;\n};\n\nconst NavigationLinks = ({ links, customLink: CustomLink }: NavigationLinksProps) => (\n <ul>\n {links.map(({ href, text, ...linkProps }, j) => (\n <li key={j}>\n {CustomLink ? (\n <CustomLink\n {...linkProps}\n href={href}\n className={cx(`${rootClassName}__custom-link-navigation`)}\n >\n {text}\n </CustomLink>\n ) : (\n <Link {...linkProps} variant=\"navigation\" negative href={href} disableVisited={true}>\n {text}\n </Link>\n )}\n </li>\n ))}\n </ul>\n);\n\ntype FooterNavigationProps = {\n customLink?: CustomLinkType;\n sectionProps?: Omit<BaseProps<\"section\">, \"children\">;\n navigationLinks: FooterNavigationItem[];\n};\n\nexport const FooterNavigation = ({\n navigationLinks,\n sectionProps,\n customLink,\n}: FooterNavigationProps) => (\n <>\n <section\n {...sectionProps}\n className={cx(\n `${rootClassName}__navigation`,\n `${rootClassName}__navigation--lg`,\n sectionProps?.className\n )}\n >\n {navigationLinks.map((section, i) => (\n <div key={i} className={cx(`${rootClassName}__navigation-section`)}>\n <h3 className={cx(`${rootClassName}__navigation-section-heading`)}>{section.heading}</h3>\n <NavigationLinks links={section.links} customLink={customLink} />\n </div>\n ))}\n </section>\n <section\n {...sectionProps}\n className={cx(\n `${rootClassName}__navigation`,\n `${rootClassName}__navigation--sm`,\n sectionProps?.className\n )}\n >\n <Accordion negative>\n {navigationLinks.map((section, i) => (\n <Accordion.Item\n key={i}\n title={section.heading}\n titleTag=\"h2\"\n className={cx(`${rootClassName}__navigation-section`)}\n >\n <NavigationLinks links={section.links} customLink={customLink} />\n </Accordion.Item>\n ))}\n </Accordion>\n </section>\n </>\n);\n","import React from \"react\";\nimport type { BaseProps } from \"@purpur/common-types\";\nimport { Icon, type IconProps } from \"@purpur/icon\";\nimport c from \"classnames/bind\";\n\nimport { rootClassName } from \"./constants\";\nimport styles from \"./footer.module.scss\";\n\nexport type FooterSocialLinkProps = Omit<BaseProps<\"a\">, \"aria-label\" | \"href\" | \"children\"> & {\n \"aria-label\": string;\n icon: IconProps[\"svg\"];\n href: string;\n};\n\nconst cx = c.bind(styles);\n\nexport const FooterSocialLink = ({ icon, href, ...props }: FooterSocialLinkProps) => (\n <a\n {...props}\n href={href}\n className={cx(`${rootClassName}__social-link`)}\n rel=\"noreferrer\"\n target=\"_blank\"\n >\n <Icon svg={icon} />\n </a>\n);\n","import React from \"react\";\n\nexport const TeliaLogo = () => (\n <svg\n width=\"81\"\n height=\"32\"\n viewBox=\"0 0 81 32\"\n xmlns=\"http://www.w3.org/2000/svg\"\n role=\"img\"\n aria-hidden=\"true\"\n >\n <g clipPath=\"url(#clip0_5309_7721)\">\n <path\n d=\"M81.28 16.8043V25.2064H78.5458V23.8293C77.6183 25.04 76.1438 25.4912 74.9076 25.4912C72.3401 25.4912 70.8186 23.8773 70.8186 21.8592C70.8186 19.5573 73.4107 17.6821 76.5723 17.6821C77.1909 17.6821 77.8566 17.7301 78.4507 17.92V17.1371C78.4507 15.9499 77.7615 15.3333 76.3586 15.3333C75.0989 15.3333 73.9812 15.9744 73.2921 16.8053L71.2235 15.2864C72.3882 13.9339 74.3862 12.9845 76.4067 12.9845C79.5683 12.9824 81.28 14.3595 81.28 16.8043ZM78.4507 20.6251V20.1024C77.9752 19.936 77.4762 19.8891 76.8576 19.8891C74.7174 19.8891 73.6244 20.7435 73.6244 21.7877C73.6244 22.6421 74.3616 23.1883 75.4792 23.1883C76.9527 23.1883 78.4507 22.3104 78.4507 20.6251Z\"\n fill=\"currentColor\"\n />\n <path\n d=\"M65.8021 9.968C65.8021 9.04214 66.6109 8.28267 67.5373 8.28267C68.4412 8.28267 69.249 9.04214 69.249 9.968C69.249 10.8939 68.4401 11.6533 67.5373 11.6533C66.6109 11.6533 65.8021 10.8939 65.8021 9.968ZM66.0638 25.2064V13.3387H68.9883V25.2064H66.0638Z\"\n fill=\"currentColor\"\n />\n <path\n d=\"M64.2806 25.2533C63.8286 25.3483 63.3531 25.3717 62.9257 25.3717C60.8337 25.3717 59.9062 24.3744 59.9062 22.3573V8.59093H62.8306V21.9541C62.8306 22.9749 63.4493 23.1168 64.2806 23.0219V25.2533Z\"\n fill=\"currentColor\"\n />\n <path\n d=\"M58.0513 20.1035H49.2781C49.5869 21.8603 50.8477 23.0229 52.4643 23.0229C53.677 23.0229 54.6514 22.4768 55.2466 21.5755L57.5769 22.976C56.3877 24.5664 54.4388 25.5157 52.4653 25.5157C49.2086 25.5157 46.3793 22.9291 46.3793 19.2256C46.3793 15.5221 49.1851 12.96 52.3232 12.96C56.4347 12.9589 58.4552 16.2347 58.0513 20.1035ZM49.3732 17.8955H55.222C54.8651 16.3531 53.8672 15.3792 52.3211 15.3792C50.8712 15.3803 49.7771 16.3765 49.3732 17.8955Z\"\n fill=\"currentColor\"\n />\n <path\n d=\"M48.6359 11.2971H43.69V25.2064H40.5518V11.2971H35.5589V8.59093H48.6359V11.2971Z\"\n fill=\"currentColor\"\n />\n <path\n d=\"M16.9321 27.4656C11.5983 29.6245 8.54567 28.9365 6.85855 27.5904L6.83397 27.5712C9.44532 30.1717 12.4221 32.0011 15.0324 32.0011C19.6033 32.0011 25.8614 26.4651 28.8232 17.8805C27.1542 20.9792 23.5727 24.7861 16.9321 27.4656Z\"\n fill=\"currentColor\"\n />\n <path\n d=\"M20.9806 22.4843C25.137 20.0779 28.8809 15.9968 30.0616 13.0869C30.3971 10.6784 30.4654 10.3744 30.506 7.7248C30.5114 7.35787 30.4889 7.00587 30.4548 6.6688C30.2122 10.56 25.1743 15.4528 18.5092 18.6496C10.4689 22.5056 4.43738 23.5435 1.74589 20.6027C2.6808 22.4459 3.29411 23.3408 4.34549 24.7083C7.45048 27.4539 13.9853 26.5355 20.9806 22.4843Z\"\n fill=\"currentColor\"\n />\n <path\n d=\"M17.5721 15.8923C25.1562 12.24 30.4387 7.04427 29.5177 3.6C28.0058 0.993067 24.9457 0 21.6644 0C11.9381 0 0 6.4 0 14.5653C0 15.6149 0.231859 16.7883 0.647496 18.0181C2.86565 20.9568 9.64833 19.7077 17.5721 15.8923Z\"\n fill=\"currentColor\"\n />\n </g>\n <defs>\n <clipPath id=\"clip0_5309_7721\">\n <rect width=\"81\" height=\"32\" fill=\"currentColor\" />\n </clipPath>\n </defs>\n </svg>\n);\n","import React, { type ReactElement, type ReactNode } from \"react\";\nimport type { BaseProps } from \"@purpur/common-types\";\nimport { Container } from \"@purpur/container\";\nimport { Link, type LinkProps } from \"@purpur/link\";\nimport { Select } from \"@purpur/select\";\nimport { type ColorOptions, type ColorScheme, useColorScheme, useTheme } from \"@purpur/theme\";\nimport c from \"classnames/bind\";\n\nimport { rootClassName } from \"./constants\";\nimport styles from \"./footer.module.scss\";\nimport {\n type CustomLinkType,\n FooterNavigation,\n type FooterNavigationItem,\n type FooterNavigationItemLink,\n} from \"./footer-navigation\";\nimport { FooterSocialLink, type FooterSocialLinkProps } from \"./footer-social-link\";\nimport { TeliaLogo } from \"./telia-logo\";\n\nconst cx = c.bind(styles);\n\ntype AdditionalLink = FooterNavigationItemLink &\n Omit<LinkProps, \"href\" | \"variant\" | \"negative\" | \"children\" | \"disableVisited\">;\n\ntype SectionProps = Omit<BaseProps<\"section\">, \"children\">;\n\nexport type FooterProps = BaseProps<\"footer\"> & {\n /**\n * Navigation section of the footer.\n */\n navigation?: {\n customLink?: CustomLinkType;\n links: FooterNavigationItem[];\n sectionProps?: SectionProps;\n };\n /**\n * Social links section of the footer.\n */\n social?: {\n links: FooterSocialLinkProps[];\n sectionProps?: SectionProps;\n };\n /**\n * Contacts section of the footer.\n */\n contacts?: {\n copyright?: string;\n address?: {\n content: ReactElement;\n addressProps?: Omit<BaseProps<\"address\">, \"children\">;\n };\n sectionProps?: SectionProps;\n };\n /**\n * Additional links section of the footer.\n */\n additional?: {\n links: AdditionalLink[];\n sectionProps?: SectionProps;\n };\n /**\n * Custom content section of the footer.\n */\n custom?: {\n content: ReactElement;\n sectionProps?: SectionProps;\n };\n /**\n * Payment images section of the footer.\n */\n payments?: {\n /**\n * @deprecated use content instead\n */\n images?: { src: string; alt: string }[];\n content?: ReactElement | ReactElement[];\n sectionProps?: SectionProps;\n };\n /**\n * Custom logo that replaces the default Telia logo.\n */\n logo?: ReactNode;\n themeSelect?: {\n label: string;\n options: { value: ColorOptions; label: string }[];\n };\n forceColorScheme?: ColorScheme;\n};\n\nexport const Footer = ({\n className,\n navigation,\n social,\n contacts,\n additional,\n custom,\n payments,\n logo,\n themeSelect,\n forceColorScheme,\n ...props\n}: FooterProps) => {\n const classes = cx(className, rootClassName);\n\n const { options } = useTheme();\n const [colorScheme, setColorScheme] = useColorScheme();\n\n const resolvedColorScheme = forceColorScheme ?? options?.footerColorScheme;\n\n return (\n <footer data-color-scheme={resolvedColorScheme} className={classes} {...props}>\n <Container>\n <div className={cx(`${rootClassName}__container`)}>\n <div\n className={cx(`${rootClassName}__logo`, {\n [`${rootClassName}__logo--telia`]: !logo,\n })}\n >\n {logo ?? <TeliaLogo />}\n </div>\n {social && (\n <section\n {...social.sectionProps}\n className={cx(\n `${rootClassName}__social`,\n `${rootClassName}__social--md`,\n social.sectionProps?.className\n )}\n >\n {social.links.map(({ icon, href, ...socialLinkProps }) => (\n <FooterSocialLink {...socialLinkProps} icon={icon} href={href} key={href} />\n ))}\n </section>\n )}\n {navigation && (\n <FooterNavigation\n customLink={navigation.customLink}\n navigationLinks={navigation.links}\n sectionProps={navigation.sectionProps}\n />\n )}\n {payments && (\n <section\n {...payments.sectionProps}\n className={cx(`${rootClassName}__payments`, payments.sectionProps?.className)}\n >\n {payments.content}\n {payments.images?.map(({ alt, src }) => (\n <img\n className={cx(`${rootClassName}__payments-image`)}\n src={src}\n alt={alt}\n key={src}\n />\n ))}\n </section>\n )}\n {themeSelect && (\n <section className={cx(`${rootClassName}__theme-select`)}>\n <Select\n value={colorScheme}\n label={themeSelect.label}\n options={themeSelect.options}\n negative\n onChange={(event) => {\n setColorScheme(event.target.value as ColorOptions);\n }}\n />\n </section>\n )}\n {contacts && (\n <section\n {...contacts.sectionProps}\n className={cx(`${rootClassName}__contacts`, contacts.sectionProps?.className)}\n >\n {contacts.copyright && (\n <div className={cx(`${rootClassName}__contacts-copyright`)}>\n {contacts.copyright}\n </div>\n )}\n {contacts.address && (\n <address\n {...contacts.address.addressProps}\n className={cx(\n `${rootClassName}__contacts-address`,\n contacts.address.addressProps?.className\n )}\n >\n {contacts.address.content}\n </address>\n )}\n </section>\n )}\n {(custom || additional) && (\n <div className={cx(`${rootClassName}__additional`)}>\n {custom && (\n <section\n {...custom.sectionProps}\n className={cx(`${rootClassName}__custom-content`, custom.sectionProps?.className)}\n >\n {custom.content}\n </section>\n )}\n {additional && (\n <section\n {...additional.sectionProps}\n className={cx(\n `${rootClassName}__additional-links`,\n additional.sectionProps?.className\n )}\n >\n {additional?.links?.map(({ href, text, ...additionalLinkProps }) => (\n <Link\n {...additionalLinkProps}\n variant=\"standalone\"\n negative\n href={href}\n key={href}\n disableVisited={true}\n >\n {text}\n </Link>\n ))}\n </section>\n )}\n </div>\n )}\n {social && (\n <section\n {...social.sectionProps}\n className={cx(\n `${rootClassName}__social`,\n `${rootClassName}__social--sm`,\n social.sectionProps?.className\n )}\n >\n {social.links.map(({ icon, href, ...socialLinkProps }) => (\n <FooterSocialLink {...socialLinkProps} icon={icon} href={href} key={href} />\n ))}\n </section>\n )}\n </div>\n </Container>\n </footer>\n );\n};\n\nFooter.displayName = \"Footer\";\n"],"names":["rootClassName","cx","c","styles","NavigationLinks","links","CustomLink","href","text","linkProps","j","jsx","Link","FooterNavigation","navigationLinks","sectionProps","customLink","jsxs","Fragment","section","i","Accordion","FooterSocialLink","icon","props","Icon","TeliaLogo","Footer","className","navigation","social","contacts","additional","custom","payments","logo","themeSelect","forceColorScheme","classes","options","useTheme","colorScheme","setColorScheme","useColorScheme","resolvedColorScheme","Container","socialLinkProps","createElement","alt","src","Select","event","additionalLinkProps"],"mappings":"uWAAaA,EAAgB,inDCSvBC,EAAKC,EAAAA,EAAE,KAAKC,CAAM,EAqBlBC,EAAkB,CAAC,CAAE,MAAAC,EAAO,WAAYC,WAC3C,KAAA,CACE,SAAAD,EAAM,IAAI,CAAC,CAAE,KAAAE,EAAM,KAAAC,EAAM,GAAGC,GAAaC,IACxCC,EAAAA,IAAC,KAAA,CACE,SAAAL,EACCK,EAAAA,IAACL,EAAA,CACE,GAAGG,EACJ,KAAAF,EACA,UAAWN,EAAG,GAAGD,CAAa,0BAA0B,EAEvD,SAAAQ,CAAA,CACH,EAEAG,EAAAA,IAACC,EAAAA,KAAA,CAAM,GAAGH,EAAW,QAAQ,aAAa,SAAQ,GAAC,KAAAF,EAAY,eAAgB,GAC5E,SAAAC,CAAA,CACH,GAZKE,CAcT,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