@vygruppen/spor-react 10.9.1 → 11.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +9 -9
- package/CHANGELOG.md +26 -0
- package/dist/{CountryCodeSelect-KKDPTYI3.mjs → CountryCodeSelect-46H2DYJ5.mjs} +1 -1
- package/dist/{chunk-RK3GOXNY.mjs → chunk-ROHXFJX2.mjs} +387 -330
- package/dist/index.d.mts +47 -21
- package/dist/index.d.ts +47 -21
- package/dist/index.js +729 -671
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/button/Button.tsx +7 -3
- package/src/input/CardSelect.tsx +5 -3
- package/src/input/SearchInput.tsx +22 -2
- package/src/linjetag/TravelTag.tsx +13 -0
- package/src/loader/Skeleton.tsx +7 -1
- package/src/modal/FullScreenDrawer.tsx +0 -2
- package/src/theme/components/alert-expandable.ts +21 -1
- package/src/theme/components/alert-service.ts +6 -2
- package/src/theme/components/card-select.ts +9 -7
- package/src/theme/components/divider.ts +34 -29
- package/src/theme/components/line-icon.ts +3 -0
- package/src/theme/components/travel-tag.ts +5 -4
- package/src/theme/foundations/sizes.ts +6 -4
- package/src/theme/utils/ghost-utils.ts +3 -2
package/dist/index.js
CHANGED
@@ -11,7 +11,7 @@ var sporLoader = require('@vygruppen/spor-loader');
|
|
11
11
|
var framerMotion = require('framer-motion');
|
12
12
|
var date = require('@internationalized/date');
|
13
13
|
var reactSwipeable = require('react-swipeable');
|
14
|
-
var
|
14
|
+
var tokens12 = require('@vygruppen/spor-design-tokens');
|
15
15
|
var react$1 = require('@emotion/react');
|
16
16
|
var deepmerge = require('deepmerge');
|
17
17
|
var themeTools = require('@chakra-ui/theme-tools');
|
@@ -37,7 +37,7 @@ function _interopNamespace(e) {
|
|
37
37
|
}
|
38
38
|
|
39
39
|
var React86__namespace = /*#__PURE__*/_interopNamespace(React86);
|
40
|
-
var
|
40
|
+
var tokens12__namespace = /*#__PURE__*/_interopNamespace(tokens12);
|
41
41
|
var deepmerge__default = /*#__PURE__*/_interopDefault(deepmerge);
|
42
42
|
|
43
43
|
var __create = Object.create;
|
@@ -227,6 +227,7 @@ var init_CardSelect = __esm({
|
|
227
227
|
fontWeight = "normal",
|
228
228
|
...props
|
229
229
|
}, externalRef) => {
|
230
|
+
var _a6;
|
230
231
|
const label = "label" in props ? props.label : props["aria-label"];
|
231
232
|
const internalRef = React86.useRef(null);
|
232
233
|
const triggerRef = externalRef ?? internalRef;
|
@@ -252,7 +253,6 @@ var init_CardSelect = __esm({
|
|
252
253
|
{
|
253
254
|
type: "button",
|
254
255
|
ref: triggerRef,
|
255
|
-
fontWeight: "bold",
|
256
256
|
sx: styles3.trigger,
|
257
257
|
"aria-label": label,
|
258
258
|
...buttonProps,
|
@@ -272,17 +272,20 @@ var init_CardSelect = __esm({
|
|
272
272
|
triggerRef,
|
273
273
|
offset: size2 === "sm" ? 6 : 12,
|
274
274
|
crossOffset,
|
275
|
-
placement
|
275
|
+
placement,
|
276
|
+
containerPadding: 0
|
276
277
|
},
|
277
278
|
/* @__PURE__ */ React86__namespace.default.createElement(
|
278
279
|
exports.StaticCard,
|
279
280
|
{
|
280
281
|
colorScheme: "white",
|
281
|
-
size: "
|
282
|
+
size: "md",
|
283
|
+
fontSize: "xs",
|
282
284
|
border: "sm",
|
283
|
-
borderColor: "
|
285
|
+
borderColor: "silver",
|
284
286
|
sx: styles3.card,
|
285
|
-
...overlayProps
|
287
|
+
...overlayProps,
|
288
|
+
maxWidth: (((_a6 = triggerRef.current) == null ? void 0 : _a6.clientWidth) ?? 1) * 2
|
286
289
|
},
|
287
290
|
/* @__PURE__ */ React86__namespace.default.createElement(Dialog, { "aria-label": label }, children)
|
288
291
|
)
|
@@ -2074,7 +2077,7 @@ var init_RadioGroup = __esm({
|
|
2074
2077
|
);
|
2075
2078
|
}
|
2076
2079
|
});
|
2077
|
-
exports.SearchInput = void 0; var texts6;
|
2080
|
+
exports.SearchInput = void 0; var getOuterProps, texts6;
|
2078
2081
|
var init_SearchInput = __esm({
|
2079
2082
|
"src/input/SearchInput.tsx"() {
|
2080
2083
|
init_input();
|
@@ -2086,12 +2089,13 @@ var init_SearchInput = __esm({
|
|
2086
2089
|
const formControlProps = react.useFormControlContext();
|
2087
2090
|
const autoGeneratedId = React86.useId();
|
2088
2091
|
const inputId = props.id ?? (formControlProps == null ? void 0 : formControlProps.id) ?? autoGeneratedId;
|
2089
|
-
|
2092
|
+
const { outerProps, innerProps } = getOuterProps(props);
|
2093
|
+
return /* @__PURE__ */ React86__namespace.default.createElement(react.InputGroup, { position: "relative", ...outerProps }, /* @__PURE__ */ React86__namespace.default.createElement(exports.InputLeftElement, null, /* @__PURE__ */ React86__namespace.default.createElement(sporIconReact.SearchOutline24Icon, null)), /* @__PURE__ */ React86__namespace.default.createElement(
|
2090
2094
|
react.Input,
|
2091
2095
|
{
|
2092
2096
|
paddingLeft: 7,
|
2093
2097
|
paddingRight: 7,
|
2094
|
-
...
|
2098
|
+
...innerProps,
|
2095
2099
|
id: inputId,
|
2096
2100
|
type: "search",
|
2097
2101
|
css: {
|
@@ -2117,6 +2121,19 @@ var init_SearchInput = __esm({
|
|
2117
2121
|
)));
|
2118
2122
|
}
|
2119
2123
|
);
|
2124
|
+
getOuterProps = (props) => {
|
2125
|
+
const layoutKeys = /* @__PURE__ */ new Set(["w, width, maxW, minW, maxWidth, minWidth"]);
|
2126
|
+
const outerProps = {};
|
2127
|
+
const innerProps = {};
|
2128
|
+
for (const key in props) {
|
2129
|
+
if (layoutKeys.has(key)) {
|
2130
|
+
outerProps[key] = props[key];
|
2131
|
+
} else {
|
2132
|
+
innerProps[key] = props[key];
|
2133
|
+
}
|
2134
|
+
}
|
2135
|
+
return { outerProps, innerProps };
|
2136
|
+
};
|
2120
2137
|
texts6 = createTexts({
|
2121
2138
|
label: {
|
2122
2139
|
nb: "S\xF8k",
|
@@ -2863,7 +2880,16 @@ var init_ProgressLoader = __esm({
|
|
2863
2880
|
exports.Skeleton = void 0;
|
2864
2881
|
var init_Skeleton = __esm({
|
2865
2882
|
"src/loader/Skeleton.tsx"() {
|
2866
|
-
exports.Skeleton = react.forwardRef((props, ref) => /* @__PURE__ */ React86__namespace.default.createElement(
|
2883
|
+
exports.Skeleton = react.forwardRef((props, ref) => /* @__PURE__ */ React86__namespace.default.createElement(
|
2884
|
+
react.Skeleton,
|
2885
|
+
{
|
2886
|
+
...props,
|
2887
|
+
ref,
|
2888
|
+
"aria-busy": "true",
|
2889
|
+
"aria-hidden": "true",
|
2890
|
+
role: "alert"
|
2891
|
+
}
|
2892
|
+
));
|
2867
2893
|
}
|
2868
2894
|
});
|
2869
2895
|
exports.SkeletonCircle = void 0;
|
@@ -5506,7 +5532,7 @@ var init_FullScreenDrawer = __esm({
|
|
5506
5532
|
const { onClose } = react.useModalContext();
|
5507
5533
|
const { t: t2 } = useTranslation();
|
5508
5534
|
const [isScreenSizeMinSm] = react.useMediaQuery(
|
5509
|
-
`(min-width: ${
|
5535
|
+
`(min-width: ${tokens12__namespace.default.size.breakpoint.sm})`
|
5510
5536
|
);
|
5511
5537
|
if (isScreenSizeMinSm) {
|
5512
5538
|
return /* @__PURE__ */ React86__namespace.default.createElement(
|
@@ -5516,8 +5542,7 @@ var init_FullScreenDrawer = __esm({
|
|
5516
5542
|
leftIcon: /* @__PURE__ */ React86__namespace.default.createElement(sporIconReact.CloseFill24Icon, null),
|
5517
5543
|
onClick: onClose,
|
5518
5544
|
"aria-label": t2(texts23.close),
|
5519
|
-
width: "fit-content"
|
5520
|
-
marginLeft: "auto"
|
5545
|
+
width: "fit-content"
|
5521
5546
|
},
|
5522
5547
|
t2(texts23.close)
|
5523
5548
|
);
|
@@ -5536,7 +5561,7 @@ var init_FullScreenDrawer = __esm({
|
|
5536
5561
|
const { onClose } = react.useModalContext();
|
5537
5562
|
const { t: t2 } = useTranslation();
|
5538
5563
|
const [isScreenSizeMinSm] = react.useMediaQuery(
|
5539
|
-
`(min-width: ${
|
5564
|
+
`(min-width: ${tokens12__namespace.default.size.breakpoint.sm})`
|
5540
5565
|
);
|
5541
5566
|
if (isScreenSizeMinSm) {
|
5542
5567
|
return /* @__PURE__ */ React86__namespace.default.createElement(
|
@@ -5546,8 +5571,7 @@ var init_FullScreenDrawer = __esm({
|
|
5546
5571
|
leftIcon: /* @__PURE__ */ React86__namespace.default.createElement(sporIconReact.ArrowLeftFill24Icon, null),
|
5547
5572
|
onClick: onClose,
|
5548
5573
|
"aria-label": t2(texts23.backAriaLabel),
|
5549
|
-
width: "fit-content"
|
5550
|
-
marginLeft: "auto"
|
5574
|
+
width: "fit-content"
|
5551
5575
|
},
|
5552
5576
|
t2(texts23.back)
|
5553
5577
|
);
|
@@ -10900,10 +10924,10 @@ var init_chunk_MBVM6PEK = __esm({
|
|
10900
10924
|
});
|
10901
10925
|
variantOutline3 = defineStyle((props) => {
|
10902
10926
|
const { colorScheme: c } = props;
|
10903
|
-
const
|
10927
|
+
const borderColor2 = themeTools.mode(`gray.200`, `whiteAlpha.300`)(props);
|
10904
10928
|
return {
|
10905
10929
|
border: "1px solid",
|
10906
|
-
borderColor: c === "gray" ?
|
10930
|
+
borderColor: c === "gray" ? borderColor2 : "currentColor",
|
10907
10931
|
".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)": { marginEnd: "-1px" },
|
10908
10932
|
".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)": { marginBottom: "-1px" },
|
10909
10933
|
...runIfFn(variantGhost, props)
|
@@ -11954,8 +11978,8 @@ function ghostBackground(state2, props) {
|
|
11954
11978
|
case "selected": {
|
11955
11979
|
return {
|
11956
11980
|
backgroundColor: themeTools.mode(
|
11957
|
-
"ghost.surface.
|
11958
|
-
"ghost.surface.
|
11981
|
+
"ghost.surface.hover.light",
|
11982
|
+
"ghost.surface.hover.dark"
|
11959
11983
|
)(props)
|
11960
11984
|
};
|
11961
11985
|
}
|
@@ -12194,10 +12218,14 @@ var init_alert_expandable = __esm({
|
|
12194
12218
|
},
|
12195
12219
|
container: {
|
12196
12220
|
_hover: {
|
12221
|
+
backgroundColor: "cloudy",
|
12197
12222
|
outlineColor: "sky"
|
12198
12223
|
},
|
12199
12224
|
_active: {
|
12200
12225
|
backgroundColor: "icyBlue"
|
12226
|
+
},
|
12227
|
+
_focus: {
|
12228
|
+
outlineColor: "greenHaze"
|
12201
12229
|
}
|
12202
12230
|
}
|
12203
12231
|
},
|
@@ -12207,10 +12235,14 @@ var init_alert_expandable = __esm({
|
|
12207
12235
|
},
|
12208
12236
|
container: {
|
12209
12237
|
_hover: {
|
12238
|
+
backgroundColor: "coralGreen",
|
12210
12239
|
outlineColor: "blueGreen"
|
12211
12240
|
},
|
12212
12241
|
_active: {
|
12213
12242
|
backgroundColor: "mint"
|
12243
|
+
},
|
12244
|
+
_focus: {
|
12245
|
+
outlineColor: "greenHaze"
|
12214
12246
|
}
|
12215
12247
|
}
|
12216
12248
|
},
|
@@ -12220,7 +12252,11 @@ var init_alert_expandable = __esm({
|
|
12220
12252
|
},
|
12221
12253
|
container: {
|
12222
12254
|
_hover: {
|
12223
|
-
|
12255
|
+
backgroundColor: "primrose",
|
12256
|
+
outlineColor: "banana"
|
12257
|
+
},
|
12258
|
+
_focus: {
|
12259
|
+
outlineColor: "greenHaze"
|
12224
12260
|
},
|
12225
12261
|
_active: {
|
12226
12262
|
backgroundColor: "cornSilk"
|
@@ -12233,8 +12269,12 @@ var init_alert_expandable = __esm({
|
|
12233
12269
|
},
|
12234
12270
|
container: {
|
12235
12271
|
_hover: {
|
12272
|
+
backgroundColor: "burntYellow",
|
12236
12273
|
outlineColor: "golden"
|
12237
12274
|
},
|
12275
|
+
_focus: {
|
12276
|
+
outlineColor: "greenHaze"
|
12277
|
+
},
|
12238
12278
|
_active: {
|
12239
12279
|
backgroundColor: "sunshine"
|
12240
12280
|
}
|
@@ -12246,10 +12286,14 @@ var init_alert_expandable = __esm({
|
|
12246
12286
|
},
|
12247
12287
|
container: {
|
12248
12288
|
_hover: {
|
12289
|
+
backgroundColor: "salmon",
|
12249
12290
|
outlineColor: "apricot"
|
12250
12291
|
},
|
12251
12292
|
_active: {
|
12252
12293
|
backgroundColor: "pink"
|
12294
|
+
},
|
12295
|
+
_focus: {
|
12296
|
+
outlineColor: "greenHaze"
|
12253
12297
|
}
|
12254
12298
|
}
|
12255
12299
|
},
|
@@ -12342,10 +12386,14 @@ var init_alert_service = __esm({
|
|
12342
12386
|
service: {
|
12343
12387
|
container: {
|
12344
12388
|
_hover: {
|
12345
|
-
|
12389
|
+
backgroundColor: "teal.600",
|
12390
|
+
outlineColor: "teal.600"
|
12391
|
+
},
|
12392
|
+
_focus: {
|
12393
|
+
outlineColor: "green.500"
|
12346
12394
|
},
|
12347
12395
|
_active: {
|
12348
|
-
backgroundColor: "
|
12396
|
+
backgroundColor: "teal.400",
|
12349
12397
|
outlineColor: "pine"
|
12350
12398
|
},
|
12351
12399
|
color: "white"
|
@@ -12694,474 +12742,50 @@ var init_button2 = __esm({
|
|
12694
12742
|
button_default = config7;
|
12695
12743
|
}
|
12696
12744
|
});
|
12697
|
-
var
|
12698
|
-
var
|
12699
|
-
"src/theme/
|
12700
|
-
|
12701
|
-
|
12702
|
-
|
12703
|
-
|
12704
|
-
|
12705
|
-
|
12706
|
-
|
12707
|
-
|
12708
|
-
|
12709
|
-
baseStyle: (props) => ({
|
12710
|
-
trigger: {
|
12711
|
-
appearance: "none",
|
12712
|
-
display: "flex",
|
12713
|
-
alignItems: "center",
|
12714
|
-
transitionProperty: "outline",
|
12715
|
-
transitionDuration: "fast",
|
12716
|
-
...baseText("default", props),
|
12717
|
-
...focusVisibleStyles(props)
|
12718
|
-
},
|
12719
|
-
card: {
|
12720
|
-
borderRadius: "sm",
|
12721
|
-
boxShadow: "md",
|
12722
|
-
padding: 3,
|
12723
|
-
...baseText("default", props),
|
12724
|
-
backgroundColor: themeTools.mode(
|
12725
|
-
"white",
|
12726
|
-
`color-mix(in srgb, white 10%, var(--spor-colors-bg-default-dark))`
|
12727
|
-
)(props)
|
12728
|
-
}
|
12729
|
-
}),
|
12730
|
-
variants: {
|
12731
|
-
base: (props) => ({
|
12732
|
-
trigger: {
|
12733
|
-
...baseBorder("default", props),
|
12734
|
-
_hover: {
|
12735
|
-
...baseBorder("hover", props)
|
12736
|
-
},
|
12737
|
-
_active: {
|
12738
|
-
...baseBackground("active", props),
|
12739
|
-
...baseBorder("default", props)
|
12740
|
-
},
|
12741
|
-
_expanded: {
|
12742
|
-
...baseBackground("active", props)
|
12743
|
-
}
|
12744
|
-
}
|
12745
|
-
}),
|
12746
|
-
ghost: (props) => ({
|
12747
|
-
trigger: {
|
12748
|
-
_hover: {
|
12749
|
-
...ghostBackground("hover", props)
|
12750
|
-
},
|
12751
|
-
_active: {
|
12752
|
-
...ghostBackground("active", props)
|
12753
|
-
},
|
12754
|
-
_expanded: {
|
12755
|
-
...ghostBackground("selected", props)
|
12756
|
-
}
|
12757
|
-
}
|
12758
|
-
}),
|
12759
|
-
floating: (props) => ({
|
12760
|
-
trigger: {
|
12761
|
-
boxShadow: "sm",
|
12762
|
-
...floatingBackground("default", props),
|
12763
|
-
...floatingBorder("default", props),
|
12764
|
-
transition: "all .1s ease-out",
|
12765
|
-
_hover: {
|
12766
|
-
...floatingBackground("hover", props),
|
12767
|
-
...floatingBorder("hover", props)
|
12768
|
-
},
|
12769
|
-
_active: {
|
12770
|
-
...floatingBackground("active", props),
|
12771
|
-
...floatingBorder("active", props)
|
12772
|
-
},
|
12773
|
-
_expanded: {
|
12774
|
-
...floatingBackground("active", props)
|
12775
|
-
}
|
12776
|
-
},
|
12777
|
-
card: {}
|
12778
|
-
})
|
12779
|
-
},
|
12780
|
-
sizes: {
|
12781
|
-
sm: {
|
12782
|
-
trigger: {
|
12783
|
-
paddingX: 1.5,
|
12784
|
-
paddingY: 1,
|
12785
|
-
minHeight: "1.25rem",
|
12786
|
-
fontSize: "xs",
|
12787
|
-
borderRadius: "sm"
|
12788
|
-
}
|
12789
|
-
},
|
12790
|
-
md: {
|
12791
|
-
trigger: {
|
12792
|
-
paddingX: 2,
|
12793
|
-
paddingY: 1.5,
|
12794
|
-
minHeight: "2.625rem",
|
12795
|
-
fontSize: "sm",
|
12796
|
-
borderRadius: "sm"
|
12797
|
-
}
|
12798
|
-
},
|
12799
|
-
lg: {
|
12800
|
-
trigger: {
|
12801
|
-
paddingX: 3,
|
12802
|
-
paddingY: 2,
|
12803
|
-
minHeight: "3.375rem",
|
12804
|
-
fontSize: "sm",
|
12805
|
-
borderRadius: "sm"
|
12806
|
-
}
|
12807
|
-
}
|
12808
|
-
}
|
12809
|
-
});
|
12810
|
-
card_select_default = config8;
|
12745
|
+
var borders2;
|
12746
|
+
var init_borders = __esm({
|
12747
|
+
"src/theme/foundations/borders.ts"() {
|
12748
|
+
borders2 = {
|
12749
|
+
none: "0",
|
12750
|
+
sm: `${tokens12__namespace.default.size.stroke.sm} solid`,
|
12751
|
+
"sm-dashed": `${tokens12__namespace.default.size.stroke.sm} dashed`,
|
12752
|
+
md: `${tokens12__namespace.default.size.stroke.md} solid`,
|
12753
|
+
"md-dashed": `${tokens12__namespace.default.size.stroke.md} dashed`,
|
12754
|
+
lg: `${tokens12__namespace.default.size.stroke.lg} solid`,
|
12755
|
+
"lg-dashed": `${tokens12__namespace.default.size.stroke.lg} dashed`
|
12756
|
+
};
|
12811
12757
|
}
|
12812
12758
|
});
|
12813
|
-
var
|
12814
|
-
var
|
12815
|
-
"src/theme/
|
12816
|
-
|
12817
|
-
|
12818
|
-
|
12819
|
-
|
12820
|
-
|
12821
|
-
|
12822
|
-
|
12823
|
-
|
12824
|
-
_hover: {
|
12825
|
-
"input:enabled:not([aria-invalid]) + .chakra-checkbox__control": {
|
12826
|
-
...baseBackground("hover", props),
|
12827
|
-
borderColor: brandBackground("hover", props).backgroundColor
|
12828
|
-
},
|
12829
|
-
"input:enabled[aria-invalid] + .chakra-checkbox__control": {
|
12830
|
-
backgroundColor: themeTools.mode("white", "inherit")(props),
|
12831
|
-
borderColor: themeTools.mode("outline.error.light", "outline.error.dark")
|
12832
|
-
},
|
12833
|
-
"input:enabled:checked:not([aria-invalid]) + .chakra-checkbox__control": {
|
12834
|
-
...brandBackground("hover", props),
|
12835
|
-
borderColor: brandBackground("hover", props).backgroundColor
|
12836
|
-
},
|
12837
|
-
"input:enabled:checked[aria-invalid] + .chakra-checkbox__control": {
|
12838
|
-
borderColor: themeTools.mode("outline.error.light", "outline.error.dark"),
|
12839
|
-
backgroundColor: themeTools.mode("outline.error.light", "outline.error.dark")
|
12840
|
-
}
|
12841
|
-
}
|
12842
|
-
},
|
12843
|
-
icon: {
|
12844
|
-
fontSize: "1em",
|
12845
|
-
transitionProperty: "transform",
|
12846
|
-
transitionDuration: "normal",
|
12847
|
-
strokeWidth: "1.5px !important"
|
12848
|
-
// Required to make the default icon look correct
|
12849
|
-
},
|
12850
|
-
control: {
|
12851
|
-
width: 4,
|
12852
|
-
height: 4,
|
12853
|
-
transitionProperty: "background, border-color",
|
12854
|
-
transitionDuration: "normal",
|
12855
|
-
border: "2px solid",
|
12856
|
-
borderColor: themeTools.mode(
|
12857
|
-
"base.outline.default.light",
|
12858
|
-
"base.outline.default.dark"
|
12859
|
-
)(props),
|
12860
|
-
borderRadius: "xs",
|
12861
|
-
...baseBackground("default", props),
|
12862
|
-
...focusVisibleStyles(props),
|
12863
|
-
_checked: {
|
12864
|
-
...brandText("default", props),
|
12865
|
-
...brandBackground("default", props),
|
12866
|
-
borderColor: brandBackground("default", props).backgroundColor,
|
12867
|
-
_disabled: {
|
12868
|
-
...baseBackground("disabled", props),
|
12869
|
-
...baseText("disabled", props),
|
12870
|
-
borderColor: "currentColor"
|
12871
|
-
},
|
12872
|
-
_invalid: {
|
12873
|
-
backgroundColor: "brightRed",
|
12874
|
-
borderColor: "brightRed"
|
12875
|
-
}
|
12876
|
-
},
|
12877
|
-
_disabled: {
|
12878
|
-
...baseBackground("disabled", props),
|
12879
|
-
borderColor: baseText("disabled", props).color
|
12880
|
-
},
|
12881
|
-
_invalid: {
|
12882
|
-
...baseBackground("default", props),
|
12883
|
-
borderColor: "brightRed"
|
12884
|
-
}
|
12885
|
-
},
|
12886
|
-
label: {
|
12887
|
-
userSelect: "none",
|
12888
|
-
_disabled: { opacity: 0.4 }
|
12889
|
-
}
|
12890
|
-
})
|
12891
|
-
});
|
12892
|
-
checkbox_default = config9;
|
12893
|
-
}
|
12894
|
-
});
|
12895
|
-
var parts5, helpers7, config10, choice_chip_default;
|
12896
|
-
var init_choice_chip = __esm({
|
12897
|
-
"src/theme/components/choice-chip.ts"() {
|
12898
|
-
init_accent_utils();
|
12899
|
-
init_base_utils();
|
12900
|
-
init_brand_utils();
|
12901
|
-
init_floating_utils();
|
12902
|
-
init_focus_utils();
|
12903
|
-
parts5 = themeTools.anatomy("choice-chip").parts("container", "icon", "label");
|
12904
|
-
helpers7 = react.createMultiStyleConfigHelpers(parts5.keys);
|
12905
|
-
config10 = helpers7.defineMultiStyleConfig({
|
12906
|
-
baseStyle: (props) => ({
|
12907
|
-
container: {
|
12908
|
-
display: "inline-flex",
|
12909
|
-
alignItems: "center",
|
12910
|
-
fontSize: "xs",
|
12911
|
-
cursor: "pointer",
|
12912
|
-
transitionProperty: "all",
|
12913
|
-
borderRadius: "xl",
|
12914
|
-
transitionDuration: "fast",
|
12915
|
-
_checked: {
|
12916
|
-
outlineColor: "transparent",
|
12917
|
-
...accentText("selected", props),
|
12918
|
-
...accentBackground("selected", props),
|
12919
|
-
_hover: {
|
12920
|
-
...brandBackground("hover", props),
|
12921
|
-
...baseText("selected", props),
|
12922
|
-
outlineColor: "transparent"
|
12923
|
-
},
|
12924
|
-
_active: {
|
12925
|
-
...baseText("selected", props),
|
12926
|
-
...brandBackground("active", props)
|
12927
|
-
}
|
12928
|
-
},
|
12929
|
-
_disabled: {
|
12930
|
-
pointerEvents: "none",
|
12931
|
-
boxShadow: "none",
|
12932
|
-
...baseText("disabled", props),
|
12933
|
-
...baseBackground("disabled", props),
|
12934
|
-
_hover: {
|
12935
|
-
...baseBackground("disabled", props),
|
12936
|
-
boxShadow: "none",
|
12937
|
-
...baseText("disabled", props)
|
12938
|
-
},
|
12939
|
-
_checked: {
|
12940
|
-
cursor: "not-allowed",
|
12941
|
-
boxShadow: "none",
|
12942
|
-
...baseText("disabled", props),
|
12943
|
-
...baseBackground("disabled", props),
|
12944
|
-
_hover: {
|
12945
|
-
...baseBackground("disabled", props),
|
12946
|
-
boxShadow: "none",
|
12947
|
-
...baseText("disabled", props)
|
12948
|
-
}
|
12949
|
-
}
|
12950
|
-
},
|
12951
|
-
"input:focus-visible + &": focusVisibleStyles(props)._focusVisible
|
12952
|
-
},
|
12953
|
-
icon: {
|
12954
|
-
marginRight: props.hasLabel ? 1 : 0
|
12955
|
-
}
|
12956
|
-
}),
|
12957
|
-
variants: {
|
12958
|
-
base: (props) => ({
|
12959
|
-
container: {
|
12960
|
-
...baseBorder("default", props),
|
12961
|
-
...baseText("default", props),
|
12962
|
-
_hover: {
|
12963
|
-
...baseText("default", props),
|
12964
|
-
...baseBorder("hover", props)
|
12965
|
-
},
|
12966
|
-
_active: {
|
12967
|
-
...baseBackground("active", props),
|
12968
|
-
...baseBorder("default", props)
|
12969
|
-
}
|
12970
|
-
}
|
12971
|
-
}),
|
12972
|
-
accent: (props) => ({
|
12973
|
-
container: {
|
12974
|
-
...accentBackground("default", props),
|
12975
|
-
...accentText("default", props),
|
12976
|
-
_hover: {
|
12977
|
-
...accentBackground("hover", props),
|
12978
|
-
...accentText("default", props)
|
12979
|
-
},
|
12980
|
-
_active: {
|
12981
|
-
...accentText("default", props),
|
12982
|
-
...accentBackground("active", props)
|
12983
|
-
}
|
12984
|
-
},
|
12985
|
-
_active: {
|
12986
|
-
...accentText("default", props),
|
12987
|
-
...accentBackground("active", props)
|
12988
|
-
}
|
12989
|
-
}),
|
12990
|
-
floating: (props) => ({
|
12991
|
-
container: {
|
12992
|
-
...floatingBackground("default", props),
|
12993
|
-
...baseText("default", props),
|
12994
|
-
...floatingBorder("default", props),
|
12995
|
-
boxShadow: "sm",
|
12996
|
-
_hover: {
|
12997
|
-
...floatingBackground("hover", props),
|
12998
|
-
...floatingBorder("hover", props),
|
12999
|
-
...baseText("default", props),
|
13000
|
-
boxShadow: "md"
|
13001
|
-
},
|
13002
|
-
_active: {
|
13003
|
-
...floatingBackground("active", props),
|
13004
|
-
...floatingBorder("active", props),
|
13005
|
-
...baseText("default", props)
|
13006
|
-
}
|
13007
|
-
}
|
13008
|
-
})
|
13009
|
-
},
|
13010
|
-
sizes: {
|
13011
|
-
xs: {
|
13012
|
-
container: {
|
13013
|
-
_checked: {
|
13014
|
-
borderRadius: "0.563rem"
|
13015
|
-
},
|
13016
|
-
height: 5,
|
13017
|
-
paddingX: 1.5
|
13018
|
-
}
|
13019
|
-
},
|
13020
|
-
sm: {
|
13021
|
-
container: {
|
13022
|
-
_checked: {
|
13023
|
-
borderRadius: "sm"
|
13024
|
-
},
|
13025
|
-
height: 6,
|
13026
|
-
paddingX: 2
|
13027
|
-
}
|
13028
|
-
},
|
13029
|
-
md: {
|
13030
|
-
container: {
|
13031
|
-
_checked: {
|
13032
|
-
borderRadius: "sm"
|
13033
|
-
},
|
13034
|
-
height: 7,
|
13035
|
-
paddingX: 2
|
13036
|
-
}
|
13037
|
-
},
|
13038
|
-
lg: {
|
13039
|
-
container: {
|
13040
|
-
_checked: {
|
13041
|
-
borderRadius: "md"
|
13042
|
-
},
|
13043
|
-
height: 8,
|
13044
|
-
paddingX: 3
|
13045
|
-
}
|
13046
|
-
}
|
13047
|
-
},
|
13048
|
-
defaultProps: {
|
13049
|
-
size: "sm"
|
13050
|
-
}
|
13051
|
-
});
|
13052
|
-
choice_chip_default = config10;
|
13053
|
-
}
|
13054
|
-
});
|
13055
|
-
var $size6, config11, close_button_default;
|
13056
|
-
var init_close_button = __esm({
|
13057
|
-
"src/theme/components/close-button.ts"() {
|
13058
|
-
init_focus_utils();
|
13059
|
-
init_ghost_utils();
|
13060
|
-
$size6 = themeTools.cssVar("close-button-size");
|
13061
|
-
config11 = react.defineStyleConfig({
|
13062
|
-
baseStyle: (props) => ({
|
13063
|
-
w: [$size6.reference],
|
13064
|
-
h: [$size6.reference],
|
13065
|
-
transitionProperty: "common",
|
13066
|
-
transitionDuration: "normal",
|
13067
|
-
borderRadius: "md",
|
13068
|
-
backgroundColor: "transparent",
|
13069
|
-
color: themeTools.mode("darkGrey", "white")(props),
|
13070
|
-
fontWeight: "normal",
|
13071
|
-
...focusVisibleStyles(props),
|
13072
|
-
_hover: {
|
13073
|
-
...ghostBackground("hover", props),
|
13074
|
-
_disabled: {
|
13075
|
-
color: "dimGrey"
|
13076
|
-
}
|
13077
|
-
},
|
13078
|
-
_active: {
|
13079
|
-
...ghostBackground("active", props)
|
13080
|
-
}
|
13081
|
-
}),
|
13082
|
-
sizes: {
|
13083
|
-
lg: {
|
13084
|
-
[$size6.variable]: "40px",
|
13085
|
-
fontSize: "xs"
|
13086
|
-
},
|
13087
|
-
md: {
|
13088
|
-
[$size6.variable]: "32px",
|
13089
|
-
fontSize: "0.75rem"
|
13090
|
-
},
|
13091
|
-
sm: {
|
13092
|
-
[$size6.variable]: "24px",
|
13093
|
-
fontSize: "0.625rem"
|
13094
|
-
}
|
13095
|
-
},
|
13096
|
-
defaultProps: {
|
13097
|
-
size: "md"
|
13098
|
-
}
|
13099
|
-
});
|
13100
|
-
close_button_default = config11;
|
13101
|
-
}
|
13102
|
-
});
|
13103
|
-
var variants13, defaultProps2, config12, code_default;
|
13104
|
-
var init_code = __esm({
|
13105
|
-
"src/theme/components/code.ts"() {
|
13106
|
-
init_badge();
|
13107
|
-
({ variants: variants13, defaultProps: defaultProps2 } = badge_default);
|
13108
|
-
config12 = react.defineStyleConfig({
|
13109
|
-
baseStyle: {
|
13110
|
-
fontFamily: "monospace",
|
13111
|
-
fontSize: ["mobile.xs", "desktop.xs"],
|
13112
|
-
borderRadius: "xs",
|
13113
|
-
paddingX: 1
|
13114
|
-
},
|
13115
|
-
variants: variants13,
|
13116
|
-
defaultProps: defaultProps2
|
13117
|
-
});
|
13118
|
-
code_default = config12;
|
13119
|
-
}
|
13120
|
-
});
|
13121
|
-
var borders2;
|
13122
|
-
var init_borders = __esm({
|
13123
|
-
"src/theme/foundations/borders.ts"() {
|
13124
|
-
borders2 = {
|
13125
|
-
none: "0",
|
13126
|
-
sm: `${tokens11__namespace.default.size.stroke.sm} solid`,
|
13127
|
-
"sm-dashed": `${tokens11__namespace.default.size.stroke.sm} dashed`,
|
13128
|
-
md: `${tokens11__namespace.default.size.stroke.md} solid`,
|
13129
|
-
"md-dashed": `${tokens11__namespace.default.size.stroke.md} dashed`,
|
13130
|
-
lg: `${tokens11__namespace.default.size.stroke.lg} solid`,
|
13131
|
-
"lg-dashed": `${tokens11__namespace.default.size.stroke.lg} dashed`
|
13132
|
-
};
|
13133
|
-
}
|
13134
|
-
});
|
13135
|
-
var breakpoints2;
|
13136
|
-
var init_breakpoints = __esm({
|
13137
|
-
"src/theme/foundations/breakpoints.ts"() {
|
13138
|
-
breakpoints2 = {
|
13139
|
-
base: "0px",
|
13140
|
-
sm: tokens11__namespace.default.size.breakpoint.sm,
|
13141
|
-
md: tokens11__namespace.default.size.breakpoint.md,
|
13142
|
-
lg: tokens11__namespace.default.size.breakpoint.lg,
|
13143
|
-
xl: tokens11__namespace.default.size.breakpoint.xl,
|
13144
|
-
"2xl": tokens11__namespace.default.size.breakpoint.xl
|
13145
|
-
};
|
12759
|
+
var breakpoints2;
|
12760
|
+
var init_breakpoints = __esm({
|
12761
|
+
"src/theme/foundations/breakpoints.ts"() {
|
12762
|
+
breakpoints2 = {
|
12763
|
+
base: "0px",
|
12764
|
+
sm: tokens12__namespace.default.size.breakpoint.sm,
|
12765
|
+
md: tokens12__namespace.default.size.breakpoint.md,
|
12766
|
+
lg: tokens12__namespace.default.size.breakpoint.lg,
|
12767
|
+
xl: tokens12__namespace.default.size.breakpoint.xl,
|
12768
|
+
"2xl": tokens12__namespace.default.size.breakpoint.xl
|
12769
|
+
};
|
13146
12770
|
}
|
13147
12771
|
});
|
13148
12772
|
var colors2;
|
13149
12773
|
var init_colors = __esm({
|
13150
12774
|
"src/theme/foundations/colors.ts"() {
|
13151
12775
|
colors2 = {
|
13152
|
-
...
|
13153
|
-
...
|
13154
|
-
...
|
13155
|
-
linjetag:
|
12776
|
+
...tokens12__namespace.default.color.alias,
|
12777
|
+
...tokens12__namespace.default.color.palette,
|
12778
|
+
...tokens12__namespace.default.color.vyDigital,
|
12779
|
+
linjetag: tokens12__namespace.default.color.linjetag
|
13156
12780
|
};
|
13157
12781
|
}
|
13158
12782
|
});
|
13159
12783
|
|
13160
12784
|
// src/theme/foundations/config.ts
|
13161
|
-
var
|
12785
|
+
var config8;
|
13162
12786
|
var init_config = __esm({
|
13163
12787
|
"src/theme/foundations/config.ts"() {
|
13164
|
-
|
12788
|
+
config8 = {
|
13165
12789
|
cssVarPrefix: "spor",
|
13166
12790
|
initialColorMode: "light",
|
13167
12791
|
useSystemColorMode: false
|
@@ -13172,9 +12796,9 @@ var fonts;
|
|
13172
12796
|
var init_fonts = __esm({
|
13173
12797
|
"src/theme/foundations/fonts.ts"() {
|
13174
12798
|
fonts = {
|
13175
|
-
body: `${
|
13176
|
-
heading: `${
|
13177
|
-
mono: `${
|
12799
|
+
body: `${tokens12__namespace.default.font.family.body}, arial, sans-serif`,
|
12800
|
+
heading: `${tokens12__namespace.default.font.family.heading}, arial, sans-serif`,
|
12801
|
+
mono: `${tokens12__namespace.default.font.family.monospace}, monospace`
|
13178
12802
|
};
|
13179
12803
|
}
|
13180
12804
|
});
|
@@ -13182,29 +12806,29 @@ var fontSizes;
|
|
13182
12806
|
var init_fontSizes = __esm({
|
13183
12807
|
"src/theme/foundations/fontSizes.ts"() {
|
13184
12808
|
fontSizes = {
|
13185
|
-
"2xs":
|
13186
|
-
xs:
|
13187
|
-
sm:
|
13188
|
-
md:
|
13189
|
-
lg:
|
13190
|
-
xl:
|
13191
|
-
"2xl":
|
13192
|
-
"3xl":
|
12809
|
+
"2xs": tokens12__namespace.default.size.font.xs.mobile,
|
12810
|
+
xs: tokens12__namespace.default.size.font.sm.mobile,
|
12811
|
+
sm: tokens12__namespace.default.size.font.md.mobile,
|
12812
|
+
md: tokens12__namespace.default.size.font.lg.mobile,
|
12813
|
+
lg: tokens12__namespace.default.size.font.xl.mobile,
|
12814
|
+
xl: tokens12__namespace.default.size.font.xxl.mobile,
|
12815
|
+
"2xl": tokens12__namespace.default.size.font.xl.desktop,
|
12816
|
+
"3xl": tokens12__namespace.default.size.font.xxl.desktop,
|
13193
12817
|
mobile: {
|
13194
|
-
xs:
|
13195
|
-
sm:
|
13196
|
-
md:
|
13197
|
-
lg:
|
13198
|
-
xl:
|
13199
|
-
xxl:
|
12818
|
+
xs: tokens12__namespace.default.size.font.xs.mobile,
|
12819
|
+
sm: tokens12__namespace.default.size.font.sm.mobile,
|
12820
|
+
md: tokens12__namespace.default.size.font.md.mobile,
|
12821
|
+
lg: tokens12__namespace.default.size.font.lg.mobile,
|
12822
|
+
xl: tokens12__namespace.default.size.font.xl.mobile,
|
12823
|
+
xxl: tokens12__namespace.default.size.font.xxl.mobile
|
13200
12824
|
},
|
13201
12825
|
desktop: {
|
13202
|
-
xs:
|
13203
|
-
sm:
|
13204
|
-
md:
|
13205
|
-
lg:
|
13206
|
-
xl:
|
13207
|
-
xxl:
|
12826
|
+
xs: tokens12__namespace.default.size.font.xs.desktop,
|
12827
|
+
sm: tokens12__namespace.default.size.font.sm.desktop,
|
12828
|
+
md: tokens12__namespace.default.size.font.md.desktop,
|
12829
|
+
lg: tokens12__namespace.default.size.font.lg.desktop,
|
12830
|
+
xl: tokens12__namespace.default.size.font.xl.desktop,
|
12831
|
+
xxl: tokens12__namespace.default.size.font.xxl.desktop
|
13208
12832
|
}
|
13209
12833
|
};
|
13210
12834
|
}
|
@@ -13225,8 +12849,8 @@ var lineHeights;
|
|
13225
12849
|
var init_lineHeights = __esm({
|
13226
12850
|
"src/theme/foundations/lineHeights.ts"() {
|
13227
12851
|
lineHeights = {
|
13228
|
-
base:
|
13229
|
-
normal:
|
12852
|
+
base: tokens12__namespace.default.font.style.lg["line-height"],
|
12853
|
+
normal: tokens12__namespace.default.font.style.lg["line-height"]
|
13230
12854
|
};
|
13231
12855
|
}
|
13232
12856
|
});
|
@@ -13234,13 +12858,13 @@ var radii2;
|
|
13234
12858
|
var init_radii = __esm({
|
13235
12859
|
"src/theme/foundations/radii.ts"() {
|
13236
12860
|
radii2 = {
|
13237
|
-
none:
|
13238
|
-
xs:
|
13239
|
-
sm:
|
13240
|
-
md:
|
13241
|
-
lg:
|
13242
|
-
xl:
|
13243
|
-
"2xl":
|
12861
|
+
none: tokens12__namespace.default.size["border-radius"].none,
|
12862
|
+
xs: tokens12__namespace.default.size["border-radius"].xs,
|
12863
|
+
sm: tokens12__namespace.default.size["border-radius"].sm,
|
12864
|
+
md: tokens12__namespace.default.size["border-radius"].md,
|
12865
|
+
lg: tokens12__namespace.default.size["border-radius"].lg,
|
12866
|
+
xl: tokens12__namespace.default.size["border-radius"].xl,
|
12867
|
+
"2xl": tokens12__namespace.default.size["border-radius"]["2xl"],
|
13244
12868
|
round: "50%"
|
13245
12869
|
};
|
13246
12870
|
}
|
@@ -13250,18 +12874,18 @@ var init_shadows = __esm({
|
|
13250
12874
|
"src/theme/foundations/shadows.ts"() {
|
13251
12875
|
shadows2 = {
|
13252
12876
|
none: "none",
|
13253
|
-
sm:
|
13254
|
-
md:
|
13255
|
-
lg:
|
12877
|
+
sm: tokens12__namespace.default.depth.shadow.sm.value,
|
12878
|
+
md: tokens12__namespace.default.depth.shadow.md.value,
|
12879
|
+
lg: tokens12__namespace.default.depth.shadow.lg.value
|
13256
12880
|
};
|
13257
12881
|
}
|
13258
12882
|
});
|
13259
12883
|
var spacing2, space2;
|
13260
12884
|
var init_spacing = __esm({
|
13261
12885
|
"src/theme/foundations/spacing.ts"() {
|
13262
|
-
spacing2 = Object.entries(
|
13263
|
-
(
|
13264
|
-
...
|
12886
|
+
spacing2 = Object.entries(tokens12__namespace.default.size.spacing).reduce(
|
12887
|
+
(tokens17, [key, token]) => ({
|
12888
|
+
...tokens17,
|
13265
12889
|
[Number(key)]: token
|
13266
12890
|
}),
|
13267
12891
|
{}
|
@@ -13269,8 +12893,6 @@ var init_spacing = __esm({
|
|
13269
12893
|
space2 = spacing2;
|
13270
12894
|
}
|
13271
12895
|
});
|
13272
|
-
|
13273
|
-
// src/theme/foundations/sizes.ts
|
13274
12896
|
var largeSizes2, container2, sizes24;
|
13275
12897
|
var init_sizes = __esm({
|
13276
12898
|
"src/theme/foundations/sizes.ts"() {
|
@@ -13295,10 +12917,11 @@ var init_sizes = __esm({
|
|
13295
12917
|
"8xl": "90rem"
|
13296
12918
|
};
|
13297
12919
|
container2 = {
|
13298
|
-
|
13299
|
-
|
13300
|
-
|
13301
|
-
|
12920
|
+
base: "0px",
|
12921
|
+
sm: tokens12__namespace.default.size.breakpoint.sm,
|
12922
|
+
md: tokens12__namespace.default.size.breakpoint.md,
|
12923
|
+
lg: tokens12__namespace.default.size.breakpoint.lg,
|
12924
|
+
xl: tokens12__namespace.default.size.breakpoint.xl
|
13302
12925
|
};
|
13303
12926
|
sizes24 = {
|
13304
12927
|
...spacing2,
|
@@ -13313,150 +12936,576 @@ var init_textStyles = __esm({
|
|
13313
12936
|
textStyles = {
|
13314
12937
|
"2xl": {
|
13315
12938
|
fontSize: [
|
13316
|
-
|
12939
|
+
tokens12__namespace.default.font.style.xxl["font-size"].mobile,
|
13317
12940
|
null,
|
13318
12941
|
null,
|
13319
|
-
|
12942
|
+
tokens12__namespace.default.font.style.xxl["font-size"].desktop
|
13320
12943
|
],
|
13321
|
-
fontFamily:
|
13322
|
-
lineHeight:
|
12944
|
+
fontFamily: tokens12__namespace.default.font.style.xxl["font-family"],
|
12945
|
+
lineHeight: tokens12__namespace.default.font.style.xxl["line-height"]
|
13323
12946
|
},
|
13324
12947
|
"xl-display": {
|
13325
12948
|
fontSize: [
|
13326
|
-
|
12949
|
+
tokens12__namespace.default.font.style["xl-display"]["font-size"].mobile,
|
13327
12950
|
null,
|
13328
12951
|
null,
|
13329
|
-
|
12952
|
+
tokens12__namespace.default.font.style["xl-display"]["font-size"].desktop
|
13330
12953
|
],
|
13331
|
-
fontFamily:
|
13332
|
-
lineHeight:
|
12954
|
+
fontFamily: tokens12__namespace.default.font.style["xl-display"]["font-family"],
|
12955
|
+
lineHeight: tokens12__namespace.default.font.style["xl-display"]["line-height"]
|
13333
12956
|
},
|
13334
12957
|
"xl-sans": {
|
13335
12958
|
fontSize: [
|
13336
|
-
|
12959
|
+
tokens12__namespace.default.font.style["xl-sans"]["font-size"].mobile,
|
13337
12960
|
null,
|
13338
12961
|
null,
|
13339
|
-
|
12962
|
+
tokens12__namespace.default.font.style["xl-sans"]["font-size"].desktop
|
13340
12963
|
],
|
13341
|
-
fontFamily:
|
13342
|
-
lineHeight:
|
12964
|
+
fontFamily: tokens12__namespace.default.font.style["xl-sans"]["font-family"],
|
12965
|
+
lineHeight: tokens12__namespace.default.font.style["xl-sans"]["line-height"]
|
13343
12966
|
},
|
13344
12967
|
lg: {
|
13345
12968
|
fontSize: [
|
13346
|
-
|
12969
|
+
tokens12__namespace.default.font.style.lg["font-size"].mobile,
|
13347
12970
|
null,
|
13348
12971
|
null,
|
13349
|
-
|
12972
|
+
tokens12__namespace.default.font.style.lg["font-size"].desktop
|
13350
12973
|
],
|
13351
|
-
fontFamily:
|
13352
|
-
lineHeight:
|
12974
|
+
fontFamily: tokens12__namespace.default.font.style.lg["font-family"],
|
12975
|
+
lineHeight: tokens12__namespace.default.font.style.lg["line-height"]
|
13353
12976
|
},
|
13354
12977
|
md: {
|
13355
12978
|
fontSize: [
|
13356
|
-
|
12979
|
+
tokens12__namespace.default.font.style.md["font-size"].mobile,
|
12980
|
+
null,
|
12981
|
+
null,
|
12982
|
+
tokens12__namespace.default.font.style.md["font-size"].desktop
|
12983
|
+
],
|
12984
|
+
fontFamily: tokens12__namespace.default.font.style.md["font-family"],
|
12985
|
+
lineHeight: tokens12__namespace.default.font.style.md["line-height"]
|
12986
|
+
},
|
12987
|
+
sm: {
|
12988
|
+
fontSize: [
|
12989
|
+
tokens12__namespace.default.font.style.sm["font-size"].mobile,
|
12990
|
+
null,
|
12991
|
+
null,
|
12992
|
+
tokens12__namespace.default.font.style.sm["font-size"].desktop
|
12993
|
+
],
|
12994
|
+
fontFamily: tokens12__namespace.default.font.style.sm["font-family"],
|
12995
|
+
lineHeight: tokens12__namespace.default.font.style.sm["line-height"]
|
12996
|
+
},
|
12997
|
+
xs: {
|
12998
|
+
fontSize: [
|
12999
|
+
tokens12__namespace.default.font.style.xs["font-size"].mobile,
|
13357
13000
|
null,
|
13358
13001
|
null,
|
13359
|
-
|
13002
|
+
tokens12__namespace.default.font.style.xs["font-size"].desktop
|
13360
13003
|
],
|
13361
|
-
fontFamily:
|
13362
|
-
lineHeight:
|
13004
|
+
fontFamily: tokens12__namespace.default.font.style.xs["font-family"],
|
13005
|
+
lineHeight: tokens12__namespace.default.font.style.xs["line-height"]
|
13006
|
+
}
|
13007
|
+
};
|
13008
|
+
}
|
13009
|
+
});
|
13010
|
+
var zIndices2;
|
13011
|
+
var init_zIndices = __esm({
|
13012
|
+
"src/theme/foundations/zIndices.ts"() {
|
13013
|
+
zIndices2 = {
|
13014
|
+
hide: tokens12__namespace.default.depth["z-index"].hide,
|
13015
|
+
auto: "auto",
|
13016
|
+
base: tokens12__namespace.default.depth["z-index"].base,
|
13017
|
+
docked: tokens12__namespace.default.depth["z-index"].docked,
|
13018
|
+
dropdown: tokens12__namespace.default.depth["z-index"].dropdown,
|
13019
|
+
sticky: tokens12__namespace.default.depth["z-index"].sticky,
|
13020
|
+
banner: tokens12__namespace.default.depth["z-index"].banner,
|
13021
|
+
overlay: tokens12__namespace.default.depth["z-index"].overlay,
|
13022
|
+
modal: tokens12__namespace.default.depth["z-index"].modal,
|
13023
|
+
popover: tokens12__namespace.default.depth["z-index"].popover,
|
13024
|
+
skipLink: tokens12__namespace.default.depth["z-index"].skipLink,
|
13025
|
+
toast: tokens12__namespace.default.depth["z-index"].toast,
|
13026
|
+
tooltip: tokens12__namespace.default.depth["z-index"].tooltip
|
13027
|
+
};
|
13028
|
+
}
|
13029
|
+
});
|
13030
|
+
var styles2;
|
13031
|
+
var init_styles = __esm({
|
13032
|
+
"src/theme/foundations/styles.ts"() {
|
13033
|
+
styles2 = {
|
13034
|
+
global: (props) => ({
|
13035
|
+
"html, body": {
|
13036
|
+
color: themeTools.mode("darkGrey", "lightGrey")(props)
|
13037
|
+
},
|
13038
|
+
svg: {
|
13039
|
+
display: "initial"
|
13040
|
+
}
|
13041
|
+
})
|
13042
|
+
};
|
13043
|
+
}
|
13044
|
+
});
|
13045
|
+
|
13046
|
+
// src/theme/foundations/index.ts
|
13047
|
+
var foundations_exports = {};
|
13048
|
+
__export(foundations_exports, {
|
13049
|
+
borders: () => borders2,
|
13050
|
+
breakpoints: () => breakpoints2,
|
13051
|
+
colors: () => colors2,
|
13052
|
+
config: () => config8,
|
13053
|
+
fontSizes: () => fontSizes,
|
13054
|
+
fontWeights: () => fontWeights,
|
13055
|
+
fonts: () => fonts,
|
13056
|
+
lineHeights: () => lineHeights,
|
13057
|
+
radii: () => radii2,
|
13058
|
+
shadows: () => shadows2,
|
13059
|
+
sizes: () => sizes24,
|
13060
|
+
space: () => space2,
|
13061
|
+
spacing: () => spacing2,
|
13062
|
+
styles: () => styles2,
|
13063
|
+
textStyles: () => textStyles,
|
13064
|
+
zIndices: () => zIndices2
|
13065
|
+
});
|
13066
|
+
var init_foundations = __esm({
|
13067
|
+
"src/theme/foundations/index.ts"() {
|
13068
|
+
init_borders();
|
13069
|
+
init_breakpoints();
|
13070
|
+
init_colors();
|
13071
|
+
init_config();
|
13072
|
+
init_fonts();
|
13073
|
+
init_fontSizes();
|
13074
|
+
init_fontWeights();
|
13075
|
+
init_lineHeights();
|
13076
|
+
init_radii();
|
13077
|
+
init_shadows();
|
13078
|
+
init_sizes();
|
13079
|
+
init_spacing();
|
13080
|
+
init_textStyles();
|
13081
|
+
init_zIndices();
|
13082
|
+
init_styles();
|
13083
|
+
}
|
13084
|
+
});
|
13085
|
+
var parts4, helpers5, config9, card_select_default;
|
13086
|
+
var init_card_select = __esm({
|
13087
|
+
"src/theme/components/card-select.ts"() {
|
13088
|
+
init_dist4();
|
13089
|
+
init_dist3();
|
13090
|
+
init_base_utils();
|
13091
|
+
init_floating_utils();
|
13092
|
+
init_focus_utils();
|
13093
|
+
init_ghost_utils();
|
13094
|
+
init_foundations();
|
13095
|
+
parts4 = anatomy("card-select").parts("trigger", "card");
|
13096
|
+
helpers5 = createMultiStyleConfigHelpers(parts4.keys);
|
13097
|
+
config9 = helpers5.defineMultiStyleConfig({
|
13098
|
+
baseStyle: (props) => ({
|
13099
|
+
trigger: {
|
13100
|
+
appearance: "none",
|
13101
|
+
display: "flex",
|
13102
|
+
alignItems: "center",
|
13103
|
+
transitionProperty: "outline",
|
13104
|
+
transitionDuration: "fast",
|
13105
|
+
...baseText("default", props),
|
13106
|
+
...focusVisibleStyles(props)
|
13107
|
+
},
|
13108
|
+
card: {
|
13109
|
+
borderRadius: "sm",
|
13110
|
+
boxShadow: "xs",
|
13111
|
+
padding: 2,
|
13112
|
+
...baseText("default", props),
|
13113
|
+
backgroundColor: themeTools.mode(
|
13114
|
+
"white",
|
13115
|
+
`color-mix(in srgb, white 10%, var(--spor-colors-bg-default-dark))`
|
13116
|
+
)(props)
|
13117
|
+
}
|
13118
|
+
}),
|
13119
|
+
variants: {
|
13120
|
+
base: (props) => ({
|
13121
|
+
trigger: {
|
13122
|
+
...baseBorder("default", props),
|
13123
|
+
_hover: {
|
13124
|
+
...baseBorder("hover", props)
|
13125
|
+
},
|
13126
|
+
_active: {
|
13127
|
+
...baseBackground("active", props),
|
13128
|
+
...baseBorder("default", props)
|
13129
|
+
},
|
13130
|
+
_expanded: {
|
13131
|
+
...baseBackground("active", props)
|
13132
|
+
}
|
13133
|
+
}
|
13134
|
+
}),
|
13135
|
+
ghost: (props) => ({
|
13136
|
+
trigger: {
|
13137
|
+
_hover: {
|
13138
|
+
...ghostBackground("hover", props)
|
13139
|
+
},
|
13140
|
+
_active: {
|
13141
|
+
...ghostBackground("active", props)
|
13142
|
+
},
|
13143
|
+
_expanded: {
|
13144
|
+
...ghostBackground("active", props),
|
13145
|
+
fontWeight: fontWeights.bold
|
13146
|
+
}
|
13147
|
+
}
|
13148
|
+
}),
|
13149
|
+
floating: (props) => ({
|
13150
|
+
trigger: {
|
13151
|
+
boxShadow: "sm",
|
13152
|
+
...floatingBackground("default", props),
|
13153
|
+
...floatingBorder("default", props),
|
13154
|
+
transition: "all .1s ease-out",
|
13155
|
+
_hover: {
|
13156
|
+
...floatingBackground("hover", props),
|
13157
|
+
...floatingBorder("hover", props)
|
13158
|
+
},
|
13159
|
+
_active: {
|
13160
|
+
...floatingBackground("active", props),
|
13161
|
+
...floatingBorder("active", props)
|
13162
|
+
},
|
13163
|
+
_expanded: {
|
13164
|
+
...floatingBackground("active", props)
|
13165
|
+
}
|
13166
|
+
},
|
13167
|
+
card: {}
|
13168
|
+
})
|
13169
|
+
},
|
13170
|
+
sizes: {
|
13171
|
+
sm: {
|
13172
|
+
trigger: {
|
13173
|
+
paddingX: 1.5,
|
13174
|
+
paddingY: 1,
|
13175
|
+
minHeight: "1.25rem",
|
13176
|
+
fontSize: "xs",
|
13177
|
+
borderRadius: "lg"
|
13178
|
+
}
|
13179
|
+
},
|
13180
|
+
md: {
|
13181
|
+
trigger: {
|
13182
|
+
paddingX: 2,
|
13183
|
+
paddingY: 1.5,
|
13184
|
+
minHeight: "2.625rem",
|
13185
|
+
fontSize: "xs",
|
13186
|
+
borderRadius: "lg"
|
13187
|
+
}
|
13188
|
+
},
|
13189
|
+
lg: {
|
13190
|
+
trigger: {
|
13191
|
+
paddingX: 3,
|
13192
|
+
paddingY: 2,
|
13193
|
+
minHeight: "3.375rem",
|
13194
|
+
fontSize: "sm",
|
13195
|
+
borderRadius: "lg"
|
13196
|
+
}
|
13197
|
+
}
|
13198
|
+
}
|
13199
|
+
});
|
13200
|
+
card_select_default = config9;
|
13201
|
+
}
|
13202
|
+
});
|
13203
|
+
var helpers6, config10, checkbox_default;
|
13204
|
+
var init_checkbox = __esm({
|
13205
|
+
"src/theme/components/checkbox.ts"() {
|
13206
|
+
init_dist4();
|
13207
|
+
init_base_utils();
|
13208
|
+
init_brand_utils();
|
13209
|
+
init_focus_utils();
|
13210
|
+
helpers6 = react.createMultiStyleConfigHelpers(checkboxAnatomy.keys);
|
13211
|
+
config10 = helpers6.defineMultiStyleConfig({
|
13212
|
+
baseStyle: (props) => ({
|
13213
|
+
container: {
|
13214
|
+
_hover: {
|
13215
|
+
"input:enabled:not([aria-invalid]) + .chakra-checkbox__control": {
|
13216
|
+
...baseBackground("hover", props),
|
13217
|
+
borderColor: brandBackground("hover", props).backgroundColor
|
13218
|
+
},
|
13219
|
+
"input:enabled[aria-invalid] + .chakra-checkbox__control": {
|
13220
|
+
backgroundColor: themeTools.mode("white", "inherit")(props),
|
13221
|
+
borderColor: themeTools.mode("outline.error.light", "outline.error.dark")
|
13222
|
+
},
|
13223
|
+
"input:enabled:checked:not([aria-invalid]) + .chakra-checkbox__control": {
|
13224
|
+
...brandBackground("hover", props),
|
13225
|
+
borderColor: brandBackground("hover", props).backgroundColor
|
13226
|
+
},
|
13227
|
+
"input:enabled:checked[aria-invalid] + .chakra-checkbox__control": {
|
13228
|
+
borderColor: themeTools.mode("outline.error.light", "outline.error.dark"),
|
13229
|
+
backgroundColor: themeTools.mode("outline.error.light", "outline.error.dark")
|
13230
|
+
}
|
13231
|
+
}
|
13232
|
+
},
|
13233
|
+
icon: {
|
13234
|
+
fontSize: "1em",
|
13235
|
+
transitionProperty: "transform",
|
13236
|
+
transitionDuration: "normal",
|
13237
|
+
strokeWidth: "1.5px !important"
|
13238
|
+
// Required to make the default icon look correct
|
13239
|
+
},
|
13240
|
+
control: {
|
13241
|
+
width: 4,
|
13242
|
+
height: 4,
|
13243
|
+
transitionProperty: "background, border-color",
|
13244
|
+
transitionDuration: "normal",
|
13245
|
+
border: "2px solid",
|
13246
|
+
borderColor: themeTools.mode(
|
13247
|
+
"base.outline.default.light",
|
13248
|
+
"base.outline.default.dark"
|
13249
|
+
)(props),
|
13250
|
+
borderRadius: "xs",
|
13251
|
+
...baseBackground("default", props),
|
13252
|
+
...focusVisibleStyles(props),
|
13253
|
+
_checked: {
|
13254
|
+
...brandText("default", props),
|
13255
|
+
...brandBackground("default", props),
|
13256
|
+
borderColor: brandBackground("default", props).backgroundColor,
|
13257
|
+
_disabled: {
|
13258
|
+
...baseBackground("disabled", props),
|
13259
|
+
...baseText("disabled", props),
|
13260
|
+
borderColor: "currentColor"
|
13261
|
+
},
|
13262
|
+
_invalid: {
|
13263
|
+
backgroundColor: "brightRed",
|
13264
|
+
borderColor: "brightRed"
|
13265
|
+
}
|
13266
|
+
},
|
13267
|
+
_disabled: {
|
13268
|
+
...baseBackground("disabled", props),
|
13269
|
+
borderColor: baseText("disabled", props).color
|
13270
|
+
},
|
13271
|
+
_invalid: {
|
13272
|
+
...baseBackground("default", props),
|
13273
|
+
borderColor: "brightRed"
|
13274
|
+
}
|
13275
|
+
},
|
13276
|
+
label: {
|
13277
|
+
userSelect: "none",
|
13278
|
+
_disabled: { opacity: 0.4 }
|
13279
|
+
}
|
13280
|
+
})
|
13281
|
+
});
|
13282
|
+
checkbox_default = config10;
|
13283
|
+
}
|
13284
|
+
});
|
13285
|
+
var parts5, helpers7, config11, choice_chip_default;
|
13286
|
+
var init_choice_chip = __esm({
|
13287
|
+
"src/theme/components/choice-chip.ts"() {
|
13288
|
+
init_accent_utils();
|
13289
|
+
init_base_utils();
|
13290
|
+
init_brand_utils();
|
13291
|
+
init_floating_utils();
|
13292
|
+
init_focus_utils();
|
13293
|
+
parts5 = themeTools.anatomy("choice-chip").parts("container", "icon", "label");
|
13294
|
+
helpers7 = react.createMultiStyleConfigHelpers(parts5.keys);
|
13295
|
+
config11 = helpers7.defineMultiStyleConfig({
|
13296
|
+
baseStyle: (props) => ({
|
13297
|
+
container: {
|
13298
|
+
display: "inline-flex",
|
13299
|
+
alignItems: "center",
|
13300
|
+
fontSize: "xs",
|
13301
|
+
cursor: "pointer",
|
13302
|
+
transitionProperty: "all",
|
13303
|
+
borderRadius: "xl",
|
13304
|
+
transitionDuration: "fast",
|
13305
|
+
_checked: {
|
13306
|
+
outlineColor: "transparent",
|
13307
|
+
...accentText("selected", props),
|
13308
|
+
...accentBackground("selected", props),
|
13309
|
+
_hover: {
|
13310
|
+
...brandBackground("hover", props),
|
13311
|
+
...baseText("selected", props),
|
13312
|
+
outlineColor: "transparent"
|
13313
|
+
},
|
13314
|
+
_active: {
|
13315
|
+
...baseText("selected", props),
|
13316
|
+
...brandBackground("active", props)
|
13317
|
+
}
|
13318
|
+
},
|
13319
|
+
_disabled: {
|
13320
|
+
pointerEvents: "none",
|
13321
|
+
boxShadow: "none",
|
13322
|
+
...baseText("disabled", props),
|
13323
|
+
...baseBackground("disabled", props),
|
13324
|
+
_hover: {
|
13325
|
+
...baseBackground("disabled", props),
|
13326
|
+
boxShadow: "none",
|
13327
|
+
...baseText("disabled", props)
|
13328
|
+
},
|
13329
|
+
_checked: {
|
13330
|
+
cursor: "not-allowed",
|
13331
|
+
boxShadow: "none",
|
13332
|
+
...baseText("disabled", props),
|
13333
|
+
...baseBackground("disabled", props),
|
13334
|
+
_hover: {
|
13335
|
+
...baseBackground("disabled", props),
|
13336
|
+
boxShadow: "none",
|
13337
|
+
...baseText("disabled", props)
|
13338
|
+
}
|
13339
|
+
}
|
13340
|
+
},
|
13341
|
+
"input:focus-visible + &": focusVisibleStyles(props)._focusVisible
|
13342
|
+
},
|
13343
|
+
icon: {
|
13344
|
+
marginRight: props.hasLabel ? 1 : 0
|
13345
|
+
}
|
13346
|
+
}),
|
13347
|
+
variants: {
|
13348
|
+
base: (props) => ({
|
13349
|
+
container: {
|
13350
|
+
...baseBorder("default", props),
|
13351
|
+
...baseText("default", props),
|
13352
|
+
_hover: {
|
13353
|
+
...baseText("default", props),
|
13354
|
+
...baseBorder("hover", props)
|
13355
|
+
},
|
13356
|
+
_active: {
|
13357
|
+
...baseBackground("active", props),
|
13358
|
+
...baseBorder("default", props)
|
13359
|
+
}
|
13360
|
+
}
|
13361
|
+
}),
|
13362
|
+
accent: (props) => ({
|
13363
|
+
container: {
|
13364
|
+
...accentBackground("default", props),
|
13365
|
+
...accentText("default", props),
|
13366
|
+
_hover: {
|
13367
|
+
...accentBackground("hover", props),
|
13368
|
+
...accentText("default", props)
|
13369
|
+
},
|
13370
|
+
_active: {
|
13371
|
+
...accentText("default", props),
|
13372
|
+
...accentBackground("active", props)
|
13373
|
+
}
|
13374
|
+
},
|
13375
|
+
_active: {
|
13376
|
+
...accentText("default", props),
|
13377
|
+
...accentBackground("active", props)
|
13378
|
+
}
|
13379
|
+
}),
|
13380
|
+
floating: (props) => ({
|
13381
|
+
container: {
|
13382
|
+
...floatingBackground("default", props),
|
13383
|
+
...baseText("default", props),
|
13384
|
+
...floatingBorder("default", props),
|
13385
|
+
boxShadow: "sm",
|
13386
|
+
_hover: {
|
13387
|
+
...floatingBackground("hover", props),
|
13388
|
+
...floatingBorder("hover", props),
|
13389
|
+
...baseText("default", props),
|
13390
|
+
boxShadow: "md"
|
13391
|
+
},
|
13392
|
+
_active: {
|
13393
|
+
...floatingBackground("active", props),
|
13394
|
+
...floatingBorder("active", props),
|
13395
|
+
...baseText("default", props)
|
13396
|
+
}
|
13397
|
+
}
|
13398
|
+
})
|
13363
13399
|
},
|
13364
|
-
|
13365
|
-
|
13366
|
-
|
13367
|
-
|
13368
|
-
|
13369
|
-
|
13370
|
-
|
13371
|
-
|
13372
|
-
|
13400
|
+
sizes: {
|
13401
|
+
xs: {
|
13402
|
+
container: {
|
13403
|
+
_checked: {
|
13404
|
+
borderRadius: "0.563rem"
|
13405
|
+
},
|
13406
|
+
height: 5,
|
13407
|
+
paddingX: 1.5
|
13408
|
+
}
|
13409
|
+
},
|
13410
|
+
sm: {
|
13411
|
+
container: {
|
13412
|
+
_checked: {
|
13413
|
+
borderRadius: "sm"
|
13414
|
+
},
|
13415
|
+
height: 6,
|
13416
|
+
paddingX: 2
|
13417
|
+
}
|
13418
|
+
},
|
13419
|
+
md: {
|
13420
|
+
container: {
|
13421
|
+
_checked: {
|
13422
|
+
borderRadius: "sm"
|
13423
|
+
},
|
13424
|
+
height: 7,
|
13425
|
+
paddingX: 2
|
13426
|
+
}
|
13427
|
+
},
|
13428
|
+
lg: {
|
13429
|
+
container: {
|
13430
|
+
_checked: {
|
13431
|
+
borderRadius: "md"
|
13432
|
+
},
|
13433
|
+
height: 8,
|
13434
|
+
paddingX: 3
|
13435
|
+
}
|
13436
|
+
}
|
13373
13437
|
},
|
13374
|
-
|
13375
|
-
|
13376
|
-
tokens11__namespace.default.font.style.xs["font-size"].mobile,
|
13377
|
-
null,
|
13378
|
-
null,
|
13379
|
-
tokens11__namespace.default.font.style.xs["font-size"].desktop
|
13380
|
-
],
|
13381
|
-
fontFamily: tokens11__namespace.default.font.style.xs["font-family"],
|
13382
|
-
lineHeight: tokens11__namespace.default.font.style.xs["line-height"]
|
13438
|
+
defaultProps: {
|
13439
|
+
size: "sm"
|
13383
13440
|
}
|
13384
|
-
};
|
13385
|
-
|
13386
|
-
});
|
13387
|
-
var zIndices2;
|
13388
|
-
var init_zIndices = __esm({
|
13389
|
-
"src/theme/foundations/zIndices.ts"() {
|
13390
|
-
zIndices2 = {
|
13391
|
-
hide: tokens11__namespace.default.depth["z-index"].hide,
|
13392
|
-
auto: "auto",
|
13393
|
-
base: tokens11__namespace.default.depth["z-index"].base,
|
13394
|
-
docked: tokens11__namespace.default.depth["z-index"].docked,
|
13395
|
-
dropdown: tokens11__namespace.default.depth["z-index"].dropdown,
|
13396
|
-
sticky: tokens11__namespace.default.depth["z-index"].sticky,
|
13397
|
-
banner: tokens11__namespace.default.depth["z-index"].banner,
|
13398
|
-
overlay: tokens11__namespace.default.depth["z-index"].overlay,
|
13399
|
-
modal: tokens11__namespace.default.depth["z-index"].modal,
|
13400
|
-
popover: tokens11__namespace.default.depth["z-index"].popover,
|
13401
|
-
skipLink: tokens11__namespace.default.depth["z-index"].skipLink,
|
13402
|
-
toast: tokens11__namespace.default.depth["z-index"].toast,
|
13403
|
-
tooltip: tokens11__namespace.default.depth["z-index"].tooltip
|
13404
|
-
};
|
13441
|
+
});
|
13442
|
+
choice_chip_default = config11;
|
13405
13443
|
}
|
13406
13444
|
});
|
13407
|
-
var
|
13408
|
-
var
|
13409
|
-
"src/theme/
|
13410
|
-
|
13411
|
-
|
13412
|
-
|
13413
|
-
|
13445
|
+
var $size6, config12, close_button_default;
|
13446
|
+
var init_close_button = __esm({
|
13447
|
+
"src/theme/components/close-button.ts"() {
|
13448
|
+
init_focus_utils();
|
13449
|
+
init_ghost_utils();
|
13450
|
+
$size6 = themeTools.cssVar("close-button-size");
|
13451
|
+
config12 = react.defineStyleConfig({
|
13452
|
+
baseStyle: (props) => ({
|
13453
|
+
w: [$size6.reference],
|
13454
|
+
h: [$size6.reference],
|
13455
|
+
transitionProperty: "common",
|
13456
|
+
transitionDuration: "normal",
|
13457
|
+
borderRadius: "md",
|
13458
|
+
backgroundColor: "transparent",
|
13459
|
+
color: themeTools.mode("darkGrey", "white")(props),
|
13460
|
+
fontWeight: "normal",
|
13461
|
+
...focusVisibleStyles(props),
|
13462
|
+
_hover: {
|
13463
|
+
...ghostBackground("hover", props),
|
13464
|
+
_disabled: {
|
13465
|
+
color: "dimGrey"
|
13466
|
+
}
|
13414
13467
|
},
|
13415
|
-
|
13416
|
-
|
13468
|
+
_active: {
|
13469
|
+
...ghostBackground("active", props)
|
13417
13470
|
}
|
13418
|
-
})
|
13419
|
-
|
13471
|
+
}),
|
13472
|
+
sizes: {
|
13473
|
+
lg: {
|
13474
|
+
[$size6.variable]: "40px",
|
13475
|
+
fontSize: "xs"
|
13476
|
+
},
|
13477
|
+
md: {
|
13478
|
+
[$size6.variable]: "32px",
|
13479
|
+
fontSize: "0.75rem"
|
13480
|
+
},
|
13481
|
+
sm: {
|
13482
|
+
[$size6.variable]: "24px",
|
13483
|
+
fontSize: "0.625rem"
|
13484
|
+
}
|
13485
|
+
},
|
13486
|
+
defaultProps: {
|
13487
|
+
size: "md"
|
13488
|
+
}
|
13489
|
+
});
|
13490
|
+
close_button_default = config12;
|
13420
13491
|
}
|
13421
13492
|
});
|
13422
|
-
|
13423
|
-
|
13424
|
-
|
13425
|
-
|
13426
|
-
|
13427
|
-
|
13428
|
-
|
13429
|
-
|
13430
|
-
|
13431
|
-
|
13432
|
-
|
13433
|
-
|
13434
|
-
|
13435
|
-
|
13436
|
-
|
13437
|
-
|
13438
|
-
spacing: () => spacing2,
|
13439
|
-
styles: () => styles2,
|
13440
|
-
textStyles: () => textStyles,
|
13441
|
-
zIndices: () => zIndices2
|
13442
|
-
});
|
13443
|
-
var init_foundations = __esm({
|
13444
|
-
"src/theme/foundations/index.ts"() {
|
13445
|
-
init_borders();
|
13446
|
-
init_breakpoints();
|
13447
|
-
init_colors();
|
13448
|
-
init_config();
|
13449
|
-
init_fonts();
|
13450
|
-
init_fontSizes();
|
13451
|
-
init_fontWeights();
|
13452
|
-
init_lineHeights();
|
13453
|
-
init_radii();
|
13454
|
-
init_shadows();
|
13455
|
-
init_sizes();
|
13456
|
-
init_spacing();
|
13457
|
-
init_textStyles();
|
13458
|
-
init_zIndices();
|
13459
|
-
init_styles();
|
13493
|
+
var variants13, defaultProps2, config13, code_default;
|
13494
|
+
var init_code = __esm({
|
13495
|
+
"src/theme/components/code.ts"() {
|
13496
|
+
init_badge();
|
13497
|
+
({ variants: variants13, defaultProps: defaultProps2 } = badge_default);
|
13498
|
+
config13 = react.defineStyleConfig({
|
13499
|
+
baseStyle: {
|
13500
|
+
fontFamily: "monospace",
|
13501
|
+
fontSize: ["mobile.xs", "desktop.xs"],
|
13502
|
+
borderRadius: "xs",
|
13503
|
+
paddingX: 1
|
13504
|
+
},
|
13505
|
+
variants: variants13,
|
13506
|
+
defaultProps: defaultProps2
|
13507
|
+
});
|
13508
|
+
code_default = config13;
|
13460
13509
|
}
|
13461
13510
|
});
|
13462
13511
|
var parts6, $arrowBackground, helpers8, config14, datepicker_default;
|
@@ -13652,44 +13701,49 @@ var init_datepicker2 = __esm({
|
|
13652
13701
|
datepicker_default = config14;
|
13653
13702
|
}
|
13654
13703
|
});
|
13655
|
-
|
13704
|
+
function getSizes(size2) {
|
13705
|
+
const sizes25 = {
|
13706
|
+
sm: {
|
13707
|
+
height: "1px",
|
13708
|
+
dash: "1px",
|
13709
|
+
gap: "4px"
|
13710
|
+
},
|
13711
|
+
md: {
|
13712
|
+
height: "2px",
|
13713
|
+
dash: "3px",
|
13714
|
+
gap: "6px"
|
13715
|
+
},
|
13716
|
+
lg: {
|
13717
|
+
height: "3px",
|
13718
|
+
dash: "3px",
|
13719
|
+
gap: "9px"
|
13720
|
+
}
|
13721
|
+
};
|
13722
|
+
return sizes25[size2] || sizes25["md"];
|
13723
|
+
}
|
13724
|
+
var borderColor, divider_default;
|
13656
13725
|
var init_divider = __esm({
|
13657
13726
|
"src/theme/components/divider.ts"() {
|
13658
13727
|
init_dist3();
|
13659
|
-
|
13660
|
-
isDashed = (props) => props.variant === "dashed";
|
13728
|
+
borderColor = themeTools.mode("blackAlpha.300", "whiteAlpha.300");
|
13661
13729
|
divider_default = defineStyleConfig({
|
13662
13730
|
baseStyle: (props) => ({
|
13663
|
-
borderColor:
|
13731
|
+
borderColor: borderColor(props)
|
13664
13732
|
}),
|
13665
13733
|
variants: {
|
13666
13734
|
solid: {
|
13667
13735
|
borderStyle: "solid"
|
13668
13736
|
},
|
13669
|
-
dashed: (props) =>
|
13670
|
-
|
13671
|
-
|
13672
|
-
|
13673
|
-
|
13674
|
-
|
13675
|
-
|
13676
|
-
|
13677
|
-
|
13678
|
-
|
13679
|
-
borderWidth: isSolid(props) ? "1px" : void 0,
|
13680
|
-
borderRadius: isSolid(props) ? "0.5px" : void 0,
|
13681
|
-
height: isDashed(props) ? "1px" : void 0
|
13682
|
-
}),
|
13683
|
-
md: (props) => ({
|
13684
|
-
borderWidth: isSolid(props) ? "2px" : void 0,
|
13685
|
-
borderRadius: isSolid(props) ? "1px" : "10px",
|
13686
|
-
height: isDashed(props) ? "2px" : void 0
|
13687
|
-
}),
|
13688
|
-
lg: (props) => ({
|
13689
|
-
borderWidth: isSolid(props) ? "3px" : void 0,
|
13690
|
-
borderRadius: isSolid(props) ? "1.5px" : void 0,
|
13691
|
-
height: isDashed(props) ? "3px" : void 0
|
13692
|
-
})
|
13737
|
+
dashed: (props) => {
|
13738
|
+
const { height, dash, gap } = getSizes(props.size);
|
13739
|
+
return {
|
13740
|
+
height,
|
13741
|
+
backgroundImage: `linear-gradient(90deg, ${borderColor(props)}, ${borderColor(props)} ${dash}, transparent ${dash}, transparent ${gap})`,
|
13742
|
+
backgroundPosition: "left bottom",
|
13743
|
+
backgroundRepeat: "repeat-x",
|
13744
|
+
backgroundSize: `${gap} ${height}`
|
13745
|
+
};
|
13746
|
+
}
|
13693
13747
|
},
|
13694
13748
|
defaultProps: {
|
13695
13749
|
variant: "solid",
|
@@ -14071,6 +14125,8 @@ var parts9, helpers13, config20, travel_tag_default, getDeviationContainerStyle,
|
|
14071
14125
|
var init_travel_tag = __esm({
|
14072
14126
|
"src/theme/components/travel-tag.ts"() {
|
14073
14127
|
init_focus_utils();
|
14128
|
+
init_surface_utils();
|
14129
|
+
init_base_utils();
|
14074
14130
|
parts9 = themeTools.anatomy("travel-tag").parts(
|
14075
14131
|
"container",
|
14076
14132
|
"iconContainer",
|
@@ -14093,7 +14149,7 @@ var init_travel_tag = __esm({
|
|
14093
14149
|
transitionDuration: "fast",
|
14094
14150
|
transitionProperty: "common",
|
14095
14151
|
_disabled: {
|
14096
|
-
|
14152
|
+
...surface("disabled", props)
|
14097
14153
|
},
|
14098
14154
|
"button&, a&": {
|
14099
14155
|
boxShadow: "sm",
|
@@ -14110,8 +14166,7 @@ var init_travel_tag = __esm({
|
|
14110
14166
|
iconContainer: {
|
14111
14167
|
padding: 0.5,
|
14112
14168
|
"[aria-disabled=true] &": {
|
14113
|
-
|
14114
|
-
color: "white"
|
14169
|
+
...surface("disabled", props)
|
14115
14170
|
}
|
14116
14171
|
},
|
14117
14172
|
textContainer: {
|
@@ -14119,7 +14174,7 @@ var init_travel_tag = __esm({
|
|
14119
14174
|
paddingRight: 0.5,
|
14120
14175
|
whiteSpace: "nowrap",
|
14121
14176
|
"[aria-disabled=true] &": {
|
14122
|
-
|
14177
|
+
...baseText("disabled", props)
|
14123
14178
|
}
|
14124
14179
|
},
|
14125
14180
|
title: {
|
@@ -14541,7 +14596,10 @@ var init_line_icon = __esm({
|
|
14541
14596
|
alignItems: "center"
|
14542
14597
|
},
|
14543
14598
|
icon: {
|
14544
|
-
color: "white"
|
14599
|
+
color: "white",
|
14600
|
+
"[aria-disabled=true] &": {
|
14601
|
+
color: themeTools.mode("icon.disabled.light", "icon.disabled.dark")
|
14602
|
+
}
|
14545
14603
|
}
|
14546
14604
|
},
|
14547
14605
|
variants: {
|
@@ -16448,7 +16506,7 @@ var init_font_faces = __esm({
|
|
16448
16506
|
"src/theme/font-faces.ts"() {
|
16449
16507
|
exports.fontFaces = `
|
16450
16508
|
@font-face {
|
16451
|
-
font-family: ${
|
16509
|
+
font-family: ${tokens12__namespace.default.asset.font["vy-sans"]["light"].name};
|
16452
16510
|
src: url("https://www.vy.no/styles/font/VySans-Light.woff2") format("woff2"),
|
16453
16511
|
url("https://www.vy.no/styles/font/VySans-Light.woff") format("woff");
|
16454
16512
|
font-style: normal;
|
@@ -16456,7 +16514,7 @@ var init_font_faces = __esm({
|
|
16456
16514
|
font-display: swap
|
16457
16515
|
}
|
16458
16516
|
@font-face {
|
16459
|
-
font-family: ${
|
16517
|
+
font-family: ${tokens12__namespace.default.asset.font["vy-sans"]["light-italic"].name};
|
16460
16518
|
src: url("https://www.vy.no/styles/font/VySans-LightItalic.woff2")
|
16461
16519
|
format("woff2"),
|
16462
16520
|
url("https://www.vy.no/styles/font/VySans-LightItalic.woff") format("woff");
|
@@ -16465,7 +16523,7 @@ var init_font_faces = __esm({
|
|
16465
16523
|
font-display: swap
|
16466
16524
|
}
|
16467
16525
|
@font-face {
|
16468
|
-
font-family: ${
|
16526
|
+
font-family: ${tokens12__namespace.default.asset.font["vy-sans"]["medium"].name};
|
16469
16527
|
src: url("https://www.vy.no/styles/font/VySans-Regular.woff2") format("woff2"),
|
16470
16528
|
url("https://www.vy.no/styles/font/VySans-Regular.woff") format("woff");
|
16471
16529
|
font-style: normal;
|
@@ -16473,7 +16531,7 @@ var init_font_faces = __esm({
|
|
16473
16531
|
font-display: swap
|
16474
16532
|
}
|
16475
16533
|
@font-face {
|
16476
|
-
font-family: ${
|
16534
|
+
font-family: ${tokens12__namespace.default.asset.font["vy-sans"]["medium-italic"].name};
|
16477
16535
|
src: url("https://www.vy.no/styles/font/VySans-RegularItalic.woff2")
|
16478
16536
|
format("woff2"),
|
16479
16537
|
url("https://www.vy.no/styles/font/VySans-RegularItalic.woff")
|
@@ -16483,7 +16541,7 @@ var init_font_faces = __esm({
|
|
16483
16541
|
font-display: swap
|
16484
16542
|
}
|
16485
16543
|
@font-face {
|
16486
|
-
font-family: ${
|
16544
|
+
font-family: ${tokens12__namespace.default.asset.font["vy-sans"]["bold"].name};
|
16487
16545
|
src: url("https://www.vy.no/styles/font/VySans-Bold.woff2") format("woff2"),
|
16488
16546
|
url("https://www.vy.no/styles/font/VySans-Bold.woff") format("woff");
|
16489
16547
|
font-style: normal;
|
@@ -16491,7 +16549,7 @@ var init_font_faces = __esm({
|
|
16491
16549
|
font-display: swap
|
16492
16550
|
}
|
16493
16551
|
@font-face {
|
16494
|
-
font-family: ${
|
16552
|
+
font-family: ${tokens12__namespace.default.asset.font["vy-sans"]["bold-italic"].name};
|
16495
16553
|
src: url("https://www.vy.no/styles/font/VySans-BoldItalic.woff2")
|
16496
16554
|
format("woff2"),
|
16497
16555
|
url("https://www.vy.no/styles/font/VySans-BoldItalic.woff") format("woff");
|
@@ -16500,7 +16558,7 @@ var init_font_faces = __esm({
|
|
16500
16558
|
font-display: swap
|
16501
16559
|
}
|
16502
16560
|
@font-face {
|
16503
|
-
font-family: ${
|
16561
|
+
font-family: ${tokens12__namespace.default.asset.font["vy-display"].name};
|
16504
16562
|
src: url("https://www.vy.no/styles/font/VyDisplay-Medium.woff2")
|
16505
16563
|
format("woff2"),
|
16506
16564
|
url("https://www.vy.no/styles/font/VyDisplay-Medium.woff") format("woff");
|
@@ -16552,7 +16610,7 @@ var init_theme = __esm({
|
|
16552
16610
|
}
|
16553
16611
|
},
|
16554
16612
|
["CargoNet" /* CargoNet */]: {
|
16555
|
-
colors:
|
16613
|
+
colors: tokens12__namespace.default.color.cargonet
|
16556
16614
|
}
|
16557
16615
|
};
|
16558
16616
|
}
|
@@ -17216,7 +17274,7 @@ Object.defineProperty(exports, 'Time', {
|
|
17216
17274
|
enumerable: true,
|
17217
17275
|
get: function () { return date.Time; }
|
17218
17276
|
});
|
17219
|
-
exports.tokens =
|
17277
|
+
exports.tokens = tokens12__namespace;
|
17220
17278
|
exports.Combobox = Combobox;
|
17221
17279
|
exports.DateRangePicker = DateRangePicker;
|
17222
17280
|
exports.DrawerHeader = exports.ModalHeader;
|