@alphakits/ui 1.31.2 → 1.31.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 (136) hide show
  1. package/dist/amount/component.js +1 -1
  2. package/dist/amount/index.js +1 -1
  3. package/dist/avatar/component.js +1 -1
  4. package/dist/avatar/index.js +1 -1
  5. package/dist/base-card/component.js +1 -1
  6. package/dist/base-card/index.js +1 -1
  7. package/dist/calendar/component.js +1 -1
  8. package/dist/calendar/components/days-table/component.js +1 -1
  9. package/dist/calendar/components/days-table/index.js +1 -1
  10. package/dist/calendar/components/header/index.js +1 -1
  11. package/dist/calendar/components/header//321/201omponent.js +1 -1
  12. package/dist/calendar/components/months-table/index.js +1 -1
  13. package/dist/calendar/components/months-table//321/201omponent.js +1 -1
  14. package/dist/calendar/index.js +1 -1
  15. package/dist/calendar-input/component.js +1 -1
  16. package/dist/calendar-input/index.js +1 -1
  17. package/dist/{capitalize-d32858ed.js → capitalize-474610b0.js} +1 -1
  18. package/dist/card/component.js +1 -1
  19. package/dist/card/images/index.js +1 -1
  20. package/dist/card/index.js +1 -1
  21. package/dist/cell/base/component.js +1 -1
  22. package/dist/cell/component.js +1 -1
  23. package/dist/cell/index.js +1 -1
  24. package/dist/checkbox-group/component.js +1 -1
  25. package/dist/checkbox-group/index.js +1 -1
  26. package/dist/checkbox-lists/component.js +1 -1
  27. package/dist/checkbox-lists/index.js +1 -1
  28. package/dist/collapsable-row/addons.js +1 -1
  29. package/dist/collapsable-row/component.js +1 -1
  30. package/dist/collapsable-row/index.js +1 -1
  31. package/dist/collapse/component.js +1 -1
  32. package/dist/collapse/index.js +1 -1
  33. package/dist/copy-button/component.js +1 -1
  34. package/dist/copy-button/index.js +1 -1
  35. package/dist/date/component.js +1 -1
  36. package/dist/date/index.js +1 -1
  37. package/dist/date-switcher/component.js +1 -1
  38. package/dist/date-switcher/index.js +1 -1
  39. package/dist/empty-page/component.js +1 -1
  40. package/dist/empty-page/index.js +1 -1
  41. package/dist/footer/component.js +1 -1
  42. package/dist/footer/contact-block.js +1 -1
  43. package/dist/footer/index.js +1 -1
  44. package/dist/form/component.js +1 -1
  45. package/dist/form/index.js +1 -1
  46. package/dist/form/templates/filters-form/index.js +1 -1
  47. package/dist/form/templates/rest-form/form.js +1 -1
  48. package/dist/form/templates/rest-form/index.js +1 -1
  49. package/dist/grid/col/component.js +1 -1
  50. package/dist/grid/col/index.js +1 -1
  51. package/dist/grid/component.js +1 -1
  52. package/dist/grid/index.js +1 -1
  53. package/dist/grid/row/component.js +1 -1
  54. package/dist/grid/row/index.js +1 -1
  55. package/dist/image/component.js +1 -1
  56. package/dist/image/image-base.js +1 -1
  57. package/dist/image/index.js +1 -1
  58. package/dist/image/use-image-render-component.js +1 -1
  59. package/dist/image-uploader/component.js +1 -1
  60. package/dist/image-uploader/index.js +1 -1
  61. package/dist/index.css +1 -1
  62. package/dist/info-block-header/component.js +1 -1
  63. package/dist/info-block-header/index.js +1 -1
  64. package/dist/info-block-item/component.js +1 -1
  65. package/dist/info-block-item/index.js +1 -1
  66. package/dist/list-allert/component.js +1 -1
  67. package/dist/list-allert/index.js +1 -1
  68. package/dist/menu/component.d.ts +1 -0
  69. package/dist/menu/component.js +1 -1
  70. package/dist/menu/components/content-header/index.js +1 -1
  71. package/dist/menu/components/index.js +1 -1
  72. package/dist/menu/components/menu-avatar/index.js +1 -1
  73. package/dist/menu/components/menu-button/index.js +1 -1
  74. package/dist/menu/components/menu-buttons-list/index.js +1 -1
  75. package/dist/menu/components/user-button/index.js +1 -1
  76. package/dist/menu/index.js +1 -1
  77. package/dist/message/component.js +1 -1
  78. package/dist/message/index.js +1 -1
  79. package/dist/page-with-controls/component.js +1 -1
  80. package/dist/page-with-controls/index.js +1 -1
  81. package/dist/picker-button/common/index.js +1 -1
  82. package/dist/picker-button/common/labeled-button/index.js +1 -1
  83. package/dist/picker-button/component.d.ts +1 -1
  84. package/dist/picker-button/index.js +1 -1
  85. package/dist/progress-bar/component.js +1 -1
  86. package/dist/progress-bar/index.js +1 -1
  87. package/dist/progress-index/component.js +1 -1
  88. package/dist/progress-index/index.js +1 -1
  89. package/dist/radio-group/component.js +1 -1
  90. package/dist/radio-group/index.js +1 -1
  91. package/dist/radio-groups/component.js +1 -1
  92. package/dist/radio-groups/index.js +1 -1
  93. package/dist/sidepanel/component.js +1 -1
  94. package/dist/sidepanel/index.js +1 -1
  95. package/dist/sidepanel-header/component.js +1 -1
  96. package/dist/sidepanel-header/index.js +1 -1
  97. package/dist/stepped-progress-bar/components/step-bar.js +1 -1
  98. package/dist/stepped-progress-bar/index.d.ts +1 -1
  99. package/dist/stepped-progress-bar/index.js +1 -1
  100. package/dist/super-list-header/component.js +1 -1
  101. package/dist/super-list-header/index.js +1 -1
  102. package/dist/super-list-item/component.js +1 -1
  103. package/dist/super-list-item/index.js +1 -1
  104. package/dist/table/component.js +1 -1
  105. package/dist/table/components/cell/component.js +1 -1
  106. package/dist/table/components/cell/index.js +1 -1
  107. package/dist/table/components/cells/index.js +1 -1
  108. package/dist/table/components/empty-list/index.js +1 -1
  109. package/dist/table/components/error/index.js +1 -1
  110. package/dist/table/components/loading/index.js +1 -1
  111. package/dist/table/components/pagination/index.js +1 -1
  112. package/dist/table/index.js +1 -1
  113. package/dist/table/table.js +1 -1
  114. package/dist/table/utils/prepare-rows.js +1 -1
  115. package/dist/table-status/component.js +1 -1
  116. package/dist/table-status/index.js +1 -1
  117. package/dist/tag/component.js +1 -1
  118. package/dist/tag/index.js +1 -1
  119. package/dist/tags-list/component.js +1 -1
  120. package/dist/tags-list/index.js +1 -1
  121. package/dist/typography/component.js +1 -1
  122. package/dist/typography/index.js +1 -1
  123. package/dist/typography/text/component.js +1 -1
  124. package/dist/typography/text/index.js +1 -1
  125. package/dist/typography/title/component.js +1 -1
  126. package/dist/typography/title/index.js +1 -1
  127. package/package.json +1 -1
  128. /package/dist/{colors.module-a7d0efb0.js → colors.module-31cce552.js} +0 -0
  129. /package/dist/{contact-block-c5889266.d.ts → contact-block-647da869.d.ts} +0 -0
  130. /package/dist/{contact-block-c5889266.js → contact-block-647da869.js} +0 -0
  131. /package/dist/{gutters.module-8ae90e74.js → gutters.module-e2c68a2e.js} +0 -0
  132. /package/dist/{isSymbol-9701dc6b.js → isSymbol-7dcd25d3.js} +0 -0
  133. /package/dist/{step-bar-15ff0e61.d.ts → step-bar-ee5ef319.d.ts} +0 -0
  134. /package/dist/{step-bar-15ff0e61.js → step-bar-ee5ef319.js} +0 -0
  135. /package/dist/{use-image-render-component-91131dbc.d.ts → use-image-render-component-f91d0c98.d.ts} +0 -0
  136. /package/dist/{use-image-render-component-91131dbc.js → use-image-render-component-f91d0c98.js} +0 -0
@@ -1 +1 @@
1
- import t from"react";import{Formik as o}from"formik";import{Button as e}from"../../../button/component.js";import{Sidepanel as n}from"../../../sidepanel/component.js";import{getDefaultValues as r}from"../../utils/get-default-values.js";import"tslib";import"react-merge-refs";import"classnames";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../flex-columns/component.js";import"../../../sidepanel-header/component.js";import"../../../back-button/component.js";import"../../../button-arrow/component.js";import"@alphakits/icons";import"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-a7d0efb0.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../skeleton/component.js";var i=function(i){var m=i.initialValues,s=i.defaultValues,a=i.children,p=i.submitCallback,l=i.close,c=i.t,u=r(m,s);return t.createElement(o,{initialValues:u,onSubmit:function(t){p(t),l()}},(function(o){return t.createElement(n,{title:c("filters"),bottomAddons:t.createElement(t.Fragment,null,t.createElement(e,{view:"primary",size:"s",block:!0,dataTestId:"buttonSave",onClick:function(){return o.submitForm()}},c("save")),t.createElement(e,{block:!0,view:"secondary",size:"s",dataTestId:"buttonCancel",onClick:l},c("cancel")))},a(o))}))};export{i as FiltersForm};
1
+ import t from"react";import{Formik as o}from"formik";import{Button as e}from"../../../button/component.js";import{Sidepanel as n}from"../../../sidepanel/component.js";import{getDefaultValues as r}from"../../utils/get-default-values.js";import"tslib";import"react-merge-refs";import"classnames";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../flex-columns/component.js";import"../../../sidepanel-header/component.js";import"../../../back-button/component.js";import"../../../button-arrow/component.js";import"@alphakits/icons";import"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-31cce552.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../skeleton/component.js";var i=function(i){var m=i.initialValues,s=i.defaultValues,p=i.children,a=i.submitCallback,c=i.close,l=i.t,u=r(m,s);return t.createElement(o,{initialValues:u,onSubmit:function(t){a(t),c()}},(function(o){return t.createElement(n,{title:l("filters"),bottomAddons:t.createElement(t.Fragment,null,t.createElement(e,{view:"primary",size:"s",block:!0,dataTestId:"buttonSave",onClick:function(){return o.submitForm()}},l("save")),t.createElement(e,{block:!0,view:"secondary",size:"s",dataTestId:"buttonCancel",onClick:c},l("cancel")))},p(o))}))};export{i as FiltersForm};
@@ -1 +1 @@
1
- import{__rest as t,__assign as o}from"tslib";import e,{useContext as i,useState as r,useCallback as n,useEffect as m}from"react";import a from"@alphakits/icons/dist/TrashM";import{Button as s}from"../../../button/component.js";import{Flex as l}from"../../../flex/component.js";import{FlexColumns as d}from"../../../flex-columns/component.js";import{IconButton as c}from"../../../icon-button/component.js";import{ModalContext as p}from"../../../modal/context.js";import{Sidepanel as u}from"../../../sidepanel/component.js";import{ToastPlate as b}from"../../../toast-plate/component.js";import"react-merge-refs";import"classnames";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../portal/component.js";import"react-dom";import"../../../portal/utils.js";import"../../../modal/components/modals/index.js";import"../../../modal/components/modals/modal.js";import"../../../button-arrow/component.js";import"@alphakits/icons";import"../../../modal/hooks/use-modal.js";import"uuid";import"../../../modal/utils/delete-property-by-id.js";import"../../../sidepanel-header/component.js";import"../../../back-button/component.js";import"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-a7d0efb0.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../skeleton/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/ClockCircleM";import"@alphakits/icons/dist/CloseS";function f(f){var h=f.recordId,j=f.title,g=f.subtitle,k=f.headerBottomAddons,v=f.initialValues,y=f.submitButtonText,C=f.customFooter,E=f.loading,x=f.updating,A=f.removing;f.customValidationFields,f.validate,f.save;var V=f.remove,T=f.close,B=f.back,F=f.t,I=f.children,M=f.headerAddon;f.error;var w=f.softError,S=t(f,["recordId","title","subtitle","headerBottomAddons","initialValues","submitButtonText","customFooter","loading","updating","removing","customValidationFields","validate","save","remove","close","back","t","children","headerAddon","error","softError"]),z=i(p),D=z.setModalDirty,P=z.currentModalId,R=r(P)[0],q=S.submitCount,G=S.handleSubmit,H=S.isValid,J=t(S,["submitCount","handleSubmit","isValid"]),K=!!h&&!!V,L=n((function(){D(R,!1),G()}),[J.dirty,R]),N=n((function(){D(R,!1),confirm(F("common:deleteConfirm"))&&(null==V||V())}),[J.dirty,R]);m((function(){E||D(R,J.dirty)}),[J.dirty,E,R]);var O=K||M?e.createElement(e.Fragment,null,M,K&&e.createElement(c,{dataTestId:"removeTariffBtn",size:"m",disabled:x,loading:A,onClick:N,icon:a})):null;return e.createElement(u,{headerRightAddons:O,title:j,subtitle:g,loading:x||A||E,headerBottomAddons:(k||!!w||!H&&!!q)&&e.createElement(d,{columns:1,gr:8},k,!!w&&e.createElement(b,{view:"negative"},w),!H&&!!q&&e.createElement(b,{view:"negative"},"Please correct errors before submitting form.")),back:B,t:F,bottomAddons:C||e.createElement(l,{gap:"md"},e.createElement(s,{view:"primary",size:"s",block:!0,loading:E,disabled:x||A,dataTestId:"buttonSave",onClick:function(){return L()}},F(y||"save")),e.createElement(s,{block:!0,view:"secondary",size:"s",dataTestId:"buttonCancel",onClick:T},F("cancel")))},I(o({submitCount:q,isValid:H,handleSubmit:L,initialValues:v},J)))}export{f as Form};
1
+ import{__rest as t,__assign as o}from"tslib";import e,{useContext as i,useState as r,useCallback as n,useEffect as m}from"react";import a from"@alphakits/icons/dist/TrashM";import{Button as s}from"../../../button/component.js";import{Flex as l}from"../../../flex/component.js";import{FlexColumns as d}from"../../../flex-columns/component.js";import{IconButton as c}from"../../../icon-button/component.js";import{ModalContext as p}from"../../../modal/context.js";import{Sidepanel as u}from"../../../sidepanel/component.js";import{ToastPlate as b}from"../../../toast-plate/component.js";import"react-merge-refs";import"classnames";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../portal/component.js";import"react-dom";import"../../../portal/utils.js";import"../../../modal/components/modals/index.js";import"../../../modal/components/modals/modal.js";import"../../../button-arrow/component.js";import"@alphakits/icons";import"../../../modal/hooks/use-modal.js";import"uuid";import"../../../modal/utils/delete-property-by-id.js";import"../../../sidepanel-header/component.js";import"../../../back-button/component.js";import"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-31cce552.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../skeleton/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/ClockCircleM";import"@alphakits/icons/dist/CloseS";function h(h){var f=h.recordId,j=h.title,g=h.subtitle,k=h.headerBottomAddons,v=h.initialValues,y=h.submitButtonText,C=h.customFooter,E=h.loading,x=h.updating,A=h.removing;h.customValidationFields,h.validate,h.save;var V=h.remove,T=h.close,B=h.back,F=h.t,I=h.children,M=h.headerAddon;h.error;var w=h.softError,S=t(h,["recordId","title","subtitle","headerBottomAddons","initialValues","submitButtonText","customFooter","loading","updating","removing","customValidationFields","validate","save","remove","close","back","t","children","headerAddon","error","softError"]),z=i(p),D=z.setModalDirty,P=z.currentModalId,R=r(P)[0],q=S.submitCount,G=S.handleSubmit,H=S.isValid,J=t(S,["submitCount","handleSubmit","isValid"]),K=!!f&&!!V,L=n((function(){D(R,!1),G()}),[J.dirty,R]),N=n((function(){D(R,!1),confirm(F("common:deleteConfirm"))&&(null==V||V())}),[J.dirty,R]);m((function(){E||D(R,J.dirty)}),[J.dirty,E,R]);var O=K||M?e.createElement(e.Fragment,null,M,K&&e.createElement(c,{dataTestId:"removeTariffBtn",size:"m",disabled:x,loading:A,onClick:N,icon:a})):null;return e.createElement(u,{headerRightAddons:O,title:j,subtitle:g,loading:x||A||E,headerBottomAddons:(k||!!w||!H&&!!q)&&e.createElement(d,{columns:1,gr:8},k,!!w&&e.createElement(b,{view:"negative"},w),!H&&!!q&&e.createElement(b,{view:"negative"},"Please correct errors before submitting form.")),back:B,t:F,bottomAddons:C||e.createElement(l,{gap:"md"},e.createElement(s,{view:"primary",size:"s",block:!0,loading:E,disabled:x||A,dataTestId:"buttonSave",onClick:function(){return L()}},F(y||"save")),e.createElement(s,{block:!0,view:"secondary",size:"s",dataTestId:"buttonCancel",onClick:T},F("cancel")))},I(o({submitCount:q,isValid:H,handleSubmit:L,initialValues:v},J)))}export{h as Form};
@@ -1 +1 @@
1
- import{__rest as o,__assign as t}from"tslib";import i from"react";import{Formik as e}from"formik";import{Form as r}from"./form.js";import"@alphakits/icons/dist/TrashM";import"../../../button/component.js";import"react-merge-refs";import"classnames";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../flex/component.js";import"../../../flex-columns/component.js";import"../../../icon-button/component.js";import"../../../modal/context.js";import"../../../portal/component.js";import"react-dom";import"../../../portal/utils.js";import"../../../modal/components/modals/index.js";import"../../../modal/components/modals/modal.js";import"../../../button-arrow/component.js";import"@alphakits/icons";import"../../../modal/hooks/use-modal.js";import"uuid";import"../../../modal/utils/delete-property-by-id.js";import"../../../sidepanel/component.js";import"../../../sidepanel-header/component.js";import"../../../back-button/component.js";import"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-a7d0efb0.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../skeleton/component.js";import"../../../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/ClockCircleM";import"@alphakits/icons/dist/CloseS";function n(n){var m=n.enableReinitialize,p=void 0===m||m,s=o(n,["enableReinitialize"]),a=s.loading,l=s.error,c=s.validate,d=s.customValidationFields,u=s.initialValues,j=s.save;if(l)return i.createElement("div",null,"Error ");var f,h,k;return i.createElement(e,{validate:(f=c,h=d,f||(h?(k=h,function(o){return k.reduce((function(t,i){return("object"==typeof o?o:{})[i]||(t[i]=s.t("validationErrors:Required")),t}),{})}):void 0)),initialValues:u,enableReinitialize:p,onSubmit:j},(function(o){return i.createElement(r,t({loading:a},o,s))}))}export{n as RestForm};
1
+ import{__rest as o,__assign as t}from"tslib";import i from"react";import{Formik as e}from"formik";import{Form as r}from"./form.js";import"@alphakits/icons/dist/TrashM";import"../../../button/component.js";import"react-merge-refs";import"classnames";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../flex/component.js";import"../../../flex-columns/component.js";import"../../../icon-button/component.js";import"../../../modal/context.js";import"../../../portal/component.js";import"react-dom";import"../../../portal/utils.js";import"../../../modal/components/modals/index.js";import"../../../modal/components/modals/modal.js";import"../../../button-arrow/component.js";import"@alphakits/icons";import"../../../modal/hooks/use-modal.js";import"uuid";import"../../../modal/utils/delete-property-by-id.js";import"../../../sidepanel/component.js";import"../../../sidepanel-header/component.js";import"../../../back-button/component.js";import"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-31cce552.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../skeleton/component.js";import"../../../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/ClockCircleM";import"@alphakits/icons/dist/CloseS";function n(n){var m=n.enableReinitialize,p=void 0===m||m,s=o(n,["enableReinitialize"]),a=s.loading,l=s.error,c=s.validate,d=s.customValidationFields,u=s.initialValues,j=s.save;if(l)return i.createElement("div",null,"Error ");var f,h,k;return i.createElement(e,{validate:(f=c,h=d,f||(h?(k=h,function(o){return k.reduce((function(t,i){return("object"==typeof o?o:{})[i]||(t[i]=s.t("validationErrors:Required")),t}),{})}):void 0)),initialValues:u,enableReinitialize:p,onSubmit:j},(function(o){return i.createElement(r,t({loading:a},o,s))}))}export{n as RestForm};
@@ -1 +1 @@
1
- import{__spreadArray as e}from"tslib";import o,{useMemo as d}from"react";import t from"classnames";import{createClassNames as i}from"../utils/index.js";import{g as r}from"../../gutters.module-8ae90e74.js";var l={component:"index-module_component__3zsDE","width-auto":"index-module_width-auto__2dsst","width-available":"index-module_width-available__1wbRK","width-":"index-module_width-__7yG3C","align-top":"index-module_align-top__1fDlN","align-middle":"index-module_align-middle__319PI","align-bottom":"index-module_align-bottom__xTcSD","offset-":"index-module_offset-__2268z","order-first":"index-module_order-first__3EDEm","order-last":"index-module_order-last__3xG3b","order-":"index-module_order-__1CSKI"},a=function(a){var n=a.tag,m=void 0===n?"div":n,_=a.className,s=a.align,u=a.order,f=a.offset,x=a.width,c=a.children,p=a.dataTestId,g=d((function(){return i({order:u,offset:f,width:x},l)}),[u,f,x]);return o.createElement(m,{className:t.apply(void 0,e(e([r.col,l.component,s&&l["align-"+s]],g),[_])),"data-test-id":p},c)};export{a as Col};
1
+ import{__spreadArray as e}from"tslib";import o,{useMemo as d}from"react";import t from"classnames";import{createClassNames as i}from"../utils/index.js";import{g as r}from"../../gutters.module-e2c68a2e.js";var l={component:"index-module_component__3zsDE","width-auto":"index-module_width-auto__2dsst","width-available":"index-module_width-available__1wbRK","width-":"index-module_width-__7yG3C","align-top":"index-module_align-top__1fDlN","align-middle":"index-module_align-middle__319PI","align-bottom":"index-module_align-bottom__xTcSD","offset-":"index-module_offset-__2268z","order-first":"index-module_order-first__3EDEm","order-last":"index-module_order-last__3xG3b","order-":"index-module_order-__1CSKI"},a=function(a){var n=a.tag,m=void 0===n?"div":n,_=a.className,s=a.align,u=a.order,f=a.offset,x=a.width,c=a.children,p=a.dataTestId,g=d((function(){return i({order:u,offset:f,width:x},l)}),[u,f,x]);return o.createElement(m,{className:t.apply(void 0,e(e([r.col,l.component,s&&l["align-"+s]],g),[_])),"data-test-id":p},c)};export{a as Col};
@@ -1 +1 @@
1
- export{Col}from"./component.js";import"tslib";import"react";import"classnames";import"../utils/index.js";import"../../gutters.module-8ae90e74.js";
1
+ export{Col}from"./component.js";import"tslib";import"react";import"classnames";import"../utils/index.js";import"../../gutters.module-e2c68a2e.js";
@@ -1 +1 @@
1
- import{Col as o}from"./col/component.js";import{Row as t}from"./row/component.js";import"tslib";import"react";import"classnames";import"./utils/index.js";import"../gutters.module-8ae90e74.js";var r={Row:t,Col:o};export{r as Grid};
1
+ import{Col as o}from"./col/component.js";import{Row as t}from"./row/component.js";import"tslib";import"react";import"classnames";import"./utils/index.js";import"../gutters.module-e2c68a2e.js";var r={Row:t,Col:o};export{r as Grid};
@@ -1 +1 @@
1
- export{Grid}from"./component.js";import"./col/component.js";import"tslib";import"react";import"classnames";import"./utils/index.js";import"../gutters.module-8ae90e74.js";import"./row/component.js";
1
+ export{Grid}from"./component.js";import"./col/component.js";import"tslib";import"react";import"classnames";import"./utils/index.js";import"../gutters.module-e2c68a2e.js";import"./row/component.js";
@@ -1 +1 @@
1
- import{__spreadArray as e}from"tslib";import t,{useMemo as o}from"react";import d from"classnames";import{createClassNames as m}from"../utils/index.js";import{g as n}from"../../gutters.module-8ae90e74.js";var i={component:"index-module_component__2X6Ca",top:"index-module_top__3KNq1",middle:"index-module_middle__1D05u",bottom:"index-module_bottom__DcD7P",left:"index-module_left__3cmBO",center:"index-module_center__njMLy",right:"index-module_right__1KVdE",around:"index-module_around__jIXJN",between:"index-module_between__xSGsv"},r=function(r){var _=r.tag,l=void 0===_?"div":_,a=r.className,u=r.gutter,s=void 0===u?{mobile:{s:16},desktop:{m:24}}:u,c=r.align,p=r.justify,x=void 0===p?"between":p,f=r.children,g=r.dataTestId,v=o((function(){return m({gutter:s},n)}),[s]);return t.createElement(l,{className:d.apply(void 0,e(e([n.row,i.component,c&&i[c],i[x]],v),[a])),"data-test-id":g},f)};export{r as Row};
1
+ import{__spreadArray as e}from"tslib";import t,{useMemo as o}from"react";import d from"classnames";import{createClassNames as m}from"../utils/index.js";import{g as n}from"../../gutters.module-e2c68a2e.js";var i={component:"index-module_component__2X6Ca",top:"index-module_top__3KNq1",middle:"index-module_middle__1D05u",bottom:"index-module_bottom__DcD7P",left:"index-module_left__3cmBO",center:"index-module_center__njMLy",right:"index-module_right__1KVdE",around:"index-module_around__jIXJN",between:"index-module_between__xSGsv"},r=function(r){var _=r.tag,l=void 0===_?"div":_,a=r.className,u=r.gutter,s=void 0===u?{mobile:{s:16},desktop:{m:24}}:u,c=r.align,p=r.justify,x=void 0===p?"between":p,f=r.children,g=r.dataTestId,v=o((function(){return m({gutter:s},n)}),[s]);return t.createElement(l,{className:d.apply(void 0,e(e([n.row,i.component,c&&i[c],i[x]],v),[a])),"data-test-id":g},f)};export{r as Row};
@@ -1 +1 @@
1
- export{Row}from"./component.js";import"tslib";import"react";import"classnames";import"../utils/index.js";import"../../gutters.module-8ae90e74.js";
1
+ export{Row}from"./component.js";import"tslib";import"react";import"classnames";import"../utils/index.js";import"../../gutters.module-e2c68a2e.js";
@@ -1 +1 @@
1
- import e from"react";import t from"classnames";import{Skeleton as o}from"../skeleton/component.js";import{Typography as i}from"../typography/component.js";import{u as r,s}from"../use-image-render-component-91131dbc.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"./types.js";import"./utils.js";var a=function(a){var n,l,m=a.className,c=a.src,p=a.alt,d=a.hint,h=a.addon,f=a.border,v=a.size,j=void 0===v?"m":v,u=a.color,g=a.children,y=a.loading,E=a.view,b=void 0===E?"default":E,x=a.text,N=a.icon,P=a.bgColor,k=void 0===P?"secondary":P,w=r({size:j,src:c,color:u,alt:p,text:x,icon:N});return e.createElement("div",{className:t(s.container,m,s[j])},e.createElement("div",{className:t(s.component,s[b],s[k],(n={},n[s.border]=f,n))},e.createElement(o,{className:s[j],visible:y},"ellipse"===b&&e.createElement("svg",{className:s.defs},e.createElement("defs",null,e.createElement("clipPath",{id:"squircle",clipPathUnits:"objectBoundingBox"},e.createElement("path",{d:"M .5 0 C .1 0 0 .1 0 .5 0 .9 .1 1 .5 1 .9 1 1 .9 1 .5 1 .1 .9 0 .5 0 Z",fill:"#f00"})))),w,g,!!d&&e.createElement("div",{className:s.hint},e.createElement(i.Text,{className:s.hint_text,view:"caps",weight:"medium"},d)))),h&&e.createElement("div",{className:t(s["addon-"+h.color],s.addon,(l={},l[s.filled]=h.filled,l))},h.icon))};export{a as Image};
1
+ import e from"react";import t from"classnames";import{Skeleton as o}from"../skeleton/component.js";import{Typography as i}from"../typography/component.js";import{u as r,s}from"../use-image-render-component-f91d0c98.js";import"../typography/text/component.js";import"../colors.module-31cce552.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"./types.js";import"./utils.js";var a=function(a){var n,l,m=a.className,c=a.src,p=a.alt,d=a.hint,h=a.addon,f=a.border,v=a.size,j=void 0===v?"m":v,u=a.color,g=a.children,y=a.loading,E=a.view,x=void 0===E?"default":E,N=a.text,b=a.icon,P=a.bgColor,k=void 0===P?"secondary":P,w=r({size:j,src:c,color:u,alt:p,text:N,icon:b});return e.createElement("div",{className:t(s.container,m,s[j])},e.createElement("div",{className:t(s.component,s[x],s[k],(n={},n[s.border]=f,n))},e.createElement(o,{className:s[j],visible:y},"ellipse"===x&&e.createElement("svg",{className:s.defs},e.createElement("defs",null,e.createElement("clipPath",{id:"squircle",clipPathUnits:"objectBoundingBox"},e.createElement("path",{d:"M .5 0 C .1 0 0 .1 0 .5 0 .9 .1 1 .5 1 .9 1 1 .9 1 .5 1 .1 .9 0 .5 0 Z",fill:"#f00"})))),w,g,!!d&&e.createElement("div",{className:s.hint},e.createElement(i.Text,{className:s.hint_text,view:"caps",weight:"medium"},d)))),h&&e.createElement("div",{className:t(s["addon-"+h.color],s.addon,(l={},l[s.filled]=h.filled,l))},h.icon))};export{a as Image};
@@ -1 +1 @@
1
- import t from"react";import{u as o}from"../use-image-render-component-91131dbc.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"classnames";import"../spinner/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";import"./types.js";import"./utils.js";var r=function(r){var i=r.src,p=r.alt,e=r.size,s=void 0===e?"m":e,m=r.text,n=r.icon,a=o({size:s,src:i,alt:p,text:m,icon:n});return a?t.createElement(t.Fragment,null,a):null};export{r as ImageBase};
1
+ import t from"react";import{u as o}from"../use-image-render-component-f91d0c98.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"classnames";import"../spinner/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-31cce552.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";import"./types.js";import"./utils.js";var r=function(r){var i=r.src,p=r.alt,e=r.size,s=void 0===e?"m":e,m=r.text,n=r.icon,a=o({size:s,src:i,alt:p,text:m,icon:n});return a?t.createElement(t.Fragment,null,a):null};export{r as ImageBase};
@@ -1 +1 @@
1
- export{Image}from"./component.js";export{textSizes}from"./types.js";import"react";import"classnames";import"../skeleton/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";import"../use-image-render-component-91131dbc.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"./utils.js";
1
+ export{Image}from"./component.js";export{textSizes}from"./types.js";import"react";import"classnames";import"../skeleton/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-31cce552.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";import"../use-image-render-component-f91d0c98.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"./utils.js";
@@ -1 +1 @@
1
- import"react";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"classnames";import"../spinner/component.js";import"../typography/component.js";import"./types.js";import"./utils.js";export{u as useImageRenderComponent}from"../use-image-render-component-91131dbc.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";
1
+ import"react";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"classnames";import"../spinner/component.js";import"../typography/component.js";import"./types.js";import"./utils.js";export{u as useImageRenderComponent}from"../use-image-render-component-f91d0c98.js";import"../typography/text/component.js";import"../colors.module-31cce552.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";
@@ -1 +1 @@
1
- import{__awaiter as e,__generator as t,__spreadArray as o}from"tslib";import i,{forwardRef as r,useState as n,useRef as s}from"react";import a from"@alphakits/icons/dist/EyeM";import m from"@alphakits/icons/dist/HeartStrokeM";import c from"@alphakits/icons/dist/PlusS";import l from"@alphakits/icons/dist/TrashM";import{Button as p}from"../button/component.js";import{FlexColumns as u}from"../flex-columns/component.js";import{IconButton as d}from"../icon-button/component.js";import{Image as f}from"../image/component.js";import{ImageGallery as h}from"../image-gallery/component.js";import{Padding as v}from"../padding/component.js";import{SuperListHeader as g}from"../super-list-header/component.js";import{Typography as j}from"../typography/component.js";import{getServiceError as k}from"../utils/get-service-error/index.js";import{showError as y}from"../utils/show-toast/index.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../skeleton/component.js";import"../use-image-render-component-91131dbc.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"../typography/title/component.js";import"react-images-viewer";import"../utils/get-service-error/is-axios-error.js";import"../utils/get-service-error/is-network-error.js";import"../toast-notifier/component.js";import"react-dom";import"../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/ClockCircleM";import"@alphakits/icons/dist/CloseS";import"../toast-notifier/use-timer.js";var E="index-module_image__1Jp6f",x="index-module_icon__2LV-G",w="index-module_controls__dPriw",C="index-module_main__XGkSj",_=r((function(r,_){var b=r.value,M=void 0===b?[]:b,N=r.title,S=r.subtitle,P=r.columns,z=void 0===P?3:P,A=r.onUpdate,F=r.uploadRequest,T=r.setMain,G=r.type,q=r.main,D=r.multiple,H=r.error,I=r.className,J=r.children,L=n(!1),R=L[0],U=L[1],V=n(),X=V[0],B=V[1],K=n(!1),O=K[0],Q=K[1],W=s(null),Y=function(i){var r=i.target.files;return e(void 0,void 0,void 0,(function(){var e,i,n,s,a;return t(this,(function(t){switch(t.label){case 0:if(!r)return[2];e=Array.from(r).map((function(e){var t=new FormData;return t.append("file",e),t.append("type",G),F({data:t})})),Q(!0),t.label=1;case 1:return t.trys.push([1,3,4,5]),[4,Promise.all(e)];case 2:return i=t.sent(),n=i.map((function(e){return e.data.url})),A(D?o(o([],M),n):n),[3,5];case 3:return s=t.sent(),a=k(s).message,y(a),[3,5];case 4:return W.current&&(W.current.value=""),Q(!1),[7];case 5:return[2]}}))}))};return i.createElement("div",{className:I},i.createElement("input",{type:"file",style:{height:0,position:"absolute"},ref:_,onChange:Y,multiple:D,accept:"image/*, .heic"}),i.createElement("input",{type:"file",style:{height:0,position:"absolute"},ref:W,onChange:Y,multiple:D,accept:"image/*, .heic"}),J?i.createElement(p,{view:"ghost",onClick:function(){var e;return null===(e=W.current)||void 0===e?void 0:e.click()}},J({value:M,loading:O})):i.createElement(i.Fragment,null,i.createElement(g,{text:N,leftAddons:i.createElement(d,{onClick:function(){var e;return null===(e=W.current)||void 0===e?void 0:e.click()},icon:c,loading:O})}),S&&i.createElement(j.Text,{view:"primary-small",color:"secondary",weight:"medium"},S),i.createElement(v,{padding:"4px 0"},H&&i.createElement(j.Text,{view:"caps",color:"negative",weight:"medium"},H)),i.createElement(u,{columns:z},M.map((function(e,t){return i.createElement(f,{key:e,className:E,src:e,size:"xl",view:"default"},i.createElement("div",{className:w},!!T&&q!==e&&i.createElement(d,{onClick:function(){return T(e)},icon:m,size:"m",view:"secondary",className:x}),i.createElement(d,{onClick:function(){B(t),U(!0)},icon:a,size:"m",view:"secondary",className:x}),i.createElement(d,{onClick:function(){return t=e,void A(M.filter((function(e){return e!==t})));var t},icon:l,size:"m",view:"secondary",className:x})),q===e&&i.createElement("div",{className:C},"MAIN"))}))),i.createElement(h,{photos:M.map((function(e){return{src:e}})),initialSlide:X||0,open:R,onClose:function(){return U(!1)}})))}));export{_ as ImageUploader};
1
+ import{__awaiter as e,__generator as t,__spreadArray as o}from"tslib";import i,{forwardRef as r,useState as n,useRef as s}from"react";import a from"@alphakits/icons/dist/EyeM";import m from"@alphakits/icons/dist/HeartStrokeM";import c from"@alphakits/icons/dist/PlusS";import l from"@alphakits/icons/dist/TrashM";import{Button as p}from"../button/component.js";import{FlexColumns as u}from"../flex-columns/component.js";import{IconButton as d}from"../icon-button/component.js";import{Image as f}from"../image/component.js";import{ImageGallery as h}from"../image-gallery/component.js";import{Padding as v}from"../padding/component.js";import{SuperListHeader as g}from"../super-list-header/component.js";import{Typography as j}from"../typography/component.js";import{getServiceError as k}from"../utils/get-service-error/index.js";import{showError as y}from"../utils/show-toast/index.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../skeleton/component.js";import"../use-image-render-component-f91d0c98.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";import"../typography/text/component.js";import"../colors.module-31cce552.js";import"../typography/title/index.js";import"../typography/title/component.js";import"react-images-viewer";import"../utils/get-service-error/is-axios-error.js";import"../utils/get-service-error/is-network-error.js";import"../toast-notifier/component.js";import"react-dom";import"../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/ClockCircleM";import"@alphakits/icons/dist/CloseS";import"../toast-notifier/use-timer.js";var E="index-module_image__1Jp6f",x="index-module_icon__2LV-G",w="index-module_controls__dPriw",C="index-module_main__XGkSj",_=r((function(r,_){var M=r.value,N=void 0===M?[]:M,b=r.title,S=r.subtitle,P=r.columns,z=void 0===P?3:P,A=r.onUpdate,F=r.uploadRequest,T=r.setMain,G=r.type,q=r.main,D=r.multiple,H=r.error,I=r.className,J=r.children,L=n(!1),R=L[0],U=L[1],V=n(),X=V[0],B=V[1],K=n(!1),O=K[0],Q=K[1],W=s(null),Y=function(i){var r=i.target.files;return e(void 0,void 0,void 0,(function(){var e,i,n,s,a;return t(this,(function(t){switch(t.label){case 0:if(!r)return[2];e=Array.from(r).map((function(e){var t=new FormData;return t.append("file",e),t.append("type",G),F({data:t})})),Q(!0),t.label=1;case 1:return t.trys.push([1,3,4,5]),[4,Promise.all(e)];case 2:return i=t.sent(),n=i.map((function(e){return e.data.url})),A(D?o(o([],N),n):n),[3,5];case 3:return s=t.sent(),a=k(s).message,y(a),[3,5];case 4:return W.current&&(W.current.value=""),Q(!1),[7];case 5:return[2]}}))}))};return i.createElement("div",{className:I},i.createElement("input",{type:"file",style:{height:0,position:"absolute"},ref:_,onChange:Y,multiple:D,accept:"image/*, .heic"}),i.createElement("input",{type:"file",style:{height:0,position:"absolute"},ref:W,onChange:Y,multiple:D,accept:"image/*, .heic"}),J?i.createElement(p,{view:"ghost",onClick:function(){var e;return null===(e=W.current)||void 0===e?void 0:e.click()}},J({value:N,loading:O})):i.createElement(i.Fragment,null,i.createElement(g,{text:b,leftAddons:i.createElement(d,{onClick:function(){var e;return null===(e=W.current)||void 0===e?void 0:e.click()},icon:c,loading:O})}),S&&i.createElement(j.Text,{view:"primary-small",color:"secondary",weight:"medium"},S),i.createElement(v,{padding:"4px 0"},H&&i.createElement(j.Text,{view:"caps",color:"negative",weight:"medium"},H)),i.createElement(u,{columns:z},N.map((function(e,t){return i.createElement(f,{key:e,className:E,src:e,size:"xl",view:"default"},i.createElement("div",{className:w},!!T&&q!==e&&i.createElement(d,{onClick:function(){return T(e)},icon:m,size:"m",view:"secondary",className:x}),i.createElement(d,{onClick:function(){B(t),U(!0)},icon:a,size:"m",view:"secondary",className:x}),i.createElement(d,{onClick:function(){return t=e,void A(N.filter((function(e){return e!==t})));var t},icon:l,size:"m",view:"secondary",className:x})),q===e&&i.createElement("div",{className:C},"MAIN"))}))),i.createElement(h,{photos:N.map((function(e){return{src:e}})),initialSlide:X||0,open:R,onClose:function(){return U(!1)}})))}));export{_ as ImageUploader};
@@ -1 +1 @@
1
- export{ImageUploader}from"./component.js";import"tslib";import"react";import"@alphakits/icons/dist/EyeM";import"@alphakits/icons/dist/HeartStrokeM";import"@alphakits/icons/dist/PlusS";import"@alphakits/icons/dist/TrashM";import"../button/component.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../flex-columns/component.js";import"../icon-button/component.js";import"../image/component.js";import"../skeleton/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../use-image-render-component-91131dbc.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";import"../image-gallery/component.js";import"react-images-viewer";import"../padding/component.js";import"../super-list-header/component.js";import"../utils/get-service-error/index.js";import"../utils/get-service-error/is-axios-error.js";import"../utils/get-service-error/is-network-error.js";import"../utils/show-toast/index.js";import"../toast-notifier/component.js";import"react-dom";import"../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/ClockCircleM";import"@alphakits/icons/dist/CloseS";import"../toast-notifier/use-timer.js";
1
+ export{ImageUploader}from"./component.js";import"tslib";import"react";import"@alphakits/icons/dist/EyeM";import"@alphakits/icons/dist/HeartStrokeM";import"@alphakits/icons/dist/PlusS";import"@alphakits/icons/dist/TrashM";import"../button/component.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../flex-columns/component.js";import"../icon-button/component.js";import"../image/component.js";import"../skeleton/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-31cce552.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../use-image-render-component-f91d0c98.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";import"../image-gallery/component.js";import"react-images-viewer";import"../padding/component.js";import"../super-list-header/component.js";import"../utils/get-service-error/index.js";import"../utils/get-service-error/is-axios-error.js";import"../utils/get-service-error/is-network-error.js";import"../utils/show-toast/index.js";import"../toast-notifier/component.js";import"react-dom";import"../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/ClockCircleM";import"@alphakits/icons/dist/CloseS";import"../toast-notifier/use-timer.js";