@vygruppen/spor-react 10.9.2 → 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 +20 -0
- package/dist/{CountryCodeSelect-ATLJUIQ5.mjs → CountryCodeSelect-46H2DYJ5.mjs} +1 -1
- package/dist/{chunk-5GZRUD7N.mjs → chunk-ROHXFJX2.mjs} +380 -325
- package/dist/index.d.mts +31 -19
- package/dist/index.d.ts +31 -19
- package/dist/index.js +695 -641
- 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/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/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,73 +12936,73 @@ 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,
|
|
13357
12980
|
null,
|
|
13358
12981
|
null,
|
|
13359
|
-
|
|
12982
|
+
tokens12__namespace.default.font.style.md["font-size"].desktop
|
|
13360
12983
|
],
|
|
13361
|
-
fontFamily:
|
|
13362
|
-
lineHeight:
|
|
12984
|
+
fontFamily: tokens12__namespace.default.font.style.md["font-family"],
|
|
12985
|
+
lineHeight: tokens12__namespace.default.font.style.md["line-height"]
|
|
13363
12986
|
},
|
|
13364
12987
|
sm: {
|
|
13365
12988
|
fontSize: [
|
|
13366
|
-
|
|
12989
|
+
tokens12__namespace.default.font.style.sm["font-size"].mobile,
|
|
13367
12990
|
null,
|
|
13368
12991
|
null,
|
|
13369
|
-
|
|
12992
|
+
tokens12__namespace.default.font.style.sm["font-size"].desktop
|
|
13370
12993
|
],
|
|
13371
|
-
fontFamily:
|
|
13372
|
-
lineHeight:
|
|
12994
|
+
fontFamily: tokens12__namespace.default.font.style.sm["font-family"],
|
|
12995
|
+
lineHeight: tokens12__namespace.default.font.style.sm["line-height"]
|
|
13373
12996
|
},
|
|
13374
12997
|
xs: {
|
|
13375
12998
|
fontSize: [
|
|
13376
|
-
|
|
12999
|
+
tokens12__namespace.default.font.style.xs["font-size"].mobile,
|
|
13377
13000
|
null,
|
|
13378
13001
|
null,
|
|
13379
|
-
|
|
13002
|
+
tokens12__namespace.default.font.style.xs["font-size"].desktop
|
|
13380
13003
|
],
|
|
13381
|
-
fontFamily:
|
|
13382
|
-
lineHeight:
|
|
13004
|
+
fontFamily: tokens12__namespace.default.font.style.xs["font-family"],
|
|
13005
|
+
lineHeight: tokens12__namespace.default.font.style.xs["line-height"]
|
|
13383
13006
|
}
|
|
13384
13007
|
};
|
|
13385
13008
|
}
|
|
@@ -13388,19 +13011,19 @@ var zIndices2;
|
|
|
13388
13011
|
var init_zIndices = __esm({
|
|
13389
13012
|
"src/theme/foundations/zIndices.ts"() {
|
|
13390
13013
|
zIndices2 = {
|
|
13391
|
-
hide:
|
|
13014
|
+
hide: tokens12__namespace.default.depth["z-index"].hide,
|
|
13392
13015
|
auto: "auto",
|
|
13393
|
-
base:
|
|
13394
|
-
docked:
|
|
13395
|
-
dropdown:
|
|
13396
|
-
sticky:
|
|
13397
|
-
banner:
|
|
13398
|
-
overlay:
|
|
13399
|
-
modal:
|
|
13400
|
-
popover:
|
|
13401
|
-
skipLink:
|
|
13402
|
-
toast:
|
|
13403
|
-
tooltip:
|
|
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
|
|
13404
13027
|
};
|
|
13405
13028
|
}
|
|
13406
13029
|
});
|
|
@@ -13426,7 +13049,7 @@ __export(foundations_exports, {
|
|
|
13426
13049
|
borders: () => borders2,
|
|
13427
13050
|
breakpoints: () => breakpoints2,
|
|
13428
13051
|
colors: () => colors2,
|
|
13429
|
-
config: () =>
|
|
13052
|
+
config: () => config8,
|
|
13430
13053
|
fontSizes: () => fontSizes,
|
|
13431
13054
|
fontWeights: () => fontWeights,
|
|
13432
13055
|
fonts: () => fonts,
|
|
@@ -13459,56 +13082,482 @@ var init_foundations = __esm({
|
|
|
13459
13082
|
init_styles();
|
|
13460
13083
|
}
|
|
13461
13084
|
});
|
|
13462
|
-
var
|
|
13463
|
-
var
|
|
13464
|
-
"src/theme/components/
|
|
13465
|
-
|
|
13466
|
-
|
|
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();
|
|
13467
13090
|
init_base_utils();
|
|
13468
|
-
init_brand_utils();
|
|
13469
13091
|
init_floating_utils();
|
|
13470
13092
|
init_focus_utils();
|
|
13471
13093
|
init_ghost_utils();
|
|
13472
|
-
|
|
13473
|
-
|
|
13474
|
-
|
|
13475
|
-
|
|
13476
|
-
"arrow",
|
|
13477
|
-
"calendarPopover",
|
|
13478
|
-
"calendar",
|
|
13479
|
-
"weekdays",
|
|
13480
|
-
"weekend",
|
|
13481
|
-
"dateCell",
|
|
13482
|
-
"inputLabel",
|
|
13483
|
-
"dateTimeSegment",
|
|
13484
|
-
"cell"
|
|
13485
|
-
);
|
|
13486
|
-
$arrowBackground = themeTools.cssVar("popper-arrow-bg");
|
|
13487
|
-
helpers8 = react.createMultiStyleConfigHelpers(parts6.keys);
|
|
13488
|
-
config14 = helpers8.defineMultiStyleConfig({
|
|
13094
|
+
init_foundations();
|
|
13095
|
+
parts4 = anatomy("card-select").parts("trigger", "card");
|
|
13096
|
+
helpers5 = createMultiStyleConfigHelpers(parts4.keys);
|
|
13097
|
+
config9 = helpers5.defineMultiStyleConfig({
|
|
13489
13098
|
baseStyle: (props) => ({
|
|
13490
|
-
|
|
13491
|
-
|
|
13492
|
-
transitionDuration: "fast",
|
|
13493
|
-
borderRadius: "sm",
|
|
13099
|
+
trigger: {
|
|
13100
|
+
appearance: "none",
|
|
13494
13101
|
display: "flex",
|
|
13495
|
-
flex: 1,
|
|
13496
|
-
paddingY: 0.5,
|
|
13497
13102
|
alignItems: "center",
|
|
13498
|
-
|
|
13499
|
-
|
|
13500
|
-
|
|
13501
|
-
|
|
13502
|
-
pointerEvents: "none",
|
|
13503
|
-
...baseBackground("disabled", props),
|
|
13504
|
-
...baseBorder("disabled", props),
|
|
13505
|
-
...baseText("disabled", props)
|
|
13506
|
-
},
|
|
13507
|
-
_focusWithin: {
|
|
13508
|
-
...focusVisibleStyles(props)._focusVisible
|
|
13509
|
-
}
|
|
13103
|
+
transitionProperty: "outline",
|
|
13104
|
+
transitionDuration: "fast",
|
|
13105
|
+
...baseText("default", props),
|
|
13106
|
+
...focusVisibleStyles(props)
|
|
13510
13107
|
},
|
|
13511
|
-
|
|
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
|
+
})
|
|
13399
|
+
},
|
|
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
|
+
}
|
|
13437
|
+
},
|
|
13438
|
+
defaultProps: {
|
|
13439
|
+
size: "sm"
|
|
13440
|
+
}
|
|
13441
|
+
});
|
|
13442
|
+
choice_chip_default = config11;
|
|
13443
|
+
}
|
|
13444
|
+
});
|
|
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
|
+
}
|
|
13467
|
+
},
|
|
13468
|
+
_active: {
|
|
13469
|
+
...ghostBackground("active", props)
|
|
13470
|
+
}
|
|
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;
|
|
13491
|
+
}
|
|
13492
|
+
});
|
|
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;
|
|
13509
|
+
}
|
|
13510
|
+
});
|
|
13511
|
+
var parts6, $arrowBackground, helpers8, config14, datepicker_default;
|
|
13512
|
+
var init_datepicker2 = __esm({
|
|
13513
|
+
"src/theme/components/datepicker.ts"() {
|
|
13514
|
+
init_foundations();
|
|
13515
|
+
init_accent_utils();
|
|
13516
|
+
init_base_utils();
|
|
13517
|
+
init_brand_utils();
|
|
13518
|
+
init_floating_utils();
|
|
13519
|
+
init_focus_utils();
|
|
13520
|
+
init_ghost_utils();
|
|
13521
|
+
init_surface_utils();
|
|
13522
|
+
parts6 = themeTools.anatomy("datepicker").parts(
|
|
13523
|
+
"wrapper",
|
|
13524
|
+
"calendarTriggerButton",
|
|
13525
|
+
"arrow",
|
|
13526
|
+
"calendarPopover",
|
|
13527
|
+
"calendar",
|
|
13528
|
+
"weekdays",
|
|
13529
|
+
"weekend",
|
|
13530
|
+
"dateCell",
|
|
13531
|
+
"inputLabel",
|
|
13532
|
+
"dateTimeSegment",
|
|
13533
|
+
"cell"
|
|
13534
|
+
);
|
|
13535
|
+
$arrowBackground = themeTools.cssVar("popper-arrow-bg");
|
|
13536
|
+
helpers8 = react.createMultiStyleConfigHelpers(parts6.keys);
|
|
13537
|
+
config14 = helpers8.defineMultiStyleConfig({
|
|
13538
|
+
baseStyle: (props) => ({
|
|
13539
|
+
wrapper: {
|
|
13540
|
+
transitionProperty: "box-shadow",
|
|
13541
|
+
transitionDuration: "fast",
|
|
13542
|
+
borderRadius: "sm",
|
|
13543
|
+
display: "flex",
|
|
13544
|
+
flex: 1,
|
|
13545
|
+
paddingY: 0.5,
|
|
13546
|
+
alignItems: "center",
|
|
13547
|
+
_hover: {
|
|
13548
|
+
zIndex: zIndices2.docked
|
|
13549
|
+
},
|
|
13550
|
+
_disabled: {
|
|
13551
|
+
pointerEvents: "none",
|
|
13552
|
+
...baseBackground("disabled", props),
|
|
13553
|
+
...baseBorder("disabled", props),
|
|
13554
|
+
...baseText("disabled", props)
|
|
13555
|
+
},
|
|
13556
|
+
_focusWithin: {
|
|
13557
|
+
...focusVisibleStyles(props)._focusVisible
|
|
13558
|
+
}
|
|
13559
|
+
},
|
|
13560
|
+
inputLabel: {
|
|
13512
13561
|
fontSize: "mobile.xs",
|
|
13513
13562
|
margin: 0,
|
|
13514
13563
|
cursor: "text"
|
|
@@ -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",
|
|
@@ -16452,7 +16506,7 @@ var init_font_faces = __esm({
|
|
|
16452
16506
|
"src/theme/font-faces.ts"() {
|
|
16453
16507
|
exports.fontFaces = `
|
|
16454
16508
|
@font-face {
|
|
16455
|
-
font-family: ${
|
|
16509
|
+
font-family: ${tokens12__namespace.default.asset.font["vy-sans"]["light"].name};
|
|
16456
16510
|
src: url("https://www.vy.no/styles/font/VySans-Light.woff2") format("woff2"),
|
|
16457
16511
|
url("https://www.vy.no/styles/font/VySans-Light.woff") format("woff");
|
|
16458
16512
|
font-style: normal;
|
|
@@ -16460,7 +16514,7 @@ var init_font_faces = __esm({
|
|
|
16460
16514
|
font-display: swap
|
|
16461
16515
|
}
|
|
16462
16516
|
@font-face {
|
|
16463
|
-
font-family: ${
|
|
16517
|
+
font-family: ${tokens12__namespace.default.asset.font["vy-sans"]["light-italic"].name};
|
|
16464
16518
|
src: url("https://www.vy.no/styles/font/VySans-LightItalic.woff2")
|
|
16465
16519
|
format("woff2"),
|
|
16466
16520
|
url("https://www.vy.no/styles/font/VySans-LightItalic.woff") format("woff");
|
|
@@ -16469,7 +16523,7 @@ var init_font_faces = __esm({
|
|
|
16469
16523
|
font-display: swap
|
|
16470
16524
|
}
|
|
16471
16525
|
@font-face {
|
|
16472
|
-
font-family: ${
|
|
16526
|
+
font-family: ${tokens12__namespace.default.asset.font["vy-sans"]["medium"].name};
|
|
16473
16527
|
src: url("https://www.vy.no/styles/font/VySans-Regular.woff2") format("woff2"),
|
|
16474
16528
|
url("https://www.vy.no/styles/font/VySans-Regular.woff") format("woff");
|
|
16475
16529
|
font-style: normal;
|
|
@@ -16477,7 +16531,7 @@ var init_font_faces = __esm({
|
|
|
16477
16531
|
font-display: swap
|
|
16478
16532
|
}
|
|
16479
16533
|
@font-face {
|
|
16480
|
-
font-family: ${
|
|
16534
|
+
font-family: ${tokens12__namespace.default.asset.font["vy-sans"]["medium-italic"].name};
|
|
16481
16535
|
src: url("https://www.vy.no/styles/font/VySans-RegularItalic.woff2")
|
|
16482
16536
|
format("woff2"),
|
|
16483
16537
|
url("https://www.vy.no/styles/font/VySans-RegularItalic.woff")
|
|
@@ -16487,7 +16541,7 @@ var init_font_faces = __esm({
|
|
|
16487
16541
|
font-display: swap
|
|
16488
16542
|
}
|
|
16489
16543
|
@font-face {
|
|
16490
|
-
font-family: ${
|
|
16544
|
+
font-family: ${tokens12__namespace.default.asset.font["vy-sans"]["bold"].name};
|
|
16491
16545
|
src: url("https://www.vy.no/styles/font/VySans-Bold.woff2") format("woff2"),
|
|
16492
16546
|
url("https://www.vy.no/styles/font/VySans-Bold.woff") format("woff");
|
|
16493
16547
|
font-style: normal;
|
|
@@ -16495,7 +16549,7 @@ var init_font_faces = __esm({
|
|
|
16495
16549
|
font-display: swap
|
|
16496
16550
|
}
|
|
16497
16551
|
@font-face {
|
|
16498
|
-
font-family: ${
|
|
16552
|
+
font-family: ${tokens12__namespace.default.asset.font["vy-sans"]["bold-italic"].name};
|
|
16499
16553
|
src: url("https://www.vy.no/styles/font/VySans-BoldItalic.woff2")
|
|
16500
16554
|
format("woff2"),
|
|
16501
16555
|
url("https://www.vy.no/styles/font/VySans-BoldItalic.woff") format("woff");
|
|
@@ -16504,7 +16558,7 @@ var init_font_faces = __esm({
|
|
|
16504
16558
|
font-display: swap
|
|
16505
16559
|
}
|
|
16506
16560
|
@font-face {
|
|
16507
|
-
font-family: ${
|
|
16561
|
+
font-family: ${tokens12__namespace.default.asset.font["vy-display"].name};
|
|
16508
16562
|
src: url("https://www.vy.no/styles/font/VyDisplay-Medium.woff2")
|
|
16509
16563
|
format("woff2"),
|
|
16510
16564
|
url("https://www.vy.no/styles/font/VyDisplay-Medium.woff") format("woff");
|
|
@@ -16556,7 +16610,7 @@ var init_theme = __esm({
|
|
|
16556
16610
|
}
|
|
16557
16611
|
},
|
|
16558
16612
|
["CargoNet" /* CargoNet */]: {
|
|
16559
|
-
colors:
|
|
16613
|
+
colors: tokens12__namespace.default.color.cargonet
|
|
16560
16614
|
}
|
|
16561
16615
|
};
|
|
16562
16616
|
}
|
|
@@ -17220,7 +17274,7 @@ Object.defineProperty(exports, 'Time', {
|
|
|
17220
17274
|
enumerable: true,
|
|
17221
17275
|
get: function () { return date.Time; }
|
|
17222
17276
|
});
|
|
17223
|
-
exports.tokens =
|
|
17277
|
+
exports.tokens = tokens12__namespace;
|
|
17224
17278
|
exports.Combobox = Combobox;
|
|
17225
17279
|
exports.DateRangePicker = DateRangePicker;
|
|
17226
17280
|
exports.DrawerHeader = exports.ModalHeader;
|