@vygruppen/spor-react 13.1.4 → 13.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +12 -12
- package/.turbo/turbo-postinstall.log +3 -4
- package/CHANGELOG.md +19 -0
- package/dist/index.cjs +496 -150
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +252 -41
- package/dist/index.d.ts +252 -41
- package/dist/index.mjs +494 -151
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/alert/Alert.tsx +42 -1
- package/src/input/ChoiceChip.tsx +133 -71
- package/src/input/Field.tsx +4 -1
- package/src/input/FilterChip.tsx +85 -0
- package/src/input/NumericStepper.tsx +6 -1
- package/src/input/index.ts +1 -0
- package/src/theme/recipes/badge.ts +19 -3
- package/src/theme/recipes/pressable-card.ts +3 -3
- package/src/theme/slot-recipes/anatomy.ts +1 -0
- package/src/theme/slot-recipes/choice-chip.ts +77 -49
- package/src/theme/slot-recipes/filter-chip.ts +197 -0
- package/src/theme/slot-recipes/index.ts +3 -1
- package/src/theme/slot-recipes/numeric-stepper.ts +3 -2
package/dist/index.cjs
CHANGED
|
@@ -227,8 +227,8 @@ function useTranslation() {
|
|
|
227
227
|
};
|
|
228
228
|
return { t, language };
|
|
229
229
|
}
|
|
230
|
-
function createTexts(
|
|
231
|
-
return
|
|
230
|
+
function createTexts(texts28) {
|
|
231
|
+
return texts28;
|
|
232
232
|
}
|
|
233
233
|
function Lottie({ animationData }) {
|
|
234
234
|
const { View } = lottieReact.useLottie({ animationData });
|
|
@@ -751,25 +751,41 @@ var badgeRecipie = react.defineRecipe({
|
|
|
751
751
|
"& svg": {
|
|
752
752
|
color: "icon.critical"
|
|
753
753
|
}
|
|
754
|
+
},
|
|
755
|
+
brightRed: {
|
|
756
|
+
backgroundColor: {
|
|
757
|
+
_light: "brightRed",
|
|
758
|
+
_dark: "brightRed"
|
|
759
|
+
},
|
|
760
|
+
color: {
|
|
761
|
+
_light: "pink",
|
|
762
|
+
_dark: "pink"
|
|
763
|
+
},
|
|
764
|
+
"& svg": {
|
|
765
|
+
color: {
|
|
766
|
+
_light: "pink",
|
|
767
|
+
_dark: "pink"
|
|
768
|
+
}
|
|
769
|
+
}
|
|
754
770
|
}
|
|
755
771
|
},
|
|
756
772
|
size: {
|
|
757
773
|
sm: {
|
|
758
|
-
fontSize: "desktop.
|
|
774
|
+
fontSize: "desktop.2xs",
|
|
759
775
|
paddingX: "0.5",
|
|
760
776
|
paddingY: "0",
|
|
761
777
|
fontWeight: "normal",
|
|
762
778
|
borderRadius: "xxs"
|
|
763
779
|
},
|
|
764
780
|
md: {
|
|
765
|
-
fontSize: "desktop.
|
|
781
|
+
fontSize: "desktop.2xs",
|
|
766
782
|
paddingX: "1",
|
|
767
783
|
paddingY: "0.5",
|
|
768
784
|
fontWeight: "bold",
|
|
769
785
|
borderRadius: "xs"
|
|
770
786
|
},
|
|
771
787
|
lg: {
|
|
772
|
-
fontSize: "desktop.
|
|
788
|
+
fontSize: "desktop.xs",
|
|
773
789
|
paddingX: "1.5",
|
|
774
790
|
paddingY: "0.5",
|
|
775
791
|
fontWeight: "bold",
|
|
@@ -1243,15 +1259,27 @@ var Alert = ({
|
|
|
1243
1259
|
children
|
|
1244
1260
|
} = props;
|
|
1245
1261
|
const { open, onClose } = react.useDisclosure({ defaultOpen: true });
|
|
1262
|
+
const { t } = useTranslation();
|
|
1246
1263
|
const handleAlertClose = () => {
|
|
1247
1264
|
onClose();
|
|
1248
1265
|
onAlertClose == null ? void 0 : onAlertClose();
|
|
1249
1266
|
};
|
|
1250
1267
|
const recipe = react.useSlotRecipe({ key: "alert" });
|
|
1251
1268
|
const styles = recipe({ variant: props.variant });
|
|
1269
|
+
const getAriaLabelText = () => {
|
|
1270
|
+
const variant = props.variant;
|
|
1271
|
+
if (variant === "important" || variant === "alt")
|
|
1272
|
+
return texts5.ariaLabelAlertWarning;
|
|
1273
|
+
if (variant === "error" || variant === "error-secondary")
|
|
1274
|
+
return texts5.ariaLabelAlertError;
|
|
1275
|
+
if (variant === "success")
|
|
1276
|
+
return texts5.ariaLabelAlertSuccess;
|
|
1277
|
+
return texts5.ariaLabelAlertInformative;
|
|
1278
|
+
};
|
|
1279
|
+
const ariaLabel = t(getAriaLabelText());
|
|
1252
1280
|
if (!open)
|
|
1253
1281
|
return null;
|
|
1254
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(react.Alert.Root, { ref, ...props, children: [
|
|
1282
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(react.Alert.Root, { ref, role: "alert", "aria-label": ariaLabel, ...props, children: [
|
|
1255
1283
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1256
1284
|
react.Alert.Content,
|
|
1257
1285
|
{
|
|
@@ -1296,6 +1324,32 @@ var Alert = ({
|
|
|
1296
1324
|
)
|
|
1297
1325
|
] });
|
|
1298
1326
|
};
|
|
1327
|
+
var texts5 = createTexts({
|
|
1328
|
+
ariaLabelAlertInformative: {
|
|
1329
|
+
en: "Announcement",
|
|
1330
|
+
nb: "Kunngj\xF8ring",
|
|
1331
|
+
nn: "Kunngjering",
|
|
1332
|
+
sv: "Meddelande"
|
|
1333
|
+
},
|
|
1334
|
+
ariaLabelAlertWarning: {
|
|
1335
|
+
en: "Warning",
|
|
1336
|
+
nb: "Advarsel",
|
|
1337
|
+
nn: "Varsel",
|
|
1338
|
+
sv: "Varning"
|
|
1339
|
+
},
|
|
1340
|
+
ariaLabelAlertError: {
|
|
1341
|
+
en: "Error",
|
|
1342
|
+
nb: "Feil",
|
|
1343
|
+
nn: "Feil",
|
|
1344
|
+
sv: "Fel"
|
|
1345
|
+
},
|
|
1346
|
+
ariaLabelAlertSuccess: {
|
|
1347
|
+
en: "Success",
|
|
1348
|
+
nb: "Suksess",
|
|
1349
|
+
nn: "Suksess",
|
|
1350
|
+
sv: "Framg\xE5ng"
|
|
1351
|
+
}
|
|
1352
|
+
});
|
|
1299
1353
|
var ExpandableAlert = ({
|
|
1300
1354
|
ref,
|
|
1301
1355
|
...props
|
|
@@ -1396,7 +1450,7 @@ var ServiceAlert = ({
|
|
|
1396
1450
|
maxWidth: contentWidth,
|
|
1397
1451
|
children: [
|
|
1398
1452
|
/* @__PURE__ */ jsxRuntime.jsxs(react.HStack, { as: headingLevel, alignItems: "center", gap: "1", children: [
|
|
1399
|
-
variant === "service" ? /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.ServiceFill24Icon, { "aria-label": t(
|
|
1453
|
+
variant === "service" ? /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.ServiceFill24Icon, { "aria-label": t(texts6.service) }) : /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.WarningFill24Icon, { "aria-label": t(texts6["global-deviation"]) }),
|
|
1400
1454
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1401
1455
|
react.Span,
|
|
1402
1456
|
{
|
|
@@ -1413,7 +1467,7 @@ var ServiceAlert = ({
|
|
|
1413
1467
|
)
|
|
1414
1468
|
] }),
|
|
1415
1469
|
/* @__PURE__ */ jsxRuntime.jsxs(react.Flex, { alignItems: "center", gap: [0.5, null, null, 1], children: [
|
|
1416
|
-
notification && /* @__PURE__ */ jsxRuntime.jsx(react.Text, { css: styles.notificationText, children: t(
|
|
1470
|
+
notification && /* @__PURE__ */ jsxRuntime.jsx(react.Text, { css: styles.notificationText, children: t(texts6.notification(notification)) }),
|
|
1417
1471
|
/* @__PURE__ */ jsxRuntime.jsx(react.Accordion.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.DropdownDownFill24Icon, { color: "icon.brand" }) })
|
|
1418
1472
|
] })
|
|
1419
1473
|
]
|
|
@@ -1424,7 +1478,7 @@ var ServiceAlert = ({
|
|
|
1424
1478
|
}
|
|
1425
1479
|
);
|
|
1426
1480
|
};
|
|
1427
|
-
var
|
|
1481
|
+
var texts6 = createTexts({
|
|
1428
1482
|
notification: (notification) => {
|
|
1429
1483
|
const numberNotification = Number(notification);
|
|
1430
1484
|
return {
|
|
@@ -1884,7 +1938,7 @@ function CalendarHeader({ dualView }) {
|
|
|
1884
1938
|
variant: "ghost",
|
|
1885
1939
|
marginLeft: 1,
|
|
1886
1940
|
disabled: prevButtonProps.isDisabled,
|
|
1887
|
-
"aria-label": t(
|
|
1941
|
+
"aria-label": t(texts7.previousMonth),
|
|
1888
1942
|
icon: /* @__PURE__ */ jsxRuntime.jsx(icons_exports.DropdownLeftFill24Icon, {})
|
|
1889
1943
|
}
|
|
1890
1944
|
),
|
|
@@ -1926,7 +1980,7 @@ function CalendarHeader({ dualView }) {
|
|
|
1926
1980
|
marginRight: 1,
|
|
1927
1981
|
variant: "ghost",
|
|
1928
1982
|
disabled: nextButtonProps.isDisabled,
|
|
1929
|
-
"aria-label": t(
|
|
1983
|
+
"aria-label": t(texts7.nextMonth),
|
|
1930
1984
|
icon: /* @__PURE__ */ jsxRuntime.jsx(icons_exports.DropdownRightFill24Icon, {})
|
|
1931
1985
|
}
|
|
1932
1986
|
)
|
|
@@ -1934,7 +1988,7 @@ function CalendarHeader({ dualView }) {
|
|
|
1934
1988
|
}
|
|
1935
1989
|
);
|
|
1936
1990
|
}
|
|
1937
|
-
var
|
|
1991
|
+
var texts7 = createTexts({
|
|
1938
1992
|
previousMonth: {
|
|
1939
1993
|
nb: "Forrige m\xE5ned",
|
|
1940
1994
|
nn: "F\xF8rre m\xE5nad",
|
|
@@ -2162,11 +2216,12 @@ var Field3 = ({
|
|
|
2162
2216
|
id,
|
|
2163
2217
|
shouldFloat,
|
|
2164
2218
|
labelAsChild,
|
|
2219
|
+
gap,
|
|
2165
2220
|
...rest
|
|
2166
2221
|
} = props;
|
|
2167
2222
|
const recipe = react.useSlotRecipe({ key: "field" });
|
|
2168
2223
|
const styles = recipe();
|
|
2169
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(react.Stack, {
|
|
2224
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(react.Stack, { ref, width: "100%", ...rest, children: [
|
|
2170
2225
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
2171
2226
|
react.Field.Root,
|
|
2172
2227
|
{
|
|
@@ -2177,6 +2232,7 @@ var Field3 = ({
|
|
|
2177
2232
|
css: styles.root,
|
|
2178
2233
|
direction,
|
|
2179
2234
|
id,
|
|
2235
|
+
gap,
|
|
2180
2236
|
children: [
|
|
2181
2237
|
label && !floatingLabel && /* @__PURE__ */ jsxRuntime.jsx(Label, { asChild: labelAsChild, "aria-hidden": true, children: renderLabelWithIndicator(label, labelAsChild) }),
|
|
2182
2238
|
children,
|
|
@@ -2419,7 +2475,7 @@ var CalendarNavigator = ({
|
|
|
2419
2475
|
onPress: onPrevious,
|
|
2420
2476
|
isDisabled: isPreviousDisabled,
|
|
2421
2477
|
icon: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.ArrowLeftOutline24Icon, {}),
|
|
2422
|
-
"aria-label": `${t(
|
|
2478
|
+
"aria-label": `${t(texts8.previous)} ${t(texts8[unit])}`
|
|
2423
2479
|
}
|
|
2424
2480
|
),
|
|
2425
2481
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -2440,12 +2496,12 @@ var CalendarNavigator = ({
|
|
|
2440
2496
|
onPress: onNext,
|
|
2441
2497
|
isDisabled: isNextDisabled,
|
|
2442
2498
|
icon: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.ArrowRightOutline24Icon, {}),
|
|
2443
|
-
"aria-label": `${t(
|
|
2499
|
+
"aria-label": `${t(texts8.next)} ${t(texts8[unit])}`
|
|
2444
2500
|
}
|
|
2445
2501
|
)
|
|
2446
2502
|
] });
|
|
2447
2503
|
};
|
|
2448
|
-
var
|
|
2504
|
+
var texts8 = createTexts({
|
|
2449
2505
|
previous: {
|
|
2450
2506
|
nb: "Forrige",
|
|
2451
2507
|
nn: "Forrige",
|
|
@@ -2490,7 +2546,7 @@ function Calendar2({
|
|
|
2490
2546
|
const styles = recipe({ variant });
|
|
2491
2547
|
const { calendarProps } = reactAria.useCalendar(props, state);
|
|
2492
2548
|
const calendarAriaLabel = calendarProps["aria-label"];
|
|
2493
|
-
const ariaLabel = t(
|
|
2549
|
+
const ariaLabel = t(texts9.calendar) + (calendarAriaLabel ? ` ${calendarAriaLabel}` : "");
|
|
2494
2550
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2495
2551
|
react.Box,
|
|
2496
2552
|
{
|
|
@@ -2504,7 +2560,7 @@ function Calendar2({
|
|
|
2504
2560
|
}
|
|
2505
2561
|
);
|
|
2506
2562
|
}
|
|
2507
|
-
var
|
|
2563
|
+
var texts9 = createTexts({
|
|
2508
2564
|
calendar: {
|
|
2509
2565
|
nb: "Kalender",
|
|
2510
2566
|
nn: "Kalender",
|
|
@@ -2530,14 +2586,14 @@ var CalendarTriggerButton = ({
|
|
|
2530
2586
|
IconButton,
|
|
2531
2587
|
{
|
|
2532
2588
|
icon: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.CalendarOutline24Icon, {}),
|
|
2533
|
-
"aria-label": t(
|
|
2589
|
+
"aria-label": t(texts10.openCalendar),
|
|
2534
2590
|
css: styles.calendarTriggerButton,
|
|
2535
2591
|
variant: "ghost",
|
|
2536
2592
|
disabled
|
|
2537
2593
|
}
|
|
2538
2594
|
) });
|
|
2539
2595
|
};
|
|
2540
|
-
var
|
|
2596
|
+
var texts10 = createTexts({
|
|
2541
2597
|
openCalendar: {
|
|
2542
2598
|
nb: "\xC5pne kalender",
|
|
2543
2599
|
nn: "\xC5pne kalendar",
|
|
@@ -2646,7 +2702,7 @@ var DateField = ({
|
|
|
2646
2702
|
)
|
|
2647
2703
|
] });
|
|
2648
2704
|
};
|
|
2649
|
-
var
|
|
2705
|
+
var texts11 = createTexts({
|
|
2650
2706
|
day: {
|
|
2651
2707
|
nb: "Velg dag",
|
|
2652
2708
|
nn: "Vel dag",
|
|
@@ -2669,16 +2725,16 @@ var texts10 = createTexts({
|
|
|
2669
2725
|
var getAriaLabel = (segmentType) => {
|
|
2670
2726
|
switch (segmentType) {
|
|
2671
2727
|
case "day": {
|
|
2672
|
-
return
|
|
2728
|
+
return texts11.day;
|
|
2673
2729
|
}
|
|
2674
2730
|
case "month": {
|
|
2675
|
-
return
|
|
2731
|
+
return texts11.month;
|
|
2676
2732
|
}
|
|
2677
2733
|
case "year": {
|
|
2678
|
-
return
|
|
2734
|
+
return texts11.year;
|
|
2679
2735
|
}
|
|
2680
2736
|
default: {
|
|
2681
|
-
return
|
|
2737
|
+
return texts11.day;
|
|
2682
2738
|
}
|
|
2683
2739
|
}
|
|
2684
2740
|
};
|
|
@@ -3013,7 +3069,7 @@ var TimePicker = ({
|
|
|
3013
3069
|
const isDisabled = isDisabledExternally ?? fieldDisabled ?? false;
|
|
3014
3070
|
const { t } = useTranslation();
|
|
3015
3071
|
const locale = useCurrentLocale();
|
|
3016
|
-
const label = externalLabel ?? t(
|
|
3072
|
+
const label = externalLabel ?? t(texts12.time);
|
|
3017
3073
|
const state = reactStately.useTimeFieldState({
|
|
3018
3074
|
value,
|
|
3019
3075
|
defaultValue,
|
|
@@ -3046,15 +3102,15 @@ var TimePicker = ({
|
|
|
3046
3102
|
})
|
|
3047
3103
|
);
|
|
3048
3104
|
};
|
|
3049
|
-
const backwardsLabel = `${t(
|
|
3050
|
-
|
|
3105
|
+
const backwardsLabel = `${t(texts12.backwards)} ${minuteInterval} ${t(
|
|
3106
|
+
texts12.minutes
|
|
3051
3107
|
)}`;
|
|
3052
|
-
const forwardsLabel = `${t(
|
|
3053
|
-
|
|
3108
|
+
const forwardsLabel = `${t(texts12.forwards)} ${minuteInterval} ${t(
|
|
3109
|
+
texts12.minutes
|
|
3054
3110
|
)}`;
|
|
3055
|
-
const inputLabel = label ?? t(
|
|
3111
|
+
const inputLabel = label ?? t(texts12.time);
|
|
3056
3112
|
const ariaLabel = `${inputLabel} \u2013 ${t(
|
|
3057
|
-
|
|
3113
|
+
texts12.selectedTimeIs(`${(dateTime == null ? void 0 : dateTime.hour) ?? 0} ${(dateTime == null ? void 0 : dateTime.minute) ?? 0}`)
|
|
3058
3114
|
)}`;
|
|
3059
3115
|
return /* @__PURE__ */ jsxRuntime.jsx(Field3, { as: "time", ...boxProps, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3060
3116
|
StyledField,
|
|
@@ -3107,7 +3163,7 @@ var TimePicker = ({
|
|
|
3107
3163
|
}
|
|
3108
3164
|
) });
|
|
3109
3165
|
};
|
|
3110
|
-
var
|
|
3166
|
+
var texts12 = createTexts({
|
|
3111
3167
|
selectedTimeIs: (time) => ({
|
|
3112
3168
|
nb: `Valgt tidspunkt er ${time}`,
|
|
3113
3169
|
nn: `Valt tidspunkt er ${time}`,
|
|
@@ -3248,7 +3304,7 @@ var DrawerCloseTrigger = function DrawerCloseTrigger2({
|
|
|
3248
3304
|
{
|
|
3249
3305
|
variant: "ghost",
|
|
3250
3306
|
icon: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.CloseFill24Icon, {}),
|
|
3251
|
-
label: t(
|
|
3307
|
+
label: t(texts13.close)
|
|
3252
3308
|
}
|
|
3253
3309
|
) : /* @__PURE__ */ jsxRuntime.jsx(CloseButton, { size: "md" }) });
|
|
3254
3310
|
};
|
|
@@ -3262,7 +3318,7 @@ var DrawerBackTrigger = ({
|
|
|
3262
3318
|
{
|
|
3263
3319
|
variant: "ghost",
|
|
3264
3320
|
icon: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.ArrowLeftFill24Icon, {}),
|
|
3265
|
-
label: t(
|
|
3321
|
+
label: t(texts13.back)
|
|
3266
3322
|
}
|
|
3267
3323
|
) });
|
|
3268
3324
|
};
|
|
@@ -3294,7 +3350,7 @@ var DrawerBackdrop = react.Drawer.Backdrop;
|
|
|
3294
3350
|
var DrawerTitle = react.Drawer.Title;
|
|
3295
3351
|
var DrawerActionTrigger = react.Drawer.ActionTrigger;
|
|
3296
3352
|
var DrawerHeader = react.Drawer.Header;
|
|
3297
|
-
var
|
|
3353
|
+
var texts13 = createTexts({
|
|
3298
3354
|
back: {
|
|
3299
3355
|
en: "Back",
|
|
3300
3356
|
nb: "Tilbake",
|
|
@@ -3610,10 +3666,10 @@ function Autocomplete({
|
|
|
3610
3666
|
}
|
|
3611
3667
|
}
|
|
3612
3668
|
) }),
|
|
3613
|
-
/* @__PURE__ */ jsxRuntime.jsx(react.Combobox.IndicatorGroup, { children: /* @__PURE__ */ jsxRuntime.jsx(react.Combobox.ClearTrigger, { asChild: true, "aria-label": t(
|
|
3669
|
+
/* @__PURE__ */ jsxRuntime.jsx(react.Combobox.IndicatorGroup, { children: /* @__PURE__ */ jsxRuntime.jsx(react.Combobox.ClearTrigger, { asChild: true, "aria-label": t(texts14.clearValue), children: /* @__PURE__ */ jsxRuntime.jsx(CloseButton, { size: "xs", tabIndex: 0 }) }) })
|
|
3614
3670
|
] }),
|
|
3615
3671
|
/* @__PURE__ */ jsxRuntime.jsx(react.Combobox.Positioner, { children: /* @__PURE__ */ jsxRuntime.jsxs(react.Combobox.Content, { children: [
|
|
3616
|
-
!loading && /* @__PURE__ */ jsxRuntime.jsx(react.Combobox.Empty, { children: emptyLabel ?? t(
|
|
3672
|
+
!loading && /* @__PURE__ */ jsxRuntime.jsx(react.Combobox.Empty, { children: emptyLabel ?? t(texts14.noItemsFound) }),
|
|
3617
3673
|
loading ? /* @__PURE__ */ jsxRuntime.jsx(ColorSpinner, { width: "1.5rem", p: "2" }) : filteredChildren
|
|
3618
3674
|
] }) })
|
|
3619
3675
|
] });
|
|
@@ -3672,7 +3728,7 @@ var extractItemsFromChildren = (children) => {
|
|
|
3672
3728
|
});
|
|
3673
3729
|
return items;
|
|
3674
3730
|
};
|
|
3675
|
-
var
|
|
3731
|
+
var texts14 = createTexts({
|
|
3676
3732
|
noItemsFound: {
|
|
3677
3733
|
nb: "Ingen resultater",
|
|
3678
3734
|
nn: "Ingen resultat",
|
|
@@ -3757,31 +3813,69 @@ var CheckboxGroup = (props) => {
|
|
|
3757
3813
|
const { direction = "row", children, gap = 1, ...rest } = props;
|
|
3758
3814
|
return /* @__PURE__ */ jsxRuntime.jsx(react.CheckboxGroup, { ...rest, children: /* @__PURE__ */ jsxRuntime.jsx(react.Stack, { direction, gap, children }) });
|
|
3759
3815
|
};
|
|
3816
|
+
var ChoiceChipContext = React13.createContext({
|
|
3817
|
+
variant: "core",
|
|
3818
|
+
size: "sm"
|
|
3819
|
+
});
|
|
3820
|
+
var useChoiceChipContext = () => React13.useContext(ChoiceChipContext);
|
|
3760
3821
|
var ChoiceChip = ({
|
|
3761
3822
|
ref,
|
|
3762
|
-
|
|
3763
|
-
icon,
|
|
3764
|
-
onCheckedChange,
|
|
3765
|
-
...rootProps
|
|
3823
|
+
...props
|
|
3766
3824
|
}) => {
|
|
3767
|
-
|
|
3768
|
-
|
|
3825
|
+
const { children, inputProps, icon, variant, size, css, ...rest } = props;
|
|
3826
|
+
const { variant: contextVariant, size: contextSize } = useChoiceChipContext();
|
|
3827
|
+
const uniqueId = React13.useId();
|
|
3828
|
+
const itemControlId = `radio-card-item-control-${uniqueId}`;
|
|
3829
|
+
const inputHasAriaLabel = (inputProps == null ? void 0 : inputProps["aria-labelledby"]) || (inputProps == null ? void 0 : inputProps["aria-label"]);
|
|
3830
|
+
const finalVariant = variant ?? contextVariant;
|
|
3831
|
+
const finalSize = size ?? contextSize;
|
|
3832
|
+
const recipe = react.useSlotRecipe({ key: "choiceChip" });
|
|
3833
|
+
const styles = recipe({
|
|
3834
|
+
variant: finalVariant,
|
|
3835
|
+
size: finalSize
|
|
3836
|
+
});
|
|
3837
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(react.RadioCard.Item, { ...rest, css: { ...css, ...styles.item }, children: [
|
|
3838
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3839
|
+
react.RadioCard.ItemHiddenInput,
|
|
3840
|
+
{
|
|
3841
|
+
"aria-labelledby": inputHasAriaLabel ? inputProps == null ? void 0 : inputProps["aria-labelledby"] : itemControlId,
|
|
3842
|
+
ref,
|
|
3843
|
+
...inputProps
|
|
3844
|
+
}
|
|
3845
|
+
),
|
|
3846
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3847
|
+
react.RadioCard.ItemControl,
|
|
3848
|
+
{
|
|
3849
|
+
id: itemControlId,
|
|
3850
|
+
"aria-hidden": true,
|
|
3851
|
+
css: styles.itemControl,
|
|
3852
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(react.RadioCard.ItemContext, { children: ({ checked }) => /* @__PURE__ */ jsxRuntime.jsxs(react.RadioCard.Label, { css: styles.label, children: [
|
|
3853
|
+
checked ? (icon == null ? void 0 : icon.checked) && /* @__PURE__ */ jsxRuntime.jsx(react.Span, { children: icon.checked }) : (icon == null ? void 0 : icon.default) && /* @__PURE__ */ jsxRuntime.jsx(react.Span, { children: icon.default }),
|
|
3854
|
+
children
|
|
3855
|
+
] }) })
|
|
3856
|
+
}
|
|
3857
|
+
)
|
|
3858
|
+
] });
|
|
3859
|
+
};
|
|
3860
|
+
var ChoiceChipGroup = ({
|
|
3861
|
+
ref,
|
|
3862
|
+
...props
|
|
3863
|
+
}) => {
|
|
3864
|
+
const { children, variant, size, css, ...rest } = props;
|
|
3865
|
+
const recipe = react.useSlotRecipe({ key: "choiceChip" });
|
|
3866
|
+
const styles = recipe({ variant, size });
|
|
3867
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ChoiceChipContext.Provider, { value: { variant, size }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3868
|
+
react.RadioCard.Root,
|
|
3769
3869
|
{
|
|
3770
|
-
...
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
children
|
|
3775
|
-
/* @__PURE__ */ jsxRuntime.jsx(react.CheckboxCard.HiddenInput, { ref }),
|
|
3776
|
-
/* @__PURE__ */ jsxRuntime.jsx(react.CheckboxCard.Control, { children: /* @__PURE__ */ jsxRuntime.jsx(react.CheckboxCard.Content, { children: /* @__PURE__ */ jsxRuntime.jsxs(react.CheckboxCard.Label, { children: [
|
|
3777
|
-
icon && /* @__PURE__ */ jsxRuntime.jsx(react.Span, { width: "24px", children: checked ? icon.checked : icon.default }),
|
|
3778
|
-
rootProps.chipType !== "icon" && children,
|
|
3779
|
-
rootProps.chipType === "filter" && checked && /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.CloseOutline24Icon, {})
|
|
3780
|
-
] }) }) })
|
|
3781
|
-
] }) })
|
|
3870
|
+
css: { ...styles.root, ...css },
|
|
3871
|
+
ref,
|
|
3872
|
+
variant,
|
|
3873
|
+
...rest,
|
|
3874
|
+
children
|
|
3782
3875
|
}
|
|
3783
|
-
);
|
|
3876
|
+
) });
|
|
3784
3877
|
};
|
|
3878
|
+
var ChoiceChipLabel = react.RadioCard.Label;
|
|
3785
3879
|
var Popover = ({
|
|
3786
3880
|
ref,
|
|
3787
3881
|
children,
|
|
@@ -4038,6 +4132,31 @@ var FieldsetLegend = react.Fieldset.Legend;
|
|
|
4038
4132
|
var FieldsetContent = react.Fieldset.Content;
|
|
4039
4133
|
var FieldsetHelperText = react.Fieldset.HelperText;
|
|
4040
4134
|
var FieldsetErrorText = react.Fieldset.ErrorText;
|
|
4135
|
+
var FilterChip = ({
|
|
4136
|
+
ref,
|
|
4137
|
+
children,
|
|
4138
|
+
icon,
|
|
4139
|
+
onCheckedChange,
|
|
4140
|
+
...rootProps
|
|
4141
|
+
}) => {
|
|
4142
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4143
|
+
react.CheckboxCard.Root,
|
|
4144
|
+
{
|
|
4145
|
+
...rootProps,
|
|
4146
|
+
...onCheckedChange && {
|
|
4147
|
+
onCheckedChange: (details) => onCheckedChange(!!details.checked)
|
|
4148
|
+
},
|
|
4149
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(react.CheckboxCard.Context, { children: ({ checked }) => /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
4150
|
+
/* @__PURE__ */ jsxRuntime.jsx(react.CheckboxCard.HiddenInput, { ref }),
|
|
4151
|
+
/* @__PURE__ */ jsxRuntime.jsx(react.CheckboxCard.Control, { children: /* @__PURE__ */ jsxRuntime.jsx(react.CheckboxCard.Content, { children: /* @__PURE__ */ jsxRuntime.jsxs(react.CheckboxCard.Label, { children: [
|
|
4152
|
+
checked ? (icon == null ? void 0 : icon.checked) && /* @__PURE__ */ jsxRuntime.jsx(react.Span, { children: icon.checked }) : (icon == null ? void 0 : icon.default) && /* @__PURE__ */ jsxRuntime.jsx(react.Span, { children: icon.default }),
|
|
4153
|
+
rootProps.chipType !== "icon" && children,
|
|
4154
|
+
rootProps.chipType === "filter" && checked && /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.CloseOutline24Icon, {})
|
|
4155
|
+
] }) }) })
|
|
4156
|
+
] }) })
|
|
4157
|
+
}
|
|
4158
|
+
);
|
|
4159
|
+
};
|
|
4041
4160
|
var InputChip = ({
|
|
4042
4161
|
startIcon,
|
|
4043
4162
|
endIcon,
|
|
@@ -4389,6 +4508,7 @@ var NumericStepper = ({
|
|
|
4389
4508
|
label,
|
|
4390
4509
|
helperText,
|
|
4391
4510
|
errorText,
|
|
4511
|
+
gap,
|
|
4392
4512
|
...rest
|
|
4393
4513
|
} = props;
|
|
4394
4514
|
const addButtonRef = React13.useRef(null);
|
|
@@ -4417,13 +4537,14 @@ var NumericStepper = ({
|
|
|
4417
4537
|
invalid,
|
|
4418
4538
|
readOnly,
|
|
4419
4539
|
required,
|
|
4540
|
+
gap,
|
|
4420
4541
|
children: [
|
|
4421
4542
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4422
4543
|
VerySmallButton,
|
|
4423
4544
|
{
|
|
4424
4545
|
icon: /* @__PURE__ */ jsxRuntime.jsx(SubtractIcon, { stepLabel: clampedStepSize }),
|
|
4425
4546
|
"aria-label": t(
|
|
4426
|
-
|
|
4547
|
+
texts15.decrementButtonAriaLabel(
|
|
4427
4548
|
clampedStepSize,
|
|
4428
4549
|
stepSize === 1 ? ariaLabelContext.singular : ariaLabelContext.plural
|
|
4429
4550
|
)
|
|
@@ -4450,7 +4571,7 @@ var NumericStepper = ({
|
|
|
4450
4571
|
css: styles.input,
|
|
4451
4572
|
width: `${Math.max(value.toString().length + 1, 3)}ch`,
|
|
4452
4573
|
"aria-live": "assertive",
|
|
4453
|
-
"aria-label": ariaLabelContext.plural === "" ? "" : t(
|
|
4574
|
+
"aria-label": ariaLabelContext.plural === "" ? "" : t(texts15.currentNumberAriaLabel(ariaLabelContext.plural)),
|
|
4454
4575
|
onChange: (event) => {
|
|
4455
4576
|
const numericInput = Number(event.target.value);
|
|
4456
4577
|
if (Number.isNaN(numericInput)) {
|
|
@@ -4467,8 +4588,11 @@ var NumericStepper = ({
|
|
|
4467
4588
|
Text3,
|
|
4468
4589
|
{
|
|
4469
4590
|
"aria-live": "assertive",
|
|
4470
|
-
|
|
4471
|
-
|
|
4591
|
+
width: `${Math.max(value.toString().length + 1, 3)}ch`,
|
|
4592
|
+
paddingX: 0.5,
|
|
4593
|
+
padding: 0,
|
|
4594
|
+
textAlign: "center",
|
|
4595
|
+
"aria-label": ariaLabelContext.plural === "" ? "" : t(texts15.currentNumberAriaLabel(ariaLabelContext.plural)),
|
|
4472
4596
|
children: value
|
|
4473
4597
|
}
|
|
4474
4598
|
),
|
|
@@ -4478,7 +4602,7 @@ var NumericStepper = ({
|
|
|
4478
4602
|
ref: addButtonRef,
|
|
4479
4603
|
icon: /* @__PURE__ */ jsxRuntime.jsx(AddIcon, { stepLabel: clampedStepSize }),
|
|
4480
4604
|
"aria-label": t(
|
|
4481
|
-
|
|
4605
|
+
texts15.incrementButtonAriaLabel(
|
|
4482
4606
|
clampedStepSize,
|
|
4483
4607
|
stepSize === 1 ? ariaLabelContext.singular : ariaLabelContext.plural
|
|
4484
4608
|
)
|
|
@@ -4552,7 +4676,7 @@ var AddIcon = ({ stepLabel }) => /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Frag
|
|
|
4552
4676
|
] }),
|
|
4553
4677
|
stepLabel > 1 && /* @__PURE__ */ jsxRuntime.jsx(react.chakra.span, { paddingRight: "1", children: stepLabel.toString() })
|
|
4554
4678
|
] });
|
|
4555
|
-
var
|
|
4679
|
+
var texts15 = createTexts({
|
|
4556
4680
|
currentNumberAriaLabel(ariaContext) {
|
|
4557
4681
|
return {
|
|
4558
4682
|
nb: `Valgt antall ${ariaContext}`,
|
|
@@ -4616,7 +4740,7 @@ var PasswordInput = ({
|
|
|
4616
4740
|
event.preventDefault();
|
|
4617
4741
|
setVisible(!visible);
|
|
4618
4742
|
},
|
|
4619
|
-
children: visible ? t(
|
|
4743
|
+
children: visible ? t(texts16.hidePassword) : t(texts16.showPassword)
|
|
4620
4744
|
}
|
|
4621
4745
|
),
|
|
4622
4746
|
...rest
|
|
@@ -4641,7 +4765,7 @@ var VisibilityTrigger = ({
|
|
|
4641
4765
|
}
|
|
4642
4766
|
);
|
|
4643
4767
|
};
|
|
4644
|
-
var
|
|
4768
|
+
var texts16 = createTexts({
|
|
4645
4769
|
showPassword: {
|
|
4646
4770
|
nb: "Vis",
|
|
4647
4771
|
nn: "Vis",
|
|
@@ -4693,14 +4817,14 @@ var CountryCodeSelect = ({
|
|
|
4693
4817
|
positioning: { placement: "bottom", flip: false },
|
|
4694
4818
|
collection: filteredCallingCodes,
|
|
4695
4819
|
lazyMount: true,
|
|
4696
|
-
"aria-label": t(
|
|
4820
|
+
"aria-label": t(texts17.countryCode),
|
|
4697
4821
|
sideRadiusVariant: "rightSideSquare",
|
|
4698
4822
|
role: "combobox",
|
|
4699
4823
|
children: filteredCallingCodes.items.map((code) => /* @__PURE__ */ jsxRuntime.jsx(SelectItem, { item: code, children: code.label }, code.label))
|
|
4700
4824
|
}
|
|
4701
4825
|
);
|
|
4702
4826
|
};
|
|
4703
|
-
var
|
|
4827
|
+
var texts17 = createTexts({
|
|
4704
4828
|
countryCode: {
|
|
4705
4829
|
nb: "Landkode",
|
|
4706
4830
|
nn: "Landskode",
|
|
@@ -4723,7 +4847,7 @@ var PhoneNumberInput = ({
|
|
|
4723
4847
|
errorText
|
|
4724
4848
|
} = props;
|
|
4725
4849
|
const { t } = useTranslation();
|
|
4726
|
-
const label = externalLabel ?? (optional ? t(
|
|
4850
|
+
const label = externalLabel ?? (optional ? t(texts18.phoneNumberOptional) : t(texts18.phoneNumber));
|
|
4727
4851
|
const [value, onChange] = react.useControllableState({
|
|
4728
4852
|
value: externalValue,
|
|
4729
4853
|
onChange: externalOnChange,
|
|
@@ -4778,7 +4902,7 @@ var PhoneNumberInput = ({
|
|
|
4778
4902
|
)
|
|
4779
4903
|
] });
|
|
4780
4904
|
};
|
|
4781
|
-
var
|
|
4905
|
+
var texts18 = createTexts({
|
|
4782
4906
|
phoneNumber: {
|
|
4783
4907
|
nb: "Telefonnummer",
|
|
4784
4908
|
nn: "Telefonnummer",
|
|
@@ -4830,16 +4954,16 @@ var SearchInput = ({
|
|
|
4830
4954
|
variant: "ghost",
|
|
4831
4955
|
type: "button",
|
|
4832
4956
|
size: "sm",
|
|
4833
|
-
"aria-label": t(
|
|
4957
|
+
"aria-label": t(texts19.reset),
|
|
4834
4958
|
icon: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.CloseOutline24Icon, {}),
|
|
4835
4959
|
onClick: onReset
|
|
4836
4960
|
}
|
|
4837
4961
|
),
|
|
4838
|
-
label: label ?? t(
|
|
4962
|
+
label: label ?? t(texts19.label)
|
|
4839
4963
|
}
|
|
4840
4964
|
);
|
|
4841
4965
|
};
|
|
4842
|
-
var
|
|
4966
|
+
var texts19 = createTexts({
|
|
4843
4967
|
label: {
|
|
4844
4968
|
nb: "S\xF8k",
|
|
4845
4969
|
nn: "S\xF8k",
|
|
@@ -5391,7 +5515,7 @@ var TextLink = ({
|
|
|
5391
5515
|
}) => {
|
|
5392
5516
|
const { t } = useTranslation();
|
|
5393
5517
|
const isExternal = external ?? Boolean((href == null ? void 0 : href.startsWith("http://")) || (href == null ? void 0 : href.startsWith("https://")));
|
|
5394
|
-
const externalLabel = t ? t(
|
|
5518
|
+
const externalLabel = t ? t(texts20.externalLink) : texts20.externalLink.en;
|
|
5395
5519
|
if (props.asChild && React13.isValidElement(children)) {
|
|
5396
5520
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5397
5521
|
react.Link,
|
|
@@ -5430,7 +5554,7 @@ var TextLink = ({
|
|
|
5430
5554
|
}
|
|
5431
5555
|
);
|
|
5432
5556
|
};
|
|
5433
|
-
var
|
|
5557
|
+
var texts20 = createTexts({
|
|
5434
5558
|
externalLink: {
|
|
5435
5559
|
nb: "Ekstern lenke",
|
|
5436
5560
|
nn: "Ekstern lenke",
|
|
@@ -5967,14 +6091,14 @@ var JumpButton = ({
|
|
|
5967
6091
|
as: "button",
|
|
5968
6092
|
ref,
|
|
5969
6093
|
css: styles.root,
|
|
5970
|
-
"aria-label": direction === "forward" ? t(
|
|
6094
|
+
"aria-label": direction === "forward" ? t(texts21.forward) : t(texts21.backward),
|
|
5971
6095
|
disabled,
|
|
5972
6096
|
...props,
|
|
5973
6097
|
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 })
|
|
5974
6098
|
}
|
|
5975
6099
|
);
|
|
5976
6100
|
};
|
|
5977
|
-
var
|
|
6101
|
+
var texts21 = createTexts({
|
|
5978
6102
|
forward: {
|
|
5979
6103
|
nb: "15 sekunder frem",
|
|
5980
6104
|
nn: "15 sekunder fram",
|
|
@@ -6002,14 +6126,14 @@ var PlayPauseButton = ({
|
|
|
6002
6126
|
ref,
|
|
6003
6127
|
as: "button",
|
|
6004
6128
|
css: styles.root,
|
|
6005
|
-
"aria-label": playing ? t(
|
|
6129
|
+
"aria-label": playing ? t(texts22.pause) : t(texts22.play),
|
|
6006
6130
|
disabled,
|
|
6007
6131
|
...props,
|
|
6008
6132
|
children: playing ? /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.PauseMediaControllerFill24Icon, { css: styles.icon }) : /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.PlayMediaControllerFill24Icon, { css: styles.icon })
|
|
6009
6133
|
}
|
|
6010
6134
|
);
|
|
6011
6135
|
};
|
|
6012
|
-
var
|
|
6136
|
+
var texts22 = createTexts({
|
|
6013
6137
|
pause: {
|
|
6014
6138
|
nb: "Pause",
|
|
6015
6139
|
nn: "Pause",
|
|
@@ -6037,14 +6161,14 @@ var SkipButton = ({
|
|
|
6037
6161
|
ref,
|
|
6038
6162
|
as: "button",
|
|
6039
6163
|
css: styles.root,
|
|
6040
|
-
"aria-label": direction === "forward" ? t(
|
|
6164
|
+
"aria-label": direction === "forward" ? t(texts23.next) : t(texts23.previous),
|
|
6041
6165
|
disabled,
|
|
6042
6166
|
...props,
|
|
6043
6167
|
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 })
|
|
6044
6168
|
}
|
|
6045
6169
|
);
|
|
6046
6170
|
};
|
|
6047
|
-
var
|
|
6171
|
+
var texts23 = createTexts({
|
|
6048
6172
|
next: {
|
|
6049
6173
|
nb: "Neste",
|
|
6050
6174
|
nn: "Neste",
|
|
@@ -6159,7 +6283,7 @@ var NudgeActions = ({ ...props }) => {
|
|
|
6159
6283
|
var NextButton = ({ isLastStep, onNext }) => {
|
|
6160
6284
|
const { t } = useTranslation();
|
|
6161
6285
|
if (isLastStep)
|
|
6162
|
-
return /* @__PURE__ */ jsxRuntime.jsx(react.PopoverCloseTrigger, { children: /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "tertiary", size: "xs", children: t(
|
|
6286
|
+
return /* @__PURE__ */ jsxRuntime.jsx(react.PopoverCloseTrigger, { children: /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "tertiary", size: "xs", children: t(texts24.close) }) });
|
|
6163
6287
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6164
6288
|
Button,
|
|
6165
6289
|
{
|
|
@@ -6167,11 +6291,11 @@ var NextButton = ({ isLastStep, onNext }) => {
|
|
|
6167
6291
|
size: "xs",
|
|
6168
6292
|
rightIcon: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.ArrowRightFill18Icon, {}),
|
|
6169
6293
|
onClick: onNext,
|
|
6170
|
-
children: t(
|
|
6294
|
+
children: t(texts24.nextStep)
|
|
6171
6295
|
}
|
|
6172
6296
|
);
|
|
6173
6297
|
};
|
|
6174
|
-
var
|
|
6298
|
+
var texts24 = createTexts({
|
|
6175
6299
|
nextStep: {
|
|
6176
6300
|
nb: "Neste",
|
|
6177
6301
|
nn: "Neste",
|
|
@@ -6247,7 +6371,7 @@ var PaginationItem = ({
|
|
|
6247
6371
|
to: rootProps.getHref(props.value)
|
|
6248
6372
|
},
|
|
6249
6373
|
ref,
|
|
6250
|
-
"aria-label": t(
|
|
6374
|
+
"aria-label": t(texts25.pageOf(props.value, totalPages)),
|
|
6251
6375
|
...props,
|
|
6252
6376
|
children: props.value
|
|
6253
6377
|
}
|
|
@@ -6258,7 +6382,7 @@ var PaginationItem = ({
|
|
|
6258
6382
|
{
|
|
6259
6383
|
as: props.as ?? "button",
|
|
6260
6384
|
ref,
|
|
6261
|
-
"aria-label": t(
|
|
6385
|
+
"aria-label": t(texts25.pageOf(props.value, totalPages)),
|
|
6262
6386
|
"aria-current": page === props.value,
|
|
6263
6387
|
...props,
|
|
6264
6388
|
children: props.value
|
|
@@ -6288,7 +6412,7 @@ var PaginationPrevTrigger = ({
|
|
|
6288
6412
|
},
|
|
6289
6413
|
ref,
|
|
6290
6414
|
css: styles.item,
|
|
6291
|
-
"aria-label": t(
|
|
6415
|
+
"aria-label": t(texts25.previousPage),
|
|
6292
6416
|
...props,
|
|
6293
6417
|
children: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.DropdownLeftOutline18Icon, {})
|
|
6294
6418
|
}
|
|
@@ -6299,7 +6423,7 @@ var PaginationPrevTrigger = ({
|
|
|
6299
6423
|
{
|
|
6300
6424
|
ref,
|
|
6301
6425
|
asChild: true,
|
|
6302
|
-
"aria-label": t(
|
|
6426
|
+
"aria-label": t(texts25.previousPage),
|
|
6303
6427
|
as: props.as || "button",
|
|
6304
6428
|
css: styles.item,
|
|
6305
6429
|
...props,
|
|
@@ -6328,7 +6452,7 @@ var PaginationNextTrigger = ({
|
|
|
6328
6452
|
to: rootProps.getHref(props.value)
|
|
6329
6453
|
},
|
|
6330
6454
|
css: styles.item,
|
|
6331
|
-
"aria-label": t(
|
|
6455
|
+
"aria-label": t(texts25.nextPage),
|
|
6332
6456
|
...props,
|
|
6333
6457
|
children: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.DropdownRightOutline18Icon, {})
|
|
6334
6458
|
}
|
|
@@ -6339,7 +6463,7 @@ var PaginationNextTrigger = ({
|
|
|
6339
6463
|
{
|
|
6340
6464
|
ref,
|
|
6341
6465
|
css: styles.item,
|
|
6342
|
-
"aria-label": t(
|
|
6466
|
+
"aria-label": t(texts25.nextPage),
|
|
6343
6467
|
as: props.as || "button",
|
|
6344
6468
|
...props,
|
|
6345
6469
|
children: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.DropdownRightOutline18Icon, {})
|
|
@@ -6366,7 +6490,7 @@ var PaginationItems = (props) => {
|
|
|
6366
6490
|
);
|
|
6367
6491
|
}) });
|
|
6368
6492
|
};
|
|
6369
|
-
var
|
|
6493
|
+
var texts25 = createTexts({
|
|
6370
6494
|
previousPage: {
|
|
6371
6495
|
nb: "Forrige side",
|
|
6372
6496
|
nn: "F\xF8rre side",
|
|
@@ -6466,7 +6590,7 @@ var ProgressIndicator = ({
|
|
|
6466
6590
|
"aria-valuemin": 1,
|
|
6467
6591
|
"aria-valuemax": numberOfSteps,
|
|
6468
6592
|
"aria-valuenow": activeStep,
|
|
6469
|
-
"aria-valuetext": t(
|
|
6593
|
+
"aria-valuetext": t(texts26.stepsOf(activeStep, numberOfSteps)),
|
|
6470
6594
|
ref,
|
|
6471
6595
|
children: /* @__PURE__ */ jsxRuntime.jsx(react.Box, { css: { ...styles.container, ...css }, children: Array.from({ length: numberOfSteps }, (_, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
6472
6596
|
react.Box,
|
|
@@ -6485,7 +6609,7 @@ var ProgressIndicator = ({
|
|
|
6485
6609
|
}
|
|
6486
6610
|
);
|
|
6487
6611
|
};
|
|
6488
|
-
var
|
|
6612
|
+
var texts26 = createTexts({
|
|
6489
6613
|
stepsOf: (activeStep, numberOfSteps) => ({
|
|
6490
6614
|
nb: `Steg ${activeStep} av ${numberOfSteps}`,
|
|
6491
6615
|
nn: `Steg ${activeStep} av ${numberOfSteps}`,
|
|
@@ -6681,7 +6805,7 @@ var Stepper = function Stepper2({
|
|
|
6681
6805
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6682
6806
|
IconButton,
|
|
6683
6807
|
{
|
|
6684
|
-
"aria-label": t(
|
|
6808
|
+
"aria-label": t(texts27.back),
|
|
6685
6809
|
icon: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.ArrowLeftFill24Icon, {}),
|
|
6686
6810
|
variant: "ghost",
|
|
6687
6811
|
size: "sm",
|
|
@@ -6705,7 +6829,7 @@ var Stepper = function Stepper2({
|
|
|
6705
6829
|
children: heading
|
|
6706
6830
|
}
|
|
6707
6831
|
),
|
|
6708
|
-
/* @__PURE__ */ jsxRuntime.jsx(react.Box, { css: style.stepCounter, "data-part": "step-counter", children: t(
|
|
6832
|
+
/* @__PURE__ */ jsxRuntime.jsx(react.Box, { css: style.stepCounter, "data-part": "step-counter", children: t(texts27.stepsOf(activeStep, numberOfSteps)) })
|
|
6709
6833
|
]
|
|
6710
6834
|
}
|
|
6711
6835
|
) }),
|
|
@@ -6724,7 +6848,7 @@ var Stepper = function Stepper2({
|
|
|
6724
6848
|
}
|
|
6725
6849
|
) });
|
|
6726
6850
|
};
|
|
6727
|
-
var
|
|
6851
|
+
var texts27 = createTexts({
|
|
6728
6852
|
stepsOf: (activeStep, numberOfSteps) => ({
|
|
6729
6853
|
nb: `Steg ${activeStep}/${numberOfSteps}`,
|
|
6730
6854
|
nn: `Steg ${activeStep}/${numberOfSteps}`,
|
|
@@ -7422,12 +7546,12 @@ var pressableCardRecipe = react.defineRecipe({
|
|
|
7422
7546
|
accent: {
|
|
7423
7547
|
boxShadow: "0px 1px 3px 0px var(--shadow-color)",
|
|
7424
7548
|
shadowColor: "surface.disabled",
|
|
7425
|
-
background: "surface.
|
|
7549
|
+
background: "surface.accent",
|
|
7426
7550
|
_hover: {
|
|
7427
|
-
background: "surface.
|
|
7551
|
+
background: "surface.accent.hover",
|
|
7428
7552
|
boxShadow: "0px 2px 6px 0px var(--shadow-color)",
|
|
7429
7553
|
_active: {
|
|
7430
|
-
background: "surface.
|
|
7554
|
+
background: "surface.accent.active",
|
|
7431
7555
|
boxShadow: "none"
|
|
7432
7556
|
}
|
|
7433
7557
|
}
|
|
@@ -7832,7 +7956,8 @@ var radioCardAnatomy = anatomy.createAnatomy("radio-card").parts(
|
|
|
7832
7956
|
"label",
|
|
7833
7957
|
"itemText",
|
|
7834
7958
|
"itemDescription",
|
|
7835
|
-
"itemContent"
|
|
7959
|
+
"itemContent",
|
|
7960
|
+
"itemControl"
|
|
7836
7961
|
);
|
|
7837
7962
|
var radioAnatomy = anatomy.createAnatomy("radio").parts(
|
|
7838
7963
|
"root",
|
|
@@ -8613,38 +8738,30 @@ var checkboxSlotRecipe = react.defineSlotRecipe({
|
|
|
8613
8738
|
}
|
|
8614
8739
|
});
|
|
8615
8740
|
var choiceChipSlotRecipe = react.defineSlotRecipe({
|
|
8616
|
-
|
|
8617
|
-
|
|
8741
|
+
className: "spor-choice-chip",
|
|
8742
|
+
slots: radioCardAnatomy.keys(),
|
|
8618
8743
|
base: {
|
|
8619
8744
|
root: {
|
|
8620
|
-
display: "
|
|
8621
|
-
|
|
8622
|
-
|
|
8623
|
-
|
|
8745
|
+
display: "flex",
|
|
8746
|
+
flexDirection: "row",
|
|
8747
|
+
gap: "1",
|
|
8748
|
+
width: "fit-content"
|
|
8749
|
+
},
|
|
8750
|
+
item: {
|
|
8751
|
+
display: "flex-inline",
|
|
8624
8752
|
transitionProperty: "all",
|
|
8625
|
-
borderRadius: "xl",
|
|
8626
8753
|
transitionDuration: "fast",
|
|
8627
|
-
paddingInlineStart: "2",
|
|
8628
|
-
paddingInlineEnd: "2",
|
|
8629
|
-
outline: "1px solid",
|
|
8630
|
-
outlineColor: "outline.core",
|
|
8631
8754
|
_checked: {
|
|
8632
|
-
backgroundColor: "surface.brand",
|
|
8633
|
-
borderRadius: "sm",
|
|
8634
8755
|
outline: "none",
|
|
8635
|
-
|
|
8756
|
+
_focusVisible: {
|
|
8757
|
+
outline: "2px solid",
|
|
8758
|
+
outlineColor: "outline.focus",
|
|
8759
|
+
outlineOffset: "1px"
|
|
8760
|
+
},
|
|
8636
8761
|
_hover: {
|
|
8637
|
-
|
|
8638
|
-
_active: {
|
|
8639
|
-
backgroundColor: "surface.brand.active"
|
|
8640
|
-
}
|
|
8762
|
+
outline: "none"
|
|
8641
8763
|
}
|
|
8642
8764
|
},
|
|
8643
|
-
_focusVisible: {
|
|
8644
|
-
outline: "2px solid",
|
|
8645
|
-
outlineColor: "outline.focus",
|
|
8646
|
-
outlineOffset: "1px"
|
|
8647
|
-
},
|
|
8648
8765
|
_disabled: {
|
|
8649
8766
|
pointerEvents: "none",
|
|
8650
8767
|
boxShadow: "none",
|
|
@@ -8669,32 +8786,44 @@ var choiceChipSlotRecipe = react.defineSlotRecipe({
|
|
|
8669
8786
|
}
|
|
8670
8787
|
}
|
|
8671
8788
|
},
|
|
8789
|
+
itemControl: {
|
|
8790
|
+
display: "flex",
|
|
8791
|
+
alignItems: "center",
|
|
8792
|
+
justifyContent: "center"
|
|
8793
|
+
},
|
|
8672
8794
|
label: {
|
|
8673
8795
|
display: "flex",
|
|
8674
8796
|
alignItems: "center",
|
|
8797
|
+
justifyContent: "center",
|
|
8675
8798
|
gap: "1"
|
|
8676
8799
|
}
|
|
8677
8800
|
},
|
|
8678
8801
|
variants: {
|
|
8679
8802
|
size: {
|
|
8680
8803
|
xs: {
|
|
8681
|
-
|
|
8804
|
+
item: {
|
|
8805
|
+
borderRadius: "xl",
|
|
8682
8806
|
_checked: {
|
|
8683
|
-
borderRadius: "
|
|
8684
|
-
}
|
|
8807
|
+
borderRadius: "9px"
|
|
8808
|
+
}
|
|
8809
|
+
},
|
|
8810
|
+
itemControl: {
|
|
8685
8811
|
height: 5,
|
|
8686
8812
|
paddingX: 1.5
|
|
8687
8813
|
},
|
|
8688
8814
|
label: {
|
|
8689
8815
|
fontSize: { base: "mobile.sm", sm: "desktop.sm" },
|
|
8690
|
-
fontWeight: "
|
|
8816
|
+
fontWeight: "regular"
|
|
8691
8817
|
}
|
|
8692
8818
|
},
|
|
8693
8819
|
sm: {
|
|
8694
|
-
|
|
8820
|
+
item: {
|
|
8821
|
+
borderRadius: "xl",
|
|
8695
8822
|
_checked: {
|
|
8696
8823
|
borderRadius: "sm"
|
|
8697
|
-
}
|
|
8824
|
+
}
|
|
8825
|
+
},
|
|
8826
|
+
itemControl: {
|
|
8698
8827
|
height: 6,
|
|
8699
8828
|
paddingX: 2
|
|
8700
8829
|
},
|
|
@@ -8704,10 +8833,13 @@ var choiceChipSlotRecipe = react.defineSlotRecipe({
|
|
|
8704
8833
|
}
|
|
8705
8834
|
},
|
|
8706
8835
|
md: {
|
|
8707
|
-
|
|
8836
|
+
item: {
|
|
8837
|
+
borderRadius: "xl",
|
|
8708
8838
|
_checked: {
|
|
8709
8839
|
borderRadius: "sm"
|
|
8710
|
-
}
|
|
8840
|
+
}
|
|
8841
|
+
},
|
|
8842
|
+
itemControl: {
|
|
8711
8843
|
height: 7,
|
|
8712
8844
|
paddingX: 2
|
|
8713
8845
|
},
|
|
@@ -8717,10 +8849,13 @@ var choiceChipSlotRecipe = react.defineSlotRecipe({
|
|
|
8717
8849
|
}
|
|
8718
8850
|
},
|
|
8719
8851
|
lg: {
|
|
8720
|
-
|
|
8852
|
+
item: {
|
|
8853
|
+
borderRadius: "xl",
|
|
8721
8854
|
_checked: {
|
|
8722
8855
|
borderRadius: "md"
|
|
8723
|
-
}
|
|
8856
|
+
}
|
|
8857
|
+
},
|
|
8858
|
+
itemControl: {
|
|
8724
8859
|
height: 8,
|
|
8725
8860
|
paddingX: 3
|
|
8726
8861
|
},
|
|
@@ -8732,9 +8867,18 @@ var choiceChipSlotRecipe = react.defineSlotRecipe({
|
|
|
8732
8867
|
},
|
|
8733
8868
|
variant: {
|
|
8734
8869
|
core: {
|
|
8735
|
-
|
|
8736
|
-
|
|
8737
|
-
|
|
8870
|
+
itemControl: {
|
|
8871
|
+
_checked: {
|
|
8872
|
+
backgroundColor: "surface.brand",
|
|
8873
|
+
color: "text.brand",
|
|
8874
|
+
outline: "none",
|
|
8875
|
+
_hover: {
|
|
8876
|
+
backgroundColor: "surface.brand.hover",
|
|
8877
|
+
_active: {
|
|
8878
|
+
backgroundColor: "surface.brand.active"
|
|
8879
|
+
}
|
|
8880
|
+
}
|
|
8881
|
+
},
|
|
8738
8882
|
_hover: {
|
|
8739
8883
|
outline: "2px solid",
|
|
8740
8884
|
outlineColor: "outline.core.hover",
|
|
@@ -8747,10 +8891,22 @@ var choiceChipSlotRecipe = react.defineSlotRecipe({
|
|
|
8747
8891
|
}
|
|
8748
8892
|
},
|
|
8749
8893
|
accent: {
|
|
8750
|
-
|
|
8894
|
+
itemControl: {
|
|
8751
8895
|
backgroundColor: "surface.accent",
|
|
8752
8896
|
color: "text.accent",
|
|
8753
8897
|
outline: "none",
|
|
8898
|
+
border: "none",
|
|
8899
|
+
_checked: {
|
|
8900
|
+
backgroundColor: "surface.brand",
|
|
8901
|
+
color: "text.brand",
|
|
8902
|
+
outline: "none",
|
|
8903
|
+
_hover: {
|
|
8904
|
+
backgroundColor: "surface.brand.hover",
|
|
8905
|
+
_active: {
|
|
8906
|
+
backgroundColor: "surface.brand.active"
|
|
8907
|
+
}
|
|
8908
|
+
}
|
|
8909
|
+
},
|
|
8754
8910
|
_hover: {
|
|
8755
8911
|
backgroundColor: "surface.accent.hover",
|
|
8756
8912
|
_active: {
|
|
@@ -8760,12 +8916,23 @@ var choiceChipSlotRecipe = react.defineSlotRecipe({
|
|
|
8760
8916
|
}
|
|
8761
8917
|
},
|
|
8762
8918
|
floating: {
|
|
8763
|
-
|
|
8919
|
+
itemControl: {
|
|
8764
8920
|
backgroundColor: "surface.floating",
|
|
8765
8921
|
outline: "1px solid",
|
|
8766
8922
|
outlineColor: "outline.floating",
|
|
8767
8923
|
color: "text.floating",
|
|
8768
8924
|
boxShadow: "sm",
|
|
8925
|
+
_checked: {
|
|
8926
|
+
backgroundColor: "surface.brand",
|
|
8927
|
+
color: "text.brand",
|
|
8928
|
+
outline: "none",
|
|
8929
|
+
_hover: {
|
|
8930
|
+
backgroundColor: "surface.brand.hover",
|
|
8931
|
+
_active: {
|
|
8932
|
+
backgroundColor: "surface.brand.active"
|
|
8933
|
+
}
|
|
8934
|
+
}
|
|
8935
|
+
},
|
|
8769
8936
|
_hover: {
|
|
8770
8937
|
backgroundColor: "surface.floating.hover",
|
|
8771
8938
|
outline: "1px solid",
|
|
@@ -8778,17 +8945,11 @@ var choiceChipSlotRecipe = react.defineSlotRecipe({
|
|
|
8778
8945
|
}
|
|
8779
8946
|
}
|
|
8780
8947
|
}
|
|
8781
|
-
},
|
|
8782
|
-
chipType: {
|
|
8783
|
-
icon: {},
|
|
8784
|
-
choice: {},
|
|
8785
|
-
filter: {}
|
|
8786
8948
|
}
|
|
8787
8949
|
},
|
|
8788
8950
|
defaultVariants: {
|
|
8789
8951
|
size: "sm",
|
|
8790
|
-
variant: "core"
|
|
8791
|
-
chipType: "choice"
|
|
8952
|
+
variant: "core"
|
|
8792
8953
|
}
|
|
8793
8954
|
});
|
|
8794
8955
|
var collapsibleSlotRecipe = react.defineSlotRecipe({
|
|
@@ -9510,6 +9671,186 @@ var fieldSlotRecipe = react.defineSlotRecipe({
|
|
|
9510
9671
|
}
|
|
9511
9672
|
}
|
|
9512
9673
|
});
|
|
9674
|
+
var filterChipSlotRecipe = react.defineSlotRecipe({
|
|
9675
|
+
slots: checkboxCardAnatomy.keys(),
|
|
9676
|
+
className: "chakra-checkbox-card",
|
|
9677
|
+
base: {
|
|
9678
|
+
root: {
|
|
9679
|
+
display: "inline-flex",
|
|
9680
|
+
alignItems: "center",
|
|
9681
|
+
boxAlign: "center",
|
|
9682
|
+
cursor: "pointer",
|
|
9683
|
+
transitionProperty: "all",
|
|
9684
|
+
borderRadius: "xl",
|
|
9685
|
+
transitionDuration: "fast",
|
|
9686
|
+
paddingInlineStart: "2",
|
|
9687
|
+
paddingInlineEnd: "2",
|
|
9688
|
+
outline: "1px solid",
|
|
9689
|
+
outlineColor: "outline.core",
|
|
9690
|
+
_checked: {
|
|
9691
|
+
backgroundColor: "surface.brand",
|
|
9692
|
+
borderRadius: "sm",
|
|
9693
|
+
outline: "none",
|
|
9694
|
+
color: "text.brand",
|
|
9695
|
+
_hover: {
|
|
9696
|
+
outline: "none",
|
|
9697
|
+
backgroundColor: "surface.brand.hover",
|
|
9698
|
+
_active: {
|
|
9699
|
+
backgroundColor: "surface.brand.active"
|
|
9700
|
+
}
|
|
9701
|
+
}
|
|
9702
|
+
},
|
|
9703
|
+
_focusVisible: {
|
|
9704
|
+
outline: "2px solid",
|
|
9705
|
+
outlineColor: "outline.focus",
|
|
9706
|
+
outlineOffset: "1px"
|
|
9707
|
+
},
|
|
9708
|
+
_disabled: {
|
|
9709
|
+
pointerEvents: "none",
|
|
9710
|
+
boxShadow: "none",
|
|
9711
|
+
backgroundColor: "surface.disabled",
|
|
9712
|
+
color: "text.disabled",
|
|
9713
|
+
outline: "none",
|
|
9714
|
+
_hover: {
|
|
9715
|
+
backgroundColor: "surface.disabled",
|
|
9716
|
+
boxShadow: "none",
|
|
9717
|
+
color: "text.disabled"
|
|
9718
|
+
},
|
|
9719
|
+
_checked: {
|
|
9720
|
+
cursor: "not-allowed",
|
|
9721
|
+
boxShadow: "none",
|
|
9722
|
+
color: "text.disabled",
|
|
9723
|
+
backgroundColor: "surface.disabled",
|
|
9724
|
+
_hover: {
|
|
9725
|
+
backgroundColor: "surface.disabled",
|
|
9726
|
+
boxShadow: "none",
|
|
9727
|
+
color: "text.disabled"
|
|
9728
|
+
}
|
|
9729
|
+
}
|
|
9730
|
+
}
|
|
9731
|
+
},
|
|
9732
|
+
label: {
|
|
9733
|
+
display: "flex",
|
|
9734
|
+
alignItems: "center",
|
|
9735
|
+
gap: "1"
|
|
9736
|
+
}
|
|
9737
|
+
},
|
|
9738
|
+
variants: {
|
|
9739
|
+
size: {
|
|
9740
|
+
xs: {
|
|
9741
|
+
root: {
|
|
9742
|
+
_checked: {
|
|
9743
|
+
borderRadius: "0.563rem"
|
|
9744
|
+
},
|
|
9745
|
+
height: 5,
|
|
9746
|
+
paddingX: 1.5
|
|
9747
|
+
},
|
|
9748
|
+
label: {
|
|
9749
|
+
fontSize: { base: "mobile.sm", sm: "desktop.sm" },
|
|
9750
|
+
fontWeight: "medium"
|
|
9751
|
+
}
|
|
9752
|
+
},
|
|
9753
|
+
sm: {
|
|
9754
|
+
root: {
|
|
9755
|
+
_checked: {
|
|
9756
|
+
borderRadius: "sm"
|
|
9757
|
+
},
|
|
9758
|
+
height: 6,
|
|
9759
|
+
paddingX: 2
|
|
9760
|
+
},
|
|
9761
|
+
label: {
|
|
9762
|
+
fontSize: { base: "mobile.sm", sm: "desktop.sm" },
|
|
9763
|
+
fontWeight: "bold"
|
|
9764
|
+
}
|
|
9765
|
+
},
|
|
9766
|
+
md: {
|
|
9767
|
+
root: {
|
|
9768
|
+
_checked: {
|
|
9769
|
+
borderRadius: "sm"
|
|
9770
|
+
},
|
|
9771
|
+
height: 7,
|
|
9772
|
+
paddingX: 2
|
|
9773
|
+
},
|
|
9774
|
+
label: {
|
|
9775
|
+
fontSize: { base: "mobile.md", sm: "desktop.md" },
|
|
9776
|
+
fontWeight: "bold"
|
|
9777
|
+
}
|
|
9778
|
+
},
|
|
9779
|
+
lg: {
|
|
9780
|
+
root: {
|
|
9781
|
+
_checked: {
|
|
9782
|
+
borderRadius: "md"
|
|
9783
|
+
},
|
|
9784
|
+
height: 8,
|
|
9785
|
+
paddingX: 3
|
|
9786
|
+
},
|
|
9787
|
+
label: {
|
|
9788
|
+
fontSize: { base: "mobile.md", sm: "desktop.md" },
|
|
9789
|
+
fontWeight: "bold"
|
|
9790
|
+
}
|
|
9791
|
+
}
|
|
9792
|
+
},
|
|
9793
|
+
variant: {
|
|
9794
|
+
core: {
|
|
9795
|
+
root: {
|
|
9796
|
+
color: "text.core",
|
|
9797
|
+
outlineColor: "outline.core",
|
|
9798
|
+
_hover: {
|
|
9799
|
+
outline: "2px solid",
|
|
9800
|
+
outlineColor: "outline.core.hover",
|
|
9801
|
+
_active: {
|
|
9802
|
+
outline: "1px solid",
|
|
9803
|
+
outlineColor: "outline.core",
|
|
9804
|
+
backgroundColor: "surface.core.active"
|
|
9805
|
+
}
|
|
9806
|
+
}
|
|
9807
|
+
}
|
|
9808
|
+
},
|
|
9809
|
+
accent: {
|
|
9810
|
+
root: {
|
|
9811
|
+
backgroundColor: "surface.accent",
|
|
9812
|
+
color: "text.accent",
|
|
9813
|
+
outline: "none",
|
|
9814
|
+
_hover: {
|
|
9815
|
+
backgroundColor: "surface.accent.hover",
|
|
9816
|
+
_active: {
|
|
9817
|
+
backgroundColor: "surface.accent.active"
|
|
9818
|
+
}
|
|
9819
|
+
}
|
|
9820
|
+
}
|
|
9821
|
+
},
|
|
9822
|
+
floating: {
|
|
9823
|
+
root: {
|
|
9824
|
+
backgroundColor: "surface.floating",
|
|
9825
|
+
outline: "1px solid",
|
|
9826
|
+
outlineColor: "outline.floating",
|
|
9827
|
+
color: "text.floating",
|
|
9828
|
+
boxShadow: "sm",
|
|
9829
|
+
_hover: {
|
|
9830
|
+
backgroundColor: "surface.floating.hover",
|
|
9831
|
+
outline: "1px solid",
|
|
9832
|
+
outlineColor: "outline.floating.hover",
|
|
9833
|
+
_active: {
|
|
9834
|
+
backgroundColor: "surface.floating.active",
|
|
9835
|
+
outline: "1px solid",
|
|
9836
|
+
outlineColor: "outline.floating"
|
|
9837
|
+
}
|
|
9838
|
+
}
|
|
9839
|
+
}
|
|
9840
|
+
}
|
|
9841
|
+
},
|
|
9842
|
+
chipType: {
|
|
9843
|
+
icon: {},
|
|
9844
|
+
choice: {},
|
|
9845
|
+
filter: {}
|
|
9846
|
+
}
|
|
9847
|
+
},
|
|
9848
|
+
defaultVariants: {
|
|
9849
|
+
size: "sm",
|
|
9850
|
+
variant: "core",
|
|
9851
|
+
chipType: "choice"
|
|
9852
|
+
}
|
|
9853
|
+
});
|
|
9513
9854
|
var floatingActionButtonSlotRecipe = react.defineSlotRecipe({
|
|
9514
9855
|
slots: floatingActionButtonAnatomy.keys(),
|
|
9515
9856
|
className: "spor-floating-action-button",
|
|
@@ -10525,17 +10866,18 @@ var numericStepperRecipe = react.defineSlotRecipe({
|
|
|
10525
10866
|
"& > div": {
|
|
10526
10867
|
display: "flex",
|
|
10527
10868
|
flexDirection: "row",
|
|
10528
|
-
alignItems: "center"
|
|
10869
|
+
alignItems: "center",
|
|
10870
|
+
gap: 1
|
|
10529
10871
|
}
|
|
10530
10872
|
},
|
|
10531
10873
|
input: {
|
|
10532
10874
|
fontSize: "sm",
|
|
10533
10875
|
fontWeight: "bold",
|
|
10534
|
-
marginX: 0.5,
|
|
10535
10876
|
padding: 0,
|
|
10536
10877
|
paddingX: 0.5,
|
|
10537
10878
|
borderRadius: "xs",
|
|
10538
|
-
outline: "
|
|
10879
|
+
outline: "1px solid",
|
|
10880
|
+
outlineColor: "outline.core",
|
|
10539
10881
|
height: "auto",
|
|
10540
10882
|
textAlign: "center",
|
|
10541
10883
|
transitionProperty: "common",
|
|
@@ -11822,11 +12164,12 @@ var slotRecipes = {
|
|
|
11822
12164
|
tabs: tabsSlotRecipe,
|
|
11823
12165
|
travelTag: travelTagSlotRecipe,
|
|
11824
12166
|
toast: toastSlotRecipe,
|
|
11825
|
-
checkboxCard:
|
|
12167
|
+
checkboxCard: filterChipSlotRecipe,
|
|
11826
12168
|
collapsible: collapsibleSlotRecipe,
|
|
11827
12169
|
tooltip: popoverSlotRecipe,
|
|
11828
12170
|
tag: inputChipSlotRecipe,
|
|
11829
|
-
menu: menuSlotRecipe
|
|
12171
|
+
menu: menuSlotRecipe,
|
|
12172
|
+
choiceChip: choiceChipSlotRecipe
|
|
11830
12173
|
};
|
|
11831
12174
|
var animations = react.defineTokens.animations({
|
|
11832
12175
|
spin: {
|
|
@@ -12950,6 +13293,8 @@ exports.CargonetLogo = CargonetLogo;
|
|
|
12950
13293
|
exports.Checkbox = Checkbox;
|
|
12951
13294
|
exports.CheckboxGroup = CheckboxGroup;
|
|
12952
13295
|
exports.ChoiceChip = ChoiceChip;
|
|
13296
|
+
exports.ChoiceChipGroup = ChoiceChipGroup;
|
|
13297
|
+
exports.ChoiceChipLabel = ChoiceChipLabel;
|
|
12953
13298
|
exports.Clipboard = Clipboard;
|
|
12954
13299
|
exports.ClipboardButton = ClipboardButton;
|
|
12955
13300
|
exports.CloseButton = CloseButton;
|
|
@@ -13001,6 +13346,7 @@ exports.FieldsetContent = FieldsetContent;
|
|
|
13001
13346
|
exports.FieldsetErrorText = FieldsetErrorText;
|
|
13002
13347
|
exports.FieldsetHelperText = FieldsetHelperText;
|
|
13003
13348
|
exports.FieldsetLegend = FieldsetLegend;
|
|
13349
|
+
exports.FilterChip = FilterChip;
|
|
13004
13350
|
exports.FloatingActionButton = FloatingActionButton;
|
|
13005
13351
|
exports.Heading = Heading;
|
|
13006
13352
|
exports.IconButton = IconButton;
|