@salutejs/plasma-new-hope 0.141.2-canary.1429.10810544899.0 → 0.142.0-canary.1421.10790809666.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (145) hide show
  1. package/cjs/components/Autocomplete/Autocomplete.css +15 -16
  2. package/cjs/components/Combobox/ComboboxNew/Combobox.css +15 -16
  3. package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.css +15 -16
  4. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +15 -16
  5. package/cjs/components/DatePicker/RangeDate/RangeDate.css +15 -16
  6. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +15 -16
  7. package/cjs/components/DatePicker/SingleDate/SingleDate.css +15 -16
  8. package/cjs/components/Range/Range.css +15 -16
  9. package/cjs/components/Slider/Slider.css +15 -16
  10. package/cjs/components/Slider/components/Double/Double.css +15 -16
  11. package/cjs/components/TextArea/TextArea.js +4 -2
  12. package/cjs/components/TextArea/TextArea.js.map +1 -1
  13. package/cjs/components/TextField/TextField.js +1 -1
  14. package/cjs/components/TextField/TextField.js.map +1 -1
  15. package/cjs/components/TextField/TextField.styles.js +11 -22
  16. package/cjs/components/TextField/TextField.styles.js.map +1 -1
  17. package/cjs/components/TextField/{TextField.styles_ht6ibd.css → TextField.styles_u6pm7v.css} +4 -5
  18. package/cjs/components/TextField/TextField.tokens.js +1 -5
  19. package/cjs/components/TextField/TextField.tokens.js.map +1 -1
  20. package/cjs/components/TextField/variations/_label-placement/base.js +1 -1
  21. package/{es/components/TextField/variations/_label-placement/base_6k17xp.css → cjs/components/TextField/variations/_label-placement/base_1dbnupp.css} +1 -1
  22. package/cjs/components/TextField/variations/_read-only/base.js +1 -1
  23. package/{es/components/TextField/variations/_read-only/base_8onybn.css → cjs/components/TextField/variations/_read-only/base_4tqave.css} +1 -1
  24. package/cjs/components/TextField/variations/_size/base.js +1 -1
  25. package/{es/components/TextField/variations/_size/base_1h8l0kj.css → cjs/components/TextField/variations/_size/base_uk56yo.css} +1 -1
  26. package/cjs/components/TextField/variations/_view/base.js +1 -1
  27. package/cjs/components/TextField/variations/_view/{base_1ph5cr0.css → base_uszjx8.css} +1 -1
  28. package/cjs/index.css +15 -16
  29. package/cjs/index.js +3 -0
  30. package/cjs/index.js.map +1 -1
  31. package/cjs/utils/index.js.map +1 -1
  32. package/cjs/utils/setRefList.js +28 -0
  33. package/cjs/utils/setRefList.js.map +1 -0
  34. package/emotion/cjs/components/TextArea/TextArea.js +4 -3
  35. package/emotion/cjs/components/TextField/TextField.js +2 -2
  36. package/emotion/cjs/components/TextField/TextField.styles.js +23 -27
  37. package/emotion/cjs/components/TextField/TextField.template-doc.mdx +2 -2
  38. package/emotion/cjs/components/TextField/TextField.tokens.js +1 -5
  39. package/emotion/cjs/components/TextFieldGroup/TextFieldGroup.template-doc.mdx +1 -1
  40. package/emotion/cjs/examples/plasma_b2c/components/Form/Form.stories.tsx +68 -0
  41. package/emotion/cjs/examples/plasma_b2c/components/TextField/TextField.config.js +12 -12
  42. package/emotion/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +2 -3
  43. package/emotion/cjs/examples/plasma_web/components/TextField/TextField.config.js +12 -12
  44. package/emotion/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +1 -2
  45. package/emotion/cjs/utils/index.js +15 -0
  46. package/emotion/cjs/utils/setRefList.js +27 -0
  47. package/emotion/es/components/TextArea/TextArea.js +5 -4
  48. package/emotion/es/components/TextField/TextField.js +2 -2
  49. package/emotion/es/components/TextField/TextField.styles.js +23 -27
  50. package/emotion/es/components/TextField/TextField.template-doc.mdx +2 -2
  51. package/emotion/es/components/TextField/TextField.tokens.js +1 -5
  52. package/emotion/es/components/TextFieldGroup/TextFieldGroup.template-doc.mdx +1 -1
  53. package/emotion/es/examples/plasma_b2c/components/Form/Form.stories.tsx +68 -0
  54. package/emotion/es/examples/plasma_b2c/components/TextField/TextField.config.js +12 -12
  55. package/emotion/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +2 -3
  56. package/emotion/es/examples/plasma_web/components/TextField/TextField.config.js +12 -12
  57. package/emotion/es/examples/plasma_web/components/TextField/TextField.stories.tsx +1 -2
  58. package/emotion/es/utils/index.js +1 -0
  59. package/emotion/es/utils/setRefList.js +20 -0
  60. package/es/components/Autocomplete/Autocomplete.css +15 -16
  61. package/es/components/Combobox/ComboboxNew/Combobox.css +15 -16
  62. package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.css +15 -16
  63. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +15 -16
  64. package/es/components/DatePicker/RangeDate/RangeDate.css +15 -16
  65. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +15 -16
  66. package/es/components/DatePicker/SingleDate/SingleDate.css +15 -16
  67. package/es/components/Range/Range.css +15 -16
  68. package/es/components/Slider/Slider.css +15 -16
  69. package/es/components/Slider/components/Double/Double.css +15 -16
  70. package/es/components/TextArea/TextArea.js +4 -2
  71. package/es/components/TextArea/TextArea.js.map +1 -1
  72. package/es/components/TextField/TextField.js +1 -1
  73. package/es/components/TextField/TextField.js.map +1 -1
  74. package/es/components/TextField/TextField.styles.js +11 -22
  75. package/es/components/TextField/TextField.styles.js.map +1 -1
  76. package/es/components/TextField/{TextField.styles_ht6ibd.css → TextField.styles_u6pm7v.css} +4 -5
  77. package/es/components/TextField/TextField.tokens.js +1 -5
  78. package/es/components/TextField/TextField.tokens.js.map +1 -1
  79. package/es/components/TextField/variations/_label-placement/base.js +1 -1
  80. package/{cjs/components/TextField/variations/_label-placement/base_6k17xp.css → es/components/TextField/variations/_label-placement/base_1dbnupp.css} +1 -1
  81. package/es/components/TextField/variations/_read-only/base.js +1 -1
  82. package/{cjs/components/TextField/variations/_read-only/base_8onybn.css → es/components/TextField/variations/_read-only/base_4tqave.css} +1 -1
  83. package/es/components/TextField/variations/_size/base.js +1 -1
  84. package/{cjs/components/TextField/variations/_size/base_1h8l0kj.css → es/components/TextField/variations/_size/base_uk56yo.css} +1 -1
  85. package/es/components/TextField/variations/_view/base.js +1 -1
  86. package/es/components/TextField/variations/_view/{base_1ph5cr0.css → base_uszjx8.css} +1 -1
  87. package/es/index.css +15 -16
  88. package/es/index.js +1 -0
  89. package/es/index.js.map +1 -1
  90. package/es/utils/index.js.map +1 -1
  91. package/es/utils/setRefList.js +23 -0
  92. package/es/utils/setRefList.js.map +1 -0
  93. package/package.json +3 -2
  94. package/styled-components/cjs/components/TextArea/TextArea.js +3 -2
  95. package/styled-components/cjs/components/TextField/TextField.js +1 -1
  96. package/styled-components/cjs/components/TextField/TextField.styles.js +9 -12
  97. package/styled-components/cjs/components/TextField/TextField.template-doc.mdx +2 -2
  98. package/styled-components/cjs/components/TextField/TextField.tokens.js +1 -5
  99. package/styled-components/cjs/components/TextFieldGroup/TextFieldGroup.template-doc.mdx +1 -1
  100. package/styled-components/cjs/examples/plasma_b2c/components/Form/Form.stories.tsx +68 -0
  101. package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.config.js +4 -4
  102. package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +2 -3
  103. package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.config.js +4 -4
  104. package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +1 -2
  105. package/styled-components/cjs/utils/index.js +15 -0
  106. package/styled-components/cjs/utils/setRefList.js +27 -0
  107. package/styled-components/es/components/TextArea/TextArea.js +4 -3
  108. package/styled-components/es/components/TextField/TextField.js +1 -1
  109. package/styled-components/es/components/TextField/TextField.styles.js +9 -12
  110. package/styled-components/es/components/TextField/TextField.template-doc.mdx +2 -2
  111. package/styled-components/es/components/TextField/TextField.tokens.js +1 -5
  112. package/styled-components/es/components/TextFieldGroup/TextFieldGroup.template-doc.mdx +1 -1
  113. package/styled-components/es/examples/plasma_b2c/components/Form/Form.stories.tsx +68 -0
  114. package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.config.js +4 -4
  115. package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +2 -3
  116. package/styled-components/es/examples/plasma_web/components/TextField/TextField.config.js +4 -4
  117. package/styled-components/es/examples/plasma_web/components/TextField/TextField.stories.tsx +1 -2
  118. package/styled-components/es/utils/index.js +1 -0
  119. package/styled-components/es/utils/setRefList.js +20 -0
  120. package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts +4 -4
  121. package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts.map +1 -1
  122. package/types/components/Combobox/ComboboxNew/ui/Target/Target.styles.d.ts +4 -4
  123. package/types/components/Combobox/ComboboxNew/ui/Target/Target.styles.d.ts.map +1 -1
  124. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts +4 -4
  125. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts.map +1 -1
  126. package/types/components/Range/Range.styles.d.ts +4 -4
  127. package/types/components/Range/Range.styles.d.ts.map +1 -1
  128. package/types/components/Slider/components/Double/Double.styles.d.ts +4 -4
  129. package/types/components/Slider/components/Double/Double.styles.d.ts.map +1 -1
  130. package/types/components/TextField/TextField.styles.d.ts +2 -6
  131. package/types/components/TextField/TextField.styles.d.ts.map +1 -1
  132. package/types/components/TextField/TextField.tokens.d.ts +0 -3
  133. package/types/components/TextField/TextField.tokens.d.ts.map +1 -1
  134. package/types/components/TextField/TextField.types.d.ts +1 -2
  135. package/types/components/TextField/TextField.types.d.ts.map +1 -1
  136. package/types/examples/plasma_b2c/components/TextField/TextField.config.d.ts.map +1 -1
  137. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts +4 -4
  138. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts.map +1 -1
  139. package/types/examples/plasma_web/components/TextField/TextField.config.d.ts.map +1 -1
  140. package/types/examples/plasma_web/components/TextField/TextField.d.ts +4 -4
  141. package/types/examples/plasma_web/components/TextField/TextField.d.ts.map +1 -1
  142. package/types/utils/index.d.ts +1 -0
  143. package/types/utils/index.d.ts.map +1 -1
  144. package/types/utils/setRefList.d.ts +6 -0
  145. package/types/utils/setRefList.d.ts.map +1 -0
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.mergeRefs = mergeRefs;
7
+ exports.setRefList = setRefList;
8
+ function mergeRefs() {
9
+ for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
10
+ refs[_key] = arguments[_key];
11
+ }
12
+ return function (val) {
13
+ setRefList.apply(void 0, [val].concat(refs));
14
+ };
15
+ }
16
+ function setRefList(val) {
17
+ for (var _len2 = arguments.length, refs = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
18
+ refs[_key2 - 1] = arguments[_key2];
19
+ }
20
+ refs.forEach(function (ref) {
21
+ if (typeof ref === 'function') {
22
+ ref(val);
23
+ } else if (ref != null) {
24
+ ref.current = val;
25
+ }
26
+ });
27
+ }
@@ -21,7 +21,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
21
21
  import React, { forwardRef, useState, createRef, useCallback } from 'react';
22
22
  import { css } from 'styled-components';
23
23
  import { useResizeObserver } from '@salutejs/plasma-core';
24
- import { cx } from '../../utils';
24
+ import { cx, mergeRefs } from '../../utils';
25
25
  import { applyDynamicLabel } from './mixins';
26
26
  import { useAutoResize, ROOT_FONT_SIZE } from './hooks';
27
27
  import { StyledContent, StyledHelpers, StyledLeftHelper, StyledRightHelper, StyledLabel, StyledPlaceholder, StyledTextArea, StyledTextAreaWrapper, StyledContainer, StyledIndicator, StyledOptionalText } from './TextArea.styles';
@@ -118,7 +118,7 @@ export var textAreaRoot = function textAreaRoot(Root) {
118
118
  _useState6 = _slicedToArray(_useState5, 2),
119
119
  uncontrolledValue = _useState6[0],
120
120
  setUncontrolledValue = _useState6[1];
121
- var outerRef = innerRef && 'current' in innerRef ? innerRef : /*#__PURE__*/createRef();
121
+ var outerRef = /*#__PURE__*/createRef();
122
122
  var innerOptional = required ? false : optional;
123
123
  var hasHelper = Boolean(leftHelper || rightHelper || helperText);
124
124
  var hasOuterLabel = Boolean(label && labelPlacement === 'outer');
@@ -149,6 +149,7 @@ export var textAreaRoot = function textAreaRoot(Root) {
149
149
  if (value === undefined) {
150
150
  setUncontrolledValue(event === null || event === void 0 ? void 0 : event.target.value);
151
151
  }
152
+ console.log(event);
152
153
  onChange === null || onChange === void 0 || onChange(event);
153
154
  }, [value, onChange]);
154
155
  var dynamicLabelClasses = getDynamicLabelClasses(_objectSpread({
@@ -190,7 +191,7 @@ export var textAreaRoot = function textAreaRoot(Root) {
190
191
  hasContentRight: Boolean(contentRight),
191
192
  hasHelper: hasHelper,
192
193
  applyCustomWidth: applyCustomWidth,
193
- ref: outerRef,
194
+ ref: mergeRefs(outerRef, innerRef),
194
195
  disabled: disabled,
195
196
  height: autoResize ? minAuto : height,
196
197
  width: width,
@@ -183,7 +183,7 @@ export var textFieldRoot = function textFieldRoot(Root) {
183
183
  }, required && /*#__PURE__*/React.createElement(StyledIndicator, {
184
184
  className: cx(classes.outerLabelPlacement, requiredPlacementClass)
185
185
  }), innerLabelValue, optionalTextNode), /*#__PURE__*/React.createElement(InputWrapper
186
- // Ref для внутреннего использования. Не отдается наружу.
186
+ // Рефка для внутреннего использования. Не отдается наружу.
187
187
  , {
188
188
  ref: rest.inputWrapperRef,
189
189
  className: cx(withHasChips, wrapperWithoutLeftContent, wrapperWithoutRightContent)
@@ -21,27 +21,24 @@ export var InputPlaceholder = /*#__PURE__*/styled.div.withConfig({
21
21
  export var Label = /*#__PURE__*/styled.label.withConfig({
22
22
  componentId: "plasma-new-hope__sc-g4vxbb-6"
23
23
  })(["position:relative;display:inline-flex;"]);
24
- var StyledContentSlot = /*#__PURE__*/styled.div.withConfig({
24
+ export var StyledContentLeft = /*#__PURE__*/styled.div.withConfig({
25
25
  componentId: "plasma-new-hope__sc-g4vxbb-7"
26
- })(["color:var(", ");line-height:0;"], tokens.contentSlotColor);
27
- export var StyledContentLeft = /*#__PURE__*/styled(StyledContentSlot).withConfig({
26
+ })(["margin:var(", ");line-height:0;"], tokens.leftContentMargin);
27
+ export var StyledContentRight = /*#__PURE__*/styled.div.withConfig({
28
28
  componentId: "plasma-new-hope__sc-g4vxbb-8"
29
- })(["margin:var(", ");"], tokens.leftContentMargin);
30
- export var StyledContentRight = /*#__PURE__*/styled(StyledContentSlot).withConfig({
31
- componentId: "plasma-new-hope__sc-g4vxbb-9"
32
- })(["margin:var(", ");&:hover{color:var(", ");cursor:pointer;}&:active{color:var(", ");}"], tokens.rightContentMargin, tokens.contentSlotColorHover, tokens.contentSlotColorActive);
29
+ })(["margin:var(", ");line-height:0;"], tokens.rightContentMargin);
33
30
  export var LeftHelper = /*#__PURE__*/styled.div.withConfig({
34
- componentId: "plasma-new-hope__sc-g4vxbb-10"
31
+ componentId: "plasma-new-hope__sc-g4vxbb-9"
35
32
  })([""]);
36
33
  export var StyledTextBefore = /*#__PURE__*/styled.div.withConfig({
37
- componentId: "plasma-new-hope__sc-g4vxbb-11"
34
+ componentId: "plasma-new-hope__sc-g4vxbb-10"
38
35
  })([""]);
39
36
  export var StyledTextAfter = /*#__PURE__*/styled.div.withConfig({
40
- componentId: "plasma-new-hope__sc-g4vxbb-12"
37
+ componentId: "plasma-new-hope__sc-g4vxbb-11"
41
38
  })([""]);
42
39
  export var StyledOptionalText = /*#__PURE__*/styled.span.withConfig({
43
- componentId: "plasma-new-hope__sc-g4vxbb-13"
40
+ componentId: "plasma-new-hope__sc-g4vxbb-12"
44
41
  })(["color:var(", ");"], tokens.optionalColor);
45
42
  export var StyledIndicator = /*#__PURE__*/styled.div.withConfig({
46
- componentId: "plasma-new-hope__sc-g4vxbb-14"
43
+ componentId: "plasma-new-hope__sc-g4vxbb-13"
47
44
  })(["position:absolute;border-radius:50%;background-color:var(", ");&.", "{width:var(", ");height:var(", ");inset:var(", ");&.align-right{inset:var(", ");}}&.", "{width:var(", ");height:var(", ");inset:var(", ");&.align-right{inset:var(", ");}}"], tokens.indicatorColor, classes.outerLabelPlacement, tokens.indicatorSizeOuter, tokens.indicatorSizeOuter, tokens.indicatorLabelPlacementOuter, tokens.indicatorLabelPlacementOuterRight, classes.innerLabelPlacement, tokens.indicatorSizeInner, tokens.indicatorSizeInner, tokens.indicatorLabelPlacementInner, tokens.indicatorLabelPlacementInnerRight);
@@ -24,12 +24,12 @@ export function App() {
24
24
  <TextField
25
25
  placeholder="Положение иконки"
26
26
  defaultValue="Слева"
27
- contentLeft={<IconDownload color="inherit" />}
27
+ contentLeft={<IconDownload />}
28
28
  />
29
29
  <TextField
30
30
  placeholder="Положение иконки"
31
31
  defaultValue="Справа"
32
- contentRight={<IconDownload color="inherit" />}
32
+ contentRight={<IconDownload />}
33
33
  />
34
34
  </div>
35
35
  );
@@ -31,7 +31,7 @@ export var tokens = {
31
31
  /** Отступ от границы ТextField */
32
32
  padding: '--plasma-textfield-padding',
33
33
  paddingWithChips: '--plasma-textfield-padding-with-chips',
34
- /* Токены для input */
34
+ /* Токены для инпута */
35
35
  leftContentMargin: '--plasma-textfield__left-content-margin',
36
36
  rightContentMargin: '--plasma-textfield__right-content-margin',
37
37
  fontFamily: '--plasma-textfield-font-family',
@@ -40,10 +40,6 @@ export var tokens = {
40
40
  fontWeight: '--plasma-textfield-font-weight',
41
41
  letterSpacing: '--plasma-textfield-letter-spacing',
42
42
  lineHeight: '--plasma-textfield-line-height',
43
- /* Tokens for content slot */
44
- contentSlotColor: '--plasma-textfield-content-slot-color',
45
- contentSlotColorHover: '--plasma-textfield-content-slot-color-hover',
46
- contentSlotColorActive: '--plasma-textfield-content-slot-color-active',
47
43
  /** Токены лейбла */
48
44
  labelColor: '--plasma-textfield__label-color',
49
45
  labelColorReadOnly: '--plasma-textfield__label-color-readonly',
@@ -34,7 +34,7 @@ export function App() {
34
34
  ### Размер
35
35
  Размер TextFieldGroup задается с помощью свойства `size`.
36
36
  С помощью свойства `isCommonTextFieldStyles` можно отключить переопределение стилей для всех input внутри группы.
37
- Тогда каждый input будет иметь настраиваемый размер.
37
+ Тогда каждкаждый input будет иметь настраиваемый размер.
38
38
 
39
39
  ```tsx live
40
40
  import React from 'react';
@@ -0,0 +1,68 @@
1
+ import { useForm } from 'react-hook-form';
2
+ import React from 'react';
3
+ import type { Meta, StoryObj } from '@storybook/react';
4
+
5
+ import { WithTheme } from '../../../_helpers';
6
+ import { Button } from '../Button/Button';
7
+ import { TextField } from '../TextField/TextField';
8
+ import { TextArea } from '../TextArea/TextArea'; // TextArea.tsx 120 строка, не работает из-за некорректного ref
9
+ import { Checkbox } from '../Checkbox/Checkbox';
10
+ import { Switch } from '../Switch/Switch';
11
+ import { Radiobox } from '../Radiobox/Radiobox';
12
+ import { RadioGroup } from '../../../../components/Radiobox';
13
+
14
+ type StoryDropdownProps = {};
15
+
16
+ const langName = 'language';
17
+ const itemsRadiobox = [
18
+ { langName, value: 'c', label: 'C', disabled: false },
19
+ { langName, value: 'cpp', label: 'C++', disabled: false },
20
+ { langName, value: 'assembly', label: 'Assembly', disabled: false },
21
+ ];
22
+
23
+ const DefaultForm = () => {
24
+ const { register, handleSubmit } = useForm();
25
+ const onSubmit = (data) => {
26
+ console.log(data);
27
+ };
28
+
29
+ return (
30
+ <form onSubmit={handleSubmit(onSubmit)} style={{ display: 'flex', flexDirection: 'column', gap: '20px' }}>
31
+ <TextField {...register('textfield')} placeholder="Textfield" required={false} />
32
+ <TextArea {...register('textarea')} autoResize placeholder="Textarea" />
33
+ <Checkbox {...register('checkbox')} label="Checkbox" />
34
+ <Switch {...register('switch')} label="Switch" labelPosition="after" />
35
+ <RadioGroup aria-labelledby="radiogroup-title-id">
36
+ <div id="radiogroup-title-id" style={{ margin: '1rem 0', fontWeight: '600' }}>
37
+ Выберите язык программирования для изучения.
38
+ </div>
39
+ {itemsRadiobox.map((item) => (
40
+ <Radiobox
41
+ key={item.value}
42
+ value={item.value}
43
+ label={item.label}
44
+ disabled={item.disabled}
45
+ {...register('radiobox')}
46
+ />
47
+ ))}
48
+ </RadioGroup>
49
+ <Button type="submit">Отправить</Button>
50
+ </form>
51
+ );
52
+ };
53
+
54
+ const meta: Meta<StoryDropdownProps> = {
55
+ title: 'plasma_b2c/Form',
56
+ decorators: [WithTheme],
57
+ component: DefaultForm,
58
+ };
59
+
60
+ export default meta;
61
+
62
+ const StoryNormal = () => {
63
+ return <DefaultForm />;
64
+ };
65
+
66
+ export const Default: StoryObj<StoryDropdownProps> = {
67
+ render: () => <StoryNormal />,
68
+ };
@@ -8,10 +8,10 @@ export var config = {
8
8
  },
9
9
  variations: {
10
10
  view: {
11
- "default": /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--surface-transparent-primary);", ":var(--surface-transparent-secondary);", ":var(--text-accent);", ":var(--text-secondary);", ":var(--text-tertiary);", ":var(--text-tertiary);", ":var(--text-primary);", ":var(--text-secondary);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--text-secondary-active);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary-hover);", ":var(--text-primary);", ":var(--surface-transparent-secondary-active);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":0.72;", ":var(--text-accent);", ":var(--surface-negative);", ":var(--text-tertiary);"], tokens.color, tokens.backgroundColor, tokens.backgroundColorFocus, tokens.caretColor, tokens.placeholderColor, tokens.textBeforeColor, tokens.textAfterColor, tokens.labelColor, tokens.leftHelperColor, tokens.contentSlotColor, tokens.contentSlotColorHover, tokens.contentSlotColorActive, tokens.chipCloseIconColor, tokens.chipColor, tokens.chipBackground, tokens.chipColorHover, tokens.chipBackgroundHover, tokens.chipColorActive, tokens.chipBackgroundActive, tokens.chipBackgroundReadOnly, tokens.chipColorReadOnly, tokens.chipBackgroundReadOnlyHover, tokens.chipColorReadOnlyHover, tokens.chipOpacityReadonly, tokens.focusColor, tokens.indicatorColor, tokens.optionalColor),
12
- positive: /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--surface-transparent-positive);", ":var(--surface-transparent-positive-active);", ":var(--text-accent);", ":var(--text-secondary);", ":var(--text-tertiary);", ":var(--text-tertiary);", ":var(--text-primary);", ":var(--text-positive);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--text-secondary-active);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary-hover);", ":var(--text-primary);", ":var(--surface-transparent-secondary-active);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":0.72;", ":var(--text-accent);", ":var(--surface-negative);", ":var(--text-tertiary);"], tokens.color, tokens.backgroundColor, tokens.backgroundColorFocus, tokens.caretColor, tokens.placeholderColor, tokens.textBeforeColor, tokens.textAfterColor, tokens.labelColor, tokens.leftHelperColor, tokens.contentSlotColor, tokens.contentSlotColorHover, tokens.contentSlotColorActive, tokens.chipCloseIconColor, tokens.chipColor, tokens.chipBackground, tokens.chipColorHover, tokens.chipBackgroundHover, tokens.chipColorActive, tokens.chipBackgroundActive, tokens.chipBackgroundReadOnly, tokens.chipColorReadOnly, tokens.chipBackgroundReadOnlyHover, tokens.chipColorReadOnlyHover, tokens.chipOpacityReadonly, tokens.focusColor, tokens.indicatorColor, tokens.optionalColor),
13
- warning: /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--surface-transparent-warning);", ":var(--surface-transparent-warning-active);", ":var(--text-accent);", ":var(--text-secondary);", ":var(--text-tertiary);", ":var(--text-tertiary);", ":var(--text-primary);", ":var(--text-warning);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--text-secondary-active);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary-hover);", ":var(--text-primary);", ":var(--surface-transparent-secondary-active);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":0.72;", ":var(--text-accent);", ":var(--surface-negative);", ":var(--text-tertiary);"], tokens.color, tokens.backgroundColor, tokens.backgroundColorFocus, tokens.caretColor, tokens.placeholderColor, tokens.textBeforeColor, tokens.textAfterColor, tokens.labelColor, tokens.leftHelperColor, tokens.contentSlotColor, tokens.contentSlotColorHover, tokens.contentSlotColorActive, tokens.chipCloseIconColor, tokens.chipColor, tokens.chipBackground, tokens.chipColorHover, tokens.chipBackgroundHover, tokens.chipColorActive, tokens.chipBackgroundActive, tokens.chipBackgroundReadOnly, tokens.chipColorReadOnly, tokens.chipBackgroundReadOnlyHover, tokens.chipColorReadOnlyHover, tokens.chipOpacityReadonly, tokens.focusColor, tokens.indicatorColor, tokens.optionalColor),
14
- negative: /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--surface-transparent-negative);", ":var(--surface-transparent-negative-active);", ":var(--text-accent);", ":var(--text-secondary);", ":var(--text-tertiary);", ":var(--text-tertiary);", ":var(--text-primary);", ":var(--text-negative);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--text-secondary-active);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary-hover);", ":var(--text-primary);", ":var(--surface-transparent-secondary-active);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":0.72;", ":var(--text-accent);", ":var(--surface-negative);", ":var(--text-tertiary);"], tokens.color, tokens.backgroundColor, tokens.backgroundColorFocus, tokens.caretColor, tokens.placeholderColor, tokens.textBeforeColor, tokens.textAfterColor, tokens.labelColor, tokens.leftHelperColor, tokens.contentSlotColor, tokens.contentSlotColorHover, tokens.contentSlotColorActive, tokens.chipCloseIconColor, tokens.chipColor, tokens.chipBackground, tokens.chipColorHover, tokens.chipBackgroundHover, tokens.chipColorActive, tokens.chipBackgroundActive, tokens.chipBackgroundReadOnly, tokens.chipColorReadOnly, tokens.chipBackgroundReadOnlyHover, tokens.chipColorReadOnlyHover, tokens.chipOpacityReadonly, tokens.focusColor, tokens.indicatorColor, tokens.optionalColor)
11
+ "default": /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--surface-transparent-primary);", ":var(--surface-transparent-secondary);", ":var(--text-accent);", ":var(--text-secondary);", ":var(--text-tertiary);", ":var(--text-tertiary);", ":var(--text-primary);", ":var(--text-secondary);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary-hover);", ":var(--text-primary);", ":var(--surface-transparent-secondary-active);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":0.72;", ":var(--text-accent);", ":var(--surface-negative);", ":var(--text-tertiary);"], tokens.color, tokens.backgroundColor, tokens.backgroundColorFocus, tokens.caretColor, tokens.placeholderColor, tokens.textBeforeColor, tokens.textAfterColor, tokens.labelColor, tokens.leftHelperColor, tokens.chipCloseIconColor, tokens.chipColor, tokens.chipBackground, tokens.chipColorHover, tokens.chipBackgroundHover, tokens.chipColorActive, tokens.chipBackgroundActive, tokens.chipBackgroundReadOnly, tokens.chipColorReadOnly, tokens.chipBackgroundReadOnlyHover, tokens.chipColorReadOnlyHover, tokens.chipOpacityReadonly, tokens.focusColor, tokens.indicatorColor, tokens.optionalColor),
12
+ positive: /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--surface-transparent-positive);", ":var(--surface-transparent-positive-active);", ":var(--text-accent);", ":var(--text-secondary);", ":var(--text-tertiary);", ":var(--text-tertiary);", ":var(--text-primary);", ":var(--text-positive);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary-hover);", ":var(--text-primary);", ":var(--surface-transparent-secondary-active);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":0.72;", ":var(--text-accent);", ":var(--surface-negative);", ":var(--text-tertiary);"], tokens.color, tokens.backgroundColor, tokens.backgroundColorFocus, tokens.caretColor, tokens.placeholderColor, tokens.textBeforeColor, tokens.textAfterColor, tokens.labelColor, tokens.leftHelperColor, tokens.chipCloseIconColor, tokens.chipColor, tokens.chipBackground, tokens.chipColorHover, tokens.chipBackgroundHover, tokens.chipColorActive, tokens.chipBackgroundActive, tokens.chipBackgroundReadOnly, tokens.chipColorReadOnly, tokens.chipBackgroundReadOnlyHover, tokens.chipColorReadOnlyHover, tokens.chipOpacityReadonly, tokens.focusColor, tokens.indicatorColor, tokens.optionalColor),
13
+ warning: /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--surface-transparent-warning);", ":var(--surface-transparent-warning-active);", ":var(--text-accent);", ":var(--text-secondary);", ":var(--text-tertiary);", ":var(--text-tertiary);", ":var(--text-primary);", ":var(--text-warning);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary-hover);", ":var(--text-primary);", ":var(--surface-transparent-secondary-active);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":0.72;", ":var(--text-accent);", ":var(--surface-negative);", ":var(--text-tertiary);"], tokens.color, tokens.backgroundColor, tokens.backgroundColorFocus, tokens.caretColor, tokens.placeholderColor, tokens.textBeforeColor, tokens.textAfterColor, tokens.labelColor, tokens.leftHelperColor, tokens.chipCloseIconColor, tokens.chipColor, tokens.chipBackground, tokens.chipColorHover, tokens.chipBackgroundHover, tokens.chipColorActive, tokens.chipBackgroundActive, tokens.chipBackgroundReadOnly, tokens.chipColorReadOnly, tokens.chipBackgroundReadOnlyHover, tokens.chipColorReadOnlyHover, tokens.chipOpacityReadonly, tokens.focusColor, tokens.indicatorColor, tokens.optionalColor),
14
+ negative: /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--surface-transparent-negative);", ":var(--surface-transparent-negative-active);", ":var(--text-accent);", ":var(--text-secondary);", ":var(--text-tertiary);", ":var(--text-tertiary);", ":var(--text-primary);", ":var(--text-negative);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary-hover);", ":var(--text-primary);", ":var(--surface-transparent-secondary-active);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":0.72;", ":var(--text-accent);", ":var(--surface-negative);", ":var(--text-tertiary);"], tokens.color, tokens.backgroundColor, tokens.backgroundColorFocus, tokens.caretColor, tokens.placeholderColor, tokens.textBeforeColor, tokens.textAfterColor, tokens.labelColor, tokens.leftHelperColor, tokens.chipCloseIconColor, tokens.chipColor, tokens.chipBackground, tokens.chipColorHover, tokens.chipBackgroundHover, tokens.chipColorActive, tokens.chipBackgroundActive, tokens.chipBackgroundReadOnly, tokens.chipColorReadOnly, tokens.chipBackgroundReadOnlyHover, tokens.chipColorReadOnlyHover, tokens.chipOpacityReadonly, tokens.focusColor, tokens.indicatorColor, tokens.optionalColor)
15
15
  },
16
16
  size: {
17
17
  l: /*#__PURE__*/css(["", ":3.5rem;", ":1.0625rem 1.125rem 1.0625rem 1.125rem;", ":0.375rem;", ":0.875rem;", ":0.0625rem;", ":-0.0625rem 0.5rem -0.0625rem -0.125rem;", ":-0.0625rem -0.125rem -0.0625rem 0.75rem;", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);", ":0.75rem;", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);", ":0.25rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":0.5625rem 0 0.125rem 0;", ":1.5625rem 0 0.5625rem 0;", ":0.25rem;", ":0.5rem;", ":auto;", ":2.75rem;", ":0.75rem;", ":1rem;", ":0.625rem;", ":0rem;", ":1.5rem;", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);", ":0.5rem;", ":0.375rem;", ":0 0 0 0;", ":0.5rem auto auto -0.75rem;", ":0 0 auto auto;", ":0.25rem -0.625rem auto auto;"], 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.labelFontFamily, tokens.labelFontSize, tokens.labelFontStyle, tokens.labelFontWeight, tokens.labelLetterSpacing, tokens.labelLineHeight, tokens.leftHelperOffset, tokens.leftHelperFontFamily, tokens.leftHelperFontSize, tokens.leftHelperFontStyle, tokens.leftHelperFontWeight, tokens.leftHelperLetterSpacing, tokens.leftHelperLineHeight, tokens.labelInnerPadding, tokens.contentLabelInnerPadding, tokens.chipGap, tokens.chipBorderRadius, tokens.chipWidth, tokens.chipHeight, tokens.chipPaddingRight, tokens.chipPaddingLeft, tokens.chipClearContentMarginLeft, tokens.chipClearContentMarginRight, tokens.chipCloseIconSize, tokens.chipFontFamily, tokens.chipFontSize, tokens.chipFontStyle, tokens.chipFontWeight, tokens.chipLetterSpacing, tokens.chipLineHeight, tokens.indicatorSizeInner, tokens.indicatorSizeOuter, tokens.indicatorLabelPlacementInner, tokens.indicatorLabelPlacementOuter, tokens.indicatorLabelPlacementInnerRight, tokens.indicatorLabelPlacementOuterRight),
@@ -4,7 +4,6 @@ import { action } from '@storybook/addon-actions';
4
4
  import { IconPlaceholder } from '@salutejs/plasma-sb-utils';
5
5
 
6
6
  import { WithTheme } from '../../../_helpers';
7
- import { IconCross } from '../../../../components/_Icon';
8
7
 
9
8
  import { TextField } from './TextField';
10
9
 
@@ -104,8 +103,8 @@ const StoryDemo = ({ enableContentLeft, enableContentRight, view, ...rest }: Sto
104
103
  {...rest}
105
104
  enumerationType="plain"
106
105
  value={text}
107
- contentLeft={enableContentLeft ? <IconCross color="inherit" size={iconSize} /> : undefined}
108
- contentRight={enableContentRight ? <IconCross color="inherit" size={iconSize} /> : undefined}
106
+ contentLeft={enableContentLeft ? <IconPlaceholder size={iconSize} /> : undefined}
107
+ contentRight={enableContentRight ? <IconPlaceholder size={iconSize} /> : undefined}
109
108
  view={view}
110
109
  onChange={(e) => {
111
110
  setText(e.target.value);
@@ -8,10 +8,10 @@ export var config = {
8
8
  },
9
9
  variations: {
10
10
  view: {
11
- "default": /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--surface-clear);", ":var(--text-accent);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--text-secondary);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--text-secondary-active);", ":var(--surface-transparent-tertiary);", ":var(--text-secondary);", ":var(--surface-accent);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary-hover);", ":var(--text-primary);", ":var(--surface-transparent-secondary-active);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":0.72;", ":var(--text-accent);", ":var(--surface-negative);", ":var(--text-tertiary);"], tokens.color, tokens.backgroundColor, tokens.caretColor, tokens.placeholderColor, tokens.labelColor, tokens.leftHelperColor, tokens.contentSlotColor, tokens.contentSlotColorHover, tokens.contentSlotColorActive, tokens.borderColor, tokens.borderColorHover, tokens.borderColorFocus, tokens.chipCloseIconColor, tokens.chipColor, tokens.chipBackground, tokens.chipColorHover, tokens.chipBackgroundHover, tokens.chipColorActive, tokens.chipBackgroundActive, tokens.chipBackgroundReadOnly, tokens.chipColorReadOnly, tokens.chipBackgroundReadOnlyHover, tokens.chipColorReadOnlyHover, tokens.chipOpacityReadonly, tokens.focusColor, tokens.indicatorColor, tokens.optionalColor),
12
- positive: /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--surface-clear);", ":var(--text-accent);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--text-positive);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--text-secondary-active);", ":var(--surface-positive);", ":var(--surface-positive);", ":var(--surface-accent);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary-hover);", ":var(--text-primary);", ":var(--surface-transparent-secondary-active);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":0.72;", ":var(--text-accent);", ":var(--surface-negative);", ":var(--text-tertiary);"], tokens.color, tokens.backgroundColor, tokens.caretColor, tokens.placeholderColor, tokens.labelColor, tokens.leftHelperColor, tokens.contentSlotColor, tokens.contentSlotColorHover, tokens.contentSlotColorActive, tokens.borderColor, tokens.borderColorHover, tokens.borderColorFocus, tokens.chipCloseIconColor, tokens.chipColor, tokens.chipBackground, tokens.chipColorHover, tokens.chipBackgroundHover, tokens.chipColorActive, tokens.chipBackgroundActive, tokens.chipBackgroundReadOnly, tokens.chipColorReadOnly, tokens.chipBackgroundReadOnlyHover, tokens.chipColorReadOnlyHover, tokens.chipOpacityReadonly, tokens.focusColor, tokens.indicatorColor, tokens.optionalColor),
13
- warning: /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--surface-clear);", ":var(--text-accent);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--text-warning);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--text-secondary-active);", ":var(--surface-warning);", ":var(--surface-warning);", ":var(--surface-accent);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary-hover);", ":var(--text-primary);", ":var(--surface-transparent-secondary-active);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":0.72;", ":var(--text-accent);", ":var(--surface-negative);", ":var(--text-tertiary);"], tokens.color, tokens.backgroundColor, tokens.caretColor, tokens.placeholderColor, tokens.labelColor, tokens.leftHelperColor, tokens.contentSlotColor, tokens.contentSlotColorHover, tokens.contentSlotColorActive, tokens.borderColor, tokens.borderColorHover, tokens.borderColorFocus, tokens.chipCloseIconColor, tokens.chipColor, tokens.chipBackground, tokens.chipColorHover, tokens.chipBackgroundHover, tokens.chipColorActive, tokens.chipBackgroundActive, tokens.chipBackgroundReadOnly, tokens.chipColorReadOnly, tokens.chipBackgroundReadOnlyHover, tokens.chipColorReadOnlyHover, tokens.chipOpacityReadonly, tokens.focusColor, tokens.indicatorColor, tokens.optionalColor),
14
- negative: /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--surface-clear);", ":var(--text-accent);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--text-negative);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--text-secondary-active);", ":var(--surface-negative);", ":var(--surface-negative);", ":var(--surface-accent);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary-hover);", ":var(--text-primary);", ":var(--surface-transparent-secondary-active);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":0.72;", ":var(--text-accent);", ":var(--surface-negative);", ":var(--text-tertiary);"], tokens.color, tokens.backgroundColor, tokens.caretColor, tokens.placeholderColor, tokens.labelColor, tokens.leftHelperColor, tokens.contentSlotColor, tokens.contentSlotColorHover, tokens.contentSlotColorActive, tokens.borderColor, tokens.borderColorHover, tokens.borderColorFocus, tokens.chipCloseIconColor, tokens.chipColor, tokens.chipBackground, tokens.chipColorHover, tokens.chipBackgroundHover, tokens.chipColorActive, tokens.chipBackgroundActive, tokens.chipBackgroundReadOnly, tokens.chipColorReadOnly, tokens.chipBackgroundReadOnlyHover, tokens.chipColorReadOnlyHover, tokens.chipOpacityReadonly, tokens.focusColor, tokens.indicatorColor, tokens.optionalColor)
11
+ "default": /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--surface-clear);", ":var(--text-accent);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--text-secondary);", ":var(--surface-transparent-tertiary);", ":var(--text-secondary);", ":var(--surface-accent);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary-hover);", ":var(--text-primary);", ":var(--surface-transparent-secondary-active);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":0.72;", ":var(--text-accent);", ":var(--surface-negative);", ":var(--text-tertiary);"], tokens.color, tokens.backgroundColor, tokens.caretColor, tokens.placeholderColor, tokens.labelColor, tokens.leftHelperColor, tokens.borderColor, tokens.borderColorHover, tokens.borderColorFocus, tokens.chipCloseIconColor, tokens.chipColor, tokens.chipBackground, tokens.chipColorHover, tokens.chipBackgroundHover, tokens.chipColorActive, tokens.chipBackgroundActive, tokens.chipBackgroundReadOnly, tokens.chipColorReadOnly, tokens.chipBackgroundReadOnlyHover, tokens.chipColorReadOnlyHover, tokens.chipOpacityReadonly, tokens.focusColor, tokens.indicatorColor, tokens.optionalColor),
12
+ positive: /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--surface-clear);", ":var(--text-accent);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--text-positive);", ":var(--surface-positive);", ":var(--surface-positive);", ":var(--surface-accent);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary-hover);", ":var(--text-primary);", ":var(--surface-transparent-secondary-active);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":0.72;", ":var(--text-accent);", ":var(--surface-negative);", ":var(--text-tertiary);"], tokens.color, tokens.backgroundColor, tokens.caretColor, tokens.placeholderColor, tokens.labelColor, tokens.leftHelperColor, tokens.borderColor, tokens.borderColorHover, tokens.borderColorFocus, tokens.chipCloseIconColor, tokens.chipColor, tokens.chipBackground, tokens.chipColorHover, tokens.chipBackgroundHover, tokens.chipColorActive, tokens.chipBackgroundActive, tokens.chipBackgroundReadOnly, tokens.chipColorReadOnly, tokens.chipBackgroundReadOnlyHover, tokens.chipColorReadOnlyHover, tokens.chipOpacityReadonly, tokens.focusColor, tokens.indicatorColor, tokens.optionalColor),
13
+ warning: /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--surface-clear);", ":var(--text-accent);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--text-warning);", ":var(--surface-warning);", ":var(--surface-warning);", ":var(--surface-accent);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary-hover);", ":var(--text-primary);", ":var(--surface-transparent-secondary-active);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":0.72;", ":var(--text-accent);", ":var(--surface-negative);", ":var(--text-tertiary);"], tokens.color, tokens.backgroundColor, tokens.caretColor, tokens.placeholderColor, tokens.labelColor, tokens.leftHelperColor, tokens.borderColor, tokens.borderColorHover, tokens.borderColorFocus, tokens.chipCloseIconColor, tokens.chipColor, tokens.chipBackground, tokens.chipColorHover, tokens.chipBackgroundHover, tokens.chipColorActive, tokens.chipBackgroundActive, tokens.chipBackgroundReadOnly, tokens.chipColorReadOnly, tokens.chipBackgroundReadOnlyHover, tokens.chipColorReadOnlyHover, tokens.chipOpacityReadonly, tokens.focusColor, tokens.indicatorColor, tokens.optionalColor),
14
+ negative: /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--surface-clear);", ":var(--text-accent);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--text-negative);", ":var(--surface-negative);", ":var(--surface-negative);", ":var(--surface-accent);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary-hover);", ":var(--text-primary);", ":var(--surface-transparent-secondary-active);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":0.72;", ":var(--text-accent);", ":var(--surface-negative);", ":var(--text-tertiary);"], tokens.color, tokens.backgroundColor, tokens.caretColor, tokens.placeholderColor, tokens.labelColor, tokens.leftHelperColor, tokens.borderColor, tokens.borderColorHover, tokens.borderColorFocus, tokens.chipCloseIconColor, tokens.chipColor, tokens.chipBackground, tokens.chipColorHover, tokens.chipBackgroundHover, tokens.chipColorActive, tokens.chipBackgroundActive, tokens.chipBackgroundReadOnly, tokens.chipColorReadOnly, tokens.chipBackgroundReadOnlyHover, tokens.chipColorReadOnlyHover, tokens.chipOpacityReadonly, tokens.focusColor, tokens.indicatorColor, tokens.optionalColor)
15
15
  },
16
16
  size: {
17
17
  l: /*#__PURE__*/css(["", ":3.5rem;", ":1.0625rem 1.125rem 1.0625rem 1.125rem;", ":0.375rem;", ":0.875rem;", ":0.0625rem;", ":-0.0625rem 0.5rem -0.0625rem -0.125rem;", ":-0.0625rem -0.125rem -0.0625rem 0.75rem;", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);", ":0.75rem;", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);", ":0.25rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":0.5625rem 0 0.125rem 0;", ":1.5625rem 0 0.5625rem 0;", ":0.25rem;", ":0.5rem;", ":auto;", ":2.75rem;", ":0.75rem;", ":1rem;", ":0.625rem;", ":0rem;", ":1.5rem;", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);", ":0.5rem;", ":0.375rem;", ":0 0 0 0;", ":0.5rem auto auto -0.75rem;", ":0 0 auto auto;", ":0.25rem -0.625rem auto auto;"], 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.labelFontFamily, tokens.labelFontSize, tokens.labelFontStyle, tokens.labelFontWeight, tokens.labelLetterSpacing, tokens.labelLineHeight, tokens.leftHelperOffset, tokens.leftHelperFontFamily, tokens.leftHelperFontSize, tokens.leftHelperFontStyle, tokens.leftHelperFontWeight, tokens.leftHelperLetterSpacing, tokens.leftHelperLineHeight, tokens.labelInnerPadding, tokens.contentLabelInnerPadding, tokens.chipGap, tokens.chipBorderRadius, tokens.chipWidth, tokens.chipHeight, tokens.chipPaddingRight, tokens.chipPaddingLeft, tokens.chipClearContentMarginLeft, tokens.chipClearContentMarginRight, tokens.chipCloseIconSize, tokens.chipFontFamily, tokens.chipFontSize, tokens.chipFontStyle, tokens.chipFontWeight, tokens.chipLetterSpacing, tokens.chipLineHeight, tokens.indicatorSizeInner, tokens.indicatorSizeOuter, tokens.indicatorLabelPlacementInner, tokens.indicatorLabelPlacementOuter, tokens.indicatorLabelPlacementInnerRight, tokens.indicatorLabelPlacementOuterRight),
@@ -4,7 +4,6 @@ import { action } from '@storybook/addon-actions';
4
4
  import { IconPlaceholder } from '@salutejs/plasma-sb-utils';
5
5
 
6
6
  import { WithTheme } from '../../../_helpers';
7
- import { IconChevronLeft } from '../../../../components/_Icon';
8
7
 
9
8
  import { TextField } from './TextField';
10
9
 
@@ -186,7 +185,7 @@ const StoryChips = ({ enableContentLeft, enableContentRight, view, ...rest }: St
186
185
  {...rest}
187
186
  enumerationType="chip"
188
187
  value={text}
189
- contentLeft={enableContentLeft ? <IconChevronLeft color="inherit" size={iconSize} /> : undefined}
188
+ contentLeft={enableContentLeft ? <IconPlaceholder size={iconSize} /> : undefined}
190
189
  contentRight={enableContentRight ? <IconPlaceholder size={iconSize} /> : undefined}
191
190
  view={view}
192
191
  onChange={(e) => {
@@ -3,6 +3,7 @@ export { extractTextFrom } from './extractTextFrom';
3
3
  export { getSizeValueFromProp } from './getSizeValueFromProp';
4
4
  export { IS_REACT_18, safeUseId } from './react';
5
5
  export { isNumber } from './isNumber';
6
+ export { mergeRefs, setRefList } from './setRefList';
6
7
  export { isEmpty } from './isEmpty';
7
8
  export * from './getPopoverPlacement';
8
9
  export var cx = function cx() {
@@ -0,0 +1,20 @@
1
+ export function mergeRefs() {
2
+ for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
3
+ refs[_key] = arguments[_key];
4
+ }
5
+ return function (val) {
6
+ setRefList.apply(void 0, [val].concat(refs));
7
+ };
8
+ }
9
+ export function setRefList(val) {
10
+ for (var _len2 = arguments.length, refs = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
11
+ refs[_key2 - 1] = arguments[_key2];
12
+ }
13
+ refs.forEach(function (ref) {
14
+ if (typeof ref === 'function') {
15
+ ref(val);
16
+ } else if (ref != null) {
17
+ ref.current = val;
18
+ }
19
+ });
20
+ }
@@ -23,7 +23,7 @@ export declare const StyledTextField: import("@linaria/react").StyledMeta & impo
23
23
  onChangeChips?: undefined;
24
24
  enumerationType?: "plain" | undefined;
25
25
  onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
26
- } & Omit<import("../../../../types").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
26
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
27
27
  size?: string | undefined;
28
28
  view?: string | undefined;
29
29
  readOnly?: boolean | undefined;
@@ -47,7 +47,7 @@ export declare const StyledTextField: import("@linaria/react").StyledMeta & impo
47
47
  onSearch?: undefined;
48
48
  chips?: import("../../../TextField/TextField.types").TextFieldPrimitiveValue[] | undefined;
49
49
  onChangeChips?: ((value: import("../../../TextField/TextField.types").TextFieldPrimitiveValue[]) => void) | undefined;
50
- } & Omit<import("../../../../types").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
50
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
51
51
  size?: string | undefined;
52
52
  view?: string | undefined;
53
53
  readOnly?: boolean | undefined;
@@ -71,7 +71,7 @@ export declare const StyledTextField: import("@linaria/react").StyledMeta & impo
71
71
  onChangeChips?: undefined;
72
72
  enumerationType?: "plain" | undefined;
73
73
  onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
74
- } & Omit<import("../../../../types").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
74
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
75
75
  size?: string | undefined;
76
76
  view?: string | undefined;
77
77
  readOnly?: boolean | undefined;
@@ -95,5 +95,5 @@ export declare const StyledTextField: import("@linaria/react").StyledMeta & impo
95
95
  onSearch?: undefined;
96
96
  chips?: import("../../../TextField/TextField.types").TextFieldPrimitiveValue[] | undefined;
97
97
  onChangeChips?: ((value: import("../../../TextField/TextField.types").TextFieldPrimitiveValue[]) => void) | undefined;
98
- } & Omit<import("../../../../types").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>))>;
98
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>))>;
99
99
  //# sourceMappingURL=TextField.styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextField.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/Autocomplete/ui/TextField/TextField.styles.ts"],"names":[],"mappings":";AASA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qJA0D3B,CAAC"}
1
+ {"version":3,"file":"TextField.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/Autocomplete/ui/TextField/TextField.styles.ts"],"names":[],"mappings":";AASA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yIA0D3B,CAAC"}
@@ -23,7 +23,7 @@ export declare const StyledTextField: import("@linaria/react").StyledMeta & impo
23
23
  onChangeChips?: undefined;
24
24
  enumerationType?: "plain" | undefined;
25
25
  onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
26
- } & Omit<import("../../../../../types").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
26
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
27
27
  size?: string | undefined;
28
28
  view?: string | undefined;
29
29
  readOnly?: boolean | undefined;
@@ -47,7 +47,7 @@ export declare const StyledTextField: import("@linaria/react").StyledMeta & impo
47
47
  onSearch?: undefined;
48
48
  chips?: import("../../../../TextField/TextField.types").TextFieldPrimitiveValue[] | undefined;
49
49
  onChangeChips?: ((value: import("../../../../TextField/TextField.types").TextFieldPrimitiveValue[]) => void) | undefined;
50
- } & Omit<import("../../../../../types").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
50
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
51
51
  size?: string | undefined;
52
52
  view?: string | undefined;
53
53
  readOnly?: boolean | undefined;
@@ -71,7 +71,7 @@ export declare const StyledTextField: import("@linaria/react").StyledMeta & impo
71
71
  onChangeChips?: undefined;
72
72
  enumerationType?: "plain" | undefined;
73
73
  onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
74
- } & Omit<import("../../../../../types").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
74
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
75
75
  size?: string | undefined;
76
76
  view?: string | undefined;
77
77
  readOnly?: boolean | undefined;
@@ -95,5 +95,5 @@ export declare const StyledTextField: import("@linaria/react").StyledMeta & impo
95
95
  onSearch?: undefined;
96
96
  chips?: import("../../../../TextField/TextField.types").TextFieldPrimitiveValue[] | undefined;
97
97
  onChangeChips?: ((value: import("../../../../TextField/TextField.types").TextFieldPrimitiveValue[]) => void) | undefined;
98
- } & Omit<import("../../../../../types").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>))>;
98
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>))>;
99
99
  //# sourceMappingURL=Target.styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Target.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Combobox/ComboboxNew/ui/Target/Target.styles.ts"],"names":[],"mappings":";AASA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wJAuF3B,CAAC"}
1
+ {"version":3,"file":"Target.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Combobox/ComboboxNew/ui/Target/Target.styles.ts"],"names":[],"mappings":";AASA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yIAuF3B,CAAC"}
@@ -24,7 +24,7 @@ export declare const StyledInput: import("@linaria/react").StyledMeta & import("
24
24
  onChangeChips?: undefined;
25
25
  enumerationType?: "plain" | undefined;
26
26
  onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
27
- } & Omit<import("../../../types").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
27
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
28
28
  size?: string | undefined;
29
29
  view?: string | undefined;
30
30
  readOnly?: boolean | undefined;
@@ -48,7 +48,7 @@ export declare const StyledInput: import("@linaria/react").StyledMeta & import("
48
48
  onSearch?: undefined;
49
49
  chips?: import("../../TextField/TextField.types").TextFieldPrimitiveValue[] | undefined;
50
50
  onChangeChips?: ((value: import("../../TextField/TextField.types").TextFieldPrimitiveValue[]) => void) | undefined;
51
- } & Omit<import("../../../types").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
51
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
52
52
  size?: string | undefined;
53
53
  view?: string | undefined;
54
54
  readOnly?: boolean | undefined;
@@ -72,7 +72,7 @@ export declare const StyledInput: import("@linaria/react").StyledMeta & import("
72
72
  onChangeChips?: undefined;
73
73
  enumerationType?: "plain" | undefined;
74
74
  onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
75
- } & Omit<import("../../../types").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
75
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
76
76
  size?: string | undefined;
77
77
  view?: string | undefined;
78
78
  readOnly?: boolean | undefined;
@@ -96,7 +96,7 @@ export declare const StyledInput: import("@linaria/react").StyledMeta & import("
96
96
  onSearch?: undefined;
97
97
  chips?: import("../../TextField/TextField.types").TextFieldPrimitiveValue[] | undefined;
98
98
  onChangeChips?: ((value: import("../../TextField/TextField.types").TextFieldPrimitiveValue[]) => void) | undefined;
99
- } & Omit<import("../../../types").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>))>;
99
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>))>;
100
100
  export declare const base: import("@linaria/core").LinariaClassName;
101
101
  export declare const StyledLabel: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLLabelElement> & import("react").LabelHTMLAttributes<HTMLLabelElement> & Record<never, unknown>>;
102
102
  export declare const LeftHelper: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
@@ -1 +1 @@
1
- {"version":3,"file":"SingleDate.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/DatePicker/SingleDate/SingleDate.styles.ts"],"names":[],"mappings":";AAcA,eAAO,MAAM,aAAa,4TAAoB,CAAC;AAG/C,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kJAuEvB,CAAC;AAEF,eAAO,MAAM,IAAI,0CAMhB,CAAC;AAEF,eAAO,MAAM,WAAW,8KAAiB,CAAC;AAE1C,eAAO,MAAM,UAAU,qKAAe,CAAC"}
1
+ {"version":3,"file":"SingleDate.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/DatePicker/SingleDate/SingleDate.styles.ts"],"names":[],"mappings":";AAcA,eAAO,MAAM,aAAa,4TAAoB,CAAC;AAG/C,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yIAuEvB,CAAC;AAEF,eAAO,MAAM,IAAI,0CAMhB,CAAC;AAEF,eAAO,MAAM,WAAW,8KAAiB,CAAC;AAE1C,eAAO,MAAM,UAAU,qKAAe,CAAC"}
@@ -23,7 +23,7 @@ export declare const StyledInput: import("@linaria/react").StyledMeta & import("
23
23
  onChangeChips?: undefined;
24
24
  enumerationType?: "plain" | undefined;
25
25
  onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
26
- } & Omit<import("../../types").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
26
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
27
27
  size?: string | undefined;
28
28
  view?: string | undefined;
29
29
  readOnly?: boolean | undefined;
@@ -47,7 +47,7 @@ export declare const StyledInput: import("@linaria/react").StyledMeta & import("
47
47
  onSearch?: undefined;
48
48
  chips?: import("../TextField/TextField.types").TextFieldPrimitiveValue[] | undefined;
49
49
  onChangeChips?: ((value: import("../TextField/TextField.types").TextFieldPrimitiveValue[]) => void) | undefined;
50
- } & Omit<import("../../types").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
50
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
51
51
  size?: string | undefined;
52
52
  view?: string | undefined;
53
53
  readOnly?: boolean | undefined;
@@ -71,7 +71,7 @@ export declare const StyledInput: import("@linaria/react").StyledMeta & import("
71
71
  onChangeChips?: undefined;
72
72
  enumerationType?: "plain" | undefined;
73
73
  onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
74
- } & Omit<import("../../types").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
74
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
75
75
  size?: string | undefined;
76
76
  view?: string | undefined;
77
77
  readOnly?: boolean | undefined;
@@ -95,7 +95,7 @@ export declare const StyledInput: import("@linaria/react").StyledMeta & import("
95
95
  onSearch?: undefined;
96
96
  chips?: import("../TextField/TextField.types").TextFieldPrimitiveValue[] | undefined;
97
97
  onChangeChips?: ((value: import("../TextField/TextField.types").TextFieldPrimitiveValue[]) => void) | undefined;
98
- } & Omit<import("../../types").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>))>;
98
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>))>;
99
99
  export declare const base: import("@linaria/core").LinariaClassName;
100
100
  export declare const StyledLabel: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLLabelElement> & import("react").LabelHTMLAttributes<HTMLLabelElement> & Record<never, unknown>>;
101
101
  export declare const LeftHelper: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
@@ -1 +1 @@
1
- {"version":3,"file":"Range.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Range/Range.styles.ts"],"names":[],"mappings":";AAYA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+IA+DvB,CAAC;AAEF,eAAO,MAAM,IAAI,0CAEhB,CAAC;AAEF,eAAO,MAAM,WAAW,8KAAiB,CAAC;AAE1C,eAAO,MAAM,UAAU,qKAAe,CAAC;AAEvC,eAAO,MAAM,cAAc,qKAG1B,CAAC;AAEF,eAAO,MAAM,aAAa,qKAAe,CAAC;AAE1C,eAAO,MAAM,iBAAiB,qKAE7B,CAAC;AAEF,eAAO,MAAM,kBAAkB,qKAAe,CAAC"}
1
+ {"version":3,"file":"Range.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Range/Range.styles.ts"],"names":[],"mappings":";AAYA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yIA+DvB,CAAC;AAEF,eAAO,MAAM,IAAI,0CAEhB,CAAC;AAEF,eAAO,MAAM,WAAW,8KAAiB,CAAC;AAE1C,eAAO,MAAM,UAAU,qKAAe,CAAC;AAEvC,eAAO,MAAM,cAAc,qKAG1B,CAAC;AAEF,eAAO,MAAM,aAAa,qKAAe,CAAC;AAE1C,eAAO,MAAM,iBAAiB,qKAE7B,CAAC;AAEF,eAAO,MAAM,kBAAkB,qKAAe,CAAC"}
@@ -27,7 +27,7 @@ export declare const StyledInput: import("@linaria/react").StyledMeta & import("
27
27
  onChangeChips?: undefined;
28
28
  enumerationType?: "plain" | undefined;
29
29
  onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
30
- } & Omit<import("../../../../types").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
30
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
31
31
  size?: string | undefined;
32
32
  view?: string | undefined;
33
33
  readOnly?: boolean | undefined;
@@ -51,7 +51,7 @@ export declare const StyledInput: import("@linaria/react").StyledMeta & import("
51
51
  onSearch?: undefined;
52
52
  chips?: import("../../../TextField/TextField.types").TextFieldPrimitiveValue[] | undefined;
53
53
  onChangeChips?: ((value: import("../../../TextField/TextField.types").TextFieldPrimitiveValue[]) => void) | undefined;
54
- } & Omit<import("../../../../types").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
54
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
55
55
  size?: string | undefined;
56
56
  view?: string | undefined;
57
57
  readOnly?: boolean | undefined;
@@ -75,7 +75,7 @@ export declare const StyledInput: import("@linaria/react").StyledMeta & import("
75
75
  onChangeChips?: undefined;
76
76
  enumerationType?: "plain" | undefined;
77
77
  onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
78
- } & Omit<import("../../../../types").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
78
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
79
79
  size?: string | undefined;
80
80
  view?: string | undefined;
81
81
  readOnly?: boolean | undefined;
@@ -99,7 +99,7 @@ export declare const StyledInput: import("@linaria/react").StyledMeta & import("
99
99
  onSearch?: undefined;
100
100
  chips?: import("../../../TextField/TextField.types").TextFieldPrimitiveValue[] | undefined;
101
101
  onChangeChips?: ((value: import("../../../TextField/TextField.types").TextFieldPrimitiveValue[]) => void) | undefined;
102
- } & Omit<import("../../../../types").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>))>;
102
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>))>;
103
103
  export declare const DoubleWrapper: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
104
104
  export declare const SliderWrapper: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
105
105
  //# sourceMappingURL=Double.styles.d.ts.map