@alphakits/ui 1.31.0 → 1.31.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 (202) 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/avatar/component.js +1 -1
  5. package/dist/avatar/index.js +1 -1
  6. package/dist/back-button/component.js +1 -1
  7. package/dist/badge/component.js +1 -1
  8. package/dist/base-card/component.js +1 -1
  9. package/dist/base-card/index.js +1 -1
  10. package/dist/bottom-sheet/component.js +1 -1
  11. package/dist/box/component.js +1 -1
  12. package/dist/button/component.js +1 -1
  13. package/dist/button-arrow/component.js +1 -1
  14. package/dist/calendar/component.js +1 -1
  15. package/dist/calendar/components/days-table/component.js +1 -1
  16. package/dist/calendar/components/days-table/index.js +1 -1
  17. package/dist/calendar/components/header/index.js +1 -1
  18. package/dist/calendar/components/header//321/201omponent.js +1 -1
  19. package/dist/calendar/components/months-table/index.js +1 -1
  20. package/dist/calendar/components/months-table//321/201omponent.js +1 -1
  21. package/dist/calendar/components/select-button//321/201omponent.js +1 -1
  22. package/dist/calendar/components/years-table//321/201omponent.js +1 -1
  23. package/dist/calendar/index.js +1 -1
  24. package/dist/calendar-input/component.js +1 -1
  25. package/dist/calendar-input/index.js +1 -1
  26. package/dist/{capitalize-f61c7a6e.js → capitalize-d32858ed.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/component.js +1 -1
  32. package/dist/cell/index.js +1 -1
  33. package/dist/cell/pure/component.js +1 -1
  34. package/dist/checkbox/component.js +1 -1
  35. package/dist/checkbox-group/component.js +1 -1
  36. package/dist/checkbox-group/index.js +1 -1
  37. package/dist/checkbox-lists/component.js +1 -1
  38. package/dist/checkbox-lists/index.js +1 -1
  39. package/dist/collapsable-row/addons.js +1 -1
  40. package/dist/collapsable-row/component.js +1 -1
  41. package/dist/collapsable-row/index.js +1 -1
  42. package/dist/collapse/component.js +1 -1
  43. package/dist/collapse/index.js +1 -1
  44. package/dist/colors.module-a7d0efb0.js +1 -0
  45. package/dist/contact-block-c5889266.js +1 -0
  46. package/dist/copy-button/component.js +1 -1
  47. package/dist/copy-button/index.js +1 -1
  48. package/dist/date/component.js +1 -1
  49. package/dist/date/index.js +1 -1
  50. package/dist/date-switcher/component.js +1 -1
  51. package/dist/date-switcher/index.js +1 -1
  52. package/dist/decorated-item/component.js +1 -1
  53. package/dist/divider/component.js +1 -1
  54. package/dist/dot/component.js +1 -1
  55. package/dist/empty-page/component.js +1 -1
  56. package/dist/empty-page/index.js +1 -1
  57. package/dist/flex/component.js +1 -1
  58. package/dist/flex-columns/component.js +1 -1
  59. package/dist/footer/component.js +1 -1
  60. package/dist/footer/contact-block.js +1 -1
  61. package/dist/footer/index.js +1 -1
  62. package/dist/form/component.js +1 -1
  63. package/dist/form/components/form-loading/index.js +1 -1
  64. package/dist/form/index.js +1 -1
  65. package/dist/form/templates/filters-form/index.js +1 -1
  66. package/dist/form/templates/rest-form/form.js +1 -1
  67. package/dist/form/templates/rest-form/index.js +1 -1
  68. package/dist/form-control/component.js +1 -1
  69. package/dist/grid/col/component.js +1 -1
  70. package/dist/grid/col/index.js +1 -1
  71. package/dist/grid/component.js +1 -1
  72. package/dist/grid/index.js +1 -1
  73. package/dist/grid/row/component.js +1 -1
  74. package/dist/grid/row/index.js +1 -1
  75. package/dist/gutters.module-8ae90e74.js +1 -0
  76. package/dist/header-search/component.js +1 -1
  77. package/dist/icon-button/component.js +1 -1
  78. package/dist/image/component.js +1 -1
  79. package/dist/image/image-base.js +1 -1
  80. package/dist/image/index.js +1 -1
  81. package/dist/image/use-image-render-component.js +1 -1
  82. package/dist/image-uploader/component.js +1 -1
  83. package/dist/image-uploader/index.js +1 -1
  84. package/dist/index.css +1 -1
  85. package/dist/info-block-header/component.js +1 -1
  86. package/dist/info-block-header/index.js +1 -1
  87. package/dist/info-block-item/component.js +1 -1
  88. package/dist/info-block-item/index.js +1 -1
  89. package/dist/info-block-wrapper/component.js +1 -1
  90. package/dist/input/component.js +1 -1
  91. package/dist/input-autocomplete/autocomplete-field/index.js +1 -1
  92. package/dist/input-ghost/component.js +1 -1
  93. package/dist/link/component.js +1 -1
  94. package/dist/list-allert/component.js +1 -1
  95. package/dist/list-allert/index.js +1 -1
  96. package/dist/loader/component.js +1 -1
  97. package/dist/masked-input/component.js +1 -1
  98. package/dist/menu/component.js +1 -1
  99. package/dist/menu/components/content-header/index.js +1 -1
  100. package/dist/menu/components/index.js +1 -1
  101. package/dist/menu/components/menu-avatar/index.js +1 -1
  102. package/dist/menu/components/menu-back-button/index.js +1 -1
  103. package/dist/menu/components/menu-button/index.js +1 -1
  104. package/dist/menu/components/menu-buttons-list/index.js +1 -1
  105. package/dist/menu/components/user-button/index.js +1 -1
  106. package/dist/menu/index.js +1 -1
  107. package/dist/message/component.js +1 -1
  108. package/dist/message/index.js +1 -1
  109. package/dist/modal/components/modals/modal.js +1 -1
  110. package/dist/notification/component.js +1 -1
  111. package/dist/page-container/component.js +1 -1
  112. package/dist/page-loading/component.js +1 -1
  113. package/dist/page-with-controls/component.js +1 -1
  114. package/dist/page-with-controls/index.js +1 -1
  115. package/dist/picker-button/common/index.js +1 -1
  116. package/dist/picker-button/common/labeled-button/index.js +1 -1
  117. package/dist/picker-button/component.d.ts +1 -1
  118. package/dist/picker-button/component.js +1 -1
  119. package/dist/picker-button/field/Component.js +1 -1
  120. package/dist/picker-button/index.js +1 -1
  121. package/dist/popover/component.js +1 -1
  122. package/dist/progress-bar/component.js +1 -1
  123. package/dist/progress-bar/index.js +1 -1
  124. package/dist/progress-index/component.js +1 -1
  125. package/dist/progress-index/index.js +1 -1
  126. package/dist/radio/component.js +1 -1
  127. package/dist/radio-group/component.js +1 -1
  128. package/dist/radio-group/index.js +1 -1
  129. package/dist/radio-groups/component.js +1 -1
  130. package/dist/radio-groups/index.js +1 -1
  131. package/dist/section-wrapper/component.js +1 -1
  132. package/dist/select/components/arrow/component.js +1 -1
  133. package/dist/select/components/base-select/component.js +1 -1
  134. package/dist/select/components/checkmark/component.js +1 -1
  135. package/dist/select/components/field/component.js +1 -1
  136. package/dist/select/components/optgroup/component.js +1 -1
  137. package/dist/select/components/option/component.js +1 -1
  138. package/dist/select/components/options-list/component.js +1 -1
  139. package/dist/select/components/select-search/index.js +1 -1
  140. package/dist/select/components/virtual-options-list/component.js +1 -1
  141. package/dist/select/presets/use-select-with-loading/hook.js +1 -1
  142. package/dist/sidepanel/component.js +1 -1
  143. package/dist/sidepanel/index.js +1 -1
  144. package/dist/sidepanel-header/component.js +1 -1
  145. package/dist/sidepanel-header/index.js +1 -1
  146. package/dist/skeleton/component.js +1 -1
  147. package/dist/space/component.js +1 -1
  148. package/dist/spinner/component.js +1 -1
  149. package/dist/status/component.js +1 -1
  150. package/dist/step-bar-15ff0e61.js +1 -0
  151. package/dist/stepped-progress-bar/components/step-bar.js +1 -1
  152. package/dist/stepped-progress-bar/index.d.ts +1 -1
  153. package/dist/stepped-progress-bar/index.js +1 -1
  154. package/dist/sticker/component.js +1 -1
  155. package/dist/suffix-input/component.js +1 -1
  156. package/dist/super-list-header/component.js +1 -1
  157. package/dist/super-list-header/index.js +1 -1
  158. package/dist/super-list-item/component.js +1 -1
  159. package/dist/super-list-item/index.js +1 -1
  160. package/dist/switch/component.js +1 -1
  161. package/dist/table/component.js +1 -1
  162. package/dist/table/components/cell/component.js +1 -1
  163. package/dist/table/components/cell/index.js +1 -1
  164. package/dist/table/components/cells/index.js +1 -1
  165. package/dist/table/components/empty-list/index.js +1 -1
  166. package/dist/table/components/error/index.js +1 -1
  167. package/dist/table/components/loading/index.js +1 -1
  168. package/dist/table/components/pagination/index.js +1 -1
  169. package/dist/table/components/table-header/index.js +1 -1
  170. package/dist/table/index.js +1 -1
  171. package/dist/table/table.js +1 -1
  172. package/dist/table/utils/prepare-rows.js +1 -1
  173. package/dist/table-status/component.js +1 -1
  174. package/dist/table-status/index.js +1 -1
  175. package/dist/tag/component.js +1 -1
  176. package/dist/tag/index.js +1 -1
  177. package/dist/tags-list/component.js +1 -1
  178. package/dist/tags-list/index.js +1 -1
  179. package/dist/textarea/component.js +1 -1
  180. package/dist/toast/component.js +1 -1
  181. package/dist/toast-notifier/component.js +1 -1
  182. package/dist/toast-plate/component.js +1 -1
  183. package/dist/tooltip/component.js +1 -1
  184. package/dist/typography/component.js +1 -1
  185. package/dist/typography/index.js +1 -1
  186. package/dist/typography/text/component.js +1 -1
  187. package/dist/typography/text/index.js +1 -1
  188. package/dist/typography/title/component.js +1 -1
  189. package/dist/typography/title/index.js +1 -1
  190. package/dist/use-image-render-component-91131dbc.js +1 -0
  191. package/dist/welcome-layout/component.js +1 -1
  192. package/dist/with-suffix/component.js +1 -1
  193. package/package.json +7 -5
  194. package/dist/colors.module-e6546343.js +0 -1
  195. package/dist/contact-block-79ed0fc7.js +0 -1
  196. package/dist/gutters.module-40c240ff.js +0 -1
  197. package/dist/step-bar-96ca328e.js +0 -1
  198. package/dist/use-image-render-component-d8d9cc09.js +0 -1
  199. /package/dist/{contact-block-79ed0fc7.d.ts → contact-block-c5889266.d.ts} +0 -0
  200. /package/dist/{isSymbol-ae03d4c3.js → isSymbol-9701dc6b.js} +0 -0
  201. /package/dist/{step-bar-96ca328e.d.ts → step-bar-15ff0e61.d.ts} +0 -0
  202. /package/dist/{use-image-render-component-d8d9cc09.d.ts → use-image-render-component-91131dbc.d.ts} +0 -0
@@ -1 +1 @@
1
- import t from"react";import o from"@alphakits/icons/dist/NextS";import e from"classnames";import{IconButton as r}from"../icon-button/component.js";import{Typography as i}from"../typography/component.js";import"tslib";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/text/component.js";import"../colors.module-e6546343.js";import"../typography/title/index.js";import"../typography/title/component.js";var m={item:"index-module_item__fXRQg"},p=function(p){var n=p.title,s=p.onClick;return t.createElement("div",{className:e(m.item)},t.createElement(i.Text,{view:"title",weight:"bold",color:"primary"},n),!!s&&t.createElement(r,{icon:o,className:m.copy,size:"s",onClick:s}))};export{p as InfoBlockHeader};
1
+ import t from"react";import o from"@alphakits/icons/dist/NextS";import e from"classnames";import{IconButton as r}from"../icon-button/component.js";import{Typography as i}from"../typography/component.js";import"tslib";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"../typography/title/component.js";var m={item:"index-module_item__3ce8x"},p=function(p){var n=p.title,s=p.onClick;return t.createElement("div",{className:e(m.item)},t.createElement(i.Text,{view:"title",weight:"bold",color:"primary"},n),!!s&&t.createElement(r,{icon:o,className:m.copy,size:"s",onClick:s}))};export{p as InfoBlockHeader};
@@ -1 +1 @@
1
- export{InfoBlockHeader}from"./component.js";import"react";import"@alphakits/icons/dist/NextS";import"classnames";import"../icon-button/component.js";import"tslib";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-e6546343.js";import"../typography/title/index.js";import"../typography/title/component.js";
1
+ export{InfoBlockHeader}from"./component.js";import"react";import"@alphakits/icons/dist/NextS";import"classnames";import"../icon-button/component.js";import"tslib";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"../typography/title/component.js";
@@ -1 +1 @@
1
- import t from"react";import e from"@alphakits/icons/dist/ActionCopyM";import o from"classnames";import{IconButton as i}from"../icon-button/component.js";import{ToastNotifier as r}from"../toast-notifier/component.js";import{Typography as n}from"../typography/component.js";import"tslib";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"react-dom";import"../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/ClockCircleM";import"@alphakits/icons/dist/CloseS";import"../toast-notifier/use-timer.js";import"../typography/text/component.js";import"../colors.module-e6546343.js";import"../typography/title/index.js";import"../typography/title/component.js";var m={item:"index-module_item__BUo57",start:"index-module_start__G65gS",between:"index-module_between__yyp2w",rightAddons:"index-module_rightAddons__KS2QD",content:"index-module_content__Q7Zy2",copy:"index-module_copy__msKVu"},s=function(s){var p=s.label,a=s.value,c=s.view,l=void 0===c?"between":c,d=s.rightAddons,u=s.withCopyButton,h=s.color,y=void 0===h?"primary":h;return t.createElement("div",{className:o(m.item,m[l])},t.createElement(n.Text,{view:"caps",color:"secondary",weight:"medium"},p,a&&":"),t.createElement("div",{className:m.content},a&&t.createElement(n.Text,{view:"caps",className:m.value,color:y,weight:"medium"},a,u&&t.createElement(i,{icon:e,className:m.copy,size:"s",onClick:function(t){t.stopPropagation(),navigator.clipboard.writeText(a).then((function(){r({title:"Copied!",view:"positive",offset:30})}))}})),d&&t.createElement("div",{className:m.rightAddons},d)))};export{s as InfoBlockItem};
1
+ import t from"react";import e from"@alphakits/icons/dist/ActionCopyM";import o from"classnames";import{IconButton as i}from"../icon-button/component.js";import{ToastNotifier as r}from"../toast-notifier/component.js";import{Typography as n}from"../typography/component.js";import"tslib";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"react-dom";import"../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/ClockCircleM";import"@alphakits/icons/dist/CloseS";import"../toast-notifier/use-timer.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"../typography/title/component.js";var m={item:"index-module_item__Wtwgt",start:"index-module_start__3kp7e",between:"index-module_between__3JHZ-",rightAddons:"index-module_rightAddons__3HmvT",content:"index-module_content__OwYJI",copy:"index-module_copy__2bD1W"},s=function(s){var p=s.label,a=s.value,c=s.view,l=void 0===c?"between":c,d=s.rightAddons,u=s.withCopyButton,h=s.color,_=void 0===h?"primary":h;return t.createElement("div",{className:o(m.item,m[l])},t.createElement(n.Text,{view:"caps",color:"secondary",weight:"medium"},p,a&&":"),t.createElement("div",{className:m.content},a&&t.createElement(n.Text,{view:"caps",className:m.value,color:_,weight:"medium"},a,u&&t.createElement(i,{icon:e,className:m.copy,size:"s",onClick:function(t){t.stopPropagation(),navigator.clipboard.writeText(a).then((function(){r({title:"Copied!",view:"positive",offset:30})}))}})),d&&t.createElement("div",{className:m.rightAddons},d)))};export{s as InfoBlockItem};
@@ -1 +1 @@
1
- export{InfoBlockItem}from"./component.js";import"react";import"@alphakits/icons/dist/ActionCopyM";import"classnames";import"../icon-button/component.js";import"tslib";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../toast-notifier/component.js";import"react-dom";import"../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/ClockCircleM";import"@alphakits/icons/dist/CloseS";import"../toast-notifier/use-timer.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-e6546343.js";import"../typography/title/index.js";import"../typography/title/component.js";
1
+ export{InfoBlockItem}from"./component.js";import"react";import"@alphakits/icons/dist/ActionCopyM";import"classnames";import"../icon-button/component.js";import"tslib";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../toast-notifier/component.js";import"react-dom";import"../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/ClockCircleM";import"@alphakits/icons/dist/CloseS";import"../toast-notifier/use-timer.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"../typography/title/component.js";
@@ -1 +1 @@
1
- import e from"react";import o from"classnames";var i={infoBlock:"index-module_infoBlock__UlYZ9",icon:"index-module_icon__lhrKn",bordered:"index-module_bordered__0yDPn",withHover:"index-module_withHover__OF8-i"},r=function(r){var n=r.children,d=r.view,l=void 0===d?"default":d;return e.createElement("div",{className:o(i.infoBlock,i[l])},n)};export{r as InfoBlockWrapper};
1
+ import e from"react";import o from"classnames";var i={infoBlock:"index-module_infoBlock__1U3qw",icon:"index-module_icon__qcssZ",bordered:"index-module_bordered__1Edcl",withHover:"index-module_withHover__1w2MC"},r=function(r){var d=r.children,n=r.view,c=void 0===n?"default":n;return e.createElement("div",{className:o(i.infoBlock,i[c])},d)};export{r as InfoBlockWrapper};
@@ -1 +1 @@
1
- import{__rest as e,__assign as o}from"tslib";import a,{useRef as s,useState as l,useCallback as n,Fragment as r}from"react";import t from"react-merge-refs";import d from"classnames";import{Button as i}from"../button/component.js";import{FormControl as c}from"../form-control/component.js";import{useFocus as u}from"../hooks/useFocus/index.js";import"../loader/component.js";var m={input:"index-module_input__XkSql",hasLabel:"index-module_hasLabel__3lW-T",block:"index-module_block__Lq9-V",clearIcon:"index-module_clearIcon__951a-",errorIcon:"index-module_errorIcon__Z4acu",successIcon:"index-module_successIcon__yfoME",focusVisible:"index-module_focusVisible__3hinw"},f=a.forwardRef((function(f,p){var b,C,N=f.size,_=void 0===N?"m":N,h=f.type,v=void 0===h?"text":h,g=f.block,x=void 0!==g&&g,k=f.bottomAddons,y=f.dataTestId,I=f.clear,A=void 0!==I&&I,w=f.disabled,E=f.error,L=f.success,M=f.required,V=f.hint,q=f.className,B=f.fieldClassName,j=f.inputClassName,F=f.labelClassName,z=f.addonsClassName,D=f.focusedClassName,O=f.filledClassName,R=f.label,T=f.maxLength,U=void 0===T?100:T,P=f.leftAddons,S=f.onFocus,W=f.onBlur,X=f.onChange,Z=f.onClear,G=f.onClick,H=f.onMouseDown,J=f.onMouseUp,K=f.rightAddons,Q=f.value,Y=f.defaultValue,$=f.wrapperRef,ee=f.readOnly,oe=e(f,["size","type","block","bottomAddons","dataTestId","clear","disabled","error","success","required","hint","className","fieldClassName","inputClassName","labelClassName","addonsClassName","focusedClassName","filledClassName","label","maxLength","leftAddons","onFocus","onBlur","onChange","onClear","onClick","onMouseDown","onMouseUp","rightAddons","value","defaultValue","wrapperRef","readOnly"]),ae=void 0===Q,se=s(null),le=u(se,"keyboard")[0],ne=l(!1),re=ne[0],te=ne[1],de=l(Y||""),ie=de[0],ce=de[1],ue=Boolean(ae?ie:Q),me=A&&ue&&!w&&!ee,fe=n((function(e){ee||te(!0),S&&S(e)}),[S,ee]),pe=n((function(e){te(!1),W&&W(e)}),[W]),be=n((function(e){X&&X(e,{value:e.target.value}),ae&&ce(e.target.value)}),[X,ae]),Ce=n((function(e){me&&(ae&&ce(""),Z&&Z(e),se.current&&!re&&se.current.focus())}),[me,re,Z,ae]);return a.createElement(c,{ref:$,className:d(q,re&&D,ue&&O),fieldClassName:d(B,(b={},b[m.focusVisible]=le,b)),labelClassName:F,addonsClassName:z,size:_,block:x,required:M,disabled:w,filled:ue||re,focused:re,error:E,label:R,hint:V,leftAddons:P,rightAddons:(me||K||L)&&a.createElement(r,null,me&&a.createElement(i,{type:"button",view:"ghost",disabled:w,"aria-label":"Очистить",className:m.clearButton,onClick:Ce},a.createElement("span",{className:m.clearIcon})),L&&!E&&a.createElement("span",{className:m.successIcon}),K),bottomAddons:k,onClick:G,onMouseDown:H,onMouseUp:J},a.createElement("input",o({},oe,{className:d(m.input,(C={},C[m.hasLabel]=R,C),j),disabled:w,onBlur:pe,onFocus:fe,onChange:be,maxLength:U,ref:t([p,se]),type:v,value:ae?ie:Q,readOnly:ee,"data-test-id":y,"data-error":!!E,"aria-label":"string"==typeof R?R:void 0})))}));f.defaultProps={type:"text",block:!1};export{f as Input};
1
+ import{__rest as e,__assign as o}from"tslib";import a,{useRef as s,useState as l,useCallback as n,Fragment as r}from"react";import t from"react-merge-refs";import d from"classnames";import{Button as i}from"../button/component.js";import{FormControl as c}from"../form-control/component.js";import{useFocus as u}from"../hooks/useFocus/index.js";import"../loader/component.js";var m={input:"index-module_input__2DyE0",hasLabel:"index-module_hasLabel__S2DGf",block:"index-module_block__lH-Pe",clearIcon:"index-module_clearIcon__TO-Pg",errorIcon:"index-module_errorIcon__vVrYK",successIcon:"index-module_successIcon__3MPpw",focusVisible:"index-module_focusVisible__3Adls"},f=a.forwardRef((function(f,p){var b,C,N=f.size,_=void 0===N?"m":N,h=f.type,v=void 0===h?"text":h,g=f.block,x=void 0!==g&&g,k=f.bottomAddons,y=f.dataTestId,A=f.clear,I=void 0!==A&&A,w=f.disabled,E=f.error,M=f.success,L=f.required,V=f.hint,B=f.className,D=f.fieldClassName,j=f.inputClassName,F=f.labelClassName,O=f.addonsClassName,P=f.focusedClassName,q=f.filledClassName,z=f.label,R=f.maxLength,T=void 0===R?100:R,U=f.leftAddons,G=f.onFocus,H=f.onBlur,K=f.onChange,S=f.onClear,Y=f.onClick,J=f.onMouseDown,Q=f.onMouseUp,W=f.rightAddons,X=f.value,Z=f.defaultValue,$=f.wrapperRef,ee=f.readOnly,oe=e(f,["size","type","block","bottomAddons","dataTestId","clear","disabled","error","success","required","hint","className","fieldClassName","inputClassName","labelClassName","addonsClassName","focusedClassName","filledClassName","label","maxLength","leftAddons","onFocus","onBlur","onChange","onClear","onClick","onMouseDown","onMouseUp","rightAddons","value","defaultValue","wrapperRef","readOnly"]),ae=void 0===X,se=s(null),le=u(se,"keyboard")[0],ne=l(!1),re=ne[0],te=ne[1],de=l(Z||""),ie=de[0],ce=de[1],ue=Boolean(ae?ie:X),me=I&&ue&&!w&&!ee,fe=n((function(e){ee||te(!0),G&&G(e)}),[G,ee]),pe=n((function(e){te(!1),H&&H(e)}),[H]),be=n((function(e){K&&K(e,{value:e.target.value}),ae&&ce(e.target.value)}),[K,ae]),Ce=n((function(e){me&&(ae&&ce(""),S&&S(e),se.current&&!re&&se.current.focus())}),[me,re,S,ae]);return a.createElement(c,{ref:$,className:d(B,re&&P,ue&&q),fieldClassName:d(D,(b={},b[m.focusVisible]=le,b)),labelClassName:F,addonsClassName:O,size:_,block:x,required:L,disabled:w,filled:ue||re,focused:re,error:E,label:z,hint:V,leftAddons:U,rightAddons:(me||W||M)&&a.createElement(r,null,me&&a.createElement(i,{type:"button",view:"ghost",disabled:w,"aria-label":"Очистить",className:m.clearButton,onClick:Ce},a.createElement("span",{className:m.clearIcon})),M&&!E&&a.createElement("span",{className:m.successIcon}),W),bottomAddons:k,onClick:Y,onMouseDown:J,onMouseUp:Q},a.createElement("input",o({},oe,{className:d(m.input,(C={},C[m.hasLabel]=z,C),j),disabled:w,onBlur:pe,onFocus:fe,onChange:be,maxLength:T,ref:t([p,se]),type:v,value:ae?ie:X,readOnly:ee,"data-test-id":y,"data-error":!!E,"aria-label":"string"==typeof z?z:void 0})))}));f.defaultProps={type:"text",block:!1};export{f as Input};
@@ -1 +1 @@
1
- import{__assign as r}from"tslib";import o,{useRef as e,useCallback as n}from"react";import t from"classnames";import{Input as l}from"../../input/component.js";import s from"react-merge-refs";import"../../button/component.js";import"../../hooks/useFocus/index.js";import"../../loader/component.js";import"../../form-control/component.js";var i="index-module_arrow__qrJxu",a="index-module_error__z8Onx",c=function(c){var m,p=c.label,u=c.placeholder,d=c.Arrow,f=c.Input,h=void 0===f?l:f,v=c.value,b=c.error,g=c.success,x=c.hint,_=c.disabled,j=c.readOnly,k=c.onInput,w=c.inputProps,A=void 0===w?{}:w,C=c.innerProps,F=e(null),E=C.onClick,O=C.onFocus,y=_||j,I=n((function(r){E&&E(r),F.current&&F.current.focus()}),[E]);return o.createElement(h,r({},A,C,{wrapperRef:s([C.ref,A.wrapperRef]),ref:s([F,A.ref]),disabled:_,readOnly:j,block:!0,label:p,placeholder:u,error:b,success:g,hint:x,onChange:k,onClick:y?void 0:I,onFocus:y?void 0:O,autoComplete:"off",value:v,rightAddons:(d||A.rightAddons)&&o.createElement(o.Fragment,null,A.rightAddons,d&&o.createElement("span",{className:t(i,(m={},m[a]=b,m))},d))}))};export{c as AutocompleteField};
1
+ import{__assign as o}from"tslib";import r,{useRef as e,useCallback as n}from"react";import t from"classnames";import{Input as l}from"../../input/component.js";import s from"react-merge-refs";import"../../button/component.js";import"../../hooks/useFocus/index.js";import"../../loader/component.js";import"../../form-control/component.js";var i="index-module_arrow__1XlGC",a="index-module_error__24P-U",c=function(c){var m,p=c.label,d=c.placeholder,u=c.Arrow,f=c.Input,h=void 0===f?l:f,v=c.value,b=c.error,g=c.success,_=c.hint,j=c.disabled,C=c.readOnly,k=c.onInput,w=c.inputProps,x=void 0===w?{}:w,A=c.innerProps,F=e(null),E=A.onClick,P=A.onFocus,y=j||C,I=n((function(o){E&&E(o),F.current&&F.current.focus()}),[E]);return r.createElement(h,o({},x,A,{wrapperRef:s([A.ref,x.wrapperRef]),ref:s([F,x.ref]),disabled:j,readOnly:C,block:!0,label:p,placeholder:d,error:b,success:g,hint:_,onChange:k,onClick:y?void 0:I,onFocus:y?void 0:P,autoComplete:"off",value:v,rightAddons:(u||x.rightAddons)&&r.createElement(r.Fragment,null,x.rightAddons,u&&r.createElement("span",{className:t(i,(m={},m[a]=b,m))},u))}))};export{c as AutocompleteField};
@@ -1 +1 @@
1
- import e from"react";import t from"@alphakits/icons/dist/SearchM";import l from"classnames";var n={input:"index-module_input__Sx0kB",block:"index-module_block__vmjqb",s:"index-module_s__5THxm",m:"index-module_m__Xkulo",leftAddons:"index-module_leftAddons__tJy0W"},o=function(o){var a,d=o.value,m=o.onChange,i=o.placeholder,r=o.leftAddons,c=o.block,s=o.size,u=void 0===s?"m":s;return e.createElement("div",{className:l(n.input,n[u],(a={},a[n.block]=c,a))},e.createElement("span",{className:n.leftAddons},r||e.createElement(t,null)),e.createElement("input",{value:d,onChange:function(e){m(e.target.value)},placeholder:i,type:"text"}))};export{o as InputGhost};
1
+ import e from"react";import n from"@alphakits/icons/dist/SearchM";import t from"classnames";var l={input:"index-module_input__3hqk_",block:"index-module_block__2qCsa",s:"index-module_s__2n4yx",m:"index-module_m__1pT-G",leftAddons:"index-module_leftAddons__1PuzC"},o=function(o){var a,d=o.value,m=o.onChange,i=o.placeholder,r=o.leftAddons,s=o.block,c=o.size,u=void 0===c?"m":c;return e.createElement("div",{className:t(l.input,l[u],(a={},a[l.block]=s,a))},e.createElement("span",{className:l.leftAddons},r||e.createElement(n,null)),e.createElement("input",{value:d,onChange:function(e){m(e.target.value)},placeholder:i,type:"text"}))};export{o as InputGhost};
@@ -1 +1 @@
1
- import{__rest as e,__assign as d}from"tslib";import o,{forwardRef as n,useRef as s}from"react";import t from"react-merge-refs";import a from"classnames";import{useFocus as m}from"../hooks/useFocus/index.js";var r={component:"index-module_component__hqvbj",text:"index-module_text__zFBAJ",withAddons:"index-module_withAddons__R-v34",focused:"index-module_focused__mZChf",primary:"index-module_primary__7QnHL",secondary:"index-module_secondary__CXgR1",default:"index-module_default__axx5g",pseudo:"index-module_pseudo__eQCgC",addons:"index-module_addons__rF1Ob",m:"index-module_m__k1NeY",s:"index-module_s__0pCnE"},l=n((function(n,l){var i,_=n.view,c=void 0===_?"default":_,u=n.pseudo,p=void 0!==u&&u,x=n.leftAddons,f=n.rightAddons,h=n.className,v=n.dataTestId,g=n.children,A=n.size,E=void 0===A?"m":A,N=e(n,["view","pseudo","leftAddons","rightAddons","className","dataTestId","children","size"]),b=s(null),w=m(b,"keyboard")[0],y={className:a(r.component,r[c],(i={},i[r.pseudo]=p,i[r.focused]=w,i[r.withAddons]=x||f,i),h),"data-test-id":v,rel:"_blank"===N.target?"noreferrer noopener":void 0};return o.createElement("a",d({},y,N,{ref:t([b,l])}),x||f?o.createElement(o.Fragment,null,x&&o.createElement("span",{className:r.addons},x),g&&o.createElement("span",null,o.createElement("span",{className:a(r.text,r[E])},g)),f&&o.createElement("span",{className:r.addons},f)):o.createElement("span",{className:a(r.text,r[E])},g))}));export{l as Link};
1
+ import{__rest as e,__assign as d}from"tslib";import o,{forwardRef as n,useRef as s}from"react";import t from"react-merge-refs";import a from"classnames";import{useFocus as m}from"../hooks/useFocus/index.js";var r={component:"index-module_component__mLrsz",text:"index-module_text__5dmKq",withAddons:"index-module_withAddons__2J8JN",focused:"index-module_focused__MJGFH",primary:"index-module_primary__316lS",secondary:"index-module_secondary__3Vkve",default:"index-module_default__CAkjM",pseudo:"index-module_pseudo__2IIBH",addons:"index-module_addons__Dp_3j",m:"index-module_m__RxhMn",s:"index-module_s__L8jaf"},l=n((function(n,l){var i,_=n.view,c=void 0===_?"default":_,u=n.pseudo,p=void 0!==u&&u,f=n.leftAddons,x=n.rightAddons,h=n.className,v=n.dataTestId,A=n.children,N=n.size,E=void 0===N?"m":N,g=e(n,["view","pseudo","leftAddons","rightAddons","className","dataTestId","children","size"]),k=s(null),w=m(k,"keyboard")[0],y={className:a(r.component,r[c],(i={},i[r.pseudo]=p,i[r.focused]=w,i[r.withAddons]=f||x,i),h),"data-test-id":v,rel:"_blank"===g.target?"noreferrer noopener":void 0};return o.createElement("a",d({},y,g,{ref:t([k,l])}),f||x?o.createElement(o.Fragment,null,f&&o.createElement("span",{className:r.addons},f),A&&o.createElement("span",null,o.createElement("span",{className:a(r.text,r[E])},A)),x&&o.createElement("span",{className:r.addons},x)):o.createElement("span",{className:a(r.text,r[E])},A))}));export{l as Link};
@@ -1 +1 @@
1
- import t from"react";import e from"classnames";import{Typography as o}from"../typography/component.js";import"../typography/text/component.js";import"../colors.module-e6546343.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";var n={component:"index-module_component__1zepl",accent:"index-module_accent__37BTV",attention:"index-module_attention__zzR-C",negative:"index-module_negative__SXrwC"},i=function(i){var m=i.className,r=i.dataTestId,a=i.view,p=void 0===a?"accent":a,c=i.text;return t.createElement("div",{className:e(n.component,m,n[p]),"data-test-id":r},t.createElement(o.Text,{view:"title",color:"primary",weight:"medium"},c))};export{i as ListAllert};
1
+ import t from"react";import e from"classnames";import{Typography as o}from"../typography/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";var n={component:"index-module_component__3qzuv",accent:"index-module_accent__CtavO",attention:"index-module_attention__3zvL_",negative:"index-module_negative__1wBaF"},a=function(a){var i=a.className,m=a.dataTestId,r=a.view,p=void 0===r?"accent":r,c=a.text;return t.createElement("div",{className:e(n.component,i,n[p]),"data-test-id":m},t.createElement(o.Text,{view:"title",color:"primary",weight:"medium"},c))};export{a as ListAllert};
@@ -1 +1 @@
1
- export{ListAllert}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-e6546343.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";
1
+ export{ListAllert}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";
@@ -1 +1 @@
1
- import e from"react";import c from"classnames";var t="index-module_component__Qa85p",r=function(r){var a=r.className,m=r.dataTestId;return e.createElement("svg",{height:"24",width:"24",viewBox:"0 0 24 24",className:c(t,a),"data-test-id":m},e.createElement("circle",{cx:"4",cy:"12",r:"2"}),e.createElement("circle",{cx:"12",cy:"12",r:"2"}),e.createElement("circle",{cx:"20",cy:"12",r:"2"}))};export{r as Loader};
1
+ import e from"react";import c from"classnames";var t="index-module_component__3CNRP",r=function(r){var a=r.className,m=r.dataTestId;return e.createElement("svg",{height:"24",width:"24",viewBox:"0 0 24 24",className:c(t,a),"data-test-id":m},e.createElement("circle",{cx:"4",cy:"12",r:"2"}),e.createElement("circle",{cx:"12",cy:"12",r:"2"}),e.createElement("circle",{cx:"20",cy:"12",r:"2"}))};export{r as Loader};
@@ -1 +1 @@
1
- import{__rest as e,__assign as o}from"tslib";import r,{useRef as n,useState as t,useCallback as a,useEffect as u}from"react";import l from"react-merge-refs";import m from"classnames";import{createTextMaskInputElement as i}from"text-mask-core";import{Input as s}from"../input/component.js";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../form-control/component.js";var c="index-module_textHidden__dIPJL",p=" ",f=r.forwardRef((function(p,f){var d,v=p.mask,C=p.value,h=p.defaultValue,g=p.className,k=p.onBeforeDisplay,j=p.onChange,x=p.onClear,V=e(p,["mask","value","defaultValue","className","onBeforeDisplay","onChange","onClear"]),w=n(null),N=n(null),P=t(C||h||""),_=P[0],b=P[1],y=t(!0),B=y[0],D=y[1],E=a((function(e){void 0===e&&(e=""),N.current&&w.current&&(N.current.update(e),b(w.current.value))}),[]),F=a((function(e){E(e.target.value),j&&j(e,{value:e.target.value})}),[j,E]),H=a((function(e){E(""),x&&x(e)}),[x,E]);return u((function(){w.current&&(N.current=i({mask:v,inputElement:w.current,pipe:k,guide:!1,keepCharPositions:!1,showMask:!1,placeholderChar:" ",rawValue:"",currentCaretPosition:0,previousConformedValue:""}))}),[k,v]),u((function(){E(C||h)}),[C,E,h]),u((function(){D(!1)}),[]),r.createElement(s,o({},V,{className:m(g,(d={},d[c]=B,d)),value:_,onChange:F,onClear:H,ref:l([f,w])}))}));export{f as MaskedInput,p as PLACEHOLDER_CHAR};
1
+ import{__rest as e,__assign as o}from"tslib";import r,{useRef as n,useState as t,useCallback as a,useEffect as u}from"react";import l from"react-merge-refs";import m from"classnames";import{createTextMaskInputElement as i}from"text-mask-core";import{Input as s}from"../input/component.js";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../form-control/component.js";var c="index-module_textHidden__1M-ha",p=" ",f=r.forwardRef((function(p,f){var d,v=p.mask,C=p.value,h=p.defaultValue,g=p.className,k=p.onBeforeDisplay,j=p.onChange,x=p.onClear,V=e(p,["mask","value","defaultValue","className","onBeforeDisplay","onChange","onClear"]),w=n(null),N=n(null),_=t(C||h||""),b=_[0],y=_[1],B=t(!0),D=B[0],E=B[1],M=a((function(e){void 0===e&&(e=""),N.current&&w.current&&(N.current.update(e),y(w.current.value))}),[]),P=a((function(e){M(e.target.value),j&&j(e,{value:e.target.value})}),[j,M]),F=a((function(e){M(""),x&&x(e)}),[x,M]);return u((function(){w.current&&(N.current=i({mask:v,inputElement:w.current,pipe:k,guide:!1,keepCharPositions:!1,showMask:!1,placeholderChar:" ",rawValue:"",currentCaretPosition:0,previousConformedValue:""}))}),[k,v]),u((function(){M(C||h)}),[C,M,h]),u((function(){E(!1)}),[]),r.createElement(s,o({},V,{className:m(g,(d={},d[c]=D,d)),value:b,onChange:P,onClear:F,ref:l([f,w])}))}));export{f as MaskedInput,p as PLACEHOLDER_CHAR};
@@ -1 +1 @@
1
- import t from"react";import e from"classnames";import{useMenu as o}from"./hooks/use-menu.js";import{ContentHeader as i}from"./components/content-header/index.js";import{MenuAvatar as n}from"./components/menu-avatar/index.js";import{MenuBackButton as r}from"./components/menu-back-button/index.js";import{MenuButtonsList as s}from"./components/menu-buttons-list/index.js";import{UserButton as m}from"./components/user-button/index.js";import"@alphakits/icons/dist/MoverS";import"../icon-button/component.js";import"tslib";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-e6546343.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../avatar/component.js";import"@alphakits/icons";import"../image/component.js";import"../skeleton/component.js";import"../use-image-render-component-d8d9cc09.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";import"@alphakits/icons/dist/NextS";import"../divider/component.js";import"./components/menu-button/index.js";import"../select/component.js";import"../select/components/arrow/component.js";import"../select/components/base-select/component.js";import"downshift";import"resize-observer";import"../__internal/utils/getDataTestId.js";import"../popover/component.js";import"react-popper";import"react-transition-group";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";import"../select/utils.js";import"../select/components/native-select/component.js";import"../select/components/field/component.js";import"../form-control/component.js";import"../select/components/optgroup/component.js";import"../select/components/option/component.js";import"../select/components/checkmark/component.js";import"../select/components/options-list/component.js";import"@alphakits/icons/dist/ClockCircleM";import"../select/components/select-search/index.js";import"../hooks/useClickOutside/index.js";import"../utils/get-service-error/index.js";import"../utils/get-service-error/is-axios-error.js";import"../utils/get-service-error/is-network-error.js";import"../toast-notifier/component.js";import"../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/CloseS";import"../toast-notifier/use-timer.js";import"../input/component.js";import"react-virtual";import"intersection-observer";var p="index-module_layout_wrapper__amEhE",c="index-module_left_menu__N5dgM",a="index-module_menu_static__FNEjo",l="index-module_hidden_menu_opened__X0hFE",d="index-module_content_header__WlsJj",u="index-module_content_wrapper__6MsO6",j="index-module_content_offseted__wo5Xl",h="index-module_calendar_view__PeL0k",_=function(_){var k,f,x=_.pathname,g=_.children,v=_.routes,E=_.showBackButton,b=_.userName,w=_.userImage,C=_.userDialogOptions,y=_.profileTitle,M=_.profileImage,N=_.Link,S=_.profileOnClick,L=_.navigate,O=_.t,P=o(),T=P.staticMenu,F=P.setStaticMenu,I=P.showMenu,B=P.ref,D=T||I,W="/"+x.split("/").slice(-1)[0],X=e(c,((k={})[a]=T,k[l]=I,k)),z=e(u,((f={})[j]=T,f[h]=x.startsWith("/app/calendar"),f));return t.createElement("div",{className:e(p)},t.createElement("div",{ref:B,className:X},t.createElement(n,{title:y,showTitle:D,image:M,onClick:S}),E&&t.createElement(r,{showTitle:D,onClick:function(){return L("/app/calendar")}}),t.createElement(s,{routes:v,showLabels:D,currentPath:W,Link:N,t:O})),t.createElement("div",{className:z},t.createElement("div",{className:d},t.createElement(i,{onClick:function(){return F(!T)},title:O("menu."+W)}),t.createElement(m,{photo:w,fullName:b,options:C})),g))};export{_ as Menu};
1
+ import t from"react";import e from"classnames";import{useMenu as o}from"./hooks/use-menu.js";import{ContentHeader as i}from"./components/content-header/index.js";import{MenuAvatar as n}from"./components/menu-avatar/index.js";import{MenuBackButton as r}from"./components/menu-back-button/index.js";import{MenuButtonsList as s}from"./components/menu-buttons-list/index.js";import{UserButton as m}from"./components/user-button/index.js";import"@alphakits/icons/dist/MoverS";import"../icon-button/component.js";import"tslib";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../avatar/component.js";import"@alphakits/icons";import"../image/component.js";import"../skeleton/component.js";import"../use-image-render-component-91131dbc.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";import"@alphakits/icons/dist/NextS";import"../divider/component.js";import"./components/menu-button/index.js";import"../select/component.js";import"../select/components/arrow/component.js";import"../select/components/base-select/component.js";import"downshift";import"resize-observer";import"../__internal/utils/getDataTestId.js";import"../popover/component.js";import"react-popper";import"react-transition-group";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";import"../select/utils.js";import"../select/components/native-select/component.js";import"../select/components/field/component.js";import"../form-control/component.js";import"../select/components/optgroup/component.js";import"../select/components/option/component.js";import"../select/components/checkmark/component.js";import"../select/components/options-list/component.js";import"@alphakits/icons/dist/ClockCircleM";import"../select/components/select-search/index.js";import"../hooks/useClickOutside/index.js";import"../utils/get-service-error/index.js";import"../utils/get-service-error/is-axios-error.js";import"../utils/get-service-error/is-network-error.js";import"../toast-notifier/component.js";import"../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/CloseS";import"../toast-notifier/use-timer.js";import"../input/component.js";import"react-virtual";import"intersection-observer";var p="index-module_layout_wrapper__1qu9m",c="index-module_left_menu__OxEtW",a="index-module_menu_static__3BAoW",l="index-module_hidden_menu_opened__2ygKE",u="index-module_content_header__2zi9x",d="index-module_content_wrapper__hZL3Q",j="index-module_content_offseted__8iegJ",h="index-module_calendar_view__3YA9w",_=function(_){var k,f,x=_.pathname,g=_.children,v=_.routes,b=_.showBackButton,w=_.userName,y=_.userImage,C=_.userDialogOptions,E=_.profileTitle,M=_.profileImage,N=_.Link,S=_.profileOnClick,L=_.navigate,O=_.t,T=o(),A=T.staticMenu,B=T.setStaticMenu,I=T.showMenu,P=T.ref,W=A||I,z="/"+x.split("/").slice(-1)[0],D=e(c,((k={})[a]=A,k[l]=I,k)),q=e(d,((f={})[j]=A,f[h]=x.startsWith("/app/calendar"),f));return t.createElement("div",{className:e(p)},t.createElement("div",{ref:P,className:D},t.createElement(n,{title:E,showTitle:W,image:M,onClick:S}),b&&t.createElement(r,{showTitle:W,onClick:function(){return L("/app/calendar")}}),t.createElement(s,{routes:v,showLabels:W,currentPath:z,Link:N,t:O})),t.createElement("div",{className:q},t.createElement("div",{className:u},t.createElement(i,{onClick:function(){return B(!A)},title:O("menu."+z)}),t.createElement(m,{photo:y,fullName:w,options:C})),g))};export{_ as Menu};
@@ -1 +1 @@
1
- import o from"react";import t from"@alphakits/icons/dist/MoverS";import{IconButton as e}from"../../../icon-button/component.js";import{Typography as r}from"../../../typography/component.js";import"tslib";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../typography/text/component.js";import"../../../colors.module-e6546343.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";var i="index-module_open_button__a4IKw",m=function(m){var n=m.onClick,p=m.title;return o.createElement("div",null,o.createElement(e,{size:"m",icon:t,onClick:n,className:i}),o.createElement(r.Title,{color:"primary",tag:"div",view:"xsmall",weight:"regular"},p))};export{m as ContentHeader};
1
+ import o from"react";import t from"@alphakits/icons/dist/MoverS";import{IconButton as e}from"../../../icon-button/component.js";import{Typography as r}from"../../../typography/component.js";import"tslib";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../typography/text/component.js";import"../../../colors.module-a7d0efb0.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";var i="index-module_open_button__kuNgh",m=function(m){var n=m.onClick,p=m.title;return o.createElement("div",null,o.createElement(e,{size:"m",icon:t,onClick:n,className:i}),o.createElement(r.Title,{color:"primary",tag:"div",view:"xsmall",weight:"regular"},p))};export{m as ContentHeader};
@@ -1 +1 @@
1
- export{ContentHeader}from"./content-header/index.js";export{MenuAvatar}from"./menu-avatar/index.js";export{MenuBackButton}from"./menu-back-button/index.js";export{MenuButtonsList}from"./menu-buttons-list/index.js";export{UserButton}from"./user-button/index.js";import"react";import"@alphakits/icons/dist/MoverS";import"../../icon-button/component.js";import"tslib";import"classnames";import"../../button/component.js";import"react-merge-refs";import"../../hooks/useFocus/index.js";import"../../loader/component.js";import"../../typography/component.js";import"../../typography/text/component.js";import"../../colors.module-e6546343.js";import"../../typography/title/index.js";import"../../typography/title/component.js";import"../../avatar/component.js";import"@alphakits/icons";import"../../image/component.js";import"../../skeleton/component.js";import"../../use-image-render-component-d8d9cc09.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../../spinner/component.js";import"../../image/types.js";import"../../image/utils.js";import"@alphakits/icons/dist/NextS";import"../../divider/component.js";import"./menu-button/index.js";import"../../select/component.js";import"../../select/components/arrow/component.js";import"../../select/components/base-select/component.js";import"downshift";import"resize-observer";import"../../__internal/utils/getDataTestId.js";import"../../popover/component.js";import"react-popper";import"react-transition-group";import"../../portal/component.js";import"react-dom";import"../../portal/utils.js";import"../../stack/context.js";import"../../stack/component.js";import"../../select/utils.js";import"../../select/components/native-select/component.js";import"../../select/components/field/component.js";import"../../form-control/component.js";import"../../select/components/optgroup/component.js";import"../../select/components/option/component.js";import"../../select/components/checkmark/component.js";import"../../select/components/options-list/component.js";import"@alphakits/icons/dist/ClockCircleM";import"../../select/components/select-search/index.js";import"../../hooks/useClickOutside/index.js";import"../../utils/get-service-error/index.js";import"../../utils/get-service-error/is-axios-error.js";import"../../utils/get-service-error/is-network-error.js";import"../../toast-notifier/component.js";import"../../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/CloseS";import"../../toast-notifier/use-timer.js";import"../../input/component.js";import"react-virtual";import"intersection-observer";
1
+ export{ContentHeader}from"./content-header/index.js";export{MenuAvatar}from"./menu-avatar/index.js";export{MenuBackButton}from"./menu-back-button/index.js";export{MenuButtonsList}from"./menu-buttons-list/index.js";export{UserButton}from"./user-button/index.js";import"react";import"@alphakits/icons/dist/MoverS";import"../../icon-button/component.js";import"tslib";import"classnames";import"../../button/component.js";import"react-merge-refs";import"../../hooks/useFocus/index.js";import"../../loader/component.js";import"../../typography/component.js";import"../../typography/text/component.js";import"../../colors.module-a7d0efb0.js";import"../../typography/title/index.js";import"../../typography/title/component.js";import"../../avatar/component.js";import"@alphakits/icons";import"../../image/component.js";import"../../skeleton/component.js";import"../../use-image-render-component-91131dbc.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../../spinner/component.js";import"../../image/types.js";import"../../image/utils.js";import"@alphakits/icons/dist/NextS";import"../../divider/component.js";import"./menu-button/index.js";import"../../select/component.js";import"../../select/components/arrow/component.js";import"../../select/components/base-select/component.js";import"downshift";import"resize-observer";import"../../__internal/utils/getDataTestId.js";import"../../popover/component.js";import"react-popper";import"react-transition-group";import"../../portal/component.js";import"react-dom";import"../../portal/utils.js";import"../../stack/context.js";import"../../stack/component.js";import"../../select/utils.js";import"../../select/components/native-select/component.js";import"../../select/components/field/component.js";import"../../form-control/component.js";import"../../select/components/optgroup/component.js";import"../../select/components/option/component.js";import"../../select/components/checkmark/component.js";import"../../select/components/options-list/component.js";import"@alphakits/icons/dist/ClockCircleM";import"../../select/components/select-search/index.js";import"../../hooks/useClickOutside/index.js";import"../../utils/get-service-error/index.js";import"../../utils/get-service-error/is-axios-error.js";import"../../utils/get-service-error/is-network-error.js";import"../../toast-notifier/component.js";import"../../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/CloseS";import"../../toast-notifier/use-timer.js";import"../../input/component.js";import"react-virtual";import"intersection-observer";
@@ -1 +1 @@
1
- import t from"react";import o from"classnames";import{Avatar as e}from"../../../avatar/component.js";import{Typography as i}from"../../../typography/component.js";import"@alphakits/icons";import"../../../button/component.js";import"tslib";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../image/component.js";import"../../../skeleton/component.js";import"../../../use-image-render-component-d8d9cc09.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../../../spinner/component.js";import"../../../image/types.js";import"../../../image/utils.js";import"../../../typography/text/component.js";import"../../../colors.module-e6546343.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";var m="index-module_menu_header__CELkb",r="index-module_text__RyE4x",p="index-module_hidden_text__94pZC",n=function(n){var s,a=n.showTitle,c=n.title,l=n.image,d=n.onClick;return t.createElement("div",{className:m},t.createElement(e,{onClick:function(){d&&d()},src:l,text:c}),t.createElement(i.Text,{className:o(r,(s={},s[p]=!a,s)),view:"primary-medium",weight:"bold"},c))};export{n as MenuAvatar};
1
+ import t from"react";import o from"classnames";import{Avatar as e}from"../../../avatar/component.js";import{Typography as i}from"../../../typography/component.js";import"@alphakits/icons";import"../../../button/component.js";import"tslib";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../image/component.js";import"../../../skeleton/component.js";import"../../../use-image-render-component-91131dbc.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../../../spinner/component.js";import"../../../image/types.js";import"../../../image/utils.js";import"../../../typography/text/component.js";import"../../../colors.module-a7d0efb0.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";var m="index-module_menu_header__3QeXC",r="index-module_text__3zNFW",p="index-module_hidden_text__2l2-G",n=function(n){var s,a=n.showTitle,c=n.title,l=n.image,d=n.onClick;return t.createElement("div",{className:m},t.createElement(e,{onClick:function(){d&&d()},src:l,text:c}),t.createElement(i.Text,{className:o(r,(s={},s[p]=!a,s)),view:"primary-medium",weight:"bold"},c))};export{n as MenuAvatar};
@@ -1 +1 @@
1
- import e from"react";import t from"@alphakits/icons/dist/NextS";import{Divider as n}from"../../../divider/component.js";import"classnames";var a="index-module_back_btn_wrapper__hkZkN",r="index-module_back_btn__Ak25Q",o=function(o){var m=o.showTitle,l=o.onClick;return e.createElement("div",{className:a},e.createElement("button",{onClick:l,type:"button",className:r},e.createElement("span",null,e.createElement(t,null)),m&&"Go back"),e.createElement(n,{size:"m"}))};export{o as MenuBackButton};
1
+ import e from"react";import t from"@alphakits/icons/dist/NextS";import{Divider as n}from"../../../divider/component.js";import"classnames";var a="index-module_back_btn_wrapper__2nvj-",r="index-module_back_btn__2lOeR",o=function(o){var l=o.showTitle,m=o.onClick;return e.createElement("div",{className:a},e.createElement("button",{onClick:m,type:"button",className:r},e.createElement("span",null,e.createElement(t,null)),l&&"Go back"),e.createElement(n,{size:"m"}))};export{o as MenuBackButton};
@@ -1 +1 @@
1
- import e from"react";import t from"classnames";import{Typography as o}from"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-e6546343.js";import"../../../typography/title/index.js";import"tslib";import"../../../typography/title/component.js";var m="index-module_menu_button__I-v-u",i="index-module_text__L8D-Q",r="index-module_active__1v-Nx",n="index-module_leftAddons__eaiZB",d="index-module_rightAddons__RCmVm",a="index-module_isHidden__MDpf0",l=function(l){var s,p=l.href,c=l.children,_=l.active,u=l.leftAddons,x=l.rightAddons,h=l.showLabels,v=l.Link;return e.createElement(v,{className:t(m,(s={},s[r]=_,s[a]=!h,s)),to:p},u&&e.createElement("div",{className:n},u),e.createElement(o.Text,{view:"title",weight:"medium",color:"secondary",className:i},c),x&&e.createElement("div",{className:d},x))};export{l as MenuButton};
1
+ import e from"react";import t from"classnames";import{Typography as o}from"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-a7d0efb0.js";import"../../../typography/title/index.js";import"tslib";import"../../../typography/title/component.js";var i="index-module_menu_button__1xuE3",m="index-module_text__30Pa6",r="index-module_active__KI6J2",n="index-module_leftAddons__2fpYr",d="index-module_rightAddons__30vch",a="index-module_isHidden__3-Jyt",l=function(l){var s,c=l.href,p=l.children,_=l.active,u=l.leftAddons,x=l.rightAddons,h=l.showLabels,y=l.Link;return e.createElement(y,{className:t(i,(s={},s[r]=_,s[a]=!h,s)),to:c},u&&e.createElement("div",{className:n},u),e.createElement(o.Text,{view:"title",weight:"medium",color:"secondary",className:m},p),x&&e.createElement("div",{className:d},x))};export{l as MenuButton};
@@ -1 +1 @@
1
- import t from"react";import{MenuButton as e}from"../menu-button/index.js";import"classnames";import"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-e6546343.js";import"../../../typography/title/index.js";import"tslib";import"../../../typography/title/component.js";var o="index-module_component__HYQZU",r=function(r){var n=r.routes,p=r.showLabels,i=r.currentPath,m=r.t,a=r.Link;return t.createElement("div",{className:o},!!n.length&&n.map((function(o){var r="/"+o.path.split("/").slice(-1)[0];return t.createElement(e,{showLabels:p,leftAddons:o.icon,active:r===i,key:o.path,href:o.path,Link:a},m("menu."+r))})))};export{r as MenuButtonsList};
1
+ import t from"react";import{MenuButton as e}from"../menu-button/index.js";import"classnames";import"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-a7d0efb0.js";import"../../../typography/title/index.js";import"tslib";import"../../../typography/title/component.js";var o="index-module_component__17Zyb",r=function(r){var n=r.routes,p=r.showLabels,i=r.currentPath,m=r.t,a=r.Link;return t.createElement("div",{className:o},!!n.length&&n.map((function(o){var r="/"+o.path.split("/").slice(-1)[0];return t.createElement(e,{showLabels:p,leftAddons:o.icon,active:r===i,key:o.path,href:o.path,Link:a},m("menu."+r))})))};export{r as MenuButtonsList};
@@ -1 +1 @@
1
- import{__assign as o}from"tslib";import t from"react";import{Avatar as e}from"../../../avatar/component.js";import{Button as i}from"../../../button/component.js";import{Select as r}from"../../../select/component.js";import"classnames";import"../../../select/components/base-select/component.js";import"../../../form-control/component.js";import"../../../select/components/options-list/component.js";import"react-virtual";import"../../../utils/get-service-error/index.js";import"../../../toast-notifier/component.js";import"intersection-observer";import"@alphakits/icons";import"../../../image/component.js";import"../../../skeleton/component.js";import"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-e6546343.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../use-image-render-component-d8d9cc09.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../../../spinner/component.js";import"../../../image/types.js";import"../../../image/utils.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../select/components/arrow/component.js";import"../../../select/components/field/component.js";import"../../../select/utils.js";import"../../../select/components/optgroup/component.js";import"../../../select/components/option/component.js";import"../../../select/components/checkmark/component.js";import"../../../select/components/select-search/index.js";import"../../../hooks/useClickOutside/index.js";import"../../../input/component.js";import"../../../utils/get-service-error/is-axios-error.js";import"../../../utils/get-service-error/is-network-error.js";import"react-dom";import"../../../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/ClockCircleM";import"@alphakits/icons/dist/CloseS";import"../../../toast-notifier/use-timer.js";import"downshift";import"resize-observer";import"../../../__internal/utils/getDataTestId.js";import"../../../popover/component.js";import"react-popper";import"react-transition-group";import"../../../portal/component.js";import"../../../portal/utils.js";import"../../../stack/context.js";import"../../../stack/component.js";import"../../../select/components/native-select/component.js";var s="index-module_option_wrap__H32lk",p="index-module_field_avatar__qjMv6",n=t.memo((function(n){var m=n.options,c=n.fullName,a=n.photo;return t.createElement("div",{className:p},t.createElement(r,{options:m,optionsListWidth:"content",block:!1,popoverPosition:"bottom-end",selected:[],closeOnSelect:!0,optionClassName:s,Field:function(r){var s=r.innerProps;return t.createElement(i,o({},s,{view:"ghost"}),t.createElement(e,{onClick:m.length?function(){}:void 0,src:a,text:c}))}}))}));export{n as UserButton};
1
+ import{__assign as o}from"tslib";import t from"react";import{Avatar as e}from"../../../avatar/component.js";import{Button as i}from"../../../button/component.js";import{Select as r}from"../../../select/component.js";import"classnames";import"../../../select/components/base-select/component.js";import"../../../form-control/component.js";import"../../../select/components/options-list/component.js";import"react-virtual";import"../../../utils/get-service-error/index.js";import"../../../toast-notifier/component.js";import"intersection-observer";import"@alphakits/icons";import"../../../image/component.js";import"../../../skeleton/component.js";import"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-a7d0efb0.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../use-image-render-component-91131dbc.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../../../spinner/component.js";import"../../../image/types.js";import"../../../image/utils.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../select/components/arrow/component.js";import"../../../select/components/field/component.js";import"../../../select/utils.js";import"../../../select/components/optgroup/component.js";import"../../../select/components/option/component.js";import"../../../select/components/checkmark/component.js";import"../../../select/components/select-search/index.js";import"../../../hooks/useClickOutside/index.js";import"../../../input/component.js";import"../../../utils/get-service-error/is-axios-error.js";import"../../../utils/get-service-error/is-network-error.js";import"react-dom";import"../../../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/ClockCircleM";import"@alphakits/icons/dist/CloseS";import"../../../toast-notifier/use-timer.js";import"downshift";import"resize-observer";import"../../../__internal/utils/getDataTestId.js";import"../../../popover/component.js";import"react-popper";import"react-transition-group";import"../../../portal/component.js";import"../../../portal/utils.js";import"../../../stack/context.js";import"../../../stack/component.js";import"../../../select/components/native-select/component.js";var s="index-module_option_wrap__sahYD",p="index-module_field_avatar__2rJxH",n=t.memo((function(n){var m=n.options,c=n.fullName,a=n.photo;return t.createElement("div",{className:p},t.createElement(r,{options:m,optionsListWidth:"content",block:!1,popoverPosition:"bottom-end",selected:[],closeOnSelect:!0,optionClassName:s,Field:function(r){var s=r.innerProps;return t.createElement(i,o({},s,{view:"ghost"}),t.createElement(e,{onClick:m.length?function(){}:void 0,src:a,text:c}))}}))}));export{n as UserButton};
@@ -1 +1 @@
1
- export{Menu}from"./component.js";import"react";import"classnames";import"./hooks/use-menu.js";import"./components/content-header/index.js";import"@alphakits/icons/dist/MoverS";import"../icon-button/component.js";import"tslib";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-e6546343.js";import"../typography/title/index.js";import"../typography/title/component.js";import"./components/menu-avatar/index.js";import"../avatar/component.js";import"@alphakits/icons";import"../image/component.js";import"../skeleton/component.js";import"../use-image-render-component-d8d9cc09.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";import"./components/menu-back-button/index.js";import"@alphakits/icons/dist/NextS";import"../divider/component.js";import"./components/menu-buttons-list/index.js";import"./components/menu-button/index.js";import"./components/user-button/index.js";import"../select/component.js";import"../select/components/arrow/component.js";import"../select/components/base-select/component.js";import"downshift";import"resize-observer";import"../__internal/utils/getDataTestId.js";import"../popover/component.js";import"react-popper";import"react-transition-group";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";import"../select/utils.js";import"../select/components/native-select/component.js";import"../select/components/field/component.js";import"../form-control/component.js";import"../select/components/optgroup/component.js";import"../select/components/option/component.js";import"../select/components/checkmark/component.js";import"../select/components/options-list/component.js";import"@alphakits/icons/dist/ClockCircleM";import"../select/components/select-search/index.js";import"../hooks/useClickOutside/index.js";import"../utils/get-service-error/index.js";import"../utils/get-service-error/is-axios-error.js";import"../utils/get-service-error/is-network-error.js";import"../toast-notifier/component.js";import"../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/CloseS";import"../toast-notifier/use-timer.js";import"../input/component.js";import"react-virtual";import"intersection-observer";
1
+ export{Menu}from"./component.js";import"react";import"classnames";import"./hooks/use-menu.js";import"./components/content-header/index.js";import"@alphakits/icons/dist/MoverS";import"../icon-button/component.js";import"tslib";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"../typography/title/component.js";import"./components/menu-avatar/index.js";import"../avatar/component.js";import"@alphakits/icons";import"../image/component.js";import"../skeleton/component.js";import"../use-image-render-component-91131dbc.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";import"./components/menu-back-button/index.js";import"@alphakits/icons/dist/NextS";import"../divider/component.js";import"./components/menu-buttons-list/index.js";import"./components/menu-button/index.js";import"./components/user-button/index.js";import"../select/component.js";import"../select/components/arrow/component.js";import"../select/components/base-select/component.js";import"downshift";import"resize-observer";import"../__internal/utils/getDataTestId.js";import"../popover/component.js";import"react-popper";import"react-transition-group";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";import"../select/utils.js";import"../select/components/native-select/component.js";import"../select/components/field/component.js";import"../form-control/component.js";import"../select/components/optgroup/component.js";import"../select/components/option/component.js";import"../select/components/checkmark/component.js";import"../select/components/options-list/component.js";import"@alphakits/icons/dist/ClockCircleM";import"../select/components/select-search/index.js";import"../hooks/useClickOutside/index.js";import"../utils/get-service-error/index.js";import"../utils/get-service-error/is-axios-error.js";import"../utils/get-service-error/is-network-error.js";import"../toast-notifier/component.js";import"../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/CloseS";import"../toast-notifier/use-timer.js";import"../input/component.js";import"react-virtual";import"intersection-observer";
@@ -1 +1 @@
1
- import e,{useState as t}from"react";import{Button as o}from"../button/component.js";import{Flex as i}from"../flex/component.js";import{Image as r}from"../image/component.js";import{ImageGallery as m}from"../image-gallery/component.js";import{Padding as n}from"../padding/component.js";import{Typography as a}from"../typography/component.js";import"tslib";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../skeleton/component.js";import"../use-image-render-component-d8d9cc09.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";import"../typography/text/component.js";import"../colors.module-e6546343.js";import"../typography/title/index.js";import"../typography/title/component.js";import"react-images-viewer";var s="index-module_topRow__IFW6P",l="index-module_answer__tTLUV",p="index-module_leftSide__vZvXK",c="index-module_title__9s63W",d="index-module_rightAddons__fhvSp",u="index-module_text__U4-9Q",g=function(g){var h=g.className,v=g.dataTestId,x=g.title,f=g.date,j=g.rightAddons,_=g.answer,y=g.text,w=g.image,E=g.photos,N=void 0===E?[]:E,T=g.withImage,k=void 0===T||T,S=t(!1),b=S[0],F=S[1],I=t(0),P=I[0],z=I[1];return e.createElement("div",{"data-test-id":v,className:h},e.createElement("div",{className:s},e.createElement("div",{className:p},k&&e.createElement(r,{src:w,size:"s",text:x,view:"circle"}),e.createElement(a.Text,{color:"primary",className:c,view:"title",weight:"bold"},x),f&&e.createElement(a.Text,{view:"title",color:"secondary",weight:"regular"},f)),j&&e.createElement("div",{className:d},j)),e.createElement("div",{className:u},e.createElement(a.Text,{view:"primary-medium",color:"primary",weight:"medium"},y),!!_&&e.createElement(a.Text,{className:l,view:"primary-small",color:"secondary",weight:"medium"},_),!!N.length&&e.createElement(e.Fragment,null,e.createElement(n,{padding:"8px 0"}),e.createElement(i,{justify:"start",gap:"md"},N.map((function(t,i){return e.createElement(o,{view:"ghost",onClick:function(){z(i),F(!0)}},e.createElement(r,{src:t,size:"xl",view:"default"}))}))),e.createElement(m,{photos:N.map((function(e){return{src:e}})),initialSlide:P||0,open:b,onClose:function(){return F(!1)}}))))};export{g as Message};
1
+ import e,{useState as t}from"react";import{Button as o}from"../button/component.js";import{Flex as i}from"../flex/component.js";import{Image as r}from"../image/component.js";import{ImageGallery as m}from"../image-gallery/component.js";import{Padding as n}from"../padding/component.js";import{Typography as a}from"../typography/component.js";import"tslib";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../skeleton/component.js";import"../use-image-render-component-91131dbc.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"../typography/title/component.js";import"react-images-viewer";var s="index-module_topRow__1RF92",l="index-module_answer__xuRvB",p="index-module_leftSide__3QkAD",c="index-module_title__hNfHl",d="index-module_rightAddons__2qp_t",u="index-module_text__bFMhQ",g=function(g){var h=g.className,x=g.dataTestId,f=g.title,_=g.date,j=g.rightAddons,v=g.answer,y=g.text,w=g.image,E=g.photos,N=void 0===E?[]:E,b=g.withImage,k=void 0===b||b,T=t(!1),F=T[0],A=T[1],R=t(0),S=R[0],z=R[1];return e.createElement("div",{"data-test-id":x,className:h},e.createElement("div",{className:s},e.createElement("div",{className:p},k&&e.createElement(r,{src:w,size:"s",text:f,view:"circle"}),e.createElement(a.Text,{color:"primary",className:c,view:"title",weight:"bold"},f),_&&e.createElement(a.Text,{view:"title",color:"secondary",weight:"regular"},_)),j&&e.createElement("div",{className:d},j)),e.createElement("div",{className:u},e.createElement(a.Text,{view:"primary-medium",color:"primary",weight:"medium"},y),!!v&&e.createElement(a.Text,{className:l,view:"primary-small",color:"secondary",weight:"medium"},v),!!N.length&&e.createElement(e.Fragment,null,e.createElement(n,{padding:"8px 0"}),e.createElement(i,{justify:"start",gap:"md"},N.map((function(t,i){return e.createElement(o,{view:"ghost",onClick:function(){z(i),A(!0)}},e.createElement(r,{src:t,size:"xl",view:"default"}))}))),e.createElement(m,{photos:N.map((function(e){return{src:e}})),initialSlide:S||0,open:F,onClose:function(){return A(!1)}}))))};export{g as Message};
@@ -1 +1 @@
1
- export{Message}from"./component.js";import"react";import"../button/component.js";import"tslib";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../flex/component.js";import"../image/component.js";import"../skeleton/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-e6546343.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../use-image-render-component-d8d9cc09.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";import"../image-gallery/component.js";import"react-images-viewer";import"../padding/component.js";
1
+ export{Message}from"./component.js";import"react";import"../button/component.js";import"tslib";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../flex/component.js";import"../image/component.js";import"../skeleton/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../use-image-render-component-91131dbc.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";import"../image-gallery/component.js";import"react-images-viewer";import"../padding/component.js";
@@ -1 +1 @@
1
- import{__assign as e}from"tslib";import n,{useState as o,useLayoutEffect as t,useCallback as i,useEffect as r}from"react";import l from"classnames";import{ButtonArrow as d}from"../../../button-arrow/component.js";import"@alphakits/icons";var a="index-module_container__WE0Kf",c="index-module_content__p1kcf",s="index-module_button__js2WJ",m="index-module_doubleModal__1ZTtQ",u="index-module_inner__Zsdb4",p="index-module_right__e065r",f="index-module_bg__8ZfP-",_={s:488,m:888,full:"96%"},w=function(w){var b,v=w.modal,x=w.t,k=w.index,E=w.dirtyModals,y=w.closeModal,z=w.currentModalId,C=-_[v.props.size]-102,N=o(C),g=N[0],h=N[1];t((function(){setTimeout((function(){return h(0)}),0)}),[]);var M=i((function(e){return!E[e]||confirm(x("common:exitConfirm"))}),[E]),I=i((function(e){var n=v.id;M(e||n)&&(h(C),setTimeout((function(){v.props.closeCallback&&v.props.closeCallback(),y(e||n)}),250))}),[y,M,v,C]);return r((function(){var e=function(e){"27"!==e.key&&"Escape"!==e.key||I(z)};return v.id===z&&(null===window||void 0===window||window.addEventListener("keydown",e)),function(){null===window||void 0===window||window.removeEventListener("keydown",e)}}),[I,z,v.id]),n.createElement(n.Fragment,null,n.createElement("div",{className:a,style:{zIndex:9999998+k}},n.createElement("div",{className:l(p,c),style:{zIndex:9999999+k,width:_[v.props.size],right:g}},n.createElement("div",{className:u},n.createElement(v.modal,e({},v.props,{close:function(){return I()}})),n.createElement(d,{className:l(s,(b={},b[m]=v.props.isDouble,b)),size:"s",type:"close",onClick:function(){return I()}}))),n.createElement("button",{className:f,"aria-label":"close_backdrop",type:"button",onClick:function(){return I()}})))};export{w as Modal};
1
+ import{__assign as e}from"tslib";import n,{useState as o,useLayoutEffect as t,useCallback as i,useEffect as r}from"react";import l from"classnames";import{ButtonArrow as a}from"../../../button-arrow/component.js";import"@alphakits/icons";var d="index-module_container__3-Sa_",c="index-module_content__25aRt",s="index-module_button__3SwCL",m="index-module_doubleModal__15LzB",u="index-module_inner__2tqZ4",p="index-module_right__35URA",_="index-module_bg__6Jwib",f={s:488,m:888,full:"96%"},w=function(w){var b,v=w.modal,x=w.t,k=w.index,E=w.dirtyModals,y=w.closeModal,z=w.currentModalId,C=-f[v.props.size]-102,N=o(C),g=N[0],h=N[1];t((function(){setTimeout((function(){return h(0)}),0)}),[]);var L=i((function(e){return!E[e]||confirm(x("common:exitConfirm"))}),[E]),M=i((function(e){var n=v.id;L(e||n)&&(h(C),setTimeout((function(){v.props.closeCallback&&v.props.closeCallback(),y(e||n)}),250))}),[y,L,v,C]);return r((function(){var e=function(e){"27"!==e.key&&"Escape"!==e.key||M(z)};return v.id===z&&(null===window||void 0===window||window.addEventListener("keydown",e)),function(){null===window||void 0===window||window.removeEventListener("keydown",e)}}),[M,z,v.id]),n.createElement(n.Fragment,null,n.createElement("div",{className:d,style:{zIndex:9999998+k}},n.createElement("div",{className:l(p,c),style:{zIndex:9999999+k,width:f[v.props.size],right:g}},n.createElement("div",{className:u},n.createElement(v.modal,e({},v.props,{close:function(){return M()}})),n.createElement(a,{className:l(s,(b={},b[m]=v.props.isDouble,b)),size:"s",type:"close",onClick:function(){return M()}}))),n.createElement("button",{className:_,"aria-label":"close_backdrop",type:"button",onClick:function(){return M()}})))};export{w as Modal};
@@ -1 +1 @@
1
- import{__rest as o,__assign as e}from"tslib";import t,{forwardRef as n,useRef as i,useState as s,useCallback as r,useEffect as l}from"react";import a from"react-merge-refs";import{useSwipeable as c,LEFT as u,RIGHT as m,UP as p}from"react-swipeable";import d from"classnames";import{Portal as f}from"../portal/component.js";import{ToastPlate as C}from"../toast-plate/component.js";import{useClickOutside as v}from"./utils/index.js";import"react-dom";import"../portal/utils.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/ClockCircleM";import"@alphakits/icons/dist/CloseS";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";var k="index-module_notificationComponent__khhkj",h="index-module_isVisible__snkQ9",_="index-module_isClosing__wPaVu",M="index-module_toastContent__gDwuN",j="."+k,w=n((function(n,w){var x,b=n.className,y=n.children,E=n.visible,T=n.offset,N=void 0===T?108:T,g=n.hasCloser,D=void 0===g||g,L=n.autoCloseDelay,O=void 0===L?5e3:L,P=n.onClose,S=n.onCloseTimeout,V=n.onMouseEnter,A=n.onMouseLeave,F=n.onClickOutside,Q=n.style,q=o(n,["className","children","visible","offset","hasCloser","autoCloseDelay","onClose","onCloseTimeout","onMouseEnter","onMouseLeave","onClickOutside","style"]),z=i(null),B=i(0),G=i(0),H=s(!1),I=H[0],J=H[1],K=r((function(){B.current=window.setTimeout((function(){S&&S()}),O)}),[O,S]),R=r((function(){clearTimeout(B.current)}),[]);l((function(){return function(){clearTimeout(G.current)}}),[]),l((function(){return E&&K(),function(){R()}}),[K,R,E]);var U=r((function(o){R(),V&&V(o)}),[V,R]),W=r((function(o){R(),K(),A&&A(o)}),[A,K,R]),X=r((function(o){var e=!!o.target.closest(j);F&&E&&!e&&F(o)}),[F,E]);v(z,X);var Y=c({onSwiped:function(o){var e=o.dir;P&&[u,m,p].includes(e)&&(J(!0),G.current=window.setTimeout((function(){J(!1),P()}),100))},delta:100,trackMouse:!0});return t.createElement(f,null,t.createElement("div",e({},Y),t.createElement(C,e({className:d(k,(x={},x[h]=E,x[_]=I,x),b),contentClassName:M,style:e({top:N},Q),onMouseEnter:U,onMouseLeave:W,ref:a([w,z]),role:E?"alert":void 0,hasCloser:D,onClose:P},q),y)))}));w.defaultProps={autoCloseDelay:5e3,offset:108};export{w as Notification};
1
+ import{__rest as o,__assign as e}from"tslib";import t,{forwardRef as i,useRef as n,useState as s,useCallback as r,useEffect as l}from"react";import a from"react-merge-refs";import{useSwipeable as c,LEFT as m,RIGHT as u,UP as p}from"react-swipeable";import d from"classnames";import{Portal as f}from"../portal/component.js";import{ToastPlate as C}from"../toast-plate/component.js";import{useClickOutside as v}from"./utils/index.js";import"react-dom";import"../portal/utils.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/ClockCircleM";import"@alphakits/icons/dist/CloseS";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";var k="index-module_notificationComponent__YDzix",_="index-module_isVisible__1y-6b",h="index-module_isClosing__1kAgn",M="index-module_toastContent__1EfFL",x="."+k,b=i((function(i,b){var j,y=i.className,E=i.children,w=i.visible,T=i.offset,g=void 0===T?108:T,D=i.hasCloser,L=void 0===D||D,N=i.autoCloseDelay,A=void 0===N?5e3:N,F=i.onClose,O=i.onCloseTimeout,S=i.onMouseEnter,z=i.onMouseLeave,P=i.onClickOutside,V=i.style,Y=o(i,["className","children","visible","offset","hasCloser","autoCloseDelay","onClose","onCloseTimeout","onMouseEnter","onMouseLeave","onClickOutside","style"]),q=n(null),B=n(0),G=n(0),H=s(!1),I=H[0],J=H[1],K=r((function(){B.current=window.setTimeout((function(){O&&O()}),A)}),[A,O]),Q=r((function(){clearTimeout(B.current)}),[]);l((function(){return function(){clearTimeout(G.current)}}),[]),l((function(){return w&&K(),function(){Q()}}),[K,Q,w]);var R=r((function(o){Q(),S&&S(o)}),[S,Q]),U=r((function(o){Q(),K(),z&&z(o)}),[z,K,Q]),W=r((function(o){var e=!!o.target.closest(x);P&&w&&!e&&P(o)}),[P,w]);v(q,W);var X=c({onSwiped:function(o){var e=o.dir;F&&[m,u,p].includes(e)&&(J(!0),G.current=window.setTimeout((function(){J(!1),F()}),100))},delta:100,trackMouse:!0});return t.createElement(f,null,t.createElement("div",e({},X),t.createElement(C,e({className:d(k,(j={},j[_]=w,j[h]=I,j),y),contentClassName:M,style:e({top:g},V),onMouseEnter:R,onMouseLeave:U,ref:a([b,q]),role:w?"alert":void 0,hasCloser:L,onClose:F},Y),E)))}));b.defaultProps={autoCloseDelay:5e3,offset:108};export{b as Notification};
@@ -1 +1 @@
1
- import e from"react";var a="index-module_pageContainer__GxW31",l="index-module_image__-yy-Z",r="index-module_bg__p3-N0",t=function(t){var n=t.children,i=t.color,m=t.image,c=t.imageDescription;return e.createElement("div",{style:{backgroundColor:i},className:a},m&&e.createElement("section",null,e.createElement("img",{className:l,src:m,alt:c}),e.createElement("div",{className:r})),e.createElement("div",null,n))};export{t as PageContainer};
1
+ import e from"react";var a="index-module_pageContainer__1SGLI",l="index-module_image__2Vlah",r="index-module_bg__3H4DG",t=function(t){var n=t.children,i=t.color,m=t.image,c=t.imageDescription;return e.createElement("div",{style:{backgroundColor:i},className:a},m&&e.createElement("section",null,e.createElement("img",{className:l,src:m,alt:c}),e.createElement("div",{className:r})),e.createElement("div",null,n))};export{t as PageContainer};
@@ -1 +1 @@
1
- import e from"react";import{Loader as o}from"../loader/component.js";import"classnames";var r="index-module_component__8H4iT",t=function(){return e.createElement("div",{className:r},e.createElement(o,null))};export{t as PageLoading};
1
+ import e from"react";import{Loader as t}from"../loader/component.js";import"classnames";var o="index-module_component__M4URt",r=function(){return e.createElement("div",{className:o},e.createElement(t,null))};export{r as PageLoading};
@@ -1 +1 @@
1
- import{__rest as t,__assign as o}from"tslib";import e from"react";import{Button as r}from"../button/component.js";import{FlexColumns as m}from"../flex-columns/component.js";import{Grid as n}from"../grid/component.js";import{Typography as i}from"../typography/component.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../grid/col/component.js";import"../grid/utils/index.js";import"../gutters.module-40c240ff.js";import"../grid/row/component.js";import"../typography/text/component.js";import"../colors.module-e6546343.js";import"../typography/title/index.js";import"../typography/title/component.js";var p=function(p){var s=p.children,l=p.buttons;return e.createElement(n.Row,null,e.createElement(n.Col,{width:7},e.createElement(m,{columns:1,gr:32},s)),e.createElement(n.Col,{width:4,offset:1},e.createElement(m,{columns:1,gr:16},l.map((function(m){var n=m.text,p=t(m,["text"]);return e.createElement(r,o({view:"ghost"},p),e.createElement(i.Title,{tag:"div",view:"xxsmall",color:"primary",weight:"regular"},n))})))))};export{p as PageWithControls};
1
+ import{__rest as t,__assign as o}from"tslib";import e from"react";import{Button as r}from"../button/component.js";import{FlexColumns as m}from"../flex-columns/component.js";import{Grid as n}from"../grid/component.js";import{Typography as i}from"../typography/component.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../grid/col/component.js";import"../grid/utils/index.js";import"../gutters.module-8ae90e74.js";import"../grid/row/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"../typography/title/component.js";var p=function(p){var s=p.children,l=p.buttons;return e.createElement(n.Row,null,e.createElement(n.Col,{width:7},e.createElement(m,{columns:1,gr:32},s)),e.createElement(n.Col,{width:4,offset:1},e.createElement(m,{columns:1,gr:16},l.map((function(m){var n=m.text,p=t(m,["text"]);return e.createElement(r,o({view:"ghost"},p),e.createElement(i.Title,{tag:"div",view:"xxsmall",color:"primary",weight:"regular"},n))})))))};export{p as PageWithControls};
@@ -1 +1 @@
1
- export{PageWithControls}from"./component.js";import"tslib";import"react";import"../button/component.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../flex-columns/component.js";import"../grid/component.js";import"../grid/col/component.js";import"../grid/utils/index.js";import"../gutters.module-40c240ff.js";import"../grid/row/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-e6546343.js";import"../typography/title/index.js";import"../typography/title/component.js";
1
+ export{PageWithControls}from"./component.js";import"tslib";import"react";import"../button/component.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../flex-columns/component.js";import"../grid/component.js";import"../grid/col/component.js";import"../grid/utils/index.js";import"../gutters.module-8ae90e74.js";import"../grid/row/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"../typography/title/component.js";
@@ -1 +1 @@
1
- export{LabeledButton}from"./labeled-button/index.js";import"react";import"classnames";import"../../typography/component.js";import"../../typography/text/component.js";import"../../colors.module-e6546343.js";import"../../typography/title/index.js";import"tslib";import"../../typography/title/component.js";
1
+ export{LabeledButton}from"./labeled-button/index.js";import"react";import"classnames";import"../../typography/component.js";import"../../typography/text/component.js";import"../../colors.module-a7d0efb0.js";import"../../typography/title/index.js";import"tslib";import"../../typography/title/component.js";
@@ -1 +1 @@
1
- import t,{forwardRef as e}from"react";import o from"classnames";import{Typography as r}from"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-e6546343.js";import"../../../typography/title/index.js";import"tslib";import"../../../typography/title/component.js";var i="index-module_wrapper__Y-b0g",m=e((function(e,m){var p=e.label,a=e.value,l=e.id,n=e.className,c=e.onClick;return t.createElement("button",{className:o(i,n),ref:m,id:l,type:"button",onClick:c},t.createElement(r.Text,{view:"caps",weight:"medium",color:"tertiary"},p),t.createElement(r.Text,{view:"title",weight:"medium",color:"primary"},a))}));export{m as LabeledButton};
1
+ import t,{forwardRef as e}from"react";import o from"classnames";import{Typography as r}from"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-a7d0efb0.js";import"../../../typography/title/index.js";import"tslib";import"../../../typography/title/component.js";var i="index-module_wrapper__33gwN",m=e((function(e,m){var p=e.label,a=e.value,l=e.id,n=e.className,c=e.onClick;return t.createElement("button",{className:o(i,n),ref:m,id:l,type:"button",onClick:c},t.createElement(r.Text,{view:"caps",weight:"medium",color:"tertiary"},p),t.createElement(r.Text,{view:"title",weight:"medium",color:"primary"},a))}));export{m as LabeledButton};
@@ -8,7 +8,7 @@ type PickerButtonProps = Omit<BaseSelectProps, 'placeholder' | 'Arrow' | 'autoco
8
8
  icon?: React.ReactNode;
9
9
  fieldComponent?: 'button' | 'iconButton';
10
10
  };
11
- declare const PickerButton: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "size" | "placeholder" | "onFocus" | "hint" | "multiple" | "selected" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "fieldProps" | "Arrow"> & Pick<ButtonProps, "view" | "leftAddons" | "loading"> & {
11
+ declare const PickerButton: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "size" | "placeholder" | "onFocus" | "hint" | "selected" | "multiple" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "fieldProps" | "Arrow"> & Pick<ButtonProps, "view" | "leftAddons" | "loading"> & {
12
12
  size?: PickerButtonSize | undefined;
13
13
  icon?: React.ReactNode;
14
14
  fieldComponent?: "button" | "iconButton" | undefined;
@@ -1 +1 @@
1
- import{__rest as o,__assign as t}from"tslib";import e,{forwardRef as i}from"react";import s from"classnames";import"../select/component.js";import{BaseSelect as r}from"../select/components/base-select/component.js";import"../form-control/component.js";import{Optgroup as n}from"../select/components/optgroup/component.js";import{Option as p}from"../select/components/option/component.js";import{OptionsList as m}from"../select/components/options-list/component.js";import"react-virtual";import"../utils/get-service-error/index.js";import"../toast-notifier/component.js";import"intersection-observer";import{Field as c}from"./field/Component.js";import"../select/components/arrow/component.js";import"../select/components/field/component.js";import"../hooks/useFocus/index.js";import"../select/utils.js";import"../select/components/select-search/index.js";import"@alphakits/icons";import"../hooks/useClickOutside/index.js";import"../input/component.js";import"react-merge-refs";import"../button/component.js";import"../loader/component.js";import"../utils/get-service-error/is-axios-error.js";import"../utils/get-service-error/is-network-error.js";import"react-dom";import"../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/ClockCircleM";import"@alphakits/icons/dist/CloseS";import"../toast-notifier/use-timer.js";import"downshift";import"resize-observer";import"../__internal/utils/getDataTestId.js";import"../popover/component.js";import"react-popper";import"react-transition-group";import"../portal/component.js";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";import"../select/components/native-select/component.js";import"../skeleton/component.js";import"../select/components/checkmark/component.js";import"../icon-button/component.js";var l="index-module_container__cXs3V",a=i((function(i,a){var d=i.OptionsList,j=i.Optgroup,u=i.Option,f=i.view,k=i.loading,v=i.size,g=void 0===v?"m":v,h=i.Field,C=i.className,O=i.leftAddons,b=i.icon,x=i.fieldComponent,w=void 0===x?"button":x,z=o(i,["OptionsList","Optgroup","Option","view","loading","size","Field","className","leftAddons","icon","fieldComponent"]);return e.createElement(r,t({},z,{ref:a,Option:u||p,Field:h||c,size:"m"===g?"m":"s",fieldProps:{view:f,loading:k,buttonSize:g,leftAddons:O,icon:b,fieldComponent:w},Optgroup:j||n,OptionsList:d||m,className:s(l,C),selected:[],closeOnSelect:!0}))}));export{a as PickerButton};
1
+ import{__rest as o,__assign as t}from"tslib";import e,{forwardRef as i}from"react";import s from"classnames";import"../select/component.js";import{BaseSelect as r}from"../select/components/base-select/component.js";import"../form-control/component.js";import{Optgroup as n}from"../select/components/optgroup/component.js";import{Option as p}from"../select/components/option/component.js";import{OptionsList as m}from"../select/components/options-list/component.js";import"react-virtual";import"../utils/get-service-error/index.js";import"../toast-notifier/component.js";import"intersection-observer";import{Field as c}from"./field/Component.js";import"../select/components/arrow/component.js";import"../select/components/field/component.js";import"../hooks/useFocus/index.js";import"../select/utils.js";import"../select/components/select-search/index.js";import"@alphakits/icons";import"../hooks/useClickOutside/index.js";import"../input/component.js";import"react-merge-refs";import"../button/component.js";import"../loader/component.js";import"../utils/get-service-error/is-axios-error.js";import"../utils/get-service-error/is-network-error.js";import"react-dom";import"../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/ClockCircleM";import"@alphakits/icons/dist/CloseS";import"../toast-notifier/use-timer.js";import"downshift";import"resize-observer";import"../__internal/utils/getDataTestId.js";import"../popover/component.js";import"react-popper";import"react-transition-group";import"../portal/component.js";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";import"../select/components/native-select/component.js";import"../skeleton/component.js";import"../select/components/checkmark/component.js";import"../icon-button/component.js";var l="index-module_container__jEng4",a=i((function(i,a){var d=i.OptionsList,j=i.Optgroup,u=i.Option,f=i.view,k=i.loading,v=i.size,g=void 0===v?"m":v,h=i.Field,C=i.className,O=i.leftAddons,b=i.icon,x=i.fieldComponent,w=void 0===x?"button":x,z=o(i,["OptionsList","Optgroup","Option","view","loading","size","Field","className","leftAddons","icon","fieldComponent"]);return e.createElement(r,t({},z,{ref:a,Option:u||p,Field:h||c,size:"m"===g?"m":"s",fieldProps:{view:f,loading:k,buttonSize:g,leftAddons:O,icon:b,fieldComponent:w},Optgroup:j||n,OptionsList:d||m,className:s(l,C),selected:[],closeOnSelect:!0}))}));export{a as PickerButton};
@@ -1 +1 @@
1
- import{__rest as e,__assign as o}from"tslib";import n from"react";import r from"classnames";import{Button as t}from"../../button/component.js";import{IconButton as i}from"../../icon-button/component.js";import"react-merge-refs";import"../../hooks/useFocus/index.js";import"../../loader/component.js";var s={iconContainer:"index-module_iconContainer__XeDrL",open:"index-module_open__OjX8o"},l=function(l){var m=l.buttonSize,a=void 0===m?"m":m,c=l.view,p=l.label,d=l.open;l.multiple,l.rightAddons,l.Arrow;var u=l.innerProps,v=l.className;l.selected,l.selectedMultiple,l.valueRenderer;var b=l.fieldComponent,f=e(l,["buttonSize","view","label","open","multiple","rightAddons","Arrow","innerProps","className","selected","selectedMultiple","valueRenderer","fieldComponent"]),w=o(o({},f),u);return"button"===b?n.createElement(t,o({},w,{rightAddons:f.icon?n.createElement("span",{className:r(s.iconContainer,d&&s.open)},f.icon):null,block:!0,view:c,size:a,className:r(s.component,"primary"===c&&s.primary,v)}),p):n.createElement(i,o({},w,{icon:f.icon,view:"secondary"===c?"secondary":"ghost",size:"xs"===a?"s":a}))};export{l as Field};
1
+ import{__rest as e,__assign as o}from"tslib";import n from"react";import r from"classnames";import{Button as t}from"../../button/component.js";import{IconButton as i}from"../../icon-button/component.js";import"react-merge-refs";import"../../hooks/useFocus/index.js";import"../../loader/component.js";var s={iconContainer:"index-module_iconContainer__eWqdq",open:"index-module_open__1QXrX"},l=function(l){var m=l.buttonSize,a=void 0===m?"m":m,c=l.view,p=l.label,d=l.open;l.multiple,l.rightAddons,l.Arrow;var u=l.innerProps,v=l.className;l.selected,l.selectedMultiple,l.valueRenderer;var b=l.fieldComponent,f=e(l,["buttonSize","view","label","open","multiple","rightAddons","Arrow","innerProps","className","selected","selectedMultiple","valueRenderer","fieldComponent"]),w=o(o({},f),u);return"button"===b?n.createElement(t,o({},w,{rightAddons:f.icon?n.createElement("span",{className:r(s.iconContainer,d&&s.open)},f.icon):null,block:!0,view:c,size:a,className:r(s.component,"primary"===c&&s.primary,v)}),p):n.createElement(i,o({},w,{icon:f.icon,view:"secondary"===c?"secondary":"ghost",size:"xs"===a?"s":a}))};export{l as Field};
@@ -1 +1 @@
1
- export{PickerButton}from"./component.js";export{LabeledButton}from"./common/labeled-button/index.js";import"tslib";import"react";import"classnames";import"../select/component.js";import"../select/components/arrow/component.js";import"../select/components/base-select/component.js";import"react-merge-refs";import"downshift";import"resize-observer";import"../__internal/utils/getDataTestId.js";import"../popover/component.js";import"react-popper";import"react-transition-group";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";import"../select/utils.js";import"../select/components/native-select/component.js";import"../select/components/field/component.js";import"../form-control/component.js";import"../hooks/useFocus/index.js";import"../select/components/optgroup/component.js";import"../select/components/option/component.js";import"../skeleton/component.js";import"../select/components/checkmark/component.js";import"../select/components/options-list/component.js";import"@alphakits/icons/dist/ClockCircleM";import"../button/component.js";import"../loader/component.js";import"../select/components/select-search/index.js";import"@alphakits/icons";import"../hooks/useClickOutside/index.js";import"../utils/get-service-error/index.js";import"../utils/get-service-error/is-axios-error.js";import"../utils/get-service-error/is-network-error.js";import"../toast-notifier/component.js";import"../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/CloseS";import"../toast-notifier/use-timer.js";import"../input/component.js";import"react-virtual";import"intersection-observer";import"./field/Component.js";import"../icon-button/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-e6546343.js";import"../typography/title/index.js";import"../typography/title/component.js";
1
+ export{PickerButton}from"./component.js";export{LabeledButton}from"./common/labeled-button/index.js";import"tslib";import"react";import"classnames";import"../select/component.js";import"../select/components/arrow/component.js";import"../select/components/base-select/component.js";import"react-merge-refs";import"downshift";import"resize-observer";import"../__internal/utils/getDataTestId.js";import"../popover/component.js";import"react-popper";import"react-transition-group";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";import"../select/utils.js";import"../select/components/native-select/component.js";import"../select/components/field/component.js";import"../form-control/component.js";import"../hooks/useFocus/index.js";import"../select/components/optgroup/component.js";import"../select/components/option/component.js";import"../skeleton/component.js";import"../select/components/checkmark/component.js";import"../select/components/options-list/component.js";import"@alphakits/icons/dist/ClockCircleM";import"../button/component.js";import"../loader/component.js";import"../select/components/select-search/index.js";import"@alphakits/icons";import"../hooks/useClickOutside/index.js";import"../utils/get-service-error/index.js";import"../utils/get-service-error/is-axios-error.js";import"../utils/get-service-error/is-network-error.js";import"../toast-notifier/component.js";import"../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/CloseS";import"../toast-notifier/use-timer.js";import"../input/component.js";import"react-virtual";import"intersection-observer";import"./field/Component.js";import"../icon-button/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"../typography/title/component.js";
@@ -1 +1 @@
1
- import{__assign as e}from"tslib";import t,{useState as o,useCallback as n,useEffect as r}from"react";import{usePopper as i}from"react-popper";import{CSSTransition as a}from"react-transition-group";import m from"classnames";import{Portal as s}from"../portal/component.js";import{stackingOrder as c}from"../stack/context.js";import{Stack as l}from"../stack/component.js";import"react-dom";import"../portal/utils.js";var p={component:"index-module_component__M4dAZ",arrow:"index-module_arrow__rhviH",enter:"index-module_enter__3MWR1",enterActive:"index-module_enterActive__pPMD0",exit:"index-module_exit__4hKAj",exitActive:"index-module_exitActive__vWe9J"},d={timeout:150},u={enter:p.enter,enterActive:p.enterActive,exit:p.exit,exitActive:p.exitActive},f=function(f){var v=f.children,x=f.getPortalContainer,_=f.transition,A=void 0===_?d:_,w=f.anchorElement,E=f.offset,h=void 0===E?[0,0]:E,N=f.withArrow,P=void 0!==N&&N,j=f.withTransition,y=void 0===j||j,C=f.position,b=void 0===C?"left":C,g=f.preventFlip,k=f.popperClassName,D=f.arrowClassName,I=f.className,M=f.open,O=f.dataTestId,z=f.update,R=f.transitionDuration,T=void 0===R?A.timeout+"ms":R,W=f.zIndex,F=void 0===W?c.POPOVER:W,H=o(w),J=H[0],K=H[1],V=o(null),Z=V[0],q=V[1],B=o(null),G=B[0],L=B[1],Q=n((function(){var e=[{name:"offset",options:{offset:h}}];return P&&e.push({name:"arrow",options:{element:G}}),g&&e.push({name:"flip",options:{fallbackPlacements:[]}}),e}),[h,P,g,G]),S=i(J,Z,{placement:b,modifiers:Q()}),U=S.styles,X=S.attributes,Y=S.update;r((function(){K(w)}),[w]),r((function(){Y&&Y()}),[Y,G,v]),r((function(){z&&Y&&(z.current=Y)}),[Y,z]);var $=function(o,n){return t.createElement("div",e({ref:q,style:e({zIndex:o},U.popper),"data-test-id":O,className:m(p.component,I)},X.popper),t.createElement("div",{className:m(p.inner,k),style:n},v,P&&t.createElement("div",{ref:L,style:U.arrow,className:m(p.arrow,D)})))};return t.createElement(l,{value:F},(function(o){return t.createElement(s,{getPortalContainer:x},y?t.createElement(a,e({unmountOnExit:!0,classNames:u},A,{in:M}),$(o,{transitionDuration:T})):M&&$(o))}))};export{f as Popover};
1
+ import{__assign as e}from"tslib";import t,{useState as o,useCallback as n,useEffect as r}from"react";import{usePopper as i}from"react-popper";import{CSSTransition as a}from"react-transition-group";import m from"classnames";import{Portal as s}from"../portal/component.js";import{stackingOrder as c}from"../stack/context.js";import{Stack as l}from"../stack/component.js";import"react-dom";import"../portal/utils.js";var p={component:"index-module_component__1hgdm",arrow:"index-module_arrow__2_UGW",enter:"index-module_enter__Red0x",enterActive:"index-module_enterActive__1Fy-k",exit:"index-module_exit__2r-P9",exitActive:"index-module_exitActive__2NLCT"},d={timeout:150},u={enter:p.enter,enterActive:p.enterActive,exit:p.exit,exitActive:p.exitActive},f=function(f){var v=f.children,x=f.getPortalContainer,_=f.transition,w=void 0===_?d:_,A=f.anchorElement,E=f.offset,N=void 0===E?[0,0]:E,h=f.withArrow,P=void 0!==h&&h,y=f.withTransition,C=void 0===y||y,g=f.position,j=void 0===g?"left":g,k=f.preventFlip,b=f.popperClassName,I=f.arrowClassName,O=f.className,T=f.open,z=f.dataTestId,D=f.update,F=f.transitionDuration,R=void 0===F?w.timeout+"ms":F,G=f.zIndex,L=void 0===G?c.POPOVER:G,U=o(A),V=U[0],W=U[1],q=o(null),B=q[0],H=q[1],J=o(null),K=J[0],M=J[1],Q=n((function(){var e=[{name:"offset",options:{offset:N}}];return P&&e.push({name:"arrow",options:{element:K}}),k&&e.push({name:"flip",options:{fallbackPlacements:[]}}),e}),[N,P,k,K]),S=i(V,B,{placement:j,modifiers:Q()}),X=S.styles,Y=S.attributes,Z=S.update;r((function(){W(A)}),[A]),r((function(){Z&&Z()}),[Z,K,v]),r((function(){D&&Z&&(D.current=Z)}),[Z,D]);var $=function(o,n){return t.createElement("div",e({ref:H,style:e({zIndex:o},X.popper),"data-test-id":z,className:m(p.component,O)},Y.popper),t.createElement("div",{className:m(p.inner,b),style:n},v,P&&t.createElement("div",{ref:M,style:X.arrow,className:m(p.arrow,I)})))};return t.createElement(l,{value:L},(function(o){return t.createElement(s,{getPortalContainer:x},C?t.createElement(a,e({unmountOnExit:!0,classNames:u},w,{in:T}),$(o,{transitionDuration:R})):T&&$(o))}))};export{f as Popover};
@@ -1 +1 @@
1
- import e from"react";import o from"classnames";import{Typography as i}from"../typography/component.js";import"../typography/text/component.js";import"../colors.module-e6546343.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";var r={progress_bar:"index-module_progress_bar__IyWaN",block:"index-module_block__hDRE1",inner:"index-module_inner__L-nUW",indicator:"index-module_indicator__F5x4P",multicolor:"index-module_multicolor__m9mPD",_30:"index-module__30__6cywX",_60:"index-module__60__jXfAf",negative:"index-module_negative__8XFWO",positive:"index-module_positive__ikFFz",accent:"index-module_accent__zSev5",secondary:"index-module_secondary__UTeRl",warning:"index-module_warning__vYomw"},t=function(t){var m,n,l=t.value,_=void 0===l?0:l,d=t.block,a=t.renderValue,c=void 0===a||a,s=t.className,p=void 0===s?"":s,u=t.view,v=void 0===u?"multicolor":u,x=Number(_)&&Number(_)>=0?_:0;return e.createElement("div",{className:o(r.progress_bar,p,(m={},m[r.block]=d,m))},e.createElement("div",{style:{width:x+"%"},className:o(r.indicator,r[v],(n={},n[r._30]=x>=30&&"multicolor"===v,n[r._60]=x>=60&&"multicolor"===v,n))}),c&&e.createElement("div",{className:r.inner},e.createElement(i.Text,{view:"title",weight:"medium",color:"primary"},(x>100?100:x)+" %")))};export{t as ProgressBar};
1
+ import e from"react";import o from"classnames";import{Typography as i}from"../typography/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";var r={progress_bar:"index-module_progress_bar__3nlr2",block:"index-module_block__2aONS",inner:"index-module_inner__z5AVV",indicator:"index-module_indicator__2ioud",multicolor:"index-module_multicolor__1ADvJ",_30:"index-module__30__1suFf",_60:"index-module__60__3eFsq",negative:"index-module_negative__6JYfz",positive:"index-module_positive__2XpHn",accent:"index-module_accent__3ZoIe",secondary:"index-module_secondary__146J-",warning:"index-module_warning__1gFQM"},t=function(t){var n,l,m=t.value,_=void 0===m?0:m,d=t.block,a=t.renderValue,c=void 0===a||a,s=t.className,p=void 0===s?"":s,u=t.view,v=void 0===u?"multicolor":u,x=Number(_)&&Number(_)>=0?_:0;return e.createElement("div",{className:o(r.progress_bar,p,(n={},n[r.block]=d,n))},e.createElement("div",{style:{width:x+"%"},className:o(r.indicator,r[v],(l={},l[r._30]=x>=30&&"multicolor"===v,l[r._60]=x>=60&&"multicolor"===v,l))}),c&&e.createElement("div",{className:r.inner},e.createElement(i.Text,{view:"title",weight:"medium",color:"primary"},(x>100?100:x)+" %")))};export{t as ProgressBar};
@@ -1 +1 @@
1
- export{ProgressBar}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-e6546343.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";
1
+ export{ProgressBar}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";
@@ -1 +1 @@
1
- import{__rest as e,__assign as t}from"tslib";import o from"react";import{ProgressBar as r}from"../progress-bar/component.js";import{Typography as i}from"../typography/component.js";import"classnames";import"../typography/text/component.js";import"../colors.module-e6546343.js";import"../typography/title/index.js";import"../typography/title/component.js";var m="index-module_progress_index__ocqgT",a="index-module_text__xbaIJ",l=function(l){var n=l.onClick,p=l.value,s=l.title,c=l.subtitle,d=e(l,["onClick","value","title","subtitle"]);return o.createElement("button",{type:"button",onClick:n,disabled:!n,className:m},o.createElement("div",{className:a},o.createElement(i.Text,{tag:"div",view:"title",color:"primary",weight:"medium"},s),c&&o.createElement(i.Text,{tag:"div",view:"caps",color:"secondary",weight:"medium"},c)),o.createElement(r,t({value:p},d)))};export{l as ProgressIndex};
1
+ import{__rest as e,__assign as t}from"tslib";import o from"react";import{ProgressBar as r}from"../progress-bar/component.js";import{Typography as i}from"../typography/component.js";import"classnames";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"../typography/title/component.js";var m="index-module_progress_index__1G7T4",a="index-module_text__1s7bQ",l=function(l){var n=l.onClick,p=l.value,s=l.title,c=l.subtitle,d=e(l,["onClick","value","title","subtitle"]);return o.createElement("button",{type:"button",onClick:n,disabled:!n,className:m},o.createElement("div",{className:a},o.createElement(i.Text,{tag:"div",view:"title",color:"primary",weight:"medium"},s),c&&o.createElement(i.Text,{tag:"div",view:"caps",color:"secondary",weight:"medium"},c)),o.createElement(r,t({value:p},d)))};export{l as ProgressIndex};
@@ -1 +1 @@
1
- export{ProgressIndex}from"./component.js";import"tslib";import"react";import"../progress-bar/component.js";import"classnames";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-e6546343.js";import"../typography/title/index.js";import"../typography/title/component.js";
1
+ export{ProgressIndex}from"./component.js";import"tslib";import"react";import"../progress-bar/component.js";import"classnames";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"../typography/title/component.js";
@@ -1 +1 @@
1
- import{__rest as e,__assign as a}from"tslib";import d,{forwardRef as n,useRef as l}from"react";import c from"react-merge-refs";import o from"classnames";import{useFocus as t}from"../hooks/useFocus/index.js";var s={container:"index-module_container__NjKG8",checked:"index-module_checked__DggTk",disabled:"index-module_disabled__I93VR",circle:"index-module_circle__IS2Pq",label:"index-module_label__P4KpD",hint:"index-module_hint__jS9lo",focused:"index-module_focused__uweBa",m:"index-module_m__LBuKe",s:"index-module_s__IS3y5",content:"index-module_content__u8t0O",start:"index-module_start__rPJkZ",center:"index-module_center__e5lXo",addons:"index-module_addons__2cNoB",block:"index-module_block__Qhaf7"},i=n((function(n,i){var m,r=n.onChange,_=n.className,u=n.name,b=n.disabled,h=n.dataTestId,k=n.label,x=n.checked,p=n.hint,f=n.size,N=void 0===f?"m":f,g=n.align,E=void 0===g?"center":g,I=n.addons,v=n.block,j=e(n,["onChange","className","name","disabled","dataTestId","label","checked","hint","size","align","addons","block"]),y=l(null),B=t(y,"keyboard")[0];return d.createElement("label",{className:o(s.container,s[N],s[E],_,(m={},m[s.disabled]=b,m[s.checked]=x,m[s.focused]=B,m[s.block]=v,m)),ref:c([y,i])},d.createElement("input",a({type:"radio",onChange:function(e){r&&r(e,{checked:e.target.checked,name:u})},"data-test-id":h,disabled:b,checked:x,name:u},j)),d.createElement("span",{className:s.circle}),d.createElement("span",{className:s.content},d.createElement("span",{className:s.label},k),p&&d.createElement("span",{className:s.hint},p)),I&&d.createElement("span",{className:s.addons},I))}));export{i as Radio};
1
+ import{__rest as e,__assign as a}from"tslib";import n,{forwardRef as d,useRef as l}from"react";import c from"react-merge-refs";import t from"classnames";import{useFocus as o}from"../hooks/useFocus/index.js";var s={container:"index-module_container__3wj9U",checked:"index-module_checked__2THO5",disabled:"index-module_disabled__nUlq9",circle:"index-module_circle__rCfxn",label:"index-module_label__2f22f",hint:"index-module_hint__2ljb7",focused:"index-module_focused__3gAAB",m:"index-module_m__2yr-A",s:"index-module_s__YbNuM",content:"index-module_content__H6xTw",start:"index-module_start__2IMae",center:"index-module_center__2EfOb",addons:"index-module_addons__vaTct",block:"index-module_block__sXKkt"},i=d((function(d,i){var m,r=d.onChange,_=d.className,u=d.name,b=d.disabled,x=d.dataTestId,h=d.label,f=d.checked,k=d.hint,p=d.size,N=void 0===p?"m":p,g=d.align,E=void 0===g?"center":g,v=d.addons,T=d.block,C=e(d,["onChange","className","name","disabled","dataTestId","label","checked","hint","size","align","addons","block"]),j=l(null),y=o(j,"keyboard")[0];return n.createElement("label",{className:t(s.container,s[N],s[E],_,(m={},m[s.disabled]=b,m[s.checked]=f,m[s.focused]=y,m[s.block]=T,m)),ref:c([j,i])},n.createElement("input",a({type:"radio",onChange:function(e){r&&r(e,{checked:e.target.checked,name:u})},"data-test-id":x,disabled:b,checked:f,name:u},C)),n.createElement("span",{className:s.circle}),n.createElement("span",{className:s.content},n.createElement("span",{className:s.label},h),k&&n.createElement("span",{className:s.hint},k)),v&&n.createElement("span",{className:s.addons},v))}));export{i as Radio};
@@ -1 +1 @@
1
- import e from"react";import t from"classnames";import{FlexColumns as o}from"../flex-columns/component.js";import{Radio as r}from"../radio/component.js";import{Typography as n}from"../typography/component.js";import"tslib";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../typography/text/component.js";import"../colors.module-e6546343.js";import"../typography/title/index.js";import"../typography/title/component.js";var i="index-module_text__OqiF5",m="index-module_subtitle__bsdlx",a="index-module_error__UDYSU",l="index-module_buttons_wrap__6IipS",c="index-module_buttons_wrap_error__kYt2M",d="index-module_button__jxsYA",s="index-module_selected__ctGlJ",u=function(u){var p,_=u.title,g=u.subtitle,y=u.selected,v=u.data,x=void 0===v?[]:v,f=u.onChange,h=u.columns,k=void 0===h?1:h,b=u.gr,w=void 0===b?20:b,E=u.gc,j=void 0===E?20:E,T=u.dataTestId,N=u.error,C=u.view,I=void 0===C?"default":C,Y=function(e){return T?"radio_"+T+"_"+e:"radio_"+e};return e.createElement("div",null,(_||g)&&e.createElement("div",{className:i},_&&e.createElement(n.Text,{tag:"div",view:"title",color:"primary",weight:"bold"},_),g&&e.createElement(n.Text,{className:m,tag:"div",view:"caps",color:"secondary",weight:"medium"},g)),"default"===I?e.createElement(o,{columns:k,gr:w,gc:j},null==x?void 0:x.map((function(t,o){return e.createElement(r,{key:t.key+t.content,dataTestId:Y(o),onChange:function(){return f(t.key)},checked:t.key===y,label:t.content})}))):e.createElement(o,{columns:x.length,gc:0,gr:0,className:t(l,(p={},p[c]=!!N,p))},x.map((function(o){var r;return e.createElement("button",{type:"button",onClick:function(){return f(o.key)},key:o.key+o.content,className:t(d,(r={},r[s]=o.key===y,r))},e.createElement(n.Text,{view:"title",weight:"regular",color:o.key===y?"primary-inverted":"primary"},o.content))}))),!!N&&e.createElement(n.Text,{className:a,view:"caps",weight:"medium",color:"negative"},N))};export{u as RadioGroup};
1
+ import e from"react";import t from"classnames";import{FlexColumns as o}from"../flex-columns/component.js";import{Radio as r}from"../radio/component.js";import{Typography as n}from"../typography/component.js";import"tslib";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"../typography/title/component.js";var i="index-module_text__1xpOV",a="index-module_subtitle__1_nhZ",m="index-module_error__3a1A_",l="index-module_buttons_wrap__14ZXK",c="index-module_buttons_wrap_error__1Wgsl",d="index-module_button__14_DV",s="index-module_selected__3lxTQ",u=function(u){var p,_=u.title,g=u.subtitle,y=u.selected,v=u.data,x=void 0===v?[]:v,f=u.onChange,h=u.columns,k=void 0===h?1:h,b=u.gr,w=void 0===b?20:b,E=u.gc,j=void 0===E?20:E,T=u.dataTestId,N=u.error,C=u.view,I=void 0===C?"default":C,V=function(e){return T?"radio_"+T+"_"+e:"radio_"+e};return e.createElement("div",null,(_||g)&&e.createElement("div",{className:i},_&&e.createElement(n.Text,{tag:"div",view:"title",color:"primary",weight:"bold"},_),g&&e.createElement(n.Text,{className:a,tag:"div",view:"caps",color:"secondary",weight:"medium"},g)),"default"===I?e.createElement(o,{columns:k,gr:w,gc:j},null==x?void 0:x.map((function(t,o){return e.createElement(r,{key:t.key+t.content,dataTestId:V(o),onChange:function(){return f(t.key)},checked:t.key===y,label:t.content})}))):e.createElement(o,{columns:x.length,gc:0,gr:0,className:t(l,(p={},p[c]=!!N,p))},x.map((function(o){var r;return e.createElement("button",{type:"button",onClick:function(){return f(o.key)},key:o.key+o.content,className:t(d,(r={},r[s]=o.key===y,r))},e.createElement(n.Text,{view:"title",weight:"regular",color:o.key===y?"primary-inverted":"primary"},o.content))}))),!!N&&e.createElement(n.Text,{className:m,view:"caps",weight:"medium",color:"negative"},N))};export{u as RadioGroup};
@@ -1 +1 @@
1
- export{RadioGroup}from"./component.js";import"react";import"classnames";import"../flex-columns/component.js";import"../radio/component.js";import"tslib";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-e6546343.js";import"../typography/title/index.js";import"../typography/title/component.js";
1
+ export{RadioGroup}from"./component.js";import"react";import"classnames";import"../flex-columns/component.js";import"../radio/component.js";import"tslib";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"../typography/title/component.js";
@@ -1 +1 @@
1
- import e,{useState as o}from"react";import t from"@alphakits/icons/dist/ChevronDownS";import n from"classnames";import{Collapse as l}from"../collapse/component.js";import{Divider as r}from"../divider/component.js";import{FlexColumns as i}from"../flex-columns/component.js";import{IconButton as c}from"../icon-button/component.js";import{Padding as a}from"../padding/component.js";import{Radio as p}from"../radio/component.js";import{Typography as m}from"../typography/component.js";import"../isSymbol-ae03d4c3.js";import"resize-observer";import"../link/component.js";import"tslib";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../button/component.js";import"../loader/component.js";import"../typography/text/component.js";import"../colors.module-e6546343.js";import"../typography/title/index.js";import"../typography/title/component.js";var s={list_head:"index-module_list_head__jX5KV",collapse_btn:"index-module_collapse_btn__K-UQd",collapse_btn_collapsed:"index-module_collapse_btn_collapsed__won-f"},d=function(d){var u=d.parents,f=d.childs,h=d.selected,_=d.collapsable,j=d.onChange,v=[];null==u||u.forEach((function(e){var o={parent:{},childs:[],collapsed:!1};null==f||f.forEach((function(t){t.locationId===e.id&&(o.parent=e,o.childs.push(t))})),o.parent.id&&v.push(o)}));var b=o(v),E=b[0],g=b[1];return e.createElement("div",null,E.map((function(o,d){var u;return e.createElement(e.Fragment,{key:o.parent.id},e.createElement("div",{className:s.list_head},e.createElement(m.Text,{view:"title",color:"primary",weight:"medium"},o.parent.title),_&&e.createElement(c,{onClick:function(){return function(e){var o=E.map((function(o,t){return t===e&&(o.collapsed?o.collapsed=!1:o.collapsed=!0),o})),t=E.concat(o);g(t.filter((function(e,o){return t.indexOf(e)===o})))}(d)},size:"s",className:n(s.collapse_btn,(u={},u[s.collapse_btn_collapsed]=o.collapsed,u)),icon:t})),!o.collapsed&&e.createElement(a,{padding:"16px 0 0 0"}),e.createElement(l,{expanded:!o.collapsed},e.createElement("div",{className:s.content},e.createElement(i,{columns:1},o.childs.map((function(o){return e.createElement(p,{onChange:function(){return j(o.id)},checked:h===o.id,key:o.id,label:o.title})}))))),d!==(null==E?void 0:E.length)-1&&e.createElement(r,{size:"m"}))})))};export{d as RadioGroups};
1
+ import e,{useState as t}from"react";import o from"@alphakits/icons/dist/ChevronDownS";import n from"classnames";import{Collapse as l}from"../collapse/component.js";import{Divider as r}from"../divider/component.js";import{FlexColumns as i}from"../flex-columns/component.js";import{IconButton as c}from"../icon-button/component.js";import{Padding as a}from"../padding/component.js";import{Radio as p}from"../radio/component.js";import{Typography as m}from"../typography/component.js";import"../isSymbol-9701dc6b.js";import"resize-observer";import"../link/component.js";import"tslib";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../button/component.js";import"../loader/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"../typography/title/component.js";var s={list_head:"index-module_list_head__3yzFD",collapse_btn:"index-module_collapse_btn__3XWT_",collapse_btn_collapsed:"index-module_collapse_btn_collapsed__FLbh7"},d=function(d){var u=d.parents,f=d.childs,h=d.selected,_=d.collapsable,b=d.onChange,j=[];null==u||u.forEach((function(e){var t={parent:{},childs:[],collapsed:!1};null==f||f.forEach((function(o){o.locationId===e.id&&(t.parent=e,t.childs.push(o))})),t.parent.id&&j.push(t)}));var v=t(j),y=v[0],E=v[1];return e.createElement("div",null,y.map((function(t,d){var u;return e.createElement(e.Fragment,{key:t.parent.id},e.createElement("div",{className:s.list_head},e.createElement(m.Text,{view:"title",color:"primary",weight:"medium"},t.parent.title),_&&e.createElement(c,{onClick:function(){return function(e){var t=y.map((function(t,o){return o===e&&(t.collapsed?t.collapsed=!1:t.collapsed=!0),t})),o=y.concat(t);E(o.filter((function(e,t){return o.indexOf(e)===t})))}(d)},size:"s",className:n(s.collapse_btn,(u={},u[s.collapse_btn_collapsed]=t.collapsed,u)),icon:o})),!t.collapsed&&e.createElement(a,{padding:"16px 0 0 0"}),e.createElement(l,{expanded:!t.collapsed},e.createElement("div",{className:s.content},e.createElement(i,{columns:1},t.childs.map((function(t){return e.createElement(p,{onChange:function(){return b(t.id)},checked:h===t.id,key:t.id,label:t.title})}))))),d!==(null==y?void 0:y.length)-1&&e.createElement(r,{size:"m"}))})))};export{d as RadioGroups};