@vygruppen/spor-react 12.4.4 → 12.4.5
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 +10 -10
- package/.turbo/turbo-postinstall.log +1 -1
- package/CHANGELOG.md +8 -0
- package/dist/index.d.mts +20 -20
- package/dist/index.d.ts +20 -20
- package/dist/index.js +187 -450
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +187 -450
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/theme/recipes/close-button.ts +2 -4
- package/src/theme/recipes/link.ts +3 -5
- package/src/theme/slot-recipes/accordion.ts +26 -21
- package/src/theme/slot-recipes/checkbox.ts +9 -15
- package/src/theme/slot-recipes/native-select.ts +1 -2
- package/src/theme/slot-recipes/pagination.ts +3 -6
- package/src/theme/slot-recipes/stepper.ts +4 -7
- package/src/theme/utils/accent-utils.ts +0 -47
- package/src/theme/utils/bg-utils.ts +0 -20
- package/src/theme/utils/brand-utils.ts +0 -29
- package/src/theme/utils/core-utils.ts +0 -101
- package/src/theme/utils/floating-utils.ts +0 -69
- package/src/theme/utils/ghost-utils.ts +0 -49
- package/src/theme/utils/input-utils.ts +0 -117
- package/src/theme/utils/outline-utils.ts +0 -22
- package/src/theme/utils/sr-utils.ts +0 -13
- package/src/theme/utils/surface-utils.ts +0 -25
package/dist/index.js
CHANGED
@@ -15,7 +15,7 @@ var anatomy = require('@ark-ui/react/anatomy');
|
|
15
15
|
var popover = require('@ark-ui/react/popover');
|
16
16
|
var date = require('@internationalized/date');
|
17
17
|
var awesomePhonenumber = require('awesome-phonenumber');
|
18
|
-
var
|
18
|
+
var tokens23 = require('@vygruppen/spor-design-tokens');
|
19
19
|
var react$1 = require('@emotion/react');
|
20
20
|
var tokens4 = require('@vygruppen/spor-design-tokens/raw-tokens');
|
21
21
|
|
@@ -41,7 +41,7 @@ function _interopNamespace(e) {
|
|
41
41
|
|
42
42
|
var React28__namespace = /*#__PURE__*/_interopNamespace(React28);
|
43
43
|
var ReactLottie__default = /*#__PURE__*/_interopDefault(ReactLottie);
|
44
|
-
var
|
44
|
+
var tokens23__namespace = /*#__PURE__*/_interopNamespace(tokens23);
|
45
45
|
var tokens4__default = /*#__PURE__*/_interopDefault(tokens4);
|
46
46
|
|
47
47
|
// src/accordion/Accordion.tsx
|
@@ -3574,141 +3574,6 @@ function ListBoxSection({ section, state }) {
|
|
3574
3574
|
) })
|
3575
3575
|
] }) });
|
3576
3576
|
}
|
3577
|
-
|
3578
|
-
// src/theme/utils/brand-utils.ts
|
3579
|
-
function brandBackground(state) {
|
3580
|
-
switch (state) {
|
3581
|
-
case "active": {
|
3582
|
-
return {
|
3583
|
-
backgroundColor: "brand.surface.active"
|
3584
|
-
};
|
3585
|
-
}
|
3586
|
-
case "hover": {
|
3587
|
-
return {
|
3588
|
-
backgroundColor: "brand.surface.hover"
|
3589
|
-
};
|
3590
|
-
}
|
3591
|
-
default: {
|
3592
|
-
return {
|
3593
|
-
backgroundColor: "brand.surface"
|
3594
|
-
};
|
3595
|
-
}
|
3596
|
-
}
|
3597
|
-
}
|
3598
|
-
function brandText() {
|
3599
|
-
return {
|
3600
|
-
color: "brand.text"
|
3601
|
-
};
|
3602
|
-
}
|
3603
|
-
|
3604
|
-
// src/theme/utils/surface-utils.ts
|
3605
|
-
var surface = (surface2) => {
|
3606
|
-
switch (surface2) {
|
3607
|
-
case "default": {
|
3608
|
-
return {
|
3609
|
-
backgroundColor: "surface"
|
3610
|
-
};
|
3611
|
-
}
|
3612
|
-
case "secondary": {
|
3613
|
-
return {
|
3614
|
-
backgroundColor: "surface.secondary"
|
3615
|
-
};
|
3616
|
-
}
|
3617
|
-
case "tertiary": {
|
3618
|
-
return {
|
3619
|
-
backgroundColor: "surface.tertiary"
|
3620
|
-
};
|
3621
|
-
}
|
3622
|
-
case "disabled": {
|
3623
|
-
return {
|
3624
|
-
backgroundColor: "surface.disabled"
|
3625
|
-
};
|
3626
|
-
}
|
3627
|
-
}
|
3628
|
-
};
|
3629
|
-
|
3630
|
-
// src/theme/utils/core-utils.ts
|
3631
|
-
function coreBackground(state) {
|
3632
|
-
switch (state) {
|
3633
|
-
case "active": {
|
3634
|
-
return brandBackground("active");
|
3635
|
-
}
|
3636
|
-
case "selected": {
|
3637
|
-
return brandBackground("default");
|
3638
|
-
}
|
3639
|
-
case "disabled": {
|
3640
|
-
return surface("disabled");
|
3641
|
-
}
|
3642
|
-
default: {
|
3643
|
-
return { backgroundColor: "transparent" };
|
3644
|
-
}
|
3645
|
-
}
|
3646
|
-
}
|
3647
|
-
function coreBorder(state) {
|
3648
|
-
switch (state) {
|
3649
|
-
case "hover": {
|
3650
|
-
return {
|
3651
|
-
outline: "2px solid",
|
3652
|
-
outlineColor: "core.outline"
|
3653
|
-
};
|
3654
|
-
}
|
3655
|
-
case "disabled": {
|
3656
|
-
return {
|
3657
|
-
outline: "1px solid",
|
3658
|
-
outlineColor: "outline.disabled"
|
3659
|
-
};
|
3660
|
-
}
|
3661
|
-
case "active": {
|
3662
|
-
return {
|
3663
|
-
outline: "1px solid",
|
3664
|
-
outlineColor: "core.outline"
|
3665
|
-
};
|
3666
|
-
}
|
3667
|
-
case "invalid": {
|
3668
|
-
return {
|
3669
|
-
outline: "2px solid",
|
3670
|
-
outlineColor: "outline.error"
|
3671
|
-
};
|
3672
|
-
}
|
3673
|
-
default: {
|
3674
|
-
return {
|
3675
|
-
outline: "1px solid",
|
3676
|
-
outlineColor: "core.outline"
|
3677
|
-
};
|
3678
|
-
}
|
3679
|
-
}
|
3680
|
-
}
|
3681
|
-
function coreText(state) {
|
3682
|
-
switch (state) {
|
3683
|
-
case "selected": {
|
3684
|
-
return {
|
3685
|
-
color: "brand.text"
|
3686
|
-
};
|
3687
|
-
}
|
3688
|
-
case "active": {
|
3689
|
-
return {
|
3690
|
-
color: "brand.text"
|
3691
|
-
};
|
3692
|
-
}
|
3693
|
-
case "highlight": {
|
3694
|
-
return {
|
3695
|
-
color: "text.highlight"
|
3696
|
-
};
|
3697
|
-
}
|
3698
|
-
case "disabled": {
|
3699
|
-
return {
|
3700
|
-
color: "text.disabled"
|
3701
|
-
};
|
3702
|
-
}
|
3703
|
-
default: {
|
3704
|
-
return {
|
3705
|
-
color: "core.text"
|
3706
|
-
};
|
3707
|
-
}
|
3708
|
-
}
|
3709
|
-
}
|
3710
|
-
|
3711
|
-
// src/theme/slot-recipes/native-select.ts
|
3712
3577
|
var _a2, _b;
|
3713
3578
|
var nativeSelectSlotRecipe = react.defineSlotRecipe({
|
3714
3579
|
slots: NativeSelectAnatomy.keys(),
|
@@ -3740,7 +3605,7 @@ var nativeSelectSlotRecipe = react.defineSlotRecipe({
|
|
3740
3605
|
color: "currentColor",
|
3741
3606
|
fontSize: "sm",
|
3742
3607
|
_disabled: {
|
3743
|
-
|
3608
|
+
color: "text.disabled"
|
3744
3609
|
}
|
3745
3610
|
}
|
3746
3611
|
},
|
@@ -4596,16 +4461,16 @@ var pressableCardRecipe = react.defineRecipe({
|
|
4596
4461
|
},
|
4597
4462
|
core: {
|
4598
4463
|
outlineColor: "core.outline",
|
4599
|
-
outlineWidth:
|
4464
|
+
outlineWidth: tokens23__namespace.default.size.stroke.sm,
|
4600
4465
|
outlineStyle: "solid",
|
4601
4466
|
backgroundColor: "core.surface",
|
4602
4467
|
_hover: {
|
4603
4468
|
outlineColor: "core.outline.hover",
|
4604
|
-
outlineWidth:
|
4469
|
+
outlineWidth: tokens23__namespace.default.size.stroke.md,
|
4605
4470
|
outlineStyle: "solid",
|
4606
4471
|
_active: {
|
4607
4472
|
backgroundColor: "core.surface.active",
|
4608
|
-
outlineWidth:
|
4473
|
+
outlineWidth: tokens23__namespace.default.size.stroke.sm
|
4609
4474
|
}
|
4610
4475
|
}
|
4611
4476
|
},
|
@@ -6036,7 +5901,7 @@ var texts24 = createTexts({
|
|
6036
5901
|
});
|
6037
5902
|
var fontFaces = `
|
6038
5903
|
@font-face {
|
6039
|
-
font-family: ${
|
5904
|
+
font-family: ${tokens23__namespace.default.asset.font["vy-sans"]["light"].name};
|
6040
5905
|
src: url("https://www.vy.no/styles/font/VySans-Light.woff2") format("woff2"),
|
6041
5906
|
url("https://www.vy.no/styles/font/VySans-Light.woff") format("woff");
|
6042
5907
|
font-style: normal;
|
@@ -6044,7 +5909,7 @@ var fontFaces = `
|
|
6044
5909
|
font-display: swap
|
6045
5910
|
}
|
6046
5911
|
@font-face {
|
6047
|
-
font-family: ${
|
5912
|
+
font-family: ${tokens23__namespace.default.asset.font["vy-sans"]["light-italic"].name};
|
6048
5913
|
src: url("https://www.vy.no/styles/font/VySans-LightItalic.woff2")
|
6049
5914
|
format("woff2"),
|
6050
5915
|
url("https://www.vy.no/styles/font/VySans-LightItalic.woff") format("woff");
|
@@ -6053,7 +5918,7 @@ var fontFaces = `
|
|
6053
5918
|
font-display: swap
|
6054
5919
|
}
|
6055
5920
|
@font-face {
|
6056
|
-
font-family: ${
|
5921
|
+
font-family: ${tokens23__namespace.default.asset.font["vy-sans"]["medium"].name};
|
6057
5922
|
src: url("https://www.vy.no/styles/font/VySans-Regular.woff2") format("woff2"),
|
6058
5923
|
url("https://www.vy.no/styles/font/VySans-Regular.woff") format("woff");
|
6059
5924
|
font-style: normal;
|
@@ -6061,7 +5926,7 @@ var fontFaces = `
|
|
6061
5926
|
font-display: swap
|
6062
5927
|
}
|
6063
5928
|
@font-face {
|
6064
|
-
font-family: ${
|
5929
|
+
font-family: ${tokens23__namespace.default.asset.font["vy-sans"]["medium-italic"].name};
|
6065
5930
|
src: url("https://www.vy.no/styles/font/VySans-RegularItalic.woff2")
|
6066
5931
|
format("woff2"),
|
6067
5932
|
url("https://www.vy.no/styles/font/VySans-RegularItalic.woff")
|
@@ -6071,7 +5936,7 @@ var fontFaces = `
|
|
6071
5936
|
font-display: swap
|
6072
5937
|
}
|
6073
5938
|
@font-face {
|
6074
|
-
font-family: ${
|
5939
|
+
font-family: ${tokens23__namespace.default.asset.font["vy-sans"]["bold"].name};
|
6075
5940
|
src: url("https://www.vy.no/styles/font/VySans-Bold.woff2") format("woff2"),
|
6076
5941
|
url("https://www.vy.no/styles/font/VySans-Bold.woff") format("woff");
|
6077
5942
|
font-style: normal;
|
@@ -6079,7 +5944,7 @@ var fontFaces = `
|
|
6079
5944
|
font-display: swap
|
6080
5945
|
}
|
6081
5946
|
@font-face {
|
6082
|
-
font-family: ${
|
5947
|
+
font-family: ${tokens23__namespace.default.asset.font["vy-sans"]["bold-italic"].name};
|
6083
5948
|
src: url("https://www.vy.no/styles/font/VySans-BoldItalic.woff2")
|
6084
5949
|
format("woff2"),
|
6085
5950
|
url("https://www.vy.no/styles/font/VySans-BoldItalic.woff") format("woff");
|
@@ -6088,7 +5953,7 @@ var fontFaces = `
|
|
6088
5953
|
font-display: swap
|
6089
5954
|
}
|
6090
5955
|
@font-face {
|
6091
|
-
font-family: ${
|
5956
|
+
font-family: ${tokens23__namespace.default.asset.font["vy-display"].name};
|
6092
5957
|
src: url("https://www.vy.no/styles/font/VyDisplay-Medium.woff2")
|
6093
5958
|
format("woff2"),
|
6094
5959
|
url("https://www.vy.no/styles/font/VyDisplay-Medium.woff") format("woff");
|
@@ -6597,7 +6462,7 @@ var buttonRecipe = react.defineRecipe({
|
|
6597
6462
|
background: "surface.disabled"
|
6598
6463
|
},
|
6599
6464
|
_focus: {
|
6600
|
-
outlineOffset:
|
6465
|
+
outlineOffset: tokens23__namespace.default.size.stroke.md
|
6601
6466
|
}
|
6602
6467
|
},
|
6603
6468
|
variants: {
|
@@ -6625,19 +6490,19 @@ var buttonRecipe = react.defineRecipe({
|
|
6625
6490
|
tertiary: {
|
6626
6491
|
color: "core.text",
|
6627
6492
|
outline: "solid",
|
6628
|
-
outlineWidth:
|
6493
|
+
outlineWidth: tokens23__namespace.default.size.stroke.sm,
|
6629
6494
|
outlineColor: "core.outline",
|
6630
6495
|
_hover: {
|
6631
|
-
outlineWidth:
|
6496
|
+
outlineWidth: tokens23__namespace.default.size.stroke.md,
|
6632
6497
|
outlineColor: "core.outline.hover",
|
6633
6498
|
_active: {
|
6634
6499
|
background: "core.surface.active",
|
6635
|
-
outlineWidth:
|
6500
|
+
outlineWidth: tokens23__namespace.default.size.stroke.sm,
|
6636
6501
|
outlineColor: "core.outline"
|
6637
6502
|
}
|
6638
6503
|
},
|
6639
6504
|
_focus: {
|
6640
|
-
outlineWidth:
|
6505
|
+
outlineWidth: tokens23__namespace.default.size.stroke.sm
|
6641
6506
|
}
|
6642
6507
|
},
|
6643
6508
|
ghost: {
|
@@ -6697,34 +6562,6 @@ var buttonRecipe = react.defineRecipe({
|
|
6697
6562
|
size: "md"
|
6698
6563
|
}
|
6699
6564
|
});
|
6700
|
-
|
6701
|
-
// src/theme/utils/ghost-utils.ts
|
6702
|
-
function ghostBackground(state) {
|
6703
|
-
switch (state) {
|
6704
|
-
case "hover": {
|
6705
|
-
return {
|
6706
|
-
backgroundColor: "ghost.surface.hover"
|
6707
|
-
};
|
6708
|
-
}
|
6709
|
-
case "active": {
|
6710
|
-
return {
|
6711
|
-
backgroundColor: "ghost.surface.active"
|
6712
|
-
};
|
6713
|
-
}
|
6714
|
-
case "selected": {
|
6715
|
-
return {
|
6716
|
-
backgroundColor: "ghost.surface.selected"
|
6717
|
-
};
|
6718
|
-
}
|
6719
|
-
case "default": {
|
6720
|
-
return {
|
6721
|
-
backgroundColor: "transparent"
|
6722
|
-
};
|
6723
|
-
}
|
6724
|
-
}
|
6725
|
-
}
|
6726
|
-
|
6727
|
-
// src/theme/recipes/close-button.ts
|
6728
6565
|
var closeButtonRecipe = react.defineRecipe({
|
6729
6566
|
base: {
|
6730
6567
|
transitionProperty: "common",
|
@@ -6734,12 +6571,12 @@ var closeButtonRecipe = react.defineRecipe({
|
|
6734
6571
|
color: "darkGrey",
|
6735
6572
|
fontWeight: "normal",
|
6736
6573
|
_hover: {
|
6737
|
-
|
6574
|
+
background: "ghost.surface.hover",
|
6738
6575
|
_disabled: {
|
6739
6576
|
color: "dimGrey"
|
6740
6577
|
},
|
6741
6578
|
_active: {
|
6742
|
-
|
6579
|
+
background: "ghost.surface.active"
|
6743
6580
|
}
|
6744
6581
|
}
|
6745
6582
|
},
|
@@ -6801,7 +6638,7 @@ var linkRecipe = react.defineRecipe({
|
|
6801
6638
|
variants: {
|
6802
6639
|
variant: {
|
6803
6640
|
primary: {
|
6804
|
-
|
6641
|
+
color: "core.text",
|
6805
6642
|
_hover: {
|
6806
6643
|
color: "text.default",
|
6807
6644
|
_active: {
|
@@ -6810,10 +6647,10 @@ var linkRecipe = react.defineRecipe({
|
|
6810
6647
|
}
|
6811
6648
|
},
|
6812
6649
|
secondary: {
|
6813
|
-
|
6650
|
+
color: "text.hightlight",
|
6814
6651
|
padding: "2px",
|
6815
6652
|
_hover: {
|
6816
|
-
|
6653
|
+
color: "text.hightlight",
|
6817
6654
|
_active: {
|
6818
6655
|
color: "text.disabled"
|
6819
6656
|
}
|
@@ -6874,14 +6711,14 @@ var cargonetColors = react.defineSemanticTokens.colors({
|
|
6874
6711
|
...tokens4__default.default.color.cargonet.color.cargonet
|
6875
6712
|
});
|
6876
6713
|
var radii = react.defineSemanticTokens.radii({
|
6877
|
-
none: { value:
|
6878
|
-
xxs: { value:
|
6879
|
-
xs: { value:
|
6880
|
-
sm: { value:
|
6881
|
-
md: { value:
|
6882
|
-
lg: { value:
|
6883
|
-
xl: { value:
|
6884
|
-
"2xl": { value:
|
6714
|
+
none: { value: tokens23__namespace.default.size["border-radius"].none },
|
6715
|
+
xxs: { value: tokens23__namespace.default.size["border-radius"].xxs },
|
6716
|
+
xs: { value: tokens23__namespace.default.size["border-radius"].xs },
|
6717
|
+
sm: { value: tokens23__namespace.default.size["border-radius"].sm },
|
6718
|
+
md: { value: tokens23__namespace.default.size["border-radius"].md },
|
6719
|
+
lg: { value: tokens23__namespace.default.size["border-radius"].lg },
|
6720
|
+
xl: { value: tokens23__namespace.default.size["border-radius"].xl },
|
6721
|
+
"2xl": { value: tokens23__namespace.default.size["border-radius"]["2xl"] },
|
6885
6722
|
round: { value: "50%" }
|
6886
6723
|
});
|
6887
6724
|
var shadows = react.defineSemanticTokens.shadows({
|
@@ -6889,13 +6726,13 @@ var shadows = react.defineSemanticTokens.shadows({
|
|
6889
6726
|
value: "none"
|
6890
6727
|
},
|
6891
6728
|
sm: {
|
6892
|
-
value:
|
6729
|
+
value: tokens23__namespace.default.depth.shadow.sm.value
|
6893
6730
|
},
|
6894
6731
|
md: {
|
6895
|
-
value:
|
6732
|
+
value: tokens23__namespace.default.depth.shadow.md.value
|
6896
6733
|
},
|
6897
6734
|
lg: {
|
6898
|
-
value:
|
6735
|
+
value: tokens23__namespace.default.depth.shadow.lg.value
|
6899
6736
|
}
|
6900
6737
|
});
|
6901
6738
|
|
@@ -6918,66 +6755,6 @@ var semanticTokens = {
|
|
6918
6755
|
colors: vyDigitalColors
|
6919
6756
|
}
|
6920
6757
|
};
|
6921
|
-
|
6922
|
-
// src/theme/utils/floating-utils.ts
|
6923
|
-
function floatingBackground(state) {
|
6924
|
-
switch (state) {
|
6925
|
-
case "focus": {
|
6926
|
-
return brandBackground("default");
|
6927
|
-
}
|
6928
|
-
case "active": {
|
6929
|
-
return {
|
6930
|
-
backgroundColor: "floating.surface.active"
|
6931
|
-
};
|
6932
|
-
}
|
6933
|
-
case "hover": {
|
6934
|
-
return {
|
6935
|
-
backgroundColor: {
|
6936
|
-
_light: "floating.surface.hover",
|
6937
|
-
_dark: `color-mix(in srgb, white 10%, var(--spor-colors-bg))`
|
6938
|
-
}
|
6939
|
-
};
|
6940
|
-
}
|
6941
|
-
case "default": {
|
6942
|
-
return {
|
6943
|
-
backgroundColor: {
|
6944
|
-
_light: "bg",
|
6945
|
-
_dark: `color-mix(in srgb, white 10%, var(--spor-colors-bg))`
|
6946
|
-
}
|
6947
|
-
};
|
6948
|
-
}
|
6949
|
-
}
|
6950
|
-
}
|
6951
|
-
function floatingBorder(state) {
|
6952
|
-
switch (state) {
|
6953
|
-
case "hover": {
|
6954
|
-
return {
|
6955
|
-
outline: "1px solid",
|
6956
|
-
outlineColor: "floating.outline.hover"
|
6957
|
-
};
|
6958
|
-
}
|
6959
|
-
case "focus": {
|
6960
|
-
return {
|
6961
|
-
outline: "1px solid",
|
6962
|
-
outlineColor: "outline.focus"
|
6963
|
-
};
|
6964
|
-
}
|
6965
|
-
case "active": {
|
6966
|
-
return {
|
6967
|
-
outline: "1px solid",
|
6968
|
-
outlineColor: "floating.outline.active"
|
6969
|
-
};
|
6970
|
-
}
|
6971
|
-
default: {
|
6972
|
-
return {
|
6973
|
-
outline: "1px solid",
|
6974
|
-
outlineColor: "floating.outline"
|
6975
|
-
};
|
6976
|
-
}
|
6977
|
-
}
|
6978
|
-
}
|
6979
|
-
|
6980
|
-
// src/theme/slot-recipes/accordion.ts
|
6981
6758
|
var accordionSlotRecipe = react.defineSlotRecipe({
|
6982
6759
|
className: "spor-accordion",
|
6983
6760
|
slots: accordionAnatomy.keys(),
|
@@ -6993,7 +6770,7 @@ var accordionSlotRecipe = react.defineSlotRecipe({
|
|
6993
6770
|
borderRadius: "sm",
|
6994
6771
|
display: "flex",
|
6995
6772
|
justifyContent: "space-between",
|
6996
|
-
|
6773
|
+
color: "core.text",
|
6997
6774
|
textAlign: "left",
|
6998
6775
|
width: "full",
|
6999
6776
|
alignItems: "center",
|
@@ -7044,58 +6821,63 @@ var accordionSlotRecipe = react.defineSlotRecipe({
|
|
7044
6821
|
variants: {
|
7045
6822
|
variant: {
|
7046
6823
|
ghost: {
|
7047
|
-
|
6824
|
+
item: {
|
7048
6825
|
outline: "none"
|
7049
6826
|
},
|
7050
6827
|
itemTrigger: {
|
7051
6828
|
"&:hover": {
|
7052
|
-
|
6829
|
+
background: "ghost.surface.hover"
|
7053
6830
|
},
|
7054
6831
|
"&:active": {
|
7055
|
-
|
6832
|
+
backgroundColor: "ghost.surface.active"
|
7056
6833
|
}
|
7057
6834
|
}
|
7058
6835
|
},
|
7059
6836
|
core: {
|
7060
6837
|
item: {
|
7061
|
-
|
6838
|
+
outline: "solid",
|
6839
|
+
outlineWidth: tokens23__namespace.default.size.stroke.sm,
|
6840
|
+
outlineColor: "core.outline"
|
7062
6841
|
},
|
7063
6842
|
itemTrigger: {
|
7064
6843
|
_expanded: {
|
7065
6844
|
borderBottomRadius: "none"
|
7066
6845
|
},
|
7067
6846
|
"&:hover": {
|
7068
|
-
|
6847
|
+
outlineWidth: tokens23__namespace.default.size.stroke.md,
|
6848
|
+
outlineColor: "core.outline.hover",
|
6849
|
+
outline: "solid",
|
7069
6850
|
outlineOffset: 0
|
7070
6851
|
},
|
7071
6852
|
"&:active": {
|
7072
6853
|
backgroundColor: "core.surface.active",
|
7073
|
-
|
6854
|
+
outlineWidth: tokens23__namespace.default.size.stroke.sm,
|
6855
|
+
outlineColor: "core.outline.active",
|
6856
|
+
outline: "solid"
|
7074
6857
|
}
|
7075
6858
|
}
|
7076
6859
|
},
|
7077
6860
|
floating: {
|
7078
6861
|
item: {
|
7079
|
-
|
7080
|
-
|
7081
|
-
|
6862
|
+
outline: "solid",
|
6863
|
+
outlineWidth: tokens23__namespace.default.size.stroke.sm,
|
6864
|
+
outlineColor: "core.outline"
|
7082
6865
|
},
|
7083
6866
|
itemTrigger: {
|
7084
6867
|
_expanded: {
|
7085
6868
|
borderBottomRadius: "none"
|
7086
6869
|
},
|
7087
6870
|
"&:hover": {
|
7088
|
-
|
7089
|
-
|
7090
|
-
|
7091
|
-
|
7092
|
-
backgroundColor: "floating.surface.active",
|
7093
|
-
...floatingBorder("default")
|
7094
|
-
}
|
6871
|
+
outlineWidth: tokens23__namespace.default.size.stroke.md,
|
6872
|
+
outlineColor: "floating.outline.hover",
|
6873
|
+
outline: "solid",
|
6874
|
+
outlineOffset: 0
|
7095
6875
|
},
|
7096
6876
|
"&:active": {
|
7097
6877
|
backgroundColor: "floating.surface.active",
|
7098
|
-
|
6878
|
+
outlineWidth: tokens23__namespace.default.size.stroke.sm,
|
6879
|
+
outlineColor: "floating.outline.active",
|
6880
|
+
outline: "solid"
|
7099
6881
|
}
|
7100
6882
|
}
|
7101
6883
|
}
|
@@ -7398,7 +7180,7 @@ var breadcrumbSlotRecipe = react.defineSlotRecipe({
|
|
7398
7180
|
link: {
|
7399
7181
|
_hover: {
|
7400
7182
|
outlineColor: "core.outline.hover",
|
7401
|
-
outlineWidth:
|
7183
|
+
outlineWidth: tokens23__namespace.default.size.stroke.md,
|
7402
7184
|
outlineStyle: "solid",
|
7403
7185
|
_active: {
|
7404
7186
|
backgroundColor: "core.surface.active",
|
@@ -7432,12 +7214,10 @@ var checkboxSlotRecipe = react.defineSlotRecipe({
|
|
7432
7214
|
gap: 1.5,
|
7433
7215
|
_hover: {
|
7434
7216
|
"& > input:enabled:not([aria-invalid]) + .spor-checkbox__control": {
|
7435
|
-
|
7436
|
-
borderColor: brandBackground("hover").backgroundColor
|
7217
|
+
borderColor: "core.outline.hover"
|
7437
7218
|
},
|
7438
7219
|
"& > input:enabled:checked:not([aria-invalid]) + .spor-checkbox__control": {
|
7439
|
-
|
7440
|
-
borderColor: brandBackground("hover").backgroundColor
|
7220
|
+
background: "brand.surface.hover"
|
7441
7221
|
}
|
7442
7222
|
}
|
7443
7223
|
},
|
@@ -7461,17 +7241,16 @@ var checkboxSlotRecipe = react.defineSlotRecipe({
|
|
7461
7241
|
border: "2px solid",
|
7462
7242
|
borderColor: "core.outline",
|
7463
7243
|
borderRadius: "xs",
|
7464
|
-
...coreBackground("default"),
|
7465
7244
|
_checked: {
|
7466
|
-
|
7467
|
-
|
7468
|
-
|
7245
|
+
color: "brand.icon",
|
7246
|
+
borderColor: "brand.surface",
|
7247
|
+
background: "brand.surface",
|
7469
7248
|
_focus: {
|
7470
7249
|
borderColor: "brand.surface.active"
|
7471
7250
|
},
|
7472
7251
|
_disabled: {
|
7473
|
-
|
7474
|
-
|
7252
|
+
background: "surface.disabled",
|
7253
|
+
color: "text.disabled",
|
7475
7254
|
borderColor: "currentColor"
|
7476
7255
|
},
|
7477
7256
|
_invalid: {
|
@@ -7480,20 +7259,19 @@ var checkboxSlotRecipe = react.defineSlotRecipe({
|
|
7480
7259
|
}
|
7481
7260
|
},
|
7482
7261
|
_disabled: {
|
7483
|
-
|
7484
|
-
borderColor:
|
7262
|
+
// borderColor: coreText("disabled").color,
|
7263
|
+
borderColor: "text.disabled"
|
7485
7264
|
},
|
7486
7265
|
_invalid: {
|
7487
|
-
...coreBackground("default"),
|
7488
7266
|
borderColor: "outline.error"
|
7489
7267
|
},
|
7490
7268
|
_focus: {
|
7491
7269
|
outlineStyle: "solid",
|
7492
7270
|
outlineColor: "outline.focus",
|
7493
|
-
outlineOffset:
|
7494
|
-
outlineWidth:
|
7271
|
+
outlineOffset: tokens23__namespace.default.size.stroke.md,
|
7272
|
+
outlineWidth: tokens23__namespace.default.size.stroke.md,
|
7495
7273
|
borderColor: "core.outline",
|
7496
|
-
borderWidth:
|
7274
|
+
borderWidth: tokens23__namespace.default.size.stroke.md
|
7497
7275
|
}
|
7498
7276
|
},
|
7499
7277
|
label: {
|
@@ -8147,7 +7925,7 @@ var floatingActionButtonSlotRecipe = react.defineSlotRecipe({
|
|
8147
7925
|
position: "fixed",
|
8148
7926
|
zIndex: "dropdown",
|
8149
7927
|
_focus: {
|
8150
|
-
outlineOffset:
|
7928
|
+
outlineOffset: tokens23__namespace.default.size.stroke.lg,
|
8151
7929
|
outlineColor: "outline.focus"
|
8152
7930
|
},
|
8153
7931
|
_disabled: {
|
@@ -8890,13 +8668,12 @@ var paginationSlotRecipe = react.defineSlotRecipe({
|
|
8890
8668
|
width: "5",
|
8891
8669
|
fontSize: "xs",
|
8892
8670
|
borderRadius: "xl",
|
8893
|
-
|
8671
|
+
color: "core.text",
|
8894
8672
|
cursor: "pointer",
|
8895
|
-
...coreBackground("default"),
|
8896
8673
|
_hover: {
|
8897
|
-
|
8674
|
+
background: "ghost.surface.hover",
|
8898
8675
|
_active: {
|
8899
|
-
|
8676
|
+
background: "ghost.surface.active"
|
8900
8677
|
}
|
8901
8678
|
},
|
8902
8679
|
_selected: {
|
@@ -9152,26 +8929,26 @@ var radioCardSlotRecipe = react.defineSlotRecipe({
|
|
9152
8929
|
core: {
|
9153
8930
|
item: {
|
9154
8931
|
outlineColor: "core.outline",
|
9155
|
-
outlineWidth:
|
8932
|
+
outlineWidth: tokens23__namespace.default.size.stroke.sm,
|
9156
8933
|
outlineStyle: "solid",
|
9157
8934
|
backgroundColor: "core.surface",
|
9158
8935
|
_hover: {
|
9159
8936
|
outlineColor: "core.outline.hover",
|
9160
|
-
outlineWidth:
|
8937
|
+
outlineWidth: tokens23__namespace.default.size.stroke.md,
|
9161
8938
|
outlineStyle: "solid",
|
9162
8939
|
_active: {
|
9163
8940
|
backgroundColor: "core.surface.active",
|
9164
|
-
outlineWidth:
|
8941
|
+
outlineWidth: tokens23__namespace.default.size.stroke.sm
|
9165
8942
|
}
|
9166
8943
|
},
|
9167
8944
|
_checked: {
|
9168
8945
|
outlineColor: "outline.focus",
|
9169
|
-
outlineWidth:
|
8946
|
+
outlineWidth: tokens23__namespace.default.size.stroke.md,
|
9170
8947
|
outlineStyle: "solid",
|
9171
8948
|
backgroundColor: "core.surface.active",
|
9172
8949
|
_focusVisible: {
|
9173
8950
|
outlineStyle: "double",
|
9174
|
-
outlineWidth: `calc(3 * ${
|
8951
|
+
outlineWidth: `calc(3 * ${tokens23__namespace.default.size.stroke.md})`
|
9175
8952
|
// space for double outline
|
9176
8953
|
}
|
9177
8954
|
}
|
@@ -9196,12 +8973,12 @@ var radioCardSlotRecipe = react.defineSlotRecipe({
|
|
9196
8973
|
},
|
9197
8974
|
_checked: {
|
9198
8975
|
outlineColor: "outline.focus",
|
9199
|
-
outlineWidth:
|
8976
|
+
outlineWidth: tokens23__namespace.default.size.stroke.md,
|
9200
8977
|
outlineStyle: "solid",
|
9201
8978
|
backgroundColor: "core.surface.active",
|
9202
8979
|
_focusVisible: {
|
9203
8980
|
outlineStyle: "double",
|
9204
|
-
outlineWidth: `calc(3 * ${
|
8981
|
+
outlineWidth: `calc(3 * ${tokens23__namespace.default.size.stroke.md})`
|
9205
8982
|
// space for double outline
|
9206
8983
|
}
|
9207
8984
|
}
|
@@ -9457,46 +9234,6 @@ var selectSlotRecipe = react.defineSlotRecipe({
|
|
9457
9234
|
}
|
9458
9235
|
}
|
9459
9236
|
});
|
9460
|
-
|
9461
|
-
// src/theme/utils/accent-utils.ts
|
9462
|
-
function accentBackground(state) {
|
9463
|
-
switch (state) {
|
9464
|
-
case "selected": {
|
9465
|
-
return brandBackground("default");
|
9466
|
-
}
|
9467
|
-
case "active": {
|
9468
|
-
return {
|
9469
|
-
backgroundColor: "accent.surface.active"
|
9470
|
-
};
|
9471
|
-
}
|
9472
|
-
case "hover": {
|
9473
|
-
return {
|
9474
|
-
backgroundColor: "accent.surface.hover"
|
9475
|
-
};
|
9476
|
-
}
|
9477
|
-
default: {
|
9478
|
-
return {
|
9479
|
-
backgroundColor: "accent.surface"
|
9480
|
-
};
|
9481
|
-
}
|
9482
|
-
}
|
9483
|
-
}
|
9484
|
-
function accentText(state) {
|
9485
|
-
switch (state) {
|
9486
|
-
case "selected": {
|
9487
|
-
return {
|
9488
|
-
color: "brand.text"
|
9489
|
-
};
|
9490
|
-
}
|
9491
|
-
default: {
|
9492
|
-
return {
|
9493
|
-
color: "accent.text"
|
9494
|
-
};
|
9495
|
-
}
|
9496
|
-
}
|
9497
|
-
}
|
9498
|
-
|
9499
|
-
// src/theme/slot-recipes/stepper.ts
|
9500
9237
|
var stepperSlotRecipe = react.defineSlotRecipe({
|
9501
9238
|
slots: stepperAnatomy.keys(),
|
9502
9239
|
className: "spor-stepper",
|
@@ -9562,13 +9299,13 @@ var stepperSlotRecipe = react.defineSlotRecipe({
|
|
9562
9299
|
_dark: "whiteAlpha.900"
|
9563
9300
|
},
|
9564
9301
|
_disabled: {
|
9565
|
-
color:
|
9302
|
+
color: "core.text"
|
9566
9303
|
},
|
9567
9304
|
_currentStep: {
|
9568
|
-
color:
|
9305
|
+
color: "accent.text"
|
9569
9306
|
},
|
9570
9307
|
_hover: {
|
9571
|
-
backgroundColor:
|
9308
|
+
backgroundColor: "accent.surface.hover",
|
9572
9309
|
_disabled: {
|
9573
9310
|
backgroundColor: "transparent"
|
9574
9311
|
}
|
@@ -9576,7 +9313,7 @@ var stepperSlotRecipe = react.defineSlotRecipe({
|
|
9576
9313
|
},
|
9577
9314
|
backButton: {
|
9578
9315
|
_hover: {
|
9579
|
-
|
9316
|
+
backgroundColor: "brand.surface.hover"
|
9580
9317
|
}
|
9581
9318
|
}
|
9582
9319
|
}
|
@@ -9666,7 +9403,7 @@ var switchSlotRecipe = react.defineSlotRecipe({
|
|
9666
9403
|
backgroundColor: "brand.surface",
|
9667
9404
|
_focusVisible: {
|
9668
9405
|
outlineStyle: "double",
|
9669
|
-
outlineWidth: `calc(3 * ${
|
9406
|
+
outlineWidth: `calc(3 * ${tokens23__namespace.default.size.stroke.md})`
|
9670
9407
|
// space for double outline
|
9671
9408
|
}
|
9672
9409
|
},
|
@@ -10042,22 +9779,22 @@ var borders = react.defineTokens.borders({
|
|
10042
9779
|
value: "0"
|
10043
9780
|
},
|
10044
9781
|
sm: {
|
10045
|
-
value: `${
|
9782
|
+
value: `${tokens23__namespace.default.size.stroke.sm} solid`
|
10046
9783
|
},
|
10047
9784
|
"sm-dashed": {
|
10048
|
-
value: `${
|
9785
|
+
value: `${tokens23__namespace.default.size.stroke.sm} dashed`
|
10049
9786
|
},
|
10050
9787
|
md: {
|
10051
|
-
value: `${
|
9788
|
+
value: `${tokens23__namespace.default.size.stroke.md} solid`
|
10052
9789
|
},
|
10053
9790
|
"md-dashed": {
|
10054
|
-
value: `${
|
9791
|
+
value: `${tokens23__namespace.default.size.stroke.md} dashed`
|
10055
9792
|
},
|
10056
9793
|
lg: {
|
10057
|
-
value: `${
|
9794
|
+
value: `${tokens23__namespace.default.size.stroke.lg} solid`
|
10058
9795
|
},
|
10059
9796
|
"lg-dashed": {
|
10060
|
-
value: `${
|
9797
|
+
value: `${tokens23__namespace.default.size.stroke.lg} dashed`
|
10061
9798
|
}
|
10062
9799
|
});
|
10063
9800
|
var colors = react.defineTokens.colors({
|
@@ -10129,29 +9866,29 @@ var easings = react.defineTokens.easings({
|
|
10129
9866
|
}
|
10130
9867
|
});
|
10131
9868
|
var fontSizes = react.defineTokens.fontSizes({
|
10132
|
-
"2xs": { value:
|
10133
|
-
xs: { value:
|
10134
|
-
sm: { value:
|
10135
|
-
md: { value:
|
10136
|
-
lg: { value:
|
10137
|
-
xl: { value:
|
10138
|
-
"2xl": { value:
|
10139
|
-
"3xl": { value:
|
9869
|
+
"2xs": { value: tokens23__namespace.default.size.font.xs.mobile },
|
9870
|
+
xs: { value: tokens23__namespace.default.size.font.sm.mobile },
|
9871
|
+
sm: { value: tokens23__namespace.default.size.font.md.mobile },
|
9872
|
+
md: { value: tokens23__namespace.default.size.font.lg.mobile },
|
9873
|
+
lg: { value: tokens23__namespace.default.size.font.xl.mobile },
|
9874
|
+
xl: { value: tokens23__namespace.default.size.font.xxl.mobile },
|
9875
|
+
"2xl": { value: tokens23__namespace.default.size.font.xl.desktop },
|
9876
|
+
"3xl": { value: tokens23__namespace.default.size.font.xxl.desktop },
|
10140
9877
|
mobile: {
|
10141
|
-
xs: { value:
|
10142
|
-
sm: { value:
|
10143
|
-
md: { value:
|
10144
|
-
lg: { value:
|
10145
|
-
xl: { value:
|
10146
|
-
xxl: { value:
|
9878
|
+
xs: { value: tokens23__namespace.default.size.font.xs.mobile },
|
9879
|
+
sm: { value: tokens23__namespace.default.size.font.sm.mobile },
|
9880
|
+
md: { value: tokens23__namespace.default.size.font.md.mobile },
|
9881
|
+
lg: { value: tokens23__namespace.default.size.font.lg.mobile },
|
9882
|
+
xl: { value: tokens23__namespace.default.size.font.xl.mobile },
|
9883
|
+
xxl: { value: tokens23__namespace.default.size.font.xxl.mobile }
|
10147
9884
|
},
|
10148
9885
|
desktop: {
|
10149
|
-
xs: { value:
|
10150
|
-
sm: { value:
|
10151
|
-
md: { value:
|
10152
|
-
lg: { value:
|
10153
|
-
xl: { value:
|
10154
|
-
xxl: { value:
|
9886
|
+
xs: { value: tokens23__namespace.default.size.font.xs.desktop },
|
9887
|
+
sm: { value: tokens23__namespace.default.size.font.sm.desktop },
|
9888
|
+
md: { value: tokens23__namespace.default.size.font.md.desktop },
|
9889
|
+
lg: { value: tokens23__namespace.default.size.font.lg.desktop },
|
9890
|
+
xl: { value: tokens23__namespace.default.size.font.xl.desktop },
|
9891
|
+
xxl: { value: tokens23__namespace.default.size.font.xxl.desktop }
|
10155
9892
|
}
|
10156
9893
|
});
|
10157
9894
|
var fontWeights = react.defineTokens.fontWeights({
|
@@ -10184,9 +9921,9 @@ var fontWeights = react.defineTokens.fontWeights({
|
|
10184
9921
|
}
|
10185
9922
|
});
|
10186
9923
|
var fonts = react.defineTokens.fonts({
|
10187
|
-
body: { value: `${
|
10188
|
-
heading: { value: `${
|
10189
|
-
mono: { value: `${
|
9924
|
+
body: { value: `${tokens23__namespace.default.font.family.body}, arial, sans-serif` },
|
9925
|
+
heading: { value: `${tokens23__namespace.default.font.family.heading}, arial, sans-serif` },
|
9926
|
+
mono: { value: `${tokens23__namespace.default.font.family.monospace}, monospace` }
|
10190
9927
|
});
|
10191
9928
|
var letterSpacings = react.defineTokens.letterSpacings({
|
10192
9929
|
tighter: {
|
@@ -10223,31 +9960,31 @@ var lineHeights = react.defineTokens.lineHeights({
|
|
10223
9960
|
}
|
10224
9961
|
});
|
10225
9962
|
var radii2 = react.defineTokens.radii({
|
10226
|
-
none: { value:
|
10227
|
-
xs: { value:
|
10228
|
-
sm: { value:
|
10229
|
-
md: { value:
|
10230
|
-
lg: { value:
|
10231
|
-
xl: { value:
|
10232
|
-
"2xl": { value:
|
9963
|
+
none: { value: tokens23__namespace.default.size["border-radius"].none },
|
9964
|
+
xs: { value: tokens23__namespace.default.size["border-radius"].xs },
|
9965
|
+
sm: { value: tokens23__namespace.default.size["border-radius"].sm },
|
9966
|
+
md: { value: tokens23__namespace.default.size["border-radius"].md },
|
9967
|
+
lg: { value: tokens23__namespace.default.size["border-radius"].lg },
|
9968
|
+
xl: { value: tokens23__namespace.default.size["border-radius"].xl },
|
9969
|
+
"2xl": { value: tokens23__namespace.default.size["border-radius"]["2xl"] },
|
10233
9970
|
round: { value: "50%" }
|
10234
9971
|
});
|
10235
9972
|
var spacing = react.defineTokens.spacing({
|
10236
|
-
0: { value:
|
10237
|
-
0.5: { value:
|
10238
|
-
1: { value:
|
10239
|
-
1.5: { value:
|
10240
|
-
2: { value:
|
10241
|
-
3: { value:
|
10242
|
-
4: { value:
|
10243
|
-
5: { value:
|
10244
|
-
6: { value:
|
10245
|
-
7: { value:
|
10246
|
-
8: { value:
|
10247
|
-
9: { value:
|
10248
|
-
10: { value:
|
10249
|
-
11: { value:
|
10250
|
-
12: { value:
|
9973
|
+
0: { value: tokens23__namespace.default.size.spacing["0"] },
|
9974
|
+
0.5: { value: tokens23__namespace.default.size.spacing["0.5"] },
|
9975
|
+
1: { value: tokens23__namespace.default.size.spacing["1"] },
|
9976
|
+
1.5: { value: tokens23__namespace.default.size.spacing["1.5"] },
|
9977
|
+
2: { value: tokens23__namespace.default.size.spacing["2"] },
|
9978
|
+
3: { value: tokens23__namespace.default.size.spacing["3"] },
|
9979
|
+
4: { value: tokens23__namespace.default.size.spacing["4"] },
|
9980
|
+
5: { value: tokens23__namespace.default.size.spacing["5"] },
|
9981
|
+
6: { value: tokens23__namespace.default.size.spacing["6"] },
|
9982
|
+
7: { value: tokens23__namespace.default.size.spacing["7"] },
|
9983
|
+
8: { value: tokens23__namespace.default.size.spacing["8"] },
|
9984
|
+
9: { value: tokens23__namespace.default.size.spacing["9"] },
|
9985
|
+
10: { value: tokens23__namespace.default.size.spacing["10"] },
|
9986
|
+
11: { value: tokens23__namespace.default.size.spacing["11"] },
|
9987
|
+
12: { value: tokens23__namespace.default.size.spacing["12"] }
|
10251
9988
|
});
|
10252
9989
|
|
10253
9990
|
// src/theme/tokens/sizes.ts
|
@@ -10284,10 +10021,10 @@ var namedSizes = react.defineTokens.sizes({
|
|
10284
10021
|
});
|
10285
10022
|
var container = react.defineTokens.sizes({
|
10286
10023
|
base: { value: 0 },
|
10287
|
-
sm: { value:
|
10288
|
-
md: { value:
|
10289
|
-
lg: { value:
|
10290
|
-
xl: { value:
|
10024
|
+
sm: { value: tokens23__namespace.default.size.breakpoint.sm },
|
10025
|
+
md: { value: tokens23__namespace.default.size.breakpoint.md },
|
10026
|
+
lg: { value: tokens23__namespace.default.size.breakpoint.lg },
|
10027
|
+
xl: { value: tokens23__namespace.default.size.breakpoint.xl }
|
10291
10028
|
});
|
10292
10029
|
var sizes = {
|
10293
10030
|
...largeSizes,
|
@@ -10296,22 +10033,22 @@ var sizes = {
|
|
10296
10033
|
container
|
10297
10034
|
};
|
10298
10035
|
var zIndex = react.defineTokens.zIndex({
|
10299
|
-
hide: { value:
|
10036
|
+
hide: { value: tokens23__namespace.default.depth["z-index"].hide },
|
10300
10037
|
auto: { value: "auto" },
|
10301
|
-
base: { value:
|
10302
|
-
docked: { value:
|
10303
|
-
dropdown: { value:
|
10304
|
-
sticky: { value:
|
10305
|
-
banner: { value:
|
10306
|
-
overlay: { value:
|
10307
|
-
modal: { value:
|
10308
|
-
popover: { value:
|
10309
|
-
skipLink: { value:
|
10310
|
-
toast: { value:
|
10038
|
+
base: { value: tokens23__namespace.default.depth["z-index"].base },
|
10039
|
+
docked: { value: tokens23__namespace.default.depth["z-index"].docked },
|
10040
|
+
dropdown: { value: tokens23__namespace.default.depth["z-index"].dropdown },
|
10041
|
+
sticky: { value: tokens23__namespace.default.depth["z-index"].sticky },
|
10042
|
+
banner: { value: tokens23__namespace.default.depth["z-index"].banner },
|
10043
|
+
overlay: { value: tokens23__namespace.default.depth["z-index"].overlay },
|
10044
|
+
modal: { value: tokens23__namespace.default.depth["z-index"].modal },
|
10045
|
+
popover: { value: tokens23__namespace.default.depth["z-index"].popover },
|
10046
|
+
skipLink: { value: tokens23__namespace.default.depth["z-index"].skipLink },
|
10047
|
+
toast: { value: tokens23__namespace.default.depth["z-index"].toast }
|
10311
10048
|
});
|
10312
10049
|
|
10313
10050
|
// src/theme/tokens/index.ts
|
10314
|
-
var
|
10051
|
+
var tokens21 = {
|
10315
10052
|
aspectRatios,
|
10316
10053
|
animations,
|
10317
10054
|
blurs,
|
@@ -10380,10 +10117,10 @@ var animationStyles = react.defineAnimationStyles({
|
|
10380
10117
|
});
|
10381
10118
|
var breakpoints = {
|
10382
10119
|
base: "0px",
|
10383
|
-
sm:
|
10384
|
-
md:
|
10385
|
-
lg:
|
10386
|
-
xl:
|
10120
|
+
sm: tokens23__namespace.default.size.breakpoint.sm,
|
10121
|
+
md: tokens23__namespace.default.size.breakpoint.md,
|
10122
|
+
lg: tokens23__namespace.default.size.breakpoint.lg,
|
10123
|
+
xl: tokens23__namespace.default.size.breakpoint.xl
|
10387
10124
|
};
|
10388
10125
|
|
10389
10126
|
// src/theme/tokens/config.ts
|
@@ -10673,85 +10410,85 @@ var textStyles = react.defineTextStyles({
|
|
10673
10410
|
xxl: {
|
10674
10411
|
value: {
|
10675
10412
|
fontSize: [
|
10676
|
-
|
10413
|
+
tokens23__namespace.default.font.style.xxl["font-size"].mobile,
|
10677
10414
|
null,
|
10678
10415
|
null,
|
10679
|
-
|
10416
|
+
tokens23__namespace.default.font.style.xxl["font-size"].desktop
|
10680
10417
|
],
|
10681
|
-
fontFamily:
|
10682
|
-
lineHeight:
|
10418
|
+
fontFamily: tokens23__namespace.default.font.style.xxl["font-family"],
|
10419
|
+
lineHeight: tokens23__namespace.default.font.style.xxl["line-height"]
|
10683
10420
|
}
|
10684
10421
|
},
|
10685
10422
|
"xl-display": {
|
10686
10423
|
value: {
|
10687
10424
|
fontSize: [
|
10688
|
-
|
10425
|
+
tokens23__namespace.default.font.style["xl-display"]["font-size"].mobile,
|
10689
10426
|
null,
|
10690
10427
|
null,
|
10691
|
-
|
10428
|
+
tokens23__namespace.default.font.style["xl-display"]["font-size"].desktop
|
10692
10429
|
],
|
10693
|
-
fontFamily:
|
10694
|
-
lineHeight:
|
10430
|
+
fontFamily: tokens23__namespace.default.font.style["xl-display"]["font-family"],
|
10431
|
+
lineHeight: tokens23__namespace.default.font.style["xl-display"]["line-height"]
|
10695
10432
|
}
|
10696
10433
|
},
|
10697
10434
|
"xl-sans": {
|
10698
10435
|
value: {
|
10699
10436
|
fontSize: [
|
10700
|
-
|
10437
|
+
tokens23__namespace.default.font.style["xl-sans"]["font-size"].mobile,
|
10701
10438
|
null,
|
10702
10439
|
null,
|
10703
|
-
|
10440
|
+
tokens23__namespace.default.font.style["xl-sans"]["font-size"].desktop
|
10704
10441
|
],
|
10705
|
-
fontFamily:
|
10706
|
-
lineHeight:
|
10442
|
+
fontFamily: tokens23__namespace.default.font.style["xl-sans"]["font-family"],
|
10443
|
+
lineHeight: tokens23__namespace.default.font.style["xl-sans"]["line-height"]
|
10707
10444
|
}
|
10708
10445
|
},
|
10709
10446
|
lg: {
|
10710
10447
|
value: {
|
10711
10448
|
fontSize: [
|
10712
|
-
|
10449
|
+
tokens23__namespace.default.font.style.lg["font-size"].mobile,
|
10713
10450
|
null,
|
10714
10451
|
null,
|
10715
|
-
|
10452
|
+
tokens23__namespace.default.font.style.lg["font-size"].desktop
|
10716
10453
|
],
|
10717
|
-
fontFamily:
|
10718
|
-
lineHeight:
|
10454
|
+
fontFamily: tokens23__namespace.default.font.style.lg["font-family"],
|
10455
|
+
lineHeight: tokens23__namespace.default.font.style.lg["line-height"]
|
10719
10456
|
}
|
10720
10457
|
},
|
10721
10458
|
md: {
|
10722
10459
|
value: {
|
10723
10460
|
fontSize: [
|
10724
|
-
|
10461
|
+
tokens23__namespace.default.font.style.md["font-size"].mobile,
|
10725
10462
|
null,
|
10726
10463
|
null,
|
10727
|
-
|
10464
|
+
tokens23__namespace.default.font.style.md["font-size"].desktop
|
10728
10465
|
],
|
10729
|
-
fontFamily:
|
10730
|
-
lineHeight:
|
10466
|
+
fontFamily: tokens23__namespace.default.font.style.md["font-family"],
|
10467
|
+
lineHeight: tokens23__namespace.default.font.style.md["line-height"]
|
10731
10468
|
}
|
10732
10469
|
},
|
10733
10470
|
sm: {
|
10734
10471
|
value: {
|
10735
10472
|
fontSize: [
|
10736
|
-
|
10473
|
+
tokens23__namespace.default.font.style.sm["font-size"].mobile,
|
10737
10474
|
null,
|
10738
10475
|
null,
|
10739
|
-
|
10476
|
+
tokens23__namespace.default.font.style.sm["font-size"].desktop
|
10740
10477
|
],
|
10741
|
-
fontFamily:
|
10742
|
-
lineHeight:
|
10478
|
+
fontFamily: tokens23__namespace.default.font.style.sm["font-family"],
|
10479
|
+
lineHeight: tokens23__namespace.default.font.style.sm["line-height"]
|
10743
10480
|
}
|
10744
10481
|
},
|
10745
10482
|
xs: {
|
10746
10483
|
value: {
|
10747
10484
|
fontSize: [
|
10748
|
-
|
10485
|
+
tokens23__namespace.default.font.style.xs["font-size"].mobile,
|
10749
10486
|
null,
|
10750
10487
|
null,
|
10751
|
-
|
10488
|
+
tokens23__namespace.default.font.style.xs["font-size"].desktop
|
10752
10489
|
],
|
10753
|
-
fontFamily:
|
10754
|
-
lineHeight:
|
10490
|
+
fontFamily: tokens23__namespace.default.font.style.xs["font-family"],
|
10491
|
+
lineHeight: tokens23__namespace.default.font.style.xs["line-height"]
|
10755
10492
|
}
|
10756
10493
|
}
|
10757
10494
|
});
|
@@ -10762,7 +10499,7 @@ var generateTheme = (brand) => {
|
|
10762
10499
|
theme: {
|
10763
10500
|
breakpoints,
|
10764
10501
|
keyframes,
|
10765
|
-
tokens:
|
10502
|
+
tokens: tokens21,
|
10766
10503
|
semanticTokens: semanticTokens[brand],
|
10767
10504
|
recipes,
|
10768
10505
|
slotRecipes,
|
@@ -10999,7 +10736,7 @@ Object.defineProperty(exports, "Time", {
|
|
10999
10736
|
enumerable: true,
|
11000
10737
|
get: function () { return date.Time; }
|
11001
10738
|
});
|
11002
|
-
exports.tokens =
|
10739
|
+
exports.tokens = tokens23__namespace;
|
11003
10740
|
exports.Accordion = Accordion;
|
11004
10741
|
exports.AccordionItem = AccordionItem;
|
11005
10742
|
exports.AccordionItemContent = AccordionItemContent;
|