@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.d.mts
CHANGED
|
@@ -4079,7 +4079,7 @@ type TabProps = BaseComponentPropsWithChildren<HTMLButtonElement, {
|
|
|
4079
4079
|
setFocus?: Dispatch<SetStateAction<number>>;
|
|
4080
4080
|
/** Indeksen til `<Tab>`. **OBS!** settes automatisk av forelder.*/
|
|
4081
4081
|
index?: number;
|
|
4082
|
-
/** Bredden til `<Tab>`.
|
|
4082
|
+
/** Bredden til `<Tab>`. Støtter samme enheter som `grid-template-columns`.
|
|
4083
4083
|
* @default "1fr"
|
|
4084
4084
|
*/
|
|
4085
4085
|
width?: CSS.Properties['width'];
|
|
@@ -4098,13 +4098,17 @@ declare const TabList: {
|
|
|
4098
4098
|
type TabPanelProps = BaseComponentPropsWithChildren<HTMLDivElement, {
|
|
4099
4099
|
/** Spesifiserer om panelet skal vises basert på aktiv fane. */
|
|
4100
4100
|
active?: boolean;
|
|
4101
|
+
/** CSS `padding`. Støtter standardverdier og dds spacing tokens skala, per brekkpunkt eller samme for alle skjermstørrelser.
|
|
4102
|
+
* @default 'x0.25'
|
|
4103
|
+
*/
|
|
4104
|
+
padding?: ResponsiveProps['padding'];
|
|
4101
4105
|
}>;
|
|
4102
4106
|
declare const TabPanel: {
|
|
4103
|
-
({ active, children, id, className, htmlProps, ...rest }: TabPanelProps): react_jsx_runtime.JSX.Element;
|
|
4107
|
+
({ active, children, id, className, htmlProps, padding, ...rest }: TabPanelProps): react_jsx_runtime.JSX.Element;
|
|
4104
4108
|
displayName: string;
|
|
4105
4109
|
};
|
|
4106
4110
|
|
|
4107
|
-
type TabPanelsProps = ComponentPropsWithRef<'div'>;
|
|
4111
|
+
type TabPanelsProps = Pick<ResponsiveProps, 'padding' | 'paddingBlock' | 'paddingInline'> & ComponentPropsWithRef<'div'>;
|
|
4108
4112
|
declare const TabPanels: {
|
|
4109
4113
|
({ children, ref, ...rest }: TabPanelsProps): react_jsx_runtime.JSX.Element;
|
|
4110
4114
|
displayName: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -4079,7 +4079,7 @@ type TabProps = BaseComponentPropsWithChildren<HTMLButtonElement, {
|
|
|
4079
4079
|
setFocus?: Dispatch<SetStateAction<number>>;
|
|
4080
4080
|
/** Indeksen til `<Tab>`. **OBS!** settes automatisk av forelder.*/
|
|
4081
4081
|
index?: number;
|
|
4082
|
-
/** Bredden til `<Tab>`.
|
|
4082
|
+
/** Bredden til `<Tab>`. Støtter samme enheter som `grid-template-columns`.
|
|
4083
4083
|
* @default "1fr"
|
|
4084
4084
|
*/
|
|
4085
4085
|
width?: CSS.Properties['width'];
|
|
@@ -4098,13 +4098,17 @@ declare const TabList: {
|
|
|
4098
4098
|
type TabPanelProps = BaseComponentPropsWithChildren<HTMLDivElement, {
|
|
4099
4099
|
/** Spesifiserer om panelet skal vises basert på aktiv fane. */
|
|
4100
4100
|
active?: boolean;
|
|
4101
|
+
/** CSS `padding`. Støtter standardverdier og dds spacing tokens skala, per brekkpunkt eller samme for alle skjermstørrelser.
|
|
4102
|
+
* @default 'x0.25'
|
|
4103
|
+
*/
|
|
4104
|
+
padding?: ResponsiveProps['padding'];
|
|
4101
4105
|
}>;
|
|
4102
4106
|
declare const TabPanel: {
|
|
4103
|
-
({ active, children, id, className, htmlProps, ...rest }: TabPanelProps): react_jsx_runtime.JSX.Element;
|
|
4107
|
+
({ active, children, id, className, htmlProps, padding, ...rest }: TabPanelProps): react_jsx_runtime.JSX.Element;
|
|
4104
4108
|
displayName: string;
|
|
4105
4109
|
};
|
|
4106
4110
|
|
|
4107
|
-
type TabPanelsProps = ComponentPropsWithRef<'div'>;
|
|
4111
|
+
type TabPanelsProps = Pick<ResponsiveProps, 'padding' | 'paddingBlock' | 'paddingInline'> & ComponentPropsWithRef<'div'>;
|
|
4108
4112
|
declare const TabPanels: {
|
|
4109
4113
|
({ children, ref, ...rest }: TabPanelsProps): react_jsx_runtime.JSX.Element;
|
|
4110
4114
|
displayName: string;
|
package/dist/index.js
CHANGED
|
@@ -10413,7 +10413,7 @@ var NativeSelect = ({
|
|
|
10413
10413
|
setHasValue(false);
|
|
10414
10414
|
onChange == null ? void 0 : onChange(clearChangeEvent);
|
|
10415
10415
|
};
|
|
10416
|
-
const iconSize = componentSize === "
|
|
10416
|
+
const iconSize = componentSize === "medium" ? "medium" : "small";
|
|
10417
10417
|
return /* @__PURE__ */ (0, import_jsx_runtime286.jsxs)("div", { className, style, children: [
|
|
10418
10418
|
hasLabel && /* @__PURE__ */ (0, import_jsx_runtime286.jsx)(
|
|
10419
10419
|
Label,
|
|
@@ -10466,7 +10466,7 @@ var NativeSelect = ({
|
|
|
10466
10466
|
"aria-label": t(commonTexts.clearSelect),
|
|
10467
10467
|
onClick: clearInput,
|
|
10468
10468
|
size: iconSize,
|
|
10469
|
-
className:
|
|
10469
|
+
className: NativeSelect_default[`clear-button--${iconSize}`]
|
|
10470
10470
|
}
|
|
10471
10471
|
),
|
|
10472
10472
|
!multiple && /* @__PURE__ */ (0, import_jsx_runtime286.jsx)(
|
|
@@ -10474,7 +10474,7 @@ var NativeSelect = ({
|
|
|
10474
10474
|
{
|
|
10475
10475
|
icon: ChevronDownIcon,
|
|
10476
10476
|
iconSize,
|
|
10477
|
-
className: NativeSelect_default.icon
|
|
10477
|
+
className: cn(utilStyles_default["center-absolute-y"], NativeSelect_default.icon)
|
|
10478
10478
|
}
|
|
10479
10479
|
)
|
|
10480
10480
|
] }),
|
|
@@ -13353,11 +13353,12 @@ var TabPanel = ({
|
|
|
13353
13353
|
id,
|
|
13354
13354
|
className,
|
|
13355
13355
|
htmlProps,
|
|
13356
|
+
padding = "x0.25",
|
|
13356
13357
|
...rest
|
|
13357
13358
|
}) => /* @__PURE__ */ (0, import_jsx_runtime316.jsx)(
|
|
13358
13359
|
Box,
|
|
13359
13360
|
{
|
|
13360
|
-
padding
|
|
13361
|
+
padding,
|
|
13361
13362
|
...getBaseHTMLProps(id, cn(className, focusable), htmlProps, rest),
|
|
13362
13363
|
tabIndex: 0,
|
|
13363
13364
|
role: "tabpanel",
|
|
@@ -13384,7 +13385,7 @@ var TabPanels = ({ children, ref, ...rest }) => {
|
|
|
13384
13385
|
}
|
|
13385
13386
|
});
|
|
13386
13387
|
});
|
|
13387
|
-
return /* @__PURE__ */ (0, import_jsx_runtime317.jsx)(
|
|
13388
|
+
return /* @__PURE__ */ (0, import_jsx_runtime317.jsx)(Box, { ref: combinedRef, ...rest, children: panelChildren });
|
|
13388
13389
|
};
|
|
13389
13390
|
TabPanels.displayName = "TabPanels";
|
|
13390
13391
|
|