@alphakits/ui 1.5.0 → 1.5.4

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 (256) hide show
  1. package/dist/{_commonjsHelpers-3e170942.js → _commonjsHelpers-4340b4a7.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/button/component.js +1 -1
  10. package/dist/button/index.js +1 -1
  11. package/dist/calendar/component.js +1 -1
  12. package/dist/calendar/components/days-table/component.js +1 -1
  13. package/dist/calendar/components/days-table/index.js +1 -1
  14. package/dist/calendar/components/header/index.js +1 -1
  15. package/dist/calendar/components/header//321/201omponent.js +1 -1
  16. package/dist/calendar/components/months-table/index.js +1 -1
  17. package/dist/calendar/components/months-table//321/201omponent.js +1 -1
  18. package/dist/calendar/components/select-button/index.js +1 -1
  19. package/dist/calendar/components/select-button//321/201omponent.js +1 -1
  20. package/dist/calendar/components/years-table/index.js +1 -1
  21. package/dist/calendar/components/years-table//321/201omponent.js +1 -1
  22. package/dist/calendar/index.js +1 -1
  23. package/dist/calendar/use-calendar.d.ts +4 -4
  24. package/dist/calendar-input/component.d.ts +4 -4
  25. package/dist/calendar-input/component.js +1 -1
  26. package/dist/calendar-input/index.js +1 -1
  27. package/dist/calendar-input/utils.d.ts +1 -1
  28. package/dist/cell/base/component.js +1 -1
  29. package/dist/cell/base/index.d.ts +1 -1
  30. package/dist/cell/base/index.js +1 -1
  31. package/dist/cell/component.js +1 -1
  32. package/dist/cell/index.js +1 -1
  33. package/dist/cell/pure/component.d.ts +1 -1
  34. package/dist/cell/pure/component.js +1 -1
  35. package/dist/cell/pure/index.js +1 -1
  36. package/dist/checkbox/component.d.ts +5 -5
  37. package/dist/checkbox/component.js +1 -1
  38. package/dist/checkbox/index.js +1 -1
  39. package/dist/checkbox-group/component.js +1 -1
  40. package/dist/checkbox-group/index.js +1 -1
  41. package/dist/checkbox-lists/component.js +1 -1
  42. package/dist/checkbox-lists/index.js +1 -1
  43. package/dist/collapse/component.js +1 -1
  44. package/dist/collapse/index.js +1 -1
  45. package/dist/{colors.module-ad73c09a.js → colors.module-d13bf105.js} +0 -0
  46. package/dist/{common.module-10ade317.js → common.module-aec9173c.js} +0 -0
  47. package/dist/{component-9ce2c0ee.d.ts → component-4b977b72.d.ts} +0 -0
  48. package/dist/{component-9ce2c0ee.js → component-4b977b72.js} +0 -0
  49. package/dist/{contact-block-cce152f7.d.ts → contact-block-42197b51.d.ts} +0 -0
  50. package/dist/{contact-block-cce152f7.js → contact-block-42197b51.js} +0 -0
  51. package/dist/copy-button/component.js +1 -1
  52. package/dist/copy-button/index.js +1 -1
  53. package/dist/date/component.d.ts +1 -1
  54. package/dist/date/component.js +1 -1
  55. package/dist/date/index.js +1 -1
  56. package/dist/date-switcher/component.js +1 -1
  57. package/dist/date-switcher/index.js +1 -1
  58. package/dist/footer/component.js +1 -1
  59. package/dist/footer/components/contacts-block.js +1 -1
  60. package/dist/footer/contact-block.js +1 -1
  61. package/dist/footer/index.js +1 -1
  62. package/dist/form/component.js +1 -1
  63. package/dist/form/components/form-footer/index.js +1 -1
  64. package/dist/form/components/form-loading/index.d.ts +2 -1
  65. package/dist/form/components/form-updating/index.d.ts +4 -0
  66. package/dist/form/components/form-updating/index.js +1 -0
  67. package/dist/form/components/form-wrapper/index.d.ts +2 -3
  68. package/dist/form/components/form-wrapper/index.js +1 -1
  69. package/dist/form/components/index.d.ts +4 -0
  70. package/dist/form/components/index.js +1 -1
  71. package/dist/form/index.js +1 -1
  72. package/dist/form/templates/crud-form/index.js +1 -1
  73. package/dist/form/templates/filters-form/index.js +1 -1
  74. package/dist/form/templates/rest-form/index.d.ts +6 -4
  75. package/dist/form/templates/rest-form/index.js +1 -1
  76. package/dist/form/utils/get-default-values.js +1 -1
  77. package/dist/form/utils/remove-undefined-from-object.d.ts +2 -1
  78. package/dist/form-control/component.d.ts +5 -5
  79. package/dist/form-control/component.js +1 -1
  80. package/dist/form-control/index.js +1 -1
  81. package/dist/{formik.esm-9b402931.js → formik.esm-8b3ab085.js} +1 -1
  82. package/dist/grid/col/component.js +1 -1
  83. package/dist/grid/col/index.js +1 -1
  84. package/dist/grid/component.js +1 -1
  85. package/dist/grid/index.js +1 -1
  86. package/dist/grid/row/component.js +1 -1
  87. package/dist/grid/row/index.js +1 -1
  88. package/dist/{gutters.module-557bd949.js → gutters.module-0d9f12a4.js} +0 -0
  89. package/dist/heading/component.js +1 -1
  90. package/dist/heading/index.js +1 -1
  91. package/dist/hooks/index.d.ts +1 -1
  92. package/dist/hooks/index.js +1 -1
  93. package/dist/hooks/use-crud-form-requests/index.d.ts +1 -0
  94. package/dist/hooks/use-crud-form-requests/index.js +1 -1
  95. package/dist/hooks/{use-get-ine → use-get-one}/index.d.ts +2 -0
  96. package/dist/hooks/use-get-one/index.js +1 -0
  97. package/dist/icon-button/component.d.ts +3 -3
  98. package/dist/icon-button/component.js +1 -1
  99. package/dist/icon-button/index.js +1 -1
  100. package/dist/image/component.js +1 -1
  101. package/dist/image/index.js +1 -1
  102. package/dist/image/use-image-render-component.js +1 -1
  103. package/dist/index.css +1 -1
  104. package/dist/info-block-header/component.js +1 -1
  105. package/dist/info-block-header/index.js +1 -1
  106. package/dist/info-block-item/component.js +1 -1
  107. package/dist/info-block-item/index.js +1 -1
  108. package/dist/input/component.d.ts +6 -6
  109. package/dist/input/component.js +1 -1
  110. package/dist/input/index.js +1 -1
  111. package/dist/{intersection-observer-ce86058b.js → intersection-observer-2e33f8a0.js} +0 -0
  112. package/dist/link/component.d.ts +2 -2
  113. package/dist/link/component.js +1 -1
  114. package/dist/link/index.js +1 -1
  115. package/dist/list-allert/component.js +1 -1
  116. package/dist/list-allert/index.js +1 -1
  117. package/dist/masked-input/component.d.ts +6 -3
  118. package/dist/masked-input/component.js +1 -1
  119. package/dist/masked-input/index.js +1 -1
  120. package/dist/message/component.d.ts +1 -0
  121. package/dist/message/component.js +1 -1
  122. package/dist/message/index.js +1 -1
  123. package/dist/modal/components/modals/index.js +1 -1
  124. package/dist/modal/context.js +1 -1
  125. package/dist/modal/hooks/use-modal.d.ts +2 -2
  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-d519bf2a.d.ts → parse-query-params-e280bcaf.d.ts} +0 -0
  133. package/dist/{parse-query-params-d519bf2a.js → parse-query-params-e280bcaf.js} +1 -1
  134. package/dist/picker-button/component.d.ts +1 -1
  135. package/dist/picker-button/component.js +1 -1
  136. package/dist/picker-button/field/Component.js +1 -1
  137. package/dist/picker-button/field/index.js +1 -1
  138. package/dist/picker-button/index.js +1 -1
  139. package/dist/popover/component.js +1 -1
  140. package/dist/popover/index.js +1 -1
  141. package/dist/progress-bar/component.js +1 -1
  142. package/dist/progress-bar/index.js +1 -1
  143. package/dist/progress-index/component.js +1 -1
  144. package/dist/progress-index/index.js +1 -1
  145. package/dist/radio/component.d.ts +5 -5
  146. package/dist/radio/component.js +1 -1
  147. package/dist/radio/index.js +1 -1
  148. package/dist/radio-group/component.js +1 -1
  149. package/dist/radio-group/index.js +1 -1
  150. package/dist/radio-groups/component.js +1 -1
  151. package/dist/radio-groups/index.js +1 -1
  152. package/dist/select/component.d.ts +1 -1
  153. package/dist/select/component.js +1 -1
  154. package/dist/select/components/base-select/component.js +1 -1
  155. package/dist/select/components/base-select/index.js +1 -1
  156. package/dist/select/components/field/component.d.ts +21 -2
  157. package/dist/select/components/field/component.js +1 -1
  158. package/dist/select/components/field/index.js +1 -1
  159. package/dist/select/components/index.js +1 -1
  160. package/dist/select/components/native-select/component.d.ts +1 -1
  161. package/dist/select/components/native-select/component.js +1 -1
  162. package/dist/select/components/native-select/index.js +1 -1
  163. package/dist/select/components/option/component.js +1 -1
  164. package/dist/select/components/option/index.js +1 -1
  165. package/dist/select/components/virtual-options-list/component.js +1 -1
  166. package/dist/select/components/virtual-options-list/index.js +1 -1
  167. package/dist/select/index.js +1 -1
  168. package/dist/select/presets/index.js +1 -1
  169. package/dist/select/presets/use-lazy-loading/index.d.ts +1 -1
  170. package/dist/select/presets/use-lazy-loading/index.js +1 -1
  171. package/dist/select/presets/use-select-with-loading/hook.js +1 -1
  172. package/dist/select/utils.d.ts +1 -1
  173. package/dist/sidepanel-header/component.js +1 -1
  174. package/dist/sidepanel-header/index.js +1 -1
  175. package/dist/space/Item.js +1 -1
  176. package/dist/space/component.js +1 -1
  177. package/dist/space/index.js +1 -1
  178. package/dist/suffix-input/component.d.ts +1 -1
  179. package/dist/suffix-input/component.js +1 -1
  180. package/dist/suffix-input/index.js +1 -1
  181. package/dist/super-list-header/component.js +1 -1
  182. package/dist/super-list-header/index.js +1 -1
  183. package/dist/super-list-item/component.js +1 -1
  184. package/dist/super-list-item/index.js +1 -1
  185. package/dist/switch/component.d.ts +5 -5
  186. package/dist/switch/component.js +1 -1
  187. package/dist/switch/index.js +1 -1
  188. package/dist/table/columns.js +1 -1
  189. package/dist/table/component.js +1 -1
  190. package/dist/table/components/cell/component.js +1 -1
  191. package/dist/table/components/cell/index.js +1 -1
  192. package/dist/table/components/cells/index.js +1 -1
  193. package/dist/table/components/empty-list/index.d.ts +1 -1
  194. package/dist/table/components/empty-list/index.js +1 -1
  195. package/dist/table/components/error/index.d.ts +1 -1
  196. package/dist/table/components/error/index.js +1 -1
  197. package/dist/table/components/pagination/index.js +1 -1
  198. package/dist/table/components/row/component.js +1 -1
  199. package/dist/table/components/row/index.js +1 -1
  200. package/dist/table/components/rows/index.js +1 -1
  201. package/dist/table/components/table-header/index.js +1 -1
  202. package/dist/table/hooks/use-table-data.js +1 -1
  203. package/dist/table/index.js +1 -1
  204. package/dist/table/table.js +1 -1
  205. package/dist/table/utils/add-query-param.js +1 -1
  206. package/dist/table/utils/get-query-from-url.js +1 -1
  207. package/dist/table/utils/index.d.ts +1 -1
  208. package/dist/table/utils/index.js +1 -1
  209. package/dist/table/utils/parse-query-params.js +1 -1
  210. package/dist/table/utils/query-adapter.js +1 -1
  211. package/dist/table/utils/remove-query-param.js +1 -1
  212. package/dist/table/utils/reset-query-param.js +1 -1
  213. package/dist/table-status/component.js +1 -1
  214. package/dist/table-status/index.js +1 -1
  215. package/dist/tag/component.js +1 -1
  216. package/dist/tag/index.js +1 -1
  217. package/dist/tags-list/component.js +1 -1
  218. package/dist/tags-list/index.js +1 -1
  219. package/dist/tariff-builder/component.js +1 -1
  220. package/dist/tariff-builder/index.js +1 -1
  221. package/dist/textarea/component.d.ts +2 -2
  222. package/dist/textarea/component.js +1 -1
  223. package/dist/textarea/index.js +1 -1
  224. package/dist/toast/component.js +1 -1
  225. package/dist/toast/index.js +1 -1
  226. package/dist/toast-notifier/component.js +1 -1
  227. package/dist/toast-notifier/index.js +1 -1
  228. package/dist/toast-plate/component.d.ts +4 -4
  229. package/dist/toast-plate/component.js +1 -1
  230. package/dist/toast-plate/index.js +1 -1
  231. package/dist/tooltip/component.js +1 -1
  232. package/dist/tooltip/index.js +1 -1
  233. package/dist/{tslib.es6-c88014b9.js → tslib.es6-fc1cd226.js} +0 -0
  234. package/dist/typography/component.js +1 -1
  235. package/dist/typography/index.js +1 -1
  236. package/dist/typography/text/component.js +1 -1
  237. package/dist/typography/text/index.js +1 -1
  238. package/dist/typography/title/component.js +1 -1
  239. package/dist/typography/title/index.js +1 -1
  240. package/dist/typography/title-responsive/component.js +1 -1
  241. package/dist/typography/title-responsive/index.js +1 -1
  242. package/dist/{use-image-render-component-c2070538.d.ts → use-image-render-component-8e67c865.d.ts} +0 -0
  243. package/dist/{use-image-render-component-c2070538.js → use-image-render-component-8e67c865.js} +1 -1
  244. package/dist/utils/get-service-error/index.d.ts +21 -0
  245. package/dist/utils/get-service-error/index.js +1 -0
  246. package/dist/utils/get-service-error/is-axios-error.d.ts +3 -0
  247. package/dist/utils/get-service-error/is-axios-error.js +1 -0
  248. package/dist/utils/get-service-error/is-network-error.d.ts +2 -0
  249. package/dist/utils/get-service-error/is-network-error.js +1 -0
  250. package/dist/utils/index.js +1 -1
  251. package/dist/utils/show-toast/index.js +1 -1
  252. package/dist/with-suffix/component.d.ts +34 -3
  253. package/dist/with-suffix/component.js +1 -1
  254. package/dist/with-suffix/index.js +1 -1
  255. package/package.json +2 -2
  256. package/dist/hooks/use-get-ine/index.js +0 -1
@@ -23,11 +23,11 @@ type ToastPlateProps = HTMLAttributes<HTMLDivElement> & {
23
23
  declare const ToastPlate: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
24
24
  className?: string | undefined;
25
25
  contentClassName?: string | undefined;
26
- children?: ReactNode;
27
- title?: ReactNode;
26
+ children?: React.ReactNode;
27
+ title?: React.ReactNode;
28
28
  view?: "positive" | "negative" | "default" | undefined;
29
- leftAddons?: ReactNode;
30
- actionButton?: ReactNode;
29
+ leftAddons?: React.ReactNode;
30
+ actionButton?: React.ReactNode;
31
31
  dataTestId?: string | undefined;
32
32
  hasCloser?: boolean | undefined;
33
33
  block?: boolean | undefined;
@@ -1 +1 @@
1
- import{_ as e,a as t}from"../tslib.es6-c88014b9.js";import o,{forwardRef as n,useCallback as a}from"react";import{CloseS as l}from"alpha-cli-icons";import i from"classnames";import{Button as s}from"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";var _={component:"index-module_component__1-bP3",hasCloser:"index-module_hasCloser__1tXHy",contentWrap:"index-module_contentWrap__2OfQM",block:"index-module_block__1aVTZ",content:"index-module_content__3WQJx",actionSection:"index-module_actionSection__2uYWg",leftAddons:"index-module_leftAddons__dPWvX",title:"index-module_title__3s4Iy",children:"index-module_children__20qcv",closeButton:"index-module_closeButton__2rWck",negative:"index-module_negative__34lhl",positive:"index-module_positive__2B8L6",toast_enter:"index-module_toast_enter__-zNmP",toast_active_enter:"index-module_toast_active_enter__23TeH",toast_done_enter:"index-module_toast_done_enter__3mlJ0",toast_exit:"index-module_toast_exit__3Q1-3",toast_active_exit:"index-module_toast_active_exit__aBjiS",toast_done_exit:"index-module_toast_done_exit__2LVf4"},d=n((function(n,d){var c,m=n.dataTestId,r=n.className,u=n.contentClassName,x=n.hasCloser;n.leftAddons;var v=n.view,p=void 0===v?"default":v,f=n.title,h=n.children;n.actionButton;var N=n.block,b=n.onClose;n.getBadgeIcons;var C=e(n,["dataTestId","className","contentClassName","hasCloser","leftAddons","view","title","children","actionButton","block","onClose","getBadgeIcons"]),g=a((function(e){b&&b(e)}),[b]);return o.createElement("div",t({className:i(_.component,(c={},c[_.block]=N,c[_.hasCloser]=x,c),_[p],r),ref:d,"data-test-id":m},C),o.createElement("div",{className:_.contentWrap},o.createElement("div",{className:i(u,_.content)},f&&o.createElement("div",{className:_.title},f),h&&o.createElement("div",{className:_.children},h)),x&&o.createElement(s,t({className:i(_.closeButton),view:"ghost"},{onClick:g},{"aria-label":"закрыть",leftAddons:o.createElement(l,null)}))))}));export{d as ToastPlate};
1
+ import{_ as e,a as t}from"../tslib.es6-fc1cd226.js";import o,{forwardRef as n,useCallback as a}from"react";import{CloseS as l}from"alpha-cli-icons";import i from"classnames";import{Button as s}from"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";var _={component:"index-module_component__1-bP3",hasCloser:"index-module_hasCloser__1tXHy",contentWrap:"index-module_contentWrap__2OfQM",block:"index-module_block__1aVTZ",content:"index-module_content__3WQJx",actionSection:"index-module_actionSection__2uYWg",leftAddons:"index-module_leftAddons__dPWvX",title:"index-module_title__3s4Iy",children:"index-module_children__20qcv",closeButton:"index-module_closeButton__2rWck",negative:"index-module_negative__34lhl",positive:"index-module_positive__2B8L6",toast_enter:"index-module_toast_enter__-zNmP",toast_active_enter:"index-module_toast_active_enter__23TeH",toast_done_enter:"index-module_toast_done_enter__3mlJ0",toast_exit:"index-module_toast_exit__3Q1-3",toast_active_exit:"index-module_toast_active_exit__aBjiS",toast_done_exit:"index-module_toast_done_exit__2LVf4"},d=n((function(n,d){var c,m=n.dataTestId,r=n.className,u=n.contentClassName,x=n.hasCloser;n.leftAddons;var v=n.view,p=void 0===v?"default":v,f=n.title,h=n.children;n.actionButton;var N=n.block,C=n.onClose;n.getBadgeIcons;var b=e(n,["dataTestId","className","contentClassName","hasCloser","leftAddons","view","title","children","actionButton","block","onClose","getBadgeIcons"]),g=a((function(e){C&&C(e)}),[C]);return o.createElement("div",t({className:i(_.component,(c={},c[_.block]=N,c[_.hasCloser]=x,c),_[p],r),ref:d,"data-test-id":m},b),o.createElement("div",{className:_.contentWrap},o.createElement("div",{className:i(u,_.content)},f&&o.createElement("div",{className:_.title},f),h&&o.createElement("div",{className:_.children},h)),x&&o.createElement(s,t({className:i(_.closeButton),view:"ghost"},{onClick:g},{"aria-label":"закрыть",leftAddons:o.createElement(l,null)}))))}));export{d as ToastPlate};
@@ -1 +1 @@
1
- export{ToastPlate}from"./component.js";import"../tslib.es6-c88014b9.js";import"react";import"alpha-cli-icons";import"classnames";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";
1
+ export{ToastPlate}from"./component.js";import"../tslib.es6-fc1cd226.js";import"react";import"alpha-cli-icons";import"classnames";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";
@@ -1 +1 @@
1
- import{a as e}from"../tslib.es6-c88014b9.js";import o,{useState as t,useRef as r,useCallback as n,useEffect as c,cloneElement as a}from"react";import i from"react-node-resolver";import u from"classnames";import{Popover as s}from"../popover/component.js";import"react-popper";import"react-transition-group";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";var p="index-module_component__27XUU",l="index-module_popper__15ABf",m="index-module_target__3lSlZ",f=function(f){var d=f.children,v=f.content,C=f.trigger,w=void 0===C?"hover":C,T=f.onCloseDelay,h=void 0===T?300:T,g=f.onOpenDelay,_=void 0===g?300:g,k=f.dataTestId,N=f.onClose,O=f.onOpen,E=f.open,j=f.getPortalContainer,M=f.offset,x=void 0===M?[0,10]:M,b=f.position,y=f.contentClassName,S=f.arrowClassName,P=f.popoverClassName,R=f.updatePopover,A=t(!!E),D=A[0],L=A[1],U=t(null),B=U[0],F=U[1],I=o.useRef(null),X=o.useRef(null),Z=r(0),q=function(){D||(L(!0),O&&O())},z=n((function(){D&&(L(!1),N&&N())}),[N,D]),G=function(e){return(!I.current||!I.current.contains(e))&&(!X.current||!X.current.contains(e))};c((function(){var e=function(e){var o=e.target;G(o)&&z()};return document.body.addEventListener("click",e),function(){document.body.removeEventListener("click",e),clearTimeout(Z.current)}}),[z]);var H,J={onClick:function(e){d.props.onClick&&d.props.onClick(e),D?z():q()}},K={onMouseOver:function(e){d.props.onMouseOver&&d.props.onMouseOver(e),clearTimeout(Z.current),Z.current=window.setTimeout((function(){q()}),_)},onMouseOut:function(e){d.props.onMouseOut&&d.props.onMouseOut(e),clearTimeout(Z.current),Z.current=window.setTimeout((function(){z()}),h)},onTouchStart:function(e){d.props.onTouchStart&&d.props.onTouchStart(e);var o=e.target;clearTimeout(Z.current),G(o)?Z.current=window.setTimeout((function(){z()}),h):q()}},Q=void 0===E?D:E,V=n((function(e){I.current=e,F(I.current)}),[]);return o.createElement(o.Fragment,null,o.createElement(i,{innerRef:V},(H=function(o){var t={className:u(m,o.className)};switch(w){case"click":return e(e({},t),J);case"hover":return e(e({},t),K);default:return{}}}(d.props),a(d,H))),B&&o.createElement(s,{anchorElement:B,open:Q,getPortalContainer:j,arrowClassName:S,popperClassName:u(l,P),offset:x,withArrow:!0,position:b,update:R},function(){var t=function(){var o={ref:X,"data-test-id":k,className:u(p,y)};return"hover"===w?e(e({},o),K):o}();return o.createElement("div",e({},t),v)}()))};export{f as Tooltip};
1
+ import{a as e}from"../tslib.es6-fc1cd226.js";import o,{useState as t,useRef as r,useCallback as n,useEffect as c,cloneElement as a}from"react";import i from"react-node-resolver";import u from"classnames";import{Popover as s}from"../popover/component.js";import"react-popper";import"react-transition-group";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";var p="index-module_component__27XUU",l="index-module_popper__15ABf",m="index-module_target__3lSlZ",f=function(f){var d=f.children,v=f.content,C=f.trigger,w=void 0===C?"hover":C,T=f.onCloseDelay,h=void 0===T?300:T,g=f.onOpenDelay,_=void 0===g?300:g,k=f.dataTestId,N=f.onClose,O=f.onOpen,E=f.open,j=f.getPortalContainer,M=f.offset,x=void 0===M?[0,10]:M,y=f.position,S=f.contentClassName,b=f.arrowClassName,P=f.popoverClassName,R=f.updatePopover,A=t(!!E),D=A[0],L=A[1],U=t(null),B=U[0],F=U[1],I=o.useRef(null),X=o.useRef(null),Z=r(0),q=function(){D||(L(!0),O&&O())},z=n((function(){D&&(L(!1),N&&N())}),[N,D]),G=function(e){return(!I.current||!I.current.contains(e))&&(!X.current||!X.current.contains(e))};c((function(){var e=function(e){var o=e.target;G(o)&&z()};return document.body.addEventListener("click",e),function(){document.body.removeEventListener("click",e),clearTimeout(Z.current)}}),[z]);var H,J={onClick:function(e){d.props.onClick&&d.props.onClick(e),D?z():q()}},K={onMouseOver:function(e){d.props.onMouseOver&&d.props.onMouseOver(e),clearTimeout(Z.current),Z.current=window.setTimeout((function(){q()}),_)},onMouseOut:function(e){d.props.onMouseOut&&d.props.onMouseOut(e),clearTimeout(Z.current),Z.current=window.setTimeout((function(){z()}),h)},onTouchStart:function(e){d.props.onTouchStart&&d.props.onTouchStart(e);var o=e.target;clearTimeout(Z.current),G(o)?Z.current=window.setTimeout((function(){z()}),h):q()}},Q=void 0===E?D:E,V=n((function(e){I.current=e,F(I.current)}),[]);return o.createElement(o.Fragment,null,o.createElement(i,{innerRef:V},(H=function(o){var t={className:u(m,o.className)};switch(w){case"click":return e(e({},t),J);case"hover":return e(e({},t),K);default:return{}}}(d.props),a(d,H))),B&&o.createElement(s,{anchorElement:B,open:Q,getPortalContainer:j,arrowClassName:b,popperClassName:u(l,P),offset:x,withArrow:!0,position:y,update:R},function(){var t=function(){var o={ref:X,"data-test-id":k,className:u(p,S)};return"hover"===w?e(e({},o),K):o}();return o.createElement("div",e({},t),v)}()))};export{f as Tooltip};
@@ -1 +1 @@
1
- export{Tooltip}from"./component.js";import"../tslib.es6-c88014b9.js";import"react";import"react-node-resolver";import"classnames";import"../popover/component.js";import"react-popper";import"react-transition-group";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";
1
+ export{Tooltip}from"./component.js";import"../tslib.es6-fc1cd226.js";import"react";import"react-node-resolver";import"classnames";import"../popover/component.js";import"react-popper";import"react-transition-group";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";
@@ -1 +1 @@
1
- import{Title as o}from"./title/index.js";import{Text as t}from"./text/component.js";import{TitleResponsive as e}from"./title-responsive/component.js";import"../tslib.es6-c88014b9.js";import"react";import"./title/component.js";import"classnames";import"../colors.module-ad73c09a.js";import"../common.module-10ade317.js";var m={Title:o,Text:t,TitleResponsive:e};export{m as Typography};
1
+ import{Title as o}from"./title/index.js";import{Text as t}from"./text/component.js";import{TitleResponsive as e}from"./title-responsive/component.js";import"../tslib.es6-fc1cd226.js";import"react";import"./title/component.js";import"classnames";import"../colors.module-d13bf105.js";import"../common.module-aec9173c.js";var m={Title:o,Text:t,TitleResponsive:e};export{m as Typography};
@@ -1 +1 @@
1
- export{Typography}from"./component.js";import"./title/index.js";import"../tslib.es6-c88014b9.js";import"react";import"./title/component.js";import"classnames";import"../colors.module-ad73c09a.js";import"../common.module-10ade317.js";import"./text/component.js";import"./title-responsive/component.js";
1
+ export{Typography}from"./component.js";import"./title/index.js";import"../tslib.es6-fc1cd226.js";import"react";import"./title/component.js";import"classnames";import"../colors.module-d13bf105.js";import"../common.module-aec9173c.js";import"./text/component.js";import"./title-responsive/component.js";
@@ -1 +1 @@
1
- import e from"react";import a from"classnames";import{c as m}from"../../colors.module-ad73c09a.js";var r={paragraph:"index-module_paragraph__1bRcB","primary-medium":"index-module_primary-medium__Qvb5H","primary-small":"index-module_primary-small__L3Wad",component:"index-module_component__31LM6",title:"index-module_title__f59kW",caps:"index-module_caps__xHQwO",bold:"index-module_bold__3D19m",medium:"index-module_medium__3Fy9j",regular:"index-module_regular__3febp"},d=function(d){var i,o=d.view,l=void 0===o?"primary-medium":o,_=d.tag,p=void 0===_?"span":_,t=d.weight,n=void 0===t?"regular":t,u=d.color,s=d.className,c=d.dataTestId,x=d.children;return e.createElement(p,{className:a((i={},i[r.paragraph]="p"===p,i),s,u&&m[u],r[l],r[n]),"data-test-id":c},x)};export{d as Text};
1
+ import e from"react";import m from"classnames";import{c as a}from"../../colors.module-d13bf105.js";var r={paragraph:"index-module_paragraph__1bRcB","primary-medium":"index-module_primary-medium__Qvb5H","primary-small":"index-module_primary-small__L3Wad",component:"index-module_component__31LM6",title:"index-module_title__f59kW",caps:"index-module_caps__xHQwO",bold:"index-module_bold__3D19m",medium:"index-module_medium__3Fy9j",regular:"index-module_regular__3febp"},d=function(d){var i,o=d.view,l=void 0===o?"primary-medium":o,_=d.tag,p=void 0===_?"span":_,t=d.weight,n=void 0===t?"regular":t,u=d.color,s=d.className,c=d.dataTestId,x=d.children;return e.createElement(p,{className:m((i={},i[r.paragraph]="p"===p,i),s,u&&a[u],r[l],r[n]),"data-test-id":c},x)};export{d as Text};
@@ -1 +1 @@
1
- export{Text}from"./component.js";import"react";import"classnames";import"../../colors.module-ad73c09a.js";
1
+ export{Text}from"./component.js";import"react";import"classnames";import"../../colors.module-d13bf105.js";
@@ -1 +1 @@
1
- import a from"classnames";import e from"react";import{c as t}from"../../colors.module-ad73c09a.js";var o=function(o){var r=o.tag,m=void 0===r?"div":r,i=o.view,s=void 0===i?"medium":i,d=o.weight,c=void 0===d?"medium":d,n=o.defaultMargins,l=void 0!==n&&n,v=o.color,u=o.className,f=o.dataTestId,p=o.children,g=o.styles;return e.createElement(m,{className:a(g.component,u,g["montserrat-"+s],l&&g["margins-"+s],g[c],v&&t[v]),"data-test-id":f},p)};export{o as Title};
1
+ import e from"classnames";import t from"react";import{c as a}from"../../colors.module-d13bf105.js";var o=function(o){var r=o.tag,m=void 0===r?"div":r,i=o.view,s=void 0===i?"medium":i,d=o.weight,c=void 0===d?"medium":d,n=o.defaultMargins,l=void 0!==n&&n,v=o.color,f=o.className,u=o.dataTestId,p=o.children,g=o.styles;return t.createElement(m,{className:e(g.component,f,g["montserrat-"+s],l&&g["margins-"+s],g[c],v&&a[v]),"data-test-id":u},p)};export{o as Title};
@@ -1 +1 @@
1
- import{a as m}from"../../tslib.es6-c88014b9.js";import e from"react";import{Title as r}from"./component.js";import{c as a}from"../../common.module-10ade317.js";import"classnames";import"../../colors.module-ad73c09a.js";var s={"montserrat-xlarge":"index-module_montserrat-xlarge__2e0T4","montserrat-large":"index-module_montserrat-large__3IoQZ","montserrat-medium":"index-module_montserrat-medium__1C2-N","montserrat-small":"index-module_montserrat-small__7aq7N","montserrat-xsmall":"index-module_montserrat-xsmall__1snHz","margins-xlarge":"index-module_margins-xlarge__3T9s4","margins-large":"index-module_margins-large__uTKMb","margins-medium":"index-module_margins-medium__2WXDU","margins-small":"index-module_margins-small__3jh4c","margins-xsmall":"index-module_margins-xsmall__Eaiy8"},l=function(l){return e.createElement(r,m({},l,{styles:m(m({},a),s)}))};export{l as Title};
1
+ import{a as m}from"../../tslib.es6-fc1cd226.js";import e from"react";import{Title as r}from"./component.js";import{c as a}from"../../common.module-aec9173c.js";import"classnames";import"../../colors.module-d13bf105.js";var s={"montserrat-xlarge":"index-module_montserrat-xlarge__2e0T4","montserrat-large":"index-module_montserrat-large__3IoQZ","montserrat-medium":"index-module_montserrat-medium__1C2-N","montserrat-small":"index-module_montserrat-small__7aq7N","montserrat-xsmall":"index-module_montserrat-xsmall__1snHz","margins-xlarge":"index-module_margins-xlarge__3T9s4","margins-large":"index-module_margins-large__uTKMb","margins-medium":"index-module_margins-medium__2WXDU","margins-small":"index-module_margins-small__3jh4c","margins-xsmall":"index-module_margins-xsmall__Eaiy8"},l=function(l){return e.createElement(r,m({},l,{styles:m(m({},a),s)}))};export{l as Title};
@@ -1 +1 @@
1
- import{a as m}from"../../tslib.es6-c88014b9.js";import e from"react";import{Title as r}from"../title/component.js";import{c as a}from"../../common.module-10ade317.js";import"classnames";import"../../colors.module-ad73c09a.js";var l={"montserrat-xlarge":"index-module_montserrat-xlarge__3_L7c","montserrat-large":"index-module_montserrat-large__25PPi","montserrat-medium":"index-module_montserrat-medium__2-xpj","montserrat-small":"index-module_montserrat-small__iwV-8","montserrat-xsmall":"index-module_montserrat-xsmall__2AlQp","margins-xlarge":"index-module_margins-xlarge__3ay4g","margins-large":"index-module_margins-large__3T8vK","margins-medium":"index-module_margins-medium__1_Ucz","margins-small":"index-module_margins-small__8NNjs","margins-xsmall":"index-module_margins-xsmall__2ENbw"},s=function(s){return e.createElement(r,m({},s,{styles:m(m({},a),l)}))};export{s as TitleResponsive};
1
+ import{a as m}from"../../tslib.es6-fc1cd226.js";import e from"react";import{Title as r}from"../title/component.js";import{c as a}from"../../common.module-aec9173c.js";import"classnames";import"../../colors.module-d13bf105.js";var l={"montserrat-xlarge":"index-module_montserrat-xlarge__3_L7c","montserrat-large":"index-module_montserrat-large__25PPi","montserrat-medium":"index-module_montserrat-medium__2-xpj","montserrat-small":"index-module_montserrat-small__iwV-8","montserrat-xsmall":"index-module_montserrat-xsmall__2AlQp","margins-xlarge":"index-module_margins-xlarge__3ay4g","margins-large":"index-module_margins-large__3T8vK","margins-medium":"index-module_margins-medium__1_Ucz","margins-small":"index-module_margins-small__8NNjs","margins-xsmall":"index-module_margins-xsmall__2ENbw"},s=function(s){return e.createElement(r,m({},s,{styles:m(m({},a),l)}))};export{s as TitleResponsive};
@@ -1 +1 @@
1
- export{TitleResponsive}from"./component.js";import"../../tslib.es6-c88014b9.js";import"react";import"../title/component.js";import"classnames";import"../../colors.module-ad73c09a.js";import"../../common.module-10ade317.js";
1
+ export{TitleResponsive}from"./component.js";import"../../tslib.es6-fc1cd226.js";import"react";import"../title/component.js";import"classnames";import"../../colors.module-d13bf105.js";import"../../common.module-aec9173c.js";
@@ -1 +1 @@
1
- import e,{useRef as t,useMemo as n,useEffect as o}from"react";import{PhotoS as i,PhotoM as r}from"alpha-cli-icons";import _ from"classnames";import{Spinner as d}from"./spinner/component.js";import{Typography as m}from"./typography/component.js";import"./image/typings.js";import{sizes as l,textSizes as a}from"./image/constants.js";import{getSrc as s,getCharsFromText as x}from"./image/utils.js";var c={component:"index-module_component__2SAxI",children:"index-module_children__3-Rrm",default:"index-module_default__9Y9Ry",primary:"index-module_primary__1rcmx","primary-inverted":"index-module_primary-inverted__1Qsti",secondary:"index-module_secondary__V683L","secondary-inverted":"index-module_secondary-inverted__1z_a8",positive:"index-module_positive__11E2V",negative:"index-module_negative__ZEP9w",attention:"index-module_attention__1tSkN",accent:"index-module_accent__3qMH5",broken:"index-module_broken__21rqy",image:"index-module_image__ZF1Gv",hint:"index-module_hint__15-ui",hint_text:"index-module_hint_text__2HO_n",textContent:"index-module_textContent__13aze",xs:"index-module_xs__2Es8v",s:"index-module_s__2D4b3",m:"index-module_m__1Rtr9",l:"index-module_l__3oEwm",xl:"index-module_xl__7Y-se",circle:"index-module_circle__rmY6i",defs:"index-module_defs__-xTo_",textS:"index-module_textS__2QNNE",textXs:"index-module_textXs__ujJjz",textM:"index-module_textM__3vBUB",textL:"index-module_textL__1u8Yh"},u=function(u){var p=u.src,v=void 0===p?"":p,f=u.resolution,g=u.size,y=u.alt,h=u.text,E=u.icon,w=e.useState("loading"),j=w[0],N=w[1],b=t(0),k=f||l[g],z=n((function(){return s(v,k)}),[k,v]);return o((function(){if(z){b.current=Date.now(),N("loading");var e=new Image;e.src=z,e.onload=function(){N("loaded")},e.onerror=function(){Date.now()-b.current<15e3?setTimeout((function(){e.src=z}),1e3):N("error")}}else N("error")}),[z]),E||("loading"===j?e.createElement(d,{className:c.spinner,size:"s",view:"dark"}):"error"===j&&h?e.createElement(m.Text,{className:_(c.textContent,c[a[g]]),view:"component",color:"tertiary",weight:"bold"},x(h.toUpperCase())):"error"===j?e.createElement(m.Text,{className:c.broken,tag:"div",color:"tertiary",view:"component",weight:"bold"},"xs"===g?e.createElement(i,null):e.createElement(r,null)):e.createElement("img",{className:c.image,src:v,alt:y}))};export{c as s,u};
1
+ import e,{useRef as t,useMemo as n,useEffect as o}from"react";import{PhotoS as i,PhotoM as r}from"alpha-cli-icons";import _ from"classnames";import{Spinner as d}from"./spinner/component.js";import{Typography as m}from"./typography/component.js";import"./image/typings.js";import{sizes as l,textSizes as a}from"./image/constants.js";import{getSrc as s,getCharsFromText as x}from"./image/utils.js";var c={component:"index-module_component__2SAxI",children:"index-module_children__3-Rrm",default:"index-module_default__9Y9Ry",primary:"index-module_primary__1rcmx","primary-inverted":"index-module_primary-inverted__1Qsti",secondary:"index-module_secondary__V683L","secondary-inverted":"index-module_secondary-inverted__1z_a8",positive:"index-module_positive__11E2V",negative:"index-module_negative__ZEP9w",attention:"index-module_attention__1tSkN",accent:"index-module_accent__3qMH5",broken:"index-module_broken__21rqy",image:"index-module_image__ZF1Gv",hint:"index-module_hint__15-ui",hint_text:"index-module_hint_text__2HO_n",textContent:"index-module_textContent__13aze",xs:"index-module_xs__2Es8v",s:"index-module_s__2D4b3",m:"index-module_m__1Rtr9",l:"index-module_l__3oEwm",xl:"index-module_xl__7Y-se",circle:"index-module_circle__rmY6i",ellipse:"index-module_ellipse__20gOm",defs:"index-module_defs__-xTo_",textS:"index-module_textS__2QNNE",textXs:"index-module_textXs__ujJjz",textM:"index-module_textM__3vBUB",textL:"index-module_textL__1u8Yh"},u=function(u){var p=u.src,g=void 0===p?"":p,v=u.resolution,f=u.size,y=u.alt,h=u.text,E=u.icon,w=e.useState("loading"),j=w[0],N=w[1],b=t(0),k=v||l[f],z=n((function(){return s(g,k)}),[k,g]);return o((function(){if(z){b.current=Date.now(),N("loading");var e=new Image;e.src=z,e.onload=function(){N("loaded")},e.onerror=function(){Date.now()-b.current<15e3?setTimeout((function(){e.src=z}),1e3):N("error")}}else N("error")}),[z]),E||("loading"===j?e.createElement(d,{className:c.spinner,size:"s",view:"dark"}):"error"===j&&h?e.createElement(m.Text,{className:_(c.textContent,c[a[f]]),view:"component",color:"tertiary",weight:"bold"},x(h.toUpperCase())):"error"===j?e.createElement(m.Text,{className:c.broken,tag:"div",color:"tertiary",view:"component",weight:"bold"},"xs"===f?e.createElement(i,null):e.createElement(r,null)):e.createElement("img",{className:c.image,src:g,alt:y}))};export{c as s,u};
@@ -0,0 +1,21 @@
1
+ import { AxiosError } from 'axios';
2
+ type ErrorData = {
3
+ errorId: string;
4
+ application: string;
5
+ errorCode: string;
6
+ message: string;
7
+ originalErrorCode?: string;
8
+ };
9
+ declare enum ErrorType {
10
+ NETWORK = "NETWORK",
11
+ BUSINESS = "BUSINESS",
12
+ INTERNAL = "INTERNAL"
13
+ }
14
+ type ServiceError = {
15
+ code: string;
16
+ message: string;
17
+ errorType: ErrorType;
18
+ originalError: unknown | AxiosError<ErrorData>;
19
+ };
20
+ declare function getServiceError(error: unknown): ServiceError;
21
+ export { ErrorData, ErrorType, ServiceError, getServiceError };
@@ -0,0 +1 @@
1
+ import{isAxiosError as r}from"./is-axios-error.js";import{isNetworkError as e}from"./is-network-error.js";var o,E,R;!function(r){r.NETWORK="NETWORK",r.BUSINESS="BUSINESS",r.INTERNAL="INTERNAL"}(R||(R={}));var N=((o={})[R.INTERNAL]="INTERNAL_ERROR",o[R.NETWORK]="NETWORK_ERROR",o),T=((E={})[R.INTERNAL]="Пожалуйста, попробуйте ещё раз позже.",E[R.NETWORK]="Проверьте подключение и попробуйте ещё раз позже.",E),i=["BAD_REQUEST","INTERNAL_SERVER_ERROR","INTERNAL_ERROR","WS_ERROR","DEFAULT"];function s(o){if(e(o))return{code:N[R.NETWORK],message:T[R.NETWORK],errorType:R.NETWORK,originalError:o};if(r(o)){var E=o.response?o.response.data:{errorCode:"500",originalErrorCode:"500",message:"Unhandled error"},s=E.errorCode,n=E.originalErrorCode,a=E.message,I=s,A=R.BUSINESS;return i.includes(I)&&(void 0===n?A=R.INTERNAL:I=n),{code:I,message:a,errorType:A,originalError:o}}return{code:N[R.INTERNAL],message:T[R.INTERNAL],errorType:R.INTERNAL,originalError:o}}export{R as ErrorType,s as getServiceError};
@@ -0,0 +1,3 @@
1
+ import { AxiosError } from 'axios';
2
+ declare function isAxiosError<T>(error: unknown): error is AxiosError<T>;
3
+ export { isAxiosError };
@@ -0,0 +1 @@
1
+ function o(o){return Boolean(o.isAxiosError)}export{o as isAxiosError};
@@ -0,0 +1,2 @@
1
+ declare function isNetworkError(error: unknown): boolean;
2
+ export { isNetworkError };
@@ -0,0 +1 @@
1
+ import{isAxiosError as r}from"./is-axios-error.js";var e=["ENETUNREACH","ECONNABORTED","ENOTCONN"];function o(o){if(r(o)){var s=o.response,N=o.code,i=o.message;return void 0===s&&(e.includes(N||"")||"Network Error"===i)}return!1}export{o as isNetworkError};
@@ -1 +1 @@
1
- export{AMOUNT_MAJOR_MINOR_PARTS_SEPARATOR,THINSP,formatAmount}from"./format-amount/util.js";export{showError,showSuccess}from"./show-toast/index.js";export{splitAmount}from"./split-amount/util.js";import"./get-currency-symbol/util.js";import"./data/currency-codes.js";import"../toast-notifier/component.js";import"../tslib.es6-c88014b9.js";import"react";import"react-dom";import"classnames";import"../toast-plate/component.js";import"alpha-cli-icons";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../toast-notifier/use-timer.js";
1
+ export{AMOUNT_MAJOR_MINOR_PARTS_SEPARATOR,THINSP,formatAmount}from"./format-amount/util.js";export{showError,showSuccess}from"./show-toast/index.js";export{splitAmount}from"./split-amount/util.js";import"./get-currency-symbol/util.js";import"./data/currency-codes.js";import"../toast-notifier/component.js";import"../tslib.es6-fc1cd226.js";import"react";import"react-dom";import"classnames";import"../toast-plate/component.js";import"alpha-cli-icons";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../toast-notifier/use-timer.js";
@@ -1 +1 @@
1
- import{ToastNotifier as t}from"../../toast-notifier/component.js";import"../../tslib.es6-c88014b9.js";import"react";import"react-dom";import"classnames";import"../../toast-plate/component.js";import"alpha-cli-icons";import"../../button/component.js";import"react-merge-refs";import"../../hooks/useFocus/index.js";import"../../loader/component.js";import"../../toast-notifier/use-timer.js";var o=function(o){t({view:"positive",title:"Success",text:o,offset:30})},e=function(o){t({view:"negative",title:"Error",text:o,offset:30})};export{e as showError,o as showSuccess};
1
+ import{ToastNotifier as t}from"../../toast-notifier/component.js";import"../../tslib.es6-fc1cd226.js";import"react";import"react-dom";import"classnames";import"../../toast-plate/component.js";import"alpha-cli-icons";import"../../button/component.js";import"react-merge-refs";import"../../hooks/useFocus/index.js";import"../../loader/component.js";import"../../toast-notifier/use-timer.js";var o=function(o){t({view:"positive",title:"Success",text:o,offset:30})},e=function(o){t({view:"negative",title:"Error",text:o,offset:30})};export{e as showError,o as showSuccess};
@@ -1,12 +1,43 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { FC, ReactNode, RefAttributes } from "react";
3
+ import { ReactNode } from "react";
4
4
  import { InputProps } from "../input/index";
5
5
  type WithSuffixProps = InputProps & {
6
6
  suffix?: ReactNode;
7
7
  suffixContainerClassName?: string;
8
8
  };
9
- declare const withSuffix: (Input: FC<InputProps & RefAttributes<HTMLInputElement>>) => React.ForwardRefExoticComponent<Pick<React.InputHTMLAttributes<HTMLInputElement>, "className" | "form" | "slot" | "style" | "title" | "pattern" | "children" | "defaultChecked" | "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" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "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" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "list" | "step" | "required" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "crossOrigin" | "height" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "readOnly" | "src" | "width"> & {
9
+ declare const withSuffix: (Input: React.FC<Pick<React.InputHTMLAttributes<HTMLInputElement>, "disabled" | "color" | "className" | "children" | "form" | "list" | "slot" | "style" | "title" | "pattern" | "defaultChecked" | "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" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "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"> & {
10
+ value?: string | undefined;
11
+ defaultValue?: string | undefined;
12
+ block?: boolean | undefined;
13
+ required?: boolean | undefined;
14
+ clear?: boolean | undefined;
15
+ size?: "s" | "m" | "l" | undefined;
16
+ error?: string | boolean | undefined;
17
+ success?: boolean | undefined;
18
+ hint?: string | undefined;
19
+ label?: React.ReactNode;
20
+ type?: "number" | "text" | "tel" | "email" | "card" | "money" | "password" | undefined;
21
+ wrapperRef?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
22
+ leftAddons?: React.ReactNode;
23
+ rightAddons?: React.ReactNode;
24
+ bottomAddons?: React.ReactNode;
25
+ className?: string | undefined;
26
+ fieldClassName?: string | undefined;
27
+ inputClassName?: string | undefined;
28
+ labelClassName?: string | undefined;
29
+ addonsClassName?: string | undefined;
30
+ focusedClassName?: string | undefined;
31
+ filledClassName?: string | undefined;
32
+ onChange?: ((event: React.ChangeEvent<HTMLInputElement>, payload: {
33
+ value: string;
34
+ }) => void) | undefined;
35
+ onClear?: ((event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void) | undefined;
36
+ onClick?: ((event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefined;
37
+ onMouseDown?: ((event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefined;
38
+ onMouseUp?: ((event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefined;
39
+ dataTestId?: string | undefined;
40
+ } & React.RefAttributes<HTMLInputElement>>) => React.ForwardRefExoticComponent<Pick<React.InputHTMLAttributes<HTMLInputElement>, "disabled" | "color" | "className" | "children" | "form" | "list" | "slot" | "style" | "title" | "pattern" | "defaultChecked" | "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" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "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"> & {
10
41
  value?: string | undefined;
11
42
  defaultValue?: string | undefined;
12
43
  block?: boolean | undefined;
@@ -38,7 +69,7 @@ declare const withSuffix: (Input: FC<InputProps & RefAttributes<HTMLInputElement
38
69
  onMouseUp?: ((event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefined;
39
70
  dataTestId?: string | undefined;
40
71
  } & {
41
- suffix?: ReactNode;
72
+ suffix?: React.ReactNode;
42
73
  suffixContainerClassName?: string | undefined;
43
74
  } & React.RefAttributes<HTMLInputElement>>;
44
75
  export { WithSuffixProps, withSuffix };
@@ -1 +1 @@
1
- import{_ as e,a}from"../tslib.es6-c88014b9.js";import l,{forwardRef as n,useRef as r,useState as o,useCallback as t,Fragment as i}from"react";import s from"react-merge-refs";import m from"classnames";import{Portal as d}from"../portal/component.js";import"react-dom";import"../portal/utils.js";var u="index-module_suffixContainer__2PAjv",f="index-module_suffixVisible__2nCIM",c="index-module_hasSuffix__2OETD",_="index-module_spacer__367Gn",p="index-module_suffix__1tJdT",x="index-module_disabled__SEf2T",C="index-module_readOnly__1gCb6",v=function(v){return n((function(n,E){var b,N,h=n.value,g=n.defaultValue,O=n.onChange,j=n.onClear,y=n.suffix,T=void 0===y?"":y,V=n.placeholder,P=n.className,S=n.disabled,A=n.readOnly,B=n.suffixContainerClassName,D=e(n,["value","defaultValue","onChange","onClear","suffix","placeholder","className","disabled","readOnly","suffixContainerClassName"]),G=void 0===h,I=r(null),J=o(g||""),M=J[0],k=J[1],q=t((function(e,a){O&&O(e,a),G&&k(a.value)}),[O,G]),w=t((function(e){G&&k(""),j&&j(e)}),[j,G]),z=t((function(){return I.current.parentElement}),[]),F=G?M:h;return l.createElement(i,null,l.createElement(v,a({ref:s([E,I]),value:F,disabled:S,readOnly:A,onChange:q,onClear:w,placeholder:V,className:m(P,(b={},b[f]=Boolean(F),b[c]=T,b))},D)),l.createElement(d,{getPortalContainer:z},l.createElement("div",{className:m(u,B)},l.createElement("span",{className:_},F),T&&l.createElement("div",{className:m(p,(N={},N[x]=S,N[C]=A,N))},T))))}))};export{v as withSuffix};
1
+ import{_ as e,a}from"../tslib.es6-fc1cd226.js";import l,{forwardRef as n,useRef as r,useState as o,useCallback as t,Fragment as i}from"react";import s from"react-merge-refs";import d from"classnames";import{Portal as m}from"../portal/component.js";import"react-dom";import"../portal/utils.js";var u="index-module_suffixContainer__2PAjv",f="index-module_suffixVisible__2nCIM",c="index-module_hasSuffix__2OETD",_="index-module_spacer__367Gn",p="index-module_suffix__1tJdT",x="index-module_disabled__SEf2T",C="index-module_readOnly__1gCb6",v=function(v){return n((function(n,E){var N,b,h=n.value,g=n.defaultValue,O=n.onChange,j=n.onClear,y=n.suffix,T=void 0===y?"":y,V=n.placeholder,P=n.className,S=n.disabled,A=n.readOnly,B=n.suffixContainerClassName,D=e(n,["value","defaultValue","onChange","onClear","suffix","placeholder","className","disabled","readOnly","suffixContainerClassName"]),G=void 0===h,I=r(null),J=o(g||""),M=J[0],k=J[1],q=t((function(e,a){O&&O(e,a),G&&k(a.value)}),[O,G]),w=t((function(e){G&&k(""),j&&j(e)}),[j,G]),z=t((function(){return I.current.parentElement}),[]),F=G?M:h;return l.createElement(i,null,l.createElement(v,a({ref:s([E,I]),value:F,disabled:S,readOnly:A,onChange:q,onClear:w,placeholder:V,className:d(P,(N={},N[f]=Boolean(F),N[c]=T,N))},D)),l.createElement(m,{getPortalContainer:z},l.createElement("div",{className:d(u,B)},l.createElement("span",{className:_},F),T&&l.createElement("div",{className:d(p,(b={},b[x]=S,b[C]=A,b))},T))))}))};export{v as withSuffix};
@@ -1 +1 @@
1
- export{withSuffix}from"./component.js";import"../tslib.es6-c88014b9.js";import"react";import"react-merge-refs";import"classnames";import"../portal/component.js";import"react-dom";import"../portal/utils.js";
1
+ export{withSuffix}from"./component.js";import"../tslib.es6-fc1cd226.js";import"react";import"react-merge-refs";import"classnames";import"../portal/component.js";import"react-dom";import"../portal/utils.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alphakits/ui",
3
- "version": "1.5.0",
3
+ "version": "1.5.4",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -162,7 +162,7 @@
162
162
  "stylelint": "^13.6.1",
163
163
  "ts-loader": "^6.2.1",
164
164
  "tslib": "^1.11.1",
165
- "typescript": "^3.8.3",
165
+ "typescript": "3.8.3",
166
166
  "typescript-plugin-css-modules": "2.2.0",
167
167
  "url-loader": "4.1.0"
168
168
  },
@@ -1 +0,0 @@
1
- import{c as t,d as o}from"../../tslib.es6-c88014b9.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],u=r({}),d=u[0],f=u[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:d,loading:c}};export{a as useGetOne};