@norges-domstoler/dds-components 21.6.1 → 21.7.0
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.css +56 -12
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +31 -17
- package/dist/index.d.ts +31 -17
- package/dist/index.js +313 -249
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +424 -361
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -212,8 +212,8 @@ var getTextColor = (color) => {
|
|
|
212
212
|
// src/utils/combineHandlers.tsx
|
|
213
213
|
var combineHandlers = (handler1, handler2) => {
|
|
214
214
|
const callback = (event) => {
|
|
215
|
-
handler1
|
|
216
|
-
handler2
|
|
215
|
+
handler1 == null ? void 0 : handler1(event);
|
|
216
|
+
handler2 == null ? void 0 : handler2(event);
|
|
217
217
|
};
|
|
218
218
|
return callback;
|
|
219
219
|
};
|
|
@@ -261,7 +261,7 @@ var readOnlyMouseDownHandler = (readOnly, onMouseDown) => {
|
|
|
261
261
|
if (readOnly) {
|
|
262
262
|
evt.preventDefault();
|
|
263
263
|
evt.target.focus();
|
|
264
|
-
} else onMouseDown
|
|
264
|
+
} else onMouseDown == null ? void 0 : onMouseDown(evt);
|
|
265
265
|
};
|
|
266
266
|
};
|
|
267
267
|
var readOnlyKeyDownHandler = (type, readOnly, onKeyDown) => {
|
|
@@ -274,7 +274,7 @@ var readOnlyKeyDownHandler = (type, readOnly, onKeyDown) => {
|
|
|
274
274
|
} else if (type === "selectionControl" && evt.key === " ") {
|
|
275
275
|
evt.preventDefault();
|
|
276
276
|
}
|
|
277
|
-
} else onKeyDown
|
|
277
|
+
} else onKeyDown == null ? void 0 : onKeyDown(evt);
|
|
278
278
|
};
|
|
279
279
|
};
|
|
280
280
|
var readOnlyChangeHandler = (readOnly, onChange) => {
|
|
@@ -282,7 +282,7 @@ var readOnlyChangeHandler = (readOnly, onChange) => {
|
|
|
282
282
|
if (readOnly) {
|
|
283
283
|
return;
|
|
284
284
|
}
|
|
285
|
-
onChange
|
|
285
|
+
onChange == null ? void 0 : onChange(evt);
|
|
286
286
|
};
|
|
287
287
|
};
|
|
288
288
|
var readOnlyClickHandler = (readOnly, onClick) => {
|
|
@@ -291,7 +291,7 @@ var readOnlyClickHandler = (readOnly, onClick) => {
|
|
|
291
291
|
evt.preventDefault();
|
|
292
292
|
return;
|
|
293
293
|
}
|
|
294
|
-
onClick
|
|
294
|
+
onClick == null ? void 0 : onClick(evt);
|
|
295
295
|
};
|
|
296
296
|
};
|
|
297
297
|
|
|
@@ -436,8 +436,8 @@ function useTranslation() {
|
|
|
436
436
|
const t = (text) => text[lang];
|
|
437
437
|
return { t, lang };
|
|
438
438
|
}
|
|
439
|
-
function createTexts(
|
|
440
|
-
return
|
|
439
|
+
function createTexts(texts26) {
|
|
440
|
+
return texts26;
|
|
441
441
|
}
|
|
442
442
|
|
|
443
443
|
// src/types/BaseComponentProps.ts
|
|
@@ -686,6 +686,7 @@ var focusable = "focus_focusable";
|
|
|
686
686
|
var focus_default = {
|
|
687
687
|
focused: "focus_focused",
|
|
688
688
|
focusable,
|
|
689
|
+
"focusable-focus": "focus_focusable-focus",
|
|
689
690
|
"focusable-within": "focus_focusable-within",
|
|
690
691
|
"has-focusable-input": "focus_has-focusable-input",
|
|
691
692
|
"focusable-sibling": "focus_focusable-sibling",
|
|
@@ -4333,13 +4334,13 @@ var OverflowMenuGroup = ({
|
|
|
4333
4334
|
const combinedMenuRef = useCombinedRef(menuRef, floatingRef);
|
|
4334
4335
|
const handleClose = () => {
|
|
4335
4336
|
if (isOpen) {
|
|
4336
|
-
onClose
|
|
4337
|
+
onClose == null ? void 0 : onClose();
|
|
4337
4338
|
close();
|
|
4338
4339
|
}
|
|
4339
4340
|
};
|
|
4340
4341
|
const handleToggle = () => {
|
|
4341
|
-
!isOpen
|
|
4342
|
-
isOpen
|
|
4342
|
+
if (!isOpen) onOpen == null ? void 0 : onOpen();
|
|
4343
|
+
if (isOpen) onClose == null ? void 0 : onClose();
|
|
4343
4344
|
toggle();
|
|
4344
4345
|
};
|
|
4345
4346
|
useOnClickOutside([menuRef.current, buttonRef.current], () => {
|
|
@@ -4348,7 +4349,7 @@ var OverflowMenuGroup = ({
|
|
|
4348
4349
|
useOnKeyDown(["Esc", "Escape"], () => {
|
|
4349
4350
|
var _a;
|
|
4350
4351
|
if (isOpen) {
|
|
4351
|
-
onClose
|
|
4352
|
+
onClose == null ? void 0 : onClose();
|
|
4352
4353
|
close();
|
|
4353
4354
|
(_a = buttonRef.current) == null ? void 0 : _a.focus();
|
|
4354
4355
|
}
|
|
@@ -5129,7 +5130,7 @@ var RadioButton = ({
|
|
|
5129
5130
|
const radioButtonGroup = useRadioButtonGroup();
|
|
5130
5131
|
const handleChange = (event) => {
|
|
5131
5132
|
var _a;
|
|
5132
|
-
onChange
|
|
5133
|
+
onChange == null ? void 0 : onChange(event);
|
|
5133
5134
|
(_a = radioButtonGroup == null ? void 0 : radioButtonGroup.onChange) == null ? void 0 : _a.call(radioButtonGroup, event, event.target.value);
|
|
5134
5135
|
};
|
|
5135
5136
|
const describedByIds = [];
|
|
@@ -5507,7 +5508,7 @@ var Chip = ({
|
|
|
5507
5508
|
const [isOpen, setIsOpen] = useState11(true);
|
|
5508
5509
|
const onClick = () => {
|
|
5509
5510
|
setIsOpen(false);
|
|
5510
|
-
onClose
|
|
5511
|
+
onClose == null ? void 0 : onClose();
|
|
5511
5512
|
};
|
|
5512
5513
|
return isOpen ? /* @__PURE__ */ jsxs40(
|
|
5513
5514
|
"div",
|
|
@@ -7353,26 +7354,10 @@ var TextArea = ({
|
|
|
7353
7354
|
TextArea.displayName = "TextArea";
|
|
7354
7355
|
|
|
7355
7356
|
// src/components/Feedback/utils.tsx
|
|
7356
|
-
import { jsx as jsx249 } from "react/jsx-runtime";
|
|
7357
7357
|
var getIconSize = (layout) => layout === "vertical" ? "large" : "medium";
|
|
7358
|
-
var ThumbIcon = ({ rating, layout, type }) => type === "comment" ? /* @__PURE__ */ jsx249(
|
|
7359
|
-
Icon,
|
|
7360
|
-
{
|
|
7361
|
-
icon: rating === "positive" ? ThumbUpFilledIcon : ThumbDownFilledIcon,
|
|
7362
|
-
color: "iconActionResting",
|
|
7363
|
-
iconSize: getIconSize(layout)
|
|
7364
|
-
}
|
|
7365
|
-
) : /* @__PURE__ */ jsx249(
|
|
7366
|
-
Icon,
|
|
7367
|
-
{
|
|
7368
|
-
icon: rating === "positive" ? ThumbUpIcon : ThumbDownIcon,
|
|
7369
|
-
color: "iconMedium",
|
|
7370
|
-
iconSize: getIconSize(layout)
|
|
7371
|
-
}
|
|
7372
|
-
);
|
|
7373
7358
|
|
|
7374
7359
|
// src/components/Feedback/CommentComponent.tsx
|
|
7375
|
-
import { jsx as
|
|
7360
|
+
import { jsx as jsx249, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
7376
7361
|
var CommentComponent = ({
|
|
7377
7362
|
layout,
|
|
7378
7363
|
rating,
|
|
@@ -7388,13 +7373,20 @@ var CommentComponent = ({
|
|
|
7388
7373
|
const { t } = useTranslation();
|
|
7389
7374
|
return /* @__PURE__ */ jsxs55(VStack, { gap: "x1", children: [
|
|
7390
7375
|
/* @__PURE__ */ jsxs55("span", { className: Feedback_default["rating-submitted-title"], children: [
|
|
7391
|
-
|
|
7376
|
+
/* @__PURE__ */ jsx249(
|
|
7377
|
+
Icon,
|
|
7378
|
+
{
|
|
7379
|
+
icon: rating === "positive" ? ThumbUpFilledIcon : ThumbDownFilledIcon,
|
|
7380
|
+
color: "iconActionResting",
|
|
7381
|
+
iconSize: getIconSize(layout)
|
|
7382
|
+
}
|
|
7383
|
+
),
|
|
7392
7384
|
/* @__PURE__ */ jsxs55(Paragraph, { children: [
|
|
7393
7385
|
ratingSubmittedTitle,
|
|
7394
7386
|
" "
|
|
7395
7387
|
] })
|
|
7396
7388
|
] }),
|
|
7397
|
-
/* @__PURE__ */
|
|
7389
|
+
/* @__PURE__ */ jsx249(
|
|
7398
7390
|
TextArea,
|
|
7399
7391
|
{
|
|
7400
7392
|
value: feedbackText,
|
|
@@ -7403,7 +7395,7 @@ var CommentComponent = ({
|
|
|
7403
7395
|
tip: textAreaTip
|
|
7404
7396
|
}
|
|
7405
7397
|
),
|
|
7406
|
-
/* @__PURE__ */
|
|
7398
|
+
/* @__PURE__ */ jsx249(
|
|
7407
7399
|
Button,
|
|
7408
7400
|
{
|
|
7409
7401
|
purpose: "secondary",
|
|
@@ -7424,6 +7416,29 @@ var texts9 = createTexts({
|
|
|
7424
7416
|
}
|
|
7425
7417
|
});
|
|
7426
7418
|
|
|
7419
|
+
// src/components/helpers/InlineIconButton/InlineIconButton.module.css
|
|
7420
|
+
var InlineIconButton_default = {
|
|
7421
|
+
button: "InlineIconButton_button"
|
|
7422
|
+
};
|
|
7423
|
+
|
|
7424
|
+
// src/components/helpers/InlineIconButton/InlineIconButton.tsx
|
|
7425
|
+
import { jsx as jsx250 } from "react/jsx-runtime";
|
|
7426
|
+
var InlineIconButton = ({
|
|
7427
|
+
className,
|
|
7428
|
+
size: size2,
|
|
7429
|
+
icon,
|
|
7430
|
+
color,
|
|
7431
|
+
...rest
|
|
7432
|
+
}) => /* @__PURE__ */ jsx250(
|
|
7433
|
+
StylelessButton,
|
|
7434
|
+
{
|
|
7435
|
+
className: cn(className, InlineIconButton_default.button, focusable),
|
|
7436
|
+
...rest,
|
|
7437
|
+
children: /* @__PURE__ */ jsx250(Icon, { icon, iconSize: size2, color })
|
|
7438
|
+
}
|
|
7439
|
+
);
|
|
7440
|
+
InlineIconButton.displayName = "InlineIconButton";
|
|
7441
|
+
|
|
7427
7442
|
// src/components/Tooltip/Tooltip.tsx
|
|
7428
7443
|
import {
|
|
7429
7444
|
Children as ReactChildren3,
|
|
@@ -7471,7 +7486,9 @@ var Tooltip = ({
|
|
|
7471
7486
|
const combinedRef = useCombinedRef(ref, refs.setFloating, tooltipRef);
|
|
7472
7487
|
const closeWhenNotInView = (entries) => {
|
|
7473
7488
|
const [entry] = entries;
|
|
7474
|
-
entry.isIntersecting
|
|
7489
|
+
if (entry.isIntersecting) {
|
|
7490
|
+
setInView(true);
|
|
7491
|
+
} else setInView(false);
|
|
7475
7492
|
};
|
|
7476
7493
|
useEffect21(() => {
|
|
7477
7494
|
const options = {
|
|
@@ -7596,12 +7613,13 @@ var RatingComponent = ({
|
|
|
7596
7613
|
}) => {
|
|
7597
7614
|
const { t } = useTranslation();
|
|
7598
7615
|
const button = (rating, layout2, tooltip) => /* @__PURE__ */ jsx252(
|
|
7599
|
-
|
|
7616
|
+
InlineIconButton,
|
|
7600
7617
|
{
|
|
7601
7618
|
"aria-label": tooltip,
|
|
7602
7619
|
onClick: () => handleRatingChange(rating),
|
|
7603
|
-
|
|
7604
|
-
|
|
7620
|
+
size: getIconSize(layout2),
|
|
7621
|
+
icon: rating === "positive" ? ThumbUpIcon : ThumbDownIcon,
|
|
7622
|
+
color: "icon-medium"
|
|
7605
7623
|
}
|
|
7606
7624
|
);
|
|
7607
7625
|
return /* @__PURE__ */ jsxs57(
|
|
@@ -7664,26 +7682,26 @@ var Feedback = ({
|
|
|
7664
7682
|
const tThumbUpTooltip = thumbUpTooltip != null ? thumbUpTooltip : t(texts11.good);
|
|
7665
7683
|
const tThumbDownTooltip = thumbDownTooltip != null ? thumbDownTooltip : t(texts11.bad);
|
|
7666
7684
|
useEffect22(() => {
|
|
7667
|
-
ratingProp !== void 0
|
|
7685
|
+
if (ratingProp !== void 0) setRating(ratingProp);
|
|
7668
7686
|
}, [ratingProp]);
|
|
7669
7687
|
useEffect22(() => {
|
|
7670
|
-
feedbackTextProp !== void 0
|
|
7688
|
+
if (feedbackTextProp !== void 0) setFeedbackText(feedbackTextProp);
|
|
7671
7689
|
}, [feedbackTextProp]);
|
|
7672
7690
|
useEffect22(() => {
|
|
7673
|
-
isSubmittedProp !== void 0
|
|
7691
|
+
if (isSubmittedProp !== void 0) setIsFeedbackSubmitted(isSubmittedProp);
|
|
7674
7692
|
}, [isSubmittedProp]);
|
|
7675
7693
|
const handleRatingChange = (newRating) => {
|
|
7676
|
-
onRating
|
|
7677
|
-
onSubmit && feedbackTextAreaExcluded
|
|
7678
|
-
ratingProp === void 0
|
|
7694
|
+
onRating == null ? void 0 : onRating(newRating);
|
|
7695
|
+
if (onSubmit && feedbackTextAreaExcluded) onSubmit(newRating, "");
|
|
7696
|
+
if (ratingProp === void 0) setRating(newRating);
|
|
7679
7697
|
};
|
|
7680
7698
|
const handleFeedbackTextChange = (newFeedbackText) => {
|
|
7681
|
-
onFeedbackTextChange
|
|
7682
|
-
feedbackTextProp === void 0
|
|
7699
|
+
onFeedbackTextChange == null ? void 0 : onFeedbackTextChange(newFeedbackText);
|
|
7700
|
+
if (feedbackTextProp === void 0) setFeedbackText(newFeedbackText);
|
|
7683
7701
|
};
|
|
7684
7702
|
const handleSubmit = () => {
|
|
7685
|
-
onSubmit
|
|
7686
|
-
isSubmittedProp === void 0
|
|
7703
|
+
onSubmit == null ? void 0 : onSubmit(rating, feedbackText != null ? feedbackText : "");
|
|
7704
|
+
if (isSubmittedProp === void 0) setIsFeedbackSubmitted(true);
|
|
7687
7705
|
};
|
|
7688
7706
|
if (rating === null && !isFeedbackSubmitted) {
|
|
7689
7707
|
return /* @__PURE__ */ jsx253(
|
|
@@ -8145,11 +8163,9 @@ var useFileUploader = (props) => {
|
|
|
8145
8163
|
() => ({
|
|
8146
8164
|
onBlur: onRootBlur,
|
|
8147
8165
|
onFocus: onRootFocus,
|
|
8148
|
-
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
|
8149
8166
|
onDragEnter: onRootDragEnter,
|
|
8150
8167
|
onDragOver: onRootDragOver,
|
|
8151
8168
|
onDragLeave: onRootDragLeave,
|
|
8152
|
-
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
|
8153
8169
|
onDrop: setFiles,
|
|
8154
8170
|
ref: rootRef
|
|
8155
8171
|
}),
|
|
@@ -8176,7 +8192,6 @@ var useFileUploader = (props) => {
|
|
|
8176
8192
|
style: { display: "none" },
|
|
8177
8193
|
tabIndex: -1,
|
|
8178
8194
|
ref: inputRef,
|
|
8179
|
-
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
|
8180
8195
|
onChange: setFiles,
|
|
8181
8196
|
multiple: !maxFiles || maxFiles > 1,
|
|
8182
8197
|
...accept ? { accept: accept.join(",") } : {}
|
|
@@ -8485,7 +8500,7 @@ var GlobalMessage = ({
|
|
|
8485
8500
|
purpose: "tertiary",
|
|
8486
8501
|
onClick: () => {
|
|
8487
8502
|
setClosed(true);
|
|
8488
|
-
onClose
|
|
8503
|
+
onClose == null ? void 0 : onClose();
|
|
8489
8504
|
},
|
|
8490
8505
|
size: "small",
|
|
8491
8506
|
"aria-label": t(commonTexts.closeMessage)
|
|
@@ -8517,7 +8532,7 @@ var InlineButton = ({ className, ...rest }) => /* @__PURE__ */ jsx268(
|
|
|
8517
8532
|
}
|
|
8518
8533
|
);
|
|
8519
8534
|
|
|
8520
|
-
// src/components/InlineEdit/InlineEditTextArea.tsx
|
|
8535
|
+
// src/components/InlineEdit/InlineEditTextArea/InlineEditTextArea.tsx
|
|
8521
8536
|
import { useRef as useRef25 } from "react";
|
|
8522
8537
|
|
|
8523
8538
|
// src/components/InlineEdit/InlineEdit.context.tsx
|
|
@@ -8587,15 +8602,20 @@ var InlineEditContextProvider = (props) => {
|
|
|
8587
8602
|
};
|
|
8588
8603
|
InlineEditContextProvider.displayName = "InlineEditContextProvider";
|
|
8589
8604
|
|
|
8590
|
-
// src/components/InlineEdit/
|
|
8605
|
+
// src/components/InlineEdit/InlineField.tsx
|
|
8591
8606
|
import { useId as useId15, useRef as useRef24 } from "react";
|
|
8592
8607
|
|
|
8593
8608
|
// src/components/InlineEdit/InlineEdit.module.css
|
|
8594
8609
|
var InlineEdit_default = {
|
|
8595
8610
|
"inline-input": "InlineEdit_inline-input",
|
|
8611
|
+
"inline-select": "InlineEdit_inline-select",
|
|
8612
|
+
"inline-select--with-clear-button": "InlineEdit_inline-select--with-clear-button",
|
|
8613
|
+
"inline-input--danger": "InlineEdit_inline-input--danger",
|
|
8596
8614
|
"inline-input--with-icon": "InlineEdit_inline-input--with-icon",
|
|
8597
8615
|
"inline-textarea": "InlineEdit_inline-textarea",
|
|
8598
|
-
"icon-wrapper": "InlineEdit_icon-wrapper"
|
|
8616
|
+
"icon-wrapper": "InlineEdit_icon-wrapper",
|
|
8617
|
+
chevron: "InlineEdit_chevron",
|
|
8618
|
+
"clear-button": "InlineEdit_clear-button"
|
|
8599
8619
|
};
|
|
8600
8620
|
|
|
8601
8621
|
// src/components/InlineEdit/InlineEdit.utils.tsx
|
|
@@ -8621,29 +8641,153 @@ var texts14 = createTexts({
|
|
|
8621
8641
|
en: " Input field cannot be cleared."
|
|
8622
8642
|
}
|
|
8623
8643
|
});
|
|
8644
|
+
var inlineEditCns = (hasErrorState, showEditingIcon) => [
|
|
8645
|
+
InlineEdit_default["inline-input"],
|
|
8646
|
+
typographyStyles_default["body-medium"],
|
|
8647
|
+
hasErrorState && InlineEdit_default["inline-input--danger"],
|
|
8648
|
+
showEditingIcon && InlineEdit_default["inline-input--with-icon"]
|
|
8649
|
+
];
|
|
8650
|
+
var inlineInputCns = (hasErrorState, showEditingIcon) => [...inlineEditCns(hasErrorState, showEditingIcon), focusable];
|
|
8651
|
+
var inlineTextareaCns = (hasErrorState, showEditingIcon) => [...inlineInputCns(hasErrorState, showEditingIcon), utilStyles_default.scrollbar];
|
|
8652
|
+
var inlineSelectCns = (hasErrorState, showEditingIcon, hasValue) => [
|
|
8653
|
+
...inlineEditCns(hasErrorState, showEditingIcon),
|
|
8654
|
+
InlineEdit_default["inline-select"],
|
|
8655
|
+
hasValue && InlineEdit_default["inline-select--with-clear-button"],
|
|
8656
|
+
focus_default["focusable-focus"]
|
|
8657
|
+
];
|
|
8624
8658
|
|
|
8625
|
-
// src/
|
|
8626
|
-
|
|
8627
|
-
|
|
8628
|
-
|
|
8629
|
-
|
|
8630
|
-
|
|
8631
|
-
|
|
8632
|
-
|
|
8633
|
-
|
|
8634
|
-
|
|
8635
|
-
|
|
8636
|
-
|
|
8659
|
+
// src/utils/createClearChangeEvent.tsx
|
|
8660
|
+
function createClearChangeEvent(elementId) {
|
|
8661
|
+
const element = document.getElementById(elementId);
|
|
8662
|
+
if (!element) {
|
|
8663
|
+
throw new Error(`Element by id '${elementId}' not found.`);
|
|
8664
|
+
}
|
|
8665
|
+
if (element instanceof HTMLInputElement) {
|
|
8666
|
+
element.value = "";
|
|
8667
|
+
} else if (element instanceof HTMLSelectElement) {
|
|
8668
|
+
element.selectedIndex = 0;
|
|
8669
|
+
}
|
|
8670
|
+
const clearChangeEvent = {
|
|
8671
|
+
target: element,
|
|
8672
|
+
currentTarget: element,
|
|
8673
|
+
bubbles: true,
|
|
8674
|
+
cancelable: false,
|
|
8675
|
+
defaultPrevented: false,
|
|
8676
|
+
eventPhase: 0,
|
|
8677
|
+
isTrusted: false,
|
|
8678
|
+
preventDefault: () => null,
|
|
8679
|
+
stopPropagation: () => null,
|
|
8680
|
+
nativeEvent: new Event("input"),
|
|
8681
|
+
persist: () => null,
|
|
8682
|
+
type: "change",
|
|
8683
|
+
timeStamp: Date.now(),
|
|
8684
|
+
isDefaultPrevented: () => false,
|
|
8685
|
+
isPropagationStopped: () => false
|
|
8686
|
+
};
|
|
8687
|
+
return clearChangeEvent;
|
|
8688
|
+
}
|
|
8689
|
+
|
|
8690
|
+
// src/components/InlineEdit/InlineField.tsx
|
|
8691
|
+
import { Fragment as Fragment6, jsx as jsx270, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
8692
|
+
function InlineField(props) {
|
|
8693
|
+
const {
|
|
8694
|
+
elementType,
|
|
8695
|
+
id,
|
|
8696
|
+
error,
|
|
8697
|
+
errorMessage,
|
|
8698
|
+
width = "140px",
|
|
8699
|
+
hideIcon,
|
|
8700
|
+
ref,
|
|
8701
|
+
className,
|
|
8702
|
+
"aria-describedby": ariaDescribedby,
|
|
8703
|
+
...rest
|
|
8704
|
+
} = props;
|
|
8637
8705
|
const { onBlur, onChange, onFocus, isEditing, value, emptiable } = useInlineEditContext();
|
|
8638
|
-
const
|
|
8639
|
-
const
|
|
8706
|
+
const { t } = useTranslation();
|
|
8707
|
+
const generatedId = useId15();
|
|
8708
|
+
const uniqueId = id != null ? id : `${generatedId}-InlineEdit`;
|
|
8640
8709
|
const hasErrorMessage = !!errorMessage;
|
|
8710
|
+
const hasErrorState = !!error || hasErrorMessage;
|
|
8641
8711
|
const errorMessageId = derivativeIdGenerator(uniqueId, "errorMessage");
|
|
8642
|
-
const hasError = !!error;
|
|
8643
|
-
const hasErrorState = hasError || hasErrorMessage;
|
|
8644
8712
|
const descId = derivativeIdGenerator(uniqueId, "desc");
|
|
8713
|
+
const hasValue = !!value;
|
|
8645
8714
|
const inputRef = useRef24(null);
|
|
8646
8715
|
const combinedRef = useCombinedRef(ref, inputRef);
|
|
8716
|
+
const clearInput = () => {
|
|
8717
|
+
const clearChangeEvent = createClearChangeEvent(uniqueId);
|
|
8718
|
+
onChange == null ? void 0 : onChange(clearChangeEvent);
|
|
8719
|
+
};
|
|
8720
|
+
const describedBy = spaceSeparatedIdListGenerator([
|
|
8721
|
+
hasErrorMessage ? errorMessageId : void 0,
|
|
8722
|
+
descId,
|
|
8723
|
+
ariaDescribedby
|
|
8724
|
+
]);
|
|
8725
|
+
const commonProps = {
|
|
8726
|
+
id: uniqueId,
|
|
8727
|
+
"aria-describedby": describedBy,
|
|
8728
|
+
"aria-invalid": hasErrorState,
|
|
8729
|
+
value,
|
|
8730
|
+
onBlur,
|
|
8731
|
+
onChange,
|
|
8732
|
+
onFocus
|
|
8733
|
+
};
|
|
8734
|
+
const cnArgs = [hasErrorState, !isEditing && !hideIcon];
|
|
8735
|
+
const renderElement = () => {
|
|
8736
|
+
switch (elementType) {
|
|
8737
|
+
case "input":
|
|
8738
|
+
return /* @__PURE__ */ jsx270(
|
|
8739
|
+
"input",
|
|
8740
|
+
{
|
|
8741
|
+
...rest,
|
|
8742
|
+
ref: combinedRef,
|
|
8743
|
+
...commonProps,
|
|
8744
|
+
className: cn(className, ...inlineInputCns(...cnArgs))
|
|
8745
|
+
}
|
|
8746
|
+
);
|
|
8747
|
+
case "textarea":
|
|
8748
|
+
return /* @__PURE__ */ jsx270(
|
|
8749
|
+
"textarea",
|
|
8750
|
+
{
|
|
8751
|
+
...rest,
|
|
8752
|
+
ref: combinedRef,
|
|
8753
|
+
...commonProps,
|
|
8754
|
+
className: cn(className, ...inlineTextareaCns(...cnArgs))
|
|
8755
|
+
}
|
|
8756
|
+
);
|
|
8757
|
+
case "select":
|
|
8758
|
+
return /* @__PURE__ */ jsxs62(Fragment6, { children: [
|
|
8759
|
+
/* @__PURE__ */ jsx270(
|
|
8760
|
+
"select",
|
|
8761
|
+
{
|
|
8762
|
+
...rest,
|
|
8763
|
+
ref: combinedRef,
|
|
8764
|
+
...commonProps,
|
|
8765
|
+
className: cn(className, ...inlineSelectCns(...cnArgs, hasValue))
|
|
8766
|
+
}
|
|
8767
|
+
),
|
|
8768
|
+
hasValue && emptiable && /* @__PURE__ */ jsx270(
|
|
8769
|
+
InlineIconButton,
|
|
8770
|
+
{
|
|
8771
|
+
"aria-label": t(texts15.clearSelect),
|
|
8772
|
+
onClick: clearInput,
|
|
8773
|
+
icon: CloseSmallIcon,
|
|
8774
|
+
size: "small",
|
|
8775
|
+
className: InlineEdit_default["clear-button"]
|
|
8776
|
+
}
|
|
8777
|
+
),
|
|
8778
|
+
/* @__PURE__ */ jsx270(
|
|
8779
|
+
Icon,
|
|
8780
|
+
{
|
|
8781
|
+
icon: ChevronDownIcon,
|
|
8782
|
+
iconSize: "small",
|
|
8783
|
+
className: InlineEdit_default.chevron
|
|
8784
|
+
}
|
|
8785
|
+
)
|
|
8786
|
+
] });
|
|
8787
|
+
default:
|
|
8788
|
+
return null;
|
|
8789
|
+
}
|
|
8790
|
+
};
|
|
8647
8791
|
return /* @__PURE__ */ jsxs62(Box, { position: "relative", width, children: [
|
|
8648
8792
|
/* @__PURE__ */ jsxs62("div", { className: Input_default["input-group"], children: [
|
|
8649
8793
|
!isEditing && !hideIcon && /* @__PURE__ */ jsx270(
|
|
@@ -8651,47 +8795,28 @@ var InlineTextArea = ({
|
|
|
8651
8795
|
{
|
|
8652
8796
|
onClick: () => {
|
|
8653
8797
|
var _a;
|
|
8654
|
-
(_a = inputRef.current) == null ? void 0 : _a.focus();
|
|
8798
|
+
return (_a = inputRef.current) == null ? void 0 : _a.focus();
|
|
8655
8799
|
},
|
|
8656
8800
|
className: InlineEdit_default["icon-wrapper"],
|
|
8657
8801
|
children: /* @__PURE__ */ jsx270(Icon, { icon: EditIcon, iconSize: "small" })
|
|
8658
8802
|
}
|
|
8659
8803
|
),
|
|
8660
|
-
|
|
8661
|
-
"textarea",
|
|
8662
|
-
{
|
|
8663
|
-
...rest,
|
|
8664
|
-
value,
|
|
8665
|
-
onChange,
|
|
8666
|
-
onBlur,
|
|
8667
|
-
onFocus,
|
|
8668
|
-
id: uniqueId,
|
|
8669
|
-
ref: combinedRef,
|
|
8670
|
-
"aria-describedby": spaceSeparatedIdListGenerator([
|
|
8671
|
-
hasErrorMessage ? errorMessageId : void 0,
|
|
8672
|
-
descId,
|
|
8673
|
-
ariaDescribedby
|
|
8674
|
-
]),
|
|
8675
|
-
className: cn(
|
|
8676
|
-
InlineEdit_default["inline-input"],
|
|
8677
|
-
!hideIcon && !isEditing && InlineEdit_default["inline-input--with-icon"],
|
|
8678
|
-
InlineEdit_default["inline-textarea"],
|
|
8679
|
-
Input_default["input--stateful"],
|
|
8680
|
-
hasErrorState && Input_default["input--stateful-danger"],
|
|
8681
|
-
typographyStyles_default["body-medium"],
|
|
8682
|
-
utilStyles_default.scrollbar,
|
|
8683
|
-
focusable
|
|
8684
|
-
)
|
|
8685
|
-
}
|
|
8686
|
-
)
|
|
8804
|
+
renderElement()
|
|
8687
8805
|
] }),
|
|
8688
8806
|
inlineEditVisuallyHidden(descId, emptiable),
|
|
8689
8807
|
renderInputMessage(void 0, void 0, errorMessage, errorMessageId)
|
|
8690
8808
|
] });
|
|
8691
|
-
}
|
|
8692
|
-
|
|
8809
|
+
}
|
|
8810
|
+
var texts15 = createTexts({
|
|
8811
|
+
clearSelect: {
|
|
8812
|
+
no: "T\xF8m nedtrekksliste",
|
|
8813
|
+
nb: "T\xF8m nedtrekksliste",
|
|
8814
|
+
nn: "T\xF8m nedtrekksliste",
|
|
8815
|
+
en: "Clear selection"
|
|
8816
|
+
}
|
|
8817
|
+
});
|
|
8693
8818
|
|
|
8694
|
-
// src/components/InlineEdit/InlineEditTextArea.tsx
|
|
8819
|
+
// src/components/InlineEdit/InlineEditTextArea/InlineEditTextArea.tsx
|
|
8695
8820
|
import { jsx as jsx271 } from "react/jsx-runtime";
|
|
8696
8821
|
var InlineEditTextArea = ({
|
|
8697
8822
|
onSetValue,
|
|
@@ -8715,85 +8840,45 @@ var InlineEditTextArea = ({
|
|
|
8715
8840
|
onFocus,
|
|
8716
8841
|
onChange,
|
|
8717
8842
|
onBlur,
|
|
8718
|
-
children: /* @__PURE__ */ jsx271(
|
|
8843
|
+
children: /* @__PURE__ */ jsx271(InlineField, { elementType: "textarea", ...rest, ref: combinedRef })
|
|
8719
8844
|
}
|
|
8720
8845
|
);
|
|
8721
8846
|
};
|
|
8722
8847
|
|
|
8723
|
-
// src/components/InlineEdit/InlineEditInput.tsx
|
|
8724
|
-
import { useRef as
|
|
8725
|
-
|
|
8726
|
-
|
|
8727
|
-
|
|
8728
|
-
|
|
8729
|
-
|
|
8730
|
-
|
|
8731
|
-
|
|
8732
|
-
|
|
8733
|
-
width = "140px",
|
|
8734
|
-
"aria-describedby": ariaDescribedby,
|
|
8735
|
-
hideIcon,
|
|
8848
|
+
// src/components/InlineEdit/InlineEditInput/InlineEditInput.tsx
|
|
8849
|
+
import { useRef as useRef26 } from "react";
|
|
8850
|
+
import { jsx as jsx272 } from "react/jsx-runtime";
|
|
8851
|
+
var InlineEditInput = ({
|
|
8852
|
+
onSetValue,
|
|
8853
|
+
emptiable,
|
|
8854
|
+
value,
|
|
8855
|
+
onFocus,
|
|
8856
|
+
onChange,
|
|
8857
|
+
onBlur,
|
|
8736
8858
|
ref,
|
|
8737
8859
|
...rest
|
|
8738
8860
|
}) => {
|
|
8739
|
-
const { onBlur, onChange, onFocus, isEditing, value, emptiable } = useInlineEditContext();
|
|
8740
|
-
const genereatedId = useId16();
|
|
8741
|
-
const uniqueId = id != null ? id : `${genereatedId}-InlineInput`;
|
|
8742
|
-
const hasErrorMessage = !!errorMessage;
|
|
8743
|
-
const hasError = !!error;
|
|
8744
|
-
const hasErrorState = hasError || hasErrorMessage;
|
|
8745
|
-
const errorMessageId = derivativeIdGenerator(uniqueId, "errorMessage");
|
|
8746
|
-
const descId = derivativeIdGenerator(uniqueId, "desc");
|
|
8747
8861
|
const inputRef = useRef26(null);
|
|
8748
8862
|
const combinedRef = useCombinedRef(ref, inputRef);
|
|
8749
|
-
return /* @__PURE__ */
|
|
8750
|
-
|
|
8751
|
-
|
|
8752
|
-
|
|
8753
|
-
|
|
8754
|
-
|
|
8755
|
-
|
|
8756
|
-
|
|
8757
|
-
|
|
8758
|
-
|
|
8759
|
-
|
|
8760
|
-
|
|
8761
|
-
|
|
8762
|
-
/* @__PURE__ */ jsx272(
|
|
8763
|
-
"input",
|
|
8764
|
-
{
|
|
8765
|
-
...rest,
|
|
8766
|
-
value,
|
|
8767
|
-
onChange,
|
|
8768
|
-
onBlur,
|
|
8769
|
-
onFocus,
|
|
8770
|
-
id: uniqueId,
|
|
8771
|
-
ref: combinedRef,
|
|
8772
|
-
"aria-describedby": spaceSeparatedIdListGenerator([
|
|
8773
|
-
hasErrorMessage ? errorMessageId : void 0,
|
|
8774
|
-
descId,
|
|
8775
|
-
ariaDescribedby
|
|
8776
|
-
]),
|
|
8777
|
-
"aria-invalid": hasErrorState,
|
|
8778
|
-
className: cn(
|
|
8779
|
-
InlineEdit_default["inline-input"],
|
|
8780
|
-
!hideIcon && !isEditing && InlineEdit_default["inline-input--with-icon"],
|
|
8781
|
-
typographyStyles_default["body-medium"],
|
|
8782
|
-
hasErrorState && Input_default["input--stateful-danger"],
|
|
8783
|
-
focusable
|
|
8784
|
-
)
|
|
8785
|
-
}
|
|
8786
|
-
)
|
|
8787
|
-
] }),
|
|
8788
|
-
inlineEditVisuallyHidden(descId, emptiable),
|
|
8789
|
-
renderInputMessage(void 0, void 0, errorMessage, errorMessageId)
|
|
8790
|
-
] });
|
|
8863
|
+
return /* @__PURE__ */ jsx272(
|
|
8864
|
+
InlineEditContextProvider,
|
|
8865
|
+
{
|
|
8866
|
+
onSetValue,
|
|
8867
|
+
emptiable,
|
|
8868
|
+
inputRef,
|
|
8869
|
+
value,
|
|
8870
|
+
onFocus,
|
|
8871
|
+
onChange,
|
|
8872
|
+
onBlur,
|
|
8873
|
+
children: /* @__PURE__ */ jsx272(InlineField, { elementType: "input", ...rest, ref: combinedRef })
|
|
8874
|
+
}
|
|
8875
|
+
);
|
|
8791
8876
|
};
|
|
8792
|
-
InlineInput.displayName = "InlineInput";
|
|
8793
8877
|
|
|
8794
|
-
// src/components/InlineEdit/
|
|
8878
|
+
// src/components/InlineEdit/InlineEditSelect/InlineEditSelect.tsx
|
|
8879
|
+
import { useRef as useRef27 } from "react";
|
|
8795
8880
|
import { jsx as jsx273 } from "react/jsx-runtime";
|
|
8796
|
-
var
|
|
8881
|
+
var InlineEditSelect = ({
|
|
8797
8882
|
onSetValue,
|
|
8798
8883
|
emptiable,
|
|
8799
8884
|
value,
|
|
@@ -8815,7 +8900,7 @@ var InlineEditInput = ({
|
|
|
8815
8900
|
onFocus,
|
|
8816
8901
|
onChange,
|
|
8817
8902
|
onBlur,
|
|
8818
|
-
children: /* @__PURE__ */ jsx273(
|
|
8903
|
+
children: /* @__PURE__ */ jsx273(InlineField, { elementType: "select", ...rest, ref: combinedRef })
|
|
8819
8904
|
}
|
|
8820
8905
|
);
|
|
8821
8906
|
};
|
|
@@ -8853,7 +8938,7 @@ var NavigationItem = ({ isCurrent, ...rest }) => /* @__PURE__ */ jsx274(
|
|
|
8853
8938
|
);
|
|
8854
8939
|
|
|
8855
8940
|
// src/components/InternalHeader/InternalHeader.tsx
|
|
8856
|
-
import { jsx as jsx275, jsxs as
|
|
8941
|
+
import { jsx as jsx275, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
8857
8942
|
var InternalHeader = (props) => {
|
|
8858
8943
|
const {
|
|
8859
8944
|
applicationDesc,
|
|
@@ -8882,7 +8967,7 @@ var InternalHeader = (props) => {
|
|
|
8882
8967
|
const hasContextMenuElements = !!contextMenuItems && contextMenuItems.length > 0;
|
|
8883
8968
|
const hasSmallScreenBreakpoint = !!smallScreenBreakpoint;
|
|
8884
8969
|
const hasNavInContextMenu = hasSmallScreenBreakpoint && hasNavigationElements;
|
|
8885
|
-
const navigation = hasNavigationElements ? /* @__PURE__ */ jsx275("nav", { "aria-label": t(
|
|
8970
|
+
const navigation = hasNavigationElements ? /* @__PURE__ */ jsx275("nav", { "aria-label": t(texts16.siteNavigation), children: /* @__PURE__ */ jsx275(
|
|
8886
8971
|
ShowHide,
|
|
8887
8972
|
{
|
|
8888
8973
|
as: StylelessList,
|
|
@@ -8905,7 +8990,7 @@ var InternalHeader = (props) => {
|
|
|
8905
8990
|
) }) : null;
|
|
8906
8991
|
const hasContextMenu = hasContextMenuElements || !!user || hasNavInContextMenu;
|
|
8907
8992
|
const hasContextMenuLargeScreen = hasContextMenuElements || !!user;
|
|
8908
|
-
return /* @__PURE__ */
|
|
8993
|
+
return /* @__PURE__ */ jsxs63(
|
|
8909
8994
|
Box,
|
|
8910
8995
|
{
|
|
8911
8996
|
display: "flex",
|
|
@@ -8940,22 +9025,22 @@ var InternalHeader = (props) => {
|
|
|
8940
9025
|
{
|
|
8941
9026
|
showBelow: !hasContextMenuLargeScreen && hasSmallScreenBreakpoint ? smallScreenBreakpoint : void 0,
|
|
8942
9027
|
className: cn(InternalHeader_default["context-menu-group"]),
|
|
8943
|
-
children: /* @__PURE__ */
|
|
9028
|
+
children: /* @__PURE__ */ jsxs63(OverflowMenuGroup, { children: [
|
|
8944
9029
|
/* @__PURE__ */ jsx275(
|
|
8945
9030
|
Button,
|
|
8946
9031
|
{
|
|
8947
9032
|
icon: hasNavInContextMenu ? MenuIcon : MoreVerticalIcon,
|
|
8948
9033
|
purpose: "tertiary",
|
|
8949
|
-
"aria-label": t(
|
|
9034
|
+
"aria-label": t(texts16.openMenu)
|
|
8950
9035
|
}
|
|
8951
9036
|
),
|
|
8952
|
-
/* @__PURE__ */
|
|
9037
|
+
/* @__PURE__ */ jsxs63(OverflowMenu, { className: InternalHeader_default["context-menu"], children: [
|
|
8953
9038
|
user && /* @__PURE__ */ jsx275(OverflowMenuList, { children: user.href ? /* @__PURE__ */ jsx275(OverflowMenuLink, { icon: PersonIcon, ...user }) : /* @__PURE__ */ jsx275(OverflowMenuSpan, { icon: PersonIcon, ...user }) }),
|
|
8954
9039
|
hasNavInContextMenu && /* @__PURE__ */ jsx275(
|
|
8955
9040
|
ShowHide,
|
|
8956
9041
|
{
|
|
8957
9042
|
as: "nav",
|
|
8958
|
-
"aria-label": t(
|
|
9043
|
+
"aria-label": t(texts16.siteNavigation),
|
|
8959
9044
|
showBelow: smallScreenBreakpoint,
|
|
8960
9045
|
children: /* @__PURE__ */ jsx275(OverflowMenuList, { children: navItems.map((item) => /* @__PURE__ */ jsx275(OverflowMenuLink, { ...item })) })
|
|
8961
9046
|
}
|
|
@@ -8984,7 +9069,7 @@ var InternalHeader = (props) => {
|
|
|
8984
9069
|
);
|
|
8985
9070
|
};
|
|
8986
9071
|
InternalHeader.displayName = "InternalHeader";
|
|
8987
|
-
var
|
|
9072
|
+
var texts16 = createTexts({
|
|
8988
9073
|
openMenu: {
|
|
8989
9074
|
nb: "\xC5pne meny",
|
|
8990
9075
|
no: "\xC5pne meny",
|
|
@@ -9062,7 +9147,7 @@ var LocalMessage_default = {
|
|
|
9062
9147
|
};
|
|
9063
9148
|
|
|
9064
9149
|
// src/components/LocalMessage/LocalMessage.tsx
|
|
9065
|
-
import { Fragment as
|
|
9150
|
+
import { Fragment as Fragment7, jsx as jsx278, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
9066
9151
|
var icons2 = {
|
|
9067
9152
|
info: InfoIcon,
|
|
9068
9153
|
danger: ErrorIcon,
|
|
@@ -9086,9 +9171,9 @@ var LocalMessage = ({
|
|
|
9086
9171
|
const { t } = useTranslation();
|
|
9087
9172
|
const [isClosed, setClosed] = useState20(false);
|
|
9088
9173
|
if (isClosed) {
|
|
9089
|
-
return /* @__PURE__ */ jsx278(
|
|
9174
|
+
return /* @__PURE__ */ jsx278(Fragment7, {});
|
|
9090
9175
|
}
|
|
9091
|
-
return /* @__PURE__ */
|
|
9176
|
+
return /* @__PURE__ */ jsxs64(
|
|
9092
9177
|
Box,
|
|
9093
9178
|
{
|
|
9094
9179
|
...getBaseHTMLProps(
|
|
@@ -9124,7 +9209,7 @@ var LocalMessage = ({
|
|
|
9124
9209
|
purpose: "tertiary",
|
|
9125
9210
|
onClick: () => {
|
|
9126
9211
|
setClosed(true);
|
|
9127
|
-
onClose
|
|
9212
|
+
onClose == null ? void 0 : onClose();
|
|
9128
9213
|
},
|
|
9129
9214
|
size: "xsmall",
|
|
9130
9215
|
"aria-label": t(commonTexts.closeMessage),
|
|
@@ -9141,7 +9226,7 @@ LocalMessage.displayName = "LocalMessage";
|
|
|
9141
9226
|
import {
|
|
9142
9227
|
useContext as useContext17,
|
|
9143
9228
|
useEffect as useEffect24,
|
|
9144
|
-
useId as
|
|
9229
|
+
useId as useId16,
|
|
9145
9230
|
useRef as useRef28
|
|
9146
9231
|
} from "react";
|
|
9147
9232
|
import { createPortal as createPortal3 } from "react-dom";
|
|
@@ -9157,7 +9242,7 @@ var Modal_default = {
|
|
|
9157
9242
|
};
|
|
9158
9243
|
|
|
9159
9244
|
// src/components/Modal/Modal.tsx
|
|
9160
|
-
import { jsx as jsx279, jsxs as
|
|
9245
|
+
import { jsx as jsx279, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
9161
9246
|
var Modal = ({
|
|
9162
9247
|
isOpen = false,
|
|
9163
9248
|
parentElement,
|
|
@@ -9173,7 +9258,7 @@ var Modal = ({
|
|
|
9173
9258
|
ref,
|
|
9174
9259
|
...rest
|
|
9175
9260
|
}) => {
|
|
9176
|
-
const generatedId =
|
|
9261
|
+
const generatedId = useId16();
|
|
9177
9262
|
const modalId = id != null ? id : `${generatedId}-modal`;
|
|
9178
9263
|
const headerId = `${modalId}-header`;
|
|
9179
9264
|
const modalRef = useFocusTrap(isOpen, initialFocusRef);
|
|
@@ -9215,7 +9300,7 @@ var Modal = ({
|
|
|
9215
9300
|
isMounted: isOpen && hasTransitionedIn,
|
|
9216
9301
|
ref: backdropRef,
|
|
9217
9302
|
onClick: onBackdropClick,
|
|
9218
|
-
children: /* @__PURE__ */
|
|
9303
|
+
children: /* @__PURE__ */ jsxs65(
|
|
9219
9304
|
Paper,
|
|
9220
9305
|
{
|
|
9221
9306
|
display: "flex",
|
|
@@ -9242,7 +9327,7 @@ var Modal = ({
|
|
|
9242
9327
|
id: modalId,
|
|
9243
9328
|
elevation: 4,
|
|
9244
9329
|
children: [
|
|
9245
|
-
/* @__PURE__ */
|
|
9330
|
+
/* @__PURE__ */ jsxs65(
|
|
9246
9331
|
HStack,
|
|
9247
9332
|
{
|
|
9248
9333
|
paddingBlock: "0 x0.75",
|
|
@@ -9363,7 +9448,7 @@ function PaginationGenerator(pagesAmount, activePage) {
|
|
|
9363
9448
|
// src/components/Select/Select.tsx
|
|
9364
9449
|
import {
|
|
9365
9450
|
useContext as useContext18,
|
|
9366
|
-
useId as
|
|
9451
|
+
useId as useId17
|
|
9367
9452
|
} from "react";
|
|
9368
9453
|
import {
|
|
9369
9454
|
default as ReactSelect
|
|
@@ -9650,7 +9735,7 @@ import { useMemo as useMemo2 } from "react";
|
|
|
9650
9735
|
import {
|
|
9651
9736
|
components
|
|
9652
9737
|
} from "react-select";
|
|
9653
|
-
import { jsx as jsx282, jsxs as
|
|
9738
|
+
import { jsx as jsx282, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
9654
9739
|
var {
|
|
9655
9740
|
Option,
|
|
9656
9741
|
NoOptionsMessage,
|
|
@@ -9671,7 +9756,7 @@ var getIndicatorIconSize = (componentSize) => {
|
|
|
9671
9756
|
return "small";
|
|
9672
9757
|
}
|
|
9673
9758
|
};
|
|
9674
|
-
var DDSOption = (props, componentSize) => /* @__PURE__ */
|
|
9759
|
+
var DDSOption = (props, componentSize) => /* @__PURE__ */ jsxs66(Option, { ...props, children: [
|
|
9675
9760
|
props.isSelected && /* @__PURE__ */ jsx282(Icon, { icon: CheckIcon, iconSize: getFormInputIconSize(componentSize) }),
|
|
9676
9761
|
props.children
|
|
9677
9762
|
] });
|
|
@@ -9702,7 +9787,7 @@ var DDSInput = (props, ariaInvalid, ariaDescribedby) => /* @__PURE__ */ jsx282(
|
|
|
9702
9787
|
function createDDSControl(componentSize, readOnly, icon, dataTestId) {
|
|
9703
9788
|
return function DDSControlWrapper(props) {
|
|
9704
9789
|
const { className, children, innerProps, ...rest } = props;
|
|
9705
|
-
return /* @__PURE__ */
|
|
9790
|
+
return /* @__PURE__ */ jsxs66(
|
|
9706
9791
|
Control,
|
|
9707
9792
|
{
|
|
9708
9793
|
...rest,
|
|
@@ -9740,7 +9825,7 @@ var DDSControl = (componentSize, readOnly, icon, dataTestId) => useMemo2(
|
|
|
9740
9825
|
);
|
|
9741
9826
|
|
|
9742
9827
|
// src/components/Select/Select.tsx
|
|
9743
|
-
import { jsx as jsx283, jsxs as
|
|
9828
|
+
import { jsx as jsx283, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
9744
9829
|
function Select({
|
|
9745
9830
|
id,
|
|
9746
9831
|
label,
|
|
@@ -9776,7 +9861,7 @@ function Select({
|
|
|
9776
9861
|
throw new Error("Select must be used within a ThemeProvider");
|
|
9777
9862
|
}
|
|
9778
9863
|
const portalTarget = menuPortalTarget != null ? menuPortalTarget : themeContext == null ? void 0 : themeContext.el;
|
|
9779
|
-
const generatedId =
|
|
9864
|
+
const generatedId = useId17();
|
|
9780
9865
|
const uniqueId = id != null ? id : `${generatedId}-select`;
|
|
9781
9866
|
const singleValueId = !isMulti ? `${uniqueId}-singleValue` : void 0;
|
|
9782
9867
|
const hasLabel = !!label;
|
|
@@ -9840,7 +9925,7 @@ function Select({
|
|
|
9840
9925
|
openMenuOnClick: readOnly ? false : openMenuOnClick ? openMenuOnClick : void 0,
|
|
9841
9926
|
...rest
|
|
9842
9927
|
};
|
|
9843
|
-
return /* @__PURE__ */
|
|
9928
|
+
return /* @__PURE__ */ jsxs67(
|
|
9844
9929
|
Box,
|
|
9845
9930
|
{
|
|
9846
9931
|
width: inputWidth,
|
|
@@ -9872,7 +9957,7 @@ function Select({
|
|
|
9872
9957
|
Select.displayName = "Select";
|
|
9873
9958
|
|
|
9874
9959
|
// src/components/Select/NativeSelect/NativeSelect.tsx
|
|
9875
|
-
import { useId as
|
|
9960
|
+
import { useId as useId18 } from "react";
|
|
9876
9961
|
|
|
9877
9962
|
// src/components/Select/NativeSelect/NativeSelect.module.css
|
|
9878
9963
|
var NativeSelect_default = {
|
|
@@ -9886,7 +9971,7 @@ var NativeSelect_default = {
|
|
|
9886
9971
|
};
|
|
9887
9972
|
|
|
9888
9973
|
// src/components/Select/NativeSelect/NativeSelect.tsx
|
|
9889
|
-
import { jsx as jsx284, jsxs as
|
|
9974
|
+
import { jsx as jsx284, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
9890
9975
|
var NativeSelect = ({
|
|
9891
9976
|
id,
|
|
9892
9977
|
children,
|
|
@@ -9906,7 +9991,7 @@ var NativeSelect = ({
|
|
|
9906
9991
|
onMouseDown,
|
|
9907
9992
|
...rest
|
|
9908
9993
|
}) => {
|
|
9909
|
-
const generatedId =
|
|
9994
|
+
const generatedId = useId18();
|
|
9910
9995
|
const uniqueId = id != null ? id : `${generatedId}-native-select`;
|
|
9911
9996
|
const hasErrorMessage = !!errorMessage;
|
|
9912
9997
|
const hasTip = !!tip;
|
|
@@ -9918,7 +10003,7 @@ var NativeSelect = ({
|
|
|
9918
10003
|
width,
|
|
9919
10004
|
componentSize === "xsmall" && "var(--dds-input-default-width-xsmall)"
|
|
9920
10005
|
);
|
|
9921
|
-
return /* @__PURE__ */
|
|
10006
|
+
return /* @__PURE__ */ jsxs68("div", { className, style, children: [
|
|
9922
10007
|
hasLabel && /* @__PURE__ */ jsx284(
|
|
9923
10008
|
Label,
|
|
9924
10009
|
{
|
|
@@ -9929,7 +10014,7 @@ var NativeSelect = ({
|
|
|
9929
10014
|
children: label
|
|
9930
10015
|
}
|
|
9931
10016
|
),
|
|
9932
|
-
/* @__PURE__ */
|
|
10017
|
+
/* @__PURE__ */ jsxs68(Box, { position: "relative", width: inputWidth, children: [
|
|
9933
10018
|
/* @__PURE__ */ jsx284(
|
|
9934
10019
|
"select",
|
|
9935
10020
|
{
|
|
@@ -9984,7 +10069,7 @@ NativeSelectPlaceholder.displayName = "NativeSelectPlaceholder";
|
|
|
9984
10069
|
var createSelectOptions = (...args) => args.map((v) => ({ label: v, value: v }));
|
|
9985
10070
|
|
|
9986
10071
|
// src/components/Pagination/Pagination.tsx
|
|
9987
|
-
import { jsx as jsx285, jsxs as
|
|
10072
|
+
import { jsx as jsx285, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
9988
10073
|
var Pagination = ({
|
|
9989
10074
|
itemsAmount,
|
|
9990
10075
|
defaultItemsPerPage = 10,
|
|
@@ -10013,7 +10098,7 @@ var Pagination = ({
|
|
|
10013
10098
|
const pagesLength = Math.ceil(itemsAmount / itemsPerPage);
|
|
10014
10099
|
const items = PaginationGenerator(pagesLength, activePage);
|
|
10015
10100
|
const onPageChange = (event, page) => {
|
|
10016
|
-
page
|
|
10101
|
+
if (page) setActivePage(page);
|
|
10017
10102
|
if (event && onChange) {
|
|
10018
10103
|
onChange(event, page);
|
|
10019
10104
|
}
|
|
@@ -10036,7 +10121,7 @@ var Pagination = ({
|
|
|
10036
10121
|
onClick: (event) => {
|
|
10037
10122
|
onPageChange(event, item);
|
|
10038
10123
|
},
|
|
10039
|
-
"aria-label": isActive ? t(
|
|
10124
|
+
"aria-label": isActive ? t(texts17.currentPage(item)) : t(texts17.page(item)),
|
|
10040
10125
|
children: item
|
|
10041
10126
|
}
|
|
10042
10127
|
) : /* @__PURE__ */ jsx285(
|
|
@@ -10056,7 +10141,7 @@ var Pagination = ({
|
|
|
10056
10141
|
onClick: (event) => {
|
|
10057
10142
|
onPageChange(event, activePage - 1);
|
|
10058
10143
|
},
|
|
10059
|
-
"aria-label": t(
|
|
10144
|
+
"aria-label": t(texts17.previousPage)
|
|
10060
10145
|
}
|
|
10061
10146
|
);
|
|
10062
10147
|
const nextPageButton = /* @__PURE__ */ jsx285(
|
|
@@ -10068,24 +10153,24 @@ var Pagination = ({
|
|
|
10068
10153
|
onClick: (event) => {
|
|
10069
10154
|
onPageChange(event, activePage + 1);
|
|
10070
10155
|
},
|
|
10071
|
-
"aria-label": t(
|
|
10156
|
+
"aria-label": t(texts17.nextPage)
|
|
10072
10157
|
}
|
|
10073
10158
|
);
|
|
10074
10159
|
const isOnFirstPage = activePage === 1;
|
|
10075
10160
|
const isOnLastPage = activePage === pagesLength;
|
|
10076
|
-
const navigation = withPagination ? /* @__PURE__ */
|
|
10161
|
+
const navigation = withPagination ? /* @__PURE__ */ jsxs69(
|
|
10077
10162
|
Box,
|
|
10078
10163
|
{
|
|
10079
10164
|
as: "nav",
|
|
10080
10165
|
ref,
|
|
10081
|
-
"aria-label": t(
|
|
10166
|
+
"aria-label": t(texts17.pagination),
|
|
10082
10167
|
display: "flex",
|
|
10083
10168
|
alignItems: "center",
|
|
10084
10169
|
...!withSelect && !withCounter && {
|
|
10085
10170
|
...getBaseHTMLProps(id, className, htmlProps, rest)
|
|
10086
10171
|
},
|
|
10087
10172
|
children: [
|
|
10088
|
-
/* @__PURE__ */
|
|
10173
|
+
/* @__PURE__ */ jsxs69(
|
|
10089
10174
|
ShowHide,
|
|
10090
10175
|
{
|
|
10091
10176
|
as: "ol",
|
|
@@ -10118,7 +10203,7 @@ var Pagination = ({
|
|
|
10118
10203
|
]
|
|
10119
10204
|
}
|
|
10120
10205
|
),
|
|
10121
|
-
!!smallScreenBreakpoint && /* @__PURE__ */
|
|
10206
|
+
!!smallScreenBreakpoint && /* @__PURE__ */ jsxs69(
|
|
10122
10207
|
ShowHide,
|
|
10123
10208
|
{
|
|
10124
10209
|
as: "ol",
|
|
@@ -10142,7 +10227,7 @@ var Pagination = ({
|
|
|
10142
10227
|
onClick: (event) => {
|
|
10143
10228
|
onPageChange(event, 1);
|
|
10144
10229
|
},
|
|
10145
|
-
"aria-label": t(
|
|
10230
|
+
"aria-label": t(texts17.firstPage)
|
|
10146
10231
|
}
|
|
10147
10232
|
)
|
|
10148
10233
|
}
|
|
@@ -10196,7 +10281,7 @@ var Pagination = ({
|
|
|
10196
10281
|
onClick: (event) => {
|
|
10197
10282
|
onPageChange(event, pagesLength);
|
|
10198
10283
|
},
|
|
10199
|
-
"aria-label": t(
|
|
10284
|
+
"aria-label": t(texts17.lastPage)
|
|
10200
10285
|
}
|
|
10201
10286
|
)
|
|
10202
10287
|
}
|
|
@@ -10209,7 +10294,7 @@ var Pagination = ({
|
|
|
10209
10294
|
) : null;
|
|
10210
10295
|
const activePageFirstItem = activePage === 1 ? 1 : activePage * itemsPerPage - itemsPerPage + 1;
|
|
10211
10296
|
const activePageLastItem = activePage === pagesLength ? itemsAmount : activePage * itemsPerPage;
|
|
10212
|
-
return !withCounter && !withSelect ? navigation : /* @__PURE__ */
|
|
10297
|
+
return !withCounter && !withSelect ? navigation : /* @__PURE__ */ jsxs69(
|
|
10213
10298
|
Box,
|
|
10214
10299
|
{
|
|
10215
10300
|
display: "flex",
|
|
@@ -10220,7 +10305,7 @@ var Pagination = ({
|
|
|
10220
10305
|
alignItems: applyResponsiveStyle("center", smallScreenBreakpoint),
|
|
10221
10306
|
...getBaseHTMLProps(id, className, htmlProps, rest),
|
|
10222
10307
|
children: [
|
|
10223
|
-
/* @__PURE__ */
|
|
10308
|
+
/* @__PURE__ */ jsxs69("div", { className: Pagination_default.indicators, children: [
|
|
10224
10309
|
withSelect && /* @__PURE__ */ jsx285(
|
|
10225
10310
|
Select,
|
|
10226
10311
|
{
|
|
@@ -10234,11 +10319,11 @@ var Pagination = ({
|
|
|
10234
10319
|
isClearable: false,
|
|
10235
10320
|
onChange: handleSelectChange,
|
|
10236
10321
|
componentSize: "small",
|
|
10237
|
-
"aria-label": t(
|
|
10322
|
+
"aria-label": t(texts17.itemsPerPage)
|
|
10238
10323
|
}
|
|
10239
10324
|
),
|
|
10240
10325
|
withCounter && /* @__PURE__ */ jsx285(Paragraph, { children: t(
|
|
10241
|
-
|
|
10326
|
+
texts17.showsAmountOfTotalItems(
|
|
10242
10327
|
activePageFirstItem,
|
|
10243
10328
|
activePageLastItem,
|
|
10244
10329
|
itemsAmount
|
|
@@ -10251,7 +10336,7 @@ var Pagination = ({
|
|
|
10251
10336
|
);
|
|
10252
10337
|
};
|
|
10253
10338
|
Pagination.displayName = "Pagination";
|
|
10254
|
-
var
|
|
10339
|
+
var texts17 = createTexts({
|
|
10255
10340
|
pagination: {
|
|
10256
10341
|
nb: "Paginering",
|
|
10257
10342
|
no: "Paginering",
|
|
@@ -10311,7 +10396,7 @@ var texts16 = createTexts({
|
|
|
10311
10396
|
// src/components/PhoneInput/PhoneInput.tsx
|
|
10312
10397
|
import {
|
|
10313
10398
|
useEffect as useEffect25,
|
|
10314
|
-
useId as
|
|
10399
|
+
useId as useId19,
|
|
10315
10400
|
useLayoutEffect as useLayoutEffect2,
|
|
10316
10401
|
useRef as useRef29,
|
|
10317
10402
|
useState as useState22
|
|
@@ -10715,7 +10800,7 @@ var PhoneInput_default = {
|
|
|
10715
10800
|
};
|
|
10716
10801
|
|
|
10717
10802
|
// src/components/PhoneInput/PhoneInput.tsx
|
|
10718
|
-
import { jsx as jsx286, jsxs as
|
|
10803
|
+
import { jsx as jsx286, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
10719
10804
|
var prioritizedCountries = [
|
|
10720
10805
|
COUNTRIES.NO,
|
|
10721
10806
|
COUNTRIES.SE,
|
|
@@ -10774,9 +10859,9 @@ var PhoneInput = ({
|
|
|
10774
10859
|
}) => {
|
|
10775
10860
|
var _a;
|
|
10776
10861
|
const { t } = useTranslation();
|
|
10777
|
-
const tGroupLabel = groupLabel != null ? groupLabel : t(
|
|
10778
|
-
const tSelectLabel = selectLabel != null ? selectLabel : t(
|
|
10779
|
-
const generatedId =
|
|
10862
|
+
const tGroupLabel = groupLabel != null ? groupLabel : t(texts18.countryCodeAndPhoneNumber);
|
|
10863
|
+
const tSelectLabel = selectLabel != null ? selectLabel : t(texts18.countryCode);
|
|
10864
|
+
const generatedId = useId19();
|
|
10780
10865
|
const uniqueId = (_a = props.id) != null ? _a : generatedId;
|
|
10781
10866
|
const phoneInputId = `${uniqueId}-phone-input`;
|
|
10782
10867
|
const phoneNumberId = `${uniqueId}-phone-number`;
|
|
@@ -10853,7 +10938,7 @@ var PhoneInput = ({
|
|
|
10853
10938
|
const showRequiredStyling = !!(required || ariaRequired);
|
|
10854
10939
|
const bp = props.smallScreenBreakpoint;
|
|
10855
10940
|
const widthDefault = componentSize === "xsmall" && "var(--dds-input-default-width-xsmall)";
|
|
10856
|
-
return /* @__PURE__ */
|
|
10941
|
+
return /* @__PURE__ */ jsxs70("div", { className: cn(className, Input_default.container), style, children: [
|
|
10857
10942
|
hasLabel && /* @__PURE__ */ jsx286(
|
|
10858
10943
|
Label,
|
|
10859
10944
|
{
|
|
@@ -10864,7 +10949,7 @@ var PhoneInput = ({
|
|
|
10864
10949
|
children: label
|
|
10865
10950
|
}
|
|
10866
10951
|
),
|
|
10867
|
-
/* @__PURE__ */
|
|
10952
|
+
/* @__PURE__ */ jsxs70(
|
|
10868
10953
|
Box,
|
|
10869
10954
|
{
|
|
10870
10955
|
display: "flex",
|
|
@@ -10902,7 +10987,7 @@ var PhoneInput = ({
|
|
|
10902
10987
|
children: countryOptions.map((item, index) => /* @__PURE__ */ jsx286("option", { value: item.countryCode, children: item.label }, index))
|
|
10903
10988
|
}
|
|
10904
10989
|
),
|
|
10905
|
-
/* @__PURE__ */
|
|
10990
|
+
/* @__PURE__ */ jsxs70(Box, { width: "100%", className: Input_default["input-group"], children: [
|
|
10906
10991
|
/* @__PURE__ */ jsx286(
|
|
10907
10992
|
"span",
|
|
10908
10993
|
{
|
|
@@ -10953,7 +11038,7 @@ var getCallingCode = (s) => {
|
|
|
10953
11038
|
var _a;
|
|
10954
11039
|
return (_a = s.substring(s.indexOf("+"), s.length)) != null ? _a : "";
|
|
10955
11040
|
};
|
|
10956
|
-
var
|
|
11041
|
+
var texts18 = createTexts({
|
|
10957
11042
|
countryCode: {
|
|
10958
11043
|
nb: "Landskode",
|
|
10959
11044
|
no: "Landskode",
|
|
@@ -10972,7 +11057,7 @@ var texts17 = createTexts({
|
|
|
10972
11057
|
import {
|
|
10973
11058
|
useContext as useContext20,
|
|
10974
11059
|
useEffect as useEffect26,
|
|
10975
|
-
useId as
|
|
11060
|
+
useId as useId20
|
|
10976
11061
|
} from "react";
|
|
10977
11062
|
import { createPortal as createPortal4 } from "react-dom";
|
|
10978
11063
|
|
|
@@ -10993,7 +11078,7 @@ var PopoverContext = createContext13({});
|
|
|
10993
11078
|
var usePopoverContext = () => useContext19(PopoverContext);
|
|
10994
11079
|
|
|
10995
11080
|
// src/components/Popover/Popover.tsx
|
|
10996
|
-
import { jsx as jsx287, jsxs as
|
|
11081
|
+
import { jsx as jsx287, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
10997
11082
|
var Popover = ({
|
|
10998
11083
|
id,
|
|
10999
11084
|
header,
|
|
@@ -11033,7 +11118,7 @@ var Popover = ({
|
|
|
11033
11118
|
} = context;
|
|
11034
11119
|
const { t } = useTranslation();
|
|
11035
11120
|
const hasContext = !isEmpty(context);
|
|
11036
|
-
const generatedId =
|
|
11121
|
+
const generatedId = useId20();
|
|
11037
11122
|
const uniquePopoverId = id != null ? id : `${generatedId}-popover`;
|
|
11038
11123
|
const [
|
|
11039
11124
|
popoverId,
|
|
@@ -11071,7 +11156,7 @@ var Popover = ({
|
|
|
11071
11156
|
);
|
|
11072
11157
|
const multiRef = useCombinedRef(ref, popoverRef, floatingRef);
|
|
11073
11158
|
useEffect26(() => {
|
|
11074
|
-
setFloatOptions
|
|
11159
|
+
setFloatOptions == null ? void 0 : setFloatOptions({ placement, offset });
|
|
11075
11160
|
}, [placement, offset]);
|
|
11076
11161
|
useOnClickOutside([popoverRef.current, anchorEl], () => {
|
|
11077
11162
|
if (isOpen && !hasContext) onClose == null ? void 0 : onClose();
|
|
@@ -11081,7 +11166,7 @@ var Popover = ({
|
|
|
11081
11166
|
});
|
|
11082
11167
|
const hasTitle = !!header;
|
|
11083
11168
|
const openCn = hasTransitionedIn && isOpen ? "open" : "closed";
|
|
11084
|
-
const popover = /* @__PURE__ */
|
|
11169
|
+
const popover = /* @__PURE__ */ jsxs71(
|
|
11085
11170
|
Paper,
|
|
11086
11171
|
{
|
|
11087
11172
|
...getBaseHTMLProps(
|
|
@@ -11143,7 +11228,7 @@ import {
|
|
|
11143
11228
|
Children as ReactChildren4,
|
|
11144
11229
|
cloneElement as cloneElement4,
|
|
11145
11230
|
isValidElement as isValidElement4,
|
|
11146
|
-
useId as
|
|
11231
|
+
useId as useId21,
|
|
11147
11232
|
useRef as useRef30,
|
|
11148
11233
|
useState as useState23
|
|
11149
11234
|
} from "react";
|
|
@@ -11161,17 +11246,17 @@ var PopoverGroup = ({
|
|
|
11161
11246
|
const [internalIsOpen, internalSetIsOpen] = useState23(isInitiallyOpen);
|
|
11162
11247
|
const open = propIsOpen != null ? propIsOpen : internalIsOpen;
|
|
11163
11248
|
const setOpen = propSetIsOpen != null ? propSetIsOpen : internalSetIsOpen;
|
|
11164
|
-
const generatedId =
|
|
11249
|
+
const generatedId = useId21();
|
|
11165
11250
|
const uniquePopoverId = popoverId != null ? popoverId : `${generatedId}-popover`;
|
|
11166
11251
|
const [floatOptions, setFloatOptions] = useState23();
|
|
11167
11252
|
const { refs, styles: positionStyles } = useFloatPosition(null, floatOptions);
|
|
11168
11253
|
const handleClose = () => {
|
|
11169
11254
|
setOpen(false);
|
|
11170
|
-
onClose
|
|
11255
|
+
onClose == null ? void 0 : onClose();
|
|
11171
11256
|
};
|
|
11172
11257
|
const handleOpen = () => {
|
|
11173
11258
|
setOpen(true);
|
|
11174
|
-
onOpen
|
|
11259
|
+
onOpen == null ? void 0 : onOpen();
|
|
11175
11260
|
};
|
|
11176
11261
|
const handleToggle = () => {
|
|
11177
11262
|
if (open) {
|
|
@@ -11270,7 +11355,7 @@ var ProgressTracker_default = {
|
|
|
11270
11355
|
|
|
11271
11356
|
// src/components/ProgressTracker/ProgressTrackerItem.tsx
|
|
11272
11357
|
import { useMemo as useMemo3 } from "react";
|
|
11273
|
-
import { Fragment as
|
|
11358
|
+
import { Fragment as Fragment8, jsx as jsx289, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
11274
11359
|
var toItemState = (active, completed, disabled) => {
|
|
11275
11360
|
if (disabled) {
|
|
11276
11361
|
return "disabled";
|
|
@@ -11307,8 +11392,8 @@ var ProgressTrackerItem = (props) => {
|
|
|
11307
11392
|
const itemState = toItemState(active, completed, disabled);
|
|
11308
11393
|
const handleClick = () => {
|
|
11309
11394
|
if (!disabled) {
|
|
11310
|
-
onClick
|
|
11311
|
-
handleStepChange
|
|
11395
|
+
onClick == null ? void 0 : onClick(index);
|
|
11396
|
+
handleStepChange == null ? void 0 : handleStepChange(index);
|
|
11312
11397
|
}
|
|
11313
11398
|
};
|
|
11314
11399
|
const stepNumberContent = useMemo3(() => {
|
|
@@ -11320,7 +11405,7 @@ var ProgressTrackerItem = (props) => {
|
|
|
11320
11405
|
}
|
|
11321
11406
|
return index + 1;
|
|
11322
11407
|
}, [completed, icon, index]);
|
|
11323
|
-
const stepContent = /* @__PURE__ */
|
|
11408
|
+
const stepContent = /* @__PURE__ */ jsxs72(Fragment8, { children: [
|
|
11324
11409
|
/* @__PURE__ */ jsx289(
|
|
11325
11410
|
Box,
|
|
11326
11411
|
{
|
|
@@ -11336,7 +11421,7 @@ var ProgressTrackerItem = (props) => {
|
|
|
11336
11421
|
children: stepNumberContent
|
|
11337
11422
|
}
|
|
11338
11423
|
),
|
|
11339
|
-
/* @__PURE__ */
|
|
11424
|
+
/* @__PURE__ */ jsxs72(
|
|
11340
11425
|
"div",
|
|
11341
11426
|
{
|
|
11342
11427
|
className: cn(
|
|
@@ -11345,9 +11430,9 @@ var ProgressTrackerItem = (props) => {
|
|
|
11345
11430
|
typographyStyles_default["body-medium"]
|
|
11346
11431
|
),
|
|
11347
11432
|
children: [
|
|
11348
|
-
/* @__PURE__ */ jsx289(VisuallyHidden, { children: t(
|
|
11433
|
+
/* @__PURE__ */ jsx289(VisuallyHidden, { children: t(texts19.stepTextBefore(index + 1)) }),
|
|
11349
11434
|
children,
|
|
11350
|
-
/* @__PURE__ */ jsx289(VisuallyHidden, { children: completed ? t(
|
|
11435
|
+
/* @__PURE__ */ jsx289(VisuallyHidden, { children: completed ? t(texts19.completed) : t(texts19.uncompleted) })
|
|
11351
11436
|
]
|
|
11352
11437
|
}
|
|
11353
11438
|
)
|
|
@@ -11388,7 +11473,7 @@ var ProgressTrackerItem = (props) => {
|
|
|
11388
11473
|
);
|
|
11389
11474
|
};
|
|
11390
11475
|
ProgressTrackerItem.displayName = "ProgressTracker.Item";
|
|
11391
|
-
var
|
|
11476
|
+
var texts19 = createTexts({
|
|
11392
11477
|
stepTextBefore: (index) => ({
|
|
11393
11478
|
nb: `${index}. trinn, `,
|
|
11394
11479
|
no: `${index}. trinn, `,
|
|
@@ -11426,7 +11511,7 @@ var ProgressTracker = (() => {
|
|
|
11426
11511
|
const [thisActiveStep, setActiveStep] = useState24(activeStep);
|
|
11427
11512
|
const handleChange = (step) => {
|
|
11428
11513
|
setActiveStep(step);
|
|
11429
|
-
onStepChange
|
|
11514
|
+
onStepChange == null ? void 0 : onStepChange(step);
|
|
11430
11515
|
};
|
|
11431
11516
|
useEffect27(() => {
|
|
11432
11517
|
if (activeStep !== void 0 && activeStep != thisActiveStep) {
|
|
@@ -11451,7 +11536,7 @@ var ProgressTracker = (() => {
|
|
|
11451
11536
|
children: /* @__PURE__ */ jsx290(
|
|
11452
11537
|
"nav",
|
|
11453
11538
|
{
|
|
11454
|
-
"aria-label": ariaLabel != null ? ariaLabel : t(
|
|
11539
|
+
"aria-label": ariaLabel != null ? ariaLabel : t(texts20.stepProgression),
|
|
11455
11540
|
...getBaseHTMLProps(id, className, htmlProps, rest),
|
|
11456
11541
|
children: /* @__PURE__ */ jsx290(
|
|
11457
11542
|
Box,
|
|
@@ -11489,7 +11574,7 @@ function passIndexPropToProgressTrackerItem(children) {
|
|
|
11489
11574
|
})
|
|
11490
11575
|
);
|
|
11491
11576
|
}
|
|
11492
|
-
var
|
|
11577
|
+
var texts20 = createTexts({
|
|
11493
11578
|
stepProgression: {
|
|
11494
11579
|
nb: "Stegprogresjon",
|
|
11495
11580
|
no: "Stegprogresjon",
|
|
@@ -11499,7 +11584,7 @@ var texts19 = createTexts({
|
|
|
11499
11584
|
});
|
|
11500
11585
|
|
|
11501
11586
|
// src/components/ProgressBar/ProgressBar.tsx
|
|
11502
|
-
import { useId as
|
|
11587
|
+
import { useId as useId22 } from "react";
|
|
11503
11588
|
|
|
11504
11589
|
// src/components/ProgressBar/ProgressBar.module.css
|
|
11505
11590
|
var ProgressBar_default = {
|
|
@@ -11512,7 +11597,7 @@ var ProgressBar_default = {
|
|
|
11512
11597
|
};
|
|
11513
11598
|
|
|
11514
11599
|
// src/components/ProgressBar/ProgressBar.tsx
|
|
11515
|
-
import { jsx as jsx291, jsxs as
|
|
11600
|
+
import { jsx as jsx291, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
11516
11601
|
var ProgressBar = ({
|
|
11517
11602
|
label,
|
|
11518
11603
|
tip,
|
|
@@ -11527,7 +11612,7 @@ var ProgressBar = ({
|
|
|
11527
11612
|
style,
|
|
11528
11613
|
...rest
|
|
11529
11614
|
}) => {
|
|
11530
|
-
const generatedId =
|
|
11615
|
+
const generatedId = useId22();
|
|
11531
11616
|
const uniqueId = id != null ? id : `${generatedId}-searchInput`;
|
|
11532
11617
|
const hasErrorMessage = !!errorMessage;
|
|
11533
11618
|
const hasTip = !!tip;
|
|
@@ -11538,7 +11623,7 @@ var ProgressBar = ({
|
|
|
11538
11623
|
const errorMessageId = derivativeIdGenerator(uniqueId, "errorMessage");
|
|
11539
11624
|
const fillPrecentage = hasValidValue && value / (max != null ? max : 1) * 100 + "%";
|
|
11540
11625
|
const isIndeterminate = !hasValidValue && !hasErrorMessage;
|
|
11541
|
-
return /* @__PURE__ */
|
|
11626
|
+
return /* @__PURE__ */ jsxs73(Box, { width: "100%", className, style, children: [
|
|
11542
11627
|
hasLabel ? /* @__PURE__ */ jsx291(Label, { htmlFor: uniqueId, children: label }) : void 0,
|
|
11543
11628
|
/* @__PURE__ */ jsx291(
|
|
11544
11629
|
"progress",
|
|
@@ -11584,7 +11669,7 @@ ProgressBar.displayName = "ProgressBar";
|
|
|
11584
11669
|
|
|
11585
11670
|
// src/components/Search/Search.tsx
|
|
11586
11671
|
import {
|
|
11587
|
-
useId as
|
|
11672
|
+
useId as useId23,
|
|
11588
11673
|
useState as useState25
|
|
11589
11674
|
} from "react";
|
|
11590
11675
|
|
|
@@ -11613,30 +11698,6 @@ var typographyTypes2 = {
|
|
|
11613
11698
|
medium: "bodyMedium",
|
|
11614
11699
|
large: "bodyLarge"
|
|
11615
11700
|
};
|
|
11616
|
-
function createEmptyChangeEvent(inputElementId) {
|
|
11617
|
-
const inputElement = document.getElementById(
|
|
11618
|
-
inputElementId
|
|
11619
|
-
);
|
|
11620
|
-
inputElement.value = "";
|
|
11621
|
-
const emptyChangeEvent = {
|
|
11622
|
-
target: inputElement,
|
|
11623
|
-
currentTarget: inputElement,
|
|
11624
|
-
bubbles: true,
|
|
11625
|
-
cancelable: false,
|
|
11626
|
-
defaultPrevented: false,
|
|
11627
|
-
eventPhase: 0,
|
|
11628
|
-
isTrusted: false,
|
|
11629
|
-
preventDefault: () => null,
|
|
11630
|
-
stopPropagation: () => null,
|
|
11631
|
-
nativeEvent: new Event("input"),
|
|
11632
|
-
persist: () => null,
|
|
11633
|
-
type: "change",
|
|
11634
|
-
timeStamp: Date.now(),
|
|
11635
|
-
isDefaultPrevented: () => false,
|
|
11636
|
-
isPropagationStopped: () => false
|
|
11637
|
-
};
|
|
11638
|
-
return emptyChangeEvent;
|
|
11639
|
-
}
|
|
11640
11701
|
|
|
11641
11702
|
// src/components/Search/SearchSuggestionItem.tsx
|
|
11642
11703
|
import { useEffect as useEffect28, useRef as useRef31 } from "react";
|
|
@@ -11673,7 +11734,7 @@ var SearchSuggestionItem = ({
|
|
|
11673
11734
|
SearchSuggestionItem.displayName = "SearchSuggestionItem";
|
|
11674
11735
|
|
|
11675
11736
|
// src/components/Search/SearchSuggestions.tsx
|
|
11676
|
-
import { jsx as jsx293, jsxs as
|
|
11737
|
+
import { jsx as jsx293, jsxs as jsxs74 } from "react/jsx-runtime";
|
|
11677
11738
|
var SearchSuggestions = ({
|
|
11678
11739
|
id,
|
|
11679
11740
|
searchId,
|
|
@@ -11693,7 +11754,7 @@ var SearchSuggestions = ({
|
|
|
11693
11754
|
const { t } = useTranslation();
|
|
11694
11755
|
const [focus] = useRoveFocus(suggestions == null ? void 0 : suggestions.length, showSuggestions);
|
|
11695
11756
|
const suggestionsToRender = maxSuggestions ? suggestions == null ? void 0 : suggestions.slice(maxSuggestions) : suggestions;
|
|
11696
|
-
return /* @__PURE__ */
|
|
11757
|
+
return /* @__PURE__ */ jsxs74(
|
|
11697
11758
|
Paper,
|
|
11698
11759
|
{
|
|
11699
11760
|
...getBaseHTMLProps(
|
|
@@ -11733,7 +11794,7 @@ var SearchSuggestions = ({
|
|
|
11733
11794
|
{
|
|
11734
11795
|
index,
|
|
11735
11796
|
focus: focus === index && showSuggestions,
|
|
11736
|
-
"aria-label": t(
|
|
11797
|
+
"aria-label": t(texts21.search(suggestion)),
|
|
11737
11798
|
onClick: onSuggestionClick,
|
|
11738
11799
|
"aria-setsize": suggestionsToRender.length,
|
|
11739
11800
|
"aria-posinset": index,
|
|
@@ -11747,7 +11808,7 @@ var SearchSuggestions = ({
|
|
|
11747
11808
|
);
|
|
11748
11809
|
};
|
|
11749
11810
|
SearchSuggestions.displayName = "SearchSuggestions";
|
|
11750
|
-
var
|
|
11811
|
+
var texts21 = createTexts({
|
|
11751
11812
|
search: (suggestion) => ({
|
|
11752
11813
|
no: `${suggestion} s\xF8k`,
|
|
11753
11814
|
nb: `${suggestion} s\xF8k`,
|
|
@@ -11757,7 +11818,7 @@ var texts20 = createTexts({
|
|
|
11757
11818
|
});
|
|
11758
11819
|
|
|
11759
11820
|
// src/components/Search/Search.tsx
|
|
11760
|
-
import { Fragment as
|
|
11821
|
+
import { Fragment as Fragment9, jsx as jsx294, jsxs as jsxs75 } from "react/jsx-runtime";
|
|
11761
11822
|
var getIconSize2 = (size2) => {
|
|
11762
11823
|
switch (size2) {
|
|
11763
11824
|
case "large":
|
|
@@ -11804,7 +11865,7 @@ var Search = ({
|
|
|
11804
11865
|
...rest
|
|
11805
11866
|
}) => {
|
|
11806
11867
|
var _a;
|
|
11807
|
-
const generatedId =
|
|
11868
|
+
const generatedId = useId23();
|
|
11808
11869
|
const uniqueId = id != null ? id : `${generatedId}-searchInput`;
|
|
11809
11870
|
const hasLabel = !!label;
|
|
11810
11871
|
const tipId = derivativeIdGenerator(uniqueId, "tip");
|
|
@@ -11818,13 +11879,14 @@ var Search = ({
|
|
|
11818
11879
|
const context = useAutocompleteSearch();
|
|
11819
11880
|
const combinedRef = context.inputRef ? useCombinedRef(context.inputRef, ref) : ref;
|
|
11820
11881
|
const handleChange = (e) => {
|
|
11882
|
+
var _a2;
|
|
11821
11883
|
setHasValue(e.target.value !== "");
|
|
11822
|
-
context.onValueChange
|
|
11823
|
-
onChange
|
|
11884
|
+
(_a2 = context == null ? void 0 : context.onValueChange) == null ? void 0 : _a2.call(context, e);
|
|
11885
|
+
onChange == null ? void 0 : onChange(e);
|
|
11824
11886
|
};
|
|
11825
11887
|
const clearInput = () => {
|
|
11826
|
-
const
|
|
11827
|
-
handleChange(
|
|
11888
|
+
const clearChangeEvent = createClearChangeEvent(uniqueId);
|
|
11889
|
+
handleChange(clearChangeEvent);
|
|
11828
11890
|
};
|
|
11829
11891
|
const {
|
|
11830
11892
|
label: buttonLabel,
|
|
@@ -11833,7 +11895,7 @@ var Search = ({
|
|
|
11833
11895
|
} = buttonProps != null ? buttonProps : {};
|
|
11834
11896
|
const hasSuggestions = !!context.suggestions;
|
|
11835
11897
|
const showSearchButton = !!buttonProps && !!onClick;
|
|
11836
|
-
const inputGroup = /* @__PURE__ */
|
|
11898
|
+
const inputGroup = /* @__PURE__ */ jsxs75(
|
|
11837
11899
|
HStack,
|
|
11838
11900
|
{
|
|
11839
11901
|
position: "relative",
|
|
@@ -11880,7 +11942,7 @@ var Search = ({
|
|
|
11880
11942
|
)
|
|
11881
11943
|
}
|
|
11882
11944
|
),
|
|
11883
|
-
hasSuggestions && /* @__PURE__ */
|
|
11945
|
+
hasSuggestions && /* @__PURE__ */ jsxs75(Fragment9, { children: [
|
|
11884
11946
|
/* @__PURE__ */ jsx294(
|
|
11885
11947
|
SearchSuggestions,
|
|
11886
11948
|
{
|
|
@@ -11893,15 +11955,14 @@ var Search = ({
|
|
|
11893
11955
|
componentSize
|
|
11894
11956
|
}
|
|
11895
11957
|
),
|
|
11896
|
-
/* @__PURE__ */ jsx294(VisuallyHidden, { id: suggestionsDescriptionId, children: t(
|
|
11958
|
+
/* @__PURE__ */ jsx294(VisuallyHidden, { id: suggestionsDescriptionId, children: t(texts22.useArrowKeys) })
|
|
11897
11959
|
] }),
|
|
11898
11960
|
hasValue && /* @__PURE__ */ jsx294(
|
|
11899
|
-
|
|
11961
|
+
InlineIconButton,
|
|
11900
11962
|
{
|
|
11901
11963
|
icon: CloseSmallIcon,
|
|
11902
|
-
size: componentSize === "
|
|
11903
|
-
|
|
11904
|
-
"aria-label": t(texts21.clearSearch),
|
|
11964
|
+
size: componentSize === "small" ? "small" : "medium",
|
|
11965
|
+
"aria-label": t(texts22.clearSearch),
|
|
11905
11966
|
onClick: clearInput,
|
|
11906
11967
|
className: Search_default["clear-button"]
|
|
11907
11968
|
}
|
|
@@ -11909,10 +11970,10 @@ var Search = ({
|
|
|
11909
11970
|
]
|
|
11910
11971
|
}
|
|
11911
11972
|
);
|
|
11912
|
-
return /* @__PURE__ */
|
|
11973
|
+
return /* @__PURE__ */ jsxs75(VStack, { gap: "x0.125", children: [
|
|
11913
11974
|
hasLabel && /* @__PURE__ */ jsx294(Label, { htmlFor: uniqueId, children: label }),
|
|
11914
|
-
/* @__PURE__ */
|
|
11915
|
-
showSearchButton ? /* @__PURE__ */
|
|
11975
|
+
/* @__PURE__ */ jsxs75("div", { children: [
|
|
11976
|
+
showSearchButton ? /* @__PURE__ */ jsxs75(
|
|
11916
11977
|
Grid,
|
|
11917
11978
|
{
|
|
11918
11979
|
className,
|
|
@@ -11941,7 +12002,7 @@ var Search = ({
|
|
|
11941
12002
|
] });
|
|
11942
12003
|
};
|
|
11943
12004
|
Search.displayName = "Search";
|
|
11944
|
-
var
|
|
12005
|
+
var texts22 = createTexts({
|
|
11945
12006
|
clearSearch: {
|
|
11946
12007
|
nb: "T\xF8m s\xF8k",
|
|
11947
12008
|
no: "T\xF8m s\xF8k",
|
|
@@ -12012,12 +12073,12 @@ var SearchAutocompleteWrapper = (props) => {
|
|
|
12012
12073
|
} else {
|
|
12013
12074
|
setSuggestions([]);
|
|
12014
12075
|
}
|
|
12015
|
-
onChange
|
|
12076
|
+
onChange == null ? void 0 : onChange(e);
|
|
12016
12077
|
};
|
|
12017
12078
|
const handleSuggestionClick = (e) => {
|
|
12018
12079
|
setSuggestions([]);
|
|
12019
12080
|
handleSetInputValue(e.target.innerText);
|
|
12020
|
-
onSuggestionSelection
|
|
12081
|
+
onSuggestionSelection == null ? void 0 : onSuggestionSelection();
|
|
12021
12082
|
closeSuggestions();
|
|
12022
12083
|
};
|
|
12023
12084
|
const handleSetInputValue = (value2) => {
|
|
@@ -12117,7 +12178,7 @@ var SplitButton_default = {
|
|
|
12117
12178
|
};
|
|
12118
12179
|
|
|
12119
12180
|
// src/components/SplitButton/SplitButton.tsx
|
|
12120
|
-
import { jsx as jsx298, jsxs as
|
|
12181
|
+
import { jsx as jsx298, jsxs as jsxs76 } from "react/jsx-runtime";
|
|
12121
12182
|
var SplitButton = ({
|
|
12122
12183
|
size: size2,
|
|
12123
12184
|
primaryAction,
|
|
@@ -12132,7 +12193,7 @@ var SplitButton = ({
|
|
|
12132
12193
|
purpose,
|
|
12133
12194
|
size: size2
|
|
12134
12195
|
};
|
|
12135
|
-
return /* @__PURE__ */
|
|
12196
|
+
return /* @__PURE__ */ jsxs76("div", { className: cn(className, SplitButton_default.container), ...rest, children: [
|
|
12136
12197
|
/* @__PURE__ */ jsx298(
|
|
12137
12198
|
Button,
|
|
12138
12199
|
{
|
|
@@ -12142,13 +12203,13 @@ var SplitButton = ({
|
|
|
12142
12203
|
className: SplitButton_default.main
|
|
12143
12204
|
}
|
|
12144
12205
|
),
|
|
12145
|
-
/* @__PURE__ */
|
|
12206
|
+
/* @__PURE__ */ jsxs76(OverflowMenuGroup, { isOpen, setIsOpen, children: [
|
|
12146
12207
|
/* @__PURE__ */ jsx298(
|
|
12147
12208
|
Button,
|
|
12148
12209
|
{
|
|
12149
12210
|
...buttonStyleProps,
|
|
12150
12211
|
icon: isOpen ? ChevronUpIcon : ChevronDownIcon,
|
|
12151
|
-
"aria-label": t(
|
|
12212
|
+
"aria-label": t(texts23.moreActions),
|
|
12152
12213
|
purpose,
|
|
12153
12214
|
className: cn(
|
|
12154
12215
|
SplitButton_default.option,
|
|
@@ -12162,7 +12223,7 @@ var SplitButton = ({
|
|
|
12162
12223
|
] });
|
|
12163
12224
|
};
|
|
12164
12225
|
SplitButton.displayName = "SplitButton";
|
|
12165
|
-
var
|
|
12226
|
+
var texts23 = createTexts({
|
|
12166
12227
|
moreActions: {
|
|
12167
12228
|
nb: "Flere handlinger",
|
|
12168
12229
|
no: "Flere handlinger",
|
|
@@ -12174,7 +12235,7 @@ var texts22 = createTexts({
|
|
|
12174
12235
|
// src/components/Table/collapsible/CollapsibleRow.tsx
|
|
12175
12236
|
import {
|
|
12176
12237
|
Children as Children4,
|
|
12177
|
-
Fragment as
|
|
12238
|
+
Fragment as Fragment10,
|
|
12178
12239
|
cloneElement as cloneElement6,
|
|
12179
12240
|
isValidElement as isValidElement6,
|
|
12180
12241
|
useEffect as useEffect31,
|
|
@@ -12302,7 +12363,7 @@ var Row = ({
|
|
|
12302
12363
|
Row.displayName = "Table.Row";
|
|
12303
12364
|
|
|
12304
12365
|
// src/components/Table/normal/SortCell.tsx
|
|
12305
|
-
import { jsx as jsx304, jsxs as
|
|
12366
|
+
import { jsx as jsx304, jsxs as jsxs77 } from "react/jsx-runtime";
|
|
12306
12367
|
var makeSortIcon = (isSorted, sortOrder) => {
|
|
12307
12368
|
if (!isSorted || !sortOrder) {
|
|
12308
12369
|
return /* @__PURE__ */ jsx304(Icon, { icon: UnfoldMoreIcon, iconSize: "inherit" });
|
|
@@ -12323,11 +12384,11 @@ var SortCell = ({
|
|
|
12323
12384
|
type: "head",
|
|
12324
12385
|
"aria-sort": isSorted && sortOrder ? sortOrder : void 0,
|
|
12325
12386
|
...rest,
|
|
12326
|
-
children: /* @__PURE__ */
|
|
12387
|
+
children: /* @__PURE__ */ jsxs77(
|
|
12327
12388
|
StylelessButton,
|
|
12328
12389
|
{
|
|
12329
12390
|
onClick,
|
|
12330
|
-
"aria-description": t(
|
|
12391
|
+
"aria-description": t(texts24.changeSort),
|
|
12331
12392
|
className: cn(Table_default["sort-button"], focusable),
|
|
12332
12393
|
children: [
|
|
12333
12394
|
children,
|
|
@@ -12340,7 +12401,7 @@ var SortCell = ({
|
|
|
12340
12401
|
);
|
|
12341
12402
|
};
|
|
12342
12403
|
SortCell.displayName = "Table.SortCell";
|
|
12343
|
-
var
|
|
12404
|
+
var texts24 = createTexts({
|
|
12344
12405
|
changeSort: {
|
|
12345
12406
|
nb: "Aktiver for \xE5 endre sorteringsrekkef\xF8lge",
|
|
12346
12407
|
no: "Aktiver for \xE5 endre sorteringsrekkef\xF8lge",
|
|
@@ -12434,7 +12495,7 @@ Table2.Row = Row;
|
|
|
12434
12495
|
Table2.Foot = Foot;
|
|
12435
12496
|
|
|
12436
12497
|
// src/components/Table/collapsible/CollapsibleRow.tsx
|
|
12437
|
-
import { Fragment as
|
|
12498
|
+
import { Fragment as Fragment11, jsx as jsx307, jsxs as jsxs78 } from "react/jsx-runtime";
|
|
12438
12499
|
var CollapsibleRow = ({
|
|
12439
12500
|
type: _type,
|
|
12440
12501
|
className,
|
|
@@ -12451,7 +12512,7 @@ var CollapsibleRow = ({
|
|
|
12451
12512
|
const { isCollapsed, headerValues, definingColumnIndex } = useCollapsibleTableContext();
|
|
12452
12513
|
const [childrenCollapsed, setChildrenCollapsed] = useState29(true);
|
|
12453
12514
|
useEffect31(() => {
|
|
12454
|
-
!isCollapsed
|
|
12515
|
+
if (!isCollapsed) setChildrenCollapsed(true);
|
|
12455
12516
|
}, [isCollapsed]);
|
|
12456
12517
|
const rowProps = (isOpenCollapsibleHeader) => {
|
|
12457
12518
|
return {
|
|
@@ -12477,7 +12538,7 @@ var CollapsibleRow = ({
|
|
|
12477
12538
|
const collapsedRenderedChildren = isCollapsed && collapsedHeaderValues.length > 0 ? collapsedChildren.map(function(child, index) {
|
|
12478
12539
|
const id = derivativeIdGenerator(prefix2, index.toString());
|
|
12479
12540
|
collapsibleIds.push(id);
|
|
12480
|
-
return /* @__PURE__ */
|
|
12541
|
+
return /* @__PURE__ */ jsxs78(Fragment10, { children: [
|
|
12481
12542
|
/* @__PURE__ */ jsx307(DescriptionListTerm, { children: collapsedHeaderValues[index].content }),
|
|
12482
12543
|
isValidElement6(child) && cloneElement6(child, {
|
|
12483
12544
|
collapsibleProps: { isCollapsibleChild: true }
|
|
@@ -12490,18 +12551,18 @@ var CollapsibleRow = ({
|
|
|
12490
12551
|
});
|
|
12491
12552
|
const headerRow = () => {
|
|
12492
12553
|
if (type !== "head" || !isCollapsed) return null;
|
|
12493
|
-
return /* @__PURE__ */ jsx307(Row, { ref, ...rowProps(), children: /* @__PURE__ */
|
|
12554
|
+
return /* @__PURE__ */ jsx307(Row, { ref, ...rowProps(), children: /* @__PURE__ */ jsxs78(Fragment11, { children: [
|
|
12494
12555
|
definingColumnCells,
|
|
12495
|
-
/* @__PURE__ */
|
|
12496
|
-
t(
|
|
12497
|
-
/* @__PURE__ */ jsx307(VisuallyHidden, { children: t(
|
|
12556
|
+
/* @__PURE__ */ jsxs78(Table2.Cell, { type: "head", layout: "center", children: [
|
|
12557
|
+
t(texts25.expand),
|
|
12558
|
+
/* @__PURE__ */ jsx307(VisuallyHidden, { children: t(texts25.row) })
|
|
12498
12559
|
] })
|
|
12499
12560
|
] }) });
|
|
12500
12561
|
};
|
|
12501
12562
|
const idList = spaceSeparatedIdListGenerator(collapsibleIds);
|
|
12502
12563
|
const rowWithChevron = () => {
|
|
12503
12564
|
if (type !== "body" || !isCollapsed) return null;
|
|
12504
|
-
return /* @__PURE__ */
|
|
12565
|
+
return /* @__PURE__ */ jsxs78(Row, { ref, ...rowProps(!childrenCollapsed && true), children: [
|
|
12505
12566
|
definingColumnCells,
|
|
12506
12567
|
/* @__PURE__ */ jsx307(Table2.Cell, { children: /* @__PURE__ */ jsx307(
|
|
12507
12568
|
StylelessButton,
|
|
@@ -12522,16 +12583,16 @@ var CollapsibleRow = ({
|
|
|
12522
12583
|
) })
|
|
12523
12584
|
] });
|
|
12524
12585
|
};
|
|
12525
|
-
return isCollapsed && collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */
|
|
12586
|
+
return isCollapsed && collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ jsxs78(Fragment11, { children: [
|
|
12526
12587
|
headerRow(),
|
|
12527
|
-
type === "body" && /* @__PURE__ */
|
|
12588
|
+
type === "body" && /* @__PURE__ */ jsxs78(Fragment11, { children: [
|
|
12528
12589
|
rowWithChevron(),
|
|
12529
12590
|
childrenCollapsed ? null : collapsedRows
|
|
12530
12591
|
] })
|
|
12531
12592
|
] }) : /* @__PURE__ */ jsx307(Row, { ref, ...rowProps(), children });
|
|
12532
12593
|
};
|
|
12533
12594
|
CollapsibleRow.displayName = "CollapsibleTable.Row";
|
|
12534
|
-
var
|
|
12595
|
+
var texts25 = createTexts({
|
|
12535
12596
|
expand: {
|
|
12536
12597
|
nb: "Utvid",
|
|
12537
12598
|
no: "Utvid",
|
|
@@ -12651,7 +12712,7 @@ function useSetTabWidth(index, width) {
|
|
|
12651
12712
|
}
|
|
12652
12713
|
|
|
12653
12714
|
// src/components/Tabs/AddTabButton.tsx
|
|
12654
|
-
import { jsx as jsx310, jsxs as
|
|
12715
|
+
import { jsx as jsx310, jsxs as jsxs79 } from "react/jsx-runtime";
|
|
12655
12716
|
var AddTabButton = ({
|
|
12656
12717
|
ref,
|
|
12657
12718
|
children,
|
|
@@ -12664,7 +12725,7 @@ var AddTabButton = ({
|
|
|
12664
12725
|
const buttonRef = useRef34(null);
|
|
12665
12726
|
const combinedRef = useCombinedRef(ref, buttonRef);
|
|
12666
12727
|
const { tabContentDirection, size: size2 } = useTabsContext();
|
|
12667
|
-
return /* @__PURE__ */
|
|
12728
|
+
return /* @__PURE__ */ jsxs79(
|
|
12668
12729
|
"button",
|
|
12669
12730
|
{
|
|
12670
12731
|
...rest,
|
|
@@ -12686,7 +12747,7 @@ var AddTabButton = ({
|
|
|
12686
12747
|
AddTabButton.displayName = "AddTabButton";
|
|
12687
12748
|
|
|
12688
12749
|
// src/components/Tabs/Tabs.tsx
|
|
12689
|
-
import { useEffect as useEffect32, useId as
|
|
12750
|
+
import { useEffect as useEffect32, useId as useId24, useRef as useRef35, useState as useState30 } from "react";
|
|
12690
12751
|
import { jsx as jsx311 } from "react/jsx-runtime";
|
|
12691
12752
|
var Tabs = ({
|
|
12692
12753
|
id,
|
|
@@ -12701,7 +12762,7 @@ var Tabs = ({
|
|
|
12701
12762
|
htmlProps,
|
|
12702
12763
|
...rest
|
|
12703
12764
|
}) => {
|
|
12704
|
-
const generatedId =
|
|
12765
|
+
const generatedId = useId24();
|
|
12705
12766
|
const uniqueId = id != null ? id : `${generatedId}-tabs`;
|
|
12706
12767
|
const [thisActiveTab, setActiveTab] = useState30(activeTab != null ? activeTab : 0);
|
|
12707
12768
|
const [hasTabFocus, setHasTabFocus] = useState30(false);
|
|
@@ -12709,7 +12770,7 @@ var Tabs = ({
|
|
|
12709
12770
|
const tabPanelsRef = useRef35(null);
|
|
12710
12771
|
const handleTabChange = (index) => {
|
|
12711
12772
|
setActiveTab(index);
|
|
12712
|
-
onChange
|
|
12773
|
+
onChange == null ? void 0 : onChange(index);
|
|
12713
12774
|
};
|
|
12714
12775
|
useEffect32(() => {
|
|
12715
12776
|
if (activeTab !== void 0 && activeTab !== thisActiveTab) {
|
|
@@ -12755,7 +12816,7 @@ import {
|
|
|
12755
12816
|
useEffect as useEffect33,
|
|
12756
12817
|
useRef as useRef36
|
|
12757
12818
|
} from "react";
|
|
12758
|
-
import { jsx as jsx312, jsxs as
|
|
12819
|
+
import { jsx as jsx312, jsxs as jsxs80 } from "react/jsx-runtime";
|
|
12759
12820
|
var Tab = ({
|
|
12760
12821
|
active = false,
|
|
12761
12822
|
icon,
|
|
@@ -12797,7 +12858,7 @@ var Tab = ({
|
|
|
12797
12858
|
handleSelect();
|
|
12798
12859
|
onKeyDown == null ? void 0 : onKeyDown(e);
|
|
12799
12860
|
};
|
|
12800
|
-
return /* @__PURE__ */
|
|
12861
|
+
return /* @__PURE__ */ jsxs80(
|
|
12801
12862
|
"button",
|
|
12802
12863
|
{
|
|
12803
12864
|
...getBaseHTMLProps(
|
|
@@ -12836,7 +12897,7 @@ import {
|
|
|
12836
12897
|
isValidElement as isValidElement7,
|
|
12837
12898
|
useState as useState31
|
|
12838
12899
|
} from "react";
|
|
12839
|
-
import { jsx as jsx313, jsxs as
|
|
12900
|
+
import { jsx as jsx313, jsxs as jsxs81 } from "react/jsx-runtime";
|
|
12840
12901
|
var TabList = ({
|
|
12841
12902
|
children,
|
|
12842
12903
|
id,
|
|
@@ -12879,7 +12940,7 @@ var TabList = ({
|
|
|
12879
12940
|
const [widths, setWidths] = useState31([]);
|
|
12880
12941
|
const handleOnFocus = (event) => {
|
|
12881
12942
|
setHasTabFocus(true);
|
|
12882
|
-
onFocus
|
|
12943
|
+
onFocus == null ? void 0 : onFocus(event);
|
|
12883
12944
|
};
|
|
12884
12945
|
const handleOnBlur = (event) => {
|
|
12885
12946
|
var _a;
|
|
@@ -12894,7 +12955,7 @@ var TabList = ({
|
|
|
12894
12955
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
12895
12956
|
["--dds-tab-widths"]: widths.join(" ")
|
|
12896
12957
|
};
|
|
12897
|
-
return /* @__PURE__ */ jsx313(TabWidthContextProvider, { onChangeWidths: setWidths, children: /* @__PURE__ */
|
|
12958
|
+
return /* @__PURE__ */ jsx313(TabWidthContextProvider, { onChangeWidths: setWidths, children: /* @__PURE__ */ jsxs81(
|
|
12898
12959
|
"div",
|
|
12899
12960
|
{
|
|
12900
12961
|
...rest,
|
|
@@ -12991,7 +13052,7 @@ var Tag_default = {
|
|
|
12991
13052
|
};
|
|
12992
13053
|
|
|
12993
13054
|
// src/components/Tag/Tag.tsx
|
|
12994
|
-
import { jsx as jsx316, jsxs as
|
|
13055
|
+
import { jsx as jsx316, jsxs as jsxs82 } from "react/jsx-runtime";
|
|
12995
13056
|
var icons3 = {
|
|
12996
13057
|
info: InfoIcon,
|
|
12997
13058
|
danger: ErrorIcon,
|
|
@@ -13011,7 +13072,7 @@ var Tag = ({
|
|
|
13011
13072
|
...rest
|
|
13012
13073
|
}) => {
|
|
13013
13074
|
const icon = icons3[purpose];
|
|
13014
|
-
return /* @__PURE__ */
|
|
13075
|
+
return /* @__PURE__ */ jsxs82(
|
|
13015
13076
|
TextOverflowEllipsisWrapper,
|
|
13016
13077
|
{
|
|
13017
13078
|
...getBaseHTMLProps(
|
|
@@ -13036,7 +13097,7 @@ var Tag = ({
|
|
|
13036
13097
|
Tag.displayName = "Tag";
|
|
13037
13098
|
|
|
13038
13099
|
// src/components/TextInput/TextInput.tsx
|
|
13039
|
-
import { useId as
|
|
13100
|
+
import { useId as useId25, useLayoutEffect as useLayoutEffect4, useRef as useRef37, useState as useState32 } from "react";
|
|
13040
13101
|
|
|
13041
13102
|
// src/components/TextInput/TextInput.module.css
|
|
13042
13103
|
var TextInput_default = {
|
|
@@ -13058,7 +13119,7 @@ var TextInput_default = {
|
|
|
13058
13119
|
};
|
|
13059
13120
|
|
|
13060
13121
|
// src/components/TextInput/TextInput.tsx
|
|
13061
|
-
import { jsx as jsx317, jsxs as
|
|
13122
|
+
import { jsx as jsx317, jsxs as jsxs83 } from "react/jsx-runtime";
|
|
13062
13123
|
var TextInput = ({
|
|
13063
13124
|
label,
|
|
13064
13125
|
disabled,
|
|
@@ -13104,7 +13165,7 @@ var TextInput = ({
|
|
|
13104
13165
|
onChange(event);
|
|
13105
13166
|
}
|
|
13106
13167
|
};
|
|
13107
|
-
const generatedId =
|
|
13168
|
+
const generatedId = useId25();
|
|
13108
13169
|
const uniqueId = id != null ? id : `${generatedId}-textInput`;
|
|
13109
13170
|
const hasErrorMessage = !!errorMessage;
|
|
13110
13171
|
const hasTip = !!tip;
|
|
@@ -13151,7 +13212,7 @@ var TextInput = ({
|
|
|
13151
13212
|
const suffixPaddingInlineEnd = suffixLength ? `calc(var(--dds-spacing-x1) + ${suffixLength}px)` : void 0;
|
|
13152
13213
|
let extendedInput = null;
|
|
13153
13214
|
if (hasIcon) {
|
|
13154
|
-
extendedInput = /* @__PURE__ */
|
|
13215
|
+
extendedInput = /* @__PURE__ */ jsxs83(Box, { className: Input_default["input-group"], width: inputWidth, children: [
|
|
13155
13216
|
/* @__PURE__ */ jsx317(
|
|
13156
13217
|
Icon,
|
|
13157
13218
|
{
|
|
@@ -13176,7 +13237,7 @@ var TextInput = ({
|
|
|
13176
13237
|
)
|
|
13177
13238
|
] });
|
|
13178
13239
|
} else if (hasAffix) {
|
|
13179
|
-
extendedInput = /* @__PURE__ */
|
|
13240
|
+
extendedInput = /* @__PURE__ */ jsxs83(
|
|
13180
13241
|
Box,
|
|
13181
13242
|
{
|
|
13182
13243
|
position: "relative",
|
|
@@ -13225,7 +13286,7 @@ var TextInput = ({
|
|
|
13225
13286
|
}
|
|
13226
13287
|
);
|
|
13227
13288
|
}
|
|
13228
|
-
return /* @__PURE__ */
|
|
13289
|
+
return /* @__PURE__ */ jsxs83(
|
|
13229
13290
|
"div",
|
|
13230
13291
|
{
|
|
13231
13292
|
className: cn(
|
|
@@ -13249,7 +13310,7 @@ var TextInput = ({
|
|
|
13249
13310
|
}
|
|
13250
13311
|
),
|
|
13251
13312
|
extendedInput ? extendedInput : /* @__PURE__ */ jsx317(Box, { as: StatefulInput, width: inputWidth, ...generalInputProps }),
|
|
13252
|
-
hasBottomContainer && /* @__PURE__ */
|
|
13313
|
+
hasBottomContainer && /* @__PURE__ */ jsxs83(
|
|
13253
13314
|
Box,
|
|
13254
13315
|
{
|
|
13255
13316
|
display: "flex",
|
|
@@ -13274,7 +13335,7 @@ var TextInput = ({
|
|
|
13274
13335
|
TextInput.displayName = "TextInput";
|
|
13275
13336
|
|
|
13276
13337
|
// src/components/Toggle/Toggle.tsx
|
|
13277
|
-
import { useId as
|
|
13338
|
+
import { useId as useId26 } from "react";
|
|
13278
13339
|
|
|
13279
13340
|
// src/components/Toggle/Toggle.module.css
|
|
13280
13341
|
var Toggle_default = {
|
|
@@ -13292,7 +13353,7 @@ var Toggle_default = {
|
|
|
13292
13353
|
};
|
|
13293
13354
|
|
|
13294
13355
|
// src/components/Toggle/Toggle.tsx
|
|
13295
|
-
import { jsx as jsx318, jsxs as
|
|
13356
|
+
import { jsx as jsx318, jsxs as jsxs84 } from "react/jsx-runtime";
|
|
13296
13357
|
var Toggle = ({
|
|
13297
13358
|
id,
|
|
13298
13359
|
children,
|
|
@@ -13308,7 +13369,7 @@ var Toggle = ({
|
|
|
13308
13369
|
...rest
|
|
13309
13370
|
}) => {
|
|
13310
13371
|
const { t } = useTranslation();
|
|
13311
|
-
const generatedId =
|
|
13372
|
+
const generatedId = useId26();
|
|
13312
13373
|
const uniqueId = id != null ? id : `${generatedId}-toggle`;
|
|
13313
13374
|
const iconSize = size2 === "large" ? "medium" : "small";
|
|
13314
13375
|
const [checked, setChecked] = useControllableState({
|
|
@@ -13316,7 +13377,7 @@ var Toggle = ({
|
|
|
13316
13377
|
defaultValue: defaultChecked != null ? defaultChecked : false,
|
|
13317
13378
|
onChange
|
|
13318
13379
|
});
|
|
13319
|
-
return /* @__PURE__ */
|
|
13380
|
+
return /* @__PURE__ */ jsxs84(
|
|
13320
13381
|
"label",
|
|
13321
13382
|
{
|
|
13322
13383
|
htmlFor: uniqueId,
|
|
@@ -13363,7 +13424,7 @@ var Toggle = ({
|
|
|
13363
13424
|
iconSize
|
|
13364
13425
|
}
|
|
13365
13426
|
) }) }),
|
|
13366
|
-
/* @__PURE__ */
|
|
13427
|
+
/* @__PURE__ */ jsxs84("span", { className: cn(readOnly && Toggle_default["labeltext--readonly"]), children: [
|
|
13367
13428
|
readOnly && /* @__PURE__ */ jsx318(
|
|
13368
13429
|
Icon,
|
|
13369
13430
|
{
|
|
@@ -13383,7 +13444,7 @@ var Toggle = ({
|
|
|
13383
13444
|
Toggle.displayName = "Toggle";
|
|
13384
13445
|
|
|
13385
13446
|
// src/components/ToggleBar/ToggleBar.tsx
|
|
13386
|
-
import { useId as
|
|
13447
|
+
import { useId as useId27, useState as useState33 } from "react";
|
|
13387
13448
|
|
|
13388
13449
|
// src/components/ToggleBar/ToggleBar.context.tsx
|
|
13389
13450
|
import { createContext as createContext20, useContext as useContext28 } from "react";
|
|
@@ -13408,7 +13469,7 @@ var ToggleBar_default = {
|
|
|
13408
13469
|
};
|
|
13409
13470
|
|
|
13410
13471
|
// src/components/ToggleBar/ToggleBar.tsx
|
|
13411
|
-
import { jsx as jsx319, jsxs as
|
|
13472
|
+
import { jsx as jsx319, jsxs as jsxs85 } from "react/jsx-runtime";
|
|
13412
13473
|
var ToggleBar = (props) => {
|
|
13413
13474
|
const {
|
|
13414
13475
|
children,
|
|
@@ -13423,7 +13484,7 @@ var ToggleBar = (props) => {
|
|
|
13423
13484
|
id,
|
|
13424
13485
|
...rest
|
|
13425
13486
|
} = props;
|
|
13426
|
-
const generatedId =
|
|
13487
|
+
const generatedId = useId27();
|
|
13427
13488
|
const uniqueId = id != null ? id : `${generatedId}-ToggleBar`;
|
|
13428
13489
|
const [groupValue, setGroupValue] = useState33(value);
|
|
13429
13490
|
const handleChange = combineHandlers(
|
|
@@ -13440,7 +13501,7 @@ var ToggleBar = (props) => {
|
|
|
13440
13501
|
name,
|
|
13441
13502
|
value: groupValue
|
|
13442
13503
|
},
|
|
13443
|
-
children: /* @__PURE__ */
|
|
13504
|
+
children: /* @__PURE__ */ jsxs85(
|
|
13444
13505
|
VStack,
|
|
13445
13506
|
{
|
|
13446
13507
|
...getBaseHTMLProps(id, className, htmlProps, rest),
|
|
@@ -13460,8 +13521,8 @@ var ToggleBar = (props) => {
|
|
|
13460
13521
|
ToggleBar.displayName = "ToggleBar";
|
|
13461
13522
|
|
|
13462
13523
|
// src/components/ToggleBar/ToggleRadio.tsx
|
|
13463
|
-
import { useId as
|
|
13464
|
-
import { jsx as jsx320, jsxs as
|
|
13524
|
+
import { useId as useId28 } from "react";
|
|
13525
|
+
import { jsx as jsx320, jsxs as jsxs86 } from "react/jsx-runtime";
|
|
13465
13526
|
var typographyTypes3 = {
|
|
13466
13527
|
large: "bodyLarge",
|
|
13467
13528
|
medium: "bodyMedium",
|
|
@@ -13492,15 +13553,16 @@ var ToggleRadio = ({
|
|
|
13492
13553
|
id,
|
|
13493
13554
|
...rest
|
|
13494
13555
|
}) => {
|
|
13495
|
-
const generatedId =
|
|
13556
|
+
const generatedId = useId28();
|
|
13496
13557
|
const uniqueId = id != null ? id : `${generatedId}-ToggleRadio`;
|
|
13497
13558
|
const group = useToggleBarContext();
|
|
13498
13559
|
const handleChange = (event) => {
|
|
13499
|
-
|
|
13500
|
-
|
|
13560
|
+
var _a;
|
|
13561
|
+
onChange == null ? void 0 : onChange(event);
|
|
13562
|
+
(_a = group == null ? void 0 : group.onChange) == null ? void 0 : _a.call(group, event);
|
|
13501
13563
|
};
|
|
13502
13564
|
const contentTypeCn = label ? "with-text" : "just-icon";
|
|
13503
|
-
return /* @__PURE__ */
|
|
13565
|
+
return /* @__PURE__ */ jsxs86("label", { htmlFor: uniqueId, className: ToggleBar_default.label, children: [
|
|
13504
13566
|
/* @__PURE__ */ jsx320(
|
|
13505
13567
|
"input",
|
|
13506
13568
|
{
|
|
@@ -13523,7 +13585,7 @@ var ToggleRadio = ({
|
|
|
13523
13585
|
"aria-labelledby": ariaLabelledBy
|
|
13524
13586
|
}
|
|
13525
13587
|
),
|
|
13526
|
-
/* @__PURE__ */
|
|
13588
|
+
/* @__PURE__ */ jsxs86(
|
|
13527
13589
|
Typography,
|
|
13528
13590
|
{
|
|
13529
13591
|
as: "span",
|
|
@@ -13544,7 +13606,7 @@ var ToggleRadio = ({
|
|
|
13544
13606
|
ToggleRadio.displayName = "ToggleRadio";
|
|
13545
13607
|
|
|
13546
13608
|
// src/components/ToggleButton/ToggleButton.tsx
|
|
13547
|
-
import { useId as
|
|
13609
|
+
import { useId as useId29 } from "react";
|
|
13548
13610
|
|
|
13549
13611
|
// src/components/ToggleButton/ToggleButton.module.css
|
|
13550
13612
|
var ToggleButton_default = {
|
|
@@ -13555,7 +13617,7 @@ var ToggleButton_default = {
|
|
|
13555
13617
|
};
|
|
13556
13618
|
|
|
13557
13619
|
// src/components/ToggleButton/ToggleButton.tsx
|
|
13558
|
-
import { jsx as jsx321, jsxs as
|
|
13620
|
+
import { jsx as jsx321, jsxs as jsxs87 } from "react/jsx-runtime";
|
|
13559
13621
|
var ToggleButton = ({
|
|
13560
13622
|
id,
|
|
13561
13623
|
label,
|
|
@@ -13565,10 +13627,10 @@ var ToggleButton = ({
|
|
|
13565
13627
|
htmlProps,
|
|
13566
13628
|
...rest
|
|
13567
13629
|
}) => {
|
|
13568
|
-
const generatedId =
|
|
13630
|
+
const generatedId = useId29();
|
|
13569
13631
|
const uniqueId = id != null ? id : `${generatedId}-toggleButton`;
|
|
13570
13632
|
const hasIcon = !!icon;
|
|
13571
|
-
return /* @__PURE__ */
|
|
13633
|
+
return /* @__PURE__ */ jsxs87(Box, { as: "label", htmlFor: uniqueId, width: "fit-content", children: [
|
|
13572
13634
|
/* @__PURE__ */ jsx321(
|
|
13573
13635
|
"input",
|
|
13574
13636
|
{
|
|
@@ -13585,7 +13647,7 @@ var ToggleButton = ({
|
|
|
13585
13647
|
type: "checkbox"
|
|
13586
13648
|
}
|
|
13587
13649
|
),
|
|
13588
|
-
/* @__PURE__ */
|
|
13650
|
+
/* @__PURE__ */ jsxs87(
|
|
13589
13651
|
"span",
|
|
13590
13652
|
{
|
|
13591
13653
|
className: cn(
|
|
@@ -13607,8 +13669,8 @@ var ToggleButton = ({
|
|
|
13607
13669
|
ToggleButton.displayName = "ToggleButton";
|
|
13608
13670
|
|
|
13609
13671
|
// src/components/ToggleButton/ToggleButtonGroup.tsx
|
|
13610
|
-
import { useId as
|
|
13611
|
-
import { jsx as jsx322, jsxs as
|
|
13672
|
+
import { useId as useId30 } from "react";
|
|
13673
|
+
import { jsx as jsx322, jsxs as jsxs88 } from "react/jsx-runtime";
|
|
13612
13674
|
var ToggleButtonGroup = (props) => {
|
|
13613
13675
|
const {
|
|
13614
13676
|
children,
|
|
@@ -13620,9 +13682,9 @@ var ToggleButtonGroup = (props) => {
|
|
|
13620
13682
|
htmlProps,
|
|
13621
13683
|
...rest
|
|
13622
13684
|
} = props;
|
|
13623
|
-
const generatedId =
|
|
13685
|
+
const generatedId = useId30();
|
|
13624
13686
|
const uniqueLabelId = labelId != null ? labelId : `${generatedId}-ToggleButtonGroupLabel`;
|
|
13625
|
-
return /* @__PURE__ */
|
|
13687
|
+
return /* @__PURE__ */ jsxs88(
|
|
13626
13688
|
VStack,
|
|
13627
13689
|
{
|
|
13628
13690
|
gap: "x0.5",
|
|
@@ -13792,6 +13854,7 @@ export {
|
|
|
13792
13854
|
InfoIcon,
|
|
13793
13855
|
InlineButton,
|
|
13794
13856
|
InlineEditInput,
|
|
13857
|
+
InlineEditSelect,
|
|
13795
13858
|
InlineEditTextArea,
|
|
13796
13859
|
Input,
|
|
13797
13860
|
InputMessage,
|