@alphakits/ui 1.27.13 → 1.27.15

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 (303) hide show
  1. package/dist/{ActionCopyM-7b6a12ed.js → ActionCopyM-cd8015da.js} +1 -1
  2. package/dist/{ChevronBackM-5dfb5941.js → ChevronBackM-ba4205fa.js} +1 -1
  3. package/dist/{ChevronDownS-1d597b62.js → ChevronDownS-a98a1ed6.js} +1 -1
  4. package/dist/{ChevronForwardS-6714b901.js → ChevronForwardS-56815d30.js} +1 -1
  5. package/dist/{CloseS-1cf477a0.js → CloseS-f19e9906.js} +1 -1
  6. package/dist/{NextS-8aaa01cf.js → NextS-f5c3a50f.js} +1 -1
  7. package/dist/{PlusS-9985f515.js → PlusS-8defdd64.js} +1 -1
  8. package/dist/{SearchM-de3d3d19.js → SearchM-ad419e4b.js} +1 -1
  9. package/dist/{TrashM-4e8cf57e.js → TrashM-61d4bfb7.js} +1 -1
  10. package/dist/amount/component.js +1 -1
  11. package/dist/amount/index.js +1 -1
  12. package/dist/amount-input/component.js +1 -1
  13. package/dist/amount-input/index.js +1 -1
  14. package/dist/avatar/component.js +1 -1
  15. package/dist/avatar/index.js +1 -1
  16. package/dist/base-card/component.js +1 -1
  17. package/dist/base-card/index.js +1 -1
  18. package/dist/bottom-sheet/component.js +1 -1
  19. package/dist/bottom-sheet/index.js +1 -1
  20. package/dist/button/component.js +1 -1
  21. package/dist/button/index.js +1 -1
  22. package/dist/calendar/component.js +1 -1
  23. package/dist/calendar/components/days-table/component.js +1 -1
  24. package/dist/calendar/components/days-table/index.js +1 -1
  25. package/dist/calendar/components/header/index.js +1 -1
  26. package/dist/calendar/components/header//321/201omponent.js +1 -1
  27. package/dist/calendar/components/months-table/index.js +1 -1
  28. package/dist/calendar/components/months-table//321/201omponent.js +1 -1
  29. package/dist/calendar/components/select-button/index.js +1 -1
  30. package/dist/calendar/components/select-button//321/201omponent.js +1 -1
  31. package/dist/calendar/components/years-table/index.js +1 -1
  32. package/dist/calendar/components/years-table//321/201omponent.js +1 -1
  33. package/dist/calendar/index.js +1 -1
  34. package/dist/calendar/use-calendar.js +1 -1
  35. package/dist/calendar/use-period.js +1 -1
  36. package/dist/calendar/utils.js +1 -1
  37. package/dist/calendar-input/component.js +1 -1
  38. package/dist/calendar-input/index.js +1 -1
  39. package/dist/calendar-input/utils.js +1 -1
  40. package/dist/{capitalize-dc7f650b.js → capitalize-5fe13fa8.js} +1 -1
  41. package/dist/card/component.js +1 -1
  42. package/dist/card/images/index.js +1 -1
  43. package/dist/card/index.js +1 -1
  44. package/dist/cell/base/component.js +1 -1
  45. package/dist/cell/base/index.d.ts +1 -1
  46. package/dist/cell/base/index.js +1 -1
  47. package/dist/cell/component.js +1 -1
  48. package/dist/cell/index.js +1 -1
  49. package/dist/cell/pure/component.js +1 -1
  50. package/dist/cell/pure/index.js +1 -1
  51. package/dist/checkbox/component.js +1 -1
  52. package/dist/checkbox/index.js +1 -1
  53. package/dist/checkbox-group/component.js +1 -1
  54. package/dist/checkbox-group/index.js +1 -1
  55. package/dist/checkbox-lists/component.js +1 -1
  56. package/dist/checkbox-lists/index.js +1 -1
  57. package/dist/collapsable-row/addons.js +1 -1
  58. package/dist/collapsable-row/component.js +1 -1
  59. package/dist/collapsable-row/index.js +1 -1
  60. package/dist/collapse/component.js +1 -1
  61. package/dist/collapse/index.js +1 -1
  62. package/dist/{component-c24290f5.js → component-f08b67d8.js} +1 -1
  63. package/dist/copy-button/component.js +1 -1
  64. package/dist/copy-button/index.js +1 -1
  65. package/dist/date/component.js +1 -1
  66. package/dist/date/index.js +1 -1
  67. package/dist/date-functions.js +1 -1
  68. package/dist/date-switcher/component.js +1 -1
  69. package/dist/date-switcher/index.js +1 -1
  70. package/dist/footer/component.js +1 -1
  71. package/dist/footer/contact-block.js +1 -1
  72. package/dist/footer/index.js +1 -1
  73. package/dist/form/component.js +1 -1
  74. package/dist/form/components/form-footer/index.js +1 -1
  75. package/dist/form/components/form-loading/index.js +1 -1
  76. package/dist/form/components/form-wrapper/index.js +1 -1
  77. package/dist/form/components/index.d.ts +1 -1
  78. package/dist/form/components/index.js +1 -1
  79. package/dist/form/index.js +1 -1
  80. package/dist/form/templates/base-form/index.js +1 -1
  81. package/dist/form/templates/filters-form/index.js +1 -1
  82. package/dist/form/templates/rest-form/form.js +1 -1
  83. package/dist/form/templates/rest-form/index.js +1 -1
  84. package/dist/form/utils/get-default-values.js +1 -1
  85. package/dist/form-control/component.js +1 -1
  86. package/dist/form-control/index.js +1 -1
  87. package/dist/grid/col/component.js +1 -1
  88. package/dist/grid/col/index.js +1 -1
  89. package/dist/grid/component.js +1 -1
  90. package/dist/grid/index.js +1 -1
  91. package/dist/grid/row/component.js +1 -1
  92. package/dist/grid/row/index.js +1 -1
  93. package/dist/header-search/component.js +1 -1
  94. package/dist/header-search/index.js +1 -1
  95. package/dist/heading/component.js +1 -1
  96. package/dist/heading/index.js +1 -1
  97. package/dist/hooks/index.js +1 -1
  98. package/dist/hooks/use-crud-form-requests/index.js +1 -1
  99. package/dist/hooks/use-get-one/index.js +1 -1
  100. package/dist/icon-button/component.js +1 -1
  101. package/dist/icon-button/index.js +1 -1
  102. package/dist/image/component.js +1 -1
  103. package/dist/image/constants.js +1 -1
  104. package/dist/image/image-base.js +1 -1
  105. package/dist/image/index.js +1 -1
  106. package/dist/image/use-image-render-component.js +1 -1
  107. package/dist/image/utils.js +1 -1
  108. package/dist/image-gallery/component.js +1 -1
  109. package/dist/image-gallery/components/header/index.js +1 -1
  110. package/dist/image-gallery/components/header-info-block/index.js +1 -1
  111. package/dist/image-gallery/components/image-viewer/index.js +1 -1
  112. package/dist/image-gallery/components/image-viewer/slide.js +1 -1
  113. package/dist/image-gallery/components/index.js +1 -1
  114. package/dist/image-gallery/index.js +1 -1
  115. package/dist/image-uploader/component.js +1 -1
  116. package/dist/image-uploader/index.js +1 -1
  117. package/dist/index-20b82bc1.js +1 -0
  118. package/dist/{index-87865a01.js → index-39947a84.js} +1 -1
  119. package/dist/{index-19d66436.js → index-40894d0d.js} +1 -1
  120. package/dist/{index-e2a7f76c.js → index-4c62650c.js} +1 -1
  121. package/dist/index-6fcb31d7.js +1 -0
  122. package/dist/{index-a08d34d7.js → index-75c6bb79.js} +1 -1
  123. package/dist/{index-7321d835.js → index-9c8e048e.js} +1 -1
  124. package/dist/{index-a554a369.js → index-a4b21310.js} +1 -1
  125. package/dist/{index-a4462ff9.js → index-bb064189.js} +1 -1
  126. package/dist/{index-400c129e.js → index-cb97ab31.js} +1 -1
  127. package/dist/index-d89d5ad8.js +1 -0
  128. package/dist/index-ef0f01b3.js +1 -0
  129. package/dist/{index-f17e289c.js → index-ff87150e.js} +1 -1
  130. package/dist/index.css +1 -1
  131. package/dist/info-block-header/component.js +1 -1
  132. package/dist/info-block-header/index.js +1 -1
  133. package/dist/info-block-item/component.js +1 -1
  134. package/dist/info-block-item/index.js +1 -1
  135. package/dist/input/component.js +1 -1
  136. package/dist/input/index.js +1 -1
  137. package/dist/input-autocomplete/autocomplete-field/index.js +1 -1
  138. package/dist/input-autocomplete/component.js +1 -1
  139. package/dist/input-autocomplete/index.js +1 -1
  140. package/dist/input-ghost/component.js +1 -1
  141. package/dist/input-ghost/index.js +1 -1
  142. package/dist/{isSymbol-1e9a7112.js → isSymbol-c032520c.js} +1 -1
  143. package/dist/link/component.js +1 -1
  144. package/dist/link/index.js +1 -1
  145. package/dist/list-allert/component.js +1 -1
  146. package/dist/list-allert/index.js +1 -1
  147. package/dist/masked-input/component.js +1 -1
  148. package/dist/masked-input/index.js +1 -1
  149. package/dist/menu/component.js +1 -1
  150. package/dist/menu/components/content-header/index.js +1 -1
  151. package/dist/menu/components/index.js +1 -1
  152. package/dist/menu/components/menu-avatar/index.js +1 -1
  153. package/dist/menu/components/menu-back-button/index.js +1 -1
  154. package/dist/menu/components/menu-button/index.js +1 -1
  155. package/dist/menu/components/menu-buttons-list/index.js +1 -1
  156. package/dist/menu/components/user-button/index.js +1 -1
  157. package/dist/menu/index.js +1 -1
  158. package/dist/message/component.js +1 -1
  159. package/dist/message/index.js +1 -1
  160. package/dist/modal/components/modals/index.js +1 -1
  161. package/dist/modal/components/modals/modal.js +1 -1
  162. package/dist/modal/context.js +1 -1
  163. package/dist/modal/hooks/use-modal.js +1 -1
  164. package/dist/modal/index.js +1 -1
  165. package/dist/modal/utils/delete-property-by-id.js +1 -1
  166. package/dist/not-found/component.js +1 -1
  167. package/dist/not-found/index.js +1 -1
  168. package/dist/notification/component.js +1 -1
  169. package/dist/notification/index.js +1 -1
  170. package/dist/{parse-query-params-d25242df.js → parse-query-params-9b9adef7.js} +1 -1
  171. package/dist/picker-button/common/index.js +1 -1
  172. package/dist/picker-button/common/labeled-button/index.js +1 -1
  173. package/dist/picker-button/component.js +1 -1
  174. package/dist/picker-button/field/Component.js +1 -1
  175. package/dist/picker-button/field/index.js +1 -1
  176. package/dist/picker-button/index.js +1 -1
  177. package/dist/popover/component.js +1 -1
  178. package/dist/popover/index.js +1 -1
  179. package/dist/progress-bar/component.js +1 -1
  180. package/dist/progress-bar/index.js +1 -1
  181. package/dist/progress-index/component.js +1 -1
  182. package/dist/progress-index/index.js +1 -1
  183. package/dist/radio/component.js +1 -1
  184. package/dist/radio/index.js +1 -1
  185. package/dist/radio-group/component.js +1 -1
  186. package/dist/radio-group/index.js +1 -1
  187. package/dist/radio-groups/component.js +1 -1
  188. package/dist/radio-groups/index.js +1 -1
  189. package/dist/select/component.js +1 -1
  190. package/dist/select/components/base-select/component.js +1 -1
  191. package/dist/select/components/base-select/index.js +1 -1
  192. package/dist/select/components/field/component.js +1 -1
  193. package/dist/select/components/field/index.js +1 -1
  194. package/dist/select/components/index.js +1 -1
  195. package/dist/select/components/native-select/component.js +1 -1
  196. package/dist/select/components/native-select/index.js +1 -1
  197. package/dist/select/components/option/component.js +1 -1
  198. package/dist/select/components/option/index.js +1 -1
  199. package/dist/select/components/options-list/component.js +1 -1
  200. package/dist/select/components/options-list/index.js +1 -1
  201. package/dist/select/components/virtual-options-list/component.js +1 -1
  202. package/dist/select/components/virtual-options-list/index.js +1 -1
  203. package/dist/select/index.js +1 -1
  204. package/dist/select/presets/index.js +1 -1
  205. package/dist/select/presets/use-lazy-loading/index.js +1 -1
  206. package/dist/select/presets/use-select-with-loading/hook.js +1 -1
  207. package/dist/sidepanel-header/component.js +1 -1
  208. package/dist/sidepanel-header/index.js +1 -1
  209. package/dist/space/Item.js +1 -1
  210. package/dist/space/component.js +1 -1
  211. package/dist/space/index.js +1 -1
  212. package/dist/stepped-progress-bar/index.js +1 -1
  213. package/dist/stepped-progress-bar/step-bar.js +1 -1
  214. package/dist/suffix-input/component.js +1 -1
  215. package/dist/suffix-input/index.js +1 -1
  216. package/dist/super-list-header/component.js +1 -1
  217. package/dist/super-list-header/index.js +1 -1
  218. package/dist/super-list-item/component.js +1 -1
  219. package/dist/super-list-item/index.js +1 -1
  220. package/dist/switch/component.js +1 -1
  221. package/dist/switch/index.js +1 -1
  222. package/dist/table/columns.js +1 -1
  223. package/dist/table/component.js +1 -1
  224. package/dist/table/components/cell/component.js +1 -1
  225. package/dist/table/components/cell/index.js +1 -1
  226. package/dist/table/components/cells/index.js +1 -1
  227. package/dist/table/components/empty-list/index.js +1 -1
  228. package/dist/table/components/error/index.js +1 -1
  229. package/dist/table/components/loading/index.js +1 -1
  230. package/dist/table/components/pagination/index.js +1 -1
  231. package/dist/table/components/table-header/index.js +1 -1
  232. package/dist/table/hooks/use-table-data.js +1 -1
  233. package/dist/table/index.d.ts +1 -1
  234. package/dist/table/index.js +1 -1
  235. package/dist/table/table.js +1 -1
  236. package/dist/table/utils/add-query-param.js +1 -1
  237. package/dist/table/utils/get-query-from-url.js +1 -1
  238. package/dist/table/utils/index.d.ts +1 -1
  239. package/dist/table/utils/index.js +1 -1
  240. package/dist/table/utils/parse-query-params.js +1 -1
  241. package/dist/table/utils/prepare-rows.js +1 -1
  242. package/dist/table/utils/query-adapter.js +1 -1
  243. package/dist/table/utils/remove-query-param.js +1 -1
  244. package/dist/table/utils/reset-query-param.js +1 -1
  245. package/dist/table-status/component.js +1 -1
  246. package/dist/table-status/index.js +1 -1
  247. package/dist/tag/component.js +1 -1
  248. package/dist/tag/index.js +1 -1
  249. package/dist/tags-list/component.js +1 -1
  250. package/dist/tags-list/index.js +1 -1
  251. package/dist/textarea/component.js +1 -1
  252. package/dist/textarea/index.js +1 -1
  253. package/dist/theme-provider/default-themes.d.ts +80 -72
  254. package/dist/theme-provider/default-themes.js +1 -1
  255. package/dist/toast/component.js +1 -1
  256. package/dist/toast/index.js +1 -1
  257. package/dist/toast-notifier/component.js +1 -1
  258. package/dist/toast-notifier/index.js +1 -1
  259. package/dist/toast-plate/component.js +1 -1
  260. package/dist/toast-plate/index.js +1 -1
  261. package/dist/tooltip/component.js +1 -1
  262. package/dist/tooltip/index.js +1 -1
  263. package/dist/typography/component.js +1 -1
  264. package/dist/typography/index.js +1 -1
  265. package/dist/typography/text/component.js +1 -1
  266. package/dist/typography/text/index.js +1 -1
  267. package/dist/typography/title/component.js +1 -1
  268. package/dist/typography/title/index.js +1 -1
  269. package/dist/typography/title-responsive/component.js +1 -1
  270. package/dist/typography/title-responsive/index.js +1 -1
  271. package/dist/{use-image-render-component-749fd1fb.js → use-image-render-component-2a1df7a4.js} +1 -1
  272. package/dist/utils/format-date/index.js +1 -1
  273. package/dist/utils/index.js +1 -1
  274. package/dist/utils/show-toast/index.js +1 -1
  275. package/dist/with-suffix/component.js +1 -1
  276. package/dist/with-suffix/index.js +1 -1
  277. package/package.json +1 -1
  278. package/dist/index-0679fb4a.js +0 -1
  279. package/dist/index-3b3576e9.js +0 -1
  280. package/dist/index-5a43d2a2.js +0 -1
  281. package/dist/index-6c47f166.js +0 -1
  282. package/dist/vars/alpha-colors.css +0 -111
  283. /package/dist/{_commonjsHelpers-d18ade07.js → _commonjsHelpers-34911093.js} +0 -0
  284. /package/dist/{_tslib-531dfe1b-07c947cb.js → _tslib-531dfe1b-4416fc82.js} +0 -0
  285. /package/dist/{colors.module-bad46263.js → colors.module-23323d33.js} +0 -0
  286. /package/dist/{common.module-e63bd441.js → common.module-cf8a5ddf.js} +0 -0
  287. /package/dist/{component-6f9a7019.d.ts → component-3f36c547.d.ts} +0 -0
  288. /package/dist/{component-6f9a7019.js → component-3f36c547.js} +0 -0
  289. /package/dist/{component-c24290f5.d.ts → component-f08b67d8.d.ts} +0 -0
  290. /package/dist/{contact-block-66512ecd.d.ts → contact-block-6ca930da.d.ts} +0 -0
  291. /package/dist/{contact-block-66512ecd.js → contact-block-6ca930da.js} +0 -0
  292. /package/dist/{gutters.module-95d8db23.js → gutters.module-e4e29a33.js} +0 -0
  293. /package/dist/{index-a81131ad.js → index-3453d74c.js} +0 -0
  294. /package/dist/{index-19d66436.d.ts → index-40894d0d.d.ts} +0 -0
  295. /package/dist/{index-38643eed.js → index-9f28bbdd.js} +0 -0
  296. /package/dist/{intersection-observer-37e23a64.js → intersection-observer-25cbb41b.js} +0 -0
  297. /package/dist/{parse-query-params-d25242df.d.ts → parse-query-params-9b9adef7.d.ts} +0 -0
  298. /package/dist/{slide-a657c000.d.ts → slide-9ef9f421.d.ts} +0 -0
  299. /package/dist/{slide-a657c000.js → slide-9ef9f421.js} +0 -0
  300. /package/dist/{step-bar-605b8ce2.d.ts → step-bar-e84e8bd7.d.ts} +0 -0
  301. /package/dist/{step-bar-605b8ce2.js → step-bar-e84e8bd7.js} +0 -0
  302. /package/dist/{tslib.es6-8ca8591b.js → tslib.es6-881ff0c8.js} +0 -0
  303. /package/dist/{use-image-render-component-749fd1fb.d.ts → use-image-render-component-2a1df7a4.d.ts} +0 -0
@@ -1 +1 @@
1
- import t,{forwardRef as e}from"react";import o from"classnames";import{Typography as r}from"../../../typography/component.js";import"../../../typography/title/index.js";import"../../../tslib.es6-8ca8591b.js";import"../../../typography/title/component.js";import"../../../colors.module-bad46263.js";import"../../../common.module-e63bd441.js";import"../../../typography/text/component.js";import"../../../typography/title-responsive/component.js";var m="index-module_wrapper__Y-b0g",i=e((function(e,i){var p=e.label,a=e.value,n=e.id,l=e.className,s=e.onClick;return t.createElement("button",{className:o(m,l),ref:i,id:n,type:"button",onClick:s},t.createElement(r.Text,{view:"caps",weight:"medium",color:"tertiary"},p),t.createElement(r.Text,{view:"title",weight:"medium",color:"primary"},a))}));export{i as LabeledButton};
1
+ import t,{forwardRef as e}from"react";import o from"classnames";import{Typography as r}from"../../../typography/component.js";import"../../../typography/title/index.js";import"../../../tslib.es6-881ff0c8.js";import"../../../typography/title/component.js";import"../../../colors.module-23323d33.js";import"../../../common.module-cf8a5ddf.js";import"../../../typography/text/component.js";import"../../../typography/title-responsive/component.js";var m="index-module_wrapper__Y-b0g",i=e((function(e,i){var p=e.label,a=e.value,n=e.id,l=e.className,c=e.onClick;return t.createElement("button",{className:o(m,l),ref:i,id:n,type:"button",onClick:c},t.createElement(r.Text,{view:"caps",weight:"medium",color:"tertiary"},p),t.createElement(r.Text,{view:"title",weight:"medium",color:"primary"},a))}));export{i as LabeledButton};
@@ -1 +1 @@
1
- import{_ as o,a as t}from"../tslib.es6-8ca8591b.js";import e,{forwardRef as s}from"react";import r from"classnames";import"../select/component.js";import{BaseSelect as i}from"../select/components/base-select/component.js";import"../form-control/component.js";import{Optgroup as n}from"../select/components/optgroup/component.js";import{Option as p}from"../select/components/option/component.js";import{OptionsList as m}from"../select/components/options-list/component.js";import"react-virtual";import"../utils/get-service-error/index.js";import"../toast-notifier/component.js";import"../intersection-observer-37e23a64.js";import{Field as c}from"./field/Component.js";import"../select/components/arrow/component.js";import"../select/components/field/component.js";import"../hooks/useFocus/index.js";import"../select/utils.js";import"react-merge-refs";import"downshift";import"resize-observer";import"../__internal/utils/getDataTestId.js";import"../popover/component.js";import"react-popper";import"react-transition-group";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";import"../select/components/native-select/component.js";import"../skeleton/component.js";import"../select/components/checkmark/component.js";import"../_tslib-531dfe1b-07c947cb.js";import"../button/component.js";import"../loader/component.js";import"../utils/get-service-error/is-axios-error.js";import"../utils/get-service-error/is-network-error.js";import"../toast-plate/component.js";import"../CloseS-1cf477a0.js";import"../toast-notifier/use-timer.js";import"../icon-button/component.js";var l="index-module_container__cXs3V",a=s((function(s,a){var j=s.OptionsList,d=s.Optgroup,f=s.Option,u=s.view,v=s.loading,g=s.size,b=void 0===g?"m":g,O=s.Field,k=s.className,_=s.leftAddons,w=s.icon,x=s.fieldComponent,z=void 0===x?"button":x,C=o(s,["OptionsList","Optgroup","Option","view","loading","size","Field","className","leftAddons","icon","fieldComponent"]);return e.createElement(i,t({},C,{ref:a,Option:f||p,Field:O||c,size:"m"===b?"m":"s",fieldProps:{view:u,loading:v,buttonSize:b,leftAddons:_,icon:w,fieldComponent:z},Optgroup:d||n,OptionsList:j||m,className:r(l,k),selected:[],closeOnSelect:!0}))}));export{a as PickerButton};
1
+ import{_ as o,a as t}from"../tslib.es6-881ff0c8.js";import e,{forwardRef as s}from"react";import r from"classnames";import"../select/component.js";import{BaseSelect as i}from"../select/components/base-select/component.js";import"../form-control/component.js";import{Optgroup as n}from"../select/components/optgroup/component.js";import{Option as p}from"../select/components/option/component.js";import{OptionsList as m}from"../select/components/options-list/component.js";import"react-virtual";import"../utils/get-service-error/index.js";import"../toast-notifier/component.js";import"../intersection-observer-25cbb41b.js";import{Field as c}from"./field/Component.js";import"../select/components/arrow/component.js";import"../select/components/field/component.js";import"../hooks/useFocus/index.js";import"../select/utils.js";import"react-merge-refs";import"downshift";import"resize-observer";import"../__internal/utils/getDataTestId.js";import"../popover/component.js";import"react-popper";import"react-transition-group";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";import"../select/components/native-select/component.js";import"../skeleton/component.js";import"../select/components/checkmark/component.js";import"../_tslib-531dfe1b-4416fc82.js";import"../button/component.js";import"../loader/component.js";import"../utils/get-service-error/is-axios-error.js";import"../utils/get-service-error/is-network-error.js";import"../toast-plate/component.js";import"../CloseS-f19e9906.js";import"../toast-notifier/use-timer.js";import"../icon-button/component.js";var l="index-module_container__cXs3V",a=s((function(s,a){var j=s.OptionsList,d=s.Optgroup,f=s.Option,u=s.view,v=s.loading,b=s.size,g=void 0===b?"m":b,O=s.Field,k=s.className,_=s.leftAddons,w=s.icon,x=s.fieldComponent,z=void 0===x?"button":x,C=o(s,["OptionsList","Optgroup","Option","view","loading","size","Field","className","leftAddons","icon","fieldComponent"]);return e.createElement(i,t({},C,{ref:a,Option:f||p,Field:O||c,size:"m"===g?"m":"s",fieldProps:{view:u,loading:v,buttonSize:g,leftAddons:_,icon:w,fieldComponent:z},Optgroup:d||n,OptionsList:j||m,className:r(l,k),selected:[],closeOnSelect:!0}))}));export{a as PickerButton};
@@ -1 +1 @@
1
- import{_ as e,a as o}from"../../tslib.es6-8ca8591b.js";import n from"react";import r from"classnames";import{Button as t}from"../../button/component.js";import{IconButton as i}from"../../icon-button/component.js";import"react-merge-refs";import"../../hooks/useFocus/index.js";import"../../loader/component.js";var s={iconContainer:"index-module_iconContainer__XeDrL",open:"index-module_open__OjX8o"},a=function(a){var l=a.buttonSize,m=void 0===l?"m":l,c=a.view,p=a.label,d=a.open;a.multiple,a.rightAddons,a.Arrow;var u=a.innerProps,v=a.className;a.selected,a.selectedMultiple,a.valueRenderer;var b=a.fieldComponent,f=e(a,["buttonSize","view","label","open","multiple","rightAddons","Arrow","innerProps","className","selected","selectedMultiple","valueRenderer","fieldComponent"]),_=o(o({},f),u);return"button"===b?n.createElement(t,o({},_,{rightAddons:f.icon?n.createElement("span",{className:r(s.iconContainer,d&&s.open)},f.icon):null,block:!0,view:c,size:m,className:r(s.component,"primary"===c&&s.primary,v)}),p):n.createElement(i,o({},_,{icon:f.icon,view:"secondary"===c?"secondary":"ghost",size:"xs"===m?"s":m}))};export{a as Field};
1
+ import{_ as e,a as o}from"../../tslib.es6-881ff0c8.js";import n from"react";import r from"classnames";import{Button as t}from"../../button/component.js";import{IconButton as i}from"../../icon-button/component.js";import"react-merge-refs";import"../../hooks/useFocus/index.js";import"../../loader/component.js";var s={iconContainer:"index-module_iconContainer__XeDrL",open:"index-module_open__OjX8o"},a=function(a){var l=a.buttonSize,m=void 0===l?"m":l,c=a.view,p=a.label,d=a.open;a.multiple,a.rightAddons,a.Arrow;var u=a.innerProps,f=a.className;a.selected,a.selectedMultiple,a.valueRenderer;var v=a.fieldComponent,b=e(a,["buttonSize","view","label","open","multiple","rightAddons","Arrow","innerProps","className","selected","selectedMultiple","valueRenderer","fieldComponent"]),_=o(o({},b),u);return"button"===v?n.createElement(t,o({},_,{rightAddons:b.icon?n.createElement("span",{className:r(s.iconContainer,d&&s.open)},b.icon):null,block:!0,view:c,size:m,className:r(s.component,"primary"===c&&s.primary,f)}),p):n.createElement(i,o({},_,{icon:b.icon,view:"secondary"===c?"secondary":"ghost",size:"xs"===m?"s":m}))};export{a as Field};
@@ -1 +1 @@
1
- export{Field}from"./Component.js";import"../../tslib.es6-8ca8591b.js";import"react";import"classnames";import"../../button/component.js";import"react-merge-refs";import"../../hooks/useFocus/index.js";import"../../loader/component.js";import"../../icon-button/component.js";
1
+ export{Field}from"./Component.js";import"../../tslib.es6-881ff0c8.js";import"react";import"classnames";import"../../button/component.js";import"react-merge-refs";import"../../hooks/useFocus/index.js";import"../../loader/component.js";import"../../icon-button/component.js";
@@ -1 +1 @@
1
- export{PickerButton}from"./component.js";export{LabeledButton}from"./common/labeled-button/index.js";import"../tslib.es6-8ca8591b.js";import"react";import"classnames";import"../select/component.js";import"../select/components/arrow/component.js";import"../select/components/base-select/component.js";import"react-merge-refs";import"downshift";import"resize-observer";import"../__internal/utils/getDataTestId.js";import"../popover/component.js";import"react-popper";import"react-transition-group";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";import"../select/utils.js";import"../select/components/native-select/component.js";import"../select/components/field/component.js";import"../form-control/component.js";import"../hooks/useFocus/index.js";import"../select/components/optgroup/component.js";import"../select/components/option/component.js";import"../skeleton/component.js";import"../select/components/checkmark/component.js";import"../select/components/options-list/component.js";import"../_tslib-531dfe1b-07c947cb.js";import"../button/component.js";import"../loader/component.js";import"react-virtual";import"../utils/get-service-error/index.js";import"../utils/get-service-error/is-axios-error.js";import"../utils/get-service-error/is-network-error.js";import"../toast-notifier/component.js";import"../toast-plate/component.js";import"../CloseS-1cf477a0.js";import"../toast-notifier/use-timer.js";import"../intersection-observer-37e23a64.js";import"./field/Component.js";import"../icon-button/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-bad46263.js";import"../common.module-e63bd441.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
1
+ export{PickerButton}from"./component.js";export{LabeledButton}from"./common/labeled-button/index.js";import"../tslib.es6-881ff0c8.js";import"react";import"classnames";import"../select/component.js";import"../select/components/arrow/component.js";import"../select/components/base-select/component.js";import"react-merge-refs";import"downshift";import"resize-observer";import"../__internal/utils/getDataTestId.js";import"../popover/component.js";import"react-popper";import"react-transition-group";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";import"../select/utils.js";import"../select/components/native-select/component.js";import"../select/components/field/component.js";import"../form-control/component.js";import"../hooks/useFocus/index.js";import"../select/components/optgroup/component.js";import"../select/components/option/component.js";import"../skeleton/component.js";import"../select/components/checkmark/component.js";import"../select/components/options-list/component.js";import"../_tslib-531dfe1b-4416fc82.js";import"../button/component.js";import"../loader/component.js";import"react-virtual";import"../utils/get-service-error/index.js";import"../utils/get-service-error/is-axios-error.js";import"../utils/get-service-error/is-network-error.js";import"../toast-notifier/component.js";import"../toast-plate/component.js";import"../CloseS-f19e9906.js";import"../toast-notifier/use-timer.js";import"../intersection-observer-25cbb41b.js";import"./field/Component.js";import"../icon-button/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-23323d33.js";import"../common.module-cf8a5ddf.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
@@ -1 +1 @@
1
- import{a as e}from"../tslib.es6-8ca8591b.js";import t,{useState as o,useCallback as n,useEffect as r}from"react";import{usePopper as i}from"react-popper";import{CSSTransition as a}from"react-transition-group";import m from"classnames";import{Portal as s}from"../portal/component.js";import{stackingOrder as c}from"../stack/context.js";import{Stack as l}from"../stack/component.js";import"react-dom";import"../portal/utils.js";var p={component:"index-module_component__M4dAZ",arrow:"index-module_arrow__rhviH",enter:"index-module_enter__3MWR1",enterActive:"index-module_enterActive__pPMD0",exit:"index-module_exit__4hKAj",exitActive:"index-module_exitActive__vWe9J"},d={timeout:150},u={enter:p.enter,enterActive:p.enterActive,exit:p.exit,exitActive:p.exitActive},f=function(f){var v=f.children,x=f.getPortalContainer,_=f.transition,A=void 0===_?d:_,w=f.anchorElement,E=f.offset,h=void 0===E?[0,0]:E,N=f.withArrow,j=void 0!==N&&N,P=f.withTransition,b=void 0===P||P,y=f.position,C=void 0===y?"left":y,g=f.preventFlip,k=f.popperClassName,D=f.arrowClassName,I=f.className,M=f.open,O=f.dataTestId,z=f.update,R=f.transitionDuration,T=void 0===R?A.timeout+"ms":R,W=f.zIndex,F=void 0===W?c.POPOVER:W,H=o(w),J=H[0],K=H[1],V=o(null),Z=V[0],q=V[1],B=o(null),G=B[0],L=B[1],Q=n((function(){var e=[{name:"offset",options:{offset:h}}];return j&&e.push({name:"arrow",options:{element:G}}),g&&e.push({name:"flip",options:{fallbackPlacements:[]}}),e}),[h,j,g,G]),S=i(J,Z,{placement:C,modifiers:Q()}),U=S.styles,X=S.attributes,Y=S.update;r((function(){K(w)}),[w]),r((function(){Y&&Y()}),[Y,G,v]),r((function(){z&&Y&&(z.current=Y)}),[Y,z]);var $=function(o,n){return t.createElement("div",e({ref:q,style:e({zIndex:o},U.popper),"data-test-id":O,className:m(p.component,I)},X.popper),t.createElement("div",{className:m(p.inner,k),style:n},v,j&&t.createElement("div",{ref:L,style:U.arrow,className:m(p.arrow,D)})))};return t.createElement(l,{value:F},(function(o){return t.createElement(s,{getPortalContainer:x},b?t.createElement(a,e({unmountOnExit:!0,classNames:u},A,{in:M}),$(o,{transitionDuration:T})):M&&$(o))}))};export{f as Popover};
1
+ import{a as e}from"../tslib.es6-881ff0c8.js";import t,{useState as o,useCallback as n,useEffect as r}from"react";import{usePopper as i}from"react-popper";import{CSSTransition as a}from"react-transition-group";import m from"classnames";import{Portal as s}from"../portal/component.js";import{stackingOrder as c}from"../stack/context.js";import{Stack as l}from"../stack/component.js";import"react-dom";import"../portal/utils.js";var p={component:"index-module_component__M4dAZ",arrow:"index-module_arrow__rhviH",enter:"index-module_enter__3MWR1",enterActive:"index-module_enterActive__pPMD0",exit:"index-module_exit__4hKAj",exitActive:"index-module_exitActive__vWe9J"},d={timeout:150},u={enter:p.enter,enterActive:p.enterActive,exit:p.exit,exitActive:p.exitActive},f=function(f){var v=f.children,x=f.getPortalContainer,_=f.transition,A=void 0===_?d:_,w=f.anchorElement,E=f.offset,h=void 0===E?[0,0]:E,N=f.withArrow,j=void 0!==N&&N,P=f.withTransition,y=void 0===P||P,C=f.position,b=void 0===C?"left":C,g=f.preventFlip,k=f.popperClassName,D=f.arrowClassName,I=f.className,M=f.open,O=f.dataTestId,z=f.update,R=f.transitionDuration,T=void 0===R?A.timeout+"ms":R,W=f.zIndex,F=void 0===W?c.POPOVER:W,H=o(w),J=H[0],K=H[1],V=o(null),Z=V[0],q=V[1],B=o(null),G=B[0],L=B[1],Q=n((function(){var e=[{name:"offset",options:{offset:h}}];return j&&e.push({name:"arrow",options:{element:G}}),g&&e.push({name:"flip",options:{fallbackPlacements:[]}}),e}),[h,j,g,G]),S=i(J,Z,{placement:b,modifiers:Q()}),U=S.styles,X=S.attributes,Y=S.update;r((function(){K(w)}),[w]),r((function(){Y&&Y()}),[Y,G,v]),r((function(){z&&Y&&(z.current=Y)}),[Y,z]);var $=function(o,n){return t.createElement("div",e({ref:q,style:e({zIndex:o},U.popper),"data-test-id":O,className:m(p.component,I)},X.popper),t.createElement("div",{className:m(p.inner,k),style:n},v,j&&t.createElement("div",{ref:L,style:U.arrow,className:m(p.arrow,D)})))};return t.createElement(l,{value:F},(function(o){return t.createElement(s,{getPortalContainer:x},y?t.createElement(a,e({unmountOnExit:!0,classNames:u},A,{in:M}),$(o,{transitionDuration:T})):M&&$(o))}))};export{f as Popover};
@@ -1 +1 @@
1
- export{Popover}from"./component.js";import"../tslib.es6-8ca8591b.js";import"react";import"react-popper";import"react-transition-group";import"classnames";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";
1
+ export{Popover}from"./component.js";import"../tslib.es6-881ff0c8.js";import"react";import"react-popper";import"react-transition-group";import"classnames";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";
@@ -1 +1 @@
1
- import e from"react";import o from"classnames";import{Typography as i}from"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-8ca8591b.js";import"../typography/title/component.js";import"../colors.module-bad46263.js";import"../common.module-e63bd441.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var r={progress_bar:"index-module_progress_bar__IyWaN",block:"index-module_block__hDRE1",inner:"index-module_inner__L-nUW",indicator:"index-module_indicator__F5x4P",multicolor:"index-module_multicolor__m9mPD",_30:"index-module__30__6cywX",_60:"index-module__60__jXfAf",negative:"index-module_negative__8XFWO",positive:"index-module_positive__ikFFz",accent:"index-module_accent__zSev5",secondary:"index-module_secondary__UTeRl",warning:"index-module_warning__vYomw"},t=function(t){var m,n,l=t.value,_=void 0===l?0:l,d=t.block,a=t.renderValue,c=void 0===a||a,s=t.className,p=void 0===s?"":s,u=t.view,v=void 0===u?"multicolor":u,x=Number(_)&&Number(_)>=0?_:0;return e.createElement("div",{className:o(r.progress_bar,p,(m={},m[r.block]=d,m))},e.createElement("div",{style:{width:x+"%"},className:o(r.indicator,r[v],(n={},n[r._30]=x>=30&&"multicolor"===v,n[r._60]=x>=60&&"multicolor"===v,n))}),c&&e.createElement("div",{className:r.inner},e.createElement(i.Text,{view:"title",weight:"medium",color:"primary"},(x>100?100:x)+" %")))};export{t as ProgressBar};
1
+ import e from"react";import o from"classnames";import{Typography as i}from"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-881ff0c8.js";import"../typography/title/component.js";import"../colors.module-23323d33.js";import"../common.module-cf8a5ddf.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var r={progress_bar:"index-module_progress_bar__IyWaN",block:"index-module_block__hDRE1",inner:"index-module_inner__L-nUW",indicator:"index-module_indicator__F5x4P",multicolor:"index-module_multicolor__m9mPD",_30:"index-module__30__6cywX",_60:"index-module__60__jXfAf",negative:"index-module_negative__8XFWO",positive:"index-module_positive__ikFFz",accent:"index-module_accent__zSev5",secondary:"index-module_secondary__UTeRl",warning:"index-module_warning__vYomw"},t=function(t){var m,n,l=t.value,d=void 0===l?0:l,_=t.block,a=t.renderValue,c=void 0===a||a,s=t.className,p=void 0===s?"":s,u=t.view,v=void 0===u?"multicolor":u,x=Number(d)&&Number(d)>=0?d:0;return e.createElement("div",{className:o(r.progress_bar,p,(m={},m[r.block]=_,m))},e.createElement("div",{style:{width:x+"%"},className:o(r.indicator,r[v],(n={},n[r._30]=x>=30&&"multicolor"===v,n[r._60]=x>=60&&"multicolor"===v,n))}),c&&e.createElement("div",{className:r.inner},e.createElement(i.Text,{view:"title",weight:"medium",color:"primary"},(x>100?100:x)+" %")))};export{t as ProgressBar};
@@ -1 +1 @@
1
- export{ProgressBar}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-8ca8591b.js";import"../typography/title/component.js";import"../colors.module-bad46263.js";import"../common.module-e63bd441.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
1
+ export{ProgressBar}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-881ff0c8.js";import"../typography/title/component.js";import"../colors.module-23323d33.js";import"../common.module-cf8a5ddf.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
@@ -1 +1 @@
1
- import{_ as e,a as t}from"../tslib.es6-8ca8591b.js";import o from"react";import{ProgressBar as r}from"../progress-bar/component.js";import{Typography as i}from"../typography/component.js";import"classnames";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-bad46263.js";import"../common.module-e63bd441.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var m="index-module_progress_index__ocqgT",a="index-module_text__xbaIJ",p=function(p){var s=p.onClick,l=p.value,n=p.title,c=p.subtitle,d=e(p,["onClick","value","title","subtitle"]);return o.createElement("button",{type:"button",onClick:s,disabled:!s,className:m},o.createElement("div",{className:a},o.createElement(i.Text,{tag:"div",view:"title",color:"primary",weight:"medium"},n),c&&o.createElement(i.Text,{tag:"div",view:"caps",color:"secondary",weight:"medium"},c)),o.createElement(r,t({value:l},d)))};export{p as ProgressIndex};
1
+ import{_ as e,a as t}from"../tslib.es6-881ff0c8.js";import o from"react";import{ProgressBar as r}from"../progress-bar/component.js";import{Typography as i}from"../typography/component.js";import"classnames";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-23323d33.js";import"../common.module-cf8a5ddf.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var m="index-module_progress_index__ocqgT",a="index-module_text__xbaIJ",p=function(p){var s=p.onClick,l=p.value,n=p.title,c=p.subtitle,d=e(p,["onClick","value","title","subtitle"]);return o.createElement("button",{type:"button",onClick:s,disabled:!s,className:m},o.createElement("div",{className:a},o.createElement(i.Text,{tag:"div",view:"title",color:"primary",weight:"medium"},n),c&&o.createElement(i.Text,{tag:"div",view:"caps",color:"secondary",weight:"medium"},c)),o.createElement(r,t({value:l},d)))};export{p as ProgressIndex};
@@ -1 +1 @@
1
- export{ProgressIndex}from"./component.js";import"../tslib.es6-8ca8591b.js";import"react";import"../progress-bar/component.js";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-bad46263.js";import"../common.module-e63bd441.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
1
+ export{ProgressIndex}from"./component.js";import"../tslib.es6-881ff0c8.js";import"react";import"../progress-bar/component.js";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-23323d33.js";import"../common.module-cf8a5ddf.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
@@ -1 +1 @@
1
- import{_ as e,a}from"../tslib.es6-8ca8591b.js";import d,{forwardRef as n,useRef as l}from"react";import c from"react-merge-refs";import o from"classnames";import{useFocus as t}from"../hooks/useFocus/index.js";var s={container:"index-module_container__NjKG8",checked:"index-module_checked__DggTk",disabled:"index-module_disabled__I93VR",circle:"index-module_circle__IS2Pq",label:"index-module_label__P4KpD",hint:"index-module_hint__jS9lo",focused:"index-module_focused__uweBa",m:"index-module_m__LBuKe",s:"index-module_s__IS3y5",content:"index-module_content__u8t0O",start:"index-module_start__rPJkZ",center:"index-module_center__e5lXo",addons:"index-module_addons__2cNoB",block:"index-module_block__Qhaf7"},i=n((function(n,i){var m,_=n.onChange,r=n.className,u=n.name,b=n.disabled,h=n.dataTestId,k=n.label,x=n.checked,p=n.hint,f=n.size,N=void 0===f?"m":f,g=n.align,E=void 0===g?"center":g,I=n.addons,j=n.block,v=e(n,["onChange","className","name","disabled","dataTestId","label","checked","hint","size","align","addons","block"]),y=l(null),B=t(y,"keyboard")[0];return d.createElement("label",{className:o(s.container,s[N],s[E],r,(m={},m[s.disabled]=b,m[s.checked]=x,m[s.focused]=B,m[s.block]=j,m)),ref:c([y,i])},d.createElement("input",a({type:"radio",onChange:function(e){_&&_(e,{checked:e.target.checked,name:u})},"data-test-id":h,disabled:b,checked:x,name:u},v)),d.createElement("span",{className:s.circle}),d.createElement("span",{className:s.content},d.createElement("span",{className:s.label},k),p&&d.createElement("span",{className:s.hint},p)),I&&d.createElement("span",{className:s.addons},I))}));export{i as Radio};
1
+ import{_ as e,a}from"../tslib.es6-881ff0c8.js";import d,{forwardRef as n,useRef as l}from"react";import c from"react-merge-refs";import o from"classnames";import{useFocus as t}from"../hooks/useFocus/index.js";var s={container:"index-module_container__NjKG8",checked:"index-module_checked__DggTk",disabled:"index-module_disabled__I93VR",circle:"index-module_circle__IS2Pq",label:"index-module_label__P4KpD",hint:"index-module_hint__jS9lo",focused:"index-module_focused__uweBa",m:"index-module_m__LBuKe",s:"index-module_s__IS3y5",content:"index-module_content__u8t0O",start:"index-module_start__rPJkZ",center:"index-module_center__e5lXo",addons:"index-module_addons__2cNoB",block:"index-module_block__Qhaf7"},i=n((function(n,i){var m,_=n.onChange,r=n.className,u=n.name,b=n.disabled,h=n.dataTestId,k=n.label,x=n.checked,f=n.hint,p=n.size,N=void 0===p?"m":p,g=n.align,E=void 0===g?"center":g,I=n.addons,j=n.block,v=e(n,["onChange","className","name","disabled","dataTestId","label","checked","hint","size","align","addons","block"]),y=l(null),B=t(y,"keyboard")[0];return d.createElement("label",{className:o(s.container,s[N],s[E],r,(m={},m[s.disabled]=b,m[s.checked]=x,m[s.focused]=B,m[s.block]=j,m)),ref:c([y,i])},d.createElement("input",a({type:"radio",onChange:function(e){_&&_(e,{checked:e.target.checked,name:u})},"data-test-id":h,disabled:b,checked:x,name:u},v)),d.createElement("span",{className:s.circle}),d.createElement("span",{className:s.content},d.createElement("span",{className:s.label},k),f&&d.createElement("span",{className:s.hint},f)),I&&d.createElement("span",{className:s.addons},I))}));export{i as Radio};
@@ -1 +1 @@
1
- export{Radio}from"./component.js";import"../tslib.es6-8ca8591b.js";import"react";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";
1
+ export{Radio}from"./component.js";import"../tslib.es6-881ff0c8.js";import"react";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";
@@ -1 +1 @@
1
- import e from"react";import t from"classnames";import{FlexColumns as o}from"../flex-columns/component.js";import{Radio as r}from"../radio/component.js";import{Typography as n}from"../typography/component.js";import"../tslib.es6-8ca8591b.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-bad46263.js";import"../common.module-e63bd441.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var i="index-module_text__OqiF5",m="index-module_subtitle__bsdlx",a="index-module_error__UDYSU",l="index-module_buttons_wrap__6IipS",c="index-module_buttons_wrap_error__kYt2M",s="index-module_button__jxsYA",d="index-module_selected__ctGlJ",p=function(p){var u,_=p.title,y=p.subtitle,g=p.selected,v=p.data,x=void 0===v?[]:v,f=p.onChange,b=p.columns,h=void 0===b?1:b,k=p.gr,j=void 0===k?20:k,w=p.gc,E=void 0===w?20:w,T=p.dataTestId,N=p.error,C=p.view,I=void 0===C?"default":C,Y=function(e){return T?"radio_"+T+"_"+e:"radio_"+e};return e.createElement("div",null,(_||y)&&e.createElement("div",{className:i},_&&e.createElement(n.Text,{tag:"div",view:"title",color:"primary",weight:"bold"},_),y&&e.createElement(n.Text,{className:m,tag:"div",view:"caps",color:"secondary",weight:"medium"},y)),"default"===I?e.createElement(o,{columns:h,gr:j,gc:E},null==x?void 0:x.map((function(t,o){return e.createElement(r,{key:t.key+t.content,dataTestId:Y(o),onChange:function(){return f(t.key)},checked:t.key===g,label:t.content})}))):e.createElement(o,{columns:x.length,gc:0,gr:0,className:t(l,(u={},u[c]=!!N,u))},x.map((function(o){var r;return e.createElement("button",{type:"button",onClick:function(){return f(o.key)},key:o.key+o.content,className:t(s,(r={},r[d]=o.key===g,r))},e.createElement(n.Text,{view:"title",weight:"regular",color:o.key===g?"primary-inverted":"primary"},o.content))}))),!!N&&e.createElement(n.Text,{className:a,view:"caps",weight:"medium",color:"negative"},N))};export{p as RadioGroup};
1
+ import e from"react";import t from"classnames";import{FlexColumns as o}from"../flex-columns/component.js";import{Radio as r}from"../radio/component.js";import{Typography as n}from"../typography/component.js";import"../tslib.es6-881ff0c8.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-23323d33.js";import"../common.module-cf8a5ddf.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var i="index-module_text__OqiF5",m="index-module_subtitle__bsdlx",a="index-module_error__UDYSU",l="index-module_buttons_wrap__6IipS",c="index-module_buttons_wrap_error__kYt2M",d="index-module_button__jxsYA",s="index-module_selected__ctGlJ",p=function(p){var u,_=p.title,y=p.subtitle,g=p.selected,v=p.data,f=void 0===v?[]:v,x=p.onChange,h=p.columns,k=void 0===h?1:h,j=p.gr,b=void 0===j?20:j,w=p.gc,E=void 0===w?20:w,T=p.dataTestId,N=p.error,C=p.view,I=void 0===C?"default":C,Y=function(e){return T?"radio_"+T+"_"+e:"radio_"+e};return e.createElement("div",null,(_||y)&&e.createElement("div",{className:i},_&&e.createElement(n.Text,{tag:"div",view:"title",color:"primary",weight:"bold"},_),y&&e.createElement(n.Text,{className:m,tag:"div",view:"caps",color:"secondary",weight:"medium"},y)),"default"===I?e.createElement(o,{columns:k,gr:b,gc:E},null==f?void 0:f.map((function(t,o){return e.createElement(r,{key:t.key+t.content,dataTestId:Y(o),onChange:function(){return x(t.key)},checked:t.key===g,label:t.content})}))):e.createElement(o,{columns:f.length,gc:0,gr:0,className:t(l,(u={},u[c]=!!N,u))},f.map((function(o){var r;return e.createElement("button",{type:"button",onClick:function(){return x(o.key)},key:o.key+o.content,className:t(d,(r={},r[s]=o.key===g,r))},e.createElement(n.Text,{view:"title",weight:"regular",color:o.key===g?"primary-inverted":"primary"},o.content))}))),!!N&&e.createElement(n.Text,{className:a,view:"caps",weight:"medium",color:"negative"},N))};export{p as RadioGroup};
@@ -1 +1 @@
1
- export{RadioGroup}from"./component.js";import"react";import"classnames";import"../flex-columns/component.js";import"../radio/component.js";import"../tslib.es6-8ca8591b.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-bad46263.js";import"../common.module-e63bd441.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
1
+ export{RadioGroup}from"./component.js";import"react";import"classnames";import"../flex-columns/component.js";import"../radio/component.js";import"../tslib.es6-881ff0c8.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-23323d33.js";import"../common.module-cf8a5ddf.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
@@ -1 +1 @@
1
- import e,{useState as o}from"react";import{C as t}from"../ChevronDownS-1d597b62.js";import n from"classnames";import{Collapse as r}from"../collapse/component.js";import{Divider as l}from"../divider/component.js";import{FlexColumns as i}from"../flex-columns/component.js";import{IconButton as p}from"../icon-button/component.js";import{Padding as m}from"../padding/component.js";import{Radio as c}from"../radio/component.js";import{Typography as a}from"../typography/component.js";import"../_tslib-531dfe1b-07c947cb.js";import"../isSymbol-1e9a7112.js";import"../_commonjsHelpers-d18ade07.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-8ca8591b.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-bad46263.js";import"../common.module-e63bd441.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var s={list_head:"index-module_list_head__jX5KV",collapse_btn:"index-module_collapse_btn__K-UQd",collapse_btn_collapsed:"index-module_collapse_btn_collapsed__won-f"},d=function(d){var u=d.parents,f=d.childs,j=d.selected,h=d.collapsable,_=d.onChange,b=[];null==u||u.forEach((function(e){var o={parent:{},childs:[],collapsed:!1};null==f||f.forEach((function(t){t.locationId===e.id&&(o.parent=e,o.childs.push(t))})),o.parent.id&&b.push(o)}));var v=o(b),y=v[0],g=v[1];return e.createElement("div",null,y.map((function(o,d){var u;return e.createElement(e.Fragment,{key:o.parent.id},e.createElement("div",{className:s.list_head},e.createElement(a.Text,{view:"title",color:"primary",weight:"medium"},o.parent.title),h&&e.createElement(p,{onClick:function(){return function(e){var o=y.map((function(o,t){return t===e&&(o.collapsed?o.collapsed=!1:o.collapsed=!0),o})),t=y.concat(o);g(t.filter((function(e,o){return t.indexOf(e)===o})))}(d)},size:"s",className:n(s.collapse_btn,(u={},u[s.collapse_btn_collapsed]=o.collapsed,u)),icon:t})),!o.collapsed&&e.createElement(m,{padding:"16px 0 0 0"}),e.createElement(r,{expanded:!o.collapsed},e.createElement("div",{className:s.content},e.createElement(i,{columns:1},o.childs.map((function(o){return e.createElement(c,{onChange:function(){return _(o.id)},checked:j===o.id,key:o.id,label:o.title})}))))),d!==(null==y?void 0:y.length)-1&&e.createElement(l,{size:"m"}))})))};export{d as RadioGroups};
1
+ import e,{useState as o}from"react";import{C as t}from"../ChevronDownS-a98a1ed6.js";import n from"classnames";import{Collapse as r}from"../collapse/component.js";import{Divider as l}from"../divider/component.js";import{FlexColumns as i}from"../flex-columns/component.js";import{IconButton as c}from"../icon-button/component.js";import{Padding as p}from"../padding/component.js";import{Radio as m}from"../radio/component.js";import{Typography as a}from"../typography/component.js";import"../_tslib-531dfe1b-4416fc82.js";import"../isSymbol-c032520c.js";import"../_commonjsHelpers-34911093.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-881ff0c8.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-23323d33.js";import"../common.module-cf8a5ddf.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var s={list_head:"index-module_list_head__jX5KV",collapse_btn:"index-module_collapse_btn__K-UQd",collapse_btn_collapsed:"index-module_collapse_btn_collapsed__won-f"},d=function(d){var u=d.parents,f=d.childs,j=d.selected,h=d.collapsable,_=d.onChange,b=[];null==u||u.forEach((function(e){var o={parent:{},childs:[],collapsed:!1};null==f||f.forEach((function(t){t.locationId===e.id&&(o.parent=e,o.childs.push(t))})),o.parent.id&&b.push(o)}));var v=o(b),y=v[0],g=v[1];return e.createElement("div",null,y.map((function(o,d){var u;return e.createElement(e.Fragment,{key:o.parent.id},e.createElement("div",{className:s.list_head},e.createElement(a.Text,{view:"title",color:"primary",weight:"medium"},o.parent.title),h&&e.createElement(c,{onClick:function(){return function(e){var o=y.map((function(o,t){return t===e&&(o.collapsed?o.collapsed=!1:o.collapsed=!0),o})),t=y.concat(o);g(t.filter((function(e,o){return t.indexOf(e)===o})))}(d)},size:"s",className:n(s.collapse_btn,(u={},u[s.collapse_btn_collapsed]=o.collapsed,u)),icon:t})),!o.collapsed&&e.createElement(p,{padding:"16px 0 0 0"}),e.createElement(r,{expanded:!o.collapsed},e.createElement("div",{className:s.content},e.createElement(i,{columns:1},o.childs.map((function(o){return e.createElement(m,{onChange:function(){return _(o.id)},checked:j===o.id,key:o.id,label:o.title})}))))),d!==(null==y?void 0:y.length)-1&&e.createElement(l,{size:"m"}))})))};export{d as RadioGroups};
@@ -1 +1 @@
1
- export{RadioGroups}from"./component.js";import"react";import"../ChevronDownS-1d597b62.js";import"../_tslib-531dfe1b-07c947cb.js";import"classnames";import"../collapse/component.js";import"../isSymbol-1e9a7112.js";import"../_commonjsHelpers-d18ade07.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-8ca8591b.js";import"react-merge-refs";import"../hooks/useFocus/index.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"../radio/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-bad46263.js";import"../common.module-e63bd441.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
1
+ export{RadioGroups}from"./component.js";import"react";import"../ChevronDownS-a98a1ed6.js";import"../_tslib-531dfe1b-4416fc82.js";import"classnames";import"../collapse/component.js";import"../isSymbol-c032520c.js";import"../_commonjsHelpers-34911093.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-881ff0c8.js";import"react-merge-refs";import"../hooks/useFocus/index.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"../radio/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-23323d33.js";import"../common.module-cf8a5ddf.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
@@ -1 +1 @@
1
- import{_ as o,a as t}from"../tslib.es6-8ca8591b.js";import p,{forwardRef as r}from"react";import{Arrow as n}from"./components/arrow/component.js";import{BaseSelect as e}from"./components/base-select/component.js";import{Field as m}from"./components/field/component.js";import{Optgroup as s}from"./components/optgroup/component.js";import{Option as i}from"./components/option/component.js";import{OptionsList as c}from"./components/options-list/component.js";import"classnames";import"react-merge-refs";import"downshift";import"resize-observer";import"../__internal/utils/getDataTestId.js";import"../popover/component.js";import"react-popper";import"react-transition-group";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";import"./utils.js";import"./components/native-select/component.js";import"../form-control/component.js";import"../hooks/useFocus/index.js";import"../skeleton/component.js";import"./components/checkmark/component.js";import"../_tslib-531dfe1b-07c947cb.js";import"../button/component.js";import"../loader/component.js";var a=r((function(r,a){var j=r.Arrow,l=r.Field,f=r.OptionsList,u=r.Optgroup,d=r.Option,O=o(r,["Arrow","Field","OptionsList","Optgroup","Option"]);return p.createElement(e,t({ref:a,Option:d||i,Field:l||m,Optgroup:u||s,OptionsList:f||c,Arrow:j||n},O))}));export{a as Select};
1
+ import{_ as o,a as t}from"../tslib.es6-881ff0c8.js";import p,{forwardRef as r}from"react";import{Arrow as n}from"./components/arrow/component.js";import{BaseSelect as e}from"./components/base-select/component.js";import{Field as m}from"./components/field/component.js";import{Optgroup as s}from"./components/optgroup/component.js";import{Option as i}from"./components/option/component.js";import{OptionsList as c}from"./components/options-list/component.js";import"classnames";import"react-merge-refs";import"downshift";import"resize-observer";import"../__internal/utils/getDataTestId.js";import"../popover/component.js";import"react-popper";import"react-transition-group";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";import"./utils.js";import"./components/native-select/component.js";import"../form-control/component.js";import"../hooks/useFocus/index.js";import"../skeleton/component.js";import"./components/checkmark/component.js";import"../_tslib-531dfe1b-4416fc82.js";import"../button/component.js";import"../loader/component.js";var a=r((function(r,a){var j=r.Arrow,l=r.Field,f=r.OptionsList,u=r.Optgroup,d=r.Option,O=o(r,["Arrow","Field","OptionsList","Optgroup","Option"]);return p.createElement(e,t({ref:a,Option:d||i,Field:l||m,Optgroup:u||s,OptionsList:f||c,Arrow:j||n},O))}));export{a as Select};
@@ -1 +1 @@
1
- import{a as e,b as t,_ as n}from"../../../tslib.es6-8ca8591b.js";import o,{forwardRef as i,useRef as r,useMemo as a,useCallback as l,useEffect as s,useLayoutEffect as d}from"react";import c from"react-merge-refs";import p from"classnames";import{useMultipleSelection as u,useCombobox as m}from"downshift";import{ResizeObserver as v}from"resize-observer";import{getDataTestId as f}from"../../../__internal/utils/getDataTestId.js";import{Popover as g}from"../../../popover/component.js";import{processOptions as h}from"../../utils.js";import{NativeSelect as b}from"../native-select/component.js";import"react-popper";import"react-transition-group";import"../../../portal/component.js";import"react-dom";import"../../../portal/utils.js";import"../../../stack/context.js";import"../../../stack/component.js";var I="index-module_component__vbM1x",x="index-module_popoverInner__UhT2m",y="index-module_optionsList__catD5",w="index-module_nativeSelect__SsnnZ",O="index-module_block__kBj0n",_=i((function(i,_){var k,N=i.dataTestId,C=void 0===N?"":N,E=i.className,P=i.fieldClassName,S=i.popoverOuterClassname,T=i.optionsListClassName,D=i.optionClassName,j=i.options,z=i.actionButton,B=i.autocomplete,M=void 0!==B&&B,L=i.multiple,F=void 0!==L&&L,R=i.allowUnselect,A=void 0!==R&&R,K=i.disabled,U=void 0!==K&&K,W=i.closeOnSelect,q=void 0===W?!F:W,H=i.circularNavigation,Z=void 0!==H&&H,G=i.nativeSelect,J=void 0!==G&&G,Q=i.defaultOpen,V=void 0!==Q&&Q,X=i.open,Y=i.popoverPosition,$=void 0===Y?"bottom-start":Y,ee=i.offset,te=i.withArrow,ne=i.preventFlip,oe=void 0===ne||ne,ie=i.optionsListWidth,re=void 0===ie?"field":ie,ae=i.name,le=i.id,se=i.required,de=i.selected,ce=i.size,pe=void 0===ce?"m":ce,ue=i.optionsSize,me=void 0===ue?pe:ue,ve=i.error,fe=i.hint,ge=i.block,he=void 0===ge||ge,be=i.label,Ie=i.placeholder,xe=i.fieldProps,ye=void 0===xe?{}:xe,we=i.optionsListProps,Oe=void 0===we?{}:we,_e=i.optionProps,ke=void 0===_e?{}:_e,Ne=i.valueRenderer,Ce=i.onChange,Ee=i.onOpen,Pe=i.onFocus,Se=i.onBlur,Te=i.onScroll,De=i.Arrow,je=i.Field,ze=void 0===je?function(){return null}:je,Be=i.OptionsList,Me=void 0===Be?function(){return null}:Be,Le=i.Optgroup,Fe=void 0===Le?function(){return null}:Le,Re=i.Option,Ae=void 0===Re?function(){return null}:Re,Ke=i.updatePopover,Ue=i.zIndexPopover,We=i.showEmptyOptionsList,qe=void 0!==We&&We,He=i.visibleOptions,Ze=r(null),Ge=r(null),Je=r(null),Qe=function(e){var t;return e?null===(t=e.key)||void 0===t?void 0:t.toString():""},Ve=a((function(){return h(j||[],de)}),[j,de]),Xe=Ve.flatOptions,Ye=Ve.selectedOptions,$e={itemToString:Qe,onSelectedItemsChange:function(e){if(Ce){var t=e.selectedItems,n=void 0===t?[]:t;Ce({selectedMultiple:n,selected:n.length?n[0]:null,name:ae})}},stateReducer:function(e,t){var n=t.type,o=t.changes;return A||n!==u.stateChangeTypes.DropdownKeyDownBackspace?o:e}};void 0!==de&&($e.selectedItems=Ye);var et=u($e),tt=et.selectedItems,nt=et.addSelectedItem,ot=et.setSelectedItems,it=et.removeSelectedItem,rt=et.getDropdownProps,at=m({id:le,isOpen:X,circularNavigation:Z,items:Xe,itemToString:Qe,defaultHighlightedIndex:0===tt.length?-1:void 0,onIsOpenChange:function(e){Ee&&setTimeout((function(){Ee({open:e.isOpen,name:ae})}),0)},stateReducer:function(t,n){var o=n.type,i=n.changes,r=i.selectedItem;switch(o){case m.stateChangeTypes.InputKeyDownEnter:case m.stateChangeTypes.ItemClick:if(r&&!r.disabled){var a=tt.includes(r),l=A||F&&tt.length>1;a&&l&&it(r),a||(F?nt(r):ot([r]))}return e(e({},i),{isOpen:!q,highlightedIndex:t.isOpen&&!q?t.highlightedIndex:i.highlightedIndex});default:return i}}}),lt=at.isOpen,st=at.getMenuProps,dt=at.getInputProps,ct=at.getItemProps,pt=at.getComboboxProps,ut=at.getLabelProps,mt=at.highlightedIndex,vt=at.toggleMenu,ft=at.openMenu,gt=st({ref:Je},{suppressRefError:!0}),ht=dt(rt({ref:c([_,Ge])})),bt=l((function(e){ot(t([],e.target.options).reduce((function(e,t,n){return t.selected?e.concat(Xe[n]):e}),[]))}),[Xe,ot]),It=l((function(t){var i=t.option,r=t.index,a=n(t,["option","index"]);return o.createElement(o.Fragment,{key:i.key},Ae(e(e(e({},ke),a),{className:D,innerProps:ct({index:r,item:i,disabled:i.disabled,onMouseDown:function(e){return e.preventDefault()}}),index:r,option:i,size:me,disabled:i.disabled,highlighted:r===mt,selected:tt.includes(i)})))}),[ke,D,ct,me,mt,tt,Ae]);s((function(){V&&ft()}),[V,ft]),s((function(){X&&ft()}),[]);var xt=l((function(){if(Je.current){var e="field"===re?"width":"minWidth",t=Ze.current?Ze.current.getBoundingClientRect().width:0;Je.current.setAttribute("style",""),Je.current.style[e]=t+"px"}}),[re]);s((function(){var e=new v(xt);return Ze.current&&e.observe(Ze.current),function(){e.disconnect()}}),[xt,lt,re]),d(xt,[lt,re,j,tt]);var yt=l((function(){return tt.map((function(e){return o.createElement("input",{type:"hidden",name:ae,value:e.key,key:e.key})}))}),[tt,ae]),wt=l((function(){var t,n=F?tt.map((function(e){var t;return null===(t=e.key)||void 0===t?void 0:t.toString()})):null===(t=(tt[0]||{}).key)||void 0===t?void 0:t.toString();return o.createElement(b,e({},gt,{className:w,disabled:U,multiple:F,name:ae,value:n,onChange:bt,options:j}))}),[F,tt,U,ae,bt,j,gt]),Ot=Xe.length>0||qe||!!z;return o.createElement("div",e({},pt(e(e({ref:Ze},U&&{"aria-disabled":!0}),{className:p(I,(k={},k[O]=he,k),E)})),{onKeyDown:U?void 0:function(e){ht.onKeyDown(e),M&&!lt&&1===e.key.length&&ft(),![" ","Enter"].includes(e.key)||M||J||"INPUT"===e.target.tagName||(e.preventDefault(),lt&&-1!==mt||vt())},tabIndex:-1,id:"slect_wrapper","data-test-id":f("combobox",C)}),J&&wt(),o.createElement(ze,e({selectedMultiple:tt,selected:tt[0],multiple:F,open:lt,disabled:U,size:pe,placeholder:Ie,label:be&&o.createElement("span",e({},ut()),se?be+" *":be),Arrow:De&&o.createElement(De,{open:lt}),error:ve,hint:fe,valueRenderer:Ne,className:P,innerProps:{onBlur:function(e){var t;(null===(t=Je.current)||void 0===t?void 0:t.contains(e.relatedTarget||document.activeElement))||(Se&&Se(e),ht.onBlur(e))},onFocus:U?void 0:function(e){Pe&&Pe(e),M&&!lt&&ft()},onClick:U?void 0:function(e){M&&"INPUT"===e.target.tagName?ft():vt()},tabIndex:J||U?-1:0,ref:c([ht.ref]),id:ht.id,"aria-labelledby":ht["aria-labelledby"],"aria-controls":ht["aria-controls"],"aria-autocomplete":M?ht["aria-autocomplete"]:void 0},dataTestId:f("field",C)},ye)),ae&&!J&&yt(),!J&&o.createElement(g,{open:lt,withTransition:!1,anchorElement:Ge.current,position:$,offset:ee,withArrow:te,preventFlip:oe,className:S,popperClassName:x,update:Ke,zIndex:Ue},Ot&&o.createElement("div",e({},gt,{className:p(T,y)}),o.createElement(Me,e({},Oe,{flatOptions:Xe,highlightedIndex:mt,open:lt,size:pe,toggleMenu:vt,actionButton:z,options:j,Optgroup:Fe,Option:It,visibleOptions:He,onScroll:Te,dataTestId:f("options-list",C)})))))}));export{_ as BaseSelect};
1
+ import{a as e,b as t,_ as n}from"../../../tslib.es6-881ff0c8.js";import o,{forwardRef as i,useRef as r,useMemo as a,useCallback as l,useEffect as s,useLayoutEffect as d}from"react";import c from"react-merge-refs";import p from"classnames";import{useMultipleSelection as u,useCombobox as m}from"downshift";import{ResizeObserver as v}from"resize-observer";import{getDataTestId as f}from"../../../__internal/utils/getDataTestId.js";import{Popover as g}from"../../../popover/component.js";import{processOptions as h}from"../../utils.js";import{NativeSelect as b}from"../native-select/component.js";import"react-popper";import"react-transition-group";import"../../../portal/component.js";import"react-dom";import"../../../portal/utils.js";import"../../../stack/context.js";import"../../../stack/component.js";var I="index-module_component__vbM1x",x="index-module_popoverInner__UhT2m",y="index-module_optionsList__catD5",w="index-module_nativeSelect__SsnnZ",O="index-module_block__kBj0n",_=i((function(i,_){var k,N=i.dataTestId,C=void 0===N?"":N,E=i.className,P=i.fieldClassName,S=i.popoverOuterClassname,T=i.optionsListClassName,D=i.optionClassName,j=i.options,z=i.actionButton,B=i.autocomplete,M=void 0!==B&&B,L=i.multiple,F=void 0!==L&&L,R=i.allowUnselect,A=void 0!==R&&R,K=i.disabled,U=void 0!==K&&K,W=i.closeOnSelect,q=void 0===W?!F:W,H=i.circularNavigation,Z=void 0!==H&&H,G=i.nativeSelect,J=void 0!==G&&G,Q=i.defaultOpen,V=void 0!==Q&&Q,X=i.open,Y=i.popoverPosition,$=void 0===Y?"bottom-start":Y,ee=i.offset,te=i.withArrow,ne=i.preventFlip,oe=void 0===ne||ne,ie=i.optionsListWidth,re=void 0===ie?"field":ie,ae=i.name,le=i.id,se=i.required,de=i.selected,ce=i.size,pe=void 0===ce?"m":ce,ue=i.optionsSize,me=void 0===ue?pe:ue,ve=i.error,fe=i.hint,ge=i.block,he=void 0===ge||ge,be=i.label,Ie=i.placeholder,xe=i.fieldProps,ye=void 0===xe?{}:xe,we=i.optionsListProps,Oe=void 0===we?{}:we,_e=i.optionProps,ke=void 0===_e?{}:_e,Ne=i.valueRenderer,Ce=i.onChange,Ee=i.onOpen,Pe=i.onFocus,Se=i.onBlur,Te=i.onScroll,De=i.Arrow,je=i.Field,ze=void 0===je?function(){return null}:je,Be=i.OptionsList,Me=void 0===Be?function(){return null}:Be,Le=i.Optgroup,Fe=void 0===Le?function(){return null}:Le,Re=i.Option,Ae=void 0===Re?function(){return null}:Re,Ke=i.updatePopover,Ue=i.zIndexPopover,We=i.showEmptyOptionsList,qe=void 0!==We&&We,He=i.visibleOptions,Ze=r(null),Ge=r(null),Je=r(null),Qe=function(e){var t;return e?null===(t=e.key)||void 0===t?void 0:t.toString():""},Ve=a((function(){return h(j||[],de)}),[j,de]),Xe=Ve.flatOptions,Ye=Ve.selectedOptions,$e={itemToString:Qe,onSelectedItemsChange:function(e){if(Ce){var t=e.selectedItems,n=void 0===t?[]:t;Ce({selectedMultiple:n,selected:n.length?n[0]:null,name:ae})}},stateReducer:function(e,t){var n=t.type,o=t.changes;return A||n!==u.stateChangeTypes.DropdownKeyDownBackspace?o:e}};void 0!==de&&($e.selectedItems=Ye);var et=u($e),tt=et.selectedItems,nt=et.addSelectedItem,ot=et.setSelectedItems,it=et.removeSelectedItem,rt=et.getDropdownProps,at=m({id:le,isOpen:X,circularNavigation:Z,items:Xe,itemToString:Qe,defaultHighlightedIndex:0===tt.length?-1:void 0,onIsOpenChange:function(e){Ee&&setTimeout((function(){Ee({open:e.isOpen,name:ae})}),0)},stateReducer:function(t,n){var o=n.type,i=n.changes,r=i.selectedItem;switch(o){case m.stateChangeTypes.InputKeyDownEnter:case m.stateChangeTypes.ItemClick:if(r&&!r.disabled){var a=tt.includes(r),l=A||F&&tt.length>1;a&&l&&it(r),a||(F?nt(r):ot([r]))}return e(e({},i),{isOpen:!q,highlightedIndex:t.isOpen&&!q?t.highlightedIndex:i.highlightedIndex});default:return i}}}),lt=at.isOpen,st=at.getMenuProps,dt=at.getInputProps,ct=at.getItemProps,pt=at.getComboboxProps,ut=at.getLabelProps,mt=at.highlightedIndex,vt=at.toggleMenu,ft=at.openMenu,gt=st({ref:Je},{suppressRefError:!0}),ht=dt(rt({ref:c([_,Ge])})),bt=l((function(e){ot(t([],e.target.options).reduce((function(e,t,n){return t.selected?e.concat(Xe[n]):e}),[]))}),[Xe,ot]),It=l((function(t){var i=t.option,r=t.index,a=n(t,["option","index"]);return o.createElement(o.Fragment,{key:i.key},Ae(e(e(e({},ke),a),{className:D,innerProps:ct({index:r,item:i,disabled:i.disabled,onMouseDown:function(e){return e.preventDefault()}}),index:r,option:i,size:me,disabled:i.disabled,highlighted:r===mt,selected:tt.includes(i)})))}),[ke,D,ct,me,mt,tt,Ae]);s((function(){V&&ft()}),[V,ft]),s((function(){X&&ft()}),[]);var xt=l((function(){if(Je.current){var e="field"===re?"width":"minWidth",t=Ze.current?Ze.current.getBoundingClientRect().width:0;Je.current.setAttribute("style",""),Je.current.style[e]=t+"px"}}),[re]);s((function(){var e=new v(xt);return Ze.current&&e.observe(Ze.current),function(){e.disconnect()}}),[xt,lt,re]),d(xt,[lt,re,j,tt]);var yt=l((function(){return tt.map((function(e){return o.createElement("input",{type:"hidden",name:ae,value:e.key,key:e.key})}))}),[tt,ae]),wt=l((function(){var t,n=F?tt.map((function(e){var t;return null===(t=e.key)||void 0===t?void 0:t.toString()})):null===(t=(tt[0]||{}).key)||void 0===t?void 0:t.toString();return o.createElement(b,e({},gt,{className:w,disabled:U,multiple:F,name:ae,value:n,onChange:bt,options:j}))}),[F,tt,U,ae,bt,j,gt]),Ot=Xe.length>0||qe||!!z;return o.createElement("div",e({},pt(e(e({ref:Ze},U&&{"aria-disabled":!0}),{className:p(I,(k={},k[O]=he,k),E)})),{onKeyDown:U?void 0:function(e){ht.onKeyDown(e),M&&!lt&&1===e.key.length&&ft(),![" ","Enter"].includes(e.key)||M||J||"INPUT"===e.target.tagName||(e.preventDefault(),lt&&-1!==mt||vt())},tabIndex:-1,id:"slect_wrapper","data-test-id":f("combobox",C)}),J&&wt(),o.createElement(ze,e({selectedMultiple:tt,selected:tt[0],multiple:F,open:lt,disabled:U,size:pe,placeholder:Ie,label:be&&o.createElement("span",e({},ut()),se?be+" *":be),Arrow:De&&o.createElement(De,{open:lt}),error:ve,hint:fe,valueRenderer:Ne,className:P,innerProps:{onBlur:function(e){var t;(null===(t=Je.current)||void 0===t?void 0:t.contains(e.relatedTarget||document.activeElement))||(Se&&Se(e),ht.onBlur(e))},onFocus:U?void 0:function(e){Pe&&Pe(e),M&&!lt&&ft()},onClick:U?void 0:function(e){M&&"INPUT"===e.target.tagName?ft():vt()},tabIndex:J||U?-1:0,ref:c([ht.ref]),id:ht.id,"aria-labelledby":ht["aria-labelledby"],"aria-controls":ht["aria-controls"],"aria-autocomplete":M?ht["aria-autocomplete"]:void 0},dataTestId:f("field",C)},ye)),ae&&!J&&yt(),!J&&o.createElement(g,{open:lt,withTransition:!1,anchorElement:Ge.current,position:$,offset:ee,withArrow:te,preventFlip:oe,className:S,popperClassName:x,update:Ke,zIndex:Ue},Ot&&o.createElement("div",e({},gt,{className:p(T,y)}),o.createElement(Me,e({},Oe,{flatOptions:Xe,highlightedIndex:mt,open:lt,size:pe,toggleMenu:vt,actionButton:z,options:j,Optgroup:Fe,Option:It,visibleOptions:He,onScroll:Te,dataTestId:f("options-list",C)})))))}));export{_ as BaseSelect};
@@ -1 +1 @@
1
- export{BaseSelect}from"./component.js";import"../../../tslib.es6-8ca8591b.js";import"react";import"react-merge-refs";import"classnames";import"downshift";import"resize-observer";import"../../../__internal/utils/getDataTestId.js";import"../../../popover/component.js";import"react-popper";import"react-transition-group";import"../../../portal/component.js";import"react-dom";import"../../../portal/utils.js";import"../../../stack/context.js";import"../../../stack/component.js";import"../../utils.js";import"../native-select/component.js";
1
+ export{BaseSelect}from"./component.js";import"../../../tslib.es6-881ff0c8.js";import"react";import"react-merge-refs";import"classnames";import"downshift";import"resize-observer";import"../../../__internal/utils/getDataTestId.js";import"../../../popover/component.js";import"react-popper";import"react-transition-group";import"../../../portal/component.js";import"react-dom";import"../../../portal/utils.js";import"../../../stack/context.js";import"../../../stack/component.js";import"../../utils.js";import"../native-select/component.js";
@@ -1 +1 @@
1
- import{_ as e,a as l}from"../../../tslib.es6-8ca8591b.js";import r,{useState as o,useRef as d,useCallback as t}from"react";import s from"classnames";import{FormControl as a}from"../../../form-control/component.js";import{useFocus as n}from"../../../hooks/useFocus/index.js";import{joinOptions as i}from"../../utils.js";var m="index-module_component__kQ9oL",c="index-module_field__WxOYl",u="index-module_disabled__GQwpw",p="index-module_arrow__4fEBK",_="index-module_placeholder__FY2iP",f="index-module_contentWrapper__MkCc3",b="index-module_value__0Arew",v="index-module_focusVisible__qhc9s",h=function(h){var x,E=h.size,N=void 0===E?"m":E,w=h.open;h.multiple;var A=h.error,k=h.hint,g=h.disabled,j=h.label,C=h.placeholder,F=h.selectedMultiple,M=void 0===F?[]:F,z=h.selected,B=h.rightAddons,P=h.valueRenderer,I=void 0===P?i:P,Q=h.Arrow,R=h.innerProps,T=h.dataTestId,W=h.fieldClassName,Y=e(h,["size","open","multiple","error","hint","disabled","label","placeholder","selectedMultiple","selected","rightAddons","valueRenderer","Arrow","innerProps","dataTestId","fieldClassName"]),q=o(!1),y=q[0],G=q[1],K=d(null),L=n(K,"keyboard")[0],O=t((function(){return G(!0)}),[]),V=t((function(){return G(!1)}),[]),D=I({selected:z,selectedMultiple:M}),H=Boolean(D),J=!!j&&(H||!C);return r.createElement("div",{className:m,ref:K,onFocus:O,onBlur:V},r.createElement(a,l({fieldClassName:s(c,W,(x={},x[u]=g,x[v]=L,x)),block:!0,size:N,focused:w||y,disabled:g,filled:H,label:J&&j,error:A,hint:k,rightAddons:(Q||B)&&r.createElement(r.Fragment,null,B,Q?r.cloneElement(Q,{className:p}):null),"data-test-id":T},Y,R),r.createElement("div",{className:f},C&&!H&&r.createElement("span",{className:_},C),H&&r.createElement("div",{className:b},D))))};export{h as Field};
1
+ import{_ as e,a as l}from"../../../tslib.es6-881ff0c8.js";import r,{useState as o,useRef as d,useCallback as t}from"react";import s from"classnames";import{FormControl as a}from"../../../form-control/component.js";import{useFocus as n}from"../../../hooks/useFocus/index.js";import{joinOptions as i}from"../../utils.js";var m="index-module_component__kQ9oL",c="index-module_field__WxOYl",u="index-module_disabled__GQwpw",p="index-module_arrow__4fEBK",_="index-module_placeholder__FY2iP",f="index-module_contentWrapper__MkCc3",v="index-module_value__0Arew",b="index-module_focusVisible__qhc9s",h=function(h){var x,E=h.size,N=void 0===E?"m":E,w=h.open;h.multiple;var A=h.error,k=h.hint,g=h.disabled,j=h.label,C=h.placeholder,F=h.selectedMultiple,M=void 0===F?[]:F,z=h.selected,B=h.rightAddons,P=h.valueRenderer,I=void 0===P?i:P,Q=h.Arrow,R=h.innerProps,T=h.dataTestId,W=h.fieldClassName,Y=e(h,["size","open","multiple","error","hint","disabled","label","placeholder","selectedMultiple","selected","rightAddons","valueRenderer","Arrow","innerProps","dataTestId","fieldClassName"]),q=o(!1),y=q[0],G=q[1],K=d(null),L=n(K,"keyboard")[0],O=t((function(){return G(!0)}),[]),V=t((function(){return G(!1)}),[]),D=I({selected:z,selectedMultiple:M}),H=Boolean(D),J=!!j&&(H||!C);return r.createElement("div",{className:m,ref:K,onFocus:O,onBlur:V},r.createElement(a,l({fieldClassName:s(c,W,(x={},x[u]=g,x[b]=L,x)),block:!0,size:N,focused:w||y,disabled:g,filled:H,label:J&&j,error:A,hint:k,rightAddons:(Q||B)&&r.createElement(r.Fragment,null,B,Q?r.cloneElement(Q,{className:p}):null),"data-test-id":T},Y,R),r.createElement("div",{className:f},C&&!H&&r.createElement("span",{className:_},C),H&&r.createElement("div",{className:v},D))))};export{h as Field};
@@ -1 +1 @@
1
- export{Field}from"./component.js";import"../../../tslib.es6-8ca8591b.js";import"react";import"classnames";import"../../../form-control/component.js";import"../../../hooks/useFocus/index.js";import"../../utils.js";
1
+ export{Field}from"./component.js";import"../../../tslib.es6-881ff0c8.js";import"react";import"classnames";import"../../../form-control/component.js";import"../../../hooks/useFocus/index.js";import"../../utils.js";
@@ -1 +1 @@
1
- export{Arrow}from"./arrow/component.js";export{BaseSelect}from"./base-select/component.js";export{Field}from"./field/component.js";export{Optgroup}from"./optgroup/component.js";export{Option}from"./option/component.js";export{OptionsList}from"./options-list/component.js";export{VirtualOptionsList}from"./virtual-options-list/component.js";import"react";import"classnames";import"../../tslib.es6-8ca8591b.js";import"react-merge-refs";import"downshift";import"resize-observer";import"../../__internal/utils/getDataTestId.js";import"../../popover/component.js";import"react-popper";import"react-transition-group";import"../../portal/component.js";import"react-dom";import"../../portal/utils.js";import"../../stack/context.js";import"../../stack/component.js";import"../utils.js";import"./native-select/component.js";import"../../form-control/component.js";import"../../hooks/useFocus/index.js";import"../../skeleton/component.js";import"./checkmark/component.js";import"../../_tslib-531dfe1b-07c947cb.js";import"../../button/component.js";import"../../loader/component.js";import"react-virtual";import"../../hooks/usePrevious/index.js";import"../../utils/get-service-error/index.js";import"../../utils/get-service-error/is-axios-error.js";import"../../utils/get-service-error/is-network-error.js";import"../../toast-notifier/component.js";import"../../toast-plate/component.js";import"../../CloseS-1cf477a0.js";import"../../toast-notifier/use-timer.js";
1
+ export{Arrow}from"./arrow/component.js";export{BaseSelect}from"./base-select/component.js";export{Field}from"./field/component.js";export{Optgroup}from"./optgroup/component.js";export{Option}from"./option/component.js";export{OptionsList}from"./options-list/component.js";export{VirtualOptionsList}from"./virtual-options-list/component.js";import"react";import"classnames";import"../../tslib.es6-881ff0c8.js";import"react-merge-refs";import"downshift";import"resize-observer";import"../../__internal/utils/getDataTestId.js";import"../../popover/component.js";import"react-popper";import"react-transition-group";import"../../portal/component.js";import"react-dom";import"../../portal/utils.js";import"../../stack/context.js";import"../../stack/component.js";import"../utils.js";import"./native-select/component.js";import"../../form-control/component.js";import"../../hooks/useFocus/index.js";import"../../skeleton/component.js";import"./checkmark/component.js";import"../../_tslib-531dfe1b-4416fc82.js";import"../../button/component.js";import"../../loader/component.js";import"react-virtual";import"../../hooks/usePrevious/index.js";import"../../utils/get-service-error/index.js";import"../../utils/get-service-error/is-axios-error.js";import"../../utils/get-service-error/is-network-error.js";import"../../toast-notifier/component.js";import"../../toast-plate/component.js";import"../../CloseS-f19e9906.js";import"../../toast-notifier/use-timer.js";
@@ -1 +1 @@
1
- import{_ as e,a as t}from"../../../tslib.es6-8ca8591b.js";import n,{forwardRef as a,useCallback as o}from"react";import{isGroup as l}from"../../utils.js";var r=function(e){var t=e.option;return n.createElement("option",{value:t.key,disabled:t.disabled},"string"==typeof t.content?t.content:t.key)},i=function(e){var t=e.label,a=e.options;return n.createElement("optgroup",{label:t},a.map((function(e){return n.createElement(r,{option:e,key:e.key})})))},s=a((function(a,s){var m=a.className,c=a.disabled,p=a.multiple,u=a.value,f=a.name,b=a.options,d=a.onChange,k=e(a,["className","disabled","multiple","value","name","options","onChange"]),v=o((function(e){e.stopPropagation()}),[]);return n.createElement("select",t({className:m,disabled:c,multiple:p,name:f,value:u,onChange:d,onClick:v,ref:s},k),b.map((function(e){return l(e)?n.createElement(i,t({},e,{key:e.label})):n.createElement(r,{option:e,key:e.key})})))}));export{s as NativeSelect};
1
+ import{_ as e,a as t}from"../../../tslib.es6-881ff0c8.js";import n,{forwardRef as a,useCallback as o}from"react";import{isGroup as l}from"../../utils.js";var r=function(e){var t=e.option;return n.createElement("option",{value:t.key,disabled:t.disabled},"string"==typeof t.content?t.content:t.key)},i=function(e){var t=e.label,a=e.options;return n.createElement("optgroup",{label:t},a.map((function(e){return n.createElement(r,{option:e,key:e.key})})))},s=a((function(a,s){var m=a.className,c=a.disabled,p=a.multiple,u=a.value,f=a.name,d=a.options,b=a.onChange,k=e(a,["className","disabled","multiple","value","name","options","onChange"]),v=o((function(e){e.stopPropagation()}),[]);return n.createElement("select",t({className:m,disabled:c,multiple:p,name:f,value:u,onChange:b,onClick:v,ref:s},k),d.map((function(e){return l(e)?n.createElement(i,t({},e,{key:e.label})):n.createElement(r,{option:e,key:e.key})})))}));export{s as NativeSelect};
@@ -1 +1 @@
1
- export{NativeSelect}from"./component.js";import"../../../tslib.es6-8ca8591b.js";import"react";import"../../utils.js";
1
+ export{NativeSelect}from"./component.js";import"../../../tslib.es6-881ff0c8.js";import"react";import"../../utils.js";
@@ -1 +1 @@
1
- import{a as e}from"../../../tslib.es6-8ca8591b.js";import t,{isValidElement as o}from"react";import n from"classnames";import{Skeleton as d}from"../../../skeleton/component.js";import{Checkmark as i}from"../checkmark/component.js";var l={option:"index-module_option__LdOw-",disabled:"index-module_disabled__axDUG",s:"index-module_s__0noye",m:"index-module_m__C5xtP",l:"index-module_l__yH1C-",xl:"index-module_xl__WL6cZ",selected:"index-module_selected__OyyTI",highlighted:"index-module_highlighted__WtdTW",content:"index-module_content__H3UDz",textContent:"index-module_textContent__Hx88Y",skeleton:"index-module_skeleton__braSy"},s=function(s){var m,_,a=s.size,c=void 0===a?"s":a,r=s.className,x=s.option,h=s.children,p=s.selected,u=s.highlighted,g=s.disabled,k=s.Checkmark,b=void 0===k?i:k,v=s.innerProps,f=s.index,y=h||x.content||x.key;return t.createElement("div",e({},v,{className:n(l.option,l[c],r,(m={},m[l.highlighted]=u,m[l.selected]=p,m[l.disabled]=g,m)),"data-test-id":"option-"+f}),b&&t.createElement(b,{selected:p}),t.createElement("div",{className:n(l.content,(_={},_[l.textContent]=!o(y),_))},t.createElement(d,{className:l.skeleton,visible:null==x?void 0:x.loading},y)))};export{s as Option};
1
+ import{a as e}from"../../../tslib.es6-881ff0c8.js";import t,{isValidElement as o}from"react";import n from"classnames";import{Skeleton as d}from"../../../skeleton/component.js";import{Checkmark as i}from"../checkmark/component.js";var l={option:"index-module_option__LdOw-",disabled:"index-module_disabled__axDUG",s:"index-module_s__0noye",m:"index-module_m__C5xtP",l:"index-module_l__yH1C-",xl:"index-module_xl__WL6cZ",selected:"index-module_selected__OyyTI",highlighted:"index-module_highlighted__WtdTW",content:"index-module_content__H3UDz",textContent:"index-module_textContent__Hx88Y",skeleton:"index-module_skeleton__braSy"},s=function(s){var m,_,a=s.size,c=void 0===a?"s":a,r=s.className,x=s.option,h=s.children,p=s.selected,u=s.highlighted,g=s.disabled,k=s.Checkmark,f=void 0===k?i:k,v=s.innerProps,b=s.index,y=h||x.content||x.key;return t.createElement("div",e({},v,{className:n(l.option,l[c],r,(m={},m[l.highlighted]=u,m[l.selected]=p,m[l.disabled]=g,m)),"data-test-id":"option-"+b}),f&&t.createElement(f,{selected:p}),t.createElement("div",{className:n(l.content,(_={},_[l.textContent]=!o(y),_))},t.createElement(d,{className:l.skeleton,visible:null==x?void 0:x.loading},y)))};export{s as Option};
@@ -1 +1 @@
1
- export{Option}from"./component.js";import"../../../tslib.es6-8ca8591b.js";import"react";import"classnames";import"../../../skeleton/component.js";import"../checkmark/component.js";
1
+ export{Option}from"./component.js";import"../../../tslib.es6-881ff0c8.js";import"react";import"classnames";import"../../../skeleton/component.js";import"../checkmark/component.js";
@@ -1 +1 @@
1
- import e,{forwardRef as t,useRef as o,useCallback as n}from"react";import l from"react-merge-refs";import{_ as i}from"../../../_tslib-531dfe1b-07c947cb.js";import r from"classnames";import{Button as a}from"../../../button/component.js";import{useVisibleOptions as s,isGroup as m}from"../../utils.js";import{Optgroup as p}from"../optgroup/component.js";import"../../../tslib.es6-8ca8591b.js";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var c=function(t){return e.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},t),e.createElement("path",{d:"M0 0h25v24H0z"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.005 22c5.523 0 10-4.477 10-10s-4.477-10-10-10-10 4.477-10 10 4.477 10 10 10zm-1-15v5a3 3 0 001.2 2.4l2.6 1.7 1.2-1.6-2.6-1.7a1 1 0 01-.4-.8V7h-2z",fill:"currentColor"}))},d={optionsList:"index-module_optionsList__fDQ-W",emptyPlaceholder:"index-module_emptyPlaceholder__kjePJ",l:"index-module_l__rGpg6",xl:"index-module_xl__T-5wN",actionButtonWrapper:"index-module_actionButtonWrapper__WBIoZ"},u=t((function(t,i){var u,f=t.size,v=void 0===f?"s":f,_=t.className,h=t.Option,x=t.options,b=void 0===x?[]:x,g=t.actionButton,E=t.Optgroup,j=void 0===E?p:E,w=t.dataTestId,z=t.emptyPlaceholder,B=t.visibleOptions,k=void 0===B?5:B,y=t.onScroll,N=t.toggleMenu,P=t.open,W=o(null),O=(u=0,function(){return u++}),C=n((function(t){return e.createElement(j,{label:t.label,key:t.label,size:v},t.options.map((function(e){return h({option:e,index:O()})})))}),[h,O,v]);return s({visibleOptions:k,listRef:W,open:P,invalidate:b}),0!==b.length||z||g?e.createElement("div",{className:r(d.optionsList,d[v],_),"data-test-id":w,ref:l([W,i]),onScroll:y},b.map((function(e){return m(e)?C(e):h({option:e,index:O()})})),z&&0===b.length&&e.createElement("div",{className:d.emptyPlaceholder},e.createElement(c,null),z),!!g&&e.createElement("div",{className:d.actionButtonWrapper},e.createElement(a,{view:"outlined",size:"xs",onClick:function(){null==g||g.onClick(),N()}},g.label))):null}));export{u as OptionsList};
1
+ import e,{forwardRef as t,useRef as o,useCallback as n}from"react";import l from"react-merge-refs";import{_ as i}from"../../../_tslib-531dfe1b-4416fc82.js";import r from"classnames";import{Button as a}from"../../../button/component.js";import{useVisibleOptions as s,isGroup as m}from"../../utils.js";import{Optgroup as p}from"../optgroup/component.js";import"../../../tslib.es6-881ff0c8.js";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var c=function(t){return e.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},t),e.createElement("path",{d:"M0 0h25v24H0z"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.005 22c5.523 0 10-4.477 10-10s-4.477-10-10-10-10 4.477-10 10 4.477 10 10 10zm-1-15v5a3 3 0 001.2 2.4l2.6 1.7 1.2-1.6-2.6-1.7a1 1 0 01-.4-.8V7h-2z",fill:"currentColor"}))},d={optionsList:"index-module_optionsList__fDQ-W",emptyPlaceholder:"index-module_emptyPlaceholder__kjePJ",l:"index-module_l__rGpg6",xl:"index-module_xl__T-5wN",actionButtonWrapper:"index-module_actionButtonWrapper__WBIoZ"},u=t((function(t,i){var u,f=t.size,v=void 0===f?"s":f,_=t.className,h=t.Option,x=t.options,g=void 0===x?[]:x,b=t.actionButton,E=t.Optgroup,j=void 0===E?p:E,w=t.dataTestId,z=t.emptyPlaceholder,B=t.visibleOptions,k=void 0===B?5:B,y=t.onScroll,N=t.toggleMenu,P=t.open,W=o(null),O=(u=0,function(){return u++}),C=n((function(t){return e.createElement(j,{label:t.label,key:t.label,size:v},t.options.map((function(e){return h({option:e,index:O()})})))}),[h,O,v]);return s({visibleOptions:k,listRef:W,open:P,invalidate:g}),0!==g.length||z||b?e.createElement("div",{className:r(d.optionsList,d[v],_),"data-test-id":w,ref:l([W,i]),onScroll:y},g.map((function(e){return m(e)?C(e):h({option:e,index:O()})})),z&&0===g.length&&e.createElement("div",{className:d.emptyPlaceholder},e.createElement(c,null),z),!!b&&e.createElement("div",{className:d.actionButtonWrapper},e.createElement(a,{view:"outlined",size:"xs",onClick:function(){null==b||b.onClick(),N()}},b.label))):null}));export{u as OptionsList};
@@ -1 +1 @@
1
- export{OptionsList}from"./component.js";import"react";import"react-merge-refs";import"../../../_tslib-531dfe1b-07c947cb.js";import"classnames";import"../../../button/component.js";import"../../../tslib.es6-8ca8591b.js";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../utils.js";import"../optgroup/component.js";
1
+ export{OptionsList}from"./component.js";import"react";import"react-merge-refs";import"../../../_tslib-531dfe1b-4416fc82.js";import"classnames";import"../../../button/component.js";import"../../../tslib.es6-881ff0c8.js";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../utils.js";import"../optgroup/component.js";
@@ -1 +1 @@
1
- import e,{useRef as t,useState as i,useEffect as o,useMemo as r}from"react";import{useVirtual as n}from"react-virtual";import l from"classnames";import{usePrevious as s}from"../../../hooks/usePrevious/index.js";import"../../../utils/get-service-error/index.js";import"../../../toast-notifier/component.js";import{lastIndexOf as a,useVisibleOptions as m,isGroup as d}from"../../utils.js";import{Optgroup as p}from"../optgroup/component.js";import"../../../utils/get-service-error/is-axios-error.js";import"../../../utils/get-service-error/is-network-error.js";import"../../../tslib.es6-8ca8591b.js";import"react-dom";import"../../../toast-plate/component.js";import"../../../_tslib-531dfe1b-07c947cb.js";import"../../../CloseS-1cf477a0.js";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../toast-notifier/use-timer.js";var u={virtualOptionsList:"index-module_virtualOptionsList__2eWn8",inner:"index-module_inner__6DZqj",virtualRow:"index-module_virtualRow__0huMi",highlighted:"index-module_highlighted__Uxj8l",emptyPlaceholder:"index-module_emptyPlaceholder__ONTop",l:"index-module_l__Z0I4S",xl:"index-module_xl__SNx-j"},c=function(c){var v=c.size,f=void 0===v?"s":v,x=c.flatOptions,h=void 0===x?[]:x,g=c.highlightedIndex,_=void 0===g?-1:g,j=c.className,I=c.Option,b=c.open,O=c.options,y=void 0===O?[]:O,N=c.overscan,R=void 0===N?10:N,T=c.Optgroup,E=void 0===T?p:T,P=c.dataTestId,k=c.emptyPlaceholder,w=c.visibleOptions,S=void 0===w?5:w,z=t(null),L=t(null),Z=i(0),q=Z[0],C=Z[1],D=s(_)||-1,F=n({size:h.length,parentRef:L,overscan:R});o((function(){b&&F.scrollToIndex(_,{align:"end"})}),[b]),o((function(){-1!==_&&(F.virtualItems.some((function(e){return e.index===_}))||F.scrollToIndex(_,{align:"end"}))}),[_]),o((function(){var e=function(e){return!e.disabled},t=h.findIndex(e),i=a(h,e);D<=t&&_===h.length-1&&F.scrollToIndex(i),D>=i&&0===_&&F.scrollToIndex(0)}),[D,_]),o((function(){C(F.virtualItems.length>1?h.length:1)}),[F.virtualItems.length,h.length]),m({visibleOptions:S,invalidate:q,listRef:z,styleTargetRef:L,open:b});var M=r((function(){var e=0;return y.reduce((function(t,i,o){return d(i)?(t[e]=o,e+=i.options.length):e+=1,t}),{})}),[y]);return e.createElement("div",{className:l(u.virtualOptionsList,u[f],j),ref:L,"data-test-id":P},e.createElement("div",{className:u.inner,style:{height:F.totalSize+"px"},ref:z},F.virtualItems.map((function(t){var i,o=h[t.index],r=y[M[t.index]];return e.createElement("div",{key:t.index,ref:t.measureRef,className:l(u.virtualRow,(i={},i[u.highlighted]=_===t.index,i)),style:{transform:"translateY("+t.start+"px)"}},r&&e.createElement(E,{label:r.label}),!d(o)&&I({option:o,index:t.index}))}))),k&&0===y.length&&e.createElement("div",{className:u.emptyPlaceholder},k))};export{c as VirtualOptionsList};
1
+ import e,{useRef as t,useState as i,useEffect as o,useMemo as r}from"react";import{useVirtual as n}from"react-virtual";import l from"classnames";import{usePrevious as s}from"../../../hooks/usePrevious/index.js";import"../../../utils/get-service-error/index.js";import"../../../toast-notifier/component.js";import{lastIndexOf as a,useVisibleOptions as m,isGroup as d}from"../../utils.js";import{Optgroup as p}from"../optgroup/component.js";import"../../../utils/get-service-error/is-axios-error.js";import"../../../utils/get-service-error/is-network-error.js";import"../../../tslib.es6-881ff0c8.js";import"react-dom";import"../../../toast-plate/component.js";import"../../../_tslib-531dfe1b-4416fc82.js";import"../../../CloseS-f19e9906.js";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../toast-notifier/use-timer.js";var u={virtualOptionsList:"index-module_virtualOptionsList__2eWn8",inner:"index-module_inner__6DZqj",virtualRow:"index-module_virtualRow__0huMi",highlighted:"index-module_highlighted__Uxj8l",emptyPlaceholder:"index-module_emptyPlaceholder__ONTop",l:"index-module_l__Z0I4S",xl:"index-module_xl__SNx-j"},c=function(c){var v=c.size,f=void 0===v?"s":v,x=c.flatOptions,h=void 0===x?[]:x,g=c.highlightedIndex,_=void 0===g?-1:g,j=c.className,I=c.Option,b=c.open,O=c.options,y=void 0===O?[]:O,N=c.overscan,R=void 0===N?10:N,T=c.Optgroup,E=void 0===T?p:T,P=c.dataTestId,k=c.emptyPlaceholder,w=c.visibleOptions,S=void 0===w?5:w,z=t(null),L=t(null),Z=i(0),q=Z[0],C=Z[1],D=s(_)||-1,F=n({size:h.length,parentRef:L,overscan:R});o((function(){b&&F.scrollToIndex(_,{align:"end"})}),[b]),o((function(){-1!==_&&(F.virtualItems.some((function(e){return e.index===_}))||F.scrollToIndex(_,{align:"end"}))}),[_]),o((function(){var e=function(e){return!e.disabled},t=h.findIndex(e),i=a(h,e);D<=t&&_===h.length-1&&F.scrollToIndex(i),D>=i&&0===_&&F.scrollToIndex(0)}),[D,_]),o((function(){C(F.virtualItems.length>1?h.length:1)}),[F.virtualItems.length,h.length]),m({visibleOptions:S,invalidate:q,listRef:z,styleTargetRef:L,open:b});var M=r((function(){var e=0;return y.reduce((function(t,i,o){return d(i)?(t[e]=o,e+=i.options.length):e+=1,t}),{})}),[y]);return e.createElement("div",{className:l(u.virtualOptionsList,u[f],j),ref:L,"data-test-id":P},e.createElement("div",{className:u.inner,style:{height:F.totalSize+"px"},ref:z},F.virtualItems.map((function(t){var i,o=h[t.index],r=y[M[t.index]];return e.createElement("div",{key:t.index,ref:t.measureRef,className:l(u.virtualRow,(i={},i[u.highlighted]=_===t.index,i)),style:{transform:"translateY("+t.start+"px)"}},r&&e.createElement(E,{label:r.label}),!d(o)&&I({option:o,index:t.index}))}))),k&&0===y.length&&e.createElement("div",{className:u.emptyPlaceholder},k))};export{c as VirtualOptionsList};
@@ -1 +1 @@
1
- export{VirtualOptionsList}from"./component.js";import"react";import"react-virtual";import"classnames";import"../../../hooks/usePrevious/index.js";import"../../../utils/get-service-error/index.js";import"../../../utils/get-service-error/is-axios-error.js";import"../../../utils/get-service-error/is-network-error.js";import"../../../toast-notifier/component.js";import"../../../tslib.es6-8ca8591b.js";import"react-dom";import"../../../toast-plate/component.js";import"../../../_tslib-531dfe1b-07c947cb.js";import"../../../CloseS-1cf477a0.js";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../toast-notifier/use-timer.js";import"../../utils.js";import"../optgroup/component.js";
1
+ export{VirtualOptionsList}from"./component.js";import"react";import"react-virtual";import"classnames";import"../../../hooks/usePrevious/index.js";import"../../../utils/get-service-error/index.js";import"../../../utils/get-service-error/is-axios-error.js";import"../../../utils/get-service-error/is-network-error.js";import"../../../toast-notifier/component.js";import"../../../tslib.es6-881ff0c8.js";import"react-dom";import"../../../toast-plate/component.js";import"../../../_tslib-531dfe1b-4416fc82.js";import"../../../CloseS-f19e9906.js";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../toast-notifier/use-timer.js";import"../../utils.js";import"../optgroup/component.js";
@@ -1 +1 @@
1
- export{Select}from"./component.js";export{Arrow}from"./components/arrow/component.js";export{BaseSelect}from"./components/base-select/component.js";export{Field}from"./components/field/component.js";export{Optgroup}from"./components/optgroup/component.js";export{Option}from"./components/option/component.js";export{OptionsList}from"./components/options-list/component.js";export{VirtualOptionsList}from"./components/virtual-options-list/component.js";export{useSelectWithLoading}from"./presets/use-select-with-loading/hook.js";export{useLazyLoading}from"./presets/use-lazy-loading/index.js";export{convertToOptions,isGroup,isOptionShape,joinOptions,lastIndexOf,processOptions,useVisibleOptions}from"./utils.js";import"../tslib.es6-8ca8591b.js";import"react";import"classnames";import"react-merge-refs";import"downshift";import"resize-observer";import"../__internal/utils/getDataTestId.js";import"../popover/component.js";import"react-popper";import"react-transition-group";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";import"./components/native-select/component.js";import"../form-control/component.js";import"../hooks/useFocus/index.js";import"../skeleton/component.js";import"./components/checkmark/component.js";import"../_tslib-531dfe1b-07c947cb.js";import"../button/component.js";import"../loader/component.js";import"react-virtual";import"../hooks/usePrevious/index.js";import"../utils/get-service-error/index.js";import"../utils/get-service-error/is-axios-error.js";import"../utils/get-service-error/is-network-error.js";import"../toast-notifier/component.js";import"../toast-plate/component.js";import"../CloseS-1cf477a0.js";import"../toast-notifier/use-timer.js";import"../intersection-observer-37e23a64.js";
1
+ export{Select}from"./component.js";export{Arrow}from"./components/arrow/component.js";export{BaseSelect}from"./components/base-select/component.js";export{Field}from"./components/field/component.js";export{Optgroup}from"./components/optgroup/component.js";export{Option}from"./components/option/component.js";export{OptionsList}from"./components/options-list/component.js";export{VirtualOptionsList}from"./components/virtual-options-list/component.js";export{useSelectWithLoading}from"./presets/use-select-with-loading/hook.js";export{useLazyLoading}from"./presets/use-lazy-loading/index.js";export{convertToOptions,isGroup,isOptionShape,joinOptions,lastIndexOf,processOptions,useVisibleOptions}from"./utils.js";import"../tslib.es6-881ff0c8.js";import"react";import"classnames";import"react-merge-refs";import"downshift";import"resize-observer";import"../__internal/utils/getDataTestId.js";import"../popover/component.js";import"react-popper";import"react-transition-group";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";import"./components/native-select/component.js";import"../form-control/component.js";import"../hooks/useFocus/index.js";import"../skeleton/component.js";import"./components/checkmark/component.js";import"../_tslib-531dfe1b-4416fc82.js";import"../button/component.js";import"../loader/component.js";import"react-virtual";import"../hooks/usePrevious/index.js";import"../utils/get-service-error/index.js";import"../utils/get-service-error/is-axios-error.js";import"../utils/get-service-error/is-network-error.js";import"../toast-notifier/component.js";import"../toast-plate/component.js";import"../CloseS-f19e9906.js";import"../toast-notifier/use-timer.js";import"../intersection-observer-25cbb41b.js";
@@ -1 +1 @@
1
- export{useSelectWithLoading}from"./use-select-with-loading/hook.js";export{useLazyLoading}from"./use-lazy-loading/index.js";import"../../tslib.es6-8ca8591b.js";import"react";import"../../skeleton/component.js";import"classnames";import"../components/option/component.js";import"../components/checkmark/component.js";import"../utils.js";import"../../intersection-observer-37e23a64.js";
1
+ export{useSelectWithLoading}from"./use-select-with-loading/hook.js";export{useLazyLoading}from"./use-lazy-loading/index.js";import"../../tslib.es6-881ff0c8.js";import"react";import"../../skeleton/component.js";import"classnames";import"../components/option/component.js";import"../components/checkmark/component.js";import"../utils.js";import"../../intersection-observer-25cbb41b.js";
@@ -1 +1 @@
1
- import{a as n,b as e}from"../../../tslib.es6-8ca8591b.js";import t,{useReducer as o,useRef as r,useCallback as i,useEffect as a,useMemo as c}from"react";import{Option as s}from"../../components/option/component.js";import{convertToOptions as l}from"../../utils.js";import"../../../intersection-observer-37e23a64.js";import"classnames";import"../../../skeleton/component.js";import"../../components/checkmark/component.js";var u=300,p={fetchOptionsStart:function(){return{type:"FETCH_OPTIONS_START"}},fetchOptionsBreak:function(){return{type:"FETCH_OPTIONS_BREAK"}},fetchOptionsSuccess:function(n){return{type:"FETCH_OPTIONS_SUCCESS",payload:n}},setIsOpened:function(n){return{type:"SET_IS_OPENED",payload:n}},setQueryString:function(n){return{type:"SET_QUERY_STRING",payload:n}},reset:function(){return{type:"RESET"}}};function d(d){var f=d.limit,h=void 0===f?10:f,S=d.initialPage,T=void 0===S?0:S,g=d.optionsFetcher,m=[],v={opened:!1,page:T,options:m,loading:!1,allOptionsLoaded:!1,searchText:""},O=o((function(t,o){switch(o.type){case"FETCH_OPTIONS_START":return n(n({},t),{loading:!0});case"FETCH_OPTIONS_BREAK":return n(n({},t),{loading:!1});case"FETCH_OPTIONS_SUCCESS":return n(n({},t),{options:e(e([],t.options),o.payload.options),page:t.page+(o.payload.options.length?1:0),allOptionsLoaded:!o.payload.hasMore,loading:!1});case"SET_IS_OPENED":return n(n({},t),{opened:o.payload});case"SET_QUERY_STRING":return n(n({},v),{opened:t.opened,loading:!0,searchText:o.payload});case"RESET":return n({},v);default:return t}}),v),E=O[0],y=E.opened,_=E.page,P=E.options,I=E.loading,C=E.allOptionsLoaded,N=E.searchText,R=O[1],b=r(),F=i((function(){R(p.fetchOptionsStart()),new Promise((function(n,e){var t;null===(t=b.current)||void 0===t||t.call(b),b.current=e,g({page:_,limit:h,searchText:N}).then((function(e){n(e)}))})).then((function(n){var e=l(n.items),t=n.meta,o=t.totalPages,r=t.currentPage;R(p.fetchOptionsSuccess({options:e,hasMore:r<o})),b.current=void 0})).catch((function(n){console.log(n)}))}),[_,h,N,g]),j=r(null);a((function(){var n,e;if(y&&!I&&!C){e=new IntersectionObserver((function(n){n[0].isIntersecting&&(e&&e.disconnect(),F())}),{root:j.current});var t=null===(n=j.current)||void 0===n?void 0:n.querySelectorAll('[role="option"]'),o=null==t?void 0:t[t.length-1];o&&e.observe(o)}return function(){e&&e.disconnect()}}),[_,y,C,T,I,F]);var k=i((function(n){var e,t;n.open?P.length===m.length&&F():(null===(e=b.current)||void 0===e||e.call(b),R(p.fetchOptionsBreak())),R(p.setIsOpened(null!==(t=n.open)&&void 0!==t&&t))}),[m.length,P.length,F]),A=r(),H=r();a((function(){A.current=F}),[F]);var x=i((function(n,e){var t,o;R(p.setQueryString(e.value)),null===(t=b.current)||void 0===t||t.call(b),null===(o=j.current)||void 0===o||o.scrollTo({top:0}),H.current&&clearTimeout(H.current),H.current=setTimeout((function(){var n;null===(n=A.current)||void 0===n||n.call(A)}),u)}),[]),B=c((function(){return Array(I?h:0).fill(0).map((function(n,e){return{key:e,disabled:!0,content:"",loading:!0}}))}),[I,h]),L=i((function(){R(p.reset())}),[]);return{optionsProps:{Option:i((function(e){return t.createElement(s,n({},e,{highlighted:!I&&e.highlighted}))}),[I]),options:e(e([],P),B),optionsListProps:{ref:j,inputProps:{onChange:x,value:N}},onOpen:k},reset:L}}export{d as useLazyLoading};
1
+ import{a as n,b as e}from"../../../tslib.es6-881ff0c8.js";import t,{useReducer as o,useRef as r,useCallback as i,useEffect as c,useMemo as a}from"react";import{Option as s}from"../../components/option/component.js";import{convertToOptions as l}from"../../utils.js";import"../../../intersection-observer-25cbb41b.js";import"classnames";import"../../../skeleton/component.js";import"../../components/checkmark/component.js";var u=300,p={fetchOptionsStart:function(){return{type:"FETCH_OPTIONS_START"}},fetchOptionsBreak:function(){return{type:"FETCH_OPTIONS_BREAK"}},fetchOptionsSuccess:function(n){return{type:"FETCH_OPTIONS_SUCCESS",payload:n}},setIsOpened:function(n){return{type:"SET_IS_OPENED",payload:n}},setQueryString:function(n){return{type:"SET_QUERY_STRING",payload:n}},reset:function(){return{type:"RESET"}}};function d(d){var f=d.limit,h=void 0===f?10:f,S=d.initialPage,T=void 0===S?0:S,g=d.optionsFetcher,m=[],v={opened:!1,page:T,options:m,loading:!1,allOptionsLoaded:!1,searchText:""},O=o((function(t,o){switch(o.type){case"FETCH_OPTIONS_START":return n(n({},t),{loading:!0});case"FETCH_OPTIONS_BREAK":return n(n({},t),{loading:!1});case"FETCH_OPTIONS_SUCCESS":return n(n({},t),{options:e(e([],t.options),o.payload.options),page:t.page+(o.payload.options.length?1:0),allOptionsLoaded:!o.payload.hasMore,loading:!1});case"SET_IS_OPENED":return n(n({},t),{opened:o.payload});case"SET_QUERY_STRING":return n(n({},v),{opened:t.opened,loading:!0,searchText:o.payload});case"RESET":return n({},v);default:return t}}),v),E=O[0],y=E.opened,_=E.page,P=E.options,I=E.loading,C=E.allOptionsLoaded,N=E.searchText,R=O[1],b=r(),F=i((function(){R(p.fetchOptionsStart()),new Promise((function(n,e){var t;null===(t=b.current)||void 0===t||t.call(b),b.current=e,g({page:_,limit:h,searchText:N}).then((function(e){n(e)}))})).then((function(n){var e=l(n.items),t=n.meta,o=t.totalPages,r=t.currentPage;R(p.fetchOptionsSuccess({options:e,hasMore:r<o})),b.current=void 0})).catch((function(n){console.log(n)}))}),[_,h,N,g]),j=r(null);c((function(){var n,e;if(y&&!I&&!C){e=new IntersectionObserver((function(n){n[0].isIntersecting&&(e&&e.disconnect(),F())}),{root:j.current});var t=null===(n=j.current)||void 0===n?void 0:n.querySelectorAll('[role="option"]'),o=null==t?void 0:t[t.length-1];o&&e.observe(o)}return function(){e&&e.disconnect()}}),[_,y,C,T,I,F]);var k=i((function(n){var e,t;n.open?P.length===m.length&&F():(null===(e=b.current)||void 0===e||e.call(b),R(p.fetchOptionsBreak())),R(p.setIsOpened(null!==(t=n.open)&&void 0!==t&&t))}),[m.length,P.length,F]),A=r(),H=r();c((function(){A.current=F}),[F]);var x=i((function(n,e){var t,o;R(p.setQueryString(e.value)),null===(t=b.current)||void 0===t||t.call(b),null===(o=j.current)||void 0===o||o.scrollTo({top:0}),H.current&&clearTimeout(H.current),H.current=setTimeout((function(){var n;null===(n=A.current)||void 0===n||n.call(A)}),u)}),[]),B=a((function(){return Array(I?h:0).fill(0).map((function(n,e){return{key:e,disabled:!0,content:"",loading:!0}}))}),[I,h]),L=i((function(){R(p.reset())}),[]);return{optionsProps:{Option:i((function(e){return t.createElement(s,n({},e,{highlighted:!I&&e.highlighted}))}),[I]),options:e(e([],P),B),optionsListProps:{ref:j,inputProps:{onChange:x,value:N}},onOpen:k},reset:L}}export{d as useLazyLoading};
@@ -1 +1 @@
1
- import{a as e}from"../../../tslib.es6-8ca8591b.js";import o,{useCallback as n}from"react";import{Skeleton as t}from"../../../skeleton/component.js";import{Option as i}from"../../components/option/component.js";import"classnames";import"../../components/checkmark/component.js";var r={skeleton:"index-module_skeleton__9Xlnt"};function l(l){var m=l.loading,s=void 0!==m&&m,a=l.visibleOptions,c=void 0===a?6:a,p=n((function(n){return o.createElement(i,e({},n,{Checkmark:null,highlighted:!s&&n.highlighted}))}),[s]),d=Array(c).fill(0).map((function(e,n){return{key:n,disabled:!0,content:o.createElement(t,{className:r.skeleton,visible:!0})}}));return s?{Option:p,options:d}:null}export{l as useSelectWithLoading};
1
+ import{a as e}from"../../../tslib.es6-881ff0c8.js";import o,{useCallback as n}from"react";import{Skeleton as t}from"../../../skeleton/component.js";import{Option as i}from"../../components/option/component.js";import"classnames";import"../../components/checkmark/component.js";var r={skeleton:"index-module_skeleton__9Xlnt"};function l(l){var m=l.loading,s=void 0!==m&&m,c=l.visibleOptions,a=void 0===c?6:c,p=n((function(n){return o.createElement(i,e({},n,{Checkmark:null,highlighted:!s&&n.highlighted}))}),[s]),f=Array(a).fill(0).map((function(e,n){return{key:n,disabled:!0,content:o.createElement(t,{className:r.skeleton,visible:!0})}}));return s?{Option:p,options:f}:null}export{l as useSelectWithLoading};
@@ -1 +1 @@
1
- import e from"react";import t from"classnames";import{Typography as o}from"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-8ca8591b.js";import"../typography/title/component.js";import"../colors.module-bad46263.js";import"../common.module-e63bd441.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var m="index-module_wrapper__QxqDy",r="index-module_heading__XGDyC",a="index-module_bottomAddons__3yzd0",d="index-module_border__lFf3f",i=function(i){var s,l=i.className,n=i.dataTestId,p=i.title,c=i.rightAddons,y=i.bottomAddons,_=i.border;return e.createElement("div",{"data-test-id":n,className:t(m,l,(s={},s[d]=_,s))},e.createElement("div",{className:r},e.createElement(o.Title,{tag:"h3",view:"small",weight:"bold"},p),c&&e.createElement("div",null,c)),y&&e.createElement("div",{className:a},y))};export{i as SidepanelHeader};
1
+ import e from"react";import t from"classnames";import{Typography as o}from"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-881ff0c8.js";import"../typography/title/component.js";import"../colors.module-23323d33.js";import"../common.module-cf8a5ddf.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var m="index-module_wrapper__QxqDy",r="index-module_heading__XGDyC",d="index-module_bottomAddons__3yzd0",a="index-module_border__lFf3f",i=function(i){var s,l=i.className,n=i.dataTestId,p=i.title,c=i.rightAddons,y=i.bottomAddons,_=i.border;return e.createElement("div",{"data-test-id":n,className:t(m,l,(s={},s[a]=_,s))},e.createElement("div",{className:r},e.createElement(o.Title,{tag:"h3",view:"small",weight:"bold"},p),c&&e.createElement("div",null,c)),y&&e.createElement("div",{className:d},y))};export{i as SidepanelHeader};
@@ -1 +1 @@
1
- export{SidepanelHeader}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-8ca8591b.js";import"../typography/title/component.js";import"../colors.module-bad46263.js";import"../common.module-e63bd441.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
1
+ export{SidepanelHeader}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-881ff0c8.js";import"../typography/title/component.js";import"../colors.module-23323d33.js";import"../common.module-cf8a5ddf.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
@@ -1 +1 @@
1
- import{a as e}from"../tslib.es6-8ca8591b.js";import t from"react";var a=function(a){var r=a.className,i=a.horizontalSize,l=a.verticalSize,n=a.length,m=a.direction,o=a.index,c=a.children,s=a.divider,d=a.wrap,g={};return"vertical"===m?o<n&&(g={marginBottom:i/(s?2:1)}):g=e(e({},o<n&&{marginRight:i/(s?2:1)}),d&&{paddingBottom:l}),null==c?null:t.createElement(t.Fragment,null,t.createElement("div",{className:r,style:g},c),o<n-1&&s&&t.createElement("span",{style:e({width:"100%"},g)},s))};export{a as default};
1
+ import{a as e}from"../tslib.es6-881ff0c8.js";import t from"react";var a=function(a){var r=a.className,i=a.horizontalSize,l=a.verticalSize,n=a.length,m=a.direction,o=a.index,c=a.children,s=a.divider,d=a.wrap,f={};return"vertical"===m?o<n&&(f={marginBottom:i/(s?2:1)}):f=e(e({},o<n&&{marginRight:i/(s?2:1)}),d&&{paddingBottom:l}),null==c?null:t.createElement(t.Fragment,null,t.createElement("div",{className:r,style:f},c),o<n-1&&s&&t.createElement("span",{style:e({width:"100%"},f)},s))};export{a as default};
@@ -1 +1 @@
1
- import{a as e}from"../tslib.es6-8ca8591b.js";import t,{forwardRef as i,Children as r}from"react";import n from"classnames";import a from"./Item.js";var l={spaceContainer:"index-module_spaceContainer__Onnxn",spaceContainerFullWidth:"index-module_spaceContainerFullWidth__W7-9v",vertical:"index-module_vertical__EjIme",center:"index-module_center__VDiFi",start:"index-module_start__WKuO-",end:"index-module_end__FzVWP",spaceItemFullWidth:"index-module_spaceItemFullWidth__C58tA",spaceItem:"index-module_spaceItem__oUYtC"},o={s:12,m:16,l:20},d=i((function(i,d){var m,s,c=i.children,u=i.className,p=i.align,_=void 0===p?"start":p,v=i.direction,f=void 0===v?"vertical":v,h=i.size,x=void 0===h?"m":h,W=i.wrap,C=void 0!==W&&W,F=i.divider,I=void 0!==F&&F,g=i.fullWidth,y=void 0!==g&&g,z=t.useMemo((function(){return(Array.isArray(x)?x:[x,x]).map((function(e){return function(e){return"string"==typeof e?o[e]:e||0}(e)}))}),[x]),A=z[0],j=z[1],w=r.toArray(c);if(0===w.length)return null;var E=n(l.spaceContainer,l[f],((m={})[l[_]]=_,m[l.spaceContainerFullWidth]=y,m),u),N=n(l.spaceItem,((s={})[l.spaceItemFullWidth]=y,s)),b=w.map((function(e,i){return t.createElement(a,{className:N,key:N+"-"+i,direction:f,horizontalSize:A,verticalSize:j,length:w.length,index:i,wrap:C,divider:I},e)}));return t.createElement("div",{className:E,style:e({},C&&{flexWrap:"wrap",marginBottom:-j}),ref:d},b)}));export{d as Space};
1
+ import{a as e}from"../tslib.es6-881ff0c8.js";import t,{forwardRef as i,Children as r}from"react";import n from"classnames";import a from"./Item.js";var l={spaceContainer:"index-module_spaceContainer__Onnxn",spaceContainerFullWidth:"index-module_spaceContainerFullWidth__W7-9v",vertical:"index-module_vertical__EjIme",center:"index-module_center__VDiFi",start:"index-module_start__WKuO-",end:"index-module_end__FzVWP",spaceItemFullWidth:"index-module_spaceItemFullWidth__C58tA",spaceItem:"index-module_spaceItem__oUYtC"},o={s:12,m:16,l:20},d=i((function(i,d){var m,s,c=i.children,u=i.className,p=i.align,_=void 0===p?"start":p,v=i.direction,f=void 0===v?"vertical":v,h=i.size,x=void 0===h?"m":h,W=i.wrap,C=void 0!==W&&W,F=i.divider,I=void 0!==F&&F,g=i.fullWidth,y=void 0!==g&&g,z=t.useMemo((function(){return(Array.isArray(x)?x:[x,x]).map((function(e){return function(e){return"string"==typeof e?o[e]:e||0}(e)}))}),[x]),A=z[0],j=z[1],w=r.toArray(c);if(0===w.length)return null;var E=n(l.spaceContainer,l[f],((m={})[l[_]]=_,m[l.spaceContainerFullWidth]=y,m),u),N=n(l.spaceItem,((s={})[l.spaceItemFullWidth]=y,s)),O=w.map((function(e,i){return t.createElement(a,{className:N,key:N+"-"+i,direction:f,horizontalSize:A,verticalSize:j,length:w.length,index:i,wrap:C,divider:I},e)}));return t.createElement("div",{className:E,style:e({},C&&{flexWrap:"wrap",marginBottom:-j}),ref:d},O)}));export{d as Space};
@@ -1 +1 @@
1
- export{Space}from"./component.js";import"../tslib.es6-8ca8591b.js";import"react";import"classnames";import"./Item.js";
1
+ export{Space}from"./component.js";import"../tslib.es6-881ff0c8.js";import"react";import"classnames";import"./Item.js";
@@ -1 +1 @@
1
- import t,{useState as e}from"react";import o from"classnames";import{s as r,S as i}from"../step-bar-605b8ce2.js";import{Typography as p}from"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-8ca8591b.js";import"../typography/title/component.js";import"../colors.module-bad46263.js";import"../common.module-e63bd441.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var a=function(e){var a=e.maxStep,s=e.description,n=e.step,m=void 0===n?0:n,c=e.view,l=e.dataTestId,d=e.className,y=a<=0?1:a,v="string"==typeof c;return t.createElement("div",{className:o(r.component,d),"data-test-id":l},t.createElement("div",{className:r.stepsContainer},Array.from(Array(y),(function(e,o){return t.createElement(i,{key:o,isDone:o<m,view:v?c:null==c?void 0:c[o]})}))),s&&t.createElement(p.Text,{tag:"div",className:r.description,view:"primary-small"},"Шаг ",m," из ",a,": ",s))},s=function(t){var o=t.maxStep,r=t.initialStep,i=e(void 0===r?1:r),p=i[0],a=i[1];return{step:p,setStep:a,nextStep:function(){a(p<o?p+1:o)},prevStep:function(){a(1===p?p:p-1)}}};export{a as SteppedProgressBar,s as useSteps};
1
+ import t,{useState as e}from"react";import o from"classnames";import{s as r,S as i}from"../step-bar-e84e8bd7.js";import{Typography as p}from"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-881ff0c8.js";import"../typography/title/component.js";import"../colors.module-23323d33.js";import"../common.module-cf8a5ddf.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var s=function(e){var s=e.maxStep,a=e.description,n=e.step,m=void 0===n?0:n,c=e.view,l=e.dataTestId,d=e.className,f=s<=0?1:s,y="string"==typeof c;return t.createElement("div",{className:o(r.component,d),"data-test-id":l},t.createElement("div",{className:r.stepsContainer},Array.from(Array(f),(function(e,o){return t.createElement(i,{key:o,isDone:o<m,view:y?c:null==c?void 0:c[o]})}))),a&&t.createElement(p.Text,{tag:"div",className:r.description,view:"primary-small"},"Шаг ",m," из ",s,": ",a))},a=function(t){var o=t.maxStep,r=t.initialStep,i=e(void 0===r?1:r),p=i[0],s=i[1];return{step:p,setStep:s,nextStep:function(){s(p<o?p+1:o)},prevStep:function(){s(1===p?p:p-1)}}};export{s as SteppedProgressBar,a as useSteps};
@@ -1 +1 @@
1
- import"react";import"classnames";export{S as StepBar}from"../step-bar-605b8ce2.js";
1
+ import"react";import"classnames";export{S as StepBar}from"../step-bar-e84e8bd7.js";
@@ -1 +1 @@
1
- import{_ as e,a as o}from"../tslib.es6-8ca8591b.js";import n,{forwardRef as r,useState as a,useEffect as t,useCallback as i,Fragment as s}from"react";import l from"classnames";import{Input as m}from"../input/component.js";import{withSuffix as u}from"../with-suffix/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"../portal/component.js";import"react-dom";import"../portal/utils.js";var c={container:"index-module_container__tczFF",minorPartAndCurrency:"index-module_minorPartAndCurrency__0K7XF",suffixContainer:"index-module_suffixContainer__8eIxg",filled:"index-module_filled__nKrpt",input:"index-module_input__SIj3W"},d=u(m),f=r((function(r,m){var u,f=r.value,p=r.suffix,C=r.placeholder,v=void 0===C?"":C,x=r.bold,_=void 0===x||x,N=r.className,j=r.focusedClassName,b=r.required,g=r.dataTestId,h=r.clear,I=void 0!==h&&h,y=r.onChange,E=r.onClear,F=e(r,["value","suffix","placeholder","bold","className","focusedClassName","required","dataTestId","clear","onChange","onClear"]),q=a(f),A=q[0],P=q[1];t((function(){return A!==f?P(f):function(){}}),[f]);var T=i((function(e){P(void 0),E&&E(e)}),[E]);return n.createElement("div",{className:l(c.container,(u={},u[c.bold]=_,u[c.filled]=Boolean(A),u))},n.createElement(d,o({},F,{suffix:n.createElement(s,null,A,n.createElement("span",{className:c.minorPartAndCurrency}," ",p)),suffixContainerClassName:c.suffixContainer,clear:I,required:b,placeholder:v,value:Number.isInteger(f)?""+f:void 0,type:"number",className:l(c.component,N),focusedClassName:j,inputClassName:c.input,onChange:function(e){var o=e.target.value;y&&y(e,{value:Number.isInteger(+o)?+o:void 0})},onClear:T,dataTestId:g,ref:m})))}));export{f as SuffixInput};
1
+ import{_ as e,a as o}from"../tslib.es6-881ff0c8.js";import n,{forwardRef as r,useState as a,useEffect as t,useCallback as i,Fragment as s}from"react";import l from"classnames";import{Input as m}from"../input/component.js";import{withSuffix as u}from"../with-suffix/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"../portal/component.js";import"react-dom";import"../portal/utils.js";var c={container:"index-module_container__tczFF",minorPartAndCurrency:"index-module_minorPartAndCurrency__0K7XF",suffixContainer:"index-module_suffixContainer__8eIxg",filled:"index-module_filled__nKrpt",input:"index-module_input__SIj3W"},d=u(m),f=r((function(r,m){var u,f=r.value,p=r.suffix,C=r.placeholder,v=void 0===C?"":C,x=r.bold,_=void 0===x||x,N=r.className,j=r.focusedClassName,b=r.required,g=r.dataTestId,h=r.clear,I=void 0!==h&&h,y=r.onChange,E=r.onClear,F=e(r,["value","suffix","placeholder","bold","className","focusedClassName","required","dataTestId","clear","onChange","onClear"]),q=a(f),A=q[0],P=q[1];t((function(){return A!==f?P(f):function(){}}),[f]);var T=i((function(e){P(void 0),E&&E(e)}),[E]);return n.createElement("div",{className:l(c.container,(u={},u[c.bold]=_,u[c.filled]=Boolean(A),u))},n.createElement(d,o({},F,{suffix:n.createElement(s,null,A,n.createElement("span",{className:c.minorPartAndCurrency}," ",p)),suffixContainerClassName:c.suffixContainer,clear:I,required:b,placeholder:v,value:Number.isInteger(f)?""+f:void 0,type:"number",className:l(c.component,N),focusedClassName:j,inputClassName:c.input,onChange:function(e){var o=e.target.value;y&&y(e,{value:Number.isInteger(+o)?+o:void 0})},onClear:T,dataTestId:g,ref:m})))}));export{f as SuffixInput};
@@ -1 +1 @@
1
- export{SuffixInput}from"./component.js";import"../tslib.es6-8ca8591b.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"../with-suffix/component.js";import"../portal/component.js";import"react-dom";import"../portal/utils.js";
1
+ export{SuffixInput}from"./component.js";import"../tslib.es6-881ff0c8.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"../with-suffix/component.js";import"../portal/component.js";import"react-dom";import"../portal/utils.js";
@@ -1 +1 @@
1
- import e from"react";import{Typography as t}from"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-8ca8591b.js";import"../typography/title/component.js";import"classnames";import"../colors.module-bad46263.js";import"../common.module-e63bd441.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var o="index-module_component__cofLq",m="index-module_leftSide__qNA7Y",n="index-module_leftAddons__l-m-3",r="index-module_rightAddons__m-u4n",i=function(i){var s=i.text,p=i.leftAddons,a=i.rightAddons;return e.createElement("div",{className:o},e.createElement("div",{className:m},e.createElement(t.Text,{weight:"bold",tag:"span"},s),p&&e.createElement("div",{className:n},p)),a&&e.createElement("div",{className:r},a))};export{i as SuperListHeader};
1
+ import e from"react";import{Typography as t}from"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-881ff0c8.js";import"../typography/title/component.js";import"classnames";import"../colors.module-23323d33.js";import"../common.module-cf8a5ddf.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var o="index-module_component__cofLq",m="index-module_leftSide__qNA7Y",n="index-module_leftAddons__l-m-3",r="index-module_rightAddons__m-u4n",i=function(i){var s=i.text,d=i.leftAddons,p=i.rightAddons;return e.createElement("div",{className:o},e.createElement("div",{className:m},e.createElement(t.Text,{weight:"bold",tag:"span"},s),d&&e.createElement("div",{className:n},d)),p&&e.createElement("div",{className:r},p))};export{i as SuperListHeader};
@@ -1 +1 @@
1
- export{SuperListHeader}from"./component.js";import"react";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-8ca8591b.js";import"../typography/title/component.js";import"classnames";import"../colors.module-bad46263.js";import"../common.module-e63bd441.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
1
+ export{SuperListHeader}from"./component.js";import"react";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-881ff0c8.js";import"../typography/title/component.js";import"classnames";import"../colors.module-23323d33.js";import"../common.module-cf8a5ddf.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
@@ -1 +1 @@
1
- import e from"react";import t from"classnames";import{Typography as o}from"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-8ca8591b.js";import"../typography/title/component.js";import"../colors.module-bad46263.js";import"../common.module-e63bd441.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var i="index-module_component__exnSI",a="index-module_leftSide__t9PJZ",m="index-module_content__Z53Wl",r="index-module_leftAddons__AhXk-",l="index-module_disabled_dot__Ret4Z",n="index-module_rightAddons__UjV9O",d=function(d){var s=d.text,c=d.rightAddons,p=d.leftAddons,_=d.color,v=void 0===_?"primary":_,g=d.disabled,x=d.className,y=d.weight,h=void 0===y?"regular":y,u=d.hint;return e.createElement("div",{className:t(i,x)},e.createElement("div",{className:a},p&&!g&&e.createElement("div",{className:r},p),g&&e.createElement("div",{className:r},e.createElement("span",{className:l})),e.createElement("div",{className:m},e.createElement(o.Text,{weight:h,color:v,view:"title",tag:"div"},s),e.createElement(o.Text,{color:"secondary",view:"caps",tag:"div"},u))),c&&e.createElement("div",{className:n},"string"==typeof c?e.createElement(o.Text,{weight:h,color:v,view:"title",tag:"div"},c):c))};export{d as SuperListItem};
1
+ import e from"react";import t from"classnames";import{Typography as o}from"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-881ff0c8.js";import"../typography/title/component.js";import"../colors.module-23323d33.js";import"../common.module-cf8a5ddf.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var i="index-module_component__exnSI",m="index-module_leftSide__t9PJZ",r="index-module_content__Z53Wl",a="index-module_leftAddons__AhXk-",l="index-module_disabled_dot__Ret4Z",d="index-module_rightAddons__UjV9O",n=function(n){var s=n.text,c=n.rightAddons,p=n.leftAddons,_=n.color,v=void 0===_?"primary":_,g=n.disabled,x=n.className,y=n.weight,f=void 0===y?"regular":y,h=n.hint;return e.createElement("div",{className:t(i,x)},e.createElement("div",{className:m},p&&!g&&e.createElement("div",{className:a},p),g&&e.createElement("div",{className:a},e.createElement("span",{className:l})),e.createElement("div",{className:r},e.createElement(o.Text,{weight:f,color:v,view:"title",tag:"div"},s),e.createElement(o.Text,{color:"secondary",view:"caps",tag:"div"},h))),c&&e.createElement("div",{className:d},"string"==typeof c?e.createElement(o.Text,{weight:f,color:v,view:"title",tag:"div"},c):c))};export{n as SuperListItem};
@@ -1 +1 @@
1
- export{SuperListItem}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-8ca8591b.js";import"../typography/title/component.js";import"../colors.module-bad46263.js";import"../common.module-e63bd441.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
1
+ export{SuperListItem}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/title/index.js";import"../tslib.es6-881ff0c8.js";import"../typography/title/component.js";import"../colors.module-23323d33.js";import"../common.module-cf8a5ddf.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
@@ -1 +1 @@
1
- import{_ as e,a}from"../tslib.es6-8ca8591b.js";import d,{forwardRef as n,useRef as s,useCallback as t}from"react";import o from"react-merge-refs";import c from"classnames";import{useFocus as l}from"../hooks/useFocus/index.js";var m={component:"index-module_component__uXwqU",checked:"index-module_checked__dMpWF",switch:"index-module_switch__c7Qyf",start:"index-module_start__6RfRJ",center:"index-module_center__1n6sQ",addons:"index-module_addons__ZqO-o",block:"index-module_block__m7SjH",content:"index-module_content__hoWfv",label:"index-module_label__earxI",hint:"index-module_hint__LstQQ",reversed:"index-module_reversed__fS7Bs",disabled:"index-module_disabled__s1L6d",focused:"index-module_focused__v7jCm"},r=n((function(n,r){var i,_=n.reversed,u=void 0!==_&&_,h=n.checked,b=void 0!==h&&h,p=n.align,x=void 0===p?"start":p,f=n.addons,k=n.block,v=n.disabled,N=n.label,g=n.hint,E=n.name,j=n.value,w=n.className,C=n.onChange,Q=n.dataTestId,y=e(n,["reversed","checked","align","addons","block","disabled","label","hint","name","value","className","onChange","dataTestId"]),I=s(null),q=l(I,"keyboard")[0],F=t((function(e){C&&C(e,{checked:e.target.checked,name:E})}),[C,E]);return d.createElement("label",{className:c(m.component,m[x],w,(i={},i[m.disabled]=v,i[m.checked]=b,i[m.reversed]=u,i[m.focused]=q,i[m.block]=k,i)),ref:o([I,r])},d.createElement("input",a({type:"checkbox",onChange:F,disabled:v,checked:b,name:E,value:j,"data-test-id":Q},y)),d.createElement("span",{className:m.switch}),(N||g)&&d.createElement("span",{className:m.content},N&&d.createElement("span",{className:m.label},N),g&&d.createElement("span",{className:m.hint},g)),f&&d.createElement("span",{className:m.addons},f))}));export{r as Switch};
1
+ import{_ as e,a}from"../tslib.es6-881ff0c8.js";import d,{forwardRef as n,useRef as s,useCallback as t}from"react";import o from"react-merge-refs";import c from"classnames";import{useFocus as l}from"../hooks/useFocus/index.js";var m={component:"index-module_component__uXwqU",checked:"index-module_checked__dMpWF",switch:"index-module_switch__c7Qyf",start:"index-module_start__6RfRJ",center:"index-module_center__1n6sQ",addons:"index-module_addons__ZqO-o",block:"index-module_block__m7SjH",content:"index-module_content__hoWfv",label:"index-module_label__earxI",hint:"index-module_hint__LstQQ",reversed:"index-module_reversed__fS7Bs",disabled:"index-module_disabled__s1L6d",focused:"index-module_focused__v7jCm"},r=n((function(n,r){var i,_=n.reversed,u=void 0!==_&&_,h=n.checked,b=void 0!==h&&h,f=n.align,p=void 0===f?"start":f,x=n.addons,k=n.block,v=n.disabled,N=n.label,g=n.hint,E=n.name,j=n.value,w=n.className,C=n.onChange,Q=n.dataTestId,y=e(n,["reversed","checked","align","addons","block","disabled","label","hint","name","value","className","onChange","dataTestId"]),I=s(null),q=l(I,"keyboard")[0],F=t((function(e){C&&C(e,{checked:e.target.checked,name:E})}),[C,E]);return d.createElement("label",{className:c(m.component,m[p],w,(i={},i[m.disabled]=v,i[m.checked]=b,i[m.reversed]=u,i[m.focused]=q,i[m.block]=k,i)),ref:o([I,r])},d.createElement("input",a({type:"checkbox",onChange:F,disabled:v,checked:b,name:E,value:j,"data-test-id":Q},y)),d.createElement("span",{className:m.switch}),(N||g)&&d.createElement("span",{className:m.content},N&&d.createElement("span",{className:m.label},N),g&&d.createElement("span",{className:m.hint},g)),x&&d.createElement("span",{className:m.addons},x))}));export{r as Switch};
@@ -1 +1 @@
1
- export{Switch}from"./component.js";import"../tslib.es6-8ca8591b.js";import"react";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";
1
+ export{Switch}from"./component.js";import"../tslib.es6-881ff0c8.js";import"react";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";
@@ -1 +1 @@
1
- import t from"react";import{Button as e}from"../button/component.js";import"../tslib.es6-8ca8591b.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";var r=function(){return[{header:"Title",accessor:"title",sort:!0,row:{image:function(){return"https://via.placeholder.com/150"},subtitle:"title"}},{header:"Photo",accessor:"photo",sort:!0,row:{title:function(t){return t.row.title+"awdawd"},image:function(t){return t.row.photo}}},{header:"no icon",row:{icon:function(){return""}}},{header:"Button",align:"right",width:"200px",row:{title:function(r){var o=r.refetch;return t.createElement(e,{onClick:o},"Refetch")},customAddon:function(e){var r=e.row;return t.createElement("div",{style:{background:"red"}},r.title.length)}}}]};export{r as NewColumns};
1
+ import t from"react";import{Button as e}from"../button/component.js";import"../tslib.es6-881ff0c8.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";var r=function(){return[{header:"Title",accessor:"title",sort:!0,row:{image:function(){return"https://via.placeholder.com/150"},subtitle:"title"}},{header:"Photo",accessor:"photo",sort:!0,row:{title:function(t){return t.row.title+"awdawd"},image:function(t){return t.row.photo}}},{header:"no icon",row:{icon:function(){return""}}},{header:"Button",align:"right",width:"200px",row:{title:function(r){var o=r.refetch;return t.createElement(e,{onClick:o},"Refetch")},customAddon:function(e){var r=e.row;return t.createElement("div",{style:{background:"red"}},r.title.length)}}}]};export{r as NewColumns};