@salutejs/plasma-sb-utils 0.247.0-next-sbcom.0 → 0.248.0-dev.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 (235) hide show
  1. package/lib/components/Accordion/Accordion.d.ts +5 -38
  2. package/lib/components/Accordion/meta.d.ts +5 -38
  3. package/lib/components/Accordion/meta.js +6 -15
  4. package/lib/components/Accordion/meta.js.map +1 -1
  5. package/lib/components/Attach/Attach.d.ts +38 -101
  6. package/lib/components/Attach/meta.d.ts +38 -101
  7. package/lib/components/Attach/meta.js +44 -53
  8. package/lib/components/Attach/meta.js.map +1 -1
  9. package/lib/components/Badge/Badge.d.ts +18 -45
  10. package/lib/components/Badge/meta.d.ts +18 -45
  11. package/lib/components/Badge/meta.js +10 -15
  12. package/lib/components/Badge/meta.js.map +1 -1
  13. package/lib/components/BottomSheet/BottomSheet.d.ts +11 -41
  14. package/lib/components/BottomSheet/meta.d.ts +11 -41
  15. package/lib/components/BottomSheet/meta.js +10 -16
  16. package/lib/components/BottomSheet/meta.js.map +1 -1
  17. package/lib/components/Breadcrumbs/Breadcrumbs.d.ts +0 -12
  18. package/lib/components/Breadcrumbs/meta.d.ts +0 -12
  19. package/lib/components/Breadcrumbs/meta.js +0 -4
  20. package/lib/components/Breadcrumbs/meta.js.map +1 -1
  21. package/lib/components/Button/Button.d.ts +15 -51
  22. package/lib/components/Button/meta.d.ts +15 -51
  23. package/lib/components/Button/meta.js +10 -18
  24. package/lib/components/Button/meta.js.map +1 -1
  25. package/lib/components/Calendar/Calendar.d.ts +26 -5
  26. package/lib/components/Calendar/meta.d.ts +26 -5
  27. package/lib/components/Calendar/meta.js +15 -7
  28. package/lib/components/Calendar/meta.js.map +1 -1
  29. package/lib/components/Calendar/stories.d.ts +2 -2
  30. package/lib/components/Calendar/stories.js +4 -4
  31. package/lib/components/Calendar/stories.js.map +1 -1
  32. package/lib/components/Carousel/Carousel.d.ts +27 -12
  33. package/lib/components/Carousel/Carousel.js +14 -1
  34. package/lib/components/Carousel/Carousel.js.map +1 -1
  35. package/lib/components/Carousel/meta.d.ts +16 -12
  36. package/lib/components/Carousel/meta.js +19 -12
  37. package/lib/components/Carousel/meta.js.map +1 -1
  38. package/lib/components/Carousel/stories.d.ts +1 -0
  39. package/lib/components/Carousel/stories.js +43 -1
  40. package/lib/components/Carousel/stories.js.map +1 -1
  41. package/lib/components/Chip/Chip.d.ts +10 -43
  42. package/lib/components/Chip/meta.d.ts +10 -43
  43. package/lib/components/Chip/meta.js +8 -16
  44. package/lib/components/Chip/meta.js.map +1 -1
  45. package/lib/components/CodeArea/CodeArea.d.ts +16 -46
  46. package/lib/components/CodeArea/meta.d.ts +16 -46
  47. package/lib/components/CodeArea/meta.js +16 -20
  48. package/lib/components/CodeArea/meta.js.map +1 -1
  49. package/lib/components/CodeField/CodeField.d.ts +0 -46
  50. package/lib/components/CodeField/meta.d.ts +0 -46
  51. package/lib/components/CodeField/meta.js +0 -15
  52. package/lib/components/CodeField/meta.js.map +1 -1
  53. package/lib/components/CodeInput/CodeInput.d.ts +0 -40
  54. package/lib/components/CodeInput/meta.d.ts +0 -40
  55. package/lib/components/CodeInput/meta.js +0 -13
  56. package/lib/components/CodeInput/meta.js.map +1 -1
  57. package/lib/components/Combobox/Combobox.d.ts +10 -90
  58. package/lib/components/Combobox/meta.d.ts +10 -90
  59. package/lib/components/Combobox/meta.js +6 -33
  60. package/lib/components/Combobox/meta.js.map +1 -1
  61. package/lib/components/DatePicker/DatePicker.d.ts +135 -58
  62. package/lib/components/DatePicker/fixtures.d.ts +1 -0
  63. package/lib/components/DatePicker/fixtures.js +1 -0
  64. package/lib/components/DatePicker/fixtures.js.map +1 -1
  65. package/lib/components/DatePicker/meta.d.ts +135 -58
  66. package/lib/components/DatePicker/meta.js +70 -79
  67. package/lib/components/DatePicker/meta.js.map +1 -1
  68. package/lib/components/DateTimePicker/DateTimePicker.d.ts +31 -158
  69. package/lib/components/DateTimePicker/fixtures.d.ts +1 -0
  70. package/lib/components/DateTimePicker/fixtures.js +1 -0
  71. package/lib/components/DateTimePicker/fixtures.js.map +1 -1
  72. package/lib/components/DateTimePicker/meta.d.ts +31 -158
  73. package/lib/components/DateTimePicker/meta.js +22 -59
  74. package/lib/components/DateTimePicker/meta.js.map +1 -1
  75. package/lib/components/Drawer/Drawer.d.ts +32 -78
  76. package/lib/components/Drawer/meta.d.ts +32 -78
  77. package/lib/components/Drawer/meta.js +26 -33
  78. package/lib/components/Drawer/meta.js.map +1 -1
  79. package/lib/components/Dropdown/fixtures.js +15 -1
  80. package/lib/components/Dropdown/fixtures.js.map +1 -1
  81. package/lib/components/Dropdown/meta.js +1 -1
  82. package/lib/components/Dropdown/meta.js.map +1 -1
  83. package/lib/components/Dropzone/Dropzone.d.ts +0 -33
  84. package/lib/components/Dropzone/meta.d.ts +0 -33
  85. package/lib/components/Dropzone/meta.js +0 -11
  86. package/lib/components/Dropzone/meta.js.map +1 -1
  87. package/lib/components/EmbeddedButton/EmbeddedButton.d.ts +0 -21
  88. package/lib/components/EmbeddedButton/meta.d.ts +0 -21
  89. package/lib/components/EmbeddedButton/meta.js +10 -14
  90. package/lib/components/EmbeddedButton/meta.js.map +1 -1
  91. package/lib/components/File/File.d.ts +11 -6
  92. package/lib/components/File/meta.d.ts +11 -6
  93. package/lib/components/File/meta.js +9 -6
  94. package/lib/components/File/meta.js.map +1 -1
  95. package/lib/components/InformationWrapper/InformationWrapper.d.ts +10 -73
  96. package/lib/components/InformationWrapper/meta.d.ts +10 -73
  97. package/lib/components/InformationWrapper/meta.js +10 -28
  98. package/lib/components/InformationWrapper/meta.js.map +1 -1
  99. package/lib/components/Link/Link.d.ts +5 -23
  100. package/lib/components/Link/meta.d.ts +5 -23
  101. package/lib/components/Link/meta.js +7 -11
  102. package/lib/components/Link/meta.js.map +1 -1
  103. package/lib/components/Note/Note.d.ts +15 -54
  104. package/lib/components/Note/meta.d.ts +15 -54
  105. package/lib/components/Note/meta.js +13 -22
  106. package/lib/components/Note/meta.js.map +1 -1
  107. package/lib/components/NumberFormat/NumberFormat.d.ts +0 -84
  108. package/lib/components/NumberFormat/meta.d.ts +0 -84
  109. package/lib/components/NumberFormat/meta.js +0 -28
  110. package/lib/components/NumberFormat/meta.js.map +1 -1
  111. package/lib/components/NumberInput/NumberInput.d.ts +0 -72
  112. package/lib/components/NumberInput/meta.d.ts +0 -72
  113. package/lib/components/NumberInput/meta.js +0 -24
  114. package/lib/components/NumberInput/meta.js.map +1 -1
  115. package/lib/components/Pagination/Pagination.d.ts +15 -64
  116. package/lib/components/Pagination/meta.d.ts +15 -64
  117. package/lib/components/Pagination/meta.js +9 -22
  118. package/lib/components/Pagination/meta.js.map +1 -1
  119. package/lib/components/Popover/Popover.d.ts +10 -67
  120. package/lib/components/Popover/meta.d.ts +10 -40
  121. package/lib/components/Popover/meta.js +8 -15
  122. package/lib/components/Popover/meta.js.map +1 -1
  123. package/lib/components/Popover/stories.d.ts +0 -27
  124. package/lib/components/Popover/stories.js +3 -11
  125. package/lib/components/Popover/stories.js.map +1 -1
  126. package/lib/components/Progress/Progress.d.ts +5 -41
  127. package/lib/components/Progress/meta.d.ts +5 -41
  128. package/lib/components/Progress/meta.js +7 -17
  129. package/lib/components/Progress/meta.js.map +1 -1
  130. package/lib/components/Range/Range.d.ts +47 -12
  131. package/lib/components/Range/meta.d.ts +47 -12
  132. package/lib/components/Range/meta.js +15 -5
  133. package/lib/components/Range/meta.js.map +1 -1
  134. package/lib/components/Rating/Rating.d.ts +0 -33
  135. package/lib/components/Rating/meta.d.ts +0 -33
  136. package/lib/components/Rating/meta.js +0 -11
  137. package/lib/components/Rating/meta.js.map +1 -1
  138. package/lib/components/Segment/meta.js +13 -9
  139. package/lib/components/Segment/meta.js.map +1 -1
  140. package/lib/components/Select/Select.d.ts +11 -269
  141. package/lib/components/Select/Select.js +13 -1
  142. package/lib/components/Select/Select.js.map +1 -1
  143. package/lib/components/Select/meta.d.ts +15 -2
  144. package/lib/components/Select/meta.js +16 -7
  145. package/lib/components/Select/meta.js.map +1 -1
  146. package/lib/components/Slider/Slider.d.ts +19 -97
  147. package/lib/components/Slider/meta.d.ts +19 -94
  148. package/lib/components/Slider/meta.js +15 -36
  149. package/lib/components/Slider/meta.js.map +1 -1
  150. package/lib/components/Slider/stories.d.ts +0 -3
  151. package/lib/components/Slider/stories.js +0 -1
  152. package/lib/components/Slider/stories.js.map +1 -1
  153. package/lib/components/Steps/Steps.d.ts +25 -73
  154. package/lib/components/Steps/meta.d.ts +25 -73
  155. package/lib/components/Steps/meta.js +22 -31
  156. package/lib/components/Steps/meta.js.map +1 -1
  157. package/lib/components/Table/Table.d.ts +6 -6
  158. package/lib/components/Table/meta.d.ts +6 -6
  159. package/lib/components/Table/meta.js +8 -4
  160. package/lib/components/Table/meta.js.map +1 -1
  161. package/lib/components/Tabs/Tabs.d.ts +48 -144
  162. package/lib/components/Tabs/meta.d.ts +24 -72
  163. package/lib/components/Tabs/meta.js +21 -31
  164. package/lib/components/Tabs/meta.js.map +1 -1
  165. package/lib/components/TextArea/TextArea.d.ts +19 -121
  166. package/lib/components/TextArea/meta.d.ts +19 -121
  167. package/lib/components/TextArea/meta.js +14 -44
  168. package/lib/components/TextArea/meta.js.map +1 -1
  169. package/lib/components/TextField/TextField.d.ts +15 -108
  170. package/lib/components/TextField/meta.d.ts +15 -108
  171. package/lib/components/TextField/meta.js +13 -40
  172. package/lib/components/TextField/meta.js.map +1 -1
  173. package/lib/components/TextFieldSlider/TextFieldSlider.d.ts +25 -148
  174. package/lib/components/TextFieldSlider/meta.d.ts +25 -148
  175. package/lib/components/TextFieldSlider/meta.js +19 -54
  176. package/lib/components/TextFieldSlider/meta.js.map +1 -1
  177. package/lib/components/TimePicker/TimePicker.d.ts +21 -129
  178. package/lib/components/TimePicker/meta.d.ts +21 -129
  179. package/lib/components/TimePicker/meta.js +16 -48
  180. package/lib/components/TimePicker/meta.js.map +1 -1
  181. package/lib/components/Tour/Tour.d.ts +5 -35
  182. package/lib/components/Tour/meta.d.ts +5 -35
  183. package/lib/components/Tour/meta.js +7 -15
  184. package/lib/components/Tour/meta.js.map +1 -1
  185. package/lib/components/_ai/Answer/Answer.d.ts +7 -34
  186. package/lib/components/_ai/Answer/meta.d.ts +7 -34
  187. package/lib/components/_ai/Answer/meta.js +13 -19
  188. package/lib/components/_ai/Answer/meta.js.map +1 -1
  189. package/lib/components/_ai/Container/Container.d.ts +26 -80
  190. package/lib/components/_ai/Container/meta.d.ts +26 -80
  191. package/lib/components/_ai/Container/meta.js +34 -48
  192. package/lib/components/_ai/Container/meta.js.map +1 -1
  193. package/lib/components/_ai/Header/Header.d.ts +8 -32
  194. package/lib/components/_ai/Header/meta.d.ts +8 -32
  195. package/lib/components/_ai/Header/meta.js +8 -13
  196. package/lib/components/_ai/Header/meta.js.map +1 -1
  197. package/lib/components/_ai/Input/Input.d.ts +8 -41
  198. package/lib/components/_ai/Input/meta.d.ts +8 -41
  199. package/lib/components/_ai/Input/meta.js +8 -16
  200. package/lib/components/_ai/Input/meta.js.map +1 -1
  201. package/lib/components/_ai/Markdown/Markdown.d.ts +4 -4
  202. package/lib/components/_ai/Markdown/meta.d.ts +4 -4
  203. package/lib/components/_ai/Markdown/meta.js +7 -5
  204. package/lib/components/_ai/Markdown/meta.js.map +1 -1
  205. package/lib/components/_ai/UserMessage/UserMessage.d.ts +11 -29
  206. package/lib/components/_ai/UserMessage/meta.d.ts +11 -29
  207. package/lib/components/_ai/UserMessage/meta.js +8 -11
  208. package/lib/components/_ai/UserMessage/meta.js.map +1 -1
  209. package/lib/components/_ai/UserMessage/stories.js +2 -2
  210. package/lib/components/_ai/UserMessage/stories.js.map +1 -1
  211. package/lib/components/index.d.ts +0 -1
  212. package/lib/components/index.js +0 -1
  213. package/lib/components/index.js.map +1 -1
  214. package/lib/helpers/exampleOnly.d.ts +14 -0
  215. package/lib/helpers/exampleOnly.js +28 -0
  216. package/lib/helpers/exampleOnly.js.map +1 -0
  217. package/lib/helpers/index.d.ts +1 -0
  218. package/lib/helpers/index.js +1 -0
  219. package/lib/helpers/index.js.map +1 -1
  220. package/package.json +7 -7
  221. package/lib/components/Spinner/Spinner.d.ts +0 -59
  222. package/lib/components/Spinner/Spinner.js +0 -42
  223. package/lib/components/Spinner/Spinner.js.map +0 -1
  224. package/lib/components/Spinner/fixtures.d.ts +0 -1
  225. package/lib/components/Spinner/fixtures.js +0 -2
  226. package/lib/components/Spinner/fixtures.js.map +0 -1
  227. package/lib/components/Spinner/index.d.ts +0 -1
  228. package/lib/components/Spinner/index.js +0 -2
  229. package/lib/components/Spinner/index.js.map +0 -1
  230. package/lib/components/Spinner/meta.d.ts +0 -47
  231. package/lib/components/Spinner/meta.js +0 -45
  232. package/lib/components/Spinner/meta.js.map +0 -1
  233. package/lib/components/Spinner/stories.d.ts +0 -7
  234. package/lib/components/Spinner/stories.js +0 -60
  235. package/lib/components/Spinner/stories.js.map +0 -1
@@ -27,6 +27,16 @@ var __rest = (this && this.__rest) || function (s, e) {
27
27
  import React from 'react';
28
28
  import styled from 'styled-components';
29
29
  var StyledCard = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 8px;\n width: 400px;\n height: 370px;\n background-color: #add8e6;\n font-size: 30px;\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 8px;\n width: 400px;\n height: 370px;\n background-color: #add8e6;\n font-size: 30px;\n"])));
30
+ var CompactCard = styled(StyledCard)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n width: 280px;\n height: 180px;\n"], ["\n width: 280px;\n height: 180px;\n"])));
31
+ var ScrollViewport = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n height: calc(100vh - 2rem);\n overflow-y: auto;\n background: #f3f4f6;\n border-radius: 12px;\n"], ["\n height: calc(100vh - 2rem);\n overflow-y: auto;\n background: #f3f4f6;\n border-radius: 12px;\n"])));
32
+ var Hint = styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n position: sticky;\n top: 0;\n z-index: 2;\n padding: 12px 16px;\n background: #111827;\n color: #f9fafb;\n font-size: 14px;\n line-height: 1.45;\n"], ["\n position: sticky;\n top: 0;\n z-index: 2;\n padding: 12px 16px;\n background: #111827;\n color: #f9fafb;\n font-size: 14px;\n line-height: 1.45;\n"])));
33
+ var Band = styled.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n height: 72vh;\n padding: 24px;\n background: ", ";\n color: #111827;\n font-size: 28px;\n font-weight: 600;\n text-align: center;\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n height: 72vh;\n padding: 24px;\n background: ", ";\n color: #111827;\n font-size: 28px;\n font-weight: 600;\n text-align: center;\n"])), function (_a) {
34
+ var $tone = _a.$tone;
35
+ return $tone;
36
+ });
37
+ var Stage = styled.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n padding: 24px 16px 8px;\n"], ["\n padding: 24px 16px 8px;\n"])));
38
+ var StageTitle = styled.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n max-width: 720px;\n margin: 0 auto 12px;\n font-size: 16px;\n font-weight: 600;\n"], ["\n max-width: 720px;\n margin: 0 auto 12px;\n font-size: 16px;\n font-weight: 600;\n"])));
39
+ var CarouselFrame = styled.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n max-width: 720px;\n margin: 0 auto;\n"], ["\n max-width: 720px;\n margin: 0 auto;\n"])));
30
40
  export var createDefaultStory = function (CarouselComponent) {
31
41
  return function (_a) {
32
42
  var paginationDisabled = _a.paginationDisabled, visibleDots = _a.visibleDots, paginationCentered = _a.paginationCentered, loop = _a.loop, slides = _a.slides, rest = __rest(_a, ["paginationDisabled", "visibleDots", "paginationCentered", "loop", "slides"]);
@@ -44,5 +54,37 @@ export var createDefaultStory = function (CarouselComponent) {
44
54
  }, loop: loop }, rest), items.map(function (item, i) { return (React.createElement(StyledCard, { key: i }, item.title)); }))));
45
55
  };
46
56
  };
47
- var templateObject_1;
57
+ export var createVerticalScrollStory = function (CarouselComponent) {
58
+ return function (_a) {
59
+ var paginationDisabled = _a.paginationDisabled, visibleDots = _a.visibleDots, paginationCentered = _a.paginationCentered, loop = _a.loop, slides = _a.slides, swipeEnabled = _a.swipeEnabled, rest = __rest(_a, ["paginationDisabled", "visibleDots", "paginationCentered", "loop", "slides", "swipeEnabled"]);
60
+ var items = Array(slides)
61
+ .fill(1)
62
+ .map(function (_, i) { return ({
63
+ id: i,
64
+ title: i,
65
+ }); });
66
+ var paginationOptions = {
67
+ disabled: paginationDisabled,
68
+ visibleDots: visibleDots,
69
+ centered: paginationCentered,
70
+ };
71
+ var renderSlides = function () { return items.map(function (item, i) { return React.createElement(CompactCard, { key: i }, item.title); }); };
72
+ return (React.createElement(ScrollViewport, null,
73
+ React.createElement(Hint, null, "\u0412\u0435\u0440\u0442\u0438\u043A\u0430\u043B\u044C\u043D\u044B\u0439 \u0436\u0435\u0441\u0442 \u0438\u043B\u0438 \u043A\u043E\u043B\u0435\u0441\u043E \u043C\u044B\u0448\u0438 \u043F\u043E \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0435 \u0434\u043E\u043B\u0436\u043D\u044B \u043F\u0440\u043E\u043A\u0440\u0443\u0447\u0438\u0432\u0430\u0442\u044C \u044D\u0442\u0443 \u043E\u0431\u043B\u0430\u0441\u0442\u044C. \u0413\u043E\u0440\u0438\u0437\u043E\u043D\u0442\u0430\u043B\u044C\u043D\u044B\u0439 \u0441\u0432\u0430\u0439\u043F \u043B\u0438\u0441\u0442\u0430\u0435\u0442 \u0441\u043B\u0430\u0439\u0434\u044B \u0442\u043E\u043B\u044C\u043A\u043E \u0443 \u043D\u0438\u0436\u043D\u0435\u0439 \u043A\u0430\u0440\u0443\u0441\u0435\u043B\u0438, \u0435\u0441\u043B\u0438 swipeEnabled \u0432\u043A\u043B\u044E\u0447\u0451\u043D."),
74
+ React.createElement(Band, { "$tone": "#ede9fe" }, "\u041A\u043E\u043D\u0442\u0435\u043D\u0442 \u043D\u0430\u0434 \u043A\u0430\u0440\u0443\u0441\u0435\u043B\u044C\u044E"),
75
+ React.createElement(Stage, null,
76
+ React.createElement(StageTitle, null, "\u0411\u0435\u0437 \u0441\u0432\u0430\u0439\u043F\u0430. \u0412\u0435\u0440\u0442\u0438\u043A\u0430\u043B\u044C\u043D\u044B\u0439 \u0436\u0435\u0441\u0442 \u043F\u0440\u043E\u043A\u0440\u0443\u0447\u0438\u0432\u0430\u0435\u0442 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0443."),
77
+ React.createElement(CarouselFrame, null,
78
+ React.createElement(CarouselComponent, __assign({ paginationOptions: paginationOptions, loop: loop }, rest, { swipeEnabled: false }), renderSlides()))),
79
+ React.createElement(Band, { "$tone": "#d1fae5" }, "\u041C\u0435\u0436\u0434\u0443 \u043A\u0430\u0440\u0443\u0441\u0435\u043B\u044F\u043C\u0438"),
80
+ React.createElement(Stage, null,
81
+ React.createElement(StageTitle, null, swipeEnabled
82
+ ? 'Со свайпом. Вертикальный жест прокручивает страницу, горизонтальный листает слайды.'
83
+ : 'swipeEnabled выключен контролом. Оба направления отдают скролл странице.'),
84
+ React.createElement(CarouselFrame, null,
85
+ React.createElement(CarouselComponent, __assign({ paginationOptions: paginationOptions, loop: loop }, rest, { swipeEnabled: swipeEnabled }), renderSlides()))),
86
+ React.createElement(Band, { "$tone": "#ffedd5" }, "\u041A\u043E\u043D\u0442\u0435\u043D\u0442 \u043F\u043E\u0434 \u043A\u0430\u0440\u0443\u0441\u0435\u043B\u044C\u044E. \u0415\u0441\u043B\u0438 \u044D\u0442\u043E\u0442 \u0431\u043B\u043E\u043A \u0432\u0438\u0434\u0435\u043D \u043F\u043E\u0441\u043B\u0435 \u0432\u0435\u0440\u0442\u0438\u043A\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u0436\u0435\u0441\u0442\u0430 \u043F\u043E \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0435, \u0441\u043A\u0440\u043E\u043B\u043B \u043D\u0435 \u0437\u0430\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u043D.")));
87
+ };
88
+ };
89
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8;
48
90
  //# sourceMappingURL=stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"stories.js","sourceRoot":"","sources":["../../../src/components/Carousel/stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,IAAM,UAAU,GAAG,MAAM,CAAC,GAAG,yQAAA,sMAS5B,IAAA,CAAC;AAEF,MAAM,CAAC,IAAM,kBAAkB,GAAG,UAAC,iBAAsB;IACrD,OAAO,UAAC,EAAmF;QAAjF,IAAA,kBAAkB,wBAAA,EAAE,WAAW,iBAAA,EAAE,kBAAkB,wBAAA,EAAE,IAAI,UAAA,EAAE,MAAM,YAAA,EAAK,IAAI,cAA5E,6EAA8E,CAAF;QAChF,IAAM,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC;aACtB,IAAI,CAAC,CAAC,CAAC;aACP,GAAG,CAAC,UAAC,CAAC,EAAE,CAAC,IAAK,OAAA,CAAC;YACZ,EAAE,EAAE,CAAC;YACL,KAAK,EAAE,CAAC;SACX,CAAC,EAHa,CAGb,CAAC,CAAC;QAER,OAAO,CACH,6BAAK,KAAK,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE;YAC1B,oBAAC,iBAAiB,aACd,iBAAiB,EAAE;oBACf,QAAQ,EAAE,kBAAkB;oBAC5B,WAAW,aAAA;oBACX,QAAQ,EAAE,kBAAkB;iBAC/B,EACD,IAAI,EAAE,IAAI,IACN,IAAI,GAEP,KAAK,CAAC,GAAG,CAAC,UAAC,IAAI,EAAE,CAAC,IAAK,OAAA,CACpB,oBAAC,UAAU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,CAAC,GAAG,CAAC,UAAC,IAAI,EAAE,CAAC,IAAK,OAAA,oBAAC,WAAW,IAAC,GAAG,EAAE,CAAC,IAAG,IAAI,CAAC,KAAK,CAAe,EAA/C,CAA+C,CAAC,EAAvE,CAAuE,CAAC;QAEnG,OAAO,CACH,oBAAC,cAAc;YACX,oBAAC,IAAI,i0BAGE;YACP,oBAAC,IAAI,aAAO,SAAS,2HAA6B;YAClD,oBAAC,KAAK;gBACF,oBAAC,UAAU,gSAAkE;gBAC7E,oBAAC,aAAa;oBACV,oBAAC,iBAAiB,aACd,iBAAiB,EAAE,iBAAiB,EACpC,IAAI,EAAE,IAAI,IACN,IAAI,IACR,YAAY,EAAE,KAAK,KAElB,YAAY,EAAE,CACC,CACR,CACZ;YACR,oBAAC,IAAI,aAAO,SAAS,kGAAwB;YAC7C,oBAAC,KAAK;gBACF,oBAAC,UAAU,QACN,YAAY;oBACT,CAAC,CAAC,qFAAqF;oBACvF,CAAC,CAAC,0EAA0E,CACvE;gBACb,oBAAC,aAAa;oBACV,oBAAC,iBAAiB,aACd,iBAAiB,EAAE,iBAAiB,EACpC,IAAI,EAAE,IAAI,IACN,IAAI,IACR,YAAY,EAAE,YAAY,KAEzB,YAAY,EAAE,CACC,CACR,CACZ;YACR,oBAAC,IAAI,aAAO,SAAS,8iBAGd,CACM,CACpB,CAAC;IACN,CAAC,CAAC;AACN,CAAC,CAAC"}
@@ -23,97 +23,64 @@ export declare const getChipStories: (config: CreateChipStoriesProps) => {
23
23
  enableContentRight: boolean;
24
24
  };
25
25
  argTypes: {
26
+ enableContentLeft: {
27
+ control: {
28
+ type: string;
29
+ };
30
+ };
31
+ enableContentRight: {
32
+ control: {
33
+ type: string;
34
+ };
35
+ };
26
36
  view: {
27
37
  options: any;
28
38
  control: {
29
39
  type: string;
30
40
  };
31
- table: {
32
- category: string;
33
- };
34
41
  };
35
42
  size: {
36
43
  options: any;
37
44
  control: {
38
45
  type: string;
39
46
  };
40
- table: {
41
- category: string;
42
- };
43
47
  };
44
48
  appearance: {
45
49
  options: string[];
46
50
  control: {
47
51
  type: string;
48
52
  };
49
- table: {
50
- category: string;
51
- };
52
53
  };
53
54
  disabled: {
54
55
  control: {
55
56
  type: string;
56
57
  };
57
- table: {
58
- category: string;
59
- };
60
58
  };
61
59
  focused: {
62
60
  control: {
63
61
  type: string;
64
62
  };
65
- table: {
66
- category: string;
67
- };
68
63
  };
69
64
  text: {
70
65
  control: {
71
66
  type: string;
72
67
  };
73
- table: {
74
- category: string;
75
- };
76
68
  };
77
69
  pilled: {
78
70
  control: {
79
71
  type: string;
80
72
  };
81
- table: {
82
- category: string;
83
- };
84
73
  };
85
74
  pin: {
86
75
  options: string[];
87
76
  control: {
88
77
  type: string;
89
78
  };
90
- table: {
91
- category: string;
92
- };
93
79
  };
94
80
  hasClear: {
95
81
  control: {
96
82
  type: string;
97
83
  };
98
- table: {
99
- category: string;
100
- };
101
- };
102
- enableContentLeft: {
103
- control: {
104
- type: string;
105
- };
106
- table: {
107
- category: string;
108
- };
109
- };
110
- enableContentRight: {
111
- control: {
112
- type: string;
113
- };
114
- table: {
115
- category: string;
116
- };
117
84
  };
118
85
  };
119
86
  };
@@ -22,97 +22,64 @@ export declare const createMeta: ({ component, componentConfig, title, defaultAr
22
22
  enableContentRight: boolean;
23
23
  };
24
24
  argTypes: {
25
+ enableContentLeft: {
26
+ control: {
27
+ type: string;
28
+ };
29
+ };
30
+ enableContentRight: {
31
+ control: {
32
+ type: string;
33
+ };
34
+ };
25
35
  view: {
26
36
  options: any;
27
37
  control: {
28
38
  type: string;
29
39
  };
30
- table: {
31
- category: string;
32
- };
33
40
  };
34
41
  size: {
35
42
  options: any;
36
43
  control: {
37
44
  type: string;
38
45
  };
39
- table: {
40
- category: string;
41
- };
42
46
  };
43
47
  appearance: {
44
48
  options: string[];
45
49
  control: {
46
50
  type: string;
47
51
  };
48
- table: {
49
- category: string;
50
- };
51
52
  };
52
53
  disabled: {
53
54
  control: {
54
55
  type: string;
55
56
  };
56
- table: {
57
- category: string;
58
- };
59
57
  };
60
58
  focused: {
61
59
  control: {
62
60
  type: string;
63
61
  };
64
- table: {
65
- category: string;
66
- };
67
62
  };
68
63
  text: {
69
64
  control: {
70
65
  type: string;
71
66
  };
72
- table: {
73
- category: string;
74
- };
75
67
  };
76
68
  pilled: {
77
69
  control: {
78
70
  type: string;
79
71
  };
80
- table: {
81
- category: string;
82
- };
83
72
  };
84
73
  pin: {
85
74
  options: string[];
86
75
  control: {
87
76
  type: string;
88
77
  };
89
- table: {
90
- category: string;
91
- };
92
78
  };
93
79
  hasClear: {
94
80
  control: {
95
81
  type: string;
96
82
  };
97
- table: {
98
- category: string;
99
- };
100
- };
101
- enableContentLeft: {
102
- control: {
103
- type: string;
104
- };
105
- table: {
106
- category: string;
107
- };
108
- };
109
- enableContentRight: {
110
- control: {
111
- type: string;
112
- };
113
- table: {
114
- category: string;
115
- };
116
83
  };
117
84
  };
118
85
  };
@@ -18,7 +18,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
18
18
  }
19
19
  return to.concat(ar || Array.prototype.slice.call(from));
20
20
  };
21
- import { disableProps, InSpacingDecorator } from '../../index';
21
+ import { disableProps, InSpacingDecorator, exampleOnly } from '../../index';
22
22
  import { appearances, pinValues } from './fixtures';
23
23
  var commonDisabledArgs = ['focused', 'readOnly', 'onClear', 'contentLeft', 'contentRight', 'contentClearButton'];
24
24
  export var createMeta = function (_a) {
@@ -28,44 +28,36 @@ export var createMeta = function (_a) {
28
28
  decorators: [InSpacingDecorator],
29
29
  component: component,
30
30
  args: __assign({ view: 'default', size: 'm', appearance: 'default', text: 'Hello', hasClear: true, disabled: false, pilled: false, enableContentLeft: false, enableContentRight: false }, defaultArgs),
31
- argTypes: __assign(__assign({ view: {
31
+ argTypes: __assign(__assign(__assign({ view: {
32
32
  options: componentConfig.views,
33
33
  control: { type: 'select' },
34
- table: { category: 'variation' },
35
34
  }, size: {
36
35
  options: componentConfig.sizes,
37
36
  control: { type: 'select' },
38
- table: { category: 'variation' },
39
37
  }, appearance: {
40
38
  options: appearances,
41
39
  control: { type: 'select' },
42
- table: { category: 'variation' },
43
40
  }, disabled: {
44
41
  control: { type: 'boolean' },
45
- table: { category: 'variation' },
46
42
  }, focused: {
47
43
  control: { type: 'boolean' },
48
- table: { category: 'variation' },
49
44
  }, text: {
50
45
  control: { type: 'text' },
51
- table: { category: 'layout' },
52
46
  }, pilled: {
53
47
  control: { type: 'boolean' },
54
- table: { category: 'layout' },
55
48
  }, pin: {
56
49
  options: pinValues,
57
50
  control: { type: 'select' },
58
- table: { category: 'layout' },
59
51
  }, hasClear: {
60
52
  control: { type: 'boolean' },
61
- table: { category: 'layout' },
62
- }, enableContentLeft: {
53
+ } }, exampleOnly({
54
+ enableContentLeft: {
63
55
  control: { type: 'boolean' },
64
- table: { category: 'layout' },
65
- }, enableContentRight: {
56
+ },
57
+ enableContentRight: {
66
58
  control: { type: 'boolean' },
67
- table: { category: 'layout' },
68
- } }, additionalArgTypes), disableProps(__spreadArray(__spreadArray(__spreadArray([], commonDisabledArgs, true), ['textGradientOption'], false), disablePropsList, true))),
59
+ },
60
+ })), additionalArgTypes), disableProps(__spreadArray(__spreadArray(__spreadArray([], commonDisabledArgs, true), ['textGradientOption'], false), disablePropsList, true))),
69
61
  };
70
62
  };
71
63
  //# sourceMappingURL=meta.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/components/Chip/meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAE/D,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAWpD,IAAM,kBAAkB,GAAG,CAAC,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,aAAa,EAAE,cAAc,EAAE,oBAAoB,CAAC,CAAC;AAEnH,MAAM,CAAC,IAAM,UAAU,GAAG,UAAC,E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,MAAM,EAAE;gBACJ,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;aAC/B,EACD,GAAG,EAAE;gBACD,OAAO,EAAE,SAAS;gBAClB,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;aAC9B,EACD,QAAQ,EAAE;gBACN,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;aAC/B,IACE,WAAW,CAAC;YACX,iBAAiB,EAAE;gBACf,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;aAC/B;YACD,kBAAkB,EAAE;gBAChB,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;aAC/B;SACJ,CAAC,GACC,kBAAkB,GAClB,YAAY,+CAAK,kBAAkB,UAAE,oBAAoB,WAAK,gBAAgB,QAAE,CACtF;KACJ,CAAC;AACN,CAAC,CAAC"}
@@ -24,91 +24,61 @@ export declare const getCodeAreaStories: (config: CreateCodeAreaStoriesProps) =>
24
24
  height: string;
25
25
  };
26
26
  argTypes: {
27
- size: {
28
- options: any;
27
+ hasContentOuter: {
29
28
  control: {
30
29
  type: string;
31
30
  };
32
- table: {
33
- category: string;
34
- };
35
31
  };
36
- appearance: {
37
- options: string[];
32
+ hasHeaderSlot: {
38
33
  control: {
39
34
  type: string;
40
35
  };
41
- table: {
42
- category: string;
43
- };
44
36
  };
45
- language: {
46
- options: string[];
37
+ hasAction: {
47
38
  control: {
48
39
  type: string;
49
40
  };
50
- table: {
51
- category: string;
52
- };
53
41
  };
54
- showLineNumbers: {
42
+ height: {
55
43
  control: {
56
44
  type: string;
57
45
  };
58
- table: {
59
- category: string;
60
- };
61
46
  };
62
- hasContentOuter: {
47
+ width: {
63
48
  control: {
64
49
  type: string;
65
50
  };
66
- table: {
67
- category: string;
68
- };
69
51
  };
70
- hasHeaderSlot: {
52
+ size: {
53
+ options: any;
71
54
  control: {
72
55
  type: string;
73
56
  };
74
- table: {
75
- category: string;
76
- };
77
57
  };
78
- hasDivider: {
58
+ appearance: {
59
+ options: string[];
79
60
  control: {
80
61
  type: string;
81
62
  };
82
- table: {
83
- category: string;
84
- };
85
- if: {
86
- arg: string;
87
- truthy: boolean;
88
- };
89
63
  };
90
- hasAction: {
64
+ language: {
65
+ options: string[];
91
66
  control: {
92
67
  type: string;
93
68
  };
94
- table: {
95
- category: string;
96
- };
97
69
  };
98
- height: {
70
+ showLineNumbers: {
99
71
  control: {
100
72
  type: string;
101
73
  };
102
- table: {
103
- category: string;
104
- };
105
74
  };
106
- width: {
75
+ hasDivider: {
107
76
  control: {
108
77
  type: string;
109
78
  };
110
- table: {
111
- category: string;
79
+ if: {
80
+ arg: string;
81
+ truthy: boolean;
112
82
  };
113
83
  };
114
84
  };
@@ -23,91 +23,61 @@ export declare const createMeta: ({ component, componentConfig, title, defaultAr
23
23
  height: string;
24
24
  };
25
25
  argTypes: {
26
- size: {
27
- options: any;
26
+ hasContentOuter: {
28
27
  control: {
29
28
  type: string;
30
29
  };
31
- table: {
32
- category: string;
33
- };
34
30
  };
35
- appearance: {
36
- options: string[];
31
+ hasHeaderSlot: {
37
32
  control: {
38
33
  type: string;
39
34
  };
40
- table: {
41
- category: string;
42
- };
43
35
  };
44
- language: {
45
- options: string[];
36
+ hasAction: {
46
37
  control: {
47
38
  type: string;
48
39
  };
49
- table: {
50
- category: string;
51
- };
52
40
  };
53
- showLineNumbers: {
41
+ height: {
54
42
  control: {
55
43
  type: string;
56
44
  };
57
- table: {
58
- category: string;
59
- };
60
45
  };
61
- hasContentOuter: {
46
+ width: {
62
47
  control: {
63
48
  type: string;
64
49
  };
65
- table: {
66
- category: string;
67
- };
68
50
  };
69
- hasHeaderSlot: {
51
+ size: {
52
+ options: any;
70
53
  control: {
71
54
  type: string;
72
55
  };
73
- table: {
74
- category: string;
75
- };
76
56
  };
77
- hasDivider: {
57
+ appearance: {
58
+ options: string[];
78
59
  control: {
79
60
  type: string;
80
61
  };
81
- table: {
82
- category: string;
83
- };
84
- if: {
85
- arg: string;
86
- truthy: boolean;
87
- };
88
62
  };
89
- hasAction: {
63
+ language: {
64
+ options: string[];
90
65
  control: {
91
66
  type: string;
92
67
  };
93
- table: {
94
- category: string;
95
- };
96
68
  };
97
- height: {
69
+ showLineNumbers: {
98
70
  control: {
99
71
  type: string;
100
72
  };
101
- table: {
102
- category: string;
103
- };
104
73
  };
105
- width: {
74
+ hasDivider: {
106
75
  control: {
107
76
  type: string;
108
77
  };
109
- table: {
110
- category: string;
78
+ if: {
79
+ arg: string;
80
+ truthy: boolean;
111
81
  };
112
82
  };
113
83
  };
@@ -18,7 +18,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
18
18
  }
19
19
  return to.concat(ar || Array.prototype.slice.call(from));
20
20
  };
21
- import { disableProps, InSpacingDecorator } from '../../index';
21
+ import { disableProps, InSpacingDecorator, exampleOnly } from '../../index';
22
22
  import { codeLanguages } from './fixtures';
23
23
  export var createMeta = function (_a) {
24
24
  var component = _a.component, componentConfig = _a.componentConfig, _b = _a.title, title = _b === void 0 ? 'Data Display/CodeArea' : _b, _c = _a.defaultArgs, defaultArgs = _c === void 0 ? {} : _c, _d = _a.additionalArgTypes, additionalArgTypes = _d === void 0 ? {} : _d, _e = _a.disablePropsList, disablePropsList = _e === void 0 ? [] : _e;
@@ -27,41 +27,37 @@ export var createMeta = function (_a) {
27
27
  decorators: [InSpacingDecorator],
28
28
  component: component,
29
29
  args: __assign({ size: 'm', appearance: 'default', language: 'json', showLineNumbers: false, hasContentOuter: false, hasHeaderSlot: false, hasDivider: false, hasAction: false, width: '640px', height: 'auto' }, defaultArgs),
30
- argTypes: __assign(__assign({ size: {
30
+ argTypes: __assign(__assign(__assign({ size: {
31
31
  options: componentConfig.sizes,
32
32
  control: { type: 'select' },
33
- table: { category: 'variation' },
34
33
  }, appearance: {
35
34
  options: ['default', 'hasWrapper'],
36
35
  control: { type: 'select' },
37
- table: { category: 'variation' },
38
36
  }, language: {
39
37
  options: codeLanguages,
40
38
  control: { type: 'select' },
41
- table: { category: 'code-related' },
42
39
  }, showLineNumbers: {
43
40
  control: { type: 'boolean' },
44
- table: { category: 'code-related' },
45
- }, hasContentOuter: {
46
- control: { type: 'boolean' },
47
- table: { category: 'layout' },
48
- }, hasHeaderSlot: {
49
- control: { type: 'boolean' },
50
- table: { category: 'layout' },
51
41
  }, hasDivider: {
52
42
  control: { type: 'boolean' },
53
- table: { category: 'layout' },
54
43
  if: { arg: 'hasHeaderSlot', truthy: true },
55
- }, hasAction: {
44
+ } }, exampleOnly({
45
+ hasContentOuter: {
46
+ control: { type: 'boolean' },
47
+ },
48
+ hasHeaderSlot: {
49
+ control: { type: 'boolean' },
50
+ },
51
+ hasAction: {
56
52
  control: { type: 'boolean' },
57
- table: { category: 'layout' },
58
- }, height: {
53
+ },
54
+ height: {
59
55
  control: { type: 'text' },
60
- table: { category: 'layout' },
61
- }, width: {
56
+ },
57
+ width: {
62
58
  control: { type: 'text' },
63
- table: { category: 'layout' },
64
- } }, additionalArgTypes), disableProps(__spreadArray([
59
+ },
60
+ })), additionalArgTypes), disableProps(__spreadArray([
65
61
  'view',
66
62
  'children',
67
63
  'contentOuter',
@@ -1 +1 @@
1
- {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/components/CodeArea/meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAE/D,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAW3C,MAAM,CAAC,IAAM,UAAU,GAAG,UAAC,EAOT;QANd,SAAS,eAAA,EACT,eAAe,qBAAA,EACf,aAA+B,EAA/B,KAAK,mBAAG,uBAAuB,KAAA,EAC/B,mBAAgB,EAAhB,WAAW,mBAAG,EAAE,KAAA,EAChB,0BAAuB,EAAvB,kBAAkB,mBAAG,EAAE,KAAA,EACvB,wBAAqB,EAArB,gBAAgB,mBAAG,EAAE,KAAA;IAErB,OAAO;QACH,KAAK,OAAA;QACL,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