@g4rcez/components 2.0.4 → 2.0.6

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.
Files changed (35) hide show
  1. package/dist/components/core/button.d.ts +1 -0
  2. package/dist/components/core/button.d.ts.map +1 -1
  3. package/dist/components/core/button.js +1 -0
  4. package/dist/components/core/tag.js +1 -1
  5. package/dist/components/display/list.d.ts.map +1 -1
  6. package/dist/components/display/list.js +2 -2
  7. package/dist/components/display/notifications.d.ts +1 -1
  8. package/dist/components/display/notifications.d.ts.map +1 -1
  9. package/dist/components/display/notifications.js +13 -15
  10. package/dist/components/floating/menu.js +2 -2
  11. package/dist/components/floating/modal.d.ts.map +1 -1
  12. package/dist/components/floating/modal.js +12 -15
  13. package/dist/components/form/autocomplete.d.ts.map +1 -1
  14. package/dist/components/form/autocomplete.js +59 -53
  15. package/dist/components/form/slider.d.ts +2 -2
  16. package/dist/components/form/slider.d.ts.map +1 -1
  17. package/dist/components/index.d.ts +1 -0
  18. package/dist/components/index.d.ts.map +1 -1
  19. package/dist/components/index.js +1 -0
  20. package/dist/index.css +1 -1
  21. package/dist/index.js.map +1 -1
  22. package/dist/index.mjs +6936 -6846
  23. package/dist/index.mjs.map +1 -1
  24. package/dist/index.umd.js +35 -35
  25. package/dist/index.umd.js.map +1 -1
  26. package/dist/preset/plugin.tailwind.d.ts +4 -7
  27. package/dist/preset/plugin.tailwind.d.ts.map +1 -1
  28. package/dist/preset/plugin.tailwind.js +13 -20
  29. package/dist/preset/src/styles/common.d.ts +1 -1
  30. package/dist/preset/src/styles/common.js +1 -1
  31. package/dist/preset/src/styles/dark.js +2 -2
  32. package/dist/styles/common.d.ts +1 -1
  33. package/dist/styles/common.js +1 -1
  34. package/dist/styles/dark.js +2 -2
  35. package/package.json +1 -7
@@ -1,9 +1,6 @@
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;
1
+ declare const _default: {
2
+ handler: import("tailwindcss/types/config").PluginCreator;
3
+ config?: Partial<import("tailwindcss/types/config").Config>;
7
4
  };
8
- export default plugin;
5
+ export default _default;
9
6
  //# sourceMappingURL=plugin.tailwind.d.ts.map
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"plugin.tailwind.d.ts","sourceRoot":"","sources":["../../plugin.tailwind.ts"],"names":[],"mappings":";;;;AAIA,wBAWG"}
@@ -2,26 +2,19 @@ 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 { withOptions } from "tailwindcss/plugin";
5
+ import plugin from "tailwindcss/plugin";
6
6
  var css = String.raw;
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
- };
7
+ export default plugin(function (_a) {
8
+ var addVariant = _a.addVariant;
9
+ addVariant("hocus", ["&:hover", "&:focus"]);
10
+ addVariant("link", ["&:hover", "&:active"]);
11
+ 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)) &"])))]);
12
+ addVariant("group-checkbox-checked", [css(templateObject_2 || (templateObject_2 = __makeTemplateObject([":merge(&:has(.form-checkbox[type=\"checkbox\"]:checked))"], [":merge(&:has(.form-checkbox[type=\"checkbox\"]:checked))"])))]);
13
+ addVariant("group-error", [
14
+ 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]) &"]))),
15
+ 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])) &"]))),
16
+ 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) &"]))),
17
+ 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]) &"]))),
18
+ ]);
25
19
  });
26
- export default plugin;
27
20
  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": "0.875rem";
14
+ readonly "field-label": "1.875rem";
15
15
  readonly "input-height": "2.5rem";
16
16
  readonly "input-x": "0.5rem";
17
17
  readonly "input-y": "0.25rem";
@@ -10,7 +10,7 @@ export var spacing = {
10
10
  lg: "1.125rem",
11
11
  sm: "0.75rem",
12
12
  "field-height": "1.5rem",
13
- "field-label": "0.875rem",
13
+ "field-label": "1.875rem",
14
14
  "input-height": "2.5rem",
15
15
  "input-x": "0.5rem",
16
16
  "input-y": "0.25rem",
@@ -5,7 +5,7 @@ export var DARK_THEME = {
5
5
  rounded: rounded,
6
6
  spacing: spacing,
7
7
  shadow: {
8
- "shadow-notification": "1px 2px 2px 2px hsla(210, 15%, 20%, 0.15)",
8
+ "shadow-notification": "1px 2px 2px 2px hsla(210, 25%, 40%, 0.15)",
9
9
  "shadow-floating": "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",
10
10
  "shadow-card": "0px 1px 1px 1px hsla(210, 25%, 20%, 0.1)",
11
11
  },
@@ -60,7 +60,7 @@ export var DARK_THEME = {
60
60
  subtle: "hsla(160, 75%, 75%)",
61
61
  hover: "hsla(160, 91%, 27%)",
62
62
  foreground: "hsla(160, 91%, 50%)",
63
- notification: "hsla(160,90%,5%)",
63
+ notification: "hsla(161,62%,17%)",
64
64
  },
65
65
  input: {
66
66
  border: "hsla(240, 4%, 25%)",
@@ -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": "0.875rem";
14
+ readonly "field-label": "1.875rem";
15
15
  readonly "input-height": "2.5rem";
16
16
  readonly "input-x": "0.5rem";
17
17
  readonly "input-y": "0.25rem";
@@ -10,7 +10,7 @@ export const spacing = {
10
10
  lg: "1.125rem",
11
11
  sm: "0.75rem",
12
12
  "field-height": "1.5rem",
13
- "field-label": "0.875rem",
13
+ "field-label": "1.875rem",
14
14
  "input-height": "2.5rem",
15
15
  "input-x": "0.5rem",
16
16
  "input-y": "0.25rem",
@@ -5,7 +5,7 @@ export const DARK_THEME = {
5
5
  rounded,
6
6
  spacing,
7
7
  shadow: {
8
- "shadow-notification": "1px 2px 2px 2px hsla(210, 15%, 20%, 0.15)",
8
+ "shadow-notification": "1px 2px 2px 2px hsla(210, 25%, 40%, 0.15)",
9
9
  "shadow-floating": "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",
10
10
  "shadow-card": "0px 1px 1px 1px hsla(210, 25%, 20%, 0.1)",
11
11
  },
@@ -60,7 +60,7 @@ export const DARK_THEME = {
60
60
  subtle: "hsla(160, 75%, 75%)",
61
61
  hover: "hsla(160, 91%, 27%)",
62
62
  foreground: "hsla(160, 91%, 50%)",
63
- notification: "hsla(160,90%,5%)",
63
+ notification: "hsla(161,62%,17%)",
64
64
  },
65
65
  input: {
66
66
  border: "hsla(240, 4%, 25%)",
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",
4
+ "version": "2.0.6",
5
5
  "sideEffects": false,
6
6
  "private": false,
7
7
  "packageManager": "pnpm@10.12.3",
@@ -119,12 +119,6 @@
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
- },
128
122
  "./preset.tailwind": {
129
123
  "type": "./dist/preset/preset.tailwind.d.ts",
130
124
  "import": "./dist/preset/preset.tailwind.js",