@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/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @vygruppen/spor-react@13.
|
|
2
|
+
> @vygruppen/spor-react@13.2.0 build /home/runner/work/spor/spor/packages/spor-react
|
|
3
3
|
> tsup
|
|
4
4
|
|
|
5
5
|
CLI Building entry: src/index.tsx, src/icons/index.tsx
|
|
@@ -11,18 +11,18 @@ CLI Cleaning output folder
|
|
|
11
11
|
ESM Build start
|
|
12
12
|
CJS Build start
|
|
13
13
|
DTS Build start
|
|
14
|
-
|
|
15
|
-
ESM dist/index.mjs 338.58 KB
|
|
16
|
-
ESM dist/icons/index.mjs.map 157.00 B
|
|
17
|
-
ESM dist/index.mjs.map 721.19 KB
|
|
18
|
-
ESM ⚡️ Build success in 2721ms
|
|
19
|
-
CJS dist/index.cjs 362.66 KB
|
|
14
|
+
CJS dist/index.cjs 370.47 KB
|
|
20
15
|
CJS dist/icons/index.cjs 381.00 B
|
|
21
|
-
CJS dist/index.cjs.map
|
|
16
|
+
CJS dist/index.cjs.map 736.09 KB
|
|
22
17
|
CJS dist/icons/index.cjs.map 157.00 B
|
|
23
|
-
CJS ⚡️ Build success in
|
|
24
|
-
|
|
18
|
+
CJS ⚡️ Build success in 2740ms
|
|
19
|
+
ESM dist/index.mjs 346.13 KB
|
|
20
|
+
ESM dist/icons/index.mjs 110.00 B
|
|
21
|
+
ESM dist/index.mjs.map 736.09 KB
|
|
22
|
+
ESM dist/icons/index.mjs.map 157.00 B
|
|
23
|
+
ESM ⚡️ Build success in 2742ms
|
|
24
|
+
DTS ⚡️ Build success in 22147ms
|
|
25
25
|
DTS dist/icons/index.d.ts 44.00 B
|
|
26
|
-
DTS dist/index.d.ts
|
|
26
|
+
DTS dist/index.d.ts 150.06 KB
|
|
27
27
|
DTS dist/icons/index.d.cts 44.00 B
|
|
28
|
-
DTS dist/index.d.cts
|
|
28
|
+
DTS dist/index.d.cts 150.06 KB
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
> @vygruppen/spor-react@13.
|
|
2
|
+
> @vygruppen/spor-react@13.2.0 postinstall /home/runner/work/spor/spor/packages/spor-react
|
|
3
3
|
> chakra typegen src/theme/index.ts
|
|
4
4
|
|
|
5
|
-
◇ injected env (0) from .env // tip:
|
|
5
|
+
◇ injected env (0) from .env // tip: ⌘ enable debugging { debug: true }
|
|
6
6
|
[90m┌[39m Chakra CLI ⚡️
|
|
7
7
|
[?25l[90m│[39m
|
|
8
8
|
[35m◒[39m Generating conditions types...
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @vygruppen/spor-react
|
|
2
2
|
|
|
3
|
+
## 13.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 305f387: Introduces two new Chip-components: ChoiceChip and FilterChip. ChoiceChip becomes a singleselect chip, where the user can only select a singluar item among the chips that are grouped together. FilterChip is introduced as the new multipleselect chip, where the user can select multiple items among the chips that are grouped together.
|
|
8
|
+
|
|
3
9
|
## 13.1.4
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -3757,31 +3757,69 @@ var CheckboxGroup = (props) => {
|
|
|
3757
3757
|
const { direction = "row", children, gap = 1, ...rest } = props;
|
|
3758
3758
|
return /* @__PURE__ */ jsxRuntime.jsx(react.CheckboxGroup, { ...rest, children: /* @__PURE__ */ jsxRuntime.jsx(react.Stack, { direction, gap, children }) });
|
|
3759
3759
|
};
|
|
3760
|
+
var ChoiceChipContext = React13.createContext({
|
|
3761
|
+
variant: "core",
|
|
3762
|
+
size: "sm"
|
|
3763
|
+
});
|
|
3764
|
+
var useChoiceChipContext = () => React13.useContext(ChoiceChipContext);
|
|
3760
3765
|
var ChoiceChip = ({
|
|
3761
3766
|
ref,
|
|
3762
|
-
|
|
3763
|
-
icon,
|
|
3764
|
-
onCheckedChange,
|
|
3765
|
-
...rootProps
|
|
3767
|
+
...props
|
|
3766
3768
|
}) => {
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
+
const { children, inputProps, icon, variant, size, css, ...rest } = props;
|
|
3770
|
+
const { variant: contextVariant, size: contextSize } = useChoiceChipContext();
|
|
3771
|
+
const uniqueId = React13.useId();
|
|
3772
|
+
const itemControlId = `radio-card-item-control-${uniqueId}`;
|
|
3773
|
+
const inputHasAriaLabel = (inputProps == null ? void 0 : inputProps["aria-labelledby"]) || (inputProps == null ? void 0 : inputProps["aria-label"]);
|
|
3774
|
+
const finalVariant = variant ?? contextVariant;
|
|
3775
|
+
const finalSize = size ?? contextSize;
|
|
3776
|
+
const recipe = react.useSlotRecipe({ key: "choiceChip" });
|
|
3777
|
+
const styles = recipe({
|
|
3778
|
+
variant: finalVariant,
|
|
3779
|
+
size: finalSize
|
|
3780
|
+
});
|
|
3781
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(react.RadioCard.Item, { ...rest, css: { ...css, ...styles.item }, children: [
|
|
3782
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3783
|
+
react.RadioCard.ItemHiddenInput,
|
|
3784
|
+
{
|
|
3785
|
+
"aria-labelledby": inputHasAriaLabel ? inputProps == null ? void 0 : inputProps["aria-labelledby"] : itemControlId,
|
|
3786
|
+
ref,
|
|
3787
|
+
...inputProps
|
|
3788
|
+
}
|
|
3789
|
+
),
|
|
3790
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3791
|
+
react.RadioCard.ItemControl,
|
|
3792
|
+
{
|
|
3793
|
+
id: itemControlId,
|
|
3794
|
+
"aria-hidden": true,
|
|
3795
|
+
css: styles.itemControl,
|
|
3796
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(react.RadioCard.ItemContext, { children: ({ checked }) => /* @__PURE__ */ jsxRuntime.jsxs(react.RadioCard.Label, { css: styles.label, children: [
|
|
3797
|
+
checked ? (icon == null ? void 0 : icon.checked) && /* @__PURE__ */ jsxRuntime.jsx(react.Span, { children: icon.checked }) : (icon == null ? void 0 : icon.default) && /* @__PURE__ */ jsxRuntime.jsx(react.Span, { children: icon.default }),
|
|
3798
|
+
children
|
|
3799
|
+
] }) })
|
|
3800
|
+
}
|
|
3801
|
+
)
|
|
3802
|
+
] });
|
|
3803
|
+
};
|
|
3804
|
+
var ChoiceChipGroup = ({
|
|
3805
|
+
ref,
|
|
3806
|
+
...props
|
|
3807
|
+
}) => {
|
|
3808
|
+
const { children, variant, size, css, ...rest } = props;
|
|
3809
|
+
const recipe = react.useSlotRecipe({ key: "choiceChip" });
|
|
3810
|
+
const styles = recipe({ variant, size });
|
|
3811
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ChoiceChipContext.Provider, { value: { variant, size }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3812
|
+
react.RadioCard.Root,
|
|
3769
3813
|
{
|
|
3770
|
-
...
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
children
|
|
3775
|
-
/* @__PURE__ */ jsxRuntime.jsx(react.CheckboxCard.HiddenInput, { ref }),
|
|
3776
|
-
/* @__PURE__ */ jsxRuntime.jsx(react.CheckboxCard.Control, { children: /* @__PURE__ */ jsxRuntime.jsx(react.CheckboxCard.Content, { children: /* @__PURE__ */ jsxRuntime.jsxs(react.CheckboxCard.Label, { children: [
|
|
3777
|
-
icon && /* @__PURE__ */ jsxRuntime.jsx(react.Span, { width: "24px", children: checked ? icon.checked : icon.default }),
|
|
3778
|
-
rootProps.chipType !== "icon" && children,
|
|
3779
|
-
rootProps.chipType === "filter" && checked && /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.CloseOutline24Icon, {})
|
|
3780
|
-
] }) }) })
|
|
3781
|
-
] }) })
|
|
3814
|
+
css: { ...styles.root, ...css },
|
|
3815
|
+
ref,
|
|
3816
|
+
variant,
|
|
3817
|
+
...rest,
|
|
3818
|
+
children
|
|
3782
3819
|
}
|
|
3783
|
-
);
|
|
3820
|
+
) });
|
|
3784
3821
|
};
|
|
3822
|
+
var ChoiceChipLabel = react.RadioCard.Label;
|
|
3785
3823
|
var Popover = ({
|
|
3786
3824
|
ref,
|
|
3787
3825
|
children,
|
|
@@ -4038,6 +4076,31 @@ var FieldsetLegend = react.Fieldset.Legend;
|
|
|
4038
4076
|
var FieldsetContent = react.Fieldset.Content;
|
|
4039
4077
|
var FieldsetHelperText = react.Fieldset.HelperText;
|
|
4040
4078
|
var FieldsetErrorText = react.Fieldset.ErrorText;
|
|
4079
|
+
var FilterChip = ({
|
|
4080
|
+
ref,
|
|
4081
|
+
children,
|
|
4082
|
+
icon,
|
|
4083
|
+
onCheckedChange,
|
|
4084
|
+
...rootProps
|
|
4085
|
+
}) => {
|
|
4086
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4087
|
+
react.CheckboxCard.Root,
|
|
4088
|
+
{
|
|
4089
|
+
...rootProps,
|
|
4090
|
+
...onCheckedChange && {
|
|
4091
|
+
onCheckedChange: (details) => onCheckedChange(!!details.checked)
|
|
4092
|
+
},
|
|
4093
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(react.CheckboxCard.Context, { children: ({ checked }) => /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
4094
|
+
/* @__PURE__ */ jsxRuntime.jsx(react.CheckboxCard.HiddenInput, { ref }),
|
|
4095
|
+
/* @__PURE__ */ jsxRuntime.jsx(react.CheckboxCard.Control, { children: /* @__PURE__ */ jsxRuntime.jsx(react.CheckboxCard.Content, { children: /* @__PURE__ */ jsxRuntime.jsxs(react.CheckboxCard.Label, { children: [
|
|
4096
|
+
checked ? (icon == null ? void 0 : icon.checked) && /* @__PURE__ */ jsxRuntime.jsx(react.Span, { children: icon.checked }) : (icon == null ? void 0 : icon.default) && /* @__PURE__ */ jsxRuntime.jsx(react.Span, { children: icon.default }),
|
|
4097
|
+
rootProps.chipType !== "icon" && children,
|
|
4098
|
+
rootProps.chipType === "filter" && checked && /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.CloseOutline24Icon, {})
|
|
4099
|
+
] }) }) })
|
|
4100
|
+
] }) })
|
|
4101
|
+
}
|
|
4102
|
+
);
|
|
4103
|
+
};
|
|
4041
4104
|
var InputChip = ({
|
|
4042
4105
|
startIcon,
|
|
4043
4106
|
endIcon,
|
|
@@ -7832,7 +7895,8 @@ var radioCardAnatomy = anatomy.createAnatomy("radio-card").parts(
|
|
|
7832
7895
|
"label",
|
|
7833
7896
|
"itemText",
|
|
7834
7897
|
"itemDescription",
|
|
7835
|
-
"itemContent"
|
|
7898
|
+
"itemContent",
|
|
7899
|
+
"itemControl"
|
|
7836
7900
|
);
|
|
7837
7901
|
var radioAnatomy = anatomy.createAnatomy("radio").parts(
|
|
7838
7902
|
"root",
|
|
@@ -8613,38 +8677,30 @@ var checkboxSlotRecipe = react.defineSlotRecipe({
|
|
|
8613
8677
|
}
|
|
8614
8678
|
});
|
|
8615
8679
|
var choiceChipSlotRecipe = react.defineSlotRecipe({
|
|
8616
|
-
|
|
8617
|
-
|
|
8680
|
+
className: "spor-choice-chip",
|
|
8681
|
+
slots: radioCardAnatomy.keys(),
|
|
8618
8682
|
base: {
|
|
8619
8683
|
root: {
|
|
8620
|
-
display: "
|
|
8621
|
-
|
|
8622
|
-
|
|
8623
|
-
|
|
8684
|
+
display: "flex",
|
|
8685
|
+
flexDirection: "row",
|
|
8686
|
+
gap: "1",
|
|
8687
|
+
width: "fit-content"
|
|
8688
|
+
},
|
|
8689
|
+
item: {
|
|
8690
|
+
display: "flex-inline",
|
|
8624
8691
|
transitionProperty: "all",
|
|
8625
|
-
borderRadius: "xl",
|
|
8626
8692
|
transitionDuration: "fast",
|
|
8627
|
-
paddingInlineStart: "2",
|
|
8628
|
-
paddingInlineEnd: "2",
|
|
8629
|
-
outline: "1px solid",
|
|
8630
|
-
outlineColor: "outline.core",
|
|
8631
8693
|
_checked: {
|
|
8632
|
-
backgroundColor: "surface.brand",
|
|
8633
|
-
borderRadius: "sm",
|
|
8634
8694
|
outline: "none",
|
|
8635
|
-
|
|
8695
|
+
_focusVisible: {
|
|
8696
|
+
outline: "2px solid",
|
|
8697
|
+
outlineColor: "outline.focus",
|
|
8698
|
+
outlineOffset: "1px"
|
|
8699
|
+
},
|
|
8636
8700
|
_hover: {
|
|
8637
|
-
|
|
8638
|
-
_active: {
|
|
8639
|
-
backgroundColor: "surface.brand.active"
|
|
8640
|
-
}
|
|
8701
|
+
outline: "none"
|
|
8641
8702
|
}
|
|
8642
8703
|
},
|
|
8643
|
-
_focusVisible: {
|
|
8644
|
-
outline: "2px solid",
|
|
8645
|
-
outlineColor: "outline.focus",
|
|
8646
|
-
outlineOffset: "1px"
|
|
8647
|
-
},
|
|
8648
8704
|
_disabled: {
|
|
8649
8705
|
pointerEvents: "none",
|
|
8650
8706
|
boxShadow: "none",
|
|
@@ -8669,32 +8725,44 @@ var choiceChipSlotRecipe = react.defineSlotRecipe({
|
|
|
8669
8725
|
}
|
|
8670
8726
|
}
|
|
8671
8727
|
},
|
|
8728
|
+
itemControl: {
|
|
8729
|
+
display: "flex",
|
|
8730
|
+
alignItems: "center",
|
|
8731
|
+
justifyContent: "center"
|
|
8732
|
+
},
|
|
8672
8733
|
label: {
|
|
8673
8734
|
display: "flex",
|
|
8674
8735
|
alignItems: "center",
|
|
8736
|
+
justifyContent: "center",
|
|
8675
8737
|
gap: "1"
|
|
8676
8738
|
}
|
|
8677
8739
|
},
|
|
8678
8740
|
variants: {
|
|
8679
8741
|
size: {
|
|
8680
8742
|
xs: {
|
|
8681
|
-
|
|
8743
|
+
item: {
|
|
8744
|
+
borderRadius: "xl",
|
|
8682
8745
|
_checked: {
|
|
8683
|
-
borderRadius: "
|
|
8684
|
-
}
|
|
8746
|
+
borderRadius: "9px"
|
|
8747
|
+
}
|
|
8748
|
+
},
|
|
8749
|
+
itemControl: {
|
|
8685
8750
|
height: 5,
|
|
8686
8751
|
paddingX: 1.5
|
|
8687
8752
|
},
|
|
8688
8753
|
label: {
|
|
8689
8754
|
fontSize: { base: "mobile.sm", sm: "desktop.sm" },
|
|
8690
|
-
fontWeight: "
|
|
8755
|
+
fontWeight: "regular"
|
|
8691
8756
|
}
|
|
8692
8757
|
},
|
|
8693
8758
|
sm: {
|
|
8694
|
-
|
|
8759
|
+
item: {
|
|
8760
|
+
borderRadius: "xl",
|
|
8695
8761
|
_checked: {
|
|
8696
8762
|
borderRadius: "sm"
|
|
8697
|
-
}
|
|
8763
|
+
}
|
|
8764
|
+
},
|
|
8765
|
+
itemControl: {
|
|
8698
8766
|
height: 6,
|
|
8699
8767
|
paddingX: 2
|
|
8700
8768
|
},
|
|
@@ -8704,10 +8772,13 @@ var choiceChipSlotRecipe = react.defineSlotRecipe({
|
|
|
8704
8772
|
}
|
|
8705
8773
|
},
|
|
8706
8774
|
md: {
|
|
8707
|
-
|
|
8775
|
+
item: {
|
|
8776
|
+
borderRadius: "xl",
|
|
8708
8777
|
_checked: {
|
|
8709
8778
|
borderRadius: "sm"
|
|
8710
|
-
}
|
|
8779
|
+
}
|
|
8780
|
+
},
|
|
8781
|
+
itemControl: {
|
|
8711
8782
|
height: 7,
|
|
8712
8783
|
paddingX: 2
|
|
8713
8784
|
},
|
|
@@ -8717,10 +8788,13 @@ var choiceChipSlotRecipe = react.defineSlotRecipe({
|
|
|
8717
8788
|
}
|
|
8718
8789
|
},
|
|
8719
8790
|
lg: {
|
|
8720
|
-
|
|
8791
|
+
item: {
|
|
8792
|
+
borderRadius: "xl",
|
|
8721
8793
|
_checked: {
|
|
8722
8794
|
borderRadius: "md"
|
|
8723
|
-
}
|
|
8795
|
+
}
|
|
8796
|
+
},
|
|
8797
|
+
itemControl: {
|
|
8724
8798
|
height: 8,
|
|
8725
8799
|
paddingX: 3
|
|
8726
8800
|
},
|
|
@@ -8732,9 +8806,18 @@ var choiceChipSlotRecipe = react.defineSlotRecipe({
|
|
|
8732
8806
|
},
|
|
8733
8807
|
variant: {
|
|
8734
8808
|
core: {
|
|
8735
|
-
|
|
8736
|
-
|
|
8737
|
-
|
|
8809
|
+
itemControl: {
|
|
8810
|
+
_checked: {
|
|
8811
|
+
backgroundColor: "surface.brand",
|
|
8812
|
+
color: "text.brand",
|
|
8813
|
+
outline: "none",
|
|
8814
|
+
_hover: {
|
|
8815
|
+
backgroundColor: "surface.brand.hover",
|
|
8816
|
+
_active: {
|
|
8817
|
+
backgroundColor: "surface.brand.active"
|
|
8818
|
+
}
|
|
8819
|
+
}
|
|
8820
|
+
},
|
|
8738
8821
|
_hover: {
|
|
8739
8822
|
outline: "2px solid",
|
|
8740
8823
|
outlineColor: "outline.core.hover",
|
|
@@ -8747,10 +8830,22 @@ var choiceChipSlotRecipe = react.defineSlotRecipe({
|
|
|
8747
8830
|
}
|
|
8748
8831
|
},
|
|
8749
8832
|
accent: {
|
|
8750
|
-
|
|
8833
|
+
itemControl: {
|
|
8751
8834
|
backgroundColor: "surface.accent",
|
|
8752
8835
|
color: "text.accent",
|
|
8753
8836
|
outline: "none",
|
|
8837
|
+
border: "none",
|
|
8838
|
+
_checked: {
|
|
8839
|
+
backgroundColor: "surface.brand",
|
|
8840
|
+
color: "text.brand",
|
|
8841
|
+
outline: "none",
|
|
8842
|
+
_hover: {
|
|
8843
|
+
backgroundColor: "surface.brand.hover",
|
|
8844
|
+
_active: {
|
|
8845
|
+
backgroundColor: "surface.brand.active"
|
|
8846
|
+
}
|
|
8847
|
+
}
|
|
8848
|
+
},
|
|
8754
8849
|
_hover: {
|
|
8755
8850
|
backgroundColor: "surface.accent.hover",
|
|
8756
8851
|
_active: {
|
|
@@ -8760,12 +8855,23 @@ var choiceChipSlotRecipe = react.defineSlotRecipe({
|
|
|
8760
8855
|
}
|
|
8761
8856
|
},
|
|
8762
8857
|
floating: {
|
|
8763
|
-
|
|
8858
|
+
itemControl: {
|
|
8764
8859
|
backgroundColor: "surface.floating",
|
|
8765
8860
|
outline: "1px solid",
|
|
8766
8861
|
outlineColor: "outline.floating",
|
|
8767
8862
|
color: "text.floating",
|
|
8768
8863
|
boxShadow: "sm",
|
|
8864
|
+
_checked: {
|
|
8865
|
+
backgroundColor: "surface.brand",
|
|
8866
|
+
color: "text.brand",
|
|
8867
|
+
outline: "none",
|
|
8868
|
+
_hover: {
|
|
8869
|
+
backgroundColor: "surface.brand.hover",
|
|
8870
|
+
_active: {
|
|
8871
|
+
backgroundColor: "surface.brand.active"
|
|
8872
|
+
}
|
|
8873
|
+
}
|
|
8874
|
+
},
|
|
8769
8875
|
_hover: {
|
|
8770
8876
|
backgroundColor: "surface.floating.hover",
|
|
8771
8877
|
outline: "1px solid",
|
|
@@ -8778,17 +8884,11 @@ var choiceChipSlotRecipe = react.defineSlotRecipe({
|
|
|
8778
8884
|
}
|
|
8779
8885
|
}
|
|
8780
8886
|
}
|
|
8781
|
-
},
|
|
8782
|
-
chipType: {
|
|
8783
|
-
icon: {},
|
|
8784
|
-
choice: {},
|
|
8785
|
-
filter: {}
|
|
8786
8887
|
}
|
|
8787
8888
|
},
|
|
8788
8889
|
defaultVariants: {
|
|
8789
8890
|
size: "sm",
|
|
8790
|
-
variant: "core"
|
|
8791
|
-
chipType: "choice"
|
|
8891
|
+
variant: "core"
|
|
8792
8892
|
}
|
|
8793
8893
|
});
|
|
8794
8894
|
var collapsibleSlotRecipe = react.defineSlotRecipe({
|
|
@@ -9510,6 +9610,186 @@ var fieldSlotRecipe = react.defineSlotRecipe({
|
|
|
9510
9610
|
}
|
|
9511
9611
|
}
|
|
9512
9612
|
});
|
|
9613
|
+
var filterChipSlotRecipe = react.defineSlotRecipe({
|
|
9614
|
+
slots: checkboxCardAnatomy.keys(),
|
|
9615
|
+
className: "chakra-checkbox-card",
|
|
9616
|
+
base: {
|
|
9617
|
+
root: {
|
|
9618
|
+
display: "inline-flex",
|
|
9619
|
+
alignItems: "center",
|
|
9620
|
+
boxAlign: "center",
|
|
9621
|
+
cursor: "pointer",
|
|
9622
|
+
transitionProperty: "all",
|
|
9623
|
+
borderRadius: "xl",
|
|
9624
|
+
transitionDuration: "fast",
|
|
9625
|
+
paddingInlineStart: "2",
|
|
9626
|
+
paddingInlineEnd: "2",
|
|
9627
|
+
outline: "1px solid",
|
|
9628
|
+
outlineColor: "outline.core",
|
|
9629
|
+
_checked: {
|
|
9630
|
+
backgroundColor: "surface.brand",
|
|
9631
|
+
borderRadius: "sm",
|
|
9632
|
+
outline: "none",
|
|
9633
|
+
color: "text.brand",
|
|
9634
|
+
_hover: {
|
|
9635
|
+
outline: "none",
|
|
9636
|
+
backgroundColor: "surface.brand.hover",
|
|
9637
|
+
_active: {
|
|
9638
|
+
backgroundColor: "surface.brand.active"
|
|
9639
|
+
}
|
|
9640
|
+
}
|
|
9641
|
+
},
|
|
9642
|
+
_focusVisible: {
|
|
9643
|
+
outline: "2px solid",
|
|
9644
|
+
outlineColor: "outline.focus",
|
|
9645
|
+
outlineOffset: "1px"
|
|
9646
|
+
},
|
|
9647
|
+
_disabled: {
|
|
9648
|
+
pointerEvents: "none",
|
|
9649
|
+
boxShadow: "none",
|
|
9650
|
+
backgroundColor: "surface.disabled",
|
|
9651
|
+
color: "text.disabled",
|
|
9652
|
+
outline: "none",
|
|
9653
|
+
_hover: {
|
|
9654
|
+
backgroundColor: "surface.disabled",
|
|
9655
|
+
boxShadow: "none",
|
|
9656
|
+
color: "text.disabled"
|
|
9657
|
+
},
|
|
9658
|
+
_checked: {
|
|
9659
|
+
cursor: "not-allowed",
|
|
9660
|
+
boxShadow: "none",
|
|
9661
|
+
color: "text.disabled",
|
|
9662
|
+
backgroundColor: "surface.disabled",
|
|
9663
|
+
_hover: {
|
|
9664
|
+
backgroundColor: "surface.disabled",
|
|
9665
|
+
boxShadow: "none",
|
|
9666
|
+
color: "text.disabled"
|
|
9667
|
+
}
|
|
9668
|
+
}
|
|
9669
|
+
}
|
|
9670
|
+
},
|
|
9671
|
+
label: {
|
|
9672
|
+
display: "flex",
|
|
9673
|
+
alignItems: "center",
|
|
9674
|
+
gap: "1"
|
|
9675
|
+
}
|
|
9676
|
+
},
|
|
9677
|
+
variants: {
|
|
9678
|
+
size: {
|
|
9679
|
+
xs: {
|
|
9680
|
+
root: {
|
|
9681
|
+
_checked: {
|
|
9682
|
+
borderRadius: "0.563rem"
|
|
9683
|
+
},
|
|
9684
|
+
height: 5,
|
|
9685
|
+
paddingX: 1.5
|
|
9686
|
+
},
|
|
9687
|
+
label: {
|
|
9688
|
+
fontSize: { base: "mobile.sm", sm: "desktop.sm" },
|
|
9689
|
+
fontWeight: "medium"
|
|
9690
|
+
}
|
|
9691
|
+
},
|
|
9692
|
+
sm: {
|
|
9693
|
+
root: {
|
|
9694
|
+
_checked: {
|
|
9695
|
+
borderRadius: "sm"
|
|
9696
|
+
},
|
|
9697
|
+
height: 6,
|
|
9698
|
+
paddingX: 2
|
|
9699
|
+
},
|
|
9700
|
+
label: {
|
|
9701
|
+
fontSize: { base: "mobile.sm", sm: "desktop.sm" },
|
|
9702
|
+
fontWeight: "bold"
|
|
9703
|
+
}
|
|
9704
|
+
},
|
|
9705
|
+
md: {
|
|
9706
|
+
root: {
|
|
9707
|
+
_checked: {
|
|
9708
|
+
borderRadius: "sm"
|
|
9709
|
+
},
|
|
9710
|
+
height: 7,
|
|
9711
|
+
paddingX: 2
|
|
9712
|
+
},
|
|
9713
|
+
label: {
|
|
9714
|
+
fontSize: { base: "mobile.md", sm: "desktop.md" },
|
|
9715
|
+
fontWeight: "bold"
|
|
9716
|
+
}
|
|
9717
|
+
},
|
|
9718
|
+
lg: {
|
|
9719
|
+
root: {
|
|
9720
|
+
_checked: {
|
|
9721
|
+
borderRadius: "md"
|
|
9722
|
+
},
|
|
9723
|
+
height: 8,
|
|
9724
|
+
paddingX: 3
|
|
9725
|
+
},
|
|
9726
|
+
label: {
|
|
9727
|
+
fontSize: { base: "mobile.md", sm: "desktop.md" },
|
|
9728
|
+
fontWeight: "bold"
|
|
9729
|
+
}
|
|
9730
|
+
}
|
|
9731
|
+
},
|
|
9732
|
+
variant: {
|
|
9733
|
+
core: {
|
|
9734
|
+
root: {
|
|
9735
|
+
color: "text.core",
|
|
9736
|
+
outlineColor: "outline.core",
|
|
9737
|
+
_hover: {
|
|
9738
|
+
outline: "2px solid",
|
|
9739
|
+
outlineColor: "outline.core.hover",
|
|
9740
|
+
_active: {
|
|
9741
|
+
outline: "1px solid",
|
|
9742
|
+
outlineColor: "outline.core",
|
|
9743
|
+
backgroundColor: "surface.core.active"
|
|
9744
|
+
}
|
|
9745
|
+
}
|
|
9746
|
+
}
|
|
9747
|
+
},
|
|
9748
|
+
accent: {
|
|
9749
|
+
root: {
|
|
9750
|
+
backgroundColor: "surface.accent",
|
|
9751
|
+
color: "text.accent",
|
|
9752
|
+
outline: "none",
|
|
9753
|
+
_hover: {
|
|
9754
|
+
backgroundColor: "surface.accent.hover",
|
|
9755
|
+
_active: {
|
|
9756
|
+
backgroundColor: "surface.accent.active"
|
|
9757
|
+
}
|
|
9758
|
+
}
|
|
9759
|
+
}
|
|
9760
|
+
},
|
|
9761
|
+
floating: {
|
|
9762
|
+
root: {
|
|
9763
|
+
backgroundColor: "surface.floating",
|
|
9764
|
+
outline: "1px solid",
|
|
9765
|
+
outlineColor: "outline.floating",
|
|
9766
|
+
color: "text.floating",
|
|
9767
|
+
boxShadow: "sm",
|
|
9768
|
+
_hover: {
|
|
9769
|
+
backgroundColor: "surface.floating.hover",
|
|
9770
|
+
outline: "1px solid",
|
|
9771
|
+
outlineColor: "outline.floating.hover",
|
|
9772
|
+
_active: {
|
|
9773
|
+
backgroundColor: "surface.floating.active",
|
|
9774
|
+
outline: "1px solid",
|
|
9775
|
+
outlineColor: "outline.floating"
|
|
9776
|
+
}
|
|
9777
|
+
}
|
|
9778
|
+
}
|
|
9779
|
+
}
|
|
9780
|
+
},
|
|
9781
|
+
chipType: {
|
|
9782
|
+
icon: {},
|
|
9783
|
+
choice: {},
|
|
9784
|
+
filter: {}
|
|
9785
|
+
}
|
|
9786
|
+
},
|
|
9787
|
+
defaultVariants: {
|
|
9788
|
+
size: "sm",
|
|
9789
|
+
variant: "core",
|
|
9790
|
+
chipType: "choice"
|
|
9791
|
+
}
|
|
9792
|
+
});
|
|
9513
9793
|
var floatingActionButtonSlotRecipe = react.defineSlotRecipe({
|
|
9514
9794
|
slots: floatingActionButtonAnatomy.keys(),
|
|
9515
9795
|
className: "spor-floating-action-button",
|
|
@@ -11822,11 +12102,12 @@ var slotRecipes = {
|
|
|
11822
12102
|
tabs: tabsSlotRecipe,
|
|
11823
12103
|
travelTag: travelTagSlotRecipe,
|
|
11824
12104
|
toast: toastSlotRecipe,
|
|
11825
|
-
checkboxCard:
|
|
12105
|
+
checkboxCard: filterChipSlotRecipe,
|
|
11826
12106
|
collapsible: collapsibleSlotRecipe,
|
|
11827
12107
|
tooltip: popoverSlotRecipe,
|
|
11828
12108
|
tag: inputChipSlotRecipe,
|
|
11829
|
-
menu: menuSlotRecipe
|
|
12109
|
+
menu: menuSlotRecipe,
|
|
12110
|
+
choiceChip: choiceChipSlotRecipe
|
|
11830
12111
|
};
|
|
11831
12112
|
var animations = react.defineTokens.animations({
|
|
11832
12113
|
spin: {
|
|
@@ -12950,6 +13231,8 @@ exports.CargonetLogo = CargonetLogo;
|
|
|
12950
13231
|
exports.Checkbox = Checkbox;
|
|
12951
13232
|
exports.CheckboxGroup = CheckboxGroup;
|
|
12952
13233
|
exports.ChoiceChip = ChoiceChip;
|
|
13234
|
+
exports.ChoiceChipGroup = ChoiceChipGroup;
|
|
13235
|
+
exports.ChoiceChipLabel = ChoiceChipLabel;
|
|
12953
13236
|
exports.Clipboard = Clipboard;
|
|
12954
13237
|
exports.ClipboardButton = ClipboardButton;
|
|
12955
13238
|
exports.CloseButton = CloseButton;
|
|
@@ -13001,6 +13284,7 @@ exports.FieldsetContent = FieldsetContent;
|
|
|
13001
13284
|
exports.FieldsetErrorText = FieldsetErrorText;
|
|
13002
13285
|
exports.FieldsetHelperText = FieldsetHelperText;
|
|
13003
13286
|
exports.FieldsetLegend = FieldsetLegend;
|
|
13287
|
+
exports.FilterChip = FilterChip;
|
|
13004
13288
|
exports.FloatingActionButton = FloatingActionButton;
|
|
13005
13289
|
exports.Heading = Heading;
|
|
13006
13290
|
exports.IconButton = IconButton;
|