@digdir/designsystemet-react 0.54.0 → 0.55.1-alpha.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/cjs/components/Chip/Chip.module.css.js +1 -1
- package/dist/cjs/components/form/Combobox/Combobox.js +12 -13
- package/dist/cjs/components/form/Combobox/internal/ComboboxClearButton.js +2 -2
- package/dist/cjs/components/form/Combobox/internal/ComboboxInput.js +3 -2
- package/dist/cjs/components/form/Combobox/useCombobox.js +24 -33
- package/dist/cjs/components/form/Search/Search.js +1 -1
- package/dist/cjs/react-css-modules.css +80 -76
- package/dist/esm/components/Chip/Chip.module.css.js +1 -1
- package/dist/esm/components/form/Combobox/Combobox.js +12 -13
- package/dist/esm/components/form/Combobox/internal/ComboboxClearButton.js +2 -2
- package/dist/esm/components/form/Combobox/internal/ComboboxInput.js +3 -2
- package/dist/esm/components/form/Combobox/useCombobox.js +26 -17
- package/dist/esm/components/form/Search/Search.js +1 -1
- package/dist/esm/react-css-modules.css +80 -76
- package/dist/types/components/form/Combobox/Combobox.d.ts +32 -1
- package/dist/types/components/form/Combobox/Combobox.d.ts.map +1 -1
- package/dist/types/components/form/Combobox/internal/ComboboxInput.d.ts.map +1 -1
- package/dist/types/components/form/Combobox/useCombobox.d.ts +13 -9
- package/dist/types/components/form/Combobox/useCombobox.d.ts.map +1 -1
- package/dist/types/components/form/Search/Search.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var classes = {"chip":"fds-chip-chip-4563db0f","chipButton":"fds-chip-chipButton-4563db0f","label":"fds-chip-label-4563db0f","removable":"fds-chip-removable-4563db0f","xMark":"fds-chip-xMark-4563db0f","
|
|
4
|
+
var classes = {"chip":"fds-chip-chip-4563db0f","chipButton":"fds-chip-chipButton-4563db0f","label":"fds-chip-label-4563db0f","removable":"fds-chip-removable-4563db0f","xMark":"fds-chip-xMark-4563db0f","icon":"fds-chip-icon-4563db0f","spacing":"fds-chip-spacing-4563db0f","small":"fds-chip-small-4563db0f","checkmarkIcon":"fds-chip-checkmarkIcon-4563db0f","medium":"fds-chip-medium-4563db0f","large":"fds-chip-large-4563db0f","groupContainer":"fds-chip-groupContainer-4563db0f"};
|
|
5
5
|
|
|
6
6
|
module.exports = classes;
|
|
@@ -21,7 +21,7 @@ var floatingUi_dom = require('../../../node_modules/@floating-ui/dom/dist/floati
|
|
|
21
21
|
var floatingUi_core = require('../../../node_modules/@floating-ui/core/dist/floating-ui.core.js');
|
|
22
22
|
var objectUtils = require('../../../utilities/objectUtils.js');
|
|
23
23
|
|
|
24
|
-
const Combobox = React.forwardRef(({ value, onValueChange, label, hideLabel = false, description, multiple = false, size = 'medium', disabled = false, readOnly = false, hideChips = false, cleanButtonLabel = 'Fjern alt', error, errorId, id, name, portal = true, htmlSize = 0, virtual = false, children, style, loading, loadingLabel = 'Laster...', filter = (inputValue, option) => {
|
|
24
|
+
const Combobox = React.forwardRef(({ value, initialValue = [], onValueChange, label, hideLabel = false, description, multiple = false, size = 'medium', disabled = false, readOnly = false, hideChips = false, cleanButtonLabel = 'Fjern alt', clearButtonLabel = 'Fjern alt', hideClearButton = false, error, errorId, id, name, portal = true, htmlSize = 0, virtual = false, children, style, loading, loadingLabel = 'Laster...', filter = (inputValue, option) => {
|
|
25
25
|
return option.label.toLowerCase().startsWith(inputValue.toLowerCase());
|
|
26
26
|
}, chipSrLabel = (option) => 'Slett ' + option.label, className, ...rest }, forwareddRef) => {
|
|
27
27
|
const inputRef = React.useRef(null);
|
|
@@ -30,9 +30,14 @@ const Combobox = React.forwardRef(({ value, onValueChange, label, hideLabel = fa
|
|
|
30
30
|
const [open, setOpen] = React.useState(false);
|
|
31
31
|
const [inputValue, setInputValue] = React.useState(rest.inputValue || '');
|
|
32
32
|
const [activeIndex, setActiveIndex] = React.useState(null);
|
|
33
|
-
const
|
|
33
|
+
const { selectedOptions, setSelectedOptions, options, optionsChildren, restChildren, optionValues, customIds, prevSelectedHash, setPrevSelectedHash, } = useCombobox.default({
|
|
34
|
+
children,
|
|
35
|
+
inputValue,
|
|
36
|
+
filter,
|
|
37
|
+
multiple,
|
|
38
|
+
initialValue,
|
|
39
|
+
});
|
|
34
40
|
const [activeDescendant, setActiveDescendant] = React.useState(undefined);
|
|
35
|
-
const [prevSelectedHash, setPrevSelectedHash] = React.useState(JSON.stringify(selectedOptions));
|
|
36
41
|
React.useEffect(() => {
|
|
37
42
|
if (rest.inputValue !== undefined) {
|
|
38
43
|
setInputValue(rest.inputValue);
|
|
@@ -48,13 +53,6 @@ const Combobox = React.forwardRef(({ value, onValueChange, label, hideLabel = fa
|
|
|
48
53
|
id,
|
|
49
54
|
}, 'combobox');
|
|
50
55
|
const listRef = React.useRef([]);
|
|
51
|
-
const { options, optionsChildren, restChildren, optionValues, customIds } = useCombobox.default({
|
|
52
|
-
children,
|
|
53
|
-
inputValue,
|
|
54
|
-
filter,
|
|
55
|
-
multiple,
|
|
56
|
-
selectedOptions,
|
|
57
|
-
});
|
|
58
56
|
// if value is set, set input value to the label of the value
|
|
59
57
|
React.useEffect(() => {
|
|
60
58
|
if (value && value.length > 0 && !multiple) {
|
|
@@ -110,7 +108,7 @@ const Combobox = React.forwardRef(({ value, onValueChange, label, hideLabel = fa
|
|
|
110
108
|
const values = selectedOptions.map((option) => option.value);
|
|
111
109
|
onValueChange?.(values);
|
|
112
110
|
setPrevSelectedHash(selectedHash);
|
|
113
|
-
}, [onValueChange, selectedOptions, prevSelectedHash]);
|
|
111
|
+
}, [onValueChange, selectedOptions, prevSelectedHash, setPrevSelectedHash]);
|
|
114
112
|
React.useEffect(() => {
|
|
115
113
|
if (value && options.length > 0) {
|
|
116
114
|
const updatedSelectedOptions = value.map((option) => {
|
|
@@ -119,7 +117,7 @@ const Combobox = React.forwardRef(({ value, onValueChange, label, hideLabel = fa
|
|
|
119
117
|
});
|
|
120
118
|
setSelectedOptions(updatedSelectedOptions);
|
|
121
119
|
}
|
|
122
|
-
}, [multiple, prevSelectedHash, value, options]);
|
|
120
|
+
}, [multiple, prevSelectedHash, value, options, setSelectedOptions]);
|
|
123
121
|
// handle click on option, either select or deselect - Handles single or multiple
|
|
124
122
|
const handleSelectOption = (option) => {
|
|
125
123
|
// if option is already selected, remove it
|
|
@@ -250,7 +248,8 @@ const Combobox = React.forwardRef(({ value, onValueChange, label, hideLabel = fa
|
|
|
250
248
|
htmlSize,
|
|
251
249
|
optionValues,
|
|
252
250
|
hideChips,
|
|
253
|
-
cleanButtonLabel,
|
|
251
|
+
clearButtonLabel: cleanButtonLabel || clearButtonLabel,
|
|
252
|
+
hideClearButton,
|
|
254
253
|
listId,
|
|
255
254
|
setInputValue,
|
|
256
255
|
setActiveIndex,
|
|
@@ -16,7 +16,7 @@ const ComboboxClearButton = () => {
|
|
|
16
16
|
if (!context) {
|
|
17
17
|
throw new Error('ComboboxContext is missing');
|
|
18
18
|
}
|
|
19
|
-
const { size, readOnly, disabled,
|
|
19
|
+
const { size, readOnly, disabled, clearButtonLabel, inputRef, setSelectedOptions, setInputValue, } = context;
|
|
20
20
|
return (jsxRuntime.jsx("button", { disabled: disabled, className: clsx.clsx(Combobox_module.clearButton, Combobox_module[size], utility_module.focusable), onClick: () => {
|
|
21
21
|
if (readOnly)
|
|
22
22
|
return;
|
|
@@ -35,7 +35,7 @@ const ComboboxClearButton = () => {
|
|
|
35
35
|
setInputValue('');
|
|
36
36
|
inputRef.current?.focus();
|
|
37
37
|
}
|
|
38
|
-
}, type: 'button', "aria-label":
|
|
38
|
+
}, type: 'button', "aria-label": clearButtonLabel, children: jsxRuntime.jsx(akselIcons.XMarkIcon, { fontSize: '1.5em', title: 'Clear selection' }) }));
|
|
39
39
|
};
|
|
40
40
|
ComboboxClearButton.displayName = 'ComboboxClearButton';
|
|
41
41
|
var ComboboxClearButton$1 = ComboboxClearButton;
|
|
@@ -21,7 +21,7 @@ const ComboboxInput = ({ ...rest }) => {
|
|
|
21
21
|
if (!context) {
|
|
22
22
|
throw new Error('ComboboxContext is missing');
|
|
23
23
|
}
|
|
24
|
-
const { forwareddRef, listId, size, readOnly, disabled, open, inputRef, refs, inputValue, activeDescendant, error, multiple, selectedOptions, formFieldProps, htmlSize, options, hideChips, setOpen, setActiveIndex, handleKeyDown, getReferenceProps, setInputValue, handleSelectOption, } = context;
|
|
24
|
+
const { forwareddRef, listId, size, readOnly, disabled, open, inputRef, refs, inputValue, activeDescendant, error, multiple, selectedOptions, formFieldProps, htmlSize, options, hideChips, hideClearButton, setOpen, setActiveIndex, handleKeyDown, getReferenceProps, setInputValue, handleSelectOption, } = context;
|
|
25
25
|
const mergedRefs = floatingUi_react.useMergeRefs([forwareddRef, inputRef]);
|
|
26
26
|
// we need to check if input is in focus, to add focus styles to the wrapper
|
|
27
27
|
const [inputInFocus, setInputInFocus] = React.useState(false);
|
|
@@ -68,6 +68,7 @@ const ComboboxInput = ({ ...rest }) => {
|
|
|
68
68
|
}, 0);
|
|
69
69
|
}
|
|
70
70
|
};
|
|
71
|
+
const showClearButton = multiple && !hideClearButton && selectedOptions.length > 0;
|
|
71
72
|
return (jsxRuntime.jsxs(Box.Box
|
|
72
73
|
/* Props from floating-ui */
|
|
73
74
|
, { ...getReferenceProps({
|
|
@@ -99,7 +100,7 @@ const ComboboxInput = ({ ...rest }) => {
|
|
|
99
100
|
}), "aria-disabled": disabled, className: clsx.clsx(Textfield_module.input, Combobox_module.inputWrapper, Combobox_module[size], inputInFocus && Combobox_module.inFocus, readOnly && Combobox_module.readonly, error && Combobox_module.error), children: [jsxRuntime.jsxs("div", { className: Combobox_module.chipAndInput, children: [multiple && !hideChips && jsxRuntime.jsx(ComboboxChips.default, {}), jsxRuntime.jsx("input", { ref: mergedRefs, "aria-activedescendant": activeDescendant, readOnly: readOnly, "aria-autocomplete": 'list', role: 'combobox', "aria-expanded": open, "aria-controls": listId, autoComplete: 'off', size: htmlSize, value: inputValue, ...objectUtils.omit(['style', 'className'], rest), ...formFieldProps.inputProps, onChange: (e) => {
|
|
100
101
|
onChange(e);
|
|
101
102
|
rest.onChange && rest.onChange(e);
|
|
102
|
-
} })] }),
|
|
103
|
+
} })] }), showClearButton && jsxRuntime.jsx(ComboboxClearButton.default, {}), jsxRuntime.jsx("div", { className: Combobox_module.arrow, children: open ? (jsxRuntime.jsx(akselIcons.ChevronUpIcon, { title: 'arrow up', fontSize: '1.5em' })) : (jsxRuntime.jsx(akselIcons.ChevronDownIcon, { title: 'arrow down', fontSize: '1.5em' })) })] }));
|
|
103
104
|
};
|
|
104
105
|
ComboboxInput.displayName = 'ComboboxInput';
|
|
105
106
|
var ComboboxInput$1 = ComboboxInput;
|
|
@@ -7,36 +7,27 @@ var React = require('react');
|
|
|
7
7
|
var Option = require('./Option/Option.js');
|
|
8
8
|
var Custom = require('./Custom/Custom.js');
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
Object.keys(e).forEach(function (k) {
|
|
14
|
-
if (k !== 'default') {
|
|
15
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: function () { return e[k]; }
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
n.default = e;
|
|
24
|
-
return Object.freeze(n);
|
|
10
|
+
const isOption = (option) => !!option;
|
|
11
|
+
function isComboboxOption(child) {
|
|
12
|
+
return React.isValidElement(child) && child.type === Option.ComboboxOption;
|
|
25
13
|
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
function
|
|
14
|
+
function isComboboxCustom(child) {
|
|
15
|
+
return React.isValidElement(child) && child.type === Custom.default;
|
|
16
|
+
}
|
|
17
|
+
function isInteractiveComboboxCustom(child) {
|
|
18
|
+
return isComboboxCustom(child) && child.props.interactive === true;
|
|
19
|
+
}
|
|
20
|
+
function useCombobox({ children, inputValue, multiple, filter, initialValue, }) {
|
|
30
21
|
const options = React.useMemo(() => {
|
|
31
22
|
const allOptions = [];
|
|
32
|
-
|
|
23
|
+
React.Children.forEach(children, (child) => {
|
|
33
24
|
if (isComboboxOption(child)) {
|
|
34
25
|
const props = child.props;
|
|
35
26
|
let label = props.displayValue || '';
|
|
36
27
|
if (!props.displayValue) {
|
|
37
28
|
let childrenLabel = '';
|
|
38
29
|
// go over children and find all strings
|
|
39
|
-
|
|
30
|
+
React.Children.forEach(props.children, (child) => {
|
|
40
31
|
if (typeof child === 'string') {
|
|
41
32
|
childrenLabel += child;
|
|
42
33
|
}
|
|
@@ -56,9 +47,14 @@ function useCombobox({ children, inputValue, multiple, selectedOptions, filter,
|
|
|
56
47
|
});
|
|
57
48
|
return allOptions;
|
|
58
49
|
}, [children]);
|
|
50
|
+
const preSelectedOptions = (initialValue || [])
|
|
51
|
+
.map((value) => options.find((option) => option.value === value))
|
|
52
|
+
.filter(isOption);
|
|
53
|
+
const [selectedOptions, setSelectedOptions] = React.useState(preSelectedOptions);
|
|
54
|
+
const [prevSelectedHash, setPrevSelectedHash] = React.useState(JSON.stringify(selectedOptions));
|
|
59
55
|
const optionsChildren = React.useMemo(() => {
|
|
60
56
|
const valuesArray = Array.from(options);
|
|
61
|
-
const children_ =
|
|
57
|
+
const children_ = React.Children.toArray(children).filter((child) => isComboboxOption(child));
|
|
62
58
|
const activeValue = valuesArray.find((item) => item.label === inputValue);
|
|
63
59
|
if (activeValue && !multiple)
|
|
64
60
|
return children_;
|
|
@@ -76,7 +72,7 @@ function useCombobox({ children, inputValue, multiple, selectedOptions, filter,
|
|
|
76
72
|
}, [options, children, multiple, inputValue, selectedOptions, filter]);
|
|
77
73
|
const customIds = React.useMemo(() => {
|
|
78
74
|
// find all custom components with `interactive=true` and generate random values for them
|
|
79
|
-
const children_ =
|
|
75
|
+
const children_ = React.Children.toArray(children).filter((child) => {
|
|
80
76
|
return isInteractiveComboboxCustom(child);
|
|
81
77
|
});
|
|
82
78
|
// return all ids
|
|
@@ -95,7 +91,7 @@ function useCombobox({ children, inputValue, multiple, selectedOptions, filter,
|
|
|
95
91
|
return [...customIds, ...options];
|
|
96
92
|
}, [customIds, optionsChildren]);
|
|
97
93
|
const restChildren = React.useMemo(() => {
|
|
98
|
-
return
|
|
94
|
+
return React.Children.toArray(children).filter((child) => {
|
|
99
95
|
return !isComboboxOption(child);
|
|
100
96
|
});
|
|
101
97
|
}, [children]);
|
|
@@ -105,17 +101,12 @@ function useCombobox({ children, inputValue, multiple, selectedOptions, filter,
|
|
|
105
101
|
restChildren,
|
|
106
102
|
options,
|
|
107
103
|
customIds,
|
|
104
|
+
selectedOptions,
|
|
105
|
+
setSelectedOptions,
|
|
106
|
+
prevSelectedHash,
|
|
107
|
+
setPrevSelectedHash,
|
|
108
108
|
};
|
|
109
109
|
}
|
|
110
|
-
function isComboboxOption(child) {
|
|
111
|
-
return React__namespace.isValidElement(child) && child.type === Option.ComboboxOption;
|
|
112
|
-
}
|
|
113
|
-
function isComboboxCustom(child) {
|
|
114
|
-
return React__namespace.isValidElement(child) && child.type === Custom.default;
|
|
115
|
-
}
|
|
116
|
-
function isInteractiveComboboxCustom(child) {
|
|
117
|
-
return isComboboxCustom(child) && child.props.interactive === true;
|
|
118
|
-
}
|
|
119
110
|
|
|
120
111
|
exports.default = useCombobox;
|
|
121
112
|
exports.isComboboxCustom = isComboboxCustom;
|
|
@@ -43,7 +43,7 @@ const Search = React.forwardRef((props, ref) => {
|
|
|
43
43
|
};
|
|
44
44
|
const isSimple = variant === 'simple';
|
|
45
45
|
const showClearButton = Boolean(value ?? internalValue) && !disabled;
|
|
46
|
-
return (jsxRuntime.jsx(Paragraph.Paragraph, { asChild: true, size: size, children: jsxRuntime.jsxs("div", { style: style, className: clsx.clsx(Search_module.formField, inputProps.disabled && Search_module.disabled, Search_module[size], className), children: [label && (jsxRuntime.jsx(Label.Label, { size: size, weight: 'medium', htmlFor: inputProps.id, className: clsx.clsx(Search_module.label, hideLabel && utility_module.visuallyHidden), children: jsxRuntime.jsx("span", { children: label }) })), jsxRuntime.jsxs("div", { className: Search_module.field, children: [jsxRuntime.jsxs("div", { className: Search_module.field, children: [isSimple && (jsxRuntime.jsx(akselIcons.MagnifyingGlassIcon, { className: Search_module.icon, "aria-hidden": true })), jsxRuntime.jsx("input", { ref: mergedRef, size: htmlSize, value: value ?? internalValue, disabled: disabled, className: clsx.clsx(Search_module.input, utility_module.focusable,
|
|
46
|
+
return (jsxRuntime.jsx(Paragraph.Paragraph, { asChild: true, size: size, children: jsxRuntime.jsxs("div", { style: style, className: clsx.clsx(Search_module.formField, inputProps.disabled && Search_module.disabled, Search_module[size], className), children: [label && (jsxRuntime.jsx(Label.Label, { size: size, weight: 'medium', htmlFor: inputProps.id, className: clsx.clsx(Search_module.label, hideLabel && utility_module.visuallyHidden), children: jsxRuntime.jsx("span", { children: label }) })), jsxRuntime.jsxs("div", { className: Search_module.field, children: [jsxRuntime.jsxs("div", { className: clsx.clsx(Search_module.field, Search_module[size]), children: [isSimple && (jsxRuntime.jsx(akselIcons.MagnifyingGlassIcon, { className: Search_module.icon, "aria-hidden": true })), jsxRuntime.jsx("input", { ref: mergedRef, size: htmlSize, value: value ?? internalValue, disabled: disabled, className: clsx.clsx(Search_module.input, utility_module.focusable, isSimple && Search_module.simple, !isSimple && Search_module.withSearchButton), ...objectUtils.omit(['size', 'error', 'errorId', 'readOnly'], rest), ...inputProps, onChange: handleChange }), showClearButton && (jsxRuntime.jsxs("button", { className: clsx.clsx(Search_module.clearButton, utility_module.focusable), type: 'button', onClick: handleClear, disabled: disabled, children: [jsxRuntime.jsx("span", { className: utility_module.visuallyHidden, children: clearButtonLabel }), jsxRuntime.jsx(akselIcons.XMarkIcon, { "aria-hidden": true })] }))] }), !isSimple && (jsxRuntime.jsx(Button.Button, { className: Search_module.searchButton, size: size, variant: variant, type: 'submit', onClick: handleSearchClick, disabled: disabled, children: searchButtonLabel }))] }), jsxRuntime.jsx("div", { className: Search_module.errorMessage, id: errorId, "aria-live": 'polite', "aria-relevant": 'additions removals', children: hasError && jsxRuntime.jsx(ErrorMessage.ErrorMessage, { size: size, children: props.error }) })] }) }));
|
|
47
47
|
});
|
|
48
48
|
Search.displayName = 'Search';
|
|
49
49
|
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
gap: var(--fds-sizing-1);
|
|
80
80
|
font: var(--fds-typography-paragraph-short-small);
|
|
81
81
|
font-family: inherit;
|
|
82
|
-
min-height: var(--fds-sizing-
|
|
82
|
+
min-height: var(--fds-sizing-10);
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
.fds-button-medium-8fa00f0f {
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
gap: var(--fds-sizing-2);
|
|
89
89
|
font: var(--fds-typography-paragraph-short-medium);
|
|
90
90
|
font-family: inherit;
|
|
91
|
-
min-height: var(--fds-sizing-
|
|
91
|
+
min-height: var(--fds-sizing-12);
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
.fds-button-large-8fa00f0f {
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
gap: var(--fds-sizing-2);
|
|
98
98
|
font: var(--fds-typography-paragraph-short-large);
|
|
99
99
|
font-family: inherit;
|
|
100
|
-
min-height: var(--fds-sizing-
|
|
100
|
+
min-height: var(--fds-sizing-14);
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
.fds-button-fullWidth-8fa00f0f {
|
|
@@ -1064,19 +1064,19 @@
|
|
|
1064
1064
|
.fds-nativeselect-select-2e95d79c.fds-nativeselect-small-2e95d79c {
|
|
1065
1065
|
padding: 0 var(--fds-spacing-2);
|
|
1066
1066
|
padding-right: var(--fds-spacing-8);
|
|
1067
|
-
height: var(--fds-sizing-
|
|
1067
|
+
height: var(--fds-sizing-10);
|
|
1068
1068
|
}
|
|
1069
1069
|
|
|
1070
1070
|
.fds-nativeselect-select-2e95d79c.fds-nativeselect-medium-2e95d79c {
|
|
1071
1071
|
padding: 0 var(--fds-spacing-3);
|
|
1072
1072
|
padding-right: var(--fds-spacing-10);
|
|
1073
|
-
height: var(--fds-sizing-
|
|
1073
|
+
height: var(--fds-sizing-12);
|
|
1074
1074
|
}
|
|
1075
1075
|
|
|
1076
1076
|
.fds-nativeselect-select-2e95d79c.fds-nativeselect-large-2e95d79c {
|
|
1077
1077
|
padding: 0 var(--fds-spacing-4);
|
|
1078
1078
|
padding-right: var(--fds-spacing-12);
|
|
1079
|
-
height: var(--fds-sizing-
|
|
1079
|
+
height: var(--fds-sizing-14);
|
|
1080
1080
|
}
|
|
1081
1081
|
|
|
1082
1082
|
.fds-nativeselect-formField-2e95d79c {
|
|
@@ -1179,18 +1179,18 @@
|
|
|
1179
1179
|
}
|
|
1180
1180
|
|
|
1181
1181
|
.fds-tag-small-40d841d9 {
|
|
1182
|
-
--fdsc-tag-padding: var(--fds-spacing-
|
|
1183
|
-
--fdsc-tag-min-height: var(--fds-sizing-
|
|
1182
|
+
--fdsc-tag-padding: var(--fds-spacing-2);
|
|
1183
|
+
--fdsc-tag-min-height: var(--fds-sizing-7);
|
|
1184
1184
|
}
|
|
1185
1185
|
|
|
1186
1186
|
.fds-tag-medium-40d841d9 {
|
|
1187
|
-
--fdsc-tag-padding: var(--fds-spacing-
|
|
1188
|
-
--fdsc-tag-min-height: var(--fds-sizing-
|
|
1187
|
+
--fdsc-tag-padding: var(--fds-spacing-2);
|
|
1188
|
+
--fdsc-tag-min-height: var(--fds-sizing-8);
|
|
1189
1189
|
}
|
|
1190
1190
|
|
|
1191
1191
|
.fds-tag-large-40d841d9 {
|
|
1192
|
-
--fdsc-tag-padding: var(--fds-spacing-
|
|
1193
|
-
--fdsc-tag-min-height: var(--fds-sizing-
|
|
1192
|
+
--fdsc-tag-padding: var(--fds-spacing-3);
|
|
1193
|
+
--fdsc-tag-min-height: var(--fds-sizing-9);
|
|
1194
1194
|
}
|
|
1195
1195
|
|
|
1196
1196
|
.fds-tag-neutral-40d841d9 {
|
|
@@ -1292,7 +1292,7 @@
|
|
|
1292
1292
|
background: var(--fdsc-removable-background);
|
|
1293
1293
|
border: 0;
|
|
1294
1294
|
padding-right: 0;
|
|
1295
|
-
min-height: var(--fdsc-
|
|
1295
|
+
min-height: var(--fdsc-chip-height);
|
|
1296
1296
|
}
|
|
1297
1297
|
|
|
1298
1298
|
.fds-chip-xMark-4563db0f {
|
|
@@ -1302,18 +1302,6 @@
|
|
|
1302
1302
|
padding-right: var(--fdsc-removable-chip-xmark-padding_right);
|
|
1303
1303
|
}
|
|
1304
1304
|
|
|
1305
|
-
.fds-chip-removable-4563db0f.fds-chip-small-4563db0f {
|
|
1306
|
-
--fdsc-removable-chip-size: var(--fds-sizing-6);
|
|
1307
|
-
}
|
|
1308
|
-
|
|
1309
|
-
.fds-chip-removable-4563db0f.fds-chip-medium-4563db0f {
|
|
1310
|
-
--fdsc-removable-chip-size: var(--fds-sizing-7);
|
|
1311
|
-
}
|
|
1312
|
-
|
|
1313
|
-
.fds-chip-removable-4563db0f.fds-chip-large-4563db0f {
|
|
1314
|
-
--fdsc-removable-chip-size: var(--fds-sizing-8);
|
|
1315
|
-
}
|
|
1316
|
-
|
|
1317
1305
|
.fds-chip-xMark-4563db0f .fds-chip-icon-4563db0f {
|
|
1318
1306
|
height: var(--fdsc-removable-chip-xmark-size);
|
|
1319
1307
|
width: var(--fdsc-removable-chip-xmark-size);
|
|
@@ -1387,20 +1375,20 @@
|
|
|
1387
1375
|
}
|
|
1388
1376
|
|
|
1389
1377
|
.fds-chip-small-4563db0f {
|
|
1390
|
-
--fdsc-chip-height: var(--fds-sizing-
|
|
1391
|
-
--fdsc-chip-padding: var(--fds-spacing-
|
|
1378
|
+
--fdsc-chip-height: var(--fds-sizing-7);
|
|
1379
|
+
--fdsc-chip-padding: var(--fds-spacing-3);
|
|
1392
1380
|
--fdsc-removable-chip-xmark-size: var(--fds-sizing-5);
|
|
1393
1381
|
}
|
|
1394
1382
|
|
|
1395
1383
|
.fds-chip-medium-4563db0f {
|
|
1396
|
-
--fdsc-chip-height: var(--fds-sizing-
|
|
1384
|
+
--fdsc-chip-height: var(--fds-sizing-8);
|
|
1397
1385
|
--fdsc-chip-padding: var(--fds-spacing-3);
|
|
1398
1386
|
--fdsc-removable-chip-xmark-size: var(--fds-sizing-6);
|
|
1399
1387
|
}
|
|
1400
1388
|
|
|
1401
1389
|
.fds-chip-large-4563db0f {
|
|
1402
|
-
--fdsc-chip-height: var(--fds-sizing-
|
|
1403
|
-
--fdsc-chip-padding: var(--fds-spacing-
|
|
1390
|
+
--fdsc-chip-height: var(--fds-sizing-9);
|
|
1391
|
+
--fdsc-chip-padding: var(--fds-spacing-4);
|
|
1404
1392
|
--fdsc-removable-chip-xmark-size: var(--fds-sizing-7);
|
|
1405
1393
|
}
|
|
1406
1394
|
|
|
@@ -1444,17 +1432,17 @@
|
|
|
1444
1432
|
|
|
1445
1433
|
.fds-pagination-listitem-ddc0278f:where(.fds-pagination-small-ddc0278f) {
|
|
1446
1434
|
--fsdc-pagination-listitem-margin: var(--fds-spacing-2);
|
|
1447
|
-
--fdsc-pagination-ellipsis-width: var(--fds-sizing-
|
|
1435
|
+
--fdsc-pagination-ellipsis-width: var(--fds-sizing-10);
|
|
1448
1436
|
}
|
|
1449
1437
|
|
|
1450
1438
|
.fds-pagination-listitem-ddc0278f:where(.fds-pagination-medium-ddc0278f) {
|
|
1451
1439
|
--fsdc-pagination-listitem-margin: var(--fds-spacing-4);
|
|
1452
|
-
--fdsc-pagination-ellipsis-width: var(--fds-sizing-
|
|
1440
|
+
--fdsc-pagination-ellipsis-width: var(--fds-sizing-12);
|
|
1453
1441
|
}
|
|
1454
1442
|
|
|
1455
1443
|
.fds-pagination-listitem-ddc0278f:where(.fds-pagination-large-ddc0278f) {
|
|
1456
1444
|
--fsdc-pagination-listitem-margin: var(--fds-spacing-6);
|
|
1457
|
-
--fdsc-pagination-ellipsis-width: var(--fds-sizing-
|
|
1445
|
+
--fdsc-pagination-ellipsis-width: var(--fds-sizing-14);
|
|
1458
1446
|
}
|
|
1459
1447
|
|
|
1460
1448
|
.fds-pagination-listitem-ddc0278f:where(.fds-pagination-compact-ddc0278f) {
|
|
@@ -1647,23 +1635,23 @@
|
|
|
1647
1635
|
|
|
1648
1636
|
.fds-checkbox-small-ad9a8b9c,
|
|
1649
1637
|
.fds-checkbox-small-ad9a8b9c .fds-checkbox-label-ad9a8b9c {
|
|
1650
|
-
min-height: var(--fds-sizing-
|
|
1638
|
+
min-height: var(--fds-sizing-5);
|
|
1651
1639
|
}
|
|
1652
1640
|
|
|
1653
1641
|
.fds-checkbox-medium-ad9a8b9c,
|
|
1654
1642
|
.fds-checkbox-medium-ad9a8b9c .fds-checkbox-label-ad9a8b9c {
|
|
1655
|
-
min-height: var(--fds-sizing-
|
|
1643
|
+
min-height: var(--fds-sizing-6);
|
|
1656
1644
|
}
|
|
1657
1645
|
|
|
1658
1646
|
.fds-checkbox-large-ad9a8b9c,
|
|
1659
1647
|
.fds-checkbox-large-ad9a8b9c .fds-checkbox-label-ad9a8b9c {
|
|
1660
|
-
min-height: var(--fds-sizing-
|
|
1648
|
+
min-height: var(--fds-sizing-7);
|
|
1661
1649
|
}
|
|
1662
1650
|
|
|
1663
1651
|
.fds-checkbox-small-ad9a8b9c {
|
|
1664
|
-
--fds-checkbox-size:
|
|
1652
|
+
--fds-checkbox-size: var(--fds-sizing-5);
|
|
1665
1653
|
|
|
1666
|
-
min-width: var(--fds-sizing-
|
|
1654
|
+
min-width: var(--fds-sizing-5);
|
|
1667
1655
|
}
|
|
1668
1656
|
|
|
1669
1657
|
.fds-checkbox-small-ad9a8b9c .fds-checkbox-input-ad9a8b9c {
|
|
@@ -1672,9 +1660,9 @@
|
|
|
1672
1660
|
}
|
|
1673
1661
|
|
|
1674
1662
|
.fds-checkbox-medium-ad9a8b9c {
|
|
1675
|
-
--fds-checkbox-size:
|
|
1663
|
+
--fds-checkbox-size: var(--fds-sizing-6);
|
|
1676
1664
|
|
|
1677
|
-
min-width: var(--fds-sizing-
|
|
1665
|
+
min-width: var(--fds-sizing-6);
|
|
1678
1666
|
}
|
|
1679
1667
|
|
|
1680
1668
|
.fds-checkbox-medium-ad9a8b9c .fds-checkbox-input-ad9a8b9c {
|
|
@@ -1683,9 +1671,9 @@
|
|
|
1683
1671
|
}
|
|
1684
1672
|
|
|
1685
1673
|
.fds-checkbox-large-ad9a8b9c {
|
|
1686
|
-
--fds-checkbox-size:
|
|
1674
|
+
--fds-checkbox-size: var(--fds-sizing-7);
|
|
1687
1675
|
|
|
1688
|
-
min-width: var(--fds-sizing-
|
|
1676
|
+
min-width: var(--fds-sizing-7);
|
|
1689
1677
|
}
|
|
1690
1678
|
|
|
1691
1679
|
.fds-checkbox-large-ad9a8b9c .fds-checkbox-input-ad9a8b9c {
|
|
@@ -1817,23 +1805,23 @@
|
|
|
1817
1805
|
|
|
1818
1806
|
.fds-radio-small-7a9bd584,
|
|
1819
1807
|
.fds-radio-small-7a9bd584 .fds-radio-label-7a9bd584 {
|
|
1820
|
-
min-height: var(--fds-sizing-
|
|
1808
|
+
min-height: var(--fds-sizing-5);
|
|
1821
1809
|
}
|
|
1822
1810
|
|
|
1823
1811
|
.fds-radio-medium-7a9bd584,
|
|
1824
1812
|
.fds-radio-medium-7a9bd584 .fds-radio-label-7a9bd584 {
|
|
1825
|
-
min-height: var(--fds-sizing-
|
|
1813
|
+
min-height: var(--fds-sizing-6);
|
|
1826
1814
|
}
|
|
1827
1815
|
|
|
1828
1816
|
.fds-radio-large-7a9bd584,
|
|
1829
1817
|
.fds-radio-large-7a9bd584 .fds-radio-label-7a9bd584 {
|
|
1830
|
-
min-height: var(--fds-sizing-
|
|
1818
|
+
min-height: var(--fds-sizing-7);
|
|
1831
1819
|
}
|
|
1832
1820
|
|
|
1833
1821
|
.fds-radio-small-7a9bd584 {
|
|
1834
|
-
--fds-radio-size:
|
|
1822
|
+
--fds-radio-size: var(--fds-sizing-5);
|
|
1835
1823
|
|
|
1836
|
-
min-width: var(--fds-sizing-
|
|
1824
|
+
min-width: var(--fds-sizing-5);
|
|
1837
1825
|
}
|
|
1838
1826
|
|
|
1839
1827
|
.fds-radio-small-7a9bd584 .fds-radio-input-7a9bd584 {
|
|
@@ -1842,9 +1830,9 @@
|
|
|
1842
1830
|
}
|
|
1843
1831
|
|
|
1844
1832
|
.fds-radio-medium-7a9bd584 {
|
|
1845
|
-
--fds-radio-size:
|
|
1833
|
+
--fds-radio-size: var(--fds-sizing-6);
|
|
1846
1834
|
|
|
1847
|
-
min-width: var(--fds-sizing-
|
|
1835
|
+
min-width: var(--fds-sizing-6);
|
|
1848
1836
|
}
|
|
1849
1837
|
|
|
1850
1838
|
.fds-radio-medium-7a9bd584 .fds-radio-input-7a9bd584 {
|
|
@@ -1853,9 +1841,9 @@
|
|
|
1853
1841
|
}
|
|
1854
1842
|
|
|
1855
1843
|
.fds-radio-large-7a9bd584 {
|
|
1856
|
-
--fds-radio-size:
|
|
1844
|
+
--fds-radio-size: var(--fds-sizing-7);
|
|
1857
1845
|
|
|
1858
|
-
min-width: var(--fds-sizing-
|
|
1846
|
+
min-width: var(--fds-sizing-7);
|
|
1859
1847
|
}
|
|
1860
1848
|
|
|
1861
1849
|
.fds-radio-large-7a9bd584 .fds-radio-input-7a9bd584 {
|
|
@@ -1973,22 +1961,22 @@
|
|
|
1973
1961
|
|
|
1974
1962
|
.fds-switch-small-9a6b03bc,
|
|
1975
1963
|
.fds-switch-small-9a6b03bc .fds-switch-label-9a6b03bc {
|
|
1976
|
-
min-height: var(--fds-sizing-
|
|
1964
|
+
min-height: var(--fds-sizing-6);
|
|
1977
1965
|
}
|
|
1978
1966
|
|
|
1979
1967
|
.fds-switch-medium-9a6b03bc,
|
|
1980
1968
|
.fds-switch-medium-9a6b03bc .fds-switch-label-9a6b03bc {
|
|
1981
|
-
min-height: var(--fds-sizing-
|
|
1969
|
+
min-height: var(--fds-sizing-7);
|
|
1982
1970
|
}
|
|
1983
1971
|
|
|
1984
1972
|
.fds-switch-large-9a6b03bc,
|
|
1985
1973
|
.fds-switch-large-9a6b03bc .fds-switch-label-9a6b03bc {
|
|
1986
|
-
min-height: var(--fds-sizing-
|
|
1974
|
+
min-height: var(--fds-sizing-8);
|
|
1987
1975
|
}
|
|
1988
1976
|
|
|
1989
1977
|
.fds-switch-small-9a6b03bc {
|
|
1990
|
-
--fds-switch-height:
|
|
1991
|
-
--fds-switch-width:
|
|
1978
|
+
--fds-switch-height: var(--fds-sizing-6);
|
|
1979
|
+
--fds-switch-width: var(--fds-sizing-11);
|
|
1992
1980
|
}
|
|
1993
1981
|
|
|
1994
1982
|
.fds-switch-small-9a6b03bc .fds-switch-input-9a6b03bc {
|
|
@@ -1997,8 +1985,8 @@
|
|
|
1997
1985
|
}
|
|
1998
1986
|
|
|
1999
1987
|
.fds-switch-medium-9a6b03bc {
|
|
2000
|
-
--fds-switch-height:
|
|
2001
|
-
--fds-switch-width:
|
|
1988
|
+
--fds-switch-height: var(--fds-sizing-7);
|
|
1989
|
+
--fds-switch-width: var(--fds-sizing-13);
|
|
2002
1990
|
}
|
|
2003
1991
|
|
|
2004
1992
|
.fds-switch-medium-9a6b03bc .fds-switch-input-9a6b03bc {
|
|
@@ -2007,8 +1995,8 @@
|
|
|
2007
1995
|
}
|
|
2008
1996
|
|
|
2009
1997
|
.fds-switch-large-9a6b03bc {
|
|
2010
|
-
--fds-switch-height:
|
|
2011
|
-
--fds-switch-width:
|
|
1998
|
+
--fds-switch-height: var(--fds-sizing-8);
|
|
1999
|
+
--fds-switch-width: var(--fds-sizing-15);
|
|
2012
2000
|
}
|
|
2013
2001
|
|
|
2014
2002
|
.fds-switch-large-9a6b03bc .fds-switch-input-9a6b03bc {
|
|
@@ -2138,27 +2126,27 @@
|
|
|
2138
2126
|
}
|
|
2139
2127
|
|
|
2140
2128
|
.fds-textfield-formField-d98267a0.fds-textfield-small-d98267a0 .fds-textfield-adornment-d98267a0 {
|
|
2141
|
-
padding:
|
|
2129
|
+
padding: var(--fds-sizing-2) var(--fds-spacing-3);
|
|
2142
2130
|
}
|
|
2143
2131
|
|
|
2144
2132
|
.fds-textfield-formField-d98267a0.fds-textfield-medium-d98267a0 .fds-textfield-adornment-d98267a0 {
|
|
2145
|
-
padding:
|
|
2133
|
+
padding: 0.65rem var(--fds-spacing-4);
|
|
2146
2134
|
}
|
|
2147
2135
|
|
|
2148
2136
|
.fds-textfield-formField-d98267a0.fds-textfield-large-d98267a0 .fds-textfield-adornment-d98267a0 {
|
|
2149
|
-
padding:
|
|
2137
|
+
padding: 0.85rem var(--fds-spacing-5);
|
|
2150
2138
|
}
|
|
2151
2139
|
|
|
2152
2140
|
.fds-textfield-formField-d98267a0.fds-textfield-small-d98267a0 .fds-textfield-field-d98267a0 {
|
|
2153
|
-
height: var(--fds-sizing-
|
|
2141
|
+
height: var(--fds-sizing-10);
|
|
2154
2142
|
}
|
|
2155
2143
|
|
|
2156
2144
|
.fds-textfield-formField-d98267a0.fds-textfield-medium-d98267a0 .fds-textfield-field-d98267a0 {
|
|
2157
|
-
height: var(--fds-sizing-
|
|
2145
|
+
height: var(--fds-sizing-12);
|
|
2158
2146
|
}
|
|
2159
2147
|
|
|
2160
2148
|
.fds-textfield-formField-d98267a0.fds-textfield-large-d98267a0 .fds-textfield-field-d98267a0 {
|
|
2161
|
-
height: var(--fds-sizing-
|
|
2149
|
+
height: var(--fds-sizing-14);
|
|
2162
2150
|
}
|
|
2163
2151
|
|
|
2164
2152
|
.fds-textfield-label-d98267a0 {
|
|
@@ -2646,8 +2634,9 @@
|
|
|
2646
2634
|
position: absolute;
|
|
2647
2635
|
height: 100%;
|
|
2648
2636
|
z-index: 2;
|
|
2649
|
-
left: var(--fds-spacing-
|
|
2637
|
+
left: var(--fds-spacing-4);
|
|
2650
2638
|
transform: scale(1.5);
|
|
2639
|
+
pointer-events: none;
|
|
2651
2640
|
}
|
|
2652
2641
|
|
|
2653
2642
|
[type='search']::-webkit-search-decoration,
|
|
@@ -2716,30 +2705,42 @@
|
|
|
2716
2705
|
z-index: 2;
|
|
2717
2706
|
}
|
|
2718
2707
|
|
|
2719
|
-
.fds-search-
|
|
2708
|
+
.fds-search-small-a6b5fe3c .fds-search-input-a6b5fe3c {
|
|
2720
2709
|
--f-search-button-clear-size: var(--fds-sizing-4);
|
|
2721
2710
|
|
|
2722
|
-
height: var(--fds-sizing-
|
|
2723
|
-
padding: 0 var(--fds-spacing-
|
|
2711
|
+
height: var(--fds-sizing-10);
|
|
2712
|
+
padding: 0 var(--fds-spacing-3);
|
|
2724
2713
|
padding-right: 2.5em;
|
|
2725
2714
|
}
|
|
2726
2715
|
|
|
2727
|
-
.fds-search-
|
|
2716
|
+
.fds-search-small-a6b5fe3c .fds-search-icon-a6b5fe3c {
|
|
2717
|
+
left: var(--fds-spacing-3);
|
|
2718
|
+
}
|
|
2719
|
+
|
|
2720
|
+
.fds-search-medium-a6b5fe3c .fds-search-input-a6b5fe3c {
|
|
2728
2721
|
--f-search-button-clear-size: var(--fds-sizing-6);
|
|
2729
2722
|
|
|
2730
|
-
height: var(--fds-sizing-
|
|
2731
|
-
padding: 0 var(--fds-spacing-
|
|
2723
|
+
height: var(--fds-sizing-12);
|
|
2724
|
+
padding: 0 var(--fds-spacing-4);
|
|
2732
2725
|
padding-right: 2.2em;
|
|
2733
2726
|
}
|
|
2734
2727
|
|
|
2735
|
-
.fds-search-
|
|
2728
|
+
.fds-search-medium-a6b5fe3c .fds-search-icon-a6b5fe3c {
|
|
2729
|
+
left: var(--fds-spacing-4);
|
|
2730
|
+
}
|
|
2731
|
+
|
|
2732
|
+
.fds-search-large-a6b5fe3c .fds-search-input-a6b5fe3c {
|
|
2736
2733
|
--f-search-button-clear-size: var(--fds-sizing-12);
|
|
2737
2734
|
|
|
2738
|
-
height: var(--fds-sizing-
|
|
2739
|
-
padding: 0 var(--fds-spacing-
|
|
2735
|
+
height: var(--fds-sizing-14);
|
|
2736
|
+
padding: 0 var(--fds-spacing-5);
|
|
2740
2737
|
padding-right: 2em;
|
|
2741
2738
|
}
|
|
2742
2739
|
|
|
2740
|
+
.fds-search-large-a6b5fe3c .fds-search-icon-a6b5fe3c {
|
|
2741
|
+
left: var(--fds-spacing-5);
|
|
2742
|
+
}
|
|
2743
|
+
|
|
2743
2744
|
.fds-search-input-a6b5fe3c.fds-search-simple-a6b5fe3c {
|
|
2744
2745
|
padding-left: 2.4em;
|
|
2745
2746
|
}
|
|
@@ -3235,6 +3236,7 @@
|
|
|
3235
3236
|
}
|
|
3236
3237
|
|
|
3237
3238
|
.fds-combobox-inputWrapper-249a725c.fds-combobox-small-249a725c {
|
|
3239
|
+
min-height: var(--fds-sizing-10);
|
|
3238
3240
|
font: var(--fds-typography-paragraph-small);
|
|
3239
3241
|
font-family: inherit;
|
|
3240
3242
|
padding: 5px var(--fds-spacing-2);
|
|
@@ -3246,6 +3248,7 @@
|
|
|
3246
3248
|
}
|
|
3247
3249
|
|
|
3248
3250
|
.fds-combobox-inputWrapper-249a725c.fds-combobox-medium-249a725c {
|
|
3251
|
+
min-height: var(--fds-sizing-12);
|
|
3249
3252
|
font: var(--fds-typography-paragraph-medium);
|
|
3250
3253
|
font-family: inherit;
|
|
3251
3254
|
padding: 7px var(--fds-spacing-3);
|
|
@@ -3257,6 +3260,7 @@
|
|
|
3257
3260
|
}
|
|
3258
3261
|
|
|
3259
3262
|
.fds-combobox-inputWrapper-249a725c.fds-combobox-large-249a725c {
|
|
3263
|
+
min-height: var(--fds-sizing-14);
|
|
3260
3264
|
font: var(--fds-typography-paragraph-large);
|
|
3261
3265
|
font-family: inherit;
|
|
3262
3266
|
padding: 7px var(--fds-spacing-4);
|