@quidgest/ui 0.14.4 → 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.
- package/README.md +4 -4
- package/dist/manifest/components.json +3 -0
- package/dist/ui.css +294 -19
- package/dist/ui.esm.js +1413 -1168
- package/dist/ui.js +6 -6
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +198 -184
- package/dist/ui.scss +313 -21
- package/esm/components/QAccordion/QAccordion.d.ts +26 -0
- package/esm/components/QAccordion/QAccordion.d.ts.map +1 -0
- package/esm/components/QAccordion/QAccordion.vue.js +27 -0
- package/esm/components/QAccordion/QAccordion.vue2.js +4 -0
- package/esm/components/QAccordion/index.d.ts +4 -0
- package/esm/components/QAccordion/index.d.ts.map +1 -0
- package/esm/components/QAccordion/index.js +6 -0
- package/esm/components/QAccordion/types.d.ts +7 -0
- package/esm/components/QAccordion/types.d.ts.map +1 -0
- package/esm/components/QCard/QCard.d.ts +34 -0
- package/esm/components/QCard/QCard.d.ts.map +1 -0
- package/esm/components/QCard/QCard.vue.js +132 -0
- package/esm/components/QCard/QCard.vue2.js +4 -0
- package/esm/components/QCard/index.d.ts +6 -0
- package/esm/components/QCard/index.d.ts.map +1 -0
- package/esm/components/QCard/index.js +6 -0
- package/esm/components/QCard/types.d.ts +44 -0
- package/esm/components/QCard/types.d.ts.map +1 -0
- package/esm/components/QCollapsible/QCollapsible.d.ts +35 -0
- package/esm/components/QCollapsible/QCollapsible.d.ts.map +1 -0
- package/esm/components/QCollapsible/QCollapsible.vue.js +143 -0
- package/esm/components/QCollapsible/QCollapsible.vue2.js +4 -0
- package/esm/components/QCollapsible/index.d.ts +6 -0
- package/esm/components/QCollapsible/index.d.ts.map +1 -0
- package/esm/components/QCollapsible/index.js +6 -0
- package/esm/components/QCollapsible/types.d.ts +43 -0
- package/esm/components/QCollapsible/types.d.ts.map +1 -0
- package/esm/components/QCollapsible/types.js +8 -0
- package/esm/components/QCombobox/QCombobox.d.ts +9 -9
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/esm/components/QIcon/QIconFont.d.ts +1 -1
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts +1 -1
- package/esm/components/QTextField/QTextField.d.ts +1 -1
- package/esm/components/QTextField/QTextField.d.ts.map +1 -1
- package/esm/components/QTooltip/QTooltip.d.ts +1 -1
- package/esm/components/index.d.ts +3 -0
- package/esm/components/index.d.ts.map +1 -1
- package/esm/components/index.js +56 -50
- package/esm/composables/group.d.ts +16 -0
- package/esm/composables/group.d.ts.map +1 -0
- package/esm/composables/group.js +34 -0
- package/esm/index.d.ts +3 -0
- package/package.json +30 -27
package/esm/components/index.js
CHANGED
|
@@ -1,52 +1,58 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
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";
|
|
22
25
|
export {
|
|
23
|
-
e as
|
|
24
|
-
p as
|
|
25
|
-
m as
|
|
26
|
-
f as
|
|
27
|
-
n as
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
F as
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
D as
|
|
42
|
-
|
|
43
|
-
j as
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
M as
|
|
49
|
-
U as
|
|
50
|
-
W as
|
|
51
|
-
Y as
|
|
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
|
|
52
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,11 +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']
|
|
15
|
+
QCard: typeof import('@quidgest/ui/components')['QCard']
|
|
14
16
|
QCheckbox: typeof import('@quidgest/ui/components')['QCheckbox']
|
|
17
|
+
QCollapsible: typeof import('@quidgest/ui/components')['QCollapsible']
|
|
15
18
|
QCombobox: typeof import('@quidgest/ui/components')['QCombobox']
|
|
16
19
|
QDialog: typeof import('@quidgest/ui/components')['QDialog']
|
|
17
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.
|
|
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",
|
|
@@ -42,50 +45,50 @@
|
|
|
42
45
|
"./*": "./*"
|
|
43
46
|
},
|
|
44
47
|
"devDependencies": {
|
|
45
|
-
"@fortawesome/fontawesome-free": "^6.
|
|
48
|
+
"@fortawesome/fontawesome-free": "^6.7.1",
|
|
46
49
|
"@rollup/plugin-node-resolve": "^15.3.0",
|
|
47
50
|
"@rollup/plugin-terser": "^0.4.4",
|
|
48
|
-
"@storybook/addon-essentials": "^8.4.
|
|
49
|
-
"@storybook/addon-interactions": "^8.4.
|
|
50
|
-
"@storybook/addon-links": "^8.4.
|
|
51
|
-
"@storybook/blocks": "^8.4.
|
|
52
|
-
"@storybook/manager-api": "^8.4.
|
|
53
|
-
"@storybook/test": "^8.4.
|
|
54
|
-
"@storybook/theming": "^8.4.
|
|
55
|
-
"@storybook/vue3": "^8.4.
|
|
56
|
-
"@storybook/vue3-vite": "^8.4.
|
|
51
|
+
"@storybook/addon-essentials": "^8.4.6",
|
|
52
|
+
"@storybook/addon-interactions": "^8.4.6",
|
|
53
|
+
"@storybook/addon-links": "^8.4.6",
|
|
54
|
+
"@storybook/blocks": "^8.4.6",
|
|
55
|
+
"@storybook/manager-api": "^8.4.6",
|
|
56
|
+
"@storybook/test": "^8.4.6",
|
|
57
|
+
"@storybook/theming": "^8.4.6",
|
|
58
|
+
"@storybook/vue3": "^8.4.6",
|
|
59
|
+
"@storybook/vue3-vite": "^8.4.6",
|
|
57
60
|
"@tsconfig/node20": "^20.1.4",
|
|
58
|
-
"@types/node": "^22.
|
|
61
|
+
"@types/node": "^22.10.1",
|
|
59
62
|
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
60
63
|
"@typescript-eslint/parser": "^7.18.0",
|
|
61
|
-
"@vitejs/plugin-vue": "^5.2.
|
|
62
|
-
"@vitest/coverage-v8": "^2.1.
|
|
63
|
-
"@vitest/ui": "^2.1.
|
|
64
|
+
"@vitejs/plugin-vue": "^5.2.1",
|
|
65
|
+
"@vitest/coverage-v8": "^2.1.8",
|
|
66
|
+
"@vitest/ui": "^2.1.8",
|
|
64
67
|
"@vue/eslint-config-typescript": "^12.0.0",
|
|
65
68
|
"@vue/test-utils": "^2.4.6",
|
|
66
|
-
"@vue/tsconfig": "^0.
|
|
69
|
+
"@vue/tsconfig": "^0.7.0",
|
|
67
70
|
"acorn-walk": "^8.3.4",
|
|
68
71
|
"autoprefixer": "^10.4.20",
|
|
69
72
|
"cssnano": "^7.0.6",
|
|
70
73
|
"eslint": "^8.57.1",
|
|
71
74
|
"eslint-config-prettier": "^9.1.0",
|
|
72
75
|
"eslint-plugin-prettier": "^5.2.1",
|
|
73
|
-
"eslint-plugin-storybook": "^0.
|
|
74
|
-
"eslint-plugin-vue": "^9.
|
|
75
|
-
"happy-dom": "^15.11.
|
|
76
|
-
"husky": "^9.1.
|
|
76
|
+
"eslint-plugin-storybook": "^0.11.1",
|
|
77
|
+
"eslint-plugin-vue": "^9.32.0",
|
|
78
|
+
"happy-dom": "^15.11.7",
|
|
79
|
+
"husky": "^9.1.7",
|
|
77
80
|
"lint-staged": "^15.2.10",
|
|
78
81
|
"postcss": "^8.4.49",
|
|
79
|
-
"prettier": "^3.
|
|
82
|
+
"prettier": "^3.4.1",
|
|
80
83
|
"rimraf": "^6.0.1",
|
|
81
|
-
"sass": "^1.
|
|
82
|
-
"storybook": "^8.4.
|
|
83
|
-
"stylelint": "^16.
|
|
84
|
+
"sass": "^1.81.1",
|
|
85
|
+
"storybook": "^8.4.6",
|
|
86
|
+
"stylelint": "^16.11.0",
|
|
84
87
|
"stylelint-config-sass-guidelines": "^12.1.0",
|
|
85
|
-
"typescript": "
|
|
86
|
-
"vite": "^
|
|
88
|
+
"typescript": "~5.6.3",
|
|
89
|
+
"vite": "^6.0.2",
|
|
87
90
|
"vite-plugin-dts": "^4.3.0",
|
|
88
|
-
"vitest": "^2.1.
|
|
91
|
+
"vitest": "^2.1.8",
|
|
89
92
|
"vue-eslint-parser": "^9.4.3",
|
|
90
93
|
"vue-tsc": "^2.1.10"
|
|
91
94
|
},
|