@acorex/styles 21.0.3-next.8 → 21.1.0-next.0
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/components/_action-item.css +4 -1
- package/components/_editor-container.css +53 -10
- package/components/_general-button.css +3 -1
- package/package.json +2 -2
- package/themes/default.css +474 -154
- package/tailwind-base.js +0 -324
|
@@ -27,7 +27,10 @@
|
|
|
27
27
|
font-weight: bolder;
|
|
28
28
|
text-transform: uppercase;
|
|
29
29
|
padding-block: var(--ax-comp-action-item-padding-block, 0.25rem);
|
|
30
|
-
padding-inline: var(
|
|
30
|
+
padding-inline: var(
|
|
31
|
+
--ax-comp-action-item-padding-inline,
|
|
32
|
+
calc(var(--ax-comp-action-item-padding-inline, 0.875rem) / 3 * 2)
|
|
33
|
+
);
|
|
31
34
|
}
|
|
32
35
|
ax-divider {
|
|
33
36
|
display: block;
|
|
@@ -2,14 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
@layer base {
|
|
4
4
|
.ax-editor-container {
|
|
5
|
-
@apply h-
|
|
5
|
+
@apply rounded-default relative flex h-default min-h-default items-center justify-between overflow-hidden px-3 py-3 text-sm leading-5;
|
|
6
|
+
|
|
6
7
|
.ax-content {
|
|
7
8
|
@apply text-sm;
|
|
8
9
|
}
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.ax-editor-container {
|
|
12
|
-
@apply rounded-default relative flex h-9 min-h-9 items-center justify-between overflow-hidden px-3 py-3 text-sm leading-5;
|
|
13
10
|
|
|
14
11
|
.ax-editor-container {
|
|
15
12
|
@apply p-0;
|
|
@@ -23,26 +20,72 @@
|
|
|
23
20
|
.ax-editor {
|
|
24
21
|
font-size: inherit;
|
|
25
22
|
|
|
26
|
-
@apply w-full flex-1 py-2 outline-0 outline-transparent
|
|
23
|
+
@apply w-full flex-1 py-2 outline-0 outline-transparent;
|
|
27
24
|
}
|
|
28
25
|
.ax-placeholder {
|
|
29
26
|
@apply opacity-50;
|
|
30
27
|
}
|
|
31
28
|
|
|
32
29
|
&.ax-state-error {
|
|
33
|
-
@apply border-danger-600
|
|
30
|
+
@apply border-danger-600!;
|
|
31
|
+
&:focus-within {
|
|
32
|
+
@apply outline-2 outline-offset-0 outline-danger-light;
|
|
33
|
+
}
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
/* Keep end padding for spin/clear controls, but not when a suffix button is attached */
|
|
37
|
+
&:has(.ax-general-button-control, .ax-general-button-icon):not(:has(ax-suffix > ax-button)) {
|
|
38
|
+
@apply pe-2;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
ax-suffix > ax-icon,
|
|
42
|
+
ax-prefix > ax-icon {
|
|
43
|
+
@apply text-muted;
|
|
38
44
|
}
|
|
39
45
|
|
|
40
46
|
ax-prefix,
|
|
41
47
|
ax-suffix {
|
|
42
|
-
@apply flex items-center gap-2;
|
|
48
|
+
@apply flex items-center self-stretch gap-2;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
ax-prefix:has(> ax-button),
|
|
52
|
+
ax-suffix:has(> ax-button) {
|
|
53
|
+
@apply items-stretch;
|
|
43
54
|
}
|
|
55
|
+
|
|
44
56
|
ax-prefix {
|
|
45
57
|
@apply pe-2;
|
|
46
58
|
}
|
|
47
59
|
}
|
|
48
60
|
}
|
|
61
|
+
|
|
62
|
+
/* Components layer so these beat button size utilities and spin-button pe-2 */
|
|
63
|
+
@layer components {
|
|
64
|
+
.ax-editor-container {
|
|
65
|
+
&:has(ax-prefix > ax-button),
|
|
66
|
+
&:has(ax-suffix > ax-button) {
|
|
67
|
+
@apply py-0;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&:has(ax-prefix > ax-button) {
|
|
71
|
+
@apply ps-0!;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&:has(ax-suffix > ax-button) {
|
|
75
|
+
@apply pe-0!;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
ax-prefix > ax-button,
|
|
79
|
+
ax-suffix > ax-button {
|
|
80
|
+
@apply self-stretch shrink-0 rounded-none!;
|
|
81
|
+
|
|
82
|
+
> button {
|
|
83
|
+
@apply h-full min-h-0 rounded-[inherit]!;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&.ax-button-icon > button {
|
|
87
|
+
@apply aspect-square size-auto! h-full w-auto!;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -7,7 +7,9 @@
|
|
|
7
7
|
@apply disabled:cursor-not-allowed disabled:opacity-50;
|
|
8
8
|
@apply text-text-default/50 hover:text-text-default/70;
|
|
9
9
|
@apply hover:bg-bg-default/10;
|
|
10
|
-
|
|
10
|
+
&:focus-visible {
|
|
11
|
+
@apply ax-focus-ring;
|
|
12
|
+
}
|
|
11
13
|
* {
|
|
12
14
|
@apply cursor-[inherit];
|
|
13
15
|
}
|
package/package.json
CHANGED