@norges-domstoler/dds-components 0.0.0-dev-20250428134329 → 0.0.0-dev-20250429123723
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 +2 -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 +4 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -1
- 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
|
@@ -10960,6 +10960,7 @@ var Search = ({
|
|
|
10960
10960
|
tip,
|
|
10961
10961
|
id,
|
|
10962
10962
|
value,
|
|
10963
|
+
width,
|
|
10963
10964
|
onChange,
|
|
10964
10965
|
className,
|
|
10965
10966
|
style,
|
|
@@ -11000,12 +11001,14 @@ var Search = ({
|
|
|
11000
11001
|
hasLabel && /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(Label, { htmlFor: uniqueId, children: label }),
|
|
11001
11002
|
/* @__PURE__ */ (0, import_jsx_runtime288.jsxs)("div", { children: [
|
|
11002
11003
|
/* @__PURE__ */ (0, import_jsx_runtime288.jsxs)(
|
|
11003
|
-
|
|
11004
|
+
Box,
|
|
11004
11005
|
{
|
|
11005
11006
|
className: cn(
|
|
11006
11007
|
className,
|
|
11007
11008
|
showSearchButton && Search_default["with-button-container"]
|
|
11008
11009
|
),
|
|
11010
|
+
width,
|
|
11011
|
+
gap: "x0.5",
|
|
11009
11012
|
style,
|
|
11010
11013
|
children: [
|
|
11011
11014
|
/* @__PURE__ */ (0, import_jsx_runtime288.jsxs)("div", { className: Search_default["input-group"], children: [
|