@vygruppen/spor-react 13.4.1 → 13.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +12 -12
- package/.turbo/turbo-postinstall.log +3 -4
- package/CHANGELOG.md +9 -0
- package/__tests__/accordion.test.tsx +110 -0
- package/dist/index.cjs +180 -180
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +122 -2
- package/dist/index.d.ts +122 -2
- package/dist/index.mjs +180 -180
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/dialog/Dialog.tsx +3 -1
- package/src/input/AttachedInputs.tsx +24 -11
- package/src/theme/slot-recipes/breadcrumb.ts +3 -6
- package/src/typography/Badge.tsx +9 -1
package/dist/index.mjs
CHANGED
|
@@ -19,9 +19,9 @@ import { LuMoon, LuSun } from 'react-icons/lu';
|
|
|
19
19
|
import { useSwipeable } from 'react-swipeable';
|
|
20
20
|
import { getSupportedCallingCodes } from 'awesome-phonenumber';
|
|
21
21
|
import { Global } from '@emotion/react';
|
|
22
|
-
import
|
|
23
|
-
import * as
|
|
24
|
-
export {
|
|
22
|
+
import tokens21__default from '@vygruppen/spor-design-tokens';
|
|
23
|
+
import * as tokens21 from '@vygruppen/spor-design-tokens';
|
|
24
|
+
export { tokens21 as tokens };
|
|
25
25
|
import tokens4 from '@vygruppen/spor-design-tokens/raw-tokens';
|
|
26
26
|
import { comboboxAnatomy as comboboxAnatomy$1 } from '@ark-ui/react';
|
|
27
27
|
import { createAnatomy } from '@ark-ui/react/anatomy';
|
|
@@ -3064,11 +3064,12 @@ var DialogContent = ({
|
|
|
3064
3064
|
portalled = true,
|
|
3065
3065
|
portalRef,
|
|
3066
3066
|
backdrop = true,
|
|
3067
|
+
positionerProps,
|
|
3067
3068
|
...rest
|
|
3068
3069
|
} = props;
|
|
3069
3070
|
return /* @__PURE__ */ jsxs(Portal, { disabled: !portalled, container: portalRef, children: [
|
|
3070
3071
|
backdrop && /* @__PURE__ */ jsx(Dialog.Backdrop, {}),
|
|
3071
|
-
/* @__PURE__ */ jsx(Dialog.Positioner, { children: /* @__PURE__ */ jsx(Dialog.Content, { ref, ...rest, asChild: false, children }) })
|
|
3072
|
+
/* @__PURE__ */ jsx(Dialog.Positioner, { ...positionerProps, children: /* @__PURE__ */ jsx(Dialog.Content, { ref, ...rest, asChild: false, children }) })
|
|
3072
3073
|
] });
|
|
3073
3074
|
};
|
|
3074
3075
|
var DialogCloseTrigger = function DialogCloseTrigger2({
|
|
@@ -3344,6 +3345,7 @@ var ErrorSummaryItem = ({
|
|
|
3344
3345
|
};
|
|
3345
3346
|
var AttachedInputs = ({
|
|
3346
3347
|
ref,
|
|
3348
|
+
flipButtonProps,
|
|
3347
3349
|
...props
|
|
3348
3350
|
}) => {
|
|
3349
3351
|
const recipe = useRecipe({ key: "attachedInputs" });
|
|
@@ -3372,7 +3374,11 @@ var AttachedInputs = ({
|
|
|
3372
3374
|
variant: "tertiary",
|
|
3373
3375
|
size: ["xs", null, "sm"],
|
|
3374
3376
|
"aria-label": flipAriaLabel,
|
|
3375
|
-
onClick: onFlip
|
|
3377
|
+
onClick: onFlip,
|
|
3378
|
+
position: "absolute",
|
|
3379
|
+
bg: "bg",
|
|
3380
|
+
outlineWidth: "1px",
|
|
3381
|
+
...flipButtonProps
|
|
3376
3382
|
}
|
|
3377
3383
|
)
|
|
3378
3384
|
] });
|
|
@@ -3381,23 +3387,20 @@ var SwitchButton = chakra(
|
|
|
3381
3387
|
IconButton,
|
|
3382
3388
|
defineRecipe({
|
|
3383
3389
|
base: {
|
|
3384
|
-
|
|
3385
|
-
zIndex: "101 !important",
|
|
3386
|
-
// eslint-disable-next-line spor/use-semantic-tokens
|
|
3387
|
-
bg: "bg !important",
|
|
3388
|
-
outlineWidth: "1px !important",
|
|
3390
|
+
zIndex: "101",
|
|
3389
3391
|
_focus: {
|
|
3390
|
-
outlineOffset: "0px
|
|
3392
|
+
outlineOffset: "0px",
|
|
3393
|
+
alignItems: "center"
|
|
3391
3394
|
}
|
|
3392
3395
|
},
|
|
3393
3396
|
variants: {
|
|
3394
3397
|
orientation: {
|
|
3395
3398
|
horizontal: {
|
|
3396
|
-
top: "calc(50% -
|
|
3397
|
-
right: "calc(50% -
|
|
3399
|
+
top: "calc(50% - 1.1rem)",
|
|
3400
|
+
right: "calc(50% - 1.1rem)"
|
|
3398
3401
|
},
|
|
3399
3402
|
vertical: {
|
|
3400
|
-
top: "calc(50% -
|
|
3403
|
+
top: "calc(50% - 1.1rem)",
|
|
3401
3404
|
right: "3rem",
|
|
3402
3405
|
transform: "rotate(90deg)"
|
|
3403
3406
|
}
|
|
@@ -6549,7 +6552,7 @@ var texts26 = createTexts({
|
|
|
6549
6552
|
});
|
|
6550
6553
|
var fontFaces = `
|
|
6551
6554
|
@font-face {
|
|
6552
|
-
font-family: ${
|
|
6555
|
+
font-family: ${tokens21__default.asset.font["vy-sans"]["light"].name};
|
|
6553
6556
|
src: url("https://www.vy.no/styles/font/VySans-Light.woff2") format("woff2"),
|
|
6554
6557
|
url("https://www.vy.no/styles/font/VySans-Light.woff") format("woff");
|
|
6555
6558
|
font-style: normal;
|
|
@@ -6557,7 +6560,7 @@ var fontFaces = `
|
|
|
6557
6560
|
font-display: swap
|
|
6558
6561
|
}
|
|
6559
6562
|
@font-face {
|
|
6560
|
-
font-family: ${
|
|
6563
|
+
font-family: ${tokens21__default.asset.font["vy-sans"]["light-italic"].name};
|
|
6561
6564
|
src: url("https://www.vy.no/styles/font/VySans-LightItalic.woff2")
|
|
6562
6565
|
format("woff2"),
|
|
6563
6566
|
url("https://www.vy.no/styles/font/VySans-LightItalic.woff") format("woff");
|
|
@@ -6566,7 +6569,7 @@ var fontFaces = `
|
|
|
6566
6569
|
font-display: swap
|
|
6567
6570
|
}
|
|
6568
6571
|
@font-face {
|
|
6569
|
-
font-family: ${
|
|
6572
|
+
font-family: ${tokens21__default.asset.font["vy-sans"]["medium"].name};
|
|
6570
6573
|
src: url("https://www.vy.no/styles/font/VySans-Regular.woff2") format("woff2"),
|
|
6571
6574
|
url("https://www.vy.no/styles/font/VySans-Regular.woff") format("woff");
|
|
6572
6575
|
font-style: normal;
|
|
@@ -6574,7 +6577,7 @@ var fontFaces = `
|
|
|
6574
6577
|
font-display: swap
|
|
6575
6578
|
}
|
|
6576
6579
|
@font-face {
|
|
6577
|
-
font-family: ${
|
|
6580
|
+
font-family: ${tokens21__default.asset.font["vy-sans"]["medium-italic"].name};
|
|
6578
6581
|
src: url("https://www.vy.no/styles/font/VySans-RegularItalic.woff2")
|
|
6579
6582
|
format("woff2"),
|
|
6580
6583
|
url("https://www.vy.no/styles/font/VySans-RegularItalic.woff")
|
|
@@ -6584,7 +6587,7 @@ var fontFaces = `
|
|
|
6584
6587
|
font-display: swap
|
|
6585
6588
|
}
|
|
6586
6589
|
@font-face {
|
|
6587
|
-
font-family: ${
|
|
6590
|
+
font-family: ${tokens21__default.asset.font["vy-sans"]["bold"].name};
|
|
6588
6591
|
src: url("https://www.vy.no/styles/font/VySans-Bold.woff2") format("woff2"),
|
|
6589
6592
|
url("https://www.vy.no/styles/font/VySans-Bold.woff") format("woff");
|
|
6590
6593
|
font-style: normal;
|
|
@@ -6592,7 +6595,7 @@ var fontFaces = `
|
|
|
6592
6595
|
font-display: swap
|
|
6593
6596
|
}
|
|
6594
6597
|
@font-face {
|
|
6595
|
-
font-family: ${
|
|
6598
|
+
font-family: ${tokens21__default.asset.font["vy-sans"]["bold-italic"].name};
|
|
6596
6599
|
src: url("https://www.vy.no/styles/font/VySans-BoldItalic.woff2")
|
|
6597
6600
|
format("woff2"),
|
|
6598
6601
|
url("https://www.vy.no/styles/font/VySans-BoldItalic.woff") format("woff");
|
|
@@ -6601,7 +6604,7 @@ var fontFaces = `
|
|
|
6601
6604
|
font-display: swap
|
|
6602
6605
|
}
|
|
6603
6606
|
@font-face {
|
|
6604
|
-
font-family: ${
|
|
6607
|
+
font-family: ${tokens21__default.asset.font["vy-display"].name};
|
|
6605
6608
|
src: url("https://www.vy.no/styles/font/VyDisplay-Medium.woff2")
|
|
6606
6609
|
format("woff2"),
|
|
6607
6610
|
url("https://www.vy.no/styles/font/VyDisplay-Medium.woff") format("woff");
|
|
@@ -7101,7 +7104,7 @@ var buttonRecipe = defineRecipe({
|
|
|
7101
7104
|
background: "surface.disabled"
|
|
7102
7105
|
},
|
|
7103
7106
|
_focus: {
|
|
7104
|
-
outlineOffset:
|
|
7107
|
+
outlineOffset: tokens21__default.size.stroke.md
|
|
7105
7108
|
}
|
|
7106
7109
|
},
|
|
7107
7110
|
variants: {
|
|
@@ -7132,19 +7135,19 @@ var buttonRecipe = defineRecipe({
|
|
|
7132
7135
|
color: "text.core",
|
|
7133
7136
|
outline: "solid",
|
|
7134
7137
|
fontWeight: "normal",
|
|
7135
|
-
outlineWidth:
|
|
7138
|
+
outlineWidth: tokens21__default.size.stroke.sm,
|
|
7136
7139
|
outlineColor: "outline.core",
|
|
7137
7140
|
_hover: {
|
|
7138
|
-
outlineWidth:
|
|
7141
|
+
outlineWidth: tokens21__default.size.stroke.md,
|
|
7139
7142
|
outlineColor: "outline.core.hover",
|
|
7140
7143
|
_active: {
|
|
7141
7144
|
background: "surface.core.active",
|
|
7142
|
-
outlineWidth:
|
|
7145
|
+
outlineWidth: tokens21__default.size.stroke.sm,
|
|
7143
7146
|
outlineColor: "outline.core"
|
|
7144
7147
|
}
|
|
7145
7148
|
},
|
|
7146
7149
|
_focus: {
|
|
7147
|
-
outlineWidth:
|
|
7150
|
+
outlineWidth: tokens21__default.size.stroke.sm
|
|
7148
7151
|
}
|
|
7149
7152
|
},
|
|
7150
7153
|
ghost: {
|
|
@@ -7472,15 +7475,15 @@ var pressableCardRecipe = defineRecipe({
|
|
|
7472
7475
|
},
|
|
7473
7476
|
core: {
|
|
7474
7477
|
outlineColor: "outline.core",
|
|
7475
|
-
outlineWidth:
|
|
7478
|
+
outlineWidth: tokens21__default.size.stroke.sm,
|
|
7476
7479
|
outlineStyle: "solid",
|
|
7477
7480
|
_hover: {
|
|
7478
7481
|
outlineColor: "outline.core.hover",
|
|
7479
|
-
outlineWidth:
|
|
7482
|
+
outlineWidth: tokens21__default.size.stroke.md,
|
|
7480
7483
|
outlineStyle: "solid",
|
|
7481
7484
|
_active: {
|
|
7482
7485
|
backgroundColor: "surface.core.active",
|
|
7483
|
-
outlineWidth:
|
|
7486
|
+
outlineWidth: tokens21__default.size.stroke.sm
|
|
7484
7487
|
}
|
|
7485
7488
|
}
|
|
7486
7489
|
},
|
|
@@ -7706,34 +7709,34 @@ var cargonetColors = defineSemanticTokens.colors({
|
|
|
7706
7709
|
...tokens4.color["cargonet"].color.cargonet
|
|
7707
7710
|
});
|
|
7708
7711
|
var radii = defineSemanticTokens.radii({
|
|
7709
|
-
none: { value:
|
|
7710
|
-
xxs: { value:
|
|
7711
|
-
xs: { value:
|
|
7712
|
-
sm: { value:
|
|
7713
|
-
md: { value:
|
|
7714
|
-
lg: { value:
|
|
7715
|
-
xl: { value:
|
|
7716
|
-
"2xl": { value:
|
|
7712
|
+
none: { value: tokens21__default.size["border-radius"].none },
|
|
7713
|
+
xxs: { value: tokens21__default.size["border-radius"].xxs },
|
|
7714
|
+
xs: { value: tokens21__default.size["border-radius"].xs },
|
|
7715
|
+
sm: { value: tokens21__default.size["border-radius"].sm },
|
|
7716
|
+
md: { value: tokens21__default.size["border-radius"].md },
|
|
7717
|
+
lg: { value: tokens21__default.size["border-radius"].lg },
|
|
7718
|
+
xl: { value: tokens21__default.size["border-radius"].xl },
|
|
7719
|
+
"2xl": { value: tokens21__default.size["border-radius"]["2xl"] },
|
|
7717
7720
|
round: { value: "50%" }
|
|
7718
7721
|
});
|
|
7719
7722
|
var shadows = defineSemanticTokens.shadows({
|
|
7720
7723
|
none: { value: "none" },
|
|
7721
7724
|
sm: {
|
|
7722
7725
|
value: {
|
|
7723
|
-
_light:
|
|
7724
|
-
_dark:
|
|
7726
|
+
_light: tokens21__default.depth.shadow.sm.value._light,
|
|
7727
|
+
_dark: tokens21__default.depth.shadow.sm.value._dark
|
|
7725
7728
|
}
|
|
7726
7729
|
},
|
|
7727
7730
|
md: {
|
|
7728
7731
|
value: {
|
|
7729
|
-
_light:
|
|
7730
|
-
_dark:
|
|
7732
|
+
_light: tokens21__default.depth.shadow.md.value._light,
|
|
7733
|
+
_dark: tokens21__default.depth.shadow.md.value._dark
|
|
7731
7734
|
}
|
|
7732
7735
|
},
|
|
7733
7736
|
lg: {
|
|
7734
7737
|
value: {
|
|
7735
|
-
_light:
|
|
7736
|
-
_dark:
|
|
7738
|
+
_light: tokens21__default.depth.shadow.lg.value._light,
|
|
7739
|
+
_dark: tokens21__default.depth.shadow.lg.value._dark
|
|
7737
7740
|
}
|
|
7738
7741
|
}
|
|
7739
7742
|
});
|
|
@@ -8112,7 +8115,7 @@ var accordionSlotRecipe = defineSlotRecipe({
|
|
|
8112
8115
|
core: {
|
|
8113
8116
|
item: {
|
|
8114
8117
|
outline: "solid",
|
|
8115
|
-
outlineWidth:
|
|
8118
|
+
outlineWidth: tokens21__default.size.stroke.sm,
|
|
8116
8119
|
outlineColor: "outline.core"
|
|
8117
8120
|
},
|
|
8118
8121
|
itemTrigger: {
|
|
@@ -8120,14 +8123,14 @@ var accordionSlotRecipe = defineSlotRecipe({
|
|
|
8120
8123
|
borderBottomRadius: "none"
|
|
8121
8124
|
},
|
|
8122
8125
|
"&:hover": {
|
|
8123
|
-
outlineWidth:
|
|
8126
|
+
outlineWidth: tokens21__default.size.stroke.md,
|
|
8124
8127
|
outlineColor: "outline.core",
|
|
8125
8128
|
outline: "2px solid",
|
|
8126
8129
|
outlineOffset: 0
|
|
8127
8130
|
},
|
|
8128
8131
|
"&:active": {
|
|
8129
8132
|
backgroundColor: "surface.core.active",
|
|
8130
|
-
outlineWidth:
|
|
8133
|
+
outlineWidth: tokens21__default.size.stroke.sm,
|
|
8131
8134
|
outline: "none"
|
|
8132
8135
|
}
|
|
8133
8136
|
}
|
|
@@ -8145,7 +8148,7 @@ var accordionSlotRecipe = defineSlotRecipe({
|
|
|
8145
8148
|
floating: {
|
|
8146
8149
|
item: {
|
|
8147
8150
|
outline: "1px solid",
|
|
8148
|
-
outlineWidth:
|
|
8151
|
+
outlineWidth: tokens21__default.size.stroke.sm,
|
|
8149
8152
|
boxShadow: "sm",
|
|
8150
8153
|
outlineColor: "outline.floating"
|
|
8151
8154
|
},
|
|
@@ -8154,14 +8157,14 @@ var accordionSlotRecipe = defineSlotRecipe({
|
|
|
8154
8157
|
borderBottomRadius: "none"
|
|
8155
8158
|
},
|
|
8156
8159
|
"&:hover": {
|
|
8157
|
-
outlineWidth:
|
|
8160
|
+
outlineWidth: tokens21__default.size.stroke.md,
|
|
8158
8161
|
outline: "1px solid",
|
|
8159
8162
|
outlineColor: "outline.floating.hover",
|
|
8160
8163
|
outlineOffset: 1
|
|
8161
8164
|
},
|
|
8162
8165
|
"&:active": {
|
|
8163
8166
|
backgroundColor: "surface.floating.active",
|
|
8164
|
-
outlineWidth:
|
|
8167
|
+
outlineWidth: tokens21__default.size.stroke.sm,
|
|
8165
8168
|
outline: "none"
|
|
8166
8169
|
}
|
|
8167
8170
|
}
|
|
@@ -8566,10 +8569,10 @@ var breadcrumbSlotRecipe = defineSlotRecipe({
|
|
|
8566
8569
|
},
|
|
8567
8570
|
link: {
|
|
8568
8571
|
cursor: "pointer",
|
|
8569
|
-
borderRadius: "xs"
|
|
8572
|
+
borderRadius: "xs",
|
|
8573
|
+
textDecoration: "underline"
|
|
8570
8574
|
},
|
|
8571
8575
|
currentLink: {
|
|
8572
|
-
borderRadius: "xs",
|
|
8573
8576
|
cursor: "default"
|
|
8574
8577
|
},
|
|
8575
8578
|
separator: {
|
|
@@ -8583,12 +8586,9 @@ var breadcrumbSlotRecipe = defineSlotRecipe({
|
|
|
8583
8586
|
core: {
|
|
8584
8587
|
link: {
|
|
8585
8588
|
_hover: {
|
|
8586
|
-
|
|
8587
|
-
outlineWidth: tokens22__default.size.stroke.md,
|
|
8588
|
-
outlineStyle: "solid",
|
|
8589
|
+
textDecoration: "none",
|
|
8589
8590
|
_active: {
|
|
8590
|
-
backgroundColor: "surface.core.active"
|
|
8591
|
-
outline: "none"
|
|
8591
|
+
backgroundColor: "surface.core.active"
|
|
8592
8592
|
}
|
|
8593
8593
|
}
|
|
8594
8594
|
}
|
|
@@ -8670,10 +8670,10 @@ var checkboxSlotRecipe = defineSlotRecipe({
|
|
|
8670
8670
|
_focus: {
|
|
8671
8671
|
outlineStyle: "solid",
|
|
8672
8672
|
outlineColor: "outline.focus",
|
|
8673
|
-
outlineOffset:
|
|
8674
|
-
outlineWidth:
|
|
8673
|
+
outlineOffset: tokens21__default.size.stroke.md,
|
|
8674
|
+
outlineWidth: tokens21__default.size.stroke.md,
|
|
8675
8675
|
borderColor: "outline.core",
|
|
8676
|
-
borderWidth:
|
|
8676
|
+
borderWidth: tokens21__default.size.stroke.md
|
|
8677
8677
|
}
|
|
8678
8678
|
},
|
|
8679
8679
|
label: {
|
|
@@ -9876,7 +9876,7 @@ var floatingActionButtonSlotRecipe = defineSlotRecipe({
|
|
|
9876
9876
|
position: "fixed",
|
|
9877
9877
|
zIndex: "dropdown",
|
|
9878
9878
|
_focus: {
|
|
9879
|
-
outlineOffset:
|
|
9879
|
+
outlineOffset: tokens21__default.size.stroke.lg,
|
|
9880
9880
|
outlineColor: "outline.focus"
|
|
9881
9881
|
},
|
|
9882
9882
|
_disabled: {
|
|
@@ -11188,25 +11188,25 @@ var radioCardSlotRecipe = defineSlotRecipe({
|
|
|
11188
11188
|
core: {
|
|
11189
11189
|
item: {
|
|
11190
11190
|
outlineColor: "outline.core",
|
|
11191
|
-
outlineWidth:
|
|
11191
|
+
outlineWidth: tokens21__default.size.stroke.sm,
|
|
11192
11192
|
outlineStyle: "solid",
|
|
11193
11193
|
_hover: {
|
|
11194
11194
|
outlineColor: "outline.core.hover",
|
|
11195
|
-
outlineWidth:
|
|
11195
|
+
outlineWidth: tokens21__default.size.stroke.md,
|
|
11196
11196
|
outlineStyle: "solid",
|
|
11197
11197
|
_active: {
|
|
11198
11198
|
backgroundColor: "surface.core.active",
|
|
11199
|
-
outlineWidth:
|
|
11199
|
+
outlineWidth: tokens21__default.size.stroke.sm
|
|
11200
11200
|
}
|
|
11201
11201
|
},
|
|
11202
11202
|
_checked: {
|
|
11203
11203
|
outlineColor: "outline.focus",
|
|
11204
|
-
outlineWidth:
|
|
11204
|
+
outlineWidth: tokens21__default.size.stroke.md,
|
|
11205
11205
|
outlineStyle: "solid",
|
|
11206
11206
|
backgroundColor: "surface.core.active",
|
|
11207
11207
|
_focusVisible: {
|
|
11208
11208
|
outlineStyle: "double",
|
|
11209
|
-
outlineWidth: `calc(3 * ${
|
|
11209
|
+
outlineWidth: `calc(3 * ${tokens21__default.size.stroke.md})`
|
|
11210
11210
|
// space for double outline
|
|
11211
11211
|
}
|
|
11212
11212
|
}
|
|
@@ -11231,12 +11231,12 @@ var radioCardSlotRecipe = defineSlotRecipe({
|
|
|
11231
11231
|
},
|
|
11232
11232
|
_checked: {
|
|
11233
11233
|
outlineColor: "outline.focus",
|
|
11234
|
-
outlineWidth:
|
|
11234
|
+
outlineWidth: tokens21__default.size.stroke.md,
|
|
11235
11235
|
outlineStyle: "solid",
|
|
11236
11236
|
backgroundColor: "surface.core.active",
|
|
11237
11237
|
_focusVisible: {
|
|
11238
11238
|
outlineStyle: "double",
|
|
11239
|
-
outlineWidth: `calc(3 * ${
|
|
11239
|
+
outlineWidth: `calc(3 * ${tokens21__default.size.stroke.md})`
|
|
11240
11240
|
// space for double outline
|
|
11241
11241
|
}
|
|
11242
11242
|
}
|
|
@@ -12275,22 +12275,22 @@ var borders = defineTokens.borders({
|
|
|
12275
12275
|
value: "0"
|
|
12276
12276
|
},
|
|
12277
12277
|
sm: {
|
|
12278
|
-
value: `${
|
|
12278
|
+
value: `${tokens21__default.size.stroke.sm} solid`
|
|
12279
12279
|
},
|
|
12280
12280
|
"sm-dashed": {
|
|
12281
|
-
value: `${
|
|
12281
|
+
value: `${tokens21__default.size.stroke.sm} dashed`
|
|
12282
12282
|
},
|
|
12283
12283
|
md: {
|
|
12284
|
-
value: `${
|
|
12284
|
+
value: `${tokens21__default.size.stroke.md} solid`
|
|
12285
12285
|
},
|
|
12286
12286
|
"md-dashed": {
|
|
12287
|
-
value: `${
|
|
12287
|
+
value: `${tokens21__default.size.stroke.md} dashed`
|
|
12288
12288
|
},
|
|
12289
12289
|
lg: {
|
|
12290
|
-
value: `${
|
|
12290
|
+
value: `${tokens21__default.size.stroke.lg} solid`
|
|
12291
12291
|
},
|
|
12292
12292
|
"lg-dashed": {
|
|
12293
|
-
value: `${
|
|
12293
|
+
value: `${tokens21__default.size.stroke.lg} dashed`
|
|
12294
12294
|
}
|
|
12295
12295
|
});
|
|
12296
12296
|
var colors = defineTokens.colors({
|
|
@@ -12362,33 +12362,33 @@ var easings = defineTokens.easings({
|
|
|
12362
12362
|
}
|
|
12363
12363
|
});
|
|
12364
12364
|
var fontSizes = defineTokens.fontSizes({
|
|
12365
|
-
"2xs": { value:
|
|
12366
|
-
xs: { value:
|
|
12367
|
-
sm: { value:
|
|
12368
|
-
md: { value:
|
|
12369
|
-
lg: { value:
|
|
12370
|
-
xl: { value:
|
|
12371
|
-
"2xl": { value:
|
|
12372
|
-
"3xl": { value:
|
|
12365
|
+
"2xs": { value: tokens21__default.size.font.xs.mobile },
|
|
12366
|
+
xs: { value: tokens21__default.size.font.sm.mobile },
|
|
12367
|
+
sm: { value: tokens21__default.size.font.md.mobile },
|
|
12368
|
+
md: { value: tokens21__default.size.font.lg.mobile },
|
|
12369
|
+
lg: { value: tokens21__default.size.font.xl.mobile },
|
|
12370
|
+
xl: { value: tokens21__default.size.font.xxl.mobile },
|
|
12371
|
+
"2xl": { value: tokens21__default.size.font.xl.desktop },
|
|
12372
|
+
"3xl": { value: tokens21__default.size.font.xxl.desktop },
|
|
12373
12373
|
mobile: {
|
|
12374
|
-
"2xs": { value:
|
|
12375
|
-
xs: { value:
|
|
12376
|
-
sm: { value:
|
|
12377
|
-
md: { value:
|
|
12378
|
-
"md-lg": { value:
|
|
12379
|
-
lg: { value:
|
|
12380
|
-
xl: { value:
|
|
12381
|
-
xxl: { value:
|
|
12374
|
+
"2xs": { value: tokens21__default.size.font["2xs"].mobile },
|
|
12375
|
+
xs: { value: tokens21__default.size.font.xs.mobile },
|
|
12376
|
+
sm: { value: tokens21__default.size.font.sm.mobile },
|
|
12377
|
+
md: { value: tokens21__default.size.font.md.mobile },
|
|
12378
|
+
"md-lg": { value: tokens21__default.size.font["md-lg"].mobile },
|
|
12379
|
+
lg: { value: tokens21__default.size.font.lg.mobile },
|
|
12380
|
+
xl: { value: tokens21__default.size.font.xl.mobile },
|
|
12381
|
+
xxl: { value: tokens21__default.size.font.xxl.mobile }
|
|
12382
12382
|
},
|
|
12383
12383
|
desktop: {
|
|
12384
|
-
"2xs": { value:
|
|
12385
|
-
xs: { value:
|
|
12386
|
-
sm: { value:
|
|
12387
|
-
md: { value:
|
|
12388
|
-
"md-lg": { value:
|
|
12389
|
-
lg: { value:
|
|
12390
|
-
xl: { value:
|
|
12391
|
-
xxl: { value:
|
|
12384
|
+
"2xs": { value: tokens21__default.size.font["2xs"].desktop },
|
|
12385
|
+
xs: { value: tokens21__default.size.font.xs.desktop },
|
|
12386
|
+
sm: { value: tokens21__default.size.font.sm.desktop },
|
|
12387
|
+
md: { value: tokens21__default.size.font.md.desktop },
|
|
12388
|
+
"md-lg": { value: tokens21__default.size.font["md-lg"].desktop },
|
|
12389
|
+
lg: { value: tokens21__default.size.font.lg.desktop },
|
|
12390
|
+
xl: { value: tokens21__default.size.font.xl.desktop },
|
|
12391
|
+
xxl: { value: tokens21__default.size.font.xxl.desktop }
|
|
12392
12392
|
}
|
|
12393
12393
|
});
|
|
12394
12394
|
var fontWeights = defineTokens.fontWeights({
|
|
@@ -12421,9 +12421,9 @@ var fontWeights = defineTokens.fontWeights({
|
|
|
12421
12421
|
}
|
|
12422
12422
|
});
|
|
12423
12423
|
var fonts = defineTokens.fonts({
|
|
12424
|
-
body: { value: `${
|
|
12425
|
-
heading: { value: `${
|
|
12426
|
-
mono: { value: `${
|
|
12424
|
+
body: { value: `${tokens21__default.font.family.body}, arial, sans-serif` },
|
|
12425
|
+
heading: { value: `${tokens21__default.font.family.heading}, arial, sans-serif` },
|
|
12426
|
+
mono: { value: `${tokens21__default.font.family.monospace}, monospace` }
|
|
12427
12427
|
});
|
|
12428
12428
|
var letterSpacings = defineTokens.letterSpacings({
|
|
12429
12429
|
tighter: {
|
|
@@ -12460,32 +12460,32 @@ var lineHeights = defineTokens.lineHeights({
|
|
|
12460
12460
|
}
|
|
12461
12461
|
});
|
|
12462
12462
|
var radii2 = defineTokens.radii({
|
|
12463
|
-
none: { value:
|
|
12464
|
-
xs: { value:
|
|
12465
|
-
sm: { value:
|
|
12466
|
-
md: { value:
|
|
12467
|
-
lg: { value:
|
|
12468
|
-
xl: { value:
|
|
12469
|
-
"2xl": { value:
|
|
12463
|
+
none: { value: tokens21__default.size["border-radius"].none },
|
|
12464
|
+
xs: { value: tokens21__default.size["border-radius"].xs },
|
|
12465
|
+
sm: { value: tokens21__default.size["border-radius"].sm },
|
|
12466
|
+
md: { value: tokens21__default.size["border-radius"].md },
|
|
12467
|
+
lg: { value: tokens21__default.size["border-radius"].lg },
|
|
12468
|
+
xl: { value: tokens21__default.size["border-radius"].xl },
|
|
12469
|
+
"2xl": { value: tokens21__default.size["border-radius"]["2xl"] },
|
|
12470
12470
|
round: { value: "50%" }
|
|
12471
12471
|
});
|
|
12472
12472
|
var spacing = defineTokens.spacing({
|
|
12473
|
-
0: { value:
|
|
12474
|
-
0.5: { value:
|
|
12475
|
-
1: { value:
|
|
12476
|
-
1.5: { value:
|
|
12477
|
-
2: { value:
|
|
12478
|
-
3: { value:
|
|
12479
|
-
4: { value:
|
|
12480
|
-
5: { value:
|
|
12481
|
-
6: { value:
|
|
12482
|
-
7: { value:
|
|
12483
|
-
8: { value:
|
|
12484
|
-
9: { value:
|
|
12485
|
-
10: { value:
|
|
12486
|
-
11: { value:
|
|
12487
|
-
12: { value:
|
|
12488
|
-
13: { value:
|
|
12473
|
+
0: { value: tokens21__default.size.spacing["0"] },
|
|
12474
|
+
0.5: { value: tokens21__default.size.spacing["0.5"] },
|
|
12475
|
+
1: { value: tokens21__default.size.spacing["1"] },
|
|
12476
|
+
1.5: { value: tokens21__default.size.spacing["1.5"] },
|
|
12477
|
+
2: { value: tokens21__default.size.spacing["2"] },
|
|
12478
|
+
3: { value: tokens21__default.size.spacing["3"] },
|
|
12479
|
+
4: { value: tokens21__default.size.spacing["4"] },
|
|
12480
|
+
5: { value: tokens21__default.size.spacing["5"] },
|
|
12481
|
+
6: { value: tokens21__default.size.spacing["6"] },
|
|
12482
|
+
7: { value: tokens21__default.size.spacing["7"] },
|
|
12483
|
+
8: { value: tokens21__default.size.spacing["8"] },
|
|
12484
|
+
9: { value: tokens21__default.size.spacing["9"] },
|
|
12485
|
+
10: { value: tokens21__default.size.spacing["10"] },
|
|
12486
|
+
11: { value: tokens21__default.size.spacing["11"] },
|
|
12487
|
+
12: { value: tokens21__default.size.spacing["12"] },
|
|
12488
|
+
13: { value: tokens21__default.size.spacing["13"] }
|
|
12489
12489
|
});
|
|
12490
12490
|
|
|
12491
12491
|
// src/theme/tokens/sizes.ts
|
|
@@ -12522,10 +12522,10 @@ var namedSizes = defineTokens.sizes({
|
|
|
12522
12522
|
});
|
|
12523
12523
|
var container = defineTokens.sizes({
|
|
12524
12524
|
base: { value: 0 },
|
|
12525
|
-
sm: { value:
|
|
12526
|
-
md: { value:
|
|
12527
|
-
lg: { value:
|
|
12528
|
-
xl: { value:
|
|
12525
|
+
sm: { value: tokens21__default.size.breakpoint.sm },
|
|
12526
|
+
md: { value: tokens21__default.size.breakpoint.md },
|
|
12527
|
+
lg: { value: tokens21__default.size.breakpoint.lg },
|
|
12528
|
+
xl: { value: tokens21__default.size.breakpoint.xl }
|
|
12529
12529
|
});
|
|
12530
12530
|
var sizes = {
|
|
12531
12531
|
...largeSizes,
|
|
@@ -12534,22 +12534,22 @@ var sizes = {
|
|
|
12534
12534
|
container
|
|
12535
12535
|
};
|
|
12536
12536
|
var zIndex = defineTokens.zIndex({
|
|
12537
|
-
hide: { value:
|
|
12537
|
+
hide: { value: tokens21__default.depth["z-index"].hide },
|
|
12538
12538
|
auto: { value: "auto" },
|
|
12539
|
-
base: { value:
|
|
12540
|
-
docked: { value:
|
|
12541
|
-
dropdown: { value:
|
|
12542
|
-
sticky: { value:
|
|
12543
|
-
banner: { value:
|
|
12544
|
-
overlay: { value:
|
|
12545
|
-
modal: { value:
|
|
12546
|
-
popover: { value:
|
|
12547
|
-
skipLink: { value:
|
|
12548
|
-
toast: { value:
|
|
12539
|
+
base: { value: tokens21__default.depth["z-index"].base },
|
|
12540
|
+
docked: { value: tokens21__default.depth["z-index"].docked },
|
|
12541
|
+
dropdown: { value: tokens21__default.depth["z-index"].dropdown },
|
|
12542
|
+
sticky: { value: tokens21__default.depth["z-index"].sticky },
|
|
12543
|
+
banner: { value: tokens21__default.depth["z-index"].banner },
|
|
12544
|
+
overlay: { value: tokens21__default.depth["z-index"].overlay },
|
|
12545
|
+
modal: { value: tokens21__default.depth["z-index"].modal },
|
|
12546
|
+
popover: { value: tokens21__default.depth["z-index"].popover },
|
|
12547
|
+
skipLink: { value: tokens21__default.depth["z-index"].skipLink },
|
|
12548
|
+
toast: { value: tokens21__default.depth["z-index"].toast }
|
|
12549
12549
|
});
|
|
12550
12550
|
|
|
12551
12551
|
// src/theme/tokens/index.ts
|
|
12552
|
-
var
|
|
12552
|
+
var tokens19 = {
|
|
12553
12553
|
aspectRatios,
|
|
12554
12554
|
animations,
|
|
12555
12555
|
blurs,
|
|
@@ -12617,10 +12617,10 @@ var animationStyles = defineAnimationStyles({
|
|
|
12617
12617
|
}
|
|
12618
12618
|
});
|
|
12619
12619
|
var breakpoints = {
|
|
12620
|
-
sm:
|
|
12621
|
-
md:
|
|
12622
|
-
lg:
|
|
12623
|
-
xl:
|
|
12620
|
+
sm: tokens21__default.size.breakpoint.sm,
|
|
12621
|
+
md: tokens21__default.size.breakpoint.md,
|
|
12622
|
+
lg: tokens21__default.size.breakpoint.lg,
|
|
12623
|
+
xl: tokens21__default.size.breakpoint.xl
|
|
12624
12624
|
};
|
|
12625
12625
|
|
|
12626
12626
|
// src/theme/tokens/config.ts
|
|
@@ -12910,91 +12910,91 @@ var textStyles = defineTextStyles({
|
|
|
12910
12910
|
xxl: {
|
|
12911
12911
|
value: {
|
|
12912
12912
|
fontSize: [
|
|
12913
|
-
|
|
12914
|
-
|
|
12913
|
+
tokens21__default.font.style.xxl["font-size"].mobile,
|
|
12914
|
+
tokens21__default.font.style.xxl["font-size"].desktop
|
|
12915
12915
|
],
|
|
12916
|
-
fontFamily:
|
|
12917
|
-
lineHeight:
|
|
12916
|
+
fontFamily: tokens21__default.font.style.xxl["font-family"],
|
|
12917
|
+
lineHeight: tokens21__default.font.style.xxl["line-height"]
|
|
12918
12918
|
}
|
|
12919
12919
|
},
|
|
12920
12920
|
"xl-display": {
|
|
12921
12921
|
value: {
|
|
12922
12922
|
fontSize: [
|
|
12923
|
-
|
|
12924
|
-
|
|
12923
|
+
tokens21__default.font.style["xl-display"]["font-size"].mobile,
|
|
12924
|
+
tokens21__default.font.style["xl-display"]["font-size"].desktop
|
|
12925
12925
|
],
|
|
12926
|
-
fontFamily:
|
|
12927
|
-
lineHeight:
|
|
12926
|
+
fontFamily: tokens21__default.font.style["xl-display"]["font-family"],
|
|
12927
|
+
lineHeight: tokens21__default.font.style["xl-display"]["line-height"]
|
|
12928
12928
|
}
|
|
12929
12929
|
},
|
|
12930
12930
|
"xl-sans": {
|
|
12931
12931
|
value: {
|
|
12932
12932
|
fontSize: [
|
|
12933
|
-
|
|
12934
|
-
|
|
12933
|
+
tokens21__default.font.style["xl-sans"]["font-size"].mobile,
|
|
12934
|
+
tokens21__default.font.style["xl-sans"]["font-size"].desktop
|
|
12935
12935
|
],
|
|
12936
|
-
fontFamily:
|
|
12937
|
-
lineHeight:
|
|
12936
|
+
fontFamily: tokens21__default.font.style["xl-sans"]["font-family"],
|
|
12937
|
+
lineHeight: tokens21__default.font.style["xl-sans"]["line-height"]
|
|
12938
12938
|
}
|
|
12939
12939
|
},
|
|
12940
12940
|
lg: {
|
|
12941
12941
|
value: {
|
|
12942
12942
|
fontSize: [
|
|
12943
|
-
|
|
12944
|
-
|
|
12943
|
+
tokens21__default.font.style.lg["font-size"].mobile,
|
|
12944
|
+
tokens21__default.font.style.lg["font-size"].desktop
|
|
12945
12945
|
],
|
|
12946
|
-
fontFamily:
|
|
12947
|
-
lineHeight:
|
|
12946
|
+
fontFamily: tokens21__default.font.style.lg["font-family"],
|
|
12947
|
+
lineHeight: tokens21__default.font.style.lg["line-height"]
|
|
12948
12948
|
}
|
|
12949
12949
|
},
|
|
12950
12950
|
"md-lg": {
|
|
12951
12951
|
value: {
|
|
12952
12952
|
fontSize: [
|
|
12953
|
-
|
|
12954
|
-
|
|
12953
|
+
tokens21__default.font.style["md-lg"]["font-size"].mobile,
|
|
12954
|
+
tokens21__default.font.style["md-lg"]["font-size"].desktop
|
|
12955
12955
|
],
|
|
12956
|
-
fontFamily:
|
|
12957
|
-
lineHeight:
|
|
12956
|
+
fontFamily: tokens21__default.font.style["md-lg"]["font-family"],
|
|
12957
|
+
lineHeight: tokens21__default.font.style["md-lg"]["line-height"]
|
|
12958
12958
|
}
|
|
12959
12959
|
},
|
|
12960
12960
|
md: {
|
|
12961
12961
|
value: {
|
|
12962
12962
|
fontSize: [
|
|
12963
|
-
|
|
12964
|
-
|
|
12963
|
+
tokens21__default.font.style.md["font-size"].mobile,
|
|
12964
|
+
tokens21__default.font.style.md["font-size"].desktop
|
|
12965
12965
|
],
|
|
12966
|
-
fontFamily:
|
|
12967
|
-
lineHeight:
|
|
12966
|
+
fontFamily: tokens21__default.font.style.md["font-family"],
|
|
12967
|
+
lineHeight: tokens21__default.font.style.md["line-height"]
|
|
12968
12968
|
}
|
|
12969
12969
|
},
|
|
12970
12970
|
sm: {
|
|
12971
12971
|
value: {
|
|
12972
12972
|
fontSize: [
|
|
12973
|
-
|
|
12974
|
-
|
|
12973
|
+
tokens21__default.font.style.sm["font-size"].mobile,
|
|
12974
|
+
tokens21__default.font.style.sm["font-size"].desktop
|
|
12975
12975
|
],
|
|
12976
|
-
fontFamily:
|
|
12977
|
-
lineHeight:
|
|
12976
|
+
fontFamily: tokens21__default.font.style.sm["font-family"],
|
|
12977
|
+
lineHeight: tokens21__default.font.style.sm["line-height"]
|
|
12978
12978
|
}
|
|
12979
12979
|
},
|
|
12980
12980
|
xs: {
|
|
12981
12981
|
value: {
|
|
12982
12982
|
fontSize: [
|
|
12983
|
-
|
|
12984
|
-
|
|
12983
|
+
tokens21__default.font.style.xs["font-size"].mobile,
|
|
12984
|
+
tokens21__default.font.style.xs["font-size"].desktop
|
|
12985
12985
|
],
|
|
12986
|
-
fontFamily:
|
|
12987
|
-
lineHeight:
|
|
12986
|
+
fontFamily: tokens21__default.font.style.xs["font-family"],
|
|
12987
|
+
lineHeight: tokens21__default.font.style.xs["line-height"]
|
|
12988
12988
|
}
|
|
12989
12989
|
},
|
|
12990
12990
|
"2xs": {
|
|
12991
12991
|
value: {
|
|
12992
12992
|
fontSize: [
|
|
12993
|
-
|
|
12994
|
-
|
|
12993
|
+
tokens21__default.font.style["2xs"]["font-size"].mobile,
|
|
12994
|
+
tokens21__default.font.style["2xs"]["font-size"].desktop
|
|
12995
12995
|
],
|
|
12996
|
-
fontFamily:
|
|
12997
|
-
lineHeight:
|
|
12996
|
+
fontFamily: tokens21__default.font.style["2xs"]["font-family"],
|
|
12997
|
+
lineHeight: tokens21__default.font.style["2xs"]["line-height"]
|
|
12998
12998
|
}
|
|
12999
12999
|
}
|
|
13000
13000
|
});
|
|
@@ -13005,7 +13005,7 @@ var generateTheme = (brand) => {
|
|
|
13005
13005
|
theme: {
|
|
13006
13006
|
breakpoints,
|
|
13007
13007
|
keyframes,
|
|
13008
|
-
tokens:
|
|
13008
|
+
tokens: tokens19,
|
|
13009
13009
|
semanticTokens: semanticTokens[brand],
|
|
13010
13010
|
recipes,
|
|
13011
13011
|
slotRecipes,
|