@salutejs/plasma-new-hope 0.229.0-canary.1666.12456056975.0 → 0.230.0-canary.1670.12462995068.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (218) hide show
  1. package/cjs/components/Breadcrumbs/Breadcrumbs.js +1 -2
  2. package/cjs/components/Breadcrumbs/Breadcrumbs.js.map +1 -1
  3. package/cjs/components/Breadcrumbs/utils/index.js +38 -0
  4. package/cjs/components/Breadcrumbs/utils/index.js.map +1 -1
  5. package/cjs/components/Calendar/utils/getDateWithModification.js.map +1 -1
  6. package/cjs/components/Combobox/ComboboxNew/Combobox.js +3 -2
  7. package/cjs/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  8. package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.css +75 -0
  9. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +112 -0
  10. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +2 -2
  11. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js.map +1 -1
  12. package/cjs/components/Dropdown/Dropdown.js +3 -2
  13. package/cjs/components/Dropdown/Dropdown.js.map +1 -1
  14. package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +1 -1
  15. package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +1 -1
  16. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.css +25 -0
  17. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +2 -2
  18. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  19. package/cjs/components/Select/Select.js +3 -2
  20. package/cjs/components/Select/Select.js.map +1 -1
  21. package/cjs/components/Select/ui/Inner/Inner.css +109 -0
  22. package/cjs/components/Select/ui/Inner/Inner.js +1 -1
  23. package/cjs/components/Select/ui/Inner/Inner.js.map +1 -1
  24. package/cjs/components/Select/ui/Inner/ui/Item/Item.css +112 -0
  25. package/cjs/components/Select/ui/Inner/ui/Item/Item.js +2 -2
  26. package/cjs/components/Select/ui/Inner/ui/Item/Item.js.map +1 -1
  27. package/cjs/components/Slider/components/Double/Double.css +91 -0
  28. package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +7 -0
  29. package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js.map +1 -1
  30. package/cjs/components/TextArea/TextArea.js +6 -0
  31. package/cjs/components/TextArea/TextArea.js.map +1 -1
  32. package/cjs/components/TextField/TextField.js +1 -0
  33. package/cjs/components/TextField/TextField.js.map +1 -1
  34. package/cjs/engines/common.js +36 -0
  35. package/cjs/engines/common.js.map +1 -1
  36. package/cjs/engines/linaria.js +3 -3
  37. package/cjs/engines/linaria.js.map +1 -1
  38. package/emotion/cjs/components/Breadcrumbs/Breadcrumbs.js +1 -2
  39. package/emotion/cjs/components/Breadcrumbs/utils/index.js +37 -1
  40. package/emotion/cjs/components/Calendar/utils/getDateWithModification.js +3 -3
  41. package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.js +4 -3
  42. package/emotion/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -1
  43. package/emotion/cjs/components/Dropdown/Dropdown.js +4 -3
  44. package/emotion/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +3 -3
  45. package/emotion/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +1 -1
  46. package/emotion/cjs/components/Select/Select.js +4 -3
  47. package/emotion/cjs/components/Select/ui/Inner/Inner.js +3 -3
  48. package/emotion/cjs/components/Select/ui/Inner/ui/Item/Item.js +1 -1
  49. package/emotion/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js +3 -3
  50. package/emotion/cjs/components/TextArea/TextArea.js +7 -1
  51. package/emotion/cjs/components/TextField/TextField.js +2 -1
  52. package/emotion/cjs/engines/common.js +42 -2
  53. package/emotion/cjs/engines/emotion.js +4 -4
  54. package/emotion/cjs/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +71 -8
  55. package/emotion/cjs/examples/plasma_web/components/TextArea/TextArea.stories.tsx +69 -7
  56. package/emotion/es/components/Breadcrumbs/Breadcrumbs.js +1 -2
  57. package/emotion/es/components/Breadcrumbs/utils/index.js +35 -0
  58. package/emotion/es/components/Calendar/utils/getDateWithModification.js +1 -1
  59. package/emotion/es/components/Combobox/ComboboxNew/Combobox.js +2 -2
  60. package/emotion/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -1
  61. package/emotion/es/components/Dropdown/Dropdown.js +2 -2
  62. package/emotion/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +1 -1
  63. package/emotion/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +1 -1
  64. package/emotion/es/components/Select/Select.js +2 -2
  65. package/emotion/es/components/Select/ui/Inner/Inner.js +1 -1
  66. package/emotion/es/components/Select/ui/Inner/ui/Item/Item.js +1 -1
  67. package/emotion/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js +1 -1
  68. package/emotion/es/components/TextArea/TextArea.js +8 -2
  69. package/emotion/es/components/TextField/TextField.js +2 -1
  70. package/emotion/es/engines/common.js +40 -0
  71. package/emotion/es/engines/emotion.js +2 -2
  72. package/emotion/es/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +71 -8
  73. package/emotion/es/examples/plasma_web/components/TextArea/TextArea.stories.tsx +69 -7
  74. package/es/components/Breadcrumbs/Breadcrumbs.js +1 -2
  75. package/es/components/Breadcrumbs/Breadcrumbs.js.map +1 -1
  76. package/es/components/Breadcrumbs/utils/index.js +37 -1
  77. package/es/components/Breadcrumbs/utils/index.js.map +1 -1
  78. package/es/components/Calendar/utils/getDateWithModification.js.map +1 -1
  79. package/es/components/Combobox/ComboboxNew/Combobox.js +3 -3
  80. package/es/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  81. package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.css +75 -0
  82. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +112 -0
  83. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -1
  84. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js.map +1 -1
  85. package/es/components/Dropdown/Dropdown.js +3 -3
  86. package/es/components/Dropdown/Dropdown.js.map +1 -1
  87. package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +1 -1
  88. package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +1 -1
  89. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.css +25 -0
  90. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +1 -1
  91. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  92. package/es/components/Select/Select.js +3 -3
  93. package/es/components/Select/Select.js.map +1 -1
  94. package/es/components/Select/ui/Inner/Inner.css +109 -0
  95. package/es/components/Select/ui/Inner/Inner.js +1 -1
  96. package/es/components/Select/ui/Inner/Inner.js.map +1 -1
  97. package/es/components/Select/ui/Inner/ui/Item/Item.css +112 -0
  98. package/es/components/Select/ui/Inner/ui/Item/Item.js +1 -1
  99. package/es/components/Select/ui/Inner/ui/Item/Item.js.map +1 -1
  100. package/es/components/Slider/components/Double/Double.css +91 -0
  101. package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +7 -0
  102. package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js.map +1 -1
  103. package/es/components/TextArea/TextArea.js +7 -1
  104. package/es/components/TextArea/TextArea.js.map +1 -1
  105. package/es/components/TextField/TextField.js +1 -0
  106. package/es/components/TextField/TextField.js.map +1 -1
  107. package/es/engines/common.js +36 -2
  108. package/es/engines/common.js.map +1 -1
  109. package/es/engines/linaria.js +1 -1
  110. package/es/engines/linaria.js.map +1 -1
  111. package/package.json +5 -17
  112. package/styled-components/cjs/components/Breadcrumbs/Breadcrumbs.js +1 -2
  113. package/styled-components/cjs/components/Breadcrumbs/utils/index.js +37 -1
  114. package/styled-components/cjs/components/Calendar/utils/getDateWithModification.js +3 -3
  115. package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.js +4 -3
  116. package/styled-components/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -1
  117. package/styled-components/cjs/components/Dropdown/Dropdown.js +4 -3
  118. package/styled-components/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +3 -3
  119. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +1 -1
  120. package/styled-components/cjs/components/Select/Select.js +4 -3
  121. package/styled-components/cjs/components/Select/ui/Inner/Inner.js +3 -3
  122. package/styled-components/cjs/components/Select/ui/Inner/ui/Item/Item.js +1 -1
  123. package/styled-components/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js +3 -3
  124. package/styled-components/cjs/components/TextArea/TextArea.js +6 -0
  125. package/styled-components/cjs/components/TextField/TextField.js +1 -0
  126. package/styled-components/cjs/engines/common.js +42 -2
  127. package/styled-components/cjs/engines/styled-components.js +3 -3
  128. package/styled-components/cjs/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +71 -8
  129. package/styled-components/cjs/examples/plasma_web/components/TextArea/TextArea.stories.tsx +69 -7
  130. package/styled-components/es/components/Breadcrumbs/Breadcrumbs.js +1 -2
  131. package/styled-components/es/components/Breadcrumbs/utils/index.js +35 -0
  132. package/styled-components/es/components/Calendar/utils/getDateWithModification.js +1 -1
  133. package/styled-components/es/components/Combobox/ComboboxNew/Combobox.js +2 -2
  134. package/styled-components/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -1
  135. package/styled-components/es/components/Dropdown/Dropdown.js +2 -2
  136. package/styled-components/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +1 -1
  137. package/styled-components/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +1 -1
  138. package/styled-components/es/components/Select/Select.js +2 -2
  139. package/styled-components/es/components/Select/ui/Inner/Inner.js +1 -1
  140. package/styled-components/es/components/Select/ui/Inner/ui/Item/Item.js +1 -1
  141. package/styled-components/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js +1 -1
  142. package/styled-components/es/components/TextArea/TextArea.js +7 -1
  143. package/styled-components/es/components/TextField/TextField.js +1 -0
  144. package/styled-components/es/engines/common.js +40 -0
  145. package/styled-components/es/engines/styled-components.js +1 -1
  146. package/styled-components/es/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +71 -8
  147. package/styled-components/es/examples/plasma_web/components/TextArea/TextArea.stories.tsx +69 -7
  148. package/types/components/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
  149. package/types/components/Breadcrumbs/utils/index.d.ts +5 -2
  150. package/types/components/Breadcrumbs/utils/index.d.ts.map +1 -1
  151. package/types/components/Calendar/utils/getDateWithModification.d.ts +1 -1
  152. package/types/components/Calendar/utils/getDateWithModification.d.ts.map +1 -1
  153. package/types/components/Combobox/ComboboxNew/Combobox.d.ts +2 -1
  154. package/types/components/Combobox/ComboboxNew/Combobox.d.ts.map +1 -1
  155. package/types/components/Dropdown/Dropdown.d.ts +2 -1
  156. package/types/components/Dropdown/Dropdown.d.ts.map +1 -1
  157. package/types/components/Select/Select.d.ts +2 -1
  158. package/types/components/Select/Select.d.ts.map +1 -1
  159. package/types/components/TextArea/TextArea.d.ts.map +1 -1
  160. package/types/components/TextField/TextField.d.ts.map +1 -1
  161. package/types/engines/common.d.ts +3 -1
  162. package/types/engines/common.d.ts.map +1 -1
  163. package/cjs/components/Breadcrumbs/ui/BreadcrumbShorter/BreadcrumbShorter.css +0 -3
  164. package/cjs/components/Breadcrumbs/utils/getShortItems.js +0 -44
  165. package/cjs/components/Breadcrumbs/utils/getShortItems.js.map +0 -1
  166. package/cjs/components/Combobox/ComboboxNew/Combobox.context.js +0 -10
  167. package/cjs/components/Combobox/ComboboxNew/Combobox.context.js.map +0 -1
  168. package/cjs/components/Dropdown/Dropdown.context.js +0 -10
  169. package/cjs/components/Dropdown/Dropdown.context.js.map +0 -1
  170. package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.css +0 -27
  171. package/cjs/components/Select/Select.context.js +0 -10
  172. package/cjs/components/Select/Select.context.js.map +0 -1
  173. package/cjs/engines/utils.js +0 -40
  174. package/cjs/engines/utils.js.map +0 -1
  175. package/emotion/cjs/components/Breadcrumbs/utils/getShortItems.js +0 -42
  176. package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.context.js +0 -8
  177. package/emotion/cjs/components/Dropdown/Dropdown.context.js +0 -8
  178. package/emotion/cjs/components/Select/Select.context.js +0 -8
  179. package/emotion/cjs/engines/utils.js +0 -42
  180. package/emotion/es/components/Breadcrumbs/utils/getShortItems.js +0 -35
  181. package/emotion/es/components/Combobox/ComboboxNew/Combobox.context.js +0 -2
  182. package/emotion/es/components/Dropdown/Dropdown.context.js +0 -2
  183. package/emotion/es/components/Select/Select.context.js +0 -2
  184. package/emotion/es/engines/utils.js +0 -36
  185. package/es/components/Breadcrumbs/ui/BreadcrumbShorter/BreadcrumbShorter.css +0 -3
  186. package/es/components/Breadcrumbs/utils/getShortItems.js +0 -39
  187. package/es/components/Breadcrumbs/utils/getShortItems.js.map +0 -1
  188. package/es/components/Combobox/ComboboxNew/Combobox.context.js +0 -6
  189. package/es/components/Combobox/ComboboxNew/Combobox.context.js.map +0 -1
  190. package/es/components/Dropdown/Dropdown.context.js +0 -6
  191. package/es/components/Dropdown/Dropdown.context.js.map +0 -1
  192. package/es/components/Dropdown/ui/DropdownInner/DropdownInner.css +0 -27
  193. package/es/components/Select/Select.context.js +0 -6
  194. package/es/components/Select/Select.context.js.map +0 -1
  195. package/es/engines/utils.js +0 -35
  196. package/es/engines/utils.js.map +0 -1
  197. package/styled-components/cjs/components/Breadcrumbs/utils/getShortItems.js +0 -42
  198. package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.context.js +0 -8
  199. package/styled-components/cjs/components/Dropdown/Dropdown.context.js +0 -8
  200. package/styled-components/cjs/components/Select/Select.context.js +0 -8
  201. package/styled-components/cjs/engines/utils.js +0 -42
  202. package/styled-components/es/components/Breadcrumbs/utils/getShortItems.js +0 -35
  203. package/styled-components/es/components/Combobox/ComboboxNew/Combobox.context.js +0 -2
  204. package/styled-components/es/components/Dropdown/Dropdown.context.js +0 -2
  205. package/styled-components/es/components/Select/Select.context.js +0 -2
  206. package/styled-components/es/engines/utils.js +0 -36
  207. package/types/components/Breadcrumbs/utils/getShortItems.d.ts +0 -6
  208. package/types/components/Breadcrumbs/utils/getShortItems.d.ts.map +0 -1
  209. package/types/components/Combobox/ComboboxNew/Combobox.context.d.ts +0 -4
  210. package/types/components/Combobox/ComboboxNew/Combobox.context.d.ts.map +0 -1
  211. package/types/components/Dropdown/Dropdown.context.d.ts +0 -4
  212. package/types/components/Dropdown/Dropdown.context.d.ts.map +0 -1
  213. package/types/components/Select/Select.context.d.ts +0 -4
  214. package/types/components/Select/Select.context.d.ts.map +0 -1
  215. package/types/engines/utils.d.ts +0 -4
  216. package/types/engines/utils.d.ts.map +0 -1
  217. /package/cjs/components/Breadcrumbs/utils/{getShortItems.css → index.css} +0 -0
  218. /package/es/components/Breadcrumbs/utils/{getShortItems.css → index.css} +0 -0
@@ -13,6 +13,7 @@ import { config } from './TextArea.config';
13
13
  import { TextArea } from './TextArea';
14
14
 
15
15
  const labelPlacements = ['inner', 'outer'];
16
+ const sizes = ['xs', 's', 'm', 'l'];
16
17
  const hintViews = ['default'];
17
18
  const hintSizes = ['m', 's'];
18
19
  const hintTriggers = ['hover', 'click'];
@@ -67,17 +68,18 @@ const meta: Meta<StoryTextAreaProps> = {
67
68
  },
68
69
  if: { arg: 'required', truthy: false },
69
70
  },
70
- rows: {
71
+ size: {
72
+ options: sizes,
73
+ defaultValue: 'm',
71
74
  control: {
72
- type: 'number',
75
+ type: 'select',
73
76
  },
74
- if: { arg: 'clear', truthy: false },
75
77
  },
76
- cols: {
78
+ view: {
79
+ options: views,
77
80
  control: {
78
- type: 'number',
81
+ type: 'select',
79
82
  },
80
- if: { arg: 'clear', truthy: false },
81
83
  },
82
84
  labelPlacement: {
83
85
  options: labelPlacements,
@@ -91,6 +93,23 @@ const meta: Meta<StoryTextAreaProps> = {
91
93
  },
92
94
  if: { arg: 'clear', truthy: true },
93
95
  },
96
+ cols: {
97
+ control: {
98
+ type: 'number',
99
+ },
100
+ if: { arg: 'clear', truthy: false },
101
+ },
102
+ rows: {
103
+ control: {
104
+ type: 'number',
105
+ },
106
+ if: { arg: 'clear', truthy: false },
107
+ },
108
+ hasHint: {
109
+ control: {
110
+ type: 'boolean',
111
+ },
112
+ },
94
113
  hintText: {
95
114
  control: { type: 'text' },
96
115
  if: { arg: 'hasHint', truthy: true },
@@ -132,7 +151,50 @@ const meta: Meta<StoryTextAreaProps> = {
132
151
  control: { type: 'text' },
133
152
  if: { arg: 'hasHint', truthy: true },
134
153
  },
135
- ...disableProps(['leftHelperPlacement']),
154
+ helperText: {
155
+ control: { type: 'text' },
156
+ },
157
+ width: {
158
+ control: { type: 'text' },
159
+ },
160
+ height: {
161
+ control: { type: 'text' },
162
+ },
163
+ leftHelper: {
164
+ control: { type: 'text' },
165
+ },
166
+ titleCaption: {
167
+ control: { type: 'text' },
168
+ },
169
+ rightHelper: {
170
+ control: { type: 'text' },
171
+ },
172
+ ...disableProps([
173
+ 'helperBlock',
174
+ '$isFocused',
175
+ 'contentRight',
176
+ 'autoComplete',
177
+ 'autoFocus',
178
+ 'dirName',
179
+ 'form',
180
+ 'minLength',
181
+ 'maxLength',
182
+ 'name',
183
+ 'value',
184
+ 'wrap',
185
+ 'theme',
186
+ 'as',
187
+ 'forwardedAs',
188
+ 'onChange',
189
+ 'onFocus',
190
+ 'onBlur',
191
+ 'leftHelperPlacement',
192
+ 'status',
193
+ 'hintTargetIcon',
194
+ 'hintOffset',
195
+ 'hintContentLeft',
196
+ 'hintView',
197
+ ]),
136
198
  },
137
199
  args: {
138
200
  id: 'example-textarea',
@@ -3,8 +3,7 @@ import { cx } from '../../utils';
3
3
  import { base as sizeCSS } from './variations/_size/base';
4
4
  import { base as viewCSS } from './variations/_view/base';
5
5
  import { base, Separator } from './Breadcrumbs.styles';
6
- import { addSeparator, convertIconSize } from './utils';
7
- import { getRenderItems } from './utils/getShortItems';
6
+ import { addSeparator, convertIconSize, getRenderItems } from './utils';
8
7
  export var breadcrumbsRoot = function breadcrumbsRoot(Root) {
9
8
  return /*#__PURE__*/forwardRef(function (_ref, outerRootRef) {
10
9
  var view = _ref.view,
@@ -1,3 +1,19 @@
1
+ import React from 'react';
2
+ import { BreadcrumbShorter } from '../ui/BreadcrumbShorter/BreadcrumbShorter';
3
+ import { StyledLink } from '../Breadcrumbs.styles';
4
+ export var shortItems = function shortItems(items, renderSeparator, showItems) {
5
+ if (!showItems || showItems < 2 || items.length <= showItems) {
6
+ return items;
7
+ }
8
+ var leftSlice = Math.floor(showItems / 2);
9
+ var rightSlice = items.length - leftSlice - showItems % 2;
10
+ var renderItems = items.slice(leftSlice, rightSlice);
11
+ var shorter = /*#__PURE__*/React.createElement(BreadcrumbShorter, {
12
+ separator: renderSeparator
13
+ }, renderItems);
14
+ items.splice(leftSlice, rightSlice - leftSlice, shorter);
15
+ return items;
16
+ };
1
17
  export var convertIconSize = function convertIconSize(size) {
2
18
  switch (size) {
3
19
  case 's':
@@ -7,6 +23,25 @@ export var convertIconSize = function convertIconSize(size) {
7
23
  return 's';
8
24
  }
9
25
  };
26
+ export var getRenderItems = function getRenderItems(items, renderSeparator, showItems) {
27
+ var renderItems = shortItems(items.map(function (item) {
28
+ if (item.renderItem) {
29
+ return item.renderItem();
30
+ }
31
+ var title = item.title,
32
+ disabled = item.disabled,
33
+ href = item.href,
34
+ onClick = item.onClick;
35
+ return /*#__PURE__*/React.createElement(StyledLink, {
36
+ tabIndex: 0,
37
+ href: href,
38
+ disabled: disabled,
39
+ onClick: onClick,
40
+ isHref: Boolean(href || onClick)
41
+ }, title);
42
+ }), renderSeparator, showItems);
43
+ return renderItems;
44
+ };
10
45
  export var addSeparator = function addSeparator(items, renderSeparator) {
11
46
  return items.flatMap(function (item, idx) {
12
47
  return idx < items.length - 1 ? [item, renderSeparator] : [item];
@@ -1,5 +1,5 @@
1
1
  import { CalendarState } from '../store/types';
2
- import { getPropsMap } from './calendarGridHelper';
2
+ import { getPropsMap } from '.';
3
3
  var dateOperationHandler = {
4
4
  Days: {
5
5
  add: function add(date) {
@@ -13,7 +13,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
13
13
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
14
14
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
15
15
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
16
- import React, { forwardRef, useState, useReducer, useMemo, useLayoutEffect, useRef } from 'react';
16
+ import React, { forwardRef, useState, useReducer, useMemo, createContext, useLayoutEffect, useRef } from 'react';
17
17
  import { safeUseId, useForkRef } from '@salutejs/plasma-core';
18
18
  import { isEmpty } from '../../../utils';
19
19
  import { useOutsideClick } from '../../../hooks';
@@ -29,7 +29,7 @@ import { Ul, base, StyledArrow, IconArrowWrapper, StyledEmptyState } from './Com
29
29
  import { base as viewCSS } from './variations/_view/base';
30
30
  import { base as sizeCSS } from './variations/_size/base';
31
31
  import { SelectNative } from './ui/SelectNative/SelectNative';
32
- import { Context } from './Combobox.context';
32
+ export var Context = /*#__PURE__*/createContext({});
33
33
 
34
34
  /**
35
35
  * Поле ввода с выпадающим списком и возможностью фильтрации и выбора элементов.
@@ -8,7 +8,7 @@ import { sizeToIconSize, getItemId } from '../../../../utils';
8
8
  import { classes } from '../../../../Combobox.tokens';
9
9
  import { cx, isEmpty } from '../../../../../../../utils';
10
10
  import { IconDisclosureRightCentered, IconDone } from '../../../../../../_Icon';
11
- import { Context } from '../../../../Combobox.context';
11
+ import { Context } from '../../../../Combobox';
12
12
  import { useDidMountEffect } from '../../../../../../../hooks';
13
13
  import { StyledWrapper, StyledText, Wrapper, DisclosureIconWrapper, StyledCheckbox, IconWrapper, StyledIndicator, StyledCheckboxWrapper, StyledCell } from './Item.styles';
14
14
  export var Item = function Item(_ref) {
@@ -8,7 +8,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
8
8
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
9
9
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10
10
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11
- import React, { forwardRef, useReducer, useRef } from 'react';
11
+ import React, { createContext, forwardRef, useReducer, useRef } from 'react';
12
12
  import { safeUseId } from '@salutejs/plasma-core';
13
13
  import { cx } from '../../utils';
14
14
  import { useOutsideClick } from '../../hooks';
@@ -23,7 +23,7 @@ import { classes } from './Dropdown.tokens';
23
23
  import { useKeyNavigation } from './hooks/useKeyboardNavigation';
24
24
  import { useHashMaps } from './hooks/useHashMaps';
25
25
  import { FloatingPopover } from './FloatingPopover';
26
- import { Context } from './Dropdown.context';
26
+ export var Context = /*#__PURE__*/createContext({});
27
27
 
28
28
  /**
29
29
  * Выпадающий список.
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { safeUseId } from '@salutejs/plasma-core';
3
- import { DropdownItem } from '../DropdownItem/DropdownItem';
3
+ import { DropdownItem } from '..';
4
4
  import { Ul } from '../../Dropdown.styles';
5
5
  import { FloatingPopover } from '../../FloatingPopover';
6
6
  var DropdownInner = function DropdownInner(_ref) {
@@ -6,7 +6,7 @@ import React, { useEffect, useRef, useContext } from 'react';
6
6
  import { classes } from '../../Dropdown.tokens';
7
7
  import { cx } from '../../../../utils';
8
8
  import { IconDisclosureRight } from '../../../_Icon';
9
- import { Context } from '../../Dropdown.context';
9
+ import { Context } from '../../Dropdown';
10
10
  import { getItemId } from '../../utils';
11
11
  import { Wrapper, DisclosureIconWrapper, Divider, CellWrapper, StyledCell, RenderItemWrapper } from './DropdownItem.styles';
12
12
  export var DropdownItem = function DropdownItem(_ref) {
@@ -9,7 +9,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
9
9
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
10
10
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
11
11
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
12
- import React, { forwardRef, useState, useReducer, useMemo, useLayoutEffect, useRef } from 'react';
12
+ import React, { forwardRef, useState, useReducer, useMemo, createContext, useLayoutEffect, useRef } from 'react';
13
13
  import { safeUseId } from '@salutejs/plasma-core';
14
14
  import { isEmpty } from '../../utils';
15
15
  import { useOutsideClick } from '../../hooks';
@@ -21,7 +21,7 @@ import { usePathMaps } from './hooks/usePathMaps';
21
21
  import { Ul, base } from './Select.styles';
22
22
  import { FloatingPopover } from './FloatingPopover';
23
23
  import { SelectNative } from './ui/SelectNative/SelectNative';
24
- import { Context } from './Select.context';
24
+ export var Context = /*#__PURE__*/createContext({});
25
25
 
26
26
  /**
27
27
  * Выпадающий список. Поддерживает выбор одного или нескольких значений.
@@ -3,7 +3,7 @@ import { safeUseId } from '@salutejs/plasma-core';
3
3
  import { isEmpty } from '../../../../utils';
4
4
  import { Ul } from '../../Select.styles';
5
5
  import { FloatingPopover } from '../../FloatingPopover';
6
- import { Item } from './ui/Item/Item';
6
+ import { Item } from './ui';
7
7
  export var Inner = function Inner(_ref) {
8
8
  var item = _ref.item,
9
9
  currentLevel = _ref.currentLevel,
@@ -8,7 +8,7 @@ import { sizeToIconSize, getItemId } from '../../../../utils';
8
8
  import { classes } from '../../../../Select.tokens';
9
9
  import { cx, isEmpty } from '../../../../../../utils';
10
10
  import { IconDisclosureRightCentered, IconDone } from '../../../../../_Icon';
11
- import { Context } from '../../../../Select.context';
11
+ import { Context } from '../../../../Select';
12
12
  import { useDidMountEffect } from '../../../../../../hooks';
13
13
  import { StyledWrapper, StyledCell, StyledCheckbox, StyledIndicator, DisclosureIconWrapper, IconWrapper, StyledText, Wrapper, StyledCheckboxWrapper } from './Item.styles';
14
14
  export var Item = function Item(_ref) {
@@ -6,7 +6,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
6
6
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
7
7
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
8
8
  import React, { useState, useCallback } from 'react';
9
- import { DoubleSlider } from '../Double/Double';
9
+ import { DoubleSlider } from '../index';
10
10
  export var DoubleUncontrolled = function DoubleUncontrolled(props) {
11
11
  var defaultValue = props.defaultValue,
12
12
  min = props.min,
@@ -18,7 +18,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
18
18
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
19
19
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
20
20
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
21
- import React, { forwardRef, useState, createRef, useCallback, useRef } from 'react';
21
+ import React, { forwardRef, useState, createRef, useCallback, useRef, useLayoutEffect } from 'react';
22
22
  import { css } from 'styled-components';
23
23
  import { useForkRef, useResizeObserver } from '@salutejs/plasma-core';
24
24
  import { cx, mergeRefs } from '../../utils';
@@ -192,6 +192,11 @@ export var textAreaRoot = function textAreaRoot(Root) {
192
192
  setIsHintVisible(true);
193
193
  }
194
194
  };
195
+ useLayoutEffect(function () {
196
+ if (outerRef.current) {
197
+ setUncontrolledValue(outerRef.current.value);
198
+ }
199
+ }, [outerRef]);
195
200
  useResizeObserver(outerRef, function (currentElement) {
196
201
  var inlineWidth = currentElement.style.width;
197
202
  if (inlineWidth || cols) {
@@ -297,6 +302,7 @@ export var textAreaRoot = function textAreaRoot(Root) {
297
302
  applyCustomWidth: applyCustomWidth,
298
303
  ref: mergeRefs(outerRef, innerRef),
299
304
  disabled: disabled,
305
+ required: required,
300
306
  height: applyAutoResize ? minAuto : height,
301
307
  width: width,
302
308
  placeholder: placeholderLabel,
@@ -389,6 +389,7 @@ export var textFieldRoot = function textFieldRoot(Root) {
389
389
  ref: inputForkRef,
390
390
  id: innerId,
391
391
  value: outerValue,
392
+ required: required,
392
393
  "aria-labelledby": labelId,
393
394
  "aria-describedby": helperTextId,
394
395
  placeholder: innerPlaceholderValue,
@@ -5,8 +5,48 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
5
5
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
7
7
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
8
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
9
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
10
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
11
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
12
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
13
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
8
14
  import React from 'react';
9
15
  import { _component } from './styled-components';
16
+ //
17
+ // Тип HTMLAttributesOmitOnChange требуется чтобы использовать компонент с кастомным пропсом onChange
18
+ //
19
+
20
+ export var getStaticVariants = function getStaticVariants(config) {
21
+ if (!config.variations) {
22
+ return [];
23
+ }
24
+ var res = [];
25
+ var variations = config.variations;
26
+
27
+ // eslint-disable-next-line guard-for-in
28
+ for (var key in variations) {
29
+ var css = variations[key].css;
30
+ css && res.push(css);
31
+ }
32
+ return res;
33
+ };
34
+ export var getDynamicVariants = function getDynamicVariants(config) {
35
+ return function (props) {
36
+ var res = [];
37
+
38
+ // eslint-disable-next-line guard-for-in
39
+ for (var key in config.variations) {
40
+ if (key in props) {
41
+ var variant = config.variations[key];
42
+ var css = variant[props[key]];
43
+ // no css for { modifier: true }
44
+ css && Array.isArray(css) ? res.push.apply(res, _toConsumableArray(css)) : res.push(css);
45
+ }
46
+ }
47
+ return res;
48
+ };
49
+ };
10
50
  export var mergeConfig = function mergeConfig(baseConfig, userConfig) {
11
51
  var res = _objectSpread(_objectSpread({}, baseConfig), userConfig);
12
52
  if (res.variations) {
@@ -1,7 +1,7 @@
1
1
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
  import React, { forwardRef } from 'react';
3
3
  import styled, { css } from 'styled-components';
4
- import { getStaticVariants, getDynamicVariants } from './utils';
4
+ import { getStaticVariants, getDynamicVariants } from './common';
5
5
  export { styled, css };
6
6
  var Root = /*#__PURE__*/styled.div.withConfig({
7
7
  componentId: "plasma-new-hope__sc-1xug4g9-0"
@@ -13,6 +13,8 @@ import { config } from './TextArea.config';
13
13
  import { TextArea } from './TextArea';
14
14
 
15
15
  const labelPlacements = ['inner', 'outer'];
16
+ const sizes = ['xs', 's', 'm', 'l'];
17
+ const views = ['default', 'positive', 'warning', 'negative'];
16
18
  const hintViews = ['default'];
17
19
  const hintSizes = ['m', 's'];
18
20
  const hintTriggers = ['hover', 'click'];
@@ -67,22 +69,23 @@ const meta: Meta<StoryTextAreaProps> = {
67
69
  },
68
70
  if: { arg: 'required', truthy: false },
69
71
  },
70
- rows: {
72
+ size: {
73
+ options: sizes,
74
+ defaultValue: 'm',
71
75
  control: {
72
- type: 'number',
76
+ type: 'select',
73
77
  },
74
- if: { arg: 'clear', truthy: false },
75
78
  },
76
- cols: {
79
+ view: {
80
+ options: views,
77
81
  control: {
78
- type: 'number',
82
+ type: 'select',
79
83
  },
80
- if: { arg: 'clear', truthy: false },
81
84
  },
82
85
  labelPlacement: {
83
86
  options: labelPlacements,
84
87
  control: {
85
- type: 'inline-radio',
88
+ type: 'select',
86
89
  },
87
90
  },
88
91
  hasDivider: {
@@ -91,6 +94,23 @@ const meta: Meta<StoryTextAreaProps> = {
91
94
  },
92
95
  if: { arg: 'clear', truthy: true },
93
96
  },
97
+ cols: {
98
+ control: {
99
+ type: 'number',
100
+ },
101
+ if: { arg: 'clear', truthy: false },
102
+ },
103
+ rows: {
104
+ control: {
105
+ type: 'number',
106
+ },
107
+ if: { arg: 'clear', truthy: false },
108
+ },
109
+ hasHint: {
110
+ control: {
111
+ type: 'boolean',
112
+ },
113
+ },
94
114
  hintText: {
95
115
  control: { type: 'text' },
96
116
  if: { arg: 'hasHint', truthy: true },
@@ -132,7 +152,50 @@ const meta: Meta<StoryTextAreaProps> = {
132
152
  control: { type: 'text' },
133
153
  if: { arg: 'hasHint', truthy: true },
134
154
  },
135
- ...disableProps(['leftHelperPlacement']),
155
+ helperText: {
156
+ control: { type: 'text' },
157
+ },
158
+ width: {
159
+ control: { type: 'text' },
160
+ },
161
+ height: {
162
+ control: { type: 'text' },
163
+ },
164
+ leftHelper: {
165
+ control: { type: 'text' },
166
+ },
167
+ titleCaption: {
168
+ control: { type: 'text' },
169
+ },
170
+ rightHelper: {
171
+ control: { type: 'text' },
172
+ },
173
+ ...disableProps([
174
+ 'helperBlock',
175
+ '$isFocused',
176
+ 'contentRight',
177
+ 'autoComplete',
178
+ 'autoFocus',
179
+ 'dirName',
180
+ 'form',
181
+ 'minLength',
182
+ 'maxLength',
183
+ 'name',
184
+ 'value',
185
+ 'wrap',
186
+ 'theme',
187
+ 'as',
188
+ 'forwardedAs',
189
+ 'onChange',
190
+ 'onFocus',
191
+ 'onBlur',
192
+ 'leftHelperPlacement',
193
+ 'status',
194
+ 'hintTargetIcon',
195
+ 'hintOffset',
196
+ 'hintContentLeft',
197
+ 'hintView',
198
+ ]),
136
199
  },
137
200
  args: {
138
201
  id: 'example-textarea',
@@ -13,6 +13,7 @@ import { config } from './TextArea.config';
13
13
  import { TextArea } from './TextArea';
14
14
 
15
15
  const labelPlacements = ['inner', 'outer'];
16
+ const sizes = ['xs', 's', 'm', 'l'];
16
17
  const hintViews = ['default'];
17
18
  const hintSizes = ['m', 's'];
18
19
  const hintTriggers = ['hover', 'click'];
@@ -67,17 +68,18 @@ const meta: Meta<StoryTextAreaProps> = {
67
68
  },
68
69
  if: { arg: 'required', truthy: false },
69
70
  },
70
- rows: {
71
+ size: {
72
+ options: sizes,
73
+ defaultValue: 'm',
71
74
  control: {
72
- type: 'number',
75
+ type: 'select',
73
76
  },
74
- if: { arg: 'clear', truthy: false },
75
77
  },
76
- cols: {
78
+ view: {
79
+ options: views,
77
80
  control: {
78
- type: 'number',
81
+ type: 'select',
79
82
  },
80
- if: { arg: 'clear', truthy: false },
81
83
  },
82
84
  labelPlacement: {
83
85
  options: labelPlacements,
@@ -91,6 +93,23 @@ const meta: Meta<StoryTextAreaProps> = {
91
93
  },
92
94
  if: { arg: 'clear', truthy: true },
93
95
  },
96
+ cols: {
97
+ control: {
98
+ type: 'number',
99
+ },
100
+ if: { arg: 'clear', truthy: false },
101
+ },
102
+ rows: {
103
+ control: {
104
+ type: 'number',
105
+ },
106
+ if: { arg: 'clear', truthy: false },
107
+ },
108
+ hasHint: {
109
+ control: {
110
+ type: 'boolean',
111
+ },
112
+ },
94
113
  hintText: {
95
114
  control: { type: 'text' },
96
115
  if: { arg: 'hasHint', truthy: true },
@@ -132,7 +151,50 @@ const meta: Meta<StoryTextAreaProps> = {
132
151
  control: { type: 'text' },
133
152
  if: { arg: 'hasHint', truthy: true },
134
153
  },
135
- ...disableProps(['leftHelperPlacement']),
154
+ helperText: {
155
+ control: { type: 'text' },
156
+ },
157
+ width: {
158
+ control: { type: 'text' },
159
+ },
160
+ height: {
161
+ control: { type: 'text' },
162
+ },
163
+ leftHelper: {
164
+ control: { type: 'text' },
165
+ },
166
+ titleCaption: {
167
+ control: { type: 'text' },
168
+ },
169
+ rightHelper: {
170
+ control: { type: 'text' },
171
+ },
172
+ ...disableProps([
173
+ 'helperBlock',
174
+ '$isFocused',
175
+ 'contentRight',
176
+ 'autoComplete',
177
+ 'autoFocus',
178
+ 'dirName',
179
+ 'form',
180
+ 'minLength',
181
+ 'maxLength',
182
+ 'name',
183
+ 'value',
184
+ 'wrap',
185
+ 'theme',
186
+ 'as',
187
+ 'forwardedAs',
188
+ 'onChange',
189
+ 'onFocus',
190
+ 'onBlur',
191
+ 'leftHelperPlacement',
192
+ 'status',
193
+ 'hintTargetIcon',
194
+ 'hintOffset',
195
+ 'hintContentLeft',
196
+ 'hintView',
197
+ ]),
136
198
  },
137
199
  args: {
138
200
  id: 'example-textarea',
@@ -1 +1 @@
1
- {"version":3,"file":"Breadcrumbs.d.ts","sourceRoot":"","sources":["../../../src/components/Breadcrumbs/Breadcrumbs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAErD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAG1C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAO5D,eAAO,MAAM,eAAe,SAAU,UAAU,cAAc,EAAE,gBAAgB,CAAC;;;;;;wCAe5E,CAAC;AAEN,eAAO,MAAM,iBAAiB;;;mBAjBQ,UAAU,cAAc,EAAE,gBAAgB,CAAC;;;;;;;;;;;;;;;;;;;;CAkChF,CAAC"}
1
+ {"version":3,"file":"Breadcrumbs.d.ts","sourceRoot":"","sources":["../../../src/components/Breadcrumbs/Breadcrumbs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAErD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAG1C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAM5D,eAAO,MAAM,eAAe,SAAU,UAAU,cAAc,EAAE,gBAAgB,CAAC;;;;;;wCAe5E,CAAC;AAEN,eAAO,MAAM,iBAAiB;;;mBAjBQ,UAAU,cAAc,EAAE,gBAAgB,CAAC;;;;;;;;;;;;;;;;;;;;CAkChF,CAAC"}
@@ -1,4 +1,7 @@
1
- import { ReactNode } from 'react';
1
+ import React, { ReactNode } from 'react';
2
+ import { BreadcrumbsItem } from '../Breadcrumbs.types';
3
+ export declare const shortItems: (items: ReactNode[], renderSeparator: ReactNode, showItems?: number | undefined) => React.ReactNode[];
2
4
  export declare const convertIconSize: (size?: string | undefined) => "s" | "xs";
3
- export declare const addSeparator: (items: ReactNode[], renderSeparator: ReactNode) => ReactNode[];
5
+ export declare const getRenderItems: (items: BreadcrumbsItem[], renderSeparator: ReactNode, showItems?: number | undefined) => React.ReactNode[];
6
+ export declare const addSeparator: (items: ReactNode[], renderSeparator: ReactNode) => React.ReactNode[];
4
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Breadcrumbs/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,eAAO,MAAM,eAAe,2CAQ3B,CAAC;AAEF,eAAO,MAAM,YAAY,UAAW,SAAS,EAAE,mBAAmB,SAAS,gBAE1E,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Breadcrumbs/utils/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIzC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,eAAO,MAAM,UAAU,UAAW,SAAS,EAAE,mBAAmB,SAAS,sDAYxE,CAAC;AAEF,eAAO,MAAM,eAAe,2CAQ3B,CAAC;AAEF,eAAO,MAAM,cAAc,UAAW,eAAe,EAAE,mBAAmB,SAAS,sDA0BlF,CAAC;AAEF,eAAO,MAAM,YAAY,UAAW,SAAS,EAAE,mBAAmB,SAAS,sBAE1E,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { DateItem, DisabledDay, EventDay } from '../Calendar.types';
2
- import { CalendarStateType } from '../store/types';
2
+ import type { CalendarStateType } from '..';
3
3
  declare type GetDatesWithModificationsArgs = {
4
4
  dates: DateItem[];
5
5
  type: CalendarStateType;
@@ -1 +1 @@
1
- {"version":3,"file":"getDateWithModification.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/utils/getDateWithModification.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAc,WAAW,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACrF,OAAO,EAAiB,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAIlE,aAAK,6BAA6B,GAAG;IACjC,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,IAAI,EAAE,iBAAiB,CAAC;IACxB,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;IAC7B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,GAAG,CAAC,EAAE,IAAI,CAAC;IACX,GAAG,CAAC,EAAE,IAAI,CAAC;CACd,CAAC;AAuJF;;GAEG;AACH,eAAO,MAAM,yBAAyB,0EAQnC,6BAA6B,eA6C/B,CAAC"}
1
+ {"version":3,"file":"getDateWithModification.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/utils/getDateWithModification.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAc,WAAW,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACrF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,IAAI,CAAC;AAK5C,aAAK,6BAA6B,GAAG;IACjC,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,IAAI,EAAE,iBAAiB,CAAC;IACxB,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;IAC7B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,GAAG,CAAC,EAAE,IAAI,CAAC;IACX,GAAG,CAAC,EAAE,IAAI,CAAC;CACd,CAAC;AAuJF;;GAEG;AACH,eAAO,MAAM,yBAAyB,0EAQnC,6BAA6B,eA6C/B,CAAC"}