@alphakits/ui 1.19.20 → 1.20.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 (261) hide show
  1. package/dist/amount/component.js +1 -1
  2. package/dist/amount/index.js +1 -1
  3. package/dist/amount-input/component.d.ts +1 -1
  4. package/dist/amount-input/component.js +1 -1
  5. package/dist/amount-input/index.js +1 -1
  6. package/dist/avatar/component.js +1 -1
  7. package/dist/avatar/index.js +1 -1
  8. package/dist/base-card/component.js +1 -1
  9. package/dist/base-card/index.js +1 -1
  10. package/dist/bottom-sheet/component.js +1 -1
  11. package/dist/bottom-sheet/index.js +1 -1
  12. package/dist/button/component.js +1 -1
  13. package/dist/button/index.js +1 -1
  14. package/dist/calendar/component.js +1 -1
  15. package/dist/calendar/components/days-table/component.js +1 -1
  16. package/dist/calendar/components/days-table/index.js +1 -1
  17. package/dist/calendar/components/header/index.js +1 -1
  18. package/dist/calendar/components/header//321/201omponent.js +1 -1
  19. package/dist/calendar/components/months-table/index.js +1 -1
  20. package/dist/calendar/components/months-table//321/201omponent.js +1 -1
  21. package/dist/calendar/components/select-button/index.js +1 -1
  22. package/dist/calendar/components/select-button//321/201omponent.js +1 -1
  23. package/dist/calendar/components/years-table/index.js +1 -1
  24. package/dist/calendar/components/years-table//321/201omponent.js +1 -1
  25. package/dist/calendar/index.js +1 -1
  26. package/dist/calendar-input/component.d.ts +1 -1
  27. package/dist/calendar-input/component.js +1 -1
  28. package/dist/calendar-input/index.js +1 -1
  29. package/dist/card/component.js +1 -1
  30. package/dist/card/images/index.js +1 -1
  31. package/dist/card/index.js +1 -1
  32. package/dist/cell/base/component.js +1 -1
  33. package/dist/cell/base/index.d.ts +1 -1
  34. package/dist/cell/base/index.js +1 -1
  35. package/dist/cell/component.js +1 -1
  36. package/dist/cell/index.js +1 -1
  37. package/dist/cell/pure/component.js +1 -1
  38. package/dist/cell/pure/index.js +1 -1
  39. package/dist/checkbox/component.js +1 -1
  40. package/dist/checkbox/index.js +1 -1
  41. package/dist/checkbox-group/component.js +1 -1
  42. package/dist/checkbox-group/index.js +1 -1
  43. package/dist/checkbox-lists/component.js +1 -1
  44. package/dist/checkbox-lists/index.js +1 -1
  45. package/dist/collapsable-row/addons.js +1 -1
  46. package/dist/collapsable-row/component.js +1 -1
  47. package/dist/collapsable-row/index.js +1 -1
  48. package/dist/collapse/component.js +1 -1
  49. package/dist/collapse/index.js +1 -1
  50. package/dist/copy-button/component.js +1 -1
  51. package/dist/copy-button/index.js +1 -1
  52. package/dist/date/component.js +1 -1
  53. package/dist/date/index.js +1 -1
  54. package/dist/date-switcher/component.js +1 -1
  55. package/dist/date-switcher/index.js +1 -1
  56. package/dist/footer/component.js +1 -1
  57. package/dist/footer/contact-block.js +1 -1
  58. package/dist/footer/index.js +1 -1
  59. package/dist/form/component.js +1 -1
  60. package/dist/form/components/form-footer/index.js +1 -1
  61. package/dist/form/components/index.js +1 -1
  62. package/dist/form/index.js +1 -1
  63. package/dist/form/templates/crud-form/index.js +1 -1
  64. package/dist/form/templates/filters-form/index.js +1 -1
  65. package/dist/form/templates/rest-form/index.js +1 -1
  66. package/dist/form/utils/get-default-values.js +1 -1
  67. package/dist/form-control/component.js +1 -1
  68. package/dist/form-control/index.js +1 -1
  69. package/dist/{formik.esm-71b5ac52.js → formik.esm-20a6b48b.js} +1 -1
  70. package/dist/grid/col/component.js +1 -1
  71. package/dist/grid/col/index.js +1 -1
  72. package/dist/grid/component.js +1 -1
  73. package/dist/grid/index.js +1 -1
  74. package/dist/grid/row/component.js +1 -1
  75. package/dist/grid/row/index.js +1 -1
  76. package/dist/header-search/component.js +1 -1
  77. package/dist/header-search/index.js +1 -1
  78. package/dist/heading/component.js +1 -1
  79. package/dist/heading/index.js +1 -1
  80. package/dist/hooks/index.js +1 -1
  81. package/dist/hooks/use-crud-form-requests/index.js +1 -1
  82. package/dist/hooks/use-get-one/index.js +1 -1
  83. package/dist/icon-button/component.js +1 -1
  84. package/dist/icon-button/index.js +1 -1
  85. package/dist/image/component.js +1 -1
  86. package/dist/image/image-base.js +1 -1
  87. package/dist/image/index.js +1 -1
  88. package/dist/image/use-image-render-component.js +1 -1
  89. package/dist/image-gallery/component.js +1 -1
  90. package/dist/image-gallery/components/header/index.js +1 -1
  91. package/dist/image-gallery/components/header-info-block/index.js +1 -1
  92. package/dist/image-gallery/components/image-viewer/index.js +1 -1
  93. package/dist/image-gallery/components/image-viewer/slide.js +1 -1
  94. package/dist/image-gallery/components/index.js +1 -1
  95. package/dist/image-gallery/index.js +1 -1
  96. package/dist/image-uploader/component.js +1 -1
  97. package/dist/image-uploader/index.js +1 -1
  98. package/dist/{index-d530320e.js → index-214c302a.js} +1 -1
  99. package/dist/index.css +1 -1
  100. package/dist/index.ts +1 -0
  101. package/dist/info-block-header/component.js +1 -1
  102. package/dist/info-block-header/index.js +1 -1
  103. package/dist/info-block-item/component.js +1 -1
  104. package/dist/info-block-item/index.js +1 -1
  105. package/dist/input/component.d.ts +1 -1
  106. package/dist/input/component.js +1 -1
  107. package/dist/input/index.js +1 -1
  108. package/dist/input-autocomplete/autocomplete-field/index.d.ts +6 -0
  109. package/dist/input-autocomplete/autocomplete-field/index.js +1 -0
  110. package/dist/input-autocomplete/component.d.ts +86 -0
  111. package/dist/input-autocomplete/component.js +1 -0
  112. package/dist/input-autocomplete/index.d.ts +1 -0
  113. package/dist/input-autocomplete/index.js +1 -0
  114. package/dist/link/component.js +1 -1
  115. package/dist/link/index.js +1 -1
  116. package/dist/list-allert/component.js +1 -1
  117. package/dist/list-allert/index.js +1 -1
  118. package/dist/masked-input/component.d.ts +1 -1
  119. package/dist/masked-input/component.js +1 -1
  120. package/dist/masked-input/index.js +1 -1
  121. package/dist/menu/component.js +1 -1
  122. package/dist/menu/components/content-header/index.js +1 -1
  123. package/dist/menu/components/index.js +1 -1
  124. package/dist/menu/components/menu-avatar/index.js +1 -1
  125. package/dist/menu/components/menu-button/index.js +1 -1
  126. package/dist/menu/components/menu-buttons-list/index.js +1 -1
  127. package/dist/menu/components/user-button/index.js +1 -1
  128. package/dist/menu/index.js +1 -1
  129. package/dist/message/component.js +1 -1
  130. package/dist/message/index.js +1 -1
  131. package/dist/modal/components/modals/index.js +1 -1
  132. package/dist/modal/context.js +1 -1
  133. package/dist/modal/hooks/use-modal.js +1 -1
  134. package/dist/modal/index.js +1 -1
  135. package/dist/not-found/component.js +1 -1
  136. package/dist/not-found/index.js +1 -1
  137. package/dist/notification/component.js +1 -1
  138. package/dist/notification/index.js +1 -1
  139. package/dist/{parse-query-params-b67d57b9.js → parse-query-params-867bc23c.js} +1 -1
  140. package/dist/picker-button/common/index.js +1 -1
  141. package/dist/picker-button/common/labeled-button/index.js +1 -1
  142. package/dist/picker-button/component.js +1 -1
  143. package/dist/picker-button/field/Component.js +1 -1
  144. package/dist/picker-button/field/index.js +1 -1
  145. package/dist/picker-button/index.js +1 -1
  146. package/dist/popover/component.js +1 -1
  147. package/dist/popover/index.js +1 -1
  148. package/dist/progress-bar/component.js +1 -1
  149. package/dist/progress-bar/index.js +1 -1
  150. package/dist/progress-index/component.js +1 -1
  151. package/dist/progress-index/index.js +1 -1
  152. package/dist/radio/component.d.ts +1 -1
  153. package/dist/radio/component.js +1 -1
  154. package/dist/radio/index.js +1 -1
  155. package/dist/radio-group/component.js +1 -1
  156. package/dist/radio-group/index.js +1 -1
  157. package/dist/radio-groups/component.js +1 -1
  158. package/dist/radio-groups/index.js +1 -1
  159. package/dist/select/component.js +1 -1
  160. package/dist/select/components/base-select/component.js +1 -1
  161. package/dist/select/components/base-select/index.js +1 -1
  162. package/dist/select/components/field/component.js +1 -1
  163. package/dist/select/components/field/index.js +1 -1
  164. package/dist/select/components/index.js +1 -1
  165. package/dist/select/components/native-select/component.js +1 -1
  166. package/dist/select/components/native-select/index.js +1 -1
  167. package/dist/select/components/option/component.js +1 -1
  168. package/dist/select/components/option/index.js +1 -1
  169. package/dist/select/components/virtual-options-list/component.js +1 -1
  170. package/dist/select/components/virtual-options-list/index.js +1 -1
  171. package/dist/select/index.js +1 -1
  172. package/dist/select/presets/index.js +1 -1
  173. package/dist/select/presets/use-lazy-loading/index.js +1 -1
  174. package/dist/select/presets/use-select-with-loading/hook.js +1 -1
  175. package/dist/sidepanel-header/component.js +1 -1
  176. package/dist/sidepanel-header/index.js +1 -1
  177. package/dist/space/Item.js +1 -1
  178. package/dist/space/component.js +1 -1
  179. package/dist/space/index.js +1 -1
  180. package/dist/suffix-input/component.d.ts +1 -1
  181. package/dist/suffix-input/component.js +1 -1
  182. package/dist/suffix-input/index.js +1 -1
  183. package/dist/super-list-header/component.js +1 -1
  184. package/dist/super-list-header/index.js +1 -1
  185. package/dist/super-list-item/component.js +1 -1
  186. package/dist/super-list-item/index.js +1 -1
  187. package/dist/switch/component.js +1 -1
  188. package/dist/switch/index.js +1 -1
  189. package/dist/table/columns.js +1 -1
  190. package/dist/table/component.js +1 -1
  191. package/dist/table/components/cell/component.js +1 -1
  192. package/dist/table/components/cell/index.js +1 -1
  193. package/dist/table/components/cells/index.js +1 -1
  194. package/dist/table/components/empty-list/index.js +1 -1
  195. package/dist/table/components/error/index.js +1 -1
  196. package/dist/table/components/loading/index.js +1 -1
  197. package/dist/table/components/pagination/index.js +1 -1
  198. package/dist/table/components/table-header/index.js +1 -1
  199. package/dist/table/hooks/use-table-data.js +1 -1
  200. package/dist/table/index.d.ts +1 -1
  201. package/dist/table/index.js +1 -1
  202. package/dist/table/table.js +1 -1
  203. package/dist/table/utils/add-query-param.js +1 -1
  204. package/dist/table/utils/get-query-from-url.js +1 -1
  205. package/dist/table/utils/index.d.ts +1 -1
  206. package/dist/table/utils/index.js +1 -1
  207. package/dist/table/utils/parse-query-params.js +1 -1
  208. package/dist/table/utils/prepare-rows.js +1 -1
  209. package/dist/table/utils/query-adapter.js +1 -1
  210. package/dist/table/utils/remove-query-param.js +1 -1
  211. package/dist/table/utils/reset-query-param.js +1 -1
  212. package/dist/table-status/component.js +1 -1
  213. package/dist/table-status/index.js +1 -1
  214. package/dist/tag/component.js +1 -1
  215. package/dist/tag/index.js +1 -1
  216. package/dist/tags-list/component.js +1 -1
  217. package/dist/tags-list/index.js +1 -1
  218. package/dist/tariff-builder/component.js +1 -1
  219. package/dist/tariff-builder/index.js +1 -1
  220. package/dist/textarea/component.d.ts +1 -1
  221. package/dist/textarea/component.js +1 -1
  222. package/dist/textarea/index.js +1 -1
  223. package/dist/toast/component.js +1 -1
  224. package/dist/toast/index.js +1 -1
  225. package/dist/toast-notifier/component.js +1 -1
  226. package/dist/toast-notifier/index.js +1 -1
  227. package/dist/toast-plate/component.js +1 -1
  228. package/dist/toast-plate/index.js +1 -1
  229. package/dist/tooltip/component.js +1 -1
  230. package/dist/tooltip/index.js +1 -1
  231. package/dist/typography/component.js +1 -1
  232. package/dist/typography/index.js +1 -1
  233. package/dist/typography/text/component.js +1 -1
  234. package/dist/typography/text/index.js +1 -1
  235. package/dist/typography/title/component.js +1 -1
  236. package/dist/typography/title/index.js +1 -1
  237. package/dist/typography/title-responsive/component.js +1 -1
  238. package/dist/typography/title-responsive/index.js +1 -1
  239. package/dist/utils/index.js +1 -1
  240. package/dist/utils/show-toast/index.js +1 -1
  241. package/dist/with-suffix/component.d.ts +1 -1
  242. package/dist/with-suffix/component.js +1 -1
  243. package/dist/with-suffix/index.js +1 -1
  244. package/package.json +1 -1
  245. /package/dist/{_commonjsHelpers-825fd70b.js → _commonjsHelpers-651bd293.js} +0 -0
  246. /package/dist/{colors.module-e2b2824a.js → colors.module-cc3c7a1a.js} +0 -0
  247. /package/dist/{common.module-089096dd.js → common.module-3b992d8f.js} +0 -0
  248. /package/dist/{component-cd8795fb.d.ts → component-01e8a129.d.ts} +0 -0
  249. /package/dist/{component-cd8795fb.js → component-01e8a129.js} +0 -0
  250. /package/dist/{component-5d00b47c.d.ts → component-a19931ba.d.ts} +0 -0
  251. /package/dist/{component-5d00b47c.js → component-a19931ba.js} +0 -0
  252. /package/dist/{contact-block-4ce048d0.d.ts → contact-block-52e47d46.d.ts} +0 -0
  253. /package/dist/{contact-block-4ce048d0.js → contact-block-52e47d46.js} +0 -0
  254. /package/dist/{gutters.module-21eed01c.js → gutters.module-b8786f2f.js} +0 -0
  255. /package/dist/{intersection-observer-600b6bfa.js → intersection-observer-71df7bc1.js} +0 -0
  256. /package/dist/{parse-query-params-b67d57b9.d.ts → parse-query-params-867bc23c.d.ts} +0 -0
  257. /package/dist/{slide-f7f0c3bf.d.ts → slide-d631d096.d.ts} +0 -0
  258. /package/dist/{slide-f7f0c3bf.js → slide-d631d096.js} +0 -0
  259. /package/dist/{tslib.es6-40ea3f8b.js → tslib.es6-459c03f1.js} +0 -0
  260. /package/dist/{use-image-render-component-b9446aa9.d.ts → use-image-render-component-479e3d4e.d.ts} +0 -0
  261. /package/dist/{use-image-render-component-b9446aa9.js → use-image-render-component-479e3d4e.js} +0 -0
@@ -1 +1 @@
1
- export{Switch}from"./component.js";import"../tslib.es6-40ea3f8b.js";import"react";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";
1
+ export{Switch}from"./component.js";import"../tslib.es6-459c03f1.js";import"react";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";
@@ -1 +1 @@
1
- import t from"react";import{ChevronForwardS as e}from"alpha-cli-icons";import{Button as o}from"../button/component.js";import"../tslib.es6-40ea3f8b.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";var r=function(){return[{header:"Title",accessor:"title",sort:!0,row:{image:function(){return"https://via.placeholder.com/150"},subtitle:"title"}},{header:"Photo",accessor:"photo",sort:!0,row:{title:function(t){return t.row.title+"awdawd"},image:function(t){return t.row.photo}}},{header:"Brakin photo",sort:!0,row:{image:function(t){return t.row.title}}},{header:"No photo",sort:!0,row:{image:function(){return""}}},{header:"icon",row:{icon:function(){return t.createElement(e,null)}}},{header:"no icon",row:{icon:function(){return""}}},{header:"Button",row:{title:function(e){var r=e.refetch;return t.createElement(o,{onClick:r},"Refetch")},customAddon:function(e){var o=e.row;return t.createElement("div",{style:{background:"red"}},o.title.length)}}},{header:"Button",width:"50px",row:{title:null}}]};export{r as NewColumns};
1
+ import t from"react";import{ChevronForwardS as e}from"alpha-cli-icons";import{Button as o}from"../button/component.js";import"../tslib.es6-459c03f1.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";var r=function(){return[{header:"Title",accessor:"title",sort:!0,row:{image:function(){return"https://via.placeholder.com/150"},subtitle:"title"}},{header:"Photo",accessor:"photo",sort:!0,row:{title:function(t){return t.row.title+"awdawd"},image:function(t){return t.row.photo}}},{header:"Brakin photo",sort:!0,row:{image:function(t){return t.row.title}}},{header:"No photo",sort:!0,row:{image:function(){return""}}},{header:"icon",row:{icon:function(){return t.createElement(e,null)}}},{header:"no icon",row:{icon:function(){return""}}},{header:"Button",row:{title:function(e){var r=e.refetch;return t.createElement(o,{onClick:r},"Refetch")},customAddon:function(e){var o=e.row;return t.createElement("div",{style:{background:"red"}},o.title.length)}}},{header:"Button",width:"50px",row:{title:null}}]};export{r as NewColumns};
@@ -1 +1 @@
1
- import"./components/cell/component.js";export{T as Table}from"../component-5d00b47c.js";import"../tslib.es6-40ea3f8b.js";import"react";import"classnames";import"../component-cd8795fb.js";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-e2b2824a.js";import"../common.module-089096dd.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../cell/pure/component.js";import"./components/cells/index.js";import"alpha-cli-icons";import"./components/empty-list/index.js";import"./languages/index.js";import"./components/error/index.js";import"./components/loading/index.js";import"./components/pagination/index.js";import"../button/component.js";import"react-merge-refs";import"../loader/component.js";import"./components/table-header/index.js";import"rooks";import"../header-search/component.js";import"./hooks/use-table-data.js";import"../parse-query-params-b67d57b9.js";import"../_commonjsHelpers-825fd70b.js";import"./utils/get-query-from-url.js";import"./utils/serialize-data.js";import"./utils/sort-array.js";import"./utils/is-object.js";import"./utils/add-query-param.js";import"./utils/set-query-to-url.js";import"./utils/get-tags.js";import"../image/component.js";import"../skeleton/component.js";import"../use-image-render-component-b9446aa9.js";import"../spinner/component.js";import"../image/typings.js";import"../image/constants.js";import"../image/utils.js";import"./utils/remove-query-param.js";import"./utils/reset-query-param.js";
1
+ import"./components/cell/component.js";export{T as Table}from"../component-a19931ba.js";import"../tslib.es6-459c03f1.js";import"react";import"classnames";import"../component-01e8a129.js";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-cc3c7a1a.js";import"../common.module-3b992d8f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../cell/pure/component.js";import"./components/cells/index.js";import"alpha-cli-icons";import"./components/empty-list/index.js";import"./languages/index.js";import"./components/error/index.js";import"./components/loading/index.js";import"./components/pagination/index.js";import"../button/component.js";import"react-merge-refs";import"../loader/component.js";import"./components/table-header/index.js";import"rooks";import"../header-search/component.js";import"./hooks/use-table-data.js";import"../parse-query-params-867bc23c.js";import"../_commonjsHelpers-651bd293.js";import"./utils/get-query-from-url.js";import"./utils/serialize-data.js";import"./utils/sort-array.js";import"./utils/is-object.js";import"./utils/add-query-param.js";import"./utils/set-query-to-url.js";import"./utils/get-tags.js";import"../image/component.js";import"../skeleton/component.js";import"../use-image-render-component-479e3d4e.js";import"../spinner/component.js";import"../image/typings.js";import"../image/constants.js";import"../image/utils.js";import"./utils/remove-query-param.js";import"./utils/reset-query-param.js";
@@ -1 +1 @@
1
- import{a as t}from"../../../tslib.es6-40ea3f8b.js";import e from"react";import o from"classnames";import{C as i}from"../../../component-cd8795fb.js";import"../../../__internal/utils/getDataTestId.js";import"../../../hooks/useFocus/index.js";import"../../../typography/component.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../colors.module-e2b2824a.js";import"../../../common.module-089096dd.js";import"../../../typography/text/component.js";import"../../../typography/title-responsive/component.js";import"../../../cell/pure/component.js";var s="index-module_cell__SVZPV",r="index-module_children__X0572",m="index-module_is_div__XHlH-",a=function(a){var p,l=a.dataTestID,n=a.className,d=a.children,c=a.title,u=a.subtitle,j=a.tableProps,_=a.cellProps,y=a.addon,h=a.width,v=a.tag,b=void 0===v?"td":v;return e.createElement(b,t({"data-test-id":l,className:o(s,n,(p={},p[m]="div"===b,p)),style:{width:h}},j),d?e.createElement("div",{className:o(r)},d):e.createElement(i.Base,t({title:void 0===c?"-":c,subtitle:u,addon:y},_)))};export{a as TableCell};
1
+ import{a as t}from"../../../tslib.es6-459c03f1.js";import e from"react";import o from"classnames";import{C as i}from"../../../component-01e8a129.js";import"../../../__internal/utils/getDataTestId.js";import"../../../hooks/useFocus/index.js";import"../../../typography/component.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../colors.module-cc3c7a1a.js";import"../../../common.module-3b992d8f.js";import"../../../typography/text/component.js";import"../../../typography/title-responsive/component.js";import"../../../cell/pure/component.js";var s="index-module_cell__SVZPV",r="index-module_children__X0572",m="index-module_is_div__XHlH-",a=function(a){var p,l=a.dataTestID,n=a.className,d=a.children,c=a.title,u=a.subtitle,j=a.tableProps,_=a.cellProps,y=a.addon,h=a.width,v=a.tag,f=void 0===v?"td":v;return e.createElement(f,t({"data-test-id":l,className:o(s,n,(p={},p[m]="div"===f,p)),style:{width:h}},j),d?e.createElement("div",{className:o(r)},d):e.createElement(i.Base,t({title:void 0===c?"-":c,subtitle:u,addon:y},_)))};export{a as TableCell};
@@ -1 +1 @@
1
- export{TableCell}from"./component.js";import"../../../tslib.es6-40ea3f8b.js";import"react";import"classnames";import"../../../component-cd8795fb.js";import"../../../__internal/utils/getDataTestId.js";import"../../../hooks/useFocus/index.js";import"../../../typography/component.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../colors.module-e2b2824a.js";import"../../../common.module-089096dd.js";import"../../../typography/text/component.js";import"../../../typography/title-responsive/component.js";import"../../../cell/pure/component.js";
1
+ export{TableCell}from"./component.js";import"../../../tslib.es6-459c03f1.js";import"react";import"classnames";import"../../../component-01e8a129.js";import"../../../__internal/utils/getDataTestId.js";import"../../../hooks/useFocus/index.js";import"../../../typography/component.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../colors.module-cc3c7a1a.js";import"../../../common.module-3b992d8f.js";import"../../../typography/text/component.js";import"../../../typography/title-responsive/component.js";import"../../../cell/pure/component.js";
@@ -1 +1 @@
1
- import e from"react";import{ChevronForwardS as r}from"alpha-cli-icons";import o from"classnames";import{Typography as t}from"../../../typography/component.js";import"../../../typography/title/index.js";import"../../../tslib.es6-40ea3f8b.js";import"../../../typography/title/component.js";import"../../../colors.module-e2b2824a.js";import"../../../common.module-089096dd.js";import"../../../typography/text/component.js";import"../../../typography/title-responsive/component.js";var a={header_row:"index-module_header_row__-IYYq",cell:"index-module_cell__c2wSL",clickable:"index-module_clickable__uhIIg",head_wrapper:"index-module_head_wrapper__WjtNB",arrow:"index-module_arrow__svnkJ",accent:"index-module_accent__5Dn8Q",DESC:"index-module_DESC__p2eV7",ASC:"index-module_ASC__fIiQ-"};function c(c){var l=c.columns,n=c.sort,m=c.order,i=c.addParam;return e.createElement("thead",null,e.createElement("tr",{className:a.header_row},l.map((function(c){var l,s,d=c.accessor&&n===c.accessor,p=d&&"ASC"===m?"DESC":"ASC";return e.createElement("th",{className:o(a.cell,(l={},l[a.clickable]=c.sort,l)),align:"left",style:{width:c.width||"auto"},onClick:c.sort?function(){return i({order:p,sort:c.accessor})}:void 0},e.createElement(t.Text,{className:a.head_wrapper,view:"caps",color:"secondary",weight:"medium"},c.header,c.sort&&e.createElement("span",{className:o(a.arrow,a[p],(s={},s[a.accent]=d,s))},e.createElement(r,null))))}))))}export{c as Cells};
1
+ import e from"react";import{ChevronForwardS as r}from"alpha-cli-icons";import o from"classnames";import{Typography as t}from"../../../typography/component.js";import"../../../typography/title/index.js";import"../../../tslib.es6-459c03f1.js";import"../../../typography/title/component.js";import"../../../colors.module-cc3c7a1a.js";import"../../../common.module-3b992d8f.js";import"../../../typography/text/component.js";import"../../../typography/title-responsive/component.js";var a={header_row:"index-module_header_row__-IYYq",cell:"index-module_cell__c2wSL",clickable:"index-module_clickable__uhIIg",head_wrapper:"index-module_head_wrapper__WjtNB",arrow:"index-module_arrow__svnkJ",accent:"index-module_accent__5Dn8Q",DESC:"index-module_DESC__p2eV7",ASC:"index-module_ASC__fIiQ-"};function c(c){var l=c.columns,n=c.sort,m=c.order,i=c.addParam;return e.createElement("thead",null,e.createElement("tr",{className:a.header_row},l.map((function(c){var l,s,p=c.accessor&&n===c.accessor,d=p&&"ASC"===m?"DESC":"ASC";return e.createElement("th",{className:o(a.cell,(l={},l[a.clickable]=c.sort,l)),align:"left",style:{width:c.width||"auto"},onClick:c.sort?function(){return i({order:d,sort:c.accessor})}:void 0},e.createElement(t.Text,{className:a.head_wrapper,view:"caps",color:"secondary",weight:"medium"},c.header,c.sort&&e.createElement("span",{className:o(a.arrow,a[d],(s={},s[a.accent]=p,s))},e.createElement(r,null))))}))))}export{c as Cells};
@@ -1 +1 @@
1
- import t from"react";import{Typography as e}from"../../../typography/component.js";import{translate as o}from"../../languages/index.js";import"../../../typography/title/index.js";import"../../../tslib.es6-40ea3f8b.js";import"../../../typography/title/component.js";import"classnames";import"../../../colors.module-e2b2824a.js";import"../../../common.module-089096dd.js";import"../../../typography/text/component.js";import"../../../typography/title-responsive/component.js";var m="index-module_empty_list__dwgN3",p=function(p){var r=p.language;return t.createElement("div",{className:m},t.createElement(e.Text,{view:"title"},o(r)("emptyList")))};export{p as EmptyList};
1
+ import t from"react";import{Typography as e}from"../../../typography/component.js";import{translate as o}from"../../languages/index.js";import"../../../typography/title/index.js";import"../../../tslib.es6-459c03f1.js";import"../../../typography/title/component.js";import"classnames";import"../../../colors.module-cc3c7a1a.js";import"../../../common.module-3b992d8f.js";import"../../../typography/text/component.js";import"../../../typography/title-responsive/component.js";var m="index-module_empty_list__dwgN3",p=function(p){var r=p.language;return t.createElement("div",{className:m},t.createElement(e.Text,{view:"title"},o(r)("emptyList")))};export{p as EmptyList};
@@ -1 +1 @@
1
- import t from"react";import{Typography as e}from"../../../typography/component.js";import{translate as o}from"../../languages/index.js";import"../../../typography/title/index.js";import"../../../tslib.es6-40ea3f8b.js";import"../../../typography/title/component.js";import"classnames";import"../../../colors.module-e2b2824a.js";import"../../../common.module-089096dd.js";import"../../../typography/text/component.js";import"../../../typography/title-responsive/component.js";var r="index-module_empty_list__FWx71",m=function(m){var p=m.language;return t.createElement("div",{className:r},t.createElement(e.Text,{view:"title"},o(p)("error")))};export{m as Error};
1
+ import t from"react";import{Typography as o}from"../../../typography/component.js";import{translate as e}from"../../languages/index.js";import"../../../typography/title/index.js";import"../../../tslib.es6-459c03f1.js";import"../../../typography/title/component.js";import"classnames";import"../../../colors.module-cc3c7a1a.js";import"../../../common.module-3b992d8f.js";import"../../../typography/text/component.js";import"../../../typography/title-responsive/component.js";var r="index-module_empty_list__FWx71",m=function(m){var p=m.language;return t.createElement("div",{className:r},t.createElement(o.Text,{view:"title"},e(p)("error")))};export{m as Error};
@@ -1 +1 @@
1
- import t,{memo as e}from"react";import o from"classnames";import{TableCell as r}from"../cell/component.js";import"../../../tslib.es6-40ea3f8b.js";import"../../../component-cd8795fb.js";import"../../../__internal/utils/getDataTestId.js";import"../../../hooks/useFocus/index.js";import"../../../typography/component.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../colors.module-e2b2824a.js";import"../../../common.module-089096dd.js";import"../../../typography/text/component.js";import"../../../typography/title-responsive/component.js";import"../../../cell/pure/component.js";var n={td:"index-module_td__tJ38Q",tr:"index-module_tr__bQ4Yc",aniVertical:"index-module_aniVertical__QAeK7"},m=e((function(e){var m=e.columnsLength;return t.createElement(t.Fragment,null,new Array(5).fill(1).map((function(){return t.createElement("tr",{className:o(n.row,n.tr)},new Array(m).fill(1).map((function(){return t.createElement(r,null,t.createElement("div",{className:n.td,style:{width:Math.floor(51*Math.random())+50+"%"}}))})))})))}));export{m as Loading};
1
+ import t,{memo as e}from"react";import o from"classnames";import{TableCell as r}from"../cell/component.js";import"../../../tslib.es6-459c03f1.js";import"../../../component-01e8a129.js";import"../../../__internal/utils/getDataTestId.js";import"../../../hooks/useFocus/index.js";import"../../../typography/component.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../colors.module-cc3c7a1a.js";import"../../../common.module-3b992d8f.js";import"../../../typography/text/component.js";import"../../../typography/title-responsive/component.js";import"../../../cell/pure/component.js";var n={td:"index-module_td__tJ38Q",tr:"index-module_tr__bQ4Yc",aniVertical:"index-module_aniVertical__QAeK7"},m=e((function(e){var m=e.columnsLength;return t.createElement(t.Fragment,null,new Array(5).fill(1).map((function(){return t.createElement("tr",{className:o(n.row,n.tr)},new Array(m).fill(1).map((function(){return t.createElement(r,null,t.createElement("div",{className:n.td,style:{width:Math.floor(51*Math.random())+50+"%"}}))})))})))}));export{m as Loading};
@@ -1 +1 @@
1
- import e from"react";import{ChevronForwardS as t}from"alpha-cli-icons";import n from"classnames";import{Button as o}from"../../../button/component.js";import{Typography as r}from"../../../typography/component.js";import{translate as a}from"../../languages/index.js";import"../../../tslib.es6-40ea3f8b.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../colors.module-e2b2824a.js";import"../../../common.module-089096dd.js";import"../../../typography/text/component.js";import"../../../typography/title-responsive/component.js";var i="index-module_pagination_wrap__kmile",l="index-module_pagination__36rf5",m="index-module_pages_info__9QuwE",s="index-module_prev_btn__UnDy5",c="index-module_disabled_btn__G6J6W",p="index-module_pagination_btn__vexgb",u="index-module_btn__-Zrx2",d="index-module_active__F46kP",g="index-module_select__XysEX";var _=function(_){var f,v,h,x,E,y=_.pagesCount,b=_.currentPage,j=_.recordsPerPage,k=void 0===j?30:j,N=_.total,w=_.language,C=_.addParam,P=function(e,t){for(var n=e-2,o=e+2+1,r=[],a=[],i=0,l=1;l<=t;l++)(1===l||l===t||l>=n&&l<o)&&r.push(l);return r.forEach((function(e){i&&(e-i==2?a.push(i+1):e-i!=1&&a.push("...")),a.push(e),i=e})),a}(b,y),F=1===b,A=b===y;return e.createElement("div",{className:i},e.createElement("div",{className:m},(h=1===b?1:(b-1)*k,E=(x=k*b)>N?N:x,e.createElement(r.Text,{view:"title",weight:"medium",color:"secondary"},a(w)("resultsFromTo")," ",a(w)("from")," ",e.createElement("strong",null,h," "),a(w)("to")," ",e.createElement("strong",null,E," "),a(w)("totalCount")," ",e.createElement("strong",null,N," ")))),P.length>1&&e.createElement("div",{className:l},e.createElement(o,{className:n(s,u,(f={},f[c]=F,f)),leftAddons:e.createElement(t,null),view:"ghost",onClick:function(){return C({page:b-1})},disabled:F}),P.map((function(t,r){var a;return Number.isFinite(t)?e.createElement(o,{className:n(p,(a={},a[d]=t===b,a)),size:"xs",view:"ghost",key:t,onClick:function(){return C({page:t})}},t):e.createElement(o,{key:t+r,className:n(p),view:"ghost",disabled:!0},"...")})),e.createElement(o,{className:n(u,(v={},v[c]=A,v)),leftAddons:e.createElement(t,null),view:"ghost",onClick:function(){C({page:b+1})},disabled:A})),e.createElement("select",{value:k,className:g,onChange:function(e){C({page:1,limit:e.target.value})}},[5,10,20,30,40,50].map((function(t){return e.createElement("option",{key:t,value:t},a(w)("resultsOnPage")+"    "+t+"   ")}))))};export{_ as Pagination};
1
+ import e from"react";import{ChevronForwardS as t}from"alpha-cli-icons";import n from"classnames";import{Button as o}from"../../../button/component.js";import{Typography as r}from"../../../typography/component.js";import{translate as a}from"../../languages/index.js";import"../../../tslib.es6-459c03f1.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../colors.module-cc3c7a1a.js";import"../../../common.module-3b992d8f.js";import"../../../typography/text/component.js";import"../../../typography/title-responsive/component.js";var i="index-module_pagination_wrap__kmile",l="index-module_pagination__36rf5",m="index-module_pages_info__9QuwE",s="index-module_prev_btn__UnDy5",c="index-module_disabled_btn__G6J6W",p="index-module_pagination_btn__vexgb",u="index-module_btn__-Zrx2",d="index-module_active__F46kP",g="index-module_select__XysEX";var _=function(_){var f,v,h,x,E,y=_.pagesCount,b=_.currentPage,j=_.recordsPerPage,k=void 0===j?30:j,N=_.total,w=_.language,C=_.addParam,P=function(e,t){for(var n=e-2,o=e+2+1,r=[],a=[],i=0,l=1;l<=t;l++)(1===l||l===t||l>=n&&l<o)&&r.push(l);return r.forEach((function(e){i&&(e-i==2?a.push(i+1):e-i!=1&&a.push("...")),a.push(e),i=e})),a}(b,y),F=1===b,A=b===y;return e.createElement("div",{className:i},e.createElement("div",{className:m},(h=1===b?1:(b-1)*k,E=(x=k*b)>N?N:x,e.createElement(r.Text,{view:"title",weight:"medium",color:"secondary"},a(w)("resultsFromTo")," ",a(w)("from")," ",e.createElement("strong",null,h," "),a(w)("to")," ",e.createElement("strong",null,E," "),a(w)("totalCount")," ",e.createElement("strong",null,N," ")))),P.length>1&&e.createElement("div",{className:l},e.createElement(o,{className:n(s,u,(f={},f[c]=F,f)),leftAddons:e.createElement(t,null),view:"ghost",onClick:function(){return C({page:b-1})},disabled:F}),P.map((function(t,r){var a;return Number.isFinite(t)?e.createElement(o,{className:n(p,(a={},a[d]=t===b,a)),size:"xs",view:"ghost",key:t,onClick:function(){return C({page:t})}},t):e.createElement(o,{key:t+r,className:n(p),view:"ghost",disabled:!0},"...")})),e.createElement(o,{className:n(u,(v={},v[c]=A,v)),leftAddons:e.createElement(t,null),view:"ghost",onClick:function(){C({page:b+1})},disabled:A})),e.createElement("select",{value:k,className:g,onChange:function(e){C({page:1,limit:e.target.value})}},[5,10,20,30,40,50].map((function(t){return e.createElement("option",{key:t,value:t},a(w)("resultsOnPage")+"    "+t+"   ")}))))};export{_ as Pagination};
@@ -1 +1 @@
1
- import e,{useState as t,useEffect as o,useCallback as a}from"react";import{PlusS as r,ControllerS as n}from"alpha-cli-icons";import{useDebounce as l}from"rooks";import{Button as i}from"../../../button/component.js";import{HeaderSearch as s}from"../../../header-search/component.js";import{translate as m}from"../../languages/index.js";import"../../../tslib.es6-40ea3f8b.js";import"react-merge-refs";import"classnames";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var c="index-module_table_header__GXu4u",d="index-module_actions__GZKJC",p="index-module_tags__PpKzF",u="index-module_buttons__3CQYG",f=function(f){var h=f.tags,x=f.searchPlaceholder,_=void 0===x?"Type something..":x,v=f.searchText,g=f.addParam,C=f.onCreateClick,E=f.onDownloadClick,k=f.onFiltersClick,b=f.showFiltersButton,j=f.language,w=t(v),z=w[0],F=w[1],N=t(v),T=N[0],G=N[1];o((function(){g({searchText:T,page:1})}),[T]);var P=l(G,500),y=a((function(e){F(e),P(e)}),[]);return e.createElement("div",{className:c},e.createElement("div",{className:d},e.createElement(s,{value:z,onChange:y,placeholder:_}),e.createElement("div",{className:u},!!C&&e.createElement(i,{dataTestId:"createbtn",onClick:C,view:"primary",leftAddons:e.createElement(r,null),size:"xs"},m(j)("create")),!!E&&e.createElement(i,{view:"outlined",size:"xs",onClick:E},m(j)("export")),b&&e.createElement(i,{leftAddons:e.createElement(n,null),onClick:k,view:"outlined",size:"xs"},m(j)("filters")))),!!h.length&&e.createElement("div",{className:p},h))};export{f as TableHeader};
1
+ import e,{useState as t,useEffect as o,useCallback as a}from"react";import{PlusS as r,ControllerS as n}from"alpha-cli-icons";import{useDebounce as l}from"rooks";import{Button as i}from"../../../button/component.js";import{HeaderSearch as s}from"../../../header-search/component.js";import{translate as m}from"../../languages/index.js";import"../../../tslib.es6-459c03f1.js";import"react-merge-refs";import"classnames";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var c="index-module_table_header__GXu4u",d="index-module_actions__GZKJC",p="index-module_tags__PpKzF",u="index-module_buttons__3CQYG",f=function(f){var h=f.tags,x=f.searchPlaceholder,_=void 0===x?"Type something..":x,v=f.searchText,g=f.addParam,C=f.onCreateClick,E=f.onDownloadClick,k=f.onFiltersClick,j=f.showFiltersButton,b=f.language,w=t(v),z=w[0],F=w[1],N=t(v),T=N[0],G=N[1];o((function(){g({searchText:T,page:1})}),[T]);var P=l(G,500),y=a((function(e){F(e),P(e)}),[]);return e.createElement("div",{className:c},e.createElement("div",{className:d},e.createElement(s,{value:z,onChange:y,placeholder:_}),e.createElement("div",{className:u},!!C&&e.createElement(i,{dataTestId:"createbtn",onClick:C,view:"primary",leftAddons:e.createElement(r,null),size:"xs"},m(b)("create")),!!E&&e.createElement(i,{view:"outlined",size:"xs",onClick:E},m(b)("export")),j&&e.createElement(i,{leftAddons:e.createElement(n,null),onClick:k,view:"outlined",size:"xs"},m(b)("filters")))),!!h.length&&e.createElement("div",{className:p},h))};export{f as TableHeader};
@@ -1 +1 @@
1
- import{c as r,d as t}from"../../tslib.es6-40ea3f8b.js";import{useState as s,useCallback as a,useEffect as e}from"react";import"../../parse-query-params-b67d57b9.js";import{getQueryFromUrl as o}from"../utils/get-query-from-url.js";import{serializeData as i}from"../utils/serialize-data.js";import"../../_commonjsHelpers-825fd70b.js";import"../utils/sort-array.js";import"../utils/is-object.js";function n(n){var u=this,m=n.promise,c=n.records,p=s([]),l=p[0],f=p[1],d=s(!0),j=d[0],b=d[1],y=s(!1),g=y[0],h=y[1],v=s(0),A=v[0],q=v[1],w=s(1),x=w[0],z=w[1],C=s(),D=C[0],H=C[1],I=a((function(){return r(u,void 0,void 0,(function(){var r,s,a,e;return t(this,(function(t){switch(t.label){case 0:if(r=o(),Array.isArray(c)&&(b(!1),f(i(c,r))),!m)return[3,5];H(r),h(!1),b(!0),t.label=1;case 1:return t.trys.push([1,3,4,5]),[4,m(r)];case 2:return s=t.sent().data,a=s.items,e=s.meta,q(e.totalItems),z(e.totalPages),f(a||[]),[3,5];case 3:return t.sent(),h(!0),[3,5];case 4:return b(!1),[7];case 5:return[2]}}))}))}),[c]);return e((function(){I()}),[]),e((function(){Array.isArray(c)&&(b(!1),f(c))}),[c]),{loading:j,error:g,data:l,total:A,params:D,pagesCount:x,updateData:I}}export{n as useTableData};
1
+ import{c as r,d as t}from"../../tslib.es6-459c03f1.js";import{useState as s,useCallback as a,useEffect as e}from"react";import"../../parse-query-params-867bc23c.js";import{getQueryFromUrl as o}from"../utils/get-query-from-url.js";import{serializeData as i}from"../utils/serialize-data.js";import"../../_commonjsHelpers-651bd293.js";import"../utils/sort-array.js";import"../utils/is-object.js";function n(n){var u=this,c=n.promise,m=n.records,p=s([]),l=p[0],f=p[1],d=s(!0),j=d[0],y=d[1],b=s(!1),g=b[0],h=b[1],v=s(0),A=v[0],q=v[1],w=s(1),x=w[0],z=w[1],C=s(),D=C[0],H=C[1],I=a((function(){return r(u,void 0,void 0,(function(){var r,s,a,e;return t(this,(function(t){switch(t.label){case 0:if(r=o(),Array.isArray(m)&&(y(!1),f(i(m,r))),!c)return[3,5];H(r),h(!1),y(!0),t.label=1;case 1:return t.trys.push([1,3,4,5]),[4,c(r)];case 2:return s=t.sent().data,a=s.items,e=s.meta,q(e.totalItems),z(e.totalPages),f(a||[]),[3,5];case 3:return t.sent(),h(!0),[3,5];case 4:return y(!1),[7];case 5:return[2]}}))}))}),[m]);return e((function(){I()}),[]),e((function(){Array.isArray(m)&&(y(!1),f(m))}),[m]),{loading:j,error:g,data:l,total:A,params:D,pagesCount:x,updateData:I}}export{n as useTableData};
@@ -1,2 +1,2 @@
1
- export * from "../component-5d00b47c";
1
+ export * from "../component-a19931ba";
2
2
  export * from "./components/cell/index";
@@ -1 +1 @@
1
- export{T as Table}from"../component-5d00b47c.js";export{TableCell}from"./components/cell/component.js";import"react";import"classnames";import"./components/cells/index.js";import"alpha-cli-icons";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-40ea3f8b.js";import"../typography/title/component.js";import"../colors.module-e2b2824a.js";import"../common.module-089096dd.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"./components/empty-list/index.js";import"./languages/index.js";import"./components/error/index.js";import"./components/loading/index.js";import"../component-cd8795fb.js";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../cell/pure/component.js";import"./components/pagination/index.js";import"../button/component.js";import"react-merge-refs";import"../loader/component.js";import"./components/table-header/index.js";import"rooks";import"../header-search/component.js";import"./hooks/use-table-data.js";import"../parse-query-params-b67d57b9.js";import"../_commonjsHelpers-825fd70b.js";import"./utils/get-query-from-url.js";import"./utils/serialize-data.js";import"./utils/sort-array.js";import"./utils/is-object.js";import"./utils/add-query-param.js";import"./utils/set-query-to-url.js";import"./utils/get-tags.js";import"../image/component.js";import"../skeleton/component.js";import"../use-image-render-component-b9446aa9.js";import"../spinner/component.js";import"../image/typings.js";import"../image/constants.js";import"../image/utils.js";import"./utils/remove-query-param.js";import"./utils/reset-query-param.js";
1
+ export{T as Table}from"../component-a19931ba.js";export{TableCell}from"./components/cell/component.js";import"react";import"classnames";import"./components/cells/index.js";import"alpha-cli-icons";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-459c03f1.js";import"../typography/title/component.js";import"../colors.module-cc3c7a1a.js";import"../common.module-3b992d8f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"./components/empty-list/index.js";import"./languages/index.js";import"./components/error/index.js";import"./components/loading/index.js";import"../component-01e8a129.js";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../cell/pure/component.js";import"./components/pagination/index.js";import"../button/component.js";import"react-merge-refs";import"../loader/component.js";import"./components/table-header/index.js";import"rooks";import"../header-search/component.js";import"./hooks/use-table-data.js";import"../parse-query-params-867bc23c.js";import"../_commonjsHelpers-651bd293.js";import"./utils/get-query-from-url.js";import"./utils/serialize-data.js";import"./utils/sort-array.js";import"./utils/is-object.js";import"./utils/add-query-param.js";import"./utils/set-query-to-url.js";import"./utils/get-tags.js";import"../image/component.js";import"../skeleton/component.js";import"../use-image-render-component-479e3d4e.js";import"../spinner/component.js";import"../image/typings.js";import"../image/constants.js";import"../image/utils.js";import"./utils/remove-query-param.js";import"./utils/reset-query-param.js";
@@ -1 +1 @@
1
- import"react";import"classnames";import"./components/cells/index.js";import"./components/empty-list/index.js";import"./components/error/index.js";import"./components/loading/index.js";import"./components/pagination/index.js";import"./components/table-header/index.js";import"./hooks/use-table-data.js";import"./utils/add-query-param.js";import"./utils/get-tags.js";export{a as Table}from"../component-5d00b47c.js";import"./utils/remove-query-param.js";import"./utils/reset-query-param.js";import"alpha-cli-icons";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-40ea3f8b.js";import"../typography/title/component.js";import"../colors.module-e2b2824a.js";import"../common.module-089096dd.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"./languages/index.js";import"./components/cell/component.js";import"../component-cd8795fb.js";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../cell/pure/component.js";import"../button/component.js";import"react-merge-refs";import"../loader/component.js";import"rooks";import"../header-search/component.js";import"../parse-query-params-b67d57b9.js";import"../_commonjsHelpers-825fd70b.js";import"./utils/get-query-from-url.js";import"./utils/serialize-data.js";import"./utils/sort-array.js";import"./utils/is-object.js";import"./utils/set-query-to-url.js";import"../image/component.js";import"../skeleton/component.js";import"../use-image-render-component-b9446aa9.js";import"../spinner/component.js";import"../image/typings.js";import"../image/constants.js";import"../image/utils.js";
1
+ import"react";import"classnames";import"./components/cells/index.js";import"./components/empty-list/index.js";import"./components/error/index.js";import"./components/loading/index.js";import"./components/pagination/index.js";import"./components/table-header/index.js";import"./hooks/use-table-data.js";import"./utils/add-query-param.js";import"./utils/get-tags.js";export{a as Table}from"../component-a19931ba.js";import"./utils/remove-query-param.js";import"./utils/reset-query-param.js";import"alpha-cli-icons";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-459c03f1.js";import"../typography/title/component.js";import"../colors.module-cc3c7a1a.js";import"../common.module-3b992d8f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"./languages/index.js";import"./components/cell/component.js";import"../component-01e8a129.js";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../cell/pure/component.js";import"../button/component.js";import"react-merge-refs";import"../loader/component.js";import"rooks";import"../header-search/component.js";import"../parse-query-params-867bc23c.js";import"../_commonjsHelpers-651bd293.js";import"./utils/get-query-from-url.js";import"./utils/serialize-data.js";import"./utils/sort-array.js";import"./utils/is-object.js";import"./utils/set-query-to-url.js";import"../image/component.js";import"../skeleton/component.js";import"../use-image-render-component-479e3d4e.js";import"../spinner/component.js";import"../image/typings.js";import"../image/constants.js";import"../image/utils.js";
@@ -1 +1 @@
1
- import{a as r}from"../../tslib.es6-40ea3f8b.js";import{q as o,p as s}from"../../parse-query-params-b67d57b9.js";import{setQueryToUrl as a}from"./set-query-to-url.js";import"../../_commonjsHelpers-825fd70b.js";var m=function(m){return a(o(r(r({},s()),m),{arrayFormat:"comma"}))};export{m as addQueryParam};
1
+ import{a as r}from"../../tslib.es6-459c03f1.js";import{q as o,p as s}from"../../parse-query-params-867bc23c.js";import{setQueryToUrl as m}from"./set-query-to-url.js";import"../../_commonjsHelpers-651bd293.js";var a=function(a){return m(o(r(r({},s()),a),{arrayFormat:"comma"}))};export{a as addQueryParam};
@@ -1 +1 @@
1
- import{_ as r}from"../../tslib.es6-40ea3f8b.js";import{p as e}from"../../parse-query-params-b67d57b9.js";import"../../_commonjsHelpers-825fd70b.js";function t(){var t=e(),s=t.limit,o=t.page,a=t.searchText,i=t.sort,m=t.order,p={where:r(t,["limit","page","searchText","sort","order"]),limit:Number(s)||10,page:Number(o)||1};return"ASC"!==m&&"DESC"!==m||(p.order=m),"string"==typeof a&&(p.searchText=a),"string"==typeof i&&(p.sort=i),p}export{t as getQueryFromUrl};
1
+ import{_ as r}from"../../tslib.es6-459c03f1.js";import{p as e}from"../../parse-query-params-867bc23c.js";import"../../_commonjsHelpers-651bd293.js";function s(){var s=e(),t=s.limit,o=s.page,m=s.searchText,a=s.sort,i=s.order,p={where:r(s,["limit","page","searchText","sort","order"]),limit:Number(t)||10,page:Number(o)||1};return"ASC"!==i&&"DESC"!==i||(p.order=i),m&&(p.searchText=m),"string"==typeof a&&(p.sort=a),p}export{s as getQueryFromUrl};
@@ -1,7 +1,7 @@
1
1
  export * from "./add-query-param";
2
2
  export * from "./get-query-from-url";
3
3
  export * from "./get-tags";
4
- export * from "../../parse-query-params-b67d57b9";
4
+ export * from "../../parse-query-params-867bc23c";
5
5
  export * from "./remove-query-param";
6
6
  export * from "./reset-query-param";
7
7
  export * from "./set-query-to-url";
@@ -1 +1 @@
1
- export{addQueryParam}from"./add-query-param.js";export{getQueryFromUrl}from"./get-query-from-url.js";export{getTags}from"./get-tags.js";export{p as parseQueryParams}from"../../parse-query-params-b67d57b9.js";export{removeQueryParam}from"./remove-query-param.js";export{resetQueryParam}from"./reset-query-param.js";export{setQueryToUrl}from"./set-query-to-url.js";export{serializeData}from"./serialize-data.js";import"../../tslib.es6-40ea3f8b.js";import"../../_commonjsHelpers-825fd70b.js";import"./sort-array.js";import"./is-object.js";
1
+ export{addQueryParam}from"./add-query-param.js";export{getQueryFromUrl}from"./get-query-from-url.js";export{getTags}from"./get-tags.js";export{p as parseQueryParams}from"../../parse-query-params-867bc23c.js";export{removeQueryParam}from"./remove-query-param.js";export{resetQueryParam}from"./reset-query-param.js";export{setQueryToUrl}from"./set-query-to-url.js";export{serializeData}from"./serialize-data.js";import"../../tslib.es6-459c03f1.js";import"../../_commonjsHelpers-651bd293.js";import"./sort-array.js";import"./is-object.js";
@@ -1 +1 @@
1
- export{p as parseQueryParams}from"../../parse-query-params-b67d57b9.js";import"../../_commonjsHelpers-825fd70b.js";
1
+ export{p as parseQueryParams}from"../../parse-query-params-867bc23c.js";import"../../_commonjsHelpers-651bd293.js";
@@ -1 +1 @@
1
- import"react";import"../../image/component.js";import"../../image/typings.js";import"../../image/constants.js";export{p as prepareRows}from"../../component-5d00b47c.js";import"classnames";import"../../cell/pure/component.js";import"alpha-cli-icons";import"../../skeleton/component.js";import"../../typography/component.js";import"../../typography/title/index.js";import"../../tslib.es6-40ea3f8b.js";import"../../typography/title/component.js";import"../../colors.module-e2b2824a.js";import"../../common.module-089096dd.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../../use-image-render-component-b9446aa9.js";import"../../spinner/component.js";import"../../image/utils.js";import"../components/cell/component.js";import"../../component-cd8795fb.js";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../components/cells/index.js";import"../components/empty-list/index.js";import"../languages/index.js";import"../components/error/index.js";import"../components/loading/index.js";import"../components/pagination/index.js";import"../../button/component.js";import"react-merge-refs";import"../../loader/component.js";import"../components/table-header/index.js";import"rooks";import"../../header-search/component.js";import"../hooks/use-table-data.js";import"../../parse-query-params-b67d57b9.js";import"../../_commonjsHelpers-825fd70b.js";import"./get-query-from-url.js";import"./serialize-data.js";import"./sort-array.js";import"./is-object.js";import"./add-query-param.js";import"./set-query-to-url.js";import"./get-tags.js";import"./remove-query-param.js";import"./reset-query-param.js";
1
+ import"react";import"../../image/component.js";import"../../image/typings.js";import"../../image/constants.js";export{p as prepareRows}from"../../component-a19931ba.js";import"classnames";import"../../cell/pure/component.js";import"alpha-cli-icons";import"../../skeleton/component.js";import"../../typography/component.js";import"../../typography/title/index.js";import"../../tslib.es6-459c03f1.js";import"../../typography/title/component.js";import"../../colors.module-cc3c7a1a.js";import"../../common.module-3b992d8f.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../../use-image-render-component-479e3d4e.js";import"../../spinner/component.js";import"../../image/utils.js";import"../components/cell/component.js";import"../../component-01e8a129.js";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../components/cells/index.js";import"../components/empty-list/index.js";import"../languages/index.js";import"../components/error/index.js";import"../components/loading/index.js";import"../components/pagination/index.js";import"../../button/component.js";import"react-merge-refs";import"../../loader/component.js";import"../components/table-header/index.js";import"rooks";import"../../header-search/component.js";import"../hooks/use-table-data.js";import"../../parse-query-params-867bc23c.js";import"../../_commonjsHelpers-651bd293.js";import"./get-query-from-url.js";import"./serialize-data.js";import"./sort-array.js";import"./is-object.js";import"./add-query-param.js";import"./set-query-to-url.js";import"./get-tags.js";import"./remove-query-param.js";import"./reset-query-param.js";
@@ -1 +1 @@
1
- import{a as r}from"../../tslib.es6-40ea3f8b.js";var e={dev:{limit:"_limit",page:"_page",sort:"_sort",order:"_order",searchText:"q"},prod:{limit:"limit",page:"page",sort:"sort",order:"order",searchText:"searchText"}};function t(t,o){return Object.entries(t).reduce((function(t,i){var a,s=i[0],c=i[1],d=e[o][s]||s;return r(((a={})[d]=c,a),t)}),{})}export{t as queryAdapter};
1
+ import{a as r}from"../../tslib.es6-459c03f1.js";var e={dev:{limit:"_limit",page:"_page",sort:"_sort",order:"_order",searchText:"q"},prod:{limit:"limit",page:"page",sort:"sort",order:"order",searchText:"searchText"}};function t(t,o){return Object.entries(t).reduce((function(t,i){var s,a=i[0],c=i[1],d=e[o][a]||a;return r(((s={})[d]=c,s),t)}),{})}export{t as queryAdapter};
@@ -1 +1 @@
1
- import{p as r,q as o}from"../../parse-query-params-b67d57b9.js";import{setQueryToUrl as a}from"./set-query-to-url.js";import"../../_commonjsHelpers-825fd70b.js";function e(e,t){var m=r();Array.isArray(m[e])&&t?m[e]=m[e].filter((function(r){return r!==t})):delete m[e],a(o(m,{arrayFormat:"comma"}))}export{e as removeQueryParam};
1
+ import{p as r,q as o}from"../../parse-query-params-867bc23c.js";import{setQueryToUrl as a}from"./set-query-to-url.js";import"../../_commonjsHelpers-651bd293.js";function e(e,t){var m=r();Array.isArray(m[e])&&t?m[e]=m[e].filter((function(r){return r!==t})):delete m[e],a(o(m,{arrayFormat:"comma"}))}export{e as removeQueryParam};
@@ -1 +1 @@
1
- import{a as r}from"../../tslib.es6-40ea3f8b.js";import{p as e,q as t}from"../../parse-query-params-b67d57b9.js";import{setQueryToUrl as o}from"./set-query-to-url.js";import"../../_commonjsHelpers-825fd70b.js";function s(s){var a=Object.fromEntries(Object.entries(s).filter((function(r){return""!==r[1]}))),m=e(),i=m.searchText,p=m.order,f=m.sort;o(t(r({limit:10,page:1,searchText:i,order:p,sort:f},a),{arrayFormat:"comma"}))}export{s as resetQueryParam};
1
+ import{a as r}from"../../tslib.es6-459c03f1.js";import{p as e,q as t}from"../../parse-query-params-867bc23c.js";import{setQueryToUrl as o}from"./set-query-to-url.js";import"../../_commonjsHelpers-651bd293.js";function s(s){var a=Object.fromEntries(Object.entries(s).filter((function(r){return""!==r[1]}))),m=e(),i=m.searchText,c=m.order,p=m.sort;o(t(r({limit:10,page:1,searchText:i,order:c,sort:p},a),{arrayFormat:"comma"}))}export{s as resetQueryParam};
@@ -1 +1 @@
1
- import e from"react";import{CloseMarkM as t,CheckmarkRoudedM as o,ClockRoundM as r,AlertCircleM as m}from"alpha-cli-icons";import n from"classnames";import{Typography as a}from"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-40ea3f8b.js";import"../typography/title/component.js";import"../colors.module-e2b2824a.js";import"../common.module-089096dd.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var i="index-module_icon__xCdQr",l="index-module_text__0SHQw",p={negative:e.createElement(t,null),positive:e.createElement(o,null),secondary:e.createElement(r,null),accent:e.createElement(t,null),attention:e.createElement(m,null)},c=function(t){var o=t.text,r=t.view,m=void 0===r?"secondary":r,c=t.className;return e.createElement(a.Text,{className:n(l,c),tag:"div",view:"caps",weight:"medium",color:m},e.createElement("span",{className:i},p[m])," ",o)};export{c as TableStatus};
1
+ import e from"react";import{CloseMarkM as t,CheckmarkRoudedM as o,ClockRoundM as r,AlertCircleM as m}from"alpha-cli-icons";import n from"classnames";import{Typography as a}from"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-459c03f1.js";import"../typography/title/component.js";import"../colors.module-cc3c7a1a.js";import"../common.module-3b992d8f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var i="index-module_icon__xCdQr",l="index-module_text__0SHQw",c={negative:e.createElement(t,null),positive:e.createElement(o,null),secondary:e.createElement(r,null),accent:e.createElement(t,null),attention:e.createElement(m,null)},p=function(t){var o=t.text,r=t.view,m=void 0===r?"secondary":r,p=t.className;return e.createElement(a.Text,{className:n(l,p),tag:"div",view:"caps",weight:"medium",color:m},e.createElement("span",{className:i},c[m])," ",o)};export{p as TableStatus};
@@ -1 +1 @@
1
- export{TableStatus}from"./component.js";import"react";import"alpha-cli-icons";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-40ea3f8b.js";import"../typography/title/component.js";import"../colors.module-e2b2824a.js";import"../common.module-089096dd.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
1
+ export{TableStatus}from"./component.js";import"react";import"alpha-cli-icons";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-459c03f1.js";import"../typography/title/component.js";import"../colors.module-cc3c7a1a.js";import"../common.module-3b992d8f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
@@ -1 +1 @@
1
- import e from"react";import{CrossCompactM as t}from"alpha-cli-icons";import o from"classnames";import{Typography as i}from"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-40ea3f8b.js";import"../typography/title/component.js";import"../colors.module-e2b2824a.js";import"../common.module-089096dd.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var r={tag:"index-module_tag__ePuZ7",s:"index-module_s__JQOAw",m:"index-module_m__6q9L4",show_cross:"index-module_show_cross__J7Jc0",text:"index-module_text__cc9CM",primary:"index-module_primary__nTVdF","primary-inverted":"index-module_primary-inverted__G6REX"},m=function(m){var a,s=m.text,n=m.onClick,p=m.onCloseClick,l=m.view,c=void 0===l?"primary":l,d=m.dataTestId,_=m.size,u=void 0===_?"m":_,y=m.className;return e.createElement("button",{type:"button","data-test-id":d,onClick:n,disabled:!n&&!p,className:o(r.tag,r[c],r[u],(a={},a[r.show_cross]=!!p,a),y)},e.createElement(i.Text,{className:r.text,view:"caps",weight:"medium",color:c},s),!!p&&e.createElement("button",{"data-test-id":d+"_close",type:"button","aria-label":"close-tag",onClick:function(e){e.stopPropagation(),p()}},e.createElement(t,null)))};export{m as Tag};
1
+ import t from"react";import{CrossCompactM as e}from"alpha-cli-icons";import o from"classnames";import{Typography as i}from"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-459c03f1.js";import"../typography/title/component.js";import"../colors.module-cc3c7a1a.js";import"../common.module-3b992d8f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var r={tag:"index-module_tag__ePuZ7",s:"index-module_s__JQOAw",m:"index-module_m__6q9L4",show_cross:"index-module_show_cross__J7Jc0",text:"index-module_text__cc9CM",primary:"index-module_primary__nTVdF","primary-inverted":"index-module_primary-inverted__G6REX"},m=function(m){var a,s=m.text,n=m.onClick,p=m.onCloseClick,c=m.view,l=void 0===c?"primary":c,d=m.dataTestId,_=m.size,u=void 0===_?"m":_,y=m.className;return t.createElement("button",{type:"button","data-test-id":d,onClick:n,disabled:!n&&!p,className:o(r.tag,r[l],r[u],(a={},a[r.show_cross]=!!p,a),y)},t.createElement(i.Text,{className:r.text,view:"caps",weight:"medium",color:l},s),!!p&&t.createElement("button",{"data-test-id":d+"_close",type:"button","aria-label":"close-tag",onClick:function(t){t.stopPropagation(),p()}},t.createElement(e,null)))};export{m as Tag};
package/dist/tag/index.js CHANGED
@@ -1 +1 @@
1
- export{Tag}from"./component.js";import"react";import"alpha-cli-icons";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-40ea3f8b.js";import"../typography/title/component.js";import"../colors.module-e2b2824a.js";import"../common.module-089096dd.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
1
+ export{Tag}from"./component.js";import"react";import"alpha-cli-icons";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-459c03f1.js";import"../typography/title/component.js";import"../colors.module-cc3c7a1a.js";import"../common.module-3b992d8f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
@@ -1 +1 @@
1
- import o from"react";import{Tag as t}from"../tag/component.js";import"alpha-cli-icons";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-40ea3f8b.js";import"../typography/title/component.js";import"../colors.module-e2b2824a.js";import"../common.module-089096dd.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var e="index-module_tags__C28AJ",i=function(i){var r=i.tags,p=i.view,m=void 0===p?"primary":p,n=i.onClick,s=i.onCloseClick;return o.createElement("div",{className:e},(null==r?void 0:r.length)&&r.map((function(e){return o.createElement(t,{key:e,text:e,onClick:n,onCloseClick:s,view:m})})))};export{i as TagsList};
1
+ import o from"react";import{Tag as t}from"../tag/component.js";import"alpha-cli-icons";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-459c03f1.js";import"../typography/title/component.js";import"../colors.module-cc3c7a1a.js";import"../common.module-3b992d8f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var e="index-module_tags__C28AJ",i=function(i){var r=i.tags,p=i.view,m=void 0===p?"primary":p,n=i.onClick,c=i.onCloseClick;return o.createElement("div",{className:e},(null==r?void 0:r.length)&&r.map((function(e){return o.createElement(t,{key:e,text:e,onClick:n,onCloseClick:c,view:m})})))};export{i as TagsList};
@@ -1 +1 @@
1
- export{TagsList}from"./component.js";import"react";import"../tag/component.js";import"alpha-cli-icons";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-40ea3f8b.js";import"../typography/title/component.js";import"../colors.module-e2b2824a.js";import"../common.module-089096dd.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
1
+ export{TagsList}from"./component.js";import"react";import"../tag/component.js";import"alpha-cli-icons";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-459c03f1.js";import"../typography/title/component.js";import"../colors.module-cc3c7a1a.js";import"../common.module-3b992d8f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
@@ -1 +1 @@
1
- import{a as t}from"../tslib.es6-40ea3f8b.js";import e,{useState as o}from"react";import{AmountInput as r}from"../amount-input/component.js";import{FlexColumns as n}from"../flex-columns/component.js";import{ListAllert as i}from"../list-allert/component.js";import{Select as m}from"../select/component.js";import"classnames";import"../select/components/base-select/component.js";import"../form-control/component.js";import"../select/components/options-list/component.js";import"react-virtual";import"../utils/get-service-error/index.js";import"../toast-notifier/component.js";import"../intersection-observer-600b6bfa.js";import"../input/component.js";import"react-merge-refs";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../utils/format-amount/util.js";import"../utils/get-currency-symbol/util.js";import"../utils/data/currency-codes.js";import"../utils/split-amount/util.js";import"../with-suffix/component.js";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../amount-input/utils/index.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-e2b2824a.js";import"../common.module-089096dd.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../select/components/arrow/component.js";import"../select/components/field/component.js";import"../select/utils.js";import"../select/components/optgroup/component.js";import"../select/components/option/component.js";import"../skeleton/component.js";import"../select/components/checkmark/component.js";import"downshift";import"resize-observer";import"../__internal/utils/getDataTestId.js";import"../popover/component.js";import"react-popper";import"react-transition-group";import"../stack/context.js";import"../stack/component.js";import"../select/components/native-select/component.js";import"../utils/get-service-error/is-axios-error.js";import"../utils/get-service-error/is-network-error.js";import"../toast-plate/component.js";import"alpha-cli-icons";import"../toast-notifier/use-timer.js";var s="index-module_allert__8-UXh",p=function(p){var c=p.price,a=p.onChange,l=p.error,u=p.minLabel,j=void 0===u?"Minimal players":u,d=p.maxLabel,f=void 0===d?"Maximum players":d,y=p.inputPrefix,b=void 0===y?"чел.":y,v=p.suffix,g=void 0===v?"€":v,x=p.t,h=Object.entries(c||{}),k=o(h[0]&&h[0][0]||2),N=k[0],P=k[1],_=o(h[h.length-1]&&h[h.length-1][0]||6),E=_[0],w=_[1],C=function(t){for(var e=t.minPlayers,o=t.maxPlayers,r=t.totalPrice,n={},i=+e;i<=+o;i++)n[i]=r[i]||0;return n},I=Array.from({length:Number(E)},(function(t,e){var o=e+1;return{key:o,content:o+" "+x("man",{count:o})}})),T=Array.from({length:Number(50)},(function(t,e){var o=e+1;return{key:o,content:o+" "+x("man",{count:o})}})).filter((function(t){return Number(t.key)>=Number(N)}));return e.createElement(n,{columns:1,gr:16,gc:0},e.createElement(m,{dataTestId:"min_players",label:j,block:!0,options:I,selected:N,onChange:function(t){var e=t.selected,o=null==e?void 0:e.key;o&&(P(o),Number(o)<=Number(E)&&a(C({minPlayers:o,maxPlayers:E,totalPrice:c})))},required:!0}),e.createElement(m,{dataTestId:"max_players",label:f,options:T,selected:E,onChange:function(t){var e=t.selected,o=null==e?void 0:e.key;o&&(w(o),Number(o)>=Number(N)&&a(C({minPlayers:N,maxPlayers:o,totalPrice:c})))},required:!0}),Number(N)<=Number(E)&&e.createElement(n,{columns:3,gr:16,gc:16},h.map((function(o){return e.createElement(r,{dataTestId:"price_"+o[0],key:o[0],label:o[0]+" "+b,value:Number(o[1]),suffix:g,onChange:function(e,r){var n,i=r.value,m=1*Number(i)||0,s=o[0];a(t(t({},c),((n={})[s]=null==m?void 0:m.toString(),n)))},required:!0,block:!0})}))),l&&e.createElement(i,{className:s,text:l,view:"negative"}))};export{p as TariffBuilder};
1
+ import{a as t}from"../tslib.es6-459c03f1.js";import e,{useState as o}from"react";import{AmountInput as r}from"../amount-input/component.js";import{FlexColumns as n}from"../flex-columns/component.js";import{ListAllert as i}from"../list-allert/component.js";import{Select as m}from"../select/component.js";import"classnames";import"../select/components/base-select/component.js";import"../form-control/component.js";import"../select/components/options-list/component.js";import"react-virtual";import"../utils/get-service-error/index.js";import"../toast-notifier/component.js";import"../intersection-observer-71df7bc1.js";import"../input/component.js";import"react-merge-refs";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../utils/format-amount/util.js";import"../utils/get-currency-symbol/util.js";import"../utils/data/currency-codes.js";import"../utils/split-amount/util.js";import"../with-suffix/component.js";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../amount-input/utils/index.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-cc3c7a1a.js";import"../common.module-3b992d8f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../select/components/arrow/component.js";import"../select/components/field/component.js";import"../select/utils.js";import"../select/components/optgroup/component.js";import"../select/components/option/component.js";import"../skeleton/component.js";import"../select/components/checkmark/component.js";import"downshift";import"resize-observer";import"../__internal/utils/getDataTestId.js";import"../popover/component.js";import"react-popper";import"react-transition-group";import"../stack/context.js";import"../stack/component.js";import"../select/components/native-select/component.js";import"../utils/get-service-error/is-axios-error.js";import"../utils/get-service-error/is-network-error.js";import"../toast-plate/component.js";import"alpha-cli-icons";import"../toast-notifier/use-timer.js";var s="index-module_allert__8-UXh",p=function(p){var c=p.price,a=p.onChange,l=p.error,u=p.minLabel,j=void 0===u?"Minimal players":u,d=p.maxLabel,f=void 0===d?"Maximum players":d,y=p.inputPrefix,b=void 0===y?"чел.":y,v=p.suffix,g=void 0===v?"€":v,x=p.t,h=Object.entries(c||{}),k=o(h[0]&&h[0][0]||2),N=k[0],P=k[1],_=o(h[h.length-1]&&h[h.length-1][0]||6),E=_[0],w=_[1],C=function(t){for(var e=t.minPlayers,o=t.maxPlayers,r=t.totalPrice,n={},i=+e;i<=+o;i++)n[i]=r[i]||0;return n},I=Array.from({length:Number(E)},(function(t,e){var o=e+1;return{key:o,content:o+" "+x("man",{count:o})}})),T=Array.from({length:Number(50)},(function(t,e){var o=e+1;return{key:o,content:o+" "+x("man",{count:o})}})).filter((function(t){return Number(t.key)>=Number(N)}));return e.createElement(n,{columns:1,gr:16,gc:0},e.createElement(m,{dataTestId:"min_players",label:j,block:!0,options:I,selected:N,onChange:function(t){var e=t.selected,o=null==e?void 0:e.key;o&&(P(o),Number(o)<=Number(E)&&a(C({minPlayers:o,maxPlayers:E,totalPrice:c})))},required:!0}),e.createElement(m,{dataTestId:"max_players",label:f,options:T,selected:E,onChange:function(t){var e=t.selected,o=null==e?void 0:e.key;o&&(w(o),Number(o)>=Number(N)&&a(C({minPlayers:N,maxPlayers:o,totalPrice:c})))},required:!0}),Number(N)<=Number(E)&&e.createElement(n,{columns:3,gr:16,gc:16},h.map((function(o){return e.createElement(r,{dataTestId:"price_"+o[0],key:o[0],label:o[0]+" "+b,value:Number(o[1]),suffix:g,onChange:function(e,r){var n,i=r.value,m=1*Number(i)||0,s=o[0];a(t(t({},c),((n={})[s]=null==m?void 0:m.toString(),n)))},required:!0,block:!0})}))),l&&e.createElement(i,{className:s,text:l,view:"negative"}))};export{p as TariffBuilder};
@@ -1 +1 @@
1
- export{TariffBuilder}from"./component.js";import"../tslib.es6-40ea3f8b.js";import"react";import"../amount-input/component.js";import"classnames";import"../input/component.js";import"react-merge-refs";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../form-control/component.js";import"../utils/format-amount/util.js";import"../utils/get-currency-symbol/util.js";import"../utils/data/currency-codes.js";import"../utils/split-amount/util.js";import"../with-suffix/component.js";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../amount-input/utils/index.js";import"../flex-columns/component.js";import"../list-allert/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-e2b2824a.js";import"../common.module-089096dd.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../select/component.js";import"../select/components/arrow/component.js";import"../select/components/base-select/component.js";import"downshift";import"resize-observer";import"../__internal/utils/getDataTestId.js";import"../popover/component.js";import"react-popper";import"react-transition-group";import"../stack/context.js";import"../stack/component.js";import"../select/utils.js";import"../select/components/native-select/component.js";import"../select/components/field/component.js";import"../select/components/optgroup/component.js";import"../select/components/option/component.js";import"../skeleton/component.js";import"../select/components/checkmark/component.js";import"../select/components/options-list/component.js";import"react-virtual";import"../utils/get-service-error/index.js";import"../utils/get-service-error/is-axios-error.js";import"../utils/get-service-error/is-network-error.js";import"../toast-notifier/component.js";import"../toast-plate/component.js";import"alpha-cli-icons";import"../toast-notifier/use-timer.js";import"../intersection-observer-600b6bfa.js";
1
+ export{TariffBuilder}from"./component.js";import"../tslib.es6-459c03f1.js";import"react";import"../amount-input/component.js";import"classnames";import"../input/component.js";import"react-merge-refs";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../form-control/component.js";import"../utils/format-amount/util.js";import"../utils/get-currency-symbol/util.js";import"../utils/data/currency-codes.js";import"../utils/split-amount/util.js";import"../with-suffix/component.js";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../amount-input/utils/index.js";import"../flex-columns/component.js";import"../list-allert/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-cc3c7a1a.js";import"../common.module-3b992d8f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../select/component.js";import"../select/components/arrow/component.js";import"../select/components/base-select/component.js";import"downshift";import"resize-observer";import"../__internal/utils/getDataTestId.js";import"../popover/component.js";import"react-popper";import"react-transition-group";import"../stack/context.js";import"../stack/component.js";import"../select/utils.js";import"../select/components/native-select/component.js";import"../select/components/field/component.js";import"../select/components/optgroup/component.js";import"../select/components/option/component.js";import"../skeleton/component.js";import"../select/components/checkmark/component.js";import"../select/components/options-list/component.js";import"react-virtual";import"../utils/get-service-error/index.js";import"../utils/get-service-error/is-axios-error.js";import"../utils/get-service-error/is-network-error.js";import"../toast-notifier/component.js";import"../toast-plate/component.js";import"alpha-cli-icons";import"../toast-notifier/use-timer.js";import"../intersection-observer-71df7bc1.js";
@@ -29,7 +29,7 @@ type TextareaProps = Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'size' |
29
29
  onHeightChange?: (height?: number) => void;
30
30
  dataTestId?: string;
31
31
  };
32
- declare const Textarea: React.ForwardRefExoticComponent<Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "style" | "value" | "size" | "defaultValue" | "onChange"> & {
32
+ declare const Textarea: React.ForwardRefExoticComponent<Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "style" | "size" | "defaultValue" | "onChange" | "value"> & {
33
33
  value?: string | undefined;
34
34
  defaultValue?: string | undefined;
35
35
  required?: boolean | undefined;
@@ -1 +1 @@
1
- import{_ as e,a as t}from"../tslib.es6-40ea3f8b.js";import*as o from"react";import n,{useLayoutEffect as r,useEffect as i,useRef as a,useCallback as d,forwardRef as s,createElement as l,useState as u}from"react";import c from"react-merge-refs";import m from"classnames";import{FormControl as f}from"../form-control/component.js";import{useFocus as h}from"../hooks/useFocus/index.js";function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},g.apply(this,arguments)}var p="undefined"!=typeof document?r:i,b=function(e,t){"function"!=typeof e?e.current=t:e(t)},x={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},v=function(e){Object.keys(x).forEach((function(t){e.style.setProperty(t,x[t],"important")}))},w=null,y=function(e,t){var o=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?o+t.borderSize:o-t.paddingSize};var z=function(){},_=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],C="undefined"!=typeof document&&!!document.documentElement.currentStyle,R=function(e){var t,n,i=(t=e,n=o.useRef(t),p((function(){n.current=t})),n);r((function(){var e=function(e){i.current(e)};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[])},S=s((function(e,t){var o=e.cacheMeasurements,n=e.maxRows,i=e.minRows,s=e.onChange,u=void 0===s?z:s,c=e.onHeightChange,m=void 0===c?z:c,f=function(e,t){if(null==e)return{};var o,n,r={},i=Object.keys(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}(e,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]);if("production"!==process.env.NODE_ENV&&f.style){if("maxHeight"in f.style)throw new Error("Using `style.maxHeight` for <TextareaAutosize/> is not supported. Please use `maxRows`.");if("minHeight"in f.style)throw new Error("Using `style.minHeight` for <TextareaAutosize/> is not supported. Please use `minRows`.")}var h=void 0!==f.value,p=a(null),x=function(e,t){var o=a();return d((function(n){e.current=n,o.current&&b(o.current,null),o.current=t,t&&b(t,n)}),[t])}(p,t),S=a(0),H=a(),A=function(){var e=p.current,t=o&&H.current?H.current:function(e){var t=window.getComputedStyle(e);if(null===t)return null;var o,n=(o=t,_.reduce((function(e,t){return e[t]=o[t],e}),{})),r=n.boxSizing;return""===r?null:(C&&"border-box"===r&&(n.width=parseFloat(n.width)+parseFloat(n.borderRightWidth)+parseFloat(n.borderLeftWidth)+parseFloat(n.paddingRight)+parseFloat(n.paddingLeft)+"px"),{sizingStyle:n,paddingSize:parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),borderSize:parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth)})}(e);if(t){H.current=t;var r=function(e,t,o,n){void 0===o&&(o=1),void 0===n&&(n=1/0),w||((w=document.createElement("textarea")).setAttribute("tabindex","-1"),w.setAttribute("aria-hidden","true"),v(w)),null===w.parentNode&&document.body.appendChild(w);var r=e.paddingSize,i=e.borderSize,a=e.sizingStyle,d=a.boxSizing;Object.keys(a).forEach((function(e){var t=e;w.style[t]=a[t]})),v(w),w.value=t;var s=y(w,e);w.value="x";var l=w.scrollHeight-r,u=l*o;"border-box"===d&&(u=u+r+i),s=Math.max(u,s);var c=l*n;return"border-box"===d&&(c=c+r+i),[s=Math.min(c,s),l]}(t,e.value||e.placeholder||"x",i,n),a=r[0],d=r[1];S.current!==a&&(S.current=a,e.style.setProperty("height",a+"px","important"),m(a,{rowHeight:d}))}};return"undefined"!=typeof document&&(r(A),R(A)),l("textarea",g({},f,{onChange:function(e){h||A(),u(e)},ref:x}))})),H={textarea:"index-module_textarea__91cCo",s:"index-module_s__EnuHV",m:"index-module_m__etAWo",l:"index-module_l__pP38o",hasLabel:"index-module_hasLabel__sk25A",resizeVertical:"index-module_resizeVertical__kct5e",focusVisible:"index-module_focusVisible__bLwRO",filled:"index-module_filled__t8LRd",counter:"index-module_counter__psEqA"},A=n.forwardRef((function(o,r){var s,l,g=o.autoComplete,p=void 0===g?"on":g,b=o.autosize,x=void 0===b||b,v=o.size,w=void 0===v?"s":v,y=o.block,z=void 0!==y&&y,_=o.bottomAddons,C=o.fieldClassName,R=o.className,A=o.dataTestId,E=o.disabled,L=o.error,F=o.hint,N=o.textareaClassName,k=o.label,O=o.leftAddons,V=o.onFocus,W=o.required,j=o.onBlur,B=o.onChange,T=o.onHeightChange,P=o.rightAddons,q=o.maxRows,M=o.minRows,I=o.maxHeight,U=o.resize,D=void 0===U?"none":U,G=o.value,J=o.defaultValue,K=o.maxLength,Q=o.counter,X=o.rows,Y=void 0===X?x?1:3:X,Z=e(o,["autoComplete","autosize","size","block","bottomAddons","fieldClassName","className","dataTestId","disabled","error","hint","textareaClassName","label","leftAddons","onFocus","required","onBlur","onChange","onHeightChange","rightAddons","maxRows","minRows","maxHeight","resize","value","defaultValue","maxLength","counter","rows"]),$=void 0===G,ee=a(null),te=u(!1),oe=te[0],ne=te[1],re=u(J||""),ie=re[0],ae=re[1],de=h(ee,"keyboard")[0],se=Boolean($?ie:G);i((function(){x&&I&&ee.current&&ee.current.style&&(ee.current.style.maxHeight=I+"px")}),[ee,x,I]);var le=d((function(e){ne(!0),V&&V(e)}),[V]),ue=d((function(e){ne(!1),j&&j(e)}),[j]),ce=d((function(e){B&&B(e,{value:e.target.value}),$&&ae(e.target.value)}),[B,$]),me=t(t({},Z),{className:m(H.textarea,H[w],(s={},s[H.hasLabel]=k,s[H.filled]=se,s[H.resizeVertical]="vertical"===D,s),N),autoComplete:p,disabled:E,onBlur:ue,onFocus:le,onChange:ce,value:$?ie:G,rows:Y,ref:c([r,ee]),"data-test-id":A});return n.createElement(f,{className:m(R),fieldClassName:m(C,(l={},l[H.focusVisible]=de,l)),size:w,block:z,required:W,disabled:E,filled:se||oe,focused:oe,error:L,label:k,hint:F,leftAddons:O,rightAddons:P,bottomAddons:_},x?n.createElement(S,t({},me,{maxLength:K,maxRows:q,minRows:M,onHeightChange:T})):n.createElement("textarea",t({maxLength:K},me,{style:{maxHeight:I}})),Q&&n.createElement("span",{className:H.counter},($?ie.length:null==G?void 0:G.length)+" / "+(K||"-")))}));A.defaultProps={autoComplete:"on",autosize:!0,size:"s",block:!1,resize:"none"};export{A as Textarea};
1
+ import{_ as e,a as t}from"../tslib.es6-459c03f1.js";import*as o from"react";import n,{useLayoutEffect as r,useEffect as i,useRef as a,useCallback as d,forwardRef as s,createElement as l,useState as u}from"react";import c from"react-merge-refs";import m from"classnames";import{FormControl as f}from"../form-control/component.js";import{useFocus as h}from"../hooks/useFocus/index.js";function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},g.apply(this,arguments)}var p="undefined"!=typeof document?r:i,b=function(e,t){"function"!=typeof e?e.current=t:e(t)},x={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},v=function(e){Object.keys(x).forEach((function(t){e.style.setProperty(t,x[t],"important")}))},w=null,y=function(e,t){var o=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?o+t.borderSize:o-t.paddingSize};var z=function(){},_=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],C="undefined"!=typeof document&&!!document.documentElement.currentStyle,R=function(e){var t,n,i=(t=e,n=o.useRef(t),p((function(){n.current=t})),n);r((function(){var e=function(e){i.current(e)};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[])},S=s((function(e,t){var o=e.cacheMeasurements,n=e.maxRows,i=e.minRows,s=e.onChange,u=void 0===s?z:s,c=e.onHeightChange,m=void 0===c?z:c,f=function(e,t){if(null==e)return{};var o,n,r={},i=Object.keys(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}(e,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]);if("production"!==process.env.NODE_ENV&&f.style){if("maxHeight"in f.style)throw new Error("Using `style.maxHeight` for <TextareaAutosize/> is not supported. Please use `maxRows`.");if("minHeight"in f.style)throw new Error("Using `style.minHeight` for <TextareaAutosize/> is not supported. Please use `minRows`.")}var h=void 0!==f.value,p=a(null),x=function(e,t){var o=a();return d((function(n){e.current=n,o.current&&b(o.current,null),o.current=t,t&&b(t,n)}),[t])}(p,t),S=a(0),H=a(),A=function(){var e=p.current,t=o&&H.current?H.current:function(e){var t=window.getComputedStyle(e);if(null===t)return null;var o,n=(o=t,_.reduce((function(e,t){return e[t]=o[t],e}),{})),r=n.boxSizing;return""===r?null:(C&&"border-box"===r&&(n.width=parseFloat(n.width)+parseFloat(n.borderRightWidth)+parseFloat(n.borderLeftWidth)+parseFloat(n.paddingRight)+parseFloat(n.paddingLeft)+"px"),{sizingStyle:n,paddingSize:parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),borderSize:parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth)})}(e);if(t){H.current=t;var r=function(e,t,o,n){void 0===o&&(o=1),void 0===n&&(n=1/0),w||((w=document.createElement("textarea")).setAttribute("tabindex","-1"),w.setAttribute("aria-hidden","true"),v(w)),null===w.parentNode&&document.body.appendChild(w);var r=e.paddingSize,i=e.borderSize,a=e.sizingStyle,d=a.boxSizing;Object.keys(a).forEach((function(e){var t=e;w.style[t]=a[t]})),v(w),w.value=t;var s=y(w,e);w.value="x";var l=w.scrollHeight-r,u=l*o;"border-box"===d&&(u=u+r+i),s=Math.max(u,s);var c=l*n;return"border-box"===d&&(c=c+r+i),[s=Math.min(c,s),l]}(t,e.value||e.placeholder||"x",i,n),a=r[0],d=r[1];S.current!==a&&(S.current=a,e.style.setProperty("height",a+"px","important"),m(a,{rowHeight:d}))}};return"undefined"!=typeof document&&(r(A),R(A)),l("textarea",g({},f,{onChange:function(e){h||A(),u(e)},ref:x}))})),H={textarea:"index-module_textarea__91cCo",s:"index-module_s__EnuHV",m:"index-module_m__etAWo",l:"index-module_l__pP38o",hasLabel:"index-module_hasLabel__sk25A",resizeVertical:"index-module_resizeVertical__kct5e",focusVisible:"index-module_focusVisible__bLwRO",filled:"index-module_filled__t8LRd",counter:"index-module_counter__psEqA"},A=n.forwardRef((function(o,r){var s,l,g=o.autoComplete,p=void 0===g?"on":g,b=o.autosize,x=void 0===b||b,v=o.size,w=void 0===v?"s":v,y=o.block,z=void 0!==y&&y,_=o.bottomAddons,C=o.fieldClassName,R=o.className,A=o.dataTestId,E=o.disabled,L=o.error,F=o.hint,N=o.textareaClassName,k=o.label,O=o.leftAddons,V=o.onFocus,W=o.required,j=o.onBlur,B=o.onChange,T=o.onHeightChange,P=o.rightAddons,q=o.maxRows,M=o.minRows,I=o.maxHeight,U=o.resize,D=void 0===U?"none":U,G=o.value,J=o.defaultValue,K=o.maxLength,Q=o.counter,X=o.rows,Y=void 0===X?x?1:3:X,Z=e(o,["autoComplete","autosize","size","block","bottomAddons","fieldClassName","className","dataTestId","disabled","error","hint","textareaClassName","label","leftAddons","onFocus","required","onBlur","onChange","onHeightChange","rightAddons","maxRows","minRows","maxHeight","resize","value","defaultValue","maxLength","counter","rows"]),$=void 0===G,ee=a(null),te=u(!1),oe=te[0],ne=te[1],re=u(J||""),ie=re[0],ae=re[1],de=h(ee,"keyboard")[0],se=Boolean($?ie:G);i((function(){x&&I&&ee.current&&ee.current.style&&(ee.current.style.maxHeight=I+"px")}),[ee,x,I]);var le=d((function(e){ne(!0),V&&V(e)}),[V]),ue=d((function(e){ne(!1),j&&j(e)}),[j]),ce=d((function(e){B&&B(e,{value:e.target.value}),$&&ae(e.target.value)}),[B,$]),me=t(t({},Z),{className:m(H.textarea,H[w],(s={},s[H.hasLabel]=k,s[H.filled]=se,s[H.resizeVertical]="vertical"===D,s),N),autoComplete:p,disabled:E,onBlur:ue,onFocus:le,onChange:ce,value:$?ie:G,rows:Y,ref:c([r,ee]),"data-test-id":A});return n.createElement(f,{className:m(R),fieldClassName:m(C,(l={},l[H.focusVisible]=de,l)),size:w,block:z,required:W,disabled:E,filled:se||oe,focused:oe,error:L,label:k,hint:F,leftAddons:O,rightAddons:P,bottomAddons:_},x?n.createElement(S,t({},me,{maxLength:K,maxRows:q,minRows:M,onHeightChange:T})):n.createElement("textarea",t({maxLength:K},me,{style:{maxHeight:I}})),Q&&n.createElement("span",{className:H.counter},($?ie.length:null==G?void 0:G.length)+" / "+(K||"-")))}));A.defaultProps={autoComplete:"on",autosize:!0,size:"s",block:!1,resize:"none"};export{A as Textarea};
@@ -1 +1 @@
1
- export{Textarea}from"./component.js";import"../tslib.es6-40ea3f8b.js";import"react";import"react-merge-refs";import"classnames";import"../form-control/component.js";import"../hooks/useFocus/index.js";
1
+ export{Textarea}from"./component.js";import"../tslib.es6-459c03f1.js";import"react";import"react-merge-refs";import"classnames";import"../form-control/component.js";import"../hooks/useFocus/index.js";
@@ -1 +1 @@
1
- import{_ as e,a as o}from"../tslib.es6-40ea3f8b.js";import t,{forwardRef as n,useRef as r,useCallback as i,useEffect as s}from"react";import m from"react-merge-refs";import{CSSTransition as a}from"react-transition-group";import l from"classnames";import{useClickOutside as c}from"../hooks/useClickOutside/index.js";import{usePrevious as u}from"../hooks/usePrevious/index.js";import{Popover as p}from"../popover/component.js";import{Portal as f}from"../portal/component.js";import{ToastPlate as d}from"../toast-plate/component.js";import"react-popper";import"../stack/context.js";import"../stack/component.js";import"react-dom";import"../portal/utils.js";import"alpha-cli-icons";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";var _="index-module_toastPlate__QcyxC",x="index-module_popover__CzEm-",v="index-module_block__qnPJw",E="index-module_fixed__U9hsM",C={enter:"index-module_enter__mfllY",enterActive:"index-module_enterActive__iRE6x",exit:"index-module_exit__lf3xl",exitActive:"index-module_exitActive__qssLn"},j=n((function(n,j){var h,b=n.anchorElement,k=n.position,y=n.offset,M=n.open,P=n.autoCloseDelay,g=void 0===P?3e3:P,N=n.className,T=n.bottomOffset,A=n.style,L=void 0===A?{}:A,O=n.block,w=n.onMouseEnter,S=n.onMouseLeave,q=n.onTouchStart,D=n.onClose,z=n.getPortalContainer,F=e(n,["anchorElement","position","offset","open","autoCloseDelay","className","bottomOffset","style","block","onMouseEnter","onMouseLeave","onTouchStart","onClose","getPortalContainer"]),J=r(null),Q=r(0),R=u(M),U=i((function(){clearTimeout(Q.current),Q.current=window.setTimeout(D,g)}),[g,D]),Y=i((function(){clearTimeout(Q.current)}),[]),B=i((function(e){Y(),w&&w(e)}),[w,Y]),G=i((function(e){U(),S&&S(e)}),[S,U]),H=i((function(e){Y(),q&&q(e)}),[q,Y]),I=i((function(){D(),Y()}),[D,Y]);c(J,I),s((function(){return M!==R&&M&&U(),function(){Y()}}),[M,R,U,Y]);var K={block:O,onClose:D,onMouseEnter:B,onMouseLeave:G,onTouchStart:H,ref:m([j,J])};return b?t.createElement(p,{open:M,anchorElement:b,position:k,offset:y,popperClassName:l(x,(h={},h[v]=O,h)),transition:{timeout:150},getPortalContainer:z},t.createElement(d,o({},F,{style:L,className:N},K))):t.createElement(f,{getPortalContainer:z},t.createElement(a,{unmountOnExit:!0,in:M,timeout:150,classNames:C},t.createElement(d,o({},F,{className:l(E,_,N),style:o(o({},L),{bottom:T&&T+"px"})},K))))}));export{j as Toast};
1
+ import{_ as e,a as o}from"../tslib.es6-459c03f1.js";import t,{forwardRef as n,useRef as r,useCallback as i,useEffect as s}from"react";import m from"react-merge-refs";import{CSSTransition as a}from"react-transition-group";import l from"classnames";import{useClickOutside as c}from"../hooks/useClickOutside/index.js";import{usePrevious as u}from"../hooks/usePrevious/index.js";import{Popover as p}from"../popover/component.js";import{Portal as f}from"../portal/component.js";import{ToastPlate as d}from"../toast-plate/component.js";import"react-popper";import"../stack/context.js";import"../stack/component.js";import"react-dom";import"../portal/utils.js";import"alpha-cli-icons";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";var _="index-module_toastPlate__QcyxC",x="index-module_popover__CzEm-",v="index-module_block__qnPJw",E="index-module_fixed__U9hsM",C={enter:"index-module_enter__mfllY",enterActive:"index-module_enterActive__iRE6x",exit:"index-module_exit__lf3xl",exitActive:"index-module_exitActive__qssLn"},j=n((function(n,j){var h,k=n.anchorElement,b=n.position,y=n.offset,M=n.open,P=n.autoCloseDelay,g=void 0===P?3e3:P,N=n.className,T=n.bottomOffset,A=n.style,L=void 0===A?{}:A,O=n.block,w=n.onMouseEnter,S=n.onMouseLeave,q=n.onTouchStart,D=n.onClose,z=n.getPortalContainer,F=e(n,["anchorElement","position","offset","open","autoCloseDelay","className","bottomOffset","style","block","onMouseEnter","onMouseLeave","onTouchStart","onClose","getPortalContainer"]),J=r(null),Q=r(0),R=u(M),U=i((function(){clearTimeout(Q.current),Q.current=window.setTimeout(D,g)}),[g,D]),Y=i((function(){clearTimeout(Q.current)}),[]),B=i((function(e){Y(),w&&w(e)}),[w,Y]),G=i((function(e){U(),S&&S(e)}),[S,U]),H=i((function(e){Y(),q&&q(e)}),[q,Y]),I=i((function(){D(),Y()}),[D,Y]);c(J,I),s((function(){return M!==R&&M&&U(),function(){Y()}}),[M,R,U,Y]);var K={block:O,onClose:D,onMouseEnter:B,onMouseLeave:G,onTouchStart:H,ref:m([j,J])};return k?t.createElement(p,{open:M,anchorElement:k,position:b,offset:y,popperClassName:l(x,(h={},h[v]=O,h)),transition:{timeout:150},getPortalContainer:z},t.createElement(d,o({},F,{style:L,className:N},K))):t.createElement(f,{getPortalContainer:z},t.createElement(a,{unmountOnExit:!0,in:M,timeout:150,classNames:C},t.createElement(d,o({},F,{className:l(E,_,N),style:o(o({},L),{bottom:T&&T+"px"})},K))))}));export{j as Toast};
@@ -1 +1 @@
1
- export{Toast}from"./component.js";import"../tslib.es6-40ea3f8b.js";import"react";import"react-merge-refs";import"react-transition-group";import"classnames";import"../hooks/useClickOutside/index.js";import"../hooks/usePrevious/index.js";import"../popover/component.js";import"react-popper";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";import"../toast-plate/component.js";import"alpha-cli-icons";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";
1
+ export{Toast}from"./component.js";import"../tslib.es6-459c03f1.js";import"react";import"react-merge-refs";import"react-transition-group";import"classnames";import"../hooks/useClickOutside/index.js";import"../hooks/usePrevious/index.js";import"../popover/component.js";import"react-popper";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";import"../toast-plate/component.js";import"alpha-cli-icons";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";
@@ -1 +1 @@
1
- import{_ as e,a as t}from"../tslib.es6-40ea3f8b.js";import o from"react";import i from"react-dom";import n from"classnames";import{ToastPlate as s}from"../toast-plate/component.js";import{useTimer as r}from"./use-timer.js";import"alpha-cli-icons";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";var a,l="index-module_isVisible__kvaxX",d="index-module_mobile__ARgiW",m="index-module_isClosing__fMPDi",p="index-module_toastContent__WxLt6";"undefined"!=typeof window&&((a=document.createElement("div")).setAttribute("id","toast_manager"),document.body.appendChild(a));var u=function(u){var c,f=u.className;u.children;var v=u.offset,x=void 0===v?108:v,h=u.hasCloser,_=void 0===h||h;u.onClose;var b=u.text;u.onMouseEnter,u.onMouseLeave;var C=u.style,y=u.position,g=void 0===y?"bottom":y,w=u.delay,E=void 0===w?3e3:w,L=e(u,["className","children","offset","hasCloser","onClose","text","onMouseEnter","onMouseLeave","style","position","delay"]);if("undefined"==typeof window)return null;var j,M=window.innerWidth>600;a.setAttribute("style",(j="position: fixed; z-index: 99999999;",M?j+" "+g+": "+x+"px; right: 30px":j+" top: "+x+"px; right: 30px; left: 30px"));var A=document.createElement("div");A.classList.remove(m),A.setAttribute("id","toast_wrap-"+Math.random()),A.setAttribute("style","margin-bottom: 18px"),a.appendChild(A);var N=function(){A.classList.add(m),setTimeout((function(){null==a||a.removeChild(A)}),300)},W=r(N,E),k=W.pause,z=W.resume;return A.addEventListener("mouseenter",(function(){k()})),A.addEventListener("mouseleave",(function(){z()})),i.render(o.createElement(s,t({hasCloser:_,className:n((c={},c[l]=!0,c[d]=!M,c),f),contentClassName:p,style:t({right:0,position:"relative"},C),role:"alert",onClose:N},L),b),A),null};export{u as ToastNotifier};
1
+ import{_ as e,a as t}from"../tslib.es6-459c03f1.js";import o from"react";import i from"react-dom";import n from"classnames";import{ToastPlate as s}from"../toast-plate/component.js";import{useTimer as r}from"./use-timer.js";import"alpha-cli-icons";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";var a,l="index-module_isVisible__kvaxX",d="index-module_mobile__ARgiW",m="index-module_isClosing__fMPDi",p="index-module_toastContent__WxLt6";"undefined"!=typeof window&&((a=document.createElement("div")).setAttribute("id","toast_manager"),document.body.appendChild(a));var u=function(u){var c,f=u.className;u.children;var v=u.offset,x=void 0===v?108:v,h=u.hasCloser,_=void 0===h||h;u.onClose;var C=u.text;u.onMouseEnter,u.onMouseLeave;var b=u.style,y=u.position,g=void 0===y?"bottom":y,w=u.delay,E=void 0===w?3e3:w,L=e(u,["className","children","offset","hasCloser","onClose","text","onMouseEnter","onMouseLeave","style","position","delay"]);if("undefined"==typeof window)return null;var j,M=window.innerWidth>600;a.setAttribute("style",(j="position: fixed; z-index: 99999999;",M?j+" "+g+": "+x+"px; right: 30px":j+" top: "+x+"px; right: 30px; left: 30px"));var A=document.createElement("div");A.classList.remove(m),A.setAttribute("id","toast_wrap-"+Math.random()),A.setAttribute("style","margin-bottom: 18px"),a.appendChild(A);var N=function(){A.classList.add(m),setTimeout((function(){null==a||a.removeChild(A)}),300)},W=r(N,E),k=W.pause,z=W.resume;return A.addEventListener("mouseenter",(function(){k()})),A.addEventListener("mouseleave",(function(){z()})),i.render(o.createElement(s,t({hasCloser:_,className:n((c={},c[l]=!0,c[d]=!M,c),f),contentClassName:p,style:t({right:0,position:"relative"},b),role:"alert",onClose:N},L),C),A),null};export{u as ToastNotifier};
@@ -1 +1 @@
1
- export{ToastNotifier}from"./component.js";import"../tslib.es6-40ea3f8b.js";import"react";import"react-dom";import"classnames";import"../toast-plate/component.js";import"alpha-cli-icons";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"./use-timer.js";
1
+ export{ToastNotifier}from"./component.js";import"../tslib.es6-459c03f1.js";import"react";import"react-dom";import"classnames";import"../toast-plate/component.js";import"alpha-cli-icons";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"./use-timer.js";
@@ -1 +1 @@
1
- import{_ as e,a as t}from"../tslib.es6-40ea3f8b.js";import o,{forwardRef as n,useCallback as a}from"react";import{CrossCircleM as l,CheckmarkCircleM as d,InfoMarkM as i,CloseS as _}from"alpha-cli-icons";import s from"classnames";import{Button as c}from"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";var m={component:"index-module_component__2FCoC",hasCloser:"index-module_hasCloser__ig0bb",contentWrap:"index-module_contentWrap__-P3Jg",block:"index-module_block__aZI2E",content:"index-module_content__ING2J",actionSection:"index-module_actionSection__pEbKj",leftAddons:"index-module_leftAddons__Odkdf",title:"index-module_title__QZFUh",children:"index-module_children__tKSv7",checkmark:"index-module_checkmark__Uk-P-",closeButton:"index-module_closeButton__mFhAC",negative:"index-module_negative__rdTB6",positive:"index-module_positive__k8leE",default:"index-module_default__yyLQR",toast_enter:"index-module_toast_enter__gcrK7",toast_active_enter:"index-module_toast_active_enter__1PLY6",toast_done_enter:"index-module_toast_done_enter__encRe",toast_exit:"index-module_toast_exit__qTOb8",toast_active_exit:"index-module_toast_active_exit__dUE9W",toast_done_exit:"index-module_toast_done_exit__tGXNW"},r={negative:o.createElement(l,null),positive:o.createElement(d,null),default:o.createElement(i,null)},u=n((function(n,l){var d,i=n.dataTestId,u=n.className,x=n.contentClassName,v=n.hasCloser;n.leftAddons;var p=n.view,f=void 0===p?"default":p,h=n.title,k=n.children;n.actionButton;var E=n.block,b=n.onClose;n.getBadgeIcons;var C=e(n,["dataTestId","className","contentClassName","hasCloser","leftAddons","view","title","children","actionButton","block","onClose","getBadgeIcons"]),N=a((function(e){b&&b(e)}),[b]);return o.createElement("div",t({className:s(m.component,(d={},d[m.block]=E,d[m.hasCloser]=v,d),u),ref:l,"data-test-id":i},C),o.createElement("div",{className:m.contentWrap},o.createElement("div",{className:s(m.checkmark,m[f])},r[f]),o.createElement("div",{className:s(x,m.content)},h&&o.createElement("div",{className:m.title},h),k&&o.createElement("div",{className:m.children},k)),v&&o.createElement(c,t({className:s(m.closeButton),view:"ghost"},{onClick:N},{"aria-label":"закрыть",leftAddons:o.createElement(_,null)}))))}));export{u as ToastPlate};
1
+ import{_ as e,a as t}from"../tslib.es6-459c03f1.js";import o,{forwardRef as n,useCallback as a}from"react";import{CrossCircleM as l,CheckmarkCircleM as d,InfoMarkM as i,CloseS as _}from"alpha-cli-icons";import s from"classnames";import{Button as c}from"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";var m={component:"index-module_component__2FCoC",hasCloser:"index-module_hasCloser__ig0bb",contentWrap:"index-module_contentWrap__-P3Jg",block:"index-module_block__aZI2E",content:"index-module_content__ING2J",actionSection:"index-module_actionSection__pEbKj",leftAddons:"index-module_leftAddons__Odkdf",title:"index-module_title__QZFUh",children:"index-module_children__tKSv7",checkmark:"index-module_checkmark__Uk-P-",closeButton:"index-module_closeButton__mFhAC",negative:"index-module_negative__rdTB6",positive:"index-module_positive__k8leE",default:"index-module_default__yyLQR",toast_enter:"index-module_toast_enter__gcrK7",toast_active_enter:"index-module_toast_active_enter__1PLY6",toast_done_enter:"index-module_toast_done_enter__encRe",toast_exit:"index-module_toast_exit__qTOb8",toast_active_exit:"index-module_toast_active_exit__dUE9W",toast_done_exit:"index-module_toast_done_exit__tGXNW"},r={negative:o.createElement(l,null),positive:o.createElement(d,null),default:o.createElement(i,null)},u=n((function(n,l){var d,i=n.dataTestId,u=n.className,x=n.contentClassName,v=n.hasCloser;n.leftAddons;var p=n.view,f=void 0===p?"default":p,h=n.title,k=n.children;n.actionButton;var E=n.block,C=n.onClose;n.getBadgeIcons;var N=e(n,["dataTestId","className","contentClassName","hasCloser","leftAddons","view","title","children","actionButton","block","onClose","getBadgeIcons"]),b=a((function(e){C&&C(e)}),[C]);return o.createElement("div",t({className:s(m.component,(d={},d[m.block]=E,d[m.hasCloser]=v,d),u),ref:l,"data-test-id":i},N),o.createElement("div",{className:m.contentWrap},o.createElement("div",{className:s(m.checkmark,m[f])},r[f]),o.createElement("div",{className:s(x,m.content)},h&&o.createElement("div",{className:m.title},h),k&&o.createElement("div",{className:m.children},k)),v&&o.createElement(c,t({className:s(m.closeButton),view:"ghost"},{onClick:b},{"aria-label":"закрыть",leftAddons:o.createElement(_,null)}))))}));export{u as ToastPlate};
@@ -1 +1 @@
1
- export{ToastPlate}from"./component.js";import"../tslib.es6-40ea3f8b.js";import"react";import"alpha-cli-icons";import"classnames";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";
1
+ export{ToastPlate}from"./component.js";import"../tslib.es6-459c03f1.js";import"react";import"alpha-cli-icons";import"classnames";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";
@@ -1 +1 @@
1
- import{a as e}from"../tslib.es6-40ea3f8b.js";import o,{useState as t,useRef as r,useCallback as n,useEffect as c,cloneElement as a}from"react";import i from"react-node-resolver";import u from"classnames";import{Popover as s}from"../popover/component.js";import"react-popper";import"react-transition-group";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";var p="index-module_component__KCXt7",m="index-module_popper__M9HfK",l="index-module_target__nVe99",f=function(f){var d=f.children,v=f.content,C=f.trigger,w=void 0===C?"hover":C,T=f.onCloseDelay,h=void 0===T?300:T,g=f.onOpenDelay,_=void 0===g?300:g,k=f.dataTestId,N=f.onClose,O=f.onOpen,E=f.open,M=f.getPortalContainer,j=f.offset,x=void 0===j?[0,10]:j,b=f.position,y=f.contentClassName,P=f.arrowClassName,R=f.popoverClassName,S=f.updatePopover,D=t(!!E),K=D[0],L=D[1],A=t(null),F=A[0],H=A[1],I=o.useRef(null),V=o.useRef(null),X=r(0),q=function(){K||(L(!0),O&&O())},z=n((function(){K&&(L(!1),N&&N())}),[N,K]),B=function(e){return(!I.current||!I.current.contains(e))&&(!V.current||!V.current.contains(e))};c((function(){var e=function(e){var o=e.target;B(o)&&z()};return document.body.addEventListener("click",e),function(){document.body.removeEventListener("click",e),clearTimeout(X.current)}}),[z]);var G,J={onClick:function(e){d.props.onClick&&d.props.onClick(e),K?z():q()}},Q={onMouseOver:function(e){d.props.onMouseOver&&d.props.onMouseOver(e),clearTimeout(X.current),X.current=window.setTimeout((function(){q()}),_)},onMouseOut:function(e){d.props.onMouseOut&&d.props.onMouseOut(e),clearTimeout(X.current),X.current=window.setTimeout((function(){z()}),h)},onTouchStart:function(e){d.props.onTouchStart&&d.props.onTouchStart(e);var o=e.target;clearTimeout(X.current),B(o)?X.current=window.setTimeout((function(){z()}),h):q()}},U=void 0===E?K:E,W=n((function(e){I.current=e,H(I.current)}),[]);return o.createElement(o.Fragment,null,o.createElement(i,{innerRef:W},(G=function(o){var t={className:u(l,o.className)};switch(w){case"click":return e(e({},t),J);case"hover":return e(e({},t),Q);default:return{}}}(d.props),a(d,G))),F&&o.createElement(s,{anchorElement:F,open:U,getPortalContainer:M,arrowClassName:P,popperClassName:u(m,R),offset:x,withArrow:!0,position:b,update:S},function(){var t=function(){var o={ref:V,"data-test-id":k,className:u(p,y)};return"hover"===w?e(e({},o),Q):o}();return o.createElement("div",e({},t),v)}()))};export{f as Tooltip};
1
+ import{a as e}from"../tslib.es6-459c03f1.js";import o,{useState as t,useRef as r,useCallback as n,useEffect as c,cloneElement as a}from"react";import i from"react-node-resolver";import u from"classnames";import{Popover as s}from"../popover/component.js";import"react-popper";import"react-transition-group";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";var p="index-module_component__KCXt7",m="index-module_popper__M9HfK",l="index-module_target__nVe99",f=function(f){var d=f.children,v=f.content,C=f.trigger,w=void 0===C?"hover":C,T=f.onCloseDelay,h=void 0===T?300:T,g=f.onOpenDelay,_=void 0===g?300:g,k=f.dataTestId,N=f.onClose,O=f.onOpen,E=f.open,M=f.getPortalContainer,j=f.offset,x=void 0===j?[0,10]:j,y=f.position,b=f.contentClassName,P=f.arrowClassName,R=f.popoverClassName,S=f.updatePopover,D=t(!!E),K=D[0],L=D[1],A=t(null),F=A[0],H=A[1],I=o.useRef(null),V=o.useRef(null),X=r(0),q=function(){K||(L(!0),O&&O())},z=n((function(){K&&(L(!1),N&&N())}),[N,K]),B=function(e){return(!I.current||!I.current.contains(e))&&(!V.current||!V.current.contains(e))};c((function(){var e=function(e){var o=e.target;B(o)&&z()};return document.body.addEventListener("click",e),function(){document.body.removeEventListener("click",e),clearTimeout(X.current)}}),[z]);var G,J={onClick:function(e){d.props.onClick&&d.props.onClick(e),K?z():q()}},Q={onMouseOver:function(e){d.props.onMouseOver&&d.props.onMouseOver(e),clearTimeout(X.current),X.current=window.setTimeout((function(){q()}),_)},onMouseOut:function(e){d.props.onMouseOut&&d.props.onMouseOut(e),clearTimeout(X.current),X.current=window.setTimeout((function(){z()}),h)},onTouchStart:function(e){d.props.onTouchStart&&d.props.onTouchStart(e);var o=e.target;clearTimeout(X.current),B(o)?X.current=window.setTimeout((function(){z()}),h):q()}},U=void 0===E?K:E,W=n((function(e){I.current=e,H(I.current)}),[]);return o.createElement(o.Fragment,null,o.createElement(i,{innerRef:W},(G=function(o){var t={className:u(l,o.className)};switch(w){case"click":return e(e({},t),J);case"hover":return e(e({},t),Q);default:return{}}}(d.props),a(d,G))),F&&o.createElement(s,{anchorElement:F,open:U,getPortalContainer:M,arrowClassName:P,popperClassName:u(m,R),offset:x,withArrow:!0,position:y,update:S},function(){var t=function(){var o={ref:V,"data-test-id":k,className:u(p,b)};return"hover"===w?e(e({},o),Q):o}();return o.createElement("div",e({},t),v)}()))};export{f as Tooltip};
@@ -1 +1 @@
1
- export{Tooltip}from"./component.js";import"../tslib.es6-40ea3f8b.js";import"react";import"react-node-resolver";import"classnames";import"../popover/component.js";import"react-popper";import"react-transition-group";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";
1
+ export{Tooltip}from"./component.js";import"../tslib.es6-459c03f1.js";import"react";import"react-node-resolver";import"classnames";import"../popover/component.js";import"react-popper";import"react-transition-group";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";
@@ -1 +1 @@
1
- import{Title as o}from"./title/index.js";import{Text as t}from"./text/component.js";import{TitleResponsive as e}from"./title-responsive/component.js";import"../tslib.es6-40ea3f8b.js";import"react";import"./title/component.js";import"classnames";import"../colors.module-e2b2824a.js";import"../common.module-089096dd.js";var m={Title:o,Text:t,TitleResponsive:e};export{m as Typography};
1
+ import{Title as o}from"./title/index.js";import{Text as t}from"./text/component.js";import{TitleResponsive as e}from"./title-responsive/component.js";import"../tslib.es6-459c03f1.js";import"react";import"./title/component.js";import"classnames";import"../colors.module-cc3c7a1a.js";import"../common.module-3b992d8f.js";var m={Title:o,Text:t,TitleResponsive:e};export{m as Typography};
@@ -1 +1 @@
1
- export{Typography}from"./component.js";import"./title/index.js";import"../tslib.es6-40ea3f8b.js";import"react";import"./title/component.js";import"classnames";import"../colors.module-e2b2824a.js";import"../common.module-089096dd.js";import"./text/component.js";import"./title-responsive/component.js";
1
+ export{Typography}from"./component.js";import"./title/index.js";import"../tslib.es6-459c03f1.js";import"react";import"./title/component.js";import"classnames";import"../colors.module-cc3c7a1a.js";import"../common.module-3b992d8f.js";import"./text/component.js";import"./title-responsive/component.js";
@@ -1 +1 @@
1
- import e from"react";import a from"classnames";import{c as m}from"../../colors.module-e2b2824a.js";var r={paragraph:"index-module_paragraph__msaC8","primary-medium":"index-module_primary-medium__LhYfj","primary-small":"index-module_primary-small__lYM88",component:"index-module_component__MPBKM",title:"index-module_title__O9czO",caps:"index-module_caps__l7Eqh",bold:"index-module_bold__RuoQM",medium:"index-module_medium__YL230",regular:"index-module_regular__h8gTH"},d=function(d){var i,o=d.view,l=void 0===o?"primary-medium":o,_=d.tag,t=void 0===_?"span":_,p=d.weight,u=void 0===p?"regular":p,n=d.color,s=d.className,c=d.dataTestId,x=d.children;return e.createElement(t,{className:a((i={},i[r.paragraph]="p"===t,i),s,n&&m[n],r[l],r[u]),"data-test-id":c},x)};export{d as Text};
1
+ import e from"react";import a from"classnames";import{c as m}from"../../colors.module-cc3c7a1a.js";var r={paragraph:"index-module_paragraph__msaC8","primary-medium":"index-module_primary-medium__LhYfj","primary-small":"index-module_primary-small__lYM88",component:"index-module_component__MPBKM",title:"index-module_title__O9czO",caps:"index-module_caps__l7Eqh",bold:"index-module_bold__RuoQM",medium:"index-module_medium__YL230",regular:"index-module_regular__h8gTH"},d=function(d){var i,o=d.view,l=void 0===o?"primary-medium":o,_=d.tag,t=void 0===_?"span":_,p=d.weight,u=void 0===p?"regular":p,n=d.color,c=d.className,s=d.dataTestId,x=d.children;return e.createElement(t,{className:a((i={},i[r.paragraph]="p"===t,i),c,n&&m[n],r[l],r[u]),"data-test-id":s},x)};export{d as Text};
@@ -1 +1 @@
1
- export{Text}from"./component.js";import"react";import"classnames";import"../../colors.module-e2b2824a.js";
1
+ export{Text}from"./component.js";import"react";import"classnames";import"../../colors.module-cc3c7a1a.js";
@@ -1 +1 @@
1
- import e from"react";import a from"classnames";import{c as t}from"../../colors.module-e2b2824a.js";var o=function(o){var r=o.tag,m=void 0===r?"div":r,i=o.view,s=void 0===i?"medium":i,d=o.weight,c=void 0===d?"medium":d,n=o.defaultMargins,l=void 0!==n&&n,v=o.color,u=o.className,f=o.dataTestId,p=o.children,g=o.styles;return e.createElement(m,{className:a(g.component,u,g["montserrat-"+s],l&&g["margins-"+s],g[c],v&&t[v]),"data-test-id":f},p)};export{o as Title};
1
+ import a from"react";import e from"classnames";import{c as t}from"../../colors.module-cc3c7a1a.js";var o=function(o){var r=o.tag,m=void 0===r?"div":r,i=o.view,s=void 0===i?"medium":i,c=o.weight,d=void 0===c?"medium":c,n=o.defaultMargins,l=void 0!==n&&n,v=o.color,u=o.className,f=o.dataTestId,p=o.children,g=o.styles;return a.createElement(m,{className:e(g.component,u,g["montserrat-"+s],l&&g["margins-"+s],g[d],v&&t[v]),"data-test-id":f},p)};export{o as Title};
@@ -1 +1 @@
1
- import{a as m}from"../../tslib.es6-40ea3f8b.js";import e from"react";import{Title as r}from"./component.js";import{c as a}from"../../common.module-089096dd.js";import"classnames";import"../../colors.module-e2b2824a.js";var s={"montserrat-xlarge":"index-module_montserrat-xlarge__hdgbt","montserrat-large":"index-module_montserrat-large__Go4Ju","montserrat-medium":"index-module_montserrat-medium__KJdm0","montserrat-small":"index-module_montserrat-small__T0UeA","montserrat-xsmall":"index-module_montserrat-xsmall__9757S","margins-xlarge":"index-module_margins-xlarge__o0X6K","margins-large":"index-module_margins-large__njSHO","margins-medium":"index-module_margins-medium__ir-Bn","margins-small":"index-module_margins-small__F4y4n","margins-xsmall":"index-module_margins-xsmall__69GSc"},l=function(l){return e.createElement(r,m({},l,{styles:m(m({},a),s)}))};export{l as Title};
1
+ import{a as m}from"../../tslib.es6-459c03f1.js";import e from"react";import{Title as r}from"./component.js";import{c as a}from"../../common.module-3b992d8f.js";import"classnames";import"../../colors.module-cc3c7a1a.js";var s={"montserrat-xlarge":"index-module_montserrat-xlarge__hdgbt","montserrat-large":"index-module_montserrat-large__Go4Ju","montserrat-medium":"index-module_montserrat-medium__KJdm0","montserrat-small":"index-module_montserrat-small__T0UeA","montserrat-xsmall":"index-module_montserrat-xsmall__9757S","margins-xlarge":"index-module_margins-xlarge__o0X6K","margins-large":"index-module_margins-large__njSHO","margins-medium":"index-module_margins-medium__ir-Bn","margins-small":"index-module_margins-small__F4y4n","margins-xsmall":"index-module_margins-xsmall__69GSc"},l=function(l){return e.createElement(r,m({},l,{styles:m(m({},a),s)}))};export{l as Title};
@@ -1 +1 @@
1
- import{a as m}from"../../tslib.es6-40ea3f8b.js";import e from"react";import{Title as r}from"../title/component.js";import{c as a}from"../../common.module-089096dd.js";import"classnames";import"../../colors.module-e2b2824a.js";var l={"montserrat-xlarge":"index-module_montserrat-xlarge__J-ZiR","montserrat-large":"index-module_montserrat-large__kI1Kn","montserrat-medium":"index-module_montserrat-medium__MxBIN","montserrat-small":"index-module_montserrat-small__PuaHc","montserrat-xsmall":"index-module_montserrat-xsmall__5IiBT","margins-xlarge":"index-module_margins-xlarge__fJPKA","margins-large":"index-module_margins-large__9EEcc","margins-medium":"index-module_margins-medium__fgO21","margins-small":"index-module_margins-small__6biA7","margins-xsmall":"index-module_margins-xsmall__qLu13"},s=function(s){return e.createElement(r,m({},s,{styles:m(m({},a),l)}))};export{s as TitleResponsive};
1
+ import{a as m}from"../../tslib.es6-459c03f1.js";import e from"react";import{Title as r}from"../title/component.js";import{c as a}from"../../common.module-3b992d8f.js";import"classnames";import"../../colors.module-cc3c7a1a.js";var l={"montserrat-xlarge":"index-module_montserrat-xlarge__J-ZiR","montserrat-large":"index-module_montserrat-large__kI1Kn","montserrat-medium":"index-module_montserrat-medium__MxBIN","montserrat-small":"index-module_montserrat-small__PuaHc","montserrat-xsmall":"index-module_montserrat-xsmall__5IiBT","margins-xlarge":"index-module_margins-xlarge__fJPKA","margins-large":"index-module_margins-large__9EEcc","margins-medium":"index-module_margins-medium__fgO21","margins-small":"index-module_margins-small__6biA7","margins-xsmall":"index-module_margins-xsmall__qLu13"},s=function(s){return e.createElement(r,m({},s,{styles:m(m({},a),l)}))};export{s as TitleResponsive};
@@ -1 +1 @@
1
- export{TitleResponsive}from"./component.js";import"../../tslib.es6-40ea3f8b.js";import"react";import"../title/component.js";import"classnames";import"../../colors.module-e2b2824a.js";import"../../common.module-089096dd.js";
1
+ export{TitleResponsive}from"./component.js";import"../../tslib.es6-459c03f1.js";import"react";import"../title/component.js";import"classnames";import"../../colors.module-cc3c7a1a.js";import"../../common.module-3b992d8f.js";
@@ -1 +1 @@
1
- export{AMOUNT_MAJOR_MINOR_PARTS_SEPARATOR,THINSP,formatAmount}from"./format-amount/util.js";export{showError,showSuccess}from"./show-toast/index.js";export{splitAmount}from"./split-amount/util.js";import"./get-currency-symbol/util.js";import"./data/currency-codes.js";import"../toast-notifier/component.js";import"../tslib.es6-40ea3f8b.js";import"react";import"react-dom";import"classnames";import"../toast-plate/component.js";import"alpha-cli-icons";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../toast-notifier/use-timer.js";
1
+ export{AMOUNT_MAJOR_MINOR_PARTS_SEPARATOR,THINSP,formatAmount}from"./format-amount/util.js";export{showError,showSuccess}from"./show-toast/index.js";export{splitAmount}from"./split-amount/util.js";import"./get-currency-symbol/util.js";import"./data/currency-codes.js";import"../toast-notifier/component.js";import"../tslib.es6-459c03f1.js";import"react";import"react-dom";import"classnames";import"../toast-plate/component.js";import"alpha-cli-icons";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../toast-notifier/use-timer.js";
@@ -1 +1 @@
1
- import{ToastNotifier as t}from"../../toast-notifier/component.js";import"../../tslib.es6-40ea3f8b.js";import"react";import"react-dom";import"classnames";import"../../toast-plate/component.js";import"alpha-cli-icons";import"../../button/component.js";import"react-merge-refs";import"../../hooks/useFocus/index.js";import"../../loader/component.js";import"../../toast-notifier/use-timer.js";var o=function(o,e,i){void 0===e&&(e="Success"),void 0===i&&(i=30),t({view:"positive",title:e,text:o,offset:i})},e=function(o,e,i){void 0===e&&(e="Error"),void 0===i&&(i=30),t({view:"negative",title:e,text:o,offset:i})};export{e as showError,o as showSuccess};
1
+ import{ToastNotifier as t}from"../../toast-notifier/component.js";import"../../tslib.es6-459c03f1.js";import"react";import"react-dom";import"classnames";import"../../toast-plate/component.js";import"alpha-cli-icons";import"../../button/component.js";import"react-merge-refs";import"../../hooks/useFocus/index.js";import"../../loader/component.js";import"../../toast-notifier/use-timer.js";var o=function(o,i,e){void 0===i&&(i="Success"),void 0===e&&(e=30),t({view:"positive",title:i,text:o,offset:e})},i=function(o,i,e){void 0===i&&(i="Error"),void 0===e&&(e=30),t({view:"negative",title:i,text:o,offset:e})};export{i as showError,o as showSuccess};