@norges-domstoler/dds-components 0.0.0-dev-20250926114347 → 0.0.0-dev-20250929080131
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.js +3 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10177,7 +10177,7 @@ var getCustomStyles = (size2, hasError, hasIcon, isReadOnly) => ({
|
|
|
10177
10177
|
cursor: "pointer",
|
|
10178
10178
|
display: "flex",
|
|
10179
10179
|
alignItems: "center",
|
|
10180
|
-
gap: "var(--dds-spacing-x0-
|
|
10180
|
+
gap: "var(--dds-spacing-x0-25)",
|
|
10181
10181
|
padding: "var(--dds-spacing-x0-75)",
|
|
10182
10182
|
backgroundColor: "var(--dds-color-surface-default)",
|
|
10183
10183
|
...typography.option[size2],
|
|
@@ -10243,10 +10243,9 @@ var getIndicatorIconSize = (componentSize) => {
|
|
|
10243
10243
|
}
|
|
10244
10244
|
};
|
|
10245
10245
|
var DDSOption = ({
|
|
10246
|
-
componentSize,
|
|
10247
10246
|
...props
|
|
10248
10247
|
}) => /* @__PURE__ */ (0, import_jsx_runtime285.jsxs)(Option, { ...props, children: [
|
|
10249
|
-
props.isSelected && /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(Icon, { icon: CheckIcon, iconSize:
|
|
10248
|
+
props.isSelected && /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(Icon, { icon: CheckIcon, iconSize: "small" }),
|
|
10250
10249
|
props.children
|
|
10251
10250
|
] });
|
|
10252
10251
|
var CustomOption = (props) => /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(Option, { ...props, children: import_react70.default.createElement(props.customElement, props) });
|
|
@@ -10437,7 +10436,7 @@ function Select({
|
|
|
10437
10436
|
if (customOptionElement) {
|
|
10438
10437
|
return /* @__PURE__ */ (0, import_jsx_runtime286.jsx)(CustomOption, { ...props, customElement: customOptionElement });
|
|
10439
10438
|
} else {
|
|
10440
|
-
return /* @__PURE__ */ (0, import_jsx_runtime286.jsx)(DDSOption, { ...props
|
|
10439
|
+
return /* @__PURE__ */ (0, import_jsx_runtime286.jsx)(DDSOption, { ...props });
|
|
10441
10440
|
}
|
|
10442
10441
|
},
|
|
10443
10442
|
[customOptionElement, componentSize]
|