@vygruppen/spor-react 13.4.1 → 13.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +10 -10
- package/.turbo/turbo-postinstall.log +2 -2
- package/CHANGELOG.md +21 -0
- package/__tests__/accordion.test.tsx +110 -0
- package/dist/index.cjs +300 -244
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +122 -2
- package/dist/index.d.ts +122 -2
- package/dist/index.mjs +300 -244
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/datepicker/DateField.tsx +1 -1
- package/src/datepicker/DatePicker.tsx +1 -1
- package/src/datepicker/DateTimeSegment.tsx +4 -4
- package/src/datepicker/TimeField.tsx +54 -2
- package/src/datepicker/TimePicker.tsx +0 -1
- package/src/dialog/Dialog.tsx +3 -1
- package/src/input/AttachedInputs.tsx +24 -11
- package/src/theme/recipes/textarea.ts +2 -0
- package/src/theme/slot-recipes/breadcrumb.ts +3 -6
- package/src/theme/slot-recipes/datepicker.ts +1 -0
- package/src/typography/Badge.tsx +9 -1
package/dist/index.cjs
CHANGED
|
@@ -15,7 +15,7 @@ var lu = require('react-icons/lu');
|
|
|
15
15
|
var reactSwipeable = require('react-swipeable');
|
|
16
16
|
var awesomePhonenumber = require('awesome-phonenumber');
|
|
17
17
|
var react$2 = require('@emotion/react');
|
|
18
|
-
var
|
|
18
|
+
var tokens21 = require('@vygruppen/spor-design-tokens');
|
|
19
19
|
var tokens4 = require('@vygruppen/spor-design-tokens/raw-tokens');
|
|
20
20
|
var react$1 = require('@ark-ui/react');
|
|
21
21
|
var anatomy = require('@ark-ui/react/anatomy');
|
|
@@ -44,7 +44,7 @@ function _interopNamespace(e) {
|
|
|
44
44
|
|
|
45
45
|
var spor_icon_react_star__namespace = /*#__PURE__*/_interopNamespace(spor_icon_react_star);
|
|
46
46
|
var React14__namespace = /*#__PURE__*/_interopNamespace(React14);
|
|
47
|
-
var
|
|
47
|
+
var tokens21__namespace = /*#__PURE__*/_interopNamespace(tokens21);
|
|
48
48
|
var tokens4__default = /*#__PURE__*/_interopDefault(tokens4);
|
|
49
49
|
|
|
50
50
|
var __defProp = Object.defineProperty;
|
|
@@ -227,8 +227,8 @@ function useTranslation() {
|
|
|
227
227
|
};
|
|
228
228
|
return { t, language };
|
|
229
229
|
}
|
|
230
|
-
function createTexts(
|
|
231
|
-
return
|
|
230
|
+
function createTexts(texts29) {
|
|
231
|
+
return texts29;
|
|
232
232
|
}
|
|
233
233
|
function Lottie({ animationData }) {
|
|
234
234
|
const { View } = lottieReact.useLottie({ animationData });
|
|
@@ -2485,7 +2485,7 @@ var DateTimeSegment = ({
|
|
|
2485
2485
|
segment,
|
|
2486
2486
|
state,
|
|
2487
2487
|
ariaLabel,
|
|
2488
|
-
|
|
2488
|
+
ariaLabelledby,
|
|
2489
2489
|
variant
|
|
2490
2490
|
}) => {
|
|
2491
2491
|
const internalRef = React14.useRef(null);
|
|
@@ -2515,8 +2515,8 @@ var DateTimeSegment = ({
|
|
|
2515
2515
|
borderRadius: "xs",
|
|
2516
2516
|
fontSize: ["mobile.sm", "desktop.sm"],
|
|
2517
2517
|
css: styles.dateTimeSegment,
|
|
2518
|
-
"aria-label":
|
|
2519
|
-
"aria-labelledby":
|
|
2518
|
+
"aria-label": ariaLabel,
|
|
2519
|
+
"aria-labelledby": ariaLabelledby,
|
|
2520
2520
|
children: isPaddable(segment.type) ? segment.text.padStart(2, "0") : segment.text
|
|
2521
2521
|
}
|
|
2522
2522
|
);
|
|
@@ -2565,7 +2565,7 @@ var DateField = ({
|
|
|
2565
2565
|
DateTimeSegment,
|
|
2566
2566
|
{
|
|
2567
2567
|
segment,
|
|
2568
|
-
|
|
2568
|
+
ariaLabel: t(getAriaLabel(segment.type)),
|
|
2569
2569
|
state
|
|
2570
2570
|
},
|
|
2571
2571
|
index
|
|
@@ -2692,7 +2692,7 @@ var DatePicker = ({
|
|
|
2692
2692
|
}
|
|
2693
2693
|
(_a6 = props.onClick) == null ? void 0 : _a6.call(props);
|
|
2694
2694
|
};
|
|
2695
|
-
const popoverContent = /* @__PURE__ */ jsxRuntime.jsx(react.Popover.Positioner, { children: /* @__PURE__ */ jsxRuntime.jsx(react.Popover.Content, { css: styles.calendarPopover, children: /* @__PURE__ */ jsxRuntime.jsx(react.Popover.Body, { minWidth: "
|
|
2695
|
+
const popoverContent = /* @__PURE__ */ jsxRuntime.jsx(react.Popover.Positioner, { children: /* @__PURE__ */ jsxRuntime.jsx(react.Popover.Content, { css: styles.calendarPopover, children: /* @__PURE__ */ jsxRuntime.jsx(react.Popover.Body, { minWidth: "18rem", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2696
2696
|
Calendar2,
|
|
2697
2697
|
{
|
|
2698
2698
|
...calendarProps,
|
|
@@ -2901,8 +2901,9 @@ function DateRangePicker({
|
|
|
2901
2901
|
var TimeField = ({ state, ...props }) => {
|
|
2902
2902
|
const ref = React14.useRef(null);
|
|
2903
2903
|
const { labelProps, fieldProps } = reactAria.useTimeField(props, state, ref);
|
|
2904
|
+
const { t } = useTranslation();
|
|
2904
2905
|
return /* @__PURE__ */ jsxRuntime.jsxs(react.Box, { children: [
|
|
2905
|
-
/* @__PURE__ */ jsxRuntime.
|
|
2906
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
2906
2907
|
react.chakra.label,
|
|
2907
2908
|
{
|
|
2908
2909
|
...labelProps,
|
|
@@ -2919,10 +2920,21 @@ var TimeField = ({ state, ...props }) => {
|
|
|
2919
2920
|
overflow: "hidden",
|
|
2920
2921
|
textOverflow: "ellipsis",
|
|
2921
2922
|
maxWidth: "80%",
|
|
2922
|
-
children:
|
|
2923
|
+
children: [
|
|
2924
|
+
props.label,
|
|
2925
|
+
/* @__PURE__ */ jsxRuntime.jsx(react.Field.RequiredIndicator, {})
|
|
2926
|
+
]
|
|
2923
2927
|
}
|
|
2924
2928
|
),
|
|
2925
|
-
/* @__PURE__ */ jsxRuntime.jsx(react.Flex, { ...fieldProps, ref, paddingTop: "3", paddingBottom: "0.5", children: state.segments.map((segment, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2929
|
+
/* @__PURE__ */ jsxRuntime.jsx(react.Flex, { ...fieldProps, ref, paddingTop: "3", paddingBottom: "0.5", children: state.segments.map((segment, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2930
|
+
DateTimeSegment,
|
|
2931
|
+
{
|
|
2932
|
+
segment,
|
|
2933
|
+
state,
|
|
2934
|
+
ariaLabel: t(getAriaLabel2(segment.type))
|
|
2935
|
+
},
|
|
2936
|
+
index
|
|
2937
|
+
)) }),
|
|
2926
2938
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2927
2939
|
"input",
|
|
2928
2940
|
{
|
|
@@ -2933,6 +2945,48 @@ var TimeField = ({ state, ...props }) => {
|
|
|
2933
2945
|
)
|
|
2934
2946
|
] });
|
|
2935
2947
|
};
|
|
2948
|
+
var getAriaLabel2 = (segmentType) => {
|
|
2949
|
+
switch (segmentType) {
|
|
2950
|
+
case "hour": {
|
|
2951
|
+
return texts12.hour;
|
|
2952
|
+
}
|
|
2953
|
+
case "minute": {
|
|
2954
|
+
return texts12.minute;
|
|
2955
|
+
}
|
|
2956
|
+
case "second": {
|
|
2957
|
+
return texts12.second;
|
|
2958
|
+
}
|
|
2959
|
+
default: {
|
|
2960
|
+
return texts12.default;
|
|
2961
|
+
}
|
|
2962
|
+
}
|
|
2963
|
+
};
|
|
2964
|
+
var texts12 = createTexts({
|
|
2965
|
+
hour: {
|
|
2966
|
+
nb: "Velg time",
|
|
2967
|
+
nn: "Vel time",
|
|
2968
|
+
sv: "V\xE4lj timme",
|
|
2969
|
+
en: "Choose hour"
|
|
2970
|
+
},
|
|
2971
|
+
minute: {
|
|
2972
|
+
nb: "Velg minutt",
|
|
2973
|
+
nn: "Vel minutt",
|
|
2974
|
+
sv: "V\xE4lj minut",
|
|
2975
|
+
en: "Choose minute"
|
|
2976
|
+
},
|
|
2977
|
+
second: {
|
|
2978
|
+
nb: "Velg sekund",
|
|
2979
|
+
nn: "Vel sekund",
|
|
2980
|
+
sv: "V\xE4lj sekund",
|
|
2981
|
+
en: "Choose second"
|
|
2982
|
+
},
|
|
2983
|
+
default: {
|
|
2984
|
+
nb: "Velg tid",
|
|
2985
|
+
nn: "Vel tid",
|
|
2986
|
+
sv: "V\xE4lj tid",
|
|
2987
|
+
en: "Choose time"
|
|
2988
|
+
}
|
|
2989
|
+
});
|
|
2936
2990
|
var TimePicker = ({
|
|
2937
2991
|
label: externalLabel,
|
|
2938
2992
|
value,
|
|
@@ -2948,7 +3002,7 @@ var TimePicker = ({
|
|
|
2948
3002
|
const isDisabled = isDisabledExternally ?? fieldDisabled ?? false;
|
|
2949
3003
|
const { t } = useTranslation();
|
|
2950
3004
|
const locale = useCurrentLocale();
|
|
2951
|
-
const label = externalLabel ?? t(
|
|
3005
|
+
const label = externalLabel ?? t(texts13.time);
|
|
2952
3006
|
const state = reactStately.useTimeFieldState({
|
|
2953
3007
|
value,
|
|
2954
3008
|
defaultValue,
|
|
@@ -2981,15 +3035,15 @@ var TimePicker = ({
|
|
|
2981
3035
|
})
|
|
2982
3036
|
);
|
|
2983
3037
|
};
|
|
2984
|
-
const backwardsLabel = `${t(
|
|
2985
|
-
|
|
3038
|
+
const backwardsLabel = `${t(texts13.backwards)} ${minuteInterval} ${t(
|
|
3039
|
+
texts13.minutes
|
|
2986
3040
|
)}`;
|
|
2987
|
-
const forwardsLabel = `${t(
|
|
2988
|
-
|
|
3041
|
+
const forwardsLabel = `${t(texts13.forwards)} ${minuteInterval} ${t(
|
|
3042
|
+
texts13.minutes
|
|
2989
3043
|
)}`;
|
|
2990
|
-
const inputLabel = label ?? t(
|
|
3044
|
+
const inputLabel = label ?? t(texts13.time);
|
|
2991
3045
|
const ariaLabel = `${inputLabel} \u2013 ${t(
|
|
2992
|
-
|
|
3046
|
+
texts13.selectedTimeIs(`${(dateTime == null ? void 0 : dateTime.hour) ?? 0} ${(dateTime == null ? void 0 : dateTime.minute) ?? 0}`)
|
|
2993
3047
|
)}`;
|
|
2994
3048
|
return /* @__PURE__ */ jsxRuntime.jsx(Field3, { as: "time", ...boxProps, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2995
3049
|
StyledField,
|
|
@@ -3002,7 +3056,6 @@ var TimePicker = ({
|
|
|
3002
3056
|
opacity: isDisabled ? 0.5 : 1,
|
|
3003
3057
|
pointerEvents: isDisabled ? "none" : "auto",
|
|
3004
3058
|
"aria-disabled": isDisabled,
|
|
3005
|
-
"aria-live": "assertive",
|
|
3006
3059
|
"aria-label": ariaLabel,
|
|
3007
3060
|
position: "relative",
|
|
3008
3061
|
...boxProps,
|
|
@@ -3042,7 +3095,7 @@ var TimePicker = ({
|
|
|
3042
3095
|
}
|
|
3043
3096
|
) });
|
|
3044
3097
|
};
|
|
3045
|
-
var
|
|
3098
|
+
var texts13 = createTexts({
|
|
3046
3099
|
selectedTimeIs: (time) => ({
|
|
3047
3100
|
nb: `Valgt tidspunkt er ${time}`,
|
|
3048
3101
|
nn: `Valt tidspunkt er ${time}`,
|
|
@@ -3083,11 +3136,12 @@ var DialogContent = ({
|
|
|
3083
3136
|
portalled = true,
|
|
3084
3137
|
portalRef,
|
|
3085
3138
|
backdrop = true,
|
|
3139
|
+
positionerProps,
|
|
3086
3140
|
...rest
|
|
3087
3141
|
} = props;
|
|
3088
3142
|
return /* @__PURE__ */ jsxRuntime.jsxs(react.Portal, { disabled: !portalled, container: portalRef, children: [
|
|
3089
3143
|
backdrop && /* @__PURE__ */ jsxRuntime.jsx(react.Dialog.Backdrop, {}),
|
|
3090
|
-
/* @__PURE__ */ jsxRuntime.jsx(react.Dialog.Positioner, { children: /* @__PURE__ */ jsxRuntime.jsx(react.Dialog.Content, { ref, ...rest, asChild: false, children }) })
|
|
3144
|
+
/* @__PURE__ */ jsxRuntime.jsx(react.Dialog.Positioner, { ...positionerProps, children: /* @__PURE__ */ jsxRuntime.jsx(react.Dialog.Content, { ref, ...rest, asChild: false, children }) })
|
|
3091
3145
|
] });
|
|
3092
3146
|
};
|
|
3093
3147
|
var DialogCloseTrigger = function DialogCloseTrigger2({
|
|
@@ -3183,7 +3237,7 @@ var DrawerCloseTrigger = function DrawerCloseTrigger2({
|
|
|
3183
3237
|
{
|
|
3184
3238
|
variant: "ghost",
|
|
3185
3239
|
icon: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.CloseFill24Icon, {}),
|
|
3186
|
-
label: t(
|
|
3240
|
+
label: t(texts14.close)
|
|
3187
3241
|
}
|
|
3188
3242
|
) : /* @__PURE__ */ jsxRuntime.jsx(CloseButton, { size: "md" }) });
|
|
3189
3243
|
};
|
|
@@ -3197,7 +3251,7 @@ var DrawerBackTrigger = ({
|
|
|
3197
3251
|
{
|
|
3198
3252
|
variant: "ghost",
|
|
3199
3253
|
icon: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.ArrowLeftFill24Icon, {}),
|
|
3200
|
-
label: t(
|
|
3254
|
+
label: t(texts14.back)
|
|
3201
3255
|
}
|
|
3202
3256
|
) });
|
|
3203
3257
|
};
|
|
@@ -3229,7 +3283,7 @@ var DrawerBackdrop = react.Drawer.Backdrop;
|
|
|
3229
3283
|
var DrawerTitle = react.Drawer.Title;
|
|
3230
3284
|
var DrawerActionTrigger = react.Drawer.ActionTrigger;
|
|
3231
3285
|
var DrawerHeader = react.Drawer.Header;
|
|
3232
|
-
var
|
|
3286
|
+
var texts14 = createTexts({
|
|
3233
3287
|
back: {
|
|
3234
3288
|
en: "Back",
|
|
3235
3289
|
nb: "Tilbake",
|
|
@@ -3259,7 +3313,7 @@ var TextLink = ({
|
|
|
3259
3313
|
}) => {
|
|
3260
3314
|
const { t } = useTranslation();
|
|
3261
3315
|
const isExternal = external ?? Boolean((href == null ? void 0 : href.startsWith("http://")) || (href == null ? void 0 : href.startsWith("https://")));
|
|
3262
|
-
const externalLabel = t ? t(
|
|
3316
|
+
const externalLabel = t ? t(texts15.externalLink) : texts15.externalLink.en;
|
|
3263
3317
|
if (props.asChild && React14.isValidElement(children)) {
|
|
3264
3318
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3265
3319
|
react.Link,
|
|
@@ -3298,7 +3352,7 @@ var TextLink = ({
|
|
|
3298
3352
|
}
|
|
3299
3353
|
);
|
|
3300
3354
|
};
|
|
3301
|
-
var
|
|
3355
|
+
var texts15 = createTexts({
|
|
3302
3356
|
externalLink: {
|
|
3303
3357
|
nb: "Ekstern lenke",
|
|
3304
3358
|
nn: "Ekstern lenke",
|
|
@@ -3363,6 +3417,7 @@ var ErrorSummaryItem = ({
|
|
|
3363
3417
|
};
|
|
3364
3418
|
var AttachedInputs = ({
|
|
3365
3419
|
ref,
|
|
3420
|
+
flipButtonProps,
|
|
3366
3421
|
...props
|
|
3367
3422
|
}) => {
|
|
3368
3423
|
const recipe = react.useRecipe({ key: "attachedInputs" });
|
|
@@ -3391,7 +3446,11 @@ var AttachedInputs = ({
|
|
|
3391
3446
|
variant: "tertiary",
|
|
3392
3447
|
size: ["xs", null, "sm"],
|
|
3393
3448
|
"aria-label": flipAriaLabel,
|
|
3394
|
-
onClick: onFlip
|
|
3449
|
+
onClick: onFlip,
|
|
3450
|
+
position: "absolute",
|
|
3451
|
+
bg: "bg",
|
|
3452
|
+
outlineWidth: "1px",
|
|
3453
|
+
...flipButtonProps
|
|
3395
3454
|
}
|
|
3396
3455
|
)
|
|
3397
3456
|
] });
|
|
@@ -3400,23 +3459,20 @@ var SwitchButton = react.chakra(
|
|
|
3400
3459
|
IconButton,
|
|
3401
3460
|
react.defineRecipe({
|
|
3402
3461
|
base: {
|
|
3403
|
-
|
|
3404
|
-
zIndex: "101 !important",
|
|
3405
|
-
// eslint-disable-next-line spor/use-semantic-tokens
|
|
3406
|
-
bg: "bg !important",
|
|
3407
|
-
outlineWidth: "1px !important",
|
|
3462
|
+
zIndex: "101",
|
|
3408
3463
|
_focus: {
|
|
3409
|
-
outlineOffset: "0px
|
|
3464
|
+
outlineOffset: "0px",
|
|
3465
|
+
alignItems: "center"
|
|
3410
3466
|
}
|
|
3411
3467
|
},
|
|
3412
3468
|
variants: {
|
|
3413
3469
|
orientation: {
|
|
3414
3470
|
horizontal: {
|
|
3415
|
-
top: "calc(50% -
|
|
3416
|
-
right: "calc(50% -
|
|
3471
|
+
top: "calc(50% - 1.1rem)",
|
|
3472
|
+
right: "calc(50% - 1.1rem)"
|
|
3417
3473
|
},
|
|
3418
3474
|
vertical: {
|
|
3419
|
-
top: "calc(50% -
|
|
3475
|
+
top: "calc(50% - 1.1rem)",
|
|
3420
3476
|
right: "3rem",
|
|
3421
3477
|
transform: "rotate(90deg)"
|
|
3422
3478
|
}
|
|
@@ -3682,10 +3738,10 @@ function Autocomplete({
|
|
|
3682
3738
|
}
|
|
3683
3739
|
}
|
|
3684
3740
|
) }),
|
|
3685
|
-
/* @__PURE__ */ jsxRuntime.jsx(react.Combobox.IndicatorGroup, { children: /* @__PURE__ */ jsxRuntime.jsx(react.Combobox.ClearTrigger, { asChild: true, "aria-label": t(
|
|
3741
|
+
/* @__PURE__ */ jsxRuntime.jsx(react.Combobox.IndicatorGroup, { children: /* @__PURE__ */ jsxRuntime.jsx(react.Combobox.ClearTrigger, { asChild: true, "aria-label": t(texts16.clearValue), children: /* @__PURE__ */ jsxRuntime.jsx(CloseButton, { size: "xs", tabIndex: 0 }) }) })
|
|
3686
3742
|
] }),
|
|
3687
3743
|
/* @__PURE__ */ jsxRuntime.jsx(react.Combobox.Positioner, { children: /* @__PURE__ */ jsxRuntime.jsxs(react.Combobox.Content, { children: [
|
|
3688
|
-
!loading && /* @__PURE__ */ jsxRuntime.jsx(react.Combobox.Empty, { children: emptyLabel ?? t(
|
|
3744
|
+
!loading && /* @__PURE__ */ jsxRuntime.jsx(react.Combobox.Empty, { children: emptyLabel ?? t(texts16.noItemsFound) }),
|
|
3689
3745
|
loading ? /* @__PURE__ */ jsxRuntime.jsx(ColorSpinner, { width: "1.5rem", p: "2" }) : filteredChildren
|
|
3690
3746
|
] }) })
|
|
3691
3747
|
] });
|
|
@@ -3744,7 +3800,7 @@ var extractItemsFromChildren = (children) => {
|
|
|
3744
3800
|
});
|
|
3745
3801
|
return items;
|
|
3746
3802
|
};
|
|
3747
|
-
var
|
|
3803
|
+
var texts16 = createTexts({
|
|
3748
3804
|
noItemsFound: {
|
|
3749
3805
|
nb: "Ingen resultater",
|
|
3750
3806
|
nn: "Ingen resultat",
|
|
@@ -4561,7 +4617,7 @@ var NumericStepper = ({
|
|
|
4561
4617
|
{
|
|
4562
4618
|
icon: /* @__PURE__ */ jsxRuntime.jsx(SubtractIcon, { stepLabel: clampedStepSize }),
|
|
4563
4619
|
"aria-label": t(
|
|
4564
|
-
|
|
4620
|
+
texts17.decrementButtonAriaLabel(
|
|
4565
4621
|
clampedStepSize,
|
|
4566
4622
|
stepSize === 1 ? ariaLabelContext.singular : ariaLabelContext.plural
|
|
4567
4623
|
)
|
|
@@ -4588,7 +4644,7 @@ var NumericStepper = ({
|
|
|
4588
4644
|
css: styles.input,
|
|
4589
4645
|
width: `${Math.max(value.toString().length + 1, 3)}ch`,
|
|
4590
4646
|
"aria-live": "assertive",
|
|
4591
|
-
"aria-label": ariaLabelContext.plural === "" ? "" : t(
|
|
4647
|
+
"aria-label": ariaLabelContext.plural === "" ? "" : t(texts17.currentNumberAriaLabel(ariaLabelContext.plural)),
|
|
4592
4648
|
onChange: (event) => {
|
|
4593
4649
|
const numericInput = Number(event.target.value);
|
|
4594
4650
|
if (Number.isNaN(numericInput)) {
|
|
@@ -4609,7 +4665,7 @@ var NumericStepper = ({
|
|
|
4609
4665
|
paddingX: 0.5,
|
|
4610
4666
|
padding: 0,
|
|
4611
4667
|
textAlign: "center",
|
|
4612
|
-
"aria-label": ariaLabelContext.plural === "" ? "" : t(
|
|
4668
|
+
"aria-label": ariaLabelContext.plural === "" ? "" : t(texts17.currentNumberAriaLabel(ariaLabelContext.plural)),
|
|
4613
4669
|
children: value
|
|
4614
4670
|
}
|
|
4615
4671
|
),
|
|
@@ -4619,7 +4675,7 @@ var NumericStepper = ({
|
|
|
4619
4675
|
ref: addButtonRef,
|
|
4620
4676
|
icon: /* @__PURE__ */ jsxRuntime.jsx(AddIcon, { stepLabel: clampedStepSize }),
|
|
4621
4677
|
"aria-label": t(
|
|
4622
|
-
|
|
4678
|
+
texts17.incrementButtonAriaLabel(
|
|
4623
4679
|
clampedStepSize,
|
|
4624
4680
|
stepSize === 1 ? ariaLabelContext.singular : ariaLabelContext.plural
|
|
4625
4681
|
)
|
|
@@ -4693,7 +4749,7 @@ var AddIcon = ({ stepLabel }) => /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Frag
|
|
|
4693
4749
|
] }),
|
|
4694
4750
|
stepLabel > 1 && /* @__PURE__ */ jsxRuntime.jsx(react.chakra.span, { paddingRight: "1", children: stepLabel.toString() })
|
|
4695
4751
|
] });
|
|
4696
|
-
var
|
|
4752
|
+
var texts17 = createTexts({
|
|
4697
4753
|
currentNumberAriaLabel(ariaContext) {
|
|
4698
4754
|
return {
|
|
4699
4755
|
nb: `Valgt antall ${ariaContext}`,
|
|
@@ -4759,7 +4815,7 @@ var PasswordInput = ({
|
|
|
4759
4815
|
setVisible(!visible);
|
|
4760
4816
|
},
|
|
4761
4817
|
size,
|
|
4762
|
-
children: visible ? t(
|
|
4818
|
+
children: visible ? t(texts18.hidePassword) : t(texts18.showPassword)
|
|
4763
4819
|
}
|
|
4764
4820
|
),
|
|
4765
4821
|
size,
|
|
@@ -4784,7 +4840,7 @@ var VisibilityTrigger = ({
|
|
|
4784
4840
|
}
|
|
4785
4841
|
);
|
|
4786
4842
|
};
|
|
4787
|
-
var
|
|
4843
|
+
var texts18 = createTexts({
|
|
4788
4844
|
showPassword: {
|
|
4789
4845
|
nb: "Vis",
|
|
4790
4846
|
nn: "Vis",
|
|
@@ -4836,7 +4892,7 @@ var CountryCodeSelect = ({
|
|
|
4836
4892
|
positioning: { placement: "bottom", flip: false },
|
|
4837
4893
|
collection: filteredCallingCodes,
|
|
4838
4894
|
lazyMount: true,
|
|
4839
|
-
"aria-label": t(
|
|
4895
|
+
"aria-label": t(texts19.countryCode),
|
|
4840
4896
|
sideRadiusVariant: "rightSideSquare",
|
|
4841
4897
|
size: props.size,
|
|
4842
4898
|
role: "combobox",
|
|
@@ -4844,7 +4900,7 @@ var CountryCodeSelect = ({
|
|
|
4844
4900
|
}
|
|
4845
4901
|
);
|
|
4846
4902
|
};
|
|
4847
|
-
var
|
|
4903
|
+
var texts19 = createTexts({
|
|
4848
4904
|
countryCode: {
|
|
4849
4905
|
nb: "Landkode",
|
|
4850
4906
|
nn: "Landskode",
|
|
@@ -4868,7 +4924,7 @@ var PhoneNumberInput = ({
|
|
|
4868
4924
|
size = "md"
|
|
4869
4925
|
} = props;
|
|
4870
4926
|
const { t } = useTranslation();
|
|
4871
|
-
const label = externalLabel ?? (optional ? t(
|
|
4927
|
+
const label = externalLabel ?? (optional ? t(texts20.phoneNumberOptional) : t(texts20.phoneNumber));
|
|
4872
4928
|
const [value, onChange] = react.useControllableState({
|
|
4873
4929
|
value: externalValue,
|
|
4874
4930
|
onChange: externalOnChange,
|
|
@@ -4924,7 +4980,7 @@ var PhoneNumberInput = ({
|
|
|
4924
4980
|
)
|
|
4925
4981
|
] });
|
|
4926
4982
|
};
|
|
4927
|
-
var
|
|
4983
|
+
var texts20 = createTexts({
|
|
4928
4984
|
phoneNumber: {
|
|
4929
4985
|
nb: "Telefonnummer",
|
|
4930
4986
|
nn: "Telefonnummer",
|
|
@@ -4977,16 +5033,16 @@ var SearchInput = ({
|
|
|
4977
5033
|
variant: "ghost",
|
|
4978
5034
|
type: "button",
|
|
4979
5035
|
size: "sm",
|
|
4980
|
-
"aria-label": t(
|
|
5036
|
+
"aria-label": t(texts21.reset),
|
|
4981
5037
|
icon: size == "md" ? /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.CloseOutline24Icon, {}) : /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.CloseOutline18Icon, {}),
|
|
4982
5038
|
onClick: onReset
|
|
4983
5039
|
}
|
|
4984
5040
|
),
|
|
4985
|
-
label: label ?? t(
|
|
5041
|
+
label: label ?? t(texts21.label)
|
|
4986
5042
|
}
|
|
4987
5043
|
);
|
|
4988
5044
|
};
|
|
4989
|
-
var
|
|
5045
|
+
var texts21 = createTexts({
|
|
4990
5046
|
label: {
|
|
4991
5047
|
nb: "S\xF8k",
|
|
4992
5048
|
nn: "S\xF8k",
|
|
@@ -6040,14 +6096,14 @@ var JumpButton = ({
|
|
|
6040
6096
|
as: "button",
|
|
6041
6097
|
ref,
|
|
6042
6098
|
css: styles.root,
|
|
6043
|
-
"aria-label": direction === "forward" ? t(
|
|
6099
|
+
"aria-label": direction === "forward" ? t(texts22.forward) : t(texts22.backward),
|
|
6044
6100
|
disabled,
|
|
6045
6101
|
...props,
|
|
6046
6102
|
children: direction === "forward" ? /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.Forward15MediaControllerFill30Icon, { css: styles.icon }) : /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.Backward15MediaControllerFill30Icon, { css: styles.icon })
|
|
6047
6103
|
}
|
|
6048
6104
|
);
|
|
6049
6105
|
};
|
|
6050
|
-
var
|
|
6106
|
+
var texts22 = createTexts({
|
|
6051
6107
|
forward: {
|
|
6052
6108
|
nb: "15 sekunder frem",
|
|
6053
6109
|
nn: "15 sekunder fram",
|
|
@@ -6075,14 +6131,14 @@ var PlayPauseButton = ({
|
|
|
6075
6131
|
ref,
|
|
6076
6132
|
as: "button",
|
|
6077
6133
|
css: styles.root,
|
|
6078
|
-
"aria-label": playing ? t(
|
|
6134
|
+
"aria-label": playing ? t(texts23.pause) : t(texts23.play),
|
|
6079
6135
|
disabled,
|
|
6080
6136
|
...props,
|
|
6081
6137
|
children: playing ? /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.PauseMediaControllerFill24Icon, { css: styles.icon }) : /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.PlayMediaControllerFill24Icon, { css: styles.icon })
|
|
6082
6138
|
}
|
|
6083
6139
|
);
|
|
6084
6140
|
};
|
|
6085
|
-
var
|
|
6141
|
+
var texts23 = createTexts({
|
|
6086
6142
|
pause: {
|
|
6087
6143
|
nb: "Pause",
|
|
6088
6144
|
nn: "Pause",
|
|
@@ -6110,14 +6166,14 @@ var SkipButton = ({
|
|
|
6110
6166
|
ref,
|
|
6111
6167
|
as: "button",
|
|
6112
6168
|
css: styles.root,
|
|
6113
|
-
"aria-label": direction === "forward" ? t(
|
|
6169
|
+
"aria-label": direction === "forward" ? t(texts24.next) : t(texts24.previous),
|
|
6114
6170
|
disabled,
|
|
6115
6171
|
...props,
|
|
6116
6172
|
children: direction === "forward" ? /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.NextMediaControllerFill30Icon, { css: styles.icon }) : /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.PreviousMediaControllerFill30Icon, { css: styles.icon })
|
|
6117
6173
|
}
|
|
6118
6174
|
);
|
|
6119
6175
|
};
|
|
6120
|
-
var
|
|
6176
|
+
var texts24 = createTexts({
|
|
6121
6177
|
next: {
|
|
6122
6178
|
nb: "Neste",
|
|
6123
6179
|
nn: "Neste",
|
|
@@ -6232,7 +6288,7 @@ var NudgeActions = ({ ...props }) => {
|
|
|
6232
6288
|
var NextButton = ({ isLastStep, onNext }) => {
|
|
6233
6289
|
const { t } = useTranslation();
|
|
6234
6290
|
if (isLastStep)
|
|
6235
|
-
return /* @__PURE__ */ jsxRuntime.jsx(react.PopoverCloseTrigger, { children: /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "tertiary", size: "xs", children: t(
|
|
6291
|
+
return /* @__PURE__ */ jsxRuntime.jsx(react.PopoverCloseTrigger, { children: /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "tertiary", size: "xs", children: t(texts25.close) }) });
|
|
6236
6292
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6237
6293
|
Button,
|
|
6238
6294
|
{
|
|
@@ -6240,11 +6296,11 @@ var NextButton = ({ isLastStep, onNext }) => {
|
|
|
6240
6296
|
size: "xs",
|
|
6241
6297
|
rightIcon: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.ArrowRightFill18Icon, {}),
|
|
6242
6298
|
onClick: onNext,
|
|
6243
|
-
children: t(
|
|
6299
|
+
children: t(texts25.nextStep)
|
|
6244
6300
|
}
|
|
6245
6301
|
);
|
|
6246
6302
|
};
|
|
6247
|
-
var
|
|
6303
|
+
var texts25 = createTexts({
|
|
6248
6304
|
nextStep: {
|
|
6249
6305
|
nb: "Neste",
|
|
6250
6306
|
nn: "Neste",
|
|
@@ -6320,7 +6376,7 @@ var PaginationItem = ({
|
|
|
6320
6376
|
to: rootProps.getHref(props.value)
|
|
6321
6377
|
},
|
|
6322
6378
|
ref,
|
|
6323
|
-
"aria-label": t(
|
|
6379
|
+
"aria-label": t(texts26.pageOf(props.value, totalPages)),
|
|
6324
6380
|
...props,
|
|
6325
6381
|
children: props.value
|
|
6326
6382
|
}
|
|
@@ -6331,7 +6387,7 @@ var PaginationItem = ({
|
|
|
6331
6387
|
{
|
|
6332
6388
|
as: props.as ?? "button",
|
|
6333
6389
|
ref,
|
|
6334
|
-
"aria-label": t(
|
|
6390
|
+
"aria-label": t(texts26.pageOf(props.value, totalPages)),
|
|
6335
6391
|
"aria-current": page === props.value,
|
|
6336
6392
|
...props,
|
|
6337
6393
|
children: props.value
|
|
@@ -6361,7 +6417,7 @@ var PaginationPrevTrigger = ({
|
|
|
6361
6417
|
},
|
|
6362
6418
|
ref,
|
|
6363
6419
|
css: styles.item,
|
|
6364
|
-
"aria-label": t(
|
|
6420
|
+
"aria-label": t(texts26.previousPage),
|
|
6365
6421
|
...props,
|
|
6366
6422
|
children: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.DropdownLeftOutline18Icon, {})
|
|
6367
6423
|
}
|
|
@@ -6372,7 +6428,7 @@ var PaginationPrevTrigger = ({
|
|
|
6372
6428
|
{
|
|
6373
6429
|
ref,
|
|
6374
6430
|
asChild: true,
|
|
6375
|
-
"aria-label": t(
|
|
6431
|
+
"aria-label": t(texts26.previousPage),
|
|
6376
6432
|
as: props.as || "button",
|
|
6377
6433
|
css: styles.item,
|
|
6378
6434
|
...props,
|
|
@@ -6401,7 +6457,7 @@ var PaginationNextTrigger = ({
|
|
|
6401
6457
|
to: rootProps.getHref(props.value)
|
|
6402
6458
|
},
|
|
6403
6459
|
css: styles.item,
|
|
6404
|
-
"aria-label": t(
|
|
6460
|
+
"aria-label": t(texts26.nextPage),
|
|
6405
6461
|
...props,
|
|
6406
6462
|
children: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.DropdownRightOutline18Icon, {})
|
|
6407
6463
|
}
|
|
@@ -6412,7 +6468,7 @@ var PaginationNextTrigger = ({
|
|
|
6412
6468
|
{
|
|
6413
6469
|
ref,
|
|
6414
6470
|
css: styles.item,
|
|
6415
|
-
"aria-label": t(
|
|
6471
|
+
"aria-label": t(texts26.nextPage),
|
|
6416
6472
|
as: props.as || "button",
|
|
6417
6473
|
...props,
|
|
6418
6474
|
children: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.DropdownRightOutline18Icon, {})
|
|
@@ -6439,7 +6495,7 @@ var PaginationItems = (props) => {
|
|
|
6439
6495
|
);
|
|
6440
6496
|
}) });
|
|
6441
6497
|
};
|
|
6442
|
-
var
|
|
6498
|
+
var texts26 = createTexts({
|
|
6443
6499
|
previousPage: {
|
|
6444
6500
|
nb: "Forrige side",
|
|
6445
6501
|
nn: "F\xF8rre side",
|
|
@@ -6539,7 +6595,7 @@ var ProgressIndicator = ({
|
|
|
6539
6595
|
"aria-valuemin": 1,
|
|
6540
6596
|
"aria-valuemax": numberOfSteps,
|
|
6541
6597
|
"aria-valuenow": activeStep,
|
|
6542
|
-
"aria-valuetext": t(
|
|
6598
|
+
"aria-valuetext": t(texts27.stepsOf(activeStep, numberOfSteps)),
|
|
6543
6599
|
ref,
|
|
6544
6600
|
children: /* @__PURE__ */ jsxRuntime.jsx(react.Box, { css: { ...styles.container, ...css }, children: Array.from({ length: numberOfSteps }, (_, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
6545
6601
|
react.Box,
|
|
@@ -6558,7 +6614,7 @@ var ProgressIndicator = ({
|
|
|
6558
6614
|
}
|
|
6559
6615
|
);
|
|
6560
6616
|
};
|
|
6561
|
-
var
|
|
6617
|
+
var texts27 = createTexts({
|
|
6562
6618
|
stepsOf: (activeStep, numberOfSteps) => ({
|
|
6563
6619
|
nb: `Steg ${activeStep} av ${numberOfSteps}`,
|
|
6564
6620
|
nn: `Steg ${activeStep} av ${numberOfSteps}`,
|
|
@@ -6568,7 +6624,7 @@ var texts26 = createTexts({
|
|
|
6568
6624
|
});
|
|
6569
6625
|
var fontFaces = `
|
|
6570
6626
|
@font-face {
|
|
6571
|
-
font-family: ${
|
|
6627
|
+
font-family: ${tokens21__namespace.default.asset.font["vy-sans"]["light"].name};
|
|
6572
6628
|
src: url("https://www.vy.no/styles/font/VySans-Light.woff2") format("woff2"),
|
|
6573
6629
|
url("https://www.vy.no/styles/font/VySans-Light.woff") format("woff");
|
|
6574
6630
|
font-style: normal;
|
|
@@ -6576,7 +6632,7 @@ var fontFaces = `
|
|
|
6576
6632
|
font-display: swap
|
|
6577
6633
|
}
|
|
6578
6634
|
@font-face {
|
|
6579
|
-
font-family: ${
|
|
6635
|
+
font-family: ${tokens21__namespace.default.asset.font["vy-sans"]["light-italic"].name};
|
|
6580
6636
|
src: url("https://www.vy.no/styles/font/VySans-LightItalic.woff2")
|
|
6581
6637
|
format("woff2"),
|
|
6582
6638
|
url("https://www.vy.no/styles/font/VySans-LightItalic.woff") format("woff");
|
|
@@ -6585,7 +6641,7 @@ var fontFaces = `
|
|
|
6585
6641
|
font-display: swap
|
|
6586
6642
|
}
|
|
6587
6643
|
@font-face {
|
|
6588
|
-
font-family: ${
|
|
6644
|
+
font-family: ${tokens21__namespace.default.asset.font["vy-sans"]["medium"].name};
|
|
6589
6645
|
src: url("https://www.vy.no/styles/font/VySans-Regular.woff2") format("woff2"),
|
|
6590
6646
|
url("https://www.vy.no/styles/font/VySans-Regular.woff") format("woff");
|
|
6591
6647
|
font-style: normal;
|
|
@@ -6593,7 +6649,7 @@ var fontFaces = `
|
|
|
6593
6649
|
font-display: swap
|
|
6594
6650
|
}
|
|
6595
6651
|
@font-face {
|
|
6596
|
-
font-family: ${
|
|
6652
|
+
font-family: ${tokens21__namespace.default.asset.font["vy-sans"]["medium-italic"].name};
|
|
6597
6653
|
src: url("https://www.vy.no/styles/font/VySans-RegularItalic.woff2")
|
|
6598
6654
|
format("woff2"),
|
|
6599
6655
|
url("https://www.vy.no/styles/font/VySans-RegularItalic.woff")
|
|
@@ -6603,7 +6659,7 @@ var fontFaces = `
|
|
|
6603
6659
|
font-display: swap
|
|
6604
6660
|
}
|
|
6605
6661
|
@font-face {
|
|
6606
|
-
font-family: ${
|
|
6662
|
+
font-family: ${tokens21__namespace.default.asset.font["vy-sans"]["bold"].name};
|
|
6607
6663
|
src: url("https://www.vy.no/styles/font/VySans-Bold.woff2") format("woff2"),
|
|
6608
6664
|
url("https://www.vy.no/styles/font/VySans-Bold.woff") format("woff");
|
|
6609
6665
|
font-style: normal;
|
|
@@ -6611,7 +6667,7 @@ var fontFaces = `
|
|
|
6611
6667
|
font-display: swap
|
|
6612
6668
|
}
|
|
6613
6669
|
@font-face {
|
|
6614
|
-
font-family: ${
|
|
6670
|
+
font-family: ${tokens21__namespace.default.asset.font["vy-sans"]["bold-italic"].name};
|
|
6615
6671
|
src: url("https://www.vy.no/styles/font/VySans-BoldItalic.woff2")
|
|
6616
6672
|
format("woff2"),
|
|
6617
6673
|
url("https://www.vy.no/styles/font/VySans-BoldItalic.woff") format("woff");
|
|
@@ -6620,7 +6676,7 @@ var fontFaces = `
|
|
|
6620
6676
|
font-display: swap
|
|
6621
6677
|
}
|
|
6622
6678
|
@font-face {
|
|
6623
|
-
font-family: ${
|
|
6679
|
+
font-family: ${tokens21__namespace.default.asset.font["vy-display"].name};
|
|
6624
6680
|
src: url("https://www.vy.no/styles/font/VyDisplay-Medium.woff2")
|
|
6625
6681
|
format("woff2"),
|
|
6626
6682
|
url("https://www.vy.no/styles/font/VyDisplay-Medium.woff") format("woff");
|
|
@@ -6754,7 +6810,7 @@ var Stepper = function Stepper2({
|
|
|
6754
6810
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6755
6811
|
IconButton,
|
|
6756
6812
|
{
|
|
6757
|
-
"aria-label": t(
|
|
6813
|
+
"aria-label": t(texts28.back),
|
|
6758
6814
|
icon: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.ArrowLeftFill24Icon, {}),
|
|
6759
6815
|
variant: "ghost",
|
|
6760
6816
|
size: "sm",
|
|
@@ -6778,7 +6834,7 @@ var Stepper = function Stepper2({
|
|
|
6778
6834
|
children: heading
|
|
6779
6835
|
}
|
|
6780
6836
|
),
|
|
6781
|
-
/* @__PURE__ */ jsxRuntime.jsx(react.Box, { css: style.stepCounter, "data-part": "step-counter", children: t(
|
|
6837
|
+
/* @__PURE__ */ jsxRuntime.jsx(react.Box, { css: style.stepCounter, "data-part": "step-counter", children: t(texts28.stepsOf(activeStep, numberOfSteps)) })
|
|
6782
6838
|
]
|
|
6783
6839
|
}
|
|
6784
6840
|
) }),
|
|
@@ -6797,7 +6853,7 @@ var Stepper = function Stepper2({
|
|
|
6797
6853
|
}
|
|
6798
6854
|
) });
|
|
6799
6855
|
};
|
|
6800
|
-
var
|
|
6856
|
+
var texts28 = createTexts({
|
|
6801
6857
|
stepsOf: (activeStep, numberOfSteps) => ({
|
|
6802
6858
|
nb: `Steg ${activeStep}/${numberOfSteps}`,
|
|
6803
6859
|
nn: `Steg ${activeStep}/${numberOfSteps}`,
|
|
@@ -7120,7 +7176,7 @@ var buttonRecipe = react.defineRecipe({
|
|
|
7120
7176
|
background: "surface.disabled"
|
|
7121
7177
|
},
|
|
7122
7178
|
_focus: {
|
|
7123
|
-
outlineOffset:
|
|
7179
|
+
outlineOffset: tokens21__namespace.default.size.stroke.md
|
|
7124
7180
|
}
|
|
7125
7181
|
},
|
|
7126
7182
|
variants: {
|
|
@@ -7151,19 +7207,19 @@ var buttonRecipe = react.defineRecipe({
|
|
|
7151
7207
|
color: "text.core",
|
|
7152
7208
|
outline: "solid",
|
|
7153
7209
|
fontWeight: "normal",
|
|
7154
|
-
outlineWidth:
|
|
7210
|
+
outlineWidth: tokens21__namespace.default.size.stroke.sm,
|
|
7155
7211
|
outlineColor: "outline.core",
|
|
7156
7212
|
_hover: {
|
|
7157
|
-
outlineWidth:
|
|
7213
|
+
outlineWidth: tokens21__namespace.default.size.stroke.md,
|
|
7158
7214
|
outlineColor: "outline.core.hover",
|
|
7159
7215
|
_active: {
|
|
7160
7216
|
background: "surface.core.active",
|
|
7161
|
-
outlineWidth:
|
|
7217
|
+
outlineWidth: tokens21__namespace.default.size.stroke.sm,
|
|
7162
7218
|
outlineColor: "outline.core"
|
|
7163
7219
|
}
|
|
7164
7220
|
},
|
|
7165
7221
|
_focus: {
|
|
7166
|
-
outlineWidth:
|
|
7222
|
+
outlineWidth: tokens21__namespace.default.size.stroke.sm
|
|
7167
7223
|
}
|
|
7168
7224
|
},
|
|
7169
7225
|
ghost: {
|
|
@@ -7491,15 +7547,15 @@ var pressableCardRecipe = react.defineRecipe({
|
|
|
7491
7547
|
},
|
|
7492
7548
|
core: {
|
|
7493
7549
|
outlineColor: "outline.core",
|
|
7494
|
-
outlineWidth:
|
|
7550
|
+
outlineWidth: tokens21__namespace.default.size.stroke.sm,
|
|
7495
7551
|
outlineStyle: "solid",
|
|
7496
7552
|
_hover: {
|
|
7497
7553
|
outlineColor: "outline.core.hover",
|
|
7498
|
-
outlineWidth:
|
|
7554
|
+
outlineWidth: tokens21__namespace.default.size.stroke.md,
|
|
7499
7555
|
outlineStyle: "solid",
|
|
7500
7556
|
_active: {
|
|
7501
7557
|
backgroundColor: "surface.core.active",
|
|
7502
|
-
outlineWidth:
|
|
7558
|
+
outlineWidth: tokens21__namespace.default.size.stroke.sm
|
|
7503
7559
|
}
|
|
7504
7560
|
}
|
|
7505
7561
|
},
|
|
@@ -7684,7 +7740,9 @@ var textareaRecipe = react.defineRecipe({
|
|
|
7684
7740
|
borderTop: "0.8rem solid transparent",
|
|
7685
7741
|
"&:focus-visible, &:not(:placeholder-shown)": {
|
|
7686
7742
|
borderTop: "var(--label-height) solid transparent"
|
|
7687
|
-
}
|
|
7743
|
+
},
|
|
7744
|
+
fontSize: "mobile.md",
|
|
7745
|
+
paddingLeft: 3
|
|
7688
7746
|
},
|
|
7689
7747
|
variants: {
|
|
7690
7748
|
variant: {
|
|
@@ -7725,34 +7783,34 @@ var cargonetColors = react.defineSemanticTokens.colors({
|
|
|
7725
7783
|
...tokens4__default.default.color["cargonet"].color.cargonet
|
|
7726
7784
|
});
|
|
7727
7785
|
var radii = react.defineSemanticTokens.radii({
|
|
7728
|
-
none: { value:
|
|
7729
|
-
xxs: { value:
|
|
7730
|
-
xs: { value:
|
|
7731
|
-
sm: { value:
|
|
7732
|
-
md: { value:
|
|
7733
|
-
lg: { value:
|
|
7734
|
-
xl: { value:
|
|
7735
|
-
"2xl": { value:
|
|
7786
|
+
none: { value: tokens21__namespace.default.size["border-radius"].none },
|
|
7787
|
+
xxs: { value: tokens21__namespace.default.size["border-radius"].xxs },
|
|
7788
|
+
xs: { value: tokens21__namespace.default.size["border-radius"].xs },
|
|
7789
|
+
sm: { value: tokens21__namespace.default.size["border-radius"].sm },
|
|
7790
|
+
md: { value: tokens21__namespace.default.size["border-radius"].md },
|
|
7791
|
+
lg: { value: tokens21__namespace.default.size["border-radius"].lg },
|
|
7792
|
+
xl: { value: tokens21__namespace.default.size["border-radius"].xl },
|
|
7793
|
+
"2xl": { value: tokens21__namespace.default.size["border-radius"]["2xl"] },
|
|
7736
7794
|
round: { value: "50%" }
|
|
7737
7795
|
});
|
|
7738
7796
|
var shadows = react.defineSemanticTokens.shadows({
|
|
7739
7797
|
none: { value: "none" },
|
|
7740
7798
|
sm: {
|
|
7741
7799
|
value: {
|
|
7742
|
-
_light:
|
|
7743
|
-
_dark:
|
|
7800
|
+
_light: tokens21__namespace.default.depth.shadow.sm.value._light,
|
|
7801
|
+
_dark: tokens21__namespace.default.depth.shadow.sm.value._dark
|
|
7744
7802
|
}
|
|
7745
7803
|
},
|
|
7746
7804
|
md: {
|
|
7747
7805
|
value: {
|
|
7748
|
-
_light:
|
|
7749
|
-
_dark:
|
|
7806
|
+
_light: tokens21__namespace.default.depth.shadow.md.value._light,
|
|
7807
|
+
_dark: tokens21__namespace.default.depth.shadow.md.value._dark
|
|
7750
7808
|
}
|
|
7751
7809
|
},
|
|
7752
7810
|
lg: {
|
|
7753
7811
|
value: {
|
|
7754
|
-
_light:
|
|
7755
|
-
_dark:
|
|
7812
|
+
_light: tokens21__namespace.default.depth.shadow.lg.value._light,
|
|
7813
|
+
_dark: tokens21__namespace.default.depth.shadow.lg.value._dark
|
|
7756
7814
|
}
|
|
7757
7815
|
}
|
|
7758
7816
|
});
|
|
@@ -8131,7 +8189,7 @@ var accordionSlotRecipe = react.defineSlotRecipe({
|
|
|
8131
8189
|
core: {
|
|
8132
8190
|
item: {
|
|
8133
8191
|
outline: "solid",
|
|
8134
|
-
outlineWidth:
|
|
8192
|
+
outlineWidth: tokens21__namespace.default.size.stroke.sm,
|
|
8135
8193
|
outlineColor: "outline.core"
|
|
8136
8194
|
},
|
|
8137
8195
|
itemTrigger: {
|
|
@@ -8139,14 +8197,14 @@ var accordionSlotRecipe = react.defineSlotRecipe({
|
|
|
8139
8197
|
borderBottomRadius: "none"
|
|
8140
8198
|
},
|
|
8141
8199
|
"&:hover": {
|
|
8142
|
-
outlineWidth:
|
|
8200
|
+
outlineWidth: tokens21__namespace.default.size.stroke.md,
|
|
8143
8201
|
outlineColor: "outline.core",
|
|
8144
8202
|
outline: "2px solid",
|
|
8145
8203
|
outlineOffset: 0
|
|
8146
8204
|
},
|
|
8147
8205
|
"&:active": {
|
|
8148
8206
|
backgroundColor: "surface.core.active",
|
|
8149
|
-
outlineWidth:
|
|
8207
|
+
outlineWidth: tokens21__namespace.default.size.stroke.sm,
|
|
8150
8208
|
outline: "none"
|
|
8151
8209
|
}
|
|
8152
8210
|
}
|
|
@@ -8164,7 +8222,7 @@ var accordionSlotRecipe = react.defineSlotRecipe({
|
|
|
8164
8222
|
floating: {
|
|
8165
8223
|
item: {
|
|
8166
8224
|
outline: "1px solid",
|
|
8167
|
-
outlineWidth:
|
|
8225
|
+
outlineWidth: tokens21__namespace.default.size.stroke.sm,
|
|
8168
8226
|
boxShadow: "sm",
|
|
8169
8227
|
outlineColor: "outline.floating"
|
|
8170
8228
|
},
|
|
@@ -8173,14 +8231,14 @@ var accordionSlotRecipe = react.defineSlotRecipe({
|
|
|
8173
8231
|
borderBottomRadius: "none"
|
|
8174
8232
|
},
|
|
8175
8233
|
"&:hover": {
|
|
8176
|
-
outlineWidth:
|
|
8234
|
+
outlineWidth: tokens21__namespace.default.size.stroke.md,
|
|
8177
8235
|
outline: "1px solid",
|
|
8178
8236
|
outlineColor: "outline.floating.hover",
|
|
8179
8237
|
outlineOffset: 1
|
|
8180
8238
|
},
|
|
8181
8239
|
"&:active": {
|
|
8182
8240
|
backgroundColor: "surface.floating.active",
|
|
8183
|
-
outlineWidth:
|
|
8241
|
+
outlineWidth: tokens21__namespace.default.size.stroke.sm,
|
|
8184
8242
|
outline: "none"
|
|
8185
8243
|
}
|
|
8186
8244
|
}
|
|
@@ -8585,10 +8643,10 @@ var breadcrumbSlotRecipe = react.defineSlotRecipe({
|
|
|
8585
8643
|
},
|
|
8586
8644
|
link: {
|
|
8587
8645
|
cursor: "pointer",
|
|
8588
|
-
borderRadius: "xs"
|
|
8646
|
+
borderRadius: "xs",
|
|
8647
|
+
textDecoration: "underline"
|
|
8589
8648
|
},
|
|
8590
8649
|
currentLink: {
|
|
8591
|
-
borderRadius: "xs",
|
|
8592
8650
|
cursor: "default"
|
|
8593
8651
|
},
|
|
8594
8652
|
separator: {
|
|
@@ -8602,12 +8660,9 @@ var breadcrumbSlotRecipe = react.defineSlotRecipe({
|
|
|
8602
8660
|
core: {
|
|
8603
8661
|
link: {
|
|
8604
8662
|
_hover: {
|
|
8605
|
-
|
|
8606
|
-
outlineWidth: tokens22__namespace.default.size.stroke.md,
|
|
8607
|
-
outlineStyle: "solid",
|
|
8663
|
+
textDecoration: "none",
|
|
8608
8664
|
_active: {
|
|
8609
|
-
backgroundColor: "surface.core.active"
|
|
8610
|
-
outline: "none"
|
|
8665
|
+
backgroundColor: "surface.core.active"
|
|
8611
8666
|
}
|
|
8612
8667
|
}
|
|
8613
8668
|
}
|
|
@@ -8689,10 +8744,10 @@ var checkboxSlotRecipe = react.defineSlotRecipe({
|
|
|
8689
8744
|
_focus: {
|
|
8690
8745
|
outlineStyle: "solid",
|
|
8691
8746
|
outlineColor: "outline.focus",
|
|
8692
|
-
outlineOffset:
|
|
8693
|
-
outlineWidth:
|
|
8747
|
+
outlineOffset: tokens21__namespace.default.size.stroke.md,
|
|
8748
|
+
outlineWidth: tokens21__namespace.default.size.stroke.md,
|
|
8694
8749
|
borderColor: "outline.core",
|
|
8695
|
-
borderWidth:
|
|
8750
|
+
borderWidth: tokens21__namespace.default.size.stroke.md
|
|
8696
8751
|
}
|
|
8697
8752
|
},
|
|
8698
8753
|
label: {
|
|
@@ -9010,7 +9065,8 @@ var datePickerSlotRecipe = react.defineSlotRecipe({
|
|
|
9010
9065
|
outlineColor: "outline.floating",
|
|
9011
9066
|
boxShadow: "md",
|
|
9012
9067
|
backgroundColor: "surface.floating",
|
|
9013
|
-
minHeight: "min-content"
|
|
9068
|
+
minHeight: "min-content",
|
|
9069
|
+
maxWidth: "100vw"
|
|
9014
9070
|
},
|
|
9015
9071
|
rangeCalendarPopover: {
|
|
9016
9072
|
width: "43rem",
|
|
@@ -9895,7 +9951,7 @@ var floatingActionButtonSlotRecipe = react.defineSlotRecipe({
|
|
|
9895
9951
|
position: "fixed",
|
|
9896
9952
|
zIndex: "dropdown",
|
|
9897
9953
|
_focus: {
|
|
9898
|
-
outlineOffset:
|
|
9954
|
+
outlineOffset: tokens21__namespace.default.size.stroke.lg,
|
|
9899
9955
|
outlineColor: "outline.focus"
|
|
9900
9956
|
},
|
|
9901
9957
|
_disabled: {
|
|
@@ -11207,25 +11263,25 @@ var radioCardSlotRecipe = react.defineSlotRecipe({
|
|
|
11207
11263
|
core: {
|
|
11208
11264
|
item: {
|
|
11209
11265
|
outlineColor: "outline.core",
|
|
11210
|
-
outlineWidth:
|
|
11266
|
+
outlineWidth: tokens21__namespace.default.size.stroke.sm,
|
|
11211
11267
|
outlineStyle: "solid",
|
|
11212
11268
|
_hover: {
|
|
11213
11269
|
outlineColor: "outline.core.hover",
|
|
11214
|
-
outlineWidth:
|
|
11270
|
+
outlineWidth: tokens21__namespace.default.size.stroke.md,
|
|
11215
11271
|
outlineStyle: "solid",
|
|
11216
11272
|
_active: {
|
|
11217
11273
|
backgroundColor: "surface.core.active",
|
|
11218
|
-
outlineWidth:
|
|
11274
|
+
outlineWidth: tokens21__namespace.default.size.stroke.sm
|
|
11219
11275
|
}
|
|
11220
11276
|
},
|
|
11221
11277
|
_checked: {
|
|
11222
11278
|
outlineColor: "outline.focus",
|
|
11223
|
-
outlineWidth:
|
|
11279
|
+
outlineWidth: tokens21__namespace.default.size.stroke.md,
|
|
11224
11280
|
outlineStyle: "solid",
|
|
11225
11281
|
backgroundColor: "surface.core.active",
|
|
11226
11282
|
_focusVisible: {
|
|
11227
11283
|
outlineStyle: "double",
|
|
11228
|
-
outlineWidth: `calc(3 * ${
|
|
11284
|
+
outlineWidth: `calc(3 * ${tokens21__namespace.default.size.stroke.md})`
|
|
11229
11285
|
// space for double outline
|
|
11230
11286
|
}
|
|
11231
11287
|
}
|
|
@@ -11250,12 +11306,12 @@ var radioCardSlotRecipe = react.defineSlotRecipe({
|
|
|
11250
11306
|
},
|
|
11251
11307
|
_checked: {
|
|
11252
11308
|
outlineColor: "outline.focus",
|
|
11253
|
-
outlineWidth:
|
|
11309
|
+
outlineWidth: tokens21__namespace.default.size.stroke.md,
|
|
11254
11310
|
outlineStyle: "solid",
|
|
11255
11311
|
backgroundColor: "surface.core.active",
|
|
11256
11312
|
_focusVisible: {
|
|
11257
11313
|
outlineStyle: "double",
|
|
11258
|
-
outlineWidth: `calc(3 * ${
|
|
11314
|
+
outlineWidth: `calc(3 * ${tokens21__namespace.default.size.stroke.md})`
|
|
11259
11315
|
// space for double outline
|
|
11260
11316
|
}
|
|
11261
11317
|
}
|
|
@@ -12294,22 +12350,22 @@ var borders = react.defineTokens.borders({
|
|
|
12294
12350
|
value: "0"
|
|
12295
12351
|
},
|
|
12296
12352
|
sm: {
|
|
12297
|
-
value: `${
|
|
12353
|
+
value: `${tokens21__namespace.default.size.stroke.sm} solid`
|
|
12298
12354
|
},
|
|
12299
12355
|
"sm-dashed": {
|
|
12300
|
-
value: `${
|
|
12356
|
+
value: `${tokens21__namespace.default.size.stroke.sm} dashed`
|
|
12301
12357
|
},
|
|
12302
12358
|
md: {
|
|
12303
|
-
value: `${
|
|
12359
|
+
value: `${tokens21__namespace.default.size.stroke.md} solid`
|
|
12304
12360
|
},
|
|
12305
12361
|
"md-dashed": {
|
|
12306
|
-
value: `${
|
|
12362
|
+
value: `${tokens21__namespace.default.size.stroke.md} dashed`
|
|
12307
12363
|
},
|
|
12308
12364
|
lg: {
|
|
12309
|
-
value: `${
|
|
12365
|
+
value: `${tokens21__namespace.default.size.stroke.lg} solid`
|
|
12310
12366
|
},
|
|
12311
12367
|
"lg-dashed": {
|
|
12312
|
-
value: `${
|
|
12368
|
+
value: `${tokens21__namespace.default.size.stroke.lg} dashed`
|
|
12313
12369
|
}
|
|
12314
12370
|
});
|
|
12315
12371
|
var colors = react.defineTokens.colors({
|
|
@@ -12381,33 +12437,33 @@ var easings = react.defineTokens.easings({
|
|
|
12381
12437
|
}
|
|
12382
12438
|
});
|
|
12383
12439
|
var fontSizes = react.defineTokens.fontSizes({
|
|
12384
|
-
"2xs": { value:
|
|
12385
|
-
xs: { value:
|
|
12386
|
-
sm: { value:
|
|
12387
|
-
md: { value:
|
|
12388
|
-
lg: { value:
|
|
12389
|
-
xl: { value:
|
|
12390
|
-
"2xl": { value:
|
|
12391
|
-
"3xl": { value:
|
|
12440
|
+
"2xs": { value: tokens21__namespace.default.size.font.xs.mobile },
|
|
12441
|
+
xs: { value: tokens21__namespace.default.size.font.sm.mobile },
|
|
12442
|
+
sm: { value: tokens21__namespace.default.size.font.md.mobile },
|
|
12443
|
+
md: { value: tokens21__namespace.default.size.font.lg.mobile },
|
|
12444
|
+
lg: { value: tokens21__namespace.default.size.font.xl.mobile },
|
|
12445
|
+
xl: { value: tokens21__namespace.default.size.font.xxl.mobile },
|
|
12446
|
+
"2xl": { value: tokens21__namespace.default.size.font.xl.desktop },
|
|
12447
|
+
"3xl": { value: tokens21__namespace.default.size.font.xxl.desktop },
|
|
12392
12448
|
mobile: {
|
|
12393
|
-
"2xs": { value:
|
|
12394
|
-
xs: { value:
|
|
12395
|
-
sm: { value:
|
|
12396
|
-
md: { value:
|
|
12397
|
-
"md-lg": { value:
|
|
12398
|
-
lg: { value:
|
|
12399
|
-
xl: { value:
|
|
12400
|
-
xxl: { value:
|
|
12449
|
+
"2xs": { value: tokens21__namespace.default.size.font["2xs"].mobile },
|
|
12450
|
+
xs: { value: tokens21__namespace.default.size.font.xs.mobile },
|
|
12451
|
+
sm: { value: tokens21__namespace.default.size.font.sm.mobile },
|
|
12452
|
+
md: { value: tokens21__namespace.default.size.font.md.mobile },
|
|
12453
|
+
"md-lg": { value: tokens21__namespace.default.size.font["md-lg"].mobile },
|
|
12454
|
+
lg: { value: tokens21__namespace.default.size.font.lg.mobile },
|
|
12455
|
+
xl: { value: tokens21__namespace.default.size.font.xl.mobile },
|
|
12456
|
+
xxl: { value: tokens21__namespace.default.size.font.xxl.mobile }
|
|
12401
12457
|
},
|
|
12402
12458
|
desktop: {
|
|
12403
|
-
"2xs": { value:
|
|
12404
|
-
xs: { value:
|
|
12405
|
-
sm: { value:
|
|
12406
|
-
md: { value:
|
|
12407
|
-
"md-lg": { value:
|
|
12408
|
-
lg: { value:
|
|
12409
|
-
xl: { value:
|
|
12410
|
-
xxl: { value:
|
|
12459
|
+
"2xs": { value: tokens21__namespace.default.size.font["2xs"].desktop },
|
|
12460
|
+
xs: { value: tokens21__namespace.default.size.font.xs.desktop },
|
|
12461
|
+
sm: { value: tokens21__namespace.default.size.font.sm.desktop },
|
|
12462
|
+
md: { value: tokens21__namespace.default.size.font.md.desktop },
|
|
12463
|
+
"md-lg": { value: tokens21__namespace.default.size.font["md-lg"].desktop },
|
|
12464
|
+
lg: { value: tokens21__namespace.default.size.font.lg.desktop },
|
|
12465
|
+
xl: { value: tokens21__namespace.default.size.font.xl.desktop },
|
|
12466
|
+
xxl: { value: tokens21__namespace.default.size.font.xxl.desktop }
|
|
12411
12467
|
}
|
|
12412
12468
|
});
|
|
12413
12469
|
var fontWeights = react.defineTokens.fontWeights({
|
|
@@ -12440,9 +12496,9 @@ var fontWeights = react.defineTokens.fontWeights({
|
|
|
12440
12496
|
}
|
|
12441
12497
|
});
|
|
12442
12498
|
var fonts = react.defineTokens.fonts({
|
|
12443
|
-
body: { value: `${
|
|
12444
|
-
heading: { value: `${
|
|
12445
|
-
mono: { value: `${
|
|
12499
|
+
body: { value: `${tokens21__namespace.default.font.family.body}, arial, sans-serif` },
|
|
12500
|
+
heading: { value: `${tokens21__namespace.default.font.family.heading}, arial, sans-serif` },
|
|
12501
|
+
mono: { value: `${tokens21__namespace.default.font.family.monospace}, monospace` }
|
|
12446
12502
|
});
|
|
12447
12503
|
var letterSpacings = react.defineTokens.letterSpacings({
|
|
12448
12504
|
tighter: {
|
|
@@ -12479,32 +12535,32 @@ var lineHeights = react.defineTokens.lineHeights({
|
|
|
12479
12535
|
}
|
|
12480
12536
|
});
|
|
12481
12537
|
var radii2 = react.defineTokens.radii({
|
|
12482
|
-
none: { value:
|
|
12483
|
-
xs: { value:
|
|
12484
|
-
sm: { value:
|
|
12485
|
-
md: { value:
|
|
12486
|
-
lg: { value:
|
|
12487
|
-
xl: { value:
|
|
12488
|
-
"2xl": { value:
|
|
12538
|
+
none: { value: tokens21__namespace.default.size["border-radius"].none },
|
|
12539
|
+
xs: { value: tokens21__namespace.default.size["border-radius"].xs },
|
|
12540
|
+
sm: { value: tokens21__namespace.default.size["border-radius"].sm },
|
|
12541
|
+
md: { value: tokens21__namespace.default.size["border-radius"].md },
|
|
12542
|
+
lg: { value: tokens21__namespace.default.size["border-radius"].lg },
|
|
12543
|
+
xl: { value: tokens21__namespace.default.size["border-radius"].xl },
|
|
12544
|
+
"2xl": { value: tokens21__namespace.default.size["border-radius"]["2xl"] },
|
|
12489
12545
|
round: { value: "50%" }
|
|
12490
12546
|
});
|
|
12491
12547
|
var spacing = react.defineTokens.spacing({
|
|
12492
|
-
0: { value:
|
|
12493
|
-
0.5: { value:
|
|
12494
|
-
1: { value:
|
|
12495
|
-
1.5: { value:
|
|
12496
|
-
2: { value:
|
|
12497
|
-
3: { value:
|
|
12498
|
-
4: { value:
|
|
12499
|
-
5: { value:
|
|
12500
|
-
6: { value:
|
|
12501
|
-
7: { value:
|
|
12502
|
-
8: { value:
|
|
12503
|
-
9: { value:
|
|
12504
|
-
10: { value:
|
|
12505
|
-
11: { value:
|
|
12506
|
-
12: { value:
|
|
12507
|
-
13: { value:
|
|
12548
|
+
0: { value: tokens21__namespace.default.size.spacing["0"] },
|
|
12549
|
+
0.5: { value: tokens21__namespace.default.size.spacing["0.5"] },
|
|
12550
|
+
1: { value: tokens21__namespace.default.size.spacing["1"] },
|
|
12551
|
+
1.5: { value: tokens21__namespace.default.size.spacing["1.5"] },
|
|
12552
|
+
2: { value: tokens21__namespace.default.size.spacing["2"] },
|
|
12553
|
+
3: { value: tokens21__namespace.default.size.spacing["3"] },
|
|
12554
|
+
4: { value: tokens21__namespace.default.size.spacing["4"] },
|
|
12555
|
+
5: { value: tokens21__namespace.default.size.spacing["5"] },
|
|
12556
|
+
6: { value: tokens21__namespace.default.size.spacing["6"] },
|
|
12557
|
+
7: { value: tokens21__namespace.default.size.spacing["7"] },
|
|
12558
|
+
8: { value: tokens21__namespace.default.size.spacing["8"] },
|
|
12559
|
+
9: { value: tokens21__namespace.default.size.spacing["9"] },
|
|
12560
|
+
10: { value: tokens21__namespace.default.size.spacing["10"] },
|
|
12561
|
+
11: { value: tokens21__namespace.default.size.spacing["11"] },
|
|
12562
|
+
12: { value: tokens21__namespace.default.size.spacing["12"] },
|
|
12563
|
+
13: { value: tokens21__namespace.default.size.spacing["13"] }
|
|
12508
12564
|
});
|
|
12509
12565
|
|
|
12510
12566
|
// src/theme/tokens/sizes.ts
|
|
@@ -12541,10 +12597,10 @@ var namedSizes = react.defineTokens.sizes({
|
|
|
12541
12597
|
});
|
|
12542
12598
|
var container = react.defineTokens.sizes({
|
|
12543
12599
|
base: { value: 0 },
|
|
12544
|
-
sm: { value:
|
|
12545
|
-
md: { value:
|
|
12546
|
-
lg: { value:
|
|
12547
|
-
xl: { value:
|
|
12600
|
+
sm: { value: tokens21__namespace.default.size.breakpoint.sm },
|
|
12601
|
+
md: { value: tokens21__namespace.default.size.breakpoint.md },
|
|
12602
|
+
lg: { value: tokens21__namespace.default.size.breakpoint.lg },
|
|
12603
|
+
xl: { value: tokens21__namespace.default.size.breakpoint.xl }
|
|
12548
12604
|
});
|
|
12549
12605
|
var sizes = {
|
|
12550
12606
|
...largeSizes,
|
|
@@ -12553,22 +12609,22 @@ var sizes = {
|
|
|
12553
12609
|
container
|
|
12554
12610
|
};
|
|
12555
12611
|
var zIndex = react.defineTokens.zIndex({
|
|
12556
|
-
hide: { value:
|
|
12612
|
+
hide: { value: tokens21__namespace.default.depth["z-index"].hide },
|
|
12557
12613
|
auto: { value: "auto" },
|
|
12558
|
-
base: { value:
|
|
12559
|
-
docked: { value:
|
|
12560
|
-
dropdown: { value:
|
|
12561
|
-
sticky: { value:
|
|
12562
|
-
banner: { value:
|
|
12563
|
-
overlay: { value:
|
|
12564
|
-
modal: { value:
|
|
12565
|
-
popover: { value:
|
|
12566
|
-
skipLink: { value:
|
|
12567
|
-
toast: { value:
|
|
12614
|
+
base: { value: tokens21__namespace.default.depth["z-index"].base },
|
|
12615
|
+
docked: { value: tokens21__namespace.default.depth["z-index"].docked },
|
|
12616
|
+
dropdown: { value: tokens21__namespace.default.depth["z-index"].dropdown },
|
|
12617
|
+
sticky: { value: tokens21__namespace.default.depth["z-index"].sticky },
|
|
12618
|
+
banner: { value: tokens21__namespace.default.depth["z-index"].banner },
|
|
12619
|
+
overlay: { value: tokens21__namespace.default.depth["z-index"].overlay },
|
|
12620
|
+
modal: { value: tokens21__namespace.default.depth["z-index"].modal },
|
|
12621
|
+
popover: { value: tokens21__namespace.default.depth["z-index"].popover },
|
|
12622
|
+
skipLink: { value: tokens21__namespace.default.depth["z-index"].skipLink },
|
|
12623
|
+
toast: { value: tokens21__namespace.default.depth["z-index"].toast }
|
|
12568
12624
|
});
|
|
12569
12625
|
|
|
12570
12626
|
// src/theme/tokens/index.ts
|
|
12571
|
-
var
|
|
12627
|
+
var tokens19 = {
|
|
12572
12628
|
aspectRatios,
|
|
12573
12629
|
animations,
|
|
12574
12630
|
blurs,
|
|
@@ -12636,10 +12692,10 @@ var animationStyles = react.defineAnimationStyles({
|
|
|
12636
12692
|
}
|
|
12637
12693
|
});
|
|
12638
12694
|
var breakpoints = {
|
|
12639
|
-
sm:
|
|
12640
|
-
md:
|
|
12641
|
-
lg:
|
|
12642
|
-
xl:
|
|
12695
|
+
sm: tokens21__namespace.default.size.breakpoint.sm,
|
|
12696
|
+
md: tokens21__namespace.default.size.breakpoint.md,
|
|
12697
|
+
lg: tokens21__namespace.default.size.breakpoint.lg,
|
|
12698
|
+
xl: tokens21__namespace.default.size.breakpoint.xl
|
|
12643
12699
|
};
|
|
12644
12700
|
|
|
12645
12701
|
// src/theme/tokens/config.ts
|
|
@@ -12929,91 +12985,91 @@ var textStyles = react.defineTextStyles({
|
|
|
12929
12985
|
xxl: {
|
|
12930
12986
|
value: {
|
|
12931
12987
|
fontSize: [
|
|
12932
|
-
|
|
12933
|
-
|
|
12988
|
+
tokens21__namespace.default.font.style.xxl["font-size"].mobile,
|
|
12989
|
+
tokens21__namespace.default.font.style.xxl["font-size"].desktop
|
|
12934
12990
|
],
|
|
12935
|
-
fontFamily:
|
|
12936
|
-
lineHeight:
|
|
12991
|
+
fontFamily: tokens21__namespace.default.font.style.xxl["font-family"],
|
|
12992
|
+
lineHeight: tokens21__namespace.default.font.style.xxl["line-height"]
|
|
12937
12993
|
}
|
|
12938
12994
|
},
|
|
12939
12995
|
"xl-display": {
|
|
12940
12996
|
value: {
|
|
12941
12997
|
fontSize: [
|
|
12942
|
-
|
|
12943
|
-
|
|
12998
|
+
tokens21__namespace.default.font.style["xl-display"]["font-size"].mobile,
|
|
12999
|
+
tokens21__namespace.default.font.style["xl-display"]["font-size"].desktop
|
|
12944
13000
|
],
|
|
12945
|
-
fontFamily:
|
|
12946
|
-
lineHeight:
|
|
13001
|
+
fontFamily: tokens21__namespace.default.font.style["xl-display"]["font-family"],
|
|
13002
|
+
lineHeight: tokens21__namespace.default.font.style["xl-display"]["line-height"]
|
|
12947
13003
|
}
|
|
12948
13004
|
},
|
|
12949
13005
|
"xl-sans": {
|
|
12950
13006
|
value: {
|
|
12951
13007
|
fontSize: [
|
|
12952
|
-
|
|
12953
|
-
|
|
13008
|
+
tokens21__namespace.default.font.style["xl-sans"]["font-size"].mobile,
|
|
13009
|
+
tokens21__namespace.default.font.style["xl-sans"]["font-size"].desktop
|
|
12954
13010
|
],
|
|
12955
|
-
fontFamily:
|
|
12956
|
-
lineHeight:
|
|
13011
|
+
fontFamily: tokens21__namespace.default.font.style["xl-sans"]["font-family"],
|
|
13012
|
+
lineHeight: tokens21__namespace.default.font.style["xl-sans"]["line-height"]
|
|
12957
13013
|
}
|
|
12958
13014
|
},
|
|
12959
13015
|
lg: {
|
|
12960
13016
|
value: {
|
|
12961
13017
|
fontSize: [
|
|
12962
|
-
|
|
12963
|
-
|
|
13018
|
+
tokens21__namespace.default.font.style.lg["font-size"].mobile,
|
|
13019
|
+
tokens21__namespace.default.font.style.lg["font-size"].desktop
|
|
12964
13020
|
],
|
|
12965
|
-
fontFamily:
|
|
12966
|
-
lineHeight:
|
|
13021
|
+
fontFamily: tokens21__namespace.default.font.style.lg["font-family"],
|
|
13022
|
+
lineHeight: tokens21__namespace.default.font.style.lg["line-height"]
|
|
12967
13023
|
}
|
|
12968
13024
|
},
|
|
12969
13025
|
"md-lg": {
|
|
12970
13026
|
value: {
|
|
12971
13027
|
fontSize: [
|
|
12972
|
-
|
|
12973
|
-
|
|
13028
|
+
tokens21__namespace.default.font.style["md-lg"]["font-size"].mobile,
|
|
13029
|
+
tokens21__namespace.default.font.style["md-lg"]["font-size"].desktop
|
|
12974
13030
|
],
|
|
12975
|
-
fontFamily:
|
|
12976
|
-
lineHeight:
|
|
13031
|
+
fontFamily: tokens21__namespace.default.font.style["md-lg"]["font-family"],
|
|
13032
|
+
lineHeight: tokens21__namespace.default.font.style["md-lg"]["line-height"]
|
|
12977
13033
|
}
|
|
12978
13034
|
},
|
|
12979
13035
|
md: {
|
|
12980
13036
|
value: {
|
|
12981
13037
|
fontSize: [
|
|
12982
|
-
|
|
12983
|
-
|
|
13038
|
+
tokens21__namespace.default.font.style.md["font-size"].mobile,
|
|
13039
|
+
tokens21__namespace.default.font.style.md["font-size"].desktop
|
|
12984
13040
|
],
|
|
12985
|
-
fontFamily:
|
|
12986
|
-
lineHeight:
|
|
13041
|
+
fontFamily: tokens21__namespace.default.font.style.md["font-family"],
|
|
13042
|
+
lineHeight: tokens21__namespace.default.font.style.md["line-height"]
|
|
12987
13043
|
}
|
|
12988
13044
|
},
|
|
12989
13045
|
sm: {
|
|
12990
13046
|
value: {
|
|
12991
13047
|
fontSize: [
|
|
12992
|
-
|
|
12993
|
-
|
|
13048
|
+
tokens21__namespace.default.font.style.sm["font-size"].mobile,
|
|
13049
|
+
tokens21__namespace.default.font.style.sm["font-size"].desktop
|
|
12994
13050
|
],
|
|
12995
|
-
fontFamily:
|
|
12996
|
-
lineHeight:
|
|
13051
|
+
fontFamily: tokens21__namespace.default.font.style.sm["font-family"],
|
|
13052
|
+
lineHeight: tokens21__namespace.default.font.style.sm["line-height"]
|
|
12997
13053
|
}
|
|
12998
13054
|
},
|
|
12999
13055
|
xs: {
|
|
13000
13056
|
value: {
|
|
13001
13057
|
fontSize: [
|
|
13002
|
-
|
|
13003
|
-
|
|
13058
|
+
tokens21__namespace.default.font.style.xs["font-size"].mobile,
|
|
13059
|
+
tokens21__namespace.default.font.style.xs["font-size"].desktop
|
|
13004
13060
|
],
|
|
13005
|
-
fontFamily:
|
|
13006
|
-
lineHeight:
|
|
13061
|
+
fontFamily: tokens21__namespace.default.font.style.xs["font-family"],
|
|
13062
|
+
lineHeight: tokens21__namespace.default.font.style.xs["line-height"]
|
|
13007
13063
|
}
|
|
13008
13064
|
},
|
|
13009
13065
|
"2xs": {
|
|
13010
13066
|
value: {
|
|
13011
13067
|
fontSize: [
|
|
13012
|
-
|
|
13013
|
-
|
|
13068
|
+
tokens21__namespace.default.font.style["2xs"]["font-size"].mobile,
|
|
13069
|
+
tokens21__namespace.default.font.style["2xs"]["font-size"].desktop
|
|
13014
13070
|
],
|
|
13015
|
-
fontFamily:
|
|
13016
|
-
lineHeight:
|
|
13071
|
+
fontFamily: tokens21__namespace.default.font.style["2xs"]["font-family"],
|
|
13072
|
+
lineHeight: tokens21__namespace.default.font.style["2xs"]["line-height"]
|
|
13017
13073
|
}
|
|
13018
13074
|
}
|
|
13019
13075
|
});
|
|
@@ -13024,7 +13080,7 @@ var generateTheme = (brand) => {
|
|
|
13024
13080
|
theme: {
|
|
13025
13081
|
breakpoints,
|
|
13026
13082
|
keyframes,
|
|
13027
|
-
tokens:
|
|
13083
|
+
tokens: tokens19,
|
|
13028
13084
|
semanticTokens: semanticTokens[brand],
|
|
13029
13085
|
recipes,
|
|
13030
13086
|
slotRecipes,
|
|
@@ -13317,7 +13373,7 @@ Object.defineProperty(exports, "Section", {
|
|
|
13317
13373
|
enumerable: true,
|
|
13318
13374
|
get: function () { return reactStately.Section; }
|
|
13319
13375
|
});
|
|
13320
|
-
exports.tokens =
|
|
13376
|
+
exports.tokens = tokens21__namespace;
|
|
13321
13377
|
exports.Accordion = Accordion;
|
|
13322
13378
|
exports.AccordionItem = AccordionItem;
|
|
13323
13379
|
exports.AccordionItemContent = AccordionItemContent;
|