@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.mjs
CHANGED
|
@@ -208,8 +208,8 @@ function useTranslation() {
|
|
|
208
208
|
};
|
|
209
209
|
return { t, language };
|
|
210
210
|
}
|
|
211
|
-
function createTexts(
|
|
212
|
-
return
|
|
211
|
+
function createTexts(texts28) {
|
|
212
|
+
return texts28;
|
|
213
213
|
}
|
|
214
214
|
function Lottie({ animationData }) {
|
|
215
215
|
const { View } = useLottie({ animationData });
|
|
@@ -732,25 +732,41 @@ var badgeRecipie = defineRecipe({
|
|
|
732
732
|
"& svg": {
|
|
733
733
|
color: "icon.critical"
|
|
734
734
|
}
|
|
735
|
+
},
|
|
736
|
+
brightRed: {
|
|
737
|
+
backgroundColor: {
|
|
738
|
+
_light: "brightRed",
|
|
739
|
+
_dark: "brightRed"
|
|
740
|
+
},
|
|
741
|
+
color: {
|
|
742
|
+
_light: "pink",
|
|
743
|
+
_dark: "pink"
|
|
744
|
+
},
|
|
745
|
+
"& svg": {
|
|
746
|
+
color: {
|
|
747
|
+
_light: "pink",
|
|
748
|
+
_dark: "pink"
|
|
749
|
+
}
|
|
750
|
+
}
|
|
735
751
|
}
|
|
736
752
|
},
|
|
737
753
|
size: {
|
|
738
754
|
sm: {
|
|
739
|
-
fontSize: "desktop.
|
|
755
|
+
fontSize: "desktop.2xs",
|
|
740
756
|
paddingX: "0.5",
|
|
741
757
|
paddingY: "0",
|
|
742
758
|
fontWeight: "normal",
|
|
743
759
|
borderRadius: "xxs"
|
|
744
760
|
},
|
|
745
761
|
md: {
|
|
746
|
-
fontSize: "desktop.
|
|
762
|
+
fontSize: "desktop.2xs",
|
|
747
763
|
paddingX: "1",
|
|
748
764
|
paddingY: "0.5",
|
|
749
765
|
fontWeight: "bold",
|
|
750
766
|
borderRadius: "xs"
|
|
751
767
|
},
|
|
752
768
|
lg: {
|
|
753
|
-
fontSize: "desktop.
|
|
769
|
+
fontSize: "desktop.xs",
|
|
754
770
|
paddingX: "1.5",
|
|
755
771
|
paddingY: "0.5",
|
|
756
772
|
fontWeight: "bold",
|
|
@@ -1224,15 +1240,27 @@ var Alert = ({
|
|
|
1224
1240
|
children
|
|
1225
1241
|
} = props;
|
|
1226
1242
|
const { open, onClose } = useDisclosure({ defaultOpen: true });
|
|
1243
|
+
const { t } = useTranslation();
|
|
1227
1244
|
const handleAlertClose = () => {
|
|
1228
1245
|
onClose();
|
|
1229
1246
|
onAlertClose == null ? void 0 : onAlertClose();
|
|
1230
1247
|
};
|
|
1231
1248
|
const recipe = useSlotRecipe({ key: "alert" });
|
|
1232
1249
|
const styles = recipe({ variant: props.variant });
|
|
1250
|
+
const getAriaLabelText = () => {
|
|
1251
|
+
const variant = props.variant;
|
|
1252
|
+
if (variant === "important" || variant === "alt")
|
|
1253
|
+
return texts5.ariaLabelAlertWarning;
|
|
1254
|
+
if (variant === "error" || variant === "error-secondary")
|
|
1255
|
+
return texts5.ariaLabelAlertError;
|
|
1256
|
+
if (variant === "success")
|
|
1257
|
+
return texts5.ariaLabelAlertSuccess;
|
|
1258
|
+
return texts5.ariaLabelAlertInformative;
|
|
1259
|
+
};
|
|
1260
|
+
const ariaLabel = t(getAriaLabelText());
|
|
1233
1261
|
if (!open)
|
|
1234
1262
|
return null;
|
|
1235
|
-
return /* @__PURE__ */ jsxs(Alert$1.Root, { ref, ...props, children: [
|
|
1263
|
+
return /* @__PURE__ */ jsxs(Alert$1.Root, { ref, role: "alert", "aria-label": ariaLabel, ...props, children: [
|
|
1236
1264
|
/* @__PURE__ */ jsxs(
|
|
1237
1265
|
Alert$1.Content,
|
|
1238
1266
|
{
|
|
@@ -1277,6 +1305,32 @@ var Alert = ({
|
|
|
1277
1305
|
)
|
|
1278
1306
|
] });
|
|
1279
1307
|
};
|
|
1308
|
+
var texts5 = createTexts({
|
|
1309
|
+
ariaLabelAlertInformative: {
|
|
1310
|
+
en: "Announcement",
|
|
1311
|
+
nb: "Kunngj\xF8ring",
|
|
1312
|
+
nn: "Kunngjering",
|
|
1313
|
+
sv: "Meddelande"
|
|
1314
|
+
},
|
|
1315
|
+
ariaLabelAlertWarning: {
|
|
1316
|
+
en: "Warning",
|
|
1317
|
+
nb: "Advarsel",
|
|
1318
|
+
nn: "Varsel",
|
|
1319
|
+
sv: "Varning"
|
|
1320
|
+
},
|
|
1321
|
+
ariaLabelAlertError: {
|
|
1322
|
+
en: "Error",
|
|
1323
|
+
nb: "Feil",
|
|
1324
|
+
nn: "Feil",
|
|
1325
|
+
sv: "Fel"
|
|
1326
|
+
},
|
|
1327
|
+
ariaLabelAlertSuccess: {
|
|
1328
|
+
en: "Success",
|
|
1329
|
+
nb: "Suksess",
|
|
1330
|
+
nn: "Suksess",
|
|
1331
|
+
sv: "Framg\xE5ng"
|
|
1332
|
+
}
|
|
1333
|
+
});
|
|
1280
1334
|
var ExpandableAlert = ({
|
|
1281
1335
|
ref,
|
|
1282
1336
|
...props
|
|
@@ -1377,7 +1431,7 @@ var ServiceAlert = ({
|
|
|
1377
1431
|
maxWidth: contentWidth,
|
|
1378
1432
|
children: [
|
|
1379
1433
|
/* @__PURE__ */ jsxs(HStack, { as: headingLevel, alignItems: "center", gap: "1", children: [
|
|
1380
|
-
variant === "service" ? /* @__PURE__ */ jsx(ServiceFill24Icon, { "aria-label": t(
|
|
1434
|
+
variant === "service" ? /* @__PURE__ */ jsx(ServiceFill24Icon, { "aria-label": t(texts6.service) }) : /* @__PURE__ */ jsx(WarningFill24Icon, { "aria-label": t(texts6["global-deviation"]) }),
|
|
1381
1435
|
/* @__PURE__ */ jsx(
|
|
1382
1436
|
Span,
|
|
1383
1437
|
{
|
|
@@ -1394,7 +1448,7 @@ var ServiceAlert = ({
|
|
|
1394
1448
|
)
|
|
1395
1449
|
] }),
|
|
1396
1450
|
/* @__PURE__ */ jsxs(Flex, { alignItems: "center", gap: [0.5, null, null, 1], children: [
|
|
1397
|
-
notification && /* @__PURE__ */ jsx(Text, { css: styles.notificationText, children: t(
|
|
1451
|
+
notification && /* @__PURE__ */ jsx(Text, { css: styles.notificationText, children: t(texts6.notification(notification)) }),
|
|
1398
1452
|
/* @__PURE__ */ jsx(Accordion$1.ItemIndicator, { children: /* @__PURE__ */ jsx(DropdownDownFill24Icon, { color: "icon.brand" }) })
|
|
1399
1453
|
] })
|
|
1400
1454
|
]
|
|
@@ -1405,7 +1459,7 @@ var ServiceAlert = ({
|
|
|
1405
1459
|
}
|
|
1406
1460
|
);
|
|
1407
1461
|
};
|
|
1408
|
-
var
|
|
1462
|
+
var texts6 = createTexts({
|
|
1409
1463
|
notification: (notification) => {
|
|
1410
1464
|
const numberNotification = Number(notification);
|
|
1411
1465
|
return {
|
|
@@ -1865,7 +1919,7 @@ function CalendarHeader({ dualView }) {
|
|
|
1865
1919
|
variant: "ghost",
|
|
1866
1920
|
marginLeft: 1,
|
|
1867
1921
|
disabled: prevButtonProps.isDisabled,
|
|
1868
|
-
"aria-label": t(
|
|
1922
|
+
"aria-label": t(texts7.previousMonth),
|
|
1869
1923
|
icon: /* @__PURE__ */ jsx(icons_exports.DropdownLeftFill24Icon, {})
|
|
1870
1924
|
}
|
|
1871
1925
|
),
|
|
@@ -1907,7 +1961,7 @@ function CalendarHeader({ dualView }) {
|
|
|
1907
1961
|
marginRight: 1,
|
|
1908
1962
|
variant: "ghost",
|
|
1909
1963
|
disabled: nextButtonProps.isDisabled,
|
|
1910
|
-
"aria-label": t(
|
|
1964
|
+
"aria-label": t(texts7.nextMonth),
|
|
1911
1965
|
icon: /* @__PURE__ */ jsx(icons_exports.DropdownRightFill24Icon, {})
|
|
1912
1966
|
}
|
|
1913
1967
|
)
|
|
@@ -1915,7 +1969,7 @@ function CalendarHeader({ dualView }) {
|
|
|
1915
1969
|
}
|
|
1916
1970
|
);
|
|
1917
1971
|
}
|
|
1918
|
-
var
|
|
1972
|
+
var texts7 = createTexts({
|
|
1919
1973
|
previousMonth: {
|
|
1920
1974
|
nb: "Forrige m\xE5ned",
|
|
1921
1975
|
nn: "F\xF8rre m\xE5nad",
|
|
@@ -2143,11 +2197,12 @@ var Field3 = ({
|
|
|
2143
2197
|
id,
|
|
2144
2198
|
shouldFloat,
|
|
2145
2199
|
labelAsChild,
|
|
2200
|
+
gap,
|
|
2146
2201
|
...rest
|
|
2147
2202
|
} = props;
|
|
2148
2203
|
const recipe = useSlotRecipe({ key: "field" });
|
|
2149
2204
|
const styles = recipe();
|
|
2150
|
-
return /* @__PURE__ */ jsxs(Stack, {
|
|
2205
|
+
return /* @__PURE__ */ jsxs(Stack, { ref, width: "100%", ...rest, children: [
|
|
2151
2206
|
/* @__PURE__ */ jsxs(
|
|
2152
2207
|
Field.Root,
|
|
2153
2208
|
{
|
|
@@ -2158,6 +2213,7 @@ var Field3 = ({
|
|
|
2158
2213
|
css: styles.root,
|
|
2159
2214
|
direction,
|
|
2160
2215
|
id,
|
|
2216
|
+
gap,
|
|
2161
2217
|
children: [
|
|
2162
2218
|
label && !floatingLabel && /* @__PURE__ */ jsx(Label, { asChild: labelAsChild, "aria-hidden": true, children: renderLabelWithIndicator(label, labelAsChild) }),
|
|
2163
2219
|
children,
|
|
@@ -2400,7 +2456,7 @@ var CalendarNavigator = ({
|
|
|
2400
2456
|
onPress: onPrevious,
|
|
2401
2457
|
isDisabled: isPreviousDisabled,
|
|
2402
2458
|
icon: /* @__PURE__ */ jsx(ArrowLeftOutline24Icon, {}),
|
|
2403
|
-
"aria-label": `${t(
|
|
2459
|
+
"aria-label": `${t(texts8.previous)} ${t(texts8[unit])}`
|
|
2404
2460
|
}
|
|
2405
2461
|
),
|
|
2406
2462
|
/* @__PURE__ */ jsx(
|
|
@@ -2421,12 +2477,12 @@ var CalendarNavigator = ({
|
|
|
2421
2477
|
onPress: onNext,
|
|
2422
2478
|
isDisabled: isNextDisabled,
|
|
2423
2479
|
icon: /* @__PURE__ */ jsx(ArrowRightOutline24Icon, {}),
|
|
2424
|
-
"aria-label": `${t(
|
|
2480
|
+
"aria-label": `${t(texts8.next)} ${t(texts8[unit])}`
|
|
2425
2481
|
}
|
|
2426
2482
|
)
|
|
2427
2483
|
] });
|
|
2428
2484
|
};
|
|
2429
|
-
var
|
|
2485
|
+
var texts8 = createTexts({
|
|
2430
2486
|
previous: {
|
|
2431
2487
|
nb: "Forrige",
|
|
2432
2488
|
nn: "Forrige",
|
|
@@ -2471,7 +2527,7 @@ function Calendar2({
|
|
|
2471
2527
|
const styles = recipe({ variant });
|
|
2472
2528
|
const { calendarProps } = useCalendar$1(props, state);
|
|
2473
2529
|
const calendarAriaLabel = calendarProps["aria-label"];
|
|
2474
|
-
const ariaLabel = t(
|
|
2530
|
+
const ariaLabel = t(texts9.calendar) + (calendarAriaLabel ? ` ${calendarAriaLabel}` : "");
|
|
2475
2531
|
return /* @__PURE__ */ jsxs(
|
|
2476
2532
|
Box,
|
|
2477
2533
|
{
|
|
@@ -2485,7 +2541,7 @@ function Calendar2({
|
|
|
2485
2541
|
}
|
|
2486
2542
|
);
|
|
2487
2543
|
}
|
|
2488
|
-
var
|
|
2544
|
+
var texts9 = createTexts({
|
|
2489
2545
|
calendar: {
|
|
2490
2546
|
nb: "Kalender",
|
|
2491
2547
|
nn: "Kalender",
|
|
@@ -2511,14 +2567,14 @@ var CalendarTriggerButton = ({
|
|
|
2511
2567
|
IconButton,
|
|
2512
2568
|
{
|
|
2513
2569
|
icon: /* @__PURE__ */ jsx(CalendarOutline24Icon, {}),
|
|
2514
|
-
"aria-label": t(
|
|
2570
|
+
"aria-label": t(texts10.openCalendar),
|
|
2515
2571
|
css: styles.calendarTriggerButton,
|
|
2516
2572
|
variant: "ghost",
|
|
2517
2573
|
disabled
|
|
2518
2574
|
}
|
|
2519
2575
|
) });
|
|
2520
2576
|
};
|
|
2521
|
-
var
|
|
2577
|
+
var texts10 = createTexts({
|
|
2522
2578
|
openCalendar: {
|
|
2523
2579
|
nb: "\xC5pne kalender",
|
|
2524
2580
|
nn: "\xC5pne kalendar",
|
|
@@ -2627,7 +2683,7 @@ var DateField = ({
|
|
|
2627
2683
|
)
|
|
2628
2684
|
] });
|
|
2629
2685
|
};
|
|
2630
|
-
var
|
|
2686
|
+
var texts11 = createTexts({
|
|
2631
2687
|
day: {
|
|
2632
2688
|
nb: "Velg dag",
|
|
2633
2689
|
nn: "Vel dag",
|
|
@@ -2650,16 +2706,16 @@ var texts10 = createTexts({
|
|
|
2650
2706
|
var getAriaLabel = (segmentType) => {
|
|
2651
2707
|
switch (segmentType) {
|
|
2652
2708
|
case "day": {
|
|
2653
|
-
return
|
|
2709
|
+
return texts11.day;
|
|
2654
2710
|
}
|
|
2655
2711
|
case "month": {
|
|
2656
|
-
return
|
|
2712
|
+
return texts11.month;
|
|
2657
2713
|
}
|
|
2658
2714
|
case "year": {
|
|
2659
|
-
return
|
|
2715
|
+
return texts11.year;
|
|
2660
2716
|
}
|
|
2661
2717
|
default: {
|
|
2662
|
-
return
|
|
2718
|
+
return texts11.day;
|
|
2663
2719
|
}
|
|
2664
2720
|
}
|
|
2665
2721
|
};
|
|
@@ -2994,7 +3050,7 @@ var TimePicker = ({
|
|
|
2994
3050
|
const isDisabled = isDisabledExternally ?? fieldDisabled ?? false;
|
|
2995
3051
|
const { t } = useTranslation();
|
|
2996
3052
|
const locale = useCurrentLocale();
|
|
2997
|
-
const label = externalLabel ?? t(
|
|
3053
|
+
const label = externalLabel ?? t(texts12.time);
|
|
2998
3054
|
const state = useTimeFieldState({
|
|
2999
3055
|
value,
|
|
3000
3056
|
defaultValue,
|
|
@@ -3027,15 +3083,15 @@ var TimePicker = ({
|
|
|
3027
3083
|
})
|
|
3028
3084
|
);
|
|
3029
3085
|
};
|
|
3030
|
-
const backwardsLabel = `${t(
|
|
3031
|
-
|
|
3086
|
+
const backwardsLabel = `${t(texts12.backwards)} ${minuteInterval} ${t(
|
|
3087
|
+
texts12.minutes
|
|
3032
3088
|
)}`;
|
|
3033
|
-
const forwardsLabel = `${t(
|
|
3034
|
-
|
|
3089
|
+
const forwardsLabel = `${t(texts12.forwards)} ${minuteInterval} ${t(
|
|
3090
|
+
texts12.minutes
|
|
3035
3091
|
)}`;
|
|
3036
|
-
const inputLabel = label ?? t(
|
|
3092
|
+
const inputLabel = label ?? t(texts12.time);
|
|
3037
3093
|
const ariaLabel = `${inputLabel} \u2013 ${t(
|
|
3038
|
-
|
|
3094
|
+
texts12.selectedTimeIs(`${(dateTime == null ? void 0 : dateTime.hour) ?? 0} ${(dateTime == null ? void 0 : dateTime.minute) ?? 0}`)
|
|
3039
3095
|
)}`;
|
|
3040
3096
|
return /* @__PURE__ */ jsx(Field3, { as: "time", ...boxProps, children: /* @__PURE__ */ jsxs(
|
|
3041
3097
|
StyledField,
|
|
@@ -3088,7 +3144,7 @@ var TimePicker = ({
|
|
|
3088
3144
|
}
|
|
3089
3145
|
) });
|
|
3090
3146
|
};
|
|
3091
|
-
var
|
|
3147
|
+
var texts12 = createTexts({
|
|
3092
3148
|
selectedTimeIs: (time) => ({
|
|
3093
3149
|
nb: `Valgt tidspunkt er ${time}`,
|
|
3094
3150
|
nn: `Valt tidspunkt er ${time}`,
|
|
@@ -3229,7 +3285,7 @@ var DrawerCloseTrigger = function DrawerCloseTrigger2({
|
|
|
3229
3285
|
{
|
|
3230
3286
|
variant: "ghost",
|
|
3231
3287
|
icon: /* @__PURE__ */ jsx(CloseFill24Icon, {}),
|
|
3232
|
-
label: t(
|
|
3288
|
+
label: t(texts13.close)
|
|
3233
3289
|
}
|
|
3234
3290
|
) : /* @__PURE__ */ jsx(CloseButton, { size: "md" }) });
|
|
3235
3291
|
};
|
|
@@ -3243,7 +3299,7 @@ var DrawerBackTrigger = ({
|
|
|
3243
3299
|
{
|
|
3244
3300
|
variant: "ghost",
|
|
3245
3301
|
icon: /* @__PURE__ */ jsx(ArrowLeftFill24Icon, {}),
|
|
3246
|
-
label: t(
|
|
3302
|
+
label: t(texts13.back)
|
|
3247
3303
|
}
|
|
3248
3304
|
) });
|
|
3249
3305
|
};
|
|
@@ -3275,7 +3331,7 @@ var DrawerBackdrop = Drawer$1.Backdrop;
|
|
|
3275
3331
|
var DrawerTitle = Drawer$1.Title;
|
|
3276
3332
|
var DrawerActionTrigger = Drawer$1.ActionTrigger;
|
|
3277
3333
|
var DrawerHeader = Drawer$1.Header;
|
|
3278
|
-
var
|
|
3334
|
+
var texts13 = createTexts({
|
|
3279
3335
|
back: {
|
|
3280
3336
|
en: "Back",
|
|
3281
3337
|
nb: "Tilbake",
|
|
@@ -3591,10 +3647,10 @@ function Autocomplete({
|
|
|
3591
3647
|
}
|
|
3592
3648
|
}
|
|
3593
3649
|
) }),
|
|
3594
|
-
/* @__PURE__ */ jsx(Combobox.IndicatorGroup, { children: /* @__PURE__ */ jsx(Combobox.ClearTrigger, { asChild: true, "aria-label": t(
|
|
3650
|
+
/* @__PURE__ */ jsx(Combobox.IndicatorGroup, { children: /* @__PURE__ */ jsx(Combobox.ClearTrigger, { asChild: true, "aria-label": t(texts14.clearValue), children: /* @__PURE__ */ jsx(CloseButton, { size: "xs", tabIndex: 0 }) }) })
|
|
3595
3651
|
] }),
|
|
3596
3652
|
/* @__PURE__ */ jsx(Combobox.Positioner, { children: /* @__PURE__ */ jsxs(Combobox.Content, { children: [
|
|
3597
|
-
!loading && /* @__PURE__ */ jsx(Combobox.Empty, { children: emptyLabel ?? t(
|
|
3653
|
+
!loading && /* @__PURE__ */ jsx(Combobox.Empty, { children: emptyLabel ?? t(texts14.noItemsFound) }),
|
|
3598
3654
|
loading ? /* @__PURE__ */ jsx(ColorSpinner, { width: "1.5rem", p: "2" }) : filteredChildren
|
|
3599
3655
|
] }) })
|
|
3600
3656
|
] });
|
|
@@ -3653,7 +3709,7 @@ var extractItemsFromChildren = (children) => {
|
|
|
3653
3709
|
});
|
|
3654
3710
|
return items;
|
|
3655
3711
|
};
|
|
3656
|
-
var
|
|
3712
|
+
var texts14 = createTexts({
|
|
3657
3713
|
noItemsFound: {
|
|
3658
3714
|
nb: "Ingen resultater",
|
|
3659
3715
|
nn: "Ingen resultat",
|
|
@@ -3738,31 +3794,69 @@ var CheckboxGroup = (props) => {
|
|
|
3738
3794
|
const { direction = "row", children, gap = 1, ...rest } = props;
|
|
3739
3795
|
return /* @__PURE__ */ jsx(CheckboxGroup$1, { ...rest, children: /* @__PURE__ */ jsx(Stack, { direction, gap, children }) });
|
|
3740
3796
|
};
|
|
3797
|
+
var ChoiceChipContext = createContext({
|
|
3798
|
+
variant: "core",
|
|
3799
|
+
size: "sm"
|
|
3800
|
+
});
|
|
3801
|
+
var useChoiceChipContext = () => useContext(ChoiceChipContext);
|
|
3741
3802
|
var ChoiceChip = ({
|
|
3742
3803
|
ref,
|
|
3743
|
-
|
|
3744
|
-
icon,
|
|
3745
|
-
onCheckedChange,
|
|
3746
|
-
...rootProps
|
|
3804
|
+
...props
|
|
3747
3805
|
}) => {
|
|
3748
|
-
|
|
3749
|
-
|
|
3806
|
+
const { children, inputProps, icon, variant, size, css, ...rest } = props;
|
|
3807
|
+
const { variant: contextVariant, size: contextSize } = useChoiceChipContext();
|
|
3808
|
+
const uniqueId = useId();
|
|
3809
|
+
const itemControlId = `radio-card-item-control-${uniqueId}`;
|
|
3810
|
+
const inputHasAriaLabel = (inputProps == null ? void 0 : inputProps["aria-labelledby"]) || (inputProps == null ? void 0 : inputProps["aria-label"]);
|
|
3811
|
+
const finalVariant = variant ?? contextVariant;
|
|
3812
|
+
const finalSize = size ?? contextSize;
|
|
3813
|
+
const recipe = useSlotRecipe({ key: "choiceChip" });
|
|
3814
|
+
const styles = recipe({
|
|
3815
|
+
variant: finalVariant,
|
|
3816
|
+
size: finalSize
|
|
3817
|
+
});
|
|
3818
|
+
return /* @__PURE__ */ jsxs(RadioCard$1.Item, { ...rest, css: { ...css, ...styles.item }, children: [
|
|
3819
|
+
/* @__PURE__ */ jsx(
|
|
3820
|
+
RadioCard$1.ItemHiddenInput,
|
|
3821
|
+
{
|
|
3822
|
+
"aria-labelledby": inputHasAriaLabel ? inputProps == null ? void 0 : inputProps["aria-labelledby"] : itemControlId,
|
|
3823
|
+
ref,
|
|
3824
|
+
...inputProps
|
|
3825
|
+
}
|
|
3826
|
+
),
|
|
3827
|
+
/* @__PURE__ */ jsx(
|
|
3828
|
+
RadioCard$1.ItemControl,
|
|
3829
|
+
{
|
|
3830
|
+
id: itemControlId,
|
|
3831
|
+
"aria-hidden": true,
|
|
3832
|
+
css: styles.itemControl,
|
|
3833
|
+
children: /* @__PURE__ */ jsx(RadioCard$1.ItemContext, { children: ({ checked }) => /* @__PURE__ */ jsxs(RadioCard$1.Label, { css: styles.label, children: [
|
|
3834
|
+
checked ? (icon == null ? void 0 : icon.checked) && /* @__PURE__ */ jsx(Span, { children: icon.checked }) : (icon == null ? void 0 : icon.default) && /* @__PURE__ */ jsx(Span, { children: icon.default }),
|
|
3835
|
+
children
|
|
3836
|
+
] }) })
|
|
3837
|
+
}
|
|
3838
|
+
)
|
|
3839
|
+
] });
|
|
3840
|
+
};
|
|
3841
|
+
var ChoiceChipGroup = ({
|
|
3842
|
+
ref,
|
|
3843
|
+
...props
|
|
3844
|
+
}) => {
|
|
3845
|
+
const { children, variant, size, css, ...rest } = props;
|
|
3846
|
+
const recipe = useSlotRecipe({ key: "choiceChip" });
|
|
3847
|
+
const styles = recipe({ variant, size });
|
|
3848
|
+
return /* @__PURE__ */ jsx(ChoiceChipContext.Provider, { value: { variant, size }, children: /* @__PURE__ */ jsx(
|
|
3849
|
+
RadioCard$1.Root,
|
|
3750
3850
|
{
|
|
3751
|
-
...
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
children
|
|
3756
|
-
/* @__PURE__ */ jsx(CheckboxCard.HiddenInput, { ref }),
|
|
3757
|
-
/* @__PURE__ */ jsx(CheckboxCard.Control, { children: /* @__PURE__ */ jsx(CheckboxCard.Content, { children: /* @__PURE__ */ jsxs(CheckboxCard.Label, { children: [
|
|
3758
|
-
icon && /* @__PURE__ */ jsx(Span, { width: "24px", children: checked ? icon.checked : icon.default }),
|
|
3759
|
-
rootProps.chipType !== "icon" && children,
|
|
3760
|
-
rootProps.chipType === "filter" && checked && /* @__PURE__ */ jsx(CloseOutline24Icon, {})
|
|
3761
|
-
] }) }) })
|
|
3762
|
-
] }) })
|
|
3851
|
+
css: { ...styles.root, ...css },
|
|
3852
|
+
ref,
|
|
3853
|
+
variant,
|
|
3854
|
+
...rest,
|
|
3855
|
+
children
|
|
3763
3856
|
}
|
|
3764
|
-
);
|
|
3857
|
+
) });
|
|
3765
3858
|
};
|
|
3859
|
+
var ChoiceChipLabel = RadioCard$1.Label;
|
|
3766
3860
|
var Popover = ({
|
|
3767
3861
|
ref,
|
|
3768
3862
|
children,
|
|
@@ -4019,6 +4113,31 @@ var FieldsetLegend = Fieldset$1.Legend;
|
|
|
4019
4113
|
var FieldsetContent = Fieldset$1.Content;
|
|
4020
4114
|
var FieldsetHelperText = Fieldset$1.HelperText;
|
|
4021
4115
|
var FieldsetErrorText = Fieldset$1.ErrorText;
|
|
4116
|
+
var FilterChip = ({
|
|
4117
|
+
ref,
|
|
4118
|
+
children,
|
|
4119
|
+
icon,
|
|
4120
|
+
onCheckedChange,
|
|
4121
|
+
...rootProps
|
|
4122
|
+
}) => {
|
|
4123
|
+
return /* @__PURE__ */ jsx(
|
|
4124
|
+
CheckboxCard.Root,
|
|
4125
|
+
{
|
|
4126
|
+
...rootProps,
|
|
4127
|
+
...onCheckedChange && {
|
|
4128
|
+
onCheckedChange: (details) => onCheckedChange(!!details.checked)
|
|
4129
|
+
},
|
|
4130
|
+
children: /* @__PURE__ */ jsx(CheckboxCard.Context, { children: ({ checked }) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
4131
|
+
/* @__PURE__ */ jsx(CheckboxCard.HiddenInput, { ref }),
|
|
4132
|
+
/* @__PURE__ */ jsx(CheckboxCard.Control, { children: /* @__PURE__ */ jsx(CheckboxCard.Content, { children: /* @__PURE__ */ jsxs(CheckboxCard.Label, { children: [
|
|
4133
|
+
checked ? (icon == null ? void 0 : icon.checked) && /* @__PURE__ */ jsx(Span, { children: icon.checked }) : (icon == null ? void 0 : icon.default) && /* @__PURE__ */ jsx(Span, { children: icon.default }),
|
|
4134
|
+
rootProps.chipType !== "icon" && children,
|
|
4135
|
+
rootProps.chipType === "filter" && checked && /* @__PURE__ */ jsx(CloseOutline24Icon, {})
|
|
4136
|
+
] }) }) })
|
|
4137
|
+
] }) })
|
|
4138
|
+
}
|
|
4139
|
+
);
|
|
4140
|
+
};
|
|
4022
4141
|
var InputChip = ({
|
|
4023
4142
|
startIcon,
|
|
4024
4143
|
endIcon,
|
|
@@ -4370,6 +4489,7 @@ var NumericStepper = ({
|
|
|
4370
4489
|
label,
|
|
4371
4490
|
helperText,
|
|
4372
4491
|
errorText,
|
|
4492
|
+
gap,
|
|
4373
4493
|
...rest
|
|
4374
4494
|
} = props;
|
|
4375
4495
|
const addButtonRef = useRef(null);
|
|
@@ -4398,13 +4518,14 @@ var NumericStepper = ({
|
|
|
4398
4518
|
invalid,
|
|
4399
4519
|
readOnly,
|
|
4400
4520
|
required,
|
|
4521
|
+
gap,
|
|
4401
4522
|
children: [
|
|
4402
4523
|
/* @__PURE__ */ jsx(
|
|
4403
4524
|
VerySmallButton,
|
|
4404
4525
|
{
|
|
4405
4526
|
icon: /* @__PURE__ */ jsx(SubtractIcon, { stepLabel: clampedStepSize }),
|
|
4406
4527
|
"aria-label": t(
|
|
4407
|
-
|
|
4528
|
+
texts15.decrementButtonAriaLabel(
|
|
4408
4529
|
clampedStepSize,
|
|
4409
4530
|
stepSize === 1 ? ariaLabelContext.singular : ariaLabelContext.plural
|
|
4410
4531
|
)
|
|
@@ -4431,7 +4552,7 @@ var NumericStepper = ({
|
|
|
4431
4552
|
css: styles.input,
|
|
4432
4553
|
width: `${Math.max(value.toString().length + 1, 3)}ch`,
|
|
4433
4554
|
"aria-live": "assertive",
|
|
4434
|
-
"aria-label": ariaLabelContext.plural === "" ? "" : t(
|
|
4555
|
+
"aria-label": ariaLabelContext.plural === "" ? "" : t(texts15.currentNumberAriaLabel(ariaLabelContext.plural)),
|
|
4435
4556
|
onChange: (event) => {
|
|
4436
4557
|
const numericInput = Number(event.target.value);
|
|
4437
4558
|
if (Number.isNaN(numericInput)) {
|
|
@@ -4448,8 +4569,11 @@ var NumericStepper = ({
|
|
|
4448
4569
|
Text3,
|
|
4449
4570
|
{
|
|
4450
4571
|
"aria-live": "assertive",
|
|
4451
|
-
|
|
4452
|
-
|
|
4572
|
+
width: `${Math.max(value.toString().length + 1, 3)}ch`,
|
|
4573
|
+
paddingX: 0.5,
|
|
4574
|
+
padding: 0,
|
|
4575
|
+
textAlign: "center",
|
|
4576
|
+
"aria-label": ariaLabelContext.plural === "" ? "" : t(texts15.currentNumberAriaLabel(ariaLabelContext.plural)),
|
|
4453
4577
|
children: value
|
|
4454
4578
|
}
|
|
4455
4579
|
),
|
|
@@ -4459,7 +4583,7 @@ var NumericStepper = ({
|
|
|
4459
4583
|
ref: addButtonRef,
|
|
4460
4584
|
icon: /* @__PURE__ */ jsx(AddIcon, { stepLabel: clampedStepSize }),
|
|
4461
4585
|
"aria-label": t(
|
|
4462
|
-
|
|
4586
|
+
texts15.incrementButtonAriaLabel(
|
|
4463
4587
|
clampedStepSize,
|
|
4464
4588
|
stepSize === 1 ? ariaLabelContext.singular : ariaLabelContext.plural
|
|
4465
4589
|
)
|
|
@@ -4533,7 +4657,7 @@ var AddIcon = ({ stepLabel }) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
|
4533
4657
|
] }),
|
|
4534
4658
|
stepLabel > 1 && /* @__PURE__ */ jsx(chakra.span, { paddingRight: "1", children: stepLabel.toString() })
|
|
4535
4659
|
] });
|
|
4536
|
-
var
|
|
4660
|
+
var texts15 = createTexts({
|
|
4537
4661
|
currentNumberAriaLabel(ariaContext) {
|
|
4538
4662
|
return {
|
|
4539
4663
|
nb: `Valgt antall ${ariaContext}`,
|
|
@@ -4597,7 +4721,7 @@ var PasswordInput = ({
|
|
|
4597
4721
|
event.preventDefault();
|
|
4598
4722
|
setVisible(!visible);
|
|
4599
4723
|
},
|
|
4600
|
-
children: visible ? t(
|
|
4724
|
+
children: visible ? t(texts16.hidePassword) : t(texts16.showPassword)
|
|
4601
4725
|
}
|
|
4602
4726
|
),
|
|
4603
4727
|
...rest
|
|
@@ -4622,7 +4746,7 @@ var VisibilityTrigger = ({
|
|
|
4622
4746
|
}
|
|
4623
4747
|
);
|
|
4624
4748
|
};
|
|
4625
|
-
var
|
|
4749
|
+
var texts16 = createTexts({
|
|
4626
4750
|
showPassword: {
|
|
4627
4751
|
nb: "Vis",
|
|
4628
4752
|
nn: "Vis",
|
|
@@ -4674,14 +4798,14 @@ var CountryCodeSelect = ({
|
|
|
4674
4798
|
positioning: { placement: "bottom", flip: false },
|
|
4675
4799
|
collection: filteredCallingCodes,
|
|
4676
4800
|
lazyMount: true,
|
|
4677
|
-
"aria-label": t(
|
|
4801
|
+
"aria-label": t(texts17.countryCode),
|
|
4678
4802
|
sideRadiusVariant: "rightSideSquare",
|
|
4679
4803
|
role: "combobox",
|
|
4680
4804
|
children: filteredCallingCodes.items.map((code) => /* @__PURE__ */ jsx(SelectItem, { item: code, children: code.label }, code.label))
|
|
4681
4805
|
}
|
|
4682
4806
|
);
|
|
4683
4807
|
};
|
|
4684
|
-
var
|
|
4808
|
+
var texts17 = createTexts({
|
|
4685
4809
|
countryCode: {
|
|
4686
4810
|
nb: "Landkode",
|
|
4687
4811
|
nn: "Landskode",
|
|
@@ -4704,7 +4828,7 @@ var PhoneNumberInput = ({
|
|
|
4704
4828
|
errorText
|
|
4705
4829
|
} = props;
|
|
4706
4830
|
const { t } = useTranslation();
|
|
4707
|
-
const label = externalLabel ?? (optional ? t(
|
|
4831
|
+
const label = externalLabel ?? (optional ? t(texts18.phoneNumberOptional) : t(texts18.phoneNumber));
|
|
4708
4832
|
const [value, onChange] = useControllableState({
|
|
4709
4833
|
value: externalValue,
|
|
4710
4834
|
onChange: externalOnChange,
|
|
@@ -4759,7 +4883,7 @@ var PhoneNumberInput = ({
|
|
|
4759
4883
|
)
|
|
4760
4884
|
] });
|
|
4761
4885
|
};
|
|
4762
|
-
var
|
|
4886
|
+
var texts18 = createTexts({
|
|
4763
4887
|
phoneNumber: {
|
|
4764
4888
|
nb: "Telefonnummer",
|
|
4765
4889
|
nn: "Telefonnummer",
|
|
@@ -4811,16 +4935,16 @@ var SearchInput = ({
|
|
|
4811
4935
|
variant: "ghost",
|
|
4812
4936
|
type: "button",
|
|
4813
4937
|
size: "sm",
|
|
4814
|
-
"aria-label": t(
|
|
4938
|
+
"aria-label": t(texts19.reset),
|
|
4815
4939
|
icon: /* @__PURE__ */ jsx(CloseOutline24Icon, {}),
|
|
4816
4940
|
onClick: onReset
|
|
4817
4941
|
}
|
|
4818
4942
|
),
|
|
4819
|
-
label: label ?? t(
|
|
4943
|
+
label: label ?? t(texts19.label)
|
|
4820
4944
|
}
|
|
4821
4945
|
);
|
|
4822
4946
|
};
|
|
4823
|
-
var
|
|
4947
|
+
var texts19 = createTexts({
|
|
4824
4948
|
label: {
|
|
4825
4949
|
nb: "S\xF8k",
|
|
4826
4950
|
nn: "S\xF8k",
|
|
@@ -5372,7 +5496,7 @@ var TextLink = ({
|
|
|
5372
5496
|
}) => {
|
|
5373
5497
|
const { t } = useTranslation();
|
|
5374
5498
|
const isExternal = external ?? Boolean((href == null ? void 0 : href.startsWith("http://")) || (href == null ? void 0 : href.startsWith("https://")));
|
|
5375
|
-
const externalLabel = t ? t(
|
|
5499
|
+
const externalLabel = t ? t(texts20.externalLink) : texts20.externalLink.en;
|
|
5376
5500
|
if (props.asChild && isValidElement(children)) {
|
|
5377
5501
|
return /* @__PURE__ */ jsx(
|
|
5378
5502
|
Link,
|
|
@@ -5411,7 +5535,7 @@ var TextLink = ({
|
|
|
5411
5535
|
}
|
|
5412
5536
|
);
|
|
5413
5537
|
};
|
|
5414
|
-
var
|
|
5538
|
+
var texts20 = createTexts({
|
|
5415
5539
|
externalLink: {
|
|
5416
5540
|
nb: "Ekstern lenke",
|
|
5417
5541
|
nn: "Ekstern lenke",
|
|
@@ -5948,14 +6072,14 @@ var JumpButton = ({
|
|
|
5948
6072
|
as: "button",
|
|
5949
6073
|
ref,
|
|
5950
6074
|
css: styles.root,
|
|
5951
|
-
"aria-label": direction === "forward" ? t(
|
|
6075
|
+
"aria-label": direction === "forward" ? t(texts21.forward) : t(texts21.backward),
|
|
5952
6076
|
disabled,
|
|
5953
6077
|
...props,
|
|
5954
6078
|
children: direction === "forward" ? /* @__PURE__ */ jsx(Forward15MediaControllerFill30Icon, { css: styles.icon }) : /* @__PURE__ */ jsx(Backward15MediaControllerFill30Icon, { css: styles.icon })
|
|
5955
6079
|
}
|
|
5956
6080
|
);
|
|
5957
6081
|
};
|
|
5958
|
-
var
|
|
6082
|
+
var texts21 = createTexts({
|
|
5959
6083
|
forward: {
|
|
5960
6084
|
nb: "15 sekunder frem",
|
|
5961
6085
|
nn: "15 sekunder fram",
|
|
@@ -5983,14 +6107,14 @@ var PlayPauseButton = ({
|
|
|
5983
6107
|
ref,
|
|
5984
6108
|
as: "button",
|
|
5985
6109
|
css: styles.root,
|
|
5986
|
-
"aria-label": playing ? t(
|
|
6110
|
+
"aria-label": playing ? t(texts22.pause) : t(texts22.play),
|
|
5987
6111
|
disabled,
|
|
5988
6112
|
...props,
|
|
5989
6113
|
children: playing ? /* @__PURE__ */ jsx(PauseMediaControllerFill24Icon, { css: styles.icon }) : /* @__PURE__ */ jsx(PlayMediaControllerFill24Icon, { css: styles.icon })
|
|
5990
6114
|
}
|
|
5991
6115
|
);
|
|
5992
6116
|
};
|
|
5993
|
-
var
|
|
6117
|
+
var texts22 = createTexts({
|
|
5994
6118
|
pause: {
|
|
5995
6119
|
nb: "Pause",
|
|
5996
6120
|
nn: "Pause",
|
|
@@ -6018,14 +6142,14 @@ var SkipButton = ({
|
|
|
6018
6142
|
ref,
|
|
6019
6143
|
as: "button",
|
|
6020
6144
|
css: styles.root,
|
|
6021
|
-
"aria-label": direction === "forward" ? t(
|
|
6145
|
+
"aria-label": direction === "forward" ? t(texts23.next) : t(texts23.previous),
|
|
6022
6146
|
disabled,
|
|
6023
6147
|
...props,
|
|
6024
6148
|
children: direction === "forward" ? /* @__PURE__ */ jsx(NextMediaControllerFill30Icon, { css: styles.icon }) : /* @__PURE__ */ jsx(PreviousMediaControllerFill30Icon, { css: styles.icon })
|
|
6025
6149
|
}
|
|
6026
6150
|
);
|
|
6027
6151
|
};
|
|
6028
|
-
var
|
|
6152
|
+
var texts23 = createTexts({
|
|
6029
6153
|
next: {
|
|
6030
6154
|
nb: "Neste",
|
|
6031
6155
|
nn: "Neste",
|
|
@@ -6140,7 +6264,7 @@ var NudgeActions = ({ ...props }) => {
|
|
|
6140
6264
|
var NextButton = ({ isLastStep, onNext }) => {
|
|
6141
6265
|
const { t } = useTranslation();
|
|
6142
6266
|
if (isLastStep)
|
|
6143
|
-
return /* @__PURE__ */ jsx(PopoverCloseTrigger, { children: /* @__PURE__ */ jsx(Button, { variant: "tertiary", size: "xs", children: t(
|
|
6267
|
+
return /* @__PURE__ */ jsx(PopoverCloseTrigger, { children: /* @__PURE__ */ jsx(Button, { variant: "tertiary", size: "xs", children: t(texts24.close) }) });
|
|
6144
6268
|
return /* @__PURE__ */ jsx(
|
|
6145
6269
|
Button,
|
|
6146
6270
|
{
|
|
@@ -6148,11 +6272,11 @@ var NextButton = ({ isLastStep, onNext }) => {
|
|
|
6148
6272
|
size: "xs",
|
|
6149
6273
|
rightIcon: /* @__PURE__ */ jsx(ArrowRightFill18Icon, {}),
|
|
6150
6274
|
onClick: onNext,
|
|
6151
|
-
children: t(
|
|
6275
|
+
children: t(texts24.nextStep)
|
|
6152
6276
|
}
|
|
6153
6277
|
);
|
|
6154
6278
|
};
|
|
6155
|
-
var
|
|
6279
|
+
var texts24 = createTexts({
|
|
6156
6280
|
nextStep: {
|
|
6157
6281
|
nb: "Neste",
|
|
6158
6282
|
nn: "Neste",
|
|
@@ -6228,7 +6352,7 @@ var PaginationItem = ({
|
|
|
6228
6352
|
to: rootProps.getHref(props.value)
|
|
6229
6353
|
},
|
|
6230
6354
|
ref,
|
|
6231
|
-
"aria-label": t(
|
|
6355
|
+
"aria-label": t(texts25.pageOf(props.value, totalPages)),
|
|
6232
6356
|
...props,
|
|
6233
6357
|
children: props.value
|
|
6234
6358
|
}
|
|
@@ -6239,7 +6363,7 @@ var PaginationItem = ({
|
|
|
6239
6363
|
{
|
|
6240
6364
|
as: props.as ?? "button",
|
|
6241
6365
|
ref,
|
|
6242
|
-
"aria-label": t(
|
|
6366
|
+
"aria-label": t(texts25.pageOf(props.value, totalPages)),
|
|
6243
6367
|
"aria-current": page === props.value,
|
|
6244
6368
|
...props,
|
|
6245
6369
|
children: props.value
|
|
@@ -6269,7 +6393,7 @@ var PaginationPrevTrigger = ({
|
|
|
6269
6393
|
},
|
|
6270
6394
|
ref,
|
|
6271
6395
|
css: styles.item,
|
|
6272
|
-
"aria-label": t(
|
|
6396
|
+
"aria-label": t(texts25.previousPage),
|
|
6273
6397
|
...props,
|
|
6274
6398
|
children: /* @__PURE__ */ jsx(DropdownLeftOutline18Icon, {})
|
|
6275
6399
|
}
|
|
@@ -6280,7 +6404,7 @@ var PaginationPrevTrigger = ({
|
|
|
6280
6404
|
{
|
|
6281
6405
|
ref,
|
|
6282
6406
|
asChild: true,
|
|
6283
|
-
"aria-label": t(
|
|
6407
|
+
"aria-label": t(texts25.previousPage),
|
|
6284
6408
|
as: props.as || "button",
|
|
6285
6409
|
css: styles.item,
|
|
6286
6410
|
...props,
|
|
@@ -6309,7 +6433,7 @@ var PaginationNextTrigger = ({
|
|
|
6309
6433
|
to: rootProps.getHref(props.value)
|
|
6310
6434
|
},
|
|
6311
6435
|
css: styles.item,
|
|
6312
|
-
"aria-label": t(
|
|
6436
|
+
"aria-label": t(texts25.nextPage),
|
|
6313
6437
|
...props,
|
|
6314
6438
|
children: /* @__PURE__ */ jsx(DropdownRightOutline18Icon, {})
|
|
6315
6439
|
}
|
|
@@ -6320,7 +6444,7 @@ var PaginationNextTrigger = ({
|
|
|
6320
6444
|
{
|
|
6321
6445
|
ref,
|
|
6322
6446
|
css: styles.item,
|
|
6323
|
-
"aria-label": t(
|
|
6447
|
+
"aria-label": t(texts25.nextPage),
|
|
6324
6448
|
as: props.as || "button",
|
|
6325
6449
|
...props,
|
|
6326
6450
|
children: /* @__PURE__ */ jsx(DropdownRightOutline18Icon, {})
|
|
@@ -6347,7 +6471,7 @@ var PaginationItems = (props) => {
|
|
|
6347
6471
|
);
|
|
6348
6472
|
}) });
|
|
6349
6473
|
};
|
|
6350
|
-
var
|
|
6474
|
+
var texts25 = createTexts({
|
|
6351
6475
|
previousPage: {
|
|
6352
6476
|
nb: "Forrige side",
|
|
6353
6477
|
nn: "F\xF8rre side",
|
|
@@ -6447,7 +6571,7 @@ var ProgressIndicator = ({
|
|
|
6447
6571
|
"aria-valuemin": 1,
|
|
6448
6572
|
"aria-valuemax": numberOfSteps,
|
|
6449
6573
|
"aria-valuenow": activeStep,
|
|
6450
|
-
"aria-valuetext": t(
|
|
6574
|
+
"aria-valuetext": t(texts26.stepsOf(activeStep, numberOfSteps)),
|
|
6451
6575
|
ref,
|
|
6452
6576
|
children: /* @__PURE__ */ jsx(Box, { css: { ...styles.container, ...css }, children: Array.from({ length: numberOfSteps }, (_, index) => /* @__PURE__ */ jsx(
|
|
6453
6577
|
Box,
|
|
@@ -6466,7 +6590,7 @@ var ProgressIndicator = ({
|
|
|
6466
6590
|
}
|
|
6467
6591
|
);
|
|
6468
6592
|
};
|
|
6469
|
-
var
|
|
6593
|
+
var texts26 = createTexts({
|
|
6470
6594
|
stepsOf: (activeStep, numberOfSteps) => ({
|
|
6471
6595
|
nb: `Steg ${activeStep} av ${numberOfSteps}`,
|
|
6472
6596
|
nn: `Steg ${activeStep} av ${numberOfSteps}`,
|
|
@@ -6662,7 +6786,7 @@ var Stepper = function Stepper2({
|
|
|
6662
6786
|
/* @__PURE__ */ jsx(
|
|
6663
6787
|
IconButton,
|
|
6664
6788
|
{
|
|
6665
|
-
"aria-label": t(
|
|
6789
|
+
"aria-label": t(texts27.back),
|
|
6666
6790
|
icon: /* @__PURE__ */ jsx(ArrowLeftFill24Icon, {}),
|
|
6667
6791
|
variant: "ghost",
|
|
6668
6792
|
size: "sm",
|
|
@@ -6686,7 +6810,7 @@ var Stepper = function Stepper2({
|
|
|
6686
6810
|
children: heading
|
|
6687
6811
|
}
|
|
6688
6812
|
),
|
|
6689
|
-
/* @__PURE__ */ jsx(Box, { css: style.stepCounter, "data-part": "step-counter", children: t(
|
|
6813
|
+
/* @__PURE__ */ jsx(Box, { css: style.stepCounter, "data-part": "step-counter", children: t(texts27.stepsOf(activeStep, numberOfSteps)) })
|
|
6690
6814
|
]
|
|
6691
6815
|
}
|
|
6692
6816
|
) }),
|
|
@@ -6705,7 +6829,7 @@ var Stepper = function Stepper2({
|
|
|
6705
6829
|
}
|
|
6706
6830
|
) });
|
|
6707
6831
|
};
|
|
6708
|
-
var
|
|
6832
|
+
var texts27 = createTexts({
|
|
6709
6833
|
stepsOf: (activeStep, numberOfSteps) => ({
|
|
6710
6834
|
nb: `Steg ${activeStep}/${numberOfSteps}`,
|
|
6711
6835
|
nn: `Steg ${activeStep}/${numberOfSteps}`,
|
|
@@ -7403,12 +7527,12 @@ var pressableCardRecipe = defineRecipe({
|
|
|
7403
7527
|
accent: {
|
|
7404
7528
|
boxShadow: "0px 1px 3px 0px var(--shadow-color)",
|
|
7405
7529
|
shadowColor: "surface.disabled",
|
|
7406
|
-
background: "surface.
|
|
7530
|
+
background: "surface.accent",
|
|
7407
7531
|
_hover: {
|
|
7408
|
-
background: "surface.
|
|
7532
|
+
background: "surface.accent.hover",
|
|
7409
7533
|
boxShadow: "0px 2px 6px 0px var(--shadow-color)",
|
|
7410
7534
|
_active: {
|
|
7411
|
-
background: "surface.
|
|
7535
|
+
background: "surface.accent.active",
|
|
7412
7536
|
boxShadow: "none"
|
|
7413
7537
|
}
|
|
7414
7538
|
}
|
|
@@ -7813,7 +7937,8 @@ var radioCardAnatomy = createAnatomy("radio-card").parts(
|
|
|
7813
7937
|
"label",
|
|
7814
7938
|
"itemText",
|
|
7815
7939
|
"itemDescription",
|
|
7816
|
-
"itemContent"
|
|
7940
|
+
"itemContent",
|
|
7941
|
+
"itemControl"
|
|
7817
7942
|
);
|
|
7818
7943
|
var radioAnatomy = createAnatomy("radio").parts(
|
|
7819
7944
|
"root",
|
|
@@ -8594,38 +8719,30 @@ var checkboxSlotRecipe = defineSlotRecipe({
|
|
|
8594
8719
|
}
|
|
8595
8720
|
});
|
|
8596
8721
|
var choiceChipSlotRecipe = defineSlotRecipe({
|
|
8597
|
-
|
|
8598
|
-
|
|
8722
|
+
className: "spor-choice-chip",
|
|
8723
|
+
slots: radioCardAnatomy.keys(),
|
|
8599
8724
|
base: {
|
|
8600
8725
|
root: {
|
|
8601
|
-
display: "
|
|
8602
|
-
|
|
8603
|
-
|
|
8604
|
-
|
|
8726
|
+
display: "flex",
|
|
8727
|
+
flexDirection: "row",
|
|
8728
|
+
gap: "1",
|
|
8729
|
+
width: "fit-content"
|
|
8730
|
+
},
|
|
8731
|
+
item: {
|
|
8732
|
+
display: "flex-inline",
|
|
8605
8733
|
transitionProperty: "all",
|
|
8606
|
-
borderRadius: "xl",
|
|
8607
8734
|
transitionDuration: "fast",
|
|
8608
|
-
paddingInlineStart: "2",
|
|
8609
|
-
paddingInlineEnd: "2",
|
|
8610
|
-
outline: "1px solid",
|
|
8611
|
-
outlineColor: "outline.core",
|
|
8612
8735
|
_checked: {
|
|
8613
|
-
backgroundColor: "surface.brand",
|
|
8614
|
-
borderRadius: "sm",
|
|
8615
8736
|
outline: "none",
|
|
8616
|
-
|
|
8737
|
+
_focusVisible: {
|
|
8738
|
+
outline: "2px solid",
|
|
8739
|
+
outlineColor: "outline.focus",
|
|
8740
|
+
outlineOffset: "1px"
|
|
8741
|
+
},
|
|
8617
8742
|
_hover: {
|
|
8618
|
-
|
|
8619
|
-
_active: {
|
|
8620
|
-
backgroundColor: "surface.brand.active"
|
|
8621
|
-
}
|
|
8743
|
+
outline: "none"
|
|
8622
8744
|
}
|
|
8623
8745
|
},
|
|
8624
|
-
_focusVisible: {
|
|
8625
|
-
outline: "2px solid",
|
|
8626
|
-
outlineColor: "outline.focus",
|
|
8627
|
-
outlineOffset: "1px"
|
|
8628
|
-
},
|
|
8629
8746
|
_disabled: {
|
|
8630
8747
|
pointerEvents: "none",
|
|
8631
8748
|
boxShadow: "none",
|
|
@@ -8650,32 +8767,44 @@ var choiceChipSlotRecipe = defineSlotRecipe({
|
|
|
8650
8767
|
}
|
|
8651
8768
|
}
|
|
8652
8769
|
},
|
|
8770
|
+
itemControl: {
|
|
8771
|
+
display: "flex",
|
|
8772
|
+
alignItems: "center",
|
|
8773
|
+
justifyContent: "center"
|
|
8774
|
+
},
|
|
8653
8775
|
label: {
|
|
8654
8776
|
display: "flex",
|
|
8655
8777
|
alignItems: "center",
|
|
8778
|
+
justifyContent: "center",
|
|
8656
8779
|
gap: "1"
|
|
8657
8780
|
}
|
|
8658
8781
|
},
|
|
8659
8782
|
variants: {
|
|
8660
8783
|
size: {
|
|
8661
8784
|
xs: {
|
|
8662
|
-
|
|
8785
|
+
item: {
|
|
8786
|
+
borderRadius: "xl",
|
|
8663
8787
|
_checked: {
|
|
8664
|
-
borderRadius: "
|
|
8665
|
-
}
|
|
8788
|
+
borderRadius: "9px"
|
|
8789
|
+
}
|
|
8790
|
+
},
|
|
8791
|
+
itemControl: {
|
|
8666
8792
|
height: 5,
|
|
8667
8793
|
paddingX: 1.5
|
|
8668
8794
|
},
|
|
8669
8795
|
label: {
|
|
8670
8796
|
fontSize: { base: "mobile.sm", sm: "desktop.sm" },
|
|
8671
|
-
fontWeight: "
|
|
8797
|
+
fontWeight: "regular"
|
|
8672
8798
|
}
|
|
8673
8799
|
},
|
|
8674
8800
|
sm: {
|
|
8675
|
-
|
|
8801
|
+
item: {
|
|
8802
|
+
borderRadius: "xl",
|
|
8676
8803
|
_checked: {
|
|
8677
8804
|
borderRadius: "sm"
|
|
8678
|
-
}
|
|
8805
|
+
}
|
|
8806
|
+
},
|
|
8807
|
+
itemControl: {
|
|
8679
8808
|
height: 6,
|
|
8680
8809
|
paddingX: 2
|
|
8681
8810
|
},
|
|
@@ -8685,10 +8814,13 @@ var choiceChipSlotRecipe = defineSlotRecipe({
|
|
|
8685
8814
|
}
|
|
8686
8815
|
},
|
|
8687
8816
|
md: {
|
|
8688
|
-
|
|
8817
|
+
item: {
|
|
8818
|
+
borderRadius: "xl",
|
|
8689
8819
|
_checked: {
|
|
8690
8820
|
borderRadius: "sm"
|
|
8691
|
-
}
|
|
8821
|
+
}
|
|
8822
|
+
},
|
|
8823
|
+
itemControl: {
|
|
8692
8824
|
height: 7,
|
|
8693
8825
|
paddingX: 2
|
|
8694
8826
|
},
|
|
@@ -8698,10 +8830,13 @@ var choiceChipSlotRecipe = defineSlotRecipe({
|
|
|
8698
8830
|
}
|
|
8699
8831
|
},
|
|
8700
8832
|
lg: {
|
|
8701
|
-
|
|
8833
|
+
item: {
|
|
8834
|
+
borderRadius: "xl",
|
|
8702
8835
|
_checked: {
|
|
8703
8836
|
borderRadius: "md"
|
|
8704
|
-
}
|
|
8837
|
+
}
|
|
8838
|
+
},
|
|
8839
|
+
itemControl: {
|
|
8705
8840
|
height: 8,
|
|
8706
8841
|
paddingX: 3
|
|
8707
8842
|
},
|
|
@@ -8713,9 +8848,18 @@ var choiceChipSlotRecipe = defineSlotRecipe({
|
|
|
8713
8848
|
},
|
|
8714
8849
|
variant: {
|
|
8715
8850
|
core: {
|
|
8716
|
-
|
|
8717
|
-
|
|
8718
|
-
|
|
8851
|
+
itemControl: {
|
|
8852
|
+
_checked: {
|
|
8853
|
+
backgroundColor: "surface.brand",
|
|
8854
|
+
color: "text.brand",
|
|
8855
|
+
outline: "none",
|
|
8856
|
+
_hover: {
|
|
8857
|
+
backgroundColor: "surface.brand.hover",
|
|
8858
|
+
_active: {
|
|
8859
|
+
backgroundColor: "surface.brand.active"
|
|
8860
|
+
}
|
|
8861
|
+
}
|
|
8862
|
+
},
|
|
8719
8863
|
_hover: {
|
|
8720
8864
|
outline: "2px solid",
|
|
8721
8865
|
outlineColor: "outline.core.hover",
|
|
@@ -8728,10 +8872,22 @@ var choiceChipSlotRecipe = defineSlotRecipe({
|
|
|
8728
8872
|
}
|
|
8729
8873
|
},
|
|
8730
8874
|
accent: {
|
|
8731
|
-
|
|
8875
|
+
itemControl: {
|
|
8732
8876
|
backgroundColor: "surface.accent",
|
|
8733
8877
|
color: "text.accent",
|
|
8734
8878
|
outline: "none",
|
|
8879
|
+
border: "none",
|
|
8880
|
+
_checked: {
|
|
8881
|
+
backgroundColor: "surface.brand",
|
|
8882
|
+
color: "text.brand",
|
|
8883
|
+
outline: "none",
|
|
8884
|
+
_hover: {
|
|
8885
|
+
backgroundColor: "surface.brand.hover",
|
|
8886
|
+
_active: {
|
|
8887
|
+
backgroundColor: "surface.brand.active"
|
|
8888
|
+
}
|
|
8889
|
+
}
|
|
8890
|
+
},
|
|
8735
8891
|
_hover: {
|
|
8736
8892
|
backgroundColor: "surface.accent.hover",
|
|
8737
8893
|
_active: {
|
|
@@ -8741,12 +8897,23 @@ var choiceChipSlotRecipe = defineSlotRecipe({
|
|
|
8741
8897
|
}
|
|
8742
8898
|
},
|
|
8743
8899
|
floating: {
|
|
8744
|
-
|
|
8900
|
+
itemControl: {
|
|
8745
8901
|
backgroundColor: "surface.floating",
|
|
8746
8902
|
outline: "1px solid",
|
|
8747
8903
|
outlineColor: "outline.floating",
|
|
8748
8904
|
color: "text.floating",
|
|
8749
8905
|
boxShadow: "sm",
|
|
8906
|
+
_checked: {
|
|
8907
|
+
backgroundColor: "surface.brand",
|
|
8908
|
+
color: "text.brand",
|
|
8909
|
+
outline: "none",
|
|
8910
|
+
_hover: {
|
|
8911
|
+
backgroundColor: "surface.brand.hover",
|
|
8912
|
+
_active: {
|
|
8913
|
+
backgroundColor: "surface.brand.active"
|
|
8914
|
+
}
|
|
8915
|
+
}
|
|
8916
|
+
},
|
|
8750
8917
|
_hover: {
|
|
8751
8918
|
backgroundColor: "surface.floating.hover",
|
|
8752
8919
|
outline: "1px solid",
|
|
@@ -8759,17 +8926,11 @@ var choiceChipSlotRecipe = defineSlotRecipe({
|
|
|
8759
8926
|
}
|
|
8760
8927
|
}
|
|
8761
8928
|
}
|
|
8762
|
-
},
|
|
8763
|
-
chipType: {
|
|
8764
|
-
icon: {},
|
|
8765
|
-
choice: {},
|
|
8766
|
-
filter: {}
|
|
8767
8929
|
}
|
|
8768
8930
|
},
|
|
8769
8931
|
defaultVariants: {
|
|
8770
8932
|
size: "sm",
|
|
8771
|
-
variant: "core"
|
|
8772
|
-
chipType: "choice"
|
|
8933
|
+
variant: "core"
|
|
8773
8934
|
}
|
|
8774
8935
|
});
|
|
8775
8936
|
var collapsibleSlotRecipe = defineSlotRecipe({
|
|
@@ -9491,6 +9652,186 @@ var fieldSlotRecipe = defineSlotRecipe({
|
|
|
9491
9652
|
}
|
|
9492
9653
|
}
|
|
9493
9654
|
});
|
|
9655
|
+
var filterChipSlotRecipe = defineSlotRecipe({
|
|
9656
|
+
slots: checkboxCardAnatomy.keys(),
|
|
9657
|
+
className: "chakra-checkbox-card",
|
|
9658
|
+
base: {
|
|
9659
|
+
root: {
|
|
9660
|
+
display: "inline-flex",
|
|
9661
|
+
alignItems: "center",
|
|
9662
|
+
boxAlign: "center",
|
|
9663
|
+
cursor: "pointer",
|
|
9664
|
+
transitionProperty: "all",
|
|
9665
|
+
borderRadius: "xl",
|
|
9666
|
+
transitionDuration: "fast",
|
|
9667
|
+
paddingInlineStart: "2",
|
|
9668
|
+
paddingInlineEnd: "2",
|
|
9669
|
+
outline: "1px solid",
|
|
9670
|
+
outlineColor: "outline.core",
|
|
9671
|
+
_checked: {
|
|
9672
|
+
backgroundColor: "surface.brand",
|
|
9673
|
+
borderRadius: "sm",
|
|
9674
|
+
outline: "none",
|
|
9675
|
+
color: "text.brand",
|
|
9676
|
+
_hover: {
|
|
9677
|
+
outline: "none",
|
|
9678
|
+
backgroundColor: "surface.brand.hover",
|
|
9679
|
+
_active: {
|
|
9680
|
+
backgroundColor: "surface.brand.active"
|
|
9681
|
+
}
|
|
9682
|
+
}
|
|
9683
|
+
},
|
|
9684
|
+
_focusVisible: {
|
|
9685
|
+
outline: "2px solid",
|
|
9686
|
+
outlineColor: "outline.focus",
|
|
9687
|
+
outlineOffset: "1px"
|
|
9688
|
+
},
|
|
9689
|
+
_disabled: {
|
|
9690
|
+
pointerEvents: "none",
|
|
9691
|
+
boxShadow: "none",
|
|
9692
|
+
backgroundColor: "surface.disabled",
|
|
9693
|
+
color: "text.disabled",
|
|
9694
|
+
outline: "none",
|
|
9695
|
+
_hover: {
|
|
9696
|
+
backgroundColor: "surface.disabled",
|
|
9697
|
+
boxShadow: "none",
|
|
9698
|
+
color: "text.disabled"
|
|
9699
|
+
},
|
|
9700
|
+
_checked: {
|
|
9701
|
+
cursor: "not-allowed",
|
|
9702
|
+
boxShadow: "none",
|
|
9703
|
+
color: "text.disabled",
|
|
9704
|
+
backgroundColor: "surface.disabled",
|
|
9705
|
+
_hover: {
|
|
9706
|
+
backgroundColor: "surface.disabled",
|
|
9707
|
+
boxShadow: "none",
|
|
9708
|
+
color: "text.disabled"
|
|
9709
|
+
}
|
|
9710
|
+
}
|
|
9711
|
+
}
|
|
9712
|
+
},
|
|
9713
|
+
label: {
|
|
9714
|
+
display: "flex",
|
|
9715
|
+
alignItems: "center",
|
|
9716
|
+
gap: "1"
|
|
9717
|
+
}
|
|
9718
|
+
},
|
|
9719
|
+
variants: {
|
|
9720
|
+
size: {
|
|
9721
|
+
xs: {
|
|
9722
|
+
root: {
|
|
9723
|
+
_checked: {
|
|
9724
|
+
borderRadius: "0.563rem"
|
|
9725
|
+
},
|
|
9726
|
+
height: 5,
|
|
9727
|
+
paddingX: 1.5
|
|
9728
|
+
},
|
|
9729
|
+
label: {
|
|
9730
|
+
fontSize: { base: "mobile.sm", sm: "desktop.sm" },
|
|
9731
|
+
fontWeight: "medium"
|
|
9732
|
+
}
|
|
9733
|
+
},
|
|
9734
|
+
sm: {
|
|
9735
|
+
root: {
|
|
9736
|
+
_checked: {
|
|
9737
|
+
borderRadius: "sm"
|
|
9738
|
+
},
|
|
9739
|
+
height: 6,
|
|
9740
|
+
paddingX: 2
|
|
9741
|
+
},
|
|
9742
|
+
label: {
|
|
9743
|
+
fontSize: { base: "mobile.sm", sm: "desktop.sm" },
|
|
9744
|
+
fontWeight: "bold"
|
|
9745
|
+
}
|
|
9746
|
+
},
|
|
9747
|
+
md: {
|
|
9748
|
+
root: {
|
|
9749
|
+
_checked: {
|
|
9750
|
+
borderRadius: "sm"
|
|
9751
|
+
},
|
|
9752
|
+
height: 7,
|
|
9753
|
+
paddingX: 2
|
|
9754
|
+
},
|
|
9755
|
+
label: {
|
|
9756
|
+
fontSize: { base: "mobile.md", sm: "desktop.md" },
|
|
9757
|
+
fontWeight: "bold"
|
|
9758
|
+
}
|
|
9759
|
+
},
|
|
9760
|
+
lg: {
|
|
9761
|
+
root: {
|
|
9762
|
+
_checked: {
|
|
9763
|
+
borderRadius: "md"
|
|
9764
|
+
},
|
|
9765
|
+
height: 8,
|
|
9766
|
+
paddingX: 3
|
|
9767
|
+
},
|
|
9768
|
+
label: {
|
|
9769
|
+
fontSize: { base: "mobile.md", sm: "desktop.md" },
|
|
9770
|
+
fontWeight: "bold"
|
|
9771
|
+
}
|
|
9772
|
+
}
|
|
9773
|
+
},
|
|
9774
|
+
variant: {
|
|
9775
|
+
core: {
|
|
9776
|
+
root: {
|
|
9777
|
+
color: "text.core",
|
|
9778
|
+
outlineColor: "outline.core",
|
|
9779
|
+
_hover: {
|
|
9780
|
+
outline: "2px solid",
|
|
9781
|
+
outlineColor: "outline.core.hover",
|
|
9782
|
+
_active: {
|
|
9783
|
+
outline: "1px solid",
|
|
9784
|
+
outlineColor: "outline.core",
|
|
9785
|
+
backgroundColor: "surface.core.active"
|
|
9786
|
+
}
|
|
9787
|
+
}
|
|
9788
|
+
}
|
|
9789
|
+
},
|
|
9790
|
+
accent: {
|
|
9791
|
+
root: {
|
|
9792
|
+
backgroundColor: "surface.accent",
|
|
9793
|
+
color: "text.accent",
|
|
9794
|
+
outline: "none",
|
|
9795
|
+
_hover: {
|
|
9796
|
+
backgroundColor: "surface.accent.hover",
|
|
9797
|
+
_active: {
|
|
9798
|
+
backgroundColor: "surface.accent.active"
|
|
9799
|
+
}
|
|
9800
|
+
}
|
|
9801
|
+
}
|
|
9802
|
+
},
|
|
9803
|
+
floating: {
|
|
9804
|
+
root: {
|
|
9805
|
+
backgroundColor: "surface.floating",
|
|
9806
|
+
outline: "1px solid",
|
|
9807
|
+
outlineColor: "outline.floating",
|
|
9808
|
+
color: "text.floating",
|
|
9809
|
+
boxShadow: "sm",
|
|
9810
|
+
_hover: {
|
|
9811
|
+
backgroundColor: "surface.floating.hover",
|
|
9812
|
+
outline: "1px solid",
|
|
9813
|
+
outlineColor: "outline.floating.hover",
|
|
9814
|
+
_active: {
|
|
9815
|
+
backgroundColor: "surface.floating.active",
|
|
9816
|
+
outline: "1px solid",
|
|
9817
|
+
outlineColor: "outline.floating"
|
|
9818
|
+
}
|
|
9819
|
+
}
|
|
9820
|
+
}
|
|
9821
|
+
}
|
|
9822
|
+
},
|
|
9823
|
+
chipType: {
|
|
9824
|
+
icon: {},
|
|
9825
|
+
choice: {},
|
|
9826
|
+
filter: {}
|
|
9827
|
+
}
|
|
9828
|
+
},
|
|
9829
|
+
defaultVariants: {
|
|
9830
|
+
size: "sm",
|
|
9831
|
+
variant: "core",
|
|
9832
|
+
chipType: "choice"
|
|
9833
|
+
}
|
|
9834
|
+
});
|
|
9494
9835
|
var floatingActionButtonSlotRecipe = defineSlotRecipe({
|
|
9495
9836
|
slots: floatingActionButtonAnatomy.keys(),
|
|
9496
9837
|
className: "spor-floating-action-button",
|
|
@@ -10506,17 +10847,18 @@ var numericStepperRecipe = defineSlotRecipe({
|
|
|
10506
10847
|
"& > div": {
|
|
10507
10848
|
display: "flex",
|
|
10508
10849
|
flexDirection: "row",
|
|
10509
|
-
alignItems: "center"
|
|
10850
|
+
alignItems: "center",
|
|
10851
|
+
gap: 1
|
|
10510
10852
|
}
|
|
10511
10853
|
},
|
|
10512
10854
|
input: {
|
|
10513
10855
|
fontSize: "sm",
|
|
10514
10856
|
fontWeight: "bold",
|
|
10515
|
-
marginX: 0.5,
|
|
10516
10857
|
padding: 0,
|
|
10517
10858
|
paddingX: 0.5,
|
|
10518
10859
|
borderRadius: "xs",
|
|
10519
|
-
outline: "
|
|
10860
|
+
outline: "1px solid",
|
|
10861
|
+
outlineColor: "outline.core",
|
|
10520
10862
|
height: "auto",
|
|
10521
10863
|
textAlign: "center",
|
|
10522
10864
|
transitionProperty: "common",
|
|
@@ -11803,11 +12145,12 @@ var slotRecipes = {
|
|
|
11803
12145
|
tabs: tabsSlotRecipe,
|
|
11804
12146
|
travelTag: travelTagSlotRecipe,
|
|
11805
12147
|
toast: toastSlotRecipe,
|
|
11806
|
-
checkboxCard:
|
|
12148
|
+
checkboxCard: filterChipSlotRecipe,
|
|
11807
12149
|
collapsible: collapsibleSlotRecipe,
|
|
11808
12150
|
tooltip: popoverSlotRecipe,
|
|
11809
12151
|
tag: inputChipSlotRecipe,
|
|
11810
|
-
menu: menuSlotRecipe
|
|
12152
|
+
menu: menuSlotRecipe,
|
|
12153
|
+
choiceChip: choiceChipSlotRecipe
|
|
11811
12154
|
};
|
|
11812
12155
|
var animations = defineTokens.animations({
|
|
11813
12156
|
spin: {
|
|
@@ -12655,6 +12998,6 @@ var TooltipContent = ({
|
|
|
12655
12998
|
] }) }) });
|
|
12656
12999
|
};
|
|
12657
13000
|
|
|
12658
|
-
export { Accordion, AccordionItem, AccordionItemContent, AccordionItemTrigger, Alert, AttachedInputs, Autocomplete, AutocompleteItem, AutocompleteItemGroup, AutocompleteItemGroupLabel, Badge, Brand, Breadcrumb, Button, ButtonGroup, Calendar, CalendarCell, CalendarGrid, CalendarHeader, CalendarProvider, CardSelect, CardSelectContent, CardSelectTrigger, CargonetLogo, Checkbox, CheckboxGroup, ChoiceChip, Clipboard, ClipboardButton, CloseButton, CloseDrawerLine, Code, ColorInlineLoader, ColorModeButton, ColorModeIcon, ColorModeProvider, ColorSpinner, Combobox2 as Combobox, ContentLoader, DarkFullScreenLoader, DarkInlineLoader, DarkSpinner, DatePicker, DateRangePicker, DialogActionTrigger, DialogBackdrop, DialogBody, DialogCloseTrigger, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogRoot, DialogTitle, DialogTrigger, Drawer, DrawerActionTrigger, DrawerBackTrigger, DrawerBackdrop, DrawerBody, DrawerCloseTrigger, DrawerContent, DrawerFooter, DrawerFullScreenHeader, DrawerHeader, DrawerTitle, DrawerTrigger, Expandable, ExpandableAlert, ExpandableItem, Field3 as Field, FieldErrorText, FieldLabel, Fieldset, FieldsetContent, FieldsetErrorText, FieldsetHelperText, FieldsetLegend, FloatingActionButton, Heading, IconButton, InfoTag, Input, InputChip, ItemDescription, ItemLabel, JumpButton, Language, LanguageProvider, LightFullScreenLoader, LightInlineLoader, LightSpinner, LineIcon, List, ListBox, ListIndicator, ListItem2 as ListItem, Menu, MenuCheckboxItem, MenuContent, MenuItem, MenuItemGroup, MenuRadioItem, MenuRadioItemGroup, MenuSeparator, MenuTrigger, MenuTriggerItem, NativeSelect, Nudge, NudgeActions, NudgeCloseTrigger, NudgeContent, NudgeTrigger, NudgeWizardStep, NumericStepper, Pagination, PaginationEllipsis, PaginationItem, PaginationItems, PaginationNextTrigger, PaginationPrevTrigger, PasswordInput, PhoneNumberInput, PlayPauseButton, Popover2 as Popover, PopoverContent, PopoverTrigger, PressableCard, ProgressBar, ProgressIndicator, ProgressLoader, Radio, RadioCard, RadioCardGroup, RadioCardLabel, RadioGroup, RangeCalendar, ScrollCalendar, SearchInput, Select, SelectContent, SelectItem, SelectItemGroup, SelectItemText, SelectLabel, SelectRoot, SelectTrigger, SelectValueText, Separator, ServiceAlert, Skeleton, SkeletonCircle, SkeletonText, SkipButton, SporProvider, StaticCard, Stepper, StepperStep, SvgBox, Switch, Table, TableBody, TableColumnHeader, Tabs, TabsContent, TabsIndicator, TabsList, TabsTrigger, Text3 as Text, TextLink, Textarea, TimePicker, Tooltip, TooltipContent, TooltipTrigger, TravelTag, VyLogo, VyLogoPride, createTexts, createToast, fontFaces, slugify, system, themes, useCalendar, useColorMode, useColorModeValue, useMenuContext, useTableSort, useTranslation };
|
|
13001
|
+
export { Accordion, AccordionItem, AccordionItemContent, AccordionItemTrigger, Alert, AttachedInputs, Autocomplete, AutocompleteItem, AutocompleteItemGroup, AutocompleteItemGroupLabel, Badge, Brand, Breadcrumb, Button, ButtonGroup, Calendar, CalendarCell, CalendarGrid, CalendarHeader, CalendarProvider, CardSelect, CardSelectContent, CardSelectTrigger, CargonetLogo, Checkbox, CheckboxGroup, ChoiceChip, ChoiceChipGroup, ChoiceChipLabel, Clipboard, ClipboardButton, CloseButton, CloseDrawerLine, Code, ColorInlineLoader, ColorModeButton, ColorModeIcon, ColorModeProvider, ColorSpinner, Combobox2 as Combobox, ContentLoader, DarkFullScreenLoader, DarkInlineLoader, DarkSpinner, DatePicker, DateRangePicker, DialogActionTrigger, DialogBackdrop, DialogBody, DialogCloseTrigger, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogRoot, DialogTitle, DialogTrigger, Drawer, DrawerActionTrigger, DrawerBackTrigger, DrawerBackdrop, DrawerBody, DrawerCloseTrigger, DrawerContent, DrawerFooter, DrawerFullScreenHeader, DrawerHeader, DrawerTitle, DrawerTrigger, Expandable, ExpandableAlert, ExpandableItem, Field3 as Field, FieldErrorText, FieldLabel, Fieldset, FieldsetContent, FieldsetErrorText, FieldsetHelperText, FieldsetLegend, FilterChip, FloatingActionButton, Heading, IconButton, InfoTag, Input, InputChip, ItemDescription, ItemLabel, JumpButton, Language, LanguageProvider, LightFullScreenLoader, LightInlineLoader, LightSpinner, LineIcon, List, ListBox, ListIndicator, ListItem2 as ListItem, Menu, MenuCheckboxItem, MenuContent, MenuItem, MenuItemGroup, MenuRadioItem, MenuRadioItemGroup, MenuSeparator, MenuTrigger, MenuTriggerItem, NativeSelect, Nudge, NudgeActions, NudgeCloseTrigger, NudgeContent, NudgeTrigger, NudgeWizardStep, NumericStepper, Pagination, PaginationEllipsis, PaginationItem, PaginationItems, PaginationNextTrigger, PaginationPrevTrigger, PasswordInput, PhoneNumberInput, PlayPauseButton, Popover2 as Popover, PopoverContent, PopoverTrigger, PressableCard, ProgressBar, ProgressIndicator, ProgressLoader, Radio, RadioCard, RadioCardGroup, RadioCardLabel, RadioGroup, RangeCalendar, ScrollCalendar, SearchInput, Select, SelectContent, SelectItem, SelectItemGroup, SelectItemText, SelectLabel, SelectRoot, SelectTrigger, SelectValueText, Separator, ServiceAlert, Skeleton, SkeletonCircle, SkeletonText, SkipButton, SporProvider, StaticCard, Stepper, StepperStep, SvgBox, Switch, Table, TableBody, TableColumnHeader, Tabs, TabsContent, TabsIndicator, TabsList, TabsTrigger, Text3 as Text, TextLink, Textarea, TimePicker, Tooltip, TooltipContent, TooltipTrigger, TravelTag, VyLogo, VyLogoPride, createTexts, createToast, fontFaces, slugify, system, themes, useCalendar, useColorMode, useColorModeValue, useMenuContext, useTableSort, useTranslation };
|
|
12659
13002
|
//# sourceMappingURL=out.js.map
|
|
12660
13003
|
//# sourceMappingURL=index.mjs.map
|