@norges-domstoler/dds-components 17.5.3 → 17.6.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 +27 -21
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +15 -2
- package/dist/index.d.ts +15 -2
- package/dist/index.js +1127 -1351
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +699 -923
- 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
|
);
|
|
@@ -5439,6 +5449,7 @@ var CardAccordion_default = {
|
|
|
5439
5449
|
container: "CardAccordion_container",
|
|
5440
5450
|
"header-button": "CardAccordion_header-button",
|
|
5441
5451
|
"header-container": "CardAccordion_header-container",
|
|
5452
|
+
"header-container__chevron": "CardAccordion_header-container__chevron",
|
|
5442
5453
|
body: "CardAccordion_body",
|
|
5443
5454
|
body__content: "CardAccordion_body__content"
|
|
5444
5455
|
};
|
|
@@ -5542,14 +5553,23 @@ var CardAccordionHeader = forwardRef30((props, ref) => {
|
|
|
5542
5553
|
),
|
|
5543
5554
|
children: [
|
|
5544
5555
|
/* @__PURE__ */ jsx199("div", { className: AccordionBase_default.header__content, children }),
|
|
5545
|
-
/* @__PURE__ */ jsx199(
|
|
5546
|
-
|
|
5556
|
+
/* @__PURE__ */ jsx199(
|
|
5557
|
+
"span",
|
|
5547
5558
|
{
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
-
|
|
5559
|
+
className: cn(
|
|
5560
|
+
AccordionBase_default.header__chevron,
|
|
5561
|
+
CardAccordion_default["header-container__chevron"]
|
|
5562
|
+
),
|
|
5563
|
+
children: /* @__PURE__ */ jsx199(
|
|
5564
|
+
AnimatedChevronUpDown,
|
|
5565
|
+
{
|
|
5566
|
+
width: ddsTokens14.ddsIconSizeMedium,
|
|
5567
|
+
height: ddsTokens14.ddsSpacingX05,
|
|
5568
|
+
isUp: isExpanded
|
|
5569
|
+
}
|
|
5570
|
+
)
|
|
5551
5571
|
}
|
|
5552
|
-
)
|
|
5572
|
+
)
|
|
5553
5573
|
]
|
|
5554
5574
|
}
|
|
5555
5575
|
)
|
|
@@ -5712,7 +5732,7 @@ import {
|
|
|
5712
5732
|
import { useLocale as useLocale2 } from "@react-aria/i18n";
|
|
5713
5733
|
import { useCalendarState } from "@react-stately/calendar";
|
|
5714
5734
|
import {
|
|
5715
|
-
useContext as
|
|
5735
|
+
useContext as useContext6
|
|
5716
5736
|
} from "react";
|
|
5717
5737
|
|
|
5718
5738
|
// src/components/date-inputs/DatePicker/Calendar/CalendarGrid.tsx
|
|
@@ -5721,6 +5741,7 @@ import {
|
|
|
5721
5741
|
useCalendarGrid
|
|
5722
5742
|
} from "@react-aria/calendar";
|
|
5723
5743
|
import { useLocale } from "@react-aria/i18n";
|
|
5744
|
+
import { useContext as useContext5 } from "react";
|
|
5724
5745
|
|
|
5725
5746
|
// src/components/date-inputs/DatePicker/Calendar/CalendarCell.tsx
|
|
5726
5747
|
import { isToday } from "@internationalized/date";
|
|
@@ -5772,16 +5793,17 @@ import { jsx as jsx204 } from "react/jsx-runtime";
|
|
|
5772
5793
|
var CalendarPopoverContext = createContext3({
|
|
5773
5794
|
anchorRef: null,
|
|
5774
5795
|
isOpen: false,
|
|
5775
|
-
onClose: () => null
|
|
5796
|
+
onClose: () => null,
|
|
5797
|
+
showWeekNumbers: true
|
|
5776
5798
|
});
|
|
5777
5799
|
var CalendarPopover = ({
|
|
5778
5800
|
children,
|
|
5779
|
-
|
|
5780
|
-
|
|
5801
|
+
onClose,
|
|
5802
|
+
...props
|
|
5781
5803
|
}) => {
|
|
5782
5804
|
const anchorRef = useRef9(null);
|
|
5783
5805
|
useOnKeyDown("Escape", onClose);
|
|
5784
|
-
return /* @__PURE__ */ jsx204(CalendarPopoverContext.Provider, { value: { anchorRef,
|
|
5806
|
+
return /* @__PURE__ */ jsx204(CalendarPopoverContext.Provider, { value: { anchorRef, onClose, ...props }, children });
|
|
5785
5807
|
};
|
|
5786
5808
|
var CalendarPopoverAnchor = ({
|
|
5787
5809
|
children
|
|
@@ -5863,6 +5885,18 @@ function CalendarCell({ date, state }) {
|
|
|
5863
5885
|
}
|
|
5864
5886
|
CalendarCell.displayName = "CalendarCell";
|
|
5865
5887
|
|
|
5888
|
+
// src/components/VisuallyHidden/VisuallyHidden.tsx
|
|
5889
|
+
import { jsx as jsx206 } from "react/jsx-runtime";
|
|
5890
|
+
var VisuallyHidden = (props) => {
|
|
5891
|
+
const { id, className, htmlProps, as, ...rest } = props;
|
|
5892
|
+
const cl = cn(className, utilStyles_default["visually-hidden"]);
|
|
5893
|
+
if (as === "div") {
|
|
5894
|
+
return /* @__PURE__ */ jsx206("div", { ...getBaseHTMLProps(id, cl, htmlProps, rest) });
|
|
5895
|
+
}
|
|
5896
|
+
return /* @__PURE__ */ jsx206("span", { ...getBaseHTMLProps(id, cl, htmlProps, rest) });
|
|
5897
|
+
};
|
|
5898
|
+
VisuallyHidden.displayName = "VisuallyHidden";
|
|
5899
|
+
|
|
5866
5900
|
// src/components/date-inputs/utils/getWeekNumber.ts
|
|
5867
5901
|
import {
|
|
5868
5902
|
endOfYear,
|
|
@@ -5903,7 +5937,7 @@ function isLeapYear(date) {
|
|
|
5903
5937
|
}
|
|
5904
5938
|
|
|
5905
5939
|
// src/components/date-inputs/DatePicker/Calendar/CalendarGrid.tsx
|
|
5906
|
-
import { jsx as
|
|
5940
|
+
import { jsx as jsx207, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
5907
5941
|
function CalendarGrid({ state, ...props }) {
|
|
5908
5942
|
const { locale: locale2 } = useLocale();
|
|
5909
5943
|
const {
|
|
@@ -5912,6 +5946,7 @@ function CalendarGrid({ state, ...props }) {
|
|
|
5912
5946
|
} = useCalendarGrid(props, state);
|
|
5913
5947
|
const weeksInMonth = getWeeksInMonth(state.visibleRange.start, locale2);
|
|
5914
5948
|
const weekDays = ["Ma", "Ti", "On", "To", "Fr", "L\xF8", "S\xF8"];
|
|
5949
|
+
const { showWeekNumbers } = useContext5(CalendarPopoverContext);
|
|
5915
5950
|
const typographyCn = [
|
|
5916
5951
|
typographyStyles_default["supporting-style-tiny-02"],
|
|
5917
5952
|
typographyStyles_default["text-color--subtle"]
|
|
@@ -5928,24 +5963,30 @@ function CalendarGrid({ state, ...props }) {
|
|
|
5928
5963
|
},
|
|
5929
5964
|
cellPadding: "0",
|
|
5930
5965
|
children: [
|
|
5931
|
-
/* @__PURE__ */
|
|
5932
|
-
/* @__PURE__ */
|
|
5933
|
-
|
|
5966
|
+
/* @__PURE__ */ jsx207("thead", { ...headerProps, children: /* @__PURE__ */ jsxs34("tr", { children: [
|
|
5967
|
+
showWeekNumbers && /* @__PURE__ */ jsxs34("th", { className: cn(...typographyCn), children: [
|
|
5968
|
+
"# ",
|
|
5969
|
+
/* @__PURE__ */ jsx207(VisuallyHidden, { as: "span", children: "Ukenummer" })
|
|
5970
|
+
] }),
|
|
5971
|
+
weekDays.map((day, index) => /* @__PURE__ */ jsx207("th", { className: cn(...typographyCn), children: day }, index))
|
|
5934
5972
|
] }) }),
|
|
5935
|
-
/* @__PURE__ */
|
|
5973
|
+
/* @__PURE__ */ jsx207("tbody", { children: [...new Array(weeksInMonth).keys()].map((weekIndex) => {
|
|
5936
5974
|
const datesInWeek = state.getDatesInWeek(weekIndex);
|
|
5937
5975
|
const firstExistingDay = datesInWeek.find(Boolean);
|
|
5938
5976
|
const weekNumber = firstExistingDay ? getWeekNumber(firstExistingDay) : "";
|
|
5939
5977
|
return /* @__PURE__ */ jsxs34("tr", { children: [
|
|
5940
|
-
/* @__PURE__ */
|
|
5978
|
+
showWeekNumbers && /* @__PURE__ */ jsx207(
|
|
5941
5979
|
"td",
|
|
5942
5980
|
{
|
|
5943
|
-
className: cn(
|
|
5981
|
+
className: cn(
|
|
5982
|
+
DateInput_default["calendar__week-number"],
|
|
5983
|
+
...typographyCn
|
|
5984
|
+
),
|
|
5944
5985
|
children: weekNumber
|
|
5945
5986
|
}
|
|
5946
5987
|
),
|
|
5947
5988
|
datesInWeek.map(
|
|
5948
|
-
(date, i2) => date ? /* @__PURE__ */
|
|
5989
|
+
(date, i2) => date ? /* @__PURE__ */ jsx207(CalendarCell, { state, date }, i2) : /* @__PURE__ */ jsx207("td", {}, i2)
|
|
5949
5990
|
)
|
|
5950
5991
|
] }, weekIndex);
|
|
5951
5992
|
}) })
|
|
@@ -5956,7 +5997,7 @@ function CalendarGrid({ state, ...props }) {
|
|
|
5956
5997
|
CalendarGrid.displayName = "CalendarGrid";
|
|
5957
5998
|
|
|
5958
5999
|
// src/components/date-inputs/DatePicker/Calendar/Calendar.tsx
|
|
5959
|
-
import { jsx as
|
|
6000
|
+
import { jsx as jsx208, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
5960
6001
|
function createCalendar(identifier2) {
|
|
5961
6002
|
switch (identifier2) {
|
|
5962
6003
|
case "gregory":
|
|
@@ -5978,7 +6019,7 @@ function Calendar(props) {
|
|
|
5978
6019
|
nextButtonProps: { onPress: onNext, "aria-label": nextAriaLabel },
|
|
5979
6020
|
title
|
|
5980
6021
|
} = useCalendar(props, state);
|
|
5981
|
-
const { onClose } =
|
|
6022
|
+
const { onClose } = useContext6(CalendarPopoverContext);
|
|
5982
6023
|
const closeOnKeyboardBlurBack = (event) => {
|
|
5983
6024
|
if (event.key === "Tab" && event.shiftKey === true) {
|
|
5984
6025
|
onClose();
|
|
@@ -5986,7 +6027,7 @@ function Calendar(props) {
|
|
|
5986
6027
|
};
|
|
5987
6028
|
return /* @__PURE__ */ jsxs35("div", { ...calendarProps, className: DateInput_default.calendar, children: [
|
|
5988
6029
|
/* @__PURE__ */ jsxs35("div", { className: DateInput_default.calendar__header, children: [
|
|
5989
|
-
/* @__PURE__ */
|
|
6030
|
+
/* @__PURE__ */ jsx208(
|
|
5990
6031
|
Button,
|
|
5991
6032
|
{
|
|
5992
6033
|
type: "button",
|
|
@@ -5999,7 +6040,7 @@ function Calendar(props) {
|
|
|
5999
6040
|
className: DateInput_default["calendar__month-button"]
|
|
6000
6041
|
}
|
|
6001
6042
|
),
|
|
6002
|
-
/* @__PURE__ */
|
|
6043
|
+
/* @__PURE__ */ jsx208(
|
|
6003
6044
|
Heading,
|
|
6004
6045
|
{
|
|
6005
6046
|
level: 2,
|
|
@@ -6008,7 +6049,7 @@ function Calendar(props) {
|
|
|
6008
6049
|
children: title
|
|
6009
6050
|
}
|
|
6010
6051
|
),
|
|
6011
|
-
/* @__PURE__ */
|
|
6052
|
+
/* @__PURE__ */ jsx208(
|
|
6012
6053
|
Button,
|
|
6013
6054
|
{
|
|
6014
6055
|
type: "button",
|
|
@@ -6021,7 +6062,7 @@ function Calendar(props) {
|
|
|
6021
6062
|
}
|
|
6022
6063
|
)
|
|
6023
6064
|
] }),
|
|
6024
|
-
/* @__PURE__ */
|
|
6065
|
+
/* @__PURE__ */ jsx208(CalendarGrid, { state })
|
|
6025
6066
|
] });
|
|
6026
6067
|
}
|
|
6027
6068
|
Calendar.displayName = "Calendar";
|
|
@@ -6049,7 +6090,7 @@ import {
|
|
|
6049
6090
|
// src/components/date-inputs/DatePicker/DateField/CalendarButton.tsx
|
|
6050
6091
|
import { useButton } from "@react-aria/button";
|
|
6051
6092
|
import { useRef as useRef11 } from "react";
|
|
6052
|
-
import { jsx as
|
|
6093
|
+
import { jsx as jsx209 } from "react/jsx-runtime";
|
|
6053
6094
|
function CalendarButton({
|
|
6054
6095
|
componentSize,
|
|
6055
6096
|
isReadOnly,
|
|
@@ -6058,7 +6099,7 @@ function CalendarButton({
|
|
|
6058
6099
|
const ref = useRef11(null);
|
|
6059
6100
|
const { buttonProps } = useButton(props, ref);
|
|
6060
6101
|
const size2 = componentSize === "tiny" ? "small" : "medium";
|
|
6061
|
-
return /* @__PURE__ */
|
|
6102
|
+
return /* @__PURE__ */ jsx209(
|
|
6062
6103
|
"button",
|
|
6063
6104
|
{
|
|
6064
6105
|
...buttonProps,
|
|
@@ -6079,7 +6120,7 @@ function CalendarButton({
|
|
|
6079
6120
|
!props.isDisabled && focusable,
|
|
6080
6121
|
props.isDisabled && "disabled"
|
|
6081
6122
|
),
|
|
6082
|
-
children: /* @__PURE__ */
|
|
6123
|
+
children: /* @__PURE__ */ jsx209(Icon, { icon: CalendarIcon, iconSize: size2 })
|
|
6083
6124
|
}
|
|
6084
6125
|
);
|
|
6085
6126
|
}
|
|
@@ -6087,7 +6128,7 @@ function CalendarButton({
|
|
|
6087
6128
|
// src/components/date-inputs/DatePicker/DateField/DateSegment.tsx
|
|
6088
6129
|
import { useDateSegment } from "@react-aria/datepicker";
|
|
6089
6130
|
import { useRef as useRef12 } from "react";
|
|
6090
|
-
import { jsx as
|
|
6131
|
+
import { jsx as jsx210, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
6091
6132
|
var typographyTypes2 = {
|
|
6092
6133
|
medium: "bodySans02",
|
|
6093
6134
|
small: "bodySans01",
|
|
@@ -6121,7 +6162,7 @@ function DateSegment({
|
|
|
6121
6162
|
minWidth: segment.maxValue != null ? String(segment.maxValue).length + "ch" : void 0
|
|
6122
6163
|
},
|
|
6123
6164
|
children: [
|
|
6124
|
-
/* @__PURE__ */
|
|
6165
|
+
/* @__PURE__ */ jsx210(
|
|
6125
6166
|
"span",
|
|
6126
6167
|
{
|
|
6127
6168
|
"aria-hidden": "true",
|
|
@@ -6143,7 +6184,7 @@ DateSegment.displayName = "DateSegment";
|
|
|
6143
6184
|
// src/components/date-inputs/common/DateInput.tsx
|
|
6144
6185
|
import {
|
|
6145
6186
|
forwardRef as forwardRef36,
|
|
6146
|
-
useContext as
|
|
6187
|
+
useContext as useContext7
|
|
6147
6188
|
} from "react";
|
|
6148
6189
|
|
|
6149
6190
|
// src/components/InputMessage/InputMessage.tsx
|
|
@@ -6157,7 +6198,7 @@ var InputMessage_default = {
|
|
|
6157
6198
|
};
|
|
6158
6199
|
|
|
6159
6200
|
// src/components/InputMessage/InputMessage.tsx
|
|
6160
|
-
import { Fragment as Fragment4, jsx as
|
|
6201
|
+
import { Fragment as Fragment4, jsx as jsx211, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
6161
6202
|
var InputMessage = forwardRef35(
|
|
6162
6203
|
(props, ref) => {
|
|
6163
6204
|
const { message, messageType, id, className, htmlProps, ...rest } = props;
|
|
@@ -6177,8 +6218,8 @@ var InputMessage = forwardRef35(
|
|
|
6177
6218
|
),
|
|
6178
6219
|
ref,
|
|
6179
6220
|
children: [
|
|
6180
|
-
isError && /* @__PURE__ */
|
|
6181
|
-
/* @__PURE__ */
|
|
6221
|
+
isError && /* @__PURE__ */ jsx211(Icon, { icon: ErrorIcon, iconSize: "small", className: InputMessage_default.icon }),
|
|
6222
|
+
/* @__PURE__ */ jsx211(
|
|
6182
6223
|
Typography,
|
|
6183
6224
|
{
|
|
6184
6225
|
typographyType: isError ? "bodySans01" : "supportingStyleHelperText01",
|
|
@@ -6193,7 +6234,7 @@ var InputMessage = forwardRef35(
|
|
|
6193
6234
|
);
|
|
6194
6235
|
InputMessage.displayName = "InputMessage";
|
|
6195
6236
|
var renderInputMessage = (tip, tipId, errorMessage, errorMessageId) => /* @__PURE__ */ jsxs37(Fragment4, { children: [
|
|
6196
|
-
errorMessage && errorMessageId && /* @__PURE__ */
|
|
6237
|
+
errorMessage && errorMessageId && /* @__PURE__ */ jsx211(
|
|
6197
6238
|
InputMessage,
|
|
6198
6239
|
{
|
|
6199
6240
|
message: errorMessage,
|
|
@@ -6201,11 +6242,11 @@ var renderInputMessage = (tip, tipId, errorMessage, errorMessageId) => /* @__PUR
|
|
|
6201
6242
|
id: errorMessageId
|
|
6202
6243
|
}
|
|
6203
6244
|
),
|
|
6204
|
-
tip && tipId && !errorMessage && /* @__PURE__ */
|
|
6245
|
+
tip && tipId && !errorMessage && /* @__PURE__ */ jsx211(InputMessage, { message: tip, messageType: "tip", id: tipId })
|
|
6205
6246
|
] });
|
|
6206
6247
|
|
|
6207
6248
|
// src/components/date-inputs/common/DateInput.tsx
|
|
6208
|
-
import { jsx as
|
|
6249
|
+
import { jsx as jsx212, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
6209
6250
|
function _DateInput({
|
|
6210
6251
|
errorMessage,
|
|
6211
6252
|
tip,
|
|
@@ -6230,7 +6271,7 @@ function _DateInput({
|
|
|
6230
6271
|
const hasTip = !!tip;
|
|
6231
6272
|
const hasLabel = props.label != null;
|
|
6232
6273
|
const hasMessage = hasErrorMessage || hasTip;
|
|
6233
|
-
const { isOpen } =
|
|
6274
|
+
const { isOpen } = useContext7(CalendarPopoverContext);
|
|
6234
6275
|
const styleVariables = {
|
|
6235
6276
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6236
6277
|
["--dds-date-input-width"]: width ? width : componentSize === "small" ? "148px" : componentSize === "tiny" ? "125px" : "160px"
|
|
@@ -6242,7 +6283,7 @@ function _DateInput({
|
|
|
6242
6283
|
className: cn(className, Input_default.container),
|
|
6243
6284
|
ref: forwardedRef,
|
|
6244
6285
|
children: [
|
|
6245
|
-
hasLabel && /* @__PURE__ */
|
|
6286
|
+
hasLabel && /* @__PURE__ */ jsx212(
|
|
6246
6287
|
Label,
|
|
6247
6288
|
{
|
|
6248
6289
|
...labelProps,
|
|
@@ -6276,11 +6317,11 @@ function _DateInput({
|
|
|
6276
6317
|
),
|
|
6277
6318
|
children: [
|
|
6278
6319
|
button,
|
|
6279
|
-
/* @__PURE__ */
|
|
6320
|
+
/* @__PURE__ */ jsx212("div", { className: DateInput_default["date-segment-container"], children })
|
|
6280
6321
|
]
|
|
6281
6322
|
}
|
|
6282
6323
|
),
|
|
6283
|
-
hasMessage && /* @__PURE__ */
|
|
6324
|
+
hasMessage && /* @__PURE__ */ jsx212(
|
|
6284
6325
|
InputMessage,
|
|
6285
6326
|
{
|
|
6286
6327
|
messageType: hasErrorMessage ? "error" : "tip",
|
|
@@ -6295,7 +6336,7 @@ var DateInput = forwardRef36(_DateInput);
|
|
|
6295
6336
|
DateInput.displayName = "DateInput";
|
|
6296
6337
|
|
|
6297
6338
|
// src/components/date-inputs/DatePicker/DateField/DateField.tsx
|
|
6298
|
-
import { jsx as
|
|
6339
|
+
import { jsx as jsx213 } from "react/jsx-runtime";
|
|
6299
6340
|
function _DateField({
|
|
6300
6341
|
componentSize = "medium",
|
|
6301
6342
|
buttonProps,
|
|
@@ -6311,7 +6352,7 @@ function _DateField({
|
|
|
6311
6352
|
const ref = useRef13(null);
|
|
6312
6353
|
const { labelProps, fieldProps } = useDateField(props, state, ref);
|
|
6313
6354
|
const disabled = props.isDisabled || !!fieldProps["aria-disabled"];
|
|
6314
|
-
return /* @__PURE__ */
|
|
6355
|
+
return /* @__PURE__ */ jsx213(
|
|
6315
6356
|
DateInput,
|
|
6316
6357
|
{
|
|
6317
6358
|
...props,
|
|
@@ -6323,7 +6364,7 @@ function _DateField({
|
|
|
6323
6364
|
ref: forwardedRef,
|
|
6324
6365
|
internalRef: ref,
|
|
6325
6366
|
readOnly: props.isReadOnly,
|
|
6326
|
-
prefix: /* @__PURE__ */
|
|
6367
|
+
prefix: /* @__PURE__ */ jsx213(
|
|
6327
6368
|
CalendarButton,
|
|
6328
6369
|
{
|
|
6329
6370
|
componentSize,
|
|
@@ -6334,7 +6375,7 @@ function _DateField({
|
|
|
6334
6375
|
),
|
|
6335
6376
|
labelProps,
|
|
6336
6377
|
fieldProps,
|
|
6337
|
-
children: state.segments.map((segment, i2) => /* @__PURE__ */
|
|
6378
|
+
children: state.segments.map((segment, i2) => /* @__PURE__ */ jsx213(
|
|
6338
6379
|
DateSegment,
|
|
6339
6380
|
{
|
|
6340
6381
|
"aria-readonly": props.isReadOnly,
|
|
@@ -6372,11 +6413,19 @@ function createDOMRef(ref) {
|
|
|
6372
6413
|
}
|
|
6373
6414
|
|
|
6374
6415
|
// src/components/date-inputs/DatePicker/DatePicker.tsx
|
|
6375
|
-
import { jsx as
|
|
6416
|
+
import { jsx as jsx214, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
6376
6417
|
var refIsFocusable = (ref) => {
|
|
6377
6418
|
return typeof ref === "object" && ref !== null && "focus" in ref;
|
|
6378
6419
|
};
|
|
6379
|
-
function _DatePicker({
|
|
6420
|
+
function _DatePicker({
|
|
6421
|
+
errorMessage,
|
|
6422
|
+
componentSize,
|
|
6423
|
+
tip,
|
|
6424
|
+
style,
|
|
6425
|
+
width,
|
|
6426
|
+
showWeekNumbers = true,
|
|
6427
|
+
...props
|
|
6428
|
+
}, forwardedRef) {
|
|
6380
6429
|
const state = useDatePickerState(props);
|
|
6381
6430
|
const domRef = useFocusManagerRef(
|
|
6382
6431
|
refIsFocusable(forwardRef38) ? forwardedRef : null
|
|
@@ -6388,25 +6437,33 @@ function _DatePicker({ errorMessage, componentSize, tip, style, width, ...props
|
|
|
6388
6437
|
state,
|
|
6389
6438
|
ref
|
|
6390
6439
|
);
|
|
6391
|
-
return /* @__PURE__ */
|
|
6392
|
-
|
|
6393
|
-
|
|
6394
|
-
|
|
6395
|
-
|
|
6396
|
-
|
|
6397
|
-
|
|
6398
|
-
|
|
6399
|
-
|
|
6400
|
-
|
|
6401
|
-
|
|
6402
|
-
|
|
6403
|
-
|
|
6404
|
-
|
|
6405
|
-
|
|
6406
|
-
|
|
6407
|
-
|
|
6408
|
-
|
|
6409
|
-
|
|
6440
|
+
return /* @__PURE__ */ jsx214(I18nProvider, { locale, children: /* @__PURE__ */ jsxs39(
|
|
6441
|
+
CalendarPopover,
|
|
6442
|
+
{
|
|
6443
|
+
isOpen: state.isOpen,
|
|
6444
|
+
onClose: state.close,
|
|
6445
|
+
showWeekNumbers,
|
|
6446
|
+
children: [
|
|
6447
|
+
/* @__PURE__ */ jsx214(CalendarPopoverAnchor, { children: /* @__PURE__ */ jsx214(
|
|
6448
|
+
DateField,
|
|
6449
|
+
{
|
|
6450
|
+
...fieldProps,
|
|
6451
|
+
groupProps,
|
|
6452
|
+
ref: combinedRef,
|
|
6453
|
+
componentSize,
|
|
6454
|
+
tip,
|
|
6455
|
+
label: props.label,
|
|
6456
|
+
errorMessage,
|
|
6457
|
+
buttonProps,
|
|
6458
|
+
isOpen: state.isOpen,
|
|
6459
|
+
style,
|
|
6460
|
+
width
|
|
6461
|
+
}
|
|
6462
|
+
) }),
|
|
6463
|
+
/* @__PURE__ */ jsx214(CalendarPopoverContent, { children: /* @__PURE__ */ jsx214(Calendar, { ...calendarProps }) })
|
|
6464
|
+
]
|
|
6465
|
+
}
|
|
6466
|
+
) });
|
|
6410
6467
|
}
|
|
6411
6468
|
var DatePicker = forwardRef38(_DatePicker);
|
|
6412
6469
|
DatePicker.displayName = "DatePicker";
|
|
@@ -6415,7 +6472,7 @@ DatePicker.displayName = "DatePicker";
|
|
|
6415
6472
|
import { useTimeField } from "@react-aria/datepicker";
|
|
6416
6473
|
import { useTimeFieldState } from "@react-stately/datepicker";
|
|
6417
6474
|
import { forwardRef as forwardRef39, useRef as useRef16 } from "react";
|
|
6418
|
-
import { jsx as
|
|
6475
|
+
import { jsx as jsx215 } from "react/jsx-runtime";
|
|
6419
6476
|
function _TimePicker({ componentSize = "medium", width, ...props }, forwardedRef) {
|
|
6420
6477
|
const ref = useRef16(null);
|
|
6421
6478
|
const state = useTimeFieldState({
|
|
@@ -6429,7 +6486,7 @@ function _TimePicker({ componentSize = "medium", width, ...props }, forwardedRef
|
|
|
6429
6486
|
);
|
|
6430
6487
|
const iconSize = componentSize === "tiny" ? "small" : "medium";
|
|
6431
6488
|
const disabled = props.isDisabled || !!fieldProps["aria-disabled"];
|
|
6432
|
-
return /* @__PURE__ */
|
|
6489
|
+
return /* @__PURE__ */ jsx215(
|
|
6433
6490
|
DateInput,
|
|
6434
6491
|
{
|
|
6435
6492
|
...props,
|
|
@@ -6442,7 +6499,7 @@ function _TimePicker({ componentSize = "medium", width, ...props }, forwardedRef
|
|
|
6442
6499
|
readOnly: props.isReadOnly,
|
|
6443
6500
|
labelProps,
|
|
6444
6501
|
fieldProps,
|
|
6445
|
-
prefix: /* @__PURE__ */
|
|
6502
|
+
prefix: /* @__PURE__ */ jsx215(
|
|
6446
6503
|
"span",
|
|
6447
6504
|
{
|
|
6448
6505
|
className: cn(
|
|
@@ -6451,10 +6508,10 @@ function _TimePicker({ componentSize = "medium", width, ...props }, forwardedRef
|
|
|
6451
6508
|
props.isReadOnly && DateInput_default["icon-wrapper--readonly"],
|
|
6452
6509
|
DateInput_default[`icon-wrapper--${iconSize}`]
|
|
6453
6510
|
),
|
|
6454
|
-
children: /* @__PURE__ */
|
|
6511
|
+
children: /* @__PURE__ */ jsx215(Icon, { icon: TimeIcon, iconSize })
|
|
6455
6512
|
}
|
|
6456
6513
|
),
|
|
6457
|
-
children: state.segments.map((segment, i2) => /* @__PURE__ */
|
|
6514
|
+
children: state.segments.map((segment, i2) => /* @__PURE__ */ jsx215(
|
|
6458
6515
|
DateSegment,
|
|
6459
6516
|
{
|
|
6460
6517
|
componentSize,
|
|
@@ -6517,7 +6574,7 @@ var DescriptionList_default = {
|
|
|
6517
6574
|
};
|
|
6518
6575
|
|
|
6519
6576
|
// src/components/DescriptionList/DescriptionList.tsx
|
|
6520
|
-
import { jsx as
|
|
6577
|
+
import { jsx as jsx216 } from "react/jsx-runtime";
|
|
6521
6578
|
var DescriptionList = forwardRef40((props, ref) => {
|
|
6522
6579
|
const {
|
|
6523
6580
|
appearance = "default",
|
|
@@ -6528,7 +6585,7 @@ var DescriptionList = forwardRef40((props, ref) => {
|
|
|
6528
6585
|
htmlProps,
|
|
6529
6586
|
...rest
|
|
6530
6587
|
} = props;
|
|
6531
|
-
return /* @__PURE__ */
|
|
6588
|
+
return /* @__PURE__ */ jsx216(
|
|
6532
6589
|
"dl",
|
|
6533
6590
|
{
|
|
6534
6591
|
ref,
|
|
@@ -6551,15 +6608,15 @@ DescriptionList.displayName = "DescriptionList";
|
|
|
6551
6608
|
|
|
6552
6609
|
// src/components/DescriptionList/DescriptionListTerm.tsx
|
|
6553
6610
|
import { forwardRef as forwardRef41 } from "react";
|
|
6554
|
-
import { jsx as
|
|
6611
|
+
import { jsx as jsx217 } from "react/jsx-runtime";
|
|
6555
6612
|
var DescriptionListTerm = forwardRef41(({ ...rest }, ref) => {
|
|
6556
|
-
return /* @__PURE__ */
|
|
6613
|
+
return /* @__PURE__ */ jsx217("dt", { ref, ...rest });
|
|
6557
6614
|
});
|
|
6558
6615
|
DescriptionListTerm.displayName = "DescriptionListTerm";
|
|
6559
6616
|
|
|
6560
6617
|
// src/components/DescriptionList/DescriptionListDesc.tsx
|
|
6561
6618
|
import { forwardRef as forwardRef42 } from "react";
|
|
6562
|
-
import { jsx as
|
|
6619
|
+
import { jsx as jsx218, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
6563
6620
|
var DescriptionListDesc = forwardRef42((props, ref) => {
|
|
6564
6621
|
const { children, icon, id, className, htmlProps, ...rest } = props;
|
|
6565
6622
|
return /* @__PURE__ */ jsxs40(
|
|
@@ -6568,7 +6625,7 @@ var DescriptionListDesc = forwardRef42((props, ref) => {
|
|
|
6568
6625
|
ref,
|
|
6569
6626
|
...getBaseHTMLProps(id, cn(className, DescriptionList_default.desc), htmlProps, rest),
|
|
6570
6627
|
children: [
|
|
6571
|
-
icon && /* @__PURE__ */
|
|
6628
|
+
icon && /* @__PURE__ */ jsx218(Icon, { icon }),
|
|
6572
6629
|
" ",
|
|
6573
6630
|
children
|
|
6574
6631
|
]
|
|
@@ -6579,7 +6636,7 @@ DescriptionListDesc.displayName = "DescriptionListDesc";
|
|
|
6579
6636
|
|
|
6580
6637
|
// src/components/DescriptionList/DescriptionListGroup.tsx
|
|
6581
6638
|
import { forwardRef as forwardRef43 } from "react";
|
|
6582
|
-
import { jsx as
|
|
6639
|
+
import { jsx as jsx219 } from "react/jsx-runtime";
|
|
6583
6640
|
var DescriptionListGroup = forwardRef43((props, ref) => {
|
|
6584
6641
|
const {
|
|
6585
6642
|
children,
|
|
@@ -6591,7 +6648,7 @@ var DescriptionListGroup = forwardRef43((props, ref) => {
|
|
|
6591
6648
|
htmlProps,
|
|
6592
6649
|
...rest
|
|
6593
6650
|
} = props;
|
|
6594
|
-
return /* @__PURE__ */
|
|
6651
|
+
return /* @__PURE__ */ jsx219(
|
|
6595
6652
|
"div",
|
|
6596
6653
|
{
|
|
6597
6654
|
ref,
|
|
@@ -6620,7 +6677,7 @@ var DetailList_default = {
|
|
|
6620
6677
|
};
|
|
6621
6678
|
|
|
6622
6679
|
// src/components/DetailList/DetailList.tsx
|
|
6623
|
-
import { jsx as
|
|
6680
|
+
import { jsx as jsx220 } from "react/jsx-runtime";
|
|
6624
6681
|
var DetailList = forwardRef44(
|
|
6625
6682
|
(props, ref) => {
|
|
6626
6683
|
const {
|
|
@@ -6632,7 +6689,7 @@ var DetailList = forwardRef44(
|
|
|
6632
6689
|
density = "normal",
|
|
6633
6690
|
...rest
|
|
6634
6691
|
} = props;
|
|
6635
|
-
return /* @__PURE__ */
|
|
6692
|
+
return /* @__PURE__ */ jsx220(
|
|
6636
6693
|
"dl",
|
|
6637
6694
|
{
|
|
6638
6695
|
ref,
|
|
@@ -6656,30 +6713,30 @@ DetailList.displayName = "DetailList";
|
|
|
6656
6713
|
|
|
6657
6714
|
// src/components/DetailList/DetailListDesc.tsx
|
|
6658
6715
|
import { forwardRef as forwardRef45 } from "react";
|
|
6659
|
-
import { jsx as
|
|
6716
|
+
import { jsx as jsx221 } from "react/jsx-runtime";
|
|
6660
6717
|
var DetailListDesc = forwardRef45(
|
|
6661
6718
|
({ className, ...rest }, ref) => {
|
|
6662
|
-
return /* @__PURE__ */
|
|
6719
|
+
return /* @__PURE__ */ jsx221("dd", { ref, className: cn(className, DetailList_default.cell), ...rest });
|
|
6663
6720
|
}
|
|
6664
6721
|
);
|
|
6665
6722
|
DetailListDesc.displayName = "DetailListDesc";
|
|
6666
6723
|
|
|
6667
6724
|
// src/components/DetailList/DetailListRow.tsx
|
|
6668
6725
|
import { forwardRef as forwardRef46 } from "react";
|
|
6669
|
-
import { jsx as
|
|
6726
|
+
import { jsx as jsx222 } from "react/jsx-runtime";
|
|
6670
6727
|
var DetailListRow = forwardRef46(
|
|
6671
6728
|
({ className, ...rest }, ref) => {
|
|
6672
|
-
return /* @__PURE__ */
|
|
6729
|
+
return /* @__PURE__ */ jsx222("div", { ref, className: cn(className, DetailList_default.row), ...rest });
|
|
6673
6730
|
}
|
|
6674
6731
|
);
|
|
6675
6732
|
DetailListRow.displayName = "DetailListRow";
|
|
6676
6733
|
|
|
6677
6734
|
// src/components/DetailList/DetailListTerm.tsx
|
|
6678
6735
|
import { forwardRef as forwardRef47 } from "react";
|
|
6679
|
-
import { jsx as
|
|
6736
|
+
import { jsx as jsx223 } from "react/jsx-runtime";
|
|
6680
6737
|
var DetailListTerm = forwardRef47(
|
|
6681
6738
|
({ className, ...rest }, ref) => {
|
|
6682
|
-
return /* @__PURE__ */
|
|
6739
|
+
return /* @__PURE__ */ jsx223(
|
|
6683
6740
|
"dt",
|
|
6684
6741
|
{
|
|
6685
6742
|
ref,
|
|
@@ -6717,7 +6774,7 @@ var Drawer_default = {
|
|
|
6717
6774
|
};
|
|
6718
6775
|
|
|
6719
6776
|
// src/components/Drawer/Drawer.tsx
|
|
6720
|
-
import { jsx as
|
|
6777
|
+
import { jsx as jsx224, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
6721
6778
|
var Drawer = forwardRef48((props, ref) => {
|
|
6722
6779
|
const {
|
|
6723
6780
|
children,
|
|
@@ -6808,12 +6865,12 @@ var Drawer = forwardRef48((props, ref) => {
|
|
|
6808
6865
|
utilStyles_default["scrollable-y"]
|
|
6809
6866
|
),
|
|
6810
6867
|
children: [
|
|
6811
|
-
hasHeader && /* @__PURE__ */
|
|
6868
|
+
hasHeader && /* @__PURE__ */ jsx224("div", { id: headerId, children: typeof header === "string" ? /* @__PURE__ */ jsx224(Heading, { level: 2, typographyType: "headingSans03", children: header }) : header }),
|
|
6812
6869
|
children
|
|
6813
6870
|
]
|
|
6814
6871
|
}
|
|
6815
6872
|
),
|
|
6816
|
-
/* @__PURE__ */
|
|
6873
|
+
/* @__PURE__ */ jsx224(
|
|
6817
6874
|
Button,
|
|
6818
6875
|
{
|
|
6819
6876
|
className: cn(Drawer_default["button--close"]),
|
|
@@ -6828,7 +6885,7 @@ var Drawer = forwardRef48((props, ref) => {
|
|
|
6828
6885
|
]
|
|
6829
6886
|
}
|
|
6830
6887
|
);
|
|
6831
|
-
const component = withBackdrop ? /* @__PURE__ */
|
|
6888
|
+
const component = withBackdrop ? /* @__PURE__ */ jsx224(Backdrop, { isMounted, ref: backdropRef, onClick: onBackdropClick, children: drawer }) : drawer;
|
|
6832
6889
|
return isOpen || hasTransitionedIn ? createPortal(component, parentElement) : null;
|
|
6833
6890
|
});
|
|
6834
6891
|
Drawer.displayName = "Drawer";
|
|
@@ -6893,7 +6950,7 @@ var EmptyContent_default = {
|
|
|
6893
6950
|
};
|
|
6894
6951
|
|
|
6895
6952
|
// src/components/EmptyContent/EmptyContent.tsx
|
|
6896
|
-
import { jsx as
|
|
6953
|
+
import { jsx as jsx225, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
6897
6954
|
function EmptyContent({
|
|
6898
6955
|
title,
|
|
6899
6956
|
message,
|
|
@@ -6901,9 +6958,9 @@ function EmptyContent({
|
|
|
6901
6958
|
className,
|
|
6902
6959
|
...rest
|
|
6903
6960
|
}) {
|
|
6904
|
-
return /* @__PURE__ */
|
|
6905
|
-
title && /* @__PURE__ */
|
|
6906
|
-
/* @__PURE__ */
|
|
6961
|
+
return /* @__PURE__ */ jsx225("div", { ...rest, className: cn(className, EmptyContent_default.containter), children: /* @__PURE__ */ jsxs43("div", { className: EmptyContent_default.text, children: [
|
|
6962
|
+
title && /* @__PURE__ */ jsx225(Heading, { level: titleHeadingLevel, typographyType: "headingSans02", children: title }),
|
|
6963
|
+
/* @__PURE__ */ jsx225(Paragraph, { className: EmptyContent_default.message, children: message })
|
|
6907
6964
|
] }) });
|
|
6908
6965
|
}
|
|
6909
6966
|
EmptyContent.displayName = "EmptyContent";
|
|
@@ -6958,7 +7015,7 @@ function useControllableState(props) {
|
|
|
6958
7015
|
}
|
|
6959
7016
|
|
|
6960
7017
|
// src/components/FavStar/FavStar.tsx
|
|
6961
|
-
import { jsx as
|
|
7018
|
+
import { jsx as jsx226, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
6962
7019
|
var FavStar = forwardRef49(
|
|
6963
7020
|
({
|
|
6964
7021
|
id,
|
|
@@ -6995,7 +7052,7 @@ var FavStar = forwardRef49(
|
|
|
6995
7052
|
style,
|
|
6996
7053
|
htmlFor: id != null ? id : generatedId,
|
|
6997
7054
|
children: [
|
|
6998
|
-
/* @__PURE__ */
|
|
7055
|
+
/* @__PURE__ */ jsx226(
|
|
6999
7056
|
"input",
|
|
7000
7057
|
{
|
|
7001
7058
|
...props,
|
|
@@ -7008,8 +7065,8 @@ var FavStar = forwardRef49(
|
|
|
7008
7065
|
className: utilStyles_default["hide-input"]
|
|
7009
7066
|
}
|
|
7010
7067
|
),
|
|
7011
|
-
/* @__PURE__ */
|
|
7012
|
-
/* @__PURE__ */
|
|
7068
|
+
/* @__PURE__ */ jsx226(Icon, { iconSize: size2, icon: StarIcon, className: FavStar_default.icon }),
|
|
7069
|
+
/* @__PURE__ */ jsx226(
|
|
7013
7070
|
Icon,
|
|
7014
7071
|
{
|
|
7015
7072
|
iconSize: size2,
|
|
@@ -7030,8 +7087,8 @@ import { useEffect as useEffect20, useState as useState13 } from "react";
|
|
|
7030
7087
|
// src/components/Feedback/Feedback.module.css
|
|
7031
7088
|
var Feedback_default = {
|
|
7032
7089
|
"rating-container": "Feedback_rating-container",
|
|
7033
|
-
"rating-container--
|
|
7034
|
-
"rating-container--
|
|
7090
|
+
"rating-container--horizontal": "Feedback_rating-container--horizontal",
|
|
7091
|
+
"rating-container--vertical": "Feedback_rating-container--vertical",
|
|
7035
7092
|
"rating-submitted-title": "Feedback_rating-submitted-title",
|
|
7036
7093
|
button: "Feedback_button",
|
|
7037
7094
|
"button--horizontal": "Feedback_button--horizontal",
|
|
@@ -7075,7 +7132,7 @@ var Stack_default = {
|
|
|
7075
7132
|
};
|
|
7076
7133
|
|
|
7077
7134
|
// src/components/Stack/Stack.tsx
|
|
7078
|
-
import { jsx as
|
|
7135
|
+
import { jsx as jsx227 } from "react/jsx-runtime";
|
|
7079
7136
|
var HStack = forwardRef50(
|
|
7080
7137
|
({
|
|
7081
7138
|
id,
|
|
@@ -7093,7 +7150,7 @@ var HStack = forwardRef50(
|
|
|
7093
7150
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
7094
7151
|
["--dds-stack-justify-content"]: justify
|
|
7095
7152
|
};
|
|
7096
|
-
return /* @__PURE__ */
|
|
7153
|
+
return /* @__PURE__ */ jsx227(
|
|
7097
7154
|
"div",
|
|
7098
7155
|
{
|
|
7099
7156
|
ref,
|
|
@@ -7132,7 +7189,7 @@ var VStack = forwardRef50(
|
|
|
7132
7189
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
7133
7190
|
["--dds-stack-justify-content"]: justify
|
|
7134
7191
|
};
|
|
7135
|
-
return /* @__PURE__ */
|
|
7192
|
+
return /* @__PURE__ */ jsx227(
|
|
7136
7193
|
"div",
|
|
7137
7194
|
{
|
|
7138
7195
|
ref,
|
|
@@ -7168,7 +7225,7 @@ var TextArea_default = {
|
|
|
7168
7225
|
};
|
|
7169
7226
|
|
|
7170
7227
|
// src/components/TextArea/TextArea.tsx
|
|
7171
|
-
import { jsx as
|
|
7228
|
+
import { jsx as jsx228, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
7172
7229
|
var TextArea = forwardRef51(
|
|
7173
7230
|
(props, ref) => {
|
|
7174
7231
|
const {
|
|
@@ -7227,7 +7284,7 @@ var TextArea = forwardRef51(
|
|
|
7227
7284
|
className: cn(className, Input_default.container),
|
|
7228
7285
|
style: { ...style },
|
|
7229
7286
|
children: [
|
|
7230
|
-
hasLabel && /* @__PURE__ */
|
|
7287
|
+
hasLabel && /* @__PURE__ */ jsx228(
|
|
7231
7288
|
Label,
|
|
7232
7289
|
{
|
|
7233
7290
|
showRequiredStyling,
|
|
@@ -7237,7 +7294,7 @@ var TextArea = forwardRef51(
|
|
|
7237
7294
|
children: label
|
|
7238
7295
|
}
|
|
7239
7296
|
),
|
|
7240
|
-
/* @__PURE__ */
|
|
7297
|
+
/* @__PURE__ */ jsx228(
|
|
7241
7298
|
"textarea",
|
|
7242
7299
|
{
|
|
7243
7300
|
ref: multiRef,
|
|
@@ -7285,9 +7342,29 @@ var TextArea = forwardRef51(
|
|
|
7285
7342
|
);
|
|
7286
7343
|
TextArea.displayName = "TextArea";
|
|
7287
7344
|
|
|
7345
|
+
// src/components/Feedback/utils.tsx
|
|
7346
|
+
import { jsx as jsx229 } from "react/jsx-runtime";
|
|
7347
|
+
var getIconSize = (layout) => layout === "vertical" ? "large" : "medium";
|
|
7348
|
+
var ThumbIcon = ({ rating, layout, type }) => type === "comment" ? /* @__PURE__ */ jsx229(
|
|
7349
|
+
Icon,
|
|
7350
|
+
{
|
|
7351
|
+
icon: rating === "positive" ? ThumbUpFilledIcon : ThumbDownFilledIcon,
|
|
7352
|
+
color: "iconActionResting",
|
|
7353
|
+
iconSize: getIconSize(layout)
|
|
7354
|
+
}
|
|
7355
|
+
) : /* @__PURE__ */ jsx229(
|
|
7356
|
+
Icon,
|
|
7357
|
+
{
|
|
7358
|
+
icon: rating === "positive" ? ThumbUpIcon : ThumbDownIcon,
|
|
7359
|
+
color: "iconMedium",
|
|
7360
|
+
iconSize: getIconSize(layout)
|
|
7361
|
+
}
|
|
7362
|
+
);
|
|
7363
|
+
|
|
7288
7364
|
// src/components/Feedback/CommentComponent.tsx
|
|
7289
|
-
import { jsx as
|
|
7365
|
+
import { jsx as jsx230, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
7290
7366
|
var CommentComponent = ({
|
|
7367
|
+
layout,
|
|
7291
7368
|
rating,
|
|
7292
7369
|
feedbackText,
|
|
7293
7370
|
positiveFeedbackLabel,
|
|
@@ -7300,19 +7377,13 @@ var CommentComponent = ({
|
|
|
7300
7377
|
}) => {
|
|
7301
7378
|
return /* @__PURE__ */ jsxs46(VStack, { gap: "x1", align: "flex-start", children: [
|
|
7302
7379
|
/* @__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
|
-
),
|
|
7380
|
+
ThumbIcon({ rating, layout, type: "comment" }),
|
|
7310
7381
|
/* @__PURE__ */ jsxs46(Paragraph, { children: [
|
|
7311
7382
|
ratingSubmittedTitle,
|
|
7312
7383
|
" "
|
|
7313
7384
|
] })
|
|
7314
7385
|
] }),
|
|
7315
|
-
/* @__PURE__ */
|
|
7386
|
+
/* @__PURE__ */ jsx230(
|
|
7316
7387
|
TextArea,
|
|
7317
7388
|
{
|
|
7318
7389
|
value: feedbackText,
|
|
@@ -7321,7 +7392,7 @@ var CommentComponent = ({
|
|
|
7321
7392
|
tip: textAreaTip
|
|
7322
7393
|
}
|
|
7323
7394
|
),
|
|
7324
|
-
/* @__PURE__ */
|
|
7395
|
+
/* @__PURE__ */ jsx230(
|
|
7325
7396
|
Button,
|
|
7326
7397
|
{
|
|
7327
7398
|
purpose: "secondary",
|
|
@@ -7355,7 +7426,7 @@ var Tooltip_default = {
|
|
|
7355
7426
|
};
|
|
7356
7427
|
|
|
7357
7428
|
// src/components/Tooltip/Tooltip.tsx
|
|
7358
|
-
import { jsx as
|
|
7429
|
+
import { jsx as jsx231, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
7359
7430
|
var Tooltip = forwardRef52(
|
|
7360
7431
|
(props, ref) => {
|
|
7361
7432
|
const {
|
|
@@ -7469,15 +7540,15 @@ var Tooltip = forwardRef52(
|
|
|
7469
7540
|
),
|
|
7470
7541
|
children: [
|
|
7471
7542
|
text,
|
|
7472
|
-
/* @__PURE__ */
|
|
7473
|
-
/* @__PURE__ */
|
|
7543
|
+
/* @__PURE__ */ jsx231("div", { ref: setArrowElement, style: positionStyles.arrow, children: /* @__PURE__ */ jsxs47("svg", { width: "36", height: "9", children: [
|
|
7544
|
+
/* @__PURE__ */ jsx231(
|
|
7474
7545
|
"path",
|
|
7475
7546
|
{
|
|
7476
7547
|
d: "M16.586 6.586L10 0h16.154a.373.373 0 00-.263.11l-6.477 6.476a2 2 0 01-2.828 0z",
|
|
7477
7548
|
className: Tooltip_default["svg-arrow__background"]
|
|
7478
7549
|
}
|
|
7479
7550
|
),
|
|
7480
|
-
/* @__PURE__ */
|
|
7551
|
+
/* @__PURE__ */ jsx231(
|
|
7481
7552
|
"path",
|
|
7482
7553
|
{
|
|
7483
7554
|
fillRule: "evenodd",
|
|
@@ -7496,7 +7567,7 @@ var Tooltip = forwardRef52(
|
|
|
7496
7567
|
Tooltip.displayName = "Tooltip";
|
|
7497
7568
|
|
|
7498
7569
|
// src/components/Feedback/RatingComponent.tsx
|
|
7499
|
-
import { jsx as
|
|
7570
|
+
import { jsx as jsx232, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
7500
7571
|
var RatingComponent = ({
|
|
7501
7572
|
layout,
|
|
7502
7573
|
ratingLabel,
|
|
@@ -7505,25 +7576,18 @@ var RatingComponent = ({
|
|
|
7505
7576
|
thumbDownTooltip,
|
|
7506
7577
|
handleRatingChange
|
|
7507
7578
|
}) => {
|
|
7508
|
-
const
|
|
7509
|
-
const button = (purpose, layout2) => /* @__PURE__ */ jsx230(
|
|
7579
|
+
const button = (rating, layout2, tooltip) => /* @__PURE__ */ jsx232(
|
|
7510
7580
|
"button",
|
|
7511
7581
|
{
|
|
7512
|
-
"aria-label":
|
|
7513
|
-
onClick: () => handleRatingChange(
|
|
7582
|
+
"aria-label": tooltip,
|
|
7583
|
+
onClick: () => handleRatingChange(rating),
|
|
7514
7584
|
className: cn(
|
|
7515
7585
|
utilStyles_default["remove-button-styling"],
|
|
7516
7586
|
Feedback_default.button,
|
|
7517
7587
|
Feedback_default[`button--${layout2}`],
|
|
7518
7588
|
focusable
|
|
7519
7589
|
),
|
|
7520
|
-
children:
|
|
7521
|
-
Icon,
|
|
7522
|
-
{
|
|
7523
|
-
icon: purpose === "up" ? ThumbUpIcon : ThumbDownIcon,
|
|
7524
|
-
iconSize: layout2 === "vertical" ? "large" : "medium"
|
|
7525
|
-
}
|
|
7526
|
-
)
|
|
7590
|
+
children: ThumbIcon({ rating, layout: layout2, type: "rating" })
|
|
7527
7591
|
}
|
|
7528
7592
|
);
|
|
7529
7593
|
return /* @__PURE__ */ jsxs48(
|
|
@@ -7531,13 +7595,13 @@ var RatingComponent = ({
|
|
|
7531
7595
|
{
|
|
7532
7596
|
className: cn(
|
|
7533
7597
|
Feedback_default["rating-container"],
|
|
7534
|
-
Feedback_default[`rating-container--${
|
|
7598
|
+
Feedback_default[`rating-container--${layout}`]
|
|
7535
7599
|
),
|
|
7536
7600
|
children: [
|
|
7537
|
-
/* @__PURE__ */
|
|
7538
|
-
loading ? /* @__PURE__ */
|
|
7539
|
-
/* @__PURE__ */
|
|
7540
|
-
/* @__PURE__ */
|
|
7601
|
+
/* @__PURE__ */ jsx232(Label, { children: ratingLabel }),
|
|
7602
|
+
loading ? /* @__PURE__ */ jsx232(Spinner, { tooltip: "Laster opp tilbakemelding ..." }) : /* @__PURE__ */ jsxs48(HStack, { gap: "x1", children: [
|
|
7603
|
+
/* @__PURE__ */ jsx232(Tooltip, { text: thumbUpTooltip, children: button("positive", layout, thumbUpTooltip) }),
|
|
7604
|
+
/* @__PURE__ */ jsx232(Tooltip, { text: thumbDownTooltip, children: /* @__PURE__ */ jsx232("div", { children: button("negative", layout, thumbDownTooltip) }) })
|
|
7541
7605
|
] })
|
|
7542
7606
|
]
|
|
7543
7607
|
}
|
|
@@ -7545,7 +7609,7 @@ var RatingComponent = ({
|
|
|
7545
7609
|
};
|
|
7546
7610
|
|
|
7547
7611
|
// src/components/Feedback/Feedback.tsx
|
|
7548
|
-
import { jsx as
|
|
7612
|
+
import { jsx as jsx233 } from "react/jsx-runtime";
|
|
7549
7613
|
var Feedback = ({
|
|
7550
7614
|
layout = "vertical",
|
|
7551
7615
|
ratingLabel = "Hva syns du om tjenesten?",
|
|
@@ -7591,7 +7655,7 @@ var Feedback = ({
|
|
|
7591
7655
|
isSubmittedProp === void 0 && setIsFeedbackSubmitted(true);
|
|
7592
7656
|
};
|
|
7593
7657
|
if (rating === null && !isFeedbackSubmitted) {
|
|
7594
|
-
return /* @__PURE__ */
|
|
7658
|
+
return /* @__PURE__ */ jsx233(
|
|
7595
7659
|
RatingComponent,
|
|
7596
7660
|
{
|
|
7597
7661
|
layout,
|
|
@@ -7604,9 +7668,10 @@ var Feedback = ({
|
|
|
7604
7668
|
);
|
|
7605
7669
|
}
|
|
7606
7670
|
if (!feedbackTextAreaExcluded && !isFeedbackSubmitted) {
|
|
7607
|
-
return /* @__PURE__ */
|
|
7671
|
+
return /* @__PURE__ */ jsx233(
|
|
7608
7672
|
CommentComponent,
|
|
7609
7673
|
{
|
|
7674
|
+
layout,
|
|
7610
7675
|
rating,
|
|
7611
7676
|
feedbackText,
|
|
7612
7677
|
positiveFeedbackLabel,
|
|
@@ -7619,7 +7684,7 @@ var Feedback = ({
|
|
|
7619
7684
|
}
|
|
7620
7685
|
);
|
|
7621
7686
|
}
|
|
7622
|
-
return /* @__PURE__ */
|
|
7687
|
+
return /* @__PURE__ */ jsx233(Paragraph, { children: submittedTitle });
|
|
7623
7688
|
};
|
|
7624
7689
|
|
|
7625
7690
|
// src/components/Fieldset/Fieldset.tsx
|
|
@@ -7631,11 +7696,11 @@ var Fieldset_default = {
|
|
|
7631
7696
|
};
|
|
7632
7697
|
|
|
7633
7698
|
// src/components/Fieldset/Fieldset.tsx
|
|
7634
|
-
import { jsx as
|
|
7699
|
+
import { jsx as jsx234 } from "react/jsx-runtime";
|
|
7635
7700
|
var Fieldset = forwardRef53(
|
|
7636
7701
|
(props, ref) => {
|
|
7637
7702
|
const { id, className, htmlProps, ...rest } = props;
|
|
7638
|
-
return /* @__PURE__ */
|
|
7703
|
+
return /* @__PURE__ */ jsx234(
|
|
7639
7704
|
"fieldset",
|
|
7640
7705
|
{
|
|
7641
7706
|
ref,
|
|
@@ -7654,14 +7719,14 @@ var Fieldset = forwardRef53(
|
|
|
7654
7719
|
import { useId as useId11 } from "react";
|
|
7655
7720
|
|
|
7656
7721
|
// src/components/FileUploader/ErrorList.tsx
|
|
7657
|
-
import { jsx as
|
|
7722
|
+
import { jsx as jsx235 } from "react/jsx-runtime";
|
|
7658
7723
|
var ErrorList = (props) => {
|
|
7659
7724
|
const { errors } = props;
|
|
7660
7725
|
if (errors.length < 1) {
|
|
7661
7726
|
return null;
|
|
7662
7727
|
}
|
|
7663
7728
|
if (errors.length === 1) {
|
|
7664
|
-
return /* @__PURE__ */
|
|
7729
|
+
return /* @__PURE__ */ jsx235(
|
|
7665
7730
|
InputMessage,
|
|
7666
7731
|
{
|
|
7667
7732
|
id: errors[0].id,
|
|
@@ -7670,8 +7735,8 @@ var ErrorList = (props) => {
|
|
|
7670
7735
|
}
|
|
7671
7736
|
);
|
|
7672
7737
|
}
|
|
7673
|
-
return /* @__PURE__ */
|
|
7674
|
-
return /* @__PURE__ */
|
|
7738
|
+
return /* @__PURE__ */ jsx235("ul", { className: utilStyles_default["remove-list-styling"], children: errors.map(({ id, message }) => {
|
|
7739
|
+
return /* @__PURE__ */ jsx235("li", { children: /* @__PURE__ */ jsx235(
|
|
7675
7740
|
InputMessage,
|
|
7676
7741
|
{
|
|
7677
7742
|
id,
|
|
@@ -7698,7 +7763,7 @@ var FileUploader_default = {
|
|
|
7698
7763
|
};
|
|
7699
7764
|
|
|
7700
7765
|
// src/components/FileUploader/File.tsx
|
|
7701
|
-
import { jsx as
|
|
7766
|
+
import { jsx as jsx236, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
7702
7767
|
var File = (props) => {
|
|
7703
7768
|
const { parentId, index, file: stateFile, removeFile, isValid } = props;
|
|
7704
7769
|
const errorsList = stateFile.errors.map((e, errorIndex) => ({
|
|
@@ -7707,21 +7772,21 @@ var File = (props) => {
|
|
|
7707
7772
|
}));
|
|
7708
7773
|
return /* @__PURE__ */ jsxs49("li", { children: [
|
|
7709
7774
|
/* @__PURE__ */ jsxs49("div", { className: cn(FileUploader_default.file, !isValid && FileUploader_default["file--invalid"]), children: [
|
|
7710
|
-
/* @__PURE__ */
|
|
7775
|
+
/* @__PURE__ */ jsx236(
|
|
7711
7776
|
"span",
|
|
7712
7777
|
{
|
|
7713
7778
|
className: cn(FileUploader_default.file__name, typographyStyles_default["body-sans-02"]),
|
|
7714
7779
|
children: stateFile.file.name
|
|
7715
7780
|
}
|
|
7716
7781
|
),
|
|
7717
|
-
/* @__PURE__ */
|
|
7782
|
+
/* @__PURE__ */ jsx236(
|
|
7718
7783
|
Icon,
|
|
7719
7784
|
{
|
|
7720
7785
|
icon: isValid ? CheckCircledIcon : ErrorIcon,
|
|
7721
7786
|
className: FileUploader_default[`file__icon--${isValid ? "valid" : "invalid"}`]
|
|
7722
7787
|
}
|
|
7723
7788
|
),
|
|
7724
|
-
/* @__PURE__ */
|
|
7789
|
+
/* @__PURE__ */ jsx236(
|
|
7725
7790
|
Button,
|
|
7726
7791
|
{
|
|
7727
7792
|
size: "small",
|
|
@@ -7740,7 +7805,7 @@ var File = (props) => {
|
|
|
7740
7805
|
}
|
|
7741
7806
|
)
|
|
7742
7807
|
] }),
|
|
7743
|
-
/* @__PURE__ */
|
|
7808
|
+
/* @__PURE__ */ jsx236(ErrorList, { errors: errorsList })
|
|
7744
7809
|
] });
|
|
7745
7810
|
};
|
|
7746
7811
|
|
|
@@ -8031,20 +8096,8 @@ var useFileUploader = (props) => {
|
|
|
8031
8096
|
};
|
|
8032
8097
|
};
|
|
8033
8098
|
|
|
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
8099
|
// src/components/FileUploader/FileUploader.tsx
|
|
8047
|
-
import { jsx as
|
|
8100
|
+
import { jsx as jsx237, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
8048
8101
|
var FileUploader = (props) => {
|
|
8049
8102
|
const {
|
|
8050
8103
|
id,
|
|
@@ -8093,7 +8146,7 @@ var FileUploader = (props) => {
|
|
|
8093
8146
|
const tipId = derivativeIdGenerator(uniqueId, "tip");
|
|
8094
8147
|
const buttonId = derivativeIdGenerator(uniqueId, "button");
|
|
8095
8148
|
const inputId = derivativeIdGenerator(uniqueId, "input");
|
|
8096
|
-
const fileListElements = stateFiles.map((stateFile, index) => /* @__PURE__ */
|
|
8149
|
+
const fileListElements = stateFiles.map((stateFile, index) => /* @__PURE__ */ jsx237(
|
|
8097
8150
|
File,
|
|
8098
8151
|
{
|
|
8099
8152
|
parentId: uniqueId,
|
|
@@ -8108,7 +8161,7 @@ var FileUploader = (props) => {
|
|
|
8108
8161
|
id: derivativeIdGenerator(uniqueId, `error-${index}`),
|
|
8109
8162
|
message: e
|
|
8110
8163
|
}));
|
|
8111
|
-
const button = /* @__PURE__ */
|
|
8164
|
+
const button = /* @__PURE__ */ jsx237(
|
|
8112
8165
|
Button,
|
|
8113
8166
|
{
|
|
8114
8167
|
...getButtonProps(),
|
|
@@ -8140,8 +8193,8 @@ var FileUploader = (props) => {
|
|
|
8140
8193
|
style: { ...style, width },
|
|
8141
8194
|
...rest,
|
|
8142
8195
|
children: [
|
|
8143
|
-
hasLabel && /* @__PURE__ */
|
|
8144
|
-
hasTip && /* @__PURE__ */
|
|
8196
|
+
hasLabel && /* @__PURE__ */ jsx237(Label, { id: labelId, showRequiredStyling: showRequiredMarker, children: label }),
|
|
8197
|
+
hasTip && /* @__PURE__ */ jsx237(InputMessage, { id: tipId, message: tip, messageType: "tip" }),
|
|
8145
8198
|
withDragAndDrop ? /* @__PURE__ */ jsxs50(
|
|
8146
8199
|
"div",
|
|
8147
8200
|
{
|
|
@@ -8152,7 +8205,7 @@ var FileUploader = (props) => {
|
|
|
8152
8205
|
isDragActive && FileUploader_default["input-container--drag-active"]
|
|
8153
8206
|
),
|
|
8154
8207
|
children: [
|
|
8155
|
-
/* @__PURE__ */
|
|
8208
|
+
/* @__PURE__ */ jsx237(
|
|
8156
8209
|
"input",
|
|
8157
8210
|
{
|
|
8158
8211
|
...getInputProps(),
|
|
@@ -8161,16 +8214,16 @@ var FileUploader = (props) => {
|
|
|
8161
8214
|
}
|
|
8162
8215
|
),
|
|
8163
8216
|
dropAreaLabel,
|
|
8164
|
-
/* @__PURE__ */
|
|
8217
|
+
/* @__PURE__ */ jsx237(VisuallyHidden, { as: "span", children: "velg fil med p\xE5f\xF8lgende knapp" }),
|
|
8165
8218
|
button
|
|
8166
8219
|
]
|
|
8167
8220
|
}
|
|
8168
8221
|
) : /* @__PURE__ */ jsxs50("div", { className: FileUploader_default["input-container--no-drag-zone"], children: [
|
|
8169
|
-
/* @__PURE__ */
|
|
8222
|
+
/* @__PURE__ */ jsx237("input", { ...getInputProps(), id: inputId }),
|
|
8170
8223
|
button
|
|
8171
8224
|
] }),
|
|
8172
|
-
/* @__PURE__ */
|
|
8173
|
-
!hideFileList && /* @__PURE__ */
|
|
8225
|
+
/* @__PURE__ */ jsx237(ErrorList, { errors: rootErrorsList }),
|
|
8226
|
+
!hideFileList && /* @__PURE__ */ jsx237("ul", { className: utilStyles_default["remove-list-styling"], children: fileListElements })
|
|
8174
8227
|
]
|
|
8175
8228
|
}
|
|
8176
8229
|
);
|
|
@@ -8194,10 +8247,10 @@ var Footer_default = {
|
|
|
8194
8247
|
};
|
|
8195
8248
|
|
|
8196
8249
|
// src/components/Footer/Footer.tsx
|
|
8197
|
-
import { jsx as
|
|
8250
|
+
import { jsx as jsx238 } from "react/jsx-runtime";
|
|
8198
8251
|
var Footer = forwardRef54((props, ref) => {
|
|
8199
8252
|
const { className, ...rest } = props;
|
|
8200
|
-
return /* @__PURE__ */
|
|
8253
|
+
return /* @__PURE__ */ jsx238(
|
|
8201
8254
|
Contrast,
|
|
8202
8255
|
{
|
|
8203
8256
|
as: "footer",
|
|
@@ -8210,9 +8263,9 @@ var Footer = forwardRef54((props, ref) => {
|
|
|
8210
8263
|
|
|
8211
8264
|
// src/components/Footer/FooterListHeader.tsx
|
|
8212
8265
|
import { forwardRef as forwardRef55 } from "react";
|
|
8213
|
-
import { jsx as
|
|
8266
|
+
import { jsx as jsx239 } from "react/jsx-runtime";
|
|
8214
8267
|
var FooterListHeader = forwardRef55((props, ref) => {
|
|
8215
|
-
return /* @__PURE__ */
|
|
8268
|
+
return /* @__PURE__ */ jsx239(Heading, { level: 2, typographyType: "headingSans02", ref, ...props });
|
|
8216
8269
|
});
|
|
8217
8270
|
|
|
8218
8271
|
// src/components/Footer/FooterLogo.tsx
|
|
@@ -8222,11 +8275,11 @@ import { forwardRef as forwardRef56 } from "react";
|
|
|
8222
8275
|
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
8276
|
|
|
8224
8277
|
// src/components/Footer/FooterLogo.tsx
|
|
8225
|
-
import { jsx as
|
|
8278
|
+
import { jsx as jsx240 } from "react/jsx-runtime";
|
|
8226
8279
|
var FooterLogo = forwardRef56(
|
|
8227
8280
|
(props, ref) => {
|
|
8228
8281
|
const { className, hideBreakpoint, ...rest } = props;
|
|
8229
|
-
return /* @__PURE__ */
|
|
8282
|
+
return /* @__PURE__ */ jsx240(
|
|
8230
8283
|
"img",
|
|
8231
8284
|
{
|
|
8232
8285
|
ref,
|
|
@@ -8246,11 +8299,11 @@ var FooterLogo = forwardRef56(
|
|
|
8246
8299
|
|
|
8247
8300
|
// src/components/Footer/FooterList.tsx
|
|
8248
8301
|
import { forwardRef as forwardRef57 } from "react";
|
|
8249
|
-
import { jsx as
|
|
8302
|
+
import { jsx as jsx241 } from "react/jsx-runtime";
|
|
8250
8303
|
var FooterList = forwardRef57(
|
|
8251
8304
|
(props, ref) => {
|
|
8252
8305
|
const { className, ...rest } = props;
|
|
8253
|
-
return /* @__PURE__ */
|
|
8306
|
+
return /* @__PURE__ */ jsx241(
|
|
8254
8307
|
"ul",
|
|
8255
8308
|
{
|
|
8256
8309
|
ref,
|
|
@@ -8267,10 +8320,10 @@ var FooterList = forwardRef57(
|
|
|
8267
8320
|
|
|
8268
8321
|
// src/components/Footer/FooterSocialsList.tsx
|
|
8269
8322
|
import { forwardRef as forwardRef58 } from "react";
|
|
8270
|
-
import { jsx as
|
|
8323
|
+
import { jsx as jsx242 } from "react/jsx-runtime";
|
|
8271
8324
|
var FooterSocialsList = forwardRef58((props, ref) => {
|
|
8272
8325
|
const { className, ...rest } = props;
|
|
8273
|
-
return /* @__PURE__ */
|
|
8326
|
+
return /* @__PURE__ */ jsx242(
|
|
8274
8327
|
"ul",
|
|
8275
8328
|
{
|
|
8276
8329
|
ref,
|
|
@@ -8286,10 +8339,10 @@ var FooterSocialsList = forwardRef58((props, ref) => {
|
|
|
8286
8339
|
|
|
8287
8340
|
// src/components/Footer/FooterSocialsGroup.tsx
|
|
8288
8341
|
import { forwardRef as forwardRef59 } from "react";
|
|
8289
|
-
import { jsx as
|
|
8342
|
+
import { jsx as jsx243 } from "react/jsx-runtime";
|
|
8290
8343
|
var FooterSocialsGroup = forwardRef59((props, ref) => {
|
|
8291
8344
|
const { className, ...rest } = props;
|
|
8292
|
-
return /* @__PURE__ */
|
|
8345
|
+
return /* @__PURE__ */ jsx243(
|
|
8293
8346
|
"div",
|
|
8294
8347
|
{
|
|
8295
8348
|
ref,
|
|
@@ -8301,11 +8354,11 @@ var FooterSocialsGroup = forwardRef59((props, ref) => {
|
|
|
8301
8354
|
|
|
8302
8355
|
// src/components/Footer/FooterListGroup.tsx
|
|
8303
8356
|
import { forwardRef as forwardRef60 } from "react";
|
|
8304
|
-
import { jsx as
|
|
8357
|
+
import { jsx as jsx244 } from "react/jsx-runtime";
|
|
8305
8358
|
var FooterListGroup = forwardRef60(
|
|
8306
8359
|
(props, ref) => {
|
|
8307
8360
|
const { className, ...rest } = props;
|
|
8308
|
-
return /* @__PURE__ */
|
|
8361
|
+
return /* @__PURE__ */ jsx244(
|
|
8309
8362
|
"div",
|
|
8310
8363
|
{
|
|
8311
8364
|
ref,
|
|
@@ -8318,11 +8371,11 @@ var FooterListGroup = forwardRef60(
|
|
|
8318
8371
|
|
|
8319
8372
|
// src/components/Footer/FooterLeft.tsx
|
|
8320
8373
|
import { forwardRef as forwardRef61 } from "react";
|
|
8321
|
-
import { jsx as
|
|
8374
|
+
import { jsx as jsx245 } from "react/jsx-runtime";
|
|
8322
8375
|
var FooterLeft = forwardRef61(
|
|
8323
8376
|
(props, ref) => {
|
|
8324
8377
|
const { className, ...rest } = props;
|
|
8325
|
-
return /* @__PURE__ */
|
|
8378
|
+
return /* @__PURE__ */ jsx245("div", { ref, className: cn(className, Footer_default["left"]), ...rest });
|
|
8326
8379
|
}
|
|
8327
8380
|
);
|
|
8328
8381
|
|
|
@@ -8341,7 +8394,7 @@ var GlobalMessage_default = {
|
|
|
8341
8394
|
};
|
|
8342
8395
|
|
|
8343
8396
|
// src/components/GlobalMessage/GlobalMessage.tsx
|
|
8344
|
-
import { jsx as
|
|
8397
|
+
import { jsx as jsx246, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
8345
8398
|
var icons = {
|
|
8346
8399
|
info: InfoIcon,
|
|
8347
8400
|
danger: ErrorIcon,
|
|
@@ -8385,12 +8438,12 @@ var GlobalMessage = forwardRef62(
|
|
|
8385
8438
|
closable && GlobalMessage_default["content--closable"]
|
|
8386
8439
|
),
|
|
8387
8440
|
children: [
|
|
8388
|
-
/* @__PURE__ */
|
|
8389
|
-
children != null ? children : /* @__PURE__ */
|
|
8441
|
+
/* @__PURE__ */ jsx246(Icon, { icon: icons[purpose], className: GlobalMessage_default.icon }),
|
|
8442
|
+
children != null ? children : /* @__PURE__ */ jsx246("span", { children: message })
|
|
8390
8443
|
]
|
|
8391
8444
|
}
|
|
8392
8445
|
),
|
|
8393
|
-
closable && /* @__PURE__ */
|
|
8446
|
+
closable && /* @__PURE__ */ jsx246(
|
|
8394
8447
|
Button,
|
|
8395
8448
|
{
|
|
8396
8449
|
icon: CloseIcon,
|
|
@@ -8421,7 +8474,7 @@ var Grid_default = {
|
|
|
8421
8474
|
};
|
|
8422
8475
|
|
|
8423
8476
|
// src/components/Grid/Grid.tsx
|
|
8424
|
-
import { jsx as
|
|
8477
|
+
import { jsx as jsx247 } from "react/jsx-runtime";
|
|
8425
8478
|
var Grid = (props) => {
|
|
8426
8479
|
const {
|
|
8427
8480
|
id,
|
|
@@ -8466,13 +8519,13 @@ var Grid = (props) => {
|
|
|
8466
8519
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
8467
8520
|
["--dds-grid-xl-column-gap"]: (columnGap == null ? void 0 : columnGap.xl) ? columnGap.xl : "var(--dds-grid-xl-gutter-size)"
|
|
8468
8521
|
};
|
|
8469
|
-
return as === "div" ? /* @__PURE__ */
|
|
8522
|
+
return as === "div" ? /* @__PURE__ */ jsx247(
|
|
8470
8523
|
"div",
|
|
8471
8524
|
{
|
|
8472
8525
|
...getBaseHTMLProps(id, cn(className, Grid_default.grid), htmlProps, rest),
|
|
8473
8526
|
style: { ...style, ...htmlProps == null ? void 0 : htmlProps.style, ...styleVariables }
|
|
8474
8527
|
}
|
|
8475
|
-
) : /* @__PURE__ */
|
|
8528
|
+
) : /* @__PURE__ */ jsx247(
|
|
8476
8529
|
"form",
|
|
8477
8530
|
{
|
|
8478
8531
|
...getBaseHTMLProps(id, cn(className, Grid_default.grid), htmlProps, rest),
|
|
@@ -8483,7 +8536,7 @@ var Grid = (props) => {
|
|
|
8483
8536
|
Grid.displayName = "Grid";
|
|
8484
8537
|
|
|
8485
8538
|
// src/components/Grid/GridChild.tsx
|
|
8486
|
-
import { jsx as
|
|
8539
|
+
import { jsx as jsx248 } from "react/jsx-runtime";
|
|
8487
8540
|
var isRelativeGridColumn = (type) => {
|
|
8488
8541
|
return type === "all" || type === "firstHalf" || type === "secondHalf";
|
|
8489
8542
|
};
|
|
@@ -8533,7 +8586,7 @@ var GridChild = (props) => {
|
|
|
8533
8586
|
firstHalf: "first-half",
|
|
8534
8587
|
secondHalf: "second-half"
|
|
8535
8588
|
};
|
|
8536
|
-
return /* @__PURE__ */
|
|
8589
|
+
return /* @__PURE__ */ jsx248(
|
|
8537
8590
|
"div",
|
|
8538
8591
|
{
|
|
8539
8592
|
...getBaseHTMLProps(
|
|
@@ -8562,11 +8615,11 @@ var InlineButton_default = {
|
|
|
8562
8615
|
};
|
|
8563
8616
|
|
|
8564
8617
|
// src/components/InlineButton/InlineButton.tsx
|
|
8565
|
-
import { jsx as
|
|
8618
|
+
import { jsx as jsx249 } from "react/jsx-runtime";
|
|
8566
8619
|
var InlineButton = forwardRef63(
|
|
8567
8620
|
(props, ref) => {
|
|
8568
8621
|
const { className, ...rest } = props;
|
|
8569
|
-
return /* @__PURE__ */
|
|
8622
|
+
return /* @__PURE__ */ jsx249(
|
|
8570
8623
|
"button",
|
|
8571
8624
|
{
|
|
8572
8625
|
ref,
|
|
@@ -8594,7 +8647,7 @@ import {
|
|
|
8594
8647
|
isValidElement as isValidElement6,
|
|
8595
8648
|
useState as useState15
|
|
8596
8649
|
} from "react";
|
|
8597
|
-
import { Fragment as Fragment6, jsx as
|
|
8650
|
+
import { Fragment as Fragment6, jsx as jsx250 } from "react/jsx-runtime";
|
|
8598
8651
|
var InlineEdit = (props) => {
|
|
8599
8652
|
const {
|
|
8600
8653
|
emptiable,
|
|
@@ -8644,7 +8697,7 @@ var InlineEdit = (props) => {
|
|
|
8644
8697
|
emptiable
|
|
8645
8698
|
})
|
|
8646
8699
|
);
|
|
8647
|
-
return /* @__PURE__ */
|
|
8700
|
+
return /* @__PURE__ */ jsx250(Fragment6, { children: inputChild });
|
|
8648
8701
|
};
|
|
8649
8702
|
InlineEdit.displayName = "InlineEdit";
|
|
8650
8703
|
|
|
@@ -8670,7 +8723,7 @@ var inlineEditVisuallyHidden = (id, emptiable) => /* @__PURE__ */ jsxs52(Visuall
|
|
|
8670
8723
|
] });
|
|
8671
8724
|
|
|
8672
8725
|
// src/components/InlineEdit/InlineTextArea.tsx
|
|
8673
|
-
import { jsx as
|
|
8726
|
+
import { jsx as jsx251, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
8674
8727
|
var InlineTextArea = forwardRef64((props, ref) => {
|
|
8675
8728
|
const {
|
|
8676
8729
|
id,
|
|
@@ -8694,7 +8747,7 @@ var InlineTextArea = forwardRef64((props, ref) => {
|
|
|
8694
8747
|
const combinedRef = useCombinedRef(ref, inputRef);
|
|
8695
8748
|
return /* @__PURE__ */ jsxs53("div", { className: InlineEdit_default.container, style: { width }, children: [
|
|
8696
8749
|
/* @__PURE__ */ jsxs53("div", { className: Input_default["input-group"], children: [
|
|
8697
|
-
!isEditing && !hideIcon && /* @__PURE__ */
|
|
8750
|
+
!isEditing && !hideIcon && /* @__PURE__ */ jsx251(
|
|
8698
8751
|
"span",
|
|
8699
8752
|
{
|
|
8700
8753
|
onClick: () => {
|
|
@@ -8702,10 +8755,10 @@ var InlineTextArea = forwardRef64((props, ref) => {
|
|
|
8702
8755
|
(_a = inputRef.current) == null ? void 0 : _a.focus();
|
|
8703
8756
|
},
|
|
8704
8757
|
className: InlineEdit_default["icon-wrapper"],
|
|
8705
|
-
children: /* @__PURE__ */
|
|
8758
|
+
children: /* @__PURE__ */ jsx251(Icon, { icon: EditIcon, iconSize: "small" })
|
|
8706
8759
|
}
|
|
8707
8760
|
),
|
|
8708
|
-
/* @__PURE__ */
|
|
8761
|
+
/* @__PURE__ */ jsx251(
|
|
8709
8762
|
"textarea",
|
|
8710
8763
|
{
|
|
8711
8764
|
...rest,
|
|
@@ -8737,12 +8790,12 @@ var InlineTextArea = forwardRef64((props, ref) => {
|
|
|
8737
8790
|
InlineTextArea.displayName = "InlineTextArea";
|
|
8738
8791
|
|
|
8739
8792
|
// src/components/InlineEdit/InlineEditTextArea.tsx
|
|
8740
|
-
import { jsx as
|
|
8793
|
+
import { jsx as jsx252 } from "react/jsx-runtime";
|
|
8741
8794
|
var InlineEditTextArea = forwardRef65((props, ref) => {
|
|
8742
8795
|
const { onSetValue, emptiable, value, onFocus, onChange, onBlur, ...rest } = props;
|
|
8743
8796
|
const textareaRef = useRef24(null);
|
|
8744
8797
|
const combinedRef = useCombinedRef(ref, textareaRef);
|
|
8745
|
-
return /* @__PURE__ */
|
|
8798
|
+
return /* @__PURE__ */ jsx252(
|
|
8746
8799
|
InlineEdit,
|
|
8747
8800
|
{
|
|
8748
8801
|
onSetValue,
|
|
@@ -8752,7 +8805,7 @@ var InlineEditTextArea = forwardRef65((props, ref) => {
|
|
|
8752
8805
|
onFocus,
|
|
8753
8806
|
onChange,
|
|
8754
8807
|
onBlur,
|
|
8755
|
-
children: /* @__PURE__ */
|
|
8808
|
+
children: /* @__PURE__ */ jsx252(InlineTextArea, { ref: combinedRef, ...rest })
|
|
8756
8809
|
}
|
|
8757
8810
|
);
|
|
8758
8811
|
});
|
|
@@ -8762,7 +8815,7 @@ import { forwardRef as forwardRef67, useRef as useRef26 } from "react";
|
|
|
8762
8815
|
|
|
8763
8816
|
// src/components/InlineEdit/InlineInput.tsx
|
|
8764
8817
|
import { forwardRef as forwardRef66, useId as useId13, useRef as useRef25 } from "react";
|
|
8765
|
-
import { jsx as
|
|
8818
|
+
import { jsx as jsx253, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
8766
8819
|
var InlineInput = forwardRef66(
|
|
8767
8820
|
(props, ref) => {
|
|
8768
8821
|
const {
|
|
@@ -8787,7 +8840,7 @@ var InlineInput = forwardRef66(
|
|
|
8787
8840
|
const combinedRef = useCombinedRef(ref, inputRef);
|
|
8788
8841
|
return /* @__PURE__ */ jsxs54("div", { className: InlineEdit_default.container, style: { width }, children: [
|
|
8789
8842
|
/* @__PURE__ */ jsxs54("div", { className: Input_default["input-group"], children: [
|
|
8790
|
-
!isEditing && !hideIcon && /* @__PURE__ */
|
|
8843
|
+
!isEditing && !hideIcon && /* @__PURE__ */ jsx253(
|
|
8791
8844
|
"span",
|
|
8792
8845
|
{
|
|
8793
8846
|
onClick: () => {
|
|
@@ -8795,10 +8848,10 @@ var InlineInput = forwardRef66(
|
|
|
8795
8848
|
(_a = inputRef.current) == null ? void 0 : _a.focus();
|
|
8796
8849
|
},
|
|
8797
8850
|
className: InlineEdit_default["icon-wrapper"],
|
|
8798
|
-
children: /* @__PURE__ */
|
|
8851
|
+
children: /* @__PURE__ */ jsx253(Icon, { icon: EditIcon, iconSize: "small" })
|
|
8799
8852
|
}
|
|
8800
8853
|
),
|
|
8801
|
-
/* @__PURE__ */
|
|
8854
|
+
/* @__PURE__ */ jsx253(
|
|
8802
8855
|
"input",
|
|
8803
8856
|
{
|
|
8804
8857
|
...rest,
|
|
@@ -8829,12 +8882,12 @@ var InlineInput = forwardRef66(
|
|
|
8829
8882
|
InlineInput.displayName = "InlineInput";
|
|
8830
8883
|
|
|
8831
8884
|
// src/components/InlineEdit/InlineEditInput.tsx
|
|
8832
|
-
import { jsx as
|
|
8885
|
+
import { jsx as jsx254 } from "react/jsx-runtime";
|
|
8833
8886
|
var InlineEditInput = forwardRef67((props, ref) => {
|
|
8834
8887
|
const { onSetValue, emptiable, value, onFocus, onChange, onBlur, ...rest } = props;
|
|
8835
8888
|
const inputRef = useRef26(null);
|
|
8836
8889
|
const combinedRef = useCombinedRef(ref, inputRef);
|
|
8837
|
-
return /* @__PURE__ */
|
|
8890
|
+
return /* @__PURE__ */ jsx254(
|
|
8838
8891
|
InlineEdit,
|
|
8839
8892
|
{
|
|
8840
8893
|
onSetValue,
|
|
@@ -8844,7 +8897,7 @@ var InlineEditInput = forwardRef67((props, ref) => {
|
|
|
8844
8897
|
onFocus,
|
|
8845
8898
|
onChange,
|
|
8846
8899
|
onBlur,
|
|
8847
|
-
children: /* @__PURE__ */
|
|
8900
|
+
children: /* @__PURE__ */ jsx254(InlineInput, { ...rest, ref: combinedRef })
|
|
8848
8901
|
}
|
|
8849
8902
|
);
|
|
8850
8903
|
});
|
|
@@ -8907,9 +8960,9 @@ var InternalHeader_default = {
|
|
|
8907
8960
|
|
|
8908
8961
|
// src/components/InternalHeader/NavigationItem.tsx
|
|
8909
8962
|
import { forwardRef as forwardRef68 } from "react";
|
|
8910
|
-
import { jsx as
|
|
8963
|
+
import { jsx as jsx255 } from "react/jsx-runtime";
|
|
8911
8964
|
var NavigationItem = forwardRef68(({ isCurrent, ...rest }, ref) => {
|
|
8912
|
-
return /* @__PURE__ */
|
|
8965
|
+
return /* @__PURE__ */ jsx255(
|
|
8913
8966
|
"a",
|
|
8914
8967
|
{
|
|
8915
8968
|
...rest,
|
|
@@ -8926,7 +8979,7 @@ var NavigationItem = forwardRef68(({ isCurrent, ...rest }, ref) => {
|
|
|
8926
8979
|
});
|
|
8927
8980
|
|
|
8928
8981
|
// src/components/InternalHeader/InternalHeader.tsx
|
|
8929
|
-
import { jsx as
|
|
8982
|
+
import { jsx as jsx256, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
8930
8983
|
var InternalHeader = (props) => {
|
|
8931
8984
|
const {
|
|
8932
8985
|
applicationDesc,
|
|
@@ -8960,7 +9013,7 @@ var InternalHeader = (props) => {
|
|
|
8960
9013
|
const hasContextMenuElements = !!contextMenuItems && contextMenuItems.length > 0;
|
|
8961
9014
|
const hasSmallScreenBreakpoint = !!smallScreenBreakpoint;
|
|
8962
9015
|
const hasNavInContextMenu = hasSmallScreenBreakpoint && hasNavigationElements;
|
|
8963
|
-
const navigation = hasNavigationElements ? /* @__PURE__ */
|
|
9016
|
+
const navigation = hasNavigationElements ? /* @__PURE__ */ jsx256("nav", { "aria-label": "sidenavigasjon", children: /* @__PURE__ */ jsx256(
|
|
8964
9017
|
"ul",
|
|
8965
9018
|
{
|
|
8966
9019
|
className: cn(
|
|
@@ -8971,7 +9024,7 @@ var InternalHeader = (props) => {
|
|
|
8971
9024
|
children: navItems.map((item, index) => {
|
|
8972
9025
|
const { href, ...rest2 } = item;
|
|
8973
9026
|
const isCurrent = href === currentPage;
|
|
8974
|
-
return /* @__PURE__ */
|
|
9027
|
+
return /* @__PURE__ */ jsx256("li", { className: InternalHeader_default["nav-list__item"], children: /* @__PURE__ */ jsx256(
|
|
8975
9028
|
NavigationItem,
|
|
8976
9029
|
{
|
|
8977
9030
|
href,
|
|
@@ -9000,7 +9053,7 @@ var InternalHeader = (props) => {
|
|
|
9000
9053
|
rest
|
|
9001
9054
|
),
|
|
9002
9055
|
children: [
|
|
9003
|
-
/* @__PURE__ */
|
|
9056
|
+
/* @__PURE__ */ jsx256(Typography, { typographyType: "bodySans02", bold: true, as: "span", children: applicationHref ? /* @__PURE__ */ jsx256(
|
|
9004
9057
|
"a",
|
|
9005
9058
|
{
|
|
9006
9059
|
href: applicationHref,
|
|
@@ -9009,8 +9062,8 @@ var InternalHeader = (props) => {
|
|
|
9009
9062
|
children: applicationName
|
|
9010
9063
|
}
|
|
9011
9064
|
) : applicationName }),
|
|
9012
|
-
/* @__PURE__ */
|
|
9013
|
-
(hasContextMenu || navigation !== null) && /* @__PURE__ */
|
|
9065
|
+
/* @__PURE__ */ jsx256(Typography, { typographyType: "bodySans02", as: "span", children: applicationDesc }),
|
|
9066
|
+
(hasContextMenu || navigation !== null) && /* @__PURE__ */ jsx256("div", { className: InternalHeader_default["bar-separator"] }),
|
|
9014
9067
|
navigation,
|
|
9015
9068
|
hasContextMenu && /* @__PURE__ */ jsxs55(
|
|
9016
9069
|
"div",
|
|
@@ -9021,7 +9074,7 @@ var InternalHeader = (props) => {
|
|
|
9021
9074
|
!hasContextMenuLargeScreen && hasSmallScreenBreakpoint && InternalHeader_default[`context-menu-group--small-screen-only-${smallScreenBreakpoint}`]
|
|
9022
9075
|
),
|
|
9023
9076
|
children: [
|
|
9024
|
-
/* @__PURE__ */
|
|
9077
|
+
/* @__PURE__ */ jsx256(
|
|
9025
9078
|
Button,
|
|
9026
9079
|
{
|
|
9027
9080
|
ref: buttonRef,
|
|
@@ -9041,8 +9094,8 @@ var InternalHeader = (props) => {
|
|
|
9041
9094
|
anchorRef: buttonRef,
|
|
9042
9095
|
className: InternalHeader_default["context-menu"],
|
|
9043
9096
|
children: [
|
|
9044
|
-
user && /* @__PURE__ */
|
|
9045
|
-
hasNavInContextMenu && /* @__PURE__ */
|
|
9097
|
+
user && /* @__PURE__ */ jsx256(OverflowMenuList, { children: user.href ? /* @__PURE__ */ jsx256(OverflowMenuLink, { icon: PersonIcon, ...user }) : /* @__PURE__ */ jsx256(OverflowMenuSpan, { icon: PersonIcon, ...user }) }),
|
|
9098
|
+
hasNavInContextMenu && /* @__PURE__ */ jsx256(
|
|
9046
9099
|
"nav",
|
|
9047
9100
|
{
|
|
9048
9101
|
"aria-label": "sidenavigasjon",
|
|
@@ -9050,10 +9103,10 @@ var InternalHeader = (props) => {
|
|
|
9050
9103
|
InternalHeader_default["nav--in-menu--small-screen"],
|
|
9051
9104
|
InternalHeader_default[`nav--in-menu--small-screen-${smallScreenBreakpoint}`]
|
|
9052
9105
|
),
|
|
9053
|
-
children: /* @__PURE__ */
|
|
9106
|
+
children: /* @__PURE__ */ jsx256(OverflowMenuList, { children: navItems.map((item) => /* @__PURE__ */ jsx256(OverflowMenuLink, { ...item })) })
|
|
9054
9107
|
}
|
|
9055
9108
|
),
|
|
9056
|
-
hasNavInContextMenu && hasContextMenuElements && /* @__PURE__ */
|
|
9109
|
+
hasNavInContextMenu && hasContextMenuElements && /* @__PURE__ */ jsx256(
|
|
9057
9110
|
OverflowMenuDivider,
|
|
9058
9111
|
{
|
|
9059
9112
|
className: cn(
|
|
@@ -9062,8 +9115,8 @@ var InternalHeader = (props) => {
|
|
|
9062
9115
|
)
|
|
9063
9116
|
}
|
|
9064
9117
|
),
|
|
9065
|
-
hasContextMenuElements && /* @__PURE__ */
|
|
9066
|
-
return item.href ? /* @__PURE__ */
|
|
9118
|
+
hasContextMenuElements && /* @__PURE__ */ jsx256(OverflowMenuList, { children: contextMenuItems.map((item) => {
|
|
9119
|
+
return item.href ? /* @__PURE__ */ jsx256(OverflowMenuLink, { ...item }) : /* @__PURE__ */ jsx256(
|
|
9067
9120
|
OverflowMenuButton,
|
|
9068
9121
|
{
|
|
9069
9122
|
...item
|
|
@@ -9095,7 +9148,7 @@ var List_default = {
|
|
|
9095
9148
|
};
|
|
9096
9149
|
|
|
9097
9150
|
// src/components/List/List.tsx
|
|
9098
|
-
import { jsx as
|
|
9151
|
+
import { jsx as jsx257 } from "react/jsx-runtime";
|
|
9099
9152
|
var List = forwardRef69((props, ref) => {
|
|
9100
9153
|
const {
|
|
9101
9154
|
listType = "unordered",
|
|
@@ -9107,7 +9160,7 @@ var List = forwardRef69((props, ref) => {
|
|
|
9107
9160
|
...rest
|
|
9108
9161
|
} = props;
|
|
9109
9162
|
const List2 = listType === "ordered" ? "ol" : "ul";
|
|
9110
|
-
return /* @__PURE__ */
|
|
9163
|
+
return /* @__PURE__ */ jsx257(
|
|
9111
9164
|
List2,
|
|
9112
9165
|
{
|
|
9113
9166
|
...getBaseHTMLProps(id, className, htmlProps, rest),
|
|
@@ -9125,10 +9178,10 @@ List.displayName = "List";
|
|
|
9125
9178
|
|
|
9126
9179
|
// src/components/List/ListItem.tsx
|
|
9127
9180
|
import { forwardRef as forwardRef70 } from "react";
|
|
9128
|
-
import { jsx as
|
|
9181
|
+
import { jsx as jsx258 } from "react/jsx-runtime";
|
|
9129
9182
|
var ListItem = forwardRef70(
|
|
9130
9183
|
({ className, ...rest }, ref) => {
|
|
9131
|
-
return /* @__PURE__ */
|
|
9184
|
+
return /* @__PURE__ */ jsx258("li", { ref, ...rest, className: cn(className, List_default.li) });
|
|
9132
9185
|
}
|
|
9133
9186
|
);
|
|
9134
9187
|
ListItem.displayName = "ListItem";
|
|
@@ -9155,7 +9208,7 @@ var LocalMessage_default = {
|
|
|
9155
9208
|
};
|
|
9156
9209
|
|
|
9157
9210
|
// src/components/LocalMessage/LocalMessage.tsx
|
|
9158
|
-
import { Fragment as Fragment7, jsx as
|
|
9211
|
+
import { Fragment as Fragment7, jsx as jsx259, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
9159
9212
|
var icons2 = {
|
|
9160
9213
|
info: InfoIcon,
|
|
9161
9214
|
danger: ErrorIcon,
|
|
@@ -9180,7 +9233,7 @@ var LocalMessage = forwardRef71(
|
|
|
9180
9233
|
} = props;
|
|
9181
9234
|
const [isClosed, setClosed] = useState17(false);
|
|
9182
9235
|
if (isClosed) {
|
|
9183
|
-
return /* @__PURE__ */
|
|
9236
|
+
return /* @__PURE__ */ jsx259(Fragment7, {});
|
|
9184
9237
|
}
|
|
9185
9238
|
return /* @__PURE__ */ jsxs56(
|
|
9186
9239
|
"div",
|
|
@@ -9201,15 +9254,15 @@ var LocalMessage = forwardRef71(
|
|
|
9201
9254
|
),
|
|
9202
9255
|
style: { ...htmlProps == null ? void 0 : htmlProps.style, width },
|
|
9203
9256
|
children: [
|
|
9204
|
-
/* @__PURE__ */
|
|
9257
|
+
/* @__PURE__ */ jsx259(
|
|
9205
9258
|
Icon,
|
|
9206
9259
|
{
|
|
9207
9260
|
icon: icons2[purpose],
|
|
9208
9261
|
className: cn(LocalMessage_default.icon, LocalMessage_default.container__icon)
|
|
9209
9262
|
}
|
|
9210
9263
|
),
|
|
9211
|
-
/* @__PURE__ */
|
|
9212
|
-
closable && /* @__PURE__ */
|
|
9264
|
+
/* @__PURE__ */ jsx259("div", { className: LocalMessage_default.container__text, children: children != null ? children : /* @__PURE__ */ jsx259("span", { children: message }) }),
|
|
9265
|
+
closable && /* @__PURE__ */ jsx259(
|
|
9213
9266
|
Button,
|
|
9214
9267
|
{
|
|
9215
9268
|
icon: CloseIcon,
|
|
@@ -9242,6 +9295,7 @@ import { createPortal as createPortal2 } from "react-dom";
|
|
|
9242
9295
|
// src/components/Modal/Modal.module.css
|
|
9243
9296
|
var Modal_default = {
|
|
9244
9297
|
container: "Modal_container",
|
|
9298
|
+
"container-scrollable": "Modal_container-scrollable",
|
|
9245
9299
|
content: "Modal_content",
|
|
9246
9300
|
body: "Modal_body",
|
|
9247
9301
|
header: "Modal_header",
|
|
@@ -9250,7 +9304,7 @@ var Modal_default = {
|
|
|
9250
9304
|
};
|
|
9251
9305
|
|
|
9252
9306
|
// src/components/Modal/Modal.tsx
|
|
9253
|
-
import { jsx as
|
|
9307
|
+
import { jsx as jsx260, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
9254
9308
|
var Modal = forwardRef72((props, ref) => {
|
|
9255
9309
|
const {
|
|
9256
9310
|
isOpen = false,
|
|
@@ -9261,6 +9315,7 @@ var Modal = forwardRef72((props, ref) => {
|
|
|
9261
9315
|
id,
|
|
9262
9316
|
triggerRef,
|
|
9263
9317
|
initialFocusRef,
|
|
9318
|
+
scrollable,
|
|
9264
9319
|
className,
|
|
9265
9320
|
htmlProps,
|
|
9266
9321
|
...rest
|
|
@@ -9294,7 +9349,7 @@ var Modal = forwardRef72((props, ref) => {
|
|
|
9294
9349
|
useOnKeyDown(["Escape", "Esc"], () => handleClose());
|
|
9295
9350
|
const hasTransitionedIn = useMountTransition(isOpen, 200);
|
|
9296
9351
|
return isOpen || hasTransitionedIn ? createPortal2(
|
|
9297
|
-
/* @__PURE__ */
|
|
9352
|
+
/* @__PURE__ */ jsx260(
|
|
9298
9353
|
Backdrop,
|
|
9299
9354
|
{
|
|
9300
9355
|
isMounted: isOpen && hasTransitionedIn,
|
|
@@ -9305,7 +9360,13 @@ var Modal = forwardRef72((props, ref) => {
|
|
|
9305
9360
|
{
|
|
9306
9361
|
...getBaseHTMLProps(
|
|
9307
9362
|
id,
|
|
9308
|
-
cn(
|
|
9363
|
+
cn(
|
|
9364
|
+
className,
|
|
9365
|
+
Modal_default.container,
|
|
9366
|
+
focusable,
|
|
9367
|
+
scrollable && Modal_default["container-scrollable"],
|
|
9368
|
+
utilStyles_default.scrollbar
|
|
9369
|
+
),
|
|
9309
9370
|
htmlProps,
|
|
9310
9371
|
rest
|
|
9311
9372
|
),
|
|
@@ -9318,11 +9379,7 @@ var Modal = forwardRef72((props, ref) => {
|
|
|
9318
9379
|
id: modalId,
|
|
9319
9380
|
elevation: 4,
|
|
9320
9381
|
children: [
|
|
9321
|
-
/* @__PURE__ */
|
|
9322
|
-
!!header && /* @__PURE__ */ jsx259("div", { id: headerId, className: Modal_default.header, children: typeof header === "string" ? /* @__PURE__ */ jsx259(Heading, { level: 2, typographyType: "headingSans03", children: header }) : header }),
|
|
9323
|
-
children
|
|
9324
|
-
] }),
|
|
9325
|
-
onClose && /* @__PURE__ */ jsx259(
|
|
9382
|
+
onClose && /* @__PURE__ */ jsx260(
|
|
9326
9383
|
Button,
|
|
9327
9384
|
{
|
|
9328
9385
|
size: "small",
|
|
@@ -9330,9 +9387,14 @@ var Modal = forwardRef72((props, ref) => {
|
|
|
9330
9387
|
icon: CloseIcon,
|
|
9331
9388
|
onClick: handleClose,
|
|
9332
9389
|
"aria-label": "Lukk dialog",
|
|
9333
|
-
className: Modal_default["close-button"]
|
|
9390
|
+
className: Modal_default["close-button"],
|
|
9391
|
+
htmlProps: { tabIndex: -1 }
|
|
9334
9392
|
}
|
|
9335
|
-
)
|
|
9393
|
+
),
|
|
9394
|
+
/* @__PURE__ */ jsxs57("div", { className: Modal_default.content, children: [
|
|
9395
|
+
!!header && /* @__PURE__ */ jsx260("div", { id: headerId, className: Modal_default.header, children: typeof header === "string" ? /* @__PURE__ */ jsx260(Heading, { level: 2, typographyType: "headingSans03", children: header }) : header }),
|
|
9396
|
+
children
|
|
9397
|
+
] })
|
|
9336
9398
|
]
|
|
9337
9399
|
}
|
|
9338
9400
|
)
|
|
@@ -9345,11 +9407,11 @@ Modal.displayName = "Modal";
|
|
|
9345
9407
|
|
|
9346
9408
|
// src/components/Modal/ModalBody.tsx
|
|
9347
9409
|
import { forwardRef as forwardRef73 } from "react";
|
|
9348
|
-
import { jsx as
|
|
9410
|
+
import { jsx as jsx261 } from "react/jsx-runtime";
|
|
9349
9411
|
var ModalBody = forwardRef73(
|
|
9350
9412
|
(props, ref) => {
|
|
9351
9413
|
const { children, id, className, scrollable, htmlProps, height, ...rest } = props;
|
|
9352
|
-
return /* @__PURE__ */
|
|
9414
|
+
return /* @__PURE__ */ jsx261(
|
|
9353
9415
|
"div",
|
|
9354
9416
|
{
|
|
9355
9417
|
ref,
|
|
@@ -9374,10 +9436,10 @@ ModalBody.displayName = "ModalBody";
|
|
|
9374
9436
|
|
|
9375
9437
|
// src/components/Modal/ModalActions.tsx
|
|
9376
9438
|
import { forwardRef as forwardRef74 } from "react";
|
|
9377
|
-
import { jsx as
|
|
9439
|
+
import { jsx as jsx262 } from "react/jsx-runtime";
|
|
9378
9440
|
var ModalActions = forwardRef74(
|
|
9379
9441
|
({ className, ...rest }, ref) => {
|
|
9380
|
-
return /* @__PURE__ */
|
|
9442
|
+
return /* @__PURE__ */ jsx262("div", { ref, ...rest, className: cn(className, Modal_default.actions) });
|
|
9381
9443
|
}
|
|
9382
9444
|
);
|
|
9383
9445
|
ModalActions.displayName = "ModalActions";
|
|
@@ -9745,7 +9807,7 @@ var getCustomStyles = (size2, hasError, hasIcon, isReadOnly) => ({
|
|
|
9745
9807
|
import {
|
|
9746
9808
|
components
|
|
9747
9809
|
} from "react-select";
|
|
9748
|
-
import { jsx as
|
|
9810
|
+
import { jsx as jsx263, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
9749
9811
|
var {
|
|
9750
9812
|
Option,
|
|
9751
9813
|
NoOptionsMessage,
|
|
@@ -9767,26 +9829,26 @@ var getIndicatorIconSize = (componentSize) => {
|
|
|
9767
9829
|
}
|
|
9768
9830
|
};
|
|
9769
9831
|
var DDSOption = (props, componentSize) => /* @__PURE__ */ jsxs58(Option, { ...props, children: [
|
|
9770
|
-
props.isSelected && /* @__PURE__ */
|
|
9832
|
+
props.isSelected && /* @__PURE__ */ jsx263(Icon, { icon: CheckIcon, iconSize: getFormInputIconSize(componentSize) }),
|
|
9771
9833
|
props.children
|
|
9772
9834
|
] });
|
|
9773
|
-
var CustomOption = (props, Element) => /* @__PURE__ */
|
|
9774
|
-
var CustomSingleValue = (props, id, Element) => /* @__PURE__ */
|
|
9775
|
-
var DDSNoOptionsMessage = (props) => /* @__PURE__ */
|
|
9776
|
-
var DDSClearIndicator = (props, size2) => /* @__PURE__ */
|
|
9777
|
-
var DDSMultiValueRemove = (props) => /* @__PURE__ */
|
|
9835
|
+
var CustomOption = (props, Element) => /* @__PURE__ */ jsx263(Option, { ...props, children: /* @__PURE__ */ jsx263(Element, { ...props }) });
|
|
9836
|
+
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 }) });
|
|
9837
|
+
var DDSNoOptionsMessage = (props) => /* @__PURE__ */ jsx263(NoOptionsMessage, { ...props, children: "Ingen treff" });
|
|
9838
|
+
var DDSClearIndicator = (props, size2) => /* @__PURE__ */ jsx263(ClearIndicator, { ...props, children: /* @__PURE__ */ jsx263(Icon, { icon: CloseSmallIcon, iconSize: getIndicatorIconSize(size2) }) });
|
|
9839
|
+
var DDSMultiValueRemove = (props) => /* @__PURE__ */ jsx263(MultiValueRemove, { ...props, children: /* @__PURE__ */ jsx263(Icon, { icon: CloseSmallIcon, iconSize: "small" }) });
|
|
9778
9840
|
var DDSDropdownIndicator = (props, size2) => {
|
|
9779
9841
|
const { className, ...rest } = props;
|
|
9780
|
-
return /* @__PURE__ */
|
|
9842
|
+
return /* @__PURE__ */ jsx263(
|
|
9781
9843
|
DropdownIndicator,
|
|
9782
9844
|
{
|
|
9783
9845
|
...rest,
|
|
9784
9846
|
className: cn(className, Select_default["dropdown-indicator"]),
|
|
9785
|
-
children: /* @__PURE__ */
|
|
9847
|
+
children: /* @__PURE__ */ jsx263(Icon, { icon: ChevronDownIcon, iconSize: getIndicatorIconSize(size2) })
|
|
9786
9848
|
}
|
|
9787
9849
|
);
|
|
9788
9850
|
};
|
|
9789
|
-
var DDSInput = (props, ariaInvalid, ariaDescribedby) => /* @__PURE__ */
|
|
9851
|
+
var DDSInput = (props, ariaInvalid, ariaDescribedby) => /* @__PURE__ */ jsx263(
|
|
9790
9852
|
Input2,
|
|
9791
9853
|
{
|
|
9792
9854
|
...props,
|
|
@@ -9796,7 +9858,7 @@ var DDSInput = (props, ariaInvalid, ariaDescribedby) => /* @__PURE__ */ jsx262(
|
|
|
9796
9858
|
);
|
|
9797
9859
|
var DDSControl = (props, componentSize, readOnly, icon, dataTestId) => {
|
|
9798
9860
|
const { className, ...rest } = props;
|
|
9799
|
-
return /* @__PURE__ */
|
|
9861
|
+
return /* @__PURE__ */ jsx263(
|
|
9800
9862
|
"div",
|
|
9801
9863
|
{
|
|
9802
9864
|
"data-testid": dataTestId ? dataTestId + "-control" : void 0,
|
|
@@ -9811,7 +9873,7 @@ var DDSControl = (props, componentSize, readOnly, icon, dataTestId) => {
|
|
|
9811
9873
|
readOnly && Select_default["control--readonly"]
|
|
9812
9874
|
),
|
|
9813
9875
|
children: [
|
|
9814
|
-
icon && /* @__PURE__ */
|
|
9876
|
+
icon && /* @__PURE__ */ jsx263(
|
|
9815
9877
|
Icon,
|
|
9816
9878
|
{
|
|
9817
9879
|
icon,
|
|
@@ -9831,7 +9893,7 @@ var DDSControl = (props, componentSize, readOnly, icon, dataTestId) => {
|
|
|
9831
9893
|
};
|
|
9832
9894
|
|
|
9833
9895
|
// src/components/Select/Select.tsx
|
|
9834
|
-
import { jsx as
|
|
9896
|
+
import { jsx as jsx264, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
9835
9897
|
var getPlaceholder = (placeholder, isMulti) => placeholder ? placeholder : isMulti ? "-- Velg en eller flere --" : "-- Velg fra listen --";
|
|
9836
9898
|
function SelectInner(props, ref) {
|
|
9837
9899
|
const {
|
|
@@ -9869,6 +9931,10 @@ function SelectInner(props, ref) {
|
|
|
9869
9931
|
const showRequiredStyling = !!(required || ariaRequired);
|
|
9870
9932
|
const tipId = derivativeIdGenerator(uniqueId, "tip");
|
|
9871
9933
|
const errorMessageId = derivativeIdGenerator(uniqueId, "errorMessage");
|
|
9934
|
+
const styleVariables = {
|
|
9935
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
9936
|
+
["--dds-select-width"]: width ? width : componentSize === "tiny" ? "210px" : "var(--dds-input-default-width)"
|
|
9937
|
+
};
|
|
9872
9938
|
const reactSelectProps = {
|
|
9873
9939
|
options,
|
|
9874
9940
|
value,
|
|
@@ -9929,9 +9995,9 @@ function SelectInner(props, ref) {
|
|
|
9929
9995
|
isDisabled && Select_default["container--disabled"],
|
|
9930
9996
|
readOnly && Select_default["container--readonly"]
|
|
9931
9997
|
),
|
|
9932
|
-
style: { ...style,
|
|
9998
|
+
style: { ...style, ...styleVariables },
|
|
9933
9999
|
children: [
|
|
9934
|
-
hasLabel && /* @__PURE__ */
|
|
10000
|
+
hasLabel && /* @__PURE__ */ jsx264(
|
|
9935
10001
|
Label,
|
|
9936
10002
|
{
|
|
9937
10003
|
htmlFor: uniqueId,
|
|
@@ -9941,7 +10007,7 @@ function SelectInner(props, ref) {
|
|
|
9941
10007
|
children: label
|
|
9942
10008
|
}
|
|
9943
10009
|
),
|
|
9944
|
-
/* @__PURE__ */
|
|
10010
|
+
/* @__PURE__ */ jsx264(ReactSelect, { ...reactSelectProps, ref }),
|
|
9945
10011
|
renderInputMessage(tip, tipId, errorMessage, errorMessageId)
|
|
9946
10012
|
]
|
|
9947
10013
|
}
|
|
@@ -9966,7 +10032,7 @@ var NativeSelect_default = {
|
|
|
9966
10032
|
};
|
|
9967
10033
|
|
|
9968
10034
|
// src/components/Select/NativeSelect/NativeSelect.tsx
|
|
9969
|
-
import { jsx as
|
|
10035
|
+
import { jsx as jsx265, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
9970
10036
|
var NativeSelect = forwardRef76(
|
|
9971
10037
|
(props, ref) => {
|
|
9972
10038
|
const {
|
|
@@ -9999,7 +10065,7 @@ var NativeSelect = forwardRef76(
|
|
|
9999
10065
|
["--dds-native-select-width"]: width ? width : componentSize === "tiny" ? "210px" : "var(--dds-input-default-width)"
|
|
10000
10066
|
};
|
|
10001
10067
|
return /* @__PURE__ */ jsxs60("div", { children: [
|
|
10002
|
-
hasLabel && /* @__PURE__ */
|
|
10068
|
+
hasLabel && /* @__PURE__ */ jsx265(
|
|
10003
10069
|
Label,
|
|
10004
10070
|
{
|
|
10005
10071
|
className: Input_default.label,
|
|
@@ -10010,7 +10076,7 @@ var NativeSelect = forwardRef76(
|
|
|
10010
10076
|
}
|
|
10011
10077
|
),
|
|
10012
10078
|
/* @__PURE__ */ jsxs60("div", { className: NativeSelect_default.container, children: [
|
|
10013
|
-
/* @__PURE__ */
|
|
10079
|
+
/* @__PURE__ */ jsx265(
|
|
10014
10080
|
"select",
|
|
10015
10081
|
{
|
|
10016
10082
|
ref,
|
|
@@ -10048,7 +10114,7 @@ var NativeSelect = forwardRef76(
|
|
|
10048
10114
|
children
|
|
10049
10115
|
}
|
|
10050
10116
|
),
|
|
10051
|
-
!multiple && /* @__PURE__ */
|
|
10117
|
+
!multiple && /* @__PURE__ */ jsx265(
|
|
10052
10118
|
Icon,
|
|
10053
10119
|
{
|
|
10054
10120
|
icon: ChevronDownIcon,
|
|
@@ -10063,7 +10129,7 @@ var NativeSelect = forwardRef76(
|
|
|
10063
10129
|
);
|
|
10064
10130
|
var NativeSelectPlaceholder = forwardRef76((props, ref) => {
|
|
10065
10131
|
const { children = "-- Velg fra listen --", value, ...rest } = props;
|
|
10066
|
-
return /* @__PURE__ */
|
|
10132
|
+
return /* @__PURE__ */ jsx265("option", { ref, value: value != null ? value : "", selected: true, ...rest, children });
|
|
10067
10133
|
});
|
|
10068
10134
|
NativeSelectPlaceholder.displayName = "NativeSelectPlaceholder";
|
|
10069
10135
|
|
|
@@ -10071,7 +10137,7 @@ NativeSelectPlaceholder.displayName = "NativeSelectPlaceholder";
|
|
|
10071
10137
|
var createSelectOptions = (...args) => args.map((v2) => ({ label: v2, value: v2 }));
|
|
10072
10138
|
|
|
10073
10139
|
// src/components/Pagination/Pagination.tsx
|
|
10074
|
-
import { Fragment as Fragment8, jsx as
|
|
10140
|
+
import { Fragment as Fragment8, jsx as jsx266, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
10075
10141
|
var Pagination = forwardRef77(
|
|
10076
10142
|
(props, ref) => {
|
|
10077
10143
|
const {
|
|
@@ -10115,7 +10181,7 @@ var Pagination = forwardRef77(
|
|
|
10115
10181
|
};
|
|
10116
10182
|
const listItems = items.length > 0 ? items.map((item, i2) => {
|
|
10117
10183
|
const isActive = item === activePage;
|
|
10118
|
-
return /* @__PURE__ */
|
|
10184
|
+
return /* @__PURE__ */ jsx266("li", { className: Pagination_default.list__item, children: item !== "truncator" ? /* @__PURE__ */ jsx266(
|
|
10119
10185
|
Button,
|
|
10120
10186
|
{
|
|
10121
10187
|
purpose: isActive ? "primary" : "secondary",
|
|
@@ -10126,7 +10192,7 @@ var Pagination = forwardRef77(
|
|
|
10126
10192
|
"aria-label": isActive ? `N\xE5v\xE6rende side (side ${item})` : `G\xE5 til side ${item}`,
|
|
10127
10193
|
children: item
|
|
10128
10194
|
}
|
|
10129
|
-
) : /* @__PURE__ */
|
|
10195
|
+
) : /* @__PURE__ */ jsx266(
|
|
10130
10196
|
Icon,
|
|
10131
10197
|
{
|
|
10132
10198
|
icon: MoreHorizontalIcon,
|
|
@@ -10134,7 +10200,7 @@ var Pagination = forwardRef77(
|
|
|
10134
10200
|
}
|
|
10135
10201
|
) }, `pagination-item-${i2}`);
|
|
10136
10202
|
}) : void 0;
|
|
10137
|
-
const previousPageButton = /* @__PURE__ */
|
|
10203
|
+
const previousPageButton = /* @__PURE__ */ jsx266(
|
|
10138
10204
|
Button,
|
|
10139
10205
|
{
|
|
10140
10206
|
purpose: "secondary",
|
|
@@ -10146,7 +10212,7 @@ var Pagination = forwardRef77(
|
|
|
10146
10212
|
"aria-label": "G\xE5 til forrige siden"
|
|
10147
10213
|
}
|
|
10148
10214
|
);
|
|
10149
|
-
const nextPageButton = /* @__PURE__ */
|
|
10215
|
+
const nextPageButton = /* @__PURE__ */ jsx266(
|
|
10150
10216
|
Button,
|
|
10151
10217
|
{
|
|
10152
10218
|
purpose: "secondary",
|
|
@@ -10171,8 +10237,8 @@ var Pagination = forwardRef77(
|
|
|
10171
10237
|
};
|
|
10172
10238
|
const isOnFirstPage = activePage === 1;
|
|
10173
10239
|
const isOnLastPage = activePage === pagesLength;
|
|
10174
|
-
const largeScreenNavigation = withPagination ? /* @__PURE__ */
|
|
10175
|
-
/* @__PURE__ */
|
|
10240
|
+
const largeScreenNavigation = withPagination ? /* @__PURE__ */ jsx266("nav", { ref, "aria-label": "paginering", ...navProps(), children: /* @__PURE__ */ jsxs61("ol", { className: Pagination_default.list, children: [
|
|
10241
|
+
/* @__PURE__ */ jsx266(
|
|
10176
10242
|
"li",
|
|
10177
10243
|
{
|
|
10178
10244
|
className: cn(
|
|
@@ -10184,7 +10250,7 @@ var Pagination = forwardRef77(
|
|
|
10184
10250
|
}
|
|
10185
10251
|
),
|
|
10186
10252
|
listItems,
|
|
10187
|
-
/* @__PURE__ */
|
|
10253
|
+
/* @__PURE__ */ jsx266(
|
|
10188
10254
|
"li",
|
|
10189
10255
|
{
|
|
10190
10256
|
className: cn(
|
|
@@ -10196,8 +10262,8 @@ var Pagination = forwardRef77(
|
|
|
10196
10262
|
}
|
|
10197
10263
|
)
|
|
10198
10264
|
] }) }) : null;
|
|
10199
|
-
const smallScreenNavigation = withPagination ? /* @__PURE__ */
|
|
10200
|
-
/* @__PURE__ */
|
|
10265
|
+
const smallScreenNavigation = withPagination ? /* @__PURE__ */ jsx266("nav", { ref, "aria-label": "paginering", ...navProps(true), children: /* @__PURE__ */ jsxs61("ol", { className: Pagination_default.list, children: [
|
|
10266
|
+
/* @__PURE__ */ jsx266(
|
|
10201
10267
|
"li",
|
|
10202
10268
|
{
|
|
10203
10269
|
className: cn(
|
|
@@ -10205,7 +10271,7 @@ var Pagination = forwardRef77(
|
|
|
10205
10271
|
isOnFirstPage && Pagination_default["list__item--hidden"]
|
|
10206
10272
|
),
|
|
10207
10273
|
"aria-hidden": isOnFirstPage,
|
|
10208
|
-
children: /* @__PURE__ */
|
|
10274
|
+
children: /* @__PURE__ */ jsx266(
|
|
10209
10275
|
Button,
|
|
10210
10276
|
{
|
|
10211
10277
|
purpose: "secondary",
|
|
@@ -10219,7 +10285,7 @@ var Pagination = forwardRef77(
|
|
|
10219
10285
|
)
|
|
10220
10286
|
}
|
|
10221
10287
|
),
|
|
10222
|
-
/* @__PURE__ */
|
|
10288
|
+
/* @__PURE__ */ jsx266(
|
|
10223
10289
|
"li",
|
|
10224
10290
|
{
|
|
10225
10291
|
className: cn(
|
|
@@ -10230,7 +10296,7 @@ var Pagination = forwardRef77(
|
|
|
10230
10296
|
children: previousPageButton
|
|
10231
10297
|
}
|
|
10232
10298
|
),
|
|
10233
|
-
/* @__PURE__ */
|
|
10299
|
+
/* @__PURE__ */ jsx266("li", { className: Pagination_default.list__item, children: /* @__PURE__ */ jsx266(
|
|
10234
10300
|
Button,
|
|
10235
10301
|
{
|
|
10236
10302
|
size: "small",
|
|
@@ -10240,7 +10306,7 @@ var Pagination = forwardRef77(
|
|
|
10240
10306
|
children: activePage
|
|
10241
10307
|
}
|
|
10242
10308
|
) }),
|
|
10243
|
-
/* @__PURE__ */
|
|
10309
|
+
/* @__PURE__ */ jsx266(
|
|
10244
10310
|
"li",
|
|
10245
10311
|
{
|
|
10246
10312
|
className: cn(
|
|
@@ -10251,7 +10317,7 @@ var Pagination = forwardRef77(
|
|
|
10251
10317
|
children: nextPageButton
|
|
10252
10318
|
}
|
|
10253
10319
|
),
|
|
10254
|
-
/* @__PURE__ */
|
|
10320
|
+
/* @__PURE__ */ jsx266(
|
|
10255
10321
|
"li",
|
|
10256
10322
|
{
|
|
10257
10323
|
className: cn(
|
|
@@ -10259,7 +10325,7 @@ var Pagination = forwardRef77(
|
|
|
10259
10325
|
isOnLastPage && Pagination_default["list__item--hidden"]
|
|
10260
10326
|
),
|
|
10261
10327
|
"aria-hidden": isOnLastPage,
|
|
10262
|
-
children: /* @__PURE__ */
|
|
10328
|
+
children: /* @__PURE__ */ jsx266(
|
|
10263
10329
|
Button,
|
|
10264
10330
|
{
|
|
10265
10331
|
purpose: "secondary",
|
|
@@ -10294,7 +10360,7 @@ var Pagination = forwardRef77(
|
|
|
10294
10360
|
),
|
|
10295
10361
|
children: [
|
|
10296
10362
|
/* @__PURE__ */ jsxs61("div", { className: Pagination_default.indicators, children: [
|
|
10297
|
-
withSelect && /* @__PURE__ */
|
|
10363
|
+
withSelect && /* @__PURE__ */ jsx266(
|
|
10298
10364
|
Select,
|
|
10299
10365
|
{
|
|
10300
10366
|
options: selectOptions,
|
|
@@ -10341,23 +10407,11 @@ import {
|
|
|
10341
10407
|
|
|
10342
10408
|
// src/components/PhoneInput/constants.ts
|
|
10343
10409
|
var COUNTRIES = {
|
|
10344
|
-
AF: {
|
|
10345
|
-
|
|
10346
|
-
|
|
10347
|
-
dialCode: "+93"
|
|
10348
|
-
},
|
|
10349
|
-
AL: {
|
|
10350
|
-
name: "Albania (Shqip\xEBri)",
|
|
10351
|
-
id: "AL",
|
|
10352
|
-
dialCode: "+355"
|
|
10353
|
-
},
|
|
10354
|
-
DZ: {
|
|
10355
|
-
name: "Algeria (\u202B\u0627\u0644\u062C\u0632\u0627\u0626\u0631\u202C\u200E)",
|
|
10356
|
-
id: "DZ",
|
|
10357
|
-
dialCode: "+213"
|
|
10358
|
-
},
|
|
10410
|
+
AF: { name: "Afghanistan (\u202B\u0627\u0641\u063A\u0627\u0646\u0633\u062A\u0627\u0646\u202C\u200E)", id: "AF", dialCode: "+93" },
|
|
10411
|
+
AL: { name: "Albania (Shqip\xEBri)", id: "AL", dialCode: "+355" },
|
|
10412
|
+
DZ: { name: "Algerie (\u202B\u0627\u0644\u062C\u0632\u0627\u0626\u0631\u202C\u200E)", id: "DZ", dialCode: "+213" },
|
|
10359
10413
|
AS: {
|
|
10360
|
-
name: "American Samoa",
|
|
10414
|
+
name: "Amerikansk Samoa (American Samoa)",
|
|
10361
10415
|
id: "AS",
|
|
10362
10416
|
dialCode: "+1684"
|
|
10363
10417
|
},
|
|
@@ -10365,45 +10419,21 @@ var COUNTRIES = {
|
|
|
10365
10419
|
AO: { name: "Angola", id: "AO", dialCode: "+244" },
|
|
10366
10420
|
AI: { name: "Anguilla", id: "AI", dialCode: "+1264" },
|
|
10367
10421
|
AG: {
|
|
10368
|
-
name: "Antigua and Barbuda",
|
|
10422
|
+
name: "Antigua og Barbuda (Antigua and Barbuda)",
|
|
10369
10423
|
id: "AG",
|
|
10370
10424
|
dialCode: "+1268"
|
|
10371
10425
|
},
|
|
10372
10426
|
AR: { name: "Argentina", id: "AR", dialCode: "+54" },
|
|
10373
|
-
AM: {
|
|
10374
|
-
name: "Armenia (\u0540\u0561\u0575\u0561\u057D\u057F\u0561\u0576)",
|
|
10375
|
-
id: "AM",
|
|
10376
|
-
dialCode: "+374"
|
|
10377
|
-
},
|
|
10427
|
+
AM: { name: "Armenia (\u0540\u0561\u0575\u0561\u057D\u057F\u0561\u0576)", id: "AM", dialCode: "+374" },
|
|
10378
10428
|
AW: { name: "Aruba", id: "AW", dialCode: "+297" },
|
|
10379
10429
|
AU: { name: "Australia", id: "AU", dialCode: "+61" },
|
|
10380
|
-
AT: {
|
|
10381
|
-
|
|
10382
|
-
id: "AT",
|
|
10383
|
-
dialCode: "+43"
|
|
10384
|
-
},
|
|
10385
|
-
AZ: {
|
|
10386
|
-
name: "Azerbaijan (Az\u0259rbaycan)",
|
|
10387
|
-
id: "AZ",
|
|
10388
|
-
dialCode: "+994"
|
|
10389
|
-
},
|
|
10430
|
+
AT: { name: "\xD8sterrike (\xD6sterreich)", id: "AT", dialCode: "+43" },
|
|
10431
|
+
AZ: { name: "Aserbajdsjan (Az\u0259rbaycan)", id: "AZ", dialCode: "+994" },
|
|
10390
10432
|
BS: { name: "Bahamas", id: "BS", dialCode: "+1242" },
|
|
10391
|
-
BH: {
|
|
10392
|
-
|
|
10393
|
-
id: "BH",
|
|
10394
|
-
dialCode: "+973"
|
|
10395
|
-
},
|
|
10396
|
-
BD: {
|
|
10397
|
-
name: "Bangladesh (\u09AC\u09BE\u0982\u09B2\u09BE\u09A6\u09C7\u09B6)",
|
|
10398
|
-
id: "BD",
|
|
10399
|
-
dialCode: "+880"
|
|
10400
|
-
},
|
|
10433
|
+
BH: { name: "Bahrain (\u202B\u0627\u0644\u0628\u062D\u0631\u064A\u0646\u202C\u200E)", id: "BH", dialCode: "+973" },
|
|
10434
|
+
BD: { name: "Bangladesh (\u09AC\u09BE\u0982\u09B2\u09BE\u09A6\u09C7\u09B6)", id: "BD", dialCode: "+880" },
|
|
10401
10435
|
BB: { name: "Barbados", id: "BB", dialCode: "+1246" },
|
|
10402
|
-
BY: {
|
|
10403
|
-
name: "Belarus (\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u044C)",
|
|
10404
|
-
id: "BY",
|
|
10405
|
-
dialCode: "+375"
|
|
10406
|
-
},
|
|
10436
|
+
BY: { name: "Belarus (\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u044C)", id: "BY", dialCode: "+375" },
|
|
10407
10437
|
BE: { name: "Belgium (Belgi\xEB)", id: "BE", dialCode: "+32" },
|
|
10408
10438
|
BZ: { name: "Belize", id: "BZ", dialCode: "+501" },
|
|
10409
10439
|
BJ: { name: "Benin (B\xE9nin)", id: "BJ", dialCode: "+229" },
|
|
@@ -10411,114 +10441,70 @@ var COUNTRIES = {
|
|
|
10411
10441
|
BT: { name: "Bhutan (\u0F60\u0F56\u0FB2\u0F74\u0F42)", id: "BT", dialCode: "+975" },
|
|
10412
10442
|
BO: { name: "Bolivia", id: "BO", dialCode: "+591" },
|
|
10413
10443
|
BA: {
|
|
10414
|
-
name: "Bosnia
|
|
10444
|
+
name: "Bosnia-Hercegovina (\u0411\u043E\u0441\u043D\u0430 \u0438 \u0425\u0435\u0440\u0446\u0435\u0433\u043E\u0432\u0438\u043D\u0430)",
|
|
10415
10445
|
id: "BA",
|
|
10416
10446
|
dialCode: "+387"
|
|
10417
10447
|
},
|
|
10418
10448
|
BW: { name: "Botswana", id: "BW", dialCode: "+267" },
|
|
10419
|
-
BR: { name: "
|
|
10449
|
+
BR: { name: "Brasil", id: "BR", dialCode: "+55" },
|
|
10420
10450
|
IO: {
|
|
10421
|
-
name: "British Indian Ocean Territory",
|
|
10451
|
+
name: "Det britiske territoriet i Indiahavet (British Indian Ocean Territory)",
|
|
10422
10452
|
id: "IO",
|
|
10423
10453
|
dialCode: "+246"
|
|
10424
10454
|
},
|
|
10425
10455
|
VG: {
|
|
10426
|
-
name: "British Virgin Islands",
|
|
10456
|
+
name: "Britiske Jomfru\xF8yer (British Virgin Islands)",
|
|
10427
10457
|
id: "VG",
|
|
10428
10458
|
dialCode: "+1284"
|
|
10429
10459
|
},
|
|
10430
10460
|
BN: { name: "Brunei", id: "BN", dialCode: "+673" },
|
|
10431
|
-
BG: {
|
|
10432
|
-
name: "Bulgaria (\u0411\u044A\u043B\u0433\u0430\u0440\u0438\u044F)",
|
|
10433
|
-
id: "BG",
|
|
10434
|
-
dialCode: "+359"
|
|
10435
|
-
},
|
|
10461
|
+
BG: { name: "Bulgaria (\u0411\u044A\u043B\u0433\u0430\u0440\u0438\u044F)", id: "BG", dialCode: "+359" },
|
|
10436
10462
|
BF: { name: "Burkina Faso", id: "BF", dialCode: "+226" },
|
|
10437
|
-
BI: {
|
|
10438
|
-
|
|
10439
|
-
|
|
10440
|
-
dialCode: "+257"
|
|
10441
|
-
},
|
|
10442
|
-
KH: {
|
|
10443
|
-
name: "Cambodia (\u1780\u1798\u17D2\u1796\u17BB\u1787\u17B6)",
|
|
10444
|
-
id: "KH",
|
|
10445
|
-
dialCode: "+855"
|
|
10446
|
-
},
|
|
10447
|
-
CM: {
|
|
10448
|
-
name: "Cameroon (Cameroun)",
|
|
10449
|
-
id: "CM",
|
|
10450
|
-
dialCode: "+237"
|
|
10451
|
-
},
|
|
10463
|
+
BI: { name: "Burundi (Uburundi)", id: "BI", dialCode: "+257" },
|
|
10464
|
+
KH: { name: "Kambodsja (\u1780\u1798\u17D2\u1796\u17BB\u1787\u17B6)", id: "KH", dialCode: "+855" },
|
|
10465
|
+
CM: { name: "Kamerun (Cameroun)", id: "CM", dialCode: "+237" },
|
|
10452
10466
|
CA: { name: "Canada", id: "CA", dialCode: "+1" },
|
|
10453
|
-
CV: {
|
|
10454
|
-
|
|
10455
|
-
id: "CV",
|
|
10456
|
-
dialCode: "+238"
|
|
10457
|
-
},
|
|
10458
|
-
KY: {
|
|
10459
|
-
name: "Cayman Islands",
|
|
10460
|
-
id: "KY",
|
|
10461
|
-
dialCode: "+1345"
|
|
10462
|
-
},
|
|
10467
|
+
CV: { name: "Kapp Verde (Kabu Verdi)", id: "CV", dialCode: "+238" },
|
|
10468
|
+
KY: { name: "Cayman\xF8yene (Cayman Islands)", id: "KY", dialCode: "+1345" },
|
|
10463
10469
|
CF: {
|
|
10464
|
-
name: "
|
|
10470
|
+
name: "Den sentralafrikanske republikk (R\xE9publique centrafricaine)",
|
|
10465
10471
|
id: "CF",
|
|
10466
10472
|
dialCode: "+236"
|
|
10467
10473
|
},
|
|
10468
|
-
TD: { name: "
|
|
10474
|
+
TD: { name: "Tsjad (Tchad)", id: "TD", dialCode: "+235" },
|
|
10469
10475
|
CL: { name: "Chile", id: "CL", dialCode: "+56" },
|
|
10470
|
-
CN: { name: "
|
|
10471
|
-
CX: { name: "Christmas Island", id: "CX", dialCode: "+61" },
|
|
10476
|
+
CN: { name: "Kina (\u4E2D\u56FD)", id: "CN", dialCode: "+86" },
|
|
10477
|
+
CX: { name: "Christmas\xF8ya (Christmas Island)", id: "CX", dialCode: "+61" },
|
|
10472
10478
|
CC: {
|
|
10473
|
-
name: "Cocos (Keeling) Islands",
|
|
10479
|
+
name: "Kokos\xF8yene (Cocos (Keeling) Islands)",
|
|
10474
10480
|
id: "CC",
|
|
10475
10481
|
dialCode: "+61"
|
|
10476
10482
|
},
|
|
10477
10483
|
CO: { name: "Colombia", id: "CO", dialCode: "+57" },
|
|
10478
|
-
KM: {
|
|
10479
|
-
name: "Comoros (\u202B\u062C\u0632\u0631 \u0627\u0644\u0642\u0645\u0631\u202C\u200E)",
|
|
10480
|
-
id: "KM",
|
|
10481
|
-
dialCode: "+269"
|
|
10482
|
-
},
|
|
10484
|
+
KM: { name: "Komorene (\u202B\u062C\u0632\u0631 \u0627\u0644\u0642\u0645\u0631\u202C\u200E)", id: "KM", dialCode: "+269" },
|
|
10483
10485
|
CD: {
|
|
10484
|
-
name: "
|
|
10486
|
+
name: "Kongo (DR) (Jamhuri ya Kisoemokrasia ya Kongo)",
|
|
10485
10487
|
id: "CD",
|
|
10486
10488
|
dialCode: "+243"
|
|
10487
10489
|
},
|
|
10488
10490
|
CG: {
|
|
10489
|
-
name: "
|
|
10491
|
+
name: "Kongo (Republikken) (Congo-Brazzaville)",
|
|
10490
10492
|
id: "CG",
|
|
10491
10493
|
dialCode: "+242"
|
|
10492
10494
|
},
|
|
10493
|
-
CK: { name: "Cook Islands", id: "CK", dialCode: "+682" },
|
|
10495
|
+
CK: { name: "Cook\xF8yene (Cook Islands)", id: "CK", dialCode: "+682" },
|
|
10494
10496
|
CR: { name: "Costa Rica", id: "CR", dialCode: "+506" },
|
|
10495
|
-
CI: { name: "C\xF4te d\u2019Ivoire", id: "CI", dialCode: "+225" },
|
|
10496
|
-
HR: {
|
|
10497
|
-
name: "Croatia (Hrvatska)",
|
|
10498
|
-
id: "HR",
|
|
10499
|
-
dialCode: "+385"
|
|
10500
|
-
},
|
|
10497
|
+
CI: { name: "Elfenbenskysten (C\xF4te d\u2019Ivoire)", id: "CI", dialCode: "+225" },
|
|
10498
|
+
HR: { name: "Kroatia (Hrvatska)", id: "HR", dialCode: "+385" },
|
|
10501
10499
|
CU: { name: "Cuba", id: "CU", dialCode: "+53" },
|
|
10502
10500
|
CW: { name: "Cura\xE7ao", id: "CW", dialCode: "+599" },
|
|
10503
|
-
CY: {
|
|
10504
|
-
|
|
10505
|
-
|
|
10506
|
-
dialCode: "+357"
|
|
10507
|
-
},
|
|
10508
|
-
CZ: {
|
|
10509
|
-
name: "Czech Republic (\u010Cesk\xE1 republika)",
|
|
10510
|
-
id: "CZ",
|
|
10511
|
-
dialCode: "+420"
|
|
10512
|
-
},
|
|
10513
|
-
DK: {
|
|
10514
|
-
name: "Denmark (Danmark)",
|
|
10515
|
-
id: "DK",
|
|
10516
|
-
dialCode: "+45"
|
|
10517
|
-
},
|
|
10501
|
+
CY: { name: "Kypros (\u039A\u03CD\u03C0\u03C1\u03BF\u03C2)", id: "CY", dialCode: "+357" },
|
|
10502
|
+
CZ: { name: "Tsjekkia (\u010Cesk\xE1 republika)", id: "CZ", dialCode: "+420" },
|
|
10503
|
+
DK: { name: "Danmark", id: "DK", dialCode: "+45" },
|
|
10518
10504
|
DJ: { name: "Djibouti", id: "DJ", dialCode: "+253" },
|
|
10519
10505
|
DM: { name: "Dominica", id: "DM", dialCode: "+1767" },
|
|
10520
10506
|
DO: {
|
|
10521
|
-
name: "
|
|
10507
|
+
name: "Den dominikanske republikk (Rep\xFAblica Dominicana)",
|
|
10522
10508
|
id: "DO",
|
|
10523
10509
|
dialCode: "+1"
|
|
10524
10510
|
},
|
|
@@ -10526,248 +10512,118 @@ var COUNTRIES = {
|
|
|
10526
10512
|
EG: { name: "Egypt (\u202B\u0645\u0635\u0631\u202C\u200E)", id: "EG", dialCode: "+20" },
|
|
10527
10513
|
SV: { name: "El Salvador", id: "SV", dialCode: "+503" },
|
|
10528
10514
|
GQ: {
|
|
10529
|
-
name: "
|
|
10515
|
+
name: "Ekvatorial-Guinea (Guinea Ecuatorial)",
|
|
10530
10516
|
id: "GQ",
|
|
10531
10517
|
dialCode: "+240"
|
|
10532
10518
|
},
|
|
10533
10519
|
ER: { name: "Eritrea", id: "ER", dialCode: "+291" },
|
|
10534
|
-
EE: {
|
|
10535
|
-
|
|
10536
|
-
|
|
10537
|
-
|
|
10538
|
-
},
|
|
10539
|
-
ET: { name: "Ethiopia", id: "ET", dialCode: "+251" },
|
|
10540
|
-
FK: {
|
|
10541
|
-
name: "Falkland Islands (Islas Malvinas)",
|
|
10542
|
-
id: "FK",
|
|
10543
|
-
dialCode: "+500"
|
|
10544
|
-
},
|
|
10545
|
-
FO: {
|
|
10546
|
-
name: "Faroe Islands (F\xF8royar)",
|
|
10547
|
-
id: "FO",
|
|
10548
|
-
dialCode: "+298"
|
|
10549
|
-
},
|
|
10520
|
+
EE: { name: "Estland (Eesti)", id: "EE", dialCode: "+372" },
|
|
10521
|
+
ET: { name: "Etiopia (\u12A2\u1275\u12EE\u1335\u12EB)", id: "ET", dialCode: "+251" },
|
|
10522
|
+
FK: { name: "Falklands\xF8yene (Islas Malvinas)", id: "FK", dialCode: "+500" },
|
|
10523
|
+
FO: { name: "F\xE6r\xF8yene (F\xF8royar)", id: "FO", dialCode: "+298" },
|
|
10550
10524
|
FJ: { name: "Fiji", id: "FJ", dialCode: "+679" },
|
|
10551
|
-
FI: {
|
|
10552
|
-
|
|
10553
|
-
|
|
10554
|
-
dialCode: "+358"
|
|
10555
|
-
},
|
|
10556
|
-
FR: { name: "France", id: "FR", dialCode: "+33" },
|
|
10557
|
-
GF: {
|
|
10558
|
-
name: "French Guiana (Guyane fran\xE7aise)",
|
|
10559
|
-
id: "GF",
|
|
10560
|
-
dialCode: "+594"
|
|
10561
|
-
},
|
|
10525
|
+
FI: { name: "Finland (Suomi)", id: "FI", dialCode: "+358" },
|
|
10526
|
+
FR: { name: "Frankrike (France)", id: "FR", dialCode: "+33" },
|
|
10527
|
+
GF: { name: "Fransk Guyana (Guyane fran\xE7aise)", id: "GF", dialCode: "+594" },
|
|
10562
10528
|
PF: {
|
|
10563
|
-
name: "
|
|
10529
|
+
name: "Fransk Polynesia (Polyn\xE9sie fran\xE7aise)",
|
|
10564
10530
|
id: "PF",
|
|
10565
10531
|
dialCode: "+689"
|
|
10566
10532
|
},
|
|
10567
10533
|
GA: { name: "Gabon", id: "GA", dialCode: "+241" },
|
|
10568
10534
|
GM: { name: "Gambia", id: "GM", dialCode: "+220" },
|
|
10569
|
-
GE: {
|
|
10570
|
-
|
|
10571
|
-
id: "GE",
|
|
10572
|
-
dialCode: "+995"
|
|
10573
|
-
},
|
|
10574
|
-
DE: {
|
|
10575
|
-
name: "Germany (Deutschland)",
|
|
10576
|
-
id: "DE",
|
|
10577
|
-
dialCode: "+49"
|
|
10578
|
-
},
|
|
10535
|
+
GE: { name: "Georgia (\u10E1\u10D0\u10E5\u10D0\u10E0\u10D7\u10D5\u10D4\u10DA\u10DD)", id: "GE", dialCode: "+995" },
|
|
10536
|
+
DE: { name: "Tyskland (Deutschland)", id: "DE", dialCode: "+49" },
|
|
10579
10537
|
GH: { name: "Ghana (Gaana)", id: "GH", dialCode: "+233" },
|
|
10580
10538
|
GI: { name: "Gibraltar", id: "GI", dialCode: "+350" },
|
|
10581
|
-
GR: { name: "
|
|
10582
|
-
GL: {
|
|
10583
|
-
name: "Greenland (Kalaallit Nunaat)",
|
|
10584
|
-
id: "GL",
|
|
10585
|
-
dialCode: "+299"
|
|
10586
|
-
},
|
|
10539
|
+
GR: { name: "Hellas (\u0395\u03BB\u03BB\u03AC\u03B4\u03B1)", id: "GR", dialCode: "+30" },
|
|
10540
|
+
GL: { name: "Gr\xF8nland (Kalaallit Nunaat)", id: "GL", dialCode: "+299" },
|
|
10587
10541
|
GD: { name: "Grenada", id: "GD", dialCode: "+1473" },
|
|
10588
10542
|
GP: { name: "Guadeloupe", id: "GP", dialCode: "+590" },
|
|
10589
10543
|
GU: { name: "Guam", id: "GU", dialCode: "+1671" },
|
|
10590
10544
|
GT: { name: "Guatemala", id: "GT", dialCode: "+502" },
|
|
10591
10545
|
GG: { name: "Guernsey", id: "GG", dialCode: "+44" },
|
|
10592
|
-
GN: {
|
|
10593
|
-
|
|
10594
|
-
id: "GN",
|
|
10595
|
-
dialCode: "+224"
|
|
10596
|
-
},
|
|
10597
|
-
GW: {
|
|
10598
|
-
name: "Guinea-Bissau (Guin\xE9 Bissau)",
|
|
10599
|
-
id: "GW",
|
|
10600
|
-
dialCode: "+245"
|
|
10601
|
-
},
|
|
10546
|
+
GN: { name: "Guinea (Guin\xE9e)", id: "GN", dialCode: "+224" },
|
|
10547
|
+
GW: { name: "Guinea-Bissau (Guin\xE9-Bissau)", id: "GW", dialCode: "+245" },
|
|
10602
10548
|
GY: { name: "Guyana", id: "GY", dialCode: "+592" },
|
|
10603
10549
|
HT: { name: "Haiti", id: "HT", dialCode: "+509" },
|
|
10604
|
-
|
|
10605
|
-
|
|
10606
|
-
|
|
10607
|
-
|
|
10608
|
-
dialCode: "+852"
|
|
10550
|
+
HM: {
|
|
10551
|
+
name: "Heard- og McDonald\xF8yene (Heard Island and McDonald Islands)",
|
|
10552
|
+
id: "HM",
|
|
10553
|
+
dialCode: "+672"
|
|
10609
10554
|
},
|
|
10610
|
-
|
|
10611
|
-
name: "
|
|
10612
|
-
id: "
|
|
10613
|
-
dialCode: "+
|
|
10614
|
-
},
|
|
10615
|
-
IS: {
|
|
10616
|
-
name: "Iceland (\xCDsland)",
|
|
10617
|
-
id: "IS",
|
|
10618
|
-
dialCode: "+354"
|
|
10555
|
+
VA: {
|
|
10556
|
+
name: "Vatikanstaten (Citt\xE0 del Vaticano)",
|
|
10557
|
+
id: "VA",
|
|
10558
|
+
dialCode: "+379"
|
|
10619
10559
|
},
|
|
10560
|
+
HN: { name: "Honduras", id: "HN", dialCode: "+504" },
|
|
10561
|
+
HK: { name: "Hongkong (\u9999\u6E2F)", id: "HK", dialCode: "+852" },
|
|
10562
|
+
HU: { name: "Ungarn (Magyarorsz\xE1g)", id: "HU", dialCode: "+36" },
|
|
10563
|
+
IS: { name: "Island (\xCDsland)", id: "IS", dialCode: "+354" },
|
|
10620
10564
|
IN: { name: "India (\u092D\u093E\u0930\u0924)", id: "IN", dialCode: "+91" },
|
|
10621
10565
|
ID: { name: "Indonesia", id: "ID", dialCode: "+62" },
|
|
10622
10566
|
IR: { name: "Iran (\u202B\u0627\u06CC\u0631\u0627\u0646\u202C\u200E)", id: "IR", dialCode: "+98" },
|
|
10623
|
-
IQ: {
|
|
10624
|
-
|
|
10625
|
-
id: "IQ",
|
|
10626
|
-
dialCode: "+964"
|
|
10627
|
-
},
|
|
10628
|
-
IE: { name: "Ireland", id: "IE", dialCode: "+353" },
|
|
10567
|
+
IQ: { name: "Irak (\u202B\u0627\u0644\u0639\u0631\u0627\u0642\u202C\u200E)", id: "IQ", dialCode: "+964" },
|
|
10568
|
+
IE: { name: "Irland (\xC9ire)", id: "IE", dialCode: "+353" },
|
|
10629
10569
|
IM: { name: "Isle of Man", id: "IM", dialCode: "+44" },
|
|
10630
|
-
IL: {
|
|
10631
|
-
|
|
10632
|
-
id: "IL",
|
|
10633
|
-
dialCode: "+972"
|
|
10634
|
-
},
|
|
10635
|
-
IT: { name: "Italy (Italia)", id: "IT", dialCode: "+39" },
|
|
10570
|
+
IL: { name: "Israel (\u202B\u05D9\u05E9\u05E8\u05D0\u05DC\u202C\u200E)", id: "IL", dialCode: "+972" },
|
|
10571
|
+
IT: { name: "Italia", id: "IT", dialCode: "+39" },
|
|
10636
10572
|
JM: { name: "Jamaica", id: "JM", dialCode: "+1" },
|
|
10637
10573
|
JP: { name: "Japan (\u65E5\u672C)", id: "JP", dialCode: "+81" },
|
|
10638
10574
|
JE: { name: "Jersey", id: "JE", dialCode: "+44" },
|
|
10639
|
-
JO: {
|
|
10640
|
-
|
|
10641
|
-
id: "JO",
|
|
10642
|
-
dialCode: "+962"
|
|
10643
|
-
},
|
|
10644
|
-
KZ: {
|
|
10645
|
-
name: "Kazakhstan (\u041A\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043D)",
|
|
10646
|
-
id: "KZ",
|
|
10647
|
-
dialCode: "+7"
|
|
10648
|
-
},
|
|
10575
|
+
JO: { name: "Jordan (\u202B\u0627\u0644\u0623\u0631\u062F\u0646\u202C\u200E)", id: "JO", dialCode: "+962" },
|
|
10576
|
+
KZ: { name: "Kasakhstan (\u049A\u0430\u0437\u0430\u049B\u0441\u0442\u0430\u043D)", id: "KZ", dialCode: "+7" },
|
|
10649
10577
|
KE: { name: "Kenya", id: "KE", dialCode: "+254" },
|
|
10650
10578
|
KI: { name: "Kiribati", id: "KI", dialCode: "+686" },
|
|
10651
10579
|
XK: { name: "Kosovo", id: "XK", dialCode: "+383" },
|
|
10652
|
-
KW: {
|
|
10653
|
-
|
|
10654
|
-
id: "KW",
|
|
10655
|
-
dialCode: "+965"
|
|
10656
|
-
},
|
|
10657
|
-
KG: {
|
|
10658
|
-
name: "Kyrgyzstan (\u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D)",
|
|
10659
|
-
id: "KG",
|
|
10660
|
-
dialCode: "+996"
|
|
10661
|
-
},
|
|
10580
|
+
KW: { name: "Kuwait (\u202B\u0627\u0644\u0643\u0648\u064A\u062A\u202C\u200E)", id: "KW", dialCode: "+965" },
|
|
10581
|
+
KG: { name: "Kirgisistan (\u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D)", id: "KG", dialCode: "+996" },
|
|
10662
10582
|
LA: { name: "Laos (\u0EA5\u0EB2\u0EA7)", id: "LA", dialCode: "+856" },
|
|
10663
|
-
LV: {
|
|
10664
|
-
|
|
10665
|
-
id: "LV",
|
|
10666
|
-
dialCode: "+371"
|
|
10667
|
-
},
|
|
10668
|
-
LB: {
|
|
10669
|
-
name: "Lebanon (\u202B\u0644\u0628\u0646\u0627\u0646\u202C\u200E)",
|
|
10670
|
-
id: "LB",
|
|
10671
|
-
dialCode: "+961"
|
|
10672
|
-
},
|
|
10583
|
+
LV: { name: "Latvia (Latvija)", id: "LV", dialCode: "+371" },
|
|
10584
|
+
LB: { name: "Libanon (\u202B\u0644\u0628\u0646\u0627\u0646\u202C\u200E)", id: "LB", dialCode: "+961" },
|
|
10673
10585
|
LS: { name: "Lesotho", id: "LS", dialCode: "+266" },
|
|
10674
10586
|
LR: { name: "Liberia", id: "LR", dialCode: "+231" },
|
|
10675
|
-
LY: {
|
|
10676
|
-
name: "Libya (\u202B\u0644\u064A\u0628\u064A\u0627\u202C\u200E)",
|
|
10677
|
-
id: "LY",
|
|
10678
|
-
dialCode: "+218"
|
|
10679
|
-
},
|
|
10587
|
+
LY: { name: "Libya (\u202B\u0644\u064A\u0628\u064A\u0627\u202C\u200E)", id: "LY", dialCode: "+218" },
|
|
10680
10588
|
LI: { name: "Liechtenstein", id: "LI", dialCode: "+423" },
|
|
10681
|
-
LT: {
|
|
10682
|
-
name: "Lithuania (Lietuva)",
|
|
10683
|
-
id: "LT",
|
|
10684
|
-
dialCode: "+370"
|
|
10685
|
-
},
|
|
10589
|
+
LT: { name: "Litauen (Lietuva)", id: "LT", dialCode: "+370" },
|
|
10686
10590
|
LU: { name: "Luxembourg", id: "LU", dialCode: "+352" },
|
|
10687
|
-
MO: { name: "
|
|
10591
|
+
MO: { name: "Macao (\u6FB3\u9580)", id: "MO", dialCode: "+853" },
|
|
10688
10592
|
MK: {
|
|
10689
|
-
name: "
|
|
10593
|
+
name: "Nord-Makedonia (FYROM) (\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430)",
|
|
10690
10594
|
id: "MK",
|
|
10691
10595
|
dialCode: "+389"
|
|
10692
10596
|
},
|
|
10693
|
-
MG: {
|
|
10694
|
-
name: "Madagascar (Madagasikara)",
|
|
10695
|
-
id: "MG",
|
|
10696
|
-
dialCode: "+261"
|
|
10697
|
-
},
|
|
10597
|
+
MG: { name: "Madagaskar (Madagasikara)", id: "MG", dialCode: "+261" },
|
|
10698
10598
|
MW: { name: "Malawi", id: "MW", dialCode: "+265" },
|
|
10699
10599
|
MY: { name: "Malaysia", id: "MY", dialCode: "+60" },
|
|
10700
|
-
MV: {
|
|
10600
|
+
MV: {
|
|
10601
|
+
name: "Maldivene (\u078B\u07A8\u0788\u07AC\u0780\u07A8\u0783\u07A7\u0787\u07B0\u0796\u07AD\u078E\u07AC \u0796\u07AA\u0789\u07B0\u0780\u07AB\u0783\u07A8\u0787\u07B0\u0794\u07A7)",
|
|
10602
|
+
id: "MV",
|
|
10603
|
+
dialCode: "+960"
|
|
10604
|
+
},
|
|
10701
10605
|
ML: { name: "Mali", id: "ML", dialCode: "+223" },
|
|
10702
10606
|
MT: { name: "Malta", id: "MT", dialCode: "+356" },
|
|
10703
|
-
MH: {
|
|
10704
|
-
name: "Marshall Islands",
|
|
10705
|
-
id: "MH",
|
|
10706
|
-
dialCode: "+692"
|
|
10707
|
-
},
|
|
10607
|
+
MH: { name: "Marshall\xF8yene (Marshall Islands)", id: "MH", dialCode: "+692" },
|
|
10708
10608
|
MQ: { name: "Martinique", id: "MQ", dialCode: "+596" },
|
|
10709
|
-
MR: {
|
|
10710
|
-
|
|
10711
|
-
id: "MR",
|
|
10712
|
-
dialCode: "+222"
|
|
10713
|
-
},
|
|
10714
|
-
MU: {
|
|
10715
|
-
name: "Mauritius (Moris)",
|
|
10716
|
-
id: "MU",
|
|
10717
|
-
dialCode: "+230"
|
|
10718
|
-
},
|
|
10609
|
+
MR: { name: "Mauritania (\u202B\u0645\u0648\u0631\u064A\u062A\u0627\u0646\u064A\u0627\u202C\u200E)", id: "MR", dialCode: "+222" },
|
|
10610
|
+
MU: { name: "Mauritius (Moris)", id: "MU", dialCode: "+230" },
|
|
10719
10611
|
YT: { name: "Mayotte", id: "YT", dialCode: "+262" },
|
|
10720
10612
|
MX: { name: "Mexico (M\xE9xico)", id: "MX", dialCode: "+52" },
|
|
10721
|
-
FM: { name: "Micronesia", id: "FM", dialCode: "+691" },
|
|
10722
|
-
MD: {
|
|
10723
|
-
name: "Moldova (Republica Moldova)",
|
|
10724
|
-
id: "MD",
|
|
10725
|
-
dialCode: "+373"
|
|
10726
|
-
},
|
|
10613
|
+
FM: { name: "Mikronesia (Micronesia)", id: "FM", dialCode: "+691" },
|
|
10614
|
+
MD: { name: "Moldova (Republica Moldova)", id: "MD", dialCode: "+373" },
|
|
10727
10615
|
MC: { name: "Monaco", id: "MC", dialCode: "+377" },
|
|
10728
|
-
MN: {
|
|
10729
|
-
|
|
10730
|
-
id: "MN",
|
|
10731
|
-
dialCode: "+976"
|
|
10732
|
-
},
|
|
10733
|
-
ME: {
|
|
10734
|
-
name: "Montenegro (Crna Gora)",
|
|
10735
|
-
id: "ME",
|
|
10736
|
-
dialCode: "+382"
|
|
10737
|
-
},
|
|
10616
|
+
MN: { name: "Mongolia (\u041C\u043E\u043D\u0433\u043E\u043B)", id: "MN", dialCode: "+976" },
|
|
10617
|
+
ME: { name: "Montenegro (Crna Gora)", id: "ME", dialCode: "+382" },
|
|
10738
10618
|
MS: { name: "Montserrat", id: "MS", dialCode: "+1664" },
|
|
10739
|
-
MA: {
|
|
10740
|
-
|
|
10741
|
-
|
|
10742
|
-
|
|
10743
|
-
},
|
|
10744
|
-
MZ: {
|
|
10745
|
-
name: "Mozambique (Mo\xE7ambique)",
|
|
10746
|
-
id: "MZ",
|
|
10747
|
-
dialCode: "+258"
|
|
10748
|
-
},
|
|
10749
|
-
MM: {
|
|
10750
|
-
name: "Myanmar (Burma) (\u1019\u103C\u1014\u103A\u1019\u102C)",
|
|
10751
|
-
id: "MM",
|
|
10752
|
-
dialCode: "+95"
|
|
10753
|
-
},
|
|
10754
|
-
NA: {
|
|
10755
|
-
name: "Namibia (Namibi\xEB)",
|
|
10756
|
-
id: "NA",
|
|
10757
|
-
dialCode: "+264"
|
|
10758
|
-
},
|
|
10619
|
+
MA: { name: "Marokko (\u202B\u0627\u0644\u0645\u063A\u0631\u0628\u202C\u200E)", id: "MA", dialCode: "+212" },
|
|
10620
|
+
MZ: { name: "Mosambik (Mo\xE7ambique)", id: "MZ", dialCode: "+258" },
|
|
10621
|
+
MM: { name: "Myanmar (\u1019\u103C\u1014\u103A\u1019\u102C)", id: "MM", dialCode: "+95" },
|
|
10622
|
+
NA: { name: "Namibia", id: "NA", dialCode: "+264" },
|
|
10759
10623
|
NR: { name: "Nauru", id: "NR", dialCode: "+674" },
|
|
10760
10624
|
NP: { name: "Nepal (\u0928\u0947\u092A\u093E\u0932)", id: "NP", dialCode: "+977" },
|
|
10761
|
-
NL: {
|
|
10762
|
-
|
|
10763
|
-
id: "NL",
|
|
10764
|
-
dialCode: "+31"
|
|
10765
|
-
},
|
|
10766
|
-
NC: {
|
|
10767
|
-
name: "New Caledonia (Nouvelle-Cal\xE9donie)",
|
|
10768
|
-
id: "NC",
|
|
10769
|
-
dialCode: "+687"
|
|
10770
|
-
},
|
|
10625
|
+
NL: { name: "Nederland", id: "NL", dialCode: "+31" },
|
|
10626
|
+
NC: { name: "Ny-Caledonia (Nouvelle-Cal\xE9donie)", id: "NC", dialCode: "+687" },
|
|
10771
10627
|
NZ: { name: "New Zealand", id: "NZ", dialCode: "+64" },
|
|
10772
10628
|
NI: { name: "Nicaragua", id: "NI", dialCode: "+505" },
|
|
10773
10629
|
NE: { name: "Niger (Nijar)", id: "NE", dialCode: "+227" },
|
|
@@ -10775,69 +10631,49 @@ var COUNTRIES = {
|
|
|
10775
10631
|
NU: { name: "Niue", id: "NU", dialCode: "+683" },
|
|
10776
10632
|
NF: { name: "Norfolk Island", id: "NF", dialCode: "+672" },
|
|
10777
10633
|
KP: {
|
|
10778
|
-
name: "
|
|
10634
|
+
name: "Nord-Korea (\uC870\uC120 \uBBFC\uC8FC\uC8FC\uC758 \uC778\uBBFC \uACF5\uD654\uAD6D)",
|
|
10779
10635
|
id: "KP",
|
|
10780
10636
|
dialCode: "+850"
|
|
10781
10637
|
},
|
|
10782
10638
|
MP: {
|
|
10783
|
-
name: "Northern Mariana Islands",
|
|
10639
|
+
name: "Nord-Marianene (Northern Mariana Islands)",
|
|
10784
10640
|
id: "MP",
|
|
10785
10641
|
dialCode: "+1670"
|
|
10786
10642
|
},
|
|
10787
|
-
NO: { name: "
|
|
10788
|
-
OM: {
|
|
10789
|
-
|
|
10790
|
-
id: "OM",
|
|
10791
|
-
dialCode: "+968"
|
|
10792
|
-
},
|
|
10793
|
-
PK: {
|
|
10794
|
-
name: "Pakistan (\u202B\u067E\u0627\u06A9\u0633\u062A\u0627\u0646\u202C\u200E)",
|
|
10795
|
-
id: "PK",
|
|
10796
|
-
dialCode: "+92"
|
|
10797
|
-
},
|
|
10643
|
+
NO: { name: "Norge", id: "NO", dialCode: "+47" },
|
|
10644
|
+
OM: { name: "Oman (\u202B\u0639\u064F\u0645\u0627\u0646\u202C\u200E)", id: "OM", dialCode: "+968" },
|
|
10645
|
+
PK: { name: "Pakistan (\u202B\u067E\u0627\u06A9\u0633\u062A\u0627\u0646\u202C\u200E)", id: "PK", dialCode: "+92" },
|
|
10798
10646
|
PW: { name: "Palau", id: "PW", dialCode: "+680" },
|
|
10799
10647
|
PS: {
|
|
10800
|
-
name: "
|
|
10648
|
+
name: "Palestina (\u202B\u0641\u0644\u0633\u0637\u064A\u0646\u202C\u200E)",
|
|
10801
10649
|
id: "PS",
|
|
10802
10650
|
dialCode: "+970"
|
|
10803
10651
|
},
|
|
10804
|
-
PA: {
|
|
10805
|
-
name: "Panama (Panam\xE1)",
|
|
10806
|
-
id: "PA",
|
|
10807
|
-
dialCode: "+507"
|
|
10808
|
-
},
|
|
10652
|
+
PA: { name: "Panama (Panam\xE1)", id: "PA", dialCode: "+507" },
|
|
10809
10653
|
PG: {
|
|
10810
|
-
name: "Papua New Guinea",
|
|
10654
|
+
name: "Papua Ny-Guinea (Papua New Guinea)",
|
|
10811
10655
|
id: "PG",
|
|
10812
10656
|
dialCode: "+675"
|
|
10813
10657
|
},
|
|
10814
10658
|
PY: { name: "Paraguay", id: "PY", dialCode: "+595" },
|
|
10815
10659
|
PE: { name: "Peru (Per\xFA)", id: "PE", dialCode: "+51" },
|
|
10816
|
-
PH: { name: "Philippines", id: "PH", dialCode: "+63" },
|
|
10817
|
-
PL: { name: "
|
|
10660
|
+
PH: { name: "Filippinene (Philippines)", id: "PH", dialCode: "+63" },
|
|
10661
|
+
PL: { name: "Polen (Polska)", id: "PL", dialCode: "+48" },
|
|
10818
10662
|
PT: { name: "Portugal", id: "PT", dialCode: "+351" },
|
|
10819
10663
|
PR: { name: "Puerto Rico", id: "PR", dialCode: "+1" },
|
|
10820
10664
|
QA: { name: "Qatar (\u202B\u0642\u0637\u0631\u202C\u200E)", id: "QA", dialCode: "+974" },
|
|
10821
|
-
RE: {
|
|
10822
|
-
|
|
10823
|
-
|
|
10824
|
-
dialCode: "+262"
|
|
10825
|
-
},
|
|
10826
|
-
RO: {
|
|
10827
|
-
name: "Romania (Rom\xE2nia)",
|
|
10828
|
-
id: "RO",
|
|
10829
|
-
dialCode: "+40"
|
|
10830
|
-
},
|
|
10831
|
-
RU: { name: "Russia (\u0420\u043E\u0441\u0441\u0438\u044F)", id: "RU", dialCode: "+7" },
|
|
10665
|
+
RE: { name: "R\xE9union", id: "RE", dialCode: "+262" },
|
|
10666
|
+
RO: { name: "Romania (Rom\xE2nia)", id: "RO", dialCode: "+40" },
|
|
10667
|
+
RU: { name: "Russland (\u0420\u043E\u0441\u0441\u0438\u044F)", id: "RU", dialCode: "+7" },
|
|
10832
10668
|
RW: { name: "Rwanda", id: "RW", dialCode: "+250" },
|
|
10833
10669
|
BL: {
|
|
10834
10670
|
name: "Saint Barth\xE9lemy",
|
|
10835
10671
|
id: "BL",
|
|
10836
10672
|
dialCode: "+590"
|
|
10837
10673
|
},
|
|
10838
|
-
SH: { name: "Saint Helena", id: "SH", dialCode: "+290" },
|
|
10674
|
+
SH: { name: "St. Helena (Saint Helena)", id: "SH", dialCode: "+290" },
|
|
10839
10675
|
KN: {
|
|
10840
|
-
name: "Saint Kitts and Nevis",
|
|
10676
|
+
name: "Saint Kitts og Nevis (Saint Kitts and Nevis)",
|
|
10841
10677
|
id: "KN",
|
|
10842
10678
|
dialCode: "+1869"
|
|
10843
10679
|
},
|
|
@@ -10848,176 +10684,109 @@ var COUNTRIES = {
|
|
|
10848
10684
|
dialCode: "+590"
|
|
10849
10685
|
},
|
|
10850
10686
|
PM: {
|
|
10851
|
-
name: "Saint Pierre
|
|
10687
|
+
name: "Saint Pierre og Miquelon (Saint-Pierre-et-Miquelon)",
|
|
10852
10688
|
id: "PM",
|
|
10853
10689
|
dialCode: "+508"
|
|
10854
10690
|
},
|
|
10855
10691
|
VC: {
|
|
10856
|
-
name: "Saint Vincent and the Grenadines",
|
|
10692
|
+
name: "Saint Vincent og Grenadinene (Saint Vincent and the Grenadines)",
|
|
10857
10693
|
id: "VC",
|
|
10858
10694
|
dialCode: "+1784"
|
|
10859
10695
|
},
|
|
10860
10696
|
WS: { name: "Samoa", id: "WS", dialCode: "+685" },
|
|
10861
10697
|
SM: { name: "San Marino", id: "SM", dialCode: "+378" },
|
|
10862
10698
|
ST: {
|
|
10863
|
-
name: "S\xE3o Tom\xE9
|
|
10699
|
+
name: "S\xE3o Tom\xE9 og Pr\xEDncipe (S\xE3o Tom\xE9 e Pr\xEDncipe)",
|
|
10864
10700
|
id: "ST",
|
|
10865
10701
|
dialCode: "+239"
|
|
10866
10702
|
},
|
|
10867
10703
|
SA: {
|
|
10868
|
-
name: "Saudi
|
|
10704
|
+
name: "Saudi-Arabia (\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629)",
|
|
10869
10705
|
id: "SA",
|
|
10870
10706
|
dialCode: "+966"
|
|
10871
10707
|
},
|
|
10872
|
-
SN: {
|
|
10873
|
-
|
|
10874
|
-
|
|
10875
|
-
dialCode: "+221"
|
|
10876
|
-
},
|
|
10877
|
-
RS: {
|
|
10878
|
-
name: "Serbia (\u0421\u0440\u0431\u0438\u0458\u0430)",
|
|
10879
|
-
id: "RS",
|
|
10880
|
-
dialCode: "+381"
|
|
10881
|
-
},
|
|
10882
|
-
SC: { name: "Seychelles", id: "SC", dialCode: "+248" },
|
|
10708
|
+
SN: { name: "Senegal (S\xE9n\xE9gal)", id: "SN", dialCode: "+221" },
|
|
10709
|
+
RS: { name: "Serbia (\u0421\u0440\u0431\u0438\u0458\u0430)", id: "RS", dialCode: "+381" },
|
|
10710
|
+
SC: { name: "Seychellene (Seychelles)", id: "SC", dialCode: "+248" },
|
|
10883
10711
|
SL: { name: "Sierra Leone", id: "SL", dialCode: "+232" },
|
|
10884
10712
|
SG: { name: "Singapore", id: "SG", dialCode: "+65" },
|
|
10885
10713
|
SX: { name: "Sint Maarten", id: "SX", dialCode: "+1721" },
|
|
10886
|
-
SK: {
|
|
10887
|
-
|
|
10888
|
-
|
|
10889
|
-
|
|
10890
|
-
},
|
|
10891
|
-
|
|
10892
|
-
name: "
|
|
10893
|
-
id: "
|
|
10894
|
-
dialCode: "+
|
|
10895
|
-
},
|
|
10896
|
-
SB: {
|
|
10897
|
-
name: "Solomon Islands",
|
|
10898
|
-
id: "SB",
|
|
10899
|
-
dialCode: "+677"
|
|
10900
|
-
},
|
|
10901
|
-
SO: {
|
|
10902
|
-
name: "Somalia (Soomaaliya)",
|
|
10903
|
-
id: "SO",
|
|
10904
|
-
dialCode: "+252"
|
|
10714
|
+
SK: { name: "Slovakia (Slovensko)", id: "SK", dialCode: "+421" },
|
|
10715
|
+
SI: { name: "Slovenia (Slovenija)", id: "SI", dialCode: "+386" },
|
|
10716
|
+
SB: { name: "Salomon\xF8yene (Solomon Islands)", id: "SB", dialCode: "+677" },
|
|
10717
|
+
SO: { name: "Somalia (Soomaaliya)", id: "SO", dialCode: "+252" },
|
|
10718
|
+
ZA: { name: "S\xF8r-Afrika (South Africa)", id: "ZA", dialCode: "+27" },
|
|
10719
|
+
GS: {
|
|
10720
|
+
name: "S\xF8r-Georgia og S\xF8r-Sandwich\xF8yene (South Georgia and the South Sandwich Islands)",
|
|
10721
|
+
id: "GS",
|
|
10722
|
+
dialCode: "+500"
|
|
10905
10723
|
},
|
|
10906
|
-
ZA: { name: "South Africa", id: "ZA", dialCode: "+27" },
|
|
10907
10724
|
KR: {
|
|
10908
|
-
name: "
|
|
10725
|
+
name: "S\xF8r-Korea (\uB300\uD55C\uBBFC\uAD6D)",
|
|
10909
10726
|
id: "KR",
|
|
10910
10727
|
dialCode: "+82"
|
|
10911
10728
|
},
|
|
10912
|
-
SS: {
|
|
10913
|
-
|
|
10914
|
-
|
|
10915
|
-
|
|
10916
|
-
},
|
|
10917
|
-
|
|
10918
|
-
|
|
10919
|
-
|
|
10920
|
-
|
|
10921
|
-
|
|
10922
|
-
},
|
|
10923
|
-
SD: {
|
|
10924
|
-
name: "Sudan (\u202B\u0627\u0644\u0633\u0648\u062F\u0627\u0646\u202C\u200E)",
|
|
10925
|
-
id: "SD",
|
|
10926
|
-
dialCode: "+249"
|
|
10927
|
-
},
|
|
10928
|
-
SR: { name: "Suriname", id: "SR", dialCode: "+597" },
|
|
10929
|
-
SJ: {
|
|
10930
|
-
name: "Svalbard and Jan Mayen",
|
|
10931
|
-
id: "SJ",
|
|
10932
|
-
dialCode: "+47"
|
|
10933
|
-
},
|
|
10934
|
-
SZ: { name: "Swaziland", id: "SZ", dialCode: "+268" },
|
|
10935
|
-
SE: { name: "Sweden (Sverige)", id: "SE", dialCode: "+46" },
|
|
10936
|
-
CH: {
|
|
10937
|
-
name: "Switzerland (Schweiz)",
|
|
10938
|
-
id: "CH",
|
|
10939
|
-
dialCode: "+41"
|
|
10940
|
-
},
|
|
10941
|
-
SY: {
|
|
10942
|
-
name: "Syria (\u202B\u0633\u0648\u0631\u064A\u0627\u202C\u200E)",
|
|
10943
|
-
id: "SY",
|
|
10944
|
-
dialCode: "+963"
|
|
10945
|
-
},
|
|
10729
|
+
SS: { name: "S\xF8r-Sudan (\u202B\u062C\u0646\u0648\u0628 \u0627\u0644\u0633\u0648\u062F\u0627\u0646\u202C\u200E)", id: "SS", dialCode: "+211" },
|
|
10730
|
+
ES: { name: "Spania (Espa\xF1a)", id: "ES", dialCode: "+34" },
|
|
10731
|
+
LK: { name: "Sri Lanka (\u0DC1\u0DCA\u200D\u0DBB\u0DD3 \u0DBD\u0D82\u0D9A\u0DCF\u0DC0)", id: "LK", dialCode: "+94" },
|
|
10732
|
+
SD: { name: "Sudan (\u0627\u0644\u0633\u0648\u062F\u0627\u0646)", id: "SD", dialCode: "+249" },
|
|
10733
|
+
SR: { name: "Surinam (Suriname)", id: "SR", dialCode: "+597" },
|
|
10734
|
+
SJ: { name: "Svalbard og Jan Mayen", id: "SJ", dialCode: "+47" },
|
|
10735
|
+
SZ: { name: "Eswatini", id: "SZ", dialCode: "+268" },
|
|
10736
|
+
SE: { name: "Sverige", id: "SE", dialCode: "+46" },
|
|
10737
|
+
CH: { name: "Sveits (Schweiz)", id: "CH", dialCode: "+41" },
|
|
10738
|
+
SY: { name: "Syria (\u202B\u0633\u0648\u0631\u064A\u0627\u202C\u200E)", id: "SY", dialCode: "+963" },
|
|
10946
10739
|
TW: { name: "Taiwan (\u53F0\u7063)", id: "TW", dialCode: "+886" },
|
|
10947
|
-
TJ: { name: "
|
|
10740
|
+
TJ: { name: "Tadsjikistan (\u0422\u0430\u0434\u0436\u0438\u043A\u0438\u0441\u0442\u0430\u043D)", id: "TJ", dialCode: "+992" },
|
|
10948
10741
|
TZ: { name: "Tanzania", id: "TZ", dialCode: "+255" },
|
|
10949
10742
|
TH: { name: "Thailand (\u0E44\u0E17\u0E22)", id: "TH", dialCode: "+66" },
|
|
10950
|
-
TL: { name: "Timor-Leste", id: "TL", dialCode: "+670" },
|
|
10743
|
+
TL: { name: "\xD8st-Timor (Timor-Leste)", id: "TL", dialCode: "+670" },
|
|
10951
10744
|
TG: { name: "Togo", id: "TG", dialCode: "+228" },
|
|
10952
10745
|
TK: { name: "Tokelau", id: "TK", dialCode: "+690" },
|
|
10953
10746
|
TO: { name: "Tonga", id: "TO", dialCode: "+676" },
|
|
10954
10747
|
TT: {
|
|
10955
|
-
name: "
|
|
10748
|
+
name: "Trinidad og Tobago (Trinidad and Tobago)",
|
|
10956
10749
|
id: "TT",
|
|
10957
10750
|
dialCode: "+1868"
|
|
10958
10751
|
},
|
|
10959
|
-
TN: {
|
|
10960
|
-
|
|
10961
|
-
id: "TN",
|
|
10962
|
-
dialCode: "+216"
|
|
10963
|
-
},
|
|
10964
|
-
TR: { name: "Turkey (T\xFCrkiye)", id: "TR", dialCode: "+90" },
|
|
10752
|
+
TN: { name: "Tunisia (\u202B\u062A\u0648\u0646\u0633\u202C\u200E)", id: "TN", dialCode: "+216" },
|
|
10753
|
+
TR: { name: "Tyrkia (T\xFCrkiye)", id: "TR", dialCode: "+90" },
|
|
10965
10754
|
TM: { name: "Turkmenistan", id: "TM", dialCode: "+993" },
|
|
10966
10755
|
TC: {
|
|
10967
|
-
name: "Turks and Caicos Islands",
|
|
10756
|
+
name: "Turks- og Caicos\xF8yene (Turks and Caicos Islands)",
|
|
10968
10757
|
id: "TC",
|
|
10969
10758
|
dialCode: "+1649"
|
|
10970
10759
|
},
|
|
10971
10760
|
TV: { name: "Tuvalu", id: "TV", dialCode: "+688" },
|
|
10972
10761
|
VI: {
|
|
10973
|
-
name: "U.S. Virgin Islands",
|
|
10762
|
+
name: "De amerikanske Jomfru\xF8yer (U.S. Virgin Islands)",
|
|
10974
10763
|
id: "VI",
|
|
10975
10764
|
dialCode: "+1340"
|
|
10976
10765
|
},
|
|
10977
10766
|
UG: { name: "Uganda", id: "UG", dialCode: "+256" },
|
|
10978
|
-
UA: {
|
|
10979
|
-
name: "Ukraine (\u0423\u043A\u0440\u0430\u0457\u043D\u0430)",
|
|
10980
|
-
id: "UA",
|
|
10981
|
-
dialCode: "+380"
|
|
10982
|
-
},
|
|
10767
|
+
UA: { name: "Ukraina (\u0423\u043A\u0440\u0430\u0457\u043D\u0430)", id: "UA", dialCode: "+380" },
|
|
10983
10768
|
AE: {
|
|
10984
|
-
name: "
|
|
10769
|
+
name: "De forente arabiske emirater (\u202B\u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062A \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0645\u062A\u062D\u062F\u0629\u202C\u200E)",
|
|
10985
10770
|
id: "AE",
|
|
10986
10771
|
dialCode: "+971"
|
|
10987
10772
|
},
|
|
10988
|
-
GB: { name: "United Kingdom", id: "GB", dialCode: "+44" },
|
|
10989
|
-
US: { name: "United States", id: "US", dialCode: "+1" },
|
|
10773
|
+
GB: { name: "Storbritannia (United Kingdom)", id: "GB", dialCode: "+44" },
|
|
10774
|
+
US: { name: "USA (United States)", id: "US", dialCode: "+1" },
|
|
10990
10775
|
UY: { name: "Uruguay", id: "UY", dialCode: "+598" },
|
|
10991
|
-
UZ: {
|
|
10992
|
-
name: "Uzbekistan (O\u02BBzbekiston)",
|
|
10993
|
-
id: "UZ",
|
|
10994
|
-
dialCode: "+998"
|
|
10995
|
-
},
|
|
10776
|
+
UZ: { name: "Usbekistan (\u040E\u0437\u0431\u0435\u043A\u0438\u0441\u0442\u043E\u043D)", id: "UZ", dialCode: "+998" },
|
|
10996
10777
|
VU: { name: "Vanuatu", id: "VU", dialCode: "+678" },
|
|
10997
|
-
VA: {
|
|
10998
|
-
name: "Vatican City (Citt\xE0 del Vaticano)",
|
|
10999
|
-
id: "VA",
|
|
11000
|
-
dialCode: "+39"
|
|
11001
|
-
},
|
|
11002
10778
|
VE: { name: "Venezuela", id: "VE", dialCode: "+58" },
|
|
11003
|
-
VN: {
|
|
11004
|
-
|
|
11005
|
-
id: "VN",
|
|
11006
|
-
dialCode: "+84"
|
|
11007
|
-
},
|
|
10779
|
+
VN: { name: "Vietnam (Vi\u1EC7t Nam)", id: "VN", dialCode: "+84" },
|
|
10780
|
+
EH: { name: "Vest-Sahara (Western Sahara)", id: "EH", dialCode: "+212" },
|
|
11008
10781
|
WF: {
|
|
11009
|
-
name: "Wallis
|
|
10782
|
+
name: "Wallis- og Futuna\xF8yene (Wallis-et-Futuna)",
|
|
11010
10783
|
id: "WF",
|
|
11011
10784
|
dialCode: "+681"
|
|
11012
10785
|
},
|
|
11013
|
-
YE: {
|
|
11014
|
-
name: "Yemen (\u202B\u0627\u0644\u064A\u0645\u0646\u202C\u200E)",
|
|
11015
|
-
id: "YE",
|
|
11016
|
-
dialCode: "+967"
|
|
11017
|
-
},
|
|
10786
|
+
YE: { name: "Yemen (\u202B\u0627\u0644\u064A\u0645\u0646\u202C\u200E)", id: "YE", dialCode: "+967" },
|
|
11018
10787
|
ZM: { name: "Zambia", id: "ZM", dialCode: "+260" },
|
|
11019
10788
|
ZW: { name: "Zimbabwe", id: "ZW", dialCode: "+263" },
|
|
11020
|
-
AX: { name: "\xC5land
|
|
10789
|
+
AX: { name: "\xC5land", id: "AX", dialCode: "+358" }
|
|
11021
10790
|
};
|
|
11022
10791
|
|
|
11023
10792
|
// src/components/PhoneInput/PhoneInput.module.css
|
|
@@ -11035,7 +10804,7 @@ var PhoneInput_default = {
|
|
|
11035
10804
|
};
|
|
11036
10805
|
|
|
11037
10806
|
// src/components/PhoneInput/PhoneInput.tsx
|
|
11038
|
-
import { jsx as
|
|
10807
|
+
import { jsx as jsx267, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
11039
10808
|
var prioritizedCountries = [
|
|
11040
10809
|
COUNTRIES.NO,
|
|
11041
10810
|
COUNTRIES.SE,
|
|
@@ -11050,7 +10819,15 @@ var prioritizedCountryOptions = prioritizedCountries.map((country) => {
|
|
|
11050
10819
|
});
|
|
11051
10820
|
var sortedCountryOptions = Object.values(
|
|
11052
10821
|
COUNTRIES
|
|
11053
|
-
).sort((a2, b) =>
|
|
10822
|
+
).sort((a2, b) => {
|
|
10823
|
+
if (a2.name < b.name) {
|
|
10824
|
+
return -1;
|
|
10825
|
+
}
|
|
10826
|
+
if (a2.name > b.name) {
|
|
10827
|
+
return 1;
|
|
10828
|
+
}
|
|
10829
|
+
return 0;
|
|
10830
|
+
}).map((country) => ({
|
|
11054
10831
|
countryCode: country.id,
|
|
11055
10832
|
label: `${country.name} ${country.dialCode}`
|
|
11056
10833
|
})).filter(
|
|
@@ -11165,7 +10942,7 @@ var PhoneInput = forwardRef78(
|
|
|
11165
10942
|
};
|
|
11166
10943
|
const showRequiredStyling = !!(required || ariaRequired);
|
|
11167
10944
|
return /* @__PURE__ */ jsxs62("div", { className: cn(className, Input_default.container), style, children: [
|
|
11168
|
-
hasLabel && /* @__PURE__ */
|
|
10945
|
+
hasLabel && /* @__PURE__ */ jsx267(
|
|
11169
10946
|
Label,
|
|
11170
10947
|
{
|
|
11171
10948
|
htmlFor: phoneNumberId,
|
|
@@ -11186,8 +10963,8 @@ var PhoneInput = forwardRef78(
|
|
|
11186
10963
|
role: "group",
|
|
11187
10964
|
"aria-label": groupLabel,
|
|
11188
10965
|
children: [
|
|
11189
|
-
/* @__PURE__ */
|
|
11190
|
-
/* @__PURE__ */
|
|
10966
|
+
/* @__PURE__ */ jsx267("label", { className: utilStyles_default["visually-hidden"], htmlFor: selectId, children: selectLabel }),
|
|
10967
|
+
/* @__PURE__ */ jsx267(
|
|
11191
10968
|
NativeSelect,
|
|
11192
10969
|
{
|
|
11193
10970
|
...commonProps,
|
|
@@ -11206,11 +10983,11 @@ var PhoneInput = forwardRef78(
|
|
|
11206
10983
|
hasTip ? tipId : void 0,
|
|
11207
10984
|
ariaDescribedby
|
|
11208
10985
|
]),
|
|
11209
|
-
children: countryOptions.map((item, index) => /* @__PURE__ */
|
|
10986
|
+
children: countryOptions.map((item, index) => /* @__PURE__ */ jsx267("option", { value: item.countryCode, children: item.label }, index))
|
|
11210
10987
|
}
|
|
11211
10988
|
),
|
|
11212
10989
|
/* @__PURE__ */ jsxs62("div", { className: Input_default["input-group"], children: [
|
|
11213
|
-
/* @__PURE__ */
|
|
10990
|
+
/* @__PURE__ */ jsx267(
|
|
11214
10991
|
"span",
|
|
11215
10992
|
{
|
|
11216
10993
|
className: cn(
|
|
@@ -11222,7 +10999,7 @@ var PhoneInput = forwardRef78(
|
|
|
11222
10999
|
children: callingCode
|
|
11223
11000
|
}
|
|
11224
11001
|
),
|
|
11225
|
-
/* @__PURE__ */
|
|
11002
|
+
/* @__PURE__ */ jsx267(
|
|
11226
11003
|
StatefulInput,
|
|
11227
11004
|
{
|
|
11228
11005
|
ref,
|
|
@@ -11274,7 +11051,7 @@ var Popover_default = {
|
|
|
11274
11051
|
};
|
|
11275
11052
|
|
|
11276
11053
|
// src/components/Popover/Popover.tsx
|
|
11277
|
-
import { jsx as
|
|
11054
|
+
import { jsx as jsx268, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
11278
11055
|
var Popover = forwardRef79(
|
|
11279
11056
|
(props, ref) => {
|
|
11280
11057
|
const {
|
|
@@ -11337,15 +11114,15 @@ var Popover = forwardRef79(
|
|
|
11337
11114
|
elevation: 3,
|
|
11338
11115
|
border: "subtle",
|
|
11339
11116
|
children: [
|
|
11340
|
-
title && /* @__PURE__ */
|
|
11341
|
-
/* @__PURE__ */
|
|
11117
|
+
title && /* @__PURE__ */ jsx268("div", { className: Popover_default.title, children: typeof title === "string" ? /* @__PURE__ */ jsx268(Heading, { level: 2, typographyType: "headingSans02", children: title }) : title }),
|
|
11118
|
+
/* @__PURE__ */ jsx268(
|
|
11342
11119
|
"div",
|
|
11343
11120
|
{
|
|
11344
11121
|
className: !hasTitle && withCloseButton ? Popover_default["content--closable--no-title"] : "",
|
|
11345
11122
|
children
|
|
11346
11123
|
}
|
|
11347
11124
|
),
|
|
11348
|
-
withCloseButton && /* @__PURE__ */
|
|
11125
|
+
withCloseButton && /* @__PURE__ */ jsx268(
|
|
11349
11126
|
Button,
|
|
11350
11127
|
{
|
|
11351
11128
|
icon: CloseIcon,
|
|
@@ -11372,7 +11149,7 @@ import {
|
|
|
11372
11149
|
useRef as useRef30,
|
|
11373
11150
|
useState as useState20
|
|
11374
11151
|
} from "react";
|
|
11375
|
-
import { Fragment as Fragment9, jsx as
|
|
11152
|
+
import { Fragment as Fragment9, jsx as jsx269 } from "react/jsx-runtime";
|
|
11376
11153
|
var PopoverGroup = ({
|
|
11377
11154
|
isOpen = false,
|
|
11378
11155
|
onCloseButtonClick,
|
|
@@ -11418,7 +11195,7 @@ var PopoverGroup = ({
|
|
|
11418
11195
|
onClose: handleClose
|
|
11419
11196
|
}));
|
|
11420
11197
|
});
|
|
11421
|
-
return /* @__PURE__ */
|
|
11198
|
+
return /* @__PURE__ */ jsx269(Fragment9, { children: Children8 });
|
|
11422
11199
|
};
|
|
11423
11200
|
PopoverGroup.displayName = "PopoverGroup";
|
|
11424
11201
|
|
|
@@ -11435,13 +11212,13 @@ import {
|
|
|
11435
11212
|
} from "react";
|
|
11436
11213
|
|
|
11437
11214
|
// src/components/ProgressTracker/ProgressTracker.context.tsx
|
|
11438
|
-
import { createContext as createContext4, useContext as
|
|
11215
|
+
import { createContext as createContext4, useContext as useContext8 } from "react";
|
|
11439
11216
|
var ProgressTrackerContext = createContext4(
|
|
11440
11217
|
{
|
|
11441
11218
|
activeStep: 0
|
|
11442
11219
|
}
|
|
11443
11220
|
);
|
|
11444
|
-
var useProgressTrackerContext = () =>
|
|
11221
|
+
var useProgressTrackerContext = () => useContext8(ProgressTrackerContext);
|
|
11445
11222
|
|
|
11446
11223
|
// src/components/ProgressTracker/ProgressTracker.module.css
|
|
11447
11224
|
var ProgressTracker_default = {
|
|
@@ -11466,7 +11243,7 @@ var ProgressTracker_default = {
|
|
|
11466
11243
|
|
|
11467
11244
|
// src/components/ProgressTracker/ProgressTrackerItem.tsx
|
|
11468
11245
|
import { useMemo as useMemo2 } from "react";
|
|
11469
|
-
import { Fragment as Fragment10, jsx as
|
|
11246
|
+
import { Fragment as Fragment10, jsx as jsx270, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
11470
11247
|
var toItemState = (active, completed, disabled) => {
|
|
11471
11248
|
if (disabled) {
|
|
11472
11249
|
return "disabled";
|
|
@@ -11509,15 +11286,15 @@ var ProgressTrackerItem = (props) => {
|
|
|
11509
11286
|
};
|
|
11510
11287
|
const stepNumberContent = useMemo2(() => {
|
|
11511
11288
|
if (completed) {
|
|
11512
|
-
return /* @__PURE__ */
|
|
11289
|
+
return /* @__PURE__ */ jsx270(Icon, { icon: CheckIcon, iconSize: "small" });
|
|
11513
11290
|
}
|
|
11514
11291
|
if (icon !== void 0) {
|
|
11515
|
-
return /* @__PURE__ */
|
|
11292
|
+
return /* @__PURE__ */ jsx270(Icon, { icon, iconSize: "small" });
|
|
11516
11293
|
}
|
|
11517
11294
|
return index + 1;
|
|
11518
11295
|
}, [completed, icon, index]);
|
|
11519
11296
|
const stepContent = /* @__PURE__ */ jsxs64(Fragment10, { children: [
|
|
11520
|
-
/* @__PURE__ */
|
|
11297
|
+
/* @__PURE__ */ jsx270(
|
|
11521
11298
|
"div",
|
|
11522
11299
|
{
|
|
11523
11300
|
"aria-hidden": true,
|
|
@@ -11538,13 +11315,13 @@ var ProgressTrackerItem = (props) => {
|
|
|
11538
11315
|
typographyStyles_default["body-sans-03"]
|
|
11539
11316
|
),
|
|
11540
11317
|
children: [
|
|
11541
|
-
/* @__PURE__ */
|
|
11318
|
+
/* @__PURE__ */ jsx270(VisuallyHidden, { as: "span", children: getVisuallyHiddenText(active, completed, index) }),
|
|
11542
11319
|
children
|
|
11543
11320
|
]
|
|
11544
11321
|
}
|
|
11545
11322
|
)
|
|
11546
11323
|
] });
|
|
11547
|
-
return /* @__PURE__ */
|
|
11324
|
+
return /* @__PURE__ */ jsx270("li", { "aria-current": active ? "step" : void 0, className: ProgressTracker_default.item, children: handleStepChange ? /* @__PURE__ */ jsx270(
|
|
11548
11325
|
"button",
|
|
11549
11326
|
{
|
|
11550
11327
|
...getBaseHTMLProps(
|
|
@@ -11557,7 +11334,7 @@ var ProgressTrackerItem = (props) => {
|
|
|
11557
11334
|
disabled,
|
|
11558
11335
|
children: stepContent
|
|
11559
11336
|
}
|
|
11560
|
-
) : /* @__PURE__ */
|
|
11337
|
+
) : /* @__PURE__ */ jsx270(
|
|
11561
11338
|
"div",
|
|
11562
11339
|
{
|
|
11563
11340
|
...getBaseHTMLProps(
|
|
@@ -11573,7 +11350,7 @@ var ProgressTrackerItem = (props) => {
|
|
|
11573
11350
|
ProgressTrackerItem.displayName = "ProgressTracker.Item";
|
|
11574
11351
|
|
|
11575
11352
|
// src/components/ProgressTracker/ProgressTracker.tsx
|
|
11576
|
-
import { jsx as
|
|
11353
|
+
import { jsx as jsx271, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
11577
11354
|
var ProgressTracker = (() => {
|
|
11578
11355
|
const Res = forwardRef80((props, ref) => {
|
|
11579
11356
|
const {
|
|
@@ -11605,14 +11382,14 @@ var ProgressTracker = (() => {
|
|
|
11605
11382
|
const itemsWithConnectorsBetween = intersperseItemsWithConnector(itemsWithIndex);
|
|
11606
11383
|
return itemsWithConnectorsBetween;
|
|
11607
11384
|
}, [children]);
|
|
11608
|
-
return /* @__PURE__ */
|
|
11385
|
+
return /* @__PURE__ */ jsx271(
|
|
11609
11386
|
ProgressTrackerContext.Provider,
|
|
11610
11387
|
{
|
|
11611
11388
|
value: {
|
|
11612
11389
|
activeStep: thisActiveStep,
|
|
11613
11390
|
handleStepChange: handleChange
|
|
11614
11391
|
},
|
|
11615
|
-
children: /* @__PURE__ */
|
|
11392
|
+
children: /* @__PURE__ */ jsx271("div", { role: "group", "aria-label": "progress", ...containerProps, children: /* @__PURE__ */ jsx271("ol", { className: ProgressTracker_default.list, children: steps }) })
|
|
11616
11393
|
}
|
|
11617
11394
|
);
|
|
11618
11395
|
});
|
|
@@ -11637,7 +11414,7 @@ var intersperseItemsWithConnector = (children) => Children4.map(children, (child
|
|
|
11637
11414
|
return child;
|
|
11638
11415
|
}
|
|
11639
11416
|
return /* @__PURE__ */ jsxs65(Fragment11, { children: [
|
|
11640
|
-
/* @__PURE__ */
|
|
11417
|
+
/* @__PURE__ */ jsx271("div", { "aria-hidden": true, className: ProgressTracker_default.connector }),
|
|
11641
11418
|
child
|
|
11642
11419
|
] }, index);
|
|
11643
11420
|
});
|
|
@@ -11659,7 +11436,7 @@ var ProgressBar_default = {
|
|
|
11659
11436
|
};
|
|
11660
11437
|
|
|
11661
11438
|
// src/components/ProgressBar/ProgressBar.tsx
|
|
11662
|
-
import { jsx as
|
|
11439
|
+
import { jsx as jsx272, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
11663
11440
|
var ProgressBar = forwardRef81(
|
|
11664
11441
|
(props, ref) => {
|
|
11665
11442
|
const {
|
|
@@ -11695,8 +11472,8 @@ var ProgressBar = forwardRef81(
|
|
|
11695
11472
|
["--dds-progressbar-fill-width"]: fillPrecentage != null ? fillPrecentage : 0
|
|
11696
11473
|
};
|
|
11697
11474
|
return /* @__PURE__ */ jsxs66("div", { className: cn(className, ProgressBar_default.container), style, children: [
|
|
11698
|
-
hasLabel ? /* @__PURE__ */
|
|
11699
|
-
/* @__PURE__ */
|
|
11475
|
+
hasLabel ? /* @__PURE__ */ jsx272(Label, { htmlFor: uniqueId, children: label }) : void 0,
|
|
11476
|
+
/* @__PURE__ */ jsx272(
|
|
11700
11477
|
"progress",
|
|
11701
11478
|
{
|
|
11702
11479
|
ref,
|
|
@@ -11713,12 +11490,12 @@ var ProgressBar = forwardRef81(
|
|
|
11713
11490
|
children: fillPrecentage
|
|
11714
11491
|
}
|
|
11715
11492
|
),
|
|
11716
|
-
/* @__PURE__ */
|
|
11493
|
+
/* @__PURE__ */ jsx272(
|
|
11717
11494
|
"div",
|
|
11718
11495
|
{
|
|
11719
11496
|
style: progressStyleVariables,
|
|
11720
11497
|
className: cn(ProgressBar_default.progress, ProgressBar_default[`progress--${size2}`]),
|
|
11721
|
-
children: /* @__PURE__ */
|
|
11498
|
+
children: /* @__PURE__ */ jsx272(
|
|
11722
11499
|
"div",
|
|
11723
11500
|
{
|
|
11724
11501
|
style: fillStyleVariables,
|
|
@@ -11748,11 +11525,11 @@ import {
|
|
|
11748
11525
|
// src/components/Search/AutocompleteSearch.context.tsx
|
|
11749
11526
|
import {
|
|
11750
11527
|
createContext as createContext5,
|
|
11751
|
-
useContext as
|
|
11528
|
+
useContext as useContext9
|
|
11752
11529
|
} from "react";
|
|
11753
11530
|
var AutocompleteSearchContext = createContext5({});
|
|
11754
11531
|
var useAutocompleteSearch = () => {
|
|
11755
|
-
return
|
|
11532
|
+
return useContext9(AutocompleteSearchContext);
|
|
11756
11533
|
};
|
|
11757
11534
|
|
|
11758
11535
|
// src/components/Search/Search.module.css
|
|
@@ -11810,7 +11587,7 @@ import {
|
|
|
11810
11587
|
useEffect as useEffect25,
|
|
11811
11588
|
useRef as useRef31
|
|
11812
11589
|
} from "react";
|
|
11813
|
-
import { jsx as
|
|
11590
|
+
import { jsx as jsx273 } from "react/jsx-runtime";
|
|
11814
11591
|
var SearchSuggestionItem = forwardRef82((props, ref) => {
|
|
11815
11592
|
const { focus, className, ...rest } = props;
|
|
11816
11593
|
const itemRef = useRef31(null);
|
|
@@ -11821,7 +11598,7 @@ var SearchSuggestionItem = forwardRef82((props, ref) => {
|
|
|
11821
11598
|
(_a = itemRef.current) == null ? void 0 : _a.focus();
|
|
11822
11599
|
}
|
|
11823
11600
|
}, [focus]);
|
|
11824
|
-
return /* @__PURE__ */
|
|
11601
|
+
return /* @__PURE__ */ jsx273(
|
|
11825
11602
|
"button",
|
|
11826
11603
|
{
|
|
11827
11604
|
ref: combinedRef,
|
|
@@ -11840,7 +11617,7 @@ var SearchSuggestionItem = forwardRef82((props, ref) => {
|
|
|
11840
11617
|
SearchSuggestionItem.displayName = "SearchSuggestionItem";
|
|
11841
11618
|
|
|
11842
11619
|
// src/components/Search/SearchSuggestions.tsx
|
|
11843
|
-
import { jsx as
|
|
11620
|
+
import { jsx as jsx274, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
11844
11621
|
var SearchSuggestions = forwardRef83((props, ref) => {
|
|
11845
11622
|
const {
|
|
11846
11623
|
id,
|
|
@@ -11879,7 +11656,7 @@ var SearchSuggestions = forwardRef83((props, ref) => {
|
|
|
11879
11656
|
"aria-hidden": !showSuggestions,
|
|
11880
11657
|
border: "default",
|
|
11881
11658
|
children: [
|
|
11882
|
-
/* @__PURE__ */
|
|
11659
|
+
/* @__PURE__ */ jsx274(
|
|
11883
11660
|
"span",
|
|
11884
11661
|
{
|
|
11885
11662
|
id: suggestionsHeaderId,
|
|
@@ -11890,14 +11667,14 @@ var SearchSuggestions = forwardRef83((props, ref) => {
|
|
|
11890
11667
|
children: "S\xF8keforslag"
|
|
11891
11668
|
}
|
|
11892
11669
|
),
|
|
11893
|
-
/* @__PURE__ */
|
|
11670
|
+
/* @__PURE__ */ jsx274(
|
|
11894
11671
|
"ul",
|
|
11895
11672
|
{
|
|
11896
11673
|
role: "listbox",
|
|
11897
11674
|
"aria-labelledby": suggestionsHeaderId,
|
|
11898
11675
|
className: utilStyles_default["remove-list-styling"],
|
|
11899
11676
|
children: suggestionsToRender.map((suggestion, index) => {
|
|
11900
|
-
return /* @__PURE__ */
|
|
11677
|
+
return /* @__PURE__ */ jsx274("li", { role: "option", children: /* @__PURE__ */ jsx274(
|
|
11901
11678
|
SearchSuggestionItem,
|
|
11902
11679
|
{
|
|
11903
11680
|
index,
|
|
@@ -11920,8 +11697,8 @@ var SearchSuggestions = forwardRef83((props, ref) => {
|
|
|
11920
11697
|
SearchSuggestions.displayName = "SearchSuggestions";
|
|
11921
11698
|
|
|
11922
11699
|
// src/components/Search/Search.tsx
|
|
11923
|
-
import { Fragment as Fragment12, jsx as
|
|
11924
|
-
var
|
|
11700
|
+
import { Fragment as Fragment12, jsx as jsx275, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
11701
|
+
var getIconSize2 = (size2) => {
|
|
11925
11702
|
switch (size2) {
|
|
11926
11703
|
case "large":
|
|
11927
11704
|
return "medium";
|
|
@@ -11976,7 +11753,7 @@ var Search = forwardRef84(
|
|
|
11976
11753
|
const hasSuggestions = !!context.suggestions;
|
|
11977
11754
|
const showSearchButton = !!buttonProps && !!onClick;
|
|
11978
11755
|
return /* @__PURE__ */ jsxs68("div", { className: Search_default.container, children: [
|
|
11979
|
-
hasLabel && /* @__PURE__ */
|
|
11756
|
+
hasLabel && /* @__PURE__ */ jsx275(Label, { htmlFor: uniqueId, children: label }),
|
|
11980
11757
|
/* @__PURE__ */ jsxs68("div", { children: [
|
|
11981
11758
|
/* @__PURE__ */ jsxs68(
|
|
11982
11759
|
"div",
|
|
@@ -11988,18 +11765,18 @@ var Search = forwardRef84(
|
|
|
11988
11765
|
style,
|
|
11989
11766
|
children: [
|
|
11990
11767
|
/* @__PURE__ */ jsxs68("div", { className: Search_default["input-group"], children: [
|
|
11991
|
-
/* @__PURE__ */
|
|
11768
|
+
/* @__PURE__ */ jsx275(
|
|
11992
11769
|
Icon,
|
|
11993
11770
|
{
|
|
11994
11771
|
icon: SearchIcon,
|
|
11995
|
-
iconSize:
|
|
11772
|
+
iconSize: getIconSize2(componentSize),
|
|
11996
11773
|
className: cn(
|
|
11997
11774
|
Input_default["input-group__absolute-element"],
|
|
11998
11775
|
Search_default["search-icon"]
|
|
11999
11776
|
)
|
|
12000
11777
|
}
|
|
12001
11778
|
),
|
|
12002
|
-
/* @__PURE__ */
|
|
11779
|
+
/* @__PURE__ */ jsx275(
|
|
12003
11780
|
Input,
|
|
12004
11781
|
{
|
|
12005
11782
|
...rest,
|
|
@@ -12027,7 +11804,7 @@ var Search = forwardRef84(
|
|
|
12027
11804
|
}
|
|
12028
11805
|
),
|
|
12029
11806
|
hasSuggestions && /* @__PURE__ */ jsxs68(Fragment12, { children: [
|
|
12030
|
-
/* @__PURE__ */
|
|
11807
|
+
/* @__PURE__ */ jsx275(
|
|
12031
11808
|
SearchSuggestions,
|
|
12032
11809
|
{
|
|
12033
11810
|
id: suggestionsId,
|
|
@@ -12039,9 +11816,9 @@ var Search = forwardRef84(
|
|
|
12039
11816
|
componentSize
|
|
12040
11817
|
}
|
|
12041
11818
|
),
|
|
12042
|
-
/* @__PURE__ */
|
|
11819
|
+
/* @__PURE__ */ jsx275(VisuallyHidden, { id: suggestionsDescriptionId, as: "span", children: "Bla i s\xF8keforslag med piltaster n\xE5r listen er utvidet." })
|
|
12043
11820
|
] }),
|
|
12044
|
-
hasValue && /* @__PURE__ */
|
|
11821
|
+
hasValue && /* @__PURE__ */ jsx275(
|
|
12045
11822
|
Button,
|
|
12046
11823
|
{
|
|
12047
11824
|
icon: CloseSmallIcon,
|
|
@@ -12053,7 +11830,7 @@ var Search = forwardRef84(
|
|
|
12053
11830
|
}
|
|
12054
11831
|
)
|
|
12055
11832
|
] }),
|
|
12056
|
-
showSearchButton && /* @__PURE__ */
|
|
11833
|
+
showSearchButton && /* @__PURE__ */ jsx275(
|
|
12057
11834
|
Button,
|
|
12058
11835
|
{
|
|
12059
11836
|
size: componentSize,
|
|
@@ -12078,7 +11855,7 @@ import {
|
|
|
12078
11855
|
useRef as useRef32,
|
|
12079
11856
|
useState as useState23
|
|
12080
11857
|
} from "react";
|
|
12081
|
-
import { jsx as
|
|
11858
|
+
import { jsx as jsx276 } from "react/jsx-runtime";
|
|
12082
11859
|
var SearchAutocompleteWrapper = (props) => {
|
|
12083
11860
|
const {
|
|
12084
11861
|
value,
|
|
@@ -12154,7 +11931,7 @@ var SearchAutocompleteWrapper = (props) => {
|
|
|
12154
11931
|
inputValue,
|
|
12155
11932
|
onSugggestionClick: handleSuggestionClick
|
|
12156
11933
|
};
|
|
12157
|
-
return /* @__PURE__ */
|
|
11934
|
+
return /* @__PURE__ */ jsx276(AutocompleteSearchContext.Provider, { value: contextProps, children });
|
|
12158
11935
|
};
|
|
12159
11936
|
SearchAutocompleteWrapper.displayName = "SearchAutocompleteWrapper";
|
|
12160
11937
|
|
|
@@ -12167,10 +11944,10 @@ Search2.Suggestions = SearchSuggestions;
|
|
|
12167
11944
|
import { forwardRef as forwardRef86, useId as useId21 } from "react";
|
|
12168
11945
|
|
|
12169
11946
|
// src/components/SelectionControl/Checkbox/CheckboxGroupContext.tsx
|
|
12170
|
-
import { createContext as createContext6, useContext as
|
|
11947
|
+
import { createContext as createContext6, useContext as useContext10 } from "react";
|
|
12171
11948
|
var CheckboxGroupContext = createContext6(null);
|
|
12172
11949
|
var useCheckboxGroup = () => {
|
|
12173
|
-
return
|
|
11950
|
+
return useContext10(CheckboxGroupContext);
|
|
12174
11951
|
};
|
|
12175
11952
|
|
|
12176
11953
|
// src/components/SelectionControl/SelectionControl.styles.tsx
|
|
@@ -12196,10 +11973,10 @@ var SelectionControl_default = {
|
|
|
12196
11973
|
};
|
|
12197
11974
|
|
|
12198
11975
|
// src/components/SelectionControl/SelectionControl.styles.tsx
|
|
12199
|
-
import { jsx as
|
|
11976
|
+
import { jsx as jsx277 } from "react/jsx-runtime";
|
|
12200
11977
|
var SelectionControl = forwardRef85((props, ref) => {
|
|
12201
11978
|
const { controlType, className, ...rest } = props;
|
|
12202
|
-
return /* @__PURE__ */
|
|
11979
|
+
return /* @__PURE__ */ jsx277(
|
|
12203
11980
|
"span",
|
|
12204
11981
|
{
|
|
12205
11982
|
ref,
|
|
@@ -12223,7 +12000,7 @@ var Label2 = forwardRef85(
|
|
|
12223
12000
|
className,
|
|
12224
12001
|
...rest
|
|
12225
12002
|
} = props;
|
|
12226
|
-
return /* @__PURE__ */
|
|
12003
|
+
return /* @__PURE__ */ jsx277(
|
|
12227
12004
|
"label",
|
|
12228
12005
|
{
|
|
12229
12006
|
ref,
|
|
@@ -12254,7 +12031,7 @@ var selectionControlTypographyProps = {
|
|
|
12254
12031
|
};
|
|
12255
12032
|
|
|
12256
12033
|
// src/components/SelectionControl/Checkbox/Checkbox.tsx
|
|
12257
|
-
import { jsx as
|
|
12034
|
+
import { jsx as jsx278, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
12258
12035
|
var Checkbox = forwardRef86(
|
|
12259
12036
|
(props, ref) => {
|
|
12260
12037
|
const {
|
|
@@ -12294,7 +12071,7 @@ var Checkbox = forwardRef86(
|
|
|
12294
12071
|
className: cn(className, htmlPropsClassName),
|
|
12295
12072
|
style,
|
|
12296
12073
|
children: [
|
|
12297
|
-
/* @__PURE__ */
|
|
12074
|
+
/* @__PURE__ */ jsx278(
|
|
12298
12075
|
"input",
|
|
12299
12076
|
{
|
|
12300
12077
|
...getBaseHTMLProps(uniqueId, restHtmlProps, rest),
|
|
@@ -12324,14 +12101,14 @@ var Checkbox = forwardRef86(
|
|
|
12324
12101
|
onClick: readOnlyClickHandler(isReadOnly, htmlProps.onClick)
|
|
12325
12102
|
}
|
|
12326
12103
|
),
|
|
12327
|
-
/* @__PURE__ */
|
|
12104
|
+
/* @__PURE__ */ jsx278(
|
|
12328
12105
|
SelectionControl,
|
|
12329
12106
|
{
|
|
12330
12107
|
controlType: "checkbox",
|
|
12331
12108
|
className: focus_default["focus-styled-sibling"]
|
|
12332
12109
|
}
|
|
12333
12110
|
),
|
|
12334
|
-
hasLabel && /* @__PURE__ */
|
|
12111
|
+
hasLabel && /* @__PURE__ */ jsx278(Typography, { ...selectionControlTypographyProps, children: label })
|
|
12335
12112
|
]
|
|
12336
12113
|
}
|
|
12337
12114
|
);
|
|
@@ -12341,7 +12118,7 @@ Checkbox.displayName = "Checkbox";
|
|
|
12341
12118
|
|
|
12342
12119
|
// src/components/SelectionControl/Checkbox/CheckboxGroup.tsx
|
|
12343
12120
|
import { useId as useId22 } from "react";
|
|
12344
|
-
import { jsx as
|
|
12121
|
+
import { jsx as jsx279, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
12345
12122
|
var CheckboxGroup = (props) => {
|
|
12346
12123
|
const {
|
|
12347
12124
|
label,
|
|
@@ -12383,7 +12160,7 @@ var CheckboxGroup = (props) => {
|
|
|
12383
12160
|
rest
|
|
12384
12161
|
),
|
|
12385
12162
|
children: [
|
|
12386
|
-
/* @__PURE__ */ jsxs70(
|
|
12163
|
+
label !== void 0 ? /* @__PURE__ */ jsxs70(
|
|
12387
12164
|
Typography,
|
|
12388
12165
|
{
|
|
12389
12166
|
as: "span",
|
|
@@ -12391,15 +12168,15 @@ var CheckboxGroup = (props) => {
|
|
|
12391
12168
|
id: uniqueGroupId,
|
|
12392
12169
|
className: readOnly ? Label_default["read-only"] : void 0,
|
|
12393
12170
|
children: [
|
|
12394
|
-
readOnly && /* @__PURE__ */
|
|
12171
|
+
readOnly && /* @__PURE__ */ jsx279(Icon, { icon: LockIcon, className: Label_default["read-only__icon"] }),
|
|
12395
12172
|
label,
|
|
12396
12173
|
" ",
|
|
12397
|
-
showRequiredMarker && /* @__PURE__ */
|
|
12174
|
+
showRequiredMarker && /* @__PURE__ */ jsx279(RequiredMarker, {})
|
|
12398
12175
|
]
|
|
12399
12176
|
}
|
|
12400
|
-
),
|
|
12177
|
+
) : null,
|
|
12401
12178
|
renderInputMessage(tip, tipId),
|
|
12402
|
-
/* @__PURE__ */
|
|
12179
|
+
/* @__PURE__ */ jsx279(CheckboxGroupContext.Provider, { value: { ...contextProps }, children: /* @__PURE__ */ jsx279(
|
|
12403
12180
|
"div",
|
|
12404
12181
|
{
|
|
12405
12182
|
role: "group",
|
|
@@ -12420,14 +12197,14 @@ CheckboxGroup.displayName = "CheckboxGroup";
|
|
|
12420
12197
|
import { forwardRef as forwardRef87, useId as useId23 } from "react";
|
|
12421
12198
|
|
|
12422
12199
|
// src/components/SelectionControl/RadioButton/RadioButtonGroupContext.tsx
|
|
12423
|
-
import { createContext as createContext7, useContext as
|
|
12200
|
+
import { createContext as createContext7, useContext as useContext11 } from "react";
|
|
12424
12201
|
var RadioButtonGroupContext = createContext7(null);
|
|
12425
12202
|
var useRadioButtonGroup = () => {
|
|
12426
|
-
return
|
|
12203
|
+
return useContext11(RadioButtonGroupContext);
|
|
12427
12204
|
};
|
|
12428
12205
|
|
|
12429
12206
|
// src/components/SelectionControl/RadioButton/RadioButton.tsx
|
|
12430
|
-
import { jsx as
|
|
12207
|
+
import { jsx as jsx280, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
12431
12208
|
var isValueEqualToGroupValueOrFalsy = (value, group) => {
|
|
12432
12209
|
if (typeof value !== "undefined" && value !== null && group) {
|
|
12433
12210
|
if (typeof value === "number") {
|
|
@@ -12488,7 +12265,7 @@ var RadioButton = forwardRef87(
|
|
|
12488
12265
|
htmlFor: uniqueId,
|
|
12489
12266
|
controlType: "radio",
|
|
12490
12267
|
children: [
|
|
12491
|
-
/* @__PURE__ */
|
|
12268
|
+
/* @__PURE__ */ jsx280(
|
|
12492
12269
|
"input",
|
|
12493
12270
|
{
|
|
12494
12271
|
...getBaseHTMLProps(uniqueId, restHtmlProps, rest),
|
|
@@ -12514,14 +12291,14 @@ var RadioButton = forwardRef87(
|
|
|
12514
12291
|
onClick: readOnlyClickHandler(isReadOnly, htmlProps.onClick)
|
|
12515
12292
|
}
|
|
12516
12293
|
),
|
|
12517
|
-
/* @__PURE__ */
|
|
12294
|
+
/* @__PURE__ */ jsx280(
|
|
12518
12295
|
SelectionControl,
|
|
12519
12296
|
{
|
|
12520
12297
|
controlType: "radio",
|
|
12521
12298
|
className: focus_default["focus-styled-sibling"]
|
|
12522
12299
|
}
|
|
12523
12300
|
),
|
|
12524
|
-
/* @__PURE__ */
|
|
12301
|
+
/* @__PURE__ */ jsx280(Typography, { ...selectionControlTypographyProps, children: children != null ? children : label })
|
|
12525
12302
|
]
|
|
12526
12303
|
}
|
|
12527
12304
|
);
|
|
@@ -12535,7 +12312,7 @@ import {
|
|
|
12535
12312
|
useId as useId24,
|
|
12536
12313
|
useState as useState24
|
|
12537
12314
|
} from "react";
|
|
12538
|
-
import { jsx as
|
|
12315
|
+
import { jsx as jsx281, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
12539
12316
|
var RadioButtonGroupInner = (props, ref) => {
|
|
12540
12317
|
const {
|
|
12541
12318
|
name,
|
|
@@ -12596,15 +12373,15 @@ var RadioButtonGroupInner = (props, ref) => {
|
|
|
12596
12373
|
id: uniqueGroupId,
|
|
12597
12374
|
className: readOnly ? Label_default["read-only"] : void 0,
|
|
12598
12375
|
children: [
|
|
12599
|
-
readOnly && /* @__PURE__ */
|
|
12376
|
+
readOnly && /* @__PURE__ */ jsx281(Icon, { icon: LockIcon, className: Label_default["read-only__icon"] }),
|
|
12600
12377
|
label,
|
|
12601
12378
|
" ",
|
|
12602
|
-
showRequiredMarker && /* @__PURE__ */
|
|
12379
|
+
showRequiredMarker && /* @__PURE__ */ jsx281(RequiredMarker, {})
|
|
12603
12380
|
]
|
|
12604
12381
|
}
|
|
12605
12382
|
),
|
|
12606
12383
|
renderInputMessage(tip, tipId),
|
|
12607
|
-
/* @__PURE__ */
|
|
12384
|
+
/* @__PURE__ */ jsx281(RadioButtonGroupContext.Provider, { value: { ...contextProps }, children: /* @__PURE__ */ jsx281(
|
|
12608
12385
|
"div",
|
|
12609
12386
|
{
|
|
12610
12387
|
role: "radiogroup",
|
|
@@ -12633,7 +12410,7 @@ var Skeleton_default = {
|
|
|
12633
12410
|
};
|
|
12634
12411
|
|
|
12635
12412
|
// src/components/Skeleton/Skeleton.tsx
|
|
12636
|
-
import { jsx as
|
|
12413
|
+
import { jsx as jsx282 } from "react/jsx-runtime";
|
|
12637
12414
|
var Skeleton = forwardRef89(
|
|
12638
12415
|
(props, ref) => {
|
|
12639
12416
|
const {
|
|
@@ -12644,7 +12421,7 @@ var Skeleton = forwardRef89(
|
|
|
12644
12421
|
style,
|
|
12645
12422
|
...rest
|
|
12646
12423
|
} = props;
|
|
12647
|
-
return /* @__PURE__ */
|
|
12424
|
+
return /* @__PURE__ */ jsx282(
|
|
12648
12425
|
"div",
|
|
12649
12426
|
{
|
|
12650
12427
|
ref,
|
|
@@ -12666,7 +12443,7 @@ var SkipToContent_default = {
|
|
|
12666
12443
|
};
|
|
12667
12444
|
|
|
12668
12445
|
// src/components/SkipToContent/SkipToContent.tsx
|
|
12669
|
-
import { jsx as
|
|
12446
|
+
import { jsx as jsx283 } from "react/jsx-runtime";
|
|
12670
12447
|
var SkipToContent = forwardRef90(
|
|
12671
12448
|
(props, ref) => {
|
|
12672
12449
|
const {
|
|
@@ -12682,12 +12459,12 @@ var SkipToContent = forwardRef90(
|
|
|
12682
12459
|
style,
|
|
12683
12460
|
...restHtmlProps
|
|
12684
12461
|
} = htmlProps;
|
|
12685
|
-
return /* @__PURE__ */
|
|
12462
|
+
return /* @__PURE__ */ jsx283(
|
|
12686
12463
|
Contrast,
|
|
12687
12464
|
{
|
|
12688
12465
|
className: cn(className, htmlPropsClassName, SkipToContent_default.wrapper),
|
|
12689
12466
|
style: { ...style, top },
|
|
12690
|
-
children: /* @__PURE__ */
|
|
12467
|
+
children: /* @__PURE__ */ jsx283(Link, { ...getBaseHTMLProps(id, restHtmlProps, rest), ref, children: text })
|
|
12691
12468
|
}
|
|
12692
12469
|
);
|
|
12693
12470
|
}
|
|
@@ -12706,7 +12483,7 @@ var SplitButton_default = {
|
|
|
12706
12483
|
};
|
|
12707
12484
|
|
|
12708
12485
|
// src/components/SplitButton/SplitButton.tsx
|
|
12709
|
-
import { jsx as
|
|
12486
|
+
import { jsx as jsx284, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
12710
12487
|
var SplitButton = forwardRef91(
|
|
12711
12488
|
(props, ref) => {
|
|
12712
12489
|
const {
|
|
@@ -12723,7 +12500,7 @@ var SplitButton = forwardRef91(
|
|
|
12723
12500
|
size: size2
|
|
12724
12501
|
};
|
|
12725
12502
|
return /* @__PURE__ */ jsxs73("div", { ref, className: cn(className, SplitButton_default.container), ...rest, children: [
|
|
12726
|
-
/* @__PURE__ */
|
|
12503
|
+
/* @__PURE__ */ jsx284(
|
|
12727
12504
|
Button,
|
|
12728
12505
|
{
|
|
12729
12506
|
...buttonStyleProps,
|
|
@@ -12733,7 +12510,7 @@ var SplitButton = forwardRef91(
|
|
|
12733
12510
|
}
|
|
12734
12511
|
),
|
|
12735
12512
|
/* @__PURE__ */ jsxs73(OverflowMenuGroup, { onToggle: () => setIsOpen(!isOpen), children: [
|
|
12736
|
-
/* @__PURE__ */
|
|
12513
|
+
/* @__PURE__ */ jsx284(
|
|
12737
12514
|
Button,
|
|
12738
12515
|
{
|
|
12739
12516
|
...buttonStyleProps,
|
|
@@ -12746,7 +12523,7 @@ var SplitButton = forwardRef91(
|
|
|
12746
12523
|
)
|
|
12747
12524
|
}
|
|
12748
12525
|
),
|
|
12749
|
-
/* @__PURE__ */
|
|
12526
|
+
/* @__PURE__ */ jsx284(OverflowMenu, { placement: "bottom-end", children: /* @__PURE__ */ jsx284(OverflowMenuList, { children: secondaryActions.map((item, index) => /* @__PURE__ */ jsx284(OverflowMenuButton, { ...item, children: item.children }, index)) }) })
|
|
12750
12527
|
] })
|
|
12751
12528
|
] });
|
|
12752
12529
|
}
|
|
@@ -12765,19 +12542,19 @@ import {
|
|
|
12765
12542
|
} from "react";
|
|
12766
12543
|
|
|
12767
12544
|
// src/components/Table/collapsible/Table.context.tsx
|
|
12768
|
-
import { createContext as createContext8, useContext as
|
|
12545
|
+
import { createContext as createContext8, useContext as useContext12 } from "react";
|
|
12769
12546
|
var CollapsibleTableContext = createContext8({
|
|
12770
12547
|
headerValues: [],
|
|
12771
12548
|
definingColumnIndex: [0]
|
|
12772
12549
|
});
|
|
12773
|
-
var useCollapsibleTableContext = () =>
|
|
12550
|
+
var useCollapsibleTableContext = () => useContext12(CollapsibleTableContext);
|
|
12774
12551
|
|
|
12775
12552
|
// src/components/Table/normal/Body.tsx
|
|
12776
12553
|
import { forwardRef as forwardRef92 } from "react";
|
|
12777
|
-
import { jsx as
|
|
12554
|
+
import { jsx as jsx285 } from "react/jsx-runtime";
|
|
12778
12555
|
var Body = forwardRef92(
|
|
12779
12556
|
(props, ref) => {
|
|
12780
|
-
return /* @__PURE__ */
|
|
12557
|
+
return /* @__PURE__ */ jsx285("tbody", { ref, ...props });
|
|
12781
12558
|
}
|
|
12782
12559
|
);
|
|
12783
12560
|
Body.displayName = "Table.Body";
|
|
@@ -12791,18 +12568,18 @@ import {
|
|
|
12791
12568
|
import {
|
|
12792
12569
|
createContext as createContext9,
|
|
12793
12570
|
forwardRef as forwardRef93,
|
|
12794
|
-
useContext as
|
|
12571
|
+
useContext as useContext13
|
|
12795
12572
|
} from "react";
|
|
12796
|
-
import { jsx as
|
|
12573
|
+
import { jsx as jsx286 } from "react/jsx-runtime";
|
|
12797
12574
|
var Head = forwardRef93(
|
|
12798
12575
|
({ children, ...rest }, ref) => {
|
|
12799
|
-
return /* @__PURE__ */
|
|
12576
|
+
return /* @__PURE__ */ jsx286("thead", { ref, ...rest, children: /* @__PURE__ */ jsx286(HeadContext.Provider, { value: true, children }) });
|
|
12800
12577
|
}
|
|
12801
12578
|
);
|
|
12802
12579
|
Head.displayName = "Table.Head";
|
|
12803
12580
|
var HeadContext = createContext9(false);
|
|
12804
12581
|
function useIsInTableHead() {
|
|
12805
|
-
const isInTableHead =
|
|
12582
|
+
const isInTableHead = useContext13(HeadContext);
|
|
12806
12583
|
return isInTableHead;
|
|
12807
12584
|
}
|
|
12808
12585
|
|
|
@@ -12832,7 +12609,7 @@ var Table_default = {
|
|
|
12832
12609
|
};
|
|
12833
12610
|
|
|
12834
12611
|
// src/components/Table/normal/Cell.tsx
|
|
12835
|
-
import { jsx as
|
|
12612
|
+
import { jsx as jsx287 } from "react/jsx-runtime";
|
|
12836
12613
|
var Cell = forwardRef94(
|
|
12837
12614
|
({
|
|
12838
12615
|
children,
|
|
@@ -12846,7 +12623,7 @@ var Cell = forwardRef94(
|
|
|
12846
12623
|
const type = _type != null ? _type : isInHead ? "head" : "data";
|
|
12847
12624
|
const { isCollapsibleChild } = collapsibleProps != null ? collapsibleProps : {};
|
|
12848
12625
|
const isComplexLayout = layout === "text and icon";
|
|
12849
|
-
return isCollapsibleChild ? /* @__PURE__ */
|
|
12626
|
+
return isCollapsibleChild ? /* @__PURE__ */ jsx287(DescriptionListDesc, { children }) : type === "head" ? /* @__PURE__ */ jsx287(
|
|
12850
12627
|
"th",
|
|
12851
12628
|
{
|
|
12852
12629
|
ref,
|
|
@@ -12856,15 +12633,15 @@ var Cell = forwardRef94(
|
|
|
12856
12633
|
!isComplexLayout && Table_default[`cell--${layout}`],
|
|
12857
12634
|
Table_default["cell--head"]
|
|
12858
12635
|
),
|
|
12859
|
-
children: isComplexLayout ? /* @__PURE__ */
|
|
12636
|
+
children: isComplexLayout ? /* @__PURE__ */ jsx287("div", { className: Table_default.cell__inner, children }) : children
|
|
12860
12637
|
}
|
|
12861
|
-
) : /* @__PURE__ */
|
|
12638
|
+
) : /* @__PURE__ */ jsx287(
|
|
12862
12639
|
"td",
|
|
12863
12640
|
{
|
|
12864
12641
|
ref,
|
|
12865
12642
|
...rest,
|
|
12866
12643
|
className: cn(className, !isComplexLayout && Table_default[`cell--${layout}`]),
|
|
12867
|
-
children: isComplexLayout ? /* @__PURE__ */
|
|
12644
|
+
children: isComplexLayout ? /* @__PURE__ */ jsx287("div", { className: Table_default.cell__inner, children }) : children
|
|
12868
12645
|
}
|
|
12869
12646
|
);
|
|
12870
12647
|
}
|
|
@@ -12873,22 +12650,22 @@ Cell.displayName = "Table.Cell";
|
|
|
12873
12650
|
|
|
12874
12651
|
// src/components/Table/normal/Foot.tsx
|
|
12875
12652
|
import { forwardRef as forwardRef95 } from "react";
|
|
12876
|
-
import { jsx as
|
|
12653
|
+
import { jsx as jsx288 } from "react/jsx-runtime";
|
|
12877
12654
|
var Foot = forwardRef95(
|
|
12878
12655
|
(props, ref) => {
|
|
12879
|
-
return /* @__PURE__ */
|
|
12656
|
+
return /* @__PURE__ */ jsx288("tfoot", { ref, ...props });
|
|
12880
12657
|
}
|
|
12881
12658
|
);
|
|
12882
12659
|
Foot.displayName = "Table.Foot";
|
|
12883
12660
|
|
|
12884
12661
|
// src/components/Table/normal/Row.tsx
|
|
12885
12662
|
import { forwardRef as forwardRef96 } from "react";
|
|
12886
|
-
import { jsx as
|
|
12663
|
+
import { jsx as jsx289 } from "react/jsx-runtime";
|
|
12887
12664
|
var Row = forwardRef96(
|
|
12888
12665
|
({ type: _type, mode = "normal", hoverable, selected, className, ...rest }, ref) => {
|
|
12889
12666
|
const isInHeader = useIsInTableHead();
|
|
12890
12667
|
const type = _type != null ? _type : isInHeader ? "head" : "body";
|
|
12891
|
-
return /* @__PURE__ */
|
|
12668
|
+
return /* @__PURE__ */ jsx289(
|
|
12892
12669
|
"tr",
|
|
12893
12670
|
{
|
|
12894
12671
|
ref,
|
|
@@ -12912,15 +12689,15 @@ Row.displayName = "Table.Row";
|
|
|
12912
12689
|
|
|
12913
12690
|
// src/components/Table/normal/SortCell.tsx
|
|
12914
12691
|
import { forwardRef as forwardRef97 } from "react";
|
|
12915
|
-
import { jsx as
|
|
12692
|
+
import { jsx as jsx290, jsxs as jsxs74 } from "react/jsx-runtime";
|
|
12916
12693
|
var makeSortIcon = (isSorted, sortOrder) => {
|
|
12917
12694
|
if (!isSorted || !sortOrder) {
|
|
12918
|
-
return /* @__PURE__ */
|
|
12695
|
+
return /* @__PURE__ */ jsx290(Icon, { icon: UnfoldMoreIcon, iconSize: "inherit" });
|
|
12919
12696
|
}
|
|
12920
|
-
return sortOrder === "ascending" ? /* @__PURE__ */
|
|
12697
|
+
return sortOrder === "ascending" ? /* @__PURE__ */ jsx290(Icon, { icon: ChevronDownIcon, iconSize: "inherit" }) : /* @__PURE__ */ jsx290(Icon, { icon: ChevronUpIcon, iconSize: "inherit" });
|
|
12921
12698
|
};
|
|
12922
12699
|
var SortCell = forwardRef97(
|
|
12923
|
-
({ isSorted, sortOrder, onClick, children, ...rest }, ref) => /* @__PURE__ */
|
|
12700
|
+
({ isSorted, sortOrder, onClick, children, ...rest }, ref) => /* @__PURE__ */ jsx290(
|
|
12924
12701
|
Cell,
|
|
12925
12702
|
{
|
|
12926
12703
|
ref,
|
|
@@ -12952,7 +12729,7 @@ SortCell.displayName = "Table.SortCell";
|
|
|
12952
12729
|
|
|
12953
12730
|
// src/components/Table/normal/Table.tsx
|
|
12954
12731
|
import { forwardRef as forwardRef98 } from "react";
|
|
12955
|
-
import { jsx as
|
|
12732
|
+
import { jsx as jsx291 } from "react/jsx-runtime";
|
|
12956
12733
|
function getDensityCn2(value) {
|
|
12957
12734
|
switch (value) {
|
|
12958
12735
|
case "normal":
|
|
@@ -12971,7 +12748,7 @@ var Table = forwardRef98(
|
|
|
12971
12748
|
children,
|
|
12972
12749
|
...rest
|
|
12973
12750
|
}, ref) => {
|
|
12974
|
-
return /* @__PURE__ */
|
|
12751
|
+
return /* @__PURE__ */ jsx291(
|
|
12975
12752
|
"table",
|
|
12976
12753
|
{
|
|
12977
12754
|
ref,
|
|
@@ -12993,7 +12770,7 @@ Table.displayName = "Table";
|
|
|
12993
12770
|
|
|
12994
12771
|
// src/components/Table/normal/TableWrapper.tsx
|
|
12995
12772
|
import { useEffect as useEffect27, useRef as useRef33, useState as useState26 } from "react";
|
|
12996
|
-
import { jsx as
|
|
12773
|
+
import { jsx as jsx292 } from "react/jsx-runtime";
|
|
12997
12774
|
var TableWrapper = ({ className, ...rest }) => {
|
|
12998
12775
|
const [overflowX, setOverflowX] = useState26(false);
|
|
12999
12776
|
const [windowWidth, setWindowWidth] = useState26(window.innerWidth);
|
|
@@ -13015,7 +12792,7 @@ var TableWrapper = ({ className, ...rest }) => {
|
|
|
13015
12792
|
window.addEventListener("resize", handleResize);
|
|
13016
12793
|
return () => window.removeEventListener("resize", handleResize);
|
|
13017
12794
|
});
|
|
13018
|
-
return /* @__PURE__ */
|
|
12795
|
+
return /* @__PURE__ */ jsx292(
|
|
13019
12796
|
"div",
|
|
13020
12797
|
{
|
|
13021
12798
|
ref: wrapperRef,
|
|
@@ -13042,7 +12819,7 @@ Table2.Row = Row;
|
|
|
13042
12819
|
Table2.Foot = Foot;
|
|
13043
12820
|
|
|
13044
12821
|
// src/components/Table/collapsible/CollapsibleRow.tsx
|
|
13045
|
-
import { Fragment as Fragment14, jsx as
|
|
12822
|
+
import { Fragment as Fragment14, jsx as jsx293, jsxs as jsxs75 } from "react/jsx-runtime";
|
|
13046
12823
|
var CollapsibleRow = forwardRef99(
|
|
13047
12824
|
({
|
|
13048
12825
|
type: _type,
|
|
@@ -13085,23 +12862,23 @@ var CollapsibleRow = forwardRef99(
|
|
|
13085
12862
|
const id = derivativeIdGenerator(prefix3, index.toString());
|
|
13086
12863
|
collapsibleIds.push(id);
|
|
13087
12864
|
return /* @__PURE__ */ jsxs75(Fragment13, { children: [
|
|
13088
|
-
/* @__PURE__ */
|
|
12865
|
+
/* @__PURE__ */ jsx293(DescriptionListTerm, { children: collapsedHeaderValues[index].content }),
|
|
13089
12866
|
isValidElement9(child) && cloneElement8(child, {
|
|
13090
12867
|
collapsibleProps: { isCollapsibleChild: true }
|
|
13091
12868
|
})
|
|
13092
12869
|
] }, `DL-${index}`);
|
|
13093
12870
|
}) : null;
|
|
13094
|
-
const collapsedRows = collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */
|
|
12871
|
+
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;
|
|
13095
12872
|
const definingColumnCells = childrenArray.slice().filter((column2, index) => definingColumnIndex.indexOf(index) > -1).sort((a2, b) => {
|
|
13096
12873
|
return definingColumnIndex.indexOf(childrenArray.indexOf(a2)) - definingColumnIndex.indexOf(childrenArray.indexOf(b));
|
|
13097
12874
|
});
|
|
13098
12875
|
const headerRow = () => {
|
|
13099
12876
|
if (type !== "head" || !isCollapsed) return null;
|
|
13100
|
-
return /* @__PURE__ */
|
|
12877
|
+
return /* @__PURE__ */ jsx293(Row, { ref, ...rowProps(), children: /* @__PURE__ */ jsxs75(Fragment14, { children: [
|
|
13101
12878
|
definingColumnCells,
|
|
13102
12879
|
/* @__PURE__ */ jsxs75(Table2.Cell, { type: "head", layout: "center", children: [
|
|
13103
12880
|
"Utvid",
|
|
13104
|
-
/* @__PURE__ */
|
|
12881
|
+
/* @__PURE__ */ jsx293(VisuallyHidden, { as: "span", children: "raden" })
|
|
13105
12882
|
] })
|
|
13106
12883
|
] }) });
|
|
13107
12884
|
};
|
|
@@ -13110,7 +12887,7 @@ var CollapsibleRow = forwardRef99(
|
|
|
13110
12887
|
if (type !== "body" || !isCollapsed) return null;
|
|
13111
12888
|
return /* @__PURE__ */ jsxs75(Row, { ref, ...rowProps(!childrenCollapsed && true), children: [
|
|
13112
12889
|
definingColumnCells,
|
|
13113
|
-
/* @__PURE__ */
|
|
12890
|
+
/* @__PURE__ */ jsx293(Table2.Cell, { children: /* @__PURE__ */ jsx293(
|
|
13114
12891
|
"button",
|
|
13115
12892
|
{
|
|
13116
12893
|
onClick: () => setChildrenCollapsed(!childrenCollapsed),
|
|
@@ -13122,7 +12899,7 @@ var CollapsibleRow = forwardRef99(
|
|
|
13122
12899
|
utilStyles_default["remove-button-styling"],
|
|
13123
12900
|
focusable
|
|
13124
12901
|
),
|
|
13125
|
-
children: /* @__PURE__ */
|
|
12902
|
+
children: /* @__PURE__ */ jsx293(
|
|
13126
12903
|
AnimatedChevronUpDown,
|
|
13127
12904
|
{
|
|
13128
12905
|
isUp: childrenCollapsed ? false : true,
|
|
@@ -13140,14 +12917,14 @@ var CollapsibleRow = forwardRef99(
|
|
|
13140
12917
|
rowWithChevron(),
|
|
13141
12918
|
childrenCollapsed ? null : collapsedRows
|
|
13142
12919
|
] })
|
|
13143
|
-
] }) : /* @__PURE__ */
|
|
12920
|
+
] }) : /* @__PURE__ */ jsx293(Row, { ref, ...rowProps(), children });
|
|
13144
12921
|
}
|
|
13145
12922
|
);
|
|
13146
12923
|
CollapsibleRow.displayName = "CollapsibleTable.Row";
|
|
13147
12924
|
|
|
13148
12925
|
// src/components/Table/collapsible/CollapsibleTable.tsx
|
|
13149
12926
|
import { forwardRef as forwardRef100 } from "react";
|
|
13150
|
-
import { jsx as
|
|
12927
|
+
import { jsx as jsx294 } from "react/jsx-runtime";
|
|
13151
12928
|
var CollapsibleTable = forwardRef100((props, ref) => {
|
|
13152
12929
|
const {
|
|
13153
12930
|
isCollapsed,
|
|
@@ -13155,7 +12932,7 @@ var CollapsibleTable = forwardRef100((props, ref) => {
|
|
|
13155
12932
|
definingColumnIndex = [0],
|
|
13156
12933
|
...rest
|
|
13157
12934
|
} = props;
|
|
13158
|
-
return /* @__PURE__ */
|
|
12935
|
+
return /* @__PURE__ */ jsx294(
|
|
13159
12936
|
CollapsibleTableContext.Provider,
|
|
13160
12937
|
{
|
|
13161
12938
|
value: {
|
|
@@ -13163,7 +12940,7 @@ var CollapsibleTable = forwardRef100((props, ref) => {
|
|
|
13163
12940
|
headerValues,
|
|
13164
12941
|
definingColumnIndex
|
|
13165
12942
|
},
|
|
13166
|
-
children: /* @__PURE__ */
|
|
12943
|
+
children: /* @__PURE__ */ jsx294(Table2, { ref, ...rest })
|
|
13167
12944
|
}
|
|
13168
12945
|
);
|
|
13169
12946
|
});
|
|
@@ -13183,7 +12960,7 @@ import {
|
|
|
13183
12960
|
} from "react";
|
|
13184
12961
|
|
|
13185
12962
|
// src/components/Tabs/Tabs.context.tsx
|
|
13186
|
-
import { createContext as createContext10, useContext as
|
|
12963
|
+
import { createContext as createContext10, useContext as useContext14 } from "react";
|
|
13187
12964
|
var TabsContext = createContext10({
|
|
13188
12965
|
activeTab: 0,
|
|
13189
12966
|
tabsId: "",
|
|
@@ -13194,7 +12971,7 @@ var TabsContext = createContext10({
|
|
|
13194
12971
|
setHasTabFocus: () => null,
|
|
13195
12972
|
tabContentDirection: "row"
|
|
13196
12973
|
});
|
|
13197
|
-
var useTabsContext = () =>
|
|
12974
|
+
var useTabsContext = () => useContext14(TabsContext);
|
|
13198
12975
|
|
|
13199
12976
|
// src/components/Tabs/Tabs.module.css
|
|
13200
12977
|
var Tabs_default = {
|
|
@@ -13210,7 +12987,7 @@ var Tabs_default = {
|
|
|
13210
12987
|
};
|
|
13211
12988
|
|
|
13212
12989
|
// src/components/Tabs/Tabs.tsx
|
|
13213
|
-
import { jsx as
|
|
12990
|
+
import { jsx as jsx295 } from "react/jsx-runtime";
|
|
13214
12991
|
var Tabs = forwardRef101((props, ref) => {
|
|
13215
12992
|
const {
|
|
13216
12993
|
id,
|
|
@@ -13242,7 +13019,7 @@ var Tabs = forwardRef101((props, ref) => {
|
|
|
13242
13019
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13243
13020
|
["--dds-tabs-width"]: width
|
|
13244
13021
|
};
|
|
13245
|
-
return /* @__PURE__ */
|
|
13022
|
+
return /* @__PURE__ */ jsx295(
|
|
13246
13023
|
TabsContext.Provider,
|
|
13247
13024
|
{
|
|
13248
13025
|
value: {
|
|
@@ -13255,7 +13032,7 @@ var Tabs = forwardRef101((props, ref) => {
|
|
|
13255
13032
|
setHasTabFocus,
|
|
13256
13033
|
tabContentDirection
|
|
13257
13034
|
},
|
|
13258
|
-
children: /* @__PURE__ */
|
|
13035
|
+
children: /* @__PURE__ */ jsx295(
|
|
13259
13036
|
"div",
|
|
13260
13037
|
{
|
|
13261
13038
|
ref,
|
|
@@ -13285,16 +13062,16 @@ import {
|
|
|
13285
13062
|
// src/components/Tabs/TabWidthContext.tsx
|
|
13286
13063
|
import {
|
|
13287
13064
|
createContext as createContext11,
|
|
13288
|
-
useContext as
|
|
13065
|
+
useContext as useContext15,
|
|
13289
13066
|
useLayoutEffect as useLayoutEffect3
|
|
13290
13067
|
} from "react";
|
|
13291
|
-
import { jsx as
|
|
13068
|
+
import { jsx as jsx296 } from "react/jsx-runtime";
|
|
13292
13069
|
var TabContext = createContext11(null);
|
|
13293
13070
|
function TabWidthContextProvider({
|
|
13294
13071
|
children,
|
|
13295
13072
|
onChangeWidths
|
|
13296
13073
|
}) {
|
|
13297
|
-
return /* @__PURE__ */
|
|
13074
|
+
return /* @__PURE__ */ jsx296(
|
|
13298
13075
|
TabContext.Provider,
|
|
13299
13076
|
{
|
|
13300
13077
|
value: {
|
|
@@ -13318,7 +13095,7 @@ function TabWidthContextProvider({
|
|
|
13318
13095
|
);
|
|
13319
13096
|
}
|
|
13320
13097
|
function useSetTabWidth(index, width) {
|
|
13321
|
-
const context =
|
|
13098
|
+
const context = useContext15(TabContext);
|
|
13322
13099
|
useLayoutEffect3(() => {
|
|
13323
13100
|
context == null ? void 0 : context.updateWidth(index, width);
|
|
13324
13101
|
return () => context == null ? void 0 : context.removeTab(index);
|
|
@@ -13326,7 +13103,7 @@ function useSetTabWidth(index, width) {
|
|
|
13326
13103
|
}
|
|
13327
13104
|
|
|
13328
13105
|
// src/components/Tabs/Tab.tsx
|
|
13329
|
-
import { jsx as
|
|
13106
|
+
import { jsx as jsx297, jsxs as jsxs76 } from "react/jsx-runtime";
|
|
13330
13107
|
var Tab = forwardRef102((props, ref) => {
|
|
13331
13108
|
const {
|
|
13332
13109
|
active = false,
|
|
@@ -13389,8 +13166,8 @@ var Tab = forwardRef102((props, ref) => {
|
|
|
13389
13166
|
onKeyDown: handleOnKeyDown,
|
|
13390
13167
|
tabIndex: focus ? 0 : -1,
|
|
13391
13168
|
children: [
|
|
13392
|
-
icon && /* @__PURE__ */
|
|
13393
|
-
/* @__PURE__ */
|
|
13169
|
+
icon && /* @__PURE__ */ jsx297(Icon, { icon, iconSize: "inherit" }),
|
|
13170
|
+
/* @__PURE__ */ jsx297("span", { children })
|
|
13394
13171
|
]
|
|
13395
13172
|
}
|
|
13396
13173
|
);
|
|
@@ -13405,7 +13182,7 @@ import {
|
|
|
13405
13182
|
isValidElement as isValidElement10,
|
|
13406
13183
|
useState as useState29
|
|
13407
13184
|
} from "react";
|
|
13408
|
-
import { jsx as
|
|
13185
|
+
import { jsx as jsx298 } from "react/jsx-runtime";
|
|
13409
13186
|
var TabList = forwardRef103(
|
|
13410
13187
|
({ children, id, style, onFocus, ...rest }, ref) => {
|
|
13411
13188
|
const {
|
|
@@ -13449,7 +13226,7 @@ var TabList = forwardRef103(
|
|
|
13449
13226
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13450
13227
|
["--dds-tab-widths"]: widths.join(" ")
|
|
13451
13228
|
};
|
|
13452
|
-
return /* @__PURE__ */
|
|
13229
|
+
return /* @__PURE__ */ jsx298(TabWidthContextProvider, { onChangeWidths: setWidths, children: /* @__PURE__ */ jsx298(
|
|
13453
13230
|
"div",
|
|
13454
13231
|
{
|
|
13455
13232
|
...rest,
|
|
@@ -13476,10 +13253,10 @@ TabList.displayName = "TabList";
|
|
|
13476
13253
|
|
|
13477
13254
|
// src/components/Tabs/TabPanel.tsx
|
|
13478
13255
|
import { forwardRef as forwardRef104 } from "react";
|
|
13479
|
-
import { jsx as
|
|
13256
|
+
import { jsx as jsx299 } from "react/jsx-runtime";
|
|
13480
13257
|
var TabPanel = forwardRef104(
|
|
13481
13258
|
({ active = false, children, id, className, htmlProps, ...rest }, ref) => {
|
|
13482
|
-
return /* @__PURE__ */
|
|
13259
|
+
return /* @__PURE__ */ jsx299(
|
|
13483
13260
|
"div",
|
|
13484
13261
|
{
|
|
13485
13262
|
...getBaseHTMLProps(
|
|
@@ -13506,7 +13283,7 @@ import {
|
|
|
13506
13283
|
forwardRef as forwardRef105,
|
|
13507
13284
|
isValidElement as isValidElement11
|
|
13508
13285
|
} from "react";
|
|
13509
|
-
import { jsx as
|
|
13286
|
+
import { jsx as jsx300 } from "react/jsx-runtime";
|
|
13510
13287
|
var TabPanels = forwardRef105(
|
|
13511
13288
|
({ children, ...rest }, ref) => {
|
|
13512
13289
|
const { activeTab, tabsId, tabPanelsRef } = useTabsContext();
|
|
@@ -13520,7 +13297,7 @@ var TabPanels = forwardRef105(
|
|
|
13520
13297
|
"aria-expanded": active
|
|
13521
13298
|
});
|
|
13522
13299
|
});
|
|
13523
|
-
return /* @__PURE__ */
|
|
13300
|
+
return /* @__PURE__ */ jsx300("div", { ref: combinedRef, ...rest, children: panelChildren });
|
|
13524
13301
|
}
|
|
13525
13302
|
);
|
|
13526
13303
|
TabPanels.displayName = "TabPanels";
|
|
@@ -13545,7 +13322,7 @@ var Tag_default = {
|
|
|
13545
13322
|
};
|
|
13546
13323
|
|
|
13547
13324
|
// src/components/Tag/Tag.tsx
|
|
13548
|
-
import { jsx as
|
|
13325
|
+
import { jsx as jsx301, jsxs as jsxs77 } from "react/jsx-runtime";
|
|
13549
13326
|
var icons3 = {
|
|
13550
13327
|
info: InfoIcon,
|
|
13551
13328
|
danger: ErrorIcon,
|
|
@@ -13583,8 +13360,8 @@ var Tag = forwardRef106((props, ref) => {
|
|
|
13583
13360
|
),
|
|
13584
13361
|
ref,
|
|
13585
13362
|
children: [
|
|
13586
|
-
withIcon && icon && /* @__PURE__ */
|
|
13587
|
-
/* @__PURE__ */
|
|
13363
|
+
withIcon && icon && /* @__PURE__ */ jsx301(Icon, { icon, iconSize: "small" }),
|
|
13364
|
+
/* @__PURE__ */ jsx301(TextOverflowEllipsisInner, { children: children != null ? children : text })
|
|
13588
13365
|
]
|
|
13589
13366
|
}
|
|
13590
13367
|
);
|
|
@@ -13606,7 +13383,6 @@ var TextInput_default = {
|
|
|
13606
13383
|
container: "TextInput_container",
|
|
13607
13384
|
"container--readonly": "TextInput_container--readonly",
|
|
13608
13385
|
"container--disabled": "TextInput_container--disabled",
|
|
13609
|
-
"container--tiny": "TextInput_container--tiny",
|
|
13610
13386
|
"affix-container": "TextInput_affix-container",
|
|
13611
13387
|
"input-width": "TextInput_input-width",
|
|
13612
13388
|
input: "TextInput_input",
|
|
@@ -13626,7 +13402,7 @@ var TextInput_default = {
|
|
|
13626
13402
|
};
|
|
13627
13403
|
|
|
13628
13404
|
// src/components/TextInput/TextInput.tsx
|
|
13629
|
-
import { jsx as
|
|
13405
|
+
import { jsx as jsx302, jsxs as jsxs78 } from "react/jsx-runtime";
|
|
13630
13406
|
var TextInput = forwardRef107(
|
|
13631
13407
|
({
|
|
13632
13408
|
label,
|
|
@@ -13722,7 +13498,7 @@ var TextInput = forwardRef107(
|
|
|
13722
13498
|
className: cn(TextInput_default["input-width"], Input_default["input-group"]),
|
|
13723
13499
|
style: styleVariables,
|
|
13724
13500
|
children: [
|
|
13725
|
-
/* @__PURE__ */
|
|
13501
|
+
/* @__PURE__ */ jsx302(
|
|
13726
13502
|
Icon,
|
|
13727
13503
|
{
|
|
13728
13504
|
icon,
|
|
@@ -13733,7 +13509,7 @@ var TextInput = forwardRef107(
|
|
|
13733
13509
|
)
|
|
13734
13510
|
}
|
|
13735
13511
|
),
|
|
13736
|
-
/* @__PURE__ */
|
|
13512
|
+
/* @__PURE__ */ jsx302(
|
|
13737
13513
|
StatefulInput,
|
|
13738
13514
|
{
|
|
13739
13515
|
ref,
|
|
@@ -13758,7 +13534,7 @@ var TextInput = forwardRef107(
|
|
|
13758
13534
|
className: cn(TextInput_default["affix-container"], TextInput_default["input-width"]),
|
|
13759
13535
|
style: styleVariables,
|
|
13760
13536
|
children: [
|
|
13761
|
-
prefix3 && /* @__PURE__ */
|
|
13537
|
+
prefix3 && /* @__PURE__ */ jsx302(
|
|
13762
13538
|
"span",
|
|
13763
13539
|
{
|
|
13764
13540
|
ref: prefixRef,
|
|
@@ -13771,7 +13547,7 @@ var TextInput = forwardRef107(
|
|
|
13771
13547
|
children: prefix3
|
|
13772
13548
|
}
|
|
13773
13549
|
),
|
|
13774
|
-
/* @__PURE__ */
|
|
13550
|
+
/* @__PURE__ */ jsx302(
|
|
13775
13551
|
StatefulInput,
|
|
13776
13552
|
{
|
|
13777
13553
|
ref,
|
|
@@ -13786,7 +13562,7 @@ var TextInput = forwardRef107(
|
|
|
13786
13562
|
className: TextInput_default["input--extended"]
|
|
13787
13563
|
}
|
|
13788
13564
|
),
|
|
13789
|
-
suffix && /* @__PURE__ */
|
|
13565
|
+
suffix && /* @__PURE__ */ jsx302(
|
|
13790
13566
|
"span",
|
|
13791
13567
|
{
|
|
13792
13568
|
ref: suffixRef,
|
|
@@ -13815,7 +13591,7 @@ var TextInput = forwardRef107(
|
|
|
13815
13591
|
),
|
|
13816
13592
|
style,
|
|
13817
13593
|
children: [
|
|
13818
|
-
hasLabel && /* @__PURE__ */
|
|
13594
|
+
hasLabel && /* @__PURE__ */ jsx302(
|
|
13819
13595
|
Label,
|
|
13820
13596
|
{
|
|
13821
13597
|
htmlFor: uniqueId,
|
|
@@ -13825,7 +13601,7 @@ var TextInput = forwardRef107(
|
|
|
13825
13601
|
children: label
|
|
13826
13602
|
}
|
|
13827
13603
|
),
|
|
13828
|
-
extendedInput ? extendedInput : /* @__PURE__ */
|
|
13604
|
+
extendedInput ? extendedInput : /* @__PURE__ */ jsx302(
|
|
13829
13605
|
StatefulInput,
|
|
13830
13606
|
{
|
|
13831
13607
|
ref,
|
|
@@ -13857,11 +13633,11 @@ TextInput.displayName = "TextInput";
|
|
|
13857
13633
|
import { useId as useId27, useState as useState31 } from "react";
|
|
13858
13634
|
|
|
13859
13635
|
// src/components/ToggleBar/ToggleBar.context.tsx
|
|
13860
|
-
import { createContext as createContext12, useContext as
|
|
13636
|
+
import { createContext as createContext12, useContext as useContext16 } from "react";
|
|
13861
13637
|
var ToggleBarContext = createContext12({
|
|
13862
13638
|
size: "medium"
|
|
13863
13639
|
});
|
|
13864
|
-
var useToggleBarContext = () =>
|
|
13640
|
+
var useToggleBarContext = () => useContext16(ToggleBarContext);
|
|
13865
13641
|
|
|
13866
13642
|
// src/components/ToggleBar/ToggleBar.module.css
|
|
13867
13643
|
var ToggleBar_default = {
|
|
@@ -13880,7 +13656,7 @@ var ToggleBar_default = {
|
|
|
13880
13656
|
};
|
|
13881
13657
|
|
|
13882
13658
|
// src/components/ToggleBar/ToggleBar.tsx
|
|
13883
|
-
import { jsx as
|
|
13659
|
+
import { jsx as jsx303, jsxs as jsxs79 } from "react/jsx-runtime";
|
|
13884
13660
|
var ToggleBar = (props) => {
|
|
13885
13661
|
const {
|
|
13886
13662
|
children,
|
|
@@ -13903,7 +13679,7 @@ var ToggleBar = (props) => {
|
|
|
13903
13679
|
(e) => onChange && onChange(e, e.target.value)
|
|
13904
13680
|
);
|
|
13905
13681
|
const labelId = label && `${uniqueId}-label`;
|
|
13906
|
-
return /* @__PURE__ */
|
|
13682
|
+
return /* @__PURE__ */ jsx303(
|
|
13907
13683
|
ToggleBarContext.Provider,
|
|
13908
13684
|
{
|
|
13909
13685
|
value: {
|
|
@@ -13925,8 +13701,8 @@ var ToggleBar = (props) => {
|
|
|
13925
13701
|
role: "radiogroup",
|
|
13926
13702
|
"aria-labelledby": labelId != null ? labelId : htmlProps == null ? void 0 : htmlProps["aria-labelledby"],
|
|
13927
13703
|
children: [
|
|
13928
|
-
label && /* @__PURE__ */
|
|
13929
|
-
/* @__PURE__ */
|
|
13704
|
+
label && /* @__PURE__ */ jsx303(Label, { id: labelId, children: label }),
|
|
13705
|
+
/* @__PURE__ */ jsx303("div", { className: ToggleBar_default.bar, children })
|
|
13930
13706
|
]
|
|
13931
13707
|
}
|
|
13932
13708
|
)
|
|
@@ -13940,7 +13716,7 @@ import {
|
|
|
13940
13716
|
forwardRef as forwardRef108,
|
|
13941
13717
|
useId as useId28
|
|
13942
13718
|
} from "react";
|
|
13943
|
-
import { jsx as
|
|
13719
|
+
import { jsx as jsx304, jsxs as jsxs80 } from "react/jsx-runtime";
|
|
13944
13720
|
var typographyTypes4 = {
|
|
13945
13721
|
large: "bodySans04",
|
|
13946
13722
|
medium: "bodySans02",
|
|
@@ -13982,7 +13758,7 @@ var ToggleRadio = forwardRef108(
|
|
|
13982
13758
|
};
|
|
13983
13759
|
const contentTypeCn = label ? "with-text" : "just-icon";
|
|
13984
13760
|
return /* @__PURE__ */ jsxs80("label", { htmlFor: uniqueId, className: ToggleBar_default.label, children: [
|
|
13985
|
-
/* @__PURE__ */
|
|
13761
|
+
/* @__PURE__ */ jsx304(
|
|
13986
13762
|
"input",
|
|
13987
13763
|
{
|
|
13988
13764
|
...getBaseHTMLProps(
|
|
@@ -14016,8 +13792,8 @@ var ToggleRadio = forwardRef108(
|
|
|
14016
13792
|
focus_default["focus-styled-sibling"]
|
|
14017
13793
|
),
|
|
14018
13794
|
children: [
|
|
14019
|
-
icon && /* @__PURE__ */
|
|
14020
|
-
label && /* @__PURE__ */
|
|
13795
|
+
icon && /* @__PURE__ */ jsx304(Icon, { icon, iconSize: "inherit" }),
|
|
13796
|
+
label && /* @__PURE__ */ jsx304("span", { children: label })
|
|
14021
13797
|
]
|
|
14022
13798
|
}
|
|
14023
13799
|
)
|
|
@@ -14041,14 +13817,14 @@ var ToggleButton_default = {
|
|
|
14041
13817
|
};
|
|
14042
13818
|
|
|
14043
13819
|
// src/components/ToggleButton/ToggleButton.tsx
|
|
14044
|
-
import { jsx as
|
|
13820
|
+
import { jsx as jsx305, jsxs as jsxs81 } from "react/jsx-runtime";
|
|
14045
13821
|
var ToggleButton = forwardRef109(
|
|
14046
13822
|
({ id, label, icon, className, htmlProps, ...rest }, ref) => {
|
|
14047
13823
|
const generatedId = useId29();
|
|
14048
13824
|
const uniqueId = id != null ? id : `${generatedId}-toggleButton`;
|
|
14049
13825
|
const hasIcon = !!icon;
|
|
14050
13826
|
return /* @__PURE__ */ jsxs81("label", { htmlFor: uniqueId, className: ToggleButton_default.container, children: [
|
|
14051
|
-
/* @__PURE__ */
|
|
13827
|
+
/* @__PURE__ */ jsx305(
|
|
14052
13828
|
"input",
|
|
14053
13829
|
{
|
|
14054
13830
|
...getBaseHTMLProps(
|
|
@@ -14075,7 +13851,7 @@ var ToggleButton = forwardRef109(
|
|
|
14075
13851
|
focus_default["focus-styled-sibling"]
|
|
14076
13852
|
),
|
|
14077
13853
|
children: [
|
|
14078
|
-
hasIcon && /* @__PURE__ */
|
|
13854
|
+
hasIcon && /* @__PURE__ */ jsx305(Icon, { icon, iconSize: "inherit" }),
|
|
14079
13855
|
" ",
|
|
14080
13856
|
label
|
|
14081
13857
|
]
|
|
@@ -14088,7 +13864,7 @@ ToggleButton.displayName = "ToggleButton";
|
|
|
14088
13864
|
|
|
14089
13865
|
// src/components/ToggleButton/ToggleButtonGroup.tsx
|
|
14090
13866
|
import { useId as useId30 } from "react";
|
|
14091
|
-
import { jsx as
|
|
13867
|
+
import { jsx as jsx306, jsxs as jsxs82 } from "react/jsx-runtime";
|
|
14092
13868
|
var ToggleButtonGroup = (props) => {
|
|
14093
13869
|
const {
|
|
14094
13870
|
children,
|
|
@@ -14114,7 +13890,7 @@ var ToggleButtonGroup = (props) => {
|
|
|
14114
13890
|
role: "group",
|
|
14115
13891
|
"aria-labelledby": label ? uniqueLabelId : void 0,
|
|
14116
13892
|
children: [
|
|
14117
|
-
!!label && /* @__PURE__ */
|
|
13893
|
+
!!label && /* @__PURE__ */ jsx306(
|
|
14118
13894
|
Typography,
|
|
14119
13895
|
{
|
|
14120
13896
|
as: "span",
|
|
@@ -14123,7 +13899,7 @@ var ToggleButtonGroup = (props) => {
|
|
|
14123
13899
|
children: label
|
|
14124
13900
|
}
|
|
14125
13901
|
),
|
|
14126
|
-
/* @__PURE__ */
|
|
13902
|
+
/* @__PURE__ */ jsx306("div", { className: cn(ToggleButton_default.group, ToggleButton_default[`group--${direction}`]), children })
|
|
14127
13903
|
]
|
|
14128
13904
|
}
|
|
14129
13905
|
);
|