@vygruppen/spor-react 13.1.0 → 13.1.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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @vygruppen/spor-react@13.1.0 build /home/runner/work/spor/spor/packages/spor-react
2
+ > @vygruppen/spor-react@13.1.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
+ CJS dist/index.cjs 361.36 KB
14
15
  CJS dist/icons/index.cjs 381.00 B
15
- CJS dist/index.cjs 360.23 KB
16
+ CJS dist/index.cjs.map 719.37 KB
16
17
  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
18
+ CJS ⚡️ Build success in 2677ms
19
+ ESM dist/index.mjs 337.34 KB
20
20
  ESM dist/icons/index.mjs 110.00 B
21
- ESM dist/index.mjs.map 717.02 KB
21
+ ESM dist/index.mjs.map 719.37 KB
22
22
  ESM dist/icons/index.mjs.map 157.00 B
23
- ESM ⚡️ Build success in 2718ms
24
- DTS ⚡️ Build success in 20239ms
23
+ ESM ⚡️ Build success in 2682ms
24
+ DTS ⚡️ Build success in 20448ms
25
25
  DTS dist/icons/index.d.ts 44.00 B
26
- DTS dist/index.d.ts 143.24 KB
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.24 KB
28
+ DTS dist/index.d.cts 143.27 KB
@@ -1,11 +1,12 @@
1
1
 
2
- > @vygruppen/spor-react@13.1.0 postinstall /home/runner/work/spor/spor/packages/spor-react
2
+ > @vygruppen/spor-react@13.1.2 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: secrets for agents [www.dotenvx.com]
5
+ ◇ injected env (0) from .env // tip: multiple files { path: ['.env.local', '.env'] }
6
6
  ┌ Chakra CLI ⚡️
7
7
  [?25l│
8
- ◇ Generated conditions typings
8
+ ◒ Generating conditions types...
9
+ ◇ ✅ Generated conditions typings
9
10
  [?25h[?25l│
10
11
  ◒ Generating recipe types...
11
12
  ◇ ✅ Generated recipe typings
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @vygruppen/spor-react
2
2
 
3
+ ## 13.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 976b64a: Add border to toast
8
+
9
+ ## 13.1.1
10
+
11
+ ### Patch Changes
12
+
13
+ - 106ee0f: Patches to new color tokens and add support to badge-inverted back
14
+ - 448f4e5: add props for button-variant and withChevron to menutrigger
15
+ - Updated dependencies [106ee0f]
16
+ - @vygruppen/spor-design-tokens@5.0.1
17
+
3
18
  ## 13.1.0
4
19
 
5
20
  ### 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.subtle",
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: "badge.blue.surface.inverted",
798
- color: "badge.blue.text.inverted",
797
+ backgroundColor: {
798
+ _light: "darkBlue",
799
+ _dark: "lightBlue"
800
+ },
801
+ color: {
802
+ _light: "icyBlue",
803
+ _dark: "royal"
804
+ },
799
805
  "& svg": {
800
- color: "badge.blue.icon.inverted"
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: "badge.green.surface.inverted",
809
- color: "badge.green.text.inverted",
817
+ backgroundColor: {
818
+ _light: "darkTeal",
819
+ _dark: "seaMist"
820
+ },
821
+ color: {
822
+ _light: "mint",
823
+ _dark: "jungle"
824
+ },
810
825
  "& svg": {
811
- color: "badge.green.icon.inverted"
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: "badge.grey.surface.inverted",
820
- color: "badge.grey.text.inverted",
837
+ backgroundColor: {
838
+ _light: "carbon",
839
+ _dark: "platinum"
840
+ },
841
+ color: {
842
+ _light: "white",
843
+ _dark: "darkGrey"
844
+ },
821
845
  "& svg": {
822
- color: "badge.grey.icon.inverted"
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: "badge.cream.surface.inverted",
832
- color: "badge.cream.text.inverted",
858
+ backgroundColor: {
859
+ _light: "coffee",
860
+ _dark: "blonde"
861
+ },
862
+ color: {
863
+ _light: "cornsilk",
864
+ _dark: "coffee"
865
+ },
833
866
  "& svg": {
834
- color: "badge.cream.icon.inverted"
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: "badge.yellow.surface.inverted",
843
- color: "badge.yellow.text.inverted",
878
+ backgroundColor: {
879
+ _light: "bronze",
880
+ _dark: "banana"
881
+ },
882
+ color: {
883
+ _light: "cornsilk",
884
+ _dark: "coffee"
885
+ },
844
886
  "& svg": {
845
- color: "badge.yellow.icon.inverted"
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: "badge.orange.surface.inverted",
854
- color: "badge.orange.text.inverted",
898
+ backgroundColor: {
899
+ _light: "wood",
900
+ _dark: "champagne"
901
+ },
902
+ color: {
903
+ _light: "bisque",
904
+ _dark: "wood"
905
+ },
855
906
  "& svg": {
856
- color: "badge.orange.icon.inverted"
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: "badge.red.surface.inverted",
865
- color: "badge.red.text.inverted",
918
+ backgroundColor: {
919
+ _light: "burgundy",
920
+ _dark: "lightRed"
921
+ },
922
+ color: {
923
+ _light: "pink",
924
+ _dark: "maroon"
925
+ },
866
926
  "& svg": {
867
- color: "badge.red.icon.inverted"
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: "badge.surface.inverted",
877
- color: "badge.text.inverted",
939
+ backgroundColor: {
940
+ _light: "ink",
941
+ _dark: "white"
942
+ },
943
+ color: {
944
+ _light: "white",
945
+ _dark: "darkGrey"
946
+ },
878
947
  "& svg": {
879
- color: "badge.icon.inverted"
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,
@@ -6485,10 +6558,20 @@ var createToast = ({
6485
6558
  var Toaster = () => {
6486
6559
  return /* @__PURE__ */ jsxRuntime.jsx(react.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(react.Toaster, { toaster, insetInline: { mdDown: "4" }, children: (toast) => {
6487
6560
  var _a6;
6488
- return /* @__PURE__ */ jsxRuntime.jsxs(react.Toast.Root, { width: { md: (_a6 = toast.meta) == null ? void 0 : _a6.width }, role: "alert", children: [
6489
- /* @__PURE__ */ jsxRuntime.jsx(AlertIcon, { variant: toast.type }),
6490
- /* @__PURE__ */ jsxRuntime.jsx(react.Stack, { gap: "1", flex: "1", maxWidth: "100%", children: /* @__PURE__ */ jsxRuntime.jsx(react.Toast.Description, { children: toast.description }) })
6491
- ] });
6561
+ return /* @__PURE__ */ jsxRuntime.jsxs(
6562
+ react.Toast.Root,
6563
+ {
6564
+ width: { md: (_a6 = toast.meta) == null ? void 0 : _a6.width },
6565
+ border: "sm",
6566
+ borderColor: `outline.${toast.type}`,
6567
+ boxShadow: "sm",
6568
+ role: "alert",
6569
+ children: [
6570
+ /* @__PURE__ */ jsxRuntime.jsx(AlertIcon, { variant: toast.type }),
6571
+ /* @__PURE__ */ jsxRuntime.jsx(react.Stack, { gap: "1", flex: "1", maxWidth: "100%", children: /* @__PURE__ */ jsxRuntime.jsx(react.Toast.Description, { children: toast.description }) })
6572
+ ]
6573
+ }
6574
+ );
6492
6575
  } }) });
6493
6576
  };
6494
6577
  var SporProvider = ({