@salutejs/plasma-new-hope 0.343.0-canary.2358.19815233540.0 → 0.343.0-canary.2365.19816292443.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/cjs/components/Autocomplete/Autocomplete.css +28 -26
- package/cjs/components/Combobox/ComboboxNew/Combobox.css +28 -26
- package/cjs/components/DatePicker/RangeDate/RangeDate.css +28 -26
- package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +28 -26
- package/cjs/components/DatePicker/SingleDate/SingleDate.css +28 -26
- package/cjs/components/DateTimePicker/DateTimePicker.css +28 -26
- package/cjs/components/DateTimePicker/ui/Input/Input.css +28 -26
- package/cjs/components/Pagination/Pagination.css +37 -35
- package/cjs/components/Pagination/Pagination.styles.js +7 -7
- package/cjs/components/Pagination/Pagination.styles.js.map +1 -1
- package/cjs/components/Pagination/{Pagination.styles_qhyqps.css → Pagination.styles_11gdtmg.css} +1 -1
- package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +28 -26
- package/cjs/components/Range/Range.css +28 -26
- package/cjs/components/Select/Select.css +28 -26
- package/cjs/components/Select/ui/Target/Target.css +28 -26
- package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.css +28 -26
- package/cjs/components/Slider/Slider.css +28 -26
- package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +28 -26
- package/cjs/components/Table/Table.css +28 -26
- package/cjs/components/Table/ui/Cell/Cell.css +28 -26
- package/cjs/components/Table/ui/EditableCell/EditableCell.css +28 -26
- package/cjs/components/Table/ui/HeadCell/HeadCell.css +28 -26
- package/cjs/components/Table/ui/HeadCell/ui/Filter/Filter.css +28 -26
- package/cjs/components/TextField/TextField.js +23 -16
- package/cjs/components/TextField/TextField.js.map +1 -1
- package/cjs/components/TextField/TextField.styles.js +18 -8
- package/cjs/components/TextField/TextField.styles.js.map +1 -1
- package/cjs/components/TextField/{TextField.styles_1pu4eym.css → TextField.styles_146520i.css} +1 -1
- package/cjs/components/TextField/ui/Hint/Hint.css +21 -21
- package/cjs/components/TextField/ui/TextFieldChipNew/TextFieldChipNew.css +23 -23
- package/cjs/components/TextField/variations/_clear/base.js +9 -0
- package/cjs/components/TextField/variations/_clear/base.js.map +1 -0
- package/cjs/components/TextField/variations/_clear/base_ukg8yq.css +1 -0
- package/cjs/components/TextField/variations/_label-placement/base.js +1 -1
- package/cjs/components/TextField/variations/_label-placement/base.js.map +1 -1
- package/{es/components/TextField/variations/_label-placement/base_o4xjq1.css → cjs/components/TextField/variations/_label-placement/base_1s0mlhj.css} +1 -1
- package/cjs/components/TextField/variations/_read-only/base.js +1 -1
- package/cjs/components/TextField/variations/_read-only/base.js.map +1 -1
- package/cjs/components/TextField/variations/_read-only/base_13ohoed.css +1 -0
- package/cjs/components/TextField/variations/_view/base.js +1 -1
- package/cjs/components/TextField/variations/_view/base.js.map +1 -1
- package/cjs/components/TextField/variations/_view/{base_1twy16p.css → base_1diyp23.css} +1 -1
- package/cjs/components/TimePicker/TimePicker.css +28 -26
- package/cjs/index.css +37 -35
- package/cjs/utils/createConditionalComponent.js +4 -8
- package/cjs/utils/createConditionalComponent.js.map +1 -1
- package/emotion/cjs/components/Pagination/Pagination.styles.js +18 -18
- package/emotion/cjs/components/TextField/TextField.js +24 -17
- package/emotion/cjs/components/TextField/TextField.styles.js +49 -46
- package/emotion/cjs/components/TextField/variations/_clear/base.js +14 -0
- package/emotion/cjs/components/TextField/variations/_label-placement/base.js +1 -1
- package/emotion/cjs/components/TextField/variations/_read-only/base.js +1 -1
- package/emotion/cjs/components/TextField/variations/_view/base.js +1 -1
- package/emotion/cjs/examples/components/TextField/TextField.config.js +25 -22
- package/emotion/cjs/examples/components/TextField/TextField.js +5 -29
- package/emotion/cjs/utils/createConditionalComponent.js +8 -76
- package/emotion/es/components/Pagination/Pagination.styles.js +18 -18
- package/emotion/es/components/TextField/TextField.js +12 -5
- package/emotion/es/components/TextField/TextField.styles.js +49 -46
- package/emotion/es/components/TextField/variations/_clear/base.js +4 -0
- package/emotion/es/components/TextField/variations/_label-placement/base.js +2 -2
- package/emotion/es/components/TextField/variations/_read-only/base.js +1 -1
- package/emotion/es/components/TextField/variations/_view/base.js +2 -2
- package/emotion/es/examples/components/Combobox/Combobox.js +0 -7
- package/emotion/es/examples/components/TextField/TextField.config.js +25 -22
- package/emotion/es/examples/components/TextField/TextField.js +2 -15
- package/emotion/es/utils/createConditionalComponent.js +5 -37
- package/es/components/Autocomplete/Autocomplete.css +28 -26
- package/es/components/Combobox/ComboboxNew/Combobox.css +28 -26
- package/es/components/DatePicker/RangeDate/RangeDate.css +28 -26
- package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +28 -26
- package/es/components/DatePicker/SingleDate/SingleDate.css +28 -26
- package/es/components/DateTimePicker/DateTimePicker.css +28 -26
- package/es/components/DateTimePicker/ui/Input/Input.css +28 -26
- package/es/components/Pagination/Pagination.css +37 -35
- package/es/components/Pagination/Pagination.styles.js +7 -7
- package/es/components/Pagination/Pagination.styles.js.map +1 -1
- package/es/components/Pagination/{Pagination.styles_qhyqps.css → Pagination.styles_11gdtmg.css} +1 -1
- package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +28 -26
- package/es/components/Range/Range.css +28 -26
- package/es/components/Select/Select.css +28 -26
- package/es/components/Select/ui/Target/Target.css +28 -26
- package/es/components/Select/ui/Target/ui/Textfield/Textfield.css +28 -26
- package/es/components/Slider/Slider.css +28 -26
- package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +28 -26
- package/es/components/Table/Table.css +28 -26
- package/es/components/Table/ui/Cell/Cell.css +28 -26
- package/es/components/Table/ui/EditableCell/EditableCell.css +28 -26
- package/es/components/Table/ui/HeadCell/HeadCell.css +28 -26
- package/es/components/Table/ui/HeadCell/ui/Filter/Filter.css +28 -26
- package/es/components/TextField/TextField.js +23 -16
- package/es/components/TextField/TextField.js.map +1 -1
- package/es/components/TextField/TextField.styles.js +18 -8
- package/es/components/TextField/TextField.styles.js.map +1 -1
- package/es/components/TextField/{TextField.styles_1pu4eym.css → TextField.styles_146520i.css} +1 -1
- package/es/components/TextField/ui/Hint/Hint.css +21 -21
- package/es/components/TextField/ui/TextFieldChipNew/TextFieldChipNew.css +23 -23
- package/es/components/TextField/variations/_clear/base.js +5 -0
- package/es/components/TextField/variations/_clear/base.js.map +1 -0
- package/es/components/TextField/variations/_clear/base_ukg8yq.css +1 -0
- package/es/components/TextField/variations/_label-placement/base.js +1 -1
- package/es/components/TextField/variations/_label-placement/base.js.map +1 -1
- package/{cjs/components/TextField/variations/_label-placement/base_o4xjq1.css → es/components/TextField/variations/_label-placement/base_1s0mlhj.css} +1 -1
- package/es/components/TextField/variations/_read-only/base.js +1 -1
- package/es/components/TextField/variations/_read-only/base.js.map +1 -1
- package/es/components/TextField/variations/_read-only/base_13ohoed.css +1 -0
- package/es/components/TextField/variations/_view/base.js +1 -1
- package/es/components/TextField/variations/_view/base.js.map +1 -1
- package/es/components/TextField/variations/_view/{base_1twy16p.css → base_1diyp23.css} +1 -1
- package/es/components/TimePicker/TimePicker.css +28 -26
- package/es/index.css +37 -35
- package/es/utils/createConditionalComponent.js +6 -10
- package/es/utils/createConditionalComponent.js.map +1 -1
- package/package.json +3 -3
- package/styled-components/cjs/components/Pagination/Pagination.styles.js +12 -14
- package/styled-components/cjs/components/TextField/TextField.js +23 -16
- package/styled-components/cjs/components/TextField/TextField.styles.js +32 -31
- package/styled-components/cjs/components/TextField/variations/_clear/base.js +52 -0
- package/styled-components/cjs/components/TextField/variations/_label-placement/base.js +4 -6
- package/styled-components/cjs/components/TextField/variations/_read-only/base.js +4 -3
- package/styled-components/cjs/components/TextField/variations/_view/base.js +2 -13
- package/styled-components/cjs/examples/components/TextField/TextField.config.js +48 -10
- package/styled-components/cjs/examples/components/TextField/TextField.js +5 -29
- package/styled-components/cjs/utils/createConditionalComponent.js +8 -76
- package/styled-components/es/components/Pagination/Pagination.styles.js +12 -14
- package/styled-components/es/components/TextField/TextField.js +11 -4
- package/styled-components/es/components/TextField/TextField.styles.js +32 -31
- package/styled-components/es/components/TextField/variations/_clear/base.js +42 -0
- package/styled-components/es/components/TextField/variations/_label-placement/base.js +5 -7
- package/styled-components/es/components/TextField/variations/_read-only/base.js +4 -3
- package/styled-components/es/components/TextField/variations/_view/base.js +3 -14
- package/styled-components/es/examples/components/Combobox/Combobox.js +0 -7
- package/styled-components/es/examples/components/TextField/TextField.config.js +48 -10
- package/styled-components/es/examples/components/TextField/TextField.js +2 -15
- package/styled-components/es/utils/createConditionalComponent.js +5 -37
- package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts +0 -8
- package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/ui/Target/Target.styles.d.ts +0 -8
- package/types/components/Combobox/ComboboxNew/ui/Target/Target.styles.d.ts.map +1 -1
- package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts +0 -8
- package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts.map +1 -1
- package/types/components/DateTimePicker/ui/Input/Input.styles.d.ts +0 -8
- package/types/components/DateTimePicker/ui/Input/Input.styles.d.ts.map +1 -1
- package/types/components/Pagination/Pagination.styles.d.ts.map +1 -1
- package/types/components/Range/Range.styles.d.ts +0 -8
- package/types/components/Range/Range.styles.d.ts.map +1 -1
- package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts +0 -8
- package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts.map +1 -1
- package/types/components/Slider/components/Double/Double.styles.d.ts +0 -8
- package/types/components/Slider/components/Double/Double.styles.d.ts.map +1 -1
- package/types/components/TextField/TextField.d.ts +4 -0
- package/types/components/TextField/TextField.d.ts.map +1 -1
- package/types/components/TextField/TextField.styles.d.ts +4 -1
- package/types/components/TextField/TextField.styles.d.ts.map +1 -1
- package/types/components/TextField/TextField.types.d.ts +0 -8
- package/types/components/TextField/TextField.types.d.ts.map +1 -1
- package/types/components/TextField/variations/_clear/base.d.ts +2 -0
- package/types/components/TextField/variations/_clear/base.d.ts.map +1 -0
- package/types/components/TextField/variations/_label-placement/base.d.ts.map +1 -1
- package/types/components/TextField/variations/_read-only/base.d.ts.map +1 -1
- package/types/components/TextField/variations/_view/base.d.ts.map +1 -1
- package/types/components/TimePicker/TimePicker.styles.d.ts +0 -8
- package/types/components/TimePicker/TimePicker.styles.d.ts.map +1 -1
- package/types/examples/components/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/types/examples/components/Checkbox/Checkbox.d.ts +2 -2
- package/types/examples/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/types/examples/components/Chip/Chip.d.ts +2 -2
- package/types/examples/components/Chip/Chip.d.ts.map +1 -1
- package/types/examples/components/Mask/Mask.d.ts +33 -17
- package/types/examples/components/Mask/Mask.d.ts.map +1 -1
- package/types/examples/components/NumberFormat/NumberFormat.d.ts +40 -24
- package/types/examples/components/NumberFormat/NumberFormat.d.ts.map +1 -1
- package/types/examples/components/Radiobox/Radiobox.d.ts +8 -49
- package/types/examples/components/Radiobox/Radiobox.d.ts.map +1 -1
- package/types/examples/components/TextField/TextField.config.d.ts +3 -0
- package/types/examples/components/TextField/TextField.config.d.ts.map +1 -1
- package/types/examples/components/TextField/TextField.d.ts +4 -970
- package/types/examples/components/TextField/TextField.d.ts.map +1 -1
- package/types/utils/createConditionalComponent.d.ts +1 -1
- package/types/utils/createConditionalComponent.d.ts.map +1 -1
- package/cjs/components/TextField/variations/_read-only/base_2lss3j.css +0 -1
- package/emotion/cjs/examples/components/TextField/TextField.clear.config.js +0 -59
- package/emotion/es/examples/components/TextField/TextField.clear.config.js +0 -49
- package/es/components/TextField/variations/_read-only/base_2lss3j.css +0 -1
- package/styled-components/cjs/examples/components/TextField/TextField.clear.config.js +0 -670
- package/styled-components/es/examples/components/TextField/TextField.clear.config.js +0 -660
- package/types/examples/components/TextField/TextField.clear.config.d.ts +0 -48
- package/types/examples/components/TextField/TextField.clear.config.d.ts.map +0 -1
|
@@ -2,38 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", {
|
|
3
3
|
value: true
|
|
4
4
|
});
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
_export(exports, {
|
|
12
|
-
get TextField () {
|
|
5
|
+
Object.defineProperty(exports, "TextField", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
13
8
|
return TextField;
|
|
14
|
-
},
|
|
15
|
-
get TextFieldClear () {
|
|
16
|
-
return TextFieldClear;
|
|
17
|
-
},
|
|
18
|
-
get TextFieldDefault () {
|
|
19
|
-
return TextFieldDefault;
|
|
20
9
|
}
|
|
21
10
|
});
|
|
22
|
-
var _utils = require("../../../utils");
|
|
23
11
|
var _engines = require("../../../engines");
|
|
24
12
|
var _TextField = require("../../../components/TextField");
|
|
25
13
|
var _TextFieldconfig = require("./TextField.config");
|
|
26
|
-
var
|
|
27
|
-
var
|
|
28
|
-
var TextFieldDefault = (0, _engines.component)(mergedConfigDefault);
|
|
29
|
-
var mergedConfigClear = (0, _engines.mergeConfig)(_TextField.textFieldConfig, _TextFieldclearconfig.config);
|
|
30
|
-
var TextFieldClear = (0, _engines.component)(mergedConfigClear);
|
|
31
|
-
var TextField = (0, _utils.createConditionalComponent)(TextFieldDefault, [
|
|
32
|
-
{
|
|
33
|
-
conditions: {
|
|
34
|
-
prop: 'appearance',
|
|
35
|
-
value: 'clear'
|
|
36
|
-
},
|
|
37
|
-
component: TextFieldClear
|
|
38
|
-
}
|
|
39
|
-
]);
|
|
14
|
+
var mergedConfig = (0, _engines.mergeConfig)(_TextField.textFieldConfig, _TextFieldconfig.config);
|
|
15
|
+
var TextField = (0, _engines.component)(mergedConfig);
|
|
@@ -8,78 +8,14 @@ Object.defineProperty(exports, "createConditionalComponent", {
|
|
|
8
8
|
return createConditionalComponent;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
var _react = /*#__PURE__*/
|
|
12
|
-
function
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
value: value,
|
|
16
|
-
enumerable: true,
|
|
17
|
-
configurable: true,
|
|
18
|
-
writable: true
|
|
19
|
-
});
|
|
20
|
-
} else {
|
|
21
|
-
obj[key] = value;
|
|
22
|
-
}
|
|
23
|
-
return obj;
|
|
24
|
-
}
|
|
25
|
-
function _getRequireWildcardCache(nodeInterop) {
|
|
26
|
-
if (typeof WeakMap !== "function") return null;
|
|
27
|
-
var cacheBabelInterop = new WeakMap();
|
|
28
|
-
var cacheNodeInterop = new WeakMap();
|
|
29
|
-
return (_getRequireWildcardCache = function(nodeInterop) {
|
|
30
|
-
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
31
|
-
})(nodeInterop);
|
|
32
|
-
}
|
|
33
|
-
function _interop_require_wildcard(obj, nodeInterop) {
|
|
34
|
-
if (!nodeInterop && obj && obj.__esModule) {
|
|
35
|
-
return obj;
|
|
36
|
-
}
|
|
37
|
-
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
38
|
-
return {
|
|
39
|
-
default: obj
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
var cache = _getRequireWildcardCache(nodeInterop);
|
|
43
|
-
if (cache && cache.has(obj)) {
|
|
44
|
-
return cache.get(obj);
|
|
45
|
-
}
|
|
46
|
-
var newObj = {
|
|
47
|
-
__proto__: null
|
|
11
|
+
var _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
|
12
|
+
function _interop_require_default(obj) {
|
|
13
|
+
return obj && obj.__esModule ? obj : {
|
|
14
|
+
default: obj
|
|
48
15
|
};
|
|
49
|
-
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
50
|
-
for(var key in obj){
|
|
51
|
-
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
52
|
-
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
53
|
-
if (desc && (desc.get || desc.set)) {
|
|
54
|
-
Object.defineProperty(newObj, key, desc);
|
|
55
|
-
} else {
|
|
56
|
-
newObj[key] = obj[key];
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
newObj.default = obj;
|
|
61
|
-
if (cache) {
|
|
62
|
-
cache.set(obj, newObj);
|
|
63
|
-
}
|
|
64
|
-
return newObj;
|
|
65
|
-
}
|
|
66
|
-
function _object_spread(target) {
|
|
67
|
-
for(var i = 1; i < arguments.length; i++){
|
|
68
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
69
|
-
var ownKeys = Object.keys(source);
|
|
70
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
71
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
72
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
73
|
-
}));
|
|
74
|
-
}
|
|
75
|
-
ownKeys.forEach(function(key) {
|
|
76
|
-
_define_property(target, key, source[key]);
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
return target;
|
|
80
16
|
}
|
|
81
17
|
function createConditionalComponent(defaultComponent, mappings) {
|
|
82
|
-
return
|
|
18
|
+
return function(props) {
|
|
83
19
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
84
20
|
try {
|
|
85
21
|
for(var _iterator = mappings[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
@@ -94,9 +30,7 @@ function createConditionalComponent(defaultComponent, mappings) {
|
|
|
94
30
|
});
|
|
95
31
|
if (allConditionsMatch) {
|
|
96
32
|
var Component = component;
|
|
97
|
-
return /*#__PURE__*/ _react.default.createElement(Component,
|
|
98
|
-
ref: ref
|
|
99
|
-
}, props));
|
|
33
|
+
return /*#__PURE__*/ _react.default.createElement(Component, props);
|
|
100
34
|
}
|
|
101
35
|
}
|
|
102
36
|
} catch (err) {
|
|
@@ -114,8 +48,6 @@ function createConditionalComponent(defaultComponent, mappings) {
|
|
|
114
48
|
}
|
|
115
49
|
}
|
|
116
50
|
var DefaultComponent = defaultComponent;
|
|
117
|
-
return /*#__PURE__*/ _react.default.createElement(DefaultComponent,
|
|
118
|
-
|
|
119
|
-
}, props));
|
|
120
|
-
});
|
|
51
|
+
return /*#__PURE__*/ _react.default.createElement(DefaultComponent, props);
|
|
52
|
+
};
|
|
121
53
|
}
|
|
@@ -10,7 +10,7 @@ var mergedButtonGroupConfig = mergeConfig(buttonGroupConfig);
|
|
|
10
10
|
var ButtonGroup = component(mergedButtonGroupConfig);
|
|
11
11
|
export var PaginationRoot = styled.div.withConfig({
|
|
12
12
|
displayName: "Pagination.styles__PaginationRoot",
|
|
13
|
-
componentId: "sc-
|
|
13
|
+
componentId: "sc-a9f2b5ca-0"
|
|
14
14
|
})([
|
|
15
15
|
"display:flex;color:var(",
|
|
16
16
|
");&.",
|
|
@@ -19,30 +19,28 @@ export var PaginationRoot = styled.div.withConfig({
|
|
|
19
19
|
], tokens.paginationColor, classes.compactType, classes.defaultType);
|
|
20
20
|
export var PaginationPages = styled.div.withConfig({
|
|
21
21
|
displayName: "Pagination.styles__PaginationPages",
|
|
22
|
-
componentId: "sc-
|
|
22
|
+
componentId: "sc-a9f2b5ca-1"
|
|
23
23
|
})([
|
|
24
24
|
"display:flex;align-items:center;gap:0.25rem;flex-shrink:0;"
|
|
25
25
|
]);
|
|
26
26
|
export var PaginationActions = styled.div.withConfig({
|
|
27
27
|
displayName: "Pagination.styles__PaginationActions",
|
|
28
|
-
componentId: "sc-
|
|
28
|
+
componentId: "sc-a9f2b5ca-2"
|
|
29
29
|
})([
|
|
30
30
|
"display:flex;justify-content:space-between;flex-grow:1;align-items:center;gap:var(",
|
|
31
31
|
");flex-shrink:1;&.",
|
|
32
|
-
"{flex-direction:row;width:100%;flex-wrap:wrap
|
|
33
|
-
"{flex-direction:row;}
|
|
34
|
-
|
|
35
|
-
"{flex-direction:row;}"
|
|
36
|
-
], tokens.paginationHelperTextGap, classes.compactType, classes.defaultType, classes.withHasPerPageSelect, classes.withHasQuickJump);
|
|
32
|
+
"{flex-direction:row;width:100%;flex-wrap:wrap;&.",
|
|
33
|
+
"{flex-direction:row-reverse;}}flex-direction:row;"
|
|
34
|
+
], tokens.paginationHelperTextGap, classes.compactType, classes.withHasPerPageSelect);
|
|
37
35
|
export var PaginationSection = styled.div.withConfig({
|
|
38
36
|
displayName: "Pagination.styles__PaginationSection",
|
|
39
|
-
componentId: "sc-
|
|
37
|
+
componentId: "sc-a9f2b5ca-3"
|
|
40
38
|
})([
|
|
41
39
|
"display:flex;gap:0.125rem;"
|
|
42
40
|
]);
|
|
43
41
|
export var PaginationButtonGroup = styled(ButtonGroup).withConfig({
|
|
44
42
|
displayName: "Pagination.styles__PaginationButtonGroup",
|
|
45
|
-
componentId: "sc-
|
|
43
|
+
componentId: "sc-a9f2b5ca-4"
|
|
46
44
|
})([
|
|
47
45
|
"",
|
|
48
46
|
":var(",
|
|
@@ -84,7 +82,7 @@ export var PaginationButtonGroup = styled(ButtonGroup).withConfig({
|
|
|
84
82
|
], buttonGroupTokens.buttonColor, tokens.buttonColor, buttonGroupTokens.buttonBackgroundColor, tokens.buttonBackgroundColor, buttonGroupTokens.buttonColorHover, tokens.buttonHoverColor, buttonGroupTokens.buttonBackgroundColorHover, tokens.buttonBackgroundColorHover, buttonGroupTokens.buttonColorActive, tokens.buttonActiveColor, buttonGroupTokens.buttonBackgroundColorActive, tokens.buttonBackgroundColorActive, buttonGroupTokens.buttonFontFamily, tokens.paginationFontFamily, buttonGroupTokens.buttonFontSize, tokens.paginationFontSize, buttonGroupTokens.buttonFontStyle, tokens.paginationFontStyle, buttonGroupTokens.buttonFontWeight, tokens.paginationFontWeight, buttonGroupTokens.buttonLetterSpacing, tokens.paginationLetterSpacing, buttonGroupTokens.buttonLineHeight, tokens.paginationLineHeight, buttonGroupTokens.buttonWidth, tokens.buttonWidth, buttonGroupTokens.buttonHeight, tokens.buttonHeight, buttonGroupTokens.buttonDefaultRadius, tokens.buttonRadius, buttonGroupTokens.buttonSideRadius, tokens.buttonRadius, buttonGroupTokens.buttonSegmentedRadius, tokens.buttonRadius, buttonGroupTokens.buttonRadiusCircle, tokens.buttonRadius);
|
|
85
83
|
export var PaginationButton = styled(Button).withConfig({
|
|
86
84
|
displayName: "Pagination.styles__PaginationButton",
|
|
87
|
-
componentId: "sc-
|
|
85
|
+
componentId: "sc-a9f2b5ca-5"
|
|
88
86
|
})([
|
|
89
87
|
"",
|
|
90
88
|
":var(",
|
|
@@ -150,7 +148,7 @@ export var PaginationButton = styled(Button).withConfig({
|
|
|
150
148
|
}));
|
|
151
149
|
export var PaginationShorter = styled(PaginationButton).withConfig({
|
|
152
150
|
displayName: "Pagination.styles__PaginationShorter",
|
|
153
|
-
componentId: "sc-
|
|
151
|
+
componentId: "sc-a9f2b5ca-6"
|
|
154
152
|
})([
|
|
155
153
|
"",
|
|
156
154
|
":var(",
|
|
@@ -159,7 +157,7 @@ export var PaginationShorter = styled(PaginationButton).withConfig({
|
|
|
159
157
|
], buttonTokens.buttonWidth, tokens.buttonWidthShorter, buttonTokens.buttonPadding);
|
|
160
158
|
export var PaginationActionsLeft = styled.div.withConfig({
|
|
161
159
|
displayName: "Pagination.styles__PaginationActionsLeft",
|
|
162
|
-
componentId: "sc-
|
|
160
|
+
componentId: "sc-a9f2b5ca-7"
|
|
163
161
|
})([
|
|
164
162
|
"display:flex;align-items:center;flex-wrap:wrap;gap:var(",
|
|
165
163
|
");.",
|
|
@@ -167,7 +165,7 @@ export var PaginationActionsLeft = styled.div.withConfig({
|
|
|
167
165
|
], tokens.paginationHelperTextGap, classes.defaultType);
|
|
168
166
|
export var PaginationHelperText = styled.div.withConfig({
|
|
169
167
|
displayName: "Pagination.styles__PaginationHelperText",
|
|
170
|
-
componentId: "sc-
|
|
168
|
+
componentId: "sc-a9f2b5ca-8"
|
|
171
169
|
})([
|
|
172
170
|
"color:var(",
|
|
173
171
|
");&.",
|
|
@@ -106,6 +106,7 @@ import { cx, safeUseId } from "../../utils";
|
|
|
106
106
|
import { useOutsideClick } from "../../hooks";
|
|
107
107
|
import { base as sizeCSS } from "./variations/_size/base";
|
|
108
108
|
import { base as viewCSS } from "./variations/_view/base";
|
|
109
|
+
import { base as clearCSS } from "./variations/_clear/base";
|
|
109
110
|
import { base as disabledCSS } from "./variations/_disabled/base";
|
|
110
111
|
import { base as readOnlyCSS } from "./variations/_read-only/base";
|
|
111
112
|
import { base as labelPlacementCSS } from "./variations/_label-placement/base";
|
|
@@ -130,7 +131,7 @@ export var textFieldRoot = function(Root) {
|
|
|
130
131
|
var id = _param.id, className = _param.className, style = _param.style, // layout
|
|
131
132
|
contentLeft = _param.contentLeft, contentRight = _param.contentRight, label = _param.label, labelPlacement = _param.labelPlacement, keepPlaceholder = _param.keepPlaceholder, textBefore = _param.textBefore, textAfter = _param.textAfter, placeholder = _param.placeholder, leftHelper = _param.leftHelper, _param_enumerationType = _param.enumerationType, enumerationType = _param_enumerationType === void 0 ? 'plain' : _param_enumerationType, _param_requiredPlacement = _param.requiredPlacement, requiredPlacement = _param_requiredPlacement === void 0 ? 'right' : _param_requiredPlacement, _param_hasRequiredIndicator = _param.hasRequiredIndicator, hasRequiredIndicator = _param_hasRequiredIndicator === void 0 ? true : _param_hasRequiredIndicator, titleCaption = _param.titleCaption, _param_chipView = _param.chipView, chipView = _param_chipView === void 0 ? 'default' : _param_chipView, chipValidator = _param.chipValidator, _param_hintTrigger = _param.// hint
|
|
132
133
|
hintTrigger, hintTrigger = _param_hintTrigger === void 0 ? 'hover' : _param_hintTrigger, hintText = _param.hintText, _param_hintView = _param.hintView, hintView = _param_hintView === void 0 ? 'default' : _param_hintView, _param_hintSize = _param.hintSize, hintSize = _param_hintSize === void 0 ? 'm' : _param_hintSize, hintTargetIcon = _param.hintTargetIcon, _param_hintTargetPlacement = _param.hintTargetPlacement, hintTargetPlacement = _param_hintTargetPlacement === void 0 ? 'outer' : _param_hintTargetPlacement, _param_hintPlacement = _param.hintPlacement, hintPlacement = _param_hintPlacement === void 0 ? 'auto' : _param_hintPlacement, hintHasArrow = _param.hintHasArrow, _param_hintOffset = _param.hintOffset, hintOffset = _param_hintOffset === void 0 ? HINT_DEFAULT_OFFSET : _param_hintOffset, hintWidth = _param.hintWidth, hintContentLeft = _param.hintContentLeft, // variations
|
|
133
|
-
|
|
134
|
+
view = _param.view, size = _param.size, _param_readOnly = _param.readOnly, readOnly = _param_readOnly === void 0 ? false : _param_readOnly, _param_disabled = _param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, _param_required = _param.required, required = _param_required === void 0 ? false : _param_required, _param_clear = _param.clear, clear = _param_clear === void 0 ? false : _param_clear, optional = _param.optional, _param_optionalText = _param.optionalText, optionalText = _param_optionalText === void 0 ? 'optional' : _param_optionalText, hasDivider = _param.hasDivider, // controlled
|
|
134
135
|
outerValue = _param.value, values = _param.chips, _param_chipType = _param.chipType, chipType = _param_chipType === void 0 ? 'default' : _param_chipType, // @ts-ignore
|
|
135
136
|
_chips = _param._chips, // @ts-ignore
|
|
136
137
|
_chipClickArea = _param._chipClickArea, // @ts-ignore
|
|
@@ -168,7 +169,6 @@ export var textFieldRoot = function(Root) {
|
|
|
168
169
|
"hintOffset",
|
|
169
170
|
"hintWidth",
|
|
170
171
|
"hintContentLeft",
|
|
171
|
-
"appearance",
|
|
172
172
|
"view",
|
|
173
173
|
"size",
|
|
174
174
|
"readOnly",
|
|
@@ -214,6 +214,7 @@ export var textFieldRoot = function(Root) {
|
|
|
214
214
|
var innerId = id || uniqId;
|
|
215
215
|
var labelId = safeUseId();
|
|
216
216
|
var helperTextId = safeUseId();
|
|
217
|
+
var isDefaultView = view === 'default' || readOnly || disabled;
|
|
217
218
|
var isChipEnumeration = enumerationType === 'chip';
|
|
218
219
|
var isChipsVisible = isChipEnumeration && Boolean((chips === null || chips === void 0 ? void 0 : chips.length) || (_chips === null || _chips === void 0 ? void 0 : _chips.length));
|
|
219
220
|
var withHasChips = isChipsVisible ? classes.hasChips : undefined;
|
|
@@ -235,7 +236,7 @@ export var textFieldRoot = function(Root) {
|
|
|
235
236
|
var innerLabelPlacementValue = labelPlacement === 'inner' && !hasInnerLabel ? undefined : labelPlacement;
|
|
236
237
|
var innerPlaceholderValue = hasPlaceholder ? placeholder : undefined;
|
|
237
238
|
var placeholderShown = Boolean(innerPlaceholderValue) && !hasValue;
|
|
238
|
-
var clearClass = clear
|
|
239
|
+
var clearClass = clear ? classes.clear : undefined;
|
|
239
240
|
var hasDividerClass = hasDivider ? classes.hasDivider : undefined;
|
|
240
241
|
var hasInnerHintClass = hintText && hintTargetPlacement === 'outer' ? classes.hasHint : undefined;
|
|
241
242
|
var hasHintClass = hintText ? classes.hasHint : undefined;
|
|
@@ -466,7 +467,9 @@ export var textFieldRoot = function(Root) {
|
|
|
466
467
|
handleHintClick: handleHintClick,
|
|
467
468
|
isInnerLabel: true
|
|
468
469
|
}))), contentLeft && /*#__PURE__*/ React.createElement(StyledContentLeft, {
|
|
469
|
-
"data-root": true
|
|
470
|
+
"data-root": true,
|
|
471
|
+
isClear: clear,
|
|
472
|
+
isDefaultView: isDefaultView
|
|
470
473
|
}, contentLeft), /*#__PURE__*/ React.createElement(InputLabelWrapper, {
|
|
471
474
|
tabIndex: -1,
|
|
472
475
|
ref: contentRef,
|
|
@@ -586,6 +589,10 @@ export var textFieldConfig = {
|
|
|
586
589
|
size: {
|
|
587
590
|
css: sizeCSS
|
|
588
591
|
},
|
|
592
|
+
clear: {
|
|
593
|
+
css: clearCSS,
|
|
594
|
+
attrs: true
|
|
595
|
+
},
|
|
589
596
|
disabled: {
|
|
590
597
|
css: disabledCSS,
|
|
591
598
|
attrs: true
|
|
@@ -8,13 +8,13 @@ var mergedConfig = mergeConfig(tooltipConfig);
|
|
|
8
8
|
var Tooltip = component(mergedConfig);
|
|
9
9
|
export var InputWrapper = styled.div.withConfig({
|
|
10
10
|
displayName: "TextField.styles__InputWrapper",
|
|
11
|
-
componentId: "sc-
|
|
11
|
+
componentId: "sc-a8826f8a-0"
|
|
12
12
|
})([
|
|
13
13
|
"position:relative;display:flex;align-items:center;box-sizing:border-box;"
|
|
14
14
|
]);
|
|
15
15
|
export var InputLabelWrapper = styled.div.withConfig({
|
|
16
16
|
displayName: "TextField.styles__InputLabelWrapper",
|
|
17
|
-
componentId: "sc-
|
|
17
|
+
componentId: "sc-a8826f8a-1"
|
|
18
18
|
})([
|
|
19
19
|
"flex:1;overflow:scroll;position:relative;width:100%;display:inline-flex;align-items:center;::-webkit-scrollbar{display:none;}scrollbar-width:none;overscroll-behavior:contain;&.",
|
|
20
20
|
"{height:var(",
|
|
@@ -23,7 +23,7 @@ export var InputLabelWrapper = styled.div.withConfig({
|
|
|
23
23
|
], String(classes.hasChips), tokens.chipHeight, tokens.chipBorderRadius);
|
|
24
24
|
export var StyledChips = styled.div.withConfig({
|
|
25
25
|
displayName: "TextField.styles__StyledChips",
|
|
26
|
-
componentId: "sc-
|
|
26
|
+
componentId: "sc-a8826f8a-2"
|
|
27
27
|
})([
|
|
28
28
|
"display:flex;gap:var(",
|
|
29
29
|
");margin-right:var(",
|
|
@@ -32,7 +32,7 @@ export var StyledChips = styled.div.withConfig({
|
|
|
32
32
|
], tokens.chipGap, tokens.chipMarginRight, tokens.chipGap);
|
|
33
33
|
export var Input = styled.input.withConfig({
|
|
34
34
|
displayName: "TextField.styles__Input",
|
|
35
|
-
componentId: "sc-
|
|
35
|
+
componentId: "sc-a8826f8a-3"
|
|
36
36
|
})([
|
|
37
37
|
"box-sizing:border-box;appearance:none;border:0;padding:0;background-color:transparent;outline:none;width:100%;z-index:1;&.",
|
|
38
38
|
"{",
|
|
@@ -40,7 +40,7 @@ export var Input = styled.input.withConfig({
|
|
|
40
40
|
], classes.inputTextEllipsis, applyEllipsis());
|
|
41
41
|
export var InputContainer = styled.div.withConfig({
|
|
42
42
|
displayName: "TextField.styles__InputContainer",
|
|
43
|
-
componentId: "sc-
|
|
43
|
+
componentId: "sc-a8826f8a-4"
|
|
44
44
|
})([
|
|
45
45
|
"position:relative;display:flex;flex:1;min-width:",
|
|
46
46
|
";",
|
|
@@ -55,7 +55,7 @@ export var InputContainer = styled.div.withConfig({
|
|
|
55
55
|
});
|
|
56
56
|
export var InputPlaceholder = styled.div.withConfig({
|
|
57
57
|
displayName: "TextField.styles__InputPlaceholder",
|
|
58
|
-
componentId: "sc-
|
|
58
|
+
componentId: "sc-a8826f8a-5"
|
|
59
59
|
})([
|
|
60
60
|
"display:flex;position:absolute;top:0;left:0;right:0;bottom:0;z-index:0;white-space:nowrap;pointer-events:none;user-select:none;font:inherit;letter-spacing:inherit;line-height:inherit;color:var(",
|
|
61
61
|
");padding:",
|
|
@@ -66,7 +66,7 @@ export var InputPlaceholder = styled.div.withConfig({
|
|
|
66
66
|
});
|
|
67
67
|
export var InputPlaceholderValue = styled.div.withConfig({
|
|
68
68
|
displayName: "TextField.styles__InputPlaceholderValue",
|
|
69
|
-
componentId: "sc-
|
|
69
|
+
componentId: "sc-a8826f8a-6"
|
|
70
70
|
})([
|
|
71
71
|
"&.",
|
|
72
72
|
"{",
|
|
@@ -74,7 +74,7 @@ export var InputPlaceholderValue = styled.div.withConfig({
|
|
|
74
74
|
], classes.inputTextEllipsis, applyEllipsis());
|
|
75
75
|
export var OuterLabelWrapper = styled.div.withConfig({
|
|
76
76
|
displayName: "TextField.styles__OuterLabelWrapper",
|
|
77
|
-
componentId: "sc-
|
|
77
|
+
componentId: "sc-a8826f8a-7"
|
|
78
78
|
})([
|
|
79
79
|
"display:flex;align-items:center;white-space:",
|
|
80
80
|
";margin-bottom:",
|
|
@@ -88,43 +88,44 @@ export var OuterLabelWrapper = styled.div.withConfig({
|
|
|
88
88
|
});
|
|
89
89
|
export var TitleCaption = styled.div.withConfig({
|
|
90
90
|
displayName: "TextField.styles__TitleCaption",
|
|
91
|
-
componentId: "sc-
|
|
91
|
+
componentId: "sc-a8826f8a-8"
|
|
92
92
|
})([
|
|
93
93
|
"display:inline-block;margin-left:auto;"
|
|
94
94
|
]);
|
|
95
95
|
export var StyledIndicatorWrapper = styled.div.withConfig({
|
|
96
96
|
displayName: "TextField.styles__StyledIndicatorWrapper",
|
|
97
|
-
componentId: "sc-
|
|
97
|
+
componentId: "sc-a8826f8a-9"
|
|
98
98
|
})([
|
|
99
99
|
"position:relative;display:inline-flex;align-items:center;"
|
|
100
100
|
]);
|
|
101
101
|
export var Label = styled.label.withConfig({
|
|
102
102
|
displayName: "TextField.styles__Label",
|
|
103
|
-
componentId: "sc-
|
|
103
|
+
componentId: "sc-a8826f8a-10"
|
|
104
104
|
})([
|
|
105
105
|
"display:inline-flex;"
|
|
106
106
|
]);
|
|
107
107
|
export var StyledContentLeft = styled.div.withConfig({
|
|
108
108
|
displayName: "TextField.styles__StyledContentLeft",
|
|
109
|
-
componentId: "sc-
|
|
109
|
+
componentId: "sc-a8826f8a-11"
|
|
110
110
|
})([
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
");line-height:0;&:hover{color:var(",
|
|
114
|
-
",var(",
|
|
115
|
-
"));}
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
111
|
+
"--private_content-slot-color:",
|
|
112
|
+
";margin:var(",
|
|
113
|
+
");color:var(--private_content-slot-color);line-height:0;&:hover{color:var(",
|
|
114
|
+
",var(--private_content-slot-color));}&:active{color:var(",
|
|
115
|
+
",var(--private_content-slot-color));}"
|
|
116
|
+
], function(param) {
|
|
117
|
+
var isDefaultView = param.isDefaultView, isClear = param.isClear;
|
|
118
|
+
return !isDefaultView && isClear ? "var(".concat(tokens.clearColor, ")") : "var(".concat(tokens.contentSlotColor, ")");
|
|
119
|
+
}, tokens.leftContentMargin, tokens.contentSlotColorHover, tokens.contentSlotColorActive);
|
|
119
120
|
export var StyledContentRightWrapper = styled.div.withConfig({
|
|
120
121
|
displayName: "TextField.styles__StyledContentRightWrapper",
|
|
121
|
-
componentId: "sc-
|
|
122
|
+
componentId: "sc-a8826f8a-12"
|
|
122
123
|
})([
|
|
123
124
|
"display:flex;align-items:center;"
|
|
124
125
|
]);
|
|
125
126
|
export var StyledContentRight = styled.div.withConfig({
|
|
126
127
|
displayName: "TextField.styles__StyledContentRight",
|
|
127
|
-
componentId: "sc-
|
|
128
|
+
componentId: "sc-a8826f8a-13"
|
|
128
129
|
})([
|
|
129
130
|
"line-height:0;margin:var(",
|
|
130
131
|
");color:var(",
|
|
@@ -137,13 +138,13 @@ export var StyledContentRight = styled.div.withConfig({
|
|
|
137
138
|
], tokens.rightContentMargin, tokens.contentSlotRightColor, tokens.contentSlotColor, tokens.contentSlotRightColorHover, tokens.contentSlotColorHover, tokens.contentSlotRightColorActive, tokens.contentSlotColorActive);
|
|
138
139
|
export var LeftHelper = styled.div.withConfig({
|
|
139
140
|
displayName: "TextField.styles__LeftHelper",
|
|
140
|
-
componentId: "sc-
|
|
141
|
+
componentId: "sc-a8826f8a-14"
|
|
141
142
|
})([
|
|
142
143
|
""
|
|
143
144
|
]);
|
|
144
145
|
export var StyledTextBefore = styled.div.withConfig({
|
|
145
146
|
displayName: "TextField.styles__StyledTextBefore",
|
|
146
|
-
componentId: "sc-
|
|
147
|
+
componentId: "sc-a8826f8a-15"
|
|
147
148
|
})([
|
|
148
149
|
"visibility:",
|
|
149
150
|
";"
|
|
@@ -153,20 +154,20 @@ export var StyledTextBefore = styled.div.withConfig({
|
|
|
153
154
|
});
|
|
154
155
|
export var StyledTextAfter = styled.div.withConfig({
|
|
155
156
|
displayName: "TextField.styles__StyledTextAfter",
|
|
156
|
-
componentId: "sc-
|
|
157
|
+
componentId: "sc-a8826f8a-16"
|
|
157
158
|
})([
|
|
158
159
|
""
|
|
159
160
|
]);
|
|
160
161
|
export var StyledOptionalText = styled.span.withConfig({
|
|
161
162
|
displayName: "TextField.styles__StyledOptionalText",
|
|
162
|
-
componentId: "sc-
|
|
163
|
+
componentId: "sc-a8826f8a-17"
|
|
163
164
|
})([
|
|
164
165
|
"color:var(",
|
|
165
166
|
");"
|
|
166
167
|
], tokens.optionalColor);
|
|
167
168
|
export var StyledHintWrapper = styled.div.withConfig({
|
|
168
169
|
displayName: "TextField.styles__StyledHintWrapper",
|
|
169
|
-
componentId: "sc-
|
|
170
|
+
componentId: "sc-a8826f8a-18"
|
|
170
171
|
})([
|
|
171
172
|
"display:inline-block;line-height:0;&.",
|
|
172
173
|
"{position:absolute;margin:0;inset:var(",
|
|
@@ -174,14 +175,14 @@ export var StyledHintWrapper = styled.div.withConfig({
|
|
|
174
175
|
], classes.innerLabelPlacement, tokens.hintInnerLabelPlacementOffset);
|
|
175
176
|
export var HintTargetWrapper = styled.div.withConfig({
|
|
176
177
|
displayName: "TextField.styles__HintTargetWrapper",
|
|
177
|
-
componentId: "sc-
|
|
178
|
+
componentId: "sc-a8826f8a-19"
|
|
178
179
|
})([
|
|
179
180
|
"color:var(",
|
|
180
181
|
");display:flex;justify-content:center;align-items:center;"
|
|
181
182
|
], tokens.hintIconColor);
|
|
182
183
|
export var Hint = styled(Tooltip).withConfig({
|
|
183
184
|
displayName: "TextField.styles__Hint",
|
|
184
|
-
componentId: "sc-
|
|
185
|
+
componentId: "sc-a8826f8a-20"
|
|
185
186
|
})([
|
|
186
187
|
"",
|
|
187
188
|
" .",
|
|
@@ -189,13 +190,13 @@ export var Hint = styled(Tooltip).withConfig({
|
|
|
189
190
|
], HintTargetWrapper, popoverClasses.root);
|
|
190
191
|
export var HintIconWrapper = styled.div.withConfig({
|
|
191
192
|
displayName: "TextField.styles__HintIconWrapper",
|
|
192
|
-
componentId: "sc-
|
|
193
|
+
componentId: "sc-a8826f8a-21"
|
|
193
194
|
})([
|
|
194
195
|
"display:flex;"
|
|
195
196
|
]);
|
|
196
197
|
export var StyledIndicator = styled.div.withConfig({
|
|
197
198
|
displayName: "TextField.styles__StyledIndicator",
|
|
198
|
-
componentId: "sc-
|
|
199
|
+
componentId: "sc-a8826f8a-22"
|
|
199
200
|
})([
|
|
200
201
|
"position:absolute;border-radius:50%;background-color:var(",
|
|
201
202
|
");&.",
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { css } from "styled-components";
|
|
2
|
+
import { classes, tokens } from "../../TextField.tokens";
|
|
3
|
+
import { Input, InputPlaceholder, InputWrapper, OuterLabelWrapper, StyledContentLeft, StyledContentRight, StyledHintWrapper, StyledIndicator } from "../../TextField.styles";
|
|
4
|
+
export var base = css([
|
|
5
|
+
"&.",
|
|
6
|
+
"{&[readonly] ",
|
|
7
|
+
",",
|
|
8
|
+
"{background-color:unset;box-shadow:none;border-radius:0;padding-left:0;padding-right:0;&:hover{background-color:unset;}}",
|
|
9
|
+
"{margin-left:0;}",
|
|
10
|
+
"{margin-right:0;}&.",
|
|
11
|
+
"{",
|
|
12
|
+
"{margin-bottom:var(",
|
|
13
|
+
");}}",
|
|
14
|
+
"{color:var(",
|
|
15
|
+
");}",
|
|
16
|
+
"{color:var(",
|
|
17
|
+
");}",
|
|
18
|
+
"{&.",
|
|
19
|
+
"{inset:var(",
|
|
20
|
+
");&.",
|
|
21
|
+
"{inset:var(",
|
|
22
|
+
");}}}&.",
|
|
23
|
+
"{",
|
|
24
|
+
"{&.",
|
|
25
|
+
"{inset:var(",
|
|
26
|
+
");}}",
|
|
27
|
+
"{&.",
|
|
28
|
+
".",
|
|
29
|
+
"{inset:var(",
|
|
30
|
+
");}}}&.",
|
|
31
|
+
"{",
|
|
32
|
+
"{--plasma_private-textfield-divider-color:var(",
|
|
33
|
+
");&:before{content:'';position:absolute;height:0.063rem;width:100%;bottom:0;left:0;background-color:var(--plasma_private-textfield-divider-color);transition:background-color 0.1s ease-in;}}&:not([readonly]) ",
|
|
34
|
+
":hover{--plasma_private-textfield-divider-color:var( ",
|
|
35
|
+
",var(",
|
|
36
|
+
") );}&:not([readonly]) ",
|
|
37
|
+
":focus-within{--plasma_private-textfield-divider-color:var( ",
|
|
38
|
+
",var(",
|
|
39
|
+
") );",
|
|
40
|
+
"{color:var(",
|
|
41
|
+
");}}}}"
|
|
42
|
+
], classes.clear, InputWrapper, InputWrapper, StyledContentLeft, StyledContentRight, classes.outerLabelPlacement, OuterLabelWrapper, tokens.clearLabelOffset, Input, tokens.clearColor, InputPlaceholder, tokens.clearPlaceholderColor, StyledIndicator, classes.innerLabelPlacement, tokens.clearIndicatorLabelPlacementInner, classes.requiredAlignRight, tokens.clearIndicatorLabelPlacementInnerRight, classes.hasHint, StyledHintWrapper, classes.innerLabelPlacement, tokens.clearHintInnerLabelPlacementOffset, StyledIndicator, classes.innerLabelPlacement, classes.requiredAlignRight, tokens.clearIndicatorHintInnerRight, classes.hasDivider, InputWrapper, String(tokens.dividerColor), InputWrapper, tokens.dividerColorHover, String(tokens.dividerColor), InputWrapper, tokens.dividerColorFocus, String(tokens.dividerColor), InputPlaceholder, tokens.clearPlaceholderColorFocus);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { css } from "styled-components";
|
|
2
2
|
import { classes, tokens } from "../../TextField.tokens";
|
|
3
|
-
import { Input, InputContainer, Label
|
|
3
|
+
import { Input, InputContainer, Label } from "../../TextField.styles";
|
|
4
4
|
export var base = css([
|
|
5
5
|
"&.",
|
|
6
6
|
"{",
|
|
@@ -28,9 +28,7 @@ export var base = css([
|
|
|
28
28
|
");}",
|
|
29
29
|
"{color:var(",
|
|
30
30
|
");pointer-events:none;position:absolute;top:0;display:flex;align-items:center;box-sizing:border-box;height:100%;width:100%;}&.",
|
|
31
|
-
"
|
|
32
|
-
"{
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
");}}}}"
|
|
36
|
-
], classes.outerLabelPlacement, Label, tokens.labelColor, classes.innerLabelPlacement, InputContainer, tokens.contentLabelInnerPadding, Input, classes.readOnlyInput, Label, Input, classes.hasValue, Label, Input, classes.keepPlaceholder, Label, tokens.placeholderColor, tokens.labelInnerPadding, tokens.labelInnerFontFamily, tokens.labelInnerFontSize, tokens.labelInnerFontStyle, tokens.labelInnerFontWeight, tokens.labelInnerLetterSpacing, tokens.labelInnerLineHeight, Label, tokens.placeholderColor, classes.hasHint, StyledIndicator, classes.innerLabelPlacement, classes.requiredAlignRight, tokens.clearIndicatorHintInnerRight);
|
|
31
|
+
" ",
|
|
32
|
+
"{color:var(",
|
|
33
|
+
");}}"
|
|
34
|
+
], classes.outerLabelPlacement, Label, tokens.labelColor, classes.innerLabelPlacement, InputContainer, tokens.contentLabelInnerPadding, Input, classes.readOnlyInput, Label, Input, classes.hasValue, Label, Input, classes.keepPlaceholder, Label, tokens.placeholderColor, tokens.labelInnerPadding, tokens.labelInnerFontFamily, tokens.labelInnerFontSize, tokens.labelInnerFontStyle, tokens.labelInnerFontWeight, tokens.labelInnerLetterSpacing, tokens.labelInnerLineHeight, Label, tokens.placeholderColor, classes.clear, Label, tokens.clearPlaceholderColor);
|
|
@@ -2,14 +2,15 @@ import { css } from "styled-components";
|
|
|
2
2
|
import { classes, tokens } from "../../TextField.tokens";
|
|
3
3
|
import { Input, InputPlaceholder, InputWrapper, Label, LeftHelper, StyledContentLeft, StyledContentRight, TitleCaption } from "../../TextField.styles";
|
|
4
4
|
export var base = css([
|
|
5
|
-
"&[readonly]{",
|
|
5
|
+
"&[readonly]{:not(&.",
|
|
6
|
+
"){",
|
|
6
7
|
"{position:relative;z-index:0;color:var(",
|
|
7
8
|
");background:transparent;box-shadow:none;:before{position:absolute;content:'';top:0;left:0;right:0;bottom:0;border-radius:var(",
|
|
8
9
|
");background-color:var(",
|
|
9
10
|
");opacity:var(",
|
|
10
11
|
");box-shadow:inset 0 0 0 var(",
|
|
11
12
|
") var(",
|
|
12
|
-
");z-index:-1;}:hover{background-color:transparent;}}&.",
|
|
13
|
+
");z-index:-1;}:hover{background-color:transparent;}}}&.",
|
|
13
14
|
" ",
|
|
14
15
|
"{&:before{background-color:var(",
|
|
15
16
|
");}}",
|
|
@@ -33,4 +34,4 @@ export var base = css([
|
|
|
33
34
|
" ",
|
|
34
35
|
"{color:var(",
|
|
35
36
|
");}}"
|
|
36
|
-
], InputWrapper, tokens.colorReadOnly, tokens.borderRadius, tokens.backgroundColorReadOnly, tokens.readOnlyOpacity, String(tokens.borderWidth), tokens.borderColorReadOnly, classes.hasDivider, InputWrapper, String(tokens.dividerColorReadOnly), InputWrapper, InputPlaceholder, InputPlaceholder, tokens.placeholderColorReadOnly, Input, tokens.colorReadOnly, TitleCaption, tokens.titleCaptionColorReadOnly, LeftHelper, tokens.leftHelperColorReadOnly, StyledContentLeft, StyledContentRight, tokens.contentSlotRightOpacityReadOnly, StyledContentRight, StyledContentRight, tokens.contentSlotRightColor, tokens.contentSlotColor, classes.outerLabelPlacement, Label, tokens.labelColorReadOnly);
|
|
37
|
+
], classes.clear, InputWrapper, tokens.colorReadOnly, tokens.borderRadius, tokens.backgroundColorReadOnly, tokens.readOnlyOpacity, String(tokens.borderWidth), tokens.borderColorReadOnly, classes.hasDivider, InputWrapper, String(tokens.dividerColorReadOnly), InputWrapper, InputPlaceholder, InputPlaceholder, tokens.placeholderColorReadOnly, Input, tokens.colorReadOnly, TitleCaption, tokens.titleCaptionColorReadOnly, LeftHelper, tokens.leftHelperColorReadOnly, StyledContentLeft, StyledContentRight, tokens.contentSlotRightOpacityReadOnly, StyledContentRight, StyledContentRight, tokens.contentSlotRightColor, tokens.contentSlotColor, classes.outerLabelPlacement, Label, tokens.labelColorReadOnly);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css } from "styled-components";
|
|
2
|
-
import {
|
|
2
|
+
import { tokens } from "../../TextField.tokens";
|
|
3
3
|
import { Input, InputPlaceholder, InputWrapper, LeftHelper, StyledTextAfter, StyledTextBefore, TitleCaption } from "../../TextField.styles";
|
|
4
4
|
export var base = css([
|
|
5
5
|
"",
|
|
@@ -33,16 +33,5 @@ export var base = css([
|
|
|
33
33
|
"{color:var(",
|
|
34
34
|
");}",
|
|
35
35
|
"{color:var(",
|
|
36
|
-
");}
|
|
37
|
-
|
|
38
|
-
"{--plasma_private-textfield-divider-color:var(",
|
|
39
|
-
");&:before{content:'';position:absolute;height:0.063rem;width:100%;bottom:0;left:0;background-color:var(--plasma_private-textfield-divider-color);transition:background-color 0.1s ease-in;}}&:not([readonly]) ",
|
|
40
|
-
":hover{--plasma_private-textfield-divider-color:var( ",
|
|
41
|
-
",var(",
|
|
42
|
-
") );}&:not([readonly]) ",
|
|
43
|
-
":focus-within{--plasma_private-textfield-divider-color:var( ",
|
|
44
|
-
",var(",
|
|
45
|
-
") );",
|
|
46
|
-
"{color:var(",
|
|
47
|
-
");}}}"
|
|
48
|
-
], InputWrapper, String(tokens.borderColor), String(tokens.backgroundColor), tokens.color, tokens.borderWidth, tokens.boxShadow, tokens.caretColor, InputWrapper, tokens.borderColorHover, String(tokens.borderColor), tokens.backgroundColorHover, String(tokens.backgroundColor), Input, tokens.color, InputPlaceholder, tokens.placeholderColor, InputWrapper, tokens.borderColorFocus, String(tokens.borderColor), tokens.backgroundColorFocus, String(tokens.backgroundColor), InputPlaceholder, tokens.placeholderColorFocus, TitleCaption, tokens.titleCaptionColor, LeftHelper, tokens.leftHelperColor, StyledTextBefore, tokens.textBeforeColor, StyledTextAfter, tokens.textAfterColor, classes.hasDivider, InputWrapper, String(tokens.dividerColor), InputWrapper, tokens.dividerColorHover, String(tokens.dividerColor), InputWrapper, tokens.dividerColorFocus, String(tokens.dividerColor), InputPlaceholder, tokens.clearPlaceholderColorFocus);
|
|
36
|
+
");}"
|
|
37
|
+
], InputWrapper, String(tokens.borderColor), String(tokens.backgroundColor), tokens.color, tokens.borderWidth, tokens.boxShadow, tokens.caretColor, InputWrapper, tokens.borderColorHover, String(tokens.borderColor), tokens.backgroundColorHover, String(tokens.backgroundColor), Input, tokens.color, InputPlaceholder, tokens.placeholderColor, InputWrapper, tokens.borderColorFocus, String(tokens.borderColor), tokens.backgroundColorFocus, String(tokens.backgroundColor), InputPlaceholder, tokens.placeholderColorFocus, TitleCaption, tokens.titleCaptionColor, LeftHelper, tokens.leftHelperColor, StyledTextBefore, tokens.textBeforeColor, StyledTextAfter, tokens.textAfterColor);
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { component, mergeConfig } from "../../../engines";
|
|
2
|
-
import { comboboxNewConfig } from "../../..";
|
|
3
|
-
import { config } from "./Combobox.config";
|
|
4
|
-
var mergedConfig = mergeConfig(comboboxNewConfig, config);
|
|
5
|
-
var ComboboxComponent = component(mergedConfig);
|
|
6
|
-
var Combobox = ComboboxComponent;
|
|
7
|
-
export { Combobox };
|