@rokkit/themes 1.1.16 → 1.1.17

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 (233) hide show
  1. package/build.mjs +29 -1
  2. package/dist/base/alert-list.css +91 -0
  3. package/dist/base/avatar.css +82 -0
  4. package/dist/base/badge.css +41 -0
  5. package/dist/base/breadcrumbs.css +47 -0
  6. package/dist/base/button.css +254 -0
  7. package/dist/base/card.css +39 -0
  8. package/dist/base/carousel.css +128 -0
  9. package/dist/base/chart.css +94 -0
  10. package/dist/base/code-block.css +76 -0
  11. package/dist/base/command-palette.css +35 -0
  12. package/dist/base/connector.css +92 -0
  13. package/dist/base/density.css +60 -0
  14. package/dist/base/display.css +99 -0
  15. package/dist/base/divider.css +49 -0
  16. package/dist/base/dropdown.css +167 -0
  17. package/dist/base/floating-action.css +388 -0
  18. package/dist/base/floating-navigation.css +405 -0
  19. package/dist/base/frame.css +36 -0
  20. package/dist/base/gradient-border.css +32 -0
  21. package/dist/base/graph-paper.css +83 -0
  22. package/dist/base/grid.css +93 -0
  23. package/dist/base/input.css +342 -0
  24. package/dist/base/item.css +91 -0
  25. package/dist/base/layout.css +17 -0
  26. package/dist/base/list.css +188 -0
  27. package/dist/base/menu.css +277 -0
  28. package/dist/base/message.css +62 -0
  29. package/dist/base/nav-content.css +48 -0
  30. package/dist/base/palette-manager.css +244 -0
  31. package/dist/base/pill.css +61 -0
  32. package/dist/base/progress.css +34 -0
  33. package/dist/base/radius.css +41 -0
  34. package/dist/base/range.css +122 -0
  35. package/dist/base/rating.css +42 -0
  36. package/dist/base/responsive-grid.css +8 -0
  37. package/dist/base/reveal.css +37 -0
  38. package/dist/base/search-filter.css +132 -0
  39. package/dist/base/select.css +413 -0
  40. package/dist/base/shine.css +14 -0
  41. package/dist/base/stack.css +76 -0
  42. package/dist/base/status-list.css +19 -0
  43. package/dist/base/step-indicator.css +74 -0
  44. package/dist/base/stepper.css +148 -0
  45. package/dist/base/swatch.css +85 -0
  46. package/dist/base/switch.css +168 -0
  47. package/dist/base/table.css +310 -0
  48. package/dist/base/tabs.css +184 -0
  49. package/dist/base/tilt.css +14 -0
  50. package/dist/base/timeline.css +84 -0
  51. package/dist/base/toc.css +50 -0
  52. package/dist/base/toggle.css +185 -0
  53. package/dist/base/toolbar.css +341 -0
  54. package/dist/base/tooltip.css +64 -0
  55. package/dist/base/tree.css +235 -0
  56. package/dist/base/typography.css +50 -0
  57. package/dist/base/upload-progress.css +155 -0
  58. package/dist/base/upload-target.css +77 -0
  59. package/dist/frosted/button.css +228 -0
  60. package/dist/frosted/card.css +128 -0
  61. package/dist/frosted/chart.css +38 -0
  62. package/dist/frosted/code-block.css +33 -0
  63. package/dist/frosted/command-palette.css +43 -0
  64. package/dist/frosted/dropdown.css +64 -0
  65. package/dist/frosted/floating-action.css +66 -0
  66. package/dist/frosted/floating-navigation.css +78 -0
  67. package/dist/frosted/frame.css +17 -0
  68. package/dist/frosted/grid.css +26 -0
  69. package/dist/frosted/input.css +135 -0
  70. package/dist/frosted/list.css +153 -0
  71. package/dist/frosted/menu.css +107 -0
  72. package/dist/frosted/message.css +39 -0
  73. package/dist/frosted/palette-manager.css +97 -0
  74. package/dist/frosted/pill.css +17 -0
  75. package/dist/frosted/progress.css +13 -0
  76. package/dist/frosted/range.css +64 -0
  77. package/dist/frosted/rating.css +13 -0
  78. package/dist/frosted/search-filter.css +53 -0
  79. package/dist/frosted/select.css +192 -0
  80. package/dist/frosted/status-list.css +67 -0
  81. package/dist/frosted/step-indicator.css +43 -0
  82. package/dist/frosted/swatch.css +21 -0
  83. package/dist/frosted/switch.css +43 -0
  84. package/dist/frosted/table.css +122 -0
  85. package/dist/frosted/tabs.css +61 -0
  86. package/dist/frosted/timeline.css +46 -0
  87. package/dist/frosted/toc.css +19 -0
  88. package/dist/frosted/toggle.css +77 -0
  89. package/dist/frosted/toolbar.css +92 -0
  90. package/dist/frosted/tooltip.css +7 -0
  91. package/dist/frosted/tree.css +115 -0
  92. package/dist/frosted.css +9 -1
  93. package/dist/index.css +9 -1
  94. package/dist/material/button.css +178 -0
  95. package/dist/material/card.css +99 -0
  96. package/dist/material/chart.css +38 -0
  97. package/dist/material/code-block.css +33 -0
  98. package/dist/material/command-palette.css +37 -0
  99. package/dist/material/dropdown.css +50 -0
  100. package/dist/material/floating-action.css +64 -0
  101. package/dist/material/floating-navigation.css +74 -0
  102. package/dist/material/frame.css +17 -0
  103. package/dist/material/grid.css +26 -0
  104. package/dist/material/input.css +164 -0
  105. package/dist/material/list.css +140 -0
  106. package/dist/material/menu.css +92 -0
  107. package/dist/material/message.css +35 -0
  108. package/dist/material/palette-manager.css +97 -0
  109. package/dist/material/pill.css +17 -0
  110. package/dist/material/progress.css +13 -0
  111. package/dist/material/range.css +62 -0
  112. package/dist/material/rating.css +13 -0
  113. package/dist/material/search-filter.css +49 -0
  114. package/dist/material/select.css +177 -0
  115. package/dist/material/status-list.css +66 -0
  116. package/dist/material/step-indicator.css +40 -0
  117. package/dist/material/swatch.css +21 -0
  118. package/dist/material/switch.css +28 -0
  119. package/dist/material/table.css +120 -0
  120. package/dist/material/tabs.css +88 -0
  121. package/dist/material/timeline.css +45 -0
  122. package/dist/material/toc.css +18 -0
  123. package/dist/material/toggle.css +74 -0
  124. package/dist/material/toolbar.css +85 -0
  125. package/dist/material/tooltip.css +7 -0
  126. package/dist/material/tree.css +134 -0
  127. package/dist/minimal/button.css +176 -0
  128. package/dist/minimal/card.css +99 -0
  129. package/dist/minimal/chart.css +38 -0
  130. package/dist/minimal/code-block.css +33 -0
  131. package/dist/minimal/command-palette.css +37 -0
  132. package/dist/minimal/dropdown.css +50 -0
  133. package/dist/minimal/floating-action.css +63 -0
  134. package/dist/minimal/floating-navigation.css +70 -0
  135. package/dist/minimal/frame.css +17 -0
  136. package/dist/minimal/grid.css +26 -0
  137. package/dist/minimal/input.css +171 -0
  138. package/dist/minimal/list.css +168 -0
  139. package/dist/minimal/menu.css +88 -0
  140. package/dist/minimal/message.css +35 -0
  141. package/dist/minimal/palette-manager.css +97 -0
  142. package/dist/minimal/pill.css +17 -0
  143. package/dist/minimal/progress.css +13 -0
  144. package/dist/minimal/range.css +61 -0
  145. package/dist/minimal/rating.css +13 -0
  146. package/dist/minimal/search-filter.css +49 -0
  147. package/dist/minimal/select.css +158 -0
  148. package/dist/minimal/status-list.css +66 -0
  149. package/dist/minimal/step-indicator.css +40 -0
  150. package/dist/minimal/swatch.css +21 -0
  151. package/dist/minimal/switch.css +32 -0
  152. package/dist/minimal/table.css +118 -0
  153. package/dist/minimal/tabs.css +151 -0
  154. package/dist/minimal/timeline.css +45 -0
  155. package/dist/minimal/toc.css +18 -0
  156. package/dist/minimal/toggle.css +74 -0
  157. package/dist/minimal/toolbar.css +85 -0
  158. package/dist/minimal/tooltip.css +7 -0
  159. package/dist/minimal/tree.css +141 -0
  160. package/dist/rokkit/avatar.css +29 -0
  161. package/dist/rokkit/badge.css +29 -0
  162. package/dist/rokkit/button.css +308 -0
  163. package/dist/rokkit/card.css +102 -0
  164. package/dist/rokkit/chart.css +38 -0
  165. package/dist/rokkit/code-block.css +33 -0
  166. package/dist/rokkit/command-palette.css +37 -0
  167. package/dist/rokkit/connector.css +11 -0
  168. package/dist/rokkit/divider.css +26 -0
  169. package/dist/rokkit/dropdown.css +70 -0
  170. package/dist/rokkit/floating-action.css +65 -0
  171. package/dist/rokkit/floating-navigation.css +83 -0
  172. package/dist/rokkit/frame.css +17 -0
  173. package/dist/rokkit/grid.css +46 -0
  174. package/dist/rokkit/input.css +134 -0
  175. package/dist/rokkit/list.css +202 -0
  176. package/dist/rokkit/menu.css +93 -0
  177. package/dist/rokkit/message.css +44 -0
  178. package/dist/rokkit/palette-manager.css +97 -0
  179. package/dist/rokkit/pill.css +17 -0
  180. package/dist/rokkit/progress.css +13 -0
  181. package/dist/rokkit/range.css +62 -0
  182. package/dist/rokkit/rating.css +13 -0
  183. package/dist/rokkit/search-filter.css +49 -0
  184. package/dist/rokkit/select.css +190 -0
  185. package/dist/rokkit/status-list.css +68 -0
  186. package/dist/rokkit/step-indicator.css +40 -0
  187. package/dist/rokkit/swatch.css +20 -0
  188. package/dist/rokkit/switch.css +29 -0
  189. package/dist/rokkit/table.css +118 -0
  190. package/dist/rokkit/tabs.css +114 -0
  191. package/dist/rokkit/timeline.css +45 -0
  192. package/dist/rokkit/toc.css +18 -0
  193. package/dist/rokkit/toggle.css +85 -0
  194. package/dist/rokkit/toolbar.css +90 -0
  195. package/dist/rokkit/tooltip.css +7 -0
  196. package/dist/rokkit/tree.css +149 -0
  197. package/dist/rokkit/upload-progress.css +102 -0
  198. package/dist/rokkit/upload-target.css +50 -0
  199. package/dist/zen-sumi/button.css +176 -0
  200. package/dist/zen-sumi/card.css +104 -0
  201. package/dist/zen-sumi/chart.css +41 -0
  202. package/dist/zen-sumi/code-block.css +35 -0
  203. package/dist/zen-sumi/command-palette.css +39 -0
  204. package/dist/zen-sumi/dropdown.css +53 -0
  205. package/dist/zen-sumi/floating-action.css +68 -0
  206. package/dist/zen-sumi/floating-navigation.css +74 -0
  207. package/dist/zen-sumi/frame.css +20 -0
  208. package/dist/zen-sumi/grid.css +26 -0
  209. package/dist/zen-sumi/input.css +171 -0
  210. package/dist/zen-sumi/list.css +128 -0
  211. package/dist/zen-sumi/menu.css +91 -0
  212. package/dist/zen-sumi/message.css +37 -0
  213. package/dist/zen-sumi/palette-manager.css +97 -0
  214. package/dist/zen-sumi/pill.css +17 -0
  215. package/dist/zen-sumi/progress.css +13 -0
  216. package/dist/zen-sumi/range.css +62 -0
  217. package/dist/zen-sumi/rating.css +13 -0
  218. package/dist/zen-sumi/search-filter.css +49 -0
  219. package/dist/zen-sumi/select.css +160 -0
  220. package/dist/zen-sumi/status-list.css +66 -0
  221. package/dist/zen-sumi/step-indicator.css +40 -0
  222. package/dist/zen-sumi/swatch.css +21 -0
  223. package/dist/zen-sumi/switch.css +34 -0
  224. package/dist/zen-sumi/table.css +128 -0
  225. package/dist/zen-sumi/tabs.css +78 -0
  226. package/dist/zen-sumi/timeline.css +46 -0
  227. package/dist/zen-sumi/toc.css +22 -0
  228. package/dist/zen-sumi/toggle.css +85 -0
  229. package/dist/zen-sumi/toolbar.css +86 -0
  230. package/dist/zen-sumi/tooltip.css +7 -0
  231. package/dist/zen-sumi/tree.css +137 -0
  232. package/package.json +15 -15
  233. package/src/frosted/button.css +9 -1
@@ -0,0 +1,148 @@
1
+ /* Stepper — base structural styles */
2
+
3
+ [data-stepper] {
4
+ display: flex;
5
+ align-items: flex-start;
6
+ width: 100%;
7
+ }
8
+
9
+ [data-stepper][data-orientation='vertical'] {
10
+ flex-direction: column;
11
+ }
12
+
13
+ /* ─── Step container ─── */
14
+
15
+ [data-stepper-step] {
16
+ display: flex;
17
+ flex-direction: column;
18
+ align-items: center;
19
+ flex: 0 0 auto;
20
+ }
21
+
22
+ /* ─── Step circle ─── */
23
+
24
+ [data-stepper-circle] {
25
+ width: 2.5rem;
26
+ height: 2.5rem;
27
+ border-radius: 9999px;
28
+ border: 2px solid currentColor;
29
+ display: flex;
30
+ align-items: center;
31
+ justify-content: center;
32
+ cursor: pointer;
33
+ font-weight: 600;
34
+ font-size: 0.875rem;
35
+ background: transparent;
36
+ color: inherit;
37
+ padding: 0;
38
+ transition:
39
+ background-color 0.2s ease,
40
+ border-color 0.2s ease,
41
+ color 0.2s ease;
42
+ }
43
+
44
+ [data-stepper-circle]:disabled {
45
+ cursor: default;
46
+ opacity: 0.4;
47
+ }
48
+
49
+ [data-stepper-step][data-completed] [data-stepper-circle] {
50
+ background-color: var(--primary);
51
+ border-color: var(--primary);
52
+ color: var(--paper);
53
+ }
54
+
55
+ /* Check glyph inside a completed circle follows the circle's color
56
+ (var(--paper) on a --primary background → correct contrast). */
57
+ [data-stepper-check-icon] {
58
+ color: inherit;
59
+ }
60
+
61
+ [data-stepper-step][data-active] [data-stepper-circle] {
62
+ border-color: var(--primary);
63
+ color: var(--primary);
64
+ --un-ring-width:3px;--un-ring-offset-shadow:var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow);--un-ring-color:color-mix(in srgb, var(--color-primary) calc(0.2 * 100%), transparent);
65
+ }
66
+
67
+ /* ─── Connector line ─── */
68
+
69
+ [data-stepper-connector] {
70
+ background-color: var(--paper-mute);
71
+ flex: 1;
72
+ height: 2px;
73
+ min-width: 2rem;
74
+ align-self: center;
75
+ /* Vertically center with the circle (half of 2.5rem) */
76
+ margin-top: 1.25rem;
77
+ transition: background-color 0.2s ease;
78
+ }
79
+
80
+ [data-stepper-connector][data-completed] {
81
+ background-color: var(--primary);
82
+ }
83
+
84
+ /* Vertical orientation connectors */
85
+ [data-stepper][data-orientation='vertical'] [data-stepper-connector] {
86
+ width: 2px;
87
+ height: 2rem;
88
+ min-width: auto;
89
+ margin-top: 0;
90
+ margin-left: 1.25rem;
91
+ align-self: flex-start;
92
+ }
93
+
94
+ /* ─── Label ─── */
95
+
96
+ [data-stepper-label] {
97
+ margin-top: 0.5rem;
98
+ font-size: 0.8125rem;
99
+ text-align: center;
100
+ max-width: 6rem;
101
+ line-height: 1.3;
102
+ }
103
+
104
+ /* ─── Sub-stage dots ─── */
105
+
106
+ [data-stepper-dots] {
107
+ display: flex;
108
+ gap: 0.25rem;
109
+ margin-top: 0.375rem;
110
+ }
111
+
112
+ [data-stepper-dot] {
113
+ border-color: var(--paper-edge);
114
+ width: 0.5rem;
115
+ height: 0.5rem;
116
+ border-radius: 9999px;
117
+ border-width: 1px;
118
+ border-style: solid;
119
+ background: transparent;
120
+ cursor: pointer;
121
+ padding: 0;
122
+ transition:
123
+ background-color 0.2s ease,
124
+ border-color 0.2s ease;
125
+ }
126
+
127
+ [data-stepper-dot]:disabled {
128
+ cursor: default;
129
+ opacity: 0.4;
130
+ }
131
+
132
+ [data-stepper-dot][data-completed] {
133
+ background-color: var(--primary);
134
+ border-color: var(--primary);
135
+ }
136
+
137
+ [data-stepper-dot][data-active] {
138
+ background-color: var(--primary);
139
+ border-color: var(--primary);
140
+ --un-ring-width:2px;--un-ring-offset-shadow:var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow);--un-ring-color:color-mix(in srgb, var(--color-primary) calc(0.25 * 100%), transparent);
141
+ }
142
+
143
+ /* ─── Content area ─── */
144
+
145
+ [data-stepper-content] {
146
+ width: 100%;
147
+ margin-top: 1.5rem;
148
+ }
@@ -0,0 +1,85 @@
1
+ /* =============================================================================
2
+ InputSwatch / Swatch — Base structural styles
3
+ ============================================================================= */
4
+
5
+ /* Container */
6
+ [data-swatch] {
7
+ display:flex;flex-wrap:wrap;gap:0.5rem;padding:0.25rem;
8
+ }
9
+
10
+ /* Button: padding creates the ring gap; background is the gradient ring */
11
+ [data-swatch-item] {
12
+ cursor:pointer;border-width:0px;background-color:transparent;padding:0.125rem;line-height:1;
13
+ transition:
14
+ background 120ms ease,
15
+ outline-color 120ms ease;
16
+ outline: 2px solid transparent;
17
+ outline-offset: 0;
18
+ }
19
+
20
+ /* Border-radius follows shape */
21
+ [data-swatch][data-swatch-shape='circle'] [data-swatch-item] {
22
+ border-radius:9999px;
23
+ }
24
+
25
+ [data-swatch][data-swatch-shape='square'] [data-swatch-item] {
26
+ border-radius:0.25rem;
27
+ }
28
+
29
+ /* ── Selected: gradient shows through the padding gap as a ring ────────────── */
30
+
31
+ [data-swatch-item][data-selected] {
32
+ background: linear-gradient(
33
+ 135deg,
34
+ var(--swatch-fill, currentColor),
35
+ var(--swatch-stroke, currentColor)
36
+ );
37
+ }
38
+
39
+ /* ── Hover + keyboard focus: same visual treatment ────────────────────────── */
40
+
41
+ [data-swatch-item]:hover:not(:disabled):not([data-disabled]):not([data-selected]),
42
+ [data-swatch-item]:focus-visible:not(:disabled):not([data-disabled]):not([data-selected]) {
43
+ outline-color: var(--swatch-stroke, currentColor);
44
+ }
45
+
46
+ /* Focus on selected item: show outline so keyboard position is still visible */
47
+ [data-swatch-item][data-selected]:focus-visible {
48
+ outline: 2px solid currentColor;
49
+ outline-offset: 3px;
50
+ }
51
+
52
+ /* ── Disabled ─────────────────────────────────────────────────────────────── */
53
+
54
+ [data-swatch-item]:disabled,
55
+ [data-swatch-item][data-disabled] {
56
+ cursor:not-allowed;opacity:0.4;
57
+ }
58
+
59
+ /* ── Default cells (fill the button's content box) ───────────────────────── */
60
+
61
+ [data-swatch-square],
62
+ [data-swatch-circle] {
63
+ display: block;
64
+ background-color: var(--swatch-fill, currentColor);
65
+ }
66
+
67
+ [data-swatch-square] {
68
+ height:1.5rem;width:1.5rem;border-radius:0.125rem;
69
+ }
70
+
71
+ [data-swatch-circle] {
72
+ height:1.5rem;width:1.5rem;border-radius:9999px;
73
+ }
74
+
75
+ /* ── Size variants ─────────────────────────────────────────────────────────── */
76
+
77
+ [data-swatch][data-swatch-size='sm'] [data-swatch-square],
78
+ [data-swatch][data-swatch-size='sm'] [data-swatch-circle] {
79
+ height:1.25rem;width:1.25rem;
80
+ }
81
+
82
+ [data-swatch][data-swatch-size='lg'] [data-swatch-square],
83
+ [data-swatch][data-swatch-size='lg'] [data-swatch-circle] {
84
+ height:2rem;width:2rem;
85
+ }
@@ -0,0 +1,168 @@
1
+ /**
2
+ * Switch - Base Structural Styles
3
+ *
4
+ * These styles provide layout, positioning, size variants, and transitions.
5
+ * No colors, shadows, or visual theming — those belong in theme styles.
6
+ */
7
+
8
+ /* =============================================================================
9
+ Switch Root (button)
10
+ ============================================================================= */
11
+
12
+ [data-switch] {
13
+ display: inline-flex;
14
+ align-items: center;
15
+ gap: 0.5rem;
16
+ cursor: pointer;
17
+ border: none;
18
+ background: transparent;
19
+ padding: 0;
20
+ user-select: none;
21
+ }
22
+
23
+ [data-switch]:focus {
24
+ outline: none;
25
+ }
26
+
27
+ [data-switch][data-switch-disabled] {
28
+ pointer-events: none;
29
+ opacity: 0.5;
30
+ cursor: not-allowed;
31
+ }
32
+
33
+ /* Bounding height aligns to the shared control scale (so a switch lines up with
34
+ buttons/inputs/etc. in a row); the track/thumb keep their geometry, centered
35
+ via align-items: center. */
36
+ [data-switch][data-switch-size='sm'] {
37
+ min-height: var(--control-h-sm);
38
+ }
39
+
40
+ [data-switch][data-switch-size='md'],
41
+ [data-switch]:not([data-switch-size]) {
42
+ min-height: var(--control-h-md);
43
+ }
44
+
45
+ [data-switch][data-switch-size='lg'] {
46
+ min-height: var(--control-h-lg);
47
+ }
48
+
49
+ /* =============================================================================
50
+ Track
51
+ ============================================================================= */
52
+
53
+ [data-switch-track] {
54
+ position: relative;
55
+ display: inline-block;
56
+ border-radius: 9999px;
57
+ transition: background-color 200ms ease;
58
+ flex-shrink: 0;
59
+ }
60
+
61
+ /* =============================================================================
62
+ Thumb
63
+ ============================================================================= */
64
+
65
+ [data-switch-thumb] {
66
+ position: absolute;
67
+ top: 50%;
68
+ transform: translateY(-50%) translateX(0);
69
+ border-radius: 9999px;
70
+ display: flex;
71
+ align-items: center;
72
+ justify-content: center;
73
+ transition:
74
+ transform 200ms ease,
75
+ background-color 200ms ease;
76
+ }
77
+
78
+ [data-switch][aria-checked='true'] [data-switch-thumb] {
79
+ transform: translateY(-50%) translateX(var(--switch-thumb-travel));
80
+ }
81
+
82
+ /* =============================================================================
83
+ Size Variants
84
+ ============================================================================= */
85
+
86
+ /* Small: track 28×16, thumb 12px */
87
+ [data-switch][data-switch-size='sm'] [data-switch-track] {
88
+ width: 1.75rem;
89
+ height: 1rem;
90
+ }
91
+
92
+ [data-switch][data-switch-size='sm'] [data-switch-thumb] {
93
+ width: 0.75rem;
94
+ height: 0.75rem;
95
+ left: 0.125rem;
96
+ --switch-thumb-travel: 0.75rem;
97
+ }
98
+
99
+ [data-switch][data-switch-size='sm'] [data-switch-icon] {
100
+ font-size: 0.5rem;
101
+ }
102
+
103
+ [data-switch][data-switch-size='sm'] [data-switch-label] {
104
+ font-size: 0.75rem;
105
+ }
106
+
107
+ /* Medium (default): track 44×24, thumb 18px */
108
+ [data-switch][data-switch-size='md'] [data-switch-track],
109
+ [data-switch]:not([data-switch-size]) [data-switch-track] {
110
+ width: 2.75rem;
111
+ height: 1.5rem;
112
+ }
113
+
114
+ [data-switch][data-switch-size='md'] [data-switch-thumb],
115
+ [data-switch]:not([data-switch-size]) [data-switch-thumb] {
116
+ width: 1.125rem;
117
+ height: 1.125rem;
118
+ left: 0.1875rem;
119
+ --switch-thumb-travel: 1.25rem;
120
+ }
121
+
122
+ [data-switch][data-switch-size='md'] [data-switch-icon],
123
+ [data-switch]:not([data-switch-size]) [data-switch-icon] {
124
+ font-size: 0.625rem;
125
+ }
126
+
127
+ [data-switch][data-switch-size='md'] [data-switch-label],
128
+ [data-switch]:not([data-switch-size]) [data-switch-label] {
129
+ font-size: 0.875rem;
130
+ }
131
+
132
+ /* Large: track 56×32, thumb 24px */
133
+ [data-switch][data-switch-size='lg'] [data-switch-track] {
134
+ width: 3.5rem;
135
+ height: 2rem;
136
+ }
137
+
138
+ [data-switch][data-switch-size='lg'] [data-switch-thumb] {
139
+ width: 1.5rem;
140
+ height: 1.5rem;
141
+ left: 0.25rem;
142
+ --switch-thumb-travel: 1.5rem;
143
+ }
144
+
145
+ [data-switch][data-switch-size='lg'] [data-switch-icon] {
146
+ font-size: 0.75rem;
147
+ }
148
+
149
+ [data-switch][data-switch-size='lg'] [data-switch-label] {
150
+ font-size: 1rem;
151
+ }
152
+
153
+ /* =============================================================================
154
+ Label
155
+ ============================================================================= */
156
+
157
+ [data-switch-label] {
158
+ font-weight: 500;
159
+ user-select: none;
160
+ }
161
+
162
+ /* =============================================================================
163
+ Icon (inside thumb)
164
+ ============================================================================= */
165
+
166
+ [data-switch-icon] {
167
+ flex-shrink: 0;
168
+ }
@@ -0,0 +1,310 @@
1
+ /**
2
+ * Table - Base Structural Styles
3
+ *
4
+ * These styles provide layout, positioning, and basic structure.
5
+ * No colors, shadows, or visual theming - those belong in theme styles.
6
+ */
7
+
8
+ /* =============================================================================
9
+ Table Container
10
+ ============================================================================= */
11
+
12
+ [data-table] {
13
+ overflow-x: auto;
14
+ }
15
+
16
+ [data-table][data-disabled='true'] {
17
+ pointer-events: none;
18
+ opacity: 0.5;
19
+ }
20
+
21
+ [data-table] table {
22
+ width: 100%;
23
+ border-collapse: collapse;
24
+ table-layout: auto;
25
+ }
26
+
27
+ /* =============================================================================
28
+ Caption
29
+ ============================================================================= */
30
+
31
+ [data-table-caption] {
32
+ text-align: left;
33
+ font-weight: 600;
34
+ padding: 0.5rem 0.75rem;
35
+ caption-side: top;
36
+ }
37
+
38
+ /* =============================================================================
39
+ Header
40
+ ============================================================================= */
41
+
42
+ [data-table-header] th {
43
+ position: sticky;
44
+ top: 0;
45
+ z-index: 1;
46
+ text-align: left;
47
+ font-weight: 600;
48
+ white-space: nowrap;
49
+ user-select: none;
50
+ }
51
+
52
+ [data-table-header-cell] {
53
+ display: table-cell;
54
+ cursor: default;
55
+ }
56
+
57
+ [data-table-header-cell][data-sortable='true'] {
58
+ cursor: pointer;
59
+ }
60
+
61
+ [data-table-header-text] {
62
+ vertical-align: middle;
63
+ }
64
+
65
+ [data-table-sort-icon] {
66
+ display: inline-block;
67
+ vertical-align: middle;
68
+ margin-left: 0.25rem;
69
+ opacity: 0.4;
70
+ transition: opacity 150ms ease;
71
+ }
72
+
73
+ [data-table-header-cell][data-sort-order='ascending'] [data-table-sort-icon],
74
+ [data-table-header-cell][data-sort-order='descending'] [data-table-sort-icon] {
75
+ opacity: 1;
76
+ }
77
+
78
+ /* =============================================================================
79
+ Body & Rows
80
+ ============================================================================= */
81
+
82
+ [data-table-row] {
83
+ cursor: pointer;
84
+ transition: background-color 150ms ease;
85
+ }
86
+
87
+ [data-table][data-selectable='false'] [data-table-row] {
88
+ cursor: default;
89
+ }
90
+
91
+ [data-table-row]:focus {
92
+ outline: none;
93
+ }
94
+
95
+ /* =============================================================================
96
+ Cells
97
+ ============================================================================= */
98
+
99
+ [data-table-cell] {
100
+ vertical-align: middle;
101
+ }
102
+
103
+ [data-cell-icon] {
104
+ display: inline-block;
105
+ vertical-align: middle;
106
+ margin-right: 0.375rem;
107
+ flex-shrink: 0;
108
+ }
109
+
110
+ [data-cell-value] {
111
+ vertical-align: middle;
112
+ }
113
+
114
+ /* =============================================================================
115
+ Tree Table — hierarchy cell layout
116
+ ============================================================================= */
117
+
118
+ /* Hierarchy cell hosts the connector prefix + chevron + label inline so a
119
+ row stays a single line regardless of nesting depth. */
120
+ [data-tree-table] [data-table-cell][data-hierarchy='true'] {
121
+ display: flex;
122
+ align-items: center;
123
+ gap: 0.375rem;
124
+ white-space: nowrap;
125
+ }
126
+
127
+ [data-tree-table-cell-prefix] {
128
+ display: inline-flex;
129
+ align-items: center;
130
+ flex-shrink: 0;
131
+ }
132
+
133
+ /* Lock the connector slot width to match the toggle button so every
134
+ row indents by the same step regardless of whether the slot holds a
135
+ chevron, a connector line, or the empty placeholder. */
136
+ [data-tree-table] [data-connector] {
137
+ width: 1.25rem;
138
+ min-height: 1.5rem;
139
+ }
140
+
141
+ /* Placeholder used in the toggle slot for non-expandable (leaf) rows
142
+ so the label X-position lines up vertically across rows regardless
143
+ of whether the row has a chevron. Same box as the toggle button. */
144
+ [data-tree-table-empty] {
145
+ display: inline-block;
146
+ width: 1.25rem;
147
+ height: 1.25rem;
148
+ flex-shrink: 0;
149
+ }
150
+
151
+ /* Connector lines — broaden the Tree-component rules so the lines also
152
+ appear inside a tree-table. */
153
+ [data-tree-table]:not([data-line-style='none']) [data-connector-v] {
154
+ border-right-width: 1px;
155
+ }
156
+ [data-tree-table]:not([data-line-style='none']) [data-connector-h] {
157
+ border-bottom-width: 1px;
158
+ }
159
+ [data-tree-table]:not([data-line-style='none']) [data-connector-corner] {
160
+ border-bottom-width: 1px;
161
+ border-right-width: 1px;
162
+ }
163
+ [data-tree-table][data-line-style='solid'] [data-connector-v] {
164
+ border-right-style: solid;
165
+ }
166
+ [data-tree-table][data-line-style='solid'] [data-connector-h] {
167
+ border-bottom-style: solid;
168
+ }
169
+ [data-tree-table][data-line-style='solid'] [data-connector-corner] {
170
+ border-bottom-style: solid;
171
+ border-right-style: solid;
172
+ }
173
+ [data-tree-table][data-line-style='dashed'] [data-connector-v] {
174
+ border-right-style: dashed;
175
+ }
176
+ [data-tree-table][data-line-style='dashed'] [data-connector-h] {
177
+ border-bottom-style: dashed;
178
+ }
179
+ [data-tree-table][data-line-style='dotted'] [data-connector-v] {
180
+ border-right-style: dotted;
181
+ }
182
+ [data-tree-table][data-line-style='dotted'] [data-connector-h] {
183
+ border-bottom-style: dotted;
184
+ }
185
+
186
+ /* Toggle button is square, borderless, fills the connector slot.
187
+ Sized to match the connector visual rhythm — no extra row height. */
188
+ [data-tree-table-toggle] {
189
+ display: inline-flex;
190
+ align-items: center;
191
+ justify-content: center;
192
+ width: 1.25rem;
193
+ height: 1.25rem;
194
+ padding: 0;
195
+ background: transparent;
196
+ border: 0;
197
+ color: inherit;
198
+ cursor: pointer;
199
+ border-radius: 0.25rem;
200
+ }
201
+
202
+ [data-tree-table-toggle]:hover {
203
+ background: var(--paper-mute);
204
+ }
205
+
206
+ [data-tree-table-toggle]:focus-visible {
207
+ outline: 2px solid var(--focus-ring);
208
+ outline-offset: 1px;
209
+ }
210
+
211
+ /* Tree-table rows pick up data-tree-level from the component — use it as
212
+ a hook for theme-specific connector tinting, not for indent (the
213
+ Connector spans already provide indentation). */
214
+
215
+ /* =============================================================================
216
+ Empty State
217
+ ============================================================================= */
218
+
219
+ [data-table-empty] {
220
+ text-align: center;
221
+ font-style: italic;
222
+ opacity: 0.6;
223
+ }
224
+
225
+ /* =============================================================================
226
+ Size Variants
227
+ ============================================================================= */
228
+
229
+ [data-table][data-size='sm'] [data-table-header-cell],
230
+ [data-table][data-size='sm'] [data-table-cell] {
231
+ padding: 0.375rem 0.625rem;
232
+ font-size: 0.75rem;
233
+ }
234
+
235
+ [data-table][data-size='sm'] [data-table-caption] {
236
+ padding: 0.375rem 0.625rem;
237
+ font-size: 0.75rem;
238
+ }
239
+
240
+ [data-table][data-size='md'] [data-table-header-cell],
241
+ [data-table]:not([data-size]) [data-table-header-cell],
242
+ [data-table][data-size='md'] [data-table-cell],
243
+ [data-table]:not([data-size]) [data-table-cell] {
244
+ padding: 0.5rem 0.75rem;
245
+ font-size: 0.875rem;
246
+ }
247
+
248
+ [data-table][data-size='md'] [data-table-caption],
249
+ [data-table]:not([data-size]) [data-table-caption] {
250
+ padding: 0.5rem 0.75rem;
251
+ font-size: 0.875rem;
252
+ }
253
+
254
+ [data-table][data-size='lg'] [data-table-header-cell],
255
+ [data-table][data-size='lg'] [data-table-cell] {
256
+ padding: 0.625rem 1rem;
257
+ font-size: 1rem;
258
+ }
259
+
260
+ [data-table][data-size='lg'] [data-table-caption] {
261
+ padding: 0.625rem 1rem;
262
+ font-size: 1rem;
263
+ }
264
+
265
+ [data-table-empty] {
266
+ padding: 1.5rem 0.75rem;
267
+ }
268
+
269
+ /* =============================================================================
270
+ Responsive Card Layout (mobile < 640px)
271
+ ============================================================================= */
272
+
273
+ @media (max-width: 639px) {
274
+ [data-table-responsive] table {
275
+ display: block;
276
+ }
277
+
278
+ [data-table-responsive] thead {
279
+ display: none;
280
+ }
281
+
282
+ [data-table-responsive] tbody {
283
+ display: block;
284
+ }
285
+
286
+ [data-table-responsive] [data-table-row] {
287
+ display: block;
288
+ padding: 0.75rem;
289
+ margin-bottom: 0.5rem;
290
+ border-radius: 0.5rem;
291
+ border-bottom: none !important;
292
+ }
293
+
294
+ [data-table-responsive] [data-table-cell] {
295
+ display: flex;
296
+ align-items: flex-start;
297
+ gap: 0.5rem;
298
+ padding: 0.2rem 0 !important;
299
+ text-align: left !important;
300
+ border: none;
301
+ }
302
+
303
+ [data-table-responsive] [data-table-cell]::before {
304
+ content: attr(data-label);
305
+ font-weight: 600;
306
+ font-size: 0.75rem;
307
+ min-width: 7rem;
308
+ flex-shrink: 0;
309
+ }
310
+ }