@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.
@@ -1 +1 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/composables/theme.ts"],"names":[],"mappings":"AAIA,OAAO,EAAS,WAAW,EAA2C,MAAM,eAAe,CAAA;AAE3F,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,QA6EzD;AAED,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,OAAO,CAAC,WAAW,CAAC,QA+B7D;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,UAOvC"}
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"}
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Quid UI Framework v0.3.0
2
+ * Quid UI Framework v0.3.2
3
3
  * (c) 2023 Quidgest - Consultores de Gestão, SA
4
4
  */
5
5
  /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
@@ -32,51 +32,43 @@ export type ColorScheme = {
32
32
  /**
33
33
  * Represents a color in RGB space.
34
34
  */
35
- export declare class Color {
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
- * Parses a color from a hex string.
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 declare function parseColor(color: string): Color;
43
+ export type HSL = {
44
+ h: number;
45
+ s: number;
46
+ l: number;
47
+ };
62
48
  /**
63
- * Converts a `Color` object to a hex string.
64
- * @param color The color to convert.
65
- * @returns A hex string representing the color.
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 colorToHex(color: Color): string;
53
+ export declare function parseColor(color: string): RGB;
68
54
  /**
69
55
  * Lightens a color by a specified amount.
70
- * @param color The color to lighten.
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(color: Color, amount: number): Color;
60
+ export declare function lighten(rgb: RGB, amount: number): RGB;
75
61
  /**
76
62
  * Darkens a color by a specified amount.
77
- * @param color The color to darken.
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(color: Color, amount: number): Color;
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=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S,EAAE,MAAM,CAAA;IAEjB,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,MAAM,CAAA;CAChB,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;AAED;;GAEG;AACH,MAAM,MAAM,GAAG,GAAG;IACjB,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;CACT,CAAA;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,GAAG,CAe7C;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"}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@quidgest/ui",
3
3
  "private": false,
4
4
  "description": "Quidgest UI kit",
5
- "version": "0.3.0",
5
+ "version": "0.3.2",
6
6
  "author": {
7
7
  "name": "Quidgest"
8
8
  },