@quidgest/ui 0.14.17 → 0.14.19

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 (113) hide show
  1. package/dist/manifest/components.json +3 -0
  2. package/dist/ui.css +90 -27
  3. package/dist/ui.esm.js +5867 -5517
  4. package/dist/ui.js +16 -16
  5. package/dist/ui.min.css +1 -1
  6. package/dist/ui.min.js +222 -198
  7. package/dist/ui.scss +94 -30
  8. package/esm/components/QBadge/QBadge.d.ts.map +1 -1
  9. package/esm/components/QBadge/QBadge.vue.js +42 -48
  10. package/esm/components/QCheckbox/QCheckbox.d.ts +2 -1
  11. package/esm/components/QCheckbox/QCheckbox.d.ts.map +1 -1
  12. package/esm/components/QCheckbox/QCheckbox.vue.js +4 -4
  13. package/esm/components/QCheckbox/constants.d.ts +9 -0
  14. package/esm/components/QCheckbox/constants.d.ts.map +1 -0
  15. package/esm/components/QCheckbox/index.d.ts +6 -6
  16. package/esm/components/QCheckbox/types.d.ts +1 -8
  17. package/esm/components/QCheckbox/types.d.ts.map +1 -1
  18. package/esm/components/QCollapsible/QCollapsible.d.ts.map +1 -1
  19. package/esm/components/QCollapsible/QCollapsible.vue.js +9 -8
  20. package/esm/components/QCombobox/QCombobox.d.ts +24 -0
  21. package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
  22. package/esm/components/QCombobox/QCombobox.vue.js +1 -0
  23. package/esm/components/QCombobox/index.d.ts +45 -3
  24. package/esm/components/QCombobox/index.d.ts.map +1 -1
  25. package/esm/components/QDateTimePicker/QDateTimePicker.d.ts.map +1 -1
  26. package/esm/components/QDateTimePicker/QDateTimePicker.vue.js +12 -10
  27. package/esm/components/QDateTimePicker/index.d.ts +6 -0
  28. package/esm/components/QDateTimePicker/index.d.ts.map +1 -1
  29. package/esm/components/QField/QField.d.ts.map +1 -1
  30. package/esm/components/QField/QField.vue.js +47 -39
  31. package/esm/components/QField/types.d.ts +6 -10
  32. package/esm/components/QField/types.d.ts.map +1 -1
  33. package/esm/components/QFileUpload/QFileUpload.d.ts.map +1 -1
  34. package/esm/components/QFileUpload/QFileUpload.vue.js +15 -13
  35. package/esm/components/QFileUpload/index.d.ts +6 -0
  36. package/esm/components/QFileUpload/index.d.ts.map +1 -1
  37. package/esm/components/QInputGroup/QInputGroup.d.ts +2 -0
  38. package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
  39. package/esm/components/QInputGroup/QInputGroup.vue.js +40 -32
  40. package/esm/components/QInputGroup/index.d.ts +2 -0
  41. package/esm/components/QInputGroup/index.d.ts.map +1 -1
  42. package/esm/components/QLabel/QLabel.d.ts +20 -0
  43. package/esm/components/QLabel/QLabel.d.ts.map +1 -0
  44. package/esm/components/QLabel/QLabel.vue.js +27 -0
  45. package/esm/components/QLabel/QLabel.vue2.js +4 -0
  46. package/esm/components/QLabel/index.d.ts +22 -0
  47. package/esm/components/QLabel/index.d.ts.map +1 -0
  48. package/esm/components/QLabel/index.js +6 -0
  49. package/esm/components/QLabel/types.d.ts +12 -0
  50. package/esm/components/QLabel/types.d.ts.map +1 -0
  51. package/esm/components/QMeter/QMeter.d.ts +14 -0
  52. package/esm/components/QMeter/QMeter.d.ts.map +1 -0
  53. package/esm/components/QMeter/QMeter.vue.js +60 -0
  54. package/esm/components/QMeter/QMeter.vue2.js +4 -0
  55. package/esm/components/QMeter/index.d.ts +29 -0
  56. package/esm/components/QMeter/index.d.ts.map +1 -0
  57. package/esm/components/QMeter/index.js +6 -0
  58. package/esm/components/QMeter/types.d.ts +20 -0
  59. package/esm/components/QMeter/types.d.ts.map +1 -0
  60. package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
  61. package/esm/components/QOverlay/QOverlay.vue.js +94 -102
  62. package/esm/components/QOverlay/index.d.ts +2 -0
  63. package/esm/components/QOverlay/index.d.ts.map +1 -1
  64. package/esm/components/QPasswordField/QPasswordField.d.ts +413 -0
  65. package/esm/components/QPasswordField/QPasswordField.d.ts.map +1 -0
  66. package/esm/components/QPasswordField/QPasswordField.vue.js +162 -0
  67. package/esm/components/QPasswordField/QPasswordField.vue2.js +4 -0
  68. package/esm/components/QPasswordField/QPasswordFieldMessages.d.ts +4 -0
  69. package/esm/components/QPasswordField/QPasswordFieldMessages.d.ts.map +1 -0
  70. package/esm/components/QPasswordField/QPasswordFieldMessages.vue.js +28 -0
  71. package/esm/components/QPasswordField/QPasswordFieldMessages.vue2.js +4 -0
  72. package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.d.ts +12 -0
  73. package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.d.ts.map +1 -0
  74. package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue.js +97 -0
  75. package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue2.js +4 -0
  76. package/esm/components/QPasswordField/constants.d.ts +9 -0
  77. package/esm/components/QPasswordField/constants.d.ts.map +1 -0
  78. package/esm/components/QPasswordField/constants.js +11 -0
  79. package/esm/components/QPasswordField/index.d.ts +264 -0
  80. package/esm/components/QPasswordField/index.d.ts.map +1 -0
  81. package/esm/components/QPasswordField/index.js +6 -0
  82. package/esm/components/QPasswordField/types.d.ts +100 -0
  83. package/esm/components/QPasswordField/types.d.ts.map +1 -0
  84. package/esm/components/QSelect/QSelect.d.ts +2 -0
  85. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  86. package/esm/components/QSelect/QSelect.vue.js +31 -29
  87. package/esm/components/QSelect/index.d.ts +7 -0
  88. package/esm/components/QSelect/index.d.ts.map +1 -1
  89. package/esm/components/QTextArea/QTextArea.vue.js +10 -9
  90. package/esm/components/QTextArea/index.d.ts +6 -0
  91. package/esm/components/QTextArea/index.d.ts.map +1 -1
  92. package/esm/components/QTextField/QTextField.d.ts +2 -0
  93. package/esm/components/QTextField/QTextField.d.ts.map +1 -1
  94. package/esm/components/QTextField/QTextField.vue.js +8 -6
  95. package/esm/components/QTextField/index.d.ts +9 -0
  96. package/esm/components/QTextField/index.d.ts.map +1 -1
  97. package/esm/components/QThemeProvider/QThemeProvider.d.ts.map +1 -1
  98. package/esm/components/QThemeProvider/QThemeProvider.vue.js +9 -9
  99. package/esm/components/index.d.ts +3 -0
  100. package/esm/components/index.d.ts.map +1 -1
  101. package/esm/components/index.js +51 -45
  102. package/esm/composables/theme.d.ts +2 -0
  103. package/esm/composables/theme.d.ts.map +1 -1
  104. package/esm/composables/useColorStyle/index.d.ts +11 -0
  105. package/esm/composables/useColorStyle/index.d.ts.map +1 -0
  106. package/esm/composables/useColorStyle/index.js +33 -0
  107. package/esm/composables/useColorStyle/types.d.ts +36 -0
  108. package/esm/composables/useColorStyle/types.d.ts.map +1 -0
  109. package/esm/index.d.ts +3 -0
  110. package/esm/utils/theme.d.ts.map +1 -1
  111. package/esm/utils/theme.js +27 -26
  112. package/package.json +1 -1
  113. /package/esm/components/QCheckbox/{types.js → constants.js} +0 -0
@@ -4,30 +4,33 @@ import { QBadgeIndicator as m } from "./QBadgeIndicator/index.js";
4
4
  import { QButton as f } from "./QButton/index.js";
5
5
  import { QButtonGroup as n } from "./QButtonGroup/index.js";
6
6
  import { QButtonToggle as a } from "./QButtonToggle/index.js";
7
- import { QCard as c } from "./QCard/index.js";
8
- import { QCheckbox as u } from "./QCheckbox/index.js";
9
- import { QCollapsible as P } from "./QCollapsible/index.js";
7
+ import { QCard as L } from "./QCard/index.js";
8
+ import { QCheckbox as s } from "./QCheckbox/index.js";
9
+ import { QCollapsible as u } from "./QCollapsible/index.js";
10
10
  import { QColorPicker as g } from "./QColorPicker/index.js";
11
- import { QCombobox as y } from "./QCombobox/index.js";
12
- import { QDateTimePicker as C } from "./QDateTimePicker/index.js";
13
- import { QDialog as k } from "./QDialog/index.js";
14
- import { QDropdownMenu as F } from "./QDropdownMenu/index.js";
11
+ import { QCombobox as b } from "./QCombobox/index.js";
12
+ import { QDateTimePicker as B } from "./QDateTimePicker/index.js";
13
+ import { QDialog as F } from "./QDialog/index.js";
14
+ import { QDropdownMenu as v } from "./QDropdownMenu/index.js";
15
15
  import { QField as S } from "./QField/index.js";
16
- import { QFileUpload as h } from "./QFileUpload/index.js";
16
+ import { QFileUpload as D } from "./QFileUpload/index.js";
17
17
  import { QIcon as A, QIconFont as M, QIconImg as O, QIconSvg as R } from "./QIcon/index.js";
18
18
  import { QInputGroup as j } from "./QInputGroup/index.js";
19
- import { QLineLoader as z } from "./QLineLoader/index.js";
20
- import { QList as H, QListItem as J, QListItemGroup as K } from "./QList/index.js";
21
- import { QOverlay as V } from "./QOverlay/index.js";
22
- import { QPopover as X } from "./QPopover/index.js";
23
- import { QPropertyList as Z, QPropertyListGroup as _, QPropertyListPanel as $, QPropertyListRow as oo } from "./QPropertyList/index.js";
24
- import { QSelect as eo } from "./QSelect/index.js";
25
- import { QSkeletonLoader as po } from "./QSkeletonLoader/index.js";
26
- import { QSpinnerLoader as mo } from "./QSpinnerLoader/index.js";
27
- import { QTextArea as fo } from "./QTextArea/index.js";
28
- import { QTextField as no } from "./QTextField/index.js";
29
- import { QThemeProvider as ao } from "./QThemeProvider/index.js";
30
- import { QTooltip as Lo } from "./QTooltip/index.js";
19
+ import { QLabel as z } from "./QLabel/index.js";
20
+ import { QLineLoader as H } from "./QLineLoader/index.js";
21
+ import { QList as K, QListItem as N, QListItemGroup as V } from "./QList/index.js";
22
+ import { QMeter as X } from "./QMeter/index.js";
23
+ import { QOverlay as Z } from "./QOverlay/index.js";
24
+ import { QPasswordField as $ } from "./QPasswordField/index.js";
25
+ import { QPopover as ro } from "./QPopover/index.js";
26
+ import { QPropertyList as to, QPropertyListGroup as po, QPropertyListPanel as Qo, QPropertyListRow as mo } from "./QPropertyList/index.js";
27
+ import { QSelect as fo } from "./QSelect/index.js";
28
+ import { QSkeletonLoader as no } from "./QSkeletonLoader/index.js";
29
+ import { QSpinnerLoader as ao } from "./QSpinnerLoader/index.js";
30
+ import { QTextArea as co } from "./QTextArea/index.js";
31
+ import { QTextField as Po } from "./QTextField/index.js";
32
+ import { QThemeProvider as Io } from "./QThemeProvider/index.js";
33
+ import { QTooltip as To } from "./QTooltip/index.js";
31
34
  export {
32
35
  e as QAccordion,
33
36
  p as QBadge,
@@ -35,36 +38,39 @@ export {
35
38
  f as QButton,
36
39
  n as QButtonGroup,
37
40
  a as QButtonToggle,
38
- c as QCard,
39
- u as QCheckbox,
40
- P as QCollapsible,
41
+ L as QCard,
42
+ s as QCheckbox,
43
+ u as QCollapsible,
41
44
  g as QColorPicker,
42
- y as QCombobox,
43
- C as QDateTimePicker,
44
- k as QDialog,
45
- F as QDropdownMenu,
45
+ b as QCombobox,
46
+ B as QDateTimePicker,
47
+ F as QDialog,
48
+ v as QDropdownMenu,
46
49
  S as QField,
47
- h as QFileUpload,
50
+ D as QFileUpload,
48
51
  A as QIcon,
49
52
  M as QIconFont,
50
53
  O as QIconImg,
51
54
  R as QIconSvg,
52
55
  j as QInputGroup,
53
- z as QLineLoader,
54
- H as QList,
55
- J as QListItem,
56
- K as QListItemGroup,
57
- V as QOverlay,
58
- X as QPopover,
59
- Z as QPropertyList,
60
- _ as QPropertyListGroup,
61
- $ as QPropertyListPanel,
62
- oo as QPropertyListRow,
63
- eo as QSelect,
64
- po as QSkeletonLoader,
65
- mo as QSpinnerLoader,
66
- fo as QTextArea,
67
- no as QTextField,
68
- ao as QThemeProvider,
69
- Lo as QTooltip
56
+ z as QLabel,
57
+ H as QLineLoader,
58
+ K as QList,
59
+ N as QListItem,
60
+ V as QListItemGroup,
61
+ X as QMeter,
62
+ Z as QOverlay,
63
+ $ as QPasswordField,
64
+ ro as QPopover,
65
+ to as QPropertyList,
66
+ po as QPropertyListGroup,
67
+ Qo as QPropertyListPanel,
68
+ mo as QPropertyListRow,
69
+ fo as QSelect,
70
+ no as QSkeletonLoader,
71
+ ao as QSpinnerLoader,
72
+ co as QTextArea,
73
+ Po as QTextField,
74
+ Io as QThemeProvider,
75
+ To as QTooltip
70
76
  };
@@ -44,6 +44,8 @@ export type ThemeInstance = {
44
44
  readonly current: DeepReadonly<ComputedRef<ThemeDefinition>>;
45
45
  /** An array of available theme definitions. */
46
46
  readonly themes: DeepReadonly<ThemeDefinition[]>;
47
+ /** The theme class. */
48
+ readonly class: ComputedRef<string>;
47
49
  };
48
50
  /**
49
51
  * Custom hook for accessing the theme configuration in context.
@@ -1 +1 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/composables/theme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAMhD,eAAO,MAAM,WAAW,EAAE,YAAY,CAAC,aAAa,CAAyB,CAAA;AAE7E;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,MAAM,CAAA;AAExC;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG;IACvB,6DAA6D;IAC7D,YAAY,EAAE,MAAM,CAAA;IAEpB,mEAAmE;IACnE,MAAM,EAAE,KAAK,CAAC;QACb,6BAA6B;QAC7B,IAAI,EAAE,MAAM,CAAA;QAEZ,mDAAmD;QACnD,IAAI,EAAE,SAAS,CAAA;QAEf,qEAAqE;QACrE,MAAM,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAA;KAC7B,CAAC,CAAA;CACF,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC7B,oCAAoC;IACpC,IAAI,EAAE,MAAM,CAAA;IAEZ,mDAAmD;IACnD,IAAI,EAAE,SAAS,CAAA;IAEf,kDAAkD;IAClD,MAAM,EAAE,WAAW,CAAA;CACnB,CAAA;AAED;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG;IAC3B,yDAAyD;IACzD,QAAQ,CAAC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAE1B,4DAA4D;IAC5D,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC,CAAA;IAE5D,+CAA+C;IAC/C,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAC,eAAe,EAAE,CAAC,CAAA;CAChD,CAAA;AAED;;;;GAIG;AACH,wBAAgB,QAAQ,IAAI,aAAa,CAQxC;AAED;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,aAAa,CAU7D"}
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/composables/theme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAMhD,eAAO,MAAM,WAAW,EAAE,YAAY,CAAC,aAAa,CAAyB,CAAA;AAE7E;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,MAAM,CAAA;AAExC;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG;IACvB,6DAA6D;IAC7D,YAAY,EAAE,MAAM,CAAA;IAEpB,mEAAmE;IACnE,MAAM,EAAE,KAAK,CAAC;QACb,6BAA6B;QAC7B,IAAI,EAAE,MAAM,CAAA;QAEZ,mDAAmD;QACnD,IAAI,EAAE,SAAS,CAAA;QAEf,qEAAqE;QACrE,MAAM,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAA;KAC7B,CAAC,CAAA;CACF,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC7B,oCAAoC;IACpC,IAAI,EAAE,MAAM,CAAA;IAEZ,mDAAmD;IACnD,IAAI,EAAE,SAAS,CAAA;IAEf,kDAAkD;IAClD,MAAM,EAAE,WAAW,CAAA;CACnB,CAAA;AAED;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG;IAC3B,yDAAyD;IACzD,QAAQ,CAAC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAE1B,4DAA4D;IAC5D,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC,CAAA;IAE5D,+CAA+C;IAC/C,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAC,eAAe,EAAE,CAAC,CAAA;IAEhD,uBAAuB;IACvB,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;CACnC,CAAA;AAED;;;;GAIG;AACH,wBAAgB,QAAQ,IAAI,aAAa,CAQxC;AAED;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,aAAa,CAU7D"}
@@ -0,0 +1,11 @@
1
+ import { MaybeRef } from 'vue';
2
+ import { UseColorStyleReturn } from './types';
3
+ /**
4
+ * useColorStyle - Computes color styles based on a given color and variant.
5
+ *
6
+ * @param color - The base color (can be a utility color or custom color).
7
+ * @param variant - Determines text/background styling behavior.
8
+ * @returns Computed color styling properties.
9
+ */
10
+ export declare function useColorStyle(color: MaybeRef<string | undefined>, variant: MaybeRef<string>): UseColorStyleReturn;
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/useColorStyle/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AACnC,OAAO,KAAK,EAAc,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAO9D;;;;;;GAMG;AACH,wBAAgB,aAAa,CAC5B,KAAK,EAAE,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC,EACnC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,GACvB,mBAAmB,CAqDrB"}
@@ -0,0 +1,33 @@
1
+ import { parseColor as C, rgbToHsl as p, colorToHex as y, darken as v, getContrastingColor as k } from "../../utils/color.js";
2
+ import { computed as u, unref as l } from "vue";
3
+ import { useTheme as T } from "../theme.js";
4
+ function H(i, a) {
5
+ const d = /* @__PURE__ */ new Set(["primary", "info", "success", "warning", "danger", "highlight"]), s = u(() => d.has(l(i) ?? "")), f = u(() => {
6
+ const r = l(i);
7
+ if (!r) return;
8
+ let e = r;
9
+ const g = T();
10
+ if (s.value) {
11
+ const t = r;
12
+ e = g.current.value.scheme[t] ?? r;
13
+ }
14
+ let n;
15
+ try {
16
+ if (n = C(e), !n) return;
17
+ } catch (t) {
18
+ console.error("Failed to parse color:", t);
19
+ return;
20
+ }
21
+ const h = p(n), c = k(h.l), m = y(v(n, 25)), o = l(a);
22
+ return {
23
+ backgroundColor: e,
24
+ color: o === "tonal" || o === "outlined" ? e : c,
25
+ hoverColor: o === "tonal" || o === "outlined" ? c : void 0,
26
+ hoverBackgroundColor: o !== "tonal" && o !== "outlined" ? m : void 0
27
+ };
28
+ });
29
+ return { isUtilityColor: s, style: f };
30
+ }
31
+ export {
32
+ H as useColorStyle
33
+ };
@@ -0,0 +1,36 @@
1
+ import { ComputedRef } from 'vue';
2
+ /**
3
+ * Represents a style configuration for colors.
4
+ */
5
+ export interface ColorStyle {
6
+ /**
7
+ * The background color.
8
+ */
9
+ backgroundColor: string;
10
+ /**
11
+ * The text color.
12
+ */
13
+ color: string;
14
+ /**
15
+ * The text color when hovered (optional).
16
+ */
17
+ hoverColor?: string;
18
+ /**
19
+ * The background color when hovered (optional).
20
+ */
21
+ hoverBackgroundColor?: string;
22
+ }
23
+ /**
24
+ * Interface representing the return type of the `useColorStyle` composable.
25
+ */
26
+ export interface UseColorStyleReturn {
27
+ /**
28
+ * A computed reference indicating whether the color is a utility color.
29
+ */
30
+ isUtilityColor: ComputedRef<boolean>;
31
+ /**
32
+ * A computed reference to the color style, which may be undefined.
33
+ */
34
+ style: ComputedRef<ColorStyle | undefined>;
35
+ }
36
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/composables/useColorStyle/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,KAAK,CAAA;AAEtC;;GAEG;AACH,MAAM,WAAW,UAAU;IAC1B;;OAEG;IACH,eAAe,EAAE,MAAM,CAAA;IAEvB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IAEnB;;OAEG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAA;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IACnC;;OAEG;IACH,cAAc,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;IAEpC;;OAEG;IACH,KAAK,EAAE,WAAW,CAAC,UAAU,GAAG,SAAS,CAAC,CAAA;CAC1C"}
package/esm/index.d.ts CHANGED
@@ -28,11 +28,14 @@ declare module '@vue/runtime-core' {
28
28
  QIconImg: typeof import('@quidgest/ui/components')['QIconImg']
29
29
  QIconSvg: typeof import('@quidgest/ui/components')['QIconSvg']
30
30
  QInputGroup: typeof import('@quidgest/ui/components')['QInputGroup']
31
+ QLabel: typeof import('@quidgest/ui/components')['QLabel']
31
32
  QLineLoader: typeof import('@quidgest/ui/components')['QLineLoader']
32
33
  QList: typeof import('@quidgest/ui/components')['QList']
33
34
  QListItem: typeof import('@quidgest/ui/components')['QListItem']
34
35
  QListItemGroup: typeof import('@quidgest/ui/components')['QListItemGroup']
36
+ QMeter: typeof import('@quidgest/ui/components')['QMeter']
35
37
  QOverlay: typeof import('@quidgest/ui/components')['QOverlay']
38
+ QPasswordField: typeof import('@quidgest/ui/components')['QPasswordField']
36
39
  QPopover: typeof import('@quidgest/ui/components')['QPopover']
37
40
  QPropertyList: typeof import('@quidgest/ui/components')['QPropertyList']
38
41
  QPropertyListRow: typeof import('@quidgest/ui/components')['QPropertyListRow']
@@ -1 +1 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/utils/theme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AACzE,OAAO,KAAK,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAQ5C,eAAO,MAAM,aAAa,YAAY,CAAA;AAEtC;;;;GAIG;AACH,wBAAgB,YAAY,IAAI,gBAAgB,CAY/C;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,eAAe,EAAE,QA2B1D;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,UAOvC;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAClC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,EACjB,MAAM,EAAE,YAAY,CAAC,eAAe,EAAE,CAAC,GACrC,aAAa,CAgBf"}
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/utils/theme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AACzE,OAAO,KAAK,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAQ5C,eAAO,MAAM,aAAa,YAAY,CAAA;AAEtC;;;;GAIG;AACH,wBAAgB,YAAY,IAAI,gBAAgB,CAY/C;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,eAAe,EAAE,QA2B1D;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,UAOvC;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAClC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,EACjB,MAAM,EAAE,YAAY,CAAC,eAAe,EAAE,CAAC,GACrC,aAAa,CAmBf"}
@@ -1,56 +1,57 @@
1
- import { computed as h } from "vue";
2
- import { parseColor as i } from "./color.js";
3
- import { toKebabCase as d } from "./string.js";
4
- const u = "q-theme";
5
- function a() {
1
+ import { computed as u } from "vue";
2
+ import { parseColor as f } from "./color.js";
3
+ import { toKebabCase as i } from "./string.js";
4
+ const a = "q-theme";
5
+ function l() {
6
6
  let e = document.getElementById(
7
- u
7
+ a
8
8
  );
9
- return e || (e = document.createElement("style"), e.id = u, document.head.appendChild(e)), e;
9
+ return e || (e = document.createElement("style"), e.id = a, document.head.appendChild(e)), e;
10
10
  }
11
11
  function g(e) {
12
12
  let t = "";
13
13
  for (const c of e) {
14
14
  t += `.q-theme--${c.name} {
15
15
  `;
16
- const o = c.scheme;
16
+ const m = c.scheme;
17
17
  let n;
18
- for (n in o) {
19
- const m = o[n];
20
- if (m) {
21
- t += ` ${f(n)}: ${m};
18
+ for (n in m) {
19
+ const o = m[n];
20
+ if (o) {
21
+ t += ` ${h(n)}: ${o};
22
22
  `;
23
- const s = i(m);
24
- t += ` ${f(n)}-rgb: ${s.r} ${s.g} ${s.b};
23
+ const s = f(o);
24
+ t += ` ${h(n)}-rgb: ${s.r} ${s.g} ${s.b};
25
25
  `;
26
26
  }
27
27
  }
28
28
  t += `}
29
29
  `;
30
30
  }
31
- const r = a();
31
+ const r = l();
32
32
  r.textContent = t;
33
33
  }
34
- function f(e) {
35
- return e ? `--q-theme-${d(e)}` : "";
34
+ function h(e) {
35
+ return e ? `--q-theme-${i(e)}` : "";
36
36
  }
37
37
  function E(e, t) {
38
- const r = h(() => {
39
- const o = t.find((n) => n.name === e.value);
40
- if (!o)
38
+ const r = u(() => {
39
+ const n = t.find((o) => o.name === e.value);
40
+ if (!n)
41
41
  throw new Error(`Theme "${e}" not found`);
42
- return o;
43
- });
42
+ return n;
43
+ }), c = u(() => `q-theme--${r.value.name}`);
44
44
  return {
45
45
  name: e,
46
46
  current: r,
47
- themes: t
47
+ themes: t,
48
+ class: c
48
49
  };
49
50
  }
50
51
  export {
51
- u as THEME_NODE_ID,
52
+ a as THEME_NODE_ID,
52
53
  E as createThemeInstance,
53
54
  g as generateRootStyle,
54
- a as getThemeNode,
55
- f as toProperty
55
+ l as getThemeNode,
56
+ h as toProperty
56
57
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@quidgest/ui",
3
3
  "description": "Quidgest's UI framework",
4
- "version": "0.14.17",
4
+ "version": "0.14.19",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "author": "Quidgest",