@alphakits/ui 1.9.0 → 1.9.1

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 (233) hide show
  1. package/dist/{_commonjsHelpers-d267b46a.js → _commonjsHelpers-0e78534c.js} +0 -0
  2. package/dist/amount/component.js +1 -1
  3. package/dist/amount/index.js +1 -1
  4. package/dist/amount-input/component.d.ts +1 -1
  5. package/dist/amount-input/component.js +1 -1
  6. package/dist/amount-input/index.js +1 -1
  7. package/dist/avatar/component.js +1 -1
  8. package/dist/avatar/index.js +1 -1
  9. package/dist/bottom-sheet/component.js +1 -1
  10. package/dist/bottom-sheet/index.js +1 -1
  11. package/dist/button/component.js +1 -1
  12. package/dist/button/index.js +1 -1
  13. package/dist/calendar/component.js +1 -1
  14. package/dist/calendar/components/days-table/component.js +1 -1
  15. package/dist/calendar/components/days-table/index.js +1 -1
  16. package/dist/calendar/components/header/index.js +1 -1
  17. package/dist/calendar/components/header//321/201omponent.js +1 -1
  18. package/dist/calendar/components/months-table/index.js +1 -1
  19. package/dist/calendar/components/months-table//321/201omponent.js +1 -1
  20. package/dist/calendar/components/select-button/index.js +1 -1
  21. package/dist/calendar/components/select-button//321/201omponent.js +1 -1
  22. package/dist/calendar/components/years-table/index.js +1 -1
  23. package/dist/calendar/components/years-table//321/201omponent.js +1 -1
  24. package/dist/calendar/index.js +1 -1
  25. package/dist/calendar-input/component.d.ts +2 -2
  26. package/dist/calendar-input/component.js +1 -1
  27. package/dist/calendar-input/index.js +1 -1
  28. package/dist/cell/base/component.js +1 -1
  29. package/dist/cell/base/index.d.ts +1 -1
  30. package/dist/cell/base/index.js +1 -1
  31. package/dist/cell/component.js +1 -1
  32. package/dist/cell/index.js +1 -1
  33. package/dist/cell/pure/component.js +1 -1
  34. package/dist/cell/pure/index.js +1 -1
  35. package/dist/checkbox/component.d.ts +1 -1
  36. package/dist/checkbox/component.js +1 -1
  37. package/dist/checkbox/index.js +1 -1
  38. package/dist/checkbox-group/component.js +1 -1
  39. package/dist/checkbox-group/index.js +1 -1
  40. package/dist/checkbox-lists/component.js +1 -1
  41. package/dist/checkbox-lists/index.js +1 -1
  42. package/dist/collapsable-row/addons.d.ts +5 -2
  43. package/dist/collapsable-row/addons.js +1 -1
  44. package/dist/collapsable-row/component.js +1 -1
  45. package/dist/collapsable-row/fixtures.d.ts +100 -0
  46. package/dist/collapsable-row/fixtures.js +1 -0
  47. package/dist/collapsable-row/index.js +1 -1
  48. package/dist/collapse/component.js +1 -1
  49. package/dist/collapse/index.js +1 -1
  50. package/dist/{colors.module-7b0287e2.js → colors.module-c3f895d0.js} +0 -0
  51. package/dist/{common.module-0cc71da9.js → common.module-5dd04192.js} +0 -0
  52. package/dist/{component-32036811.d.ts → component-6ac444c9.d.ts} +0 -0
  53. package/dist/{component-32036811.js → component-6ac444c9.js} +0 -0
  54. package/dist/{contact-block-817363ed.d.ts → contact-block-264b604a.d.ts} +0 -0
  55. package/dist/{contact-block-817363ed.js → contact-block-264b604a.js} +0 -0
  56. package/dist/copy-button/component.js +1 -1
  57. package/dist/copy-button/index.js +1 -1
  58. package/dist/date/component.js +1 -1
  59. package/dist/date/index.js +1 -1
  60. package/dist/date-switcher/component.js +1 -1
  61. package/dist/date-switcher/index.js +1 -1
  62. package/dist/footer/component.js +1 -1
  63. package/dist/footer/components/contacts-block.js +1 -1
  64. package/dist/footer/contact-block.js +1 -1
  65. package/dist/footer/index.js +1 -1
  66. package/dist/form/component.js +1 -1
  67. package/dist/form/components/form-footer/index.js +1 -1
  68. package/dist/form/components/index.js +1 -1
  69. package/dist/form/index.js +1 -1
  70. package/dist/form/templates/crud-form/index.js +1 -1
  71. package/dist/form/templates/filters-form/index.js +1 -1
  72. package/dist/form/templates/rest-form/index.js +1 -1
  73. package/dist/form/utils/get-default-values.js +1 -1
  74. package/dist/form-control/component.js +1 -1
  75. package/dist/form-control/index.js +1 -1
  76. package/dist/{formik.esm-d4d4f7ad.js → formik.esm-10e09f3e.js} +1 -1
  77. package/dist/grid/col/component.js +1 -1
  78. package/dist/grid/col/index.js +1 -1
  79. package/dist/grid/component.js +1 -1
  80. package/dist/grid/index.js +1 -1
  81. package/dist/grid/row/component.js +1 -1
  82. package/dist/grid/row/index.js +1 -1
  83. package/dist/{gutters.module-9bea6f65.js → gutters.module-93ba537d.js} +0 -0
  84. package/dist/header-search/component.js +1 -1
  85. package/dist/header-search/index.js +1 -1
  86. package/dist/heading/component.js +1 -1
  87. package/dist/heading/index.js +1 -1
  88. package/dist/hooks/index.js +1 -1
  89. package/dist/hooks/use-crud-form-requests/index.js +1 -1
  90. package/dist/hooks/use-get-one/index.js +1 -1
  91. package/dist/icon-button/component.js +1 -1
  92. package/dist/icon-button/index.js +1 -1
  93. package/dist/image/component.js +1 -1
  94. package/dist/image/index.js +1 -1
  95. package/dist/image/use-image-render-component.js +1 -1
  96. package/dist/{index-d0cb0503.js → index-3a4ce495.js} +1 -1
  97. package/dist/index.css +1 -1
  98. package/dist/info-block-header/component.js +1 -1
  99. package/dist/info-block-header/index.js +1 -1
  100. package/dist/info-block-item/component.js +1 -1
  101. package/dist/info-block-item/index.js +1 -1
  102. package/dist/input/component.d.ts +1 -1
  103. package/dist/input/component.js +1 -1
  104. package/dist/input/index.js +1 -1
  105. package/dist/{intersection-observer-2d9c8e8b.js → intersection-observer-058fe1f1.js} +0 -0
  106. package/dist/link/component.js +1 -1
  107. package/dist/link/index.js +1 -1
  108. package/dist/list-allert/component.js +1 -1
  109. package/dist/list-allert/index.js +1 -1
  110. package/dist/masked-input/component.d.ts +1 -1
  111. package/dist/masked-input/component.js +1 -1
  112. package/dist/masked-input/index.js +1 -1
  113. package/dist/message/component.js +1 -1
  114. package/dist/message/index.js +1 -1
  115. package/dist/modal/components/modals/index.js +1 -1
  116. package/dist/modal/context.js +1 -1
  117. package/dist/modal/hooks/use-modal.js +1 -1
  118. package/dist/modal/index.js +1 -1
  119. package/dist/not-found/component.js +1 -1
  120. package/dist/not-found/index.js +1 -1
  121. package/dist/notification/component.js +1 -1
  122. package/dist/notification/index.js +1 -1
  123. package/dist/{parse-query-params-e20ffa21.d.ts → parse-query-params-4cc73716.d.ts} +0 -0
  124. package/dist/{parse-query-params-e20ffa21.js → parse-query-params-4cc73716.js} +1 -1
  125. package/dist/picker-button/component.d.ts +1 -1
  126. package/dist/picker-button/component.js +1 -1
  127. package/dist/picker-button/field/Component.js +1 -1
  128. package/dist/picker-button/field/index.js +1 -1
  129. package/dist/picker-button/index.js +1 -1
  130. package/dist/popover/component.js +1 -1
  131. package/dist/popover/index.js +1 -1
  132. package/dist/progress-bar/component.js +1 -1
  133. package/dist/progress-bar/index.js +1 -1
  134. package/dist/progress-index/component.js +1 -1
  135. package/dist/progress-index/index.js +1 -1
  136. package/dist/radio/component.d.ts +1 -1
  137. package/dist/radio/component.js +1 -1
  138. package/dist/radio/index.js +1 -1
  139. package/dist/radio-group/component.js +1 -1
  140. package/dist/radio-group/index.js +1 -1
  141. package/dist/radio-groups/component.js +1 -1
  142. package/dist/radio-groups/index.js +1 -1
  143. package/dist/select/component.d.ts +1 -1
  144. package/dist/select/component.js +1 -1
  145. package/dist/select/components/base-select/component.js +1 -1
  146. package/dist/select/components/base-select/index.js +1 -1
  147. package/dist/select/components/field/component.js +1 -1
  148. package/dist/select/components/field/index.js +1 -1
  149. package/dist/select/components/index.js +1 -1
  150. package/dist/select/components/native-select/component.js +1 -1
  151. package/dist/select/components/native-select/index.js +1 -1
  152. package/dist/select/components/option/component.js +1 -1
  153. package/dist/select/components/option/index.js +1 -1
  154. package/dist/select/components/virtual-options-list/component.js +1 -1
  155. package/dist/select/components/virtual-options-list/index.js +1 -1
  156. package/dist/select/index.js +1 -1
  157. package/dist/select/presets/index.js +1 -1
  158. package/dist/select/presets/use-lazy-loading/index.js +1 -1
  159. package/dist/select/presets/use-select-with-loading/hook.js +1 -1
  160. package/dist/sidepanel-header/component.js +1 -1
  161. package/dist/sidepanel-header/index.js +1 -1
  162. package/dist/space/Item.js +1 -1
  163. package/dist/space/component.js +1 -1
  164. package/dist/space/index.js +1 -1
  165. package/dist/suffix-input/component.d.ts +1 -1
  166. package/dist/suffix-input/component.js +1 -1
  167. package/dist/suffix-input/index.js +1 -1
  168. package/dist/super-list-header/component.js +1 -1
  169. package/dist/super-list-header/index.js +1 -1
  170. package/dist/super-list-item/component.js +1 -1
  171. package/dist/super-list-item/index.js +1 -1
  172. package/dist/switch/component.d.ts +1 -1
  173. package/dist/switch/component.js +1 -1
  174. package/dist/switch/index.js +1 -1
  175. package/dist/table/columns.js +1 -1
  176. package/dist/table/component.js +1 -1
  177. package/dist/table/components/cell/component.js +1 -1
  178. package/dist/table/components/cell/index.js +1 -1
  179. package/dist/table/components/cells/index.js +1 -1
  180. package/dist/table/components/empty-list/index.js +1 -1
  181. package/dist/table/components/error/index.js +1 -1
  182. package/dist/table/components/pagination/index.js +1 -1
  183. package/dist/table/components/row/component.js +1 -1
  184. package/dist/table/components/row/index.js +1 -1
  185. package/dist/table/components/rows/index.js +1 -1
  186. package/dist/table/components/table-header/index.js +1 -1
  187. package/dist/table/hooks/use-table-data.js +1 -1
  188. package/dist/table/index.js +1 -1
  189. package/dist/table/table.js +1 -1
  190. package/dist/table/utils/add-query-param.js +1 -1
  191. package/dist/table/utils/get-query-from-url.js +1 -1
  192. package/dist/table/utils/index.d.ts +1 -1
  193. package/dist/table/utils/index.js +1 -1
  194. package/dist/table/utils/parse-query-params.js +1 -1
  195. package/dist/table/utils/query-adapter.js +1 -1
  196. package/dist/table/utils/remove-query-param.js +1 -1
  197. package/dist/table/utils/reset-query-param.js +1 -1
  198. package/dist/table-status/component.js +1 -1
  199. package/dist/table-status/index.js +1 -1
  200. package/dist/tag/component.js +1 -1
  201. package/dist/tag/index.js +1 -1
  202. package/dist/tags-list/component.js +1 -1
  203. package/dist/tags-list/index.js +1 -1
  204. package/dist/tariff-builder/component.js +1 -1
  205. package/dist/tariff-builder/index.js +1 -1
  206. package/dist/textarea/component.js +1 -1
  207. package/dist/textarea/index.js +1 -1
  208. package/dist/toast/component.d.ts +1 -1
  209. package/dist/toast/component.js +1 -1
  210. package/dist/toast/index.js +1 -1
  211. package/dist/toast-notifier/component.js +1 -1
  212. package/dist/toast-notifier/index.js +1 -1
  213. package/dist/toast-plate/component.js +1 -1
  214. package/dist/toast-plate/index.js +1 -1
  215. package/dist/tooltip/component.js +1 -1
  216. package/dist/tooltip/index.js +1 -1
  217. package/dist/{tslib.es6-2df8ff0d.js → tslib.es6-55336cb2.js} +0 -0
  218. package/dist/typography/component.js +1 -1
  219. package/dist/typography/index.js +1 -1
  220. package/dist/typography/text/component.js +1 -1
  221. package/dist/typography/text/index.js +1 -1
  222. package/dist/typography/title/component.js +1 -1
  223. package/dist/typography/title/index.js +1 -1
  224. package/dist/typography/title-responsive/component.js +1 -1
  225. package/dist/typography/title-responsive/index.js +1 -1
  226. package/dist/{use-image-render-component-1bddfbc3.d.ts → use-image-render-component-a3ce266c.d.ts} +0 -0
  227. package/dist/{use-image-render-component-1bddfbc3.js → use-image-render-component-a3ce266c.js} +0 -0
  228. package/dist/utils/index.js +1 -1
  229. package/dist/utils/show-toast/index.js +1 -1
  230. package/dist/with-suffix/component.d.ts +2 -2
  231. package/dist/with-suffix/component.js +1 -1
  232. package/dist/with-suffix/index.js +1 -1
  233. package/package.json +1 -1
@@ -1 +1 @@
1
- import{_ as o,a as t}from"../tslib.es6-2df8ff0d.js";import r from"react";import e from"classnames";import{Typography as i}from"../typography/component.js";import{formatAmount as m,AMOUNT_MAJOR_MINOR_PARTS_SEPARATOR as s,THINSP as a}from"../utils/format-amount/util.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-7b0287e2.js";import"../common.module-0cc71da9.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../utils/get-currency-symbol/util.js";import"../utils/data/currency-codes.js";import"../utils/split-amount/util.js";var c="index-module_component__2swcU",n="index-module_canceled__3PyYS",l=function(l){var p,u=l.value,d=l.currency,y=l.showMinorPart,j=void 0!==y&&y,v=l.isCanceled,f=void 0!==v&&v,h=o(l,["value","currency","showMinorPart","isCanceled"]),g=m({value:u,currency:d,showMinorPart:j}),w=g.majorPart,_=g.minorPart,x=g.currencySymbol,P=h,b=P.className,M=P.color,C=void 0===M?"secondary":M,N=P.view,S=void 0===N?"title":N,E=P.weight,T=void 0===E?"medium":E;return r.createElement(i.Text,t({},h,{view:S,weight:T,color:C,className:e(c,b,(p={},p[n]=f,p))}),w,_&&s,_,!!x&&""+a+a+x)};export{l as Amount};
1
+ import{_ as o,a as t}from"../tslib.es6-55336cb2.js";import r from"react";import e from"classnames";import{Typography as i}from"../typography/component.js";import{formatAmount as m,AMOUNT_MAJOR_MINOR_PARTS_SEPARATOR as s,THINSP as a}from"../utils/format-amount/util.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-c3f895d0.js";import"../common.module-5dd04192.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../utils/get-currency-symbol/util.js";import"../utils/data/currency-codes.js";import"../utils/split-amount/util.js";var c="index-module_component__2swcU",n="index-module_canceled__3PyYS",l=function(l){var p,u=l.value,d=l.currency,y=l.showMinorPart,j=void 0!==y&&y,v=l.isCanceled,h=void 0!==v&&v,f=o(l,["value","currency","showMinorPart","isCanceled"]),g=m({value:u,currency:d,showMinorPart:j}),w=g.majorPart,_=g.minorPart,x=g.currencySymbol,P=f,b=P.className,M=P.color,C=void 0===M?"secondary":M,N=P.view,S=void 0===N?"title":N,E=P.weight,T=void 0===E?"medium":E;return r.createElement(i.Text,t({},f,{view:S,weight:T,color:C,className:e(c,b,(p={},p[n]=h,p))}),w,_&&s,_,!!x&&""+a+a+x)};export{l as Amount};
@@ -1 +1 @@
1
- export{Amount}from"./component.js";import"../tslib.es6-2df8ff0d.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-7b0287e2.js";import"../common.module-0cc71da9.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../utils/format-amount/util.js";import"../utils/get-currency-symbol/util.js";import"../utils/data/currency-codes.js";import"../utils/split-amount/util.js";
1
+ export{Amount}from"./component.js";import"../tslib.es6-55336cb2.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-c3f895d0.js";import"../common.module-5dd04192.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../utils/format-amount/util.js";import"../utils/get-currency-symbol/util.js";import"../utils/data/currency-codes.js";import"../utils/split-amount/util.js";
@@ -14,7 +14,7 @@ type AmountInputProps = Omit<InputProps, 'value' | 'onChange' | 'type'> & {
14
14
  valueString: string;
15
15
  }) => void;
16
16
  };
17
- declare const AmountInput: React.ForwardRefExoticComponent<Pick<InputProps, "disabled" | "color" | "className" | "dataTestId" | "children" | "form" | "list" | "error" | "label" | "slot" | "style" | "title" | "pattern" | "leftAddons" | "rightAddons" | "size" | "block" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "step" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "src" | "alt" | "hint" | "required" | "fieldClassName" | "labelClassName" | "addonsClassName" | "bottomAddons" | "accept" | "autoComplete" | "capture" | "checked" | "crossOrigin" | "height" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "readOnly" | "width" | "clear" | "success" | "inputClassName" | "focusedClassName" | "filledClassName" | "onClear" | "wrapperRef"> & {
17
+ declare const AmountInput: React.ForwardRefExoticComponent<Pick<InputProps, "disabled" | "color" | "className" | "dataTestId" | "children" | "form" | "list" | "error" | "label" | "slot" | "style" | "title" | "pattern" | "leftAddons" | "rightAddons" | "size" | "block" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "step" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "required" | "fieldClassName" | "labelClassName" | "addonsClassName" | "hint" | "bottomAddons" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "crossOrigin" | "height" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "readOnly" | "src" | "width" | "clear" | "success" | "inputClassName" | "focusedClassName" | "filledClassName" | "onClear" | "wrapperRef"> & {
18
18
  value?: number | null | undefined;
19
19
  suffix?: string | undefined;
20
20
  required?: boolean | undefined;
@@ -1 +1 @@
1
- import{_ as e,a as t}from"../tslib.es6-2df8ff0d.js";import n,{forwardRef as o,useState as r,useEffect as i,useCallback as a,Fragment as l}from"react";import s from"classnames";import{Input as m}from"../input/component.js";import{formatAmount as u,THINSP as c}from"../utils/format-amount/util.js";import{withSuffix as d}from"../with-suffix/component.js";import{getAmountValueFromStr as f,getFormattedValue as p}from"./utils/index.js";import"react-merge-refs";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../form-control/component.js";import"../utils/get-currency-symbol/util.js";import"../utils/data/currency-codes.js";import"../utils/split-amount/util.js";import"../portal/component.js";import"react-dom";import"../portal/utils.js";var v={container:"index-module_container__2mhbV",minorPartAndCurrency:"index-module_minorPartAndCurrency__15-dz",bold:"index-module_bold__x8KEu",input:"index-module_input__32YSx",suffixContainer:"index-module_suffixContainer__2A0d0",filled:"index-module_filled__3OdGf"},x=d(m),_=o((function(o,m){var d,_=o.value,g=void 0===_?null:_,C=o.integerLength,h=void 0===C?9:C,j=o.suffix,N=void 0===j?"RUR":j,b=o.placeholder,E=void 0===b?"":b,y=o.bold,S=void 0===y||y,w=o.className,A=o.focusedClassName,R=o.required,q=o.dataTestId,F=o.clear,I=void 0!==F&&F,P=o.integer,T=void 0!==P&&P,U=o.onChange,L=o.onClear,$=e(o,["value","integerLength","suffix","placeholder","bold","className","focusedClassName","required","dataTestId","clear","integer","onChange","onClear"]),k=r(u({value:g,currency:"RUR"}).formatted),z=k[0],B=k[1];i((function(){return f(z,T)!==g?B(u({value:g,currency:"RUR"}).formatted):function(){}}),[g]);var G=a((function(e){B(""),L&&L(e)}),[L]),K=z.split(","),O=K[0],V=K[1];return n.createElement("div",{className:s(v.container,(d={},d[v.bold]=S,d[v.filled]=Boolean(z),d))},n.createElement(x,t({},$,{suffix:n.createElement(l,null,O,n.createElement("span",{className:v.minorPartAndCurrency},void 0!==V&&","+V,c,N)),suffixContainerClassName:v.suffixContainer,clear:I,required:R,placeholder:E,value:z,className:s(v.component,w),focusedClassName:A,inputClassName:v.input,onChange:function(e){var t=e.target,n=t.value.replace(/\s/g,"").replace(".",",");if(RegExp("(^[0-9]{1,"+h+"}(,([0-9]+)?)?$|^\\s*$)").test(n)){var o=p(n,T);if(o===z){var r=t.selectionStart;window.requestAnimationFrame((function(){t.selectionStart=r,t.selectionEnd=r}))}else{var i=t.value.split(/\.|,/),a=i[0],l=i[1],s=a.length;l&&(s+=1,s+=l.slice(0,2).length);var m=o.length-s,u=t.selectionStart+m;window.requestAnimationFrame((function(){t.selectionStart=u,t.selectionEnd=u}))}B(o),U&&U(e,{value:f(o,T),valueString:o})}else{var c=t.selectionStart-1;window.requestAnimationFrame((function(){t.selectionStart=c,t.selectionEnd=c}))}},onClear:G,dataTestId:q,ref:m})))}));export{_ as AmountInput};
1
+ import{_ as e,a as t}from"../tslib.es6-55336cb2.js";import n,{forwardRef as o,useState as r,useEffect as i,useCallback as a,Fragment as l}from"react";import s from"classnames";import{Input as m}from"../input/component.js";import{formatAmount as u,THINSP as c}from"../utils/format-amount/util.js";import{withSuffix as d}from"../with-suffix/component.js";import{getAmountValueFromStr as f,getFormattedValue as p}from"./utils/index.js";import"react-merge-refs";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../form-control/component.js";import"../utils/get-currency-symbol/util.js";import"../utils/data/currency-codes.js";import"../utils/split-amount/util.js";import"../portal/component.js";import"react-dom";import"../portal/utils.js";var v={container:"index-module_container__2mhbV",minorPartAndCurrency:"index-module_minorPartAndCurrency__15-dz",bold:"index-module_bold__x8KEu",input:"index-module_input__32YSx",suffixContainer:"index-module_suffixContainer__2A0d0",filled:"index-module_filled__3OdGf"},x=d(m),_=o((function(o,m){var d,_=o.value,g=void 0===_?null:_,C=o.integerLength,h=void 0===C?9:C,j=o.suffix,b=void 0===j?"RUR":j,N=o.placeholder,E=void 0===N?"":N,y=o.bold,S=void 0===y||y,w=o.className,A=o.focusedClassName,R=o.required,q=o.dataTestId,F=o.clear,I=void 0!==F&&F,P=o.integer,T=void 0!==P&&P,U=o.onChange,L=o.onClear,$=e(o,["value","integerLength","suffix","placeholder","bold","className","focusedClassName","required","dataTestId","clear","integer","onChange","onClear"]),k=r(u({value:g,currency:"RUR"}).formatted),z=k[0],B=k[1];i((function(){return f(z,T)!==g?B(u({value:g,currency:"RUR"}).formatted):function(){}}),[g]);var G=a((function(e){B(""),L&&L(e)}),[L]),K=z.split(","),O=K[0],V=K[1];return n.createElement("div",{className:s(v.container,(d={},d[v.bold]=S,d[v.filled]=Boolean(z),d))},n.createElement(x,t({},$,{suffix:n.createElement(l,null,O,n.createElement("span",{className:v.minorPartAndCurrency},void 0!==V&&","+V,c,b)),suffixContainerClassName:v.suffixContainer,clear:I,required:R,placeholder:E,value:z,className:s(v.component,w),focusedClassName:A,inputClassName:v.input,onChange:function(e){var t=e.target,n=t.value.replace(/\s/g,"").replace(".",",");if(RegExp("(^[0-9]{1,"+h+"}(,([0-9]+)?)?$|^\\s*$)").test(n)){var o=p(n,T);if(o===z){var r=t.selectionStart;window.requestAnimationFrame((function(){t.selectionStart=r,t.selectionEnd=r}))}else{var i=t.value.split(/\.|,/),a=i[0],l=i[1],s=a.length;l&&(s+=1,s+=l.slice(0,2).length);var m=o.length-s,u=t.selectionStart+m;window.requestAnimationFrame((function(){t.selectionStart=u,t.selectionEnd=u}))}B(o),U&&U(e,{value:f(o,T),valueString:o})}else{var c=t.selectionStart-1;window.requestAnimationFrame((function(){t.selectionStart=c,t.selectionEnd=c}))}},onClear:G,dataTestId:q,ref:m})))}));export{_ as AmountInput};
@@ -1 +1 @@
1
- export{AmountInput}from"./component.js";import"../tslib.es6-2df8ff0d.js";import"react";import"classnames";import"../input/component.js";import"react-merge-refs";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../form-control/component.js";import"../utils/format-amount/util.js";import"../utils/get-currency-symbol/util.js";import"../utils/data/currency-codes.js";import"../utils/split-amount/util.js";import"../with-suffix/component.js";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"./utils/index.js";
1
+ export{AmountInput}from"./component.js";import"../tslib.es6-55336cb2.js";import"react";import"classnames";import"../input/component.js";import"react-merge-refs";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../form-control/component.js";import"../utils/format-amount/util.js";import"../utils/get-currency-symbol/util.js";import"../utils/data/currency-codes.js";import"../utils/split-amount/util.js";import"../with-suffix/component.js";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"./utils/index.js";
@@ -1 +1 @@
1
- import o from"react";import{Button as e}from"../button/component.js";import{Image as t}from"../image/component.js";import{ImageSizes as r}from"../image/typings.js";import"../image/constants.js";import"../tslib.es6-2df8ff0d.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../skeleton/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-7b0287e2.js";import"../common.module-0cc71da9.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../use-image-render-component-1bddfbc3.js";import"alpha-cli-icons";import"../spinner/component.js";import"../image/utils.js";var m={warpper:"index-module_warpper__2dVGP",slot:"index-module_slot__3TDiF"},s=function(s){var p=s.src,i=s.text,n=s.slot,c=s.ref,a=s.onClick;return o.createElement(e,{ref:c,onClick:a,disabled:!a,className:m.wrapper,view:"ghost"},o.createElement(t,{resolution:r.xs,view:"circle",size:"s",src:p,text:i}),n&&o.createElement("div",{className:m.slot},n))};export{s as Avatar};
1
+ import o from"react";import{Button as e}from"../button/component.js";import{Image as t}from"../image/component.js";import{ImageSizes as r}from"../image/typings.js";import"../image/constants.js";import"../tslib.es6-55336cb2.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../skeleton/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-c3f895d0.js";import"../common.module-5dd04192.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../use-image-render-component-a3ce266c.js";import"alpha-cli-icons";import"../spinner/component.js";import"../image/utils.js";var m={warpper:"index-module_warpper__2dVGP",slot:"index-module_slot__3TDiF"},s=function(s){var p=s.src,i=s.text,n=s.slot,c=s.ref,a=s.onClick;return o.createElement(e,{ref:c,onClick:a,disabled:!a,className:m.wrapper,view:"ghost"},o.createElement(t,{resolution:r.xs,view:"circle",size:"s",src:p,text:i}),n&&o.createElement("div",{className:m.slot},n))};export{s as Avatar};
@@ -1 +1 @@
1
- export{Avatar}from"./component.js";import"react";import"../button/component.js";import"../tslib.es6-2df8ff0d.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../image/component.js";import"../skeleton/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-7b0287e2.js";import"../common.module-0cc71da9.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../use-image-render-component-1bddfbc3.js";import"alpha-cli-icons";import"../spinner/component.js";import"../image/typings.js";import"../image/constants.js";import"../image/utils.js";
1
+ export{Avatar}from"./component.js";import"react";import"../button/component.js";import"../tslib.es6-55336cb2.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../image/component.js";import"../skeleton/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-c3f895d0.js";import"../common.module-5dd04192.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"../use-image-render-component-a3ce266c.js";import"alpha-cli-icons";import"../spinner/component.js";import"../image/typings.js";import"../image/constants.js";import"../image/utils.js";
@@ -1,4 +1,4 @@
1
- import e from"react";import{c as t,u as n}from"../_commonjsHelpers-d267b46a.js";import{r}from"../index-d0cb0503.js";import{ChevronBackM as o}from"alpha-cli-icons";
1
+ import e from"react";import{c as t,u as n}from"../_commonjsHelpers-0e78534c.js";import{r}from"../index-3a4ce495.js";import{ChevronBackM as o}from"alpha-cli-icons";
2
2
  /*
3
3
  object-assign
4
4
  (c) Sindre Sorhus
@@ -1 +1 @@
1
- export{BottomSheet}from"./component.js";import"react";import"../_commonjsHelpers-d267b46a.js";import"../index-d0cb0503.js";import"alpha-cli-icons";
1
+ export{BottomSheet}from"./component.js";import"react";import"../_commonjsHelpers-0e78534c.js";import"../index-3a4ce495.js";import"alpha-cli-icons";
@@ -1 +1 @@
1
- import{_ as e,a as d}from"../tslib.es6-2df8ff0d.js";import o,{useRef as n}from"react";import l from"react-merge-refs";import a from"classnames";import{useFocus as r}from"../hooks/useFocus/index.js";import{Loader as t}from"../loader/component.js";var i={component:"index-module_component__3evG9",focused:"index-module_focused__1ad3i",loading:"index-module_loading__2y4OS",text:"index-module_text__1-k8W",addons:"index-module_addons__16WFC",stretchText:"index-module_stretchText__1WRNW",loader:"index-module_loader__29UAj",xs:"index-module_xs__3qlRe",iconOnly:"index-module_iconOnly__1yP2o",s:"index-module_s__12NZU",m:"index-module_m__21Y1e",l:"index-module_l__i91Wc",primary:"index-module_primary__CH1sF",secondary:"index-module_secondary__2eIxt",outlined:"index-module_outlined__3Ys--",filled:"index-module_filled__1NOTl",transparent:"index-module_transparent__1OxM9",link:"index-module_link__3GC-7",ghost:"index-module_ghost__1b8cF",block:"index-module_block__eEAno",nowrap:"index-module_nowrap__2N2mJ"},s=o.forwardRef((function(s,_){var m,c,u=s.children,x=s.view,f=void 0===x?"secondary":x,p=s.leftAddons,b=s.rightAddons,h=s.size,v=void 0===h?"m":h,g=s.block,k=void 0!==g&&g,y=s.className,N=s.dataTestId,w=s.href,E=s.loading,A=void 0!==E&&E,O=s.nowrap,T=void 0!==O&&O,F=e(s,["children","view","leftAddons","rightAddons","size","block","className","dataTestId","href","loading","nowrap"]),W=n(null),j=r(W,"keyboard")[0],C={className:a(i.component,i[f],i[v],(m={},m[i.focused]=j,m[i.block]=k,m[i.iconOnly]=!u,m[i.nowrap]=T,m[i.loading]=A,m),y),"data-test-id":N||null},I=o.createElement(o.Fragment,null,p&&o.createElement("span",{className:i.addons},p),u&&o.createElement("span",{className:a(i.text,(c={},c[i.stretchText]=!(p||b),c))},u),A&&o.createElement(t,{className:i.loader}),b&&o.createElement("span",{className:i.addons},b));if(w){var R=F.target;return o.createElement("a",d({rel:"_blank"===R?"noreferrer noopener":void 0},C,F,{href:w,ref:l([W,_])}),I)}var z=F,G=z.disabled,U=e(z,["disabled"]);return o.createElement("button",d({},C,U,{disabled:G||A,ref:l([W,_])}),I)}));export{s as Button};
1
+ import{_ as e,a as d}from"../tslib.es6-55336cb2.js";import o,{useRef as n}from"react";import l from"react-merge-refs";import a from"classnames";import{useFocus as r}from"../hooks/useFocus/index.js";import{Loader as t}from"../loader/component.js";var i={component:"index-module_component__3evG9",focused:"index-module_focused__1ad3i",loading:"index-module_loading__2y4OS",text:"index-module_text__1-k8W",addons:"index-module_addons__16WFC",stretchText:"index-module_stretchText__1WRNW",loader:"index-module_loader__29UAj",xs:"index-module_xs__3qlRe",iconOnly:"index-module_iconOnly__1yP2o",s:"index-module_s__12NZU",m:"index-module_m__21Y1e",l:"index-module_l__i91Wc",primary:"index-module_primary__CH1sF",secondary:"index-module_secondary__2eIxt",outlined:"index-module_outlined__3Ys--",filled:"index-module_filled__1NOTl",transparent:"index-module_transparent__1OxM9",link:"index-module_link__3GC-7",ghost:"index-module_ghost__1b8cF",block:"index-module_block__eEAno",nowrap:"index-module_nowrap__2N2mJ"},s=o.forwardRef((function(s,_){var m,c,u=s.children,x=s.view,f=void 0===x?"secondary":x,p=s.leftAddons,b=s.rightAddons,h=s.size,v=void 0===h?"m":h,g=s.block,k=void 0!==g&&g,y=s.className,N=s.dataTestId,w=s.href,E=s.loading,A=void 0!==E&&E,O=s.nowrap,T=void 0!==O&&O,F=e(s,["children","view","leftAddons","rightAddons","size","block","className","dataTestId","href","loading","nowrap"]),W=n(null),j=r(W,"keyboard")[0],C={className:a(i.component,i[f],i[v],(m={},m[i.focused]=j,m[i.block]=k,m[i.iconOnly]=!u,m[i.nowrap]=T,m[i.loading]=A,m),y),"data-test-id":N||null},I=o.createElement(o.Fragment,null,p&&o.createElement("span",{className:i.addons},p),u&&o.createElement("span",{className:a(i.text,(c={},c[i.stretchText]=!(p||b),c))},u),A&&o.createElement(t,{className:i.loader}),b&&o.createElement("span",{className:i.addons},b));if(w){var R=F.target;return o.createElement("a",d({rel:"_blank"===R?"noreferrer noopener":void 0},C,F,{href:w,ref:l([W,_])}),I)}var z=F,G=z.disabled,U=e(z,["disabled"]);return o.createElement("button",d({},C,U,{disabled:G||A,ref:l([W,_])}),I)}));export{s as Button};
@@ -1 +1 @@
1
- export{Button}from"./component.js";import"../tslib.es6-2df8ff0d.js";import"react";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";
1
+ export{Button}from"./component.js";import"../tslib.es6-55336cb2.js";import"react";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";
@@ -1 +1 @@
1
- import{a as e}from"../tslib.es6-2df8ff0d.js";import t,{forwardRef as o,useState as n,useMemo as r,useCallback as s}from"react";import a from"classnames";import{startOfMonth as i}from"date-fns";import{DaysTable as m}from"./components/days-table/component.js";import{Header as c}from"./components/header/сomponent.js";import{MonthsTable as l}from"./components/months-table/сomponent.js";import{YearsTable as d}from"./components/years-table/сomponent.js";import{useCalendar as u}from"./use-calendar.js";import{useDidUpdateEffect as f,monthName as h}from"./utils.js";import"react-transition-group";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../hooks/usePrevious/index.js";import"./components/select-button/сomponent.js";var p="index-module_component__36Ugf",v="index-module_container__sLbJY",g="index-module_sixWeeks__IWOT8",w=o((function(o,w){var y,M=o.className,D=o.defaultView,j=void 0===D?"days":D,x=o.selectorView,P=void 0===x?"full":x,b=o.value,k=o.month,_=o.defaultMonth,C=void 0===_?+new Date:_,E=o.minDate,N=o.maxDate,T=o.selectedFrom,Y=o.selectedTo,S=o.offDays,A=o.events,F=o.onChange,V=o.onMonthChange,I=o.t,O=void 0===I?function(e){return e}:I,W=o.dataTestId,B=n(j),J=B[0],L=B[1],R=n(!1),U=R[0],q=R[1],z=r((function(){return b?new Date(b):void 0}),[b]),G=r((function(){return i(z||C)}),[]),H=r((function(){return k?new Date(k):void 0}),[k]),K=r((function(){return E?new Date(E):void 0}),[E]),Q=r((function(){return N?new Date(N):void 0}),[N]),X=u({month:H,defaultMonth:G,view:J,minDate:K,maxDate:Q,selected:z,offDays:S,events:A,onChange:F,onMonthChange:V}),Z=X.activeMonth,$=X.weeks,ee=X.months,te=X.years,oe=X.canSetPrevMonth,ne=X.canSetNextMonth,re=X.setMonthByDate,se=X.setPrevMonth,ae=X.setNextMonth,ie=X.highlighted,me=X.getDayProps,ce=X.getMonthProps,le=X.getYearProps,de=X.getRootProps,ue=s((function(e){L(J===e?"days":e)}),[J]),fe=s((function(e){q(e>0)}),[]),he=s((function(){se()}),[se]),pe=s((function(){ae()}),[ae]),ve=s((function(){ue("months")}),[ue]),ge=s((function(){ue("years")}),[ue]);return f((function(){L("days")}),[Z]),f((function(){q(!1)}),[J]),f((function(){var e=b&&i(b);e&&e.getTime()!==Z.getTime()&&re(e)}),[b]),t.createElement("div",e({},de({ref:w}),{className:a(p,M,(y={},y[g]=6===$.length,y)),"data-test-id":W}),t.createElement(c,{month:h(Z,O("calendar.monthes",{returnObjects:!0})),year:Z.getFullYear().toString(),prevArrowVisible:oe,nextArrowVisible:ne,onPrevArrowClick:he,onNextArrowClick:pe,onMonthClick:ve,onYearClick:ge,view:P,withShadow:U}),t.createElement("div",{className:v},"days"===J&&t.createElement(m,{t:O,weeks:$,activeMonth:Z,selectedFrom:T,selectedTo:Y,getDayProps:me,highlighted:ie}),"months"===J&&t.createElement(l,{selectedMonth:Z,t:O,months:ee,getMonthProps:ce}),"years"===J&&t.createElement(d,{selectedYear:Z,years:te,getYearProps:le,onScroll:fe})))}));export{w as Calendar};
1
+ import{a as e}from"../tslib.es6-55336cb2.js";import t,{forwardRef as o,useState as n,useMemo as r,useCallback as s}from"react";import a from"classnames";import{startOfMonth as i}from"date-fns";import{DaysTable as m}from"./components/days-table/component.js";import{Header as c}from"./components/header/сomponent.js";import{MonthsTable as l}from"./components/months-table/сomponent.js";import{YearsTable as d}from"./components/years-table/сomponent.js";import{useCalendar as u}from"./use-calendar.js";import{useDidUpdateEffect as h,monthName as p}from"./utils.js";import"react-transition-group";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../hooks/usePrevious/index.js";import"./components/select-button/сomponent.js";var f="index-module_component__36Ugf",v="index-module_container__sLbJY",g="index-module_sixWeeks__IWOT8",w=o((function(o,w){var y,M=o.className,D=o.defaultView,j=void 0===D?"days":D,x=o.selectorView,b=void 0===x?"full":x,P=o.value,k=o.month,_=o.defaultMonth,C=void 0===_?+new Date:_,E=o.minDate,N=o.maxDate,T=o.selectedFrom,Y=o.selectedTo,S=o.offDays,A=o.events,F=o.onChange,V=o.onMonthChange,I=o.t,O=void 0===I?function(e){return e}:I,W=o.dataTestId,B=n(j),J=B[0],L=B[1],R=n(!1),U=R[0],q=R[1],z=r((function(){return P?new Date(P):void 0}),[P]),G=r((function(){return i(z||C)}),[]),H=r((function(){return k?new Date(k):void 0}),[k]),K=r((function(){return E?new Date(E):void 0}),[E]),Q=r((function(){return N?new Date(N):void 0}),[N]),X=u({month:H,defaultMonth:G,view:J,minDate:K,maxDate:Q,selected:z,offDays:S,events:A,onChange:F,onMonthChange:V}),Z=X.activeMonth,$=X.weeks,ee=X.months,te=X.years,oe=X.canSetPrevMonth,ne=X.canSetNextMonth,re=X.setMonthByDate,se=X.setPrevMonth,ae=X.setNextMonth,ie=X.highlighted,me=X.getDayProps,ce=X.getMonthProps,le=X.getYearProps,de=X.getRootProps,ue=s((function(e){L(J===e?"days":e)}),[J]),he=s((function(e){q(e>0)}),[]),pe=s((function(){se()}),[se]),fe=s((function(){ae()}),[ae]),ve=s((function(){ue("months")}),[ue]),ge=s((function(){ue("years")}),[ue]);return h((function(){L("days")}),[Z]),h((function(){q(!1)}),[J]),h((function(){var e=P&&i(P);e&&e.getTime()!==Z.getTime()&&re(e)}),[P]),t.createElement("div",e({},de({ref:w}),{className:a(f,M,(y={},y[g]=6===$.length,y)),"data-test-id":W}),t.createElement(c,{month:p(Z,O("calendar.monthes",{returnObjects:!0})),year:Z.getFullYear().toString(),prevArrowVisible:oe,nextArrowVisible:ne,onPrevArrowClick:pe,onNextArrowClick:fe,onMonthClick:ve,onYearClick:ge,view:b,withShadow:U}),t.createElement("div",{className:v},"days"===J&&t.createElement(m,{t:O,weeks:$,activeMonth:Z,selectedFrom:T,selectedTo:Y,getDayProps:me,highlighted:ie}),"months"===J&&t.createElement(l,{selectedMonth:Z,t:O,months:ee,getMonthProps:ce}),"years"===J&&t.createElement(d,{selectedYear:Z,years:te,getYearProps:le,onScroll:he})))}));export{w as Calendar};
@@ -1 +1 @@
1
- import{a as e}from"../../../tslib.es6-2df8ff0d.js";import t,{useRef as a,useCallback as d}from"react";import{TransitionGroup as n,CSSTransition as r}from"react-transition-group";import i from"classnames";import{startOfMonth as s,isToday as o,isEqual as l,isSameDay as m,isWithinInterval as _,isLastDayOfMonth as c}from"date-fns";import{Button as u}from"../../../button/component.js";import{usePrevious as y}from"../../../hooks/usePrevious/index.js";import{getSelectionRange as x}from"../../utils.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var g={daysTable:"index-module_daysTable__wrv0w",transitLeft:"index-module_transitLeft__3JIIQ",transitRight:"index-module_transitRight__3civn",dayName:"index-module_dayName__3GQG1",day:"index-module_day__3KsAB",event:"index-module_event__1Anlr",today:"index-module_today__3bYrp",highlighted:"index-module_highlighted__1ORAN",disabled:"index-module_disabled__2J9VX",range:"index-module_range__3KQft",selected:"index-module_selected__G9daW",rangeStart:"index-module_rangeStart__3xC4X",firstDay:"index-module_firstDay__1OgOO",lastDay:"index-module_lastDay__1MFMc",left:"index-module_left__1g9nk",daysEnter:"index-module_daysEnter__3-3QZ",daysEnterActive:"index-module_daysEnterActive__1gNQI",daysExit:"index-module_daysExit__3xHhs",daysExitActive:"index-module_daysExitActive__UbBEm",right:"index-module_right__HquKl"},f=function(f){var h=f.weeks,v=void 0===h?[]:h,E=f.activeMonth,p=void 0===E?new Date:E,b=f.highlighted,A=f.selectedFrom,D=f.selectedTo,k=f.getDayProps,N=f.t,T=a(p);T.current=p;var j=y(p),w=j&&(p<j?"right":"left"),O=x(A,D,b),Q=N("calendar.weekDays",{returnObjects:!0}),R=d((function(){return Q.map((function(e){return t.createElement("th",{className:g.dayName,key:e},e)}))}),[Q]);return t.createElement("table",{className:i(g.daysTable,w&&g[w])},t.createElement("thead",null,t.createElement("tr",null,R())),t.createElement(n,{component:null},t.createElement(r,{key:p.getTime(),timeout:300,classNames:{enter:g.daysEnter,enterActive:g.daysEnterActive,exit:g.daysExit,exitActive:g.daysExitActive}},t.createElement("tbody",null,v.map((function(a,d){return t.createElement("tr",{key:d},a.map((function(a,d){return t.createElement("td",{key:a?a.date.getTime():d},a&&function(a){var d,n=a.selected||A&&m(a.date,A)||D&&m(a.date,D),r=!n&&O&&_(a.date,O),y=1===a.date.getDate(),x=c(a.date),f=y&&r&&O&&a.date>O.start,h=x&&r&&O&&a.date<O.end,v=O&&m(a.date,O.start),E=k(a);return t.createElement(u,e({},E,{ref:function(e){s(a.date).getTime()===T.current.getTime()&&E.ref(e)},type:"button",view:"ghost",size:"xs",disabled:a.disabled,className:i(g.day,(d={},d[g.selected]=n,d[g.range]=r,d[g.rangeStart]=v,d[g.transitLeft]=f,d[g.transitRight]=h,d[g.today]=o(a.date),d[g.firstDay]=y,d[g.lastDay]=x,d[g.event]=a.event,d[g.disabled]=a.disabled,d[g.highlighted]=b&&l(a.date,b),d))}),a.date.getDate())}(a))})))}))))))};export{f as DaysTable};
1
+ import{a as e}from"../../../tslib.es6-55336cb2.js";import t,{useRef as a,useCallback as d}from"react";import{TransitionGroup as n,CSSTransition as r}from"react-transition-group";import i from"classnames";import{startOfMonth as s,isToday as o,isEqual as l,isSameDay as m,isWithinInterval as _,isLastDayOfMonth as c}from"date-fns";import{Button as u}from"../../../button/component.js";import{usePrevious as y}from"../../../hooks/usePrevious/index.js";import{getSelectionRange as x}from"../../utils.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var g={daysTable:"index-module_daysTable__wrv0w",transitLeft:"index-module_transitLeft__3JIIQ",transitRight:"index-module_transitRight__3civn",dayName:"index-module_dayName__3GQG1",day:"index-module_day__3KsAB",event:"index-module_event__1Anlr",today:"index-module_today__3bYrp",highlighted:"index-module_highlighted__1ORAN",disabled:"index-module_disabled__2J9VX",range:"index-module_range__3KQft",selected:"index-module_selected__G9daW",rangeStart:"index-module_rangeStart__3xC4X",firstDay:"index-module_firstDay__1OgOO",lastDay:"index-module_lastDay__1MFMc",left:"index-module_left__1g9nk",daysEnter:"index-module_daysEnter__3-3QZ",daysEnterActive:"index-module_daysEnterActive__1gNQI",daysExit:"index-module_daysExit__3xHhs",daysExitActive:"index-module_daysExitActive__UbBEm",right:"index-module_right__HquKl"},f=function(f){var h=f.weeks,v=void 0===h?[]:h,E=f.activeMonth,p=void 0===E?new Date:E,b=f.highlighted,A=f.selectedFrom,D=f.selectedTo,k=f.getDayProps,N=f.t,T=a(p);T.current=p;var j=y(p),w=j&&(p<j?"right":"left"),O=x(A,D,b),Q=N("calendar.weekDays",{returnObjects:!0}),R=d((function(){return Q.map((function(e){return t.createElement("th",{className:g.dayName,key:e},e)}))}),[Q]);return t.createElement("table",{className:i(g.daysTable,w&&g[w])},t.createElement("thead",null,t.createElement("tr",null,R())),t.createElement(n,{component:null},t.createElement(r,{key:p.getTime(),timeout:300,classNames:{enter:g.daysEnter,enterActive:g.daysEnterActive,exit:g.daysExit,exitActive:g.daysExitActive}},t.createElement("tbody",null,v.map((function(a,d){return t.createElement("tr",{key:d},a.map((function(a,d){return t.createElement("td",{key:a?a.date.getTime():d},a&&function(a){var d,n=a.selected||A&&m(a.date,A)||D&&m(a.date,D),r=!n&&O&&_(a.date,O),y=1===a.date.getDate(),x=c(a.date),f=y&&r&&O&&a.date>O.start,h=x&&r&&O&&a.date<O.end,v=O&&m(a.date,O.start),E=k(a);return t.createElement(u,e({},E,{ref:function(e){s(a.date).getTime()===T.current.getTime()&&E.ref(e)},type:"button",view:"ghost",size:"xs",disabled:a.disabled,className:i(g.day,(d={},d[g.selected]=n,d[g.range]=r,d[g.rangeStart]=v,d[g.transitLeft]=f,d[g.transitRight]=h,d[g.today]=o(a.date),d[g.firstDay]=y,d[g.lastDay]=x,d[g.event]=a.event,d[g.disabled]=a.disabled,d[g.highlighted]=b&&l(a.date,b),d))}),a.date.getDate())}(a))})))}))))))};export{f as DaysTable};
@@ -1 +1 @@
1
- export{DaysTable}from"./component.js";import"../../../tslib.es6-2df8ff0d.js";import"react";import"react-transition-group";import"classnames";import"date-fns";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../hooks/usePrevious/index.js";import"../../utils.js";
1
+ export{DaysTable}from"./component.js";import"../../../tslib.es6-55336cb2.js";import"react";import"react-transition-group";import"classnames";import"date-fns";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../hooks/usePrevious/index.js";import"../../utils.js";
@@ -1 +1 @@
1
- export{Header}from"./сomponent.js";import"react";import"classnames";import"../../../button/component.js";import"../../../tslib.es6-2df8ff0d.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../select-button/сomponent.js";
1
+ export{Header}from"./сomponent.js";import"react";import"classnames";import"../../../button/component.js";import"../../../tslib.es6-55336cb2.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../select-button/сomponent.js";
@@ -1 +1 @@
1
- import e from"react";import n from"classnames";import{Button as o}from"../../../button/component.js";import{SelectButton as t}from"../select-button/сomponent.js";import"../../../tslib.es6-2df8ff0d.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var a={header:"index-module_header__3t-Ge",withShadow:"index-module_withShadow__2PcxI",inner:"index-module_inner__30TaX",month:"index-module_month__C4t8t",year:"index-module_year__2Pz0b",buttonContent:"index-module_buttonContent__1oCn2",monthOnly:"index-module_monthOnly__3Y0zC",upDownIcon:"index-module_upDownIcon__17nsW",arrow:"index-module_arrow__3AWDo"},r=function(r){var l,m=r.month,i=r.year,s=r.view,c=void 0===s?"full":s,d=r.withShadow,u=r.prevArrowVisible,_=void 0===u||u,w=r.nextArrowVisible,h=void 0===w||w,p=r.onPrevArrowClick,b=r.onNextArrowClick,v=r.onMonthClick,C=r.onYearClick;return e.createElement("div",{className:n(a.header,(l={},l[a.monthOnly]="month-only"===c,l[a.withShadow]=d,l)),"aria-live":"polite"},e.createElement("div",{className:a.inner},_&&e.createElement(o,{view:"ghost",className:a.arrow,onClick:p,"aria-label":"Предыдущий месяц"}),"full"===c?e.createElement(e.Fragment,null,e.createElement(t,{view:"filled",className:n(a.button,a.month),onClick:v},e.createElement("span",{className:a.buttonContent},m,e.createElement("span",{className:a.upDownIcon}))),e.createElement(t,{view:"filled",className:n(a.button,a.year),onClick:C},e.createElement("span",{className:a.buttonContent},i,e.createElement("span",{className:a.upDownIcon})))):e.createElement("span",{className:n(a.button,a.month)},m),h&&e.createElement(o,{view:"ghost",className:a.arrow,onClick:b,"aria-label":"Следующий месяц"})))};export{r as Header};
1
+ import e from"react";import n from"classnames";import{Button as o}from"../../../button/component.js";import{SelectButton as t}from"../select-button/сomponent.js";import"../../../tslib.es6-55336cb2.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var a={header:"index-module_header__3t-Ge",withShadow:"index-module_withShadow__2PcxI",inner:"index-module_inner__30TaX",month:"index-module_month__C4t8t",year:"index-module_year__2Pz0b",buttonContent:"index-module_buttonContent__1oCn2",monthOnly:"index-module_monthOnly__3Y0zC",upDownIcon:"index-module_upDownIcon__17nsW",arrow:"index-module_arrow__3AWDo"},r=function(r){var l,m=r.month,i=r.year,s=r.view,c=void 0===s?"full":s,d=r.withShadow,u=r.prevArrowVisible,_=void 0===u||u,w=r.nextArrowVisible,h=void 0===w||w,p=r.onPrevArrowClick,b=r.onNextArrowClick,v=r.onMonthClick,C=r.onYearClick;return e.createElement("div",{className:n(a.header,(l={},l[a.monthOnly]="month-only"===c,l[a.withShadow]=d,l)),"aria-live":"polite"},e.createElement("div",{className:a.inner},_&&e.createElement(o,{view:"ghost",className:a.arrow,onClick:p,"aria-label":"Предыдущий месяц"}),"full"===c?e.createElement(e.Fragment,null,e.createElement(t,{view:"filled",className:n(a.button,a.month),onClick:v},e.createElement("span",{className:a.buttonContent},m,e.createElement("span",{className:a.upDownIcon}))),e.createElement(t,{view:"filled",className:n(a.button,a.year),onClick:C},e.createElement("span",{className:a.buttonContent},i,e.createElement("span",{className:a.upDownIcon})))):e.createElement("span",{className:n(a.button,a.month)},m),h&&e.createElement(o,{view:"ghost",className:a.arrow,onClick:b,"aria-label":"Следующий месяц"})))};export{r as Header};
@@ -1 +1 @@
1
- export{MonthsTable}from"./сomponent.js";import"../../../tslib.es6-2df8ff0d.js";import"react";import"date-fns";import"../../utils.js";import"../select-button/сomponent.js";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";
1
+ export{MonthsTable}from"./сomponent.js";import"../../../tslib.es6-55336cb2.js";import"react";import"date-fns";import"../../utils.js";import"../select-button/сomponent.js";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";
@@ -1 +1 @@
1
- import{a as e}from"../../../tslib.es6-2df8ff0d.js";import t,{useCallback as o}from"react";import{isSameMonth as r,isThisMonth as n}from"date-fns";import{monthName as m}from"../../utils.js";import{SelectButton as s}from"../select-button/сomponent.js";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var a="index-module_monthsTable__TV9qK",i="index-module_button__17dVp",d=function(d){var c=d.selectedMonth,l=d.months,p=void 0===l?[]:l,u=d.getMonthProps,f=d.t,j=o((function(e){return c&&r(c,e.date)?"selected":n(e.date)?"outlined":"default"}),[c]);return t.createElement("div",{className:a},p.map((function(o){return t.createElement(s,e({},u(o),{key:o.date.getTime(),className:i,view:j(o)}),m(o.date,f("calendar.monthes",{returnObjects:!0})))})))};export{d as MonthsTable};
1
+ import{a as e}from"../../../tslib.es6-55336cb2.js";import t,{useCallback as o}from"react";import{isSameMonth as r,isThisMonth as n}from"date-fns";import{monthName as m}from"../../utils.js";import{SelectButton as s}from"../select-button/сomponent.js";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var a="index-module_monthsTable__TV9qK",i="index-module_button__17dVp",c=function(c){var d=c.selectedMonth,l=c.months,p=void 0===l?[]:l,u=c.getMonthProps,f=c.t,b=o((function(e){return d&&r(d,e.date)?"selected":n(e.date)?"outlined":"default"}),[d]);return t.createElement("div",{className:a},p.map((function(o){return t.createElement(s,e({},u(o),{key:o.date.getTime(),className:i,view:b(o)}),m(o.date,f("calendar.monthes",{returnObjects:!0})))})))};export{c as MonthsTable};
@@ -1 +1 @@
1
- export{SelectButton}from"./сomponent.js";import"../../../tslib.es6-2df8ff0d.js";import"react";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";
1
+ export{SelectButton}from"./сomponent.js";import"../../../tslib.es6-55336cb2.js";import"react";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";
@@ -1 +1 @@
1
- import{_ as e,a as d}from"../../../tslib.es6-2df8ff0d.js";import o,{forwardRef as s}from"react";import i from"classnames";import{Button as t}from"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var l={button:"index-module_button__2Guss",disabled:"index-module_disabled__22rwG",filled:"index-module_filled__3oXk4",outlined:"index-module_outlined__2aOvU",selected:"index-module_selected__2DRa6"},a=s((function(s,a){var r,m=s.className,n=s.children,u=s.disabled,_=s.view,c=void 0===_?"default":_,f=e(s,["className","children","disabled","view"]);return o.createElement(t,d({},f,{ref:a,view:"ghost",size:"xs",disabled:u,className:i(l.button,l[c],m,(r={},r[l.disabled]=u,r))}),n)}));export{a as SelectButton};
1
+ import{_ as e,a as o}from"../../../tslib.es6-55336cb2.js";import d,{forwardRef as s}from"react";import i from"classnames";import{Button as t}from"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var l={button:"index-module_button__2Guss",disabled:"index-module_disabled__22rwG",filled:"index-module_filled__3oXk4",outlined:"index-module_outlined__2aOvU",selected:"index-module_selected__2DRa6"},a=s((function(s,a){var r,m=s.className,n=s.children,u=s.disabled,c=s.view,_=void 0===c?"default":c,b=e(s,["className","children","disabled","view"]);return d.createElement(t,o({},b,{ref:a,view:"ghost",size:"xs",disabled:u,className:i(l.button,l[_],m,(r={},r[l.disabled]=u,r))}),n)}));export{a as SelectButton};
@@ -1 +1 @@
1
- export{YearsTable}from"./сomponent.js";import"../../../tslib.es6-2df8ff0d.js";import"react";import"date-fns";import"../select-button/сomponent.js";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";
1
+ export{YearsTable}from"./сomponent.js";import"../../../tslib.es6-55336cb2.js";import"react";import"date-fns";import"../select-button/сomponent.js";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";
@@ -1 +1 @@
1
- import{a as e}from"../../../tslib.es6-2df8ff0d.js";import t,{useRef as r,useCallback as o,useLayoutEffect as n}from"react";import{isSameYear as l,isThisYear as a}from"date-fns";import{SelectButton as s}from"../select-button/сomponent.js";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var c="index-module_yearsTable__1AgBf",i="index-module_inner__3mtXH",m="index-module_button__11VGj",u=function(u){var f=u.selectedYear,d=u.years,p=void 0===d?[]:d,_=u.getYearProps,g=u.onScroll,v=r(null),b=o((function(e){return f&&l(f,e)?"selected":a(e)?"outlined":"default"}),[f]),j=o((function(e){g(e.currentTarget.scrollTop)}),[g]);return n((function(){var e=v.current,t="."+m+'[tabIndex="0"]',r=e&&e.querySelector(t);if(e&&r){var o=e.clientHeight/2-r.clientHeight/2;e.scrollTop=r.offsetTop-o,g(e.scrollTop)}}),[g,f]),t.createElement("div",{className:c,onScroll:j,ref:v},t.createElement("div",{className:i},p.map((function(r){return t.createElement(s,e({},_(r),{key:r.getFullYear(),view:b(r),className:m}),r.getFullYear())}))))};export{u as YearsTable};
1
+ import{a as e}from"../../../tslib.es6-55336cb2.js";import t,{useRef as r,useCallback as o,useLayoutEffect as n}from"react";import{isSameYear as l,isThisYear as a}from"date-fns";import{SelectButton as s}from"../select-button/сomponent.js";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var c="index-module_yearsTable__1AgBf",i="index-module_inner__3mtXH",m="index-module_button__11VGj",u=function(u){var p=u.selectedYear,d=u.years,f=void 0===d?[]:d,_=u.getYearProps,g=u.onScroll,v=r(null),b=o((function(e){return p&&l(p,e)?"selected":a(e)?"outlined":"default"}),[p]),j=o((function(e){g(e.currentTarget.scrollTop)}),[g]);return n((function(){var e=v.current,t="."+m+'[tabIndex="0"]',r=e&&e.querySelector(t);if(e&&r){var o=e.clientHeight/2-r.clientHeight/2;e.scrollTop=r.offsetTop-o,g(e.scrollTop)}}),[g,p]),t.createElement("div",{className:c,onScroll:j,ref:v},t.createElement("div",{className:i},f.map((function(r){return t.createElement(s,e({},_(r),{key:r.getFullYear(),view:b(r),className:m}),r.getFullYear())}))))};export{u as YearsTable};
@@ -1 +1 @@
1
- export{Calendar}from"./component.js";export{usePeriod}from"./use-period.js";export{useCalendar}from"./use-calendar.js";export{DAYS_IN_WEEK,MONTHS_IN_YEAR,SUNDAY_INDEX,dateInLimits,limitDate,monthName,russianWeekDay}from"./utils.js";import"../tslib.es6-2df8ff0d.js";import"react";import"classnames";import"date-fns";import"./components/days-table/component.js";import"react-transition-group";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../hooks/usePrevious/index.js";import"./components/header/сomponent.js";import"./components/select-button/сomponent.js";import"./components/months-table/сomponent.js";import"./components/years-table/сomponent.js";
1
+ export{Calendar}from"./component.js";export{usePeriod}from"./use-period.js";export{useCalendar}from"./use-calendar.js";export{DAYS_IN_WEEK,MONTHS_IN_YEAR,SUNDAY_INDEX,dateInLimits,limitDate,monthName,russianWeekDay}from"./utils.js";import"../tslib.es6-55336cb2.js";import"react";import"classnames";import"date-fns";import"./components/days-table/component.js";import"react-transition-group";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../hooks/usePrevious/index.js";import"./components/header/сomponent.js";import"./components/select-button/сomponent.js";import"./components/months-table/сomponent.js";import"./components/years-table/сomponent.js";
@@ -29,7 +29,7 @@ type CalendarInputProps = Omit<MaskedInputProps, 'mask' | 'value' | 'onChange' |
29
29
  onCalendarChange?: CalendarProps['onChange'];
30
30
  dataTestId?: string;
31
31
  };
32
- declare const CalendarInput: React.ForwardRefExoticComponent<Pick<MaskedInputProps, "disabled" | "color" | "className" | "dataTestId" | "children" | "form" | "list" | "error" | "label" | "slot" | "style" | "title" | "pattern" | "leftAddons" | "size" | "block" | "type" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "step" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "src" | "alt" | "hint" | "required" | "fieldClassName" | "labelClassName" | "addonsClassName" | "bottomAddons" | "accept" | "autoComplete" | "capture" | "checked" | "crossOrigin" | "height" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "readOnly" | "width" | "success" | "inputClassName" | "focusedClassName" | "filledClassName" | "wrapperRef"> & {
32
+ declare const CalendarInput: React.ForwardRefExoticComponent<Pick<MaskedInputProps, "disabled" | "color" | "className" | "dataTestId" | "children" | "form" | "list" | "error" | "label" | "slot" | "style" | "title" | "pattern" | "leftAddons" | "size" | "block" | "type" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "step" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "required" | "fieldClassName" | "labelClassName" | "addonsClassName" | "hint" | "bottomAddons" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "crossOrigin" | "height" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "readOnly" | "src" | "width" | "success" | "inputClassName" | "focusedClassName" | "filledClassName" | "wrapperRef"> & {
33
33
  block?: boolean | undefined;
34
34
  className?: string | undefined;
35
35
  inputClassName?: string | undefined;
@@ -44,7 +44,7 @@ declare const CalendarInput: React.ForwardRefExoticComponent<Pick<MaskedInputPro
44
44
  calendarPosition?: "static" | "popover" | undefined;
45
45
  preventFlip?: boolean | undefined;
46
46
  mobileMode?: "input" | "popover" | "native" | undefined;
47
- onChange?: ((event: React.MouseEvent<HTMLButtonElement, globalThis.MouseEvent> | React.ChangeEvent<HTMLInputElement> | null, payload: {
47
+ onChange?: ((event: React.ChangeEvent<HTMLInputElement> | React.MouseEvent<HTMLButtonElement, globalThis.MouseEvent> | null, payload: {
48
48
  date: Date;
49
49
  value: string;
50
50
  }) => void) | undefined;
@@ -1 +1 @@
1
- import{_ as e,a as n}from"../tslib.es6-2df8ff0d.js";import t,{forwardRef as o,useState as a,useRef as r,useCallback as i,useEffect as l}from"react";import p from"react-merge-refs";import m from"classnames";import{Calendar as s}from"../calendar/component.js";import{dateInLimits as d}from"../calendar/utils.js";import"date-fns";import{MaskedInput as c}from"../masked-input/component.js";import{Popover as u}from"../popover/component.js";import{parseDateString as f,isCompleteDateInput as v,NATIVE_DATE_FORMAT as j,formatDate as g,DATE_MASK as b,SUPPORTS_INPUT_TYPE_DATE as h}from"./utils.js";import"../calendar/components/days-table/component.js";import"react-transition-group";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../hooks/usePrevious/index.js";import"../calendar/components/header/сomponent.js";import"../calendar/components/select-button/сomponent.js";import"../calendar/components/months-table/сomponent.js";import"../calendar/components/years-table/сomponent.js";import"../calendar/use-calendar.js";import"../_commonjsHelpers-d267b46a.js";import"../input/component.js";import"../form-control/component.js";import"react-popper";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";var _="index-module_component__LnAss",C="index-module_block__32Idv",k="index-module_calendarContainer__1EzA3",x="index-module_calendarIcon__3btou",D="index-module_nativeInput__2_YME",E=o((function(o,E){var w,N=o.block,y=void 0!==N&&N,I=o.className,M=o.inputClassName,T=o.defaultOpen,F=void 0!==T&&T,P=o.defaultMonth,A=o.defaultValue,O=void 0===A?"":A,V=o.calendarPosition,q=void 0===V?"popover":V,R=o.value,K=o.dataTestId,U=o.minDate,z=o.required,B=o.maxDate,H=o.calendarProps,L=void 0===H?{}:H,Y=o.preventFlip,G=o.mobileMode,J=void 0===G?"popover":G,Q=o.wrapperRef,S=void 0===Q?null:Q,W=o.disabled,X=o.onChange,Z=o.onInputChange,$=o.onCalendarChange,ee=o.readOnly,ne=e(o,["block","className","inputClassName","defaultOpen","defaultMonth","defaultValue","calendarPosition","value","dataTestId","minDate","required","maxDate","calendarProps","preventFlip","mobileMode","wrapperRef","disabled","onChange","onInputChange","onCalendarChange","readOnly"]),te=void 0===R,oe=h&&"native"===J,ae="input"===J,re="static"===q&&!ae,ie="popover"===q&&!oe&&!ae,le=a(!1),pe=le[0],me=le[1],se=a(O),de=se[0],ce=se[1],ue=te?de:R,fe=ue?f(ue).getTime():void 0,ve=d(fe,U,B),je=W||ee,ge=r(null),be=r(null),he=r(null),_e=r(null),Ce=i((function(e){"Escape"===e.key&&me(!1)}),[]),ke=i((function(){pe||me(!0)}),[pe]),xe=i((function(e){me(!0),!pe&&"INPUT"!==e.target.tagName&&_e.current&&_e.current.focus()}),[pe]),De=i((function(e){_e.current&&!1===_e.current.contains(e.relatedTarget)&&me(!1)}),[]),Ee=i((function(e){["ArrowDown","ArrowUp"].includes(e.key)&&_e.current&&(e.preventDefault(),_e.current.focus())}),[]),we=i((function(e,n,t,o,a){void 0===o&&(o="input"),void 0===a&&(a=!0),"input"===o&&e&&Z&&Z(e,{value:n,date:t}),"calendar"===o&&$&&$(t.getTime()),a&&(te&&ce(n),X&&X(e,{date:t,value:n}))}),[$,X,Z,te]),Ne=i((function(e){var n=e.target.value,t=f(n);we(e,n,t,"input",v(n))}),[we]),ye=i((function(e){var n=f(e.target.value,j),t=""===e.target.value?"":g(n);we(e,t,n)}),[we]),Ie=i((function(e){we(null,g(e),new Date(e),"calendar"),me(!1)}),[we]),Me=i((function(e){e.preventDefault()}),[]);l((function(){me(F)}),[F]);var Te=i((function(){return t.createElement("div",{onMouseDown:Me},t.createElement(s,n({},L,{t:L.t,ref:_e,defaultMonth:P,value:ve?fe:void 0,onChange:Ie,minDate:U,maxDate:B})))}),[L,fe,P,Ie,Me,ve,B,U]);return t.createElement("div",{ref:he,className:m(_,I,(w={},w[C]=y,w)),tabIndex:-1,onKeyDown:je?void 0:Ce,onClick:je?void 0:ke,onFocus:je?void 0:xe,onBlur:De,"data-test-id":K},t.createElement(c,n({},ne,{ref:p([E,ge]),wrapperRef:p([S,be]),className:M,value:ue,required:z,defaultValue:O,disabled:W,readOnly:ee,mask:b,rightAddons:t.createElement(t.Fragment,null,t.createElement("span",{className:x}),oe&&t.createElement("input",{type:"date",ref:p([E,ge]),defaultValue:O,onChange:ye,className:D})),onKeyDown:Ee,onChange:Ne,block:!0,inputMode:"numeric",pattern:"[0-9\\.]*"})),re&&Te(),ie&&t.createElement(u,{open:pe,anchorElement:be.current,popperClassName:k,position:"bottom-start",offset:[0,8],withTransition:!1,preventFlip:Y},Te()))}));export{E as CalendarInput};
1
+ import{_ as e,a as n}from"../tslib.es6-55336cb2.js";import t,{forwardRef as o,useState as a,useRef as r,useCallback as i,useEffect as l}from"react";import p from"react-merge-refs";import m from"classnames";import{Calendar as s}from"../calendar/component.js";import{dateInLimits as c}from"../calendar/utils.js";import"date-fns";import{MaskedInput as d}from"../masked-input/component.js";import{Popover as u}from"../popover/component.js";import{parseDateString as f,isCompleteDateInput as v,NATIVE_DATE_FORMAT as j,formatDate as g,DATE_MASK as b,SUPPORTS_INPUT_TYPE_DATE as h}from"./utils.js";import"../calendar/components/days-table/component.js";import"react-transition-group";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../hooks/usePrevious/index.js";import"../calendar/components/header/сomponent.js";import"../calendar/components/select-button/сomponent.js";import"../calendar/components/months-table/сomponent.js";import"../calendar/components/years-table/сomponent.js";import"../calendar/use-calendar.js";import"../_commonjsHelpers-0e78534c.js";import"../input/component.js";import"../form-control/component.js";import"react-popper";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";var _="index-module_component__LnAss",C="index-module_block__32Idv",k="index-module_calendarContainer__1EzA3",x="index-module_calendarIcon__3btou",D="index-module_nativeInput__2_YME",E=o((function(o,E){var w,N=o.block,y=void 0!==N&&N,I=o.className,M=o.inputClassName,T=o.defaultOpen,F=void 0!==T&&T,P=o.defaultMonth,A=o.defaultValue,O=void 0===A?"":A,V=o.calendarPosition,q=void 0===V?"popover":V,R=o.value,K=o.dataTestId,U=o.minDate,z=o.required,B=o.maxDate,H=o.calendarProps,L=void 0===H?{}:H,Y=o.preventFlip,G=o.mobileMode,J=void 0===G?"popover":G,Q=o.wrapperRef,S=void 0===Q?null:Q,W=o.disabled,X=o.onChange,Z=o.onInputChange,$=o.onCalendarChange,ee=o.readOnly,ne=e(o,["block","className","inputClassName","defaultOpen","defaultMonth","defaultValue","calendarPosition","value","dataTestId","minDate","required","maxDate","calendarProps","preventFlip","mobileMode","wrapperRef","disabled","onChange","onInputChange","onCalendarChange","readOnly"]),te=void 0===R,oe=h&&"native"===J,ae="input"===J,re="static"===q&&!ae,ie="popover"===q&&!oe&&!ae,le=a(!1),pe=le[0],me=le[1],se=a(O),ce=se[0],de=se[1],ue=te?ce:R,fe=ue?f(ue).getTime():void 0,ve=c(fe,U,B),je=W||ee,ge=r(null),be=r(null),he=r(null),_e=r(null),Ce=i((function(e){"Escape"===e.key&&me(!1)}),[]),ke=i((function(){pe||me(!0)}),[pe]),xe=i((function(e){me(!0),!pe&&"INPUT"!==e.target.tagName&&_e.current&&_e.current.focus()}),[pe]),De=i((function(e){_e.current&&!1===_e.current.contains(e.relatedTarget)&&me(!1)}),[]),Ee=i((function(e){["ArrowDown","ArrowUp"].includes(e.key)&&_e.current&&(e.preventDefault(),_e.current.focus())}),[]),we=i((function(e,n,t,o,a){void 0===o&&(o="input"),void 0===a&&(a=!0),"input"===o&&e&&Z&&Z(e,{value:n,date:t}),"calendar"===o&&$&&$(t.getTime()),a&&(te&&de(n),X&&X(e,{date:t,value:n}))}),[$,X,Z,te]),Ne=i((function(e){var n=e.target.value,t=f(n);we(e,n,t,"input",v(n))}),[we]),ye=i((function(e){var n=f(e.target.value,j),t=""===e.target.value?"":g(n);we(e,t,n)}),[we]),Ie=i((function(e){we(null,g(e),new Date(e),"calendar"),me(!1)}),[we]),Me=i((function(e){e.preventDefault()}),[]);l((function(){me(F)}),[F]);var Te=i((function(){return t.createElement("div",{onMouseDown:Me},t.createElement(s,n({},L,{t:L.t,ref:_e,defaultMonth:P,value:ve?fe:void 0,onChange:Ie,minDate:U,maxDate:B})))}),[L,fe,P,Ie,Me,ve,B,U]);return t.createElement("div",{ref:he,className:m(_,I,(w={},w[C]=y,w)),tabIndex:-1,onKeyDown:je?void 0:Ce,onClick:je?void 0:ke,onFocus:je?void 0:xe,onBlur:De,"data-test-id":K},t.createElement(d,n({},ne,{ref:p([E,ge]),wrapperRef:p([S,be]),className:M,value:ue,required:z,defaultValue:O,disabled:W,readOnly:ee,mask:b,rightAddons:t.createElement(t.Fragment,null,t.createElement("span",{className:x}),oe&&t.createElement("input",{type:"date",ref:p([E,ge]),defaultValue:O,onChange:ye,className:D})),onKeyDown:Ee,onChange:Ne,block:!0,inputMode:"numeric",pattern:"[0-9\\.]*"})),re&&Te(),ie&&t.createElement(u,{open:pe,anchorElement:be.current,popperClassName:k,position:"bottom-start",offset:[0,8],withTransition:!1,preventFlip:Y},Te()))}));export{E as CalendarInput};
@@ -1 +1 @@
1
- export{CalendarInput}from"./component.js";export{DATE_FORMAT,DATE_MASK,IS_BROWSER,NATIVE_DATE_FORMAT,SUPPORTS_INPUT_TYPE_DATE,formatDate,isCompleteDateInput,isInputDateSupported,parseDateString}from"./utils.js";import"../tslib.es6-2df8ff0d.js";import"react";import"react-merge-refs";import"classnames";import"../calendar/component.js";import"date-fns";import"../calendar/components/days-table/component.js";import"react-transition-group";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../hooks/usePrevious/index.js";import"../calendar/utils.js";import"../calendar/components/header/сomponent.js";import"../calendar/components/select-button/сomponent.js";import"../calendar/components/months-table/сomponent.js";import"../calendar/components/years-table/сomponent.js";import"../calendar/use-calendar.js";import"../masked-input/component.js";import"../_commonjsHelpers-d267b46a.js";import"../input/component.js";import"../form-control/component.js";import"../popover/component.js";import"react-popper";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";
1
+ export{CalendarInput}from"./component.js";export{DATE_FORMAT,DATE_MASK,IS_BROWSER,NATIVE_DATE_FORMAT,SUPPORTS_INPUT_TYPE_DATE,formatDate,isCompleteDateInput,isInputDateSupported,parseDateString}from"./utils.js";import"../tslib.es6-55336cb2.js";import"react";import"react-merge-refs";import"classnames";import"../calendar/component.js";import"date-fns";import"../calendar/components/days-table/component.js";import"react-transition-group";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../hooks/usePrevious/index.js";import"../calendar/utils.js";import"../calendar/components/header/сomponent.js";import"../calendar/components/select-button/сomponent.js";import"../calendar/components/months-table/сomponent.js";import"../calendar/components/years-table/сomponent.js";import"../calendar/use-calendar.js";import"../masked-input/component.js";import"../_commonjsHelpers-0e78534c.js";import"../input/component.js";import"../form-control/component.js";import"../popover/component.js";import"react-popper";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";
@@ -1 +1 @@
1
- import"react";import"classnames";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../../typography/component.js";export{B as Base}from"../../component-32036811.js";import"../../typography/title/index.js";import"../../tslib.es6-2df8ff0d.js";import"../../typography/title/component.js";import"../../colors.module-7b0287e2.js";import"../../common.module-0cc71da9.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../pure/component.js";
1
+ import"react";import"classnames";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../../typography/component.js";export{B as Base}from"../../component-6ac444c9.js";import"../../typography/title/index.js";import"../../tslib.es6-55336cb2.js";import"../../typography/title/component.js";import"../../colors.module-c3f895d0.js";import"../../common.module-5dd04192.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../pure/component.js";
@@ -1 +1 @@
1
- export * from "../../component-32036811";
1
+ export * from "../../component-6ac444c9";
@@ -1 +1 @@
1
- export{B as Base}from"../../component-32036811.js";import"react";import"classnames";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../../typography/component.js";import"../../typography/title/index.js";import"../../tslib.es6-2df8ff0d.js";import"../../typography/title/component.js";import"../../colors.module-7b0287e2.js";import"../../common.module-0cc71da9.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../pure/component.js";
1
+ export{B as Base}from"../../component-6ac444c9.js";import"react";import"classnames";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../../typography/component.js";import"../../typography/title/index.js";import"../../tslib.es6-55336cb2.js";import"../../typography/title/component.js";import"../../colors.module-c3f895d0.js";import"../../common.module-5dd04192.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../pure/component.js";
@@ -1 +1 @@
1
- export{C as Cell}from"../component-32036811.js";import"./pure/component.js";import"react";import"classnames";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-2df8ff0d.js";import"../typography/title/component.js";import"../colors.module-7b0287e2.js";import"../common.module-0cc71da9.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
1
+ export{C as Cell}from"../component-6ac444c9.js";import"./pure/component.js";import"react";import"classnames";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-55336cb2.js";import"../typography/title/component.js";import"../colors.module-c3f895d0.js";import"../common.module-5dd04192.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
@@ -1 +1 @@
1
- export{C as Cell}from"../component-32036811.js";import"react";import"classnames";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-2df8ff0d.js";import"../typography/title/component.js";import"../colors.module-7b0287e2.js";import"../common.module-0cc71da9.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"./pure/component.js";
1
+ export{C as Cell}from"../component-6ac444c9.js";import"react";import"classnames";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-55336cb2.js";import"../typography/title/component.js";import"../colors.module-c3f895d0.js";import"../common.module-5dd04192.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";import"./pure/component.js";
@@ -1 +1 @@
1
- import{_ as e,a as r}from"../../tslib.es6-2df8ff0d.js";import d,{forwardRef as o}from"react";import a from"classnames";import{getDataTestId as l}from"../../__internal/utils/getDataTestId.js";var i={component:"index-module_component__1-n7X",s:"index-module_s__1EjLa",m:"index-module_m__2W-Ki",l:"index-module_l__3-a7m",horizontal:"index-module_horizontal__3TyOF",normalOrder:"index-module_normalOrder__2lVPG",reverseOrder:"index-module_reverseOrder__3HvPd",vertical:"index-module_vertical__n6pzF",addon:"index-module_addon__1NNHT",child:"index-module_child__l7HAT"},n=o((function(o,n){var m,t=o.slot,s=o.size,_=void 0===s?"m":s,c=o.order,v=void 0===c?"normal":c,u=o.direction,x=void 0===u?"horizontal":u,p=o.children,f=o.className,h=o.dataTestId,N=e(o,["slot","size","order","direction","children","className","dataTestId"]),O=((m={})[i.normalOrder]="normal"===v&&t,m[i.reverseOrder]="reverse"===v&&t,m[i[x]]=!0,m);return d.createElement("div",r({ref:n,className:a(i.component,i[_],r({},O),f),"data-test-id":l("cell-pure",h,!0)},N),t&&d.createElement("div",{className:a(i.addon,r({},O))},t),d.createElement("div",{className:a(i.child,r({},O))},p))}));export{n as Pure};
1
+ import{_ as e,a as r}from"../../tslib.es6-55336cb2.js";import d,{forwardRef as o}from"react";import a from"classnames";import{getDataTestId as l}from"../../__internal/utils/getDataTestId.js";var i={component:"index-module_component__1-n7X",s:"index-module_s__1EjLa",m:"index-module_m__2W-Ki",l:"index-module_l__3-a7m",horizontal:"index-module_horizontal__3TyOF",normalOrder:"index-module_normalOrder__2lVPG",reverseOrder:"index-module_reverseOrder__3HvPd",vertical:"index-module_vertical__n6pzF",addon:"index-module_addon__1NNHT",child:"index-module_child__l7HAT"},n=o((function(o,n){var m,t=o.slot,s=o.size,_=void 0===s?"m":s,c=o.order,v=void 0===c?"normal":c,u=o.direction,x=void 0===u?"horizontal":u,p=o.children,h=o.className,N=o.dataTestId,O=e(o,["slot","size","order","direction","children","className","dataTestId"]),f=((m={})[i.normalOrder]="normal"===v&&t,m[i.reverseOrder]="reverse"===v&&t,m[i[x]]=!0,m);return d.createElement("div",r({ref:n,className:a(i.component,i[_],r({},f),h),"data-test-id":l("cell-pure",N,!0)},O),t&&d.createElement("div",{className:a(i.addon,r({},f))},t),d.createElement("div",{className:a(i.child,r({},f))},p))}));export{n as Pure};
@@ -1 +1 @@
1
- export{Pure}from"./component.js";import"../../tslib.es6-2df8ff0d.js";import"react";import"classnames";import"../../__internal/utils/getDataTestId.js";
1
+ export{Pure}from"./component.js";import"../../tslib.es6-55336cb2.js";import"react";import"classnames";import"../../__internal/utils/getDataTestId.js";
@@ -18,7 +18,7 @@ type CheckboxProps = Omit<NativeProps, 'size' | 'onChange'> & {
18
18
  dataTestId?: string;
19
19
  indeterminate?: boolean;
20
20
  };
21
- declare const Checkbox: React.ForwardRefExoticComponent<Pick<NativeProps, "disabled" | "color" | "className" | "children" | "form" | "list" | "slot" | "style" | "title" | "pattern" | "value" | "type" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "step" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "src" | "alt" | "required" | "accept" | "autoComplete" | "capture" | "checked" | "crossOrigin" | "height" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "readOnly" | "width"> & {
21
+ declare const Checkbox: React.ForwardRefExoticComponent<Pick<NativeProps, "disabled" | "color" | "className" | "children" | "form" | "list" | "slot" | "style" | "title" | "pattern" | "value" | "type" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "step" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "required" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "crossOrigin" | "height" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "readOnly" | "src" | "width"> & {
22
22
  checked?: boolean | undefined;
23
23
  onChange: (event: React.ChangeEvent<HTMLInputElement>, payload: {
24
24
  checked: boolean;
@@ -1 +1 @@
1
- import{_ as e,a as n}from"../tslib.es6-2df8ff0d.js";import d,{forwardRef as a,useRef as t}from"react";import o from"react-merge-refs";import{ChecMarkS as l,MinusM as m}from"alpha-cli-icons";import i from"classnames";import{useFocus as c}from"../hooks/useFocus/index.js";var s={component:"index-module_component__3Wme6",start:"index-module_start__2N8TM",center:"index-module_center__1E74d",addons:"index-module_addons__3fJ7i",block:"index-module_block__1OUFu",box:"index-module_box__Q4_WE",m:"index-module_m__ydO-e",content:"index-module_content__zuheb",s:"index-module_s__3bmdq",disabled:"index-module_disabled__2P71z",checked:"index-module_checked__32R7P",indeterminate:"index-module_indeterminate__UGp1F",focused:"index-module_focused__1edDS",label:"index-module_label__3bygF",hint:"index-module_hint__2GuKu",indeterminateIcon:"index-module_indeterminateIcon__2d73Z"},_=a((function(a,_){var r,u=a.checked,b=a.label,x=a.hint,h=a.size,p=void 0===h?"m":h,f=a.align,k=void 0===f?"center":f,E=a.addons,N=a.block,g=a.onChange,v=a.className,I=a.name,y=a.disabled,z=a.dataTestId,F=a.indeterminate,C=void 0!==F&&F,P=e(a,["checked","label","hint","size","align","addons","block","onChange","className","name","disabled","dataTestId","indeterminate"]),T=t(null),j=c(T,"keyboard")[0];return d.createElement("label",{className:i(s.component,s[p],s[k],v,(r={},r[s.disabled]=y,r[s.checked]=u,r[s.indeterminate]=C,r[s.focused]=j,r[s.block]=N,r)),ref:o([T,_])},d.createElement("span",{className:s.box},d.createElement("input",n({type:"checkbox",onChange:function(e){g&&g(e,{checked:e.target.checked,name:I})},disabled:y,checked:u,"data-test-id":z},P)),u&&d.createElement(l,null),C&&!u&&d.createElement("div",{className:s.indeterminateIcon},d.createElement(m,null))),(b||x)&&d.createElement("span",{className:s.content},b&&d.createElement("span",{className:s.label},b),x&&d.createElement("span",{className:s.hint},x)),E&&d.createElement("span",{className:s.addons},E))}));_.defaultProps={indeterminate:!1};export{_ as Checkbox};
1
+ import{_ as e,a as n}from"../tslib.es6-55336cb2.js";import d,{forwardRef as a,useRef as t}from"react";import o from"react-merge-refs";import{ChecMarkS as l,MinusM as m}from"alpha-cli-icons";import i from"classnames";import{useFocus as c}from"../hooks/useFocus/index.js";var s={component:"index-module_component__3Wme6",start:"index-module_start__2N8TM",center:"index-module_center__1E74d",addons:"index-module_addons__3fJ7i",block:"index-module_block__1OUFu",box:"index-module_box__Q4_WE",m:"index-module_m__ydO-e",content:"index-module_content__zuheb",s:"index-module_s__3bmdq",disabled:"index-module_disabled__2P71z",checked:"index-module_checked__32R7P",indeterminate:"index-module_indeterminate__UGp1F",focused:"index-module_focused__1edDS",label:"index-module_label__3bygF",hint:"index-module_hint__2GuKu",indeterminateIcon:"index-module_indeterminateIcon__2d73Z"},_=a((function(a,_){var r,u=a.checked,b=a.label,x=a.hint,h=a.size,p=void 0===h?"m":h,k=a.align,f=void 0===k?"center":k,E=a.addons,N=a.block,g=a.onChange,v=a.className,I=a.name,y=a.disabled,z=a.dataTestId,F=a.indeterminate,C=void 0!==F&&F,P=e(a,["checked","label","hint","size","align","addons","block","onChange","className","name","disabled","dataTestId","indeterminate"]),T=t(null),j=c(T,"keyboard")[0];return d.createElement("label",{className:i(s.component,s[p],s[f],v,(r={},r[s.disabled]=y,r[s.checked]=u,r[s.indeterminate]=C,r[s.focused]=j,r[s.block]=N,r)),ref:o([T,_])},d.createElement("span",{className:s.box},d.createElement("input",n({type:"checkbox",onChange:function(e){g&&g(e,{checked:e.target.checked,name:I})},disabled:y,checked:u,"data-test-id":z},P)),u&&d.createElement(l,null),C&&!u&&d.createElement("div",{className:s.indeterminateIcon},d.createElement(m,null))),(b||x)&&d.createElement("span",{className:s.content},b&&d.createElement("span",{className:s.label},b),x&&d.createElement("span",{className:s.hint},x)),E&&d.createElement("span",{className:s.addons},E))}));_.defaultProps={indeterminate:!1};export{_ as Checkbox};
@@ -1 +1 @@
1
- export{Checkbox}from"./component.js";import"../tslib.es6-2df8ff0d.js";import"react";import"react-merge-refs";import"alpha-cli-icons";import"classnames";import"../hooks/useFocus/index.js";
1
+ export{Checkbox}from"./component.js";import"../tslib.es6-55336cb2.js";import"react";import"react-merge-refs";import"alpha-cli-icons";import"classnames";import"../hooks/useFocus/index.js";
@@ -1 +1 @@
1
- import{b as e}from"../tslib.es6-2df8ff0d.js";import t from"react";import{Checkbox as o}from"../checkbox/component.js";import{FlexColumns as n}from"../flex-columns/component.js";import{Typography as r}from"../typography/component.js";import"react-merge-refs";import"alpha-cli-icons";import"classnames";import"../hooks/useFocus/index.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-7b0287e2.js";import"../common.module-0cc71da9.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var i="index-module_text__1gRxq",c="index-module_subtitle__1s_SD",m=function(m){var l=m.title,s=m.subtitle,a=m.selected,d=void 0===a?[]:a,p=m.data,u=void 0===p?[]:p,v=m.onChange,g=m.columns,f=void 0===g?1:g,y=m.gr,h=void 0===y?20:y,x=m.gc,j=void 0===x?20:x,b=m.dataTestId,_=d||[],k=function(e){return b?"checkbox_"+b+"_"+e:"checkbox_"+e};return t.createElement("div",null,(l||s)&&t.createElement("div",{className:i},l&&t.createElement(r.Text,{tag:"div",view:"title",color:"primary",weight:"bold"},l),s&&t.createElement(r.Text,{className:c,tag:"div",view:"caps",color:"secondary",weight:"medium"},s)),t.createElement(n,{columns:f,gr:h,gc:j},null==u?void 0:u.map((function(n,r){return t.createElement(o,{key:n.key+n.content,dataTestId:k(r),onChange:function(){return t=n.key,void v((null==_?void 0:_.includes(t))?null==_?void 0:_.filter((function(e){return e!==t})):e(_,[t]));var t},checked:null==_?void 0:_.includes(n.key),label:n.content})}))))};export{m as CheckboxGroup};
1
+ import{b as e}from"../tslib.es6-55336cb2.js";import t from"react";import{Checkbox as o}from"../checkbox/component.js";import{FlexColumns as n}from"../flex-columns/component.js";import{Typography as r}from"../typography/component.js";import"react-merge-refs";import"alpha-cli-icons";import"classnames";import"../hooks/useFocus/index.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-c3f895d0.js";import"../common.module-5dd04192.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var i="index-module_text__1gRxq",c="index-module_subtitle__1s_SD",m=function(m){var l=m.title,s=m.subtitle,a=m.selected,d=void 0===a?[]:a,p=m.data,u=void 0===p?[]:p,v=m.onChange,g=m.columns,y=void 0===g?1:g,h=m.gr,f=void 0===h?20:h,x=m.gc,j=void 0===x?20:x,b=m.dataTestId,_=d||[],k=function(e){return b?"checkbox_"+b+"_"+e:"checkbox_"+e};return t.createElement("div",null,(l||s)&&t.createElement("div",{className:i},l&&t.createElement(r.Text,{tag:"div",view:"title",color:"primary",weight:"bold"},l),s&&t.createElement(r.Text,{className:c,tag:"div",view:"caps",color:"secondary",weight:"medium"},s)),t.createElement(n,{columns:y,gr:f,gc:j},null==u?void 0:u.map((function(n,r){return t.createElement(o,{key:n.key+n.content,dataTestId:k(r),onChange:function(){return t=n.key,void v((null==_?void 0:_.includes(t))?null==_?void 0:_.filter((function(e){return e!==t})):e(_,[t]));var t},checked:null==_?void 0:_.includes(n.key),label:n.content})}))))};export{m as CheckboxGroup};
@@ -1 +1 @@
1
- export{CheckboxGroup}from"./component.js";import"../tslib.es6-2df8ff0d.js";import"react";import"../checkbox/component.js";import"react-merge-refs";import"alpha-cli-icons";import"classnames";import"../hooks/useFocus/index.js";import"../flex-columns/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-7b0287e2.js";import"../common.module-0cc71da9.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
1
+ export{CheckboxGroup}from"./component.js";import"../tslib.es6-55336cb2.js";import"react";import"../checkbox/component.js";import"react-merge-refs";import"alpha-cli-icons";import"classnames";import"../hooks/useFocus/index.js";import"../flex-columns/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-c3f895d0.js";import"../common.module-5dd04192.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
@@ -1 +1 @@
1
- import{b as e}from"../tslib.es6-2df8ff0d.js";import t,{useState as n}from"react";import{ChevronDownS as o}from"alpha-cli-icons";import l from"classnames";import{Checkbox as r}from"../checkbox/component.js";import{Collapse as c}from"../collapse/component.js";import{Divider as i}from"../divider/component.js";import{FlexColumns as a}from"../flex-columns/component.js";import{IconButton as m}from"../icon-button/component.js";import{Padding as p}from"../padding/component.js";import{Typography as s}from"../typography/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../_commonjsHelpers-d267b46a.js";import"../link/component.js";import"../button/component.js";import"../loader/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-7b0287e2.js";import"../common.module-0cc71da9.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var d={list_head:"index-module_list_head__14m8q",collapse_btn:"index-module_collapse_btn__1eM1e",collapse_btn_collapsed:"index-module_collapse_btn_collapsed__p0RhY"},u=function(u){var f=u.parents,h=u.childs,_=u.selected,j=u.checkableParent,b=u.collapsable,E=u.onChange,v=[],g=Array.isArray(_)?_:[];null==f||f.forEach((function(e){var t={parent:{},childs:[],collapsed:!1};null==h||h.forEach((function(n){n.locationId===e.id&&(t.parent=e,t.childs.push(n))})),t.parent.id&&v.push(t)}));var y=n(v),x=y[0],k=y[1],C=function(t){t.forEach((function(n){(null==g?void 0:g.includes(n))?E(g.filter((function(e){return!t.includes(e)}))):E(e(g,t))}))},F=function(e){var n,o,l=e.element;return j?t.createElement(r,{block:!0,checked:(n=l.childs.map((function(e){return e.id})),o=!1,n.forEach((function(e){(null==g?void 0:g.includes(e))&&(o=!0)})),o),onChange:function(){return C(l.childs.map((function(e){return e.id})))},label:""+l.parent.title}):t.createElement(s.Text,{view:"title",weight:"medium",color:"primary"},l.parent.title)};return t.createElement("div",null,x.map((function(e,n){var s;return t.createElement(t.Fragment,{key:e.parent.id},t.createElement(t.Fragment,null,t.createElement("div",{className:d.list_head},t.createElement(F,{element:e}),b&&t.createElement(m,{onClick:function(){return function(e){var t=x.map((function(t,n){return n===e&&(t.collapsed?t.collapsed=!1:t.collapsed=!0),t})),n=x.concat(t);k(n.filter((function(e,t){return n.indexOf(e)===t})))}(n)},size:"s",className:l(d.collapse_btn,(s={},s[d.collapse_btn_collapsed]=e.collapsed,s)),icon:o})),!e.collapsed&&t.createElement(p,{padding:"16px 0 0 0"})),t.createElement(c,{expanded:!e.collapsed},t.createElement("div",{className:d.content},t.createElement(a,{columns:1},e.childs.map((function(e){return t.createElement(r,{onChange:function(){return C([e.id])},checked:null==g?void 0:g.includes(e.id),key:e.id,label:e.title})}))))),n!==(null==x?void 0:x.length)-1&&t.createElement(i,{size:"m"}))})))};export{u as CheckboxGroups};
1
+ import{b as e}from"../tslib.es6-55336cb2.js";import t,{useState as n}from"react";import{ChevronDownS as o}from"alpha-cli-icons";import l from"classnames";import{Checkbox as r}from"../checkbox/component.js";import{Collapse as c}from"../collapse/component.js";import{Divider as i}from"../divider/component.js";import{FlexColumns as a}from"../flex-columns/component.js";import{IconButton as m}from"../icon-button/component.js";import{Padding as p}from"../padding/component.js";import{Typography as s}from"../typography/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../_commonjsHelpers-0e78534c.js";import"../link/component.js";import"../button/component.js";import"../loader/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-c3f895d0.js";import"../common.module-5dd04192.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var d={list_head:"index-module_list_head__14m8q",collapse_btn:"index-module_collapse_btn__1eM1e",collapse_btn_collapsed:"index-module_collapse_btn_collapsed__p0RhY"},u=function(u){var f=u.parents,h=u.childs,_=u.selected,j=u.checkableParent,E=u.collapsable,b=u.onChange,v=[],g=Array.isArray(_)?_:[];null==f||f.forEach((function(e){var t={parent:{},childs:[],collapsed:!1};null==h||h.forEach((function(n){n.locationId===e.id&&(t.parent=e,t.childs.push(n))})),t.parent.id&&v.push(t)}));var y=n(v),x=y[0],k=y[1],C=function(t){t.forEach((function(n){(null==g?void 0:g.includes(n))?b(g.filter((function(e){return!t.includes(e)}))):b(e(g,t))}))},F=function(e){var n,o,l=e.element;return j?t.createElement(r,{block:!0,checked:(n=l.childs.map((function(e){return e.id})),o=!1,n.forEach((function(e){(null==g?void 0:g.includes(e))&&(o=!0)})),o),onChange:function(){return C(l.childs.map((function(e){return e.id})))},label:""+l.parent.title}):t.createElement(s.Text,{view:"title",weight:"medium",color:"primary"},l.parent.title)};return t.createElement("div",null,x.map((function(e,n){var s;return t.createElement(t.Fragment,{key:e.parent.id},t.createElement(t.Fragment,null,t.createElement("div",{className:d.list_head},t.createElement(F,{element:e}),E&&t.createElement(m,{onClick:function(){return function(e){var t=x.map((function(t,n){return n===e&&(t.collapsed?t.collapsed=!1:t.collapsed=!0),t})),n=x.concat(t);k(n.filter((function(e,t){return n.indexOf(e)===t})))}(n)},size:"s",className:l(d.collapse_btn,(s={},s[d.collapse_btn_collapsed]=e.collapsed,s)),icon:o})),!e.collapsed&&t.createElement(p,{padding:"16px 0 0 0"})),t.createElement(c,{expanded:!e.collapsed},t.createElement("div",{className:d.content},t.createElement(a,{columns:1},e.childs.map((function(e){return t.createElement(r,{onChange:function(){return C([e.id])},checked:null==g?void 0:g.includes(e.id),key:e.id,label:e.title})}))))),n!==(null==x?void 0:x.length)-1&&t.createElement(i,{size:"m"}))})))};export{u as CheckboxGroups};
@@ -1 +1 @@
1
- export{CheckboxGroups}from"./component.js";import"../tslib.es6-2df8ff0d.js";import"react";import"alpha-cli-icons";import"classnames";import"../checkbox/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../collapse/component.js";import"../_commonjsHelpers-d267b46a.js";import"../link/component.js";import"../divider/component.js";import"../flex-columns/component.js";import"../icon-button/component.js";import"../button/component.js";import"../loader/component.js";import"../padding/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-7b0287e2.js";import"../common.module-0cc71da9.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
1
+ export{CheckboxGroups}from"./component.js";import"../tslib.es6-55336cb2.js";import"react";import"alpha-cli-icons";import"classnames";import"../checkbox/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../collapse/component.js";import"../_commonjsHelpers-0e78534c.js";import"../link/component.js";import"../divider/component.js";import"../flex-columns/component.js";import"../icon-button/component.js";import"../button/component.js";import"../loader/component.js";import"../padding/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-c3f895d0.js";import"../common.module-5dd04192.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
@@ -1,4 +1,7 @@
1
1
  /// <reference types="react" />
2
- declare const Content: () => JSX.Element;
3
- declare const Addons: () => JSX.Element;
2
+ declare const Content: ({ location, onClick, }: {
3
+ location: any;
4
+ onClick: () => void;
5
+ }) => JSX.Element;
6
+ declare const Addons: ({ onClick }: any) => JSX.Element;
4
7
  export { Content, Addons };
@@ -1 +1 @@
1
- import t from"react";import{EditS as o,PlusS as e}from"alpha-cli-icons";import{Button as r}from"../button/component.js";import{IconButton as n}from"../icon-button/component.js";import{Typography as m}from"../typography/component.js";import"../tslib.es6-2df8ff0d.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-7b0287e2.js";import"../common.module-0cc71da9.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var i=function(){return t.createElement(t.Fragment,null,t.createElement(m.Text,{view:"title",weight:"bold",color:"primary"},"2972 Westheimer Rd. Santa Ana, Illinois 85486 "),t.createElement(n,{icon:o,size:"s",view:"ghost"}))},p=function(){return t.createElement(r,{leftAddons:t.createElement(e,null),size:"xs",view:"secondary"},"Добавить квест")};export{p as Addons,i as Content};
1
+ import o from"react";import{EditS as t,PlusS as e}from"alpha-cli-icons";import{Button as r}from"../button/component.js";import{IconButton as n}from"../icon-button/component.js";import{Typography as i}from"../typography/component.js";import"../tslib.es6-55336cb2.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-c3f895d0.js";import"../common.module-5dd04192.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var m=function(e){var r=e.location,m=e.onClick;return o.createElement(o.Fragment,null,o.createElement(i.Text,{view:"title",weight:"bold",color:"primary"},r.address),o.createElement(n,{icon:t,onClick:m,size:"s",view:"ghost"}))},p=function(t){var n=t.onClick;return o.createElement(r,{leftAddons:o.createElement(e,null),size:"xs",onClick:n,view:"secondary"},"Добавить квест")};export{p as Addons,m as Content};
@@ -1 +1 @@
1
- import e,{useState as o,useEffect as t}from"react";import{ChevronDownS as n}from"alpha-cli-icons";import m from"classnames";import{Collapse as r}from"../collapse/component.js";import{IconButton as i}from"../icon-button/component.js";import{Typography as s}from"../typography/component.js";import"../_commonjsHelpers-d267b46a.js";import"../link/component.js";import"../tslib.es6-2df8ff0d.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../button/component.js";import"../loader/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-7b0287e2.js";import"../common.module-0cc71da9.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var l="index-module_wrapper__3QusV",p="index-module_row__3hqrd",a="index-module_label__36GmD",c="index-module_collapse_button__fSlCm",d="index-module_expanded_icon__1bn0B",_="index-module_collapse_container__2IId1",u=function(u){var j,f=u.label,x=u.content,b=u.expanded,h=u.addons,y=u.children,v=u.disabled,g=o(b),E=g[0],N=g[1];return t((function(){N(b)}),[b]),e.createElement("div",null,e.createElement("div",{className:l},e.createElement("div",{className:p},f&&e.createElement(s.Text,{className:a,color:"secondary",view:"title",weight:"medium"},f),x),e.createElement("div",{className:p},h,e.createElement(i,{onClick:function(){return N(!E)},className:m(c,(j={},j[d]=E,j)),disabled:v,view:"ghost",icon:n,size:"s"}))),e.createElement(r,{contentClassName:_,expanded:E},y))};export{u as CollapsableRow};
1
+ import e,{useState as o,useEffect as t}from"react";import{ChevronDownS as n}from"alpha-cli-icons";import m from"classnames";import{Collapse as r}from"../collapse/component.js";import{IconButton as i}from"../icon-button/component.js";import{Typography as s}from"../typography/component.js";import"../_commonjsHelpers-0e78534c.js";import"../link/component.js";import"../tslib.es6-55336cb2.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../button/component.js";import"../loader/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-c3f895d0.js";import"../common.module-5dd04192.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var l="index-module_wrapper__3QusV",p="index-module_row__3hqrd",c="index-module_label__36GmD",a="index-module_collapse_button__fSlCm",d="index-module_expanded_icon__1bn0B",_="index-module_collapse_container__2IId1",u=function(u){var j,x=u.label,f=u.content,h=u.expanded,y=u.addons,b=u.children,v=u.disabled,g=o(h),E=g[0],N=g[1];return t((function(){N(h)}),[h]),e.createElement("div",null,e.createElement("div",{className:l},e.createElement("div",{className:p},x&&e.createElement(s.Text,{className:c,color:"secondary",view:"title",weight:"medium"},x),f),e.createElement("div",{className:p},y,e.createElement(i,{onClick:function(){return N(!E)},className:m(a,(j={},j[d]=E,j)),disabled:v,view:"ghost",icon:n,size:"s"}))),e.createElement(r,{contentClassName:_,expanded:E},b))};export{u as CollapsableRow};