@norges-domstoler/dds-components 21.17.1 → 21.17.2
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/dist/index.js +115 -105
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +107 -97
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -3275,8 +3275,8 @@ function useTranslation() {
|
|
|
3275
3275
|
const t = (text) => text[lang];
|
|
3276
3276
|
return { t, lang };
|
|
3277
3277
|
}
|
|
3278
|
-
function createTexts(
|
|
3279
|
-
return
|
|
3278
|
+
function createTexts(texts28) {
|
|
3279
|
+
return texts28;
|
|
3280
3280
|
}
|
|
3281
3281
|
|
|
3282
3282
|
// src/DdsProvider/DdsProvider.tsx
|
|
@@ -4245,6 +4245,8 @@ var Button = ({
|
|
|
4245
4245
|
...rest
|
|
4246
4246
|
}) => {
|
|
4247
4247
|
const { purpose: groupPurpose, size: groupSize } = useButtonGroupContext();
|
|
4248
|
+
const { t } = useTranslation();
|
|
4249
|
+
const spinnerTooltip = loadingTooltip != null ? loadingTooltip : t(texts2.saving);
|
|
4248
4250
|
const hasLabel = !!children;
|
|
4249
4251
|
const hasIcon = !!icon;
|
|
4250
4252
|
const hasLabelAndIcon = hasIcon && hasLabel;
|
|
@@ -4285,7 +4287,7 @@ var Button = ({
|
|
|
4285
4287
|
{
|
|
4286
4288
|
size: "1em",
|
|
4287
4289
|
color: purpose === "primary" || purpose === "danger" ? "iconOnAction" : "iconDefault",
|
|
4288
|
-
tooltip:
|
|
4290
|
+
tooltip: spinnerTooltip,
|
|
4289
4291
|
className: Button_default.icon
|
|
4290
4292
|
}
|
|
4291
4293
|
) })
|
|
@@ -4329,6 +4331,14 @@ var Button = ({
|
|
|
4329
4331
|
);
|
|
4330
4332
|
};
|
|
4331
4333
|
Button.displayName = "Button";
|
|
4334
|
+
var texts2 = createTexts({
|
|
4335
|
+
saving: {
|
|
4336
|
+
no: "Lagring p\xE5g\xE5r",
|
|
4337
|
+
nb: "Lagring p\xE5g\xE5r",
|
|
4338
|
+
nn: "Lagring p\xE5g\xE5r",
|
|
4339
|
+
en: "Saving"
|
|
4340
|
+
}
|
|
4341
|
+
});
|
|
4332
4342
|
|
|
4333
4343
|
// src/components/OverflowMenu/OverflowMenu.tsx
|
|
4334
4344
|
var import_react21 = require("react");
|
|
@@ -4796,7 +4806,7 @@ var Breadcrumbs = ({
|
|
|
4796
4806
|
size: "xsmall",
|
|
4797
4807
|
icon: MoreHorizontalIcon,
|
|
4798
4808
|
purpose: "tertiary",
|
|
4799
|
-
"aria-label": bChildrenTruncated.length > 1 ? t(
|
|
4809
|
+
"aria-label": bChildrenTruncated.length > 1 ? t(texts3.showHiddenTo(bChildren.length - 1)) : t(texts3.showHidden)
|
|
4800
4810
|
}
|
|
4801
4811
|
),
|
|
4802
4812
|
/* @__PURE__ */ (0, import_jsx_runtime205.jsx)(OverflowMenu, { children: /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(OverflowMenuList, { children: bChildrenTruncated }) })
|
|
@@ -4818,7 +4828,7 @@ var Breadcrumbs = ({
|
|
|
4818
4828
|
"nav",
|
|
4819
4829
|
{
|
|
4820
4830
|
...getBaseHTMLProps(id, className, htmlProps, rest),
|
|
4821
|
-
"aria-label": t(
|
|
4831
|
+
"aria-label": t(texts3.breadcrumbs),
|
|
4822
4832
|
children: [
|
|
4823
4833
|
/* @__PURE__ */ (0, import_jsx_runtime205.jsx)(
|
|
4824
4834
|
HStack,
|
|
@@ -4834,7 +4844,7 @@ var Breadcrumbs = ({
|
|
|
4834
4844
|
);
|
|
4835
4845
|
};
|
|
4836
4846
|
Breadcrumbs.displayName = "Breadcrumbs";
|
|
4837
|
-
var
|
|
4847
|
+
var texts3 = createTexts({
|
|
4838
4848
|
breadcrumbs: {
|
|
4839
4849
|
nb: "Br\xF8dsmulesti",
|
|
4840
4850
|
no: "Br\xF8dsmulesti",
|
|
@@ -5817,7 +5827,7 @@ var Chip = ({
|
|
|
5817
5827
|
icon: CloseSmallIcon,
|
|
5818
5828
|
purpose: "tertiary",
|
|
5819
5829
|
onClick,
|
|
5820
|
-
"aria-label": ariaLabel != null ? ariaLabel : t(
|
|
5830
|
+
"aria-label": ariaLabel != null ? ariaLabel : t(texts4.removeChip) + (text ? ` ${text}` : "")
|
|
5821
5831
|
}
|
|
5822
5832
|
)
|
|
5823
5833
|
]
|
|
@@ -5825,7 +5835,7 @@ var Chip = ({
|
|
|
5825
5835
|
) : null;
|
|
5826
5836
|
};
|
|
5827
5837
|
Chip.displayName = "Chip";
|
|
5828
|
-
var
|
|
5838
|
+
var texts4 = createTexts({
|
|
5829
5839
|
removeChip: {
|
|
5830
5840
|
nb: "Fjern merkelapp",
|
|
5831
5841
|
no: "Fjern merkelapp",
|
|
@@ -5952,7 +5962,7 @@ function CookieBanner({
|
|
|
5952
5962
|
{
|
|
5953
5963
|
as: Button,
|
|
5954
5964
|
showBelow: collapsedBreakpoint,
|
|
5955
|
-
"aria-label": t(
|
|
5965
|
+
"aria-label": t(texts5.expandConsent),
|
|
5956
5966
|
purpose: "tertiary",
|
|
5957
5967
|
icon: ExpandIcon,
|
|
5958
5968
|
onClick: () => setIsCollapsedOnBreakpoint(false),
|
|
@@ -5986,7 +5996,7 @@ function CookieBanner({
|
|
|
5986
5996
|
);
|
|
5987
5997
|
}
|
|
5988
5998
|
CookieBanner.displayName = "CookieBanner";
|
|
5989
|
-
var
|
|
5999
|
+
var texts5 = createTexts({
|
|
5990
6000
|
expandConsent: {
|
|
5991
6001
|
nb: "Utvid samtykke for bruk av informasjonskapsler",
|
|
5992
6002
|
no: "Utvid samtykke for bruk av informasjonskapsler",
|
|
@@ -5998,14 +6008,14 @@ var texts4 = createTexts({
|
|
|
5998
6008
|
// src/components/date-inputs/DatePicker/Calendar/Calendar.tsx
|
|
5999
6009
|
var import_date4 = require("@internationalized/date");
|
|
6000
6010
|
var import_calendar3 = require("@react-aria/calendar");
|
|
6001
|
-
var
|
|
6011
|
+
var import_i18n11 = require("@react-aria/i18n");
|
|
6002
6012
|
var import_calendar4 = require("@react-stately/calendar");
|
|
6003
6013
|
var import_react41 = require("react");
|
|
6004
6014
|
|
|
6005
6015
|
// src/components/date-inputs/DatePicker/Calendar/CalendarGrid.tsx
|
|
6006
6016
|
var import_date3 = require("@internationalized/date");
|
|
6007
6017
|
var import_calendar2 = require("@react-aria/calendar");
|
|
6008
|
-
var
|
|
6018
|
+
var import_i18n9 = require("@react-aria/i18n");
|
|
6009
6019
|
var import_react40 = require("react");
|
|
6010
6020
|
|
|
6011
6021
|
// src/components/date-inputs/DatePicker/Calendar/CalendarCell.tsx
|
|
@@ -6286,20 +6296,20 @@ var CalendarPopoverContent = ({
|
|
|
6286
6296
|
var import_jsx_runtime227 = require("react/jsx-runtime");
|
|
6287
6297
|
function CalendarGrid({ state, ...props }) {
|
|
6288
6298
|
const { t } = useTranslation();
|
|
6289
|
-
const { locale } = (0,
|
|
6299
|
+
const { locale } = (0, import_i18n9.useLocale)();
|
|
6290
6300
|
const {
|
|
6291
6301
|
gridProps: { onKeyDown, ...gridProps },
|
|
6292
6302
|
headerProps
|
|
6293
6303
|
} = (0, import_calendar2.useCalendarGrid)(props, state);
|
|
6294
6304
|
const weeksInMonth = (0, import_date3.getWeeksInMonth)(state.visibleRange.start, locale);
|
|
6295
6305
|
const weekDays = [
|
|
6296
|
-
{ short: t(
|
|
6297
|
-
{ short: t(
|
|
6298
|
-
{ short: t(
|
|
6299
|
-
{ short: t(
|
|
6300
|
-
{ short: t(
|
|
6301
|
-
{ short: t(
|
|
6302
|
-
{ short: t(
|
|
6306
|
+
{ short: t(texts6.mo), full: t(texts6.monday) },
|
|
6307
|
+
{ short: t(texts6.tu), full: t(texts6.tuesday) },
|
|
6308
|
+
{ short: t(texts6.we), full: t(texts6.wednesday) },
|
|
6309
|
+
{ short: t(texts6.th), full: t(texts6.thursday) },
|
|
6310
|
+
{ short: t(texts6.fr), full: t(texts6.friday) },
|
|
6311
|
+
{ short: t(texts6.sa), full: t(texts6.saturday) },
|
|
6312
|
+
{ short: t(texts6.su), full: t(texts6.sunday) }
|
|
6303
6313
|
];
|
|
6304
6314
|
const { showWeekNumbers, onClose } = (0, import_react40.useContext)(CalendarPopoverContext);
|
|
6305
6315
|
const typographyCn = [
|
|
@@ -6325,7 +6335,7 @@ function CalendarGrid({ state, ...props }) {
|
|
|
6325
6335
|
className: cn(DateInput_default["calendar__grid-element"], ...typographyCn),
|
|
6326
6336
|
children: [
|
|
6327
6337
|
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)("span", { "aria-hidden": true, children: "#" }),
|
|
6328
|
-
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)(VisuallyHidden, { children: t(
|
|
6338
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)(VisuallyHidden, { children: t(texts6.weekNumber) })
|
|
6329
6339
|
]
|
|
6330
6340
|
}
|
|
6331
6341
|
),
|
|
@@ -6368,7 +6378,7 @@ function CalendarGrid({ state, ...props }) {
|
|
|
6368
6378
|
);
|
|
6369
6379
|
}
|
|
6370
6380
|
CalendarGrid.displayName = "CalendarGrid";
|
|
6371
|
-
var
|
|
6381
|
+
var texts6 = createTexts({
|
|
6372
6382
|
weekNumber: {
|
|
6373
6383
|
nb: "Ukenummer",
|
|
6374
6384
|
no: "Ukenummer",
|
|
@@ -6473,7 +6483,7 @@ function createCalendar(identifier) {
|
|
|
6473
6483
|
}
|
|
6474
6484
|
function Calendar(props) {
|
|
6475
6485
|
const { t } = useTranslation();
|
|
6476
|
-
const { locale } = (0,
|
|
6486
|
+
const { locale } = (0, import_i18n11.useLocale)();
|
|
6477
6487
|
const state = (0, import_calendar4.useCalendarState)({
|
|
6478
6488
|
...props,
|
|
6479
6489
|
createCalendar,
|
|
@@ -6500,7 +6510,7 @@ function Calendar(props) {
|
|
|
6500
6510
|
Button,
|
|
6501
6511
|
{
|
|
6502
6512
|
type: "button",
|
|
6503
|
-
"aria-label": t(
|
|
6513
|
+
"aria-label": t(texts7.previousMonth),
|
|
6504
6514
|
onClick: (e) => onPrev == null ? void 0 : onPrev(e),
|
|
6505
6515
|
size: "small",
|
|
6506
6516
|
purpose: "tertiary",
|
|
@@ -6522,7 +6532,7 @@ function Calendar(props) {
|
|
|
6522
6532
|
Button,
|
|
6523
6533
|
{
|
|
6524
6534
|
type: "button",
|
|
6525
|
-
"aria-label": t(
|
|
6535
|
+
"aria-label": t(texts7.nextMonth),
|
|
6526
6536
|
onClick: (e) => onNext == null ? void 0 : onNext(e),
|
|
6527
6537
|
size: "small",
|
|
6528
6538
|
purpose: "tertiary",
|
|
@@ -6535,7 +6545,7 @@ function Calendar(props) {
|
|
|
6535
6545
|
] });
|
|
6536
6546
|
}
|
|
6537
6547
|
Calendar.displayName = "Calendar";
|
|
6538
|
-
var
|
|
6548
|
+
var texts7 = createTexts({
|
|
6539
6549
|
nextMonth: {
|
|
6540
6550
|
nb: "Neste m\xE5ned",
|
|
6541
6551
|
no: "Neste m\xE5ned",
|
|
@@ -6552,14 +6562,14 @@ var texts6 = createTexts({
|
|
|
6552
6562
|
|
|
6553
6563
|
// src/components/date-inputs/DatePicker/DatePicker.tsx
|
|
6554
6564
|
var import_datepicker4 = require("@react-aria/datepicker");
|
|
6555
|
-
var
|
|
6565
|
+
var import_i18n15 = require("@react-aria/i18n");
|
|
6556
6566
|
var import_datepicker5 = require("@react-stately/datepicker");
|
|
6557
6567
|
var import_react47 = require("react");
|
|
6558
6568
|
|
|
6559
6569
|
// src/components/date-inputs/DatePicker/DateField/DateField.tsx
|
|
6560
6570
|
var import_date5 = require("@internationalized/date");
|
|
6561
6571
|
var import_datepicker2 = require("@react-aria/datepicker");
|
|
6562
|
-
var
|
|
6572
|
+
var import_i18n13 = require("@react-aria/i18n");
|
|
6563
6573
|
var import_datepicker3 = require("@react-stately/datepicker");
|
|
6564
6574
|
var import_react45 = require("react");
|
|
6565
6575
|
|
|
@@ -6900,7 +6910,7 @@ function DateField({
|
|
|
6900
6910
|
clearable,
|
|
6901
6911
|
...props
|
|
6902
6912
|
}) {
|
|
6903
|
-
const { locale } = (0,
|
|
6913
|
+
const { locale } = (0, import_i18n13.useLocale)();
|
|
6904
6914
|
const { t } = useTranslation();
|
|
6905
6915
|
const state = (0, import_datepicker3.useDateFieldState)({
|
|
6906
6916
|
...props,
|
|
@@ -6946,7 +6956,7 @@ function DateField({
|
|
|
6946
6956
|
ClearButton,
|
|
6947
6957
|
{
|
|
6948
6958
|
absolute: false,
|
|
6949
|
-
"aria-label": t(
|
|
6959
|
+
"aria-label": t(texts8.clearDate),
|
|
6950
6960
|
"aria-hidden": !hasValue,
|
|
6951
6961
|
className: cn(
|
|
6952
6962
|
DateInput_default["clear-button"],
|
|
@@ -6972,7 +6982,7 @@ function DateField({
|
|
|
6972
6982
|
);
|
|
6973
6983
|
}
|
|
6974
6984
|
DateField.displayName = "DateField";
|
|
6975
|
-
var
|
|
6985
|
+
var texts8 = createTexts({
|
|
6976
6986
|
clearDate: {
|
|
6977
6987
|
en: "Clear date",
|
|
6978
6988
|
nb: "T\xF8m dato",
|
|
@@ -7032,7 +7042,7 @@ function DatePicker({
|
|
|
7032
7042
|
state,
|
|
7033
7043
|
internalRef
|
|
7034
7044
|
);
|
|
7035
|
-
return /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(
|
|
7045
|
+
return /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(import_i18n15.I18nProvider, { locale: LOCALE[lang], children: /* @__PURE__ */ (0, import_jsx_runtime237.jsxs)(
|
|
7036
7046
|
CalendarPopover,
|
|
7037
7047
|
{
|
|
7038
7048
|
isOpen: state.isOpen,
|
|
@@ -7688,7 +7698,7 @@ var FavStar = ({
|
|
|
7688
7698
|
checked,
|
|
7689
7699
|
onChange: (e) => setChecked(e.target.checked),
|
|
7690
7700
|
type: "checkbox",
|
|
7691
|
-
"aria-label": (_a = props["aria-label"]) != null ? _a : t(
|
|
7701
|
+
"aria-label": (_a = props["aria-label"]) != null ? _a : t(texts9.favourite)
|
|
7692
7702
|
}
|
|
7693
7703
|
),
|
|
7694
7704
|
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)(Icon, { iconSize: size2, icon: StarIcon, className: FavStar_default.icon }),
|
|
@@ -7705,12 +7715,12 @@ var FavStar = ({
|
|
|
7705
7715
|
);
|
|
7706
7716
|
};
|
|
7707
7717
|
FavStar.displayName = "FavStar";
|
|
7708
|
-
var
|
|
7718
|
+
var texts9 = createTexts({
|
|
7709
7719
|
favourite: {
|
|
7710
|
-
nb: "
|
|
7711
|
-
no: "
|
|
7712
|
-
nn: "
|
|
7713
|
-
en: "
|
|
7720
|
+
nb: "Stjernemarker",
|
|
7721
|
+
no: "Stjernemarker",
|
|
7722
|
+
nn: "Stjernemerk",
|
|
7723
|
+
en: "Mark as favourite"
|
|
7714
7724
|
}
|
|
7715
7725
|
});
|
|
7716
7726
|
|
|
@@ -7765,7 +7775,7 @@ function CharCounter(props) {
|
|
|
7765
7775
|
"/",
|
|
7766
7776
|
max
|
|
7767
7777
|
] }),
|
|
7768
|
-
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)(VisuallyHidden, { children: t(
|
|
7778
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)(VisuallyHidden, { children: t(texts10.charsWritten(current, max, max - current)) })
|
|
7769
7779
|
]
|
|
7770
7780
|
}
|
|
7771
7781
|
);
|
|
@@ -7774,7 +7784,7 @@ var renderCharCounter = (id, isShown, textLength, maxLength) => {
|
|
|
7774
7784
|
if (!!maxLength && Number.isInteger(maxLength) && maxLength > 0 && isShown)
|
|
7775
7785
|
return /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(CharCounter, { id, max: maxLength, current: textLength });
|
|
7776
7786
|
};
|
|
7777
|
-
var
|
|
7787
|
+
var texts10 = createTexts({
|
|
7778
7788
|
charsWritten: (current, max, remain) => ({
|
|
7779
7789
|
nb: `${current} av ${max} tegn skrevet. ${remain} igjen.`,
|
|
7780
7790
|
no: `${current} av ${max} tegn skrevet. ${remain} igjen.`,
|
|
@@ -7938,12 +7948,12 @@ var CommentComponent = ({
|
|
|
7938
7948
|
size: "small",
|
|
7939
7949
|
onClick: handleSubmit,
|
|
7940
7950
|
loading,
|
|
7941
|
-
children: t(
|
|
7951
|
+
children: t(texts11.send)
|
|
7942
7952
|
}
|
|
7943
7953
|
)
|
|
7944
7954
|
] });
|
|
7945
7955
|
};
|
|
7946
|
-
var
|
|
7956
|
+
var texts11 = createTexts({
|
|
7947
7957
|
send: {
|
|
7948
7958
|
nb: "Send inn",
|
|
7949
7959
|
no: "Send inn",
|
|
@@ -8144,7 +8154,7 @@ var RatingComponent = ({
|
|
|
8144
8154
|
),
|
|
8145
8155
|
children: [
|
|
8146
8156
|
/* @__PURE__ */ (0, import_jsx_runtime255.jsx)("h2", { className: typographyStyles_default["label-medium"], children: ratingLabel }),
|
|
8147
|
-
loading ? /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(Spinner, { tooltip: t(
|
|
8157
|
+
loading ? /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(Spinner, { tooltip: t(texts12.uploadingFeedback) }) : /* @__PURE__ */ (0, import_jsx_runtime255.jsxs)(HStack, { gap: "x1", children: [
|
|
8148
8158
|
/* @__PURE__ */ (0, import_jsx_runtime255.jsx)(Tooltip, { text: thumbUpTooltip, children: button("positive", layout, thumbUpTooltip) }),
|
|
8149
8159
|
/* @__PURE__ */ (0, import_jsx_runtime255.jsx)(Tooltip, { text: thumbDownTooltip, children: /* @__PURE__ */ (0, import_jsx_runtime255.jsx)("div", { children: button("negative", layout, thumbDownTooltip) }) })
|
|
8150
8160
|
] })
|
|
@@ -8152,7 +8162,7 @@ var RatingComponent = ({
|
|
|
8152
8162
|
}
|
|
8153
8163
|
);
|
|
8154
8164
|
};
|
|
8155
|
-
var
|
|
8165
|
+
var texts12 = createTexts({
|
|
8156
8166
|
uploadingFeedback: {
|
|
8157
8167
|
nb: "Laster opp tilbakemelding...",
|
|
8158
8168
|
no: "Laster opp tilbakemelding...",
|
|
@@ -8186,14 +8196,14 @@ var Feedback = ({
|
|
|
8186
8196
|
const [rating, setRating] = (0, import_react57.useState)(null);
|
|
8187
8197
|
const [feedbackText, setFeedbackText] = (0, import_react57.useState)();
|
|
8188
8198
|
const [isFeedbackSubmitted, setIsFeedbackSubmitted] = (0, import_react57.useState)(false);
|
|
8189
|
-
const tRatingLabel = ratingLabel != null ? ratingLabel : t(
|
|
8190
|
-
const tPositiveFeedbackLabel = positiveFeedbackLabel != null ? positiveFeedbackLabel : t(
|
|
8191
|
-
const tNegativeFeedbackLabel = negativeFeedbackLabel != null ? negativeFeedbackLabel : t(
|
|
8192
|
-
const tRatingSubmittedTitle = ratingSubmittedTitle != null ? ratingSubmittedTitle : t(
|
|
8193
|
-
const tSubmittedTitle = submittedTitle != null ? submittedTitle : t(
|
|
8194
|
-
const tTextAreaTip = textAreaTip != null ? textAreaTip : t(
|
|
8195
|
-
const tThumbUpTooltip = thumbUpTooltip != null ? thumbUpTooltip : t(
|
|
8196
|
-
const tThumbDownTooltip = thumbDownTooltip != null ? thumbDownTooltip : t(
|
|
8199
|
+
const tRatingLabel = ratingLabel != null ? ratingLabel : t(texts13.ratingQuestion);
|
|
8200
|
+
const tPositiveFeedbackLabel = positiveFeedbackLabel != null ? positiveFeedbackLabel : t(texts13.improvalQuestion);
|
|
8201
|
+
const tNegativeFeedbackLabel = negativeFeedbackLabel != null ? negativeFeedbackLabel : t(texts13.improvalQuestion);
|
|
8202
|
+
const tRatingSubmittedTitle = ratingSubmittedTitle != null ? ratingSubmittedTitle : t(texts13.thanks);
|
|
8203
|
+
const tSubmittedTitle = submittedTitle != null ? submittedTitle : t(texts13.thanks);
|
|
8204
|
+
const tTextAreaTip = textAreaTip != null ? textAreaTip : t(texts13.sensitiveInfo);
|
|
8205
|
+
const tThumbUpTooltip = thumbUpTooltip != null ? thumbUpTooltip : t(texts13.good);
|
|
8206
|
+
const tThumbDownTooltip = thumbDownTooltip != null ? thumbDownTooltip : t(texts13.bad);
|
|
8197
8207
|
(0, import_react57.useEffect)(() => {
|
|
8198
8208
|
if (ratingProp !== void 0) setRating(ratingProp);
|
|
8199
8209
|
}, [ratingProp]);
|
|
@@ -8248,7 +8258,7 @@ var Feedback = ({
|
|
|
8248
8258
|
}
|
|
8249
8259
|
return /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(Paragraph, { children: tSubmittedTitle });
|
|
8250
8260
|
};
|
|
8251
|
-
var
|
|
8261
|
+
var texts13 = createTexts({
|
|
8252
8262
|
ratingQuestion: {
|
|
8253
8263
|
nb: "Hva syns du om tjenesten?",
|
|
8254
8264
|
no: "Hva syns du om tjenesten?",
|
|
@@ -8418,9 +8428,9 @@ var File = (props) => {
|
|
|
8418
8428
|
onClick: removeFile,
|
|
8419
8429
|
icon: CloseIcon,
|
|
8420
8430
|
htmlProps: {
|
|
8421
|
-
"aria-label": t(
|
|
8431
|
+
"aria-label": t(texts14.removeFile(stateFile.file.name)),
|
|
8422
8432
|
"aria-invalid": !isValid ? true : void 0,
|
|
8423
|
-
"aria-errormessage": !isValid ? t(
|
|
8433
|
+
"aria-errormessage": !isValid ? t(texts14.invalidFile) : void 0,
|
|
8424
8434
|
"aria-describedby": spaceSeparatedIdListGenerator(
|
|
8425
8435
|
errorsList.map((e) => e.id)
|
|
8426
8436
|
)
|
|
@@ -8434,7 +8444,7 @@ var File = (props) => {
|
|
|
8434
8444
|
/* @__PURE__ */ (0, import_jsx_runtime260.jsx)(ErrorList, { errors: errorsList })
|
|
8435
8445
|
] });
|
|
8436
8446
|
};
|
|
8437
|
-
var
|
|
8447
|
+
var texts14 = createTexts({
|
|
8438
8448
|
removeFile: (file) => ({
|
|
8439
8449
|
nb: `Fjern fil ${file}`,
|
|
8440
8450
|
no: `Fjern fil ${file}`,
|
|
@@ -8568,7 +8578,7 @@ var useFileUploader = (props) => {
|
|
|
8568
8578
|
isFileDialogActive: false,
|
|
8569
8579
|
isDragActive: false,
|
|
8570
8580
|
rootErrors: calcRootErrors(
|
|
8571
|
-
t(
|
|
8581
|
+
t(texts15.invalidFileAmount),
|
|
8572
8582
|
initialFileUploaderFiles,
|
|
8573
8583
|
maxFiles,
|
|
8574
8584
|
errorMessage
|
|
@@ -8581,7 +8591,7 @@ var useFileUploader = (props) => {
|
|
|
8581
8591
|
const accepted = isFileAccepted(file, accept);
|
|
8582
8592
|
return {
|
|
8583
8593
|
file,
|
|
8584
|
-
errors: accepted ? [] : [t(
|
|
8594
|
+
errors: accepted ? [] : [t(texts15.invalidFileType)]
|
|
8585
8595
|
};
|
|
8586
8596
|
});
|
|
8587
8597
|
dispatch({
|
|
@@ -8594,7 +8604,7 @@ var useFileUploader = (props) => {
|
|
|
8594
8604
|
dispatch({
|
|
8595
8605
|
type: "setRootErrors",
|
|
8596
8606
|
payload: calcRootErrors(
|
|
8597
|
-
t(
|
|
8607
|
+
t(texts15.invalidFileAmount),
|
|
8598
8608
|
stateFiles,
|
|
8599
8609
|
maxFiles,
|
|
8600
8610
|
errorMessage
|
|
@@ -8648,7 +8658,7 @@ var useFileUploader = (props) => {
|
|
|
8648
8658
|
const accepted = isFileAccepted(file, accept);
|
|
8649
8659
|
return {
|
|
8650
8660
|
file,
|
|
8651
|
-
errors: accepted ? [] : [t(
|
|
8661
|
+
errors: accepted ? [] : [t(texts15.invalidFileType)]
|
|
8652
8662
|
};
|
|
8653
8663
|
}).concat(stateFiles);
|
|
8654
8664
|
onChange(newFiles.map((f) => f.file));
|
|
@@ -8740,7 +8750,7 @@ var useFileUploader = (props) => {
|
|
|
8740
8750
|
removeFile
|
|
8741
8751
|
};
|
|
8742
8752
|
};
|
|
8743
|
-
var
|
|
8753
|
+
var texts15 = createTexts({
|
|
8744
8754
|
invalidFileType: {
|
|
8745
8755
|
nb: "Ugyldig filtype",
|
|
8746
8756
|
no: "Ugyldig filtype",
|
|
@@ -8782,7 +8792,7 @@ var FileUploader = (props) => {
|
|
|
8782
8792
|
...rest
|
|
8783
8793
|
} = props;
|
|
8784
8794
|
const { t } = useTranslation();
|
|
8785
|
-
const tDropAreaLabel = dropAreaLabel != null ? dropAreaLabel : t(
|
|
8795
|
+
const tDropAreaLabel = dropAreaLabel != null ? dropAreaLabel : t(texts16.dragAndDropOr);
|
|
8786
8796
|
const generatedId = (0, import_react59.useId)();
|
|
8787
8797
|
const uniqueId = id != null ? id : `${generatedId}-fileUploader`;
|
|
8788
8798
|
const {
|
|
@@ -8891,7 +8901,7 @@ var FileUploader = (props) => {
|
|
|
8891
8901
|
children: [
|
|
8892
8902
|
input,
|
|
8893
8903
|
tDropAreaLabel,
|
|
8894
|
-
/* @__PURE__ */ (0, import_jsx_runtime261.jsx)(VisuallyHidden, { children: t(
|
|
8904
|
+
/* @__PURE__ */ (0, import_jsx_runtime261.jsx)(VisuallyHidden, { children: t(texts16.uploadFileWithButton) }),
|
|
8895
8905
|
button
|
|
8896
8906
|
]
|
|
8897
8907
|
}
|
|
@@ -8909,14 +8919,14 @@ var FileUploader = (props) => {
|
|
|
8909
8919
|
readOnly && FileUploader_default["readonly--file-list"]
|
|
8910
8920
|
),
|
|
8911
8921
|
children: [
|
|
8912
|
-
/* @__PURE__ */ (0, import_jsx_runtime261.jsx)(VisuallyHidden, { id: fileListNameId, children: t(
|
|
8922
|
+
/* @__PURE__ */ (0, import_jsx_runtime261.jsx)(VisuallyHidden, { id: fileListNameId, children: t(texts16.uploadedFiles) }),
|
|
8913
8923
|
inactive && fileListElements.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(
|
|
8914
8924
|
Typography,
|
|
8915
8925
|
{
|
|
8916
8926
|
italic: true,
|
|
8917
8927
|
as: "span",
|
|
8918
8928
|
color: disabled ? "text-subtle" : "text-medium",
|
|
8919
|
-
children: t(
|
|
8929
|
+
children: t(texts16.noFiles)
|
|
8920
8930
|
}
|
|
8921
8931
|
) : /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(StylelessList, { "aria-labelledby": fileListNameId, children: fileListElements })
|
|
8922
8932
|
]
|
|
@@ -8927,7 +8937,7 @@ var FileUploader = (props) => {
|
|
|
8927
8937
|
);
|
|
8928
8938
|
};
|
|
8929
8939
|
FileUploader.displayName = "FileUploader";
|
|
8930
|
-
var
|
|
8940
|
+
var texts16 = createTexts({
|
|
8931
8941
|
dragAndDropOr: {
|
|
8932
8942
|
nb: "Dra og slipp filer her eller",
|
|
8933
8943
|
no: "Dra og slipp filer her eller",
|
|
@@ -9220,11 +9230,11 @@ var import_jsx_runtime273 = require("react/jsx-runtime");
|
|
|
9220
9230
|
var inlineEditVisuallyHidden = (id, clearable) => {
|
|
9221
9231
|
const { t } = useTranslation();
|
|
9222
9232
|
return /* @__PURE__ */ (0, import_jsx_runtime273.jsxs)(VisuallyHidden, { id, children: [
|
|
9223
|
-
t(
|
|
9224
|
-
!clearable && t(
|
|
9233
|
+
t(texts17.inlineEditInfo),
|
|
9234
|
+
!clearable && t(texts17.notClearable)
|
|
9225
9235
|
] });
|
|
9226
9236
|
};
|
|
9227
|
-
var
|
|
9237
|
+
var texts17 = createTexts({
|
|
9228
9238
|
inlineEditInfo: {
|
|
9229
9239
|
nb: "Escape, Enter eller Tab for \xE5 lagre.",
|
|
9230
9240
|
no: "Escape, Enter eller Tab for \xE5 lagre.",
|
|
@@ -9553,7 +9563,7 @@ var InternalHeader = (props) => {
|
|
|
9553
9563
|
const hasContextMenuElements = !!contextMenuItems && contextMenuItems.length > 0;
|
|
9554
9564
|
const hasSmallScreenBreakpoint = !!smallScreenBreakpoint;
|
|
9555
9565
|
const hasNavInContextMenu = hasSmallScreenBreakpoint && hasNavigationElements;
|
|
9556
|
-
const navigation = hasNavigationElements ? /* @__PURE__ */ (0, import_jsx_runtime279.jsx)("nav", { "aria-label": t(
|
|
9566
|
+
const navigation = hasNavigationElements ? /* @__PURE__ */ (0, import_jsx_runtime279.jsx)("nav", { "aria-label": t(texts18.siteNavigation), children: /* @__PURE__ */ (0, import_jsx_runtime279.jsx)(
|
|
9557
9567
|
ShowHide,
|
|
9558
9568
|
{
|
|
9559
9569
|
as: StylelessList,
|
|
@@ -9617,7 +9627,7 @@ var InternalHeader = (props) => {
|
|
|
9617
9627
|
{
|
|
9618
9628
|
icon: hasNavInContextMenu ? MenuIcon : MoreVerticalIcon,
|
|
9619
9629
|
purpose: "tertiary",
|
|
9620
|
-
"aria-label": t(
|
|
9630
|
+
"aria-label": t(texts18.openMenu)
|
|
9621
9631
|
}
|
|
9622
9632
|
),
|
|
9623
9633
|
/* @__PURE__ */ (0, import_jsx_runtime279.jsxs)(OverflowMenu, { className: InternalHeader_default["context-menu"], children: [
|
|
@@ -9626,7 +9636,7 @@ var InternalHeader = (props) => {
|
|
|
9626
9636
|
ShowHide,
|
|
9627
9637
|
{
|
|
9628
9638
|
as: "nav",
|
|
9629
|
-
"aria-label": t(
|
|
9639
|
+
"aria-label": t(texts18.siteNavigation),
|
|
9630
9640
|
showBelow: smallScreenBreakpoint,
|
|
9631
9641
|
children: /* @__PURE__ */ (0, import_jsx_runtime279.jsx)(OverflowMenuList, { children: navItems.map((item, i) => /* @__PURE__ */ (0, import_react67.createElement)(OverflowMenuLink, { ...item, key: `nav-${i}` })) })
|
|
9632
9642
|
}
|
|
@@ -9662,7 +9672,7 @@ var InternalHeader = (props) => {
|
|
|
9662
9672
|
);
|
|
9663
9673
|
};
|
|
9664
9674
|
InternalHeader.displayName = "InternalHeader";
|
|
9665
|
-
var
|
|
9675
|
+
var texts18 = createTexts({
|
|
9666
9676
|
openMenu: {
|
|
9667
9677
|
nb: "\xC5pne meny",
|
|
9668
9678
|
no: "\xC5pne meny",
|
|
@@ -10826,7 +10836,7 @@ var Pagination = ({
|
|
|
10826
10836
|
onClick: (event) => {
|
|
10827
10837
|
onPageChange(event, item);
|
|
10828
10838
|
},
|
|
10829
|
-
"aria-label": isActive ? t(
|
|
10839
|
+
"aria-label": isActive ? t(texts19.currentPage(item)) : t(texts19.page(item)),
|
|
10830
10840
|
children: item
|
|
10831
10841
|
}
|
|
10832
10842
|
) : /* @__PURE__ */ (0, import_jsx_runtime289.jsx)(
|
|
@@ -10846,7 +10856,7 @@ var Pagination = ({
|
|
|
10846
10856
|
onClick: (event) => {
|
|
10847
10857
|
onPageChange(event, activePage - 1);
|
|
10848
10858
|
},
|
|
10849
|
-
"aria-label": t(
|
|
10859
|
+
"aria-label": t(texts19.previousPage)
|
|
10850
10860
|
}
|
|
10851
10861
|
);
|
|
10852
10862
|
const nextPageButton = /* @__PURE__ */ (0, import_jsx_runtime289.jsx)(
|
|
@@ -10858,7 +10868,7 @@ var Pagination = ({
|
|
|
10858
10868
|
onClick: (event) => {
|
|
10859
10869
|
onPageChange(event, activePage + 1);
|
|
10860
10870
|
},
|
|
10861
|
-
"aria-label": t(
|
|
10871
|
+
"aria-label": t(texts19.nextPage)
|
|
10862
10872
|
}
|
|
10863
10873
|
);
|
|
10864
10874
|
const isOnFirstPage = activePage === 1;
|
|
@@ -10868,7 +10878,7 @@ var Pagination = ({
|
|
|
10868
10878
|
{
|
|
10869
10879
|
as: "nav",
|
|
10870
10880
|
ref,
|
|
10871
|
-
"aria-label": t(
|
|
10881
|
+
"aria-label": t(texts19.pagination),
|
|
10872
10882
|
display: "flex",
|
|
10873
10883
|
alignItems: "center",
|
|
10874
10884
|
...!withSelect && !withCounter && {
|
|
@@ -10932,7 +10942,7 @@ var Pagination = ({
|
|
|
10932
10942
|
onClick: (event) => {
|
|
10933
10943
|
onPageChange(event, 1);
|
|
10934
10944
|
},
|
|
10935
|
-
"aria-label": t(
|
|
10945
|
+
"aria-label": t(texts19.firstPage)
|
|
10936
10946
|
}
|
|
10937
10947
|
)
|
|
10938
10948
|
}
|
|
@@ -10986,7 +10996,7 @@ var Pagination = ({
|
|
|
10986
10996
|
onClick: (event) => {
|
|
10987
10997
|
onPageChange(event, pagesLength);
|
|
10988
10998
|
},
|
|
10989
|
-
"aria-label": t(
|
|
10999
|
+
"aria-label": t(texts19.lastPage)
|
|
10990
11000
|
}
|
|
10991
11001
|
)
|
|
10992
11002
|
}
|
|
@@ -11024,11 +11034,11 @@ var Pagination = ({
|
|
|
11024
11034
|
isClearable: false,
|
|
11025
11035
|
onChange: handleSelectChange,
|
|
11026
11036
|
componentSize: "small",
|
|
11027
|
-
"aria-label": t(
|
|
11037
|
+
"aria-label": t(texts19.itemsPerPage)
|
|
11028
11038
|
}
|
|
11029
11039
|
),
|
|
11030
11040
|
withCounter && /* @__PURE__ */ (0, import_jsx_runtime289.jsx)(Paragraph, { children: t(
|
|
11031
|
-
|
|
11041
|
+
texts19.showsAmountOfTotalItems(
|
|
11032
11042
|
activePageFirstItem,
|
|
11033
11043
|
activePageLastItem,
|
|
11034
11044
|
itemsAmount
|
|
@@ -11041,7 +11051,7 @@ var Pagination = ({
|
|
|
11041
11051
|
);
|
|
11042
11052
|
};
|
|
11043
11053
|
Pagination.displayName = "Pagination";
|
|
11044
|
-
var
|
|
11054
|
+
var texts19 = createTexts({
|
|
11045
11055
|
pagination: {
|
|
11046
11056
|
nb: "Paginering",
|
|
11047
11057
|
no: "Paginering",
|
|
@@ -11559,8 +11569,8 @@ var PhoneInput = ({
|
|
|
11559
11569
|
}) => {
|
|
11560
11570
|
var _a;
|
|
11561
11571
|
const { t } = useTranslation();
|
|
11562
|
-
const tGroupLabel = groupLabel != null ? groupLabel : t(
|
|
11563
|
-
const tSelectLabel = selectLabel != null ? selectLabel : t(
|
|
11572
|
+
const tGroupLabel = groupLabel != null ? groupLabel : t(texts20.countryCodeAndPhoneNumber);
|
|
11573
|
+
const tSelectLabel = selectLabel != null ? selectLabel : t(texts20.countryCode);
|
|
11564
11574
|
const generatedId = (0, import_react74.useId)();
|
|
11565
11575
|
const uniqueId = (_a = props.id) != null ? _a : generatedId;
|
|
11566
11576
|
const phoneInputId = `${uniqueId}-phone-input`;
|
|
@@ -11734,7 +11744,7 @@ var getCallingCode = (s) => {
|
|
|
11734
11744
|
var _a;
|
|
11735
11745
|
return (_a = s.substring(s.indexOf("+"), s.length)) != null ? _a : "";
|
|
11736
11746
|
};
|
|
11737
|
-
var
|
|
11747
|
+
var texts20 = createTexts({
|
|
11738
11748
|
countryCode: {
|
|
11739
11749
|
nb: "Landskode",
|
|
11740
11750
|
no: "Landskode",
|
|
@@ -12112,7 +12122,7 @@ var ProgressTrackerItem = (props) => {
|
|
|
12112
12122
|
}
|
|
12113
12123
|
)
|
|
12114
12124
|
] });
|
|
12115
|
-
const ariaLabel = props["aria-label"] ? props["aria-label"] : `${children}, ${stepNumber}. ${completed ? t(
|
|
12125
|
+
const ariaLabel = props["aria-label"] ? props["aria-label"] : `${children}, ${stepNumber}. ${completed ? t(texts21.completed) : t(texts21.uncompleted)}`;
|
|
12116
12126
|
return /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(
|
|
12117
12127
|
Box,
|
|
12118
12128
|
{
|
|
@@ -12161,7 +12171,7 @@ var ProgressTrackerItem = (props) => {
|
|
|
12161
12171
|
);
|
|
12162
12172
|
};
|
|
12163
12173
|
ProgressTrackerItem.displayName = "ProgressTracker.Item";
|
|
12164
|
-
var
|
|
12174
|
+
var texts21 = createTexts({
|
|
12165
12175
|
uncompleted: {
|
|
12166
12176
|
nb: "trinn ikke ferdig",
|
|
12167
12177
|
no: "trinn ikke ferdig",
|
|
@@ -12218,7 +12228,7 @@ var ProgressTracker = (() => {
|
|
|
12218
12228
|
children: /* @__PURE__ */ (0, import_jsx_runtime294.jsx)(
|
|
12219
12229
|
"nav",
|
|
12220
12230
|
{
|
|
12221
|
-
"aria-label": ariaLabel != null ? ariaLabel : t(
|
|
12231
|
+
"aria-label": ariaLabel != null ? ariaLabel : t(texts22.stepProgression),
|
|
12222
12232
|
...getBaseHTMLProps(id, className, htmlProps, rest),
|
|
12223
12233
|
children: /* @__PURE__ */ (0, import_jsx_runtime294.jsx)(
|
|
12224
12234
|
Box,
|
|
@@ -12256,11 +12266,11 @@ function passIndexPropToProgressTrackerItem(children) {
|
|
|
12256
12266
|
})
|
|
12257
12267
|
);
|
|
12258
12268
|
}
|
|
12259
|
-
var
|
|
12269
|
+
var texts22 = createTexts({
|
|
12260
12270
|
stepProgression: {
|
|
12261
|
-
nb: "
|
|
12262
|
-
no: "
|
|
12263
|
-
nn: "
|
|
12271
|
+
nb: "Trinnprogresjon",
|
|
12272
|
+
no: "Trinnprogresjon",
|
|
12273
|
+
nn: "Trinnprogresjon",
|
|
12264
12274
|
en: "Step progression"
|
|
12265
12275
|
}
|
|
12266
12276
|
});
|
|
@@ -12471,7 +12481,7 @@ var SearchSuggestions = ({
|
|
|
12471
12481
|
{
|
|
12472
12482
|
index,
|
|
12473
12483
|
focus: focus === index && showSuggestions,
|
|
12474
|
-
"aria-label": t(
|
|
12484
|
+
"aria-label": t(texts23.search(suggestion)),
|
|
12475
12485
|
onClick: onSuggestionClick,
|
|
12476
12486
|
"aria-setsize": suggestionsToRender.length,
|
|
12477
12487
|
"aria-posinset": index,
|
|
@@ -12485,7 +12495,7 @@ var SearchSuggestions = ({
|
|
|
12485
12495
|
);
|
|
12486
12496
|
};
|
|
12487
12497
|
SearchSuggestions.displayName = "SearchSuggestions";
|
|
12488
|
-
var
|
|
12498
|
+
var texts23 = createTexts({
|
|
12489
12499
|
search: (suggestion) => ({
|
|
12490
12500
|
no: `${suggestion} s\xF8k`,
|
|
12491
12501
|
nb: `${suggestion} s\xF8k`,
|
|
@@ -12631,13 +12641,13 @@ var Search = ({
|
|
|
12631
12641
|
componentSize
|
|
12632
12642
|
}
|
|
12633
12643
|
),
|
|
12634
|
-
/* @__PURE__ */ (0, import_jsx_runtime298.jsx)(VisuallyHidden, { id: suggestionsDescriptionId, children: t(
|
|
12644
|
+
/* @__PURE__ */ (0, import_jsx_runtime298.jsx)(VisuallyHidden, { id: suggestionsDescriptionId, children: t(texts24.useArrowKeys) })
|
|
12635
12645
|
] }),
|
|
12636
12646
|
hasValue && /* @__PURE__ */ (0, import_jsx_runtime298.jsx)(
|
|
12637
12647
|
ClearButton,
|
|
12638
12648
|
{
|
|
12639
12649
|
size: getIconSize2(componentSize),
|
|
12640
|
-
"aria-label": t(
|
|
12650
|
+
"aria-label": t(texts24.clearSearch),
|
|
12641
12651
|
onClick: clearInput,
|
|
12642
12652
|
className: Search_default["clear-button"]
|
|
12643
12653
|
}
|
|
@@ -12666,7 +12676,7 @@ var Search = ({
|
|
|
12666
12676
|
size: componentSize,
|
|
12667
12677
|
onClick,
|
|
12668
12678
|
...otherButtonProps,
|
|
12669
|
-
children: buttonLabel != null ? buttonLabel : t(
|
|
12679
|
+
children: buttonLabel != null ? buttonLabel : t(texts24.search)
|
|
12670
12680
|
}
|
|
12671
12681
|
)
|
|
12672
12682
|
]
|
|
@@ -12677,7 +12687,7 @@ var Search = ({
|
|
|
12677
12687
|
] });
|
|
12678
12688
|
};
|
|
12679
12689
|
Search.displayName = "Search";
|
|
12680
|
-
var
|
|
12690
|
+
var texts24 = createTexts({
|
|
12681
12691
|
clearSearch: {
|
|
12682
12692
|
nb: "T\xF8m s\xF8k",
|
|
12683
12693
|
no: "T\xF8m s\xF8k",
|
|
@@ -12886,7 +12896,7 @@ var SplitButton = ({
|
|
|
12886
12896
|
{
|
|
12887
12897
|
...buttonStyleProps,
|
|
12888
12898
|
icon: isOpen ? ChevronUpIcon : ChevronDownIcon,
|
|
12889
|
-
"aria-label": t(
|
|
12899
|
+
"aria-label": t(texts25.moreActions),
|
|
12890
12900
|
purpose,
|
|
12891
12901
|
className: cn(
|
|
12892
12902
|
SplitButton_default.option,
|
|
@@ -12900,7 +12910,7 @@ var SplitButton = ({
|
|
|
12900
12910
|
] });
|
|
12901
12911
|
};
|
|
12902
12912
|
SplitButton.displayName = "SplitButton";
|
|
12903
|
-
var
|
|
12913
|
+
var texts25 = createTexts({
|
|
12904
12914
|
moreActions: {
|
|
12905
12915
|
nb: "Flere handlinger",
|
|
12906
12916
|
no: "Flere handlinger",
|
|
@@ -13058,7 +13068,7 @@ var SortCell = ({
|
|
|
13058
13068
|
StylelessButton,
|
|
13059
13069
|
{
|
|
13060
13070
|
onClick,
|
|
13061
|
-
"aria-description": t(
|
|
13071
|
+
"aria-description": t(texts26.changeSort),
|
|
13062
13072
|
className: cn(Table_default["sort-button"], focusable),
|
|
13063
13073
|
children: [
|
|
13064
13074
|
children,
|
|
@@ -13071,7 +13081,7 @@ var SortCell = ({
|
|
|
13071
13081
|
);
|
|
13072
13082
|
};
|
|
13073
13083
|
SortCell.displayName = "Table.SortCell";
|
|
13074
|
-
var
|
|
13084
|
+
var texts26 = createTexts({
|
|
13075
13085
|
changeSort: {
|
|
13076
13086
|
nb: "Aktiver for \xE5 endre sorteringsrekkef\xF8lge",
|
|
13077
13087
|
no: "Aktiver for \xE5 endre sorteringsrekkef\xF8lge",
|
|
@@ -13219,8 +13229,8 @@ var CollapsibleRow = ({
|
|
|
13219
13229
|
return /* @__PURE__ */ (0, import_jsx_runtime311.jsx)(Row, { ref, ...rowProps(), children: /* @__PURE__ */ (0, import_jsx_runtime311.jsxs)(import_jsx_runtime311.Fragment, { children: [
|
|
13220
13230
|
definingColumnCells,
|
|
13221
13231
|
/* @__PURE__ */ (0, import_jsx_runtime311.jsxs)(Table2.Cell, { type: "head", layout: "center", children: [
|
|
13222
|
-
t(
|
|
13223
|
-
/* @__PURE__ */ (0, import_jsx_runtime311.jsx)(VisuallyHidden, { children: t(
|
|
13232
|
+
t(texts27.expand),
|
|
13233
|
+
/* @__PURE__ */ (0, import_jsx_runtime311.jsx)(VisuallyHidden, { children: t(texts27.row) })
|
|
13224
13234
|
] })
|
|
13225
13235
|
] }) });
|
|
13226
13236
|
};
|
|
@@ -13257,7 +13267,7 @@ var CollapsibleRow = ({
|
|
|
13257
13267
|
] }) : /* @__PURE__ */ (0, import_jsx_runtime311.jsx)(Row, { ref, ...rowProps(), children });
|
|
13258
13268
|
};
|
|
13259
13269
|
CollapsibleRow.displayName = "CollapsibleTable.Row";
|
|
13260
|
-
var
|
|
13270
|
+
var texts27 = createTexts({
|
|
13261
13271
|
expand: {
|
|
13262
13272
|
nb: "Utvid",
|
|
13263
13273
|
no: "Utvid",
|