@norges-domstoler/dds-components 0.0.0-dev-20261020070847 → 0.0.0-dev-20261023122108
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.cjs +105 -90
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +182 -160
- package/dist/index.d.cts +186 -90
- package/dist/index.d.mts +186 -90
- package/dist/index.mjs +105 -90
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1176,7 +1176,59 @@ function getBaseHTMLProps(id, className, style, htmlProps, unknownProps) {
|
|
|
1176
1176
|
});
|
|
1177
1177
|
}
|
|
1178
1178
|
//#endregion
|
|
1179
|
-
//#region src/
|
|
1179
|
+
//#region src/components/layout/common/Responsive.types.tsx
|
|
1180
|
+
const BREAKPOINTS = [
|
|
1181
|
+
"xs",
|
|
1182
|
+
"sm",
|
|
1183
|
+
"md",
|
|
1184
|
+
"lg",
|
|
1185
|
+
"xl"
|
|
1186
|
+
];
|
|
1187
|
+
const SPACING_SCALES = [
|
|
1188
|
+
"x0",
|
|
1189
|
+
"x0.125",
|
|
1190
|
+
"x0.25",
|
|
1191
|
+
"x0.5",
|
|
1192
|
+
"x0.75",
|
|
1193
|
+
"x1",
|
|
1194
|
+
"x1.5",
|
|
1195
|
+
"x2",
|
|
1196
|
+
"x2.5",
|
|
1197
|
+
"x3",
|
|
1198
|
+
"x4",
|
|
1199
|
+
"x6",
|
|
1200
|
+
"x10"
|
|
1201
|
+
];
|
|
1202
|
+
const SIZE_SCALE = [
|
|
1203
|
+
"0",
|
|
1204
|
+
"1",
|
|
1205
|
+
"2",
|
|
1206
|
+
"3",
|
|
1207
|
+
"4",
|
|
1208
|
+
"5",
|
|
1209
|
+
"6",
|
|
1210
|
+
"7",
|
|
1211
|
+
"8",
|
|
1212
|
+
"9",
|
|
1213
|
+
"10",
|
|
1214
|
+
"11",
|
|
1215
|
+
"12",
|
|
1216
|
+
"13",
|
|
1217
|
+
"14"
|
|
1218
|
+
];
|
|
1219
|
+
const Z_INDEXES = [
|
|
1220
|
+
"skiptocontent",
|
|
1221
|
+
"modal-backdrop",
|
|
1222
|
+
"drawer",
|
|
1223
|
+
"drawer-backdrop",
|
|
1224
|
+
"overflowmenu",
|
|
1225
|
+
"popover",
|
|
1226
|
+
"tooltip",
|
|
1227
|
+
"dropdown",
|
|
1228
|
+
"sticky",
|
|
1229
|
+
"absolute-element"
|
|
1230
|
+
];
|
|
1231
|
+
[...SIZE_SCALE];
|
|
1180
1232
|
function createSizes(...sizes) {
|
|
1181
1233
|
return sizes;
|
|
1182
1234
|
}
|
|
@@ -1298,42 +1350,6 @@ var layout_module_default = {
|
|
|
1298
1350
|
"dds-flow": "dds-layout-module__dds-flow"
|
|
1299
1351
|
};
|
|
1300
1352
|
//#endregion
|
|
1301
|
-
//#region src/components/layout/common/Responsive.types.tsx
|
|
1302
|
-
const BREAKPOINTS = [
|
|
1303
|
-
"xs",
|
|
1304
|
-
"sm",
|
|
1305
|
-
"md",
|
|
1306
|
-
"lg",
|
|
1307
|
-
"xl"
|
|
1308
|
-
];
|
|
1309
|
-
const SPACING_SCALES = [
|
|
1310
|
-
"x0",
|
|
1311
|
-
"x0.125",
|
|
1312
|
-
"x0.25",
|
|
1313
|
-
"x0.5",
|
|
1314
|
-
"x0.75",
|
|
1315
|
-
"x1",
|
|
1316
|
-
"x1.5",
|
|
1317
|
-
"x2",
|
|
1318
|
-
"x2.5",
|
|
1319
|
-
"x3",
|
|
1320
|
-
"x4",
|
|
1321
|
-
"x6",
|
|
1322
|
-
"x10"
|
|
1323
|
-
];
|
|
1324
|
-
const Z_INDEXES = [
|
|
1325
|
-
"skiptocontent",
|
|
1326
|
-
"modal-backdrop",
|
|
1327
|
-
"drawer",
|
|
1328
|
-
"drawer-backdrop",
|
|
1329
|
-
"overflowmenu",
|
|
1330
|
-
"popover",
|
|
1331
|
-
"tooltip",
|
|
1332
|
-
"dropdown",
|
|
1333
|
-
"sticky",
|
|
1334
|
-
"absolute-element"
|
|
1335
|
-
];
|
|
1336
|
-
//#endregion
|
|
1337
1353
|
//#region src/components/layout/common/utils.tsx
|
|
1338
1354
|
const TOKEN_PREFIX = "dds";
|
|
1339
1355
|
const hasValue = (value) => {
|
|
@@ -1766,16 +1782,14 @@ Badge.displayName = "Badge";
|
|
|
1766
1782
|
//#region src/components/Icon/Icon.tsx
|
|
1767
1783
|
const getSize = (iconSize) => {
|
|
1768
1784
|
switch (iconSize) {
|
|
1769
|
-
case "small": return "var(--dds-size-icon-small)";
|
|
1770
|
-
case "medium": return "var(--dds-size-icon-medium)";
|
|
1771
|
-
case "large": return "var(--dds-size-icon-large)";
|
|
1772
1785
|
case "component": return "var(--dds-size-icon-component)";
|
|
1773
1786
|
case "inherit": return "1em";
|
|
1774
|
-
default: return
|
|
1787
|
+
default: return `var(--dds-size-${iconSize})`;
|
|
1775
1788
|
}
|
|
1776
1789
|
};
|
|
1790
|
+
[...SIZE_SCALE];
|
|
1777
1791
|
function Icon(props) {
|
|
1778
|
-
const { id, iconSize = "
|
|
1792
|
+
const { id, iconSize = "6", color = "currentcolor", icon, className, style, htmlProps, iconState, ...rest } = props;
|
|
1779
1793
|
const size = getSize(iconSize);
|
|
1780
1794
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(icon, {
|
|
1781
1795
|
...getBaseHTMLProps(id, className, style, htmlProps, rest),
|
|
@@ -1892,7 +1906,7 @@ const commonTexts = createTexts({
|
|
|
1892
1906
|
//#endregion
|
|
1893
1907
|
//#region src/components/Spinner/Spinner.tsx
|
|
1894
1908
|
function Spinner(props) {
|
|
1895
|
-
const { size = "var(--dds-size-
|
|
1909
|
+
const { size = "var(--dds-size-6)", color = "icon-action-resting", tooltip, id, className, htmlProps, style, ...rest } = props;
|
|
1896
1910
|
const { t } = useTranslation();
|
|
1897
1911
|
const uniqueId = `${(0, react.useId)()}-spinnerTitle`;
|
|
1898
1912
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
@@ -1975,7 +1989,7 @@ const DropdownItem = ({ icon, className, children: propChildren, purpose = "defa
|
|
|
1975
1989
|
loading && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
1976
1990
|
className: cn(utilStyles_module_default["center-absolute"]),
|
|
1977
1991
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Spinner, {
|
|
1978
|
-
size: "var(--dds-size-icon-
|
|
1992
|
+
size: "var(--dds-size-icon-component)",
|
|
1979
1993
|
tooltip: loadingTooltip
|
|
1980
1994
|
})
|
|
1981
1995
|
}),
|
|
@@ -2155,7 +2169,7 @@ var Icon_module_default = { "svg": "dds-Icon-module__svg" };
|
|
|
2155
2169
|
//#endregion
|
|
2156
2170
|
//#region src/components/Icon/utils/SvgWrapper.tsx
|
|
2157
2171
|
const size = 24;
|
|
2158
|
-
const sizeCSS = "var(--dds-size-
|
|
2172
|
+
const sizeCSS = "var(--dds-size-6)";
|
|
2159
2173
|
function SvgWrapper({ height, width, fill = "currentColor", className, title, children, iconState: _iconState, style, ...props }) {
|
|
2160
2174
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
2161
2175
|
...props,
|
|
@@ -4675,7 +4689,7 @@ const Label = ({ showRequiredStyling, readOnly, id, className, style, htmlProps,
|
|
|
4675
4689
|
const content = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
|
|
4676
4690
|
readOnly && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Icon, {
|
|
4677
4691
|
icon: LockFilledIcon,
|
|
4678
|
-
iconSize: "
|
|
4692
|
+
iconSize: "4",
|
|
4679
4693
|
className: Label_module_default["read-only__icon"]
|
|
4680
4694
|
}),
|
|
4681
4695
|
children,
|
|
@@ -4993,11 +5007,12 @@ var Toggle_module_default = {
|
|
|
4993
5007
|
"label": "dds-Toggle-module__label",
|
|
4994
5008
|
"track": "dds-Toggle-module__track",
|
|
4995
5009
|
"thumb": "dds-Toggle-module__thumb",
|
|
4996
|
-
"checkmark": "dds-Toggle-module__checkmark",
|
|
4997
5010
|
"unchecked-icon": "dds-Toggle-module__unchecked-icon",
|
|
4998
5011
|
"checked-icon": "dds-Toggle-module__checked-icon",
|
|
5012
|
+
"checkmark": "dds-Toggle-module__checkmark",
|
|
4999
5013
|
"labeltext--readonly": "dds-Toggle-module__labeltext--readonly",
|
|
5000
5014
|
"icon--read-only": "dds-Toggle-module__icon--read-only",
|
|
5015
|
+
"small": "dds-Toggle-module__small",
|
|
5001
5016
|
"medium": "dds-Toggle-module__medium",
|
|
5002
5017
|
"large": "dds-Toggle-module__large",
|
|
5003
5018
|
"label--is-loading": "dds-Toggle-module__label--is-loading",
|
|
@@ -5018,7 +5033,11 @@ const Toggle = ({ id, children, size = "medium", checked: checkedProp, defaultCh
|
|
|
5018
5033
|
const { t } = useTranslation();
|
|
5019
5034
|
const generatedId = (0, react.useId)();
|
|
5020
5035
|
const uniqueId = id ?? `${generatedId}-toggle`;
|
|
5021
|
-
const iconSize =
|
|
5036
|
+
const iconSize = {
|
|
5037
|
+
small: "3",
|
|
5038
|
+
medium: "4",
|
|
5039
|
+
large: "5"
|
|
5040
|
+
}[size];
|
|
5022
5041
|
const [checked, setChecked] = useControllableState({
|
|
5023
5042
|
value: checkedProp,
|
|
5024
5043
|
defaultValue: defaultChecked ?? false,
|
|
@@ -5057,7 +5076,10 @@ const Toggle = ({ id, children, size = "medium", checked: checkedProp, defaultCh
|
|
|
5057
5076
|
className: cn(Toggle_module_default.track, focus_module_default["focus-styled-sibling"]),
|
|
5058
5077
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
5059
5078
|
className: Toggle_module_default.thumb,
|
|
5060
|
-
children: isLoading ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Spinner, {
|
|
5079
|
+
children: isLoading ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Spinner, {
|
|
5080
|
+
size: `var(--dds-size-${iconSize})`,
|
|
5081
|
+
color: "currentColor"
|
|
5082
|
+
}) : marker
|
|
5061
5083
|
})
|
|
5062
5084
|
}),
|
|
5063
5085
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
@@ -5065,7 +5087,7 @@ const Toggle = ({ id, children, size = "medium", checked: checkedProp, defaultCh
|
|
|
5065
5087
|
children: [
|
|
5066
5088
|
readOnly && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Icon, {
|
|
5067
5089
|
icon: LockFilledIcon,
|
|
5068
|
-
iconSize: "
|
|
5090
|
+
iconSize: "4",
|
|
5069
5091
|
className: Toggle_module_default["icon--read-only"]
|
|
5070
5092
|
}),
|
|
5071
5093
|
children,
|
|
@@ -5425,6 +5447,10 @@ const CardExpandableBody = ({ children, className, style, htmlProps, padding, ..
|
|
|
5425
5447
|
};
|
|
5426
5448
|
CardExpandableBody.displayName = "CardExpandableBody";
|
|
5427
5449
|
//#endregion
|
|
5450
|
+
//#region src/components/Card/CardSelectionControl/CardSelectable.context.tsx
|
|
5451
|
+
const CardSelectableContext = (0, react.createContext)({});
|
|
5452
|
+
const useCardSelectableContext = () => (0, react.useContext)(CardSelectableContext);
|
|
5453
|
+
//#endregion
|
|
5428
5454
|
//#region src/components/SelectionControl/Checkbox/CheckboxGroupContext.tsx
|
|
5429
5455
|
const CheckboxGroupContext = (0, react.createContext)(null);
|
|
5430
5456
|
const useCheckboxGroup = () => {
|
|
@@ -5450,10 +5476,18 @@ const SelectionControl = ({ controlType, className, ...rest }) => /* @__PURE__ *
|
|
|
5450
5476
|
className: cn(className, SelectionControl_module_default["selection-control"], controlType === "radio" && SelectionControl_module_default["selection-control--radio"]),
|
|
5451
5477
|
...rest
|
|
5452
5478
|
});
|
|
5453
|
-
const Label$1 = ({ disabled, hasText, controlType, className, size = "medium", ...rest }) => {
|
|
5479
|
+
const Label$1 = ({ disabled, hasText, controlType, className, size = "medium", style, ...rest }) => {
|
|
5480
|
+
const styleVariables = { "--dds-size-sl": {
|
|
5481
|
+
small: "var(--dds-size-5)",
|
|
5482
|
+
medium: "var(--dds-size-6)"
|
|
5483
|
+
}[size] };
|
|
5454
5484
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Box, {
|
|
5455
5485
|
as: "label",
|
|
5456
5486
|
position: "relative",
|
|
5487
|
+
style: {
|
|
5488
|
+
...style,
|
|
5489
|
+
...styleVariables
|
|
5490
|
+
},
|
|
5457
5491
|
display: "flex",
|
|
5458
5492
|
alignItems: "center",
|
|
5459
5493
|
width: "fit-content",
|
|
@@ -5472,7 +5506,7 @@ const renderGroupLabel = ({ id, showRequiredStyling, readOnly, label }) => {
|
|
|
5472
5506
|
readOnly && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Icon, {
|
|
5473
5507
|
icon: LockIcon,
|
|
5474
5508
|
className: Label_module_default["read-only__icon"],
|
|
5475
|
-
iconSize: "
|
|
5509
|
+
iconSize: "4"
|
|
5476
5510
|
}),
|
|
5477
5511
|
label,
|
|
5478
5512
|
" ",
|
|
@@ -5773,10 +5807,6 @@ const RadioButtonGroup = ({ name, label, groupId, errorMessage, tip, disabled =
|
|
|
5773
5807
|
};
|
|
5774
5808
|
RadioButtonGroup.displayName = "RadioButtonGroup";
|
|
5775
5809
|
//#endregion
|
|
5776
|
-
//#region src/components/Card/CardSelectionControl/CardSelectable.context.tsx
|
|
5777
|
-
const CardSelectableContext = (0, react.createContext)({});
|
|
5778
|
-
const useCardSelectableContext = () => (0, react.useContext)(CardSelectableContext);
|
|
5779
|
-
//#endregion
|
|
5780
5810
|
//#region src/components/Card/CardSelectionControl/CardSelectable.tsx
|
|
5781
5811
|
const CardSelectable = (props) => {
|
|
5782
5812
|
const { appearance = "filled", cardType: cardTypeProp, id, padding, controlPlacementProps = {}, "aria-describedby": ariaDescribedby, className, htmlProps, style, ...rest } = props;
|
|
@@ -5800,9 +5830,9 @@ Provide \`cardType\` either via a parent <CardSelectableGroup> or directly on th
|
|
|
5800
5830
|
value
|
|
5801
5831
|
};
|
|
5802
5832
|
const customStyles = {
|
|
5803
|
-
["--dds-selection-control-card-padding"]: padding ?? "var(--dds-spacing-x1-5) var(--dds-spacing-x1-5) var(--dds-spacing-x1-5) calc(var(--dds-size-
|
|
5833
|
+
["--dds-selection-control-card-padding"]: padding ?? "var(--dds-spacing-x1-5) var(--dds-spacing-x1-5) var(--dds-spacing-x1-5) calc(var(--dds-size-6) + var(--dds-spacing-x0-5) + var(--dds-spacing-x1))",
|
|
5804
5834
|
["--dds-selection-control-card-control-top"]: top,
|
|
5805
|
-
["--dds-selection-control-card-control-left"]: left ?? `var(--dds-spacing-x1
|
|
5835
|
+
["--dds-selection-control-card-control-left"]: left ?? `var(--dds-spacing-x1)`
|
|
5806
5836
|
};
|
|
5807
5837
|
const sharedProps = {
|
|
5808
5838
|
...getBaseHTMLProps(id, classNames, {
|
|
@@ -6600,7 +6630,7 @@ function Calendar(props) {
|
|
|
6600
6630
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(VStack, {
|
|
6601
6631
|
...calendarProps,
|
|
6602
6632
|
gap: "x0.25",
|
|
6603
|
-
height: "
|
|
6633
|
+
height: "calc(var(--dds-size-10) * 8 + var(--dds-spacing-x0-5))",
|
|
6604
6634
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(HStack, {
|
|
6605
6635
|
justifyContent: "space-between",
|
|
6606
6636
|
alignItems: "center",
|
|
@@ -6654,32 +6684,19 @@ const texts$23 = createTexts({
|
|
|
6654
6684
|
}
|
|
6655
6685
|
});
|
|
6656
6686
|
//#endregion
|
|
6657
|
-
//#region src/components/helpers/InlineIconButton/InlineIconButton.module.css
|
|
6658
|
-
var InlineIconButton_module_default = { "button": "dds-InlineIconButton-module__button" };
|
|
6659
|
-
//#endregion
|
|
6660
|
-
//#region src/components/helpers/InlineIconButton/InlineIconButton.tsx
|
|
6661
|
-
const InlineIconButton = ({ className, size, icon, color, ...rest }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StylelessButton, {
|
|
6662
|
-
className: cn(className, InlineIconButton_module_default.button, _key1),
|
|
6663
|
-
...rest,
|
|
6664
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Icon, {
|
|
6665
|
-
icon,
|
|
6666
|
-
iconSize: size,
|
|
6667
|
-
color
|
|
6668
|
-
})
|
|
6669
|
-
});
|
|
6670
|
-
InlineIconButton.displayName = "InlineIconButton";
|
|
6671
|
-
//#endregion
|
|
6672
6687
|
//#region src/components/date-inputs/DatePicker/DateField/CalendarButton.tsx
|
|
6673
6688
|
function CalendarButton({ componentSize = "medium", isReadOnly, ...props }) {
|
|
6674
6689
|
const ref = (0, react.useRef)(null);
|
|
6675
6690
|
const { buttonProps } = (0, _react_aria_button.useButton)(props, ref);
|
|
6676
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
6691
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
|
|
6677
6692
|
...buttonProps,
|
|
6678
6693
|
ref,
|
|
6679
6694
|
type: "button",
|
|
6680
|
-
className: cn(buttonProps.className, DateInput_module_default["popover-button"], isReadOnly && DateInput_module_default["popover-button--readonly"], !props.isDisabled && "dds-focus-module__focusable", Input_module_default["input-group__absolute-el"],
|
|
6695
|
+
className: cn(buttonProps.className, DateInput_module_default["popover-button"], isReadOnly && DateInput_module_default["popover-button--readonly"], !props.isDisabled && "dds-focus-module__focusable", Input_module_default["input-group__absolute-el"], Button_module_default.clear),
|
|
6681
6696
|
icon: CalendarIcon,
|
|
6682
|
-
size:
|
|
6697
|
+
size: componentSize,
|
|
6698
|
+
purpose: "tertiary",
|
|
6699
|
+
disabled: props.isDisabled
|
|
6683
6700
|
});
|
|
6684
6701
|
}
|
|
6685
6702
|
//#endregion
|
|
@@ -7516,6 +7533,7 @@ const FavStar = ({ id, className, style, onChange, checked: checkedProp, default
|
|
|
7516
7533
|
defaultValue: defaultChecked ?? false,
|
|
7517
7534
|
onChange
|
|
7518
7535
|
});
|
|
7536
|
+
const iconSize = size === "large" ? "8" : "6";
|
|
7519
7537
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
7520
7538
|
className: cn(className, FavStar_module_default.container, FavStar_module_default[`container--${size}`], focus_module_default["has-focusable-input"]),
|
|
7521
7539
|
style,
|
|
@@ -7530,12 +7548,12 @@ const FavStar = ({ id, className, style, onChange, checked: checkedProp, default
|
|
|
7530
7548
|
"aria-label": props["aria-label"] ?? t(texts$19.favourite)
|
|
7531
7549
|
}),
|
|
7532
7550
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Icon, {
|
|
7533
|
-
iconSize
|
|
7551
|
+
iconSize,
|
|
7534
7552
|
icon: StarIcon,
|
|
7535
7553
|
className: FavStar_module_default.icon
|
|
7536
7554
|
}),
|
|
7537
7555
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Icon, {
|
|
7538
|
-
iconSize
|
|
7556
|
+
iconSize,
|
|
7539
7557
|
icon: StarFilledIcon,
|
|
7540
7558
|
className: cn(FavStar_module_default.icon, !checked && FavStar_module_default["icon--invisible"])
|
|
7541
7559
|
})
|
|
@@ -7557,9 +7575,7 @@ var Feedback_module_default = {
|
|
|
7557
7575
|
"rating-container--horizontal": "dds-Feedback-module__rating-container--horizontal",
|
|
7558
7576
|
"rating-container--vertical": "dds-Feedback-module__rating-container--vertical",
|
|
7559
7577
|
"rating-submitted-title": "dds-Feedback-module__rating-submitted-title",
|
|
7560
|
-
"button": "dds-Feedback-module__button"
|
|
7561
|
-
"button--horizontal": "dds-Feedback-module__button--horizontal",
|
|
7562
|
-
"button--vertical": "dds-Feedback-module__button--vertical"
|
|
7578
|
+
"button": "dds-Feedback-module__button"
|
|
7563
7579
|
};
|
|
7564
7580
|
//#endregion
|
|
7565
7581
|
//#region src/components/TextArea/TextArea.module.css
|
|
@@ -9537,7 +9553,7 @@ const NewsPopover = ({ id, className, style, htmlProps, header, news, defaultAct
|
|
|
9537
9553
|
}),
|
|
9538
9554
|
news.map((slide, i) => {
|
|
9539
9555
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Icon, {
|
|
9540
|
-
iconSize: "
|
|
9556
|
+
iconSize: "4",
|
|
9541
9557
|
icon: CircleFilledIcon,
|
|
9542
9558
|
color: activeSlide === i ? "brand-tertiary-default" : "brand-tertiary-subtle"
|
|
9543
9559
|
}, `${slide.heading}-${i}`);
|
|
@@ -9845,7 +9861,7 @@ const DDSOption = ({ testId, ...props }) => /* @__PURE__ */ (0, react_jsx_runtim
|
|
|
9845
9861
|
},
|
|
9846
9862
|
children: [props.isSelected && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Icon, {
|
|
9847
9863
|
icon: CheckIcon,
|
|
9848
|
-
iconSize: "
|
|
9864
|
+
iconSize: "component"
|
|
9849
9865
|
}), props.children]
|
|
9850
9866
|
});
|
|
9851
9867
|
const CustomOption = ({ testId, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Option, {
|
|
@@ -12064,11 +12080,11 @@ const ProgressTrackerItem = (props) => {
|
|
|
12064
12080
|
const stepNumberContent = (0, react.useMemo)(() => {
|
|
12065
12081
|
if (completed) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Icon, {
|
|
12066
12082
|
icon: CheckIcon,
|
|
12067
|
-
iconSize: "
|
|
12083
|
+
iconSize: "5"
|
|
12068
12084
|
});
|
|
12069
12085
|
if (icon !== void 0) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Icon, {
|
|
12070
12086
|
icon,
|
|
12071
|
-
iconSize: "
|
|
12087
|
+
iconSize: "5"
|
|
12072
12088
|
});
|
|
12073
12089
|
return stepNumber;
|
|
12074
12090
|
}, [
|
|
@@ -13235,7 +13251,6 @@ Tag.displayName = "Tag";
|
|
|
13235
13251
|
//#endregion
|
|
13236
13252
|
//#region src/components/TextInput/TextInput.module.css
|
|
13237
13253
|
var TextInput_module_default = {
|
|
13238
|
-
"container": "dds-TextInput-module__container",
|
|
13239
13254
|
"container--readonly": "dds-TextInput-module__container--readonly",
|
|
13240
13255
|
"container--disabled": "dds-TextInput-module__container--disabled",
|
|
13241
13256
|
"input--extended": "dds-TextInput-module__input--extended",
|
|
@@ -13307,7 +13322,7 @@ const TextInput = ({ label, afterLabelContent, disabled, readOnly, errorMessage,
|
|
|
13307
13322
|
disabled && TextInput_module_default["affix--disabled"]
|
|
13308
13323
|
];
|
|
13309
13324
|
if (hasIcon) extendedInput = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Box, {
|
|
13310
|
-
className: cn(Input_module_default["input-group"]
|
|
13325
|
+
className: cn(Input_module_default["input-group"]),
|
|
13311
13326
|
width: inputWidth,
|
|
13312
13327
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Icon, {
|
|
13313
13328
|
icon,
|
|
@@ -13347,7 +13362,7 @@ const TextInput = ({ label, afterLabelContent, disabled, readOnly, errorMessage,
|
|
|
13347
13362
|
]
|
|
13348
13363
|
});
|
|
13349
13364
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
13350
|
-
className: cn(className, Input_module_default.container,
|
|
13365
|
+
className: cn(className, Input_module_default.container, readOnly && TextInput_module_default["container--readonly"], disabled && TextInput_module_default["container--disabled"], typographyStyles_module_default[`body-short-${componentSize}`]),
|
|
13351
13366
|
style,
|
|
13352
13367
|
children: [
|
|
13353
13368
|
renderLabel({
|
|
@@ -13477,7 +13492,7 @@ const ToggleRadio = ({ value, name, onChange, checked, "aria-label": ariaLabel,
|
|
|
13477
13492
|
as: "span",
|
|
13478
13493
|
justifyContent: "center",
|
|
13479
13494
|
alignItems: "center",
|
|
13480
|
-
className: cn(typographyStyles_module_default[`body-short-${group.size}`], ToggleBar_module_default.content, Button_module_default[contentTypeCn], hasLabel && hasIcon && Button_module_default["with-icon-left"], Button_module_default[`button--${group.size}`], focus_module_default["focus-styled-sibling"]),
|
|
13495
|
+
className: cn(typographyStyles_module_default[`body-short-${group.size}`], ToggleBar_module_default.content, Button_module_default[contentTypeCn], Button_module_default[`button--${group.size}`], hasLabel && hasIcon && Button_module_default["with-icon-left"], Button_module_default[`button--${group.size}`], focus_module_default["focus-styled-sibling"]),
|
|
13481
13496
|
children: [icon && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Icon, {
|
|
13482
13497
|
icon,
|
|
13483
13498
|
iconSize: "component"
|