@salutejs/plasma-new-hope 0.196.1-dev.0 → 0.197.0-canary.1556.11973013493.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/components/Autocomplete/Autocomplete.css +18 -19
- package/cjs/components/Autocomplete/Autocomplete.js +7 -1
- package/cjs/components/Autocomplete/Autocomplete.js.map +1 -1
- package/cjs/components/Combobox/ComboboxNew/Combobox.css +18 -19
- package/cjs/components/Combobox/ComboboxNew/Combobox.js +7 -2
- package/cjs/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
- package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.css +18 -19
- package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +18 -19
- package/cjs/components/DatePicker/RangeDate/RangeDate.css +18 -19
- package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +18 -19
- package/cjs/components/DatePicker/SingleDate/SingleDate.css +18 -19
- package/cjs/components/DatePicker/SingleDate/SingleDate.js +7 -3
- package/cjs/components/DatePicker/SingleDate/SingleDate.js.map +1 -1
- package/cjs/components/Pagination/Pagination.css +18 -19
- package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +18 -19
- package/cjs/components/Range/Range.css +18 -19
- package/cjs/components/Select/Select.css +18 -19
- package/cjs/components/Select/ui/Inner/Inner.css +18 -19
- package/cjs/components/Select/ui/Inner/ui/Item/Item.css +18 -19
- package/cjs/components/Select/ui/Target/Target.css +18 -19
- package/cjs/components/Select/ui/Target/Target.js +1 -2
- package/cjs/components/Select/ui/Target/Target.js.map +1 -1
- package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.css +18 -19
- package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +12 -7
- package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -1
- package/cjs/components/Slider/Slider.css +18 -19
- package/cjs/components/Slider/components/Double/Double.css +18 -19
- package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +18 -19
- package/cjs/components/TextField/TextField.js +12 -11
- package/cjs/components/TextField/TextField.js.map +1 -1
- package/cjs/components/TextField/TextField.styles.js +20 -11
- package/cjs/components/TextField/TextField.styles.js.map +1 -1
- package/cjs/components/TextField/{TextField.styles_j7dqpn.css → TextField.styles_ppcxpx.css} +1 -1
- package/cjs/components/TextField/TextField.tokens.js +1 -0
- package/cjs/components/TextField/TextField.tokens.js.map +1 -1
- package/cjs/components/TextField/ui/Hint/Hint.css +20 -20
- package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.css +1 -2
- package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js +3 -17
- package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js.map +1 -1
- package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +1 -7
- package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js.map +1 -1
- package/{es/components/TextField/ui/TextFieldChip/TextFieldChip.styles_1yosnxc.css → cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles_1y8n7la.css} +0 -1
- package/cjs/components/TextField/variations/_label-placement/base.js +1 -1
- package/cjs/components/TextField/variations/_label-placement/base.js.map +1 -1
- package/cjs/components/TextField/variations/_label-placement/base_y1lvvc.css +1 -0
- package/cjs/index.css +18 -19
- package/emotion/cjs/components/Autocomplete/Autocomplete.js +7 -1
- package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.js +7 -2
- package/emotion/cjs/components/DatePicker/SingleDate/SingleDate.js +7 -3
- package/emotion/cjs/components/Select/ui/Target/Target.js +1 -2
- package/emotion/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +12 -7
- package/emotion/cjs/components/TextField/TextField.js +13 -12
- package/emotion/cjs/components/TextField/TextField.styles.js +29 -26
- package/emotion/cjs/components/TextField/TextField.template-doc.mdx +3 -13
- package/emotion/cjs/components/TextField/TextField.tokens.js +1 -0
- package/emotion/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js +3 -17
- package/emotion/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +3 -12
- package/emotion/cjs/components/TextField/variations/_label-placement/base.js +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Select/Select.stories.tsx +1 -8
- package/emotion/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +7 -10
- package/emotion/cjs/examples/plasma_web/components/Select/Select.stories.tsx +1 -8
- package/emotion/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +9 -12
- package/emotion/es/components/Autocomplete/Autocomplete.js +7 -1
- package/emotion/es/components/Combobox/ComboboxNew/Combobox.js +7 -2
- package/emotion/es/components/DatePicker/SingleDate/SingleDate.js +7 -3
- package/emotion/es/components/Select/ui/Target/Target.js +1 -2
- package/emotion/es/components/Select/ui/Target/ui/Textfield/Textfield.js +12 -7
- package/emotion/es/components/TextField/TextField.js +13 -12
- package/emotion/es/components/TextField/TextField.styles.js +29 -26
- package/emotion/es/components/TextField/TextField.template-doc.mdx +3 -13
- package/emotion/es/components/TextField/TextField.tokens.js +1 -0
- package/emotion/es/components/TextField/ui/TextFieldChip/TextFieldChip.js +4 -18
- package/emotion/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +2 -11
- package/emotion/es/components/TextField/variations/_label-placement/base.js +1 -1
- package/emotion/es/examples/plasma_b2c/components/Select/Select.stories.tsx +1 -8
- package/emotion/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +7 -10
- package/emotion/es/examples/plasma_web/components/Select/Select.stories.tsx +1 -8
- package/emotion/es/examples/plasma_web/components/TextField/TextField.stories.tsx +9 -12
- package/es/components/Autocomplete/Autocomplete.css +18 -19
- package/es/components/Autocomplete/Autocomplete.js +7 -1
- package/es/components/Autocomplete/Autocomplete.js.map +1 -1
- package/es/components/Combobox/ComboboxNew/Combobox.css +18 -19
- package/es/components/Combobox/ComboboxNew/Combobox.js +7 -2
- package/es/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
- package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.css +18 -19
- package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +18 -19
- package/es/components/DatePicker/RangeDate/RangeDate.css +18 -19
- package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +18 -19
- package/es/components/DatePicker/SingleDate/SingleDate.css +18 -19
- package/es/components/DatePicker/SingleDate/SingleDate.js +7 -3
- package/es/components/DatePicker/SingleDate/SingleDate.js.map +1 -1
- package/es/components/Pagination/Pagination.css +18 -19
- package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +18 -19
- package/es/components/Range/Range.css +18 -19
- package/es/components/Select/Select.css +18 -19
- package/es/components/Select/ui/Inner/Inner.css +18 -19
- package/es/components/Select/ui/Inner/ui/Item/Item.css +18 -19
- package/es/components/Select/ui/Target/Target.css +18 -19
- package/es/components/Select/ui/Target/Target.js +1 -2
- package/es/components/Select/ui/Target/Target.js.map +1 -1
- package/es/components/Select/ui/Target/ui/Textfield/Textfield.css +18 -19
- package/es/components/Select/ui/Target/ui/Textfield/Textfield.js +12 -7
- package/es/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -1
- package/es/components/Slider/Slider.css +18 -19
- package/es/components/Slider/components/Double/Double.css +18 -19
- package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +18 -19
- package/es/components/TextField/TextField.js +12 -11
- package/es/components/TextField/TextField.js.map +1 -1
- package/es/components/TextField/TextField.styles.js +20 -11
- package/es/components/TextField/TextField.styles.js.map +1 -1
- package/es/components/TextField/{TextField.styles_j7dqpn.css → TextField.styles_ppcxpx.css} +1 -1
- package/es/components/TextField/TextField.tokens.js +1 -0
- package/es/components/TextField/TextField.tokens.js.map +1 -1
- package/es/components/TextField/ui/Hint/Hint.css +20 -20
- package/es/components/TextField/ui/TextFieldChip/TextFieldChip.css +1 -2
- package/es/components/TextField/ui/TextFieldChip/TextFieldChip.js +4 -18
- package/es/components/TextField/ui/TextFieldChip/TextFieldChip.js.map +1 -1
- package/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +2 -7
- package/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js.map +1 -1
- package/{cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles_1yosnxc.css → es/components/TextField/ui/TextFieldChip/TextFieldChip.styles_1y8n7la.css} +0 -1
- package/es/components/TextField/variations/_label-placement/base.js +1 -1
- package/es/components/TextField/variations/_label-placement/base.js.map +1 -1
- package/es/components/TextField/variations/_label-placement/base_y1lvvc.css +1 -0
- package/es/index.css +18 -19
- package/package.json +2 -2
- package/styled-components/cjs/components/Autocomplete/Autocomplete.js +7 -1
- package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.js +7 -2
- package/styled-components/cjs/components/DatePicker/SingleDate/SingleDate.js +7 -3
- package/styled-components/cjs/components/Select/ui/Target/Target.js +1 -2
- package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +12 -7
- package/styled-components/cjs/components/TextField/TextField.js +12 -11
- package/styled-components/cjs/components/TextField/TextField.styles.js +9 -6
- package/styled-components/cjs/components/TextField/TextField.template-doc.mdx +3 -13
- package/styled-components/cjs/components/TextField/TextField.tokens.js +1 -0
- package/styled-components/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js +3 -17
- package/styled-components/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +2 -10
- package/styled-components/cjs/components/TextField/variations/_label-placement/base.js +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Select/Select.stories.tsx +1 -8
- package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +7 -10
- package/styled-components/cjs/examples/plasma_web/components/Select/Select.stories.tsx +1 -8
- package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +9 -12
- package/styled-components/es/components/Autocomplete/Autocomplete.js +7 -1
- package/styled-components/es/components/Combobox/ComboboxNew/Combobox.js +7 -2
- package/styled-components/es/components/DatePicker/SingleDate/SingleDate.js +7 -3
- package/styled-components/es/components/Select/ui/Target/Target.js +1 -2
- package/styled-components/es/components/Select/ui/Target/ui/Textfield/Textfield.js +12 -7
- package/styled-components/es/components/TextField/TextField.js +12 -11
- package/styled-components/es/components/TextField/TextField.styles.js +9 -6
- package/styled-components/es/components/TextField/TextField.template-doc.mdx +3 -13
- package/styled-components/es/components/TextField/TextField.tokens.js +1 -0
- package/styled-components/es/components/TextField/ui/TextFieldChip/TextFieldChip.js +4 -18
- package/styled-components/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +1 -9
- package/styled-components/es/components/TextField/variations/_label-placement/base.js +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Select/Select.stories.tsx +1 -8
- package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +7 -10
- package/styled-components/es/examples/plasma_web/components/Select/Select.stories.tsx +1 -8
- package/styled-components/es/examples/plasma_web/components/TextField/TextField.stories.tsx +9 -12
- package/types/components/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/types/components/Autocomplete/Autocomplete.types.d.ts +2 -3
- package/types/components/Autocomplete/Autocomplete.types.d.ts.map +1 -1
- package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts +709 -69
- package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/Combobox.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts +30 -10
- package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/ui/Target/Target.styles.d.ts +709 -69
- package/types/components/Combobox/ComboboxNew/ui/Target/Target.styles.d.ts.map +1 -1
- package/types/components/DatePicker/SingleDate/SingleDate.d.ts +2 -2
- package/types/components/DatePicker/SingleDate/SingleDate.d.ts.map +1 -1
- package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts +709 -69
- package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts.map +1 -1
- package/types/components/DatePicker/SingleDate/SingleDate.types.d.ts +28 -9
- package/types/components/DatePicker/SingleDate/SingleDate.types.d.ts.map +1 -1
- package/types/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.d.ts +282 -20
- package/types/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.d.ts.map +1 -1
- package/types/components/Range/Range.styles.d.ts +709 -69
- package/types/components/Range/Range.styles.d.ts.map +1 -1
- package/types/components/Select/Select.types.d.ts +30 -15
- package/types/components/Select/Select.types.d.ts.map +1 -1
- package/types/components/Select/ui/Target/Target.d.ts +1 -1
- package/types/components/Select/ui/Target/Target.d.ts.map +1 -1
- package/types/components/Select/ui/Target/Target.types.d.ts +1 -1
- package/types/components/Select/ui/Target/Target.types.d.ts.map +1 -1
- package/types/components/Select/ui/Target/ui/Textfield/Textfield.d.ts.map +1 -1
- package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts +709 -69
- package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts.map +1 -1
- package/types/components/Select/ui/Target/ui/Textfield/Textfield.types.d.ts +1 -1
- package/types/components/Select/ui/Target/ui/Textfield/Textfield.types.d.ts.map +1 -1
- package/types/components/Slider/components/Double/Double.styles.d.ts +709 -69
- package/types/components/Slider/components/Double/Double.styles.d.ts.map +1 -1
- package/types/components/TextField/TextField.d.ts.map +1 -1
- package/types/components/TextField/TextField.styles.d.ts +3 -1
- package/types/components/TextField/TextField.styles.d.ts.map +1 -1
- package/types/components/TextField/TextField.tokens.d.ts +1 -0
- package/types/components/TextField/TextField.tokens.d.ts.map +1 -1
- package/types/components/TextField/TextField.types.d.ts +42 -27
- package/types/components/TextField/TextField.types.d.ts.map +1 -1
- package/types/components/TextField/ui/TextFieldChip/TextFieldChip.d.ts.map +1 -1
- package/types/components/TextField/ui/TextFieldChip/TextFieldChip.styles.d.ts +0 -1
- package/types/components/TextField/ui/TextFieldChip/TextFieldChip.styles.d.ts.map +1 -1
- package/types/components/TextField/ui/TextFieldChip/TextFieldChip.types.d.ts +1 -5
- package/types/components/TextField/ui/TextFieldChip/TextFieldChip.types.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Autocomplete/Autocomplete.d.ts +5 -557
- package/types/examples/plasma_b2c/components/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts +1045 -133
- package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/DatePicker/DatePicker.d.ts +47 -1
- package/types/examples/plasma_b2c/components/DatePicker/DatePicker.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Mask/Mask.d.ts +1238 -70
- package/types/examples/plasma_b2c/components/Mask/Mask.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Select/Select.d.ts +282 -20
- package/types/examples/plasma_b2c/components/Select/Select.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/TextField/TextField.d.ts +709 -69
- package/types/examples/plasma_b2c/components/TextField/TextField.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Autocomplete/Autocomplete.d.ts +5 -557
- package/types/examples/plasma_web/components/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Combobox/Combobox.d.ts +1045 -133
- package/types/examples/plasma_web/components/Combobox/Combobox.d.ts.map +1 -1
- package/types/examples/plasma_web/components/DatePicker/DatePicker.d.ts +47 -1
- package/types/examples/plasma_web/components/DatePicker/DatePicker.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Mask/Mask.d.ts +1238 -70
- package/types/examples/plasma_web/components/Mask/Mask.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Select/Select.d.ts +282 -20
- package/types/examples/plasma_web/components/Select/Select.d.ts.map +1 -1
- package/types/examples/plasma_web/components/TextField/TextField.d.ts +709 -69
- package/types/examples/plasma_web/components/TextField/TextField.d.ts.map +1 -1
- package/cjs/components/TextField/variations/_label-placement/base_gttvto.css +0 -1
- package/es/components/TextField/variations/_label-placement/base_gttvto.css +0 -1
@@ -62,7 +62,7 @@ export function App() {
|
|
62
62
|
```
|
63
63
|
|
64
64
|
### Статус поля
|
65
|
-
Статус поля задается с помощью свойства `status`.
|
65
|
+
Статус поля задается с помощью свойства `status`.
|
66
66
|
Возможные значения свойства: `success`, `warning` и `error`.
|
67
67
|
На отображение TextField так же влияют свойства `clear` и `hasDivider`:
|
68
68
|
|
@@ -150,7 +150,7 @@ export function App() {
|
|
150
150
|
```
|
151
151
|
|
152
152
|
### Режим ввода
|
153
|
-
С помощью свойства `enumerationType` можно вводить элементы как теги.
|
153
|
+
С помощью свойства `enumerationType` можно вводить элементы как теги.
|
154
154
|
По нажатию Enter, после ввода нужного текста, он преобразуется в Chip:
|
155
155
|
|
156
156
|
```tsx live
|
@@ -166,17 +166,7 @@ export function App() {
|
|
166
166
|
size="l"
|
167
167
|
enumerationType="chip"
|
168
168
|
helperText="Подсказка снизу"
|
169
|
-
|
170
|
-
/>
|
171
|
-
|
172
|
-
<TextField
|
173
|
-
placeholder="Введите значение"
|
174
|
-
defaultValue="Значение"
|
175
|
-
size="l"
|
176
|
-
enumerationType="chip"
|
177
|
-
helperText="Подсказка снизу"
|
178
|
-
chips={["Значение 1"]}
|
179
|
-
chipType="text"
|
169
|
+
values={["Значение 1"]}
|
180
170
|
/>
|
181
171
|
</div>
|
182
172
|
);
|
@@ -7,6 +7,7 @@ exports.tokens = exports.classes = void 0;
|
|
7
7
|
var classes = exports.classes = {
|
8
8
|
hasChips: 'has-chips',
|
9
9
|
hasValue: 'has-value',
|
10
|
+
forcePlaceholder: 'force-placeholder',
|
10
11
|
hasEmptyContentLeft: 'has-empty-content-left',
|
11
12
|
hasEmptyContentRight: 'has-empty-content-right',
|
12
13
|
innerLabelPlacement: 'label-placement-inner',
|
@@ -20,23 +20,14 @@ var TextFieldChip = exports.TextFieldChip = /*#__PURE__*/(0, _react.forwardRef)(
|
|
20
20
|
onClick = _ref.onClick,
|
21
21
|
onClear = _ref.onClear,
|
22
22
|
onKeyDown = _ref.onKeyDown,
|
23
|
-
_forceChipManipulationWithReadonly = _ref._forceChipManipulationWithReadonly
|
24
|
-
chipType = _ref.chipType;
|
23
|
+
_forceChipManipulationWithReadonly = _ref._forceChipManipulationWithReadonly;
|
25
24
|
var onClearHandle = function onClearHandle() {
|
26
25
|
return onClear(id);
|
27
26
|
};
|
28
27
|
var onKeyDownHandle = function onKeyDownHandle(event) {
|
29
28
|
onKeyDown === null || onKeyDown === void 0 || onKeyDown(event, id);
|
30
29
|
};
|
31
|
-
|
32
|
-
if (onClick) {
|
33
|
-
onClick(e);
|
34
|
-
}
|
35
|
-
if (onClear) {
|
36
|
-
onClear(id);
|
37
|
-
}
|
38
|
-
};
|
39
|
-
return chipType === 'default' ? /*#__PURE__*/_react["default"].createElement(_TextFieldChip.StyledChip, {
|
30
|
+
return /*#__PURE__*/_react["default"].createElement(_TextFieldChip.StyledChip, {
|
40
31
|
ref: ref,
|
41
32
|
tabIndex: -1,
|
42
33
|
disabled: disabled,
|
@@ -50,10 +41,5 @@ var TextFieldChip = exports.TextFieldChip = /*#__PURE__*/(0, _react.forwardRef)(
|
|
50
41
|
// @ts-ignore
|
51
42
|
,
|
52
43
|
_forceChipManipulationWithReadonly: _forceChipManipulationWithReadonly
|
53
|
-
})
|
54
|
-
ref: ref,
|
55
|
-
tabIndex: -1,
|
56
|
-
onClick: handleClick,
|
57
|
-
onKeyDown: onKeyDownHandle
|
58
|
-
}, text);
|
44
|
+
});
|
59
45
|
});
|
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.
|
6
|
+
exports.StyledChip = void 0;
|
7
7
|
var _base = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("@emotion/styled/base"));
|
8
8
|
var _Chip = /*#__PURE__*/require("../../../Chip");
|
9
9
|
var _engines = /*#__PURE__*/require("../../../../engines");
|
@@ -16,20 +16,11 @@ var Chip = /*#__PURE__*/(0, _engines.component)(mergedConfig);
|
|
16
16
|
|
17
17
|
// NOTE: Необходимое переопределение токенов из компонента Chip т.к. используются его части
|
18
18
|
var StyledChip = exports.StyledChip = /*#__PURE__*/(0, _base["default"])(Chip, {
|
19
|
-
target: "
|
19
|
+
target: "e7ctrkt0",
|
20
20
|
label: "plasma-new-hope__StyledChip"
|
21
21
|
})(_Chip.chipTokens.color, ":var(", _TextField.tokens.chipColor, ");", _Chip.chipTokens.background, ":var(", _TextField.tokens.chipBackground, ");", _Chip.chipTokens.colorHover, ":var(", _TextField.tokens.chipColorHover, ");", _Chip.chipTokens.backgroundHover, ":var(", _TextField.tokens.chipBackgroundHover, ");", _Chip.chipTokens.colorActive, ":var(", _TextField.tokens.chipColorActive, ");", _Chip.chipTokens.backgroundActive, ":var(", _TextField.tokens.chipBackgroundActive, ");", _Chip.chipTokens.backgroundReadOnly, ":var(", _TextField.tokens.chipBackgroundReadOnly, ");", _Chip.chipTokens.colorReadOnly, ":var(", _TextField.tokens.chipColorReadOnly, ");", _Chip.chipTokens.backgroundReadOnlyHover, ":var(", _TextField.tokens.chipBackgroundReadOnlyHover, ");", _Chip.chipTokens.colorReadOnlyHover, ":var(", _TextField.tokens.chipColorReadOnlyHover, ");", _Chip.chipTokens.borderRadius, ":var(", _TextField.tokens.chipBorderRadius, ");", _Chip.chipTokens.width, ":var(", _TextField.tokens.chipWidth, ");", _Chip.chipTokens.height, ":var(", _TextField.tokens.chipHeight, ");", _Chip.chipTokens.paddingRight, ":var(", _TextField.tokens.chipPaddingRight, ");", _Chip.chipTokens.paddingLeft, ":var(", _TextField.tokens.chipPaddingLeft, ");", _Chip.chipTokens.fontFamily, ":var(", _TextField.tokens.chipFontFamily, ");", _Chip.chipTokens.fontSize, ":var(", _TextField.tokens.chipFontSize, ");", _Chip.chipTokens.fontStyle, ":var(", _TextField.tokens.chipFontStyle, ");", _Chip.chipTokens.fontWeight, ":var(", _TextField.tokens.chipFontWeight, ");", _Chip.chipTokens.letterSpacing, ":var(", _TextField.tokens.chipLetterSpacing, ");", _Chip.chipTokens.lineHeight, ":var(", _TextField.tokens.chipLineHeight, ");", _Chip.chipTokens.clearContentMarginLeft, ":var(", _TextField.tokens.chipClearContentMarginLeft, ");", _Chip.chipTokens.clearContentMarginRight, ":var(", _TextField.tokens.chipClearContentMarginRight, ");", _Chip.chipTokens.scaleHover, ":var(", _TextField.tokens.chipScaleHover, ");", _Chip.chipTokens.scaleActive, ":var(", _TextField.tokens.chipScaleActive, ");", _Chip.chipTokens.closeIconSize, ":var(", _TextField.tokens.chipCloseIconSize, ");", _Chip.chipTokens.closeIconColor, ":var(", _TextField.tokens.chipCloseIconColor, ");", _Chip.chipTokens.focusColor, ":var(", _TextField.tokens.focusColor, ");scroll-snap-align:center;scroll-snap-stop:normal;", /*#__PURE__*/(0, _mixins.addFocus)({
|
22
22
|
outlineOffset: '0.0625rem',
|
23
23
|
outlineSize: '0.0625rem',
|
24
24
|
outlineRadius: /*#__PURE__*/"calc(var(".concat(_TextField.tokens.chipBorderRadius, ") - 0.1rem)"),
|
25
25
|
outlineColor: /*#__PURE__*/"var(".concat(_TextField.tokens.focusColor, ")")
|
26
|
-
}), " &[readonly]{opacity:var(", _TextField.tokens.chipOpacityReadonly, ");}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvVGV4dEZpZWxkL3VpL1RleHRGaWVsZENoaXAvVGV4dEZpZWxkQ2hpcC5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBWXNDIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvVGV4dEZpZWxkL3VpL1RleHRGaWVsZENoaXAvVGV4dEZpZWxkQ2hpcC5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5cbmltcG9ydCB7IGNoaXBDb25maWcsIGNoaXBUb2tlbnMgfSBmcm9tICcuLi8uLi8uLi9DaGlwJztcbmltcG9ydCB7IGNvbXBvbmVudCwgbWVyZ2VDb25maWcgfSBmcm9tICcuLi8uLi8uLi8uLi9lbmdpbmVzJztcbmltcG9ydCB7IHRva2VucyB9IGZyb20gJy4uLy4uL1RleHRGaWVsZC50b2tlbnMnO1xuaW1wb3J0IHsgYWRkRm9jdXMgfSBmcm9tICcuLi8uLi8uLi8uLi9taXhpbnMnO1xuXG4vLyBpc3N1ZSAjODIzXG5jb25zdCBtZXJnZWRDb25maWcgPSBtZXJnZUNvbmZpZyhjaGlwQ29uZmlnKTtcbmNvbnN0IENoaXAgPSBjb21wb25lbnQobWVyZ2VkQ29uZmlnKTtcblxuLy8gTk9URTog0J3QtdC+0LHRhdC+0LTQuNC80L7QtSDQv9C10YDQtdC+0L/RgNC10LTQtdC70LXQvdC40LUg0YLQvtC60LXQvdC+0LIg0LjQtyDQutC+0LzQv9C+0L3QtdC90YLQsCBDaGlwINGCLtC6LiDQuNGB0L/QvtC70YzQt9GD0Y7RgtGB0Y8g0LXQs9C+
|
27
|
-
var TextChip = exports.TextChip = /*#__PURE__*/(0, _base["default"])("button", {
|
28
|
-
target: "e7ctrkt0",
|
29
|
-
label: "plasma-new-hope__TextChip"
|
30
|
-
})("display:block;flex:none;background:none;border:none;outline:none;padding:0;white-space:nowrap;cursor:pointer;font-family:var(", _TextField.tokens.fontFamily, ");font-size:var(", _TextField.tokens.fontSize, ");font-style:var(", _TextField.tokens.fontStyle, ");font-weight:var(", _TextField.tokens.fontWeight, ");letter-spacing:var(", _TextField.tokens.letterSpacing, ");line-height:var(", _TextField.tokens.lineHeight, ");color:var(", _TextField.tokens.color, ");", /*#__PURE__*/(0, _mixins.addFocus)({
|
31
|
-
outlineOffset: '0.0625rem',
|
32
|
-
outlineSize: '0.0625rem',
|
33
|
-
outlineRadius: /*#__PURE__*/"calc(var(".concat(_TextField.tokens.chipBorderRadius, ") - 0.1rem)"),
|
34
|
-
outlineColor: /*#__PURE__*/"var(".concat(_TextField.tokens.focusColor, ")")
|
35
|
-
}), " &:after{content:',';}&:last-child{&:after{content:'';}}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvVGV4dEZpZWxkL3VpL1RleHRGaWVsZENoaXAvVGV4dEZpZWxkQ2hpcC5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBeURxQyIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL1RleHRGaWVsZC91aS9UZXh0RmllbGRDaGlwL1RleHRGaWVsZENoaXAuc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuXG5pbXBvcnQgeyBjaGlwQ29uZmlnLCBjaGlwVG9rZW5zIH0gZnJvbSAnLi4vLi4vLi4vQ2hpcCc7XG5pbXBvcnQgeyBjb21wb25lbnQsIG1lcmdlQ29uZmlnIH0gZnJvbSAnLi4vLi4vLi4vLi4vZW5naW5lcyc7XG5pbXBvcnQgeyB0b2tlbnMgfSBmcm9tICcuLi8uLi9UZXh0RmllbGQudG9rZW5zJztcbmltcG9ydCB7IGFkZEZvY3VzIH0gZnJvbSAnLi4vLi4vLi4vLi4vbWl4aW5zJztcblxuLy8gaXNzdWUgIzgyM1xuY29uc3QgbWVyZ2VkQ29uZmlnID0gbWVyZ2VDb25maWcoY2hpcENvbmZpZyk7XG5jb25zdCBDaGlwID0gY29tcG9uZW50KG1lcmdlZENvbmZpZy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xuICAgICY6bGFzdC1jaGlsZCB7XG4gICAgICAgICY6YWZ0ZXIge1xuICAgICAgICAgICAgY29udGVudDogJyc7XG4gICAgICAgIH1cbiAgICB9XG5gO1xuIl19 */"));
|
26
|
+
}), " &[readonly]{opacity:var(", _TextField.tokens.chipOpacityReadonly, ");}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvVGV4dEZpZWxkL3VpL1RleHRGaWVsZENoaXAvVGV4dEZpZWxkQ2hpcC5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBWXNDIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvVGV4dEZpZWxkL3VpL1RleHRGaWVsZENoaXAvVGV4dEZpZWxkQ2hpcC5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5cbmltcG9ydCB7IGNoaXBDb25maWcsIGNoaXBUb2tlbnMgfSBmcm9tICcuLi8uLi8uLi9DaGlwJztcbmltcG9ydCB7IGNvbXBvbmVudCwgbWVyZ2VDb25maWcgfSBmcm9tICcuLi8uLi8uLi8uLi9lbmdpbmVzJztcbmltcG9ydCB7IHRva2VucyB9IGZyb20gJy4uLy4uL1RleHRGaWVsZC50b2tlbnMnO1xuaW1wb3J0IHsgYWRkRm9jdXMgfSBmcm9tICcuLi8uLi8uLi8uLi9taXhpbnMnO1xuXG4vLyBpc3N1ZSAjODIzXG5jb25zdCBtZXJnZWRDb25maWcgPSBtZXJnZUNvbmZpZyhjaGlwQ29uZmlnKTtcbmNvbnN0IENoaXAgPSBjb21wb25lbnQobWVyZ2VkQ29uZmlnKTtcblxuLy8g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));
|
@@ -7,4 +7,4 @@ exports.base = void 0;
|
|
7
7
|
var _react = /*#__PURE__*/require("@emotion/react");
|
8
8
|
var _TextField = /*#__PURE__*/require("../../TextField.tokens");
|
9
9
|
var _TextField2 = /*#__PURE__*/require("../../TextField.styles");
|
10
|
-
var base = exports.base = /*#__PURE__*/(0, _react.css)("&.", _TextField.classes.outerLabelPlacement, "{", _TextField2.Label, "{position:relative;display:inline-block;color:var(", _TextField.tokens.labelColor, ");}}&.", _TextField.classes.innerLabelPlacement, "{", _TextField2.InputContainer, "{padding:var(", _TextField.tokens.contentLabelInnerPadding, ");}", _TextField2.StyledTextAfter, ",", _TextField2.StyledTextBefore, "{padding:var(", _TextField.tokens.contentLabelInnerPadding, ");}", _TextField2.Input, ":focus~", _TextField2.Label, ",", _TextField2.Input, ".", _TextField.classes.hasValue, "~", _TextField2.Label, "{color:var(", _TextField.tokens.placeholderColor, ");align-items:flex-start;padding:var(", _TextField.tokens.labelInnerPadding, ");font-family:var(", _TextField.tokens.labelInnerFontFamily, ");font-size:var(", _TextField.tokens.labelInnerFontSize, ");font-style:var(", _TextField.tokens.labelInnerFontStyle, ");font-weight:var(", _TextField.tokens.labelInnerFontWeight, ");letter-spacing:var(", _TextField.tokens.labelInnerLetterSpacing, ");line-height:var(", _TextField.tokens.labelInnerLineHeight, ");}", _TextField2.Label, "{color:var(", _TextField.tokens.placeholderColor, ");pointer-events:none;position:absolute;top:0;display:flex;align-items:center;box-sizing:border-box;height:var(", _TextField.tokens.height, ");padding-top:calc(calc(var(", _TextField.tokens.height, ") - var(", _TextField.tokens.labelLineHeight, ")) / 2);padding-bottom:calc(calc(var(", _TextField.tokens.height, ") - var(", _TextField.tokens.labelLineHeight, ")) / 2);}&.", _TextField.classes.clear, " ", _TextField2.Label, "{color:var(", _TextField.tokens.clearPlaceholderColor, ");}};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9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B9XG5cbiAgICAgICAgJHtTdHlsZWRUZXh0QWZ0ZXJ9LCAke1N0eWxlZFRleHRCZWZvcmV9IHtcbiAgICAgICAgICAgIHBhZGRpbmc6IHZhcigke3Rva2Vucy5jb250ZW50TGFiZWxJbm5lclBhZGRpbmd9KTtcbiAgICAgICAgfVxuXG4gICAgICAgIC8qINC/0L7QtNC90LjQvNCw0LXRgiBsYWJlbCDQstCy0LXRgNGFINC/0YDQuCDRhNC+0LrRg9GB0LUsINC90LDQu9C40YfQuNC4INC30L3QsNGH0LXQvdC40Y8gKi9cbiAgICAgICAgJHtJbnB1dH06Zm9jdXMgfiAke0xhYmVsfSwgJHtJbnB1dH0uJHtjbGFzc2VzLmhhc1ZhbHVlfSB+
|
10
|
+
var base = exports.base = /*#__PURE__*/(0, _react.css)("&.", _TextField.classes.outerLabelPlacement, "{", _TextField2.Label, "{position:relative;display:inline-block;color:var(", _TextField.tokens.labelColor, ");}}&.", _TextField.classes.innerLabelPlacement, "{", _TextField2.InputContainer, "{padding:var(", _TextField.tokens.contentLabelInnerPadding, ");}", _TextField2.StyledTextAfter, ",", _TextField2.StyledTextBefore, "{padding:var(", _TextField.tokens.contentLabelInnerPadding, ");}", _TextField2.Input, ":focus~", _TextField2.Label, ",", _TextField2.Input, ".", _TextField.classes.hasValue, "~", _TextField2.Label, ",", _TextField2.Input, ".", _TextField.classes.forcePlaceholder, "~", _TextField2.Label, "{color:var(", _TextField.tokens.placeholderColor, ");align-items:flex-start;padding:var(", _TextField.tokens.labelInnerPadding, ");font-family:var(", _TextField.tokens.labelInnerFontFamily, ");font-size:var(", _TextField.tokens.labelInnerFontSize, ");font-style:var(", _TextField.tokens.labelInnerFontStyle, ");font-weight:var(", _TextField.tokens.labelInnerFontWeight, ");letter-spacing:var(", _TextField.tokens.labelInnerLetterSpacing, ");line-height:var(", _TextField.tokens.labelInnerLineHeight, ");}", _TextField2.Label, "{color:var(", _TextField.tokens.placeholderColor, ");pointer-events:none;position:absolute;top:0;display:flex;align-items:center;box-sizing:border-box;height:var(", _TextField.tokens.height, ");padding-top:calc(calc(var(", _TextField.tokens.height, ") - var(", _TextField.tokens.labelLineHeight, ")) / 2);padding-bottom:calc(calc(var(", _TextField.tokens.height, ") - var(", _TextField.tokens.labelLineHeight, ")) / 2);}&.", _TextField.classes.clear, " ", _TextField2.Label, "{color:var(", _TextField.tokens.clearPlaceholderColor, ");}};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvVGV4dEZpZWxkL3ZhcmlhdGlvbnMvX2xhYmVsLXBsYWNlbWVudC9iYXNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUt1QiIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL1RleHRGaWVsZC92YXJpYXRpb25zL19sYWJlbC1wbGFjZW1lbnQvYmFzZS50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHsgY2xhc3NlcywgdG9rZW5zIH0gZnJvbSAnLi4vLi4vVGV4dEZpZWxkLnRva2Vucyc7XG5pbXBvcnQgeyBJbnB1dCwgSW5wdXRDb250YWluZXIsIExhYmVsLCBTdHlsZWRUZXh0QWZ0ZXIsIFN0eWxlZFRleHRCZWZvcmUgfSBmcm9tICcuLi8uLi9UZXh0RmllbGQuc3R5bGVzJztcblxuZXhwb3J0IGNvbnN0IGJhc2UgPSBjc3NgXG4gICAgJi4ke2NsYXNzZXMub3V0ZXJMYWJlbFBsYWNlbWVudH0ge1xuICAgICAgICAke0xhYmVsfSB7XG4gICAgICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7XG4gICAgICAgIC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biAgICAgICAgJi4ke2NsYXNzZXMuY2xlYXJ9ICR7TGFiZWx9IHtcbiAgICAgICAgICAgIGNvbG9yOiB2YXIoJHt0b2tlbnMuY2xlYXJQbGFjZWhvbGRlckNvbG9yfSk7XG4gICAgICAgIH1cbiAgICB9XG5gO1xuIl19 */"));
|
@@ -104,11 +104,6 @@ const meta: Meta<StorySelectProps> = {
|
|
104
104
|
},
|
105
105
|
if: { arg: 'required', truthy: false },
|
106
106
|
},
|
107
|
-
chipType: {
|
108
|
-
control: 'select',
|
109
|
-
options: ['default', 'text'],
|
110
|
-
if: { arg: 'target', eq: 'textfield-like' },
|
111
|
-
},
|
112
107
|
},
|
113
108
|
args: {
|
114
109
|
target: 'textfield-like',
|
@@ -126,7 +121,6 @@ const meta: Meta<StorySelectProps> = {
|
|
126
121
|
optional: false,
|
127
122
|
required: false,
|
128
123
|
requiredPlacement: 'right',
|
129
|
-
chipType: 'default',
|
130
124
|
},
|
131
125
|
parameters: {
|
132
126
|
controls: {
|
@@ -150,7 +144,6 @@ const meta: Meta<StorySelectProps> = {
|
|
150
144
|
'optional',
|
151
145
|
'required',
|
152
146
|
'requiredPlacement',
|
153
|
-
'chipType',
|
154
147
|
],
|
155
148
|
},
|
156
149
|
},
|
@@ -389,7 +382,7 @@ const SingleStory = (args: StorySelectProps) => {
|
|
389
382
|
export const Single: StoryObj<StorySelectProps> = {
|
390
383
|
parameters: {
|
391
384
|
controls: {
|
392
|
-
exclude: ['chipView', 'isTargetAmount'
|
385
|
+
exclude: ['chipView', 'isTargetAmount'],
|
393
386
|
},
|
394
387
|
},
|
395
388
|
render: (args) => <SingleStory {...args} />,
|
@@ -87,6 +87,12 @@ const meta: Meta<typeof TextField> = {
|
|
87
87
|
type: 'inline-radio',
|
88
88
|
},
|
89
89
|
},
|
90
|
+
hasPlaceholder: {
|
91
|
+
control: {
|
92
|
+
type: 'boolean',
|
93
|
+
},
|
94
|
+
if: { arg: 'labelPlacement', eq: 'inner' },
|
95
|
+
},
|
90
96
|
size: {
|
91
97
|
options: sizes,
|
92
98
|
control: {
|
@@ -134,10 +140,6 @@ const meta: Meta<typeof TextField> = {
|
|
134
140
|
control: { type: 'text' },
|
135
141
|
if: { arg: 'hasHint', truthy: true },
|
136
142
|
},
|
137
|
-
chipType: {
|
138
|
-
control: 'select',
|
139
|
-
options: ['default', 'text'],
|
140
|
-
},
|
141
143
|
},
|
142
144
|
};
|
143
145
|
|
@@ -214,6 +216,7 @@ export const Default: StoryObj<StoryPropsDefault> = {
|
|
214
216
|
view: 'default',
|
215
217
|
label: 'Лейбл',
|
216
218
|
labelPlacement: 'outer',
|
219
|
+
hasPlaceholder: false,
|
217
220
|
titleCaption: 'Подпись к полю',
|
218
221
|
textBefore: '',
|
219
222
|
textAfter: '',
|
@@ -237,11 +240,6 @@ export const Default: StoryObj<StoryPropsDefault> = {
|
|
237
240
|
hintWidth: '10rem',
|
238
241
|
hintHasArrow: true,
|
239
242
|
},
|
240
|
-
parameters: {
|
241
|
-
controls: {
|
242
|
-
exclude: ['chipType'],
|
243
|
-
},
|
244
|
-
},
|
245
243
|
render: (args) => <StoryDemo {...args} />,
|
246
244
|
};
|
247
245
|
|
@@ -297,7 +295,6 @@ export const Chips: StoryObj<StoryPropsChips> = {
|
|
297
295
|
args: {
|
298
296
|
...Default.args,
|
299
297
|
chips: ['1 value', '2 value', '3 value', '4 value'],
|
300
|
-
chipType: 'default',
|
301
298
|
},
|
302
299
|
render: (args) => <StoryChips {...args} />,
|
303
300
|
};
|
@@ -103,11 +103,6 @@ const meta: Meta<StorySelectProps> = {
|
|
103
103
|
},
|
104
104
|
if: { arg: 'required', truthy: false },
|
105
105
|
},
|
106
|
-
chipType: {
|
107
|
-
control: 'select',
|
108
|
-
options: ['default', 'text'],
|
109
|
-
if: { arg: 'target', eq: 'textfield-like' },
|
110
|
-
},
|
111
106
|
},
|
112
107
|
args: {
|
113
108
|
target: 'textfield-like',
|
@@ -125,7 +120,6 @@ const meta: Meta<StorySelectProps> = {
|
|
125
120
|
optional: false,
|
126
121
|
required: false,
|
127
122
|
requiredPlacement: 'right',
|
128
|
-
chipType: 'default',
|
129
123
|
},
|
130
124
|
parameters: {
|
131
125
|
controls: {
|
@@ -149,7 +143,6 @@ const meta: Meta<StorySelectProps> = {
|
|
149
143
|
'optional',
|
150
144
|
'required',
|
151
145
|
'requiredPlacement',
|
152
|
-
'chipType',
|
153
146
|
],
|
154
147
|
},
|
155
148
|
},
|
@@ -388,7 +381,7 @@ const SingleStory = (args: StorySelectProps) => {
|
|
388
381
|
export const Single: StoryObj<StorySelectProps> = {
|
389
382
|
parameters: {
|
390
383
|
controls: {
|
391
|
-
exclude: ['chipView', 'isTargetAmount'
|
384
|
+
exclude: ['chipView', 'isTargetAmount'],
|
392
385
|
},
|
393
386
|
},
|
394
387
|
render: (args) => <SingleStory {...args} />,
|
@@ -87,6 +87,12 @@ const meta: Meta<typeof TextField> = {
|
|
87
87
|
type: 'inline-radio',
|
88
88
|
},
|
89
89
|
},
|
90
|
+
hasPlaceholder: {
|
91
|
+
control: {
|
92
|
+
type: 'boolean',
|
93
|
+
},
|
94
|
+
if: { arg: 'labelPlacement', eq: 'inner' },
|
95
|
+
},
|
90
96
|
size: {
|
91
97
|
options: sizes,
|
92
98
|
control: {
|
@@ -134,10 +140,6 @@ const meta: Meta<typeof TextField> = {
|
|
134
140
|
control: { type: 'text' },
|
135
141
|
if: { arg: 'hasHint', truthy: true },
|
136
142
|
},
|
137
|
-
chipType: {
|
138
|
-
control: 'select',
|
139
|
-
options: ['default', 'text'],
|
140
|
-
},
|
141
143
|
},
|
142
144
|
};
|
143
145
|
|
@@ -214,6 +216,7 @@ export const Default: StoryObj<StoryPropsDefault> = {
|
|
214
216
|
view: 'default',
|
215
217
|
label: 'Лейбл',
|
216
218
|
labelPlacement: 'outer',
|
219
|
+
hasPlaceholder: false,
|
217
220
|
titleCaption: 'Подпись к полю',
|
218
221
|
textBefore: '',
|
219
222
|
textAfter: '',
|
@@ -223,11 +226,11 @@ export const Default: StoryObj<StoryPropsDefault> = {
|
|
223
226
|
readOnly: false,
|
224
227
|
enableContentLeft: true,
|
225
228
|
enableContentRight: true,
|
226
|
-
clear: false,
|
227
|
-
hasDivider: false,
|
228
229
|
optional: false,
|
229
230
|
required: false,
|
230
231
|
requiredPlacement: 'right',
|
232
|
+
clear: false,
|
233
|
+
hasDivider: false,
|
231
234
|
hasHint: true,
|
232
235
|
hintText: 'Текст подсказки',
|
233
236
|
hintTrigger: 'hover',
|
@@ -237,11 +240,6 @@ export const Default: StoryObj<StoryPropsDefault> = {
|
|
237
240
|
hintWidth: '10rem',
|
238
241
|
hintHasArrow: true,
|
239
242
|
},
|
240
|
-
parameters: {
|
241
|
-
controls: {
|
242
|
-
exclude: ['chipType'],
|
243
|
-
},
|
244
|
-
},
|
245
243
|
render: (args) => <StoryDemo {...args} />,
|
246
244
|
};
|
247
245
|
|
@@ -297,7 +295,6 @@ export const Chips: StoryObj<StoryPropsChips> = {
|
|
297
295
|
args: {
|
298
296
|
...Default.args,
|
299
297
|
chips: ['1 value', '2 value', '3 value', '4 value'],
|
300
|
-
chipType: 'default',
|
301
298
|
},
|
302
299
|
render: (args) => <StoryChips {...args} />,
|
303
300
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
var _excluded = ["value", "onChange", "suggestions", "view", "size", "labelPlacement", "disabled", "readOnly", "label", "leftHelper", "contentLeft", "contentRight", "textBefore", "textAfter", "onScroll", "listMaxHeight", "listWidth", "portal", "filter", "onSuggestionSelect", "threshold", "renderList", "renderListEnd", "onSearch", "hintText"];
|
1
|
+
var _excluded = ["value", "onChange", "suggestions", "view", "size", "labelPlacement", "hasPlaceholder", "disabled", "readOnly", "label", "leftHelper", "contentLeft", "contentRight", "textBefore", "textAfter", "onScroll", "listMaxHeight", "listWidth", "portal", "filter", "onSuggestionSelect", "threshold", "renderList", "renderListEnd", "onSearch", "hintText"];
|
2
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
3
3
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
4
4
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
@@ -28,6 +28,7 @@ export var autocompleteRoot = function autocompleteRoot(Root) {
|
|
28
28
|
view = _ref.view,
|
29
29
|
size = _ref.size,
|
30
30
|
labelPlacement = _ref.labelPlacement,
|
31
|
+
hasPlaceholder = _ref.hasPlaceholder,
|
31
32
|
disabled = _ref.disabled,
|
32
33
|
readOnly = _ref.readOnly,
|
33
34
|
label = _ref.label,
|
@@ -147,6 +148,11 @@ export var autocompleteRoot = function autocompleteRoot(Root) {
|
|
147
148
|
"aria-activedescendant": "".concat(listId, "/").concat(focused),
|
148
149
|
"aria-describedby": helperTextId,
|
149
150
|
hintText: String(hintText || '')
|
151
|
+
}, labelPlacement === 'inner' ? {
|
152
|
+
labelPlacement: labelPlacement,
|
153
|
+
hasPlaceholder: hasPlaceholder
|
154
|
+
} : {
|
155
|
+
labelPlacement: labelPlacement
|
150
156
|
}, rest)),
|
151
157
|
preventOverflow: false,
|
152
158
|
ref: targetRef,
|
@@ -1,4 +1,4 @@
|
|
1
|
-
var _excluded = ["multiple", "value", "onChange", "isTargetAmount", "targetAmount", "items", "placement", "label", "placeholder", "helperText", "contentLeft", "textBefore", "textAfter", "variant", "listOverflow", "listHeight", "listWidth", "portal", "renderItem", "view", "size", "labelPlacement", "readOnly", "disabled", "alwaysOpened", "filter", "closeAfterSelect", "renderValue"];
|
1
|
+
var _excluded = ["multiple", "value", "onChange", "isTargetAmount", "targetAmount", "items", "placement", "label", "placeholder", "helperText", "contentLeft", "textBefore", "textAfter", "variant", "listOverflow", "listHeight", "listWidth", "portal", "renderItem", "view", "size", "labelPlacement", "hasPlaceholder", "readOnly", "disabled", "alwaysOpened", "filter", "closeAfterSelect", "renderValue"];
|
2
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
3
3
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
4
4
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
@@ -59,6 +59,7 @@ export var comboboxRoot = function comboboxRoot(Root) {
|
|
59
59
|
view = props.view,
|
60
60
|
size = props.size,
|
61
61
|
labelPlacement = props.labelPlacement,
|
62
|
+
hasPlaceholder = props.hasPlaceholder,
|
62
63
|
_props$readOnly = props.readOnly,
|
63
64
|
readOnly = _props$readOnly === void 0 ? false : _props$readOnly,
|
64
65
|
_props$disabled = props.disabled,
|
@@ -386,7 +387,6 @@ export var comboboxRoot = function comboboxRoot(Root) {
|
|
386
387
|
onChange: handleTextValueChange,
|
387
388
|
size: size,
|
388
389
|
view: view,
|
389
|
-
labelPlacement: labelPlacement,
|
390
390
|
disabled: disabled,
|
391
391
|
readOnly: readOnly,
|
392
392
|
label: label,
|
@@ -409,6 +409,11 @@ export var comboboxRoot = function comboboxRoot(Root) {
|
|
409
409
|
"aria-controls": "".concat(treeId, "_tree_level_1"),
|
410
410
|
"aria-expanded": isCurrentListOpen,
|
411
411
|
"aria-activedescendant": activeDescendantItemValue ? getItemId(treeId, activeDescendantItemValue) : ''
|
412
|
+
}, labelPlacement === 'inner' ? {
|
413
|
+
labelPlacement: labelPlacement,
|
414
|
+
hasPlaceholder: hasPlaceholder
|
415
|
+
} : {
|
416
|
+
labelPlacement: labelPlacement
|
412
417
|
}, multiple ? {
|
413
418
|
enumerationType: 'chip',
|
414
419
|
chips: getChips(),
|
@@ -1,4 +1,4 @@
|
|
1
|
-
var _excluded = ["className", "opened", "label", "labelPlacement", "placeholder", "leftHelper", "contentLeft", "contentRight", "textBefore", "textAfter", "view", "size", "readOnly", "disabled", "name", "defaultDate", "valueError", "valueSuccess", "format", "lang", "maskWithFormat", "min", "max", "includeEdgeDates", "eventList", "disabledList", "eventMonthList", "disabledMonthList", "eventQuarterList", "disabledQuarterList", "eventYearList", "disabledYearList", "type", "frame", "usePortal", "placement", "closeOnOverlayClick", "closeOnEsc", "offset", "onChangeValue", "onCommitDate", "onToggle", "onFocus", "onBlur", "onChange"];
|
1
|
+
var _excluded = ["className", "opened", "label", "labelPlacement", "hasPlaceholder", "placeholder", "leftHelper", "contentLeft", "contentRight", "textBefore", "textAfter", "view", "size", "readOnly", "disabled", "name", "defaultDate", "valueError", "valueSuccess", "format", "lang", "maskWithFormat", "min", "max", "includeEdgeDates", "eventList", "disabledList", "eventMonthList", "disabledMonthList", "eventQuarterList", "disabledQuarterList", "eventYearList", "disabledYearList", "type", "frame", "usePortal", "placement", "closeOnOverlayClick", "closeOnEsc", "offset", "onChangeValue", "onCommitDate", "onToggle", "onFocus", "onBlur", "onChange"];
|
2
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
3
3
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
4
4
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
@@ -28,6 +28,7 @@ export var datePickerRoot = function datePickerRoot(Root) {
|
|
28
28
|
label = _ref.label,
|
29
29
|
_ref$labelPlacement = _ref.labelPlacement,
|
30
30
|
labelPlacement = _ref$labelPlacement === void 0 ? 'outer' : _ref$labelPlacement,
|
31
|
+
hasPlaceholder = _ref.hasPlaceholder,
|
31
32
|
placeholder = _ref.placeholder,
|
32
33
|
leftHelper = _ref.leftHelper,
|
33
34
|
contentLeft = _ref.contentLeft,
|
@@ -165,9 +166,12 @@ export var datePickerRoot = function datePickerRoot(Root) {
|
|
165
166
|
onFocus: onFocus,
|
166
167
|
onBlur: onBlur,
|
167
168
|
onKeyDown: onKeyDown
|
168
|
-
},
|
169
|
+
}, labelPlacement === 'inner' ? {
|
169
170
|
label: label,
|
170
|
-
labelPlacement: labelPlacement
|
171
|
+
labelPlacement: labelPlacement,
|
172
|
+
hasPlaceholder: hasPlaceholder
|
173
|
+
} : {
|
174
|
+
labelPlacement: undefined
|
171
175
|
}));
|
172
176
|
useEffect(function () {
|
173
177
|
setIsInnerOpen(function (prevOpen) {
|
@@ -16,9 +16,10 @@ export var Textfield = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
16
16
|
multiselect = _ref.multiselect,
|
17
17
|
value = _ref.value,
|
18
18
|
label = _ref.label,
|
19
|
+
labelPlacement = _ref.labelPlacement,
|
20
|
+
hasPlaceholder = _ref.hasPlaceholder,
|
19
21
|
placeholder = _ref.placeholder,
|
20
22
|
onKeyDown = _ref.onKeyDown,
|
21
|
-
labelPlacement = _ref.labelPlacement,
|
22
23
|
size = _ref.size,
|
23
24
|
view = _ref.view,
|
24
25
|
handleClickArrow = _ref.handleClickArrow,
|
@@ -33,8 +34,7 @@ export var Textfield = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
33
34
|
onChange = _ref.onChange,
|
34
35
|
labelToItemMap = _ref.labelToItemMap,
|
35
36
|
chipView = _ref.chipView,
|
36
|
-
requiredProps = _ref.requiredProps
|
37
|
-
chipType = _ref.chipType;
|
37
|
+
requiredProps = _ref.requiredProps;
|
38
38
|
var withArrowInverse = opened ? classes.arrowInverse : undefined;
|
39
39
|
var getChips = function getChips() {
|
40
40
|
if (multiselect && Array.isArray(value)) {
|
@@ -81,10 +81,16 @@ export var Textfield = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
81
81
|
value: multiselect ? undefined : ((_valueToItemMap$get = valueToItemMap.get(value.toString())) === null || _valueToItemMap$get === void 0 ? void 0 : _valueToItemMap$get.label) || '',
|
82
82
|
size: size,
|
83
83
|
view: view,
|
84
|
-
chipView: chipView
|
84
|
+
chipView: chipView
|
85
|
+
}, labelPlacement === 'inner' ? {
|
86
|
+
label: label,
|
85
87
|
labelPlacement: labelPlacement,
|
86
|
-
|
88
|
+
hasPlaceholder: hasPlaceholder
|
89
|
+
} : {
|
87
90
|
label: label,
|
91
|
+
labelPlacement: labelPlacement
|
92
|
+
}, {
|
93
|
+
disabled: disabled,
|
88
94
|
placeholder: value instanceof Array && value.length ? '' : placeholder,
|
89
95
|
contentLeft: contentLeft,
|
90
96
|
contentRight: /*#__PURE__*/React.createElement(IconArrowWrapper, {
|
@@ -105,8 +111,7 @@ export var Textfield = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
105
111
|
}, multiselect ? {
|
106
112
|
enumerationType: 'chip',
|
107
113
|
chips: getChips(),
|
108
|
-
onChangeChips: handleChipsChange
|
109
|
-
chipType: chipType
|
114
|
+
onChangeChips: handleChipsChange
|
110
115
|
} : {
|
111
116
|
enumerationType: 'plain'
|
112
117
|
}, {
|