@festo-ui/react 11.0.0-dev.951 → 11.0.0-dev.953
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/components/search-input/SearchInput.js +2 -2
- package/dist/forms/combobox/ComboBox.js +2 -2
- package/dist/forms/multi-select/MultiSelect.js +2 -2
- package/dist/forms/select/Select.js +2 -2
- package/dist/forms/switch/Switch.d.ts +1 -1
- package/dist/forms/switch/Switch.js +1 -1
- package/package.json +1 -1
|
@@ -71,13 +71,13 @@ const SearchInput = /*#__PURE__*/ forwardRef(({ defaultValue, disabled, label, v
|
|
|
71
71
|
hasChildren && /*#__PURE__*/ jsx(ComboboxOptions, {
|
|
72
72
|
className: "fwe-search-suggestions",
|
|
73
73
|
as: "div",
|
|
74
|
-
portal: false,
|
|
75
74
|
anchor: {
|
|
76
75
|
to: 'bottom start',
|
|
77
76
|
gap: 4
|
|
78
77
|
},
|
|
79
78
|
style: {
|
|
80
|
-
minWidth: 'var(--input-width)'
|
|
79
|
+
minWidth: 'var(--input-width)',
|
|
80
|
+
zIndex: 1040
|
|
81
81
|
},
|
|
82
82
|
children: children
|
|
83
83
|
})
|
|
@@ -119,9 +119,9 @@ function ComboBoxComponent({ defaultValue = '', value: controlled, label, option
|
|
|
119
119
|
/*#__PURE__*/ jsxs(ComboboxOptions, {
|
|
120
120
|
className: "fwe-options-container",
|
|
121
121
|
as: "ul",
|
|
122
|
-
portal: false,
|
|
123
122
|
style: {
|
|
124
|
-
minWidth: 'var(--input-width)'
|
|
123
|
+
minWidth: 'var(--input-width)',
|
|
124
|
+
zIndex: 1040
|
|
125
125
|
},
|
|
126
126
|
anchor: {
|
|
127
127
|
to: 'bottom start',
|
|
@@ -122,9 +122,9 @@ function MultiSelectComponent({ defaultValue = [], value: controlled, label, opt
|
|
|
122
122
|
/*#__PURE__*/ jsx(ListboxOptions, {
|
|
123
123
|
className: "fwe-options-container fwe-options-container--multi-select",
|
|
124
124
|
as: "ul",
|
|
125
|
-
portal: false,
|
|
126
125
|
style: {
|
|
127
|
-
minWidth: 'var(--button-width)'
|
|
126
|
+
minWidth: 'var(--button-width)',
|
|
127
|
+
zIndex: 1040
|
|
128
128
|
},
|
|
129
129
|
anchor: {
|
|
130
130
|
to: 'bottom start',
|
|
@@ -49,9 +49,9 @@ function SelectComponent({ defaultValue = '', value: controlled, label, options
|
|
|
49
49
|
/*#__PURE__*/ jsx(ListboxOptions, {
|
|
50
50
|
className: "fwe-options-container",
|
|
51
51
|
as: "ul",
|
|
52
|
-
portal: false,
|
|
53
52
|
style: {
|
|
54
|
-
minWidth: 'var(--button-width)'
|
|
53
|
+
minWidth: 'var(--button-width)',
|
|
54
|
+
zIndex: 1040
|
|
55
55
|
},
|
|
56
56
|
anchor: {
|
|
57
57
|
to: 'bottom start',
|
|
@@ -2,7 +2,7 @@ import { type ComponentPropsWithoutRef } from 'react';
|
|
|
2
2
|
export interface SwitchProps extends Omit<ComponentPropsWithoutRef<'input'>, 'type' | 'onChange' | 'value' | 'defaultValue' | 'checked'> {
|
|
3
3
|
readonly labelPosition?: 'before' | 'after' | 'below';
|
|
4
4
|
readonly large?: boolean;
|
|
5
|
-
readonly title
|
|
5
|
+
readonly title?: string;
|
|
6
6
|
readonly value?: boolean;
|
|
7
7
|
readonly defaultValue?: boolean;
|
|
8
8
|
readonly onChange?: (value: boolean, event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
@@ -37,7 +37,7 @@ const Switch = /*#__PURE__*/ forwardRef(({ labelPosition = 'after', large = fals
|
|
|
37
37
|
/*#__PURE__*/ jsx("div", {
|
|
38
38
|
className: "fwe-switch-track"
|
|
39
39
|
}),
|
|
40
|
-
/*#__PURE__*/ jsx("div", {
|
|
40
|
+
!!title && /*#__PURE__*/ jsx("div", {
|
|
41
41
|
className: "fwe-switch-label-content",
|
|
42
42
|
children: title
|
|
43
43
|
})
|
package/package.json
CHANGED