@alphakits/ui 1.20.1 → 1.20.2

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 (252) hide show
  1. package/dist/amount/component.js +1 -1
  2. package/dist/amount/index.js +1 -1
  3. package/dist/amount-input/component.js +1 -1
  4. package/dist/amount-input/index.js +1 -1
  5. package/dist/avatar/component.js +1 -1
  6. package/dist/avatar/index.js +1 -1
  7. package/dist/base-card/component.js +1 -1
  8. package/dist/base-card/index.js +1 -1
  9. package/dist/bottom-sheet/component.js +1 -1
  10. package/dist/bottom-sheet/index.js +1 -1
  11. package/dist/button/component.js +1 -1
  12. package/dist/button/index.js +1 -1
  13. package/dist/calendar/component.js +1 -1
  14. package/dist/calendar/components/days-table/component.js +1 -1
  15. package/dist/calendar/components/days-table/index.js +1 -1
  16. package/dist/calendar/components/header/index.js +1 -1
  17. package/dist/calendar/components/header//321/201omponent.js +1 -1
  18. package/dist/calendar/components/months-table/index.js +1 -1
  19. package/dist/calendar/components/months-table//321/201omponent.js +1 -1
  20. package/dist/calendar/components/select-button/index.js +1 -1
  21. package/dist/calendar/components/select-button//321/201omponent.js +1 -1
  22. package/dist/calendar/components/years-table/index.js +1 -1
  23. package/dist/calendar/components/years-table//321/201omponent.js +1 -1
  24. package/dist/calendar/index.js +1 -1
  25. package/dist/calendar-input/component.js +1 -1
  26. package/dist/calendar-input/index.js +1 -1
  27. package/dist/card/component.js +1 -1
  28. package/dist/card/images/index.js +1 -1
  29. package/dist/card/index.js +1 -1
  30. package/dist/cell/base/component.js +1 -1
  31. package/dist/cell/base/index.d.ts +1 -1
  32. package/dist/cell/base/index.js +1 -1
  33. package/dist/cell/component.js +1 -1
  34. package/dist/cell/index.js +1 -1
  35. package/dist/cell/pure/component.js +1 -1
  36. package/dist/cell/pure/index.js +1 -1
  37. package/dist/checkbox/component.js +1 -1
  38. package/dist/checkbox/index.js +1 -1
  39. package/dist/checkbox-group/component.js +1 -1
  40. package/dist/checkbox-group/index.js +1 -1
  41. package/dist/checkbox-lists/component.js +1 -1
  42. package/dist/checkbox-lists/index.js +1 -1
  43. package/dist/collapsable-row/addons.js +1 -1
  44. package/dist/collapsable-row/component.js +1 -1
  45. package/dist/collapsable-row/index.js +1 -1
  46. package/dist/collapse/component.js +1 -1
  47. package/dist/collapse/index.js +1 -1
  48. package/dist/copy-button/component.js +1 -1
  49. package/dist/copy-button/index.js +1 -1
  50. package/dist/date/component.js +1 -1
  51. package/dist/date/index.js +1 -1
  52. package/dist/date-switcher/component.js +1 -1
  53. package/dist/date-switcher/index.js +1 -1
  54. package/dist/footer/component.js +1 -1
  55. package/dist/footer/contact-block.js +1 -1
  56. package/dist/footer/index.js +1 -1
  57. package/dist/form/component.js +1 -1
  58. package/dist/form/components/form-footer/index.js +1 -1
  59. package/dist/form/components/index.js +1 -1
  60. package/dist/form/index.js +1 -1
  61. package/dist/form/templates/crud-form/index.js +1 -1
  62. package/dist/form/templates/filters-form/index.js +1 -1
  63. package/dist/form/templates/rest-form/index.js +1 -1
  64. package/dist/form/utils/get-default-values.js +1 -1
  65. package/dist/form-control/component.js +1 -1
  66. package/dist/form-control/index.js +1 -1
  67. package/dist/{formik.esm-8736df8f.js → formik.esm-6e690dce.js} +1 -1
  68. package/dist/grid/col/component.js +1 -1
  69. package/dist/grid/col/index.js +1 -1
  70. package/dist/grid/component.js +1 -1
  71. package/dist/grid/index.js +1 -1
  72. package/dist/grid/row/component.js +1 -1
  73. package/dist/grid/row/index.js +1 -1
  74. package/dist/header-search/component.js +1 -1
  75. package/dist/header-search/index.js +1 -1
  76. package/dist/heading/component.js +1 -1
  77. package/dist/heading/index.js +1 -1
  78. package/dist/hooks/index.js +1 -1
  79. package/dist/hooks/use-crud-form-requests/index.js +1 -1
  80. package/dist/hooks/use-get-one/index.js +1 -1
  81. package/dist/icon-button/component.js +1 -1
  82. package/dist/icon-button/index.js +1 -1
  83. package/dist/image/component.js +1 -1
  84. package/dist/image/image-base.js +1 -1
  85. package/dist/image/index.js +1 -1
  86. package/dist/image/use-image-render-component.js +1 -1
  87. package/dist/image-gallery/component.js +1 -1
  88. package/dist/image-gallery/components/header/index.js +1 -1
  89. package/dist/image-gallery/components/header-info-block/index.js +1 -1
  90. package/dist/image-gallery/components/image-viewer/index.js +1 -1
  91. package/dist/image-gallery/components/image-viewer/slide.js +1 -1
  92. package/dist/image-gallery/components/index.js +1 -1
  93. package/dist/image-gallery/index.js +1 -1
  94. package/dist/image-uploader/component.js +1 -1
  95. package/dist/image-uploader/index.js +1 -1
  96. package/dist/{index-52b03dee.js → index-5768d90e.js} +1 -1
  97. package/dist/index.css +1 -1
  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/input-autocomplete/autocomplete-field/index.js +1 -1
  105. package/dist/input-autocomplete/component.js +1 -1
  106. package/dist/input-autocomplete/index.js +1 -1
  107. package/dist/link/component.js +1 -1
  108. package/dist/link/index.js +1 -1
  109. package/dist/list-allert/component.js +1 -1
  110. package/dist/list-allert/index.js +1 -1
  111. package/dist/masked-input/component.js +1 -1
  112. package/dist/masked-input/index.js +1 -1
  113. package/dist/menu/component.js +1 -1
  114. package/dist/menu/components/content-header/index.js +1 -1
  115. package/dist/menu/components/index.js +1 -1
  116. package/dist/menu/components/menu-avatar/index.js +1 -1
  117. package/dist/menu/components/menu-button/index.js +1 -1
  118. package/dist/menu/components/menu-buttons-list/index.js +1 -1
  119. package/dist/menu/components/user-button/index.js +1 -1
  120. package/dist/menu/index.js +1 -1
  121. package/dist/message/component.js +1 -1
  122. package/dist/message/index.js +1 -1
  123. package/dist/modal/components/modals/index.js +1 -1
  124. package/dist/modal/context.js +1 -1
  125. package/dist/modal/hooks/use-modal.js +1 -1
  126. package/dist/modal/index.js +1 -1
  127. package/dist/not-found/component.js +1 -1
  128. package/dist/not-found/index.js +1 -1
  129. package/dist/notification/component.js +1 -1
  130. package/dist/notification/index.js +1 -1
  131. package/dist/{parse-query-params-62a7bd05.js → parse-query-params-76b7aa4c.js} +1 -1
  132. package/dist/picker-button/common/index.js +1 -1
  133. package/dist/picker-button/common/labeled-button/index.js +1 -1
  134. package/dist/picker-button/component.js +1 -1
  135. package/dist/picker-button/field/Component.js +1 -1
  136. package/dist/picker-button/field/index.js +1 -1
  137. package/dist/picker-button/index.js +1 -1
  138. package/dist/popover/component.js +1 -1
  139. package/dist/popover/index.js +1 -1
  140. package/dist/progress-bar/component.js +1 -1
  141. package/dist/progress-bar/index.js +1 -1
  142. package/dist/progress-index/component.js +1 -1
  143. package/dist/progress-index/index.js +1 -1
  144. package/dist/radio/component.js +1 -1
  145. package/dist/radio/index.js +1 -1
  146. package/dist/radio-group/component.js +1 -1
  147. package/dist/radio-group/index.js +1 -1
  148. package/dist/radio-groups/component.js +1 -1
  149. package/dist/radio-groups/index.js +1 -1
  150. package/dist/select/component.js +1 -1
  151. package/dist/select/components/base-select/component.js +1 -1
  152. package/dist/select/components/base-select/index.js +1 -1
  153. package/dist/select/components/field/component.js +1 -1
  154. package/dist/select/components/field/index.js +1 -1
  155. package/dist/select/components/index.js +1 -1
  156. package/dist/select/components/native-select/component.js +1 -1
  157. package/dist/select/components/native-select/index.js +1 -1
  158. package/dist/select/components/option/component.js +1 -1
  159. package/dist/select/components/option/index.js +1 -1
  160. package/dist/select/components/virtual-options-list/component.js +1 -1
  161. package/dist/select/components/virtual-options-list/index.js +1 -1
  162. package/dist/select/index.js +1 -1
  163. package/dist/select/presets/index.js +1 -1
  164. package/dist/select/presets/use-lazy-loading/index.js +1 -1
  165. package/dist/select/presets/use-select-with-loading/hook.js +1 -1
  166. package/dist/sidepanel-header/component.js +1 -1
  167. package/dist/sidepanel-header/index.js +1 -1
  168. package/dist/space/Item.js +1 -1
  169. package/dist/space/component.js +1 -1
  170. package/dist/space/index.js +1 -1
  171. package/dist/suffix-input/component.js +1 -1
  172. package/dist/suffix-input/index.js +1 -1
  173. package/dist/super-list-header/component.js +1 -1
  174. package/dist/super-list-header/index.js +1 -1
  175. package/dist/super-list-item/component.d.ts +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.js +1 -1
  183. package/dist/table/components/cell/index.js +1 -1
  184. package/dist/table/components/cells/index.js +1 -1
  185. package/dist/table/components/empty-list/index.js +1 -1
  186. package/dist/table/components/error/index.js +1 -1
  187. package/dist/table/components/loading/index.js +1 -1
  188. package/dist/table/components/pagination/index.js +1 -1
  189. package/dist/table/components/table-header/index.js +1 -1
  190. package/dist/table/hooks/use-table-data.js +1 -1
  191. package/dist/table/index.d.ts +1 -1
  192. package/dist/table/index.js +1 -1
  193. package/dist/table/table.js +1 -1
  194. package/dist/table/utils/add-query-param.js +1 -1
  195. package/dist/table/utils/get-query-from-url.js +1 -1
  196. package/dist/table/utils/index.d.ts +1 -1
  197. package/dist/table/utils/index.js +1 -1
  198. package/dist/table/utils/parse-query-params.js +1 -1
  199. package/dist/table/utils/prepare-rows.js +1 -1
  200. package/dist/table/utils/query-adapter.js +1 -1
  201. package/dist/table/utils/remove-query-param.js +1 -1
  202. package/dist/table/utils/reset-query-param.js +1 -1
  203. package/dist/table-status/component.js +1 -1
  204. package/dist/table-status/index.js +1 -1
  205. package/dist/tag/component.js +1 -1
  206. package/dist/tag/index.js +1 -1
  207. package/dist/tags-list/component.js +1 -1
  208. package/dist/tags-list/index.js +1 -1
  209. package/dist/tariff-builder/component.js +1 -1
  210. package/dist/tariff-builder/index.js +1 -1
  211. package/dist/textarea/component.js +1 -1
  212. package/dist/textarea/index.js +1 -1
  213. package/dist/toast/component.js +1 -1
  214. package/dist/toast/index.js +1 -1
  215. package/dist/toast-notifier/component.js +1 -1
  216. package/dist/toast-notifier/index.js +1 -1
  217. package/dist/toast-plate/component.js +1 -1
  218. package/dist/toast-plate/index.js +1 -1
  219. package/dist/tooltip/component.js +1 -1
  220. package/dist/tooltip/index.js +1 -1
  221. package/dist/typography/component.js +1 -1
  222. package/dist/typography/index.js +1 -1
  223. package/dist/typography/text/component.js +1 -1
  224. package/dist/typography/text/index.js +1 -1
  225. package/dist/typography/title/component.js +1 -1
  226. package/dist/typography/title/index.js +1 -1
  227. package/dist/typography/title-responsive/component.js +1 -1
  228. package/dist/typography/title-responsive/index.js +1 -1
  229. package/dist/utils/index.js +1 -1
  230. package/dist/utils/show-toast/index.js +1 -1
  231. package/dist/welcome-layout/component.d.ts +1 -0
  232. package/dist/welcome-layout/component.js +1 -1
  233. package/dist/with-suffix/component.js +1 -1
  234. package/dist/with-suffix/index.js +1 -1
  235. package/package.json +1 -1
  236. /package/dist/{_commonjsHelpers-aa088120.js → _commonjsHelpers-0396845e.js} +0 -0
  237. /package/dist/{colors.module-74d9c05c.js → colors.module-77ce8ff5.js} +0 -0
  238. /package/dist/{common.module-1daece5c.js → common.module-433ea7c5.js} +0 -0
  239. /package/dist/{component-8c0a0f06.d.ts → component-853d045c.d.ts} +0 -0
  240. /package/dist/{component-8c0a0f06.js → component-853d045c.js} +0 -0
  241. /package/dist/{component-6a565481.d.ts → component-c21c05a4.d.ts} +0 -0
  242. /package/dist/{component-6a565481.js → component-c21c05a4.js} +0 -0
  243. /package/dist/{contact-block-063742a2.d.ts → contact-block-865aec56.d.ts} +0 -0
  244. /package/dist/{contact-block-063742a2.js → contact-block-865aec56.js} +0 -0
  245. /package/dist/{gutters.module-7bc26879.js → gutters.module-e49b5297.js} +0 -0
  246. /package/dist/{intersection-observer-9ca3750d.js → intersection-observer-b2c58652.js} +0 -0
  247. /package/dist/{parse-query-params-62a7bd05.d.ts → parse-query-params-76b7aa4c.d.ts} +0 -0
  248. /package/dist/{slide-95646194.d.ts → slide-addb7f15.d.ts} +0 -0
  249. /package/dist/{slide-95646194.js → slide-addb7f15.js} +0 -0
  250. /package/dist/{tslib.es6-fe0f1d0a.js → tslib.es6-7f4a5e3a.js} +0 -0
  251. /package/dist/{use-image-render-component-583239e8.d.ts → use-image-render-component-54e6733a.d.ts} +0 -0
  252. /package/dist/{use-image-render-component-583239e8.js → use-image-render-component-54e6733a.js} +0 -0
@@ -1 +1 @@
1
- import{_ as o,a as t}from"../tslib.es6-fe0f1d0a.js";import r from"react";import e from"classnames";import{Typography as i}from"../typography/component.js";import{formatAmount as m,AMOUNT_MAJOR_MINOR_PARTS_SEPARATOR as s,THINSP as a}from"../utils/format-amount/util.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-74d9c05c.js";import"../common.module-1daece5c.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../utils/get-currency-symbol/util.js";import"../utils/data/currency-codes.js";import"../utils/split-amount/util.js";var c="index-module_component__B2c28",n="index-module_canceled__q9BBN",l=function(l){var p,u=l.value,d=l.currency,y=l.showMinorPart,j=void 0!==y&&y,v=l.isCanceled,h=void 0!==v&&v,f=o(l,["value","currency","showMinorPart","isCanceled"]),g=m({value:u,currency:d,showMinorPart:j}),w=g.majorPart,_=g.minorPart,x=g.currencySymbol,P=f,b=P.className,B=P.color,M=void 0===B?"secondary":B,N=P.view,C=void 0===N?"title":N,q=P.weight,E=void 0===q?"medium":q;return r.createElement(i.Text,t({},f,{view:C,weight:E,color:M,className:e(c,b,(p={},p[n]=h,p))}),w,_&&s,_,!!x&&""+a+a+x)};export{l as Amount};
1
+ import{_ as o,a as t}from"../tslib.es6-7f4a5e3a.js";import r from"react";import e from"classnames";import{Typography as i}from"../typography/component.js";import{formatAmount as m,AMOUNT_MAJOR_MINOR_PARTS_SEPARATOR as a,THINSP as s}from"../utils/format-amount/util.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-77ce8ff5.js";import"../common.module-433ea7c5.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../utils/get-currency-symbol/util.js";import"../utils/data/currency-codes.js";import"../utils/split-amount/util.js";var c="index-module_component__B2c28",n="index-module_canceled__q9BBN",l=function(l){var p,u=l.value,d=l.currency,y=l.showMinorPart,j=void 0!==y&&y,v=l.isCanceled,f=void 0!==v&&v,h=o(l,["value","currency","showMinorPart","isCanceled"]),g=m({value:u,currency:d,showMinorPart:j}),w=g.majorPart,_=g.minorPart,x=g.currencySymbol,P=h,b=P.className,B=P.color,M=void 0===B?"secondary":B,N=P.view,C=void 0===N?"title":N,q=P.weight,E=void 0===q?"medium":q;return r.createElement(i.Text,t({},h,{view:C,weight:E,color:M,className:e(c,b,(p={},p[n]=f,p))}),w,_&&a,_,!!x&&""+s+s+x)};export{l as Amount};
@@ -1 +1 @@
1
- export{Amount}from"./component.js";import"../tslib.es6-fe0f1d0a.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-74d9c05c.js";import"../common.module-1daece5c.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";
1
+ export{Amount}from"./component.js";import"../tslib.es6-7f4a5e3a.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-77ce8ff5.js";import"../common.module-433ea7c5.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";
@@ -1 +1 @@
1
- import{_ as e,a as t}from"../tslib.es6-fe0f1d0a.js";import n,{forwardRef as o,useState as r,useEffect as i,useCallback as a,Fragment as s}from"react";import l from"classnames";import{Input as m}from"../input/component.js";import{formatAmount as u,THINSP as c}from"../utils/format-amount/util.js";import{withSuffix as d}from"../with-suffix/component.js";import{getAmountValueFromStr as f,getFormattedValue as p}from"./utils/index.js";import"react-merge-refs";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../form-control/component.js";import"../utils/get-currency-symbol/util.js";import"../utils/data/currency-codes.js";import"../utils/split-amount/util.js";import"../portal/component.js";import"react-dom";import"../portal/utils.js";var v={container:"index-module_container__AHkdg",minorPartAndCurrency:"index-module_minorPartAndCurrency__QJKHy",suffixContainer:"index-module_suffixContainer__J46vs",filled:"index-module_filled__GrmG4",input:"index-module_input__Ims09"},g=d(m),C=o((function(o,m){var d,C=o.value,x=void 0===C?null:C,_=o.integerLength,j=void 0===_?9:_,h=o.suffix,N=void 0===h?"RUR":h,y=o.placeholder,E=void 0===y?"":y,w=o.bold,A=void 0===w||w,R=o.className,S=o.focusedClassName,b=o.required,q=o.dataTestId,F=o.clear,I=void 0!==F&&F,P=o.integer,T=void 0!==P&&P,U=o.onChange,k=o.onClear,G=e(o,["value","integerLength","suffix","placeholder","bold","className","focusedClassName","required","dataTestId","clear","integer","onChange","onClear"]),H=r(u({value:x,currency:"RUR"}).formatted),J=H[0],L=H[1];i((function(){return f(J,T)!==x?L(u({value:x,currency:"RUR"}).formatted):function(){}}),[x]);var $=a((function(e){L(""),k&&k(e)}),[k]),B=J.split(","),K=B[0],Q=B[1];return n.createElement("div",{className:l(v.container,(d={},d[v.bold]=A,d[v.filled]=Boolean(J),d))},n.createElement(g,t({},G,{suffix:n.createElement(s,null,K,n.createElement("span",{className:v.minorPartAndCurrency},void 0!==Q&&","+Q,c,N)),suffixContainerClassName:v.suffixContainer,clear:I,required:b,placeholder:E,value:J,className:l(v.component,R),focusedClassName:S,inputClassName:v.input,onChange:function(e){var t=e.target,n=t.value.replace(/\s/g,"").replace(".",",");if(RegExp("(^[0-9]{1,"+j+"}(,([0-9]+)?)?$|^\\s*$)").test(n)){var o=p(n,T);if(o===J){var r=t.selectionStart;window.requestAnimationFrame((function(){t.selectionStart=r,t.selectionEnd=r}))}else{var i=t.value.split(/\.|,/),a=i[0],s=i[1],l=a.length;s&&(l+=1,l+=s.slice(0,2).length);var m=o.length-l,u=t.selectionStart+m;window.requestAnimationFrame((function(){t.selectionStart=u,t.selectionEnd=u}))}L(o),U&&U(e,{value:f(o,T),valueString:o})}else{var c=t.selectionStart-1;window.requestAnimationFrame((function(){t.selectionStart=c,t.selectionEnd=c}))}},onClear:$,dataTestId:q,ref:m})))}));export{C as AmountInput};
1
+ import{_ as e,a as t}from"../tslib.es6-7f4a5e3a.js";import n,{forwardRef as o,useState as r,useEffect as i,useCallback as a,Fragment as s}from"react";import l from"classnames";import{Input as m}from"../input/component.js";import{formatAmount as u,THINSP as c}from"../utils/format-amount/util.js";import{withSuffix as d}from"../with-suffix/component.js";import{getAmountValueFromStr as f,getFormattedValue as p}from"./utils/index.js";import"react-merge-refs";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../form-control/component.js";import"../utils/get-currency-symbol/util.js";import"../utils/data/currency-codes.js";import"../utils/split-amount/util.js";import"../portal/component.js";import"react-dom";import"../portal/utils.js";var v={container:"index-module_container__AHkdg",minorPartAndCurrency:"index-module_minorPartAndCurrency__QJKHy",suffixContainer:"index-module_suffixContainer__J46vs",filled:"index-module_filled__GrmG4",input:"index-module_input__Ims09"},g=d(m),C=o((function(o,m){var d,C=o.value,x=void 0===C?null:C,_=o.integerLength,j=void 0===_?9:_,h=o.suffix,N=void 0===h?"RUR":h,y=o.placeholder,E=void 0===y?"":y,w=o.bold,A=void 0===w||w,R=o.className,S=o.focusedClassName,b=o.required,q=o.dataTestId,F=o.clear,I=void 0!==F&&F,P=o.integer,T=void 0!==P&&P,U=o.onChange,k=o.onClear,G=e(o,["value","integerLength","suffix","placeholder","bold","className","focusedClassName","required","dataTestId","clear","integer","onChange","onClear"]),H=r(u({value:x,currency:"RUR"}).formatted),J=H[0],L=H[1];i((function(){return f(J,T)!==x?L(u({value:x,currency:"RUR"}).formatted):function(){}}),[x]);var $=a((function(e){L(""),k&&k(e)}),[k]),B=J.split(","),K=B[0],Q=B[1];return n.createElement("div",{className:l(v.container,(d={},d[v.bold]=A,d[v.filled]=Boolean(J),d))},n.createElement(g,t({},G,{suffix:n.createElement(s,null,K,n.createElement("span",{className:v.minorPartAndCurrency},void 0!==Q&&","+Q,c,N)),suffixContainerClassName:v.suffixContainer,clear:I,required:b,placeholder:E,value:J,className:l(v.component,R),focusedClassName:S,inputClassName:v.input,onChange:function(e){var t=e.target,n=t.value.replace(/\s/g,"").replace(".",",");if(RegExp("(^[0-9]{1,"+j+"}(,([0-9]+)?)?$|^\\s*$)").test(n)){var o=p(n,T);if(o===J){var r=t.selectionStart;window.requestAnimationFrame((function(){t.selectionStart=r,t.selectionEnd=r}))}else{var i=t.value.split(/\.|,/),a=i[0],s=i[1],l=a.length;s&&(l+=1,l+=s.slice(0,2).length);var m=o.length-l,u=t.selectionStart+m;window.requestAnimationFrame((function(){t.selectionStart=u,t.selectionEnd=u}))}L(o),U&&U(e,{value:f(o,T),valueString:o})}else{var c=t.selectionStart-1;window.requestAnimationFrame((function(){t.selectionStart=c,t.selectionEnd=c}))}},onClear:$,dataTestId:q,ref:m})))}));export{C as AmountInput};
@@ -1 +1 @@
1
- export{AmountInput}from"./component.js";import"../tslib.es6-fe0f1d0a.js";import"react";import"classnames";import"../input/component.js";import"react-merge-refs";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../form-control/component.js";import"../utils/format-amount/util.js";import"../utils/get-currency-symbol/util.js";import"../utils/data/currency-codes.js";import"../utils/split-amount/util.js";import"../with-suffix/component.js";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"./utils/index.js";
1
+ export{AmountInput}from"./component.js";import"../tslib.es6-7f4a5e3a.js";import"react";import"classnames";import"../input/component.js";import"react-merge-refs";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../form-control/component.js";import"../utils/format-amount/util.js";import"../utils/get-currency-symbol/util.js";import"../utils/data/currency-codes.js";import"../utils/split-amount/util.js";import"../with-suffix/component.js";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"./utils/index.js";
@@ -1 +1 @@
1
- import o from"react";import e from"classnames";import{Button as t}from"../button/component.js";import{Image as r}from"../image/component.js";import{ImageSizes as m}from"../image/typings.js";import"../image/constants.js";import"../tslib.es6-fe0f1d0a.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../skeleton/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-74d9c05c.js";import"../common.module-1daece5c.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../use-image-render-component-583239e8.js";import"alpha-cli-icons";import"../spinner/component.js";import"../image/utils.js";var s={warpper:"index-module_warpper__snzzI",disabled:"index-module_disabled__gP76-",slot:"index-module_slot__Ndmo9"},i=function(i){var p,n=i.src,a=i.text,c=i.slot,l=i.ref,d=i.onClick;return o.createElement(t,{ref:l,onClick:d,className:e([s.wrapper,(p={},p[s.disabled]=!d,p)]),view:"ghost"},o.createElement(r,{resolution:m.xs,view:"circle",size:"s",src:n,text:a}),c&&o.createElement("div",{className:s.slot},c))};export{i as Avatar};
1
+ import o from"react";import e from"classnames";import{Button as t}from"../button/component.js";import{Image as r}from"../image/component.js";import{ImageSizes as m}from"../image/typings.js";import"../image/constants.js";import"../tslib.es6-7f4a5e3a.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../skeleton/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-77ce8ff5.js";import"../common.module-433ea7c5.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../use-image-render-component-54e6733a.js";import"alpha-cli-icons";import"../spinner/component.js";import"../image/utils.js";var s={warpper:"index-module_warpper__snzzI",disabled:"index-module_disabled__gP76-",slot:"index-module_slot__Ndmo9"},i=function(i){var p,n=i.src,a=i.text,c=i.slot,l=i.ref,d=i.onClick;return o.createElement(t,{ref:l,onClick:d,className:e([s.wrapper,(p={},p[s.disabled]=!d,p)]),view:"ghost"},o.createElement(r,{resolution:m.xs,view:"circle",size:"s",src:n,text:a}),c&&o.createElement("div",{className:s.slot},c))};export{i as Avatar};
@@ -1 +1 @@
1
- export{Avatar}from"./component.js";import"react";import"classnames";import"../button/component.js";import"../tslib.es6-fe0f1d0a.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../image/component.js";import"../skeleton/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-74d9c05c.js";import"../common.module-1daece5c.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../use-image-render-component-583239e8.js";import"alpha-cli-icons";import"../spinner/component.js";import"../image/typings.js";import"../image/constants.js";import"../image/utils.js";
1
+ export{Avatar}from"./component.js";import"react";import"classnames";import"../button/component.js";import"../tslib.es6-7f4a5e3a.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../image/component.js";import"../skeleton/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-77ce8ff5.js";import"../common.module-433ea7c5.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../use-image-render-component-54e6733a.js";import"alpha-cli-icons";import"../spinner/component.js";import"../image/typings.js";import"../image/constants.js";import"../image/utils.js";
@@ -1 +1 @@
1
- import e from"react";import t from"classnames";import{Typography as o}from"../typography/component.js";import"alpha-cli-icons";import{ImageSizes as i}from"../image/typings.js";import"../image/constants.js";import{PureImage as m}from"../pure-image/component.js";import"../typography/title/index.js";import"../tslib.es6-fe0f1d0a.js";import"../typography/title/component.js";import"../colors.module-74d9c05c.js";import"../common.module-1daece5c.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../skeleton/component.js";import"../pure-image/use-image-state.js";var a="index-module_component__4rFCR",n="index-module_bottomSpace__Di-8N",d="index-module_footer__kIafr",s="index-module_withBorder__r41KZ",r="index-module_scalable__-ZP65",l="index-module_topLeftAddons__2l75B",p="index-module_topRightAddons__aPgTC",c="index-module_bottomRightAddons__7Thsr",_="index-module_imageWrap__BLuEt",u="index-module_shadow__Cvjla",v="index-module_titleWrap__LxVjO",g="index-module_title__iGzO6",x="index-module_titleAddons__OJJpe",h=function(h){var j,E=h.className,f=h.bottomSpace,y=void 0===f||f,N=h.orientation,b=void 0===N?"vertical":N,A=h.title,L=h.subtitle,w=h.topLeftAddons,R=h.topRightAddons,T=h.bottomRightAddons,M=h.titleAddons,B=h.photo,C=h.href,O=h.scalable,k=void 0!==O&&O,I=h.border,J=void 0!==I&&I,P=h.dataTestId,S=h.onMouseEnter,W=h.onMouseLeave;return e.createElement("a",{href:C,onMouseEnter:S,onMouseLeave:W,"data-test-id":P,className:t(a,(j={},j[s]=J,j[r]=k,j[n]=!y,j),E)},!!B&&e.createElement("div",{className:_},e.createElement(m,{src:B,orientation:b,resolution:i.m}),!!w&&e.createElement("div",{className:l},w),!!R&&e.createElement("div",{className:p},R),!y&&e.createElement("div",{className:u})),e.createElement("div",{className:d},e.createElement("div",{className:v},e.createElement(o.Text,{tag:"div",weight:"bold",className:g,view:"component"},A),!!M&&e.createElement("div",{className:x},M)),e.createElement(o.Text,{tag:"div",view:"primary-medium"},L),!!T&&e.createElement("div",{className:c},T)))};export{h as BaseCard};
1
+ import e from"react";import t from"classnames";import{Typography as o}from"../typography/component.js";import"alpha-cli-icons";import{ImageSizes as i}from"../image/typings.js";import"../image/constants.js";import{PureImage as m}from"../pure-image/component.js";import"../typography/title/index.js";import"../tslib.es6-7f4a5e3a.js";import"../typography/title/component.js";import"../colors.module-77ce8ff5.js";import"../common.module-433ea7c5.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../skeleton/component.js";import"../pure-image/use-image-state.js";var a="index-module_component__4rFCR",n="index-module_bottomSpace__Di-8N",s="index-module_footer__kIafr",r="index-module_withBorder__r41KZ",d="index-module_scalable__-ZP65",l="index-module_topLeftAddons__2l75B",p="index-module_topRightAddons__aPgTC",c="index-module_bottomRightAddons__7Thsr",_="index-module_imageWrap__BLuEt",u="index-module_shadow__Cvjla",v="index-module_titleWrap__LxVjO",g="index-module_title__iGzO6",x="index-module_titleAddons__OJJpe",h=function(h){var f,j=h.className,E=h.bottomSpace,y=void 0===E||E,N=h.orientation,b=void 0===N?"vertical":N,A=h.title,L=h.subtitle,w=h.topLeftAddons,R=h.topRightAddons,T=h.bottomRightAddons,M=h.titleAddons,B=h.photo,C=h.href,O=h.scalable,k=void 0!==O&&O,I=h.border,J=void 0!==I&&I,P=h.dataTestId,S=h.onMouseEnter,W=h.onMouseLeave;return e.createElement("a",{href:C,onMouseEnter:S,onMouseLeave:W,"data-test-id":P,className:t(a,(f={},f[r]=J,f[d]=k,f[n]=!y,f),j)},!!B&&e.createElement("div",{className:_},e.createElement(m,{src:B,orientation:b,resolution:i.m}),!!w&&e.createElement("div",{className:l},w),!!R&&e.createElement("div",{className:p},R),!y&&e.createElement("div",{className:u})),e.createElement("div",{className:s},e.createElement("div",{className:v},e.createElement(o.Text,{tag:"div",weight:"bold",className:g,view:"component"},A),!!M&&e.createElement("div",{className:x},M)),e.createElement(o.Text,{tag:"div",view:"primary-medium"},L),!!T&&e.createElement("div",{className:c},T)))};export{h as BaseCard};
@@ -1 +1 @@
1
- export{BaseCard}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-fe0f1d0a.js";import"../typography/title/component.js";import"../colors.module-74d9c05c.js";import"../common.module-1daece5c.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"alpha-cli-icons";import"../image/typings.js";import"../image/constants.js";import"../pure-image/component.js";import"../skeleton/component.js";import"../pure-image/use-image-state.js";
1
+ export{BaseCard}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-7f4a5e3a.js";import"../typography/title/component.js";import"../colors.module-77ce8ff5.js";import"../common.module-433ea7c5.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"alpha-cli-icons";import"../image/typings.js";import"../image/constants.js";import"../pure-image/component.js";import"../skeleton/component.js";import"../pure-image/use-image-state.js";
@@ -1,4 +1,4 @@
1
- import e from"react";import{c as t,u as n}from"../_commonjsHelpers-aa088120.js";import{r}from"../index-52b03dee.js";import{ChevronBackM as o}from"alpha-cli-icons";
1
+ import e from"react";import{c as t,u as n}from"../_commonjsHelpers-0396845e.js";import{r}from"../index-5768d90e.js";import{ChevronBackM as o}from"alpha-cli-icons";
2
2
  /*
3
3
  object-assign
4
4
  (c) Sindre Sorhus
@@ -1 +1 @@
1
- export{BottomSheet}from"./component.js";import"react";import"../_commonjsHelpers-aa088120.js";import"../index-52b03dee.js";import"alpha-cli-icons";
1
+ export{BottomSheet}from"./component.js";import"react";import"../_commonjsHelpers-0396845e.js";import"../index-5768d90e.js";import"alpha-cli-icons";
@@ -1 +1 @@
1
- import{_ as e,a as d}from"../tslib.es6-fe0f1d0a.js";import o,{useRef as n}from"react";import l from"react-merge-refs";import a from"classnames";import{useFocus as r}from"../hooks/useFocus/index.js";import{Loader as t}from"../loader/component.js";var i={component:"index-module_component__u-TUk",focused:"index-module_focused__eUuXy",loading:"index-module_loading__hiz4V",text:"index-module_text__r-s7T",addons:"index-module_addons__L1ZvJ",stretchText:"index-module_stretchText__NlLwS",loader:"index-module_loader__uNrku",xs:"index-module_xs__n9Pli",iconOnly:"index-module_iconOnly__-dDPG",s:"index-module_s__lru3T",m:"index-module_m__PgSTc",l:"index-module_l__wmoiI",primary:"index-module_primary__xJlhQ",secondary:"index-module_secondary__hsPYU",outlined:"index-module_outlined__bwbBZ",filled:"index-module_filled__tjqby",transparent:"index-module_transparent__M6ZJW",link:"index-module_link__hQuMO",ghost:"index-module_ghost__RbRGE",block:"index-module_block__ubbI7",nowrap:"index-module_nowrap__dEJbn"},s=o.forwardRef((function(s,_){var m,c,u=s.children,x=s.view,f=void 0===x?"secondary":x,p=s.leftAddons,b=s.rightAddons,h=s.size,g=void 0===h?"m":h,v=s.block,k=void 0!==v&&v,w=s.className,y=s.dataTestId,E=s.href,N=s.loading,T=void 0!==N&&N,j=s.nowrap,A=void 0!==j&&j,I=e(s,["children","view","leftAddons","rightAddons","size","block","className","dataTestId","href","loading","nowrap"]),J=n(null),O=r(J,"keyboard")[0],P={className:a(i.component,i[f],i[g],(m={},m[i.focused]=O,m[i.block]=k,m[i.iconOnly]=!u,m[i.nowrap]=A,m[i.loading]=T,m),w),"data-test-id":y||null},z=o.createElement(o.Fragment,null,p&&o.createElement("span",{className:i.addons},p),u&&o.createElement("span",{className:a(i.text,(c={},c[i.stretchText]=!(p||b),c))},u),T&&o.createElement(t,{className:i.loader}),b&&o.createElement("span",{className:i.addons},b));if(E){var R=I.target;return o.createElement("a",d({rel:"_blank"===R?"noreferrer noopener":void 0},P,I,{href:E,ref:l([J,_])}),z)}var U=I,Z=U.disabled,F=e(U,["disabled"]);return o.createElement("button",d({},P,F,{disabled:Z||T,ref:l([J,_])}),z)}));export{s as Button};
1
+ import{_ as e,a as d}from"../tslib.es6-7f4a5e3a.js";import o,{useRef as n}from"react";import l from"react-merge-refs";import a from"classnames";import{useFocus as r}from"../hooks/useFocus/index.js";import{Loader as t}from"../loader/component.js";var i={component:"index-module_component__u-TUk",focused:"index-module_focused__eUuXy",loading:"index-module_loading__hiz4V",text:"index-module_text__r-s7T",addons:"index-module_addons__L1ZvJ",stretchText:"index-module_stretchText__NlLwS",loader:"index-module_loader__uNrku",xs:"index-module_xs__n9Pli",iconOnly:"index-module_iconOnly__-dDPG",s:"index-module_s__lru3T",m:"index-module_m__PgSTc",l:"index-module_l__wmoiI",primary:"index-module_primary__xJlhQ",secondary:"index-module_secondary__hsPYU",outlined:"index-module_outlined__bwbBZ",filled:"index-module_filled__tjqby",transparent:"index-module_transparent__M6ZJW",link:"index-module_link__hQuMO",ghost:"index-module_ghost__RbRGE",block:"index-module_block__ubbI7",nowrap:"index-module_nowrap__dEJbn"},s=o.forwardRef((function(s,_){var m,c,u=s.children,x=s.view,f=void 0===x?"secondary":x,p=s.leftAddons,b=s.rightAddons,h=s.size,g=void 0===h?"m":h,v=s.block,k=void 0!==v&&v,w=s.className,y=s.dataTestId,E=s.href,N=s.loading,T=void 0!==N&&N,j=s.nowrap,A=void 0!==j&&j,I=e(s,["children","view","leftAddons","rightAddons","size","block","className","dataTestId","href","loading","nowrap"]),J=n(null),O=r(J,"keyboard")[0],P={className:a(i.component,i[f],i[g],(m={},m[i.focused]=O,m[i.block]=k,m[i.iconOnly]=!u,m[i.nowrap]=A,m[i.loading]=T,m),w),"data-test-id":y||null},z=o.createElement(o.Fragment,null,p&&o.createElement("span",{className:i.addons},p),u&&o.createElement("span",{className:a(i.text,(c={},c[i.stretchText]=!(p||b),c))},u),T&&o.createElement(t,{className:i.loader}),b&&o.createElement("span",{className:i.addons},b));if(E){var R=I.target;return o.createElement("a",d({rel:"_blank"===R?"noreferrer noopener":void 0},P,I,{href:E,ref:l([J,_])}),z)}var U=I,Z=U.disabled,F=e(U,["disabled"]);return o.createElement("button",d({},P,F,{disabled:Z||T,ref:l([J,_])}),z)}));export{s as Button};
@@ -1 +1 @@
1
- export{Button}from"./component.js";import"../tslib.es6-fe0f1d0a.js";import"react";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";
1
+ export{Button}from"./component.js";import"../tslib.es6-7f4a5e3a.js";import"react";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";
@@ -1 +1 @@
1
- import{a as e}from"../tslib.es6-fe0f1d0a.js";import t,{forwardRef as o,useState as n,useMemo as r,useCallback as s}from"react";import a from"classnames";import{startOfMonth as i}from"date-fns";import{DaysTable as m}from"./components/days-table/component.js";import{Header as c}from"./components/header/сomponent.js";import{MonthsTable as l}from"./components/months-table/сomponent.js";import{YearsTable as d}from"./components/years-table/сomponent.js";import{useCalendar as u}from"./use-calendar.js";import{useDidUpdateEffect as h,monthName as p}from"./utils.js";import"react-transition-group";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../hooks/usePrevious/index.js";import"./components/select-button/сomponent.js";var f="index-module_component__SJQwG",v="index-module_container__3PFvh",g="index-module_sixWeeks__NcW9R",w=o((function(o,w){var y,M=o.className,D=o.defaultView,j=void 0===D?"days":D,x=o.selectorView,P=void 0===x?"full":x,b=o.value,k=o.month,_=o.defaultMonth,C=void 0===_?+new Date:_,N=o.minDate,E=o.maxDate,S=o.selectedFrom,F=o.selectedTo,T=o.offDays,Y=o.events,A=o.onChange,V=o.onMonthChange,R=o.t,W=void 0===R?function(e){return e}:R,B=o.dataTestId,G=n(j),I=G[0],J=G[1],O=n(!1),Q=O[0],q=O[1],z=r((function(){return b?new Date(b):void 0}),[b]),H=r((function(){return i(z||C)}),[]),K=r((function(){return k?new Date(k):void 0}),[k]),L=r((function(){return N?new Date(N):void 0}),[N]),U=r((function(){return E?new Date(E):void 0}),[E]),X=u({month:K,defaultMonth:H,view:I,minDate:L,maxDate:U,selected:z,offDays:T,events:Y,onChange:A,onMonthChange:V}),Z=X.activeMonth,$=X.weeks,ee=X.months,te=X.years,oe=X.canSetPrevMonth,ne=X.canSetNextMonth,re=X.setMonthByDate,se=X.setPrevMonth,ae=X.setNextMonth,ie=X.highlighted,me=X.getDayProps,ce=X.getMonthProps,le=X.getYearProps,de=X.getRootProps,ue=s((function(e){J(I===e?"days":e)}),[I]),he=s((function(e){q(e>0)}),[]),pe=s((function(){se()}),[se]),fe=s((function(){ae()}),[ae]),ve=s((function(){ue("months")}),[ue]),ge=s((function(){ue("years")}),[ue]);return h((function(){J("days")}),[Z]),h((function(){q(!1)}),[I]),h((function(){var e=b&&i(b);e&&e.getTime()!==Z.getTime()&&re(e)}),[b]),t.createElement("div",e({},de({ref:w}),{className:a(f,M,(y={},y[g]=6===$.length,y)),"data-test-id":B}),t.createElement(c,{month:p(Z,W("calendar.monthes",{returnObjects:!0})),year:Z.getFullYear().toString(),prevArrowVisible:oe,nextArrowVisible:ne,onPrevArrowClick:pe,onNextArrowClick:fe,onMonthClick:ve,onYearClick:ge,view:P,withShadow:Q}),t.createElement("div",{className:v},"days"===I&&t.createElement(m,{t:W,weeks:$,activeMonth:Z,selectedFrom:S,selectedTo:F,getDayProps:me,highlighted:ie}),"months"===I&&t.createElement(l,{selectedMonth:Z,t:W,months:ee,getMonthProps:ce}),"years"===I&&t.createElement(d,{selectedYear:Z,years:te,getYearProps:le,onScroll:he})))}));export{w as Calendar};
1
+ import{a as e}from"../tslib.es6-7f4a5e3a.js";import t,{forwardRef as o,useState as n,useMemo as r,useCallback as s}from"react";import a from"classnames";import{startOfMonth as i}from"date-fns";import{DaysTable as m}from"./components/days-table/component.js";import{Header as c}from"./components/header/сomponent.js";import{MonthsTable as l}from"./components/months-table/сomponent.js";import{YearsTable as d}from"./components/years-table/сomponent.js";import{useCalendar as u}from"./use-calendar.js";import{useDidUpdateEffect as h,monthName as p}from"./utils.js";import"react-transition-group";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../hooks/usePrevious/index.js";import"./components/select-button/сomponent.js";var f="index-module_component__SJQwG",v="index-module_container__3PFvh",g="index-module_sixWeeks__NcW9R",w=o((function(o,w){var y,M=o.className,D=o.defaultView,j=void 0===D?"days":D,x=o.selectorView,P=void 0===x?"full":x,b=o.value,k=o.month,_=o.defaultMonth,C=void 0===_?+new Date:_,N=o.minDate,E=o.maxDate,S=o.selectedFrom,F=o.selectedTo,T=o.offDays,Y=o.events,A=o.onChange,V=o.onMonthChange,R=o.t,W=void 0===R?function(e){return e}:R,B=o.dataTestId,G=n(j),I=G[0],J=G[1],O=n(!1),Q=O[0],q=O[1],z=r((function(){return b?new Date(b):void 0}),[b]),H=r((function(){return i(z||C)}),[]),K=r((function(){return k?new Date(k):void 0}),[k]),L=r((function(){return N?new Date(N):void 0}),[N]),U=r((function(){return E?new Date(E):void 0}),[E]),X=u({month:K,defaultMonth:H,view:I,minDate:L,maxDate:U,selected:z,offDays:T,events:Y,onChange:A,onMonthChange:V}),Z=X.activeMonth,$=X.weeks,ee=X.months,te=X.years,oe=X.canSetPrevMonth,ne=X.canSetNextMonth,re=X.setMonthByDate,se=X.setPrevMonth,ae=X.setNextMonth,ie=X.highlighted,me=X.getDayProps,ce=X.getMonthProps,le=X.getYearProps,de=X.getRootProps,ue=s((function(e){J(I===e?"days":e)}),[I]),he=s((function(e){q(e>0)}),[]),pe=s((function(){se()}),[se]),fe=s((function(){ae()}),[ae]),ve=s((function(){ue("months")}),[ue]),ge=s((function(){ue("years")}),[ue]);return h((function(){J("days")}),[Z]),h((function(){q(!1)}),[I]),h((function(){var e=b&&i(b);e&&e.getTime()!==Z.getTime()&&re(e)}),[b]),t.createElement("div",e({},de({ref:w}),{className:a(f,M,(y={},y[g]=6===$.length,y)),"data-test-id":B}),t.createElement(c,{month:p(Z,W("calendar.monthes",{returnObjects:!0})),year:Z.getFullYear().toString(),prevArrowVisible:oe,nextArrowVisible:ne,onPrevArrowClick:pe,onNextArrowClick:fe,onMonthClick:ve,onYearClick:ge,view:P,withShadow:Q}),t.createElement("div",{className:v},"days"===I&&t.createElement(m,{t:W,weeks:$,activeMonth:Z,selectedFrom:S,selectedTo:F,getDayProps:me,highlighted:ie}),"months"===I&&t.createElement(l,{selectedMonth:Z,t:W,months:ee,getMonthProps:ce}),"years"===I&&t.createElement(d,{selectedYear:Z,years:te,getYearProps:le,onScroll:he})))}));export{w as Calendar};
@@ -1 +1 @@
1
- import{a as e}from"../../../tslib.es6-fe0f1d0a.js";import t,{useRef as a,useCallback as d}from"react";import{TransitionGroup as r,CSSTransition as i}from"react-transition-group";import n from"classnames";import{isSameDay as s,isWithinInterval as l,isLastDayOfMonth as o,startOfMonth as m,isToday as _,isEqual as c}from"date-fns";import{Button as u}from"../../../button/component.js";import{usePrevious as y}from"../../../hooks/usePrevious/index.js";import{getSelectionRange as x}from"../../utils.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var f={daysTable:"index-module_daysTable__rn902",transitLeft:"index-module_transitLeft__bGP2q",transitRight:"index-module_transitRight__cZ-3a",dayName:"index-module_dayName__A3Z6w",day:"index-module_day__BdXjf",event:"index-module_event__BmkeM",today:"index-module_today__FjG9V",highlighted:"index-module_highlighted__fg6kr",disabled:"index-module_disabled__CNZL7",range:"index-module_range__WYxl2",selected:"index-module_selected__BvMd5",rangeStart:"index-module_rangeStart__N8rLo",firstDay:"index-module_firstDay__v7p4d",lastDay:"index-module_lastDay__KdLVO",left:"index-module_left__Hxlkl",daysEnter:"index-module_daysEnter__V89W-",daysEnterActive:"index-module_daysEnterActive__-BRlM",daysExit:"index-module_daysExit__7nlJ4",daysExitActive:"index-module_daysExitActive__i-vHK",right:"index-module_right__6H99E"},g=function(g){var h=g.weeks,v=void 0===h?[]:h,E=g.activeMonth,p=void 0===E?new Date:E,b=g.highlighted,k=g.selectedFrom,D=g.selectedTo,j=g.getDayProps,A=g.t,N=a(p);N.current=p;var T=y(p),L=T&&(p<T?"right":"left"),w=x(k,D,b),B=A("calendar.weekDays",{returnObjects:!0}),M=d((function(){return B.map((function(e){return t.createElement("th",{className:f.dayName,key:e},e)}))}),[B]);return t.createElement("table",{className:n(f.daysTable,L&&f[L])},t.createElement("thead",null,t.createElement("tr",null,M())),t.createElement(r,{component:null},t.createElement(i,{key:p.getTime(),timeout:300,classNames:{enter:f.daysEnter,enterActive:f.daysEnterActive,exit:f.daysExit,exitActive:f.daysExitActive}},t.createElement("tbody",null,v.map((function(a,d){return t.createElement("tr",{key:d},a.map((function(a,d){return t.createElement("td",{key:a?a.date.getTime():d},a&&function(a){var d,r=a.selected||k&&s(a.date,k)||D&&s(a.date,D),i=!r&&w&&l(a.date,w),y=1===a.date.getDate(),x=o(a.date),g=y&&i&&w&&a.date>w.start,h=x&&i&&w&&a.date<w.end,v=w&&s(a.date,w.start),E=j(a);return t.createElement(u,e({},E,{ref:function(e){m(a.date).getTime()===N.current.getTime()&&E.ref(e)},type:"button",view:"ghost",size:"xs",disabled:a.disabled,className:n(f.day,(d={},d[f.selected]=r,d[f.range]=i,d[f.rangeStart]=v,d[f.transitLeft]=g,d[f.transitRight]=h,d[f.today]=_(a.date),d[f.firstDay]=y,d[f.lastDay]=x,d[f.event]=a.event,d[f.disabled]=a.disabled,d[f.highlighted]=b&&c(a.date,b),d))}),a.date.getDate())}(a))})))}))))))};export{g as DaysTable};
1
+ import{a as e}from"../../../tslib.es6-7f4a5e3a.js";import t,{useRef as a,useCallback as d}from"react";import{TransitionGroup as r,CSSTransition as i}from"react-transition-group";import n from"classnames";import{isSameDay as s,isWithinInterval as l,isLastDayOfMonth as o,startOfMonth as m,isToday as _,isEqual as c}from"date-fns";import{Button as u}from"../../../button/component.js";import{usePrevious as y}from"../../../hooks/usePrevious/index.js";import{getSelectionRange as x}from"../../utils.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var f={daysTable:"index-module_daysTable__rn902",transitLeft:"index-module_transitLeft__bGP2q",transitRight:"index-module_transitRight__cZ-3a",dayName:"index-module_dayName__A3Z6w",day:"index-module_day__BdXjf",event:"index-module_event__BmkeM",today:"index-module_today__FjG9V",highlighted:"index-module_highlighted__fg6kr",disabled:"index-module_disabled__CNZL7",range:"index-module_range__WYxl2",selected:"index-module_selected__BvMd5",rangeStart:"index-module_rangeStart__N8rLo",firstDay:"index-module_firstDay__v7p4d",lastDay:"index-module_lastDay__KdLVO",left:"index-module_left__Hxlkl",daysEnter:"index-module_daysEnter__V89W-",daysEnterActive:"index-module_daysEnterActive__-BRlM",daysExit:"index-module_daysExit__7nlJ4",daysExitActive:"index-module_daysExitActive__i-vHK",right:"index-module_right__6H99E"},g=function(g){var h=g.weeks,v=void 0===h?[]:h,E=g.activeMonth,p=void 0===E?new Date:E,b=g.highlighted,k=g.selectedFrom,D=g.selectedTo,j=g.getDayProps,A=g.t,N=a(p);N.current=p;var T=y(p),L=T&&(p<T?"right":"left"),w=x(k,D,b),B=A("calendar.weekDays",{returnObjects:!0}),M=d((function(){return B.map((function(e){return t.createElement("th",{className:f.dayName,key:e},e)}))}),[B]);return t.createElement("table",{className:n(f.daysTable,L&&f[L])},t.createElement("thead",null,t.createElement("tr",null,M())),t.createElement(r,{component:null},t.createElement(i,{key:p.getTime(),timeout:300,classNames:{enter:f.daysEnter,enterActive:f.daysEnterActive,exit:f.daysExit,exitActive:f.daysExitActive}},t.createElement("tbody",null,v.map((function(a,d){return t.createElement("tr",{key:d},a.map((function(a,d){return t.createElement("td",{key:a?a.date.getTime():d},a&&function(a){var d,r=a.selected||k&&s(a.date,k)||D&&s(a.date,D),i=!r&&w&&l(a.date,w),y=1===a.date.getDate(),x=o(a.date),g=y&&i&&w&&a.date>w.start,h=x&&i&&w&&a.date<w.end,v=w&&s(a.date,w.start),E=j(a);return t.createElement(u,e({},E,{ref:function(e){m(a.date).getTime()===N.current.getTime()&&E.ref(e)},type:"button",view:"ghost",size:"xs",disabled:a.disabled,className:n(f.day,(d={},d[f.selected]=r,d[f.range]=i,d[f.rangeStart]=v,d[f.transitLeft]=g,d[f.transitRight]=h,d[f.today]=_(a.date),d[f.firstDay]=y,d[f.lastDay]=x,d[f.event]=a.event,d[f.disabled]=a.disabled,d[f.highlighted]=b&&c(a.date,b),d))}),a.date.getDate())}(a))})))}))))))};export{g as DaysTable};
@@ -1 +1 @@
1
- export{DaysTable}from"./component.js";import"../../../tslib.es6-fe0f1d0a.js";import"react";import"react-transition-group";import"classnames";import"date-fns";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../hooks/usePrevious/index.js";import"../../utils.js";
1
+ export{DaysTable}from"./component.js";import"../../../tslib.es6-7f4a5e3a.js";import"react";import"react-transition-group";import"classnames";import"date-fns";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../hooks/usePrevious/index.js";import"../../utils.js";
@@ -1 +1 @@
1
- export{Header}from"./сomponent.js";import"react";import"classnames";import"../../../button/component.js";import"../../../tslib.es6-fe0f1d0a.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../select-button/сomponent.js";
1
+ export{Header}from"./сomponent.js";import"react";import"classnames";import"../../../button/component.js";import"../../../tslib.es6-7f4a5e3a.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../select-button/сomponent.js";
@@ -1 +1 @@
1
- import e from"react";import n from"classnames";import{Button as o}from"../../../button/component.js";import{SelectButton as t}from"../select-button/сomponent.js";import"../../../tslib.es6-fe0f1d0a.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var a={header:"index-module_header__-VKks",withShadow:"index-module_withShadow__m2PIV",inner:"index-module_inner__-Aep6",month:"index-module_month__aVSag",year:"index-module_year__ZXtKB",buttonContent:"index-module_buttonContent__xnYVf",monthOnly:"index-module_monthOnly__3hpyp",upDownIcon:"index-module_upDownIcon__-2CFa",arrow:"index-module_arrow__tCsej"},r=function(r){var l,m=r.month,i=r.year,s=r.view,c=void 0===s?"full":s,d=r.withShadow,u=r.prevArrowVisible,_=void 0===u||u,p=r.nextArrowVisible,h=void 0===p||p,w=r.onPrevArrowClick,v=r.onNextArrowClick,b=r.onMonthClick,x=r.onYearClick;return e.createElement("div",{className:n(a.header,(l={},l[a.monthOnly]="month-only"===c,l[a.withShadow]=d,l)),"aria-live":"polite"},e.createElement("div",{className:a.inner},_&&e.createElement(o,{view:"ghost",className:a.arrow,onClick:w,"aria-label":"Предыдущий месяц"}),"full"===c?e.createElement(e.Fragment,null,e.createElement(t,{view:"filled",className:n(a.button,a.month),onClick:b},e.createElement("span",{className:a.buttonContent},m,e.createElement("span",{className:a.upDownIcon}))),e.createElement(t,{view:"filled",className:n(a.button,a.year),onClick:x},e.createElement("span",{className:a.buttonContent},i,e.createElement("span",{className:a.upDownIcon})))):e.createElement("span",{className:n(a.button,a.month)},m),h&&e.createElement(o,{view:"ghost",className:a.arrow,onClick:v,"aria-label":"Следующий месяц"})))};export{r as Header};
1
+ import e from"react";import n from"classnames";import{Button as o}from"../../../button/component.js";import{SelectButton as t}from"../select-button/сomponent.js";import"../../../tslib.es6-7f4a5e3a.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var a={header:"index-module_header__-VKks",withShadow:"index-module_withShadow__m2PIV",inner:"index-module_inner__-Aep6",month:"index-module_month__aVSag",year:"index-module_year__ZXtKB",buttonContent:"index-module_buttonContent__xnYVf",monthOnly:"index-module_monthOnly__3hpyp",upDownIcon:"index-module_upDownIcon__-2CFa",arrow:"index-module_arrow__tCsej"},r=function(r){var l,m=r.month,i=r.year,s=r.view,c=void 0===s?"full":s,d=r.withShadow,u=r.prevArrowVisible,_=void 0===u||u,p=r.nextArrowVisible,h=void 0===p||p,w=r.onPrevArrowClick,v=r.onNextArrowClick,b=r.onMonthClick,x=r.onYearClick;return e.createElement("div",{className:n(a.header,(l={},l[a.monthOnly]="month-only"===c,l[a.withShadow]=d,l)),"aria-live":"polite"},e.createElement("div",{className:a.inner},_&&e.createElement(o,{view:"ghost",className:a.arrow,onClick:w,"aria-label":"Предыдущий месяц"}),"full"===c?e.createElement(e.Fragment,null,e.createElement(t,{view:"filled",className:n(a.button,a.month),onClick:b},e.createElement("span",{className:a.buttonContent},m,e.createElement("span",{className:a.upDownIcon}))),e.createElement(t,{view:"filled",className:n(a.button,a.year),onClick:x},e.createElement("span",{className:a.buttonContent},i,e.createElement("span",{className:a.upDownIcon})))):e.createElement("span",{className:n(a.button,a.month)},m),h&&e.createElement(o,{view:"ghost",className:a.arrow,onClick:v,"aria-label":"Следующий месяц"})))};export{r as Header};
@@ -1 +1 @@
1
- export{MonthsTable}from"./сomponent.js";import"../../../tslib.es6-fe0f1d0a.js";import"react";import"date-fns";import"../../utils.js";import"../select-button/сomponent.js";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";
1
+ export{MonthsTable}from"./сomponent.js";import"../../../tslib.es6-7f4a5e3a.js";import"react";import"date-fns";import"../../utils.js";import"../select-button/сomponent.js";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";
@@ -1 +1 @@
1
- import{a as e}from"../../../tslib.es6-fe0f1d0a.js";import t,{useCallback as o}from"react";import{isSameMonth as r,isThisMonth as n}from"date-fns";import{monthName as m}from"../../utils.js";import{SelectButton as s}from"../select-button/сomponent.js";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var a="index-module_monthsTable__Eq4Jn",i="index-module_button__XgrJs",d=function(d){var c=d.selectedMonth,l=d.months,u=void 0===l?[]:l,p=d.getMonthProps,f=d.t,j=o((function(e){return c&&r(c,e.date)?"selected":n(e.date)?"outlined":"default"}),[c]);return t.createElement("div",{className:a},u.map((function(o){return t.createElement(s,e({},p(o),{key:o.date.getTime(),className:i,view:j(o)}),m(o.date,f("calendar.monthes",{returnObjects:!0})))})))};export{d as MonthsTable};
1
+ import{a as e}from"../../../tslib.es6-7f4a5e3a.js";import t,{useCallback as o}from"react";import{isSameMonth as r,isThisMonth as n}from"date-fns";import{monthName as m}from"../../utils.js";import{SelectButton as s}from"../select-button/сomponent.js";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var a="index-module_monthsTable__Eq4Jn",i="index-module_button__XgrJs",c=function(c){var d=c.selectedMonth,l=c.months,u=void 0===l?[]:l,p=c.getMonthProps,f=c.t,j=o((function(e){return d&&r(d,e.date)?"selected":n(e.date)?"outlined":"default"}),[d]);return t.createElement("div",{className:a},u.map((function(o){return t.createElement(s,e({},p(o),{key:o.date.getTime(),className:i,view:j(o)}),m(o.date,f("calendar.monthes",{returnObjects:!0})))})))};export{c as MonthsTable};
@@ -1 +1 @@
1
- export{SelectButton}from"./сomponent.js";import"../../../tslib.es6-fe0f1d0a.js";import"react";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";
1
+ export{SelectButton}from"./сomponent.js";import"../../../tslib.es6-7f4a5e3a.js";import"react";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";
@@ -1 +1 @@
1
- import{_ as e,a as d}from"../../../tslib.es6-fe0f1d0a.js";import o,{forwardRef as i}from"react";import s from"classnames";import{Button as t}from"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var l={button:"index-module_button__baxa-",disabled:"index-module_disabled__KuR4M",filled:"index-module_filled__bjlbk",outlined:"index-module_outlined__uO-jd",selected:"index-module_selected__iwjDb"},a=i((function(i,a){var r,m=i.className,n=i.children,u=i.disabled,_=i.view,b=void 0===_?"default":_,c=e(i,["className","children","disabled","view"]);return o.createElement(t,d({},c,{ref:a,view:"ghost",size:"xs",disabled:u,className:s(l.button,l[b],m,(r={},r[l.disabled]=u,r))}),n)}));export{a as SelectButton};
1
+ import{_ as e,a as d}from"../../../tslib.es6-7f4a5e3a.js";import o,{forwardRef as i}from"react";import s from"classnames";import{Button as t}from"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var l={button:"index-module_button__baxa-",disabled:"index-module_disabled__KuR4M",filled:"index-module_filled__bjlbk",outlined:"index-module_outlined__uO-jd",selected:"index-module_selected__iwjDb"},a=i((function(i,a){var r,m=i.className,n=i.children,u=i.disabled,_=i.view,b=void 0===_?"default":_,c=e(i,["className","children","disabled","view"]);return o.createElement(t,d({},c,{ref:a,view:"ghost",size:"xs",disabled:u,className:s(l.button,l[b],m,(r={},r[l.disabled]=u,r))}),n)}));export{a as SelectButton};
@@ -1 +1 @@
1
- export{YearsTable}from"./сomponent.js";import"../../../tslib.es6-fe0f1d0a.js";import"react";import"date-fns";import"../select-button/сomponent.js";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";
1
+ export{YearsTable}from"./сomponent.js";import"../../../tslib.es6-7f4a5e3a.js";import"react";import"date-fns";import"../select-button/сomponent.js";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";
@@ -1 +1 @@
1
- import{a as e}from"../../../tslib.es6-fe0f1d0a.js";import t,{useRef as r,useCallback as o,useLayoutEffect as n}from"react";import{isSameYear as l,isThisYear as a}from"date-fns";import{SelectButton as s}from"../select-button/сomponent.js";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var c="index-module_yearsTable__7bRtn",i="index-module_inner__LF4VE",m="index-module_button__e9zeg",u=function(u){var p=u.selectedYear,d=u.years,f=void 0===d?[]:d,_=u.getYearProps,g=u.onScroll,v=r(null),b=o((function(e){return p&&l(p,e)?"selected":a(e)?"outlined":"default"}),[p]),x=o((function(e){g(e.currentTarget.scrollTop)}),[g]);return n((function(){var e=v.current,t="."+m+'[tabIndex="0"]',r=e&&e.querySelector(t);if(e&&r){var o=e.clientHeight/2-r.clientHeight/2;e.scrollTop=r.offsetTop-o,g(e.scrollTop)}}),[g,p]),t.createElement("div",{className:c,onScroll:x,ref:v},t.createElement("div",{className:i},f.map((function(r){return t.createElement(s,e({},_(r),{key:r.getFullYear(),view:b(r),className:m}),r.getFullYear())}))))};export{u as YearsTable};
1
+ import{a as e}from"../../../tslib.es6-7f4a5e3a.js";import t,{useRef as r,useCallback as o,useLayoutEffect as n}from"react";import{isSameYear as l,isThisYear as a}from"date-fns";import{SelectButton as s}from"../select-button/сomponent.js";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var c="index-module_yearsTable__7bRtn",i="index-module_inner__LF4VE",m="index-module_button__e9zeg",u=function(u){var p=u.selectedYear,d=u.years,f=void 0===d?[]:d,_=u.getYearProps,g=u.onScroll,v=r(null),b=o((function(e){return p&&l(p,e)?"selected":a(e)?"outlined":"default"}),[p]),x=o((function(e){g(e.currentTarget.scrollTop)}),[g]);return n((function(){var e=v.current,t="."+m+'[tabIndex="0"]',r=e&&e.querySelector(t);if(e&&r){var o=e.clientHeight/2-r.clientHeight/2;e.scrollTop=r.offsetTop-o,g(e.scrollTop)}}),[g,p]),t.createElement("div",{className:c,onScroll:x,ref:v},t.createElement("div",{className:i},f.map((function(r){return t.createElement(s,e({},_(r),{key:r.getFullYear(),view:b(r),className:m}),r.getFullYear())}))))};export{u as YearsTable};
@@ -1 +1 @@
1
- export{Calendar}from"./component.js";export{usePeriod}from"./use-period.js";export{useCalendar}from"./use-calendar.js";export{DAYS_IN_WEEK,MONTHS_IN_YEAR,SUNDAY_INDEX,dateInLimits,limitDate,monthName,russianWeekDay}from"./utils.js";import"../tslib.es6-fe0f1d0a.js";import"react";import"classnames";import"date-fns";import"./components/days-table/component.js";import"react-transition-group";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../hooks/usePrevious/index.js";import"./components/header/сomponent.js";import"./components/select-button/сomponent.js";import"./components/months-table/сomponent.js";import"./components/years-table/сomponent.js";
1
+ export{Calendar}from"./component.js";export{usePeriod}from"./use-period.js";export{useCalendar}from"./use-calendar.js";export{DAYS_IN_WEEK,MONTHS_IN_YEAR,SUNDAY_INDEX,dateInLimits,limitDate,monthName,russianWeekDay}from"./utils.js";import"../tslib.es6-7f4a5e3a.js";import"react";import"classnames";import"date-fns";import"./components/days-table/component.js";import"react-transition-group";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../hooks/usePrevious/index.js";import"./components/header/сomponent.js";import"./components/select-button/сomponent.js";import"./components/months-table/сomponent.js";import"./components/years-table/сomponent.js";
@@ -1 +1 @@
1
- import{_ as e,a as n}from"../tslib.es6-fe0f1d0a.js";import t,{forwardRef as o,useState as a,useRef as r,useCallback as i,useEffect as l}from"react";import p from"react-merge-refs";import m from"classnames";import{Calendar as s}from"../calendar/component.js";import{dateInLimits as c}from"../calendar/utils.js";import"date-fns";import{MaskedInput as d}from"../masked-input/component.js";import{Popover as u}from"../popover/component.js";import{parseDateString as f,isCompleteDateInput as v,formatDate as j,DATE_MASK as g,SUPPORTS_INPUT_TYPE_DATE as h,NATIVE_DATE_FORMAT as b}from"./utils.js";import"../calendar/components/days-table/component.js";import"react-transition-group";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../hooks/usePrevious/index.js";import"../calendar/components/header/сomponent.js";import"../calendar/components/select-button/сomponent.js";import"../calendar/components/months-table/сomponent.js";import"../calendar/components/years-table/сomponent.js";import"../calendar/use-calendar.js";import"../_commonjsHelpers-aa088120.js";import"../input/component.js";import"../form-control/component.js";import"react-popper";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";var _="index-module_component__pdVE2",C="index-module_block__wtVLz",x="index-module_calendarContainer__x7A2x",k="index-module_calendarIcon__muPk-",D="index-module_nativeInput__siME6",w=o((function(o,w){var E,N=o.block,y=void 0!==N&&N,I=o.className,M=o.inputClassName,P=o.defaultOpen,T=void 0!==P&&P,F=o.defaultMonth,V=o.defaultValue,O=void 0===V?"":V,A=o.calendarPosition,q=void 0===A?"popover":A,R=o.value,K=o.dataTestId,U=o.minDate,z=o.required,B=o.maxDate,H=o.calendarProps,L=void 0===H?{}:H,G=o.preventFlip,J=o.mobileMode,Q=void 0===J?"popover":J,S=o.wrapperRef,W=void 0===S?null:S,X=o.disabled,Y=o.onChange,Z=o.onInputChange,$=o.onCalendarChange,ee=o.readOnly,ne=e(o,["block","className","inputClassName","defaultOpen","defaultMonth","defaultValue","calendarPosition","value","dataTestId","minDate","required","maxDate","calendarProps","preventFlip","mobileMode","wrapperRef","disabled","onChange","onInputChange","onCalendarChange","readOnly"]),te=void 0===R,oe=h&&"native"===Q,ae="input"===Q,re="static"===q&&!ae,ie="popover"===q&&!oe&&!ae,le=a(!1),pe=le[0],me=le[1],se=a(O),ce=se[0],de=se[1],ue=te?ce:R,fe=ue?f(ue).getTime():void 0,ve=c(fe,U,B),je=X||ee,ge=r(null),he=r(null),be=r(null),_e=r(null),Ce=i((function(e){"Escape"===e.key&&me(!1)}),[]),xe=i((function(){pe||me(!0)}),[pe]),ke=i((function(e){me(!0),!pe&&"INPUT"!==e.target.tagName&&_e.current&&_e.current.focus()}),[pe]),De=i((function(e){_e.current&&!1===_e.current.contains(e.relatedTarget)&&me(!1)}),[]),we=i((function(e){["ArrowDown","ArrowUp"].includes(e.key)&&_e.current&&(e.preventDefault(),_e.current.focus())}),[]),Ee=i((function(e,n,t,o,a){void 0===o&&(o="input"),void 0===a&&(a=!0),"input"===o&&e&&Z&&Z(e,{value:n,date:t}),"calendar"===o&&$&&$(t.getTime()),a&&(te&&de(n),Y&&Y(e,{date:t,value:n}))}),[$,Y,Z,te]),Ne=i((function(e){var n=e.target.value,t=f(n);Ee(e,n,t,"input",v(n))}),[Ee]),ye=i((function(e){var n=f(e.target.value,b),t=""===e.target.value?"":j(n);Ee(e,t,n)}),[Ee]),Ie=i((function(e){Ee(null,j(e),new Date(e),"calendar"),me(!1)}),[Ee]),Me=i((function(e){e.preventDefault()}),[]);l((function(){me(T)}),[T]);var Pe=i((function(){return t.createElement("div",{onMouseDown:Me},t.createElement(s,n({},L,{t:L.t,ref:_e,defaultMonth:F,value:ve?fe:void 0,onChange:Ie,minDate:U,maxDate:B})))}),[L,fe,F,Ie,Me,ve,B,U]);return t.createElement("div",{ref:be,className:m(_,I,(E={},E[C]=y,E)),tabIndex:-1,onKeyDown:je?void 0:Ce,onClick:je?void 0:xe,onFocus:je?void 0:ke,onBlur:De,"data-test-id":K},t.createElement(d,n({},ne,{ref:p([w,ge]),wrapperRef:p([W,he]),className:M,value:ue,required:z,defaultValue:O,disabled:X,readOnly:ee,mask:g,rightAddons:t.createElement(t.Fragment,null,t.createElement("span",{className:k}),oe&&t.createElement("input",{type:"date",ref:p([w,ge]),defaultValue:O,onChange:ye,className:D})),onKeyDown:we,onChange:Ne,block:!0,inputMode:"numeric",pattern:"[0-9\\.]*"})),re&&Pe(),ie&&t.createElement(u,{open:pe,anchorElement:he.current,popperClassName:x,position:"bottom-start",offset:[0,8],withTransition:!1,preventFlip:G},Pe()))}));export{w as CalendarInput};
1
+ import{_ as e,a as n}from"../tslib.es6-7f4a5e3a.js";import t,{forwardRef as o,useState as a,useRef as r,useCallback as i,useEffect as l}from"react";import p from"react-merge-refs";import m from"classnames";import{Calendar as s}from"../calendar/component.js";import{dateInLimits as c}from"../calendar/utils.js";import"date-fns";import{MaskedInput as d}from"../masked-input/component.js";import{Popover as u}from"../popover/component.js";import{parseDateString as f,isCompleteDateInput as v,formatDate as j,DATE_MASK as g,SUPPORTS_INPUT_TYPE_DATE as h,NATIVE_DATE_FORMAT as b}from"./utils.js";import"../calendar/components/days-table/component.js";import"react-transition-group";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../hooks/usePrevious/index.js";import"../calendar/components/header/сomponent.js";import"../calendar/components/select-button/сomponent.js";import"../calendar/components/months-table/сomponent.js";import"../calendar/components/years-table/сomponent.js";import"../calendar/use-calendar.js";import"../_commonjsHelpers-0396845e.js";import"../input/component.js";import"../form-control/component.js";import"react-popper";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";var _="index-module_component__pdVE2",C="index-module_block__wtVLz",x="index-module_calendarContainer__x7A2x",k="index-module_calendarIcon__muPk-",D="index-module_nativeInput__siME6",w=o((function(o,w){var E,N=o.block,y=void 0!==N&&N,I=o.className,M=o.inputClassName,P=o.defaultOpen,T=void 0!==P&&P,F=o.defaultMonth,V=o.defaultValue,O=void 0===V?"":V,A=o.calendarPosition,q=void 0===A?"popover":A,R=o.value,K=o.dataTestId,U=o.minDate,z=o.required,B=o.maxDate,H=o.calendarProps,L=void 0===H?{}:H,G=o.preventFlip,J=o.mobileMode,Q=void 0===J?"popover":J,S=o.wrapperRef,W=void 0===S?null:S,X=o.disabled,Y=o.onChange,Z=o.onInputChange,$=o.onCalendarChange,ee=o.readOnly,ne=e(o,["block","className","inputClassName","defaultOpen","defaultMonth","defaultValue","calendarPosition","value","dataTestId","minDate","required","maxDate","calendarProps","preventFlip","mobileMode","wrapperRef","disabled","onChange","onInputChange","onCalendarChange","readOnly"]),te=void 0===R,oe=h&&"native"===Q,ae="input"===Q,re="static"===q&&!ae,ie="popover"===q&&!oe&&!ae,le=a(!1),pe=le[0],me=le[1],se=a(O),ce=se[0],de=se[1],ue=te?ce:R,fe=ue?f(ue).getTime():void 0,ve=c(fe,U,B),je=X||ee,ge=r(null),he=r(null),be=r(null),_e=r(null),Ce=i((function(e){"Escape"===e.key&&me(!1)}),[]),xe=i((function(){pe||me(!0)}),[pe]),ke=i((function(e){me(!0),!pe&&"INPUT"!==e.target.tagName&&_e.current&&_e.current.focus()}),[pe]),De=i((function(e){_e.current&&!1===_e.current.contains(e.relatedTarget)&&me(!1)}),[]),we=i((function(e){["ArrowDown","ArrowUp"].includes(e.key)&&_e.current&&(e.preventDefault(),_e.current.focus())}),[]),Ee=i((function(e,n,t,o,a){void 0===o&&(o="input"),void 0===a&&(a=!0),"input"===o&&e&&Z&&Z(e,{value:n,date:t}),"calendar"===o&&$&&$(t.getTime()),a&&(te&&de(n),Y&&Y(e,{date:t,value:n}))}),[$,Y,Z,te]),Ne=i((function(e){var n=e.target.value,t=f(n);Ee(e,n,t,"input",v(n))}),[Ee]),ye=i((function(e){var n=f(e.target.value,b),t=""===e.target.value?"":j(n);Ee(e,t,n)}),[Ee]),Ie=i((function(e){Ee(null,j(e),new Date(e),"calendar"),me(!1)}),[Ee]),Me=i((function(e){e.preventDefault()}),[]);l((function(){me(T)}),[T]);var Pe=i((function(){return t.createElement("div",{onMouseDown:Me},t.createElement(s,n({},L,{t:L.t,ref:_e,defaultMonth:F,value:ve?fe:void 0,onChange:Ie,minDate:U,maxDate:B})))}),[L,fe,F,Ie,Me,ve,B,U]);return t.createElement("div",{ref:be,className:m(_,I,(E={},E[C]=y,E)),tabIndex:-1,onKeyDown:je?void 0:Ce,onClick:je?void 0:xe,onFocus:je?void 0:ke,onBlur:De,"data-test-id":K},t.createElement(d,n({},ne,{ref:p([w,ge]),wrapperRef:p([W,he]),className:M,value:ue,required:z,defaultValue:O,disabled:X,readOnly:ee,mask:g,rightAddons:t.createElement(t.Fragment,null,t.createElement("span",{className:k}),oe&&t.createElement("input",{type:"date",ref:p([w,ge]),defaultValue:O,onChange:ye,className:D})),onKeyDown:we,onChange:Ne,block:!0,inputMode:"numeric",pattern:"[0-9\\.]*"})),re&&Pe(),ie&&t.createElement(u,{open:pe,anchorElement:he.current,popperClassName:x,position:"bottom-start",offset:[0,8],withTransition:!1,preventFlip:G},Pe()))}));export{w as CalendarInput};
@@ -1 +1 @@
1
- export{CalendarInput}from"./component.js";export{DATE_FORMAT,DATE_MASK,IS_BROWSER,NATIVE_DATE_FORMAT,SUPPORTS_INPUT_TYPE_DATE,formatDate,isCompleteDateInput,isInputDateSupported,parseDateString}from"./utils.js";import"../tslib.es6-fe0f1d0a.js";import"react";import"react-merge-refs";import"classnames";import"../calendar/component.js";import"date-fns";import"../calendar/components/days-table/component.js";import"react-transition-group";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../hooks/usePrevious/index.js";import"../calendar/utils.js";import"../calendar/components/header/сomponent.js";import"../calendar/components/select-button/сomponent.js";import"../calendar/components/months-table/сomponent.js";import"../calendar/components/years-table/сomponent.js";import"../calendar/use-calendar.js";import"../masked-input/component.js";import"../_commonjsHelpers-aa088120.js";import"../input/component.js";import"../form-control/component.js";import"../popover/component.js";import"react-popper";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";
1
+ export{CalendarInput}from"./component.js";export{DATE_FORMAT,DATE_MASK,IS_BROWSER,NATIVE_DATE_FORMAT,SUPPORTS_INPUT_TYPE_DATE,formatDate,isCompleteDateInput,isInputDateSupported,parseDateString}from"./utils.js";import"../tslib.es6-7f4a5e3a.js";import"react";import"react-merge-refs";import"classnames";import"../calendar/component.js";import"date-fns";import"../calendar/components/days-table/component.js";import"react-transition-group";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../hooks/usePrevious/index.js";import"../calendar/utils.js";import"../calendar/components/header/сomponent.js";import"../calendar/components/select-button/сomponent.js";import"../calendar/components/months-table/сomponent.js";import"../calendar/components/years-table/сomponent.js";import"../calendar/use-calendar.js";import"../masked-input/component.js";import"../_commonjsHelpers-0396845e.js";import"../input/component.js";import"../form-control/component.js";import"../popover/component.js";import"react-popper";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";
@@ -1 +1 @@
1
- import e from"react";import t from"classnames";import{Typography as o}from"../typography/component.js";import{CardImages as i}from"./images/index.js";import"../typography/title/index.js";import"../tslib.es6-fe0f1d0a.js";import"../typography/title/component.js";import"../colors.module-74d9c05c.js";import"../common.module-1daece5c.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"swiper/react";import"alpha-cli-icons";import"../image/typings.js";import"../image/constants.js";import"../image/image-base.js";import"../use-image-render-component-583239e8.js";import"../spinner/component.js";import"../image/utils.js";import"swiper/swiper.min.css";var m={component:"index-module_component__ovb41",full:"index-module_full__mqhKr",titleWrap:"index-module_titleWrap__UsXkt",content:"index-module_content__taI9l"},r=function(r){var n=r.view,s=void 0===n?"default":n,a=r.bottomAddons,p=r.images,l=void 0===p?[]:p,c=r.orientation,d=void 0===c?"horizontal":c,g=r.title,u=r.subtitle,v=r.titleAddons;return e.createElement("div",{className:t([m.component,m[s]])},!!l.length&&e.createElement(i,{orientation:d,images:l,view:s}),e.createElement("div",{className:m.content},e.createElement("div",{className:m.titleWrap},e.createElement(o.Text,{view:"title",color:"primary",weight:"medium",tag:"div"},g),v),e.createElement(o.Text,{weight:"medium",view:"caps",tag:"div",className:m.subtitle,color:"secondary"},u),a))};export{r as Card};
1
+ import e from"react";import t from"classnames";import{Typography as o}from"../typography/component.js";import{CardImages as i}from"./images/index.js";import"../typography/title/index.js";import"../tslib.es6-7f4a5e3a.js";import"../typography/title/component.js";import"../colors.module-77ce8ff5.js";import"../common.module-433ea7c5.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"swiper/react";import"alpha-cli-icons";import"../image/typings.js";import"../image/constants.js";import"../image/image-base.js";import"../use-image-render-component-54e6733a.js";import"../spinner/component.js";import"../image/utils.js";import"swiper/swiper.min.css";var m={component:"index-module_component__ovb41",full:"index-module_full__mqhKr",titleWrap:"index-module_titleWrap__UsXkt",content:"index-module_content__taI9l"},r=function(r){var n=r.view,a=void 0===n?"default":n,s=r.bottomAddons,p=r.images,l=void 0===p?[]:p,c=r.orientation,d=void 0===c?"horizontal":c,g=r.title,u=r.subtitle,v=r.titleAddons;return e.createElement("div",{className:t([m.component,m[a]])},!!l.length&&e.createElement(i,{orientation:d,images:l,view:a}),e.createElement("div",{className:m.content},e.createElement("div",{className:m.titleWrap},e.createElement(o.Text,{view:"title",color:"primary",weight:"medium",tag:"div"},g),v),e.createElement(o.Text,{weight:"medium",view:"caps",tag:"div",className:m.subtitle,color:"secondary"},u),s))};export{r as Card};
@@ -1 +1 @@
1
- import e from"react";import t from"classnames";import{Swiper as o,SwiperSlide as i}from"swiper/react";import"alpha-cli-icons";import{ImageSizes as r}from"../../image/typings.js";import"../../image/constants.js";import{ImageBase as n}from"../../image/image-base.js";import"swiper/swiper.min.css";import"../../use-image-render-component-583239e8.js";import"../../spinner/component.js";import"../../typography/component.js";import"../../typography/title/index.js";import"../../tslib.es6-fe0f1d0a.js";import"../../typography/title/component.js";import"../../colors.module-74d9c05c.js";import"../../common.module-1daece5c.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../../image/utils.js";var m={container:"index-module_container__Mgsi8",content:"index-module_content__kPkqx",full:"index-module_full__0jSVz",vertical:"index-module_vertical__dSwj7",horizontal:"index-module_horizontal__vc5Qw"},s=function(s){var a=s.images,p=void 0===a?[]:a,c=s.orientation,l=void 0===c?"horizontal":c,d=s.view,u=void 0===d?"default":d;return e.createElement("div",{className:t([m[l],m.container])},e.createElement("div",{className:t([m.content,m[u]])},p.length>1?e.createElement(o,{spaceBetween:0,slidesPerView:1},p.map((function(t){return e.createElement(i,{key:t},e.createElement(n,{src:t,resolution:r.m}))}))):e.createElement(n,{src:p[0],resolution:r.m})))};export{s as CardImages};
1
+ import e from"react";import t from"classnames";import{Swiper as o,SwiperSlide as i}from"swiper/react";import"alpha-cli-icons";import{ImageSizes as r}from"../../image/typings.js";import"../../image/constants.js";import{ImageBase as n}from"../../image/image-base.js";import"swiper/swiper.min.css";import"../../use-image-render-component-54e6733a.js";import"../../spinner/component.js";import"../../typography/component.js";import"../../typography/title/index.js";import"../../tslib.es6-7f4a5e3a.js";import"../../typography/title/component.js";import"../../colors.module-77ce8ff5.js";import"../../common.module-433ea7c5.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../../image/utils.js";var m={container:"index-module_container__Mgsi8",content:"index-module_content__kPkqx",full:"index-module_full__0jSVz",vertical:"index-module_vertical__dSwj7",horizontal:"index-module_horizontal__vc5Qw"},a=function(a){var s=a.images,p=void 0===s?[]:s,c=a.orientation,l=void 0===c?"horizontal":c,d=a.view,u=void 0===d?"default":d;return e.createElement("div",{className:t([m[l],m.container])},e.createElement("div",{className:t([m.content,m[u]])},p.length>1?e.createElement(o,{spaceBetween:0,slidesPerView:1},p.map((function(t){return e.createElement(i,{key:t},e.createElement(n,{src:t,resolution:r.m}))}))):e.createElement(n,{src:p[0],resolution:r.m})))};export{a as CardImages};
@@ -1 +1 @@
1
- export{Card}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-fe0f1d0a.js";import"../typography/title/component.js";import"../colors.module-74d9c05c.js";import"../common.module-1daece5c.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"./images/index.js";import"swiper/react";import"alpha-cli-icons";import"../image/typings.js";import"../image/constants.js";import"../image/image-base.js";import"../use-image-render-component-583239e8.js";import"../spinner/component.js";import"../image/utils.js";import"swiper/swiper.min.css";
1
+ export{Card}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-7f4a5e3a.js";import"../typography/title/component.js";import"../colors.module-77ce8ff5.js";import"../common.module-433ea7c5.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"./images/index.js";import"swiper/react";import"alpha-cli-icons";import"../image/typings.js";import"../image/constants.js";import"../image/image-base.js";import"../use-image-render-component-54e6733a.js";import"../spinner/component.js";import"../image/utils.js";import"swiper/swiper.min.css";
@@ -1 +1 @@
1
- import"react";import"classnames";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../../typography/component.js";export{B as Base}from"../../component-8c0a0f06.js";import"../../typography/title/index.js";import"../../tslib.es6-fe0f1d0a.js";import"../../typography/title/component.js";import"../../colors.module-74d9c05c.js";import"../../common.module-1daece5c.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../pure/component.js";
1
+ import"react";import"classnames";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../../typography/component.js";export{B as Base}from"../../component-853d045c.js";import"../../typography/title/index.js";import"../../tslib.es6-7f4a5e3a.js";import"../../typography/title/component.js";import"../../colors.module-77ce8ff5.js";import"../../common.module-433ea7c5.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../pure/component.js";
@@ -1 +1 @@
1
- export * from "../../component-8c0a0f06";
1
+ export * from "../../component-853d045c";
@@ -1 +1 @@
1
- export{B as Base}from"../../component-8c0a0f06.js";import"react";import"classnames";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../../typography/component.js";import"../../typography/title/index.js";import"../../tslib.es6-fe0f1d0a.js";import"../../typography/title/component.js";import"../../colors.module-74d9c05c.js";import"../../common.module-1daece5c.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../pure/component.js";
1
+ export{B as Base}from"../../component-853d045c.js";import"react";import"classnames";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../../typography/component.js";import"../../typography/title/index.js";import"../../tslib.es6-7f4a5e3a.js";import"../../typography/title/component.js";import"../../colors.module-77ce8ff5.js";import"../../common.module-433ea7c5.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../pure/component.js";
@@ -1 +1 @@
1
- export{C as Cell}from"../component-8c0a0f06.js";import"./pure/component.js";import"react";import"classnames";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-fe0f1d0a.js";import"../typography/title/component.js";import"../colors.module-74d9c05c.js";import"../common.module-1daece5c.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
1
+ export{C as Cell}from"../component-853d045c.js";import"./pure/component.js";import"react";import"classnames";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-7f4a5e3a.js";import"../typography/title/component.js";import"../colors.module-77ce8ff5.js";import"../common.module-433ea7c5.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
@@ -1 +1 @@
1
- export{C as Cell}from"../component-8c0a0f06.js";import"react";import"classnames";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-fe0f1d0a.js";import"../typography/title/component.js";import"../colors.module-74d9c05c.js";import"../common.module-1daece5c.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"./pure/component.js";
1
+ export{C as Cell}from"../component-853d045c.js";import"react";import"classnames";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-7f4a5e3a.js";import"../typography/title/component.js";import"../colors.module-77ce8ff5.js";import"../common.module-433ea7c5.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"./pure/component.js";
@@ -1 +1 @@
1
- import{_ as e,a as r}from"../../tslib.es6-fe0f1d0a.js";import d,{forwardRef as o}from"react";import l from"classnames";import{getDataTestId as a}from"../../__internal/utils/getDataTestId.js";var i={component:"index-module_component__iR2UT",s:"index-module_s__GdoGW",m:"index-module_m__JynKE",l:"index-module_l__cl-vr",horizontal:"index-module_horizontal__4AlHR",normalOrder:"index-module_normalOrder__DKaDw",reverseOrder:"index-module_reverseOrder__1O-1g",vertical:"index-module_vertical__qSAhd",addon:"index-module_addon__BlWHe",child:"index-module_child__LJU5r"},n=o((function(o,n){var t,m=o.slot,s=o.size,_=void 0===s?"m":s,c=o.order,v=void 0===c?"normal":c,u=o.direction,x=void 0===u?"horizontal":u,h=o.children,p=o.className,f=o.dataTestId,O=e(o,["slot","size","order","direction","children","className","dataTestId"]),z=((t={})[i.normalOrder]="normal"===v&&m,t[i.reverseOrder]="reverse"===v&&m,t[i[x]]=!0,t);return d.createElement("div",r({ref:n,className:l(i.component,i[_],r({},z),p),"data-test-id":a("cell-pure",f,!0)},O),m&&d.createElement("div",{className:l(i.addon,r({},z))},m),d.createElement("div",{className:l(i.child,r({},z))},h))}));export{n as Pure};
1
+ import{_ as e,a as r}from"../../tslib.es6-7f4a5e3a.js";import d,{forwardRef as o}from"react";import a from"classnames";import{getDataTestId as l}from"../../__internal/utils/getDataTestId.js";var i={component:"index-module_component__iR2UT",s:"index-module_s__GdoGW",m:"index-module_m__JynKE",l:"index-module_l__cl-vr",horizontal:"index-module_horizontal__4AlHR",normalOrder:"index-module_normalOrder__DKaDw",reverseOrder:"index-module_reverseOrder__1O-1g",vertical:"index-module_vertical__qSAhd",addon:"index-module_addon__BlWHe",child:"index-module_child__LJU5r"},n=o((function(o,n){var t,m=o.slot,s=o.size,_=void 0===s?"m":s,c=o.order,v=void 0===c?"normal":c,u=o.direction,x=void 0===u?"horizontal":u,h=o.children,p=o.className,f=o.dataTestId,O=e(o,["slot","size","order","direction","children","className","dataTestId"]),z=((t={})[i.normalOrder]="normal"===v&&m,t[i.reverseOrder]="reverse"===v&&m,t[i[x]]=!0,t);return d.createElement("div",r({ref:n,className:a(i.component,i[_],r({},z),p),"data-test-id":l("cell-pure",f,!0)},O),m&&d.createElement("div",{className:a(i.addon,r({},z))},m),d.createElement("div",{className:a(i.child,r({},z))},h))}));export{n as Pure};
@@ -1 +1 @@
1
- export{Pure}from"./component.js";import"../../tslib.es6-fe0f1d0a.js";import"react";import"classnames";import"../../__internal/utils/getDataTestId.js";
1
+ export{Pure}from"./component.js";import"../../tslib.es6-7f4a5e3a.js";import"react";import"classnames";import"../../__internal/utils/getDataTestId.js";
@@ -1 +1 @@
1
- import{_ as e,a as n}from"../tslib.es6-fe0f1d0a.js";import a,{forwardRef as d,useRef as t}from"react";import o from"react-merge-refs";import{ChecMarkS as l,MinusM as m}from"alpha-cli-icons";import i from"classnames";import{useFocus as c}from"../hooks/useFocus/index.js";var s={component:"index-module_component__DBof3",start:"index-module_start__-eplp",center:"index-module_center__7CPIE",addons:"index-module_addons__verD6",block:"index-module_block__n--Tz",box:"index-module_box__ymkhL",m:"index-module_m__3-tIu",content:"index-module_content__tOYo0",s:"index-module_s__uZFU0",disabled:"index-module_disabled__-UN4G",checked:"index-module_checked__ZISV3",indeterminate:"index-module_indeterminate__DwM3O",focused:"index-module_focused__d0Y-b",label:"index-module_label__gLQhs",hint:"index-module_hint__OQ8A5",indeterminateIcon:"index-module_indeterminateIcon__d-ME1"},r=d((function(d,r){var _,u=d.checked,b=d.label,x=d.hint,h=d.size,p=void 0===h?"m":h,f=d.align,k=void 0===f?"center":f,E=d.addons,N=d.block,g=d.onChange,I=d.className,v=d.name,C=d.disabled,y=d.dataTestId,z=d.indeterminate,D=void 0!==z&&z,O=e(d,["checked","label","hint","size","align","addons","block","onChange","className","name","disabled","dataTestId","indeterminate"]),T=t(null),j=c(T,"keyboard")[0];return a.createElement("label",{className:i(s.component,s[p],s[k],I,(_={},_[s.disabled]=C,_[s.checked]=u,_[s.indeterminate]=D,_[s.focused]=j,_[s.block]=N,_)),ref:o([T,r])},a.createElement("span",{className:s.box},a.createElement("input",n({type:"checkbox",onChange:function(e){g&&g(e,{checked:e.target.checked,name:v})},disabled:C,checked:u,"data-test-id":y},O)),u&&a.createElement(l,null),D&&!u&&a.createElement("div",{className:s.indeterminateIcon},a.createElement(m,null))),(b||x)&&a.createElement("span",{className:s.content},b&&a.createElement("span",{className:s.label},b),x&&a.createElement("span",{className:s.hint},x)),E&&a.createElement("span",{className:s.addons},E))}));r.defaultProps={indeterminate:!1};export{r as Checkbox};
1
+ import{_ as e,a as n}from"../tslib.es6-7f4a5e3a.js";import a,{forwardRef as d,useRef as t}from"react";import o from"react-merge-refs";import{ChecMarkS as l,MinusM as m}from"alpha-cli-icons";import i from"classnames";import{useFocus as c}from"../hooks/useFocus/index.js";var s={component:"index-module_component__DBof3",start:"index-module_start__-eplp",center:"index-module_center__7CPIE",addons:"index-module_addons__verD6",block:"index-module_block__n--Tz",box:"index-module_box__ymkhL",m:"index-module_m__3-tIu",content:"index-module_content__tOYo0",s:"index-module_s__uZFU0",disabled:"index-module_disabled__-UN4G",checked:"index-module_checked__ZISV3",indeterminate:"index-module_indeterminate__DwM3O",focused:"index-module_focused__d0Y-b",label:"index-module_label__gLQhs",hint:"index-module_hint__OQ8A5",indeterminateIcon:"index-module_indeterminateIcon__d-ME1"},r=d((function(d,r){var _,u=d.checked,b=d.label,x=d.hint,h=d.size,p=void 0===h?"m":h,k=d.align,f=void 0===k?"center":k,E=d.addons,N=d.block,g=d.onChange,I=d.className,v=d.name,C=d.disabled,y=d.dataTestId,z=d.indeterminate,D=void 0!==z&&z,O=e(d,["checked","label","hint","size","align","addons","block","onChange","className","name","disabled","dataTestId","indeterminate"]),T=t(null),j=c(T,"keyboard")[0];return a.createElement("label",{className:i(s.component,s[p],s[f],I,(_={},_[s.disabled]=C,_[s.checked]=u,_[s.indeterminate]=D,_[s.focused]=j,_[s.block]=N,_)),ref:o([T,r])},a.createElement("span",{className:s.box},a.createElement("input",n({type:"checkbox",onChange:function(e){g&&g(e,{checked:e.target.checked,name:v})},disabled:C,checked:u,"data-test-id":y},O)),u&&a.createElement(l,null),D&&!u&&a.createElement("div",{className:s.indeterminateIcon},a.createElement(m,null))),(b||x)&&a.createElement("span",{className:s.content},b&&a.createElement("span",{className:s.label},b),x&&a.createElement("span",{className:s.hint},x)),E&&a.createElement("span",{className:s.addons},E))}));r.defaultProps={indeterminate:!1};export{r as Checkbox};
@@ -1 +1 @@
1
- export{Checkbox}from"./component.js";import"../tslib.es6-fe0f1d0a.js";import"react";import"react-merge-refs";import"alpha-cli-icons";import"classnames";import"../hooks/useFocus/index.js";
1
+ export{Checkbox}from"./component.js";import"../tslib.es6-7f4a5e3a.js";import"react";import"react-merge-refs";import"alpha-cli-icons";import"classnames";import"../hooks/useFocus/index.js";
@@ -1 +1 @@
1
- import{b as e}from"../tslib.es6-fe0f1d0a.js";import t from"react";import{Checkbox as o}from"../checkbox/component.js";import{FlexColumns as n}from"../flex-columns/component.js";import{Typography as r}from"../typography/component.js";import"react-merge-refs";import"alpha-cli-icons";import"classnames";import"../hooks/useFocus/index.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-74d9c05c.js";import"../common.module-1daece5c.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var i="index-module_text__XAuHd",c="index-module_subtitle__0PkbT",m=function(m){var l=m.title,a=m.subtitle,s=m.selected,d=void 0===s?[]:s,p=m.data,u=void 0===p?[]:p,v=m.onChange,g=m.columns,y=void 0===g?1:g,f=m.gr,h=void 0===f?20:f,x=m.gc,j=void 0===x?20:x,b=m.dataTestId,k=d||[],_=function(e){return b?"checkbox_"+b+"_"+e:"checkbox_"+e};return t.createElement("div",null,(l||a)&&t.createElement("div",{className:i},l&&t.createElement(r.Text,{tag:"div",view:"title",color:"primary",weight:"bold"},l),a&&t.createElement(r.Text,{className:c,tag:"div",view:"caps",color:"secondary",weight:"medium"},a)),t.createElement(n,{columns:y,gr:h,gc:j},t.createElement(t.Fragment,null,null==u?void 0:u.map((function(n,r){return t.createElement(o,{key:n.key+n.content,dataTestId:_(r),onChange:function(){return t=n.key,void v((null==k?void 0:k.includes(t))?null==k?void 0:k.filter((function(e){return e!==t})):e(e([],k),[t]));var t},checked:null==k?void 0:k.includes(n.key),label:n.content})})))))};export{m as CheckboxGroup};
1
+ import{b as e}from"../tslib.es6-7f4a5e3a.js";import t from"react";import{Checkbox as o}from"../checkbox/component.js";import{FlexColumns as n}from"../flex-columns/component.js";import{Typography as r}from"../typography/component.js";import"react-merge-refs";import"alpha-cli-icons";import"classnames";import"../hooks/useFocus/index.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-77ce8ff5.js";import"../common.module-433ea7c5.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var i="index-module_text__XAuHd",c="index-module_subtitle__0PkbT",m=function(m){var l=m.title,a=m.subtitle,s=m.selected,p=void 0===s?[]:s,d=m.data,u=void 0===d?[]:d,v=m.onChange,g=m.columns,f=void 0===g?1:g,y=m.gr,h=void 0===y?20:y,x=m.gc,j=void 0===x?20:x,b=m.dataTestId,k=p||[],_=function(e){return b?"checkbox_"+b+"_"+e:"checkbox_"+e};return t.createElement("div",null,(l||a)&&t.createElement("div",{className:i},l&&t.createElement(r.Text,{tag:"div",view:"title",color:"primary",weight:"bold"},l),a&&t.createElement(r.Text,{className:c,tag:"div",view:"caps",color:"secondary",weight:"medium"},a)),t.createElement(n,{columns:f,gr:h,gc:j},t.createElement(t.Fragment,null,null==u?void 0:u.map((function(n,r){return t.createElement(o,{key:n.key+n.content,dataTestId:_(r),onChange:function(){return t=n.key,void v((null==k?void 0:k.includes(t))?null==k?void 0:k.filter((function(e){return e!==t})):e(e([],k),[t]));var t},checked:null==k?void 0:k.includes(n.key),label:n.content})})))))};export{m as CheckboxGroup};
@@ -1 +1 @@
1
- export{CheckboxGroup}from"./component.js";import"../tslib.es6-fe0f1d0a.js";import"react";import"../checkbox/component.js";import"react-merge-refs";import"alpha-cli-icons";import"classnames";import"../hooks/useFocus/index.js";import"../flex-columns/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-74d9c05c.js";import"../common.module-1daece5c.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
1
+ export{CheckboxGroup}from"./component.js";import"../tslib.es6-7f4a5e3a.js";import"react";import"../checkbox/component.js";import"react-merge-refs";import"alpha-cli-icons";import"classnames";import"../hooks/useFocus/index.js";import"../flex-columns/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-77ce8ff5.js";import"../common.module-433ea7c5.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
@@ -1 +1 @@
1
- import{b as e}from"../tslib.es6-fe0f1d0a.js";import t,{useState as n}from"react";import{ChevronDownS as o}from"alpha-cli-icons";import l from"classnames";import{Checkbox as r}from"../checkbox/component.js";import{Collapse as c}from"../collapse/component.js";import{Divider as i}from"../divider/component.js";import{FlexColumns as a}from"../flex-columns/component.js";import{IconButton as m}from"../icon-button/component.js";import{Padding as p}from"../padding/component.js";import{Typography as s}from"../typography/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../_commonjsHelpers-aa088120.js";import"resize-observer";import"../link/component.js";import"../button/component.js";import"../loader/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-74d9c05c.js";import"../common.module-1daece5c.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var d={list_head:"index-module_list_head__hWdR5",collapse_btn:"index-module_collapse_btn__fZF4g",collapse_btn_collapsed:"index-module_collapse_btn_collapsed__A5t0p"},u=function(u){var f=u.parents,h=u.childs,_=u.selected,j=u.checkableParent,v=u.collapsable,E=u.onChange,b=[],g=Array.isArray(_)?_:[];null==f||f.forEach((function(e){var t={parent:{},childs:[],collapsed:!1};null==h||h.forEach((function(n){n.locationId===e.id&&(t.parent=e,t.childs.push(n))})),t.parent.id&&b.push(t)}));var y=n(b),x=y[0],k=y[1],C=function(t){t.forEach((function(n){(null==g?void 0:g.includes(n))?E(g.filter((function(e){return!t.includes(e)}))):E(e(e([],g),t))}))},F=function(e){var n,o,l=e.element;return j?t.createElement(r,{block:!0,checked:(n=l.childs.map((function(e){return e.id})),o=!1,n.forEach((function(e){(null==g?void 0:g.includes(e))&&(o=!0)})),o),onChange:function(){return C(l.childs.map((function(e){return e.id})))},label:""+l.parent.title}):t.createElement(s.Text,{view:"title",weight:"medium",color:"primary"},l.parent.title)};return t.createElement("div",null,x.map((function(e,n){var s;return t.createElement(t.Fragment,{key:e.parent.id},t.createElement(t.Fragment,null,t.createElement("div",{className:d.list_head},t.createElement(F,{element:e}),v&&t.createElement(m,{onClick:function(){return function(e){var t=x.map((function(t,n){return n===e&&(t.collapsed?t.collapsed=!1:t.collapsed=!0),t})),n=x.concat(t);k(n.filter((function(e,t){return n.indexOf(e)===t})))}(n)},size:"s",className:l(d.collapse_btn,(s={},s[d.collapse_btn_collapsed]=e.collapsed,s)),icon:o})),!e.collapsed&&t.createElement(p,{padding:"16px 0 0 0"})),t.createElement(c,{expanded:!e.collapsed},t.createElement("div",{className:d.content},t.createElement(a,{columns:1},e.childs.map((function(e){return t.createElement(r,{onChange:function(){return C([e.id])},checked:null==g?void 0:g.includes(e.id),key:e.id,label:e.title})}))))),n!==(null==x?void 0:x.length)-1&&t.createElement(i,{size:"m"}))})))};export{u as CheckboxGroups};
1
+ import{b as e}from"../tslib.es6-7f4a5e3a.js";import t,{useState as n}from"react";import{ChevronDownS as o}from"alpha-cli-icons";import l from"classnames";import{Checkbox as r}from"../checkbox/component.js";import{Collapse as c}from"../collapse/component.js";import{Divider as i}from"../divider/component.js";import{FlexColumns as a}from"../flex-columns/component.js";import{IconButton as m}from"../icon-button/component.js";import{Padding as p}from"../padding/component.js";import{Typography as s}from"../typography/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../_commonjsHelpers-0396845e.js";import"resize-observer";import"../link/component.js";import"../button/component.js";import"../loader/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-77ce8ff5.js";import"../common.module-433ea7c5.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var d={list_head:"index-module_list_head__hWdR5",collapse_btn:"index-module_collapse_btn__fZF4g",collapse_btn_collapsed:"index-module_collapse_btn_collapsed__A5t0p"},u=function(u){var f=u.parents,h=u.childs,_=u.selected,j=u.checkableParent,v=u.collapsable,E=u.onChange,b=[],g=Array.isArray(_)?_:[];null==f||f.forEach((function(e){var t={parent:{},childs:[],collapsed:!1};null==h||h.forEach((function(n){n.locationId===e.id&&(t.parent=e,t.childs.push(n))})),t.parent.id&&b.push(t)}));var y=n(b),x=y[0],k=y[1],C=function(t){t.forEach((function(n){(null==g?void 0:g.includes(n))?E(g.filter((function(e){return!t.includes(e)}))):E(e(e([],g),t))}))},F=function(e){var n,o,l=e.element;return j?t.createElement(r,{block:!0,checked:(n=l.childs.map((function(e){return e.id})),o=!1,n.forEach((function(e){(null==g?void 0:g.includes(e))&&(o=!0)})),o),onChange:function(){return C(l.childs.map((function(e){return e.id})))},label:""+l.parent.title}):t.createElement(s.Text,{view:"title",weight:"medium",color:"primary"},l.parent.title)};return t.createElement("div",null,x.map((function(e,n){var s;return t.createElement(t.Fragment,{key:e.parent.id},t.createElement(t.Fragment,null,t.createElement("div",{className:d.list_head},t.createElement(F,{element:e}),v&&t.createElement(m,{onClick:function(){return function(e){var t=x.map((function(t,n){return n===e&&(t.collapsed?t.collapsed=!1:t.collapsed=!0),t})),n=x.concat(t);k(n.filter((function(e,t){return n.indexOf(e)===t})))}(n)},size:"s",className:l(d.collapse_btn,(s={},s[d.collapse_btn_collapsed]=e.collapsed,s)),icon:o})),!e.collapsed&&t.createElement(p,{padding:"16px 0 0 0"})),t.createElement(c,{expanded:!e.collapsed},t.createElement("div",{className:d.content},t.createElement(a,{columns:1},e.childs.map((function(e){return t.createElement(r,{onChange:function(){return C([e.id])},checked:null==g?void 0:g.includes(e.id),key:e.id,label:e.title})}))))),n!==(null==x?void 0:x.length)-1&&t.createElement(i,{size:"m"}))})))};export{u as CheckboxGroups};
@@ -1 +1 @@
1
- export{CheckboxGroups}from"./component.js";import"../tslib.es6-fe0f1d0a.js";import"react";import"alpha-cli-icons";import"classnames";import"../checkbox/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../collapse/component.js";import"../_commonjsHelpers-aa088120.js";import"resize-observer";import"../link/component.js";import"../divider/component.js";import"../flex-columns/component.js";import"../icon-button/component.js";import"../button/component.js";import"../loader/component.js";import"../padding/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-74d9c05c.js";import"../common.module-1daece5c.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
1
+ export{CheckboxGroups}from"./component.js";import"../tslib.es6-7f4a5e3a.js";import"react";import"alpha-cli-icons";import"classnames";import"../checkbox/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../collapse/component.js";import"../_commonjsHelpers-0396845e.js";import"resize-observer";import"../link/component.js";import"../divider/component.js";import"../flex-columns/component.js";import"../icon-button/component.js";import"../button/component.js";import"../loader/component.js";import"../padding/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-77ce8ff5.js";import"../common.module-433ea7c5.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
@@ -1 +1 @@
1
- import o from"react";import{EditS as t,PlusS as e}from"alpha-cli-icons";import{Button as r}from"../button/component.js";import{IconButton as n}from"../icon-button/component.js";import{Typography as i}from"../typography/component.js";import"../tslib.es6-fe0f1d0a.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-74d9c05c.js";import"../common.module-1daece5c.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var m=function(e){var r=e.location,m=e.onClick;return o.createElement(o.Fragment,null,o.createElement(i.Text,{view:"title",weight:"bold",color:"primary"},r.address),o.createElement(n,{icon:t,onClick:m,size:"s",view:"ghost"}))},p=function(t){var n=t.onClick;return o.createElement(r,{leftAddons:o.createElement(e,null),size:"xs",onClick:n,view:"secondary"},"Добавить квест")};export{p as Addons,m as Content};
1
+ import o from"react";import{EditS as t,PlusS as e}from"alpha-cli-icons";import{Button as r}from"../button/component.js";import{IconButton as n}from"../icon-button/component.js";import{Typography as i}from"../typography/component.js";import"../tslib.es6-7f4a5e3a.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-77ce8ff5.js";import"../common.module-433ea7c5.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var m=function(e){var r=e.location,m=e.onClick;return o.createElement(o.Fragment,null,o.createElement(i.Text,{view:"title",weight:"bold",color:"primary"},r.address),o.createElement(n,{icon:t,onClick:m,size:"s",view:"ghost"}))},p=function(t){var n=t.onClick;return o.createElement(r,{leftAddons:o.createElement(e,null),size:"xs",onClick:n,view:"secondary"},"Добавить квест")};export{p as Addons,m as Content};
@@ -1 +1 @@
1
- import e,{useState as o,useEffect as t}from"react";import{ChevronDownS as n}from"alpha-cli-icons";import r from"classnames";import{Collapse as m}from"../collapse/component.js";import{IconButton as i}from"../icon-button/component.js";import{Typography as s}from"../typography/component.js";import"../_commonjsHelpers-aa088120.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-fe0f1d0a.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../button/component.js";import"../loader/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-74d9c05c.js";import"../common.module-1daece5c.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var a="index-module_wrapper__tyP5w",p="index-module_row__g6gnE",c="index-module_label__kuH6r",l="index-module_collapse_button__YrBPb",d="index-module_expanded_icon__AFfTh",_="index-module_collapse_container__YDAEr",u=function(u){var j,x=u.label,f=u.content,y=u.expanded,h=u.addons,b=u.children,g=u.disabled,v=o(y),E=v[0],w=v[1];return t((function(){w(y)}),[y]),e.createElement("div",null,e.createElement("div",{className:a},e.createElement("div",{className:p},x&&e.createElement(s.Text,{className:c,color:"secondary",view:"title",weight:"medium"},x),f),e.createElement("div",{className:p},h,e.createElement(i,{onClick:function(){return w(!E)},className:r(l,(j={},j[d]=E,j)),disabled:g,view:"ghost",icon:n,size:"s"}))),e.createElement(m,{contentClassName:_,expanded:E},b))};export{u as CollapsableRow};
1
+ import e,{useState as o,useEffect as t}from"react";import{ChevronDownS as n}from"alpha-cli-icons";import r from"classnames";import{Collapse as m}from"../collapse/component.js";import{IconButton as i}from"../icon-button/component.js";import{Typography as s}from"../typography/component.js";import"../_commonjsHelpers-0396845e.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-7f4a5e3a.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../button/component.js";import"../loader/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-77ce8ff5.js";import"../common.module-433ea7c5.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var p="index-module_wrapper__tyP5w",a="index-module_row__g6gnE",l="index-module_label__kuH6r",c="index-module_collapse_button__YrBPb",d="index-module_expanded_icon__AFfTh",_="index-module_collapse_container__YDAEr",u=function(u){var j,f=u.label,x=u.content,y=u.expanded,h=u.addons,b=u.children,g=u.disabled,v=o(y),E=v[0],w=v[1];return t((function(){w(y)}),[y]),e.createElement("div",null,e.createElement("div",{className:p},e.createElement("div",{className:a},f&&e.createElement(s.Text,{className:l,color:"secondary",view:"title",weight:"medium"},f),x),e.createElement("div",{className:a},h,e.createElement(i,{onClick:function(){return w(!E)},className:r(c,(j={},j[d]=E,j)),disabled:g,view:"ghost",icon:n,size:"s"}))),e.createElement(m,{contentClassName:_,expanded:E},b))};export{u as CollapsableRow};
@@ -1 +1 @@
1
- export{CollapsableRow}from"./component.js";import"react";import"alpha-cli-icons";import"classnames";import"../collapse/component.js";import"../_commonjsHelpers-aa088120.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-fe0f1d0a.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../icon-button/component.js";import"../button/component.js";import"../loader/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-74d9c05c.js";import"../common.module-1daece5c.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
1
+ export{CollapsableRow}from"./component.js";import"react";import"alpha-cli-icons";import"classnames";import"../collapse/component.js";import"../_commonjsHelpers-0396845e.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-7f4a5e3a.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../icon-button/component.js";import"../button/component.js";import"../loader/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-77ce8ff5.js";import"../common.module-433ea7c5.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
@@ -1 +1 @@
1
- import e,{forwardRef as t,useRef as n,useState as r,useCallback as o,useEffect as i,useMemo as a}from"react";import u from"classnames";import{a as c}from"../_commonjsHelpers-aa088120.js";import{ResizeObserver as f}from"resize-observer";import{Link as l}from"../link/component.js";import"../tslib.es6-fe0f1d0a.js";import"react-merge-refs";import"../hooks/useFocus/index.js";var s=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},d="object"==typeof c&&c&&c.Object===Object&&c,v="object"==typeof self&&self&&self.Object===Object&&self,m=d||v||Function("return this")(),p=function(){return m.Date.now()},b=/\s/;var y=function(e){for(var t=e.length;t--&&b.test(e.charAt(t)););return t},h=/^\s+/;var j=function(e){return e?e.slice(0,y(e)+1).replace(h,""):e},x=m.Symbol,g=Object.prototype,_=g.hasOwnProperty,w=g.toString,E=x?x.toStringTag:void 0;var T=function(e){var t=_.call(e,E),n=e[E];try{e[E]=void 0;var r=!0}catch(e){}var o=w.call(e);return r&&(t?e[E]=n:delete e[E]),o},O=Object.prototype.toString;var N=function(e){return O.call(e)},k="[object Null]",z="[object Undefined]",S=x?x.toStringTag:void 0;var C=function(e){return null==e?void 0===e?z:k:S&&S in Object(e)?T(e):N(e)};var L=function(e){return null!=e&&"object"==typeof e},H="[object Symbol]";var $=function(e){return"symbol"==typeof e||L(e)&&C(e)==H},D=NaN,F=/^[-+]0x[0-9a-f]+$/i,I=/^0b[01]+$/i,M=/^0o[0-7]+$/i,P=parseInt;var U=function(e){if("number"==typeof e)return e;if($(e))return D;if(s(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=s(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=j(e);var n=I.test(e);return n||M.test(e)?P(e.slice(2),n?2:8):F.test(e)?D:+e},W="Expected a function",A=Math.max,Q=Math.min;var R=function(e,t,n){var r,o,i,a,u,c,f=0,l=!1,d=!1,v=!0;if("function"!=typeof e)throw new TypeError(W);function m(t){var n=r,i=o;return r=o=void 0,f=t,a=e.apply(i,n)}function b(e){var n=e-c;return void 0===c||n>=t||n<0||d&&e-f>=i}function y(){var e=p();if(b(e))return h(e);u=setTimeout(y,function(e){var n=t-(e-c);return d?Q(n,i-(e-f)):n}(e))}function h(e){return u=void 0,v&&r?m(e):(r=o=void 0,a)}function j(){var e=p(),n=b(e);if(r=arguments,o=this,c=e,n){if(void 0===u)return function(e){return f=e,u=setTimeout(y,t),l?m(e):a}(c);if(d)return clearTimeout(u),u=setTimeout(y,t),m(c)}return void 0===u&&(u=setTimeout(y,t)),a}return t=U(t)||0,s(n)&&(l=!!n.leading,i=(d="maxWait"in n)?A(U(n.maxWait)||0,t):i,v="trailing"in n?!!n.trailing:v),j.cancel=function(){void 0!==u&&clearTimeout(u),f=0,r=c=o=u=void 0},j.flush=function(){return void 0===u?a:h(p())},j},Y="index-module_collapse__ORa-f",q="index-module_content__UDk-m",B="index-module_expandedContent__iQszl",G="index-module_children_wrap__ekYCk",J=t((function(t,c){var s,d=t.expanded,v=t.defaultExpanded,m=t.collapsedLabel,p=t.expandedLabel,b=t.children,y=t.className,h=t.contentClassName,j=t.id,x=t.onExpandedChange,g=t.onTransitionEnd,_=t.dataTestId,w=t.linkProps,E=void 0===d,T=n(null),O=n(null),N=r(v||d),k=N[0],z=N[1],S=E?k:d,C=o((function(){var e;O.current&&T.current&&(e=S?O.current.offsetHeight:0,T.current.style.height=e+"px")}),[S]),L=o((function(){g&&g(d)}),[d,g]),H=o((function(){E&&z(!S),console.log(S),x&&x()}),[S,x,E]);i((function(){var e=R((function(){return C()}),300);return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[C]),i((function(){var e=new f(C);return O.current&&e.observe(O.current),function(){e.disconnect()}}),[C]),i((function(){return C()}),[S,C]);var $=a((function(){var e,t=null===(e=T.current)||void 0===e?void 0:e.offsetHeight;return{height:S&&!t?"0px":t+"px"}}),[S]),D=!!p||!!m;return e.createElement("div",{ref:c,className:u(y,Y),id:j,"data-test-id":_},e.createElement("div",{onTransitionEnd:L,ref:T,className:u(q,h,(s={},s[B]=S,s)),style:$},e.createElement("div",{className:u(G),ref:O},b)),D&&e.createElement(l,{view:(null==w?void 0:w.view)||"secondary",size:(null==w?void 0:w.size)||"m",pseudo:!0,onClick:H},S?p:m))}));export{J as Collapse};
1
+ import e,{forwardRef as t,useRef as n,useState as r,useCallback as o,useEffect as i,useMemo as a}from"react";import u from"classnames";import{a as c}from"../_commonjsHelpers-0396845e.js";import{ResizeObserver as f}from"resize-observer";import{Link as l}from"../link/component.js";import"../tslib.es6-7f4a5e3a.js";import"react-merge-refs";import"../hooks/useFocus/index.js";var s=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},d="object"==typeof c&&c&&c.Object===Object&&c,v="object"==typeof self&&self&&self.Object===Object&&self,m=d||v||Function("return this")(),p=function(){return m.Date.now()},b=/\s/;var y=function(e){for(var t=e.length;t--&&b.test(e.charAt(t)););return t},h=/^\s+/;var j=function(e){return e?e.slice(0,y(e)+1).replace(h,""):e},x=m.Symbol,g=Object.prototype,_=g.hasOwnProperty,w=g.toString,E=x?x.toStringTag:void 0;var T=function(e){var t=_.call(e,E),n=e[E];try{e[E]=void 0;var r=!0}catch(e){}var o=w.call(e);return r&&(t?e[E]=n:delete e[E]),o},O=Object.prototype.toString;var N=function(e){return O.call(e)},k="[object Null]",z="[object Undefined]",S=x?x.toStringTag:void 0;var C=function(e){return null==e?void 0===e?z:k:S&&S in Object(e)?T(e):N(e)};var L=function(e){return null!=e&&"object"==typeof e},H="[object Symbol]";var $=function(e){return"symbol"==typeof e||L(e)&&C(e)==H},D=NaN,F=/^[-+]0x[0-9a-f]+$/i,I=/^0b[01]+$/i,M=/^0o[0-7]+$/i,P=parseInt;var U=function(e){if("number"==typeof e)return e;if($(e))return D;if(s(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=s(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=j(e);var n=I.test(e);return n||M.test(e)?P(e.slice(2),n?2:8):F.test(e)?D:+e},W="Expected a function",A=Math.max,Q=Math.min;var R=function(e,t,n){var r,o,i,a,u,c,f=0,l=!1,d=!1,v=!0;if("function"!=typeof e)throw new TypeError(W);function m(t){var n=r,i=o;return r=o=void 0,f=t,a=e.apply(i,n)}function b(e){var n=e-c;return void 0===c||n>=t||n<0||d&&e-f>=i}function y(){var e=p();if(b(e))return h(e);u=setTimeout(y,function(e){var n=t-(e-c);return d?Q(n,i-(e-f)):n}(e))}function h(e){return u=void 0,v&&r?m(e):(r=o=void 0,a)}function j(){var e=p(),n=b(e);if(r=arguments,o=this,c=e,n){if(void 0===u)return function(e){return f=e,u=setTimeout(y,t),l?m(e):a}(c);if(d)return clearTimeout(u),u=setTimeout(y,t),m(c)}return void 0===u&&(u=setTimeout(y,t)),a}return t=U(t)||0,s(n)&&(l=!!n.leading,i=(d="maxWait"in n)?A(U(n.maxWait)||0,t):i,v="trailing"in n?!!n.trailing:v),j.cancel=function(){void 0!==u&&clearTimeout(u),f=0,r=c=o=u=void 0},j.flush=function(){return void 0===u?a:h(p())},j},Y="index-module_collapse__ORa-f",q="index-module_content__UDk-m",B="index-module_expandedContent__iQszl",G="index-module_children_wrap__ekYCk",J=t((function(t,c){var s,d=t.expanded,v=t.defaultExpanded,m=t.collapsedLabel,p=t.expandedLabel,b=t.children,y=t.className,h=t.contentClassName,j=t.id,x=t.onExpandedChange,g=t.onTransitionEnd,_=t.dataTestId,w=t.linkProps,E=void 0===d,T=n(null),O=n(null),N=r(v||d),k=N[0],z=N[1],S=E?k:d,C=o((function(){var e;O.current&&T.current&&(e=S?O.current.offsetHeight:0,T.current.style.height=e+"px")}),[S]),L=o((function(){g&&g(d)}),[d,g]),H=o((function(){E&&z(!S),console.log(S),x&&x()}),[S,x,E]);i((function(){var e=R((function(){return C()}),300);return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[C]),i((function(){var e=new f(C);return O.current&&e.observe(O.current),function(){e.disconnect()}}),[C]),i((function(){return C()}),[S,C]);var $=a((function(){var e,t=null===(e=T.current)||void 0===e?void 0:e.offsetHeight;return{height:S&&!t?"0px":t+"px"}}),[S]),D=!!p||!!m;return e.createElement("div",{ref:c,className:u(y,Y),id:j,"data-test-id":_},e.createElement("div",{onTransitionEnd:L,ref:T,className:u(q,h,(s={},s[B]=S,s)),style:$},e.createElement("div",{className:u(G),ref:O},b)),D&&e.createElement(l,{view:(null==w?void 0:w.view)||"secondary",size:(null==w?void 0:w.size)||"m",pseudo:!0,onClick:H},S?p:m))}));export{J as Collapse};
@@ -1 +1 @@
1
- export{Collapse}from"./component.js";import"react";import"classnames";import"../_commonjsHelpers-aa088120.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-fe0f1d0a.js";import"react-merge-refs";import"../hooks/useFocus/index.js";
1
+ export{Collapse}from"./component.js";import"react";import"classnames";import"../_commonjsHelpers-0396845e.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-7f4a5e3a.js";import"react-merge-refs";import"../hooks/useFocus/index.js";
@@ -1 +1 @@
1
- import t from"react";import{ActionCopyM as o}from"alpha-cli-icons";import{ToastNotifier as e}from"../toast-notifier/component.js";import{Typography as i}from"../typography/component.js";import{IconButton as r}from"../icon-button/component.js";import"../tslib.es6-fe0f1d0a.js";import"react-dom";import"classnames";import"../toast-plate/component.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../toast-notifier/use-timer.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-74d9c05c.js";import"../common.module-1daece5c.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var m="index-module_wrapper__dZRhL",p="index-module_link_button__VKWD-",n=function(n){var s=n.text,c=n.fullText;return t.createElement("div",{className:m},t.createElement(i.Text,{view:"title",weight:"medium",color:"secondary"},s),t.createElement(r,{icon:o,className:p,onClick:function(t){t.stopPropagation(),navigator.clipboard.writeText(c||s).then((function(){e({title:"Copied!",view:"positive",offset:30})}))},view:"ghost"}))};export{n as CopyButton};
1
+ import t from"react";import{ActionCopyM as o}from"alpha-cli-icons";import{ToastNotifier as e}from"../toast-notifier/component.js";import{Typography as i}from"../typography/component.js";import{IconButton as r}from"../icon-button/component.js";import"../tslib.es6-7f4a5e3a.js";import"react-dom";import"classnames";import"../toast-plate/component.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../toast-notifier/use-timer.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-77ce8ff5.js";import"../common.module-433ea7c5.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var m="index-module_wrapper__dZRhL",p="index-module_link_button__VKWD-",n=function(n){var s=n.text,a=n.fullText;return t.createElement("div",{className:m},t.createElement(i.Text,{view:"title",weight:"medium",color:"secondary"},s),t.createElement(r,{icon:o,className:p,onClick:function(t){t.stopPropagation(),navigator.clipboard.writeText(a||s).then((function(){e({title:"Copied!",view:"positive",offset:30})}))},view:"ghost"}))};export{n as CopyButton};
@@ -1 +1 @@
1
- export{CopyButton}from"./component.js";import"react";import"alpha-cli-icons";import"../toast-notifier/component.js";import"../tslib.es6-fe0f1d0a.js";import"react-dom";import"classnames";import"../toast-plate/component.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../toast-notifier/use-timer.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-74d9c05c.js";import"../common.module-1daece5c.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../icon-button/component.js";
1
+ export{CopyButton}from"./component.js";import"react";import"alpha-cli-icons";import"../toast-notifier/component.js";import"../tslib.es6-7f4a5e3a.js";import"react-dom";import"classnames";import"../toast-plate/component.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../toast-notifier/use-timer.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-77ce8ff5.js";import"../common.module-433ea7c5.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../icon-button/component.js";