@quidgest/ui 0.14.5 → 0.14.6

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 (39) hide show
  1. package/dist/manifest/components.json +2 -0
  2. package/dist/ui.css +163 -20
  3. package/dist/ui.esm.js +1115 -961
  4. package/dist/ui.js +6 -6
  5. package/dist/ui.min.css +1 -1
  6. package/dist/ui.min.js +193 -180
  7. package/dist/ui.scss +176 -22
  8. package/esm/components/QAccordion/QAccordion.d.ts +26 -0
  9. package/esm/components/QAccordion/QAccordion.d.ts.map +1 -0
  10. package/esm/components/QAccordion/QAccordion.vue.js +27 -0
  11. package/esm/components/QAccordion/QAccordion.vue2.js +4 -0
  12. package/esm/components/QAccordion/index.d.ts +4 -0
  13. package/esm/components/QAccordion/index.d.ts.map +1 -0
  14. package/esm/components/QAccordion/index.js +6 -0
  15. package/esm/components/QAccordion/types.d.ts +7 -0
  16. package/esm/components/QAccordion/types.d.ts.map +1 -0
  17. package/esm/components/QCard/QCard.d.ts +1 -1
  18. package/esm/components/QCollapsible/QCollapsible.d.ts +35 -0
  19. package/esm/components/QCollapsible/QCollapsible.d.ts.map +1 -0
  20. package/esm/components/QCollapsible/QCollapsible.vue.js +143 -0
  21. package/esm/components/QCollapsible/QCollapsible.vue2.js +4 -0
  22. package/esm/components/QCollapsible/index.d.ts +6 -0
  23. package/esm/components/QCollapsible/index.d.ts.map +1 -0
  24. package/esm/components/QCollapsible/index.js +6 -0
  25. package/esm/components/QCollapsible/types.d.ts +43 -0
  26. package/esm/components/QCollapsible/types.d.ts.map +1 -0
  27. package/esm/components/QCollapsible/types.js +8 -0
  28. package/esm/components/QCombobox/QCombobox.d.ts +9 -9
  29. package/esm/components/QIcon/QIconFont.d.ts +1 -1
  30. package/esm/components/QTextField/QTextField.d.ts +1 -1
  31. package/esm/components/QTooltip/QTooltip.d.ts +1 -1
  32. package/esm/components/index.d.ts +2 -0
  33. package/esm/components/index.d.ts.map +1 -1
  34. package/esm/components/index.js +56 -52
  35. package/esm/composables/group.d.ts +16 -0
  36. package/esm/composables/group.d.ts.map +1 -0
  37. package/esm/composables/group.js +34 -0
  38. package/esm/index.d.ts +2 -0
  39. package/package.json +4 -1
@@ -65,8 +65,8 @@ declare function __VLS_template(): {
65
65
  }, string, {
66
66
  size: import('..').QFieldSize;
67
67
  class: string | unknown[];
68
- type: string;
69
68
  label: string;
69
+ type: string;
70
70
  role: string;
71
71
  id: string;
72
72
  placeholder: string;
@@ -94,8 +94,8 @@ declare function __VLS_template(): {
94
94
  } & Readonly<{
95
95
  size: import('..').QFieldSize;
96
96
  class: string | unknown[];
97
- type: string;
98
97
  label: string;
98
+ type: string;
99
99
  role: string;
100
100
  id: string;
101
101
  placeholder: string;
@@ -104,7 +104,7 @@ declare function __VLS_template(): {
104
104
  modelValue?: string;
105
105
  } & import('../QTextField/types').QTextFieldProps> & Readonly<{
106
106
  "onUpdate:modelValue"?: ((modelValue: string) => any) | undefined;
107
- }>, "fieldRef" | "inputRef" | ("size" | "class" | "type" | "label" | "role" | "id" | "placeholder" | "maxLength")> & import('vue').ShallowUnwrapRef<{
107
+ }>, "fieldRef" | "inputRef" | ("size" | "class" | "label" | "type" | "role" | "id" | "placeholder" | "maxLength")> & import('vue').ShallowUnwrapRef<{
108
108
  fieldRef: import('vue').ComputedRef<HTMLElement | null | undefined>;
109
109
  inputRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
110
110
  }> & {} & import('vue').ComponentCustomProperties & {} & {
@@ -328,8 +328,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
328
328
  }, string, {
329
329
  size: import('..').QFieldSize;
330
330
  class: string | unknown[];
331
- type: string;
332
331
  label: string;
332
+ type: string;
333
333
  role: string;
334
334
  id: string;
335
335
  placeholder: string;
@@ -357,8 +357,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
357
357
  } & Readonly<{
358
358
  size: import('..').QFieldSize;
359
359
  class: string | unknown[];
360
- type: string;
361
360
  label: string;
361
+ type: string;
362
362
  role: string;
363
363
  id: string;
364
364
  placeholder: string;
@@ -367,7 +367,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
367
367
  modelValue?: string;
368
368
  } & import('../QTextField/types').QTextFieldProps> & Readonly<{
369
369
  "onUpdate:modelValue"?: ((modelValue: string) => any) | undefined;
370
- }>, "fieldRef" | "inputRef" | ("size" | "class" | "type" | "label" | "role" | "id" | "placeholder" | "maxLength")> & import('vue').ShallowUnwrapRef<{
370
+ }>, "fieldRef" | "inputRef" | ("size" | "class" | "label" | "type" | "role" | "id" | "placeholder" | "maxLength")> & import('vue').ShallowUnwrapRef<{
371
371
  fieldRef: import('vue').ComputedRef<HTMLElement | null | undefined>;
372
372
  inputRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
373
373
  }> & {} & import('vue').ComponentCustomProperties & {} & {
@@ -422,8 +422,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
422
422
  }, string, {
423
423
  size: import('..').QFieldSize;
424
424
  class: string | unknown[];
425
- type: string;
426
425
  label: string;
426
+ type: string;
427
427
  role: string;
428
428
  id: string;
429
429
  placeholder: string;
@@ -451,8 +451,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
451
451
  } & Readonly<{
452
452
  size: import('..').QFieldSize;
453
453
  class: string | unknown[];
454
- type: string;
455
454
  label: string;
455
+ type: string;
456
456
  role: string;
457
457
  id: string;
458
458
  placeholder: string;
@@ -461,7 +461,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
461
461
  modelValue?: string;
462
462
  } & import('../QTextField/types').QTextFieldProps> & Readonly<{
463
463
  "onUpdate:modelValue"?: ((modelValue: string) => any) | undefined;
464
- }>, "fieldRef" | "inputRef" | ("size" | "class" | "type" | "label" | "role" | "id" | "placeholder" | "maxLength")> & import('vue').ShallowUnwrapRef<{
464
+ }>, "fieldRef" | "inputRef" | ("size" | "class" | "label" | "type" | "role" | "id" | "placeholder" | "maxLength")> & import('vue').ShallowUnwrapRef<{
465
465
  fieldRef: import('vue').ComputedRef<HTMLElement | null | undefined>;
466
466
  inputRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
467
467
  }> & {} & import('vue').ComponentCustomProperties & {} & {
@@ -1,9 +1,9 @@
1
1
  import { QIconFontProps } from './types';
2
2
  declare const _default: import('vue').DefineComponent<QIconFontProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<QIconFontProps> & Readonly<{}>, {
3
3
  size: number;
4
+ variant: string;
4
5
  class: string | unknown[];
5
6
  library: string;
6
- variant: string;
7
7
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
8
8
  export default _default;
9
9
  //# sourceMappingURL=QIconFont.vue.d.ts.map
@@ -101,8 +101,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
101
101
  }>, {
102
102
  size: import('../QField').QFieldSize;
103
103
  class: string | unknown[];
104
- type: string;
105
104
  label: string;
105
+ type: string;
106
106
  role: string;
107
107
  id: string;
108
108
  placeholder: string;
@@ -22,8 +22,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
22
22
  "onUpdate:modelValue"?: ((modelValue: boolean) => any) | undefined;
23
23
  }>, {
24
24
  class: string | unknown[];
25
- anchor: import('../../utils/getElement').Selector;
26
25
  html: boolean;
26
+ anchor: import('../../utils/getElement').Selector;
27
27
  icon: import('../QIcon').Icon;
28
28
  id: string;
29
29
  appearance: import('../../composables/overlay').Appearance;
@@ -1,9 +1,11 @@
1
+ export * from './QAccordion';
1
2
  export * from './QBadge';
2
3
  export * from './QButton';
3
4
  export * from './QButtonGroup';
4
5
  export * from './QButtonToggle';
5
6
  export * from './QCard';
6
7
  export * from './QCheckbox';
8
+ export * from './QCollapsible';
7
9
  export * from './QCombobox';
8
10
  export * from './QDialog';
9
11
  export * from './QField';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,WAAW,CAAA;AACzB,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,YAAY,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,WAAW,CAAA;AACzB,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,YAAY,CAAA"}
@@ -1,54 +1,58 @@
1
- import { QBadge as e } from "./QBadge/index.js";
2
- import { QButton as p } from "./QButton/index.js";
3
- import { QButtonGroup as m } from "./QButtonGroup/index.js";
4
- import { QButtonToggle as f } from "./QButtonToggle/index.js";
5
- import { QCard as n } from "./QCard/index.js";
6
- import { QCheckbox as l } from "./QCheckbox/index.js";
7
- import { QCombobox as d } from "./QCombobox/index.js";
8
- import { QDialog as I } from "./QDialog/index.js";
9
- import { QField as P } from "./QField/index.js";
10
- import { QIcon as g, QIconFont as y, QIconImg as v, QIconSvg as B } from "./QIcon/index.js";
11
- import { QInputGroup as S } from "./QInputGroup/index.js";
12
- import { QLineLoader as b } from "./QLineLoader/index.js";
13
- import { QList as F, QListItem as h, QListItemGroup as k } from "./QList/index.js";
14
- import { QOverlay as D } from "./QOverlay/index.js";
15
- import { QPopover as R } from "./QPopover/index.js";
16
- import { QPropertyList as q, QPropertyListGroup as z, QPropertyListPanel as A, QPropertyListRow as E } from "./QPropertyList/index.js";
17
- import { QSelect as J } from "./QSelect/index.js";
18
- import { QSkeletonLoader as M } from "./QSkeletonLoader/index.js";
19
- import { QSpinnerLoader as U } from "./QSpinnerLoader/index.js";
20
- import { QTextField as W } from "./QTextField/index.js";
21
- import { QThemeProvider as Y } from "./QThemeProvider/index.js";
22
- import { QTooltip as _ } from "./QTooltip/index.js";
1
+ import { QAccordion as e } from "./QAccordion/index.js";
2
+ import { QBadge as p } from "./QBadge/index.js";
3
+ import { QButton as m } from "./QButton/index.js";
4
+ import { QButtonGroup as f } from "./QButtonGroup/index.js";
5
+ import { QButtonToggle as n } from "./QButtonToggle/index.js";
6
+ import { QCard as L } from "./QCard/index.js";
7
+ import { QCheckbox as d } from "./QCheckbox/index.js";
8
+ import { QCollapsible as s } from "./QCollapsible/index.js";
9
+ import { QCombobox as I } from "./QCombobox/index.js";
10
+ import { QDialog as g } from "./QDialog/index.js";
11
+ import { QField as b } from "./QField/index.js";
12
+ import { QIcon as B, QIconFont as C, QIconImg as G, QIconSvg as S } from "./QIcon/index.js";
13
+ import { QInputGroup as F } from "./QInputGroup/index.js";
14
+ import { QLineLoader as k } from "./QLineLoader/index.js";
15
+ import { QList as A, QListItem as D, QListItemGroup as O } from "./QList/index.js";
16
+ import { QOverlay as j } from "./QOverlay/index.js";
17
+ import { QPopover as z } from "./QPopover/index.js";
18
+ import { QPropertyList as H, QPropertyListGroup as J, QPropertyListPanel as K, QPropertyListRow as M } from "./QPropertyList/index.js";
19
+ import { QSelect as U } from "./QSelect/index.js";
20
+ import { QSkeletonLoader as W } from "./QSkeletonLoader/index.js";
21
+ import { QSpinnerLoader as Y } from "./QSpinnerLoader/index.js";
22
+ import { QTextField as _ } from "./QTextField/index.js";
23
+ import { QThemeProvider as oo } from "./QThemeProvider/index.js";
24
+ import { QTooltip as eo } from "./QTooltip/index.js";
23
25
  export {
24
- e as QBadge,
25
- p as QButton,
26
- m as QButtonGroup,
27
- f as QButtonToggle,
28
- n as QCard,
29
- l as QCheckbox,
30
- d as QCombobox,
31
- I as QDialog,
32
- P as QField,
33
- g as QIcon,
34
- y as QIconFont,
35
- v as QIconImg,
36
- B as QIconSvg,
37
- S as QInputGroup,
38
- b as QLineLoader,
39
- F as QList,
40
- h as QListItem,
41
- k as QListItemGroup,
42
- D as QOverlay,
43
- R as QPopover,
44
- q as QPropertyList,
45
- z as QPropertyListGroup,
46
- A as QPropertyListPanel,
47
- E as QPropertyListRow,
48
- J as QSelect,
49
- M as QSkeletonLoader,
50
- U as QSpinnerLoader,
51
- W as QTextField,
52
- Y as QThemeProvider,
53
- _ as QTooltip
26
+ e as QAccordion,
27
+ p as QBadge,
28
+ m as QButton,
29
+ f as QButtonGroup,
30
+ n as QButtonToggle,
31
+ L as QCard,
32
+ d as QCheckbox,
33
+ s as QCollapsible,
34
+ I as QCombobox,
35
+ g as QDialog,
36
+ b as QField,
37
+ B as QIcon,
38
+ C as QIconFont,
39
+ G as QIconImg,
40
+ S as QIconSvg,
41
+ F as QInputGroup,
42
+ k as QLineLoader,
43
+ A as QList,
44
+ D as QListItem,
45
+ O as QListItemGroup,
46
+ j as QOverlay,
47
+ z as QPopover,
48
+ H as QPropertyList,
49
+ J as QPropertyListGroup,
50
+ K as QPropertyListPanel,
51
+ M as QPropertyListRow,
52
+ U as QSelect,
53
+ W as QSkeletonLoader,
54
+ Y as QSpinnerLoader,
55
+ _ as QTextField,
56
+ oo as QThemeProvider,
57
+ eo as QTooltip
54
58
  };
@@ -0,0 +1,16 @@
1
+ import { ComputedRef, Ref } from 'vue';
2
+ export interface Group {
3
+ active: Ref<unknown>;
4
+ multiple: ComputedRef<boolean>;
5
+ }
6
+ export interface GroupProps {
7
+ active?: Ref<unknown>;
8
+ multiple?: Ref<boolean>;
9
+ }
10
+ export interface GroupProvide {
11
+ toggle: () => void;
12
+ isActive: ComputedRef<boolean>;
13
+ }
14
+ export declare function useGroup(options: GroupProps): Group;
15
+ export declare function useGroupItem(itemId: string): GroupProvide | undefined;
16
+ //# sourceMappingURL=group.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"group.d.ts","sourceRoot":"","sources":["../../src/composables/group.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAO3C,MAAM,WAAW,KAAK;IACrB,MAAM,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IACpB,QAAQ,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;CAC9B;AAED,MAAM,WAAW,UAAU;IAC1B,MAAM,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IACrB,QAAQ,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;CACvB;AAED,MAAM,WAAW,YAAY;IAC5B,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,QAAQ,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;CAC9B;AAED,wBAAgB,QAAQ,CAAC,OAAO,EAAE,UAAU,GAAG,KAAK,CAoBnD;AAED,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,YAAY,GAAG,SAAS,CAuBrE"}
@@ -0,0 +1,34 @@
1
+ import { ref as c, computed as t, watch as o, provide as s, inject as n } from "vue";
2
+ const i = "q-group";
3
+ function p(u) {
4
+ var v, l;
5
+ const e = {
6
+ active: c(((v = u.active) == null ? void 0 : v.value) ?? ((l = u.multiple) == null ? void 0 : l.value) ? [] : null),
7
+ multiple: t(() => {
8
+ var a;
9
+ return ((a = u.multiple) == null ? void 0 : a.value) || !1;
10
+ })
11
+ };
12
+ return o(
13
+ () => e.multiple.value,
14
+ (a) => {
15
+ a && e.active.value ? e.active.value = [e.active.value] : a ? e.active.value = [] : Array.isArray(e.active.value) && e.active.value.length === 1 ? e.active.value = e.active.value[0] : e.active.value = null;
16
+ }
17
+ ), s(i, e), e;
18
+ }
19
+ function g(u) {
20
+ const e = n(i, void 0);
21
+ if (!e) return;
22
+ const v = t(() => {
23
+ var a;
24
+ return Array.isArray(e.active.value) ? (a = e.active.value) == null ? void 0 : a.includes(u) : e.active.value === u;
25
+ });
26
+ return { isActive: v, toggle: () => {
27
+ var a;
28
+ Array.isArray(e.active.value) ? v.value ? e.active.value = (a = e.active.value) == null ? void 0 : a.filter((r) => r !== u) : e.active.value.push(u) : e.active.value = u;
29
+ } };
30
+ }
31
+ export {
32
+ p as useGroup,
33
+ g as useGroupItem
34
+ };
package/esm/index.d.ts CHANGED
@@ -7,12 +7,14 @@ export * from './composables';
7
7
  //# sourceMappingURL=index.d.ts.map
8
8
  declare module '@vue/runtime-core' {
9
9
  export interface GlobalComponents {
10
+ QAccordion: typeof import('@quidgest/ui/components')['QAccordion']
10
11
  QBadge: typeof import('@quidgest/ui/components')['QBadge']
11
12
  QButton: typeof import('@quidgest/ui/components')['QButton']
12
13
  QButtonGroup: typeof import('@quidgest/ui/components')['QButtonGroup']
13
14
  QButtonToggle: typeof import('@quidgest/ui/components')['QButtonToggle']
14
15
  QCard: typeof import('@quidgest/ui/components')['QCard']
15
16
  QCheckbox: typeof import('@quidgest/ui/components')['QCheckbox']
17
+ QCollapsible: typeof import('@quidgest/ui/components')['QCollapsible']
16
18
  QCombobox: typeof import('@quidgest/ui/components')['QCombobox']
17
19
  QDialog: typeof import('@quidgest/ui/components')['QDialog']
18
20
  QField: typeof import('@quidgest/ui/components')['QField']
package/package.json CHANGED
@@ -1,11 +1,14 @@
1
1
  {
2
2
  "name": "@quidgest/ui",
3
3
  "description": "Quidgest's UI framework",
4
- "version": "0.14.5",
4
+ "version": "0.14.6",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "author": "Quidgest",
8
8
  "license": "MIT",
9
+ "engines": {
10
+ "node": ">=22.0.0"
11
+ },
9
12
  "keywords": [
10
13
  "vue",
11
14
  "component-library",