@quidgest/ui 0.13.3 → 0.14.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 (187) hide show
  1. package/dist/manifest/components.json +4 -0
  2. package/dist/ui.css +81 -0
  3. package/dist/ui.esm.js +1163 -935
  4. package/dist/ui.js +6 -6
  5. package/dist/ui.min.css +1 -1
  6. package/dist/ui.min.js +110 -101
  7. package/dist/ui.scss +1059 -973
  8. package/esm/components/QBadge/QBadge.d.ts +16 -68
  9. package/esm/components/QBadge/QBadge.d.ts.map +1 -1
  10. package/esm/components/QBadge/QBadge.vue.js +29 -32
  11. package/esm/components/QBadge/index.d.ts +2 -139
  12. package/esm/components/QBadge/index.d.ts.map +1 -1
  13. package/esm/components/QBadge/types.d.ts +29 -0
  14. package/esm/components/QBadge/types.d.ts.map +1 -0
  15. package/esm/components/QBadge/types.js +8 -0
  16. package/esm/components/QButton/QButton.d.ts +15 -80
  17. package/esm/components/QButton/QButton.d.ts.map +1 -1
  18. package/esm/components/QButton/index.d.ts +3 -198
  19. package/esm/components/QButton/index.d.ts.map +1 -1
  20. package/esm/components/QButton/types.d.ts +47 -0
  21. package/esm/components/QButton/types.d.ts.map +1 -0
  22. package/esm/components/QButtonGroup/QButtonGroup.d.ts +11 -42
  23. package/esm/components/QButtonGroup/QButtonGroup.d.ts.map +1 -1
  24. package/esm/components/QButtonGroup/index.d.ts +2 -79
  25. package/esm/components/QButtonGroup/index.d.ts.map +1 -1
  26. package/esm/components/QButtonGroup/types.d.ts +19 -0
  27. package/esm/components/QButtonGroup/types.d.ts.map +1 -0
  28. package/esm/components/QButtonToggle/QButtonToggle.d.ts +16 -73
  29. package/esm/components/QButtonToggle/QButtonToggle.d.ts.map +1 -1
  30. package/esm/components/QButtonToggle/index.d.ts +2 -115
  31. package/esm/components/QButtonToggle/index.d.ts.map +1 -1
  32. package/esm/components/QButtonToggle/types.d.ts +32 -0
  33. package/esm/components/QButtonToggle/types.d.ts.map +1 -0
  34. package/esm/components/QCombobox/QCombobox.d.ts +445 -435
  35. package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
  36. package/esm/components/QCombobox/QCombobox.vue.js +121 -126
  37. package/esm/components/QCombobox/index.d.ts +2 -1075
  38. package/esm/components/QCombobox/index.d.ts.map +1 -1
  39. package/esm/components/QCombobox/types.d.ts +93 -0
  40. package/esm/components/QCombobox/types.d.ts.map +1 -0
  41. package/esm/components/QCombobox/types.js +16 -0
  42. package/esm/components/QDialog/QDialog.d.ts +23 -186
  43. package/esm/components/QDialog/QDialog.d.ts.map +1 -1
  44. package/esm/components/QDialog/QDialog.vue.js +48 -64
  45. package/esm/components/QDialog/index.d.ts +3 -268
  46. package/esm/components/QDialog/index.d.ts.map +1 -1
  47. package/esm/components/QDialog/types.d.ts +80 -0
  48. package/esm/components/QDialog/types.d.ts.map +1 -0
  49. package/esm/components/QDialog/types.js +23 -0
  50. package/esm/components/QField/QField.d.ts +22 -77
  51. package/esm/components/QField/QField.d.ts.map +1 -1
  52. package/esm/components/QField/index.d.ts +3 -169
  53. package/esm/components/QField/index.d.ts.map +1 -1
  54. package/esm/components/QField/types.d.ts +37 -0
  55. package/esm/components/QField/types.d.ts.map +1 -0
  56. package/esm/components/QIcon/InlineSvg.d.ts +6 -6
  57. package/esm/components/QIcon/InlineSvg.d.ts.map +1 -1
  58. package/esm/components/QIcon/InlineSvg.js +6 -13
  59. package/esm/components/QIcon/QIcon.d.ts +4 -46
  60. package/esm/components/QIcon/QIcon.d.ts.map +1 -1
  61. package/esm/components/QIcon/QIcon.vue.js +2 -2
  62. package/esm/components/QIcon/QIconFont.d.ts +3 -51
  63. package/esm/components/QIcon/QIconFont.d.ts.map +1 -1
  64. package/esm/components/QIcon/QIconFont.vue.js +9 -9
  65. package/esm/components/QIcon/QIconImg.d.ts +2 -36
  66. package/esm/components/QIcon/QIconImg.d.ts.map +1 -1
  67. package/esm/components/QIcon/QIconImg.vue.js +3 -3
  68. package/esm/components/QIcon/QIconSvg.d.ts +7 -65
  69. package/esm/components/QIcon/QIconSvg.d.ts.map +1 -1
  70. package/esm/components/QIcon/QIconSvg.vue.js +9 -9
  71. package/esm/components/QIcon/index.d.ts +9 -157
  72. package/esm/components/QIcon/index.d.ts.map +1 -1
  73. package/esm/components/QIcon/types.d.ts +40 -0
  74. package/esm/components/QIcon/types.d.ts.map +1 -0
  75. package/esm/components/QInputGroup/QInputGroup.d.ts +17 -74
  76. package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
  77. package/esm/components/QInputGroup/index.d.ts +2 -153
  78. package/esm/components/QInputGroup/index.d.ts.map +1 -1
  79. package/esm/components/QInputGroup/types.d.ts +34 -0
  80. package/esm/components/QInputGroup/types.d.ts.map +1 -0
  81. package/esm/components/QLineLoader/QLineLoader.d.ts +3 -29
  82. package/esm/components/QLineLoader/QLineLoader.d.ts.map +1 -1
  83. package/esm/components/QLineLoader/index.d.ts +2 -13
  84. package/esm/components/QLineLoader/index.d.ts.map +1 -1
  85. package/esm/components/QLineLoader/types.d.ts +7 -0
  86. package/esm/components/QLineLoader/types.d.ts.map +1 -0
  87. package/esm/components/QList/QList.d.ts +25 -116
  88. package/esm/components/QList/QList.d.ts.map +1 -1
  89. package/esm/components/QList/QListItem.d.ts +16 -84
  90. package/esm/components/QList/QListItem.d.ts.map +1 -1
  91. package/esm/components/QList/QListItem.vue.js +25 -31
  92. package/esm/components/QList/QListItemGroup.d.ts +11 -34
  93. package/esm/components/QList/QListItemGroup.d.ts.map +1 -1
  94. package/esm/components/QList/index.d.ts +7 -453
  95. package/esm/components/QList/index.d.ts.map +1 -1
  96. package/esm/components/QList/types.d.ts +100 -0
  97. package/esm/components/QList/types.d.ts.map +1 -0
  98. package/esm/components/QList/types.js +11 -0
  99. package/esm/components/QOverlay/QOverlay.d.ts +31 -234
  100. package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
  101. package/esm/components/QOverlay/QOverlay.vue.js +1 -2
  102. package/esm/components/QOverlay/index.d.ts +2 -339
  103. package/esm/components/QOverlay/index.d.ts.map +1 -1
  104. package/esm/components/QOverlay/types.d.ts +87 -0
  105. package/esm/components/QOverlay/types.d.ts.map +1 -0
  106. package/esm/components/QPopover/QPopover.d.ts +21 -120
  107. package/esm/components/QPopover/QPopover.d.ts.map +1 -1
  108. package/esm/components/QPopover/index.d.ts +2 -180
  109. package/esm/components/QPopover/index.d.ts.map +1 -1
  110. package/esm/components/QPopover/types.d.ts +43 -0
  111. package/esm/components/QPopover/types.d.ts.map +1 -0
  112. package/esm/components/QPropertyList/QPropertyList.d.ts +42 -0
  113. package/esm/components/QPropertyList/QPropertyList.d.ts.map +1 -0
  114. package/esm/components/QPropertyList/QPropertyList.vue.js +145 -0
  115. package/esm/components/QPropertyList/QPropertyList.vue2.js +4 -0
  116. package/esm/components/QPropertyList/QPropertyListGroup.d.ts +11 -0
  117. package/esm/components/QPropertyList/QPropertyListGroup.d.ts.map +1 -0
  118. package/esm/components/QPropertyList/QPropertyListGroup.vue.js +68 -0
  119. package/esm/components/QPropertyList/QPropertyListGroup.vue2.js +4 -0
  120. package/esm/components/QPropertyList/QPropertyListPanel.d.ts +21 -0
  121. package/esm/components/QPropertyList/QPropertyListPanel.d.ts.map +1 -0
  122. package/esm/components/QPropertyList/QPropertyListPanel.vue.js +43 -0
  123. package/esm/components/QPropertyList/QPropertyListPanel.vue2.js +4 -0
  124. package/esm/components/QPropertyList/QPropertyListRow.d.ts +24 -0
  125. package/esm/components/QPropertyList/QPropertyListRow.d.ts.map +1 -0
  126. package/esm/components/QPropertyList/QPropertyListRow.vue.js +64 -0
  127. package/esm/components/QPropertyList/QPropertyListRow.vue2.js +4 -0
  128. package/esm/components/QPropertyList/index.d.ts +12 -0
  129. package/esm/components/QPropertyList/index.d.ts.map +1 -0
  130. package/esm/components/QPropertyList/index.js +12 -0
  131. package/esm/components/QPropertyList/types.d.ts +137 -0
  132. package/esm/components/QPropertyList/types.d.ts.map +1 -0
  133. package/esm/components/QPropertyList/types.js +14 -0
  134. package/esm/components/QSelect/QSelect.d.ts +202 -227
  135. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  136. package/esm/components/QSelect/QSelect.vue.js +140 -146
  137. package/esm/components/QSelect/index.d.ts +2 -369
  138. package/esm/components/QSelect/index.d.ts.map +1 -1
  139. package/esm/components/QSelect/types.d.ts +81 -0
  140. package/esm/components/QSelect/types.d.ts.map +1 -0
  141. package/esm/components/QSelect/types.js +16 -0
  142. package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts +3 -41
  143. package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts.map +1 -1
  144. package/esm/components/QSkeletonLoader/QSkeletonLoader.vue.js +19 -19
  145. package/esm/components/QSkeletonLoader/index.d.ts +2 -31
  146. package/esm/components/QSkeletonLoader/index.d.ts.map +1 -1
  147. package/esm/components/QSkeletonLoader/types.d.ts +15 -0
  148. package/esm/components/QSkeletonLoader/types.d.ts.map +1 -0
  149. package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts +3 -35
  150. package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts.map +1 -1
  151. package/esm/components/QSpinnerLoader/QSpinnerLoader.vue.js +6 -6
  152. package/esm/components/QSpinnerLoader/index.d.ts +2 -22
  153. package/esm/components/QSpinnerLoader/index.d.ts.map +1 -1
  154. package/esm/components/QSpinnerLoader/types.d.ts +11 -0
  155. package/esm/components/QSpinnerLoader/types.d.ts.map +1 -0
  156. package/esm/components/QTextField/QTextField.d.ts +103 -147
  157. package/esm/components/QTextField/QTextField.d.ts.map +1 -1
  158. package/esm/components/QTextField/index.d.ts +2 -229
  159. package/esm/components/QTextField/index.d.ts.map +1 -1
  160. package/esm/components/QTextField/types.d.ts +50 -0
  161. package/esm/components/QTextField/types.d.ts.map +1 -0
  162. package/esm/components/QThemeProvider/QThemeProvider.d.ts +10 -17
  163. package/esm/components/QThemeProvider/QThemeProvider.d.ts.map +1 -1
  164. package/esm/components/QThemeProvider/index.d.ts +2 -37
  165. package/esm/components/QThemeProvider/index.d.ts.map +1 -1
  166. package/esm/components/QThemeProvider/types.d.ts +7 -0
  167. package/esm/components/QThemeProvider/types.d.ts.map +1 -0
  168. package/esm/components/QTooltip/QTooltip.d.ts +28 -190
  169. package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
  170. package/esm/components/QTooltip/index.d.ts +2 -279
  171. package/esm/components/QTooltip/index.d.ts.map +1 -1
  172. package/esm/components/QTooltip/types.d.ts +66 -0
  173. package/esm/components/QTooltip/types.d.ts.map +1 -0
  174. package/esm/components/index.d.ts +1 -0
  175. package/esm/components/index.d.ts.map +1 -1
  176. package/esm/components/index.js +42 -37
  177. package/esm/composables/defaults.d.ts +0 -1
  178. package/esm/composables/defaults.js +3 -6
  179. package/esm/composables/theme.d.ts +0 -1
  180. package/esm/framework.d.ts +0 -1
  181. package/esm/index.d.ts +4 -0
  182. package/esm/templates/theme.d.ts +0 -1
  183. package/esm/utils/color.js +1 -2
  184. package/esm/utils/setupPropsProxy.d.ts +0 -1
  185. package/esm/utils/setupPropsProxy.js +2 -4
  186. package/esm/utils/theme.d.ts +0 -1
  187. package/package.json +40 -41
@@ -1,75 +1,23 @@
1
- import { Icon } from '../QIcon';
2
-
3
- export type QBadgeProps = {
4
- /**
5
- * The color of the badge.
6
- * Can be chosen from utility colors like 'success' or 'danger', or specified using CSS color codes.
7
- */
8
- color?: string;
9
- /**
10
- * The visual style variant of the badge.
11
- */
12
- variant?: 'tonal' | 'bold' | 'outlined';
13
- /**
14
- * Indicates if the badge can be removed.
15
- */
16
- removable?: boolean;
17
- /**
18
- * Whether to convey a pill shape to the badge.
19
- */
20
- pill?: boolean;
21
- /**
22
- * The internal elements of the component.
23
- */
24
- internals?: Internals;
25
- };
26
- declare const DEFAULT_ICONS: Record<string, Icon>;
27
- type Internals = {
28
- icons: typeof DEFAULT_ICONS;
29
- };
30
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<QBadgeProps>, {
31
- text: string;
32
- color: string;
33
- variant: string;
34
- internals: () => {
35
- icons: Record<string, Icon>;
36
- };
37
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
38
- "click:remove": () => void;
39
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<QBadgeProps>, {
40
- text: string;
41
- color: string;
42
- variant: string;
43
- internals: () => {
44
- icons: Record<string, Icon>;
1
+ import { QBadgeProps, DEFAULT_ICONS } from './types';
2
+ declare function __VLS_template(): {
3
+ slots: {
4
+ default?(_: {}): any;
45
5
  };
46
- }>>> & {
6
+ refs: {};
7
+ attrs: Partial<{}>;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import('vue').DefineComponent<QBadgeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
11
+ "click:remove": () => any;
12
+ }, string, import('vue').PublicProps, Readonly<QBadgeProps> & Readonly<{
47
13
  "onClick:remove"?: (() => any) | undefined;
48
- }, {
49
- variant: "bold" | "tonal" | "outlined";
14
+ }>, {
15
+ variant: "tonal" | "bold" | "outlined";
50
16
  color: string;
51
- internals: Internals;
52
- }, {}>, {
53
- default?(_: {}): any;
54
- }>;
17
+ icons: typeof DEFAULT_ICONS;
18
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
19
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
55
20
  export default _default;
56
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
57
- type __VLS_TypePropsToRuntimeProps<T> = {
58
- [K in keyof T]-?: {} extends Pick<T, K> ? {
59
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
60
- } : {
61
- type: import('vue').PropType<T[K]>;
62
- required: true;
63
- };
64
- };
65
- type __VLS_WithDefaults<P, D> = {
66
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
67
- default: D[K];
68
- }> : P[K];
69
- };
70
- type __VLS_Prettify<T> = {
71
- [K in keyof T]: T[K];
72
- } & {};
73
21
  type __VLS_WithTemplateSlots<T, S> = T & {
74
22
  new (): {
75
23
  $slots: S;
@@ -1 +1 @@
1
- {"version":3,"file":"QBadge.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QBadge/QBadge.vue"],"names":[],"mappings":"AAmBA;AAOC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AAM9C,MAAM,MAAM,WAAW,GAAG;IACzB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,UAAU,CAAA;IAEvC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IAEnB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;IAEd;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAA;CACrB,CAAA;AAKD,QAAA,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAIvC,CAAA;AAGD,KAAK,SAAS,GAAG;IAChB,KAAK,EAAE,OAAO,aAAa,CAAA;CAC3B,CAAA;;;;;;;;;;;;;;;;;;;;;;;;qBAsJ4B,GAAG;;AArJjC,wBA+KI;AAAA,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACrE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,C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ACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,72 +1,69 @@
1
- import { defineComponent as g, computed as l, openBlock as n, createElementBlock as _, normalizeClass as b, normalizeStyle as C, createElementVNode as s, renderSlot as y, createBlock as q, unref as a, withCtx as k, createVNode as B, normalizeProps as h, guardReactiveProps as x, createCommentVNode as N } from "vue";
2
- import { QButton as z } from "../QButton/index.js";
3
- import { QIcon as E } from "../QIcon/index.js";
4
- import { parseColor as Q, rgbToHsl as S, getContrastingColor as V } from "../../utils/color.js";
5
- const $ = /* @__PURE__ */ s(
6
- "div",
7
- { class: "q-badge__underlay" },
8
- null,
9
- -1
10
- /* HOISTED */
11
- ), w = { class: "q-badge__content" }, I = {
12
- remove: {
13
- icon: "close"
14
- }
15
- }, A = /* @__PURE__ */ g({
1
+ import { defineComponent as g, computed as l, openBlock as a, createElementBlock as b, normalizeClass as C, normalizeStyle as _, createElementVNode as n, renderSlot as y, createBlock as q, unref as s, withCtx as k, createVNode as B, normalizeProps as x, guardReactiveProps as N, createCommentVNode as z } from "vue";
2
+ import { QButton as E } from "../QButton/index.js";
3
+ import { QIcon as Q } from "../QIcon/index.js";
4
+ import { DEFAULT_ICONS as S } from "./types.js";
5
+ import { parseColor as V, rgbToHsl as $, getContrastingColor as h } from "../../utils/color.js";
6
+ const w = { class: "q-badge__content" }, A = /* @__PURE__ */ g({
16
7
  __name: "QBadge",
17
8
  props: {
18
9
  color: { default: "primary" },
19
10
  variant: { default: "tonal" },
20
11
  removable: { type: Boolean },
21
12
  pill: { type: Boolean },
22
- internals: { default: () => ({ icons: I }) }
13
+ icons: { default: () => S }
23
14
  },
24
15
  emits: ["click:remove"],
25
- setup(c, { emit: i }) {
26
- const e = c, d = i, r = l(
16
+ setup(i, { emit: c }) {
17
+ const e = i, d = c, r = l(
27
18
  () => ["primary", "info", "success", "warning", "danger"].includes(e.color)
28
19
  ), m = l(() => {
29
20
  const o = r.value ? `q-badge--${e.color}` : void 0;
30
21
  return ["q-badge", `q-badge--${e.variant}`, o, { "q-badge--pill": e.pill }];
31
- }), u = l(() => {
22
+ }), p = l(() => {
32
23
  let o, t;
33
24
  if (!r.value)
34
25
  if (o = e.color, e.variant === "tonal")
35
26
  t = e.color;
36
27
  else {
37
- const v = Q(o), f = S(v);
38
- t = V(f.l);
28
+ const v = V(o), f = $(v);
29
+ t = h(f.l);
39
30
  }
40
31
  return {
41
32
  "--q-badge-color": o,
42
33
  "--q-badge-text-color": t
43
34
  };
44
35
  });
45
- function p() {
36
+ function u() {
46
37
  d("click:remove");
47
38
  }
48
- return (o, t) => (n(), _(
39
+ return (o, t) => (a(), b(
49
40
  "span",
50
41
  {
51
- class: b(m.value),
42
+ class: C(m.value),
52
43
  role: "presentation",
53
- style: C(u.value)
44
+ style: _(p.value)
54
45
  },
55
46
  [
56
- $,
57
- s("div", w, [
47
+ t[0] || (t[0] = n(
48
+ "div",
49
+ { class: "q-badge__underlay" },
50
+ null,
51
+ -1
52
+ /* HOISTED */
53
+ )),
54
+ n("div", w, [
58
55
  y(o.$slots, "default"),
59
- e.removable ? (n(), q(a(z), {
56
+ e.removable ? (a(), q(s(E), {
60
57
  key: 0,
61
58
  class: "q-badge__remove",
62
59
  borderless: "",
63
60
  tabindex: "0",
64
- onClick: p
61
+ onClick: u
65
62
  }, {
66
63
  default: k(() => [
67
64
  B(
68
- a(E),
69
- h(x(e.internals.icons.remove)),
65
+ s(Q),
66
+ x(N(e.icons.remove)),
70
67
  null,
71
68
  16
72
69
  /* FULL_PROPS */
@@ -74,7 +71,7 @@ const $ = /* @__PURE__ */ s(
74
71
  ]),
75
72
  _: 1
76
73
  /* STABLE */
77
- })) : N("v-if", !0)
74
+ })) : z("v-if", !0)
78
75
  ])
79
76
  ],
80
77
  6
@@ -1,141 +1,4 @@
1
- declare const QBadge: {
2
- new (...args: any[]): import('vue').CreateComponentPublicInstance<Readonly<import('vue').ExtractPropTypes<{
3
- variant: {
4
- type: import('vue').PropType<"bold" | "tonal" | "outlined">;
5
- default: string;
6
- };
7
- color: {
8
- type: import('vue').PropType<string>;
9
- default: string;
10
- };
11
- removable: {
12
- type: import('vue').PropType<boolean>;
13
- };
14
- pill: {
15
- type: import('vue').PropType<boolean>;
16
- };
17
- internals: {
18
- type: import('vue').PropType<{
19
- icons: Record<string, import('..').Icon>;
20
- }>;
21
- default: () => {
22
- icons: Record<string, import('..').Icon>;
23
- };
24
- };
25
- }>> & {
26
- "onClick:remove"?: (() => any) | undefined;
27
- }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
28
- "click:remove": () => void;
29
- }, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<import('vue').ExtractPropTypes<{
30
- variant: {
31
- type: import('vue').PropType<"bold" | "tonal" | "outlined">;
32
- default: string;
33
- };
34
- color: {
35
- type: import('vue').PropType<string>;
36
- default: string;
37
- };
38
- removable: {
39
- type: import('vue').PropType<boolean>;
40
- };
41
- pill: {
42
- type: import('vue').PropType<boolean>;
43
- };
44
- internals: {
45
- type: import('vue').PropType<{
46
- icons: Record<string, import('..').Icon>;
47
- }>;
48
- default: () => {
49
- icons: Record<string, import('..').Icon>;
50
- };
51
- };
52
- }>> & {
53
- "onClick:remove"?: (() => any) | undefined;
54
- }, {
55
- variant: "bold" | "tonal" | "outlined";
56
- color: string;
57
- internals: {
58
- icons: Record<string, import('..').Icon>;
59
- };
60
- }, true, {}, {}, {
61
- P: {};
62
- B: {};
63
- D: {};
64
- C: {};
65
- M: {};
66
- Defaults: {};
67
- }, Readonly<import('vue').ExtractPropTypes<{
68
- variant: {
69
- type: import('vue').PropType<"bold" | "tonal" | "outlined">;
70
- default: string;
71
- };
72
- color: {
73
- type: import('vue').PropType<string>;
74
- default: string;
75
- };
76
- removable: {
77
- type: import('vue').PropType<boolean>;
78
- };
79
- pill: {
80
- type: import('vue').PropType<boolean>;
81
- };
82
- internals: {
83
- type: import('vue').PropType<{
84
- icons: Record<string, import('..').Icon>;
85
- }>;
86
- default: () => {
87
- icons: Record<string, import('..').Icon>;
88
- };
89
- };
90
- }>> & {
91
- "onClick:remove"?: (() => any) | undefined;
92
- }, {}, {}, {}, {}, {
93
- variant: "bold" | "tonal" | "outlined";
94
- color: string;
95
- internals: {
96
- icons: Record<string, import('..').Icon>;
97
- };
98
- }>;
99
- __isFragment?: undefined;
100
- __isTeleport?: undefined;
101
- __isSuspense?: undefined;
102
- } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
103
- variant: {
104
- type: import('vue').PropType<"bold" | "tonal" | "outlined">;
105
- default: string;
106
- };
107
- color: {
108
- type: import('vue').PropType<string>;
109
- default: string;
110
- };
111
- removable: {
112
- type: import('vue').PropType<boolean>;
113
- };
114
- pill: {
115
- type: import('vue').PropType<boolean>;
116
- };
117
- internals: {
118
- type: import('vue').PropType<{
119
- icons: Record<string, import('..').Icon>;
120
- }>;
121
- default: () => {
122
- icons: Record<string, import('..').Icon>;
123
- };
124
- };
125
- }>> & {
126
- "onClick:remove"?: (() => any) | undefined;
127
- }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
128
- "click:remove": () => void;
129
- }, string, {
130
- variant: "bold" | "tonal" | "outlined";
131
- color: string;
132
- internals: {
133
- icons: Record<string, import('..').Icon>;
134
- };
135
- }, {}, string, {}> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
136
- $slots: {
137
- default?(_: {}): any;
138
- };
139
- });
1
+ import { default as _QBadge } from './QBadge';
2
+ declare const QBadge: typeof _QBadge;
140
3
  export { QBadge };
141
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QBadge/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA6C,CAAA;AAGzD,OAAO,EAAE,MAAM,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QBadge/index.ts"],"names":[],"mappings":"AACA,OAAO,OAAO,MAAM,cAAc,CAAA;AAKlC,QAAA,MAAM,MAAM,EAA+B,OAAO,OAAO,CAAA;AAGzD,OAAO,EAAE,MAAM,EAAE,CAAA"}
@@ -0,0 +1,29 @@
1
+ export type QBadgeProps = {
2
+ /**
3
+ * The color of the badge.
4
+ * Can be chosen from utility colors like 'success' or 'danger', or specified using CSS color codes.
5
+ */
6
+ color?: string;
7
+ /**
8
+ * The visual style variant of the badge.
9
+ */
10
+ variant?: 'tonal' | 'bold' | 'outlined';
11
+ /**
12
+ * Indicates if the badge can be removed.
13
+ */
14
+ removable?: boolean;
15
+ /**
16
+ * Whether to convey a pill shape to the badge.
17
+ */
18
+ pill?: boolean;
19
+ /**
20
+ * Custom icon configurations.
21
+ */
22
+ icons?: typeof DEFAULT_ICONS;
23
+ };
24
+ export declare const DEFAULT_ICONS: {
25
+ remove: {
26
+ icon: string;
27
+ };
28
+ };
29
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QBadge/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG;IACzB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,UAAU,CAAA;IAEvC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IAEnB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;CAC5B,CAAA;AAGD,eAAO,MAAM,aAAa;;;;CAIzB,CAAA"}
@@ -0,0 +1,8 @@
1
+ const o = {
2
+ remove: {
3
+ icon: "close"
4
+ }
5
+ };
6
+ export {
7
+ o as DEFAULT_ICONS
8
+ };
@@ -1,89 +1,24 @@
1
- export type QButtonProps = {
2
- /**
3
- * Indicates whether the button is active or not.
4
- */
5
- active?: boolean;
6
- /**
7
- * The style of the button.
8
- */
9
- bStyle?: 'primary' | 'secondary' | 'tertiary' | 'danger' | 'plain';
10
- /**
11
- * The text content of the button.
12
- */
13
- label?: string;
14
- /**
15
- * If true, the button is disabled and cannot be interacted with.
16
- */
17
- disabled?: boolean;
18
- /**
19
- * If true, the button icon is displayed on the right side.
20
- */
21
- iconOnRight?: boolean;
22
- /**
23
- * If true, the button has no borders.
24
- */
25
- borderless?: boolean;
26
- /**
27
- * If true, the button has an elevated appearance.
28
- */
29
- elevated?: boolean;
30
- /**
31
- * If true, the button spans the full width of its container.
32
- */
33
- block?: boolean;
34
- /**
35
- * If true, the button is in a loading state, indicating ongoing activity.
36
- */
37
- loading?: boolean;
38
- /**
39
- * The size of the button, either 'regular' or 'small'.
40
- */
41
- size?: 'regular' | 'small';
42
- /**
43
- * Custom set of classes to apply to the component.
44
- */
45
- class?: string | unknown[];
1
+ import { QButtonProps } from './types';
2
+ declare function __VLS_template(): {
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ attrs: Partial<{}>;
46
8
  };
47
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<QButtonProps>, {
48
- bStyle: string;
49
- label: string;
50
- size: string;
51
- class: undefined;
52
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
53
- click: (event: Event) => void;
54
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<QButtonProps>, {
55
- bStyle: string;
56
- label: string;
57
- size: string;
58
- class: undefined;
59
- }>>> & {
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import('vue').DefineComponent<QButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
11
+ click: (event: Event) => any;
12
+ }, string, import('vue').PublicProps, Readonly<QButtonProps> & Readonly<{
60
13
  onClick?: ((event: Event) => any) | undefined;
61
- }, {
62
- size: "small" | "regular";
14
+ }>, {
15
+ size: "regular" | "small";
63
16
  class: string | unknown[];
64
17
  label: string;
65
18
  bStyle: "primary" | "secondary" | "tertiary" | "danger" | "plain";
66
- }, {}>, {
67
- default?(_: {}): any;
68
- }>;
19
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
20
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
69
21
  export default _default;
70
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
71
- type __VLS_TypePropsToRuntimeProps<T> = {
72
- [K in keyof T]-?: {} extends Pick<T, K> ? {
73
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
74
- } : {
75
- type: import('vue').PropType<T[K]>;
76
- required: true;
77
- };
78
- };
79
- type __VLS_WithDefaults<P, D> = {
80
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
81
- default: D[K];
82
- }> : P[K];
83
- };
84
- type __VLS_Prettify<T> = {
85
- [K in keyof T]: T[K];
86
- } & {};
87
22
  type __VLS_WithTemplateSlots<T, S> = T & {
88
23
  new (): {
89
24
  $slots: S;
@@ -1 +1 @@
1
- {"version":3,"file":"QButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QButton/QButton.vue"],"names":[],"mappings":"AAwBA;AAQC,MAAM,MAAM,YAAY,GAAG;IAC1B;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB;;OAEG;IACH,MAA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