@vygruppen/spor-react 3.7.2 → 3.7.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.
- package/.turbo/turbo-build.log +10 -10
- package/CHANGELOG.md +22 -0
- package/dist/{CountryCodeSelect-LFJGSTTV.mjs → CountryCodeSelect-FLRREZ6C.mjs} +1 -1
- package/dist/{chunk-YVEFEGE4.mjs → chunk-TMLJPE4H.mjs} +196 -103
- package/dist/index.d.mts +70 -45
- package/dist/index.d.ts +70 -45
- package/dist/index.js +204 -102
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/button/Button.tsx +1 -0
- package/src/button/FloatingActionButton.tsx +9 -9
- package/src/input/ChoiceChip.tsx +2 -0
- package/src/link/TextLink.tsx +5 -1
- package/src/theme/components/accordion.ts +39 -21
- package/src/theme/components/breadcrumb.ts +13 -12
- package/src/theme/components/button.ts +71 -24
- package/src/theme/components/choice-chip.ts +22 -9
- package/src/theme/components/index.ts +1 -1
- package/src/theme/components/link.ts +30 -30
- package/src/theme/components/list.ts +23 -0
package/dist/index.js
CHANGED
@@ -791,10 +791,10 @@ var init_FloatingActionButton = __esm({
|
|
791
791
|
...props
|
792
792
|
}) => {
|
793
793
|
const [isTextVisible, setIsTextVisible] = React50__namespace.default.useState(
|
794
|
-
externalIsTextVisible !== void 0 ? externalIsTextVisible :
|
794
|
+
externalIsTextVisible !== void 0 ? externalIsTextVisible : false
|
795
795
|
);
|
796
796
|
const scrollDirection = useScrollDirection();
|
797
|
-
|
797
|
+
React50.useEffect(() => {
|
798
798
|
if (externalIsTextVisible !== void 0) {
|
799
799
|
return;
|
800
800
|
}
|
@@ -804,7 +804,7 @@ var init_FloatingActionButton = __esm({
|
|
804
804
|
);
|
805
805
|
return () => window.clearTimeout(id);
|
806
806
|
}, [scrollDirection, externalIsTextVisible]);
|
807
|
-
|
807
|
+
React50.useEffect(() => {
|
808
808
|
setIsTextVisible(!!externalIsTextVisible);
|
809
809
|
}, [externalIsTextVisible]);
|
810
810
|
const style = react.useMultiStyleConfig("FloatingActionButton", {
|
@@ -825,7 +825,7 @@ var init_FloatingActionButton = __esm({
|
|
825
825
|
MotionBox,
|
826
826
|
{
|
827
827
|
animate: isTextVisible ? "show" : "hide",
|
828
|
-
initial: "show",
|
828
|
+
initial: externalIsTextVisible ? "show" : "hide",
|
829
829
|
variants: {
|
830
830
|
show: {
|
831
831
|
opacity: 1,
|
@@ -846,7 +846,9 @@ var init_FloatingActionButton = __esm({
|
|
846
846
|
};
|
847
847
|
useScrollDirection = () => {
|
848
848
|
const [scrollDirection, setScrollDirection] = React50__namespace.default.useState(null);
|
849
|
-
const lastScrollPosition = React50__namespace.default.useRef(
|
849
|
+
const lastScrollPosition = React50__namespace.default.useRef(
|
850
|
+
typeof window !== "undefined" ? window.scrollY : 0
|
851
|
+
);
|
850
852
|
React50__namespace.default.useEffect(() => {
|
851
853
|
const onScroll = () => {
|
852
854
|
const delta = window.scrollY - lastScrollPosition.current;
|
@@ -4824,7 +4826,9 @@ var init_ChoiceChip = __esm({
|
|
4824
4826
|
__css: styles3.container,
|
4825
4827
|
"data-checked": dataAttr(state2.isChecked),
|
4826
4828
|
"data-hover": dataAttr(state2.isHovered),
|
4827
|
-
"data-focus": dataAttr(state2.isFocused)
|
4829
|
+
"data-focus": dataAttr(state2.isFocused),
|
4830
|
+
"data-active": dataAttr(state2.isActive),
|
4831
|
+
"data-disabled": dataAttr(state2.isDisabled)
|
4828
4832
|
},
|
4829
4833
|
icon && /* @__PURE__ */ React50__namespace.default.createElement(react.chakra.span, { __css: styles3.icon }, state2.isChecked ? icon.checked : icon.default),
|
4830
4834
|
/* @__PURE__ */ React50__namespace.default.createElement(react.chakra.span, { __css: styles3.label, ...getCheckboxProps() }, variant !== "icon" && children),
|
@@ -12534,8 +12538,6 @@ var init_foundations = __esm({
|
|
12534
12538
|
init_styles();
|
12535
12539
|
}
|
12536
12540
|
});
|
12537
|
-
|
12538
|
-
// src/theme/components/accordion.ts
|
12539
12541
|
var helpers, config3, accordion_default;
|
12540
12542
|
var init_accordion2 = __esm({
|
12541
12543
|
"src/theme/components/accordion.ts"() {
|
@@ -12546,7 +12548,7 @@ var init_accordion2 = __esm({
|
|
12546
12548
|
init_focus_utils();
|
12547
12549
|
helpers = createMultiStyleConfigHelpers(accordionAnatomy.keys);
|
12548
12550
|
config3 = helpers.defineMultiStyleConfig({
|
12549
|
-
baseStyle: {
|
12551
|
+
baseStyle: (props) => ({
|
12550
12552
|
container: {
|
12551
12553
|
border: "none",
|
12552
12554
|
borderRadius: "sm"
|
@@ -12558,8 +12560,9 @@ var init_accordion2 = __esm({
|
|
12558
12560
|
borderRadius: "sm",
|
12559
12561
|
display: "flex",
|
12560
12562
|
justifyContent: "space-between",
|
12561
|
-
color: "darkGrey",
|
12563
|
+
color: themeTools.mode("darkGrey", "white")(props),
|
12562
12564
|
textAlign: "left",
|
12565
|
+
fontFamily: "body",
|
12563
12566
|
fontWeight: "bold",
|
12564
12567
|
...focusVisible({
|
12565
12568
|
notFocus: {
|
@@ -12569,7 +12572,7 @@ var init_accordion2 = __esm({
|
|
12569
12572
|
},
|
12570
12573
|
focus: {
|
12571
12574
|
boxShadow: getBoxShadowString({
|
12572
|
-
borderColor: "greenHaze",
|
12575
|
+
borderColor: themeTools.mode("greenHaze", "azure")(props),
|
12573
12576
|
borderWidth: 2
|
12574
12577
|
})
|
12575
12578
|
}
|
@@ -12586,23 +12589,26 @@ var init_accordion2 = __esm({
|
|
12586
12589
|
icon: {
|
12587
12590
|
fontSize: "1.25em"
|
12588
12591
|
}
|
12589
|
-
},
|
12592
|
+
}),
|
12590
12593
|
variants: {
|
12591
|
-
list: {
|
12594
|
+
list: (props) => ({
|
12592
12595
|
button: {
|
12593
12596
|
boxShadow: "none",
|
12594
12597
|
_hover: {
|
12595
|
-
backgroundColor: "seaMist"
|
12598
|
+
backgroundColor: themeTools.mode("seaMist", "pine")(props)
|
12596
12599
|
},
|
12597
12600
|
_active: {
|
12598
|
-
backgroundColor: "mint"
|
12601
|
+
backgroundColor: themeTools.mode("mint", "whiteAlpha.200")(props)
|
12599
12602
|
}
|
12600
12603
|
}
|
12601
|
-
},
|
12602
|
-
outline: {
|
12604
|
+
}),
|
12605
|
+
outline: (props) => ({
|
12603
12606
|
container: {
|
12604
12607
|
boxShadow: getBoxShadowString({
|
12605
|
-
borderColor:
|
12608
|
+
borderColor: themeTools.mode(
|
12609
|
+
colors.blackAlpha["400"],
|
12610
|
+
colors.whiteAlpha["400"]
|
12611
|
+
)(props)
|
12606
12612
|
})
|
12607
12613
|
},
|
12608
12614
|
button: {
|
@@ -12611,23 +12617,24 @@ var init_accordion2 = __esm({
|
|
12611
12617
|
},
|
12612
12618
|
_hover: {
|
12613
12619
|
boxShadow: getBoxShadowString({
|
12614
|
-
borderColor: "darkGrey",
|
12620
|
+
borderColor: themeTools.mode("darkGrey", "white")(props),
|
12615
12621
|
borderWidth: 2
|
12616
12622
|
})
|
12617
12623
|
},
|
12618
12624
|
_active: {
|
12619
|
-
backgroundColor: "mint",
|
12625
|
+
backgroundColor: themeTools.mode("mint", "whiteAlpha.100")(props),
|
12620
12626
|
boxShadow: getBoxShadowString({
|
12621
|
-
borderColor: "darkGrey"
|
12627
|
+
borderColor: themeTools.mode("darkGrey", colors.whiteAlpha[400])(props)
|
12622
12628
|
})
|
12623
12629
|
}
|
12624
12630
|
}
|
12625
|
-
},
|
12626
|
-
card: {
|
12631
|
+
}),
|
12632
|
+
card: (props) => ({
|
12627
12633
|
container: {
|
12634
|
+
backgroundColor: themeTools.mode("white", "whiteAlpha.100")(props),
|
12628
12635
|
boxShadow: getBoxShadowString({
|
12629
|
-
baseShadow: "sm",
|
12630
|
-
borderColor: "silver"
|
12636
|
+
baseShadow: themeTools.mode("sm", "none")(props),
|
12637
|
+
borderColor: themeTools.mode("silver", "whiteAlpha.400")(props)
|
12631
12638
|
})
|
12632
12639
|
},
|
12633
12640
|
button: {
|
@@ -12635,20 +12642,30 @@ var init_accordion2 = __esm({
|
|
12635
12642
|
borderBottomRadius: "none"
|
12636
12643
|
},
|
12637
12644
|
_hover: {
|
12638
|
-
backgroundColor: "seaMist"
|
12645
|
+
backgroundColor: themeTools.mode("seaMist", "whiteAlpha.200")(props),
|
12646
|
+
boxShadow: getBoxShadowString({
|
12647
|
+
borderColor: themeTools.mode("darkGrey", "white")(props),
|
12648
|
+
borderWidth: 1
|
12649
|
+
})
|
12639
12650
|
},
|
12640
12651
|
_active: {
|
12641
|
-
backgroundColor: "mint"
|
12652
|
+
backgroundColor: themeTools.mode("mint", "inherit")(props),
|
12653
|
+
boxShadow: getBoxShadowString({
|
12654
|
+
baseShadow: "none",
|
12655
|
+
borderWidth: 1,
|
12656
|
+
borderColor: themeTools.mode("darkGrey", "whiteAlpha.400")(props)
|
12657
|
+
})
|
12642
12658
|
}
|
12643
12659
|
}
|
12644
|
-
}
|
12660
|
+
})
|
12645
12661
|
},
|
12646
12662
|
sizes: {
|
12647
12663
|
sm: {
|
12648
12664
|
button: {
|
12649
12665
|
fontSize: ["mobile.xs", null, "desktop.xs"],
|
12650
12666
|
paddingX: 2,
|
12651
|
-
paddingY: 1
|
12667
|
+
paddingY: 1,
|
12668
|
+
minHeight: 6
|
12652
12669
|
},
|
12653
12670
|
panel: {
|
12654
12671
|
fontSize: ["mobile.xs", null, "desktop.xs"],
|
@@ -12659,7 +12676,8 @@ var init_accordion2 = __esm({
|
|
12659
12676
|
button: {
|
12660
12677
|
fontSize: ["mobile.sm", null, "desktop.sm"],
|
12661
12678
|
paddingX: 3,
|
12662
|
-
paddingY: 1
|
12679
|
+
paddingY: 1,
|
12680
|
+
minHeight: 7
|
12663
12681
|
},
|
12664
12682
|
panel: {
|
12665
12683
|
fontSize: ["mobile.sm", null, "desktop.sm"],
|
@@ -12670,7 +12688,8 @@ var init_accordion2 = __esm({
|
|
12670
12688
|
button: {
|
12671
12689
|
fontSize: ["mobile.sm", null, "desktop.sm"],
|
12672
12690
|
paddingX: 3,
|
12673
|
-
paddingY: 2
|
12691
|
+
paddingY: 2,
|
12692
|
+
minHeight: 8
|
12674
12693
|
},
|
12675
12694
|
panel: {
|
12676
12695
|
fontSize: ["mobile.sm", null, "desktop.sm"],
|
@@ -12842,8 +12861,6 @@ var init_badge = __esm({
|
|
12842
12861
|
};
|
12843
12862
|
}
|
12844
12863
|
});
|
12845
|
-
|
12846
|
-
// src/theme/components/breadcrumb.ts
|
12847
12864
|
var defineMultiStyleConfig27, definePartsStyle27, baseStyleLink2, baseStyle43, breadcrumb_default;
|
12848
12865
|
var init_breadcrumb2 = __esm({
|
12849
12866
|
"src/theme/components/breadcrumb.ts"() {
|
@@ -12851,7 +12868,7 @@ var init_breadcrumb2 = __esm({
|
|
12851
12868
|
init_dist3();
|
12852
12869
|
init_box_shadow_utils();
|
12853
12870
|
({ defineMultiStyleConfig: defineMultiStyleConfig27, definePartsStyle: definePartsStyle27 } = createMultiStyleConfigHelpers(breadcrumbAnatomy.keys));
|
12854
|
-
baseStyleLink2 = defineStyle({
|
12871
|
+
baseStyleLink2 = defineStyle((props) => ({
|
12855
12872
|
transitionProperty: "common",
|
12856
12873
|
transitionDuration: "fast",
|
12857
12874
|
transitionTimingFunction: "ease-out",
|
@@ -12864,26 +12881,29 @@ var init_breadcrumb2 = __esm({
|
|
12864
12881
|
paddingX: 0.5,
|
12865
12882
|
borderRadius: "xs",
|
12866
12883
|
_hover: {
|
12867
|
-
backgroundColor: "
|
12884
|
+
backgroundColor: themeTools.mode("seaMist", "pine")(props)
|
12868
12885
|
},
|
12869
12886
|
_focusVisible: {
|
12870
12887
|
boxShadow: getBoxShadowString({
|
12871
|
-
borderColor: "greenHaze",
|
12888
|
+
borderColor: themeTools.mode("greenHaze", "azure")(props),
|
12872
12889
|
borderWidth: 2
|
12873
|
-
})
|
12890
|
+
}),
|
12891
|
+
notFocus: {
|
12892
|
+
notFocus: { boxShadow: "none" }
|
12893
|
+
}
|
12874
12894
|
},
|
12875
12895
|
_active: {
|
12876
|
-
backgroundColor: "mint"
|
12896
|
+
backgroundColor: themeTools.mode("mint", "whiteAlpha.200")(props)
|
12877
12897
|
}
|
12878
12898
|
}
|
12879
|
-
});
|
12880
|
-
baseStyle43 = definePartsStyle27({
|
12881
|
-
link: baseStyleLink2,
|
12899
|
+
}));
|
12900
|
+
baseStyle43 = definePartsStyle27((props) => ({
|
12901
|
+
link: baseStyleLink2(props),
|
12882
12902
|
list: {
|
12883
12903
|
flexWrap: "wrap",
|
12884
12904
|
alignItems: "flex-start"
|
12885
12905
|
}
|
12886
|
-
});
|
12906
|
+
}));
|
12887
12907
|
breadcrumb_default = defineMultiStyleConfig27({
|
12888
12908
|
baseStyle: baseStyle43
|
12889
12909
|
});
|
@@ -12920,28 +12940,39 @@ var init_button2 = __esm({
|
|
12920
12940
|
}
|
12921
12941
|
},
|
12922
12942
|
variants: {
|
12923
|
-
control: {
|
12924
|
-
backgroundColor: "darkTeal",
|
12925
|
-
color: "white",
|
12943
|
+
control: (props) => ({
|
12944
|
+
backgroundColor: themeTools.mode("darkTeal", "mint")(props),
|
12945
|
+
color: themeTools.mode("white", "darkTeal")(props),
|
12926
12946
|
...focusVisible({
|
12927
12947
|
focus: {
|
12928
|
-
boxShadow: `inset 0 0 0 4px ${
|
12948
|
+
boxShadow: `inset 0 0 0 4px ${themeTools.mode(
|
12949
|
+
colors.darkTeal,
|
12950
|
+
colors.seaMist
|
12951
|
+
)(props)}, inset 0 0 0 6px currentColor`
|
12929
12952
|
},
|
12930
12953
|
notFocus: { boxShadow: "none" }
|
12931
12954
|
}),
|
12932
12955
|
_hover: {
|
12933
|
-
backgroundColor: "night"
|
12956
|
+
backgroundColor: themeTools.mode("night", "coralGreen")(props)
|
12934
12957
|
},
|
12935
12958
|
_active: {
|
12936
|
-
backgroundColor: "pine"
|
12959
|
+
backgroundColor: themeTools.mode("pine", "white")(props)
|
12937
12960
|
}
|
12938
|
-
},
|
12939
|
-
primary: {
|
12961
|
+
}),
|
12962
|
+
primary: (props) => ({
|
12963
|
+
// FIXME: Update to use a global defined background color for darkMode whenever it is available.
|
12964
|
+
// hardcoded background color as alpha-"hack" below is not feasible for dark mode with solid background color
|
12940
12965
|
backgroundColor: "primaryGreen",
|
12941
12966
|
color: "white",
|
12942
12967
|
...focusVisible({
|
12943
12968
|
focus: {
|
12944
|
-
boxShadow: `inset 0 0 0
|
12969
|
+
boxShadow: `inset 0 0 0 2px ${themeTools.mode(
|
12970
|
+
colors.greenHaze,
|
12971
|
+
colors.azure
|
12972
|
+
)(props)}, inset 0 0 0 4px ${themeTools.mode(
|
12973
|
+
colors.white,
|
12974
|
+
colors.darkGrey
|
12975
|
+
)(props)}`
|
12945
12976
|
},
|
12946
12977
|
notFocus: { boxShadow: "none" }
|
12947
12978
|
}),
|
@@ -12951,25 +12982,61 @@ var init_button2 = __esm({
|
|
12951
12982
|
_active: {
|
12952
12983
|
backgroundColor: "azure"
|
12953
12984
|
}
|
12954
|
-
},
|
12955
|
-
secondary: {
|
12956
|
-
|
12957
|
-
|
12985
|
+
}),
|
12986
|
+
secondary: (props) => ({
|
12987
|
+
// FIXME: Update to use global defined background color for darkMode whenever it is available instead of alpha
|
12988
|
+
backgroundColor: themeTools.mode("seaMist", "whiteAlpha.100")(props),
|
12989
|
+
color: themeTools.mode("darkTeal", "white")(props),
|
12990
|
+
// order is important here for now while we do not have global defined background color for darkMode
|
12991
|
+
_hover: {
|
12992
|
+
backgroundColor: themeTools.mode("coralGreen", "whiteAlpha.200")(props)
|
12993
|
+
},
|
12958
12994
|
...focusVisible({
|
12959
12995
|
focus: {
|
12960
|
-
boxShadow: `inset 0 0 0
|
12996
|
+
boxShadow: `inset 0 0 0 2px ${themeTools.mode(
|
12997
|
+
colors.greenHaze,
|
12998
|
+
colors.azure
|
12999
|
+
)(props)}, inset 0 0 0 4px ${themeTools.mode(
|
13000
|
+
colors.white,
|
13001
|
+
colors.blackAlpha[300]
|
13002
|
+
)(props)}`,
|
13003
|
+
_hover: {
|
13004
|
+
boxShadow: `inset 0 0 0 2px ${themeTools.mode(
|
13005
|
+
colors.greenHaze,
|
13006
|
+
colors.azure
|
13007
|
+
)(props)}, inset 0 0 0 4px ${themeTools.mode(
|
13008
|
+
colors.white,
|
13009
|
+
colors.blackAlpha[500]
|
13010
|
+
)(props)}`
|
13011
|
+
}
|
12961
13012
|
},
|
12962
13013
|
notFocus: {
|
12963
13014
|
boxShadow: "none"
|
12964
13015
|
}
|
12965
13016
|
}),
|
12966
|
-
_hover: {
|
12967
|
-
backgroundColor: "blueGreen"
|
12968
|
-
},
|
12969
13017
|
_active: {
|
12970
|
-
backgroundColor: "mint"
|
13018
|
+
backgroundColor: themeTools.mode("mint", "whiteAlpha.300")(props),
|
13019
|
+
boxShadow: `inset 0 0 0 2px ${themeTools.mode(
|
13020
|
+
colors.greenHaze,
|
13021
|
+
colors.azure
|
13022
|
+
)(props)}, inset 0 0 0 4px ${themeTools.mode(
|
13023
|
+
colors.white,
|
13024
|
+
colors.blackAlpha[600]
|
13025
|
+
)(props)}`,
|
13026
|
+
_hover: {
|
13027
|
+
boxShadow: `inset 0 0 0 2px ${themeTools.mode(
|
13028
|
+
colors.greenHaze,
|
13029
|
+
colors.azure
|
13030
|
+
)(props)}, inset 0 0 0 4px ${themeTools.mode(
|
13031
|
+
colors.white,
|
13032
|
+
colors.blackAlpha[600]
|
13033
|
+
)(props)}`
|
13034
|
+
}
|
12971
13035
|
}
|
12972
|
-
},
|
13036
|
+
}),
|
13037
|
+
/**
|
13038
|
+
* @deprecated use `secondary` instead.
|
13039
|
+
*/
|
12973
13040
|
tertiary: {
|
12974
13041
|
backgroundColor: "mint",
|
12975
13042
|
color: "darkGrey",
|
@@ -12998,7 +13065,7 @@ var init_button2 = __esm({
|
|
12998
13065
|
...focusVisible({
|
12999
13066
|
focus: {
|
13000
13067
|
boxShadow: getBoxShadowString({
|
13001
|
-
borderWidth:
|
13068
|
+
borderWidth: 2,
|
13002
13069
|
borderColor: "greenHaze"
|
13003
13070
|
})
|
13004
13071
|
},
|
@@ -13529,37 +13596,49 @@ var parts3, helpers5, config10, choice_chip_default;
|
|
13529
13596
|
var init_choice_chip = __esm({
|
13530
13597
|
"src/theme/components/choice-chip.ts"() {
|
13531
13598
|
init_box_shadow_utils();
|
13599
|
+
init_foundations();
|
13532
13600
|
parts3 = themeTools.anatomy("choice-chip").parts("container", "icon", "label");
|
13533
13601
|
helpers5 = react.createMultiStyleConfigHelpers(parts3.keys);
|
13534
13602
|
config10 = helpers5.defineMultiStyleConfig({
|
13535
13603
|
baseStyle: (props) => ({
|
13536
13604
|
container: {
|
13537
|
-
backgroundColor: "white",
|
13605
|
+
backgroundColor: themeTools.mode("white", "transparent")(props),
|
13538
13606
|
boxShadow: getBoxShadowString({ borderColor: "celadon" }),
|
13539
|
-
color: "darkTeal",
|
13607
|
+
color: themeTools.mode("darkTeal", "white")(props),
|
13540
13608
|
display: "inline-flex",
|
13541
13609
|
alignItems: "center",
|
13542
13610
|
fontSize: "16px",
|
13543
13611
|
px: 1,
|
13544
13612
|
_checked: {
|
13545
|
-
|
13613
|
+
color: "white",
|
13614
|
+
background: "pine",
|
13546
13615
|
boxShadow: getBoxShadowString({ borderColor: "celadon" })
|
13547
13616
|
},
|
13548
13617
|
"input:focus-visible + &": {
|
13549
|
-
boxShadow:
|
13550
|
-
|
13551
|
-
|
13552
|
-
}
|
13618
|
+
boxShadow: `inset 0 0 0 2px ${themeTools.mode(
|
13619
|
+
colors.greenHaze,
|
13620
|
+
colors.azure
|
13621
|
+
)(props)}, inset 0 0 0 4px ${themeTools.mode(
|
13622
|
+
colors.white,
|
13623
|
+
colors.darkGrey
|
13624
|
+
)(props)}`
|
13553
13625
|
},
|
13554
13626
|
"@media (hover:hover)": {
|
13555
13627
|
_hover: {
|
13628
|
+
color: themeTools.mode("darkTeal", "white")(props),
|
13556
13629
|
boxShadow: getBoxShadowString({
|
13557
13630
|
borderColor: "greenHaze",
|
13558
13631
|
borderWidth: 2
|
13559
13632
|
}),
|
13560
|
-
background: "
|
13633
|
+
background: themeTools.mode("coralGreen", "whiteAlpha.200")(props),
|
13561
13634
|
cursor: "pointer"
|
13562
13635
|
}
|
13636
|
+
},
|
13637
|
+
_active: {
|
13638
|
+
backgroundColor: themeTools.mode("mint", "whiteAlpha.300")(props),
|
13639
|
+
boxShadow: getBoxShadowString({
|
13640
|
+
borderColor: "pine"
|
13641
|
+
})
|
13563
13642
|
}
|
13564
13643
|
},
|
13565
13644
|
icon: {
|
@@ -14869,80 +14948,79 @@ var init_link2 = __esm({
|
|
14869
14948
|
}
|
14870
14949
|
},
|
14871
14950
|
variants: {
|
14872
|
-
primary: {
|
14873
|
-
color: "pine",
|
14951
|
+
primary: (props) => ({
|
14952
|
+
color: themeTools.mode("pine", "seaMist")(props),
|
14874
14953
|
...focusVisible({
|
14875
14954
|
focus: {
|
14876
|
-
|
14877
|
-
backgroundColor: "pine",
|
14955
|
+
backgroundColor: "transparent",
|
14878
14956
|
boxShadow: getBoxShadowString({
|
14879
|
-
borderColor: "
|
14880
|
-
borderWidth:
|
14957
|
+
borderColor: "azure",
|
14958
|
+
borderWidth: 2,
|
14881
14959
|
isInset: false
|
14882
14960
|
})
|
14883
14961
|
},
|
14884
14962
|
notFocus: {
|
14885
14963
|
color: "pine",
|
14886
|
-
|
14887
|
-
|
14964
|
+
backgroundColor: "transparent",
|
14965
|
+
boxShadow: "none"
|
14888
14966
|
}
|
14889
14967
|
}),
|
14890
14968
|
_hover: {
|
14891
|
-
|
14892
|
-
|
14969
|
+
color: "white",
|
14970
|
+
backgroundColor: "pine",
|
14893
14971
|
boxShadow: getBoxShadowString({
|
14894
|
-
borderColor: "
|
14895
|
-
borderWidth:
|
14972
|
+
borderColor: "pine",
|
14973
|
+
borderWidth: 2,
|
14896
14974
|
isInset: false
|
14897
14975
|
})
|
14898
14976
|
},
|
14899
14977
|
_active: {
|
14900
|
-
|
14978
|
+
color: "white",
|
14979
|
+
backgroundColor: "azure",
|
14901
14980
|
boxShadow: getBoxShadowString({
|
14902
|
-
borderColor: "
|
14903
|
-
borderWidth:
|
14981
|
+
borderColor: "azure",
|
14982
|
+
borderWidth: 2,
|
14904
14983
|
isInset: false
|
14905
|
-
})
|
14906
|
-
color: "pine"
|
14984
|
+
})
|
14907
14985
|
}
|
14908
|
-
},
|
14986
|
+
}),
|
14909
14987
|
secondary: (props) => ({
|
14910
|
-
color: "darkGrey",
|
14988
|
+
color: themeTools.mode("darkGrey", "white")(props),
|
14911
14989
|
...focusVisible({
|
14912
14990
|
focus: {
|
14913
|
-
|
14914
|
-
backgroundColor: "darkGrey",
|
14991
|
+
backgroundColor: "transparent",
|
14915
14992
|
boxShadow: getBoxShadowString({
|
14916
|
-
borderColor: "
|
14917
|
-
borderWidth:
|
14993
|
+
borderColor: "azure",
|
14994
|
+
borderWidth: 2,
|
14918
14995
|
isInset: false
|
14919
14996
|
})
|
14920
14997
|
},
|
14921
14998
|
notFocus: {
|
14922
|
-
color: "darkGrey",
|
14923
14999
|
boxShadow: "none",
|
14924
15000
|
backgroundColor: "transparent"
|
14925
15001
|
}
|
14926
15002
|
}),
|
14927
15003
|
_hover: {
|
14928
|
-
|
14929
|
-
backgroundColor: "blackAlpha.100",
|
15004
|
+
backgroundColor: themeTools.mode("seaMist", "pine")(props),
|
14930
15005
|
boxShadow: getBoxShadowString({
|
14931
|
-
borderColor:
|
14932
|
-
borderWidth:
|
15006
|
+
borderColor: themeTools.mode("seaMist", "pine")(props),
|
15007
|
+
borderWidth: 2,
|
14933
15008
|
isInset: false
|
14934
15009
|
})
|
14935
15010
|
},
|
14936
15011
|
_active: {
|
14937
|
-
|
14938
|
-
backgroundColor: "mint",
|
15012
|
+
backgroundColor: themeTools.mode("mint", "whiteAlpha.200")(props),
|
14939
15013
|
boxShadow: getBoxShadowString({
|
14940
|
-
borderColor: "mint",
|
14941
|
-
borderWidth:
|
15014
|
+
borderColor: themeTools.mode("mint", "whiteAlpha.200")(props),
|
15015
|
+
borderWidth: 2,
|
14942
15016
|
isInset: false
|
14943
15017
|
})
|
14944
15018
|
}
|
14945
15019
|
}),
|
15020
|
+
/**
|
15021
|
+
* @deprecated tertiary style will be deprecated in the future.
|
15022
|
+
* Please use the secondary style instead.
|
15023
|
+
*/
|
14946
15024
|
tertiary: (props) => ({
|
14947
15025
|
color: "white",
|
14948
15026
|
...focusVisible({
|
@@ -14988,6 +15066,28 @@ var init_link2 = __esm({
|
|
14988
15066
|
link_default = config23;
|
14989
15067
|
}
|
14990
15068
|
});
|
15069
|
+
|
15070
|
+
// src/theme/components/list.ts
|
15071
|
+
var defineMultiStyleConfig28, definePartsStyle28, baseStyleIcon8, baseStyle45, list_default;
|
15072
|
+
var init_list2 = __esm({
|
15073
|
+
"src/theme/components/list.ts"() {
|
15074
|
+
init_dist4();
|
15075
|
+
init_dist3();
|
15076
|
+
({ defineMultiStyleConfig: defineMultiStyleConfig28, definePartsStyle: definePartsStyle28 } = createMultiStyleConfigHelpers(listAnatomy.keys));
|
15077
|
+
baseStyleIcon8 = defineStyle({
|
15078
|
+
marginEnd: "2",
|
15079
|
+
display: "inline",
|
15080
|
+
verticalAlign: "text-bottom",
|
15081
|
+
fontFamily: "body"
|
15082
|
+
});
|
15083
|
+
baseStyle45 = definePartsStyle28({
|
15084
|
+
icon: baseStyleIcon8
|
15085
|
+
});
|
15086
|
+
list_default = defineMultiStyleConfig28({
|
15087
|
+
baseStyle: baseStyle45
|
15088
|
+
});
|
15089
|
+
}
|
15090
|
+
});
|
14991
15091
|
var parts10, helpers15, config24, listbox_default;
|
14992
15092
|
var init_listbox = __esm({
|
14993
15093
|
"src/theme/components/listbox.ts"() {
|
@@ -16455,6 +16555,7 @@ __export(components_exports, {
|
|
16455
16555
|
Input: () => input_default,
|
16456
16556
|
LineIcon: () => line_icon_default,
|
16457
16557
|
Link: () => link_default,
|
16558
|
+
List: () => list_default,
|
16458
16559
|
ListBox: () => listbox_default,
|
16459
16560
|
MediaControllerButton: () => media_controller_button_default,
|
16460
16561
|
Modal: () => modal_default,
|
@@ -16494,6 +16595,7 @@ var init_components = __esm({
|
|
16494
16595
|
init_input2();
|
16495
16596
|
init_line_icon();
|
16496
16597
|
init_link2();
|
16598
|
+
init_list2();
|
16497
16599
|
init_listbox();
|
16498
16600
|
init_media_controller_button();
|
16499
16601
|
init_modal2();
|
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-
|
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-TMLJPE4H.mjs';
|
package/package.json
CHANGED