@alphakits/ui 1.3.20 → 1.5.0

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 (319) hide show
  1. package/dist/{_commonjsHelpers-51fecfef.js → _commonjsHelpers-3e170942.js} +0 -0
  2. package/dist/amount/component.js +1 -1
  3. package/dist/amount/index.js +1 -1
  4. package/dist/amount-input/component.d.ts +1 -1
  5. package/dist/amount-input/component.js +1 -1
  6. package/dist/amount-input/index.js +1 -1
  7. package/dist/avatar/component.d.ts +6 -18
  8. package/dist/avatar/component.js +1 -1
  9. package/dist/avatar/index.js +1 -1
  10. package/dist/button/component.js +1 -1
  11. package/dist/button/index.js +1 -1
  12. package/dist/calendar/component.js +1 -1
  13. package/dist/calendar/components/days-table/component.js +1 -1
  14. package/dist/calendar/components/days-table/index.js +1 -1
  15. package/dist/calendar/components/header/index.js +1 -1
  16. package/dist/calendar/components/header//321/201omponent.js +1 -1
  17. package/dist/calendar/components/months-table/index.js +1 -1
  18. package/dist/calendar/components/months-table//321/201omponent.js +1 -1
  19. package/dist/calendar/components/select-button/index.js +1 -1
  20. package/dist/calendar/components/select-button//321/201omponent.d.ts +1 -1
  21. package/dist/calendar/components/select-button//321/201omponent.js +1 -1
  22. package/dist/calendar/components/years-table/index.js +1 -1
  23. package/dist/calendar/components/years-table//321/201omponent.js +1 -1
  24. package/dist/calendar/index.js +1 -1
  25. package/dist/calendar-input/component.d.ts +1 -1
  26. package/dist/calendar-input/component.js +1 -1
  27. package/dist/calendar-input/index.js +1 -1
  28. package/dist/cell/base/component.js +1 -1
  29. package/dist/cell/base/index.d.ts +1 -1
  30. package/dist/cell/base/index.js +1 -1
  31. package/dist/cell/component.js +1 -1
  32. package/dist/cell/index.d.ts +1 -1
  33. package/dist/cell/index.js +1 -1
  34. package/dist/cell/pure/component.d.ts +1 -1
  35. package/dist/cell/pure/component.js +1 -1
  36. package/dist/cell/pure/index.js +1 -1
  37. package/dist/checkbox/component.d.ts +1 -1
  38. package/dist/checkbox/component.js +1 -1
  39. package/dist/checkbox/index.js +1 -1
  40. package/dist/checkbox-group/component.js +1 -1
  41. package/dist/checkbox-group/index.js +1 -1
  42. package/dist/checkbox-lists/component.d.ts +2 -1
  43. package/dist/checkbox-lists/component.js +1 -1
  44. package/dist/checkbox-lists/index.js +1 -1
  45. package/dist/collapse/component.js +1 -1
  46. package/dist/collapse/index.js +1 -1
  47. package/dist/{colors.module-cc121901.js → colors.module-ad73c09a.js} +0 -0
  48. package/dist/{common.module-d34bb3c5.js → common.module-10ade317.js} +0 -0
  49. package/dist/component-9ce2c0ee.d.ts +14 -0
  50. package/dist/component-9ce2c0ee.js +1 -0
  51. package/dist/component-e71445f5.d.ts +7 -0
  52. package/dist/{contact-block-e5022060.d.ts → contact-block-cce152f7.d.ts} +0 -0
  53. package/dist/{contact-block-e5022060.js → contact-block-cce152f7.js} +0 -0
  54. package/dist/copy-button/component.js +1 -1
  55. package/dist/copy-button/index.js +1 -1
  56. package/dist/date/component.js +1 -1
  57. package/dist/date/index.js +1 -1
  58. package/dist/date-switcher/component.js +1 -1
  59. package/dist/date-switcher/index.js +1 -1
  60. package/dist/footer/component.js +1 -1
  61. package/dist/footer/components/contacts-block.js +1 -1
  62. package/dist/footer/contact-block.js +1 -1
  63. package/dist/footer/index.js +1 -1
  64. package/dist/form/component.js +1 -1
  65. package/dist/form/components/form-footer/index.js +1 -1
  66. package/dist/form/components/index.js +1 -1
  67. package/dist/form/index.js +1 -1
  68. package/dist/form/templates/crud-form/index.js +1 -1
  69. package/dist/form/templates/filters-form/index.js +1 -1
  70. package/dist/form/templates/rest-form/index.js +1 -1
  71. package/dist/form/utils/get-default-values.js +1 -1
  72. package/dist/form-control/component.d.ts +1 -1
  73. package/dist/form-control/component.js +1 -1
  74. package/dist/form-control/index.js +1 -1
  75. package/dist/{formik.esm-10a4c7bf.js → formik.esm-9b402931.js} +1 -1
  76. package/dist/grid/col/component.js +1 -1
  77. package/dist/grid/col/index.js +1 -1
  78. package/dist/grid/component.js +1 -1
  79. package/dist/grid/index.js +1 -1
  80. package/dist/grid/row/component.js +1 -1
  81. package/dist/grid/row/index.js +1 -1
  82. package/dist/{gutters.module-6e22a1ed.js → gutters.module-557bd949.js} +0 -0
  83. package/dist/heading/component.js +1 -1
  84. package/dist/heading/index.js +1 -1
  85. package/dist/hooks/index.js +1 -1
  86. package/dist/hooks/use-crud-form-requests/index.js +1 -1
  87. package/dist/hooks/use-get-ine/index.js +1 -1
  88. package/dist/icon-button/component.d.ts +1 -1
  89. package/dist/icon-button/component.js +1 -1
  90. package/dist/icon-button/index.js +1 -1
  91. package/dist/image/component.d.ts +2 -16
  92. package/dist/image/component.js +1 -1
  93. package/dist/image/constants.d.ts +13 -0
  94. package/dist/image/constants.js +1 -0
  95. package/dist/image/index.d.ts +3 -0
  96. package/dist/image/index.js +1 -1
  97. package/dist/image/typings.d.ts +25 -0
  98. package/dist/image/typings.js +1 -0
  99. package/dist/{cell/action/component.d.ts → image/use-image-render-component.d.ts} +0 -0
  100. package/dist/image/use-image-render-component.js +1 -0
  101. package/dist/image/utils.d.ts +4 -0
  102. package/dist/image/utils.js +1 -0
  103. package/dist/index.css +1 -5
  104. package/dist/index.ts +0 -7
  105. package/dist/info-block-header/component.js +1 -1
  106. package/dist/info-block-header/index.js +1 -1
  107. package/dist/info-block-item/component.js +1 -1
  108. package/dist/info-block-item/index.js +1 -1
  109. package/dist/input/component.d.ts +1 -1
  110. package/dist/input/component.js +1 -1
  111. package/dist/input/index.js +1 -1
  112. package/dist/intersection-observer-ce86058b.js +1 -0
  113. package/dist/link/component.js +1 -1
  114. package/dist/link/index.js +1 -1
  115. package/dist/list-allert/component.js +1 -1
  116. package/dist/list-allert/index.js +1 -1
  117. package/dist/masked-input/component.d.ts +1 -1
  118. package/dist/masked-input/component.js +1 -1
  119. package/dist/masked-input/index.js +1 -1
  120. package/dist/message/component.js +1 -1
  121. package/dist/message/index.js +1 -1
  122. package/dist/modal/components/modals/index.js +1 -1
  123. package/dist/modal/context.js +1 -1
  124. package/dist/modal/hooks/use-modal.js +1 -1
  125. package/dist/modal/index.js +1 -1
  126. package/dist/modal/types.d.ts +1 -1
  127. package/dist/not-found/component.js +1 -1
  128. package/dist/not-found/index.js +1 -1
  129. package/dist/notification/component.js +1 -1
  130. package/dist/notification/index.js +1 -1
  131. package/dist/{parse-query-params-42783896.d.ts → parse-query-params-d519bf2a.d.ts} +0 -0
  132. package/dist/{parse-query-params-42783896.js → parse-query-params-d519bf2a.js} +1 -1
  133. package/dist/picker-button/component.d.ts +2 -2
  134. package/dist/picker-button/component.js +1 -1
  135. package/dist/picker-button/field/Component.js +1 -1
  136. package/dist/picker-button/field/index.js +1 -1
  137. package/dist/picker-button/index.js +1 -1
  138. package/dist/popover/component.js +1 -1
  139. package/dist/popover/index.js +1 -1
  140. package/dist/progress-bar/component.js +1 -1
  141. package/dist/progress-bar/index.js +1 -1
  142. package/dist/progress-index/component.js +1 -1
  143. package/dist/progress-index/index.js +1 -1
  144. package/dist/radio/component.d.ts +1 -1
  145. package/dist/radio/component.js +1 -1
  146. package/dist/radio/index.js +1 -1
  147. package/dist/radio-group/component.js +1 -1
  148. package/dist/radio-group/index.js +1 -1
  149. package/dist/radio-groups/component.d.ts +2 -1
  150. package/dist/radio-groups/component.js +1 -1
  151. package/dist/radio-groups/index.js +1 -1
  152. package/dist/select/component.d.ts +2 -2
  153. package/dist/select/component.js +1 -1
  154. package/dist/select/components/base-select/component.js +1 -1
  155. package/dist/select/components/base-select/index.js +1 -1
  156. package/dist/select/components/field/component.js +1 -1
  157. package/dist/select/components/field/index.js +1 -1
  158. package/dist/select/components/index.js +1 -1
  159. package/dist/select/components/native-select/component.js +1 -1
  160. package/dist/select/components/native-select/index.js +1 -1
  161. package/dist/select/components/option/component.js +1 -1
  162. package/dist/select/components/option/index.js +1 -1
  163. package/dist/select/components/options-list/component.d.ts +2 -1
  164. package/dist/select/components/options-list/component.js +1 -1
  165. package/dist/select/components/options-list/index.js +1 -1
  166. package/dist/select/components/virtual-options-list/component.js +1 -1
  167. package/dist/select/components/virtual-options-list/index.js +1 -1
  168. package/dist/select/index.js +1 -1
  169. package/dist/select/presets/index.d.ts +1 -0
  170. package/dist/select/presets/index.js +1 -1
  171. package/dist/select/presets/use-lazy-loading/index.d.ts +45 -0
  172. package/dist/select/presets/use-lazy-loading/index.js +1 -0
  173. package/dist/select/presets/use-select-with-loading/hook.js +1 -1
  174. package/dist/select/typings.d.ts +7 -0
  175. package/dist/select/utils.d.ts +13 -1
  176. package/dist/select/utils.js +1 -1
  177. package/dist/sidepanel-header/component.js +1 -1
  178. package/dist/sidepanel-header/index.js +1 -1
  179. package/dist/space/Item.js +1 -1
  180. package/dist/space/component.js +1 -1
  181. package/dist/space/index.js +1 -1
  182. package/dist/suffix-input/component.d.ts +1 -1
  183. package/dist/suffix-input/component.js +1 -1
  184. package/dist/suffix-input/index.js +1 -1
  185. package/dist/super-list-header/component.js +1 -1
  186. package/dist/super-list-header/index.js +1 -1
  187. package/dist/super-list-item/component.js +1 -1
  188. package/dist/super-list-item/index.js +1 -1
  189. package/dist/switch/component.d.ts +1 -1
  190. package/dist/switch/component.js +1 -1
  191. package/dist/switch/index.js +1 -1
  192. package/dist/table/columns.d.ts +2 -10
  193. package/dist/table/columns.js +1 -1
  194. package/dist/table/component.js +1 -1
  195. package/dist/table/components/cell/component.d.ts +6 -2
  196. package/dist/table/components/cell/component.js +1 -1
  197. package/dist/table/components/cell/index.js +1 -1
  198. package/dist/table/components/cells/index.js +1 -1
  199. package/dist/table/components/empty-list/index.js +1 -1
  200. package/dist/table/components/error/index.js +1 -1
  201. package/dist/table/components/pagination/index.js +1 -1
  202. package/dist/table/components/row/component.js +1 -1
  203. package/dist/table/components/row/index.js +1 -1
  204. package/dist/table/components/rows/index.js +1 -1
  205. package/dist/table/components/table-header/index.js +1 -1
  206. package/dist/table/data.js +1 -1
  207. package/dist/table/hooks/use-table-data.js +1 -1
  208. package/dist/table/index.js +1 -1
  209. package/dist/table/table.js +1 -1
  210. package/dist/table/utils/add-query-param.js +1 -1
  211. package/dist/table/utils/get-query-from-url.js +1 -1
  212. package/dist/table/utils/index.d.ts +1 -1
  213. package/dist/table/utils/index.js +1 -1
  214. package/dist/table/utils/parse-query-params.js +1 -1
  215. package/dist/table/utils/query-adapter.js +1 -1
  216. package/dist/table/utils/remove-query-param.js +1 -1
  217. package/dist/table/utils/reset-query-param.js +1 -1
  218. package/dist/table/utils/serialize-data.d.ts +1 -1
  219. package/dist/table/utils/serialize-data.js +1 -1
  220. package/dist/table-status/component.js +1 -1
  221. package/dist/table-status/index.js +1 -1
  222. package/dist/tag/component.js +1 -1
  223. package/dist/tag/index.js +1 -1
  224. package/dist/tags-list/component.js +1 -1
  225. package/dist/tags-list/index.js +1 -1
  226. package/dist/tariff-builder/component.js +1 -1
  227. package/dist/tariff-builder/index.js +1 -1
  228. package/dist/textarea/component.d.ts +1 -1
  229. package/dist/textarea/component.js +1 -1
  230. package/dist/textarea/index.js +1 -1
  231. package/dist/toast/component.js +1 -1
  232. package/dist/toast/index.js +1 -1
  233. package/dist/toast-notifier/component.js +1 -1
  234. package/dist/toast-notifier/index.js +1 -1
  235. package/dist/toast-plate/component.js +1 -1
  236. package/dist/toast-plate/index.js +1 -1
  237. package/dist/tooltip/component.js +1 -1
  238. package/dist/tooltip/index.js +1 -1
  239. package/dist/{tslib.es6-5f92d514.js → tslib.es6-c88014b9.js} +0 -0
  240. package/dist/typography/component.js +1 -1
  241. package/dist/typography/index.js +1 -1
  242. package/dist/typography/text/component.js +1 -1
  243. package/dist/typography/text/index.js +1 -1
  244. package/dist/typography/title/component.js +1 -1
  245. package/dist/typography/title/index.js +1 -1
  246. package/dist/typography/title-responsive/component.js +1 -1
  247. package/dist/typography/title-responsive/index.js +1 -1
  248. package/dist/use-image-render-component-c2070538.d.ts +13 -0
  249. package/dist/use-image-render-component-c2070538.js +1 -0
  250. package/dist/utils/index.d.ts +2 -0
  251. package/dist/utils/index.js +1 -1
  252. package/dist/utils/show-toast/index.d.ts +3 -0
  253. package/dist/utils/show-toast/index.js +1 -0
  254. package/dist/vars/alpha-radiuses.css +1 -0
  255. package/dist/vars/typography.css +1 -1
  256. package/dist/with-suffix/component.d.ts +1 -1
  257. package/dist/with-suffix/component.js +1 -1
  258. package/dist/with-suffix/index.js +1 -1
  259. package/package.json +9 -14
  260. package/dist/avatar/hooks/index.d.ts +0 -1
  261. package/dist/avatar/hooks/index.js +0 -1
  262. package/dist/avatar/hooks/use-image-loading-state.d.ts +0 -4
  263. package/dist/avatar/hooks/use-image-loading-state.js +0 -1
  264. package/dist/avatar/types.d.ts +0 -3
  265. package/dist/avatar/types.js +0 -1
  266. package/dist/cell/action/component.js +0 -1
  267. package/dist/cell/action/index.d.ts +0 -1
  268. package/dist/cell/action/index.js +0 -1
  269. package/dist/cell/autopayment/component.d.ts +0 -0
  270. package/dist/cell/autopayment/component.js +0 -1
  271. package/dist/cell/autopayment/index.d.ts +0 -1
  272. package/dist/cell/autopayment/index.js +0 -1
  273. package/dist/cell/catalog/component.d.ts +0 -0
  274. package/dist/cell/catalog/component.js +0 -1
  275. package/dist/cell/catalog/index.d.ts +0 -1
  276. package/dist/cell/catalog/index.js +0 -1
  277. package/dist/cell/subscription/component.d.ts +0 -0
  278. package/dist/cell/subscription/component.js +0 -1
  279. package/dist/cell/subscription/index.d.ts +0 -1
  280. package/dist/cell/subscription/index.js +0 -1
  281. package/dist/cell/transaction/component.d.ts +0 -19
  282. package/dist/cell/transaction/component.js +0 -1
  283. package/dist/cell/transaction/index.d.ts +0 -1
  284. package/dist/cell/transaction/index.js +0 -1
  285. package/dist/component-5dbe6e58.d.ts +0 -17
  286. package/dist/component-fa2c94c0.d.ts +0 -63
  287. package/dist/component-fa2c94c0.js +0 -1
  288. package/dist/photo-uploader/component.d.ts +0 -22
  289. package/dist/photo-uploader/component.js +0 -1
  290. package/dist/photo-uploader/index.d.ts +0 -1
  291. package/dist/photo-uploader/index.js +0 -1
  292. package/dist/photo-uploader-multiple/component.d.ts +0 -21
  293. package/dist/photo-uploader-multiple/component.js +0 -1
  294. package/dist/photo-uploader-multiple/index.d.ts +0 -1
  295. package/dist/photo-uploader-multiple/index.js +0 -1
  296. package/dist/photos/attach/index.d.ts +0 -7
  297. package/dist/photos/attach/index.js +0 -1
  298. package/dist/photos/index.d.ts +0 -2
  299. package/dist/photos/index.js +0 -1
  300. package/dist/photos/photo/index.d.ts +0 -11
  301. package/dist/photos/photo/index.js +0 -1
  302. package/dist/photos/photos/index.d.ts +0 -11
  303. package/dist/photos/photos/index.js +0 -1
  304. package/dist/super-ellipse/component.d.ts +0 -10
  305. package/dist/super-ellipse/component.js +0 -1
  306. package/dist/super-ellipse/index.d.ts +0 -1
  307. package/dist/super-ellipse/index.js +0 -1
  308. package/dist/super-ellipse-button/component.d.ts +0 -9
  309. package/dist/super-ellipse-button/component.js +0 -1
  310. package/dist/super-ellipse-button/index.d.ts +0 -1
  311. package/dist/super-ellipse-button/index.js +0 -1
  312. package/dist/super-ellipse-pure/component.d.ts +0 -11
  313. package/dist/super-ellipse-pure/component.js +0 -1
  314. package/dist/super-ellipse-pure/index.d.ts +0 -1
  315. package/dist/super-ellipse-pure/index.js +0 -1
  316. package/dist/super-ellipse-shape/component.d.ts +0 -12
  317. package/dist/super-ellipse-shape/component.js +0 -1
  318. package/dist/super-ellipse-shape/index.d.ts +0 -1
  319. package/dist/super-ellipse-shape/index.js +0 -1
@@ -20,7 +20,7 @@ type RadioProps = Omit<NativeProps, 'size' | 'type' | 'onChange' | 'checked' | '
20
20
  name?: string;
21
21
  }) => void;
22
22
  };
23
- declare const Radio: React.ForwardRefExoticComponent<Pick<NativeProps, "color" | "children" | "form" | "list" | "slot" | "style" | "title" | "pattern" | "value" | "id" | "src" | "alt" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "step" | "required" | "accept" | "autoComplete" | "capture" | "crossOrigin" | "height" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "readOnly" | "width"> & {
23
+ declare const Radio: React.ForwardRefExoticComponent<Pick<NativeProps, "form" | "slot" | "style" | "title" | "pattern" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value" | "list" | "step" | "required" | "accept" | "alt" | "autoComplete" | "capture" | "crossOrigin" | "height" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "readOnly" | "src" | "width"> & {
24
24
  dataTestId?: string | undefined;
25
25
  hint?: ReactNode;
26
26
  label?: ReactNode;
@@ -1 +1 @@
1
- import{_ as e,a}from"../tslib.es6-5f92d514.js";import n,{forwardRef as d,useRef as l}from"react";import c from"react-merge-refs";import t from"classnames";import{useFocus as s}from"../hooks/useFocus/index.js";var o={container:"index-module_container__3wj9U",checked:"index-module_checked__2THO5",disabled:"index-module_disabled__nUlq9",circle:"index-module_circle__rCfxn",label:"index-module_label__2f22f",hint:"index-module_hint__2ljb7",focused:"index-module_focused__3gAAB",m:"index-module_m__2yr-A",s:"index-module_s__YbNuM",content:"index-module_content__H6xTw",start:"index-module_start__2IMae",center:"index-module_center__2EfOb",addons:"index-module_addons__vaTct",block:"index-module_block__sXKkt"},i=d((function(d,i){var m,r=d.onChange,_=d.className,u=d.name,b=d.disabled,x=d.dataTestId,f=d.label,h=d.checked,k=d.hint,p=d.size,N=void 0===p?"m":p,g=d.align,E=void 0===g?"center":g,v=d.addons,T=d.block,j=e(d,["onChange","className","name","disabled","dataTestId","label","checked","hint","size","align","addons","block"]),C=l(null),y=s(C,"keyboard")[0];return n.createElement("label",{className:t(o.container,o[N],o[E],_,(m={},m[o.disabled]=b,m[o.checked]=h,m[o.focused]=y,m[o.block]=T,m)),ref:c([C,i])},n.createElement("input",a({type:"radio",onChange:function(e){r&&r(e,{checked:e.target.checked,name:u})},"data-test-id":x,disabled:b,checked:h,name:u},j)),n.createElement("span",{className:o.circle}),n.createElement("span",{className:o.content},n.createElement("span",{className:o.label},f),k&&n.createElement("span",{className:o.hint},k)),v&&n.createElement("span",{className:o.addons},v))}));export{i as Radio};
1
+ import{_ as e,a}from"../tslib.es6-c88014b9.js";import n,{forwardRef as d,useRef as l}from"react";import c from"react-merge-refs";import t from"classnames";import{useFocus as s}from"../hooks/useFocus/index.js";var o={container:"index-module_container__3wj9U",checked:"index-module_checked__2THO5",disabled:"index-module_disabled__nUlq9",circle:"index-module_circle__rCfxn",label:"index-module_label__2f22f",hint:"index-module_hint__2ljb7",focused:"index-module_focused__3gAAB",m:"index-module_m__2yr-A",s:"index-module_s__YbNuM",content:"index-module_content__H6xTw",start:"index-module_start__2IMae",center:"index-module_center__2EfOb",addons:"index-module_addons__vaTct",block:"index-module_block__sXKkt"},i=d((function(d,i){var m,r=d.onChange,_=d.className,u=d.name,b=d.disabled,x=d.dataTestId,h=d.label,f=d.checked,k=d.hint,p=d.size,N=void 0===p?"m":p,g=d.align,E=void 0===g?"center":g,v=d.addons,T=d.block,j=e(d,["onChange","className","name","disabled","dataTestId","label","checked","hint","size","align","addons","block"]),C=l(null),y=s(C,"keyboard")[0];return n.createElement("label",{className:t(o.container,o[N],o[E],_,(m={},m[o.disabled]=b,m[o.checked]=f,m[o.focused]=y,m[o.block]=T,m)),ref:c([C,i])},n.createElement("input",a({type:"radio",onChange:function(e){r&&r(e,{checked:e.target.checked,name:u})},"data-test-id":x,disabled:b,checked:f,name:u},j)),n.createElement("span",{className:o.circle}),n.createElement("span",{className:o.content},n.createElement("span",{className:o.label},h),k&&n.createElement("span",{className:o.hint},k)),v&&n.createElement("span",{className:o.addons},v))}));export{i as Radio};
@@ -1 +1 @@
1
- export{Radio}from"./component.js";import"../tslib.es6-5f92d514.js";import"react";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";
1
+ export{Radio}from"./component.js";import"../tslib.es6-c88014b9.js";import"react";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";
@@ -1 +1 @@
1
- import e from"react";import{FlexColumns as t}from"../flex-columns/component.js";import{Radio as o}from"../radio/component.js";import{Typography as r}from"../typography/component.js";import"../tslib.es6-5f92d514.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-cc121901.js";import"../common.module-d34bb3c5.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var n="index-module_text__1xpOV",i="index-module_subtitle__1_nhZ",m=function(m){var c=m.title,a=m.subtitle,s=m.selected,l=m.data,p=void 0===l?[]:l,d=m.onChange,u=m.columns,g=void 0===u?1:u,y=m.gr,v=void 0===y?20:y,h=m.gc,f=void 0===h?20:h,j=m.dataTestId,x=function(e){return j?"radio_"+j+"_"+e:"radio_"+e};return e.createElement("div",null,(c||a)&&e.createElement("div",{className:n},c&&e.createElement(r.Text,{tag:"div",view:"title",color:"primary",weight:"bold"},c),a&&e.createElement(r.Text,{className:i,tag:"div",view:"caps",color:"secondary",weight:"medium"},a)),e.createElement(t,{columns:g,gr:v,gc:f},null==p?void 0:p.map((function(t,r){return e.createElement(o,{key:t.key+t.content,dataTestId:x(r),onChange:function(){return d(t.key)},checked:t.key===s,label:t.content})}))))};export{m as RadioGroup};
1
+ import e from"react";import{FlexColumns as t}from"../flex-columns/component.js";import{Radio as o}from"../radio/component.js";import{Typography as r}from"../typography/component.js";import"../tslib.es6-c88014b9.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-ad73c09a.js";import"../common.module-10ade317.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var n="index-module_text__1xpOV",i="index-module_subtitle__1_nhZ",m=function(m){var a=m.title,c=m.subtitle,s=m.selected,l=m.data,p=void 0===l?[]:l,d=m.onChange,u=m.columns,g=void 0===u?1:u,y=m.gr,v=void 0===y?20:y,h=m.gc,j=void 0===h?20:h,x=m.dataTestId,f=function(e){return x?"radio_"+x+"_"+e:"radio_"+e};return e.createElement("div",null,(a||c)&&e.createElement("div",{className:n},a&&e.createElement(r.Text,{tag:"div",view:"title",color:"primary",weight:"bold"},a),c&&e.createElement(r.Text,{className:i,tag:"div",view:"caps",color:"secondary",weight:"medium"},c)),e.createElement(t,{columns:g,gr:v,gc:j},null==p?void 0:p.map((function(t,r){return e.createElement(o,{key:t.key+t.content,dataTestId:f(r),onChange:function(){return d(t.key)},checked:t.key===s,label:t.content})}))))};export{m as RadioGroup};
@@ -1 +1 @@
1
- export{RadioGroup}from"./component.js";import"react";import"../flex-columns/component.js";import"../radio/component.js";import"../tslib.es6-5f92d514.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-cc121901.js";import"../common.module-d34bb3c5.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
1
+ export{RadioGroup}from"./component.js";import"react";import"../flex-columns/component.js";import"../radio/component.js";import"../tslib.es6-c88014b9.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-ad73c09a.js";import"../common.module-10ade317.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
@@ -12,7 +12,8 @@ interface RadioGroupsProps {
12
12
  parents: Parent[];
13
13
  childs: Child[];
14
14
  selected: number | null;
15
+ collapsable?: boolean;
15
16
  onChange: (value: number) => void;
16
17
  }
17
- declare const RadioGroups: ({ parents, childs, selected, onChange, }: RadioGroupsProps) => JSX.Element;
18
+ declare const RadioGroups: ({ parents, childs, selected, collapsable, onChange, }: RadioGroupsProps) => JSX.Element;
18
19
  export { RadioGroupsProps, RadioGroups };
@@ -1 +1 @@
1
- import e,{useState as o}from"react";import{ChevronDownS as t}from"alpha-cli-icons";import n from"classnames";import{Collapse as l}from"../collapse/component.js";import{Divider as r}from"../divider/component.js";import{FlexColumns as c}from"../flex-columns/component.js";import{IconButton as i}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"../_commonjsHelpers-51fecfef.js";import"../link/component.js";import"../tslib.es6-5f92d514.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-cc121901.js";import"../common.module-d34bb3c5.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var s={list_head:"index-module_list_head__3yzFD",collapse_btn:"index-module_collapse_btn__3XWT_",collapse_btn_collapsed:"index-module_collapse_btn_collapsed__FLbh7"},d=function(d){var u=d.parents,f=d.childs,h=d.selected,_=d.onChange,j=[];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&&j.push(o)}));var y=o(j),b=y[0],g=y[1];return e.createElement("div",null,b.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),e.createElement(i,{onClick:function(){return function(e){var o=b.map((function(o,t){return t===e&&(o.collapsed?o.collapsed=!1:o.collapsed=!0),o})),t=b.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(l,{expanded:!o.collapsed},e.createElement("div",{className:s.content},e.createElement(c,{columns:1},o.childs.map((function(o){return e.createElement(m,{onChange:function(){return _(o.id)},checked:h===o.id,key:o.id,label:o.title})}))))),d!==(null==b?void 0:b.length)-1&&e.createElement(r,{size:"m"}))})))};export{d as RadioGroups};
1
+ import e,{useState as o}from"react";import{ChevronDownS as t}from"alpha-cli-icons";import n from"classnames";import{Collapse as l}from"../collapse/component.js";import{Divider as r}from"../divider/component.js";import{FlexColumns as c}from"../flex-columns/component.js";import{IconButton as p}from"../icon-button/component.js";import{Padding as i}from"../padding/component.js";import{Radio as a}from"../radio/component.js";import{Typography as m}from"../typography/component.js";import"../_commonjsHelpers-3e170942.js";import"../link/component.js";import"../tslib.es6-c88014b9.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-ad73c09a.js";import"../common.module-10ade317.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var s={list_head:"index-module_list_head__3yzFD",collapse_btn:"index-module_collapse_btn__3XWT_",collapse_btn_collapsed:"index-module_collapse_btn_collapsed__FLbh7"},d=function(d){var u=d.parents,f=d.childs,h=d.selected,_=d.collapsable,j=d.onChange,y=[];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&&y.push(o)}));var b=o(y),g=b[0],v=b[1];return e.createElement("div",null,g.map((function(o,d){var u;return e.createElement(e.Fragment,{key:o.parent.id},e.createElement("div",{className:s.list_head},e.createElement(m.Text,{view:"title",color:"primary",weight:"medium"},o.parent.title),_&&e.createElement(p,{onClick:function(){return function(e){var o=g.map((function(o,t){return t===e&&(o.collapsed?o.collapsed=!1:o.collapsed=!0),o})),t=g.concat(o);v(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(i,{padding:"16px 0 0 0"}),e.createElement(l,{expanded:!o.collapsed},e.createElement("div",{className:s.content},e.createElement(c,{columns:1},o.childs.map((function(o){return e.createElement(a,{onChange:function(){return j(o.id)},checked:h===o.id,key:o.id,label:o.title})}))))),d!==(null==g?void 0:g.length)-1&&e.createElement(r,{size:"m"}))})))};export{d as RadioGroups};
@@ -1 +1 @@
1
- export{RadioGroups}from"./component.js";import"react";import"alpha-cli-icons";import"classnames";import"../collapse/component.js";import"../_commonjsHelpers-51fecfef.js";import"../link/component.js";import"../tslib.es6-5f92d514.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-cc121901.js";import"../common.module-d34bb3c5.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
1
+ export{RadioGroups}from"./component.js";import"react";import"alpha-cli-icons";import"classnames";import"../collapse/component.js";import"../_commonjsHelpers-3e170942.js";import"../link/component.js";import"../tslib.es6-c88014b9.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-ad73c09a.js";import"../common.module-10ade317.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
@@ -5,10 +5,10 @@ import { BaseSelectProps } from "./typings";
5
5
  type SelectProps = Omit<BaseSelectProps, 'fieldProps'> & {
6
6
  fieldProps?: FormControlProps & Record<string, unknown>;
7
7
  };
8
- declare const Select: React.ForwardRefExoticComponent<Pick<BaseSelectProps, "disabled" | "className" | "dataTestId" | "error" | "label" | "size" | "id" | "block" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "name" | "required" | "fieldClassName" | "hint" | "multiple" | "selected" | "preventFlip" | "options" | "defaultOpen" | "valueRenderer" | "Optgroup" | "visibleOptions" | "optionsListClassName" | "optionClassName" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "circularNavigation" | "nativeSelect" | "popoverPosition" | "optionsListWidth" | "optionsSize" | "optionsListProps" | "optionProps" | "onOpen" | "Arrow" | "Field" | "OptionsList" | "Option" | "updatePopover" | "showEmptyOptionsList"> & {
8
+ declare const Select: React.ForwardRefExoticComponent<Pick<BaseSelectProps, "error" | "className" | "dataTestId" | "label" | "size" | "block" | "id" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "onScroll" | "disabled" | "name" | "required" | "fieldClassName" | "hint" | "multiple" | "selected" | "preventFlip" | "open" | "options" | "defaultOpen" | "valueRenderer" | "Optgroup" | "visibleOptions" | "optionsListClassName" | "optionClassName" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "circularNavigation" | "nativeSelect" | "popoverPosition" | "optionsListWidth" | "optionsSize" | "optionsListProps" | "optionProps" | "onOpen" | "Arrow" | "Field" | "OptionsList" | "Option" | "updatePopover" | "zIndexPopover" | "showEmptyOptionsList"> & {
9
9
  fieldProps?: (React.HTMLAttributes<HTMLDivElement> & {
10
10
  block?: boolean | undefined;
11
- size?: "s" | "m" | "l" | "xs" | "xl" | undefined;
11
+ size?: "s" | "xs" | "m" | "l" | "xl" | undefined;
12
12
  disabled?: boolean | undefined;
13
13
  filled?: boolean | undefined;
14
14
  focused?: boolean | undefined;
@@ -1 +1 @@
1
- import{_ as o,a as t}from"../tslib.es6-5f92d514.js";import r,{forwardRef as p}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"./components/checkmark/component.js";var a=p((function(p,a){var j=p.Arrow,l=p.Field,f=p.OptionsList,u=p.Optgroup,d=p.Option,O=o(p,["Arrow","Field","OptionsList","Optgroup","Option"]);return r.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-c88014b9.js";import r,{forwardRef as p}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";var a=p((function(p,a){var j=p.Arrow,l=p.Field,f=p.OptionsList,u=p.Optgroup,O=p.Option,d=o(p,["Arrow","Field","OptionsList","Optgroup","Option"]);return r.createElement(e,t({ref:a,Option:O||i,Field:l||m,Optgroup:u||s,OptionsList:f||c,Arrow:j||n},d))}));export{a as Select};
@@ -1 +1 @@
1
- import{a as e,b as t,_ as n}from"../../../tslib.es6-5f92d514.js";import o,{forwardRef as i,useRef as r,useMemo as a,useCallback as s,useEffect as l,useLayoutEffect as d}from"react";import p from"react-merge-refs";import c 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__34JKG",y="index-module_popoverInner__1dabe",k="index-module_optionsList__3HreC",x="index-module_nativeSelect__xVDP8",O="index-module_block__2Uhdo",_=i((function(i,_){var w,C=i.dataTestId,E=void 0===C?"":C,P=i.className,N=i.fieldClassName,S=i.optionsListClassName,D=i.optionClassName,T=i.options,j=i.autocomplete,L=void 0!==j&&j,z=i.multiple,F=void 0!==z&&z,M=i.allowUnselect,R=void 0!==M&&M,B=i.disabled,K=void 0!==B&&B,A=i.closeOnSelect,U=void 0===A?!F:A,H=i.circularNavigation,W=void 0!==H&&H,q=i.nativeSelect,G=void 0!==q&&q,J=i.defaultOpen,V=void 0!==J&&J,Q=i.popoverPosition,X=void 0===Q?"bottom-start":Q,Y=i.preventFlip,Z=void 0===Y||Y,$=i.optionsListWidth,ee=void 0===$?"field":$,te=i.name,ne=i.id,oe=i.required,ie=i.selected,re=i.size,ae=void 0===re?"m":re,se=i.optionsSize,le=void 0===se?ae:se,de=i.error,pe=i.hint,ce=i.block,ue=void 0===ce||ce,me=i.label,ve=i.placeholder,fe=i.fieldProps,ge=void 0===fe?{}:fe,he=i.optionsListProps,be=void 0===he?{}:he,Ie=i.optionProps,ye=void 0===Ie?{}:Ie,ke=i.valueRenderer,xe=i.onChange,Oe=i.onOpen,_e=i.onFocus,we=i.onBlur,Ce=i.Arrow,Ee=i.Field,Pe=void 0===Ee?function(){return null}:Ee,Ne=i.OptionsList,Se=void 0===Ne?function(){return null}:Ne,De=i.Optgroup,Te=void 0===De?function(){return null}:De,je=i.Option,Le=void 0===je?function(){return null}:je,ze=i.updatePopover,Fe=i.showEmptyOptionsList,Me=void 0!==Fe&&Fe,Re=i.visibleOptions,Be=r(null),Ke=r(null),Ae=r(null),Ue=a((function(){return h(T||[],ie)}),[T,ie]),He=Ue.flatOptions,We=Ue.selectedOptions,qe={itemToString:function(e){return e?e.key.toString():""},onSelectedItemsChange:function(e){if(xe){var t=e.selectedItems,n=void 0===t?[]:t;xe({selectedMultiple:n,selected:n.length?n[0]:null,name:te})}},stateReducer:function(e,t){var n=t.type,o=t.changes;return R||n!==u.stateChangeTypes.DropdownKeyDownBackspace?o:e}};void 0!==ie&&(qe.selectedItems=We);var Ge=u(qe),Je=Ge.selectedItems,Ve=Ge.addSelectedItem,Qe=Ge.setSelectedItems,Xe=Ge.removeSelectedItem,Ye=Ge.getDropdownProps,Ze=m({id:ne,circularNavigation:W,items:He,itemToString:function(){return""},defaultHighlightedIndex:0===Je.length?0:void 0,onIsOpenChange:function(e){Oe&&Oe({open:e.isOpen,name:te})},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=Je.includes(r),s=R||F&&Je.length>1;a&&s&&Xe(r),a||(F?Ve(r):Qe([r]))}return e(e({},i),{isOpen:!U,highlightedIndex:t.isOpen&&!U?t.highlightedIndex:i.highlightedIndex});default:return i}}}),$e=Ze.isOpen,et=Ze.getMenuProps,tt=Ze.getInputProps,nt=Ze.getItemProps,ot=Ze.getComboboxProps,it=Ze.getLabelProps,rt=Ze.highlightedIndex,at=Ze.toggleMenu,st=Ze.openMenu,lt=et({ref:Ae},{suppressRefError:!0}),dt=tt(Ye({ref:p([_,Ke])})),pt=s((function(e){Qe(t(e.target.options).reduce((function(e,t,n){return t.selected?e.concat(He[n]):e}),[]))}),[He,Qe]),ct=s((function(t){var i=t.option,r=t.index,a=n(t,["option","index"]);return o.createElement(o.Fragment,{key:i.key},Le(e(e(e({},ye),a),{className:D,innerProps:nt({index:r,item:i,disabled:i.disabled,onMouseDown:function(e){return e.preventDefault()}}),index:r,option:i,size:le,disabled:i.disabled,highlighted:r===rt,selected:Je.includes(i)})))}),[ye,D,nt,le,rt,Je,Le]);l((function(){V&&st()}),[V,st]);var ut=s((function(){if(Ae.current){var e="field"===ee?"width":"minWidth",t=Be.current?Be.current.getBoundingClientRect().width:0;Ae.current.setAttribute("style",""),Ae.current.style[e]=t+"px"}}),[ee]);l((function(){var e=new v(ut);return Be.current&&e.observe(Be.current),function(){e.disconnect()}}),[ut,$e,ee]),d(ut,[$e,ee,T,Je]);var mt=s((function(){return Je.map((function(e){return o.createElement("input",{type:"hidden",name:te,value:e.key,key:e.key})}))}),[Je,te]),vt=s((function(){var t=F?Je.map((function(e){return e.key.toString()})):(Je[0]||{}).key.toString();return o.createElement(b,e({},lt,{className:x,disabled:K,multiple:F,name:te,value:t,onChange:pt,options:T}))}),[F,Je,K,te,pt,T,lt]),ft=He.length>0||Me;return o.createElement("div",e({},ot(e(e({ref:Be},K&&{"aria-disabled":!0}),{className:c(I,(w={},w[O]=ue,w),P)})),{onKeyDown:K?void 0:function(e){dt.onKeyDown(e),L&&!$e&&1===e.key.length&&st(),![" ","Enter"].includes(e.key)||L||G||(e.preventDefault(),$e&&-1!==rt||at())},tabIndex:-1,id:"kekekekekek","data-test-id":f("combobox",E)}),G&&vt(),o.createElement(Pe,e({selectedMultiple:Je,selected:Je[0],multiple:F,open:$e,disabled:K,size:ae,placeholder:ve,label:me&&o.createElement("span",e({},it()),oe?me+" *":me),Arrow:Ce&&o.createElement(Ce,{open:$e}),error:de,hint:pe,valueRenderer:ke,className:N,innerProps:{onBlur:function(e){we&&we(e),dt.onBlur(e)},onFocus:K?void 0:function(e){_e&&_e(e),L&&!$e&&st()},onClick:K?void 0:function(e){L&&"INPUT"===e.target.tagName?st():at()},tabIndex:G||K?-1:0,ref:p([dt.ref]),id:dt.id,"aria-labelledby":dt["aria-labelledby"],"aria-controls":dt["aria-controls"],"aria-autocomplete":L?dt["aria-autocomplete"]:void 0},dataTestId:f("field",E)},ge)),te&&!G&&mt(),!G&&o.createElement(g,{open:$e,withTransition:!1,anchorElement:Ke.current,position:X,preventFlip:Z,popperClassName:y,update:ze},ft&&o.createElement("div",e({},lt,{className:c(S,k)}),o.createElement(Se,e({},be,{flatOptions:He,highlightedIndex:rt,open:$e,size:ae,options:T,Optgroup:Te,Option:ct,visibleOptions:Re,dataTestId:f("options-list",E)})))))}));export{_ as BaseSelect};
1
+ import{a as e,b as t,_ as n}from"../../../tslib.es6-c88014b9.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__34JKG",x="index-module_popoverInner__1dabe",y="index-module_optionsList__3HreC",k="index-module_nativeSelect__xVDP8",O="index-module_block__2Uhdo",_=i((function(i,_){var w,P=i.dataTestId,C=void 0===P?"":P,E=i.className,N=i.fieldClassName,S=i.optionsListClassName,T=i.optionClassName,D=i.options,j=i.autocomplete,z=void 0!==j&&j,L=i.multiple,F=void 0!==L&&L,M=i.allowUnselect,R=void 0!==M&&M,B=i.disabled,K=void 0!==B&&B,U=i.closeOnSelect,A=void 0===U?!F:U,H=i.circularNavigation,W=void 0!==H&&H,q=i.nativeSelect,G=void 0!==q&&q,J=i.defaultOpen,V=void 0!==J&&J,Q=i.open,X=i.popoverPosition,Y=void 0===X?"bottom-start":X,Z=i.preventFlip,$=void 0===Z||Z,ee=i.optionsListWidth,te=void 0===ee?"field":ee,ne=i.name,oe=i.id,ie=i.required,re=i.selected,ae=i.size,le=void 0===ae?"m":ae,se=i.optionsSize,de=void 0===se?le:se,ce=i.error,pe=i.hint,ue=i.block,me=void 0===ue||ue,ve=i.label,fe=i.placeholder,ge=i.fieldProps,he=void 0===ge?{}:ge,be=i.optionsListProps,Ie=void 0===be?{}:be,xe=i.optionProps,ye=void 0===xe?{}:xe,ke=i.valueRenderer,Oe=i.onChange,_e=i.onOpen,we=i.onFocus,Pe=i.onBlur,Ce=i.onScroll,Ee=i.Arrow,Ne=i.Field,Se=void 0===Ne?function(){return null}:Ne,Te=i.OptionsList,De=void 0===Te?function(){return null}:Te,je=i.Optgroup,ze=void 0===je?function(){return null}:je,Le=i.Option,Fe=void 0===Le?function(){return null}:Le,Me=i.updatePopover,Re=i.zIndexPopover,Be=i.showEmptyOptionsList,Ke=void 0!==Be&&Be,Ue=i.visibleOptions,Ae=r(null),He=r(null),We=r(null),qe=function(e){return e?e.key.toString():""},Ge=a((function(){return h(D||[],re)}),[D,re]),Je=Ge.flatOptions,Ve=Ge.selectedOptions,Qe={itemToString:qe,onSelectedItemsChange:function(e){if(Oe){var t=e.selectedItems,n=void 0===t?[]:t;Oe({selectedMultiple:n,selected:n.length?n[0]:null,name:ne})}},stateReducer:function(e,t){var n=t.type,o=t.changes;return R||n!==u.stateChangeTypes.DropdownKeyDownBackspace?o:e}};void 0!==re&&(Qe.selectedItems=Ve);var Xe=u(Qe),Ye=Xe.selectedItems,Ze=Xe.addSelectedItem,$e=Xe.setSelectedItems,et=Xe.removeSelectedItem,tt=Xe.getDropdownProps,nt=m({id:oe,isOpen:Q,circularNavigation:W,items:Je,itemToString:qe,defaultHighlightedIndex:0===Ye.length?-1:void 0,onIsOpenChange:function(e){_e&&setTimeout((function(){_e({open:e.isOpen,name:ne})}),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=Ye.includes(r),l=R||F&&Ye.length>1;a&&l&&et(r),a||(F?Ze(r):$e([r]))}return e(e({},i),{isOpen:!A,highlightedIndex:t.isOpen&&!A?t.highlightedIndex:i.highlightedIndex});default:return i}}}),ot=nt.isOpen,it=nt.getMenuProps,rt=nt.getInputProps,at=nt.getItemProps,lt=nt.getComboboxProps,st=nt.getLabelProps,dt=nt.highlightedIndex,ct=nt.toggleMenu,pt=nt.openMenu,ut=it({ref:We},{suppressRefError:!0}),mt=rt(tt({ref:c([_,He])})),vt=l((function(e){$e(t(e.target.options).reduce((function(e,t,n){return t.selected?e.concat(Je[n]):e}),[]))}),[Je,$e]),ft=l((function(t){var i=t.option,r=t.index,a=n(t,["option","index"]);return o.createElement(o.Fragment,{key:i.key},Fe(e(e(e({},ye),a),{className:T,innerProps:at({index:r,item:i,disabled:i.disabled,onMouseDown:function(e){return e.preventDefault()}}),index:r,option:i,size:de,disabled:i.disabled,highlighted:r===dt,selected:Ye.includes(i)})))}),[ye,T,at,de,dt,Ye,Fe]);s((function(){V&&pt()}),[V,pt]),s((function(){Q&&pt()}),[]);var gt=l((function(){if(We.current){var e="field"===te?"width":"minWidth",t=Ae.current?Ae.current.getBoundingClientRect().width:0;We.current.setAttribute("style",""),We.current.style[e]=t+"px"}}),[te]);s((function(){var e=new v(gt);return Ae.current&&e.observe(Ae.current),function(){e.disconnect()}}),[gt,ot,te]),d(gt,[ot,te,D,Ye]);var ht=l((function(){return Ye.map((function(e){return o.createElement("input",{type:"hidden",name:ne,value:e.key,key:e.key})}))}),[Ye,ne]),bt=l((function(){var t=F?Ye.map((function(e){return e.key.toString()})):(Ye[0]||{}).key.toString();return o.createElement(b,e({},ut,{className:k,disabled:K,multiple:F,name:ne,value:t,onChange:vt,options:D}))}),[F,Ye,K,ne,vt,D,ut]),It=Je.length>0||Ke;return o.createElement("div",e({},lt(e(e({ref:Ae},K&&{"aria-disabled":!0}),{className:p(I,(w={},w[O]=me,w),E)})),{onKeyDown:K?void 0:function(e){mt.onKeyDown(e),z&&!ot&&1===e.key.length&&pt(),![" ","Enter"].includes(e.key)||z||G||"INPUT"===e.target.tagName||(e.preventDefault(),ot&&-1!==dt||ct())},tabIndex:-1,id:"kekekekekek","data-test-id":f("combobox",C)}),G&&bt(),o.createElement(Se,e({selectedMultiple:Ye,selected:Ye[0],multiple:F,open:ot,disabled:K,size:le,placeholder:fe,label:ve&&o.createElement("span",e({},st()),ie?ve+" *":ve),Arrow:Ee&&o.createElement(Ee,{open:ot}),error:ce,hint:pe,valueRenderer:ke,className:N,innerProps:{onBlur:function(e){var t;(null===(t=We.current)||void 0===t?void 0:t.contains(e.relatedTarget||document.activeElement))||(Pe&&Pe(e),mt.onBlur(e))},onFocus:K?void 0:function(e){we&&we(e),z&&!ot&&pt()},onClick:K?void 0:function(e){z&&"INPUT"===e.target.tagName?pt():ct()},tabIndex:G||K?-1:0,ref:c([mt.ref]),id:mt.id,"aria-labelledby":mt["aria-labelledby"],"aria-controls":mt["aria-controls"],"aria-autocomplete":z?mt["aria-autocomplete"]:void 0},dataTestId:f("field",C)},he)),ne&&!G&&ht(),!G&&o.createElement(g,{open:ot,withTransition:!1,anchorElement:He.current,position:Y,preventFlip:$,popperClassName:x,update:Me,zIndex:Re},It&&o.createElement("div",e({},ut,{className:p(S,y)}),o.createElement(De,e({},Ie,{flatOptions:Je,highlightedIndex:dt,open:ot,size:le,options:D,Optgroup:ze,Option:ft,visibleOptions:Ue,onScroll:Ce,dataTestId:f("options-list",C)})))))}));export{_ as BaseSelect};
@@ -1 +1 @@
1
- export{BaseSelect}from"./component.js";import"../../../tslib.es6-5f92d514.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-c88014b9.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-5f92d514.js";import r,{useState as o,useRef as d,useCallback as t}from"react";import a from"classnames";import{FormControl as s}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__vfzkT",c="index-module_field__1aUsO",u="index-module_disabled__3SuAx",p="index-module_arrow__3uEBv",_="index-module_placeholder__eqMpp",f="index-module_contentWrapper__1YCpa",v="index-module_value__3iHA6",b="index-module_focusVisible__3vNfu",x=function(x){var h,N=x.size,E=void 0===N?"m":N,A=x.open;x.multiple;var g=x.error,j=x.hint,k=x.disabled,z=x.label,C=x.placeholder,M=x.selectedMultiple,w=void 0===M?[]:M,B=x.selected,F=x.rightAddons,T=x.valueRenderer,I=void 0===T?i:T,P=x.Arrow,R=x.innerProps,q=x.dataTestId,y=x.fieldClassName,H=e(x,["size","open","multiple","error","hint","disabled","label","placeholder","selectedMultiple","selected","rightAddons","valueRenderer","Arrow","innerProps","dataTestId","fieldClassName"]),O=o(!1),S=O[0],U=O[1],V=d(null),W=n(V,"keyboard")[0],Y=t((function(){return U(!0)}),[]),D=t((function(){return U(!1)}),[]),G=I({selected:B,selectedMultiple:w}),J=Boolean(G),K=!!z&&(J||!C);return r.createElement("div",{className:m,ref:V,onFocus:Y,onBlur:D},r.createElement(s,l({fieldClassName:a(c,y,(h={},h[u]=k,h[b]=W,h)),block:!0,size:E,focused:A||S,disabled:k,filled:J,label:K&&z,error:g,hint:j,rightAddons:(P||F)&&r.createElement(r.Fragment,null,F,P?r.cloneElement(P,{className:p}):null),"data-test-id":q},H,R),r.createElement("div",{className:f},C&&!J&&r.createElement("span",{className:_},C),J&&r.createElement("div",{className:v},G))))};export{x as Field};
1
+ import{_ as e,a as l}from"../../../tslib.es6-c88014b9.js";import r,{useState as o,useRef as d,useCallback as t}from"react";import a from"classnames";import{FormControl as s}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__vfzkT",c="index-module_field__1aUsO",u="index-module_disabled__3SuAx",p="index-module_arrow__3uEBv",_="index-module_placeholder__eqMpp",f="index-module_contentWrapper__1YCpa",v="index-module_value__3iHA6",b="index-module_focusVisible__3vNfu",x=function(x){var h,N=x.size,E=void 0===N?"m":N,A=x.open;x.multiple;var g=x.error,j=x.hint,k=x.disabled,z=x.label,C=x.placeholder,M=x.selectedMultiple,w=void 0===M?[]:M,B=x.selected,F=x.rightAddons,T=x.valueRenderer,I=void 0===T?i:T,P=x.Arrow,R=x.innerProps,q=x.dataTestId,y=x.fieldClassName,H=e(x,["size","open","multiple","error","hint","disabled","label","placeholder","selectedMultiple","selected","rightAddons","valueRenderer","Arrow","innerProps","dataTestId","fieldClassName"]),O=o(!1),S=O[0],U=O[1],V=d(null),W=n(V,"keyboard")[0],Y=t((function(){return U(!0)}),[]),D=t((function(){return U(!1)}),[]),G=I({selected:B,selectedMultiple:w}),J=Boolean(G),K=!!z&&(J||!C);return r.createElement("div",{className:m,ref:V,onFocus:Y,onBlur:D},r.createElement(s,l({fieldClassName:a(c,y,(h={},h[u]=k,h[b]=W,h)),block:!0,size:E,focused:A||S,disabled:k,filled:J,label:K&&z,error:g,hint:j,rightAddons:(P||F)&&r.createElement(r.Fragment,null,F,P?r.cloneElement(P,{className:p}):null),"data-test-id":q},H,R),r.createElement("div",{className:f},C&&!J&&r.createElement("span",{className:_},C),J&&r.createElement("div",{className:v},G))))};export{x as Field};
@@ -1 +1 @@
1
- export{Field}from"./component.js";import"../../../tslib.es6-5f92d514.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-c88014b9.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-5f92d514.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"./checkmark/component.js";import"react-virtual";import"../../hooks/usePrevious/index.js";import"axios";import"../../toast-notifier/component.js";import"../../toast-plate/component.js";import"alpha-cli-icons";import"../../button/component.js";import"../../loader/component.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-c88014b9.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"react-virtual";import"../../hooks/usePrevious/index.js";import"axios";import"../../toast-notifier/component.js";import"../../toast-plate/component.js";import"alpha-cli-icons";import"../../button/component.js";import"../../loader/component.js";import"../../toast-notifier/use-timer.js";
@@ -1 +1 @@
1
- import{_ as e,a as t}from"../../../tslib.es6-5f92d514.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,p=a.disabled,c=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:p,multiple:c,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
+ import{_ as e,a as t}from"../../../tslib.es6-c88014b9.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 +1 @@
1
- export{NativeSelect}from"./component.js";import"../../../tslib.es6-5f92d514.js";import"react";import"../../utils.js";
1
+ export{NativeSelect}from"./component.js";import"../../../tslib.es6-c88014b9.js";import"react";import"../../utils.js";
@@ -1 +1 @@
1
- import{a as e}from"../../../tslib.es6-5f92d514.js";import t,{isValidElement as d}from"react";import i from"classnames";import{Checkmark as n}from"../checkmark/component.js";var o={option:"index-module_option__1Y-nZ",disabled:"index-module_disabled__3qFlt",s:"index-module_s__3ZiXJ",m:"index-module_m__3U_ko",l:"index-module_l__3AFdi",xl:"index-module_xl__37OwE",selected:"index-module_selected__3VkZj",highlighted:"index-module_highlighted__3bn_O",content:"index-module_content__3lPGB",textContent:"index-module_textContent__343E2"},l=function(l){var _,m,s=l.size,a=void 0===s?"s":s,c=l.className,r=l.option,x=l.children,h=l.selected,p=l.highlighted,u=l.disabled,g=l.Checkmark,k=void 0===g?n:g,b=l.innerProps,f=l.index,v=x||r.content||r.key;return t.createElement("div",e({},b,{className:i(o.option,o[a],c,(_={},_[o.highlighted]=p,_[o.selected]=h,_[o.disabled]=u,_)),"data-test-id":"option-"+f}),k&&t.createElement(k,{selected:h}),t.createElement("div",{className:i(o.content,(m={},m[o.textContent]=!d(v),m))},v))};export{l as Option};
1
+ import{a as e}from"../../../tslib.es6-c88014b9.js";import t,{isValidElement as n}from"react";import o from"classnames";import{Skeleton as d}from"../../../skeleton/component.js";import{Checkmark as i}from"../checkmark/component.js";var l={option:"index-module_option__1Y-nZ",disabled:"index-module_disabled__3qFlt",s:"index-module_s__3ZiXJ",m:"index-module_m__3U_ko",l:"index-module_l__3AFdi",xl:"index-module_xl__37OwE",selected:"index-module_selected__3VkZj",highlighted:"index-module_highlighted__3bn_O",content:"index-module_content__3lPGB",textContent:"index-module_textContent__343E2",skeleton:"index-module_skeleton__31lhe"},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,k=s.disabled,g=s.Checkmark,b=void 0===g?i:g,v=s.innerProps,f=s.index,E=h||x.content||x.key;return t.createElement("div",e({},v,{className:o(l.option,l[c],r,(m={},m[l.highlighted]=u,m[l.selected]=p,m[l.disabled]=k,m)),"data-test-id":"option-"+f}),b&&t.createElement(b,{selected:p}),t.createElement("div",{className:o(l.content,(_={},_[l.textContent]=!n(E),_))},t.createElement(d,{className:l.skeleton,visible:null==x?void 0:x.loading},E)))};export{s as Option};
@@ -1 +1 @@
1
- export{Option}from"./component.js";import"../../../tslib.es6-5f92d514.js";import"react";import"classnames";import"../checkmark/component.js";
1
+ export{Option}from"./component.js";import"../../../tslib.es6-c88014b9.js";import"react";import"classnames";import"../../../skeleton/component.js";import"../checkmark/component.js";
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import React from 'react';
2
3
  import { OptionsListProps } from "../../typings";
3
- declare const OptionsList: ({ size, className, Option, options, Optgroup, dataTestId, emptyPlaceholder, visibleOptions, open, }: OptionsListProps) => JSX.Element | null;
4
+ declare const OptionsList: React.ForwardRefExoticComponent<OptionsListProps & React.RefAttributes<unknown>>;
4
5
  export { OptionsList };
@@ -1 +1 @@
1
- import e,{useRef as t,useCallback as o}from"react";import i from"classnames";import{useVisibleOptions as n,isGroup as l}from"../../utils.js";import{Optgroup as r}from"../optgroup/component.js";var s={optionsList:"index-module_optionsList__3FNYB",emptyPlaceholder:"index-module_emptyPlaceholder__3zcls",l:"index-module_l__sTNRb",xl:"index-module_xl__28-dv"},a=function(a){var p,d=a.size,m=void 0===d?"s":d,c=a.className,u=a.Option,v=a.options,_=void 0===v?[]:v,f=a.Optgroup,x=void 0===f?r:f,h=a.dataTestId,b=a.emptyPlaceholder,g=a.visibleOptions,y=void 0===g?5:g,N=a.open,O=t(null),P=(p=0,function(){return p++}),z=o((function(t){return e.createElement(x,{label:t.label,key:t.label,size:m},t.options.map((function(e){return u({option:e,index:P()})})))}),[u,P,m,x]);return n({visibleOptions:y,listRef:O,open:N,invalidate:_.length}),0!==_.length||b?e.createElement("div",{className:i(s.optionsList,s[m],c),"data-test-id":h,ref:O},_.map((function(e){return l(e)?z(e):u({option:e,index:P()})})),b&&0===_.length&&e.createElement("div",{className:s.emptyPlaceholder},b)):null};export{a as OptionsList};
1
+ import e,{forwardRef as o,useRef as t,useCallback as i}from"react";import n from"react-merge-refs";import l from"classnames";import{useVisibleOptions as r,isGroup as s}from"../../utils.js";import{Optgroup as a}from"../optgroup/component.js";var m={optionsList:"index-module_optionsList__3FNYB",emptyPlaceholder:"index-module_emptyPlaceholder__3zcls",l:"index-module_l__sTNRb",xl:"index-module_xl__28-dv"},p=o((function(o,p){var d,c=o.size,u=void 0===c?"s":c,f=o.className,v=o.Option,_=o.options,x=void 0===_?[]:_,b=o.Optgroup,h=void 0===b?a:b,g=o.dataTestId,y=o.emptyPlaceholder,N=o.visibleOptions,O=void 0===N?5:N,P=o.onScroll,z=o.open,E=t(null),L=(d=0,function(){return d++}),j=i((function(o){return e.createElement(h,{label:o.label,key:o.label,size:u},o.options.map((function(e){return v({option:e,index:L()})})))}),[v,L,u]);return r({visibleOptions:O,listRef:E,open:z,invalidate:x}),0!==x.length||y?e.createElement("div",{className:l(m.optionsList,m[u],f),"data-test-id":g,ref:n([E,p]),onScroll:P},x.map((function(e){return s(e)?j(e):v({option:e,index:L()})})),y&&0===x.length&&e.createElement("div",{className:m.emptyPlaceholder},y)):null}));export{p as OptionsList};
@@ -1 +1 @@
1
- export{OptionsList}from"./component.js";import"react";import"classnames";import"../../utils.js";import"../optgroup/component.js";
1
+ export{OptionsList}from"./component.js";import"react";import"react-merge-refs";import"classnames";import"../../utils.js";import"../optgroup/component.js";
@@ -1 +1 @@
1
- import e,{useRef as t,useState as i,useEffect as o,useMemo as n}from"react";import{useVirtual as r}from"react-virtual";import l from"classnames";import{usePrevious as s}from"../../../hooks/usePrevious/index.js";import"axios";import"../../../toast-notifier/component.js";import{lastIndexOf as a,useVisibleOptions as d,isGroup as m}from"../../utils.js";import{Optgroup as p}from"../optgroup/component.js";import"../../../tslib.es6-5f92d514.js";import"react-dom";import"../../../toast-plate/component.js";import"alpha-cli-icons";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__2cwvP",inner:"index-module_inner__IXUKA",virtualRow:"index-module_virtualRow__1iNrK",highlighted:"index-module_highlighted__1JWUQ",emptyPlaceholder:"index-module_emptyPlaceholder__1Dxba",l:"index-module_l__2ISF8",xl:"index-module_xl__26ISi"},c=function(c){var v=c.size,f=void 0===v?"s":v,h=c.flatOptions,x=void 0===h?[]:h,g=c.highlightedIndex,_=void 0===g?-1:g,I=c.className,j=c.Option,b=c.open,y=c.options,O=void 0===y?[]:y,R=c.overscan,N=void 0===R?10:R,P=c.Optgroup,T=void 0===P?p:P,E=c.dataTestId,w=c.emptyPlaceholder,k=c.visibleOptions,z=void 0===k?5:k,L=t(null),S=t(null),F=i(0),K=F[0],U=F[1],A=s(_)||-1,D=r({size:x.length,parentRef:S,overscan:N});o((function(){b&&D.scrollToIndex(_,{align:"end"})}),[b]),o((function(){-1!==_&&(D.virtualItems.some((function(e){return e.index===_}))||D.scrollToIndex(_,{align:"end"}))}),[_]),o((function(){var e=function(e){return!e.disabled},t=x.findIndex(e),i=a(x,e);A<=t&&_===x.length-1&&D.scrollToIndex(i),A>=i&&0===_&&D.scrollToIndex(0)}),[A,_]),o((function(){U(D.virtualItems.length>1?x.length:1)}),[D.virtualItems.length,x.length]),d({visibleOptions:z,invalidate:K,listRef:L,styleTargetRef:S,open:b});var J=n((function(){var e=0;return O.reduce((function(t,i,o){return m(i)?(t[e]=o,e+=i.options.length):e+=1,t}),{})}),[O]);return e.createElement("div",{className:l(u.virtualOptionsList,u[f],I),ref:S,"data-test-id":E},e.createElement("div",{className:u.inner,style:{height:D.totalSize+"px"},ref:L},D.virtualItems.map((function(t){var i,o=x[t.index],n=O[J[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)"}},n&&e.createElement(T,{label:n.label}),!m(o)&&j({option:o,index:t.index}))}))),w&&0===O.length&&e.createElement("div",{className:u.emptyPlaceholder},w))};export{c as VirtualOptionsList};
1
+ import e,{useRef as t,useState as i,useEffect as o,useMemo as n}from"react";import{useVirtual as r}from"react-virtual";import l from"classnames";import{usePrevious as s}from"../../../hooks/usePrevious/index.js";import"axios";import"../../../toast-notifier/component.js";import{lastIndexOf as a,useVisibleOptions as d,isGroup as m}from"../../utils.js";import{Optgroup as p}from"../optgroup/component.js";import"../../../tslib.es6-c88014b9.js";import"react-dom";import"../../../toast-plate/component.js";import"alpha-cli-icons";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__2cwvP",inner:"index-module_inner__IXUKA",virtualRow:"index-module_virtualRow__1iNrK",highlighted:"index-module_highlighted__1JWUQ",emptyPlaceholder:"index-module_emptyPlaceholder__1Dxba",l:"index-module_l__2ISF8",xl:"index-module_xl__26ISi"},c=function(c){var v=c.size,f=void 0===v?"s":v,h=c.flatOptions,x=void 0===h?[]:h,g=c.highlightedIndex,_=void 0===g?-1:g,I=c.className,j=c.Option,b=c.open,y=c.options,O=void 0===y?[]:y,R=c.overscan,N=void 0===R?10:R,P=c.Optgroup,T=void 0===P?p:P,E=c.dataTestId,w=c.emptyPlaceholder,k=c.visibleOptions,z=void 0===k?5:k,L=t(null),S=t(null),F=i(0),K=F[0],U=F[1],A=s(_)||-1,D=r({size:x.length,parentRef:S,overscan:N});o((function(){b&&D.scrollToIndex(_,{align:"end"})}),[b]),o((function(){-1!==_&&(D.virtualItems.some((function(e){return e.index===_}))||D.scrollToIndex(_,{align:"end"}))}),[_]),o((function(){var e=function(e){return!e.disabled},t=x.findIndex(e),i=a(x,e);A<=t&&_===x.length-1&&D.scrollToIndex(i),A>=i&&0===_&&D.scrollToIndex(0)}),[A,_]),o((function(){U(D.virtualItems.length>1?x.length:1)}),[D.virtualItems.length,x.length]),d({visibleOptions:z,invalidate:K,listRef:L,styleTargetRef:S,open:b});var J=n((function(){var e=0;return O.reduce((function(t,i,o){return m(i)?(t[e]=o,e+=i.options.length):e+=1,t}),{})}),[O]);return e.createElement("div",{className:l(u.virtualOptionsList,u[f],I),ref:S,"data-test-id":E},e.createElement("div",{className:u.inner,style:{height:D.totalSize+"px"},ref:L},D.virtualItems.map((function(t){var i,o=x[t.index],n=O[J[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)"}},n&&e.createElement(T,{label:n.label}),!m(o)&&j({option:o,index:t.index}))}))),w&&0===O.length&&e.createElement("div",{className:u.emptyPlaceholder},w))};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"axios";import"../../../toast-notifier/component.js";import"../../../tslib.es6-5f92d514.js";import"react-dom";import"../../../toast-plate/component.js";import"alpha-cli-icons";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"axios";import"../../../toast-notifier/component.js";import"../../../tslib.es6-c88014b9.js";import"react-dom";import"../../../toast-plate/component.js";import"alpha-cli-icons";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{isGroup,isOptionShape,joinOptions,lastIndexOf,processOptions,useVisibleOptions}from"./utils.js";import"../tslib.es6-5f92d514.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"./components/checkmark/component.js";import"react-virtual";import"../hooks/usePrevious/index.js";import"axios";import"../toast-notifier/component.js";import"../toast-plate/component.js";import"alpha-cli-icons";import"../button/component.js";import"../loader/component.js";import"../toast-notifier/use-timer.js";import"../skeleton/component.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-c88014b9.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"react-virtual";import"../hooks/usePrevious/index.js";import"axios";import"../toast-notifier/component.js";import"../toast-plate/component.js";import"alpha-cli-icons";import"../button/component.js";import"../loader/component.js";import"../toast-notifier/use-timer.js";import"../intersection-observer-ce86058b.js";
@@ -1 +1,2 @@
1
1
  export * from "./use-select-with-loading/hook";
2
+ export * from "./use-lazy-loading/index";
@@ -1 +1 @@
1
- export{useSelectWithLoading}from"./use-select-with-loading/hook.js";import"../../tslib.es6-5f92d514.js";import"react";import"../../skeleton/component.js";import"classnames";import"../components/option/component.js";import"../components/checkmark/component.js";
1
+ export{useSelectWithLoading}from"./use-select-with-loading/hook.js";export{useLazyLoading}from"./use-lazy-loading/index.js";import"../../tslib.es6-c88014b9.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-ce86058b.js";
@@ -0,0 +1,45 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { OptionShape } from "../../typings";
4
+ type OptionsFetcherResponse = {
5
+ items: Array<{
6
+ [x: string]: any;
7
+ id: number | string;
8
+ }>;
9
+ meta: {
10
+ totalItems?: number;
11
+ itemCount?: number;
12
+ itemsPerPage?: number;
13
+ totalPages: number;
14
+ currentPage: number;
15
+ };
16
+ };
17
+ type UseLazyLoadingProps = {
18
+ limit?: number;
19
+ initialPage?: number;
20
+ optionsFetcher({ page, limit, searchText, }: {
21
+ page: number;
22
+ limit: number;
23
+ searchText?: string;
24
+ }): Promise<OptionsFetcherResponse>;
25
+ };
26
+ declare function useLazyLoading({ limit, initialPage, optionsFetcher, }: UseLazyLoadingProps): {
27
+ optionsProps: {
28
+ Option: (props: any) => JSX.Element;
29
+ options: OptionShape[];
30
+ optionsListProps: {
31
+ ref: React.RefObject<HTMLDivElement>;
32
+ inputProps: {
33
+ onChange: (event: React.ChangeEvent<HTMLInputElement>, payload: {
34
+ value: string;
35
+ }) => void;
36
+ value: string;
37
+ };
38
+ };
39
+ onOpen: (payload: {
40
+ open?: boolean;
41
+ }) => void;
42
+ };
43
+ reset: () => void;
44
+ };
45
+ export { useLazyLoading };
@@ -0,0 +1 @@
1
+ import{a as n,b as e}from"../../../tslib.es6-c88014b9.js";import t,{useReducer as o,useRef as r,useCallback as i,useEffect as a,useMemo as c}from"react";import{Option as l}from"../../components/option/component.js";import{convertToOptions as u}from"../../utils.js";import"../../../intersection-observer-ce86058b.js";import"classnames";import"../../../skeleton/component.js";import"../../components/checkmark/component.js";var p=function(){return{type:"FETCH_OPTIONS_START"}},s=function(){return{type:"FETCH_OPTIONS_BREAK"}},d=function(n){return{type:"FETCH_OPTIONS_SUCCESS",payload:n}},f=function(n){return{type:"SET_IS_OPENED",payload:n}},T=function(n){return{type:"SET_QUERY_STRING",payload:n}},g=function(){return{type:"RESET"}};function m(m){var v=m.limit,h=void 0===v?10:v,E=m.initialPage,S=void 0===E?0:E,O=m.optionsFetcher,_=[],y={opened:!1,page:S,options:_,loading:!1,allOptionsLoaded:!1,searchText:""},P=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(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({},y),{opened:t.opened,loading:!0,searchText:o.payload});case"RESET":return n({},y);default:return t}}),y),I=P[0],C=I.opened,N=I.page,R=I.options,b=I.loading,F=I.allOptionsLoaded,j=I.searchText,A=P[1],H=r(),x=i((function(){A(p()),new Promise((function(n,e){var t;null===(t=H.current)||void 0===t||t.call(H),H.current=e,O({page:N,limit:h,searchText:j}).then((function(e){n(e)}))})).then((function(n){var e=u(n.items),t=n.meta,o=t.totalPages,r=t.currentPage;A(d({options:e,hasMore:r<o})),H.current=void 0})).catch((function(n){console.log(n)}))}),[N,h,j,O]),k=r(null);a((function(){var n,e;if(C&&!b&&!F){e=new IntersectionObserver((function(n){n[0].isIntersecting&&(e&&e.disconnect(),x())}),{root:k.current});var t=null===(n=k.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()}}),[N,C,F,S,b,x]);var L=i((function(n){var e,t;n.open?R.length===_.length&&x():(null===(e=H.current)||void 0===e||e.call(H),A(s())),A(f(null!==(t=n.open)&&void 0!==t&&t))}),[_.length,R.length,x]),U=r(),w=r();a((function(){U.current=x}),[x]);var B=i((function(n,e){var t,o;A(T(e.value)),null===(t=H.current)||void 0===t||t.call(H),null===(o=k.current)||void 0===o||o.scrollTo({top:0}),w.current&&clearTimeout(w.current),w.current=setTimeout((function(){var n;null===(n=U.current)||void 0===n||n.call(U)}),300)}),[]),D=c((function(){return Array(b?h:0).fill(0).map((function(n,e){return{key:e,disabled:!0,content:"",loading:!0}}))}),[b,h]),G=i((function(){A(g())}),[]);return{optionsProps:{Option:i((function(e){return t.createElement(l,n({},e,{highlighted:!b&&e.highlighted}))}),[b]),options:e(R,D),optionsListProps:{ref:k,inputProps:{onChange:B,value:j}},onOpen:L},reset:G}}export{m as useLazyLoading};
@@ -1 +1 @@
1
- import{a as e}from"../../../tslib.es6-5f92d514.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="index-module_skeleton__3exug";function m(m){var s=m.loading,l=void 0!==s&&s,a=m.visibleOptions,c=void 0===a?6:a,p=n((function(n){return o.createElement(i,e({},n,{Checkmark:null,highlighted:!l&&n.highlighted}))}),[l]),d=Array(c).fill(0).map((function(e,n){return{key:n,disabled:!0,content:o.createElement(t,{className:r,visible:!0})}}));return l?{Option:p,options:d}:null}export{m as useSelectWithLoading};
1
+ import{a as e}from"../../../tslib.es6-c88014b9.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="index-module_skeleton__3exug";function m(m){var s=m.loading,l=void 0!==s&&s,c=m.visibleOptions,a=void 0===c?6:c,p=n((function(n){return o.createElement(i,e({},n,{Checkmark:null,highlighted:!l&&n.highlighted}))}),[l]),u=Array(a).fill(0).map((function(e,n){return{key:n,disabled:!0,content:o.createElement(t,{className:r,visible:!0})}}));return l?{Option:p,options:u}:null}export{m as useSelectWithLoading};
@@ -1,10 +1,12 @@
1
1
  /// <reference types="react" />
2
2
  import { AriaAttributes, FC, FocusEvent, MouseEvent, ReactElement, ReactNode, RefAttributes } from 'react';
3
+ import { InputProps } from "../input/index";
3
4
  import { PopoverProps } from "../popover/index";
4
5
  type OptionShape = {
5
6
  key: number | string;
6
7
  content?: ReactNode;
7
8
  disabled?: boolean;
9
+ loading?: boolean;
8
10
  value?: any;
9
11
  };
10
12
  type GroupShape = {
@@ -23,6 +25,7 @@ type BaseSelectProps = {
23
25
  name?: string;
24
26
  disabled?: boolean;
25
27
  defaultOpen?: boolean;
28
+ open?: boolean;
26
29
  multiple?: boolean;
27
30
  size?: 's' | 'm' | 'l' | 'xl' | 'xs';
28
31
  optionsSize?: 's' | 'm' | 'l' | 'xl' | 'xs';
@@ -64,7 +67,9 @@ type BaseSelectProps = {
64
67
  }) => void;
65
68
  onBlur?: (event: FocusEvent<HTMLDivElement | HTMLInputElement>) => void;
66
69
  onFocus?: (event: FocusEvent<HTMLDivElement | HTMLInputElement>) => void;
70
+ onScroll?: (event: MouseEvent<HTMLDivElement>) => void;
67
71
  updatePopover?: PopoverProps['update'];
72
+ zIndexPopover?: PopoverProps['zIndex'];
68
73
  showEmptyOptionsList?: boolean;
69
74
  };
70
75
  type FieldProps = {
@@ -109,7 +114,9 @@ type OptionsListProps = {
109
114
  Optgroup?: BaseSelectProps['Optgroup'];
110
115
  emptyPlaceholder?: string;
111
116
  visibleOptions?: number;
117
+ onScroll?: (event: MouseEvent<HTMLDivElement>) => void;
112
118
  dataTestId?: string;
119
+ inputProps?: InputProps;
113
120
  };
114
121
  type OptgroupProps = {
115
122
  size?: 's' | 'm' | 'l' | 'xl' | 'xs';
@@ -19,4 +19,16 @@ type useVisibleOptionsArgs = {
19
19
  };
20
20
  declare function useVisibleOptions({ visibleOptions, listRef, styleTargetRef, open, invalidate, }: useVisibleOptionsArgs): void;
21
21
  declare const lastIndexOf: <T>(array: T[], predicate: (item: T) => boolean) => number;
22
- export { isGroup, isOptionShape, joinOptions, processOptions, useVisibleOptions, lastIndexOf };
22
+ type OptionsType<T> = Array<{
23
+ key: T;
24
+ content: any;
25
+ }>;
26
+ type ConvertToOptions = <T extends {
27
+ id: string | number;
28
+ [field: string]: any;
29
+ }>(data: T[], field?: string) => Array<{
30
+ key: T['id'];
31
+ content: any;
32
+ }>;
33
+ declare const convertToOptions: ConvertToOptions;
34
+ export { isGroup, isOptionShape, joinOptions, processOptions, useVisibleOptions, lastIndexOf, OptionsType, convertToOptions };
@@ -1 +1 @@
1
- import{isValidElement as t,cloneElement as e,useEffect as n}from"react";var r=function(t){return Object.prototype.hasOwnProperty.call(t,"options")},i=function(t){return!!t&&Object.prototype.hasOwnProperty.call(t,"key")},o=function(n){var r=n.selected,i=n.selectedMultiple||(r?[r]:[]);return i.length?i.reduce((function(n,r,o){return t(r.content)?n.push(e(r.content,{key:r.key})):n.push(r.content),o<i.length-1&&n.push(", "),n}),[]):null};function c(t,e){void 0===e&&(e=[]);var n=[],o=Array.isArray(e)?e:[e],c=o.filter(i),u=o.filter((function(t){return"string"==typeof t||"number"==typeof t})),l=function(t){n.push(t),function(t){return u.includes(t.key)}(t)&&c.push(t)};return t.forEach((function(t){r(t)?t.options.forEach(l):l(t)})),{flatOptions:n,selectedOptions:c}}function u(t){var e=t.visibleOptions,r=t.listRef,i=t.styleTargetRef,o=void 0===i?r:i,c=t.open,u=t.invalidate;n((function(){var t=r.current,n=o.current;if(c&&t&&n){var i=[].slice.call(t.children,0,e+1),u=i.slice(0,e).reduce((function(t,e){return t+e.clientHeight}),0);e<t.children.length&&(u+=Math.round(i[i.length-1].clientHeight/2)),n.style.height=u+"px"}}),[r,c,o,e,u])}var l=function(t,e){for(var n=t.length-1;n>=0;n--)if(e(t[n]))return n;return-1};export{r as isGroup,i as isOptionShape,o as joinOptions,l as lastIndexOf,c as processOptions,u as useVisibleOptions};
1
+ import{isValidElement as t,cloneElement as n,useEffect as e}from"react";var r=function(t){return Object.prototype.hasOwnProperty.call(t,"options")},i=function(t){return!!t&&Object.prototype.hasOwnProperty.call(t,"key")},o=function(e){var r=e.selected,i=e.selectedMultiple||(r?[r]:[]);return i.length?i.reduce((function(e,r,o){return t(r.content)?e.push(n(r.content,{key:r.key})):e.push(r.content),o<i.length-1&&e.push(", "),e}),[]):null};function c(t,n){void 0===n&&(n=[]);var e=[],o=Array.isArray(n)?n:[n],c=o.filter(i),u=o.filter((function(t){return"string"==typeof t||"number"==typeof t})),l=function(t){e.push(t),function(t){return u.includes(t.key)}(t)&&c.push(t)};return t.forEach((function(t){r(t)?t.options.forEach(l):l(t)})),{flatOptions:e,selectedOptions:c}}function u(t){var n=t.visibleOptions,r=t.listRef,i=t.styleTargetRef,o=void 0===i?r:i,c=t.open,u=t.invalidate;e((function(){var t=r.current,e=o.current;if(c&&t&&e){var i=[].slice.call(t.children,0,n+1),u=i.slice(0,n).reduce((function(t,n){return t+n.clientHeight}),0);n<t.children.length&&(u+=Math.round(i[i.length-1].clientHeight/2)),e.style.height=u+"px"}}),[r,c,o,n,u])}var l=function(t,n){for(var e=t.length-1;e>=0;e--)if(n(t[e]))return e;return-1},f=function(t,n){return t.map((function(t){return{key:t.id,content:n&&t[n]||t.title||t.name}}))};export{f as convertToOptions,r as isGroup,i as isOptionShape,o as joinOptions,l as lastIndexOf,c as processOptions,u as useVisibleOptions};
@@ -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-5f92d514.js";import"../typography/title/component.js";import"../colors.module-cc121901.js";import"../common.module-d34bb3c5.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var r="index-module_wrapper__2MUBI",m="index-module_heading__1vASq",a="index-module_bottomAddons__2aL0E",i="index-module_border__2rk9E",d=function(d){var s,n=d.className,l=d.dataTestId,p=d.title,c=d.rightAddons,_=d.bottomAddons,y=d.border;return e.createElement("div",{"data-test-id":l,className:t(r,n,(s={},s[i]=y,s))},e.createElement("div",{className:m},e.createElement(o.Title,{tag:"h3",view:"xsmall",weight:"bold"},p),c&&e.createElement("div",null,c)),_&&e.createElement("div",{className:a},_))};export{d 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-c88014b9.js";import"../typography/title/component.js";import"../colors.module-ad73c09a.js";import"../common.module-10ade317.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var r="index-module_wrapper__2MUBI",m="index-module_heading__1vASq",a="index-module_bottomAddons__2aL0E",i="index-module_border__2rk9E",d=function(d){var s,n=d.className,l=d.dataTestId,p=d.title,c=d.rightAddons,_=d.bottomAddons,y=d.border;return e.createElement("div",{"data-test-id":l,className:t(r,n,(s={},s[i]=y,s))},e.createElement("div",{className:m},e.createElement(o.Title,{tag:"h3",view:"xsmall",weight:"bold"},p),c&&e.createElement("div",null,c)),_&&e.createElement("div",{className:a},_))};export{d 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-5f92d514.js";import"../typography/title/component.js";import"../colors.module-cc121901.js";import"../common.module-d34bb3c5.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-c88014b9.js";import"../typography/title/component.js";import"../colors.module-ad73c09a.js";import"../common.module-10ade317.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
@@ -1 +1 @@
1
- import{a as e}from"../tslib.es6-5f92d514.js";import*as 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,s=a.children,c=a.divider,d=a.wrap,g={};return"vertical"===m?o<n&&(g={marginBottom:i/(c?2:1)}):g=e(e({},o<n&&{marginRight:i/(c?2:1)}),d&&{paddingBottom:l}),null==s?null:t.createElement(t.Fragment,null,t.createElement("div",{className:r,style:g},s),o<n-1&&c&&t.createElement("span",{style:e({width:"100%"},g)},c))};export{a as default};
1
+ import{a as e}from"../tslib.es6-c88014b9.js";import*as 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,s=a.children,c=a.divider,d=a.wrap,g={};return"vertical"===m?o<n&&(g={marginBottom:i/(c?2:1)}):g=e(e({},o<n&&{marginRight:i/(c?2:1)}),d&&{paddingBottom:l}),null==s?null:t.createElement(t.Fragment,null,t.createElement("div",{className:r,style:g},s),o<n-1&&c&&t.createElement("span",{style:e({width:"100%"},g)},c))};export{a as default};
@@ -1 +1 @@
1
- import{a as e}from"../tslib.es6-5f92d514.js";import t,{forwardRef as i,Children as r}from"react";import n from"classnames";import a from"./Item.js";var o={spaceContainer:"index-module_spaceContainer__3Dq0d",spaceContainerFullWidth:"index-module_spaceContainerFullWidth__xJUHo",vertical:"index-module_vertical__on3nF",center:"index-module_center__7A1ZE",start:"index-module_start__1K4MQ",end:"index-module_end__o7H21",spaceItemFullWidth:"index-module_spaceItemFullWidth__jOTm4",spaceItem:"index-module_spaceItem__2F_mi"},l={s:12,m:16,l:20},d=i((function(i,d){var m,s,c=i.children,u=i.className,_=i.align,p=void 0===_?"start":_,v=i.direction,f=void 0===v?"vertical":v,h=i.size,x=void 0===h?"m":h,F=i.wrap,W=void 0!==F&&F,I=i.divider,g=void 0!==I&&I,y=i.fullWidth,C=void 0!==y&&y,z=t.useMemo((function(){return(Array.isArray(x)?x:[x,x]).map((function(e){return function(e){return"string"==typeof e?l[e]:e||0}(e)}))}),[x]),A=z[0],j=z[1],w=r.toArray(c);if(0===w.length)return null;var E=n(o.spaceContainer,o[f],((m={})[o[p]]=p,m[o.spaceContainerFullWidth]=C,m),u),N=n(o.spaceItem,((s={})[o.spaceItemFullWidth]=C,s)),H=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:W,divider:g},e)}));return t.createElement("div",{className:E,style:e({},W&&{flexWrap:"wrap",marginBottom:-j}),ref:d},H)}));export{d as Space};
1
+ import{a as e}from"../tslib.es6-c88014b9.js";import t,{forwardRef as i,Children as r}from"react";import n from"classnames";import a from"./Item.js";var o={spaceContainer:"index-module_spaceContainer__3Dq0d",spaceContainerFullWidth:"index-module_spaceContainerFullWidth__xJUHo",vertical:"index-module_vertical__on3nF",center:"index-module_center__7A1ZE",start:"index-module_start__1K4MQ",end:"index-module_end__o7H21",spaceItemFullWidth:"index-module_spaceItemFullWidth__jOTm4",spaceItem:"index-module_spaceItem__2F_mi"},l={s:12,m:16,l:20},d=i((function(i,d){var m,s,c=i.children,u=i.className,_=i.align,p=void 0===_?"start":_,v=i.direction,f=void 0===v?"vertical":v,h=i.size,x=void 0===h?"m":h,F=i.wrap,W=void 0!==F&&F,I=i.divider,g=void 0!==I&&I,y=i.fullWidth,C=void 0!==y&&y,z=t.useMemo((function(){return(Array.isArray(x)?x:[x,x]).map((function(e){return function(e){return"string"==typeof e?l[e]:e||0}(e)}))}),[x]),A=z[0],j=z[1],w=r.toArray(c);if(0===w.length)return null;var E=n(o.spaceContainer,o[f],((m={})[o[p]]=p,m[o.spaceContainerFullWidth]=C,m),u),N=n(o.spaceItem,((s={})[o.spaceItemFullWidth]=C,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:W,divider:g},e)}));return t.createElement("div",{className:E,style:e({},W&&{flexWrap:"wrap",marginBottom:-j}),ref:d},b)}));export{d as Space};
@@ -1 +1 @@
1
- export{Space}from"./component.js";import"../tslib.es6-5f92d514.js";import"react";import"classnames";import"./Item.js";
1
+ export{Space}from"./component.js";import"../tslib.es6-c88014b9.js";import"react";import"classnames";import"./Item.js";
@@ -10,7 +10,7 @@ type SuffixInputProps = Omit<InputProps, 'value' | 'onChange' | 'type'> & {
10
10
  value: string;
11
11
  }) => void;
12
12
  };
13
- declare const SuffixInput: React.ForwardRefExoticComponent<Pick<InputProps, "disabled" | "color" | "className" | "dataTestId" | "children" | "form" | "list" | "error" | "label" | "slot" | "style" | "title" | "pattern" | "size" | "id" | "src" | "alt" | "leftAddons" | "rightAddons" | "block" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "step" | "required" | "fieldClassName" | "labelClassName" | "addonsClassName" | "hint" | "bottomAddons" | "accept" | "autoComplete" | "capture" | "checked" | "crossOrigin" | "height" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "readOnly" | "width" | "clear" | "success" | "inputClassName" | "focusedClassName" | "filledClassName" | "onClear" | "wrapperRef"> & {
13
+ declare const SuffixInput: React.ForwardRefExoticComponent<Pick<InputProps, "error" | "className" | "dataTestId" | "form" | "label" | "slot" | "style" | "title" | "pattern" | "children" | "leftAddons" | "rightAddons" | "size" | "block" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "list" | "step" | "required" | "fieldClassName" | "labelClassName" | "addonsClassName" | "hint" | "bottomAddons" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "crossOrigin" | "height" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "readOnly" | "src" | "width" | "clear" | "success" | "inputClassName" | "focusedClassName" | "filledClassName" | "onClear" | "wrapperRef"> & {
14
14
  value: string;
15
15
  suffix?: string | undefined;
16
16
  required?: boolean | undefined;