@defaultusr/dai-ui 1.1.15 → 1.1.17

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.
package/dist/main.js CHANGED
@@ -676,6 +676,7 @@ const Y = /* @__PURE__ */ Ie(Oe, [["render", Se]]), Ue = ["id", "type", "pattern
676
676
  inheritAttrs: !1,
677
677
  __name: "checkbox",
678
678
  props: /* @__PURE__ */ M({
679
+ id: {},
679
680
  color: { default: "primary" },
680
681
  size: { default: "small" },
681
682
  validators: {},
@@ -688,7 +689,7 @@ const Y = /* @__PURE__ */ Ie(Oe, [["render", Se]]), Ue = ["id", "type", "pattern
688
689
  }),
689
690
  emits: ["update:modelValue"],
690
691
  setup(e) {
691
- const t = e, o = x(e, "modelValue"), l = q(), i = L("formElement"), { isValid: r } = T(
692
+ const t = e, o = t.id || q(), l = x(e, "modelValue"), i = L("formElement"), { isValid: r } = T(
692
693
  i,
693
694
  t.validators,
694
695
  t.showValidationError
@@ -699,9 +700,9 @@ const Y = /* @__PURE__ */ Ie(Oe, [["render", Se]]), Ue = ["id", "type", "pattern
699
700
  O(d("input", $({
700
701
  ref_key: "formElement",
701
702
  ref: i,
702
- "onUpdate:modelValue": y[0] || (y[0] = (p) => o.value = p)
703
+ "onUpdate:modelValue": y[0] || (y[0] = (p) => l.value = p)
703
704
  }, { ...n.$attrs, class: "" }, {
704
- id: s(l),
705
+ id: s(o),
705
706
  type: "checkbox",
706
707
  class: ["dai-checkbox", {
707
708
  [`dai-checkbox--${e.color}`]: e.color,
@@ -710,11 +711,11 @@ const Y = /* @__PURE__ */ Ie(Oe, [["render", Se]]), Ue = ["id", "type", "pattern
710
711
  "dai-checkbox--lg": e.size === "large"
711
712
  }]
712
713
  }), null, 16, Ke), [
713
- [be, o.value]
714
+ [be, l.value]
714
715
  ]),
715
716
  e.label || n.$slots.default ? (a(), m(F, {
716
717
  key: 0,
717
- for: s(l),
718
+ for: s(o),
718
719
  class: "dai-checkbox-control__label"
719
720
  }, {
720
721
  default: c(() => [
@@ -1353,7 +1354,9 @@ export {
1353
1354
  kt as ComboboxInput,
1354
1355
  je as ComboboxOption,
1355
1356
  Pe as ComboboxOptions,
1357
+ D as Hint,
1356
1358
  $t as Input,
1359
+ F as Label,
1357
1360
  Ut as Menu,
1358
1361
  qt as MenuItem,
1359
1362
  Lt as MenuItems,
package/dist/nuxt.js CHANGED
@@ -1,16 +1,20 @@
1
1
  import { defineNuxtModule as n, addComponent as a } from "@nuxt/kit";
2
- const p = n({
2
+ const b = n({
3
3
  defaults: {
4
4
  prefix: "Dai"
5
5
  },
6
6
  setup(e, o) {
7
7
  o.options.build ||= {}, o.options.build.transpile ||= [], o.options.build.transpile.push("@defaultusr/dai-ui");
8
8
  const i = [
9
- "Popover",
10
- "Menu",
11
- "TabContainer",
12
- "TabPanel",
13
9
  "Btn",
10
+ // Input Controls
11
+ "Label",
12
+ "Hint",
13
+ "Combobox",
14
+ "ComboboxInput",
15
+ "ComboboxButton",
16
+ "ComboboxOptions",
17
+ "ComboboxOption",
14
18
  "Input",
15
19
  "Textarea",
16
20
  "Select",
@@ -18,16 +22,15 @@ const p = n({
18
22
  "Checkbox",
19
23
  "Radio",
20
24
  "Switch",
25
+ "Popover",
21
26
  "PopoverDialog",
22
- "Combobox",
23
- "ComboboxInput",
24
- "ComboboxButton",
25
- "ComboboxOptions",
26
- "ComboboxOption",
27
+ "Menu",
27
28
  "MenuItems",
28
29
  "MenuItem",
29
- "Tab",
30
+ "TabContainer",
30
31
  "TabList",
32
+ "Tab",
33
+ "TabPanel",
31
34
  "Offcanvas",
32
35
  "Notification",
33
36
  "NotificationQueue",
@@ -43,5 +46,5 @@ const p = n({
43
46
  }
44
47
  });
45
48
  export {
46
- p as default
49
+ b as default
47
50
  };
@@ -1,4 +1,5 @@
1
1
  type __VLS_Props = {
2
+ id?: string;
2
3
  color?: "primary" | "secondary" | "success" | "warning" | "danger" | "info";
3
4
  size?: "small" | "medium" | "large";
4
5
  validators?: Array<(v: string) => boolean | string>;
@@ -0,0 +1,2 @@
1
+ export { default as Label } from "./label.vue";
2
+ export { default as Hint } from "./hint.vue";
@@ -1,3 +1,4 @@
1
+ export * from "./common";
1
2
  export * from "./combobox";
2
3
  export { default as Input } from "./input/input.vue";
3
4
  export { default as Select } from "./select/select.vue";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defaultusr/dai-ui",
3
- "version": "1.1.15",
3
+ "version": "1.1.17",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"