@vygruppen/spor-react 3.3.4 → 3.4.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 +9 -9
- package/CHANGELOG.md +23 -0
- package/dist/{CountryCodeSelect-HKZBFK6T.mjs → CountryCodeSelect-I6MGYQTH.mjs} +1 -1
- package/dist/{chunk-QHD5YJ6K.mjs → chunk-GIXEJPV7.mjs} +21 -16
- package/dist/index.d.ts +16 -15
- package/dist/index.js +20 -15
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/theme/components/card.ts +7 -11
- package/src/theme/foundations/breakpoints.ts +3 -2
- package/src/theme/foundations/textStyles.ts +7 -0
package/.turbo/turbo-build.log
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
> @vygruppen/spor-react@3.
|
2
|
+
> @vygruppen/spor-react@3.4.1 build
|
3
3
|
> tsup src/index.tsx --dts --treeshake --format cjs,esm
|
4
4
|
|
5
5
|
[34mCLI[39m Building entry: src/index.tsx
|
@@ -9,13 +9,13 @@
|
|
9
9
|
[34mCJS[39m Build start
|
10
10
|
[34mESM[39m Build start
|
11
11
|
[34mDTS[39m Build start
|
12
|
-
"toZoned" and "toTime" are imported from external module "@internationalized/date" but never used in "dist/chunk-QHD5YJ6K.mjs".
|
13
12
|
"toZoned" and "toTime" are imported from external module "@internationalized/date" but never used in "dist/index.js".
|
13
|
+
"toZoned" and "toTime" are imported from external module "@internationalized/date" but never used in "dist/chunk-GIXEJPV7.mjs".
|
14
|
+
[32mCJS[39m [1mdist/index.js [22m[32m903.40 KB[39m
|
15
|
+
[32mCJS[39m ⚡️ Build success in 4807ms
|
14
16
|
[32mESM[39m [1mdist/index.mjs [22m[32m2.01 KB[39m
|
15
|
-
[32mESM[39m [1mdist/CountryCodeSelect-
|
16
|
-
[32mESM[39m [1mdist/chunk-
|
17
|
-
[32mESM[39m ⚡️ Build success in
|
18
|
-
[
|
19
|
-
[
|
20
|
-
[32mDTS[39m ⚡️ Build success in 23010ms
|
21
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m252.39 KB[39m
|
17
|
+
[32mESM[39m [1mdist/CountryCodeSelect-I6MGYQTH.mjs [22m[32m350.82 KB[39m
|
18
|
+
[32mESM[39m [1mdist/chunk-GIXEJPV7.mjs [22m[32m420.57 KB[39m
|
19
|
+
[32mESM[39m ⚡️ Build success in 4808ms
|
20
|
+
[32mDTS[39m ⚡️ Build success in 18338ms
|
21
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m252.53 KB[39m
|
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,28 @@
|
|
1
1
|
# @vygruppen/spor-react
|
2
2
|
|
3
|
+
## 3.4.1
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- 83976e0a: Card: Fix a bug with clickable cards that had to have the display property set to not break
|
8
|
+
- 4787d9e9: Hotfix breakpoints
|
9
|
+
|
10
|
+
## 3.4.0
|
11
|
+
|
12
|
+
### Minor Changes
|
13
|
+
|
14
|
+
- 349fe0a5: Implement new breakpoint structure
|
15
|
+
|
16
|
+
This change introduces a new breakpoint between sm and md, and changes the breakpoint values slightly.
|
17
|
+
|
18
|
+
When upgrading, please make sure to check your responsive layouts.
|
19
|
+
|
20
|
+
### Patch Changes
|
21
|
+
|
22
|
+
- b18e847b: Card: Update design for non-interactive cards
|
23
|
+
- Updated dependencies [349fe0a5]
|
24
|
+
- @vygruppen/spor-design-tokens@3.2.0
|
25
|
+
|
3
26
|
## 3.3.4
|
4
27
|
|
5
28
|
### Patch Changes
|
@@ -5084,7 +5084,7 @@ var texts14 = createTexts({
|
|
5084
5084
|
sv: "Telefonnummer"
|
5085
5085
|
}
|
5086
5086
|
});
|
5087
|
-
var LazyCountryCodeSelect = React49__default.lazy(() => import('./CountryCodeSelect-
|
5087
|
+
var LazyCountryCodeSelect = React49__default.lazy(() => import('./CountryCodeSelect-I6MGYQTH.mjs'));
|
5088
5088
|
var Radio = forwardRef((props, ref) => {
|
5089
5089
|
return /* @__PURE__ */ React49__default.createElement(Radio$1, { ...props, ref });
|
5090
5090
|
});
|
@@ -10768,11 +10768,12 @@ var borders2 = {
|
|
10768
10768
|
"lg-dashed": `${tokens10__default.size.stroke.lg} dashed`
|
10769
10769
|
};
|
10770
10770
|
var breakpoints2 = {
|
10771
|
+
base: "0px",
|
10771
10772
|
sm: tokens10__default.size.breakpoint.sm,
|
10772
10773
|
md: tokens10__default.size.breakpoint.md,
|
10773
10774
|
lg: tokens10__default.size.breakpoint.lg,
|
10774
|
-
xl: tokens10__default.size.breakpoint.
|
10775
|
-
"2xl": tokens10__default.size.breakpoint.
|
10775
|
+
xl: tokens10__default.size.breakpoint.xl,
|
10776
|
+
"2xl": tokens10__default.size.breakpoint.xl
|
10776
10777
|
};
|
10777
10778
|
|
10778
10779
|
// src/theme/foundations/config.ts
|
@@ -10876,6 +10877,7 @@ var textStyles = {
|
|
10876
10877
|
"2xl": {
|
10877
10878
|
fontSize: [
|
10878
10879
|
tokens10__default.font.style.xxl["font-size"].mobile,
|
10880
|
+
null,
|
10879
10881
|
tokens10__default.font.style.xxl["font-size"].desktop
|
10880
10882
|
],
|
10881
10883
|
fontFamily: tokens10__default.font.style.xxl["font-family"],
|
@@ -10884,6 +10886,7 @@ var textStyles = {
|
|
10884
10886
|
"xl-display": {
|
10885
10887
|
fontSize: [
|
10886
10888
|
tokens10__default.font.style["xl-display"]["font-size"].mobile,
|
10889
|
+
null,
|
10887
10890
|
tokens10__default.font.style["xl-display"]["font-size"].desktop
|
10888
10891
|
],
|
10889
10892
|
fontFamily: tokens10__default.font.style["xl-display"]["font-family"],
|
@@ -10892,6 +10895,7 @@ var textStyles = {
|
|
10892
10895
|
"xl-sans": {
|
10893
10896
|
fontSize: [
|
10894
10897
|
tokens10__default.font.style["xl-sans"]["font-size"].mobile,
|
10898
|
+
null,
|
10895
10899
|
tokens10__default.font.style["xl-sans"]["font-size"].desktop
|
10896
10900
|
],
|
10897
10901
|
fontFamily: tokens10__default.font.style["xl-sans"]["font-family"],
|
@@ -10900,6 +10904,7 @@ var textStyles = {
|
|
10900
10904
|
lg: {
|
10901
10905
|
fontSize: [
|
10902
10906
|
tokens10__default.font.style.lg["font-size"].mobile,
|
10907
|
+
null,
|
10903
10908
|
tokens10__default.font.style.lg["font-size"].desktop
|
10904
10909
|
],
|
10905
10910
|
fontFamily: tokens10__default.font.style.lg["font-family"],
|
@@ -10908,6 +10913,7 @@ var textStyles = {
|
|
10908
10913
|
md: {
|
10909
10914
|
fontSize: [
|
10910
10915
|
tokens10__default.font.style.md["font-size"].mobile,
|
10916
|
+
null,
|
10911
10917
|
tokens10__default.font.style.md["font-size"].desktop
|
10912
10918
|
],
|
10913
10919
|
fontFamily: tokens10__default.font.style.md["font-family"],
|
@@ -10916,6 +10922,7 @@ var textStyles = {
|
|
10916
10922
|
sm: {
|
10917
10923
|
fontSize: [
|
10918
10924
|
tokens10__default.font.style.sm["font-size"].mobile,
|
10925
|
+
null,
|
10919
10926
|
tokens10__default.font.style.sm["font-size"].desktop
|
10920
10927
|
],
|
10921
10928
|
fontFamily: tokens10__default.font.style.sm["font-family"],
|
@@ -10924,6 +10931,7 @@ var textStyles = {
|
|
10924
10931
|
xs: {
|
10925
10932
|
fontSize: [
|
10926
10933
|
tokens10__default.font.style.xs["font-size"].mobile,
|
10934
|
+
null,
|
10927
10935
|
tokens10__default.font.style.xs["font-size"].desktop
|
10928
10936
|
],
|
10929
10937
|
fontFamily: tokens10__default.font.style.xs["font-family"],
|
@@ -11447,6 +11455,7 @@ var config7 = defineStyleConfig$1({
|
|
11447
11455
|
border: "none",
|
11448
11456
|
overflow: "hidden",
|
11449
11457
|
fontSize: "inherit",
|
11458
|
+
display: "block",
|
11450
11459
|
transitionProperty: "common",
|
11451
11460
|
transitionDuration: "fast",
|
11452
11461
|
borderRadius: "md",
|
@@ -11482,28 +11491,24 @@ var config7 = defineStyleConfig$1({
|
|
11482
11491
|
});
|
11483
11492
|
var card_default = config7;
|
11484
11493
|
function getColorSchemeBaseProps({ colorScheme }) {
|
11485
|
-
var _a6
|
11494
|
+
var _a6;
|
11486
11495
|
switch (colorScheme) {
|
11487
11496
|
case "white":
|
11488
11497
|
return {
|
11489
|
-
backgroundColor: "
|
11490
|
-
boxShadow: getBoxShadowString({
|
11491
|
-
borderColor: "silver"
|
11492
|
-
})
|
11498
|
+
backgroundColor: "lightGrey"
|
11493
11499
|
};
|
11494
11500
|
case "grey":
|
11495
11501
|
return {
|
11496
|
-
backgroundColor: "lightGrey"
|
11497
|
-
|
11498
|
-
|
11499
|
-
|
11502
|
+
backgroundColor: "lightGrey"
|
11503
|
+
};
|
11504
|
+
case "green": {
|
11505
|
+
return {
|
11506
|
+
backgroundColor: "seaMist"
|
11500
11507
|
};
|
11508
|
+
}
|
11501
11509
|
default:
|
11502
11510
|
return {
|
11503
|
-
backgroundColor: ((_a6 = colors[colorScheme]) == null ? void 0 : _a6[100]) ?? "platinum"
|
11504
|
-
boxShadow: getBoxShadowString({
|
11505
|
-
borderColor: ((_b5 = colors[colorScheme]) == null ? void 0 : _b5[200]) ?? "silver"
|
11506
|
-
})
|
11511
|
+
backgroundColor: ((_a6 = colors[colorScheme]) == null ? void 0 : _a6[100]) ?? "platinum"
|
11507
11512
|
};
|
11508
11513
|
}
|
11509
11514
|
}
|
package/dist/index.d.ts
CHANGED
@@ -1891,37 +1891,37 @@ type ColorsType = typeof tokens__default.color.alias & typeof tokens__default.co
|
|
1891
1891
|
|
1892
1892
|
declare const textStyles: {
|
1893
1893
|
"2xl": {
|
1894
|
-
fontSize: string[];
|
1894
|
+
fontSize: (string | null)[];
|
1895
1895
|
fontFamily: string;
|
1896
1896
|
lineHeight: string;
|
1897
1897
|
};
|
1898
1898
|
"xl-display": {
|
1899
|
-
fontSize: string[];
|
1899
|
+
fontSize: (string | null)[];
|
1900
1900
|
fontFamily: string;
|
1901
1901
|
lineHeight: string;
|
1902
1902
|
};
|
1903
1903
|
"xl-sans": {
|
1904
|
-
fontSize: string[];
|
1904
|
+
fontSize: (string | null)[];
|
1905
1905
|
fontFamily: string;
|
1906
1906
|
lineHeight: string;
|
1907
1907
|
};
|
1908
1908
|
lg: {
|
1909
|
-
fontSize: string[];
|
1909
|
+
fontSize: (string | null)[];
|
1910
1910
|
fontFamily: string;
|
1911
1911
|
lineHeight: string;
|
1912
1912
|
};
|
1913
1913
|
md: {
|
1914
|
-
fontSize: string[];
|
1914
|
+
fontSize: (string | null)[];
|
1915
1915
|
fontFamily: string;
|
1916
1916
|
lineHeight: string;
|
1917
1917
|
};
|
1918
1918
|
sm: {
|
1919
|
-
fontSize: string[];
|
1919
|
+
fontSize: (string | null)[];
|
1920
1920
|
fontFamily: string;
|
1921
1921
|
lineHeight: string;
|
1922
1922
|
};
|
1923
1923
|
xs: {
|
1924
|
-
fontSize: string[];
|
1924
|
+
fontSize: (string | null)[];
|
1925
1925
|
fontFamily: string;
|
1926
1926
|
lineHeight: string;
|
1927
1927
|
};
|
@@ -2348,11 +2348,11 @@ declare const theme: {
|
|
2348
2348
|
boxShadow: string;
|
2349
2349
|
};
|
2350
2350
|
backgroundColor: string;
|
2351
|
-
boxShadow: string;
|
2352
2351
|
appearance: string;
|
2353
2352
|
border: string;
|
2354
2353
|
overflow: string;
|
2355
2354
|
fontSize: string;
|
2355
|
+
display: string;
|
2356
2356
|
transitionProperty: string;
|
2357
2357
|
transitionDuration: string;
|
2358
2358
|
borderRadius: string;
|
@@ -6539,6 +6539,7 @@ declare const theme: {
|
|
6539
6539
|
"lg-dashed": string;
|
6540
6540
|
};
|
6541
6541
|
breakpoints: {
|
6542
|
+
base: string;
|
6542
6543
|
sm: string;
|
6543
6544
|
md: string;
|
6544
6545
|
lg: string;
|
@@ -6802,37 +6803,37 @@ declare const theme: {
|
|
6802
6803
|
}, string>;
|
6803
6804
|
textStyles: {
|
6804
6805
|
"2xl": {
|
6805
|
-
fontSize: string[];
|
6806
|
+
fontSize: (string | null)[];
|
6806
6807
|
fontFamily: string;
|
6807
6808
|
lineHeight: string;
|
6808
6809
|
};
|
6809
6810
|
"xl-display": {
|
6810
|
-
fontSize: string[];
|
6811
|
+
fontSize: (string | null)[];
|
6811
6812
|
fontFamily: string;
|
6812
6813
|
lineHeight: string;
|
6813
6814
|
};
|
6814
6815
|
"xl-sans": {
|
6815
|
-
fontSize: string[];
|
6816
|
+
fontSize: (string | null)[];
|
6816
6817
|
fontFamily: string;
|
6817
6818
|
lineHeight: string;
|
6818
6819
|
};
|
6819
6820
|
lg: {
|
6820
|
-
fontSize: string[];
|
6821
|
+
fontSize: (string | null)[];
|
6821
6822
|
fontFamily: string;
|
6822
6823
|
lineHeight: string;
|
6823
6824
|
};
|
6824
6825
|
md: {
|
6825
|
-
fontSize: string[];
|
6826
|
+
fontSize: (string | null)[];
|
6826
6827
|
fontFamily: string;
|
6827
6828
|
lineHeight: string;
|
6828
6829
|
};
|
6829
6830
|
sm: {
|
6830
|
-
fontSize: string[];
|
6831
|
+
fontSize: (string | null)[];
|
6831
6832
|
fontFamily: string;
|
6832
6833
|
lineHeight: string;
|
6833
6834
|
};
|
6834
6835
|
xs: {
|
6835
|
-
fontSize: string[];
|
6836
|
+
fontSize: (string | null)[];
|
6836
6837
|
fontFamily: string;
|
6837
6838
|
lineHeight: string;
|
6838
6839
|
};
|
package/dist/index.js
CHANGED
@@ -18665,11 +18665,12 @@ var breakpoints2;
|
|
18665
18665
|
var init_breakpoints = __esm({
|
18666
18666
|
"src/theme/foundations/breakpoints.ts"() {
|
18667
18667
|
breakpoints2 = {
|
18668
|
+
base: "0px",
|
18668
18669
|
sm: tokens10__namespace.default.size.breakpoint.sm,
|
18669
18670
|
md: tokens10__namespace.default.size.breakpoint.md,
|
18670
18671
|
lg: tokens10__namespace.default.size.breakpoint.lg,
|
18671
|
-
xl: tokens10__namespace.default.size.breakpoint.
|
18672
|
-
"2xl": tokens10__namespace.default.size.breakpoint.
|
18672
|
+
xl: tokens10__namespace.default.size.breakpoint.xl,
|
18673
|
+
"2xl": tokens10__namespace.default.size.breakpoint.xl
|
18673
18674
|
};
|
18674
18675
|
}
|
18675
18676
|
});
|
@@ -18819,6 +18820,7 @@ var init_textStyles = __esm({
|
|
18819
18820
|
"2xl": {
|
18820
18821
|
fontSize: [
|
18821
18822
|
tokens10__namespace.default.font.style.xxl["font-size"].mobile,
|
18823
|
+
null,
|
18822
18824
|
tokens10__namespace.default.font.style.xxl["font-size"].desktop
|
18823
18825
|
],
|
18824
18826
|
fontFamily: tokens10__namespace.default.font.style.xxl["font-family"],
|
@@ -18827,6 +18829,7 @@ var init_textStyles = __esm({
|
|
18827
18829
|
"xl-display": {
|
18828
18830
|
fontSize: [
|
18829
18831
|
tokens10__namespace.default.font.style["xl-display"]["font-size"].mobile,
|
18832
|
+
null,
|
18830
18833
|
tokens10__namespace.default.font.style["xl-display"]["font-size"].desktop
|
18831
18834
|
],
|
18832
18835
|
fontFamily: tokens10__namespace.default.font.style["xl-display"]["font-family"],
|
@@ -18835,6 +18838,7 @@ var init_textStyles = __esm({
|
|
18835
18838
|
"xl-sans": {
|
18836
18839
|
fontSize: [
|
18837
18840
|
tokens10__namespace.default.font.style["xl-sans"]["font-size"].mobile,
|
18841
|
+
null,
|
18838
18842
|
tokens10__namespace.default.font.style["xl-sans"]["font-size"].desktop
|
18839
18843
|
],
|
18840
18844
|
fontFamily: tokens10__namespace.default.font.style["xl-sans"]["font-family"],
|
@@ -18843,6 +18847,7 @@ var init_textStyles = __esm({
|
|
18843
18847
|
lg: {
|
18844
18848
|
fontSize: [
|
18845
18849
|
tokens10__namespace.default.font.style.lg["font-size"].mobile,
|
18850
|
+
null,
|
18846
18851
|
tokens10__namespace.default.font.style.lg["font-size"].desktop
|
18847
18852
|
],
|
18848
18853
|
fontFamily: tokens10__namespace.default.font.style.lg["font-family"],
|
@@ -18851,6 +18856,7 @@ var init_textStyles = __esm({
|
|
18851
18856
|
md: {
|
18852
18857
|
fontSize: [
|
18853
18858
|
tokens10__namespace.default.font.style.md["font-size"].mobile,
|
18859
|
+
null,
|
18854
18860
|
tokens10__namespace.default.font.style.md["font-size"].desktop
|
18855
18861
|
],
|
18856
18862
|
fontFamily: tokens10__namespace.default.font.style.md["font-family"],
|
@@ -18859,6 +18865,7 @@ var init_textStyles = __esm({
|
|
18859
18865
|
sm: {
|
18860
18866
|
fontSize: [
|
18861
18867
|
tokens10__namespace.default.font.style.sm["font-size"].mobile,
|
18868
|
+
null,
|
18862
18869
|
tokens10__namespace.default.font.style.sm["font-size"].desktop
|
18863
18870
|
],
|
18864
18871
|
fontFamily: tokens10__namespace.default.font.style.sm["font-family"],
|
@@ -18867,6 +18874,7 @@ var init_textStyles = __esm({
|
|
18867
18874
|
xs: {
|
18868
18875
|
fontSize: [
|
18869
18876
|
tokens10__namespace.default.font.style.xs["font-size"].mobile,
|
18877
|
+
null,
|
18870
18878
|
tokens10__namespace.default.font.style.xs["font-size"].desktop
|
18871
18879
|
],
|
18872
18880
|
fontFamily: tokens10__namespace.default.font.style.xs["font-family"],
|
@@ -19460,28 +19468,24 @@ var init_button2 = __esm({
|
|
19460
19468
|
}
|
19461
19469
|
});
|
19462
19470
|
function getColorSchemeBaseProps({ colorScheme }) {
|
19463
|
-
var _a6
|
19471
|
+
var _a6;
|
19464
19472
|
switch (colorScheme) {
|
19465
19473
|
case "white":
|
19466
19474
|
return {
|
19467
|
-
backgroundColor: "
|
19468
|
-
boxShadow: getBoxShadowString({
|
19469
|
-
borderColor: "silver"
|
19470
|
-
})
|
19475
|
+
backgroundColor: "lightGrey"
|
19471
19476
|
};
|
19472
19477
|
case "grey":
|
19473
19478
|
return {
|
19474
|
-
backgroundColor: "lightGrey"
|
19475
|
-
boxShadow: getBoxShadowString({
|
19476
|
-
borderColor: "steel"
|
19477
|
-
})
|
19479
|
+
backgroundColor: "lightGrey"
|
19478
19480
|
};
|
19481
|
+
case "green": {
|
19482
|
+
return {
|
19483
|
+
backgroundColor: "seaMist"
|
19484
|
+
};
|
19485
|
+
}
|
19479
19486
|
default:
|
19480
19487
|
return {
|
19481
|
-
backgroundColor: ((_a6 = colors[colorScheme]) == null ? void 0 : _a6[100]) ?? "platinum"
|
19482
|
-
boxShadow: getBoxShadowString({
|
19483
|
-
borderColor: ((_b5 = colors[colorScheme]) == null ? void 0 : _b5[200]) ?? "silver"
|
19484
|
-
})
|
19488
|
+
backgroundColor: ((_a6 = colors[colorScheme]) == null ? void 0 : _a6[100]) ?? "platinum"
|
19485
19489
|
};
|
19486
19490
|
}
|
19487
19491
|
}
|
@@ -19583,6 +19587,7 @@ var init_card2 = __esm({
|
|
19583
19587
|
border: "none",
|
19584
19588
|
overflow: "hidden",
|
19585
19589
|
fontSize: "inherit",
|
19590
|
+
display: "block",
|
19586
19591
|
transitionProperty: "common",
|
19587
19592
|
transitionDuration: "fast",
|
19588
19593
|
borderRadius: "md",
|
package/dist/index.mjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export { Accordion, AccordionButton, AccordionIcon, AccordionItem, AccordionPanel, AttachedInputs, Badge, Box, Button, ButtonGroup, Card, CardSelect, Center, Checkbox, CheckboxGroup, ChoiceChip, ClosableAlert, CloseButton, Code, Collapse, ColorInlineLoader, ColorSpinner, Combobox, Container, ContentLoader, DarkFullScreenLoader, DarkInlineLoader, DarkMode, DarkSpinner, DatePicker, DateRangePicker, Divider, Drawer, DrawerBody, DrawerCloseButton, DrawerContent, DrawerFooter, ModalHeader as DrawerHeader, DrawerOverlay, Expandable, ExpandableAlert, ExpandableItem, Fade, Flex, FloatingActionButton, FormControl, FormErrorMessage, FormHelperText, FormLabel, Grid, GridItem, HStack, Heading, IconButton, Image, Img, InfoSelect, InfoTag, Input, InputGroup, InputLeftElement, InputRightElement, Item, ItemDescription, ItemLabel, JumpButton, Language, LanguageProvider, LightFullScreenLoader, LightInlineLoader, LightMode, LightSpinner, LineIcon, ListBox, Modal, ModalBody, ModalCloseButton, ModalContent, ModalFooter, ModalHeader, ModalOverlay, NativeSelect, NumericStepper, PasswordInput, PhoneNumberInput, PlayPauseButton, Popover, PopoverAnchor, PopoverArrow, PopoverBody, PopoverCloseButton, PopoverContent, PopoverFooter, PopoverHeader, PopoverTrigger, PopoverWizardBody, ProgressBar, ProgressLoader, Radio, RadioGroup, ScaleFade, SearchInput, Section, SimpleDrawer, SimpleGrid, SimplePopover, Skeleton, SkeletonCircle, SkeletonText, SkipButton, Slide, SlideFade, Spacer, SporProvider, Stack, StaticAlert, Stepper, StepperStep, Switch, Tab, TabList, TabPanel, TabPanels, Table, TableCaption, Tabs, Tbody, Td, Text, TextLink, Textarea, Tfoot, Th, Thead, Time, TimePicker, Tr, TravelTag, VStack, VyLogo, WizardPopover, Wrap, WrapItem, createTexts, extendTheme, fontFaces, theme, tokens, useBreakpointValue, useClipboard, useColorMode, useColorModePreference, useColorModeValue, useControllableProp, useDisclosure, useMediaQuery, useMergeRefs, useOutsideClick, usePrefersReducedMotion, useTheme, useToast, useToken, useTranslation } from './chunk-
|
1
|
+
export { Accordion, AccordionButton, AccordionIcon, AccordionItem, AccordionPanel, AttachedInputs, Badge, Box, Button, ButtonGroup, Card, CardSelect, Center, Checkbox, CheckboxGroup, ChoiceChip, ClosableAlert, CloseButton, Code, Collapse, ColorInlineLoader, ColorSpinner, Combobox, Container, ContentLoader, DarkFullScreenLoader, DarkInlineLoader, DarkMode, DarkSpinner, DatePicker, DateRangePicker, Divider, Drawer, DrawerBody, DrawerCloseButton, DrawerContent, DrawerFooter, ModalHeader as DrawerHeader, DrawerOverlay, Expandable, ExpandableAlert, ExpandableItem, Fade, Flex, FloatingActionButton, FormControl, FormErrorMessage, FormHelperText, FormLabel, Grid, GridItem, HStack, Heading, IconButton, Image, Img, InfoSelect, InfoTag, Input, InputGroup, InputLeftElement, InputRightElement, Item, ItemDescription, ItemLabel, JumpButton, Language, LanguageProvider, LightFullScreenLoader, LightInlineLoader, LightMode, LightSpinner, LineIcon, ListBox, Modal, ModalBody, ModalCloseButton, ModalContent, ModalFooter, ModalHeader, ModalOverlay, NativeSelect, NumericStepper, PasswordInput, PhoneNumberInput, PlayPauseButton, Popover, PopoverAnchor, PopoverArrow, PopoverBody, PopoverCloseButton, PopoverContent, PopoverFooter, PopoverHeader, PopoverTrigger, PopoverWizardBody, ProgressBar, ProgressLoader, Radio, RadioGroup, ScaleFade, SearchInput, Section, SimpleDrawer, SimpleGrid, SimplePopover, Skeleton, SkeletonCircle, SkeletonText, SkipButton, Slide, SlideFade, Spacer, SporProvider, Stack, StaticAlert, Stepper, StepperStep, Switch, Tab, TabList, TabPanel, TabPanels, Table, TableCaption, Tabs, Tbody, Td, Text, TextLink, Textarea, Tfoot, Th, Thead, Time, TimePicker, Tr, TravelTag, VStack, VyLogo, WizardPopover, Wrap, WrapItem, createTexts, extendTheme, fontFaces, theme, tokens, useBreakpointValue, useClipboard, useColorMode, useColorModePreference, useColorModeValue, useControllableProp, useDisclosure, useMediaQuery, useMergeRefs, useOutsideClick, usePrefersReducedMotion, useTheme, useToast, useToken, useTranslation } from './chunk-GIXEJPV7.mjs';
|
package/package.json
CHANGED
@@ -9,6 +9,7 @@ const config = defineStyleConfig({
|
|
9
9
|
border: "none",
|
10
10
|
overflow: "hidden",
|
11
11
|
fontSize: "inherit",
|
12
|
+
display: "block",
|
12
13
|
transitionProperty: "common",
|
13
14
|
transitionDuration: "fast",
|
14
15
|
borderRadius: "md",
|
@@ -60,29 +61,24 @@ type CardThemeProps = {
|
|
60
61
|
|
61
62
|
function getColorSchemeBaseProps({ colorScheme }: CardThemeProps): {
|
62
63
|
backgroundColor: string;
|
63
|
-
boxShadow: string;
|
64
64
|
} {
|
65
65
|
switch (colorScheme) {
|
66
66
|
case "white":
|
67
67
|
return {
|
68
|
-
backgroundColor: "
|
69
|
-
boxShadow: getBoxShadowString({
|
70
|
-
borderColor: "silver",
|
71
|
-
}),
|
68
|
+
backgroundColor: "lightGrey",
|
72
69
|
};
|
73
70
|
case "grey":
|
74
71
|
return {
|
75
72
|
backgroundColor: "lightGrey",
|
76
|
-
boxShadow: getBoxShadowString({
|
77
|
-
borderColor: "steel",
|
78
|
-
}),
|
79
73
|
};
|
74
|
+
case "green": {
|
75
|
+
return {
|
76
|
+
backgroundColor: "seaMist",
|
77
|
+
};
|
78
|
+
}
|
80
79
|
default:
|
81
80
|
return {
|
82
81
|
backgroundColor: colors[colorScheme]?.[100] ?? "platinum",
|
83
|
-
boxShadow: getBoxShadowString({
|
84
|
-
borderColor: colors[colorScheme]?.[200] ?? "silver",
|
85
|
-
}),
|
86
82
|
};
|
87
83
|
}
|
88
84
|
}
|
@@ -1,9 +1,10 @@
|
|
1
1
|
import tokens from "@vygruppen/spor-design-tokens";
|
2
2
|
|
3
3
|
export const breakpoints = {
|
4
|
+
base: "0px",
|
4
5
|
sm: tokens.size.breakpoint.sm,
|
5
6
|
md: tokens.size.breakpoint.md,
|
6
7
|
lg: tokens.size.breakpoint.lg,
|
7
|
-
xl: tokens.size.breakpoint.
|
8
|
-
"2xl": tokens.size.breakpoint.
|
8
|
+
xl: tokens.size.breakpoint.xl,
|
9
|
+
"2xl": tokens.size.breakpoint.xl,
|
9
10
|
};
|
@@ -4,6 +4,7 @@ export const textStyles = {
|
|
4
4
|
"2xl": {
|
5
5
|
fontSize: [
|
6
6
|
tokens.font.style.xxl["font-size"].mobile,
|
7
|
+
null,
|
7
8
|
tokens.font.style.xxl["font-size"].desktop,
|
8
9
|
],
|
9
10
|
fontFamily: tokens.font.style.xxl["font-family"],
|
@@ -12,6 +13,7 @@ export const textStyles = {
|
|
12
13
|
"xl-display": {
|
13
14
|
fontSize: [
|
14
15
|
tokens.font.style["xl-display"]["font-size"].mobile,
|
16
|
+
null,
|
15
17
|
tokens.font.style["xl-display"]["font-size"].desktop,
|
16
18
|
],
|
17
19
|
fontFamily: tokens.font.style["xl-display"]["font-family"],
|
@@ -20,6 +22,7 @@ export const textStyles = {
|
|
20
22
|
"xl-sans": {
|
21
23
|
fontSize: [
|
22
24
|
tokens.font.style["xl-sans"]["font-size"].mobile,
|
25
|
+
null,
|
23
26
|
tokens.font.style["xl-sans"]["font-size"].desktop,
|
24
27
|
],
|
25
28
|
fontFamily: tokens.font.style["xl-sans"]["font-family"],
|
@@ -28,6 +31,7 @@ export const textStyles = {
|
|
28
31
|
lg: {
|
29
32
|
fontSize: [
|
30
33
|
tokens.font.style.lg["font-size"].mobile,
|
34
|
+
null,
|
31
35
|
tokens.font.style.lg["font-size"].desktop,
|
32
36
|
],
|
33
37
|
fontFamily: tokens.font.style.lg["font-family"],
|
@@ -36,6 +40,7 @@ export const textStyles = {
|
|
36
40
|
md: {
|
37
41
|
fontSize: [
|
38
42
|
tokens.font.style.md["font-size"].mobile,
|
43
|
+
null,
|
39
44
|
tokens.font.style.md["font-size"].desktop,
|
40
45
|
],
|
41
46
|
fontFamily: tokens.font.style.md["font-family"],
|
@@ -44,6 +49,7 @@ export const textStyles = {
|
|
44
49
|
sm: {
|
45
50
|
fontSize: [
|
46
51
|
tokens.font.style.sm["font-size"].mobile,
|
52
|
+
null,
|
47
53
|
tokens.font.style.sm["font-size"].desktop,
|
48
54
|
],
|
49
55
|
fontFamily: tokens.font.style.sm["font-family"],
|
@@ -52,6 +58,7 @@ export const textStyles = {
|
|
52
58
|
xs: {
|
53
59
|
fontSize: [
|
54
60
|
tokens.font.style.xs["font-size"].mobile,
|
61
|
+
null,
|
55
62
|
tokens.font.style.xs["font-size"].desktop,
|
56
63
|
],
|
57
64
|
fontFamily: tokens.font.style.xs["font-family"],
|