@norges-domstoler/dds-components 23.2.0 → 23.2.2
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 +9 -53
- package/dist/index.css.map +1 -1
- package/dist/index.js +18 -20
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +18 -20
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2725,8 +2725,8 @@ function FileSignedIcon(props) {
|
|
|
2725
2725
|
/* @__PURE__ */ jsx82(
|
|
2726
2726
|
"path",
|
|
2727
2727
|
{
|
|
2728
|
-
|
|
2729
|
-
|
|
2728
|
+
fillRule: "evenodd",
|
|
2729
|
+
clipRule: "evenodd",
|
|
2730
2730
|
d: "M3.25 4V20C3.25 20.7293 3.53994 21.4286 4.05566 21.9443C4.57139 22.4601 5.27065 22.75 6 22.75H18C18.7293 22.75 19.4286 22.4601 19.9443 21.9443C20.4601 21.4286 20.75 20.7293 20.75 20V8C20.7505 7.58448 20.669 7.17288 20.5098 6.78906C20.3503 6.40474 20.1154 6.05507 19.8203 5.76172L16.2344 2.17578C15.9414 1.88199 15.5932 1.64911 15.21 1.49024C14.8265 1.33136 14.4151 1.24949 14 1.25H6C5.27066 1.25 4.57139 1.53994 4.05566 2.05567C3.53994 2.57139 3.25 3.27066 3.25 4ZM14.8232 7.17676C14.7764 7.12988 14.75 7.0663 14.75 7V2.92969C14.9059 3.00878 15.0491 3.11116 15.1729 3.23535L18.7637 6.82617C18.8883 6.95016 18.991 7.0937 19.0703 7.25H15C14.9337 7.25 14.8701 7.22364 14.8232 7.17676ZM5.11621 20.8838C4.88179 20.6494 4.75 20.3315 4.75 20V4C4.75 3.66848 4.88179 3.35063 5.11621 3.11621C5.35063 2.88179 5.66848 2.75 6 2.75H13.25V7C13.25 7.46413 13.4345 7.90912 13.7627 8.23731C14.0909 8.5655 14.5359 8.75 15 8.75H19.25V20C19.25 20.3315 19.1182 20.6494 18.8838 20.8838C18.6494 21.1182 18.3315 21.25 18 21.25H6C5.66848 21.25 5.35063 21.1182 5.11621 20.8838Z"
|
|
2731
2731
|
}
|
|
2732
2732
|
),
|
|
@@ -3032,8 +3032,8 @@ function LockFilledIcon(props) {
|
|
|
3032
3032
|
return /* @__PURE__ */ jsx116(SvgWrapper, { ...props, children: /* @__PURE__ */ jsx116(
|
|
3033
3033
|
"path",
|
|
3034
3034
|
{
|
|
3035
|
-
|
|
3036
|
-
|
|
3035
|
+
fillRule: "evenodd",
|
|
3036
|
+
clipRule: "evenodd",
|
|
3037
3037
|
d: "M12 1C13.5913 1 15.117 1.63259 16.2422 2.75781C17.3674 3.88303 18 5.4087 18 7V9.25H18.2227C19.7547 9.25028 20.7499 10.7135 20.75 12.1816V19.8184C20.7499 21.2865 19.7547 22.7497 18.2227 22.75H5.77734C4.24534 22.7497 3.25008 21.2865 3.25 19.8184V12.1816C3.25008 10.7135 4.24534 9.25028 5.77734 9.25H6V7C6 5.4087 6.63259 3.88303 7.75781 2.75781C8.88303 1.63259 10.4087 1 12 1ZM12 13.25C11.0335 13.25 10.25 14.0335 10.25 15C10.25 15.5943 10.5471 16.1183 11 16.4346V17.5C11 18.0523 11.4477 18.5 12 18.5C12.5523 18.5 13 18.0523 13 17.5V16.4346C13.4529 16.1183 13.75 15.5943 13.75 15C13.75 14.0335 12.9665 13.25 12 13.25ZM12 3C10.9391 3 9.92202 3.42173 9.17188 4.17188C8.42173 4.92202 8 5.93913 8 7V9.25H16V7C16 5.93913 15.5783 4.92202 14.8281 4.17188C14.078 3.42173 13.0609 3 12 3Z"
|
|
3038
3038
|
}
|
|
3039
3039
|
) });
|
|
@@ -3677,8 +3677,8 @@ function MoonIcon(props) {
|
|
|
3677
3677
|
return /* @__PURE__ */ jsx190(SvgWrapper, { ...props, children: /* @__PURE__ */ jsx190(
|
|
3678
3678
|
"path",
|
|
3679
3679
|
{
|
|
3680
|
-
|
|
3681
|
-
|
|
3680
|
+
fillRule: "evenodd",
|
|
3681
|
+
clipRule: "evenodd",
|
|
3682
3682
|
d: "M9.17618 3.11544C8.96372 2.90299 8.64498 2.83783 8.36619 2.94987C4.78244 4.39007 2.25004 7.89837 2.25004 12C2.25004 17.3847 6.61526 21.75 12 21.75C16.1016 21.75 19.6099 19.2176 21.0501 15.6338C21.1622 15.355 21.097 15.0363 20.8846 14.8238C20.6721 14.6114 20.3534 14.5462 20.0746 14.6582C19.1254 15.0397 18.0882 15.25 17 15.25C12.4437 15.25 8.75004 11.5563 8.75004 6.99996C8.75004 5.91181 8.96032 4.87461 9.34176 3.92544C9.4538 3.64665 9.38864 3.3279 9.17618 3.11544ZM7.42919 5.13067C7.3116 5.736 7.25004 6.36102 7.25004 6.99996C7.25004 12.3847 11.6153 16.75 17 16.75C17.639 16.75 18.264 16.6884 18.8693 16.5708C17.39 18.7895 14.865 20.25 12 20.25C7.44369 20.25 3.75004 16.5563 3.75004 12C3.75004 9.13502 5.21054 6.60997 7.42919 5.13067Z"
|
|
3683
3683
|
}
|
|
3684
3684
|
) });
|
|
@@ -4901,7 +4901,6 @@ var Toggle = ({
|
|
|
4901
4901
|
}
|
|
4902
4902
|
)
|
|
4903
4903
|
] }) : /* @__PURE__ */ jsx216(Icon, { className: Toggle_default.checkmark, icon: CheckIcon, iconSize });
|
|
4904
|
-
console.log("disabled", disabled);
|
|
4905
4904
|
return /* @__PURE__ */ jsxs75(
|
|
4906
4905
|
"label",
|
|
4907
4906
|
{
|
|
@@ -6096,7 +6095,6 @@ Provide \`cardType\` either via a parent <CardSelectableGroup> or directly on th
|
|
|
6096
6095
|
error = group == null ? void 0 : group.error,
|
|
6097
6096
|
name = radioGroup == null ? void 0 : radioGroup.name,
|
|
6098
6097
|
value = radioGroup == null ? void 0 : radioGroup.value,
|
|
6099
|
-
defaultValue = radioGroup == null ? void 0 : radioGroup.defaultValue,
|
|
6100
6098
|
required = radioGroup == null ? void 0 : radioGroup.required
|
|
6101
6099
|
} = { ...group, ...rest };
|
|
6102
6100
|
const classNames = cn(
|
|
@@ -6109,8 +6107,7 @@ Provide \`cardType\` either via a parent <CardSelectableGroup> or directly on th
|
|
|
6109
6107
|
const radioContextProps = {
|
|
6110
6108
|
name,
|
|
6111
6109
|
required,
|
|
6112
|
-
value
|
|
6113
|
-
defaultValue
|
|
6110
|
+
value
|
|
6114
6111
|
};
|
|
6115
6112
|
const customStyles = {
|
|
6116
6113
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -6261,8 +6258,7 @@ var Chip = ({
|
|
|
6261
6258
|
onClick,
|
|
6262
6259
|
"aria-label": ariaLabel != null ? ariaLabel : t(texts4.removeChip) + (children ? ` ${children}` : ""),
|
|
6263
6260
|
bleedMarginBlock: "x0.25",
|
|
6264
|
-
reflectivePadding: true
|
|
6265
|
-
absolute: false
|
|
6261
|
+
reflectivePadding: true
|
|
6266
6262
|
}
|
|
6267
6263
|
)
|
|
6268
6264
|
]
|
|
@@ -6460,6 +6456,8 @@ import { useRef as useRef11 } from "react";
|
|
|
6460
6456
|
|
|
6461
6457
|
// src/components/date-inputs/common/DateInput.module.css
|
|
6462
6458
|
var DateInput_default = {
|
|
6459
|
+
"date-group": "DateInput_date-group",
|
|
6460
|
+
"input-group": "DateInput_input-group",
|
|
6463
6461
|
"date-segment-container": "DateInput_date-segment-container",
|
|
6464
6462
|
segment: "DateInput_segment",
|
|
6465
6463
|
segment__placeholder: "DateInput_segment__placeholder",
|
|
@@ -7345,7 +7343,7 @@ function DateInput({
|
|
|
7345
7343
|
"div",
|
|
7346
7344
|
{
|
|
7347
7345
|
...groupProps,
|
|
7348
|
-
className: cn(className, Input_default.container),
|
|
7346
|
+
className: cn(className, Input_default.container, DateInput_default["date-group"]),
|
|
7349
7347
|
ref,
|
|
7350
7348
|
children: [
|
|
7351
7349
|
renderLabel({
|
|
@@ -7362,7 +7360,8 @@ function DateInput({
|
|
|
7362
7360
|
width: getInputWidth(width, "fit-content"),
|
|
7363
7361
|
className: cn(
|
|
7364
7362
|
Input_default["input-group"],
|
|
7365
|
-
typographyStyles_default[`body-short-${componentSize}`]
|
|
7363
|
+
typographyStyles_default[`body-short-${componentSize}`],
|
|
7364
|
+
DateInput_default["input-group"]
|
|
7366
7365
|
),
|
|
7367
7366
|
children: [
|
|
7368
7367
|
button,
|
|
@@ -11109,7 +11108,8 @@ var NewsPopover = ({
|
|
|
11109
11108
|
iconSize: "small",
|
|
11110
11109
|
icon: CircleFilledIcon,
|
|
11111
11110
|
color: active ? "brand-tertiary-default" : "brand-tertiary-subtle"
|
|
11112
|
-
}
|
|
11111
|
+
},
|
|
11112
|
+
`${slide.heading}-${i}`
|
|
11113
11113
|
);
|
|
11114
11114
|
}),
|
|
11115
11115
|
/* @__PURE__ */ jsx306(
|
|
@@ -11404,6 +11404,7 @@ var getCustomStyles = (size2, hasError, isReadOnly) => ({
|
|
|
11404
11404
|
overflowY: "auto",
|
|
11405
11405
|
position: "relative",
|
|
11406
11406
|
boxSizing: "border-box",
|
|
11407
|
+
padding: "var(--dds-spacing-x0-125)",
|
|
11407
11408
|
...scrollbarStyling
|
|
11408
11409
|
}),
|
|
11409
11410
|
option: (provided, state) => ({
|
|
@@ -11413,16 +11414,13 @@ var getCustomStyles = (size2, hasError, isReadOnly) => ({
|
|
|
11413
11414
|
alignItems: "center",
|
|
11414
11415
|
gap: "var(--dds-spacing-x0-25)",
|
|
11415
11416
|
padding: "var(--dds-spacing-x0-75)",
|
|
11417
|
+
borderRadius: "var(--dds-border-radius-surface)",
|
|
11416
11418
|
backgroundColor: "var(--dds-color-surface-default)",
|
|
11417
11419
|
...typography.option[size2],
|
|
11418
11420
|
color: "var(--dds-color-text-default)",
|
|
11419
11421
|
"@media (prefers-reduced-motion: no-preference)": {
|
|
11420
11422
|
transition: "color var(--dds-motion-micro-state), background-color var(--dds-motion-micro-state)"
|
|
11421
11423
|
},
|
|
11422
|
-
"&:hover": {
|
|
11423
|
-
color: "var(--dds-color-text-default)",
|
|
11424
|
-
backgroundColor: "var(--dds-color-surface-hover-subtle)"
|
|
11425
|
-
},
|
|
11426
11424
|
...state.isSelected && {
|
|
11427
11425
|
backgroundColor: "var(--dds-color-surface-selected-default)"
|
|
11428
11426
|
},
|
|
@@ -14267,7 +14265,7 @@ var Table = ({
|
|
|
14267
14265
|
withStripes && Table_default["table--with-stripes"],
|
|
14268
14266
|
stickyHeader && Table_default["table--sticky-header"],
|
|
14269
14267
|
scrollbar,
|
|
14270
|
-
typographyStyles_default[`body-
|
|
14268
|
+
typographyStyles_default[`body-long-${tgSize()}`]
|
|
14271
14269
|
),
|
|
14272
14270
|
children
|
|
14273
14271
|
}
|