@norges-domstoler/dds-components 21.0.0 → 21.1.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 +12 -5
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +10 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -2522,9 +2522,9 @@ type SearchProps = Pick<InputProps, 'tip' | 'label'> & {
|
|
|
2522
2522
|
componentSize?: SearchSize;
|
|
2523
2523
|
/**Props for søkeknappen. */
|
|
2524
2524
|
buttonProps?: SearchButtonProps;
|
|
2525
|
-
} & ComponentPropsWithRef<'input'>;
|
|
2525
|
+
} & Pick<InputProps, 'width'> & Omit<ComponentPropsWithRef<'input'>, 'width'>;
|
|
2526
2526
|
declare const Search$1: {
|
|
2527
|
-
({ componentSize, buttonProps, name, label, tip, id, value, onChange, className, style, "aria-describedby": ariaDescribedby, ref, ...rest }: SearchProps): react_jsx_runtime.JSX.Element;
|
|
2527
|
+
({ componentSize, buttonProps, name, label, tip, id, value, width, onChange, className, style, "aria-describedby": ariaDescribedby, ref, ...rest }: SearchProps): react_jsx_runtime.JSX.Element;
|
|
2528
2528
|
displayName: string;
|
|
2529
2529
|
};
|
|
2530
2530
|
|
package/dist/index.d.ts
CHANGED
|
@@ -2522,9 +2522,9 @@ type SearchProps = Pick<InputProps, 'tip' | 'label'> & {
|
|
|
2522
2522
|
componentSize?: SearchSize;
|
|
2523
2523
|
/**Props for søkeknappen. */
|
|
2524
2524
|
buttonProps?: SearchButtonProps;
|
|
2525
|
-
} & ComponentPropsWithRef<'input'>;
|
|
2525
|
+
} & Pick<InputProps, 'width'> & Omit<ComponentPropsWithRef<'input'>, 'width'>;
|
|
2526
2526
|
declare const Search$1: {
|
|
2527
|
-
({ componentSize, buttonProps, name, label, tip, id, value, onChange, className, style, "aria-describedby": ariaDescribedby, ref, ...rest }: SearchProps): react_jsx_runtime.JSX.Element;
|
|
2527
|
+
({ componentSize, buttonProps, name, label, tip, id, value, width, onChange, className, style, "aria-describedby": ariaDescribedby, ref, ...rest }: SearchProps): react_jsx_runtime.JSX.Element;
|
|
2528
2528
|
displayName: string;
|
|
2529
2529
|
};
|
|
2530
2530
|
|
package/dist/index.js
CHANGED
|
@@ -6264,6 +6264,7 @@ var DetailList_default = {
|
|
|
6264
6264
|
"list--with-dividers": "DetailList_list--with-dividers",
|
|
6265
6265
|
row: "DetailList_row",
|
|
6266
6266
|
"list--striped": "DetailList_list--striped",
|
|
6267
|
+
"list--striped-with-bp": "DetailList_list--striped-with-bp",
|
|
6267
6268
|
"list--small": "DetailList_list--small",
|
|
6268
6269
|
cell: "DetailList_cell",
|
|
6269
6270
|
"list--medium": "DetailList_list--medium",
|
|
@@ -6298,7 +6299,8 @@ var DetailList = ({
|
|
|
6298
6299
|
DetailList_default.list,
|
|
6299
6300
|
DetailList_default[`list--${size2}`],
|
|
6300
6301
|
withDividers && DetailList_default["list--with-dividers"],
|
|
6301
|
-
striped && DetailList_default["list--striped"]
|
|
6302
|
+
striped && !smallScreenBreakpoint && DetailList_default["list--striped"],
|
|
6303
|
+
striped && smallScreenBreakpoint && DetailList_default["list--striped-with-bp"]
|
|
6302
6304
|
),
|
|
6303
6305
|
htmlProps,
|
|
6304
6306
|
rest
|
|
@@ -6316,17 +6318,18 @@ DetailListDesc.displayName = "DetailListDesc";
|
|
|
6316
6318
|
var import_jsx_runtime235 = require("react/jsx-runtime");
|
|
6317
6319
|
var DetailListRow = ({ className, ...rest }) => {
|
|
6318
6320
|
const { smallScreenBreakpoint: bp } = useDetailListContext();
|
|
6321
|
+
const hasBp = !!bp;
|
|
6319
6322
|
return /* @__PURE__ */ (0, import_jsx_runtime235.jsxs)(import_jsx_runtime235.Fragment, { children: [
|
|
6320
6323
|
/* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
|
|
6321
6324
|
Box,
|
|
6322
6325
|
{
|
|
6323
6326
|
display: "table-row",
|
|
6324
|
-
hideBelow: bp,
|
|
6327
|
+
hideBelow: hasBp ? bp : void 0,
|
|
6325
6328
|
className: cn(className, DetailList_default.row),
|
|
6326
6329
|
...rest
|
|
6327
6330
|
}
|
|
6328
6331
|
),
|
|
6329
|
-
/* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
|
|
6332
|
+
hasBp && /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
|
|
6330
6333
|
Box,
|
|
6331
6334
|
{
|
|
6332
6335
|
display: "flex",
|
|
@@ -10960,6 +10963,7 @@ var Search = ({
|
|
|
10960
10963
|
tip,
|
|
10961
10964
|
id,
|
|
10962
10965
|
value,
|
|
10966
|
+
width,
|
|
10963
10967
|
onChange,
|
|
10964
10968
|
className,
|
|
10965
10969
|
style,
|
|
@@ -11000,12 +11004,14 @@ var Search = ({
|
|
|
11000
11004
|
hasLabel && /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(Label, { htmlFor: uniqueId, children: label }),
|
|
11001
11005
|
/* @__PURE__ */ (0, import_jsx_runtime288.jsxs)("div", { children: [
|
|
11002
11006
|
/* @__PURE__ */ (0, import_jsx_runtime288.jsxs)(
|
|
11003
|
-
|
|
11007
|
+
Box,
|
|
11004
11008
|
{
|
|
11005
11009
|
className: cn(
|
|
11006
11010
|
className,
|
|
11007
11011
|
showSearchButton && Search_default["with-button-container"]
|
|
11008
11012
|
),
|
|
11013
|
+
width,
|
|
11014
|
+
gap: "x0.5",
|
|
11009
11015
|
style,
|
|
11010
11016
|
children: [
|
|
11011
11017
|
/* @__PURE__ */ (0, import_jsx_runtime288.jsxs)("div", { className: Search_default["input-group"], children: [
|