@alphakits/ui 1.10.7 → 1.10.11

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 (280) hide show
  1. package/dist/{_commonjsHelpers-715a9038.js → _commonjsHelpers-2200265a.js} +0 -0
  2. package/dist/amount/component.js +1 -1
  3. package/dist/amount/index.js +1 -1
  4. package/dist/amount-input/component.d.ts +1 -1
  5. package/dist/amount-input/component.js +1 -1
  6. package/dist/amount-input/index.js +1 -1
  7. package/dist/avatar/component.js +1 -1
  8. package/dist/avatar/index.js +1 -1
  9. package/dist/badge/component.d.ts +1 -1
  10. package/dist/bottom-sheet/component.d.ts +1 -0
  11. package/dist/bottom-sheet/component.js +2 -2
  12. package/dist/bottom-sheet/index.js +1 -1
  13. package/dist/button/component.js +1 -1
  14. package/dist/button/index.js +1 -1
  15. package/dist/calendar/component.js +1 -1
  16. package/dist/calendar/components/days-table/component.js +1 -1
  17. package/dist/calendar/components/days-table/index.js +1 -1
  18. package/dist/calendar/components/header/index.js +1 -1
  19. package/dist/calendar/components/header//321/201omponent.js +1 -1
  20. package/dist/calendar/components/months-table/index.js +1 -1
  21. package/dist/calendar/components/months-table//321/201omponent.js +1 -1
  22. package/dist/calendar/components/select-button/index.js +1 -1
  23. package/dist/calendar/components/select-button//321/201omponent.js +1 -1
  24. package/dist/calendar/components/years-table/index.js +1 -1
  25. package/dist/calendar/components/years-table//321/201omponent.js +1 -1
  26. package/dist/calendar/index.js +1 -1
  27. package/dist/calendar-input/component.d.ts +1 -1
  28. package/dist/calendar-input/component.js +1 -1
  29. package/dist/calendar-input/index.js +1 -1
  30. package/dist/card/component.d.ts +14 -0
  31. package/dist/card/component.js +1 -0
  32. package/dist/card/images/index.d.ts +5 -0
  33. package/dist/card/images/index.js +1 -0
  34. package/dist/card/index.d.ts +1 -0
  35. package/dist/card/index.js +1 -0
  36. package/dist/cell/base/component.js +1 -1
  37. package/dist/cell/base/index.d.ts +1 -1
  38. package/dist/cell/base/index.js +1 -1
  39. package/dist/cell/component.js +1 -1
  40. package/dist/cell/index.js +1 -1
  41. package/dist/cell/pure/component.d.ts +2 -1
  42. package/dist/cell/pure/component.js +1 -1
  43. package/dist/cell/pure/index.js +1 -1
  44. package/dist/checkbox/component.d.ts +1 -1
  45. package/dist/checkbox/component.js +1 -1
  46. package/dist/checkbox/index.js +1 -1
  47. package/dist/checkbox-group/component.d.ts +1 -1
  48. package/dist/checkbox-group/component.js +1 -1
  49. package/dist/checkbox-group/index.js +1 -1
  50. package/dist/checkbox-lists/component.js +1 -1
  51. package/dist/checkbox-lists/index.js +1 -1
  52. package/dist/collapsable-row/addons.js +1 -1
  53. package/dist/collapsable-row/component.d.ts +1 -0
  54. package/dist/collapsable-row/component.js +1 -1
  55. package/dist/collapsable-row/index.js +1 -1
  56. package/dist/collapse/component.js +1 -1
  57. package/dist/collapse/index.js +1 -1
  58. package/dist/{colors.module-8fb4d894.js → colors.module-fdef9b82.js} +0 -0
  59. package/dist/{common.module-bc8e78fc.js → common.module-05b45c43.js} +0 -0
  60. package/dist/{component-b700782c.d.ts → component-20cb6564.d.ts} +0 -0
  61. package/dist/component-20cb6564.js +1 -0
  62. package/dist/{contact-block-95d51d1a.d.ts → contact-block-2a55b35d.d.ts} +0 -0
  63. package/dist/{contact-block-95d51d1a.js → contact-block-2a55b35d.js} +0 -0
  64. package/dist/copy-button/component.js +1 -1
  65. package/dist/copy-button/index.js +1 -1
  66. package/dist/date/component.js +1 -1
  67. package/dist/date/index.js +1 -1
  68. package/dist/date-switcher/component.js +1 -1
  69. package/dist/date-switcher/index.js +1 -1
  70. package/dist/flex-columns/component.d.ts +1 -0
  71. package/dist/footer/component.js +1 -1
  72. package/dist/footer/components/contacts-block.js +1 -1
  73. package/dist/footer/contact-block.js +1 -1
  74. package/dist/footer/index.js +1 -1
  75. package/dist/form/component.js +1 -1
  76. package/dist/form/components/form-footer/index.d.ts +1 -0
  77. package/dist/form/components/form-footer/index.js +1 -1
  78. package/dist/form/components/form-outer/index.d.ts +3 -1
  79. package/dist/form/components/form-wrapper/index.d.ts +3 -1
  80. package/dist/form/components/index.js +1 -1
  81. package/dist/form/index.js +1 -1
  82. package/dist/form/templates/crud-form/index.d.ts +1 -1
  83. package/dist/form/templates/crud-form/index.js +1 -1
  84. package/dist/form/templates/filters-form/index.d.ts +1 -1
  85. package/dist/form/templates/filters-form/index.js +1 -1
  86. package/dist/form/templates/rest-form/index.js +1 -1
  87. package/dist/form/utils/get-default-values.js +1 -1
  88. package/dist/form-control/component.js +1 -1
  89. package/dist/form-control/index.js +1 -1
  90. package/dist/formik.esm-7e28e586.js +1 -0
  91. package/dist/grid/col/component.js +1 -1
  92. package/dist/grid/col/index.js +1 -1
  93. package/dist/grid/component.js +1 -1
  94. package/dist/grid/index.js +1 -1
  95. package/dist/grid/row/component.js +1 -1
  96. package/dist/grid/row/index.js +1 -1
  97. package/dist/{gutters.module-467f92b2.js → gutters.module-43246042.js} +0 -0
  98. package/dist/header-search/component.js +1 -1
  99. package/dist/header-search/index.js +1 -1
  100. package/dist/heading/component.js +1 -1
  101. package/dist/heading/index.js +1 -1
  102. package/dist/hooks/index.js +1 -1
  103. package/dist/hooks/use-crud-form-requests/index.js +1 -1
  104. package/dist/hooks/use-get-one/index.js +1 -1
  105. package/dist/icon-button/component.d.ts +4 -8
  106. package/dist/icon-button/component.js +1 -1
  107. package/dist/icon-button/index.js +1 -1
  108. package/dist/image/component.js +1 -1
  109. package/dist/image/image-base.d.ts +6 -0
  110. package/dist/image/image-base.js +1 -0
  111. package/dist/image/index.js +1 -1
  112. package/dist/image/typings.d.ts +1 -0
  113. package/dist/image/use-image-render-component.js +1 -1
  114. package/dist/{index-83ef8910.js → index-b9b0450e.js} +1 -1
  115. package/dist/index.css +1 -1
  116. package/dist/index.ts +1 -0
  117. package/dist/info-block-header/component.js +1 -1
  118. package/dist/info-block-header/index.js +1 -1
  119. package/dist/info-block-item/component.js +1 -1
  120. package/dist/info-block-item/index.js +1 -1
  121. package/dist/input/component.d.ts +1 -1
  122. package/dist/input/component.js +1 -1
  123. package/dist/input/index.js +1 -1
  124. package/dist/input-ghost/component.d.ts +1 -1
  125. package/dist/{intersection-observer-306689e1.js → intersection-observer-5592775d.js} +0 -0
  126. package/dist/link/component.js +1 -1
  127. package/dist/link/index.js +1 -1
  128. package/dist/list-allert/component.js +1 -1
  129. package/dist/list-allert/index.js +1 -1
  130. package/dist/masked-input/component.d.ts +1 -1
  131. package/dist/masked-input/component.js +1 -1
  132. package/dist/masked-input/index.js +1 -1
  133. package/dist/menu/component.js +1 -1
  134. package/dist/menu/components/content-header/index.js +1 -1
  135. package/dist/menu/components/index.js +1 -1
  136. package/dist/menu/components/menu-avatar/index.js +1 -1
  137. package/dist/menu/components/menu-button/index.d.ts +1 -0
  138. package/dist/menu/components/menu-button/index.js +1 -1
  139. package/dist/menu/components/menu-buttons-list/index.js +1 -1
  140. package/dist/menu/components/user-button/index.js +1 -1
  141. package/dist/menu/index.js +1 -1
  142. package/dist/message/component.d.ts +2 -0
  143. package/dist/message/component.js +1 -1
  144. package/dist/message/index.js +1 -1
  145. package/dist/modal/components/modal-backgroung/index.d.ts +1 -0
  146. package/dist/modal/components/modals/index.js +1 -1
  147. package/dist/modal/context.d.ts +1 -0
  148. package/dist/modal/context.js +1 -1
  149. package/dist/modal/hooks/use-modal.js +1 -1
  150. package/dist/modal/index.js +1 -1
  151. package/dist/modal/types.d.ts +1 -1
  152. package/dist/mq/component.d.ts +4 -1
  153. package/dist/not-found/component.js +1 -1
  154. package/dist/not-found/index.js +1 -1
  155. package/dist/notification/component.js +1 -1
  156. package/dist/notification/index.js +1 -1
  157. package/dist/padding/component.d.ts +1 -0
  158. package/dist/{parse-query-params-14e0c962.d.ts → parse-query-params-46fb4ac1.d.ts} +0 -0
  159. package/dist/parse-query-params-46fb4ac1.js +1 -0
  160. package/dist/picker-button/common/index.js +1 -1
  161. package/dist/picker-button/common/labeled-button/index.js +1 -1
  162. package/dist/picker-button/component.d.ts +1 -1
  163. package/dist/picker-button/component.js +1 -1
  164. package/dist/picker-button/field/Component.js +1 -1
  165. package/dist/picker-button/field/index.js +1 -1
  166. package/dist/picker-button/index.js +1 -1
  167. package/dist/popover/component.d.ts +2 -1
  168. package/dist/popover/component.js +1 -1
  169. package/dist/popover/index.js +1 -1
  170. package/dist/portal/component.d.ts +1 -2
  171. package/dist/progress-bar/component.js +1 -1
  172. package/dist/progress-bar/index.js +1 -1
  173. package/dist/progress-index/component.js +1 -1
  174. package/dist/progress-index/index.js +1 -1
  175. package/dist/radio/component.d.ts +1 -1
  176. package/dist/radio/component.js +1 -1
  177. package/dist/radio/index.js +1 -1
  178. package/dist/radio-group/component.d.ts +3 -1
  179. package/dist/radio-group/component.js +1 -1
  180. package/dist/radio-group/index.js +1 -1
  181. package/dist/radio-groups/component.js +1 -1
  182. package/dist/radio-groups/index.js +1 -1
  183. package/dist/section-wrapper/component.d.ts +1 -0
  184. package/dist/select/component.d.ts +1 -1
  185. package/dist/select/component.js +1 -1
  186. package/dist/select/components/base-select/component.js +1 -1
  187. package/dist/select/components/base-select/index.js +1 -1
  188. package/dist/select/components/field/component.js +1 -1
  189. package/dist/select/components/field/index.js +1 -1
  190. package/dist/select/components/index.js +1 -1
  191. package/dist/select/components/native-select/component.js +1 -1
  192. package/dist/select/components/native-select/index.js +1 -1
  193. package/dist/select/components/option/component.js +1 -1
  194. package/dist/select/components/option/index.js +1 -1
  195. package/dist/select/components/virtual-options-list/component.js +1 -1
  196. package/dist/select/components/virtual-options-list/index.js +1 -1
  197. package/dist/select/index.js +1 -1
  198. package/dist/select/presets/index.js +1 -1
  199. package/dist/select/presets/use-lazy-loading/index.js +1 -1
  200. package/dist/select/presets/use-select-with-loading/hook.js +1 -1
  201. package/dist/sidepanel-header/component.js +1 -1
  202. package/dist/sidepanel-header/index.js +1 -1
  203. package/dist/skeleton/component.d.ts +1 -0
  204. package/dist/space/Item.js +1 -1
  205. package/dist/space/component.js +1 -1
  206. package/dist/space/index.js +1 -1
  207. package/dist/suffix-input/component.d.ts +1 -1
  208. package/dist/suffix-input/component.js +1 -1
  209. package/dist/suffix-input/index.js +1 -1
  210. package/dist/super-list-header/component.js +1 -1
  211. package/dist/super-list-header/index.js +1 -1
  212. package/dist/super-list-item/component.js +1 -1
  213. package/dist/super-list-item/index.js +1 -1
  214. package/dist/switch/component.d.ts +1 -1
  215. package/dist/switch/component.js +1 -1
  216. package/dist/switch/index.js +1 -1
  217. package/dist/table/columns.js +1 -1
  218. package/dist/table/component.js +1 -1
  219. package/dist/table/components/cell/component.d.ts +1 -0
  220. package/dist/table/components/cell/component.js +1 -1
  221. package/dist/table/components/cell/index.js +1 -1
  222. package/dist/table/components/cells/index.js +1 -1
  223. package/dist/table/components/empty-list/index.js +1 -1
  224. package/dist/table/components/error/index.js +1 -1
  225. package/dist/table/components/pagination/index.js +1 -1
  226. package/dist/table/components/row/component.js +1 -1
  227. package/dist/table/components/row/index.js +1 -1
  228. package/dist/table/components/rows/index.js +1 -1
  229. package/dist/table/components/table-header/index.js +1 -1
  230. package/dist/table/hooks/use-table-data.js +1 -1
  231. package/dist/table/index.js +1 -1
  232. package/dist/table/table.js +1 -1
  233. package/dist/table/utils/add-query-param.js +1 -1
  234. package/dist/table/utils/get-query-from-url.js +1 -1
  235. package/dist/table/utils/index.d.ts +1 -1
  236. package/dist/table/utils/index.js +1 -1
  237. package/dist/table/utils/parse-query-params.js +1 -1
  238. package/dist/table/utils/query-adapter.js +1 -1
  239. package/dist/table/utils/remove-query-param.js +1 -1
  240. package/dist/table/utils/reset-query-param.js +1 -1
  241. package/dist/table-status/component.js +1 -1
  242. package/dist/table-status/index.js +1 -1
  243. package/dist/tag/component.js +1 -1
  244. package/dist/tag/index.js +1 -1
  245. package/dist/tags-list/component.js +1 -1
  246. package/dist/tags-list/index.js +1 -1
  247. package/dist/tariff-builder/component.js +1 -1
  248. package/dist/tariff-builder/index.js +1 -1
  249. package/dist/textarea/component.d.ts +1 -1
  250. package/dist/textarea/component.js +1 -1
  251. package/dist/textarea/index.js +1 -1
  252. package/dist/toast/component.js +1 -1
  253. package/dist/toast/index.js +1 -1
  254. package/dist/toast-notifier/component.js +1 -1
  255. package/dist/toast-notifier/index.js +1 -1
  256. package/dist/toast-plate/component.js +1 -1
  257. package/dist/toast-plate/index.js +1 -1
  258. package/dist/tooltip/component.js +1 -1
  259. package/dist/tooltip/index.js +1 -1
  260. package/dist/{tslib.es6-5e5e4107.js → tslib.es6-444ada29.js} +0 -0
  261. package/dist/typography/component.js +1 -1
  262. package/dist/typography/index.js +1 -1
  263. package/dist/typography/text/component.js +1 -1
  264. package/dist/typography/text/index.js +1 -1
  265. package/dist/typography/title/component.js +1 -1
  266. package/dist/typography/title/index.js +1 -1
  267. package/dist/typography/title-responsive/component.js +1 -1
  268. package/dist/typography/title-responsive/index.js +1 -1
  269. package/dist/{use-image-render-component-a093c135.d.ts → use-image-render-component-a564176c.d.ts} +0 -0
  270. package/dist/{use-image-render-component-a093c135.js → use-image-render-component-a564176c.js} +0 -0
  271. package/dist/utils/index.js +1 -1
  272. package/dist/utils/show-toast/index.js +1 -1
  273. package/dist/welcome-layout/component.d.ts +1 -0
  274. package/dist/with-suffix/component.d.ts +2 -2
  275. package/dist/with-suffix/component.js +1 -1
  276. package/dist/with-suffix/index.js +1 -1
  277. package/package.json +2 -2
  278. package/dist/component-b700782c.js +0 -1
  279. package/dist/formik.esm-c5a878e2.js +0 -1
  280. package/dist/parse-query-params-14e0c962.js +0 -1
@@ -1 +1 @@
1
- import{a as e}from"../tslib.es6-5e5e4107.js";import*as t from"react";var a=function(a){var r=a.className,i=a.horizontalSize,l=a.verticalSize,n=a.length,m=a.direction,o=a.index,s=a.children,c=a.divider,d=a.wrap,g={};return"vertical"===m?o<n&&(g={marginBottom:i/(c?2:1)}):g=e(e({},o<n&&{marginRight:i/(c?2:1)}),d&&{paddingBottom:l}),null==s?null:t.createElement(t.Fragment,null,t.createElement("div",{className:r,style:g},s),o<n-1&&c&&t.createElement("span",{style:e({width:"100%"},g)},c))};export{a as default};
1
+ import{a as e}from"../tslib.es6-444ada29.js";import*as t from"react";var a=function(a){var r=a.className,i=a.horizontalSize,l=a.verticalSize,n=a.length,m=a.direction,o=a.index,s=a.children,c=a.divider,d=a.wrap,g={};return"vertical"===m?o<n&&(g={marginBottom:i/(c?2:1)}):g=e(e({},o<n&&{marginRight:i/(c?2:1)}),d&&{paddingBottom:l}),null==s?null:t.createElement(t.Fragment,null,t.createElement("div",{className:r,style:g},s),o<n-1&&c&&t.createElement("span",{style:e({width:"100%"},g)},c))};export{a as default};
@@ -1 +1 @@
1
- import{a as e}from"../tslib.es6-5e5e4107.js";import t,{forwardRef as i,Children as r}from"react";import n from"classnames";import a from"./Item.js";var l={spaceContainer:"index-module_spaceContainer__Onnxn",spaceContainerFullWidth:"index-module_spaceContainerFullWidth__W7-9v",vertical:"index-module_vertical__EjIme",center:"index-module_center__VDiFi",start:"index-module_start__WKuO-",end:"index-module_end__FzVWP",spaceItemFullWidth:"index-module_spaceItemFullWidth__C58tA",spaceItem:"index-module_spaceItem__oUYtC"},o={s:12,m:16,l:20},d=i((function(i,d){var m,s,c=i.children,u=i.className,p=i.align,_=void 0===p?"start":p,v=i.direction,f=void 0===v?"vertical":v,h=i.size,x=void 0===h?"m":h,W=i.wrap,C=void 0!==W&&W,F=i.divider,I=void 0!==F&&F,g=i.fullWidth,y=void 0!==g&&g,z=t.useMemo((function(){return(Array.isArray(x)?x:[x,x]).map((function(e){return function(e){return"string"==typeof e?o[e]:e||0}(e)}))}),[x]),A=z[0],j=z[1],w=r.toArray(c);if(0===w.length)return null;var E=n(l.spaceContainer,l[f],((m={})[l[_]]=_,m[l.spaceContainerFullWidth]=y,m),u),N=n(l.spaceItem,((s={})[l.spaceItemFullWidth]=y,s)),O=w.map((function(e,i){return t.createElement(a,{className:N,key:N+"-"+i,direction:f,horizontalSize:A,verticalSize:j,length:w.length,index:i,wrap:C,divider:I},e)}));return t.createElement("div",{className:E,style:e({},C&&{flexWrap:"wrap",marginBottom:-j}),ref:d},O)}));export{d as Space};
1
+ import{a as e}from"../tslib.es6-444ada29.js";import t,{forwardRef as i,Children as r}from"react";import n from"classnames";import a from"./Item.js";var l={spaceContainer:"index-module_spaceContainer__Onnxn",spaceContainerFullWidth:"index-module_spaceContainerFullWidth__W7-9v",vertical:"index-module_vertical__EjIme",center:"index-module_center__VDiFi",start:"index-module_start__WKuO-",end:"index-module_end__FzVWP",spaceItemFullWidth:"index-module_spaceItemFullWidth__C58tA",spaceItem:"index-module_spaceItem__oUYtC"},o={s:12,m:16,l:20},d=i((function(i,d){var m,s,c=i.children,u=i.className,p=i.align,_=void 0===p?"start":p,v=i.direction,f=void 0===v?"vertical":v,h=i.size,x=void 0===h?"m":h,W=i.wrap,C=void 0!==W&&W,F=i.divider,I=void 0!==F&&F,g=i.fullWidth,y=void 0!==g&&g,z=t.useMemo((function(){return(Array.isArray(x)?x:[x,x]).map((function(e){return function(e){return"string"==typeof e?o[e]:e||0}(e)}))}),[x]),A=z[0],j=z[1],w=r.toArray(c);if(0===w.length)return null;var E=n(l.spaceContainer,l[f],((m={})[l[_]]=_,m[l.spaceContainerFullWidth]=y,m),u),N=n(l.spaceItem,((s={})[l.spaceItemFullWidth]=y,s)),O=w.map((function(e,i){return t.createElement(a,{className:N,key:N+"-"+i,direction:f,horizontalSize:A,verticalSize:j,length:w.length,index:i,wrap:C,divider:I},e)}));return t.createElement("div",{className:E,style:e({},C&&{flexWrap:"wrap",marginBottom:-j}),ref:d},O)}));export{d as Space};
@@ -1 +1 @@
1
- export{Space}from"./component.js";import"../tslib.es6-5e5e4107.js";import"react";import"classnames";import"./Item.js";
1
+ export{Space}from"./component.js";import"../tslib.es6-444ada29.js";import"react";import"classnames";import"./Item.js";
@@ -10,7 +10,7 @@ type SuffixInputProps = Omit<InputProps, 'value' | 'onChange' | 'type'> & {
10
10
  value: string;
11
11
  }) => void;
12
12
  };
13
- declare const SuffixInput: React.ForwardRefExoticComponent<Pick<InputProps, "disabled" | "color" | "className" | "dataTestId" | "children" | "form" | "list" | "error" | "label" | "slot" | "style" | "title" | "pattern" | "leftAddons" | "rightAddons" | "size" | "block" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "step" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "required" | "fieldClassName" | "labelClassName" | "addonsClassName" | "hint" | "bottomAddons" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "crossOrigin" | "height" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "readOnly" | "src" | "width" | "clear" | "success" | "inputClassName" | "focusedClassName" | "filledClassName" | "onClear" | "wrapperRef"> & {
13
+ declare const SuffixInput: React.ForwardRefExoticComponent<Pick<InputProps, "error" | "className" | "dataTestId" | "form" | "label" | "slot" | "style" | "title" | "pattern" | "children" | "leftAddons" | "rightAddons" | "size" | "block" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "list" | "step" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "src" | "alt" | "hint" | "required" | "fieldClassName" | "labelClassName" | "addonsClassName" | "bottomAddons" | "accept" | "autoComplete" | "capture" | "checked" | "crossOrigin" | "height" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "readOnly" | "width" | "clear" | "success" | "inputClassName" | "focusedClassName" | "filledClassName" | "onClear" | "wrapperRef"> & {
14
14
  value: string;
15
15
  suffix?: string | undefined;
16
16
  required?: boolean | undefined;
@@ -1 +1 @@
1
- import{_ as e,a as o}from"../tslib.es6-5e5e4107.js";import n,{forwardRef as r,useState as t,useEffect as a,useCallback as i,Fragment as l}from"react";import s from"classnames";import{Input as m}from"../input/component.js";import{withSuffix as c}from"../with-suffix/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"../portal/component.js";import"react-dom";import"../portal/utils.js";var d={container:"index-module_container__tczFF",minorPartAndCurrency:"index-module_minorPartAndCurrency__0K7XF",bold:"index-module_bold__r3hvn",input:"index-module_input__SIj3W",suffixContainer:"index-module_suffixContainer__8eIxg",filled:"index-module_filled__nKrpt"},u=c(m),f=r((function(r,m){var c,f=r.value,p=r.suffix,_=r.placeholder,C=void 0===_?"":_,x=r.bold,v=void 0===x||x,j=r.className,N=r.focusedClassName,h=r.required,b=r.dataTestId,g=r.clear,E=void 0!==g&&g,F=r.onChange,I=r.onClear,q=e(r,["value","suffix","placeholder","bold","className","focusedClassName","required","dataTestId","clear","onChange","onClear"]),A=t(f),w=A[0],y=A[1];a((function(){return w!==f?y(f):function(){}}),[f]);var P=i((function(e){y(""),I&&I(e)}),[I]);return n.createElement("div",{className:s(d.container,(c={},c[d.bold]=v,c[d.filled]=Boolean(w),c))},n.createElement(u,o({},q,{suffix:n.createElement(l,null,w,n.createElement("span",{className:d.minorPartAndCurrency}," ",p)),suffixContainerClassName:d.suffixContainer,clear:E,required:h,placeholder:C,value:w,className:s(d.component,j),focusedClassName:N,inputClassName:d.input,onChange:function(e){var o=e.target,n=o.value;if(n===w){var r=o.selectionStart;window.requestAnimationFrame((function(){o.selectionStart=r,o.selectionEnd=r}))}y(n),F&&F(e,{value:n})},onClear:P,dataTestId:b,ref:m})))}));export{f as SuffixInput};
1
+ import{_ as e,a as o}from"../tslib.es6-444ada29.js";import n,{forwardRef as r,useState as a,useEffect as t,useCallback as i,Fragment as l}from"react";import s from"classnames";import{Input as m}from"../input/component.js";import{withSuffix as d}from"../with-suffix/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"../portal/component.js";import"react-dom";import"../portal/utils.js";var c={container:"index-module_container__tczFF",minorPartAndCurrency:"index-module_minorPartAndCurrency__0K7XF",bold:"index-module_bold__r3hvn",input:"index-module_input__SIj3W",suffixContainer:"index-module_suffixContainer__8eIxg",filled:"index-module_filled__nKrpt"},u=d(m),f=r((function(r,m){var d,f=r.value,p=r.suffix,_=r.placeholder,C=void 0===_?"":_,x=r.bold,v=void 0===x||x,j=r.className,N=r.focusedClassName,h=r.required,b=r.dataTestId,g=r.clear,E=void 0!==g&&g,F=r.onChange,I=r.onClear,q=e(r,["value","suffix","placeholder","bold","className","focusedClassName","required","dataTestId","clear","onChange","onClear"]),A=a(f),w=A[0],y=A[1];t((function(){return w!==f?y(f):function(){}}),[f]);var P=i((function(e){y(""),I&&I(e)}),[I]);return n.createElement("div",{className:s(c.container,(d={},d[c.bold]=v,d[c.filled]=Boolean(w),d))},n.createElement(u,o({},q,{suffix:n.createElement(l,null,w,n.createElement("span",{className:c.minorPartAndCurrency}," ",p)),suffixContainerClassName:c.suffixContainer,clear:E,required:h,placeholder:C,value:w,className:s(c.component,j),focusedClassName:N,inputClassName:c.input,onChange:function(e){var o=e.target,n=o.value;if(n===w){var r=o.selectionStart;window.requestAnimationFrame((function(){o.selectionStart=r,o.selectionEnd=r}))}y(n),F&&F(e,{value:n})},onClear:P,dataTestId:b,ref:m})))}));export{f as SuffixInput};
@@ -1 +1 @@
1
- export{SuffixInput}from"./component.js";import"../tslib.es6-5e5e4107.js";import"react";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"../with-suffix/component.js";import"../portal/component.js";import"react-dom";import"../portal/utils.js";
1
+ export{SuffixInput}from"./component.js";import"../tslib.es6-444ada29.js";import"react";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"../with-suffix/component.js";import"../portal/component.js";import"react-dom";import"../portal/utils.js";
@@ -1 +1 @@
1
- import e from"react";import{Typography as t}from"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-5e5e4107.js";import"../typography/title/component.js";import"classnames";import"../colors.module-8fb4d894.js";import"../common.module-bc8e78fc.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var o="index-module_component__cofLq",m="index-module_leftSide__qNA7Y",n="index-module_leftAddons__l-m-3",r="index-module_rightAddons__m-u4n",i=function(i){var s=i.text,p=i.leftAddons,d=i.rightAddons;return e.createElement("div",{className:o},e.createElement("div",{className:m},e.createElement(t.Text,{weight:"bold",tag:"span"},s),p&&e.createElement("div",{className:n},p)),d&&e.createElement("div",{className:r},d))};export{i as SuperListHeader};
1
+ import e from"react";import{Typography as t}from"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-444ada29.js";import"../typography/title/component.js";import"classnames";import"../colors.module-fdef9b82.js";import"../common.module-05b45c43.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var o="index-module_component__cofLq",m="index-module_leftSide__qNA7Y",n="index-module_leftAddons__l-m-3",r="index-module_rightAddons__m-u4n",i=function(i){var s=i.text,p=i.leftAddons,a=i.rightAddons;return e.createElement("div",{className:o},e.createElement("div",{className:m},e.createElement(t.Text,{weight:"bold",tag:"span"},s),p&&e.createElement("div",{className:n},p)),a&&e.createElement("div",{className:r},a))};export{i as SuperListHeader};
@@ -1 +1 @@
1
- export{SuperListHeader}from"./component.js";import"react";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-5e5e4107.js";import"../typography/title/component.js";import"classnames";import"../colors.module-8fb4d894.js";import"../common.module-bc8e78fc.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
1
+ export{SuperListHeader}from"./component.js";import"react";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-444ada29.js";import"../typography/title/component.js";import"classnames";import"../colors.module-fdef9b82.js";import"../common.module-05b45c43.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
@@ -1 +1 @@
1
- import e from"react";import t from"classnames";import{Typography as o}from"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-5e5e4107.js";import"../typography/title/component.js";import"../colors.module-8fb4d894.js";import"../common.module-bc8e78fc.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var m="index-module_component__exnSI",r="index-module_leftSide__t9PJZ",s="index-module_leftAddons__AhXk-",a="index-module_disabled_dot__Ret4Z",i="index-module_rightAddons__UjV9O",n=function(n){var d=n.text,l=n.rightAddons,c=n.leftAddons,p=n.color,_=void 0===p?"secondary":p,g=n.disabled,v=n.className,x=n.weight,y=void 0===x?"regular":x;return e.createElement("div",{className:t(m,v)},e.createElement("div",{className:r},c&&!g&&e.createElement("div",{className:s},c),g&&e.createElement("div",{className:s},e.createElement("span",{className:a})),e.createElement(o.Text,{weight:y,color:_,view:"title",tag:"span"},d)),l&&e.createElement("div",{className:i},l))};export{n as SuperListItem};
1
+ import e from"react";import t from"classnames";import{Typography as o}from"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-444ada29.js";import"../typography/title/component.js";import"../colors.module-fdef9b82.js";import"../common.module-05b45c43.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var m="index-module_component__exnSI",a="index-module_leftSide__t9PJZ",r="index-module_leftAddons__AhXk-",s="index-module_disabled_dot__Ret4Z",i="index-module_rightAddons__UjV9O",d=function(d){var n=d.text,l=d.rightAddons,p=d.leftAddons,c=d.color,_=void 0===c?"secondary":c,g=d.disabled,v=d.className,x=d.weight,y=void 0===x?"regular":x;return e.createElement("div",{className:t(m,v)},e.createElement("div",{className:a},p&&!g&&e.createElement("div",{className:r},p),g&&e.createElement("div",{className:r},e.createElement("span",{className:s})),e.createElement(o.Text,{weight:y,color:_,view:"title",tag:"span"},n)),l&&e.createElement("div",{className:i},l))};export{d as SuperListItem};
@@ -1 +1 @@
1
- export{SuperListItem}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-5e5e4107.js";import"../typography/title/component.js";import"../colors.module-8fb4d894.js";import"../common.module-bc8e78fc.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
1
+ export{SuperListItem}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-444ada29.js";import"../typography/title/component.js";import"../colors.module-fdef9b82.js";import"../common.module-05b45c43.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
@@ -16,7 +16,7 @@ type SwitchProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'hint' |
16
16
  }) => void;
17
17
  dataTestId?: string;
18
18
  };
19
- declare const Switch: React.ForwardRefExoticComponent<Pick<React.InputHTMLAttributes<HTMLInputElement>, "disabled" | "color" | "className" | "children" | "form" | "list" | "slot" | "style" | "title" | "pattern" | "value" | "size" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "step" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "required" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "crossOrigin" | "height" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "readOnly" | "src" | "width"> & {
19
+ declare const Switch: React.ForwardRefExoticComponent<Pick<React.InputHTMLAttributes<HTMLInputElement>, "className" | "form" | "slot" | "style" | "title" | "pattern" | "children" | "size" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "list" | "step" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | "src" | "alt" | "required" | "accept" | "autoComplete" | "capture" | "checked" | "crossOrigin" | "height" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "readOnly" | "width"> & {
20
20
  checked?: boolean | undefined;
21
21
  label?: React.ReactNode;
22
22
  hint?: React.ReactNode;
@@ -1 +1 @@
1
- import{_ as e,a}from"../tslib.es6-5e5e4107.js";import d,{forwardRef as n,useRef as s,useCallback as t}from"react";import o from"react-merge-refs";import l from"classnames";import{useFocus as c}from"../hooks/useFocus/index.js";var m={component:"index-module_component__uXwqU",checked:"index-module_checked__dMpWF",switch:"index-module_switch__c7Qyf",start:"index-module_start__6RfRJ",center:"index-module_center__1n6sQ",addons:"index-module_addons__ZqO-o",block:"index-module_block__m7SjH",content:"index-module_content__hoWfv",label:"index-module_label__earxI",hint:"index-module_hint__LstQQ",reversed:"index-module_reversed__fS7Bs",disabled:"index-module_disabled__s1L6d",focused:"index-module_focused__v7jCm"},r=n((function(n,r){var i,_=n.reversed,u=void 0!==_&&_,h=n.checked,b=void 0!==h&&h,p=n.align,x=void 0===p?"start":p,f=n.addons,k=n.block,v=n.disabled,N=n.label,g=n.hint,E=n.name,j=n.value,w=n.className,C=n.onChange,Q=n.dataTestId,y=e(n,["reversed","checked","align","addons","block","disabled","label","hint","name","value","className","onChange","dataTestId"]),I=s(null),q=c(I,"keyboard")[0],F=t((function(e){C&&C(e,{checked:e.target.checked,name:E})}),[C,E]);return d.createElement("label",{className:l(m.component,m[x],w,(i={},i[m.disabled]=v,i[m.checked]=b,i[m.reversed]=u,i[m.focused]=q,i[m.block]=k,i)),ref:o([I,r])},d.createElement("input",a({type:"checkbox",onChange:F,disabled:v,checked:b,name:E,value:j,"data-test-id":Q},y)),d.createElement("span",{className:m.switch}),(N||g)&&d.createElement("span",{className:m.content},N&&d.createElement("span",{className:m.label},N),g&&d.createElement("span",{className:m.hint},g)),f&&d.createElement("span",{className:m.addons},f))}));export{r as Switch};
1
+ import{_ as e,a}from"../tslib.es6-444ada29.js";import d,{forwardRef as n,useRef as s,useCallback as t}from"react";import o from"react-merge-refs";import l from"classnames";import{useFocus as c}from"../hooks/useFocus/index.js";var m={component:"index-module_component__uXwqU",checked:"index-module_checked__dMpWF",switch:"index-module_switch__c7Qyf",start:"index-module_start__6RfRJ",center:"index-module_center__1n6sQ",addons:"index-module_addons__ZqO-o",block:"index-module_block__m7SjH",content:"index-module_content__hoWfv",label:"index-module_label__earxI",hint:"index-module_hint__LstQQ",reversed:"index-module_reversed__fS7Bs",disabled:"index-module_disabled__s1L6d",focused:"index-module_focused__v7jCm"},r=n((function(n,r){var i,_=n.reversed,u=void 0!==_&&_,h=n.checked,b=void 0!==h&&h,p=n.align,x=void 0===p?"start":p,f=n.addons,k=n.block,v=n.disabled,N=n.label,g=n.hint,E=n.name,j=n.value,w=n.className,C=n.onChange,Q=n.dataTestId,y=e(n,["reversed","checked","align","addons","block","disabled","label","hint","name","value","className","onChange","dataTestId"]),I=s(null),q=c(I,"keyboard")[0],F=t((function(e){C&&C(e,{checked:e.target.checked,name:E})}),[C,E]);return d.createElement("label",{className:l(m.component,m[x],w,(i={},i[m.disabled]=v,i[m.checked]=b,i[m.reversed]=u,i[m.focused]=q,i[m.block]=k,i)),ref:o([I,r])},d.createElement("input",a({type:"checkbox",onChange:F,disabled:v,checked:b,name:E,value:j,"data-test-id":Q},y)),d.createElement("span",{className:m.switch}),(N||g)&&d.createElement("span",{className:m.content},N&&d.createElement("span",{className:m.label},N),g&&d.createElement("span",{className:m.hint},g)),f&&d.createElement("span",{className:m.addons},f))}));export{r as Switch};
@@ -1 +1 @@
1
- export{Switch}from"./component.js";import"../tslib.es6-5e5e4107.js";import"react";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";
1
+ export{Switch}from"./component.js";import"../tslib.es6-444ada29.js";import"react";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";
@@ -1 +1 @@
1
- import t from"react";import{Image as o}from"../image/component.js";import"../image/typings.js";import"../image/constants.js";import{Table as e}from"./component.js";import"classnames";import"../cell/pure/component.js";import"../skeleton/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-5e5e4107.js";import"../typography/title/component.js";import"../colors.module-8fb4d894.js";import"../common.module-bc8e78fc.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../use-image-render-component-a093c135.js";import"alpha-cli-icons";import"../spinner/component.js";import"../image/utils.js";import"./components/cell/component.js";import"../component-b700782c.js";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"./components/row/component.js";import"./table.js";import"react-table";import"./components/cells/index.js";import"./components/pagination/index.js";import"../button/component.js";import"react-merge-refs";import"../loader/component.js";import"./languages/index.js";import"./components/rows/index.js";import"./components/empty-list/index.js";import"./components/error/index.js";import"./components/loading/index.js";import"./components/table-header/index.js";import"../header-search/component.js";import"./hooks/use-table-data.js";import"./utils/get-query-from-url.js";import"../parse-query-params-14e0c962.js";import"../_commonjsHelpers-715a9038.js";import"./utils/add-query-param.js";import"./utils/set-query-to-url.js";import"./utils/get-tags.js";import"./utils/remove-query-param.js";import"./utils/reset-query-param.js";import"./utils/serialize-data.js";import"./utils/sort-array.js";import"./utils/is-object.js";var r=function(r){return[{Header:r("tables.certificate"),accessor:"title",Cell:function(r){r.cell;var i=r.row.original;return t.createElement(e.Cell,{title:i.title,addon:t.createElement(o,{src:i.photo,text:i.title,view:"ellipse"})})}},{Header:r("tables.order"),accessor:"description",enableSort:!0,Cell:function(o){o.cell;var r=o.row.original;return t.createElement(e.Cell,{title:r.time})}}]};export{r as ClientsColumns};
1
+ import t from"react";import{Image as o}from"../image/component.js";import"../image/typings.js";import"../image/constants.js";import{Table as e}from"./component.js";import"classnames";import"../cell/pure/component.js";import"../skeleton/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-444ada29.js";import"../typography/title/component.js";import"../colors.module-fdef9b82.js";import"../common.module-05b45c43.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../use-image-render-component-a564176c.js";import"alpha-cli-icons";import"../spinner/component.js";import"../image/utils.js";import"./components/cell/component.js";import"../component-20cb6564.js";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"./components/row/component.js";import"./table.js";import"react-table";import"./components/cells/index.js";import"./components/pagination/index.js";import"../button/component.js";import"react-merge-refs";import"../loader/component.js";import"./languages/index.js";import"./components/rows/index.js";import"./components/empty-list/index.js";import"./components/error/index.js";import"./components/loading/index.js";import"./components/table-header/index.js";import"../header-search/component.js";import"./hooks/use-table-data.js";import"./utils/get-query-from-url.js";import"../parse-query-params-46fb4ac1.js";import"../_commonjsHelpers-2200265a.js";import"./utils/add-query-param.js";import"./utils/set-query-to-url.js";import"./utils/get-tags.js";import"./utils/remove-query-param.js";import"./utils/reset-query-param.js";import"./utils/serialize-data.js";import"./utils/sort-array.js";import"./utils/is-object.js";var r=function(r){return[{Header:r("tables.certificate"),accessor:"title",Cell:function(r){r.cell;var i=r.row.original;return t.createElement(e.Cell,{title:i.title,addon:t.createElement(o,{src:i.photo,text:i.title,view:"ellipse"})})}},{Header:r("tables.order"),accessor:"description",enableSort:!0,Cell:function(o){o.cell;var r=o.row.original;return t.createElement(e.Cell,{title:r.time})}}]};export{r as ClientsColumns};
@@ -1 +1 @@
1
- import{TableCell as o}from"./components/cell/component.js";import{Row as t}from"./components/row/component.js";import{Table as e}from"./table.js";import"../tslib.es6-5e5e4107.js";import"react";import"classnames";import"../component-b700782c.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-8fb4d894.js";import"../common.module-bc8e78fc.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../cell/pure/component.js";import"react-table";import"./components/cells/index.js";import"alpha-cli-icons";import"./components/pagination/index.js";import"../button/component.js";import"react-merge-refs";import"../loader/component.js";import"./languages/index.js";import"./components/rows/index.js";import"./components/empty-list/index.js";import"./components/error/index.js";import"./components/loading/index.js";import"./components/table-header/index.js";import"../header-search/component.js";import"./hooks/use-table-data.js";import"./utils/get-query-from-url.js";import"../parse-query-params-14e0c962.js";import"../_commonjsHelpers-715a9038.js";import"./utils/add-query-param.js";import"./utils/set-query-to-url.js";import"./utils/get-tags.js";import"./utils/remove-query-param.js";import"./utils/reset-query-param.js";import"./utils/serialize-data.js";import"./utils/sort-array.js";import"./utils/is-object.js";var r={Cell:o,Row:t,TableComponent:e};export{r as Table};
1
+ import{TableCell as o}from"./components/cell/component.js";import{Row as t}from"./components/row/component.js";import{Table as e}from"./table.js";import"../tslib.es6-444ada29.js";import"react";import"classnames";import"../component-20cb6564.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-fdef9b82.js";import"../common.module-05b45c43.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../cell/pure/component.js";import"react-table";import"./components/cells/index.js";import"alpha-cli-icons";import"./components/pagination/index.js";import"../button/component.js";import"react-merge-refs";import"../loader/component.js";import"./languages/index.js";import"./components/rows/index.js";import"./components/empty-list/index.js";import"./components/error/index.js";import"./components/loading/index.js";import"./components/table-header/index.js";import"../header-search/component.js";import"./hooks/use-table-data.js";import"./utils/get-query-from-url.js";import"../parse-query-params-46fb4ac1.js";import"../_commonjsHelpers-2200265a.js";import"./utils/add-query-param.js";import"./utils/set-query-to-url.js";import"./utils/get-tags.js";import"./utils/remove-query-param.js";import"./utils/reset-query-param.js";import"./utils/serialize-data.js";import"./utils/sort-array.js";import"./utils/is-object.js";var r={Cell:o,Row:t,TableComponent:e};export{r as Table};
@@ -9,6 +9,7 @@ type CellProps = {
9
9
  cellProps?: Omit<BaseProps, 'title' | 'subtitle'>;
10
10
  tableProps?: React.TdHTMLAttributes<any>;
11
11
  addon?: React.ReactNode;
12
+ children?: React.ReactNode;
12
13
  tag?: 'td' | 'div';
13
14
  };
14
15
  declare const TableCell: React.FC<CellProps>;
@@ -1 +1 @@
1
- import{a as t}from"../../../tslib.es6-5e5e4107.js";import e from"react";import o from"classnames";import{C as s}from"../../../component-b700782c.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-8fb4d894.js";import"../../../common.module-bc8e78fc.js";import"../../../typography/text/component.js";import"../../../typography/title-responsive/component.js";import"../../../cell/pure/component.js";var r="index-module_cell__SVZPV",i="index-module_children__X0572",m="index-module_is_div__XHlH-",p=function(p){var a,l=p.dataTestID,n=p.className,c=p.children,d=p.title,u=p.subtitle,j=p.tableProps,_=p.cellProps,y=p.addon,h=p.tag,b=void 0===h?"td":h;return e.createElement(b,t({"data-test-id":l,className:o(r,n,(a={},a[m]="div"===b,a))},j),c?e.createElement("div",{className:o(i)},c):e.createElement(s.Base,t({title:d||"-",subtitle:u,addon:y},_)))};export{p as TableCell};
1
+ import{a as t}from"../../../tslib.es6-444ada29.js";import e from"react";import o from"classnames";import{C as s}from"../../../component-20cb6564.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-fdef9b82.js";import"../../../common.module-05b45c43.js";import"../../../typography/text/component.js";import"../../../typography/title-responsive/component.js";import"../../../cell/pure/component.js";var r="index-module_cell__SVZPV",i="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.tag,b=void 0===h?"td":h;return e.createElement(b,t({"data-test-id":l,className:o(r,n,(p={},p[m]="div"===b,p))},j),d?e.createElement("div",{className:o(i)},d):e.createElement(s.Base,t({title:c||"-",subtitle:u,addon:y},_)))};export{a as TableCell};
@@ -1 +1 @@
1
- export{TableCell}from"./component.js";import"../../../tslib.es6-5e5e4107.js";import"react";import"classnames";import"../../../component-b700782c.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-8fb4d894.js";import"../../../common.module-bc8e78fc.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-444ada29.js";import"react";import"classnames";import"../../../component-20cb6564.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-fdef9b82.js";import"../../../common.module-05b45c43.js";import"../../../typography/text/component.js";import"../../../typography/title-responsive/component.js";import"../../../cell/pure/component.js";
@@ -1 +1 @@
1
- import{a as e}from"../../../tslib.es6-5e5e4107.js";import r from"react";import{ChevronForwardS as o}from"alpha-cli-icons";import t from"classnames";import{Typography as a}from"../../../typography/component.js";import{Row as n}from"../row/component.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../colors.module-8fb4d894.js";import"../../../common.module-bc8e78fc.js";import"../../../typography/text/component.js";import"../../../typography/title-responsive/component.js";var d={header_row:"index-module_header_row__-IYYq",head_cell:"index-module_head_cell__BKHWf",clickable:"index-module_clickable__uhIIg",head_wrapper:"index-module_head_wrapper__WjtNB",arrow:"index-module_arrow__svnkJ",accent:"index-module_accent__5Dn8Q",up:"index-module_up__IP8Eg",down:"index-module_down__8Moeu"},l=function(l){var i=l.headerGroups,m=l.addParam,s=l.params;return r.createElement(r.Fragment,null,i.map((function(l){return r.createElement(n,e({className:d.header_row},l.getHeaderGroupProps()),l.headers.map((function(n){var l,i;n.isSorted=(null==s?void 0:s.sort)===n.id,n.isSortedDesc="ASC"===(null==s?void 0:s.order);var c=!n.isSorted||n.isSortedDesc?"down":"up";return r.createElement("th",e({className:t(d.head_cell,(l={},l[d.clickable]=n.enableSort,l)),align:"left",onClick:function(){return function(e){return e.enableSort?(e.isSorted&&e.isSortedDesc?m({sort:void 0,order:void 0}):m({sort:e.id,order:e.isSorted?"ASC":"DESC"}),null):null}(n)}},n.getHeaderProps()),r.createElement(a.Text,{className:d.head_wrapper,tag:"div",view:"caps",color:"secondary",weight:"medium"},n.render("Header").toUpperCase(),n.enableSort&&r.createElement("span",{className:t(d.arrow,d[c],(i={},i[d.accent]=n.isSorted,i))},r.createElement(o,null))))})))})))};export{l as Cells};
1
+ import{a as e}from"../../../tslib.es6-444ada29.js";import r from"react";import{ChevronForwardS as o}from"alpha-cli-icons";import t from"classnames";import{Typography as a}from"../../../typography/component.js";import{Row as n}from"../row/component.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../colors.module-fdef9b82.js";import"../../../common.module-05b45c43.js";import"../../../typography/text/component.js";import"../../../typography/title-responsive/component.js";var d={header_row:"index-module_header_row__-IYYq",head_cell:"index-module_head_cell__BKHWf",clickable:"index-module_clickable__uhIIg",head_wrapper:"index-module_head_wrapper__WjtNB",arrow:"index-module_arrow__svnkJ",accent:"index-module_accent__5Dn8Q",up:"index-module_up__IP8Eg",down:"index-module_down__8Moeu"},l=function(l){var i=l.headerGroups,m=l.addParam,s=l.params;return r.createElement(r.Fragment,null,i.map((function(l){return r.createElement(n,e({className:d.header_row},l.getHeaderGroupProps()),l.headers.map((function(n){var l,i;n.isSorted=(null==s?void 0:s.sort)===n.id,n.isSortedDesc="ASC"===(null==s?void 0:s.order);var p=!n.isSorted||n.isSortedDesc?"down":"up";return r.createElement("th",e({className:t(d.head_cell,(l={},l[d.clickable]=n.enableSort,l)),align:"left",onClick:function(){return function(e){return e.enableSort?(e.isSorted&&e.isSortedDesc?m({sort:void 0,order:void 0}):m({sort:e.id,order:e.isSorted?"ASC":"DESC"}),null):null}(n)}},n.getHeaderProps()),r.createElement(a.Text,{className:d.head_wrapper,tag:"div",view:"caps",color:"secondary",weight:"medium"},n.render("Header").toUpperCase(),n.enableSort&&r.createElement("span",{className:t(d.arrow,d[p],(i={},i[d.accent]=n.isSorted,i))},r.createElement(o,null))))})))})))};export{l 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-5e5e4107.js";import"../../../typography/title/component.js";import"classnames";import"../../../colors.module-8fb4d894.js";import"../../../common.module-bc8e78fc.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-444ada29.js";import"../../../typography/title/component.js";import"classnames";import"../../../colors.module-fdef9b82.js";import"../../../common.module-05b45c43.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-5e5e4107.js";import"../../../typography/title/component.js";import"classnames";import"../../../colors.module-8fb4d894.js";import"../../../common.module-bc8e78fc.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 e}from"../../../typography/component.js";import{translate as o}from"../../languages/index.js";import"../../../typography/title/index.js";import"../../../tslib.es6-444ada29.js";import"../../../typography/title/component.js";import"classnames";import"../../../colors.module-fdef9b82.js";import"../../../common.module-05b45c43.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 +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-5e5e4107.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-8fb4d894.js";import"../../../common.module-bc8e78fc.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-444ada29.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-fdef9b82.js";import"../../../common.module-05b45c43.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{_ as e,a}from"../../../tslib.es6-5e5e4107.js";import r from"react";import t from"classnames";var s="index-module_row__Ub-Ap",l="index-module_clickable__rB-Ja",c=function(c){var i,o=c.children,m=c.onClick,n=c.dataTestID,d=c.className,_=e(c,["children","onClick","dataTestID","className"]);return r.createElement("tr",a({onClick:m},_,{"data-test-id":n,className:t(s,d,(i={},i[l]=!!m,i))}),o)};export{c as Row};
1
+ import{_ as a,a as e}from"../../../tslib.es6-444ada29.js";import r from"react";import t from"classnames";var s="index-module_row__Ub-Ap",l="index-module_clickable__rB-Ja",c=function(c){var i,o=c.children,m=c.onClick,n=c.dataTestID,d=c.className,_=a(c,["children","onClick","dataTestID","className"]);return r.createElement("tr",e({onClick:m},_,{"data-test-id":n,className:t(s,d,(i={},i[l]=!!m,i))}),o)};export{c as Row};
@@ -1 +1 @@
1
- export{Row}from"./component.js";import"../../../tslib.es6-5e5e4107.js";import"react";import"classnames";
1
+ export{Row}from"./component.js";import"../../../tslib.es6-444ada29.js";import"react";import"classnames";
@@ -1 +1 @@
1
- import{a as e}from"../../../tslib.es6-5e5e4107.js";import o from"react";import t from"classnames";import{EmptyList as r}from"../empty-list/index.js";import{Error as n}from"../error/index.js";import{Loading as m}from"../loading/index.js";import{Row as p}from"../row/component.js";import"../../../typography/component.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../colors.module-8fb4d894.js";import"../../../common.module-bc8e78fc.js";import"../../../typography/text/component.js";import"../../../typography/title-responsive/component.js";import"../../languages/index.js";import"../../../loader/component.js";var i={empty_list:"index-module_empty_list__EmSmG"},l=function(l){var a=l.onRowClick,s=l.prepareRow,c=l.rows,g=l.loading,d=l.error,u=l.language;return d?o.createElement(n,{language:u}):g?o.createElement(m,null):c.length?o.createElement(o.Fragment,null,c.map((function(r){var n;s(r);var m=r.getRowProps().key;return o.createElement(p,e({dataTestID:""+m,onClick:function(){a&&a({recordId:r.original.id})},className:t(i.table_row,(n={},n[i.clickable]=!!a,n))},r.getRowProps()),r.cells.map((function(e){return e.render("Cell",e.getCellProps())})))}))):o.createElement(r,{language:u})};export{l as Rows};
1
+ import{a as e}from"../../../tslib.es6-444ada29.js";import o from"react";import t from"classnames";import{EmptyList as r}from"../empty-list/index.js";import{Error as n}from"../error/index.js";import{Loading as m}from"../loading/index.js";import{Row as p}from"../row/component.js";import"../../../typography/component.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../colors.module-fdef9b82.js";import"../../../common.module-05b45c43.js";import"../../../typography/text/component.js";import"../../../typography/title-responsive/component.js";import"../../languages/index.js";import"../../../loader/component.js";var a={empty_list:"index-module_empty_list__EmSmG"},i=function(i){var l=i.onRowClick,s=i.prepareRow,c=i.rows,g=i.loading,d=i.error,u=i.language;return d?o.createElement(n,{language:u}):g?o.createElement(m,null):c.length?o.createElement(o.Fragment,null,c.map((function(r){var n;s(r);var m=r.getRowProps().key;return o.createElement(p,e({dataTestID:""+m,onClick:function(){l&&l({recordId:r.original.id})},className:t(a.table_row,(n={},n[a.clickable]=!!l,n))},r.getRowProps()),r.cells.map((function(e){return e.render("Cell",e.getCellProps())})))}))):o.createElement(r,{language:u})};export{i as Rows};
@@ -1 +1 @@
1
- import e from"react";import{PlusS as t,ControllerS as o}from"alpha-cli-icons";import{Button as a}from"../../../button/component.js";import{HeaderSearch as n}from"../../../header-search/component.js";import{translate as r}from"../../languages/index.js";import"../../../tslib.es6-5e5e4107.js";import"react-merge-refs";import"classnames";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var l="index-module_table_header__GXu4u",i="index-module_actions__GZKJC",s="index-module_tags__PpKzF",c="index-module_buttons__3CQYG",m=function(m){var d=m.tags,u=m.searchPlaceholder,p=void 0===u?"Type something..":u,h=m.searchText,x=m.addParam,_=m.onCreateClick,f=m.onDownloadClick,v=m.onFiltersClick,C=m.showFiltersButton,g=m.language;return e.createElement("div",{className:l},e.createElement("div",{className:i},e.createElement(n,{value:h,onChange:function(e){x({searchText:e||void 0,page:1})},placeholder:p,onClearClick:function(){return x({searchText:""})}}),e.createElement("div",{className:c},!!_&&e.createElement(a,{dataTestId:"createbtn",onClick:_,view:"primary",leftAddons:e.createElement(t,null),size:"xs"},r(g)("create")),!!f&&e.createElement(a,{view:"outlined",size:"xs",onClick:f},r(g)("export")),C&&e.createElement(a,{leftAddons:e.createElement(o,null),onClick:v,view:"outlined",size:"xs"},r(g)("filters")))),!!d.length&&e.createElement("div",{className:s},d))};export{m as TableHeader};
1
+ import e from"react";import{PlusS as t,ControllerS as a}from"alpha-cli-icons";import{Button as o}from"../../../button/component.js";import{HeaderSearch as n}from"../../../header-search/component.js";import{translate as r}from"../../languages/index.js";import"../../../tslib.es6-444ada29.js";import"react-merge-refs";import"classnames";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var l="index-module_table_header__GXu4u",i="index-module_actions__GZKJC",s="index-module_tags__PpKzF",c="index-module_buttons__3CQYG",m=function(m){var d=m.tags,u=m.searchPlaceholder,p=void 0===u?"Type something..":u,h=m.searchText,x=m.addParam,_=m.onCreateClick,f=m.onDownloadClick,v=m.onFiltersClick,C=m.showFiltersButton,g=m.language;return e.createElement("div",{className:l},e.createElement("div",{className:i},e.createElement(n,{value:h,onChange:function(e){x({searchText:e||void 0,page:1})},placeholder:p,onClearClick:function(){return x({searchText:""})}}),e.createElement("div",{className:c},!!_&&e.createElement(o,{dataTestId:"createbtn",onClick:_,view:"primary",leftAddons:e.createElement(t,null),size:"xs"},r(g)("create")),!!f&&e.createElement(o,{view:"outlined",size:"xs",onClick:f},r(g)("export")),C&&e.createElement(o,{leftAddons:e.createElement(a,null),onClick:v,view:"outlined",size:"xs"},r(g)("filters")))),!!d.length&&e.createElement("div",{className:s},d))};export{m as TableHeader};
@@ -1 +1 @@
1
- import{c as t,d as r}from"../../tslib.es6-5e5e4107.js";import{useState as e,useCallback as s,useEffect as a}from"react";import{getQueryFromUrl as n}from"../utils/get-query-from-url.js";import"../../parse-query-params-14e0c962.js";import"../../_commonjsHelpers-715a9038.js";function o(o){var i=this,u=e(!1),c=u[0],m=u[1],l=e(!1),p=l[0],f=l[1],d=e([]),h=d[0],j=d[1],g=e(0),v=g[0],y=g[1],b=e(1),q=b[0],P=b[1],w=e(),x=w[0],C=w[1],D=s((function(){return t(i,void 0,void 0,(function(){var t,e,s,a;return r(this,(function(r){switch(r.label){case 0:if(t=n(),C(t),!o)return[2];f(!1),m(!0),r.label=1;case 1:return r.trys.push([1,3,4,5]),[4,o(t)];case 2:return e=r.sent().data,s=e.items,a=e.meta,y(a.totalItems),P(a.totalPages),j(s),[3,5];case 3:return r.sent(),f(!0),[3,5];case 4:return m(!1),[7];case 5:return[2]}}))}))}),[o]);return a((function(){D()}),[]),{loading:c,error:p,asyncData:h,total:v,params:x,pagesCount:q,fetch:D,setParams:C}}export{o as useTableData};
1
+ import{c as t,d as r}from"../../tslib.es6-444ada29.js";import{useState as a,useCallback as e,useEffect as s}from"react";import{getQueryFromUrl as n}from"../utils/get-query-from-url.js";import"../../parse-query-params-46fb4ac1.js";import"../../_commonjsHelpers-2200265a.js";function o(o){var i=this,u=a(!1),c=u[0],m=u[1],f=a(!1),l=f[0],p=f[1],d=a([]),h=d[0],j=d[1],b=a(0),g=b[0],v=b[1],y=a(1),q=y[0],P=y[1],w=a(),x=w[0],C=w[1],D=e((function(){return t(i,void 0,void 0,(function(){var t,a,e,s;return r(this,(function(r){switch(r.label){case 0:if(t=n(),C(t),!o)return[2];p(!1),m(!0),r.label=1;case 1:return r.trys.push([1,3,4,5]),[4,o(t)];case 2:return a=r.sent().data,e=a.items,s=a.meta,v(s.totalItems),P(s.totalPages),j(e),[3,5];case 3:return r.sent(),p(!0),[3,5];case 4:return m(!1),[7];case 5:return[2]}}))}))}),[o]);return s((function(){D()}),[]),{loading:c,error:l,asyncData:h,total:g,params:x,pagesCount:q,fetch:D,setParams:C}}export{o as useTableData};
@@ -1 +1 @@
1
- export{Table}from"./component.js";export{TableCell}from"./components/cell/component.js";export{Row}from"./components/row/component.js";import"./table.js";import"../tslib.es6-5e5e4107.js";import"react";import"react-table";import"./components/cells/index.js";import"alpha-cli-icons";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-8fb4d894.js";import"../common.module-bc8e78fc.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"./components/pagination/index.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"./languages/index.js";import"./components/rows/index.js";import"./components/empty-list/index.js";import"./components/error/index.js";import"./components/loading/index.js";import"./components/table-header/index.js";import"../header-search/component.js";import"./hooks/use-table-data.js";import"./utils/get-query-from-url.js";import"../parse-query-params-14e0c962.js";import"../_commonjsHelpers-715a9038.js";import"./utils/add-query-param.js";import"./utils/set-query-to-url.js";import"./utils/get-tags.js";import"./utils/remove-query-param.js";import"./utils/reset-query-param.js";import"./utils/serialize-data.js";import"./utils/sort-array.js";import"./utils/is-object.js";import"../component-b700782c.js";import"../__internal/utils/getDataTestId.js";import"../cell/pure/component.js";
1
+ export{Table}from"./component.js";export{TableCell}from"./components/cell/component.js";export{Row}from"./components/row/component.js";import"./table.js";import"../tslib.es6-444ada29.js";import"react";import"react-table";import"./components/cells/index.js";import"alpha-cli-icons";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-fdef9b82.js";import"../common.module-05b45c43.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"./components/pagination/index.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"./languages/index.js";import"./components/rows/index.js";import"./components/empty-list/index.js";import"./components/error/index.js";import"./components/loading/index.js";import"./components/table-header/index.js";import"../header-search/component.js";import"./hooks/use-table-data.js";import"./utils/get-query-from-url.js";import"../parse-query-params-46fb4ac1.js";import"../_commonjsHelpers-2200265a.js";import"./utils/add-query-param.js";import"./utils/set-query-to-url.js";import"./utils/get-tags.js";import"./utils/remove-query-param.js";import"./utils/reset-query-param.js";import"./utils/serialize-data.js";import"./utils/sort-array.js";import"./utils/is-object.js";import"../component-20cb6564.js";import"../__internal/utils/getDataTestId.js";import"../cell/pure/component.js";
@@ -1 +1 @@
1
- import{a as e}from"../tslib.es6-5e5e4107.js";import o,{useState as t,useEffect as r}from"react";import{useTable as a}from"react-table";import{Cells as s}from"./components/cells/index.js";import{Pagination as i}from"./components/pagination/index.js";import{Rows as n}from"./components/rows/index.js";import{TableHeader as m}from"./components/table-header/index.js";import{useTableData as l}from"./hooks/use-table-data.js";import{addQueryParam as p}from"./utils/add-query-param.js";import{getTags as c}from"./utils/get-tags.js";import{removeQueryParam as d}from"./utils/remove-query-param.js";import{resetQueryParam as u}from"./utils/reset-query-param.js";import"../parse-query-params-14e0c962.js";import{serializeData as g}from"./utils/serialize-data.js";import"alpha-cli-icons";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-8fb4d894.js";import"../common.module-bc8e78fc.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"./components/row/component.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"./languages/index.js";import"./components/empty-list/index.js";import"./components/error/index.js";import"./components/loading/index.js";import"../header-search/component.js";import"./utils/get-query-from-url.js";import"./utils/set-query-to-url.js";import"../_commonjsHelpers-715a9038.js";import"./utils/sort-array.js";import"./utils/is-object.js";var j="index-module_table_wrapper__SeB5n",f="index-module_table__9sbda",h=function(h){var y=h.columns,b=h.searchPlaceholder,x=void 0===b?"Поиск по таблице":b,w=h.loadedData,C=h.tagsBuilder,k=h.promise,v=h.onRowClick,P=h.onCreateClick,E=h.onFiltersClick,_=h.onDownloadClick,q=h.language,B=l(k),D=B.loading,T=B.error,F=B.asyncData,R=B.total,G=B.params,N=B.pagesCount,S=B.fetch,z=t([]),H=z[0],V=z[1];r((function(){V([]),setTimeout((function(){V(w?g(w,G):F)}))}),[F,w,G]);var A=function(){return E?E({submitCallback:function(e){return u(e),void S()},initialValues:G}):null},I=function(e){p(e),S()},J=c({params:(null==G?void 0:G.where)||{},onDelete:function(e,o){d(e,o),S()},tagsBuilder:C,onClick:A}),K=a({columns:y,data:H}),L=K.getTableProps,M=K.getTableBodyProps,O=K.headerGroups,Q=K.rows,U=K.prepareRow;return o.createElement("div",{className:j},o.createElement(m,{language:q,searchText:(null==G?void 0:G.searchText)||"",addParam:I,searchPlaceholder:x,tags:J,onCreateClick:P,onDownloadClick:_,onFiltersClick:A,showFiltersButton:!!E}),o.createElement("div",{className:f},o.createElement("table",e({},L(),{cellSpacing:"0",cellPadding:"0",style:{width:"100%"}}),o.createElement("thead",null,o.createElement(s,{addParam:I,headerGroups:O,params:G})),o.createElement("tbody",e({},M()),o.createElement(n,{language:q,prepareRow:U,onRowClick:v,rows:Q,error:T,loading:D})))),!w&&o.createElement(i,{language:q,currentPage:G?+G.page:1,recordsPerPage:G?+G.limit:10,pagesCount:+N,addParam:I,total:+R}))};export{h as Table};
1
+ import{a as e}from"../tslib.es6-444ada29.js";import o,{useState as t,useEffect as r}from"react";import{useTable as a}from"react-table";import{Cells as s}from"./components/cells/index.js";import{Pagination as i}from"./components/pagination/index.js";import{Rows as n}from"./components/rows/index.js";import{TableHeader as m}from"./components/table-header/index.js";import{useTableData as l}from"./hooks/use-table-data.js";import{addQueryParam as p}from"./utils/add-query-param.js";import{getTags as c}from"./utils/get-tags.js";import{removeQueryParam as d}from"./utils/remove-query-param.js";import{resetQueryParam as u}from"./utils/reset-query-param.js";import"../parse-query-params-46fb4ac1.js";import{serializeData as g}from"./utils/serialize-data.js";import"alpha-cli-icons";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-fdef9b82.js";import"../common.module-05b45c43.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"./components/row/component.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"./languages/index.js";import"./components/empty-list/index.js";import"./components/error/index.js";import"./components/loading/index.js";import"../header-search/component.js";import"./utils/get-query-from-url.js";import"./utils/set-query-to-url.js";import"../_commonjsHelpers-2200265a.js";import"./utils/sort-array.js";import"./utils/is-object.js";var j="index-module_table_wrapper__SeB5n",f="index-module_table__9sbda",h=function(h){var y=h.columns,b=h.searchPlaceholder,x=void 0===b?"Поиск по таблице":b,w=h.loadedData,C=h.tagsBuilder,k=h.promise,v=h.onRowClick,P=h.onCreateClick,E=h.onFiltersClick,_=h.onDownloadClick,q=h.language,B=l(k),D=B.loading,T=B.error,F=B.asyncData,R=B.total,G=B.params,N=B.pagesCount,S=B.fetch,z=t([]),H=z[0],V=z[1];r((function(){V([]),setTimeout((function(){V(w?g(w,G):F)}))}),[F,w,G]);var A=function(){return E?E({submitCallback:function(e){return u(e),void S()},initialValues:G}):null},I=function(e){p(e),S()},J=c({params:(null==G?void 0:G.where)||{},onDelete:function(e,o){d(e,o),S()},tagsBuilder:C,onClick:A}),K=a({columns:y,data:H}),L=K.getTableProps,M=K.getTableBodyProps,O=K.headerGroups,Q=K.rows,U=K.prepareRow;return o.createElement("div",{className:j},o.createElement(m,{language:q,searchText:(null==G?void 0:G.searchText)||"",addParam:I,searchPlaceholder:x,tags:J,onCreateClick:P,onDownloadClick:_,onFiltersClick:A,showFiltersButton:!!E}),o.createElement("div",{className:f},o.createElement("table",e({},L(),{cellSpacing:"0",cellPadding:"0",style:{width:"100%"}}),o.createElement("thead",null,o.createElement(s,{addParam:I,headerGroups:O,params:G})),o.createElement("tbody",e({},M()),o.createElement(n,{language:q,prepareRow:U,onRowClick:v,rows:Q,error:T,loading:D})))),!w&&o.createElement(i,{language:q,currentPage:G?+G.page:1,recordsPerPage:G?+G.limit:10,pagesCount:+N,addParam:I,total:+R}))};export{h as Table};
@@ -1 +1 @@
1
- import{a as r}from"../../tslib.es6-5e5e4107.js";import{p as s,q as o}from"../../parse-query-params-14e0c962.js";import{setQueryToUrl as e}from"./set-query-to-url.js";import"../../_commonjsHelpers-715a9038.js";function m(m){var a=s();e(o(r(r({},a),m)))}export{m as addQueryParam};
1
+ import{a as r}from"../../tslib.es6-444ada29.js";import{p as s,q as a}from"../../parse-query-params-46fb4ac1.js";import{setQueryToUrl as o}from"./set-query-to-url.js";import"../../_commonjsHelpers-2200265a.js";function m(m){var p=s();o(a(r(r({},p),m)))}export{m as addQueryParam};
@@ -1 +1 @@
1
- import{_ as r}from"../../tslib.es6-5e5e4107.js";import{p as e}from"../../parse-query-params-14e0c962.js";import"../../_commonjsHelpers-715a9038.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-444ada29.js";import{p as e}from"../../parse-query-params-46fb4ac1.js";import"../../_commonjsHelpers-2200265a.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,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-14e0c962";
4
+ export * from "../../parse-query-params-46fb4ac1";
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-14e0c962.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-5e5e4107.js";import"../../_commonjsHelpers-715a9038.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-46fb4ac1.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-444ada29.js";import"../../_commonjsHelpers-2200265a.js";import"./sort-array.js";import"./is-object.js";
@@ -1 +1 @@
1
- export{p as parseQueryParams}from"../../parse-query-params-14e0c962.js";import"../../_commonjsHelpers-715a9038.js";
1
+ export{p as parseQueryParams}from"../../parse-query-params-46fb4ac1.js";import"../../_commonjsHelpers-2200265a.js";
@@ -1 +1 @@
1
- import{a as r}from"../../tslib.es6-5e5e4107.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
+ import{a as r}from"../../tslib.es6-444ada29.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,a){var i,s=a[0],d=a[1],c=e[o][s]||s;return r(((i={})[c]=d,i),t)}),{})}export{t as queryAdapter};
@@ -1 +1 @@
1
- import{p as r,q as e}from"../../parse-query-params-14e0c962.js";import{setQueryToUrl as o}from"./set-query-to-url.js";import"../../_commonjsHelpers-715a9038.js";function s(s,t){var a=r();Array.isArray(a[s])&&t?a[s]=a[s].filter((function(r){return r!==t})):delete a[s],o(e(a))}export{s as removeQueryParam};
1
+ import{p as r,q as e}from"../../parse-query-params-46fb4ac1.js";import{setQueryToUrl as o}from"./set-query-to-url.js";import"../../_commonjsHelpers-2200265a.js";function s(s,t){var a=r();Array.isArray(a[s])&&t?a[s]=a[s].filter((function(r){return r!==t})):delete a[s],o(e(a))}export{s as removeQueryParam};
@@ -1 +1 @@
1
- import{a as r}from"../../tslib.es6-5e5e4107.js";import{p as e,q as t}from"../../parse-query-params-14e0c962.js";import{setQueryToUrl as s}from"./set-query-to-url.js";import"../../_commonjsHelpers-715a9038.js";function o(o){var a=Object.fromEntries(Object.entries(o).filter((function(r){return""!==r[1]}))),i=e(),m=i.searchText,p=i.order,c=i.sort;s(t(r({limit:10,page:1,searchText:m,order:p,sort:c},a)))}export{o as resetQueryParam};
1
+ import{a as r}from"../../tslib.es6-444ada29.js";import{p as e,q as t}from"../../parse-query-params-46fb4ac1.js";import{setQueryToUrl as s}from"./set-query-to-url.js";import"../../_commonjsHelpers-2200265a.js";function o(o){var a=Object.fromEntries(Object.entries(o).filter((function(r){return""!==r[1]}))),i=e(),m=i.searchText,p=i.order,c=i.sort;s(t(r({limit:10,page:1,searchText:m,order:p,sort:c},a)))}export{o 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-5e5e4107.js";import"../typography/title/component.js";import"../colors.module-8fb4d894.js";import"../common.module-bc8e78fc.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-444ada29.js";import"../typography/title/component.js";import"../colors.module-fdef9b82.js";import"../common.module-05b45c43.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 +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-5e5e4107.js";import"../typography/title/component.js";import"../colors.module-8fb4d894.js";import"../common.module-bc8e78fc.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-444ada29.js";import"../typography/title/component.js";import"../colors.module-fdef9b82.js";import"../common.module-05b45c43.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-5e5e4107.js";import"../typography/title/component.js";import"../colors.module-8fb4d894.js";import"../common.module-bc8e78fc.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-444ada29.js";import"../typography/title/component.js";import"../colors.module-fdef9b82.js";import"../common.module-05b45c43.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 t.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)},t.createElement(i.Text,{className:r.text,view:"caps",weight:"medium",color:c},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-5e5e4107.js";import"../typography/title/component.js";import"../colors.module-8fb4d894.js";import"../common.module-bc8e78fc.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-444ada29.js";import"../typography/title/component.js";import"../colors.module-fdef9b82.js";import"../common.module-05b45c43.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-5e5e4107.js";import"../typography/title/component.js";import"../colors.module-8fb4d894.js";import"../common.module-bc8e78fc.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-444ada29.js";import"../typography/title/component.js";import"../colors.module-fdef9b82.js";import"../common.module-05b45c43.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 +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-5e5e4107.js";import"../typography/title/component.js";import"../colors.module-8fb4d894.js";import"../common.module-bc8e78fc.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-444ada29.js";import"../typography/title/component.js";import"../colors.module-fdef9b82.js";import"../common.module-05b45c43.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
@@ -1 +1 @@
1
- import{a as t}from"../tslib.es6-5e5e4107.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-306689e1.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-8fb4d894.js";import"../common.module-bc8e78fc.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,l=p.onChange,a=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)&&l(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)&&l(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];l(t(t({},c),((n={})[s]=null==m?void 0:m.toString(),n)))},required:!0,block:!0})}))),a&&e.createElement(i,{className:s,text:a,view:"negative"}))};export{p as TariffBuilder};
1
+ import{a as t}from"../tslib.es6-444ada29.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-5592775d.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-fdef9b82.js";import"../common.module-05b45c43.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-5e5e4107.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-8fb4d894.js";import"../common.module-bc8e78fc.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-306689e1.js";
1
+ export{TariffBuilder}from"./component.js";import"../tslib.es6-444ada29.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-fdef9b82.js";import"../common.module-05b45c43.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-5592775d.js";