@salutejs/plasma-new-hope 0.139.0-canary.1352.10686935940.0 → 0.139.0-canary.1352.10697708497.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. package/cjs/components/TextArea/TextArea.js +4 -2
  2. package/cjs/components/TextArea/TextArea.js.map +1 -1
  3. package/cjs/components/TextField/TextField.js +2 -3
  4. package/cjs/components/TextField/TextField.js.map +1 -1
  5. package/emotion/cjs/components/TextArea/TextArea.js +5 -3
  6. package/emotion/cjs/components/TextField/TextField.js +3 -4
  7. package/emotion/cjs/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +13 -1
  8. package/emotion/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +12 -0
  9. package/emotion/cjs/examples/plasma_web/components/TextArea/TextArea.stories.tsx +13 -1
  10. package/emotion/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +12 -0
  11. package/emotion/es/components/TextArea/TextArea.js +5 -3
  12. package/emotion/es/components/TextField/TextField.js +3 -4
  13. package/emotion/es/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +13 -1
  14. package/emotion/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +12 -0
  15. package/emotion/es/examples/plasma_web/components/TextArea/TextArea.stories.tsx +13 -1
  16. package/emotion/es/examples/plasma_web/components/TextField/TextField.stories.tsx +12 -0
  17. package/es/components/TextArea/TextArea.js +4 -2
  18. package/es/components/TextArea/TextArea.js.map +1 -1
  19. package/es/components/TextField/TextField.js +2 -3
  20. package/es/components/TextField/TextField.js.map +1 -1
  21. package/package.json +2 -2
  22. package/styled-components/cjs/components/TextArea/TextArea.js +4 -2
  23. package/styled-components/cjs/components/TextField/TextField.js +2 -3
  24. package/styled-components/cjs/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +13 -1
  25. package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +12 -0
  26. package/styled-components/cjs/examples/plasma_web/components/TextArea/TextArea.stories.tsx +13 -1
  27. package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +12 -0
  28. package/styled-components/es/components/TextArea/TextArea.js +4 -2
  29. package/styled-components/es/components/TextField/TextField.js +2 -3
  30. package/styled-components/es/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +13 -1
  31. package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +12 -0
  32. package/styled-components/es/examples/plasma_web/components/TextArea/TextArea.stories.tsx +13 -1
  33. package/styled-components/es/examples/plasma_web/components/TextField/TextField.stories.tsx +12 -0
  34. package/types/components/Autocomplete/Autocomplete.d.ts +2 -2
  35. package/types/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  36. package/types/components/Autocomplete/Autocomplete.types.d.ts +1 -1
  37. package/types/components/Autocomplete/Autocomplete.types.d.ts.map +1 -1
  38. package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts +59 -7
  39. package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts.map +1 -1
  40. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts +59 -7
  41. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts.map +1 -1
  42. package/types/components/Range/Range.styles.d.ts +59 -7
  43. package/types/components/Range/Range.styles.d.ts.map +1 -1
  44. package/types/components/Slider/components/Double/Double.styles.d.ts +59 -7
  45. package/types/components/Slider/components/Double/Double.styles.d.ts.map +1 -1
  46. package/types/components/TextArea/TextArea.types.d.ts +30 -18
  47. package/types/components/TextArea/TextArea.types.d.ts.map +1 -1
  48. package/types/components/TextField/TextField.types.d.ts +27 -15
  49. package/types/components/TextField/TextField.types.d.ts.map +1 -1
  50. package/types/examples/plasma_b2c/components/Autocomplete/Autocomplete.d.ts +1 -1
  51. package/types/examples/plasma_b2c/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  52. package/types/examples/plasma_b2c/components/TextArea/TextArea.d.ts +135 -3
  53. package/types/examples/plasma_b2c/components/TextArea/TextArea.d.ts.map +1 -1
  54. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts +59 -7
  55. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts.map +1 -1
  56. package/types/examples/plasma_web/components/Autocomplete/Autocomplete.d.ts +1 -1
  57. package/types/examples/plasma_web/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  58. package/types/examples/plasma_web/components/TextArea/TextArea.d.ts +135 -3
  59. package/types/examples/plasma_web/components/TextArea/TextArea.d.ts.map +1 -1
  60. package/types/examples/plasma_web/components/TextField/TextField.d.ts +59 -7
  61. package/types/examples/plasma_web/components/TextField/TextField.d.ts.map +1 -1
@@ -98,10 +98,12 @@ var textAreaRoot = exports.textAreaRoot = function textAreaRoot(Root) {
98
98
  width = props.width,
99
99
  value = props.value,
100
100
  disabled = props.disabled,
101
- required = props.required,
101
+ _props$required = props.required,
102
+ required = _props$required === void 0 ? false : _props$required,
102
103
  _props$requiredPlacem = props.requiredPlacement,
103
104
  requiredPlacement = _props$requiredPlacem === void 0 ? 'right' : _props$requiredPlacem,
104
- optional = props.optional,
105
+ _props$optional = props.optional,
106
+ optional = _props$optional === void 0 ? false : _props$optional,
105
107
  size = props.size,
106
108
  view = props.view,
107
109
  id = props.id,
@@ -57,8 +57,7 @@ var textFieldRoot = exports.textFieldRoot = function textFieldRoot(Root) {
57
57
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
58
58
  _ref$required = _ref.required,
59
59
  required = _ref$required === void 0 ? false : _ref$required,
60
- _ref$optional = _ref.optional,
61
- optional = _ref$optional === void 0 ? false : _ref$optional,
60
+ optional = _ref.optional,
62
61
  values = _ref.chips,
63
62
  onChange = _ref.onChange,
64
63
  onChangeChips = _ref.onChangeChips,
@@ -170,7 +169,7 @@ var textFieldRoot = exports.textFieldRoot = function textFieldRoot(Root) {
170
169
  })) || [];
171
170
  setChips(newChips);
172
171
  }, [isChipEnumeration, values]);
173
- var innerOptional = required ? false : optional;
172
+ var innerOptional = Boolean(required ? false : optional);
174
173
  var hasPlaceholderOptional = innerOptional && !innerLabelValue && !hasOuterLabel;
175
174
  var optionalTextNode = innerOptional ? /*#__PURE__*/_react["default"].createElement(_TextField.StyledOptionalText, null, Boolean(hasPlaceholderOptional ? innerPlaceholderValue : innerLabelValue) && '\xa0', optionalText) : null;
176
175
  return /*#__PURE__*/_react["default"].createElement(Root, {
@@ -25,13 +25,25 @@ const meta: Meta<StoryTextAreaProps> = {
25
25
  decorators: [WithTheme],
26
26
  component: TextArea,
27
27
  argTypes: {
28
+ ...argTypesFromConfig(mergeConfig(textAreaConfig, config)),
28
29
  requiredPlacement: {
29
30
  options: ['left', 'right'],
30
31
  control: {
31
32
  type: 'select',
32
33
  },
33
34
  },
34
- ...argTypesFromConfig(mergeConfig(textAreaConfig, config)),
35
+ required: {
36
+ control: {
37
+ type: 'boolean',
38
+ },
39
+ if: { arg: 'optional', truthy: false },
40
+ },
41
+ optional: {
42
+ control: {
43
+ type: 'boolean',
44
+ },
45
+ if: { arg: 'required', truthy: false },
46
+ },
35
47
  rows: {
36
48
  control: {
37
49
  type: 'number',
@@ -28,6 +28,18 @@ const meta: Meta<typeof TextField> = {
28
28
  type: 'select',
29
29
  },
30
30
  },
31
+ required: {
32
+ control: {
33
+ type: 'boolean',
34
+ },
35
+ if: { arg: 'optional', truthy: false },
36
+ },
37
+ optional: {
38
+ control: {
39
+ type: 'boolean',
40
+ },
41
+ if: { arg: 'required', truthy: false },
42
+ },
31
43
  view: {
32
44
  options: views,
33
45
  control: {
@@ -25,13 +25,25 @@ const meta: Meta<StoryTextAreaProps> = {
25
25
  decorators: [WithTheme],
26
26
  component: TextArea,
27
27
  argTypes: {
28
+ ...argTypesFromConfig(mergeConfig(textAreaConfig, config)),
28
29
  requiredPlacement: {
29
30
  options: ['left', 'right'],
30
31
  control: {
31
32
  type: 'select',
32
33
  },
33
34
  },
34
- ...argTypesFromConfig(mergeConfig(textAreaConfig, config)),
35
+ required: {
36
+ control: {
37
+ type: 'boolean',
38
+ },
39
+ if: { arg: 'optional', truthy: false },
40
+ },
41
+ optional: {
42
+ control: {
43
+ type: 'boolean',
44
+ },
45
+ if: { arg: 'required', truthy: false },
46
+ },
35
47
  rows: {
36
48
  control: {
37
49
  type: 'number',
@@ -28,6 +28,18 @@ const meta: Meta<typeof TextField> = {
28
28
  type: 'select',
29
29
  },
30
30
  },
31
+ required: {
32
+ control: {
33
+ type: 'boolean',
34
+ },
35
+ if: { arg: 'optional', truthy: false },
36
+ },
37
+ optional: {
38
+ control: {
39
+ type: 'boolean',
40
+ },
41
+ if: { arg: 'required', truthy: false },
42
+ },
31
43
  view: {
32
44
  options: views,
33
45
  control: {
@@ -90,10 +90,12 @@ export var textAreaRoot = function textAreaRoot(Root) {
90
90
  width = props.width,
91
91
  value = props.value,
92
92
  disabled = props.disabled,
93
- required = props.required,
93
+ _props$required = props.required,
94
+ required = _props$required === void 0 ? false : _props$required,
94
95
  _props$requiredPlacem = props.requiredPlacement,
95
96
  requiredPlacement = _props$requiredPlacem === void 0 ? 'right' : _props$requiredPlacem,
96
- optional = props.optional,
97
+ _props$optional = props.optional,
98
+ optional = _props$optional === void 0 ? false : _props$optional,
97
99
  size = props.size,
98
100
  view = props.view,
99
101
  id = props.id,
@@ -48,8 +48,7 @@ export var textFieldRoot = function textFieldRoot(Root) {
48
48
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
49
49
  _ref$required = _ref.required,
50
50
  required = _ref$required === void 0 ? false : _ref$required,
51
- _ref$optional = _ref.optional,
52
- optional = _ref$optional === void 0 ? false : _ref$optional,
51
+ optional = _ref.optional,
53
52
  values = _ref.chips,
54
53
  onChange = _ref.onChange,
55
54
  onChangeChips = _ref.onChangeChips,
@@ -161,7 +160,7 @@ export var textFieldRoot = function textFieldRoot(Root) {
161
160
  })) || [];
162
161
  setChips(newChips);
163
162
  }, [isChipEnumeration, values]);
164
- var innerOptional = required ? false : optional;
163
+ var innerOptional = Boolean(required ? false : optional);
165
164
  var hasPlaceholderOptional = innerOptional && !innerLabelValue && !hasOuterLabel;
166
165
  var optionalTextNode = innerOptional ? /*#__PURE__*/React.createElement(StyledOptionalText, null, Boolean(hasPlaceholderOptional ? innerPlaceholderValue : innerLabelValue) && '\xa0', optionalText) : null;
167
166
  return /*#__PURE__*/React.createElement(Root, {
@@ -25,13 +25,25 @@ const meta: Meta<StoryTextAreaProps> = {
25
25
  decorators: [WithTheme],
26
26
  component: TextArea,
27
27
  argTypes: {
28
+ ...argTypesFromConfig(mergeConfig(textAreaConfig, config)),
28
29
  requiredPlacement: {
29
30
  options: ['left', 'right'],
30
31
  control: {
31
32
  type: 'select',
32
33
  },
33
34
  },
34
- ...argTypesFromConfig(mergeConfig(textAreaConfig, config)),
35
+ required: {
36
+ control: {
37
+ type: 'boolean',
38
+ },
39
+ if: { arg: 'optional', truthy: false },
40
+ },
41
+ optional: {
42
+ control: {
43
+ type: 'boolean',
44
+ },
45
+ if: { arg: 'required', truthy: false },
46
+ },
35
47
  rows: {
36
48
  control: {
37
49
  type: 'number',
@@ -28,6 +28,18 @@ const meta: Meta<typeof TextField> = {
28
28
  type: 'select',
29
29
  },
30
30
  },
31
+ required: {
32
+ control: {
33
+ type: 'boolean',
34
+ },
35
+ if: { arg: 'optional', truthy: false },
36
+ },
37
+ optional: {
38
+ control: {
39
+ type: 'boolean',
40
+ },
41
+ if: { arg: 'required', truthy: false },
42
+ },
31
43
  view: {
32
44
  options: views,
33
45
  control: {
@@ -25,13 +25,25 @@ const meta: Meta<StoryTextAreaProps> = {
25
25
  decorators: [WithTheme],
26
26
  component: TextArea,
27
27
  argTypes: {
28
+ ...argTypesFromConfig(mergeConfig(textAreaConfig, config)),
28
29
  requiredPlacement: {
29
30
  options: ['left', 'right'],
30
31
  control: {
31
32
  type: 'select',
32
33
  },
33
34
  },
34
- ...argTypesFromConfig(mergeConfig(textAreaConfig, config)),
35
+ required: {
36
+ control: {
37
+ type: 'boolean',
38
+ },
39
+ if: { arg: 'optional', truthy: false },
40
+ },
41
+ optional: {
42
+ control: {
43
+ type: 'boolean',
44
+ },
45
+ if: { arg: 'required', truthy: false },
46
+ },
35
47
  rows: {
36
48
  control: {
37
49
  type: 'number',
@@ -28,6 +28,18 @@ const meta: Meta<typeof TextField> = {
28
28
  type: 'select',
29
29
  },
30
30
  },
31
+ required: {
32
+ control: {
33
+ type: 'boolean',
34
+ },
35
+ if: { arg: 'optional', truthy: false },
36
+ },
37
+ optional: {
38
+ control: {
39
+ type: 'boolean',
40
+ },
41
+ if: { arg: 'required', truthy: false },
42
+ },
31
43
  view: {
32
44
  options: views,
33
45
  control: {
@@ -4,11 +4,11 @@ import type { AutocompleteProps } from './Autocomplete.types';
4
4
  /**
5
5
  * Компонент Autocomplete. Поле ввода с подсказками в выпадающем списке.
6
6
  */
7
- export declare const autocompleteRoot: (Root: RootProps<HTMLInputElement, AutocompleteProps>) => React.ForwardRefExoticComponent<import("./Autocomplete.types").BaseProps & Omit<import("../TextField/TextField.types").TextFieldPropsBase, "chips" | "enumerationType" | "onChangeChips"> & Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> & React.RefAttributes<HTMLInputElement>>;
7
+ export declare const autocompleteRoot: (Root: RootProps<HTMLInputElement, AutocompleteProps>) => React.ForwardRefExoticComponent<import("./Autocomplete.types").BaseProps & Omit<import("../TextField/TextField.types").TextFieldPropsBase, "required" | "optional" | "requiredPlacement" | "chips" | "enumerationType" | "onChangeChips"> & Omit<React.InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & React.RefAttributes<HTMLInputElement>>;
8
8
  export declare const autocompleteConfig: {
9
9
  name: string;
10
10
  tag: string;
11
- layout: (Root: RootProps<HTMLInputElement, AutocompleteProps>) => React.ForwardRefExoticComponent<import("./Autocomplete.types").BaseProps & Omit<import("../TextField/TextField.types").TextFieldPropsBase, "chips" | "enumerationType" | "onChangeChips"> & Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> & React.RefAttributes<HTMLInputElement>>;
11
+ layout: (Root: RootProps<HTMLInputElement, AutocompleteProps>) => React.ForwardRefExoticComponent<import("./Autocomplete.types").BaseProps & Omit<import("../TextField/TextField.types").TextFieldPropsBase, "required" | "optional" | "requiredPlacement" | "chips" | "enumerationType" | "onChangeChips"> & Omit<React.InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & React.RefAttributes<HTMLInputElement>>;
12
12
  base: import("@linaria/core").LinariaClassName;
13
13
  defaults: {
14
14
  view: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Autocomplete.d.ts","sourceRoot":"","sources":["../../../src/components/Autocomplete/Autocomplete.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAIhE,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAM1C,OAAO,KAAK,EAAE,iBAAiB,EAAsB,MAAM,sBAAsB,CAAC;AAGlF;;GAEG;AACH,eAAO,MAAM,gBAAgB,SAAU,UAAU,gBAAgB,EAAE,iBAAiB,CAAC,mSAmLhF,CAAC;AAEN,eAAO,MAAM,kBAAkB;;;mBArLQ,UAAU,gBAAgB,EAAE,iBAAiB,CAAC;;;;;;;;;;;;CAoMpF,CAAC"}
1
+ {"version":3,"file":"Autocomplete.d.ts","sourceRoot":"","sources":["../../../src/components/Autocomplete/Autocomplete.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAIhE,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAM1C,OAAO,KAAK,EAAE,iBAAiB,EAAsB,MAAM,sBAAsB,CAAC;AAGlF;;GAEG;AACH,eAAO,MAAM,gBAAgB,SAAU,UAAU,gBAAgB,EAAE,iBAAiB,CAAC,gWAmLhF,CAAC;AAEN,eAAO,MAAM,kBAAkB;;;mBArLQ,UAAU,gBAAgB,EAAE,iBAAiB,CAAC;;;;;;;;;;;;CAoMpF,CAAC"}
@@ -84,5 +84,5 @@ export declare type BaseProps = {
84
84
  */
85
85
  renderListEnd?: () => ReactNode;
86
86
  };
87
- export declare type AutocompleteProps = BaseProps & Omit<TextFieldPropsBase, 'chips' | 'onChangeChips' | 'enumerationType'> & Omit<InputHTMLAttributes<HTMLInputElement>, 'size'>;
87
+ export declare type AutocompleteProps = BaseProps & Omit<TextFieldPropsBase, 'chips' | 'onChangeChips' | 'enumerationType' | 'required' | 'optional' | 'requiredPlacement'> & Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'required'>;
88
88
  //# sourceMappingURL=Autocomplete.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Autocomplete.types.d.ts","sourceRoot":"","sources":["../../../src/components/Autocomplete/Autocomplete.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAElE,oBAAY,kBAAkB,GAAG;IAC7B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;OAEG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;CAC5B,CAAC;AAEF,oBAAY,SAAS,GAAG;IACpB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAC/C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,CAAC,EAAE,kBAAkB,EAAE,CAAC;IACnC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,OAAO,CAAC;IAC/C;;OAEG;IACH,kBAAkB,CAAC,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,CAAC;IACxD;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IACxD;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,kBAAkB,EAAE,KAAK,SAAS,CAAC;IACxD;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,SAAS,CAAC;CACnC,CAAC;AAEF,oBAAY,iBAAiB,GAAG,SAAS,GACrC,IAAI,CAAC,kBAAkB,EAAE,OAAO,GAAG,eAAe,GAAG,iBAAiB,CAAC,GACvE,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC,CAAC"}
1
+ {"version":3,"file":"Autocomplete.types.d.ts","sourceRoot":"","sources":["../../../src/components/Autocomplete/Autocomplete.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAElE,oBAAY,kBAAkB,GAAG;IAC7B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;OAEG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;CAC5B,CAAC;AAEF,oBAAY,SAAS,GAAG;IACpB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAC/C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,CAAC,EAAE,kBAAkB,EAAE,CAAC;IACnC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,OAAO,CAAC;IAC/C;;OAEG;IACH,kBAAkB,CAAC,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,CAAC;IACxD;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IACxD;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,kBAAkB,EAAE,KAAK,SAAS,CAAC;IACxD;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,SAAS,CAAC;CACnC,CAAC;AAEF,oBAAY,iBAAiB,GAAG,SAAS,GACrC,IAAI,CACA,kBAAkB,EAClB,OAAO,GAAG,eAAe,GAAG,iBAAiB,GAAG,UAAU,GAAG,UAAU,GAAG,mBAAmB,CAChG,GACD,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC,CAAC"}
@@ -12,16 +12,42 @@ export declare const StyledTextField: import("@linaria/react").StyledMeta & impo
12
12
  contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
13
13
  textBefore?: string | undefined;
14
14
  textAfter?: string | undefined;
15
- optional?: boolean | undefined;
16
- required?: boolean | undefined;
17
- requiredPlacement?: "left" | "right" | undefined;
18
15
  onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
16
+ } & {
17
+ requiredPlacement?: "left" | "right" | undefined;
18
+ } & {
19
+ required: true;
20
+ optional?: false | undefined;
19
21
  } & {
20
22
  chips?: undefined;
21
23
  onChangeChips?: undefined;
22
24
  enumerationType?: "plain" | undefined;
23
25
  onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
24
- } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
26
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
27
+ size?: string | undefined;
28
+ view?: string | undefined;
29
+ readOnly?: boolean | undefined;
30
+ disabled?: boolean | undefined;
31
+ } & {
32
+ label?: string | undefined;
33
+ labelPlacement?: "inner" | "outer" | undefined;
34
+ leftHelper?: string | undefined;
35
+ contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
36
+ contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
37
+ textBefore?: string | undefined;
38
+ textAfter?: string | undefined;
39
+ onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
40
+ } & {
41
+ requiredPlacement?: "left" | "right" | undefined;
42
+ } & {
43
+ required: true;
44
+ optional?: false | undefined;
45
+ } & {
46
+ enumerationType: "chip";
47
+ onSearch?: undefined;
48
+ chips?: import("../../../TextField/TextField.types").TextFieldPrimitiveValue[] | undefined;
49
+ onChangeChips?: ((value: import("../../../TextField/TextField.types").TextFieldPrimitiveValue[]) => void) | undefined;
50
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
25
51
  size?: string | undefined;
26
52
  view?: string | undefined;
27
53
  readOnly?: boolean | undefined;
@@ -34,14 +60,40 @@ export declare const StyledTextField: import("@linaria/react").StyledMeta & impo
34
60
  contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
35
61
  textBefore?: string | undefined;
36
62
  textAfter?: string | undefined;
37
- optional?: boolean | undefined;
38
- required?: boolean | undefined;
63
+ onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
64
+ } & {
39
65
  requiredPlacement?: "left" | "right" | undefined;
66
+ } & {
67
+ optional?: true | undefined;
68
+ required?: false | undefined;
69
+ } & {
70
+ chips?: undefined;
71
+ onChangeChips?: undefined;
72
+ enumerationType?: "plain" | undefined;
73
+ onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
74
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
75
+ size?: string | undefined;
76
+ view?: string | undefined;
77
+ readOnly?: boolean | undefined;
78
+ disabled?: boolean | undefined;
79
+ } & {
80
+ label?: string | undefined;
81
+ labelPlacement?: "inner" | "outer" | undefined;
82
+ leftHelper?: string | undefined;
83
+ contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
84
+ contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
85
+ textBefore?: string | undefined;
86
+ textAfter?: string | undefined;
40
87
  onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
88
+ } & {
89
+ requiredPlacement?: "left" | "right" | undefined;
90
+ } & {
91
+ optional?: true | undefined;
92
+ required?: false | undefined;
41
93
  } & {
42
94
  enumerationType: "chip";
43
95
  onSearch?: undefined;
44
96
  chips?: import("../../../TextField/TextField.types").TextFieldPrimitiveValue[] | undefined;
45
97
  onChangeChips?: ((value: import("../../../TextField/TextField.types").TextFieldPrimitiveValue[]) => void) | undefined;
46
- } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size"> & import("react").RefAttributes<HTMLInputElement>))>;
98
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>))>;
47
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4HA0D3B,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"}
@@ -13,16 +13,42 @@ export declare const StyledInput: import("@linaria/react").StyledMeta & import("
13
13
  contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
14
14
  textBefore?: string | undefined;
15
15
  textAfter?: string | undefined;
16
- optional?: boolean | undefined;
17
- required?: boolean | undefined;
18
- requiredPlacement?: "left" | "right" | undefined;
19
16
  onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
17
+ } & {
18
+ requiredPlacement?: "left" | "right" | undefined;
19
+ } & {
20
+ required: true;
21
+ optional?: false | undefined;
20
22
  } & {
21
23
  chips?: undefined;
22
24
  onChangeChips?: undefined;
23
25
  enumerationType?: "plain" | undefined;
24
26
  onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
25
- } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
27
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
28
+ size?: string | undefined;
29
+ view?: string | undefined;
30
+ readOnly?: boolean | undefined;
31
+ disabled?: boolean | undefined;
32
+ } & {
33
+ label?: string | undefined;
34
+ labelPlacement?: "inner" | "outer" | undefined;
35
+ leftHelper?: string | undefined;
36
+ contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
37
+ contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
38
+ textBefore?: string | undefined;
39
+ textAfter?: string | undefined;
40
+ onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
41
+ } & {
42
+ requiredPlacement?: "left" | "right" | undefined;
43
+ } & {
44
+ required: true;
45
+ optional?: false | undefined;
46
+ } & {
47
+ enumerationType: "chip";
48
+ onSearch?: undefined;
49
+ chips?: import("../../TextField/TextField.types").TextFieldPrimitiveValue[] | undefined;
50
+ onChangeChips?: ((value: import("../../TextField/TextField.types").TextFieldPrimitiveValue[]) => void) | undefined;
51
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
26
52
  size?: string | undefined;
27
53
  view?: string | undefined;
28
54
  readOnly?: boolean | undefined;
@@ -35,16 +61,42 @@ export declare const StyledInput: import("@linaria/react").StyledMeta & import("
35
61
  contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
36
62
  textBefore?: string | undefined;
37
63
  textAfter?: string | undefined;
38
- optional?: boolean | undefined;
39
- required?: boolean | undefined;
64
+ onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
65
+ } & {
40
66
  requiredPlacement?: "left" | "right" | undefined;
67
+ } & {
68
+ optional?: true | undefined;
69
+ required?: false | undefined;
70
+ } & {
71
+ chips?: undefined;
72
+ onChangeChips?: undefined;
73
+ enumerationType?: "plain" | undefined;
74
+ onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
75
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
76
+ size?: string | undefined;
77
+ view?: string | undefined;
78
+ readOnly?: boolean | undefined;
79
+ disabled?: boolean | undefined;
80
+ } & {
81
+ label?: string | undefined;
82
+ labelPlacement?: "inner" | "outer" | undefined;
83
+ leftHelper?: string | undefined;
84
+ contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
85
+ contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
86
+ textBefore?: string | undefined;
87
+ textAfter?: string | undefined;
41
88
  onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
89
+ } & {
90
+ requiredPlacement?: "left" | "right" | undefined;
91
+ } & {
92
+ optional?: true | undefined;
93
+ required?: false | undefined;
42
94
  } & {
43
95
  enumerationType: "chip";
44
96
  onSearch?: undefined;
45
97
  chips?: import("../../TextField/TextField.types").TextFieldPrimitiveValue[] | undefined;
46
98
  onChangeChips?: ((value: import("../../TextField/TextField.types").TextFieldPrimitiveValue[]) => void) | undefined;
47
- } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size"> & import("react").RefAttributes<HTMLInputElement>))>;
99
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>))>;
48
100
  export declare const base: import("@linaria/core").LinariaClassName;
49
101
  export declare const StyledLabel: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLLabelElement> & import("react").LabelHTMLAttributes<HTMLLabelElement> & Record<never, unknown>>;
50
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4HAuEvB,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"}
@@ -12,16 +12,42 @@ export declare const StyledInput: import("@linaria/react").StyledMeta & import("
12
12
  contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
13
13
  textBefore?: string | undefined;
14
14
  textAfter?: string | undefined;
15
- optional?: boolean | undefined;
16
- required?: boolean | undefined;
17
- requiredPlacement?: "left" | "right" | undefined;
18
15
  onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
16
+ } & {
17
+ requiredPlacement?: "left" | "right" | undefined;
18
+ } & {
19
+ required: true;
20
+ optional?: false | undefined;
19
21
  } & {
20
22
  chips?: undefined;
21
23
  onChangeChips?: undefined;
22
24
  enumerationType?: "plain" | undefined;
23
25
  onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
24
- } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
26
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
27
+ size?: string | undefined;
28
+ view?: string | undefined;
29
+ readOnly?: boolean | undefined;
30
+ disabled?: boolean | undefined;
31
+ } & {
32
+ label?: string | undefined;
33
+ labelPlacement?: "inner" | "outer" | undefined;
34
+ leftHelper?: string | undefined;
35
+ contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
36
+ contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
37
+ textBefore?: string | undefined;
38
+ textAfter?: string | undefined;
39
+ onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
40
+ } & {
41
+ requiredPlacement?: "left" | "right" | undefined;
42
+ } & {
43
+ required: true;
44
+ optional?: false | undefined;
45
+ } & {
46
+ enumerationType: "chip";
47
+ onSearch?: undefined;
48
+ chips?: import("../TextField/TextField.types").TextFieldPrimitiveValue[] | undefined;
49
+ onChangeChips?: ((value: import("../TextField/TextField.types").TextFieldPrimitiveValue[]) => void) | undefined;
50
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
25
51
  size?: string | undefined;
26
52
  view?: string | undefined;
27
53
  readOnly?: boolean | undefined;
@@ -34,16 +60,42 @@ export declare const StyledInput: import("@linaria/react").StyledMeta & import("
34
60
  contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
35
61
  textBefore?: string | undefined;
36
62
  textAfter?: string | undefined;
37
- optional?: boolean | undefined;
38
- required?: boolean | undefined;
63
+ onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
64
+ } & {
39
65
  requiredPlacement?: "left" | "right" | undefined;
66
+ } & {
67
+ optional?: true | undefined;
68
+ required?: false | undefined;
69
+ } & {
70
+ chips?: undefined;
71
+ onChangeChips?: undefined;
72
+ enumerationType?: "plain" | undefined;
73
+ onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
74
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
75
+ size?: string | undefined;
76
+ view?: string | undefined;
77
+ readOnly?: boolean | undefined;
78
+ disabled?: boolean | undefined;
79
+ } & {
80
+ label?: string | undefined;
81
+ labelPlacement?: "inner" | "outer" | undefined;
82
+ leftHelper?: string | undefined;
83
+ contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
84
+ contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
85
+ textBefore?: string | undefined;
86
+ textAfter?: string | undefined;
40
87
  onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
88
+ } & {
89
+ requiredPlacement?: "left" | "right" | undefined;
90
+ } & {
91
+ optional?: true | undefined;
92
+ required?: false | undefined;
41
93
  } & {
42
94
  enumerationType: "chip";
43
95
  onSearch?: undefined;
44
96
  chips?: import("../TextField/TextField.types").TextFieldPrimitiveValue[] | undefined;
45
97
  onChangeChips?: ((value: import("../TextField/TextField.types").TextFieldPrimitiveValue[]) => void) | undefined;
46
- } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size"> & import("react").RefAttributes<HTMLInputElement>))>;
98
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>))>;
47
99
  export declare const base: import("@linaria/core").LinariaClassName;
48
100
  export declare const StyledLabel: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLLabelElement> & import("react").LabelHTMLAttributes<HTMLLabelElement> & Record<never, unknown>>;
49
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4HA+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"}