@alphakits/ui 1.3.19 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (300) hide show
  1. package/dist/{_commonjsHelpers-c54f450c.js → _commonjsHelpers-19aa6737.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.js +1 -1
  5. package/dist/amount-input/index.js +1 -1
  6. package/dist/avatar/component.d.ts +6 -18
  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-input/component.js +1 -1
  24. package/dist/calendar-input/index.js +1 -1
  25. package/dist/cell/base/component.js +1 -1
  26. package/dist/cell/base/index.d.ts +1 -1
  27. package/dist/cell/base/index.js +1 -1
  28. package/dist/cell/component.js +1 -1
  29. package/dist/cell/index.d.ts +1 -1
  30. package/dist/cell/index.js +1 -1
  31. package/dist/cell/pure/component.js +1 -1
  32. package/dist/cell/pure/index.js +1 -1
  33. package/dist/checkbox/component.js +1 -1
  34. package/dist/checkbox/index.js +1 -1
  35. package/dist/checkbox-group/component.js +1 -1
  36. package/dist/checkbox-group/index.js +1 -1
  37. package/dist/checkbox-lists/component.d.ts +2 -1
  38. package/dist/checkbox-lists/component.js +1 -1
  39. package/dist/checkbox-lists/index.js +1 -1
  40. package/dist/collapse/component.js +1 -1
  41. package/dist/collapse/index.js +1 -1
  42. package/dist/{colors.module-b735516a.js → colors.module-204f9cef.js} +0 -0
  43. package/dist/{common.module-63e05d9f.js → common.module-5b31c24b.js} +0 -0
  44. package/dist/component-366387bd.d.ts +14 -0
  45. package/dist/component-366387bd.js +1 -0
  46. package/dist/component-e71445f5.d.ts +7 -0
  47. package/dist/{contact-block-01731462.d.ts → contact-block-e06ea985.d.ts} +0 -0
  48. package/dist/{contact-block-01731462.js → contact-block-e06ea985.js} +0 -0
  49. package/dist/copy-button/component.js +1 -1
  50. package/dist/copy-button/index.js +1 -1
  51. package/dist/date/component.js +1 -1
  52. package/dist/date/index.js +1 -1
  53. package/dist/date-switcher/component.js +1 -1
  54. package/dist/date-switcher/index.js +1 -1
  55. package/dist/footer/component.js +1 -1
  56. package/dist/footer/components/contacts-block.js +1 -1
  57. package/dist/footer/contact-block.js +1 -1
  58. package/dist/footer/index.js +1 -1
  59. package/dist/form/component.js +1 -1
  60. package/dist/form/components/form-footer/index.js +1 -1
  61. package/dist/form/components/index.js +1 -1
  62. package/dist/form/index.js +1 -1
  63. package/dist/form/templates/crud-form/index.js +1 -1
  64. package/dist/form/templates/filters-form/index.js +1 -1
  65. package/dist/form/templates/rest-form/index.js +1 -1
  66. package/dist/form/utils/get-default-values.js +1 -1
  67. package/dist/form-control/component.js +1 -1
  68. package/dist/form-control/index.js +1 -1
  69. package/dist/{formik.esm-4dad5c64.js → formik.esm-6cef1f7c.js} +1 -1
  70. package/dist/grid/col/component.js +1 -1
  71. package/dist/grid/col/index.js +1 -1
  72. package/dist/grid/component.js +1 -1
  73. package/dist/grid/index.js +1 -1
  74. package/dist/grid/row/component.js +1 -1
  75. package/dist/grid/row/index.js +1 -1
  76. package/dist/{gutters.module-8e6e3eb9.js → gutters.module-8f3d0759.js} +0 -0
  77. package/dist/heading/component.js +1 -1
  78. package/dist/heading/index.js +1 -1
  79. package/dist/hooks/index.js +1 -1
  80. package/dist/hooks/use-crud-form-requests/index.js +1 -1
  81. package/dist/hooks/use-get-ine/index.js +1 -1
  82. package/dist/icon-button/component.js +1 -1
  83. package/dist/icon-button/index.js +1 -1
  84. package/dist/image/component.d.ts +2 -16
  85. package/dist/image/component.js +1 -1
  86. package/dist/image/constants.d.ts +13 -0
  87. package/dist/image/constants.js +1 -0
  88. package/dist/image/index.d.ts +3 -0
  89. package/dist/image/index.js +1 -1
  90. package/dist/image/typings.d.ts +25 -0
  91. package/dist/image/typings.js +1 -0
  92. package/dist/{cell/action/component.d.ts → image/use-image-render-component.d.ts} +0 -0
  93. package/dist/image/use-image-render-component.js +1 -0
  94. package/dist/image/utils.d.ts +4 -0
  95. package/dist/image/utils.js +1 -0
  96. package/dist/index.css +1 -5
  97. package/dist/index.ts +0 -7
  98. package/dist/info-block-header/component.js +1 -1
  99. package/dist/info-block-header/index.js +1 -1
  100. package/dist/info-block-item/component.js +1 -1
  101. package/dist/info-block-item/index.js +1 -1
  102. package/dist/input/component.js +1 -1
  103. package/dist/input/index.js +1 -1
  104. package/dist/intersection-observer-8fbea6f8.js +1 -0
  105. package/dist/link/component.js +1 -1
  106. package/dist/link/index.js +1 -1
  107. package/dist/list-allert/component.js +1 -1
  108. package/dist/list-allert/index.js +1 -1
  109. package/dist/masked-input/component.js +1 -1
  110. package/dist/masked-input/index.js +1 -1
  111. package/dist/message/component.js +1 -1
  112. package/dist/message/index.js +1 -1
  113. package/dist/modal/components/modals/index.js +1 -1
  114. package/dist/modal/context.js +1 -1
  115. package/dist/modal/hooks/use-modal.js +1 -1
  116. package/dist/modal/index.js +1 -1
  117. package/dist/modal/types.d.ts +1 -1
  118. package/dist/not-found/component.js +1 -1
  119. package/dist/not-found/index.js +1 -1
  120. package/dist/notification/component.js +1 -1
  121. package/dist/notification/index.js +1 -1
  122. package/dist/{parse-query-params-a4b54639.d.ts → parse-query-params-d21fd9b2.d.ts} +0 -0
  123. package/dist/{parse-query-params-a4b54639.js → parse-query-params-d21fd9b2.js} +1 -1
  124. package/dist/picker-button/component.d.ts +1 -1
  125. package/dist/picker-button/component.js +1 -1
  126. package/dist/picker-button/field/Component.js +1 -1
  127. package/dist/picker-button/field/index.js +1 -1
  128. package/dist/picker-button/index.js +1 -1
  129. package/dist/popover/component.js +1 -1
  130. package/dist/popover/index.js +1 -1
  131. package/dist/progress-bar/component.js +1 -1
  132. package/dist/progress-bar/index.js +1 -1
  133. package/dist/progress-index/component.js +1 -1
  134. package/dist/progress-index/index.js +1 -1
  135. package/dist/radio/component.js +1 -1
  136. package/dist/radio/index.js +1 -1
  137. package/dist/radio-group/component.js +1 -1
  138. package/dist/radio-group/index.js +1 -1
  139. package/dist/radio-groups/component.d.ts +2 -1
  140. package/dist/radio-groups/component.js +1 -1
  141. package/dist/radio-groups/index.js +1 -1
  142. package/dist/select/component.d.ts +1 -1
  143. package/dist/select/component.js +1 -1
  144. package/dist/select/components/base-select/component.js +1 -1
  145. package/dist/select/components/base-select/index.js +1 -1
  146. package/dist/select/components/field/component.js +1 -1
  147. package/dist/select/components/field/index.js +1 -1
  148. package/dist/select/components/index.js +1 -1
  149. package/dist/select/components/native-select/component.js +1 -1
  150. package/dist/select/components/native-select/index.js +1 -1
  151. package/dist/select/components/option/component.js +1 -1
  152. package/dist/select/components/option/index.js +1 -1
  153. package/dist/select/components/options-list/component.d.ts +2 -1
  154. package/dist/select/components/options-list/component.js +1 -1
  155. package/dist/select/components/options-list/index.js +1 -1
  156. package/dist/select/components/virtual-options-list/component.js +1 -1
  157. package/dist/select/components/virtual-options-list/index.js +1 -1
  158. package/dist/select/index.js +1 -1
  159. package/dist/select/presets/index.d.ts +1 -0
  160. package/dist/select/presets/index.js +1 -1
  161. package/dist/select/presets/use-lazy-loading/index.d.ts +45 -0
  162. package/dist/select/presets/use-lazy-loading/index.js +1 -0
  163. package/dist/select/presets/use-select-with-loading/hook.js +1 -1
  164. package/dist/select/typings.d.ts +7 -0
  165. package/dist/select/utils.d.ts +13 -1
  166. package/dist/select/utils.js +1 -1
  167. package/dist/sidepanel-header/component.js +1 -1
  168. package/dist/sidepanel-header/index.js +1 -1
  169. package/dist/space/Item.js +1 -1
  170. package/dist/space/component.js +1 -1
  171. package/dist/space/index.js +1 -1
  172. package/dist/suffix-input/component.js +1 -1
  173. package/dist/suffix-input/index.js +1 -1
  174. package/dist/super-list-header/component.js +1 -1
  175. package/dist/super-list-header/index.js +1 -1
  176. package/dist/super-list-item/component.js +1 -1
  177. package/dist/super-list-item/index.js +1 -1
  178. package/dist/switch/component.js +1 -1
  179. package/dist/switch/index.js +1 -1
  180. package/dist/table/columns.js +1 -1
  181. package/dist/table/component.js +1 -1
  182. package/dist/table/components/cell/component.d.ts +6 -2
  183. package/dist/table/components/cell/component.js +1 -1
  184. package/dist/table/components/cell/index.js +1 -1
  185. package/dist/table/components/cells/index.js +1 -1
  186. package/dist/table/components/empty-list/index.js +1 -1
  187. package/dist/table/components/error/index.js +1 -1
  188. package/dist/table/components/pagination/index.js +1 -1
  189. package/dist/table/components/row/component.js +1 -1
  190. package/dist/table/components/row/index.js +1 -1
  191. package/dist/table/components/rows/index.js +1 -1
  192. package/dist/table/components/table-header/index.js +1 -1
  193. package/dist/table/hooks/use-table-data.js +1 -1
  194. package/dist/table/index.js +1 -1
  195. package/dist/table/table.js +1 -1
  196. package/dist/table/utils/add-query-param.js +1 -1
  197. package/dist/table/utils/get-query-from-url.js +1 -1
  198. package/dist/table/utils/index.d.ts +1 -1
  199. package/dist/table/utils/index.js +1 -1
  200. package/dist/table/utils/parse-query-params.js +1 -1
  201. package/dist/table/utils/query-adapter.js +1 -1
  202. package/dist/table/utils/remove-query-param.js +1 -1
  203. package/dist/table/utils/reset-query-param.js +1 -1
  204. package/dist/table-status/component.js +1 -1
  205. package/dist/table-status/index.js +1 -1
  206. package/dist/tag/component.js +1 -1
  207. package/dist/tag/index.js +1 -1
  208. package/dist/tags-list/component.js +1 -1
  209. package/dist/tags-list/index.js +1 -1
  210. package/dist/tariff-builder/component.js +1 -1
  211. package/dist/tariff-builder/index.js +1 -1
  212. package/dist/textarea/component.js +1 -1
  213. package/dist/textarea/index.js +1 -1
  214. package/dist/toast/component.js +1 -1
  215. package/dist/toast/index.js +1 -1
  216. package/dist/toast-notifier/component.js +1 -1
  217. package/dist/toast-notifier/index.js +1 -1
  218. package/dist/toast-plate/component.js +1 -1
  219. package/dist/toast-plate/index.js +1 -1
  220. package/dist/tooltip/component.js +1 -1
  221. package/dist/tooltip/index.js +1 -1
  222. package/dist/{tslib.es6-1cbf10ea.js → tslib.es6-597917f3.js} +0 -0
  223. package/dist/typography/component.js +1 -1
  224. package/dist/typography/index.js +1 -1
  225. package/dist/typography/text/component.js +1 -1
  226. package/dist/typography/text/index.js +1 -1
  227. package/dist/typography/title/component.js +1 -1
  228. package/dist/typography/title/index.js +1 -1
  229. package/dist/typography/title-responsive/component.js +1 -1
  230. package/dist/typography/title-responsive/index.js +1 -1
  231. package/dist/use-image-render-component-ae9e6591.d.ts +13 -0
  232. package/dist/use-image-render-component-ae9e6591.js +1 -0
  233. package/dist/utils/index.d.ts +2 -0
  234. package/dist/utils/index.js +1 -1
  235. package/dist/utils/show-toast/index.d.ts +3 -0
  236. package/dist/utils/show-toast/index.js +1 -0
  237. package/dist/vars/alpha-radiuses.css +1 -0
  238. package/dist/with-suffix/component.js +1 -1
  239. package/dist/with-suffix/index.js +1 -1
  240. package/package.json +8 -14
  241. package/dist/avatar/hooks/index.d.ts +0 -1
  242. package/dist/avatar/hooks/index.js +0 -1
  243. package/dist/avatar/hooks/use-image-loading-state.d.ts +0 -4
  244. package/dist/avatar/hooks/use-image-loading-state.js +0 -1
  245. package/dist/avatar/types.d.ts +0 -3
  246. package/dist/avatar/types.js +0 -1
  247. package/dist/cell/action/component.js +0 -1
  248. package/dist/cell/action/index.d.ts +0 -1
  249. package/dist/cell/action/index.js +0 -1
  250. package/dist/cell/autopayment/component.d.ts +0 -0
  251. package/dist/cell/autopayment/component.js +0 -1
  252. package/dist/cell/autopayment/index.d.ts +0 -1
  253. package/dist/cell/autopayment/index.js +0 -1
  254. package/dist/cell/catalog/component.d.ts +0 -0
  255. package/dist/cell/catalog/component.js +0 -1
  256. package/dist/cell/catalog/index.d.ts +0 -1
  257. package/dist/cell/catalog/index.js +0 -1
  258. package/dist/cell/subscription/component.d.ts +0 -0
  259. package/dist/cell/subscription/component.js +0 -1
  260. package/dist/cell/subscription/index.d.ts +0 -1
  261. package/dist/cell/subscription/index.js +0 -1
  262. package/dist/cell/transaction/component.d.ts +0 -19
  263. package/dist/cell/transaction/component.js +0 -1
  264. package/dist/cell/transaction/index.d.ts +0 -1
  265. package/dist/cell/transaction/index.js +0 -1
  266. package/dist/component-49e981c2.d.ts +0 -63
  267. package/dist/component-49e981c2.js +0 -1
  268. package/dist/component-5dbe6e58.d.ts +0 -17
  269. package/dist/photo-uploader/component.d.ts +0 -22
  270. package/dist/photo-uploader/component.js +0 -1
  271. package/dist/photo-uploader/index.d.ts +0 -1
  272. package/dist/photo-uploader/index.js +0 -1
  273. package/dist/photo-uploader-multiple/component.d.ts +0 -21
  274. package/dist/photo-uploader-multiple/component.js +0 -1
  275. package/dist/photo-uploader-multiple/index.d.ts +0 -1
  276. package/dist/photo-uploader-multiple/index.js +0 -1
  277. package/dist/photos/attach/index.d.ts +0 -7
  278. package/dist/photos/attach/index.js +0 -1
  279. package/dist/photos/index.d.ts +0 -2
  280. package/dist/photos/index.js +0 -1
  281. package/dist/photos/photo/index.d.ts +0 -11
  282. package/dist/photos/photo/index.js +0 -1
  283. package/dist/photos/photos/index.d.ts +0 -11
  284. package/dist/photos/photos/index.js +0 -1
  285. package/dist/super-ellipse/component.d.ts +0 -10
  286. package/dist/super-ellipse/component.js +0 -1
  287. package/dist/super-ellipse/index.d.ts +0 -1
  288. package/dist/super-ellipse/index.js +0 -1
  289. package/dist/super-ellipse-button/component.d.ts +0 -9
  290. package/dist/super-ellipse-button/component.js +0 -1
  291. package/dist/super-ellipse-button/index.d.ts +0 -1
  292. package/dist/super-ellipse-button/index.js +0 -1
  293. package/dist/super-ellipse-pure/component.d.ts +0 -11
  294. package/dist/super-ellipse-pure/component.js +0 -1
  295. package/dist/super-ellipse-pure/index.d.ts +0 -1
  296. package/dist/super-ellipse-pure/index.js +0 -1
  297. package/dist/super-ellipse-shape/component.d.ts +0 -12
  298. package/dist/super-ellipse-shape/component.js +0 -1
  299. package/dist/super-ellipse-shape/index.d.ts +0 -1
  300. package/dist/super-ellipse-shape/index.js +0 -1
@@ -1 +0,0 @@
1
- import r from"react";function n(n){var o=n.src,e=r.useState("loading"),t=e[0],a=e[1];return r.useEffect((function(){if(o){a("loading");var r=!0,n=new Image;return n.src=o,n.onload=function(){r&&a("loaded")},n.onerror=function(){r&&a("error")},function(){r=!1}}a("error")}),[o]),t}export{n as useImageLoadingState};
@@ -1,3 +0,0 @@
1
- declare const colors: readonly ["secondary", "primary"];
2
- type CommonColorBackground = typeof colors[number];
3
- export { colors, CommonColorBackground };
@@ -1 +0,0 @@
1
- var r=["secondary","primary"];export{r as colors};
@@ -1 +0,0 @@
1
- import"react";import"classnames";import"ts-keycode-enum";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../../super-ellipse/component.js";import"../../typography/component.js";export{A as Action}from"../../component-49e981c2.js";import"../../super-ellipse-pure/component.js";import"../../super-ellipse-shape/component.js";import"../../typography/title/index.js";import"../../tslib.es6-1cbf10ea.js";import"../../typography/title/component.js";import"../../colors.module-b735516a.js";import"../../common.module-63e05d9f.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../../divider/component.js";import"../pure/component.js";import"../../avatar/component.js";import"../../spinner/component.js";import"../../avatar/hooks/use-image-loading-state.js";import"../transaction/component.js";import"../../amount/component.js";import"../../utils/format-amount/util.js";import"../../utils/get-currency-symbol/util.js";import"../../utils/data/currency-codes.js";import"../../utils/split-amount/util.js";
@@ -1 +0,0 @@
1
- export * from "../../component-49e981c2";
@@ -1 +0,0 @@
1
- export{A as Action}from"../../component-49e981c2.js";import"react";import"classnames";import"ts-keycode-enum";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../../super-ellipse/component.js";import"../../super-ellipse-pure/component.js";import"../../super-ellipse-shape/component.js";import"../../typography/component.js";import"../../typography/title/index.js";import"../../tslib.es6-1cbf10ea.js";import"../../typography/title/component.js";import"../../colors.module-b735516a.js";import"../../common.module-63e05d9f.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../../divider/component.js";import"../pure/component.js";import"../../avatar/component.js";import"../../spinner/component.js";import"../../avatar/hooks/use-image-loading-state.js";import"../transaction/component.js";import"../../amount/component.js";import"../../utils/format-amount/util.js";import"../../utils/get-currency-symbol/util.js";import"../../utils/data/currency-codes.js";import"../../utils/split-amount/util.js";
File without changes
@@ -1 +0,0 @@
1
- import"react";import"classnames";import"../../__internal/utils/getDataTestId.js";import"../../divider/component.js";import"../../hooks/useFocus/index.js";import"../../typography/component.js";export{a as Autopayment}from"../../component-49e981c2.js";import"../../typography/title/index.js";import"../../tslib.es6-1cbf10ea.js";import"../../typography/title/component.js";import"../../colors.module-b735516a.js";import"../../common.module-63e05d9f.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"ts-keycode-enum";import"../../super-ellipse/component.js";import"../../super-ellipse-pure/component.js";import"../../super-ellipse-shape/component.js";import"../pure/component.js";import"../../avatar/component.js";import"../../spinner/component.js";import"../../avatar/hooks/use-image-loading-state.js";import"../transaction/component.js";import"../../amount/component.js";import"../../utils/format-amount/util.js";import"../../utils/get-currency-symbol/util.js";import"../../utils/data/currency-codes.js";import"../../utils/split-amount/util.js";
@@ -1 +0,0 @@
1
- export * from "../../component-49e981c2";
@@ -1 +0,0 @@
1
- export{a as Autopayment}from"../../component-49e981c2.js";import"react";import"classnames";import"ts-keycode-enum";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../../super-ellipse/component.js";import"../../super-ellipse-pure/component.js";import"../../super-ellipse-shape/component.js";import"../../typography/component.js";import"../../typography/title/index.js";import"../../tslib.es6-1cbf10ea.js";import"../../typography/title/component.js";import"../../colors.module-b735516a.js";import"../../common.module-63e05d9f.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../../divider/component.js";import"../pure/component.js";import"../../avatar/component.js";import"../../spinner/component.js";import"../../avatar/hooks/use-image-loading-state.js";import"../transaction/component.js";import"../../amount/component.js";import"../../utils/format-amount/util.js";import"../../utils/get-currency-symbol/util.js";import"../../utils/data/currency-codes.js";import"../../utils/split-amount/util.js";
File without changes
@@ -1 +0,0 @@
1
- import"react";import"classnames";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../../super-ellipse/component.js";import"../../typography/component.js";export{b as Catalog}from"../../component-49e981c2.js";import"../../super-ellipse-pure/component.js";import"../../super-ellipse-shape/component.js";import"../../typography/title/index.js";import"../../tslib.es6-1cbf10ea.js";import"../../typography/title/component.js";import"../../colors.module-b735516a.js";import"../../common.module-63e05d9f.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"ts-keycode-enum";import"../../divider/component.js";import"../pure/component.js";import"../../avatar/component.js";import"../../spinner/component.js";import"../../avatar/hooks/use-image-loading-state.js";import"../transaction/component.js";import"../../amount/component.js";import"../../utils/format-amount/util.js";import"../../utils/get-currency-symbol/util.js";import"../../utils/data/currency-codes.js";import"../../utils/split-amount/util.js";
@@ -1 +0,0 @@
1
- export * from "../../component-49e981c2";
@@ -1 +0,0 @@
1
- export{b as Catalog}from"../../component-49e981c2.js";import"react";import"classnames";import"ts-keycode-enum";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../../super-ellipse/component.js";import"../../super-ellipse-pure/component.js";import"../../super-ellipse-shape/component.js";import"../../typography/component.js";import"../../typography/title/index.js";import"../../tslib.es6-1cbf10ea.js";import"../../typography/title/component.js";import"../../colors.module-b735516a.js";import"../../common.module-63e05d9f.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../../divider/component.js";import"../pure/component.js";import"../../avatar/component.js";import"../../spinner/component.js";import"../../avatar/hooks/use-image-loading-state.js";import"../transaction/component.js";import"../../amount/component.js";import"../../utils/format-amount/util.js";import"../../utils/get-currency-symbol/util.js";import"../../utils/data/currency-codes.js";import"../../utils/split-amount/util.js";
File without changes
@@ -1 +0,0 @@
1
- import"react";import"classnames";import"ts-keycode-enum";import"../../avatar/component.js";import"../../hooks/useFocus/index.js";import"../../typography/component.js";export{S as Subscription}from"../../component-49e981c2.js";import"../../tslib.es6-1cbf10ea.js";import"../../__internal/utils/getDataTestId.js";import"../../spinner/component.js";import"../../avatar/hooks/use-image-loading-state.js";import"../../typography/title/index.js";import"../../typography/title/component.js";import"../../colors.module-b735516a.js";import"../../common.module-63e05d9f.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../../super-ellipse/component.js";import"../../super-ellipse-pure/component.js";import"../../super-ellipse-shape/component.js";import"../../divider/component.js";import"../pure/component.js";import"../transaction/component.js";import"../../amount/component.js";import"../../utils/format-amount/util.js";import"../../utils/get-currency-symbol/util.js";import"../../utils/data/currency-codes.js";import"../../utils/split-amount/util.js";
@@ -1 +0,0 @@
1
- export * from "../../component-49e981c2";
@@ -1 +0,0 @@
1
- export{S as Subscription}from"../../component-49e981c2.js";import"react";import"classnames";import"ts-keycode-enum";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../../super-ellipse/component.js";import"../../super-ellipse-pure/component.js";import"../../super-ellipse-shape/component.js";import"../../typography/component.js";import"../../typography/title/index.js";import"../../tslib.es6-1cbf10ea.js";import"../../typography/title/component.js";import"../../colors.module-b735516a.js";import"../../common.module-63e05d9f.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../../divider/component.js";import"../pure/component.js";import"../../avatar/component.js";import"../../spinner/component.js";import"../../avatar/hooks/use-image-loading-state.js";import"../transaction/component.js";import"../../amount/component.js";import"../../utils/format-amount/util.js";import"../../utils/get-currency-symbol/util.js";import"../../utils/data/currency-codes.js";import"../../utils/split-amount/util.js";
@@ -1,19 +0,0 @@
1
- /// <reference types="react" />
2
- import React from 'react';
3
- import { AmountType } from "../../utils/format-amount/util";
4
- type TransactionProps = {
5
- slot: React.ReactNode;
6
- title: string;
7
- category?: string;
8
- categoryPercent?: number;
9
- amount: AmountType;
10
- type?: 'default' | 'income' | 'hold';
11
- profit?: number;
12
- profitType?: 'alfa' | 'cash';
13
- comment?: string;
14
- className?: string;
15
- dataTestId?: string;
16
- onClick?: () => void;
17
- };
18
- declare const Transaction: React.FC<TransactionProps>;
19
- export { TransactionProps, Transaction };
@@ -1 +0,0 @@
1
- import e,{useRef as t,useCallback as o}from"react";import m from"classnames";import{getDataTestId as a}from"../../__internal/utils/getDataTestId.js";import{Amount as r}from"../../amount/component.js";import{useFocus as n}from"../../hooks/useFocus/index.js";import{Typography as l}from"../../typography/component.js";import"../../tslib.es6-1cbf10ea.js";import"../../utils/format-amount/util.js";import"../../utils/get-currency-symbol/util.js";import"../../utils/data/currency-codes.js";import"../../utils/split-amount/util.js";import"../../typography/title/index.js";import"../../typography/title/component.js";import"../../colors.module-b735516a.js";import"../../common.module-63e05d9f.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";var i="index-module_component__3WKk8",c="index-module_slot__3-oQ0",s="index-module_title__3SCFU",d="index-module_content__T63TF",p="index-module_contentWrapper__3nonU",u="index-module_category__GwY-S",_="index-module_categoryPercent__1zrQk",y="index-module_amount__16vE9",v="index-module_positiveAmount__3qWEM",x="index-module_profit__3NGqk",E="index-module_comment__3FRy7",f="index-module_commentTextWrapper__PKIqe",g="index-module_commentText__2e0YN",N="index-module_focused__1K2z_",j=function(j){var T,w=j.slot,h=j.title,k=j.comment,b=j.category,C=void 0===b?"Другое":b,F=j.amount,I=j.profit,K=j.categoryPercent,P=j.type,W=void 0===P?"default":P,q=j.className,z=j.dataTestId,G=j.onClick,Q=t(null),S=n(Q,"keyboard")[0],U=o((function(e){void 0!==G&&(13===(e.charCode||e.keyCode)&&G())}),[G]);return e.createElement("div",{ref:Q,onKeyPress:U,onClick:G,role:"button",tabIndex:0,className:m(i,(T={},T[N]=S,T),q),"data-test-id":a("cell-transaction",z,!0)},e.createElement("div",{className:c},w),e.createElement("div",{className:d},e.createElement("div",{className:p},e.createElement(l.Text,{className:s,view:"component"},h),C&&e.createElement("div",{className:u},e.createElement(l.Text,{view:"primary-small",color:"secondary"},C),K&&e.createElement(l.Text,{tag:"div",view:"primary-small",color:"secondary",className:_},K,"%")),e.createElement("div",{className:y},"income"===W?e.createElement(l.Text,{view:"component",tag:"div",className:v},"+",e.createElement(r,{view:"title",currency:F.currency,value:F.value})):e.createElement(l.Text,{view:"component",tag:"div"},"-",e.createElement(r,{value:F.value,currency:F.currency})),"hold"===W&&e.createElement(e.Fragment,null," ")),I&&e.createElement(l.Text,{className:x,view:"primary-small",color:"secondary"},"+",I))),k&&e.createElement("div",{className:E},e.createElement("div",{className:f},e.createElement(l.Text,{tag:"div",view:"primary-small",className:g},k))))};export{j as Transaction};
@@ -1 +0,0 @@
1
- export * from "./component";
@@ -1 +0,0 @@
1
- export{Transaction}from"./component.js";import"react";import"classnames";import"../../__internal/utils/getDataTestId.js";import"../../amount/component.js";import"../../tslib.es6-1cbf10ea.js";import"../../typography/component.js";import"../../typography/title/index.js";import"../../typography/title/component.js";import"../../colors.module-b735516a.js";import"../../common.module-63e05d9f.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../../utils/format-amount/util.js";import"../../utils/get-currency-symbol/util.js";import"../../utils/data/currency-codes.js";import"../../utils/split-amount/util.js";import"../../hooks/useFocus/index.js";
@@ -1,63 +0,0 @@
1
- /// <reference types="react" />
2
- import React from "react";
3
- import { SuperEllipseProps } from "./super-ellipse/index";
4
- import { PureProps } from "./cell/pure/component";
5
- type CatalogProps = {
6
- icon: React.ReactNode;
7
- view?: "secondary" | "inverted";
8
- direction?: "horizontal" | "vertical";
9
- className?: string;
10
- dataTestId?: string;
11
- onClick: () => void;
12
- };
13
- declare const Catalog: React.FC<CatalogProps>;
14
- type BaseProps = {
15
- src?: string;
16
- icon?: React.ReactNode;
17
- title?: React.ReactNode;
18
- subtitle?: React.ReactNode;
19
- className?: string;
20
- ellipseClassName?: string;
21
- order?: PureProps["order"];
22
- size?: PureProps["size"];
23
- dataTestId?: string;
24
- view?: SuperEllipseProps["view"];
25
- };
26
- declare const Base: React.FC<BaseProps>;
27
- type AutopaymentProps = {
28
- slot?: React.ReactNode;
29
- extra?: React.ReactNode;
30
- view?: "default" | "primary";
31
- title: React.ReactNode;
32
- description?: string;
33
- footer?: React.ReactNode;
34
- divider?: boolean;
35
- className?: string;
36
- titleClassName?: string;
37
- dataTestId?: string;
38
- onClick: () => void;
39
- };
40
- declare const Autopayment: React.FC<AutopaymentProps>;
41
- type ActionProps = {
42
- icon: React.ReactNode;
43
- ellipse?: boolean;
44
- title?: React.ReactNode;
45
- subtitle: React.ReactNode;
46
- onClick: () => void;
47
- className?: string;
48
- order?: PureProps["order"];
49
- size?: PureProps["size"];
50
- dataTestId?: string;
51
- };
52
- declare const Action: React.FC<ActionProps>;
53
- type SubscriptionProps = {
54
- src: string;
55
- alt: string;
56
- title: React.ReactNode;
57
- subtitle: React.ReactNode;
58
- icon?: React.ReactNode;
59
- onClick: () => void;
60
- className?: string;
61
- };
62
- declare const Subscription: React.FC<SubscriptionProps>;
63
- export { CatalogProps, Catalog, BaseProps, Base, AutopaymentProps, Autopayment, ActionProps, Action, SubscriptionProps, Subscription };
@@ -1 +0,0 @@
1
- import e,{useRef as t,useCallback as o}from"react";import a from"classnames";import{Key as l}from"ts-keycode-enum";import{getDataTestId as n}from"./__internal/utils/getDataTestId.js";import{useFocus as i}from"./hooks/useFocus/index.js";import{SuperEllipse as r}from"./super-ellipse/component.js";import{Typography as d}from"./typography/component.js";import{Divider as s}from"./divider/component.js";import{Pure as c}from"./cell/pure/component.js";import{Avatar as m}from"./avatar/component.js";import{Transaction as _}from"./cell/transaction/component.js";var u="index-module_component__sbYAG",p="index-module_superEllipse__14Bx5",x="index-module_iconMixColors__2khCL",v="index-module_title__9v4U9",f="index-module_subtitle__2edft",y="index-module_focused__39xUe",E=function(s){var c,m=s.icon,_=s.onClick,E=s.className,N=s.dataTestId,T=s.order,b=void 0===T?"reverse":T,C=s.ellipse,k=void 0===C||C,w=s.title,I=s.subtitle,g=s.size,h=t(null),j=i(h,"keyboard")[0],P=o((function(e){(e.charCode||e.keyCode)===l.Enter&&_()}),[_]),K=k?e.createElement(r,{className:p,view:"secondary"},m):e.createElement("div",{className:x},m);return e.createElement(B.Pure,{slot:K,onClick:_,className:a(u,(c={},c[y]=j,c),E),dataTestId:n("cell-action",N,!0),order:b,role:"button",tabIndex:0,size:g,onKeyPress:P,ref:h},w&&e.createElement(d.Text,{view:"primary-small",color:"secondary",tag:"div",className:v},w),e.createElement(d.Text,{view:"component",tag:"div",className:f,color:"primary"},I))},N={component:"index-module_component__1p3vg",slot:"index-module_slot__1Oa0-",title:"index-module_title__2u71k",primary:"index-module_primary__3wTjy",cell:"index-module_cell__3_yK7",default:"index-module_default__L1uVr",container:"index-module_container__452iY",textContainer:"index-module_textContainer__OmDn_",footer:"index-module_footer__1y7uS",description:"index-module_description__2OCm8",divider:"index-module_divider__3KcVj",focused:"index-module_focused__2AtJK"},T=function(o){var l,r=o.slot,c=o.extra,m=o.title,_=o.description,u=o.footer,p=o.divider,x=o.view,v=void 0===x?"primary":x,f=o.className,y=o.dataTestId,E=o.onClick,T=t(null),b=i(T,"keyboard")[0];return e.createElement("div",{className:a(N.component,N[v],(l={},l[N.focused]=b,l),f)},e.createElement(B.Pure,{dataTestId:n("cell-autopayment",y,!0),className:N.cell,onClick:E,role:"button",tabIndex:0,ref:T,slot:r&&e.createElement("div",{className:N.slot},r)},e.createElement("div",{className:N.container},e.createElement("div",{className:N.textContainer},e.createElement(d.Text,{view:"component",className:N.title},m),_&&e.createElement(d.Text,{view:"primary-small",color:"secondary",className:N.description},_)),c&&e.createElement(d.Text,{view:"component",tag:"div"},c))),u&&e.createElement("div",{className:N.footer},u),p&&e.createElement("div",{className:N.divider},e.createElement(s,null)))},b="index-module_component__2592K",C="index-module_superEllipse__ceW1i",k="index-module_title__3aV9N",w="index-module_subtitle__1qfeh",I="index-module_focused__1vVeT",g=function(o){var l,s=o.icon,c=o.className,m=o.ellipseClassName,_=o.src,u=o.dataTestId,p=o.order,x=void 0===p?"normal":p,v=o.title,f=o.subtitle,y=o.size,E=void 0===y?"m":y,N=o.view,T=void 0===N?"secondary":N,g=t(null),h=i(g,"keyboard")[0],j=s||_?e.createElement(r,{size:"s",imageUrl:_,className:a(C,m),view:T},s):null;return e.createElement(B.Pure,{slot:j,className:a(b,(l={},l[I]=h,l),c),dataTestId:n("cell-action",u,!0),order:x,tabIndex:0,size:E,ref:g},v&&e.createElement(d.Text,{view:"title",color:"primary",weight:"medium",tag:"div",className:k},v),f&&e.createElement(d.Text,{weight:"medium",view:"caps",tag:"div",className:w,color:"secondary"},f))},h={component:"index-module_component__1gByI",slot:"index-module_slot__lNwqi",secondary:"index-module_secondary__FnFK1",inverted:"index-module_inverted__2TMrm",text:"index-module_text__cDUg-",focused:"index-module_focused__1ruEE"},j=function(l){var s,c=l.icon,m=l.view,_=void 0===m?"secondary":m,u=l.direction,p=void 0===u?"horizontal":u,x=l.className,v=l.dataTestId,f=l.onClick,y=l.children,E=t(null),N=i(E,"keyboard")[0],T=o((function(e){void 0!==f&&(13===(e.charCode||e.keyCode)&&f())}),[f]);return e.createElement(B.Pure,{dataTestId:n("cell-catalog",v,!0),className:a(h.component,h[_],(s={},s[h.focused]=N,s),x),direction:p,onClick:f,role:"button",tabIndex:0,onKeyPress:T,ref:E,slot:e.createElement(r,{view:_,className:h.slot},c)},e.createElement(d.Text,{view:"component",className:h.text},y))},P="index-module_component__3MlDP",K="index-module_avatar__1RmGh",z="index-module_title__RTbCk",A="index-module_subtitle__cjZVa",U="index-module_focused__38ljU",V=function(n){var r,s=n.src,c=n.alt,_=n.onClick,u=n.className,p=n.title,x=n.subtitle,v=n.icon,f=t(null),y=i(f,"keyboard")[0],E=o((function(e){(e.charCode||e.keyCode)===l.Enter&&_()}),[_]),N=e.createElement(m,{src:s,alt:c,className:K,view:"secondary"},v);return e.createElement(B.Pure,{slot:N,onClick:_,className:a(P,(r={},r[U]=y,r),u),dataTestId:"cell-subscription",role:"button",tabIndex:0,onKeyPress:E,ref:f},e.createElement(d.Text,{view:"component",color:"primary",tag:"div",className:z,dataTestId:"title"},p),e.createElement(d.Text,{view:"primary-small",tag:"div",className:A,color:"secondary",dataTestId:"subtitle"},x))},B={Pure:c,Action:E,Catalog:j,Autopayment:T,Transaction:_,Subscription:V,Base:g};export{E as A,g as B,B as C,V as S,T as a,j as b};
@@ -1,17 +0,0 @@
1
- import { Action } from "./cell/action/index";
2
- import { Autopayment } from "./cell/autopayment/index";
3
- import { Base } from "./cell/base/index";
4
- import { Catalog } from "./cell/catalog/index";
5
- import { Pure } from "./cell/pure/index";
6
- import { Subscription } from "./cell/subscription/index";
7
- import { Transaction } from "./cell/transaction/index";
8
- declare const Cell: {
9
- Pure: typeof Pure;
10
- Action: typeof Action;
11
- Catalog: typeof Catalog;
12
- Autopayment: typeof Autopayment;
13
- Transaction: typeof Transaction;
14
- Subscription: typeof Subscription;
15
- Base: typeof Base;
16
- };
17
- export { Cell };
@@ -1,22 +0,0 @@
1
- /// <reference types="react" />
2
- import React from 'react';
3
- import { AxiosPromise } from 'axios';
4
- type Format = 'jpg' | 'png';
5
- type Type = 'questrooms' | 'certificates' | 'avatars' | 'logos' | 'locations';
6
- type SaveProps = {
7
- img: string | ArrayBuffer | null;
8
- type: Type;
9
- format: Format;
10
- };
11
- type PhotoUploaderProps = {
12
- title: string;
13
- subtitle?: string;
14
- onChange: (value: string) => void;
15
- value: string;
16
- type: Type;
17
- format: Format;
18
- saveImage: ({ img, type, format }: SaveProps) => AxiosPromise | any;
19
- padding?: string;
20
- };
21
- declare const PhotoUploader: React.FC<PhotoUploaderProps>;
22
- export { PhotoUploaderProps, PhotoUploader };
@@ -1 +0,0 @@
1
- import t,{useRef as e}from"react";import{PlusS as o}from"alpha-cli-icons";import{FlexColumns as r}from"../flex-columns/component.js";import{IconButton as n}from"../icon-button/component.js";import{Image as i}from"../image/component.js";import{Padding as m}from"../padding/component.js";import{SuperListHeader as a}from"../super-list-header/component.js";import{ToastNotifier as p}from"../toast-notifier/component.js";import{Typography as s}from"../typography/component.js";import"../tslib.es6-1cbf10ea.js";import"classnames";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../avatar/hooks/use-image-loading-state.js";import"../spinner/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-b735516a.js";import"../common.module-63e05d9f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"react-dom";import"../toast-plate/component.js";import"../toast-notifier/use-timer.js";var c=function(c){var l=c.title,u=c.subtitle,f=c.onChange,d=c.value,g=c.saveImage,j=c.type,v=c.format,h=c.padding,y=void 0===h?"8px 0":h,E=e(null);return t.createElement(t.Fragment,null,t.createElement("input",{type:"file",style:{height:0,position:"absolute"},ref:E,onChange:function(t){var e,o=t.target.files[0];(null===(e=E.current)||void 0===e?void 0:e.value)&&(E.current.value="");var r=new FileReader;r.readAsDataURL(o),r.onload=function(){var t=r.result;g({img:t,type:j,format:v}).then((function(t){f(t.data?t.data.src:t.src)})).catch((function(t){return p({title:"Error",offset:32,view:"negative",text:t.message})}))}},multiple:!1}),t.createElement(a,{text:l,leftAddons:!d&&t.createElement(n,{onClick:function(){var t;return null===(t=E.current)||void 0===t?void 0:t.click()},icon:o})}),u&&t.createElement(s.Text,{view:"primary-small",color:"secondary",weight:"medium"},u),d&&t.createElement(t.Fragment,null,t.createElement(m,{padding:y}),t.createElement(r,{columns:3,gc:8,gr:8},t.createElement(i,{src:d,onRemoveClick:function(){return f("")}}))))};export{c as PhotoUploader};
@@ -1 +0,0 @@
1
- export * from "./component";
@@ -1 +0,0 @@
1
- export{PhotoUploader}from"./component.js";import"react";import"alpha-cli-icons";import"../flex-columns/component.js";import"../icon-button/component.js";import"../tslib.es6-1cbf10ea.js";import"classnames";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../image/component.js";import"../avatar/hooks/use-image-loading-state.js";import"../spinner/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-b735516a.js";import"../common.module-63e05d9f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../padding/component.js";import"../super-list-header/component.js";import"../toast-notifier/component.js";import"react-dom";import"../toast-plate/component.js";import"../toast-notifier/use-timer.js";
@@ -1,21 +0,0 @@
1
- /// <reference types="react" />
2
- import React from 'react';
3
- import { AxiosPromise } from 'axios';
4
- type Format = 'jpg' | 'png';
5
- type Type = 'questrooms' | 'certificates' | 'avatars' | 'logos' | 'locations';
6
- type SaveProps = {
7
- img: string | ArrayBuffer | null;
8
- type: Type;
9
- format: Format;
10
- };
11
- type PhotoUploaderMultipleProps = {
12
- title: string;
13
- subtitle?: string;
14
- onChange: (values: string[]) => void;
15
- values: string[];
16
- type: Type;
17
- format: Format;
18
- saveImage: ({ img, type, format }: SaveProps) => AxiosPromise | any;
19
- };
20
- declare const PhotoUploaderMultiple: React.FC<PhotoUploaderMultipleProps>;
21
- export { PhotoUploaderMultipleProps, PhotoUploaderMultiple };
@@ -1 +0,0 @@
1
- import{b as t}from"../tslib.es6-1cbf10ea.js";import e,{useRef as o}from"react";import{PlusS as r}from"alpha-cli-icons";import{FlexColumns as n}from"../flex-columns/component.js";import{IconButton as i}from"../icon-button/component.js";import{Image as m}from"../image/component.js";import{Padding as a}from"../padding/component.js";import{SuperListHeader as l}from"../super-list-header/component.js";import{ToastNotifier as p}from"../toast-notifier/component.js";import{Typography as s}from"../typography/component.js";import"classnames";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../avatar/hooks/use-image-loading-state.js";import"../spinner/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-b735516a.js";import"../common.module-63e05d9f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"react-dom";import"../toast-plate/component.js";import"../toast-notifier/use-timer.js";var c=function(c){var u=c.title,f=c.subtitle,d=c.onChange,g=c.values,v=c.saveImage,j=c.type,h=c.format,y=o(null),E=function(e){d((null==g?void 0:g.includes(e))?null==g?void 0:g.filter((function(t){return t!==e})):t(g,[e]))};return e.createElement(e.Fragment,null,e.createElement("input",{type:"file",style:{height:0,position:"absolute"},ref:y,onChange:function(t){var e,o=t.target.files[0];(null===(e=y.current)||void 0===e?void 0:e.value)&&(y.current.value="");var r=new FileReader;r.readAsDataURL(o),r.onload=function(){var t=r.result;v({img:t,type:j,format:h}).then((function(t){return E(t.data?t.data.src:t.src)})).catch((function(t){return p({title:"Error",offset:32,view:"negative",text:t.message})}))}},multiple:!1}),e.createElement(l,{text:u,leftAddons:e.createElement(i,{onClick:function(){var t;return null===(t=y.current)||void 0===t?void 0:t.click()},icon:r})}),f&&e.createElement(s.Text,{view:"primary-small",color:"secondary",weight:"medium"},f),g&&!!g.length&&e.createElement(e.Fragment,null,e.createElement(a,{padding:"16px 0"}),e.createElement(n,{columns:3,gc:8,gr:8},null==g?void 0:g.map((function(t){return e.createElement(m,{key:t,src:t,onRemoveClick:function(){return E(t)}})})))))};export{c as PhotoUploaderMultiple};
@@ -1 +0,0 @@
1
- export * from "./component";
@@ -1 +0,0 @@
1
- export{PhotoUploaderMultiple}from"./component.js";import"../tslib.es6-1cbf10ea.js";import"react";import"alpha-cli-icons";import"../flex-columns/component.js";import"../icon-button/component.js";import"classnames";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../image/component.js";import"../avatar/hooks/use-image-loading-state.js";import"../spinner/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-b735516a.js";import"../common.module-63e05d9f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../padding/component.js";import"../super-list-header/component.js";import"../toast-notifier/component.js";import"react-dom";import"../toast-plate/component.js";import"../toast-notifier/use-timer.js";
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- import React from 'react';
3
- type Props = {
4
- onChange: (file: File) => void;
5
- };
6
- declare const Attach: React.FC<Props>;
7
- export { Attach };
@@ -1 +0,0 @@
1
- import e,{useRef as t}from"react";import{PlusS as o}from"alpha-cli-icons";import{IconButton as n}from"../../icon-button/component.js";import"../../tslib.es6-1cbf10ea.js";import"classnames";import"../../button/component.js";import"react-merge-refs";import"../../hooks/useFocus/index.js";import"../../loader/component.js";var r=function(r){var i=r.onChange,l=t(null);return e.createElement(e.Fragment,null,e.createElement("input",{type:"file",style:{height:0,position:"absolute"},ref:l,onChange:function(e){var t=e.target.files&&e.target.files[0];t&&i(t)},multiple:!1}),e.createElement(n,{onClick:function(){var e;return null===(e=l.current)||void 0===e?void 0:e.click()},icon:o}))};export{r as Attach};
@@ -1,2 +0,0 @@
1
- export * from "./photo/index";
2
- export * from "./photos/index";
@@ -1 +0,0 @@
1
- export{Photo}from"./photo/index.js";export{Photos}from"./photos/index.js";import"react";import"../image/component.js";import"alpha-cli-icons";import"classnames";import"../avatar/hooks/use-image-loading-state.js";import"../icon-button/component.js";import"../tslib.es6-1cbf10ea.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-b735516a.js";import"../common.module-63e05d9f.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../padding/component.js";import"../super-list-header/component.js";import"./attach/index.js";import"../flex-columns/component.js";
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import React from 'react';
3
- type Props = {
4
- title: string;
5
- subtitle?: string;
6
- value: string;
7
- onAdd: (file: File) => void;
8
- onRemove: (value: string) => void;
9
- };
10
- declare const Photo: React.FC<Props>;
11
- export { Photo };
@@ -1 +0,0 @@
1
- import o from"react";import{Image as t,ImageSizes as e}from"../../image/component.js";import{Padding as r}from"../../padding/component.js";import{SuperListHeader as m}from"../../super-list-header/component.js";import{Typography as n}from"../../typography/component.js";import{Attach as p}from"../attach/index.js";import"alpha-cli-icons";import"classnames";import"../../avatar/hooks/use-image-loading-state.js";import"../../icon-button/component.js";import"../../tslib.es6-1cbf10ea.js";import"../../button/component.js";import"react-merge-refs";import"../../hooks/useFocus/index.js";import"../../loader/component.js";import"../../spinner/component.js";import"../../typography/title/index.js";import"../../typography/title/component.js";import"../../colors.module-b735516a.js";import"../../common.module-63e05d9f.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";var i=function(i){var s=i.title,a=i.subtitle,c=i.value,l=i.onAdd,j=i.onRemove;return o.createElement(o.Fragment,null,o.createElement(m,{text:s}),a&&o.createElement(n.Text,{view:"primary-small",color:"secondary",weight:"medium"},a),o.createElement(r,{padding:"8px 0"}),c&&o.createElement(t,{size:e.s,src:c,onRemoveClick:function(){return j(c)}}),l&&o.createElement(p,{onChange:l}))};export{i as Photo};
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import React from 'react';
3
- type Props = {
4
- title: string;
5
- subtitle?: string;
6
- value: string[];
7
- onAdd?: (file: File) => void;
8
- onRemove?: (value: string[]) => void;
9
- };
10
- declare const Photos: React.FC<Props>;
11
- export { Photos };
@@ -1 +0,0 @@
1
- import o from"react";import{FlexColumns as t}from"../../flex-columns/component.js";import{Image as e,ImageSizes as r}from"../../image/component.js";import{Padding as n}from"../../padding/component.js";import{SuperListHeader as m}from"../../super-list-header/component.js";import{Typography as i}from"../../typography/component.js";import{Attach as p}from"../attach/index.js";import"alpha-cli-icons";import"classnames";import"../../avatar/hooks/use-image-loading-state.js";import"../../icon-button/component.js";import"../../tslib.es6-1cbf10ea.js";import"../../button/component.js";import"react-merge-refs";import"../../hooks/useFocus/index.js";import"../../loader/component.js";import"../../spinner/component.js";import"../../typography/title/index.js";import"../../typography/title/component.js";import"../../colors.module-b735516a.js";import"../../common.module-63e05d9f.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";var s=function(s){var a=s.title,c=s.subtitle,l=s.value,u=void 0===l?[]:l,j=s.onAdd,d=s.onRemove;return o.createElement(o.Fragment,null,o.createElement(m,{text:a}),c&&o.createElement(i.Text,{view:"primary-small",color:"secondary",weight:"medium"},c),o.createElement(n,{padding:"8px 0"}),o.createElement(t,{columns:3,gc:8,gr:8},u.map((function(t){return o.createElement(e,{src:t,size:r.s,onRemoveClick:function(){return function(o){d&&d(u.filter((function(t){return t!==o})))}(t)}})})),j&&o.createElement(p,{onChange:j})))};export{s as Photos};
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- import React from 'react';
3
- import { SuperEllipseShapeProps } from "../super-ellipse-shape/index";
4
- type SuperEllipseProps = Omit<SuperEllipseShapeProps, 'fill'> & {
5
- className?: string;
6
- view?: 'attention' | 'secondary' | 'success' | 'warning' | 'error' | 'static' | 'inverted' | 'accent' | 'accent-inverted';
7
- dataTestId?: string;
8
- };
9
- declare const SuperEllipse: React.FC<SuperEllipseProps>;
10
- export { SuperEllipseProps, SuperEllipse };
@@ -1 +0,0 @@
1
- import e from"react";import i from"classnames";import{getDataTestId as n}from"../__internal/utils/getDataTestId.js";import{SuperEllipsePure as s}from"../super-ellipse-pure/component.js";import"../super-ellipse-shape/component.js";var t={ellipse:"index-module_ellipse__2ybxq",attention:"index-module_attention__3yJeV",success:"index-module_success__uPsSv",error:"index-module_error__1eNHg",warning:"index-module_warning__2HIxa",secondary:"index-module_secondary__20qRr",static:"index-module_static__3Xz_I",inverted:"index-module_inverted__1KwGN",accent:"index-module_accent__3bW5m","accent-inverted":"index-module_accent-inverted__3nGHa",icon:"index-module_icon__ziu9T"},a=function(a){var o=a.size,r=a.view,d=void 0===r?"secondary":r,l=a.outlined,_=a.imageUrl,m=a.className,c=a.dataTestId,u=a.children;return e.createElement(s,{size:o,outlined:l,imageUrl:_,className:i(t[d],m),shapeClassName:i(t.ellipse,t[d]),iconClassName:i(t.icon,t[d]),dataTestId:n("super-ellipse",c,!0)},u)};export{a as SuperEllipse};
@@ -1 +0,0 @@
1
- export * from "./component";
@@ -1 +0,0 @@
1
- export{SuperEllipse}from"./component.js";import"react";import"classnames";import"../__internal/utils/getDataTestId.js";import"../super-ellipse-pure/component.js";import"../super-ellipse-shape/component.js";
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import React from 'react';
3
- import { IButtonProps } from "../button/index";
4
- import { SuperEllipseProps } from "../super-ellipse/index";
5
- interface SuperEllipseButtonProps extends Omit<IButtonProps, 'view' | 'leftAddons' | 'rightAddons' | 'loading'> {
6
- superEllipseProps?: SuperEllipseProps;
7
- }
8
- declare const SuperEllipseButton: React.FC<SuperEllipseButtonProps>;
9
- export { SuperEllipseButtonProps, SuperEllipseButton };
@@ -1 +0,0 @@
1
- import{_ as e,a as s}from"../tslib.es6-1cbf10ea.js";import o from"react";import r from"classnames";import{Button as t}from"../button/component.js";import{SuperEllipse as m}from"../super-ellipse/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../__internal/utils/getDataTestId.js";import"../super-ellipse-pure/component.js";import"../super-ellipse-shape/component.js";var p="component-module_component__2ITBq",a="component-module_superEllipse__ArZlb",l=function(l){var n=l.children,i=l.className,c=l.superEllipseProps,u=void 0===c?{}:c,d=u.className,_=e(u,["className"]),f=e(l,["children","className","superEllipseProps"]);return o.createElement(t,s({view:"ghost",className:r(p,i)},f),o.createElement(m,s({className:r(a,d),view:"secondary"},_),n))};export{l as SuperEllipseButton};
@@ -1 +0,0 @@
1
- export * from "./component";
@@ -1 +0,0 @@
1
- export{SuperEllipseButton}from"./component.js";import"../tslib.es6-1cbf10ea.js";import"react";import"classnames";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../super-ellipse/component.js";import"../__internal/utils/getDataTestId.js";import"../super-ellipse-pure/component.js";import"../super-ellipse-shape/component.js";
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import React from 'react';
3
- import { SuperEllipseShapeProps } from "../super-ellipse-shape/index";
4
- type SuperEllipsePureProps = SuperEllipseShapeProps & {
5
- className?: string;
6
- shapeClassName?: string;
7
- iconClassName?: string;
8
- dataTestId?: string;
9
- };
10
- declare const SuperEllipsePure: React.FC<SuperEllipsePureProps>;
11
- export { SuperEllipsePureProps, SuperEllipsePure };
@@ -1 +0,0 @@
1
- import e from"react";import l from"classnames";import{getDataTestId as i}from"../__internal/utils/getDataTestId.js";import{SuperEllipseShape as o}from"../super-ellipse-shape/component.js";var s={component:"index-module_component__1dGld",ellipse:"index-module_ellipse__2Jlog",icon:"index-module_icon__1b9c8","icon-s":"index-module_icon-s__10VCY","icon-xl":"index-module_icon-xl__2j9RS"},n=function(n){var a=n.size,t=void 0===a?"s":a,m=n.outlined,c=void 0!==m&&m,r=n.imageUrl,d=n.className,p=n.shapeClassName,_=n.iconClassName,u=n.dataTestId,v=n.fill,x=void 0===v?"currentColor":v,f=n.children;return e.createElement("div",{className:l(s.component,d),"data-test-id":i("super-ellipse-pure",u,!0)},e.createElement("div",{className:s.ellipse},e.createElement(o,{size:t,outlined:c,imageUrl:r,className:p,fill:x}),!r&&e.createElement("div",{className:l(s.icon,s["icon-"+t],_)},f)))};export{n as SuperEllipsePure};
@@ -1 +0,0 @@
1
- export * from "./component";
@@ -1 +0,0 @@
1
- export{SuperEllipsePure}from"./component.js";import"react";import"classnames";import"../__internal/utils/getDataTestId.js";import"../super-ellipse-shape/component.js";
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- import React from 'react';
3
- type SuperEllipseShapeSize = 's' | 'm' | 'xl';
4
- type SuperEllipseShapeProps = {
5
- size?: SuperEllipseShapeSize;
6
- outlined?: boolean;
7
- imageUrl?: string;
8
- fill?: string;
9
- className?: string;
10
- };
11
- declare const SuperEllipseShape: React.FC<SuperEllipseShapeProps>;
12
- export { SuperEllipseShapeProps, SuperEllipseShape };
@@ -1 +0,0 @@
1
- import e from"react";import C from"classnames";var t="index-module_ellipse__1Ees1",l="index-module_path__2KkFH",i="index-module_outlined__-yEBA",n={s:"M 1.0816 10.3168 C 1.7472 5.408 5.408 1.7472 10.3168 1.0816 C 12.896 0.6656 16.0576 0.416 19.968 0.416 C 23.8784 0.416 27.04 0.6656 29.6192 1.0816 C 34.528 1.7472 38.1888 5.408 38.8544 10.3168 C 39.2704 12.896 39.52 16.0576 39.624 19.924 C 39.52 23.8784 39.2704 27.04 38.8544 29.6192 C 38.1888 34.528 34.528 38.1888 29.6192 38.8544 C 27.04 39.2704 23.8784 39.52 19.965 39.709 C 16.0576 39.52 12.896 39.2704 10.3168 38.8544 C 5.408 38.1888 1.7472 34.528 1.0816 29.6192 C 0.6656 27.04 0.416 23.8784 0.416 19.968 C 0.416 16.0576 0.6656 12.896 1.0816 10.3168 Z",m:"M1.27524 12.3866C2.11691 6.50603 6.50603 2.11691 12.3866 1.27524C15.4774 0.832869 19.3485 0.5 24\n 0.5C28.6515 0.5 32.5226 0.832869 35.6134 1.27524C41.494 2.11691 45.8831 6.50603 46.7248 12.3866C47.1671\n 15.4774 47.5 19.3485 47.5 24C47.5 28.6515 47.1671 32.5226 46.7248 35.6134C45.8831 41.494 41.494 45.8831\n 35.6134 46.7248C32.5226 47.1671 28.6515 47.5 24 47.5C19.3485 47.5 15.4774 47.1671 12.3866 46.7248C6.50603\n 45.8831 2.11691 41.494 1.27524 35.6134C0.832869 32.5226 0.5 28.6515 0.5 24C0.5 19.3485 0.832869 15.4774\n 1.27524 12.3866Z",xl:"M1.30048 20.5263C2.75571 10.3588 10.3588 2.75571 20.5263 1.30048C25.7164 0.557648 32.2076 0 40 0C47.7924\n 0 54.2836 0.557648 59.4737 1.30048C69.6412 2.75571 77.2443 10.3588 78.6995 20.5263C79.4423 25.7164 80\n 32.2076 80 40C80 47.7924 79.4423 54.2836 78.6995 59.4737C77.2443 69.6412 69.6412 77.2443 59.4737\n 78.6995C54.2836 79.4424 47.7924 80 40 80C32.2076 80 25.7163 79.4424 20.5263 78.6995C10.3588 77.2443\n 2.75571 69.6412 1.30048 59.4737C0.557648 54.2836 0 47.7924 0 40C0 32.2076 0.557648 25.7164 1.30048 20.5263Z"},a={s:40,m:48,xl:80},r=function(r){var s,m=r.size,d=void 0===m?"s":m,o=r.outlined,c=void 0!==o&&o,h=r.imageUrl,p=r.fill,g=r.className,u=n[d],x=a[d],_=h&&h.replace(/[^a-z]+/g,""),f=_&&e.createElement("defs",null,e.createElement("pattern",{id:_,width:"100%",height:"100%"},e.createElement("image",{href:h,width:"100%",height:"100%",preserveAspectRatio:"xMidYMid slice"})));return e.createElement("svg",{width:x,height:x,viewBox:"0 0 "+x+" "+x,xmlns:"http://www.w3.org/2000/svg",className:C(t,g),style:{fill:p}},f,e.createElement("path",{d:u,fill:_&&"url(#"+_+")",className:C(l,(s={},s[i]=c,s))}))};export{r as SuperEllipseShape};
@@ -1 +0,0 @@
1
- export * from "./component";
@@ -1 +0,0 @@
1
- export{SuperEllipseShape}from"./component.js";import"react";import"classnames";