@kbach/react 0.4.3 → 0.5.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/README.md +106 -28
- package/dist/{chunk-RJHOB4EU.mjs → chunk-EBISJEHP.mjs} +74 -19
- package/dist/{chunk-HY6PU2XS.mjs → chunk-M3LZVDYD.mjs} +983 -40
- package/dist/index.d.mts +2 -9
- package/dist/index.d.ts +2 -9
- package/dist/index.js +1074 -115
- package/dist/index.mjs +21 -3
- package/dist/jsx-dev-runtime.js +1051 -58
- package/dist/jsx-dev-runtime.mjs +2 -2
- package/dist/jsx-runtime.js +1051 -58
- package/dist/jsx-runtime.mjs +2 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -12,6 +12,8 @@ interface ParsedClass {
|
|
|
12
12
|
modifiers: string[];
|
|
13
13
|
/** Whether a leading `-` was present for negative values */
|
|
14
14
|
negative: boolean;
|
|
15
|
+
/** Whether a leading `!` was present — applies !important to all CSS declarations */
|
|
16
|
+
important: boolean;
|
|
15
17
|
/** The utility name, e.g. 'bg', 'p', 'text' */
|
|
16
18
|
utility: string;
|
|
17
19
|
/** The resolved value, e.g. 'white', '#fff', '4' */
|
|
@@ -70,15 +72,6 @@ interface ResolvedConfig {
|
|
|
70
72
|
declare const defaultColors: ThemeColors;
|
|
71
73
|
declare const defaultTheme: ThemeConfig;
|
|
72
74
|
|
|
73
|
-
/**
|
|
74
|
-
* Parse a single utility class string into its components.
|
|
75
|
-
*
|
|
76
|
-
* Handles:
|
|
77
|
-
* - Up to 3 modifier prefixes: dark:hover:focus:bg-white
|
|
78
|
-
* - Negative values: -p-4 -m-[10px] -top-2
|
|
79
|
-
* - Arbitrary bracket values: bg-[#fff] p-[10px] text-[rgba(0,0,0,.5)]
|
|
80
|
-
* - All Tailwind-equivalent utilities
|
|
81
|
-
*/
|
|
82
75
|
declare function parseClass(className: string): ParsedClass | null;
|
|
83
76
|
/** Parse a space-separated class string into individual ParsedClass objects. */
|
|
84
77
|
declare function parseClasses(classString: string): ParsedClass[];
|
package/dist/index.d.ts
CHANGED
|
@@ -12,6 +12,8 @@ interface ParsedClass {
|
|
|
12
12
|
modifiers: string[];
|
|
13
13
|
/** Whether a leading `-` was present for negative values */
|
|
14
14
|
negative: boolean;
|
|
15
|
+
/** Whether a leading `!` was present — applies !important to all CSS declarations */
|
|
16
|
+
important: boolean;
|
|
15
17
|
/** The utility name, e.g. 'bg', 'p', 'text' */
|
|
16
18
|
utility: string;
|
|
17
19
|
/** The resolved value, e.g. 'white', '#fff', '4' */
|
|
@@ -70,15 +72,6 @@ interface ResolvedConfig {
|
|
|
70
72
|
declare const defaultColors: ThemeColors;
|
|
71
73
|
declare const defaultTheme: ThemeConfig;
|
|
72
74
|
|
|
73
|
-
/**
|
|
74
|
-
* Parse a single utility class string into its components.
|
|
75
|
-
*
|
|
76
|
-
* Handles:
|
|
77
|
-
* - Up to 3 modifier prefixes: dark:hover:focus:bg-white
|
|
78
|
-
* - Negative values: -p-4 -m-[10px] -top-2
|
|
79
|
-
* - Arbitrary bracket values: bg-[#fff] p-[10px] text-[rgba(0,0,0,.5)]
|
|
80
|
-
* - All Tailwind-equivalent utilities
|
|
81
|
-
*/
|
|
82
75
|
declare function parseClass(className: string): ParsedClass | null;
|
|
83
76
|
/** Parse a space-separated class string into individual ParsedClass objects. */
|
|
84
77
|
declare function parseClasses(classString: string): ParsedClass[];
|