@quidgest/ui 0.24.0 → 0.26.0

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 (186) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/dist/json/api.json +54 -9
  3. package/dist/ui.css +239 -192
  4. package/dist/ui.esm.js +582 -575
  5. package/dist/ui.js +540 -533
  6. package/dist/ui.min.css +1 -1
  7. package/dist/ui.min.js +540 -533
  8. package/dist/ui.scss +300 -260
  9. package/esm/components/QBadge/constants.d.ts.map +1 -1
  10. package/esm/components/QButton/QButton.d.ts +3 -2
  11. package/esm/components/QButton/QButton.d.ts.map +1 -1
  12. package/esm/components/QButton/QButton.vue.js +68 -40
  13. package/esm/components/QButton/index.d.ts +8 -5
  14. package/esm/components/QButton/index.d.ts.map +1 -1
  15. package/esm/components/QButton/types.d.ts +8 -0
  16. package/esm/components/QButton/types.d.ts.map +1 -1
  17. package/esm/components/QCarousel/QCarousel.d.ts +2 -2
  18. package/esm/components/QCarousel/QCarousel.d.ts.map +1 -1
  19. package/esm/components/QCarousel/constants.d.ts.map +1 -1
  20. package/esm/components/QCarousel/index.d.ts +6 -6
  21. package/esm/components/QCarousel/types.d.ts +2 -2
  22. package/esm/components/QCarousel/types.d.ts.map +1 -1
  23. package/esm/components/QCheckbox/constants.d.ts.map +1 -1
  24. package/esm/components/QCollapsible/constants.d.ts.map +1 -1
  25. package/esm/components/QCombobox/QCombobox.d.ts +34 -28
  26. package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
  27. package/esm/components/QCombobox/constants.d.ts.map +1 -1
  28. package/esm/components/QCombobox/index.d.ts +26 -23
  29. package/esm/components/QCombobox/index.d.ts.map +1 -1
  30. package/esm/components/QCombobox/types.d.ts +3 -3
  31. package/esm/components/QCombobox/types.d.ts.map +1 -1
  32. package/esm/components/QDateTimePicker/QDateTimePicker.d.ts +54 -36
  33. package/esm/components/QDateTimePicker/QDateTimePicker.d.ts.map +1 -1
  34. package/esm/components/QDateTimePicker/constants.d.ts.map +1 -1
  35. package/esm/components/QDateTimePicker/index.d.ts +27 -18
  36. package/esm/components/QDateTimePicker/index.d.ts.map +1 -1
  37. package/esm/components/QDateTimePicker/types.d.ts +3 -3
  38. package/esm/components/QDateTimePicker/types.d.ts.map +1 -1
  39. package/esm/components/QDefaultsProvider/types.d.ts +2 -2
  40. package/esm/components/QDefaultsProvider/types.d.ts.map +1 -1
  41. package/esm/components/QDialog/QDialog.d.ts +3 -3
  42. package/esm/components/QDialog/QDialog.d.ts.map +1 -1
  43. package/esm/components/QDialog/constants.d.ts +4 -4
  44. package/esm/components/QDialog/constants.d.ts.map +1 -1
  45. package/esm/components/QDialog/index.d.ts +12 -12
  46. package/esm/components/QDialog/types.d.ts +5 -5
  47. package/esm/components/QDialog/types.d.ts.map +1 -1
  48. package/esm/components/QDismissibleLayer/QDismissibleLayer.d.ts +9 -9
  49. package/esm/components/QDismissibleLayer/QDismissibleLayer.d.ts.map +1 -1
  50. package/esm/components/QDismissibleLayer/index.d.ts +20 -20
  51. package/esm/components/QDismissibleLayer/types.d.ts +2 -2
  52. package/esm/components/QDismissibleLayer/types.d.ts.map +1 -1
  53. package/esm/components/QDropdownMenu/QDropdownMenu.d.ts +2 -2
  54. package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +20 -20
  55. package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
  56. package/esm/components/QDropdownMenu/constants.d.ts.map +1 -1
  57. package/esm/components/QDropdownMenu/index.d.ts +8 -8
  58. package/esm/components/QDropdownMenu/types.d.ts +3 -3
  59. package/esm/components/QDropdownMenu/types.d.ts.map +1 -1
  60. package/esm/components/QFileUpload/constants.d.ts.map +1 -1
  61. package/esm/components/QIcon/QIcon.d.ts.map +1 -1
  62. package/esm/components/QIcon/QIcon.vue.js +4 -4
  63. package/esm/components/QIcon/types.d.ts +1 -2
  64. package/esm/components/QIcon/types.d.ts.map +1 -1
  65. package/esm/components/QInputGroup/types.d.ts +3 -3
  66. package/esm/components/QInputGroup/types.d.ts.map +1 -1
  67. package/esm/components/QList/QList.d.ts +6 -6
  68. package/esm/components/QList/QList.d.ts.map +1 -1
  69. package/esm/components/QList/constants.d.ts.map +1 -1
  70. package/esm/components/QList/index.d.ts +6 -6
  71. package/esm/components/QList/types.d.ts +6 -6
  72. package/esm/components/QList/types.d.ts.map +1 -1
  73. package/esm/components/QObfuscation/constants.d.ts.map +1 -1
  74. package/esm/components/QOverflow/constants.d.ts.map +1 -1
  75. package/esm/components/QPasswordField/QPasswordField.d.ts.map +1 -1
  76. package/esm/components/QPasswordField/constants.d.ts.map +1 -1
  77. package/esm/components/QPasswordField/index.d.ts +3 -3
  78. package/esm/components/QPasswordField/types.d.ts +4 -4
  79. package/esm/components/QPasswordField/types.d.ts.map +1 -1
  80. package/esm/components/QPhoneField/QPhoneField.d.ts +38 -38
  81. package/esm/components/QPhoneField/index.d.ts +19 -19
  82. package/esm/components/QPropertyList/QPropertyList.d.ts +1 -1
  83. package/esm/components/QPropertyList/constants.d.ts.map +1 -1
  84. package/esm/components/QPropertyList/index.d.ts +3 -3
  85. package/esm/components/QPropertyList/types.d.ts +2 -2
  86. package/esm/components/QPropertyList/types.d.ts.map +1 -1
  87. package/esm/components/QRemoveScrollBar/QRemoveScrollBar.d.ts +2 -2
  88. package/esm/components/QRemoveScrollBar/QRemoveScrollBar.d.ts.map +1 -1
  89. package/esm/components/QRemoveScrollBar/index.d.ts +3 -3
  90. package/esm/components/QRemoveScrollBar/types.d.ts +2 -2
  91. package/esm/components/QRemoveScrollBar/types.d.ts.map +1 -1
  92. package/esm/components/QRemoveScrollBar/utils/gap.d.ts +3 -3
  93. package/esm/components/QRemoveScrollBar/utils/gap.d.ts.map +1 -1
  94. package/esm/components/QSection/QSection.d.ts +2 -0
  95. package/esm/components/QSection/QSection.d.ts.map +1 -1
  96. package/esm/components/QSection/QSection.vue.js +18 -14
  97. package/esm/components/QSection/index.d.ts +2 -0
  98. package/esm/components/QSection/index.d.ts.map +1 -1
  99. package/esm/components/QSelect/QSelect.d.ts +18 -18
  100. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  101. package/esm/components/QSelect/constants.d.ts.map +1 -1
  102. package/esm/components/QSelect/index.d.ts +18 -18
  103. package/esm/components/QSelect/types.d.ts +3 -3
  104. package/esm/components/QSelect/types.d.ts.map +1 -1
  105. package/esm/components/QSidebar/QSidebar.d.ts +5 -5
  106. package/esm/components/QSidebar/QSidebar.d.ts.map +1 -1
  107. package/esm/components/QSidebar/QSidebarAnchor.d.ts +2 -2
  108. package/esm/components/QSidebar/QSidebarAnchor.d.ts.map +1 -1
  109. package/esm/components/QSidebar/QSidebarItem.d.ts +6 -0
  110. package/esm/components/QSidebar/QSidebarItem.d.ts.map +1 -1
  111. package/esm/components/QSidebar/context.d.ts +6 -6
  112. package/esm/components/QSidebar/context.d.ts.map +1 -1
  113. package/esm/components/QSidebar/index.d.ts +5 -2
  114. package/esm/components/QSidebar/index.d.ts.map +1 -1
  115. package/esm/components/QSidebar/types.d.ts +2 -2
  116. package/esm/components/QSidebar/types.d.ts.map +1 -1
  117. package/esm/components/QTabs/QTab.d.ts +18 -12
  118. package/esm/components/QTabs/QTab.d.ts.map +1 -1
  119. package/esm/components/QTabs/QTabs.d.ts.map +1 -1
  120. package/esm/components/QTabs/QTabs.vue.js +106 -112
  121. package/esm/components/QTabs/context.d.ts +5 -5
  122. package/esm/components/QTabs/context.d.ts.map +1 -1
  123. package/esm/components/QTabs/index.d.ts +9 -6
  124. package/esm/components/QTabs/index.d.ts.map +1 -1
  125. package/esm/components/QTextArea/QTextArea.d.ts.map +1 -1
  126. package/esm/components/QTextArea/QTextArea.vue.js +9 -7
  127. package/esm/components/QTextField/QTextField.d.ts.map +1 -1
  128. package/esm/components/QTextField/QTextField.vue.js +11 -9
  129. package/esm/components/QThemeProvider/types.d.ts +2 -2
  130. package/esm/components/QThemeProvider/types.d.ts.map +1 -1
  131. package/esm/components/QToast/QToaster.vue.js +1 -1
  132. package/esm/components/QToast/constants.d.ts.map +1 -1
  133. package/esm/components/QToggle/QToggle.vue.js +1 -0
  134. package/esm/components/QToggle/index.d.ts +3 -0
  135. package/esm/components/QToggle/index.d.ts.map +1 -1
  136. package/esm/components/QToggleGroup/QToggleGroupItem.vue.js +1 -0
  137. package/esm/components/QTooltip/index.d.ts +3 -3
  138. package/esm/components/QTooltip/types.d.ts +2 -2
  139. package/esm/components/QTooltip/types.d.ts.map +1 -1
  140. package/esm/components/__internal__/QChevron/constants.d.ts.map +1 -1
  141. package/esm/components/__internal__/QClearButton/constants.d.ts.map +1 -1
  142. package/esm/components/__internal__/QSafeTriangle/QSafeTriangle.d.ts +1 -1
  143. package/esm/components/__internal__/QSafeTriangle/index.d.ts +1 -1
  144. package/esm/composables/defaults.d.ts +7 -7
  145. package/esm/composables/defaults.d.ts.map +1 -1
  146. package/esm/composables/index.d.ts +3 -3
  147. package/esm/composables/index.d.ts.map +1 -1
  148. package/esm/composables/theme.d.ts +20 -20
  149. package/esm/composables/theme.d.ts.map +1 -1
  150. package/esm/composables/useColor/index.d.ts +24 -9
  151. package/esm/composables/useColor/index.d.ts.map +1 -1
  152. package/esm/composables/useColor/index.js +17 -10
  153. package/esm/composables/useColor/types.d.ts +3 -3
  154. package/esm/composables/useColor/types.d.ts.map +1 -1
  155. package/esm/composables/useDialog/index.d.ts +3 -3
  156. package/esm/composables/useDialog/index.d.ts.map +1 -1
  157. package/esm/composables/useDialog/types.d.ts +3 -3
  158. package/esm/composables/useDialog/types.d.ts.map +1 -1
  159. package/esm/composables/useDismissibleLayerStack/index.d.ts +2 -2
  160. package/esm/composables/useDismissibleLayerStack/index.d.ts.map +1 -1
  161. package/esm/composables/useEnabledSelection/index.d.ts +33 -0
  162. package/esm/composables/useEnabledSelection/index.d.ts.map +1 -0
  163. package/esm/composables/useEnabledSelection/index.js +15 -0
  164. package/esm/composables/useGroup/index.d.ts +6 -6
  165. package/esm/composables/useGroup/index.d.ts.map +1 -1
  166. package/esm/composables/useToast/index.d.ts +3 -3
  167. package/esm/composables/useToast/index.d.ts.map +1 -1
  168. package/esm/composables/useToast/types.d.ts +3 -3
  169. package/esm/composables/useToast/types.d.ts.map +1 -1
  170. package/esm/framework.d.ts +6 -6
  171. package/esm/framework.d.ts.map +1 -1
  172. package/esm/index.d.ts +2 -2
  173. package/esm/index.d.ts.map +1 -1
  174. package/esm/symbols/dismissibleLayer.d.ts +2 -2
  175. package/esm/symbols/dismissibleLayer.d.ts.map +1 -1
  176. package/esm/templates/theme.d.ts +3 -3
  177. package/esm/templates/theme.d.ts.map +1 -1
  178. package/esm/utils/color/merge.d.ts +3 -3
  179. package/esm/utils/color/merge.d.ts.map +1 -1
  180. package/esm/utils/color/theme-colors.d.ts +2 -2
  181. package/esm/utils/color/theme-colors.d.ts.map +1 -1
  182. package/esm/utils/color/types.d.ts +2 -2
  183. package/esm/utils/color/types.d.ts.map +1 -1
  184. package/esm/utils/theme.d.ts +9 -9
  185. package/esm/utils/theme.d.ts.map +1 -1
  186. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { MaybeRefOrGetter, Ref } from 'vue';
2
- export type DismissibleLayerStack = {
2
+ export type QDismissibleLayerStack = {
3
3
  /** Registered layer ids, from bottom (first) to top (last). */
4
4
  layers: Ref<string[]>;
5
5
  register(id: string): void;
@@ -15,7 +15,7 @@ export type DismissibleLayerStack = {
15
15
  *
16
16
  * @returns The reactive layer list and helpers to register, unregister, and update ids.
17
17
  */
18
- export declare function useDismissibleLayerStack(): DismissibleLayerStack;
18
+ export declare function useDismissibleLayerStack(): QDismissibleLayerStack;
19
19
  /**
20
20
  * Stack item helpers that keep the registered id in sync when the override changes.
21
21
  *
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/useDismissibleLayerStack/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,GAAG,EAAmB,MAAM,KAAK,CAAA;AAKjE,MAAM,MAAM,qBAAqB,GAAG;IACnC,+DAA+D;IAC/D,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,CAAA;IACrB,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1C,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAA;CAC1B,CAAA;AAED;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,IAAI,qBAAqB,CAsDhE;AAED;;;;GAIG;AACH,wBAAgB,4BAA4B,CAAC,EAAE,EAAE,gBAAgB,CAAC,MAAM,CAAC;;;;EA0CxE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/useDismissibleLayerStack/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,GAAG,EAAmB,MAAM,KAAK,CAAA;AAKjE,MAAM,MAAM,sBAAsB,GAAG;IACpC,+DAA+D;IAC/D,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,CAAA;IACrB,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1C,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAA;CAC1B,CAAA;AAED;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,IAAI,sBAAsB,CAsDjE;AAED;;;;GAIG;AACH,wBAAgB,4BAA4B,CAAC,EAAE,EAAE,gBAAgB,CAAC,MAAM,CAAC;;;;EA0CxE"}
@@ -0,0 +1,33 @@
1
+ import { ComputedRef, MaybeRefOrGetter, Ref } from 'vue';
2
+ /**
3
+ * Minimal shape required from an item to participate in {@link useEnabledSelection}.
4
+ */
5
+ export type QEnabledSelectionItem = {
6
+ /** Identity matched against the `v-model` ref. */
7
+ value: string;
8
+ /** Whether the item is disabled and therefore excluded from selection. */
9
+ disabled?: MaybeRefOrGetter<boolean | undefined>;
10
+ };
11
+ export interface QUseEnabledSelectionReturn<T extends QEnabledSelectionItem> {
12
+ /** Items with `disabled` excluded, in their original order. */
13
+ enabledItems: ComputedRef<T[]>;
14
+ /**
15
+ * Snaps `model` onto an enabled item's value when it doesn't currently match one.
16
+ * No-ops when there is no enabled item to fall back to.
17
+ */
18
+ ensureSelection: () => void;
19
+ }
20
+ /**
21
+ * Shared "enabled item" selection logic for list-like components with a
22
+ * `value`/`disabled` item shape and a single-value `v-model` (e.g. `QTabs`, `QSteps`).
23
+ *
24
+ * Filters out disabled items and keeps `model` snapped to an enabled one: whenever
25
+ * the current `model` value doesn't match an enabled item,
26
+ * {@link QUseEnabledSelectionReturn.ensureSelection} resets it to the first
27
+ * enabled item's value.
28
+ *
29
+ * @param items - Getter returning the current ordered list of items.
30
+ * @param model - The `v-model` ref to keep in sync with `items`.
31
+ */
32
+ export declare function useEnabledSelection<T extends QEnabledSelectionItem>(items: () => T[], model: Ref<string | undefined>): QUseEnabledSelectionReturn<T>;
33
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/useEnabledSelection/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAK7D;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IACnC,kDAAkD;IAClD,KAAK,EAAE,MAAM,CAAA;IAEb,0EAA0E;IAC1E,QAAQ,CAAC,EAAE,gBAAgB,CAAC,OAAO,GAAG,SAAS,CAAC,CAAA;CAChD,CAAA;AAED,MAAM,WAAW,0BAA0B,CAAC,CAAC,SAAS,qBAAqB;IAC1E,+DAA+D;IAC/D,YAAY,EAAE,WAAW,CAAC,CAAC,EAAE,CAAC,CAAA;IAE9B;;;OAGG;IACH,eAAe,EAAE,MAAM,IAAI,CAAA;CAC3B;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,qBAAqB,EAClE,KAAK,EAAE,MAAM,CAAC,EAAE,EAChB,KAAK,EAAE,GAAG,CAAC,MAAM,GAAG,SAAS,CAAC,GAC5B,0BAA0B,CAAC,CAAC,CAAC,CAc/B"}
@@ -0,0 +1,15 @@
1
+ import { computed as e, toValue as t } from "vue";
2
+ //#region src/composables/useEnabledSelection/index.ts
3
+ function n(n, r) {
4
+ let i = e(() => n().filter((e) => !t(e.disabled)));
5
+ function a() {
6
+ let e = i.value;
7
+ e.length && (e.some((e) => e.value === r.value) || (r.value = e[0].value));
8
+ }
9
+ return {
10
+ enabledItems: i,
11
+ ensureSelection: a
12
+ };
13
+ }
14
+ //#endregion
15
+ export { n as useEnabledSelection };
@@ -1,12 +1,12 @@
1
1
  import { ComputedRef, InjectionKey, MaybeRef, Ref } from 'vue';
2
2
  /** Symbol used for dependency injection of Group. */
3
- export declare const GroupSymbol: InjectionKey<Group<unknown>>;
3
+ export declare const GroupSymbol: InjectionKey<QGroup<unknown>>;
4
4
  type Active<T> = T | T[] | undefined;
5
5
  /**
6
6
  * Props interface for creating a group component
7
7
  * @template T The type of the active item(s)
8
8
  */
9
- export interface GroupProps<T> {
9
+ export interface QGroupProps<T> {
10
10
  /**
11
11
  * The currently active item(s)
12
12
  * - When multiple is false: A single active item of type T
@@ -29,7 +29,7 @@ export interface GroupProps<T> {
29
29
  * Interface for the group state
30
30
  * @template T The type of the active item(s)
31
31
  */
32
- export interface Group<T> {
32
+ export interface QGroup<T> {
33
33
  /**
34
34
  * Reactive reference to the currently active item(s)
35
35
  * - When multiple is false: A single active item of type T or undefined
@@ -48,7 +48,7 @@ export interface Group<T> {
48
48
  /**
49
49
  * Interface for the values provided to child components via provide/inject
50
50
  */
51
- export interface GroupProvide {
51
+ export interface QGroupProvide {
52
52
  /**
53
53
  * Toggle the active state of the current item
54
54
  */
@@ -80,7 +80,7 @@ export interface GroupProvide {
80
80
  * The group state is automatically provided to child components using Vue's provide/inject system.
81
81
  * When multiple mode changes, the active value is automatically converted between array and single value formats.
82
82
  */
83
- export declare function useGroup<T>(options: GroupProps<T>): Group<T>;
83
+ export declare function useGroup<T>(options: QGroupProps<T>): QGroup<T>;
84
84
  /**
85
85
  * A composable function that provides group item functionality within a group context.
86
86
  *
@@ -101,6 +101,6 @@ export declare function useGroup<T>(options: GroupProps<T>): Group<T>;
101
101
  * - In single selection mode, activating an item deactivates others
102
102
  * - In multiple selection mode, multiple items can be active simultaneously
103
103
  */
104
- export declare function useGroupItem(itemId: MaybeRef<string>): GroupProvide | undefined;
104
+ export declare function useGroupItem(itemId: MaybeRef<string>): QGroupProvide | undefined;
105
105
  export {};
106
106
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/useGroup/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAKnE,qDAAqD;AACrD,eAAO,MAAM,WAAW,EAAE,YAAY,CAAC,KAAK,CAAC,OAAO,CAAC,CAAyB,CAAA;AAE9E,KAAK,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,SAAS,CAAA;AAEpC;;;GAGG;AACH,MAAM,WAAW,UAAU,CAAC,CAAC;IAC5B;;;;OAIG;IACH,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAA;IAE5B;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAA;IAE5B;;OAEG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAA;CAC5B;AAED;;;GAGG;AACH,MAAM,WAAW,KAAK,CAAC,CAAC;IACvB;;;;OAIG;IACH,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAA;IAEtB;;OAEG;IACH,QAAQ,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;IAE9B;;OAEG;IACH,QAAQ,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;CAC/B;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC5B;;OAEG;IACH,MAAM,EAAE,MAAM,IAAI,CAAA;IAElB;;OAEG;IACH,QAAQ,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;CAC9B;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CA2C5D;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,YAAY,GAAG,SAAS,CA+D/E"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/useGroup/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAKnE,qDAAqD;AACrD,eAAO,MAAM,WAAW,EAAE,YAAY,CAAC,MAAM,CAAC,OAAO,CAAC,CAAyB,CAAA;AAE/E,KAAK,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,SAAS,CAAA;AAEpC;;;GAGG;AACH,MAAM,WAAW,WAAW,CAAC,CAAC;IAC7B;;;;OAIG;IACH,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAA;IAE5B;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAA;IAE5B;;OAEG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAA;CAC5B;AAED;;;GAGG;AACH,MAAM,WAAW,MAAM,CAAC,CAAC;IACxB;;;;OAIG;IACH,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAA;IAEtB;;OAEG;IACH,QAAQ,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;IAE9B;;OAEG;IACH,QAAQ,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;CAC/B;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC7B;;OAEG;IACH,MAAM,EAAE,MAAM,IAAI,CAAA;IAElB;;OAEG;IACH,QAAQ,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;CAC9B;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CA2C9D;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,aAAa,GAAG,SAAS,CA+DhF"}
@@ -1,5 +1,5 @@
1
- import { UseToastReturn } from './types';
2
- export type { ToastItem, UseToastReturn } from './types';
1
+ import { QUseToastReturn } from './types';
2
+ export type { QToastItem, QUseToastReturn } from './types';
3
3
  /**
4
4
  * Manages programmatic toasts for the current app (`createFramework`).
5
5
  *
@@ -12,5 +12,5 @@ export type { ToastItem, UseToastReturn } from './types';
12
12
  * - removeToast: A function to remove a QToast instance from the DOM.
13
13
  * - cancelToast: A function to cancel a queued or not-yet-registered toast by `props.id`.
14
14
  */
15
- export declare function useToast(): UseToastReturn;
15
+ export declare function useToast(): QUseToastReturn;
16
16
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/useToast/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAW7C,YAAY,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAExD;;;;;;;;;;;GAWG;AACH,wBAAgB,QAAQ,IAAI,cAAc,CAsFzC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/useToast/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAW9C,YAAY,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE1D;;;;;;;;;;;GAWG;AACH,wBAAgB,QAAQ,IAAI,eAAe,CAsF1C"}
@@ -5,7 +5,7 @@ import { QToastProps } from '../../components/QToast';
5
5
  *
6
6
  * `id` is set when the toast registers during setup. Prefer `await addToast(...)` to obtain the id.
7
7
  */
8
- export type ToastItem = {
8
+ export type QToastItem = {
9
9
  /**
10
10
  * Unique identifier for the toast item, set when the toast registers during setup.
11
11
  */
@@ -19,13 +19,13 @@ export type ToastItem = {
19
19
  * Represents the return type of the `useToast` composable, providing methods and state
20
20
  * for managing toast notifications.
21
21
  */
22
- export type UseToastReturn = {
22
+ export type QUseToastReturn = {
23
23
  /**
24
24
  * Currently mounted toasts (public fields only: `id`, `props`).
25
25
  * Read-only: mutating this array does not change the toast store — use `removeToast`.
26
26
  * `id` is undefined until the toast registers during setup; use the `addToast` promise for the id.
27
27
  */
28
- toasts: ComputedRef<ToastItem[]>;
28
+ toasts: ComputedRef<QToastItem[]>;
29
29
  /**
30
30
  * A function to add a toast item to the DOM.
31
31
  * Requires a mounted QToaster (exactly one per app); rejects immediately when none is present.
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/composables/useToast/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAO,MAAM,KAAK,CAAA;AAC3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AA+H1D;;;;GAIG;AACH,MAAM,MAAM,SAAS,GAAG;IACvB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;OAEG;IACH,KAAK,EAAE,WAAW,CAAA;CAClB,CAAA;AAoBD;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG;IAC5B;;;;OAIG;IACH,MAAM,EAAE,WAAW,CAAC,SAAS,EAAE,CAAC,CAAA;IAEhC;;;;;;;OAOG;IACH,QAAQ,CAAC,KAAK,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IAE7C;;;;;OAKG;IACH,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAA;IAE7B;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAA;CAC7B,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/composables/useToast/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAO,MAAM,KAAK,CAAA;AAC3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AA+H1D;;;;GAIG;AACH,MAAM,MAAM,UAAU,GAAG;IACxB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;OAEG;IACH,KAAK,EAAE,WAAW,CAAA;CAClB,CAAA;AAoBD;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG;IAC7B;;;;OAIG;IACH,MAAM,EAAE,WAAW,CAAC,UAAU,EAAE,CAAC,CAAA;IAEjC;;;;;;;OAOG;IACH,QAAQ,CAAC,KAAK,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IAE7C;;;;;OAKG;IACH,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAA;IAE7B;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAA;CAC7B,CAAA"}
@@ -1,16 +1,16 @@
1
1
  import { Component, Plugin } from 'vue';
2
- import { Defaults } from './composables/defaults';
3
- import { AppThemes } from './composables/theme';
2
+ import { QDefaults } from './composables/defaults';
3
+ import { QAppThemes } from './composables/theme';
4
4
  /**
5
5
  * Configuration options for the Quidgest UI framework plugin.
6
6
  */
7
- export type FrameworkConfig = {
7
+ export type QFrameworkConfig = {
8
8
  /** An optional record of components to be registered globally in the application. */
9
9
  components?: Record<string, Component>;
10
10
  /** An optional configuration for the available themes and the default theme. */
11
- themes?: AppThemes;
11
+ themes?: QAppThemes;
12
12
  /** An optional object containing global default values for the application. */
13
- defaults?: Defaults;
13
+ defaults?: QDefaults;
14
14
  };
15
15
  /**
16
16
  * Creates the Quidgest UI framework plugin that installs components, sets up global defaults,
@@ -21,5 +21,5 @@ export type FrameworkConfig = {
21
21
  *
22
22
  * @returns A Vue plugin (`Plugin`) with an `install` function to set up the framework.
23
23
  */
24
- export declare function createFramework(config?: FrameworkConfig): Plugin;
24
+ export declare function createFramework(config?: QFrameworkConfig): Plugin;
25
25
  //# sourceMappingURL=framework.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"framework.d.ts","sourceRoot":"","sources":["../src/framework.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAO,SAAS,EAAE,MAAM,EAAE,MAAM,KAAK,CAAA;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AACtD,OAAO,KAAK,EAAE,SAAS,EAAmB,MAAM,qBAAqB,CAAA;AAMrE;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC7B,qFAAqF;IACrF,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAA;IAEtC,gFAAgF;IAChF,MAAM,CAAC,EAAE,SAAS,CAAA;IAElB,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,QAAQ,CAAA;CACnB,CAAA;AAED;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,MAAM,GAAE,eAAoB,GAAG,MAAM,CA2BpE"}
1
+ {"version":3,"file":"framework.d.ts","sourceRoot":"","sources":["../src/framework.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAO,SAAS,EAAE,MAAM,EAAE,MAAM,KAAK,CAAA;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AACvD,OAAO,KAAK,EAAE,UAAU,EAAoB,MAAM,qBAAqB,CAAA;AAMvE;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC9B,qFAAqF;IACrF,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAA;IAEtC,gFAAgF;IAChF,MAAM,CAAC,EAAE,UAAU,CAAA;IAEnB,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,SAAS,CAAA;CACpB,CAAA;AAED;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,MAAM,GAAE,gBAAqB,GAAG,MAAM,CA2BrE"}
package/esm/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { FrameworkConfig } from './framework';
1
+ import { QFrameworkConfig } from './framework';
2
2
  import * as templates from './templates';
3
3
  import * as components from './components';
4
4
  import * as utils from './utils';
5
- export declare const createFramework: (options?: FrameworkConfig) => import('vue').Plugin;
5
+ export declare const createFramework: (options?: QFrameworkConfig) => import('vue').Plugin;
6
6
  export { templates, components, utils };
7
7
  export * from './composables';
8
8
  export type { QBaseComponentProps, QComponentSize } from './types';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,aAAa,CAAA;AACxC,OAAO,KAAK,UAAU,MAAM,cAAc,CAAA;AAC1C,OAAO,KAAK,KAAK,MAAM,SAAS,CAAA;AAIhC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAElD,eAAO,MAAM,eAAe,aAAa,eAAe,yBAEvD,CAAA;AAED,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,EAAE,CAAA;AACvC,cAAc,eAAe,CAAA;AAC7B,YAAY,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,aAAa,CAAA;AACxC,OAAO,KAAK,UAAU,MAAM,cAAc,CAAA;AAC1C,OAAO,KAAK,KAAK,MAAM,SAAS,CAAA;AAIhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAEnD,eAAO,MAAM,eAAe,aAAa,gBAAgB,yBAExD,CAAA;AAED,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,EAAE,CAAA;AACvC,cAAc,eAAe,CAAA;AAC7B,YAAY,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA"}
@@ -1,4 +1,4 @@
1
1
  import { InjectionKey } from 'vue';
2
- import { DismissibleLayerStack } from '../composables/useDismissibleLayerStack';
3
- export declare const DismissibleLayerKey: InjectionKey<DismissibleLayerStack>;
2
+ import { QDismissibleLayerStack } from '../composables/useDismissibleLayerStack';
3
+ export declare const DismissibleLayerKey: InjectionKey<QDismissibleLayerStack>;
4
4
  //# sourceMappingURL=dismissibleLayer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dismissibleLayer.d.ts","sourceRoot":"","sources":["../../src/symbols/dismissibleLayer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,KAAK,CAAA;AACvC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAA;AAEpF,eAAO,MAAM,mBAAmB,EAAE,YAAY,CAAC,qBAAqB,CACrC,CAAA"}
1
+ {"version":3,"file":"dismissibleLayer.d.ts","sourceRoot":"","sources":["../../src/symbols/dismissibleLayer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,KAAK,CAAA;AACvC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAA;AAErF,eAAO,MAAM,mBAAmB,EAAE,YAAY,CAAC,sBAAsB,CACtC,CAAA"}
@@ -1,4 +1,4 @@
1
- import { ColorScheme } from '../utils/color';
2
- export declare const defaultLightColorScheme: ColorScheme;
3
- export declare const defaultDarkColorScheme: ColorScheme;
1
+ import { QColorScheme } from '../utils/color';
2
+ export declare const defaultLightColorScheme: QColorScheme;
3
+ export declare const defaultDarkColorScheme: QColorScheme;
4
4
  //# sourceMappingURL=theme.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/templates/theme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAEjD,eAAO,MAAM,uBAAuB,EAAE,WAsDrC,CAAA;AAED,eAAO,MAAM,sBAAsB,EAAE,WAsDpC,CAAA"}
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/templates/theme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAElD,eAAO,MAAM,uBAAuB,EAAE,YAsDrC,CAAA;AAED,eAAO,MAAM,sBAAsB,EAAE,YAsDpC,CAAA"}
@@ -1,4 +1,4 @@
1
- import { ColorScheme } from './types';
1
+ import { QColorScheme } from './types';
2
2
  /**
3
3
  * Amount passed to {@link lighten} when auto-generating scheme `*Light` variants.
4
4
  */
@@ -21,8 +21,8 @@ export declare const COLOR_SCHEME_DARKEN_AMOUNT = 25;
21
21
  * @param b - A partial color scheme containing overrides.
22
22
  * @returns The merged color scheme with computed variants and contrasting colors.
23
23
  *
24
- * @see ColorScheme
24
+ * @see QColorScheme
25
25
  * @see Partial
26
26
  */
27
- export declare function mergeColorSchemes(a: ColorScheme, b: Partial<ColorScheme>): ColorScheme;
27
+ export declare function mergeColorSchemes(a: QColorScheme, b: Partial<QColorScheme>): QColorScheme;
28
28
  //# sourceMappingURL=merge.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"merge.d.ts","sourceRoot":"","sources":["../../../src/utils/color/merge.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAmB,WAAW,EAAE,MAAM,SAAS,CAAA;AAQ3D;;GAEG;AACH,eAAO,MAAM,2BAA2B,KAAK,CAAA;AAE7C;;;GAGG;AACH,eAAO,MAAM,0BAA0B,KAAK,CAAA;AAE5C;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,GAAG,WAAW,CAiGtF"}
1
+ {"version":3,"file":"merge.d.ts","sourceRoot":"","sources":["../../../src/utils/color/merge.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAoB,YAAY,EAAE,MAAM,SAAS,CAAA;AAQ7D;;GAEG;AACH,eAAO,MAAM,2BAA2B,KAAK,CAAA;AAE7C;;;GAGG;AACH,eAAO,MAAM,0BAA0B,KAAK,CAAA;AAE5C;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,GAAG,YAAY,CAiGzF"}
@@ -12,7 +12,7 @@ export declare const THEME_COLOR_KEYS: readonly ["primary", "secondary", "highli
12
12
  /**
13
13
  * A theme utility color key that resolves against the active color scheme.
14
14
  */
15
- export type ThemeColorKey = (typeof THEME_COLOR_KEYS)[number];
15
+ export type QThemeColorKey = (typeof THEME_COLOR_KEYS)[number];
16
16
  /**
17
17
  * Checks whether a color string is a theme utility color key.
18
18
  *
@@ -23,7 +23,7 @@ export type ThemeColorKey = (typeof THEME_COLOR_KEYS)[number];
23
23
  * @param color - The color value to check.
24
24
  * @returns True when the value matches a key in {@link THEME_COLOR_KEYS}.
25
25
  */
26
- export declare function isThemeColor(color: string): color is ThemeColorKey;
26
+ export declare function isThemeColor(color: string): color is QThemeColorKey;
27
27
  /**
28
28
  * Checks whether a color string is an unsupported CSS keyword or function
29
29
  * that cannot be resolved by `useColor`.
@@ -1 +1 @@
1
- {"version":3,"file":"theme-colors.d.ts","sourceRoot":"","sources":["../../../src/utils/color/theme-colors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB,iHAUnB,CAAA;AAEV;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAA;AAI7D;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAElE;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAIzD"}
1
+ {"version":3,"file":"theme-colors.d.ts","sourceRoot":"","sources":["../../../src/utils/color/theme-colors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB,iHAUnB,CAAA;AAEV;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAA;AAI9D;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,cAAc,CAEnE;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAIzD"}
@@ -1,4 +1,4 @@
1
- export type BaseColorScheme = {
1
+ export type QBaseColorScheme = {
2
2
  primary: string;
3
3
  primaryLight: string;
4
4
  primaryDark: string;
@@ -30,7 +30,7 @@ type Capitalize<S extends string> = S extends `${infer F}${infer R}` ? `${Upperc
30
30
  type OnVariants<T> = {
31
31
  [K in keyof T as `on${Capitalize<string & K>}`]: string;
32
32
  };
33
- export type ColorScheme = BaseColorScheme & OnVariants<BaseColorScheme>;
33
+ export type QColorScheme = QBaseColorScheme & OnVariants<QBaseColorScheme>;
34
34
  /**
35
35
  * Represents a color in RGB space.
36
36
  */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/utils/color/types.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,eAAe,GAAG;IAE7B,OAAO,EAAE,MAAM,CAAA;IACf,YAAY,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;IAEnB,SAAS,EAAE,MAAM,CAAA;IACjB,cAAc,EAAE,MAAM,CAAA;IACtB,aAAa,EAAE,MAAM,CAAA;IAErB,SAAS,EAAE,MAAM,CAAA;IACjB,cAAc,EAAE,MAAM,CAAA;IACtB,aAAa,EAAE,MAAM,CAAA;IAGrB,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;IAEhB,OAAO,EAAE,MAAM,CAAA;IACf,YAAY,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;IAEnB,OAAO,EAAE,MAAM,CAAA;IACf,YAAY,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;IAEnB,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAGlB,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;IAGjB,OAAO,EAAE,MAAM,CAAA;IACf,YAAY,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;CACnB,CAAA;AAGD,KAAK,UAAU,CAAC,CAAC,SAAS,MAAM,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,GAAG,MAAM,CAAC,EAAE,GAAG,GAAG,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,CAAA;AAGhG,KAAK,UAAU,CAAC,CAAC,IAAI;KACnB,CAAC,IAAI,MAAM,CAAC,IAAI,KAAK,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,GAAG,MAAM;CACvD,CAAA;AAGD,MAAM,MAAM,WAAW,GAAG,eAAe,GAAG,UAAU,CAAC,eAAe,CAAC,CAAA;AAEvE;;GAEG;AACH,MAAM,MAAM,GAAG,GAAG;IACjB,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;CACT,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,GAAG,GAAG;IACjB,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;CACT,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/utils/color/types.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,gBAAgB,GAAG;IAE9B,OAAO,EAAE,MAAM,CAAA;IACf,YAAY,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;IAEnB,SAAS,EAAE,MAAM,CAAA;IACjB,cAAc,EAAE,MAAM,CAAA;IACtB,aAAa,EAAE,MAAM,CAAA;IAErB,SAAS,EAAE,MAAM,CAAA;IACjB,cAAc,EAAE,MAAM,CAAA;IACtB,aAAa,EAAE,MAAM,CAAA;IAGrB,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;IAEhB,OAAO,EAAE,MAAM,CAAA;IACf,YAAY,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;IAEnB,OAAO,EAAE,MAAM,CAAA;IACf,YAAY,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;IAEnB,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAGlB,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;IAGjB,OAAO,EAAE,MAAM,CAAA;IACf,YAAY,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;CACnB,CAAA;AAGD,KAAK,UAAU,CAAC,CAAC,SAAS,MAAM,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,GAAG,MAAM,CAAC,EAAE,GAAG,GAAG,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,CAAA;AAGhG,KAAK,UAAU,CAAC,CAAC,IAAI;KACnB,CAAC,IAAI,MAAM,CAAC,IAAI,KAAK,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,GAAG,MAAM;CACvD,CAAA;AAGD,MAAM,MAAM,YAAY,GAAG,gBAAgB,GAAG,UAAU,CAAC,gBAAgB,CAAC,CAAA;AAE1E;;GAEG;AACH,MAAM,MAAM,GAAG,GAAG;IACjB,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;CACT,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,GAAG,GAAG;IACjB,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;CACT,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { DeepReadonly, Ref } from 'vue';
2
- import { ThemeDefinition, ThemeInstance } from '../composables/theme';
2
+ import { QThemeDefinition, QThemeInstance } from '../composables/theme';
3
3
  export declare const THEME_NODE_ID = "q-theme";
4
4
  /**
5
5
  * Gets or creates a style node for applying dynamic themes.
@@ -14,17 +14,17 @@ export declare function getThemeNode(): HTMLStyleElement;
14
14
  * (e.g., `.q-theme--light`), where each color in the theme’s color
15
15
  * scheme is exposed as both a HEX and an RGB CSS custom property.
16
16
  *
17
- * @param theme - The `ThemeDefinition` containing the name and color scheme.
17
+ * @param theme - The `QThemeDefinition` containing the name and color scheme.
18
18
  *
19
19
  * @returns A string of CSS text defining the theme’s variables.
20
20
  */
21
- export declare function generateThemeCss(theme: ThemeDefinition): string;
21
+ export declare function generateThemeCss(theme: QThemeDefinition): string;
22
22
  /**
23
23
  * Generates and applies dynamic root-level styles based on the provided themes.
24
24
  *
25
25
  * @param themes - An array of theme definitions.
26
26
  */
27
- export declare function generateRootStyle(themes: ThemeDefinition[]): void;
27
+ export declare function generateRootStyle(themes: QThemeDefinition[]): void;
28
28
  /**
29
29
  * Converts a color property name to a CSS variable name.
30
30
  *
@@ -39,18 +39,18 @@ export declare function toProperty(color: string): string;
39
39
  * and exposes reactive/computed properties for convenient use in templates and styling.
40
40
  *
41
41
  * @param name - A reactive `Ref<string>` representing the active theme name.
42
- * @param themes - A reactive `Ref<ThemeDefinition[]>` containing all available themes.
42
+ * @param themes - A reactive `Ref<QThemeDefinition[]>` containing all available themes.
43
43
  *
44
- * @returns A `ThemeInstance` object with the following reactive properties:
44
+ * @returns A `QThemeInstance` object with the following reactive properties:
45
45
  * - `name`: the reactive `Ref<string>` of the active theme name.
46
- * - `current`: a computed `Ref<ThemeDefinition>` of the active theme definition.
47
- * - `themes`: the reactive `Ref<ThemeDefinition[]>` of all available themes.
46
+ * - `current`: a computed `Ref<QThemeDefinition>` of the active theme definition.
47
+ * - `themes`: the reactive `Ref<QThemeDefinition[]>` of all available themes.
48
48
  * - `class`: a computed `Ref<string>` of the CSS class for the active theme.
49
49
  * - `css`: a computed `Ref<string>` of the CSS variables for the active theme.
50
50
  *
51
51
  * @throws {Error} If no theme matching the active `name` exists in `themes`.
52
52
  */
53
- export declare function createThemeInstance(name: Ref<string>, themes: DeepReadonly<Ref<ThemeDefinition[]>>): ThemeInstance;
53
+ export declare function createThemeInstance(name: Ref<string>, themes: DeepReadonly<Ref<QThemeDefinition[]>>): QThemeInstance;
54
54
  /**
55
55
  * Generates a CSS class name for a given theme.
56
56
  *
@@ -1 +1 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/utils/theme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAC5C,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAQ1E,eAAO,MAAM,aAAa,YAAY,CAAA;AAEtC;;;;GAIG;AACH,wBAAgB,YAAY,IAAI,gBAAgB,CAY/C;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,eAAe,UAoBtD;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,eAAe,EAAE,QAM1D;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,UAOvC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,mBAAmB,CAClC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,EACjB,MAAM,EAAE,YAAY,CAAC,GAAG,CAAC,eAAe,EAAE,CAAC,CAAC,GAC1C,aAAa,CAmBf;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,UAEzC"}
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/utils/theme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAC5C,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAQ5E,eAAO,MAAM,aAAa,YAAY,CAAA;AAEtC;;;;GAIG;AACH,wBAAgB,YAAY,IAAI,gBAAgB,CAY/C;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,gBAAgB,UAoBvD;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,gBAAgB,EAAE,QAM3D;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,UAOvC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,mBAAmB,CAClC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,EACjB,MAAM,EAAE,YAAY,CAAC,GAAG,CAAC,gBAAgB,EAAE,CAAC,CAAC,GAC3C,cAAc,CAmBhB;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,UAEzC"}
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.24.0",
4
+ "version": "0.26.0",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "author": "Quidgest",