@vygruppen/spor-react 6.2.3 → 7.0.1

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 (46) hide show
  1. package/.turbo/turbo-build.log +10 -10
  2. package/CHANGELOG.md +22 -0
  3. package/dist/{CountryCodeSelect-QZYP3GSD.mjs → CountryCodeSelect-EKQUBVBJ.mjs} +1 -1
  4. package/dist/{chunk-YFZOYRGT.mjs → chunk-CSCLMQYA.mjs} +183 -654
  5. package/dist/index.d.mts +502 -496
  6. package/dist/index.d.ts +502 -496
  7. package/dist/index.js +212 -685
  8. package/dist/index.mjs +1 -1
  9. package/package.json +1 -1
  10. package/src/button/Button.tsx +4 -4
  11. package/src/input/NumericStepper.tsx +0 -4
  12. package/src/stepper/Stepper.tsx +1 -1
  13. package/src/stepper/StepperStep.tsx +1 -1
  14. package/src/theme/components/accordion.ts +4 -15
  15. package/src/theme/components/breadcrumb.ts +2 -14
  16. package/src/theme/components/button.ts +8 -58
  17. package/src/theme/components/card-select.ts +11 -26
  18. package/src/theme/components/card.ts +2 -18
  19. package/src/theme/components/checkbox.ts +4 -12
  20. package/src/theme/components/choice-chip.ts +2 -11
  21. package/src/theme/components/close-button.ts +2 -14
  22. package/src/theme/components/code.ts +1 -1
  23. package/src/theme/components/datepicker.ts +14 -65
  24. package/src/theme/components/drawer.ts +7 -7
  25. package/src/theme/components/fab.ts +12 -65
  26. package/src/theme/components/form-label.ts +1 -1
  27. package/src/theme/components/form.ts +1 -1
  28. package/src/theme/components/info-select.ts +5 -35
  29. package/src/theme/components/info-tag.ts +1 -1
  30. package/src/theme/components/input.ts +9 -31
  31. package/src/theme/components/link.ts +5 -29
  32. package/src/theme/components/listbox.ts +3 -5
  33. package/src/theme/components/media-controller-button.ts +5 -46
  34. package/src/theme/components/modal.ts +7 -7
  35. package/src/theme/components/popover.ts +7 -15
  36. package/src/theme/components/progress-indicator.ts +2 -6
  37. package/src/theme/components/radio.ts +5 -11
  38. package/src/theme/components/select.ts +2 -2
  39. package/src/theme/components/stepper.ts +11 -11
  40. package/src/theme/components/switch.ts +5 -73
  41. package/src/theme/components/table.ts +18 -18
  42. package/src/theme/components/tabs.ts +11 -14
  43. package/src/theme/components/travel-tag.ts +2 -15
  44. package/src/theme/utils/focus-util.ts +10 -0
  45. package/tsconfig.json +2 -2
  46. package/src/theme/utils/focus-utils.ts +0 -16
package/dist/index.js CHANGED
@@ -710,19 +710,19 @@ var init_Button = __esm({
710
710
  /* @__PURE__ */ React69__namespace.default.createElement(
711
711
  react.Flex,
712
712
  {
713
- justifyContent: "space-between",
713
+ gap: 1,
714
714
  flex: 1,
715
715
  alignItems: "center",
716
- gap: 1,
716
+ justifyContent: rightIcon ? "space-between" : "center",
717
717
  visibility: isLoading ? "hidden" : "visible",
718
718
  "aria-hidden": isLoading
719
719
  },
720
- /* @__PURE__ */ React69__namespace.default.createElement(react.Flex, { justifyContent: "center", alignItems: "center", gap: 1 }, leftIcon, /* @__PURE__ */ React69__namespace.default.createElement(
720
+ /* @__PURE__ */ React69__namespace.default.createElement(react.Flex, { gap: 1 }, leftIcon, /* @__PURE__ */ React69__namespace.default.createElement(
721
721
  react.Box,
722
722
  {
723
723
  visibility: isLoading ? "hidden" : "visible",
724
724
  whiteSpace: "normal",
725
- textAlign: "left"
725
+ textAlign: "center"
726
726
  },
727
727
  children
728
728
  )),
@@ -3790,9 +3790,6 @@ var init_NumericStepper = __esm({
3790
3790
  size: "xs",
3791
3791
  minWidth: "24px",
3792
3792
  minHeight: "24px",
3793
- _focusVisible: {
3794
- boxShadow: "inset 0 0 0 2px var(--spor-colors-pine), inset 0 0 0 3px white"
3795
- },
3796
3793
  ...props
3797
3794
  }
3798
3795
  );
@@ -5185,7 +5182,7 @@ var init_Stepper = __esm({
5185
5182
  },
5186
5183
  step
5187
5184
  ))
5188
- )), title && /* @__PURE__ */ React69__namespace.default.createElement(react.Box, { as: "h3", __css: style.title }, title)), /* @__PURE__ */ React69__namespace.default.createElement(react.Flex, { justifyContent: "center", display: ["none", "flex"] }, steps.map((step, index) => /* @__PURE__ */ React69__namespace.default.createElement(exports.StepperStep, { key: index, stepNumber: index + 1, variant }, step))))
5185
+ )), title && /* @__PURE__ */ React69__namespace.default.createElement(react.Box, { as: "h3", __css: style.title }, title)), /* @__PURE__ */ React69__namespace.default.createElement(react.Flex, { justifyContent: "center", display: ["none", null, "flex"] }, steps.map((step, index) => /* @__PURE__ */ React69__namespace.default.createElement(exports.StepperStep, { key: index, stepNumber: index + 1, variant }, step))))
5189
5186
  ));
5190
5187
  };
5191
5188
  texts23 = createTexts({
@@ -11149,15 +11146,16 @@ var init_foundations = __esm({
11149
11146
  init_styles();
11150
11147
  }
11151
11148
  });
11152
-
11153
- // src/theme/utils/focus-utils.ts
11154
- var focusVisible;
11155
- var init_focus_utils = __esm({
11156
- "src/theme/utils/focus-utils.ts"() {
11157
- focusVisible = ({ notFocus, focus }) => ({
11158
- _focus: focus,
11159
- _focusVisible: focus,
11160
- "&[data-focus]:not([data-focus-visible])": notFocus
11149
+ var focusVisibleStyles;
11150
+ var init_focus_util = __esm({
11151
+ "src/theme/utils/focus-util.ts"() {
11152
+ focusVisibleStyles = (props) => ({
11153
+ _focusVisible: {
11154
+ outlineWidth: "2px",
11155
+ outlineColor: themeTools.mode("greenHaze", "azure")(props),
11156
+ outlineStyle: "solid",
11157
+ outlineOffset: "1px"
11158
+ }
11161
11159
  });
11162
11160
  }
11163
11161
  });
@@ -11168,7 +11166,7 @@ var init_accordion2 = __esm({
11168
11166
  init_dist3();
11169
11167
  init_foundations();
11170
11168
  init_box_shadow_utils();
11171
- init_focus_utils();
11169
+ init_focus_util();
11172
11170
  helpers = createMultiStyleConfigHelpers(accordionAnatomy.keys);
11173
11171
  config3 = helpers.defineMultiStyleConfig({
11174
11172
  baseStyle: (props) => ({
@@ -11181,25 +11179,14 @@ var init_accordion2 = __esm({
11181
11179
  transitionDuration: "normal",
11182
11180
  border: "none",
11183
11181
  borderRadius: "sm",
11182
+ borderColor: "osloGrey",
11184
11183
  display: "flex",
11185
11184
  justifyContent: "space-between",
11186
11185
  color: themeTools.mode("darkGrey", "white")(props),
11187
11186
  textAlign: "left",
11188
11187
  fontFamily: "body",
11189
11188
  fontWeight: "bold",
11190
- ...focusVisible({
11191
- notFocus: {
11192
- boxShadow: getBoxShadowString({
11193
- borderColor: "osloGrey"
11194
- })
11195
- },
11196
- focus: {
11197
- boxShadow: getBoxShadowString({
11198
- borderColor: themeTools.mode("greenHaze", "azure")(props),
11199
- borderWidth: 2
11200
- })
11201
- }
11202
- }),
11189
+ ...focusVisibleStyles(props),
11203
11190
  _disabled: {
11204
11191
  opacity: 0.4,
11205
11192
  cursor: "not-allowed"
@@ -11489,14 +11476,12 @@ var init_breadcrumb2 = __esm({
11489
11476
  "src/theme/components/breadcrumb.ts"() {
11490
11477
  init_dist4();
11491
11478
  init_dist3();
11492
- init_box_shadow_utils();
11493
- init_focus_utils();
11479
+ init_focus_util();
11494
11480
  ({ defineMultiStyleConfig: defineMultiStyleConfig27, definePartsStyle: definePartsStyle27 } = createMultiStyleConfigHelpers(breadcrumbAnatomy.keys));
11495
11481
  baseStyleLink2 = defineStyle((props) => ({
11496
11482
  transitionProperty: "common",
11497
11483
  transitionDuration: "fast",
11498
11484
  transitionTimingFunction: "ease-out",
11499
- outline: "none",
11500
11485
  color: "inherit",
11501
11486
  textDecoration: "none",
11502
11487
  textStyle: "xs",
@@ -11507,17 +11492,7 @@ var init_breadcrumb2 = __esm({
11507
11492
  _hover: {
11508
11493
  backgroundColor: themeTools.mode("seaMist", "pine")(props)
11509
11494
  },
11510
- ...focusVisible({
11511
- focus: {
11512
- boxShadow: getBoxShadowString({
11513
- borderColor: themeTools.mode("greenHaze", "azure")(props),
11514
- borderWidth: 2
11515
- })
11516
- },
11517
- notFocus: {
11518
- boxShadow: "none"
11519
- }
11520
- }),
11495
+ ...focusVisibleStyles(props),
11521
11496
  _active: {
11522
11497
  backgroundColor: themeTools.mode("mint", "whiteAlpha.200")(props)
11523
11498
  }
@@ -11540,12 +11515,14 @@ var init_button2 = __esm({
11540
11515
  "src/theme/components/button.ts"() {
11541
11516
  init_foundations();
11542
11517
  init_box_shadow_utils();
11518
+ init_focus_util();
11543
11519
  config6 = react.defineStyleConfig({
11544
- baseStyle: {
11520
+ baseStyle: (props) => ({
11545
11521
  border: 0,
11546
11522
  borderRadius: "xl",
11547
11523
  display: "flex",
11548
11524
  alignItems: "center",
11525
+ justifyContent: "center",
11549
11526
  transitionProperty: "common",
11550
11527
  transitionDuration: "normal",
11551
11528
  textWrap: "wrap",
@@ -11555,33 +11532,25 @@ var init_button2 = __esm({
11555
11532
  boxShadow: 0,
11556
11533
  outline: 0
11557
11534
  },
11535
+ ...focusVisibleStyles(props),
11558
11536
  _disabled: {
11559
11537
  cursor: "not-allowed",
11560
11538
  boxShadow: "none",
11561
- backgroundColor: "silver",
11562
- color: "dimGrey"
11539
+ backgroundColor: themeTools.mode("blackAlpha.100", "whiteAlpha.100")(props),
11540
+ color: themeTools.mode("blackAlpha.400", "whiteAlpha.400")(props)
11563
11541
  },
11564
11542
  _hover: {
11565
11543
  _disabled: {
11566
- background: "silver"
11544
+ background: themeTools.mode("blackAlpha.100", "whiteAlpha.100")(props)
11567
11545
  }
11568
11546
  }
11569
- },
11547
+ }),
11570
11548
  variants: {
11571
11549
  primary: (props) => ({
11572
11550
  // FIXME: Update to use a global defined background color for darkMode whenever it is available.
11573
11551
  // hardcoded background color as alpha-"hack" below is not feasible for dark mode with solid background color
11574
11552
  backgroundColor: themeTools.mode("pine", "coralGreen")(props),
11575
11553
  color: themeTools.mode("white", "darkTeal")(props),
11576
- _focusVisible: {
11577
- boxShadow: `inset 0 0 0 2px ${themeTools.mode(
11578
- colors.greenHaze,
11579
- colors.azure
11580
- )(props)}, inset 0 0 0 4px ${themeTools.mode(
11581
- colors.white,
11582
- colors.darkGrey
11583
- )(props)}`
11584
- },
11585
11554
  _hover: {
11586
11555
  backgroundColor: themeTools.mode("darkTeal", "blueGreen")(props)
11587
11556
  },
@@ -11597,24 +11566,6 @@ var init_button2 = __esm({
11597
11566
  _hover: {
11598
11567
  backgroundColor: themeTools.mode("coralGreen", "greenHaze")(props)
11599
11568
  },
11600
- _focusVisible: {
11601
- boxShadow: `inset 0 0 0 2px ${themeTools.mode(
11602
- colors.greenHaze,
11603
- colors.primaryGreen
11604
- )(props)}, inset 0 0 0 4px ${themeTools.mode(
11605
- colors.white,
11606
- colors.darkTeal
11607
- )(props)}`,
11608
- _hover: {
11609
- boxShadow: `inset 0 0 0 2px ${themeTools.mode(
11610
- colors.greenHaze,
11611
- colors.azure
11612
- )(props)}, inset 0 0 0 4px ${themeTools.mode(
11613
- colors.white,
11614
- colors.blackAlpha[500]
11615
- )(props)}`
11616
- }
11617
- },
11618
11569
  _active: {
11619
11570
  backgroundColor: themeTools.mode("mint", "darkTeal")(props),
11620
11571
  boxShadow: `inset 0 0 0 2px ${themeTools.mode(
@@ -11642,12 +11593,6 @@ var init_button2 = __esm({
11642
11593
  colors.blackAlpha[400],
11643
11594
  colors.whiteAlpha[400]
11644
11595
  )(props)}`,
11645
- _focusVisible: {
11646
- boxShadow: getBoxShadowString({
11647
- borderWidth: 2,
11648
- borderColor: "azure"
11649
- })
11650
- },
11651
11596
  _hover: {
11652
11597
  boxShadow: `inset 0 0 0 2px currentColor`
11653
11598
  },
@@ -11662,12 +11607,6 @@ var init_button2 = __esm({
11662
11607
  ghost: (props) => ({
11663
11608
  backgroundColor: "transparent",
11664
11609
  color: themeTools.mode("darkGrey", "white")(props),
11665
- _focusVisible: {
11666
- boxShadow: getBoxShadowString({
11667
- borderColor: themeTools.mode("greenHaze", "azure")(props),
11668
- borderWidth: 2
11669
- })
11670
- },
11671
11610
  _hover: {
11672
11611
  backgroundColor: themeTools.mode("seaMist", "whiteAlpha.200")(props),
11673
11612
  _disabled: {
@@ -11694,20 +11633,6 @@ var init_button2 = __esm({
11694
11633
  baseShadow: "md",
11695
11634
  borderWidth: 2
11696
11635
  })
11697
- },
11698
- _focusVisible: {
11699
- boxShadow: getBoxShadowString({
11700
- borderColor: themeTools.mode("greenHaze", "azure")(props),
11701
- borderWidth: 2,
11702
- baseShadow: "sm"
11703
- }),
11704
- _hover: {
11705
- boxShadow: getBoxShadowString({
11706
- borderColor: themeTools.mode("greenHaze", "azure")(props),
11707
- borderWidth: 2,
11708
- baseShadow: "md"
11709
- })
11710
- }
11711
11636
  }
11712
11637
  })
11713
11638
  },
@@ -11754,16 +11679,14 @@ function getColorSchemeClickableProps({ colorScheme, size: size2 }) {
11754
11679
  return {
11755
11680
  boxShadow: getBoxShadowString({
11756
11681
  baseShadow,
11757
- borderColor: "silver",
11758
- isInset: false
11682
+ borderColor: "silver"
11759
11683
  })
11760
11684
  };
11761
11685
  case "grey":
11762
11686
  return {
11763
11687
  boxShadow: getBoxShadowString({
11764
11688
  baseShadow,
11765
- borderColor: "steel",
11766
- isInset: false
11689
+ borderColor: "steel"
11767
11690
  })
11768
11691
  };
11769
11692
  default:
@@ -11771,8 +11694,7 @@ function getColorSchemeClickableProps({ colorScheme, size: size2 }) {
11771
11694
  backgroundColor: ((_a6 = colors[colorScheme]) == null ? void 0 : _a6[100]) ?? "platinum",
11772
11695
  boxShadow: getBoxShadowString({
11773
11696
  baseShadow,
11774
- borderColor: ((_b5 = colors[colorScheme]) == null ? void 0 : _b5[200]) ?? "silver",
11775
- isInset: false
11697
+ borderColor: ((_b5 = colors[colorScheme]) == null ? void 0 : _b5[200]) ?? "silver"
11776
11698
  })
11777
11699
  };
11778
11700
  }
@@ -11782,6 +11704,7 @@ var init_card2 = __esm({
11782
11704
  "src/theme/components/card.ts"() {
11783
11705
  init_foundations();
11784
11706
  init_box_shadow_utils();
11707
+ init_focus_util();
11785
11708
  config7 = react.defineStyleConfig({
11786
11709
  baseStyle: (props) => ({
11787
11710
  appearance: "none",
@@ -11796,16 +11719,8 @@ var init_card2 = __esm({
11796
11719
  "button&, a&, label&, &.is-clickable": {
11797
11720
  ...getColorSchemeClickableProps(props),
11798
11721
  _hover: getColorSchemeHoverProps(props),
11722
+ ...focusVisibleStyles(props),
11799
11723
  _active: getColorSchemeActiveProps(props),
11800
- _focusVisible: {
11801
- boxShadow: getBoxShadowString({
11802
- borderColor: themeTools.mode("greenHaze", "azure")(props),
11803
- borderWidth: 2,
11804
- isInset: false
11805
- }),
11806
- outline: "none",
11807
- _active: getColorSchemeActiveProps(props)
11808
- },
11809
11724
  _disabled: {
11810
11725
  backgroundColor: "platinum",
11811
11726
  boxShadow: getBoxShadowString({
@@ -11863,16 +11778,14 @@ var init_card2 = __esm({
11863
11778
  backgroundColor: themeTools.mode("white", "whiteAlpha.200")(props),
11864
11779
  boxShadow: getBoxShadowString({
11865
11780
  baseShadow,
11866
- borderColor: colors.steel,
11867
- isInset: false
11781
+ borderColor: colors.steel
11868
11782
  })
11869
11783
  };
11870
11784
  case "grey":
11871
11785
  return {
11872
11786
  boxShadow: getBoxShadowString({
11873
11787
  baseShadow,
11874
- borderColor: colors.osloGrey,
11875
- isInset: false
11788
+ borderColor: colors.osloGrey
11876
11789
  })
11877
11790
  };
11878
11791
  default:
@@ -11880,8 +11793,7 @@ var init_card2 = __esm({
11880
11793
  backgroundColor: ((_a6 = colors[colorScheme]) == null ? void 0 : _a6[200]) ?? "silver",
11881
11794
  boxShadow: getBoxShadowString({
11882
11795
  baseShadow,
11883
- borderColor: ((_b5 = colors[colorScheme]) == null ? void 0 : _b5[400]) ?? colors.silver,
11884
- isInset: false
11796
+ borderColor: ((_b5 = colors[colorScheme]) == null ? void 0 : _b5[400]) ?? colors.silver
11885
11797
  })
11886
11798
  };
11887
11799
  }
@@ -11896,8 +11808,7 @@ var init_card2 = __esm({
11896
11808
  backgroundColor: themeTools.mode("mint", "teal")(props),
11897
11809
  boxShadow: getBoxShadowString({
11898
11810
  baseShadow,
11899
- borderColor: colors.silver,
11900
- isInset: false
11811
+ borderColor: colors.silver
11901
11812
  })
11902
11813
  };
11903
11814
  case "grey":
@@ -11905,8 +11816,7 @@ var init_card2 = __esm({
11905
11816
  backgroundColor: "white",
11906
11817
  boxShadow: getBoxShadowString({
11907
11818
  baseShadow,
11908
- borderColor: colors.steel,
11909
- isInset: false
11819
+ borderColor: colors.steel
11910
11820
  })
11911
11821
  };
11912
11822
  default:
@@ -11914,8 +11824,7 @@ var init_card2 = __esm({
11914
11824
  backgroundColor: ((_a6 = colors[colorScheme]) == null ? void 0 : _a6[50]) ?? "lightGrey",
11915
11825
  boxShadow: getBoxShadowString({
11916
11826
  baseShadow,
11917
- borderColor: ((_b5 = colors[colorScheme]) == null ? void 0 : _b5[100]) ?? colors.silver,
11918
- isInset: false
11827
+ borderColor: ((_b5 = colors[colorScheme]) == null ? void 0 : _b5[100]) ?? colors.silver
11919
11828
  })
11920
11829
  };
11921
11830
  }
@@ -12016,9 +11925,9 @@ var init_card_select = __esm({
12016
11925
  "src/theme/components/card-select.ts"() {
12017
11926
  init_dist4();
12018
11927
  init_dist3();
12019
- init_box_shadow_utils();
12020
- init_focus_utils();
12021
11928
  init_background_utils();
11929
+ init_box_shadow_utils();
11930
+ init_focus_util();
12022
11931
  parts2 = anatomy("card-select").parts("trigger", "card");
12023
11932
  helpers3 = createMultiStyleConfigHelpers(parts2.keys);
12024
11933
  config8 = helpers3.defineMultiStyleConfig({
@@ -12027,16 +11936,7 @@ var init_card_select = __esm({
12027
11936
  appearance: "none",
12028
11937
  display: "flex",
12029
11938
  alignItems: "center",
12030
- ...focusVisible({
12031
- notFocus: {},
12032
- focus: {
12033
- boxShadow: getBoxShadowString({
12034
- borderColor: "greenHaze",
12035
- borderWidth: 3
12036
- }),
12037
- outline: "none"
12038
- }
12039
- })
11939
+ ...focusVisibleStyles(props)
12040
11940
  },
12041
11941
  card: {
12042
11942
  borderRadius: "sm",
@@ -12052,20 +11952,10 @@ var init_card_select = __esm({
12052
11952
  boxShadow: getBoxShadowString({
12053
11953
  borderColor: themeTools.mode("blackAlpha.400", "whiteAlpha.400")(props)
12054
11954
  }),
12055
- ...focusVisible({
12056
- notFocus: { boxShadow: "none" },
12057
- focus: {
12058
- boxShadow: getBoxShadowString({
12059
- borderColor: "greenHaze",
12060
- borderWidth: 3
12061
- }),
12062
- outline: "none"
12063
- }
12064
- }),
12065
11955
  _hover: {
12066
11956
  boxShadow: getBoxShadowString({
12067
11957
  borderColor: themeTools.mode("darkGrey", "white")(props),
12068
- borderWidth: 3
11958
+ borderWidth: 2
12069
11959
  })
12070
11960
  },
12071
11961
  _active: {
@@ -12107,13 +11997,17 @@ var init_card_select = __esm({
12107
11997
  floating: (props) => ({
12108
11998
  trigger: {
12109
11999
  ...floatingBackground("default", props),
12110
- boxShadow: "sm",
12000
+ boxShadow: getBoxShadowString({
12001
+ borderColor: themeTools.mode("silver", "whiteAlpha.400")(props),
12002
+ borderWidth: 1,
12003
+ baseShadow: "sm"
12004
+ }),
12111
12005
  transition: "all .1s ease-out",
12112
12006
  _hover: {
12113
12007
  ...floatingBackground("hover", props),
12114
12008
  boxShadow: getBoxShadowString({
12115
12009
  borderColor: themeTools.mode("silver", "whiteAlpha.400")(props),
12116
- borderWidth: 1,
12010
+ borderWidth: 2,
12117
12011
  baseShadow: "sm"
12118
12012
  })
12119
12013
  },
@@ -12178,9 +12072,10 @@ var helpers4, config9, checkbox_default;
12178
12072
  var init_checkbox = __esm({
12179
12073
  "src/theme/components/checkbox.ts"() {
12180
12074
  init_dist4();
12075
+ init_focus_util();
12181
12076
  helpers4 = react.createMultiStyleConfigHelpers(checkboxAnatomy.keys);
12182
12077
  config9 = helpers4.defineMultiStyleConfig({
12183
- baseStyle: {
12078
+ baseStyle: (props) => ({
12184
12079
  container: {
12185
12080
  _hover: {
12186
12081
  "input:enabled:not([aria-invalid]) + .chakra-checkbox__control": {
@@ -12222,10 +12117,7 @@ var init_checkbox = __esm({
12222
12117
  backgroundColor: "primaryGreen",
12223
12118
  borderColor: "primaryGreen",
12224
12119
  color: "white",
12225
- _focus: {
12226
- backgroundColor: "primaryGreen",
12227
- borderColor: "azure"
12228
- },
12120
+ ...focusVisibleStyles(props),
12229
12121
  _disabled: {
12230
12122
  backgroundColor: "lightGrey",
12231
12123
  borderColor: "steel",
@@ -12240,10 +12132,6 @@ var init_checkbox = __esm({
12240
12132
  backgroundColor: "lightGrey",
12241
12133
  borderColor: "steel"
12242
12134
  },
12243
- _focus: {
12244
- backgroundColor: "white",
12245
- borderColor: "azure"
12246
- },
12247
12135
  _invalid: {
12248
12136
  backgroundColor: "white",
12249
12137
  borderColor: "brightRed"
@@ -12253,7 +12141,7 @@ var init_checkbox = __esm({
12253
12141
  userSelect: "none",
12254
12142
  _disabled: { opacity: 0.4 }
12255
12143
  }
12256
- }
12144
+ })
12257
12145
  });
12258
12146
  checkbox_default = config9;
12259
12147
  }
@@ -12262,7 +12150,7 @@ var parts3, helpers5, config10, choice_chip_default;
12262
12150
  var init_choice_chip = __esm({
12263
12151
  "src/theme/components/choice-chip.ts"() {
12264
12152
  init_box_shadow_utils();
12265
- init_foundations();
12153
+ init_focus_util();
12266
12154
  parts3 = themeTools.anatomy("choice-chip").parts("container", "icon", "label");
12267
12155
  helpers5 = react.createMultiStyleConfigHelpers(parts3.keys);
12268
12156
  config10 = helpers5.defineMultiStyleConfig({
@@ -12280,15 +12168,7 @@ var init_choice_chip = __esm({
12280
12168
  background: "pine",
12281
12169
  boxShadow: getBoxShadowString({ borderColor: "celadon" })
12282
12170
  },
12283
- "input:focus-visible + &": {
12284
- boxShadow: `inset 0 0 0 2px ${themeTools.mode(
12285
- colors.greenHaze,
12286
- colors.azure
12287
- )(props)}, inset 0 0 0 4px ${themeTools.mode(
12288
- colors.white,
12289
- colors.darkGrey
12290
- )(props)}`
12291
- },
12171
+ "input:focus-visible + &": focusVisibleStyles(props)._focusVisible,
12292
12172
  "@media (hover:hover)": {
12293
12173
  _hover: {
12294
12174
  color: themeTools.mode("darkTeal", "white")(props),
@@ -12351,8 +12231,7 @@ var init_choice_chip = __esm({
12351
12231
  var $size6, config11, close_button_default;
12352
12232
  var init_close_button = __esm({
12353
12233
  "src/theme/components/close-button.ts"() {
12354
- init_box_shadow_utils();
12355
- init_focus_utils();
12234
+ init_focus_util();
12356
12235
  $size6 = themeTools.cssVar("close-button-size");
12357
12236
  config11 = react.defineStyleConfig({
12358
12237
  baseStyle: (props) => ({
@@ -12364,18 +12243,7 @@ var init_close_button = __esm({
12364
12243
  backgroundColor: "transparent",
12365
12244
  color: themeTools.mode("darkGrey", "white")(props),
12366
12245
  fontWeight: "normal",
12367
- ...focusVisible({
12368
- focus: {
12369
- outline: "none",
12370
- boxShadow: getBoxShadowString({
12371
- borderColor: themeTools.mode("greenHaze", "azure")(props)
12372
- }),
12373
- outlineOffset: "2px"
12374
- },
12375
- notFocus: {
12376
- boxShadow: "none"
12377
- }
12378
- }),
12246
+ ...focusVisibleStyles(props),
12379
12247
  _hover: {
12380
12248
  backgroundColor: themeTools.mode("seaMist", "whiteAlpha.100")(props),
12381
12249
  _disabled: {
@@ -12417,7 +12285,7 @@ var init_code = __esm({
12417
12285
  fontFamily: "monospace",
12418
12286
  fontSize: ["mobile.xs", "desktop.xs"],
12419
12287
  borderRadius: "xs",
12420
- px: 1
12288
+ paddingX: 1
12421
12289
  },
12422
12290
  variants: variants13,
12423
12291
  defaultProps: defaultProps2
@@ -12430,7 +12298,7 @@ var init_datepicker2 = __esm({
12430
12298
  "src/theme/components/datepicker.ts"() {
12431
12299
  init_foundations();
12432
12300
  init_box_shadow_utils();
12433
- init_focus_utils();
12301
+ init_focus_util();
12434
12302
  parts4 = themeTools.anatomy("datepicker").parts(
12435
12303
  "wrapper",
12436
12304
  "calendarTriggerButton",
@@ -12464,6 +12332,9 @@ var init_datepicker2 = __esm({
12464
12332
  },
12465
12333
  _disabled: {
12466
12334
  pointerEvents: "none"
12335
+ },
12336
+ _focusWithin: {
12337
+ ...focusVisibleStyles(props)._focusVisible
12467
12338
  }
12468
12339
  },
12469
12340
  inputLabel: {
@@ -12480,7 +12351,10 @@ var init_datepicker2 = __esm({
12480
12351
  },
12481
12352
  calendarTriggerButton: {
12482
12353
  backgroundColor: themeTools.mode("white", "night")(props),
12483
- boxShadow: "none",
12354
+ boxShadow: getBoxShadowString({
12355
+ borderColor: themeTools.mode("darkGrey", "white")(props),
12356
+ borderWidth: 1
12357
+ }),
12484
12358
  width: 8,
12485
12359
  display: "flex",
12486
12360
  alignItems: "center",
@@ -12500,21 +12374,7 @@ var init_datepicker2 = __esm({
12500
12374
  _active: {
12501
12375
  backgroundColor: themeTools.mode("mint", "whiteAlpha.200")(props)
12502
12376
  },
12503
- ...focusVisible({
12504
- focus: {
12505
- outline: "none",
12506
- boxShadow: getBoxShadowString({
12507
- borderColor: themeTools.mode("greenHaze", "azure")(props),
12508
- borderWidth: 2
12509
- })
12510
- },
12511
- notFocus: {
12512
- boxShadow: getBoxShadowString({
12513
- borderColor: themeTools.mode("darkGrey", "white")(props),
12514
- borderWidth: 1
12515
- })
12516
- }
12517
- }),
12377
+ ...focusVisibleStyles(props),
12518
12378
  _invalid: {
12519
12379
  boxShadow: getBoxShadowString({
12520
12380
  borderColor: "brightRed",
@@ -12554,27 +12414,11 @@ var init_datepicker2 = __esm({
12554
12414
  _hover: {
12555
12415
  backgroundColor: themeTools.mode("seaMist", "pine")(props)
12556
12416
  },
12557
- ...focusVisible({
12558
- focus: {
12559
- outline: "none",
12560
- boxShadow: getBoxShadowString({
12561
- borderWidth: 2,
12562
- borderColor: themeTools.mode("greenHaze", "azure")(props)
12563
- })
12564
- },
12565
- notFocus: {
12566
- boxShadow: "none",
12567
- _hover: {
12568
- boxShadow: getBoxShadowString({
12569
- borderWidth: 2,
12570
- borderColor: "osloGrey"
12571
- })
12572
- },
12573
- _active: {
12574
- color: themeTools.mode("darkGrey", "white")(props)
12575
- }
12576
- }
12577
- }),
12417
+ _focusVisible: {
12418
+ outlineColor: "greenHaze",
12419
+ outlineWidth: 2,
12420
+ outlineStyle: "solid"
12421
+ },
12578
12422
  _active: {
12579
12423
  backgroundColor: "seaMist",
12580
12424
  boxShadow: "none",
@@ -12598,14 +12442,7 @@ var init_datepicker2 = __esm({
12598
12442
  boxShadow: getBoxShadowString({
12599
12443
  borderWidth: 1,
12600
12444
  borderColor: themeTools.mode("blackAlpha.400", "whiteAlpha.400")(props)
12601
- }),
12602
- _focus: {
12603
- outline: "none",
12604
- boxShadow: getBoxShadowString({
12605
- borderWidth: 2,
12606
- borderColor: themeTools.mode("greenHaze", "azure")(props)
12607
- })
12608
- }
12445
+ })
12609
12446
  },
12610
12447
  "&[data-unavailable]": {
12611
12448
  pointerEvents: "none",
@@ -12625,12 +12462,6 @@ var init_datepicker2 = __esm({
12625
12462
  borderWidth: 2
12626
12463
  })
12627
12464
  },
12628
- _focusWithin: {
12629
- boxShadow: getBoxShadowString({
12630
- borderColor: themeTools.mode("greenHaze", "azure")(props),
12631
- borderWidth: 2
12632
- })
12633
- },
12634
12465
  _invalid: {
12635
12466
  boxShadow: getBoxShadowString({
12636
12467
  borderColor: "brightRed",
@@ -12684,13 +12515,6 @@ var init_datepicker2 = __esm({
12684
12515
  baseShadow: "sm"
12685
12516
  })
12686
12517
  },
12687
- _focusWithin: {
12688
- boxShadow: getBoxShadowString({
12689
- borderColor: themeTools.mode("greenHaze", "azure")(props),
12690
- borderWidth: 2,
12691
- baseShadow: "sm"
12692
- })
12693
- },
12694
12518
  _invalid: {
12695
12519
  boxShadow: getBoxShadowString({
12696
12520
  borderColor: "brightRed",
@@ -12737,12 +12561,6 @@ var init_datepicker2 = __esm({
12737
12561
  borderWidth: 2
12738
12562
  })
12739
12563
  },
12740
- _focusWithin: {
12741
- boxShadow: getBoxShadowString({
12742
- borderColor: themeTools.mode("greenHaze", "azure")(props),
12743
- borderWidth: 2
12744
- })
12745
- },
12746
12564
  _invalid: {
12747
12565
  boxShadow: getBoxShadowString({
12748
12566
  borderColor: "brightRed",
@@ -12869,9 +12687,9 @@ var init_drawer = __esm({
12869
12687
  boxShadow: "md"
12870
12688
  },
12871
12689
  header: {
12872
- px: 3,
12873
- pt: 6,
12874
- pb: 2,
12690
+ paddingX: 3,
12691
+ paddingTop: 6,
12692
+ paddingBottom: 2,
12875
12693
  fontWeight: "bold",
12876
12694
  fontFamily: "body"
12877
12695
  },
@@ -12882,14 +12700,14 @@ var init_drawer = __esm({
12882
12700
  zIndex: "modal"
12883
12701
  },
12884
12702
  body: {
12885
- px: 3,
12886
- pb: 6,
12703
+ paddingX: 3,
12704
+ paddingBottom: 6,
12887
12705
  flex: 1,
12888
12706
  overflow: props.scrollBehavior === "inside" ? "auto" : void 0
12889
12707
  },
12890
12708
  footer: {
12891
- px: 3,
12892
- pb: 3
12709
+ paddingX: 3,
12710
+ paddingBottom: 3
12893
12711
  }
12894
12712
  }),
12895
12713
  sizes: {
@@ -12915,8 +12733,7 @@ var init_drawer = __esm({
12915
12733
  var parts5, helpers8, config15, fab_default, getPositionProps;
12916
12734
  var init_fab = __esm({
12917
12735
  "src/theme/components/fab.ts"() {
12918
- init_box_shadow_utils();
12919
- init_focus_utils();
12736
+ init_focus_util();
12920
12737
  parts5 = themeTools.anatomy("fab").parts("container", "icon", "text");
12921
12738
  helpers8 = react.createMultiStyleConfigHelpers(parts5.keys);
12922
12739
  config15 = helpers8.defineMultiStyleConfig({
@@ -12924,9 +12741,9 @@ var init_fab = __esm({
12924
12741
  container: {
12925
12742
  display: "flex",
12926
12743
  alignItems: "center",
12927
- py: 2,
12928
- pl: 2,
12929
- pr: props.isTextVisible ? 3 : 2,
12744
+ paddingY: 2,
12745
+ paddingLeft: 2,
12746
+ paddingRight: props.isTextVisible ? 3 : 2,
12930
12747
  cursor: "pointer",
12931
12748
  overflowX: "hidden",
12932
12749
  whiteSpace: "nowrap",
@@ -12937,28 +12754,21 @@ var init_fab = __esm({
12937
12754
  position: "fixed",
12938
12755
  ...getPositionProps(props),
12939
12756
  _disabled: {
12940
- backgroundColor: "whiteAlpha.400",
12941
- color: "white"
12757
+ backgroundColor: themeTools.mode("blackAlpha.100", "whiteAlpha.100")(props),
12758
+ color: themeTools.mode("blackAlpha.400", "whiteAlpha.400")(props)
12942
12759
  },
12943
- ...focusVisible({
12944
- focus: {
12945
- boxShadow: getBoxShadowString({
12946
- borderColor: "greenHaze",
12947
- borderWidth: 2,
12948
- baseShadow: "md"
12949
- })
12950
- },
12951
- notFocus: {
12952
- boxShadow: "md"
12953
- }
12954
- }),
12760
+ ...focusVisibleStyles(props),
12955
12761
  _hover: {
12956
- backgroundColor: "seaMist"
12762
+ backgroundColor: "seaMist",
12763
+ _disabled: {
12764
+ backgroundColor: themeTools.mode("blackAlpha.100", "whiteAlpha.100")(props),
12765
+ color: themeTools.mode("blackAlpha.400", "whiteAlpha.400")(props)
12766
+ }
12957
12767
  },
12958
12768
  zIndex: "sticky"
12959
12769
  },
12960
12770
  icon: {
12961
- mr: props.isTextVisible ? 1 : 0
12771
+ marginRight: props.isTextVisible ? 1 : 0
12962
12772
  },
12963
12773
  text: {
12964
12774
  display: "flex",
@@ -12976,16 +12786,7 @@ var init_fab = __esm({
12976
12786
  _active: { backgroundColor: "pine" },
12977
12787
  _hover: {
12978
12788
  backgroundColor: "night"
12979
- },
12980
- ...focusVisible({
12981
- focus: {
12982
- boxShadow: `${props.theme.shadows.md}, inset 0 0 0 4px ${props.theme.colors.darkTeal}, inset 0 0 0 6px ${props.theme.colors.white}`,
12983
- outline: "none"
12984
- },
12985
- notFocus: {
12986
- boxShadow: "md"
12987
- }
12988
- })
12789
+ }
12989
12790
  }
12990
12791
  }),
12991
12792
  light: {
@@ -13009,19 +12810,7 @@ var init_fab = __esm({
13009
12810
  _active: { backgroundColor: themeTools.mode("pine", "white")(props) },
13010
12811
  _hover: {
13011
12812
  backgroundColor: themeTools.mode("night", "seaMist")(props)
13012
- },
13013
- ...focusVisible({
13014
- focus: {
13015
- boxShadow: themeTools.mode(
13016
- `${props.theme.shadows.md}, inset 0 0 0 4px ${props.theme.colors.darkTeal}, inset 0 0 0 6px ${props.theme.colors.white}`,
13017
- `${props.theme.shadows.md}, inset 0 0 0 4px ${props.theme.colors.mint}, inset 0 0 0 6px ${props.theme.colors.darkTeal}`
13018
- )(props),
13019
- outline: "none"
13020
- },
13021
- notFocus: {
13022
- boxShadow: "md"
13023
- }
13024
- })
12813
+ }
13025
12814
  }
13026
12815
  }),
13027
12816
  base: (props) => ({
@@ -13039,19 +12828,7 @@ var init_fab = __esm({
13039
12828
  `inset 0 0 0 2px ${props.theme.colors.white}`
13040
12829
  )(props),
13041
12830
  color: themeTools.mode("darkGrey", "white")(props)
13042
- },
13043
- ...focusVisible({
13044
- focus: {
13045
- boxShadow: themeTools.mode(
13046
- `${props.theme.shadows.md}, inset 0 0 0 4px ${props.theme.colors.white}, inset 0 0 0 6px ${props.theme.colors.darkGrey}`,
13047
- `${props.theme.shadows.md}, inset 0 0 0 4px ${props.theme.colors.brightRed}, inset 0 0 0 6px ${props.theme.colors.white}`
13048
- )(props),
13049
- outline: "none"
13050
- },
13051
- notFocus: {
13052
- boxShadow: "md"
13053
- }
13054
- })
12831
+ }
13055
12832
  }
13056
12833
  }),
13057
12834
  accent: (props) => ({
@@ -13065,19 +12842,7 @@ var init_fab = __esm({
13065
12842
  _hover: {
13066
12843
  backgroundColor: themeTools.mode("coralGreen", "whiteAlpha.200")(props),
13067
12844
  color: themeTools.mode("darkTeal", "white")(props)
13068
- },
13069
- ...focusVisible({
13070
- focus: {
13071
- boxShadow: themeTools.mode(
13072
- `${props.theme.shadows.md}, inset 0 0 0 4px ${props.theme.colors.mint}, inset 0 0 0 6px ${props.theme.colors.azure}`,
13073
- `${props.theme.shadows.md}, inset 0 0 0 4px ${props.theme.colors.pine}, inset 0 0 0 6px ${props.theme.colors.azure}`
13074
- )(props),
13075
- outline: "none"
13076
- },
13077
- notFocus: {
13078
- boxShadow: "md"
13079
- }
13080
- })
12845
+ }
13081
12846
  }
13082
12847
  })
13083
12848
  },
@@ -13118,7 +12883,7 @@ var init_form = __esm({
13118
12883
  color: themeTools.mode("brightRed", "lightRed")(props)
13119
12884
  },
13120
12885
  helperText: {
13121
- mt: 2,
12886
+ marginTop: 2,
13122
12887
  color: themeTools.mode("dimGrey", "whiteAlpha.600")(props),
13123
12888
  lineHeight: "normal",
13124
12889
  fontSize: "sm"
@@ -13135,7 +12900,7 @@ var init_form_label = __esm({
13135
12900
  baseStyle: {
13136
12901
  fontSize: "mobile.sm",
13137
12902
  marginEnd: 3,
13138
- mb: 2,
12903
+ marginBottom: 2,
13139
12904
  transitionProperty: "common",
13140
12905
  transitionDuration: "normal",
13141
12906
  opacity: 1,
@@ -13147,25 +12912,6 @@ var init_form_label = __esm({
13147
12912
  form_label_default = config17;
13148
12913
  }
13149
12914
  });
13150
-
13151
- // src/theme/utils/sr-utils.ts
13152
- var srOnly2;
13153
- var init_sr_utils = __esm({
13154
- "src/theme/utils/sr-utils.ts"() {
13155
- srOnly2 = {
13156
- border: "0 !important",
13157
- clip: "rect(1px, 1px, 1px, 1px) !important",
13158
- clipPath: "inset(50%) !important",
13159
- height: "1px !important",
13160
- margin: "-1px !important",
13161
- overflow: "hidden !important",
13162
- padding: "0 !important",
13163
- position: "absolute !important",
13164
- width: "1px !important",
13165
- whiteSpace: "nowrap !important"
13166
- };
13167
- }
13168
- });
13169
12915
  function baseBorder(state2, props) {
13170
12916
  switch (state2) {
13171
12917
  case "hover":
@@ -13244,14 +12990,33 @@ var init_border_utils = __esm({
13244
12990
  init_box_shadow_utils();
13245
12991
  }
13246
12992
  });
12993
+
12994
+ // src/theme/utils/sr-utils.ts
12995
+ var srOnly2;
12996
+ var init_sr_utils = __esm({
12997
+ "src/theme/utils/sr-utils.ts"() {
12998
+ srOnly2 = {
12999
+ border: "0 !important",
13000
+ clip: "rect(1px, 1px, 1px, 1px) !important",
13001
+ clipPath: "inset(50%) !important",
13002
+ height: "1px !important",
13003
+ margin: "-1px !important",
13004
+ overflow: "hidden !important",
13005
+ padding: "0 !important",
13006
+ position: "absolute !important",
13007
+ width: "1px !important",
13008
+ whiteSpace: "nowrap !important"
13009
+ };
13010
+ }
13011
+ });
13247
13012
  var parts6, helpers10, config18, info_select_default;
13248
13013
  var init_info_select = __esm({
13249
13014
  "src/theme/components/info-select.ts"() {
13250
13015
  init_dist4();
13251
- init_focus_utils();
13252
- init_sr_utils();
13253
- init_border_utils();
13254
13016
  init_background_utils();
13017
+ init_border_utils();
13018
+ init_focus_util();
13019
+ init_sr_utils();
13255
13020
  parts6 = anatomy("InfoSelect").parts(
13256
13021
  "container",
13257
13022
  "label",
@@ -13280,15 +13045,7 @@ var init_info_select = __esm({
13280
13045
  _hover: {
13281
13046
  ...baseBorder("hover", props)
13282
13047
  },
13283
- ...focusVisible({
13284
- focus: {
13285
- ...baseBorder("focus", props),
13286
- outline: "none"
13287
- },
13288
- notFocus: {
13289
- ...baseBorder("default", props)
13290
- }
13291
- }),
13048
+ ...focusVisibleStyles(props),
13292
13049
  _disabled: {
13293
13050
  color: "whiteAlpha.400",
13294
13051
  ...baseBackground("disabled", props),
@@ -13296,31 +13053,19 @@ var init_info_select = __esm({
13296
13053
  _focus: { ...baseBorder("disabled", props) }
13297
13054
  },
13298
13055
  _active: {
13299
- ...baseBackground("active", props),
13300
- ...baseBorder("focus", props)
13301
- },
13302
- _expanded: {
13303
- ...baseBorder("focus", props)
13056
+ ...baseBackground("active", props)
13304
13057
  },
13305
13058
  _invalid: {
13306
13059
  ...baseBorder("invalid", props),
13307
13060
  _hover: {
13308
13061
  ...baseBorder("hover", props)
13309
- },
13310
- ...focusVisible({
13311
- focus: {
13312
- ...baseBorder("focus", props)
13313
- },
13314
- notFocus: {
13315
- ...baseBorder("invalid", props)
13316
- }
13317
- })
13062
+ }
13318
13063
  }
13319
13064
  },
13320
13065
  arrowIcon: {}
13321
13066
  }),
13322
13067
  variants: {
13323
- base: (props) => ({}),
13068
+ base: () => ({}),
13324
13069
  floating: (props) => ({
13325
13070
  button: {
13326
13071
  ...floatingBackground("default", props),
@@ -13329,15 +13074,6 @@ var init_info_select = __esm({
13329
13074
  ...floatingBorder("hover", props),
13330
13075
  ...floatingBackground("hover", props)
13331
13076
  },
13332
- ...focusVisible({
13333
- focus: {
13334
- ...floatingBorder("focus", props),
13335
- outline: "none"
13336
- },
13337
- notFocus: {
13338
- ...floatingBorder("default", props)
13339
- }
13340
- }),
13341
13077
  _active: {
13342
13078
  ...floatingBorder("active", props),
13343
13079
  ...floatingBackground("active", props)
@@ -13356,7 +13092,7 @@ var parts7, helpers11, config19, travel_tag_default, getDeviationContainerStyle,
13356
13092
  var init_travel_tag = __esm({
13357
13093
  "src/theme/components/travel-tag.ts"() {
13358
13094
  init_box_shadow_utils();
13359
- init_focus_utils();
13095
+ init_focus_util();
13360
13096
  parts7 = themeTools.anatomy("travel-tag").parts(
13361
13097
  "container",
13362
13098
  "iconContainer",
@@ -13388,20 +13124,7 @@ var init_travel_tag = __esm({
13388
13124
  baseShadow: "sm"
13389
13125
  })
13390
13126
  },
13391
- ...focusVisible({
13392
- focus: {
13393
- outline: "none",
13394
- borderColor: "transparent",
13395
- boxShadow: getBoxShadowString({
13396
- borderWidth: 2,
13397
- borderColor: "darkGrey"
13398
- })
13399
- },
13400
- notFocus: {
13401
- boxShadow: "none",
13402
- borderColor: getDeviationBorderColor(props)
13403
- }
13404
- }),
13127
+ ...focusVisibleStyles(props),
13405
13128
  _active: {
13406
13129
  opacity: 0.5,
13407
13130
  boxShadow: "none"
@@ -13687,7 +13410,7 @@ var init_input2 = __esm({
13687
13410
  "src/theme/components/input.ts"() {
13688
13411
  init_dist4();
13689
13412
  init_box_shadow_utils();
13690
- init_focus_utils();
13413
+ init_focus_util();
13691
13414
  helpers13 = react.createMultiStyleConfigHelpers(inputAnatomy.keys);
13692
13415
  config21 = helpers13.defineMultiStyleConfig({
13693
13416
  baseStyle: (props) => ({
@@ -13701,7 +13424,7 @@ var init_input2 = __esm({
13701
13424
  transitionProperty: "common",
13702
13425
  transitionDuration: "fast",
13703
13426
  position: "relative",
13704
- px: 3,
13427
+ paddingX: 3,
13705
13428
  height: "54px",
13706
13429
  fontSize: "mobile.md",
13707
13430
  boxShadow: getBoxShadowString({
@@ -13719,19 +13442,10 @@ var init_input2 = __esm({
13719
13442
  borderWidth: 2
13720
13443
  })
13721
13444
  },
13722
- ...focusVisible({
13723
- focus: {
13724
- boxShadow: getBoxShadowString({
13725
- borderColor: themeTools.mode("greenHaze", "azure")(props),
13726
- borderWidth: 2
13727
- })
13728
- },
13729
- notFocus: {
13730
- boxShadow: getBoxShadowString({
13731
- borderColor: themeTools.mode("darkGrey", "white")(props)
13732
- })
13733
- }
13734
- }),
13445
+ _focusVisible: {
13446
+ ...focusVisibleStyles(props)._focusVisible,
13447
+ outlineOffset: -2
13448
+ },
13735
13449
  _disabled: {
13736
13450
  backgroundColor: themeTools.mode("blackAlpha.100", "whiteAlpha.100")(props),
13737
13451
  boxShadow: getBoxShadowString({
@@ -13749,21 +13463,7 @@ var init_input2 = __esm({
13749
13463
  borderColor: themeTools.mode("darkGrey", "white")(props),
13750
13464
  borderWidth: 2
13751
13465
  })
13752
- },
13753
- ...focusVisible({
13754
- focus: {
13755
- boxShadow: getBoxShadowString({
13756
- borderColor: themeTools.mode("greenHaze", "azure")(props),
13757
- borderWidth: 2
13758
- })
13759
- },
13760
- notFocus: {
13761
- boxShadow: getBoxShadowString({
13762
- borderColor: "brightRed",
13763
- borderWidth: 2
13764
- })
13765
- }
13766
- })
13466
+ }
13767
13467
  },
13768
13468
  " + label": {
13769
13469
  fontSize: ["mobile.sm", "desktop.sm"],
@@ -13771,13 +13471,13 @@ var init_input2 = __esm({
13771
13471
  left: props.paddingLeft || props.pl || 3,
13772
13472
  zIndex: 2,
13773
13473
  position: "absolute",
13774
- my: 2,
13474
+ marginY: 2,
13775
13475
  transition: ".1s ease-out",
13776
13476
  transformOrigin: "top left",
13777
13477
  cursor: "text"
13778
13478
  },
13779
13479
  "&:not(:placeholder-shown)": {
13780
- pt: "16px",
13480
+ paddingTop: "16px",
13781
13481
  "& + label": {
13782
13482
  transform: "scale(0.825) translateY(-10px)"
13783
13483
  }
@@ -13924,10 +13624,9 @@ var init_line_icon = __esm({
13924
13624
  var config23, link_default;
13925
13625
  var init_link2 = __esm({
13926
13626
  "src/theme/components/link.ts"() {
13927
- init_box_shadow_utils();
13928
- init_focus_utils();
13627
+ init_focus_util();
13929
13628
  config23 = react.defineStyleConfig({
13930
- baseStyle: {
13629
+ baseStyle: (props) => ({
13931
13630
  transitionProperty: "common",
13932
13631
  transitionDuration: "fast",
13933
13632
  transitionTimingFunction: "ease-out",
@@ -13948,6 +13647,7 @@ var init_link2 = __esm({
13948
13647
  outline: "none",
13949
13648
  borderRadius: "xs"
13950
13649
  },
13650
+ ...focusVisibleStyles(props),
13951
13651
  svg: {
13952
13652
  display: "inline-block",
13953
13653
  width: "1.125em",
@@ -13955,25 +13655,10 @@ var init_link2 = __esm({
13955
13655
  position: "relative",
13956
13656
  bottom: "-0.2em"
13957
13657
  }
13958
- },
13658
+ }),
13959
13659
  variants: {
13960
13660
  primary: (props) => ({
13961
13661
  color: themeTools.mode("pine", "coralGreen")(props),
13962
- ...focusVisible({
13963
- focus: {
13964
- backgroundColor: themeTools.mode("pine", "white")(props),
13965
- color: themeTools.mode("white", "pine")(props),
13966
- boxShadow: getBoxShadowString({
13967
- borderWidth: 2,
13968
- isInset: false
13969
- })
13970
- },
13971
- notFocus: {
13972
- color: "pine",
13973
- backgroundColor: "transparent",
13974
- boxShadow: "none"
13975
- }
13976
- }),
13977
13662
  _hover: {
13978
13663
  color: themeTools.mode("darkTeal", "white")(props),
13979
13664
  backgroundColor: themeTools.mode("coralGreen", "whiteAlpha.200")(props)
@@ -13985,16 +13670,6 @@ var init_link2 = __esm({
13985
13670
  }),
13986
13671
  secondary: (props) => ({
13987
13672
  color: themeTools.mode("darkGrey", "white")(props),
13988
- ...focusVisible({
13989
- focus: {
13990
- backgroundColor: themeTools.mode("darkGrey", "white")(props),
13991
- color: themeTools.mode("white", "darkTeal")(props)
13992
- },
13993
- notFocus: {
13994
- boxShadow: "none",
13995
- backgroundColor: "transparent"
13996
- }
13997
- }),
13998
13673
  _hover: {
13999
13674
  backgroundColor: themeTools.mode("blackAlpha.100", "whiteAlpha.200")(props),
14000
13675
  color: themeTools.mode("darkGrey", "white")(props)
@@ -14044,6 +13719,7 @@ var init_listbox = __esm({
14044
13719
  init_dist4();
14045
13720
  init_foundations();
14046
13721
  init_background_utils();
13722
+ init_focus_util();
14047
13723
  parts10 = anatomy("ListBox").parts(
14048
13724
  "container",
14049
13725
  "item",
@@ -14078,12 +13754,10 @@ var init_listbox = __esm({
14078
13754
  _active: {
14079
13755
  ...ghostBackground("active", props)
14080
13756
  },
14081
- _focus: {
14082
- ...ghostBackground("focus", props)
14083
- },
14084
13757
  _hover: {
14085
13758
  ...ghostBackground("hover", props)
14086
13759
  },
13760
+ ...focusVisibleStyles(props),
14087
13761
  _selected: {
14088
13762
  ...ghostBackground("selected", props)
14089
13763
  }
@@ -14104,12 +13778,11 @@ var init_listbox = __esm({
14104
13778
  var parts11, helpers16, config25, media_controller_button_default;
14105
13779
  var init_media_controller_button = __esm({
14106
13780
  "src/theme/components/media-controller-button.ts"() {
14107
- init_box_shadow_utils();
14108
- init_focus_utils();
13781
+ init_focus_util();
14109
13782
  parts11 = themeTools.anatomy("media-controller-button").parts("container", "icon");
14110
13783
  helpers16 = react.createMultiStyleConfigHelpers(parts11.keys);
14111
13784
  config25 = helpers16.defineMultiStyleConfig({
14112
- baseStyle: {
13785
+ baseStyle: (props) => ({
14113
13786
  container: {
14114
13787
  fontSize: 30,
14115
13788
  transitionProperty: "common",
@@ -14122,7 +13795,8 @@ var init_media_controller_button = __esm({
14122
13795
  display: "flex",
14123
13796
  padding: 1,
14124
13797
  alignSelf: "center",
14125
- color: "primaryGreen"
13798
+ color: "primaryGreen",
13799
+ ...focusVisibleStyles(props)
14126
13800
  },
14127
13801
  icon: {
14128
13802
  flex: "0 0 auto",
@@ -14130,7 +13804,7 @@ var init_media_controller_button = __esm({
14130
13804
  width: "1em",
14131
13805
  height: "1em"
14132
13806
  }
14133
- },
13807
+ }),
14134
13808
  variants: {
14135
13809
  play: {
14136
13810
  container: {
@@ -14141,34 +13815,6 @@ var init_media_controller_button = __esm({
14141
13815
  _active: {
14142
13816
  color: "greenHaze"
14143
13817
  },
14144
- ...focusVisible({
14145
- focus: {
14146
- position: "relative",
14147
- outline: "none",
14148
- _after: {
14149
- content: '""',
14150
- display: "block",
14151
- zIndex: 2,
14152
- margin: 0.5,
14153
- borderRadius: "round",
14154
- borderWidth: 2,
14155
- borderColor: "white",
14156
- borderStyle: "solid",
14157
- pointerEvents: "none",
14158
- position: "absolute",
14159
- top: 0,
14160
- right: 0,
14161
- bottom: 0,
14162
- left: 0,
14163
- outline: "none"
14164
- }
14165
- },
14166
- notFocus: {
14167
- _after: {
14168
- display: "none"
14169
- }
14170
- }
14171
- }),
14172
13818
  _disabled: {
14173
13819
  color: "silver",
14174
13820
  _hover: {
@@ -14182,18 +13828,6 @@ var init_media_controller_button = __esm({
14182
13828
  },
14183
13829
  jumpSkip: {
14184
13830
  container: {
14185
- ...focusVisible({
14186
- focus: {
14187
- boxShadow: getBoxShadowString({
14188
- borderColor: "greenHaze",
14189
- borderWidth: 2
14190
- }),
14191
- outline: "none"
14192
- },
14193
- notFocus: {
14194
- boxShadow: "none"
14195
- }
14196
- }),
14197
13831
  _hover: {
14198
13832
  backgroundColor: "seaMist"
14199
13833
  },
@@ -14278,9 +13912,9 @@ var init_modal2 = __esm({
14278
13912
  boxShadow: "md"
14279
13913
  },
14280
13914
  header: {
14281
- px: 5,
14282
- pt: 6,
14283
- pb: 2,
13915
+ paddingX: 5,
13916
+ paddingTop: 6,
13917
+ paddingBottom: 2,
14284
13918
  fontWeight: "bold",
14285
13919
  fontFamily: "body"
14286
13920
  },
@@ -14291,14 +13925,14 @@ var init_modal2 = __esm({
14291
13925
  insetEnd: 3
14292
13926
  },
14293
13927
  body: {
14294
- px: 5,
14295
- pb: 6,
13928
+ paddingX: 5,
13929
+ paddingBottom: 6,
14296
13930
  flex: 1,
14297
13931
  overflow: props.scrollBehavior === "inside" ? "auto" : void 0
14298
13932
  },
14299
13933
  footer: {
14300
- px: 3,
14301
- pb: 3
13934
+ paddingX: 3,
13935
+ paddingBottom: 3
14302
13936
  }
14303
13937
  }),
14304
13938
  sizes: {
@@ -14325,8 +13959,7 @@ var $popperBg2, $arrowBg3, $arrowShadowColor2, helpers18, config27, popover_defa
14325
13959
  var init_popover2 = __esm({
14326
13960
  "src/theme/components/popover.ts"() {
14327
13961
  init_dist4();
14328
- init_box_shadow_utils();
14329
- init_focus_utils();
13962
+ init_focus_util();
14330
13963
  $popperBg2 = themeTools.cssVar("popper-bg");
14331
13964
  $arrowBg3 = themeTools.cssVar("popper-arrow-bg");
14332
13965
  $arrowShadowColor2 = themeTools.cssVar("popper-arrow-shadow-color");
@@ -14343,7 +13976,7 @@ var init_popover2 = __esm({
14343
13976
  [$arrowShadowColor2.variable]: `colors.blackAlpha.300`,
14344
13977
  color: "white",
14345
13978
  borderRadius: "sm",
14346
- p: 1.5,
13979
+ padding: 1.5,
14347
13980
  zIndex: "inherit",
14348
13981
  maxWidth: "20em",
14349
13982
  _focus: {
@@ -14360,14 +13993,7 @@ var init_popover2 = __esm({
14360
13993
  position: "absolute",
14361
13994
  color: "white",
14362
13995
  hover: "whiteAlpha.100",
14363
- ...focusVisible({
14364
- focus: {
14365
- boxShadow: getBoxShadowString({ borderColor: "azure" })
14366
- },
14367
- notFocus: {
14368
- boxShadow: "none"
14369
- }
14370
- }),
13996
+ ...focusVisibleStyles(props),
14371
13997
  _active: {
14372
13998
  backgroundColor: "whiteAlpha.200"
14373
13999
  },
@@ -14382,14 +14008,14 @@ var init_popover2 = __esm({
14382
14008
  sizes: {
14383
14009
  sm: {
14384
14010
  content: {
14385
- px: 1.5,
14386
- py: 1
14011
+ paddingX: 1.5,
14012
+ paddingY: 1
14387
14013
  }
14388
14014
  },
14389
14015
  lg: {
14390
14016
  content: {
14391
- px: 3,
14392
- py: 2
14017
+ paddingX: 3,
14018
+ paddingY: 2
14393
14019
  }
14394
14020
  }
14395
14021
  }
@@ -14426,13 +14052,10 @@ var init_progress_indicator2 = __esm({
14426
14052
  }
14427
14053
  },
14428
14054
  circle: {
14429
- fill: themeTools.mode("blackAlpha.400", "whiteAlpha.400")(props)
14055
+ fill: themeTools.mode("blackAlpha.200", "whiteAlpha.200")(props)
14430
14056
  }
14431
14057
  }
14432
14058
  }),
14433
- variants: {
14434
- base: (props) => ({})
14435
- },
14436
14059
  defaultProps: {
14437
14060
  variant: "base"
14438
14061
  }
@@ -14444,9 +14067,10 @@ var helpers20, config29, radio_default;
14444
14067
  var init_radio = __esm({
14445
14068
  "src/theme/components/radio.ts"() {
14446
14069
  init_dist4();
14070
+ init_focus_util();
14447
14071
  helpers20 = react.createMultiStyleConfigHelpers(radioAnatomy.keys);
14448
14072
  config29 = helpers20.defineMultiStyleConfig({
14449
- baseStyle: {
14073
+ baseStyle: (props) => ({
14450
14074
  container: {
14451
14075
  _hover: {
14452
14076
  "input:enabled + .chakra-radio__control": {
@@ -14469,10 +14093,7 @@ var init_radio = __esm({
14469
14093
  border: "2px solid",
14470
14094
  borderColor: "primaryGreen",
14471
14095
  borderRadius: "50%",
14472
- _focus: {
14473
- backgroundColor: "seaMist",
14474
- borderColor: "azure"
14475
- },
14096
+ ...focusVisibleStyles(props),
14476
14097
  _disabled: {
14477
14098
  backgroundColor: "lightGrey",
14478
14099
  borderColor: "steel"
@@ -14489,17 +14110,13 @@ var init_radio = __esm({
14489
14110
  borderRadius: "50%",
14490
14111
  background: "currentColor"
14491
14112
  },
14492
- _focus: {
14493
- backgroundColor: "white",
14494
- color: "azure"
14495
- },
14496
14113
  _disabled: {
14497
14114
  backgroundColor: "lightGrey",
14498
14115
  borderColor: "steel"
14499
14116
  }
14500
14117
  }
14501
14118
  }
14502
- }
14119
+ })
14503
14120
  });
14504
14121
  radio_default = config29;
14505
14122
  }
@@ -14523,7 +14140,7 @@ var init_select = __esm({
14523
14140
  left: 3,
14524
14141
  zIndex: 2,
14525
14142
  position: "absolute",
14526
- my: 2,
14143
+ marginY: 2,
14527
14144
  transformOrigin: "top left",
14528
14145
  transform: [
14529
14146
  "scale(0.825) translateY(-12px)",
@@ -14623,30 +14240,30 @@ var init_stepper2 = __esm({
14623
14240
  );
14624
14241
  helpers22 = react.createMultiStyleConfigHelpers(parts14.keys);
14625
14242
  config32 = helpers22.defineMultiStyleConfig({
14626
- baseStyle: (props) => ({
14243
+ baseStyle: {
14627
14244
  root: {
14628
14245
  display: "flex",
14629
14246
  alignItems: "center",
14630
- justifyContent: ["space-between", "center"],
14631
- minHeight: ["48px", "60px"],
14247
+ justifyContent: ["space-between", null, "center"],
14248
+ minHeight: ["48px", null, "60px"],
14632
14249
  overflowX: "auto",
14633
14250
  width: "100%"
14634
14251
  },
14635
14252
  container: {
14636
- px: [2, 2, 0],
14253
+ paddingX: [2, null, null, 0],
14637
14254
  maxWidth: "container.lg",
14638
- mx: "auto",
14255
+ marginX: "auto",
14639
14256
  width: "100%"
14640
14257
  },
14641
14258
  innerContainer: {
14642
14259
  overflow: "hidden",
14643
- display: ["flex", "none"],
14260
+ display: ["flex", null, "none"],
14644
14261
  alignItems: "center",
14645
14262
  justifyContent: "space-between"
14646
14263
  },
14647
14264
  backButton: {
14648
14265
  borderRadius: "xs",
14649
- px: 0,
14266
+ paddingX: 0,
14650
14267
  width: "auto",
14651
14268
  minWidth: "auto"
14652
14269
  },
@@ -14656,7 +14273,7 @@ var init_stepper2 = __esm({
14656
14273
  WebkitLineClamp: 2,
14657
14274
  display: "-webkit-box",
14658
14275
  WebkitBoxOrient: "vertical",
14659
- ml: 2,
14276
+ marginLeft: 2,
14660
14277
  textAlign: "right"
14661
14278
  },
14662
14279
  stepContainer: {
@@ -14667,9 +14284,9 @@ var init_stepper2 = __esm({
14667
14284
  textStyle: "sm",
14668
14285
  whiteSpace: "nowrap"
14669
14286
  }
14670
- }),
14287
+ },
14671
14288
  variants: {
14672
- base: (props) => ({
14289
+ base: () => ({
14673
14290
  root: {
14674
14291
  backgroundColor: "transparent"
14675
14292
  }
@@ -14693,7 +14310,7 @@ var init_switch = __esm({
14693
14310
  init_dist4();
14694
14311
  init_foundations();
14695
14312
  init_box_shadow_utils();
14696
- init_focus_utils();
14313
+ init_focus_util();
14697
14314
  $width2 = themeTools.cssVar("switch-track-width");
14698
14315
  $height3 = themeTools.cssVar("switch-track-height");
14699
14316
  $diff2 = themeTools.cssVar("switch-track-diff");
@@ -14739,37 +14356,7 @@ var init_switch = __esm({
14739
14356
  borderColor: colors.whiteAlpha[400]
14740
14357
  })
14741
14358
  )({ colorMode }),
14742
- ...focusVisible({
14743
- focus: {
14744
- boxShadow: themeTools.mode(
14745
- getBoxShadowString([
14746
- {
14747
- borderColor: "white",
14748
- borderWidth: 2,
14749
- isInset: false
14750
- },
14751
- {
14752
- borderColor: "primaryGreen",
14753
- borderWidth: 4,
14754
- isInset: false
14755
- }
14756
- ]),
14757
- getBoxShadowString({
14758
- borderColor: "coralGreen",
14759
- borderWidth: 2,
14760
- isInset: false
14761
- })
14762
- )({ colorMode })
14763
- },
14764
- notFocus: {
14765
- boxShadow: themeTools.mode(
14766
- "none",
14767
- getBoxShadowString({
14768
- borderColor: colors.whiteAlpha[400]
14769
- })
14770
- )({ colorMode })
14771
- }
14772
- }),
14359
+ ...focusVisibleStyles({ colorMode }),
14773
14360
  _hover: {
14774
14361
  backgroundColor: "steel",
14775
14362
  boxShadow: themeTools.mode(
@@ -14779,35 +14366,6 @@ var init_switch = __esm({
14779
14366
  },
14780
14367
  _checked: {
14781
14368
  backgroundColor: themeTools.mode("darkTeal", "celadon")({ colorMode }),
14782
- ...focusVisible({
14783
- focus: {
14784
- boxShadow: themeTools.mode(
14785
- getBoxShadowString([
14786
- {
14787
- borderColor: "white",
14788
- borderWidth: 2,
14789
- isInset: false
14790
- },
14791
- {
14792
- borderColor: "primaryGreen",
14793
- borderWidth: 4,
14794
- isInset: false
14795
- }
14796
- ]),
14797
- getBoxShadowString({
14798
- borderWidth: 2,
14799
- borderColor: "coralGreen",
14800
- isInset: false
14801
- })
14802
- )({ colorMode })
14803
- },
14804
- notFocus: {
14805
- boxShadow: themeTools.mode(
14806
- "none",
14807
- getBoxShadowString({ borderColor: colors.white })
14808
- )({ colorMode })
14809
- }
14810
- }),
14811
14369
  _hover: {
14812
14370
  backgroundColor: themeTools.mode("pine", "river")({ colorMode }),
14813
14371
  boxShadow: themeTools.mode(
@@ -14844,10 +14402,6 @@ var init_switch = __esm({
14844
14402
  boxShadow: getBoxShadowString({
14845
14403
  borderColor: colors.blackAlpha["400"]
14846
14404
  }),
14847
- _focus: {
14848
- backgroundColor: "platinum",
14849
- boxShadow: `0 0 0 2px ${colors.greenHaze}`
14850
- },
14851
14405
  _hover: {
14852
14406
  backgroundColor: "white"
14853
14407
  },
@@ -14855,10 +14409,6 @@ var init_switch = __esm({
14855
14409
  backgroundColor: "white",
14856
14410
  _hover: {
14857
14411
  backgroundColor: "mint"
14858
- },
14859
- _focus: {
14860
- backgroundColor: "white",
14861
- boxShadow: `0 0 0 4px ${colors.greenHaze}, 0 0 0 2px ${colors.white}`
14862
14412
  }
14863
14413
  }
14864
14414
  },
@@ -14878,7 +14428,7 @@ var init_switch = __esm({
14878
14428
  },
14879
14429
  track: {
14880
14430
  borderRadius: "24px",
14881
- p: "2px"
14431
+ padding: "2px"
14882
14432
  }
14883
14433
  },
14884
14434
  md: {
@@ -14888,7 +14438,7 @@ var init_switch = __esm({
14888
14438
  },
14889
14439
  track: {
14890
14440
  borderRadius: "30px",
14891
- p: "3px"
14441
+ padding: "3px"
14892
14442
  }
14893
14443
  },
14894
14444
  lg: {
@@ -14898,7 +14448,7 @@ var init_switch = __esm({
14898
14448
  },
14899
14449
  track: {
14900
14450
  borderRadius: "36px",
14901
- p: "3px"
14451
+ padding: "3px"
14902
14452
  }
14903
14453
  }
14904
14454
  },
@@ -15015,16 +14565,16 @@ var init_table2 = __esm({
15015
14565
  fontSize: ["mobile.xs", "desktop.xs"]
15016
14566
  },
15017
14567
  th: {
15018
- px: 3,
15019
- py: 1.5
14568
+ paddingX: 3,
14569
+ paddingY: 1.5
15020
14570
  },
15021
14571
  td: {
15022
- px: 3,
15023
- py: 1.5
14572
+ paddingX: 3,
14573
+ paddingY: 1.5
15024
14574
  },
15025
14575
  caption: {
15026
- px: 3,
15027
- py: 1.5
14576
+ paddingX: 3,
14577
+ paddingY: 1.5
15028
14578
  }
15029
14579
  },
15030
14580
  md: {
@@ -15032,16 +14582,16 @@ var init_table2 = __esm({
15032
14582
  fontSize: ["mobile.sm", "desktop.sm"]
15033
14583
  },
15034
14584
  th: {
15035
- px: 3,
15036
- py: 1.5
14585
+ paddingX: 3,
14586
+ paddingY: 1.5
15037
14587
  },
15038
14588
  td: {
15039
- px: 3,
15040
- py: 1.5
14589
+ paddingX: 3,
14590
+ paddingY: 1.5
15041
14591
  },
15042
14592
  caption: {
15043
- px: 3,
15044
- py: 1.5
14593
+ paddingX: 3,
14594
+ paddingY: 1.5
15045
14595
  }
15046
14596
  },
15047
14597
  lg: {
@@ -15049,16 +14599,16 @@ var init_table2 = __esm({
15049
14599
  fontSize: ["mobile.sm", "desktop.sm"]
15050
14600
  },
15051
14601
  th: {
15052
- px: 3,
15053
- py: "15px"
14602
+ paddingX: 3,
14603
+ paddingY: "15px"
15054
14604
  },
15055
14605
  td: {
15056
- px: 3,
15057
- py: "15px"
14606
+ paddingX: 3,
14607
+ paddingY: "15px"
15058
14608
  },
15059
14609
  caption: {
15060
- px: 3,
15061
- py: "15px"
14610
+ paddingX: 3,
14611
+ paddingY: "15px"
15062
14612
  }
15063
14613
  }
15064
14614
  },
@@ -15071,10 +14621,11 @@ var init_table2 = __esm({
15071
14621
  table_default = config34;
15072
14622
  }
15073
14623
  });
15074
- var helpers25, config35, tabs_default, getTabColorSchemeProps, getTabColorSchemeSelectedProps, getTabColorSchemeFocusProps, getTabColorSchemeHoverProps, getTabColorSchemeActiveProps, getTabColorSchemeDisabledProps, getTablistColorSchemeProps;
14624
+ var helpers25, config35, tabs_default, getTabColorSchemeProps, getTabColorSchemeSelectedProps, getTabColorSchemeHoverProps, getTabColorSchemeActiveProps, getTabColorSchemeDisabledProps, getTablistColorSchemeProps;
15075
14625
  var init_tabs = __esm({
15076
14626
  "src/theme/components/tabs.ts"() {
15077
14627
  init_dist4();
14628
+ init_focus_util();
15078
14629
  helpers25 = react.createMultiStyleConfigHelpers(tabsAnatomy.keys);
15079
14630
  config35 = helpers25.defineMultiStyleConfig({
15080
14631
  baseStyle: (props) => ({
@@ -15104,11 +14655,7 @@ var init_tabs = __esm({
15104
14655
  pointerEvents: "none",
15105
14656
  ...getTabColorSchemeSelectedProps(props)
15106
14657
  },
15107
- _focus: getTabColorSchemeFocusProps(props),
15108
- ":focus:not(:focus-visible)": {
15109
- boxShadow: "none"
15110
- },
15111
- _focusVisible: getTabColorSchemeFocusProps(props),
14658
+ ...focusVisibleStyles(props),
15112
14659
  _hover: getTabColorSchemeHoverProps(props),
15113
14660
  _active: getTabColorSchemeActiveProps(props),
15114
14661
  _disabled: getTabColorSchemeDisabledProps(props)
@@ -15137,40 +14684,40 @@ var init_tabs = __esm({
15137
14684
  sm: {
15138
14685
  tablist: {
15139
14686
  height: "30px",
15140
- p: "2px"
14687
+ padding: "2px"
15141
14688
  },
15142
14689
  tab: {
15143
- px: 2,
15144
- py: 0
14690
+ paddingX: 2,
14691
+ paddingY: 0
15145
14692
  }
15146
14693
  },
15147
14694
  md: {
15148
14695
  tablist: {
15149
14696
  height: "36px",
15150
- p: 0.5
14697
+ padding: 0.5
15151
14698
  },
15152
14699
  tab: {
15153
- px: 2
14700
+ paddingX: 2
15154
14701
  }
15155
14702
  },
15156
14703
  lg: {
15157
14704
  tablist: {
15158
14705
  height: "42px",
15159
- p: 0.5
14706
+ padding: 0.5
15160
14707
  },
15161
14708
  tab: {
15162
14709
  fontWeight: "bold",
15163
- px: 2
14710
+ paddingX: 2
15164
14711
  }
15165
14712
  },
15166
14713
  xl: {
15167
14714
  tablist: {
15168
14715
  height: "54px",
15169
- p: "4px"
14716
+ padding: "4px"
15170
14717
  },
15171
14718
  tab: {
15172
14719
  fontWeight: "bold",
15173
- px: 3
14720
+ paddingX: 3
15174
14721
  }
15175
14722
  }
15176
14723
  },
@@ -15275,26 +14822,6 @@ var init_tabs = __esm({
15275
14822
  };
15276
14823
  }
15277
14824
  };
15278
- getTabColorSchemeFocusProps = (props) => {
15279
- switch (props.colorScheme) {
15280
- case "dark":
15281
- return {
15282
- boxShadow: `inset 0 0 0 2px ${props.theme.colors.white}`
15283
- };
15284
- case "base":
15285
- return {
15286
- boxShadow: `inset 0 0 0 2px ${props.theme.colors.azure}`
15287
- };
15288
- case "accent":
15289
- return {
15290
- boxShadow: `inset 0 0 0 2px ${props.theme.colors.azure}`
15291
- };
15292
- default:
15293
- return {
15294
- boxShadow: `inset 0 0 0 2px ${props.theme.colors.greenHaze}`
15295
- };
15296
- }
15297
- };
15298
14825
  getTabColorSchemeHoverProps = (props) => {
15299
14826
  switch (props.colorScheme) {
15300
14827
  case "dark":