@indielayer/ui 0.0.0-dev-20240129122517 → 0.0.0-dev-20240202140555

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 (192) hide show
  1. package/docs/App.vue +25 -0
  2. package/docs/assets/css/hljs.css +302 -0
  3. package/docs/assets/css/tailwind.css +46 -0
  4. package/docs/assets/images/error.svg +1 -0
  5. package/docs/assets/images/logo.png +0 -0
  6. package/docs/assets/images/logo_mini.svg +10 -0
  7. package/docs/assets/images/logo_white.png +0 -0
  8. package/docs/assets/images/logo_word.svg +12 -0
  9. package/docs/assets/images/logo_word_dark.svg +12 -0
  10. package/docs/assets/images/photo1.jpeg +0 -0
  11. package/docs/assets/images/photo2.jpeg +0 -0
  12. package/docs/components/Cookies.vue +42 -0
  13. package/docs/components/common/CodePreview.vue +80 -0
  14. package/docs/components/common/CodeSnippet.vue +49 -0
  15. package/docs/components/common/CopyButton.vue +50 -0
  16. package/docs/components/common/DocumentPage.vue +289 -0
  17. package/docs/components/common/Indielayer-theme.json +702 -0
  18. package/docs/components/common/MultiSnippet.vue +26 -0
  19. package/docs/components/menu/DocsMenu.vue +143 -0
  20. package/docs/components/toolbar/PreToolbar.vue +18 -0
  21. package/docs/components/toolbar/Toolbar.vue +63 -0
  22. package/docs/components/toolbar/ToolbarColorToggle.vue +49 -0
  23. package/docs/icons.ts +61 -0
  24. package/docs/layouts/default.vue +29 -0
  25. package/docs/layouts/simple.vue +3 -0
  26. package/docs/main.ts +33 -0
  27. package/docs/pages/colors.vue +125 -0
  28. package/docs/pages/component/accordion/index.vue +29 -0
  29. package/docs/pages/component/accordion/usage.vue +30 -0
  30. package/docs/pages/component/alert/index.vue +29 -0
  31. package/docs/pages/component/alert/usage.vue +18 -0
  32. package/docs/pages/component/avatar/index.vue +43 -0
  33. package/docs/pages/component/avatar/size.vue +9 -0
  34. package/docs/pages/component/avatar/usage.vue +9 -0
  35. package/docs/pages/component/avatar/variants.vue +8 -0
  36. package/docs/pages/component/badge/index.vue +29 -0
  37. package/docs/pages/component/badge/usage.vue +50 -0
  38. package/docs/pages/component/breadcrumbs/index.vue +29 -0
  39. package/docs/pages/component/breadcrumbs/usage.vue +19 -0
  40. package/docs/pages/component/button/button-group.vue +18 -0
  41. package/docs/pages/component/button/icons.vue +9 -0
  42. package/docs/pages/component/button/index.vue +64 -0
  43. package/docs/pages/component/button/size.vue +9 -0
  44. package/docs/pages/component/button/states.vue +6 -0
  45. package/docs/pages/component/button/usage.vue +12 -0
  46. package/docs/pages/component/button/variants.vue +7 -0
  47. package/docs/pages/component/card/index.vue +29 -0
  48. package/docs/pages/component/card/usage.vue +6 -0
  49. package/docs/pages/component/carousel/index.vue +29 -0
  50. package/docs/pages/component/carousel/usage.vue +10 -0
  51. package/docs/pages/component/checkbox/index.vue +50 -0
  52. package/docs/pages/component/checkbox/size.vue +9 -0
  53. package/docs/pages/component/checkbox/states.vue +9 -0
  54. package/docs/pages/component/checkbox/usage.vue +15 -0
  55. package/docs/pages/component/checkbox/variants.vue +8 -0
  56. package/docs/pages/component/container/index.vue +29 -0
  57. package/docs/pages/component/container/usage.vue +3 -0
  58. package/docs/pages/component/divider/index.vue +43 -0
  59. package/docs/pages/component/divider/label.vue +12 -0
  60. package/docs/pages/component/divider/usage.vue +7 -0
  61. package/docs/pages/component/divider/vertical.vue +7 -0
  62. package/docs/pages/component/drawer/index.vue +29 -0
  63. package/docs/pages/component/drawer/usage.vue +56 -0
  64. package/docs/pages/component/form/index.vue +29 -0
  65. package/docs/pages/component/form/usage.vue +96 -0
  66. package/docs/pages/component/formGroup/index.vue +29 -0
  67. package/docs/pages/component/formGroup/usage.vue +46 -0
  68. package/docs/pages/component/icon/index.vue +36 -0
  69. package/docs/pages/component/icon/usage.vue +6 -0
  70. package/docs/pages/component/icon/variants.vue +14 -0
  71. package/docs/pages/component/image/index.vue +29 -0
  72. package/docs/pages/component/image/usage.vue +8 -0
  73. package/docs/pages/component/input/index.vue +50 -0
  74. package/docs/pages/component/input/size.vue +13 -0
  75. package/docs/pages/component/input/states.vue +12 -0
  76. package/docs/pages/component/input/usage.vue +15 -0
  77. package/docs/pages/component/input/variants.vue +18 -0
  78. package/docs/pages/component/link/index.vue +29 -0
  79. package/docs/pages/component/link/usage.vue +12 -0
  80. package/docs/pages/component/loader/index.vue +29 -0
  81. package/docs/pages/component/loader/usage.vue +7 -0
  82. package/docs/pages/component/menu/index.vue +29 -0
  83. package/docs/pages/component/menu/usage.vue +69 -0
  84. package/docs/pages/component/modal/composed.vue +70 -0
  85. package/docs/pages/component/modal/index.vue +36 -0
  86. package/docs/pages/component/modal/usage.vue +61 -0
  87. package/docs/pages/component/notifications/index.vue +29 -0
  88. package/docs/pages/component/notifications/usage.vue +56 -0
  89. package/docs/pages/component/pagination/index.vue +29 -0
  90. package/docs/pages/component/pagination/usage.vue +17 -0
  91. package/docs/pages/component/popover/index.vue +29 -0
  92. package/docs/pages/component/popover/usage.vue +21 -0
  93. package/docs/pages/component/progress/index.vue +36 -0
  94. package/docs/pages/component/progress/usage.vue +7 -0
  95. package/docs/pages/component/progress/variants.vue +18 -0
  96. package/docs/pages/component/radio/index.vue +50 -0
  97. package/docs/pages/component/radio/size.vue +15 -0
  98. package/docs/pages/component/radio/states.vue +13 -0
  99. package/docs/pages/component/radio/usage.vue +14 -0
  100. package/docs/pages/component/radio/variants.vue +39 -0
  101. package/docs/pages/component/scroll/horizontal.vue +14 -0
  102. package/docs/pages/component/scroll/index.vue +36 -0
  103. package/docs/pages/component/scroll/usage.vue +5 -0
  104. package/docs/pages/component/select/index.vue +43 -0
  105. package/docs/pages/component/select/states.vue +22 -0
  106. package/docs/pages/component/select/usage.vue +45 -0
  107. package/docs/pages/component/select/variants.vue +23 -0
  108. package/docs/pages/component/skeleton/index.vue +29 -0
  109. package/docs/pages/component/skeleton/usage.vue +10 -0
  110. package/docs/pages/component/slider/index.vue +29 -0
  111. package/docs/pages/component/slider/usage.vue +15 -0
  112. package/docs/pages/component/spacer/index.vue +29 -0
  113. package/docs/pages/component/spacer/usage.vue +8 -0
  114. package/docs/pages/component/spinner/index.vue +36 -0
  115. package/docs/pages/component/spinner/usage.vue +3 -0
  116. package/docs/pages/component/spinner/variants.vue +9 -0
  117. package/docs/pages/component/stepper/index.vue +29 -0
  118. package/docs/pages/component/stepper/usage.vue +21 -0
  119. package/docs/pages/component/table/index.vue +36 -0
  120. package/docs/pages/component/table/states.vue +28 -0
  121. package/docs/pages/component/table/usage.vue +107 -0
  122. package/docs/pages/component/tabs/index.vue +29 -0
  123. package/docs/pages/component/tabs/usage.vue +137 -0
  124. package/docs/pages/component/tag/index.vue +29 -0
  125. package/docs/pages/component/tag/usage.vue +27 -0
  126. package/docs/pages/component/textarea/index.vue +43 -0
  127. package/docs/pages/component/textarea/states.vue +13 -0
  128. package/docs/pages/component/textarea/usage.vue +22 -0
  129. package/docs/pages/component/textarea/variants.vue +15 -0
  130. package/docs/pages/component/toggle/index.vue +43 -0
  131. package/docs/pages/component/toggle/states.vue +13 -0
  132. package/docs/pages/component/toggle/usage.vue +14 -0
  133. package/docs/pages/component/toggle/variants.vue +15 -0
  134. package/docs/pages/component/tooltip/index.vue +29 -0
  135. package/docs/pages/component/tooltip/usage.vue +16 -0
  136. package/docs/pages/error.vue +6 -0
  137. package/docs/pages/icons.vue +105 -0
  138. package/docs/pages/index.vue +157 -0
  139. package/docs/pages/play.vue +19 -0
  140. package/docs/pages/typography.vue +95 -0
  141. package/docs/router/index.ts +77 -0
  142. package/lib/components/accordion/Accordion.vue.d.ts +3 -0
  143. package/lib/components/accordion/Accordion.vue.js +7 -7
  144. package/lib/components/accordion/AccordionItem.vue.d.ts +1 -0
  145. package/lib/components/accordion/AccordionItem.vue.js +49 -47
  146. package/lib/components/accordion/index.d.ts +1 -1
  147. package/lib/components/accordion/theme/Accordion.carbon.theme.js +3 -6
  148. package/lib/components/accordion/theme/AccordionItem.base.theme.js +9 -9
  149. package/lib/components/accordion/theme/AccordionItem.carbon.theme.js +3 -14
  150. package/lib/components/carousel/CarouselSlide.vue.d.ts +19 -8
  151. package/lib/components/carousel/CarouselSlide.vue.js +2 -2
  152. package/lib/components/carousel/CarouselSlide.vue2.js +25 -18
  153. package/lib/components/checkbox/theme/Checkbox.base.theme.js +4 -4
  154. package/lib/components/container/Container.vue.d.ts +13 -0
  155. package/lib/components/container/Container.vue.js +15 -11
  156. package/lib/components/container/theme/Container.base.theme.js +7 -4
  157. package/lib/components/form/theme/Form.base.theme.js +1 -1
  158. package/lib/components/menu/Menu.vue.js +10 -10
  159. package/lib/components/menu/theme/MenuItem.base.theme.js +1 -1
  160. package/lib/components/modal/Modal.vue.d.ts +1 -1
  161. package/lib/components/radio/theme/Radio.base.theme.js +6 -6
  162. package/lib/components/select/Select.vue.js +47 -50
  163. package/lib/components/slider/theme/Slider.carbon.theme.js +4 -4
  164. package/lib/components/tab/Tab.vue.js +54 -53
  165. package/lib/components/tab/theme/TabGroup.carbon.theme.js +3 -3
  166. package/lib/composables/keys.d.ts +2 -2
  167. package/lib/index.js +1 -1
  168. package/lib/index.umd.js +3 -3
  169. package/lib/version.d.ts +1 -1
  170. package/lib/version.js +1 -1
  171. package/package.json +4 -2
  172. package/src/components/accordion/Accordion.vue +5 -1
  173. package/src/components/accordion/AccordionItem.vue +5 -2
  174. package/src/components/accordion/index.ts +1 -1
  175. package/src/components/accordion/theme/Accordion.carbon.theme.ts +3 -5
  176. package/src/components/accordion/theme/AccordionItem.base.theme.ts +10 -7
  177. package/src/components/accordion/theme/AccordionItem.carbon.theme.ts +2 -30
  178. package/src/components/carousel/CarouselSlide.vue +9 -4
  179. package/src/components/checkbox/theme/Checkbox.base.theme.ts +1 -1
  180. package/src/components/container/Container.vue +4 -0
  181. package/src/components/container/theme/Container.base.theme.ts +7 -1
  182. package/src/components/form/theme/Form.base.theme.ts +1 -1
  183. package/src/components/label/theme/Label.carbon.theme.ts +0 -2
  184. package/src/components/menu/Menu.vue +1 -1
  185. package/src/components/menu/theme/MenuItem.base.theme.ts +1 -1
  186. package/src/components/radio/theme/Radio.base.theme.ts +1 -1
  187. package/src/components/select/Select.vue +0 -3
  188. package/src/components/slider/theme/Slider.carbon.theme.ts +1 -1
  189. package/src/components/tab/Tab.vue +1 -1
  190. package/src/components/tab/theme/TabGroup.carbon.theme.ts +1 -1
  191. package/src/composables/keys.ts +2 -2
  192. package/src/version.ts +1 -1
@@ -1,17 +1,28 @@
1
1
  import { type ExtractPublicPropTypes } from 'vue';
2
2
  import { type ThemeComponent } from '../../composables/useTheme';
3
- declare const carouselSlideProps: {};
3
+ declare const carouselSlideProps: {
4
+ tag: {
5
+ type: StringConstructor;
6
+ default: string;
7
+ };
8
+ };
4
9
  export type CarouselSlideProps = ExtractPublicPropTypes<typeof carouselSlideProps>;
5
10
  type InternalClasses = 'wrapper';
6
11
  export interface CarouselSlideTheme extends ThemeComponent<CarouselSlideProps, InternalClasses> {
7
12
  }
8
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<Readonly<import("vue").ComponentPropsOptions<{
9
- [x: string]: unknown;
10
- }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, readonly string[] | Readonly<import("vue").ExtractPropTypes<Readonly<import("vue").ComponentObjectPropsOptions<{
11
- [x: string]: unknown;
12
- }>>>>, {
13
- [x: number]: string;
14
- } | {}, {}>, {
13
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
14
+ tag: {
15
+ type: StringConstructor;
16
+ default: string;
17
+ };
18
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
19
+ tag: {
20
+ type: StringConstructor;
21
+ default: string;
22
+ };
23
+ }>>, {
24
+ tag: string;
25
+ }, {}>, {
15
26
  default?(_: {}): any;
16
27
  }>;
17
28
  export default _default;
@@ -3,7 +3,7 @@ import o from "./CarouselSlide.vue3.js";
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
4
  const e = {
5
5
  $style: o
6
- }, a = /* @__PURE__ */ t(s, [["__cssModules", e], ["__scopeId", "data-v-8d26c82a"]]);
6
+ }, d = /* @__PURE__ */ t(s, [["__cssModules", e], ["__scopeId", "data-v-402870d3"]]);
7
7
  export {
8
- a as default
8
+ d as default
9
9
  };
@@ -1,25 +1,32 @@
1
- import { defineComponent as n, openBlock as c, createElementBlock as p, normalizeStyle as i, unref as e, normalizeClass as m, renderSlot as u } from "vue";
2
- import { useTheme as d } from "../../composables/useTheme.js";
3
- const f = {}, _ = {
4
- name: "XCarouselSlide",
5
- validators: {}
6
- }, h = /* @__PURE__ */ n({
7
- ..._,
8
- props: f,
1
+ import { defineComponent as n, openBlock as c, createBlock as p, resolveDynamicComponent as i, normalizeStyle as u, unref as s, normalizeClass as m, withCtx as d, renderSlot as f } from "vue";
2
+ import { useTheme as y } from "../../composables/useTheme.js";
3
+ const C = {
4
+ tag: {
5
+ type: String,
6
+ default: "div"
7
+ }
8
+ }, S = {
9
+ name: "XCarouselSlide"
10
+ }, k = /* @__PURE__ */ n({
11
+ ...S,
12
+ props: C,
9
13
  setup(l) {
10
- const o = l, { styles: r, classes: t, className: a } = d("CarouselSlide", {}, o);
11
- return (s, S) => (c(), p("div", {
12
- style: i(e(r)),
14
+ const t = l, { styles: o, classes: a, className: r } = y("CarouselSlide", {}, t);
15
+ return (e, _) => (c(), p(i(e.tag), {
16
+ style: u(s(o)),
13
17
  class: m([
14
- e(a),
15
- s.$style["carousel-slide"],
16
- e(t).wrapper
18
+ s(r),
19
+ e.$style["carousel-slide"],
20
+ s(a).wrapper
17
21
  ])
18
- }, [
19
- u(s.$slots, "default")
20
- ], 6));
22
+ }, {
23
+ default: d(() => [
24
+ f(e.$slots, "default")
25
+ ]),
26
+ _: 3
27
+ }, 8, ["style", "class"]));
21
28
  }
22
29
  });
23
30
  export {
24
- h as default
31
+ k as default
25
32
  };
@@ -1,8 +1,8 @@
1
- const n = {
1
+ const o = {
2
2
  classes: {
3
3
  wrapper: ({ data: r }) => {
4
4
  const e = ["inline-block relative cursor-pointer align-middle"];
5
- return r.isInsideForm && e.push("mb-3"), e;
5
+ return r.isInsideForm && !r.isInsideFormGroup && e.push("mb-3"), e;
6
6
  },
7
7
  box: ({ props: r }) => {
8
8
  const e = ["rounded flex justify-center items-center shrink-0 border-2 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)]"];
@@ -53,7 +53,7 @@ const n = {
53
53
  }
54
54
  })), r.glow && a.push(l.get("glow", e.getColorOpacity(t[500], 0.5)))), a);
55
55
  }
56
- }, o = n;
56
+ }, n = o;
57
57
  export {
58
- o as default
58
+ n as default
59
59
  };
@@ -5,6 +5,10 @@ declare const containerProps: {
5
5
  type: StringConstructor;
6
6
  default: string;
7
7
  };
8
+ fluid: {
9
+ type: BooleanConstructor;
10
+ default: boolean;
11
+ };
8
12
  };
9
13
  export type ContainerProps = ExtractPublicPropTypes<typeof containerProps>;
10
14
  type InternalClasses = 'wrapper';
@@ -15,13 +19,22 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
15
19
  type: StringConstructor;
16
20
  default: string;
17
21
  };
22
+ fluid: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ };
18
26
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
19
27
  tag: {
20
28
  type: StringConstructor;
21
29
  default: string;
22
30
  };
31
+ fluid: {
32
+ type: BooleanConstructor;
33
+ default: boolean;
34
+ };
23
35
  }>>, {
24
36
  tag: string;
37
+ fluid: boolean;
25
38
  }, {}>, {
26
39
  default?(_: {}): any;
27
40
  }>;
@@ -1,20 +1,24 @@
1
- import { defineComponent as l, openBlock as c, createBlock as p, resolveDynamicComponent as i, normalizeStyle as m, unref as e, normalizeClass as f, withCtx as u, renderSlot as d } from "vue";
2
- import { useTheme as _ } from "../../composables/useTheme.js";
3
- const y = {
1
+ import { defineComponent as r, openBlock as c, createBlock as p, resolveDynamicComponent as i, normalizeStyle as f, unref as e, normalizeClass as m, withCtx as u, renderSlot as d } from "vue";
2
+ import { useTheme as y } from "../../composables/useTheme.js";
3
+ const _ = {
4
4
  tag: {
5
5
  type: String,
6
6
  default: "div"
7
+ },
8
+ fluid: {
9
+ type: Boolean,
10
+ default: !1
7
11
  }
8
- }, C = { name: "XContainer" }, k = /* @__PURE__ */ l({
12
+ }, C = { name: "XContainer" }, S = /* @__PURE__ */ r({
9
13
  ...C,
10
- props: y,
14
+ props: _,
11
15
  setup(s) {
12
- const o = s, { styles: n, classes: a, className: r } = _("Container", {}, o);
16
+ const o = s, { styles: a, classes: n, className: l } = y("Container", {}, o);
13
17
  return (t, g) => (c(), p(i(t.tag), {
14
- style: m(e(n)),
15
- class: f([
16
- e(r),
17
- e(a).wrapper
18
+ style: f(e(a)),
19
+ class: m([
20
+ e(l),
21
+ e(n).wrapper
18
22
  ])
19
23
  }, {
20
24
  default: u(() => [
@@ -25,5 +29,5 @@ const y = {
25
29
  }
26
30
  });
27
31
  export {
28
- k as default
32
+ S as default
29
33
  };
@@ -1,8 +1,11 @@
1
- const e = {
1
+ const a = {
2
2
  classes: {
3
- wrapper: "max-w-screen-2xl mx-auto px-4 md:px-8"
3
+ wrapper: ({ props: s }) => {
4
+ const e = ["px-4 md:px-8"];
5
+ return s.fluid || e.push("max-w-screen-2xl mx-auto"), e;
6
+ }
4
7
  }
5
- }, s = e;
8
+ }, t = a;
6
9
  export {
7
- s as default
10
+ t as default
8
11
  };
@@ -1,7 +1,7 @@
1
1
  const t = {
2
2
  classes: {
3
3
  wrapper: "relative",
4
- content: "grid gap-4",
4
+ content: "",
5
5
  title: "text-xl mb-1",
6
6
  description: "text-gray-500",
7
7
  footer: "space-x-4 mt-4"
@@ -1,4 +1,4 @@
1
- import { defineComponent as C, resolveComponent as B, openBlock as d, createElementBlock as n, normalizeStyle as g, unref as p, normalizeClass as r, Fragment as a, renderList as E, createBlock as u, withCtx as c, createVNode as i, createCommentVNode as w } from "vue";
1
+ import { defineComponent as C, resolveComponent as B, openBlock as d, createElementBlock as n, normalizeStyle as g, unref as p, normalizeClass as i, Fragment as a, renderList as E, createBlock as u, withCtx as c, createVNode as r, createCommentVNode as w } from "vue";
2
2
  import { useCommon as m } from "../../composables/useCommon.js";
3
3
  import { useColors as M } from "../../composables/useColors.js";
4
4
  import { useTheme as N } from "../../composables/useTheme.js";
@@ -40,7 +40,7 @@ const V = {
40
40
  return e.items ? (d(), n("div", {
41
41
  key: 0,
42
42
  style: g(p(k)),
43
- class: r([
43
+ class: i([
44
44
  "space-y-1",
45
45
  p($),
46
46
  p(v).wrapper
@@ -58,19 +58,19 @@ const V = {
58
58
  onExpand: o[1] || (o[1] = (s) => e.$emit("expand"))
59
59
  }, {
60
60
  default: c(({}) => [
61
- i(f, {
61
+ r(f, {
62
62
  item: l,
63
63
  rounded: e.rounded,
64
64
  color: l.color || e.color,
65
65
  filled: l.filled || e.filled,
66
66
  size: l.size || e.size,
67
67
  disabled: e.disabled || l.disabled,
68
- class: "pr-10 font-medium"
68
+ class: "font-medium"
69
69
  }, null, 8, ["item", "rounded", "color", "filled", "size", "disabled"])
70
70
  ]),
71
71
  content: c(({ expand: s }) => [
72
- i(b, {
73
- class: r(["border-l ml-4 border-gray-100 dark:border-gray-700", { "pl-1": e.filled }]),
72
+ r(b, {
73
+ class: i(["border-l ml-4 border-gray-100 dark:border-gray-700", { "pl-1": e.filled }]),
74
74
  items: l.items,
75
75
  color: l.color || e.color,
76
76
  size: l.size || e.size,
@@ -86,7 +86,7 @@ const V = {
86
86
  ]),
87
87
  _: 2
88
88
  }, 1032, ["icon", "expanded", "disabled", "show-icon"])) : (d(), n(a, { key: 1 }, [
89
- i(f, {
89
+ r(f, {
90
90
  item: l,
91
91
  rounded: e.rounded,
92
92
  color: l.color || e.color,
@@ -97,8 +97,8 @@ const V = {
97
97
  inactive: "",
98
98
  onClick: o[2] || (o[2] = (s) => e.$emit("item-click"))
99
99
  }, null, 8, ["item", "rounded", "color", "filled", "size", "disabled"]),
100
- i(b, {
101
- class: r(["x-menu-inner space-y-1 ml-4 border-l border-gray-100 dark:border-gray-700", { "pl-1": e.filled }]),
100
+ r(b, {
101
+ class: i(["x-menu-inner space-y-1 ml-4 border-l border-gray-100 dark:border-gray-700", { "pl-1": e.filled }]),
102
102
  items: l.items,
103
103
  color: l.color || e.color,
104
104
  size: l.size || e.size,
@@ -120,7 +120,7 @@ const V = {
120
120
  filled: l.filled || e.filled,
121
121
  size: l.size || e.size,
122
122
  disabled: e.disabled || l.disabled,
123
- class: r({ "my-2": l.divider }),
123
+ class: i({ "my-2": l.divider }),
124
124
  onClick: o[4] || (o[4] = (s) => e.$emit("item-click")),
125
125
  onActive: o[5] || (o[5] = (s) => e.$emit("expand"))
126
126
  }, null, 8, ["item", "rounded", "color", "filled", "size", "disabled", "class"]))
@@ -48,7 +48,7 @@ const x = {
48
48
  bg: a.selected ? t[800] : "transparent",
49
49
  text: t[200],
50
50
  hover: {
51
- bg: t[800],
51
+ bg: t[600],
52
52
  text: t[100]
53
53
  }
54
54
  }
@@ -123,11 +123,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
123
123
  size: "xs" | "sm" | "md" | "lg" | "xl" | "full";
124
124
  loading: boolean;
125
125
  modelValue: boolean;
126
+ fluid: boolean;
126
127
  backdrop: boolean;
127
128
  showClose: boolean;
128
129
  hasActions: boolean;
129
130
  hasHeader: boolean;
130
- fluid: boolean;
131
131
  isForm: boolean;
132
132
  formDisabled: boolean;
133
133
  formAutoValidate: boolean;
@@ -1,8 +1,8 @@
1
- const n = {
1
+ 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 && t.push("mb-3"), t;
5
+ return e.isInsideForm && !e.isInsideFormGroup && t.push("mb-3"), t;
6
6
  },
7
7
  circle: ({ props: e }) => {
8
8
  let t = "rounded-full flex justify-center items-center shrink-0 border-2 outline-offset-2 outline-slate-300 dark:outline-slate-500 group-focus:outline-1 group-focus:outline";
@@ -21,7 +21,7 @@ const n = {
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: r, data: a }) => {
24
+ styles: ({ props: e, colors: t, css: r, data: n }) => {
25
25
  const l = t.getPalette("gray"), s = t.getPalette(e.color), i = [];
26
26
  return e.loading ? r.variables({
27
27
  bg: "transparent",
@@ -30,7 +30,7 @@ const n = {
30
30
  bg: "transparent",
31
31
  border: "transparent"
32
32
  }
33
- }) : (e.disabled ? a.selected ? i.push(r.variables({
33
+ }) : (e.disabled ? n.selected ? i.push(r.variables({
34
34
  bg: "transparent",
35
35
  border: l[200],
36
36
  circle: l[200],
@@ -46,7 +46,7 @@ const n = {
46
46
  bg: l[700],
47
47
  border: l[700]
48
48
  }
49
- })) : (a.selected ? i.push(r.variables({
49
+ })) : (n.selected ? i.push(r.variables({
50
50
  bg: "transparent",
51
51
  border: s[500],
52
52
  circle: s[500],
@@ -64,7 +64,7 @@ const n = {
64
64
  }
65
65
  })), e.glow && i.push(r.get("glow", t.getColorOpacity(s[500], 0.5)))), i);
66
66
  }
67
- }, u = n;
67
+ }, u = a;
68
68
  export {
69
69
  u as default
70
70
  };
@@ -1,18 +1,18 @@
1
- import { defineComponent as ve, ref as A, computed as I, watch as O, nextTick as U, unref as s, openBlock as a, createBlock as c, mergeProps as X, toHandlers as H, withCtx as h, createElementVNode as E, createElementBlock as o, normalizeClass as R, Fragment as p, renderList as z, createTextVNode as C, toDisplayString as m, createVNode as K, withDirectives as pe, vModelSelect as ce, renderSlot as me, createCommentVNode as ye } from "vue";
2
- import { useEventListener as be } from "../../node_modules/.pnpm/@vueuse_core@10.2.0_vue@3.3.9/node_modules/@vueuse/core/index.js";
1
+ import { defineComponent as ve, ref as A, computed as I, watch as O, nextTick as U, unref as s, openBlock as a, createBlock as c, mergeProps as X, toHandlers as H, withCtx as b, createElementVNode as E, createElementBlock as o, normalizeClass as _, Fragment as p, renderList as z, createTextVNode as C, toDisplayString as m, createVNode as K, withDirectives as pe, vModelSelect as ce, renderSlot as me, createCommentVNode as ye } from "vue";
2
+ import { useEventListener as he } from "../../node_modules/.pnpm/@vueuse_core@10.2.0_vue@3.3.9/node_modules/@vueuse/core/index.js";
3
3
  import { useCommon as G } from "../../composables/useCommon.js";
4
4
  import { useInputtable as D } from "../../composables/useInputtable.js";
5
5
  import { useInteractive as J } from "../../composables/useInteractive.js";
6
- import { useTheme as he } from "../../composables/useTheme.js";
6
+ import { useTheme as be } from "../../composables/useTheme.js";
7
7
  import { checkIcon as ke, selectIcon as ge } from "../../common/icons.js";
8
8
  import we from "../label/Label.vue.js";
9
9
  import W from "../tag/Tag.vue.js";
10
10
  import Ae from "../icon/Icon.vue.js";
11
11
  import Ie from "../menu/MenuItem.vue.js";
12
- import Re from "../spinner/Spinner.vue.js";
13
- import Ve from "../popover/Popover.vue.js";
12
+ import _e from "../spinner/Spinner.vue.js";
13
+ import Re from "../popover/Popover.vue.js";
14
14
  import "../popover/Popover.vue2.js";
15
- import _e from "../popover/PopoverContainer.vue.js";
15
+ import Ve from "../popover/PopoverContainer.vue.js";
16
16
  import $e from "../inputFooter/InputFooter.vue.js";
17
17
  const Ee = { class: "relative" }, ze = {
18
18
  key: 0,
@@ -29,7 +29,7 @@ const Ee = { class: "relative" }, ze = {
29
29
  }, De = { key: 1 }, Le = {
30
30
  key: 1,
31
31
  class: "px-2 text-center text-gray-400"
32
- }, Be = ["id", "name", "disabled", "multiple", "readonly"], Te = ["value", "disabled"], Fe = {
32
+ }, Be = ["id", "name", "disabled", "multiple", "readonly"], Te = ["value", "disabled"], xe = {
33
33
  ...G.props(),
34
34
  ...J.props(),
35
35
  ...D.props(),
@@ -38,22 +38,22 @@ const Ee = { class: "relative" }, ze = {
38
38
  multiple: Boolean,
39
39
  flat: Boolean,
40
40
  native: Boolean
41
- }, Pe = {
41
+ }, Fe = {
42
42
  name: "XSelect",
43
43
  validators: {
44
44
  ...G.validators()
45
45
  }
46
46
  }, il = /* @__PURE__ */ ve({
47
- ...Pe,
48
- props: Fe,
47
+ ...Fe,
48
+ props: xe,
49
49
  emits: D.emits(),
50
50
  setup(Q, { expose: Y, emit: Z }) {
51
- const r = Q, V = Z, k = A(null), S = A(null), _ = A(null), f = A(null), u = A(), t = I({
51
+ const r = Q, R = Z, k = A(null), S = A(null), V = A(null), f = A(null), u = A(), t = I({
52
52
  get() {
53
53
  return r.multiple ? r.modelValue ? Array.isArray(r.modelValue) ? r.modelValue : [r.modelValue] : [] : r.modelValue;
54
54
  },
55
55
  set(e) {
56
- V("update:modelValue", e);
56
+ R("update:modelValue", e);
57
57
  }
58
58
  }), d = I(() => !r.options || r.options.length === 0 ? [] : r.options.map((e) => {
59
59
  let i = !1;
@@ -90,10 +90,10 @@ const Ee = { class: "relative" }, ze = {
90
90
  }
91
91
  function B(e) {
92
92
  var i;
93
- _.value && ((i = _.value[e]) == null || i.$el.scrollIntoView({ block: "nearest", inline: "nearest" }));
93
+ V.value && ((i = V.value[e]) == null || i.$el.scrollIntoView({ block: "nearest", inline: "nearest" }));
94
94
  }
95
95
  O(u, (e) => {
96
- typeof e < "u" && _.value && B(e);
96
+ typeof e < "u" && V.value && B(e);
97
97
  });
98
98
  function N(e, i = "down") {
99
99
  if (!L.value || L.value.length === 0) {
@@ -119,7 +119,7 @@ const Ee = { class: "relative" }, ze = {
119
119
  if (r.multiple)
120
120
  if (Array.isArray(t.value)) {
121
121
  const n = t.value.indexOf(e);
122
- n !== -1 ? t.value.splice(n, 1) : (t.value.push(e), V("update:modelValue", t.value));
122
+ n !== -1 ? t.value.splice(n, 1) : (t.value.push(e), R("update:modelValue", t.value));
123
123
  } else
124
124
  t.value = [e];
125
125
  else
@@ -130,21 +130,21 @@ const Ee = { class: "relative" }, ze = {
130
130
  });
131
131
  }
132
132
  }
133
- function F(e) {
133
+ function x(e) {
134
134
  return !!(typeof e > "u" || e === null || e === "" || Array.isArray(e) && e.length === 0 || !Array.isArray(e) && typeof e == "object" && Object.keys(e).length === 0);
135
135
  }
136
- function P(e, i) {
136
+ function F(e, i) {
137
137
  e.stopPropagation();
138
138
  const l = t.value.indexOf(i);
139
- l !== -1 && (t.value.splice(l, 1), V("update:modelValue", t.value));
139
+ l !== -1 && (t.value.splice(l, 1), R("update:modelValue", t.value));
140
140
  }
141
141
  function $(e) {
142
142
  var l;
143
143
  const i = (l = r.options) == null ? void 0 : l.find((n) => n.value === e);
144
144
  return i ? i.label : "";
145
145
  }
146
- const { focus: q, blur: le } = J(k), {
147
- errorInternal: x,
146
+ const { focus: P, blur: le } = J(k), {
147
+ errorInternal: q,
148
148
  hideFooterInternal: ie,
149
149
  inputListeners: j,
150
150
  reset: te,
@@ -152,7 +152,7 @@ const Ee = { class: "relative" }, ze = {
152
152
  setError: ae,
153
153
  isFocused: re,
154
154
  isInsideForm: oe
155
- } = D(r, { focus: q, emit: V, withListeners: !0 }), se = I(() => {
155
+ } = D(r, { focus: P, emit: R, withListeners: !0 }), se = I(() => {
156
156
  const { focus: e, blur: i } = s(j);
157
157
  return {
158
158
  focus: e,
@@ -161,7 +161,7 @@ const Ee = { class: "relative" }, ze = {
161
161
  });
162
162
  let g = null;
163
163
  O([re, y], ([e, i]) => {
164
- e || i ? g || (g = be(document, "keydown", ue)) : g && (g(), g = null);
164
+ e || i ? g || (g = he(document, "keydown", ue)) : g && (g(), g = null);
165
165
  }, {
166
166
  immediate: !0
167
167
  });
@@ -192,14 +192,14 @@ const Ee = { class: "relative" }, ze = {
192
192
  (M = S.value) == null || M.$el.focus();
193
193
  }));
194
194
  }
195
- const { styles: de, classes: b, className: fe } = he("Select", {}, r, { errorInternal: x });
196
- return Y({ focus: q, blur: le, reset: te, validate: ne, setError: ae }), (e, i) => (a(), c(we, X({
195
+ const { styles: de, classes: h, className: fe } = be("Select", {}, r, { errorInternal: q });
196
+ return Y({ focus: P, blur: le, reset: te, validate: ne, setError: ae }), (e, i) => (a(), c(we, X({
197
197
  ref_key: "labelRef",
198
198
  ref: S,
199
199
  tabindex: "0",
200
200
  class: ["group", [
201
201
  s(fe),
202
- s(b).wrapper
202
+ s(h).wrapper
203
203
  ]],
204
204
  style: s(de),
205
205
  disabled: e.disabled,
@@ -207,11 +207,11 @@ const Ee = { class: "relative" }, ze = {
207
207
  "is-inside-form": s(oe),
208
208
  label: e.label
209
209
  }, H(se.value)), {
210
- default: h(() => [
210
+ default: b(() => [
211
211
  E("div", Ee, [
212
212
  e.native && !e.multiple ? (a(), o("div", {
213
213
  key: 0,
214
- class: R(s(b).box),
214
+ class: _(s(h).box),
215
215
  onClick: i[0] || (i[0] = (l) => {
216
216
  var n;
217
217
  return (n = k.value) == null ? void 0 : n.click();
@@ -224,38 +224,35 @@ const Ee = { class: "relative" }, ze = {
224
224
  outlined: "",
225
225
  removable: "",
226
226
  onRemove: (n) => {
227
- P(n, l);
227
+ F(n, l);
228
228
  }
229
229
  }, {
230
- default: h(() => [
230
+ default: b(() => [
231
231
  C(m($(l)), 1)
232
232
  ]),
233
233
  _: 2
234
234
  }, 1032, ["onRemove"]))), 128))
235
- ])) : !e.multiple && !F(t.value) ? (a(), o(p, { key: 1 }, [
235
+ ])) : !e.multiple && !x(t.value) ? (a(), o(p, { key: 1 }, [
236
236
  C(m($(t.value)), 1)
237
237
  ], 64)) : (a(), o(p, { key: 2 }, [
238
238
  e.placeholder ? (a(), o("div", Ce, m(e.placeholder), 1)) : (a(), o("div", Se, " "))
239
239
  ], 64))
240
- ], 2)) : (a(), c(Ve, {
240
+ ], 2)) : (a(), c(Re, {
241
241
  key: 1,
242
242
  ref_key: "popoverRef",
243
243
  ref: f,
244
- block: "",
245
- disabled: e.disabled || e.loading || e.readonly,
246
- "dismiss-on-click": !e.multiple,
247
- align: "left"
244
+ disabled: e.disabled || e.loading || e.readonly
248
245
  }, {
249
- content: h(() => [
250
- K(_e, {
251
- class: R(s(b).content)
246
+ content: b(() => [
247
+ K(Ve, {
248
+ class: _(s(h).content)
252
249
  }, {
253
- default: h(() => [
250
+ default: b(() => [
254
251
  d.value.length > 0 ? (a(!0), o(p, { key: 0 }, z(d.value, (l, n) => (a(), c(Ie, {
255
252
  key: n,
256
253
  ref_for: !0,
257
254
  ref_key: "itemsRef",
258
- ref: _,
255
+ ref: V,
259
256
  item: l,
260
257
  size: e.size,
261
258
  disabled: l.disabled,
@@ -271,9 +268,9 @@ const Ee = { class: "relative" }, ze = {
271
268
  _: 1
272
269
  }, 8, ["class"])
273
270
  ]),
274
- default: h(() => [
271
+ default: b(() => [
275
272
  E("div", {
276
- class: R([s(b).box])
273
+ class: _([s(h).box])
277
274
  }, [
278
275
  e.multiple && Array.isArray(t.value) && t.value.length > 0 ? (a(), o("div", Ne, [
279
276
  (a(!0), o(p, null, z(t.value, (l) => (a(), c(W, {
@@ -282,15 +279,15 @@ const Ee = { class: "relative" }, ze = {
282
279
  outlined: "",
283
280
  removable: "",
284
281
  onRemove: (n) => {
285
- P(n, l);
282
+ F(n, l);
286
283
  }
287
284
  }, {
288
- default: h(() => [
285
+ default: b(() => [
289
286
  C(m($(l)), 1)
290
287
  ]),
291
288
  _: 2
292
289
  }, 1032, ["onRemove"]))), 128))
293
- ])) : !e.multiple && !F(t.value) ? (a(), o(p, { key: 1 }, [
290
+ ])) : !e.multiple && !x(t.value) ? (a(), o(p, { key: 1 }, [
294
291
  C(m($(t.value)), 1)
295
292
  ], 64)) : (a(), o(p, { key: 2 }, [
296
293
  e.placeholder ? (a(), o("div", Oe, m(e.placeholder), 1)) : (a(), o("div", De, " "))
@@ -298,7 +295,7 @@ const Ee = { class: "relative" }, ze = {
298
295
  ], 2)
299
296
  ]),
300
297
  _: 1
301
- }, 8, ["disabled", "dismiss-on-click"])),
298
+ }, 8, ["disabled"])),
302
299
  pe(E("select", X({
303
300
  id: e.id,
304
301
  ref_key: "elRef",
@@ -320,22 +317,22 @@ const Ee = { class: "relative" }, ze = {
320
317
  [ce, t.value]
321
318
  ]),
322
319
  E("div", {
323
- class: R(s(b).iconWrapper)
320
+ class: _(s(h).iconWrapper)
324
321
  }, [
325
- e.loading ? (a(), c(Re, {
322
+ e.loading ? (a(), c(_e, {
326
323
  key: 0,
327
324
  size: e.size
328
325
  }, null, 8, ["size"])) : me(e.$slots, "icon", { key: 1 }, () => [
329
326
  K(Ae, {
330
327
  icon: s(ge),
331
- class: R([s(b).icon])
328
+ class: _([s(h).icon])
332
329
  }, null, 8, ["icon", "class"])
333
330
  ])
334
331
  ], 2)
335
332
  ]),
336
333
  s(ie) ? ye("", !0) : (a(), c($e, {
337
334
  key: 0,
338
- error: s(x),
335
+ error: s(q),
339
336
  helper: e.helper
340
337
  }, null, 8, ["error", "helper"]))
341
338
  ]),
@@ -1,11 +1,11 @@
1
1
  const s = {
2
2
  classes: {
3
3
  wrapper: "",
4
- drag: "w-[16px] h-[16px] -mt-[11px] -ml-[8px] rounded-full bg-gray-900"
4
+ drag: "w-[16px] h-[16px] -mt-[11px] -ml-[8px] rounded-full bg-gray-900 dark:bg-gray-100"
5
5
  },
6
- styles: ({ props: t, colors: e, css: r }) => {
7
- const a = e.getPalette("primary"), l = e.getPalette(t.color);
8
- return r.variables({
6
+ styles: ({ props: r, colors: e, css: t }) => {
7
+ const a = e.getPalette("primary"), l = e.getPalette(r.color);
8
+ return t.variables({
9
9
  bg: l[500],
10
10
  border: a[500]
11
11
  });