@quidgest/ui 0.12.2 → 0.13.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 (36) hide show
  1. package/dist/manifest/components.json +2 -0
  2. package/dist/ui.css +161 -0
  3. package/dist/ui.esm.js +1017 -808
  4. package/dist/ui.js +6 -6
  5. package/dist/ui.min.css +1 -1
  6. package/dist/ui.min.js +120 -102
  7. package/dist/ui.scss +117 -1
  8. package/esm/components/QBadge/QBadge.d.ts +72 -0
  9. package/esm/components/QBadge/QBadge.d.ts.map +1 -0
  10. package/esm/components/QBadge/QBadge.vue.js +87 -0
  11. package/esm/components/QBadge/QBadge.vue2.js +4 -0
  12. package/esm/components/QBadge/index.d.ts +119 -0
  13. package/esm/components/QBadge/index.d.ts.map +1 -0
  14. package/esm/components/QBadge/index.js +6 -0
  15. package/esm/components/QButton/index.d.ts +3 -0
  16. package/esm/components/QButton/index.d.ts.map +1 -1
  17. package/esm/components/QCombobox/QCombobox.d.ts +10 -10
  18. package/esm/components/QCombobox/index.d.ts +30 -30
  19. package/esm/components/QDialog/QDialog.d.ts +180 -0
  20. package/esm/components/QDialog/QDialog.d.ts.map +1 -0
  21. package/esm/components/QDialog/QDialog.vue.js +146 -0
  22. package/esm/components/QDialog/QDialog.vue2.js +4 -0
  23. package/esm/components/QDialog/index.d.ts +237 -0
  24. package/esm/components/QDialog/index.d.ts.map +1 -0
  25. package/esm/components/QDialog/index.js +6 -0
  26. package/esm/components/QList/index.d.ts +16 -16
  27. package/esm/components/QTextField/QTextField.d.ts +5 -5
  28. package/esm/components/QTextField/index.d.ts +11 -11
  29. package/esm/components/index.d.ts +2 -0
  30. package/esm/components/index.d.ts.map +1 -1
  31. package/esm/components/index.js +43 -39
  32. package/esm/index.d.ts +2 -0
  33. package/esm/utils/color.d.ts +7 -1
  34. package/esm/utils/color.d.ts.map +1 -1
  35. package/esm/utils/color.js +54 -9
  36. package/package.json +1 -1
@@ -0,0 +1,237 @@
1
+ import { DialogButton } from './QDialog';
2
+
3
+ declare const QDialog: {
4
+ new (...args: any[]): import('vue').CreateComponentPublicInstance<Readonly<import('vue').ExtractPropTypes<{
5
+ modelValue: import('vue').PropType<boolean>;
6
+ class: {
7
+ type: import('vue').PropType<string | unknown[]>;
8
+ default: undefined;
9
+ };
10
+ html: {
11
+ type: import('vue').PropType<boolean>;
12
+ default: boolean;
13
+ };
14
+ title: {
15
+ type: import('vue').PropType<string>;
16
+ default: string;
17
+ };
18
+ text: {
19
+ type: import('vue').PropType<string>;
20
+ default: string;
21
+ };
22
+ icon: {
23
+ type: import('vue').PropType<import('..').Icon>;
24
+ default: () => import('..').Icon;
25
+ };
26
+ id: {
27
+ type: import('vue').PropType<string>;
28
+ default: undefined;
29
+ };
30
+ attach: {
31
+ type: import('vue').PropType<string>;
32
+ default: string;
33
+ };
34
+ inline: {
35
+ type: import('vue').PropType<boolean>;
36
+ };
37
+ backdropBlur: {
38
+ type: import('vue').PropType<boolean>;
39
+ default: boolean;
40
+ };
41
+ buttons: {
42
+ type: import('vue').PropType<DialogButton[]>;
43
+ default: () => DialogButton[];
44
+ };
45
+ dismissible: {
46
+ type: import('vue').PropType<boolean>;
47
+ default: boolean;
48
+ };
49
+ }>>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<import('vue').ExtractPropTypes<{
50
+ modelValue: import('vue').PropType<boolean>;
51
+ class: {
52
+ type: import('vue').PropType<string | unknown[]>;
53
+ default: undefined;
54
+ };
55
+ html: {
56
+ type: import('vue').PropType<boolean>;
57
+ default: boolean;
58
+ };
59
+ title: {
60
+ type: import('vue').PropType<string>;
61
+ default: string;
62
+ };
63
+ text: {
64
+ type: import('vue').PropType<string>;
65
+ default: string;
66
+ };
67
+ icon: {
68
+ type: import('vue').PropType<import('..').Icon>;
69
+ default: () => import('..').Icon;
70
+ };
71
+ id: {
72
+ type: import('vue').PropType<string>;
73
+ default: undefined;
74
+ };
75
+ attach: {
76
+ type: import('vue').PropType<string>;
77
+ default: string;
78
+ };
79
+ inline: {
80
+ type: import('vue').PropType<boolean>;
81
+ };
82
+ backdropBlur: {
83
+ type: import('vue').PropType<boolean>;
84
+ default: boolean;
85
+ };
86
+ buttons: {
87
+ type: import('vue').PropType<DialogButton[]>;
88
+ default: () => DialogButton[];
89
+ };
90
+ dismissible: {
91
+ type: import('vue').PropType<boolean>;
92
+ default: boolean;
93
+ };
94
+ }>>, {
95
+ class: string | unknown[];
96
+ html: boolean;
97
+ title: string;
98
+ text: string;
99
+ icon: import('..').Icon;
100
+ id: string;
101
+ attach: string;
102
+ backdropBlur: boolean;
103
+ buttons: DialogButton[];
104
+ dismissible: boolean;
105
+ }, true, {}, {}, {
106
+ P: {};
107
+ B: {};
108
+ D: {};
109
+ C: {};
110
+ M: {};
111
+ Defaults: {};
112
+ }, Readonly<import('vue').ExtractPropTypes<{
113
+ modelValue: import('vue').PropType<boolean>;
114
+ class: {
115
+ type: import('vue').PropType<string | unknown[]>;
116
+ default: undefined;
117
+ };
118
+ html: {
119
+ type: import('vue').PropType<boolean>;
120
+ default: boolean;
121
+ };
122
+ title: {
123
+ type: import('vue').PropType<string>;
124
+ default: string;
125
+ };
126
+ text: {
127
+ type: import('vue').PropType<string>;
128
+ default: string;
129
+ };
130
+ icon: {
131
+ type: import('vue').PropType<import('..').Icon>;
132
+ default: () => import('..').Icon;
133
+ };
134
+ id: {
135
+ type: import('vue').PropType<string>;
136
+ default: undefined;
137
+ };
138
+ attach: {
139
+ type: import('vue').PropType<string>;
140
+ default: string;
141
+ };
142
+ inline: {
143
+ type: import('vue').PropType<boolean>;
144
+ };
145
+ backdropBlur: {
146
+ type: import('vue').PropType<boolean>;
147
+ default: boolean;
148
+ };
149
+ buttons: {
150
+ type: import('vue').PropType<DialogButton[]>;
151
+ default: () => DialogButton[];
152
+ };
153
+ dismissible: {
154
+ type: import('vue').PropType<boolean>;
155
+ default: boolean;
156
+ };
157
+ }>>, {}, {}, {}, {}, {
158
+ class: string | unknown[];
159
+ html: boolean;
160
+ title: string;
161
+ text: string;
162
+ icon: import('..').Icon;
163
+ id: string;
164
+ attach: string;
165
+ backdropBlur: boolean;
166
+ buttons: DialogButton[];
167
+ dismissible: boolean;
168
+ }>;
169
+ __isFragment?: undefined;
170
+ __isTeleport?: undefined;
171
+ __isSuspense?: undefined;
172
+ } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
173
+ modelValue: import('vue').PropType<boolean>;
174
+ class: {
175
+ type: import('vue').PropType<string | unknown[]>;
176
+ default: undefined;
177
+ };
178
+ html: {
179
+ type: import('vue').PropType<boolean>;
180
+ default: boolean;
181
+ };
182
+ title: {
183
+ type: import('vue').PropType<string>;
184
+ default: string;
185
+ };
186
+ text: {
187
+ type: import('vue').PropType<string>;
188
+ default: string;
189
+ };
190
+ icon: {
191
+ type: import('vue').PropType<import('..').Icon>;
192
+ default: () => import('..').Icon;
193
+ };
194
+ id: {
195
+ type: import('vue').PropType<string>;
196
+ default: undefined;
197
+ };
198
+ attach: {
199
+ type: import('vue').PropType<string>;
200
+ default: string;
201
+ };
202
+ inline: {
203
+ type: import('vue').PropType<boolean>;
204
+ };
205
+ backdropBlur: {
206
+ type: import('vue').PropType<boolean>;
207
+ default: boolean;
208
+ };
209
+ buttons: {
210
+ type: import('vue').PropType<DialogButton[]>;
211
+ default: () => DialogButton[];
212
+ };
213
+ dismissible: {
214
+ type: import('vue').PropType<boolean>;
215
+ default: boolean;
216
+ };
217
+ }>>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
218
+ class: string | unknown[];
219
+ html: boolean;
220
+ title: string;
221
+ text: string;
222
+ icon: import('..').Icon;
223
+ id: string;
224
+ attach: string;
225
+ backdropBlur: boolean;
226
+ buttons: DialogButton[];
227
+ dismissible: boolean;
228
+ }, {}, string, {}> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
229
+ $slots: {
230
+ "body.content"?(_: {}): any;
231
+ "body.icon"?(_: {}): any;
232
+ "body.append"?(_: {}): any;
233
+ };
234
+ });
235
+ export { QDialog };
236
+ export type { DialogButton };
237
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QDialog/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAKjD,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA+C,CAAA;AAG5D,OAAO,EAAE,OAAO,EAAE,CAAA;AAGlB,YAAY,EAAE,YAAY,EAAE,CAAA"}
@@ -0,0 +1,6 @@
1
+ import o from "./QDialog.vue.js";
2
+ import { setupPropsProxy as r } from "../../utils/setupPropsProxy.js";
3
+ const t = r(o);
4
+ export {
5
+ t as QDialog
6
+ };
@@ -214,16 +214,16 @@ declare const QListItem: {
214
214
  type: import('vue').PropType<import('../../types/primitive').Primitive>;
215
215
  required: true;
216
216
  };
217
+ icons: {
218
+ type: import('vue').PropType<Record<string, import('..').Icon>>;
219
+ default: () => Record<string, import('..').Icon>;
220
+ };
217
221
  selected: {
218
222
  type: import('vue').PropType<boolean>;
219
223
  };
220
224
  highlighted: {
221
225
  type: import('vue').PropType<boolean>;
222
226
  };
223
- icons: {
224
- type: import('vue').PropType<Record<string, import('..').Icon>>;
225
- default: () => Record<string, import('..').Icon>;
226
- };
227
227
  description: {
228
228
  type: import('vue').PropType<string>;
229
229
  default: undefined;
@@ -248,16 +248,16 @@ declare const QListItem: {
248
248
  type: import('vue').PropType<import('../../types/primitive').Primitive>;
249
249
  required: true;
250
250
  };
251
+ icons: {
252
+ type: import('vue').PropType<Record<string, import('..').Icon>>;
253
+ default: () => Record<string, import('..').Icon>;
254
+ };
251
255
  selected: {
252
256
  type: import('vue').PropType<boolean>;
253
257
  };
254
258
  highlighted: {
255
259
  type: import('vue').PropType<boolean>;
256
260
  };
257
- icons: {
258
- type: import('vue').PropType<Record<string, import('..').Icon>>;
259
- default: () => Record<string, import('..').Icon>;
260
- };
261
261
  description: {
262
262
  type: import('vue').PropType<string>;
263
263
  default: undefined;
@@ -291,16 +291,16 @@ declare const QListItem: {
291
291
  type: import('vue').PropType<import('../../types/primitive').Primitive>;
292
292
  required: true;
293
293
  };
294
+ icons: {
295
+ type: import('vue').PropType<Record<string, import('..').Icon>>;
296
+ default: () => Record<string, import('..').Icon>;
297
+ };
294
298
  selected: {
295
299
  type: import('vue').PropType<boolean>;
296
300
  };
297
301
  highlighted: {
298
302
  type: import('vue').PropType<boolean>;
299
303
  };
300
- icons: {
301
- type: import('vue').PropType<Record<string, import('..').Icon>>;
302
- default: () => Record<string, import('..').Icon>;
303
- };
304
304
  description: {
305
305
  type: import('vue').PropType<string>;
306
306
  default: undefined;
@@ -331,16 +331,16 @@ declare const QListItem: {
331
331
  type: import('vue').PropType<import('../../types/primitive').Primitive>;
332
332
  required: true;
333
333
  };
334
+ icons: {
335
+ type: import('vue').PropType<Record<string, import('..').Icon>>;
336
+ default: () => Record<string, import('..').Icon>;
337
+ };
334
338
  selected: {
335
339
  type: import('vue').PropType<boolean>;
336
340
  };
337
341
  highlighted: {
338
342
  type: import('vue').PropType<boolean>;
339
343
  };
340
- icons: {
341
- type: import('vue').PropType<Record<string, import('..').Icon>>;
342
- default: () => Record<string, import('..').Icon>;
343
- };
344
344
  description: {
345
345
  type: import('vue').PropType<string>;
346
346
  default: undefined;
@@ -72,11 +72,11 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
72
72
  required: {
73
73
  type: import('vue').PropType<boolean>;
74
74
  };
75
- id: {
75
+ role: {
76
76
  type: import('vue').PropType<string>;
77
77
  default: undefined;
78
78
  };
79
- role: {
79
+ id: {
80
80
  type: import('vue').PropType<string>;
81
81
  default: undefined;
82
82
  };
@@ -118,11 +118,11 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
118
118
  required: {
119
119
  type: import('vue').PropType<boolean>;
120
120
  };
121
- id: {
121
+ role: {
122
122
  type: import('vue').PropType<string>;
123
123
  default: undefined;
124
124
  };
125
- role: {
125
+ id: {
126
126
  type: import('vue').PropType<string>;
127
127
  default: undefined;
128
128
  };
@@ -142,8 +142,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
142
142
  class: string | unknown[];
143
143
  type: string;
144
144
  label: string;
145
- id: string;
146
145
  role: string;
146
+ id: string;
147
147
  maxLength: number;
148
148
  placeholder: string;
149
149
  }, {}>, {
@@ -23,11 +23,11 @@ declare const QTextField: {
23
23
  required: {
24
24
  type: import('vue').PropType<boolean>;
25
25
  };
26
- id: {
26
+ role: {
27
27
  type: import('vue').PropType<string>;
28
28
  default: undefined;
29
29
  };
30
- role: {
30
+ id: {
31
31
  type: import('vue').PropType<string>;
32
32
  default: undefined;
33
33
  };
@@ -69,11 +69,11 @@ declare const QTextField: {
69
69
  required: {
70
70
  type: import('vue').PropType<boolean>;
71
71
  };
72
- id: {
72
+ role: {
73
73
  type: import('vue').PropType<string>;
74
74
  default: undefined;
75
75
  };
76
- role: {
76
+ id: {
77
77
  type: import('vue').PropType<string>;
78
78
  default: undefined;
79
79
  };
@@ -93,8 +93,8 @@ declare const QTextField: {
93
93
  class: string | unknown[];
94
94
  type: string;
95
95
  label: string;
96
- id: string;
97
96
  role: string;
97
+ id: string;
98
98
  maxLength: number;
99
99
  placeholder: string;
100
100
  }, true, {}, {}, {
@@ -128,11 +128,11 @@ declare const QTextField: {
128
128
  required: {
129
129
  type: import('vue').PropType<boolean>;
130
130
  };
131
- id: {
131
+ role: {
132
132
  type: import('vue').PropType<string>;
133
133
  default: undefined;
134
134
  };
135
- role: {
135
+ id: {
136
136
  type: import('vue').PropType<string>;
137
137
  default: undefined;
138
138
  };
@@ -155,8 +155,8 @@ declare const QTextField: {
155
155
  class: string | unknown[];
156
156
  type: string;
157
157
  label: string;
158
- id: string;
159
158
  role: string;
159
+ id: string;
160
160
  maxLength: number;
161
161
  placeholder: string;
162
162
  }>;
@@ -187,11 +187,11 @@ declare const QTextField: {
187
187
  required: {
188
188
  type: import('vue').PropType<boolean>;
189
189
  };
190
- id: {
190
+ role: {
191
191
  type: import('vue').PropType<string>;
192
192
  default: undefined;
193
193
  };
194
- role: {
194
+ id: {
195
195
  type: import('vue').PropType<string>;
196
196
  default: undefined;
197
197
  };
@@ -214,8 +214,8 @@ declare const QTextField: {
214
214
  class: string | unknown[];
215
215
  type: string;
216
216
  label: string;
217
- id: string;
218
217
  role: string;
218
+ id: string;
219
219
  maxLength: number;
220
220
  placeholder: string;
221
221
  }, {}, string, {}> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
@@ -1,7 +1,9 @@
1
+ export * from './QBadge';
1
2
  export * from './QButton';
2
3
  export * from './QButtonGroup';
3
4
  export * from './QButtonToggle';
4
5
  export * from './QCombobox';
6
+ export * from './QDialog';
5
7
  export * from './QField';
6
8
  export * from './QIcon';
7
9
  export * from './QInputGroup';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,aAAa,CAAA;AAC3B,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,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,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,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,WAAW,CAAA;AACzB,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,YAAY,CAAA"}
@@ -1,41 +1,45 @@
1
- import { QButton as e } from "./QButton/index.js";
2
- import { QButtonGroup as p } from "./QButtonGroup/index.js";
3
- import { QButtonToggle as Q } from "./QButtonToggle/index.js";
4
- import { QCombobox as f } from "./QCombobox/index.js";
5
- import { QField as i } from "./QField/index.js";
6
- import { QIcon as l, QIconFont as u, QIconImg as L, QIconSvg as d } from "./QIcon/index.js";
7
- import { QInputGroup as a } from "./QInputGroup/index.js";
8
- import { QLineLoader as v } from "./QLineLoader/index.js";
9
- import { QList as T, QListItem as s, QListItemGroup as B } from "./QList/index.js";
10
- import { QOverlay as G } from "./QOverlay/index.js";
11
- import { QPopover as P } from "./QPopover/index.js";
12
- import { QSelect as k } from "./QSelect/index.js";
13
- import { QSkeletonLoader as C } from "./QSkeletonLoader/index.js";
14
- import { QSpinnerLoader as j } from "./QSpinnerLoader/index.js";
15
- import { QTextField as w } from "./QTextField/index.js";
16
- import { QThemeProvider as A } from "./QThemeProvider/index.js";
17
- import { QTooltip as E } from "./QTooltip/index.js";
1
+ import { QBadge as e } from "./QBadge/index.js";
2
+ import { QButton as p } from "./QButton/index.js";
3
+ import { QButtonGroup as Q } from "./QButtonGroup/index.js";
4
+ import { QButtonToggle as f } from "./QButtonToggle/index.js";
5
+ import { QCombobox as i } from "./QCombobox/index.js";
6
+ import { QDialog as I } from "./QDialog/index.js";
7
+ import { QField as u } from "./QField/index.js";
8
+ import { QIcon as a, QIconFont as g, QIconImg as c, QIconSvg as v } from "./QIcon/index.js";
9
+ import { QInputGroup as S } from "./QInputGroup/index.js";
10
+ import { QLineLoader as s } from "./QLineLoader/index.js";
11
+ import { QList as G, QListItem as b, QListItemGroup as P } from "./QList/index.js";
12
+ import { QOverlay as k } from "./QOverlay/index.js";
13
+ import { QPopover as C } from "./QPopover/index.js";
14
+ import { QSelect as O } from "./QSelect/index.js";
15
+ import { QSkeletonLoader as q } from "./QSkeletonLoader/index.js";
16
+ import { QSpinnerLoader as z } from "./QSpinnerLoader/index.js";
17
+ import { QTextField as E } from "./QTextField/index.js";
18
+ import { QThemeProvider as J } from "./QThemeProvider/index.js";
19
+ import { QTooltip as M } from "./QTooltip/index.js";
18
20
  export {
19
- e as QButton,
20
- p as QButtonGroup,
21
- Q as QButtonToggle,
22
- f as QCombobox,
23
- i as QField,
24
- l as QIcon,
25
- u as QIconFont,
26
- L as QIconImg,
27
- d as QIconSvg,
28
- a as QInputGroup,
29
- v as QLineLoader,
30
- T as QList,
31
- s as QListItem,
32
- B as QListItemGroup,
33
- G as QOverlay,
34
- P as QPopover,
35
- k as QSelect,
36
- C as QSkeletonLoader,
37
- j as QSpinnerLoader,
38
- w as QTextField,
39
- A as QThemeProvider,
40
- E as QTooltip
21
+ e as QBadge,
22
+ p as QButton,
23
+ Q as QButtonGroup,
24
+ f as QButtonToggle,
25
+ i as QCombobox,
26
+ I as QDialog,
27
+ u as QField,
28
+ a as QIcon,
29
+ g as QIconFont,
30
+ c as QIconImg,
31
+ v as QIconSvg,
32
+ S as QInputGroup,
33
+ s as QLineLoader,
34
+ G as QList,
35
+ b as QListItem,
36
+ P as QListItemGroup,
37
+ k as QOverlay,
38
+ C as QPopover,
39
+ O as QSelect,
40
+ q as QSkeletonLoader,
41
+ z as QSpinnerLoader,
42
+ E as QTextField,
43
+ J as QThemeProvider,
44
+ M as QTooltip
41
45
  };
package/esm/index.d.ts CHANGED
@@ -7,10 +7,12 @@ export * from './composables';
7
7
  //# sourceMappingURL=index.d.ts.map
8
8
  declare module '@vue/runtime-core' {
9
9
  export interface GlobalComponents {
10
+ QBadge: typeof import('@quidgest/ui/components')['QBadge']
10
11
  QButton: typeof import('@quidgest/ui/components')['QButton']
11
12
  QButtonGroup: typeof import('@quidgest/ui/components')['QButtonGroup']
12
13
  QButtonToggle: typeof import('@quidgest/ui/components')['QButtonToggle']
13
14
  QCombobox: typeof import('@quidgest/ui/components')['QCombobox']
15
+ QDialog: typeof import('@quidgest/ui/components')['QDialog']
14
16
  QField: typeof import('@quidgest/ui/components')['QField']
15
17
  QIcon: typeof import('@quidgest/ui/components')['QIcon']
16
18
  QIconFont: typeof import('@quidgest/ui/components')['QIconFont']
@@ -51,7 +51,13 @@ export type HSL = {
51
51
  * @param hexColorCode - The color code to validate.
52
52
  * @returns True if the color code is valid, false otherwise.
53
53
  */
54
- export declare function isHexColorCodeValid(hexColorCode: string): boolean;
54
+ export declare function isValidHex(hexColorCode: string): boolean;
55
+ /**
56
+ * Tries to parse a string in the format 'rgb(r, g, b)' to an RGB object.
57
+ * @param tr The input string to parse, expected in the format 'rgb(r, g, b)'.
58
+ * @returns An object containing parsed RGB values if the input string is valid, otherwise undefined.
59
+ */
60
+ export declare function tryParseRgb(str: string): RGB | undefined;
55
61
  /**
56
62
  * Parses a color from a hex string.
57
63
  * @param color A hex string representing the color, e.g., "#aabbcc".
@@ -1 +1 @@
1
- {"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../../src/utils/color.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG;IAEzB,OAAO,EAAE,MAAM,CAAA;IACf,YAAY,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,MAAM,CAAA;IAEjB,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;IAEnB,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;IAGnB,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;IAEd,OAAO,EAAE,MAAM,CAAA;IACf,YAAY,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,MAAM,CAAA;IAEjB,OAAO,EAAE,MAAM,CAAA;IACf,YAAY,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,MAAM,CAAA;IAEjB,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,MAAM,CAAA;IAGhB,UAAU,EAAE,MAAM,CAAA;IAClB,YAAY,EAAE,MAAM,CAAA;IAEpB,SAAS,EAAE,MAAM,CAAA;IAGjB,OAAO,EAAE,MAAM,CAAA;IACf,YAAY,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;CACnB,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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AIG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,GAAG,CAkB7C;AAED;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,GAAG,GAAG,CAYrD;AAED;;;;;GAKG;AACH,wBAAgB,MAAM,CAAC,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,GAAG,GAAG,CAYpD;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM,CAM3C;AAED;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,CAqCtC;AAED;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,CAuBtC;AAED;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAOhE;AAED,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,MAAM,mBAIpD;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAU3D"}
@@ -1,14 +1,59 @@
1
- function i(t) {
1
+ function o(t) {
2
2
  return /^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/.test(t);
3
3
  }
4
- function a(t) {
5
- if (!i(t))
6
- throw new Error("Invalid color format");
7
- t.length === 4 && (t = "#" + t[1] + t[1] + t[2] + t[2] + t[3] + t[3]);
8
- const e = parseInt(t.slice(1, 3), 16), n = parseInt(t.slice(3, 5), 16), s = parseInt(t.slice(5, 7), 16);
9
- return { r: e, g: n, b: s };
4
+ function u(t) {
5
+ const n = t.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);
6
+ if (n) {
7
+ const s = parseInt(n[1], 10), e = parseInt(n[2], 10), r = parseInt(n[3], 10);
8
+ return { r: s, g: e, b: r };
9
+ }
10
+ }
11
+ function d(t) {
12
+ if (o(t)) {
13
+ t.length === 4 && (t = "#" + t[1] + t[1] + t[2] + t[2] + t[3] + t[3]);
14
+ const n = parseInt(t.slice(1, 3), 16), s = parseInt(t.slice(3, 5), 16), e = parseInt(t.slice(5, 7), 16);
15
+ return { r: n, g: s, b: e };
16
+ } else {
17
+ const n = u(t);
18
+ if (n)
19
+ return n;
20
+ }
21
+ throw new Error("Invalid color format");
22
+ }
23
+ function b(t) {
24
+ const n = t.r / 255, s = t.g / 255, e = t.b / 255, r = Math.max(n, s, e), i = Math.min(n, s, e);
25
+ let a = 0, f;
26
+ const h = (r + i) / 2;
27
+ if (r === i)
28
+ a = f = 0;
29
+ else {
30
+ const c = r - i;
31
+ switch (f = h > 0.5 ? c / (2 - r - i) : c / (r + i), r) {
32
+ case n:
33
+ a = (s - e) / c + (s < e ? 6 : 0);
34
+ break;
35
+ case s:
36
+ a = (e - n) / c + 2;
37
+ break;
38
+ case e:
39
+ a = (n - s) / c + 4;
40
+ break;
41
+ }
42
+ a /= 6;
43
+ }
44
+ return {
45
+ h: Math.round(a * 360),
46
+ s: Math.round(f * 100),
47
+ l: Math.round(h * 100)
48
+ };
49
+ }
50
+ function g(t) {
51
+ return t > 50 ? "#000" : "#fff";
10
52
  }
11
53
  export {
12
- i as isHexColorCodeValid,
13
- a as parseColor
54
+ g as getContrastingColor,
55
+ o as isValidHex,
56
+ d as parseColor,
57
+ b as rgbToHsl,
58
+ u as tryParseRgb
14
59
  };