@alphakits/ui 1.3.16 → 1.3.20

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 (255) hide show
  1. package/dist/{_commonjsHelpers-18912217.js → _commonjsHelpers-51fecfef.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/hooks/use-image-loading-state.js +1 -1
  9. package/dist/avatar/index.js +1 -1
  10. package/dist/button/component.js +1 -1
  11. package/dist/button/index.js +1 -1
  12. package/dist/calendar/component.js +1 -1
  13. package/dist/calendar/components/days-table/component.js +1 -1
  14. package/dist/calendar/components/days-table/index.js +1 -1
  15. package/dist/calendar/components/header/index.js +1 -1
  16. package/dist/calendar/components/header//321/201omponent.js +1 -1
  17. package/dist/calendar/components/months-table/index.js +1 -1
  18. package/dist/calendar/components/months-table//321/201omponent.js +1 -1
  19. package/dist/calendar/components/select-button/index.js +1 -1
  20. package/dist/calendar/components/select-button//321/201omponent.d.ts +1 -1
  21. package/dist/calendar/components/select-button//321/201omponent.js +1 -1
  22. package/dist/calendar/components/years-table/index.js +1 -1
  23. package/dist/calendar/components/years-table//321/201omponent.js +1 -1
  24. package/dist/calendar/index.js +1 -1
  25. package/dist/calendar-input/component.d.ts +1 -1
  26. package/dist/calendar-input/component.js +1 -1
  27. package/dist/calendar-input/index.js +1 -1
  28. package/dist/cell/action/component.js +1 -1
  29. package/dist/cell/action/index.d.ts +1 -1
  30. package/dist/cell/action/index.js +1 -1
  31. package/dist/cell/autopayment/component.js +1 -1
  32. package/dist/cell/autopayment/index.d.ts +1 -1
  33. package/dist/cell/autopayment/index.js +1 -1
  34. package/dist/cell/base/component.js +1 -1
  35. package/dist/cell/base/index.d.ts +1 -1
  36. package/dist/cell/base/index.js +1 -1
  37. package/dist/cell/catalog/component.js +1 -1
  38. package/dist/cell/catalog/index.d.ts +1 -1
  39. package/dist/cell/catalog/index.js +1 -1
  40. package/dist/cell/component.js +1 -1
  41. package/dist/cell/index.js +1 -1
  42. package/dist/cell/pure/component.d.ts +1 -1
  43. package/dist/cell/pure/component.js +1 -1
  44. package/dist/cell/pure/index.js +1 -1
  45. package/dist/cell/subscription/component.js +1 -1
  46. package/dist/cell/subscription/index.d.ts +1 -1
  47. package/dist/cell/subscription/index.js +1 -1
  48. package/dist/cell/transaction/component.js +1 -1
  49. package/dist/cell/transaction/index.js +1 -1
  50. package/dist/checkbox/component.d.ts +1 -1
  51. package/dist/checkbox/component.js +1 -1
  52. package/dist/checkbox/index.js +1 -1
  53. package/dist/checkbox-group/component.d.ts +11 -10
  54. package/dist/checkbox-group/component.js +1 -1
  55. package/dist/checkbox-group/index.js +1 -1
  56. package/dist/checkbox-lists/component.js +1 -1
  57. package/dist/checkbox-lists/index.js +1 -1
  58. package/dist/collapse/component.js +1 -1
  59. package/dist/collapse/index.js +1 -1
  60. package/dist/{colors.module-7abb0d2e.js → colors.module-cc121901.js} +0 -0
  61. package/dist/{common.module-9ffe08b5.js → common.module-d34bb3c5.js} +0 -0
  62. package/dist/{component-1db72f68.d.ts → component-fa2c94c0.d.ts} +0 -0
  63. package/dist/{component-1db72f68.js → component-fa2c94c0.js} +0 -0
  64. package/dist/{contact-block-d761832c.d.ts → contact-block-e5022060.d.ts} +0 -0
  65. package/dist/{contact-block-d761832c.js → contact-block-e5022060.js} +0 -0
  66. package/dist/copy-button/component.js +1 -1
  67. package/dist/copy-button/index.js +1 -1
  68. package/dist/date/component.js +1 -1
  69. package/dist/date/index.js +1 -1
  70. package/dist/date-switcher/component.js +1 -1
  71. package/dist/date-switcher/index.js +1 -1
  72. package/dist/footer/component.js +1 -1
  73. package/dist/footer/components/contacts-block.js +1 -1
  74. package/dist/footer/contact-block.js +1 -1
  75. package/dist/footer/index.js +1 -1
  76. package/dist/form/component.js +1 -1
  77. package/dist/form/components/form-footer/index.js +1 -1
  78. package/dist/form/components/index.js +1 -1
  79. package/dist/form/index.js +1 -1
  80. package/dist/form/templates/crud-form/index.js +1 -1
  81. package/dist/form/templates/filters-form/index.js +1 -1
  82. package/dist/form/templates/rest-form/index.js +1 -1
  83. package/dist/form/utils/get-default-values.js +1 -1
  84. package/dist/form-control/component.d.ts +1 -1
  85. package/dist/form-control/component.js +1 -1
  86. package/dist/form-control/index.js +1 -1
  87. package/dist/{formik.esm-8b39d123.js → formik.esm-10a4c7bf.js} +1 -1
  88. package/dist/grid/col/component.js +1 -1
  89. package/dist/grid/col/index.js +1 -1
  90. package/dist/grid/component.js +1 -1
  91. package/dist/grid/index.js +1 -1
  92. package/dist/grid/row/component.js +1 -1
  93. package/dist/grid/row/index.js +1 -1
  94. package/dist/{gutters.module-4f0646d2.js → gutters.module-6e22a1ed.js} +0 -0
  95. package/dist/heading/component.js +1 -1
  96. package/dist/heading/index.js +1 -1
  97. package/dist/hooks/index.js +1 -1
  98. package/dist/hooks/use-crud-form-requests/index.js +1 -1
  99. package/dist/hooks/use-get-ine/index.js +1 -1
  100. package/dist/icon-button/component.d.ts +1 -1
  101. package/dist/icon-button/component.js +1 -1
  102. package/dist/icon-button/index.js +1 -1
  103. package/dist/image/component.d.ts +9 -1
  104. package/dist/image/component.js +1 -1
  105. package/dist/image/index.js +1 -1
  106. package/dist/index.css +2 -2
  107. package/dist/index.ts +1 -0
  108. package/dist/info-block-header/component.js +1 -1
  109. package/dist/info-block-header/index.js +1 -1
  110. package/dist/info-block-item/component.js +1 -1
  111. package/dist/info-block-item/index.js +1 -1
  112. package/dist/input/component.d.ts +1 -1
  113. package/dist/input/component.js +1 -1
  114. package/dist/input/index.js +1 -1
  115. package/dist/link/component.js +1 -1
  116. package/dist/link/index.js +1 -1
  117. package/dist/list-allert/component.js +1 -1
  118. package/dist/list-allert/index.js +1 -1
  119. package/dist/masked-input/component.d.ts +1 -1
  120. package/dist/masked-input/component.js +1 -1
  121. package/dist/masked-input/index.js +1 -1
  122. package/dist/message/component.js +1 -1
  123. package/dist/message/index.js +1 -1
  124. package/dist/modal/components/modals/index.js +1 -1
  125. package/dist/modal/context.js +1 -1
  126. package/dist/modal/hooks/use-modal.js +1 -1
  127. package/dist/modal/index.js +1 -1
  128. package/dist/not-found/component.js +1 -1
  129. package/dist/not-found/index.js +1 -1
  130. package/dist/notification/component.js +1 -1
  131. package/dist/notification/index.js +1 -1
  132. package/dist/{parse-query-params-7fb9cc09.d.ts → parse-query-params-42783896.d.ts} +0 -0
  133. package/dist/{parse-query-params-7fb9cc09.js → parse-query-params-42783896.js} +1 -1
  134. package/dist/photo-uploader/component.js +1 -1
  135. package/dist/photo-uploader/index.js +1 -1
  136. package/dist/photo-uploader-multiple/component.js +1 -1
  137. package/dist/photo-uploader-multiple/index.js +1 -1
  138. package/dist/photos/attach/index.d.ts +7 -0
  139. package/dist/photos/attach/index.js +1 -0
  140. package/dist/photos/index.d.ts +2 -0
  141. package/dist/photos/index.js +1 -0
  142. package/dist/photos/photo/index.d.ts +11 -0
  143. package/dist/photos/photo/index.js +1 -0
  144. package/dist/photos/photos/index.d.ts +11 -0
  145. package/dist/photos/photos/index.js +1 -0
  146. package/dist/picker-button/component.d.ts +2 -2
  147. package/dist/picker-button/component.js +1 -1
  148. package/dist/picker-button/field/Component.js +1 -1
  149. package/dist/picker-button/field/index.js +1 -1
  150. package/dist/picker-button/index.js +1 -1
  151. package/dist/popover/component.js +1 -1
  152. package/dist/popover/index.js +1 -1
  153. package/dist/progress-bar/component.js +1 -1
  154. package/dist/progress-bar/index.js +1 -1
  155. package/dist/progress-index/component.js +1 -1
  156. package/dist/progress-index/index.js +1 -1
  157. package/dist/radio/component.d.ts +1 -1
  158. package/dist/radio/component.js +1 -1
  159. package/dist/radio/index.js +1 -1
  160. package/dist/radio-group/component.d.ts +8 -7
  161. package/dist/radio-group/component.js +1 -1
  162. package/dist/radio-group/index.js +1 -1
  163. package/dist/radio-groups/component.js +1 -1
  164. package/dist/radio-groups/index.js +1 -1
  165. package/dist/select/component.d.ts +2 -2
  166. package/dist/select/component.js +1 -1
  167. package/dist/select/components/base-select/component.js +1 -1
  168. package/dist/select/components/base-select/index.js +1 -1
  169. package/dist/select/components/field/component.js +1 -1
  170. package/dist/select/components/field/index.js +1 -1
  171. package/dist/select/components/index.js +1 -1
  172. package/dist/select/components/native-select/component.js +1 -1
  173. package/dist/select/components/native-select/index.js +1 -1
  174. package/dist/select/components/option/component.js +1 -1
  175. package/dist/select/components/option/index.js +1 -1
  176. package/dist/select/components/virtual-options-list/component.js +1 -1
  177. package/dist/select/components/virtual-options-list/index.js +1 -1
  178. package/dist/select/index.js +1 -1
  179. package/dist/select/presets/index.js +1 -1
  180. package/dist/select/presets/use-select-with-loading/hook.js +1 -1
  181. package/dist/sidepanel-header/component.js +1 -1
  182. package/dist/sidepanel-header/index.js +1 -1
  183. package/dist/space/Item.js +1 -1
  184. package/dist/space/component.js +1 -1
  185. package/dist/space/index.js +1 -1
  186. package/dist/suffix-input/component.d.ts +1 -1
  187. package/dist/suffix-input/component.js +1 -1
  188. package/dist/suffix-input/index.js +1 -1
  189. package/dist/super-ellipse-button/component.js +1 -1
  190. package/dist/super-ellipse-button/index.js +1 -1
  191. package/dist/super-list-header/component.js +1 -1
  192. package/dist/super-list-header/index.js +1 -1
  193. package/dist/super-list-item/component.js +1 -1
  194. package/dist/super-list-item/index.js +1 -1
  195. package/dist/switch/component.d.ts +1 -1
  196. package/dist/switch/component.js +1 -1
  197. package/dist/switch/index.js +1 -1
  198. package/dist/table/columns.js +1 -1
  199. package/dist/table/component.js +1 -1
  200. package/dist/table/components/cell/component.d.ts +2 -1
  201. package/dist/table/components/cell/component.js +1 -1
  202. package/dist/table/components/cell/index.js +1 -1
  203. package/dist/table/components/cells/index.js +1 -1
  204. package/dist/table/components/empty-list/index.js +1 -1
  205. package/dist/table/components/error/index.js +1 -1
  206. package/dist/table/components/pagination/index.js +1 -1
  207. package/dist/table/components/row/component.js +1 -1
  208. package/dist/table/components/row/index.js +1 -1
  209. package/dist/table/components/rows/index.js +1 -1
  210. package/dist/table/components/table-header/index.d.ts +1 -0
  211. package/dist/table/components/table-header/index.js +1 -1
  212. package/dist/table/hooks/use-table-data.js +1 -1
  213. package/dist/table/index.js +1 -1
  214. package/dist/table/table.js +1 -1
  215. package/dist/table/utils/add-query-param.js +1 -1
  216. package/dist/table/utils/get-query-from-url.js +1 -1
  217. package/dist/table/utils/index.d.ts +1 -1
  218. package/dist/table/utils/index.js +1 -1
  219. package/dist/table/utils/parse-query-params.js +1 -1
  220. package/dist/table/utils/query-adapter.js +1 -1
  221. package/dist/table/utils/remove-query-param.js +1 -1
  222. package/dist/table/utils/reset-query-param.js +1 -1
  223. package/dist/table/utils/serialize-data.js +1 -1
  224. package/dist/table-status/component.js +1 -1
  225. package/dist/table-status/index.js +1 -1
  226. package/dist/tag/component.js +1 -1
  227. package/dist/tag/index.js +1 -1
  228. package/dist/tags-list/component.js +1 -1
  229. package/dist/tags-list/index.js +1 -1
  230. package/dist/tariff-builder/component.js +1 -1
  231. package/dist/tariff-builder/index.js +1 -1
  232. package/dist/textarea/component.d.ts +1 -1
  233. package/dist/textarea/component.js +1 -1
  234. package/dist/textarea/index.js +1 -1
  235. package/dist/toast/component.js +1 -1
  236. package/dist/toast/index.js +1 -1
  237. package/dist/toast-notifier/component.js +1 -1
  238. package/dist/toast-notifier/index.js +1 -1
  239. package/dist/toast-plate/component.js +1 -1
  240. package/dist/toast-plate/index.js +1 -1
  241. package/dist/tooltip/component.js +1 -1
  242. package/dist/tooltip/index.js +1 -1
  243. package/dist/{tslib.es6-9da6a11b.js → tslib.es6-5f92d514.js} +0 -0
  244. package/dist/typography/component.js +1 -1
  245. package/dist/typography/index.js +1 -1
  246. package/dist/typography/text/component.js +1 -1
  247. package/dist/typography/text/index.js +1 -1
  248. package/dist/typography/title/component.js +1 -1
  249. package/dist/typography/title/index.js +1 -1
  250. package/dist/typography/title-responsive/component.js +1 -1
  251. package/dist/typography/title-responsive/index.js +1 -1
  252. package/dist/with-suffix/component.d.ts +1 -1
  253. package/dist/with-suffix/component.js +1 -1
  254. package/dist/with-suffix/index.js +1 -1
  255. package/package.json +1 -1
@@ -1 +1 @@
1
- export{Heading}from"./component.js";import"../tslib.es6-9da6a11b.js";import"classnames";import"ts-keycode-enum";import"react";
1
+ export{Heading}from"./component.js";import"../tslib.es6-5f92d514.js";import"classnames";import"ts-keycode-enum";import"react";
@@ -1 +1 @@
1
- export{useClickOutside}from"./useClickOutside/index.js";export{useFocus}from"./useFocus/index.js";export{usePrevious}from"./usePrevious/index.js";export{useCrudFormRequests}from"./use-crud-form-requests/index.js";export{useGetOne}from"./use-get-ine/index.js";import"react";import"../tslib.es6-9da6a11b.js";import"../toast-notifier/component.js";import"react-dom";import"classnames";import"../toast-plate/component.js";import"alpha-cli-icons";import"../button/component.js";import"react-merge-refs";import"../loader/component.js";import"../toast-notifier/use-timer.js";import"axios";
1
+ export{useClickOutside}from"./useClickOutside/index.js";export{useFocus}from"./useFocus/index.js";export{usePrevious}from"./usePrevious/index.js";export{useCrudFormRequests}from"./use-crud-form-requests/index.js";export{useGetOne}from"./use-get-ine/index.js";import"react";import"../tslib.es6-5f92d514.js";import"axios";import"../toast-notifier/component.js";import"react-dom";import"classnames";import"../toast-plate/component.js";import"alpha-cli-icons";import"../button/component.js";import"react-merge-refs";import"../loader/component.js";import"../toast-notifier/use-timer.js";
@@ -1 +1 @@
1
- import{c as t,d as e}from"../../tslib.es6-9da6a11b.js";import{useState as o}from"react";import{ToastNotifier as i}from"../../toast-notifier/component.js";import r from"axios";import"react-dom";import"classnames";import"../../toast-plate/component.js";import"alpha-cli-icons";import"../../button/component.js";import"react-merge-refs";import"../useFocus/index.js";import"../../loader/component.js";import"../../toast-notifier/use-timer.js";var s=function(s){var a=s.recordId,n=s.saveRequest,c=s.removeRequest,u=s.saveCallback,m=s.removeCallback,v=s.close,d=void 0===v?function(){}:v,f=o(!1),p=f[0],l=f[1],h=o(!1),j=h[0],x=h[1],g=function(t){var e;l(!1),x(!1);var o=r.isAxiosError(t)?null===(e=t.response)||void 0===e?void 0:e.data.message:t.message;i({dataTestId:"toastNotifierError",title:"Error",offset:32,view:"negative",text:o})};return{save:function(o){return t(void 0,void 0,void 0,(function(){var t;return e(this,(function(e){return l(!0),t={data:o},a&&(t.id=a),n(t).then((function(t){var e=t.data;l(!1),d(),null==u||u(e),i({dataTestId:"toastNotifierSuccessSave",title:"Success",offset:32,view:"positive",text:"Данные успешно сохранены"})})).catch(g),[2]}))}))},remove:function(){return t(void 0,void 0,void 0,(function(){return e(this,(function(t){return a&&c?(x(!0),c(a).then((function(t){var e=t.data;x(!1),d(),null==m||m(e),i({dataTestId:"toastNotifierSuccessDelete",title:"Success",offset:32,view:"positive",text:"Данные удалены"})})).catch(g),[2]):[2]}))}))},removing:j,updating:p}};export{s as useCrudFormRequests};
1
+ import{c as t,d as e}from"../../tslib.es6-5f92d514.js";import{useState as o}from"react";import i from"axios";import{ToastNotifier as r}from"../../toast-notifier/component.js";import"react-dom";import"classnames";import"../../toast-plate/component.js";import"alpha-cli-icons";import"../../button/component.js";import"react-merge-refs";import"../useFocus/index.js";import"../../loader/component.js";import"../../toast-notifier/use-timer.js";var s=function(s){var a=s.recordId,n=s.saveRequest,c=s.removeRequest,m=s.saveCallback,u=s.removeCallback,v=s.close,d=void 0===v?function(){}:v,f=o(!1),p=f[0],l=f[1],h=o(!1),j=h[0],x=h[1],g=function(t){var e;l(!1),x(!1);var o=i.isAxiosError(t)?null===(e=t.response)||void 0===e?void 0:e.data.message:t.message;r({dataTestId:"toastNotifierError",title:"Error",offset:32,view:"negative",text:o})};return{save:function(o){return t(void 0,void 0,void 0,(function(){var t;return e(this,(function(e){return l(!0),t={data:o},a&&(t.id=a),n(t).then((function(t){var e=t.data;l(!1),d(),null==m||m(e),r({dataTestId:"toastNotifierSuccessSave",title:"Успех",offset:32,view:"positive",text:"Данные успешно сохранены"})})).catch(g),[2]}))}))},remove:function(){return t(void 0,void 0,void 0,(function(){return e(this,(function(t){return a&&c?(x(!0),c(a).then((function(t){var e=t.data;x(!1),d(),null==u||u(e),r({dataTestId:"toastNotifierSuccessDelete",title:"Успех",offset:32,view:"positive",text:"Данные удалены"})})).catch(g),[2]):[2]}))}))},removing:j,updating:p}};export{s as useCrudFormRequests};
@@ -1 +1 @@
1
- import{c as t,d as o}from"../../tslib.es6-9da6a11b.js";import{useState as r,useEffect as e}from"react";import{ToastNotifier as s}from"../../toast-notifier/component.js";import i from"axios";import"react-dom";import"classnames";import"../../toast-plate/component.js";import"alpha-cli-icons";import"../../button/component.js";import"react-merge-refs";import"../useFocus/index.js";import"../../loader/component.js";import"../../toast-notifier/use-timer.js";var a=function(a,n){var m=r(!1),c=m[0],p=m[1],d=r({}),u=d[0],f=d[1];return e((function(){a&&t(void 0,void 0,void 0,(function(){var t,r,e,m;return o(this,(function(o){switch(o.label){case 0:p(!0),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,n(a)];case 2:return t=o.sent().data,f(t),p(!1),[3,4];case 3:return r=o.sent(),e=i.isAxiosError(r)?null===(m=r.response)||void 0===m?void 0:m.data.message:r,s({dataTestId:"toastNotifierError",title:"Error",offset:32,view:"negative",text:e}),[3,4];case 4:return[2]}}))}))}),[]),{record:u,loading:c}};export{a as useGetOne};
1
+ import{c as t,d as o}from"../../tslib.es6-5f92d514.js";import{useState as r,useEffect as e}from"react";import s from"axios";import{ToastNotifier as i}from"../../toast-notifier/component.js";import"react-dom";import"classnames";import"../../toast-plate/component.js";import"alpha-cli-icons";import"../../button/component.js";import"react-merge-refs";import"../useFocus/index.js";import"../../loader/component.js";import"../../toast-notifier/use-timer.js";var a=function(a,n){var m=r(!1),c=m[0],p=m[1],d=r({}),u=d[0],f=d[1];return e((function(){a&&t(void 0,void 0,void 0,(function(){var t,r,e,m;return o(this,(function(o){switch(o.label){case 0:p(!0),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,n(a)];case 2:return t=o.sent().data,f(t),p(!1),[3,4];case 3:return r=o.sent(),e=s.isAxiosError(r)?null===(m=r.response)||void 0===m?void 0:m.data.message:r,i({dataTestId:"toastNotifierError",title:"Error",offset:32,view:"negative",text:e}),[3,4];case 4:return[2]}}))}))}),[]),{record:u,loading:c}};export{a as useGetOne};
@@ -20,5 +20,5 @@ declare const IconButton: React.ForwardRefExoticComponent<{
20
20
  className?: string | undefined;
21
21
  dataTestId?: string | undefined;
22
22
  loading?: boolean | undefined;
23
- } & Pick<React.ButtonHTMLAttributes<HTMLButtonElement>, "disabled" | "color" | "className" | "children" | "form" | "slot" | "style" | "title" | "value" | "type" | "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" | "onChange" | "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" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name"> & React.RefAttributes<HTMLButtonElement>>;
23
+ } & Pick<React.ButtonHTMLAttributes<HTMLButtonElement>, "disabled" | "color" | "className" | "children" | "form" | "slot" | "style" | "title" | "value" | "id" | "type" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "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" | "onChange" | "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" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name"> & React.RefAttributes<HTMLButtonElement>>;
24
24
  export { IconButtonProps, IconButton };
@@ -1 +1 @@
1
- import{_ as e,a as o}from"../tslib.es6-9da6a11b.js";import s,{forwardRef as i}from"react";import a from"classnames";import{Button as n}from"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";var r={ghost:"index-module_ghost__3nxH9",secondary:"index-module_secondary__3RrCZ",s:"index-module_s__1deSC",m:"index-module_m__SpDQj",l:"index-module_l__1WjS2",iconWrapper:"index-module_iconWrapper__2YDRR",icon:"index-module_icon__1gs33"},m=i((function(i,m){var d,t=i.className,c=i.icon,l=i.view,_=void 0===l?"ghost":l,p=i.size,u=void 0===p?"s":p,x=e(i,["className","icon","view","size"]),f=x.disabled,g=x.loading;return s.createElement(n,o({},x,{ref:m,view:"ghost",loading:g,className:a(t,r[_],(d={},d[r.disabled]=f,d)),size:"s",leftAddons:s.createElement("span",{className:a(r.iconWrapper,r[u])},s.createElement(c,{className:r.icon}))}))}));export{m as IconButton};
1
+ import{_ as e,a as o}from"../tslib.es6-5f92d514.js";import s,{forwardRef as i}from"react";import n from"classnames";import{Button as r}from"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";var a={ghost:"index-module_ghost__3nxH9",secondary:"index-module_secondary__3RrCZ",s:"index-module_s__1deSC",m:"index-module_m__SpDQj",l:"index-module_l__1WjS2",iconWrapper:"index-module_iconWrapper__2YDRR",icon:"index-module_icon__1gs33"},m=i((function(i,m){var d,t=i.className,c=i.icon,l=i.view,_=void 0===l?"ghost":l,p=i.size,u=void 0===p?"s":p,x=e(i,["className","icon","view","size"]),f=x.disabled,g=x.loading;return s.createElement(r,o({},x,{ref:m,view:"ghost",loading:g,className:n(t,a[_],(d={},d[a.disabled]=f,d)),size:"s",leftAddons:s.createElement("span",{className:n(a.iconWrapper,a[u])},s.createElement(c,{className:a.icon}))}))}));export{m as IconButton};
@@ -1 +1 @@
1
- export{IconButton}from"./component.js";import"../tslib.es6-9da6a11b.js";import"react";import"classnames";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";
1
+ export{IconButton}from"./component.js";import"../tslib.es6-5f92d514.js";import"react";import"classnames";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";
@@ -1,11 +1,19 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
+ declare enum ImageSizes {
4
+ xs = "_100x100",
5
+ s = "_200x200",
6
+ m = "_640x430",
7
+ l = "_1200x800",
8
+ xl = "_2400x1600"
9
+ }
3
10
  type ImageProps = {
4
11
  className?: string;
5
12
  src: string;
6
13
  alt?: string;
7
14
  onRemoveClick?: () => void;
8
15
  dataTestId?: string;
16
+ size?: ImageSizes;
9
17
  };
10
18
  declare const Image: React.FC<ImageProps>;
11
- export { ImageProps, Image };
19
+ export { ImageSizes, ImageProps, Image };
@@ -1 +1 @@
1
- import e from"react";import{PhotoM as o,TrashM as t}from"alpha-cli-icons";import m from"classnames";import{useImageLoadingState as r}from"../avatar/hooks/use-image-loading-state.js";import{IconButton as n}from"../icon-button/component.js";import{Spinner as i}from"../spinner/component.js";import{Typography as a}from"../typography/component.js";import"../tslib.es6-9da6a11b.js";import"../button/component.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-7abb0d2e.js";import"../common.module-9ffe08b5.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var s="index-module_component__2SAxI",p="index-module_removeButton__3gIeM",c="index-module_image__ZF1Gv",l=function(l){var d=l.className,g=l.dataTestId,u=l.src,j=l.alt,v=l.onRemoveClick,f=null,y=r({src:u}),h=u&&"loaded"===y;return console.log(y),h?f=e.createElement("img",{className:c,src:u,alt:j}):"loading"===y?f=e.createElement(i,{size:"m",view:"dark"}):"error"===y&&(f=e.createElement(a.Text,{color:"negative",view:"component",weight:"bold"},e.createElement(o,null))),e.createElement("div",{className:m(s,d),"data-test-id":g},f,!!v&&e.createElement(n,{className:p,onClick:v,icon:t,size:"m",view:"secondary"}))};export{l as Image};
1
+ import e from"react";import{PhotoM as o,TrashM as t}from"alpha-cli-icons";import r from"classnames";import{useImageLoadingState as m}from"../avatar/hooks/use-image-loading-state.js";import{IconButton as n}from"../icon-button/component.js";import{Spinner as i}from"../spinner/component.js";import{Typography as s}from"../typography/component.js";import"../tslib.es6-5f92d514.js";import"../button/component.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-cc121901.js";import"../common.module-d34bb3c5.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var a,c="index-module_component__2SAxI",p="index-module_removeButton__3gIeM",l="index-module_image__ZF1Gv";!function(e){e.xs="_100x100",e.s="_200x200",e.m="_640x430",e.l="_1200x800",e.xl="_2400x1600"}(a||(a={}));var d=function(a){var d=a.className,u=a.dataTestId,x=a.src,g=a.alt,_=a.onRemoveClick,j=null,v=function(e,o){return o&&e.includes("_1200x800")?e.replace(new RegExp("_1200x800","g"),o):e}(x,a.size),f=m({src:v});return v&&"loaded"===f?j=e.createElement("img",{className:l,src:v,alt:g}):"loading"===f?j=e.createElement(i,{size:"m",view:"dark"}):"error"===f&&(j=e.createElement(s.Text,{color:"negative",view:"component",weight:"bold"},e.createElement(o,null))),e.createElement("div",{className:r(c,d),"data-test-id":u},j,!!_&&e.createElement(n,{className:p,onClick:_,icon:t,size:"m",view:"secondary"}))};export{d as Image,a as ImageSizes};
@@ -1 +1 @@
1
- export{Image}from"./component.js";import"react";import"alpha-cli-icons";import"classnames";import"../avatar/hooks/use-image-loading-state.js";import"../icon-button/component.js";import"../tslib.es6-9da6a11b.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../spinner/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-7abb0d2e.js";import"../common.module-9ffe08b5.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
1
+ export{Image,ImageSizes}from"./component.js";import"react";import"alpha-cli-icons";import"classnames";import"../avatar/hooks/use-image-loading-state.js";import"../icon-button/component.js";import"../tslib.es6-5f92d514.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../spinner/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-cc121901.js";import"../common.module-d34bb3c5.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";