@salutejs/sdds-insol 0.326.0-canary.2370.19885960439.0 → 0.326.0-canary.2371.19919666002.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.
Files changed (29) hide show
  1. package/components/Mask/Mask.css +44 -21
  2. package/components/Mask/Mask.d.ts +16 -32
  3. package/components/TextField/TextField.clear.config.d.ts +47 -0
  4. package/components/TextField/TextField.clear.config.js +55 -0
  5. package/components/TextField/TextField.clear.config.js.map +1 -0
  6. package/components/TextField/TextField.clear.config_jojjwe.css +22 -0
  7. package/components/TextField/TextField.config.js +1 -1
  8. package/components/TextField/TextField.config.js.map +1 -1
  9. package/components/TextField/{TextField.config_1j14kt5.css → TextField.config_wwkd4j.css} +4 -4
  10. package/components/TextField/TextField.d.ts +1014 -54
  11. package/components/TextField/TextField.js +14 -18
  12. package/components/TextField/TextField.js.map +1 -1
  13. package/es/components/Mask/Mask.css +44 -21
  14. package/es/components/TextField/TextField.clear.config.js +51 -0
  15. package/es/components/TextField/TextField.clear.config.js.map +1 -0
  16. package/es/components/TextField/TextField.clear.config_jojjwe.css +22 -0
  17. package/es/components/TextField/TextField.config.js +1 -1
  18. package/es/components/TextField/TextField.config.js.map +1 -1
  19. package/es/components/TextField/{TextField.config_1j14kt5.css → TextField.config_wwkd4j.css} +4 -4
  20. package/es/components/TextField/TextField.js +14 -16
  21. package/es/components/TextField/TextField.js.map +1 -1
  22. package/es/index.css +46 -23
  23. package/package.json +7 -7
  24. package/styled-components/cjs/components/TextField/TextField.clear.config.js +816 -0
  25. package/styled-components/cjs/components/TextField/TextField.config.js +4 -8
  26. package/styled-components/cjs/components/TextField/TextField.js +27 -44
  27. package/styled-components/es/components/TextField/TextField.clear.config.js +806 -0
  28. package/styled-components/es/components/TextField/TextField.config.js +4 -8
  29. package/styled-components/es/components/TextField/TextField.js +15 -40
@@ -12,7 +12,6 @@ function _templateObject() {
12
12
  var data = _tagged_template_literal([
13
13
  "\n ",
14
14
  ": var(--text-primary);\n ",
15
- ": var(--text-primary);\n ",
16
15
  ": var(--text-tertiary);\n ",
17
16
  ": var(--text-secondary);\n ",
18
17
  ": var(--text-tertiary);\n ",
@@ -49,7 +48,6 @@ function _templateObject1() {
49
48
  var data = _tagged_template_literal([
50
49
  "\n ",
51
50
  ": color-mix(in oklab, var(--text-positive) 70%, transparent);\n ",
52
- ": color-mix(in oklab, var(--text-positive) 70%, transparent);\n ",
53
51
  ": var(--text-secondary);\n ",
54
52
  ": var(--text-tertiary);\n ",
55
53
  ": var(--text-tertiary);\n ",
@@ -86,7 +84,6 @@ function _templateObject2() {
86
84
  var data = _tagged_template_literal([
87
85
  "\n ",
88
86
  ": color-mix(in oklab, var(--text-warning) 70%, transparent);\n ",
89
- ": color-mix(in oklab, var(--text-warning) 70%, transparent);\n ",
90
87
  ": var(--text-secondary);\n ",
91
88
  ": var(--text-tertiary);\n ",
92
89
  ": var(--text-tertiary);\n ",
@@ -123,7 +120,6 @@ function _templateObject3() {
123
120
  var data = _tagged_template_literal([
124
121
  "\n ",
125
122
  ": color-mix(in oklab, var(--text-negative) 70%, transparent);\n ",
126
- ": color-mix(in oklab, var(--text-negative) 70%, transparent);\n ",
127
123
  ": var(--text-secondary);\n ",
128
124
  ": var(--text-tertiary);\n ",
129
125
  ": var(--text-tertiary);\n ",
@@ -848,10 +844,10 @@ export var config = {
848
844
  },
849
845
  variations: {
850
846
  view: {
851
- default: css(_templateObject(), tokens.color, tokens.clearColor, tokens.placeholderColorFocus, tokens.clearPlaceholderColor, tokens.clearPlaceholderColorFocus, tokens.backgroundColor, tokens.backgroundColorFocus, tokens.caretColor, tokens.placeholderColor, tokens.textBeforeColor, tokens.textAfterColor, tokens.labelColor, tokens.leftHelperColor, tokens.titleCaptionColor, tokens.hintIconColor, tokens.contentSlotColor, tokens.contentSlotColorHover, tokens.contentSlotColorActive, tokens.dividerColor, tokens.dividerColorHover, tokens.dividerColorFocus, tokens.focusColor, tokens.borderColor, tokens.borderColorFocus, tokens.borderColorHover, tokens.indicatorColor, tokens.optionalColor, tokens.boxShadow),
852
- positive: css(_templateObject1(), tokens.color, tokens.clearColor, tokens.clearPlaceholderColor, tokens.placeholderColorFocus, tokens.clearPlaceholderColorFocus, tokens.backgroundColor, tokens.backgroundColorFocus, tokens.caretColor, tokens.placeholderColor, tokens.textBeforeColor, tokens.textAfterColor, tokens.labelColor, tokens.leftHelperColor, tokens.titleCaptionColor, tokens.hintIconColor, tokens.contentSlotColor, tokens.contentSlotColorHover, tokens.contentSlotColorActive, tokens.dividerColor, tokens.dividerColorHover, tokens.dividerColorFocus, tokens.focusColor, tokens.borderColor, tokens.borderColorFocus, tokens.borderColorHover, tokens.indicatorColor, tokens.optionalColor, tokens.boxShadow),
853
- warning: css(_templateObject2(), tokens.color, tokens.clearColor, tokens.clearPlaceholderColor, tokens.placeholderColorFocus, tokens.clearPlaceholderColorFocus, tokens.backgroundColor, tokens.backgroundColorFocus, tokens.caretColor, tokens.placeholderColor, tokens.textBeforeColor, tokens.textAfterColor, tokens.labelColor, tokens.leftHelperColor, tokens.titleCaptionColor, tokens.hintIconColor, tokens.contentSlotColor, tokens.contentSlotColorHover, tokens.contentSlotColorActive, tokens.dividerColor, tokens.dividerColorHover, tokens.dividerColorFocus, tokens.focusColor, tokens.borderColor, tokens.borderColorFocus, tokens.borderColorHover, tokens.indicatorColor, tokens.optionalColor, tokens.boxShadow),
854
- negative: css(_templateObject3(), tokens.color, tokens.clearColor, tokens.clearPlaceholderColor, tokens.placeholderColorFocus, tokens.clearPlaceholderColorFocus, tokens.backgroundColor, tokens.backgroundColorFocus, tokens.caretColor, tokens.placeholderColor, tokens.textBeforeColor, tokens.textAfterColor, tokens.labelColor, tokens.leftHelperColor, tokens.titleCaptionColor, tokens.hintIconColor, tokens.contentSlotColor, tokens.contentSlotColorHover, tokens.contentSlotColorActive, tokens.dividerColor, tokens.dividerColorHover, tokens.dividerColorFocus, tokens.focusColor, tokens.borderColor, tokens.borderColorFocus, tokens.borderColorHover, tokens.indicatorColor, tokens.optionalColor, tokens.boxShadow)
847
+ default: css(_templateObject(), tokens.color, tokens.placeholderColorFocus, tokens.clearPlaceholderColor, tokens.clearPlaceholderColorFocus, tokens.backgroundColor, tokens.backgroundColorFocus, tokens.caretColor, tokens.placeholderColor, tokens.textBeforeColor, tokens.textAfterColor, tokens.labelColor, tokens.leftHelperColor, tokens.titleCaptionColor, tokens.hintIconColor, tokens.contentSlotColor, tokens.contentSlotColorHover, tokens.contentSlotColorActive, tokens.dividerColor, tokens.dividerColorHover, tokens.dividerColorFocus, tokens.focusColor, tokens.borderColor, tokens.borderColorFocus, tokens.borderColorHover, tokens.indicatorColor, tokens.optionalColor, tokens.boxShadow),
848
+ positive: css(_templateObject1(), tokens.color, tokens.clearPlaceholderColor, tokens.placeholderColorFocus, tokens.clearPlaceholderColorFocus, tokens.backgroundColor, tokens.backgroundColorFocus, tokens.caretColor, tokens.placeholderColor, tokens.textBeforeColor, tokens.textAfterColor, tokens.labelColor, tokens.leftHelperColor, tokens.titleCaptionColor, tokens.hintIconColor, tokens.contentSlotColor, tokens.contentSlotColorHover, tokens.contentSlotColorActive, tokens.dividerColor, tokens.dividerColorHover, tokens.dividerColorFocus, tokens.focusColor, tokens.borderColor, tokens.borderColorFocus, tokens.borderColorHover, tokens.indicatorColor, tokens.optionalColor, tokens.boxShadow),
849
+ warning: css(_templateObject2(), tokens.color, tokens.clearPlaceholderColor, tokens.placeholderColorFocus, tokens.clearPlaceholderColorFocus, tokens.backgroundColor, tokens.backgroundColorFocus, tokens.caretColor, tokens.placeholderColor, tokens.textBeforeColor, tokens.textAfterColor, tokens.labelColor, tokens.leftHelperColor, tokens.titleCaptionColor, tokens.hintIconColor, tokens.contentSlotColor, tokens.contentSlotColorHover, tokens.contentSlotColorActive, tokens.dividerColor, tokens.dividerColorHover, tokens.dividerColorFocus, tokens.focusColor, tokens.borderColor, tokens.borderColorFocus, tokens.borderColorHover, tokens.indicatorColor, tokens.optionalColor, tokens.boxShadow),
850
+ negative: css(_templateObject3(), tokens.color, tokens.clearPlaceholderColor, tokens.placeholderColorFocus, tokens.clearPlaceholderColorFocus, tokens.backgroundColor, tokens.backgroundColorFocus, tokens.caretColor, tokens.placeholderColor, tokens.textBeforeColor, tokens.textAfterColor, tokens.labelColor, tokens.leftHelperColor, tokens.titleCaptionColor, tokens.hintIconColor, tokens.contentSlotColor, tokens.contentSlotColorHover, tokens.contentSlotColorActive, tokens.dividerColor, tokens.dividerColorHover, tokens.dividerColorFocus, tokens.focusColor, tokens.borderColor, tokens.borderColorFocus, tokens.borderColorHover, tokens.indicatorColor, tokens.optionalColor, tokens.boxShadow)
855
851
  },
856
852
  size: {
857
853
  xl: css(_templateObject4(), tokens.height, tokens.padding, tokens.paddingWithChips, tokens.borderRadius, tokens.borderWidth, tokens.leftContentMargin, tokens.rightContentMargin, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, tokens.labelOffset, tokens.clearLabelOffset, tokens.labelFontFamily, tokens.labelFontSize, tokens.labelFontStyle, tokens.labelFontWeight, tokens.labelLetterSpacing, tokens.labelLineHeight, tokens.hintMargin, tokens.hintTargetSize, tokens.hintInnerLabelPlacementOffset, tokens.clearHintInnerLabelPlacementOffset, tokens.titleCaptionInnerLabelOffset, tokens.titleCaptionFontFamily, tokens.titleCaptionFontSize, tokens.titleCaptionFontStyle, tokens.titleCaptionFontWeight, tokens.titleCaptionLetterSpacing, tokens.titleCaptionLineHeight, tokens.leftHelperOffset, tokens.leftHelperFontFamily, tokens.leftHelperFontSize, tokens.leftHelperFontStyle, tokens.leftHelperFontWeight, tokens.leftHelperLetterSpacing, tokens.leftHelperLineHeight, tokens.labelInnerPadding, tokens.contentLabelInnerPadding, tokens.textBeforeMargin, tokens.textAfterMargin, tokens.chipGap, tokens.chipMarginRight, tokens.chipBorderRadius, tokens.chipWidth, tokens.chipHeight, tokens.chipPadding, tokens.chipClearContentMarginLeft, tokens.chipClearContentMarginRight, tokens.chipCloseIconSize, tokens.chipFontFamily, tokens.chipFontSize, tokens.chipFontStyle, tokens.chipFontWeight, tokens.chipLetterSpacing, tokens.chipLineHeight, tokens.labelInnerFontFamily, tokens.labelInnerFontSize, tokens.labelInnerFontStyle, tokens.labelInnerFontWeight, tokens.labelInnerLetterSpacing, tokens.labelInnerLineHeight, tokens.indicatorSizeInner, tokens.indicatorSizeOuter, tokens.indicatorLabelPlacementInner, tokens.indicatorLabelPlacementOuter, tokens.indicatorLabelPlacementInnerRight, tokens.indicatorLabelPlacementOuterRight, tokens.clearIndicatorLabelPlacementInner, tokens.clearIndicatorLabelPlacementInnerRight, tokens.clearIndicatorHintInnerRight),
@@ -1,41 +1,16 @@
1
- function _define_property(obj, key, value) {
2
- if (key in obj) {
3
- Object.defineProperty(obj, key, {
4
- value: value,
5
- enumerable: true,
6
- configurable: true,
7
- writable: true
8
- });
9
- } else {
10
- obj[key] = value;
11
- }
12
- return obj;
13
- }
14
- function _object_spread(target) {
15
- for(var i = 1; i < arguments.length; i++){
16
- var source = arguments[i] != null ? arguments[i] : {};
17
- var ownKeys = Object.keys(source);
18
- if (typeof Object.getOwnPropertySymbols === "function") {
19
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
20
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
21
- }));
22
- }
23
- ownKeys.forEach(function(key) {
24
- _define_property(target, key, source[key]);
25
- });
26
- }
27
- return target;
28
- }
29
- import React from 'react';
30
- import { textFieldConfig, component, mergeConfig, fixedForwardRef } from '@salutejs/plasma-new-hope/styled-components';
1
+ import { textFieldConfig, component, mergeConfig, createConditionalComponent } from '@salutejs/plasma-new-hope/styled-components';
31
2
  import { config } from './TextField.config';
32
- var mergedConfig = mergeConfig(textFieldConfig, config);
33
- var TextFieldComponent = component(mergedConfig);
34
- var TexFieldWithTypes = function(props, ref) {
35
- return /*#__PURE__*/ React.createElement(TextFieldComponent, _object_spread({
36
- ref: ref
37
- }, props));
38
- };
39
- /**
40
- * Поле ввода текста.
41
- */ export var TextField = fixedForwardRef(TexFieldWithTypes);
3
+ import { config as clearConfig } from './TextField.clear.config';
4
+ var mergedConfigDefault = mergeConfig(textFieldConfig, config);
5
+ export var TextFieldDefault = component(mergedConfigDefault);
6
+ var mergedConfigClear = mergeConfig(textFieldConfig, clearConfig);
7
+ export var TextFieldClear = component(mergedConfigClear);
8
+ export var TextField = createConditionalComponent(TextFieldDefault, [
9
+ {
10
+ conditions: {
11
+ prop: 'appearance',
12
+ value: 'clear'
13
+ },
14
+ component: TextFieldClear
15
+ }
16
+ ]);