@uxf/ui 1.0.0-beta.63 → 1.0.0-beta.65

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.
@@ -14,9 +14,10 @@ function CheckIcon() {
14
14
  react_2.default.createElement("path", { d: "M13.333 4 6 11.333 2.667 8", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2" })));
15
15
  }
16
16
  exports.Checkbox = (0, forwardRef_1.forwardRef)("Checkbox", (props, ref) => {
17
+ var _a;
17
18
  return (react_2.default.createElement(react_1.Switch.Group, null,
18
- react_2.default.createElement("div", { className: "uxf-checkbox__wrapper" },
19
- react_2.default.createElement(react_1.Switch, { checked: props.value, className: (0, cx_1.cx)(props.value && classes_1.CLASSES.IS_SELECTED, props.isDisabled && classes_1.CLASSES.IS_DISABLED, props.isInvalid && classes_1.CLASSES.IS_INVALID, "uxf-checkbox", props.className), disabled: props.isDisabled, onChange: props.onChange, ref: ref, style: props.style },
19
+ react_2.default.createElement("div", { className: `uxf-checkbox__wrapper ${(_a = props.className) !== null && _a !== void 0 ? _a : ""}` },
20
+ react_2.default.createElement(react_1.Switch, { checked: props.value, className: (0, cx_1.cx)(props.value && classes_1.CLASSES.IS_SELECTED, props.isDisabled && classes_1.CLASSES.IS_DISABLED, props.isInvalid && classes_1.CLASSES.IS_INVALID, "uxf-checkbox"), disabled: props.isDisabled, onChange: props.onChange, ref: ref, style: props.style },
20
21
  react_2.default.createElement("span", { className: "uxf-checkbox__icon" },
21
22
  react_2.default.createElement(CheckIcon, null))),
22
23
  react_2.default.createElement(react_1.Switch.Label, { className: "uxf-checkbox__label" }, props.label))));
package/css/button.css CHANGED
@@ -5,7 +5,7 @@
5
5
  }
6
6
 
7
7
  .uxf-button {
8
- @apply inline-flex items-center justify-center shrink-0 text-center rounded-lg before:rounded-lg font-semibold
8
+ @apply inline-flex items-center justify-center text-center rounded-lg before:rounded-lg font-semibold
9
9
  focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 relative cursor-pointer transition before:transition;
10
10
 
11
11
  &__text {
package/css/checkbox.css CHANGED
@@ -3,7 +3,7 @@
3
3
  focus-visible:ring-offset-2 focus-visible:ring-2;
4
4
 
5
5
  &__wrapper {
6
- @apply flex items-center justify-between space-x-2 p-4;
6
+ @apply flex items-center justify-between space-x-3;
7
7
  }
8
8
 
9
9
  &__label {
package/css/input.css CHANGED
@@ -159,4 +159,17 @@
159
159
  }
160
160
  }
161
161
  }
162
+
163
+ :root .dark & {
164
+ input:-webkit-autofill {
165
+ &,
166
+ &:hover,
167
+ &:focus {
168
+ -webkit-box-shadow: inset 0 0 0 1000px theme("colors.gray.800");
169
+ caret-color: white;
170
+ margin: 1px 0;
171
+ -webkit-text-fill-color: theme("colors.gray.300");
172
+ }
173
+ }
174
+ }
162
175
  }
package/css/textarea.css CHANGED
@@ -12,7 +12,7 @@
12
12
  }
13
13
 
14
14
  &__element {
15
- @apply bg-transparent outline-none resize-none;
15
+ @apply bg-transparent outline-none resize-none w-full;
16
16
 
17
17
  :root .light & {
18
18
  @apply placeholder:text-gray-400;
@@ -86,13 +86,26 @@
86
86
 
87
87
  .uxf-textarea__element {
88
88
  :root .light & {
89
- @apply text-error-500 placeholder:text-error-500;
89
+ @apply text-error-500;
90
90
  }
91
91
  :root .dark & {
92
- @apply text-error-500 placeholder:text-error-500;
92
+ @apply text-error-500;
93
93
  }
94
94
  }
95
95
  }
96
96
  }
97
+
98
+ :root .dark & {
99
+ input:-webkit-autofill {
100
+ &,
101
+ &:hover,
102
+ &:focus {
103
+ -webkit-box-shadow: inset 0 0 0 1000px theme("colors.gray.800");
104
+ caret-color: white;
105
+ margin: 1px 0;
106
+ -webkit-text-fill-color: theme("colors.gray.300");
107
+ }
108
+ }
109
+ }
97
110
  }
98
111
 
package/css/toggle.css CHANGED
@@ -10,11 +10,11 @@
10
10
  @apply w-full;
11
11
 
12
12
  :root .light & {
13
- @apply text-gray-600;
13
+ @apply text-lightMedium;
14
14
  }
15
15
 
16
16
  :root .dark & {
17
- @apply text-gray-400;
17
+ @apply text-darkMedium;
18
18
  }
19
19
  }
20
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxf/ui",
3
- "version": "1.0.0-beta.63",
3
+ "version": "1.0.0-beta.65",
4
4
  "description": "",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -32,6 +32,12 @@ module.exports = {
32
32
  },
33
33
  colors: {
34
34
  inherit: "inherit",
35
+ lightHigh: "#111827",
36
+ lightMedium: "#4B5563",
37
+ lightLow: "#9CA3AF",
38
+ darkHigh: "#ffffff",
39
+ darkMedium: "#ffffffcc",
40
+ darkLow: "#ffffff80",
35
41
  primary: {
36
42
  50: "#eff6ff",
37
43
  100: "#dbeafe",