@rokkit/themes 1.0.0-next.133 → 1.0.0-next.136
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/README.md +68 -80
- package/build.mjs +148 -150
- package/dist/base.css +689 -623
- package/dist/glass.css +212 -203
- package/dist/index.css +1464 -1257
- package/dist/material.css +203 -171
- package/dist/minimal.css +171 -147
- package/dist/rokkit.css +189 -113
- package/package.json +8 -2
- package/src/base/breadcrumbs.css +28 -28
- package/src/base/button.css +10 -3
- package/src/base/card.css +17 -17
- package/src/base/carousel.css +67 -67
- package/src/base/display.css +8 -8
- package/src/base/floating-navigation.css +32 -8
- package/src/base/graph-paper.css +49 -49
- package/src/base/pill.css +35 -35
- package/src/base/progress.css +21 -21
- package/src/base/range.css +57 -57
- package/src/base/rating.css +20 -18
- package/src/base/reveal.css +16 -16
- package/src/base/search-filter.css +61 -61
- package/src/base/shine.css +7 -7
- package/src/base/stepper.css +75 -75
- package/src/base/switch.css +55 -55
- package/src/base/table.css +49 -49
- package/src/base/tilt.css +4 -4
- package/src/base/timeline.css +38 -38
- package/src/base/tree.css +48 -15
- package/src/glass/button.css +11 -10
- package/src/glass/card.css +16 -13
- package/src/glass/floating-action.css +13 -13
- package/src/glass/floating-navigation.css +2 -2
- package/src/glass/input.css +32 -30
- package/src/glass/list.css +21 -21
- package/src/glass/menu.css +16 -16
- package/src/glass/range.css +10 -10
- package/src/glass/search-filter.css +8 -8
- package/src/glass/select.css +32 -32
- package/src/glass/switch.css +6 -6
- package/src/glass/table.css +14 -14
- package/src/glass/tabs.css +3 -3
- package/src/glass/timeline.css +8 -8
- package/src/glass/toggle.css +7 -7
- package/src/glass/toolbar.css +15 -15
- package/src/glass/tree.css +27 -21
- package/src/material/button.css +12 -8
- package/src/material/card.css +1 -1
- package/src/material/input.css +30 -14
- package/src/material/list.css +27 -23
- package/src/material/menu.css +16 -16
- package/src/material/range.css +11 -11
- package/src/material/search-filter.css +8 -8
- package/src/material/select.css +31 -31
- package/src/material/switch.css +6 -6
- package/src/material/table.css +20 -16
- package/src/material/timeline.css +8 -8
- package/src/material/toggle.css +7 -7
- package/src/material/toolbar.css +17 -16
- package/src/material/tree.css +22 -19
- package/src/minimal/button.css +7 -4
- package/src/minimal/card.css +13 -11
- package/src/minimal/floating-action.css +11 -11
- package/src/minimal/floating-navigation.css +1 -1
- package/src/minimal/input.css +14 -10
- package/src/minimal/list.css +27 -23
- package/src/minimal/menu.css +15 -15
- package/src/minimal/range.css +10 -10
- package/src/minimal/search-filter.css +8 -8
- package/src/minimal/select.css +4 -2
- package/src/minimal/switch.css +6 -6
- package/src/minimal/table.css +17 -15
- package/src/minimal/tabs.css +5 -3
- package/src/minimal/timeline.css +7 -7
- package/src/minimal/toggle.css +7 -7
- package/src/minimal/toolbar.css +17 -16
- package/src/minimal/tree.css +26 -20
- package/src/rokkit/button.css +40 -11
- package/src/rokkit/card.css +16 -14
- package/src/rokkit/floating-navigation.css +2 -2
- package/src/rokkit/input.css +10 -6
- package/src/rokkit/list.css +7 -2
- package/src/rokkit/range.css +11 -11
- package/src/rokkit/search-filter.css +8 -8
- package/src/rokkit/select.css +41 -36
- package/src/rokkit/switch.css +6 -6
- package/src/rokkit/table.css +17 -15
- package/src/rokkit/tabs.css +11 -6
- package/src/rokkit/timeline.css +8 -8
- package/src/rokkit/tree.css +35 -9
package/src/glass/tabs.css
CHANGED
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
============================================================================= */
|
|
10
10
|
|
|
11
11
|
[data-style='glass'] [data-tabs-list] {
|
|
12
|
-
@apply
|
|
12
|
+
@apply bg-surface-z1/70 border-surface-z5/20 rounded-t-lg border-b backdrop-blur-md;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
[data-style='glass'] [data-tabs][data-position='after'] [data-tabs-list] {
|
|
16
|
-
@apply rounded-t-none rounded-b-lg border-b-0
|
|
16
|
+
@apply rounded-t-none rounded-b-lg border-t border-b-0;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
/* =============================================================================
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
|
|
31
31
|
/* Selected state */
|
|
32
32
|
[data-style='glass'] [data-tabs-trigger][data-selected] {
|
|
33
|
-
@apply bg-primary-z5/40 text-primary-z9 border-primary-z5/50 backdrop-blur-sm
|
|
33
|
+
@apply bg-primary-z5/40 text-primary-z9 border-primary-z5/50 border backdrop-blur-sm;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
/* =============================================================================
|
package/src/glass/timeline.css
CHANGED
|
@@ -9,16 +9,16 @@
|
|
|
9
9
|
============================================================================= */
|
|
10
10
|
|
|
11
11
|
[data-style='glass'] [data-timeline-circle] {
|
|
12
|
-
|
|
12
|
+
@apply border-surface-z5/30 text-surface-z6;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
[data-style='glass'] [data-timeline-item][data-completed] [data-timeline-circle] {
|
|
16
|
-
|
|
16
|
+
@apply bg-primary/80 border-primary/50 text-on-primary backdrop-blur-sm;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
[data-style='glass'] [data-timeline-item][data-active] [data-timeline-circle] {
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
@apply border-primary/60 text-primary;
|
|
21
|
+
box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 15%, transparent);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
/* =============================================================================
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
============================================================================= */
|
|
27
27
|
|
|
28
28
|
[data-style='glass'] [data-timeline-connector] {
|
|
29
|
-
|
|
29
|
+
@apply bg-surface-z5/20;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
[data-style='glass'] [data-timeline-item][data-completed] [data-timeline-connector] {
|
|
33
|
-
|
|
33
|
+
@apply bg-primary/40;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
/* =============================================================================
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
============================================================================= */
|
|
39
39
|
|
|
40
40
|
[data-style='glass'] [data-timeline-title] {
|
|
41
|
-
|
|
41
|
+
@apply text-surface-z8;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
[data-style='glass'] [data-timeline-description] {
|
|
45
|
-
|
|
45
|
+
@apply text-surface-z6;
|
|
46
46
|
}
|
package/src/glass/toggle.css
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
============================================================================= */
|
|
10
10
|
|
|
11
11
|
[data-style='glass'] [data-toggle] {
|
|
12
|
-
|
|
12
|
+
@apply bg-surface-z1/70 border-surface-z5/20 rounded-lg border backdrop-blur-md;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
/* =============================================================================
|
|
@@ -17,17 +17,17 @@
|
|
|
17
17
|
============================================================================= */
|
|
18
18
|
|
|
19
19
|
[data-style='glass'] [data-toggle-option] {
|
|
20
|
-
|
|
20
|
+
@apply text-surface-z6;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
[data-style='glass'] [data-toggle-option]:hover:not(:disabled):not([data-disabled='true']),
|
|
24
24
|
[data-style='glass'] [data-toggle-option]:focus:not(:disabled):not([data-disabled='true']) {
|
|
25
|
-
|
|
25
|
+
@apply text-surface-z8 bg-surface-z2/15;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
/* Selected state */
|
|
29
29
|
[data-style='glass'] [data-toggle-option][data-selected='true'] {
|
|
30
|
-
|
|
30
|
+
@apply bg-primary-z5/40 text-primary-z9 border-primary-z5/50 border backdrop-blur-sm;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
/* =============================================================================
|
|
@@ -35,14 +35,14 @@
|
|
|
35
35
|
============================================================================= */
|
|
36
36
|
|
|
37
37
|
[data-style='glass'] [data-toggle-option] [data-toggle-icon] {
|
|
38
|
-
|
|
38
|
+
@apply text-surface-z5;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
[data-style='glass'] [data-toggle-option]:hover:not(:disabled) [data-toggle-icon],
|
|
42
42
|
[data-style='glass'] [data-toggle-option]:focus:not(:disabled) [data-toggle-icon] {
|
|
43
|
-
|
|
43
|
+
@apply text-surface-z7;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
[data-style='glass'] [data-toggle-option][data-selected='true'] [data-toggle-icon] {
|
|
47
|
-
|
|
47
|
+
@apply text-primary-z7;
|
|
48
48
|
}
|
package/src/glass/toolbar.css
CHANGED
|
@@ -9,25 +9,25 @@
|
|
|
9
9
|
============================================================================= */
|
|
10
10
|
|
|
11
11
|
[data-style='glass'] [data-toolbar] {
|
|
12
|
-
|
|
12
|
+
@apply bg-surface-z1/70 backdrop-blur-md;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
/* Position-based borders */
|
|
16
16
|
[data-style='glass'] [data-toolbar][data-toolbar-position='top'],
|
|
17
17
|
[data-style='glass'] [data-toolbar]:not([data-toolbar-position]) {
|
|
18
|
-
|
|
18
|
+
@apply border-surface-z5/20 border-b;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
[data-style='glass'] [data-toolbar][data-toolbar-position='bottom'] {
|
|
22
|
-
|
|
22
|
+
@apply border-surface-z5/20 border-t;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
[data-style='glass'] [data-toolbar][data-toolbar-position='left'] {
|
|
26
|
-
|
|
26
|
+
@apply border-surface-z5/20 border-r;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
[data-style='glass'] [data-toolbar][data-toolbar-position='right'] {
|
|
30
|
-
|
|
30
|
+
@apply border-surface-z5/20 border-l;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
/* =============================================================================
|
|
@@ -35,24 +35,24 @@
|
|
|
35
35
|
============================================================================= */
|
|
36
36
|
|
|
37
37
|
[data-style='glass'] [data-toolbar-item] {
|
|
38
|
-
|
|
38
|
+
@apply text-surface-z7;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
[data-style='glass'] [data-toolbar-item]:hover:not(:disabled):not([data-disabled='true']) {
|
|
42
|
-
|
|
42
|
+
@apply text-surface-z10 bg-surface-z2/15;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
[data-style='glass'] [data-toolbar-item]:focus-visible:not(:disabled):not([data-disabled='true']) {
|
|
46
|
-
|
|
46
|
+
@apply text-surface-z10 ring-surface-z5/40 bg-surface-z2/15 ring-1 outline-none;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
/* Active/pressed state */
|
|
50
50
|
[data-style='glass'] [data-toolbar-item][data-active='true'] {
|
|
51
|
-
|
|
51
|
+
@apply bg-primary-z5/30 text-primary-z9;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
[data-style='glass'] [data-toolbar-item][data-active='true']:hover:not(:disabled) {
|
|
55
|
-
|
|
55
|
+
@apply bg-primary-z5/40 text-primary-z10;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
/* =============================================================================
|
|
@@ -60,15 +60,15 @@
|
|
|
60
60
|
============================================================================= */
|
|
61
61
|
|
|
62
62
|
[data-style='glass'] [data-toolbar-item] [data-toolbar-icon] {
|
|
63
|
-
|
|
63
|
+
@apply text-surface-z6;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
[data-style='glass'] [data-toolbar-item]:hover:not(:disabled) [data-toolbar-icon] {
|
|
67
|
-
|
|
67
|
+
@apply text-surface-z9;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
[data-style='glass'] [data-toolbar-item][data-active='true'] [data-toolbar-icon] {
|
|
71
|
-
|
|
71
|
+
@apply text-primary-z7;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
/* =============================================================================
|
|
@@ -76,9 +76,9 @@
|
|
|
76
76
|
============================================================================= */
|
|
77
77
|
|
|
78
78
|
[data-style='glass'] [data-toolbar-separator] {
|
|
79
|
-
|
|
79
|
+
@apply bg-surface-z5/20;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
[data-style='glass'] [data-toolbar-divider] {
|
|
83
|
-
|
|
83
|
+
@apply bg-surface-z5/20;
|
|
84
84
|
}
|
package/src/glass/tree.css
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
============================================================================= */
|
|
10
10
|
|
|
11
11
|
[data-style='glass'] [data-tree]:focus-within {
|
|
12
|
-
|
|
12
|
+
@apply ring-surface-z5/40 rounded ring-1;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
/* =============================================================================
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
============================================================================= */
|
|
18
18
|
|
|
19
19
|
[data-style='glass'] [data-tree-toggle-btn] {
|
|
20
|
-
|
|
20
|
+
@apply text-surface-z5;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
[data-style='glass'] [data-tree-toggle-btn]:hover {
|
|
24
|
-
|
|
24
|
+
@apply text-surface-z7 bg-surface-z2/15;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
/* =============================================================================
|
|
@@ -29,26 +29,26 @@
|
|
|
29
29
|
============================================================================= */
|
|
30
30
|
|
|
31
31
|
[data-style='glass'] [data-tree-item-content] {
|
|
32
|
-
|
|
32
|
+
@apply text-surface-z8;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
[data-style='glass'] [data-tree-item-content]:hover:not(:disabled),
|
|
36
36
|
[data-style='glass'] [data-tree-item-content]:focus:not(:disabled) {
|
|
37
|
-
|
|
37
|
+
@apply text-surface-z10 bg-surface-z2/15 outline-none;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
/* Focus visible for keyboard navigation */
|
|
41
41
|
[data-style='glass'] [data-tree-item-content]:focus-visible {
|
|
42
|
-
|
|
42
|
+
@apply ring-surface-z5/40 ring-1 outline-none;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
/* Active/selected state */
|
|
46
46
|
[data-style='glass'] [data-tree-item-content][data-active='true'] {
|
|
47
|
-
|
|
47
|
+
@apply bg-primary-z5/30 text-primary-z9;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
[data-style='glass'] [data-tree-item-content][data-active='true']:hover:not(:disabled) {
|
|
51
|
-
|
|
51
|
+
@apply bg-primary-z5/40;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
/* =============================================================================
|
|
@@ -56,31 +56,31 @@
|
|
|
56
56
|
============================================================================= */
|
|
57
57
|
|
|
58
58
|
[data-style='glass'] [data-tree-item-content] [data-item-icon] {
|
|
59
|
-
|
|
59
|
+
@apply text-surface-z5;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
[data-style='glass'] [data-tree-item-content]:hover:not(:disabled) [data-item-icon] {
|
|
63
|
-
|
|
63
|
+
@apply text-surface-z7;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
[data-style='glass'] [data-tree-item-content][data-active='true'] [data-item-icon] {
|
|
67
|
-
|
|
67
|
+
@apply text-primary-z6;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
[data-style='glass'] [data-tree-item-content] [data-item-description] {
|
|
71
|
-
|
|
71
|
+
@apply text-surface-z5;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
[data-style='glass'] [data-tree-item-content][data-active='true'] [data-item-description] {
|
|
75
|
-
|
|
75
|
+
@apply text-primary-z7;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
[data-style='glass'] [data-tree-item-content] [data-item-badge] {
|
|
79
|
-
|
|
79
|
+
@apply text-surface-z6 bg-surface-z2/15;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
[data-style='glass'] [data-tree-item-content][data-active='true'] [data-item-badge] {
|
|
83
|
-
|
|
83
|
+
@apply text-primary-z8 bg-primary-z5/25;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
/* =============================================================================
|
|
@@ -88,17 +88,23 @@
|
|
|
88
88
|
============================================================================= */
|
|
89
89
|
|
|
90
90
|
[data-style='glass'] [data-tree-node][data-selected='true'] [data-tree-node-row] {
|
|
91
|
-
|
|
91
|
+
@apply bg-primary-z5/20;
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
[data-style='glass']
|
|
95
|
-
|
|
94
|
+
[data-style='glass']
|
|
95
|
+
[data-tree]:focus-within
|
|
96
|
+
[data-tree-node][data-selected='true']
|
|
97
|
+
[data-tree-node-row] {
|
|
98
|
+
@apply bg-primary-z5/30;
|
|
96
99
|
}
|
|
97
100
|
|
|
98
101
|
[data-style='glass'] [data-tree-node][data-selected='true'] [data-tree-item-content] {
|
|
99
|
-
|
|
102
|
+
@apply text-primary-z9;
|
|
100
103
|
}
|
|
101
104
|
|
|
102
|
-
[data-style='glass']
|
|
103
|
-
|
|
105
|
+
[data-style='glass']
|
|
106
|
+
[data-tree-node][data-selected='true']
|
|
107
|
+
[data-tree-item-content]
|
|
108
|
+
[data-item-icon] {
|
|
109
|
+
@apply text-primary-z6;
|
|
104
110
|
}
|
package/src/material/button.css
CHANGED
|
@@ -82,22 +82,23 @@
|
|
|
82
82
|
|
|
83
83
|
[data-style='material'] [data-button][data-style='gradient'][data-variant='default'],
|
|
84
84
|
[data-style='material'] [data-button][data-style='gradient']:not([data-variant]) {
|
|
85
|
-
@apply from-surface-z3 to-surface-z1 text-surface-z10
|
|
85
|
+
@apply from-surface-z3 to-surface-z1 text-surface-z10 bg-gradient-to-br shadow-md;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
[data-style='material'] [data-button][data-style='gradient'][data-variant='primary'] {
|
|
89
|
-
@apply from-primary-z5 to-primary-z3 text-on-primary
|
|
89
|
+
@apply from-primary-z5 to-primary-z3 text-on-primary bg-gradient-to-br shadow-md;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
[data-style='material'] [data-button][data-style='gradient'][data-variant='secondary'] {
|
|
93
|
-
@apply from-secondary-z5 to-secondary-z3 text-on-secondary
|
|
93
|
+
@apply from-secondary-z5 to-secondary-z3 text-on-secondary bg-gradient-to-br shadow-md;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
[data-style='material'] [data-button][data-style='gradient'][data-variant='danger'] {
|
|
97
|
-
@apply from-danger-z5 to-danger-z3 text-on-danger
|
|
97
|
+
@apply from-danger-z5 to-danger-z3 text-on-danger bg-gradient-to-br shadow-md;
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
[data-style='material']
|
|
100
|
+
[data-style='material']
|
|
101
|
+
[data-button][data-style='gradient']:hover:not(:disabled):not([data-disabled]) {
|
|
101
102
|
filter: brightness(1.08);
|
|
102
103
|
@apply shadow-lg;
|
|
103
104
|
}
|
|
@@ -131,16 +132,19 @@
|
|
|
131
132
|
Hover States
|
|
132
133
|
============================================================================= */
|
|
133
134
|
|
|
134
|
-
[data-style='material']
|
|
135
|
+
[data-style='material']
|
|
136
|
+
[data-button][data-style='default']:hover:not(:disabled):not([data-disabled]),
|
|
135
137
|
[data-style='material'] [data-button]:not([data-style]):hover:not(:disabled):not([data-disabled]) {
|
|
136
138
|
@apply shadow-md;
|
|
137
139
|
}
|
|
138
140
|
|
|
139
|
-
[data-style='material']
|
|
141
|
+
[data-style='material']
|
|
142
|
+
[data-button][data-style='outline']:hover:not(:disabled):not([data-disabled]) {
|
|
140
143
|
@apply bg-surface-z1;
|
|
141
144
|
}
|
|
142
145
|
|
|
143
|
-
[data-style='material']
|
|
146
|
+
[data-style='material']
|
|
147
|
+
[data-button][data-style='ghost']:hover:not(:disabled):not([data-disabled]) {
|
|
144
148
|
@apply bg-surface-z2;
|
|
145
149
|
}
|
|
146
150
|
|
package/src/material/card.css
CHANGED
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
============================================================================= */
|
|
49
49
|
|
|
50
50
|
[data-style='material'] [data-card][data-card-interactive]:focus-visible {
|
|
51
|
-
@apply ring-primary-z4
|
|
51
|
+
@apply ring-primary-z4 ring-2 ring-offset-2 outline-none;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
/* =============================================================================
|
package/src/material/input.css
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
|
|
20
20
|
/* Input root: outlined border */
|
|
21
21
|
[data-style='material'] [data-input-root] {
|
|
22
|
-
@apply flex items-center
|
|
22
|
+
@apply border-surface-z4 flex items-center rounded border bg-transparent p-0 transition-all;
|
|
23
23
|
background-image: none;
|
|
24
24
|
}
|
|
25
25
|
|
|
@@ -33,10 +33,12 @@
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
/* Inputs inside wrapper */
|
|
36
|
-
[data-style='material']
|
|
36
|
+
[data-style='material']
|
|
37
|
+
[data-input-root]
|
|
38
|
+
input:not([type='checkbox'], [type='radio'], [type='color']),
|
|
37
39
|
[data-style='material'] [data-input-root] textarea,
|
|
38
40
|
[data-style='material'] [data-input-root] select {
|
|
39
|
-
@apply
|
|
41
|
+
@apply text-surface-z9 w-full border-none bg-transparent px-3 py-2.5 transition-all outline-none;
|
|
40
42
|
font-size: 0.875rem;
|
|
41
43
|
line-height: 1.25rem;
|
|
42
44
|
}
|
|
@@ -47,18 +49,18 @@
|
|
|
47
49
|
|
|
48
50
|
/* Select inside input-root */
|
|
49
51
|
[data-style='material'] [data-input-root] [data-select-trigger] {
|
|
50
|
-
@apply
|
|
52
|
+
@apply text-surface-z9 rounded border-none bg-transparent px-3 shadow-none ring-0 focus:outline-none;
|
|
51
53
|
font-size: 0.875rem;
|
|
52
54
|
}
|
|
53
55
|
|
|
54
56
|
/* Suppress standalone select open-state ring/border when inside input-root */
|
|
55
57
|
[data-style='material'] [data-input-root] [data-select][data-open='true'] [data-select-trigger] {
|
|
56
|
-
@apply border-none ring-0
|
|
58
|
+
@apply border-none shadow-none ring-0;
|
|
57
59
|
}
|
|
58
60
|
|
|
59
61
|
/* Labels: floating label effect (exclude checkbox — uses inline label) */
|
|
60
62
|
[data-style='material'] [data-field-root]:not([data-field-type='checkbox']) [data-field] > label {
|
|
61
|
-
@apply text-surface-z5
|
|
63
|
+
@apply text-surface-z5 pointer-events-none absolute left-3 px-1 text-sm transition-all;
|
|
62
64
|
top: 50%;
|
|
63
65
|
transform: translateY(-50%);
|
|
64
66
|
background: transparent;
|
|
@@ -66,8 +68,14 @@
|
|
|
66
68
|
}
|
|
67
69
|
|
|
68
70
|
/* Label floats up when input has focus or value */
|
|
69
|
-
[data-style='material']
|
|
70
|
-
[data-
|
|
71
|
+
[data-style='material']
|
|
72
|
+
[data-field-root]:not([data-field-type='checkbox'])
|
|
73
|
+
[data-field]:has([data-input-root]:focus-within)
|
|
74
|
+
> label,
|
|
75
|
+
[data-style='material']
|
|
76
|
+
[data-field-root]:not([data-field-type='checkbox']):not([data-field-empty='true'])
|
|
77
|
+
[data-field]
|
|
78
|
+
> label {
|
|
71
79
|
@apply text-xs;
|
|
72
80
|
top: 0;
|
|
73
81
|
transform: translateY(-50%);
|
|
@@ -75,7 +83,10 @@
|
|
|
75
83
|
padding-inline: 0.25rem;
|
|
76
84
|
}
|
|
77
85
|
|
|
78
|
-
[data-style='material']
|
|
86
|
+
[data-style='material']
|
|
87
|
+
[data-field-root]:not([data-field-type='checkbox'])
|
|
88
|
+
[data-field]:has([data-input-root]:focus-within)
|
|
89
|
+
> label {
|
|
79
90
|
@apply text-primary-z5;
|
|
80
91
|
}
|
|
81
92
|
|
|
@@ -105,7 +116,7 @@
|
|
|
105
116
|
|
|
106
117
|
/* Disabled state */
|
|
107
118
|
[data-style='material'] [data-field-disabled] [data-input-root] {
|
|
108
|
-
@apply border-surface-z3 bg-surface-z1
|
|
119
|
+
@apply border-surface-z3 bg-surface-z1 cursor-not-allowed opacity-60;
|
|
109
120
|
}
|
|
110
121
|
|
|
111
122
|
/* Error state */
|
|
@@ -113,18 +124,21 @@
|
|
|
113
124
|
@apply border-danger-z4;
|
|
114
125
|
}
|
|
115
126
|
|
|
116
|
-
[data-style='material']
|
|
127
|
+
[data-style='material']
|
|
128
|
+
[data-field-root]:not([data-field-type='checkbox'])[data-field-state='fail']
|
|
129
|
+
[data-field]
|
|
130
|
+
> label {
|
|
117
131
|
@apply text-danger-z4;
|
|
118
132
|
}
|
|
119
133
|
|
|
120
134
|
/* Description */
|
|
121
135
|
[data-style='material'] [data-description] {
|
|
122
|
-
@apply text-surface-z5 mt-1 text-xs
|
|
136
|
+
@apply text-surface-z5 mt-1 px-3 text-xs;
|
|
123
137
|
}
|
|
124
138
|
|
|
125
139
|
/* Message */
|
|
126
140
|
[data-style='material'] [data-message] {
|
|
127
|
-
@apply text-danger-z5
|
|
141
|
+
@apply text-danger-z5 mt-1 px-3 text-xs;
|
|
128
142
|
}
|
|
129
143
|
|
|
130
144
|
/* Checkbox */
|
|
@@ -132,7 +146,9 @@
|
|
|
132
146
|
@apply text-surface-z5 text-lg;
|
|
133
147
|
}
|
|
134
148
|
|
|
135
|
-
[data-style='material']
|
|
149
|
+
[data-style='material']
|
|
150
|
+
[data-checkbox-root][data-variant='custom']:has(input:checked)
|
|
151
|
+
[data-checkbox-icon] {
|
|
136
152
|
@apply text-primary-z5;
|
|
137
153
|
}
|
|
138
154
|
|
package/src/material/list.css
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
============================================================================= */
|
|
10
10
|
|
|
11
11
|
[data-style='material'] [data-list]:focus-within {
|
|
12
|
-
|
|
12
|
+
@apply outline-none;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
/* =============================================================================
|
|
@@ -17,34 +17,38 @@
|
|
|
17
17
|
============================================================================= */
|
|
18
18
|
|
|
19
19
|
[data-style='material'] [data-list] [data-list-item] {
|
|
20
|
-
|
|
20
|
+
@apply text-surface-z8;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
[data-style='material'] [data-list] a[data-list-item],
|
|
24
24
|
[data-style='material'] [data-list] button[data-list-item] {
|
|
25
|
-
|
|
25
|
+
@apply text-surface-z7;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
/* Hover and focus (keyboard navigation) */
|
|
29
|
-
[data-style='material']
|
|
30
|
-
[data-
|
|
31
|
-
|
|
29
|
+
[data-style='material']
|
|
30
|
+
[data-list]
|
|
31
|
+
[data-list-item]:hover:not(:disabled):not([data-disabled='true']),
|
|
32
|
+
[data-style='material']
|
|
33
|
+
[data-list]
|
|
34
|
+
[data-list-item]:focus:not(:disabled):not([data-disabled='true']) {
|
|
35
|
+
@apply bg-surface-z2 text-surface-z10 outline-none;
|
|
32
36
|
}
|
|
33
37
|
|
|
34
38
|
/* Active state — muted when list not focused */
|
|
35
39
|
[data-style='material'] [data-list] [data-list-item][data-active='true'] {
|
|
36
|
-
|
|
40
|
+
@apply bg-surface-z2 text-primary-z9;
|
|
37
41
|
}
|
|
38
42
|
|
|
39
43
|
/* Active state — full highlight when list has focus */
|
|
40
44
|
[data-style='material'] [data-list]:focus-within [data-list-item][data-active='true'] {
|
|
41
|
-
|
|
45
|
+
@apply bg-primary-z2 text-primary-z9;
|
|
42
46
|
}
|
|
43
47
|
|
|
44
48
|
/* Active + hover/focus */
|
|
45
49
|
[data-style='material'] [data-list] [data-list-item][data-active='true']:hover:not(:disabled),
|
|
46
50
|
[data-style='material'] [data-list] [data-list-item][data-active='true']:focus:not(:disabled) {
|
|
47
|
-
|
|
51
|
+
@apply bg-primary-z3;
|
|
48
52
|
}
|
|
49
53
|
|
|
50
54
|
/* =============================================================================
|
|
@@ -52,32 +56,32 @@
|
|
|
52
56
|
============================================================================= */
|
|
53
57
|
|
|
54
58
|
[data-style='material'] [data-list] [data-list-item] [data-item-icon] {
|
|
55
|
-
|
|
59
|
+
@apply text-surface-z5;
|
|
56
60
|
}
|
|
57
61
|
|
|
58
62
|
[data-style='material'] [data-list] [data-list-item]:hover:not(:disabled) [data-item-icon],
|
|
59
63
|
[data-style='material'] [data-list] [data-list-item]:focus:not(:disabled) [data-item-icon] {
|
|
60
|
-
|
|
64
|
+
@apply text-surface-z7;
|
|
61
65
|
}
|
|
62
66
|
|
|
63
67
|
[data-style='material'] [data-list] [data-list-item][data-active='true'] [data-item-icon] {
|
|
64
|
-
|
|
68
|
+
@apply text-primary-z6;
|
|
65
69
|
}
|
|
66
70
|
|
|
67
71
|
[data-style='material'] [data-list] [data-list-item] [data-item-description] {
|
|
68
|
-
|
|
72
|
+
@apply text-surface-z5;
|
|
69
73
|
}
|
|
70
74
|
|
|
71
75
|
[data-style='material'] [data-list] [data-list-item][data-active='true'] [data-item-description] {
|
|
72
|
-
|
|
76
|
+
@apply text-primary-z7;
|
|
73
77
|
}
|
|
74
78
|
|
|
75
79
|
[data-style='material'] [data-list] [data-list-item] [data-item-badge] {
|
|
76
|
-
|
|
80
|
+
@apply text-surface-z6 bg-surface-z2 rounded-full;
|
|
77
81
|
}
|
|
78
82
|
|
|
79
83
|
[data-style='material'] [data-list] [data-list-item][data-active='true'] [data-item-badge] {
|
|
80
|
-
|
|
84
|
+
@apply text-primary-z8 bg-primary-z2;
|
|
81
85
|
}
|
|
82
86
|
|
|
83
87
|
/* =============================================================================
|
|
@@ -85,12 +89,12 @@
|
|
|
85
89
|
============================================================================= */
|
|
86
90
|
|
|
87
91
|
[data-style='material'] [data-list] [data-list-group] {
|
|
88
|
-
|
|
92
|
+
@apply text-surface-z6 font-medium;
|
|
89
93
|
}
|
|
90
94
|
|
|
91
95
|
[data-style='material'] [data-list] [data-list-group]:hover:not(:disabled),
|
|
92
96
|
[data-style='material'] [data-list] [data-list-group]:focus:not(:disabled) {
|
|
93
|
-
|
|
97
|
+
@apply bg-surface-z3 text-surface-z8;
|
|
94
98
|
}
|
|
95
99
|
|
|
96
100
|
/* =============================================================================
|
|
@@ -98,7 +102,7 @@
|
|
|
98
102
|
============================================================================= */
|
|
99
103
|
|
|
100
104
|
[data-style='material'] [data-list] [data-list-separator] {
|
|
101
|
-
|
|
105
|
+
@apply bg-surface-z3;
|
|
102
106
|
}
|
|
103
107
|
|
|
104
108
|
/* =============================================================================
|
|
@@ -106,17 +110,17 @@
|
|
|
106
110
|
============================================================================= */
|
|
107
111
|
|
|
108
112
|
[data-style='material'] [data-list] [data-list-item][data-selected='true'] {
|
|
109
|
-
|
|
113
|
+
@apply bg-primary-z2 text-primary-z9;
|
|
110
114
|
}
|
|
111
115
|
|
|
112
116
|
[data-style='material'] [data-list]:focus-within [data-list-item][data-selected='true'] {
|
|
113
|
-
|
|
117
|
+
@apply bg-primary-z2;
|
|
114
118
|
}
|
|
115
119
|
|
|
116
120
|
[data-style='material'] [data-list] [data-list-item][data-selected='true']:hover:not(:disabled) {
|
|
117
|
-
|
|
121
|
+
@apply bg-primary-z3;
|
|
118
122
|
}
|
|
119
123
|
|
|
120
124
|
[data-style='material'] [data-list] [data-list-item][data-selected='true'] [data-item-icon] {
|
|
121
|
-
|
|
125
|
+
@apply text-primary-z6;
|
|
122
126
|
}
|