@quidgest/ui 0.14.14 → 0.14.15

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 (217) hide show
  1. package/dist/ui.css +89 -48
  2. package/dist/ui.esm.js +3279 -3171
  3. package/dist/ui.js +16 -16
  4. package/dist/ui.min.css +1 -1
  5. package/dist/ui.min.js +656 -647
  6. package/dist/ui.scss +99 -57
  7. package/esm/components/QAccordion/QAccordion.d.ts.map +1 -1
  8. package/esm/components/QAccordion/QAccordion.vue.js +26 -13
  9. package/esm/components/QAccordion/index.d.ts +15 -3
  10. package/esm/components/QAccordion/index.d.ts.map +1 -1
  11. package/esm/components/QAccordion/types.d.ts +13 -3
  12. package/esm/components/QAccordion/types.d.ts.map +1 -1
  13. package/esm/components/QBadge/QBadge.d.ts +2 -1
  14. package/esm/components/QBadge/QBadge.d.ts.map +1 -1
  15. package/esm/components/QBadge/QBadge.vue.js +33 -27
  16. package/esm/components/QBadge/index.d.ts +6 -3
  17. package/esm/components/QBadge/index.d.ts.map +1 -1
  18. package/esm/components/QBadge/types.d.ts +13 -5
  19. package/esm/components/QBadge/types.d.ts.map +1 -1
  20. package/esm/components/QBadgeIndicator/QBadgeIndicator.d.ts +1 -1
  21. package/esm/components/QBadgeIndicator/QBadgeIndicator.d.ts.map +1 -1
  22. package/esm/components/QBadgeIndicator/QBadgeIndicator.vue.js +19 -14
  23. package/esm/components/QBadgeIndicator/index.d.ts +3 -3
  24. package/esm/components/QBadgeIndicator/types.d.ts +6 -4
  25. package/esm/components/QBadgeIndicator/types.d.ts.map +1 -1
  26. package/esm/components/QButton/QButton.d.ts +2 -2
  27. package/esm/components/QButton/QButton.d.ts.map +1 -1
  28. package/esm/components/QButton/QButton.vue.js +17 -15
  29. package/esm/components/QButton/index.d.ts +6 -6
  30. package/esm/components/QButton/types.d.ts +6 -7
  31. package/esm/components/QButton/types.d.ts.map +1 -1
  32. package/esm/components/QButtonGroup/QButtonGroup.d.ts.map +1 -1
  33. package/esm/components/QButtonGroup/QButtonGroup.vue.js +19 -24
  34. package/esm/components/QButtonGroup/types.d.ts +2 -5
  35. package/esm/components/QButtonGroup/types.d.ts.map +1 -1
  36. package/esm/components/QButtonToggle/QButtonToggle.d.ts.map +1 -1
  37. package/esm/components/QButtonToggle/QButtonToggle.vue.js +24 -22
  38. package/esm/components/QButtonToggle/index.d.ts +21 -3
  39. package/esm/components/QButtonToggle/index.d.ts.map +1 -1
  40. package/esm/components/QButtonToggle/types.d.ts +4 -7
  41. package/esm/components/QButtonToggle/types.d.ts.map +1 -1
  42. package/esm/components/QCard/QCard.d.ts +2 -2
  43. package/esm/components/QCard/QCard.d.ts.map +1 -1
  44. package/esm/components/QCard/QCard.vue.js +48 -46
  45. package/esm/components/QCard/index.d.ts +6 -6
  46. package/esm/components/QCard/types.d.ts +6 -7
  47. package/esm/components/QCard/types.d.ts.map +1 -1
  48. package/esm/components/QCheckbox/QCheckbox.d.ts +2 -2
  49. package/esm/components/QCheckbox/QCheckbox.d.ts.map +1 -1
  50. package/esm/components/QCheckbox/QCheckbox.vue.js +72 -78
  51. package/esm/components/QCheckbox/QCheckboxLabel.vue.js +9 -7
  52. package/esm/components/QCheckbox/index.d.ts +21 -21
  53. package/esm/components/QCheckbox/types.d.ts +10 -15
  54. package/esm/components/QCheckbox/types.d.ts.map +1 -1
  55. package/esm/components/QCollapsible/QCollapsible.d.ts +2 -2
  56. package/esm/components/QCollapsible/QCollapsible.d.ts.map +1 -1
  57. package/esm/components/QCollapsible/QCollapsible.vue.js +12 -9
  58. package/esm/components/QCollapsible/index.d.ts +33 -6
  59. package/esm/components/QCollapsible/index.d.ts.map +1 -1
  60. package/esm/components/QCollapsible/types.d.ts +15 -15
  61. package/esm/components/QCollapsible/types.d.ts.map +1 -1
  62. package/esm/components/QColorPicker/QColorPicker.d.ts.map +1 -1
  63. package/esm/components/QColorPicker/QColorPicker.vue.js +16 -15
  64. package/esm/components/QColorPicker/index.d.ts +27 -3
  65. package/esm/components/QColorPicker/index.d.ts.map +1 -1
  66. package/esm/components/QColorPicker/types.d.ts +2 -9
  67. package/esm/components/QColorPicker/types.d.ts.map +1 -1
  68. package/esm/components/QCombobox/QCombobox.d.ts +209 -75
  69. package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
  70. package/esm/components/QCombobox/QCombobox.vue.js +64 -68
  71. package/esm/components/QCombobox/index.d.ts +331 -89
  72. package/esm/components/QCombobox/index.d.ts.map +1 -1
  73. package/esm/components/QCombobox/types.d.ts +14 -51
  74. package/esm/components/QCombobox/types.d.ts.map +1 -1
  75. package/esm/components/QCombobox/types.js +3 -3
  76. package/esm/components/QDateTimePicker/QDateTimePicker.vue.js +2 -1
  77. package/esm/components/QDateTimePicker/index.d.ts +51 -3
  78. package/esm/components/QDateTimePicker/index.d.ts.map +1 -1
  79. package/esm/components/QDateTimePicker/types.d.ts +2 -31
  80. package/esm/components/QDateTimePicker/types.d.ts.map +1 -1
  81. package/esm/components/QDialog/QDialog.d.ts +1 -1
  82. package/esm/components/QDialog/QDialog.d.ts.map +1 -1
  83. package/esm/components/QDialog/QDialog.vue.js +36 -37
  84. package/esm/components/QDialog/index.d.ts +39 -6
  85. package/esm/components/QDialog/index.d.ts.map +1 -1
  86. package/esm/components/QDialog/types.d.ts +14 -21
  87. package/esm/components/QDialog/types.d.ts.map +1 -1
  88. package/esm/components/QDropdownMenu/QDropdownMenu.d.ts +1 -1
  89. package/esm/components/QDropdownMenu/QDropdownMenu.vue.js +4 -3
  90. package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +60 -26
  91. package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
  92. package/esm/components/QDropdownMenu/QDropdownMenuContent.vue.js +68 -63
  93. package/esm/components/QDropdownMenu/index.d.ts +27 -3
  94. package/esm/components/QDropdownMenu/index.d.ts.map +1 -1
  95. package/esm/components/QDropdownMenu/types.d.ts +3 -6
  96. package/esm/components/QDropdownMenu/types.d.ts.map +1 -1
  97. package/esm/components/QField/QField.d.ts.map +1 -1
  98. package/esm/components/QField/QField.vue.js +34 -35
  99. package/esm/components/QField/types.d.ts +2 -9
  100. package/esm/components/QField/types.d.ts.map +1 -1
  101. package/esm/components/QFileUpload/QFileUpload.d.ts +1 -1
  102. package/esm/components/QFileUpload/QFileUpload.vue.js +2 -1
  103. package/esm/components/QFileUpload/index.d.ts +39 -6
  104. package/esm/components/QFileUpload/index.d.ts.map +1 -1
  105. package/esm/components/QFileUpload/types.d.ts +3 -30
  106. package/esm/components/QFileUpload/types.d.ts.map +1 -1
  107. package/esm/components/QIcon/QIcon.d.ts +2 -2
  108. package/esm/components/QIcon/QIcon.d.ts.map +1 -1
  109. package/esm/components/QIcon/QIcon.vue.js +7 -5
  110. package/esm/components/QIcon/QIconFont.d.ts.map +1 -1
  111. package/esm/components/QIcon/QIconFont.vue.js +12 -16
  112. package/esm/components/QIcon/QIconImg.d.ts +2 -2
  113. package/esm/components/QIcon/QIconImg.d.ts.map +1 -1
  114. package/esm/components/QIcon/QIconImg.vue.js +8 -6
  115. package/esm/components/QIcon/QIconSvg.d.ts.map +1 -1
  116. package/esm/components/QIcon/QIconSvg.vue.js +12 -10
  117. package/esm/components/QIcon/index.d.ts +4 -4
  118. package/esm/components/QIcon/index.d.ts.map +1 -1
  119. package/esm/components/QIcon/types.d.ts +6 -8
  120. package/esm/components/QIcon/types.d.ts.map +1 -1
  121. package/esm/components/QInputGroup/QInputGroup.vue.js +21 -18
  122. package/esm/components/QInputGroup/types.d.ts +2 -23
  123. package/esm/components/QInputGroup/types.d.ts.map +1 -1
  124. package/esm/components/QLineLoader/QLineLoader.d.ts +1 -2
  125. package/esm/components/QLineLoader/QLineLoader.d.ts.map +1 -1
  126. package/esm/components/QLineLoader/QLineLoader.vue.js +10 -14
  127. package/esm/components/QLineLoader/index.d.ts +1 -1
  128. package/esm/components/QLineLoader/index.d.ts.map +1 -1
  129. package/esm/components/QLineLoader/types.d.ts +2 -6
  130. package/esm/components/QLineLoader/types.d.ts.map +1 -1
  131. package/esm/components/QList/QList.d.ts +3 -3
  132. package/esm/components/QList/QList.d.ts.map +1 -1
  133. package/esm/components/QList/QList.vue.js +30 -26
  134. package/esm/components/QList/index.d.ts +35 -11
  135. package/esm/components/QList/index.d.ts.map +1 -1
  136. package/esm/components/QList/types.d.ts +3 -6
  137. package/esm/components/QList/types.d.ts.map +1 -1
  138. package/esm/components/QOverlay/QOverlay.d.ts +1 -1
  139. package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
  140. package/esm/components/QOverlay/QOverlay.vue.js +51 -55
  141. package/esm/components/QOverlay/index.d.ts +63 -6
  142. package/esm/components/QOverlay/index.d.ts.map +1 -1
  143. package/esm/components/QOverlay/types.d.ts +2 -5
  144. package/esm/components/QOverlay/types.d.ts.map +1 -1
  145. package/esm/components/QPopover/QPopover.d.ts +1 -1
  146. package/esm/components/QPopover/QPopover.d.ts.map +1 -1
  147. package/esm/components/QPopover/QPopover.vue.js +23 -20
  148. package/esm/components/QPopover/index.d.ts +36 -6
  149. package/esm/components/QPopover/index.d.ts.map +1 -1
  150. package/esm/components/QPopover/types.d.ts +2 -1
  151. package/esm/components/QPopover/types.d.ts.map +1 -1
  152. package/esm/components/QPropertyList/QPropertyList.d.ts +2 -2
  153. package/esm/components/QPropertyList/QPropertyList.d.ts.map +1 -1
  154. package/esm/components/QPropertyList/QPropertyList.vue.js +126 -115
  155. package/esm/components/QPropertyList/QPropertyListGroup.d.ts +2 -2
  156. package/esm/components/QPropertyList/QPropertyListGroup.d.ts.map +1 -1
  157. package/esm/components/QPropertyList/QPropertyListGroup.vue.js +19 -17
  158. package/esm/components/QPropertyList/QPropertyListPanel.d.ts.map +1 -1
  159. package/esm/components/QPropertyList/QPropertyListPanel.vue.js +19 -14
  160. package/esm/components/QPropertyList/QPropertyListRow.d.ts +6 -3
  161. package/esm/components/QPropertyList/QPropertyListRow.d.ts.map +1 -1
  162. package/esm/components/QPropertyList/QPropertyListRow.vue.js +33 -23
  163. package/esm/components/QPropertyList/index.d.ts +8 -7
  164. package/esm/components/QPropertyList/index.d.ts.map +1 -1
  165. package/esm/components/QPropertyList/types.d.ts +35 -21
  166. package/esm/components/QPropertyList/types.d.ts.map +1 -1
  167. package/esm/components/QSelect/QSelect.d.ts +63 -29
  168. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  169. package/esm/components/QSelect/QSelect.vue.js +49 -48
  170. package/esm/components/QSelect/index.d.ts +104 -24
  171. package/esm/components/QSelect/index.d.ts.map +1 -1
  172. package/esm/components/QSelect/types.d.ts +10 -39
  173. package/esm/components/QSelect/types.d.ts.map +1 -1
  174. package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts.map +1 -1
  175. package/esm/components/QSkeletonLoader/QSkeletonLoader.vue.js +20 -23
  176. package/esm/components/QSkeletonLoader/types.d.ts +2 -1
  177. package/esm/components/QSkeletonLoader/types.d.ts.map +1 -1
  178. package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts.map +1 -1
  179. package/esm/components/QSpinnerLoader/QSpinnerLoader.vue.js +13 -17
  180. package/esm/components/QSpinnerLoader/types.d.ts +2 -5
  181. package/esm/components/QSpinnerLoader/types.d.ts.map +1 -1
  182. package/esm/components/QTextField/QTextField.d.ts +2 -2
  183. package/esm/components/QTextField/QTextField.d.ts.map +1 -1
  184. package/esm/components/QTextField/QTextField.vue.js +27 -30
  185. package/esm/components/QTextField/index.d.ts +40 -4
  186. package/esm/components/QTextField/index.d.ts.map +1 -1
  187. package/esm/components/QTextField/types.d.ts +2 -40
  188. package/esm/components/QTextField/types.d.ts.map +1 -1
  189. package/esm/components/QThemeProvider/QThemeProvider.d.ts.map +1 -1
  190. package/esm/components/QThemeProvider/QThemeProvider.vue.js +13 -16
  191. package/esm/components/QThemeProvider/types.d.ts +2 -1
  192. package/esm/components/QThemeProvider/types.d.ts.map +1 -1
  193. package/esm/components/QTooltip/QTooltip.d.ts +1 -1
  194. package/esm/components/QTooltip/QTooltip.vue.js +2 -2
  195. package/esm/components/QTooltip/index.d.ts +45 -6
  196. package/esm/components/QTooltip/index.d.ts.map +1 -1
  197. package/esm/components/QTooltip/types.d.ts +2 -9
  198. package/esm/components/QTooltip/types.d.ts.map +1 -1
  199. package/esm/components/__internal__/QChevron/QChevron.d.ts.map +1 -1
  200. package/esm/components/__internal__/QChevron/QChevron.vue.js +19 -11
  201. package/esm/components/__internal__/QChevron/index.d.ts +6 -2
  202. package/esm/components/__internal__/QChevron/index.d.ts.map +1 -1
  203. package/esm/components/__internal__/QChevron/types.d.ts +2 -5
  204. package/esm/components/__internal__/QChevron/types.d.ts.map +1 -1
  205. package/esm/components/__internal__/QClearButton/QClearButton.d.ts.map +1 -1
  206. package/esm/components/__internal__/QClearButton/QClearButton.vue.js +23 -18
  207. package/esm/components/__internal__/QClearButton/types.d.ts +2 -5
  208. package/esm/components/__internal__/QClearButton/types.d.ts.map +1 -1
  209. package/esm/composables/group.d.ts +88 -8
  210. package/esm/composables/group.d.ts.map +1 -1
  211. package/esm/composables/group.js +19 -22
  212. package/esm/composables/uid.d.ts +3 -2
  213. package/esm/composables/uid.d.ts.map +1 -1
  214. package/esm/composables/uid.js +5 -4
  215. package/esm/types/component.d.ts +18 -0
  216. package/esm/types/component.d.ts.map +1 -0
  217. package/package.json +11 -11
@@ -1,24 +1,24 @@
1
- import { defineComponent as q, useAttrs as y, computed as d, createBlock as u, openBlock as o, resolveDynamicComponent as C, normalizeClass as T, unref as p, withCtx as D, createElementBlock as l, Fragment as i, createCommentVNode as s, createElementVNode as r, renderSlot as a, createTextVNode as f, toDisplayString as h } from "vue";
2
- import { QSpinnerLoader as N } from "../QSpinnerLoader/index.js";
3
- import { useId as g } from "../../composables/uid.js";
4
- const B = { class: "q-card__header" }, A = {
1
+ import { defineComponent as k, computed as d, useAttrs as _, createBlock as u, openBlock as o, resolveDynamicComponent as q, normalizeClass as y, withCtx as C, createElementBlock as a, unref as T, Fragment as i, createCommentVNode as s, createElementVNode as n, renderSlot as l, createTextVNode as p, toDisplayString as f } from "vue";
2
+ import { QSpinnerLoader as D } from "../QSpinnerLoader/index.js";
3
+ const N = { class: "q-card__header" }, g = {
5
4
  key: 0,
6
5
  class: "q-card__header-content"
7
- }, R = { class: "q-card__header-text" }, w = {
6
+ }, B = { class: "q-card__header-text" }, A = {
8
7
  key: 0,
9
8
  class: "q-card__title",
10
9
  role: "cell"
11
- }, P = {
10
+ }, R = {
12
11
  key: 1,
13
12
  class: "q-card__subtitle",
14
13
  role: "cell"
15
- }, H = { class: "q-card__content" }, I = {
14
+ }, w = { class: "q-card__content" }, P = {
16
15
  key: 0,
17
16
  class: "q-card__footer"
18
- }, V = /* @__PURE__ */ q({
17
+ }, S = /* @__PURE__ */ k({
19
18
  __name: "QCard",
20
19
  props: {
21
20
  id: {},
21
+ class: {},
22
22
  title: {},
23
23
  subtitle: {},
24
24
  href: {},
@@ -29,55 +29,57 @@ const B = { class: "q-card__header" }, A = {
29
29
  elevation: { default: "none" },
30
30
  width: {}
31
31
  },
32
- setup(v) {
33
- const e = v, $ = y(), m = g(e.id), b = d(() => {
34
- const t = e.width ? `q-card--${e.width}` : void 0, c = e.variant && e.variant !== "default" ? `q-card--${e.variant}` : void 0, _ = e.elevation && e.elevation !== "none" ? `q-card--elevation-${e.elevation}` : void 0;
32
+ setup(h) {
33
+ const e = h, v = d(() => {
34
+ const t = e.width ? `q-card--${e.width}` : void 0, c = e.variant && e.variant !== "default" ? `q-card--${e.variant}` : void 0, E = e.elevation && e.elevation !== "none" ? `q-card--elevation-${e.elevation}` : void 0;
35
35
  return [
36
36
  "q-card",
37
37
  t,
38
38
  c,
39
- _,
39
+ E,
40
40
  {
41
- "q-card--clickable": E.value,
41
+ "q-card--clickable": b.value,
42
42
  "q-card--loading": e.loading,
43
43
  "q-card--borderless": e.borderless,
44
44
  "q-card--disabled": e.disabled
45
- }
45
+ },
46
+ e.class
46
47
  ];
47
- }), E = d(() => !!$.onClick || e.href), n = d(() => e.disabled || e.loading), k = (t) => {
48
- n.value && t.stopImmediatePropagation();
49
- };
50
- return (t, c) => (o(), u(C(e.href ? "a" : "div"), {
51
- id: p(m),
52
- class: T([...b.value, t.$attrs.class]),
53
- href: e.href && !n.value ? e.href : void 0,
54
- onClick: k
48
+ }), $ = _(), b = d(() => !!$.onClick || e.href), r = d(() => e.disabled || e.loading);
49
+ function m(t) {
50
+ r.value && t.stopImmediatePropagation();
51
+ }
52
+ return (t, c) => (o(), u(q(e.href ? "a" : "div"), {
53
+ id: e.id,
54
+ class: y(v.value),
55
+ href: e.href && !r.value ? e.href : void 0,
56
+ onClick: m
55
57
  }, {
56
- default: D(() => [
57
- e.loading ? (o(), u(p(N), {
58
+ default: C(() => [
59
+ e.loading ? (o(), u(T(D), {
58
60
  key: 0,
59
61
  size: 36
60
- })) : (o(), l(
62
+ })) : (o(), a(
61
63
  i,
62
64
  { key: 1 },
63
65
  [
64
66
  s(" HEADER "),
65
- r("div", B, [
66
- a(t.$slots, "header", {}, () => [
67
+ n("div", N, [
68
+ l(t.$slots, "header", {}, () => [
67
69
  s(" HEADER: PREPEND "),
68
- a(t.$slots, "header.prepend"),
70
+ l(t.$slots, "header.prepend"),
69
71
  s(" HEADER CONTENT "),
70
- t.$slots.title || e.title || t.$slots.subtitle || e.subtitle ? (o(), l("div", A, [
71
- a(t.$slots, "header.content.prepend"),
72
- r("div", R, [
72
+ t.$slots.title || e.title || t.$slots.subtitle || e.subtitle ? (o(), a("div", g, [
73
+ l(t.$slots, "header.content.prepend"),
74
+ n("div", B, [
73
75
  s(" TITLE "),
74
- t.$slots.title || e.title ? (o(), l("p", w, [
75
- t.$slots.title ? a(t.$slots, "title", { key: 0 }) : (o(), l(
76
+ t.$slots.title || e.title ? (o(), a("p", A, [
77
+ t.$slots.title ? l(t.$slots, "title", { key: 0 }) : (o(), a(
76
78
  i,
77
79
  { key: 1 },
78
80
  [
79
- f(
80
- h(t.$props.title),
81
+ p(
82
+ f(t.$props.title),
81
83
  1
82
84
  /* TEXT */
83
85
  )
@@ -87,13 +89,13 @@ const B = { class: "q-card__header" }, A = {
87
89
  ))
88
90
  ])) : s("v-if", !0),
89
91
  s(" SUBTITLE "),
90
- t.$slots.subtitle || e.subtitle ? (o(), l("p", P, [
91
- t.$slots.subtitle ? a(t.$slots, "subtitle", { key: 0 }) : (o(), l(
92
+ t.$slots.subtitle || e.subtitle ? (o(), a("p", R, [
93
+ t.$slots.subtitle ? l(t.$slots, "subtitle", { key: 0 }) : (o(), a(
92
94
  i,
93
95
  { key: 1 },
94
96
  [
95
- f(
96
- h(t.$props.subtitle),
97
+ p(
98
+ f(t.$props.subtitle),
97
99
  1
98
100
  /* TEXT */
99
101
  )
@@ -103,19 +105,19 @@ const B = { class: "q-card__header" }, A = {
103
105
  ))
104
106
  ])) : s("v-if", !0)
105
107
  ]),
106
- a(t.$slots, "header.content.append")
108
+ l(t.$slots, "header.content.append")
107
109
  ])) : s("v-if", !0),
108
110
  s(" HEADER: APPEND "),
109
- a(t.$slots, "header.append")
111
+ l(t.$slots, "header.append")
110
112
  ])
111
113
  ]),
112
114
  s(" CONTENT "),
113
- r("div", H, [
114
- a(t.$slots, "default")
115
+ n("div", w, [
116
+ l(t.$slots, "default")
115
117
  ]),
116
118
  s(" FOOTER "),
117
- t.$slots.footer ? (o(), l("div", I, [
118
- a(t.$slots, "footer")
119
+ t.$slots.footer ? (o(), a("div", P, [
120
+ l(t.$slots, "footer")
119
121
  ])) : s("v-if", !0)
120
122
  ],
121
123
  64
@@ -128,5 +130,5 @@ const B = { class: "q-card__header" }, A = {
128
130
  }
129
131
  });
130
132
  export {
131
- V as default
133
+ S as default
132
134
  };
@@ -1,8 +1,8 @@
1
1
  import { QCardProps } from './types';
2
2
  declare const QCard: {
3
3
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<QCardProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
4
- variant: "default" | "background" | "title-background" | "minor";
5
- elevation: "none" | "low" | "medium" | "high";
4
+ variant: import('./types').QCardVariant;
5
+ elevation: import('./types').QCardElevation;
6
6
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
7
7
  P: {};
8
8
  B: {};
@@ -11,15 +11,15 @@ declare const QCard: {
11
11
  M: {};
12
12
  Defaults: {};
13
13
  }, Readonly<QCardProps> & Readonly<{}>, {}, {}, {}, {}, {
14
- variant: "default" | "background" | "title-background" | "minor";
15
- elevation: "none" | "low" | "medium" | "high";
14
+ variant: import('./types').QCardVariant;
15
+ elevation: import('./types').QCardElevation;
16
16
  }>;
17
17
  __isFragment?: never;
18
18
  __isTeleport?: never;
19
19
  __isSuspense?: never;
20
20
  } & import('vue').ComponentOptionsBase<Readonly<QCardProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
21
- variant: "default" | "background" | "title-background" | "minor";
22
- elevation: "none" | "low" | "medium" | "high";
21
+ variant: import('./types').QCardVariant;
22
+ elevation: import('./types').QCardElevation;
23
23
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
24
24
  $slots: {
25
25
  header?(_: {}): any;
@@ -1,9 +1,8 @@
1
+ import { QBaseComponentProps } from '../../types/component';
2
+ export type QCardVariant = 'default' | 'background' | 'title-background' | 'minor';
3
+ export type QCardElevation = 'none' | 'low' | 'medium' | 'high';
1
4
  export type QCardWidth = 'medium' | 'large' | 'xlarge' | 'xxlarge' | 'block';
2
- export type QCardProps = {
3
- /**
4
- * The card unique identifier.
5
- */
6
- id?: string;
5
+ export type QCardProps = QBaseComponentProps & {
7
6
  /**
8
7
  * The title of the card.
9
8
  */
@@ -31,11 +30,11 @@ export type QCardProps = {
31
30
  /**
32
31
  * The styling variant of the card.
33
32
  */
34
- variant?: 'default' | 'background' | 'title-background' | 'minor';
33
+ variant?: QCardVariant;
35
34
  /**
36
35
  * The elevation provides levels of shadow depth.
37
36
  */
38
- elevation?: 'none' | 'low' | 'medium' | 'high';
37
+ elevation?: QCardElevation;
39
38
  /**
40
39
  * The width of the card
41
40
  */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QCard/types.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAA;AAE5E,MAAM,MAAM,UAAU,GAAG;IACxB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IAEpB;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,YAAY,GAAG,kBAAkB,GAAG,OAAO,CAAA;IAEjE;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAA;IAE9C;;OAEG;IACH,KAAK,CAAC,EAAE,UAAU,CAAA;CAClB,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QCard/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAE5D,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,YAAY,GAAG,kBAAkB,GAAG,OAAO,CAAA;AAElF,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAA;AAE/D,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAA;AAE5E,MAAM,MAAM,UAAU,GAAG,mBAAmB,GAAG;IAC9C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IAEpB;;OAEG;IACH,OAAO,CAAC,EAAE,YAAY,CAAA;IAEtB;;OAEG;IACH,SAAS,CAAC,EAAE,cAAc,CAAA;IAE1B;;OAEG;IACH,KAAK,CAAC,EAAE,UAAU,CAAA;CAClB,CAAA"}
@@ -18,10 +18,10 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
18
18
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
19
19
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
20
20
  }>, {
21
- size: "regular" | "small" | "large";
21
+ size: import('./types').QCheckboxLabelSize;
22
22
  color: string;
23
23
  icons: typeof DEFAULT_ICONS;
24
- labelPlacement: string;
24
+ labelPlacement: import('./types').QCheckboxLabelPlacement;
25
25
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
26
26
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
27
27
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"QCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCheckbox/QCheckbox.vue"],"names":[],"mappings":"AA+CA;AAoGC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAK7C,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAEvC,KAAK,WAAW,GAAG,cAAc,CAAC;AA0CnC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAiGT,OAAO,IAA6B;;wBAXtB,GAAG;wBACF,GAAG;;;;EAe/B;AAgBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;6EAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"QCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCheckbox/QCheckbox.vue"],"names":[],"mappings":"AAiDA;AA0GC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAI7C,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAEvC,KAAK,WAAW,GAAG,cAAc,CAAC;AA+CnC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAkGT,OAAO,IAA6B;;wBAZtB,GAAG;wBACF,GAAG;;;;EAgB/B;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;6EAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,28 +1,28 @@
1
- import { defineComponent as x, mergeModels as v, useModel as _, computed as q, createElementBlock as g, openBlock as o, Fragment as B, createElementVNode as t, normalizeClass as C, createBlock as n, createCommentVNode as d, createSlots as m, withCtx as u, renderSlot as b, withKeys as p, withModifiers as i, unref as k, mergeProps as $ } from "vue";
2
- import { QIcon as w } from "../QIcon/index.js";
3
- import h from "./QCheckboxLabel.vue.js";
4
- import { useId as V } from "../../composables/uid.js";
5
- import { DEFAULT_ICONS as M } from "./types.js";
6
- const P = ["id", "aria-checked", "disabled", "onKeydown"], z = ["checked", "disabled"], F = /* @__PURE__ */ x({
1
+ import { defineComponent as y, mergeModels as x, useModel as v, computed as _, createElementBlock as q, openBlock as a, Fragment as g, createElementVNode as o, normalizeClass as $, createBlock as n, createCommentVNode as i, createSlots as u, withCtx as m, renderSlot as b, mergeProps as h, withKeys as k, withModifiers as d, unref as B } from "vue";
2
+ import { QIcon as C } from "../QIcon/index.js";
3
+ import p from "./QCheckboxLabel.vue.js";
4
+ import { DEFAULT_ICONS as w } from "./types.js";
5
+ const V = ["id"], M = ["aria-checked", "disabled", "onKeydown"], P = ["checked", "disabled"], S = /* @__PURE__ */ y({
6
+ inheritAttrs: !1,
7
7
  __name: "QCheckbox",
8
- props: /* @__PURE__ */ v({
9
- label: {},
8
+ props: /* @__PURE__ */ x({
10
9
  id: {},
10
+ class: {},
11
+ label: {},
11
12
  labelPlacement: { default: "right" },
12
13
  disabled: { type: Boolean },
13
14
  readonly: { type: Boolean },
14
15
  indeterminate: { type: Boolean },
15
16
  color: { default: "primary" },
16
17
  size: { default: "regular" },
17
- class: {},
18
- icons: { default: () => M }
18
+ icons: { default: () => w }
19
19
  }, {
20
20
  modelValue: { type: Boolean },
21
21
  modelModifiers: {}
22
22
  }),
23
23
  emits: ["update:modelValue"],
24
24
  setup(r) {
25
- const e = r, l = _(r, "modelValue"), f = V(e.id), y = q(() => [
25
+ const e = r, l = v(r, "modelValue"), f = _(() => [
26
26
  "q-checkbox",
27
27
  `q-checkbox--${e.size}`,
28
28
  `q-checkbox--${e.color}`,
@@ -37,80 +37,74 @@ const P = ["id", "aria-checked", "disabled", "onKeydown"], z = ["checked", "disa
37
37
  function s() {
38
38
  !e.disabled && !e.readonly && (l.value = !l.value);
39
39
  }
40
- return (a, c) => (o(), g(
41
- B,
40
+ return (t, c) => (a(), q(
41
+ g,
42
42
  null,
43
43
  [
44
- t(
45
- "label",
46
- {
47
- class: C(y.value)
48
- },
49
- [
50
- e.labelPlacement !== "right" ? (o(), n(h, {
51
- key: 0,
52
- label: e.label
53
- }, m({
54
- _: 2
55
- /* DYNAMIC */
56
- }, [
57
- a.$slots.extras ? {
58
- name: "extras",
59
- fn: u(() => [
60
- b(a.$slots, "extras")
61
- ]),
62
- key: "0"
63
- } : void 0
64
- ]), 1032, ["label"])) : d("v-if", !0),
65
- t("button", {
66
- id: k(f),
67
- role: "checkbox",
68
- type: "button",
69
- "aria-checked": e.indeterminate ? "mixed" : l.value,
70
- disabled: e.disabled || e.readonly,
71
- class: "q-checkbox__input",
72
- onClick: i(s, ["prevent"]),
73
- onKeydown: [
74
- p(i(s, ["prevent"]), ["space"]),
75
- c[0] || (c[0] = p(i(() => {
76
- }, ["prevent"]), ["enter"]))
77
- ]
78
- }, [
79
- l.value || a.indeterminate ? (o(), n(
80
- k(w),
81
- $({ key: 0 }, l.value ? e.icons.checked : e.icons.indeterminate, { class: "q-checkbox__input-icon" }),
82
- null,
83
- 16
84
- /* FULL_PROPS */
85
- )) : d("v-if", !0)
86
- ], 40, P),
87
- e.labelPlacement === "right" ? (o(), n(h, {
88
- key: 1,
89
- label: e.label
90
- }, m({
91
- _: 2
92
- /* DYNAMIC */
93
- }, [
94
- a.$slots.extras ? {
95
- name: "extras",
96
- fn: u(() => [
97
- b(a.$slots, "extras")
98
- ]),
99
- key: "0"
100
- } : void 0
101
- ]), 1032, ["label"])) : d("v-if", !0)
102
- ],
103
- 2
104
- /* CLASS */
105
- ),
106
- t("input", {
44
+ o("label", {
45
+ id: e.id,
46
+ class: $(f.value)
47
+ }, [
48
+ e.labelPlacement !== "right" ? (a(), n(p, {
49
+ key: 0,
50
+ label: e.label
51
+ }, u({
52
+ _: 2
53
+ /* DYNAMIC */
54
+ }, [
55
+ t.$slots.extras ? {
56
+ name: "extras",
57
+ fn: m(() => [
58
+ b(t.$slots, "extras")
59
+ ]),
60
+ key: "0"
61
+ } : void 0
62
+ ]), 1032, ["label"])) : i("v-if", !0),
63
+ o("button", h({
64
+ role: "checkbox",
65
+ type: "button",
66
+ class: "q-checkbox__input",
67
+ "aria-checked": e.indeterminate ? "mixed" : l.value,
68
+ disabled: e.disabled || e.readonly,
69
+ onClick: d(s, ["prevent"]),
70
+ onKeydown: [
71
+ k(d(s, ["prevent"]), ["space"]),
72
+ c[0] || (c[0] = k(d(() => {
73
+ }, ["prevent"]), ["enter"]))
74
+ ]
75
+ }, t.$attrs), [
76
+ l.value || t.indeterminate ? (a(), n(
77
+ B(C),
78
+ h({ key: 0 }, l.value ? e.icons.checked : e.icons.indeterminate, { class: "q-checkbox__input-icon" }),
79
+ null,
80
+ 16
81
+ /* FULL_PROPS */
82
+ )) : i("v-if", !0)
83
+ ], 16, M),
84
+ e.labelPlacement === "right" ? (a(), n(p, {
85
+ key: 1,
86
+ label: e.label
87
+ }, u({
88
+ _: 2
89
+ /* DYNAMIC */
90
+ }, [
91
+ t.$slots.extras ? {
92
+ name: "extras",
93
+ fn: m(() => [
94
+ b(t.$slots, "extras")
95
+ ]),
96
+ key: "0"
97
+ } : void 0
98
+ ]), 1032, ["label"])) : i("v-if", !0)
99
+ ], 10, V),
100
+ o("input", {
107
101
  type: "checkbox",
108
102
  tabindex: "-1",
109
103
  "aria-hidden": "true",
110
104
  class: "q-checkbox__native-input",
111
105
  checked: !!l.value,
112
106
  disabled: e.disabled || e.readonly
113
- }, null, 8, z)
107
+ }, null, 8, P)
114
108
  ],
115
109
  64
116
110
  /* STABLE_FRAGMENT */
@@ -118,5 +112,5 @@ const P = ["id", "aria-checked", "disabled", "onKeydown"], z = ["checked", "disa
118
112
  }
119
113
  });
120
114
  export {
121
- F as default
115
+ S as default
122
116
  };
@@ -1,12 +1,14 @@
1
- import { defineComponent as r, createElementBlock as s, openBlock as o, createElementVNode as l, toDisplayString as n, renderSlot as c } from "vue";
2
- const p = { key: 0 }, _ = { class: "q-field__extras" }, i = { key: 1 }, b = /* @__PURE__ */ r({
1
+ import { defineComponent as r, createElementBlock as t, openBlock as o, createElementVNode as l, toDisplayString as n, renderSlot as c } from "vue";
2
+ const i = { key: 0 }, p = { class: "q-field__extras" }, _ = { key: 1 }, b = /* @__PURE__ */ r({
3
3
  __name: "QCheckboxLabel",
4
4
  props: {
5
+ id: {},
6
+ class: {},
5
7
  label: {}
6
8
  },
7
9
  setup(a) {
8
10
  const e = a;
9
- return (t, d) => t.$slots.extras ? (o(), s("div", p, [
11
+ return (s, d) => s.$slots.extras ? (o(), t("div", i, [
10
12
  l(
11
13
  "span",
12
14
  null,
@@ -14,12 +16,12 @@ const p = { key: 0 }, _ = { class: "q-field__extras" }, i = { key: 1 }, b = /* @
14
16
  1
15
17
  /* TEXT */
16
18
  ),
17
- l("div", _, [
18
- c(t.$slots, "extras")
19
+ l("div", p, [
20
+ c(s.$slots, "extras")
19
21
  ])
20
- ])) : (o(), s(
22
+ ])) : (o(), t(
21
23
  "span",
22
- i,
24
+ _,
23
25
  n(e.label),
24
26
  1
25
27
  /* TEXT */
@@ -1,25 +1,25 @@
1
1
  declare const QCheckbox: {
2
2
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
3
3
  modelValue?: boolean;
4
- } & import('./types').QCheckboxLabelProps & {
5
- id?: string;
6
- labelPlacement?: string;
4
+ } & import('../../types/component').QBaseComponentProps & {
5
+ label?: string;
6
+ } & {
7
+ labelPlacement?: import('./types').QCheckboxLabelPlacement;
7
8
  disabled?: boolean;
8
9
  readonly?: boolean;
9
10
  indeterminate?: boolean;
10
11
  color?: string;
11
- size?: "regular" | "small" | "large";
12
- class?: string | unknown[];
12
+ size?: import('./types').QCheckboxLabelSize;
13
13
  icons?: typeof import('./types').DEFAULT_ICONS;
14
14
  }> & Readonly<{
15
15
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
16
16
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
17
17
  "update:modelValue": (value: boolean) => any;
18
18
  }, import('vue').PublicProps, {
19
- size: "regular" | "small" | "large";
19
+ size: import('./types').QCheckboxLabelSize;
20
20
  color: string;
21
21
  icons: typeof import('./types').DEFAULT_ICONS;
22
- labelPlacement: string;
22
+ labelPlacement: import('./types').QCheckboxLabelPlacement;
23
23
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
24
24
  P: {};
25
25
  B: {};
@@ -29,48 +29,48 @@ declare const QCheckbox: {
29
29
  Defaults: {};
30
30
  }, Readonly<{
31
31
  modelValue?: boolean;
32
- } & import('./types').QCheckboxLabelProps & {
33
- id?: string;
34
- labelPlacement?: string;
32
+ } & import('../../types/component').QBaseComponentProps & {
33
+ label?: string;
34
+ } & {
35
+ labelPlacement?: import('./types').QCheckboxLabelPlacement;
35
36
  disabled?: boolean;
36
37
  readonly?: boolean;
37
38
  indeterminate?: boolean;
38
39
  color?: string;
39
- size?: "regular" | "small" | "large";
40
- class?: string | unknown[];
40
+ size?: import('./types').QCheckboxLabelSize;
41
41
  icons?: typeof import('./types').DEFAULT_ICONS;
42
42
  }> & Readonly<{
43
43
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
44
44
  }>, {}, {}, {}, {}, {
45
- size: "regular" | "small" | "large";
45
+ size: import('./types').QCheckboxLabelSize;
46
46
  color: string;
47
47
  icons: typeof import('./types').DEFAULT_ICONS;
48
- labelPlacement: string;
48
+ labelPlacement: import('./types').QCheckboxLabelPlacement;
49
49
  }>;
50
50
  __isFragment?: never;
51
51
  __isTeleport?: never;
52
52
  __isSuspense?: never;
53
53
  } & import('vue').ComponentOptionsBase<Readonly<{
54
54
  modelValue?: boolean;
55
- } & import('./types').QCheckboxLabelProps & {
56
- id?: string;
57
- labelPlacement?: string;
55
+ } & import('../../types/component').QBaseComponentProps & {
56
+ label?: string;
57
+ } & {
58
+ labelPlacement?: import('./types').QCheckboxLabelPlacement;
58
59
  disabled?: boolean;
59
60
  readonly?: boolean;
60
61
  indeterminate?: boolean;
61
62
  color?: string;
62
- size?: "regular" | "small" | "large";
63
- class?: string | unknown[];
63
+ size?: import('./types').QCheckboxLabelSize;
64
64
  icons?: typeof import('./types').DEFAULT_ICONS;
65
65
  }> & Readonly<{
66
66
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
67
67
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
68
68
  "update:modelValue": (value: boolean) => any;
69
69
  }, string, {
70
- size: "regular" | "small" | "large";
70
+ size: import('./types').QCheckboxLabelSize;
71
71
  color: string;
72
72
  icons: typeof import('./types').DEFAULT_ICONS;
73
- labelPlacement: string;
73
+ labelPlacement: import('./types').QCheckboxLabelPlacement;
74
74
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
75
75
  $slots: {
76
76
  extras?(_: {}): any;
@@ -1,12 +1,17 @@
1
- export type QCheckboxProps = QCheckboxLabelProps & {
1
+ import { QBaseComponentProps } from '../../types/component';
2
+ export type QCheckboxLabelProps = QBaseComponentProps & {
2
3
  /**
3
- * The field unique identifier.
4
+ * The text content of the checkbox.
4
5
  */
5
- id?: string;
6
+ label?: string;
7
+ };
8
+ export type QCheckboxLabelPlacement = 'left' | 'right';
9
+ export type QCheckboxLabelSize = 'small' | 'regular' | 'large';
10
+ export type QCheckboxProps = QCheckboxLabelProps & {
6
11
  /**
7
12
  * The placement of the label shown.
8
13
  */
9
- labelPlacement?: string;
14
+ labelPlacement?: QCheckboxLabelPlacement;
10
15
  /**
11
16
  * If true, the checkbox is disabled and cannot be interacted with.
12
17
  */
@@ -26,22 +31,12 @@ export type QCheckboxProps = QCheckboxLabelProps & {
26
31
  /**
27
32
  * The size of the checkbox, either 'regular', 'small' or 'large.
28
33
  */
29
- size?: 'regular' | 'small' | 'large';
30
- /**
31
- * Custom set of classes to apply to the component.
32
- */
33
- class?: string | unknown[];
34
+ size?: QCheckboxLabelSize;
34
35
  /**
35
36
  * Custom icon configurations.
36
37
  */
37
38
  icons?: typeof DEFAULT_ICONS;
38
39
  };
39
- export type QCheckboxLabelProps = {
40
- /**
41
- * The text content of the checkbox.
42
- */
43
- label?: string;
44
- };
45
40
  export declare const DEFAULT_ICONS: {
46
41
  checked: {
47
42
  icon: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QCheckbox/types.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,cAAc,GAAG,mBAAmB,GAAG;IAClD;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IAEvB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;IAEvB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,OAAO,CAAA;IAEpC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE,CAAA;IAE1B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;CAC5B,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG;IACjC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACd,CAAA;AAGD,eAAO,MAAM,aAAa;;;;;;;CAOM,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QCheckbox/types.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAE5D,MAAM,MAAM,mBAAmB,GAAG,mBAAmB,GAAG;IACvD;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACd,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG,MAAM,GAAG,OAAO,CAAA;AAEtD,MAAM,MAAM,kBAAkB,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,CAAA;AAE9D,MAAM,MAAM,cAAc,GAAG,mBAAmB,GAAG;IAClD;;OAEG;IACH,cAAc,CAAC,EAAE,uBAAuB,CAAA;IAExC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;IAEvB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,IAAI,CAAC,EAAE,kBAAkB,CAAA;IAEzB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;CAC5B,CAAA;AAGD,eAAO,MAAM,aAAa;;;;;;;CAOM,CAAA"}