@vygruppen/spor-react 12.4.3 → 12.4.4
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 +8 -8
- package/.turbo/turbo-postinstall.log +1 -19
- package/CHANGELOG.md +14 -0
- package/dist/index.js +196 -192
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +193 -184
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
- package/src/nudge/Nudge.tsx +2 -1
- package/src/theme/semantic-tokens/colors.ts +4 -6
- package/src/theme/tokens/colors.ts +4 -6
- package/src/toast/toast.tsx +1 -1
- package/tsup.config.ts +0 -9
package/dist/index.js
CHANGED
@@ -15,15 +15,9 @@ var anatomy = require('@ark-ui/react/anatomy');
|
|
15
15
|
var popover = require('@ark-ui/react/popover');
|
16
16
|
var date = require('@internationalized/date');
|
17
17
|
var awesomePhonenumber = require('awesome-phonenumber');
|
18
|
-
var
|
19
|
-
var react$1 = require('@
|
20
|
-
var
|
21
|
-
var cargonetJson = require('@vygruppen/spor-design-tokens/tokens/color/cargonet.json');
|
22
|
-
var vyDigitalJson = require('@vygruppen/spor-design-tokens/tokens/color/vy-digital.json');
|
23
|
-
var VyUtviklingJson = require('@vygruppen/spor-design-tokens/tokens/color/vy-utvikling.json');
|
24
|
-
var aliasJson = require('@vygruppen/spor-design-tokens/tokens/color/alias.json');
|
25
|
-
var linjetagJson = require('@vygruppen/spor-design-tokens/tokens/color/linjetag.json');
|
26
|
-
var paletteJson = require('@vygruppen/spor-design-tokens/tokens/color/palette.json');
|
18
|
+
var tokens22 = require('@vygruppen/spor-design-tokens');
|
19
|
+
var react$1 = require('@emotion/react');
|
20
|
+
var tokens4 = require('@vygruppen/spor-design-tokens/raw-tokens');
|
27
21
|
|
28
22
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
29
23
|
|
@@ -47,13 +41,8 @@ function _interopNamespace(e) {
|
|
47
41
|
|
48
42
|
var React28__namespace = /*#__PURE__*/_interopNamespace(React28);
|
49
43
|
var ReactLottie__default = /*#__PURE__*/_interopDefault(ReactLottie);
|
50
|
-
var
|
51
|
-
var
|
52
|
-
var vyDigitalJson__default = /*#__PURE__*/_interopDefault(vyDigitalJson);
|
53
|
-
var VyUtviklingJson__default = /*#__PURE__*/_interopDefault(VyUtviklingJson);
|
54
|
-
var aliasJson__default = /*#__PURE__*/_interopDefault(aliasJson);
|
55
|
-
var linjetagJson__default = /*#__PURE__*/_interopDefault(linjetagJson);
|
56
|
-
var paletteJson__default = /*#__PURE__*/_interopDefault(paletteJson);
|
44
|
+
var tokens22__namespace = /*#__PURE__*/_interopNamespace(tokens22);
|
45
|
+
var tokens4__default = /*#__PURE__*/_interopDefault(tokens4);
|
57
46
|
|
58
47
|
// src/accordion/Accordion.tsx
|
59
48
|
|
@@ -61,8 +50,9 @@ var paletteJson__default = /*#__PURE__*/_interopDefault(paletteJson);
|
|
61
50
|
var warnAboutMismatchingIcon = ({
|
62
51
|
icon
|
63
52
|
}) => {
|
53
|
+
var _a5, _b4;
|
64
54
|
if (process.env.NODE_ENV !== "production") {
|
65
|
-
const displayName = icon
|
55
|
+
const displayName = (_b4 = (_a5 = icon == null ? void 0 : icon.type) == null ? void 0 : _a5.render) == null ? void 0 : _b4.displayName;
|
66
56
|
if (!displayName) {
|
67
57
|
return;
|
68
58
|
}
|
@@ -828,6 +818,7 @@ var badgeRecipie = react.defineRecipe({
|
|
828
818
|
});
|
829
819
|
|
830
820
|
// src/theme/recipes/code.ts
|
821
|
+
var _a;
|
831
822
|
var codeRecipie = react.defineRecipe({
|
832
823
|
base: {
|
833
824
|
fontFamily: "monospace",
|
@@ -836,7 +827,7 @@ var codeRecipie = react.defineRecipe({
|
|
836
827
|
paddingX: 1
|
837
828
|
},
|
838
829
|
variants: {
|
839
|
-
colorPalette: badgeRecipie.variants
|
830
|
+
colorPalette: ((_a = badgeRecipie.variants) == null ? void 0 : _a.colorPalette) ?? {}
|
840
831
|
}
|
841
832
|
});
|
842
833
|
var StyledCode = react.chakra(react.Code, codeRecipie);
|
@@ -1153,7 +1144,7 @@ var Alert = React28.forwardRef((props, ref) => {
|
|
1153
1144
|
const { open, onClose } = react.useDisclosure({ defaultOpen: true });
|
1154
1145
|
const handleAlertClose = () => {
|
1155
1146
|
onClose();
|
1156
|
-
onAlertClose
|
1147
|
+
onAlertClose == null ? void 0 : onAlertClose();
|
1157
1148
|
};
|
1158
1149
|
const recipe = react.useSlotRecipe({ key: "alert" });
|
1159
1150
|
const styles = recipe({ variant: props.variant });
|
@@ -1989,7 +1980,8 @@ function CalendarCell({
|
|
1989
1980
|
stateProps["data-unavailable"] = true;
|
1990
1981
|
}
|
1991
1982
|
React28.useEffect(() => {
|
1992
|
-
|
1983
|
+
var _a5;
|
1984
|
+
(_a5 = ref.current) == null ? void 0 : _a5.addEventListener(
|
1993
1985
|
"touchend",
|
1994
1986
|
(event) => {
|
1995
1987
|
event.preventDefault();
|
@@ -2035,7 +2027,7 @@ var getCurrentTime = () => {
|
|
2035
2027
|
return date.parseTime(now.toTimeString().split(" ")[0]);
|
2036
2028
|
};
|
2037
2029
|
var getTimestampFromTime = (time) => {
|
2038
|
-
return `${time
|
2030
|
+
return `${(time == null ? void 0 : time.hour) ?? 0}:${(time == null ? void 0 : time.minute) ?? 0}`;
|
2039
2031
|
};
|
2040
2032
|
var weekDays = {
|
2041
2033
|
nb: ["Ma", "Ti", "On", "To", "Fr", "L\xF8", "S\xF8"],
|
@@ -2339,6 +2331,7 @@ function createCalendar2(identifier) {
|
|
2339
2331
|
}
|
2340
2332
|
var DateField = React28.forwardRef(
|
2341
2333
|
({ labelId, ...props }, externalRef) => {
|
2334
|
+
var _a5;
|
2342
2335
|
const locale = useCurrentLocale();
|
2343
2336
|
const recipe = react.useSlotRecipe({
|
2344
2337
|
key: "datePicker",
|
@@ -2384,7 +2377,7 @@ var DateField = React28.forwardRef(
|
|
2384
2377
|
"input",
|
2385
2378
|
{
|
2386
2379
|
type: "hidden",
|
2387
|
-
value: state.value
|
2380
|
+
value: ((_a5 = state.value) == null ? void 0 : _a5.toString()) ?? "",
|
2388
2381
|
name: props.name
|
2389
2382
|
}
|
2390
2383
|
)
|
@@ -2470,8 +2463,8 @@ var DatePicker = React28.forwardRef(
|
|
2470
2463
|
...props,
|
2471
2464
|
shouldCloseOnSelect: true,
|
2472
2465
|
errorMessage: errorText,
|
2473
|
-
isRequired: props.isRequired ?? chakraFieldProps
|
2474
|
-
validationState: chakraFieldProps
|
2466
|
+
isRequired: props.isRequired ?? (chakraFieldProps == null ? void 0 : chakraFieldProps.required),
|
2467
|
+
validationState: (chakraFieldProps == null ? void 0 : chakraFieldProps.invalid) ? "invalid" : "valid"
|
2475
2468
|
});
|
2476
2469
|
const internalRef = React28.useRef(null);
|
2477
2470
|
const ref = externalRef ?? internalRef;
|
@@ -2607,8 +2600,8 @@ function DateRangePicker({
|
|
2607
2600
|
shouldCloseOnSelect: true,
|
2608
2601
|
isInvalid: invalid,
|
2609
2602
|
errorMessage: errorText,
|
2610
|
-
isRequired: props.required ?? fieldContextPRops
|
2611
|
-
validationState: fieldContextPRops
|
2603
|
+
isRequired: props.required ?? (fieldContextPRops == null ? void 0 : fieldContextPRops.required),
|
2604
|
+
validationState: (fieldContextPRops == null ? void 0 : fieldContextPRops.invalid) ? "invalid" : "valid"
|
2612
2605
|
});
|
2613
2606
|
const ref = React28.useRef(null);
|
2614
2607
|
const uniqueId = reactAria.useId();
|
@@ -2784,7 +2777,7 @@ var TimePicker = ({
|
|
2784
2777
|
)}`;
|
2785
2778
|
const inputLabel = label ?? t(texts11.time);
|
2786
2779
|
const ariaLabel = `${inputLabel} \u2013 ${t(
|
2787
|
-
texts11.selectedTimeIs(`${dateTime
|
2780
|
+
texts11.selectedTimeIs(`${(dateTime == null ? void 0 : dateTime.hour) ?? 0} ${(dateTime == null ? void 0 : dateTime.minute) ?? 0}`)
|
2788
2781
|
)}`;
|
2789
2782
|
return /* @__PURE__ */ jsxRuntime.jsx(Field3, { as: "time", ...boxProps, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
2790
2783
|
StyledField,
|
@@ -3132,6 +3125,7 @@ var Popover = React28.forwardRef(
|
|
3132
3125
|
hasBackdrop = true,
|
3133
3126
|
containerPadding = 12
|
3134
3127
|
}, ref) => {
|
3128
|
+
var _a5;
|
3135
3129
|
const internalRef = React28.useRef(null);
|
3136
3130
|
const popoverRef = ref ?? internalRef;
|
3137
3131
|
const { popoverProps, underlayProps } = reactAria.usePopover(
|
@@ -3152,7 +3146,7 @@ var Popover = React28.forwardRef(
|
|
3152
3146
|
{
|
3153
3147
|
...popoverProps,
|
3154
3148
|
ref: popoverRef,
|
3155
|
-
minWidth: triggerRef.current
|
3149
|
+
minWidth: ((_a5 = triggerRef.current) == null ? void 0 : _a5.clientWidth) ?? "auto",
|
3156
3150
|
children: [
|
3157
3151
|
/* @__PURE__ */ jsxRuntime.jsx(reactAria.DismissButton, { onDismiss: state.close }),
|
3158
3152
|
children,
|
@@ -3534,7 +3528,8 @@ function Option({ item, state }) {
|
|
3534
3528
|
dataFields["data-focus-visible"] = true;
|
3535
3529
|
}
|
3536
3530
|
React28.useEffect(() => {
|
3537
|
-
|
3531
|
+
var _a5;
|
3532
|
+
(_a5 = ref == null ? void 0 : ref.current) == null ? void 0 : _a5.addEventListener(
|
3538
3533
|
"touchend",
|
3539
3534
|
(event) => {
|
3540
3535
|
event.preventDefault();
|
@@ -3552,6 +3547,7 @@ var useOptionContext = () => {
|
|
3552
3547
|
return React28.useContext(OptionContext);
|
3553
3548
|
};
|
3554
3549
|
function ListBoxSection({ section, state }) {
|
3550
|
+
var _a5, _b4;
|
3555
3551
|
const { itemProps, headingProps, groupProps } = reactAria.useListBoxSection({
|
3556
3552
|
heading: section.rendered,
|
3557
3553
|
"aria-label": section["aria-label"]
|
@@ -3573,7 +3569,7 @@ function ListBoxSection({ section, state }) {
|
|
3573
3569
|
children: section.rendered
|
3574
3570
|
}
|
3575
3571
|
),
|
3576
|
-
/* @__PURE__ */ jsxRuntime.jsx(List, { ...groupProps, padding: 0, listStyleType: "none", children: [...state.collection.getChildren
|
3572
|
+
/* @__PURE__ */ jsxRuntime.jsx(List, { ...groupProps, padding: 0, listStyleType: "none", children: [...((_b4 = (_a5 = state.collection).getChildren) == null ? void 0 : _b4.call(_a5, section.key)) ?? []].map(
|
3577
3573
|
(item) => /* @__PURE__ */ jsxRuntime.jsx(Option, { item, state }, item.key)
|
3578
3574
|
) })
|
3579
3575
|
] }) });
|
@@ -3713,6 +3709,7 @@ function coreText(state) {
|
|
3713
3709
|
}
|
3714
3710
|
|
3715
3711
|
// src/theme/slot-recipes/native-select.ts
|
3712
|
+
var _a2, _b;
|
3716
3713
|
var nativeSelectSlotRecipe = react.defineSlotRecipe({
|
3717
3714
|
slots: NativeSelectAnatomy.keys(),
|
3718
3715
|
className: "spor-nativeSelect",
|
@@ -3751,12 +3748,12 @@ var nativeSelectSlotRecipe = react.defineSlotRecipe({
|
|
3751
3748
|
variant: {
|
3752
3749
|
core: {
|
3753
3750
|
field: {
|
3754
|
-
...inputRecipe.variants
|
3751
|
+
...(_a2 = inputRecipe.variants) == null ? void 0 : _a2.variant.core
|
3755
3752
|
}
|
3756
3753
|
},
|
3757
3754
|
floating: {
|
3758
3755
|
field: {
|
3759
|
-
...inputRecipe.variants
|
3756
|
+
...(_b = inputRecipe.variants) == null ? void 0 : _b.variant.floating
|
3760
3757
|
}
|
3761
3758
|
}
|
3762
3759
|
}
|
@@ -3899,7 +3896,8 @@ var NumericStepper = React28__namespace.default.forwardRef((props, ref) => {
|
|
3899
3896
|
});
|
3900
3897
|
const clampedStepSize = Math.max(Math.min(stepSize, 10), 1);
|
3901
3898
|
const focusOnAddButton = () => {
|
3902
|
-
|
3899
|
+
var _a5;
|
3900
|
+
(_a5 = addButtonRef.current) == null ? void 0 : _a5.focus();
|
3903
3901
|
};
|
3904
3902
|
return /* @__PURE__ */ jsxRuntime.jsxs(Field3, { css: styles.root, width: "auto", ...rest, ref, children: [
|
3905
3903
|
/* @__PURE__ */ jsxRuntime.jsx(
|
@@ -4156,7 +4154,10 @@ var CountryCodeSelect = React28.forwardRef((props, ref) => {
|
|
4156
4154
|
const { t } = useTranslation();
|
4157
4155
|
if (props.allowedCountryCodes) {
|
4158
4156
|
callingCodes.items = callingCodes.items.filter(
|
4159
|
-
(callingCode) =>
|
4157
|
+
(callingCode) => {
|
4158
|
+
var _a5;
|
4159
|
+
return (_a5 = props.allowedCountryCodes) == null ? void 0 : _a5.some((code) => code === callingCode.label);
|
4160
|
+
}
|
4160
4161
|
);
|
4161
4162
|
}
|
4162
4163
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
@@ -4595,16 +4596,16 @@ var pressableCardRecipe = react.defineRecipe({
|
|
4595
4596
|
},
|
4596
4597
|
core: {
|
4597
4598
|
outlineColor: "core.outline",
|
4598
|
-
outlineWidth:
|
4599
|
+
outlineWidth: tokens22__namespace.default.size.stroke.sm,
|
4599
4600
|
outlineStyle: "solid",
|
4600
4601
|
backgroundColor: "core.surface",
|
4601
4602
|
_hover: {
|
4602
4603
|
outlineColor: "core.outline.hover",
|
4603
|
-
outlineWidth:
|
4604
|
+
outlineWidth: tokens22__namespace.default.size.stroke.md,
|
4604
4605
|
outlineStyle: "solid",
|
4605
4606
|
_active: {
|
4606
4607
|
backgroundColor: "core.surface.active",
|
4607
|
-
outlineWidth:
|
4608
|
+
outlineWidth: tokens22__namespace.default.size.stroke.sm
|
4608
4609
|
}
|
4609
4610
|
}
|
4610
4611
|
},
|
@@ -4860,7 +4861,8 @@ var icons = {
|
|
4860
4861
|
walk: { sm: sporIconReact.WalkFill18Icon, md: sporIconReact.WalkFill24Icon, lg: sporIconReact.WalkFill30Icon }
|
4861
4862
|
};
|
4862
4863
|
var getCorrectIcon = ({ variant, size }) => {
|
4863
|
-
|
4864
|
+
var _a5;
|
4865
|
+
return ((_a5 = icons[variant]) == null ? void 0 : _a5[size]) ?? react.Box;
|
4864
4866
|
};
|
4865
4867
|
var LineIcon = React28.forwardRef(
|
4866
4868
|
function LineIcon2({
|
@@ -5018,7 +5020,7 @@ var ExternalIcon = ({ label }) => /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fra
|
|
5018
5020
|
var TextLink = React28.forwardRef(
|
5019
5021
|
({ children, external, href, ...props }, ref) => {
|
5020
5022
|
const { t } = useTranslation();
|
5021
|
-
const isExternal = external ?? Boolean(href
|
5023
|
+
const isExternal = external ?? Boolean((href == null ? void 0 : href.startsWith("http://")) || (href == null ? void 0 : href.startsWith("https://")));
|
5022
5024
|
const externalLabel = t ? t(texts18.externalLink) : texts18.externalLink.en;
|
5023
5025
|
if (props.asChild && React28.isValidElement(children)) {
|
5024
5026
|
return /* @__PURE__ */ jsxRuntime.jsx(react.Link, { href, ...props, ref, children: React28.cloneElement(children, {
|
@@ -5673,7 +5675,7 @@ var NudgeContent = React28.forwardRef(
|
|
5673
5675
|
({ showCloseButton = true, children, ...props }, ref) => {
|
5674
5676
|
const [currentStep, setCurrentStep] = React28.useState(1);
|
5675
5677
|
const childrenArray = React28__namespace.default.Children.toArray(children);
|
5676
|
-
const { open } = react
|
5678
|
+
const { open } = react.usePopoverContext();
|
5677
5679
|
React28.useEffect(() => {
|
5678
5680
|
setCurrentStep(1);
|
5679
5681
|
}, [children, open]);
|
@@ -5732,7 +5734,7 @@ var NudgeActions = ({ ...props }) => {
|
|
5732
5734
|
var NextButton = ({ isLastStep, onNext }) => {
|
5733
5735
|
const { t } = useTranslation();
|
5734
5736
|
if (isLastStep)
|
5735
|
-
return /* @__PURE__ */ jsxRuntime.jsx(react
|
5737
|
+
return /* @__PURE__ */ jsxRuntime.jsx(react.PopoverCloseTrigger, { children: /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "tertiary", size: "xs", children: t(texts22.close) }) });
|
5736
5738
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
5737
5739
|
Button,
|
5738
5740
|
{
|
@@ -6034,7 +6036,7 @@ var texts24 = createTexts({
|
|
6034
6036
|
});
|
6035
6037
|
var fontFaces = `
|
6036
6038
|
@font-face {
|
6037
|
-
font-family: ${
|
6039
|
+
font-family: ${tokens22__namespace.default.asset.font["vy-sans"]["light"].name};
|
6038
6040
|
src: url("https://www.vy.no/styles/font/VySans-Light.woff2") format("woff2"),
|
6039
6041
|
url("https://www.vy.no/styles/font/VySans-Light.woff") format("woff");
|
6040
6042
|
font-style: normal;
|
@@ -6042,7 +6044,7 @@ var fontFaces = `
|
|
6042
6044
|
font-display: swap
|
6043
6045
|
}
|
6044
6046
|
@font-face {
|
6045
|
-
font-family: ${
|
6047
|
+
font-family: ${tokens22__namespace.default.asset.font["vy-sans"]["light-italic"].name};
|
6046
6048
|
src: url("https://www.vy.no/styles/font/VySans-LightItalic.woff2")
|
6047
6049
|
format("woff2"),
|
6048
6050
|
url("https://www.vy.no/styles/font/VySans-LightItalic.woff") format("woff");
|
@@ -6051,7 +6053,7 @@ var fontFaces = `
|
|
6051
6053
|
font-display: swap
|
6052
6054
|
}
|
6053
6055
|
@font-face {
|
6054
|
-
font-family: ${
|
6056
|
+
font-family: ${tokens22__namespace.default.asset.font["vy-sans"]["medium"].name};
|
6055
6057
|
src: url("https://www.vy.no/styles/font/VySans-Regular.woff2") format("woff2"),
|
6056
6058
|
url("https://www.vy.no/styles/font/VySans-Regular.woff") format("woff");
|
6057
6059
|
font-style: normal;
|
@@ -6059,7 +6061,7 @@ var fontFaces = `
|
|
6059
6061
|
font-display: swap
|
6060
6062
|
}
|
6061
6063
|
@font-face {
|
6062
|
-
font-family: ${
|
6064
|
+
font-family: ${tokens22__namespace.default.asset.font["vy-sans"]["medium-italic"].name};
|
6063
6065
|
src: url("https://www.vy.no/styles/font/VySans-RegularItalic.woff2")
|
6064
6066
|
format("woff2"),
|
6065
6067
|
url("https://www.vy.no/styles/font/VySans-RegularItalic.woff")
|
@@ -6069,7 +6071,7 @@ var fontFaces = `
|
|
6069
6071
|
font-display: swap
|
6070
6072
|
}
|
6071
6073
|
@font-face {
|
6072
|
-
font-family: ${
|
6074
|
+
font-family: ${tokens22__namespace.default.asset.font["vy-sans"]["bold"].name};
|
6073
6075
|
src: url("https://www.vy.no/styles/font/VySans-Bold.woff2") format("woff2"),
|
6074
6076
|
url("https://www.vy.no/styles/font/VySans-Bold.woff") format("woff");
|
6075
6077
|
font-style: normal;
|
@@ -6077,7 +6079,7 @@ var fontFaces = `
|
|
6077
6079
|
font-display: swap
|
6078
6080
|
}
|
6079
6081
|
@font-face {
|
6080
|
-
font-family: ${
|
6082
|
+
font-family: ${tokens22__namespace.default.asset.font["vy-sans"]["bold-italic"].name};
|
6081
6083
|
src: url("https://www.vy.no/styles/font/VySans-BoldItalic.woff2")
|
6082
6084
|
format("woff2"),
|
6083
6085
|
url("https://www.vy.no/styles/font/VySans-BoldItalic.woff") format("woff");
|
@@ -6086,7 +6088,7 @@ var fontFaces = `
|
|
6086
6088
|
font-display: swap
|
6087
6089
|
}
|
6088
6090
|
@font-face {
|
6089
|
-
font-family: ${
|
6091
|
+
font-family: ${tokens22__namespace.default.asset.font["vy-display"].name};
|
6090
6092
|
src: url("https://www.vy.no/styles/font/VyDisplay-Medium.woff2")
|
6091
6093
|
format("woff2"),
|
6092
6094
|
url("https://www.vy.no/styles/font/VyDisplay-Medium.woff") format("woff");
|
@@ -6118,7 +6120,7 @@ var createToast = ({
|
|
6118
6120
|
}) => toaster.create({
|
6119
6121
|
description: text,
|
6120
6122
|
type: variant,
|
6121
|
-
id,
|
6123
|
+
id: id ?? crypto.randomUUID(),
|
6122
6124
|
duration
|
6123
6125
|
});
|
6124
6126
|
var Toaster = () => {
|
@@ -6167,7 +6169,7 @@ var SporProvider = ({
|
|
6167
6169
|
}) => {
|
6168
6170
|
return /* @__PURE__ */ jsxRuntime.jsx(LanguageProvider, { language, children: /* @__PURE__ */ jsxRuntime.jsx(react.ChakraProvider, { value: theme, children: /* @__PURE__ */ jsxRuntime.jsxs(ColorModeProvider, { children: [
|
6169
6171
|
/* @__PURE__ */ jsxRuntime.jsx(Toaster, {}),
|
6170
|
-
/* @__PURE__ */ jsxRuntime.jsx(react$
|
6172
|
+
/* @__PURE__ */ jsxRuntime.jsx(react$1.Global, { styles: fontFaces }),
|
6171
6173
|
children
|
6172
6174
|
] }) }) });
|
6173
6175
|
};
|
@@ -6595,7 +6597,7 @@ var buttonRecipe = react.defineRecipe({
|
|
6595
6597
|
background: "surface.disabled"
|
6596
6598
|
},
|
6597
6599
|
_focus: {
|
6598
|
-
outlineOffset:
|
6600
|
+
outlineOffset: tokens22__namespace.default.size.stroke.md
|
6599
6601
|
}
|
6600
6602
|
},
|
6601
6603
|
variants: {
|
@@ -6623,19 +6625,19 @@ var buttonRecipe = react.defineRecipe({
|
|
6623
6625
|
tertiary: {
|
6624
6626
|
color: "core.text",
|
6625
6627
|
outline: "solid",
|
6626
|
-
outlineWidth:
|
6628
|
+
outlineWidth: tokens22__namespace.default.size.stroke.sm,
|
6627
6629
|
outlineColor: "core.outline",
|
6628
6630
|
_hover: {
|
6629
|
-
outlineWidth:
|
6631
|
+
outlineWidth: tokens22__namespace.default.size.stroke.md,
|
6630
6632
|
outlineColor: "core.outline.hover",
|
6631
6633
|
_active: {
|
6632
6634
|
background: "core.surface.active",
|
6633
|
-
outlineWidth:
|
6635
|
+
outlineWidth: tokens22__namespace.default.size.stroke.sm,
|
6634
6636
|
outlineColor: "core.outline"
|
6635
6637
|
}
|
6636
6638
|
},
|
6637
6639
|
_focus: {
|
6638
|
-
outlineWidth:
|
6640
|
+
outlineWidth: tokens22__namespace.default.size.stroke.sm
|
6639
6641
|
}
|
6640
6642
|
},
|
6641
6643
|
ghost: {
|
@@ -6820,6 +6822,7 @@ var linkRecipe = react.defineRecipe({
|
|
6820
6822
|
}
|
6821
6823
|
}
|
6822
6824
|
});
|
6825
|
+
var _a3, _b2;
|
6823
6826
|
var textareaRecipe = react.defineRecipe({
|
6824
6827
|
className: "spor-textarea",
|
6825
6828
|
base: {
|
@@ -6836,10 +6839,10 @@ var textareaRecipe = react.defineRecipe({
|
|
6836
6839
|
variants: {
|
6837
6840
|
variant: {
|
6838
6841
|
core: {
|
6839
|
-
...inputRecipe.variants
|
6842
|
+
...(_a3 = inputRecipe.variants) == null ? void 0 : _a3.variant.core
|
6840
6843
|
},
|
6841
6844
|
floating: {
|
6842
|
-
...inputRecipe.variants
|
6845
|
+
...(_b2 = inputRecipe.variants) == null ? void 0 : _b2.variant.floating
|
6843
6846
|
}
|
6844
6847
|
}
|
6845
6848
|
}
|
@@ -6862,23 +6865,23 @@ var recipes = {
|
|
6862
6865
|
textarea: textareaRecipe
|
6863
6866
|
};
|
6864
6867
|
var vyDigitalColors = react.defineSemanticTokens.colors({
|
6865
|
-
...
|
6868
|
+
...tokens4__default.default.color["vy-digital"].color.vyDigital
|
6866
6869
|
});
|
6867
6870
|
var vyUtviklingColors = react.defineSemanticTokens.colors({
|
6868
|
-
...
|
6871
|
+
...tokens4__default.default.color["vy-utvikling"].color.vyUtvikling
|
6869
6872
|
});
|
6870
6873
|
var cargonetColors = react.defineSemanticTokens.colors({
|
6871
|
-
...
|
6874
|
+
...tokens4__default.default.color.cargonet.color.cargonet
|
6872
6875
|
});
|
6873
6876
|
var radii = react.defineSemanticTokens.radii({
|
6874
|
-
none: { value:
|
6875
|
-
xxs: { value:
|
6876
|
-
xs: { value:
|
6877
|
-
sm: { value:
|
6878
|
-
md: { value:
|
6879
|
-
lg: { value:
|
6880
|
-
xl: { value:
|
6881
|
-
"2xl": { value:
|
6877
|
+
none: { value: tokens22__namespace.default.size["border-radius"].none },
|
6878
|
+
xxs: { value: tokens22__namespace.default.size["border-radius"].xxs },
|
6879
|
+
xs: { value: tokens22__namespace.default.size["border-radius"].xs },
|
6880
|
+
sm: { value: tokens22__namespace.default.size["border-radius"].sm },
|
6881
|
+
md: { value: tokens22__namespace.default.size["border-radius"].md },
|
6882
|
+
lg: { value: tokens22__namespace.default.size["border-radius"].lg },
|
6883
|
+
xl: { value: tokens22__namespace.default.size["border-radius"].xl },
|
6884
|
+
"2xl": { value: tokens22__namespace.default.size["border-radius"]["2xl"] },
|
6882
6885
|
round: { value: "50%" }
|
6883
6886
|
});
|
6884
6887
|
var shadows = react.defineSemanticTokens.shadows({
|
@@ -6886,13 +6889,13 @@ var shadows = react.defineSemanticTokens.shadows({
|
|
6886
6889
|
value: "none"
|
6887
6890
|
},
|
6888
6891
|
sm: {
|
6889
|
-
value:
|
6892
|
+
value: tokens22__namespace.default.depth.shadow.sm.value
|
6890
6893
|
},
|
6891
6894
|
md: {
|
6892
|
-
value:
|
6895
|
+
value: tokens22__namespace.default.depth.shadow.md.value
|
6893
6896
|
},
|
6894
6897
|
lg: {
|
6895
|
-
value:
|
6898
|
+
value: tokens22__namespace.default.depth.shadow.lg.value
|
6896
6899
|
}
|
6897
6900
|
});
|
6898
6901
|
|
@@ -7395,7 +7398,7 @@ var breadcrumbSlotRecipe = react.defineSlotRecipe({
|
|
7395
7398
|
link: {
|
7396
7399
|
_hover: {
|
7397
7400
|
outlineColor: "core.outline.hover",
|
7398
|
-
outlineWidth:
|
7401
|
+
outlineWidth: tokens22__namespace.default.size.stroke.md,
|
7399
7402
|
outlineStyle: "solid",
|
7400
7403
|
_active: {
|
7401
7404
|
backgroundColor: "core.surface.active",
|
@@ -7487,10 +7490,10 @@ var checkboxSlotRecipe = react.defineSlotRecipe({
|
|
7487
7490
|
_focus: {
|
7488
7491
|
outlineStyle: "solid",
|
7489
7492
|
outlineColor: "outline.focus",
|
7490
|
-
outlineOffset:
|
7491
|
-
outlineWidth:
|
7493
|
+
outlineOffset: tokens22__namespace.default.size.stroke.md,
|
7494
|
+
outlineWidth: tokens22__namespace.default.size.stroke.md,
|
7492
7495
|
borderColor: "core.outline",
|
7493
|
-
borderWidth:
|
7496
|
+
borderWidth: tokens22__namespace.default.size.stroke.md
|
7494
7497
|
}
|
7495
7498
|
},
|
7496
7499
|
label: {
|
@@ -8144,7 +8147,7 @@ var floatingActionButtonSlotRecipe = react.defineSlotRecipe({
|
|
8144
8147
|
position: "fixed",
|
8145
8148
|
zIndex: "dropdown",
|
8146
8149
|
_focus: {
|
8147
|
-
outlineOffset:
|
8150
|
+
outlineOffset: tokens22__namespace.default.size.stroke.lg,
|
8148
8151
|
outlineColor: "outline.focus"
|
8149
8152
|
},
|
8150
8153
|
_disabled: {
|
@@ -8444,6 +8447,7 @@ var travelTagSlotRecipe = react.defineSlotRecipe({
|
|
8444
8447
|
});
|
8445
8448
|
|
8446
8449
|
// src/theme/slot-recipes/info-tag.ts
|
8450
|
+
var _a4, _b3, _c, _d;
|
8447
8451
|
var infoTagSlotRecipe = react.defineSlotRecipe({
|
8448
8452
|
slots: infoTagAnatomy.keys(),
|
8449
8453
|
className: "spor-info-tag",
|
@@ -8476,21 +8480,21 @@ var infoTagSlotRecipe = react.defineSlotRecipe({
|
|
8476
8480
|
}
|
8477
8481
|
},
|
8478
8482
|
size: {
|
8479
|
-
...travelTagSlotRecipe.variants
|
8483
|
+
...(_a4 = travelTagSlotRecipe.variants) == null ? void 0 : _a4.size,
|
8480
8484
|
sm: {
|
8481
|
-
...travelTagSlotRecipe.variants
|
8485
|
+
...(_b3 = travelTagSlotRecipe.variants) == null ? void 0 : _b3.size.sm,
|
8482
8486
|
iconContainer: {
|
8483
8487
|
borderRadius: "0.375rem"
|
8484
8488
|
}
|
8485
8489
|
},
|
8486
8490
|
md: {
|
8487
|
-
...travelTagSlotRecipe.variants
|
8491
|
+
...(_c = travelTagSlotRecipe.variants) == null ? void 0 : _c.size.md,
|
8488
8492
|
iconContainer: {
|
8489
8493
|
borderRadius: "0.375rem"
|
8490
8494
|
}
|
8491
8495
|
},
|
8492
8496
|
lg: {
|
8493
|
-
...travelTagSlotRecipe.variants
|
8497
|
+
...(_d = travelTagSlotRecipe.variants) == null ? void 0 : _d.size.lg,
|
8494
8498
|
iconContainer: {
|
8495
8499
|
borderRadius: "sm"
|
8496
8500
|
}
|
@@ -9148,26 +9152,26 @@ var radioCardSlotRecipe = react.defineSlotRecipe({
|
|
9148
9152
|
core: {
|
9149
9153
|
item: {
|
9150
9154
|
outlineColor: "core.outline",
|
9151
|
-
outlineWidth:
|
9155
|
+
outlineWidth: tokens22__namespace.default.size.stroke.sm,
|
9152
9156
|
outlineStyle: "solid",
|
9153
9157
|
backgroundColor: "core.surface",
|
9154
9158
|
_hover: {
|
9155
9159
|
outlineColor: "core.outline.hover",
|
9156
|
-
outlineWidth:
|
9160
|
+
outlineWidth: tokens22__namespace.default.size.stroke.md,
|
9157
9161
|
outlineStyle: "solid",
|
9158
9162
|
_active: {
|
9159
9163
|
backgroundColor: "core.surface.active",
|
9160
|
-
outlineWidth:
|
9164
|
+
outlineWidth: tokens22__namespace.default.size.stroke.sm
|
9161
9165
|
}
|
9162
9166
|
},
|
9163
9167
|
_checked: {
|
9164
9168
|
outlineColor: "outline.focus",
|
9165
|
-
outlineWidth:
|
9169
|
+
outlineWidth: tokens22__namespace.default.size.stroke.md,
|
9166
9170
|
outlineStyle: "solid",
|
9167
9171
|
backgroundColor: "core.surface.active",
|
9168
9172
|
_focusVisible: {
|
9169
9173
|
outlineStyle: "double",
|
9170
|
-
outlineWidth: `calc(3 * ${
|
9174
|
+
outlineWidth: `calc(3 * ${tokens22__namespace.default.size.stroke.md})`
|
9171
9175
|
// space for double outline
|
9172
9176
|
}
|
9173
9177
|
}
|
@@ -9192,12 +9196,12 @@ var radioCardSlotRecipe = react.defineSlotRecipe({
|
|
9192
9196
|
},
|
9193
9197
|
_checked: {
|
9194
9198
|
outlineColor: "outline.focus",
|
9195
|
-
outlineWidth:
|
9199
|
+
outlineWidth: tokens22__namespace.default.size.stroke.md,
|
9196
9200
|
outlineStyle: "solid",
|
9197
9201
|
backgroundColor: "core.surface.active",
|
9198
9202
|
_focusVisible: {
|
9199
9203
|
outlineStyle: "double",
|
9200
|
-
outlineWidth: `calc(3 * ${
|
9204
|
+
outlineWidth: `calc(3 * ${tokens22__namespace.default.size.stroke.md})`
|
9201
9205
|
// space for double outline
|
9202
9206
|
}
|
9203
9207
|
}
|
@@ -9662,7 +9666,7 @@ var switchSlotRecipe = react.defineSlotRecipe({
|
|
9662
9666
|
backgroundColor: "brand.surface",
|
9663
9667
|
_focusVisible: {
|
9664
9668
|
outlineStyle: "double",
|
9665
|
-
outlineWidth: `calc(3 * ${
|
9669
|
+
outlineWidth: `calc(3 * ${tokens22__namespace.default.size.stroke.md})`
|
9666
9670
|
// space for double outline
|
9667
9671
|
}
|
9668
9672
|
},
|
@@ -10038,28 +10042,28 @@ var borders = react.defineTokens.borders({
|
|
10038
10042
|
value: "0"
|
10039
10043
|
},
|
10040
10044
|
sm: {
|
10041
|
-
value: `${
|
10045
|
+
value: `${tokens22__namespace.default.size.stroke.sm} solid`
|
10042
10046
|
},
|
10043
10047
|
"sm-dashed": {
|
10044
|
-
value: `${
|
10048
|
+
value: `${tokens22__namespace.default.size.stroke.sm} dashed`
|
10045
10049
|
},
|
10046
10050
|
md: {
|
10047
|
-
value: `${
|
10051
|
+
value: `${tokens22__namespace.default.size.stroke.md} solid`
|
10048
10052
|
},
|
10049
10053
|
"md-dashed": {
|
10050
|
-
value: `${
|
10054
|
+
value: `${tokens22__namespace.default.size.stroke.md} dashed`
|
10051
10055
|
},
|
10052
10056
|
lg: {
|
10053
|
-
value: `${
|
10057
|
+
value: `${tokens22__namespace.default.size.stroke.lg} solid`
|
10054
10058
|
},
|
10055
10059
|
"lg-dashed": {
|
10056
|
-
value: `${
|
10060
|
+
value: `${tokens22__namespace.default.size.stroke.lg} dashed`
|
10057
10061
|
}
|
10058
10062
|
});
|
10059
10063
|
var colors = react.defineTokens.colors({
|
10060
|
-
...
|
10061
|
-
...
|
10062
|
-
linjetag:
|
10064
|
+
...tokens4__default.default.color.alias.color.alias,
|
10065
|
+
...tokens4__default.default.color.palette.color.palette,
|
10066
|
+
linjetag: tokens4__default.default.color.linjetag.color.linjetag
|
10063
10067
|
});
|
10064
10068
|
var cursor = react.defineTokens.cursor({
|
10065
10069
|
button: {
|
@@ -10125,29 +10129,29 @@ var easings = react.defineTokens.easings({
|
|
10125
10129
|
}
|
10126
10130
|
});
|
10127
10131
|
var fontSizes = react.defineTokens.fontSizes({
|
10128
|
-
"2xs": { value:
|
10129
|
-
xs: { value:
|
10130
|
-
sm: { value:
|
10131
|
-
md: { value:
|
10132
|
-
lg: { value:
|
10133
|
-
xl: { value:
|
10134
|
-
"2xl": { value:
|
10135
|
-
"3xl": { value:
|
10132
|
+
"2xs": { value: tokens22__namespace.default.size.font.xs.mobile },
|
10133
|
+
xs: { value: tokens22__namespace.default.size.font.sm.mobile },
|
10134
|
+
sm: { value: tokens22__namespace.default.size.font.md.mobile },
|
10135
|
+
md: { value: tokens22__namespace.default.size.font.lg.mobile },
|
10136
|
+
lg: { value: tokens22__namespace.default.size.font.xl.mobile },
|
10137
|
+
xl: { value: tokens22__namespace.default.size.font.xxl.mobile },
|
10138
|
+
"2xl": { value: tokens22__namespace.default.size.font.xl.desktop },
|
10139
|
+
"3xl": { value: tokens22__namespace.default.size.font.xxl.desktop },
|
10136
10140
|
mobile: {
|
10137
|
-
xs: { value:
|
10138
|
-
sm: { value:
|
10139
|
-
md: { value:
|
10140
|
-
lg: { value:
|
10141
|
-
xl: { value:
|
10142
|
-
xxl: { value:
|
10141
|
+
xs: { value: tokens22__namespace.default.size.font.xs.mobile },
|
10142
|
+
sm: { value: tokens22__namespace.default.size.font.sm.mobile },
|
10143
|
+
md: { value: tokens22__namespace.default.size.font.md.mobile },
|
10144
|
+
lg: { value: tokens22__namespace.default.size.font.lg.mobile },
|
10145
|
+
xl: { value: tokens22__namespace.default.size.font.xl.mobile },
|
10146
|
+
xxl: { value: tokens22__namespace.default.size.font.xxl.mobile }
|
10143
10147
|
},
|
10144
10148
|
desktop: {
|
10145
|
-
xs: { value:
|
10146
|
-
sm: { value:
|
10147
|
-
md: { value:
|
10148
|
-
lg: { value:
|
10149
|
-
xl: { value:
|
10150
|
-
xxl: { value:
|
10149
|
+
xs: { value: tokens22__namespace.default.size.font.xs.desktop },
|
10150
|
+
sm: { value: tokens22__namespace.default.size.font.sm.desktop },
|
10151
|
+
md: { value: tokens22__namespace.default.size.font.md.desktop },
|
10152
|
+
lg: { value: tokens22__namespace.default.size.font.lg.desktop },
|
10153
|
+
xl: { value: tokens22__namespace.default.size.font.xl.desktop },
|
10154
|
+
xxl: { value: tokens22__namespace.default.size.font.xxl.desktop }
|
10151
10155
|
}
|
10152
10156
|
});
|
10153
10157
|
var fontWeights = react.defineTokens.fontWeights({
|
@@ -10180,9 +10184,9 @@ var fontWeights = react.defineTokens.fontWeights({
|
|
10180
10184
|
}
|
10181
10185
|
});
|
10182
10186
|
var fonts = react.defineTokens.fonts({
|
10183
|
-
body: { value: `${
|
10184
|
-
heading: { value: `${
|
10185
|
-
mono: { value: `${
|
10187
|
+
body: { value: `${tokens22__namespace.default.font.family.body}, arial, sans-serif` },
|
10188
|
+
heading: { value: `${tokens22__namespace.default.font.family.heading}, arial, sans-serif` },
|
10189
|
+
mono: { value: `${tokens22__namespace.default.font.family.monospace}, monospace` }
|
10186
10190
|
});
|
10187
10191
|
var letterSpacings = react.defineTokens.letterSpacings({
|
10188
10192
|
tighter: {
|
@@ -10219,31 +10223,31 @@ var lineHeights = react.defineTokens.lineHeights({
|
|
10219
10223
|
}
|
10220
10224
|
});
|
10221
10225
|
var radii2 = react.defineTokens.radii({
|
10222
|
-
none: { value:
|
10223
|
-
xs: { value:
|
10224
|
-
sm: { value:
|
10225
|
-
md: { value:
|
10226
|
-
lg: { value:
|
10227
|
-
xl: { value:
|
10228
|
-
"2xl": { value:
|
10226
|
+
none: { value: tokens22__namespace.default.size["border-radius"].none },
|
10227
|
+
xs: { value: tokens22__namespace.default.size["border-radius"].xs },
|
10228
|
+
sm: { value: tokens22__namespace.default.size["border-radius"].sm },
|
10229
|
+
md: { value: tokens22__namespace.default.size["border-radius"].md },
|
10230
|
+
lg: { value: tokens22__namespace.default.size["border-radius"].lg },
|
10231
|
+
xl: { value: tokens22__namespace.default.size["border-radius"].xl },
|
10232
|
+
"2xl": { value: tokens22__namespace.default.size["border-radius"]["2xl"] },
|
10229
10233
|
round: { value: "50%" }
|
10230
10234
|
});
|
10231
10235
|
var spacing = react.defineTokens.spacing({
|
10232
|
-
0: { value:
|
10233
|
-
0.5: { value:
|
10234
|
-
1: { value:
|
10235
|
-
1.5: { value:
|
10236
|
-
2: { value:
|
10237
|
-
3: { value:
|
10238
|
-
4: { value:
|
10239
|
-
5: { value:
|
10240
|
-
6: { value:
|
10241
|
-
7: { value:
|
10242
|
-
8: { value:
|
10243
|
-
9: { value:
|
10244
|
-
10: { value:
|
10245
|
-
11: { value:
|
10246
|
-
12: { value:
|
10236
|
+
0: { value: tokens22__namespace.default.size.spacing["0"] },
|
10237
|
+
0.5: { value: tokens22__namespace.default.size.spacing["0.5"] },
|
10238
|
+
1: { value: tokens22__namespace.default.size.spacing["1"] },
|
10239
|
+
1.5: { value: tokens22__namespace.default.size.spacing["1.5"] },
|
10240
|
+
2: { value: tokens22__namespace.default.size.spacing["2"] },
|
10241
|
+
3: { value: tokens22__namespace.default.size.spacing["3"] },
|
10242
|
+
4: { value: tokens22__namespace.default.size.spacing["4"] },
|
10243
|
+
5: { value: tokens22__namespace.default.size.spacing["5"] },
|
10244
|
+
6: { value: tokens22__namespace.default.size.spacing["6"] },
|
10245
|
+
7: { value: tokens22__namespace.default.size.spacing["7"] },
|
10246
|
+
8: { value: tokens22__namespace.default.size.spacing["8"] },
|
10247
|
+
9: { value: tokens22__namespace.default.size.spacing["9"] },
|
10248
|
+
10: { value: tokens22__namespace.default.size.spacing["10"] },
|
10249
|
+
11: { value: tokens22__namespace.default.size.spacing["11"] },
|
10250
|
+
12: { value: tokens22__namespace.default.size.spacing["12"] }
|
10247
10251
|
});
|
10248
10252
|
|
10249
10253
|
// src/theme/tokens/sizes.ts
|
@@ -10280,10 +10284,10 @@ var namedSizes = react.defineTokens.sizes({
|
|
10280
10284
|
});
|
10281
10285
|
var container = react.defineTokens.sizes({
|
10282
10286
|
base: { value: 0 },
|
10283
|
-
sm: { value:
|
10284
|
-
md: { value:
|
10285
|
-
lg: { value:
|
10286
|
-
xl: { value:
|
10287
|
+
sm: { value: tokens22__namespace.default.size.breakpoint.sm },
|
10288
|
+
md: { value: tokens22__namespace.default.size.breakpoint.md },
|
10289
|
+
lg: { value: tokens22__namespace.default.size.breakpoint.lg },
|
10290
|
+
xl: { value: tokens22__namespace.default.size.breakpoint.xl }
|
10287
10291
|
});
|
10288
10292
|
var sizes = {
|
10289
10293
|
...largeSizes,
|
@@ -10292,22 +10296,22 @@ var sizes = {
|
|
10292
10296
|
container
|
10293
10297
|
};
|
10294
10298
|
var zIndex = react.defineTokens.zIndex({
|
10295
|
-
hide: { value:
|
10299
|
+
hide: { value: tokens22__namespace.default.depth["z-index"].hide },
|
10296
10300
|
auto: { value: "auto" },
|
10297
|
-
base: { value:
|
10298
|
-
docked: { value:
|
10299
|
-
dropdown: { value:
|
10300
|
-
sticky: { value:
|
10301
|
-
banner: { value:
|
10302
|
-
overlay: { value:
|
10303
|
-
modal: { value:
|
10304
|
-
popover: { value:
|
10305
|
-
skipLink: { value:
|
10306
|
-
toast: { value:
|
10301
|
+
base: { value: tokens22__namespace.default.depth["z-index"].base },
|
10302
|
+
docked: { value: tokens22__namespace.default.depth["z-index"].docked },
|
10303
|
+
dropdown: { value: tokens22__namespace.default.depth["z-index"].dropdown },
|
10304
|
+
sticky: { value: tokens22__namespace.default.depth["z-index"].sticky },
|
10305
|
+
banner: { value: tokens22__namespace.default.depth["z-index"].banner },
|
10306
|
+
overlay: { value: tokens22__namespace.default.depth["z-index"].overlay },
|
10307
|
+
modal: { value: tokens22__namespace.default.depth["z-index"].modal },
|
10308
|
+
popover: { value: tokens22__namespace.default.depth["z-index"].popover },
|
10309
|
+
skipLink: { value: tokens22__namespace.default.depth["z-index"].skipLink },
|
10310
|
+
toast: { value: tokens22__namespace.default.depth["z-index"].toast }
|
10307
10311
|
});
|
10308
10312
|
|
10309
10313
|
// src/theme/tokens/index.ts
|
10310
|
-
var
|
10314
|
+
var tokens20 = {
|
10311
10315
|
aspectRatios,
|
10312
10316
|
animations,
|
10313
10317
|
blurs,
|
@@ -10376,10 +10380,10 @@ var animationStyles = react.defineAnimationStyles({
|
|
10376
10380
|
});
|
10377
10381
|
var breakpoints = {
|
10378
10382
|
base: "0px",
|
10379
|
-
sm:
|
10380
|
-
md:
|
10381
|
-
lg:
|
10382
|
-
xl:
|
10383
|
+
sm: tokens22__namespace.default.size.breakpoint.sm,
|
10384
|
+
md: tokens22__namespace.default.size.breakpoint.md,
|
10385
|
+
lg: tokens22__namespace.default.size.breakpoint.lg,
|
10386
|
+
xl: tokens22__namespace.default.size.breakpoint.xl
|
10383
10387
|
};
|
10384
10388
|
|
10385
10389
|
// src/theme/tokens/config.ts
|
@@ -10669,85 +10673,85 @@ var textStyles = react.defineTextStyles({
|
|
10669
10673
|
xxl: {
|
10670
10674
|
value: {
|
10671
10675
|
fontSize: [
|
10672
|
-
|
10676
|
+
tokens22__namespace.default.font.style.xxl["font-size"].mobile,
|
10673
10677
|
null,
|
10674
10678
|
null,
|
10675
|
-
|
10679
|
+
tokens22__namespace.default.font.style.xxl["font-size"].desktop
|
10676
10680
|
],
|
10677
|
-
fontFamily:
|
10678
|
-
lineHeight:
|
10681
|
+
fontFamily: tokens22__namespace.default.font.style.xxl["font-family"],
|
10682
|
+
lineHeight: tokens22__namespace.default.font.style.xxl["line-height"]
|
10679
10683
|
}
|
10680
10684
|
},
|
10681
10685
|
"xl-display": {
|
10682
10686
|
value: {
|
10683
10687
|
fontSize: [
|
10684
|
-
|
10688
|
+
tokens22__namespace.default.font.style["xl-display"]["font-size"].mobile,
|
10685
10689
|
null,
|
10686
10690
|
null,
|
10687
|
-
|
10691
|
+
tokens22__namespace.default.font.style["xl-display"]["font-size"].desktop
|
10688
10692
|
],
|
10689
|
-
fontFamily:
|
10690
|
-
lineHeight:
|
10693
|
+
fontFamily: tokens22__namespace.default.font.style["xl-display"]["font-family"],
|
10694
|
+
lineHeight: tokens22__namespace.default.font.style["xl-display"]["line-height"]
|
10691
10695
|
}
|
10692
10696
|
},
|
10693
10697
|
"xl-sans": {
|
10694
10698
|
value: {
|
10695
10699
|
fontSize: [
|
10696
|
-
|
10700
|
+
tokens22__namespace.default.font.style["xl-sans"]["font-size"].mobile,
|
10697
10701
|
null,
|
10698
10702
|
null,
|
10699
|
-
|
10703
|
+
tokens22__namespace.default.font.style["xl-sans"]["font-size"].desktop
|
10700
10704
|
],
|
10701
|
-
fontFamily:
|
10702
|
-
lineHeight:
|
10705
|
+
fontFamily: tokens22__namespace.default.font.style["xl-sans"]["font-family"],
|
10706
|
+
lineHeight: tokens22__namespace.default.font.style["xl-sans"]["line-height"]
|
10703
10707
|
}
|
10704
10708
|
},
|
10705
10709
|
lg: {
|
10706
10710
|
value: {
|
10707
10711
|
fontSize: [
|
10708
|
-
|
10712
|
+
tokens22__namespace.default.font.style.lg["font-size"].mobile,
|
10709
10713
|
null,
|
10710
10714
|
null,
|
10711
|
-
|
10715
|
+
tokens22__namespace.default.font.style.lg["font-size"].desktop
|
10712
10716
|
],
|
10713
|
-
fontFamily:
|
10714
|
-
lineHeight:
|
10717
|
+
fontFamily: tokens22__namespace.default.font.style.lg["font-family"],
|
10718
|
+
lineHeight: tokens22__namespace.default.font.style.lg["line-height"]
|
10715
10719
|
}
|
10716
10720
|
},
|
10717
10721
|
md: {
|
10718
10722
|
value: {
|
10719
10723
|
fontSize: [
|
10720
|
-
|
10724
|
+
tokens22__namespace.default.font.style.md["font-size"].mobile,
|
10721
10725
|
null,
|
10722
10726
|
null,
|
10723
|
-
|
10727
|
+
tokens22__namespace.default.font.style.md["font-size"].desktop
|
10724
10728
|
],
|
10725
|
-
fontFamily:
|
10726
|
-
lineHeight:
|
10729
|
+
fontFamily: tokens22__namespace.default.font.style.md["font-family"],
|
10730
|
+
lineHeight: tokens22__namespace.default.font.style.md["line-height"]
|
10727
10731
|
}
|
10728
10732
|
},
|
10729
10733
|
sm: {
|
10730
10734
|
value: {
|
10731
10735
|
fontSize: [
|
10732
|
-
|
10736
|
+
tokens22__namespace.default.font.style.sm["font-size"].mobile,
|
10733
10737
|
null,
|
10734
10738
|
null,
|
10735
|
-
|
10739
|
+
tokens22__namespace.default.font.style.sm["font-size"].desktop
|
10736
10740
|
],
|
10737
|
-
fontFamily:
|
10738
|
-
lineHeight:
|
10741
|
+
fontFamily: tokens22__namespace.default.font.style.sm["font-family"],
|
10742
|
+
lineHeight: tokens22__namespace.default.font.style.sm["line-height"]
|
10739
10743
|
}
|
10740
10744
|
},
|
10741
10745
|
xs: {
|
10742
10746
|
value: {
|
10743
10747
|
fontSize: [
|
10744
|
-
|
10748
|
+
tokens22__namespace.default.font.style.xs["font-size"].mobile,
|
10745
10749
|
null,
|
10746
10750
|
null,
|
10747
|
-
|
10751
|
+
tokens22__namespace.default.font.style.xs["font-size"].desktop
|
10748
10752
|
],
|
10749
|
-
fontFamily:
|
10750
|
-
lineHeight:
|
10753
|
+
fontFamily: tokens22__namespace.default.font.style.xs["font-family"],
|
10754
|
+
lineHeight: tokens22__namespace.default.font.style.xs["line-height"]
|
10751
10755
|
}
|
10752
10756
|
}
|
10753
10757
|
});
|
@@ -10758,7 +10762,7 @@ var generateTheme = (brand) => {
|
|
10758
10762
|
theme: {
|
10759
10763
|
breakpoints,
|
10760
10764
|
keyframes,
|
10761
|
-
tokens:
|
10765
|
+
tokens: tokens20,
|
10762
10766
|
semanticTokens: semanticTokens[brand],
|
10763
10767
|
recipes,
|
10764
10768
|
slotRecipes,
|
@@ -10995,7 +10999,7 @@ Object.defineProperty(exports, "Time", {
|
|
10995
10999
|
enumerable: true,
|
10996
11000
|
get: function () { return date.Time; }
|
10997
11001
|
});
|
10998
|
-
exports.tokens =
|
11002
|
+
exports.tokens = tokens22__namespace;
|
10999
11003
|
exports.Accordion = Accordion;
|
11000
11004
|
exports.AccordionItem = AccordionItem;
|
11001
11005
|
exports.AccordionItemContent = AccordionItemContent;
|