@norges-domstoler/dds-components 22.11.0 → 23.0.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 +33 -2
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +66 -16
- package/dist/index.d.ts +66 -16
- package/dist/index.js +486 -285
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +612 -412
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -13,9 +13,7 @@ var typographyStyles_default = {
|
|
|
13
13
|
"a--nested__parent": "typographyStyles_a--nested__parent",
|
|
14
14
|
"a--nested__child": "typographyStyles_a--nested__child",
|
|
15
15
|
"a--margins": "typographyStyles_a--margins",
|
|
16
|
-
"a--
|
|
17
|
-
svg: "typographyStyles_svg",
|
|
18
|
-
a__icon: "typographyStyles_a__icon",
|
|
16
|
+
"a--with-icon": "typographyStyles_a--with-icon",
|
|
19
17
|
"a--visited": "typographyStyles_a--visited",
|
|
20
18
|
"body-short-xsmall": "typographyStyles_body-short-xsmall",
|
|
21
19
|
"body-short-xsmall--margins": "typographyStyles_body-short-xsmall--margins",
|
|
@@ -348,6 +346,21 @@ var TEXT_COLORS = [
|
|
|
348
346
|
"icon-subtle",
|
|
349
347
|
"icon-medium"
|
|
350
348
|
];
|
|
349
|
+
var ICON_COLORS = [
|
|
350
|
+
...TEXT_COLORS,
|
|
351
|
+
"brand-primary-default",
|
|
352
|
+
"brand-primary-strong",
|
|
353
|
+
"brand-primary-medium",
|
|
354
|
+
"brand-primary-subtle",
|
|
355
|
+
"brand-secondary-default",
|
|
356
|
+
"brand-secondary-strong",
|
|
357
|
+
"brand-secondary-medium",
|
|
358
|
+
"brand-secondary-subtle",
|
|
359
|
+
"brand-tertiary-default",
|
|
360
|
+
"brand-tertiary-strong",
|
|
361
|
+
"brand-tertiary-medium",
|
|
362
|
+
"brand-tertiary-subtle"
|
|
363
|
+
];
|
|
351
364
|
var TEXT_COLOR_VALUES = TEXT_COLORS.reduce(
|
|
352
365
|
(acc, key) => {
|
|
353
366
|
acc[key] = `var(--dds-color-${key})`;
|
|
@@ -355,6 +368,13 @@ var TEXT_COLOR_VALUES = TEXT_COLORS.reduce(
|
|
|
355
368
|
},
|
|
356
369
|
{}
|
|
357
370
|
);
|
|
371
|
+
var ICON_COLOR_VALUES = ICON_COLORS.reduce(
|
|
372
|
+
(acc, key) => {
|
|
373
|
+
acc[key] = `var(--dds-color-${key})`;
|
|
374
|
+
return acc;
|
|
375
|
+
},
|
|
376
|
+
{}
|
|
377
|
+
);
|
|
358
378
|
var isTextColor = (value) => {
|
|
359
379
|
return typeof value === "string" && TEXT_COLORS.includes(value);
|
|
360
380
|
};
|
|
@@ -362,6 +382,13 @@ var getTextColor = (color) => {
|
|
|
362
382
|
if (isTextColor(color)) return TEXT_COLOR_VALUES[color];
|
|
363
383
|
return color;
|
|
364
384
|
};
|
|
385
|
+
var isIconColor = (value) => {
|
|
386
|
+
return typeof value === "string" && ICON_COLORS.includes(value);
|
|
387
|
+
};
|
|
388
|
+
var getIconColor = (color) => {
|
|
389
|
+
if (isIconColor(color)) return ICON_COLOR_VALUES[color];
|
|
390
|
+
return color;
|
|
391
|
+
};
|
|
365
392
|
|
|
366
393
|
// src/utils/combineHandlers.tsx
|
|
367
394
|
var combineHandlers = (handler1, handler2) => {
|
|
@@ -552,7 +579,7 @@ import { useEffect as useEffect5 } from "react";
|
|
|
552
579
|
function useOnClickOutside(element, handler) {
|
|
553
580
|
useEffect5(() => {
|
|
554
581
|
const listener = (event) => {
|
|
555
|
-
const elements = Array.isArray(element) ? element :
|
|
582
|
+
const elements = Array.isArray(element) ? element.map((ref) => ref == null ? void 0 : ref.current).filter((el) => Boolean(el)) : (element == null ? void 0 : element.current) ? [element.current] : [];
|
|
556
583
|
const hasClickedInside = elements.some(
|
|
557
584
|
(el) => el == null ? void 0 : el.contains(event.target)
|
|
558
585
|
);
|
|
@@ -1052,6 +1079,7 @@ var layout_default = {
|
|
|
1052
1079
|
"dds-a-i": "layout_dds-a-i",
|
|
1053
1080
|
"dds-a-c": "layout_dds-a-c",
|
|
1054
1081
|
"dds-j-i": "layout_dds-j-i",
|
|
1082
|
+
"dds-pl-i": "layout_dds-pl-i",
|
|
1055
1083
|
"dds-j-c": "layout_dds-j-c",
|
|
1056
1084
|
"dds-wrap": "layout_dds-wrap",
|
|
1057
1085
|
"dds-basis": "layout_dds-basis",
|
|
@@ -1220,6 +1248,7 @@ var Box = ({
|
|
|
1220
1248
|
alignItems,
|
|
1221
1249
|
alignContent,
|
|
1222
1250
|
justifyItems,
|
|
1251
|
+
placeItems,
|
|
1223
1252
|
justifyContent,
|
|
1224
1253
|
flexWrap,
|
|
1225
1254
|
flexBasis,
|
|
@@ -1258,6 +1287,7 @@ var Box = ({
|
|
|
1258
1287
|
...getResponsiveCSSProperties(alignItems, "r", "a-i"),
|
|
1259
1288
|
...getResponsiveCSSProperties(alignContent, "r", "a-c"),
|
|
1260
1289
|
...getResponsiveCSSProperties(justifyItems, "r", "j-i"),
|
|
1290
|
+
...getResponsiveCSSProperties(placeItems, "r", "pl-i"),
|
|
1261
1291
|
...getResponsiveCSSProperties(justifyContent, "r", "j-c"),
|
|
1262
1292
|
...getResponsiveCSSProperties(flexWrap, "r", "wrap"),
|
|
1263
1293
|
...getResponsiveCSSProperties(flexBasis, "r", "basis"),
|
|
@@ -1301,6 +1331,7 @@ var Box = ({
|
|
|
1301
1331
|
alignItems && layout_default["dds-a-i"],
|
|
1302
1332
|
justifyContent && layout_default["dds-j-c"],
|
|
1303
1333
|
justifyItems && layout_default["dds-j-i"],
|
|
1334
|
+
placeItems && layout_default["dds-pl-i"],
|
|
1304
1335
|
flexWrap && layout_default["dds-wrap"],
|
|
1305
1336
|
flexBasis && layout_default["dds-basis"],
|
|
1306
1337
|
flexFlow && layout_default["dds-flow"],
|
|
@@ -1619,7 +1650,42 @@ var commonTexts = createTexts({
|
|
|
1619
1650
|
nn: "Innlastning p\xE5g\xE5r",
|
|
1620
1651
|
en: "Loading",
|
|
1621
1652
|
se: "Vie\u017E\u017Eamin"
|
|
1622
|
-
}
|
|
1653
|
+
},
|
|
1654
|
+
nextPage: {
|
|
1655
|
+
nb: "Neste side",
|
|
1656
|
+
no: "Neste side",
|
|
1657
|
+
nn: "Neste side",
|
|
1658
|
+
en: "Next page",
|
|
1659
|
+
se: "Boahte siidu"
|
|
1660
|
+
},
|
|
1661
|
+
previousPage: {
|
|
1662
|
+
nb: "Forrige side",
|
|
1663
|
+
no: "Forrige side",
|
|
1664
|
+
nn: "F\xF8rre side",
|
|
1665
|
+
en: "Previous page",
|
|
1666
|
+
se: "Ovddit siidu"
|
|
1667
|
+
},
|
|
1668
|
+
page: (page) => ({
|
|
1669
|
+
nb: `Side ${page}`,
|
|
1670
|
+
no: `Side ${page}`,
|
|
1671
|
+
nn: `Side ${page}`,
|
|
1672
|
+
en: `Page ${page}`,
|
|
1673
|
+
se: `Siidu ${page}`
|
|
1674
|
+
}),
|
|
1675
|
+
currentPage: (page) => ({
|
|
1676
|
+
nb: `N\xE5v\xE6rende side (${page})`,
|
|
1677
|
+
no: `N\xE5v\xE6rende side (${page})`,
|
|
1678
|
+
nn: `Noverande side (${page})`,
|
|
1679
|
+
en: `Current page (${page})`,
|
|
1680
|
+
se: `D\xE1la siidu (${page})`
|
|
1681
|
+
}),
|
|
1682
|
+
pageOf: (current, max) => ({
|
|
1683
|
+
nb: `Side ${current} av ${max}`,
|
|
1684
|
+
no: `Side ${current} av ${max}`,
|
|
1685
|
+
nn: `Side ${current} ${max}`,
|
|
1686
|
+
en: `Page ${current} of ${max}`,
|
|
1687
|
+
se: `Siidu ${current} ${max}`
|
|
1688
|
+
})
|
|
1623
1689
|
});
|
|
1624
1690
|
|
|
1625
1691
|
// src/components/Spinner/Spinner.tsx
|
|
@@ -2078,7 +2144,7 @@ function SvgWrapper({
|
|
|
2078
2144
|
"svg",
|
|
2079
2145
|
{
|
|
2080
2146
|
...props,
|
|
2081
|
-
fill:
|
|
2147
|
+
fill: getIconColor(fill),
|
|
2082
2148
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2083
2149
|
viewBox: `0 0 ${size} ${size}`,
|
|
2084
2150
|
className: cn(className, Icon_default.svg),
|
|
@@ -3823,7 +3889,7 @@ var getColorCn = (color) => {
|
|
|
3823
3889
|
};
|
|
3824
3890
|
|
|
3825
3891
|
// src/components/Typography/Typography/Typography.tsx
|
|
3826
|
-
import { jsx as jsx197
|
|
3892
|
+
import { jsx as jsx197 } from "react/jsx-runtime";
|
|
3827
3893
|
var isAnchorProps = (props) => props.typographyType === "a";
|
|
3828
3894
|
var Typography = (props) => {
|
|
3829
3895
|
const {
|
|
@@ -3844,15 +3910,10 @@ var Typography = (props) => {
|
|
|
3844
3910
|
const as = propAs ? propAs : getElementType(typographyType);
|
|
3845
3911
|
const typographyCn = getTypographyCn(typographyType);
|
|
3846
3912
|
let relProp;
|
|
3847
|
-
let targetProp;
|
|
3848
|
-
let externalLinkProp;
|
|
3849
3913
|
if (isAnchorProps(props)) {
|
|
3850
|
-
const { externalLink, target } = props;
|
|
3851
3914
|
relProp = as === "a" ? "noopener noreferer" : void 0;
|
|
3852
|
-
targetProp = as !== "a" ? void 0 : externalLink ? "_blank" : target;
|
|
3853
|
-
externalLinkProp = as === "a" && externalLink ? externalLink : void 0;
|
|
3854
3915
|
}
|
|
3855
|
-
return /* @__PURE__ */
|
|
3916
|
+
return /* @__PURE__ */ jsx197(
|
|
3856
3917
|
Box,
|
|
3857
3918
|
{
|
|
3858
3919
|
...getBaseHTMLProps(
|
|
@@ -3861,7 +3922,6 @@ var Typography = (props) => {
|
|
|
3861
3922
|
className,
|
|
3862
3923
|
getColorCn(color),
|
|
3863
3924
|
Typography_default.container,
|
|
3864
|
-
externalLinkProp && typographyStyles_default["a--external"],
|
|
3865
3925
|
typographyStyles_default[typographyCn],
|
|
3866
3926
|
withMargins && typographyStyles_default[`${typographyCn}--margins`],
|
|
3867
3927
|
isLegend(as) && typographyStyles_default.legend,
|
|
@@ -3881,11 +3941,7 @@ var Typography = (props) => {
|
|
|
3881
3941
|
),
|
|
3882
3942
|
as,
|
|
3883
3943
|
rel: relProp,
|
|
3884
|
-
|
|
3885
|
-
children: [
|
|
3886
|
-
children,
|
|
3887
|
-
externalLinkProp && /* @__PURE__ */ jsx197(Icon, { icon: OpenExternalIcon, iconSize: "inherit" })
|
|
3888
|
-
]
|
|
3944
|
+
children
|
|
3889
3945
|
}
|
|
3890
3946
|
);
|
|
3891
3947
|
};
|
|
@@ -3977,7 +4033,7 @@ var Label_default = {
|
|
|
3977
4033
|
};
|
|
3978
4034
|
|
|
3979
4035
|
// src/components/Typography/Label/Label.tsx
|
|
3980
|
-
import { Fragment, jsx as jsx200, jsxs as
|
|
4036
|
+
import { Fragment, jsx as jsx200, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
3981
4037
|
var Label = ({
|
|
3982
4038
|
showRequiredStyling,
|
|
3983
4039
|
readOnly,
|
|
@@ -3989,7 +4045,7 @@ var Label = ({
|
|
|
3989
4045
|
afterLabelContent,
|
|
3990
4046
|
...rest
|
|
3991
4047
|
}) => {
|
|
3992
|
-
const content = /* @__PURE__ */
|
|
4048
|
+
const content = /* @__PURE__ */ jsxs70(Fragment, { children: [
|
|
3993
4049
|
readOnly && /* @__PURE__ */ jsx200(
|
|
3994
4050
|
Icon,
|
|
3995
4051
|
{
|
|
@@ -4010,7 +4066,7 @@ var Label = ({
|
|
|
4010
4066
|
rest
|
|
4011
4067
|
)
|
|
4012
4068
|
};
|
|
4013
|
-
const render = afterLabelContent ? /* @__PURE__ */
|
|
4069
|
+
const render = afterLabelContent ? /* @__PURE__ */ jsxs70(
|
|
4014
4070
|
Typography,
|
|
4015
4071
|
{
|
|
4016
4072
|
typographyType: "labelMedium",
|
|
@@ -4068,7 +4124,7 @@ var Legend = ({
|
|
|
4068
4124
|
Legend.displayName = "Legend";
|
|
4069
4125
|
|
|
4070
4126
|
// src/components/Typography/Link/Link.tsx
|
|
4071
|
-
import { jsx as jsx202
|
|
4127
|
+
import { jsx as jsx202 } from "react/jsx-runtime";
|
|
4072
4128
|
var Link = ({
|
|
4073
4129
|
id,
|
|
4074
4130
|
className,
|
|
@@ -4077,21 +4133,19 @@ var Link = ({
|
|
|
4077
4133
|
typographyType,
|
|
4078
4134
|
withMargins,
|
|
4079
4135
|
withVisited,
|
|
4080
|
-
external,
|
|
4081
|
-
target,
|
|
4082
4136
|
style,
|
|
4083
4137
|
color,
|
|
4084
4138
|
as: propAs,
|
|
4085
4139
|
isAnchor: propIsAnchor,
|
|
4140
|
+
withIconStyling,
|
|
4086
4141
|
...rest
|
|
4087
4142
|
}) => {
|
|
4088
4143
|
const as = propAs ? propAs : "a";
|
|
4089
4144
|
const isAnchor = as === "a" || propIsAnchor;
|
|
4090
4145
|
const aProps = isAnchor ? {
|
|
4091
|
-
rel: "noopener noreferrer"
|
|
4092
|
-
target: external ? "_blank" : target
|
|
4146
|
+
rel: "noopener noreferrer"
|
|
4093
4147
|
} : {};
|
|
4094
|
-
return /* @__PURE__ */
|
|
4148
|
+
return /* @__PURE__ */ jsx202(
|
|
4095
4149
|
ElementAs,
|
|
4096
4150
|
{
|
|
4097
4151
|
as,
|
|
@@ -4100,7 +4154,7 @@ var Link = ({
|
|
|
4100
4154
|
cn(
|
|
4101
4155
|
className,
|
|
4102
4156
|
typographyStyles_default.a,
|
|
4103
|
-
|
|
4157
|
+
withIconStyling && typographyStyles_default["a--with-icon"],
|
|
4104
4158
|
withVisited && typographyStyles_default["a--visited"],
|
|
4105
4159
|
typographyType && typographyStyles_default[getTypographyCn(typographyType)],
|
|
4106
4160
|
typographyType && withMargins && typographyStyles_default[`${getTypographyCn(typographyType)}--margins`],
|
|
@@ -4115,17 +4169,7 @@ var Link = ({
|
|
|
4115
4169
|
rest
|
|
4116
4170
|
),
|
|
4117
4171
|
...aProps,
|
|
4118
|
-
children
|
|
4119
|
-
children,
|
|
4120
|
-
external && /* @__PURE__ */ jsx202(
|
|
4121
|
-
Icon,
|
|
4122
|
-
{
|
|
4123
|
-
iconSize: "inherit",
|
|
4124
|
-
icon: OpenExternalIcon,
|
|
4125
|
-
className: typographyStyles_default.svg
|
|
4126
|
-
}
|
|
4127
|
-
)
|
|
4128
|
-
]
|
|
4172
|
+
children
|
|
4129
4173
|
}
|
|
4130
4174
|
);
|
|
4131
4175
|
};
|
|
@@ -4154,7 +4198,7 @@ var Paragraph = ({
|
|
|
4154
4198
|
Paragraph.displayName = "Paragraph";
|
|
4155
4199
|
|
|
4156
4200
|
// src/components/Accordion/AccordionHeader.tsx
|
|
4157
|
-
import { jsx as jsx204, jsxs as
|
|
4201
|
+
import { jsx as jsx204, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
4158
4202
|
var AccordionHeader = ({
|
|
4159
4203
|
children,
|
|
4160
4204
|
className,
|
|
@@ -4185,7 +4229,7 @@ var AccordionHeader = ({
|
|
|
4185
4229
|
rest
|
|
4186
4230
|
),
|
|
4187
4231
|
...restHeaderProps,
|
|
4188
|
-
children: /* @__PURE__ */
|
|
4232
|
+
children: /* @__PURE__ */ jsxs71(
|
|
4189
4233
|
"div",
|
|
4190
4234
|
{
|
|
4191
4235
|
className: cn(
|
|
@@ -4252,7 +4296,7 @@ var BackLink_default = {
|
|
|
4252
4296
|
};
|
|
4253
4297
|
|
|
4254
4298
|
// src/components/BackLink/BackLink.tsx
|
|
4255
|
-
import { jsx as jsx206, jsxs as
|
|
4299
|
+
import { jsx as jsx206, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
4256
4300
|
var BackLink = ({ label, ref, as = "a", ...rest }) => {
|
|
4257
4301
|
const { t } = useTranslation();
|
|
4258
4302
|
return /* @__PURE__ */ jsx206(
|
|
@@ -4261,7 +4305,7 @@ var BackLink = ({ label, ref, as = "a", ...rest }) => {
|
|
|
4261
4305
|
ref,
|
|
4262
4306
|
"aria-label": t(texts.goBack),
|
|
4263
4307
|
className: typographyStyles_default["body-short-medium"],
|
|
4264
|
-
children: /* @__PURE__ */
|
|
4308
|
+
children: /* @__PURE__ */ jsxs72(
|
|
4265
4309
|
HStack,
|
|
4266
4310
|
{
|
|
4267
4311
|
as,
|
|
@@ -4353,7 +4397,7 @@ var ButtonGroupContext = createContext4({});
|
|
|
4353
4397
|
var useButtonGroupContext = () => useContext4(ButtonGroupContext);
|
|
4354
4398
|
|
|
4355
4399
|
// src/components/Button/Button.tsx
|
|
4356
|
-
import { Fragment as Fragment2, jsx as jsx208, jsxs as
|
|
4400
|
+
import { Fragment as Fragment2, jsx as jsx208, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
4357
4401
|
var Button = ({
|
|
4358
4402
|
as: propAs,
|
|
4359
4403
|
children,
|
|
@@ -4408,8 +4452,8 @@ var Button = ({
|
|
|
4408
4452
|
iconState
|
|
4409
4453
|
}
|
|
4410
4454
|
);
|
|
4411
|
-
const content = /* @__PURE__ */
|
|
4412
|
-
hasLabel && /* @__PURE__ */
|
|
4455
|
+
const content = /* @__PURE__ */ jsxs73(Fragment2, { children: [
|
|
4456
|
+
hasLabel && /* @__PURE__ */ jsxs73(Fragment2, { children: [
|
|
4413
4457
|
iconPosition === "left" && iconElement,
|
|
4414
4458
|
/* @__PURE__ */ jsx208("span", { "aria-hidden": loading, className: cn(loading && invisible), children }),
|
|
4415
4459
|
iconPosition === "right" && iconElement
|
|
@@ -4707,7 +4751,7 @@ var VisuallyHidden = ({
|
|
|
4707
4751
|
VisuallyHidden.displayName = "VisuallyHidden";
|
|
4708
4752
|
|
|
4709
4753
|
// src/components/Toggle/Toggle.tsx
|
|
4710
|
-
import { Fragment as Fragment3, jsx as jsx214, jsxs as
|
|
4754
|
+
import { Fragment as Fragment3, jsx as jsx214, jsxs as jsxs74 } from "react/jsx-runtime";
|
|
4711
4755
|
var TOGGLE_SIZES = createSizes("medium", "large");
|
|
4712
4756
|
var Toggle = ({
|
|
4713
4757
|
id,
|
|
@@ -4735,7 +4779,7 @@ var Toggle = ({
|
|
|
4735
4779
|
onChange
|
|
4736
4780
|
});
|
|
4737
4781
|
const isColorScheme = variant === "colorScheme";
|
|
4738
|
-
const marker = isColorScheme ? /* @__PURE__ */
|
|
4782
|
+
const marker = isColorScheme ? /* @__PURE__ */ jsxs74(Fragment3, { children: [
|
|
4739
4783
|
/* @__PURE__ */ jsx214(
|
|
4740
4784
|
Icon,
|
|
4741
4785
|
{
|
|
@@ -4754,7 +4798,7 @@ var Toggle = ({
|
|
|
4754
4798
|
)
|
|
4755
4799
|
] }) : /* @__PURE__ */ jsx214(Icon, { className: Toggle_default.checkmark, icon: CheckIcon, iconSize });
|
|
4756
4800
|
console.log("disabled", disabled);
|
|
4757
|
-
return /* @__PURE__ */
|
|
4801
|
+
return /* @__PURE__ */ jsxs74(
|
|
4758
4802
|
"label",
|
|
4759
4803
|
{
|
|
4760
4804
|
htmlFor: uniqueId,
|
|
@@ -4793,7 +4837,7 @@ var Toggle = ({
|
|
|
4793
4837
|
}
|
|
4794
4838
|
),
|
|
4795
4839
|
/* @__PURE__ */ jsx214("span", { className: cn(Toggle_default.track, focus_default["focus-styled-sibling"]), children: /* @__PURE__ */ jsx214("span", { className: Toggle_default.thumb, children: isLoading ? /* @__PURE__ */ jsx214(Spinner, { size: `var(--dds-size-icon-${size2})` }) : marker }) }),
|
|
4796
|
-
/* @__PURE__ */
|
|
4840
|
+
/* @__PURE__ */ jsxs74("span", { className: cn(readOnly && Toggle_default["labeltext--readonly"]), children: [
|
|
4797
4841
|
readOnly && /* @__PURE__ */ jsx214(
|
|
4798
4842
|
Icon,
|
|
4799
4843
|
{
|
|
@@ -4957,7 +5001,7 @@ var OverflowMenuGroup = ({
|
|
|
4957
5001
|
if (isOpen) onClose == null ? void 0 : onClose();
|
|
4958
5002
|
toggle();
|
|
4959
5003
|
};
|
|
4960
|
-
useOnClickOutside([menuRef
|
|
5004
|
+
useOnClickOutside([menuRef, buttonRef], () => {
|
|
4961
5005
|
handleClose();
|
|
4962
5006
|
});
|
|
4963
5007
|
useOnKeyDown(["Esc", "Escape"], () => {
|
|
@@ -4996,7 +5040,7 @@ var OverflowMenuGroup = ({
|
|
|
4996
5040
|
OverflowMenuGroup.displayName = "OverflowMenuGroup";
|
|
4997
5041
|
|
|
4998
5042
|
// src/components/Breadcrumbs/Breadcrumbs.tsx
|
|
4999
|
-
import { Fragment as Fragment4, jsx as jsx222, jsxs as
|
|
5043
|
+
import { Fragment as Fragment4, jsx as jsx222, jsxs as jsxs75 } from "react/jsx-runtime";
|
|
5000
5044
|
var Breadcrumbs = ({
|
|
5001
5045
|
children,
|
|
5002
5046
|
smallScreenBreakpoint,
|
|
@@ -5023,7 +5067,7 @@ var Breadcrumbs = ({
|
|
|
5023
5067
|
padding: "x0"
|
|
5024
5068
|
};
|
|
5025
5069
|
const bChildren = childrenArray.map((item, index) => {
|
|
5026
|
-
return /* @__PURE__ */
|
|
5070
|
+
return /* @__PURE__ */ jsxs75(
|
|
5027
5071
|
HStack,
|
|
5028
5072
|
{
|
|
5029
5073
|
...responsiveLiProps,
|
|
@@ -5044,11 +5088,11 @@ var Breadcrumbs = ({
|
|
|
5044
5088
|
return /* @__PURE__ */ jsx222(OverflowMenuSpan, { children: item.props.children }, index);
|
|
5045
5089
|
}
|
|
5046
5090
|
}) : [];
|
|
5047
|
-
const bChildrenSmallScreen = /* @__PURE__ */
|
|
5091
|
+
const bChildrenSmallScreen = /* @__PURE__ */ jsxs75(Fragment4, { children: [
|
|
5048
5092
|
/* @__PURE__ */ jsx222(HStack, { ...responsiveLiProps, children: childrenArray[0] }),
|
|
5049
|
-
bChildrenTruncated.length > 0 && /* @__PURE__ */
|
|
5093
|
+
bChildrenTruncated.length > 0 && /* @__PURE__ */ jsxs75(HStack, { ...responsiveLiProps, children: [
|
|
5050
5094
|
chevronIcon,
|
|
5051
|
-
/* @__PURE__ */
|
|
5095
|
+
/* @__PURE__ */ jsxs75(OverflowMenuGroup, { children: [
|
|
5052
5096
|
/* @__PURE__ */ jsx222(
|
|
5053
5097
|
Button,
|
|
5054
5098
|
{
|
|
@@ -5061,7 +5105,7 @@ var Breadcrumbs = ({
|
|
|
5061
5105
|
/* @__PURE__ */ jsx222(OverflowMenu, { portal: false, children: /* @__PURE__ */ jsx222(OverflowMenuList, { children: bChildrenTruncated }) })
|
|
5062
5106
|
] })
|
|
5063
5107
|
] }),
|
|
5064
|
-
/* @__PURE__ */
|
|
5108
|
+
/* @__PURE__ */ jsxs75(HStack, { ...responsiveLiProps, children: [
|
|
5065
5109
|
chevronIcon,
|
|
5066
5110
|
childrenArray[childrenArray.length - 1]
|
|
5067
5111
|
] })
|
|
@@ -5073,7 +5117,7 @@ var Breadcrumbs = ({
|
|
|
5073
5117
|
alignItems: "center",
|
|
5074
5118
|
gap: "x0.5"
|
|
5075
5119
|
};
|
|
5076
|
-
return /* @__PURE__ */
|
|
5120
|
+
return /* @__PURE__ */ jsxs75(
|
|
5077
5121
|
"nav",
|
|
5078
5122
|
{
|
|
5079
5123
|
...getBaseHTMLProps(
|
|
@@ -5272,7 +5316,7 @@ var CardExpandable = ({
|
|
|
5272
5316
|
CardExpandable.displayName = "CardExpandable";
|
|
5273
5317
|
|
|
5274
5318
|
// src/components/Card/CardExpandable/CardExpandableHeader.tsx
|
|
5275
|
-
import { jsx as jsx226, jsxs as
|
|
5319
|
+
import { jsx as jsx226, jsxs as jsxs76 } from "react/jsx-runtime";
|
|
5276
5320
|
var CardExpandableHeader = ({
|
|
5277
5321
|
children,
|
|
5278
5322
|
className,
|
|
@@ -5316,7 +5360,7 @@ var CardExpandableHeader = ({
|
|
|
5316
5360
|
typographyStyles_default[getTypographyCn(typographyType)],
|
|
5317
5361
|
bold && typographyStyles_default.bold
|
|
5318
5362
|
),
|
|
5319
|
-
children: /* @__PURE__ */
|
|
5363
|
+
children: /* @__PURE__ */ jsxs76("div", { className: (AccordionBase_default.header__content, CardExpandable_default.header__content), children: [
|
|
5320
5364
|
children,
|
|
5321
5365
|
/* @__PURE__ */ jsx226(
|
|
5322
5366
|
Icon,
|
|
@@ -5401,7 +5445,7 @@ var SelectionControl_default = {
|
|
|
5401
5445
|
};
|
|
5402
5446
|
|
|
5403
5447
|
// src/components/SelectionControl/SelectionControl.styles.tsx
|
|
5404
|
-
import { jsx as jsx228, jsxs as
|
|
5448
|
+
import { jsx as jsx228, jsxs as jsxs77 } from "react/jsx-runtime";
|
|
5405
5449
|
var SelectionControl = ({
|
|
5406
5450
|
controlType,
|
|
5407
5451
|
className,
|
|
@@ -5453,7 +5497,7 @@ var renderGroupLabel = ({
|
|
|
5453
5497
|
}) => {
|
|
5454
5498
|
const hasLabel = !!label;
|
|
5455
5499
|
if (hasLabel)
|
|
5456
|
-
return /* @__PURE__ */
|
|
5500
|
+
return /* @__PURE__ */ jsxs77(
|
|
5457
5501
|
Typography,
|
|
5458
5502
|
{
|
|
5459
5503
|
as: "span",
|
|
@@ -5487,7 +5531,7 @@ var selectionControlTypographyProps = {
|
|
|
5487
5531
|
};
|
|
5488
5532
|
|
|
5489
5533
|
// src/components/SelectionControl/Checkbox/Checkbox.tsx
|
|
5490
|
-
import { jsx as jsx229, jsxs as
|
|
5534
|
+
import { jsx as jsx229, jsxs as jsxs78 } from "react/jsx-runtime";
|
|
5491
5535
|
var Checkbox = ({
|
|
5492
5536
|
id,
|
|
5493
5537
|
name,
|
|
@@ -5511,7 +5555,7 @@ var Checkbox = ({
|
|
|
5511
5555
|
const isReadOnly = readOnly || (checkboxGroup == null ? void 0 : checkboxGroup.readOnly);
|
|
5512
5556
|
const hasError = error || (checkboxGroup == null ? void 0 : checkboxGroup.error);
|
|
5513
5557
|
const isDisabled = disabled || (checkboxGroup == null ? void 0 : checkboxGroup.disabled);
|
|
5514
|
-
return /* @__PURE__ */
|
|
5558
|
+
return /* @__PURE__ */ jsxs78(
|
|
5515
5559
|
Label2,
|
|
5516
5560
|
{
|
|
5517
5561
|
disabled: isDisabled,
|
|
@@ -5576,7 +5620,7 @@ function convertBooleanishToBoolean(value) {
|
|
|
5576
5620
|
}
|
|
5577
5621
|
|
|
5578
5622
|
// src/components/InputMessage/InputMessage.tsx
|
|
5579
|
-
import { Fragment as Fragment5, jsx as jsx230, jsxs as
|
|
5623
|
+
import { Fragment as Fragment5, jsx as jsx230, jsxs as jsxs79 } from "react/jsx-runtime";
|
|
5580
5624
|
var InputMessage = ({
|
|
5581
5625
|
messageType,
|
|
5582
5626
|
id,
|
|
@@ -5598,7 +5642,7 @@ var InputMessage = ({
|
|
|
5598
5642
|
as: "span",
|
|
5599
5643
|
children
|
|
5600
5644
|
};
|
|
5601
|
-
return isError ? /* @__PURE__ */
|
|
5645
|
+
return isError ? /* @__PURE__ */ jsxs79(
|
|
5602
5646
|
Paper,
|
|
5603
5647
|
{
|
|
5604
5648
|
...commonProps,
|
|
@@ -5635,7 +5679,7 @@ var renderInputMessage = ({
|
|
|
5635
5679
|
errorMessage,
|
|
5636
5680
|
errorMessageId,
|
|
5637
5681
|
noSpacing
|
|
5638
|
-
}) => /* @__PURE__ */
|
|
5682
|
+
}) => /* @__PURE__ */ jsxs79(Fragment5, { children: [
|
|
5639
5683
|
errorMessage && /* @__PURE__ */ jsx230(
|
|
5640
5684
|
InputMessage,
|
|
5641
5685
|
{
|
|
@@ -5649,7 +5693,7 @@ var renderInputMessage = ({
|
|
|
5649
5693
|
] });
|
|
5650
5694
|
|
|
5651
5695
|
// src/components/SelectionControl/Checkbox/CheckboxGroup.tsx
|
|
5652
|
-
import { jsx as jsx231, jsxs as
|
|
5696
|
+
import { jsx as jsx231, jsxs as jsxs80 } from "react/jsx-runtime";
|
|
5653
5697
|
var CheckboxGroup = (props) => {
|
|
5654
5698
|
const {
|
|
5655
5699
|
label,
|
|
@@ -5682,7 +5726,7 @@ var CheckboxGroup = (props) => {
|
|
|
5682
5726
|
disabled,
|
|
5683
5727
|
readOnly
|
|
5684
5728
|
};
|
|
5685
|
-
return /* @__PURE__ */
|
|
5729
|
+
return /* @__PURE__ */ jsxs80(
|
|
5686
5730
|
"div",
|
|
5687
5731
|
{
|
|
5688
5732
|
...getBaseHTMLProps(
|
|
@@ -5728,7 +5772,7 @@ var useRadioButtonGroup = () => {
|
|
|
5728
5772
|
};
|
|
5729
5773
|
|
|
5730
5774
|
// src/components/SelectionControl/RadioButton/RadioButton.tsx
|
|
5731
|
-
import { jsx as jsx232, jsxs as
|
|
5775
|
+
import { jsx as jsx232, jsxs as jsxs81 } from "react/jsx-runtime";
|
|
5732
5776
|
var getIsChecked = ({
|
|
5733
5777
|
value,
|
|
5734
5778
|
groupValue,
|
|
@@ -5783,7 +5827,7 @@ var RadioButton = ({
|
|
|
5783
5827
|
groupValue: radioButtonGroup == null ? void 0 : radioButtonGroup.value,
|
|
5784
5828
|
checked
|
|
5785
5829
|
});
|
|
5786
|
-
return /* @__PURE__ */
|
|
5830
|
+
return /* @__PURE__ */ jsxs81(
|
|
5787
5831
|
Label2,
|
|
5788
5832
|
{
|
|
5789
5833
|
disabled: isDisabled,
|
|
@@ -5832,7 +5876,7 @@ RadioButton.displayName = "RadioButton";
|
|
|
5832
5876
|
|
|
5833
5877
|
// src/components/SelectionControl/RadioButton/RadioButtonGroup.tsx
|
|
5834
5878
|
import { useId as useId8 } from "react";
|
|
5835
|
-
import { jsx as jsx233, jsxs as
|
|
5879
|
+
import { jsx as jsx233, jsxs as jsxs82 } from "react/jsx-runtime";
|
|
5836
5880
|
var RadioButtonGroup = ({
|
|
5837
5881
|
name,
|
|
5838
5882
|
label,
|
|
@@ -5876,7 +5920,7 @@ var RadioButtonGroup = ({
|
|
|
5876
5920
|
value: groupValue,
|
|
5877
5921
|
onChange: handleChange
|
|
5878
5922
|
};
|
|
5879
|
-
return /* @__PURE__ */
|
|
5923
|
+
return /* @__PURE__ */ jsxs82(
|
|
5880
5924
|
"div",
|
|
5881
5925
|
{
|
|
5882
5926
|
...getBaseHTMLProps(
|
|
@@ -5994,7 +6038,7 @@ CardSelectable.displayName = "CardSelectable";
|
|
|
5994
6038
|
|
|
5995
6039
|
// src/components/Card/CardSelectionControl/CardSelectableGroup.tsx
|
|
5996
6040
|
import { useId as useId9 } from "react";
|
|
5997
|
-
import { jsx as jsx235, jsxs as
|
|
6041
|
+
import { jsx as jsx235, jsxs as jsxs83 } from "react/jsx-runtime";
|
|
5998
6042
|
var CardSelectableGroup = ({
|
|
5999
6043
|
name,
|
|
6000
6044
|
cardType,
|
|
@@ -6057,7 +6101,7 @@ var CardSelectableGroup = ({
|
|
|
6057
6101
|
children: /* @__PURE__ */ jsx235(CardSelectableContext, { value: generalContextProps, children: cardType === "radio" ? /* @__PURE__ */ jsx235(RadioButtonGroupContext, { value: contextProps, children }) : cardType === "checkbox" ? /* @__PURE__ */ jsx235(CheckboxGroupContext, { value: contextProps, children }) : null })
|
|
6058
6102
|
}
|
|
6059
6103
|
);
|
|
6060
|
-
return hasErrorMessage ? /* @__PURE__ */
|
|
6104
|
+
return hasErrorMessage ? /* @__PURE__ */ jsxs83("div", { children: [
|
|
6061
6105
|
mainContent,
|
|
6062
6106
|
renderInputMessage({ errorMessage, errorMessageId })
|
|
6063
6107
|
] }) : mainContent;
|
|
@@ -6096,7 +6140,7 @@ var InlineIconButton = ({
|
|
|
6096
6140
|
InlineIconButton.displayName = "InlineIconButton";
|
|
6097
6141
|
|
|
6098
6142
|
// src/components/Chip/Chip.tsx
|
|
6099
|
-
import { jsx as jsx237, jsxs as
|
|
6143
|
+
import { jsx as jsx237, jsxs as jsxs84 } from "react/jsx-runtime";
|
|
6100
6144
|
var Chip = ({
|
|
6101
6145
|
children,
|
|
6102
6146
|
onClose,
|
|
@@ -6113,7 +6157,7 @@ var Chip = ({
|
|
|
6113
6157
|
setIsOpen(false);
|
|
6114
6158
|
onClose == null ? void 0 : onClose();
|
|
6115
6159
|
};
|
|
6116
|
-
return isOpen ? /* @__PURE__ */
|
|
6160
|
+
return isOpen ? /* @__PURE__ */ jsxs84(
|
|
6117
6161
|
Box,
|
|
6118
6162
|
{
|
|
6119
6163
|
display: "inline-flex",
|
|
@@ -6173,7 +6217,7 @@ var CookieBanner_default = {
|
|
|
6173
6217
|
};
|
|
6174
6218
|
|
|
6175
6219
|
// src/components/CookieBanner/CookieBannerCheckbox.tsx
|
|
6176
|
-
import { jsx as jsx239, jsxs as
|
|
6220
|
+
import { jsx as jsx239, jsxs as jsxs85 } from "react/jsx-runtime";
|
|
6177
6221
|
function CookieBannerCheckbox({
|
|
6178
6222
|
headerText,
|
|
6179
6223
|
description,
|
|
@@ -6193,7 +6237,7 @@ function CookieBannerCheckbox({
|
|
|
6193
6237
|
htmlProps,
|
|
6194
6238
|
rest
|
|
6195
6239
|
),
|
|
6196
|
-
children: /* @__PURE__ */
|
|
6240
|
+
children: /* @__PURE__ */ jsxs85(VStack, { gap: "x0.5", children: [
|
|
6197
6241
|
/* @__PURE__ */ jsx239(Typography, { as: "span", typographyType: "headingSmall", children: headerText }),
|
|
6198
6242
|
/* @__PURE__ */ jsx239(Typography, { as: "span", typographyType: "bodyLongSmall", children: description })
|
|
6199
6243
|
] })
|
|
@@ -6203,7 +6247,7 @@ function CookieBannerCheckbox({
|
|
|
6203
6247
|
CookieBannerCheckbox.displayName = "CookieBannerCheckbox";
|
|
6204
6248
|
|
|
6205
6249
|
// src/components/CookieBanner/CookieBanner.tsx
|
|
6206
|
-
import { jsx as jsx240, jsxs as
|
|
6250
|
+
import { jsx as jsx240, jsxs as jsxs86 } from "react/jsx-runtime";
|
|
6207
6251
|
import { createElement } from "react";
|
|
6208
6252
|
function CookieBanner({
|
|
6209
6253
|
headerText,
|
|
@@ -6254,8 +6298,8 @@ function CookieBanner({
|
|
|
6254
6298
|
border: "border-default",
|
|
6255
6299
|
background: "brand-tertiary-medium",
|
|
6256
6300
|
elevation: "large",
|
|
6257
|
-
children: /* @__PURE__ */
|
|
6258
|
-
hasBp && isCollapsedOnBreakpoint ? /* @__PURE__ */
|
|
6301
|
+
children: /* @__PURE__ */ jsxs86(VStack, { maxWidth: "70ch", gap: "x1", children: [
|
|
6302
|
+
hasBp && isCollapsedOnBreakpoint ? /* @__PURE__ */ jsxs86(HStack, { alignItems: "center", justifyContent: "space-between", gap: "x1", children: [
|
|
6259
6303
|
heading,
|
|
6260
6304
|
/* @__PURE__ */ jsx240(
|
|
6261
6305
|
ShowHide,
|
|
@@ -6270,7 +6314,7 @@ function CookieBanner({
|
|
|
6270
6314
|
}
|
|
6271
6315
|
)
|
|
6272
6316
|
] }) : heading,
|
|
6273
|
-
/* @__PURE__ */
|
|
6317
|
+
/* @__PURE__ */ jsxs86(
|
|
6274
6318
|
VStack,
|
|
6275
6319
|
{
|
|
6276
6320
|
gap: "x1",
|
|
@@ -6460,7 +6504,7 @@ import {
|
|
|
6460
6504
|
useRef as useRef13
|
|
6461
6505
|
} from "react";
|
|
6462
6506
|
import { createPortal as createPortal2 } from "react-dom";
|
|
6463
|
-
import { Fragment as Fragment6, jsx as jsx242, jsxs as
|
|
6507
|
+
import { Fragment as Fragment6, jsx as jsx242, jsxs as jsxs87 } from "react/jsx-runtime";
|
|
6464
6508
|
var CalendarPopoverContext = createContext9({
|
|
6465
6509
|
anchorRef: null,
|
|
6466
6510
|
closeButtonRef: null,
|
|
@@ -6512,7 +6556,7 @@ var CalendarPopoverContent = ({
|
|
|
6512
6556
|
const hasTransitionedIn = useMountTransition(isOpen, 500);
|
|
6513
6557
|
const isMounted = isOpen && hasTransitionedIn;
|
|
6514
6558
|
const combinedRef = useCombinedRef(refs.setFloating, ref);
|
|
6515
|
-
useOnClickOutside([ref
|
|
6559
|
+
useOnClickOutside([ref, modalRef], onClose);
|
|
6516
6560
|
useEffect18(() => {
|
|
6517
6561
|
var _a;
|
|
6518
6562
|
refs.setReference((_a = anchorRef == null ? void 0 : anchorRef.current) != null ? _a : null);
|
|
@@ -6540,9 +6584,9 @@ var CalendarPopoverContent = ({
|
|
|
6540
6584
|
border: "border-default",
|
|
6541
6585
|
padding: "x0.75"
|
|
6542
6586
|
};
|
|
6543
|
-
return /* @__PURE__ */
|
|
6587
|
+
return /* @__PURE__ */ jsxs87(Fragment6, { children: [
|
|
6544
6588
|
portalTarget && hasBreakpoint && createPortal2(
|
|
6545
|
-
/* @__PURE__ */ jsx242(ShowHide, { showBelow: smallScreenBreakpoint, children: /* @__PURE__ */ jsx242(Backdrop, { zIndex: "modal", isMounted, children: /* @__PURE__ */
|
|
6589
|
+
/* @__PURE__ */ jsx242(ShowHide, { showBelow: smallScreenBreakpoint, children: /* @__PURE__ */ jsx242(Backdrop, { zIndex: "modal", isMounted, children: /* @__PURE__ */ jsxs87(
|
|
6546
6590
|
Paper,
|
|
6547
6591
|
{
|
|
6548
6592
|
ref: modalRef,
|
|
@@ -6582,7 +6626,7 @@ var CalendarPopoverContent = ({
|
|
|
6582
6626
|
};
|
|
6583
6627
|
|
|
6584
6628
|
// src/components/date-inputs/DatePicker/Calendar/CalendarGrid.tsx
|
|
6585
|
-
import { jsx as jsx243, jsxs as
|
|
6629
|
+
import { jsx as jsx243, jsxs as jsxs88 } from "react/jsx-runtime";
|
|
6586
6630
|
function CalendarGrid({ state, ...props }) {
|
|
6587
6631
|
const { t } = useTranslation();
|
|
6588
6632
|
const { locale } = useLocale();
|
|
@@ -6606,7 +6650,7 @@ function CalendarGrid({ state, ...props }) {
|
|
|
6606
6650
|
typographyStyles_default["text-color--subtle"],
|
|
6607
6651
|
DateInput_default.calendar__th
|
|
6608
6652
|
);
|
|
6609
|
-
return /* @__PURE__ */
|
|
6653
|
+
return /* @__PURE__ */ jsxs88(
|
|
6610
6654
|
"table",
|
|
6611
6655
|
{
|
|
6612
6656
|
...gridProps,
|
|
@@ -6619,12 +6663,12 @@ function CalendarGrid({ state, ...props }) {
|
|
|
6619
6663
|
cellPadding: "0",
|
|
6620
6664
|
className: typographyStyles_default["body-short-xsmall"],
|
|
6621
6665
|
children: [
|
|
6622
|
-
/* @__PURE__ */ jsx243("thead", { ...headerProps, children: /* @__PURE__ */
|
|
6623
|
-
showWeekNumbers && /* @__PURE__ */
|
|
6666
|
+
/* @__PURE__ */ jsx243("thead", { ...headerProps, children: /* @__PURE__ */ jsxs88("tr", { children: [
|
|
6667
|
+
showWeekNumbers && /* @__PURE__ */ jsxs88("th", { className: cn(thCn), children: [
|
|
6624
6668
|
/* @__PURE__ */ jsx243("span", { "aria-hidden": true, children: "#" }),
|
|
6625
6669
|
/* @__PURE__ */ jsx243(VisuallyHidden, { children: t(texts6.weekNumber) })
|
|
6626
6670
|
] }),
|
|
6627
|
-
weekDays.map((day, index) => /* @__PURE__ */
|
|
6671
|
+
weekDays.map((day, index) => /* @__PURE__ */ jsxs88("th", { className: thCn, children: [
|
|
6628
6672
|
/* @__PURE__ */ jsx243("span", { "aria-hidden": true, children: day.short }),
|
|
6629
6673
|
/* @__PURE__ */ jsx243(VisuallyHidden, { children: day.full })
|
|
6630
6674
|
] }, index))
|
|
@@ -6633,7 +6677,7 @@ function CalendarGrid({ state, ...props }) {
|
|
|
6633
6677
|
const datesInWeek = state.getDatesInWeek(weekIndex);
|
|
6634
6678
|
const firstExistingDay = datesInWeek.find(Boolean);
|
|
6635
6679
|
const weekNumber = firstExistingDay ? getWeekNumber(firstExistingDay) : "";
|
|
6636
|
-
return /* @__PURE__ */
|
|
6680
|
+
return /* @__PURE__ */ jsxs88("tr", { children: [
|
|
6637
6681
|
showWeekNumbers && /* @__PURE__ */ jsx243("td", { className: cn(thCn, DateInput_default["calendar__week-number"]), children: weekNumber }),
|
|
6638
6682
|
datesInWeek.map(
|
|
6639
6683
|
(date, i) => date ? /* @__PURE__ */ jsx243(
|
|
@@ -6762,7 +6806,7 @@ var texts6 = createTexts({
|
|
|
6762
6806
|
});
|
|
6763
6807
|
|
|
6764
6808
|
// src/components/date-inputs/DatePicker/Calendar/Calendar.tsx
|
|
6765
|
-
import { jsx as jsx244, jsxs as
|
|
6809
|
+
import { jsx as jsx244, jsxs as jsxs89 } from "react/jsx-runtime";
|
|
6766
6810
|
function createCalendar(identifier) {
|
|
6767
6811
|
switch (identifier) {
|
|
6768
6812
|
case "gregory":
|
|
@@ -6794,8 +6838,8 @@ function Calendar(props) {
|
|
|
6794
6838
|
}
|
|
6795
6839
|
}
|
|
6796
6840
|
};
|
|
6797
|
-
return /* @__PURE__ */
|
|
6798
|
-
/* @__PURE__ */
|
|
6841
|
+
return /* @__PURE__ */ jsxs89(VStack, { ...calendarProps, gap: "x0.25", height: "337px", children: [
|
|
6842
|
+
/* @__PURE__ */ jsxs89(HStack, { justifyContent: "space-between", alignItems: "center", children: [
|
|
6799
6843
|
/* @__PURE__ */ jsx244(
|
|
6800
6844
|
Button,
|
|
6801
6845
|
{
|
|
@@ -6996,7 +7040,7 @@ var texts8 = createTexts({
|
|
|
6996
7040
|
// src/components/date-inputs/DatePicker/DateField/DateSegment.tsx
|
|
6997
7041
|
import { useDateSegment } from "@react-aria/datepicker";
|
|
6998
7042
|
import { useRef as useRef15 } from "react";
|
|
6999
|
-
import { jsx as jsx246, jsxs as
|
|
7043
|
+
import { jsx as jsx246, jsxs as jsxs90 } from "react/jsx-runtime";
|
|
7000
7044
|
function DateSegment({
|
|
7001
7045
|
segment,
|
|
7002
7046
|
state,
|
|
@@ -7006,7 +7050,7 @@ function DateSegment({
|
|
|
7006
7050
|
}) {
|
|
7007
7051
|
const ref = useRef15(null);
|
|
7008
7052
|
const { segmentProps } = useDateSegment(segment, state, ref);
|
|
7009
|
-
return /* @__PURE__ */
|
|
7053
|
+
return /* @__PURE__ */ jsxs90(
|
|
7010
7054
|
"div",
|
|
7011
7055
|
{
|
|
7012
7056
|
...segmentProps,
|
|
@@ -7125,7 +7169,7 @@ function renderLabel(props) {
|
|
|
7125
7169
|
}
|
|
7126
7170
|
|
|
7127
7171
|
// src/components/date-inputs/common/DateInput.tsx
|
|
7128
|
-
import { jsx as jsx250, jsxs as
|
|
7172
|
+
import { jsx as jsx250, jsxs as jsxs91 } from "react/jsx-runtime";
|
|
7129
7173
|
function DateInput({
|
|
7130
7174
|
errorMessage,
|
|
7131
7175
|
tip,
|
|
@@ -7153,7 +7197,7 @@ function DateInput({
|
|
|
7153
7197
|
}) {
|
|
7154
7198
|
const hasErrorMessage = !!errorMessage;
|
|
7155
7199
|
const { isOpen } = useContext13(CalendarPopoverContext);
|
|
7156
|
-
return /* @__PURE__ */
|
|
7200
|
+
return /* @__PURE__ */ jsxs91(
|
|
7157
7201
|
"div",
|
|
7158
7202
|
{
|
|
7159
7203
|
...groupProps,
|
|
@@ -7167,7 +7211,7 @@ function DateInput({
|
|
|
7167
7211
|
readOnly,
|
|
7168
7212
|
afterLabelContent
|
|
7169
7213
|
}),
|
|
7170
|
-
/* @__PURE__ */
|
|
7214
|
+
/* @__PURE__ */ jsxs91(
|
|
7171
7215
|
Box,
|
|
7172
7216
|
{
|
|
7173
7217
|
style,
|
|
@@ -7333,7 +7377,7 @@ function createDOMRef(ref) {
|
|
|
7333
7377
|
}
|
|
7334
7378
|
|
|
7335
7379
|
// src/components/date-inputs/DatePicker/DatePicker.tsx
|
|
7336
|
-
import { jsx as jsx252, jsxs as
|
|
7380
|
+
import { jsx as jsx252, jsxs as jsxs92 } from "react/jsx-runtime";
|
|
7337
7381
|
var refIsFocusable = (ref) => {
|
|
7338
7382
|
return typeof ref === "object" && ref !== null && "focus" in ref;
|
|
7339
7383
|
};
|
|
@@ -7368,7 +7412,7 @@ function DatePicker({
|
|
|
7368
7412
|
const uniqueId = (_a = props.id) != null ? _a : useId11();
|
|
7369
7413
|
const errorMessageId = hasErrorMessage ? `${uniqueId}-errorMessage` : void 0;
|
|
7370
7414
|
const tipId = hasTip ? `${uniqueId}-tip` : void 0;
|
|
7371
|
-
return /* @__PURE__ */ jsx252(I18nProvider, { locale: LOCALE[lang], children: /* @__PURE__ */
|
|
7415
|
+
return /* @__PURE__ */ jsx252(I18nProvider, { locale: LOCALE[lang], children: /* @__PURE__ */ jsxs92(
|
|
7372
7416
|
CalendarPopover,
|
|
7373
7417
|
{
|
|
7374
7418
|
isOpen: state.isOpen,
|
|
@@ -7596,7 +7640,7 @@ var DescriptionListTerm = (props) => {
|
|
|
7596
7640
|
DescriptionListTerm.displayName = "DescriptionListTerm";
|
|
7597
7641
|
|
|
7598
7642
|
// src/components/DescriptionList/DescriptionListDesc.tsx
|
|
7599
|
-
import { jsx as jsx256, jsxs as
|
|
7643
|
+
import { jsx as jsx256, jsxs as jsxs93 } from "react/jsx-runtime";
|
|
7600
7644
|
var DescriptionListDesc = ({
|
|
7601
7645
|
children,
|
|
7602
7646
|
icon,
|
|
@@ -7605,7 +7649,7 @@ var DescriptionListDesc = ({
|
|
|
7605
7649
|
style,
|
|
7606
7650
|
htmlProps,
|
|
7607
7651
|
...rest
|
|
7608
|
-
}) => /* @__PURE__ */
|
|
7652
|
+
}) => /* @__PURE__ */ jsxs93(
|
|
7609
7653
|
"dd",
|
|
7610
7654
|
{
|
|
7611
7655
|
...getBaseHTMLProps(
|
|
@@ -7740,11 +7784,11 @@ var DetailListDesc = ({ className, ...rest }) => /* @__PURE__ */ jsx259(Box, { a
|
|
|
7740
7784
|
DetailListDesc.displayName = "DetailListDesc";
|
|
7741
7785
|
|
|
7742
7786
|
// src/components/DetailList/DetailListRow.tsx
|
|
7743
|
-
import { Fragment as Fragment7, jsx as jsx260, jsxs as
|
|
7787
|
+
import { Fragment as Fragment7, jsx as jsx260, jsxs as jsxs94 } from "react/jsx-runtime";
|
|
7744
7788
|
var DetailListRow = ({ className, ...rest }) => {
|
|
7745
7789
|
const { smallScreenBreakpoint: bp } = useDetailListContext();
|
|
7746
7790
|
const hasBp = !!bp;
|
|
7747
|
-
return /* @__PURE__ */
|
|
7791
|
+
return /* @__PURE__ */ jsxs94(Fragment7, { children: [
|
|
7748
7792
|
/* @__PURE__ */ jsx260(
|
|
7749
7793
|
Box,
|
|
7750
7794
|
{
|
|
@@ -7806,7 +7850,7 @@ var DrawerContext = createContext11({});
|
|
|
7806
7850
|
var useDrawerContext = () => useContext15(DrawerContext);
|
|
7807
7851
|
|
|
7808
7852
|
// src/components/Drawer/Drawer.tsx
|
|
7809
|
-
import { jsx as jsx262, jsxs as
|
|
7853
|
+
import { jsx as jsx262, jsxs as jsxs95 } from "react/jsx-runtime";
|
|
7810
7854
|
var DRAWER_SIZES = createSizes("small", "medium", "large");
|
|
7811
7855
|
var Drawer = ({
|
|
7812
7856
|
children,
|
|
@@ -7830,7 +7874,7 @@ var Drawer = ({
|
|
|
7830
7874
|
}
|
|
7831
7875
|
const { t } = useTranslation();
|
|
7832
7876
|
const portalTarget = parentElement != null ? parentElement : themeContext == null ? void 0 : themeContext.el;
|
|
7833
|
-
const { isOpen = false, onClose, drawerId,
|
|
7877
|
+
const { isOpen = false, onClose, drawerId, triggerRef } = useDrawerContext();
|
|
7834
7878
|
const hasHeader = !!header;
|
|
7835
7879
|
const headerId = hasHeader ? `${drawerId}-header` : void 0;
|
|
7836
7880
|
const drawerRef = useFocusTrap(isOpen);
|
|
@@ -7845,8 +7889,8 @@ var Drawer = ({
|
|
|
7845
7889
|
return () => handleElementWithBackdropUnmount(document.body);
|
|
7846
7890
|
}
|
|
7847
7891
|
}, [isOpen]);
|
|
7848
|
-
const elements = [drawerRef
|
|
7849
|
-
if (
|
|
7892
|
+
const elements = [drawerRef];
|
|
7893
|
+
if (triggerRef) elements.push(triggerRef);
|
|
7850
7894
|
useOnClickOutside(elements, () => {
|
|
7851
7895
|
if (isOpen && !withBackdrop) {
|
|
7852
7896
|
onClose == null ? void 0 : onClose();
|
|
@@ -7871,7 +7915,7 @@ var Drawer = ({
|
|
|
7871
7915
|
return "800px";
|
|
7872
7916
|
}
|
|
7873
7917
|
};
|
|
7874
|
-
const drawer = /* @__PURE__ */
|
|
7918
|
+
const drawer = /* @__PURE__ */ jsxs95(
|
|
7875
7919
|
Paper,
|
|
7876
7920
|
{
|
|
7877
7921
|
ref: combinedRef,
|
|
@@ -7904,7 +7948,7 @@ var Drawer = ({
|
|
|
7904
7948
|
elevation: "large",
|
|
7905
7949
|
"aria-labelledby": headerId,
|
|
7906
7950
|
children: [
|
|
7907
|
-
/* @__PURE__ */
|
|
7951
|
+
/* @__PURE__ */ jsxs95(
|
|
7908
7952
|
HStack,
|
|
7909
7953
|
{
|
|
7910
7954
|
position: "sticky",
|
|
@@ -8016,7 +8060,7 @@ var DrawerGroup = ({
|
|
|
8016
8060
|
drawerId: uniqueDrawerId,
|
|
8017
8061
|
isOpen,
|
|
8018
8062
|
onClose: handleClose,
|
|
8019
|
-
|
|
8063
|
+
triggerRef
|
|
8020
8064
|
},
|
|
8021
8065
|
children: Children7
|
|
8022
8066
|
}
|
|
@@ -8025,7 +8069,7 @@ var DrawerGroup = ({
|
|
|
8025
8069
|
DrawerGroup.displayName = "DrawerGroup";
|
|
8026
8070
|
|
|
8027
8071
|
// src/components/EmptyContent/EmptyContent.tsx
|
|
8028
|
-
import { jsx as jsx264, jsxs as
|
|
8072
|
+
import { jsx as jsx264, jsxs as jsxs96 } from "react/jsx-runtime";
|
|
8029
8073
|
function EmptyContent({
|
|
8030
8074
|
headerText,
|
|
8031
8075
|
children,
|
|
@@ -8045,7 +8089,7 @@ function EmptyContent({
|
|
|
8045
8089
|
background: "surface-medium",
|
|
8046
8090
|
borderRadius: "surface",
|
|
8047
8091
|
...rest,
|
|
8048
|
-
children: /* @__PURE__ */
|
|
8092
|
+
children: /* @__PURE__ */ jsxs96(
|
|
8049
8093
|
VStack,
|
|
8050
8094
|
{
|
|
8051
8095
|
maxWidth: "70ch",
|
|
@@ -8111,7 +8155,7 @@ var ListItem = ({ className, ...rest }) => /* @__PURE__ */ jsx266("li", { ...res
|
|
|
8111
8155
|
ListItem.displayName = "ListItem";
|
|
8112
8156
|
|
|
8113
8157
|
// src/components/ErrorSummary/ErrorSummary.tsx
|
|
8114
|
-
import { jsx as jsx267, jsxs as
|
|
8158
|
+
import { jsx as jsx267, jsxs as jsxs97 } from "react/jsx-runtime";
|
|
8115
8159
|
var ErrorSummary = ({
|
|
8116
8160
|
heading: pHeading,
|
|
8117
8161
|
className,
|
|
@@ -8123,7 +8167,7 @@ var ErrorSummary = ({
|
|
|
8123
8167
|
}) => {
|
|
8124
8168
|
const { t } = useTranslation();
|
|
8125
8169
|
const heading = typeof pHeading === "string" ? /* @__PURE__ */ jsx267(Heading, { level: 2, typographyType: "headingSmall", children: pHeading }) : pHeading ? pHeading : /* @__PURE__ */ jsx267(Heading, { level: 2, typographyType: "headingSmall", children: t(texts10.toProceedCorrectErrors) });
|
|
8126
|
-
return /* @__PURE__ */
|
|
8170
|
+
return /* @__PURE__ */ jsxs97(
|
|
8127
8171
|
Paper,
|
|
8128
8172
|
{
|
|
8129
8173
|
...getBaseHTMLProps(
|
|
@@ -8180,7 +8224,7 @@ var FavStar_default = {
|
|
|
8180
8224
|
};
|
|
8181
8225
|
|
|
8182
8226
|
// src/components/FavStar/FavStar.tsx
|
|
8183
|
-
import { jsx as jsx269, jsxs as
|
|
8227
|
+
import { jsx as jsx269, jsxs as jsxs98 } from "react/jsx-runtime";
|
|
8184
8228
|
var FAVSTAR_SIZES = createSizes("medium", "large");
|
|
8185
8229
|
var FavStar = ({
|
|
8186
8230
|
id,
|
|
@@ -8208,7 +8252,7 @@ var FavStar = ({
|
|
|
8208
8252
|
defaultValue: defaultChecked != null ? defaultChecked : false,
|
|
8209
8253
|
onChange
|
|
8210
8254
|
});
|
|
8211
|
-
return /* @__PURE__ */
|
|
8255
|
+
return /* @__PURE__ */ jsxs98(
|
|
8212
8256
|
"label",
|
|
8213
8257
|
{
|
|
8214
8258
|
className: cn(
|
|
@@ -8291,13 +8335,13 @@ var CharCounter_default = {
|
|
|
8291
8335
|
};
|
|
8292
8336
|
|
|
8293
8337
|
// src/components/helpers/CharCounter/CharCounter.tsx
|
|
8294
|
-
import { jsx as jsx270, jsxs as
|
|
8338
|
+
import { jsx as jsx270, jsxs as jsxs99 } from "react/jsx-runtime";
|
|
8295
8339
|
function CharCounter(props) {
|
|
8296
8340
|
const { t } = useTranslation();
|
|
8297
8341
|
const { current, max, id } = props;
|
|
8298
8342
|
const generatedId = useId15();
|
|
8299
8343
|
const uniqueId = id != null ? id : `${generatedId}-characterCounter`;
|
|
8300
|
-
return /* @__PURE__ */
|
|
8344
|
+
return /* @__PURE__ */ jsxs99(
|
|
8301
8345
|
Typography,
|
|
8302
8346
|
{
|
|
8303
8347
|
id: uniqueId,
|
|
@@ -8306,7 +8350,7 @@ function CharCounter(props) {
|
|
|
8306
8350
|
typographyType: "bodyShortXsmall",
|
|
8307
8351
|
color: "text-subtle",
|
|
8308
8352
|
children: [
|
|
8309
|
-
/* @__PURE__ */
|
|
8353
|
+
/* @__PURE__ */ jsxs99("span", { "aria-hidden": true, children: [
|
|
8310
8354
|
current,
|
|
8311
8355
|
"/",
|
|
8312
8356
|
max
|
|
@@ -8331,7 +8375,7 @@ var texts12 = createTexts({
|
|
|
8331
8375
|
});
|
|
8332
8376
|
|
|
8333
8377
|
// src/components/TextArea/TextArea.tsx
|
|
8334
|
-
import { jsx as jsx271, jsxs as
|
|
8378
|
+
import { jsx as jsx271, jsxs as jsxs100 } from "react/jsx-runtime";
|
|
8335
8379
|
var TextArea = ({
|
|
8336
8380
|
id,
|
|
8337
8381
|
value,
|
|
@@ -8380,7 +8424,7 @@ var TextArea = ({
|
|
|
8380
8424
|
);
|
|
8381
8425
|
const showRequiredStyling = required || !!ariaRequired;
|
|
8382
8426
|
const inputWidth = getInputWidth(width);
|
|
8383
|
-
return /* @__PURE__ */
|
|
8427
|
+
return /* @__PURE__ */ jsxs100("div", { className: cn(className, Input_default.container), style: { ...style }, children: [
|
|
8384
8428
|
renderLabel({ label, htmlFor: uniqueId, readOnly, showRequiredStyling }),
|
|
8385
8429
|
/* @__PURE__ */ jsx271(
|
|
8386
8430
|
Box,
|
|
@@ -8415,7 +8459,7 @@ var TextArea = ({
|
|
|
8415
8459
|
...rest
|
|
8416
8460
|
}
|
|
8417
8461
|
),
|
|
8418
|
-
/* @__PURE__ */
|
|
8462
|
+
/* @__PURE__ */ jsxs100(
|
|
8419
8463
|
Box,
|
|
8420
8464
|
{
|
|
8421
8465
|
display: "flex",
|
|
@@ -8440,7 +8484,7 @@ TextArea.displayName = "TextArea";
|
|
|
8440
8484
|
var getIconSize = (layout) => layout === "vertical" ? "large" : "medium";
|
|
8441
8485
|
|
|
8442
8486
|
// src/components/Feedback/CommentComponent.tsx
|
|
8443
|
-
import { jsx as jsx272, jsxs as
|
|
8487
|
+
import { jsx as jsx272, jsxs as jsxs101 } from "react/jsx-runtime";
|
|
8444
8488
|
var CommentComponent = ({
|
|
8445
8489
|
layout,
|
|
8446
8490
|
rating,
|
|
@@ -8454,8 +8498,8 @@ var CommentComponent = ({
|
|
|
8454
8498
|
handleFeedbackTextChange
|
|
8455
8499
|
}) => {
|
|
8456
8500
|
const { t } = useTranslation();
|
|
8457
|
-
return /* @__PURE__ */
|
|
8458
|
-
/* @__PURE__ */
|
|
8501
|
+
return /* @__PURE__ */ jsxs101(VStack, { gap: "x1", children: [
|
|
8502
|
+
/* @__PURE__ */ jsxs101("span", { className: Feedback_default["rating-submitted-title"], children: [
|
|
8459
8503
|
/* @__PURE__ */ jsx272(
|
|
8460
8504
|
Icon,
|
|
8461
8505
|
{
|
|
@@ -8464,7 +8508,7 @@ var CommentComponent = ({
|
|
|
8464
8508
|
iconSize: getIconSize(layout)
|
|
8465
8509
|
}
|
|
8466
8510
|
),
|
|
8467
|
-
/* @__PURE__ */
|
|
8511
|
+
/* @__PURE__ */ jsxs101(Paragraph, { children: [
|
|
8468
8512
|
ratingSubmittedTitle,
|
|
8469
8513
|
" "
|
|
8470
8514
|
] })
|
|
@@ -8516,7 +8560,7 @@ var Tooltip_default = {
|
|
|
8516
8560
|
};
|
|
8517
8561
|
|
|
8518
8562
|
// src/components/Tooltip/Tooltip.tsx
|
|
8519
|
-
import { jsx as jsx273, jsxs as
|
|
8563
|
+
import { jsx as jsx273, jsxs as jsxs102 } from "react/jsx-runtime";
|
|
8520
8564
|
var Tooltip = ({
|
|
8521
8565
|
text,
|
|
8522
8566
|
placement = "bottom",
|
|
@@ -8607,7 +8651,7 @@ var Tooltip = ({
|
|
|
8607
8651
|
);
|
|
8608
8652
|
const openCn = keepMounted && open && inView || isTransientlyMounted ? "open" : "closed";
|
|
8609
8653
|
const ariaHidden = keepMounted ? !open : void 0;
|
|
8610
|
-
return /* @__PURE__ */
|
|
8654
|
+
return /* @__PURE__ */ jsxs102(
|
|
8611
8655
|
Box,
|
|
8612
8656
|
{
|
|
8613
8657
|
...getBaseHTMLProps(id, className, style, htmlProps, rest),
|
|
@@ -8645,7 +8689,7 @@ var Tooltip = ({
|
|
|
8645
8689
|
Tooltip.displayName = "Tooltip";
|
|
8646
8690
|
|
|
8647
8691
|
// src/components/Feedback/RatingComponent.tsx
|
|
8648
|
-
import { jsx as jsx274, jsxs as
|
|
8692
|
+
import { jsx as jsx274, jsxs as jsxs103 } from "react/jsx-runtime";
|
|
8649
8693
|
var RatingComponent = ({
|
|
8650
8694
|
layout,
|
|
8651
8695
|
ratingLabel,
|
|
@@ -8665,7 +8709,7 @@ var RatingComponent = ({
|
|
|
8665
8709
|
color: "icon-medium"
|
|
8666
8710
|
}
|
|
8667
8711
|
);
|
|
8668
|
-
return /* @__PURE__ */
|
|
8712
|
+
return /* @__PURE__ */ jsxs103(
|
|
8669
8713
|
"div",
|
|
8670
8714
|
{
|
|
8671
8715
|
className: cn(
|
|
@@ -8674,7 +8718,7 @@ var RatingComponent = ({
|
|
|
8674
8718
|
),
|
|
8675
8719
|
children: [
|
|
8676
8720
|
/* @__PURE__ */ jsx274("h2", { className: typographyStyles_default["label-medium"], children: ratingLabel }),
|
|
8677
|
-
loading ? /* @__PURE__ */ jsx274(Spinner, { tooltip: t(texts14.uploadingFeedback) }) : /* @__PURE__ */
|
|
8721
|
+
loading ? /* @__PURE__ */ jsx274(Spinner, { tooltip: t(texts14.uploadingFeedback) }) : /* @__PURE__ */ jsxs103(HStack, { gap: "x1", children: [
|
|
8678
8722
|
/* @__PURE__ */ jsx274(Tooltip, { text: thumbUpTooltip, children: button("positive", layout, thumbUpTooltip) }),
|
|
8679
8723
|
/* @__PURE__ */ jsx274(Tooltip, { text: thumbDownTooltip, children: button("negative", layout, thumbDownTooltip) })
|
|
8680
8724
|
] })
|
|
@@ -8897,7 +8941,7 @@ var FileUploader_default = {
|
|
|
8897
8941
|
};
|
|
8898
8942
|
|
|
8899
8943
|
// src/components/FileUploader/File.tsx
|
|
8900
|
-
import { Fragment as Fragment8, jsx as jsx279, jsxs as
|
|
8944
|
+
import { Fragment as Fragment8, jsx as jsx279, jsxs as jsxs104 } from "react/jsx-runtime";
|
|
8901
8945
|
var File2 = (props) => {
|
|
8902
8946
|
const { t } = useTranslation();
|
|
8903
8947
|
const {
|
|
@@ -8971,8 +9015,8 @@ var File2 = (props) => {
|
|
|
8971
9015
|
);
|
|
8972
9016
|
break;
|
|
8973
9017
|
}
|
|
8974
|
-
return /* @__PURE__ */
|
|
8975
|
-
/* @__PURE__ */
|
|
9018
|
+
return /* @__PURE__ */ jsxs104("li", { children: [
|
|
9019
|
+
/* @__PURE__ */ jsxs104(
|
|
8976
9020
|
Paper,
|
|
8977
9021
|
{
|
|
8978
9022
|
marginBlock: "x0.5 0",
|
|
@@ -8981,7 +9025,7 @@ var File2 = (props) => {
|
|
|
8981
9025
|
background: inactive ? "surface-field-disabled" : "surface-subtle",
|
|
8982
9026
|
className: cn(hasError && FileUploader_default["file--invalid"]),
|
|
8983
9027
|
children: [
|
|
8984
|
-
/* @__PURE__ */
|
|
9028
|
+
/* @__PURE__ */ jsxs104(HStack, { alignItems: "center", justifyContent: "space-between", gap: "x0.75", children: [
|
|
8985
9029
|
/* @__PURE__ */ jsx279(
|
|
8986
9030
|
Typography,
|
|
8987
9031
|
{
|
|
@@ -8991,7 +9035,7 @@ var File2 = (props) => {
|
|
|
8991
9035
|
children: fileUrl ? /* @__PURE__ */ jsx279(Link, { href: fileUrl, target: "_blank", children: stateFile.name }) : stateFile.name
|
|
8992
9036
|
}
|
|
8993
9037
|
),
|
|
8994
|
-
!inactive && /* @__PURE__ */
|
|
9038
|
+
!inactive && /* @__PURE__ */ jsxs104(Fragment8, { children: [
|
|
8995
9039
|
statusIndicator,
|
|
8996
9040
|
/* @__PURE__ */ jsx279(
|
|
8997
9041
|
Button,
|
|
@@ -9394,7 +9438,7 @@ var texts17 = createTexts({
|
|
|
9394
9438
|
});
|
|
9395
9439
|
|
|
9396
9440
|
// src/components/FileUploader/FileUploader.tsx
|
|
9397
|
-
import { jsx as jsx280, jsxs as
|
|
9441
|
+
import { jsx as jsx280, jsxs as jsxs105 } from "react/jsx-runtime";
|
|
9398
9442
|
var FileUploader = (props) => {
|
|
9399
9443
|
const {
|
|
9400
9444
|
id,
|
|
@@ -9518,7 +9562,7 @@ var FileUploader = (props) => {
|
|
|
9518
9562
|
"aria-describedby": fileListId
|
|
9519
9563
|
}
|
|
9520
9564
|
);
|
|
9521
|
-
return /* @__PURE__ */
|
|
9565
|
+
return /* @__PURE__ */ jsxs105(
|
|
9522
9566
|
Box,
|
|
9523
9567
|
{
|
|
9524
9568
|
id: uniqueId,
|
|
@@ -9535,7 +9579,7 @@ var FileUploader = (props) => {
|
|
|
9535
9579
|
afterLabelContent
|
|
9536
9580
|
}),
|
|
9537
9581
|
renderInputMessage({ tip, tipId }),
|
|
9538
|
-
inactive ? input : withDragAndDrop ? /* @__PURE__ */
|
|
9582
|
+
inactive ? input : withDragAndDrop ? /* @__PURE__ */ jsxs105(
|
|
9539
9583
|
VStack,
|
|
9540
9584
|
{
|
|
9541
9585
|
gap: "x1",
|
|
@@ -9553,12 +9597,12 @@ var FileUploader = (props) => {
|
|
|
9553
9597
|
button
|
|
9554
9598
|
]
|
|
9555
9599
|
}
|
|
9556
|
-
) : /* @__PURE__ */
|
|
9600
|
+
) : /* @__PURE__ */ jsxs105(Box, { padding: "x 0", children: [
|
|
9557
9601
|
input,
|
|
9558
9602
|
button
|
|
9559
9603
|
] }),
|
|
9560
9604
|
/* @__PURE__ */ jsx280(ErrorList, { errors: rootErrorsList }),
|
|
9561
|
-
!hideFileList && /* @__PURE__ */
|
|
9605
|
+
!hideFileList && /* @__PURE__ */ jsxs105(
|
|
9562
9606
|
"div",
|
|
9563
9607
|
{
|
|
9564
9608
|
id: fileListId,
|
|
@@ -9718,7 +9762,7 @@ var FormSummary_default = {
|
|
|
9718
9762
|
};
|
|
9719
9763
|
|
|
9720
9764
|
// src/components/FormSummary/FormSummary.components.tsx
|
|
9721
|
-
import { jsx as jsx290, jsxs as
|
|
9765
|
+
import { jsx as jsx290, jsxs as jsxs106 } from "react/jsx-runtime";
|
|
9722
9766
|
function FormSummaryHeader({ ...props }) {
|
|
9723
9767
|
return /* @__PURE__ */ jsx290(
|
|
9724
9768
|
HStack,
|
|
@@ -9766,10 +9810,10 @@ function FormSummaryValue({
|
|
|
9766
9810
|
}
|
|
9767
9811
|
function FormSummaryEmptyValue() {
|
|
9768
9812
|
const { t } = useTranslation();
|
|
9769
|
-
return /* @__PURE__ */
|
|
9813
|
+
return /* @__PURE__ */ jsxs106("span", { children: [
|
|
9770
9814
|
/* @__PURE__ */ jsx290("span", { "aria-hidden": true, children: "-" }),
|
|
9771
9815
|
" ",
|
|
9772
|
-
/* @__PURE__ */
|
|
9816
|
+
/* @__PURE__ */ jsxs106(VisuallyHidden, { children: [
|
|
9773
9817
|
" ",
|
|
9774
9818
|
t(texts19.noValue),
|
|
9775
9819
|
" "
|
|
@@ -9804,7 +9848,7 @@ var GlobalMessage_default = {
|
|
|
9804
9848
|
};
|
|
9805
9849
|
|
|
9806
9850
|
// src/components/GlobalMessage/GlobalMessage.tsx
|
|
9807
|
-
import { jsx as jsx291, jsxs as
|
|
9851
|
+
import { jsx as jsx291, jsxs as jsxs107 } from "react/jsx-runtime";
|
|
9808
9852
|
var G_MESSAGE_PURPOSES = createPurposes("info", "warning", "danger");
|
|
9809
9853
|
var icons = {
|
|
9810
9854
|
info: InfoIcon,
|
|
@@ -9824,7 +9868,7 @@ var GlobalMessage = ({
|
|
|
9824
9868
|
}) => {
|
|
9825
9869
|
const { t } = useTranslation();
|
|
9826
9870
|
const [isClosed, setClosed] = useState18(false);
|
|
9827
|
-
return !isClosed ? /* @__PURE__ */
|
|
9871
|
+
return !isClosed ? /* @__PURE__ */ jsxs107(
|
|
9828
9872
|
"div",
|
|
9829
9873
|
{
|
|
9830
9874
|
...getBaseHTMLProps(
|
|
@@ -9840,7 +9884,7 @@ var GlobalMessage = ({
|
|
|
9840
9884
|
rest
|
|
9841
9885
|
),
|
|
9842
9886
|
children: [
|
|
9843
|
-
/* @__PURE__ */
|
|
9887
|
+
/* @__PURE__ */ jsxs107(
|
|
9844
9888
|
"div",
|
|
9845
9889
|
{
|
|
9846
9890
|
className: cn(GlobalMessage_default.content, closable && GlobalMessage_default["content--closable"]),
|
|
@@ -9956,7 +10000,7 @@ var InlineEditContextProvider = (props) => {
|
|
|
9956
10000
|
};
|
|
9957
10001
|
useOnKeyDown(["Enter"], () => onExitHandler());
|
|
9958
10002
|
useOnKeyDown(["Escape"], () => onExitHandler());
|
|
9959
|
-
useOnClickOutside(inputRef
|
|
10003
|
+
useOnClickOutside(inputRef, () => onExitHandler());
|
|
9960
10004
|
return /* @__PURE__ */ jsx293(
|
|
9961
10005
|
InlineEditContext,
|
|
9962
10006
|
{
|
|
@@ -9992,10 +10036,10 @@ var InlineEdit_default = {
|
|
|
9992
10036
|
};
|
|
9993
10037
|
|
|
9994
10038
|
// src/components/InlineEdit/InlineEdit.utils.tsx
|
|
9995
|
-
import { jsxs as
|
|
10039
|
+
import { jsxs as jsxs108 } from "react/jsx-runtime";
|
|
9996
10040
|
var inlineEditVisuallyHidden = (id, clearable) => {
|
|
9997
10041
|
const { t } = useTranslation();
|
|
9998
|
-
return /* @__PURE__ */
|
|
10042
|
+
return /* @__PURE__ */ jsxs108(VisuallyHidden, { id, children: [
|
|
9999
10043
|
t(texts20.inlineEditInfo),
|
|
10000
10044
|
" ",
|
|
10001
10045
|
!clearable && t(texts20.notClearable)
|
|
@@ -10072,7 +10116,7 @@ function createClearChangeEvent(elementId) {
|
|
|
10072
10116
|
}
|
|
10073
10117
|
|
|
10074
10118
|
// src/components/InlineEdit/InlineField.tsx
|
|
10075
|
-
import { Fragment as Fragment9, jsx as jsx294, jsxs as
|
|
10119
|
+
import { Fragment as Fragment9, jsx as jsx294, jsxs as jsxs109 } from "react/jsx-runtime";
|
|
10076
10120
|
function InlineField(props) {
|
|
10077
10121
|
const {
|
|
10078
10122
|
elementType,
|
|
@@ -10153,7 +10197,7 @@ function InlineField(props) {
|
|
|
10153
10197
|
}
|
|
10154
10198
|
);
|
|
10155
10199
|
case "select":
|
|
10156
|
-
return /* @__PURE__ */
|
|
10200
|
+
return /* @__PURE__ */ jsxs109(Fragment9, { children: [
|
|
10157
10201
|
/* @__PURE__ */ jsx294(
|
|
10158
10202
|
"select",
|
|
10159
10203
|
{
|
|
@@ -10178,8 +10222,8 @@ function InlineField(props) {
|
|
|
10178
10222
|
return null;
|
|
10179
10223
|
}
|
|
10180
10224
|
};
|
|
10181
|
-
return /* @__PURE__ */
|
|
10182
|
-
/* @__PURE__ */
|
|
10225
|
+
return /* @__PURE__ */ jsxs109(Box, { position: "relative", width, children: [
|
|
10226
|
+
/* @__PURE__ */ jsxs109("div", { className: Input_default["input-group"], children: [
|
|
10183
10227
|
!isEditing && !hideIcon && makeIcon(EditIcon, InlineEdit_default["edit-icon"]),
|
|
10184
10228
|
renderElement()
|
|
10185
10229
|
] }),
|
|
@@ -10310,7 +10354,7 @@ var NavigationItem = ({ isCurrent, ...rest }) => /* @__PURE__ */ jsx298(
|
|
|
10310
10354
|
);
|
|
10311
10355
|
|
|
10312
10356
|
// src/components/InternalHeader/InternalHeader.tsx
|
|
10313
|
-
import { jsx as jsx299, jsxs as
|
|
10357
|
+
import { jsx as jsx299, jsxs as jsxs110 } from "react/jsx-runtime";
|
|
10314
10358
|
import { createElement as createElement2 } from "react";
|
|
10315
10359
|
var InternalHeader = (props) => {
|
|
10316
10360
|
const {
|
|
@@ -10364,7 +10408,7 @@ var InternalHeader = (props) => {
|
|
|
10364
10408
|
) }) : null;
|
|
10365
10409
|
const hasContextMenu = hasContextMenuElements || !!user || hasNavInContextMenu;
|
|
10366
10410
|
const hasContextMenuLargeScreen = hasContextMenuElements || !!user;
|
|
10367
|
-
return /* @__PURE__ */
|
|
10411
|
+
return /* @__PURE__ */ jsxs110(
|
|
10368
10412
|
Box,
|
|
10369
10413
|
{
|
|
10370
10414
|
display: "flex",
|
|
@@ -10400,7 +10444,7 @@ var InternalHeader = (props) => {
|
|
|
10400
10444
|
{
|
|
10401
10445
|
showBelow: !hasContextMenuLargeScreen && hasSmallScreenBreakpoint ? smallScreenBreakpoint : void 0,
|
|
10402
10446
|
className: cn(InternalHeader_default["context-menu-group"]),
|
|
10403
|
-
children: /* @__PURE__ */
|
|
10447
|
+
children: /* @__PURE__ */ jsxs110(OverflowMenuGroup, { children: [
|
|
10404
10448
|
/* @__PURE__ */ jsx299(
|
|
10405
10449
|
Button,
|
|
10406
10450
|
{
|
|
@@ -10409,7 +10453,7 @@ var InternalHeader = (props) => {
|
|
|
10409
10453
|
"aria-label": t(texts21.openMenu)
|
|
10410
10454
|
}
|
|
10411
10455
|
),
|
|
10412
|
-
/* @__PURE__ */
|
|
10456
|
+
/* @__PURE__ */ jsxs110(OverflowMenu, { className: InternalHeader_default["context-menu"], children: [
|
|
10413
10457
|
user && /* @__PURE__ */ jsx299(OverflowMenuList, { children: user.href ? /* @__PURE__ */ jsx299(OverflowMenuLink, { icon: PersonIcon, ...user }) : /* @__PURE__ */ jsx299(OverflowMenuSpan, { icon: PersonIcon, ...user }) }),
|
|
10414
10458
|
hasNavInContextMenu && /* @__PURE__ */ jsx299(
|
|
10415
10459
|
ShowHide,
|
|
@@ -10490,7 +10534,7 @@ var LocalMessage_default = {
|
|
|
10490
10534
|
};
|
|
10491
10535
|
|
|
10492
10536
|
// src/components/LocalMessage/LocalMessage.tsx
|
|
10493
|
-
import { Fragment as Fragment10, jsx as jsx300, jsxs as
|
|
10537
|
+
import { Fragment as Fragment10, jsx as jsx300, jsxs as jsxs111 } from "react/jsx-runtime";
|
|
10494
10538
|
var L_MESSAGE_PURPOSES = createPurposes(
|
|
10495
10539
|
"info",
|
|
10496
10540
|
"success",
|
|
@@ -10523,7 +10567,7 @@ var LocalMessage = ({
|
|
|
10523
10567
|
if (isClosed) {
|
|
10524
10568
|
return /* @__PURE__ */ jsx300(Fragment10, {});
|
|
10525
10569
|
}
|
|
10526
|
-
return /* @__PURE__ */
|
|
10570
|
+
return /* @__PURE__ */ jsxs111(
|
|
10527
10571
|
Box,
|
|
10528
10572
|
{
|
|
10529
10573
|
...getBaseHTMLProps(
|
|
@@ -10594,7 +10638,7 @@ var Modal_default = {
|
|
|
10594
10638
|
};
|
|
10595
10639
|
|
|
10596
10640
|
// src/components/Modal/Modal.tsx
|
|
10597
|
-
import { jsx as jsx301, jsxs as
|
|
10641
|
+
import { jsx as jsx301, jsxs as jsxs112 } from "react/jsx-runtime";
|
|
10598
10642
|
var Modal = ({
|
|
10599
10643
|
isOpen = false,
|
|
10600
10644
|
parentElement,
|
|
@@ -10653,7 +10697,7 @@ var Modal = ({
|
|
|
10653
10697
|
isMounted: isOpen && hasTransitionedIn,
|
|
10654
10698
|
ref: backdropRef,
|
|
10655
10699
|
onClick: onBackdropClick,
|
|
10656
|
-
children: /* @__PURE__ */
|
|
10700
|
+
children: /* @__PURE__ */ jsxs112(
|
|
10657
10701
|
Paper,
|
|
10658
10702
|
{
|
|
10659
10703
|
display: "flex",
|
|
@@ -10681,7 +10725,7 @@ var Modal = ({
|
|
|
10681
10725
|
id: modalId,
|
|
10682
10726
|
elevation: "large",
|
|
10683
10727
|
children: [
|
|
10684
|
-
/* @__PURE__ */
|
|
10728
|
+
/* @__PURE__ */ jsxs112(
|
|
10685
10729
|
HStack,
|
|
10686
10730
|
{
|
|
10687
10731
|
paddingBlock: "0 x0.75",
|
|
@@ -10756,6 +10800,189 @@ import { jsx as jsx303 } from "react/jsx-runtime";
|
|
|
10756
10800
|
var ModalActions = (props) => /* @__PURE__ */ jsx303(Box, { display: "flex", flexWrap: "wrap", gap: "x1", ...props });
|
|
10757
10801
|
ModalActions.displayName = "ModalActions";
|
|
10758
10802
|
|
|
10803
|
+
// src/components/NewsPopover/NewsPopover.module.css
|
|
10804
|
+
var NewsPopover_default = {
|
|
10805
|
+
"close-button": "NewsPopover_close-button",
|
|
10806
|
+
"img-wrapper": "NewsPopover_img-wrapper"
|
|
10807
|
+
};
|
|
10808
|
+
|
|
10809
|
+
// src/components/NewsPopover/NewsPopover.tsx
|
|
10810
|
+
import { Fragment as Fragment11, jsx as jsx304, jsxs as jsxs113 } from "react/jsx-runtime";
|
|
10811
|
+
var NewsPopover = ({
|
|
10812
|
+
id,
|
|
10813
|
+
className,
|
|
10814
|
+
style,
|
|
10815
|
+
htmlProps,
|
|
10816
|
+
header,
|
|
10817
|
+
news,
|
|
10818
|
+
defaultActiveSlide = 0,
|
|
10819
|
+
activeSlide: activeSlideProp,
|
|
10820
|
+
setActiveSlide: setActiveSlideProp,
|
|
10821
|
+
isOpen: isOpenProp,
|
|
10822
|
+
isInitiallyOpen = true,
|
|
10823
|
+
setIsOpen: setIsOpenProp,
|
|
10824
|
+
smallScreenBreakpoint = "xs",
|
|
10825
|
+
closeOnClickOutside = true,
|
|
10826
|
+
ref,
|
|
10827
|
+
...rest
|
|
10828
|
+
}) => {
|
|
10829
|
+
if (news.length === 0) {
|
|
10830
|
+
throw new Error('NewsPopover must have at least one item in "news" prop');
|
|
10831
|
+
}
|
|
10832
|
+
if (header.length > 35) {
|
|
10833
|
+
console.warn(
|
|
10834
|
+
"[NewsPopover] header exceeds recommended length (about 35 characters). This may cause wrapping or layout issues depending on theme."
|
|
10835
|
+
);
|
|
10836
|
+
}
|
|
10837
|
+
news.forEach((n, i) => {
|
|
10838
|
+
if (n.heading.length > 35) {
|
|
10839
|
+
console.warn(
|
|
10840
|
+
`[NewsPopover] news[${i}].heading exceeds recommended length (about 35 characters). This may cause wrapping or layout issues depending on theme.`
|
|
10841
|
+
);
|
|
10842
|
+
}
|
|
10843
|
+
if (n.text.length > 135) {
|
|
10844
|
+
console.warn(
|
|
10845
|
+
`[NewsPopover] news[${i}].text exceeds recommended length (about 135 characters). This may cause wrapping or layout issues depending on theme.`
|
|
10846
|
+
);
|
|
10847
|
+
}
|
|
10848
|
+
});
|
|
10849
|
+
const { t } = useTranslation();
|
|
10850
|
+
const [activeSlide, setActiveSlide] = useControllableState({
|
|
10851
|
+
value: activeSlideProp,
|
|
10852
|
+
defaultValue: defaultActiveSlide,
|
|
10853
|
+
onChange: setActiveSlideProp
|
|
10854
|
+
});
|
|
10855
|
+
const [isOpen, setIsOpen] = useControllableState({
|
|
10856
|
+
onChange: setIsOpenProp,
|
|
10857
|
+
value: isOpenProp,
|
|
10858
|
+
defaultValue: isInitiallyOpen
|
|
10859
|
+
});
|
|
10860
|
+
function handleSlideChange(slide) {
|
|
10861
|
+
setActiveSlide(slide);
|
|
10862
|
+
}
|
|
10863
|
+
const popoverRef = useFocusTrap(true);
|
|
10864
|
+
const combinedRef = useCombinedRef(ref, popoverRef);
|
|
10865
|
+
useOnClickOutside(popoverRef, () => {
|
|
10866
|
+
if (closeOnClickOutside && isOpen) {
|
|
10867
|
+
setIsOpen(false);
|
|
10868
|
+
}
|
|
10869
|
+
});
|
|
10870
|
+
useOnKeyDown("Escape", () => setIsOpen(false));
|
|
10871
|
+
const isList = news.length > 1;
|
|
10872
|
+
const slideContent = (el, i) => /* @__PURE__ */ jsxs113(Fragment11, { children: [
|
|
10873
|
+
/* @__PURE__ */ jsxs113(
|
|
10874
|
+
Paper,
|
|
10875
|
+
{
|
|
10876
|
+
background: "brand-secondary-subtle",
|
|
10877
|
+
width: "100%",
|
|
10878
|
+
borderRadius: "0",
|
|
10879
|
+
display: "grid",
|
|
10880
|
+
placeItems: "center",
|
|
10881
|
+
paddingBlock: "x0.5",
|
|
10882
|
+
children: [
|
|
10883
|
+
i !== void 0 && /* @__PURE__ */ jsx304(VisuallyHidden, { children: t(commonTexts.pageOf(i + 1, news.length)) }),
|
|
10884
|
+
/* @__PURE__ */ jsx304(Box, { height: "113px", maxWidth: "380px", className: NewsPopover_default["img-wrapper"], children: el.image })
|
|
10885
|
+
]
|
|
10886
|
+
}
|
|
10887
|
+
),
|
|
10888
|
+
/* @__PURE__ */ jsxs113(VStack, { gap: "x0.75", alignItems: "center", margin: "x0.75 x0.75 x1 x0.75", children: [
|
|
10889
|
+
/* @__PURE__ */ jsx304(Heading, { level: 3, children: el.heading }),
|
|
10890
|
+
/* @__PURE__ */ jsx304(Paragraph, { textAlign: "center", children: el.text })
|
|
10891
|
+
] })
|
|
10892
|
+
] });
|
|
10893
|
+
const content = isList ? /* @__PURE__ */ jsx304(Box, { as: StylelessList, width: "100%", children: news.map((el, i) => {
|
|
10894
|
+
const active = activeSlide === i;
|
|
10895
|
+
return /* @__PURE__ */ jsx304("li", { "aria-current": active, hidden: !active, children: slideContent(el, i) }, i);
|
|
10896
|
+
}) }) : /* @__PURE__ */ jsx304(Box, { width: "100%", children: slideContent(news[0]) });
|
|
10897
|
+
function handleNext() {
|
|
10898
|
+
if (activeSlide === news.length - 1) handleSlideChange(0);
|
|
10899
|
+
else handleSlideChange(activeSlide + 1);
|
|
10900
|
+
}
|
|
10901
|
+
function handlePrevious() {
|
|
10902
|
+
if (activeSlide === 0) handleSlideChange(news.length - 1);
|
|
10903
|
+
else handleSlideChange(activeSlide - 1);
|
|
10904
|
+
}
|
|
10905
|
+
const headerId = "dds-news-popover-header";
|
|
10906
|
+
return isOpen ? /* @__PURE__ */ jsxs113(
|
|
10907
|
+
Paper,
|
|
10908
|
+
{
|
|
10909
|
+
...getBaseHTMLProps(
|
|
10910
|
+
id,
|
|
10911
|
+
cn(className, focusable),
|
|
10912
|
+
style,
|
|
10913
|
+
htmlProps,
|
|
10914
|
+
rest
|
|
10915
|
+
),
|
|
10916
|
+
ref: combinedRef,
|
|
10917
|
+
position: "relative",
|
|
10918
|
+
border: "border-subtle",
|
|
10919
|
+
role: "dialog",
|
|
10920
|
+
"aria-labelledby": headerId,
|
|
10921
|
+
height: isList ? "368px" : "327px",
|
|
10922
|
+
width: styleUpToBreakpoint("100%", smallScreenBreakpoint, "405px"),
|
|
10923
|
+
children: [
|
|
10924
|
+
/* @__PURE__ */ jsx304(HStack, { margin: "x0.75 x3 x0.75 x0.75", children: /* @__PURE__ */ jsx304(Heading, { id: headerId, level: 2, typographyType: "headingSmall", children: header }) }),
|
|
10925
|
+
/* @__PURE__ */ jsxs113(
|
|
10926
|
+
VStack,
|
|
10927
|
+
{
|
|
10928
|
+
alignItems: "center",
|
|
10929
|
+
height: isList ? "299px" : void 0,
|
|
10930
|
+
"aria-live": "polite",
|
|
10931
|
+
children: [
|
|
10932
|
+
content,
|
|
10933
|
+
isList && /* @__PURE__ */ jsxs113(HStack, { alignItems: "center", gap: "x1", marginBlock: "auto 0", children: [
|
|
10934
|
+
/* @__PURE__ */ jsx304(
|
|
10935
|
+
Button,
|
|
10936
|
+
{
|
|
10937
|
+
"aria-label": t(commonTexts.previousPage),
|
|
10938
|
+
size: "small",
|
|
10939
|
+
purpose: "tertiary",
|
|
10940
|
+
icon: ChevronLeftIcon,
|
|
10941
|
+
onClick: () => handlePrevious()
|
|
10942
|
+
}
|
|
10943
|
+
),
|
|
10944
|
+
news.map((slide, i) => {
|
|
10945
|
+
const active = activeSlide === i;
|
|
10946
|
+
return /* @__PURE__ */ jsx304(
|
|
10947
|
+
Icon,
|
|
10948
|
+
{
|
|
10949
|
+
iconSize: "small",
|
|
10950
|
+
icon: CircleFilledIcon,
|
|
10951
|
+
color: active ? "brand-tertiary-default" : "brand-tertiary-subtle"
|
|
10952
|
+
}
|
|
10953
|
+
);
|
|
10954
|
+
}),
|
|
10955
|
+
/* @__PURE__ */ jsx304(
|
|
10956
|
+
Button,
|
|
10957
|
+
{
|
|
10958
|
+
"aria-label": t(commonTexts.nextPage),
|
|
10959
|
+
size: "small",
|
|
10960
|
+
purpose: "tertiary",
|
|
10961
|
+
icon: ChevronRightIcon,
|
|
10962
|
+
onClick: () => handleNext()
|
|
10963
|
+
}
|
|
10964
|
+
)
|
|
10965
|
+
] }),
|
|
10966
|
+
/* @__PURE__ */ jsx304(
|
|
10967
|
+
Button,
|
|
10968
|
+
{
|
|
10969
|
+
icon: CloseIcon,
|
|
10970
|
+
purpose: "tertiary",
|
|
10971
|
+
size: "small",
|
|
10972
|
+
"aria-label": t(commonTexts.close),
|
|
10973
|
+
onClick: () => setIsOpen(false),
|
|
10974
|
+
className: NewsPopover_default["close-button"]
|
|
10975
|
+
}
|
|
10976
|
+
)
|
|
10977
|
+
]
|
|
10978
|
+
}
|
|
10979
|
+
)
|
|
10980
|
+
]
|
|
10981
|
+
}
|
|
10982
|
+
) : null;
|
|
10983
|
+
};
|
|
10984
|
+
NewsPopover.displayName = "NewsPopover";
|
|
10985
|
+
|
|
10759
10986
|
// src/components/Pagination/Pagination.tsx
|
|
10760
10987
|
import { useState as useState23 } from "react";
|
|
10761
10988
|
|
|
@@ -11067,7 +11294,7 @@ import React from "react";
|
|
|
11067
11294
|
import {
|
|
11068
11295
|
components
|
|
11069
11296
|
} from "react-select";
|
|
11070
|
-
import { jsx as
|
|
11297
|
+
import { jsx as jsx305, jsxs as jsxs114 } from "react/jsx-runtime";
|
|
11071
11298
|
var {
|
|
11072
11299
|
Option,
|
|
11073
11300
|
NoOptionsMessage,
|
|
@@ -11080,25 +11307,25 @@ var {
|
|
|
11080
11307
|
} = components;
|
|
11081
11308
|
var DDSOption = ({
|
|
11082
11309
|
...props
|
|
11083
|
-
}) => /* @__PURE__ */
|
|
11084
|
-
props.isSelected && /* @__PURE__ */
|
|
11310
|
+
}) => /* @__PURE__ */ jsxs114(Option, { ...props, children: [
|
|
11311
|
+
props.isSelected && /* @__PURE__ */ jsx305(Icon, { icon: CheckIcon, iconSize: "small" }),
|
|
11085
11312
|
props.children
|
|
11086
11313
|
] });
|
|
11087
|
-
var CustomOption = (props) => /* @__PURE__ */
|
|
11314
|
+
var CustomOption = (props) => /* @__PURE__ */ jsx305(Option, { ...props, children: React.createElement(props.customElement, props) });
|
|
11088
11315
|
var CustomSingleValue = ({
|
|
11089
11316
|
id,
|
|
11090
11317
|
Element,
|
|
11091
11318
|
...props
|
|
11092
|
-
}) => /* @__PURE__ */
|
|
11093
|
-
var DDSNoOptionsMessage = (props) => /* @__PURE__ */
|
|
11319
|
+
}) => /* @__PURE__ */ jsx305(SingleValue, { ...props, children: /* @__PURE__ */ jsx305("div", { id, className: Select_default["inner-single-value"], children: Element ? /* @__PURE__ */ jsx305(Element, { ...props }) : props.children }) });
|
|
11320
|
+
var DDSNoOptionsMessage = (props) => /* @__PURE__ */ jsx305(NoOptionsMessage, { ...props, children: "Ingen treff" });
|
|
11094
11321
|
var DDSClearIndicator = ({
|
|
11095
11322
|
...props
|
|
11096
|
-
}) => /* @__PURE__ */
|
|
11097
|
-
var DDSMultiValueRemove = (props) => /* @__PURE__ */
|
|
11323
|
+
}) => /* @__PURE__ */ jsx305(ClearIndicator, { ...props, children: /* @__PURE__ */ jsx305(Icon, { icon: CloseSmallIcon, iconSize: "component" }) });
|
|
11324
|
+
var DDSMultiValueRemove = (props) => /* @__PURE__ */ jsx305(MultiValueRemove, { ...props, children: /* @__PURE__ */ jsx305(Icon, { icon: CloseSmallIcon, iconSize: "component" }) });
|
|
11098
11325
|
var DDSDropdownIndicator = (props) => {
|
|
11099
11326
|
const { className, componentSize, ...rest } = props;
|
|
11100
11327
|
const iconState = rest.selectProps.menuIsOpen ? "up" : "down";
|
|
11101
|
-
return /* @__PURE__ */
|
|
11328
|
+
return /* @__PURE__ */ jsx305(
|
|
11102
11329
|
DropdownIndicator,
|
|
11103
11330
|
{
|
|
11104
11331
|
...rest,
|
|
@@ -11107,7 +11334,7 @@ var DDSDropdownIndicator = (props) => {
|
|
|
11107
11334
|
Select_default["dropdown-indicator"],
|
|
11108
11335
|
Input_default[`input-with-el-right--${componentSize}`]
|
|
11109
11336
|
),
|
|
11110
|
-
children: /* @__PURE__ */
|
|
11337
|
+
children: /* @__PURE__ */ jsx305(
|
|
11111
11338
|
Icon,
|
|
11112
11339
|
{
|
|
11113
11340
|
icon: AnimatedChevronUpDownIcon,
|
|
@@ -11122,7 +11349,7 @@ var DDSInput = ({
|
|
|
11122
11349
|
ariaInvalid,
|
|
11123
11350
|
ariaDescribedby,
|
|
11124
11351
|
...props
|
|
11125
|
-
}) => /* @__PURE__ */
|
|
11352
|
+
}) => /* @__PURE__ */ jsx305(
|
|
11126
11353
|
Input2,
|
|
11127
11354
|
{
|
|
11128
11355
|
...props,
|
|
@@ -11142,7 +11369,7 @@ function DDSControl(props) {
|
|
|
11142
11369
|
...rest
|
|
11143
11370
|
} = props;
|
|
11144
11371
|
const hasIcon = !!icon;
|
|
11145
|
-
return /* @__PURE__ */
|
|
11372
|
+
return /* @__PURE__ */ jsxs114(
|
|
11146
11373
|
Control,
|
|
11147
11374
|
{
|
|
11148
11375
|
...rest,
|
|
@@ -11159,7 +11386,7 @@ function DDSControl(props) {
|
|
|
11159
11386
|
hasIcon && Input_default[`input-with-icon--${componentSize}`]
|
|
11160
11387
|
),
|
|
11161
11388
|
children: [
|
|
11162
|
-
hasIcon && /* @__PURE__ */
|
|
11389
|
+
hasIcon && /* @__PURE__ */ jsx305(
|
|
11163
11390
|
Icon,
|
|
11164
11391
|
{
|
|
11165
11392
|
icon,
|
|
@@ -11177,7 +11404,7 @@ function DDSControl(props) {
|
|
|
11177
11404
|
}
|
|
11178
11405
|
|
|
11179
11406
|
// src/components/Select/Select.tsx
|
|
11180
|
-
import { jsx as
|
|
11407
|
+
import { jsx as jsx306, jsxs as jsxs115 } from "react/jsx-runtime";
|
|
11181
11408
|
function Select({
|
|
11182
11409
|
id,
|
|
11183
11410
|
label,
|
|
@@ -11228,7 +11455,7 @@ function Select({
|
|
|
11228
11455
|
componentSize === "xsmall" && "var(--dds-input-default-width-xsmall)"
|
|
11229
11456
|
);
|
|
11230
11457
|
const customInput = useCallback7(
|
|
11231
|
-
(props) => /* @__PURE__ */
|
|
11458
|
+
(props) => /* @__PURE__ */ jsx306(
|
|
11232
11459
|
DDSInput,
|
|
11233
11460
|
{
|
|
11234
11461
|
...props,
|
|
@@ -11246,7 +11473,7 @@ function Select({
|
|
|
11246
11473
|
[]
|
|
11247
11474
|
);
|
|
11248
11475
|
const customSingleValue = useCallback7(
|
|
11249
|
-
(props) => /* @__PURE__ */
|
|
11476
|
+
(props) => /* @__PURE__ */ jsx306(
|
|
11250
11477
|
CustomSingleValue,
|
|
11251
11478
|
{
|
|
11252
11479
|
...props,
|
|
@@ -11257,15 +11484,15 @@ function Select({
|
|
|
11257
11484
|
[]
|
|
11258
11485
|
);
|
|
11259
11486
|
const customClearIndicator = useCallback7(
|
|
11260
|
-
(props) => /* @__PURE__ */
|
|
11487
|
+
(props) => /* @__PURE__ */ jsx306(DDSClearIndicator, { ...props }),
|
|
11261
11488
|
[]
|
|
11262
11489
|
);
|
|
11263
11490
|
const customDropdownIndicator = useCallback7(
|
|
11264
|
-
(props) => /* @__PURE__ */
|
|
11491
|
+
(props) => /* @__PURE__ */ jsx306(DDSDropdownIndicator, { ...props, componentSize }),
|
|
11265
11492
|
[]
|
|
11266
11493
|
);
|
|
11267
11494
|
const customControl = useCallback7(
|
|
11268
|
-
(props) => /* @__PURE__ */
|
|
11495
|
+
(props) => /* @__PURE__ */ jsx306(
|
|
11269
11496
|
DDSControl,
|
|
11270
11497
|
{
|
|
11271
11498
|
...props,
|
|
@@ -11280,9 +11507,9 @@ function Select({
|
|
|
11280
11507
|
const customOptionComponent = useCallback7(
|
|
11281
11508
|
(props) => {
|
|
11282
11509
|
if (customOptionElement) {
|
|
11283
|
-
return /* @__PURE__ */
|
|
11510
|
+
return /* @__PURE__ */ jsx306(CustomOption, { ...props, customElement: customOptionElement });
|
|
11284
11511
|
} else {
|
|
11285
|
-
return /* @__PURE__ */
|
|
11512
|
+
return /* @__PURE__ */ jsx306(DDSOption, { ...props });
|
|
11286
11513
|
}
|
|
11287
11514
|
},
|
|
11288
11515
|
[customOptionElement, componentSize]
|
|
@@ -11323,7 +11550,7 @@ function Select({
|
|
|
11323
11550
|
openMenuOnClick: readOnly ? false : openMenuOnClick ? openMenuOnClick : void 0,
|
|
11324
11551
|
...rest
|
|
11325
11552
|
};
|
|
11326
|
-
return /* @__PURE__ */
|
|
11553
|
+
return /* @__PURE__ */ jsxs115(
|
|
11327
11554
|
Box,
|
|
11328
11555
|
{
|
|
11329
11556
|
width: inputWidth,
|
|
@@ -11344,7 +11571,7 @@ function Select({
|
|
|
11344
11571
|
readOnly,
|
|
11345
11572
|
afterLabelContent
|
|
11346
11573
|
}),
|
|
11347
|
-
/* @__PURE__ */
|
|
11574
|
+
/* @__PURE__ */ jsx306(ReactSelect, { ...reactSelectProps, ref }),
|
|
11348
11575
|
renderInputMessage({ tip, tipId, errorMessage, errorMessageId })
|
|
11349
11576
|
]
|
|
11350
11577
|
}
|
|
@@ -11373,7 +11600,7 @@ var NativeSelect_default = {
|
|
|
11373
11600
|
};
|
|
11374
11601
|
|
|
11375
11602
|
// src/components/Select/NativeSelect/NativeSelect.tsx
|
|
11376
|
-
import { jsx as
|
|
11603
|
+
import { jsx as jsx307, jsxs as jsxs116 } from "react/jsx-runtime";
|
|
11377
11604
|
var NativeSelect = ({
|
|
11378
11605
|
ref,
|
|
11379
11606
|
id,
|
|
@@ -11442,7 +11669,7 @@ var NativeSelect = ({
|
|
|
11442
11669
|
const iconSize = componentSize === "medium" ? "medium" : "small";
|
|
11443
11670
|
const showClearButton = clearable && hasValue && !readOnly && !rest.disabled;
|
|
11444
11671
|
const hasIcon = !!icon;
|
|
11445
|
-
return /* @__PURE__ */
|
|
11672
|
+
return /* @__PURE__ */ jsxs116("div", { className, style, children: [
|
|
11446
11673
|
renderLabel({
|
|
11447
11674
|
label,
|
|
11448
11675
|
htmlFor: uniqueId,
|
|
@@ -11450,7 +11677,7 @@ var NativeSelect = ({
|
|
|
11450
11677
|
readOnly,
|
|
11451
11678
|
afterLabelContent
|
|
11452
11679
|
}),
|
|
11453
|
-
/* @__PURE__ */
|
|
11680
|
+
/* @__PURE__ */ jsxs116(
|
|
11454
11681
|
Box,
|
|
11455
11682
|
{
|
|
11456
11683
|
position: "relative",
|
|
@@ -11460,7 +11687,7 @@ var NativeSelect = ({
|
|
|
11460
11687
|
Input_default["input-group"]
|
|
11461
11688
|
),
|
|
11462
11689
|
children: [
|
|
11463
|
-
hasIcon && /* @__PURE__ */
|
|
11690
|
+
hasIcon && /* @__PURE__ */ jsx307(
|
|
11464
11691
|
Icon,
|
|
11465
11692
|
{
|
|
11466
11693
|
icon,
|
|
@@ -11471,7 +11698,7 @@ var NativeSelect = ({
|
|
|
11471
11698
|
iconSize: "component"
|
|
11472
11699
|
}
|
|
11473
11700
|
),
|
|
11474
|
-
/* @__PURE__ */
|
|
11701
|
+
/* @__PURE__ */ jsx307(
|
|
11475
11702
|
"select",
|
|
11476
11703
|
{
|
|
11477
11704
|
ref: useCombinedRef(ref, selectRef),
|
|
@@ -11505,7 +11732,7 @@ var NativeSelect = ({
|
|
|
11505
11732
|
children
|
|
11506
11733
|
}
|
|
11507
11734
|
),
|
|
11508
|
-
showClearButton && /* @__PURE__ */
|
|
11735
|
+
showClearButton && /* @__PURE__ */ jsx307(
|
|
11509
11736
|
ClearButton,
|
|
11510
11737
|
{
|
|
11511
11738
|
"aria-label": t(commonTexts.clearSelect),
|
|
@@ -11514,7 +11741,7 @@ var NativeSelect = ({
|
|
|
11514
11741
|
className: NativeSelect_default[`clear-button--${componentSize}`]
|
|
11515
11742
|
}
|
|
11516
11743
|
),
|
|
11517
|
-
!multiple && /* @__PURE__ */
|
|
11744
|
+
!multiple && /* @__PURE__ */ jsx307(
|
|
11518
11745
|
Icon,
|
|
11519
11746
|
{
|
|
11520
11747
|
icon: ChevronDownIcon,
|
|
@@ -11537,7 +11764,7 @@ var NativeSelect = ({
|
|
|
11537
11764
|
var createSelectOptions = (...args) => args.map((v) => ({ label: v, value: v }));
|
|
11538
11765
|
|
|
11539
11766
|
// src/components/Pagination/Pagination.tsx
|
|
11540
|
-
import { jsx as
|
|
11767
|
+
import { jsx as jsx308, jsxs as jsxs117 } from "react/jsx-runtime";
|
|
11541
11768
|
var Pagination = ({
|
|
11542
11769
|
itemsAmount,
|
|
11543
11770
|
defaultItemsPerPage = 10,
|
|
@@ -11592,7 +11819,7 @@ var Pagination = ({
|
|
|
11592
11819
|
};
|
|
11593
11820
|
const listItems = items.length > 0 ? items.map((item, i) => {
|
|
11594
11821
|
const isActive = item === activePage;
|
|
11595
|
-
return /* @__PURE__ */
|
|
11822
|
+
return /* @__PURE__ */ jsx308("li", { className: Pagination_default.list__item, children: item !== "truncator" && typeof item === "number" ? /* @__PURE__ */ jsx308(
|
|
11596
11823
|
Button,
|
|
11597
11824
|
{
|
|
11598
11825
|
purpose: isActive ? "primary" : "secondary",
|
|
@@ -11600,10 +11827,10 @@ var Pagination = ({
|
|
|
11600
11827
|
onClick: (event) => {
|
|
11601
11828
|
onPageChange(event, item);
|
|
11602
11829
|
},
|
|
11603
|
-
"aria-label": isActive ? t(
|
|
11830
|
+
"aria-label": isActive ? t(commonTexts.currentPage(item)) : t(commonTexts.page(item)),
|
|
11604
11831
|
children: item
|
|
11605
11832
|
}
|
|
11606
|
-
) : /* @__PURE__ */
|
|
11833
|
+
) : /* @__PURE__ */ jsx308(
|
|
11607
11834
|
Icon,
|
|
11608
11835
|
{
|
|
11609
11836
|
icon: MoreHorizontalIcon,
|
|
@@ -11611,7 +11838,7 @@ var Pagination = ({
|
|
|
11611
11838
|
}
|
|
11612
11839
|
) }, `pagination-item-${i}`);
|
|
11613
11840
|
}) : void 0;
|
|
11614
|
-
const previousPageButton = /* @__PURE__ */
|
|
11841
|
+
const previousPageButton = /* @__PURE__ */ jsx308(
|
|
11615
11842
|
Button,
|
|
11616
11843
|
{
|
|
11617
11844
|
purpose: "secondary",
|
|
@@ -11620,10 +11847,10 @@ var Pagination = ({
|
|
|
11620
11847
|
onClick: (event) => {
|
|
11621
11848
|
onPageChange(event, activePage - 1);
|
|
11622
11849
|
},
|
|
11623
|
-
"aria-label": t(
|
|
11850
|
+
"aria-label": t(commonTexts.previousPage)
|
|
11624
11851
|
}
|
|
11625
11852
|
);
|
|
11626
|
-
const nextPageButton = /* @__PURE__ */
|
|
11853
|
+
const nextPageButton = /* @__PURE__ */ jsx308(
|
|
11627
11854
|
Button,
|
|
11628
11855
|
{
|
|
11629
11856
|
purpose: "secondary",
|
|
@@ -11632,13 +11859,13 @@ var Pagination = ({
|
|
|
11632
11859
|
onClick: (event) => {
|
|
11633
11860
|
onPageChange(event, activePage + 1);
|
|
11634
11861
|
},
|
|
11635
|
-
"aria-label": t(
|
|
11862
|
+
"aria-label": t(commonTexts.nextPage)
|
|
11636
11863
|
}
|
|
11637
11864
|
);
|
|
11638
11865
|
const isOnFirstPage = activePage === 1;
|
|
11639
11866
|
const isOnLastPage = activePage === pagesLength;
|
|
11640
11867
|
const baseHTMLProps = getBaseHTMLProps(id, className, style, htmlProps, rest);
|
|
11641
|
-
const navigation = withPagination ? /* @__PURE__ */
|
|
11868
|
+
const navigation = withPagination ? /* @__PURE__ */ jsxs117(
|
|
11642
11869
|
Box,
|
|
11643
11870
|
{
|
|
11644
11871
|
as: "nav",
|
|
@@ -11650,14 +11877,14 @@ var Pagination = ({
|
|
|
11650
11877
|
...baseHTMLProps
|
|
11651
11878
|
},
|
|
11652
11879
|
children: [
|
|
11653
|
-
/* @__PURE__ */
|
|
11880
|
+
/* @__PURE__ */ jsxs117(
|
|
11654
11881
|
ShowHide,
|
|
11655
11882
|
{
|
|
11656
11883
|
as: "ol",
|
|
11657
11884
|
hideBelow: smallScreenBreakpoint,
|
|
11658
11885
|
className: Pagination_default.list,
|
|
11659
11886
|
children: [
|
|
11660
|
-
/* @__PURE__ */
|
|
11887
|
+
/* @__PURE__ */ jsx308(
|
|
11661
11888
|
"li",
|
|
11662
11889
|
{
|
|
11663
11890
|
className: cn(
|
|
@@ -11669,7 +11896,7 @@ var Pagination = ({
|
|
|
11669
11896
|
}
|
|
11670
11897
|
),
|
|
11671
11898
|
listItems,
|
|
11672
|
-
/* @__PURE__ */
|
|
11899
|
+
/* @__PURE__ */ jsx308(
|
|
11673
11900
|
"li",
|
|
11674
11901
|
{
|
|
11675
11902
|
className: cn(
|
|
@@ -11683,14 +11910,14 @@ var Pagination = ({
|
|
|
11683
11910
|
]
|
|
11684
11911
|
}
|
|
11685
11912
|
),
|
|
11686
|
-
!!smallScreenBreakpoint && /* @__PURE__ */
|
|
11913
|
+
!!smallScreenBreakpoint && /* @__PURE__ */ jsxs117(
|
|
11687
11914
|
ShowHide,
|
|
11688
11915
|
{
|
|
11689
11916
|
as: "ol",
|
|
11690
11917
|
showBelow: smallScreenBreakpoint,
|
|
11691
11918
|
className: Pagination_default.list,
|
|
11692
11919
|
children: [
|
|
11693
|
-
/* @__PURE__ */
|
|
11920
|
+
/* @__PURE__ */ jsx308(
|
|
11694
11921
|
"li",
|
|
11695
11922
|
{
|
|
11696
11923
|
className: cn(
|
|
@@ -11698,7 +11925,7 @@ var Pagination = ({
|
|
|
11698
11925
|
isOnFirstPage && Pagination_default["list__item--hidden"]
|
|
11699
11926
|
),
|
|
11700
11927
|
"aria-hidden": isOnFirstPage,
|
|
11701
|
-
children: /* @__PURE__ */
|
|
11928
|
+
children: /* @__PURE__ */ jsx308(
|
|
11702
11929
|
Button,
|
|
11703
11930
|
{
|
|
11704
11931
|
purpose: "secondary",
|
|
@@ -11712,7 +11939,7 @@ var Pagination = ({
|
|
|
11712
11939
|
)
|
|
11713
11940
|
}
|
|
11714
11941
|
),
|
|
11715
|
-
/* @__PURE__ */
|
|
11942
|
+
/* @__PURE__ */ jsx308(
|
|
11716
11943
|
"li",
|
|
11717
11944
|
{
|
|
11718
11945
|
className: cn(
|
|
@@ -11723,7 +11950,7 @@ var Pagination = ({
|
|
|
11723
11950
|
children: previousPageButton
|
|
11724
11951
|
}
|
|
11725
11952
|
),
|
|
11726
|
-
/* @__PURE__ */
|
|
11953
|
+
/* @__PURE__ */ jsx308("li", { className: Pagination_default.list__item, children: /* @__PURE__ */ jsx308(
|
|
11727
11954
|
Button,
|
|
11728
11955
|
{
|
|
11729
11956
|
size: "small",
|
|
@@ -11733,7 +11960,7 @@ var Pagination = ({
|
|
|
11733
11960
|
children: activePage
|
|
11734
11961
|
}
|
|
11735
11962
|
) }),
|
|
11736
|
-
/* @__PURE__ */
|
|
11963
|
+
/* @__PURE__ */ jsx308(
|
|
11737
11964
|
"li",
|
|
11738
11965
|
{
|
|
11739
11966
|
className: cn(
|
|
@@ -11744,7 +11971,7 @@ var Pagination = ({
|
|
|
11744
11971
|
children: nextPageButton
|
|
11745
11972
|
}
|
|
11746
11973
|
),
|
|
11747
|
-
/* @__PURE__ */
|
|
11974
|
+
/* @__PURE__ */ jsx308(
|
|
11748
11975
|
"li",
|
|
11749
11976
|
{
|
|
11750
11977
|
className: cn(
|
|
@@ -11752,7 +11979,7 @@ var Pagination = ({
|
|
|
11752
11979
|
isOnLastPage && Pagination_default["list__item--hidden"]
|
|
11753
11980
|
),
|
|
11754
11981
|
"aria-hidden": isOnLastPage,
|
|
11755
|
-
children: /* @__PURE__ */
|
|
11982
|
+
children: /* @__PURE__ */ jsx308(
|
|
11756
11983
|
Button,
|
|
11757
11984
|
{
|
|
11758
11985
|
purpose: "secondary",
|
|
@@ -11774,7 +12001,7 @@ var Pagination = ({
|
|
|
11774
12001
|
) : null;
|
|
11775
12002
|
const activePageFirstItem = activePage === 1 ? 1 : activePage * itemsPerPage - itemsPerPage + 1;
|
|
11776
12003
|
const activePageLastItem = activePage === pagesLength ? itemsAmount : activePage * itemsPerPage;
|
|
11777
|
-
return !withCounter && !withSelect ? navigation : /* @__PURE__ */
|
|
12004
|
+
return !withCounter && !withSelect ? navigation : /* @__PURE__ */ jsxs117(
|
|
11778
12005
|
Box,
|
|
11779
12006
|
{
|
|
11780
12007
|
display: "flex",
|
|
@@ -11785,7 +12012,7 @@ var Pagination = ({
|
|
|
11785
12012
|
alignItems: styleUpToBreakpoint("center", smallScreenBreakpoint),
|
|
11786
12013
|
...baseHTMLProps,
|
|
11787
12014
|
children: [
|
|
11788
|
-
/* @__PURE__ */
|
|
12015
|
+
/* @__PURE__ */ jsxs117(
|
|
11789
12016
|
Box,
|
|
11790
12017
|
{
|
|
11791
12018
|
display: "grid",
|
|
@@ -11793,7 +12020,7 @@ var Pagination = ({
|
|
|
11793
12020
|
alignItems: "center",
|
|
11794
12021
|
className: Pagination_default.indicators,
|
|
11795
12022
|
children: [
|
|
11796
|
-
withSelect && /* @__PURE__ */
|
|
12023
|
+
withSelect && /* @__PURE__ */ jsx308(
|
|
11797
12024
|
Select,
|
|
11798
12025
|
{
|
|
11799
12026
|
options: tSelectOptions,
|
|
@@ -11809,7 +12036,7 @@ var Pagination = ({
|
|
|
11809
12036
|
"aria-label": t(texts22.itemsPerPage)
|
|
11810
12037
|
}
|
|
11811
12038
|
),
|
|
11812
|
-
withCounter && /* @__PURE__ */
|
|
12039
|
+
withCounter && /* @__PURE__ */ jsx308(Paragraph, { typographyType: "bodyShortMedium", children: t(
|
|
11813
12040
|
texts22.showsAmountOfTotalItems(
|
|
11814
12041
|
activePageFirstItem,
|
|
11815
12042
|
activePageLastItem,
|
|
@@ -11840,20 +12067,6 @@ var texts22 = createTexts({
|
|
|
11840
12067
|
en: "Items per page",
|
|
11841
12068
|
se: "Elementat juohki siidui"
|
|
11842
12069
|
},
|
|
11843
|
-
nextPage: {
|
|
11844
|
-
nb: "Neste side",
|
|
11845
|
-
no: "Neste side",
|
|
11846
|
-
nn: "Neste side",
|
|
11847
|
-
en: "Next page",
|
|
11848
|
-
se: "Boahte siidu"
|
|
11849
|
-
},
|
|
11850
|
-
previousPage: {
|
|
11851
|
-
nb: "Forrige side",
|
|
11852
|
-
no: "Forrige side",
|
|
11853
|
-
nn: "F\xF8rre side",
|
|
11854
|
-
en: "Previous page",
|
|
11855
|
-
se: "Ovddit siidu"
|
|
11856
|
-
},
|
|
11857
12070
|
firstPage: {
|
|
11858
12071
|
nb: "F\xF8rste side",
|
|
11859
12072
|
no: "F\xF8rste side",
|
|
@@ -11868,20 +12081,6 @@ var texts22 = createTexts({
|
|
|
11868
12081
|
en: "Last page",
|
|
11869
12082
|
se: "Ma\u014Bimu\u0161 siidu"
|
|
11870
12083
|
},
|
|
11871
|
-
currentPage: (page) => ({
|
|
11872
|
-
nb: `N\xE5v\xE6rende side (${page})`,
|
|
11873
|
-
no: `N\xE5v\xE6rende side (${page})`,
|
|
11874
|
-
nn: `Noverande side (${page})`,
|
|
11875
|
-
en: `Current page (${page})`,
|
|
11876
|
-
se: `D\xE1la siidu (${page})`
|
|
11877
|
-
}),
|
|
11878
|
-
page: (page) => ({
|
|
11879
|
-
nb: `Side ${page}`,
|
|
11880
|
-
no: `Side ${page}`,
|
|
11881
|
-
nn: `Side ${page}`,
|
|
11882
|
-
en: `Page ${page}`,
|
|
11883
|
-
se: `Siidu ${page}`
|
|
11884
|
-
}),
|
|
11885
12084
|
showsAmountOfTotalItems: (first, last, total) => ({
|
|
11886
12085
|
nb: `Viser ${first}-${last} av ${total}`,
|
|
11887
12086
|
no: `Viser ${first}-${last} av ${total}`,
|
|
@@ -12305,7 +12504,7 @@ var PhoneInput_default = {
|
|
|
12305
12504
|
};
|
|
12306
12505
|
|
|
12307
12506
|
// src/components/PhoneInput/PhoneInput.tsx
|
|
12308
|
-
import { jsx as
|
|
12507
|
+
import { jsx as jsx309, jsxs as jsxs118 } from "react/jsx-runtime";
|
|
12309
12508
|
var prioritizedCountries = [
|
|
12310
12509
|
COUNTRIES.NO,
|
|
12311
12510
|
COUNTRIES.SE,
|
|
@@ -12443,7 +12642,7 @@ var PhoneInput = ({
|
|
|
12443
12642
|
const showRequiredStyling = !!(required || ariaRequired);
|
|
12444
12643
|
const bp = props.smallScreenBreakpoint;
|
|
12445
12644
|
const widthDefault = componentSize === "xsmall" && "var(--dds-input-default-width-xsmall)";
|
|
12446
|
-
return /* @__PURE__ */
|
|
12645
|
+
return /* @__PURE__ */ jsxs118("div", { className: cn(className, Input_default.container), style, children: [
|
|
12447
12646
|
renderLabel({
|
|
12448
12647
|
label,
|
|
12449
12648
|
htmlFor: phoneNumberId,
|
|
@@ -12451,7 +12650,7 @@ var PhoneInput = ({
|
|
|
12451
12650
|
readOnly,
|
|
12452
12651
|
afterLabelContent
|
|
12453
12652
|
}),
|
|
12454
|
-
/* @__PURE__ */
|
|
12653
|
+
/* @__PURE__ */ jsxs118(
|
|
12455
12654
|
Box,
|
|
12456
12655
|
{
|
|
12457
12656
|
display: "flex",
|
|
@@ -12464,8 +12663,8 @@ var PhoneInput = ({
|
|
|
12464
12663
|
role: "group",
|
|
12465
12664
|
"aria-label": tGroupLabel,
|
|
12466
12665
|
children: [
|
|
12467
|
-
/* @__PURE__ */
|
|
12468
|
-
/* @__PURE__ */
|
|
12666
|
+
/* @__PURE__ */ jsx309("label", { className: utilStyles_default["visually-hidden"], htmlFor: selectId, children: tSelectLabel }),
|
|
12667
|
+
/* @__PURE__ */ jsx309(
|
|
12469
12668
|
NativeSelect,
|
|
12470
12669
|
{
|
|
12471
12670
|
width: styleUpToBreakpoint(
|
|
@@ -12486,11 +12685,11 @@ var PhoneInput = ({
|
|
|
12486
12685
|
hasTip ? tipId : void 0,
|
|
12487
12686
|
ariaDescribedby
|
|
12488
12687
|
]),
|
|
12489
|
-
children: countryOptions.map((item, index) => /* @__PURE__ */
|
|
12688
|
+
children: countryOptions.map((item, index) => /* @__PURE__ */ jsx309("option", { value: item.countryCode, children: item.label }, index))
|
|
12490
12689
|
}
|
|
12491
12690
|
),
|
|
12492
|
-
/* @__PURE__ */
|
|
12493
|
-
/* @__PURE__ */
|
|
12691
|
+
/* @__PURE__ */ jsxs118(Box, { width: "100%", display: "flex", className: Input_default["input-group"], children: [
|
|
12692
|
+
/* @__PURE__ */ jsx309(
|
|
12494
12693
|
"span",
|
|
12495
12694
|
{
|
|
12496
12695
|
className: cn(
|
|
@@ -12502,7 +12701,7 @@ var PhoneInput = ({
|
|
|
12502
12701
|
children: callingCode
|
|
12503
12702
|
}
|
|
12504
12703
|
),
|
|
12505
|
-
/* @__PURE__ */
|
|
12704
|
+
/* @__PURE__ */ jsx309(
|
|
12506
12705
|
Box,
|
|
12507
12706
|
{
|
|
12508
12707
|
as: StatefulInput,
|
|
@@ -12582,7 +12781,7 @@ var PopoverContext = createContext13({});
|
|
|
12582
12781
|
var usePopoverContext = () => useContext20(PopoverContext);
|
|
12583
12782
|
|
|
12584
12783
|
// src/components/Popover/Popover.tsx
|
|
12585
|
-
import { jsx as
|
|
12784
|
+
import { jsx as jsx310, jsxs as jsxs119 } from "react/jsx-runtime";
|
|
12586
12785
|
var Popover = ({
|
|
12587
12786
|
id,
|
|
12588
12787
|
header,
|
|
@@ -12663,7 +12862,7 @@ var Popover = ({
|
|
|
12663
12862
|
useEffect28(() => {
|
|
12664
12863
|
setFloatOptions == null ? void 0 : setFloatOptions({ placement, offset });
|
|
12665
12864
|
}, [placement, offset]);
|
|
12666
|
-
useOnClickOutside([popoverRef
|
|
12865
|
+
useOnClickOutside([popoverRef, anchorRef], () => {
|
|
12667
12866
|
if (isOpen && !hasContext) onClose == null ? void 0 : onClose();
|
|
12668
12867
|
});
|
|
12669
12868
|
useOnKeyDown("Escape", () => {
|
|
@@ -12671,7 +12870,7 @@ var Popover = ({
|
|
|
12671
12870
|
});
|
|
12672
12871
|
const hasTitle = !!header;
|
|
12673
12872
|
const openCn = hasTransitionedIn && isOpen ? "open" : "closed";
|
|
12674
|
-
const popover = /* @__PURE__ */
|
|
12873
|
+
const popover = /* @__PURE__ */ jsxs119(
|
|
12675
12874
|
Paper,
|
|
12676
12875
|
{
|
|
12677
12876
|
...getBaseHTMLProps(
|
|
@@ -12702,15 +12901,15 @@ var Popover = ({
|
|
|
12702
12901
|
elevation: "large",
|
|
12703
12902
|
border: "border-subtle",
|
|
12704
12903
|
children: [
|
|
12705
|
-
header && /* @__PURE__ */
|
|
12706
|
-
/* @__PURE__ */
|
|
12904
|
+
header && /* @__PURE__ */ jsx310("div", { className: Popover_default.header, children: typeof header === "string" ? /* @__PURE__ */ jsx310(Heading, { level: 2, typographyType: "headingMedium", children: header }) : header }),
|
|
12905
|
+
/* @__PURE__ */ jsx310(
|
|
12707
12906
|
"div",
|
|
12708
12907
|
{
|
|
12709
12908
|
className: !hasTitle && withCloseButton ? Popover_default["content--closable--no-header"] : "",
|
|
12710
12909
|
children
|
|
12711
12910
|
}
|
|
12712
12911
|
),
|
|
12713
|
-
withCloseButton && /* @__PURE__ */
|
|
12912
|
+
withCloseButton && /* @__PURE__ */ jsx310(
|
|
12714
12913
|
Button,
|
|
12715
12914
|
{
|
|
12716
12915
|
icon: CloseIcon,
|
|
@@ -12737,7 +12936,7 @@ import {
|
|
|
12737
12936
|
useRef as useRef32,
|
|
12738
12937
|
useState as useState25
|
|
12739
12938
|
} from "react";
|
|
12740
|
-
import { jsx as
|
|
12939
|
+
import { jsx as jsx311 } from "react/jsx-runtime";
|
|
12741
12940
|
var PopoverGroup = ({
|
|
12742
12941
|
isOpen: propIsOpen,
|
|
12743
12942
|
setIsOpen: propSetIsOpen,
|
|
@@ -12783,8 +12982,8 @@ var PopoverGroup = ({
|
|
|
12783
12982
|
(_a2 = buttonRef.current) == null ? void 0 : _a2.focus();
|
|
12784
12983
|
}
|
|
12785
12984
|
});
|
|
12786
|
-
const elements = [popoverRef
|
|
12787
|
-
if (buttonRef
|
|
12985
|
+
const elements = [popoverRef];
|
|
12986
|
+
if (buttonRef) elements.push(buttonRef);
|
|
12788
12987
|
useOnClickOutside(elements, () => {
|
|
12789
12988
|
if (open) handleClose();
|
|
12790
12989
|
});
|
|
@@ -12798,7 +12997,7 @@ var PopoverGroup = ({
|
|
|
12798
12997
|
ref: combinedAnchorRef
|
|
12799
12998
|
}) : child);
|
|
12800
12999
|
});
|
|
12801
|
-
return /* @__PURE__ */
|
|
13000
|
+
return /* @__PURE__ */ jsx311(
|
|
12802
13001
|
PopoverContext,
|
|
12803
13002
|
{
|
|
12804
13003
|
value: {
|
|
@@ -12856,7 +13055,7 @@ var ProgressTracker_default = {
|
|
|
12856
13055
|
|
|
12857
13056
|
// src/components/ProgressTracker/ProgressTrackerItem.tsx
|
|
12858
13057
|
import { useMemo as useMemo2 } from "react";
|
|
12859
|
-
import { Fragment as
|
|
13058
|
+
import { Fragment as Fragment12, jsx as jsx312, jsxs as jsxs120 } from "react/jsx-runtime";
|
|
12860
13059
|
var toItemState = (active, completed, disabled) => {
|
|
12861
13060
|
if (disabled) {
|
|
12862
13061
|
return "disabled";
|
|
@@ -12901,10 +13100,10 @@ var ProgressTrackerItem = (props) => {
|
|
|
12901
13100
|
};
|
|
12902
13101
|
const stepNumberContent = useMemo2(() => {
|
|
12903
13102
|
if (completed) {
|
|
12904
|
-
return /* @__PURE__ */
|
|
13103
|
+
return /* @__PURE__ */ jsx312(Icon, { icon: CheckIcon, iconSize: "small" });
|
|
12905
13104
|
}
|
|
12906
13105
|
if (icon !== void 0) {
|
|
12907
|
-
return /* @__PURE__ */
|
|
13106
|
+
return /* @__PURE__ */ jsx312(Icon, { icon, iconSize: "small" });
|
|
12908
13107
|
}
|
|
12909
13108
|
return stepNumber;
|
|
12910
13109
|
}, [completed, icon, index]);
|
|
@@ -12913,8 +13112,8 @@ var ProgressTrackerItem = (props) => {
|
|
|
12913
13112
|
if (active) return "text-action-resting";
|
|
12914
13113
|
}
|
|
12915
13114
|
const isInactiveLink = disabled || active;
|
|
12916
|
-
const stepContent = /* @__PURE__ */
|
|
12917
|
-
/* @__PURE__ */
|
|
13115
|
+
const stepContent = /* @__PURE__ */ jsxs120(Fragment12, { children: [
|
|
13116
|
+
/* @__PURE__ */ jsx312(
|
|
12918
13117
|
Box,
|
|
12919
13118
|
{
|
|
12920
13119
|
display: "flex",
|
|
@@ -12929,7 +13128,7 @@ var ProgressTrackerItem = (props) => {
|
|
|
12929
13128
|
children: stepNumberContent
|
|
12930
13129
|
}
|
|
12931
13130
|
),
|
|
12932
|
-
/* @__PURE__ */
|
|
13131
|
+
/* @__PURE__ */ jsx312(
|
|
12933
13132
|
Typography,
|
|
12934
13133
|
{
|
|
12935
13134
|
as: "div",
|
|
@@ -12945,14 +13144,14 @@ var ProgressTrackerItem = (props) => {
|
|
|
12945
13144
|
)
|
|
12946
13145
|
] });
|
|
12947
13146
|
const ariaLabel = (htmlProps == null ? void 0 : htmlProps["aria-label"]) ? htmlProps == null ? void 0 : htmlProps["aria-label"] : `${children}, ${stepNumber}. ${completed ? t(texts24.completed) : t(texts24.uncompleted)}`;
|
|
12948
|
-
return /* @__PURE__ */
|
|
13147
|
+
return /* @__PURE__ */ jsx312(
|
|
12949
13148
|
Box,
|
|
12950
13149
|
{
|
|
12951
13150
|
as: "li",
|
|
12952
13151
|
display: direction === "row" ? "flex" : void 0,
|
|
12953
13152
|
"aria-current": active ? "step" : void 0,
|
|
12954
13153
|
className: cn(ProgressTracker_default["list-item"], ProgressTracker_default[`list-item--${direction}`]),
|
|
12955
|
-
children: handleStepChange ? /* @__PURE__ */
|
|
13154
|
+
children: handleStepChange ? /* @__PURE__ */ jsx312(
|
|
12956
13155
|
Box,
|
|
12957
13156
|
{
|
|
12958
13157
|
as: StylelessButton,
|
|
@@ -12977,7 +13176,7 @@ var ProgressTrackerItem = (props) => {
|
|
|
12977
13176
|
disabled,
|
|
12978
13177
|
children: stepContent
|
|
12979
13178
|
}
|
|
12980
|
-
) : /* @__PURE__ */
|
|
13179
|
+
) : /* @__PURE__ */ jsx312(
|
|
12981
13180
|
"div",
|
|
12982
13181
|
{
|
|
12983
13182
|
...getBaseHTMLProps(
|
|
@@ -13013,7 +13212,7 @@ var texts24 = createTexts({
|
|
|
13013
13212
|
});
|
|
13014
13213
|
|
|
13015
13214
|
// src/components/ProgressTracker/ProgressTracker.tsx
|
|
13016
|
-
import { jsx as
|
|
13215
|
+
import { jsx as jsx313 } from "react/jsx-runtime";
|
|
13017
13216
|
var ProgressTracker = (() => {
|
|
13018
13217
|
const Res = ({
|
|
13019
13218
|
id,
|
|
@@ -13044,7 +13243,7 @@ var ProgressTracker = (() => {
|
|
|
13044
13243
|
}, [children]);
|
|
13045
13244
|
const isRow = direction === "row";
|
|
13046
13245
|
const { "aria-label": ariaLabel } = htmlProps;
|
|
13047
|
-
return /* @__PURE__ */
|
|
13246
|
+
return /* @__PURE__ */ jsx313(
|
|
13048
13247
|
ProgressTrackerContext,
|
|
13049
13248
|
{
|
|
13050
13249
|
value: {
|
|
@@ -13052,12 +13251,12 @@ var ProgressTracker = (() => {
|
|
|
13052
13251
|
handleStepChange: handleChange,
|
|
13053
13252
|
direction
|
|
13054
13253
|
},
|
|
13055
|
-
children: /* @__PURE__ */
|
|
13254
|
+
children: /* @__PURE__ */ jsx313(
|
|
13056
13255
|
"nav",
|
|
13057
13256
|
{
|
|
13058
13257
|
"aria-label": ariaLabel != null ? ariaLabel : t(texts25.stepProgression),
|
|
13059
13258
|
...getBaseHTMLProps(id, className, style, htmlProps, rest),
|
|
13060
|
-
children: /* @__PURE__ */
|
|
13259
|
+
children: /* @__PURE__ */ jsx313(
|
|
13061
13260
|
Box,
|
|
13062
13261
|
{
|
|
13063
13262
|
as: StylelessOList,
|
|
@@ -13117,7 +13316,7 @@ var ProgressBar_default = {
|
|
|
13117
13316
|
};
|
|
13118
13317
|
|
|
13119
13318
|
// src/components/ProgressBar/ProgressBar.tsx
|
|
13120
|
-
import { jsx as
|
|
13319
|
+
import { jsx as jsx314, jsxs as jsxs121 } from "react/jsx-runtime";
|
|
13121
13320
|
var PROGRESS_BAR_SIZES = createSizes("small", "medium");
|
|
13122
13321
|
var ProgressBar = ({
|
|
13123
13322
|
label,
|
|
@@ -13143,9 +13342,9 @@ var ProgressBar = ({
|
|
|
13143
13342
|
const errorMessageId = derivativeIdGenerator(uniqueId, "errorMessage");
|
|
13144
13343
|
const fillPrecentage = hasValidValue && value / (max != null ? max : 1) * 100 + "%";
|
|
13145
13344
|
const isIndeterminate = !hasValidValue && !hasErrorMessage;
|
|
13146
|
-
return /* @__PURE__ */
|
|
13345
|
+
return /* @__PURE__ */ jsxs121(Box, { width: "100%", className, style, children: [
|
|
13147
13346
|
renderLabel({ label, htmlFor: uniqueId }),
|
|
13148
|
-
/* @__PURE__ */
|
|
13347
|
+
/* @__PURE__ */ jsx314(
|
|
13149
13348
|
"progress",
|
|
13150
13349
|
{
|
|
13151
13350
|
id: uniqueId,
|
|
@@ -13161,13 +13360,13 @@ var ProgressBar = ({
|
|
|
13161
13360
|
children: fillPrecentage
|
|
13162
13361
|
}
|
|
13163
13362
|
),
|
|
13164
|
-
/* @__PURE__ */
|
|
13363
|
+
/* @__PURE__ */ jsx314(
|
|
13165
13364
|
Box,
|
|
13166
13365
|
{
|
|
13167
13366
|
width: getInputWidth(width),
|
|
13168
13367
|
height: size2 === "small" ? "x0.75" : "x1.5",
|
|
13169
13368
|
className: cn(ProgressBar_default.progress),
|
|
13170
|
-
children: /* @__PURE__ */
|
|
13369
|
+
children: /* @__PURE__ */ jsx314(
|
|
13171
13370
|
Box,
|
|
13172
13371
|
{
|
|
13173
13372
|
height: "100%",
|
|
@@ -13213,7 +13412,7 @@ var Search_default = {
|
|
|
13213
13412
|
|
|
13214
13413
|
// src/components/Search/SearchSuggestionItem.tsx
|
|
13215
13414
|
import { useEffect as useEffect30, useRef as useRef33 } from "react";
|
|
13216
|
-
import { jsx as
|
|
13415
|
+
import { jsx as jsx315 } from "react/jsx-runtime";
|
|
13217
13416
|
var SearchSuggestionItem = ({
|
|
13218
13417
|
focus,
|
|
13219
13418
|
ref,
|
|
@@ -13227,7 +13426,7 @@ var SearchSuggestionItem = ({
|
|
|
13227
13426
|
(_a = itemRef.current) == null ? void 0 : _a.focus();
|
|
13228
13427
|
}
|
|
13229
13428
|
}, [focus]);
|
|
13230
|
-
return /* @__PURE__ */
|
|
13429
|
+
return /* @__PURE__ */ jsx315(
|
|
13231
13430
|
DropdownItem,
|
|
13232
13431
|
{
|
|
13233
13432
|
as: StylelessButton,
|
|
@@ -13240,7 +13439,7 @@ var SearchSuggestionItem = ({
|
|
|
13240
13439
|
SearchSuggestionItem.displayName = "SearchSuggestionItem";
|
|
13241
13440
|
|
|
13242
13441
|
// src/components/Search/SearchSuggestions.tsx
|
|
13243
|
-
import { jsx as
|
|
13442
|
+
import { jsx as jsx316, jsxs as jsxs122 } from "react/jsx-runtime";
|
|
13244
13443
|
var SearchSuggestions = ({
|
|
13245
13444
|
id,
|
|
13246
13445
|
searchId,
|
|
@@ -13260,7 +13459,7 @@ var SearchSuggestions = ({
|
|
|
13260
13459
|
const { t } = useTranslation();
|
|
13261
13460
|
const [focus] = useRoveFocus(suggestions == null ? void 0 : suggestions.length, showSuggestions);
|
|
13262
13461
|
const suggestionsToRender = maxSuggestions ? suggestions == null ? void 0 : suggestions.slice(maxSuggestions) : suggestions;
|
|
13263
|
-
return /* @__PURE__ */
|
|
13462
|
+
return /* @__PURE__ */ jsxs122(
|
|
13264
13463
|
Paper,
|
|
13265
13464
|
{
|
|
13266
13465
|
...getBaseHTMLProps(
|
|
@@ -13285,9 +13484,9 @@ var SearchSuggestions = ({
|
|
|
13285
13484
|
overflowY: "scroll",
|
|
13286
13485
|
marginBlock: "x0.25 0",
|
|
13287
13486
|
children: [
|
|
13288
|
-
/* @__PURE__ */
|
|
13289
|
-
/* @__PURE__ */
|
|
13290
|
-
return /* @__PURE__ */
|
|
13487
|
+
/* @__PURE__ */ jsx316(DropdownHeader, { id: suggestionsHeaderId, children: t(texts26.searchSuggestions) }),
|
|
13488
|
+
/* @__PURE__ */ jsx316(StylelessList, { role: "listbox", "aria-labelledby": suggestionsHeaderId, children: suggestionsToRender.map((suggestion, index) => {
|
|
13489
|
+
return /* @__PURE__ */ jsx316("li", { role: "option", children: /* @__PURE__ */ jsx316(
|
|
13291
13490
|
SearchSuggestionItem,
|
|
13292
13491
|
{
|
|
13293
13492
|
index,
|
|
@@ -13323,7 +13522,7 @@ var texts26 = createTexts({
|
|
|
13323
13522
|
});
|
|
13324
13523
|
|
|
13325
13524
|
// src/components/Search/Search.tsx
|
|
13326
|
-
import { Fragment as
|
|
13525
|
+
import { Fragment as Fragment13, jsx as jsx317, jsxs as jsxs123 } from "react/jsx-runtime";
|
|
13327
13526
|
var Search = ({
|
|
13328
13527
|
componentSize = "medium",
|
|
13329
13528
|
buttonProps,
|
|
@@ -13371,7 +13570,7 @@ var Search = ({
|
|
|
13371
13570
|
} = buttonProps != null ? buttonProps : {};
|
|
13372
13571
|
const hasSuggestions = !!context.suggestions;
|
|
13373
13572
|
const showSearchButton = !!buttonProps && !!onClick;
|
|
13374
|
-
const inputGroup = /* @__PURE__ */
|
|
13573
|
+
const inputGroup = /* @__PURE__ */ jsxs123(
|
|
13375
13574
|
HStack,
|
|
13376
13575
|
{
|
|
13377
13576
|
position: "relative",
|
|
@@ -13382,7 +13581,7 @@ var Search = ({
|
|
|
13382
13581
|
Input_default["input-group"]
|
|
13383
13582
|
),
|
|
13384
13583
|
children: [
|
|
13385
|
-
showIcon && /* @__PURE__ */
|
|
13584
|
+
showIcon && /* @__PURE__ */ jsx317(
|
|
13386
13585
|
Icon,
|
|
13387
13586
|
{
|
|
13388
13587
|
icon: SearchIcon,
|
|
@@ -13393,7 +13592,7 @@ var Search = ({
|
|
|
13393
13592
|
)
|
|
13394
13593
|
}
|
|
13395
13594
|
),
|
|
13396
|
-
/* @__PURE__ */
|
|
13595
|
+
/* @__PURE__ */ jsx317(
|
|
13397
13596
|
Box,
|
|
13398
13597
|
{
|
|
13399
13598
|
as: Input,
|
|
@@ -13423,8 +13622,8 @@ var Search = ({
|
|
|
13423
13622
|
)
|
|
13424
13623
|
}
|
|
13425
13624
|
),
|
|
13426
|
-
hasSuggestions && /* @__PURE__ */
|
|
13427
|
-
/* @__PURE__ */
|
|
13625
|
+
hasSuggestions && /* @__PURE__ */ jsxs123(Fragment13, { children: [
|
|
13626
|
+
/* @__PURE__ */ jsx317(
|
|
13428
13627
|
SearchSuggestions,
|
|
13429
13628
|
{
|
|
13430
13629
|
id: suggestionsId,
|
|
@@ -13435,9 +13634,9 @@ var Search = ({
|
|
|
13435
13634
|
showSuggestions: context.showSuggestions
|
|
13436
13635
|
}
|
|
13437
13636
|
),
|
|
13438
|
-
/* @__PURE__ */
|
|
13637
|
+
/* @__PURE__ */ jsx317(VisuallyHidden, { id: suggestionsDescriptionId, children: t(texts27.useArrowKeys) })
|
|
13439
13638
|
] }),
|
|
13440
|
-
hasValue && /* @__PURE__ */
|
|
13639
|
+
hasValue && /* @__PURE__ */ jsx317(
|
|
13441
13640
|
ClearButton,
|
|
13442
13641
|
{
|
|
13443
13642
|
size: "component",
|
|
@@ -13452,10 +13651,10 @@ var Search = ({
|
|
|
13452
13651
|
]
|
|
13453
13652
|
}
|
|
13454
13653
|
);
|
|
13455
|
-
return /* @__PURE__ */
|
|
13654
|
+
return /* @__PURE__ */ jsxs123("div", { children: [
|
|
13456
13655
|
renderLabel({ htmlFor: uniqueId, label }),
|
|
13457
|
-
/* @__PURE__ */
|
|
13458
|
-
showSearchButton ? /* @__PURE__ */
|
|
13656
|
+
/* @__PURE__ */ jsxs123("div", { children: [
|
|
13657
|
+
showSearchButton ? /* @__PURE__ */ jsxs123(
|
|
13459
13658
|
Grid,
|
|
13460
13659
|
{
|
|
13461
13660
|
className,
|
|
@@ -13467,7 +13666,7 @@ var Search = ({
|
|
|
13467
13666
|
style,
|
|
13468
13667
|
children: [
|
|
13469
13668
|
inputGroup,
|
|
13470
|
-
/* @__PURE__ */
|
|
13669
|
+
/* @__PURE__ */ jsx317(
|
|
13471
13670
|
Button,
|
|
13472
13671
|
{
|
|
13473
13672
|
size: componentSize,
|
|
@@ -13514,7 +13713,7 @@ import {
|
|
|
13514
13713
|
useRef as useRef34,
|
|
13515
13714
|
useState as useState28
|
|
13516
13715
|
} from "react";
|
|
13517
|
-
import { jsx as
|
|
13716
|
+
import { jsx as jsx318 } from "react/jsx-runtime";
|
|
13518
13717
|
var SearchAutocompleteWrapper = (props) => {
|
|
13519
13718
|
const {
|
|
13520
13719
|
value,
|
|
@@ -13577,7 +13776,7 @@ var SearchAutocompleteWrapper = (props) => {
|
|
|
13577
13776
|
};
|
|
13578
13777
|
const inputRef = useRef34(null);
|
|
13579
13778
|
const suggestionsRef = useRef34(null);
|
|
13580
|
-
useOnClickOutside([inputRef
|
|
13779
|
+
useOnClickOutside([inputRef, suggestionsRef], () => {
|
|
13581
13780
|
closeSuggestions();
|
|
13582
13781
|
});
|
|
13583
13782
|
useOnKeyDown("Tab", () => closeSuggestions());
|
|
@@ -13590,7 +13789,7 @@ var SearchAutocompleteWrapper = (props) => {
|
|
|
13590
13789
|
inputValue,
|
|
13591
13790
|
onSugggestionClick: handleSuggestionClick
|
|
13592
13791
|
};
|
|
13593
|
-
return /* @__PURE__ */
|
|
13792
|
+
return /* @__PURE__ */ jsx318(AutocompleteSearchContext, { value: contextProps, children });
|
|
13594
13793
|
};
|
|
13595
13794
|
SearchAutocompleteWrapper.displayName = "SearchAutocompleteWrapper";
|
|
13596
13795
|
|
|
@@ -13606,7 +13805,7 @@ var Skeleton_default = {
|
|
|
13606
13805
|
};
|
|
13607
13806
|
|
|
13608
13807
|
// src/components/Skeleton/Skeleton.tsx
|
|
13609
|
-
import { jsx as
|
|
13808
|
+
import { jsx as jsx319 } from "react/jsx-runtime";
|
|
13610
13809
|
var Skeleton = ({
|
|
13611
13810
|
width,
|
|
13612
13811
|
height,
|
|
@@ -13616,7 +13815,7 @@ var Skeleton = ({
|
|
|
13616
13815
|
ref,
|
|
13617
13816
|
...rest
|
|
13618
13817
|
}) => {
|
|
13619
|
-
return /* @__PURE__ */
|
|
13818
|
+
return /* @__PURE__ */ jsx319(
|
|
13620
13819
|
Box,
|
|
13621
13820
|
{
|
|
13622
13821
|
width,
|
|
@@ -13636,7 +13835,7 @@ var SkipToContent_default = {
|
|
|
13636
13835
|
};
|
|
13637
13836
|
|
|
13638
13837
|
// src/components/SkipToContent/SkipToContent.tsx
|
|
13639
|
-
import { jsx as
|
|
13838
|
+
import { jsx as jsx320 } from "react/jsx-runtime";
|
|
13640
13839
|
var SkipToContent = ({
|
|
13641
13840
|
text = "Til hovedinnhold",
|
|
13642
13841
|
top = 0,
|
|
@@ -13646,7 +13845,7 @@ var SkipToContent = ({
|
|
|
13646
13845
|
style,
|
|
13647
13846
|
...rest
|
|
13648
13847
|
}) => {
|
|
13649
|
-
return /* @__PURE__ */
|
|
13848
|
+
return /* @__PURE__ */ jsx320(
|
|
13650
13849
|
Contrast,
|
|
13651
13850
|
{
|
|
13652
13851
|
padding: "x0.25",
|
|
@@ -13658,7 +13857,7 @@ var SkipToContent = ({
|
|
|
13658
13857
|
className: cn(className, SkipToContent_default.wrapper),
|
|
13659
13858
|
style,
|
|
13660
13859
|
top,
|
|
13661
|
-
children: /* @__PURE__ */
|
|
13860
|
+
children: /* @__PURE__ */ jsx320(Link, { ...rest, ...htmlProps, id, typographyType: "bodyShortMedium", children: text })
|
|
13662
13861
|
}
|
|
13663
13862
|
);
|
|
13664
13863
|
};
|
|
@@ -13676,7 +13875,7 @@ var SplitButton_default = {
|
|
|
13676
13875
|
};
|
|
13677
13876
|
|
|
13678
13877
|
// src/components/SplitButton/SplitButton.tsx
|
|
13679
|
-
import { jsx as
|
|
13878
|
+
import { jsx as jsx321, jsxs as jsxs124 } from "react/jsx-runtime";
|
|
13680
13879
|
var SplitButton = ({
|
|
13681
13880
|
size: size2,
|
|
13682
13881
|
primaryAction,
|
|
@@ -13691,8 +13890,8 @@ var SplitButton = ({
|
|
|
13691
13890
|
purpose,
|
|
13692
13891
|
size: size2
|
|
13693
13892
|
};
|
|
13694
|
-
return /* @__PURE__ */
|
|
13695
|
-
/* @__PURE__ */
|
|
13893
|
+
return /* @__PURE__ */ jsxs124("div", { className: cn(className, SplitButton_default.container), ...rest, children: [
|
|
13894
|
+
/* @__PURE__ */ jsx321(
|
|
13696
13895
|
Button,
|
|
13697
13896
|
{
|
|
13698
13897
|
...buttonStyleProps,
|
|
@@ -13701,8 +13900,8 @@ var SplitButton = ({
|
|
|
13701
13900
|
className: SplitButton_default.main
|
|
13702
13901
|
}
|
|
13703
13902
|
),
|
|
13704
|
-
/* @__PURE__ */
|
|
13705
|
-
/* @__PURE__ */
|
|
13903
|
+
/* @__PURE__ */ jsxs124(OverflowMenuGroup, { isOpen, setIsOpen, children: [
|
|
13904
|
+
/* @__PURE__ */ jsx321(
|
|
13706
13905
|
Button,
|
|
13707
13906
|
{
|
|
13708
13907
|
...buttonStyleProps,
|
|
@@ -13716,7 +13915,7 @@ var SplitButton = ({
|
|
|
13716
13915
|
type: "button"
|
|
13717
13916
|
}
|
|
13718
13917
|
),
|
|
13719
|
-
/* @__PURE__ */
|
|
13918
|
+
/* @__PURE__ */ jsx321(OverflowMenu, { placement: "bottom-end", children: /* @__PURE__ */ jsx321(OverflowMenuList, { children: secondaryActions.map((item, index) => /* @__PURE__ */ jsx321(OverflowMenuButton, { ...item, children: item.children }, index)) }) })
|
|
13720
13919
|
] })
|
|
13721
13920
|
] });
|
|
13722
13921
|
};
|
|
@@ -13734,7 +13933,7 @@ var texts28 = createTexts({
|
|
|
13734
13933
|
// src/components/Table/collapsible/CollapsibleRow.tsx
|
|
13735
13934
|
import {
|
|
13736
13935
|
Children as Children4,
|
|
13737
|
-
Fragment as
|
|
13936
|
+
Fragment as Fragment14,
|
|
13738
13937
|
cloneElement as cloneElement6,
|
|
13739
13938
|
isValidElement as isValidElement6,
|
|
13740
13939
|
useEffect as useEffect33,
|
|
@@ -13750,14 +13949,14 @@ var CollapsibleTableContext = createContext16({
|
|
|
13750
13949
|
var useCollapsibleTableContext = () => useContext24(CollapsibleTableContext);
|
|
13751
13950
|
|
|
13752
13951
|
// src/components/Table/normal/Body.tsx
|
|
13753
|
-
import { jsx as
|
|
13754
|
-
var Body = (props) => /* @__PURE__ */
|
|
13952
|
+
import { jsx as jsx322 } from "react/jsx-runtime";
|
|
13953
|
+
var Body = (props) => /* @__PURE__ */ jsx322("tbody", { ...props });
|
|
13755
13954
|
Body.displayName = "Table.Body";
|
|
13756
13955
|
|
|
13757
13956
|
// src/components/Table/normal/Head.tsx
|
|
13758
13957
|
import { createContext as createContext17, useContext as useContext25 } from "react";
|
|
13759
|
-
import { jsx as
|
|
13760
|
-
var Head = ({ children, ...rest }) => /* @__PURE__ */
|
|
13958
|
+
import { jsx as jsx323 } from "react/jsx-runtime";
|
|
13959
|
+
var Head = ({ children, ...rest }) => /* @__PURE__ */ jsx323("thead", { ...rest, children: /* @__PURE__ */ jsx323(HeadContext, { value: true, children }) });
|
|
13761
13960
|
var HeadContext = createContext17(false);
|
|
13762
13961
|
function useIsInTableHead() {
|
|
13763
13962
|
const isInTableHead = useContext25(HeadContext);
|
|
@@ -13765,7 +13964,7 @@ function useIsInTableHead() {
|
|
|
13765
13964
|
}
|
|
13766
13965
|
|
|
13767
13966
|
// src/components/Table/normal/Cell.tsx
|
|
13768
|
-
import { jsx as
|
|
13967
|
+
import { jsx as jsx324 } from "react/jsx-runtime";
|
|
13769
13968
|
var Cell = ({
|
|
13770
13969
|
children,
|
|
13771
13970
|
type: _type,
|
|
@@ -13778,7 +13977,7 @@ var Cell = ({
|
|
|
13778
13977
|
const type = _type != null ? _type : isInHead ? "head" : "data";
|
|
13779
13978
|
const { isCollapsibleChild } = collapsibleProps != null ? collapsibleProps : {};
|
|
13780
13979
|
const isComplexLayout = layout === "text and icon";
|
|
13781
|
-
return isCollapsibleChild ? /* @__PURE__ */
|
|
13980
|
+
return isCollapsibleChild ? /* @__PURE__ */ jsx324(DescriptionListDesc, { children }) : type === "head" ? /* @__PURE__ */ jsx324(
|
|
13782
13981
|
"th",
|
|
13783
13982
|
{
|
|
13784
13983
|
...rest,
|
|
@@ -13787,26 +13986,26 @@ var Cell = ({
|
|
|
13787
13986
|
!isComplexLayout && Table_default[`cell--${layout}`],
|
|
13788
13987
|
Table_default["cell--head"]
|
|
13789
13988
|
),
|
|
13790
|
-
children: isComplexLayout ? /* @__PURE__ */
|
|
13989
|
+
children: isComplexLayout ? /* @__PURE__ */ jsx324("div", { className: Table_default.cell__inner, children }) : children
|
|
13791
13990
|
}
|
|
13792
|
-
) : /* @__PURE__ */
|
|
13991
|
+
) : /* @__PURE__ */ jsx324(
|
|
13793
13992
|
"td",
|
|
13794
13993
|
{
|
|
13795
13994
|
...rest,
|
|
13796
13995
|
className: cn(className, !isComplexLayout && Table_default[`cell--${layout}`]),
|
|
13797
|
-
children: isComplexLayout ? /* @__PURE__ */
|
|
13996
|
+
children: isComplexLayout ? /* @__PURE__ */ jsx324("div", { className: Table_default.cell__inner, children }) : children
|
|
13798
13997
|
}
|
|
13799
13998
|
);
|
|
13800
13999
|
};
|
|
13801
14000
|
Cell.displayName = "Table.Cell";
|
|
13802
14001
|
|
|
13803
14002
|
// src/components/Table/normal/Foot.tsx
|
|
13804
|
-
import { jsx as
|
|
13805
|
-
var Foot = (props) => /* @__PURE__ */
|
|
14003
|
+
import { jsx as jsx325 } from "react/jsx-runtime";
|
|
14004
|
+
var Foot = (props) => /* @__PURE__ */ jsx325("tfoot", { ...props });
|
|
13806
14005
|
Foot.displayName = "Table.Foot";
|
|
13807
14006
|
|
|
13808
14007
|
// src/components/Table/normal/Row.tsx
|
|
13809
|
-
import { jsx as
|
|
14008
|
+
import { jsx as jsx326 } from "react/jsx-runtime";
|
|
13810
14009
|
var Row = ({
|
|
13811
14010
|
type: _type,
|
|
13812
14011
|
mode = "normal",
|
|
@@ -13817,7 +14016,7 @@ var Row = ({
|
|
|
13817
14016
|
}) => {
|
|
13818
14017
|
const isInHeader = useIsInTableHead();
|
|
13819
14018
|
const type = _type != null ? _type : isInHeader ? "head" : "body";
|
|
13820
|
-
return /* @__PURE__ */
|
|
14019
|
+
return /* @__PURE__ */ jsx326(
|
|
13821
14020
|
"tr",
|
|
13822
14021
|
{
|
|
13823
14022
|
className: cn(
|
|
@@ -13837,7 +14036,7 @@ var Row = ({
|
|
|
13837
14036
|
Row.displayName = "Table.Row";
|
|
13838
14037
|
|
|
13839
14038
|
// src/components/Table/normal/SortCell.tsx
|
|
13840
|
-
import { jsx as
|
|
14039
|
+
import { jsx as jsx327, jsxs as jsxs125 } from "react/jsx-runtime";
|
|
13841
14040
|
var SortCell = ({
|
|
13842
14041
|
isSorted,
|
|
13843
14042
|
sortOrder,
|
|
@@ -13851,13 +14050,13 @@ var SortCell = ({
|
|
|
13851
14050
|
if (sortOrder === "ascending") return ChevronDownIcon;
|
|
13852
14051
|
return ChevronUpIcon;
|
|
13853
14052
|
};
|
|
13854
|
-
return /* @__PURE__ */
|
|
14053
|
+
return /* @__PURE__ */ jsx327(
|
|
13855
14054
|
Cell,
|
|
13856
14055
|
{
|
|
13857
14056
|
type: "head",
|
|
13858
14057
|
"aria-sort": isSorted && sortOrder ? sortOrder : void 0,
|
|
13859
14058
|
...rest,
|
|
13860
|
-
children: /* @__PURE__ */
|
|
14059
|
+
children: /* @__PURE__ */ jsxs125(
|
|
13861
14060
|
StylelessButton,
|
|
13862
14061
|
{
|
|
13863
14062
|
onClick,
|
|
@@ -13866,7 +14065,7 @@ var SortCell = ({
|
|
|
13866
14065
|
children: [
|
|
13867
14066
|
children,
|
|
13868
14067
|
" ",
|
|
13869
|
-
/* @__PURE__ */
|
|
14068
|
+
/* @__PURE__ */ jsx327(Icon, { icon: SortIcon(), iconSize: "component" })
|
|
13870
14069
|
]
|
|
13871
14070
|
}
|
|
13872
14071
|
)
|
|
@@ -13885,7 +14084,7 @@ var texts29 = createTexts({
|
|
|
13885
14084
|
});
|
|
13886
14085
|
|
|
13887
14086
|
// src/components/Table/normal/Table.tsx
|
|
13888
|
-
import { jsx as
|
|
14087
|
+
import { jsx as jsx328 } from "react/jsx-runtime";
|
|
13889
14088
|
var Table = ({
|
|
13890
14089
|
size: size2 = "medium",
|
|
13891
14090
|
stickyHeader,
|
|
@@ -13904,7 +14103,7 @@ var Table = ({
|
|
|
13904
14103
|
return "medium";
|
|
13905
14104
|
}
|
|
13906
14105
|
};
|
|
13907
|
-
return /* @__PURE__ */
|
|
14106
|
+
return /* @__PURE__ */ jsx328(
|
|
13908
14107
|
"table",
|
|
13909
14108
|
{
|
|
13910
14109
|
...rest,
|
|
@@ -13931,7 +14130,7 @@ import {
|
|
|
13931
14130
|
useRef as useRef35,
|
|
13932
14131
|
useState as useState30
|
|
13933
14132
|
} from "react";
|
|
13934
|
-
import { jsx as
|
|
14133
|
+
import { jsx as jsx329 } from "react/jsx-runtime";
|
|
13935
14134
|
var TableWrapper = ({ className, ...rest }) => {
|
|
13936
14135
|
const themeContext = useContext26(ThemeContext);
|
|
13937
14136
|
const container2 = themeContext == null ? void 0 : themeContext.el;
|
|
@@ -13956,7 +14155,7 @@ var TableWrapper = ({ className, ...rest }) => {
|
|
|
13956
14155
|
window.addEventListener("resize", handleResize);
|
|
13957
14156
|
return () => window.removeEventListener("resize", handleResize);
|
|
13958
14157
|
});
|
|
13959
|
-
return /* @__PURE__ */
|
|
14158
|
+
return /* @__PURE__ */ jsx329(
|
|
13960
14159
|
"div",
|
|
13961
14160
|
{
|
|
13962
14161
|
ref: wrapperRef,
|
|
@@ -13983,7 +14182,7 @@ Table2.Row = Row;
|
|
|
13983
14182
|
Table2.Foot = Foot;
|
|
13984
14183
|
|
|
13985
14184
|
// src/components/Table/collapsible/CollapsibleRow.tsx
|
|
13986
|
-
import { Fragment as
|
|
14185
|
+
import { Fragment as Fragment15, jsx as jsx330, jsxs as jsxs126 } from "react/jsx-runtime";
|
|
13987
14186
|
var CollapsibleRow = ({
|
|
13988
14187
|
type: _type,
|
|
13989
14188
|
className,
|
|
@@ -14026,24 +14225,24 @@ var CollapsibleRow = ({
|
|
|
14026
14225
|
const collapsedRenderedChildren = isCollapsed && collapsedHeaderValues.length > 0 ? collapsedChildren.map(function(child, index) {
|
|
14027
14226
|
const id = derivativeIdGenerator(prefix2, index.toString());
|
|
14028
14227
|
collapsibleIds.push(id);
|
|
14029
|
-
return /* @__PURE__ */
|
|
14030
|
-
/* @__PURE__ */
|
|
14228
|
+
return /* @__PURE__ */ jsxs126(Fragment14, { children: [
|
|
14229
|
+
/* @__PURE__ */ jsx330(DescriptionListTerm, { children: collapsedHeaderValues[index].content }),
|
|
14031
14230
|
isValidElement6(child) && cloneElement6(child, {
|
|
14032
14231
|
collapsibleProps: { isCollapsibleChild: true }
|
|
14033
14232
|
})
|
|
14034
14233
|
] }, `DL-${index}`);
|
|
14035
14234
|
}) : null;
|
|
14036
|
-
const collapsedRows = collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */
|
|
14235
|
+
const collapsedRows = collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ jsx330(Row, { ...rowProps(), children: /* @__PURE__ */ jsx330(Cell, { colSpan: definingColumnIndex.length + 1, children: /* @__PURE__ */ jsx330(DescriptionList, { children: collapsedRenderedChildren }) }) }) : null;
|
|
14037
14236
|
const definingColumnCells = childrenArray.slice().filter((column, index) => definingColumnIndex.indexOf(index) > -1).sort((a, b) => {
|
|
14038
14237
|
return definingColumnIndex.indexOf(childrenArray.indexOf(a)) - definingColumnIndex.indexOf(childrenArray.indexOf(b));
|
|
14039
14238
|
});
|
|
14040
14239
|
const headerRow = () => {
|
|
14041
14240
|
if (type !== "head" || !isCollapsed) return null;
|
|
14042
|
-
return /* @__PURE__ */
|
|
14241
|
+
return /* @__PURE__ */ jsx330(Row, { ref, ...rowProps(), children: /* @__PURE__ */ jsxs126(Fragment15, { children: [
|
|
14043
14242
|
definingColumnCells,
|
|
14044
|
-
/* @__PURE__ */
|
|
14243
|
+
/* @__PURE__ */ jsxs126(Table2.Cell, { type: "head", layout: "center", children: [
|
|
14045
14244
|
t(texts30.expand),
|
|
14046
|
-
/* @__PURE__ */
|
|
14245
|
+
/* @__PURE__ */ jsx330(VisuallyHidden, { children: t(texts30.row) })
|
|
14047
14246
|
] })
|
|
14048
14247
|
] }) });
|
|
14049
14248
|
};
|
|
@@ -14051,16 +14250,16 @@ var CollapsibleRow = ({
|
|
|
14051
14250
|
const rowWithChevron = () => {
|
|
14052
14251
|
if (type !== "body" || !isCollapsed) return null;
|
|
14053
14252
|
const iconState = childrenCollapsed ? "down" : "up";
|
|
14054
|
-
return /* @__PURE__ */
|
|
14253
|
+
return /* @__PURE__ */ jsxs126(Row, { ref, ...rowProps(!childrenCollapsed && true), children: [
|
|
14055
14254
|
definingColumnCells,
|
|
14056
|
-
/* @__PURE__ */
|
|
14255
|
+
/* @__PURE__ */ jsx330(Table2.Cell, { children: /* @__PURE__ */ jsx330(
|
|
14057
14256
|
StylelessButton,
|
|
14058
14257
|
{
|
|
14059
14258
|
onClick: () => setChildrenCollapsed(!childrenCollapsed),
|
|
14060
14259
|
"aria-expanded": !childrenCollapsed,
|
|
14061
14260
|
"aria-controls": idList,
|
|
14062
14261
|
className: cn(Table_default["collapse-button"], focusable),
|
|
14063
|
-
children: /* @__PURE__ */
|
|
14262
|
+
children: /* @__PURE__ */ jsx330(
|
|
14064
14263
|
Icon,
|
|
14065
14264
|
{
|
|
14066
14265
|
icon: AnimatedChevronUpDownIcon,
|
|
@@ -14072,13 +14271,13 @@ var CollapsibleRow = ({
|
|
|
14072
14271
|
) })
|
|
14073
14272
|
] });
|
|
14074
14273
|
};
|
|
14075
|
-
return isCollapsed && collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */
|
|
14274
|
+
return isCollapsed && collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ jsxs126(Fragment15, { children: [
|
|
14076
14275
|
headerRow(),
|
|
14077
|
-
type === "body" && /* @__PURE__ */
|
|
14276
|
+
type === "body" && /* @__PURE__ */ jsxs126(Fragment15, { children: [
|
|
14078
14277
|
rowWithChevron(),
|
|
14079
14278
|
childrenCollapsed ? null : collapsedRows
|
|
14080
14279
|
] })
|
|
14081
|
-
] }) : /* @__PURE__ */
|
|
14280
|
+
] }) : /* @__PURE__ */ jsx330(Row, { ref, ...rowProps(), children });
|
|
14082
14281
|
};
|
|
14083
14282
|
CollapsibleRow.displayName = "CollapsibleTable.Row";
|
|
14084
14283
|
var texts30 = createTexts({
|
|
@@ -14099,14 +14298,14 @@ var texts30 = createTexts({
|
|
|
14099
14298
|
});
|
|
14100
14299
|
|
|
14101
14300
|
// src/components/Table/collapsible/CollapsibleTable.tsx
|
|
14102
|
-
import { jsx as
|
|
14301
|
+
import { jsx as jsx331 } from "react/jsx-runtime";
|
|
14103
14302
|
var CollapsibleTable = ({
|
|
14104
14303
|
isCollapsed,
|
|
14105
14304
|
headerValues,
|
|
14106
14305
|
definingColumnIndex = [0],
|
|
14107
14306
|
...rest
|
|
14108
14307
|
}) => {
|
|
14109
|
-
return /* @__PURE__ */
|
|
14308
|
+
return /* @__PURE__ */ jsx331(
|
|
14110
14309
|
CollapsibleTableContext,
|
|
14111
14310
|
{
|
|
14112
14311
|
value: {
|
|
@@ -14114,7 +14313,7 @@ var CollapsibleTable = ({
|
|
|
14114
14313
|
headerValues,
|
|
14115
14314
|
definingColumnIndex
|
|
14116
14315
|
},
|
|
14117
|
-
children: /* @__PURE__ */
|
|
14316
|
+
children: /* @__PURE__ */ jsx331(Table2, { ...rest })
|
|
14118
14317
|
}
|
|
14119
14318
|
);
|
|
14120
14319
|
};
|
|
@@ -14164,13 +14363,13 @@ import {
|
|
|
14164
14363
|
useContext as useContext28,
|
|
14165
14364
|
useLayoutEffect as useLayoutEffect4
|
|
14166
14365
|
} from "react";
|
|
14167
|
-
import { jsx as
|
|
14366
|
+
import { jsx as jsx332 } from "react/jsx-runtime";
|
|
14168
14367
|
var TabContext = createContext19(null);
|
|
14169
14368
|
function TabWidthContextProvider({
|
|
14170
14369
|
children,
|
|
14171
14370
|
onChangeWidths
|
|
14172
14371
|
}) {
|
|
14173
|
-
return /* @__PURE__ */
|
|
14372
|
+
return /* @__PURE__ */ jsx332(
|
|
14174
14373
|
TabContext,
|
|
14175
14374
|
{
|
|
14176
14375
|
value: {
|
|
@@ -14202,7 +14401,7 @@ function useSetTabWidth(index, width) {
|
|
|
14202
14401
|
}
|
|
14203
14402
|
|
|
14204
14403
|
// src/components/Tabs/AddTabButton.tsx
|
|
14205
|
-
import { jsx as
|
|
14404
|
+
import { jsx as jsx333, jsxs as jsxs127 } from "react/jsx-runtime";
|
|
14206
14405
|
var AddTabButton = ({
|
|
14207
14406
|
ref,
|
|
14208
14407
|
children,
|
|
@@ -14215,7 +14414,7 @@ var AddTabButton = ({
|
|
|
14215
14414
|
const buttonRef = useRef36(null);
|
|
14216
14415
|
const combinedRef = useCombinedRef(ref, buttonRef);
|
|
14217
14416
|
const { tabContentDirection, size: size2 } = useTabsContext();
|
|
14218
|
-
return /* @__PURE__ */
|
|
14417
|
+
return /* @__PURE__ */ jsxs127(
|
|
14219
14418
|
"button",
|
|
14220
14419
|
{
|
|
14221
14420
|
...rest,
|
|
@@ -14228,8 +14427,8 @@ var AddTabButton = ({
|
|
|
14228
14427
|
focus_default["focusable--inset"]
|
|
14229
14428
|
),
|
|
14230
14429
|
children: [
|
|
14231
|
-
/* @__PURE__ */
|
|
14232
|
-
/* @__PURE__ */
|
|
14430
|
+
/* @__PURE__ */ jsx333(Icon, { icon: PlusIcon, iconSize: "inherit" }),
|
|
14431
|
+
/* @__PURE__ */ jsx333("span", { children })
|
|
14233
14432
|
]
|
|
14234
14433
|
}
|
|
14235
14434
|
);
|
|
@@ -14238,7 +14437,7 @@ AddTabButton.displayName = "AddTabButton";
|
|
|
14238
14437
|
|
|
14239
14438
|
// src/components/Tabs/Tabs.tsx
|
|
14240
14439
|
import { useEffect as useEffect34, useId as useId28, useRef as useRef37, useState as useState32 } from "react";
|
|
14241
|
-
import { jsx as
|
|
14440
|
+
import { jsx as jsx334 } from "react/jsx-runtime";
|
|
14242
14441
|
var TABS_SIZES = createSizes("small", "medium");
|
|
14243
14442
|
var Tabs = ({
|
|
14244
14443
|
id,
|
|
@@ -14269,7 +14468,7 @@ var Tabs = ({
|
|
|
14269
14468
|
setActiveTab(activeTab);
|
|
14270
14469
|
}
|
|
14271
14470
|
}, [activeTab, thisActiveTab]);
|
|
14272
|
-
return /* @__PURE__ */
|
|
14471
|
+
return /* @__PURE__ */ jsx334(
|
|
14273
14472
|
TabsContext,
|
|
14274
14473
|
{
|
|
14275
14474
|
value: {
|
|
@@ -14284,7 +14483,7 @@ var Tabs = ({
|
|
|
14284
14483
|
tabContentDirection,
|
|
14285
14484
|
addTabButtonProps
|
|
14286
14485
|
},
|
|
14287
|
-
children: /* @__PURE__ */
|
|
14486
|
+
children: /* @__PURE__ */ jsx334(
|
|
14288
14487
|
Box,
|
|
14289
14488
|
{
|
|
14290
14489
|
...getBaseHTMLProps(uniqueId, className, style, htmlProps, rest),
|
|
@@ -14303,7 +14502,7 @@ import {
|
|
|
14303
14502
|
useEffect as useEffect35,
|
|
14304
14503
|
useRef as useRef38
|
|
14305
14504
|
} from "react";
|
|
14306
|
-
import { jsx as
|
|
14505
|
+
import { jsx as jsx335, jsxs as jsxs128 } from "react/jsx-runtime";
|
|
14307
14506
|
var Tab = ({
|
|
14308
14507
|
active = false,
|
|
14309
14508
|
icon,
|
|
@@ -14346,7 +14545,7 @@ var Tab = ({
|
|
|
14346
14545
|
handleSelect();
|
|
14347
14546
|
onKeyDown == null ? void 0 : onKeyDown(e);
|
|
14348
14547
|
};
|
|
14349
|
-
return /* @__PURE__ */
|
|
14548
|
+
return /* @__PURE__ */ jsxs128(
|
|
14350
14549
|
"button",
|
|
14351
14550
|
{
|
|
14352
14551
|
...getBaseHTMLProps(
|
|
@@ -14371,8 +14570,8 @@ var Tab = ({
|
|
|
14371
14570
|
onKeyDown: handleOnKeyDown,
|
|
14372
14571
|
tabIndex: focus ? 0 : -1,
|
|
14373
14572
|
children: [
|
|
14374
|
-
icon && /* @__PURE__ */
|
|
14375
|
-
/* @__PURE__ */
|
|
14573
|
+
icon && /* @__PURE__ */ jsx335(Icon, { icon, iconSize: "component" }),
|
|
14574
|
+
/* @__PURE__ */ jsx335("span", { children })
|
|
14376
14575
|
]
|
|
14377
14576
|
}
|
|
14378
14577
|
);
|
|
@@ -14386,7 +14585,7 @@ import {
|
|
|
14386
14585
|
isValidElement as isValidElement7,
|
|
14387
14586
|
useState as useState33
|
|
14388
14587
|
} from "react";
|
|
14389
|
-
import { jsx as
|
|
14588
|
+
import { jsx as jsx336, jsxs as jsxs129 } from "react/jsx-runtime";
|
|
14390
14589
|
var TabList = ({
|
|
14391
14590
|
children,
|
|
14392
14591
|
id,
|
|
@@ -14444,7 +14643,7 @@ var TabList = ({
|
|
|
14444
14643
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
14445
14644
|
["--dds-tab-widths"]: widths.join(" ")
|
|
14446
14645
|
};
|
|
14447
|
-
return /* @__PURE__ */
|
|
14646
|
+
return /* @__PURE__ */ jsx336(TabWidthContextProvider, { onChangeWidths: setWidths, children: /* @__PURE__ */ jsxs129(
|
|
14448
14647
|
"div",
|
|
14449
14648
|
{
|
|
14450
14649
|
...rest,
|
|
@@ -14464,7 +14663,7 @@ var TabList = ({
|
|
|
14464
14663
|
style: { ...style, ...customWidths },
|
|
14465
14664
|
children: [
|
|
14466
14665
|
tabListChildren,
|
|
14467
|
-
hasButton && /* @__PURE__ */
|
|
14666
|
+
hasButton && /* @__PURE__ */ jsx336(
|
|
14468
14667
|
AddTabButton,
|
|
14469
14668
|
{
|
|
14470
14669
|
index: tabListChildren ? tabListChildren.length : 0,
|
|
@@ -14478,7 +14677,7 @@ var TabList = ({
|
|
|
14478
14677
|
TabList.displayName = "TabList";
|
|
14479
14678
|
|
|
14480
14679
|
// src/components/Tabs/TabPanel.tsx
|
|
14481
|
-
import { jsx as
|
|
14680
|
+
import { jsx as jsx337 } from "react/jsx-runtime";
|
|
14482
14681
|
var TabPanel = ({
|
|
14483
14682
|
active = false,
|
|
14484
14683
|
children,
|
|
@@ -14488,7 +14687,7 @@ var TabPanel = ({
|
|
|
14488
14687
|
htmlProps,
|
|
14489
14688
|
padding = "x0.25",
|
|
14490
14689
|
...rest
|
|
14491
|
-
}) => /* @__PURE__ */
|
|
14690
|
+
}) => /* @__PURE__ */ jsx337(
|
|
14492
14691
|
Box,
|
|
14493
14692
|
{
|
|
14494
14693
|
padding,
|
|
@@ -14507,7 +14706,7 @@ import {
|
|
|
14507
14706
|
cloneElement as cloneElement8,
|
|
14508
14707
|
isValidElement as isValidElement8
|
|
14509
14708
|
} from "react";
|
|
14510
|
-
import { jsx as
|
|
14709
|
+
import { jsx as jsx338 } from "react/jsx-runtime";
|
|
14511
14710
|
var TabPanels = ({ children, ref, ...rest }) => {
|
|
14512
14711
|
const { activeTab, tabsId, tabPanelsRef } = useTabsContext();
|
|
14513
14712
|
const combinedRef = useCombinedRef(ref, tabPanelsRef);
|
|
@@ -14522,7 +14721,7 @@ var TabPanels = ({ children, ref, ...rest }) => {
|
|
|
14522
14721
|
}
|
|
14523
14722
|
});
|
|
14524
14723
|
});
|
|
14525
|
-
return /* @__PURE__ */
|
|
14724
|
+
return /* @__PURE__ */ jsx338(Box, { ref: combinedRef, ...rest, children: panelChildren });
|
|
14526
14725
|
};
|
|
14527
14726
|
TabPanels.displayName = "TabPanels";
|
|
14528
14727
|
|
|
@@ -14543,7 +14742,7 @@ var Tag_default = {
|
|
|
14543
14742
|
};
|
|
14544
14743
|
|
|
14545
14744
|
// src/components/Tag/Tag.tsx
|
|
14546
|
-
import { jsx as
|
|
14745
|
+
import { jsx as jsx339, jsxs as jsxs130 } from "react/jsx-runtime";
|
|
14547
14746
|
var icons3 = {
|
|
14548
14747
|
info: InfoIcon,
|
|
14549
14748
|
danger: ErrorIcon,
|
|
@@ -14570,7 +14769,7 @@ var Tag = ({
|
|
|
14570
14769
|
...rest
|
|
14571
14770
|
}) => {
|
|
14572
14771
|
const icon = icons3[purpose];
|
|
14573
|
-
return /* @__PURE__ */
|
|
14772
|
+
return /* @__PURE__ */ jsxs130(
|
|
14574
14773
|
TextOverflowEllipsisWrapper,
|
|
14575
14774
|
{
|
|
14576
14775
|
...getBaseHTMLProps(
|
|
@@ -14587,8 +14786,8 @@ var Tag = ({
|
|
|
14587
14786
|
rest
|
|
14588
14787
|
),
|
|
14589
14788
|
children: [
|
|
14590
|
-
withIcon && icon && /* @__PURE__ */
|
|
14591
|
-
/* @__PURE__ */
|
|
14789
|
+
withIcon && icon && /* @__PURE__ */ jsx339(Icon, { icon, iconSize: "component" }),
|
|
14790
|
+
/* @__PURE__ */ jsx339(TextOverflowEllipsisInner, { children })
|
|
14592
14791
|
]
|
|
14593
14792
|
}
|
|
14594
14793
|
);
|
|
@@ -14611,7 +14810,7 @@ var TextInput_default = {
|
|
|
14611
14810
|
};
|
|
14612
14811
|
|
|
14613
14812
|
// src/components/TextInput/TextInput.tsx
|
|
14614
|
-
import { jsx as
|
|
14813
|
+
import { jsx as jsx340, jsxs as jsxs131 } from "react/jsx-runtime";
|
|
14615
14814
|
var TextInput = ({
|
|
14616
14815
|
label,
|
|
14617
14816
|
afterLabelContent,
|
|
@@ -14711,7 +14910,7 @@ var TextInput = ({
|
|
|
14711
14910
|
disabled && TextInput_default["affix--disabled"]
|
|
14712
14911
|
];
|
|
14713
14912
|
if (hasIcon) {
|
|
14714
|
-
extendedInput = /* @__PURE__ */
|
|
14913
|
+
extendedInput = /* @__PURE__ */ jsxs131(
|
|
14715
14914
|
Box,
|
|
14716
14915
|
{
|
|
14717
14916
|
className: cn(
|
|
@@ -14720,7 +14919,7 @@ var TextInput = ({
|
|
|
14720
14919
|
),
|
|
14721
14920
|
width: inputWidth,
|
|
14722
14921
|
children: [
|
|
14723
|
-
/* @__PURE__ */
|
|
14922
|
+
/* @__PURE__ */ jsx340(
|
|
14724
14923
|
Icon,
|
|
14725
14924
|
{
|
|
14726
14925
|
icon,
|
|
@@ -14731,7 +14930,7 @@ var TextInput = ({
|
|
|
14731
14930
|
)
|
|
14732
14931
|
}
|
|
14733
14932
|
),
|
|
14734
|
-
/* @__PURE__ */
|
|
14933
|
+
/* @__PURE__ */ jsx340(
|
|
14735
14934
|
StatefulInput,
|
|
14736
14935
|
{
|
|
14737
14936
|
className: cn(
|
|
@@ -14745,7 +14944,7 @@ var TextInput = ({
|
|
|
14745
14944
|
}
|
|
14746
14945
|
);
|
|
14747
14946
|
} else if (hasAffix) {
|
|
14748
|
-
extendedInput = /* @__PURE__ */
|
|
14947
|
+
extendedInput = /* @__PURE__ */ jsxs131(
|
|
14749
14948
|
Box,
|
|
14750
14949
|
{
|
|
14751
14950
|
position: "relative",
|
|
@@ -14753,7 +14952,7 @@ var TextInput = ({
|
|
|
14753
14952
|
alignItems: "center",
|
|
14754
14953
|
width: inputWidth,
|
|
14755
14954
|
children: [
|
|
14756
|
-
prefix2 && /* @__PURE__ */
|
|
14955
|
+
prefix2 && /* @__PURE__ */ jsx340(
|
|
14757
14956
|
"span",
|
|
14758
14957
|
{
|
|
14759
14958
|
ref: prefixRef,
|
|
@@ -14766,7 +14965,7 @@ var TextInput = ({
|
|
|
14766
14965
|
children: prefix2
|
|
14767
14966
|
}
|
|
14768
14967
|
),
|
|
14769
|
-
/* @__PURE__ */
|
|
14968
|
+
/* @__PURE__ */ jsx340(
|
|
14770
14969
|
StatefulInput,
|
|
14771
14970
|
{
|
|
14772
14971
|
style: {
|
|
@@ -14777,7 +14976,7 @@ var TextInput = ({
|
|
|
14777
14976
|
...generalInputProps
|
|
14778
14977
|
}
|
|
14779
14978
|
),
|
|
14780
|
-
suffix && /* @__PURE__ */
|
|
14979
|
+
suffix && /* @__PURE__ */ jsx340(
|
|
14781
14980
|
"span",
|
|
14782
14981
|
{
|
|
14783
14982
|
ref: suffixRef,
|
|
@@ -14795,7 +14994,7 @@ var TextInput = ({
|
|
|
14795
14994
|
}
|
|
14796
14995
|
);
|
|
14797
14996
|
}
|
|
14798
|
-
return /* @__PURE__ */
|
|
14997
|
+
return /* @__PURE__ */ jsxs131(
|
|
14799
14998
|
"div",
|
|
14800
14999
|
{
|
|
14801
15000
|
className: cn(
|
|
@@ -14814,8 +15013,8 @@ var TextInput = ({
|
|
|
14814
15013
|
readOnly,
|
|
14815
15014
|
afterLabelContent
|
|
14816
15015
|
}),
|
|
14817
|
-
extendedInput ? extendedInput : /* @__PURE__ */
|
|
14818
|
-
hasBottomContainer && /* @__PURE__ */
|
|
15016
|
+
extendedInput ? extendedInput : /* @__PURE__ */ jsx340(Box, { as: StatefulInput, width: inputWidth, ...generalInputProps }),
|
|
15017
|
+
hasBottomContainer && /* @__PURE__ */ jsxs131(
|
|
14819
15018
|
Box,
|
|
14820
15019
|
{
|
|
14821
15020
|
display: "flex",
|
|
@@ -14860,7 +15059,7 @@ var ToggleBar_default = {
|
|
|
14860
15059
|
};
|
|
14861
15060
|
|
|
14862
15061
|
// src/components/ToggleBar/ToggleBar.tsx
|
|
14863
|
-
import { jsx as
|
|
15062
|
+
import { jsx as jsx341, jsxs as jsxs132 } from "react/jsx-runtime";
|
|
14864
15063
|
var ToggleBar = (props) => {
|
|
14865
15064
|
const {
|
|
14866
15065
|
children,
|
|
@@ -14885,7 +15084,7 @@ var ToggleBar = (props) => {
|
|
|
14885
15084
|
(e) => onChange && onChange(e, e.target.value)
|
|
14886
15085
|
);
|
|
14887
15086
|
const labelId = label && `${uniqueId}-label`;
|
|
14888
|
-
return /* @__PURE__ */
|
|
15087
|
+
return /* @__PURE__ */ jsx341(
|
|
14889
15088
|
ToggleBarContext,
|
|
14890
15089
|
{
|
|
14891
15090
|
value: {
|
|
@@ -14895,7 +15094,7 @@ var ToggleBar = (props) => {
|
|
|
14895
15094
|
name,
|
|
14896
15095
|
value: groupValue
|
|
14897
15096
|
},
|
|
14898
|
-
children: /* @__PURE__ */
|
|
15097
|
+
children: /* @__PURE__ */ jsxs132(
|
|
14899
15098
|
VStack,
|
|
14900
15099
|
{
|
|
14901
15100
|
...getBaseHTMLProps(id, className, style, htmlProps, rest),
|
|
@@ -14904,8 +15103,8 @@ var ToggleBar = (props) => {
|
|
|
14904
15103
|
role: "radiogroup",
|
|
14905
15104
|
"aria-labelledby": labelId != null ? labelId : htmlProps == null ? void 0 : htmlProps["aria-labelledby"],
|
|
14906
15105
|
children: [
|
|
14907
|
-
label && /* @__PURE__ */
|
|
14908
|
-
/* @__PURE__ */
|
|
15106
|
+
label && /* @__PURE__ */ jsx341(Typography, { id: labelId, as: "span", typographyType: "labelMedium", children: label }),
|
|
15107
|
+
/* @__PURE__ */ jsx341("div", { className: ToggleBar_default.bar, children })
|
|
14909
15108
|
]
|
|
14910
15109
|
}
|
|
14911
15110
|
)
|
|
@@ -14916,7 +15115,7 @@ ToggleBar.displayName = "ToggleBar";
|
|
|
14916
15115
|
|
|
14917
15116
|
// src/components/ToggleBar/ToggleRadio.tsx
|
|
14918
15117
|
import { useId as useId31 } from "react";
|
|
14919
|
-
import { jsx as
|
|
15118
|
+
import { jsx as jsx342, jsxs as jsxs133 } from "react/jsx-runtime";
|
|
14920
15119
|
var typographyTypes = {
|
|
14921
15120
|
large: "bodyShortLarge",
|
|
14922
15121
|
medium: "bodyShortMedium",
|
|
@@ -14959,13 +15158,13 @@ var ToggleRadio = ({
|
|
|
14959
15158
|
const hasLabel = !!label;
|
|
14960
15159
|
const hasIcon = !!icon;
|
|
14961
15160
|
const contentTypeCn = !hasLabel ? "just-icon" : !hasIcon ? "just-text" : "with-text-and-icon";
|
|
14962
|
-
return /* @__PURE__ */
|
|
15161
|
+
return /* @__PURE__ */ jsxs133(
|
|
14963
15162
|
"label",
|
|
14964
15163
|
{
|
|
14965
15164
|
htmlFor: uniqueId,
|
|
14966
15165
|
className: cn(ToggleBar_default.label, ToggleBar_default[`label--${group.purpose}`]),
|
|
14967
15166
|
children: [
|
|
14968
|
-
/* @__PURE__ */
|
|
15167
|
+
/* @__PURE__ */ jsx342(
|
|
14969
15168
|
HiddenInput,
|
|
14970
15169
|
{
|
|
14971
15170
|
...getBaseHTMLProps(
|
|
@@ -14984,7 +15183,7 @@ var ToggleRadio = ({
|
|
|
14984
15183
|
"aria-labelledby": ariaLabelledBy
|
|
14985
15184
|
}
|
|
14986
15185
|
),
|
|
14987
|
-
/* @__PURE__ */
|
|
15186
|
+
/* @__PURE__ */ jsxs133(
|
|
14988
15187
|
Typography,
|
|
14989
15188
|
{
|
|
14990
15189
|
as: "span",
|
|
@@ -14997,8 +15196,8 @@ var ToggleRadio = ({
|
|
|
14997
15196
|
focus_default["focus-styled-sibling"]
|
|
14998
15197
|
),
|
|
14999
15198
|
children: [
|
|
15000
|
-
icon && /* @__PURE__ */
|
|
15001
|
-
label && /* @__PURE__ */
|
|
15199
|
+
icon && /* @__PURE__ */ jsx342(Icon, { icon, iconSize: "component" }),
|
|
15200
|
+
label && /* @__PURE__ */ jsx342("span", { children: label })
|
|
15002
15201
|
]
|
|
15003
15202
|
}
|
|
15004
15203
|
)
|
|
@@ -15020,7 +15219,7 @@ var ToggleButton_default = {
|
|
|
15020
15219
|
};
|
|
15021
15220
|
|
|
15022
15221
|
// src/components/ToggleButton/ToggleButton.tsx
|
|
15023
|
-
import { jsx as
|
|
15222
|
+
import { jsx as jsx343, jsxs as jsxs134 } from "react/jsx-runtime";
|
|
15024
15223
|
var ToggleButton = ({
|
|
15025
15224
|
id,
|
|
15026
15225
|
label,
|
|
@@ -15034,8 +15233,8 @@ var ToggleButton = ({
|
|
|
15034
15233
|
const generatedId = useId32();
|
|
15035
15234
|
const uniqueId = id != null ? id : `${generatedId}-toggleButton`;
|
|
15036
15235
|
const hasIcon = !!icon;
|
|
15037
|
-
return /* @__PURE__ */
|
|
15038
|
-
/* @__PURE__ */
|
|
15236
|
+
return /* @__PURE__ */ jsxs134(Box, { as: "label", htmlFor: uniqueId, width: "fit-content", children: [
|
|
15237
|
+
/* @__PURE__ */ jsx343(
|
|
15039
15238
|
HiddenInput,
|
|
15040
15239
|
{
|
|
15041
15240
|
...getBaseHTMLProps(
|
|
@@ -15048,7 +15247,7 @@ var ToggleButton = ({
|
|
|
15048
15247
|
type: "checkbox"
|
|
15049
15248
|
}
|
|
15050
15249
|
),
|
|
15051
|
-
/* @__PURE__ */
|
|
15250
|
+
/* @__PURE__ */ jsxs134(
|
|
15052
15251
|
"span",
|
|
15053
15252
|
{
|
|
15054
15253
|
className: cn(
|
|
@@ -15059,7 +15258,7 @@ var ToggleButton = ({
|
|
|
15059
15258
|
focus_default["focus-styled-sibling"]
|
|
15060
15259
|
),
|
|
15061
15260
|
children: [
|
|
15062
|
-
hasIcon && /* @__PURE__ */
|
|
15261
|
+
hasIcon && /* @__PURE__ */ jsx343(Icon, { icon, iconSize: "component" }),
|
|
15063
15262
|
" ",
|
|
15064
15263
|
label
|
|
15065
15264
|
]
|
|
@@ -15071,7 +15270,7 @@ ToggleButton.displayName = "ToggleButton";
|
|
|
15071
15270
|
|
|
15072
15271
|
// src/components/ToggleButton/ToggleButtonGroup.tsx
|
|
15073
15272
|
import { useId as useId33 } from "react";
|
|
15074
|
-
import { jsx as
|
|
15273
|
+
import { jsx as jsx344, jsxs as jsxs135 } from "react/jsx-runtime";
|
|
15075
15274
|
var ToggleButtonGroup = (props) => {
|
|
15076
15275
|
const {
|
|
15077
15276
|
children,
|
|
@@ -15086,7 +15285,7 @@ var ToggleButtonGroup = (props) => {
|
|
|
15086
15285
|
} = props;
|
|
15087
15286
|
const generatedId = useId33();
|
|
15088
15287
|
const uniqueLabelId = labelId != null ? labelId : `${generatedId}-ToggleButtonGroupLabel`;
|
|
15089
|
-
return /* @__PURE__ */
|
|
15288
|
+
return /* @__PURE__ */ jsxs135(
|
|
15090
15289
|
"div",
|
|
15091
15290
|
{
|
|
15092
15291
|
...getBaseHTMLProps(id, className, style, htmlProps, rest),
|
|
@@ -15094,7 +15293,7 @@ var ToggleButtonGroup = (props) => {
|
|
|
15094
15293
|
"aria-labelledby": label ? uniqueLabelId : void 0,
|
|
15095
15294
|
children: [
|
|
15096
15295
|
renderGroupLabel({ label, id: uniqueLabelId }),
|
|
15097
|
-
/* @__PURE__ */
|
|
15296
|
+
/* @__PURE__ */ jsx344(Box, { display: "flex", flexWrap: "wrap", gap: "x0.75", flexDirection: direction, children })
|
|
15098
15297
|
]
|
|
15099
15298
|
}
|
|
15100
15299
|
);
|
|
@@ -15313,6 +15512,7 @@ export {
|
|
|
15313
15512
|
MoreHorizontalIcon,
|
|
15314
15513
|
MoreVerticalIcon,
|
|
15315
15514
|
NativeSelect,
|
|
15515
|
+
NewsPopover,
|
|
15316
15516
|
NotarialIcon,
|
|
15317
15517
|
NotebookPenIcon,
|
|
15318
15518
|
NotificationsIcon,
|