@salutejs/plasma-new-hope 0.343.0-canary.2358.19857532595.0 → 0.343.0-canary.2360.19885603427.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (177) hide show
  1. package/cjs/components/Autocomplete/Autocomplete.css +28 -26
  2. package/cjs/components/Combobox/ComboboxNew/Combobox.css +28 -26
  3. package/cjs/components/DatePicker/RangeDate/RangeDate.css +28 -26
  4. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +28 -26
  5. package/cjs/components/DatePicker/SingleDate/SingleDate.css +28 -26
  6. package/cjs/components/DateTimePicker/DateTimePicker.css +28 -26
  7. package/cjs/components/DateTimePicker/ui/Input/Input.css +28 -26
  8. package/cjs/components/Pagination/Pagination.css +28 -26
  9. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +28 -26
  10. package/cjs/components/Range/Range.css +28 -26
  11. package/cjs/components/Select/Select.css +28 -26
  12. package/cjs/components/Select/ui/Target/Target.css +28 -26
  13. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.css +28 -26
  14. package/cjs/components/Slider/Slider.css +28 -26
  15. package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +28 -26
  16. package/cjs/components/Table/Table.css +28 -26
  17. package/cjs/components/Table/ui/Cell/Cell.css +28 -26
  18. package/cjs/components/Table/ui/EditableCell/EditableCell.css +28 -26
  19. package/cjs/components/Table/ui/HeadCell/HeadCell.css +28 -26
  20. package/cjs/components/Table/ui/HeadCell/ui/Filter/Filter.css +28 -26
  21. package/cjs/components/TextField/TextField.js +23 -16
  22. package/cjs/components/TextField/TextField.js.map +1 -1
  23. package/cjs/components/TextField/TextField.styles.js +18 -8
  24. package/cjs/components/TextField/TextField.styles.js.map +1 -1
  25. package/cjs/components/TextField/{TextField.styles_1pu4eym.css → TextField.styles_146520i.css} +1 -1
  26. package/cjs/components/TextField/ui/Hint/Hint.css +21 -21
  27. package/cjs/components/TextField/ui/TextFieldChipNew/TextFieldChipNew.css +23 -23
  28. package/cjs/components/TextField/variations/_clear/base.js +9 -0
  29. package/cjs/components/TextField/variations/_clear/base.js.map +1 -0
  30. package/cjs/components/TextField/variations/_clear/base_ukg8yq.css +1 -0
  31. package/cjs/components/TextField/variations/_label-placement/base.js +1 -1
  32. package/cjs/components/TextField/variations/_label-placement/base.js.map +1 -1
  33. package/{es/components/TextField/variations/_label-placement/base_o4xjq1.css → cjs/components/TextField/variations/_label-placement/base_1s0mlhj.css} +1 -1
  34. package/cjs/components/TextField/variations/_read-only/base.js +1 -1
  35. package/cjs/components/TextField/variations/_read-only/base.js.map +1 -1
  36. package/cjs/components/TextField/variations/_read-only/base_13ohoed.css +1 -0
  37. package/cjs/components/TextField/variations/_view/base.js +1 -1
  38. package/cjs/components/TextField/variations/_view/base.js.map +1 -1
  39. package/{es/components/TextField/variations/_view/base_1twy16p.css → cjs/components/TextField/variations/_view/base_1diyp23.css} +1 -1
  40. package/cjs/components/TimePicker/TimePicker.css +28 -26
  41. package/cjs/index.css +28 -26
  42. package/cjs/utils/createConditionalComponent.js +4 -8
  43. package/cjs/utils/createConditionalComponent.js.map +1 -1
  44. package/emotion/cjs/components/TextField/TextField.js +24 -17
  45. package/emotion/cjs/components/TextField/TextField.styles.js +49 -46
  46. package/emotion/cjs/components/TextField/variations/_clear/base.js +14 -0
  47. package/emotion/cjs/components/TextField/variations/_label-placement/base.js +1 -1
  48. package/emotion/cjs/components/TextField/variations/_read-only/base.js +1 -1
  49. package/emotion/cjs/components/TextField/variations/_view/base.js +1 -1
  50. package/emotion/cjs/examples/components/Combobox/Combobox.js +15 -0
  51. package/emotion/cjs/examples/components/TextField/TextField.config.js +25 -22
  52. package/emotion/cjs/examples/components/TextField/TextField.js +5 -29
  53. package/emotion/cjs/utils/createConditionalComponent.js +8 -76
  54. package/emotion/es/components/TextField/TextField.js +12 -5
  55. package/emotion/es/components/TextField/TextField.styles.js +49 -46
  56. package/emotion/es/components/TextField/variations/_clear/base.js +4 -0
  57. package/emotion/es/components/TextField/variations/_label-placement/base.js +2 -2
  58. package/emotion/es/components/TextField/variations/_read-only/base.js +1 -1
  59. package/emotion/es/components/TextField/variations/_view/base.js +2 -2
  60. package/emotion/es/examples/components/TextField/TextField.config.js +25 -22
  61. package/emotion/es/examples/components/TextField/TextField.js +2 -15
  62. package/emotion/es/utils/createConditionalComponent.js +5 -37
  63. package/es/components/Autocomplete/Autocomplete.css +28 -26
  64. package/es/components/Combobox/ComboboxNew/Combobox.css +28 -26
  65. package/es/components/DatePicker/RangeDate/RangeDate.css +28 -26
  66. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +28 -26
  67. package/es/components/DatePicker/SingleDate/SingleDate.css +28 -26
  68. package/es/components/DateTimePicker/DateTimePicker.css +28 -26
  69. package/es/components/DateTimePicker/ui/Input/Input.css +28 -26
  70. package/es/components/Pagination/Pagination.css +28 -26
  71. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +28 -26
  72. package/es/components/Range/Range.css +28 -26
  73. package/es/components/Select/Select.css +28 -26
  74. package/es/components/Select/ui/Target/Target.css +28 -26
  75. package/es/components/Select/ui/Target/ui/Textfield/Textfield.css +28 -26
  76. package/es/components/Slider/Slider.css +28 -26
  77. package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +28 -26
  78. package/es/components/Table/Table.css +28 -26
  79. package/es/components/Table/ui/Cell/Cell.css +28 -26
  80. package/es/components/Table/ui/EditableCell/EditableCell.css +28 -26
  81. package/es/components/Table/ui/HeadCell/HeadCell.css +28 -26
  82. package/es/components/Table/ui/HeadCell/ui/Filter/Filter.css +28 -26
  83. package/es/components/TextField/TextField.js +23 -16
  84. package/es/components/TextField/TextField.js.map +1 -1
  85. package/es/components/TextField/TextField.styles.js +18 -8
  86. package/es/components/TextField/TextField.styles.js.map +1 -1
  87. package/es/components/TextField/{TextField.styles_1pu4eym.css → TextField.styles_146520i.css} +1 -1
  88. package/es/components/TextField/ui/Hint/Hint.css +21 -21
  89. package/es/components/TextField/ui/TextFieldChipNew/TextFieldChipNew.css +23 -23
  90. package/es/components/TextField/variations/_clear/base.js +5 -0
  91. package/es/components/TextField/variations/_clear/base.js.map +1 -0
  92. package/es/components/TextField/variations/_clear/base_ukg8yq.css +1 -0
  93. package/es/components/TextField/variations/_label-placement/base.js +1 -1
  94. package/es/components/TextField/variations/_label-placement/base.js.map +1 -1
  95. package/{cjs/components/TextField/variations/_label-placement/base_o4xjq1.css → es/components/TextField/variations/_label-placement/base_1s0mlhj.css} +1 -1
  96. package/es/components/TextField/variations/_read-only/base.js +1 -1
  97. package/es/components/TextField/variations/_read-only/base.js.map +1 -1
  98. package/es/components/TextField/variations/_read-only/base_13ohoed.css +1 -0
  99. package/es/components/TextField/variations/_view/base.js +1 -1
  100. package/es/components/TextField/variations/_view/base.js.map +1 -1
  101. package/{cjs/components/TextField/variations/_view/base_1twy16p.css → es/components/TextField/variations/_view/base_1diyp23.css} +1 -1
  102. package/es/components/TimePicker/TimePicker.css +28 -26
  103. package/es/index.css +28 -26
  104. package/es/utils/createConditionalComponent.js +6 -10
  105. package/es/utils/createConditionalComponent.js.map +1 -1
  106. package/package.json +5 -5
  107. package/styled-components/cjs/components/TextField/TextField.js +23 -16
  108. package/styled-components/cjs/components/TextField/TextField.styles.js +32 -31
  109. package/styled-components/cjs/components/TextField/variations/_clear/base.js +52 -0
  110. package/styled-components/cjs/components/TextField/variations/_label-placement/base.js +4 -6
  111. package/styled-components/cjs/components/TextField/variations/_read-only/base.js +4 -3
  112. package/styled-components/cjs/components/TextField/variations/_view/base.js +2 -13
  113. package/styled-components/cjs/examples/components/Combobox/Combobox.js +15 -0
  114. package/styled-components/cjs/examples/components/TextField/TextField.config.js +48 -10
  115. package/styled-components/cjs/examples/components/TextField/TextField.js +5 -29
  116. package/styled-components/cjs/utils/createConditionalComponent.js +8 -76
  117. package/styled-components/es/components/TextField/TextField.js +11 -4
  118. package/styled-components/es/components/TextField/TextField.styles.js +32 -31
  119. package/styled-components/es/components/TextField/variations/_clear/base.js +42 -0
  120. package/styled-components/es/components/TextField/variations/_label-placement/base.js +5 -7
  121. package/styled-components/es/components/TextField/variations/_read-only/base.js +4 -3
  122. package/styled-components/es/components/TextField/variations/_view/base.js +3 -14
  123. package/styled-components/es/examples/components/TextField/TextField.config.js +48 -10
  124. package/styled-components/es/examples/components/TextField/TextField.js +2 -15
  125. package/styled-components/es/utils/createConditionalComponent.js +5 -37
  126. package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts +0 -8
  127. package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts.map +1 -1
  128. package/types/components/Combobox/ComboboxNew/ui/Target/Target.styles.d.ts +0 -8
  129. package/types/components/Combobox/ComboboxNew/ui/Target/Target.styles.d.ts.map +1 -1
  130. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts +0 -8
  131. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts.map +1 -1
  132. package/types/components/DateTimePicker/ui/Input/Input.styles.d.ts +0 -8
  133. package/types/components/DateTimePicker/ui/Input/Input.styles.d.ts.map +1 -1
  134. package/types/components/Range/Range.styles.d.ts +0 -8
  135. package/types/components/Range/Range.styles.d.ts.map +1 -1
  136. package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts +0 -8
  137. package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts.map +1 -1
  138. package/types/components/Slider/components/Double/Double.styles.d.ts +0 -8
  139. package/types/components/Slider/components/Double/Double.styles.d.ts.map +1 -1
  140. package/types/components/TextField/TextField.d.ts +4 -0
  141. package/types/components/TextField/TextField.d.ts.map +1 -1
  142. package/types/components/TextField/TextField.styles.d.ts +4 -1
  143. package/types/components/TextField/TextField.styles.d.ts.map +1 -1
  144. package/types/components/TextField/TextField.types.d.ts +0 -8
  145. package/types/components/TextField/TextField.types.d.ts.map +1 -1
  146. package/types/components/TextField/variations/_clear/base.d.ts +2 -0
  147. package/types/components/TextField/variations/_clear/base.d.ts.map +1 -0
  148. package/types/components/TextField/variations/_label-placement/base.d.ts.map +1 -1
  149. package/types/components/TextField/variations/_read-only/base.d.ts.map +1 -1
  150. package/types/components/TextField/variations/_view/base.d.ts.map +1 -1
  151. package/types/components/TimePicker/TimePicker.styles.d.ts +0 -8
  152. package/types/components/TimePicker/TimePicker.styles.d.ts.map +1 -1
  153. package/types/examples/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  154. package/types/examples/components/Checkbox/Checkbox.d.ts +2 -2
  155. package/types/examples/components/Checkbox/Checkbox.d.ts.map +1 -1
  156. package/types/examples/components/Chip/Chip.d.ts +2 -2
  157. package/types/examples/components/Chip/Chip.d.ts.map +1 -1
  158. package/types/examples/components/Mask/Mask.d.ts +33 -17
  159. package/types/examples/components/Mask/Mask.d.ts.map +1 -1
  160. package/types/examples/components/NumberFormat/NumberFormat.d.ts +40 -24
  161. package/types/examples/components/NumberFormat/NumberFormat.d.ts.map +1 -1
  162. package/types/examples/components/Radiobox/Radiobox.d.ts +8 -49
  163. package/types/examples/components/Radiobox/Radiobox.d.ts.map +1 -1
  164. package/types/examples/components/TextField/TextField.config.d.ts +3 -0
  165. package/types/examples/components/TextField/TextField.config.d.ts.map +1 -1
  166. package/types/examples/components/TextField/TextField.d.ts +4 -970
  167. package/types/examples/components/TextField/TextField.d.ts.map +1 -1
  168. package/types/utils/createConditionalComponent.d.ts +1 -1
  169. package/types/utils/createConditionalComponent.d.ts.map +1 -1
  170. package/cjs/components/TextField/variations/_read-only/base_2lss3j.css +0 -1
  171. package/emotion/cjs/examples/components/TextField/TextField.clear.config.js +0 -59
  172. package/emotion/es/examples/components/TextField/TextField.clear.config.js +0 -49
  173. package/es/components/TextField/variations/_read-only/base_2lss3j.css +0 -1
  174. package/styled-components/cjs/examples/components/TextField/TextField.clear.config.js +0 -670
  175. package/styled-components/es/examples/components/TextField/TextField.clear.config.js +0 -660
  176. package/types/examples/components/TextField/TextField.clear.config.d.ts +0 -48
  177. package/types/examples/components/TextField/TextField.clear.config.d.ts.map +0 -1
@@ -8,13 +8,13 @@ var mergedConfig = mergeConfig(tooltipConfig);
8
8
  var Tooltip = component(mergedConfig);
9
9
  export var InputWrapper = styled.div.withConfig({
10
10
  displayName: "TextField.styles__InputWrapper",
11
- componentId: "sc-708c1a6a-0"
11
+ componentId: "sc-a8826f8a-0"
12
12
  })([
13
13
  "position:relative;display:flex;align-items:center;box-sizing:border-box;"
14
14
  ]);
15
15
  export var InputLabelWrapper = styled.div.withConfig({
16
16
  displayName: "TextField.styles__InputLabelWrapper",
17
- componentId: "sc-708c1a6a-1"
17
+ componentId: "sc-a8826f8a-1"
18
18
  })([
19
19
  "flex:1;overflow:scroll;position:relative;width:100%;display:inline-flex;align-items:center;::-webkit-scrollbar{display:none;}scrollbar-width:none;overscroll-behavior:contain;&.",
20
20
  "{height:var(",
@@ -23,7 +23,7 @@ export var InputLabelWrapper = styled.div.withConfig({
23
23
  ], String(classes.hasChips), tokens.chipHeight, tokens.chipBorderRadius);
24
24
  export var StyledChips = styled.div.withConfig({
25
25
  displayName: "TextField.styles__StyledChips",
26
- componentId: "sc-708c1a6a-2"
26
+ componentId: "sc-a8826f8a-2"
27
27
  })([
28
28
  "display:flex;gap:var(",
29
29
  ");margin-right:var(",
@@ -32,7 +32,7 @@ export var StyledChips = styled.div.withConfig({
32
32
  ], tokens.chipGap, tokens.chipMarginRight, tokens.chipGap);
33
33
  export var Input = styled.input.withConfig({
34
34
  displayName: "TextField.styles__Input",
35
- componentId: "sc-708c1a6a-3"
35
+ componentId: "sc-a8826f8a-3"
36
36
  })([
37
37
  "box-sizing:border-box;appearance:none;border:0;padding:0;background-color:transparent;outline:none;width:100%;z-index:1;&.",
38
38
  "{",
@@ -40,7 +40,7 @@ export var Input = styled.input.withConfig({
40
40
  ], classes.inputTextEllipsis, applyEllipsis());
41
41
  export var InputContainer = styled.div.withConfig({
42
42
  displayName: "TextField.styles__InputContainer",
43
- componentId: "sc-708c1a6a-4"
43
+ componentId: "sc-a8826f8a-4"
44
44
  })([
45
45
  "position:relative;display:flex;flex:1;min-width:",
46
46
  ";",
@@ -55,7 +55,7 @@ export var InputContainer = styled.div.withConfig({
55
55
  });
56
56
  export var InputPlaceholder = styled.div.withConfig({
57
57
  displayName: "TextField.styles__InputPlaceholder",
58
- componentId: "sc-708c1a6a-5"
58
+ componentId: "sc-a8826f8a-5"
59
59
  })([
60
60
  "display:flex;position:absolute;top:0;left:0;right:0;bottom:0;z-index:0;white-space:nowrap;pointer-events:none;user-select:none;font:inherit;letter-spacing:inherit;line-height:inherit;color:var(",
61
61
  ");padding:",
@@ -66,7 +66,7 @@ export var InputPlaceholder = styled.div.withConfig({
66
66
  });
67
67
  export var InputPlaceholderValue = styled.div.withConfig({
68
68
  displayName: "TextField.styles__InputPlaceholderValue",
69
- componentId: "sc-708c1a6a-6"
69
+ componentId: "sc-a8826f8a-6"
70
70
  })([
71
71
  "&.",
72
72
  "{",
@@ -74,7 +74,7 @@ export var InputPlaceholderValue = styled.div.withConfig({
74
74
  ], classes.inputTextEllipsis, applyEllipsis());
75
75
  export var OuterLabelWrapper = styled.div.withConfig({
76
76
  displayName: "TextField.styles__OuterLabelWrapper",
77
- componentId: "sc-708c1a6a-7"
77
+ componentId: "sc-a8826f8a-7"
78
78
  })([
79
79
  "display:flex;align-items:center;white-space:",
80
80
  ";margin-bottom:",
@@ -88,43 +88,44 @@ export var OuterLabelWrapper = styled.div.withConfig({
88
88
  });
89
89
  export var TitleCaption = styled.div.withConfig({
90
90
  displayName: "TextField.styles__TitleCaption",
91
- componentId: "sc-708c1a6a-8"
91
+ componentId: "sc-a8826f8a-8"
92
92
  })([
93
93
  "display:inline-block;margin-left:auto;"
94
94
  ]);
95
95
  export var StyledIndicatorWrapper = styled.div.withConfig({
96
96
  displayName: "TextField.styles__StyledIndicatorWrapper",
97
- componentId: "sc-708c1a6a-9"
97
+ componentId: "sc-a8826f8a-9"
98
98
  })([
99
99
  "position:relative;display:inline-flex;align-items:center;"
100
100
  ]);
101
101
  export var Label = styled.label.withConfig({
102
102
  displayName: "TextField.styles__Label",
103
- componentId: "sc-708c1a6a-10"
103
+ componentId: "sc-a8826f8a-10"
104
104
  })([
105
105
  "display:inline-flex;"
106
106
  ]);
107
107
  export var StyledContentLeft = styled.div.withConfig({
108
108
  displayName: "TextField.styles__StyledContentLeft",
109
- componentId: "sc-708c1a6a-11"
109
+ componentId: "sc-a8826f8a-11"
110
110
  })([
111
- "margin:var(",
112
- ");color:var(",
113
- ");line-height:0;&:hover{color:var(",
114
- ",var(",
115
- "));}&:active{color:var(",
116
- ",var(",
117
- "));}"
118
- ], tokens.leftContentMargin, tokens.contentSlotColor, tokens.contentSlotColorHover, tokens.contentSlotColor, tokens.contentSlotColorActive, tokens.contentSlotColor);
111
+ "--private_content-slot-color:",
112
+ ";margin:var(",
113
+ ");color:var(--private_content-slot-color);line-height:0;&:hover{color:var(",
114
+ ",var(--private_content-slot-color));}&:active{color:var(",
115
+ ",var(--private_content-slot-color));}"
116
+ ], function(param) {
117
+ var isDefaultView = param.isDefaultView, isClear = param.isClear;
118
+ return !isDefaultView && isClear ? "var(".concat(tokens.clearColor, ")") : "var(".concat(tokens.contentSlotColor, ")");
119
+ }, tokens.leftContentMargin, tokens.contentSlotColorHover, tokens.contentSlotColorActive);
119
120
  export var StyledContentRightWrapper = styled.div.withConfig({
120
121
  displayName: "TextField.styles__StyledContentRightWrapper",
121
- componentId: "sc-708c1a6a-12"
122
+ componentId: "sc-a8826f8a-12"
122
123
  })([
123
124
  "display:flex;align-items:center;"
124
125
  ]);
125
126
  export var StyledContentRight = styled.div.withConfig({
126
127
  displayName: "TextField.styles__StyledContentRight",
127
- componentId: "sc-708c1a6a-13"
128
+ componentId: "sc-a8826f8a-13"
128
129
  })([
129
130
  "line-height:0;margin:var(",
130
131
  ");color:var(",
@@ -137,13 +138,13 @@ export var StyledContentRight = styled.div.withConfig({
137
138
  ], tokens.rightContentMargin, tokens.contentSlotRightColor, tokens.contentSlotColor, tokens.contentSlotRightColorHover, tokens.contentSlotColorHover, tokens.contentSlotRightColorActive, tokens.contentSlotColorActive);
138
139
  export var LeftHelper = styled.div.withConfig({
139
140
  displayName: "TextField.styles__LeftHelper",
140
- componentId: "sc-708c1a6a-14"
141
+ componentId: "sc-a8826f8a-14"
141
142
  })([
142
143
  ""
143
144
  ]);
144
145
  export var StyledTextBefore = styled.div.withConfig({
145
146
  displayName: "TextField.styles__StyledTextBefore",
146
- componentId: "sc-708c1a6a-15"
147
+ componentId: "sc-a8826f8a-15"
147
148
  })([
148
149
  "visibility:",
149
150
  ";"
@@ -153,20 +154,20 @@ export var StyledTextBefore = styled.div.withConfig({
153
154
  });
154
155
  export var StyledTextAfter = styled.div.withConfig({
155
156
  displayName: "TextField.styles__StyledTextAfter",
156
- componentId: "sc-708c1a6a-16"
157
+ componentId: "sc-a8826f8a-16"
157
158
  })([
158
159
  ""
159
160
  ]);
160
161
  export var StyledOptionalText = styled.span.withConfig({
161
162
  displayName: "TextField.styles__StyledOptionalText",
162
- componentId: "sc-708c1a6a-17"
163
+ componentId: "sc-a8826f8a-17"
163
164
  })([
164
165
  "color:var(",
165
166
  ");"
166
167
  ], tokens.optionalColor);
167
168
  export var StyledHintWrapper = styled.div.withConfig({
168
169
  displayName: "TextField.styles__StyledHintWrapper",
169
- componentId: "sc-708c1a6a-18"
170
+ componentId: "sc-a8826f8a-18"
170
171
  })([
171
172
  "display:inline-block;line-height:0;&.",
172
173
  "{position:absolute;margin:0;inset:var(",
@@ -174,14 +175,14 @@ export var StyledHintWrapper = styled.div.withConfig({
174
175
  ], classes.innerLabelPlacement, tokens.hintInnerLabelPlacementOffset);
175
176
  export var HintTargetWrapper = styled.div.withConfig({
176
177
  displayName: "TextField.styles__HintTargetWrapper",
177
- componentId: "sc-708c1a6a-19"
178
+ componentId: "sc-a8826f8a-19"
178
179
  })([
179
180
  "color:var(",
180
181
  ");display:flex;justify-content:center;align-items:center;"
181
182
  ], tokens.hintIconColor);
182
183
  export var Hint = styled(Tooltip).withConfig({
183
184
  displayName: "TextField.styles__Hint",
184
- componentId: "sc-708c1a6a-20"
185
+ componentId: "sc-a8826f8a-20"
185
186
  })([
186
187
  "",
187
188
  " .",
@@ -189,13 +190,13 @@ export var Hint = styled(Tooltip).withConfig({
189
190
  ], HintTargetWrapper, popoverClasses.root);
190
191
  export var HintIconWrapper = styled.div.withConfig({
191
192
  displayName: "TextField.styles__HintIconWrapper",
192
- componentId: "sc-708c1a6a-21"
193
+ componentId: "sc-a8826f8a-21"
193
194
  })([
194
195
  "display:flex;"
195
196
  ]);
196
197
  export var StyledIndicator = styled.div.withConfig({
197
198
  displayName: "TextField.styles__StyledIndicator",
198
- componentId: "sc-708c1a6a-22"
199
+ componentId: "sc-a8826f8a-22"
199
200
  })([
200
201
  "position:absolute;border-radius:50%;background-color:var(",
201
202
  ");&.",
@@ -0,0 +1,42 @@
1
+ import { css } from "styled-components";
2
+ import { classes, tokens } from "../../TextField.tokens";
3
+ import { Input, InputPlaceholder, InputWrapper, OuterLabelWrapper, StyledContentLeft, StyledContentRight, StyledHintWrapper, StyledIndicator } from "../../TextField.styles";
4
+ export var base = css([
5
+ "&.",
6
+ "{&[readonly] ",
7
+ ",",
8
+ "{background-color:unset;box-shadow:none;border-radius:0;padding-left:0;padding-right:0;&:hover{background-color:unset;}}",
9
+ "{margin-left:0;}",
10
+ "{margin-right:0;}&.",
11
+ "{",
12
+ "{margin-bottom:var(",
13
+ ");}}",
14
+ "{color:var(",
15
+ ");}",
16
+ "{color:var(",
17
+ ");}",
18
+ "{&.",
19
+ "{inset:var(",
20
+ ");&.",
21
+ "{inset:var(",
22
+ ");}}}&.",
23
+ "{",
24
+ "{&.",
25
+ "{inset:var(",
26
+ ");}}",
27
+ "{&.",
28
+ ".",
29
+ "{inset:var(",
30
+ ");}}}&.",
31
+ "{",
32
+ "{--plasma_private-textfield-divider-color:var(",
33
+ ");&:before{content:'';position:absolute;height:0.063rem;width:100%;bottom:0;left:0;background-color:var(--plasma_private-textfield-divider-color);transition:background-color 0.1s ease-in;}}&:not([readonly]) ",
34
+ ":hover{--plasma_private-textfield-divider-color:var( ",
35
+ ",var(",
36
+ ") );}&:not([readonly]) ",
37
+ ":focus-within{--plasma_private-textfield-divider-color:var( ",
38
+ ",var(",
39
+ ") );",
40
+ "{color:var(",
41
+ ");}}}}"
42
+ ], classes.clear, InputWrapper, InputWrapper, StyledContentLeft, StyledContentRight, classes.outerLabelPlacement, OuterLabelWrapper, tokens.clearLabelOffset, Input, tokens.clearColor, InputPlaceholder, tokens.clearPlaceholderColor, StyledIndicator, classes.innerLabelPlacement, tokens.clearIndicatorLabelPlacementInner, classes.requiredAlignRight, tokens.clearIndicatorLabelPlacementInnerRight, classes.hasHint, StyledHintWrapper, classes.innerLabelPlacement, tokens.clearHintInnerLabelPlacementOffset, StyledIndicator, classes.innerLabelPlacement, classes.requiredAlignRight, tokens.clearIndicatorHintInnerRight, classes.hasDivider, InputWrapper, String(tokens.dividerColor), InputWrapper, tokens.dividerColorHover, String(tokens.dividerColor), InputWrapper, tokens.dividerColorFocus, String(tokens.dividerColor), InputPlaceholder, tokens.clearPlaceholderColorFocus);
@@ -1,6 +1,6 @@
1
1
  import { css } from "styled-components";
2
2
  import { classes, tokens } from "../../TextField.tokens";
3
- import { Input, InputContainer, Label, StyledIndicator } from "../../TextField.styles";
3
+ import { Input, InputContainer, Label } from "../../TextField.styles";
4
4
  export var base = css([
5
5
  "&.",
6
6
  "{",
@@ -28,9 +28,7 @@ export var base = css([
28
28
  ");}",
29
29
  "{color:var(",
30
30
  ");pointer-events:none;position:absolute;top:0;display:flex;align-items:center;box-sizing:border-box;height:100%;width:100%;}&.",
31
- "{",
32
- "{&.",
33
- ".",
34
- "{inset:var(",
35
- ");}}}}"
36
- ], classes.outerLabelPlacement, Label, tokens.labelColor, classes.innerLabelPlacement, InputContainer, tokens.contentLabelInnerPadding, Input, classes.readOnlyInput, Label, Input, classes.hasValue, Label, Input, classes.keepPlaceholder, Label, tokens.placeholderColor, tokens.labelInnerPadding, tokens.labelInnerFontFamily, tokens.labelInnerFontSize, tokens.labelInnerFontStyle, tokens.labelInnerFontWeight, tokens.labelInnerLetterSpacing, tokens.labelInnerLineHeight, Label, tokens.placeholderColor, classes.hasHint, StyledIndicator, classes.innerLabelPlacement, classes.requiredAlignRight, tokens.clearIndicatorHintInnerRight);
31
+ " ",
32
+ "{color:var(",
33
+ ");}}"
34
+ ], classes.outerLabelPlacement, Label, tokens.labelColor, classes.innerLabelPlacement, InputContainer, tokens.contentLabelInnerPadding, Input, classes.readOnlyInput, Label, Input, classes.hasValue, Label, Input, classes.keepPlaceholder, Label, tokens.placeholderColor, tokens.labelInnerPadding, tokens.labelInnerFontFamily, tokens.labelInnerFontSize, tokens.labelInnerFontStyle, tokens.labelInnerFontWeight, tokens.labelInnerLetterSpacing, tokens.labelInnerLineHeight, Label, tokens.placeholderColor, classes.clear, Label, tokens.clearPlaceholderColor);
@@ -2,14 +2,15 @@ import { css } from "styled-components";
2
2
  import { classes, tokens } from "../../TextField.tokens";
3
3
  import { Input, InputPlaceholder, InputWrapper, Label, LeftHelper, StyledContentLeft, StyledContentRight, TitleCaption } from "../../TextField.styles";
4
4
  export var base = css([
5
- "&[readonly]{",
5
+ "&[readonly]{:not(&.",
6
+ "){",
6
7
  "{position:relative;z-index:0;color:var(",
7
8
  ");background:transparent;box-shadow:none;:before{position:absolute;content:'';top:0;left:0;right:0;bottom:0;border-radius:var(",
8
9
  ");background-color:var(",
9
10
  ");opacity:var(",
10
11
  ");box-shadow:inset 0 0 0 var(",
11
12
  ") var(",
12
- ");z-index:-1;}:hover{background-color:transparent;}}&.",
13
+ ");z-index:-1;}:hover{background-color:transparent;}}}&.",
13
14
  " ",
14
15
  "{&:before{background-color:var(",
15
16
  ");}}",
@@ -33,4 +34,4 @@ export var base = css([
33
34
  " ",
34
35
  "{color:var(",
35
36
  ");}}"
36
- ], InputWrapper, tokens.colorReadOnly, tokens.borderRadius, tokens.backgroundColorReadOnly, tokens.readOnlyOpacity, String(tokens.borderWidth), tokens.borderColorReadOnly, classes.hasDivider, InputWrapper, String(tokens.dividerColorReadOnly), InputWrapper, InputPlaceholder, InputPlaceholder, tokens.placeholderColorReadOnly, Input, tokens.colorReadOnly, TitleCaption, tokens.titleCaptionColorReadOnly, LeftHelper, tokens.leftHelperColorReadOnly, StyledContentLeft, StyledContentRight, tokens.contentSlotRightOpacityReadOnly, StyledContentRight, StyledContentRight, tokens.contentSlotRightColor, tokens.contentSlotColor, classes.outerLabelPlacement, Label, tokens.labelColorReadOnly);
37
+ ], classes.clear, InputWrapper, tokens.colorReadOnly, tokens.borderRadius, tokens.backgroundColorReadOnly, tokens.readOnlyOpacity, String(tokens.borderWidth), tokens.borderColorReadOnly, classes.hasDivider, InputWrapper, String(tokens.dividerColorReadOnly), InputWrapper, InputPlaceholder, InputPlaceholder, tokens.placeholderColorReadOnly, Input, tokens.colorReadOnly, TitleCaption, tokens.titleCaptionColorReadOnly, LeftHelper, tokens.leftHelperColorReadOnly, StyledContentLeft, StyledContentRight, tokens.contentSlotRightOpacityReadOnly, StyledContentRight, StyledContentRight, tokens.contentSlotRightColor, tokens.contentSlotColor, classes.outerLabelPlacement, Label, tokens.labelColorReadOnly);
@@ -1,5 +1,5 @@
1
1
  import { css } from "styled-components";
2
- import { classes, tokens } from "../../TextField.tokens";
2
+ import { tokens } from "../../TextField.tokens";
3
3
  import { Input, InputPlaceholder, InputWrapper, LeftHelper, StyledTextAfter, StyledTextBefore, TitleCaption } from "../../TextField.styles";
4
4
  export var base = css([
5
5
  "",
@@ -33,16 +33,5 @@ export var base = css([
33
33
  "{color:var(",
34
34
  ");}",
35
35
  "{color:var(",
36
- ");}&.",
37
- "{",
38
- "{--plasma_private-textfield-divider-color:var(",
39
- ");&:before{content:'';position:absolute;height:0.063rem;width:100%;bottom:0;left:0;background-color:var(--plasma_private-textfield-divider-color);transition:background-color 0.1s ease-in;}}&:not([readonly]) ",
40
- ":hover{--plasma_private-textfield-divider-color:var( ",
41
- ",var(",
42
- ") );}&:not([readonly]) ",
43
- ":focus-within{--plasma_private-textfield-divider-color:var( ",
44
- ",var(",
45
- ") );",
46
- "{color:var(",
47
- ");}}}"
48
- ], InputWrapper, String(tokens.borderColor), String(tokens.backgroundColor), tokens.color, tokens.borderWidth, tokens.boxShadow, tokens.caretColor, InputWrapper, tokens.borderColorHover, String(tokens.borderColor), tokens.backgroundColorHover, String(tokens.backgroundColor), Input, tokens.color, InputPlaceholder, tokens.placeholderColor, InputWrapper, tokens.borderColorFocus, String(tokens.borderColor), tokens.backgroundColorFocus, String(tokens.backgroundColor), InputPlaceholder, tokens.placeholderColorFocus, TitleCaption, tokens.titleCaptionColor, LeftHelper, tokens.leftHelperColor, StyledTextBefore, tokens.textBeforeColor, StyledTextAfter, tokens.textAfterColor, classes.hasDivider, InputWrapper, String(tokens.dividerColor), InputWrapper, tokens.dividerColorHover, String(tokens.dividerColor), InputWrapper, tokens.dividerColorFocus, String(tokens.dividerColor), InputPlaceholder, tokens.clearPlaceholderColorFocus);
36
+ ");}"
37
+ ], InputWrapper, String(tokens.borderColor), String(tokens.backgroundColor), tokens.color, tokens.borderWidth, tokens.boxShadow, tokens.caretColor, InputWrapper, tokens.borderColorHover, String(tokens.borderColor), tokens.backgroundColorHover, String(tokens.backgroundColor), Input, tokens.color, InputPlaceholder, tokens.placeholderColor, InputWrapper, tokens.borderColorFocus, String(tokens.borderColor), tokens.backgroundColorFocus, String(tokens.backgroundColor), InputPlaceholder, tokens.placeholderColorFocus, TitleCaption, tokens.titleCaptionColor, LeftHelper, tokens.leftHelperColor, StyledTextBefore, tokens.textBeforeColor, StyledTextAfter, tokens.textAfterColor);
@@ -11,6 +11,9 @@ export var config = {
11
11
  default: css([
12
12
  "",
13
13
  ":var(--text-primary);",
14
+ ":var(--text-primary);",
15
+ ":var(--text-secondary);",
16
+ ":var(--text-tertiary);",
14
17
  ":var(--text-secondary);",
15
18
  ":var(--text-tertiary);",
16
19
  ":var(--surface-transparent-primary);",
@@ -32,12 +35,15 @@ export var config = {
32
35
  ":var(--text-accent);",
33
36
  ":var(--surface-negative);",
34
37
  ":var(--text-tertiary);"
35
- ], tokens.color, tokens.placeholderColor, tokens.placeholderColorFocus, tokens.backgroundColor, tokens.backgroundColorHover, tokens.backgroundColorFocus, tokens.caretColor, tokens.textBeforeColor, tokens.textAfterColor, tokens.labelColor, tokens.leftHelperColor, tokens.titleCaptionColor, tokens.hintIconColor, tokens.contentSlotColor, tokens.contentSlotColorHover, tokens.contentSlotColorActive, tokens.dividerColor, tokens.dividerColorHover, tokens.dividerColorFocus, tokens.focusColor, tokens.indicatorColor, tokens.optionalColor),
38
+ ], tokens.color, tokens.clearColor, tokens.placeholderColor, tokens.placeholderColorFocus, tokens.clearPlaceholderColor, tokens.clearPlaceholderColorFocus, tokens.backgroundColor, tokens.backgroundColorHover, tokens.backgroundColorFocus, tokens.caretColor, tokens.textBeforeColor, tokens.textAfterColor, tokens.labelColor, tokens.leftHelperColor, tokens.titleCaptionColor, tokens.hintIconColor, tokens.contentSlotColor, tokens.contentSlotColorHover, tokens.contentSlotColorActive, tokens.dividerColor, tokens.dividerColorHover, tokens.dividerColorFocus, tokens.focusColor, tokens.indicatorColor, tokens.optionalColor),
36
39
  positive: css([
37
40
  "",
38
41
  ":var(--text-primary);",
42
+ ":var(--text-positive);",
39
43
  ":var(--text-secondary);",
40
44
  ":var(--text-tertiary);",
45
+ ":var(--text-positive);",
46
+ ":var(--text-positive);",
41
47
  ":var(--surface-transparent-positive);",
42
48
  ":var(--surface-transparent-positive-hover);",
43
49
  ":var(--surface-transparent-positive-active);",
@@ -57,12 +63,15 @@ export var config = {
57
63
  ":var(--text-accent);",
58
64
  ":var(--surface-negative);",
59
65
  ":var(--text-tertiary);"
60
- ], tokens.color, tokens.placeholderColor, tokens.placeholderColorFocus, tokens.backgroundColor, tokens.backgroundColorHover, tokens.backgroundColorFocus, tokens.caretColor, tokens.textBeforeColor, tokens.textAfterColor, tokens.labelColor, tokens.leftHelperColor, tokens.titleCaptionColor, tokens.hintIconColor, tokens.contentSlotColor, tokens.contentSlotColorHover, tokens.contentSlotColorActive, tokens.dividerColor, tokens.dividerColorHover, tokens.dividerColorFocus, tokens.focusColor, tokens.indicatorColor, tokens.optionalColor),
66
+ ], tokens.color, tokens.clearColor, tokens.placeholderColor, tokens.placeholderColorFocus, tokens.clearPlaceholderColor, tokens.clearPlaceholderColorFocus, tokens.backgroundColor, tokens.backgroundColorHover, tokens.backgroundColorFocus, tokens.caretColor, tokens.textBeforeColor, tokens.textAfterColor, tokens.labelColor, tokens.leftHelperColor, tokens.titleCaptionColor, tokens.hintIconColor, tokens.contentSlotColor, tokens.contentSlotColorHover, tokens.contentSlotColorActive, tokens.dividerColor, tokens.dividerColorHover, tokens.dividerColorFocus, tokens.focusColor, tokens.indicatorColor, tokens.optionalColor),
61
67
  warning: css([
62
68
  "",
63
69
  ":var(--text-primary);",
70
+ ":var(--text-warning);",
64
71
  ":var(--text-secondary);",
65
72
  ":var(--text-tertiary);",
73
+ ":var(--text-warning);",
74
+ ":var(--text-warning);",
66
75
  ":var(--surface-transparent-warning);",
67
76
  ":var(--surface-transparent-warning-hover);",
68
77
  ":var(--surface-transparent-warning-active);",
@@ -82,12 +91,15 @@ export var config = {
82
91
  ":var(--text-accent);",
83
92
  ":var(--surface-negative);",
84
93
  ":var(--text-tertiary);"
85
- ], tokens.color, tokens.placeholderColor, tokens.placeholderColorFocus, tokens.backgroundColor, tokens.backgroundColorHover, tokens.backgroundColorFocus, tokens.caretColor, tokens.textBeforeColor, tokens.textAfterColor, tokens.labelColor, tokens.leftHelperColor, tokens.titleCaptionColor, tokens.hintIconColor, tokens.contentSlotColor, tokens.contentSlotColorHover, tokens.contentSlotColorActive, tokens.dividerColor, tokens.dividerColorHover, tokens.dividerColorFocus, tokens.focusColor, tokens.indicatorColor, tokens.optionalColor),
94
+ ], tokens.color, tokens.clearColor, tokens.placeholderColor, tokens.placeholderColorFocus, tokens.clearPlaceholderColor, tokens.clearPlaceholderColorFocus, tokens.backgroundColor, tokens.backgroundColorHover, tokens.backgroundColorFocus, tokens.caretColor, tokens.textBeforeColor, tokens.textAfterColor, tokens.labelColor, tokens.leftHelperColor, tokens.titleCaptionColor, tokens.hintIconColor, tokens.contentSlotColor, tokens.contentSlotColorHover, tokens.contentSlotColorActive, tokens.dividerColor, tokens.dividerColorHover, tokens.dividerColorFocus, tokens.focusColor, tokens.indicatorColor, tokens.optionalColor),
86
95
  negative: css([
87
96
  "",
88
97
  ":var(--text-primary);",
98
+ ":var(--text-negative);",
89
99
  ":var(--text-secondary);",
90
100
  ":var(--text-tertiary);",
101
+ ":var(--text-negative);",
102
+ ":var(--text-negative);",
91
103
  ":var(--surface-transparent-negative);",
92
104
  ":var(--surface-transparent-negative-hover);",
93
105
  ":var(--surface-transparent-negative-active);",
@@ -107,7 +119,7 @@ export var config = {
107
119
  ":var(--text-accent);",
108
120
  ":var(--surface-negative);",
109
121
  ":var(--text-tertiary);"
110
- ], tokens.color, tokens.placeholderColor, tokens.placeholderColorFocus, tokens.backgroundColor, tokens.backgroundColorHover, tokens.backgroundColorFocus, tokens.caretColor, tokens.textBeforeColor, tokens.textAfterColor, tokens.labelColor, tokens.leftHelperColor, tokens.titleCaptionColor, tokens.hintIconColor, tokens.contentSlotColor, tokens.contentSlotColorHover, tokens.contentSlotColorActive, tokens.dividerColor, tokens.dividerColorHover, tokens.dividerColorFocus, tokens.focusColor, tokens.indicatorColor, tokens.optionalColor)
122
+ ], tokens.color, tokens.clearColor, tokens.placeholderColor, tokens.placeholderColorFocus, tokens.clearPlaceholderColor, tokens.clearPlaceholderColorFocus, tokens.backgroundColor, tokens.backgroundColorHover, tokens.backgroundColorFocus, tokens.caretColor, tokens.textBeforeColor, tokens.textAfterColor, tokens.labelColor, tokens.leftHelperColor, tokens.titleCaptionColor, tokens.hintIconColor, tokens.contentSlotColor, tokens.contentSlotColorHover, tokens.contentSlotColorActive, tokens.dividerColor, tokens.dividerColorHover, tokens.dividerColorFocus, tokens.focusColor, tokens.indicatorColor, tokens.optionalColor)
111
123
  },
112
124
  size: {
113
125
  xl: css([
@@ -125,6 +137,7 @@ export var config = {
125
137
  ":var(--plasma-typo-body-l-letter-spacing);",
126
138
  ":var(--plasma-typo-body-l-line-height);",
127
139
  ":0.75rem;",
140
+ ":0.25rem;",
128
141
  ":var(--plasma-typo-body-l-font-family);",
129
142
  ":var(--plasma-typo-body-l-font-size);",
130
143
  ":var(--plasma-typo-body-l-font-style);",
@@ -134,6 +147,7 @@ export var config = {
134
147
  ":-0.688rem -0.5rem;",
135
148
  ":2.375rem;",
136
149
  ":0.82rem -2.938rem auto auto;",
150
+ ":0.82rem -2.063rem auto auto;",
137
151
  ":0.25rem;",
138
152
  ":var(--plasma-typo-body-xs-font-family);",
139
153
  ":var(--plasma-typo-body-xs-font-size);",
@@ -178,8 +192,11 @@ export var config = {
178
192
  ":0 0 0 0;",
179
193
  ":0.5rem auto auto -0.75rem;",
180
194
  ":0 0 auto auto;",
181
- ":0.25rem -0.625rem auto auto;"
182
- ], tokens.height, tokens.padding, tokens.paddingWithChips, tokens.borderRadius, 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.hintMargin, tokens.hintTargetSize, tokens.hintInnerLabelPlacementOffset, tokens.titleCaptionInnerLabelOffset, tokens.titleCaptionFontFamily, tokens.titleCaptionFontSize, tokens.titleCaptionFontStyle, tokens.titleCaptionFontWeight, tokens.titleCaptionLetterSpacing, tokens.titleCaptionLineHeight, tokens.leftHelperOffset, tokens.leftHelperFontFamily, tokens.leftHelperFontSize, tokens.leftHelperFontStyle, tokens.leftHelperFontWeight, tokens.leftHelperLetterSpacing, tokens.leftHelperLineHeight, tokens.labelInnerPadding, tokens.contentLabelInnerPadding, tokens.textBeforeMargin, tokens.textAfterMargin, tokens.chipGap, tokens.chipMarginRight, tokens.chipBorderRadius, tokens.chipWidth, tokens.chipHeight, tokens.chipPadding, tokens.chipClearContentMarginLeft, tokens.chipClearContentMarginRight, tokens.chipCloseIconSize, tokens.chipFontFamily, tokens.chipFontSize, tokens.chipFontStyle, tokens.chipFontWeight, tokens.chipLetterSpacing, tokens.chipLineHeight, tokens.labelInnerFontFamily, tokens.labelInnerFontSize, tokens.labelInnerFontStyle, tokens.labelInnerFontWeight, tokens.labelInnerLetterSpacing, tokens.labelInnerLineHeight, tokens.indicatorSizeInner, tokens.indicatorSizeOuter, tokens.indicatorLabelPlacementInner, tokens.indicatorLabelPlacementOuter, tokens.indicatorLabelPlacementInnerRight, tokens.indicatorLabelPlacementOuterRight),
195
+ ":0.25rem -0.625rem auto auto;",
196
+ ":1.75rem auto auto -0.875rem;",
197
+ ":1.75rem -0.875rem auto auto;",
198
+ ":1.75rem -2.488rem auto auto;"
199
+ ], tokens.height, tokens.padding, tokens.paddingWithChips, tokens.borderRadius, tokens.leftContentMargin, tokens.rightContentMargin, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, tokens.labelOffset, tokens.clearLabelOffset, tokens.labelFontFamily, tokens.labelFontSize, tokens.labelFontStyle, tokens.labelFontWeight, tokens.labelLetterSpacing, tokens.labelLineHeight, tokens.hintMargin, tokens.hintTargetSize, tokens.hintInnerLabelPlacementOffset, tokens.clearHintInnerLabelPlacementOffset, tokens.titleCaptionInnerLabelOffset, tokens.titleCaptionFontFamily, tokens.titleCaptionFontSize, tokens.titleCaptionFontStyle, tokens.titleCaptionFontWeight, tokens.titleCaptionLetterSpacing, tokens.titleCaptionLineHeight, tokens.leftHelperOffset, tokens.leftHelperFontFamily, tokens.leftHelperFontSize, tokens.leftHelperFontStyle, tokens.leftHelperFontWeight, tokens.leftHelperLetterSpacing, tokens.leftHelperLineHeight, tokens.labelInnerPadding, tokens.contentLabelInnerPadding, tokens.textBeforeMargin, tokens.textAfterMargin, tokens.chipGap, tokens.chipMarginRight, tokens.chipBorderRadius, tokens.chipWidth, tokens.chipHeight, tokens.chipPadding, tokens.chipClearContentMarginLeft, tokens.chipClearContentMarginRight, tokens.chipCloseIconSize, tokens.chipFontFamily, tokens.chipFontSize, tokens.chipFontStyle, tokens.chipFontWeight, tokens.chipLetterSpacing, tokens.chipLineHeight, tokens.labelInnerFontFamily, tokens.labelInnerFontSize, tokens.labelInnerFontStyle, tokens.labelInnerFontWeight, tokens.labelInnerLetterSpacing, tokens.labelInnerLineHeight, tokens.indicatorSizeInner, tokens.indicatorSizeOuter, tokens.indicatorLabelPlacementInner, tokens.indicatorLabelPlacementOuter, tokens.indicatorLabelPlacementInnerRight, tokens.indicatorLabelPlacementOuterRight, tokens.clearIndicatorLabelPlacementInner, tokens.clearIndicatorLabelPlacementInnerRight, tokens.clearIndicatorHintInnerRight),
183
200
  l: css([
184
201
  "",
185
202
  ":3.5rem;",
@@ -199,6 +216,7 @@ export var config = {
199
216
  ":var(--plasma-typo-body-l-letter-spacing);",
200
217
  ":var(--plasma-typo-body-l-line-height);",
201
218
  ":0.75rem;",
219
+ ":0.25rem;",
202
220
  ":var(--plasma-typo-body-l-font-family);",
203
221
  ":var(--plasma-typo-body-l-font-size);",
204
222
  ":var(--plasma-typo-body-l-font-style);",
@@ -245,9 +263,12 @@ export var config = {
245
263
  ":0.5rem auto auto -0.75rem;",
246
264
  ":0 0 auto auto;",
247
265
  ":0.25rem -0.625rem auto auto;",
266
+ ":1.5rem auto auto -0.875rem;",
267
+ ":1.5rem -0.875rem auto auto;",
268
+ ":1.5rem -2.488rem auto auto;",
248
269
  ":0 0.25rem 0 0;",
249
270
  ":0 0 0 0.25rem;"
250
- ], tokens.height, tokens.padding, tokens.paddingWithChips, tokens.borderRadius, tokens.borderWidth, tokens.leftContentMargin, tokens.rightContentMargin, tokens.rightContentWithHintMargin, tokens.contentRightWrapperGap, tokens.contentRightWrapperMargin, 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.hintMargin, tokens.hintTargetSize, tokens.hintInnerLabelPlacementOffset, tokens.clearHintInnerLabelPlacementOffset, tokens.titleCaptionInnerLabelOffset, tokens.titleCaptionFontFamily, tokens.titleCaptionFontSize, tokens.titleCaptionFontStyle, tokens.titleCaptionFontWeight, tokens.titleCaptionLetterSpacing, tokens.titleCaptionLineHeight, tokens.leftHelperOffset, tokens.leftHelperFontFamily, tokens.leftHelperFontSize, tokens.leftHelperFontStyle, tokens.leftHelperFontWeight, tokens.leftHelperLetterSpacing, tokens.leftHelperLineHeight, tokens.labelInnerPadding, tokens.contentLabelInnerPadding, tokens.chipGap, tokens.chipBorderRadius, tokens.chipWidth, tokens.chipHeight, tokens.chipPadding, tokens.chipClearContentMarginLeft, tokens.chipClearContentMarginRight, tokens.chipCloseIconSize, tokens.chipFontFamily, tokens.chipFontSize, tokens.chipFontStyle, tokens.chipFontWeight, tokens.chipLetterSpacing, tokens.chipLineHeight, tokens.indicatorSizeInner, tokens.indicatorSizeOuter, tokens.indicatorLabelPlacementInner, tokens.indicatorLabelPlacementOuter, tokens.indicatorLabelPlacementInnerRight, tokens.indicatorLabelPlacementOuterRight, tokens.textBeforeMargin, tokens.textAfterMargin),
271
+ ], tokens.height, tokens.padding, tokens.paddingWithChips, tokens.borderRadius, tokens.borderWidth, tokens.leftContentMargin, tokens.rightContentMargin, tokens.rightContentWithHintMargin, tokens.contentRightWrapperGap, tokens.contentRightWrapperMargin, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, tokens.labelOffset, tokens.clearLabelOffset, tokens.labelFontFamily, tokens.labelFontSize, tokens.labelFontStyle, tokens.labelFontWeight, tokens.labelLetterSpacing, tokens.labelLineHeight, tokens.hintMargin, tokens.hintTargetSize, tokens.hintInnerLabelPlacementOffset, tokens.clearHintInnerLabelPlacementOffset, tokens.titleCaptionInnerLabelOffset, tokens.titleCaptionFontFamily, tokens.titleCaptionFontSize, tokens.titleCaptionFontStyle, tokens.titleCaptionFontWeight, tokens.titleCaptionLetterSpacing, tokens.titleCaptionLineHeight, tokens.leftHelperOffset, tokens.leftHelperFontFamily, tokens.leftHelperFontSize, tokens.leftHelperFontStyle, tokens.leftHelperFontWeight, tokens.leftHelperLetterSpacing, tokens.leftHelperLineHeight, tokens.labelInnerPadding, tokens.contentLabelInnerPadding, tokens.chipGap, tokens.chipBorderRadius, tokens.chipWidth, tokens.chipHeight, tokens.chipPadding, tokens.chipClearContentMarginLeft, tokens.chipClearContentMarginRight, tokens.chipCloseIconSize, tokens.chipFontFamily, tokens.chipFontSize, tokens.chipFontStyle, tokens.chipFontWeight, tokens.chipLetterSpacing, tokens.chipLineHeight, tokens.indicatorSizeInner, tokens.indicatorSizeOuter, tokens.indicatorLabelPlacementInner, tokens.indicatorLabelPlacementOuter, tokens.indicatorLabelPlacementInnerRight, tokens.indicatorLabelPlacementOuterRight, tokens.clearIndicatorLabelPlacementInner, tokens.clearIndicatorLabelPlacementInnerRight, tokens.clearIndicatorHintInnerRight, tokens.textBeforeMargin, tokens.textAfterMargin),
251
272
  m: css([
252
273
  "",
253
274
  ":3rem;",
@@ -267,6 +288,7 @@ export var config = {
267
288
  ":var(--plasma-typo-body-m-letter-spacing);",
268
289
  ":var(--plasma-typo-body-m-line-height);",
269
290
  ":0.625rem;",
291
+ ":0.25rem;",
270
292
  ":var(--plasma-typo-body-m-font-family);",
271
293
  ":var(--plasma-typo-body-m-font-size);",
272
294
  ":var(--plasma-typo-body-m-font-style);",
@@ -313,9 +335,12 @@ export var config = {
313
335
  ":0.375rem auto auto -0.75rem;",
314
336
  ":0 0 auto auto;",
315
337
  ":0.25rem -0.6875rem auto auto;",
338
+ ":1.25rem auto auto -0.875rem;",
339
+ ":1.25rem -0.875rem auto auto;",
340
+ ":1.25rem -2.488rem auto auto;",
316
341
  ":0 0.25rem 0 0;",
317
342
  ":0 0 0 0.25rem;"
318
- ], tokens.height, tokens.padding, tokens.paddingWithChips, tokens.borderRadius, tokens.borderWidth, tokens.leftContentMargin, tokens.rightContentMargin, tokens.rightContentWithHintMargin, tokens.contentRightWrapperGap, tokens.contentRightWrapperMargin, 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.hintMargin, tokens.hintTargetSize, tokens.hintInnerLabelPlacementOffset, tokens.clearHintInnerLabelPlacementOffset, tokens.titleCaptionInnerLabelOffset, tokens.titleCaptionFontFamily, tokens.titleCaptionFontSize, tokens.titleCaptionFontStyle, tokens.titleCaptionFontWeight, tokens.titleCaptionLetterSpacing, tokens.titleCaptionLineHeight, tokens.leftHelperOffset, tokens.leftHelperFontFamily, tokens.leftHelperFontSize, tokens.leftHelperFontStyle, tokens.leftHelperFontWeight, tokens.leftHelperLetterSpacing, tokens.leftHelperLineHeight, tokens.labelInnerPadding, tokens.contentLabelInnerPadding, tokens.chipGap, tokens.chipBorderRadius, tokens.chipWidth, tokens.chipHeight, tokens.chipPadding, tokens.chipClearContentMarginLeft, tokens.chipClearContentMarginRight, tokens.chipCloseIconSize, tokens.chipFontFamily, tokens.chipFontSize, tokens.chipFontStyle, tokens.chipFontWeight, tokens.chipLetterSpacing, tokens.chipLineHeight, tokens.indicatorSizeInner, tokens.indicatorSizeOuter, tokens.indicatorLabelPlacementInner, tokens.indicatorLabelPlacementOuter, tokens.indicatorLabelPlacementInnerRight, tokens.indicatorLabelPlacementOuterRight, tokens.textBeforeMargin, tokens.textAfterMargin),
343
+ ], tokens.height, tokens.padding, tokens.paddingWithChips, tokens.borderRadius, tokens.borderWidth, tokens.leftContentMargin, tokens.rightContentMargin, tokens.rightContentWithHintMargin, tokens.contentRightWrapperGap, tokens.contentRightWrapperMargin, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, tokens.labelOffset, tokens.clearLabelOffset, tokens.labelFontFamily, tokens.labelFontSize, tokens.labelFontStyle, tokens.labelFontWeight, tokens.labelLetterSpacing, tokens.labelLineHeight, tokens.hintMargin, tokens.hintTargetSize, tokens.hintInnerLabelPlacementOffset, tokens.clearHintInnerLabelPlacementOffset, tokens.titleCaptionInnerLabelOffset, tokens.titleCaptionFontFamily, tokens.titleCaptionFontSize, tokens.titleCaptionFontStyle, tokens.titleCaptionFontWeight, tokens.titleCaptionLetterSpacing, tokens.titleCaptionLineHeight, tokens.leftHelperOffset, tokens.leftHelperFontFamily, tokens.leftHelperFontSize, tokens.leftHelperFontStyle, tokens.leftHelperFontWeight, tokens.leftHelperLetterSpacing, tokens.leftHelperLineHeight, tokens.labelInnerPadding, tokens.contentLabelInnerPadding, tokens.chipGap, tokens.chipBorderRadius, tokens.chipWidth, tokens.chipHeight, tokens.chipPadding, tokens.chipClearContentMarginLeft, tokens.chipClearContentMarginRight, tokens.chipCloseIconSize, tokens.chipFontFamily, tokens.chipFontSize, tokens.chipFontStyle, tokens.chipFontWeight, tokens.chipLetterSpacing, tokens.chipLineHeight, tokens.indicatorSizeInner, tokens.indicatorSizeOuter, tokens.indicatorLabelPlacementInner, tokens.indicatorLabelPlacementOuter, tokens.indicatorLabelPlacementInnerRight, tokens.indicatorLabelPlacementOuterRight, tokens.clearIndicatorLabelPlacementInner, tokens.clearIndicatorLabelPlacementInnerRight, tokens.clearIndicatorHintInnerRight, tokens.textBeforeMargin, tokens.textAfterMargin),
319
344
  s: css([
320
345
  "",
321
346
  ":2.5rem;",
@@ -335,6 +360,7 @@ export var config = {
335
360
  ":var(--plasma-typo-body-s-letter-spacing);",
336
361
  ":var(--plasma-typo-body-s-line-height);",
337
362
  ":0.5rem;",
363
+ ":0.25rem;",
338
364
  ":var(--plasma-typo-body-s-font-family);",
339
365
  ":var(--plasma-typo-body-s-font-size);",
340
366
  ":var(--plasma-typo-body-s-font-style);",
@@ -381,9 +407,12 @@ export var config = {
381
407
  ":0.3125rem auto auto -0.6875rem;",
382
408
  ":0 0 auto auto;",
383
409
  ":0.25rem -0.625rem auto auto;",
410
+ ":1.063rem auto auto -0.75rem;",
411
+ ":1.063rem -0.75rem auto auto;",
412
+ ":1.063rem -2.238rem auto auto;",
384
413
  ":0 0.25rem 0 0;",
385
414
  ":0 0 0 0.25rem;"
386
- ], tokens.height, tokens.padding, tokens.paddingWithChips, tokens.borderRadius, tokens.borderWidth, tokens.leftContentMargin, tokens.rightContentMargin, tokens.rightContentWithHintMargin, tokens.contentRightWrapperGap, tokens.contentRightWrapperMargin, 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.hintMargin, tokens.hintTargetSize, tokens.hintInnerLabelPlacementOffset, tokens.clearHintInnerLabelPlacementOffset, tokens.titleCaptionInnerLabelOffset, tokens.titleCaptionFontFamily, tokens.titleCaptionFontSize, tokens.titleCaptionFontStyle, tokens.titleCaptionFontWeight, tokens.titleCaptionLetterSpacing, tokens.titleCaptionLineHeight, tokens.leftHelperOffset, tokens.leftHelperFontFamily, tokens.leftHelperFontSize, tokens.leftHelperFontStyle, tokens.leftHelperFontWeight, tokens.leftHelperLetterSpacing, tokens.leftHelperLineHeight, tokens.labelInnerPadding, tokens.contentLabelInnerPadding, tokens.chipGap, tokens.chipBorderRadius, tokens.chipWidth, tokens.chipHeight, tokens.chipPadding, tokens.chipClearContentMarginLeft, tokens.chipClearContentMarginRight, tokens.chipCloseIconSize, tokens.chipFontFamily, tokens.chipFontSize, tokens.chipFontStyle, tokens.chipFontWeight, tokens.chipLetterSpacing, tokens.chipLineHeight, tokens.indicatorSizeInner, tokens.indicatorSizeOuter, tokens.indicatorLabelPlacementInner, tokens.indicatorLabelPlacementOuter, tokens.indicatorLabelPlacementInnerRight, tokens.indicatorLabelPlacementOuterRight, tokens.textBeforeMargin, tokens.textAfterMargin),
415
+ ], tokens.height, tokens.padding, tokens.paddingWithChips, tokens.borderRadius, tokens.borderWidth, tokens.leftContentMargin, tokens.rightContentMargin, tokens.rightContentWithHintMargin, tokens.contentRightWrapperGap, tokens.contentRightWrapperMargin, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, tokens.labelOffset, tokens.clearLabelOffset, tokens.labelFontFamily, tokens.labelFontSize, tokens.labelFontStyle, tokens.labelFontWeight, tokens.labelLetterSpacing, tokens.labelLineHeight, tokens.hintMargin, tokens.hintTargetSize, tokens.hintInnerLabelPlacementOffset, tokens.clearHintInnerLabelPlacementOffset, tokens.titleCaptionInnerLabelOffset, tokens.titleCaptionFontFamily, tokens.titleCaptionFontSize, tokens.titleCaptionFontStyle, tokens.titleCaptionFontWeight, tokens.titleCaptionLetterSpacing, tokens.titleCaptionLineHeight, tokens.leftHelperOffset, tokens.leftHelperFontFamily, tokens.leftHelperFontSize, tokens.leftHelperFontStyle, tokens.leftHelperFontWeight, tokens.leftHelperLetterSpacing, tokens.leftHelperLineHeight, tokens.labelInnerPadding, tokens.contentLabelInnerPadding, tokens.chipGap, tokens.chipBorderRadius, tokens.chipWidth, tokens.chipHeight, tokens.chipPadding, tokens.chipClearContentMarginLeft, tokens.chipClearContentMarginRight, tokens.chipCloseIconSize, tokens.chipFontFamily, tokens.chipFontSize, tokens.chipFontStyle, tokens.chipFontWeight, tokens.chipLetterSpacing, tokens.chipLineHeight, tokens.indicatorSizeInner, tokens.indicatorSizeOuter, tokens.indicatorLabelPlacementInner, tokens.indicatorLabelPlacementOuter, tokens.indicatorLabelPlacementInnerRight, tokens.indicatorLabelPlacementOuterRight, tokens.clearIndicatorLabelPlacementInner, tokens.clearIndicatorLabelPlacementInnerRight, tokens.clearIndicatorHintInnerRight, tokens.textBeforeMargin, tokens.textAfterMargin),
387
416
  xs: css([
388
417
  "",
389
418
  ":2rem;",
@@ -403,6 +432,7 @@ export var config = {
403
432
  ":var(--plasma-typo-body-xs-letter-spacing);",
404
433
  ":var(--plasma-typo-body-xs-line-height);",
405
434
  ":0.375rem;",
435
+ ":0.25rem;",
406
436
  ":var(--plasma-typo-body-xs-font-family);",
407
437
  ":var(--plasma-typo-body-xs-font-size);",
408
438
  ":var(--plasma-typo-body-xs-font-style);",
@@ -449,9 +479,12 @@ export var config = {
449
479
  ":0.25rem auto auto -0.625rem;",
450
480
  ":0 0 auto auto;",
451
481
  ":0.125rem -0.6875rem auto auto;",
482
+ ":0.813rem auto auto -0.625rem;",
483
+ ":0.813rem -0.625rem auto auto;",
484
+ ":0.813rem -1.988rem auto auto;",
452
485
  ":0 0.25rem 0 0;",
453
486
  ":0 0 0 0.25rem;"
454
- ], tokens.height, tokens.padding, tokens.paddingWithChips, tokens.borderRadius, tokens.borderWidth, tokens.leftContentMargin, tokens.rightContentMargin, tokens.rightContentWithHintMargin, tokens.contentRightWrapperGap, tokens.contentRightWrapperMargin, 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.hintMargin, tokens.hintTargetSize, tokens.hintInnerLabelPlacementOffset, tokens.clearHintInnerLabelPlacementOffset, tokens.titleCaptionInnerLabelOffset, tokens.titleCaptionFontFamily, tokens.titleCaptionFontSize, tokens.titleCaptionFontStyle, tokens.titleCaptionFontWeight, tokens.titleCaptionLetterSpacing, tokens.titleCaptionLineHeight, tokens.leftHelperOffset, tokens.leftHelperFontFamily, tokens.leftHelperFontSize, tokens.leftHelperFontStyle, tokens.leftHelperFontWeight, tokens.leftHelperLetterSpacing, tokens.leftHelperLineHeight, tokens.labelInnerPadding, tokens.contentLabelInnerPadding, tokens.chipGap, tokens.chipBorderRadius, tokens.chipWidth, tokens.chipHeight, tokens.chipPadding, tokens.chipClearContentMarginLeft, tokens.chipClearContentMarginRight, tokens.chipCloseIconSize, tokens.chipFontFamily, tokens.chipFontSize, tokens.chipFontStyle, tokens.chipFontWeight, tokens.chipLetterSpacing, tokens.chipLineHeight, tokens.indicatorSizeInner, tokens.indicatorSizeOuter, tokens.indicatorLabelPlacementInner, tokens.indicatorLabelPlacementOuter, tokens.indicatorLabelPlacementInnerRight, tokens.indicatorLabelPlacementOuterRight, tokens.textBeforeMargin, tokens.textAfterMargin)
487
+ ], tokens.height, tokens.padding, tokens.paddingWithChips, tokens.borderRadius, tokens.borderWidth, tokens.leftContentMargin, tokens.rightContentMargin, tokens.rightContentWithHintMargin, tokens.contentRightWrapperGap, tokens.contentRightWrapperMargin, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, tokens.labelOffset, tokens.clearLabelOffset, tokens.labelFontFamily, tokens.labelFontSize, tokens.labelFontStyle, tokens.labelFontWeight, tokens.labelLetterSpacing, tokens.labelLineHeight, tokens.hintMargin, tokens.hintTargetSize, tokens.hintInnerLabelPlacementOffset, tokens.clearHintInnerLabelPlacementOffset, tokens.titleCaptionInnerLabelOffset, tokens.titleCaptionFontFamily, tokens.titleCaptionFontSize, tokens.titleCaptionFontStyle, tokens.titleCaptionFontWeight, tokens.titleCaptionLetterSpacing, tokens.titleCaptionLineHeight, tokens.leftHelperOffset, tokens.leftHelperFontFamily, tokens.leftHelperFontSize, tokens.leftHelperFontStyle, tokens.leftHelperFontWeight, tokens.leftHelperLetterSpacing, tokens.leftHelperLineHeight, tokens.labelInnerPadding, tokens.contentLabelInnerPadding, tokens.chipGap, tokens.chipBorderRadius, tokens.chipWidth, tokens.chipHeight, tokens.chipPadding, tokens.chipClearContentMarginLeft, tokens.chipClearContentMarginRight, tokens.chipCloseIconSize, tokens.chipFontFamily, tokens.chipFontSize, tokens.chipFontStyle, tokens.chipFontWeight, tokens.chipLetterSpacing, tokens.chipLineHeight, tokens.indicatorSizeInner, tokens.indicatorSizeOuter, tokens.indicatorLabelPlacementInner, tokens.indicatorLabelPlacementOuter, tokens.indicatorLabelPlacementInnerRight, tokens.indicatorLabelPlacementOuterRight, tokens.clearIndicatorLabelPlacementInner, tokens.clearIndicatorLabelPlacementInnerRight, tokens.clearIndicatorHintInnerRight, tokens.textBeforeMargin, tokens.textAfterMargin)
455
488
  },
456
489
  labelPlacement: {
457
490
  inner: css([
@@ -468,6 +501,11 @@ export var config = {
468
501
  ""
469
502
  ])
470
503
  },
504
+ clear: {
505
+ true: css([
506
+ ""
507
+ ])
508
+ },
471
509
  chipView: {
472
510
  default: css([
473
511
  "",
@@ -1,18 +1,5 @@
1
- import { createConditionalComponent } from "../../../utils";
2
1
  import { component, mergeConfig } from "../../../engines";
3
2
  import { textFieldConfig } from "../../../components/TextField";
4
3
  import { config } from "./TextField.config";
5
- import { config as clearConfig } from "./TextField.clear.config";
6
- var mergedConfigDefault = mergeConfig(textFieldConfig, config);
7
- export var TextFieldDefault = component(mergedConfigDefault);
8
- var mergedConfigClear = mergeConfig(textFieldConfig, clearConfig);
9
- export var TextFieldClear = component(mergedConfigClear);
10
- export var TextField = createConditionalComponent(TextFieldDefault, [
11
- {
12
- conditions: {
13
- prop: 'appearance',
14
- value: 'clear'
15
- },
16
- component: TextFieldClear
17
- }
18
- ]);
4
+ var mergedConfig = mergeConfig(textFieldConfig, config);
5
+ export var TextField = component(mergedConfig);
@@ -1,35 +1,7 @@
1
- function _define_property(obj, key, value) {
2
- if (key in obj) {
3
- Object.defineProperty(obj, key, {
4
- value: value,
5
- enumerable: true,
6
- configurable: true,
7
- writable: true
8
- });
9
- } else {
10
- obj[key] = value;
11
- }
12
- return obj;
13
- }
14
- function _object_spread(target) {
15
- for(var i = 1; i < arguments.length; i++){
16
- var source = arguments[i] != null ? arguments[i] : {};
17
- var ownKeys = Object.keys(source);
18
- if (typeof Object.getOwnPropertySymbols === "function") {
19
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
20
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
21
- }));
22
- }
23
- ownKeys.forEach(function(key) {
24
- _define_property(target, key, source[key]);
25
- });
26
- }
27
- return target;
28
- }
29
- import React, { forwardRef } from "react";
1
+ import React from "react";
30
2
  // TODO: Поправить типы, если внутри услвовия типы не совпадают
31
3
  export function createConditionalComponent(defaultComponent, mappings) {
32
- return /*#__PURE__*/ forwardRef(function(props, ref) {
4
+ return function(props) {
33
5
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
34
6
  try {
35
7
  for(var _iterator = mappings[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
@@ -44,9 +16,7 @@ export function createConditionalComponent(defaultComponent, mappings) {
44
16
  });
45
17
  if (allConditionsMatch) {
46
18
  var Component = component;
47
- return /*#__PURE__*/ React.createElement(Component, _object_spread({
48
- ref: ref
49
- }, props));
19
+ return /*#__PURE__*/ React.createElement(Component, props);
50
20
  }
51
21
  }
52
22
  } catch (err) {
@@ -64,8 +34,6 @@ export function createConditionalComponent(defaultComponent, mappings) {
64
34
  }
65
35
  }
66
36
  var DefaultComponent = defaultComponent;
67
- return /*#__PURE__*/ React.createElement(DefaultComponent, _object_spread({
68
- ref: ref
69
- }, props));
70
- });
37
+ return /*#__PURE__*/ React.createElement(DefaultComponent, props);
38
+ };
71
39
  }