@vygruppen/spor-react 13.1.0 → 13.1.1
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 +4 -3
- package/CHANGELOG.md +9 -0
- package/dist/index.cjs +99 -26
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.mjs +99 -26
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/input/Menu.tsx +9 -5
- package/src/theme/recipes/badge.ts +97 -25
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @vygruppen/spor-react@13.1.
|
|
2
|
+
> @vygruppen/spor-react@13.1.1 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
|
-
CJS dist/icons/index.cjs 381.00 B
|
|
15
|
-
CJS dist/index.cjs 360.23 KB
|
|
16
|
-
CJS dist/icons/index.cjs.map 157.00 B
|
|
17
|
-
CJS dist/index.cjs.map 717.02 KB
|
|
18
|
-
CJS ⚡️ Build success in 2718ms
|
|
19
|
-
ESM dist/index.mjs 336.21 KB
|
|
20
14
|
ESM dist/icons/index.mjs 110.00 B
|
|
21
|
-
ESM dist/index.mjs.
|
|
15
|
+
ESM dist/index.mjs 337.19 KB
|
|
22
16
|
ESM dist/icons/index.mjs.map 157.00 B
|
|
23
|
-
ESM
|
|
24
|
-
|
|
17
|
+
ESM dist/index.mjs.map 719.14 KB
|
|
18
|
+
ESM ⚡️ Build success in 2606ms
|
|
19
|
+
CJS dist/index.cjs 361.21 KB
|
|
20
|
+
CJS dist/icons/index.cjs 381.00 B
|
|
21
|
+
CJS dist/index.cjs.map 719.14 KB
|
|
22
|
+
CJS dist/icons/index.cjs.map 157.00 B
|
|
23
|
+
CJS ⚡️ Build success in 2607ms
|
|
24
|
+
DTS ⚡️ Build success in 22738ms
|
|
25
25
|
DTS dist/icons/index.d.ts 44.00 B
|
|
26
|
-
DTS dist/index.d.ts 143.
|
|
26
|
+
DTS dist/index.d.ts 143.27 KB
|
|
27
27
|
DTS dist/icons/index.d.cts 44.00 B
|
|
28
|
-
DTS dist/index.d.cts 143.
|
|
28
|
+
DTS dist/index.d.cts 143.27 KB
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
> @vygruppen/spor-react@13.1.
|
|
2
|
+
> @vygruppen/spor-react@13.1.1 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: ⌘ override existing { override: true }
|
|
6
6
|
[90m┌[39m Chakra CLI ⚡️
|
|
7
7
|
[?25l[90m│[39m
|
|
8
|
-
[
|
|
8
|
+
[35m◒[39m Generating conditions types...
|
|
9
|
+
[1G[J[32m◇[39m ✅ Generated conditions typings
|
|
9
10
|
[?25h[?25l[90m│[39m
|
|
10
11
|
[35m◒[39m Generating recipe types...
|
|
11
12
|
[1G[J[32m◇[39m ✅ Generated recipe typings
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @vygruppen/spor-react
|
|
2
2
|
|
|
3
|
+
## 13.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 106ee0f: Patches to new color tokens and add support to badge-inverted back
|
|
8
|
+
- 448f4e5: add props for button-variant and withChevron to menutrigger
|
|
9
|
+
- Updated dependencies [106ee0f]
|
|
10
|
+
- @vygruppen/spor-design-tokens@5.0.1
|
|
11
|
+
|
|
3
12
|
## 13.1.0
|
|
4
13
|
|
|
5
14
|
### Minor Changes
|
package/dist/index.cjs
CHANGED
|
@@ -711,7 +711,7 @@ var badgeRecipie = react.defineRecipe({
|
|
|
711
711
|
}
|
|
712
712
|
},
|
|
713
713
|
green: {
|
|
714
|
-
backgroundColor: "surface.
|
|
714
|
+
backgroundColor: "surface.success",
|
|
715
715
|
color: "text.success",
|
|
716
716
|
"& svg": {
|
|
717
717
|
color: "icon.success"
|
|
@@ -794,10 +794,19 @@ var badgeRecipie = react.defineRecipe({
|
|
|
794
794
|
colorPalette: "blue",
|
|
795
795
|
inverted: true,
|
|
796
796
|
css: {
|
|
797
|
-
backgroundColor:
|
|
798
|
-
|
|
797
|
+
backgroundColor: {
|
|
798
|
+
_light: "darkBlue",
|
|
799
|
+
_dark: "lightBlue"
|
|
800
|
+
},
|
|
801
|
+
color: {
|
|
802
|
+
_light: "icyBlue",
|
|
803
|
+
_dark: "royal"
|
|
804
|
+
},
|
|
799
805
|
"& svg": {
|
|
800
|
-
color:
|
|
806
|
+
color: {
|
|
807
|
+
_light: "royal",
|
|
808
|
+
_dark: "icyBlue"
|
|
809
|
+
}
|
|
801
810
|
}
|
|
802
811
|
}
|
|
803
812
|
},
|
|
@@ -805,10 +814,19 @@ var badgeRecipie = react.defineRecipe({
|
|
|
805
814
|
colorPalette: "green",
|
|
806
815
|
inverted: true,
|
|
807
816
|
css: {
|
|
808
|
-
backgroundColor:
|
|
809
|
-
|
|
817
|
+
backgroundColor: {
|
|
818
|
+
_light: "darkTeal",
|
|
819
|
+
_dark: "seaMist"
|
|
820
|
+
},
|
|
821
|
+
color: {
|
|
822
|
+
_light: "mint",
|
|
823
|
+
_dark: "jungle"
|
|
824
|
+
},
|
|
810
825
|
"& svg": {
|
|
811
|
-
color:
|
|
826
|
+
color: {
|
|
827
|
+
_light: "mint",
|
|
828
|
+
_dark: "jungle"
|
|
829
|
+
}
|
|
812
830
|
}
|
|
813
831
|
}
|
|
814
832
|
},
|
|
@@ -816,10 +834,19 @@ var badgeRecipie = react.defineRecipe({
|
|
|
816
834
|
colorPalette: "grey",
|
|
817
835
|
inverted: true,
|
|
818
836
|
css: {
|
|
819
|
-
backgroundColor:
|
|
820
|
-
|
|
837
|
+
backgroundColor: {
|
|
838
|
+
_light: "carbon",
|
|
839
|
+
_dark: "platinum"
|
|
840
|
+
},
|
|
841
|
+
color: {
|
|
842
|
+
_light: "white",
|
|
843
|
+
_dark: "darkGrey"
|
|
844
|
+
},
|
|
821
845
|
"& svg": {
|
|
822
|
-
color:
|
|
846
|
+
color: {
|
|
847
|
+
_light: "white",
|
|
848
|
+
_dark: "darkGrey"
|
|
849
|
+
}
|
|
823
850
|
}
|
|
824
851
|
}
|
|
825
852
|
},
|
|
@@ -828,10 +855,19 @@ var badgeRecipie = react.defineRecipe({
|
|
|
828
855
|
colorPalette: "cream",
|
|
829
856
|
inverted: true,
|
|
830
857
|
css: {
|
|
831
|
-
backgroundColor:
|
|
832
|
-
|
|
858
|
+
backgroundColor: {
|
|
859
|
+
_light: "coffee",
|
|
860
|
+
_dark: "blonde"
|
|
861
|
+
},
|
|
862
|
+
color: {
|
|
863
|
+
_light: "cornsilk",
|
|
864
|
+
_dark: "coffee"
|
|
865
|
+
},
|
|
833
866
|
"& svg": {
|
|
834
|
-
color:
|
|
867
|
+
color: {
|
|
868
|
+
_light: "cornsilk",
|
|
869
|
+
_dark: "coffee"
|
|
870
|
+
}
|
|
835
871
|
}
|
|
836
872
|
}
|
|
837
873
|
},
|
|
@@ -839,10 +875,19 @@ var badgeRecipie = react.defineRecipe({
|
|
|
839
875
|
colorPalette: "yellow",
|
|
840
876
|
inverted: true,
|
|
841
877
|
css: {
|
|
842
|
-
backgroundColor:
|
|
843
|
-
|
|
878
|
+
backgroundColor: {
|
|
879
|
+
_light: "bronze",
|
|
880
|
+
_dark: "banana"
|
|
881
|
+
},
|
|
882
|
+
color: {
|
|
883
|
+
_light: "cornsilk",
|
|
884
|
+
_dark: "coffee"
|
|
885
|
+
},
|
|
844
886
|
"& svg": {
|
|
845
|
-
color:
|
|
887
|
+
color: {
|
|
888
|
+
_light: "cornsilk",
|
|
889
|
+
_dark: "coffee"
|
|
890
|
+
}
|
|
846
891
|
}
|
|
847
892
|
}
|
|
848
893
|
},
|
|
@@ -850,10 +895,19 @@ var badgeRecipie = react.defineRecipe({
|
|
|
850
895
|
colorPalette: "orange",
|
|
851
896
|
inverted: true,
|
|
852
897
|
css: {
|
|
853
|
-
backgroundColor:
|
|
854
|
-
|
|
898
|
+
backgroundColor: {
|
|
899
|
+
_light: "wood",
|
|
900
|
+
_dark: "champagne"
|
|
901
|
+
},
|
|
902
|
+
color: {
|
|
903
|
+
_light: "bisque",
|
|
904
|
+
_dark: "wood"
|
|
905
|
+
},
|
|
855
906
|
"& svg": {
|
|
856
|
-
color:
|
|
907
|
+
color: {
|
|
908
|
+
_light: "bisque",
|
|
909
|
+
_dark: "wood"
|
|
910
|
+
}
|
|
857
911
|
}
|
|
858
912
|
}
|
|
859
913
|
},
|
|
@@ -861,10 +915,19 @@ var badgeRecipie = react.defineRecipe({
|
|
|
861
915
|
colorPalette: "red",
|
|
862
916
|
inverted: true,
|
|
863
917
|
css: {
|
|
864
|
-
backgroundColor:
|
|
865
|
-
|
|
918
|
+
backgroundColor: {
|
|
919
|
+
_light: "burgundy",
|
|
920
|
+
_dark: "lightRed"
|
|
921
|
+
},
|
|
922
|
+
color: {
|
|
923
|
+
_light: "pink",
|
|
924
|
+
_dark: "maroon"
|
|
925
|
+
},
|
|
866
926
|
"& svg": {
|
|
867
|
-
color:
|
|
927
|
+
color: {
|
|
928
|
+
_light: "pink",
|
|
929
|
+
_dark: "maroon"
|
|
930
|
+
}
|
|
868
931
|
}
|
|
869
932
|
}
|
|
870
933
|
},
|
|
@@ -873,10 +936,19 @@ var badgeRecipie = react.defineRecipe({
|
|
|
873
936
|
colorPalette: "neutral",
|
|
874
937
|
inverted: true,
|
|
875
938
|
css: {
|
|
876
|
-
backgroundColor:
|
|
877
|
-
|
|
939
|
+
backgroundColor: {
|
|
940
|
+
_light: "ink",
|
|
941
|
+
_dark: "white"
|
|
942
|
+
},
|
|
943
|
+
color: {
|
|
944
|
+
_light: "white",
|
|
945
|
+
_dark: "darkGrey"
|
|
946
|
+
},
|
|
878
947
|
"& svg": {
|
|
879
|
-
color:
|
|
948
|
+
color: {
|
|
949
|
+
_light: "white",
|
|
950
|
+
_dark: "darkGrey"
|
|
951
|
+
}
|
|
880
952
|
}
|
|
881
953
|
}
|
|
882
954
|
}
|
|
@@ -4124,6 +4196,7 @@ var MenuTrigger = ({
|
|
|
4124
4196
|
size,
|
|
4125
4197
|
children,
|
|
4126
4198
|
ref,
|
|
4199
|
+
withChevron = true,
|
|
4127
4200
|
...props
|
|
4128
4201
|
}) => {
|
|
4129
4202
|
const { variant } = useMenuContext();
|
|
@@ -4143,7 +4216,7 @@ var MenuTrigger = ({
|
|
|
4143
4216
|
variant: getButtonVariant(),
|
|
4144
4217
|
size,
|
|
4145
4218
|
...props,
|
|
4146
|
-
rightIcon: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4219
|
+
rightIcon: withChevron && /* @__PURE__ */ jsxRuntime.jsx(
|
|
4147
4220
|
ChevronIcon,
|
|
4148
4221
|
{
|
|
4149
4222
|
transform: open ? "rotate(180deg)" : void 0,
|