@vygruppen/spor-react 13.1.4 → 13.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +12 -12
- package/.turbo/turbo-postinstall.log +2 -2
- package/CHANGELOG.md +6 -0
- package/dist/index.cjs +351 -67
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +248 -38
- package/dist/index.d.ts +248 -38
- package/dist/index.mjs +349 -68
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/input/ChoiceChip.tsx +133 -71
- package/src/input/FilterChip.tsx +85 -0
- package/src/input/index.ts +1 -0
- package/src/theme/slot-recipes/anatomy.ts +1 -0
- package/src/theme/slot-recipes/choice-chip.ts +77 -49
- package/src/theme/slot-recipes/filter-chip.ts +197 -0
- package/src/theme/slot-recipes/index.ts +3 -1
package/dist/index.mjs
CHANGED
|
@@ -3738,31 +3738,69 @@ var CheckboxGroup = (props) => {
|
|
|
3738
3738
|
const { direction = "row", children, gap = 1, ...rest } = props;
|
|
3739
3739
|
return /* @__PURE__ */ jsx(CheckboxGroup$1, { ...rest, children: /* @__PURE__ */ jsx(Stack, { direction, gap, children }) });
|
|
3740
3740
|
};
|
|
3741
|
+
var ChoiceChipContext = createContext({
|
|
3742
|
+
variant: "core",
|
|
3743
|
+
size: "sm"
|
|
3744
|
+
});
|
|
3745
|
+
var useChoiceChipContext = () => useContext(ChoiceChipContext);
|
|
3741
3746
|
var ChoiceChip = ({
|
|
3742
3747
|
ref,
|
|
3743
|
-
|
|
3744
|
-
icon,
|
|
3745
|
-
onCheckedChange,
|
|
3746
|
-
...rootProps
|
|
3748
|
+
...props
|
|
3747
3749
|
}) => {
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
+
const { children, inputProps, icon, variant, size, css, ...rest } = props;
|
|
3751
|
+
const { variant: contextVariant, size: contextSize } = useChoiceChipContext();
|
|
3752
|
+
const uniqueId = useId();
|
|
3753
|
+
const itemControlId = `radio-card-item-control-${uniqueId}`;
|
|
3754
|
+
const inputHasAriaLabel = (inputProps == null ? void 0 : inputProps["aria-labelledby"]) || (inputProps == null ? void 0 : inputProps["aria-label"]);
|
|
3755
|
+
const finalVariant = variant ?? contextVariant;
|
|
3756
|
+
const finalSize = size ?? contextSize;
|
|
3757
|
+
const recipe = useSlotRecipe({ key: "choiceChip" });
|
|
3758
|
+
const styles = recipe({
|
|
3759
|
+
variant: finalVariant,
|
|
3760
|
+
size: finalSize
|
|
3761
|
+
});
|
|
3762
|
+
return /* @__PURE__ */ jsxs(RadioCard$1.Item, { ...rest, css: { ...css, ...styles.item }, children: [
|
|
3763
|
+
/* @__PURE__ */ jsx(
|
|
3764
|
+
RadioCard$1.ItemHiddenInput,
|
|
3765
|
+
{
|
|
3766
|
+
"aria-labelledby": inputHasAriaLabel ? inputProps == null ? void 0 : inputProps["aria-labelledby"] : itemControlId,
|
|
3767
|
+
ref,
|
|
3768
|
+
...inputProps
|
|
3769
|
+
}
|
|
3770
|
+
),
|
|
3771
|
+
/* @__PURE__ */ jsx(
|
|
3772
|
+
RadioCard$1.ItemControl,
|
|
3773
|
+
{
|
|
3774
|
+
id: itemControlId,
|
|
3775
|
+
"aria-hidden": true,
|
|
3776
|
+
css: styles.itemControl,
|
|
3777
|
+
children: /* @__PURE__ */ jsx(RadioCard$1.ItemContext, { children: ({ checked }) => /* @__PURE__ */ jsxs(RadioCard$1.Label, { css: styles.label, children: [
|
|
3778
|
+
checked ? (icon == null ? void 0 : icon.checked) && /* @__PURE__ */ jsx(Span, { children: icon.checked }) : (icon == null ? void 0 : icon.default) && /* @__PURE__ */ jsx(Span, { children: icon.default }),
|
|
3779
|
+
children
|
|
3780
|
+
] }) })
|
|
3781
|
+
}
|
|
3782
|
+
)
|
|
3783
|
+
] });
|
|
3784
|
+
};
|
|
3785
|
+
var ChoiceChipGroup = ({
|
|
3786
|
+
ref,
|
|
3787
|
+
...props
|
|
3788
|
+
}) => {
|
|
3789
|
+
const { children, variant, size, css, ...rest } = props;
|
|
3790
|
+
const recipe = useSlotRecipe({ key: "choiceChip" });
|
|
3791
|
+
const styles = recipe({ variant, size });
|
|
3792
|
+
return /* @__PURE__ */ jsx(ChoiceChipContext.Provider, { value: { variant, size }, children: /* @__PURE__ */ jsx(
|
|
3793
|
+
RadioCard$1.Root,
|
|
3750
3794
|
{
|
|
3751
|
-
...
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
children
|
|
3756
|
-
/* @__PURE__ */ jsx(CheckboxCard.HiddenInput, { ref }),
|
|
3757
|
-
/* @__PURE__ */ jsx(CheckboxCard.Control, { children: /* @__PURE__ */ jsx(CheckboxCard.Content, { children: /* @__PURE__ */ jsxs(CheckboxCard.Label, { children: [
|
|
3758
|
-
icon && /* @__PURE__ */ jsx(Span, { width: "24px", children: checked ? icon.checked : icon.default }),
|
|
3759
|
-
rootProps.chipType !== "icon" && children,
|
|
3760
|
-
rootProps.chipType === "filter" && checked && /* @__PURE__ */ jsx(CloseOutline24Icon, {})
|
|
3761
|
-
] }) }) })
|
|
3762
|
-
] }) })
|
|
3795
|
+
css: { ...styles.root, ...css },
|
|
3796
|
+
ref,
|
|
3797
|
+
variant,
|
|
3798
|
+
...rest,
|
|
3799
|
+
children
|
|
3763
3800
|
}
|
|
3764
|
-
);
|
|
3801
|
+
) });
|
|
3765
3802
|
};
|
|
3803
|
+
var ChoiceChipLabel = RadioCard$1.Label;
|
|
3766
3804
|
var Popover = ({
|
|
3767
3805
|
ref,
|
|
3768
3806
|
children,
|
|
@@ -4019,6 +4057,31 @@ var FieldsetLegend = Fieldset$1.Legend;
|
|
|
4019
4057
|
var FieldsetContent = Fieldset$1.Content;
|
|
4020
4058
|
var FieldsetHelperText = Fieldset$1.HelperText;
|
|
4021
4059
|
var FieldsetErrorText = Fieldset$1.ErrorText;
|
|
4060
|
+
var FilterChip = ({
|
|
4061
|
+
ref,
|
|
4062
|
+
children,
|
|
4063
|
+
icon,
|
|
4064
|
+
onCheckedChange,
|
|
4065
|
+
...rootProps
|
|
4066
|
+
}) => {
|
|
4067
|
+
return /* @__PURE__ */ jsx(
|
|
4068
|
+
CheckboxCard.Root,
|
|
4069
|
+
{
|
|
4070
|
+
...rootProps,
|
|
4071
|
+
...onCheckedChange && {
|
|
4072
|
+
onCheckedChange: (details) => onCheckedChange(!!details.checked)
|
|
4073
|
+
},
|
|
4074
|
+
children: /* @__PURE__ */ jsx(CheckboxCard.Context, { children: ({ checked }) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
4075
|
+
/* @__PURE__ */ jsx(CheckboxCard.HiddenInput, { ref }),
|
|
4076
|
+
/* @__PURE__ */ jsx(CheckboxCard.Control, { children: /* @__PURE__ */ jsx(CheckboxCard.Content, { children: /* @__PURE__ */ jsxs(CheckboxCard.Label, { children: [
|
|
4077
|
+
checked ? (icon == null ? void 0 : icon.checked) && /* @__PURE__ */ jsx(Span, { children: icon.checked }) : (icon == null ? void 0 : icon.default) && /* @__PURE__ */ jsx(Span, { children: icon.default }),
|
|
4078
|
+
rootProps.chipType !== "icon" && children,
|
|
4079
|
+
rootProps.chipType === "filter" && checked && /* @__PURE__ */ jsx(CloseOutline24Icon, {})
|
|
4080
|
+
] }) }) })
|
|
4081
|
+
] }) })
|
|
4082
|
+
}
|
|
4083
|
+
);
|
|
4084
|
+
};
|
|
4022
4085
|
var InputChip = ({
|
|
4023
4086
|
startIcon,
|
|
4024
4087
|
endIcon,
|
|
@@ -7813,7 +7876,8 @@ var radioCardAnatomy = createAnatomy("radio-card").parts(
|
|
|
7813
7876
|
"label",
|
|
7814
7877
|
"itemText",
|
|
7815
7878
|
"itemDescription",
|
|
7816
|
-
"itemContent"
|
|
7879
|
+
"itemContent",
|
|
7880
|
+
"itemControl"
|
|
7817
7881
|
);
|
|
7818
7882
|
var radioAnatomy = createAnatomy("radio").parts(
|
|
7819
7883
|
"root",
|
|
@@ -8594,38 +8658,30 @@ var checkboxSlotRecipe = defineSlotRecipe({
|
|
|
8594
8658
|
}
|
|
8595
8659
|
});
|
|
8596
8660
|
var choiceChipSlotRecipe = defineSlotRecipe({
|
|
8597
|
-
|
|
8598
|
-
|
|
8661
|
+
className: "spor-choice-chip",
|
|
8662
|
+
slots: radioCardAnatomy.keys(),
|
|
8599
8663
|
base: {
|
|
8600
8664
|
root: {
|
|
8601
|
-
display: "
|
|
8602
|
-
|
|
8603
|
-
|
|
8604
|
-
|
|
8665
|
+
display: "flex",
|
|
8666
|
+
flexDirection: "row",
|
|
8667
|
+
gap: "1",
|
|
8668
|
+
width: "fit-content"
|
|
8669
|
+
},
|
|
8670
|
+
item: {
|
|
8671
|
+
display: "flex-inline",
|
|
8605
8672
|
transitionProperty: "all",
|
|
8606
|
-
borderRadius: "xl",
|
|
8607
8673
|
transitionDuration: "fast",
|
|
8608
|
-
paddingInlineStart: "2",
|
|
8609
|
-
paddingInlineEnd: "2",
|
|
8610
|
-
outline: "1px solid",
|
|
8611
|
-
outlineColor: "outline.core",
|
|
8612
8674
|
_checked: {
|
|
8613
|
-
backgroundColor: "surface.brand",
|
|
8614
|
-
borderRadius: "sm",
|
|
8615
8675
|
outline: "none",
|
|
8616
|
-
|
|
8676
|
+
_focusVisible: {
|
|
8677
|
+
outline: "2px solid",
|
|
8678
|
+
outlineColor: "outline.focus",
|
|
8679
|
+
outlineOffset: "1px"
|
|
8680
|
+
},
|
|
8617
8681
|
_hover: {
|
|
8618
|
-
|
|
8619
|
-
_active: {
|
|
8620
|
-
backgroundColor: "surface.brand.active"
|
|
8621
|
-
}
|
|
8682
|
+
outline: "none"
|
|
8622
8683
|
}
|
|
8623
8684
|
},
|
|
8624
|
-
_focusVisible: {
|
|
8625
|
-
outline: "2px solid",
|
|
8626
|
-
outlineColor: "outline.focus",
|
|
8627
|
-
outlineOffset: "1px"
|
|
8628
|
-
},
|
|
8629
8685
|
_disabled: {
|
|
8630
8686
|
pointerEvents: "none",
|
|
8631
8687
|
boxShadow: "none",
|
|
@@ -8650,32 +8706,44 @@ var choiceChipSlotRecipe = defineSlotRecipe({
|
|
|
8650
8706
|
}
|
|
8651
8707
|
}
|
|
8652
8708
|
},
|
|
8709
|
+
itemControl: {
|
|
8710
|
+
display: "flex",
|
|
8711
|
+
alignItems: "center",
|
|
8712
|
+
justifyContent: "center"
|
|
8713
|
+
},
|
|
8653
8714
|
label: {
|
|
8654
8715
|
display: "flex",
|
|
8655
8716
|
alignItems: "center",
|
|
8717
|
+
justifyContent: "center",
|
|
8656
8718
|
gap: "1"
|
|
8657
8719
|
}
|
|
8658
8720
|
},
|
|
8659
8721
|
variants: {
|
|
8660
8722
|
size: {
|
|
8661
8723
|
xs: {
|
|
8662
|
-
|
|
8724
|
+
item: {
|
|
8725
|
+
borderRadius: "xl",
|
|
8663
8726
|
_checked: {
|
|
8664
|
-
borderRadius: "
|
|
8665
|
-
}
|
|
8727
|
+
borderRadius: "9px"
|
|
8728
|
+
}
|
|
8729
|
+
},
|
|
8730
|
+
itemControl: {
|
|
8666
8731
|
height: 5,
|
|
8667
8732
|
paddingX: 1.5
|
|
8668
8733
|
},
|
|
8669
8734
|
label: {
|
|
8670
8735
|
fontSize: { base: "mobile.sm", sm: "desktop.sm" },
|
|
8671
|
-
fontWeight: "
|
|
8736
|
+
fontWeight: "regular"
|
|
8672
8737
|
}
|
|
8673
8738
|
},
|
|
8674
8739
|
sm: {
|
|
8675
|
-
|
|
8740
|
+
item: {
|
|
8741
|
+
borderRadius: "xl",
|
|
8676
8742
|
_checked: {
|
|
8677
8743
|
borderRadius: "sm"
|
|
8678
|
-
}
|
|
8744
|
+
}
|
|
8745
|
+
},
|
|
8746
|
+
itemControl: {
|
|
8679
8747
|
height: 6,
|
|
8680
8748
|
paddingX: 2
|
|
8681
8749
|
},
|
|
@@ -8685,10 +8753,13 @@ var choiceChipSlotRecipe = defineSlotRecipe({
|
|
|
8685
8753
|
}
|
|
8686
8754
|
},
|
|
8687
8755
|
md: {
|
|
8688
|
-
|
|
8756
|
+
item: {
|
|
8757
|
+
borderRadius: "xl",
|
|
8689
8758
|
_checked: {
|
|
8690
8759
|
borderRadius: "sm"
|
|
8691
|
-
}
|
|
8760
|
+
}
|
|
8761
|
+
},
|
|
8762
|
+
itemControl: {
|
|
8692
8763
|
height: 7,
|
|
8693
8764
|
paddingX: 2
|
|
8694
8765
|
},
|
|
@@ -8698,10 +8769,13 @@ var choiceChipSlotRecipe = defineSlotRecipe({
|
|
|
8698
8769
|
}
|
|
8699
8770
|
},
|
|
8700
8771
|
lg: {
|
|
8701
|
-
|
|
8772
|
+
item: {
|
|
8773
|
+
borderRadius: "xl",
|
|
8702
8774
|
_checked: {
|
|
8703
8775
|
borderRadius: "md"
|
|
8704
|
-
}
|
|
8776
|
+
}
|
|
8777
|
+
},
|
|
8778
|
+
itemControl: {
|
|
8705
8779
|
height: 8,
|
|
8706
8780
|
paddingX: 3
|
|
8707
8781
|
},
|
|
@@ -8713,9 +8787,18 @@ var choiceChipSlotRecipe = defineSlotRecipe({
|
|
|
8713
8787
|
},
|
|
8714
8788
|
variant: {
|
|
8715
8789
|
core: {
|
|
8716
|
-
|
|
8717
|
-
|
|
8718
|
-
|
|
8790
|
+
itemControl: {
|
|
8791
|
+
_checked: {
|
|
8792
|
+
backgroundColor: "surface.brand",
|
|
8793
|
+
color: "text.brand",
|
|
8794
|
+
outline: "none",
|
|
8795
|
+
_hover: {
|
|
8796
|
+
backgroundColor: "surface.brand.hover",
|
|
8797
|
+
_active: {
|
|
8798
|
+
backgroundColor: "surface.brand.active"
|
|
8799
|
+
}
|
|
8800
|
+
}
|
|
8801
|
+
},
|
|
8719
8802
|
_hover: {
|
|
8720
8803
|
outline: "2px solid",
|
|
8721
8804
|
outlineColor: "outline.core.hover",
|
|
@@ -8728,10 +8811,22 @@ var choiceChipSlotRecipe = defineSlotRecipe({
|
|
|
8728
8811
|
}
|
|
8729
8812
|
},
|
|
8730
8813
|
accent: {
|
|
8731
|
-
|
|
8814
|
+
itemControl: {
|
|
8732
8815
|
backgroundColor: "surface.accent",
|
|
8733
8816
|
color: "text.accent",
|
|
8734
8817
|
outline: "none",
|
|
8818
|
+
border: "none",
|
|
8819
|
+
_checked: {
|
|
8820
|
+
backgroundColor: "surface.brand",
|
|
8821
|
+
color: "text.brand",
|
|
8822
|
+
outline: "none",
|
|
8823
|
+
_hover: {
|
|
8824
|
+
backgroundColor: "surface.brand.hover",
|
|
8825
|
+
_active: {
|
|
8826
|
+
backgroundColor: "surface.brand.active"
|
|
8827
|
+
}
|
|
8828
|
+
}
|
|
8829
|
+
},
|
|
8735
8830
|
_hover: {
|
|
8736
8831
|
backgroundColor: "surface.accent.hover",
|
|
8737
8832
|
_active: {
|
|
@@ -8741,12 +8836,23 @@ var choiceChipSlotRecipe = defineSlotRecipe({
|
|
|
8741
8836
|
}
|
|
8742
8837
|
},
|
|
8743
8838
|
floating: {
|
|
8744
|
-
|
|
8839
|
+
itemControl: {
|
|
8745
8840
|
backgroundColor: "surface.floating",
|
|
8746
8841
|
outline: "1px solid",
|
|
8747
8842
|
outlineColor: "outline.floating",
|
|
8748
8843
|
color: "text.floating",
|
|
8749
8844
|
boxShadow: "sm",
|
|
8845
|
+
_checked: {
|
|
8846
|
+
backgroundColor: "surface.brand",
|
|
8847
|
+
color: "text.brand",
|
|
8848
|
+
outline: "none",
|
|
8849
|
+
_hover: {
|
|
8850
|
+
backgroundColor: "surface.brand.hover",
|
|
8851
|
+
_active: {
|
|
8852
|
+
backgroundColor: "surface.brand.active"
|
|
8853
|
+
}
|
|
8854
|
+
}
|
|
8855
|
+
},
|
|
8750
8856
|
_hover: {
|
|
8751
8857
|
backgroundColor: "surface.floating.hover",
|
|
8752
8858
|
outline: "1px solid",
|
|
@@ -8759,17 +8865,11 @@ var choiceChipSlotRecipe = defineSlotRecipe({
|
|
|
8759
8865
|
}
|
|
8760
8866
|
}
|
|
8761
8867
|
}
|
|
8762
|
-
},
|
|
8763
|
-
chipType: {
|
|
8764
|
-
icon: {},
|
|
8765
|
-
choice: {},
|
|
8766
|
-
filter: {}
|
|
8767
8868
|
}
|
|
8768
8869
|
},
|
|
8769
8870
|
defaultVariants: {
|
|
8770
8871
|
size: "sm",
|
|
8771
|
-
variant: "core"
|
|
8772
|
-
chipType: "choice"
|
|
8872
|
+
variant: "core"
|
|
8773
8873
|
}
|
|
8774
8874
|
});
|
|
8775
8875
|
var collapsibleSlotRecipe = defineSlotRecipe({
|
|
@@ -9491,6 +9591,186 @@ var fieldSlotRecipe = defineSlotRecipe({
|
|
|
9491
9591
|
}
|
|
9492
9592
|
}
|
|
9493
9593
|
});
|
|
9594
|
+
var filterChipSlotRecipe = defineSlotRecipe({
|
|
9595
|
+
slots: checkboxCardAnatomy.keys(),
|
|
9596
|
+
className: "chakra-checkbox-card",
|
|
9597
|
+
base: {
|
|
9598
|
+
root: {
|
|
9599
|
+
display: "inline-flex",
|
|
9600
|
+
alignItems: "center",
|
|
9601
|
+
boxAlign: "center",
|
|
9602
|
+
cursor: "pointer",
|
|
9603
|
+
transitionProperty: "all",
|
|
9604
|
+
borderRadius: "xl",
|
|
9605
|
+
transitionDuration: "fast",
|
|
9606
|
+
paddingInlineStart: "2",
|
|
9607
|
+
paddingInlineEnd: "2",
|
|
9608
|
+
outline: "1px solid",
|
|
9609
|
+
outlineColor: "outline.core",
|
|
9610
|
+
_checked: {
|
|
9611
|
+
backgroundColor: "surface.brand",
|
|
9612
|
+
borderRadius: "sm",
|
|
9613
|
+
outline: "none",
|
|
9614
|
+
color: "text.brand",
|
|
9615
|
+
_hover: {
|
|
9616
|
+
outline: "none",
|
|
9617
|
+
backgroundColor: "surface.brand.hover",
|
|
9618
|
+
_active: {
|
|
9619
|
+
backgroundColor: "surface.brand.active"
|
|
9620
|
+
}
|
|
9621
|
+
}
|
|
9622
|
+
},
|
|
9623
|
+
_focusVisible: {
|
|
9624
|
+
outline: "2px solid",
|
|
9625
|
+
outlineColor: "outline.focus",
|
|
9626
|
+
outlineOffset: "1px"
|
|
9627
|
+
},
|
|
9628
|
+
_disabled: {
|
|
9629
|
+
pointerEvents: "none",
|
|
9630
|
+
boxShadow: "none",
|
|
9631
|
+
backgroundColor: "surface.disabled",
|
|
9632
|
+
color: "text.disabled",
|
|
9633
|
+
outline: "none",
|
|
9634
|
+
_hover: {
|
|
9635
|
+
backgroundColor: "surface.disabled",
|
|
9636
|
+
boxShadow: "none",
|
|
9637
|
+
color: "text.disabled"
|
|
9638
|
+
},
|
|
9639
|
+
_checked: {
|
|
9640
|
+
cursor: "not-allowed",
|
|
9641
|
+
boxShadow: "none",
|
|
9642
|
+
color: "text.disabled",
|
|
9643
|
+
backgroundColor: "surface.disabled",
|
|
9644
|
+
_hover: {
|
|
9645
|
+
backgroundColor: "surface.disabled",
|
|
9646
|
+
boxShadow: "none",
|
|
9647
|
+
color: "text.disabled"
|
|
9648
|
+
}
|
|
9649
|
+
}
|
|
9650
|
+
}
|
|
9651
|
+
},
|
|
9652
|
+
label: {
|
|
9653
|
+
display: "flex",
|
|
9654
|
+
alignItems: "center",
|
|
9655
|
+
gap: "1"
|
|
9656
|
+
}
|
|
9657
|
+
},
|
|
9658
|
+
variants: {
|
|
9659
|
+
size: {
|
|
9660
|
+
xs: {
|
|
9661
|
+
root: {
|
|
9662
|
+
_checked: {
|
|
9663
|
+
borderRadius: "0.563rem"
|
|
9664
|
+
},
|
|
9665
|
+
height: 5,
|
|
9666
|
+
paddingX: 1.5
|
|
9667
|
+
},
|
|
9668
|
+
label: {
|
|
9669
|
+
fontSize: { base: "mobile.sm", sm: "desktop.sm" },
|
|
9670
|
+
fontWeight: "medium"
|
|
9671
|
+
}
|
|
9672
|
+
},
|
|
9673
|
+
sm: {
|
|
9674
|
+
root: {
|
|
9675
|
+
_checked: {
|
|
9676
|
+
borderRadius: "sm"
|
|
9677
|
+
},
|
|
9678
|
+
height: 6,
|
|
9679
|
+
paddingX: 2
|
|
9680
|
+
},
|
|
9681
|
+
label: {
|
|
9682
|
+
fontSize: { base: "mobile.sm", sm: "desktop.sm" },
|
|
9683
|
+
fontWeight: "bold"
|
|
9684
|
+
}
|
|
9685
|
+
},
|
|
9686
|
+
md: {
|
|
9687
|
+
root: {
|
|
9688
|
+
_checked: {
|
|
9689
|
+
borderRadius: "sm"
|
|
9690
|
+
},
|
|
9691
|
+
height: 7,
|
|
9692
|
+
paddingX: 2
|
|
9693
|
+
},
|
|
9694
|
+
label: {
|
|
9695
|
+
fontSize: { base: "mobile.md", sm: "desktop.md" },
|
|
9696
|
+
fontWeight: "bold"
|
|
9697
|
+
}
|
|
9698
|
+
},
|
|
9699
|
+
lg: {
|
|
9700
|
+
root: {
|
|
9701
|
+
_checked: {
|
|
9702
|
+
borderRadius: "md"
|
|
9703
|
+
},
|
|
9704
|
+
height: 8,
|
|
9705
|
+
paddingX: 3
|
|
9706
|
+
},
|
|
9707
|
+
label: {
|
|
9708
|
+
fontSize: { base: "mobile.md", sm: "desktop.md" },
|
|
9709
|
+
fontWeight: "bold"
|
|
9710
|
+
}
|
|
9711
|
+
}
|
|
9712
|
+
},
|
|
9713
|
+
variant: {
|
|
9714
|
+
core: {
|
|
9715
|
+
root: {
|
|
9716
|
+
color: "text.core",
|
|
9717
|
+
outlineColor: "outline.core",
|
|
9718
|
+
_hover: {
|
|
9719
|
+
outline: "2px solid",
|
|
9720
|
+
outlineColor: "outline.core.hover",
|
|
9721
|
+
_active: {
|
|
9722
|
+
outline: "1px solid",
|
|
9723
|
+
outlineColor: "outline.core",
|
|
9724
|
+
backgroundColor: "surface.core.active"
|
|
9725
|
+
}
|
|
9726
|
+
}
|
|
9727
|
+
}
|
|
9728
|
+
},
|
|
9729
|
+
accent: {
|
|
9730
|
+
root: {
|
|
9731
|
+
backgroundColor: "surface.accent",
|
|
9732
|
+
color: "text.accent",
|
|
9733
|
+
outline: "none",
|
|
9734
|
+
_hover: {
|
|
9735
|
+
backgroundColor: "surface.accent.hover",
|
|
9736
|
+
_active: {
|
|
9737
|
+
backgroundColor: "surface.accent.active"
|
|
9738
|
+
}
|
|
9739
|
+
}
|
|
9740
|
+
}
|
|
9741
|
+
},
|
|
9742
|
+
floating: {
|
|
9743
|
+
root: {
|
|
9744
|
+
backgroundColor: "surface.floating",
|
|
9745
|
+
outline: "1px solid",
|
|
9746
|
+
outlineColor: "outline.floating",
|
|
9747
|
+
color: "text.floating",
|
|
9748
|
+
boxShadow: "sm",
|
|
9749
|
+
_hover: {
|
|
9750
|
+
backgroundColor: "surface.floating.hover",
|
|
9751
|
+
outline: "1px solid",
|
|
9752
|
+
outlineColor: "outline.floating.hover",
|
|
9753
|
+
_active: {
|
|
9754
|
+
backgroundColor: "surface.floating.active",
|
|
9755
|
+
outline: "1px solid",
|
|
9756
|
+
outlineColor: "outline.floating"
|
|
9757
|
+
}
|
|
9758
|
+
}
|
|
9759
|
+
}
|
|
9760
|
+
}
|
|
9761
|
+
},
|
|
9762
|
+
chipType: {
|
|
9763
|
+
icon: {},
|
|
9764
|
+
choice: {},
|
|
9765
|
+
filter: {}
|
|
9766
|
+
}
|
|
9767
|
+
},
|
|
9768
|
+
defaultVariants: {
|
|
9769
|
+
size: "sm",
|
|
9770
|
+
variant: "core",
|
|
9771
|
+
chipType: "choice"
|
|
9772
|
+
}
|
|
9773
|
+
});
|
|
9494
9774
|
var floatingActionButtonSlotRecipe = defineSlotRecipe({
|
|
9495
9775
|
slots: floatingActionButtonAnatomy.keys(),
|
|
9496
9776
|
className: "spor-floating-action-button",
|
|
@@ -11803,11 +12083,12 @@ var slotRecipes = {
|
|
|
11803
12083
|
tabs: tabsSlotRecipe,
|
|
11804
12084
|
travelTag: travelTagSlotRecipe,
|
|
11805
12085
|
toast: toastSlotRecipe,
|
|
11806
|
-
checkboxCard:
|
|
12086
|
+
checkboxCard: filterChipSlotRecipe,
|
|
11807
12087
|
collapsible: collapsibleSlotRecipe,
|
|
11808
12088
|
tooltip: popoverSlotRecipe,
|
|
11809
12089
|
tag: inputChipSlotRecipe,
|
|
11810
|
-
menu: menuSlotRecipe
|
|
12090
|
+
menu: menuSlotRecipe,
|
|
12091
|
+
choiceChip: choiceChipSlotRecipe
|
|
11811
12092
|
};
|
|
11812
12093
|
var animations = defineTokens.animations({
|
|
11813
12094
|
spin: {
|
|
@@ -12655,6 +12936,6 @@ var TooltipContent = ({
|
|
|
12655
12936
|
] }) }) });
|
|
12656
12937
|
};
|
|
12657
12938
|
|
|
12658
|
-
export { Accordion, AccordionItem, AccordionItemContent, AccordionItemTrigger, Alert, AttachedInputs, Autocomplete, AutocompleteItem, AutocompleteItemGroup, AutocompleteItemGroupLabel, Badge, Brand, Breadcrumb, Button, ButtonGroup, Calendar, CalendarCell, CalendarGrid, CalendarHeader, CalendarProvider, CardSelect, CardSelectContent, CardSelectTrigger, CargonetLogo, Checkbox, CheckboxGroup, ChoiceChip, Clipboard, ClipboardButton, CloseButton, CloseDrawerLine, Code, ColorInlineLoader, ColorModeButton, ColorModeIcon, ColorModeProvider, ColorSpinner, Combobox2 as Combobox, ContentLoader, DarkFullScreenLoader, DarkInlineLoader, DarkSpinner, DatePicker, DateRangePicker, DialogActionTrigger, DialogBackdrop, DialogBody, DialogCloseTrigger, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogRoot, DialogTitle, DialogTrigger, Drawer, DrawerActionTrigger, DrawerBackTrigger, DrawerBackdrop, DrawerBody, DrawerCloseTrigger, DrawerContent, DrawerFooter, DrawerFullScreenHeader, DrawerHeader, DrawerTitle, DrawerTrigger, Expandable, ExpandableAlert, ExpandableItem, Field3 as Field, FieldErrorText, FieldLabel, Fieldset, FieldsetContent, FieldsetErrorText, FieldsetHelperText, FieldsetLegend, FloatingActionButton, Heading, IconButton, InfoTag, Input, InputChip, ItemDescription, ItemLabel, JumpButton, Language, LanguageProvider, LightFullScreenLoader, LightInlineLoader, LightSpinner, LineIcon, List, ListBox, ListIndicator, ListItem2 as ListItem, Menu, MenuCheckboxItem, MenuContent, MenuItem, MenuItemGroup, MenuRadioItem, MenuRadioItemGroup, MenuSeparator, MenuTrigger, MenuTriggerItem, NativeSelect, Nudge, NudgeActions, NudgeCloseTrigger, NudgeContent, NudgeTrigger, NudgeWizardStep, NumericStepper, Pagination, PaginationEllipsis, PaginationItem, PaginationItems, PaginationNextTrigger, PaginationPrevTrigger, PasswordInput, PhoneNumberInput, PlayPauseButton, Popover2 as Popover, PopoverContent, PopoverTrigger, PressableCard, ProgressBar, ProgressIndicator, ProgressLoader, Radio, RadioCard, RadioCardGroup, RadioCardLabel, RadioGroup, RangeCalendar, ScrollCalendar, SearchInput, Select, SelectContent, SelectItem, SelectItemGroup, SelectItemText, SelectLabel, SelectRoot, SelectTrigger, SelectValueText, Separator, ServiceAlert, Skeleton, SkeletonCircle, SkeletonText, SkipButton, SporProvider, StaticCard, Stepper, StepperStep, SvgBox, Switch, Table, TableBody, TableColumnHeader, Tabs, TabsContent, TabsIndicator, TabsList, TabsTrigger, Text3 as Text, TextLink, Textarea, TimePicker, Tooltip, TooltipContent, TooltipTrigger, TravelTag, VyLogo, VyLogoPride, createTexts, createToast, fontFaces, slugify, system, themes, useCalendar, useColorMode, useColorModeValue, useMenuContext, useTableSort, useTranslation };
|
|
12939
|
+
export { Accordion, AccordionItem, AccordionItemContent, AccordionItemTrigger, Alert, AttachedInputs, Autocomplete, AutocompleteItem, AutocompleteItemGroup, AutocompleteItemGroupLabel, Badge, Brand, Breadcrumb, Button, ButtonGroup, Calendar, CalendarCell, CalendarGrid, CalendarHeader, CalendarProvider, CardSelect, CardSelectContent, CardSelectTrigger, CargonetLogo, Checkbox, CheckboxGroup, ChoiceChip, ChoiceChipGroup, ChoiceChipLabel, Clipboard, ClipboardButton, CloseButton, CloseDrawerLine, Code, ColorInlineLoader, ColorModeButton, ColorModeIcon, ColorModeProvider, ColorSpinner, Combobox2 as Combobox, ContentLoader, DarkFullScreenLoader, DarkInlineLoader, DarkSpinner, DatePicker, DateRangePicker, DialogActionTrigger, DialogBackdrop, DialogBody, DialogCloseTrigger, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogRoot, DialogTitle, DialogTrigger, Drawer, DrawerActionTrigger, DrawerBackTrigger, DrawerBackdrop, DrawerBody, DrawerCloseTrigger, DrawerContent, DrawerFooter, DrawerFullScreenHeader, DrawerHeader, DrawerTitle, DrawerTrigger, Expandable, ExpandableAlert, ExpandableItem, Field3 as Field, FieldErrorText, FieldLabel, Fieldset, FieldsetContent, FieldsetErrorText, FieldsetHelperText, FieldsetLegend, FilterChip, FloatingActionButton, Heading, IconButton, InfoTag, Input, InputChip, ItemDescription, ItemLabel, JumpButton, Language, LanguageProvider, LightFullScreenLoader, LightInlineLoader, LightSpinner, LineIcon, List, ListBox, ListIndicator, ListItem2 as ListItem, Menu, MenuCheckboxItem, MenuContent, MenuItem, MenuItemGroup, MenuRadioItem, MenuRadioItemGroup, MenuSeparator, MenuTrigger, MenuTriggerItem, NativeSelect, Nudge, NudgeActions, NudgeCloseTrigger, NudgeContent, NudgeTrigger, NudgeWizardStep, NumericStepper, Pagination, PaginationEllipsis, PaginationItem, PaginationItems, PaginationNextTrigger, PaginationPrevTrigger, PasswordInput, PhoneNumberInput, PlayPauseButton, Popover2 as Popover, PopoverContent, PopoverTrigger, PressableCard, ProgressBar, ProgressIndicator, ProgressLoader, Radio, RadioCard, RadioCardGroup, RadioCardLabel, RadioGroup, RangeCalendar, ScrollCalendar, SearchInput, Select, SelectContent, SelectItem, SelectItemGroup, SelectItemText, SelectLabel, SelectRoot, SelectTrigger, SelectValueText, Separator, ServiceAlert, Skeleton, SkeletonCircle, SkeletonText, SkipButton, SporProvider, StaticCard, Stepper, StepperStep, SvgBox, Switch, Table, TableBody, TableColumnHeader, Tabs, TabsContent, TabsIndicator, TabsList, TabsTrigger, Text3 as Text, TextLink, Textarea, TimePicker, Tooltip, TooltipContent, TooltipTrigger, TravelTag, VyLogo, VyLogoPride, createTexts, createToast, fontFaces, slugify, system, themes, useCalendar, useColorMode, useColorModeValue, useMenuContext, useTableSort, useTranslation };
|
|
12659
12940
|
//# sourceMappingURL=out.js.map
|
|
12660
12941
|
//# sourceMappingURL=index.mjs.map
|