@indielayer/ui 1.5.1 → 1.5.2

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 (52) hide show
  1. package/docs/components/toolbar/Toolbar.vue +2 -9
  2. package/docs/pages/component/form/usage.vue +16 -19
  3. package/exports/nuxt.plugin.js +9 -2
  4. package/lib/components/accordion/AccordionItem.vue.js +25 -24
  5. package/lib/components/accordion/theme/AccordionItem.base.theme.js +7 -7
  6. package/lib/components/alert/Alert.vue2.js +4 -3
  7. package/lib/components/checkbox/theme/Checkbox.base.theme.js +35 -35
  8. package/lib/components/inputFooter/theme/InputFooter.base.theme.js +1 -1
  9. package/lib/components/label/theme/Label.base.theme.js +1 -1
  10. package/lib/components/notifications/Notifications.vue.js +1 -0
  11. package/lib/components/popover/Popover.vue.d.ts +7 -25
  12. package/lib/components/popover/Popover.vue.js +12 -12
  13. package/lib/components/radio/theme/Radio.base.theme.js +27 -27
  14. package/lib/components/scroll/Scroll.vue2.js +4 -4
  15. package/lib/components/stepper/Stepper.vue.js +35 -34
  16. package/lib/components/tab/Tab.vue.js +7 -6
  17. package/lib/components/table/Table.vue.js +16 -15
  18. package/lib/components/tooltip/Tooltip.vue.js +1 -1
  19. package/lib/create.d.ts +5 -1
  20. package/lib/create.js +18 -15
  21. package/lib/index.js +1 -1
  22. package/lib/index.umd.js +4 -3
  23. package/lib/node_modules/.pnpm/{floating-vue@5.2.0_vue@3.3.9 → floating-vue@5.2.2_vue@3.3.9}/node_modules/floating-vue/dist/floating-vue.js +208 -183
  24. package/lib/nuxt.plugin.js +9 -2
  25. package/lib/themes/base/index.js +2 -2
  26. package/lib/themes/base/styles.d.ts +2 -0
  27. package/{src/themes/base/styles.css → lib/themes/base/styles.js} +5 -1
  28. package/lib/themes/carbon/index.js +2 -2
  29. package/lib/themes/carbon/styles.d.ts +2 -0
  30. package/lib/themes/carbon/{styles.css.js → styles.js} +2 -1
  31. package/lib/version.d.ts +1 -1
  32. package/lib/version.js +1 -1
  33. package/package.json +2 -2
  34. package/src/components/accordion/AccordionItem.vue +1 -0
  35. package/src/components/accordion/theme/AccordionItem.base.theme.ts +2 -2
  36. package/src/components/alert/Alert.vue +1 -1
  37. package/src/components/checkbox/theme/Checkbox.base.theme.ts +5 -3
  38. package/src/components/inputFooter/theme/InputFooter.base.theme.ts +1 -1
  39. package/src/components/label/theme/Label.base.theme.ts +1 -1
  40. package/src/components/notifications/Notifications.vue +1 -0
  41. package/src/components/popover/Popover.vue +2 -2
  42. package/src/components/radio/theme/Radio.base.theme.ts +5 -3
  43. package/src/components/scroll/Scroll.vue +1 -1
  44. package/src/components/stepper/Stepper.vue +1 -0
  45. package/src/components/tab/Tab.vue +1 -0
  46. package/src/components/table/Table.vue +1 -1
  47. package/src/create.ts +11 -4
  48. package/src/themes/base/index.ts +2 -2
  49. package/{lib/themes/base/styles.css.js → src/themes/base/styles.ts} +2 -5
  50. package/src/themes/carbon/index.ts +2 -2
  51. package/src/themes/carbon/{styles.css → styles.ts} +2 -0
  52. package/src/version.ts +1 -1
@@ -25,7 +25,7 @@ const isDev = import.meta.env.DEV
25
25
 
26
26
  <template>
27
27
  <x-container fluid class="bg-white dark:bg-secondary-800">
28
- <div class="flex justify-items-center items-center py-2">
28
+ <div class="flex justify-items-center items-center py-2 min-h-[54px]">
29
29
  <a href="/" class="flex items-center">
30
30
  <img src="@/assets/images/logo_mini.svg" width="26" alt="Indielayer"/>
31
31
  <x-divider vertical class="!h-[24px] mx-3"/>
@@ -40,14 +40,7 @@ const isDev = import.meta.env.DEV
40
40
  <x-spacer/>
41
41
 
42
42
  <div class="flex items-center font-semibold text-sm">
43
- <x-select
44
- v-if="isDev"
45
- v-model="selected"
46
- :options="options"
47
- hide-footer
48
- size="sm"
49
- />
50
- <x-divider v-if="isDev" vertical style="height: 10px;" class="px-2"/>
43
+
51
44
  <div class="tracking-wide text-xs">v{{ version }}</div>
52
45
  <x-divider vertical style="height: 10px;" class="px-2 hidden sm:block"/>
53
46
  <x-link
@@ -33,25 +33,22 @@ function onSubmit(isValid: string) {
33
33
 
34
34
  <template>
35
35
  <x-form title="Edit user information" description="Almost all fields are required" @submit="onSubmit">
36
- <div class="grid grid-cols-2 gap-4">
37
- <x-input
38
- v-model="email"
39
- :rules="[rules.isRequired, rules.isEmail]"
40
- name="email"
41
- label="Email"
42
- placeholder="Enter your email"
43
- />
44
- <x-input
45
- v-model="password"
46
- type="password"
47
- :rules="[rules.isRequired]"
48
- name="password"
49
- label="Password"
50
- placeholder="Enter your password"
51
- helper="Must be between 8 and 10 characters"
52
- />
53
- </div>
54
-
36
+ <x-input
37
+ v-model="email"
38
+ :rules="[rules.isRequired, rules.isEmail]"
39
+ name="email"
40
+ label="Email"
41
+ placeholder="Enter your email"
42
+ />
43
+ <x-input
44
+ v-model="password"
45
+ type="password"
46
+ :rules="[rules.isRequired]"
47
+ name="password"
48
+ label="Password"
49
+ placeholder="Enter your password"
50
+ helper="Must be between 8 and 10 characters"
51
+ />
55
52
  <x-textarea
56
53
  v-model="description"
57
54
  name="description"
@@ -1,8 +1,15 @@
1
1
  import { defineNuxtPlugin } from '#app'
2
- import create from '../src/create'
2
+ import { BaseTheme, injectIconsKey, injectOptionsKey, injectThemeKey, createUI } from '../src'
3
3
 
4
4
  export default defineNuxtPlugin((nuxtApp) => {
5
- const UI = create(nuxtApp.$config.public?.indielayerOptions)
5
+ const UI = createUI({
6
+ ...nuxtApp.$config.public?.indielayerOptions,
7
+ theme: BaseTheme,
8
+ injectIconsKey,
9
+ injectOptionsKey,
10
+ injectThemeKey,
11
+
12
+ })
6
13
 
7
14
  nuxtApp.vueApp.use(UI)
8
15
  })
@@ -27,13 +27,13 @@ const R = { class: "flex-1 overflow-hidden" }, U = {
27
27
  type: String,
28
28
  default: "right"
29
29
  }
30
- }, oe = {
30
+ }, te = {
31
31
  name: "XAccordionItem",
32
32
  validators: {
33
33
  iconAlign: Z
34
34
  }
35
35
  }, ae = /* @__PURE__ */ V({
36
- ...oe,
36
+ ...te,
37
37
  props: ee,
38
38
  emits: ["expand"],
39
39
  setup(A, { expose: x, emit: _ }) {
@@ -41,40 +41,40 @@ const R = { class: "flex-1 overflow-hidden" }, U = {
41
41
  isInsideAccordion: !1
42
42
  }), w = z(() => u.iconAlign || n.iconAlign), I = D({
43
43
  iconAlign: w
44
- }), o = m(!n.expanded), t = m(!0);
44
+ }), t = m(!n.expanded), o = m(!0);
45
45
  H(() => n.expanded, () => {
46
- o.value = !n.expanded;
46
+ t.value = !n.expanded;
47
47
  });
48
48
  function B(e) {
49
- t.value && (e.style.height = "0px");
49
+ o.value && (e.style.height = "0px");
50
50
  }
51
51
  function E(e, i) {
52
- t.value ? (e.addEventListener("transitionend", i), setTimeout(() => {
52
+ o.value ? (e.addEventListener("transitionend", i), setTimeout(() => {
53
53
  e.style.height = `${e.scrollHeight}px`;
54
54
  }, 1)) : i();
55
55
  }
56
- function C(e) {
57
- t.value ? e.style.removeProperty("height") : t.value = !0;
56
+ function b(e) {
57
+ o.value ? e.style.removeProperty("height") : o.value = !0;
58
58
  }
59
- function $(e) {
60
- t.value && (e.style.height = `${e.scrollHeight}px`);
59
+ function C(e) {
60
+ o.value && (e.style.height = `${e.scrollHeight}px`);
61
61
  }
62
- function b(e, i) {
63
- t.value ? (e.addEventListener("transitionend", i), setTimeout(() => {
62
+ function $(e, i) {
63
+ o.value ? (e.addEventListener("transitionend", i), setTimeout(() => {
64
64
  e.style.height = "0px";
65
65
  }, 1)) : i();
66
66
  }
67
67
  function S(e) {
68
- t.value ? e.style.removeProperty("height") : t.value = !0;
68
+ o.value ? e.style.removeProperty("height") : o.value = !0;
69
69
  }
70
70
  function p(e = !0) {
71
- t.value = e, o.value = !1;
71
+ o.value = e, t.value = !1;
72
72
  }
73
73
  function L(e = !0) {
74
- t.value = e, o.value = !0;
74
+ o.value = e, t.value = !0;
75
75
  }
76
76
  function f() {
77
- n.disabled || (o.value = !o.value);
77
+ n.disabled || (t.value = !t.value);
78
78
  }
79
79
  function P(e = !0) {
80
80
  p(e), k("expand");
@@ -82,20 +82,21 @@ const R = { class: "flex-1 overflow-hidden" }, U = {
82
82
  const { styles: N, classes: c, className: T } = J("AccordionItem", {}, {
83
83
  ...n,
84
84
  ...I
85
- }, { collapsed: o, isInsideAccordion: u.isInsideAccordion });
85
+ }, { collapsed: t, isInsideAccordion: u.isInsideAccordion });
86
86
  return x({ toggle: f, open: p, close: L }), (e, i) => (a(), v(K(e.tag), {
87
87
  style: M(s(N)),
88
88
  class: l(s(T)),
89
89
  "aria-disabled": e.disabled,
90
- "aria-expanded": o.value ? "false" : "true"
90
+ "aria-expanded": t.value ? "false" : "true"
91
91
  }, {
92
92
  default: h(() => [
93
93
  r("button", {
94
+ type: "button",
94
95
  class: l(s(c).wrapper),
95
96
  onClick: f
96
97
  }, [
97
98
  r("div", R, [
98
- d(e.$slots, "default", { collapsed: o.value })
99
+ d(e.$slots, "default", { collapsed: t.value })
99
100
  ]),
100
101
  e.showIcon ? (a(), g("div", {
101
102
  key: 0,
@@ -111,9 +112,9 @@ const R = { class: "flex-1 overflow-hidden" }, U = {
111
112
  X(q, {
112
113
  onBeforeEnter: B,
113
114
  onEnter: E,
114
- onAfterEnter: C,
115
- onBeforeLeave: $,
116
- onLeave: b,
115
+ onAfterEnter: b,
116
+ onBeforeLeave: C,
117
+ onLeave: $,
117
118
  onAfterLeave: S
118
119
  }, {
119
120
  default: h(() => [
@@ -122,10 +123,10 @@ const R = { class: "flex-1 overflow-hidden" }, U = {
122
123
  }, [
123
124
  d(e.$slots, "content", {
124
125
  expand: P,
125
- collapsed: o.value
126
+ collapsed: t.value
126
127
  })
127
128
  ], 2), [
128
- [G, !o.value]
129
+ [G, !t.value]
129
130
  ])
130
131
  ]),
131
132
  _: 3
@@ -1,16 +1,16 @@
1
- const r = {
1
+ const i = {
2
2
  classes: {
3
- wrapper: ({ props: t, slots: i, data: e }) => {
4
- const s = ["relative flex items-center w-full text-left"];
5
- return e.isInsideAccordion && (i.default && (t.iconAlign === "left" ? s.push("pl-8 pr-4") : s.push("pr-8 pl-4"), s.push("py-2"), t.disabled || s.push("hover:bg-secondary-50 dark:hover:bg-secondary-600")), t.disabled || s.push("cursor-pointer")), s;
3
+ wrapper: ({ props: t, slots: r, data: e }) => {
4
+ const s = ["relative flex items-center w-full text-left rounded"];
5
+ return e.isInsideAccordion && (r.default && (t.iconAlign === "left" ? s.push("pl-8 pr-4") : s.push("pr-8 pl-4"), s.push("py-2"), t.disabled || s.push("hover:bg-secondary-100 dark:hover:bg-secondary-600")), t.disabled || s.push("cursor-pointer")), s;
6
6
  },
7
- icon: ({ props: t, data: i }) => {
7
+ icon: ({ props: t, data: r }) => {
8
8
  const e = ["absolute flex transform transition-transform duration-150"];
9
- return i.collapsed || e.push("rotate-180"), t.disabled && e.push("text-secondary-300"), t.iconAlign === "left" ? e.push("left-2") : e.push("right-2"), e;
9
+ return r.collapsed || e.push("rotate-180"), t.disabled && e.push("text-secondary-300"), t.iconAlign === "left" ? e.push("left-2") : e.push("right-2"), e;
10
10
  },
11
11
  content: "transition-[height] duration-150 overflow-y-hidden"
12
12
  }
13
- }, n = r;
13
+ }, n = i;
14
14
  export {
15
15
  n as default
16
16
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as v, computed as g, openBlock as l, createElementBlock as a, normalizeStyle as k, unref as r, normalizeClass as w, renderSlot as t, createBlock as b, createCommentVNode as i, createElementVNode as n, Fragment as B, createVNode as $ } from "vue";
1
+ import { defineComponent as v, computed as g, openBlock as l, createElementBlock as a, normalizeStyle as k, unref as r, normalizeClass as b, renderSlot as t, createBlock as w, createCommentVNode as i, createElementVNode as n, Fragment as B, createVNode as $ } from "vue";
2
2
  import { useColors as I } from "../../composables/useColors.js";
3
3
  import { useTheme as C } from "../../composables/useTheme.js";
4
4
  import { infoIcon as h, successIcon as N, errorIcon as S, warningIcon as V, closeIcon as z } from "../../common/icons.js";
@@ -24,7 +24,7 @@ const A = /* @__PURE__ */ n("div", { class: "flex-grow" }, null, -1), E = ["aria
24
24
  const o = m, p = g(() => o.type === "info" ? h : o.type === "success" ? N : o.type === "error" ? S : o.type === "warning" ? V : ""), { styles: u, classes: f, className: d } = C("Alert", {}, o);
25
25
  return (e, s) => (l(), a("div", {
26
26
  style: k(r(u)),
27
- class: w([
27
+ class: b([
28
28
  r(d),
29
29
  e.$style.alert,
30
30
  e.glow ? e.$style["alert--glow"] : "",
@@ -32,7 +32,7 @@ const A = /* @__PURE__ */ n("div", { class: "flex-grow" }, null, -1), E = ["aria
32
32
  ])
33
33
  }, [
34
34
  t(e.$slots, "icon", {}, () => [
35
- e.type ? (l(), b(c, {
35
+ e.type ? (l(), w(c, {
36
36
  key: 0,
37
37
  icon: p.value,
38
38
  class: "text-[color:var(--x-alert-icon)] dark:text-[color:var(--x-alert-dark-icon)]"
@@ -44,6 +44,7 @@ const A = /* @__PURE__ */ n("div", { class: "flex-grow" }, null, -1), E = ["aria
44
44
  e.removable ? (l(), a(B, { key: 0 }, [
45
45
  A,
46
46
  n("button", {
47
+ type: "button",
47
48
  class: "shrink-0",
48
49
  "aria-label": e.closeLabel,
49
50
  onClick: s[0] || (s[0] = (y) => e.$emit("remove", y))
@@ -1,59 +1,59 @@
1
- const o = {
1
+ const i = {
2
2
  classes: {
3
- wrapper: ({ data: r }) => {
4
- const e = ["inline-block relative cursor-pointer align-middle"];
5
- return r.isInsideForm && !r.isInsideFormGroup && e.push("mb-3"), e;
3
+ wrapper: ({ data: e }) => {
4
+ const r = ["inline-block relative cursor-pointer align-middle"];
5
+ return e.isInsideForm && !e.isInsideFormGroup && r.push("mb-5"), r;
6
6
  },
7
- box: ({ props: r }) => {
8
- const e = ["rounded flex justify-center items-center shrink-0 border border-[color:var(--x-checkbox-border)] bg-[color:var(--x-checkbox-bg)] dark:border-[color:var(--x-checkbox-dark-border)] dark:bg-[color:var(--x-checkbox-dark-bg)]"];
9
- return r.size === "lg" ? e.push("h-5 w-5") : r.size === "xl" ? e.push("h-6 w-6") : e.push("h-4 w-4"), e;
7
+ box: ({ props: e }) => {
8
+ const r = ["rounded flex justify-center items-center shrink-0 border border-[color:var(--x-checkbox-border)] bg-[color:var(--x-checkbox-bg)] dark:border-[color:var(--x-checkbox-dark-border)] dark:bg-[color:var(--x-checkbox-dark-bg)]"];
9
+ return e.size === "lg" ? r.push("h-5 w-5") : e.size === "xl" ? r.push("h-6 w-6") : r.push("h-4 w-4"), r;
10
10
  },
11
- content: ({ props: r }) => {
12
- const e = ["flex items-baseline"];
13
- return r.disabled && e.push("cursor-not-allowed"), e;
11
+ content: ({ props: e }) => {
12
+ const r = ["flex items-baseline"];
13
+ return e.disabled && r.push("cursor-not-allowed"), r;
14
14
  },
15
- icon: ({ props: r }) => {
16
- const e = ["fill-current text-white"];
17
- return r.size === "lg" ? e.push("h-3 w-3") : r.size === "xl" ? e.push("h-4 w-4") : e.push("h-2.5 w-2.5"), e;
15
+ icon: ({ props: e }) => {
16
+ const r = ["fill-current text-white"];
17
+ return e.size === "lg" ? r.push("h-3 w-3") : e.size === "xl" ? r.push("h-4 w-4") : r.push("h-2.5 w-2.5"), r;
18
18
  },
19
- label: ({ props: r }) => {
20
- const e = ["inline-block font-medium text-secondary-800 dark:text-secondary-200 pl-2"];
21
- return r.size === "xs" ? e.push("text-xs") : r.size === "sm" ? e.push("text-sm") : r.size === "lg" ? e.push("text-lg") : r.size === "xl" && e.push("text-xl"), e;
19
+ label: ({ props: e, data: r }) => {
20
+ const s = ["inline-block text-secondary-800 dark:text-secondary-200 pl-2"];
21
+ return s.push(r.isInsideFormGroup ? "font-normal" : "font-medium"), e.size === "xs" ? s.push("text-xs") : e.size === "sm" ? s.push("text-sm") : e.size === "lg" ? s.push("text-lg") : e.size === "xl" && s.push("text-xl"), s;
22
22
  }
23
23
  },
24
- styles({ props: r, colors: e, css: l, data: i }) {
25
- const s = e.getPalette("gray"), t = e.getPalette(r.color), a = [];
26
- return r.loading ? l.variables({
24
+ styles({ props: e, colors: r, css: s, data: a }) {
25
+ const t = r.getPalette("gray"), l = r.getPalette(e.color), o = [];
26
+ return e.loading ? s.variables({
27
27
  bg: "transparent",
28
28
  border: "transparent",
29
29
  dark: {
30
30
  bg: "transparent",
31
31
  border: "transparent"
32
32
  }
33
- }) : (r.disabled ? a.push(l.variables({
34
- bg: s[100],
35
- border: s[200],
33
+ }) : (e.disabled ? o.push(s.variables({
34
+ bg: t[100],
35
+ border: t[200],
36
36
  dark: {
37
- bg: s[800],
38
- border: s[700]
37
+ bg: t[800],
38
+ border: t[700]
39
39
  }
40
- })) : (i.checked ? a.push(l.variables({
41
- bg: t[500],
42
- border: t[500],
40
+ })) : (a.checked ? o.push(s.variables({
41
+ bg: l[500],
42
+ border: l[500],
43
43
  dark: {
44
- bg: t[500],
45
- border: t[500]
44
+ bg: l[500],
45
+ border: l[500]
46
46
  }
47
- })) : a.push(l.variables({
47
+ })) : o.push(s.variables({
48
48
  bg: "#fff",
49
- border: r.glow ? t[300] : s[300],
49
+ border: e.glow ? l[300] : t[300],
50
50
  dark: {
51
- bg: s[900],
52
- border: r.glow ? t[300] : s[400]
51
+ bg: t[900],
52
+ border: e.glow ? l[300] : t[400]
53
53
  }
54
- })), r.glow && a.push(l.get("glow", e.getColorOpacity(t[500], 0.5)))), a);
54
+ })), e.glow && o.push(s.get("glow", r.getColorOpacity(l[500], 0.5)))), o);
55
55
  }
56
- }, n = o;
56
+ }, n = i;
57
57
  export {
58
58
  n as default
59
59
  };
@@ -1,6 +1,6 @@
1
1
  const e = {
2
2
  classes: {
3
- wrapper: "min-h-[1.3rem] text-xs mt-1",
3
+ wrapper: "text-xs mt-1",
4
4
  helperText: "text-secondary-500 dark:text-secondary-400",
5
5
  errorText: "text-error-500 dark:text-error-400"
6
6
  }
@@ -2,7 +2,7 @@ const s = {
2
2
  classes: {
3
3
  wrapper: ({ props: t }) => {
4
4
  const e = ["block relative align-bottom focus:outline-none"];
5
- return t.isInsideForm && e.push("mb-3"), t.block && e.push("w-full"), e;
5
+ return t.isInsideForm && e.push("mb-5"), t.block && e.push("w-full"), e;
6
6
  },
7
7
  label: ({ props: t }) => {
8
8
  const e = "flex items-center gap-2 font-medium text-secondary-800 dark:text-secondary-200 mb-1";
@@ -208,6 +208,7 @@ const se = { class: "flex items-center flex-wrap" }, re = {
208
208
  D(l(te)),
209
209
  e.action ? (a(), m("button", {
210
210
  key: 1,
211
+ type: "button",
211
212
  class: "ml-3 font-medium cursor-pointer text-[color:var(--x-notification-action)] hover:text-[color:var(--x-notification-action-hover)] dark:text-[color:var(--x-notification-dark-action)] dark:hover:text-[color:var(--x-notification-dark-action-hover)]",
212
213
  onClick: () => {
213
214
  var u;
@@ -33,16 +33,10 @@ declare const popoverProps: {
33
33
  popperShowTriggers: PropType<TriggerEvent[] | ((triggers: Array<PopoverTriggerEvent>) => Array<PopoverTriggerEvent>)>;
34
34
  popperHideTriggers: PropType<TriggerEvent[] | ((triggers: Array<PopoverTriggerEvent>) => Array<PopoverTriggerEvent>)>;
35
35
  container: {
36
- type: (BooleanConstructor | ObjectConstructor | StringConstructor | {
37
- new (): Element;
38
- prototype: Element;
39
- })[];
36
+ type: (BooleanConstructor | ObjectConstructor | StringConstructor)[];
40
37
  default: string;
41
38
  };
42
- boundary: (StringConstructor | {
43
- new (): Element;
44
- prototype: Element;
45
- })[];
39
+ boundary: (ObjectConstructor | StringConstructor)[];
46
40
  strategy: {
47
41
  type: PropType<"absolute" | "fixed">;
48
42
  default: string;
@@ -95,16 +89,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
95
89
  popperShowTriggers: PropType<TriggerEvent[] | ((triggers: TriggerEvent[]) => TriggerEvent[])>;
96
90
  popperHideTriggers: PropType<TriggerEvent[] | ((triggers: TriggerEvent[]) => TriggerEvent[])>;
97
91
  container: {
98
- type: (BooleanConstructor | ObjectConstructor | StringConstructor | {
99
- new (): Element;
100
- prototype: Element;
101
- })[];
92
+ type: (BooleanConstructor | ObjectConstructor | StringConstructor)[];
102
93
  default: string;
103
94
  };
104
- boundary: (StringConstructor | {
105
- new (): Element;
106
- prototype: Element;
107
- })[];
95
+ boundary: (ObjectConstructor | StringConstructor)[];
108
96
  strategy: {
109
97
  type: PropType<"absolute" | "fixed">;
110
98
  default: string;
@@ -157,16 +145,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
157
145
  popperShowTriggers: PropType<TriggerEvent[] | ((triggers: TriggerEvent[]) => TriggerEvent[])>;
158
146
  popperHideTriggers: PropType<TriggerEvent[] | ((triggers: TriggerEvent[]) => TriggerEvent[])>;
159
147
  container: {
160
- type: (BooleanConstructor | ObjectConstructor | StringConstructor | {
161
- new (): Element;
162
- prototype: Element;
163
- })[];
148
+ type: (BooleanConstructor | ObjectConstructor | StringConstructor)[];
164
149
  default: string;
165
150
  };
166
- boundary: (StringConstructor | {
167
- new (): Element;
168
- prototype: Element;
169
- })[];
151
+ boundary: (ObjectConstructor | StringConstructor)[];
170
152
  strategy: {
171
153
  type: PropType<"absolute" | "fixed">;
172
154
  default: string;
@@ -204,7 +186,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
204
186
  placement: Placement;
205
187
  triggers: TriggerEvent[];
206
188
  hideArrow: boolean;
207
- container: string | boolean | Element | Record<string, any>;
189
+ container: string | boolean | Record<string, any>;
208
190
  strategy: "absolute" | "fixed";
209
191
  autoHide: boolean | ((event: Event) => boolean);
210
192
  shown: boolean;
@@ -1,9 +1,9 @@
1
- import { defineComponent as b, ref as a, openBlock as v, createBlock as S, unref as r, normalizeStyle as B, normalizeClass as T, withCtx as l, renderSlot as d } from "vue";
2
- import { useTheme as A } from "../../composables/useTheme.js";
3
- import { Dropdown as $ } from "../../node_modules/.pnpm/floating-vue@5.2.0_vue@3.3.9/node_modules/floating-vue/dist/floating-vue.js";
4
- const z = {
1
+ import { defineComponent as b, ref as a, openBlock as v, createBlock as S, unref as r, normalizeStyle as T, normalizeClass as A, withCtx as l, renderSlot as d } from "vue";
2
+ import { useTheme as B } from "../../composables/useTheme.js";
3
+ import { Dropdown as $ } from "../../node_modules/.pnpm/floating-vue@5.2.2_vue@3.3.9/node_modules/floating-vue/dist/floating-vue.js";
4
+ const k = {
5
5
  placement: ["top", "top-start", "top-end", "bottom", "bottom-start", "bottom-end", "left", "left-start", "left-end", "right", "right-start", "right-end"]
6
- }, k = {
6
+ }, z = {
7
7
  disabled: Boolean,
8
8
  positioningDisabled: Boolean,
9
9
  placement: {
@@ -30,10 +30,10 @@ const z = {
30
30
  popperShowTriggers: [Array, Function],
31
31
  popperHideTriggers: [Array, Function],
32
32
  container: {
33
- type: [String, Object, Element, Boolean],
33
+ type: [String, Object, Boolean],
34
34
  default: "body"
35
35
  },
36
- boundary: [String, Element],
36
+ boundary: [String, Object],
37
37
  strategy: {
38
38
  type: String,
39
39
  default: "absolute"
@@ -53,10 +53,10 @@ const z = {
53
53
  computeTransformOrigin: Boolean
54
54
  }, C = {
55
55
  name: "XPopover",
56
- validators: z
56
+ validators: k
57
57
  }, R = /* @__PURE__ */ b({
58
58
  ...C,
59
- props: k,
59
+ props: z,
60
60
  emits: ["show", "hide", "update:shown", "apply-show", "apply-hide", "close-group", "close-directive", "auto-hide", "resize"],
61
61
  setup(g, { expose: u }) {
62
62
  const m = g, i = a(null);
@@ -73,12 +73,12 @@ const z = {
73
73
  }
74
74
  const t = a(!1);
75
75
  u({ show: s, hide: n, toggle: y, isOpen: t });
76
- const { styles: f, classes: p, className: h } = A("Popover", {}, m);
76
+ const { styles: f, classes: p, className: h } = B("Popover", {}, m);
77
77
  return (e, o) => (v(), S(r($), {
78
78
  ref_key: "elRef",
79
79
  ref: i,
80
- style: B(r(f)),
81
- class: T([r(h), r(p).wrapper]),
80
+ style: T(r(f)),
81
+ class: A([r(h), r(p).wrapper]),
82
82
  "positioning-disabled": e.positioningDisabled,
83
83
  placement: e.placement,
84
84
  disabled: e.disabled,
@@ -2,51 +2,51 @@ const a = {
2
2
  classes: {
3
3
  wrapper: ({ data: e }) => {
4
4
  const t = ["inline-block relative cursor-pointer focus:outline-none group"];
5
- return e.isInsideForm && !e.isInsideFormGroup && t.push("mb-3"), t;
5
+ return e.isInsideForm && !e.isInsideFormGroup && t.push("mb-5"), t;
6
6
  },
7
7
  circle: ({ props: e }) => {
8
8
  const t = ["rounded-full flex justify-center items-center shrink-0 border outline-offset-2 outline-slate-300 dark:outline-slate-500 group-focus:outline-1 group-focus:outline"];
9
9
  return e.size === "lg" ? t.push("h-5 w-5") : e.size === "xl" ? t.push("h-6 w-6") : t.push("h-4 w-4"), t;
10
10
  },
11
11
  circleIcon: ({ props: e, data: t }) => {
12
- const s = [];
13
- return t.selected || s.push("opacity-0"), e.size === "sm" || e.size === "xs" ? s.push("h-2") : e.size === "lg" ? s.push("h-2.5") : e.size === "xl" ? s.push("h-3") : s.push("h-2"), s;
12
+ const r = [];
13
+ return t.selected || r.push("opacity-0"), e.size === "sm" || e.size === "xs" ? r.push("h-2") : e.size === "lg" ? r.push("h-2.5") : e.size === "xl" ? r.push("h-3") : r.push("h-2"), r;
14
14
  },
15
- label: ({ props: e }) => {
16
- let t = "font-medium text-secondary-800 dark:text-secondary-200 pl-2";
17
- return e.size === "xs" ? t += " text-xs" : e.size === "sm" ? t += " text-sm" : e.size === "lg" ? t += " text-lg" : e.size === "xl" && (t += " text-xl"), t;
15
+ label: ({ props: e, data: t }) => {
16
+ let r = "text-secondary-800 dark:text-secondary-200 pl-2";
17
+ return r += t.isInsideFormGroup ? " font-normal" : " font-medium", e.size === "xs" ? r += " text-xs" : e.size === "sm" ? r += " text-sm" : e.size === "lg" ? r += " text-lg" : e.size === "xl" && (r += " text-xl"), r;
18
18
  },
19
19
  content: ({ props: e }) => {
20
20
  let t = "pl-2";
21
21
  return e.size === "xs" ? t += " text-xs" : e.size === "sm" ? t += " text-sm" : e.size === "lg" ? t += " text-lg" : e.size === "xl" && (t += " text-xl"), t;
22
22
  }
23
23
  },
24
- styles: ({ props: e, colors: t, css: s, data: n }) => {
25
- const r = t.getPalette("gray"), l = t.getPalette(e.color), i = [];
26
- return e.loading ? s.variables({
24
+ styles: ({ props: e, colors: t, css: r, data: n }) => {
25
+ const s = t.getPalette("gray"), l = t.getPalette(e.color), i = [];
26
+ return e.loading ? r.variables({
27
27
  bg: "transparent",
28
28
  border: "transparent",
29
29
  dark: {
30
30
  bg: "transparent",
31
31
  border: "transparent"
32
32
  }
33
- }) : (e.disabled ? n.selected ? i.push(s.variables({
33
+ }) : (e.disabled ? n.selected ? i.push(r.variables({
34
34
  bg: "transparent",
35
- border: r[200],
36
- circle: r[200],
35
+ border: s[200],
36
+ circle: s[200],
37
37
  dark: {
38
38
  bg: "transparent",
39
- border: r[700],
40
- circle: r[700]
39
+ border: s[700],
40
+ circle: s[700]
41
41
  }
42
- })) : i.push(s.variables({
43
- bg: r[200],
44
- border: r[200],
42
+ })) : i.push(r.variables({
43
+ bg: s[200],
44
+ border: s[200],
45
45
  dark: {
46
- bg: r[700],
47
- border: r[700]
46
+ bg: s[700],
47
+ border: s[700]
48
48
  }
49
- })) : (n.selected ? i.push(s.variables({
49
+ })) : (n.selected ? i.push(r.variables({
50
50
  bg: "transparent",
51
51
  border: l[500],
52
52
  circle: l[500],
@@ -55,16 +55,16 @@ const a = {
55
55
  border: l[500],
56
56
  circle: l[500]
57
57
  }
58
- })) : i.push(s.variables({
58
+ })) : i.push(r.variables({
59
59
  bg: "#fff",
60
- border: e.glow ? l[300] : r[300],
60
+ border: e.glow ? l[300] : s[300],
61
61
  dark: {
62
- bg: r[900],
63
- border: e.glow ? l[300] : r[400]
62
+ bg: s[900],
63
+ border: e.glow ? l[300] : s[400]
64
64
  }
65
- })), e.glow && i.push(s.get("glow", t.getColorOpacity(l[500], 0.5)))), i);
65
+ })), e.glow && i.push(r.get("glow", t.getColorOpacity(l[500], 0.5)))), i);
66
66
  }
67
- }, u = a;
67
+ }, o = a;
68
68
  export {
69
- u as default
69
+ o as default
70
70
  };
@@ -21,11 +21,11 @@ const L = {
21
21
  var e;
22
22
  (e = l.value) == null || e.dispatchEvent(new CustomEvent("scroll"));
23
23
  }
24
- const { styles: h, classes: p, className: m } = C("Scroll", {}, t);
24
+ const { styles: h, classes: m, className: p } = C("Scroll", {}, t);
25
25
  return a({ scrollEl: l }), (e, R) => ($(), z("div", {
26
- class: r(["flex relative overflow-hidden", [
27
- o(m),
28
- o(p).wrapper,
26
+ class: r(["flex relative overflow-hidden max-w-full max-h-full", [
27
+ o(p),
28
+ o(m).wrapper,
29
29
  e.$style.scrollwrap,
30
30
  e.horizontal ? [
31
31
  e.$style.horizontal,