@norges-domstoler/dds-components 21.9.2 → 21.10.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 +4 -6
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +7 -3
- package/dist/index.d.ts +7 -3
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -10127,7 +10127,7 @@ var NativeSelect = ({
|
|
|
10127
10127
|
setHasValue(false);
|
|
10128
10128
|
onChange == null ? void 0 : onChange(clearChangeEvent);
|
|
10129
10129
|
};
|
|
10130
|
-
const iconSize = componentSize === "
|
|
10130
|
+
const iconSize = componentSize === "medium" ? "medium" : "small";
|
|
10131
10131
|
return /* @__PURE__ */ jsxs68("div", { className, style, children: [
|
|
10132
10132
|
hasLabel && /* @__PURE__ */ jsx285(
|
|
10133
10133
|
Label,
|
|
@@ -10180,7 +10180,7 @@ var NativeSelect = ({
|
|
|
10180
10180
|
"aria-label": t(commonTexts.clearSelect),
|
|
10181
10181
|
onClick: clearInput,
|
|
10182
10182
|
size: iconSize,
|
|
10183
|
-
className:
|
|
10183
|
+
className: NativeSelect_default[`clear-button--${iconSize}`]
|
|
10184
10184
|
}
|
|
10185
10185
|
),
|
|
10186
10186
|
!multiple && /* @__PURE__ */ jsx285(
|
|
@@ -10188,7 +10188,7 @@ var NativeSelect = ({
|
|
|
10188
10188
|
{
|
|
10189
10189
|
icon: ChevronDownIcon,
|
|
10190
10190
|
iconSize,
|
|
10191
|
-
className: NativeSelect_default.icon
|
|
10191
|
+
className: cn(utilStyles_default["center-absolute-y"], NativeSelect_default.icon)
|
|
10192
10192
|
}
|
|
10193
10193
|
)
|
|
10194
10194
|
] }),
|
|
@@ -13129,11 +13129,12 @@ var TabPanel = ({
|
|
|
13129
13129
|
id,
|
|
13130
13130
|
className,
|
|
13131
13131
|
htmlProps,
|
|
13132
|
+
padding = "x0.25",
|
|
13132
13133
|
...rest
|
|
13133
13134
|
}) => /* @__PURE__ */ jsx315(
|
|
13134
13135
|
Box,
|
|
13135
13136
|
{
|
|
13136
|
-
padding
|
|
13137
|
+
padding,
|
|
13137
13138
|
...getBaseHTMLProps(id, cn(className, focusable), htmlProps, rest),
|
|
13138
13139
|
tabIndex: 0,
|
|
13139
13140
|
role: "tabpanel",
|
|
@@ -13164,7 +13165,7 @@ var TabPanels = ({ children, ref, ...rest }) => {
|
|
|
13164
13165
|
}
|
|
13165
13166
|
});
|
|
13166
13167
|
});
|
|
13167
|
-
return /* @__PURE__ */ jsx316(
|
|
13168
|
+
return /* @__PURE__ */ jsx316(Box, { ref: combinedRef, ...rest, children: panelChildren });
|
|
13168
13169
|
};
|
|
13169
13170
|
TabPanels.displayName = "TabPanels";
|
|
13170
13171
|
|