@norges-domstoler/dds-components 17.5.4 → 17.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 +13 -8
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +24 -6
- package/dist/index.d.ts +24 -6
- package/dist/index.js +961 -905
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +532 -476
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -4295,6 +4295,7 @@ var Accordion_default = {
|
|
|
4295
4295
|
container: "Accordion_container",
|
|
4296
4296
|
"header-button": "Accordion_header-button",
|
|
4297
4297
|
"header-container": "Accordion_header-container",
|
|
4298
|
+
"header-container__chevron": "Accordion_header-container__chevron",
|
|
4298
4299
|
body: "Accordion_body",
|
|
4299
4300
|
body__content: "Accordion_body__content"
|
|
4300
4301
|
};
|
|
@@ -4502,6 +4503,23 @@ var AccordionHeader = forwardRef14((props, ref) => {
|
|
|
4502
4503
|
...restHeaderProps,
|
|
4503
4504
|
type: "button",
|
|
4504
4505
|
children: [
|
|
4506
|
+
/* @__PURE__ */ jsx179(
|
|
4507
|
+
"span",
|
|
4508
|
+
{
|
|
4509
|
+
className: cn(
|
|
4510
|
+
AccordionBase_default.header__chevron,
|
|
4511
|
+
Accordion_default["header-container__chevron"]
|
|
4512
|
+
),
|
|
4513
|
+
children: /* @__PURE__ */ jsx179(
|
|
4514
|
+
AnimatedChevronUpDown,
|
|
4515
|
+
{
|
|
4516
|
+
width: ddsTokens10.ddsIconSizeMedium,
|
|
4517
|
+
height: ddsTokens10.ddsSpacingX05,
|
|
4518
|
+
isUp: isExpanded
|
|
4519
|
+
}
|
|
4520
|
+
)
|
|
4521
|
+
}
|
|
4522
|
+
),
|
|
4505
4523
|
/* @__PURE__ */ jsx179(
|
|
4506
4524
|
"div",
|
|
4507
4525
|
{
|
|
@@ -4512,15 +4530,7 @@ var AccordionHeader = forwardRef14((props, ref) => {
|
|
|
4512
4530
|
),
|
|
4513
4531
|
children
|
|
4514
4532
|
}
|
|
4515
|
-
)
|
|
4516
|
-
/* @__PURE__ */ jsx179("span", { className: AccordionBase_default.header__chevron, children: /* @__PURE__ */ jsx179(
|
|
4517
|
-
AnimatedChevronUpDown,
|
|
4518
|
-
{
|
|
4519
|
-
width: ddsTokens10.ddsIconSizeMedium,
|
|
4520
|
-
height: ddsTokens10.ddsSpacingX05,
|
|
4521
|
-
isUp: isExpanded
|
|
4522
|
-
}
|
|
4523
|
-
) })
|
|
4533
|
+
)
|
|
4524
4534
|
]
|
|
4525
4535
|
}
|
|
4526
4536
|
);
|
|
@@ -4573,19 +4583,21 @@ var BackLink_default = {
|
|
|
4573
4583
|
|
|
4574
4584
|
// src/components/BackLink/BackLink.tsx
|
|
4575
4585
|
import { jsx as jsx181, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
4576
|
-
var BackLink = forwardRef16(
|
|
4577
|
-
|
|
4578
|
-
/* @__PURE__ */ jsx181(
|
|
4579
|
-
|
|
4580
|
-
|
|
4581
|
-
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
});
|
|
4586
|
+
var BackLink = forwardRef16(
|
|
4587
|
+
({ label, ...props }, ref) => {
|
|
4588
|
+
return /* @__PURE__ */ jsx181("nav", { ref, "aria-label": "G\xE5 tilbake", children: /* @__PURE__ */ jsxs25(Link, { ...props, children: [
|
|
4589
|
+
/* @__PURE__ */ jsx181(
|
|
4590
|
+
Icon,
|
|
4591
|
+
{
|
|
4592
|
+
icon: ArrowLeftIcon,
|
|
4593
|
+
iconSize: "small",
|
|
4594
|
+
className: BackLink_default.icon
|
|
4595
|
+
}
|
|
4596
|
+
),
|
|
4597
|
+
label
|
|
4598
|
+
] }) });
|
|
4599
|
+
}
|
|
4600
|
+
);
|
|
4589
4601
|
BackLink.displayName = "BackLink";
|
|
4590
4602
|
|
|
4591
4603
|
// src/components/Breadcrumbs/Breadcrumb.tsx
|
|
@@ -5439,6 +5451,7 @@ var CardAccordion_default = {
|
|
|
5439
5451
|
container: "CardAccordion_container",
|
|
5440
5452
|
"header-button": "CardAccordion_header-button",
|
|
5441
5453
|
"header-container": "CardAccordion_header-container",
|
|
5454
|
+
"header-container__chevron": "CardAccordion_header-container__chevron",
|
|
5442
5455
|
body: "CardAccordion_body",
|
|
5443
5456
|
body__content: "CardAccordion_body__content"
|
|
5444
5457
|
};
|
|
@@ -5542,14 +5555,23 @@ var CardAccordionHeader = forwardRef30((props, ref) => {
|
|
|
5542
5555
|
),
|
|
5543
5556
|
children: [
|
|
5544
5557
|
/* @__PURE__ */ jsx199("div", { className: AccordionBase_default.header__content, children }),
|
|
5545
|
-
/* @__PURE__ */ jsx199(
|
|
5546
|
-
|
|
5558
|
+
/* @__PURE__ */ jsx199(
|
|
5559
|
+
"span",
|
|
5547
5560
|
{
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
-
|
|
5561
|
+
className: cn(
|
|
5562
|
+
AccordionBase_default.header__chevron,
|
|
5563
|
+
CardAccordion_default["header-container__chevron"]
|
|
5564
|
+
),
|
|
5565
|
+
children: /* @__PURE__ */ jsx199(
|
|
5566
|
+
AnimatedChevronUpDown,
|
|
5567
|
+
{
|
|
5568
|
+
width: ddsTokens14.ddsIconSizeMedium,
|
|
5569
|
+
height: ddsTokens14.ddsSpacingX05,
|
|
5570
|
+
isUp: isExpanded
|
|
5571
|
+
}
|
|
5572
|
+
)
|
|
5551
5573
|
}
|
|
5552
|
-
)
|
|
5574
|
+
)
|
|
5553
5575
|
]
|
|
5554
5576
|
}
|
|
5555
5577
|
)
|
|
@@ -5712,7 +5734,7 @@ import {
|
|
|
5712
5734
|
import { useLocale as useLocale2 } from "@react-aria/i18n";
|
|
5713
5735
|
import { useCalendarState } from "@react-stately/calendar";
|
|
5714
5736
|
import {
|
|
5715
|
-
useContext as
|
|
5737
|
+
useContext as useContext6
|
|
5716
5738
|
} from "react";
|
|
5717
5739
|
|
|
5718
5740
|
// src/components/date-inputs/DatePicker/Calendar/CalendarGrid.tsx
|
|
@@ -5721,6 +5743,7 @@ import {
|
|
|
5721
5743
|
useCalendarGrid
|
|
5722
5744
|
} from "@react-aria/calendar";
|
|
5723
5745
|
import { useLocale } from "@react-aria/i18n";
|
|
5746
|
+
import { useContext as useContext5 } from "react";
|
|
5724
5747
|
|
|
5725
5748
|
// src/components/date-inputs/DatePicker/Calendar/CalendarCell.tsx
|
|
5726
5749
|
import { isToday } from "@internationalized/date";
|
|
@@ -5772,16 +5795,17 @@ import { jsx as jsx204 } from "react/jsx-runtime";
|
|
|
5772
5795
|
var CalendarPopoverContext = createContext3({
|
|
5773
5796
|
anchorRef: null,
|
|
5774
5797
|
isOpen: false,
|
|
5775
|
-
onClose: () => null
|
|
5798
|
+
onClose: () => null,
|
|
5799
|
+
showWeekNumbers: true
|
|
5776
5800
|
});
|
|
5777
5801
|
var CalendarPopover = ({
|
|
5778
5802
|
children,
|
|
5779
|
-
|
|
5780
|
-
|
|
5803
|
+
onClose,
|
|
5804
|
+
...props
|
|
5781
5805
|
}) => {
|
|
5782
5806
|
const anchorRef = useRef9(null);
|
|
5783
5807
|
useOnKeyDown("Escape", onClose);
|
|
5784
|
-
return /* @__PURE__ */ jsx204(CalendarPopoverContext.Provider, { value: { anchorRef,
|
|
5808
|
+
return /* @__PURE__ */ jsx204(CalendarPopoverContext.Provider, { value: { anchorRef, onClose, ...props }, children });
|
|
5785
5809
|
};
|
|
5786
5810
|
var CalendarPopoverAnchor = ({
|
|
5787
5811
|
children
|
|
@@ -5863,6 +5887,18 @@ function CalendarCell({ date, state }) {
|
|
|
5863
5887
|
}
|
|
5864
5888
|
CalendarCell.displayName = "CalendarCell";
|
|
5865
5889
|
|
|
5890
|
+
// src/components/VisuallyHidden/VisuallyHidden.tsx
|
|
5891
|
+
import { jsx as jsx206 } from "react/jsx-runtime";
|
|
5892
|
+
var VisuallyHidden = (props) => {
|
|
5893
|
+
const { id, className, htmlProps, as, ...rest } = props;
|
|
5894
|
+
const cl = cn(className, utilStyles_default["visually-hidden"]);
|
|
5895
|
+
if (as === "div") {
|
|
5896
|
+
return /* @__PURE__ */ jsx206("div", { ...getBaseHTMLProps(id, cl, htmlProps, rest) });
|
|
5897
|
+
}
|
|
5898
|
+
return /* @__PURE__ */ jsx206("span", { ...getBaseHTMLProps(id, cl, htmlProps, rest) });
|
|
5899
|
+
};
|
|
5900
|
+
VisuallyHidden.displayName = "VisuallyHidden";
|
|
5901
|
+
|
|
5866
5902
|
// src/components/date-inputs/utils/getWeekNumber.ts
|
|
5867
5903
|
import {
|
|
5868
5904
|
endOfYear,
|
|
@@ -5903,7 +5939,7 @@ function isLeapYear(date) {
|
|
|
5903
5939
|
}
|
|
5904
5940
|
|
|
5905
5941
|
// src/components/date-inputs/DatePicker/Calendar/CalendarGrid.tsx
|
|
5906
|
-
import { jsx as
|
|
5942
|
+
import { jsx as jsx207, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
5907
5943
|
function CalendarGrid({ state, ...props }) {
|
|
5908
5944
|
const { locale: locale2 } = useLocale();
|
|
5909
5945
|
const {
|
|
@@ -5912,6 +5948,7 @@ function CalendarGrid({ state, ...props }) {
|
|
|
5912
5948
|
} = useCalendarGrid(props, state);
|
|
5913
5949
|
const weeksInMonth = getWeeksInMonth(state.visibleRange.start, locale2);
|
|
5914
5950
|
const weekDays = ["Ma", "Ti", "On", "To", "Fr", "L\xF8", "S\xF8"];
|
|
5951
|
+
const { showWeekNumbers } = useContext5(CalendarPopoverContext);
|
|
5915
5952
|
const typographyCn = [
|
|
5916
5953
|
typographyStyles_default["supporting-style-tiny-02"],
|
|
5917
5954
|
typographyStyles_default["text-color--subtle"]
|
|
@@ -5928,24 +5965,30 @@ function CalendarGrid({ state, ...props }) {
|
|
|
5928
5965
|
},
|
|
5929
5966
|
cellPadding: "0",
|
|
5930
5967
|
children: [
|
|
5931
|
-
/* @__PURE__ */
|
|
5932
|
-
/* @__PURE__ */
|
|
5933
|
-
|
|
5968
|
+
/* @__PURE__ */ jsx207("thead", { ...headerProps, children: /* @__PURE__ */ jsxs34("tr", { children: [
|
|
5969
|
+
showWeekNumbers && /* @__PURE__ */ jsxs34("th", { className: cn(...typographyCn), children: [
|
|
5970
|
+
"# ",
|
|
5971
|
+
/* @__PURE__ */ jsx207(VisuallyHidden, { as: "span", children: "Ukenummer" })
|
|
5972
|
+
] }),
|
|
5973
|
+
weekDays.map((day, index) => /* @__PURE__ */ jsx207("th", { className: cn(...typographyCn), children: day }, index))
|
|
5934
5974
|
] }) }),
|
|
5935
|
-
/* @__PURE__ */
|
|
5975
|
+
/* @__PURE__ */ jsx207("tbody", { children: [...new Array(weeksInMonth).keys()].map((weekIndex) => {
|
|
5936
5976
|
const datesInWeek = state.getDatesInWeek(weekIndex);
|
|
5937
5977
|
const firstExistingDay = datesInWeek.find(Boolean);
|
|
5938
5978
|
const weekNumber = firstExistingDay ? getWeekNumber(firstExistingDay) : "";
|
|
5939
5979
|
return /* @__PURE__ */ jsxs34("tr", { children: [
|
|
5940
|
-
/* @__PURE__ */
|
|
5980
|
+
showWeekNumbers && /* @__PURE__ */ jsx207(
|
|
5941
5981
|
"td",
|
|
5942
5982
|
{
|
|
5943
|
-
className: cn(
|
|
5983
|
+
className: cn(
|
|
5984
|
+
DateInput_default["calendar__week-number"],
|
|
5985
|
+
...typographyCn
|
|
5986
|
+
),
|
|
5944
5987
|
children: weekNumber
|
|
5945
5988
|
}
|
|
5946
5989
|
),
|
|
5947
5990
|
datesInWeek.map(
|
|
5948
|
-
(date, i2) => date ? /* @__PURE__ */
|
|
5991
|
+
(date, i2) => date ? /* @__PURE__ */ jsx207(CalendarCell, { state, date }, i2) : /* @__PURE__ */ jsx207("td", {}, i2)
|
|
5949
5992
|
)
|
|
5950
5993
|
] }, weekIndex);
|
|
5951
5994
|
}) })
|
|
@@ -5956,7 +5999,7 @@ function CalendarGrid({ state, ...props }) {
|
|
|
5956
5999
|
CalendarGrid.displayName = "CalendarGrid";
|
|
5957
6000
|
|
|
5958
6001
|
// src/components/date-inputs/DatePicker/Calendar/Calendar.tsx
|
|
5959
|
-
import { jsx as
|
|
6002
|
+
import { jsx as jsx208, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
5960
6003
|
function createCalendar(identifier2) {
|
|
5961
6004
|
switch (identifier2) {
|
|
5962
6005
|
case "gregory":
|
|
@@ -5978,7 +6021,7 @@ function Calendar(props) {
|
|
|
5978
6021
|
nextButtonProps: { onPress: onNext, "aria-label": nextAriaLabel },
|
|
5979
6022
|
title
|
|
5980
6023
|
} = useCalendar(props, state);
|
|
5981
|
-
const { onClose } =
|
|
6024
|
+
const { onClose } = useContext6(CalendarPopoverContext);
|
|
5982
6025
|
const closeOnKeyboardBlurBack = (event) => {
|
|
5983
6026
|
if (event.key === "Tab" && event.shiftKey === true) {
|
|
5984
6027
|
onClose();
|
|
@@ -5986,7 +6029,7 @@ function Calendar(props) {
|
|
|
5986
6029
|
};
|
|
5987
6030
|
return /* @__PURE__ */ jsxs35("div", { ...calendarProps, className: DateInput_default.calendar, children: [
|
|
5988
6031
|
/* @__PURE__ */ jsxs35("div", { className: DateInput_default.calendar__header, children: [
|
|
5989
|
-
/* @__PURE__ */
|
|
6032
|
+
/* @__PURE__ */ jsx208(
|
|
5990
6033
|
Button,
|
|
5991
6034
|
{
|
|
5992
6035
|
type: "button",
|
|
@@ -5999,7 +6042,7 @@ function Calendar(props) {
|
|
|
5999
6042
|
className: DateInput_default["calendar__month-button"]
|
|
6000
6043
|
}
|
|
6001
6044
|
),
|
|
6002
|
-
/* @__PURE__ */
|
|
6045
|
+
/* @__PURE__ */ jsx208(
|
|
6003
6046
|
Heading,
|
|
6004
6047
|
{
|
|
6005
6048
|
level: 2,
|
|
@@ -6008,7 +6051,7 @@ function Calendar(props) {
|
|
|
6008
6051
|
children: title
|
|
6009
6052
|
}
|
|
6010
6053
|
),
|
|
6011
|
-
/* @__PURE__ */
|
|
6054
|
+
/* @__PURE__ */ jsx208(
|
|
6012
6055
|
Button,
|
|
6013
6056
|
{
|
|
6014
6057
|
type: "button",
|
|
@@ -6021,7 +6064,7 @@ function Calendar(props) {
|
|
|
6021
6064
|
}
|
|
6022
6065
|
)
|
|
6023
6066
|
] }),
|
|
6024
|
-
/* @__PURE__ */
|
|
6067
|
+
/* @__PURE__ */ jsx208(CalendarGrid, { state })
|
|
6025
6068
|
] });
|
|
6026
6069
|
}
|
|
6027
6070
|
Calendar.displayName = "Calendar";
|
|
@@ -6049,7 +6092,7 @@ import {
|
|
|
6049
6092
|
// src/components/date-inputs/DatePicker/DateField/CalendarButton.tsx
|
|
6050
6093
|
import { useButton } from "@react-aria/button";
|
|
6051
6094
|
import { useRef as useRef11 } from "react";
|
|
6052
|
-
import { jsx as
|
|
6095
|
+
import { jsx as jsx209 } from "react/jsx-runtime";
|
|
6053
6096
|
function CalendarButton({
|
|
6054
6097
|
componentSize,
|
|
6055
6098
|
isReadOnly,
|
|
@@ -6058,7 +6101,7 @@ function CalendarButton({
|
|
|
6058
6101
|
const ref = useRef11(null);
|
|
6059
6102
|
const { buttonProps } = useButton(props, ref);
|
|
6060
6103
|
const size2 = componentSize === "tiny" ? "small" : "medium";
|
|
6061
|
-
return /* @__PURE__ */
|
|
6104
|
+
return /* @__PURE__ */ jsx209(
|
|
6062
6105
|
"button",
|
|
6063
6106
|
{
|
|
6064
6107
|
...buttonProps,
|
|
@@ -6079,7 +6122,7 @@ function CalendarButton({
|
|
|
6079
6122
|
!props.isDisabled && focusable,
|
|
6080
6123
|
props.isDisabled && "disabled"
|
|
6081
6124
|
),
|
|
6082
|
-
children: /* @__PURE__ */
|
|
6125
|
+
children: /* @__PURE__ */ jsx209(Icon, { icon: CalendarIcon, iconSize: size2 })
|
|
6083
6126
|
}
|
|
6084
6127
|
);
|
|
6085
6128
|
}
|
|
@@ -6087,7 +6130,7 @@ function CalendarButton({
|
|
|
6087
6130
|
// src/components/date-inputs/DatePicker/DateField/DateSegment.tsx
|
|
6088
6131
|
import { useDateSegment } from "@react-aria/datepicker";
|
|
6089
6132
|
import { useRef as useRef12 } from "react";
|
|
6090
|
-
import { jsx as
|
|
6133
|
+
import { jsx as jsx210, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
6091
6134
|
var typographyTypes2 = {
|
|
6092
6135
|
medium: "bodySans02",
|
|
6093
6136
|
small: "bodySans01",
|
|
@@ -6121,7 +6164,7 @@ function DateSegment({
|
|
|
6121
6164
|
minWidth: segment.maxValue != null ? String(segment.maxValue).length + "ch" : void 0
|
|
6122
6165
|
},
|
|
6123
6166
|
children: [
|
|
6124
|
-
/* @__PURE__ */
|
|
6167
|
+
/* @__PURE__ */ jsx210(
|
|
6125
6168
|
"span",
|
|
6126
6169
|
{
|
|
6127
6170
|
"aria-hidden": "true",
|
|
@@ -6143,7 +6186,7 @@ DateSegment.displayName = "DateSegment";
|
|
|
6143
6186
|
// src/components/date-inputs/common/DateInput.tsx
|
|
6144
6187
|
import {
|
|
6145
6188
|
forwardRef as forwardRef36,
|
|
6146
|
-
useContext as
|
|
6189
|
+
useContext as useContext7
|
|
6147
6190
|
} from "react";
|
|
6148
6191
|
|
|
6149
6192
|
// src/components/InputMessage/InputMessage.tsx
|
|
@@ -6157,7 +6200,7 @@ var InputMessage_default = {
|
|
|
6157
6200
|
};
|
|
6158
6201
|
|
|
6159
6202
|
// src/components/InputMessage/InputMessage.tsx
|
|
6160
|
-
import { Fragment as Fragment4, jsx as
|
|
6203
|
+
import { Fragment as Fragment4, jsx as jsx211, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
6161
6204
|
var InputMessage = forwardRef35(
|
|
6162
6205
|
(props, ref) => {
|
|
6163
6206
|
const { message, messageType, id, className, htmlProps, ...rest } = props;
|
|
@@ -6177,8 +6220,8 @@ var InputMessage = forwardRef35(
|
|
|
6177
6220
|
),
|
|
6178
6221
|
ref,
|
|
6179
6222
|
children: [
|
|
6180
|
-
isError && /* @__PURE__ */
|
|
6181
|
-
/* @__PURE__ */
|
|
6223
|
+
isError && /* @__PURE__ */ jsx211(Icon, { icon: ErrorIcon, iconSize: "small", className: InputMessage_default.icon }),
|
|
6224
|
+
/* @__PURE__ */ jsx211(
|
|
6182
6225
|
Typography,
|
|
6183
6226
|
{
|
|
6184
6227
|
typographyType: isError ? "bodySans01" : "supportingStyleHelperText01",
|
|
@@ -6193,7 +6236,7 @@ var InputMessage = forwardRef35(
|
|
|
6193
6236
|
);
|
|
6194
6237
|
InputMessage.displayName = "InputMessage";
|
|
6195
6238
|
var renderInputMessage = (tip, tipId, errorMessage, errorMessageId) => /* @__PURE__ */ jsxs37(Fragment4, { children: [
|
|
6196
|
-
errorMessage && errorMessageId && /* @__PURE__ */
|
|
6239
|
+
errorMessage && errorMessageId && /* @__PURE__ */ jsx211(
|
|
6197
6240
|
InputMessage,
|
|
6198
6241
|
{
|
|
6199
6242
|
message: errorMessage,
|
|
@@ -6201,11 +6244,11 @@ var renderInputMessage = (tip, tipId, errorMessage, errorMessageId) => /* @__PUR
|
|
|
6201
6244
|
id: errorMessageId
|
|
6202
6245
|
}
|
|
6203
6246
|
),
|
|
6204
|
-
tip && tipId && !errorMessage && /* @__PURE__ */
|
|
6247
|
+
tip && tipId && !errorMessage && /* @__PURE__ */ jsx211(InputMessage, { message: tip, messageType: "tip", id: tipId })
|
|
6205
6248
|
] });
|
|
6206
6249
|
|
|
6207
6250
|
// src/components/date-inputs/common/DateInput.tsx
|
|
6208
|
-
import { jsx as
|
|
6251
|
+
import { jsx as jsx212, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
6209
6252
|
function _DateInput({
|
|
6210
6253
|
errorMessage,
|
|
6211
6254
|
tip,
|
|
@@ -6230,7 +6273,7 @@ function _DateInput({
|
|
|
6230
6273
|
const hasTip = !!tip;
|
|
6231
6274
|
const hasLabel = props.label != null;
|
|
6232
6275
|
const hasMessage = hasErrorMessage || hasTip;
|
|
6233
|
-
const { isOpen } =
|
|
6276
|
+
const { isOpen } = useContext7(CalendarPopoverContext);
|
|
6234
6277
|
const styleVariables = {
|
|
6235
6278
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6236
6279
|
["--dds-date-input-width"]: width ? width : componentSize === "small" ? "148px" : componentSize === "tiny" ? "125px" : "160px"
|
|
@@ -6242,7 +6285,7 @@ function _DateInput({
|
|
|
6242
6285
|
className: cn(className, Input_default.container),
|
|
6243
6286
|
ref: forwardedRef,
|
|
6244
6287
|
children: [
|
|
6245
|
-
hasLabel && /* @__PURE__ */
|
|
6288
|
+
hasLabel && /* @__PURE__ */ jsx212(
|
|
6246
6289
|
Label,
|
|
6247
6290
|
{
|
|
6248
6291
|
...labelProps,
|
|
@@ -6276,11 +6319,11 @@ function _DateInput({
|
|
|
6276
6319
|
),
|
|
6277
6320
|
children: [
|
|
6278
6321
|
button,
|
|
6279
|
-
/* @__PURE__ */
|
|
6322
|
+
/* @__PURE__ */ jsx212("div", { className: DateInput_default["date-segment-container"], children })
|
|
6280
6323
|
]
|
|
6281
6324
|
}
|
|
6282
6325
|
),
|
|
6283
|
-
hasMessage && /* @__PURE__ */
|
|
6326
|
+
hasMessage && /* @__PURE__ */ jsx212(
|
|
6284
6327
|
InputMessage,
|
|
6285
6328
|
{
|
|
6286
6329
|
messageType: hasErrorMessage ? "error" : "tip",
|
|
@@ -6295,7 +6338,7 @@ var DateInput = forwardRef36(_DateInput);
|
|
|
6295
6338
|
DateInput.displayName = "DateInput";
|
|
6296
6339
|
|
|
6297
6340
|
// src/components/date-inputs/DatePicker/DateField/DateField.tsx
|
|
6298
|
-
import { jsx as
|
|
6341
|
+
import { jsx as jsx213 } from "react/jsx-runtime";
|
|
6299
6342
|
function _DateField({
|
|
6300
6343
|
componentSize = "medium",
|
|
6301
6344
|
buttonProps,
|
|
@@ -6311,7 +6354,7 @@ function _DateField({
|
|
|
6311
6354
|
const ref = useRef13(null);
|
|
6312
6355
|
const { labelProps, fieldProps } = useDateField(props, state, ref);
|
|
6313
6356
|
const disabled = props.isDisabled || !!fieldProps["aria-disabled"];
|
|
6314
|
-
return /* @__PURE__ */
|
|
6357
|
+
return /* @__PURE__ */ jsx213(
|
|
6315
6358
|
DateInput,
|
|
6316
6359
|
{
|
|
6317
6360
|
...props,
|
|
@@ -6323,7 +6366,7 @@ function _DateField({
|
|
|
6323
6366
|
ref: forwardedRef,
|
|
6324
6367
|
internalRef: ref,
|
|
6325
6368
|
readOnly: props.isReadOnly,
|
|
6326
|
-
prefix: /* @__PURE__ */
|
|
6369
|
+
prefix: /* @__PURE__ */ jsx213(
|
|
6327
6370
|
CalendarButton,
|
|
6328
6371
|
{
|
|
6329
6372
|
componentSize,
|
|
@@ -6334,7 +6377,7 @@ function _DateField({
|
|
|
6334
6377
|
),
|
|
6335
6378
|
labelProps,
|
|
6336
6379
|
fieldProps,
|
|
6337
|
-
children: state.segments.map((segment, i2) => /* @__PURE__ */
|
|
6380
|
+
children: state.segments.map((segment, i2) => /* @__PURE__ */ jsx213(
|
|
6338
6381
|
DateSegment,
|
|
6339
6382
|
{
|
|
6340
6383
|
"aria-readonly": props.isReadOnly,
|
|
@@ -6372,11 +6415,19 @@ function createDOMRef(ref) {
|
|
|
6372
6415
|
}
|
|
6373
6416
|
|
|
6374
6417
|
// src/components/date-inputs/DatePicker/DatePicker.tsx
|
|
6375
|
-
import { jsx as
|
|
6418
|
+
import { jsx as jsx214, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
6376
6419
|
var refIsFocusable = (ref) => {
|
|
6377
6420
|
return typeof ref === "object" && ref !== null && "focus" in ref;
|
|
6378
6421
|
};
|
|
6379
|
-
function _DatePicker({
|
|
6422
|
+
function _DatePicker({
|
|
6423
|
+
errorMessage,
|
|
6424
|
+
componentSize,
|
|
6425
|
+
tip,
|
|
6426
|
+
style,
|
|
6427
|
+
width,
|
|
6428
|
+
showWeekNumbers = true,
|
|
6429
|
+
...props
|
|
6430
|
+
}, forwardedRef) {
|
|
6380
6431
|
const state = useDatePickerState(props);
|
|
6381
6432
|
const domRef = useFocusManagerRef(
|
|
6382
6433
|
refIsFocusable(forwardRef38) ? forwardedRef : null
|
|
@@ -6388,25 +6439,33 @@ function _DatePicker({ errorMessage, componentSize, tip, style, width, ...props
|
|
|
6388
6439
|
state,
|
|
6389
6440
|
ref
|
|
6390
6441
|
);
|
|
6391
|
-
return /* @__PURE__ */
|
|
6392
|
-
|
|
6393
|
-
|
|
6394
|
-
|
|
6395
|
-
|
|
6396
|
-
|
|
6397
|
-
|
|
6398
|
-
|
|
6399
|
-
|
|
6400
|
-
|
|
6401
|
-
|
|
6402
|
-
|
|
6403
|
-
|
|
6404
|
-
|
|
6405
|
-
|
|
6406
|
-
|
|
6407
|
-
|
|
6408
|
-
|
|
6409
|
-
|
|
6442
|
+
return /* @__PURE__ */ jsx214(I18nProvider, { locale, children: /* @__PURE__ */ jsxs39(
|
|
6443
|
+
CalendarPopover,
|
|
6444
|
+
{
|
|
6445
|
+
isOpen: state.isOpen,
|
|
6446
|
+
onClose: state.close,
|
|
6447
|
+
showWeekNumbers,
|
|
6448
|
+
children: [
|
|
6449
|
+
/* @__PURE__ */ jsx214(CalendarPopoverAnchor, { children: /* @__PURE__ */ jsx214(
|
|
6450
|
+
DateField,
|
|
6451
|
+
{
|
|
6452
|
+
...fieldProps,
|
|
6453
|
+
groupProps,
|
|
6454
|
+
ref: combinedRef,
|
|
6455
|
+
componentSize,
|
|
6456
|
+
tip,
|
|
6457
|
+
label: props.label,
|
|
6458
|
+
errorMessage,
|
|
6459
|
+
buttonProps,
|
|
6460
|
+
isOpen: state.isOpen,
|
|
6461
|
+
style,
|
|
6462
|
+
width
|
|
6463
|
+
}
|
|
6464
|
+
) }),
|
|
6465
|
+
/* @__PURE__ */ jsx214(CalendarPopoverContent, { children: /* @__PURE__ */ jsx214(Calendar, { ...calendarProps }) })
|
|
6466
|
+
]
|
|
6467
|
+
}
|
|
6468
|
+
) });
|
|
6410
6469
|
}
|
|
6411
6470
|
var DatePicker = forwardRef38(_DatePicker);
|
|
6412
6471
|
DatePicker.displayName = "DatePicker";
|
|
@@ -6415,7 +6474,7 @@ DatePicker.displayName = "DatePicker";
|
|
|
6415
6474
|
import { useTimeField } from "@react-aria/datepicker";
|
|
6416
6475
|
import { useTimeFieldState } from "@react-stately/datepicker";
|
|
6417
6476
|
import { forwardRef as forwardRef39, useRef as useRef16 } from "react";
|
|
6418
|
-
import { jsx as
|
|
6477
|
+
import { jsx as jsx215 } from "react/jsx-runtime";
|
|
6419
6478
|
function _TimePicker({ componentSize = "medium", width, ...props }, forwardedRef) {
|
|
6420
6479
|
const ref = useRef16(null);
|
|
6421
6480
|
const state = useTimeFieldState({
|
|
@@ -6429,7 +6488,7 @@ function _TimePicker({ componentSize = "medium", width, ...props }, forwardedRef
|
|
|
6429
6488
|
);
|
|
6430
6489
|
const iconSize = componentSize === "tiny" ? "small" : "medium";
|
|
6431
6490
|
const disabled = props.isDisabled || !!fieldProps["aria-disabled"];
|
|
6432
|
-
return /* @__PURE__ */
|
|
6491
|
+
return /* @__PURE__ */ jsx215(
|
|
6433
6492
|
DateInput,
|
|
6434
6493
|
{
|
|
6435
6494
|
...props,
|
|
@@ -6442,7 +6501,7 @@ function _TimePicker({ componentSize = "medium", width, ...props }, forwardedRef
|
|
|
6442
6501
|
readOnly: props.isReadOnly,
|
|
6443
6502
|
labelProps,
|
|
6444
6503
|
fieldProps,
|
|
6445
|
-
prefix: /* @__PURE__ */
|
|
6504
|
+
prefix: /* @__PURE__ */ jsx215(
|
|
6446
6505
|
"span",
|
|
6447
6506
|
{
|
|
6448
6507
|
className: cn(
|
|
@@ -6451,10 +6510,10 @@ function _TimePicker({ componentSize = "medium", width, ...props }, forwardedRef
|
|
|
6451
6510
|
props.isReadOnly && DateInput_default["icon-wrapper--readonly"],
|
|
6452
6511
|
DateInput_default[`icon-wrapper--${iconSize}`]
|
|
6453
6512
|
),
|
|
6454
|
-
children: /* @__PURE__ */
|
|
6513
|
+
children: /* @__PURE__ */ jsx215(Icon, { icon: TimeIcon, iconSize })
|
|
6455
6514
|
}
|
|
6456
6515
|
),
|
|
6457
|
-
children: state.segments.map((segment, i2) => /* @__PURE__ */
|
|
6516
|
+
children: state.segments.map((segment, i2) => /* @__PURE__ */ jsx215(
|
|
6458
6517
|
DateSegment,
|
|
6459
6518
|
{
|
|
6460
6519
|
componentSize,
|
|
@@ -6517,7 +6576,7 @@ var DescriptionList_default = {
|
|
|
6517
6576
|
};
|
|
6518
6577
|
|
|
6519
6578
|
// src/components/DescriptionList/DescriptionList.tsx
|
|
6520
|
-
import { jsx as
|
|
6579
|
+
import { jsx as jsx216 } from "react/jsx-runtime";
|
|
6521
6580
|
var DescriptionList = forwardRef40((props, ref) => {
|
|
6522
6581
|
const {
|
|
6523
6582
|
appearance = "default",
|
|
@@ -6528,7 +6587,7 @@ var DescriptionList = forwardRef40((props, ref) => {
|
|
|
6528
6587
|
htmlProps,
|
|
6529
6588
|
...rest
|
|
6530
6589
|
} = props;
|
|
6531
|
-
return /* @__PURE__ */
|
|
6590
|
+
return /* @__PURE__ */ jsx216(
|
|
6532
6591
|
"dl",
|
|
6533
6592
|
{
|
|
6534
6593
|
ref,
|
|
@@ -6551,15 +6610,15 @@ DescriptionList.displayName = "DescriptionList";
|
|
|
6551
6610
|
|
|
6552
6611
|
// src/components/DescriptionList/DescriptionListTerm.tsx
|
|
6553
6612
|
import { forwardRef as forwardRef41 } from "react";
|
|
6554
|
-
import { jsx as
|
|
6613
|
+
import { jsx as jsx217 } from "react/jsx-runtime";
|
|
6555
6614
|
var DescriptionListTerm = forwardRef41(({ ...rest }, ref) => {
|
|
6556
|
-
return /* @__PURE__ */
|
|
6615
|
+
return /* @__PURE__ */ jsx217("dt", { ref, ...rest });
|
|
6557
6616
|
});
|
|
6558
6617
|
DescriptionListTerm.displayName = "DescriptionListTerm";
|
|
6559
6618
|
|
|
6560
6619
|
// src/components/DescriptionList/DescriptionListDesc.tsx
|
|
6561
6620
|
import { forwardRef as forwardRef42 } from "react";
|
|
6562
|
-
import { jsx as
|
|
6621
|
+
import { jsx as jsx218, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
6563
6622
|
var DescriptionListDesc = forwardRef42((props, ref) => {
|
|
6564
6623
|
const { children, icon, id, className, htmlProps, ...rest } = props;
|
|
6565
6624
|
return /* @__PURE__ */ jsxs40(
|
|
@@ -6568,7 +6627,7 @@ var DescriptionListDesc = forwardRef42((props, ref) => {
|
|
|
6568
6627
|
ref,
|
|
6569
6628
|
...getBaseHTMLProps(id, cn(className, DescriptionList_default.desc), htmlProps, rest),
|
|
6570
6629
|
children: [
|
|
6571
|
-
icon && /* @__PURE__ */
|
|
6630
|
+
icon && /* @__PURE__ */ jsx218(Icon, { icon }),
|
|
6572
6631
|
" ",
|
|
6573
6632
|
children
|
|
6574
6633
|
]
|
|
@@ -6579,7 +6638,7 @@ DescriptionListDesc.displayName = "DescriptionListDesc";
|
|
|
6579
6638
|
|
|
6580
6639
|
// src/components/DescriptionList/DescriptionListGroup.tsx
|
|
6581
6640
|
import { forwardRef as forwardRef43 } from "react";
|
|
6582
|
-
import { jsx as
|
|
6641
|
+
import { jsx as jsx219 } from "react/jsx-runtime";
|
|
6583
6642
|
var DescriptionListGroup = forwardRef43((props, ref) => {
|
|
6584
6643
|
const {
|
|
6585
6644
|
children,
|
|
@@ -6591,7 +6650,7 @@ var DescriptionListGroup = forwardRef43((props, ref) => {
|
|
|
6591
6650
|
htmlProps,
|
|
6592
6651
|
...rest
|
|
6593
6652
|
} = props;
|
|
6594
|
-
return /* @__PURE__ */
|
|
6653
|
+
return /* @__PURE__ */ jsx219(
|
|
6595
6654
|
"div",
|
|
6596
6655
|
{
|
|
6597
6656
|
ref,
|
|
@@ -6620,7 +6679,7 @@ var DetailList_default = {
|
|
|
6620
6679
|
};
|
|
6621
6680
|
|
|
6622
6681
|
// src/components/DetailList/DetailList.tsx
|
|
6623
|
-
import { jsx as
|
|
6682
|
+
import { jsx as jsx220 } from "react/jsx-runtime";
|
|
6624
6683
|
var DetailList = forwardRef44(
|
|
6625
6684
|
(props, ref) => {
|
|
6626
6685
|
const {
|
|
@@ -6632,7 +6691,7 @@ var DetailList = forwardRef44(
|
|
|
6632
6691
|
density = "normal",
|
|
6633
6692
|
...rest
|
|
6634
6693
|
} = props;
|
|
6635
|
-
return /* @__PURE__ */
|
|
6694
|
+
return /* @__PURE__ */ jsx220(
|
|
6636
6695
|
"dl",
|
|
6637
6696
|
{
|
|
6638
6697
|
ref,
|
|
@@ -6656,30 +6715,30 @@ DetailList.displayName = "DetailList";
|
|
|
6656
6715
|
|
|
6657
6716
|
// src/components/DetailList/DetailListDesc.tsx
|
|
6658
6717
|
import { forwardRef as forwardRef45 } from "react";
|
|
6659
|
-
import { jsx as
|
|
6718
|
+
import { jsx as jsx221 } from "react/jsx-runtime";
|
|
6660
6719
|
var DetailListDesc = forwardRef45(
|
|
6661
6720
|
({ className, ...rest }, ref) => {
|
|
6662
|
-
return /* @__PURE__ */
|
|
6721
|
+
return /* @__PURE__ */ jsx221("dd", { ref, className: cn(className, DetailList_default.cell), ...rest });
|
|
6663
6722
|
}
|
|
6664
6723
|
);
|
|
6665
6724
|
DetailListDesc.displayName = "DetailListDesc";
|
|
6666
6725
|
|
|
6667
6726
|
// src/components/DetailList/DetailListRow.tsx
|
|
6668
6727
|
import { forwardRef as forwardRef46 } from "react";
|
|
6669
|
-
import { jsx as
|
|
6728
|
+
import { jsx as jsx222 } from "react/jsx-runtime";
|
|
6670
6729
|
var DetailListRow = forwardRef46(
|
|
6671
6730
|
({ className, ...rest }, ref) => {
|
|
6672
|
-
return /* @__PURE__ */
|
|
6731
|
+
return /* @__PURE__ */ jsx222("div", { ref, className: cn(className, DetailList_default.row), ...rest });
|
|
6673
6732
|
}
|
|
6674
6733
|
);
|
|
6675
6734
|
DetailListRow.displayName = "DetailListRow";
|
|
6676
6735
|
|
|
6677
6736
|
// src/components/DetailList/DetailListTerm.tsx
|
|
6678
6737
|
import { forwardRef as forwardRef47 } from "react";
|
|
6679
|
-
import { jsx as
|
|
6738
|
+
import { jsx as jsx223 } from "react/jsx-runtime";
|
|
6680
6739
|
var DetailListTerm = forwardRef47(
|
|
6681
6740
|
({ className, ...rest }, ref) => {
|
|
6682
|
-
return /* @__PURE__ */
|
|
6741
|
+
return /* @__PURE__ */ jsx223(
|
|
6683
6742
|
"dt",
|
|
6684
6743
|
{
|
|
6685
6744
|
ref,
|
|
@@ -6717,7 +6776,7 @@ var Drawer_default = {
|
|
|
6717
6776
|
};
|
|
6718
6777
|
|
|
6719
6778
|
// src/components/Drawer/Drawer.tsx
|
|
6720
|
-
import { jsx as
|
|
6779
|
+
import { jsx as jsx224, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
6721
6780
|
var Drawer = forwardRef48((props, ref) => {
|
|
6722
6781
|
const {
|
|
6723
6782
|
children,
|
|
@@ -6808,12 +6867,12 @@ var Drawer = forwardRef48((props, ref) => {
|
|
|
6808
6867
|
utilStyles_default["scrollable-y"]
|
|
6809
6868
|
),
|
|
6810
6869
|
children: [
|
|
6811
|
-
hasHeader && /* @__PURE__ */
|
|
6870
|
+
hasHeader && /* @__PURE__ */ jsx224("div", { id: headerId, children: typeof header === "string" ? /* @__PURE__ */ jsx224(Heading, { level: 2, typographyType: "headingSans03", children: header }) : header }),
|
|
6812
6871
|
children
|
|
6813
6872
|
]
|
|
6814
6873
|
}
|
|
6815
6874
|
),
|
|
6816
|
-
/* @__PURE__ */
|
|
6875
|
+
/* @__PURE__ */ jsx224(
|
|
6817
6876
|
Button,
|
|
6818
6877
|
{
|
|
6819
6878
|
className: cn(Drawer_default["button--close"]),
|
|
@@ -6828,7 +6887,7 @@ var Drawer = forwardRef48((props, ref) => {
|
|
|
6828
6887
|
]
|
|
6829
6888
|
}
|
|
6830
6889
|
);
|
|
6831
|
-
const component = withBackdrop ? /* @__PURE__ */
|
|
6890
|
+
const component = withBackdrop ? /* @__PURE__ */ jsx224(Backdrop, { isMounted, ref: backdropRef, onClick: onBackdropClick, children: drawer }) : drawer;
|
|
6832
6891
|
return isOpen || hasTransitionedIn ? createPortal(component, parentElement) : null;
|
|
6833
6892
|
});
|
|
6834
6893
|
Drawer.displayName = "Drawer";
|
|
@@ -6893,7 +6952,7 @@ var EmptyContent_default = {
|
|
|
6893
6952
|
};
|
|
6894
6953
|
|
|
6895
6954
|
// src/components/EmptyContent/EmptyContent.tsx
|
|
6896
|
-
import { jsx as
|
|
6955
|
+
import { jsx as jsx225, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
6897
6956
|
function EmptyContent({
|
|
6898
6957
|
title,
|
|
6899
6958
|
message,
|
|
@@ -6901,9 +6960,9 @@ function EmptyContent({
|
|
|
6901
6960
|
className,
|
|
6902
6961
|
...rest
|
|
6903
6962
|
}) {
|
|
6904
|
-
return /* @__PURE__ */
|
|
6905
|
-
title && /* @__PURE__ */
|
|
6906
|
-
/* @__PURE__ */
|
|
6963
|
+
return /* @__PURE__ */ jsx225("div", { ...rest, className: cn(className, EmptyContent_default.containter), children: /* @__PURE__ */ jsxs43("div", { className: EmptyContent_default.text, children: [
|
|
6964
|
+
title && /* @__PURE__ */ jsx225(Heading, { level: titleHeadingLevel, typographyType: "headingSans02", children: title }),
|
|
6965
|
+
/* @__PURE__ */ jsx225(Paragraph, { className: EmptyContent_default.message, children: message })
|
|
6907
6966
|
] }) });
|
|
6908
6967
|
}
|
|
6909
6968
|
EmptyContent.displayName = "EmptyContent";
|
|
@@ -6958,7 +7017,7 @@ function useControllableState(props) {
|
|
|
6958
7017
|
}
|
|
6959
7018
|
|
|
6960
7019
|
// src/components/FavStar/FavStar.tsx
|
|
6961
|
-
import { jsx as
|
|
7020
|
+
import { jsx as jsx226, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
6962
7021
|
var FavStar = forwardRef49(
|
|
6963
7022
|
({
|
|
6964
7023
|
id,
|
|
@@ -6995,7 +7054,7 @@ var FavStar = forwardRef49(
|
|
|
6995
7054
|
style,
|
|
6996
7055
|
htmlFor: id != null ? id : generatedId,
|
|
6997
7056
|
children: [
|
|
6998
|
-
/* @__PURE__ */
|
|
7057
|
+
/* @__PURE__ */ jsx226(
|
|
6999
7058
|
"input",
|
|
7000
7059
|
{
|
|
7001
7060
|
...props,
|
|
@@ -7008,8 +7067,8 @@ var FavStar = forwardRef49(
|
|
|
7008
7067
|
className: utilStyles_default["hide-input"]
|
|
7009
7068
|
}
|
|
7010
7069
|
),
|
|
7011
|
-
/* @__PURE__ */
|
|
7012
|
-
/* @__PURE__ */
|
|
7070
|
+
/* @__PURE__ */ jsx226(Icon, { iconSize: size2, icon: StarIcon, className: FavStar_default.icon }),
|
|
7071
|
+
/* @__PURE__ */ jsx226(
|
|
7013
7072
|
Icon,
|
|
7014
7073
|
{
|
|
7015
7074
|
iconSize: size2,
|
|
@@ -7030,8 +7089,8 @@ import { useEffect as useEffect20, useState as useState13 } from "react";
|
|
|
7030
7089
|
// src/components/Feedback/Feedback.module.css
|
|
7031
7090
|
var Feedback_default = {
|
|
7032
7091
|
"rating-container": "Feedback_rating-container",
|
|
7033
|
-
"rating-container--
|
|
7034
|
-
"rating-container--
|
|
7092
|
+
"rating-container--horizontal": "Feedback_rating-container--horizontal",
|
|
7093
|
+
"rating-container--vertical": "Feedback_rating-container--vertical",
|
|
7035
7094
|
"rating-submitted-title": "Feedback_rating-submitted-title",
|
|
7036
7095
|
button: "Feedback_button",
|
|
7037
7096
|
"button--horizontal": "Feedback_button--horizontal",
|
|
@@ -7075,7 +7134,7 @@ var Stack_default = {
|
|
|
7075
7134
|
};
|
|
7076
7135
|
|
|
7077
7136
|
// src/components/Stack/Stack.tsx
|
|
7078
|
-
import { jsx as
|
|
7137
|
+
import { jsx as jsx227 } from "react/jsx-runtime";
|
|
7079
7138
|
var HStack = forwardRef50(
|
|
7080
7139
|
({
|
|
7081
7140
|
id,
|
|
@@ -7093,7 +7152,7 @@ var HStack = forwardRef50(
|
|
|
7093
7152
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
7094
7153
|
["--dds-stack-justify-content"]: justify
|
|
7095
7154
|
};
|
|
7096
|
-
return /* @__PURE__ */
|
|
7155
|
+
return /* @__PURE__ */ jsx227(
|
|
7097
7156
|
"div",
|
|
7098
7157
|
{
|
|
7099
7158
|
ref,
|
|
@@ -7132,7 +7191,7 @@ var VStack = forwardRef50(
|
|
|
7132
7191
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
7133
7192
|
["--dds-stack-justify-content"]: justify
|
|
7134
7193
|
};
|
|
7135
|
-
return /* @__PURE__ */
|
|
7194
|
+
return /* @__PURE__ */ jsx227(
|
|
7136
7195
|
"div",
|
|
7137
7196
|
{
|
|
7138
7197
|
ref,
|
|
@@ -7168,7 +7227,7 @@ var TextArea_default = {
|
|
|
7168
7227
|
};
|
|
7169
7228
|
|
|
7170
7229
|
// src/components/TextArea/TextArea.tsx
|
|
7171
|
-
import { jsx as
|
|
7230
|
+
import { jsx as jsx228, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
7172
7231
|
var TextArea = forwardRef51(
|
|
7173
7232
|
(props, ref) => {
|
|
7174
7233
|
const {
|
|
@@ -7227,7 +7286,7 @@ var TextArea = forwardRef51(
|
|
|
7227
7286
|
className: cn(className, Input_default.container),
|
|
7228
7287
|
style: { ...style },
|
|
7229
7288
|
children: [
|
|
7230
|
-
hasLabel && /* @__PURE__ */
|
|
7289
|
+
hasLabel && /* @__PURE__ */ jsx228(
|
|
7231
7290
|
Label,
|
|
7232
7291
|
{
|
|
7233
7292
|
showRequiredStyling,
|
|
@@ -7237,7 +7296,7 @@ var TextArea = forwardRef51(
|
|
|
7237
7296
|
children: label
|
|
7238
7297
|
}
|
|
7239
7298
|
),
|
|
7240
|
-
/* @__PURE__ */
|
|
7299
|
+
/* @__PURE__ */ jsx228(
|
|
7241
7300
|
"textarea",
|
|
7242
7301
|
{
|
|
7243
7302
|
ref: multiRef,
|
|
@@ -7285,9 +7344,29 @@ var TextArea = forwardRef51(
|
|
|
7285
7344
|
);
|
|
7286
7345
|
TextArea.displayName = "TextArea";
|
|
7287
7346
|
|
|
7347
|
+
// src/components/Feedback/utils.tsx
|
|
7348
|
+
import { jsx as jsx229 } from "react/jsx-runtime";
|
|
7349
|
+
var getIconSize = (layout) => layout === "vertical" ? "large" : "medium";
|
|
7350
|
+
var ThumbIcon = ({ rating, layout, type }) => type === "comment" ? /* @__PURE__ */ jsx229(
|
|
7351
|
+
Icon,
|
|
7352
|
+
{
|
|
7353
|
+
icon: rating === "positive" ? ThumbUpFilledIcon : ThumbDownFilledIcon,
|
|
7354
|
+
color: "iconActionResting",
|
|
7355
|
+
iconSize: getIconSize(layout)
|
|
7356
|
+
}
|
|
7357
|
+
) : /* @__PURE__ */ jsx229(
|
|
7358
|
+
Icon,
|
|
7359
|
+
{
|
|
7360
|
+
icon: rating === "positive" ? ThumbUpIcon : ThumbDownIcon,
|
|
7361
|
+
color: "iconMedium",
|
|
7362
|
+
iconSize: getIconSize(layout)
|
|
7363
|
+
}
|
|
7364
|
+
);
|
|
7365
|
+
|
|
7288
7366
|
// src/components/Feedback/CommentComponent.tsx
|
|
7289
|
-
import { jsx as
|
|
7367
|
+
import { jsx as jsx230, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
7290
7368
|
var CommentComponent = ({
|
|
7369
|
+
layout,
|
|
7291
7370
|
rating,
|
|
7292
7371
|
feedbackText,
|
|
7293
7372
|
positiveFeedbackLabel,
|
|
@@ -7300,19 +7379,13 @@ var CommentComponent = ({
|
|
|
7300
7379
|
}) => {
|
|
7301
7380
|
return /* @__PURE__ */ jsxs46(VStack, { gap: "x1", align: "flex-start", children: [
|
|
7302
7381
|
/* @__PURE__ */ jsxs46("span", { className: Feedback_default["rating-submitted-title"], children: [
|
|
7303
|
-
|
|
7304
|
-
Icon,
|
|
7305
|
-
{
|
|
7306
|
-
icon: rating === "positive" ? ThumbUpFilledIcon : ThumbDownFilledIcon,
|
|
7307
|
-
color: "iconActionResting"
|
|
7308
|
-
}
|
|
7309
|
-
),
|
|
7382
|
+
ThumbIcon({ rating, layout, type: "comment" }),
|
|
7310
7383
|
/* @__PURE__ */ jsxs46(Paragraph, { children: [
|
|
7311
7384
|
ratingSubmittedTitle,
|
|
7312
7385
|
" "
|
|
7313
7386
|
] })
|
|
7314
7387
|
] }),
|
|
7315
|
-
/* @__PURE__ */
|
|
7388
|
+
/* @__PURE__ */ jsx230(
|
|
7316
7389
|
TextArea,
|
|
7317
7390
|
{
|
|
7318
7391
|
value: feedbackText,
|
|
@@ -7321,7 +7394,7 @@ var CommentComponent = ({
|
|
|
7321
7394
|
tip: textAreaTip
|
|
7322
7395
|
}
|
|
7323
7396
|
),
|
|
7324
|
-
/* @__PURE__ */
|
|
7397
|
+
/* @__PURE__ */ jsx230(
|
|
7325
7398
|
Button,
|
|
7326
7399
|
{
|
|
7327
7400
|
purpose: "secondary",
|
|
@@ -7355,7 +7428,7 @@ var Tooltip_default = {
|
|
|
7355
7428
|
};
|
|
7356
7429
|
|
|
7357
7430
|
// src/components/Tooltip/Tooltip.tsx
|
|
7358
|
-
import { jsx as
|
|
7431
|
+
import { jsx as jsx231, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
7359
7432
|
var Tooltip = forwardRef52(
|
|
7360
7433
|
(props, ref) => {
|
|
7361
7434
|
const {
|
|
@@ -7469,15 +7542,15 @@ var Tooltip = forwardRef52(
|
|
|
7469
7542
|
),
|
|
7470
7543
|
children: [
|
|
7471
7544
|
text,
|
|
7472
|
-
/* @__PURE__ */
|
|
7473
|
-
/* @__PURE__ */
|
|
7545
|
+
/* @__PURE__ */ jsx231("div", { ref: setArrowElement, style: positionStyles.arrow, children: /* @__PURE__ */ jsxs47("svg", { width: "36", height: "9", children: [
|
|
7546
|
+
/* @__PURE__ */ jsx231(
|
|
7474
7547
|
"path",
|
|
7475
7548
|
{
|
|
7476
7549
|
d: "M16.586 6.586L10 0h16.154a.373.373 0 00-.263.11l-6.477 6.476a2 2 0 01-2.828 0z",
|
|
7477
7550
|
className: Tooltip_default["svg-arrow__background"]
|
|
7478
7551
|
}
|
|
7479
7552
|
),
|
|
7480
|
-
/* @__PURE__ */
|
|
7553
|
+
/* @__PURE__ */ jsx231(
|
|
7481
7554
|
"path",
|
|
7482
7555
|
{
|
|
7483
7556
|
fillRule: "evenodd",
|
|
@@ -7496,7 +7569,7 @@ var Tooltip = forwardRef52(
|
|
|
7496
7569
|
Tooltip.displayName = "Tooltip";
|
|
7497
7570
|
|
|
7498
7571
|
// src/components/Feedback/RatingComponent.tsx
|
|
7499
|
-
import { jsx as
|
|
7572
|
+
import { jsx as jsx232, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
7500
7573
|
var RatingComponent = ({
|
|
7501
7574
|
layout,
|
|
7502
7575
|
ratingLabel,
|
|
@@ -7505,25 +7578,18 @@ var RatingComponent = ({
|
|
|
7505
7578
|
thumbDownTooltip,
|
|
7506
7579
|
handleRatingChange
|
|
7507
7580
|
}) => {
|
|
7508
|
-
const
|
|
7509
|
-
const button = (purpose, layout2) => /* @__PURE__ */ jsx230(
|
|
7581
|
+
const button = (rating, layout2, tooltip) => /* @__PURE__ */ jsx232(
|
|
7510
7582
|
"button",
|
|
7511
7583
|
{
|
|
7512
|
-
"aria-label":
|
|
7513
|
-
onClick: () => handleRatingChange(
|
|
7584
|
+
"aria-label": tooltip,
|
|
7585
|
+
onClick: () => handleRatingChange(rating),
|
|
7514
7586
|
className: cn(
|
|
7515
7587
|
utilStyles_default["remove-button-styling"],
|
|
7516
7588
|
Feedback_default.button,
|
|
7517
7589
|
Feedback_default[`button--${layout2}`],
|
|
7518
7590
|
focusable
|
|
7519
7591
|
),
|
|
7520
|
-
children:
|
|
7521
|
-
Icon,
|
|
7522
|
-
{
|
|
7523
|
-
icon: purpose === "up" ? ThumbUpIcon : ThumbDownIcon,
|
|
7524
|
-
iconSize: layout2 === "vertical" ? "large" : "medium"
|
|
7525
|
-
}
|
|
7526
|
-
)
|
|
7592
|
+
children: ThumbIcon({ rating, layout: layout2, type: "rating" })
|
|
7527
7593
|
}
|
|
7528
7594
|
);
|
|
7529
7595
|
return /* @__PURE__ */ jsxs48(
|
|
@@ -7531,13 +7597,13 @@ var RatingComponent = ({
|
|
|
7531
7597
|
{
|
|
7532
7598
|
className: cn(
|
|
7533
7599
|
Feedback_default["rating-container"],
|
|
7534
|
-
Feedback_default[`rating-container--${
|
|
7600
|
+
Feedback_default[`rating-container--${layout}`]
|
|
7535
7601
|
),
|
|
7536
7602
|
children: [
|
|
7537
|
-
/* @__PURE__ */
|
|
7538
|
-
loading ? /* @__PURE__ */
|
|
7539
|
-
/* @__PURE__ */
|
|
7540
|
-
/* @__PURE__ */
|
|
7603
|
+
/* @__PURE__ */ jsx232(Label, { children: ratingLabel }),
|
|
7604
|
+
loading ? /* @__PURE__ */ jsx232(Spinner, { tooltip: "Laster opp tilbakemelding ..." }) : /* @__PURE__ */ jsxs48(HStack, { gap: "x1", children: [
|
|
7605
|
+
/* @__PURE__ */ jsx232(Tooltip, { text: thumbUpTooltip, children: button("positive", layout, thumbUpTooltip) }),
|
|
7606
|
+
/* @__PURE__ */ jsx232(Tooltip, { text: thumbDownTooltip, children: /* @__PURE__ */ jsx232("div", { children: button("negative", layout, thumbDownTooltip) }) })
|
|
7541
7607
|
] })
|
|
7542
7608
|
]
|
|
7543
7609
|
}
|
|
@@ -7545,7 +7611,7 @@ var RatingComponent = ({
|
|
|
7545
7611
|
};
|
|
7546
7612
|
|
|
7547
7613
|
// src/components/Feedback/Feedback.tsx
|
|
7548
|
-
import { jsx as
|
|
7614
|
+
import { jsx as jsx233 } from "react/jsx-runtime";
|
|
7549
7615
|
var Feedback = ({
|
|
7550
7616
|
layout = "vertical",
|
|
7551
7617
|
ratingLabel = "Hva syns du om tjenesten?",
|
|
@@ -7591,7 +7657,7 @@ var Feedback = ({
|
|
|
7591
7657
|
isSubmittedProp === void 0 && setIsFeedbackSubmitted(true);
|
|
7592
7658
|
};
|
|
7593
7659
|
if (rating === null && !isFeedbackSubmitted) {
|
|
7594
|
-
return /* @__PURE__ */
|
|
7660
|
+
return /* @__PURE__ */ jsx233(
|
|
7595
7661
|
RatingComponent,
|
|
7596
7662
|
{
|
|
7597
7663
|
layout,
|
|
@@ -7604,9 +7670,10 @@ var Feedback = ({
|
|
|
7604
7670
|
);
|
|
7605
7671
|
}
|
|
7606
7672
|
if (!feedbackTextAreaExcluded && !isFeedbackSubmitted) {
|
|
7607
|
-
return /* @__PURE__ */
|
|
7673
|
+
return /* @__PURE__ */ jsx233(
|
|
7608
7674
|
CommentComponent,
|
|
7609
7675
|
{
|
|
7676
|
+
layout,
|
|
7610
7677
|
rating,
|
|
7611
7678
|
feedbackText,
|
|
7612
7679
|
positiveFeedbackLabel,
|
|
@@ -7619,7 +7686,7 @@ var Feedback = ({
|
|
|
7619
7686
|
}
|
|
7620
7687
|
);
|
|
7621
7688
|
}
|
|
7622
|
-
return /* @__PURE__ */
|
|
7689
|
+
return /* @__PURE__ */ jsx233(Paragraph, { children: submittedTitle });
|
|
7623
7690
|
};
|
|
7624
7691
|
|
|
7625
7692
|
// src/components/Fieldset/Fieldset.tsx
|
|
@@ -7631,11 +7698,11 @@ var Fieldset_default = {
|
|
|
7631
7698
|
};
|
|
7632
7699
|
|
|
7633
7700
|
// src/components/Fieldset/Fieldset.tsx
|
|
7634
|
-
import { jsx as
|
|
7701
|
+
import { jsx as jsx234 } from "react/jsx-runtime";
|
|
7635
7702
|
var Fieldset = forwardRef53(
|
|
7636
7703
|
(props, ref) => {
|
|
7637
7704
|
const { id, className, htmlProps, ...rest } = props;
|
|
7638
|
-
return /* @__PURE__ */
|
|
7705
|
+
return /* @__PURE__ */ jsx234(
|
|
7639
7706
|
"fieldset",
|
|
7640
7707
|
{
|
|
7641
7708
|
ref,
|
|
@@ -7654,14 +7721,14 @@ var Fieldset = forwardRef53(
|
|
|
7654
7721
|
import { useId as useId11 } from "react";
|
|
7655
7722
|
|
|
7656
7723
|
// src/components/FileUploader/ErrorList.tsx
|
|
7657
|
-
import { jsx as
|
|
7724
|
+
import { jsx as jsx235 } from "react/jsx-runtime";
|
|
7658
7725
|
var ErrorList = (props) => {
|
|
7659
7726
|
const { errors } = props;
|
|
7660
7727
|
if (errors.length < 1) {
|
|
7661
7728
|
return null;
|
|
7662
7729
|
}
|
|
7663
7730
|
if (errors.length === 1) {
|
|
7664
|
-
return /* @__PURE__ */
|
|
7731
|
+
return /* @__PURE__ */ jsx235(
|
|
7665
7732
|
InputMessage,
|
|
7666
7733
|
{
|
|
7667
7734
|
id: errors[0].id,
|
|
@@ -7670,8 +7737,8 @@ var ErrorList = (props) => {
|
|
|
7670
7737
|
}
|
|
7671
7738
|
);
|
|
7672
7739
|
}
|
|
7673
|
-
return /* @__PURE__ */
|
|
7674
|
-
return /* @__PURE__ */
|
|
7740
|
+
return /* @__PURE__ */ jsx235("ul", { className: utilStyles_default["remove-list-styling"], children: errors.map(({ id, message }) => {
|
|
7741
|
+
return /* @__PURE__ */ jsx235("li", { children: /* @__PURE__ */ jsx235(
|
|
7675
7742
|
InputMessage,
|
|
7676
7743
|
{
|
|
7677
7744
|
id,
|
|
@@ -7698,7 +7765,7 @@ var FileUploader_default = {
|
|
|
7698
7765
|
};
|
|
7699
7766
|
|
|
7700
7767
|
// src/components/FileUploader/File.tsx
|
|
7701
|
-
import { jsx as
|
|
7768
|
+
import { jsx as jsx236, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
7702
7769
|
var File = (props) => {
|
|
7703
7770
|
const { parentId, index, file: stateFile, removeFile, isValid } = props;
|
|
7704
7771
|
const errorsList = stateFile.errors.map((e, errorIndex) => ({
|
|
@@ -7707,21 +7774,21 @@ var File = (props) => {
|
|
|
7707
7774
|
}));
|
|
7708
7775
|
return /* @__PURE__ */ jsxs49("li", { children: [
|
|
7709
7776
|
/* @__PURE__ */ jsxs49("div", { className: cn(FileUploader_default.file, !isValid && FileUploader_default["file--invalid"]), children: [
|
|
7710
|
-
/* @__PURE__ */
|
|
7777
|
+
/* @__PURE__ */ jsx236(
|
|
7711
7778
|
"span",
|
|
7712
7779
|
{
|
|
7713
7780
|
className: cn(FileUploader_default.file__name, typographyStyles_default["body-sans-02"]),
|
|
7714
7781
|
children: stateFile.file.name
|
|
7715
7782
|
}
|
|
7716
7783
|
),
|
|
7717
|
-
/* @__PURE__ */
|
|
7784
|
+
/* @__PURE__ */ jsx236(
|
|
7718
7785
|
Icon,
|
|
7719
7786
|
{
|
|
7720
7787
|
icon: isValid ? CheckCircledIcon : ErrorIcon,
|
|
7721
7788
|
className: FileUploader_default[`file__icon--${isValid ? "valid" : "invalid"}`]
|
|
7722
7789
|
}
|
|
7723
7790
|
),
|
|
7724
|
-
/* @__PURE__ */
|
|
7791
|
+
/* @__PURE__ */ jsx236(
|
|
7725
7792
|
Button,
|
|
7726
7793
|
{
|
|
7727
7794
|
size: "small",
|
|
@@ -7740,7 +7807,7 @@ var File = (props) => {
|
|
|
7740
7807
|
}
|
|
7741
7808
|
)
|
|
7742
7809
|
] }),
|
|
7743
|
-
/* @__PURE__ */
|
|
7810
|
+
/* @__PURE__ */ jsx236(ErrorList, { errors: errorsList })
|
|
7744
7811
|
] });
|
|
7745
7812
|
};
|
|
7746
7813
|
|
|
@@ -8031,20 +8098,8 @@ var useFileUploader = (props) => {
|
|
|
8031
8098
|
};
|
|
8032
8099
|
};
|
|
8033
8100
|
|
|
8034
|
-
// src/components/VisuallyHidden/VisuallyHidden.tsx
|
|
8035
|
-
import { jsx as jsx235 } from "react/jsx-runtime";
|
|
8036
|
-
var VisuallyHidden = (props) => {
|
|
8037
|
-
const { id, className, htmlProps, as, ...rest } = props;
|
|
8038
|
-
const cl = cn(className, utilStyles_default["visually-hidden"]);
|
|
8039
|
-
if (as === "div") {
|
|
8040
|
-
return /* @__PURE__ */ jsx235("div", { ...getBaseHTMLProps(id, cl, htmlProps, rest) });
|
|
8041
|
-
}
|
|
8042
|
-
return /* @__PURE__ */ jsx235("span", { ...getBaseHTMLProps(id, cl, htmlProps, rest) });
|
|
8043
|
-
};
|
|
8044
|
-
VisuallyHidden.displayName = "VisuallyHidden";
|
|
8045
|
-
|
|
8046
8101
|
// src/components/FileUploader/FileUploader.tsx
|
|
8047
|
-
import { jsx as
|
|
8102
|
+
import { jsx as jsx237, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
8048
8103
|
var FileUploader = (props) => {
|
|
8049
8104
|
const {
|
|
8050
8105
|
id,
|
|
@@ -8093,7 +8148,7 @@ var FileUploader = (props) => {
|
|
|
8093
8148
|
const tipId = derivativeIdGenerator(uniqueId, "tip");
|
|
8094
8149
|
const buttonId = derivativeIdGenerator(uniqueId, "button");
|
|
8095
8150
|
const inputId = derivativeIdGenerator(uniqueId, "input");
|
|
8096
|
-
const fileListElements = stateFiles.map((stateFile, index) => /* @__PURE__ */
|
|
8151
|
+
const fileListElements = stateFiles.map((stateFile, index) => /* @__PURE__ */ jsx237(
|
|
8097
8152
|
File,
|
|
8098
8153
|
{
|
|
8099
8154
|
parentId: uniqueId,
|
|
@@ -8108,7 +8163,7 @@ var FileUploader = (props) => {
|
|
|
8108
8163
|
id: derivativeIdGenerator(uniqueId, `error-${index}`),
|
|
8109
8164
|
message: e
|
|
8110
8165
|
}));
|
|
8111
|
-
const button = /* @__PURE__ */
|
|
8166
|
+
const button = /* @__PURE__ */ jsx237(
|
|
8112
8167
|
Button,
|
|
8113
8168
|
{
|
|
8114
8169
|
...getButtonProps(),
|
|
@@ -8140,8 +8195,8 @@ var FileUploader = (props) => {
|
|
|
8140
8195
|
style: { ...style, width },
|
|
8141
8196
|
...rest,
|
|
8142
8197
|
children: [
|
|
8143
|
-
hasLabel && /* @__PURE__ */
|
|
8144
|
-
hasTip && /* @__PURE__ */
|
|
8198
|
+
hasLabel && /* @__PURE__ */ jsx237(Label, { id: labelId, showRequiredStyling: showRequiredMarker, children: label }),
|
|
8199
|
+
hasTip && /* @__PURE__ */ jsx237(InputMessage, { id: tipId, message: tip, messageType: "tip" }),
|
|
8145
8200
|
withDragAndDrop ? /* @__PURE__ */ jsxs50(
|
|
8146
8201
|
"div",
|
|
8147
8202
|
{
|
|
@@ -8152,7 +8207,7 @@ var FileUploader = (props) => {
|
|
|
8152
8207
|
isDragActive && FileUploader_default["input-container--drag-active"]
|
|
8153
8208
|
),
|
|
8154
8209
|
children: [
|
|
8155
|
-
/* @__PURE__ */
|
|
8210
|
+
/* @__PURE__ */ jsx237(
|
|
8156
8211
|
"input",
|
|
8157
8212
|
{
|
|
8158
8213
|
...getInputProps(),
|
|
@@ -8161,16 +8216,16 @@ var FileUploader = (props) => {
|
|
|
8161
8216
|
}
|
|
8162
8217
|
),
|
|
8163
8218
|
dropAreaLabel,
|
|
8164
|
-
/* @__PURE__ */
|
|
8219
|
+
/* @__PURE__ */ jsx237(VisuallyHidden, { as: "span", children: "velg fil med p\xE5f\xF8lgende knapp" }),
|
|
8165
8220
|
button
|
|
8166
8221
|
]
|
|
8167
8222
|
}
|
|
8168
8223
|
) : /* @__PURE__ */ jsxs50("div", { className: FileUploader_default["input-container--no-drag-zone"], children: [
|
|
8169
|
-
/* @__PURE__ */
|
|
8224
|
+
/* @__PURE__ */ jsx237("input", { ...getInputProps(), id: inputId }),
|
|
8170
8225
|
button
|
|
8171
8226
|
] }),
|
|
8172
|
-
/* @__PURE__ */
|
|
8173
|
-
!hideFileList && /* @__PURE__ */
|
|
8227
|
+
/* @__PURE__ */ jsx237(ErrorList, { errors: rootErrorsList }),
|
|
8228
|
+
!hideFileList && /* @__PURE__ */ jsx237("ul", { className: utilStyles_default["remove-list-styling"], children: fileListElements })
|
|
8174
8229
|
]
|
|
8175
8230
|
}
|
|
8176
8231
|
);
|
|
@@ -8194,10 +8249,10 @@ var Footer_default = {
|
|
|
8194
8249
|
};
|
|
8195
8250
|
|
|
8196
8251
|
// src/components/Footer/Footer.tsx
|
|
8197
|
-
import { jsx as
|
|
8252
|
+
import { jsx as jsx238 } from "react/jsx-runtime";
|
|
8198
8253
|
var Footer = forwardRef54((props, ref) => {
|
|
8199
8254
|
const { className, ...rest } = props;
|
|
8200
|
-
return /* @__PURE__ */
|
|
8255
|
+
return /* @__PURE__ */ jsx238(
|
|
8201
8256
|
Contrast,
|
|
8202
8257
|
{
|
|
8203
8258
|
as: "footer",
|
|
@@ -8210,9 +8265,9 @@ var Footer = forwardRef54((props, ref) => {
|
|
|
8210
8265
|
|
|
8211
8266
|
// src/components/Footer/FooterListHeader.tsx
|
|
8212
8267
|
import { forwardRef as forwardRef55 } from "react";
|
|
8213
|
-
import { jsx as
|
|
8268
|
+
import { jsx as jsx239 } from "react/jsx-runtime";
|
|
8214
8269
|
var FooterListHeader = forwardRef55((props, ref) => {
|
|
8215
|
-
return /* @__PURE__ */
|
|
8270
|
+
return /* @__PURE__ */ jsx239(Heading, { level: 2, typographyType: "headingSans02", ref, ...props });
|
|
8216
8271
|
});
|
|
8217
8272
|
|
|
8218
8273
|
// src/components/Footer/FooterLogo.tsx
|
|
@@ -8222,11 +8277,11 @@ import { forwardRef as forwardRef56 } from "react";
|
|
|
8222
8277
|
var norges_domstoler_logo_default = 'data:image/svg+xml,<svg width="151" height="80" viewBox="0 0 151 80" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g id="Logo" clip-path="url(%23clip0_18254_1882)">%0A<path id="Vector" d="M0 19.5721V0.38501H3.50998L9.51314 13.2128C10.169 14.6541 10.6734 16.1596 11.0182 17.7051H11.1848C10.9502 16.2655 10.8311 14.8093 10.8287 13.3507V0.38501H13.0174V19.5721H9.51314L3.50998 6.77306C2.84978 5.3389 2.34334 3.83883 1.99914 2.29798H1.83829C2.07013 3.73991 2.18921 5.19772 2.19446 6.65817V19.5721H0Z" fill="white"/>%0A<path id="Vector_2" d="M19.2848 17.4063C17.9942 15.7059 17.3489 13.2299 17.3489 9.97846C17.3489 6.72699 17.9942 4.25104 19.2848 2.55062C20.5716 0.850208 22.4118 0 24.8054 0C27.199 0 29.0488 0.844463 30.3548 2.53339C31.6416 4.25679 32.2907 6.70401 32.2907 10.0014C32.2907 13.2989 31.6416 15.7461 30.3548 17.4695C29.068 19.1929 27.2182 20.0029 24.8054 20.0029C22.3927 20.0029 20.5716 19.101 19.2848 17.4063ZM21.3357 4.05572C20.6003 5.31955 20.2308 7.29379 20.2269 9.97846C20.2231 12.6631 20.5927 14.6355 21.3357 15.8954C21.6776 16.4998 22.1813 16.9969 22.7902 17.3307C23.3991 17.6646 24.089 17.8221 24.7825 17.7854C25.4832 17.8288 26.182 17.6747 26.7994 17.3406C27.4169 17.0064 27.9282 16.5058 28.2752 15.8954C29.0143 14.6355 29.3858 12.6631 29.3897 9.97846C29.3935 7.29379 29.0297 5.31955 28.2982 4.05572C27.9502 3.44633 27.4387 2.9464 26.8215 2.61242C26.2042 2.27844 25.5059 2.12372 24.8054 2.16573C24.1083 2.12541 23.4138 2.28107 22.8006 2.6151C22.1874 2.94912 21.6799 3.44817 21.3357 4.05572Z" fill="white"/>%0A<path id="Vector_3" d="M48.594 15.5968C48.8111 16.9446 49.1318 18.2737 49.5534 19.5721H46.5317C46.4288 19.2619 46.3463 18.9453 46.2847 18.6243C46.21 18.2681 46.1238 17.7856 46.0376 17.1709C45.9515 16.5562 45.8825 16.1254 45.8423 15.8668C45.5513 13.9903 45.1415 12.7207 44.613 12.0581C44.0845 11.3956 43.2151 11.0681 42.0049 11.0758H39.1326V19.5721H36.4556V0.38501H43.0045C44.7968 0.38501 46.1813 0.815859 47.1693 1.6833C47.6677 2.13766 48.0592 2.69689 48.3154 3.32072C48.5717 3.94454 48.6865 4.61743 48.6515 5.29094C48.6898 5.93617 48.5867 6.58197 48.3496 7.18326C48.1125 7.78455 47.7469 8.32682 47.2785 8.7722C46.2192 9.64565 44.8691 10.0868 43.4985 10.0073H42.7287V10.1681L43.5272 10.1969C44.1017 10.2313 44.4866 10.2658 44.7566 10.2945C45.102 10.3329 45.4427 10.4061 45.7734 10.5128C46.1234 10.601 46.4442 10.7792 46.704 11.0298C46.968 11.3147 47.2064 11.6223 47.4164 11.949C47.7076 12.4082 47.9301 12.9075 48.077 13.4311C48.2551 14.0343 48.4332 14.7581 48.594 15.5968ZM39.167 9.09964H42.43C42.8862 9.13106 43.3441 9.06822 43.775 8.91503C44.2059 8.76184 44.6006 8.52159 44.9347 8.20922C45.241 7.86617 45.4755 7.4653 45.6245 7.03021C45.7734 6.59512 45.8338 6.13462 45.8021 5.67583C45.8021 3.48138 44.6781 2.38415 42.43 2.38415H39.167V9.09964Z" fill="white"/>%0A<path id="Vector_4" d="M63.8634 6.27892C63.8374 5.16647 63.448 4.0931 62.7547 3.22277C62.4351 2.8708 62.0419 2.59361 61.6031 2.41091C61.1642 2.22821 60.6904 2.14451 60.2155 2.16575C59.518 2.12433 58.8231 2.28288 58.2125 2.62276C57.6019 2.96264 57.1011 3.46974 56.7688 4.08447C56.0334 5.36744 55.6658 7.33211 55.6658 9.97848C55.6658 12.6248 56.0315 14.5933 56.763 15.884C57.0847 16.4915 57.5726 16.995 58.1697 17.3358C58.7668 17.6765 59.4484 17.8404 60.1351 17.8084C62.8581 17.8084 64.2196 15.974 64.2196 12.3051V11.6214H59.9168V9.64529H66.7415V19.572H64.5757V17.6246C64.5824 16.3521 64.6552 15.0808 64.794 13.8159H64.6274C64.4283 15.9338 63.9132 17.4867 63.0821 18.4748C62.2491 19.4629 61.0198 19.9512 59.3941 19.9512C58.4312 19.9882 57.4753 19.7741 56.6202 19.3299C55.7651 18.8857 55.0403 18.2268 54.5169 17.4178C53.3679 15.7289 52.7935 13.2759 52.7935 10.0589C52.7935 6.77296 53.4292 4.28361 54.7007 2.59086C55.9722 0.898101 57.8009 0.0344883 60.1868 2.04411e-05C61.7689 -0.0690547 63.3242 0.425623 64.5757 1.39597C65.1677 1.92295 65.6473 2.56392 65.9859 3.28052C66.3244 3.99712 66.515 4.77464 66.5461 5.56659L63.8634 6.27892Z" fill="white"/>%0A<path id="Vector_5" d="M74.824 17.5673H82.8034V19.5721H72.1125V0.38501H82.6368V2.38415H74.824V8.66305H82.0048V10.6622H74.824V17.5673Z" fill="white"/>%0A<path id="Vector_6" d="M93.0633 19.9512C90.9953 19.9512 89.3695 19.4342 88.1804 18.3887C87.5786 17.8382 87.1032 17.164 86.7869 16.4123C86.4705 15.6606 86.3207 14.8493 86.3478 14.0342L89.0421 13.2645C89.1876 16.3283 90.5491 17.8602 93.1265 17.8602C94.0518 17.9146 94.9669 17.6422 95.7116 17.0904C96.0388 16.8086 96.2951 16.4538 96.4598 16.0546C96.6245 15.6554 96.6929 15.2231 96.6595 14.7925C96.6595 13.3334 95.838 12.284 94.195 11.6445L91.0699 10.3806C88.4159 9.32362 87.0908 7.55236 87.0947 5.06684C87.054 4.35555 87.1815 3.64468 87.467 2.99192C87.7524 2.33915 88.1878 1.76287 88.7376 1.30984C90.0484 0.449859 91.5818 -0.00830078 93.1495 -0.00830078C94.7172 -0.00830078 96.2507 0.449859 97.5614 1.30984C98.139 1.77201 98.6034 2.36008 98.919 3.02914C99.2346 3.6982 99.3931 4.43055 99.3825 5.17024L96.7801 5.9113C96.6155 3.36451 95.4014 2.09302 93.138 2.09685C92.2848 2.02806 91.4347 2.26195 90.7368 2.75749C90.4435 3.00371 90.2126 3.31574 90.0629 3.66814C89.9131 4.02055 89.8488 4.40335 89.8751 4.78535C89.835 5.48253 90.0539 6.16994 90.4897 6.71555C91.0398 7.27423 91.7096 7.70051 92.4487 7.96214L95.3612 9.15703C98.042 10.2294 99.3825 12.0006 99.3825 14.4708C99.4281 15.2308 99.2996 15.9911 99.0069 16.694C98.7143 17.3968 98.2651 18.0236 97.6935 18.5266C96.602 19.4802 95.051 19.9512 93.0633 19.9512Z" fill="white"/>%0A<path id="Vector_7" d="M5.2104 35.4617C7.95251 35.4617 9.98037 36.308 11.294 38.0008C12.6076 39.6936 13.2644 42.045 13.2644 45.0552C13.2644 48.0884 12.6076 50.4456 11.294 52.1269C9.98037 53.8082 7.95251 54.6488 5.2104 54.6488H0V35.4617H5.2104ZM4.96338 52.6497C6.97401 52.6497 8.3757 52.0063 9.17995 50.7195C9.9842 49.4327 10.3863 47.5427 10.3863 45.0552C10.3863 42.5678 9.9842 40.6836 9.17995 39.3968C8.3757 38.11 6.97401 37.4666 4.96338 37.4666H2.71148V52.6497H4.96338Z" fill="white"/>%0A<path id="Vector_8" d="M18.5954 52.4831C17.3047 50.7903 16.6594 48.3144 16.6594 45.0552C16.6594 41.7961 17.3047 39.3202 18.5954 37.6274C19.8898 35.9308 21.732 35.0825 24.1217 35.0825C26.5115 35.0825 28.3613 35.927 29.6711 37.6159C30.954 39.3048 31.5955 41.7846 31.5955 45.0552C31.5955 48.3259 30.9521 50.8152 29.6653 52.5233C28.3823 54.1969 26.5364 55.0337 24.1275 55.0337C21.7185 55.0337 19.8745 54.1835 18.5954 52.4831ZM20.6807 39.1382C19.9147 40.3944 19.5317 42.3667 19.5317 45.0552C19.5317 47.7437 19.9147 49.718 20.6807 50.978C21.0254 51.5787 21.5302 52.0719 22.1388 52.4025C22.7474 52.7332 23.4359 52.8884 24.1275 52.8507C24.8279 52.8921 25.5259 52.7371 26.143 52.4031C26.7601 52.0692 27.2717 51.5697 27.6202 50.9607C28.3555 49.7084 28.7232 47.7399 28.7232 45.0552C28.7232 42.3706 28.3536 40.3982 27.6145 39.1382C27.2674 38.5293 26.7569 38.0296 26.1407 37.6956C25.5245 37.3616 24.8271 37.2067 24.1275 37.2483C23.434 37.2116 22.7441 37.3691 22.1352 37.703C21.5264 38.0368 21.0226 38.5339 20.6807 39.1382Z" fill="white"/>%0A<path id="Vector_9" d="M35.7661 54.6488V35.4617H39.7414L42.8148 46.1237C43.5024 48.2936 43.9079 50.5429 44.0212 52.8163H44.2337C44.2993 50.5424 44.6861 48.2893 45.3827 46.1237L48.5939 35.4617H52.2762V54.6488H49.6911V43.7684C49.6911 41.5223 49.7773 39.414 49.9382 37.4493H49.7486C49.4555 39.2625 49.0527 41.0562 48.5422 42.8206L45.0954 54.6603H42.6827L39.121 42.5965C38.6304 40.9144 38.2467 39.2029 37.9721 37.4723H37.7767C37.9261 39.2417 38.0008 41.2638 38.0008 43.5272V54.6488H35.7661Z" fill="white"/>%0A<path id="Vector_10" d="M63.2314 55.0338C61.171 55.0338 59.5452 54.513 58.3542 53.4713C57.7505 52.9221 57.2734 52.2482 56.9559 51.4963C56.6385 50.7444 56.4884 49.9325 56.5159 49.1168L59.1699 48.3471C59.3155 51.4109 60.6769 52.9428 63.2544 52.9428C64.1809 52.9928 65.0963 52.7208 65.8452 52.173C66.1703 51.8898 66.4248 51.5346 66.5883 51.1356C66.7519 50.7367 66.82 50.3051 66.7873 49.8751C66.7873 48.416 65.9659 47.3647 64.3229 46.7213L61.1978 45.4632C58.5476 44.3986 57.2225 42.6254 57.2225 40.1437C57.1827 39.4334 57.3107 38.7236 57.5962 38.0719C57.8816 37.4202 58.3164 36.8449 58.8655 36.3924C60.1497 35.4549 61.7185 34.9902 63.3061 35.0769C64.8757 35.0068 66.4227 35.4705 67.695 36.3924C68.2714 36.8566 68.7344 37.4461 69.0489 38.116C69.3635 38.7859 69.5213 39.5186 69.5103 40.2586L66.9022 40.9997C66.7414 38.4605 65.5273 37.1909 63.2601 37.1909C62.4071 37.1241 61.5576 37.3578 60.8589 37.8516C60.5656 38.0978 60.3347 38.4098 60.185 38.7622C60.0352 39.1146 59.9709 39.4974 59.9972 39.8794C59.9571 40.5766 60.176 41.264 60.6118 41.8096C61.1632 42.3762 61.8346 42.812 62.5765 43.085L65.535 44.2339C68.2158 45.3139 69.5563 47.0871 69.5563 49.5534C69.6008 50.3128 69.4725 51.0723 69.181 51.7748C68.8894 52.4773 68.4422 53.1045 67.8731 53.6092C66.7529 54.5743 65.2076 55.0338 63.2314 55.0338Z" fill="white"/>%0A<path id="Vector_11" d="M85.8997 35.4617V37.6274H80.6376V54.6488H77.9491V37.6274H72.687V35.4617H85.8997Z" fill="white"/>%0A<path id="Vector_12" d="M90.4092 52.4831C89.1148 50.7903 88.4675 48.3144 88.4675 45.0552C88.4675 41.7961 89.1128 39.3202 90.4035 37.6274C91.6903 35.9308 93.5305 35.0825 95.9241 35.0825C98.3177 35.0825 100.167 35.927 101.473 37.6159C102.76 39.3048 103.404 41.7942 103.404 45.084C103.404 48.3737 102.76 50.8631 101.473 52.552C100.19 54.2065 98.3445 55.0337 95.9356 55.0337C93.5267 55.0337 91.6845 54.1835 90.4092 52.4831ZM92.4888 39.1382C91.7228 40.3944 91.3399 42.3667 91.3399 45.0552C91.3399 47.7437 91.7228 49.718 92.4888 50.978C92.866 51.5576 93.382 52.034 93.9899 52.3637C94.5978 52.6934 95.2785 52.8661 95.97 52.8661C96.6616 52.8661 97.3423 52.6934 97.9502 52.3637C98.5581 52.034 99.0741 51.5576 99.4513 50.978C100.171 49.7141 100.531 47.7399 100.531 45.0552C100.531 42.3706 100.162 40.3982 99.4226 39.1382C99.0454 38.5586 98.5294 38.0823 97.9215 37.7525C97.3136 37.4228 96.6329 37.2501 95.9413 37.2501C95.2497 37.2501 94.5691 37.4228 93.9612 37.7525C93.3532 38.0823 92.8373 38.5586 92.4601 39.1382H92.4888Z" fill="white"/>%0A<path id="Vector_13" d="M107.58 35.4617H110.297V52.4831H117.915V54.6488H107.574L107.58 35.4617Z" fill="white"/>%0A<path id="Vector_14" d="M124.544 52.6497H132.518V54.6488H121.833V35.4617H132.357V37.4666H124.544V43.7397H131.725V45.7446H124.544V52.6497Z" fill="white"/>%0A<path id="Vector_15" d="M149.321 50.6735C149.534 52.022 149.855 53.3513 150.28 54.6488H147.264C147.163 54.3399 147.081 54.0253 147.017 53.7067C146.942 53.3505 146.862 52.8622 146.77 52.2533C146.678 51.6444 146.615 51.2078 146.581 50.9493C146.289 49.0688 145.878 47.7993 145.345 47.1405C144.817 46.4857 143.949 46.1525 142.743 46.1525H139.871V54.6488H137.154V35.4617H143.731C145.52 35.4617 146.908 35.8963 147.896 36.7657C148.392 37.2209 148.781 37.7807 149.034 38.4047C149.288 39.0286 149.399 39.701 149.361 40.3733C149.394 41.0129 149.289 41.6521 149.052 42.247C148.815 42.8419 148.452 43.3786 147.988 43.8201C146.93 44.6951 145.579 45.1365 144.208 45.0552H143.438V45.2218H144.231C144.805 45.2563 145.19 45.285 145.466 45.3137C145.811 45.3579 146.151 45.4309 146.483 45.532C146.833 45.6236 147.153 45.8036 147.413 46.0548C147.676 46.3411 147.914 46.6485 148.126 46.9739C148.422 47.451 148.645 47.97 148.786 48.5135C148.982 49.1167 149.154 49.8348 149.321 50.6735ZM139.894 44.1821H143.151C143.608 44.2136 144.067 44.1508 144.499 43.9976C144.931 43.8445 145.326 43.6042 145.661 43.2916C146.273 42.5923 146.583 41.6795 146.523 40.7525C146.523 38.5638 145.403 37.4666 143.151 37.4666H139.894V44.1821Z" fill="white"/>%0A<path id="Vector_16" d="M150.389 75.0137H0V80H150.389V75.0137Z" fill="white"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_18254_1882">%0A<rect width="150.389" height="80" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';
|
|
8223
8278
|
|
|
8224
8279
|
// src/components/Footer/FooterLogo.tsx
|
|
8225
|
-
import { jsx as
|
|
8280
|
+
import { jsx as jsx240 } from "react/jsx-runtime";
|
|
8226
8281
|
var FooterLogo = forwardRef56(
|
|
8227
8282
|
(props, ref) => {
|
|
8228
8283
|
const { className, hideBreakpoint, ...rest } = props;
|
|
8229
|
-
return /* @__PURE__ */
|
|
8284
|
+
return /* @__PURE__ */ jsx240(
|
|
8230
8285
|
"img",
|
|
8231
8286
|
{
|
|
8232
8287
|
ref,
|
|
@@ -8246,11 +8301,11 @@ var FooterLogo = forwardRef56(
|
|
|
8246
8301
|
|
|
8247
8302
|
// src/components/Footer/FooterList.tsx
|
|
8248
8303
|
import { forwardRef as forwardRef57 } from "react";
|
|
8249
|
-
import { jsx as
|
|
8304
|
+
import { jsx as jsx241 } from "react/jsx-runtime";
|
|
8250
8305
|
var FooterList = forwardRef57(
|
|
8251
8306
|
(props, ref) => {
|
|
8252
8307
|
const { className, ...rest } = props;
|
|
8253
|
-
return /* @__PURE__ */
|
|
8308
|
+
return /* @__PURE__ */ jsx241(
|
|
8254
8309
|
"ul",
|
|
8255
8310
|
{
|
|
8256
8311
|
ref,
|
|
@@ -8267,10 +8322,10 @@ var FooterList = forwardRef57(
|
|
|
8267
8322
|
|
|
8268
8323
|
// src/components/Footer/FooterSocialsList.tsx
|
|
8269
8324
|
import { forwardRef as forwardRef58 } from "react";
|
|
8270
|
-
import { jsx as
|
|
8325
|
+
import { jsx as jsx242 } from "react/jsx-runtime";
|
|
8271
8326
|
var FooterSocialsList = forwardRef58((props, ref) => {
|
|
8272
8327
|
const { className, ...rest } = props;
|
|
8273
|
-
return /* @__PURE__ */
|
|
8328
|
+
return /* @__PURE__ */ jsx242(
|
|
8274
8329
|
"ul",
|
|
8275
8330
|
{
|
|
8276
8331
|
ref,
|
|
@@ -8286,10 +8341,10 @@ var FooterSocialsList = forwardRef58((props, ref) => {
|
|
|
8286
8341
|
|
|
8287
8342
|
// src/components/Footer/FooterSocialsGroup.tsx
|
|
8288
8343
|
import { forwardRef as forwardRef59 } from "react";
|
|
8289
|
-
import { jsx as
|
|
8344
|
+
import { jsx as jsx243 } from "react/jsx-runtime";
|
|
8290
8345
|
var FooterSocialsGroup = forwardRef59((props, ref) => {
|
|
8291
8346
|
const { className, ...rest } = props;
|
|
8292
|
-
return /* @__PURE__ */
|
|
8347
|
+
return /* @__PURE__ */ jsx243(
|
|
8293
8348
|
"div",
|
|
8294
8349
|
{
|
|
8295
8350
|
ref,
|
|
@@ -8301,11 +8356,11 @@ var FooterSocialsGroup = forwardRef59((props, ref) => {
|
|
|
8301
8356
|
|
|
8302
8357
|
// src/components/Footer/FooterListGroup.tsx
|
|
8303
8358
|
import { forwardRef as forwardRef60 } from "react";
|
|
8304
|
-
import { jsx as
|
|
8359
|
+
import { jsx as jsx244 } from "react/jsx-runtime";
|
|
8305
8360
|
var FooterListGroup = forwardRef60(
|
|
8306
8361
|
(props, ref) => {
|
|
8307
8362
|
const { className, ...rest } = props;
|
|
8308
|
-
return /* @__PURE__ */
|
|
8363
|
+
return /* @__PURE__ */ jsx244(
|
|
8309
8364
|
"div",
|
|
8310
8365
|
{
|
|
8311
8366
|
ref,
|
|
@@ -8318,11 +8373,11 @@ var FooterListGroup = forwardRef60(
|
|
|
8318
8373
|
|
|
8319
8374
|
// src/components/Footer/FooterLeft.tsx
|
|
8320
8375
|
import { forwardRef as forwardRef61 } from "react";
|
|
8321
|
-
import { jsx as
|
|
8376
|
+
import { jsx as jsx245 } from "react/jsx-runtime";
|
|
8322
8377
|
var FooterLeft = forwardRef61(
|
|
8323
8378
|
(props, ref) => {
|
|
8324
8379
|
const { className, ...rest } = props;
|
|
8325
|
-
return /* @__PURE__ */
|
|
8380
|
+
return /* @__PURE__ */ jsx245("div", { ref, className: cn(className, Footer_default["left"]), ...rest });
|
|
8326
8381
|
}
|
|
8327
8382
|
);
|
|
8328
8383
|
|
|
@@ -8341,7 +8396,7 @@ var GlobalMessage_default = {
|
|
|
8341
8396
|
};
|
|
8342
8397
|
|
|
8343
8398
|
// src/components/GlobalMessage/GlobalMessage.tsx
|
|
8344
|
-
import { jsx as
|
|
8399
|
+
import { jsx as jsx246, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
8345
8400
|
var icons = {
|
|
8346
8401
|
info: InfoIcon,
|
|
8347
8402
|
danger: ErrorIcon,
|
|
@@ -8385,12 +8440,12 @@ var GlobalMessage = forwardRef62(
|
|
|
8385
8440
|
closable && GlobalMessage_default["content--closable"]
|
|
8386
8441
|
),
|
|
8387
8442
|
children: [
|
|
8388
|
-
/* @__PURE__ */
|
|
8389
|
-
children != null ? children : /* @__PURE__ */
|
|
8443
|
+
/* @__PURE__ */ jsx246(Icon, { icon: icons[purpose], className: GlobalMessage_default.icon }),
|
|
8444
|
+
children != null ? children : /* @__PURE__ */ jsx246("span", { children: message })
|
|
8390
8445
|
]
|
|
8391
8446
|
}
|
|
8392
8447
|
),
|
|
8393
|
-
closable && /* @__PURE__ */
|
|
8448
|
+
closable && /* @__PURE__ */ jsx246(
|
|
8394
8449
|
Button,
|
|
8395
8450
|
{
|
|
8396
8451
|
icon: CloseIcon,
|
|
@@ -8421,7 +8476,7 @@ var Grid_default = {
|
|
|
8421
8476
|
};
|
|
8422
8477
|
|
|
8423
8478
|
// src/components/Grid/Grid.tsx
|
|
8424
|
-
import { jsx as
|
|
8479
|
+
import { jsx as jsx247 } from "react/jsx-runtime";
|
|
8425
8480
|
var Grid = (props) => {
|
|
8426
8481
|
const {
|
|
8427
8482
|
id,
|
|
@@ -8466,13 +8521,13 @@ var Grid = (props) => {
|
|
|
8466
8521
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
8467
8522
|
["--dds-grid-xl-column-gap"]: (columnGap == null ? void 0 : columnGap.xl) ? columnGap.xl : "var(--dds-grid-xl-gutter-size)"
|
|
8468
8523
|
};
|
|
8469
|
-
return as === "div" ? /* @__PURE__ */
|
|
8524
|
+
return as === "div" ? /* @__PURE__ */ jsx247(
|
|
8470
8525
|
"div",
|
|
8471
8526
|
{
|
|
8472
8527
|
...getBaseHTMLProps(id, cn(className, Grid_default.grid), htmlProps, rest),
|
|
8473
8528
|
style: { ...style, ...htmlProps == null ? void 0 : htmlProps.style, ...styleVariables }
|
|
8474
8529
|
}
|
|
8475
|
-
) : /* @__PURE__ */
|
|
8530
|
+
) : /* @__PURE__ */ jsx247(
|
|
8476
8531
|
"form",
|
|
8477
8532
|
{
|
|
8478
8533
|
...getBaseHTMLProps(id, cn(className, Grid_default.grid), htmlProps, rest),
|
|
@@ -8483,7 +8538,7 @@ var Grid = (props) => {
|
|
|
8483
8538
|
Grid.displayName = "Grid";
|
|
8484
8539
|
|
|
8485
8540
|
// src/components/Grid/GridChild.tsx
|
|
8486
|
-
import { jsx as
|
|
8541
|
+
import { jsx as jsx248 } from "react/jsx-runtime";
|
|
8487
8542
|
var isRelativeGridColumn = (type) => {
|
|
8488
8543
|
return type === "all" || type === "firstHalf" || type === "secondHalf";
|
|
8489
8544
|
};
|
|
@@ -8533,7 +8588,7 @@ var GridChild = (props) => {
|
|
|
8533
8588
|
firstHalf: "first-half",
|
|
8534
8589
|
secondHalf: "second-half"
|
|
8535
8590
|
};
|
|
8536
|
-
return /* @__PURE__ */
|
|
8591
|
+
return /* @__PURE__ */ jsx248(
|
|
8537
8592
|
"div",
|
|
8538
8593
|
{
|
|
8539
8594
|
...getBaseHTMLProps(
|
|
@@ -8562,11 +8617,11 @@ var InlineButton_default = {
|
|
|
8562
8617
|
};
|
|
8563
8618
|
|
|
8564
8619
|
// src/components/InlineButton/InlineButton.tsx
|
|
8565
|
-
import { jsx as
|
|
8620
|
+
import { jsx as jsx249 } from "react/jsx-runtime";
|
|
8566
8621
|
var InlineButton = forwardRef63(
|
|
8567
8622
|
(props, ref) => {
|
|
8568
8623
|
const { className, ...rest } = props;
|
|
8569
|
-
return /* @__PURE__ */
|
|
8624
|
+
return /* @__PURE__ */ jsx249(
|
|
8570
8625
|
"button",
|
|
8571
8626
|
{
|
|
8572
8627
|
ref,
|
|
@@ -8594,7 +8649,7 @@ import {
|
|
|
8594
8649
|
isValidElement as isValidElement6,
|
|
8595
8650
|
useState as useState15
|
|
8596
8651
|
} from "react";
|
|
8597
|
-
import { Fragment as Fragment6, jsx as
|
|
8652
|
+
import { Fragment as Fragment6, jsx as jsx250 } from "react/jsx-runtime";
|
|
8598
8653
|
var InlineEdit = (props) => {
|
|
8599
8654
|
const {
|
|
8600
8655
|
emptiable,
|
|
@@ -8644,7 +8699,7 @@ var InlineEdit = (props) => {
|
|
|
8644
8699
|
emptiable
|
|
8645
8700
|
})
|
|
8646
8701
|
);
|
|
8647
|
-
return /* @__PURE__ */
|
|
8702
|
+
return /* @__PURE__ */ jsx250(Fragment6, { children: inputChild });
|
|
8648
8703
|
};
|
|
8649
8704
|
InlineEdit.displayName = "InlineEdit";
|
|
8650
8705
|
|
|
@@ -8670,7 +8725,7 @@ var inlineEditVisuallyHidden = (id, emptiable) => /* @__PURE__ */ jsxs52(Visuall
|
|
|
8670
8725
|
] });
|
|
8671
8726
|
|
|
8672
8727
|
// src/components/InlineEdit/InlineTextArea.tsx
|
|
8673
|
-
import { jsx as
|
|
8728
|
+
import { jsx as jsx251, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
8674
8729
|
var InlineTextArea = forwardRef64((props, ref) => {
|
|
8675
8730
|
const {
|
|
8676
8731
|
id,
|
|
@@ -8694,7 +8749,7 @@ var InlineTextArea = forwardRef64((props, ref) => {
|
|
|
8694
8749
|
const combinedRef = useCombinedRef(ref, inputRef);
|
|
8695
8750
|
return /* @__PURE__ */ jsxs53("div", { className: InlineEdit_default.container, style: { width }, children: [
|
|
8696
8751
|
/* @__PURE__ */ jsxs53("div", { className: Input_default["input-group"], children: [
|
|
8697
|
-
!isEditing && !hideIcon && /* @__PURE__ */
|
|
8752
|
+
!isEditing && !hideIcon && /* @__PURE__ */ jsx251(
|
|
8698
8753
|
"span",
|
|
8699
8754
|
{
|
|
8700
8755
|
onClick: () => {
|
|
@@ -8702,10 +8757,10 @@ var InlineTextArea = forwardRef64((props, ref) => {
|
|
|
8702
8757
|
(_a = inputRef.current) == null ? void 0 : _a.focus();
|
|
8703
8758
|
},
|
|
8704
8759
|
className: InlineEdit_default["icon-wrapper"],
|
|
8705
|
-
children: /* @__PURE__ */
|
|
8760
|
+
children: /* @__PURE__ */ jsx251(Icon, { icon: EditIcon, iconSize: "small" })
|
|
8706
8761
|
}
|
|
8707
8762
|
),
|
|
8708
|
-
/* @__PURE__ */
|
|
8763
|
+
/* @__PURE__ */ jsx251(
|
|
8709
8764
|
"textarea",
|
|
8710
8765
|
{
|
|
8711
8766
|
...rest,
|
|
@@ -8737,12 +8792,12 @@ var InlineTextArea = forwardRef64((props, ref) => {
|
|
|
8737
8792
|
InlineTextArea.displayName = "InlineTextArea";
|
|
8738
8793
|
|
|
8739
8794
|
// src/components/InlineEdit/InlineEditTextArea.tsx
|
|
8740
|
-
import { jsx as
|
|
8795
|
+
import { jsx as jsx252 } from "react/jsx-runtime";
|
|
8741
8796
|
var InlineEditTextArea = forwardRef65((props, ref) => {
|
|
8742
8797
|
const { onSetValue, emptiable, value, onFocus, onChange, onBlur, ...rest } = props;
|
|
8743
8798
|
const textareaRef = useRef24(null);
|
|
8744
8799
|
const combinedRef = useCombinedRef(ref, textareaRef);
|
|
8745
|
-
return /* @__PURE__ */
|
|
8800
|
+
return /* @__PURE__ */ jsx252(
|
|
8746
8801
|
InlineEdit,
|
|
8747
8802
|
{
|
|
8748
8803
|
onSetValue,
|
|
@@ -8752,7 +8807,7 @@ var InlineEditTextArea = forwardRef65((props, ref) => {
|
|
|
8752
8807
|
onFocus,
|
|
8753
8808
|
onChange,
|
|
8754
8809
|
onBlur,
|
|
8755
|
-
children: /* @__PURE__ */
|
|
8810
|
+
children: /* @__PURE__ */ jsx252(InlineTextArea, { ref: combinedRef, ...rest })
|
|
8756
8811
|
}
|
|
8757
8812
|
);
|
|
8758
8813
|
});
|
|
@@ -8762,7 +8817,7 @@ import { forwardRef as forwardRef67, useRef as useRef26 } from "react";
|
|
|
8762
8817
|
|
|
8763
8818
|
// src/components/InlineEdit/InlineInput.tsx
|
|
8764
8819
|
import { forwardRef as forwardRef66, useId as useId13, useRef as useRef25 } from "react";
|
|
8765
|
-
import { jsx as
|
|
8820
|
+
import { jsx as jsx253, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
8766
8821
|
var InlineInput = forwardRef66(
|
|
8767
8822
|
(props, ref) => {
|
|
8768
8823
|
const {
|
|
@@ -8787,7 +8842,7 @@ var InlineInput = forwardRef66(
|
|
|
8787
8842
|
const combinedRef = useCombinedRef(ref, inputRef);
|
|
8788
8843
|
return /* @__PURE__ */ jsxs54("div", { className: InlineEdit_default.container, style: { width }, children: [
|
|
8789
8844
|
/* @__PURE__ */ jsxs54("div", { className: Input_default["input-group"], children: [
|
|
8790
|
-
!isEditing && !hideIcon && /* @__PURE__ */
|
|
8845
|
+
!isEditing && !hideIcon && /* @__PURE__ */ jsx253(
|
|
8791
8846
|
"span",
|
|
8792
8847
|
{
|
|
8793
8848
|
onClick: () => {
|
|
@@ -8795,10 +8850,10 @@ var InlineInput = forwardRef66(
|
|
|
8795
8850
|
(_a = inputRef.current) == null ? void 0 : _a.focus();
|
|
8796
8851
|
},
|
|
8797
8852
|
className: InlineEdit_default["icon-wrapper"],
|
|
8798
|
-
children: /* @__PURE__ */
|
|
8853
|
+
children: /* @__PURE__ */ jsx253(Icon, { icon: EditIcon, iconSize: "small" })
|
|
8799
8854
|
}
|
|
8800
8855
|
),
|
|
8801
|
-
/* @__PURE__ */
|
|
8856
|
+
/* @__PURE__ */ jsx253(
|
|
8802
8857
|
"input",
|
|
8803
8858
|
{
|
|
8804
8859
|
...rest,
|
|
@@ -8829,12 +8884,12 @@ var InlineInput = forwardRef66(
|
|
|
8829
8884
|
InlineInput.displayName = "InlineInput";
|
|
8830
8885
|
|
|
8831
8886
|
// src/components/InlineEdit/InlineEditInput.tsx
|
|
8832
|
-
import { jsx as
|
|
8887
|
+
import { jsx as jsx254 } from "react/jsx-runtime";
|
|
8833
8888
|
var InlineEditInput = forwardRef67((props, ref) => {
|
|
8834
8889
|
const { onSetValue, emptiable, value, onFocus, onChange, onBlur, ...rest } = props;
|
|
8835
8890
|
const inputRef = useRef26(null);
|
|
8836
8891
|
const combinedRef = useCombinedRef(ref, inputRef);
|
|
8837
|
-
return /* @__PURE__ */
|
|
8892
|
+
return /* @__PURE__ */ jsx254(
|
|
8838
8893
|
InlineEdit,
|
|
8839
8894
|
{
|
|
8840
8895
|
onSetValue,
|
|
@@ -8844,7 +8899,7 @@ var InlineEditInput = forwardRef67((props, ref) => {
|
|
|
8844
8899
|
onFocus,
|
|
8845
8900
|
onChange,
|
|
8846
8901
|
onBlur,
|
|
8847
|
-
children: /* @__PURE__ */
|
|
8902
|
+
children: /* @__PURE__ */ jsx254(InlineInput, { ...rest, ref: combinedRef })
|
|
8848
8903
|
}
|
|
8849
8904
|
);
|
|
8850
8905
|
});
|
|
@@ -8907,9 +8962,9 @@ var InternalHeader_default = {
|
|
|
8907
8962
|
|
|
8908
8963
|
// src/components/InternalHeader/NavigationItem.tsx
|
|
8909
8964
|
import { forwardRef as forwardRef68 } from "react";
|
|
8910
|
-
import { jsx as
|
|
8965
|
+
import { jsx as jsx255 } from "react/jsx-runtime";
|
|
8911
8966
|
var NavigationItem = forwardRef68(({ isCurrent, ...rest }, ref) => {
|
|
8912
|
-
return /* @__PURE__ */
|
|
8967
|
+
return /* @__PURE__ */ jsx255(
|
|
8913
8968
|
"a",
|
|
8914
8969
|
{
|
|
8915
8970
|
...rest,
|
|
@@ -8926,7 +8981,7 @@ var NavigationItem = forwardRef68(({ isCurrent, ...rest }, ref) => {
|
|
|
8926
8981
|
});
|
|
8927
8982
|
|
|
8928
8983
|
// src/components/InternalHeader/InternalHeader.tsx
|
|
8929
|
-
import { jsx as
|
|
8984
|
+
import { jsx as jsx256, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
8930
8985
|
var InternalHeader = (props) => {
|
|
8931
8986
|
const {
|
|
8932
8987
|
applicationDesc,
|
|
@@ -8960,7 +9015,7 @@ var InternalHeader = (props) => {
|
|
|
8960
9015
|
const hasContextMenuElements = !!contextMenuItems && contextMenuItems.length > 0;
|
|
8961
9016
|
const hasSmallScreenBreakpoint = !!smallScreenBreakpoint;
|
|
8962
9017
|
const hasNavInContextMenu = hasSmallScreenBreakpoint && hasNavigationElements;
|
|
8963
|
-
const navigation = hasNavigationElements ? /* @__PURE__ */
|
|
9018
|
+
const navigation = hasNavigationElements ? /* @__PURE__ */ jsx256("nav", { "aria-label": "sidenavigasjon", children: /* @__PURE__ */ jsx256(
|
|
8964
9019
|
"ul",
|
|
8965
9020
|
{
|
|
8966
9021
|
className: cn(
|
|
@@ -8971,7 +9026,7 @@ var InternalHeader = (props) => {
|
|
|
8971
9026
|
children: navItems.map((item, index) => {
|
|
8972
9027
|
const { href, ...rest2 } = item;
|
|
8973
9028
|
const isCurrent = href === currentPage;
|
|
8974
|
-
return /* @__PURE__ */
|
|
9029
|
+
return /* @__PURE__ */ jsx256("li", { className: InternalHeader_default["nav-list__item"], children: /* @__PURE__ */ jsx256(
|
|
8975
9030
|
NavigationItem,
|
|
8976
9031
|
{
|
|
8977
9032
|
href,
|
|
@@ -9000,7 +9055,7 @@ var InternalHeader = (props) => {
|
|
|
9000
9055
|
rest
|
|
9001
9056
|
),
|
|
9002
9057
|
children: [
|
|
9003
|
-
/* @__PURE__ */
|
|
9058
|
+
/* @__PURE__ */ jsx256(Typography, { typographyType: "bodySans02", bold: true, as: "span", children: applicationHref ? /* @__PURE__ */ jsx256(
|
|
9004
9059
|
"a",
|
|
9005
9060
|
{
|
|
9006
9061
|
href: applicationHref,
|
|
@@ -9009,8 +9064,8 @@ var InternalHeader = (props) => {
|
|
|
9009
9064
|
children: applicationName
|
|
9010
9065
|
}
|
|
9011
9066
|
) : applicationName }),
|
|
9012
|
-
/* @__PURE__ */
|
|
9013
|
-
(hasContextMenu || navigation !== null) && /* @__PURE__ */
|
|
9067
|
+
/* @__PURE__ */ jsx256(Typography, { typographyType: "bodySans02", as: "span", children: applicationDesc }),
|
|
9068
|
+
(hasContextMenu || navigation !== null) && /* @__PURE__ */ jsx256("div", { className: InternalHeader_default["bar-separator"] }),
|
|
9014
9069
|
navigation,
|
|
9015
9070
|
hasContextMenu && /* @__PURE__ */ jsxs55(
|
|
9016
9071
|
"div",
|
|
@@ -9021,7 +9076,7 @@ var InternalHeader = (props) => {
|
|
|
9021
9076
|
!hasContextMenuLargeScreen && hasSmallScreenBreakpoint && InternalHeader_default[`context-menu-group--small-screen-only-${smallScreenBreakpoint}`]
|
|
9022
9077
|
),
|
|
9023
9078
|
children: [
|
|
9024
|
-
/* @__PURE__ */
|
|
9079
|
+
/* @__PURE__ */ jsx256(
|
|
9025
9080
|
Button,
|
|
9026
9081
|
{
|
|
9027
9082
|
ref: buttonRef,
|
|
@@ -9041,8 +9096,8 @@ var InternalHeader = (props) => {
|
|
|
9041
9096
|
anchorRef: buttonRef,
|
|
9042
9097
|
className: InternalHeader_default["context-menu"],
|
|
9043
9098
|
children: [
|
|
9044
|
-
user && /* @__PURE__ */
|
|
9045
|
-
hasNavInContextMenu && /* @__PURE__ */
|
|
9099
|
+
user && /* @__PURE__ */ jsx256(OverflowMenuList, { children: user.href ? /* @__PURE__ */ jsx256(OverflowMenuLink, { icon: PersonIcon, ...user }) : /* @__PURE__ */ jsx256(OverflowMenuSpan, { icon: PersonIcon, ...user }) }),
|
|
9100
|
+
hasNavInContextMenu && /* @__PURE__ */ jsx256(
|
|
9046
9101
|
"nav",
|
|
9047
9102
|
{
|
|
9048
9103
|
"aria-label": "sidenavigasjon",
|
|
@@ -9050,10 +9105,10 @@ var InternalHeader = (props) => {
|
|
|
9050
9105
|
InternalHeader_default["nav--in-menu--small-screen"],
|
|
9051
9106
|
InternalHeader_default[`nav--in-menu--small-screen-${smallScreenBreakpoint}`]
|
|
9052
9107
|
),
|
|
9053
|
-
children: /* @__PURE__ */
|
|
9108
|
+
children: /* @__PURE__ */ jsx256(OverflowMenuList, { children: navItems.map((item) => /* @__PURE__ */ jsx256(OverflowMenuLink, { ...item })) })
|
|
9054
9109
|
}
|
|
9055
9110
|
),
|
|
9056
|
-
hasNavInContextMenu && hasContextMenuElements && /* @__PURE__ */
|
|
9111
|
+
hasNavInContextMenu && hasContextMenuElements && /* @__PURE__ */ jsx256(
|
|
9057
9112
|
OverflowMenuDivider,
|
|
9058
9113
|
{
|
|
9059
9114
|
className: cn(
|
|
@@ -9062,8 +9117,8 @@ var InternalHeader = (props) => {
|
|
|
9062
9117
|
)
|
|
9063
9118
|
}
|
|
9064
9119
|
),
|
|
9065
|
-
hasContextMenuElements && /* @__PURE__ */
|
|
9066
|
-
return item.href ? /* @__PURE__ */
|
|
9120
|
+
hasContextMenuElements && /* @__PURE__ */ jsx256(OverflowMenuList, { children: contextMenuItems.map((item) => {
|
|
9121
|
+
return item.href ? /* @__PURE__ */ jsx256(OverflowMenuLink, { ...item }) : /* @__PURE__ */ jsx256(
|
|
9067
9122
|
OverflowMenuButton,
|
|
9068
9123
|
{
|
|
9069
9124
|
...item
|
|
@@ -9095,7 +9150,7 @@ var List_default = {
|
|
|
9095
9150
|
};
|
|
9096
9151
|
|
|
9097
9152
|
// src/components/List/List.tsx
|
|
9098
|
-
import { jsx as
|
|
9153
|
+
import { jsx as jsx257 } from "react/jsx-runtime";
|
|
9099
9154
|
var List = forwardRef69((props, ref) => {
|
|
9100
9155
|
const {
|
|
9101
9156
|
listType = "unordered",
|
|
@@ -9107,7 +9162,7 @@ var List = forwardRef69((props, ref) => {
|
|
|
9107
9162
|
...rest
|
|
9108
9163
|
} = props;
|
|
9109
9164
|
const List2 = listType === "ordered" ? "ol" : "ul";
|
|
9110
|
-
return /* @__PURE__ */
|
|
9165
|
+
return /* @__PURE__ */ jsx257(
|
|
9111
9166
|
List2,
|
|
9112
9167
|
{
|
|
9113
9168
|
...getBaseHTMLProps(id, className, htmlProps, rest),
|
|
@@ -9125,10 +9180,10 @@ List.displayName = "List";
|
|
|
9125
9180
|
|
|
9126
9181
|
// src/components/List/ListItem.tsx
|
|
9127
9182
|
import { forwardRef as forwardRef70 } from "react";
|
|
9128
|
-
import { jsx as
|
|
9183
|
+
import { jsx as jsx258 } from "react/jsx-runtime";
|
|
9129
9184
|
var ListItem = forwardRef70(
|
|
9130
9185
|
({ className, ...rest }, ref) => {
|
|
9131
|
-
return /* @__PURE__ */
|
|
9186
|
+
return /* @__PURE__ */ jsx258("li", { ref, ...rest, className: cn(className, List_default.li) });
|
|
9132
9187
|
}
|
|
9133
9188
|
);
|
|
9134
9189
|
ListItem.displayName = "ListItem";
|
|
@@ -9155,7 +9210,7 @@ var LocalMessage_default = {
|
|
|
9155
9210
|
};
|
|
9156
9211
|
|
|
9157
9212
|
// src/components/LocalMessage/LocalMessage.tsx
|
|
9158
|
-
import { Fragment as Fragment7, jsx as
|
|
9213
|
+
import { Fragment as Fragment7, jsx as jsx259, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
9159
9214
|
var icons2 = {
|
|
9160
9215
|
info: InfoIcon,
|
|
9161
9216
|
danger: ErrorIcon,
|
|
@@ -9180,7 +9235,7 @@ var LocalMessage = forwardRef71(
|
|
|
9180
9235
|
} = props;
|
|
9181
9236
|
const [isClosed, setClosed] = useState17(false);
|
|
9182
9237
|
if (isClosed) {
|
|
9183
|
-
return /* @__PURE__ */
|
|
9238
|
+
return /* @__PURE__ */ jsx259(Fragment7, {});
|
|
9184
9239
|
}
|
|
9185
9240
|
return /* @__PURE__ */ jsxs56(
|
|
9186
9241
|
"div",
|
|
@@ -9201,15 +9256,15 @@ var LocalMessage = forwardRef71(
|
|
|
9201
9256
|
),
|
|
9202
9257
|
style: { ...htmlProps == null ? void 0 : htmlProps.style, width },
|
|
9203
9258
|
children: [
|
|
9204
|
-
/* @__PURE__ */
|
|
9259
|
+
/* @__PURE__ */ jsx259(
|
|
9205
9260
|
Icon,
|
|
9206
9261
|
{
|
|
9207
9262
|
icon: icons2[purpose],
|
|
9208
9263
|
className: cn(LocalMessage_default.icon, LocalMessage_default.container__icon)
|
|
9209
9264
|
}
|
|
9210
9265
|
),
|
|
9211
|
-
/* @__PURE__ */
|
|
9212
|
-
closable && /* @__PURE__ */
|
|
9266
|
+
/* @__PURE__ */ jsx259("div", { className: LocalMessage_default.container__text, children: children != null ? children : /* @__PURE__ */ jsx259("span", { children: message }) }),
|
|
9267
|
+
closable && /* @__PURE__ */ jsx259(
|
|
9213
9268
|
Button,
|
|
9214
9269
|
{
|
|
9215
9270
|
icon: CloseIcon,
|
|
@@ -9251,7 +9306,7 @@ var Modal_default = {
|
|
|
9251
9306
|
};
|
|
9252
9307
|
|
|
9253
9308
|
// src/components/Modal/Modal.tsx
|
|
9254
|
-
import { jsx as
|
|
9309
|
+
import { jsx as jsx260, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
9255
9310
|
var Modal = forwardRef72((props, ref) => {
|
|
9256
9311
|
const {
|
|
9257
9312
|
isOpen = false,
|
|
@@ -9296,7 +9351,7 @@ var Modal = forwardRef72((props, ref) => {
|
|
|
9296
9351
|
useOnKeyDown(["Escape", "Esc"], () => handleClose());
|
|
9297
9352
|
const hasTransitionedIn = useMountTransition(isOpen, 200);
|
|
9298
9353
|
return isOpen || hasTransitionedIn ? createPortal2(
|
|
9299
|
-
/* @__PURE__ */
|
|
9354
|
+
/* @__PURE__ */ jsx260(
|
|
9300
9355
|
Backdrop,
|
|
9301
9356
|
{
|
|
9302
9357
|
isMounted: isOpen && hasTransitionedIn,
|
|
@@ -9326,7 +9381,7 @@ var Modal = forwardRef72((props, ref) => {
|
|
|
9326
9381
|
id: modalId,
|
|
9327
9382
|
elevation: 4,
|
|
9328
9383
|
children: [
|
|
9329
|
-
onClose && /* @__PURE__ */
|
|
9384
|
+
onClose && /* @__PURE__ */ jsx260(
|
|
9330
9385
|
Button,
|
|
9331
9386
|
{
|
|
9332
9387
|
size: "small",
|
|
@@ -9339,7 +9394,7 @@ var Modal = forwardRef72((props, ref) => {
|
|
|
9339
9394
|
}
|
|
9340
9395
|
),
|
|
9341
9396
|
/* @__PURE__ */ jsxs57("div", { className: Modal_default.content, children: [
|
|
9342
|
-
!!header && /* @__PURE__ */
|
|
9397
|
+
!!header && /* @__PURE__ */ jsx260("div", { id: headerId, className: Modal_default.header, children: typeof header === "string" ? /* @__PURE__ */ jsx260(Heading, { level: 2, typographyType: "headingSans03", children: header }) : header }),
|
|
9343
9398
|
children
|
|
9344
9399
|
] })
|
|
9345
9400
|
]
|
|
@@ -9354,11 +9409,11 @@ Modal.displayName = "Modal";
|
|
|
9354
9409
|
|
|
9355
9410
|
// src/components/Modal/ModalBody.tsx
|
|
9356
9411
|
import { forwardRef as forwardRef73 } from "react";
|
|
9357
|
-
import { jsx as
|
|
9412
|
+
import { jsx as jsx261 } from "react/jsx-runtime";
|
|
9358
9413
|
var ModalBody = forwardRef73(
|
|
9359
9414
|
(props, ref) => {
|
|
9360
9415
|
const { children, id, className, scrollable, htmlProps, height, ...rest } = props;
|
|
9361
|
-
return /* @__PURE__ */
|
|
9416
|
+
return /* @__PURE__ */ jsx261(
|
|
9362
9417
|
"div",
|
|
9363
9418
|
{
|
|
9364
9419
|
ref,
|
|
@@ -9383,10 +9438,10 @@ ModalBody.displayName = "ModalBody";
|
|
|
9383
9438
|
|
|
9384
9439
|
// src/components/Modal/ModalActions.tsx
|
|
9385
9440
|
import { forwardRef as forwardRef74 } from "react";
|
|
9386
|
-
import { jsx as
|
|
9441
|
+
import { jsx as jsx262 } from "react/jsx-runtime";
|
|
9387
9442
|
var ModalActions = forwardRef74(
|
|
9388
9443
|
({ className, ...rest }, ref) => {
|
|
9389
|
-
return /* @__PURE__ */
|
|
9444
|
+
return /* @__PURE__ */ jsx262("div", { ref, ...rest, className: cn(className, Modal_default.actions) });
|
|
9390
9445
|
}
|
|
9391
9446
|
);
|
|
9392
9447
|
ModalActions.displayName = "ModalActions";
|
|
@@ -9754,7 +9809,7 @@ var getCustomStyles = (size2, hasError, hasIcon, isReadOnly) => ({
|
|
|
9754
9809
|
import {
|
|
9755
9810
|
components
|
|
9756
9811
|
} from "react-select";
|
|
9757
|
-
import { jsx as
|
|
9812
|
+
import { jsx as jsx263, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
9758
9813
|
var {
|
|
9759
9814
|
Option,
|
|
9760
9815
|
NoOptionsMessage,
|
|
@@ -9776,26 +9831,26 @@ var getIndicatorIconSize = (componentSize) => {
|
|
|
9776
9831
|
}
|
|
9777
9832
|
};
|
|
9778
9833
|
var DDSOption = (props, componentSize) => /* @__PURE__ */ jsxs58(Option, { ...props, children: [
|
|
9779
|
-
props.isSelected && /* @__PURE__ */
|
|
9834
|
+
props.isSelected && /* @__PURE__ */ jsx263(Icon, { icon: CheckIcon, iconSize: getFormInputIconSize(componentSize) }),
|
|
9780
9835
|
props.children
|
|
9781
9836
|
] });
|
|
9782
|
-
var CustomOption = (props, Element) => /* @__PURE__ */
|
|
9783
|
-
var CustomSingleValue = (props, id, Element) => /* @__PURE__ */
|
|
9784
|
-
var DDSNoOptionsMessage = (props) => /* @__PURE__ */
|
|
9785
|
-
var DDSClearIndicator = (props, size2) => /* @__PURE__ */
|
|
9786
|
-
var DDSMultiValueRemove = (props) => /* @__PURE__ */
|
|
9837
|
+
var CustomOption = (props, Element) => /* @__PURE__ */ jsx263(Option, { ...props, children: /* @__PURE__ */ jsx263(Element, { ...props }) });
|
|
9838
|
+
var CustomSingleValue = (props, id, Element) => /* @__PURE__ */ jsx263(SingleValue, { ...props, children: /* @__PURE__ */ jsx263("div", { id, className: Select_default["inner-single-value"], children: Element ? /* @__PURE__ */ jsx263(Element, { ...props }) : props.children }) });
|
|
9839
|
+
var DDSNoOptionsMessage = (props) => /* @__PURE__ */ jsx263(NoOptionsMessage, { ...props, children: "Ingen treff" });
|
|
9840
|
+
var DDSClearIndicator = (props, size2) => /* @__PURE__ */ jsx263(ClearIndicator, { ...props, children: /* @__PURE__ */ jsx263(Icon, { icon: CloseSmallIcon, iconSize: getIndicatorIconSize(size2) }) });
|
|
9841
|
+
var DDSMultiValueRemove = (props) => /* @__PURE__ */ jsx263(MultiValueRemove, { ...props, children: /* @__PURE__ */ jsx263(Icon, { icon: CloseSmallIcon, iconSize: "small" }) });
|
|
9787
9842
|
var DDSDropdownIndicator = (props, size2) => {
|
|
9788
9843
|
const { className, ...rest } = props;
|
|
9789
|
-
return /* @__PURE__ */
|
|
9844
|
+
return /* @__PURE__ */ jsx263(
|
|
9790
9845
|
DropdownIndicator,
|
|
9791
9846
|
{
|
|
9792
9847
|
...rest,
|
|
9793
9848
|
className: cn(className, Select_default["dropdown-indicator"]),
|
|
9794
|
-
children: /* @__PURE__ */
|
|
9849
|
+
children: /* @__PURE__ */ jsx263(Icon, { icon: ChevronDownIcon, iconSize: getIndicatorIconSize(size2) })
|
|
9795
9850
|
}
|
|
9796
9851
|
);
|
|
9797
9852
|
};
|
|
9798
|
-
var DDSInput = (props, ariaInvalid, ariaDescribedby) => /* @__PURE__ */
|
|
9853
|
+
var DDSInput = (props, ariaInvalid, ariaDescribedby) => /* @__PURE__ */ jsx263(
|
|
9799
9854
|
Input2,
|
|
9800
9855
|
{
|
|
9801
9856
|
...props,
|
|
@@ -9805,7 +9860,7 @@ var DDSInput = (props, ariaInvalid, ariaDescribedby) => /* @__PURE__ */ jsx262(
|
|
|
9805
9860
|
);
|
|
9806
9861
|
var DDSControl = (props, componentSize, readOnly, icon, dataTestId) => {
|
|
9807
9862
|
const { className, ...rest } = props;
|
|
9808
|
-
return /* @__PURE__ */
|
|
9863
|
+
return /* @__PURE__ */ jsx263(
|
|
9809
9864
|
"div",
|
|
9810
9865
|
{
|
|
9811
9866
|
"data-testid": dataTestId ? dataTestId + "-control" : void 0,
|
|
@@ -9820,7 +9875,7 @@ var DDSControl = (props, componentSize, readOnly, icon, dataTestId) => {
|
|
|
9820
9875
|
readOnly && Select_default["control--readonly"]
|
|
9821
9876
|
),
|
|
9822
9877
|
children: [
|
|
9823
|
-
icon && /* @__PURE__ */
|
|
9878
|
+
icon && /* @__PURE__ */ jsx263(
|
|
9824
9879
|
Icon,
|
|
9825
9880
|
{
|
|
9826
9881
|
icon,
|
|
@@ -9840,7 +9895,7 @@ var DDSControl = (props, componentSize, readOnly, icon, dataTestId) => {
|
|
|
9840
9895
|
};
|
|
9841
9896
|
|
|
9842
9897
|
// src/components/Select/Select.tsx
|
|
9843
|
-
import { jsx as
|
|
9898
|
+
import { jsx as jsx264, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
9844
9899
|
var getPlaceholder = (placeholder, isMulti) => placeholder ? placeholder : isMulti ? "-- Velg en eller flere --" : "-- Velg fra listen --";
|
|
9845
9900
|
function SelectInner(props, ref) {
|
|
9846
9901
|
const {
|
|
@@ -9944,7 +9999,7 @@ function SelectInner(props, ref) {
|
|
|
9944
9999
|
),
|
|
9945
10000
|
style: { ...style, ...styleVariables },
|
|
9946
10001
|
children: [
|
|
9947
|
-
hasLabel && /* @__PURE__ */
|
|
10002
|
+
hasLabel && /* @__PURE__ */ jsx264(
|
|
9948
10003
|
Label,
|
|
9949
10004
|
{
|
|
9950
10005
|
htmlFor: uniqueId,
|
|
@@ -9954,7 +10009,7 @@ function SelectInner(props, ref) {
|
|
|
9954
10009
|
children: label
|
|
9955
10010
|
}
|
|
9956
10011
|
),
|
|
9957
|
-
/* @__PURE__ */
|
|
10012
|
+
/* @__PURE__ */ jsx264(ReactSelect, { ...reactSelectProps, ref }),
|
|
9958
10013
|
renderInputMessage(tip, tipId, errorMessage, errorMessageId)
|
|
9959
10014
|
]
|
|
9960
10015
|
}
|
|
@@ -9979,7 +10034,7 @@ var NativeSelect_default = {
|
|
|
9979
10034
|
};
|
|
9980
10035
|
|
|
9981
10036
|
// src/components/Select/NativeSelect/NativeSelect.tsx
|
|
9982
|
-
import { jsx as
|
|
10037
|
+
import { jsx as jsx265, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
9983
10038
|
var NativeSelect = forwardRef76(
|
|
9984
10039
|
(props, ref) => {
|
|
9985
10040
|
const {
|
|
@@ -10012,7 +10067,7 @@ var NativeSelect = forwardRef76(
|
|
|
10012
10067
|
["--dds-native-select-width"]: width ? width : componentSize === "tiny" ? "210px" : "var(--dds-input-default-width)"
|
|
10013
10068
|
};
|
|
10014
10069
|
return /* @__PURE__ */ jsxs60("div", { children: [
|
|
10015
|
-
hasLabel && /* @__PURE__ */
|
|
10070
|
+
hasLabel && /* @__PURE__ */ jsx265(
|
|
10016
10071
|
Label,
|
|
10017
10072
|
{
|
|
10018
10073
|
className: Input_default.label,
|
|
@@ -10023,7 +10078,7 @@ var NativeSelect = forwardRef76(
|
|
|
10023
10078
|
}
|
|
10024
10079
|
),
|
|
10025
10080
|
/* @__PURE__ */ jsxs60("div", { className: NativeSelect_default.container, children: [
|
|
10026
|
-
/* @__PURE__ */
|
|
10081
|
+
/* @__PURE__ */ jsx265(
|
|
10027
10082
|
"select",
|
|
10028
10083
|
{
|
|
10029
10084
|
ref,
|
|
@@ -10061,7 +10116,7 @@ var NativeSelect = forwardRef76(
|
|
|
10061
10116
|
children
|
|
10062
10117
|
}
|
|
10063
10118
|
),
|
|
10064
|
-
!multiple && /* @__PURE__ */
|
|
10119
|
+
!multiple && /* @__PURE__ */ jsx265(
|
|
10065
10120
|
Icon,
|
|
10066
10121
|
{
|
|
10067
10122
|
icon: ChevronDownIcon,
|
|
@@ -10076,7 +10131,7 @@ var NativeSelect = forwardRef76(
|
|
|
10076
10131
|
);
|
|
10077
10132
|
var NativeSelectPlaceholder = forwardRef76((props, ref) => {
|
|
10078
10133
|
const { children = "-- Velg fra listen --", value, ...rest } = props;
|
|
10079
|
-
return /* @__PURE__ */
|
|
10134
|
+
return /* @__PURE__ */ jsx265("option", { ref, value: value != null ? value : "", selected: true, ...rest, children });
|
|
10080
10135
|
});
|
|
10081
10136
|
NativeSelectPlaceholder.displayName = "NativeSelectPlaceholder";
|
|
10082
10137
|
|
|
@@ -10084,7 +10139,7 @@ NativeSelectPlaceholder.displayName = "NativeSelectPlaceholder";
|
|
|
10084
10139
|
var createSelectOptions = (...args) => args.map((v2) => ({ label: v2, value: v2 }));
|
|
10085
10140
|
|
|
10086
10141
|
// src/components/Pagination/Pagination.tsx
|
|
10087
|
-
import { Fragment as Fragment8, jsx as
|
|
10142
|
+
import { Fragment as Fragment8, jsx as jsx266, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
10088
10143
|
var Pagination = forwardRef77(
|
|
10089
10144
|
(props, ref) => {
|
|
10090
10145
|
const {
|
|
@@ -10128,7 +10183,7 @@ var Pagination = forwardRef77(
|
|
|
10128
10183
|
};
|
|
10129
10184
|
const listItems = items.length > 0 ? items.map((item, i2) => {
|
|
10130
10185
|
const isActive = item === activePage;
|
|
10131
|
-
return /* @__PURE__ */
|
|
10186
|
+
return /* @__PURE__ */ jsx266("li", { className: Pagination_default.list__item, children: item !== "truncator" ? /* @__PURE__ */ jsx266(
|
|
10132
10187
|
Button,
|
|
10133
10188
|
{
|
|
10134
10189
|
purpose: isActive ? "primary" : "secondary",
|
|
@@ -10139,7 +10194,7 @@ var Pagination = forwardRef77(
|
|
|
10139
10194
|
"aria-label": isActive ? `N\xE5v\xE6rende side (side ${item})` : `G\xE5 til side ${item}`,
|
|
10140
10195
|
children: item
|
|
10141
10196
|
}
|
|
10142
|
-
) : /* @__PURE__ */
|
|
10197
|
+
) : /* @__PURE__ */ jsx266(
|
|
10143
10198
|
Icon,
|
|
10144
10199
|
{
|
|
10145
10200
|
icon: MoreHorizontalIcon,
|
|
@@ -10147,7 +10202,7 @@ var Pagination = forwardRef77(
|
|
|
10147
10202
|
}
|
|
10148
10203
|
) }, `pagination-item-${i2}`);
|
|
10149
10204
|
}) : void 0;
|
|
10150
|
-
const previousPageButton = /* @__PURE__ */
|
|
10205
|
+
const previousPageButton = /* @__PURE__ */ jsx266(
|
|
10151
10206
|
Button,
|
|
10152
10207
|
{
|
|
10153
10208
|
purpose: "secondary",
|
|
@@ -10159,7 +10214,7 @@ var Pagination = forwardRef77(
|
|
|
10159
10214
|
"aria-label": "G\xE5 til forrige siden"
|
|
10160
10215
|
}
|
|
10161
10216
|
);
|
|
10162
|
-
const nextPageButton = /* @__PURE__ */
|
|
10217
|
+
const nextPageButton = /* @__PURE__ */ jsx266(
|
|
10163
10218
|
Button,
|
|
10164
10219
|
{
|
|
10165
10220
|
purpose: "secondary",
|
|
@@ -10184,8 +10239,8 @@ var Pagination = forwardRef77(
|
|
|
10184
10239
|
};
|
|
10185
10240
|
const isOnFirstPage = activePage === 1;
|
|
10186
10241
|
const isOnLastPage = activePage === pagesLength;
|
|
10187
|
-
const largeScreenNavigation = withPagination ? /* @__PURE__ */
|
|
10188
|
-
/* @__PURE__ */
|
|
10242
|
+
const largeScreenNavigation = withPagination ? /* @__PURE__ */ jsx266("nav", { ref, "aria-label": "paginering", ...navProps(), children: /* @__PURE__ */ jsxs61("ol", { className: Pagination_default.list, children: [
|
|
10243
|
+
/* @__PURE__ */ jsx266(
|
|
10189
10244
|
"li",
|
|
10190
10245
|
{
|
|
10191
10246
|
className: cn(
|
|
@@ -10197,7 +10252,7 @@ var Pagination = forwardRef77(
|
|
|
10197
10252
|
}
|
|
10198
10253
|
),
|
|
10199
10254
|
listItems,
|
|
10200
|
-
/* @__PURE__ */
|
|
10255
|
+
/* @__PURE__ */ jsx266(
|
|
10201
10256
|
"li",
|
|
10202
10257
|
{
|
|
10203
10258
|
className: cn(
|
|
@@ -10209,8 +10264,8 @@ var Pagination = forwardRef77(
|
|
|
10209
10264
|
}
|
|
10210
10265
|
)
|
|
10211
10266
|
] }) }) : null;
|
|
10212
|
-
const smallScreenNavigation = withPagination ? /* @__PURE__ */
|
|
10213
|
-
/* @__PURE__ */
|
|
10267
|
+
const smallScreenNavigation = withPagination ? /* @__PURE__ */ jsx266("nav", { ref, "aria-label": "paginering", ...navProps(true), children: /* @__PURE__ */ jsxs61("ol", { className: Pagination_default.list, children: [
|
|
10268
|
+
/* @__PURE__ */ jsx266(
|
|
10214
10269
|
"li",
|
|
10215
10270
|
{
|
|
10216
10271
|
className: cn(
|
|
@@ -10218,7 +10273,7 @@ var Pagination = forwardRef77(
|
|
|
10218
10273
|
isOnFirstPage && Pagination_default["list__item--hidden"]
|
|
10219
10274
|
),
|
|
10220
10275
|
"aria-hidden": isOnFirstPage,
|
|
10221
|
-
children: /* @__PURE__ */
|
|
10276
|
+
children: /* @__PURE__ */ jsx266(
|
|
10222
10277
|
Button,
|
|
10223
10278
|
{
|
|
10224
10279
|
purpose: "secondary",
|
|
@@ -10232,7 +10287,7 @@ var Pagination = forwardRef77(
|
|
|
10232
10287
|
)
|
|
10233
10288
|
}
|
|
10234
10289
|
),
|
|
10235
|
-
/* @__PURE__ */
|
|
10290
|
+
/* @__PURE__ */ jsx266(
|
|
10236
10291
|
"li",
|
|
10237
10292
|
{
|
|
10238
10293
|
className: cn(
|
|
@@ -10243,7 +10298,7 @@ var Pagination = forwardRef77(
|
|
|
10243
10298
|
children: previousPageButton
|
|
10244
10299
|
}
|
|
10245
10300
|
),
|
|
10246
|
-
/* @__PURE__ */
|
|
10301
|
+
/* @__PURE__ */ jsx266("li", { className: Pagination_default.list__item, children: /* @__PURE__ */ jsx266(
|
|
10247
10302
|
Button,
|
|
10248
10303
|
{
|
|
10249
10304
|
size: "small",
|
|
@@ -10253,7 +10308,7 @@ var Pagination = forwardRef77(
|
|
|
10253
10308
|
children: activePage
|
|
10254
10309
|
}
|
|
10255
10310
|
) }),
|
|
10256
|
-
/* @__PURE__ */
|
|
10311
|
+
/* @__PURE__ */ jsx266(
|
|
10257
10312
|
"li",
|
|
10258
10313
|
{
|
|
10259
10314
|
className: cn(
|
|
@@ -10264,7 +10319,7 @@ var Pagination = forwardRef77(
|
|
|
10264
10319
|
children: nextPageButton
|
|
10265
10320
|
}
|
|
10266
10321
|
),
|
|
10267
|
-
/* @__PURE__ */
|
|
10322
|
+
/* @__PURE__ */ jsx266(
|
|
10268
10323
|
"li",
|
|
10269
10324
|
{
|
|
10270
10325
|
className: cn(
|
|
@@ -10272,7 +10327,7 @@ var Pagination = forwardRef77(
|
|
|
10272
10327
|
isOnLastPage && Pagination_default["list__item--hidden"]
|
|
10273
10328
|
),
|
|
10274
10329
|
"aria-hidden": isOnLastPage,
|
|
10275
|
-
children: /* @__PURE__ */
|
|
10330
|
+
children: /* @__PURE__ */ jsx266(
|
|
10276
10331
|
Button,
|
|
10277
10332
|
{
|
|
10278
10333
|
purpose: "secondary",
|
|
@@ -10307,7 +10362,7 @@ var Pagination = forwardRef77(
|
|
|
10307
10362
|
),
|
|
10308
10363
|
children: [
|
|
10309
10364
|
/* @__PURE__ */ jsxs61("div", { className: Pagination_default.indicators, children: [
|
|
10310
|
-
withSelect && /* @__PURE__ */
|
|
10365
|
+
withSelect && /* @__PURE__ */ jsx266(
|
|
10311
10366
|
Select,
|
|
10312
10367
|
{
|
|
10313
10368
|
options: selectOptions,
|
|
@@ -10751,7 +10806,7 @@ var PhoneInput_default = {
|
|
|
10751
10806
|
};
|
|
10752
10807
|
|
|
10753
10808
|
// src/components/PhoneInput/PhoneInput.tsx
|
|
10754
|
-
import { jsx as
|
|
10809
|
+
import { jsx as jsx267, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
10755
10810
|
var prioritizedCountries = [
|
|
10756
10811
|
COUNTRIES.NO,
|
|
10757
10812
|
COUNTRIES.SE,
|
|
@@ -10889,7 +10944,7 @@ var PhoneInput = forwardRef78(
|
|
|
10889
10944
|
};
|
|
10890
10945
|
const showRequiredStyling = !!(required || ariaRequired);
|
|
10891
10946
|
return /* @__PURE__ */ jsxs62("div", { className: cn(className, Input_default.container), style, children: [
|
|
10892
|
-
hasLabel && /* @__PURE__ */
|
|
10947
|
+
hasLabel && /* @__PURE__ */ jsx267(
|
|
10893
10948
|
Label,
|
|
10894
10949
|
{
|
|
10895
10950
|
htmlFor: phoneNumberId,
|
|
@@ -10910,8 +10965,8 @@ var PhoneInput = forwardRef78(
|
|
|
10910
10965
|
role: "group",
|
|
10911
10966
|
"aria-label": groupLabel,
|
|
10912
10967
|
children: [
|
|
10913
|
-
/* @__PURE__ */
|
|
10914
|
-
/* @__PURE__ */
|
|
10968
|
+
/* @__PURE__ */ jsx267("label", { className: utilStyles_default["visually-hidden"], htmlFor: selectId, children: selectLabel }),
|
|
10969
|
+
/* @__PURE__ */ jsx267(
|
|
10915
10970
|
NativeSelect,
|
|
10916
10971
|
{
|
|
10917
10972
|
...commonProps,
|
|
@@ -10930,11 +10985,11 @@ var PhoneInput = forwardRef78(
|
|
|
10930
10985
|
hasTip ? tipId : void 0,
|
|
10931
10986
|
ariaDescribedby
|
|
10932
10987
|
]),
|
|
10933
|
-
children: countryOptions.map((item, index) => /* @__PURE__ */
|
|
10988
|
+
children: countryOptions.map((item, index) => /* @__PURE__ */ jsx267("option", { value: item.countryCode, children: item.label }, index))
|
|
10934
10989
|
}
|
|
10935
10990
|
),
|
|
10936
10991
|
/* @__PURE__ */ jsxs62("div", { className: Input_default["input-group"], children: [
|
|
10937
|
-
/* @__PURE__ */
|
|
10992
|
+
/* @__PURE__ */ jsx267(
|
|
10938
10993
|
"span",
|
|
10939
10994
|
{
|
|
10940
10995
|
className: cn(
|
|
@@ -10946,7 +11001,7 @@ var PhoneInput = forwardRef78(
|
|
|
10946
11001
|
children: callingCode
|
|
10947
11002
|
}
|
|
10948
11003
|
),
|
|
10949
|
-
/* @__PURE__ */
|
|
11004
|
+
/* @__PURE__ */ jsx267(
|
|
10950
11005
|
StatefulInput,
|
|
10951
11006
|
{
|
|
10952
11007
|
ref,
|
|
@@ -10998,7 +11053,7 @@ var Popover_default = {
|
|
|
10998
11053
|
};
|
|
10999
11054
|
|
|
11000
11055
|
// src/components/Popover/Popover.tsx
|
|
11001
|
-
import { jsx as
|
|
11056
|
+
import { jsx as jsx268, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
11002
11057
|
var Popover = forwardRef79(
|
|
11003
11058
|
(props, ref) => {
|
|
11004
11059
|
const {
|
|
@@ -11013,6 +11068,7 @@ var Popover = forwardRef79(
|
|
|
11013
11068
|
placement = "bottom",
|
|
11014
11069
|
offset = ddsTokens16.ddsSpacingX05NumberPx,
|
|
11015
11070
|
sizeProps,
|
|
11071
|
+
returnFocusOnBlur = true,
|
|
11016
11072
|
id,
|
|
11017
11073
|
className,
|
|
11018
11074
|
htmlProps = {},
|
|
@@ -11025,7 +11081,7 @@ var Popover = forwardRef79(
|
|
|
11025
11081
|
});
|
|
11026
11082
|
refs.setReference(anchorElement || null);
|
|
11027
11083
|
const popoverRef = useReturnFocusOnBlur(
|
|
11028
|
-
isOpen && hasTransitionedIn,
|
|
11084
|
+
isOpen && hasTransitionedIn && returnFocusOnBlur,
|
|
11029
11085
|
() => {
|
|
11030
11086
|
onClose && onClose();
|
|
11031
11087
|
onBlur && onBlur();
|
|
@@ -11061,15 +11117,15 @@ var Popover = forwardRef79(
|
|
|
11061
11117
|
elevation: 3,
|
|
11062
11118
|
border: "subtle",
|
|
11063
11119
|
children: [
|
|
11064
|
-
title && /* @__PURE__ */
|
|
11065
|
-
/* @__PURE__ */
|
|
11120
|
+
title && /* @__PURE__ */ jsx268("div", { className: Popover_default.title, children: typeof title === "string" ? /* @__PURE__ */ jsx268(Heading, { level: 2, typographyType: "headingSans02", children: title }) : title }),
|
|
11121
|
+
/* @__PURE__ */ jsx268(
|
|
11066
11122
|
"div",
|
|
11067
11123
|
{
|
|
11068
11124
|
className: !hasTitle && withCloseButton ? Popover_default["content--closable--no-title"] : "",
|
|
11069
11125
|
children
|
|
11070
11126
|
}
|
|
11071
11127
|
),
|
|
11072
|
-
withCloseButton && /* @__PURE__ */
|
|
11128
|
+
withCloseButton && /* @__PURE__ */ jsx268(
|
|
11073
11129
|
Button,
|
|
11074
11130
|
{
|
|
11075
11131
|
icon: CloseIcon,
|
|
@@ -11096,7 +11152,7 @@ import {
|
|
|
11096
11152
|
useRef as useRef30,
|
|
11097
11153
|
useState as useState20
|
|
11098
11154
|
} from "react";
|
|
11099
|
-
import { Fragment as Fragment9, jsx as
|
|
11155
|
+
import { Fragment as Fragment9, jsx as jsx269 } from "react/jsx-runtime";
|
|
11100
11156
|
var PopoverGroup = ({
|
|
11101
11157
|
isOpen = false,
|
|
11102
11158
|
onCloseButtonClick,
|
|
@@ -11142,7 +11198,7 @@ var PopoverGroup = ({
|
|
|
11142
11198
|
onClose: handleClose
|
|
11143
11199
|
}));
|
|
11144
11200
|
});
|
|
11145
|
-
return /* @__PURE__ */
|
|
11201
|
+
return /* @__PURE__ */ jsx269(Fragment9, { children: Children8 });
|
|
11146
11202
|
};
|
|
11147
11203
|
PopoverGroup.displayName = "PopoverGroup";
|
|
11148
11204
|
|
|
@@ -11159,13 +11215,13 @@ import {
|
|
|
11159
11215
|
} from "react";
|
|
11160
11216
|
|
|
11161
11217
|
// src/components/ProgressTracker/ProgressTracker.context.tsx
|
|
11162
|
-
import { createContext as createContext4, useContext as
|
|
11218
|
+
import { createContext as createContext4, useContext as useContext8 } from "react";
|
|
11163
11219
|
var ProgressTrackerContext = createContext4(
|
|
11164
11220
|
{
|
|
11165
11221
|
activeStep: 0
|
|
11166
11222
|
}
|
|
11167
11223
|
);
|
|
11168
|
-
var useProgressTrackerContext = () =>
|
|
11224
|
+
var useProgressTrackerContext = () => useContext8(ProgressTrackerContext);
|
|
11169
11225
|
|
|
11170
11226
|
// src/components/ProgressTracker/ProgressTracker.module.css
|
|
11171
11227
|
var ProgressTracker_default = {
|
|
@@ -11190,7 +11246,7 @@ var ProgressTracker_default = {
|
|
|
11190
11246
|
|
|
11191
11247
|
// src/components/ProgressTracker/ProgressTrackerItem.tsx
|
|
11192
11248
|
import { useMemo as useMemo2 } from "react";
|
|
11193
|
-
import { Fragment as Fragment10, jsx as
|
|
11249
|
+
import { Fragment as Fragment10, jsx as jsx270, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
11194
11250
|
var toItemState = (active, completed, disabled) => {
|
|
11195
11251
|
if (disabled) {
|
|
11196
11252
|
return "disabled";
|
|
@@ -11233,15 +11289,15 @@ var ProgressTrackerItem = (props) => {
|
|
|
11233
11289
|
};
|
|
11234
11290
|
const stepNumberContent = useMemo2(() => {
|
|
11235
11291
|
if (completed) {
|
|
11236
|
-
return /* @__PURE__ */
|
|
11292
|
+
return /* @__PURE__ */ jsx270(Icon, { icon: CheckIcon, iconSize: "small" });
|
|
11237
11293
|
}
|
|
11238
11294
|
if (icon !== void 0) {
|
|
11239
|
-
return /* @__PURE__ */
|
|
11295
|
+
return /* @__PURE__ */ jsx270(Icon, { icon, iconSize: "small" });
|
|
11240
11296
|
}
|
|
11241
11297
|
return index + 1;
|
|
11242
11298
|
}, [completed, icon, index]);
|
|
11243
11299
|
const stepContent = /* @__PURE__ */ jsxs64(Fragment10, { children: [
|
|
11244
|
-
/* @__PURE__ */
|
|
11300
|
+
/* @__PURE__ */ jsx270(
|
|
11245
11301
|
"div",
|
|
11246
11302
|
{
|
|
11247
11303
|
"aria-hidden": true,
|
|
@@ -11262,13 +11318,13 @@ var ProgressTrackerItem = (props) => {
|
|
|
11262
11318
|
typographyStyles_default["body-sans-03"]
|
|
11263
11319
|
),
|
|
11264
11320
|
children: [
|
|
11265
|
-
/* @__PURE__ */
|
|
11321
|
+
/* @__PURE__ */ jsx270(VisuallyHidden, { as: "span", children: getVisuallyHiddenText(active, completed, index) }),
|
|
11266
11322
|
children
|
|
11267
11323
|
]
|
|
11268
11324
|
}
|
|
11269
11325
|
)
|
|
11270
11326
|
] });
|
|
11271
|
-
return /* @__PURE__ */
|
|
11327
|
+
return /* @__PURE__ */ jsx270("li", { "aria-current": active ? "step" : void 0, className: ProgressTracker_default.item, children: handleStepChange ? /* @__PURE__ */ jsx270(
|
|
11272
11328
|
"button",
|
|
11273
11329
|
{
|
|
11274
11330
|
...getBaseHTMLProps(
|
|
@@ -11281,7 +11337,7 @@ var ProgressTrackerItem = (props) => {
|
|
|
11281
11337
|
disabled,
|
|
11282
11338
|
children: stepContent
|
|
11283
11339
|
}
|
|
11284
|
-
) : /* @__PURE__ */
|
|
11340
|
+
) : /* @__PURE__ */ jsx270(
|
|
11285
11341
|
"div",
|
|
11286
11342
|
{
|
|
11287
11343
|
...getBaseHTMLProps(
|
|
@@ -11297,7 +11353,7 @@ var ProgressTrackerItem = (props) => {
|
|
|
11297
11353
|
ProgressTrackerItem.displayName = "ProgressTracker.Item";
|
|
11298
11354
|
|
|
11299
11355
|
// src/components/ProgressTracker/ProgressTracker.tsx
|
|
11300
|
-
import { jsx as
|
|
11356
|
+
import { jsx as jsx271, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
11301
11357
|
var ProgressTracker = (() => {
|
|
11302
11358
|
const Res = forwardRef80((props, ref) => {
|
|
11303
11359
|
const {
|
|
@@ -11329,14 +11385,14 @@ var ProgressTracker = (() => {
|
|
|
11329
11385
|
const itemsWithConnectorsBetween = intersperseItemsWithConnector(itemsWithIndex);
|
|
11330
11386
|
return itemsWithConnectorsBetween;
|
|
11331
11387
|
}, [children]);
|
|
11332
|
-
return /* @__PURE__ */
|
|
11388
|
+
return /* @__PURE__ */ jsx271(
|
|
11333
11389
|
ProgressTrackerContext.Provider,
|
|
11334
11390
|
{
|
|
11335
11391
|
value: {
|
|
11336
11392
|
activeStep: thisActiveStep,
|
|
11337
11393
|
handleStepChange: handleChange
|
|
11338
11394
|
},
|
|
11339
|
-
children: /* @__PURE__ */
|
|
11395
|
+
children: /* @__PURE__ */ jsx271("div", { role: "group", "aria-label": "progress", ...containerProps, children: /* @__PURE__ */ jsx271("ol", { className: ProgressTracker_default.list, children: steps }) })
|
|
11340
11396
|
}
|
|
11341
11397
|
);
|
|
11342
11398
|
});
|
|
@@ -11361,7 +11417,7 @@ var intersperseItemsWithConnector = (children) => Children4.map(children, (child
|
|
|
11361
11417
|
return child;
|
|
11362
11418
|
}
|
|
11363
11419
|
return /* @__PURE__ */ jsxs65(Fragment11, { children: [
|
|
11364
|
-
/* @__PURE__ */
|
|
11420
|
+
/* @__PURE__ */ jsx271("div", { "aria-hidden": true, className: ProgressTracker_default.connector }),
|
|
11365
11421
|
child
|
|
11366
11422
|
] }, index);
|
|
11367
11423
|
});
|
|
@@ -11383,7 +11439,7 @@ var ProgressBar_default = {
|
|
|
11383
11439
|
};
|
|
11384
11440
|
|
|
11385
11441
|
// src/components/ProgressBar/ProgressBar.tsx
|
|
11386
|
-
import { jsx as
|
|
11442
|
+
import { jsx as jsx272, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
11387
11443
|
var ProgressBar = forwardRef81(
|
|
11388
11444
|
(props, ref) => {
|
|
11389
11445
|
const {
|
|
@@ -11419,8 +11475,8 @@ var ProgressBar = forwardRef81(
|
|
|
11419
11475
|
["--dds-progressbar-fill-width"]: fillPrecentage != null ? fillPrecentage : 0
|
|
11420
11476
|
};
|
|
11421
11477
|
return /* @__PURE__ */ jsxs66("div", { className: cn(className, ProgressBar_default.container), style, children: [
|
|
11422
|
-
hasLabel ? /* @__PURE__ */
|
|
11423
|
-
/* @__PURE__ */
|
|
11478
|
+
hasLabel ? /* @__PURE__ */ jsx272(Label, { htmlFor: uniqueId, children: label }) : void 0,
|
|
11479
|
+
/* @__PURE__ */ jsx272(
|
|
11424
11480
|
"progress",
|
|
11425
11481
|
{
|
|
11426
11482
|
ref,
|
|
@@ -11437,12 +11493,12 @@ var ProgressBar = forwardRef81(
|
|
|
11437
11493
|
children: fillPrecentage
|
|
11438
11494
|
}
|
|
11439
11495
|
),
|
|
11440
|
-
/* @__PURE__ */
|
|
11496
|
+
/* @__PURE__ */ jsx272(
|
|
11441
11497
|
"div",
|
|
11442
11498
|
{
|
|
11443
11499
|
style: progressStyleVariables,
|
|
11444
11500
|
className: cn(ProgressBar_default.progress, ProgressBar_default[`progress--${size2}`]),
|
|
11445
|
-
children: /* @__PURE__ */
|
|
11501
|
+
children: /* @__PURE__ */ jsx272(
|
|
11446
11502
|
"div",
|
|
11447
11503
|
{
|
|
11448
11504
|
style: fillStyleVariables,
|
|
@@ -11472,11 +11528,11 @@ import {
|
|
|
11472
11528
|
// src/components/Search/AutocompleteSearch.context.tsx
|
|
11473
11529
|
import {
|
|
11474
11530
|
createContext as createContext5,
|
|
11475
|
-
useContext as
|
|
11531
|
+
useContext as useContext9
|
|
11476
11532
|
} from "react";
|
|
11477
11533
|
var AutocompleteSearchContext = createContext5({});
|
|
11478
11534
|
var useAutocompleteSearch = () => {
|
|
11479
|
-
return
|
|
11535
|
+
return useContext9(AutocompleteSearchContext);
|
|
11480
11536
|
};
|
|
11481
11537
|
|
|
11482
11538
|
// src/components/Search/Search.module.css
|
|
@@ -11534,7 +11590,7 @@ import {
|
|
|
11534
11590
|
useEffect as useEffect25,
|
|
11535
11591
|
useRef as useRef31
|
|
11536
11592
|
} from "react";
|
|
11537
|
-
import { jsx as
|
|
11593
|
+
import { jsx as jsx273 } from "react/jsx-runtime";
|
|
11538
11594
|
var SearchSuggestionItem = forwardRef82((props, ref) => {
|
|
11539
11595
|
const { focus, className, ...rest } = props;
|
|
11540
11596
|
const itemRef = useRef31(null);
|
|
@@ -11545,7 +11601,7 @@ var SearchSuggestionItem = forwardRef82((props, ref) => {
|
|
|
11545
11601
|
(_a = itemRef.current) == null ? void 0 : _a.focus();
|
|
11546
11602
|
}
|
|
11547
11603
|
}, [focus]);
|
|
11548
|
-
return /* @__PURE__ */
|
|
11604
|
+
return /* @__PURE__ */ jsx273(
|
|
11549
11605
|
"button",
|
|
11550
11606
|
{
|
|
11551
11607
|
ref: combinedRef,
|
|
@@ -11564,7 +11620,7 @@ var SearchSuggestionItem = forwardRef82((props, ref) => {
|
|
|
11564
11620
|
SearchSuggestionItem.displayName = "SearchSuggestionItem";
|
|
11565
11621
|
|
|
11566
11622
|
// src/components/Search/SearchSuggestions.tsx
|
|
11567
|
-
import { jsx as
|
|
11623
|
+
import { jsx as jsx274, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
11568
11624
|
var SearchSuggestions = forwardRef83((props, ref) => {
|
|
11569
11625
|
const {
|
|
11570
11626
|
id,
|
|
@@ -11603,7 +11659,7 @@ var SearchSuggestions = forwardRef83((props, ref) => {
|
|
|
11603
11659
|
"aria-hidden": !showSuggestions,
|
|
11604
11660
|
border: "default",
|
|
11605
11661
|
children: [
|
|
11606
|
-
/* @__PURE__ */
|
|
11662
|
+
/* @__PURE__ */ jsx274(
|
|
11607
11663
|
"span",
|
|
11608
11664
|
{
|
|
11609
11665
|
id: suggestionsHeaderId,
|
|
@@ -11614,14 +11670,14 @@ var SearchSuggestions = forwardRef83((props, ref) => {
|
|
|
11614
11670
|
children: "S\xF8keforslag"
|
|
11615
11671
|
}
|
|
11616
11672
|
),
|
|
11617
|
-
/* @__PURE__ */
|
|
11673
|
+
/* @__PURE__ */ jsx274(
|
|
11618
11674
|
"ul",
|
|
11619
11675
|
{
|
|
11620
11676
|
role: "listbox",
|
|
11621
11677
|
"aria-labelledby": suggestionsHeaderId,
|
|
11622
11678
|
className: utilStyles_default["remove-list-styling"],
|
|
11623
11679
|
children: suggestionsToRender.map((suggestion, index) => {
|
|
11624
|
-
return /* @__PURE__ */
|
|
11680
|
+
return /* @__PURE__ */ jsx274("li", { role: "option", children: /* @__PURE__ */ jsx274(
|
|
11625
11681
|
SearchSuggestionItem,
|
|
11626
11682
|
{
|
|
11627
11683
|
index,
|
|
@@ -11644,8 +11700,8 @@ var SearchSuggestions = forwardRef83((props, ref) => {
|
|
|
11644
11700
|
SearchSuggestions.displayName = "SearchSuggestions";
|
|
11645
11701
|
|
|
11646
11702
|
// src/components/Search/Search.tsx
|
|
11647
|
-
import { Fragment as Fragment12, jsx as
|
|
11648
|
-
var
|
|
11703
|
+
import { Fragment as Fragment12, jsx as jsx275, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
11704
|
+
var getIconSize2 = (size2) => {
|
|
11649
11705
|
switch (size2) {
|
|
11650
11706
|
case "large":
|
|
11651
11707
|
return "medium";
|
|
@@ -11700,7 +11756,7 @@ var Search = forwardRef84(
|
|
|
11700
11756
|
const hasSuggestions = !!context.suggestions;
|
|
11701
11757
|
const showSearchButton = !!buttonProps && !!onClick;
|
|
11702
11758
|
return /* @__PURE__ */ jsxs68("div", { className: Search_default.container, children: [
|
|
11703
|
-
hasLabel && /* @__PURE__ */
|
|
11759
|
+
hasLabel && /* @__PURE__ */ jsx275(Label, { htmlFor: uniqueId, children: label }),
|
|
11704
11760
|
/* @__PURE__ */ jsxs68("div", { children: [
|
|
11705
11761
|
/* @__PURE__ */ jsxs68(
|
|
11706
11762
|
"div",
|
|
@@ -11712,18 +11768,18 @@ var Search = forwardRef84(
|
|
|
11712
11768
|
style,
|
|
11713
11769
|
children: [
|
|
11714
11770
|
/* @__PURE__ */ jsxs68("div", { className: Search_default["input-group"], children: [
|
|
11715
|
-
/* @__PURE__ */
|
|
11771
|
+
/* @__PURE__ */ jsx275(
|
|
11716
11772
|
Icon,
|
|
11717
11773
|
{
|
|
11718
11774
|
icon: SearchIcon,
|
|
11719
|
-
iconSize:
|
|
11775
|
+
iconSize: getIconSize2(componentSize),
|
|
11720
11776
|
className: cn(
|
|
11721
11777
|
Input_default["input-group__absolute-element"],
|
|
11722
11778
|
Search_default["search-icon"]
|
|
11723
11779
|
)
|
|
11724
11780
|
}
|
|
11725
11781
|
),
|
|
11726
|
-
/* @__PURE__ */
|
|
11782
|
+
/* @__PURE__ */ jsx275(
|
|
11727
11783
|
Input,
|
|
11728
11784
|
{
|
|
11729
11785
|
...rest,
|
|
@@ -11751,7 +11807,7 @@ var Search = forwardRef84(
|
|
|
11751
11807
|
}
|
|
11752
11808
|
),
|
|
11753
11809
|
hasSuggestions && /* @__PURE__ */ jsxs68(Fragment12, { children: [
|
|
11754
|
-
/* @__PURE__ */
|
|
11810
|
+
/* @__PURE__ */ jsx275(
|
|
11755
11811
|
SearchSuggestions,
|
|
11756
11812
|
{
|
|
11757
11813
|
id: suggestionsId,
|
|
@@ -11763,9 +11819,9 @@ var Search = forwardRef84(
|
|
|
11763
11819
|
componentSize
|
|
11764
11820
|
}
|
|
11765
11821
|
),
|
|
11766
|
-
/* @__PURE__ */
|
|
11822
|
+
/* @__PURE__ */ jsx275(VisuallyHidden, { id: suggestionsDescriptionId, as: "span", children: "Bla i s\xF8keforslag med piltaster n\xE5r listen er utvidet." })
|
|
11767
11823
|
] }),
|
|
11768
|
-
hasValue && /* @__PURE__ */
|
|
11824
|
+
hasValue && /* @__PURE__ */ jsx275(
|
|
11769
11825
|
Button,
|
|
11770
11826
|
{
|
|
11771
11827
|
icon: CloseSmallIcon,
|
|
@@ -11777,7 +11833,7 @@ var Search = forwardRef84(
|
|
|
11777
11833
|
}
|
|
11778
11834
|
)
|
|
11779
11835
|
] }),
|
|
11780
|
-
showSearchButton && /* @__PURE__ */
|
|
11836
|
+
showSearchButton && /* @__PURE__ */ jsx275(
|
|
11781
11837
|
Button,
|
|
11782
11838
|
{
|
|
11783
11839
|
size: componentSize,
|
|
@@ -11802,7 +11858,7 @@ import {
|
|
|
11802
11858
|
useRef as useRef32,
|
|
11803
11859
|
useState as useState23
|
|
11804
11860
|
} from "react";
|
|
11805
|
-
import { jsx as
|
|
11861
|
+
import { jsx as jsx276 } from "react/jsx-runtime";
|
|
11806
11862
|
var SearchAutocompleteWrapper = (props) => {
|
|
11807
11863
|
const {
|
|
11808
11864
|
value,
|
|
@@ -11878,7 +11934,7 @@ var SearchAutocompleteWrapper = (props) => {
|
|
|
11878
11934
|
inputValue,
|
|
11879
11935
|
onSugggestionClick: handleSuggestionClick
|
|
11880
11936
|
};
|
|
11881
|
-
return /* @__PURE__ */
|
|
11937
|
+
return /* @__PURE__ */ jsx276(AutocompleteSearchContext.Provider, { value: contextProps, children });
|
|
11882
11938
|
};
|
|
11883
11939
|
SearchAutocompleteWrapper.displayName = "SearchAutocompleteWrapper";
|
|
11884
11940
|
|
|
@@ -11891,10 +11947,10 @@ Search2.Suggestions = SearchSuggestions;
|
|
|
11891
11947
|
import { forwardRef as forwardRef86, useId as useId21 } from "react";
|
|
11892
11948
|
|
|
11893
11949
|
// src/components/SelectionControl/Checkbox/CheckboxGroupContext.tsx
|
|
11894
|
-
import { createContext as createContext6, useContext as
|
|
11950
|
+
import { createContext as createContext6, useContext as useContext10 } from "react";
|
|
11895
11951
|
var CheckboxGroupContext = createContext6(null);
|
|
11896
11952
|
var useCheckboxGroup = () => {
|
|
11897
|
-
return
|
|
11953
|
+
return useContext10(CheckboxGroupContext);
|
|
11898
11954
|
};
|
|
11899
11955
|
|
|
11900
11956
|
// src/components/SelectionControl/SelectionControl.styles.tsx
|
|
@@ -11920,10 +11976,10 @@ var SelectionControl_default = {
|
|
|
11920
11976
|
};
|
|
11921
11977
|
|
|
11922
11978
|
// src/components/SelectionControl/SelectionControl.styles.tsx
|
|
11923
|
-
import { jsx as
|
|
11979
|
+
import { jsx as jsx277 } from "react/jsx-runtime";
|
|
11924
11980
|
var SelectionControl = forwardRef85((props, ref) => {
|
|
11925
11981
|
const { controlType, className, ...rest } = props;
|
|
11926
|
-
return /* @__PURE__ */
|
|
11982
|
+
return /* @__PURE__ */ jsx277(
|
|
11927
11983
|
"span",
|
|
11928
11984
|
{
|
|
11929
11985
|
ref,
|
|
@@ -11947,7 +12003,7 @@ var Label2 = forwardRef85(
|
|
|
11947
12003
|
className,
|
|
11948
12004
|
...rest
|
|
11949
12005
|
} = props;
|
|
11950
|
-
return /* @__PURE__ */
|
|
12006
|
+
return /* @__PURE__ */ jsx277(
|
|
11951
12007
|
"label",
|
|
11952
12008
|
{
|
|
11953
12009
|
ref,
|
|
@@ -11978,7 +12034,7 @@ var selectionControlTypographyProps = {
|
|
|
11978
12034
|
};
|
|
11979
12035
|
|
|
11980
12036
|
// src/components/SelectionControl/Checkbox/Checkbox.tsx
|
|
11981
|
-
import { jsx as
|
|
12037
|
+
import { jsx as jsx278, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
11982
12038
|
var Checkbox = forwardRef86(
|
|
11983
12039
|
(props, ref) => {
|
|
11984
12040
|
const {
|
|
@@ -12018,7 +12074,7 @@ var Checkbox = forwardRef86(
|
|
|
12018
12074
|
className: cn(className, htmlPropsClassName),
|
|
12019
12075
|
style,
|
|
12020
12076
|
children: [
|
|
12021
|
-
/* @__PURE__ */
|
|
12077
|
+
/* @__PURE__ */ jsx278(
|
|
12022
12078
|
"input",
|
|
12023
12079
|
{
|
|
12024
12080
|
...getBaseHTMLProps(uniqueId, restHtmlProps, rest),
|
|
@@ -12048,14 +12104,14 @@ var Checkbox = forwardRef86(
|
|
|
12048
12104
|
onClick: readOnlyClickHandler(isReadOnly, htmlProps.onClick)
|
|
12049
12105
|
}
|
|
12050
12106
|
),
|
|
12051
|
-
/* @__PURE__ */
|
|
12107
|
+
/* @__PURE__ */ jsx278(
|
|
12052
12108
|
SelectionControl,
|
|
12053
12109
|
{
|
|
12054
12110
|
controlType: "checkbox",
|
|
12055
12111
|
className: focus_default["focus-styled-sibling"]
|
|
12056
12112
|
}
|
|
12057
12113
|
),
|
|
12058
|
-
hasLabel && /* @__PURE__ */
|
|
12114
|
+
hasLabel && /* @__PURE__ */ jsx278(Typography, { ...selectionControlTypographyProps, children: label })
|
|
12059
12115
|
]
|
|
12060
12116
|
}
|
|
12061
12117
|
);
|
|
@@ -12065,7 +12121,7 @@ Checkbox.displayName = "Checkbox";
|
|
|
12065
12121
|
|
|
12066
12122
|
// src/components/SelectionControl/Checkbox/CheckboxGroup.tsx
|
|
12067
12123
|
import { useId as useId22 } from "react";
|
|
12068
|
-
import { jsx as
|
|
12124
|
+
import { jsx as jsx279, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
12069
12125
|
var CheckboxGroup = (props) => {
|
|
12070
12126
|
const {
|
|
12071
12127
|
label,
|
|
@@ -12107,7 +12163,7 @@ var CheckboxGroup = (props) => {
|
|
|
12107
12163
|
rest
|
|
12108
12164
|
),
|
|
12109
12165
|
children: [
|
|
12110
|
-
/* @__PURE__ */ jsxs70(
|
|
12166
|
+
label !== void 0 ? /* @__PURE__ */ jsxs70(
|
|
12111
12167
|
Typography,
|
|
12112
12168
|
{
|
|
12113
12169
|
as: "span",
|
|
@@ -12115,15 +12171,15 @@ var CheckboxGroup = (props) => {
|
|
|
12115
12171
|
id: uniqueGroupId,
|
|
12116
12172
|
className: readOnly ? Label_default["read-only"] : void 0,
|
|
12117
12173
|
children: [
|
|
12118
|
-
readOnly && /* @__PURE__ */
|
|
12174
|
+
readOnly && /* @__PURE__ */ jsx279(Icon, { icon: LockIcon, className: Label_default["read-only__icon"] }),
|
|
12119
12175
|
label,
|
|
12120
12176
|
" ",
|
|
12121
|
-
showRequiredMarker && /* @__PURE__ */
|
|
12177
|
+
showRequiredMarker && /* @__PURE__ */ jsx279(RequiredMarker, {})
|
|
12122
12178
|
]
|
|
12123
12179
|
}
|
|
12124
|
-
),
|
|
12180
|
+
) : null,
|
|
12125
12181
|
renderInputMessage(tip, tipId),
|
|
12126
|
-
/* @__PURE__ */
|
|
12182
|
+
/* @__PURE__ */ jsx279(CheckboxGroupContext.Provider, { value: { ...contextProps }, children: /* @__PURE__ */ jsx279(
|
|
12127
12183
|
"div",
|
|
12128
12184
|
{
|
|
12129
12185
|
role: "group",
|
|
@@ -12144,14 +12200,14 @@ CheckboxGroup.displayName = "CheckboxGroup";
|
|
|
12144
12200
|
import { forwardRef as forwardRef87, useId as useId23 } from "react";
|
|
12145
12201
|
|
|
12146
12202
|
// src/components/SelectionControl/RadioButton/RadioButtonGroupContext.tsx
|
|
12147
|
-
import { createContext as createContext7, useContext as
|
|
12203
|
+
import { createContext as createContext7, useContext as useContext11 } from "react";
|
|
12148
12204
|
var RadioButtonGroupContext = createContext7(null);
|
|
12149
12205
|
var useRadioButtonGroup = () => {
|
|
12150
|
-
return
|
|
12206
|
+
return useContext11(RadioButtonGroupContext);
|
|
12151
12207
|
};
|
|
12152
12208
|
|
|
12153
12209
|
// src/components/SelectionControl/RadioButton/RadioButton.tsx
|
|
12154
|
-
import { jsx as
|
|
12210
|
+
import { jsx as jsx280, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
12155
12211
|
var isValueEqualToGroupValueOrFalsy = (value, group) => {
|
|
12156
12212
|
if (typeof value !== "undefined" && value !== null && group) {
|
|
12157
12213
|
if (typeof value === "number") {
|
|
@@ -12212,7 +12268,7 @@ var RadioButton = forwardRef87(
|
|
|
12212
12268
|
htmlFor: uniqueId,
|
|
12213
12269
|
controlType: "radio",
|
|
12214
12270
|
children: [
|
|
12215
|
-
/* @__PURE__ */
|
|
12271
|
+
/* @__PURE__ */ jsx280(
|
|
12216
12272
|
"input",
|
|
12217
12273
|
{
|
|
12218
12274
|
...getBaseHTMLProps(uniqueId, restHtmlProps, rest),
|
|
@@ -12238,14 +12294,14 @@ var RadioButton = forwardRef87(
|
|
|
12238
12294
|
onClick: readOnlyClickHandler(isReadOnly, htmlProps.onClick)
|
|
12239
12295
|
}
|
|
12240
12296
|
),
|
|
12241
|
-
/* @__PURE__ */
|
|
12297
|
+
/* @__PURE__ */ jsx280(
|
|
12242
12298
|
SelectionControl,
|
|
12243
12299
|
{
|
|
12244
12300
|
controlType: "radio",
|
|
12245
12301
|
className: focus_default["focus-styled-sibling"]
|
|
12246
12302
|
}
|
|
12247
12303
|
),
|
|
12248
|
-
/* @__PURE__ */
|
|
12304
|
+
/* @__PURE__ */ jsx280(Typography, { ...selectionControlTypographyProps, children: children != null ? children : label })
|
|
12249
12305
|
]
|
|
12250
12306
|
}
|
|
12251
12307
|
);
|
|
@@ -12259,7 +12315,7 @@ import {
|
|
|
12259
12315
|
useId as useId24,
|
|
12260
12316
|
useState as useState24
|
|
12261
12317
|
} from "react";
|
|
12262
|
-
import { jsx as
|
|
12318
|
+
import { jsx as jsx281, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
12263
12319
|
var RadioButtonGroupInner = (props, ref) => {
|
|
12264
12320
|
const {
|
|
12265
12321
|
name,
|
|
@@ -12320,15 +12376,15 @@ var RadioButtonGroupInner = (props, ref) => {
|
|
|
12320
12376
|
id: uniqueGroupId,
|
|
12321
12377
|
className: readOnly ? Label_default["read-only"] : void 0,
|
|
12322
12378
|
children: [
|
|
12323
|
-
readOnly && /* @__PURE__ */
|
|
12379
|
+
readOnly && /* @__PURE__ */ jsx281(Icon, { icon: LockIcon, className: Label_default["read-only__icon"] }),
|
|
12324
12380
|
label,
|
|
12325
12381
|
" ",
|
|
12326
|
-
showRequiredMarker && /* @__PURE__ */
|
|
12382
|
+
showRequiredMarker && /* @__PURE__ */ jsx281(RequiredMarker, {})
|
|
12327
12383
|
]
|
|
12328
12384
|
}
|
|
12329
12385
|
),
|
|
12330
12386
|
renderInputMessage(tip, tipId),
|
|
12331
|
-
/* @__PURE__ */
|
|
12387
|
+
/* @__PURE__ */ jsx281(RadioButtonGroupContext.Provider, { value: { ...contextProps }, children: /* @__PURE__ */ jsx281(
|
|
12332
12388
|
"div",
|
|
12333
12389
|
{
|
|
12334
12390
|
role: "radiogroup",
|
|
@@ -12357,7 +12413,7 @@ var Skeleton_default = {
|
|
|
12357
12413
|
};
|
|
12358
12414
|
|
|
12359
12415
|
// src/components/Skeleton/Skeleton.tsx
|
|
12360
|
-
import { jsx as
|
|
12416
|
+
import { jsx as jsx282 } from "react/jsx-runtime";
|
|
12361
12417
|
var Skeleton = forwardRef89(
|
|
12362
12418
|
(props, ref) => {
|
|
12363
12419
|
const {
|
|
@@ -12368,7 +12424,7 @@ var Skeleton = forwardRef89(
|
|
|
12368
12424
|
style,
|
|
12369
12425
|
...rest
|
|
12370
12426
|
} = props;
|
|
12371
|
-
return /* @__PURE__ */
|
|
12427
|
+
return /* @__PURE__ */ jsx282(
|
|
12372
12428
|
"div",
|
|
12373
12429
|
{
|
|
12374
12430
|
ref,
|
|
@@ -12390,7 +12446,7 @@ var SkipToContent_default = {
|
|
|
12390
12446
|
};
|
|
12391
12447
|
|
|
12392
12448
|
// src/components/SkipToContent/SkipToContent.tsx
|
|
12393
|
-
import { jsx as
|
|
12449
|
+
import { jsx as jsx283 } from "react/jsx-runtime";
|
|
12394
12450
|
var SkipToContent = forwardRef90(
|
|
12395
12451
|
(props, ref) => {
|
|
12396
12452
|
const {
|
|
@@ -12406,12 +12462,12 @@ var SkipToContent = forwardRef90(
|
|
|
12406
12462
|
style,
|
|
12407
12463
|
...restHtmlProps
|
|
12408
12464
|
} = htmlProps;
|
|
12409
|
-
return /* @__PURE__ */
|
|
12465
|
+
return /* @__PURE__ */ jsx283(
|
|
12410
12466
|
Contrast,
|
|
12411
12467
|
{
|
|
12412
12468
|
className: cn(className, htmlPropsClassName, SkipToContent_default.wrapper),
|
|
12413
12469
|
style: { ...style, top },
|
|
12414
|
-
children: /* @__PURE__ */
|
|
12470
|
+
children: /* @__PURE__ */ jsx283(Link, { ...getBaseHTMLProps(id, restHtmlProps, rest), ref, children: text })
|
|
12415
12471
|
}
|
|
12416
12472
|
);
|
|
12417
12473
|
}
|
|
@@ -12430,7 +12486,7 @@ var SplitButton_default = {
|
|
|
12430
12486
|
};
|
|
12431
12487
|
|
|
12432
12488
|
// src/components/SplitButton/SplitButton.tsx
|
|
12433
|
-
import { jsx as
|
|
12489
|
+
import { jsx as jsx284, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
12434
12490
|
var SplitButton = forwardRef91(
|
|
12435
12491
|
(props, ref) => {
|
|
12436
12492
|
const {
|
|
@@ -12447,7 +12503,7 @@ var SplitButton = forwardRef91(
|
|
|
12447
12503
|
size: size2
|
|
12448
12504
|
};
|
|
12449
12505
|
return /* @__PURE__ */ jsxs73("div", { ref, className: cn(className, SplitButton_default.container), ...rest, children: [
|
|
12450
|
-
/* @__PURE__ */
|
|
12506
|
+
/* @__PURE__ */ jsx284(
|
|
12451
12507
|
Button,
|
|
12452
12508
|
{
|
|
12453
12509
|
...buttonStyleProps,
|
|
@@ -12457,7 +12513,7 @@ var SplitButton = forwardRef91(
|
|
|
12457
12513
|
}
|
|
12458
12514
|
),
|
|
12459
12515
|
/* @__PURE__ */ jsxs73(OverflowMenuGroup, { onToggle: () => setIsOpen(!isOpen), children: [
|
|
12460
|
-
/* @__PURE__ */
|
|
12516
|
+
/* @__PURE__ */ jsx284(
|
|
12461
12517
|
Button,
|
|
12462
12518
|
{
|
|
12463
12519
|
...buttonStyleProps,
|
|
@@ -12470,7 +12526,7 @@ var SplitButton = forwardRef91(
|
|
|
12470
12526
|
)
|
|
12471
12527
|
}
|
|
12472
12528
|
),
|
|
12473
|
-
/* @__PURE__ */
|
|
12529
|
+
/* @__PURE__ */ jsx284(OverflowMenu, { placement: "bottom-end", children: /* @__PURE__ */ jsx284(OverflowMenuList, { children: secondaryActions.map((item, index) => /* @__PURE__ */ jsx284(OverflowMenuButton, { ...item, children: item.children }, index)) }) })
|
|
12474
12530
|
] })
|
|
12475
12531
|
] });
|
|
12476
12532
|
}
|
|
@@ -12489,19 +12545,19 @@ import {
|
|
|
12489
12545
|
} from "react";
|
|
12490
12546
|
|
|
12491
12547
|
// src/components/Table/collapsible/Table.context.tsx
|
|
12492
|
-
import { createContext as createContext8, useContext as
|
|
12548
|
+
import { createContext as createContext8, useContext as useContext12 } from "react";
|
|
12493
12549
|
var CollapsibleTableContext = createContext8({
|
|
12494
12550
|
headerValues: [],
|
|
12495
12551
|
definingColumnIndex: [0]
|
|
12496
12552
|
});
|
|
12497
|
-
var useCollapsibleTableContext = () =>
|
|
12553
|
+
var useCollapsibleTableContext = () => useContext12(CollapsibleTableContext);
|
|
12498
12554
|
|
|
12499
12555
|
// src/components/Table/normal/Body.tsx
|
|
12500
12556
|
import { forwardRef as forwardRef92 } from "react";
|
|
12501
|
-
import { jsx as
|
|
12557
|
+
import { jsx as jsx285 } from "react/jsx-runtime";
|
|
12502
12558
|
var Body = forwardRef92(
|
|
12503
12559
|
(props, ref) => {
|
|
12504
|
-
return /* @__PURE__ */
|
|
12560
|
+
return /* @__PURE__ */ jsx285("tbody", { ref, ...props });
|
|
12505
12561
|
}
|
|
12506
12562
|
);
|
|
12507
12563
|
Body.displayName = "Table.Body";
|
|
@@ -12515,18 +12571,18 @@ import {
|
|
|
12515
12571
|
import {
|
|
12516
12572
|
createContext as createContext9,
|
|
12517
12573
|
forwardRef as forwardRef93,
|
|
12518
|
-
useContext as
|
|
12574
|
+
useContext as useContext13
|
|
12519
12575
|
} from "react";
|
|
12520
|
-
import { jsx as
|
|
12576
|
+
import { jsx as jsx286 } from "react/jsx-runtime";
|
|
12521
12577
|
var Head = forwardRef93(
|
|
12522
12578
|
({ children, ...rest }, ref) => {
|
|
12523
|
-
return /* @__PURE__ */
|
|
12579
|
+
return /* @__PURE__ */ jsx286("thead", { ref, ...rest, children: /* @__PURE__ */ jsx286(HeadContext.Provider, { value: true, children }) });
|
|
12524
12580
|
}
|
|
12525
12581
|
);
|
|
12526
12582
|
Head.displayName = "Table.Head";
|
|
12527
12583
|
var HeadContext = createContext9(false);
|
|
12528
12584
|
function useIsInTableHead() {
|
|
12529
|
-
const isInTableHead =
|
|
12585
|
+
const isInTableHead = useContext13(HeadContext);
|
|
12530
12586
|
return isInTableHead;
|
|
12531
12587
|
}
|
|
12532
12588
|
|
|
@@ -12556,7 +12612,7 @@ var Table_default = {
|
|
|
12556
12612
|
};
|
|
12557
12613
|
|
|
12558
12614
|
// src/components/Table/normal/Cell.tsx
|
|
12559
|
-
import { jsx as
|
|
12615
|
+
import { jsx as jsx287 } from "react/jsx-runtime";
|
|
12560
12616
|
var Cell = forwardRef94(
|
|
12561
12617
|
({
|
|
12562
12618
|
children,
|
|
@@ -12570,7 +12626,7 @@ var Cell = forwardRef94(
|
|
|
12570
12626
|
const type = _type != null ? _type : isInHead ? "head" : "data";
|
|
12571
12627
|
const { isCollapsibleChild } = collapsibleProps != null ? collapsibleProps : {};
|
|
12572
12628
|
const isComplexLayout = layout === "text and icon";
|
|
12573
|
-
return isCollapsibleChild ? /* @__PURE__ */
|
|
12629
|
+
return isCollapsibleChild ? /* @__PURE__ */ jsx287(DescriptionListDesc, { children }) : type === "head" ? /* @__PURE__ */ jsx287(
|
|
12574
12630
|
"th",
|
|
12575
12631
|
{
|
|
12576
12632
|
ref,
|
|
@@ -12580,15 +12636,15 @@ var Cell = forwardRef94(
|
|
|
12580
12636
|
!isComplexLayout && Table_default[`cell--${layout}`],
|
|
12581
12637
|
Table_default["cell--head"]
|
|
12582
12638
|
),
|
|
12583
|
-
children: isComplexLayout ? /* @__PURE__ */
|
|
12639
|
+
children: isComplexLayout ? /* @__PURE__ */ jsx287("div", { className: Table_default.cell__inner, children }) : children
|
|
12584
12640
|
}
|
|
12585
|
-
) : /* @__PURE__ */
|
|
12641
|
+
) : /* @__PURE__ */ jsx287(
|
|
12586
12642
|
"td",
|
|
12587
12643
|
{
|
|
12588
12644
|
ref,
|
|
12589
12645
|
...rest,
|
|
12590
12646
|
className: cn(className, !isComplexLayout && Table_default[`cell--${layout}`]),
|
|
12591
|
-
children: isComplexLayout ? /* @__PURE__ */
|
|
12647
|
+
children: isComplexLayout ? /* @__PURE__ */ jsx287("div", { className: Table_default.cell__inner, children }) : children
|
|
12592
12648
|
}
|
|
12593
12649
|
);
|
|
12594
12650
|
}
|
|
@@ -12597,22 +12653,22 @@ Cell.displayName = "Table.Cell";
|
|
|
12597
12653
|
|
|
12598
12654
|
// src/components/Table/normal/Foot.tsx
|
|
12599
12655
|
import { forwardRef as forwardRef95 } from "react";
|
|
12600
|
-
import { jsx as
|
|
12656
|
+
import { jsx as jsx288 } from "react/jsx-runtime";
|
|
12601
12657
|
var Foot = forwardRef95(
|
|
12602
12658
|
(props, ref) => {
|
|
12603
|
-
return /* @__PURE__ */
|
|
12659
|
+
return /* @__PURE__ */ jsx288("tfoot", { ref, ...props });
|
|
12604
12660
|
}
|
|
12605
12661
|
);
|
|
12606
12662
|
Foot.displayName = "Table.Foot";
|
|
12607
12663
|
|
|
12608
12664
|
// src/components/Table/normal/Row.tsx
|
|
12609
12665
|
import { forwardRef as forwardRef96 } from "react";
|
|
12610
|
-
import { jsx as
|
|
12666
|
+
import { jsx as jsx289 } from "react/jsx-runtime";
|
|
12611
12667
|
var Row = forwardRef96(
|
|
12612
12668
|
({ type: _type, mode = "normal", hoverable, selected, className, ...rest }, ref) => {
|
|
12613
12669
|
const isInHeader = useIsInTableHead();
|
|
12614
12670
|
const type = _type != null ? _type : isInHeader ? "head" : "body";
|
|
12615
|
-
return /* @__PURE__ */
|
|
12671
|
+
return /* @__PURE__ */ jsx289(
|
|
12616
12672
|
"tr",
|
|
12617
12673
|
{
|
|
12618
12674
|
ref,
|
|
@@ -12636,15 +12692,15 @@ Row.displayName = "Table.Row";
|
|
|
12636
12692
|
|
|
12637
12693
|
// src/components/Table/normal/SortCell.tsx
|
|
12638
12694
|
import { forwardRef as forwardRef97 } from "react";
|
|
12639
|
-
import { jsx as
|
|
12695
|
+
import { jsx as jsx290, jsxs as jsxs74 } from "react/jsx-runtime";
|
|
12640
12696
|
var makeSortIcon = (isSorted, sortOrder) => {
|
|
12641
12697
|
if (!isSorted || !sortOrder) {
|
|
12642
|
-
return /* @__PURE__ */
|
|
12698
|
+
return /* @__PURE__ */ jsx290(Icon, { icon: UnfoldMoreIcon, iconSize: "inherit" });
|
|
12643
12699
|
}
|
|
12644
|
-
return sortOrder === "ascending" ? /* @__PURE__ */
|
|
12700
|
+
return sortOrder === "ascending" ? /* @__PURE__ */ jsx290(Icon, { icon: ChevronDownIcon, iconSize: "inherit" }) : /* @__PURE__ */ jsx290(Icon, { icon: ChevronUpIcon, iconSize: "inherit" });
|
|
12645
12701
|
};
|
|
12646
12702
|
var SortCell = forwardRef97(
|
|
12647
|
-
({ isSorted, sortOrder, onClick, children, ...rest }, ref) => /* @__PURE__ */
|
|
12703
|
+
({ isSorted, sortOrder, onClick, children, ...rest }, ref) => /* @__PURE__ */ jsx290(
|
|
12648
12704
|
Cell,
|
|
12649
12705
|
{
|
|
12650
12706
|
ref,
|
|
@@ -12676,7 +12732,7 @@ SortCell.displayName = "Table.SortCell";
|
|
|
12676
12732
|
|
|
12677
12733
|
// src/components/Table/normal/Table.tsx
|
|
12678
12734
|
import { forwardRef as forwardRef98 } from "react";
|
|
12679
|
-
import { jsx as
|
|
12735
|
+
import { jsx as jsx291 } from "react/jsx-runtime";
|
|
12680
12736
|
function getDensityCn2(value) {
|
|
12681
12737
|
switch (value) {
|
|
12682
12738
|
case "normal":
|
|
@@ -12695,7 +12751,7 @@ var Table = forwardRef98(
|
|
|
12695
12751
|
children,
|
|
12696
12752
|
...rest
|
|
12697
12753
|
}, ref) => {
|
|
12698
|
-
return /* @__PURE__ */
|
|
12754
|
+
return /* @__PURE__ */ jsx291(
|
|
12699
12755
|
"table",
|
|
12700
12756
|
{
|
|
12701
12757
|
ref,
|
|
@@ -12717,7 +12773,7 @@ Table.displayName = "Table";
|
|
|
12717
12773
|
|
|
12718
12774
|
// src/components/Table/normal/TableWrapper.tsx
|
|
12719
12775
|
import { useEffect as useEffect27, useRef as useRef33, useState as useState26 } from "react";
|
|
12720
|
-
import { jsx as
|
|
12776
|
+
import { jsx as jsx292 } from "react/jsx-runtime";
|
|
12721
12777
|
var TableWrapper = ({ className, ...rest }) => {
|
|
12722
12778
|
const [overflowX, setOverflowX] = useState26(false);
|
|
12723
12779
|
const [windowWidth, setWindowWidth] = useState26(window.innerWidth);
|
|
@@ -12739,7 +12795,7 @@ var TableWrapper = ({ className, ...rest }) => {
|
|
|
12739
12795
|
window.addEventListener("resize", handleResize);
|
|
12740
12796
|
return () => window.removeEventListener("resize", handleResize);
|
|
12741
12797
|
});
|
|
12742
|
-
return /* @__PURE__ */
|
|
12798
|
+
return /* @__PURE__ */ jsx292(
|
|
12743
12799
|
"div",
|
|
12744
12800
|
{
|
|
12745
12801
|
ref: wrapperRef,
|
|
@@ -12766,7 +12822,7 @@ Table2.Row = Row;
|
|
|
12766
12822
|
Table2.Foot = Foot;
|
|
12767
12823
|
|
|
12768
12824
|
// src/components/Table/collapsible/CollapsibleRow.tsx
|
|
12769
|
-
import { Fragment as Fragment14, jsx as
|
|
12825
|
+
import { Fragment as Fragment14, jsx as jsx293, jsxs as jsxs75 } from "react/jsx-runtime";
|
|
12770
12826
|
var CollapsibleRow = forwardRef99(
|
|
12771
12827
|
({
|
|
12772
12828
|
type: _type,
|
|
@@ -12809,23 +12865,23 @@ var CollapsibleRow = forwardRef99(
|
|
|
12809
12865
|
const id = derivativeIdGenerator(prefix3, index.toString());
|
|
12810
12866
|
collapsibleIds.push(id);
|
|
12811
12867
|
return /* @__PURE__ */ jsxs75(Fragment13, { children: [
|
|
12812
|
-
/* @__PURE__ */
|
|
12868
|
+
/* @__PURE__ */ jsx293(DescriptionListTerm, { children: collapsedHeaderValues[index].content }),
|
|
12813
12869
|
isValidElement9(child) && cloneElement8(child, {
|
|
12814
12870
|
collapsibleProps: { isCollapsibleChild: true }
|
|
12815
12871
|
})
|
|
12816
12872
|
] }, `DL-${index}`);
|
|
12817
12873
|
}) : null;
|
|
12818
|
-
const collapsedRows = collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */
|
|
12874
|
+
const collapsedRows = collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ jsx293(Row, { ...rowProps(), children: /* @__PURE__ */ jsx293(Cell, { colSpan: definingColumnIndex.length + 1, children: /* @__PURE__ */ jsx293(DescriptionList, { children: collapsedRenderedChildren }) }) }) : null;
|
|
12819
12875
|
const definingColumnCells = childrenArray.slice().filter((column2, index) => definingColumnIndex.indexOf(index) > -1).sort((a2, b) => {
|
|
12820
12876
|
return definingColumnIndex.indexOf(childrenArray.indexOf(a2)) - definingColumnIndex.indexOf(childrenArray.indexOf(b));
|
|
12821
12877
|
});
|
|
12822
12878
|
const headerRow = () => {
|
|
12823
12879
|
if (type !== "head" || !isCollapsed) return null;
|
|
12824
|
-
return /* @__PURE__ */
|
|
12880
|
+
return /* @__PURE__ */ jsx293(Row, { ref, ...rowProps(), children: /* @__PURE__ */ jsxs75(Fragment14, { children: [
|
|
12825
12881
|
definingColumnCells,
|
|
12826
12882
|
/* @__PURE__ */ jsxs75(Table2.Cell, { type: "head", layout: "center", children: [
|
|
12827
12883
|
"Utvid",
|
|
12828
|
-
/* @__PURE__ */
|
|
12884
|
+
/* @__PURE__ */ jsx293(VisuallyHidden, { as: "span", children: "raden" })
|
|
12829
12885
|
] })
|
|
12830
12886
|
] }) });
|
|
12831
12887
|
};
|
|
@@ -12834,7 +12890,7 @@ var CollapsibleRow = forwardRef99(
|
|
|
12834
12890
|
if (type !== "body" || !isCollapsed) return null;
|
|
12835
12891
|
return /* @__PURE__ */ jsxs75(Row, { ref, ...rowProps(!childrenCollapsed && true), children: [
|
|
12836
12892
|
definingColumnCells,
|
|
12837
|
-
/* @__PURE__ */
|
|
12893
|
+
/* @__PURE__ */ jsx293(Table2.Cell, { children: /* @__PURE__ */ jsx293(
|
|
12838
12894
|
"button",
|
|
12839
12895
|
{
|
|
12840
12896
|
onClick: () => setChildrenCollapsed(!childrenCollapsed),
|
|
@@ -12846,7 +12902,7 @@ var CollapsibleRow = forwardRef99(
|
|
|
12846
12902
|
utilStyles_default["remove-button-styling"],
|
|
12847
12903
|
focusable
|
|
12848
12904
|
),
|
|
12849
|
-
children: /* @__PURE__ */
|
|
12905
|
+
children: /* @__PURE__ */ jsx293(
|
|
12850
12906
|
AnimatedChevronUpDown,
|
|
12851
12907
|
{
|
|
12852
12908
|
isUp: childrenCollapsed ? false : true,
|
|
@@ -12864,14 +12920,14 @@ var CollapsibleRow = forwardRef99(
|
|
|
12864
12920
|
rowWithChevron(),
|
|
12865
12921
|
childrenCollapsed ? null : collapsedRows
|
|
12866
12922
|
] })
|
|
12867
|
-
] }) : /* @__PURE__ */
|
|
12923
|
+
] }) : /* @__PURE__ */ jsx293(Row, { ref, ...rowProps(), children });
|
|
12868
12924
|
}
|
|
12869
12925
|
);
|
|
12870
12926
|
CollapsibleRow.displayName = "CollapsibleTable.Row";
|
|
12871
12927
|
|
|
12872
12928
|
// src/components/Table/collapsible/CollapsibleTable.tsx
|
|
12873
12929
|
import { forwardRef as forwardRef100 } from "react";
|
|
12874
|
-
import { jsx as
|
|
12930
|
+
import { jsx as jsx294 } from "react/jsx-runtime";
|
|
12875
12931
|
var CollapsibleTable = forwardRef100((props, ref) => {
|
|
12876
12932
|
const {
|
|
12877
12933
|
isCollapsed,
|
|
@@ -12879,7 +12935,7 @@ var CollapsibleTable = forwardRef100((props, ref) => {
|
|
|
12879
12935
|
definingColumnIndex = [0],
|
|
12880
12936
|
...rest
|
|
12881
12937
|
} = props;
|
|
12882
|
-
return /* @__PURE__ */
|
|
12938
|
+
return /* @__PURE__ */ jsx294(
|
|
12883
12939
|
CollapsibleTableContext.Provider,
|
|
12884
12940
|
{
|
|
12885
12941
|
value: {
|
|
@@ -12887,7 +12943,7 @@ var CollapsibleTable = forwardRef100((props, ref) => {
|
|
|
12887
12943
|
headerValues,
|
|
12888
12944
|
definingColumnIndex
|
|
12889
12945
|
},
|
|
12890
|
-
children: /* @__PURE__ */
|
|
12946
|
+
children: /* @__PURE__ */ jsx294(Table2, { ref, ...rest })
|
|
12891
12947
|
}
|
|
12892
12948
|
);
|
|
12893
12949
|
});
|
|
@@ -12907,7 +12963,7 @@ import {
|
|
|
12907
12963
|
} from "react";
|
|
12908
12964
|
|
|
12909
12965
|
// src/components/Tabs/Tabs.context.tsx
|
|
12910
|
-
import { createContext as createContext10, useContext as
|
|
12966
|
+
import { createContext as createContext10, useContext as useContext14 } from "react";
|
|
12911
12967
|
var TabsContext = createContext10({
|
|
12912
12968
|
activeTab: 0,
|
|
12913
12969
|
tabsId: "",
|
|
@@ -12918,7 +12974,7 @@ var TabsContext = createContext10({
|
|
|
12918
12974
|
setHasTabFocus: () => null,
|
|
12919
12975
|
tabContentDirection: "row"
|
|
12920
12976
|
});
|
|
12921
|
-
var useTabsContext = () =>
|
|
12977
|
+
var useTabsContext = () => useContext14(TabsContext);
|
|
12922
12978
|
|
|
12923
12979
|
// src/components/Tabs/Tabs.module.css
|
|
12924
12980
|
var Tabs_default = {
|
|
@@ -12934,7 +12990,7 @@ var Tabs_default = {
|
|
|
12934
12990
|
};
|
|
12935
12991
|
|
|
12936
12992
|
// src/components/Tabs/Tabs.tsx
|
|
12937
|
-
import { jsx as
|
|
12993
|
+
import { jsx as jsx295 } from "react/jsx-runtime";
|
|
12938
12994
|
var Tabs = forwardRef101((props, ref) => {
|
|
12939
12995
|
const {
|
|
12940
12996
|
id,
|
|
@@ -12966,7 +13022,7 @@ var Tabs = forwardRef101((props, ref) => {
|
|
|
12966
13022
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
12967
13023
|
["--dds-tabs-width"]: width
|
|
12968
13024
|
};
|
|
12969
|
-
return /* @__PURE__ */
|
|
13025
|
+
return /* @__PURE__ */ jsx295(
|
|
12970
13026
|
TabsContext.Provider,
|
|
12971
13027
|
{
|
|
12972
13028
|
value: {
|
|
@@ -12979,7 +13035,7 @@ var Tabs = forwardRef101((props, ref) => {
|
|
|
12979
13035
|
setHasTabFocus,
|
|
12980
13036
|
tabContentDirection
|
|
12981
13037
|
},
|
|
12982
|
-
children: /* @__PURE__ */
|
|
13038
|
+
children: /* @__PURE__ */ jsx295(
|
|
12983
13039
|
"div",
|
|
12984
13040
|
{
|
|
12985
13041
|
ref,
|
|
@@ -13009,16 +13065,16 @@ import {
|
|
|
13009
13065
|
// src/components/Tabs/TabWidthContext.tsx
|
|
13010
13066
|
import {
|
|
13011
13067
|
createContext as createContext11,
|
|
13012
|
-
useContext as
|
|
13068
|
+
useContext as useContext15,
|
|
13013
13069
|
useLayoutEffect as useLayoutEffect3
|
|
13014
13070
|
} from "react";
|
|
13015
|
-
import { jsx as
|
|
13071
|
+
import { jsx as jsx296 } from "react/jsx-runtime";
|
|
13016
13072
|
var TabContext = createContext11(null);
|
|
13017
13073
|
function TabWidthContextProvider({
|
|
13018
13074
|
children,
|
|
13019
13075
|
onChangeWidths
|
|
13020
13076
|
}) {
|
|
13021
|
-
return /* @__PURE__ */
|
|
13077
|
+
return /* @__PURE__ */ jsx296(
|
|
13022
13078
|
TabContext.Provider,
|
|
13023
13079
|
{
|
|
13024
13080
|
value: {
|
|
@@ -13042,7 +13098,7 @@ function TabWidthContextProvider({
|
|
|
13042
13098
|
);
|
|
13043
13099
|
}
|
|
13044
13100
|
function useSetTabWidth(index, width) {
|
|
13045
|
-
const context =
|
|
13101
|
+
const context = useContext15(TabContext);
|
|
13046
13102
|
useLayoutEffect3(() => {
|
|
13047
13103
|
context == null ? void 0 : context.updateWidth(index, width);
|
|
13048
13104
|
return () => context == null ? void 0 : context.removeTab(index);
|
|
@@ -13050,7 +13106,7 @@ function useSetTabWidth(index, width) {
|
|
|
13050
13106
|
}
|
|
13051
13107
|
|
|
13052
13108
|
// src/components/Tabs/Tab.tsx
|
|
13053
|
-
import { jsx as
|
|
13109
|
+
import { jsx as jsx297, jsxs as jsxs76 } from "react/jsx-runtime";
|
|
13054
13110
|
var Tab = forwardRef102((props, ref) => {
|
|
13055
13111
|
const {
|
|
13056
13112
|
active = false,
|
|
@@ -13113,8 +13169,8 @@ var Tab = forwardRef102((props, ref) => {
|
|
|
13113
13169
|
onKeyDown: handleOnKeyDown,
|
|
13114
13170
|
tabIndex: focus ? 0 : -1,
|
|
13115
13171
|
children: [
|
|
13116
|
-
icon && /* @__PURE__ */
|
|
13117
|
-
/* @__PURE__ */
|
|
13172
|
+
icon && /* @__PURE__ */ jsx297(Icon, { icon, iconSize: "inherit" }),
|
|
13173
|
+
/* @__PURE__ */ jsx297("span", { children })
|
|
13118
13174
|
]
|
|
13119
13175
|
}
|
|
13120
13176
|
);
|
|
@@ -13129,7 +13185,7 @@ import {
|
|
|
13129
13185
|
isValidElement as isValidElement10,
|
|
13130
13186
|
useState as useState29
|
|
13131
13187
|
} from "react";
|
|
13132
|
-
import { jsx as
|
|
13188
|
+
import { jsx as jsx298 } from "react/jsx-runtime";
|
|
13133
13189
|
var TabList = forwardRef103(
|
|
13134
13190
|
({ children, id, style, onFocus, ...rest }, ref) => {
|
|
13135
13191
|
const {
|
|
@@ -13173,7 +13229,7 @@ var TabList = forwardRef103(
|
|
|
13173
13229
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13174
13230
|
["--dds-tab-widths"]: widths.join(" ")
|
|
13175
13231
|
};
|
|
13176
|
-
return /* @__PURE__ */
|
|
13232
|
+
return /* @__PURE__ */ jsx298(TabWidthContextProvider, { onChangeWidths: setWidths, children: /* @__PURE__ */ jsx298(
|
|
13177
13233
|
"div",
|
|
13178
13234
|
{
|
|
13179
13235
|
...rest,
|
|
@@ -13200,10 +13256,10 @@ TabList.displayName = "TabList";
|
|
|
13200
13256
|
|
|
13201
13257
|
// src/components/Tabs/TabPanel.tsx
|
|
13202
13258
|
import { forwardRef as forwardRef104 } from "react";
|
|
13203
|
-
import { jsx as
|
|
13259
|
+
import { jsx as jsx299 } from "react/jsx-runtime";
|
|
13204
13260
|
var TabPanel = forwardRef104(
|
|
13205
13261
|
({ active = false, children, id, className, htmlProps, ...rest }, ref) => {
|
|
13206
|
-
return /* @__PURE__ */
|
|
13262
|
+
return /* @__PURE__ */ jsx299(
|
|
13207
13263
|
"div",
|
|
13208
13264
|
{
|
|
13209
13265
|
...getBaseHTMLProps(
|
|
@@ -13230,7 +13286,7 @@ import {
|
|
|
13230
13286
|
forwardRef as forwardRef105,
|
|
13231
13287
|
isValidElement as isValidElement11
|
|
13232
13288
|
} from "react";
|
|
13233
|
-
import { jsx as
|
|
13289
|
+
import { jsx as jsx300 } from "react/jsx-runtime";
|
|
13234
13290
|
var TabPanels = forwardRef105(
|
|
13235
13291
|
({ children, ...rest }, ref) => {
|
|
13236
13292
|
const { activeTab, tabsId, tabPanelsRef } = useTabsContext();
|
|
@@ -13244,7 +13300,7 @@ var TabPanels = forwardRef105(
|
|
|
13244
13300
|
"aria-expanded": active
|
|
13245
13301
|
});
|
|
13246
13302
|
});
|
|
13247
|
-
return /* @__PURE__ */
|
|
13303
|
+
return /* @__PURE__ */ jsx300("div", { ref: combinedRef, ...rest, children: panelChildren });
|
|
13248
13304
|
}
|
|
13249
13305
|
);
|
|
13250
13306
|
TabPanels.displayName = "TabPanels";
|
|
@@ -13269,7 +13325,7 @@ var Tag_default = {
|
|
|
13269
13325
|
};
|
|
13270
13326
|
|
|
13271
13327
|
// src/components/Tag/Tag.tsx
|
|
13272
|
-
import { jsx as
|
|
13328
|
+
import { jsx as jsx301, jsxs as jsxs77 } from "react/jsx-runtime";
|
|
13273
13329
|
var icons3 = {
|
|
13274
13330
|
info: InfoIcon,
|
|
13275
13331
|
danger: ErrorIcon,
|
|
@@ -13307,8 +13363,8 @@ var Tag = forwardRef106((props, ref) => {
|
|
|
13307
13363
|
),
|
|
13308
13364
|
ref,
|
|
13309
13365
|
children: [
|
|
13310
|
-
withIcon && icon && /* @__PURE__ */
|
|
13311
|
-
/* @__PURE__ */
|
|
13366
|
+
withIcon && icon && /* @__PURE__ */ jsx301(Icon, { icon, iconSize: "small" }),
|
|
13367
|
+
/* @__PURE__ */ jsx301(TextOverflowEllipsisInner, { children: children != null ? children : text })
|
|
13312
13368
|
]
|
|
13313
13369
|
}
|
|
13314
13370
|
);
|
|
@@ -13349,7 +13405,7 @@ var TextInput_default = {
|
|
|
13349
13405
|
};
|
|
13350
13406
|
|
|
13351
13407
|
// src/components/TextInput/TextInput.tsx
|
|
13352
|
-
import { jsx as
|
|
13408
|
+
import { jsx as jsx302, jsxs as jsxs78 } from "react/jsx-runtime";
|
|
13353
13409
|
var TextInput = forwardRef107(
|
|
13354
13410
|
({
|
|
13355
13411
|
label,
|
|
@@ -13445,7 +13501,7 @@ var TextInput = forwardRef107(
|
|
|
13445
13501
|
className: cn(TextInput_default["input-width"], Input_default["input-group"]),
|
|
13446
13502
|
style: styleVariables,
|
|
13447
13503
|
children: [
|
|
13448
|
-
/* @__PURE__ */
|
|
13504
|
+
/* @__PURE__ */ jsx302(
|
|
13449
13505
|
Icon,
|
|
13450
13506
|
{
|
|
13451
13507
|
icon,
|
|
@@ -13456,7 +13512,7 @@ var TextInput = forwardRef107(
|
|
|
13456
13512
|
)
|
|
13457
13513
|
}
|
|
13458
13514
|
),
|
|
13459
|
-
/* @__PURE__ */
|
|
13515
|
+
/* @__PURE__ */ jsx302(
|
|
13460
13516
|
StatefulInput,
|
|
13461
13517
|
{
|
|
13462
13518
|
ref,
|
|
@@ -13481,7 +13537,7 @@ var TextInput = forwardRef107(
|
|
|
13481
13537
|
className: cn(TextInput_default["affix-container"], TextInput_default["input-width"]),
|
|
13482
13538
|
style: styleVariables,
|
|
13483
13539
|
children: [
|
|
13484
|
-
prefix3 && /* @__PURE__ */
|
|
13540
|
+
prefix3 && /* @__PURE__ */ jsx302(
|
|
13485
13541
|
"span",
|
|
13486
13542
|
{
|
|
13487
13543
|
ref: prefixRef,
|
|
@@ -13494,7 +13550,7 @@ var TextInput = forwardRef107(
|
|
|
13494
13550
|
children: prefix3
|
|
13495
13551
|
}
|
|
13496
13552
|
),
|
|
13497
|
-
/* @__PURE__ */
|
|
13553
|
+
/* @__PURE__ */ jsx302(
|
|
13498
13554
|
StatefulInput,
|
|
13499
13555
|
{
|
|
13500
13556
|
ref,
|
|
@@ -13509,7 +13565,7 @@ var TextInput = forwardRef107(
|
|
|
13509
13565
|
className: TextInput_default["input--extended"]
|
|
13510
13566
|
}
|
|
13511
13567
|
),
|
|
13512
|
-
suffix && /* @__PURE__ */
|
|
13568
|
+
suffix && /* @__PURE__ */ jsx302(
|
|
13513
13569
|
"span",
|
|
13514
13570
|
{
|
|
13515
13571
|
ref: suffixRef,
|
|
@@ -13538,7 +13594,7 @@ var TextInput = forwardRef107(
|
|
|
13538
13594
|
),
|
|
13539
13595
|
style,
|
|
13540
13596
|
children: [
|
|
13541
|
-
hasLabel && /* @__PURE__ */
|
|
13597
|
+
hasLabel && /* @__PURE__ */ jsx302(
|
|
13542
13598
|
Label,
|
|
13543
13599
|
{
|
|
13544
13600
|
htmlFor: uniqueId,
|
|
@@ -13548,7 +13604,7 @@ var TextInput = forwardRef107(
|
|
|
13548
13604
|
children: label
|
|
13549
13605
|
}
|
|
13550
13606
|
),
|
|
13551
|
-
extendedInput ? extendedInput : /* @__PURE__ */
|
|
13607
|
+
extendedInput ? extendedInput : /* @__PURE__ */ jsx302(
|
|
13552
13608
|
StatefulInput,
|
|
13553
13609
|
{
|
|
13554
13610
|
ref,
|
|
@@ -13580,11 +13636,11 @@ TextInput.displayName = "TextInput";
|
|
|
13580
13636
|
import { useId as useId27, useState as useState31 } from "react";
|
|
13581
13637
|
|
|
13582
13638
|
// src/components/ToggleBar/ToggleBar.context.tsx
|
|
13583
|
-
import { createContext as createContext12, useContext as
|
|
13639
|
+
import { createContext as createContext12, useContext as useContext16 } from "react";
|
|
13584
13640
|
var ToggleBarContext = createContext12({
|
|
13585
13641
|
size: "medium"
|
|
13586
13642
|
});
|
|
13587
|
-
var useToggleBarContext = () =>
|
|
13643
|
+
var useToggleBarContext = () => useContext16(ToggleBarContext);
|
|
13588
13644
|
|
|
13589
13645
|
// src/components/ToggleBar/ToggleBar.module.css
|
|
13590
13646
|
var ToggleBar_default = {
|
|
@@ -13603,7 +13659,7 @@ var ToggleBar_default = {
|
|
|
13603
13659
|
};
|
|
13604
13660
|
|
|
13605
13661
|
// src/components/ToggleBar/ToggleBar.tsx
|
|
13606
|
-
import { jsx as
|
|
13662
|
+
import { jsx as jsx303, jsxs as jsxs79 } from "react/jsx-runtime";
|
|
13607
13663
|
var ToggleBar = (props) => {
|
|
13608
13664
|
const {
|
|
13609
13665
|
children,
|
|
@@ -13626,7 +13682,7 @@ var ToggleBar = (props) => {
|
|
|
13626
13682
|
(e) => onChange && onChange(e, e.target.value)
|
|
13627
13683
|
);
|
|
13628
13684
|
const labelId = label && `${uniqueId}-label`;
|
|
13629
|
-
return /* @__PURE__ */
|
|
13685
|
+
return /* @__PURE__ */ jsx303(
|
|
13630
13686
|
ToggleBarContext.Provider,
|
|
13631
13687
|
{
|
|
13632
13688
|
value: {
|
|
@@ -13648,8 +13704,8 @@ var ToggleBar = (props) => {
|
|
|
13648
13704
|
role: "radiogroup",
|
|
13649
13705
|
"aria-labelledby": labelId != null ? labelId : htmlProps == null ? void 0 : htmlProps["aria-labelledby"],
|
|
13650
13706
|
children: [
|
|
13651
|
-
label && /* @__PURE__ */
|
|
13652
|
-
/* @__PURE__ */
|
|
13707
|
+
label && /* @__PURE__ */ jsx303(Label, { id: labelId, children: label }),
|
|
13708
|
+
/* @__PURE__ */ jsx303("div", { className: ToggleBar_default.bar, children })
|
|
13653
13709
|
]
|
|
13654
13710
|
}
|
|
13655
13711
|
)
|
|
@@ -13663,7 +13719,7 @@ import {
|
|
|
13663
13719
|
forwardRef as forwardRef108,
|
|
13664
13720
|
useId as useId28
|
|
13665
13721
|
} from "react";
|
|
13666
|
-
import { jsx as
|
|
13722
|
+
import { jsx as jsx304, jsxs as jsxs80 } from "react/jsx-runtime";
|
|
13667
13723
|
var typographyTypes4 = {
|
|
13668
13724
|
large: "bodySans04",
|
|
13669
13725
|
medium: "bodySans02",
|
|
@@ -13705,7 +13761,7 @@ var ToggleRadio = forwardRef108(
|
|
|
13705
13761
|
};
|
|
13706
13762
|
const contentTypeCn = label ? "with-text" : "just-icon";
|
|
13707
13763
|
return /* @__PURE__ */ jsxs80("label", { htmlFor: uniqueId, className: ToggleBar_default.label, children: [
|
|
13708
|
-
/* @__PURE__ */
|
|
13764
|
+
/* @__PURE__ */ jsx304(
|
|
13709
13765
|
"input",
|
|
13710
13766
|
{
|
|
13711
13767
|
...getBaseHTMLProps(
|
|
@@ -13739,8 +13795,8 @@ var ToggleRadio = forwardRef108(
|
|
|
13739
13795
|
focus_default["focus-styled-sibling"]
|
|
13740
13796
|
),
|
|
13741
13797
|
children: [
|
|
13742
|
-
icon && /* @__PURE__ */
|
|
13743
|
-
label && /* @__PURE__ */
|
|
13798
|
+
icon && /* @__PURE__ */ jsx304(Icon, { icon, iconSize: "inherit" }),
|
|
13799
|
+
label && /* @__PURE__ */ jsx304("span", { children: label })
|
|
13744
13800
|
]
|
|
13745
13801
|
}
|
|
13746
13802
|
)
|
|
@@ -13764,14 +13820,14 @@ var ToggleButton_default = {
|
|
|
13764
13820
|
};
|
|
13765
13821
|
|
|
13766
13822
|
// src/components/ToggleButton/ToggleButton.tsx
|
|
13767
|
-
import { jsx as
|
|
13823
|
+
import { jsx as jsx305, jsxs as jsxs81 } from "react/jsx-runtime";
|
|
13768
13824
|
var ToggleButton = forwardRef109(
|
|
13769
13825
|
({ id, label, icon, className, htmlProps, ...rest }, ref) => {
|
|
13770
13826
|
const generatedId = useId29();
|
|
13771
13827
|
const uniqueId = id != null ? id : `${generatedId}-toggleButton`;
|
|
13772
13828
|
const hasIcon = !!icon;
|
|
13773
13829
|
return /* @__PURE__ */ jsxs81("label", { htmlFor: uniqueId, className: ToggleButton_default.container, children: [
|
|
13774
|
-
/* @__PURE__ */
|
|
13830
|
+
/* @__PURE__ */ jsx305(
|
|
13775
13831
|
"input",
|
|
13776
13832
|
{
|
|
13777
13833
|
...getBaseHTMLProps(
|
|
@@ -13798,7 +13854,7 @@ var ToggleButton = forwardRef109(
|
|
|
13798
13854
|
focus_default["focus-styled-sibling"]
|
|
13799
13855
|
),
|
|
13800
13856
|
children: [
|
|
13801
|
-
hasIcon && /* @__PURE__ */
|
|
13857
|
+
hasIcon && /* @__PURE__ */ jsx305(Icon, { icon, iconSize: "inherit" }),
|
|
13802
13858
|
" ",
|
|
13803
13859
|
label
|
|
13804
13860
|
]
|
|
@@ -13811,7 +13867,7 @@ ToggleButton.displayName = "ToggleButton";
|
|
|
13811
13867
|
|
|
13812
13868
|
// src/components/ToggleButton/ToggleButtonGroup.tsx
|
|
13813
13869
|
import { useId as useId30 } from "react";
|
|
13814
|
-
import { jsx as
|
|
13870
|
+
import { jsx as jsx306, jsxs as jsxs82 } from "react/jsx-runtime";
|
|
13815
13871
|
var ToggleButtonGroup = (props) => {
|
|
13816
13872
|
const {
|
|
13817
13873
|
children,
|
|
@@ -13837,7 +13893,7 @@ var ToggleButtonGroup = (props) => {
|
|
|
13837
13893
|
role: "group",
|
|
13838
13894
|
"aria-labelledby": label ? uniqueLabelId : void 0,
|
|
13839
13895
|
children: [
|
|
13840
|
-
!!label && /* @__PURE__ */
|
|
13896
|
+
!!label && /* @__PURE__ */ jsx306(
|
|
13841
13897
|
Typography,
|
|
13842
13898
|
{
|
|
13843
13899
|
as: "span",
|
|
@@ -13846,7 +13902,7 @@ var ToggleButtonGroup = (props) => {
|
|
|
13846
13902
|
children: label
|
|
13847
13903
|
}
|
|
13848
13904
|
),
|
|
13849
|
-
/* @__PURE__ */
|
|
13905
|
+
/* @__PURE__ */ jsx306("div", { className: cn(ToggleButton_default.group, ToggleButton_default[`group--${direction}`]), children })
|
|
13850
13906
|
]
|
|
13851
13907
|
}
|
|
13852
13908
|
);
|