@navikt/ds-react 3.2.3 → 3.2.4
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/_docs.json +19 -0
- package/cjs/form/search/Search.js +3 -2
- package/esm/form/search/Search.d.ts +4 -0
- package/esm/form/search/Search.js +3 -2
- package/esm/form/search/Search.js.map +1 -1
- package/package.json +2 -2
- package/src/form/search/Search.tsx +8 -0
- package/src/form/search/search.stories.tsx +25 -0
package/_docs.json
CHANGED
|
@@ -13088,6 +13088,25 @@
|
|
|
13088
13088
|
"name": "\"primary\" | \"secondary\" | \"simple\""
|
|
13089
13089
|
}
|
|
13090
13090
|
},
|
|
13091
|
+
"htmlSize": {
|
|
13092
|
+
"defaultValue": null,
|
|
13093
|
+
"description": "Exposes the HTML size attribute",
|
|
13094
|
+
"name": "htmlSize",
|
|
13095
|
+
"parent": {
|
|
13096
|
+
"fileName": "src/form/search/Search.tsx",
|
|
13097
|
+
"name": "SearchProps"
|
|
13098
|
+
},
|
|
13099
|
+
"declarations": [
|
|
13100
|
+
{
|
|
13101
|
+
"fileName": "src/form/search/Search.tsx",
|
|
13102
|
+
"name": "SearchProps"
|
|
13103
|
+
}
|
|
13104
|
+
],
|
|
13105
|
+
"required": false,
|
|
13106
|
+
"type": {
|
|
13107
|
+
"name": "string | number"
|
|
13108
|
+
}
|
|
13109
|
+
},
|
|
13091
13110
|
"error": {
|
|
13092
13111
|
"defaultValue": null,
|
|
13093
13112
|
"description": "Error message for element",
|
|
@@ -47,7 +47,7 @@ const SearchButton_1 = __importDefault(require("./SearchButton"));
|
|
|
47
47
|
exports.SearchContext = react_1.default.createContext(null);
|
|
48
48
|
exports.Search = (0, react_1.forwardRef)((props, ref) => {
|
|
49
49
|
const { inputProps, size = "medium", inputDescriptionId, errorId, showErrorMsg, hasError, } = (0, useFormField_1.useFormField)(props, "searchfield");
|
|
50
|
-
const { className, hideLabel = true, label, description, value, clearButtonLabel, onClear, clearButton = true, children, variant = "primary", defaultValue, onChange, onSearchClick } = props, rest = __rest(props, ["className", "hideLabel", "label", "description", "value", "clearButtonLabel", "onClear", "clearButton", "children", "variant", "defaultValue", "onChange", "onSearchClick"]);
|
|
50
|
+
const { className, hideLabel = true, label, description, value, clearButtonLabel, onClear, clearButton = true, children, variant = "primary", defaultValue, onChange, onSearchClick, htmlSize } = props, rest = __rest(props, ["className", "hideLabel", "label", "description", "value", "clearButtonLabel", "onClear", "clearButton", "children", "variant", "defaultValue", "onChange", "onSearchClick", "htmlSize"]);
|
|
51
51
|
const searchRef = (0, react_1.useRef)(null);
|
|
52
52
|
const mergedRef = (0, react_1.useMemo)(() => (0, __1.mergeRefs)([searchRef, ref]), [ref]);
|
|
53
53
|
const [wrapperRef, setWrapperRef] = (0, react_1.useState)(null);
|
|
@@ -74,6 +74,7 @@ exports.Search = (0, react_1.forwardRef)((props, ref) => {
|
|
|
74
74
|
return (react_1.default.createElement("div", { ref: setWrapperRef, className: (0, clsx_1.default)(className, "navds-form-field", `navds-form-field--${size}`, "navds-search", {
|
|
75
75
|
"navds-search--error": hasError,
|
|
76
76
|
"navds-search--disabled": !!inputProps.disabled,
|
|
77
|
+
"navds-search--with-size": !!htmlSize,
|
|
77
78
|
}) },
|
|
78
79
|
react_1.default.createElement(__1.Label, { htmlFor: inputProps.id, size: size, className: (0, clsx_1.default)("navds-form-field__label", {
|
|
79
80
|
"navds-sr-only": hideLabel,
|
|
@@ -84,7 +85,7 @@ exports.Search = (0, react_1.forwardRef)((props, ref) => {
|
|
|
84
85
|
react_1.default.createElement("div", { className: "navds-search__wrapper" },
|
|
85
86
|
react_1.default.createElement("div", { className: "navds-search__wrapper-inner" },
|
|
86
87
|
variant === "simple" && (react_1.default.createElement(aksel_icons_1.MagnifyingGlassIcon, { "aria-hidden": true, className: "navds-search__search-icon" })),
|
|
87
|
-
react_1.default.createElement("input", Object.assign({ ref: mergedRef }, (0, __1.omit)(rest, ["error", "errorId", "size"]), inputProps, { value: value !== null && value !== void 0 ? value : internalValue, onChange: (e) => handleChange(e.target.value), type: "search", role: "searchbox", className: (0, clsx_1.default)(className, "navds-search__input", `navds-search__input--${variant}`, "navds-text-field__input", "navds-body-short", `navds-body-${size}`) })),
|
|
88
|
+
react_1.default.createElement("input", Object.assign({ ref: mergedRef }, (0, __1.omit)(rest, ["error", "errorId", "size"]), inputProps, { value: value !== null && value !== void 0 ? value : internalValue, onChange: (e) => handleChange(e.target.value), type: "search", role: "searchbox", className: (0, clsx_1.default)(className, "navds-search__input", `navds-search__input--${variant}`, "navds-text-field__input", "navds-body-short", `navds-body-${size}`) }, (htmlSize ? { size: Number(htmlSize) } : {}))),
|
|
88
89
|
(value !== null && value !== void 0 ? value : internalValue) && clearButton && (react_1.default.createElement("button", { type: "button", onClick: (e) => handleClear({ trigger: "Click", event: e }), className: "navds-search__button-clear" },
|
|
89
90
|
react_1.default.createElement("span", { className: "navds-sr-only" }, clearButtonLabel ? clearButtonLabel : "Tøm"),
|
|
90
91
|
react_1.default.createElement(aksel_icons_1.XMarkIcon, { "aria-hidden": true })))),
|
|
@@ -47,6 +47,10 @@ export interface SearchProps extends FormFieldProps, Omit<InputHTMLAttributes<HT
|
|
|
47
47
|
* @default "primary"
|
|
48
48
|
*/
|
|
49
49
|
variant?: "primary" | "secondary" | "simple";
|
|
50
|
+
/**
|
|
51
|
+
* Exposes the HTML size attribute
|
|
52
|
+
*/
|
|
53
|
+
htmlSize?: number | string;
|
|
50
54
|
}
|
|
51
55
|
interface SearchComponent extends React.ForwardRefExoticComponent<SearchProps & React.RefAttributes<HTMLDivElement>> {
|
|
52
56
|
Button: SearchButtonType;
|
|
@@ -18,7 +18,7 @@ import SearchButton from "./SearchButton";
|
|
|
18
18
|
export const SearchContext = React.createContext(null);
|
|
19
19
|
export const Search = forwardRef((props, ref) => {
|
|
20
20
|
const { inputProps, size = "medium", inputDescriptionId, errorId, showErrorMsg, hasError, } = useFormField(props, "searchfield");
|
|
21
|
-
const { className, hideLabel = true, label, description, value, clearButtonLabel, onClear, clearButton = true, children, variant = "primary", defaultValue, onChange, onSearchClick } = props, rest = __rest(props, ["className", "hideLabel", "label", "description", "value", "clearButtonLabel", "onClear", "clearButton", "children", "variant", "defaultValue", "onChange", "onSearchClick"]);
|
|
21
|
+
const { className, hideLabel = true, label, description, value, clearButtonLabel, onClear, clearButton = true, children, variant = "primary", defaultValue, onChange, onSearchClick, htmlSize } = props, rest = __rest(props, ["className", "hideLabel", "label", "description", "value", "clearButtonLabel", "onClear", "clearButton", "children", "variant", "defaultValue", "onChange", "onSearchClick", "htmlSize"]);
|
|
22
22
|
const searchRef = useRef(null);
|
|
23
23
|
const mergedRef = useMemo(() => mergeRefs([searchRef, ref]), [ref]);
|
|
24
24
|
const [wrapperRef, setWrapperRef] = useState(null);
|
|
@@ -45,6 +45,7 @@ export const Search = forwardRef((props, ref) => {
|
|
|
45
45
|
return (React.createElement("div", { ref: setWrapperRef, className: cl(className, "navds-form-field", `navds-form-field--${size}`, "navds-search", {
|
|
46
46
|
"navds-search--error": hasError,
|
|
47
47
|
"navds-search--disabled": !!inputProps.disabled,
|
|
48
|
+
"navds-search--with-size": !!htmlSize,
|
|
48
49
|
}) },
|
|
49
50
|
React.createElement(Label, { htmlFor: inputProps.id, size: size, className: cl("navds-form-field__label", {
|
|
50
51
|
"navds-sr-only": hideLabel,
|
|
@@ -55,7 +56,7 @@ export const Search = forwardRef((props, ref) => {
|
|
|
55
56
|
React.createElement("div", { className: "navds-search__wrapper" },
|
|
56
57
|
React.createElement("div", { className: "navds-search__wrapper-inner" },
|
|
57
58
|
variant === "simple" && (React.createElement(MagnifyingGlassIcon, { "aria-hidden": true, className: "navds-search__search-icon" })),
|
|
58
|
-
React.createElement("input", Object.assign({ ref: mergedRef }, omit(rest, ["error", "errorId", "size"]), inputProps, { value: value !== null && value !== void 0 ? value : internalValue, onChange: (e) => handleChange(e.target.value), type: "search", role: "searchbox", className: cl(className, "navds-search__input", `navds-search__input--${variant}`, "navds-text-field__input", "navds-body-short", `navds-body-${size}`) })),
|
|
59
|
+
React.createElement("input", Object.assign({ ref: mergedRef }, omit(rest, ["error", "errorId", "size"]), inputProps, { value: value !== null && value !== void 0 ? value : internalValue, onChange: (e) => handleChange(e.target.value), type: "search", role: "searchbox", className: cl(className, "navds-search__input", `navds-search__input--${variant}`, "navds-text-field__input", "navds-body-short", `navds-body-${size}`) }, (htmlSize ? { size: Number(htmlSize) } : {}))),
|
|
59
60
|
(value !== null && value !== void 0 ? value : internalValue) && clearButton && (React.createElement("button", { type: "button", onClick: (e) => handleClear({ trigger: "Click", event: e }), className: "navds-search__button-clear" },
|
|
60
61
|
React.createElement("span", { className: "navds-sr-only" }, clearButtonLabel ? clearButtonLabel : "Tøm"),
|
|
61
62
|
React.createElement(XMarkIcon, { "aria-hidden": true })))),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Search.js","sourceRoot":"","sources":["../../../src/form/search/Search.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AACrE,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,KAAK,EAAE,EACZ,UAAU,EAEV,WAAW,EACX,OAAO,EACP,MAAM,EACN,QAAQ,GACT,MAAM,OAAO,CAAC;AACf,OAAO,EACL,SAAS,EACT,YAAY,EACZ,KAAK,EACL,SAAS,EACT,IAAI,EACJ,gBAAgB,GACjB,MAAM,OAAO,CAAC;AACf,OAAO,EAAkB,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,YAAkC,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"Search.js","sourceRoot":"","sources":["../../../src/form/search/Search.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AACrE,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,KAAK,EAAE,EACZ,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ChD;gBACD,CAAC,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,aAAa,CAAC,IAAI,WAAW,IAAI,CAC1C,gCACE,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,EAC3D,SAAS,EAAC,4BAA4B;oBAEtC,8BAAM,SAAS,EAAC,eAAe,IAC5B,gBAAgB,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,KAAK,CACvC;oBACP,oBAAC,SAAS,0BAAe,CAClB,CACV,CACG;YACN,oBAAC,aAAa,CAAC,QAAQ,IACrB,KAAK,EAAE;oBACL,IAAI;oBACJ,QAAQ,EAAE,UAAU,CAAC,QAAQ;oBAC7B,OAAO;oBACP,WAAW;iBACZ,IAEA,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,KAAK,QAAQ,IAAI,oBAAC,YAAY,OAAG,CACxC,CACrB;QACN,6BACE,SAAS,EAAC,yBAAyB,EACnC,EAAE,EAAE,OAAO,mBACG,oBAAoB,eACxB,QAAQ,IAEjB,YAAY,IAAI,CACf,oBAAC,YAAY,IAAC,IAAI,EAAE,IAAI,IAAG,KAAK,CAAC,KAAK,CAAgB,CACvD,CACG,CACF,CACP,CAAC;AACJ,CAAC,CACiB,CAAC;AAErB,MAAM,CAAC,MAAM,GAAG,YAAY,CAAC;AAE7B,eAAe,MAAM,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@navikt/ds-react",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.4",
|
|
4
4
|
"description": "Aksel react-components for NAV designsystem",
|
|
5
5
|
"author": "Aksel | NAV designsystem team",
|
|
6
6
|
"license": "MIT",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@floating-ui/react": "0.17.0",
|
|
41
|
-
"@navikt/aksel-icons": "^3.2.
|
|
41
|
+
"@navikt/aksel-icons": "^3.2.4",
|
|
42
42
|
"@radix-ui/react-tabs": "1.0.0",
|
|
43
43
|
"@radix-ui/react-toggle-group": "1.0.0",
|
|
44
44
|
"clsx": "^1.2.1",
|
|
@@ -67,6 +67,10 @@ export interface SearchProps
|
|
|
67
67
|
* @default "primary"
|
|
68
68
|
*/
|
|
69
69
|
variant?: "primary" | "secondary" | "simple";
|
|
70
|
+
/**
|
|
71
|
+
* Exposes the HTML size attribute
|
|
72
|
+
*/
|
|
73
|
+
htmlSize?: number | string;
|
|
70
74
|
}
|
|
71
75
|
|
|
72
76
|
interface SearchComponent
|
|
@@ -112,6 +116,7 @@ export const Search = forwardRef<HTMLInputElement, SearchProps>(
|
|
|
112
116
|
defaultValue,
|
|
113
117
|
onChange,
|
|
114
118
|
onSearchClick,
|
|
119
|
+
htmlSize,
|
|
115
120
|
...rest
|
|
116
121
|
} = props;
|
|
117
122
|
|
|
@@ -164,9 +169,11 @@ export const Search = forwardRef<HTMLInputElement, SearchProps>(
|
|
|
164
169
|
"navds-form-field",
|
|
165
170
|
`navds-form-field--${size}`,
|
|
166
171
|
"navds-search",
|
|
172
|
+
|
|
167
173
|
{
|
|
168
174
|
"navds-search--error": hasError,
|
|
169
175
|
"navds-search--disabled": !!inputProps.disabled,
|
|
176
|
+
"navds-search--with-size": !!htmlSize,
|
|
170
177
|
}
|
|
171
178
|
)}
|
|
172
179
|
>
|
|
@@ -215,6 +222,7 @@ export const Search = forwardRef<HTMLInputElement, SearchProps>(
|
|
|
215
222
|
"navds-body-short",
|
|
216
223
|
`navds-body-${size}`
|
|
217
224
|
)}
|
|
225
|
+
{...(htmlSize ? { size: Number(htmlSize) } : {})}
|
|
218
226
|
/>
|
|
219
227
|
{(value ?? internalValue) && clearButton && (
|
|
220
228
|
<button
|
|
@@ -164,3 +164,28 @@ export const NoClearButton = () => (
|
|
|
164
164
|
/>
|
|
165
165
|
</div>
|
|
166
166
|
);
|
|
167
|
+
|
|
168
|
+
export const HtmlSize = () => (
|
|
169
|
+
<div className="colgap">
|
|
170
|
+
<Search
|
|
171
|
+
label="Lorem ipsum dolor sit amet"
|
|
172
|
+
description="Saepe laborum delectus officia perferendis quaerat excepturi possimus hic enim dicta assumenda."
|
|
173
|
+
hideLabel={false}
|
|
174
|
+
htmlSize="20"
|
|
175
|
+
/>
|
|
176
|
+
<Search
|
|
177
|
+
label="Lorem ipsum dolor sit amet"
|
|
178
|
+
description="Saepe laborum delectus officia perferendis quaerat excepturi possimus hic enim dicta assumenda."
|
|
179
|
+
hideLabel={false}
|
|
180
|
+
htmlSize="20"
|
|
181
|
+
variant="secondary"
|
|
182
|
+
/>
|
|
183
|
+
<Search
|
|
184
|
+
label="Lorem ipsum dolor sit amet"
|
|
185
|
+
description="Saepe laborum delectus officia perferendis quaerat excepturi possimus hic enim dicta assumenda."
|
|
186
|
+
hideLabel={false}
|
|
187
|
+
htmlSize="20"
|
|
188
|
+
variant="simple"
|
|
189
|
+
/>
|
|
190
|
+
</div>
|
|
191
|
+
);
|