@quidgest/ui 0.15.9 → 0.16.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 (96) hide show
  1. package/dist/manifest/components.json +4 -1
  2. package/dist/ui.css +11 -12
  3. package/dist/ui.esm.js +3758 -3654
  4. package/dist/ui.js +26 -26
  5. package/dist/ui.min.css +1 -1
  6. package/dist/ui.min.js +748 -741
  7. package/dist/ui.scss +34 -31
  8. package/esm/components/QAccordion/QAccordion.d.ts +4 -3
  9. package/esm/components/QAccordion/QAccordion.d.ts.map +1 -1
  10. package/esm/components/QAccordion/QAccordion.vue.js +21 -17
  11. package/esm/components/QAccordion/QAccordionItem.d.ts +19 -0
  12. package/esm/components/QAccordion/QAccordionItem.d.ts.map +1 -0
  13. package/esm/components/QAccordion/QAccordionItem.vue.js +42 -0
  14. package/esm/components/QAccordion/QAccordionItem.vue2.js +4 -0
  15. package/esm/components/QAccordion/index.d.ts +35 -15
  16. package/esm/components/QAccordion/index.d.ts.map +1 -1
  17. package/esm/components/QAccordion/index.js +6 -4
  18. package/esm/components/QAccordion/types.d.ts +25 -5
  19. package/esm/components/QAccordion/types.d.ts.map +1 -1
  20. package/esm/components/QButton/QButton.d.ts.map +1 -1
  21. package/esm/components/QButton/QButton.vue.js +9 -11
  22. package/esm/components/QButton/types.d.ts +0 -4
  23. package/esm/components/QButton/types.d.ts.map +1 -1
  24. package/esm/components/QCollapsible/QCollapsible.d.ts.map +1 -1
  25. package/esm/components/QCollapsible/QCollapsible.vue.js +60 -65
  26. package/esm/components/QCollapsible/index.d.ts +14 -14
  27. package/esm/components/QCollapsible/index.d.ts.map +1 -1
  28. package/esm/components/QCombobox/QCombobox.d.ts +16 -18
  29. package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
  30. package/esm/components/QCombobox/QCombobox.vue.js +59 -57
  31. package/esm/components/QCombobox/index.d.ts +11 -9
  32. package/esm/components/QCombobox/index.d.ts.map +1 -1
  33. package/esm/components/QCombobox/types.d.ts +4 -0
  34. package/esm/components/QCombobox/types.d.ts.map +1 -1
  35. package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +16 -16
  36. package/esm/components/QList/QList.d.ts +9 -9
  37. package/esm/components/QList/QListItem.d.ts +1 -1
  38. package/esm/components/QList/index.d.ts +10 -10
  39. package/esm/components/QOverlay/QOverlay.vue.js +15 -16
  40. package/esm/components/QOverlay/index.d.ts +0 -3
  41. package/esm/components/QOverlay/index.d.ts.map +1 -1
  42. package/esm/components/QOverlay/types.d.ts +0 -4
  43. package/esm/components/QOverlay/types.d.ts.map +1 -1
  44. package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue.js +12 -13
  45. package/esm/components/QPopover/QPopover.d.ts.map +1 -1
  46. package/esm/components/QPopover/QPopover.vue.js +31 -34
  47. package/esm/components/QRadioGroup/QRadioButton.vue.js +3 -3
  48. package/esm/components/QRadioGroup/QRadioGroup.vue.js +1 -1
  49. package/esm/components/QSelect/QSelect.d.ts +16 -16
  50. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  51. package/esm/components/QSelect/QSelect.vue.js +58 -56
  52. package/esm/components/QSelect/index.d.ts +11 -8
  53. package/esm/components/QSelect/index.d.ts.map +1 -1
  54. package/esm/components/QSelect/types.d.ts +4 -0
  55. package/esm/components/QSelect/types.d.ts.map +1 -1
  56. package/esm/components/{QButtonToggle/QButtonToggle.d.ts → QToggle/QToggle.d.ts} +11 -9
  57. package/esm/components/QToggle/QToggle.d.ts.map +1 -0
  58. package/esm/components/QToggle/QToggle.vue.js +40 -0
  59. package/esm/components/QToggle/QToggle.vue2.js +4 -0
  60. package/esm/components/QToggle/index.d.ts +71 -0
  61. package/esm/components/QToggle/index.d.ts.map +1 -0
  62. package/esm/components/{QButtonToggle → QToggle}/index.js +3 -3
  63. package/esm/components/QToggle/types.d.ts +3 -0
  64. package/esm/components/QToggle/types.d.ts.map +1 -0
  65. package/esm/components/QToggleGroup/QToggleGroup.d.ts +28 -0
  66. package/esm/components/QToggleGroup/QToggleGroup.d.ts.map +1 -0
  67. package/esm/components/QToggleGroup/QToggleGroup.vue.js +49 -0
  68. package/esm/components/QToggleGroup/QToggleGroup.vue2.js +4 -0
  69. package/esm/components/QToggleGroup/QToggleGroupItem.d.ts +19 -0
  70. package/esm/components/QToggleGroup/QToggleGroupItem.d.ts.map +1 -0
  71. package/esm/components/QToggleGroup/QToggleGroupItem.vue.js +44 -0
  72. package/esm/components/QToggleGroup/QToggleGroupItem.vue2.js +4 -0
  73. package/esm/components/QToggleGroup/index.d.ts +75 -0
  74. package/esm/components/QToggleGroup/index.d.ts.map +1 -0
  75. package/esm/components/QToggleGroup/index.js +8 -0
  76. package/esm/components/QToggleGroup/types.d.ts +19 -0
  77. package/esm/components/QToggleGroup/types.d.ts.map +1 -0
  78. package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
  79. package/esm/components/QTooltip/QTooltip.vue.js +42 -40
  80. package/esm/components/index.d.ts +2 -1
  81. package/esm/components/index.d.ts.map +1 -1
  82. package/esm/components/index.js +83 -79
  83. package/esm/composables/{group.d.ts → useGroup/index.d.ts} +11 -3
  84. package/esm/composables/useGroup/index.d.ts.map +1 -0
  85. package/esm/composables/useGroup/index.js +38 -0
  86. package/esm/index.d.ts +4 -1
  87. package/package.json +1 -1
  88. package/esm/components/QButtonToggle/QButtonToggle.d.ts.map +0 -1
  89. package/esm/components/QButtonToggle/QButtonToggle.vue.js +0 -62
  90. package/esm/components/QButtonToggle/QButtonToggle.vue2.js +0 -4
  91. package/esm/components/QButtonToggle/index.d.ts +0 -51
  92. package/esm/components/QButtonToggle/index.d.ts.map +0 -1
  93. package/esm/components/QButtonToggle/types.d.ts +0 -29
  94. package/esm/components/QButtonToggle/types.d.ts.map +0 -1
  95. package/esm/composables/group.d.ts.map +0 -1
  96. package/esm/composables/group.js +0 -31
package/dist/ui.scss CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Quidgest UI v0.15.9
2
+ * Quidgest UI v0.16.1
3
3
  * (c) 2025 Quidgest - Consultores de Gestão, S.A.
4
4
  * Released under the MIT License.
5
5
  */
@@ -617,12 +617,6 @@ body {
617
617
  --q-button-on-hover-color: var(--q-theme-on-primary);
618
618
  }
619
619
 
620
- &--active {
621
- z-index: 2;
622
- color: var(--q-theme-primary-dark);
623
- border-color: var(--q-theme-primary);
624
- background-color: rgb(var(--q-theme-primary-light-rgb) / 50%);
625
- }
626
620
  &--loading {
627
621
  &:hover {
628
622
  cursor: not-allowed;
@@ -1756,7 +1750,7 @@ $arrow-tip-radius: 0.1rem;
1756
1750
  }
1757
1751
  }
1758
1752
  .q-popover {
1759
- .q-overlay__content {
1753
+ &__content {
1760
1754
  position: relative;
1761
1755
  display: flex;
1762
1756
  flex-direction: column;
@@ -2192,27 +2186,36 @@ $spinner-color: var(--q-theme-primary);
2192
2186
  color: var(--q-theme-on-background);
2193
2187
  caret-color: var(--q-theme-on-background);
2194
2188
  }
2195
- .q-tooltip .q-overlay__content {
2196
- display: flex;
2197
- flex-direction: column;
2198
- gap: $space-base;
2199
- align-items: center;
2200
- padding: 0.5rem;
2201
- font-style: normal;
2202
- font-size: calc($font-size-base * 0.9);
2203
- font-weight: $font-weight-regular;
2204
- text-decoration: none;
2205
- text-shadow: none;
2206
- text-transform: none;
2207
- line-height: 1.5;
2208
- line-break: auto;
2209
- word-wrap: break-word;
2210
- word-break: normal;
2211
- word-spacing: normal;
2212
- white-space: normal;
2213
- letter-spacing: normal;
2214
- max-width: 200px;
2215
- }
2216
- .q-tooltip.q-overlay--inverted .q-overlay__content {
2217
- --q-overlay-border-color: var(--q-theme-on-background);
2189
+ .q-toggle {
2190
+ &--active {
2191
+ z-index: 2;
2192
+ color: var(--q-theme-primary-dark);
2193
+ background-color: rgb(var(--q-theme-primary-light-rgb) / 50%);
2194
+ &:not(.q-button--borderless) {
2195
+ border-color: var(--q-theme-primary);
2196
+ }
2197
+ }
2198
+ }
2199
+ .q-tooltip {
2200
+ &__content {
2201
+ display: flex;
2202
+ flex-direction: column;
2203
+ gap: $space-base;
2204
+ align-items: center;
2205
+ padding: 0.5rem;
2206
+ font-style: normal;
2207
+ font-size: calc($font-size-base * 0.9);
2208
+ font-weight: $font-weight-regular;
2209
+ text-decoration: none;
2210
+ text-shadow: none;
2211
+ text-transform: none;
2212
+ line-height: 1.5;
2213
+ line-break: auto;
2214
+ word-wrap: break-word;
2215
+ word-break: normal;
2216
+ word-spacing: normal;
2217
+ white-space: normal;
2218
+ letter-spacing: normal;
2219
+ max-width: 200px;
2220
+ }
2218
2221
  }
@@ -1,7 +1,8 @@
1
+ import { Primitive } from '../../types/primitive';
1
2
  import { QAccordionProps } from './types';
2
3
  type __VLS_Props = QAccordionProps;
3
4
  type __VLS_PublicProps = {
4
- modelValue?: string;
5
+ modelValue?: Primitive | Primitive[];
5
6
  } & __VLS_Props;
6
7
  declare function __VLS_template(): {
7
8
  attrs: Partial<{}>;
@@ -13,9 +14,9 @@ declare function __VLS_template(): {
13
14
  };
14
15
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
16
  declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
16
- "update:modelValue": (value: string) => any;
17
+ "update:modelValue": (value: Primitive | Primitive[]) => any;
17
18
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
18
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
19
+ "onUpdate:modelValue"?: ((value: Primitive | Primitive[]) => any) | undefined;
19
20
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
20
21
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
21
22
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"QAccordion.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QAccordion/QAccordion.vue"],"names":[],"mappings":"AAOA;AA+CC,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C,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,16 +1,17 @@
1
- import { defineComponent as l, mergeModels as c, toRef as t, useModel as n, watch as r, createElementBlock as d, openBlock as m, normalizeClass as p, renderSlot as u } from "vue";
1
+ import { defineComponent as n, mergeModels as s, toRef as o, useModel as r, watch as c, createElementBlock as d, openBlock as m, normalizeClass as p, renderSlot as u } from "vue";
2
2
  import { provideDefaults as f } from "../../composables/defaults.js";
3
- import { useGroup as v } from "../../composables/group.js";
4
- const g = ["id"], B = /* @__PURE__ */ l({
3
+ import { useGroup as g } from "../../composables/useGroup/index.js";
4
+ const v = ["id"], b = /* @__PURE__ */ n({
5
5
  __name: "QAccordion",
6
- props: /* @__PURE__ */ c({
6
+ props: /* @__PURE__ */ s({
7
7
  id: {},
8
8
  class: {},
9
- iconRight: { type: Boolean },
9
+ variant: {},
10
10
  spacing: {},
11
- variant: {}
11
+ iconRight: { type: Boolean },
12
+ multiple: { type: Boolean }
12
13
  }, {
13
- modelValue: {},
14
+ modelValue: { type: [String, Number, Boolean, Symbol, Array] },
14
15
  modelModifiers: {}
15
16
  }),
16
17
  emits: ["update:modelValue"],
@@ -18,23 +19,26 @@ const g = ["id"], B = /* @__PURE__ */ l({
18
19
  const e = i;
19
20
  f({
20
21
  QCollapsible: {
21
- iconRight: t(e, "iconRight"),
22
- spacing: t(e, "spacing"),
23
- variant: t(e, "variant"),
22
+ iconRight: o(e, "iconRight"),
23
+ spacing: o(e, "spacing"),
24
+ variant: o(e, "variant"),
24
25
  width: "block"
25
26
  }
26
27
  });
27
- const a = n(i, "modelValue"), { active: s } = v({ active: a });
28
- return r(s, (o) => {
29
- a.value = o;
30
- }), (o, h) => (m(), d("div", {
28
+ const l = r(i, "modelValue"), { active: a } = g({
29
+ active: l,
30
+ multiple: o(e, "multiple")
31
+ });
32
+ return c(a, (t) => {
33
+ l.value = t;
34
+ }), (t, h) => (m(), d("div", {
31
35
  id: e.id,
32
36
  class: p(["q-accordion", e.class])
33
37
  }, [
34
- u(o.$slots, "default")
35
- ], 10, g));
38
+ u(t.$slots, "default")
39
+ ], 10, v));
36
40
  }
37
41
  });
38
42
  export {
39
- B as default
43
+ b as default
40
44
  };
@@ -0,0 +1,19 @@
1
+ import { QAccordionItemProps } from './types';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ rootEl: any;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<QAccordionItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<QAccordionItemProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
13
+ export default _default;
14
+ type __VLS_WithTemplateSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
19
+ //# sourceMappingURL=QAccordionItem.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QAccordionItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QAccordion/QAccordionItem.vue"],"names":[],"mappings":"AAQA;AA6CC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAoBnD,iBAAS,cAAc;WAyCT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kTAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,42 @@
1
+ import { defineComponent as u, computed as s, createBlock as m, openBlock as p, unref as o, mergeProps as d, withCtx as c, renderSlot as f } from "vue";
2
+ import { QCollapsible as v } from "../QCollapsible/index.js";
3
+ import { useId as g } from "../../composables/uid.js";
4
+ import { useGroupItem as h } from "../../composables/useGroup/index.js";
5
+ const I = /* @__PURE__ */ u({
6
+ __name: "QAccordionItem",
7
+ props: {
8
+ id: {},
9
+ class: {},
10
+ title: {},
11
+ subtitle: {},
12
+ required: { type: Boolean },
13
+ iconRight: { type: Boolean },
14
+ spacing: {},
15
+ variant: {},
16
+ width: {},
17
+ icons: {},
18
+ value: {}
19
+ },
20
+ setup(i) {
21
+ const t = i, l = s(() => g(t.value)), e = h(l);
22
+ if (!e)
23
+ throw new Error(
24
+ "QAccordionItem: Failed to retrieve group item. Ensure the component is used within a QAccordion context."
25
+ );
26
+ return (n, r) => (p(), m(o(v), d({
27
+ modelValue: o(e).isActive.value,
28
+ "onUpdate:modelValue": r[0] || (r[0] = (a) => o(e).isActive.value = a)
29
+ }, t, {
30
+ "onUpdate:modelValue": o(e).toggle
31
+ }), {
32
+ default: c(() => [
33
+ f(n.$slots, "default")
34
+ ]),
35
+ _: 3
36
+ /* FORWARDED */
37
+ }, 16, ["modelValue", "onUpdate:modelValue"]));
38
+ }
39
+ });
40
+ export {
41
+ I as default
42
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./QAccordionItem.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -1,14 +1,15 @@
1
1
  declare const QAccordion: {
2
2
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
3
- modelValue?: string;
3
+ modelValue?: import('../../types/primitive').Primitive | import('../../types/primitive').Primitive[];
4
4
  } & import('../../types/component').QBaseComponentProps & {
5
+ variant?: import('..').QCollapsibleVariant;
6
+ spacing?: import('..').QCollapsibleSpacing;
5
7
  iconRight?: boolean;
6
- spacing?: import('../QCollapsible/types').QCollapsibleSpacing;
7
- variant?: import('../QCollapsible/types').QCollapsibleVariant;
8
+ multiple?: boolean;
8
9
  }> & Readonly<{
9
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
10
+ "onUpdate:modelValue"?: ((value: import('../../types/primitive').Primitive | import('../../types/primitive').Primitive[]) => any) | undefined;
10
11
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
- "update:modelValue": (value: string) => any;
12
+ "update:modelValue": (value: import('../../types/primitive').Primitive | import('../../types/primitive').Primitive[]) => any;
12
13
  }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
13
14
  P: {};
14
15
  B: {};
@@ -17,31 +18,50 @@ declare const QAccordion: {
17
18
  M: {};
18
19
  Defaults: {};
19
20
  }, Readonly<{
20
- modelValue?: string;
21
+ modelValue?: import('../../types/primitive').Primitive | import('../../types/primitive').Primitive[];
21
22
  } & import('../../types/component').QBaseComponentProps & {
23
+ variant?: import('..').QCollapsibleVariant;
24
+ spacing?: import('..').QCollapsibleSpacing;
22
25
  iconRight?: boolean;
23
- spacing?: import('../QCollapsible/types').QCollapsibleSpacing;
24
- variant?: import('../QCollapsible/types').QCollapsibleVariant;
26
+ multiple?: boolean;
25
27
  }> & Readonly<{
26
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
28
+ "onUpdate:modelValue"?: ((value: import('../../types/primitive').Primitive | import('../../types/primitive').Primitive[]) => any) | undefined;
27
29
  }>, {}, {}, {}, {}, {}>;
28
30
  __isFragment?: never;
29
31
  __isTeleport?: never;
30
32
  __isSuspense?: never;
31
33
  } & import('vue').ComponentOptionsBase<Readonly<{
32
- modelValue?: string;
34
+ modelValue?: import('../../types/primitive').Primitive | import('../../types/primitive').Primitive[];
33
35
  } & import('../../types/component').QBaseComponentProps & {
36
+ variant?: import('..').QCollapsibleVariant;
37
+ spacing?: import('..').QCollapsibleSpacing;
34
38
  iconRight?: boolean;
35
- spacing?: import('../QCollapsible/types').QCollapsibleSpacing;
36
- variant?: import('../QCollapsible/types').QCollapsibleVariant;
39
+ multiple?: boolean;
37
40
  }> & Readonly<{
38
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
41
+ "onUpdate:modelValue"?: ((value: import('../../types/primitive').Primitive | import('../../types/primitive').Primitive[]) => any) | undefined;
39
42
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
40
- "update:modelValue": (value: string) => any;
43
+ "update:modelValue": (value: import('../../types/primitive').Primitive | import('../../types/primitive').Primitive[]) => any;
41
44
  }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
42
45
  $slots: {
43
46
  default?(_: {}): any;
44
47
  };
45
48
  });
46
- export { QAccordion };
49
+ declare const QAccordionItem: {
50
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types').QAccordionItemProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
51
+ P: {};
52
+ B: {};
53
+ D: {};
54
+ C: {};
55
+ M: {};
56
+ Defaults: {};
57
+ }, Readonly<import('./types').QAccordionItemProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
58
+ __isFragment?: never;
59
+ __isTeleport?: never;
60
+ __isSuspense?: never;
61
+ } & import('vue').ComponentOptionsBase<Readonly<import('./types').QAccordionItemProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
62
+ $slots: {
63
+ default?(_: {}): any;
64
+ };
65
+ });
66
+ export { QAccordion, QAccordionItem };
47
67
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QAccordion/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA+B,CAAA;AAG/C,OAAO,EAAE,UAAU,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QAccordion/index.ts"],"names":[],"mappings":"AAOA,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA+B,CAAA;AAC/C,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;EAAmC,CAAA;AAGvD,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,CAAA"}
@@ -1,6 +1,8 @@
1
- import o from "./QAccordion.vue.js";
2
- import { setupPropsProxy as r } from "../../utils/setupPropsProxy.js";
3
- const t = r(o);
1
+ import r from "./QAccordion.vue.js";
2
+ import m from "./QAccordionItem.vue.js";
3
+ import { setupPropsProxy as o } from "../../utils/setupPropsProxy.js";
4
+ const n = o(r), p = o(m);
4
5
  export {
5
- t as QAccordion
6
+ n as QAccordion,
7
+ p as QAccordionItem
6
8
  };
@@ -1,17 +1,37 @@
1
- import { QCollapsibleSpacing, QCollapsibleVariant } from '../QCollapsible/types';
1
+ import { QCollapsibleProps, QCollapsibleSpacing, QCollapsibleVariant } from '../QCollapsible';
2
2
  import { QBaseComponentProps } from '../../types/component';
3
+ /**
4
+ * Props for the QAccordion component.
5
+ *
6
+ * @extends QBaseComponentProps
7
+ */
3
8
  export type QAccordionProps = QBaseComponentProps & {
9
+ /**
10
+ * Specifies the visual style of the collapsible sections.
11
+ */
12
+ variant?: QCollapsibleVariant;
13
+ /**
14
+ * Defines the spacing around the title of each collapsible section.
15
+ */
16
+ spacing?: QCollapsibleSpacing;
4
17
  /**
5
18
  * If true, positions the expand/collapse icon on the right.
6
19
  */
7
20
  iconRight?: boolean;
8
21
  /**
9
- * Defines the spacing around the title of each collapsible panel.
22
+ * If true, allows multiple collapsible sections to be expanded simultaneously.
10
23
  */
11
- spacing?: QCollapsibleSpacing;
24
+ multiple?: boolean;
25
+ };
26
+ /**
27
+ * Props for the QAccordionItem component.
28
+ *
29
+ * @extends QBaseComponentProps
30
+ */
31
+ export type QAccordionItemProps = QCollapsibleProps & {
12
32
  /**
13
- * Specifies the visual style of the collapsible sections.
33
+ * An optional string that represents the value associated with the accordion item.
14
34
  */
15
- variant?: QCollapsibleVariant;
35
+ value?: string;
16
36
  };
17
37
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QAccordion/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AACrF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAEhE,MAAM,MAAM,eAAe,GAAG,mBAAmB,GAAG;IACnD;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,mBAAmB,CAAA;IAE7B;;OAEG;IACH,OAAO,CAAC,EAAE,mBAAmB,CAAA;CAC7B,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QAccordion/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AAClG,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAEhE;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,mBAAmB,GAAG;IACnD;;OAEG;IACH,OAAO,CAAC,EAAE,mBAAmB,CAAA;IAE7B;;OAEG;IACH,OAAO,CAAC,EAAE,mBAAmB,CAAA;IAE7B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IAEnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG,iBAAiB,GAAG;IACrD;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACd,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"QButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QButton/QButton.vue"],"names":[],"mappings":"AAmBA;AAyGC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AA8E5C,iBAAS,cAAc;WA6CT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;2FASnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"QButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QButton/QButton.vue"],"names":[],"mappings":"AAmBA;AAwGC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AA6E5C,iBAAS,cAAc;WA6CT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;2FASnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,10 +1,10 @@
1
- import { defineComponent as y, computed as a, toRef as _, createElementBlock as d, openBlock as b, withModifiers as g, normalizeStyle as h, normalizeClass as k, createCommentVNode as B, createElementVNode as z, createVNode as V, unref as $, renderSlot as N, createTextVNode as P, toDisplayString as S } from "vue";
1
+ import { defineComponent as _, computed as a, toRef as y, createElementBlock as d, openBlock as b, withModifiers as g, normalizeStyle as h, normalizeClass as k, createCommentVNode as B, createElementVNode as z, createVNode as V, unref as $, renderSlot as N, createTextVNode as P, toDisplayString as S } from "vue";
2
2
  import { QSpinnerLoader as R } from "../QSpinnerLoader/index.js";
3
3
  import { useColor as x } from "../../composables/useColor/index.js";
4
4
  const D = ["id", "disabled"], E = {
5
5
  key: 0,
6
6
  class: "q-button__spinner"
7
- }, M = { class: "q-button__content" }, L = /* @__PURE__ */ y({
7
+ }, M = { class: "q-button__content" }, L = /* @__PURE__ */ _({
8
8
  __name: "QButton",
9
9
  props: {
10
10
  id: {},
@@ -19,7 +19,6 @@ const D = ["id", "disabled"], E = {
19
19
  loading: { type: Boolean },
20
20
  size: { default: "regular" },
21
21
  iconPos: { default: "start" },
22
- active: { type: Boolean },
23
22
  pill: { type: Boolean }
24
23
  },
25
24
  emits: ["click"],
@@ -28,16 +27,15 @@ const D = ["id", "disabled"], E = {
28
27
  function f(e) {
29
28
  r.value || m("click", e);
30
29
  }
31
- const { isUtilityColor: s, style: t } = x(_(o, "color")), q = a(() => {
32
- const e = s.value ? `q-button--${o.color}` : void 0, n = o.size !== "regular" ? `q-button--${o.size}` : void 0, l = o.iconPos !== "start" ? `q-button--icon-${o.iconPos}` : void 0;
30
+ const { isUtilityColor: s, style: t } = x(y(o, "color")), q = a(() => {
31
+ const e = s.value ? `q-button--${o.color}` : void 0, l = o.size !== "regular" ? `q-button--${o.size}` : void 0, n = o.iconPos !== "start" ? `q-button--icon-${o.iconPos}` : void 0;
33
32
  return [
34
33
  "q-button",
35
34
  `q-button--${o.variant}`,
36
35
  e,
37
- n,
38
36
  l,
37
+ n,
39
38
  {
40
- "q-button--active": o.active,
41
39
  "q-button--borderless": o.borderless,
42
40
  "q-button--elevated": o.elevated,
43
41
  "q-button--block": o.block,
@@ -47,18 +45,18 @@ const D = ["id", "disabled"], E = {
47
45
  o.class
48
46
  ];
49
47
  }), C = a(() => {
50
- var e, n, l, i, c, u;
48
+ var e, l, n, i, c, u;
51
49
  if (!s.value)
52
50
  return {
53
51
  "--q-button-main-color": (e = t.value) == null ? void 0 : e.mainColor,
54
- "--q-button-main-color-rgb": (n = t.value) == null ? void 0 : n.mainColorRgb,
55
- "--q-button-on-main-color": (l = t.value) == null ? void 0 : l.onMainColor,
52
+ "--q-button-main-color-rgb": (l = t.value) == null ? void 0 : l.mainColorRgb,
53
+ "--q-button-on-main-color": (n = t.value) == null ? void 0 : n.onMainColor,
56
54
  "--q-button-hover-color": (i = t.value) == null ? void 0 : i.hoverColor,
57
55
  "--q-button-hover-color-rgb": (c = t.value) == null ? void 0 : c.hoverColorRgb,
58
56
  "--q-button-on-hover-color": (u = t.value) == null ? void 0 : u.onHoverColor
59
57
  };
60
58
  });
61
- return (e, n) => (b(), d("button", {
59
+ return (e, l) => (b(), d("button", {
62
60
  id: o.id,
63
61
  type: "button",
64
62
  class: k(q.value),
@@ -45,10 +45,6 @@ export type QButtonProps = QBaseComponentProps & {
45
45
  * The position of the button icon.
46
46
  */
47
47
  iconPos?: QButtonIconPosition;
48
- /**
49
- * Indicates whether the button is active or not.
50
- */
51
- active?: boolean;
52
48
  /**
53
49
  * Conveys a pill shape to the button.
54
50
  */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QButton/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAEhE,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,OAAO,GAAG,MAAM,CAAA;AAE7E,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,SAAS,CAAA;AAE7C,MAAM,MAAM,mBAAmB,GAAG,OAAO,GAAG,KAAK,GAAG,KAAK,GAAG,QAAQ,CAAA;AAEpE,MAAM,MAAM,YAAY,GAAG,mBAAmB,GAAG;IAChD;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,OAAO,CAAC,EAAE,cAAc,CAAA;IAExB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IAEpB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IAEf;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;OAEG;IACH,IAAI,CAAC,EAAE,WAAW,CAAA;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,mBAAmB,CAAA;IAE7B;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;CACd,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QButton/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAEhE,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,OA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