@ngx-ui-sdk/themes 0.0.0-stage → 0.2.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.
Files changed (284) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +93 -2
  3. package/daisyui/accordion.css +101 -0
  4. package/daisyui/alert-dialog.css +85 -0
  5. package/daisyui/all.css +57 -0
  6. package/daisyui/autocomplete.css +216 -0
  7. package/daisyui/avatar.css +38 -0
  8. package/daisyui/base.css +5549 -0
  9. package/daisyui/button.css +8 -0
  10. package/daisyui/calendar.css +239 -0
  11. package/daisyui/carousel.css +159 -0
  12. package/daisyui/checkbox.css +143 -0
  13. package/daisyui/collapsible.css +202 -0
  14. package/daisyui/color-picker.css +187 -0
  15. package/daisyui/combobox.css +504 -0
  16. package/daisyui/command.css +198 -0
  17. package/daisyui/date-input.css +74 -0
  18. package/daisyui/date-picker.css +171 -0
  19. package/daisyui/dialog.css +175 -0
  20. package/daisyui/drawer.css +227 -0
  21. package/daisyui/field.css +73 -0
  22. package/daisyui/file-input.css +175 -0
  23. package/daisyui/hover-card.css +42 -0
  24. package/daisyui/image-cropper.css +153 -0
  25. package/daisyui/input.css +19 -0
  26. package/daisyui/label.css +9 -0
  27. package/daisyui/listbox.css +154 -0
  28. package/daisyui/menu.css +225 -0
  29. package/daisyui/menubar.css +58 -0
  30. package/daisyui/meter.css +42 -0
  31. package/daisyui/navigation-menu.css +292 -0
  32. package/daisyui/number-input.css +135 -0
  33. package/daisyui/otp-input.css +123 -0
  34. package/daisyui/pagination.css +81 -0
  35. package/daisyui/palettes/abyss.css +27 -0
  36. package/daisyui/palettes/acid.css +27 -0
  37. package/daisyui/palettes/aqua.css +27 -0
  38. package/daisyui/palettes/autumn.css +27 -0
  39. package/daisyui/palettes/black.css +27 -0
  40. package/daisyui/palettes/bumblebee.css +27 -0
  41. package/daisyui/palettes/business.css +27 -0
  42. package/daisyui/palettes/caramellatte.css +27 -0
  43. package/daisyui/palettes/cmyk.css +27 -0
  44. package/daisyui/palettes/coffee.css +27 -0
  45. package/daisyui/palettes/corporate.css +27 -0
  46. package/daisyui/palettes/cupcake.css +27 -0
  47. package/daisyui/palettes/cyberpunk.css +27 -0
  48. package/daisyui/palettes/dim.css +27 -0
  49. package/daisyui/palettes/dracula.css +27 -0
  50. package/daisyui/palettes/emerald.css +27 -0
  51. package/daisyui/palettes/fantasy.css +27 -0
  52. package/daisyui/palettes/forest.css +27 -0
  53. package/daisyui/palettes/garden.css +27 -0
  54. package/daisyui/palettes/halloween.css +27 -0
  55. package/daisyui/palettes/lemonade.css +27 -0
  56. package/daisyui/palettes/lofi.css +27 -0
  57. package/daisyui/palettes/luxury.css +27 -0
  58. package/daisyui/palettes/night.css +27 -0
  59. package/daisyui/palettes/nord.css +27 -0
  60. package/daisyui/palettes/pastel.css +27 -0
  61. package/daisyui/palettes/retro.css +27 -0
  62. package/daisyui/palettes/silk.css +27 -0
  63. package/daisyui/palettes/sunset.css +27 -0
  64. package/daisyui/palettes/synthwave.css +27 -0
  65. package/daisyui/palettes/valentine.css +27 -0
  66. package/daisyui/palettes/winter.css +27 -0
  67. package/daisyui/palettes/wireframe.css +27 -0
  68. package/daisyui/password-input.css +59 -0
  69. package/daisyui/popover.css +108 -0
  70. package/daisyui/preferences.css +61 -0
  71. package/daisyui/progress.css +68 -0
  72. package/daisyui/radio.css +180 -0
  73. package/daisyui/rating.css +56 -0
  74. package/daisyui/resizable.css +147 -0
  75. package/daisyui/scroll-area.css +220 -0
  76. package/daisyui/segmented-control.css +83 -0
  77. package/daisyui/select.css +351 -0
  78. package/daisyui/separator.css +59 -0
  79. package/daisyui/slider.css +184 -0
  80. package/daisyui/switch.css +124 -0
  81. package/daisyui/tabs.css +172 -0
  82. package/daisyui/textarea.css +8 -0
  83. package/daisyui/timeline.css +137 -0
  84. package/daisyui/toast.css +219 -0
  85. package/daisyui/toggle.css +153 -0
  86. package/daisyui/token-input.css +215 -0
  87. package/daisyui/tokens/base.json +359 -0
  88. package/daisyui/tokens/dark.json +171 -0
  89. package/daisyui/tokens/light.json +171 -0
  90. package/daisyui/tokens.css +60 -0
  91. package/daisyui/toolbar.css +219 -0
  92. package/daisyui/tooltip.css +166 -0
  93. package/daisyui/tree.css +241 -0
  94. package/daisyui/trigger-menu.css +99 -0
  95. package/daisyui/waterfall.css +221 -0
  96. package/default/accordion.css +101 -0
  97. package/default/alert-dialog.css +85 -0
  98. package/default/all.css +57 -0
  99. package/default/autocomplete.css +216 -0
  100. package/default/avatar.css +38 -0
  101. package/default/base.css +5357 -0
  102. package/default/button.css +8 -0
  103. package/default/calendar.css +239 -0
  104. package/default/carousel.css +159 -0
  105. package/default/checkbox.css +143 -0
  106. package/default/collapsible.css +202 -0
  107. package/default/color-picker.css +187 -0
  108. package/default/combobox.css +504 -0
  109. package/default/command.css +198 -0
  110. package/default/date-input.css +74 -0
  111. package/default/date-picker.css +171 -0
  112. package/default/dialog.css +175 -0
  113. package/default/drawer.css +227 -0
  114. package/default/field.css +73 -0
  115. package/default/file-input.css +175 -0
  116. package/default/hover-card.css +42 -0
  117. package/default/image-cropper.css +153 -0
  118. package/default/input.css +19 -0
  119. package/default/label.css +9 -0
  120. package/default/listbox.css +154 -0
  121. package/default/menu.css +225 -0
  122. package/default/menubar.css +58 -0
  123. package/default/meter.css +42 -0
  124. package/default/navigation-menu.css +292 -0
  125. package/default/number-input.css +135 -0
  126. package/default/otp-input.css +123 -0
  127. package/default/pagination.css +81 -0
  128. package/default/password-input.css +59 -0
  129. package/default/popover.css +108 -0
  130. package/default/preferences.css +61 -0
  131. package/default/progress.css +68 -0
  132. package/default/radio.css +180 -0
  133. package/default/rating.css +56 -0
  134. package/default/resizable.css +147 -0
  135. package/default/scroll-area.css +220 -0
  136. package/default/segmented-control.css +83 -0
  137. package/default/select.css +351 -0
  138. package/default/separator.css +59 -0
  139. package/default/slider.css +184 -0
  140. package/default/switch.css +124 -0
  141. package/default/tabs.css +172 -0
  142. package/default/textarea.css +8 -0
  143. package/default/timeline.css +137 -0
  144. package/default/toast.css +219 -0
  145. package/default/toggle.css +153 -0
  146. package/default/token-input.css +215 -0
  147. package/default/tokens/base.json +410 -0
  148. package/default/tokens/dark.json +151 -0
  149. package/default/tokens/light.json +151 -0
  150. package/default/tokens.css +63 -0
  151. package/default/toolbar.css +219 -0
  152. package/default/tooltip.css +166 -0
  153. package/default/tree.css +241 -0
  154. package/default/trigger-menu.css +99 -0
  155. package/default/waterfall.css +221 -0
  156. package/material/accordion.css +101 -0
  157. package/material/alert-dialog.css +92 -0
  158. package/material/all.css +57 -0
  159. package/material/autocomplete.css +216 -0
  160. package/material/avatar.css +38 -0
  161. package/material/base.css +5374 -0
  162. package/material/button.css +8 -0
  163. package/material/calendar.css +239 -0
  164. package/material/carousel.css +159 -0
  165. package/material/checkbox.css +143 -0
  166. package/material/collapsible.css +202 -0
  167. package/material/color-picker.css +187 -0
  168. package/material/combobox.css +504 -0
  169. package/material/command.css +198 -0
  170. package/material/date-input.css +74 -0
  171. package/material/date-picker.css +171 -0
  172. package/material/dialog.css +182 -0
  173. package/material/drawer.css +227 -0
  174. package/material/field.css +602 -0
  175. package/material/file-input.css +175 -0
  176. package/material/hover-card.css +42 -0
  177. package/material/image-cropper.css +153 -0
  178. package/material/input.css +19 -0
  179. package/material/label.css +9 -0
  180. package/material/listbox.css +154 -0
  181. package/material/menu.css +225 -0
  182. package/material/menubar.css +58 -0
  183. package/material/meter.css +42 -0
  184. package/material/navigation-menu.css +292 -0
  185. package/material/number-input.css +135 -0
  186. package/material/otp-input.css +123 -0
  187. package/material/pagination.css +81 -0
  188. package/material/palettes/amber.css +24 -0
  189. package/material/palettes/blue.css +24 -0
  190. package/material/palettes/green.css +24 -0
  191. package/material/palettes/indigo.css +24 -0
  192. package/material/palettes/orange.css +24 -0
  193. package/material/palettes/pink.css +24 -0
  194. package/material/palettes/red.css +24 -0
  195. package/material/palettes/teal.css +24 -0
  196. package/material/password-input.css +59 -0
  197. package/material/popover.css +108 -0
  198. package/material/preferences.css +61 -0
  199. package/material/progress.css +68 -0
  200. package/material/radio.css +180 -0
  201. package/material/rating.css +56 -0
  202. package/material/resizable.css +147 -0
  203. package/material/scroll-area.css +220 -0
  204. package/material/segmented-control.css +83 -0
  205. package/material/select.css +351 -0
  206. package/material/separator.css +59 -0
  207. package/material/slider.css +184 -0
  208. package/material/switch.css +124 -0
  209. package/material/tabs.css +195 -0
  210. package/material/textarea.css +8 -0
  211. package/material/timeline.css +137 -0
  212. package/material/toast.css +219 -0
  213. package/material/toggle.css +153 -0
  214. package/material/token-input.css +215 -0
  215. package/material/tokens/base.json +338 -0
  216. package/material/tokens/dark.json +184 -0
  217. package/material/tokens/light.json +184 -0
  218. package/material/tokens.css +62 -0
  219. package/material/toolbar.css +219 -0
  220. package/material/tooltip.css +166 -0
  221. package/material/tree.css +241 -0
  222. package/material/trigger-menu.css +99 -0
  223. package/material/waterfall.css +221 -0
  224. package/package.json +30 -4
  225. package/shadcn/accordion.css +101 -0
  226. package/shadcn/alert-dialog.css +85 -0
  227. package/shadcn/all.css +57 -0
  228. package/shadcn/autocomplete.css +216 -0
  229. package/shadcn/avatar.css +38 -0
  230. package/shadcn/base.css +5357 -0
  231. package/shadcn/button.css +8 -0
  232. package/shadcn/calendar.css +239 -0
  233. package/shadcn/carousel.css +159 -0
  234. package/shadcn/checkbox.css +143 -0
  235. package/shadcn/collapsible.css +202 -0
  236. package/shadcn/color-picker.css +187 -0
  237. package/shadcn/combobox.css +504 -0
  238. package/shadcn/command.css +198 -0
  239. package/shadcn/date-input.css +74 -0
  240. package/shadcn/date-picker.css +171 -0
  241. package/shadcn/dialog.css +175 -0
  242. package/shadcn/drawer.css +227 -0
  243. package/shadcn/field.css +73 -0
  244. package/shadcn/file-input.css +175 -0
  245. package/shadcn/hover-card.css +42 -0
  246. package/shadcn/image-cropper.css +153 -0
  247. package/shadcn/input.css +19 -0
  248. package/shadcn/label.css +9 -0
  249. package/shadcn/listbox.css +154 -0
  250. package/shadcn/menu.css +225 -0
  251. package/shadcn/menubar.css +58 -0
  252. package/shadcn/meter.css +42 -0
  253. package/shadcn/navigation-menu.css +292 -0
  254. package/shadcn/number-input.css +135 -0
  255. package/shadcn/otp-input.css +123 -0
  256. package/shadcn/pagination.css +81 -0
  257. package/shadcn/password-input.css +59 -0
  258. package/shadcn/popover.css +108 -0
  259. package/shadcn/preferences.css +61 -0
  260. package/shadcn/progress.css +68 -0
  261. package/shadcn/radio.css +180 -0
  262. package/shadcn/rating.css +56 -0
  263. package/shadcn/resizable.css +147 -0
  264. package/shadcn/scroll-area.css +220 -0
  265. package/shadcn/segmented-control.css +83 -0
  266. package/shadcn/select.css +351 -0
  267. package/shadcn/separator.css +59 -0
  268. package/shadcn/slider.css +184 -0
  269. package/shadcn/switch.css +124 -0
  270. package/shadcn/tabs.css +172 -0
  271. package/shadcn/textarea.css +8 -0
  272. package/shadcn/timeline.css +137 -0
  273. package/shadcn/toast.css +219 -0
  274. package/shadcn/toggle.css +153 -0
  275. package/shadcn/token-input.css +215 -0
  276. package/shadcn/tokens/base.json +395 -0
  277. package/shadcn/tokens/dark.json +177 -0
  278. package/shadcn/tokens/light.json +174 -0
  279. package/shadcn/tokens.css +61 -0
  280. package/shadcn/toolbar.css +219 -0
  281. package/shadcn/tooltip.css +166 -0
  282. package/shadcn/tree.css +241 -0
  283. package/shadcn/trigger-menu.css +99 -0
  284. package/shadcn/waterfall.css +221 -0
@@ -0,0 +1,108 @@
1
+ /* Generated by `node scripts/build-theme.mjs` from ui-sdk's example styles. */
2
+ @scope ([data-ui-theme]) {
3
+ /* The trigger sits near the top, centered, with room below for the open popover inside the preview. */
4
+
5
+ /* Stacks, forms and fields take the popover's width, not the 20rem a stack with a field gets elsewhere. */
6
+
7
+ [data-slot="popover-content"] {
8
+ gap: var(--ui-space-3);
9
+ box-sizing: border-box;
10
+ width: 18rem;
11
+ max-width: calc(100vw - 2rem);
12
+ padding: var(--ui-space-4);
13
+ font-size: var(--ui-text-sm)
14
+
15
+ /* Actions sit at the bottom, aligned to the end, with the primary last. */
16
+
17
+ /* A question inside the popover, with its answers at the end. */
18
+ }
19
+
20
+ [data-slot="popover-content"] > [data-slot="stack"], [data-slot="popover-content"] > form {
21
+ align-items: stretch;
22
+ }
23
+
24
+ [data-slot="popover-content"] > form {
25
+ display: flex;
26
+ flex-direction: column;
27
+ gap: var(--ui-space-3);
28
+ }
29
+
30
+ [data-slot="popover-content"] [data-slot="field"] {
31
+ gap: 6px;
32
+ }
33
+
34
+ [data-slot="popover-content"] [data-slot="field-label"] {
35
+ font-size: var(--ui-text-sm);
36
+ }
37
+
38
+ [data-slot="popover-content"] > [data-slot="stack"]:has(> [data-slot="label"]) {
39
+ gap: var(--ui-space-2);
40
+ }
41
+
42
+ [data-slot="popover-content"] textarea {
43
+ min-height: 5rem;
44
+ }
45
+ [data-slot="popover-content"] > [data-slot="row"],
46
+ [data-slot="popover-content"] > form > [data-slot="row"] {
47
+ justify-content: flex-end;
48
+ margin-top: var(--ui-space-1);
49
+ }
50
+ [data-slot="popover-content"] > [data-slot="row"][role="alert"] {
51
+ justify-content: space-between;
52
+ padding: var(--ui-space-2) var(--ui-space-2) var(--ui-space-2) var(--ui-space-3);
53
+ border-radius: var(--ui-radius-control);
54
+ background: var(--ui-muted);
55
+ }
56
+
57
+ [data-slot="popover-content"][data-presentation="sheet"] {
58
+ width: min(36rem, 100%);
59
+ max-width: none;
60
+ margin: 0 auto;
61
+ border-radius: var(--ui-radius-popup) var(--ui-radius-popup) 0 0;
62
+ padding-bottom: max(var(--ui-space-4), env(safe-area-inset-bottom));
63
+ --sheet-backdrop: var(--ui-overlay);
64
+ }
65
+
66
+ [data-slot="popover-title"] {
67
+ margin: 0;
68
+ font-size: var(--ui-text-md);
69
+ font-weight: 600;
70
+ line-height: 20px;
71
+ }
72
+
73
+ [data-slot="popover-description"] {
74
+ margin: 0;
75
+ color: var(--ui-muted-foreground);
76
+ font-size: var(--ui-text-sm);
77
+ }
78
+
79
+ /* The title and description read as one header. */
80
+ [data-slot="popover-title"] + [data-slot="popover-description"] {
81
+ margin-top: calc(var(--ui-space-3) * -1 + 2px);
82
+ }
83
+
84
+ a[data-slot="popover-close"] {
85
+ align-self: flex-start;
86
+ color: var(--ui-foreground);
87
+ text-underline-offset: 3px;
88
+ }
89
+
90
+ [data-slot="popover-trigger"]:not([data-open]) [data-show="open"],
91
+ [data-slot="popover-trigger"][data-open] [data-hide="open"] {
92
+ display: none;
93
+ }
94
+
95
+ /* The arrow takes the popover's fill and border. */
96
+ [data-slot="popover-arrow"] {
97
+ background: var(--ui-surface-2);
98
+ border-color: var(--ui-input);
99
+ }
100
+
101
+ /* Room around the trigger for the popover on any side. */
102
+
103
+ /* Each select beside its label, one per line, so the controls fit a phone. */
104
+
105
+ /* The list, with room below its last row for the editor. */
106
+
107
+ /* The search field and its filter button, side by side. */
108
+ }
@@ -0,0 +1,61 @@
1
+ /* Generated by `node scripts/build-theme.mjs` from ui-sdk's example styles. */
2
+ @scope ([data-ui-theme]) {
3
+ /* The view switch above a file list, one 20rem column; Preferences itself renders as display: contents. */
4
+
5
+ [data-slot="files"] {
6
+ display: flex;
7
+ flex-direction: column;
8
+ margin: 0;
9
+ padding: 0;
10
+ border-radius: var(--ui-radius-control);
11
+ box-shadow: inset 0 0 0 1px var(--ui-input);
12
+ list-style: none
13
+ }
14
+
15
+ [data-slot="files"] > li {
16
+ display: flex;
17
+ align-items: center;
18
+ justify-content: space-between;
19
+ gap: var(--ui-space-3);
20
+ padding: var(--ui-space-2) var(--ui-space-3)
21
+ }
22
+
23
+ [data-slot="files"] > li + li {
24
+ border-top: 1px solid var(--ui-border);
25
+ }
26
+
27
+ /* The grid view: tiles with a thumbnail area, two to a row. */
28
+ [data-view="grid"] [data-slot="files"] {
29
+ display: grid;
30
+ grid-template-columns: repeat(2, minmax(0, 1fr));
31
+ gap: var(--ui-space-2);
32
+ box-shadow: none
33
+ }
34
+
35
+ [data-view="grid"] [data-slot="files"] > li {
36
+ flex-direction: column;
37
+ align-items: stretch;
38
+ gap: 2px;
39
+ padding: var(--ui-space-2);
40
+ border-radius: var(--ui-radius-control);
41
+ box-shadow: inset 0 0 0 1px var(--ui-input)
42
+ }
43
+
44
+ [data-view="grid"] [data-slot="files"] > li::before {
45
+ content: "";
46
+ height: 3.5rem;
47
+ margin-bottom: var(--ui-space-1);
48
+ border-radius: calc(var(--ui-radius-control) - 2px);
49
+ background: var(--ui-muted);
50
+ }
51
+
52
+ [data-view="grid"] [data-slot="files"] > li + li {
53
+ border-top: 0;
54
+ }
55
+
56
+ [data-view="grid"] [data-slot="files"] > li > span:first-child {
57
+ overflow: hidden;
58
+ text-overflow: ellipsis;
59
+ white-space: nowrap;
60
+ }
61
+ }
@@ -0,0 +1,68 @@
1
+ /* Generated by `node scripts/build-theme.mjs` from ui-sdk's example styles. */
2
+ @scope ([data-ui-theme]) {
3
+ [data-slot="progress"] {
4
+ display: flex;
5
+ flex-wrap: wrap;
6
+ align-items: center;
7
+ gap: var(--ui-space-2) var(--ui-space-3);
8
+ }
9
+
10
+ [data-slot="progress-label"] {
11
+ font-weight: 500;
12
+ }
13
+
14
+ [data-slot="progress-value"] {
15
+ margin-inline-start: auto;
16
+ color: var(--ui-muted-foreground);
17
+ font-size: var(--ui-text-sm);
18
+ font-variant-numeric: tabular-nums;
19
+ }
20
+
21
+ [data-slot="progress-track"] {
22
+ display: flex;
23
+ position: relative;
24
+ box-sizing: border-box;
25
+ width: 100%;
26
+ height: 10px;
27
+ overflow: hidden;
28
+ padding: 2px;
29
+ border-radius: 999px;
30
+ background: var(--ui-surface-1);
31
+ box-shadow: inset 0 0 0 1px var(--ui-input);
32
+ }
33
+
34
+ [data-slot="progress-indicator"] {
35
+ height: 100%;
36
+ border-radius: 999px;
37
+ background: var(--ui-primary)
38
+ }
39
+
40
+ [data-slot="progress-indicator"][data-variant="destructive"] {
41
+ background: var(--ui-destructive);
42
+ }
43
+
44
+ [data-slot="progress-track"][data-indeterminate] [data-slot="progress-indicator"] {
45
+ width: 40%;
46
+ background: linear-gradient(90deg, transparent, var(--ui-primary), transparent);
47
+ animation: progress-sweep 1.2s ease-in-out infinite;
48
+ }
49
+
50
+ @media (prefers-reduced-motion: reduce) {
51
+ [data-slot="progress-track"][data-indeterminate]
52
+ [data-slot="progress-indicator"] {
53
+ width: 100%;
54
+ background: color-mix(in oklab, var(--ui-primary) 30%, transparent);
55
+ animation: none;
56
+ }
57
+ }
58
+ }
59
+
60
+ @keyframes progress-sweep {
61
+ from {
62
+ translate: -100% 0;
63
+ }
64
+
65
+ to {
66
+ translate: 250% 0;
67
+ }
68
+ }
@@ -0,0 +1,180 @@
1
+ /* Generated by `node scripts/build-theme.mjs` from ui-sdk's example styles. */
2
+ @scope ([data-ui-theme]) {
3
+ /* Each demo sits centered; a group of plain radios shrinks to its options, while cards keep their width. */
4
+
5
+ /* The check keeps its space on every card, so moving it never rewraps the text. */
6
+
7
+ [data-slot="radio-group"] {
8
+ display: flex;
9
+ flex-direction: column;
10
+ gap: var(--ui-space-2)
11
+ }
12
+
13
+ [data-slot="radio-group"][data-disabled] [data-slot="label"] {
14
+ color: var(--ui-border-disabled);
15
+ }
16
+
17
+ [data-slot="radio-group"] > [data-slot="label"] {
18
+ font-weight: 400;
19
+ }
20
+
21
+ [data-slot="radio-group"] > [data-slot="label"] > [data-slot="hint"] {
22
+ margin-inline-start: calc(var(--ui-space-1) * -1);
23
+ }
24
+
25
+ [data-slot="field-description"] + [data-slot="radio-group"] {
26
+ margin-top: var(--ui-space-1);
27
+ }
28
+
29
+ /* Two groups, one under the other. */
30
+
31
+ /* A choice card keeps its radio at the top end, in line with the title. */
32
+ [data-slot="card"] > [data-slot="radio"] {
33
+ margin-top: 2px;
34
+ margin-inline-start: auto
35
+ }
36
+
37
+ [data-slot="card"] > [data-slot="radio"]:focus-visible {
38
+ outline: none;
39
+ }
40
+
41
+ [data-slot="card"]:has(> [data-slot="radio"]:focus-visible) {
42
+ outline: 3px solid var(--ui-ring);
43
+ outline-offset: 2px;
44
+ }
45
+
46
+ /* A radio in a field of its own sits beside its label and description. */
47
+ [data-slot="field"]:has(> [data-slot="radio"]) {
48
+ flex-direction: row;
49
+ align-items: flex-start;
50
+ width: auto
51
+ }
52
+
53
+ [data-slot="field"]:has(> [data-slot="radio"]) > [data-slot="radio"] {
54
+ margin-top: 2px;
55
+ }
56
+
57
+ [data-slot="field"]:has(> [data-slot="radio"]) > [data-slot="stack"] {
58
+ gap: var(--ui-space-1);
59
+ }
60
+
61
+ [data-slot="radio-group"]:has(> [data-slot="field"]) {
62
+ gap: var(--ui-space-3);
63
+ }
64
+
65
+ [data-slot="radio"] {
66
+ display: inline-grid;
67
+ flex-shrink: 0;
68
+ place-items: center;
69
+ box-sizing: border-box;
70
+ width: var(--ui-size-icon);
71
+ height: var(--ui-size-icon);
72
+ padding: 0;
73
+ border: 0;
74
+ border-radius: 50%;
75
+ background: var(--ui-surface-1);
76
+ box-shadow: inset 0 0 0 1px var(--ui-input);
77
+ color: var(--ui-foreground);
78
+ cursor: default;
79
+ transition: box-shadow var(--ui-duration)
80
+ }
81
+
82
+ [data-slot="radio"]:hover:not([data-disabled], [data-readonly], [data-checked]) {
83
+ box-shadow: inset 0 0 0 1px
84
+ color-mix(in oklab, var(--ui-border-strong) 45%, var(--ui-surface-1));
85
+ }
86
+
87
+ [data-slot="radio"][data-checked] {
88
+ background: var(--ui-surface-1);
89
+ box-shadow: inset 0 0 0 1.5px var(--ui-border-strong);
90
+ }
91
+
92
+ [data-slot="radio"]:is([data-invalid], [aria-invalid="true"]) {
93
+ box-shadow: inset 0 0 0 1px var(--ui-destructive);
94
+ }
95
+
96
+ [data-slot="radio"][data-readonly]:not([data-checked]) {
97
+ background: var(--ui-muted);
98
+ }
99
+
100
+ [data-slot="radio"][data-disabled] {
101
+ box-shadow: inset 0 0 0 1px var(--ui-border);
102
+ }
103
+
104
+ [data-slot="radio"][data-disabled][data-checked] {
105
+ box-shadow: inset 0 0 0 1.5px var(--ui-border-disabled);
106
+ }
107
+
108
+ [data-slot="radio-indicator"] {
109
+ width: 6px;
110
+ height: 6px;
111
+ border-radius: 50%;
112
+ background: var(--ui-primary)
113
+ }
114
+
115
+ [data-slot="radio-indicator"][data-unchecked] {
116
+ visibility: hidden;
117
+ }
118
+
119
+ [data-disabled] > [data-slot="radio-indicator"] {
120
+ background: var(--ui-border-disabled);
121
+ }
122
+
123
+ /* The indicator scales in and out, and a hovered option previews its dot. */
124
+
125
+ [data-slot="label"]:has(> [data-slot="radio"][data-disabled]) {
126
+ color: var(--ui-border-disabled);
127
+ }
128
+
129
+ /* A radio with its own content is a choice card. */
130
+ [data-slot="radio"]:not(:empty, :has(> [data-slot="radio-indicator"])) {
131
+ display: inline-flex;
132
+ align-items: center;
133
+ gap: var(--ui-space-3);
134
+ width: auto;
135
+ min-width: var(--ui-size-md);
136
+ height: auto;
137
+ min-height: var(--ui-size-md);
138
+ padding: var(--ui-space-3);
139
+ border-radius: var(--ui-radius-surface);
140
+ background: var(--ui-surface-1);
141
+ box-shadow: inset 0 0 0 1px var(--ui-input);
142
+ font: inherit;
143
+ text-align: start
144
+ }
145
+
146
+ [data-slot="radio"]:not(:empty, :has(> [data-slot="radio-indicator"])):hover:not([data-disabled], [data-checked]) {
147
+ box-shadow: inset 0 0 0 1px
148
+ color-mix(in oklab, var(--ui-border-strong) 45%, var(--ui-surface-1));
149
+ }
150
+
151
+ [data-slot="radio"]:not(:empty, :has(> [data-slot="radio-indicator"]))[data-checked] {
152
+ background: var(--ui-muted);
153
+ box-shadow: inset 0 0 0 1px var(--ui-border-strong);
154
+ }
155
+
156
+ [data-slot="radio"]:not(:empty, :has(> [data-slot="radio-indicator"]))[data-disabled] {
157
+ background: var(--ui-surface-1);
158
+ box-shadow: inset 0 0 0 1px var(--ui-border);
159
+ color: var(--ui-border-disabled);
160
+ }
161
+
162
+ [data-slot="radio"]:not(:empty, :has(> [data-slot="radio-indicator"])) > [data-slot="stack"] {
163
+ flex: 1;
164
+ gap: var(--ui-space-1);
165
+ font-weight: 500;
166
+ }
167
+
168
+ [data-slot="radio"]:not(:empty, :has(> [data-slot="radio-indicator"])):has(> [data-slot="stack"]) {
169
+ align-items: flex-start;
170
+ }
171
+
172
+ [data-slot="radio"]:not(:empty, :has(> [data-slot="radio-indicator"])) > svg:last-child:not(:first-child) {
173
+ margin-top: 2px;
174
+ margin-inline-start: auto;
175
+ }
176
+
177
+ [data-slot="radio-group"]:not([data-variant]) > [data-slot="radio"]:not(:empty, :has(> [data-slot="radio-indicator"])) {
178
+ width: 100%;
179
+ }
180
+ }
@@ -0,0 +1,56 @@
1
+ /* Generated by `node scripts/build-theme.mjs` from ui-sdk's example styles. */
2
+ @scope ([data-ui-theme]) {
3
+ [data-slot="rating"] {
4
+ display: inline-flex;
5
+ gap: 2px
6
+ }
7
+
8
+ [data-slot="rating"][data-disabled] {
9
+ opacity: 0.6;
10
+ }
11
+
12
+ /* The fill is the star's own shape, painted up to --rating-fill from the start edge. */
13
+ [data-slot="rating-item"] {
14
+ --rating-color: var(--ui-foreground);
15
+ --rating-direction: to right;
16
+
17
+ display: inline-flex;
18
+ color: var(--ui-input)
19
+ }
20
+
21
+ [data-slot="rating-item"]:dir(rtl) {
22
+ --rating-direction: to left;
23
+ }
24
+
25
+ [data-slot="rating-item"][data-highlighted] {
26
+ --rating-color: var(--ui-muted-foreground);
27
+ }
28
+
29
+ [data-slot="rating-item"]::before {
30
+ content: "";
31
+ position: absolute;
32
+ inset: 0;
33
+ background: linear-gradient(
34
+ var(--rating-direction),
35
+ var(--rating-color) calc(var(--rating-fill) * 100%),
36
+ transparent 0
37
+ );
38
+ mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E")
39
+ 0 0 / 100% 100% no-repeat;
40
+ pointer-events: none;
41
+ }
42
+
43
+ [data-slot="rating-item"] > svg {
44
+ width: 24px;
45
+ height: 24px;
46
+ }
47
+
48
+ [data-slot="rating-radio"] {
49
+ border-radius: var(--ui-radius-control);
50
+ cursor: default
51
+ }
52
+
53
+ [data-slot="rating-radio"]:focus-visible {
54
+ outline-offset: 0;
55
+ }
56
+ }
@@ -0,0 +1,147 @@
1
+ /* Generated by `node scripts/build-theme.mjs` from ui-sdk's example styles. */
2
+ @scope ([data-ui-theme]) {
3
+ [data-slot="resizable"] {
4
+ box-sizing: border-box;
5
+ height: 13rem;
6
+ overflow: hidden;
7
+ border-radius: var(--ui-radius-surface);
8
+ background: var(--ui-surface-1);
9
+ box-shadow: var(--ui-shadow-sm)
10
+ }
11
+
12
+ [data-slot="resizable"] [data-slot="resizable"] {
13
+ width: auto;
14
+ max-width: none;
15
+ height: 100%;
16
+ border-radius: 0;
17
+ background: none;
18
+ box-shadow: none;
19
+ }
20
+
21
+ /* A panel lists its title and content from the top, clipping what no longer fits. */
22
+ [data-slot="resizable-panel"] {
23
+ display: flex;
24
+ flex-direction: column;
25
+ gap: var(--ui-space-1);
26
+ box-sizing: border-box;
27
+ padding: var(--ui-space-4);
28
+ overflow: hidden
29
+ }
30
+
31
+ [data-slot="resizable-panel"]:has(> [data-slot="resizable"]) {
32
+ padding: 0;
33
+ }
34
+
35
+ [data-slot="resizable-panel"] > h3, [data-slot="resizable-panel"] > [data-slot="hint"], [data-slot="resizable-panel"] li {
36
+ overflow: hidden;
37
+ text-overflow: ellipsis;
38
+ white-space: nowrap;
39
+ }
40
+
41
+ [data-slot="resizable-panel"] > h3 + ul {
42
+ margin-top: var(--ui-space-2);
43
+ }
44
+
45
+ [data-slot="resizable-panel"] li {
46
+ color: var(--ui-muted-foreground);
47
+ }
48
+
49
+ [data-slot="resizable-panel"] li[data-slot="row"] {
50
+ flex-wrap: nowrap;
51
+ height: var(--ui-size-sm);
52
+ color: var(--ui-foreground)
53
+ }
54
+
55
+ [data-slot="resizable-panel"] li[data-slot="row"] > span {
56
+ overflow: hidden;
57
+ text-overflow: ellipsis;
58
+ }
59
+
60
+ [data-slot="resizable-panel"][data-collapsed] li[data-slot="row"] > span {
61
+ display: none;
62
+ }
63
+
64
+ [data-slot="resizable-handle"] {
65
+ position: relative;
66
+ z-index: 1;
67
+ display: flex;
68
+ flex-shrink: 0;
69
+ align-items: center;
70
+ justify-content: center;
71
+ width: 1px;
72
+ background: var(--ui-input);
73
+ outline: none;
74
+ cursor: col-resize
75
+
76
+ /* A finger needs a wider target than a pointer. */
77
+ }
78
+
79
+ [data-slot="resizable-handle"]::before {
80
+ position: absolute;
81
+ inset: 0 -5px;
82
+ content: "";
83
+ }
84
+
85
+ [data-slot="resizable-handle"][aria-orientation="horizontal"] {
86
+ width: 100%;
87
+ height: 1px;
88
+ cursor: row-resize
89
+ }
90
+
91
+ [data-slot="resizable-handle"][aria-orientation="horizontal"]::before {
92
+ inset: -5px 0;
93
+ }
94
+
95
+ [data-slot="resizable-handle"]:is(:hover, [data-hovering], [data-dragging]) {
96
+ background: var(--ui-primary);
97
+ }
98
+
99
+ [data-slot="resizable-handle"]:focus-visible {
100
+ background: var(--ui-primary);
101
+ box-shadow: 0 0 0 3px var(--ui-ring);
102
+ }
103
+
104
+ [data-slot="resizable-handle"][data-disabled] {
105
+ background: var(--ui-border);
106
+ cursor: default;
107
+ }
108
+
109
+ [data-slot="resizable-handle"] > div {
110
+ flex-shrink: 0;
111
+ box-sizing: border-box;
112
+ width: 8px;
113
+ height: 20px;
114
+ border-radius: 4px;
115
+ background: var(--ui-surface-1);
116
+ box-shadow: inset 0 0 0 1px var(--ui-input);
117
+ }
118
+
119
+ [data-slot="resizable-handle"][aria-orientation="horizontal"] > div {
120
+ width: 20px;
121
+ height: 8px;
122
+ }
123
+
124
+ [data-slot="resizable-handle"]:hover > div, [data-slot="resizable-handle"][data-hovering] > div, [data-slot="resizable-handle"][data-dragging] > div, [data-slot="resizable-handle"]:focus-visible > div {
125
+ box-shadow: inset 0 0 0 1px var(--ui-border-strong);
126
+ }
127
+ @media (pointer: coarse), (max-width: 40rem) {
128
+ [data-slot="resizable-handle"]::before {
129
+ inset: 0 -12px;
130
+ }
131
+
132
+ [data-slot="resizable-handle"][aria-orientation="horizontal"]::before {
133
+ inset: -12px 0;
134
+ }
135
+
136
+ [data-slot="resizable-handle"] > div {
137
+ width: 10px;
138
+ height: 28px;
139
+ border-radius: 5px;
140
+ }
141
+
142
+ [data-slot="resizable-handle"][aria-orientation="horizontal"] > div {
143
+ width: 28px;
144
+ height: 10px;
145
+ }
146
+ }
147
+ }