@kapiuara/ui 0.16.0 → 0.18.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 (243) hide show
  1. package/README.md +430 -20
  2. package/dist/components/chat/KapiChatThread.js +4 -4
  3. package/dist/components/chat/KapiComposer.js +8 -8
  4. package/dist/components/data/KapiDataTable.js +4 -4
  5. package/dist/components/data/KapiScatterChart.d.ts +56 -0
  6. package/dist/components/data/KapiScatterChart.js +90 -0
  7. package/dist/components/data/KapiSparkline.d.ts +2 -1
  8. package/dist/components/data/KapiSparkline.js +29 -26
  9. package/dist/components/data/KapiTableFilter.js +6 -6
  10. package/dist/components/data/chartFrame.d.ts +20 -2
  11. package/dist/components/data/chartFrame.js +33 -24
  12. package/dist/components/data/index.d.ts +4 -0
  13. package/dist/components/data/scatterLogic.d.ts +56 -0
  14. package/dist/components/data/scatterLogic.js +43 -0
  15. package/dist/components/data/tableCells.d.ts +12 -1
  16. package/dist/components/data/tableCells.js +49 -51
  17. package/dist/components/data/useTableSelection.js +3 -3
  18. package/dist/components/display/KapiAnnotation.js +68 -63
  19. package/dist/components/display/KapiAvatar.d.ts +6 -4
  20. package/dist/components/display/KapiAvatar.js +33 -28
  21. package/dist/components/display/KapiAvatarGroup.d.ts +14 -2
  22. package/dist/components/display/KapiAvatarGroup.js +25 -23
  23. package/dist/components/display/KapiCodeBlock.d.ts +48 -0
  24. package/dist/components/display/KapiCodeBlock.js +44 -0
  25. package/dist/components/display/KapiCommentComposer.js +6 -6
  26. package/dist/components/display/KapiDiff.d.ts +62 -0
  27. package/dist/components/display/KapiDiff.js +118 -0
  28. package/dist/components/display/KapiHighlight.d.ts +27 -0
  29. package/dist/components/display/KapiHighlight.js +21 -0
  30. package/dist/components/display/KapiIconTile.d.ts +2 -1
  31. package/dist/components/display/KapiIconTile.js +23 -21
  32. package/dist/components/display/KapiStat.d.ts +3 -2
  33. package/dist/components/display/KapiStat.js +32 -26
  34. package/dist/components/display/KapiTag.d.ts +4 -3
  35. package/dist/components/display/KapiTag.js +29 -24
  36. package/dist/components/display/KapiTimeline.d.ts +19 -2
  37. package/dist/components/display/KapiTimeline.js +38 -23
  38. package/dist/components/display/annotationLogic.d.ts +2 -1
  39. package/dist/components/display/annotationLogic.js +7 -6
  40. package/dist/components/display/avatarGroupSlots.d.ts +6 -0
  41. package/dist/components/display/avatarGroupSlots.js +9 -0
  42. package/dist/components/display/codeBlockSlots.d.ts +10 -0
  43. package/dist/components/display/codeBlockSlots.js +13 -0
  44. package/dist/components/display/diffLogic.d.ts +58 -0
  45. package/dist/components/display/diffLogic.js +96 -0
  46. package/dist/components/display/diffSlots.d.ts +14 -0
  47. package/dist/components/display/diffSlots.js +17 -0
  48. package/dist/components/display/highlightLogic.d.ts +18 -0
  49. package/dist/components/display/highlightLogic.js +26 -0
  50. package/dist/components/display/highlightSlots.d.ts +5 -0
  51. package/dist/components/display/highlightSlots.js +8 -0
  52. package/dist/components/display/iconTileLogic.d.ts +2 -2
  53. package/dist/components/display/iconTileLogic.js +7 -6
  54. package/dist/components/display/index.d.ts +9 -1
  55. package/dist/components/display/statLogic.d.ts +2 -1
  56. package/dist/components/display/statLogic.js +7 -6
  57. package/dist/components/display/tagLogic.d.ts +2 -1
  58. package/dist/components/display/tagLogic.js +7 -6
  59. package/dist/components/display/timelineLogic.d.ts +20 -2
  60. package/dist/components/display/timelineLogic.js +10 -2
  61. package/dist/components/feedback/KapiAlert.d.ts +6 -1
  62. package/dist/components/feedback/KapiAlert.js +45 -44
  63. package/dist/components/feedback/KapiCountdown.d.ts +12 -1
  64. package/dist/components/feedback/KapiCountdown.js +34 -31
  65. package/dist/components/feedback/KapiEmpty.d.ts +6 -1
  66. package/dist/components/feedback/KapiEmpty.js +20 -18
  67. package/dist/components/feedback/KapiFab.js +108 -108
  68. package/dist/components/feedback/KapiProgress.js +63 -54
  69. package/dist/components/feedback/KapiSpinner.d.ts +48 -0
  70. package/dist/components/feedback/KapiSpinner.js +27 -0
  71. package/dist/components/feedback/KapiToastContainer.js +10 -10
  72. package/dist/components/feedback/KapiTour.js +13 -13
  73. package/dist/components/feedback/alertSlots.d.ts +9 -0
  74. package/dist/components/feedback/alertSlots.js +12 -0
  75. package/dist/components/feedback/countdownSlots.d.ts +6 -0
  76. package/dist/components/feedback/countdownSlots.js +9 -0
  77. package/dist/components/feedback/emptySlots.d.ts +8 -0
  78. package/dist/components/feedback/emptySlots.js +11 -0
  79. package/dist/components/feedback/index.d.ts +5 -3
  80. package/dist/components/feedback/progressLogic.d.ts +2 -1
  81. package/dist/components/feedback/progressLogic.js +9 -8
  82. package/dist/components/inputs/KapiAutocomplete.d.ts +6 -0
  83. package/dist/components/inputs/KapiAutocomplete.js +86 -85
  84. package/dist/components/inputs/KapiChecklist.d.ts +7 -1
  85. package/dist/components/inputs/KapiChecklist.js +53 -52
  86. package/dist/components/inputs/KapiCopyButton.d.ts +40 -0
  87. package/dist/components/inputs/KapiCopyButton.js +35 -0
  88. package/dist/components/inputs/KapiDatePicker.d.ts +7 -1
  89. package/dist/components/inputs/KapiDatePicker.js +118 -116
  90. package/dist/components/inputs/KapiDateRangePicker.d.ts +7 -1
  91. package/dist/components/inputs/KapiDateRangePicker.js +136 -135
  92. package/dist/components/inputs/KapiFacetedSearch.js +5 -5
  93. package/dist/components/inputs/KapiField.d.ts +9 -1
  94. package/dist/components/inputs/KapiField.js +43 -42
  95. package/dist/components/inputs/KapiFileUpload.d.ts +14 -1
  96. package/dist/components/inputs/KapiFileUpload.js +83 -70
  97. package/dist/components/inputs/KapiInput.d.ts +29 -1
  98. package/dist/components/inputs/KapiInput.js +74 -51
  99. package/dist/components/inputs/KapiMaskedInput.js +26 -26
  100. package/dist/components/inputs/KapiNumberStepper.d.ts +7 -1
  101. package/dist/components/inputs/KapiNumberStepper.js +24 -23
  102. package/dist/components/inputs/KapiPinInput.d.ts +72 -0
  103. package/dist/components/inputs/KapiPinInput.js +75 -0
  104. package/dist/components/inputs/KapiPropsForm.d.ts +34 -0
  105. package/dist/components/inputs/KapiPropsForm.js +78 -0
  106. package/dist/components/inputs/KapiRating.d.ts +7 -1
  107. package/dist/components/inputs/KapiRating.js +39 -38
  108. package/dist/components/inputs/KapiSearchChip.js +5 -5
  109. package/dist/components/inputs/KapiSegmented.d.ts +13 -5
  110. package/dist/components/inputs/KapiSegmented.js +81 -77
  111. package/dist/components/inputs/KapiSelect.d.ts +9 -1
  112. package/dist/components/inputs/KapiSelect.js +236 -233
  113. package/dist/components/inputs/KapiSlider.d.ts +10 -3
  114. package/dist/components/inputs/KapiSlider.js +67 -63
  115. package/dist/components/inputs/KapiTagInput.d.ts +7 -1
  116. package/dist/components/inputs/KapiTagInput.js +70 -69
  117. package/dist/components/inputs/KapiTextarea.d.ts +7 -1
  118. package/dist/components/inputs/KapiTextarea.js +51 -50
  119. package/dist/components/inputs/copyLogic.d.ts +1 -0
  120. package/dist/components/inputs/copyLogic.js +12 -0
  121. package/dist/components/inputs/fieldLogic.d.ts +23 -3
  122. package/dist/components/inputs/fieldLogic.js +18 -11
  123. package/dist/components/inputs/formBridgeLogic.d.ts +104 -0
  124. package/dist/components/inputs/formBridgeLogic.js +25 -0
  125. package/dist/components/inputs/index.d.ts +10 -0
  126. package/dist/components/inputs/inputLogic.d.ts +16 -1
  127. package/dist/components/inputs/inputLogic.js +3 -3
  128. package/dist/components/inputs/ownField.d.ts +3 -1
  129. package/dist/components/inputs/ownField.js +28 -27
  130. package/dist/components/inputs/pinInputLogic.d.ts +34 -0
  131. package/dist/components/inputs/pinInputLogic.js +37 -0
  132. package/dist/components/inputs/propsFormLogic.d.ts +53 -0
  133. package/dist/components/inputs/propsFormLogic.js +11 -0
  134. package/dist/components/inputs/segmentedLogic.d.ts +7 -0
  135. package/dist/components/inputs/segmentedLogic.js +2 -2
  136. package/dist/components/layout/KapiAccessCard.d.ts +5 -1
  137. package/dist/components/layout/KapiAccessCard.js +43 -39
  138. package/dist/components/layout/KapiAccountMenu.js +7 -7
  139. package/dist/components/layout/KapiCollapse.d.ts +39 -0
  140. package/dist/components/layout/KapiCollapse.js +20 -0
  141. package/dist/components/layout/KapiContextSlot.js +4 -4
  142. package/dist/components/layout/KapiDivider.d.ts +11 -2
  143. package/dist/components/layout/KapiDivider.js +30 -24
  144. package/dist/components/layout/KapiGrid.js +2 -2
  145. package/dist/components/layout/KapiNotificationBell.js +10 -10
  146. package/dist/components/layout/KapiPageHeader.js +22 -22
  147. package/dist/components/layout/KapiRail.js +4 -4
  148. package/dist/components/layout/KapiRoot.d.ts +22 -2
  149. package/dist/components/layout/KapiRoot.js +33 -29
  150. package/dist/components/layout/KapiShell.d.ts +9 -1
  151. package/dist/components/layout/KapiShell.js +28 -27
  152. package/dist/components/layout/accessCardLogic.d.ts +8 -1
  153. package/dist/components/layout/accessCardLogic.js +11 -7
  154. package/dist/components/layout/index.d.ts +2 -0
  155. package/dist/components/locale/labelRegistry.d.ts +18 -0
  156. package/dist/components/navigation/KapiAccordion.js +9 -9
  157. package/dist/components/navigation/KapiContextPanel.js +12 -12
  158. package/dist/components/navigation/KapiNavBadge.d.ts +6 -3
  159. package/dist/components/navigation/KapiNavBadge.js +26 -22
  160. package/dist/components/navigation/KapiSteps.d.ts +26 -5
  161. package/dist/components/navigation/KapiSteps.js +55 -43
  162. package/dist/components/navigation/KapiTabs.js +9 -9
  163. package/dist/components/navigation/KapiToc.d.ts +48 -0
  164. package/dist/components/navigation/KapiToc.js +66 -0
  165. package/dist/components/navigation/KapiTree.js +10 -10
  166. package/dist/components/navigation/index.d.ts +3 -0
  167. package/dist/components/navigation/tocLogic.d.ts +35 -0
  168. package/dist/components/navigation/tocLogic.js +11 -0
  169. package/dist/components/navigation/tocSlots.d.ts +8 -0
  170. package/dist/components/navigation/tocSlots.js +11 -0
  171. package/dist/components/overlays/KapiCommandPalette.js +6 -6
  172. package/dist/components/overlays/KapiContextMenu.js +5 -5
  173. package/dist/components/overlays/KapiImageViewer.d.ts +63 -0
  174. package/dist/components/overlays/KapiImageViewer.js +106 -0
  175. package/dist/components/overlays/KapiMenuButton.js +7 -7
  176. package/dist/components/overlays/KapiModal.js +3 -3
  177. package/dist/components/overlays/KapiOffcanvas.js +24 -24
  178. package/dist/components/overlays/KapiPhotoView.js +10 -10
  179. package/dist/components/overlays/KapiPopover.js +6 -6
  180. package/dist/components/overlays/KapiShapeSheet.js +4 -4
  181. package/dist/components/overlays/KapiShortcutsHelp.d.ts +53 -0
  182. package/dist/components/overlays/KapiShortcutsHelp.js +55 -0
  183. package/dist/components/overlays/KapiTooltip.d.ts +49 -10
  184. package/dist/components/overlays/KapiTooltip.js +120 -68
  185. package/dist/components/overlays/KapiViewport.d.ts +63 -0
  186. package/dist/components/overlays/KapiViewport.js +195 -0
  187. package/dist/components/overlays/index.d.ts +8 -0
  188. package/dist/components/overlays/menuList.js +22 -22
  189. package/dist/components/overlays/shortcutsHelpSlots.d.ts +9 -0
  190. package/dist/components/overlays/shortcutsHelpSlots.js +12 -0
  191. package/dist/components/overlays/viewportLogic.d.ts +73 -0
  192. package/dist/components/overlays/viewportLogic.js +54 -0
  193. package/dist/components/slotCatalog.d.ts +66 -0
  194. package/dist/components/slotCatalog.js +30 -12
  195. package/dist/css/base.css +1 -1
  196. package/dist/css/components/data/KapiScatterChart.css +1 -0
  197. package/dist/css/components/display/KapiAnnotation.css +1 -1
  198. package/dist/css/components/display/KapiCodeBlock.css +1 -0
  199. package/dist/css/components/display/KapiDiff.css +1 -0
  200. package/dist/css/components/display/display.css +1 -1
  201. package/dist/css/components/feedback/feedback.css +1 -1
  202. package/dist/css/components/inputs/KapiFileUpload.css +1 -1
  203. package/dist/css/components/inputs/KapiPinInput.css +1 -0
  204. package/dist/css/components/inputs/KapiSelect.css +1 -1
  205. package/dist/css/components/inputs/inputsExtra.css +1 -1
  206. package/dist/css/components/layout/KapiAccessCard.css +1 -1
  207. package/dist/css/components/layout/KapiCollapse.css +1 -0
  208. package/dist/css/components/layout/KapiDivider.css +1 -1
  209. package/dist/css/components/navigation/KapiSteps.css +1 -1
  210. package/dist/css/components/navigation/KapiToc.css +1 -0
  211. package/dist/css/components/overlays/KapiViewport.css +1 -0
  212. package/dist/css/components/overlays/overlays.css +1 -1
  213. package/dist/hooks/asyncResourceLogic.d.ts +11 -0
  214. package/dist/hooks/asyncResourceLogic.js +4 -0
  215. package/dist/hooks/elementSizeLogic.d.ts +15 -0
  216. package/dist/hooks/elementSizeLogic.js +7 -0
  217. package/dist/hooks/hotkeyLogic.d.ts +9 -0
  218. package/dist/hooks/hotkeyLogic.js +16 -15
  219. package/dist/hooks/hotkeyRegistry.d.ts +44 -0
  220. package/dist/hooks/hotkeyRegistry.js +32 -0
  221. package/dist/hooks/index.d.ts +13 -0
  222. package/dist/hooks/toneFamilyLogic.d.ts +26 -2
  223. package/dist/hooks/toneFamilyLogic.js +19 -6
  224. package/dist/hooks/useAsyncResource.d.ts +45 -0
  225. package/dist/hooks/useAsyncResource.js +24 -0
  226. package/dist/hooks/useDebouncedValue.d.ts +30 -0
  227. package/dist/hooks/useDebouncedValue.js +26 -0
  228. package/dist/hooks/useDisclosure.d.ts +39 -0
  229. package/dist/hooks/useDisclosure.js +35 -0
  230. package/dist/hooks/useElementSize.d.ts +27 -0
  231. package/dist/hooks/useElementSize.js +29 -0
  232. package/dist/hooks/useHotkey.d.ts +8 -0
  233. package/dist/hooks/useHotkey.js +27 -15
  234. package/dist/hooks/useKapiTheme.d.ts +8 -1
  235. package/dist/hooks/useKapiTheme.js +57 -57
  236. package/dist/hooks/useToneFamilies.d.ts +14 -4
  237. package/dist/hooks/useToneFamilies.js +27 -23
  238. package/dist/index.js +234 -207
  239. package/dist/kapi.css +1 -1
  240. package/dist/kapi.layered.css +1 -1
  241. package/dist/logic.d.ts +45 -0
  242. package/dist/logic.js +46 -0
  243. package/package.json +13 -2
@@ -1,20 +1,20 @@
1
1
  "use client";
2
2
  import "#kapi-css/components/inputs/KapiSelect.css";
3
- import { assignRef as e, fieldControlProps as t, focusLeaves as n, resolveReadOnly as r } from "./fieldLogic.js";
4
- import { useOwnField as ee } from "./ownField.js";
5
- import { resolveGroupSize as i, selectControlId as te } from "./inputGroupLogic.js";
6
- import { useKapiInputGroup as ne } from "./KapiInputGroup.js";
7
- import { useLabels as re } from "../locale/KapiLocaleProvider.js";
8
- import { useRangeSelect as ie } from "../../hooks/useRangeSelect.js";
9
- import { SELECT_MENU_PLACEMENT as ae, displayLabel as oe, filterOptions as se, findTypeaheadIndex as ce, flattenOptions as le, indexEntries as ue, initialActiveIndex as de, nextActiveIndex as fe, normalizeValue as pe, resolveChipLabel as me, resolveVirtualMenu as he, toggleValue as ge, withUnknownValues as _e } from "./selectLogic.js";
10
- import { useControllableState as ve } from "../../hooks/useControllableState.js";
3
+ import { useMergedRefs as e } from "../../hooks/mergeRefs.js";
4
+ import { useLabels as t } from "../locale/KapiLocaleProvider.js";
5
+ import { assignRef as n, fieldControlProps as r, focusLeaves as ee, resolveReadOnly as i } from "./fieldLogic.js";
6
+ import { useOwnField as te } from "./ownField.js";
7
+ import { resolveGroupSize as ne, selectControlId as re } from "./inputGroupLogic.js";
8
+ import { useKapiInputGroup as ie } from "./KapiInputGroup.js";
9
+ import { useControllableState as ae } from "../../hooks/useControllableState.js";
10
+ import { useRangeSelect as oe } from "../../hooks/useRangeSelect.js";
11
+ import { SELECT_MENU_PLACEMENT as se, displayLabel as ce, filterOptions as le, findTypeaheadIndex as ue, flattenOptions as de, indexEntries as fe, initialActiveIndex as pe, nextActiveIndex as me, normalizeValue as a, resolveChipLabel as he, resolveVirtualMenu as ge, toggleValue as _e, withUnknownValues as ve } from "./selectLogic.js";
11
12
  import { resolveKapiRoot as ye } from "../../hooks/kapiRoot.js";
12
- import { isCreateRow as be, menuItems as a, withCreated as xe } from "./asyncSelectLogic.js";
13
+ import { isCreateRow as be, menuItems as xe, withCreated as Se } from "./asyncSelectLogic.js";
13
14
  /* empty css */
14
- import { usePlacement as Se } from "../../hooks/usePlacement.js";
15
- import { useDuplicateValueWarning as Ce, useMutedControlWarning as we } from "./misuseWarnings.js";
16
- import { useFormReset as Te } from "../../hooks/useFormReset.js";
17
- import { useMergedRefs as Ee } from "../../hooks/mergeRefs.js";
15
+ import { usePlacement as Ce } from "../../hooks/usePlacement.js";
16
+ import { useDuplicateValueWarning as we, useMutedControlWarning as Te } from "./misuseWarnings.js";
17
+ import { useFormReset as Ee } from "../../hooks/useFormReset.js";
18
18
  import { useOutsidePress as De } from "../../hooks/useOutsidePress.js";
19
19
  import { useTypeahead as Oe } from "../../hooks/useTypeahead.js";
20
20
  import { selectKeyAction as ke } from "./selectKeyLogic.js";
@@ -23,18 +23,19 @@ import { useSelectCreate as je } from "./useSelectCreate.js";
23
23
  import { slot as o } from "../slotsLogic.js";
24
24
  import { SELECT_SLOTS as s } from "./selectSlots.js";
25
25
  import { KapiSelectMenu as Me } from "./KapiSelectMenu.js";
26
- import { useCallback as Ne, useEffect as Pe, useId as Fe, useLayoutEffect as Ie, useMemo as c, useRef as l, useState as u } from "react";
27
- import { jsx as d, jsxs as f } from "react/jsx-runtime";
28
- import { ChevronDown as Le, X as Re } from "lucide-react";
26
+ import { useCallback as Ne, useEffect as Pe, useId as Fe, useLayoutEffect as Ie, useMemo as c, useRef as l, useState as Le } from "react";
27
+ import { jsx as u, jsxs as d } from "react/jsx-runtime";
28
+ import { ChevronDown as Re, X as ze } from "lucide-react";
29
29
  //#region src/components/inputs/KapiSelect.tsx
30
- var ze = 6, Be = [], p = "\0kapisel-all", Ve = (e, t) => `${e} “${t.trim()}”`, He = ({ size: e = "md", open: t, disabled: n, readOnly: r, multi: ee, chip: i, className: te }) => [
30
+ var Be = 6, Ve = [], f = "\0kapisel-all", He = (e, t) => `${e} “${t.trim()}”`, Ue = ({ size: e = "md", open: t, disabled: n, readOnly: r, multi: ee, chip: i, invalid: te, className: ne }) => [
31
31
  ...i ? ["kapi-filterchip", "kapisel--chip"] : ["kapisel", `kapisel--${e}`],
32
32
  t && "kapisel--open",
33
33
  n && "kapisel--disabled",
34
34
  r && "kapisel--readonly",
35
35
  ee && "kapisel--multi",
36
- te
37
- ].filter(Boolean).join(" "), Ue = {
36
+ te && "kapisel--err",
37
+ ne
38
+ ].filter(Boolean).join(" "), We = {
38
39
  clear: "Limpiar selección",
39
40
  remove: "Quitar",
40
41
  placeholder: "Seleccionar…",
@@ -44,137 +45,138 @@ var ze = 6, Be = [], p = "\0kapisel-all", Ve = (e, t) => `${e} “${t.trim()}”
44
45
  createError: "No se pudo crear la opción",
45
46
  create: "Crear",
46
47
  all: "Todas"
47
- }, m = (m) => {
48
- let { options: h = Be, loadOptions: We, loadDelay: Ge = 300, reloadKey: Ke, onCreate: qe, value: Je, defaultValue: Ye, multiple: g = !1, variant: Xe = "field", icon: Ze, label: Qe, chipLabel: $e, help: et, fieldClassName: tt, clearable: nt = !1, disabled: _ = !1, invalid: rt, required: it, readOnly: at, loading: v = !1, placeholder: ot, size: st, renderOption: ct, renderValue: lt, virtual: ut, emptyMessage: dt, noOptionsMessage: ft, loadingMessage: pt, name: mt, id: ht, className: gt, classNames: y, style: _t, "aria-label": vt, labels: yt, ref: b, onBlur: bt } = m, x = Xe === "chip", S = m.searchable ?? !x, xt = m.onChange, C = re("select", Ue, yt), St = ot ?? C.placeholder, w = g ? void 0 : m.allOption, T = w !== void 0 && w !== !1, Ct = typeof w == "string" ? w : C.all, E = c(() => ({
49
- value: p,
50
- label: Ct
51
- }), [Ct]), wt = c(() => T && !(We && h.length === 0) ? [E, ...h] : h, [
52
- T,
53
- We,
54
- h,
55
- E
56
- ]), Tt = dt ?? ft ?? C.noOptions, Et = pt ?? C.loading, Dt = ne(), Ot = i(st, Dt?.size) ?? "md", { chipLabel: kt, fieldLabel: At } = me({
57
- chip: x,
58
- chipLabel: $e,
59
- label: Qe
60
- }), jt = ee({
61
- id: ht,
62
- label: At,
63
- help: et,
64
- required: it,
65
- invalid: rt,
66
- readOnly: at,
67
- fieldClassName: tt
68
- }), D = jt.field, O = r(at, D), Mt = vt ?? (x && !D ? kt : void 0), Nt = Fe(), k = te({
69
- id: ht,
48
+ }, p = (p) => {
49
+ let { options: m = Ve, loadOptions: Ge, loadDelay: Ke = 300, reloadKey: qe, onCreate: Je, value: Ye, defaultValue: Xe, multiple: h = !1, variant: Ze = "field", icon: Qe, label: $e, chipLabel: et, help: tt, error: nt, fieldClassName: rt, clearable: it = !1, disabled: g = !1, invalid: at, required: ot, readOnly: st, loading: _ = !1, placeholder: ct, size: lt, renderOption: ut, renderValue: dt, virtual: ft, emptyMessage: pt, noOptionsMessage: mt, loadingMessage: ht, name: gt, id: _t, className: vt, classNames: v, style: yt, "aria-label": bt, labels: xt, ref: y, onBlur: St } = p, b = Ze === "chip", x = p.searchable ?? !b, Ct = p.onChange, S = t("select", We, xt), wt = ct ?? S.placeholder, C = h ? void 0 : p.allOption, w = C !== void 0 && C !== !1, Tt = typeof C == "string" ? C : S.all, T = c(() => ({
50
+ value: f,
51
+ label: Tt
52
+ }), [Tt]), Et = c(() => w && !(Ge && m.length === 0) ? [T, ...m] : m, [
53
+ w,
54
+ Ge,
55
+ m,
56
+ T
57
+ ]), Dt = pt ?? mt ?? S.noOptions, Ot = ht ?? S.loading, E = ie(), kt = ne(lt, E?.size) ?? "md", { chipLabel: At, fieldLabel: jt } = he({
58
+ chip: b,
59
+ chipLabel: et,
60
+ label: $e
61
+ }), Mt = te({
62
+ id: _t,
63
+ label: jt,
64
+ help: tt,
65
+ error: nt,
66
+ required: ot,
67
+ invalid: at,
68
+ readOnly: st,
69
+ fieldClassName: rt
70
+ }), D = Mt.field, O = i(st, D), Nt = at ?? D?.invalid ?? !1, Pt = bt ?? (b && !D ? At : void 0), Ft = Fe(), k = re({
71
+ id: _t,
70
72
  fieldControlId: D?.controlId,
71
- autoId: Nt,
72
- inGroup: Dt !== null
73
- }), Pt = `${k}-listbox`, Ft = `${k}-value`, It = (e) => `${k}-opt-${e}`, [Lt, Rt, , zt] = ve(Je, () => pe(Ye, g), xt), Bt = c(() => le(h).map((e) => e.value), [h]);
74
- Ce("KapiSelect", Bt), we("KapiSelect", {
75
- controlled: Je !== void 0,
76
- hasOnChange: !!xt,
73
+ autoId: Ft,
74
+ inGroup: E !== null
75
+ }), It = `${k}-listbox`, Lt = `${k}-value`, Rt = (e) => `${k}-opt-${e}`, [zt, Bt, , Vt] = ae(Ye, () => a(Xe, h), Ct), Ht = c(() => de(m).map((e) => e.value), [m]);
76
+ we("KapiSelect", Ht), Te("KapiSelect", {
77
+ controlled: Ye !== void 0,
78
+ hasOnChange: !!Ct,
77
79
  readOnly: O,
78
- disabled: _
80
+ disabled: g
79
81
  });
80
- let A = (e) => Rt(T && e === p ? null : e), Vt = pe(Lt, g), j = T && Vt === null ? p : Vt, M = j === p, N = c(() => pe(j, !0), [j]), [P, F] = u(!1), [I, L] = u(""), [Ht, R] = u(-1), z = l(null), Ut = Ee(z, Te(zt)), B = l(null), Wt = l(null), Gt = Ne((t) => {
81
- B.current = t, e(b, t);
82
- }, [b]), Kt = Ne((t) => {
83
- Wt.current = t, e(b, t);
84
- }, [b]), V = l(null), qt = Oe(500), Jt = c(() => new Set(N), [N]), Yt = ie(), Xt = I.trim(), H = P && !_ && !O, U = Ae({
85
- options: wt,
86
- loadOptions: We,
87
- loadDelay: Ge,
88
- reloadKey: Ke,
89
- creatable: qe !== void 0,
90
- searchable: S,
82
+ let A = (e) => Bt(w && e === f ? null : e), Ut = a(zt, h), j = w && Ut === null ? f : Ut, M = j === f, N = c(() => a(j, !0), [j]), [P, F] = Le(!1), [I, L] = Le(""), [Wt, R] = Le(-1), z = l(null), Gt = e(z, Ee(Vt)), B = l(null), Kt = l(null), qt = Ne((e) => {
83
+ B.current = e, n(y, e);
84
+ }, [y]), Jt = Ne((e) => {
85
+ Kt.current = e, n(y, e);
86
+ }, [y]), V = l(null), Yt = Oe(500), Xt = c(() => new Set(N), [N]), Zt = oe(), Qt = I.trim(), H = P && !g && !O, U = Ae({
87
+ options: Et,
88
+ loadOptions: Ge,
89
+ loadDelay: Ke,
90
+ reloadKey: qe,
91
+ creatable: Je !== void 0,
92
+ searchable: x,
91
93
  query: I,
92
94
  open: H,
93
95
  current: j,
94
- onLoaded: (e, t) => R(fe(-1, "first", a(e, t, J, Ve(C.create, t))))
95
- }), { isAsync: Zt, filtered: W, asyncLoading: G, loadError: Qt } = U, K = c(() => M ? [E] : v ? U.selected : _e(U.selected, j), [
96
+ onLoaded: (e, t) => R(me(-1, "first", xe(e, t, q, He(S.create, t))))
97
+ }), { isAsync: $t, filtered: W, asyncLoading: en, loadError: tn } = U, G = c(() => M ? [T] : _ ? U.selected : ve(U.selected, j), [
96
98
  M,
97
- E,
99
+ T,
98
100
  U.selected,
99
- v,
101
+ _,
100
102
  j
101
- ]), q = je({
102
- onCreate: qe,
103
+ ]), K = je({
104
+ onCreate: Je,
103
105
  open: H,
104
106
  onSettled: (e, t) => {
105
- e && (U.remember([e]), A(xe(j, e.value, g))), I.trim() === t && cn(e ? e.value : null);
107
+ e && (U.remember([e]), A(Se(j, e.value, h))), I.trim() === t && Q(e ? e.value : null);
106
108
  }
107
- }), $t = v || G, en = $t || q.creating, J = qe !== void 0 && S && !v && !q.creating, Y = c(() => a(W, I, J && !G, Ve(C.create, I)), [
109
+ }), nn = _ || en, rn = nn || K.creating, q = Je !== void 0 && x && !_ && !K.creating, J = c(() => xe(W, I, q && !en, He(S.create, I)), [
108
110
  W,
109
111
  I,
110
- J,
111
- G,
112
- C.create
113
- ]), tn = c(() => ue(W), [W]), nn = Y.length > 0 && be(Y[Y.length - 1]) ? Y[Y.length - 1] : null, X = Ht >= 0 && Ht < Y.length ? Ht : -1, Z = K.length > 0, rn = S && I !== "", an = $t ? Et : q.failed ? C.createError : Qt ? C.loadError : Y.length === 0 ? Tt : null, on = () => (S ? B.current : Wt.current)?.focus();
112
+ q,
113
+ en,
114
+ S.create
115
+ ]), an = c(() => fe(W), [W]), on = J.length > 0 && be(J[J.length - 1]) ? J[J.length - 1] : null, Y = Wt >= 0 && Wt < J.length ? Wt : -1, X = G.length > 0, sn = x && I !== "", cn = nn ? Ot : K.failed ? S.createError : tn ? S.loadError : J.length === 0 ? Dt : null, ln = () => (x ? B.current : Kt.current)?.focus();
114
116
  Pe(() => {
115
- _ && (F(!1), L(""));
116
- }, [_]);
117
- let Q = Ne(() => {
117
+ g && (F(!1), L(""));
118
+ }, [g]);
119
+ let Z = Ne(() => {
118
120
  F(!1), L(""), R(-1);
119
- }, []), sn = (e = "selected") => {
120
- _ || O || (F(!0), R(de(Y, N, e)));
121
- }, cn = (e) => {
122
- g ? (L(""), R(e === null ? -1 : de(le(h), [e], "selected")), B.current?.focus()) : Q();
123
- }, ln = (e, t = !1) => {
121
+ }, []), un = (e = "selected") => {
122
+ g || O || (F(!0), R(pe(J, N, e)));
123
+ }, Q = (e) => {
124
+ h ? (L(""), R(e === null ? -1 : pe(de(m), [e], "selected")), B.current?.focus()) : Z();
125
+ }, dn = (e, t = !1) => {
124
126
  if (e.disabled) return;
125
127
  if (be(e)) {
126
- q.create(Xt);
128
+ K.create(Qt);
127
129
  return;
128
130
  }
129
- if (g) {
130
- let n = Y.filter((e) => !be(e)), r = n.map((e) => e.value), ee = new Set(n.filter((e) => !e.disabled).map((e) => e.value)), i = Yt.toggle({
131
- selected: new Set(Jt),
131
+ if (h) {
132
+ let n = J.filter((e) => !be(e)), r = n.map((e) => e.value), ee = new Set(n.filter((e) => !e.disabled).map((e) => e.value)), i = Zt.toggle({
133
+ selected: new Set(Xt),
132
134
  ids: r,
133
135
  target: e.value,
134
136
  shift: t,
135
137
  isSelectable: (e) => ee.has(e)
136
138
  });
137
- A([...N.filter((e) => i.has(e)), ...r.filter((e) => i.has(e) && !Jt.has(e))]), cn(e.value);
139
+ A([...N.filter((e) => i.has(e)), ...r.filter((e) => i.has(e) && !Xt.has(e))]), Q(e.value);
138
140
  return;
139
141
  }
140
- let n = ge(j, e.value, g);
141
- n === j ? Q() : (A(n), cn(e.value));
142
- }, un = (e) => A(N.filter((t) => t !== e)), dn = () => {
143
- A(g ? [] : null), L(""), on();
144
- }, { placement: fn, style: pn, update: mn } = Se({
142
+ let n = _e(j, e.value, h);
143
+ n === j ? Z() : (A(n), Q(e.value));
144
+ }, fn = (e) => A(N.filter((t) => t !== e)), pn = () => {
145
+ A(h ? [] : null), L(""), ln();
146
+ }, { placement: mn, style: hn, update: gn } = Ce({
145
147
  open: H,
146
148
  anchor: z,
147
149
  floatingRef: V,
148
- ...ae,
149
- offset: ze
150
+ ...se,
151
+ offset: Be
150
152
  });
151
153
  Ie(() => {
152
- H && mn();
154
+ H && gn();
153
155
  }, [
154
156
  H,
155
- Y.length,
156
- an,
157
- mn
158
- ]), De(H, [z, V], Q), Pe(() => {
159
- if (!H || X < 0) return;
160
- let e = V.current?.querySelector(`[data-kapisel-index="${X}"]`);
157
+ J.length,
158
+ cn,
159
+ gn
160
+ ]), De(H, [z, V], Z), Pe(() => {
161
+ if (!H || Y < 0) return;
162
+ let e = V.current?.querySelector(`[data-kapisel-index="${Y}"]`);
161
163
  e && typeof e.scrollIntoView == "function" && e.scrollIntoView({ block: "nearest" });
162
- }, [H, X]);
163
- let hn = (e) => {
164
- if (_) return;
164
+ }, [H, Y]);
165
+ let _n = (e) => {
166
+ if (g) return;
165
167
  let t = e.target;
166
- V.current?.contains(t) || (t.closest("[data-kapisel-action]") ? e.preventDefault() : t === B.current ? P || sn() : (e.preventDefault(), on(), P ? Q() : sn()));
167
- }, gn = (e) => {
168
- L(e), F(!0), q.resetError(), R(Zt ? -1 : fe(-1, "first", a(se(wt, e), e, J, Ve(C.create, e))));
169
- }, _n = (e) => {
170
- let t = ce(Y, qt(e), P ? X : Y.findIndex((e) => Jt.has(e.value)));
171
- t < 0 || (P || F(!0), R(t));
168
+ V.current?.contains(t) || (t.closest("[data-kapisel-action]") ? e.preventDefault() : t === B.current ? P || un() : (e.preventDefault(), ln(), P ? Z() : un()));
172
169
  }, vn = (e) => {
173
- if (_ || O) return;
170
+ L(e), F(!0), K.resetError(), R($t ? -1 : me(-1, "first", xe(le(Et, e), e, q, He(S.create, e))));
171
+ }, yn = (e) => {
172
+ let t = ue(J, Yt(e), P ? Y : J.findIndex((e) => Xt.has(e.value)));
173
+ t < 0 || (P || F(!0), R(t));
174
+ }, bn = (e) => {
175
+ if (g || O) return;
174
176
  let t = ke(e, {
175
177
  open: P,
176
- searchable: S,
177
- multiple: g,
178
+ searchable: x,
179
+ multiple: h,
178
180
  query: I,
179
181
  valueCount: N.length
180
182
  });
@@ -183,211 +185,212 @@ var ze = 6, Be = [], p = "\0kapisel-all", Ve = (e, t) => `${e} “${t.trim()}”
183
185
  let { intent: n } = t;
184
186
  switch (n.type) {
185
187
  case "open":
186
- sn(n.edge);
188
+ un(n.edge);
187
189
  break;
188
190
  case "move":
189
- R(fe(X, n.to, Y));
191
+ R(me(Y, n.to, J));
190
192
  break;
191
193
  case "choose": {
192
- let e = X >= 0 ? Y[X] : void 0;
193
- e && ln(e);
194
+ let e = Y >= 0 ? J[Y] : void 0;
195
+ e && dn(e);
194
196
  break;
195
197
  }
196
198
  case "close":
197
- Q();
199
+ Z();
198
200
  break;
199
201
  case "removeLast":
200
- un(N[N.length - 1]);
202
+ fn(N[N.length - 1]);
201
203
  break;
202
- case "typeahead": _n(n.key);
204
+ case "typeahead": yn(n.key);
203
205
  }
204
- }, yn = (e) => {
205
- n(e.relatedTarget, z.current, V.current) && (P && Q(), bt?.(e));
206
- }, bn = H ? ye(z.current) : null, xn = Dt !== null || x, Sn = he({
207
- virtual: ut,
208
- count: Y.length,
209
- contentSized: xn,
210
- customRows: ct !== void 0
211
- }), Cn = {
206
+ }, xn = (e) => {
207
+ ee(e.relatedTarget, z.current, V.current) && (P && Z(), St?.(e));
208
+ }, Sn = H ? ye(z.current) : null, Cn = E !== null || b, wn = ge({
209
+ virtual: ft,
210
+ count: J.length,
211
+ contentSized: Cn,
212
+ customRows: ut !== void 0
213
+ }), Tn = {
212
214
  role: "combobox",
213
- ...t(D, {
215
+ ...r(D, {
214
216
  id: k,
215
- describedBy: Ft,
216
- invalid: rt,
217
- required: it,
218
- labelable: S,
219
- ariaLabel: Mt
217
+ describedBy: Lt,
218
+ invalid: at,
219
+ required: ot,
220
+ labelable: x,
221
+ ariaLabel: Pt
220
222
  }),
221
223
  "aria-haspopup": "listbox",
222
224
  "aria-expanded": H,
223
- "aria-controls": H ? Pt : void 0,
224
- "aria-activedescendant": H && X >= 0 ? It(X) : void 0,
225
- "aria-label": Mt,
226
- "aria-disabled": _ || void 0,
225
+ "aria-controls": H ? It : void 0,
226
+ "aria-activedescendant": H && Y >= 0 ? Rt(Y) : void 0,
227
+ "aria-label": Pt,
228
+ "aria-disabled": g || void 0,
227
229
  "aria-readonly": O || void 0,
228
- "aria-busy": en || void 0
229
- }, $ = lt && Z && !M ? lt(K) : null, wn = !Z && !rn && /* @__PURE__ */ d("span", {
230
- ...o(s, "placeholder", y),
230
+ "aria-busy": rn || void 0
231
+ }, $ = dt && X && !M ? dt(G) : null, En = !X && !sn && /* @__PURE__ */ u("span", {
232
+ ...o(s, "placeholder", v),
231
233
  "aria-hidden": "true",
232
- children: St
234
+ children: wt
233
235
  });
234
- return jt.wrap(/* @__PURE__ */ f("div", {
235
- ref: Ut,
236
- ...o(s, "root", y, He({
237
- size: Ot,
236
+ return Mt.wrap(/* @__PURE__ */ d("div", {
237
+ ref: Gt,
238
+ ...o(s, "root", v, Ue({
239
+ size: kt,
238
240
  open: H,
239
- disabled: _,
241
+ disabled: g,
240
242
  readOnly: O,
241
- multi: g,
242
- chip: x,
243
- className: gt
243
+ multi: h,
244
+ chip: b,
245
+ invalid: Nt,
246
+ className: vt
244
247
  })),
245
- style: _t,
246
- onMouseDown: hn,
248
+ style: yt,
249
+ onMouseDown: _n,
247
250
  children: [
248
- x && Ze ? /* @__PURE__ */ d("span", {
249
- ...o(s, "icon", y),
250
- children: Ze
251
+ b && Qe ? /* @__PURE__ */ u("span", {
252
+ ...o(s, "icon", v),
253
+ children: Qe
251
254
  }) : null,
252
- x && kt && /* @__PURE__ */ f("span", {
253
- ...o(s, "label", y),
255
+ b && At && /* @__PURE__ */ d("span", {
256
+ ...o(s, "label", v),
254
257
  "aria-hidden": "true",
255
- children: [kt, ":"]
258
+ children: [At, ":"]
256
259
  }),
257
- /* @__PURE__ */ f("div", {
258
- ...o(s, "values", y),
260
+ /* @__PURE__ */ d("div", {
261
+ ...o(s, "values", v),
259
262
  children: [
260
- g && $ !== null && /* @__PURE__ */ d("span", {
261
- ...o(s, "single", y),
263
+ h && $ !== null && /* @__PURE__ */ u("span", {
264
+ ...o(s, "single", v),
262
265
  "aria-hidden": "true",
263
266
  children: $
264
267
  }),
265
- g && $ === null && K.map((e) => /* @__PURE__ */ f("span", {
266
- ...o(s, "tag", y),
267
- children: [/* @__PURE__ */ d("span", {
268
- ...o(s, "tagLabel", y),
268
+ h && $ === null && G.map((e) => /* @__PURE__ */ d("span", {
269
+ ...o(s, "tag", v),
270
+ children: [/* @__PURE__ */ u("span", {
271
+ ...o(s, "tagLabel", v),
269
272
  children: e.label
270
- }), /* @__PURE__ */ d("button", {
273
+ }), /* @__PURE__ */ u("button", {
271
274
  type: "button",
272
275
  tabIndex: -1,
273
276
  "data-kapisel-action": !0,
274
- ...o(s, "tagRemove", y),
275
- "aria-label": `${C.remove} ${e.label}`,
276
- disabled: _,
277
+ ...o(s, "tagRemove", v),
278
+ "aria-label": `${S.remove} ${e.label}`,
279
+ disabled: g,
277
280
  hidden: O || void 0,
278
- onClick: () => un(e.value),
279
- children: /* @__PURE__ */ d(Re, {
281
+ onClick: () => fn(e.value),
282
+ children: /* @__PURE__ */ u(ze, {
280
283
  size: 12,
281
284
  strokeWidth: 2.6,
282
285
  "aria-hidden": "true"
283
286
  })
284
287
  })]
285
288
  }, e.value)),
286
- S ? /* @__PURE__ */ f("div", {
289
+ x ? /* @__PURE__ */ d("div", {
287
290
  className: "kapisel__inputwrap",
288
291
  children: [
289
- !g && Z && !rn && /* @__PURE__ */ d("span", {
290
- ...o(s, "single", y),
292
+ !h && X && !sn && /* @__PURE__ */ u("span", {
293
+ ...o(s, "single", v),
291
294
  "aria-hidden": "true",
292
- children: $ ?? K[0]?.label
295
+ children: $ ?? G[0]?.label
293
296
  }),
294
- wn,
295
- /* @__PURE__ */ d("input", {
296
- ...Cn,
297
- ref: Gt,
297
+ En,
298
+ /* @__PURE__ */ u("input", {
299
+ ...Tn,
300
+ ref: qt,
298
301
  type: "text",
299
- ...o(s, "input", y),
302
+ ...o(s, "input", v),
300
303
  autoComplete: "off",
301
304
  "aria-autocomplete": "list",
302
- disabled: _,
305
+ disabled: g,
303
306
  readOnly: O || void 0,
304
307
  value: I,
305
- onChange: (e) => gn(e.target.value),
306
- onKeyDown: vn,
307
- onBlur: yn
308
+ onChange: (e) => vn(e.target.value),
309
+ onKeyDown: bn,
310
+ onBlur: xn
308
311
  })
309
312
  ]
310
- }) : /* @__PURE__ */ f("div", {
311
- ...Cn,
312
- ref: Kt,
313
- ...o(s, "combo", y),
314
- tabIndex: _ ? -1 : 0,
315
- onKeyDown: vn,
316
- onBlur: yn,
317
- children: [!g && Z && /* @__PURE__ */ d("span", {
318
- ...o(s, "single", y),
313
+ }) : /* @__PURE__ */ d("div", {
314
+ ...Tn,
315
+ ref: Jt,
316
+ ...o(s, "combo", v),
317
+ tabIndex: g ? -1 : 0,
318
+ onKeyDown: bn,
319
+ onBlur: xn,
320
+ children: [!h && X && /* @__PURE__ */ u("span", {
321
+ ...o(s, "single", v),
319
322
  "aria-hidden": "true",
320
- children: $ ?? K[0]?.label
321
- }), wn]
323
+ children: $ ?? G[0]?.label
324
+ }), En]
322
325
  })
323
326
  ]
324
327
  }),
325
- /* @__PURE__ */ d("span", {
326
- id: Ft,
328
+ /* @__PURE__ */ u("span", {
329
+ id: Lt,
327
330
  className: "kapisel__sr",
328
- children: oe(K, St)
331
+ children: ce(G, wt)
329
332
  }),
330
- en && /* @__PURE__ */ d("span", {
331
- ...o(s, "spinner", y, "kapi-spinner kapi-spinner--sm"),
333
+ rn && /* @__PURE__ */ u("span", {
334
+ ...o(s, "spinner", v, "kapi-spinner kapi-spinner--sm"),
332
335
  "aria-hidden": "true"
333
336
  }),
334
- nt && Z && !M && !_ && !O && /* @__PURE__ */ d("button", {
337
+ it && X && !M && !g && !O && /* @__PURE__ */ u("button", {
335
338
  type: "button",
336
339
  tabIndex: -1,
337
340
  "data-kapisel-action": !0,
338
- ...o(s, "clear", y),
339
- "aria-label": C.clear,
340
- onClick: dn,
341
- children: /* @__PURE__ */ d(Re, {
341
+ ...o(s, "clear", v),
342
+ "aria-label": S.clear,
343
+ onClick: pn,
344
+ children: /* @__PURE__ */ u(ze, {
342
345
  size: 15,
343
346
  strokeWidth: 2.4,
344
347
  "aria-hidden": "true"
345
348
  })
346
349
  }),
347
- /* @__PURE__ */ d("span", {
348
- ...o(s, "caret", y),
350
+ /* @__PURE__ */ u("span", {
351
+ ...o(s, "caret", v),
349
352
  "aria-hidden": "true",
350
- children: /* @__PURE__ */ d(Le, {
351
- size: x ? 14 : 17,
353
+ children: /* @__PURE__ */ u(Re, {
354
+ size: b ? 14 : 17,
352
355
  strokeWidth: 2.2
353
356
  })
354
357
  }),
355
- mt && (g ? N.map((e) => /* @__PURE__ */ d("input", {
358
+ gt && (h ? N.map((e) => /* @__PURE__ */ u("input", {
356
359
  type: "hidden",
357
- name: mt,
360
+ name: gt,
358
361
  value: e
359
- }, e)) : /* @__PURE__ */ d("input", {
362
+ }, e)) : /* @__PURE__ */ u("input", {
360
363
  type: "hidden",
361
- name: mt,
364
+ name: gt,
362
365
  value: M ? "" : j ?? ""
363
366
  })),
364
- bn && /* @__PURE__ */ d(Me, {
365
- root: bn,
366
- classNames: y,
367
+ Sn && /* @__PURE__ */ u(Me, {
368
+ root: Sn,
369
+ classNames: v,
367
370
  ref: V,
368
- side: fn?.side === "top" ? "top" : "bottom",
369
- hug: xn,
370
- style: pn,
371
- listboxId: Pt,
372
- optionId: It,
373
- multiple: g,
374
- "aria-label": Mt,
375
- rows: tn,
376
- createRow: nn,
377
- createIndex: Y.length - 1,
378
- loading: $t,
379
- empty: Y.length === 0,
380
- message: an,
381
- active: X,
371
+ side: mn?.side === "top" ? "top" : "bottom",
372
+ hug: Cn,
373
+ style: hn,
374
+ listboxId: It,
375
+ optionId: Rt,
376
+ multiple: h,
377
+ "aria-label": Pt,
378
+ rows: an,
379
+ createRow: on,
380
+ createIndex: J.length - 1,
381
+ loading: nn,
382
+ empty: J.length === 0,
383
+ message: cn,
384
+ active: Y,
382
385
  values: N,
383
- renderOption: ct,
386
+ renderOption: ut,
384
387
  query: I,
385
- virtual: Sn,
388
+ virtual: wn,
386
389
  onHover: R,
387
- onChoose: ln
390
+ onChoose: dn
388
391
  })
389
392
  ]
390
393
  }));
391
394
  };
392
395
  //#endregion
393
- export { Ue as DEFAULT_SELECT_LABELS, m as KapiSelect, He as selectClasses };
396
+ export { We as DEFAULT_SELECT_LABELS, p as KapiSelect, Ue as selectClasses };