@wikicasa-dev/components 1.10.1 → 2.0.1

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 (45) hide show
  1. package/dist/AccessibleSelect.js +1 -1
  2. package/dist/BaseAutocomplete.js +1 -1
  3. package/dist/BaseButton.js +1 -1
  4. package/dist/BaseDropDown.js +1 -1
  5. package/dist/BaseIcon.js +24 -36
  6. package/dist/BaseModal.js +1 -1
  7. package/dist/BaseTabList.js +1 -1
  8. package/dist/BaseTabView.js +1 -1
  9. package/dist/CheckboxBtn.js +39 -40
  10. package/dist/CheckboxGroup.js +1 -1
  11. package/dist/RadioButton.js +1 -1
  12. package/dist/RadioGroup.js +1 -1
  13. package/dist/StaticSpinner.js +2 -2
  14. package/dist/UIKit/AccessibleSelect.vue.d.ts +35 -0
  15. package/dist/UIKit/BaseButton.vue.d.ts +21 -26
  16. package/dist/UIKit/BaseDropDown.vue.d.ts +3 -0
  17. package/dist/UIKit/BaseFloatingLabel.vue.d.ts +1 -1
  18. package/dist/UIKit/BaseIcon.vue.d.ts +16 -49
  19. package/dist/UIKit/BaseUploadFile.vue.d.ts +2 -2
  20. package/dist/UIKit/Checkbox/CheckboxBtn.vue.d.ts +21 -9
  21. package/dist/UIKit/Checkbox/CheckboxGroup.vue.d.ts +36 -15
  22. package/dist/UIKit/Radio/RadioButton.vue.d.ts +18 -9
  23. package/dist/UIKit/Radio/RadioGroup.vue.d.ts +16 -16
  24. package/dist/UIKit/StaticSpinner.vue.d.ts +1 -4
  25. package/dist/UIKit/types.d.ts +5 -0
  26. package/dist/assets/BaseIcon.css +1 -1
  27. package/dist/assets/CheckboxBtn.css +1 -1
  28. package/dist/assets/StaticSpinner.css +1 -1
  29. package/dist/assets/index.css +1 -1
  30. package/dist/chunks/{AccessibleSelect.vue_vue_type_script_setup_true_lang.BlYI8zO3.js → AccessibleSelect.vue_vue_type_script_setup_true_lang.MhVm5k0I.js} +43 -35
  31. package/dist/chunks/{BaseAutocomplete.vue_vue_type_script_setup_true_lang.FVR77AHA.js → BaseAutocomplete.vue_vue_type_script_setup_true_lang.CwGssIPe.js} +1 -1
  32. package/dist/chunks/BaseButton.vue_vue_type_script_setup_true_lang.BWZPE2Gf.js +66 -0
  33. package/dist/chunks/{BaseDropDown.vue_vue_type_script_setup_true_lang.B6bPMnvl.js → BaseDropDown.vue_vue_type_script_setup_true_lang.H0XcZCcL.js} +16 -15
  34. package/dist/chunks/{BaseModal.vue_vue_type_style_index_0_lang.Bl0EkSNw.js → BaseModal.vue_vue_type_style_index_0_lang.CautEumd.js} +2 -2
  35. package/dist/chunks/{BaseTabView.vue_vue_type_script_setup_true_lang.CrzWV8VV.js → BaseTabView.vue_vue_type_script_setup_true_lang.7M1aa7PG.js} +1 -1
  36. package/dist/chunks/CheckboxGroup.vue_vue_type_script_setup_true_lang.JlHKkjHJ.js +111 -0
  37. package/dist/chunks/RadioButton.vue_vue_type_script_setup_true_lang.CiJAhkRj.js +58 -0
  38. package/dist/chunks/RadioGroup.vue_vue_type_script_setup_true_lang.BalzO73O.js +62 -0
  39. package/dist/index.js +9 -9
  40. package/package.json +1 -1
  41. package/dist/chunks/BaseButton.vue_vue_type_script_setup_true_lang.dlLTK59i.js +0 -79
  42. package/dist/chunks/CheckboxGroup.vue_vue_type_script_setup_true_lang.D-AjsQLI.js +0 -100
  43. package/dist/chunks/RadioButton.vue_vue_type_script_setup_true_lang.DR6a7QAi.js +0 -53
  44. package/dist/chunks/RadioGroup.vue_vue_type_script_setup_true_lang.BYlMCUWP.js +0 -59
  45. package/dist/chunks/{BaseTabList.vue_vue_type_script_setup_true_lang.BEX0zH-7.js → BaseTabList.vue_vue_type_script_setup_true_lang.tsvA8m8Z.js} +1 -1
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./chunks/AccessibleSelect.vue_vue_type_script_setup_true_lang.BlYI8zO3.js";
1
+ import { _ as f } from "./chunks/AccessibleSelect.vue_vue_type_script_setup_true_lang.MhVm5k0I.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./chunks/BaseAutocomplete.vue_vue_type_script_setup_true_lang.FVR77AHA.js";
1
+ import { _ as f } from "./chunks/BaseAutocomplete.vue_vue_type_script_setup_true_lang.CwGssIPe.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./chunks/BaseButton.vue_vue_type_script_setup_true_lang.dlLTK59i.js";
1
+ import { _ as f } from "./chunks/BaseButton.vue_vue_type_script_setup_true_lang.BWZPE2Gf.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./chunks/BaseDropDown.vue_vue_type_script_setup_true_lang.B6bPMnvl.js";
1
+ import { _ as f } from "./chunks/BaseDropDown.vue_vue_type_script_setup_true_lang.H0XcZCcL.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/dist/BaseIcon.js CHANGED
@@ -1,40 +1,28 @@
1
- import { defineComponent as e, openBlock as a, createElementBlock as i, normalizeClass as n, normalizeStyle as o } from "vue";
2
- import { _ as s } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
3
- import './assets/BaseIcon.css';const r = e({
4
- name: "BaseIcon",
1
+ import { defineComponent as e, openBlock as a, createElementBlock as i, normalizeClass as o, normalizeStyle as s } from "vue";
2
+ import { _ as l } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
3
+ import './assets/BaseIcon.css';const n = ["id", "alt", "src", "width", "height", "loading"], r = /* @__PURE__ */ e({
4
+ __name: "BaseIcon",
5
5
  props: {
6
- lazyLoading: { type: Boolean, default: !1 },
7
- altAttribute: {
8
- type: String,
9
- default: ""
10
- },
11
- iconName: {
12
- type: String,
13
- default: ""
14
- },
15
- iconType: {
16
- type: String,
17
- default: "icon-md"
18
- },
19
- iconClass: {
20
- type: String,
21
- default: "uikit-mr-5px"
22
- }
6
+ lazyLoading: { type: Boolean },
7
+ altAttribute: {},
8
+ iconType: { default: "icon-md" },
9
+ iconClass: { default: "uikit-mr-5px" },
10
+ width: {},
11
+ height: {}
12
+ },
13
+ setup(d) {
14
+ return (t, c) => (a(), i("img", {
15
+ id: t.$attrs.id,
16
+ class: o(["uikit-inline-block", t.iconType, t.iconClass]),
17
+ alt: t.altAttribute || t.$attrs.alt,
18
+ style: s(t.$attrs.style),
19
+ src: t.$attrs.src ? t.$attrs.src : "",
20
+ width: t.width,
21
+ height: t.height,
22
+ loading: t.lazyLoading ? "lazy" : "eager"
23
+ }, null, 14, n));
23
24
  }
24
- }), l = ["id", "alt", "src", "width", "height", "loading"];
25
- function d(t, p, c, f, m, u) {
26
- return a(), i("img", {
27
- id: t.$attrs.id,
28
- class: n(["uikit-inline-block", t.iconType, t.iconClass]),
29
- alt: t.altAttribute || t.$attrs.alt,
30
- style: o(t.$attrs.style),
31
- src: t.$attrs.src ? t.$attrs.src : "",
32
- width: t.$attrs.width,
33
- height: t.$attrs.height,
34
- loading: t.lazyLoading ? "lazy" : "eager"
35
- }, null, 14, l);
36
- }
37
- const h = /* @__PURE__ */ s(r, [["render", d], ["__scopeId", "data-v-8b2e5b08"]]);
25
+ }), m = /* @__PURE__ */ l(r, [["__scopeId", "data-v-40c30bac"]]);
38
26
  export {
39
- h as default
27
+ m as default
40
28
  };
package/dist/BaseModal.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./chunks/BaseModal.vue_vue_type_style_index_0_lang.Bl0EkSNw.js";
1
+ import { _ as f } from "./chunks/BaseModal.vue_vue_type_style_index_0_lang.CautEumd.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./chunks/BaseTabList.vue_vue_type_script_setup_true_lang.BEX0zH-7.js";
1
+ import { _ as f } from "./chunks/BaseTabList.vue_vue_type_script_setup_true_lang.tsvA8m8Z.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./chunks/BaseTabView.vue_vue_type_script_setup_true_lang.CrzWV8VV.js";
1
+ import { _ as f } from "./chunks/BaseTabView.vue_vue_type_script_setup_true_lang.7M1aa7PG.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,73 +1,72 @@
1
- import { defineComponent as f, useId as h, useAttrs as m, openBlock as o, createElementBlock as s, normalizeClass as a, withModifiers as r, createElementVNode as d, unref as u, renderSlot as g, toDisplayString as C, createCommentVNode as y } from "vue";
2
- import { _ as V } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
3
- import './assets/CheckboxBtn.css';const v = ["id"], w = ["id", "data-cy", "checked", "disabled"], $ = ["for"], B = /* @__PURE__ */ f({
1
+ import { defineComponent as b, useId as f, computed as h, openBlock as r, createElementBlock as s, normalizeClass as l, withModifiers as o, createElementVNode as u, renderSlot as m, toDisplayString as C, createCommentVNode as g } from "vue";
2
+ import { _ as y } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
3
+ import './assets/CheckboxBtn.css';const v = ["id"], V = ["id", "data-cy", "checked", "disabled"], B = ["for"], w = /* @__PURE__ */ b({
4
4
  __name: "CheckboxBtn",
5
5
  props: {
6
6
  id: {},
7
+ dataCy: {},
8
+ disabled: { type: Boolean },
9
+ checked: { type: Boolean, default: () => {
10
+ } },
11
+ required: { type: Boolean },
7
12
  inputClass: {},
8
13
  inline: { type: Boolean, default: !1 },
9
14
  label: { default: "" },
10
15
  labelClass: {},
11
16
  isValid: { default: null },
12
17
  containerId: {},
13
- containerClass: {},
14
18
  handleLabelClick: { type: Boolean, default: !0 },
15
19
  modelValue: { type: Boolean, default: !1 }
16
20
  },
17
- emits: ["click", "change", "udpate:modelValue"],
18
- setup(i, { emit: k }) {
19
- const l = h(), c = m(), n = k, p = () => {
20
- const e = c.checked ?? i.modelValue;
21
- n("change", {
22
- id: i.id ?? l,
21
+ emits: ["click", "change", "update:modelValue"],
22
+ setup(i, { emit: c }) {
23
+ const a = c, d = f(), n = h(() => `${i.id ?? d}`), k = () => {
24
+ const e = i.checked ?? i.modelValue;
25
+ a("change", {
26
+ id: i.id ?? d,
23
27
  label: i.label,
24
28
  checked: !e
25
- }), n("udpate:modelValue", !e);
26
- }, b = () => {
27
- p(), i.handleLabelClick && n("click");
29
+ }), a("update:modelValue", !e);
30
+ }, p = () => {
31
+ k(), i.handleLabelClick && a("click");
28
32
  };
29
- return (e, t) => (o(), s("div", {
33
+ return (e, t) => (r(), s("div", {
30
34
  id: e.containerId,
31
- class: a(["uikit-group uikit-relative uikit-block uikit-pl-25px hover:uikit-cursor-pointer", [
32
- { "uikit-mr-4 uikit-inline-flex uikit-items-center": e.inline },
33
- { "uikit-py-10px": !e.inline && !e.$attrs["wrapper-margin-y"] },
34
- e.$attrs["wrapper-margin-y"],
35
- e.containerClass
36
- ]]),
37
- onClick: r(b, ["stop"])
35
+ class: l(["uikit-group uikit-relative uikit-items-center uikit-pl-30px hover:uikit-cursor-pointer", [{ "uikit-inline-flex": e.inline }, { "uikit-flex": !e.inline }]]),
36
+ onClick: o(p, ["stop"])
38
37
  }, [
39
- d("input", {
40
- id: `${e.id ?? u(l)}`,
38
+ u("input", {
39
+ id: n.value,
41
40
  ref: "checkbox",
42
- "data-cy": e.$attrs["data-cy"],
43
- class: a(["uikit-pointer-events-none uikit-absolute uikit-left-0 uikit-h-4 uikit-w-4 uikit-appearance-none uikit-rounded-3xs uikit-border uikit-border-solid uikit-border-w-secondary uikit-bg-white checked:uikit-bg-center checked:uikit-bg-no-repeat group-hover:uikit-cursor-pointer", [
41
+ "data-cy": e.dataCy,
42
+ class: l(["uikit-pointer-events-none uikit-absolute uikit-left-0 uikit-size-4 uikit-appearance-none uikit-rounded-3xs uikit-border uikit-border-solid uikit-border-w-secondary uikit-bg-white checked:uikit-bg-center checked:uikit-bg-no-repeat group-hover:uikit-cursor-pointer", [
44
43
  { "!uikit-border-w-danger": e.isValid === !1 },
45
44
  e.inputClass,
46
45
  e.isValid === !1 ? "checked-bg-invalid" : "checked-bg"
47
46
  ]]),
48
47
  type: "checkbox",
49
- checked: e.$attrs.checked ?? e.modelValue,
50
- disabled: e.$attrs.disabled,
51
- onChange: t[0] || (t[0] = r(() => {
48
+ checked: e.checked ?? e.modelValue,
49
+ disabled: e.disabled,
50
+ onChange: t[0] || (t[0] = o(() => {
52
51
  }, ["prevent", "stop"])),
53
- onClick: t[1] || (t[1] = r(() => {
52
+ onClick: t[1] || (t[1] = o(() => {
54
53
  }, ["prevent", "stop"]))
55
- }, null, 42, w),
56
- g(e.$slots, "label", {}, () => [
57
- d("label", {
58
- class: a(["uikit-pl-10px uikit-text-sm group-hover:uikit-cursor-pointer", [e.labelClass, { "uikit-text-w-danger": e.isValid === !1 }]]),
59
- for: `${e.id ?? u(l)}`
60
- }, C(e.label), 11, $),
61
- e.$attrs.required ? (o(), s("span", {
54
+ }, null, 42, V),
55
+ m(e.$slots, "label", {}, () => [
56
+ u("label", {
57
+ class: l(["uikit-text-sm group-hover:uikit-cursor-pointer", [e.labelClass, { "uikit-text-w-danger": e.isValid === !1 }]]),
58
+ for: n.value
59
+ }, C(e.label), 11, B),
60
+ e.required ? (r(), s("span", {
62
61
  key: 0,
63
- class: a(["required after:uikit-content-['*']", [
62
+ class: l(["required after:uikit-content-['*']", [
64
63
  e.isValid !== !1 ? "after:uikit-text-w-primary" : "after:uikit-text-w-danger"
65
64
  ]])
66
- }, null, 2)) : y("", !0)
65
+ }, null, 2)) : g("", !0)
67
66
  ], !0)
68
67
  ], 10, v));
69
68
  }
70
- }), E = /* @__PURE__ */ V(B, [["__scopeId", "data-v-978e72e3"]]);
69
+ }), z = /* @__PURE__ */ y(w, [["__scopeId", "data-v-be174811"]]);
71
70
  export {
72
- E as default
71
+ z as default
73
72
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./chunks/CheckboxGroup.vue_vue_type_script_setup_true_lang.D-AjsQLI.js";
1
+ import { _ as f } from "./chunks/CheckboxGroup.vue_vue_type_script_setup_true_lang.JlHKkjHJ.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./chunks/RadioButton.vue_vue_type_script_setup_true_lang.DR6a7QAi.js";
1
+ import { _ as f } from "./chunks/RadioButton.vue_vue_type_script_setup_true_lang.CiJAhkRj.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./chunks/RadioGroup.vue_vue_type_script_setup_true_lang.BYlMCUWP.js";
1
+ import { _ as f } from "./chunks/RadioGroup.vue_vue_type_script_setup_true_lang.BalzO73O.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -22,7 +22,7 @@ import './assets/StaticSpinner.css';const c = {
22
22
  }, null, 8, i)
23
23
  ]));
24
24
  }
25
- }), k = /* @__PURE__ */ n(a, [["__scopeId", "data-v-ff694776"]]);
25
+ }), d = /* @__PURE__ */ n(a, [["__scopeId", "data-v-10e0c0fd"]]);
26
26
  export {
27
- k as default
27
+ d as default
28
28
  };
@@ -1,4 +1,5 @@
1
1
  import { AccessibleSelectOptions } from './types';
2
+ import { ClassType } from '@wikicasa-dev/types';
2
3
  declare function __VLS_template(): {
3
4
  slots: {
4
5
  lefticon?(_: {}): any;
@@ -25,6 +26,16 @@ declare const __VLS_component: import('vue').DefineComponent<{
25
26
  */
26
27
  closeOnBodyPressed?: boolean;
27
28
  border?: boolean;
29
+ fieldsetClasses?: ClassType;
30
+ legendClasses?: ClassType;
31
+ dropdownClasses?: ClassType;
32
+ arrowIcon?: Partial<{
33
+ width: number;
34
+ height: number;
35
+ strokeColor: `#${string}`;
36
+ classes: ClassType;
37
+ }>;
38
+ dataCy?: string;
28
39
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
29
40
  "update:modelValue": (args_0: AccessibleSelectOptions) => any;
30
41
  }, string, import('vue').PublicProps, Readonly<{
@@ -43,15 +54,39 @@ declare const __VLS_component: import('vue').DefineComponent<{
43
54
  */
44
55
  closeOnBodyPressed?: boolean;
45
56
  border?: boolean;
57
+ fieldsetClasses?: ClassType;
58
+ legendClasses?: ClassType;
59
+ dropdownClasses?: ClassType;
60
+ arrowIcon?: Partial<{
61
+ width: number;
62
+ height: number;
63
+ strokeColor: `#${string}`;
64
+ classes: ClassType;
65
+ }>;
66
+ dataCy?: string;
46
67
  }> & Readonly<{
47
68
  "onUpdate:modelValue"?: ((args_0: AccessibleSelectOptions) => any) | undefined;
48
69
  }>, {
49
70
  label: string;
71
+ arrowIcon: Partial<{
72
+ width: number;
73
+ height: number;
74
+ strokeColor: `#${string}`;
75
+ classes: ClassType;
76
+ }>;
77
+ dataCy: string;
50
78
  isValid: boolean | null;
51
79
  modelValue: AccessibleSelectOptions;
52
80
  dropdownPosition: "top" | "bottom";
81
+ feedback: Partial<{
82
+ valid: string;
83
+ invalid: string;
84
+ }>;
53
85
  closeOnBodyPressed: boolean;
54
86
  border: boolean;
87
+ fieldsetClasses: ClassType;
88
+ legendClasses: ClassType;
89
+ dropdownClasses: ClassType;
55
90
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
56
91
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
57
92
  export default _default;
@@ -1,4 +1,5 @@
1
- import { ButtonTypes } from '@wikicasa-dev/types';
1
+ import { ButtonType } from './types';
2
+ type HTMLButtonType = "button" | "submit" | "reset" | undefined;
2
3
  declare function __VLS_template(): {
3
4
  slots: {
4
5
  default?(_: {
@@ -11,50 +12,44 @@ declare function __VLS_template(): {
11
12
  };
12
13
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
14
  declare const __VLS_component: import('vue').DefineComponent<{
14
- lazyLoadIcon?: boolean;
15
- btnClass?: ButtonTypes;
15
+ btnClass?: ButtonType;
16
16
  outlined?: boolean;
17
17
  size?: "sm" | "lg" | "";
18
- iconName?: string;
19
- iconNameHovering?: string;
20
- iconClass?: string;
21
- isEmpty?: boolean;
18
+ withMinWidth?: boolean;
22
19
  keepActive?: boolean;
23
20
  isLoading?: boolean;
24
21
  disabled?: boolean;
22
+ ariaLabel?: string;
23
+ /**
24
+ * Add the title for screen readers when the button consists of just an icon
25
+ */
26
+ title?: string;
27
+ dataCy?: string;
28
+ type?: HTMLButtonType;
25
29
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
26
30
  click: (e: Event) => any;
27
31
  mouseover: (e: Event) => any;
28
32
  mouseout: (e: Event) => any;
29
33
  }, string, import('vue').PublicProps, Readonly<{
30
- lazyLoadIcon?: boolean;
31
- btnClass?: ButtonTypes;
34
+ btnClass?: ButtonType;
32
35
  outlined?: boolean;
33
36
  size?: "sm" | "lg" | "";
34
- iconName?: string;
35
- iconNameHovering?: string;
36
- iconClass?: string;
37
- isEmpty?: boolean;
37
+ withMinWidth?: boolean;
38
38
  keepActive?: boolean;
39
39
  isLoading?: boolean;
40
40
  disabled?: boolean;
41
+ ariaLabel?: string;
42
+ /**
43
+ * Add the title for screen readers when the button consists of just an icon
44
+ */
45
+ title?: string;
46
+ dataCy?: string;
47
+ type?: HTMLButtonType;
41
48
  }> & Readonly<{
42
49
  onClick?: ((e: Event) => any) | undefined;
43
50
  onMouseover?: ((e: Event) => any) | undefined;
44
51
  onMouseout?: ((e: Event) => any) | undefined;
45
- }>, {
46
- disabled: boolean;
47
- size: "sm" | "lg" | "";
48
- iconName: string;
49
- iconClass: string;
50
- lazyLoadIcon: boolean;
51
- btnClass: ButtonTypes;
52
- outlined: boolean;
53
- iconNameHovering: string;
54
- isEmpty: boolean;
55
- keepActive: boolean;
56
- isLoading: boolean;
57
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
52
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
58
53
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
59
54
  export default _default;
60
55
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -32,6 +32,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
32
32
  dropdownElement?: "div" | "ul" | "ol";
33
33
  keepState?: "opened" | "closed" | "";
34
34
  activateKeyboardController?: boolean;
35
+ dataCy?: string;
35
36
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
36
37
  click: () => any;
37
38
  "update:dropdownState": (args_0: boolean) => any;
@@ -49,11 +50,13 @@ declare const __VLS_component: import('vue').DefineComponent<{
49
50
  dropdownElement?: "div" | "ul" | "ol";
50
51
  keepState?: "opened" | "closed" | "";
51
52
  activateKeyboardController?: boolean;
53
+ dataCy?: string;
52
54
  }> & Readonly<{
53
55
  onClick?: (() => any) | undefined;
54
56
  "onUpdate:dropdownState"?: ((args_0: boolean) => any) | undefined;
55
57
  }>, {
56
58
  arrowWidth: number;
59
+ dataCy: string;
57
60
  btnClasses: string;
58
61
  labelClasses: ClassType;
59
62
  dropdownClasses: ClassType;
@@ -15,8 +15,8 @@ declare const _default: import('vue').DefineComponent<{
15
15
  }> & Readonly<{
16
16
  onClick?: ((...args: any[]) => any) | undefined;
17
17
  }>, {
18
- isValid: Nullable<boolean>;
19
18
  disabled: string | boolean;
19
+ isValid: Nullable<boolean>;
20
20
  labelState: LabelState;
21
21
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
22
22
  export default _default;
@@ -1,50 +1,17 @@
1
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
- lazyLoading: {
3
- type: BooleanConstructor;
4
- default: boolean;
5
- };
6
- altAttribute: {
7
- type: StringConstructor;
8
- default: string;
9
- };
10
- iconName: {
11
- type: StringConstructor;
12
- default: string;
13
- };
14
- iconType: {
15
- type: () => "icon-sm" | "icon-md" | "icon-lg" | "icon-xl" | "icon-xxl";
16
- default: string;
17
- };
18
- iconClass: {
19
- type: StringConstructor;
20
- default: string;
21
- };
22
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
23
- lazyLoading: {
24
- type: BooleanConstructor;
25
- default: boolean;
26
- };
27
- altAttribute: {
28
- type: StringConstructor;
29
- default: string;
30
- };
31
- iconName: {
32
- type: StringConstructor;
33
- default: string;
34
- };
35
- iconType: {
36
- type: () => "icon-sm" | "icon-md" | "icon-lg" | "icon-xl" | "icon-xxl";
37
- default: string;
38
- };
39
- iconClass: {
40
- type: StringConstructor;
41
- default: string;
42
- };
43
- }>> & Readonly<{}>, {
44
- lazyLoading: boolean;
45
- altAttribute: string;
46
- iconName: string;
47
- iconType: "icon-sm" | "icon-md" | "icon-lg" | "icon-xl" | "icon-xxl";
48
- iconClass: string;
49
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
1
+ import { ClassType } from '@wikicasa-dev/types';
2
+ declare const _default: import('vue').DefineComponent<{
3
+ lazyLoading?: boolean;
4
+ altAttribute?: string;
5
+ iconType?: "icon-sm" | "icon-md" | "icon-lg" | "icon-xl" | "icon-xxl";
6
+ iconClass?: ClassType;
7
+ width?: number;
8
+ height?: number;
9
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
10
+ lazyLoading?: boolean;
11
+ altAttribute?: string;
12
+ iconType?: "icon-sm" | "icon-md" | "icon-lg" | "icon-xl" | "icon-xxl";
13
+ iconClass?: ClassType;
14
+ width?: number;
15
+ height?: number;
16
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
50
17
  export default _default;
@@ -33,11 +33,11 @@ declare const __VLS_component: import('vue').DefineComponent<{
33
33
  onUploaded?: ((args_0: File) => any) | undefined;
34
34
  }>, {
35
35
  clear: boolean;
36
- labelText: string;
37
36
  labelClasses: ClassType;
38
37
  fieldsetClasses: ClassType;
39
- floatingLabelClasses: ClassType;
40
38
  legendClasses: ClassType;
39
+ labelText: string;
40
+ floatingLabelClasses: ClassType;
41
41
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
42
42
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
43
43
  export default _default;
@@ -1,4 +1,4 @@
1
- import { Nullable } from '@wikicasa-dev/types';
1
+ import { ClassType, Nullable } from '@wikicasa-dev/types';
2
2
  type EventPayload = {
3
3
  id: string | number;
4
4
  label: string | number;
@@ -16,34 +16,46 @@ declare function __VLS_template(): {
16
16
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
17
  declare const __VLS_component: import('vue').DefineComponent<{
18
18
  id?: string | number;
19
- inputClass?: string;
19
+ dataCy?: string;
20
+ disabled?: boolean;
21
+ checked?: boolean;
22
+ required?: boolean;
23
+ inputClass?: ClassType;
20
24
  inline?: boolean;
21
25
  label?: string | number;
22
- labelClass?: string;
26
+ labelClass?: ClassType;
23
27
  isValid?: Nullable<boolean>;
24
28
  containerId?: string;
25
- containerClass?: string;
29
+ /**
30
+ * If false, the click event won't be emitted
31
+ */
26
32
  handleLabelClick?: boolean;
27
33
  modelValue?: boolean;
28
34
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
29
35
  click: () => any;
30
36
  change: (args_0: EventPayload) => any;
31
- "udpate:modelValue": (args_0: boolean) => any;
37
+ "update:modelValue": (args_0: boolean) => any;
32
38
  }, string, import('vue').PublicProps, Readonly<{
33
39
  id?: string | number;
34
- inputClass?: string;
40
+ dataCy?: string;
41
+ disabled?: boolean;
42
+ checked?: boolean;
43
+ required?: boolean;
44
+ inputClass?: ClassType;
35
45
  inline?: boolean;
36
46
  label?: string | number;
37
- labelClass?: string;
47
+ labelClass?: ClassType;
38
48
  isValid?: Nullable<boolean>;
39
49
  containerId?: string;
40
- containerClass?: string;
50
+ /**
51
+ * If false, the click event won't be emitted
52
+ */
41
53
  handleLabelClick?: boolean;
42
54
  modelValue?: boolean;
43
55
  }> & Readonly<{
44
56
  onClick?: (() => any) | undefined;
45
57
  onChange?: ((args_0: EventPayload) => any) | undefined;
46
- "onUdpate:modelValue"?: ((args_0: boolean) => any) | undefined;
58
+ "onUpdate:modelValue"?: ((args_0: boolean) => any) | undefined;
47
59
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
48
60
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
49
61
  export default _default;