@septkit/ui 0.0.15 → 0.0.16

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 (82) hide show
  1. package/dist/_virtual/_rolldown/runtime.js +17 -0
  2. package/dist/dropdown/combobox.js +5 -0
  3. package/dist/dropdown/combobox.vue_vue_type_script_setup_true_lang.js +103 -0
  4. package/dist/dropdown/dropdown.js +1 -1
  5. package/dist/dropdown/dropdown.vue_vue_type_script_setup_true_lang.js +8 -8
  6. package/dist/dropdown/index.js +2 -0
  7. package/dist/external/.pnpm/@floating-ui_core@1.7.5/node_modules/@floating-ui/core/dist/floating-ui.core.js +359 -0
  8. package/dist/external/.pnpm/@floating-ui_dom@1.7.6/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +328 -0
  9. package/dist/external/.pnpm/@floating-ui_utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +97 -0
  10. package/dist/external/.pnpm/@floating-ui_utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +106 -0
  11. package/dist/external/.pnpm/@floating-ui_vue@1.1.11_vue@3.5.32_typescript@5.8.3_/node_modules/@floating-ui/vue/dist/floating-ui.vue.js +102 -0
  12. package/dist/external/.pnpm/@vueuse_core@14.2.1_vue@3.5.32_typescript@5.8.3_/node_modules/@vueuse/core/dist/index.js +66 -0
  13. package/dist/external/.pnpm/@vueuse_shared@14.2.1_vue@3.5.32_typescript@5.8.3_/node_modules/@vueuse/shared/dist/index.js +83 -0
  14. package/dist/external/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js +46 -0
  15. package/dist/external/.pnpm/defu@6.1.7/node_modules/defu/dist/defu.js +22 -0
  16. package/dist/external/.pnpm/lucide-vue-next@1.0.0_vue@3.5.32_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/check.js +8 -0
  17. package/dist/external/.pnpm/lucide-vue-next@1.0.0_vue@3.5.32_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/chevron-down.js +8 -0
  18. package/dist/external/.pnpm/ohash@2.0.11/node_modules/ohash/dist/shared/ohash.D__AXeF1.js +106 -0
  19. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Collection/Collection.js +62 -0
  20. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Combobox/ComboboxAnchor.js +41 -0
  21. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Combobox/ComboboxContent.js +134 -0
  22. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Combobox/ComboboxContentImpl.js +192 -0
  23. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Combobox/ComboboxEmpty.js +26 -0
  24. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Combobox/ComboboxGroup.js +6 -0
  25. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Combobox/ComboboxInput.js +115 -0
  26. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Combobox/ComboboxItem.js +64 -0
  27. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Combobox/ComboboxItemIndicator.js +26 -0
  28. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Combobox/ComboboxRoot.js +213 -0
  29. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Combobox/ComboboxTrigger.js +55 -0
  30. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Combobox/ComboboxViewport.js +51 -0
  31. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/ConfigProvider/ConfigProvider.js +6 -0
  32. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/DismissableLayer/DismissableLayer.js +80 -0
  33. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/DismissableLayer/utils.js +62 -0
  34. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/FocusScope/FocusScope.js +109 -0
  35. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/FocusScope/stack.js +22 -0
  36. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/FocusScope/utils.js +45 -0
  37. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Listbox/ListboxContent.js +65 -0
  38. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Listbox/ListboxFilter.js +84 -0
  39. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Listbox/ListboxItem.js +81 -0
  40. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Listbox/ListboxItemIndicator.js +33 -0
  41. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Listbox/ListboxRoot.js +268 -0
  42. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Listbox/utils.js +10 -0
  43. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Popper/PopperAnchor.js +37 -0
  44. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Popper/PopperContent.js +225 -0
  45. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Popper/PopperRoot.js +16 -0
  46. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Popper/utils.js +27 -0
  47. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Presence/Presence.js +39 -0
  48. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Presence/usePresence.js +58 -0
  49. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Primitive/Primitive.js +27 -0
  50. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Primitive/Slot.js +23 -0
  51. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Primitive/usePrimitiveElement.js +12 -0
  52. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/RovingFocus/utils.js +20 -0
  53. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/VisuallyHidden/VisuallyHidden.js +57 -0
  54. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/VisuallyHidden/VisuallyHiddenInput.js +65 -0
  55. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/VisuallyHidden/VisuallyHiddenInputBubble.js +55 -0
  56. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/shared/arrays.js +10 -0
  57. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/shared/createContext.js +12 -0
  58. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/shared/getActiveElement.js +9 -0
  59. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/shared/handleAndDispatchCustomEvent.js +11 -0
  60. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/shared/nullish.js +6 -0
  61. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/shared/renderSlotFragments.js +7 -0
  62. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/shared/useBodyScrollLock.js +63 -0
  63. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/shared/useDirection.js +9 -0
  64. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/shared/useEmitAsProps.js +10 -0
  65. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/shared/useFilter.js +24 -0
  66. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/shared/useFocusGuards.js +19 -0
  67. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/shared/useFormControl.js +8 -0
  68. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/shared/useForwardExpose.js +50 -0
  69. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/shared/useForwardProps.js +19 -0
  70. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/shared/useForwardPropsEmits.js +13 -0
  71. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/shared/useHideOthers.js +18 -0
  72. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/shared/useId.js +11 -0
  73. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/shared/useKbd.js +41 -0
  74. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/shared/useNonce.js +9 -0
  75. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/shared/useSize.js +33 -0
  76. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/shared/useStateMachine.js +16 -0
  77. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/shared/useTypeahead.js +33 -0
  78. package/dist/external/.pnpm/vue-demi@0.14.10_vue@3.5.32_typescript@5.8.3_/node_modules/vue-demi/lib/index.js +28 -0
  79. package/dist/index.d.ts +52 -1
  80. package/dist/index.js +4 -2
  81. package/dist/ui.css +1 -1
  82. package/package.json +2 -1
@@ -0,0 +1,17 @@
1
+ //#region \0rolldown/runtime.js
2
+ var e = Object.defineProperty, t = Object.getOwnPropertyDescriptor, n = Object.getOwnPropertyNames, r = Object.prototype.hasOwnProperty, i = (t, n) => {
3
+ let r = {};
4
+ for (var i in t) e(r, i, {
5
+ get: t[i],
6
+ enumerable: !0
7
+ });
8
+ return n || e(r, Symbol.toStringTag, { value: "Module" }), r;
9
+ }, a = (i, a, o, s) => {
10
+ if (a && typeof a == "object" || typeof a == "function") for (var c = n(a), l = 0, u = c.length, d; l < u; l++) d = c[l], !r.call(i, d) && d !== o && e(i, d, {
11
+ get: ((e) => a[e]).bind(null, d),
12
+ enumerable: !(s = t(a, d)) || s.enumerable
13
+ });
14
+ return i;
15
+ }, o = (e, t, n) => (a(e, t, "default"), n && a(n, t, "default"));
16
+ //#endregion
17
+ export { i as __exportAll, o as __reExport };
@@ -0,0 +1,5 @@
1
+ import e from "./combobox.vue_vue_type_script_setup_true_lang.js";
2
+ //#region lib/dropdown/combobox.vue
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -0,0 +1,103 @@
1
+ import { ComboboxRoot_default as e } from "../external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Combobox/ComboboxRoot.js";
2
+ import { ComboboxAnchor_default as t } from "../external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Combobox/ComboboxAnchor.js";
3
+ import { ComboboxContent_default as n } from "../external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Combobox/ComboboxContent.js";
4
+ import { ComboboxEmpty_default as r } from "../external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Combobox/ComboboxEmpty.js";
5
+ import { ComboboxInput_default as i } from "../external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Combobox/ComboboxInput.js";
6
+ import { ComboboxItem_default as a } from "../external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Combobox/ComboboxItem.js";
7
+ import { ComboboxItemIndicator_default as o } from "../external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Combobox/ComboboxItemIndicator.js";
8
+ import { ComboboxTrigger_default as s } from "../external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Combobox/ComboboxTrigger.js";
9
+ import { ComboboxViewport_default as c } from "../external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Combobox/ComboboxViewport.js";
10
+ import { Check as l } from "../external/.pnpm/lucide-vue-next@1.0.0_vue@3.5.32_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/check.js";
11
+ import { ChevronDown as u } from "../external/.pnpm/lucide-vue-next@1.0.0_vue@3.5.32_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/chevron-down.js";
12
+ import { Fragment as d, computed as f, createBlock as p, createElementBlock as m, createElementVNode as h, createTextVNode as g, createVNode as _, defineComponent as v, mergeModels as y, normalizeClass as b, openBlock as x, renderList as S, renderSlot as C, toDisplayString as w, unref as T, useModel as E, withCtx as D } from "vue";
13
+ //#region lib/dropdown/combobox.vue?vue&type=script&setup=true&lang.ts
14
+ var O = { class: "text-xs" }, k = /* @__PURE__ */ v({
15
+ __name: "combobox",
16
+ props: /* @__PURE__ */ y({
17
+ options: {},
18
+ displayValue: {},
19
+ placeholder: {},
20
+ emptyText: {},
21
+ color: { default: "primary" },
22
+ variant: {},
23
+ size: { default: "md" },
24
+ disabled: { type: Boolean }
25
+ }, {
26
+ modelValue: { default: null },
27
+ modelModifiers: {}
28
+ }),
29
+ emits: ["update:modelValue"],
30
+ setup(v) {
31
+ let y = v, k = E(v, "modelValue"), A = f(() => ({
32
+ "input-neutral": y.color === "neutral",
33
+ "input-primary": y.color === "primary",
34
+ "input-secondary": y.color === "secondary",
35
+ "input-accent": y.color === "accent",
36
+ "input-info": y.color === "info",
37
+ "input-success": y.color === "success",
38
+ "input-warning": y.color === "warning",
39
+ "input-error": y.color === "error",
40
+ "input-ghost": y.variant === "ghost",
41
+ "input-bordered": y.variant === "bordered",
42
+ "input-soft": y.variant === "soft",
43
+ "input-dash": y.variant === "dash",
44
+ "input-xs": y.size === "xs",
45
+ "input-sm": y.size === "sm",
46
+ "input-md": y.size === "md",
47
+ "input-lg": y.size === "lg",
48
+ "input-xl": y.size === "xl"
49
+ }));
50
+ function j(e, t) {
51
+ return e.filter((e) => y.displayValue(e).toLowerCase().includes(t.toLowerCase()));
52
+ }
53
+ return (f, y) => (x(), p(T(e), {
54
+ class: "dropdown w-full",
55
+ modelValue: k.value,
56
+ "onUpdate:modelValue": y[0] ||= (e) => k.value = e,
57
+ "filter-function": j,
58
+ disabled: v.disabled
59
+ }, {
60
+ default: D(() => [_(T(t), { class: b(["input w-full flex items-center gap-2", A.value]) }, {
61
+ default: D(() => [_(T(i), {
62
+ class: "input-ghost outline-none w-full",
63
+ placeholder: v.placeholder ?? "Search...",
64
+ "display-value": (e) => v.displayValue(e)
65
+ }, null, 8, ["placeholder", "display-value"]), _(T(s), null, {
66
+ default: D(() => [_(T(u), { class: "h-4 w-4 text-base-content/60 cursor-pointer" })]),
67
+ _: 1
68
+ })]),
69
+ _: 1
70
+ }, 8, ["class"]), _(T(n), {
71
+ position: "popper",
72
+ "side-offset": 4,
73
+ class: "bg-base-100 rounded-box shadow-md z-50 overflow-hidden",
74
+ style: {
75
+ width: "var(--reka-popper-anchor-width)",
76
+ minWidth: "12rem"
77
+ }
78
+ }, {
79
+ default: D(() => [_(T(c), { class: "max-h-52 overflow-y-auto p-1" }, {
80
+ default: D(() => [_(T(r), { class: "text-base-content/60 text-xs text-center py-2" }, {
81
+ default: D(() => [g(w(v.emptyText ?? "No results found"), 1)]),
82
+ _: 1
83
+ }), (x(!0), m(d, null, S(v.options, (e) => (x(), p(T(a), {
84
+ key: v.displayValue(e),
85
+ value: e,
86
+ class: "cursor-pointer text-xs leading-none w-full flex items-center gap-2 rounded px-2 h-7 pl-7 relative select-none data-disabled:opacity-40 data-disabled:pointer-events-none data-highlighted:outline-none data-highlighted:bg-primary data-highlighted:text-primary-content"
87
+ }, {
88
+ default: D(() => [_(T(o), { class: "absolute left-0 w-6.25 inline-flex items-center justify-center" }, {
89
+ default: D(() => [_(T(l), { class: "h-3 w-3" })]),
90
+ _: 1
91
+ }), C(f.$slots, "default", { item: e }, () => [h("span", O, w(v.displayValue(e)), 1)])]),
92
+ _: 2
93
+ }, 1032, ["value"]))), 128))]),
94
+ _: 3
95
+ })]),
96
+ _: 3
97
+ })]),
98
+ _: 3
99
+ }, 8, ["modelValue", "disabled"]));
100
+ }
101
+ });
102
+ //#endregion
103
+ export { k as default };
@@ -2,6 +2,6 @@ import e from "./dropdown.vue_vue_type_script_setup_true_lang.js";
2
2
  /* empty css */
3
3
  import t from "../_virtual/_plugin-vue_export-helper.js";
4
4
  //#region lib/dropdown/dropdown.vue
5
- var n = /* @__PURE__ */ t(e, [["__scopeId", "data-v-0a93d691"]]);
5
+ var n = /* @__PURE__ */ t(e, [["__scopeId", "data-v-aa959afa"]]);
6
6
  //#endregion
7
7
  export { n as default };
@@ -4,12 +4,12 @@ import { computed as t, createElementBlock as n, createElementVNode as r, define
4
4
  var p = ["open"], m = /* @__PURE__ */ i({
5
5
  __name: "dropdown",
6
6
  props: {
7
- color: {},
8
- variant: {},
9
- size: {},
7
+ color: { default: "neutral" },
8
+ variant: { default: "ghost" },
9
+ size: { default: "sm" },
10
10
  active: { type: Boolean },
11
11
  disabled: { type: Boolean },
12
- modifier: {},
12
+ modifier: { default: "wide" },
13
13
  background: {},
14
14
  id: {}
15
15
  },
@@ -27,7 +27,7 @@ var p = ["open"], m = /* @__PURE__ */ i({
27
27
  "bg-base-100": g.background === "base",
28
28
  "bg-white": !g.background
29
29
  })), x = t(() => ({
30
- "btn-neutral": g.color === "neutral" || !g.color,
30
+ "btn-neutral": g.color === "neutral",
31
31
  "btn-primary": g.color === "primary",
32
32
  "btn-secondary": g.color === "secondary",
33
33
  "btn-accent": g.color === "accent",
@@ -39,16 +39,16 @@ var p = ["open"], m = /* @__PURE__ */ i({
39
39
  "btn-outline": g.variant === "outline",
40
40
  "btn-dash": g.variant === "dash",
41
41
  "btn-soft": g.variant === "soft",
42
- "btn-ghost": g.variant === "ghost" || !g.variant,
42
+ "btn-ghost": g.variant === "ghost",
43
43
  "btn-link": g.variant === "link"
44
44
  })), C = t(() => ({
45
45
  "btn-xs": g.size === "xs",
46
- "btn-sm": g.size === "sm" || !g.size,
46
+ "btn-sm": g.size === "sm",
47
47
  "btn-md": g.size === "md",
48
48
  "btn-lg": g.size === "lg",
49
49
  "btn-xl": g.size === "xl"
50
50
  })), w = t(() => ({
51
- "btn-wide": g.modifier === "wide" || !g.modifier,
51
+ "btn-wide": g.modifier === "wide",
52
52
  "btn-block": g.modifier === "block",
53
53
  "btn-square": g.modifier === "square",
54
54
  "btn-circle": g.modifier === "circle"
@@ -0,0 +1,2 @@
1
+ import "./dropdown.js";
2
+ import "./combobox.js";
@@ -0,0 +1,359 @@
1
+ import { clamp as e, evaluate as t, getAlignment as n, getAlignmentAxis as r, getAlignmentSides as i, getAxisLength as a, getExpandedPlacements as o, getOppositeAxis as s, getOppositeAxisPlacements as c, getOppositePlacement as l, getPaddingObject as u, getSide as d, getSideAxis as f, max as p, min as m, rectToClientRect as h, sides as g } from "../../../../../@floating-ui_utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.js";
2
+ //#region node_modules/.pnpm/@floating-ui+core@1.7.5/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
3
+ function _(e, t, i) {
4
+ let { reference: o, floating: s } = e, c = f(t), l = r(t), u = a(l), p = d(t), m = c === "y", h = o.x + o.width / 2 - s.width / 2, g = o.y + o.height / 2 - s.height / 2, _ = o[u] / 2 - s[u] / 2, v;
5
+ switch (p) {
6
+ case "top":
7
+ v = {
8
+ x: h,
9
+ y: o.y - s.height
10
+ };
11
+ break;
12
+ case "bottom":
13
+ v = {
14
+ x: h,
15
+ y: o.y + o.height
16
+ };
17
+ break;
18
+ case "right":
19
+ v = {
20
+ x: o.x + o.width,
21
+ y: g
22
+ };
23
+ break;
24
+ case "left":
25
+ v = {
26
+ x: o.x - s.width,
27
+ y: g
28
+ };
29
+ break;
30
+ default: v = {
31
+ x: o.x,
32
+ y: o.y
33
+ };
34
+ }
35
+ switch (n(t)) {
36
+ case "start":
37
+ v[l] -= _ * (i && m ? -1 : 1);
38
+ break;
39
+ case "end":
40
+ v[l] += _ * (i && m ? -1 : 1);
41
+ break;
42
+ }
43
+ return v;
44
+ }
45
+ async function v(e, n) {
46
+ n === void 0 && (n = {});
47
+ let { x: r, y: i, platform: a, rects: o, elements: s, strategy: c } = e, { boundary: l = "clippingAncestors", rootBoundary: d = "viewport", elementContext: f = "floating", altBoundary: p = !1, padding: m = 0 } = t(n, e), g = u(m), _ = s[p ? f === "floating" ? "reference" : "floating" : f], v = h(await a.getClippingRect({
48
+ element: await (a.isElement == null ? void 0 : a.isElement(_)) ?? !0 ? _ : _.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(s.floating)),
49
+ boundary: l,
50
+ rootBoundary: d,
51
+ strategy: c
52
+ })), y = f === "floating" ? {
53
+ x: r,
54
+ y: i,
55
+ width: o.floating.width,
56
+ height: o.floating.height
57
+ } : o.reference, b = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(s.floating)), x = await (a.isElement == null ? void 0 : a.isElement(b)) && await (a.getScale == null ? void 0 : a.getScale(b)) || {
58
+ x: 1,
59
+ y: 1
60
+ }, S = h(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({
61
+ elements: s,
62
+ rect: y,
63
+ offsetParent: b,
64
+ strategy: c
65
+ }) : y);
66
+ return {
67
+ top: (v.top - S.top + g.top) / x.y,
68
+ bottom: (S.bottom - v.bottom + g.bottom) / x.y,
69
+ left: (v.left - S.left + g.left) / x.x,
70
+ right: (S.right - v.right + g.right) / x.x
71
+ };
72
+ }
73
+ var y = 50, b = async (e, t, n) => {
74
+ let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
75
+ ...o,
76
+ detectOverflow: v
77
+ }, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
78
+ reference: e,
79
+ floating: t,
80
+ strategy: i
81
+ }), { x: u, y: d } = _(l, r, c), f = r, p = 0, m = {};
82
+ for (let n = 0; n < a.length; n++) {
83
+ let h = a[n];
84
+ if (!h) continue;
85
+ let { name: g, fn: v } = h, { x: b, y: x, data: S, reset: C } = await v({
86
+ x: u,
87
+ y: d,
88
+ initialPlacement: r,
89
+ placement: f,
90
+ strategy: i,
91
+ middlewareData: m,
92
+ rects: l,
93
+ platform: s,
94
+ elements: {
95
+ reference: e,
96
+ floating: t
97
+ }
98
+ });
99
+ u = b ?? u, d = x ?? d, m[g] = {
100
+ ...m[g],
101
+ ...S
102
+ }, C && p < y && (p++, typeof C == "object" && (C.placement && (f = C.placement), C.rects && (l = C.rects === !0 ? await o.getElementRects({
103
+ reference: e,
104
+ floating: t,
105
+ strategy: i
106
+ }) : C.rects), {x: u, y: d} = _(l, f, c)), n = -1);
107
+ }
108
+ return {
109
+ x: u,
110
+ y: d,
111
+ placement: f,
112
+ strategy: i,
113
+ middlewareData: m
114
+ };
115
+ }, x = (i) => ({
116
+ name: "arrow",
117
+ options: i,
118
+ async fn(o) {
119
+ let { x: s, y: c, placement: l, rects: d, platform: f, elements: p, middlewareData: h } = o, { element: g, padding: _ = 0 } = t(i, o) || {};
120
+ if (g == null) return {};
121
+ let v = u(_), y = {
122
+ x: s,
123
+ y: c
124
+ }, b = r(l), x = a(b), S = await f.getDimensions(g), C = b === "y", w = C ? "top" : "left", T = C ? "bottom" : "right", E = C ? "clientHeight" : "clientWidth", D = d.reference[x] + d.reference[b] - y[b] - d.floating[x], O = y[b] - d.reference[b], k = await (f.getOffsetParent == null ? void 0 : f.getOffsetParent(g)), A = k ? k[E] : 0;
125
+ (!A || !await (f.isElement == null ? void 0 : f.isElement(k))) && (A = p.floating[E] || d.floating[x]);
126
+ let j = D / 2 - O / 2, M = A / 2 - S[x] / 2 - 1, N = m(v[w], M), P = m(v[T], M), F = N, I = A - S[x] - P, L = A / 2 - S[x] / 2 + j, R = e(F, L, I), z = !h.arrow && n(l) != null && L !== R && d.reference[x] / 2 - (L < F ? N : P) - S[x] / 2 < 0, B = z ? L < F ? L - F : L - I : 0;
127
+ return {
128
+ [b]: y[b] + B,
129
+ data: {
130
+ [b]: R,
131
+ centerOffset: L - R - B,
132
+ ...z && { alignmentOffset: B }
133
+ },
134
+ reset: z
135
+ };
136
+ }
137
+ }), S = function(e) {
138
+ return e === void 0 && (e = {}), {
139
+ name: "flip",
140
+ options: e,
141
+ async fn(n) {
142
+ var r;
143
+ let { placement: a, middlewareData: s, rects: u, initialPlacement: p, platform: m, elements: h } = n, { mainAxis: g = !0, crossAxis: _ = !0, fallbackPlacements: v, fallbackStrategy: y = "bestFit", fallbackAxisSideDirection: b = "none", flipAlignment: x = !0, ...S } = t(e, n);
144
+ if ((r = s.arrow) != null && r.alignmentOffset) return {};
145
+ let C = d(a), w = f(p), T = d(p) === p, E = await (m.isRTL == null ? void 0 : m.isRTL(h.floating)), D = v || (T || !x ? [l(p)] : o(p)), O = b !== "none";
146
+ !v && O && D.push(...c(p, x, b, E));
147
+ let k = [p, ...D], A = await m.detectOverflow(n, S), j = [], M = s.flip?.overflows || [];
148
+ if (g && j.push(A[C]), _) {
149
+ let e = i(a, u, E);
150
+ j.push(A[e[0]], A[e[1]]);
151
+ }
152
+ if (M = [...M, {
153
+ placement: a,
154
+ overflows: j
155
+ }], !j.every((e) => e <= 0)) {
156
+ let e = (s.flip?.index || 0) + 1, t = k[e];
157
+ if (t && (!(_ === "alignment" && w !== f(t)) || M.every((e) => f(e.placement) === w ? e.overflows[0] > 0 : !0))) return {
158
+ data: {
159
+ index: e,
160
+ overflows: M
161
+ },
162
+ reset: { placement: t }
163
+ };
164
+ let n = M.filter((e) => e.overflows[0] <= 0).sort((e, t) => e.overflows[1] - t.overflows[1])[0]?.placement;
165
+ if (!n) switch (y) {
166
+ case "bestFit": {
167
+ let e = M.filter((e) => {
168
+ if (O) {
169
+ let t = f(e.placement);
170
+ return t === w || t === "y";
171
+ }
172
+ return !0;
173
+ }).map((e) => [e.placement, e.overflows.filter((e) => e > 0).reduce((e, t) => e + t, 0)]).sort((e, t) => e[1] - t[1])[0]?.[0];
174
+ e && (n = e);
175
+ break;
176
+ }
177
+ case "initialPlacement":
178
+ n = p;
179
+ break;
180
+ }
181
+ if (a !== n) return { reset: { placement: n } };
182
+ }
183
+ return {};
184
+ }
185
+ };
186
+ };
187
+ function C(e, t) {
188
+ return {
189
+ top: e.top - t.height,
190
+ right: e.right - t.width,
191
+ bottom: e.bottom - t.height,
192
+ left: e.left - t.width
193
+ };
194
+ }
195
+ function w(e) {
196
+ return g.some((t) => e[t] >= 0);
197
+ }
198
+ var T = function(e) {
199
+ return e === void 0 && (e = {}), {
200
+ name: "hide",
201
+ options: e,
202
+ async fn(n) {
203
+ let { rects: r, platform: i } = n, { strategy: a = "referenceHidden", ...o } = t(e, n);
204
+ switch (a) {
205
+ case "referenceHidden": {
206
+ let e = C(await i.detectOverflow(n, {
207
+ ...o,
208
+ elementContext: "reference"
209
+ }), r.reference);
210
+ return { data: {
211
+ referenceHiddenOffsets: e,
212
+ referenceHidden: w(e)
213
+ } };
214
+ }
215
+ case "escaped": {
216
+ let e = C(await i.detectOverflow(n, {
217
+ ...o,
218
+ altBoundary: !0
219
+ }), r.floating);
220
+ return { data: {
221
+ escapedOffsets: e,
222
+ escaped: w(e)
223
+ } };
224
+ }
225
+ default: return {};
226
+ }
227
+ }
228
+ };
229
+ }, E = /* @__PURE__ */ new Set(["left", "top"]);
230
+ async function D(e, r) {
231
+ let { placement: i, platform: a, elements: o } = e, s = await (a.isRTL == null ? void 0 : a.isRTL(o.floating)), c = d(i), l = n(i), u = f(i) === "y", p = E.has(c) ? -1 : 1, m = s && u ? -1 : 1, h = t(r, e), { mainAxis: g, crossAxis: _, alignmentAxis: v } = typeof h == "number" ? {
232
+ mainAxis: h,
233
+ crossAxis: 0,
234
+ alignmentAxis: null
235
+ } : {
236
+ mainAxis: h.mainAxis || 0,
237
+ crossAxis: h.crossAxis || 0,
238
+ alignmentAxis: h.alignmentAxis
239
+ };
240
+ return l && typeof v == "number" && (_ = l === "end" ? v * -1 : v), u ? {
241
+ x: _ * m,
242
+ y: g * p
243
+ } : {
244
+ x: g * p,
245
+ y: _ * m
246
+ };
247
+ }
248
+ var O = function(e) {
249
+ return e === void 0 && (e = 0), {
250
+ name: "offset",
251
+ options: e,
252
+ async fn(t) {
253
+ var n;
254
+ let { x: r, y: i, placement: a, middlewareData: o } = t, s = await D(t, e);
255
+ return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
256
+ x: r + s.x,
257
+ y: i + s.y,
258
+ data: {
259
+ ...s,
260
+ placement: a
261
+ }
262
+ };
263
+ }
264
+ };
265
+ }, k = function(n) {
266
+ return n === void 0 && (n = {}), {
267
+ name: "shift",
268
+ options: n,
269
+ async fn(r) {
270
+ let { x: i, y: a, placement: o, platform: c } = r, { mainAxis: l = !0, crossAxis: u = !1, limiter: p = { fn: (e) => {
271
+ let { x: t, y: n } = e;
272
+ return {
273
+ x: t,
274
+ y: n
275
+ };
276
+ } }, ...m } = t(n, r), h = {
277
+ x: i,
278
+ y: a
279
+ }, g = await c.detectOverflow(r, m), _ = f(d(o)), v = s(_), y = h[v], b = h[_];
280
+ if (l) {
281
+ let t = v === "y" ? "top" : "left", n = v === "y" ? "bottom" : "right", r = y + g[t], i = y - g[n];
282
+ y = e(r, y, i);
283
+ }
284
+ if (u) {
285
+ let t = _ === "y" ? "top" : "left", n = _ === "y" ? "bottom" : "right", r = b + g[t], i = b - g[n];
286
+ b = e(r, b, i);
287
+ }
288
+ let x = p.fn({
289
+ ...r,
290
+ [v]: y,
291
+ [_]: b
292
+ });
293
+ return {
294
+ ...x,
295
+ data: {
296
+ x: x.x - i,
297
+ y: x.y - a,
298
+ enabled: {
299
+ [v]: l,
300
+ [_]: u
301
+ }
302
+ }
303
+ };
304
+ }
305
+ };
306
+ }, A = function(e) {
307
+ return e === void 0 && (e = {}), {
308
+ options: e,
309
+ fn(n) {
310
+ let { x: r, y: i, placement: a, rects: o, middlewareData: c } = n, { offset: l = 0, mainAxis: u = !0, crossAxis: p = !0 } = t(e, n), m = {
311
+ x: r,
312
+ y: i
313
+ }, h = f(a), g = s(h), _ = m[g], v = m[h], y = t(l, n), b = typeof y == "number" ? {
314
+ mainAxis: y,
315
+ crossAxis: 0
316
+ } : {
317
+ mainAxis: 0,
318
+ crossAxis: 0,
319
+ ...y
320
+ };
321
+ if (u) {
322
+ let e = g === "y" ? "height" : "width", t = o.reference[g] - o.floating[e] + b.mainAxis, n = o.reference[g] + o.reference[e] - b.mainAxis;
323
+ _ < t ? _ = t : _ > n && (_ = n);
324
+ }
325
+ if (p) {
326
+ let e = g === "y" ? "width" : "height", t = E.has(d(a)), n = o.reference[h] - o.floating[e] + (t && c.offset?.[h] || 0) + (t ? 0 : b.crossAxis), r = o.reference[h] + o.reference[e] + (t ? 0 : c.offset?.[h] || 0) - (t ? b.crossAxis : 0);
327
+ v < n ? v = n : v > r && (v = r);
328
+ }
329
+ return {
330
+ [g]: _,
331
+ [h]: v
332
+ };
333
+ }
334
+ };
335
+ }, j = function(e) {
336
+ return e === void 0 && (e = {}), {
337
+ name: "size",
338
+ options: e,
339
+ async fn(r) {
340
+ var i, a;
341
+ let { placement: o, rects: s, platform: c, elements: l } = r, { apply: u = () => {}, ...h } = t(e, r), g = await c.detectOverflow(r, h), _ = d(o), v = n(o), y = f(o) === "y", { width: b, height: x } = s.floating, S, C;
342
+ _ === "top" || _ === "bottom" ? (S = _, C = v === (await (c.isRTL == null ? void 0 : c.isRTL(l.floating)) ? "start" : "end") ? "left" : "right") : (C = _, S = v === "end" ? "top" : "bottom");
343
+ let w = x - g.top - g.bottom, T = b - g.left - g.right, E = m(x - g[S], w), D = m(b - g[C], T), O = !r.middlewareData.shift, k = E, A = D;
344
+ if ((i = r.middlewareData.shift) != null && i.enabled.x && (A = T), (a = r.middlewareData.shift) != null && a.enabled.y && (k = w), O && !v) {
345
+ let e = p(g.left, 0), t = p(g.right, 0), n = p(g.top, 0), r = p(g.bottom, 0);
346
+ y ? A = b - 2 * (e !== 0 || t !== 0 ? e + t : p(g.left, g.right)) : k = x - 2 * (n !== 0 || r !== 0 ? n + r : p(g.top, g.bottom));
347
+ }
348
+ await u({
349
+ ...r,
350
+ availableWidth: A,
351
+ availableHeight: k
352
+ });
353
+ let j = await c.getDimensions(l.floating);
354
+ return b !== j.width || x !== j.height ? { reset: { rects: !0 } } : {};
355
+ }
356
+ };
357
+ };
358
+ //#endregion
359
+ export { x as arrow, b as computePosition, S as flip, T as hide, A as limitShift, O as offset, k as shift, j as size };