@vygruppen/spor-react 12.4.4 → 12.4.6
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 +15 -0
- package/dist/index.d.mts +33 -29
- package/dist/index.d.ts +33 -29
- package/dist/index.js +197 -458
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +197 -458
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/linjetag/InfoTag.tsx +0 -1
- package/src/linjetag/LineIcon.tsx +1 -1
- package/src/linjetag/types.ts +1 -1
- package/src/theme/recipes/close-button.ts +2 -4
- package/src/theme/recipes/link.ts +3 -5
- package/src/theme/slot-recipes/accordion.ts +23 -19
- package/src/theme/slot-recipes/checkbox.ts +9 -15
- package/src/theme/slot-recipes/info-tag.ts +11 -7
- 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
|
},
|
@@ -4919,7 +4784,6 @@ var InfoTag = ({
|
|
4919
4784
|
}) => {
|
4920
4785
|
const recipe = react.useSlotRecipe({ key: "infoTag" });
|
4921
4786
|
const styles = recipe({
|
4922
|
-
variant,
|
4923
4787
|
size,
|
4924
4788
|
...customProps
|
4925
4789
|
});
|
@@ -6036,7 +5900,7 @@ var texts24 = createTexts({
|
|
6036
5900
|
});
|
6037
5901
|
var fontFaces = `
|
6038
5902
|
@font-face {
|
6039
|
-
font-family: ${
|
5903
|
+
font-family: ${tokens23__namespace.default.asset.font["vy-sans"]["light"].name};
|
6040
5904
|
src: url("https://www.vy.no/styles/font/VySans-Light.woff2") format("woff2"),
|
6041
5905
|
url("https://www.vy.no/styles/font/VySans-Light.woff") format("woff");
|
6042
5906
|
font-style: normal;
|
@@ -6044,7 +5908,7 @@ var fontFaces = `
|
|
6044
5908
|
font-display: swap
|
6045
5909
|
}
|
6046
5910
|
@font-face {
|
6047
|
-
font-family: ${
|
5911
|
+
font-family: ${tokens23__namespace.default.asset.font["vy-sans"]["light-italic"].name};
|
6048
5912
|
src: url("https://www.vy.no/styles/font/VySans-LightItalic.woff2")
|
6049
5913
|
format("woff2"),
|
6050
5914
|
url("https://www.vy.no/styles/font/VySans-LightItalic.woff") format("woff");
|
@@ -6053,7 +5917,7 @@ var fontFaces = `
|
|
6053
5917
|
font-display: swap
|
6054
5918
|
}
|
6055
5919
|
@font-face {
|
6056
|
-
font-family: ${
|
5920
|
+
font-family: ${tokens23__namespace.default.asset.font["vy-sans"]["medium"].name};
|
6057
5921
|
src: url("https://www.vy.no/styles/font/VySans-Regular.woff2") format("woff2"),
|
6058
5922
|
url("https://www.vy.no/styles/font/VySans-Regular.woff") format("woff");
|
6059
5923
|
font-style: normal;
|
@@ -6061,7 +5925,7 @@ var fontFaces = `
|
|
6061
5925
|
font-display: swap
|
6062
5926
|
}
|
6063
5927
|
@font-face {
|
6064
|
-
font-family: ${
|
5928
|
+
font-family: ${tokens23__namespace.default.asset.font["vy-sans"]["medium-italic"].name};
|
6065
5929
|
src: url("https://www.vy.no/styles/font/VySans-RegularItalic.woff2")
|
6066
5930
|
format("woff2"),
|
6067
5931
|
url("https://www.vy.no/styles/font/VySans-RegularItalic.woff")
|
@@ -6071,7 +5935,7 @@ var fontFaces = `
|
|
6071
5935
|
font-display: swap
|
6072
5936
|
}
|
6073
5937
|
@font-face {
|
6074
|
-
font-family: ${
|
5938
|
+
font-family: ${tokens23__namespace.default.asset.font["vy-sans"]["bold"].name};
|
6075
5939
|
src: url("https://www.vy.no/styles/font/VySans-Bold.woff2") format("woff2"),
|
6076
5940
|
url("https://www.vy.no/styles/font/VySans-Bold.woff") format("woff");
|
6077
5941
|
font-style: normal;
|
@@ -6079,7 +5943,7 @@ var fontFaces = `
|
|
6079
5943
|
font-display: swap
|
6080
5944
|
}
|
6081
5945
|
@font-face {
|
6082
|
-
font-family: ${
|
5946
|
+
font-family: ${tokens23__namespace.default.asset.font["vy-sans"]["bold-italic"].name};
|
6083
5947
|
src: url("https://www.vy.no/styles/font/VySans-BoldItalic.woff2")
|
6084
5948
|
format("woff2"),
|
6085
5949
|
url("https://www.vy.no/styles/font/VySans-BoldItalic.woff") format("woff");
|
@@ -6088,7 +5952,7 @@ var fontFaces = `
|
|
6088
5952
|
font-display: swap
|
6089
5953
|
}
|
6090
5954
|
@font-face {
|
6091
|
-
font-family: ${
|
5955
|
+
font-family: ${tokens23__namespace.default.asset.font["vy-display"].name};
|
6092
5956
|
src: url("https://www.vy.no/styles/font/VyDisplay-Medium.woff2")
|
6093
5957
|
format("woff2"),
|
6094
5958
|
url("https://www.vy.no/styles/font/VyDisplay-Medium.woff") format("woff");
|
@@ -6597,7 +6461,7 @@ var buttonRecipe = react.defineRecipe({
|
|
6597
6461
|
background: "surface.disabled"
|
6598
6462
|
},
|
6599
6463
|
_focus: {
|
6600
|
-
outlineOffset:
|
6464
|
+
outlineOffset: tokens23__namespace.default.size.stroke.md
|
6601
6465
|
}
|
6602
6466
|
},
|
6603
6467
|
variants: {
|
@@ -6625,19 +6489,19 @@ var buttonRecipe = react.defineRecipe({
|
|
6625
6489
|
tertiary: {
|
6626
6490
|
color: "core.text",
|
6627
6491
|
outline: "solid",
|
6628
|
-
outlineWidth:
|
6492
|
+
outlineWidth: tokens23__namespace.default.size.stroke.sm,
|
6629
6493
|
outlineColor: "core.outline",
|
6630
6494
|
_hover: {
|
6631
|
-
outlineWidth:
|
6495
|
+
outlineWidth: tokens23__namespace.default.size.stroke.md,
|
6632
6496
|
outlineColor: "core.outline.hover",
|
6633
6497
|
_active: {
|
6634
6498
|
background: "core.surface.active",
|
6635
|
-
outlineWidth:
|
6499
|
+
outlineWidth: tokens23__namespace.default.size.stroke.sm,
|
6636
6500
|
outlineColor: "core.outline"
|
6637
6501
|
}
|
6638
6502
|
},
|
6639
6503
|
_focus: {
|
6640
|
-
outlineWidth:
|
6504
|
+
outlineWidth: tokens23__namespace.default.size.stroke.sm
|
6641
6505
|
}
|
6642
6506
|
},
|
6643
6507
|
ghost: {
|
@@ -6697,34 +6561,6 @@ var buttonRecipe = react.defineRecipe({
|
|
6697
6561
|
size: "md"
|
6698
6562
|
}
|
6699
6563
|
});
|
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
6564
|
var closeButtonRecipe = react.defineRecipe({
|
6729
6565
|
base: {
|
6730
6566
|
transitionProperty: "common",
|
@@ -6734,12 +6570,12 @@ var closeButtonRecipe = react.defineRecipe({
|
|
6734
6570
|
color: "darkGrey",
|
6735
6571
|
fontWeight: "normal",
|
6736
6572
|
_hover: {
|
6737
|
-
|
6573
|
+
background: "ghost.surface.hover",
|
6738
6574
|
_disabled: {
|
6739
6575
|
color: "dimGrey"
|
6740
6576
|
},
|
6741
6577
|
_active: {
|
6742
|
-
|
6578
|
+
background: "ghost.surface.active"
|
6743
6579
|
}
|
6744
6580
|
}
|
6745
6581
|
},
|
@@ -6801,7 +6637,7 @@ var linkRecipe = react.defineRecipe({
|
|
6801
6637
|
variants: {
|
6802
6638
|
variant: {
|
6803
6639
|
primary: {
|
6804
|
-
|
6640
|
+
color: "core.text",
|
6805
6641
|
_hover: {
|
6806
6642
|
color: "text.default",
|
6807
6643
|
_active: {
|
@@ -6810,10 +6646,10 @@ var linkRecipe = react.defineRecipe({
|
|
6810
6646
|
}
|
6811
6647
|
},
|
6812
6648
|
secondary: {
|
6813
|
-
|
6649
|
+
color: "text.hightlight",
|
6814
6650
|
padding: "2px",
|
6815
6651
|
_hover: {
|
6816
|
-
|
6652
|
+
color: "text.hightlight",
|
6817
6653
|
_active: {
|
6818
6654
|
color: "text.disabled"
|
6819
6655
|
}
|
@@ -6874,14 +6710,14 @@ var cargonetColors = react.defineSemanticTokens.colors({
|
|
6874
6710
|
...tokens4__default.default.color.cargonet.color.cargonet
|
6875
6711
|
});
|
6876
6712
|
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:
|
6713
|
+
none: { value: tokens23__namespace.default.size["border-radius"].none },
|
6714
|
+
xxs: { value: tokens23__namespace.default.size["border-radius"].xxs },
|
6715
|
+
xs: { value: tokens23__namespace.default.size["border-radius"].xs },
|
6716
|
+
sm: { value: tokens23__namespace.default.size["border-radius"].sm },
|
6717
|
+
md: { value: tokens23__namespace.default.size["border-radius"].md },
|
6718
|
+
lg: { value: tokens23__namespace.default.size["border-radius"].lg },
|
6719
|
+
xl: { value: tokens23__namespace.default.size["border-radius"].xl },
|
6720
|
+
"2xl": { value: tokens23__namespace.default.size["border-radius"]["2xl"] },
|
6885
6721
|
round: { value: "50%" }
|
6886
6722
|
});
|
6887
6723
|
var shadows = react.defineSemanticTokens.shadows({
|
@@ -6889,13 +6725,13 @@ var shadows = react.defineSemanticTokens.shadows({
|
|
6889
6725
|
value: "none"
|
6890
6726
|
},
|
6891
6727
|
sm: {
|
6892
|
-
value:
|
6728
|
+
value: tokens23__namespace.default.depth.shadow.sm.value
|
6893
6729
|
},
|
6894
6730
|
md: {
|
6895
|
-
value:
|
6731
|
+
value: tokens23__namespace.default.depth.shadow.md.value
|
6896
6732
|
},
|
6897
6733
|
lg: {
|
6898
|
-
value:
|
6734
|
+
value: tokens23__namespace.default.depth.shadow.lg.value
|
6899
6735
|
}
|
6900
6736
|
});
|
6901
6737
|
|
@@ -6918,66 +6754,6 @@ var semanticTokens = {
|
|
6918
6754
|
colors: vyDigitalColors
|
6919
6755
|
}
|
6920
6756
|
};
|
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
6757
|
var accordionSlotRecipe = react.defineSlotRecipe({
|
6982
6758
|
className: "spor-accordion",
|
6983
6759
|
slots: accordionAnatomy.keys(),
|
@@ -6993,7 +6769,7 @@ var accordionSlotRecipe = react.defineSlotRecipe({
|
|
6993
6769
|
borderRadius: "sm",
|
6994
6770
|
display: "flex",
|
6995
6771
|
justifyContent: "space-between",
|
6996
|
-
|
6772
|
+
color: "core.text",
|
6997
6773
|
textAlign: "left",
|
6998
6774
|
width: "full",
|
6999
6775
|
alignItems: "center",
|
@@ -7044,58 +6820,62 @@ var accordionSlotRecipe = react.defineSlotRecipe({
|
|
7044
6820
|
variants: {
|
7045
6821
|
variant: {
|
7046
6822
|
ghost: {
|
7047
|
-
|
6823
|
+
item: {
|
7048
6824
|
outline: "none"
|
7049
6825
|
},
|
7050
6826
|
itemTrigger: {
|
7051
6827
|
"&:hover": {
|
7052
|
-
|
6828
|
+
background: "ghost.surface.hover"
|
7053
6829
|
},
|
7054
6830
|
"&:active": {
|
7055
|
-
|
6831
|
+
backgroundColor: "ghost.surface.active"
|
7056
6832
|
}
|
7057
6833
|
}
|
7058
6834
|
},
|
7059
6835
|
core: {
|
7060
6836
|
item: {
|
7061
|
-
|
6837
|
+
outline: "solid",
|
6838
|
+
outlineWidth: tokens23__namespace.default.size.stroke.sm,
|
6839
|
+
outlineColor: "core.outline"
|
7062
6840
|
},
|
7063
6841
|
itemTrigger: {
|
7064
6842
|
_expanded: {
|
7065
6843
|
borderBottomRadius: "none"
|
7066
6844
|
},
|
7067
6845
|
"&:hover": {
|
7068
|
-
|
6846
|
+
outlineWidth: tokens23__namespace.default.size.stroke.md,
|
6847
|
+
outlineColor: "core.outline",
|
6848
|
+
outline: "2px solid",
|
7069
6849
|
outlineOffset: 0
|
7070
6850
|
},
|
7071
6851
|
"&:active": {
|
7072
6852
|
backgroundColor: "core.surface.active",
|
7073
|
-
|
6853
|
+
outlineWidth: tokens23__namespace.default.size.stroke.sm,
|
6854
|
+
outline: "none"
|
7074
6855
|
}
|
7075
6856
|
}
|
7076
6857
|
},
|
7077
6858
|
floating: {
|
7078
6859
|
item: {
|
7079
|
-
|
7080
|
-
|
7081
|
-
boxShadow: "sm"
|
6860
|
+
outline: "1px solid",
|
6861
|
+
outlineWidth: tokens23__namespace.default.size.stroke.sm,
|
6862
|
+
boxShadow: "sm",
|
6863
|
+
outlineColor: "floating.outline"
|
7082
6864
|
},
|
7083
6865
|
itemTrigger: {
|
7084
6866
|
_expanded: {
|
7085
6867
|
borderBottomRadius: "none"
|
7086
6868
|
},
|
7087
6869
|
"&:hover": {
|
7088
|
-
|
7089
|
-
|
7090
|
-
|
7091
|
-
|
7092
|
-
backgroundColor: "floating.surface.active",
|
7093
|
-
...floatingBorder("default")
|
7094
|
-
}
|
6870
|
+
outlineWidth: tokens23__namespace.default.size.stroke.md,
|
6871
|
+
outline: "1px solid",
|
6872
|
+
outlineColor: "floating.outline.hover",
|
6873
|
+
outlineOffset: 1
|
7095
6874
|
},
|
7096
6875
|
"&:active": {
|
7097
6876
|
backgroundColor: "floating.surface.active",
|
7098
|
-
|
6877
|
+
outlineWidth: tokens23__namespace.default.size.stroke.sm,
|
6878
|
+
outline: "none"
|
7099
6879
|
}
|
7100
6880
|
}
|
7101
6881
|
}
|
@@ -7398,7 +7178,7 @@ var breadcrumbSlotRecipe = react.defineSlotRecipe({
|
|
7398
7178
|
link: {
|
7399
7179
|
_hover: {
|
7400
7180
|
outlineColor: "core.outline.hover",
|
7401
|
-
outlineWidth:
|
7181
|
+
outlineWidth: tokens23__namespace.default.size.stroke.md,
|
7402
7182
|
outlineStyle: "solid",
|
7403
7183
|
_active: {
|
7404
7184
|
backgroundColor: "core.surface.active",
|
@@ -7432,12 +7212,10 @@ var checkboxSlotRecipe = react.defineSlotRecipe({
|
|
7432
7212
|
gap: 1.5,
|
7433
7213
|
_hover: {
|
7434
7214
|
"& > input:enabled:not([aria-invalid]) + .spor-checkbox__control": {
|
7435
|
-
|
7436
|
-
borderColor: brandBackground("hover").backgroundColor
|
7215
|
+
borderColor: "core.outline.hover"
|
7437
7216
|
},
|
7438
7217
|
"& > input:enabled:checked:not([aria-invalid]) + .spor-checkbox__control": {
|
7439
|
-
|
7440
|
-
borderColor: brandBackground("hover").backgroundColor
|
7218
|
+
background: "brand.surface.hover"
|
7441
7219
|
}
|
7442
7220
|
}
|
7443
7221
|
},
|
@@ -7461,17 +7239,16 @@ var checkboxSlotRecipe = react.defineSlotRecipe({
|
|
7461
7239
|
border: "2px solid",
|
7462
7240
|
borderColor: "core.outline",
|
7463
7241
|
borderRadius: "xs",
|
7464
|
-
...coreBackground("default"),
|
7465
7242
|
_checked: {
|
7466
|
-
|
7467
|
-
|
7468
|
-
|
7243
|
+
color: "brand.icon",
|
7244
|
+
borderColor: "brand.surface",
|
7245
|
+
background: "brand.surface",
|
7469
7246
|
_focus: {
|
7470
7247
|
borderColor: "brand.surface.active"
|
7471
7248
|
},
|
7472
7249
|
_disabled: {
|
7473
|
-
|
7474
|
-
|
7250
|
+
background: "surface.disabled",
|
7251
|
+
color: "text.disabled",
|
7475
7252
|
borderColor: "currentColor"
|
7476
7253
|
},
|
7477
7254
|
_invalid: {
|
@@ -7480,20 +7257,19 @@ var checkboxSlotRecipe = react.defineSlotRecipe({
|
|
7480
7257
|
}
|
7481
7258
|
},
|
7482
7259
|
_disabled: {
|
7483
|
-
|
7484
|
-
borderColor:
|
7260
|
+
// borderColor: coreText("disabled").color,
|
7261
|
+
borderColor: "text.disabled"
|
7485
7262
|
},
|
7486
7263
|
_invalid: {
|
7487
|
-
...coreBackground("default"),
|
7488
7264
|
borderColor: "outline.error"
|
7489
7265
|
},
|
7490
7266
|
_focus: {
|
7491
7267
|
outlineStyle: "solid",
|
7492
7268
|
outlineColor: "outline.focus",
|
7493
|
-
outlineOffset:
|
7494
|
-
outlineWidth:
|
7269
|
+
outlineOffset: tokens23__namespace.default.size.stroke.md,
|
7270
|
+
outlineWidth: tokens23__namespace.default.size.stroke.md,
|
7495
7271
|
borderColor: "core.outline",
|
7496
|
-
borderWidth:
|
7272
|
+
borderWidth: tokens23__namespace.default.size.stroke.md
|
7497
7273
|
}
|
7498
7274
|
},
|
7499
7275
|
label: {
|
@@ -8147,7 +7923,7 @@ var floatingActionButtonSlotRecipe = react.defineSlotRecipe({
|
|
8147
7923
|
position: "fixed",
|
8148
7924
|
zIndex: "dropdown",
|
8149
7925
|
_focus: {
|
8150
|
-
outlineOffset:
|
7926
|
+
outlineOffset: tokens23__namespace.default.size.stroke.lg,
|
8151
7927
|
outlineColor: "outline.focus"
|
8152
7928
|
},
|
8153
7929
|
_disabled: {
|
@@ -8471,13 +8247,17 @@ var infoTagSlotRecipe = react.defineSlotRecipe({
|
|
8471
8247
|
},
|
8472
8248
|
variants: {
|
8473
8249
|
variant: {
|
8474
|
-
walk: {
|
8475
|
-
|
8476
|
-
|
8477
|
-
|
8478
|
-
|
8479
|
-
|
8480
|
-
}
|
8250
|
+
walk: {},
|
8251
|
+
ferry: {},
|
8252
|
+
subway: {},
|
8253
|
+
tram: {},
|
8254
|
+
"local-train": {},
|
8255
|
+
"region-train": {},
|
8256
|
+
"region-express-train": {},
|
8257
|
+
"long-distance-train": {},
|
8258
|
+
"airport-express-train": {},
|
8259
|
+
"vy-bus": {},
|
8260
|
+
"local-bus": {}
|
8481
8261
|
},
|
8482
8262
|
size: {
|
8483
8263
|
...(_a4 = travelTagSlotRecipe.variants) == null ? void 0 : _a4.size,
|
@@ -8890,13 +8670,12 @@ var paginationSlotRecipe = react.defineSlotRecipe({
|
|
8890
8670
|
width: "5",
|
8891
8671
|
fontSize: "xs",
|
8892
8672
|
borderRadius: "xl",
|
8893
|
-
|
8673
|
+
color: "core.text",
|
8894
8674
|
cursor: "pointer",
|
8895
|
-
...coreBackground("default"),
|
8896
8675
|
_hover: {
|
8897
|
-
|
8676
|
+
background: "ghost.surface.hover",
|
8898
8677
|
_active: {
|
8899
|
-
|
8678
|
+
background: "ghost.surface.active"
|
8900
8679
|
}
|
8901
8680
|
},
|
8902
8681
|
_selected: {
|
@@ -9152,26 +8931,26 @@ var radioCardSlotRecipe = react.defineSlotRecipe({
|
|
9152
8931
|
core: {
|
9153
8932
|
item: {
|
9154
8933
|
outlineColor: "core.outline",
|
9155
|
-
outlineWidth:
|
8934
|
+
outlineWidth: tokens23__namespace.default.size.stroke.sm,
|
9156
8935
|
outlineStyle: "solid",
|
9157
8936
|
backgroundColor: "core.surface",
|
9158
8937
|
_hover: {
|
9159
8938
|
outlineColor: "core.outline.hover",
|
9160
|
-
outlineWidth:
|
8939
|
+
outlineWidth: tokens23__namespace.default.size.stroke.md,
|
9161
8940
|
outlineStyle: "solid",
|
9162
8941
|
_active: {
|
9163
8942
|
backgroundColor: "core.surface.active",
|
9164
|
-
outlineWidth:
|
8943
|
+
outlineWidth: tokens23__namespace.default.size.stroke.sm
|
9165
8944
|
}
|
9166
8945
|
},
|
9167
8946
|
_checked: {
|
9168
8947
|
outlineColor: "outline.focus",
|
9169
|
-
outlineWidth:
|
8948
|
+
outlineWidth: tokens23__namespace.default.size.stroke.md,
|
9170
8949
|
outlineStyle: "solid",
|
9171
8950
|
backgroundColor: "core.surface.active",
|
9172
8951
|
_focusVisible: {
|
9173
8952
|
outlineStyle: "double",
|
9174
|
-
outlineWidth: `calc(3 * ${
|
8953
|
+
outlineWidth: `calc(3 * ${tokens23__namespace.default.size.stroke.md})`
|
9175
8954
|
// space for double outline
|
9176
8955
|
}
|
9177
8956
|
}
|
@@ -9196,12 +8975,12 @@ var radioCardSlotRecipe = react.defineSlotRecipe({
|
|
9196
8975
|
},
|
9197
8976
|
_checked: {
|
9198
8977
|
outlineColor: "outline.focus",
|
9199
|
-
outlineWidth:
|
8978
|
+
outlineWidth: tokens23__namespace.default.size.stroke.md,
|
9200
8979
|
outlineStyle: "solid",
|
9201
8980
|
backgroundColor: "core.surface.active",
|
9202
8981
|
_focusVisible: {
|
9203
8982
|
outlineStyle: "double",
|
9204
|
-
outlineWidth: `calc(3 * ${
|
8983
|
+
outlineWidth: `calc(3 * ${tokens23__namespace.default.size.stroke.md})`
|
9205
8984
|
// space for double outline
|
9206
8985
|
}
|
9207
8986
|
}
|
@@ -9457,46 +9236,6 @@ var selectSlotRecipe = react.defineSlotRecipe({
|
|
9457
9236
|
}
|
9458
9237
|
}
|
9459
9238
|
});
|
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
9239
|
var stepperSlotRecipe = react.defineSlotRecipe({
|
9501
9240
|
slots: stepperAnatomy.keys(),
|
9502
9241
|
className: "spor-stepper",
|
@@ -9562,13 +9301,13 @@ var stepperSlotRecipe = react.defineSlotRecipe({
|
|
9562
9301
|
_dark: "whiteAlpha.900"
|
9563
9302
|
},
|
9564
9303
|
_disabled: {
|
9565
|
-
color:
|
9304
|
+
color: "core.text"
|
9566
9305
|
},
|
9567
9306
|
_currentStep: {
|
9568
|
-
color:
|
9307
|
+
color: "accent.text"
|
9569
9308
|
},
|
9570
9309
|
_hover: {
|
9571
|
-
backgroundColor:
|
9310
|
+
backgroundColor: "accent.surface.hover",
|
9572
9311
|
_disabled: {
|
9573
9312
|
backgroundColor: "transparent"
|
9574
9313
|
}
|
@@ -9576,7 +9315,7 @@ var stepperSlotRecipe = react.defineSlotRecipe({
|
|
9576
9315
|
},
|
9577
9316
|
backButton: {
|
9578
9317
|
_hover: {
|
9579
|
-
|
9318
|
+
backgroundColor: "brand.surface.hover"
|
9580
9319
|
}
|
9581
9320
|
}
|
9582
9321
|
}
|
@@ -9666,7 +9405,7 @@ var switchSlotRecipe = react.defineSlotRecipe({
|
|
9666
9405
|
backgroundColor: "brand.surface",
|
9667
9406
|
_focusVisible: {
|
9668
9407
|
outlineStyle: "double",
|
9669
|
-
outlineWidth: `calc(3 * ${
|
9408
|
+
outlineWidth: `calc(3 * ${tokens23__namespace.default.size.stroke.md})`
|
9670
9409
|
// space for double outline
|
9671
9410
|
}
|
9672
9411
|
},
|
@@ -10042,22 +9781,22 @@ var borders = react.defineTokens.borders({
|
|
10042
9781
|
value: "0"
|
10043
9782
|
},
|
10044
9783
|
sm: {
|
10045
|
-
value: `${
|
9784
|
+
value: `${tokens23__namespace.default.size.stroke.sm} solid`
|
10046
9785
|
},
|
10047
9786
|
"sm-dashed": {
|
10048
|
-
value: `${
|
9787
|
+
value: `${tokens23__namespace.default.size.stroke.sm} dashed`
|
10049
9788
|
},
|
10050
9789
|
md: {
|
10051
|
-
value: `${
|
9790
|
+
value: `${tokens23__namespace.default.size.stroke.md} solid`
|
10052
9791
|
},
|
10053
9792
|
"md-dashed": {
|
10054
|
-
value: `${
|
9793
|
+
value: `${tokens23__namespace.default.size.stroke.md} dashed`
|
10055
9794
|
},
|
10056
9795
|
lg: {
|
10057
|
-
value: `${
|
9796
|
+
value: `${tokens23__namespace.default.size.stroke.lg} solid`
|
10058
9797
|
},
|
10059
9798
|
"lg-dashed": {
|
10060
|
-
value: `${
|
9799
|
+
value: `${tokens23__namespace.default.size.stroke.lg} dashed`
|
10061
9800
|
}
|
10062
9801
|
});
|
10063
9802
|
var colors = react.defineTokens.colors({
|
@@ -10129,29 +9868,29 @@ var easings = react.defineTokens.easings({
|
|
10129
9868
|
}
|
10130
9869
|
});
|
10131
9870
|
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:
|
9871
|
+
"2xs": { value: tokens23__namespace.default.size.font.xs.mobile },
|
9872
|
+
xs: { value: tokens23__namespace.default.size.font.sm.mobile },
|
9873
|
+
sm: { value: tokens23__namespace.default.size.font.md.mobile },
|
9874
|
+
md: { value: tokens23__namespace.default.size.font.lg.mobile },
|
9875
|
+
lg: { value: tokens23__namespace.default.size.font.xl.mobile },
|
9876
|
+
xl: { value: tokens23__namespace.default.size.font.xxl.mobile },
|
9877
|
+
"2xl": { value: tokens23__namespace.default.size.font.xl.desktop },
|
9878
|
+
"3xl": { value: tokens23__namespace.default.size.font.xxl.desktop },
|
10140
9879
|
mobile: {
|
10141
|
-
xs: { value:
|
10142
|
-
sm: { value:
|
10143
|
-
md: { value:
|
10144
|
-
lg: { value:
|
10145
|
-
xl: { value:
|
10146
|
-
xxl: { value:
|
9880
|
+
xs: { value: tokens23__namespace.default.size.font.xs.mobile },
|
9881
|
+
sm: { value: tokens23__namespace.default.size.font.sm.mobile },
|
9882
|
+
md: { value: tokens23__namespace.default.size.font.md.mobile },
|
9883
|
+
lg: { value: tokens23__namespace.default.size.font.lg.mobile },
|
9884
|
+
xl: { value: tokens23__namespace.default.size.font.xl.mobile },
|
9885
|
+
xxl: { value: tokens23__namespace.default.size.font.xxl.mobile }
|
10147
9886
|
},
|
10148
9887
|
desktop: {
|
10149
|
-
xs: { value:
|
10150
|
-
sm: { value:
|
10151
|
-
md: { value:
|
10152
|
-
lg: { value:
|
10153
|
-
xl: { value:
|
10154
|
-
xxl: { value:
|
9888
|
+
xs: { value: tokens23__namespace.default.size.font.xs.desktop },
|
9889
|
+
sm: { value: tokens23__namespace.default.size.font.sm.desktop },
|
9890
|
+
md: { value: tokens23__namespace.default.size.font.md.desktop },
|
9891
|
+
lg: { value: tokens23__namespace.default.size.font.lg.desktop },
|
9892
|
+
xl: { value: tokens23__namespace.default.size.font.xl.desktop },
|
9893
|
+
xxl: { value: tokens23__namespace.default.size.font.xxl.desktop }
|
10155
9894
|
}
|
10156
9895
|
});
|
10157
9896
|
var fontWeights = react.defineTokens.fontWeights({
|
@@ -10184,9 +9923,9 @@ var fontWeights = react.defineTokens.fontWeights({
|
|
10184
9923
|
}
|
10185
9924
|
});
|
10186
9925
|
var fonts = react.defineTokens.fonts({
|
10187
|
-
body: { value: `${
|
10188
|
-
heading: { value: `${
|
10189
|
-
mono: { value: `${
|
9926
|
+
body: { value: `${tokens23__namespace.default.font.family.body}, arial, sans-serif` },
|
9927
|
+
heading: { value: `${tokens23__namespace.default.font.family.heading}, arial, sans-serif` },
|
9928
|
+
mono: { value: `${tokens23__namespace.default.font.family.monospace}, monospace` }
|
10190
9929
|
});
|
10191
9930
|
var letterSpacings = react.defineTokens.letterSpacings({
|
10192
9931
|
tighter: {
|
@@ -10223,31 +9962,31 @@ var lineHeights = react.defineTokens.lineHeights({
|
|
10223
9962
|
}
|
10224
9963
|
});
|
10225
9964
|
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:
|
9965
|
+
none: { value: tokens23__namespace.default.size["border-radius"].none },
|
9966
|
+
xs: { value: tokens23__namespace.default.size["border-radius"].xs },
|
9967
|
+
sm: { value: tokens23__namespace.default.size["border-radius"].sm },
|
9968
|
+
md: { value: tokens23__namespace.default.size["border-radius"].md },
|
9969
|
+
lg: { value: tokens23__namespace.default.size["border-radius"].lg },
|
9970
|
+
xl: { value: tokens23__namespace.default.size["border-radius"].xl },
|
9971
|
+
"2xl": { value: tokens23__namespace.default.size["border-radius"]["2xl"] },
|
10233
9972
|
round: { value: "50%" }
|
10234
9973
|
});
|
10235
9974
|
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:
|
9975
|
+
0: { value: tokens23__namespace.default.size.spacing["0"] },
|
9976
|
+
0.5: { value: tokens23__namespace.default.size.spacing["0.5"] },
|
9977
|
+
1: { value: tokens23__namespace.default.size.spacing["1"] },
|
9978
|
+
1.5: { value: tokens23__namespace.default.size.spacing["1.5"] },
|
9979
|
+
2: { value: tokens23__namespace.default.size.spacing["2"] },
|
9980
|
+
3: { value: tokens23__namespace.default.size.spacing["3"] },
|
9981
|
+
4: { value: tokens23__namespace.default.size.spacing["4"] },
|
9982
|
+
5: { value: tokens23__namespace.default.size.spacing["5"] },
|
9983
|
+
6: { value: tokens23__namespace.default.size.spacing["6"] },
|
9984
|
+
7: { value: tokens23__namespace.default.size.spacing["7"] },
|
9985
|
+
8: { value: tokens23__namespace.default.size.spacing["8"] },
|
9986
|
+
9: { value: tokens23__namespace.default.size.spacing["9"] },
|
9987
|
+
10: { value: tokens23__namespace.default.size.spacing["10"] },
|
9988
|
+
11: { value: tokens23__namespace.default.size.spacing["11"] },
|
9989
|
+
12: { value: tokens23__namespace.default.size.spacing["12"] }
|
10251
9990
|
});
|
10252
9991
|
|
10253
9992
|
// src/theme/tokens/sizes.ts
|
@@ -10284,10 +10023,10 @@ var namedSizes = react.defineTokens.sizes({
|
|
10284
10023
|
});
|
10285
10024
|
var container = react.defineTokens.sizes({
|
10286
10025
|
base: { value: 0 },
|
10287
|
-
sm: { value:
|
10288
|
-
md: { value:
|
10289
|
-
lg: { value:
|
10290
|
-
xl: { value:
|
10026
|
+
sm: { value: tokens23__namespace.default.size.breakpoint.sm },
|
10027
|
+
md: { value: tokens23__namespace.default.size.breakpoint.md },
|
10028
|
+
lg: { value: tokens23__namespace.default.size.breakpoint.lg },
|
10029
|
+
xl: { value: tokens23__namespace.default.size.breakpoint.xl }
|
10291
10030
|
});
|
10292
10031
|
var sizes = {
|
10293
10032
|
...largeSizes,
|
@@ -10296,22 +10035,22 @@ var sizes = {
|
|
10296
10035
|
container
|
10297
10036
|
};
|
10298
10037
|
var zIndex = react.defineTokens.zIndex({
|
10299
|
-
hide: { value:
|
10038
|
+
hide: { value: tokens23__namespace.default.depth["z-index"].hide },
|
10300
10039
|
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:
|
10040
|
+
base: { value: tokens23__namespace.default.depth["z-index"].base },
|
10041
|
+
docked: { value: tokens23__namespace.default.depth["z-index"].docked },
|
10042
|
+
dropdown: { value: tokens23__namespace.default.depth["z-index"].dropdown },
|
10043
|
+
sticky: { value: tokens23__namespace.default.depth["z-index"].sticky },
|
10044
|
+
banner: { value: tokens23__namespace.default.depth["z-index"].banner },
|
10045
|
+
overlay: { value: tokens23__namespace.default.depth["z-index"].overlay },
|
10046
|
+
modal: { value: tokens23__namespace.default.depth["z-index"].modal },
|
10047
|
+
popover: { value: tokens23__namespace.default.depth["z-index"].popover },
|
10048
|
+
skipLink: { value: tokens23__namespace.default.depth["z-index"].skipLink },
|
10049
|
+
toast: { value: tokens23__namespace.default.depth["z-index"].toast }
|
10311
10050
|
});
|
10312
10051
|
|
10313
10052
|
// src/theme/tokens/index.ts
|
10314
|
-
var
|
10053
|
+
var tokens21 = {
|
10315
10054
|
aspectRatios,
|
10316
10055
|
animations,
|
10317
10056
|
blurs,
|
@@ -10380,10 +10119,10 @@ var animationStyles = react.defineAnimationStyles({
|
|
10380
10119
|
});
|
10381
10120
|
var breakpoints = {
|
10382
10121
|
base: "0px",
|
10383
|
-
sm:
|
10384
|
-
md:
|
10385
|
-
lg:
|
10386
|
-
xl:
|
10122
|
+
sm: tokens23__namespace.default.size.breakpoint.sm,
|
10123
|
+
md: tokens23__namespace.default.size.breakpoint.md,
|
10124
|
+
lg: tokens23__namespace.default.size.breakpoint.lg,
|
10125
|
+
xl: tokens23__namespace.default.size.breakpoint.xl
|
10387
10126
|
};
|
10388
10127
|
|
10389
10128
|
// src/theme/tokens/config.ts
|
@@ -10673,85 +10412,85 @@ var textStyles = react.defineTextStyles({
|
|
10673
10412
|
xxl: {
|
10674
10413
|
value: {
|
10675
10414
|
fontSize: [
|
10676
|
-
|
10415
|
+
tokens23__namespace.default.font.style.xxl["font-size"].mobile,
|
10677
10416
|
null,
|
10678
10417
|
null,
|
10679
|
-
|
10418
|
+
tokens23__namespace.default.font.style.xxl["font-size"].desktop
|
10680
10419
|
],
|
10681
|
-
fontFamily:
|
10682
|
-
lineHeight:
|
10420
|
+
fontFamily: tokens23__namespace.default.font.style.xxl["font-family"],
|
10421
|
+
lineHeight: tokens23__namespace.default.font.style.xxl["line-height"]
|
10683
10422
|
}
|
10684
10423
|
},
|
10685
10424
|
"xl-display": {
|
10686
10425
|
value: {
|
10687
10426
|
fontSize: [
|
10688
|
-
|
10427
|
+
tokens23__namespace.default.font.style["xl-display"]["font-size"].mobile,
|
10689
10428
|
null,
|
10690
10429
|
null,
|
10691
|
-
|
10430
|
+
tokens23__namespace.default.font.style["xl-display"]["font-size"].desktop
|
10692
10431
|
],
|
10693
|
-
fontFamily:
|
10694
|
-
lineHeight:
|
10432
|
+
fontFamily: tokens23__namespace.default.font.style["xl-display"]["font-family"],
|
10433
|
+
lineHeight: tokens23__namespace.default.font.style["xl-display"]["line-height"]
|
10695
10434
|
}
|
10696
10435
|
},
|
10697
10436
|
"xl-sans": {
|
10698
10437
|
value: {
|
10699
10438
|
fontSize: [
|
10700
|
-
|
10439
|
+
tokens23__namespace.default.font.style["xl-sans"]["font-size"].mobile,
|
10701
10440
|
null,
|
10702
10441
|
null,
|
10703
|
-
|
10442
|
+
tokens23__namespace.default.font.style["xl-sans"]["font-size"].desktop
|
10704
10443
|
],
|
10705
|
-
fontFamily:
|
10706
|
-
lineHeight:
|
10444
|
+
fontFamily: tokens23__namespace.default.font.style["xl-sans"]["font-family"],
|
10445
|
+
lineHeight: tokens23__namespace.default.font.style["xl-sans"]["line-height"]
|
10707
10446
|
}
|
10708
10447
|
},
|
10709
10448
|
lg: {
|
10710
10449
|
value: {
|
10711
10450
|
fontSize: [
|
10712
|
-
|
10451
|
+
tokens23__namespace.default.font.style.lg["font-size"].mobile,
|
10713
10452
|
null,
|
10714
10453
|
null,
|
10715
|
-
|
10454
|
+
tokens23__namespace.default.font.style.lg["font-size"].desktop
|
10716
10455
|
],
|
10717
|
-
fontFamily:
|
10718
|
-
lineHeight:
|
10456
|
+
fontFamily: tokens23__namespace.default.font.style.lg["font-family"],
|
10457
|
+
lineHeight: tokens23__namespace.default.font.style.lg["line-height"]
|
10719
10458
|
}
|
10720
10459
|
},
|
10721
10460
|
md: {
|
10722
10461
|
value: {
|
10723
10462
|
fontSize: [
|
10724
|
-
|
10463
|
+
tokens23__namespace.default.font.style.md["font-size"].mobile,
|
10725
10464
|
null,
|
10726
10465
|
null,
|
10727
|
-
|
10466
|
+
tokens23__namespace.default.font.style.md["font-size"].desktop
|
10728
10467
|
],
|
10729
|
-
fontFamily:
|
10730
|
-
lineHeight:
|
10468
|
+
fontFamily: tokens23__namespace.default.font.style.md["font-family"],
|
10469
|
+
lineHeight: tokens23__namespace.default.font.style.md["line-height"]
|
10731
10470
|
}
|
10732
10471
|
},
|
10733
10472
|
sm: {
|
10734
10473
|
value: {
|
10735
10474
|
fontSize: [
|
10736
|
-
|
10475
|
+
tokens23__namespace.default.font.style.sm["font-size"].mobile,
|
10737
10476
|
null,
|
10738
10477
|
null,
|
10739
|
-
|
10478
|
+
tokens23__namespace.default.font.style.sm["font-size"].desktop
|
10740
10479
|
],
|
10741
|
-
fontFamily:
|
10742
|
-
lineHeight:
|
10480
|
+
fontFamily: tokens23__namespace.default.font.style.sm["font-family"],
|
10481
|
+
lineHeight: tokens23__namespace.default.font.style.sm["line-height"]
|
10743
10482
|
}
|
10744
10483
|
},
|
10745
10484
|
xs: {
|
10746
10485
|
value: {
|
10747
10486
|
fontSize: [
|
10748
|
-
|
10487
|
+
tokens23__namespace.default.font.style.xs["font-size"].mobile,
|
10749
10488
|
null,
|
10750
10489
|
null,
|
10751
|
-
|
10490
|
+
tokens23__namespace.default.font.style.xs["font-size"].desktop
|
10752
10491
|
],
|
10753
|
-
fontFamily:
|
10754
|
-
lineHeight:
|
10492
|
+
fontFamily: tokens23__namespace.default.font.style.xs["font-family"],
|
10493
|
+
lineHeight: tokens23__namespace.default.font.style.xs["line-height"]
|
10755
10494
|
}
|
10756
10495
|
}
|
10757
10496
|
});
|
@@ -10762,7 +10501,7 @@ var generateTheme = (brand) => {
|
|
10762
10501
|
theme: {
|
10763
10502
|
breakpoints,
|
10764
10503
|
keyframes,
|
10765
|
-
tokens:
|
10504
|
+
tokens: tokens21,
|
10766
10505
|
semanticTokens: semanticTokens[brand],
|
10767
10506
|
recipes,
|
10768
10507
|
slotRecipes,
|
@@ -10999,7 +10738,7 @@ Object.defineProperty(exports, "Time", {
|
|
10999
10738
|
enumerable: true,
|
11000
10739
|
get: function () { return date.Time; }
|
11001
10740
|
});
|
11002
|
-
exports.tokens =
|
10741
|
+
exports.tokens = tokens23__namespace;
|
11003
10742
|
exports.Accordion = Accordion;
|
11004
10743
|
exports.AccordionItem = AccordionItem;
|
11005
10744
|
exports.AccordionItemContent = AccordionItemContent;
|