@quidgest/ui 0.3.0 → 0.3.2
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/dist/ui.esm.js +417 -412
- package/dist/ui.esm.js.map +1 -1
- package/dist/ui.js +3 -3
- package/dist/ui.js.map +1 -1
- package/dist/ui.min.js +29 -24
- package/dist/ui.min.js.map +1 -1
- package/lib/composables/theme.d.ts.map +1 -1
- package/lib/styles/ui.scss +1 -1
- package/lib/utils/color.d.ts +22 -30
- package/lib/utils/color.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/composables/theme.ts"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/composables/theme.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAgD,MAAM,eAAe,CAAA;AAEzF,OAAO,EAAE,GAAG,EAAE,GAAG,EAAsB,MAAM,KAAK,CAAA;AAElD,eAAO,MAAM,YAAY,YAAY,CAAA;AAErC,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,MAAM,CAAA;AAExC,MAAM,MAAM,SAAS,GAAG;IACvB,YAAY,EAAE,MAAM,CAAA;IACpB,MAAM,EAAE,KAAK,CAAC;QACb,IAAI,EAAE,MAAM,CAAA;QACZ,IAAI,EAAE,SAAS,CAAA;QACf,MAAM,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAA;KAC7B,CAAC,CAAA;CACF,CAAA;AAED,MAAM,MAAM,eAAe,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,SAAS,CAAA;IACf,MAAM,EAAE,WAAW,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAChC,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,EAAE,eAAe,EAAE,CAAA;CACzB,CAAA;AAED,wBAAgB,QAAQ,IAAI,GAAG,CAAC,kBAAkB,CAAC,CAMlD;AAED,wBAAgB,aAAa,CAAC,GAAG,EAAE,GAAG,EAAE,MAAM,CAAC,EAAE,SAAS,QAgFzD;AAED,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,OAAO,CAAC,WAAW,CAAC,QA+B7D;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,UAOvC"}
|
package/lib/styles/ui.scss
CHANGED
package/lib/utils/color.d.ts
CHANGED
|
@@ -32,51 +32,43 @@ export type ColorScheme = {
|
|
|
32
32
|
/**
|
|
33
33
|
* Represents a color in RGB space.
|
|
34
34
|
*/
|
|
35
|
-
export
|
|
36
|
-
/**
|
|
37
|
-
* Red component of the color, in the range [0, 255].
|
|
38
|
-
*/
|
|
35
|
+
export type RGB = {
|
|
39
36
|
r: number;
|
|
40
|
-
/**
|
|
41
|
-
* Green component of the color, in the range [0, 255].
|
|
42
|
-
*/
|
|
43
37
|
g: number;
|
|
44
|
-
/**
|
|
45
|
-
* Blue component of the color, in the range [0, 255].
|
|
46
|
-
*/
|
|
47
38
|
b: number;
|
|
48
|
-
|
|
49
|
-
* Constructs a new color with the specified red, green, and blue components.
|
|
50
|
-
* @param r Red component of the color, in the range [0, 255].
|
|
51
|
-
* @param g Green component of the color, in the range [0, 255].
|
|
52
|
-
* @param b Blue component of the color, in the range [0, 255].
|
|
53
|
-
*/
|
|
54
|
-
constructor(r: number, g: number, b: number);
|
|
55
|
-
}
|
|
39
|
+
};
|
|
56
40
|
/**
|
|
57
|
-
*
|
|
58
|
-
* @param color A hex string representing the color, e.g., "#aabbcc".
|
|
59
|
-
* @returns A `Color` object representing the parsed color.
|
|
41
|
+
* Represents a color in HSL space.
|
|
60
42
|
*/
|
|
61
|
-
export
|
|
43
|
+
export type HSL = {
|
|
44
|
+
h: number;
|
|
45
|
+
s: number;
|
|
46
|
+
l: number;
|
|
47
|
+
};
|
|
62
48
|
/**
|
|
63
|
-
*
|
|
64
|
-
* @param color
|
|
65
|
-
* @returns A
|
|
49
|
+
* Parses a color from a hex string.
|
|
50
|
+
* @param color A hex string representing the color, e.g., "#aabbcc".
|
|
51
|
+
* @returns A `RGB` object representing the parsed color.
|
|
66
52
|
*/
|
|
67
|
-
export declare function
|
|
53
|
+
export declare function parseColor(color: string): RGB;
|
|
68
54
|
/**
|
|
69
55
|
* Lightens a color by a specified amount.
|
|
70
|
-
* @param
|
|
56
|
+
* @param rgb The color to lighten.
|
|
71
57
|
* @param amount The amount to lighten the color by, in the range [0, 100].
|
|
72
58
|
* @returns The lightened color.
|
|
73
59
|
*/
|
|
74
|
-
export declare function lighten(
|
|
60
|
+
export declare function lighten(rgb: RGB, amount: number): RGB;
|
|
75
61
|
/**
|
|
76
62
|
* Darkens a color by a specified amount.
|
|
77
|
-
* @param
|
|
63
|
+
* @param rgb The color to darken.
|
|
78
64
|
* @param amount The amount to darken the color by, in the range [0, 100].
|
|
79
65
|
* @returns The darkened color.
|
|
80
66
|
*/
|
|
81
|
-
export declare function darken(
|
|
67
|
+
export declare function darken(rgb: RGB, amount: number): RGB;
|
|
68
|
+
/**
|
|
69
|
+
* Converts a `Color` object to a hex string.
|
|
70
|
+
* @param rgb The color to convert.
|
|
71
|
+
* @returns A hex string representing the color.
|
|
72
|
+
*/
|
|
73
|
+
export declare function colorToHex(rgb: RGB): string;
|
|
82
74
|
//# sourceMappingURL=color.d.ts.map
|
package/lib/utils/color.d.ts.map
CHANGED
|
@@ -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,cAAc,EAAE,MAAM,CAAA;IACtB,aAAa,E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