@uxf/ui 11.28.0 → 11.28.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/button/button.stories.js +2 -2
- package/css/button.css +8 -12
- package/css/colors.css +8 -0
- package/css/icon.css +4 -6
- package/package.json +1 -1
package/button/button.stories.js
CHANGED
|
@@ -44,13 +44,13 @@ function Basic() {
|
|
|
44
44
|
config.variants.flatMap((variant) => config.sizes.map((size) => (react_1.default.createElement("div", { key: variant, className: "text-center text-xs text-gray-400" },
|
|
45
45
|
"size=",
|
|
46
46
|
size))))),
|
|
47
|
-
config.colors.map((color) => (react_1.default.createElement("div", { className: color === "inverted" ? "bg-[#1F2A37] dark:bg-white" : undefined, key: color },
|
|
47
|
+
config.colors.map((color) => (react_1.default.createElement("div", { className: color === "inverted" ? "min-w-fit bg-[#1F2A37] dark:bg-white" : undefined, key: color },
|
|
48
48
|
react_1.default.createElement("div", { className: "grid gap-3 py-2", style: { gridTemplateColumns } },
|
|
49
49
|
react_1.default.createElement("div", { className: "flex items-center text-center text-xs text-gray-400" },
|
|
50
50
|
"color=",
|
|
51
51
|
color),
|
|
52
52
|
config.variants.map((variant) => (react_1.default.createElement(react_1.Fragment, { key: variant }, config.sizes.map((size) => (react_1.default.createElement("div", { key: `${size}${color}${variant}`, className: "flex items-center justify-center gap-2" },
|
|
53
|
-
react_1.default.createElement(button_1.Button, { color: color, onClick: onClick, size: size, variant: variant
|
|
53
|
+
react_1.default.createElement(button_1.Button, { color: color, onClick: onClick, size: size, variant: variant }, "Button"),
|
|
54
54
|
react_1.default.createElement(button_1.Button, { color: color, onClick: onClick, size: size, variant: variant, isIconButton: true },
|
|
55
55
|
react_1.default.createElement(icon_1.Icon, { name: "triangle-exclamation" }))))))))))))));
|
|
56
56
|
}
|
package/css/button.css
CHANGED
|
@@ -172,6 +172,7 @@
|
|
|
172
172
|
|
|
173
173
|
&--variant-secondary {
|
|
174
174
|
--uxf-button-background-color-hover: var(--uxf-color-base-surface-main-hover);
|
|
175
|
+
--uxf-button-background-color: var(--uxf-color-base-surface-main);
|
|
175
176
|
|
|
176
177
|
border-style: solid;
|
|
177
178
|
border-width: 1px;
|
|
@@ -204,15 +205,12 @@
|
|
|
204
205
|
&.uxf-button--color-inverted {
|
|
205
206
|
--uxf-button-border-color: var(--uxf-color-base-border-inverted);
|
|
206
207
|
--uxf-button-text-color: var(--uxf-color-base-text-inverted-high-emphasis);
|
|
207
|
-
--uxf-button-background-color
|
|
208
|
+
--uxf-button-background-color: var(--uxf-color-base-surface-inverted-main);
|
|
209
|
+
--uxf-button-background-color-hover: var(--uxf-color-base-surface-inverted-main-hover);
|
|
208
210
|
|
|
209
211
|
&.uxf-button--is-disabled {
|
|
210
|
-
--uxf-button-
|
|
211
|
-
--uxf-button-background-color: var(--uxf-color-base-surface-
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
:root .dark & {
|
|
215
|
-
--uxf-button-background-color-hover: #d2d6db2f;
|
|
212
|
+
--uxf-button-text-color: var(--uxf-color-base-text-inverted-disabled);
|
|
213
|
+
--uxf-button-background-color: var(--uxf-color-base-surface-inverted-main);
|
|
216
214
|
}
|
|
217
215
|
}
|
|
218
216
|
|
|
@@ -248,14 +246,12 @@
|
|
|
248
246
|
--uxf-button-text-color: var(--uxf-color-info-text);
|
|
249
247
|
}
|
|
250
248
|
|
|
251
|
-
/** TODO @vejvis - UX musí doladit inverted button... teď je to strašnej hack */
|
|
252
249
|
&.uxf-button--color-inverted {
|
|
253
250
|
--uxf-button-text-color: var(--uxf-color-base-text-inverted-high-emphasis);
|
|
254
|
-
--uxf-button-background-color-hover:
|
|
251
|
+
--uxf-button-background-color-hover: var(--uxf-color-base-surface-inverted-main-hover);
|
|
255
252
|
|
|
256
|
-
|
|
257
|
-
--uxf-button-
|
|
258
|
-
--uxf-button-text-color: #d2d6db;
|
|
253
|
+
&.uxf-button--is-disabled {
|
|
254
|
+
--uxf-button-text-color: var(--uxf-color-base-text-inverted-disabled);
|
|
259
255
|
}
|
|
260
256
|
}
|
|
261
257
|
|
package/css/colors.css
CHANGED
|
@@ -6,10 +6,14 @@
|
|
|
6
6
|
--uxf-color-base-surface-main-hover: #f3f4f6;
|
|
7
7
|
--uxf-color-base-surface-input-disabled: #f3f4f6;
|
|
8
8
|
--uxf-color-base-surface-disabled: #d2d6db;
|
|
9
|
+
--uxf-color-base-surface-inverted-main: #ffffff14;
|
|
10
|
+
--uxf-color-base-surface-inverted-main-hover: #ffffff29;
|
|
9
11
|
--uxf-color-base-text-disabled: #9da4ae;
|
|
10
12
|
--uxf-color-base-text-high-emphasis: #111927;
|
|
11
13
|
--uxf-color-base-text-low-emphasis: #4d5761;
|
|
12
14
|
--uxf-color-base-text-inverted-high-emphasis: #fff;
|
|
15
|
+
--uxf-color-base-text-inverted-low-emphasis: #fffc;
|
|
16
|
+
--uxf-color-base-text-inverted-disabled: #ffffffb3;
|
|
13
17
|
|
|
14
18
|
/** primary */
|
|
15
19
|
--uxf-color-primary-surface-default: #155dee;
|
|
@@ -47,10 +51,14 @@
|
|
|
47
51
|
--uxf-color-base-surface-main-hover: #1f2a37;
|
|
48
52
|
--uxf-color-base-surface-input-disabled: #4d5761;
|
|
49
53
|
--uxf-color-base-surface-disabled: #d2d6db;
|
|
54
|
+
--uxf-color-base-surface-inverted-main: #20293914;
|
|
55
|
+
--uxf-color-base-surface-inverted-main-hover: #20293929;
|
|
50
56
|
--uxf-color-base-text-disabled: #ffffff80;
|
|
51
57
|
--uxf-color-base-text-high-emphasis: #fff;
|
|
52
58
|
--uxf-color-base-text-low-emphasis: #ffffffbf;
|
|
53
59
|
--uxf-color-base-text-inverted-high-emphasis: #111927;
|
|
60
|
+
--uxf-color-base-text-inverted-low-emphasis: #202939cc;
|
|
61
|
+
--uxf-color-base-text-inverted-disabled: #202939b3;
|
|
54
62
|
|
|
55
63
|
/** primary */
|
|
56
64
|
--uxf-color-primary-surface-default: #518bff;
|
package/css/icon.css
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
.uxf-icon {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
:
|
|
5
|
-
color: theme("colors.white");
|
|
6
|
-
}
|
|
2
|
+
flex-shrink: 0;
|
|
3
|
+
height: var(--i-h);
|
|
4
|
+
width: var(--i-w);
|
|
7
5
|
|
|
8
6
|
& > use {
|
|
9
|
-
|
|
7
|
+
pointer-events: none;
|
|
10
8
|
}
|
|
11
9
|
|
|
12
10
|
&--color-default {
|