@salutejs/sdds-cs 0.376.0-canary.3247.37634612117.0 → 0.377.0-dev.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/beta/cjs/Popover/Popover.js +7 -6
- package/dist/beta/cjs/_virtual/_rollupPluginBabelHelpers.js +47 -0
- package/dist/beta/es/Popover/Popover.js +8 -7
- package/dist/beta/es/_virtual/_rollupPluginBabelHelpers.js +44 -1
- package/dist/emotion/cjs/components/Autocomplete/Autocomplete.clear.config.js +234 -0
- package/dist/emotion/cjs/components/Autocomplete/Autocomplete.config.js +10 -0
- package/dist/emotion/cjs/components/Autocomplete/Autocomplete.js +14 -1
- package/dist/emotion/cjs/components/DatePicker/DatePicker.config.js +1 -0
- package/dist/emotion/cjs/components/Drawer/Drawer.config.js +8 -1
- package/dist/emotion/cjs/components/Select/Select.clear.config.js +306 -0
- package/dist/emotion/cjs/components/Select/Select.config.js +9 -0
- package/dist/emotion/cjs/components/Select/Select.js +8 -1
- package/dist/emotion/cjs/components/TextArea/TextArea.clear.config.js +1 -0
- package/dist/emotion/cjs/components/TextArea/TextArea.config.js +1 -0
- package/dist/emotion/cjs/components/TextField/TextField.clear.config.js +7 -1
- package/dist/emotion/cjs/components/TextField/TextField.config.js +2 -0
- package/dist/emotion/cjs/components/TimePicker/TimePicker.config.js +9 -0
- package/dist/emotion/es/components/Autocomplete/Autocomplete.clear.config.js +224 -0
- package/dist/emotion/es/components/Autocomplete/Autocomplete.config.js +10 -0
- package/dist/emotion/es/components/Autocomplete/Autocomplete.js +9 -2
- package/dist/emotion/es/components/DatePicker/DatePicker.config.js +1 -0
- package/dist/emotion/es/components/Drawer/Drawer.config.js +9 -2
- package/dist/emotion/es/components/Select/Select.clear.config.js +296 -0
- package/dist/emotion/es/components/Select/Select.config.js +9 -0
- package/dist/emotion/es/components/Select/Select.js +9 -2
- package/dist/emotion/es/components/TextArea/TextArea.clear.config.js +1 -0
- package/dist/emotion/es/components/TextArea/TextArea.config.js +1 -0
- package/dist/emotion/es/components/TextField/TextField.clear.config.js +7 -1
- package/dist/emotion/es/components/TextField/TextField.config.js +2 -0
- package/dist/emotion/es/components/TimePicker/TimePicker.config.js +9 -0
- package/package.json +11 -11
- package/types/components/Attach/Attach.d.ts +0 -16
- package/types/components/Autocomplete/Autocomplete.clear.config.d.ts +26 -0
- package/types/components/Autocomplete/Autocomplete.d.ts +1796 -10
- package/types/components/Badge/Badge.d.ts +0 -8
- package/types/components/Button/Button.d.ts +0 -4
- package/types/components/Calendar/Calendar.d.ts +3 -1
- package/types/components/Combobox/Combobox.d.ts +8 -8
- package/types/components/DatePicker/DatePicker.d.ts +10 -10
- package/types/components/IconButton/IconButton.d.ts +0 -2
- package/types/components/Mask/Mask.d.ts +0 -16
- package/types/components/Range/Range.d.ts +19 -769
- package/types/components/Select/Select.clear.config.d.ts +30 -0
- package/types/components/Select/Select.d.ts +36 -10
- package/types/components/TextArea/TextArea.d.ts +0 -32
- package/types/components/TextField/TextField.d.ts +0 -32
- package/types/components/TimePicker/TimePicker.d.ts +2 -2
|
@@ -28,13 +28,14 @@ var Popover = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
28
28
|
var viewStyles = appearance === 'default' ? CloseNoneView_module.default : CloseInnerView_module.default;
|
|
29
29
|
var sizeStyles = appearance === 'default' ? CloseNoneSize_module.default : CloseInnerSize_module.default;
|
|
30
30
|
var configClassName = cls__default.default(viewStyles[view], sizeStyles[size]);
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
appearance: appearance
|
|
34
|
-
// @ts-expect-error _configClassName is an internal runtime property.
|
|
35
|
-
,
|
|
31
|
+
// Runtime configuration is omitted from the public core declarations.
|
|
32
|
+
var coreProps = _rollupPluginBabelHelpers.objectSpread2({
|
|
33
|
+
appearance: appearance,
|
|
36
34
|
_configClassName: configClassName
|
|
37
|
-
}, rest)
|
|
35
|
+
}, rest);
|
|
36
|
+
return /*#__PURE__*/React__default.default.createElement(beta.Popover, _rollupPluginBabelHelpers.extends({
|
|
37
|
+
ref: ref
|
|
38
|
+
}, coreProps));
|
|
38
39
|
});
|
|
39
40
|
|
|
40
41
|
exports.Popover = Popover;
|
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
function _defineProperty(e, r, t) {
|
|
6
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
7
|
+
value: t,
|
|
8
|
+
enumerable: !0,
|
|
9
|
+
configurable: !0,
|
|
10
|
+
writable: !0
|
|
11
|
+
}) : e[r] = t, e;
|
|
12
|
+
}
|
|
5
13
|
function _extends() {
|
|
6
14
|
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
7
15
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -11,6 +19,27 @@ function _extends() {
|
|
|
11
19
|
return n;
|
|
12
20
|
}, _extends.apply(null, arguments);
|
|
13
21
|
}
|
|
22
|
+
function ownKeys(e, r) {
|
|
23
|
+
var t = Object.keys(e);
|
|
24
|
+
if (Object.getOwnPropertySymbols) {
|
|
25
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
26
|
+
r && (o = o.filter(function (r) {
|
|
27
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
28
|
+
})), t.push.apply(t, o);
|
|
29
|
+
}
|
|
30
|
+
return t;
|
|
31
|
+
}
|
|
32
|
+
function _objectSpread2(e) {
|
|
33
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
34
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
35
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
|
36
|
+
_defineProperty(e, r, t[r]);
|
|
37
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
38
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
return e;
|
|
42
|
+
}
|
|
14
43
|
function _objectWithoutProperties(e, t) {
|
|
15
44
|
if (null == e) return {};
|
|
16
45
|
var o,
|
|
@@ -31,7 +60,25 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
31
60
|
}
|
|
32
61
|
return t;
|
|
33
62
|
}
|
|
63
|
+
function _toPrimitive(t, r) {
|
|
64
|
+
if ("object" != typeof t || !t) return t;
|
|
65
|
+
var e = t[Symbol.toPrimitive];
|
|
66
|
+
if (void 0 !== e) {
|
|
67
|
+
var i = e.call(t, r || "default");
|
|
68
|
+
if ("object" != typeof i) return i;
|
|
69
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
70
|
+
}
|
|
71
|
+
return ("string" === r ? String : Number)(t);
|
|
72
|
+
}
|
|
73
|
+
function _toPropertyKey(t) {
|
|
74
|
+
var i = _toPrimitive(t, "string");
|
|
75
|
+
return "symbol" == typeof i ? i : i + "";
|
|
76
|
+
}
|
|
34
77
|
|
|
78
|
+
exports.defineProperty = _defineProperty;
|
|
35
79
|
exports.extends = _extends;
|
|
80
|
+
exports.objectSpread2 = _objectSpread2;
|
|
36
81
|
exports.objectWithoutProperties = _objectWithoutProperties;
|
|
37
82
|
exports.objectWithoutPropertiesLoose = _objectWithoutPropertiesLoose;
|
|
83
|
+
exports.toPrimitive = _toPrimitive;
|
|
84
|
+
exports.toPropertyKey = _toPropertyKey;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../_virtual/_rollupPluginBabelHelpers.js';
|
|
1
|
+
import { objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _objectSpread2, extends as _extends } from '../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
3
|
import cls from 'classnames';
|
|
4
4
|
import { Popover as Popover$1 } from '@salutejs/plasma-new-hope/beta';
|
|
@@ -19,13 +19,14 @@ var Popover = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
19
19
|
var viewStyles = appearance === 'default' ? modules_d87ee517 : modules_d59cd388;
|
|
20
20
|
var sizeStyles = appearance === 'default' ? modules_d2adbb20 : modules_90fe3df6;
|
|
21
21
|
var configClassName = cls(viewStyles[view], sizeStyles[size]);
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
appearance: appearance
|
|
25
|
-
// @ts-expect-error _configClassName is an internal runtime property.
|
|
26
|
-
,
|
|
22
|
+
// Runtime configuration is omitted from the public core declarations.
|
|
23
|
+
var coreProps = _objectSpread2({
|
|
24
|
+
appearance: appearance,
|
|
27
25
|
_configClassName: configClassName
|
|
28
|
-
}, rest)
|
|
26
|
+
}, rest);
|
|
27
|
+
return /*#__PURE__*/React.createElement(Popover$1, _extends({
|
|
28
|
+
ref: ref
|
|
29
|
+
}, coreProps));
|
|
29
30
|
});
|
|
30
31
|
|
|
31
32
|
export { Popover };
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
function _defineProperty(e, r, t) {
|
|
2
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
3
|
+
value: t,
|
|
4
|
+
enumerable: !0,
|
|
5
|
+
configurable: !0,
|
|
6
|
+
writable: !0
|
|
7
|
+
}) : e[r] = t, e;
|
|
8
|
+
}
|
|
1
9
|
function _extends() {
|
|
2
10
|
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
3
11
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -7,6 +15,27 @@ function _extends() {
|
|
|
7
15
|
return n;
|
|
8
16
|
}, _extends.apply(null, arguments);
|
|
9
17
|
}
|
|
18
|
+
function ownKeys(e, r) {
|
|
19
|
+
var t = Object.keys(e);
|
|
20
|
+
if (Object.getOwnPropertySymbols) {
|
|
21
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
22
|
+
r && (o = o.filter(function (r) {
|
|
23
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
24
|
+
})), t.push.apply(t, o);
|
|
25
|
+
}
|
|
26
|
+
return t;
|
|
27
|
+
}
|
|
28
|
+
function _objectSpread2(e) {
|
|
29
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
30
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
31
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
|
32
|
+
_defineProperty(e, r, t[r]);
|
|
33
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
34
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
return e;
|
|
38
|
+
}
|
|
10
39
|
function _objectWithoutProperties(e, t) {
|
|
11
40
|
if (null == e) return {};
|
|
12
41
|
var o,
|
|
@@ -27,5 +56,19 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
27
56
|
}
|
|
28
57
|
return t;
|
|
29
58
|
}
|
|
59
|
+
function _toPrimitive(t, r) {
|
|
60
|
+
if ("object" != typeof t || !t) return t;
|
|
61
|
+
var e = t[Symbol.toPrimitive];
|
|
62
|
+
if (void 0 !== e) {
|
|
63
|
+
var i = e.call(t, r || "default");
|
|
64
|
+
if ("object" != typeof i) return i;
|
|
65
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
66
|
+
}
|
|
67
|
+
return ("string" === r ? String : Number)(t);
|
|
68
|
+
}
|
|
69
|
+
function _toPropertyKey(t) {
|
|
70
|
+
var i = _toPrimitive(t, "string");
|
|
71
|
+
return "symbol" == typeof i ? i : i + "";
|
|
72
|
+
}
|
|
30
73
|
|
|
31
|
-
export { _extends as extends, _objectWithoutProperties as objectWithoutProperties, _objectWithoutPropertiesLoose as objectWithoutPropertiesLoose };
|
|
74
|
+
export { _defineProperty as defineProperty, _extends as extends, _objectSpread2 as objectSpread2, _objectWithoutProperties as objectWithoutProperties, _objectWithoutPropertiesLoose as objectWithoutPropertiesLoose, _toPrimitive as toPrimitive, _toPropertyKey as toPropertyKey };
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "config", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return config;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _sdds_cs = require("@salutejs/sdds-themes/tokens/sdds_cs");
|
|
12
|
+
const _emotion = require("@salutejs/plasma-new-hope/emotion");
|
|
13
|
+
const config = {
|
|
14
|
+
defaults: {
|
|
15
|
+
view: 'default',
|
|
16
|
+
size: 's',
|
|
17
|
+
labelPlacement: 'outer'
|
|
18
|
+
},
|
|
19
|
+
variations: {
|
|
20
|
+
view: {
|
|
21
|
+
default: (0, _emotion.css)`
|
|
22
|
+
${_emotion.autocompleteTokens.textFieldColor}: ${_sdds_cs.textPrimary};
|
|
23
|
+
${_emotion.autocompleteTokens.textFieldClearColor}: ${_sdds_cs.textPrimary};
|
|
24
|
+
|
|
25
|
+
${_emotion.autocompleteTokens.textFieldPlaceholderColor}: ${_sdds_cs.textSecondary};
|
|
26
|
+
${_emotion.autocompleteTokens.textFieldPlaceholderColorFocus}: ${_sdds_cs.textTertiary};
|
|
27
|
+
${_emotion.autocompleteTokens.textFieldClearPlaceholderColor}: ${_sdds_cs.textSecondary};
|
|
28
|
+
${_emotion.autocompleteTokens.textFieldClearPlaceholderColorFocus}: ${_sdds_cs.textTertiary};
|
|
29
|
+
|
|
30
|
+
${_emotion.autocompleteTokens.textFieldBackgroundColor}: transparent;
|
|
31
|
+
${_emotion.autocompleteTokens.textFieldBackgroundColorHover}: transparent;
|
|
32
|
+
${_emotion.autocompleteTokens.textFieldBackgroundColorFocus}: transparent;
|
|
33
|
+
${_emotion.autocompleteTokens.textFieldCaretColor}: ${_sdds_cs.textAccent};
|
|
34
|
+
${_emotion.autocompleteTokens.textFieldTextBeforeColor}: ${_sdds_cs.textTertiary};
|
|
35
|
+
${_emotion.autocompleteTokens.textFieldTextAfterColor}: ${_sdds_cs.textTertiary};
|
|
36
|
+
${_emotion.autocompleteTokens.textFieldLabelColor}: ${_sdds_cs.textPrimary};
|
|
37
|
+
${_emotion.autocompleteTokens.textFieldLeftHelperColor}: ${_sdds_cs.textSecondary};
|
|
38
|
+
${_emotion.autocompleteTokens.textFieldTitleCaptionColor}: ${_sdds_cs.textSecondary};
|
|
39
|
+
${_emotion.autocompleteTokens.textFieldFocusColor}: ${_sdds_cs.textAccent};
|
|
40
|
+
|
|
41
|
+
${_emotion.autocompleteTokens.textFieldContentSlotColor}: ${_sdds_cs.textSecondary};
|
|
42
|
+
${_emotion.autocompleteTokens.textFieldContentSlotColorHover}: ${_sdds_cs.textSecondaryHover};
|
|
43
|
+
${_emotion.autocompleteTokens.textFieldContentSlotColorActive}: ${_sdds_cs.textSecondaryActive};
|
|
44
|
+
${_emotion.autocompleteTokens.textFieldContentSlotRightColor}: ${_sdds_cs.textAccent};
|
|
45
|
+
${_emotion.autocompleteTokens.textFieldContentSlotRightColorHover}: ${_sdds_cs.textAccentMinor};
|
|
46
|
+
${_emotion.autocompleteTokens.textFieldContentSlotRightColorActive}: ${_sdds_cs.textAccentActive};
|
|
47
|
+
|
|
48
|
+
${_emotion.autocompleteTokens.focusColor}: ${_sdds_cs.surfaceAccent};
|
|
49
|
+
${_emotion.autocompleteTokens.textFieldIndicatorColor}: ${_sdds_cs.surfaceNegative};
|
|
50
|
+
${_emotion.autocompleteTokens.textFieldOptionalColor}: ${_sdds_cs.textTertiary};
|
|
51
|
+
|
|
52
|
+
${_emotion.autocompleteTokens.background}: ${_sdds_cs.surfaceSolidCard};
|
|
53
|
+
${_emotion.autocompleteTokens.boxShadow}: 0px 4px 14px -4px rgba(8, 8, 8, 0.08), 0px 1px 4px -1px rgba(0, 0, 0, 0.04);
|
|
54
|
+
${_emotion.autocompleteTokens.itemBackground}: ${_sdds_cs.surfaceClear};
|
|
55
|
+
${_emotion.autocompleteTokens.itemBackgroundHover}: ${_sdds_cs.surfaceTransparentAccent};
|
|
56
|
+
${_emotion.autocompleteTokens.itemColor}: ${_sdds_cs.textPrimary};
|
|
57
|
+
|
|
58
|
+
${_emotion.autocompleteTokens.infiniteLoaderSpinnerColor}: ${_sdds_cs.textPrimary};
|
|
59
|
+
|
|
60
|
+
${_emotion.autocompleteTokens.dropdownBorderColor}: ${_sdds_cs.surfaceSolidPrimary};
|
|
61
|
+
|
|
62
|
+
${_emotion.autocompleteTokens.textFieldDividerColor}: ${_sdds_cs.outlineSolidPrimary};
|
|
63
|
+
${_emotion.autocompleteTokens.textFieldDividerColorHover}: ${_sdds_cs.textSecondary};
|
|
64
|
+
${_emotion.autocompleteTokens.textFieldDividerColorFocus}: ${_sdds_cs.surfaceAccent};
|
|
65
|
+
`,
|
|
66
|
+
negative: (0, _emotion.css)`
|
|
67
|
+
${_emotion.autocompleteTokens.textFieldColor}: ${_sdds_cs.textNegative};
|
|
68
|
+
${_emotion.autocompleteTokens.textFieldClearColor}: ${_sdds_cs.textPrimary};
|
|
69
|
+
|
|
70
|
+
${_emotion.autocompleteTokens.textFieldPlaceholderColor}: ${_sdds_cs.textNegative};
|
|
71
|
+
${_emotion.autocompleteTokens.textFieldPlaceholderColorHover}: ${_sdds_cs.textSecondary};
|
|
72
|
+
${_emotion.autocompleteTokens.textFieldPlaceholderColorFocus}: ${_sdds_cs.textTertiary};
|
|
73
|
+
${_emotion.autocompleteTokens.textFieldClearPlaceholderColor}: ${_sdds_cs.textSecondary};
|
|
74
|
+
${_emotion.autocompleteTokens.textFieldClearPlaceholderColorFocus}: ${_sdds_cs.textTertiary};
|
|
75
|
+
|
|
76
|
+
${_emotion.autocompleteTokens.textFieldBackgroundColor}: transparent;
|
|
77
|
+
${_emotion.autocompleteTokens.textFieldBackgroundColorHover}: transparent;
|
|
78
|
+
${_emotion.autocompleteTokens.textFieldBackgroundColorFocus}: transparent;
|
|
79
|
+
${_emotion.autocompleteTokens.textFieldCaretColor}: ${_sdds_cs.textAccent};
|
|
80
|
+
${_emotion.autocompleteTokens.textFieldTextBeforeColor}: ${_sdds_cs.textSecondary};
|
|
81
|
+
${_emotion.autocompleteTokens.textFieldTextAfterColor}: ${_sdds_cs.textSecondary};
|
|
82
|
+
${_emotion.autocompleteTokens.textFieldLabelColor}: ${_sdds_cs.textPrimary};
|
|
83
|
+
${_emotion.autocompleteTokens.textFieldLeftHelperColor}: ${_sdds_cs.textNegative};
|
|
84
|
+
${_emotion.autocompleteTokens.textFieldTitleCaptionColor}: ${_sdds_cs.textSecondary};
|
|
85
|
+
${_emotion.autocompleteTokens.textFieldLeftHelperColorFocus}: ${_sdds_cs.textSecondary};
|
|
86
|
+
${_emotion.autocompleteTokens.textFieldFocusColor}: ${_sdds_cs.textAccent};
|
|
87
|
+
|
|
88
|
+
${_emotion.autocompleteTokens.textFieldContentSlotColor}: ${_sdds_cs.textSecondary};
|
|
89
|
+
${_emotion.autocompleteTokens.textFieldContentSlotColorHover}: ${_sdds_cs.textSecondaryHover};
|
|
90
|
+
${_emotion.autocompleteTokens.textFieldContentSlotColorActive}: ${_sdds_cs.textSecondaryActive};
|
|
91
|
+
${_emotion.autocompleteTokens.textFieldContentSlotRightColor}: ${_sdds_cs.textSecondary};
|
|
92
|
+
${_emotion.autocompleteTokens.textFieldContentSlotRightColorHover}: ${_sdds_cs.textSecondaryHover};
|
|
93
|
+
${_emotion.autocompleteTokens.textFieldContentSlotRightColorActive}: ${_sdds_cs.textSecondaryActive};
|
|
94
|
+
${_emotion.autocompleteTokens.textFieldColorFocus}: ${_sdds_cs.textPrimary};
|
|
95
|
+
${_emotion.autocompleteTokens.textFieldContentSlotColorFocus}: ${_sdds_cs.textSecondary};
|
|
96
|
+
|
|
97
|
+
${_emotion.autocompleteTokens.focusColor}: ${_sdds_cs.surfaceAccent};
|
|
98
|
+
${_emotion.autocompleteTokens.textFieldIndicatorColor}: ${_sdds_cs.surfaceNegative};
|
|
99
|
+
${_emotion.autocompleteTokens.textFieldOptionalColor}: ${_sdds_cs.textTertiary};
|
|
100
|
+
|
|
101
|
+
${_emotion.autocompleteTokens.textFieldBorderColorHover}: ${_sdds_cs.outlineNegativeHover};
|
|
102
|
+
${_emotion.autocompleteTokens.textFieldBorderColorFocus}: ${_sdds_cs.outlineAccent};
|
|
103
|
+
|
|
104
|
+
${_emotion.autocompleteTokens.background}: ${_sdds_cs.surfaceSolidCard};
|
|
105
|
+
${_emotion.autocompleteTokens.boxShadow}: 0px 4px 14px -4px rgba(8, 8, 8, 0.08), 0px 1px 4px -1px rgba(0, 0, 0, 0.04);
|
|
106
|
+
${_emotion.autocompleteTokens.itemBackground}: ${_sdds_cs.surfaceClear};
|
|
107
|
+
${_emotion.autocompleteTokens.itemBackgroundHover}: ${_sdds_cs.surfaceTransparentAccent};
|
|
108
|
+
${_emotion.autocompleteTokens.itemColor}: ${_sdds_cs.textPrimary};
|
|
109
|
+
|
|
110
|
+
${_emotion.autocompleteTokens.infiniteLoaderSpinnerColor}: ${_sdds_cs.textPrimary};
|
|
111
|
+
|
|
112
|
+
${_emotion.autocompleteTokens.dropdownBorderColor}: ${_sdds_cs.surfaceSolidPrimary};
|
|
113
|
+
|
|
114
|
+
${_emotion.autocompleteTokens.textFieldDividerColor}: ${_sdds_cs.surfaceNegative};
|
|
115
|
+
${_emotion.autocompleteTokens.textFieldDividerColorHover}: ${_sdds_cs.surfaceNegative};
|
|
116
|
+
${_emotion.autocompleteTokens.textFieldDividerColorFocus}: ${_sdds_cs.surfaceAccent};
|
|
117
|
+
`
|
|
118
|
+
},
|
|
119
|
+
size: {
|
|
120
|
+
s: (0, _emotion.css)`
|
|
121
|
+
${_emotion.autocompleteTokens.textFieldHeight}: 2.5rem;
|
|
122
|
+
${_emotion.autocompleteTokens.textFieldPadding}: 0.6875rem 0;
|
|
123
|
+
${_emotion.autocompleteTokens.textFieldBorderRadius}: 0;
|
|
124
|
+
|
|
125
|
+
${_emotion.autocompleteTokens.textFieldLeftContentMargin}: -0.1875rem 0.25rem -0.1875rem 0;
|
|
126
|
+
${_emotion.autocompleteTokens.textFieldRightContentMargin}: -0.1875rem 0 -0.1875rem 0.75rem;
|
|
127
|
+
|
|
128
|
+
${_emotion.autocompleteTokens.textFieldTextBeforeMargin}: 0 0.25rem 0 0;
|
|
129
|
+
${_emotion.autocompleteTokens.textFieldTextAfterMargin}: 0 0 0 0.25rem;
|
|
130
|
+
|
|
131
|
+
${_emotion.autocompleteTokens.textFieldFontFamily}: ${_sdds_cs.bodyM.fontFamily};
|
|
132
|
+
${_emotion.autocompleteTokens.textFieldFontSize}: ${_sdds_cs.bodyM.fontSize};
|
|
133
|
+
${_emotion.autocompleteTokens.textFieldFontStyle}: ${_sdds_cs.bodyM.fontStyle};
|
|
134
|
+
${_emotion.autocompleteTokens.textFieldFontWeight}: ${_sdds_cs.bodyM.fontWeight};
|
|
135
|
+
${_emotion.autocompleteTokens.textFieldLetterSpacing}: ${_sdds_cs.bodyM.letterSpacing};
|
|
136
|
+
${_emotion.autocompleteTokens.textFieldLineHeight}: ${_sdds_cs.bodyM.lineHeight};
|
|
137
|
+
|
|
138
|
+
${_emotion.autocompleteTokens.textFieldLabelOffset}: 0.5rem;
|
|
139
|
+
${_emotion.autocompleteTokens.textFieldLabelFontFamily}: ${_sdds_cs.bodyS.fontFamily};
|
|
140
|
+
${_emotion.autocompleteTokens.textFieldLabelFontSize}: ${_sdds_cs.bodyS.fontSize};
|
|
141
|
+
${_emotion.autocompleteTokens.textFieldLabelFontStyle}: ${_sdds_cs.bodyS.fontStyle};
|
|
142
|
+
${_emotion.autocompleteTokens.textFieldLabelFontWeight}: ${_sdds_cs.bodyS.fontWeight};
|
|
143
|
+
${_emotion.autocompleteTokens.textFieldLabelLetterSpacing}: ${_sdds_cs.bodyS.letterSpacing};
|
|
144
|
+
${_emotion.autocompleteTokens.textFieldLabelLineHeight}: ${_sdds_cs.bodyS.lineHeight};
|
|
145
|
+
|
|
146
|
+
${_emotion.autocompleteTokens.textFieldLeftHelperOffset}: 0.25rem 0 0 0;
|
|
147
|
+
${_emotion.autocompleteTokens.textFieldLeftHelperFontFamily}: ${_sdds_cs.bodyS.fontFamily};
|
|
148
|
+
${_emotion.autocompleteTokens.textFieldLeftHelperFontSize}: ${_sdds_cs.bodyS.fontSize};
|
|
149
|
+
${_emotion.autocompleteTokens.textFieldLeftHelperFontStyle}: ${_sdds_cs.bodyS.fontStyle};
|
|
150
|
+
${_emotion.autocompleteTokens.textFieldLeftHelperFontWeight}: ${_sdds_cs.bodyS.fontWeight};
|
|
151
|
+
${_emotion.autocompleteTokens.textFieldLeftHelperLetterSpacing}: ${_sdds_cs.bodyS.letterSpacing};
|
|
152
|
+
${_emotion.autocompleteTokens.textFieldLeftHelperLineHeight}: ${_sdds_cs.bodyS.lineHeight};
|
|
153
|
+
${_emotion.autocompleteTokens.textFieldTitleCaptionMargin}: 0.1875rem;
|
|
154
|
+
${_emotion.autocompleteTokens.textFieldTitleCaptionFontFamily}: ${_sdds_cs.bodyXS.fontFamily};
|
|
155
|
+
${_emotion.autocompleteTokens.textFieldTitleCaptionFontSize}: ${_sdds_cs.bodyXS.fontSize};
|
|
156
|
+
${_emotion.autocompleteTokens.textFieldTitleCaptionFontStyle}: ${_sdds_cs.bodyXS.fontStyle};
|
|
157
|
+
${_emotion.autocompleteTokens.textFieldTitleCaptionFontWeight}: ${_sdds_cs.bodyXS.fontWeight};
|
|
158
|
+
${_emotion.autocompleteTokens.textFieldTitleCaptionLetterSpacing}: ${_sdds_cs.bodyXS.letterSpacing};
|
|
159
|
+
${_emotion.autocompleteTokens.textFieldTitleCaptionLineHeight}: ${_sdds_cs.bodyXS.lineHeight};
|
|
160
|
+
|
|
161
|
+
${_emotion.autocompleteTokens.textFieldLabelInnerPadding}: 0.3125rem 0 0 0;
|
|
162
|
+
${_emotion.autocompleteTokens.textFieldContentLabelInnerPadding}: 1.0625rem 0 0.3125rem 0;
|
|
163
|
+
|
|
164
|
+
${_emotion.autocompleteTokens.textFieldIndicatorSizeInner}: 0.375rem;
|
|
165
|
+
${_emotion.autocompleteTokens.textFieldIndicatorSizeOuter}: 0.375rem;
|
|
166
|
+
${_emotion.autocompleteTokens.textFieldIndicatorLabelPlacementInner}: 1.063rem auto auto -0.75rem;
|
|
167
|
+
${_emotion.autocompleteTokens.textFieldIndicatorLabelPlacementOuter}: 0.3125rem auto auto -0.6875rem;
|
|
168
|
+
${_emotion.autocompleteTokens.textFieldIndicatorLabelPlacementInnerRight}: 1.063rem -0.75rem auto auto;
|
|
169
|
+
${_emotion.autocompleteTokens.textFieldIndicatorLabelPlacementOuterRight}: 0.25rem -0.625rem auto auto;
|
|
170
|
+
${_emotion.autocompleteTokens.textFieldClearIndicatorLabelPlacementInner}: 1.063rem auto auto -0.75rem;
|
|
171
|
+
${_emotion.autocompleteTokens.textFieldClearIndicatorLabelPlacementInnerRight}: 1.063rem -0.75rem auto auto;
|
|
172
|
+
${_emotion.autocompleteTokens.textFieldClearIndicatorHintInnerRight}: 1.063rem -2.125rem auto auto;
|
|
173
|
+
|
|
174
|
+
${_emotion.autocompleteTokens.borderRadius}: 0.75rem;
|
|
175
|
+
${_emotion.autocompleteTokens.padding}: 0.125rem;
|
|
176
|
+
${_emotion.autocompleteTokens.itemPadding}: 0.6875rem 0.75rem;
|
|
177
|
+
${_emotion.autocompleteTokens.itemBorderRadius}: 0.5rem;
|
|
178
|
+
|
|
179
|
+
${_emotion.autocompleteTokens.itemFontFamily}: ${_sdds_cs.bodyM.fontFamily};
|
|
180
|
+
${_emotion.autocompleteTokens.itemFontSize}: ${_sdds_cs.bodyM.fontSize};
|
|
181
|
+
${_emotion.autocompleteTokens.itemFontStyle}: ${_sdds_cs.bodyM.fontStyle};
|
|
182
|
+
${_emotion.autocompleteTokens.itemFontWeight}: ${_sdds_cs.bodyM.fontWeight};
|
|
183
|
+
${_emotion.autocompleteTokens.itemFontLetterSpacing}: ${_sdds_cs.bodyM.letterSpacing};
|
|
184
|
+
${_emotion.autocompleteTokens.itemFontLineHeight}: ${_sdds_cs.bodyM.lineHeight};
|
|
185
|
+
|
|
186
|
+
${_emotion.autocompleteTokens.emptyStatePadding}: 1.375rem 0.625rem 0.625rem 0.625rem;
|
|
187
|
+
${_emotion.autocompleteTokens.emptyStateGap}: 0.25rem;
|
|
188
|
+
|
|
189
|
+
${_emotion.autocompleteTokens.infiniteLoaderSpinnerSize}: 1.5rem;
|
|
190
|
+
${_emotion.autocompleteTokens.infiniteLoaderGap}: 0.25rem;
|
|
191
|
+
|
|
192
|
+
${_emotion.autocompleteTokens.dropdownBorderWidth}: 0.125rem;
|
|
193
|
+
`
|
|
194
|
+
},
|
|
195
|
+
labelPlacement: {
|
|
196
|
+
inner: (0, _emotion.css)`
|
|
197
|
+
${_emotion.autocompleteTokens.textFieldPlaceholderColor}: ${_sdds_cs.textSecondary};
|
|
198
|
+
${_emotion.autocompleteTokens.textFieldLabelInnerFontFamily}: ${_sdds_cs.bodyXS.fontFamily};
|
|
199
|
+
${_emotion.autocompleteTokens.textFieldLabelInnerFontSize}: ${_sdds_cs.bodyXS.fontSize};
|
|
200
|
+
${_emotion.autocompleteTokens.textFieldLabelInnerFontStyle}: ${_sdds_cs.bodyXS.fontStyle};
|
|
201
|
+
${_emotion.autocompleteTokens.textFieldLabelInnerFontWeight}: ${_sdds_cs.bodyXS.fontWeight};
|
|
202
|
+
${_emotion.autocompleteTokens.textFieldLabelInnerLetterSpacing}: ${_sdds_cs.bodyXS.letterSpacing};
|
|
203
|
+
${_emotion.autocompleteTokens.textFieldLabelInnerLineHeight}: ${_sdds_cs.bodyXS.lineHeight};
|
|
204
|
+
`,
|
|
205
|
+
outer: (0, _emotion.css)``
|
|
206
|
+
},
|
|
207
|
+
disabled: {
|
|
208
|
+
true: (0, _emotion.css)`
|
|
209
|
+
${_emotion.autocompleteTokens.itemColor}: ${_sdds_cs.textSecondary};
|
|
210
|
+
${_emotion.autocompleteTokens.background}: ${_sdds_cs.surfaceSolidPrimary};
|
|
211
|
+
${_emotion.autocompleteTokens.textFieldColor}: ${_sdds_cs.textSecondary};
|
|
212
|
+
${_emotion.autocompleteTokens.textFieldLabelColor}: ${_sdds_cs.textSecondary};
|
|
213
|
+
${_emotion.autocompleteTokens.textFieldBackgroundColorHover}: ${_sdds_cs.surfaceSolidPrimary};
|
|
214
|
+
|
|
215
|
+
${_emotion.autocompleteTokens.textFieldDividerColor}: ${_sdds_cs.surfaceSolidPrimary};
|
|
216
|
+
${_emotion.autocompleteTokens.textFieldDividerColorHover}: ${_sdds_cs.surfaceSolidPrimary};
|
|
217
|
+
${_emotion.autocompleteTokens.textFieldDividerColorFocus}: ${_sdds_cs.surfaceSolidPrimary};
|
|
218
|
+
`
|
|
219
|
+
},
|
|
220
|
+
readOnly: {
|
|
221
|
+
true: (0, _emotion.css)`
|
|
222
|
+
${_emotion.autocompleteTokens.textFieldColorReadOnly}: ${_sdds_cs.textPrimary};
|
|
223
|
+
${_emotion.autocompleteTokens.textFieldBackgroundColorReadOnly}: ${_sdds_cs.surfaceClear};
|
|
224
|
+
${_emotion.autocompleteTokens.textFieldBorderColorReadOnly}: ${_sdds_cs.surfaceClear};
|
|
225
|
+
${_emotion.autocompleteTokens.textFieldPlaceholderColorReadOnly}: ${_sdds_cs.textSecondary};
|
|
226
|
+
${_emotion.autocompleteTokens.textFieldLeftHelperColorReadOnly}: ${_sdds_cs.textSecondary};
|
|
227
|
+
${_emotion.autocompleteTokens.textFieldLabelColorReadOnly}: ${_sdds_cs.textPrimary};
|
|
228
|
+
|
|
229
|
+
${_emotion.autocompleteTokens.textFieldDividerColorReadOnly}: ${_sdds_cs.outlineSolidSecondary};
|
|
230
|
+
${_emotion.autocompleteTokens.textFieldTitleCaptionColorReadOnly}: ${_sdds_cs.textSecondary};
|
|
231
|
+
`
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
};
|
|
@@ -34,6 +34,7 @@ const config = {
|
|
|
34
34
|
${_emotion.autocompleteTokens.textFieldTextAfterColor}: ${_sdds_cs.textSecondary};
|
|
35
35
|
${_emotion.autocompleteTokens.textFieldLabelColor}: ${_sdds_cs.textPrimary};
|
|
36
36
|
${_emotion.autocompleteTokens.textFieldLeftHelperColor}: ${_sdds_cs.textSecondary};
|
|
37
|
+
${_emotion.autocompleteTokens.textFieldTitleCaptionColor}: ${_sdds_cs.textSecondary};
|
|
37
38
|
${_emotion.autocompleteTokens.textFieldFocusColor}: ${_sdds_cs.textAccent};
|
|
38
39
|
|
|
39
40
|
${_emotion.autocompleteTokens.textFieldContentSlotColor}: ${_sdds_cs.textSecondary};
|
|
@@ -77,6 +78,7 @@ const config = {
|
|
|
77
78
|
${_emotion.autocompleteTokens.textFieldTextAfterColor}: ${_sdds_cs.textSecondary};
|
|
78
79
|
${_emotion.autocompleteTokens.textFieldLabelColor}: ${_sdds_cs.textPrimary};
|
|
79
80
|
${_emotion.autocompleteTokens.textFieldLeftHelperColor}: ${_sdds_cs.textNegative};
|
|
81
|
+
${_emotion.autocompleteTokens.textFieldTitleCaptionColor}: ${_sdds_cs.textSecondary};
|
|
80
82
|
${_emotion.autocompleteTokens.textFieldFocusColor}: ${_sdds_cs.textAccent};
|
|
81
83
|
|
|
82
84
|
${_emotion.autocompleteTokens.textFieldContentSlotColor}: ${_sdds_cs.textSecondary};
|
|
@@ -132,6 +134,13 @@ const config = {
|
|
|
132
134
|
${_emotion.autocompleteTokens.textFieldLabelFontWeight}: ${_sdds_cs.bodyS.fontWeight};
|
|
133
135
|
${_emotion.autocompleteTokens.textFieldLabelLetterSpacing}: ${_sdds_cs.bodyS.letterSpacing};
|
|
134
136
|
${_emotion.autocompleteTokens.textFieldLabelLineHeight}: ${_sdds_cs.bodyS.lineHeight};
|
|
137
|
+
${_emotion.autocompleteTokens.textFieldTitleCaptionMargin}: 0.1875rem;
|
|
138
|
+
${_emotion.autocompleteTokens.textFieldTitleCaptionFontFamily}: ${_sdds_cs.bodyXS.fontFamily};
|
|
139
|
+
${_emotion.autocompleteTokens.textFieldTitleCaptionFontStyle}: ${_sdds_cs.bodyXS.fontStyle};
|
|
140
|
+
${_emotion.autocompleteTokens.textFieldTitleCaptionFontSize}: ${_sdds_cs.bodyXS.fontSize};
|
|
141
|
+
${_emotion.autocompleteTokens.textFieldTitleCaptionFontWeight}: ${_sdds_cs.bodyXS.fontWeight};
|
|
142
|
+
${_emotion.autocompleteTokens.textFieldTitleCaptionLetterSpacing}: ${_sdds_cs.bodyXS.letterSpacing};
|
|
143
|
+
${_emotion.autocompleteTokens.textFieldTitleCaptionLineHeight}: ${_sdds_cs.bodyXS.lineHeight};
|
|
135
144
|
|
|
136
145
|
${_emotion.autocompleteTokens.textFieldLeftHelperOffset}: 0.25rem 0 0 0;
|
|
137
146
|
${_emotion.autocompleteTokens.textFieldLeftHelperFontFamily}: ${_sdds_cs.bodyS.fontFamily};
|
|
@@ -208,6 +217,7 @@ const config = {
|
|
|
208
217
|
${_emotion.autocompleteTokens.textFieldBorderColorReadOnly}: ${_sdds_cs.surfaceClear};
|
|
209
218
|
${_emotion.autocompleteTokens.textFieldPlaceholderColorReadOnly}: ${_sdds_cs.textSecondary};
|
|
210
219
|
${_emotion.autocompleteTokens.textFieldLeftHelperColorReadOnly}: ${_sdds_cs.textSecondary};
|
|
220
|
+
${_emotion.autocompleteTokens.textFieldTitleCaptionColorReadOnly}: ${_sdds_cs.textSecondary};
|
|
211
221
|
${_emotion.autocompleteTokens.textFieldLabelColorReadOnly}: ${_sdds_cs.textSecondary};
|
|
212
222
|
${_emotion.autocompleteTokens.textFieldBorderColor}: transparent;
|
|
213
223
|
${_emotion.autocompleteTokens.textFieldBorderWidth}: 0;
|
|
@@ -12,20 +12,33 @@ _export(exports, {
|
|
|
12
12
|
get Autocomplete () {
|
|
13
13
|
return Autocomplete;
|
|
14
14
|
},
|
|
15
|
+
get AutocompleteClear () {
|
|
16
|
+
return AutocompleteClear;
|
|
17
|
+
},
|
|
15
18
|
get AutocompleteComponent () {
|
|
16
19
|
return AutocompleteComponent;
|
|
20
|
+
},
|
|
21
|
+
get AutocompleteDefault () {
|
|
22
|
+
return AutocompleteDefault;
|
|
17
23
|
}
|
|
18
24
|
});
|
|
19
25
|
const _emotion = require("@salutejs/plasma-new-hope/emotion");
|
|
20
26
|
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
|
21
27
|
const _Autocompleteconfig = require("./Autocomplete.config");
|
|
28
|
+
const _Autocompleteclearconfig = require("./Autocomplete.clear.config");
|
|
22
29
|
function _interop_require_default(obj) {
|
|
23
30
|
return obj && obj.__esModule ? obj : {
|
|
24
31
|
default: obj
|
|
25
32
|
};
|
|
26
33
|
}
|
|
27
34
|
const mergedConfig = (0, _emotion.mergeConfig)(_emotion.autocompleteConfig, _Autocompleteconfig.config);
|
|
28
|
-
const
|
|
35
|
+
const AutocompleteDefault = (0, _emotion.component)(mergedConfig);
|
|
36
|
+
const mergedClearConfig = (0, _emotion.mergeConfig)(_emotion.autocompleteConfig, _Autocompleteclearconfig.config);
|
|
37
|
+
const AutocompleteClear = (0, _emotion.component)(mergedClearConfig);
|
|
38
|
+
const AutocompleteComponent = (0, _emotion.createConditionalComponent)({
|
|
39
|
+
default: AutocompleteDefault,
|
|
40
|
+
clear: AutocompleteClear
|
|
41
|
+
});
|
|
29
42
|
const AutocompleteWithoutRef = (props, ref)=>{
|
|
30
43
|
return /*#__PURE__*/ _react.default.createElement(AutocompleteComponent, {
|
|
31
44
|
...props,
|
|
@@ -171,6 +171,7 @@ const config = {
|
|
|
171
171
|
${_emotion.datePickerTokens.textFieldLineHeight}: ${_sdds_cs.bodyM.lineHeight};
|
|
172
172
|
|
|
173
173
|
${_emotion.datePickerTokens.titleCaptionOffset}: 0;
|
|
174
|
+
${_emotion.datePickerTokens.titleCaptionMargin}: 0.1875rem;
|
|
174
175
|
${_emotion.datePickerTokens.titleCaptionFontFamily}: ${_sdds_cs.bodyS.fontFamily};
|
|
175
176
|
${_emotion.datePickerTokens.titleCaptionFontSize}: ${_sdds_cs.bodyS.fontSize};
|
|
176
177
|
${_emotion.datePickerTokens.titleCaptionFontStyle}: ${_sdds_cs.bodyS.fontStyle};
|
|
@@ -33,6 +33,13 @@ const config = {
|
|
|
33
33
|
${_emotion.drawerTokens.shadow}: 0 3.75rem 7rem -0.5rem rgba(0, 0, 0, 0.08);
|
|
34
34
|
${_emotion.drawerTokens.contentBackgroundColor}: ${_sdds_cs.surfaceSolidCard};
|
|
35
35
|
${_emotion.drawerTokens.closeIconColor}: ${_sdds_cs.textAccent};
|
|
36
|
+
|
|
37
|
+
${_emotion.drawerTokens.scrollbarWidth}: 0.25rem;
|
|
38
|
+
${_emotion.drawerTokens.scrollbarOffsetRight}: 0.25rem;
|
|
39
|
+
${_emotion.drawerTokens.scrollbarThumbBackgroundColor}: ${_sdds_cs.surfaceSolidTertiary};
|
|
40
|
+
${_emotion.drawerTokens.scrollbarThumbBackgroundColorHover}: ${_sdds_cs.surfaceSolidTertiaryHover};
|
|
41
|
+
${_emotion.drawerTokens.scrollbarThumbBackgroundColorActive}: ${_sdds_cs.surfaceSolidTertiaryActive};
|
|
42
|
+
${_emotion.drawerTokens.scrollbarTrackBackgroundColor}: ${_sdds_cs.surfaceSolidPrimary};
|
|
36
43
|
`
|
|
37
44
|
},
|
|
38
45
|
size: {
|
|
@@ -59,7 +66,7 @@ const contentConfig = {
|
|
|
59
66
|
variations: {
|
|
60
67
|
view: {
|
|
61
68
|
default: (0, _emotion.css)`
|
|
62
|
-
padding-right:
|
|
69
|
+
padding-right: 1rem;
|
|
63
70
|
`
|
|
64
71
|
}
|
|
65
72
|
}
|