@vygruppen/spor-react 3.7.3 → 3.7.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -782,71 +782,76 @@ var MotionBox; exports.FloatingActionButton = void 0; var useScrollDirection;
782
782
  var init_FloatingActionButton = __esm({
783
783
  "src/button/FloatingActionButton.tsx"() {
784
784
  MotionBox = framerMotion.motion(react.Box);
785
- exports.FloatingActionButton = ({
786
- children,
787
- icon,
788
- variant,
789
- isTextVisible: externalIsTextVisible,
790
- placement = "bottom right",
791
- ...props
792
- }) => {
793
- const [isTextVisible, setIsTextVisible] = React50__namespace.default.useState(
794
- externalIsTextVisible !== void 0 ? externalIsTextVisible : true
795
- );
796
- const scrollDirection = useScrollDirection();
797
- React50__namespace.default.useEffect(() => {
798
- if (externalIsTextVisible !== void 0) {
799
- return;
800
- }
801
- const id = window.setTimeout(
802
- () => setIsTextVisible(scrollDirection !== "down"),
803
- 1e3
804
- );
805
- return () => window.clearTimeout(id);
806
- }, [scrollDirection, externalIsTextVisible]);
807
- React50__namespace.default.useEffect(() => {
808
- setIsTextVisible(!!externalIsTextVisible);
809
- }, [externalIsTextVisible]);
810
- const style = react.useMultiStyleConfig("FloatingActionButton", {
785
+ exports.FloatingActionButton = react.forwardRef(
786
+ ({
787
+ as,
788
+ children,
789
+ icon,
811
790
  variant,
812
- isTextVisible,
813
- placement
814
- });
815
- return /* @__PURE__ */ React50__namespace.default.createElement(
816
- MotionBox,
817
- {
818
- __css: style.container,
819
- as: "button",
820
- "aria-label": children,
821
- ...props
822
- },
823
- /* @__PURE__ */ React50__namespace.default.createElement(react.Box, { __css: style.icon }, icon),
824
- /* @__PURE__ */ React50__namespace.default.createElement(
791
+ isTextVisible: externalIsTextVisible,
792
+ placement = "bottom right",
793
+ ...props
794
+ }, ref) => {
795
+ const [isTextVisible, setIsTextVisible] = React50__namespace.default.useState(
796
+ externalIsTextVisible !== void 0 ? externalIsTextVisible : false
797
+ );
798
+ const scrollDirection = useScrollDirection();
799
+ React50.useEffect(() => {
800
+ if (externalIsTextVisible !== void 0) {
801
+ return;
802
+ }
803
+ const id = window.setTimeout(
804
+ () => setIsTextVisible(scrollDirection !== "down"),
805
+ 1e3
806
+ );
807
+ return () => window.clearTimeout(id);
808
+ }, [scrollDirection, externalIsTextVisible]);
809
+ React50.useEffect(() => {
810
+ setIsTextVisible(!!externalIsTextVisible);
811
+ }, [externalIsTextVisible]);
812
+ const style = react.useMultiStyleConfig("FloatingActionButton", {
813
+ variant,
814
+ isTextVisible,
815
+ placement
816
+ });
817
+ return /* @__PURE__ */ React50__namespace.default.createElement(
825
818
  MotionBox,
826
819
  {
827
- animate: isTextVisible ? "show" : "hide",
828
- initial: "show",
829
- variants: {
830
- show: {
831
- opacity: 1,
832
- width: "auto",
833
- visibility: "visible"
820
+ __css: style.container,
821
+ "aria-label": children,
822
+ ref,
823
+ ...props
824
+ },
825
+ /* @__PURE__ */ React50__namespace.default.createElement(react.Box, { __css: style.icon }, icon),
826
+ /* @__PURE__ */ React50__namespace.default.createElement(
827
+ MotionBox,
828
+ {
829
+ animate: isTextVisible ? "show" : "hide",
830
+ initial: externalIsTextVisible ? "show" : "hide",
831
+ variants: {
832
+ show: {
833
+ opacity: 1,
834
+ width: "auto",
835
+ visibility: "visible"
836
+ },
837
+ hide: {
838
+ opacity: 0,
839
+ width: 0,
840
+ visibility: "hidden"
841
+ }
834
842
  },
835
- hide: {
836
- opacity: 0,
837
- width: 0,
838
- visibility: "hidden"
839
- }
843
+ __css: style.text
840
844
  },
841
- __css: style.text
842
- },
843
- children
844
- )
845
- );
846
- };
845
+ children
846
+ )
847
+ );
848
+ }
849
+ );
847
850
  useScrollDirection = () => {
848
851
  const [scrollDirection, setScrollDirection] = React50__namespace.default.useState(null);
849
- const lastScrollPosition = React50__namespace.default.useRef(typeof window !== "undefined" ? window.scrollY : 0);
852
+ const lastScrollPosition = React50__namespace.default.useRef(
853
+ typeof window !== "undefined" ? window.scrollY : 0
854
+ );
850
855
  React50__namespace.default.useEffect(() => {
851
856
  const onScroll = () => {
852
857
  const delta = window.scrollY - lastScrollPosition.current;
@@ -4824,7 +4829,9 @@ var init_ChoiceChip = __esm({
4824
4829
  __css: styles3.container,
4825
4830
  "data-checked": dataAttr(state2.isChecked),
4826
4831
  "data-hover": dataAttr(state2.isHovered),
4827
- "data-focus": dataAttr(state2.isFocused)
4832
+ "data-focus": dataAttr(state2.isFocused),
4833
+ "data-active": dataAttr(state2.isActive),
4834
+ "data-disabled": dataAttr(state2.isDisabled)
4828
4835
  },
4829
4836
  icon && /* @__PURE__ */ React50__namespace.default.createElement(react.chakra.span, { __css: styles3.icon }, state2.isChecked ? icon.checked : icon.default),
4830
4837
  /* @__PURE__ */ React50__namespace.default.createElement(react.chakra.span, { __css: styles3.label, ...getCheckboxProps() }, variant !== "icon" && children),
@@ -12534,8 +12541,6 @@ var init_foundations = __esm({
12534
12541
  init_styles();
12535
12542
  }
12536
12543
  });
12537
-
12538
- // src/theme/components/accordion.ts
12539
12544
  var helpers, config3, accordion_default;
12540
12545
  var init_accordion2 = __esm({
12541
12546
  "src/theme/components/accordion.ts"() {
@@ -12546,7 +12551,7 @@ var init_accordion2 = __esm({
12546
12551
  init_focus_utils();
12547
12552
  helpers = createMultiStyleConfigHelpers(accordionAnatomy.keys);
12548
12553
  config3 = helpers.defineMultiStyleConfig({
12549
- baseStyle: {
12554
+ baseStyle: (props) => ({
12550
12555
  container: {
12551
12556
  border: "none",
12552
12557
  borderRadius: "sm"
@@ -12558,7 +12563,7 @@ var init_accordion2 = __esm({
12558
12563
  borderRadius: "sm",
12559
12564
  display: "flex",
12560
12565
  justifyContent: "space-between",
12561
- color: "darkGrey",
12566
+ color: themeTools.mode("darkGrey", "white")(props),
12562
12567
  textAlign: "left",
12563
12568
  fontFamily: "body",
12564
12569
  fontWeight: "bold",
@@ -12570,7 +12575,7 @@ var init_accordion2 = __esm({
12570
12575
  },
12571
12576
  focus: {
12572
12577
  boxShadow: getBoxShadowString({
12573
- borderColor: "greenHaze",
12578
+ borderColor: themeTools.mode("greenHaze", "azure")(props),
12574
12579
  borderWidth: 2
12575
12580
  })
12576
12581
  }
@@ -12587,23 +12592,26 @@ var init_accordion2 = __esm({
12587
12592
  icon: {
12588
12593
  fontSize: "1.25em"
12589
12594
  }
12590
- },
12595
+ }),
12591
12596
  variants: {
12592
- list: {
12597
+ list: (props) => ({
12593
12598
  button: {
12594
12599
  boxShadow: "none",
12595
12600
  _hover: {
12596
- backgroundColor: "seaMist"
12601
+ backgroundColor: themeTools.mode("seaMist", "pine")(props)
12597
12602
  },
12598
12603
  _active: {
12599
- backgroundColor: "mint"
12604
+ backgroundColor: themeTools.mode("mint", "whiteAlpha.200")(props)
12600
12605
  }
12601
12606
  }
12602
- },
12603
- outline: {
12607
+ }),
12608
+ outline: (props) => ({
12604
12609
  container: {
12605
12610
  boxShadow: getBoxShadowString({
12606
- borderColor: colors.blackAlpha["400"]
12611
+ borderColor: themeTools.mode(
12612
+ colors.blackAlpha["400"],
12613
+ colors.whiteAlpha["400"]
12614
+ )(props)
12607
12615
  })
12608
12616
  },
12609
12617
  button: {
@@ -12612,23 +12620,24 @@ var init_accordion2 = __esm({
12612
12620
  },
12613
12621
  _hover: {
12614
12622
  boxShadow: getBoxShadowString({
12615
- borderColor: "darkGrey",
12623
+ borderColor: themeTools.mode("darkGrey", "white")(props),
12616
12624
  borderWidth: 2
12617
12625
  })
12618
12626
  },
12619
12627
  _active: {
12620
- backgroundColor: "mint",
12628
+ backgroundColor: themeTools.mode("mint", "whiteAlpha.100")(props),
12621
12629
  boxShadow: getBoxShadowString({
12622
- borderColor: "darkGrey"
12630
+ borderColor: themeTools.mode("darkGrey", colors.whiteAlpha[400])(props)
12623
12631
  })
12624
12632
  }
12625
12633
  }
12626
- },
12627
- card: {
12634
+ }),
12635
+ card: (props) => ({
12628
12636
  container: {
12637
+ backgroundColor: themeTools.mode("white", "whiteAlpha.100")(props),
12629
12638
  boxShadow: getBoxShadowString({
12630
- baseShadow: "sm",
12631
- borderColor: "silver"
12639
+ baseShadow: themeTools.mode("sm", "none")(props),
12640
+ borderColor: themeTools.mode("silver", "whiteAlpha.400")(props)
12632
12641
  })
12633
12642
  },
12634
12643
  button: {
@@ -12636,20 +12645,30 @@ var init_accordion2 = __esm({
12636
12645
  borderBottomRadius: "none"
12637
12646
  },
12638
12647
  _hover: {
12639
- backgroundColor: "seaMist"
12648
+ backgroundColor: themeTools.mode("seaMist", "whiteAlpha.200")(props),
12649
+ boxShadow: getBoxShadowString({
12650
+ borderColor: themeTools.mode("darkGrey", "white")(props),
12651
+ borderWidth: 1
12652
+ })
12640
12653
  },
12641
12654
  _active: {
12642
- backgroundColor: "mint"
12655
+ backgroundColor: themeTools.mode("mint", "inherit")(props),
12656
+ boxShadow: getBoxShadowString({
12657
+ baseShadow: "none",
12658
+ borderWidth: 1,
12659
+ borderColor: themeTools.mode("darkGrey", "whiteAlpha.400")(props)
12660
+ })
12643
12661
  }
12644
12662
  }
12645
- }
12663
+ })
12646
12664
  },
12647
12665
  sizes: {
12648
12666
  sm: {
12649
12667
  button: {
12650
12668
  fontSize: ["mobile.xs", null, "desktop.xs"],
12651
12669
  paddingX: 2,
12652
- paddingY: 1
12670
+ paddingY: 1,
12671
+ minHeight: 6
12653
12672
  },
12654
12673
  panel: {
12655
12674
  fontSize: ["mobile.xs", null, "desktop.xs"],
@@ -12660,7 +12679,8 @@ var init_accordion2 = __esm({
12660
12679
  button: {
12661
12680
  fontSize: ["mobile.sm", null, "desktop.sm"],
12662
12681
  paddingX: 3,
12663
- paddingY: 1
12682
+ paddingY: 1,
12683
+ minHeight: 7
12664
12684
  },
12665
12685
  panel: {
12666
12686
  fontSize: ["mobile.sm", null, "desktop.sm"],
@@ -12671,7 +12691,8 @@ var init_accordion2 = __esm({
12671
12691
  button: {
12672
12692
  fontSize: ["mobile.sm", null, "desktop.sm"],
12673
12693
  paddingX: 3,
12674
- paddingY: 2
12694
+ paddingY: 2,
12695
+ minHeight: 8
12675
12696
  },
12676
12697
  panel: {
12677
12698
  fontSize: ["mobile.sm", null, "desktop.sm"],
@@ -12843,16 +12864,15 @@ var init_badge = __esm({
12843
12864
  };
12844
12865
  }
12845
12866
  });
12846
-
12847
- // src/theme/components/breadcrumb.ts
12848
12867
  var defineMultiStyleConfig27, definePartsStyle27, baseStyleLink2, baseStyle43, breadcrumb_default;
12849
12868
  var init_breadcrumb2 = __esm({
12850
12869
  "src/theme/components/breadcrumb.ts"() {
12851
12870
  init_dist4();
12852
12871
  init_dist3();
12853
12872
  init_box_shadow_utils();
12873
+ init_focus_utils();
12854
12874
  ({ defineMultiStyleConfig: defineMultiStyleConfig27, definePartsStyle: definePartsStyle27 } = createMultiStyleConfigHelpers(breadcrumbAnatomy.keys));
12855
- baseStyleLink2 = defineStyle({
12875
+ baseStyleLink2 = defineStyle((props) => ({
12856
12876
  transitionProperty: "common",
12857
12877
  transitionDuration: "fast",
12858
12878
  transitionTimingFunction: "ease-out",
@@ -12865,26 +12885,31 @@ var init_breadcrumb2 = __esm({
12865
12885
  paddingX: 0.5,
12866
12886
  borderRadius: "xs",
12867
12887
  _hover: {
12868
- backgroundColor: "coralGreen"
12869
- },
12870
- _focusVisible: {
12871
- boxShadow: getBoxShadowString({
12872
- borderColor: "greenHaze",
12873
- borderWidth: 2
12874
- })
12888
+ backgroundColor: themeTools.mode("seaMist", "pine")(props)
12875
12889
  },
12890
+ ...focusVisible({
12891
+ focus: {
12892
+ boxShadow: getBoxShadowString({
12893
+ borderColor: themeTools.mode("greenHaze", "azure")(props),
12894
+ borderWidth: 2
12895
+ })
12896
+ },
12897
+ notFocus: {
12898
+ notFocus: { boxShadow: "none" }
12899
+ }
12900
+ }),
12876
12901
  _active: {
12877
- backgroundColor: "mint"
12902
+ backgroundColor: themeTools.mode("mint", "whiteAlpha.200")(props)
12878
12903
  }
12879
12904
  }
12880
- });
12881
- baseStyle43 = definePartsStyle27({
12882
- link: baseStyleLink2,
12905
+ }));
12906
+ baseStyle43 = definePartsStyle27((props) => ({
12907
+ link: baseStyleLink2(props),
12883
12908
  list: {
12884
12909
  flexWrap: "wrap",
12885
12910
  alignItems: "flex-start"
12886
12911
  }
12887
- });
12912
+ }));
12888
12913
  breadcrumb_default = defineMultiStyleConfig27({
12889
12914
  baseStyle: baseStyle43
12890
12915
  });
@@ -12921,28 +12946,39 @@ var init_button2 = __esm({
12921
12946
  }
12922
12947
  },
12923
12948
  variants: {
12924
- control: {
12925
- backgroundColor: "darkTeal",
12926
- color: "white",
12949
+ control: (props) => ({
12950
+ backgroundColor: themeTools.mode("darkTeal", "mint")(props),
12951
+ color: themeTools.mode("white", "darkTeal")(props),
12927
12952
  ...focusVisible({
12928
12953
  focus: {
12929
- boxShadow: `inset 0 0 0 4px ${colors.darkTeal}, inset 0 0 0 6px currentColor`
12954
+ boxShadow: `inset 0 0 0 4px ${themeTools.mode(
12955
+ colors.darkTeal,
12956
+ colors.seaMist
12957
+ )(props)}, inset 0 0 0 6px currentColor`
12930
12958
  },
12931
12959
  notFocus: { boxShadow: "none" }
12932
12960
  }),
12933
12961
  _hover: {
12934
- backgroundColor: "night"
12962
+ backgroundColor: themeTools.mode("night", "coralGreen")(props)
12935
12963
  },
12936
12964
  _active: {
12937
- backgroundColor: "pine"
12965
+ backgroundColor: themeTools.mode("pine", "white")(props)
12938
12966
  }
12939
- },
12940
- primary: {
12967
+ }),
12968
+ primary: (props) => ({
12969
+ // FIXME: Update to use a global defined background color for darkMode whenever it is available.
12970
+ // hardcoded background color as alpha-"hack" below is not feasible for dark mode with solid background color
12941
12971
  backgroundColor: "primaryGreen",
12942
12972
  color: "white",
12943
12973
  ...focusVisible({
12944
12974
  focus: {
12945
- boxShadow: `inset 0 0 0 4px ${colors.primaryGreen}, inset 0 0 0 4px ${colors.primaryGreen}, inset 0 0 0 6px currentColor`
12975
+ boxShadow: `inset 0 0 0 2px ${themeTools.mode(
12976
+ colors.greenHaze,
12977
+ colors.azure
12978
+ )(props)}, inset 0 0 0 4px ${themeTools.mode(
12979
+ colors.white,
12980
+ colors.darkGrey
12981
+ )(props)}`
12946
12982
  },
12947
12983
  notFocus: { boxShadow: "none" }
12948
12984
  }),
@@ -12952,25 +12988,61 @@ var init_button2 = __esm({
12952
12988
  _active: {
12953
12989
  backgroundColor: "azure"
12954
12990
  }
12955
- },
12956
- secondary: {
12957
- backgroundColor: "coralGreen",
12958
- color: "darkTeal",
12991
+ }),
12992
+ secondary: (props) => ({
12993
+ // FIXME: Update to use global defined background color for darkMode whenever it is available instead of alpha
12994
+ backgroundColor: themeTools.mode("seaMist", "whiteAlpha.100")(props),
12995
+ color: themeTools.mode("darkTeal", "white")(props),
12996
+ // order is important here for now while we do not have global defined background color for darkMode
12997
+ _hover: {
12998
+ backgroundColor: themeTools.mode("coralGreen", "whiteAlpha.200")(props)
12999
+ },
12959
13000
  ...focusVisible({
12960
13001
  focus: {
12961
- boxShadow: `inset 0 0 0 4px ${colors.coralGreen}, inset 0 0 0 4px ${colors.coralGreen}, inset 0 0 0 6px currentColor`
13002
+ boxShadow: `inset 0 0 0 2px ${themeTools.mode(
13003
+ colors.greenHaze,
13004
+ colors.azure
13005
+ )(props)}, inset 0 0 0 4px ${themeTools.mode(
13006
+ colors.white,
13007
+ colors.blackAlpha[300]
13008
+ )(props)}`,
13009
+ _hover: {
13010
+ boxShadow: `inset 0 0 0 2px ${themeTools.mode(
13011
+ colors.greenHaze,
13012
+ colors.azure
13013
+ )(props)}, inset 0 0 0 4px ${themeTools.mode(
13014
+ colors.white,
13015
+ colors.blackAlpha[500]
13016
+ )(props)}`
13017
+ }
12962
13018
  },
12963
13019
  notFocus: {
12964
13020
  boxShadow: "none"
12965
13021
  }
12966
13022
  }),
12967
- _hover: {
12968
- backgroundColor: "blueGreen"
12969
- },
12970
13023
  _active: {
12971
- backgroundColor: "mint"
13024
+ backgroundColor: themeTools.mode("mint", "whiteAlpha.300")(props),
13025
+ boxShadow: `inset 0 0 0 2px ${themeTools.mode(
13026
+ colors.greenHaze,
13027
+ colors.azure
13028
+ )(props)}, inset 0 0 0 4px ${themeTools.mode(
13029
+ colors.white,
13030
+ colors.blackAlpha[600]
13031
+ )(props)}`,
13032
+ _hover: {
13033
+ boxShadow: `inset 0 0 0 2px ${themeTools.mode(
13034
+ colors.greenHaze,
13035
+ colors.azure
13036
+ )(props)}, inset 0 0 0 4px ${themeTools.mode(
13037
+ colors.white,
13038
+ colors.blackAlpha[600]
13039
+ )(props)}`
13040
+ }
12972
13041
  }
12973
- },
13042
+ }),
13043
+ /**
13044
+ * @deprecated use `secondary` instead.
13045
+ */
12974
13046
  tertiary: {
12975
13047
  backgroundColor: "mint",
12976
13048
  color: "darkGrey",
@@ -12999,7 +13071,7 @@ var init_button2 = __esm({
12999
13071
  ...focusVisible({
13000
13072
  focus: {
13001
13073
  boxShadow: getBoxShadowString({
13002
- borderWidth: 3,
13074
+ borderWidth: 2,
13003
13075
  borderColor: "greenHaze"
13004
13076
  })
13005
13077
  },
@@ -13530,37 +13602,49 @@ var parts3, helpers5, config10, choice_chip_default;
13530
13602
  var init_choice_chip = __esm({
13531
13603
  "src/theme/components/choice-chip.ts"() {
13532
13604
  init_box_shadow_utils();
13605
+ init_foundations();
13533
13606
  parts3 = themeTools.anatomy("choice-chip").parts("container", "icon", "label");
13534
13607
  helpers5 = react.createMultiStyleConfigHelpers(parts3.keys);
13535
13608
  config10 = helpers5.defineMultiStyleConfig({
13536
13609
  baseStyle: (props) => ({
13537
13610
  container: {
13538
- backgroundColor: "white",
13611
+ backgroundColor: themeTools.mode("white", "transparent")(props),
13539
13612
  boxShadow: getBoxShadowString({ borderColor: "celadon" }),
13540
- color: "darkTeal",
13613
+ color: themeTools.mode("darkTeal", "white")(props),
13541
13614
  display: "inline-flex",
13542
13615
  alignItems: "center",
13543
13616
  fontSize: "16px",
13544
13617
  px: 1,
13545
13618
  _checked: {
13546
- background: "seaMist",
13619
+ color: "white",
13620
+ background: "pine",
13547
13621
  boxShadow: getBoxShadowString({ borderColor: "celadon" })
13548
13622
  },
13549
13623
  "input:focus-visible + &": {
13550
- boxShadow: getBoxShadowString({
13551
- borderColor: "greenHaze",
13552
- borderWidth: 2
13553
- })
13624
+ boxShadow: `inset 0 0 0 2px ${themeTools.mode(
13625
+ colors.greenHaze,
13626
+ colors.azure
13627
+ )(props)}, inset 0 0 0 4px ${themeTools.mode(
13628
+ colors.white,
13629
+ colors.darkGrey
13630
+ )(props)}`
13554
13631
  },
13555
13632
  "@media (hover:hover)": {
13556
13633
  _hover: {
13634
+ color: themeTools.mode("darkTeal", "white")(props),
13557
13635
  boxShadow: getBoxShadowString({
13558
13636
  borderColor: "greenHaze",
13559
13637
  borderWidth: 2
13560
13638
  }),
13561
- background: "mint",
13639
+ background: themeTools.mode("coralGreen", "whiteAlpha.200")(props),
13562
13640
  cursor: "pointer"
13563
13641
  }
13642
+ },
13643
+ _active: {
13644
+ backgroundColor: themeTools.mode("mint", "whiteAlpha.300")(props),
13645
+ boxShadow: getBoxShadowString({
13646
+ borderColor: "pine"
13647
+ })
13564
13648
  }
13565
13649
  },
13566
13650
  icon: {
@@ -14635,7 +14719,7 @@ var init_input2 = __esm({
14635
14719
  borderColor: themeTools.mode("blackAlpha.400", "whiteAlpha.400")(props)
14636
14720
  }),
14637
14721
  _active: {
14638
- backgroundColor: themeTools.mode("blackAlpha.100", "whiteAlpha.100")(props),
14722
+ backgroundColor: themeTools.mode("mint", "whiteAlpha.100")(props),
14639
14723
  boxShadow: getBoxShadowString({
14640
14724
  borderColor: themeTools.mode("blackAlpha.400", "whiteAlpha.400")(props)
14641
14725
  })
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- export { Accordion, AccordionButton, AccordionIcon, AccordionItem, AccordionPanel, AttachedInputs, Badge, Box, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Button, ButtonGroup, Card, CardSelect, Center, Checkbox, CheckboxGroup, ChoiceChip, ClosableAlert, CloseButton, Code, Collapse, ColorInlineLoader, ColorSpinner, Combobox, Container, ContentLoader, DarkFullScreenLoader, DarkInlineLoader, DarkMode, DarkSpinner, DatePicker, DateRangePicker, Divider, Drawer, DrawerBody, DrawerCloseButton, DrawerContent, DrawerFooter, ModalHeader as DrawerHeader, DrawerOverlay, Expandable, ExpandableAlert, ExpandableItem, Fade, Flex, FloatingActionButton, FormControl, FormErrorMessage, FormHelperText, FormLabel, Grid, GridItem, HStack, Heading, IconButton, Image, Img, InfoSelect, InfoTag, Input, InputGroup, InputLeftElement, InputRightElement, Item, ItemDescription, ItemLabel, JumpButton, Language, LanguageProvider, LightFullScreenLoader, LightInlineLoader, LightMode, LightSpinner, LineIcon, ListBox, ListItem, Modal, ModalBody, ModalCloseButton, ModalContent, ModalFooter, ModalHeader, ModalOverlay, NativeSelect, NumericStepper, OrderedList, PasswordInput, PhoneNumberInput, PlayPauseButton, Popover, PopoverAnchor, PopoverArrow, PopoverBody, PopoverCloseButton, PopoverContent, PopoverFooter, PopoverHeader, PopoverTrigger, PopoverWizardBody, ProgressBar, ProgressLoader, Radio, RadioGroup, ScaleFade, SearchInput, Section, SimpleDrawer, SimpleGrid, SimplePopover, Skeleton, SkeletonCircle, SkeletonText, SkipButton, Slide, SlideFade, Spacer, SporProvider, Stack, StaticAlert, Stepper, StepperStep, Switch, Tab, TabList, TabPanel, TabPanels, Table, TableCaption, Tabs, Tbody, Td, Text, TextLink, Textarea, Tfoot, Th, Thead, Time, TimePicker, Tr, TravelTag, UnorderedList, VStack, VyLogo, WizardPopover, Wrap, WrapItem, createTexts, extendTheme, fontFaces, theme, tokens, useBreakpointValue, useClipboard, useColorMode, useColorModePreference, useColorModeValue, useControllableProp, useDisclosure, useMediaQuery, useMergeRefs, useOutsideClick, usePrefersReducedMotion, useTheme, useToast, useToken, useTranslation } from './chunk-D2XVZVE6.mjs';
1
+ export { Accordion, AccordionButton, AccordionIcon, AccordionItem, AccordionPanel, AttachedInputs, Badge, Box, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Button, ButtonGroup, Card, CardSelect, Center, Checkbox, CheckboxGroup, ChoiceChip, ClosableAlert, CloseButton, Code, Collapse, ColorInlineLoader, ColorSpinner, Combobox, Container, ContentLoader, DarkFullScreenLoader, DarkInlineLoader, DarkMode, DarkSpinner, DatePicker, DateRangePicker, Divider, Drawer, DrawerBody, DrawerCloseButton, DrawerContent, DrawerFooter, ModalHeader as DrawerHeader, DrawerOverlay, Expandable, ExpandableAlert, ExpandableItem, Fade, Flex, FloatingActionButton, FormControl, FormErrorMessage, FormHelperText, FormLabel, Grid, GridItem, HStack, Heading, IconButton, Image, Img, InfoSelect, InfoTag, Input, InputGroup, InputLeftElement, InputRightElement, Item, ItemDescription, ItemLabel, JumpButton, Language, LanguageProvider, LightFullScreenLoader, LightInlineLoader, LightMode, LightSpinner, LineIcon, ListBox, ListItem, Modal, ModalBody, ModalCloseButton, ModalContent, ModalFooter, ModalHeader, ModalOverlay, NativeSelect, NumericStepper, OrderedList, PasswordInput, PhoneNumberInput, PlayPauseButton, Popover, PopoverAnchor, PopoverArrow, PopoverBody, PopoverCloseButton, PopoverContent, PopoverFooter, PopoverHeader, PopoverTrigger, PopoverWizardBody, ProgressBar, ProgressLoader, Radio, RadioGroup, ScaleFade, SearchInput, Section, SimpleDrawer, SimpleGrid, SimplePopover, Skeleton, SkeletonCircle, SkeletonText, SkipButton, Slide, SlideFade, Spacer, SporProvider, Stack, StaticAlert, Stepper, StepperStep, Switch, Tab, TabList, TabPanel, TabPanels, Table, TableCaption, Tabs, Tbody, Td, Text, TextLink, Textarea, Tfoot, Th, Thead, Time, TimePicker, Tr, TravelTag, UnorderedList, VStack, VyLogo, WizardPopover, Wrap, WrapItem, createTexts, extendTheme, fontFaces, theme, tokens, useBreakpointValue, useClipboard, useColorMode, useColorModePreference, useColorModeValue, useControllableProp, useDisclosure, useMediaQuery, useMergeRefs, useOutsideClick, usePrefersReducedMotion, useTheme, useToast, useToken, useTranslation } from './chunk-GIAB4PHV.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vygruppen/spor-react",
3
- "version": "3.7.3",
3
+ "version": "3.7.5",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -28,6 +28,7 @@ export type ButtonProps = Exclude<
28
28
  | "control"
29
29
  | "primary"
30
30
  | "secondary"
31
+ /** @deprecated Use `secondary` instead */
31
32
  | "tertiary"
32
33
  | "additional"
33
34
  | "ghost"