@g4rcez/components 2.0.2 → 2.0.3
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/components/core/button.d.ts +36 -0
- package/dist/components/core/button.d.ts.map +1 -1
- package/dist/components/core/button.js +35 -0
- package/dist/components/display/notifications.d.ts.map +1 -1
- package/dist/components/display/notifications.js +10 -10
- package/dist/components/display/progress.d.ts +2 -0
- package/dist/components/display/progress.d.ts.map +1 -1
- package/dist/components/display/progress.js +1 -1
- package/dist/components/floating/menu.js +1 -1
- package/dist/components/floating/modal.d.ts.map +1 -1
- package/dist/components/floating/modal.js +18 -12
- package/dist/components/form/autocomplete.d.ts.map +1 -1
- package/dist/components/form/autocomplete.js +9 -8
- package/dist/components/form/input-field.js +1 -1
- package/dist/components/form/input.d.ts +34 -0
- package/dist/components/form/input.d.ts.map +1 -1
- package/dist/components/form/input.js +30 -0
- package/dist/hooks/use-form.d.ts +46 -0
- package/dist/hooks/use-form.d.ts.map +1 -1
- package/dist/hooks/use-form.js +52 -0
- package/dist/index.css +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13645 -13437
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +56 -56
- package/dist/index.umd.js.map +1 -1
- package/dist/preset/plugin.tailwind.d.ts +7 -4
- package/dist/preset/plugin.tailwind.d.ts.map +1 -1
- package/dist/preset/plugin.tailwind.js +20 -13
- package/dist/preset/src/styles/common.d.ts +1 -1
- package/dist/preset/src/styles/common.js +1 -1
- package/dist/styles/common.d.ts +1 -1
- package/dist/styles/common.js +1 -1
- package/package.json +7 -1
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
declare const plugin: {
|
|
2
|
+
(options: unknown): {
|
|
3
|
+
handler: import("tailwindcss/types/config").PluginCreator;
|
|
4
|
+
config?: Partial<import("tailwindcss/types/config").Config>;
|
|
5
|
+
};
|
|
6
|
+
__isOptionsFunction: true;
|
|
4
7
|
};
|
|
5
|
-
export default
|
|
8
|
+
export default plugin;
|
|
6
9
|
//# sourceMappingURL=plugin.tailwind.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.tailwind.d.ts","sourceRoot":"","sources":["../../plugin.tailwind.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugin.tailwind.d.ts","sourceRoot":"","sources":["../../plugin.tailwind.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,MAAM;;;cAIoB,CAAC;;;CAiBhC,CAAA;AAED,eAAe,MAAM,CAAA"}
|
|
@@ -2,19 +2,26 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
2
2
|
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
3
|
return cooked;
|
|
4
4
|
};
|
|
5
|
-
import
|
|
5
|
+
import { withOptions } from "tailwindcss/plugin";
|
|
6
6
|
var css = String.raw;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
7
|
+
var plugin = withOptions(function () {
|
|
8
|
+
return function (_a) {
|
|
9
|
+
var addVariant = _a.addVariant;
|
|
10
|
+
addVariant("hocus", ["&:hover", "&:focus"]);
|
|
11
|
+
addVariant("link", ["&:hover", "&:active"]);
|
|
12
|
+
addVariant("group-assert", [css(templateObject_1 || (templateObject_1 = __makeTemplateObject([":merge(.group):valid:has(.input:valid:not(:placeholder-shown)) &"], [":merge(.group):valid:has(.input:valid:not(:placeholder-shown)) &"])))]);
|
|
13
|
+
addVariant("group-checkbox-checked", [css(templateObject_2 || (templateObject_2 = __makeTemplateObject([":merge(&:has(.form-checkbox[type=\"checkbox\"]:checked))"], [":merge(&:has(.form-checkbox[type=\"checkbox\"]:checked))"])))]);
|
|
14
|
+
addVariant("group-error", [
|
|
15
|
+
css(templateObject_3 || (templateObject_3 = __makeTemplateObject([":merge(.group):invalid:has(.input:not(:focus):invalid[data-initialized=true]) &"], [":merge(.group):invalid:has(.input:not(:focus):invalid[data-initialized=true]) &"]))),
|
|
16
|
+
css(templateObject_4 || (templateObject_4 = __makeTemplateObject([":merge(.group[data-error=true]:has(.input[data-initialized=true])) &"], [":merge(.group[data-error=true]:has(.input[data-initialized=true])) &"]))),
|
|
17
|
+
css(templateObject_5 || (templateObject_5 = __makeTemplateObject([":merge(.group[data-error=true][data-interactive=true]):has(.input) &"], [":merge(.group[data-error=true][data-interactive=true]):has(.input) &"]))),
|
|
18
|
+
css(templateObject_6 || (templateObject_6 = __makeTemplateObject([":merge(.group[data-error=true][data-interactive=true]):has(.input[data-initialized=true]) &"], [":merge(.group[data-error=true][data-interactive=true]):has(.input[data-initialized=true]) &"]))),
|
|
19
|
+
]);
|
|
20
|
+
};
|
|
21
|
+
}, function () {
|
|
22
|
+
return {
|
|
23
|
+
theme: {},
|
|
24
|
+
};
|
|
19
25
|
});
|
|
26
|
+
export default plugin;
|
|
20
27
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
|
|
@@ -11,7 +11,7 @@ export declare const spacing: {
|
|
|
11
11
|
readonly lg: "1.125rem";
|
|
12
12
|
readonly sm: "0.75rem";
|
|
13
13
|
readonly "field-height": "1.5rem";
|
|
14
|
-
readonly "field-label": "
|
|
14
|
+
readonly "field-label": "0.875rem";
|
|
15
15
|
readonly "input-height": "2.5rem";
|
|
16
16
|
readonly "input-x": "0.5rem";
|
|
17
17
|
readonly "input-y": "0.25rem";
|
package/dist/styles/common.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export declare const spacing: {
|
|
|
11
11
|
readonly lg: "1.125rem";
|
|
12
12
|
readonly sm: "0.75rem";
|
|
13
13
|
readonly "field-height": "1.5rem";
|
|
14
|
-
readonly "field-label": "
|
|
14
|
+
readonly "field-label": "0.875rem";
|
|
15
15
|
readonly "input-height": "2.5rem";
|
|
16
16
|
readonly "input-x": "0.5rem";
|
|
17
17
|
readonly "input-y": "0.25rem";
|
package/dist/styles/common.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@g4rcez/components",
|
|
3
3
|
"description": "Customizable react components.",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.3",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"private": false,
|
|
7
7
|
"packageManager": "pnpm@10.12.3",
|
|
@@ -119,6 +119,12 @@
|
|
|
119
119
|
"require": "./dist/styles/design-tokens.js",
|
|
120
120
|
"default": "./dist/styles/design-tokens.js"
|
|
121
121
|
},
|
|
122
|
+
"./plugin.tailwind": {
|
|
123
|
+
"type": "./dist/preset/plugin.tailwind.d.ts",
|
|
124
|
+
"import": "./dist/preset/plugin.tailwind.js",
|
|
125
|
+
"require": "./dist/preset/plugin.tailwind.js",
|
|
126
|
+
"default": "./dist/preset/plugin.tailwind.js"
|
|
127
|
+
},
|
|
122
128
|
"./preset.tailwind": {
|
|
123
129
|
"type": "./dist/preset/preset.tailwind.d.ts",
|
|
124
130
|
"import": "./dist/preset/preset.tailwind.js",
|