@quidgest/ui 0.20.1 → 0.21.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.
- package/CHANGELOG.md +28 -0
- package/README.md +10 -0
- package/dist/json/api.json +219 -3
- package/dist/manifest/components.json +1 -0
- package/dist/ui.css +239 -248
- package/dist/ui.esm.js +1306 -1139
- package/dist/ui.js +788 -621
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +788 -621
- package/dist/ui.scss +291 -34
- package/esm/components/QAccordion/QAccordionItem.vue.js +1 -1
- package/esm/components/QBadge/QBadge.d.ts.map +1 -1
- package/esm/components/QBadge/QBadge.vue.js +20 -24
- package/esm/components/QButton/QButton.d.ts.map +1 -1
- package/esm/components/QButton/QButton.vue.js +32 -29
- package/esm/components/QCheckbox/QCheckbox.vue.js +1 -1
- package/esm/components/QDialog/QDialog.d.ts +4 -2
- package/esm/components/QDialog/QDialog.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.vue.js +84 -74
- package/esm/components/QDialog/QDialogProvider.d.ts.map +1 -1
- package/esm/components/QDialog/QDialogProvider.vue.js +21 -12
- package/esm/components/QDialog/index.d.ts +72 -3
- package/esm/components/QDialog/index.d.ts.map +1 -1
- package/esm/components/QDialog/types.d.ts +10 -1
- package/esm/components/QDialog/types.d.ts.map +1 -1
- package/esm/components/QDismissibleLayer/QDismissibleLayer.d.ts.map +1 -1
- package/esm/components/QDismissibleLayer/QDismissibleLayer.vue.js +9 -8
- package/esm/components/QDivider/QDivider.d.ts.map +1 -1
- package/esm/components/QDivider/QDivider.vue.js +3 -3
- package/esm/components/QFileUpload/QFileUpload.vue.js +1 -1
- package/esm/components/QGauge/QGauge.vue.js +1 -1
- package/esm/components/QList/QListItem.d.ts.map +1 -1
- package/esm/components/QList/QListItem.vue.js +5 -2
- package/esm/components/QList/QListItemGroup.vue.js +1 -1
- package/esm/components/QObfuscation/QObfuscation.d.ts +1 -1
- package/esm/components/QObfuscation/QObfuscation.d.ts.map +1 -1
- package/esm/components/QObfuscation/QObfuscation.vue.js +53 -56
- package/esm/components/QObfuscation/index.d.ts +6 -6
- package/esm/components/QObfuscation/types.d.ts +1 -1
- package/esm/components/QObfuscation/types.d.ts.map +1 -1
- package/esm/components/QOverflow/QOverflow.d.ts +43 -0
- package/esm/components/QOverflow/QOverflow.d.ts.map +1 -0
- package/esm/components/QOverflow/QOverflow.vue.js +281 -0
- package/esm/components/QOverflow/QOverflow2.vue.js +5 -0
- package/esm/components/QOverflow/constants.d.ts +30 -0
- package/esm/components/QOverflow/constants.d.ts.map +1 -0
- package/esm/components/QOverflow/constants.js +12 -0
- package/esm/components/QOverflow/index.d.ts +58 -0
- package/esm/components/QOverflow/index.d.ts.map +1 -0
- package/esm/components/QOverflow/index.js +6 -0
- package/esm/components/QOverflow/types.d.ts +119 -0
- package/esm/components/QOverflow/types.d.ts.map +1 -0
- package/esm/components/QPhoneField/QPhoneField.d.ts.map +1 -1
- package/esm/components/QPhoneField/QPhoneField.vue.js +1 -1
- package/esm/components/QPropertyList/QPropertyListGroup.vue.js +1 -1
- package/esm/components/QPropertyList/QPropertyListRow.vue.js +1 -1
- package/esm/components/QPropertyList/index.d.ts.map +1 -1
- package/esm/components/QRadioGroup/QRadioButton.vue.js +1 -1
- package/esm/components/QRadioGroup/QRadioGroup.vue.js +2 -2
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +1 -1
- package/esm/components/QSidebar/QSidebar.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebar.vue.js +19 -10
- package/esm/components/QSidebar/QSidebarItem.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebarItem.vue.js +51 -49
- package/esm/components/QSidebar/context.d.ts +7 -0
- package/esm/components/QSidebar/context.d.ts.map +1 -1
- package/esm/components/QSwitch/QSwitch.vue.js +1 -1
- package/esm/components/QTabs/QTab.d.ts.map +1 -1
- package/esm/components/QTabs/QTab.vue.js +52 -50
- package/esm/components/QTabs/QTabs.d.ts.map +1 -1
- package/esm/components/QTabs/QTabs.vue.js +37 -12
- package/esm/components/QTabs/context.d.ts +7 -0
- package/esm/components/QTabs/context.d.ts.map +1 -1
- package/esm/components/QTextArea/QTextArea.vue.js +1 -1
- package/esm/components/QTextField/QTextField.d.ts.map +1 -1
- package/esm/components/QTextField/QTextField.vue.js +1 -1
- package/esm/components/QThemeProvider/QThemeProvider.vue.js +1 -1
- package/esm/components/QToast/QToast.d.ts +4 -2
- package/esm/components/QToast/QToast.d.ts.map +1 -1
- package/esm/components/QToast/QToast.vue.js +80 -67
- package/esm/components/QToast/QToaster.d.ts.map +1 -1
- package/esm/components/QToast/QToaster.vue.js +21 -16
- package/esm/components/QToast/index.d.ts +39 -3
- package/esm/components/QToast/index.d.ts.map +1 -1
- package/esm/components/QToast/types.d.ts +6 -2
- package/esm/components/QToast/types.d.ts.map +1 -1
- package/esm/components/QToggleGroup/QToggleGroupItem.vue.js +1 -1
- package/esm/components/QTooltip/QTooltip.vue.js +1 -1
- package/esm/components/index.d.ts +1 -0
- package/esm/components/index.d.ts.map +1 -1
- package/esm/components/index.js +58 -56
- package/esm/composables/index.d.ts +2 -2
- package/esm/composables/index.d.ts.map +1 -1
- package/esm/composables/useColor/index.d.ts +46 -17
- package/esm/composables/useColor/index.d.ts.map +1 -1
- package/esm/composables/useColor/index.js +57 -29
- package/esm/composables/useColor/types.d.ts +4 -1
- package/esm/composables/useColor/types.d.ts.map +1 -1
- package/esm/composables/useDialog/_internal.d.ts +2 -0
- package/esm/composables/useDialog/_internal.d.ts.map +1 -0
- package/esm/composables/useDialog/_internal.js +65 -0
- package/esm/composables/useDialog/index.d.ts +11 -3
- package/esm/composables/useDialog/index.d.ts.map +1 -1
- package/esm/composables/useDialog/index.js +38 -22
- package/esm/composables/useDialog/types.d.ts +25 -11
- package/esm/composables/useDialog/types.d.ts.map +1 -1
- package/esm/composables/useDismissibleLayerStack/index.d.ts +17 -2
- package/esm/composables/useDismissibleLayerStack/index.d.ts.map +1 -1
- package/esm/composables/useDismissibleLayerStack/index.js +28 -11
- package/esm/composables/useGroup/index.d.ts.map +1 -1
- package/esm/composables/useGroup/index.js +12 -1
- package/esm/composables/useId/index.d.ts +18 -0
- package/esm/composables/useId/index.d.ts.map +1 -0
- package/esm/composables/useId/index.js +10 -0
- package/esm/composables/useToast/_internal.d.ts +2 -0
- package/esm/composables/useToast/_internal.d.ts.map +1 -0
- package/esm/composables/useToast/_internal.js +142 -0
- package/esm/composables/useToast/index.d.ts +8 -25
- package/esm/composables/useToast/index.d.ts.map +1 -1
- package/esm/composables/useToast/index.js +29 -26
- package/esm/composables/useToast/types.d.ts +31 -17
- package/esm/composables/useToast/types.d.ts.map +1 -1
- package/esm/framework.d.ts.map +1 -1
- package/esm/framework.js +16 -12
- package/esm/index.d.ts +1 -0
- package/esm/templates/theme.js +39 -39
- package/esm/utils/color/contrast.d.ts +11 -4
- package/esm/utils/color/contrast.d.ts.map +1 -1
- package/esm/utils/color/contrast.js +16 -3
- package/esm/utils/color/index.d.ts +1 -0
- package/esm/utils/color/index.d.ts.map +1 -1
- package/esm/utils/color/merge.d.ts +9 -0
- package/esm/utils/color/merge.d.ts.map +1 -1
- package/esm/utils/color/merge.js +21 -22
- package/esm/utils/color/parse.d.ts +21 -5
- package/esm/utils/color/parse.d.ts.map +1 -1
- package/esm/utils/color/parse.js +88 -20
- package/esm/utils/color/theme-colors.d.ts +35 -0
- package/esm/utils/color/theme-colors.d.ts.map +1 -0
- package/esm/utils/color/theme-colors.js +25 -0
- package/esm/utils/index.js +50 -42
- package/package.json +3 -5
- package/esm/composables/uid.d.ts +0 -9
- package/esm/composables/uid.d.ts.map +0 -1
- package/esm/composables/uid.js +0 -8
- package/esm/composables/useToast/types.js +0 -4
- package/esm/vendors/uuid/dist/native.js +0 -3
- package/esm/vendors/uuid/dist/rng.js +0 -11
- package/esm/vendors/uuid/dist/stringify.js +0 -8
- package/esm/vendors/uuid/dist/v4.js +0 -20
package/esm/utils/index.js
CHANGED
|
@@ -1,54 +1,62 @@
|
|
|
1
1
|
import { __exportAll as e } from "../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { hslToRgb as t, hueToRgb as n, rgbToHex as r, rgbToHsl as i, rgbToVariableString as a } from "./color/conversion.js";
|
|
3
|
-
import { isValidHex as o, parseColor as s,
|
|
4
|
-
import { getComplementaryColor as
|
|
5
|
-
import { darken as
|
|
6
|
-
import { mergeColorSchemes as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
3
|
+
import { isValidHex as o, parseColor as s, tryParseColor as c, tryParseRgb as l } from "./color/parse.js";
|
|
4
|
+
import { getComplementaryColor as u, getContrastingColor as d, getRelativeLuminance as f } from "./color/contrast.js";
|
|
5
|
+
import { darken as p, lighten as m } from "./color/manipulate.js";
|
|
6
|
+
import { mergeColorSchemes as h } from "./color/merge.js";
|
|
7
|
+
import { THEME_COLOR_KEYS as g, isThemeColor as _, isUnsupportedColor as v } from "./color/theme-colors.js";
|
|
8
|
+
import { addDays as y, addMonths as b, advancePastFormatLiteral as x, clampDayByMonthYear as S, clampNumericSegments as C, completePartialDateInput as w, convertDatePatternToMask as T, formatDate as E, formatUsesSeconds as D, formatUsesTime as O, getDaysInMonth as k, getEndOfDay as A, getFirstDayOfMonth as j, getFirstDayOfWeek as M, getLastDayOfMonth as N, getStartOfDay as P, inputIncludesTimePortion as F, isBetween as I, isLeapYear as L, isSameDay as R, isTimeOnlyFormat as z, normalizeNumericToken as B, padNumber as V, parseDate as H, parseDateWithCompletion as U, parseIsoDate as W, uses12HourFormat as G } from "./date.js";
|
|
9
|
+
import { applyMask as K } from "./mask.js";
|
|
9
10
|
//#region src/utils/index.ts
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
11
|
+
var q = /* @__PURE__ */ e({
|
|
12
|
+
COLOR_SCHEME_DARKEN_AMOUNT: () => 25,
|
|
13
|
+
COLOR_SCHEME_LIGHTEN_AMOUNT: () => 75,
|
|
14
|
+
THEME_COLOR_KEYS: () => g,
|
|
15
|
+
addDays: () => y,
|
|
16
|
+
addMonths: () => b,
|
|
17
|
+
advancePastFormatLiteral: () => x,
|
|
18
|
+
applyMask: () => K,
|
|
19
|
+
clampDayByMonthYear: () => S,
|
|
20
|
+
clampNumericSegments: () => C,
|
|
21
|
+
completePartialDateInput: () => w,
|
|
22
|
+
convertDatePatternToMask: () => T,
|
|
23
|
+
darken: () => p,
|
|
24
|
+
formatDate: () => E,
|
|
25
|
+
formatUsesSeconds: () => D,
|
|
26
|
+
formatUsesTime: () => O,
|
|
27
|
+
getComplementaryColor: () => u,
|
|
28
|
+
getContrastingColor: () => d,
|
|
29
|
+
getDaysInMonth: () => k,
|
|
30
|
+
getEndOfDay: () => A,
|
|
31
|
+
getFirstDayOfMonth: () => j,
|
|
32
|
+
getFirstDayOfWeek: () => M,
|
|
33
|
+
getLastDayOfMonth: () => N,
|
|
34
|
+
getRelativeLuminance: () => f,
|
|
35
|
+
getStartOfDay: () => P,
|
|
31
36
|
hslToRgb: () => t,
|
|
32
37
|
hueToRgb: () => n,
|
|
33
|
-
inputIncludesTimePortion: () =>
|
|
34
|
-
isBetween: () =>
|
|
35
|
-
isLeapYear: () =>
|
|
36
|
-
isSameDay: () =>
|
|
37
|
-
|
|
38
|
+
inputIncludesTimePortion: () => F,
|
|
39
|
+
isBetween: () => I,
|
|
40
|
+
isLeapYear: () => L,
|
|
41
|
+
isSameDay: () => R,
|
|
42
|
+
isThemeColor: () => _,
|
|
43
|
+
isTimeOnlyFormat: () => z,
|
|
44
|
+
isUnsupportedColor: () => v,
|
|
38
45
|
isValidHex: () => o,
|
|
39
|
-
lighten: () =>
|
|
40
|
-
mergeColorSchemes: () =>
|
|
41
|
-
normalizeNumericToken: () =>
|
|
42
|
-
padNumber: () =>
|
|
46
|
+
lighten: () => m,
|
|
47
|
+
mergeColorSchemes: () => h,
|
|
48
|
+
normalizeNumericToken: () => B,
|
|
49
|
+
padNumber: () => V,
|
|
43
50
|
parseColor: () => s,
|
|
44
|
-
parseDate: () =>
|
|
45
|
-
parseDateWithCompletion: () =>
|
|
46
|
-
parseIsoDate: () =>
|
|
51
|
+
parseDate: () => H,
|
|
52
|
+
parseDateWithCompletion: () => U,
|
|
53
|
+
parseIsoDate: () => W,
|
|
47
54
|
rgbToHex: () => r,
|
|
48
55
|
rgbToHsl: () => i,
|
|
49
56
|
rgbToVariableString: () => a,
|
|
50
|
-
|
|
51
|
-
|
|
57
|
+
tryParseColor: () => c,
|
|
58
|
+
tryParseRgb: () => l,
|
|
59
|
+
uses12HourFormat: () => G
|
|
52
60
|
});
|
|
53
61
|
//#endregion
|
|
54
|
-
export {
|
|
62
|
+
export { g as THEME_COLOR_KEYS, y as addDays, b as addMonths, x as advancePastFormatLiteral, K as applyMask, S as clampDayByMonthYear, C as clampNumericSegments, w as completePartialDateInput, T as convertDatePatternToMask, p as darken, E as formatDate, D as formatUsesSeconds, O as formatUsesTime, u as getComplementaryColor, d as getContrastingColor, k as getDaysInMonth, A as getEndOfDay, j as getFirstDayOfMonth, M as getFirstDayOfWeek, N as getLastDayOfMonth, f as getRelativeLuminance, P as getStartOfDay, t as hslToRgb, n as hueToRgb, F as inputIncludesTimePortion, I as isBetween, L as isLeapYear, R as isSameDay, _ as isThemeColor, z as isTimeOnlyFormat, v as isUnsupportedColor, o as isValidHex, m as lighten, h as mergeColorSchemes, B as normalizeNumericToken, V as padNumber, s as parseColor, H as parseDate, U as parseDateWithCompletion, W as parseIsoDate, r as rgbToHex, i as rgbToHsl, a as rgbToVariableString, c as tryParseColor, l as tryParseRgb, G as uses12HourFormat, q as utils_exports };
|
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.
|
|
4
|
+
"version": "0.21.1",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"author": "Quidgest",
|
|
@@ -41,8 +41,7 @@
|
|
|
41
41
|
"./components": "./esm/components/index.js",
|
|
42
42
|
"./components/*": "./esm/components/*/index.js",
|
|
43
43
|
"./utils": "./esm/utils/index.js",
|
|
44
|
-
"./utils/*": "./esm/utils/*/index.js"
|
|
45
|
-
"./*": "./*"
|
|
44
|
+
"./utils/*": "./esm/utils/*/index.js"
|
|
46
45
|
},
|
|
47
46
|
"devDependencies": {
|
|
48
47
|
"@fortawesome/fontawesome-free": "^6.7.2",
|
|
@@ -68,8 +67,7 @@
|
|
|
68
67
|
},
|
|
69
68
|
"dependencies": {
|
|
70
69
|
"country-flag-icons": "1.6.19",
|
|
71
|
-
"libphonenumber-js": "1.13.7"
|
|
72
|
-
"uuid": "^13.0.0"
|
|
70
|
+
"libphonenumber-js": "1.13.7"
|
|
73
71
|
},
|
|
74
72
|
"scripts": {
|
|
75
73
|
"clean:build": "rimraf dist esm coverage",
|
package/esm/composables/uid.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { MaybeRefOrGetter, Ref } from 'vue';
|
|
2
|
-
/**
|
|
3
|
-
* Custom hook to generate unique IDs.
|
|
4
|
-
*
|
|
5
|
-
* @param [componentId] - Optional component-specific ID.
|
|
6
|
-
* @returns A unique ID as a string or a ref containing a string
|
|
7
|
-
*/
|
|
8
|
-
export declare function useId(componentId?: MaybeRefOrGetter<string | undefined>): Ref<string>;
|
|
9
|
-
//# sourceMappingURL=uid.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"uid.d.ts","sourceRoot":"","sources":["../../src/composables/uid.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAMhD;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,WAAW,CAAC,EAAE,gBAAgB,CAAC,MAAM,GAAG,SAAS,CAAC,GAAG,GAAG,CAAC,MAAM,CAAC,CAGrF"}
|
package/esm/composables/uid.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/uuid@13.0.0/node_modules/uuid/dist/rng.js
|
|
2
|
-
var e, t = /* @__PURE__ */ new Uint8Array(16);
|
|
3
|
-
function n() {
|
|
4
|
-
if (!e) {
|
|
5
|
-
if (typeof crypto > "u" || !crypto.getRandomValues) throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
6
|
-
e = crypto.getRandomValues.bind(crypto);
|
|
7
|
-
}
|
|
8
|
-
return e(t);
|
|
9
|
-
}
|
|
10
|
-
//#endregion
|
|
11
|
-
export { n as default };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/uuid@13.0.0/node_modules/uuid/dist/stringify.js
|
|
2
|
-
var e = [];
|
|
3
|
-
for (let t = 0; t < 256; ++t) e.push((t + 256).toString(16).slice(1));
|
|
4
|
-
function t(t, n = 0) {
|
|
5
|
-
return (e[t[n + 0]] + e[t[n + 1]] + e[t[n + 2]] + e[t[n + 3]] + "-" + e[t[n + 4]] + e[t[n + 5]] + "-" + e[t[n + 6]] + e[t[n + 7]] + "-" + e[t[n + 8]] + e[t[n + 9]] + "-" + e[t[n + 10]] + e[t[n + 11]] + e[t[n + 12]] + e[t[n + 13]] + e[t[n + 14]] + e[t[n + 15]]).toLowerCase();
|
|
6
|
-
}
|
|
7
|
-
//#endregion
|
|
8
|
-
export { t as unsafeStringify };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import e from "./native.js";
|
|
2
|
-
import t from "./rng.js";
|
|
3
|
-
import { unsafeStringify as n } from "./stringify.js";
|
|
4
|
-
//#region ../../node_modules/.pnpm/uuid@13.0.0/node_modules/uuid/dist/v4.js
|
|
5
|
-
function r(e, r, i) {
|
|
6
|
-
e ||= {};
|
|
7
|
-
let a = e.random ?? e.rng?.() ?? t();
|
|
8
|
-
if (a.length < 16) throw Error("Random bytes length must be >= 16");
|
|
9
|
-
if (a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, r) {
|
|
10
|
-
if (i ||= 0, i < 0 || i + 16 > r.length) throw RangeError(`UUID byte range ${i}:${i + 15} is out of buffer bounds`);
|
|
11
|
-
for (let e = 0; e < 16; ++e) r[i + e] = a[e];
|
|
12
|
-
return r;
|
|
13
|
-
}
|
|
14
|
-
return n(a);
|
|
15
|
-
}
|
|
16
|
-
function i(t, n, i) {
|
|
17
|
-
return e.randomUUID && !n && !t ? e.randomUUID() : r(t, n, i);
|
|
18
|
-
}
|
|
19
|
-
//#endregion
|
|
20
|
-
export { i as default };
|