@vygruppen/spor-react 13.7.0 → 13.7.2
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 +1 -1
- package/CHANGELOG.md +17 -0
- package/dist/index.cjs +29 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.mjs +29 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/input/Field.tsx +2 -4
- package/src/layout/RadioCard.tsx +4 -1
- package/src/theme/recipes/badge.ts +20 -0
- package/src/theme/slot-recipes/select.ts +5 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @vygruppen/spor-react@13.7.
|
|
2
|
+
> @vygruppen/spor-react@13.7.2 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/icons/index.mjs 110.00 B
|
|
16
|
-
ESM dist/index.mjs.map 756.21 KB
|
|
17
|
-
ESM dist/icons/index.mjs.map 157.00 B
|
|
18
|
-
ESM ⚡️ Build success in 2676ms
|
|
19
|
-
CJS dist/index.cjs 380.79 KB
|
|
14
|
+
CJS dist/index.cjs 381.87 KB
|
|
20
15
|
CJS dist/icons/index.cjs 381.00 B
|
|
21
|
-
CJS dist/index.cjs.map
|
|
16
|
+
CJS dist/index.cjs.map 757.99 KB
|
|
22
17
|
CJS dist/icons/index.cjs.map 157.00 B
|
|
23
|
-
CJS ⚡️ Build success in
|
|
24
|
-
|
|
18
|
+
CJS ⚡️ Build success in 2512ms
|
|
19
|
+
ESM dist/index.mjs 357.13 KB
|
|
20
|
+
ESM dist/icons/index.mjs 110.00 B
|
|
21
|
+
ESM dist/index.mjs.map 757.99 KB
|
|
22
|
+
ESM dist/icons/index.mjs.map 157.00 B
|
|
23
|
+
ESM ⚡️ Build success in 2513ms
|
|
24
|
+
DTS ⚡️ Build success in 21861ms
|
|
25
25
|
DTS dist/icons/index.d.ts 44.00 B
|
|
26
|
-
DTS dist/index.d.ts 156.
|
|
26
|
+
DTS dist/index.d.ts 156.60 KB
|
|
27
27
|
DTS dist/icons/index.d.cts 44.00 B
|
|
28
|
-
DTS dist/index.d.cts 156.
|
|
28
|
+
DTS dist/index.d.cts 156.60 KB
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @vygruppen/spor-react@13.7.
|
|
2
|
+
> @vygruppen/spor-react@13.7.2 postinstall /home/runner/work/spor/spor/packages/spor-react
|
|
3
3
|
> chakra typegen src/theme/index.ts
|
|
4
4
|
|
|
5
5
|
◇ injected env (0) from .env // tip: ⌘ override existing { override: true }
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @vygruppen/spor-react
|
|
2
2
|
|
|
3
|
+
## 13.7.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- ff28880: RadioCard: Make children take 100% width
|
|
8
|
+
|
|
9
|
+
## 13.7.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 15a6c48: Badge: Added outline on badges
|
|
14
|
+
- e4c369c: truncate long select labels when selected
|
|
15
|
+
- ac7ec72: Remove aria-hidden property from Field component to support better screen reading of form elements.
|
|
16
|
+
- 1272e1d: RadioCard bug: make the children of a RadioCard to by default be placed in a column instead of a row.
|
|
17
|
+
- Updated dependencies [1272e1d]
|
|
18
|
+
- @vygruppen/spor-icon-react@5.0.3
|
|
19
|
+
|
|
3
20
|
## 13.7.0
|
|
4
21
|
|
|
5
22
|
### Minor Changes
|
package/dist/index.cjs
CHANGED
|
@@ -692,58 +692,70 @@ var badgeRecipie = react.defineRecipe({
|
|
|
692
692
|
alignItems: "center",
|
|
693
693
|
justifyContent: "center",
|
|
694
694
|
height: "fit-content",
|
|
695
|
-
gap: "0.5"
|
|
695
|
+
gap: "0.5",
|
|
696
|
+
outline: "1px solid",
|
|
697
|
+
outlineOffset: "-1px"
|
|
696
698
|
},
|
|
697
699
|
variants: {
|
|
698
700
|
colorPalette: {
|
|
699
701
|
neutral: {
|
|
700
702
|
backgroundColor: "surface",
|
|
701
703
|
color: "text",
|
|
704
|
+
outlineColor: "outline",
|
|
702
705
|
"& svg": { color: "icon" }
|
|
703
706
|
},
|
|
704
707
|
grey: {
|
|
705
708
|
backgroundColor: "surface.neutral",
|
|
706
709
|
color: "text.neutral",
|
|
710
|
+
outlineColor: "outline.neutral",
|
|
707
711
|
"& svg": { color: "icon.neutral" }
|
|
708
712
|
},
|
|
709
713
|
green: {
|
|
710
714
|
backgroundColor: "surface.success",
|
|
711
715
|
color: "text.success",
|
|
716
|
+
outlineColor: "outline.success",
|
|
712
717
|
"& svg": { color: "icon.success" }
|
|
713
718
|
},
|
|
714
719
|
blue: {
|
|
715
720
|
backgroundColor: "surface.info",
|
|
716
721
|
color: "text.info",
|
|
722
|
+
outlineColor: "outline.info",
|
|
717
723
|
"& svg": { color: "icon.info" }
|
|
718
724
|
},
|
|
719
725
|
cream: {
|
|
720
726
|
backgroundColor: "surface.warning",
|
|
721
727
|
color: "text.warning",
|
|
728
|
+
outlineColor: "outline.warning",
|
|
722
729
|
"& svg": { color: "icon.warning" }
|
|
723
730
|
},
|
|
724
731
|
yellow: {
|
|
725
732
|
backgroundColor: "surface.notice",
|
|
726
733
|
color: "text.notice",
|
|
734
|
+
outlineColor: "outline.notice",
|
|
727
735
|
"& svg": { color: "icon.notice" }
|
|
728
736
|
},
|
|
729
737
|
orange: {
|
|
730
738
|
backgroundColor: "surface.caution",
|
|
731
739
|
color: "text.caution",
|
|
740
|
+
outlineColor: "outline.caution",
|
|
732
741
|
"& svg": { color: "icon.caution" }
|
|
733
742
|
},
|
|
734
743
|
red: {
|
|
735
744
|
backgroundColor: "surface.critical",
|
|
736
745
|
color: "text.critical",
|
|
746
|
+
outlineColor: "outline.critical",
|
|
737
747
|
"& svg": { color: "icon.critical" }
|
|
738
748
|
},
|
|
739
749
|
brightRed: {
|
|
740
750
|
backgroundColor: { _light: "brightRed", _dark: "brightRed" },
|
|
741
751
|
color: { _light: "pink", _dark: "pink" },
|
|
752
|
+
outlineColor: "outline.error",
|
|
742
753
|
"& svg": { color: { _light: "pink", _dark: "pink" } }
|
|
743
754
|
},
|
|
744
755
|
disabled: {
|
|
745
756
|
backgroundColor: "surface.disabled",
|
|
746
757
|
color: "text.disabled",
|
|
758
|
+
outlineColor: "outline.disabled",
|
|
747
759
|
"& svg": { color: "icon.disabled" }
|
|
748
760
|
}
|
|
749
761
|
},
|
|
@@ -786,6 +798,7 @@ var badgeRecipie = react.defineRecipe({
|
|
|
786
798
|
css: {
|
|
787
799
|
backgroundColor: { _light: "darkBlue", _dark: "lightBlue" },
|
|
788
800
|
color: { _light: "icyBlue", _dark: "royal" },
|
|
801
|
+
outlineColor: { _light: "ocean", _dark: "cloudy" },
|
|
789
802
|
"& svg": { color: { _light: "royal", _dark: "icyBlue" } }
|
|
790
803
|
}
|
|
791
804
|
},
|
|
@@ -795,6 +808,7 @@ var badgeRecipie = react.defineRecipe({
|
|
|
795
808
|
css: {
|
|
796
809
|
backgroundColor: { _light: "darkTeal", _dark: "seaMist" },
|
|
797
810
|
color: { _light: "mint", _dark: "jungle" },
|
|
811
|
+
outlineColor: { _light: "greenHaze", _dark: "coralGreen" },
|
|
798
812
|
"& svg": { color: { _light: "mint", _dark: "jungle" } }
|
|
799
813
|
}
|
|
800
814
|
},
|
|
@@ -804,6 +818,7 @@ var badgeRecipie = react.defineRecipe({
|
|
|
804
818
|
css: {
|
|
805
819
|
backgroundColor: { _light: "carbon", _dark: "platinum" },
|
|
806
820
|
color: { _light: "white", _dark: "darkGrey" },
|
|
821
|
+
outlineColor: { _light: "iron", _dark: "silver" },
|
|
807
822
|
"& svg": { color: { _light: "white", _dark: "darkGrey" } }
|
|
808
823
|
}
|
|
809
824
|
},
|
|
@@ -814,6 +829,7 @@ var badgeRecipie = react.defineRecipe({
|
|
|
814
829
|
css: {
|
|
815
830
|
backgroundColor: { _light: "coffee", _dark: "blonde" },
|
|
816
831
|
color: { _light: "cornsilk", _dark: "coffee" },
|
|
832
|
+
outlineColor: { _light: "bronze", _dark: "banana" },
|
|
817
833
|
"& svg": { color: { _light: "cornsilk", _dark: "coffee" } }
|
|
818
834
|
}
|
|
819
835
|
},
|
|
@@ -823,6 +839,7 @@ var badgeRecipie = react.defineRecipe({
|
|
|
823
839
|
css: {
|
|
824
840
|
backgroundColor: { _light: "bronze", _dark: "banana" },
|
|
825
841
|
color: { _light: "cornsilk", _dark: "coffee" },
|
|
842
|
+
outlineColor: { _light: "golden", _dark: "banana" },
|
|
826
843
|
"& svg": { color: { _light: "cornsilk", _dark: "coffee" } }
|
|
827
844
|
}
|
|
828
845
|
},
|
|
@@ -832,6 +849,7 @@ var badgeRecipie = react.defineRecipe({
|
|
|
832
849
|
css: {
|
|
833
850
|
backgroundColor: { _light: "wood", _dark: "champagne" },
|
|
834
851
|
color: { _light: "bisque", _dark: "wood" },
|
|
852
|
+
outlineColor: { _light: "russet", _dark: "saffron" },
|
|
835
853
|
"& svg": { color: { _light: "bisque", _dark: "wood" } }
|
|
836
854
|
}
|
|
837
855
|
},
|
|
@@ -841,6 +859,7 @@ var badgeRecipie = react.defineRecipe({
|
|
|
841
859
|
css: {
|
|
842
860
|
backgroundColor: { _light: "burgundy", _dark: "lightRed" },
|
|
843
861
|
color: { _light: "pink", _dark: "maroon" },
|
|
862
|
+
outlineColor: { _light: "crimson", _dark: "salmon" },
|
|
844
863
|
"& svg": { color: { _light: "pink", _dark: "maroon" } }
|
|
845
864
|
}
|
|
846
865
|
},
|
|
@@ -850,6 +869,7 @@ var badgeRecipie = react.defineRecipe({
|
|
|
850
869
|
inverted: true,
|
|
851
870
|
css: {
|
|
852
871
|
backgroundColor: { _light: "ink", _dark: "white" },
|
|
872
|
+
outlineColor: { _light: "whiteAlpha.400", _dark: "blackAlpha.400" },
|
|
853
873
|
color: { _light: "white", _dark: "darkGrey" },
|
|
854
874
|
"& svg": { color: { _light: "white", _dark: "darkGrey" } }
|
|
855
875
|
}
|
|
@@ -1590,7 +1610,7 @@ var RadioCard = ({
|
|
|
1590
1610
|
),
|
|
1591
1611
|
/* @__PURE__ */ jsxRuntime.jsxs(react.RadioCard.ItemControl, { id: itemControlId, "aria-hidden": true, children: [
|
|
1592
1612
|
showIndicator && /* @__PURE__ */ jsxRuntime.jsx(react.RadioCard.ItemIndicator, {}),
|
|
1593
|
-
children
|
|
1613
|
+
/* @__PURE__ */ jsxRuntime.jsx(react.Flex, { direction: "column", width: "100%", children })
|
|
1594
1614
|
] })
|
|
1595
1615
|
] });
|
|
1596
1616
|
};
|
|
@@ -2108,18 +2128,17 @@ var Field3 = ({
|
|
|
2108
2128
|
id,
|
|
2109
2129
|
gap,
|
|
2110
2130
|
children: [
|
|
2111
|
-
label && !floatingLabel && /* @__PURE__ */ jsxRuntime.jsx(Label, { asChild: labelAsChild,
|
|
2112
|
-
children,
|
|
2131
|
+
label && !floatingLabel && /* @__PURE__ */ jsxRuntime.jsx(Label, { asChild: labelAsChild, css: styles.label, children: renderLabelWithIndicator(label, labelAsChild) }),
|
|
2113
2132
|
label && floatingLabel && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2114
2133
|
FloatingLabel,
|
|
2115
2134
|
{
|
|
2116
2135
|
"data-float": shouldFloat ? true : void 0,
|
|
2117
2136
|
asChild: labelAsChild,
|
|
2118
|
-
"aria-hidden": true,
|
|
2119
2137
|
css: styles.label,
|
|
2120
2138
|
children: renderLabelWithIndicator(label, labelAsChild)
|
|
2121
2139
|
}
|
|
2122
2140
|
),
|
|
2141
|
+
children,
|
|
2123
2142
|
errorText && /* @__PURE__ */ jsxRuntime.jsx(react.Field.ErrorText, { "aria-live": "polite", children: errorText })
|
|
2124
2143
|
]
|
|
2125
2144
|
}
|
|
@@ -11588,6 +11607,11 @@ var selectSlotRecipe = react.defineSlotRecipe({
|
|
|
11588
11607
|
outlineColor: "outline.error"
|
|
11589
11608
|
}
|
|
11590
11609
|
},
|
|
11610
|
+
valueText: {
|
|
11611
|
+
textOverflow: "ellipsis",
|
|
11612
|
+
whiteSpace: "nowrap",
|
|
11613
|
+
overflow: "hidden"
|
|
11614
|
+
},
|
|
11591
11615
|
itemText: {
|
|
11592
11616
|
flex: "1",
|
|
11593
11617
|
alignItems: "center"
|