@atom63/ui-react 0.2.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/README.md +121 -0
  2. package/dist/button-sktq-nvV.d.ts +13 -0
  3. package/dist/chunk-7VSPECOH.js +73 -0
  4. package/dist/chunk-7VSPECOH.js.map +1 -0
  5. package/dist/chunk-AJLHJRK6.js +11 -0
  6. package/dist/chunk-AJLHJRK6.js.map +1 -0
  7. package/dist/chunk-MXNO63TC.js +2745 -0
  8. package/dist/chunk-MXNO63TC.js.map +1 -0
  9. package/dist/chunk-STCXERLM.js +354 -0
  10. package/dist/chunk-STCXERLM.js.map +1 -0
  11. package/dist/destination-link-C9NKeKLe.d.ts +34 -0
  12. package/dist/index.d.ts +1605 -0
  13. package/dist/index.js +7337 -0
  14. package/dist/index.js.map +1 -0
  15. package/dist/layout/index.d.ts +196 -0
  16. package/dist/layout/index.js +500 -0
  17. package/dist/layout/index.js.map +1 -0
  18. package/dist/media/index.d.ts +208 -0
  19. package/dist/media/index.js +1498 -0
  20. package/dist/media/index.js.map +1 -0
  21. package/dist/media/media-lightbox/parts/index.d.ts +284 -0
  22. package/dist/media/media-lightbox/parts/index.js +5 -0
  23. package/dist/media/media-lightbox/parts/index.js.map +1 -0
  24. package/dist/theme/index.d.ts +350 -0
  25. package/dist/theme/index.js +1173 -0
  26. package/dist/theme/index.js.map +1 -0
  27. package/dist/types-Dxe5IzjE.d.ts +145 -0
  28. package/package.json +188 -0
  29. package/src/components/accordion/accordion.css +196 -0
  30. package/src/components/alert/alert.css +189 -0
  31. package/src/components/alert-dialog/alert-dialog.css +205 -0
  32. package/src/components/autocomplete/autocomplete.css +240 -0
  33. package/src/components/avatar/avatar.css +147 -0
  34. package/src/components/badge/badge.css +223 -0
  35. package/src/components/breadcrumb/breadcrumb.css +99 -0
  36. package/src/components/button/button.css +594 -0
  37. package/src/components/button-group/button-group.css +412 -0
  38. package/src/components/calendar/calendar.css +271 -0
  39. package/src/components/card/card.css +421 -0
  40. package/src/components/carousel/carousel.css +163 -0
  41. package/src/components/checkbox/checkbox.css +113 -0
  42. package/src/components/collapsible/collapsible.css +59 -0
  43. package/src/components/command/command.css +226 -0
  44. package/src/components/connected-panel/connected-panel.css +437 -0
  45. package/src/components/copy-button/copy-button.css +57 -0
  46. package/src/components/dialog/dialog.css +221 -0
  47. package/src/components/drawer/drawer.css +265 -0
  48. package/src/components/empty/empty.css +145 -0
  49. package/src/components/feedback-state/feedback-state.css +141 -0
  50. package/src/components/field/field.css +260 -0
  51. package/src/components/form/form.css +32 -0
  52. package/src/components/frame/frame.css +115 -0
  53. package/src/components/hover-card/hover-card.css +80 -0
  54. package/src/components/input/input.css +291 -0
  55. package/src/components/input-otp/input-otp.css +145 -0
  56. package/src/components/item/item.css +216 -0
  57. package/src/components/kbd/kbd.css +72 -0
  58. package/src/components/label/label.css +37 -0
  59. package/src/components/load-more-trigger/load-more-trigger.css +109 -0
  60. package/src/components/marquee/marquee.css +79 -0
  61. package/src/components/menu/menu.css +216 -0
  62. package/src/components/menubar/menubar.css +67 -0
  63. package/src/components/navigation-menu/navigation-menu.css +275 -0
  64. package/src/components/pagination/pagination.css +86 -0
  65. package/src/components/panel-setting-button/panel-setting-button.css +76 -0
  66. package/src/components/popover/popover.css +89 -0
  67. package/src/components/preview-card/preview-card.css +69 -0
  68. package/src/components/progress/progress.css +70 -0
  69. package/src/components/radio/radio.css +115 -0
  70. package/src/components/resizable/resizable.css +99 -0
  71. package/src/components/scroll-area/scroll-area.css +130 -0
  72. package/src/components/scrollable-list/scrollable-list.css +144 -0
  73. package/src/components/segmented-control/segmented-control.css +235 -0
  74. package/src/components/select/select.css +261 -0
  75. package/src/components/separator/separator.css +43 -0
  76. package/src/components/sheet/sheet.css +209 -0
  77. package/src/components/sidebar/sidebar.css +728 -0
  78. package/src/components/sidebar-nav-tree/sidebar-nav-tree.css +179 -0
  79. package/src/components/skeleton/skeleton.css +42 -0
  80. package/src/components/slider/slider.css +124 -0
  81. package/src/components/switch/switch.css +149 -0
  82. package/src/components/table/table.css +183 -0
  83. package/src/components/tabs/tabs.css +416 -0
  84. package/src/components/text-ticker/text-ticker.css +139 -0
  85. package/src/components/textarea/textarea.css +122 -0
  86. package/src/components/toggle/toggle.css +185 -0
  87. package/src/components/toggle-group/toggle-group.css +102 -0
  88. package/src/components/tooltip/tooltip.css +133 -0
  89. package/src/media/media-lightbox/media-lightbox.css +171 -0
  90. package/src/styles/index.css +3 -0
  91. package/src/styles/recipes.css +70 -0
  92. package/src/styles/reset.css +22 -0
@@ -0,0 +1,235 @@
1
+ /*
2
+ * SegmentedControl recipe — a single-select segmented track with a sliding
3
+ * indicator (Base UI Tabs). Segment archetype fills/treatment via --a63-segment-*;
4
+ * the recessed well also reads --a63-track-shadow when a theme leaves the segment
5
+ * track shadow unset. Indicator = raised selected plate (or brand accent for
6
+ * tone=accent) that slides via Base UI's --active-tab-* vars.
7
+ *
8
+ * Light-mode contrast: track falls back to --a63-surface-muted (recessed), pill to
9
+ * --a63-surface-overlay (raised). Do NOT use --a63-surface-control for the track —
10
+ * in light mode control/overlay/panel all resolve to surface-light-1 and the pill
11
+ * disappears into the well.
12
+ */
13
+
14
+ .a63-SegmentedControl {
15
+ /* Content floor — see button.css for the full rationale. */
16
+ --segment-content-lh: var(--typography-sm-line-height);
17
+ --segment-content-floor: calc(var(--segment-content-lh) + 2 * var(--a63-space-0_5));
18
+ --segment-height: max(
19
+ calc(var(--a63-control-height-md) * var(--a63-density-scale, 1)),
20
+ var(--a63-control-min-size),
21
+ var(--segment-content-floor)
22
+ );
23
+ --segment-inset: 3px;
24
+ --segment-radius: var(--a63-control-radius);
25
+ --segment-active-radius: max(0px, calc(var(--segment-radius) - var(--segment-inset)));
26
+ --segment-font-size: var(--a63-control-font-size-md);
27
+ --segment-item-padding: var(--a63-control-padding-inline-md);
28
+
29
+ display: inline-flex;
30
+ max-width: 100%;
31
+ }
32
+
33
+ .a63-SegmentedControl-track {
34
+ position: relative;
35
+ isolation: isolate;
36
+ box-sizing: border-box;
37
+ display: inline-flex;
38
+ flex: none;
39
+ align-items: center;
40
+ max-width: 100%;
41
+ height: var(--segment-height);
42
+ overflow-x: auto;
43
+ overscroll-behavior-inline: contain;
44
+ scrollbar-width: none;
45
+ scroll-snap-type: inline proximity;
46
+ touch-action: pan-x;
47
+ padding: var(--segment-inset);
48
+ border: var(--a63-control-border-width) solid
49
+ var(--a63-segment-track-border, var(--a63-border-subtle));
50
+ border-radius: var(--segment-radius);
51
+ background-color: var(--a63-segment-track-background, var(--a63-surface-muted));
52
+ background-image: var(--a63-segment-track-gloss, none);
53
+ box-shadow: var(--a63-segment-track-shadow, var(--a63-track-shadow));
54
+ }
55
+ .a63-SegmentedControl-track::-webkit-scrollbar {
56
+ display: none;
57
+ }
58
+
59
+ .a63-SegmentedControl-item {
60
+ position: relative;
61
+ z-index: 1;
62
+ box-sizing: border-box;
63
+ display: inline-flex;
64
+ flex: none;
65
+ align-items: center;
66
+ justify-content: center;
67
+ gap: var(--a63-control-gap);
68
+ min-width: var(--a63-control-min-target);
69
+ height: 100%;
70
+ border: 0;
71
+ border-radius: var(--segment-active-radius);
72
+ background: transparent;
73
+ color: var(--a63-segment-foreground, var(--a63-text-secondary));
74
+ font-family: var(--a63-control-font-family);
75
+ font-size: var(--segment-font-size);
76
+ font-weight: var(--a63-control-font-weight);
77
+ line-height: 1;
78
+ white-space: nowrap;
79
+ appearance: none;
80
+ cursor: pointer;
81
+ user-select: none;
82
+ outline: none;
83
+ transition: color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
84
+ scroll-snap-align: start;
85
+ }
86
+
87
+ .a63-SegmentedControl-item::after {
88
+ content: '';
89
+ position: absolute;
90
+ inset-block: calc(var(--segment-inset) * -1);
91
+ inset-inline: 0;
92
+ }
93
+
94
+ @media (hover: hover) {
95
+ .a63-SegmentedControl-item:hover:not([data-disabled]) {
96
+ color: var(--a63-segment-hover-foreground, var(--a63-text-primary));
97
+ }
98
+ }
99
+
100
+ .a63-SegmentedControl-item[data-active] {
101
+ color: var(--a63-segment-selected-foreground, var(--a63-text-primary));
102
+ }
103
+
104
+ .a63-SegmentedControl-item:focus-visible {
105
+ box-shadow: 0 0 0 var(--a63-control-focus-ring-width)
106
+ var(--a63-control-focus-ring-color, var(--a63-focus-ring));
107
+ }
108
+
109
+ .a63-SegmentedControl-item[data-disabled] {
110
+ cursor: not-allowed;
111
+ opacity: 0.56;
112
+ }
113
+
114
+ .a63-SegmentedControl[data-variant='icon'] .a63-SegmentedControl-item {
115
+ aspect-ratio: 1;
116
+ padding: 0;
117
+ }
118
+
119
+ .a63-SegmentedControl[data-variant='label'] .a63-SegmentedControl-item {
120
+ padding-inline: var(--segment-item-padding);
121
+ }
122
+
123
+ /* Full-width: the track fills its container and segments share the width equally.
124
+ Base UI still measures the active tab, so the sliding pill sizes correctly. */
125
+ .a63-SegmentedControl[data-full] {
126
+ display: flex;
127
+ }
128
+ .a63-SegmentedControl[data-full] .a63-SegmentedControl-track {
129
+ display: flex;
130
+ width: 100%;
131
+ overflow: hidden;
132
+ scroll-snap-type: none;
133
+ touch-action: manipulation;
134
+ }
135
+ .a63-SegmentedControl[data-full] .a63-SegmentedControl-item {
136
+ flex: 1 1 0;
137
+ min-width: 0;
138
+ }
139
+
140
+ .a63-SegmentedControl-icon {
141
+ display: inline-flex;
142
+ align-items: center;
143
+ justify-content: center;
144
+ width: 1.15em;
145
+ height: 1.15em;
146
+ }
147
+
148
+ .a63-SegmentedControl-icon svg {
149
+ width: 100%;
150
+ height: 100%;
151
+ }
152
+
153
+ .a63-SegmentedControl-label {
154
+ min-width: 0;
155
+ overflow: hidden;
156
+ text-overflow: ellipsis;
157
+ }
158
+
159
+ /* ── Sliding pill ──────────────────────────────────────────────────────── */
160
+
161
+ .a63-SegmentedControl-indicator {
162
+ position: absolute;
163
+ top: 50%;
164
+ left: 0;
165
+ z-index: 0;
166
+ box-sizing: border-box;
167
+ width: var(--active-tab-width);
168
+ height: var(--active-tab-height);
169
+ border-radius: var(--segment-active-radius);
170
+ /* Raised selected plate. Overlay (not panel) is the cross-mode fallback: in
171
+ light it sits above muted; in dark it is lighter than muted. Themes override
172
+ via --a63-segment-selected-*. */
173
+ background-color: var(--a63-segment-selected-background, var(--a63-surface-overlay));
174
+ background-image: var(--a63-segment-selected-gloss, none);
175
+ /* Indicator is a raised CONTROL cell, not a pressed-in Toggle cell — keep the
176
+ control shadow even when themes set --a63-segment-selected-shadow to inset. */
177
+ box-shadow: var(--a63-control-shadow);
178
+ transform: translateX(var(--active-tab-left)) translateY(-50%);
179
+ transition:
180
+ transform var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
181
+ width var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
182
+ }
183
+
184
+ /* Opt out of the sliding animation — the pill snaps instantly. */
185
+ .a63-SegmentedControl[data-backplate-animation='off'] .a63-SegmentedControl-indicator {
186
+ transition: none;
187
+ }
188
+
189
+ .a63-SegmentedControl[data-tone='accent'] .a63-SegmentedControl-indicator {
190
+ background-color: var(--a63-segment-primary-background, var(--a63-action-primary));
191
+ background-image: var(--a63-segment-selected-gloss, none);
192
+ box-shadow: var(--a63-control-shadow);
193
+ }
194
+
195
+ .a63-SegmentedControl[data-tone='accent'] .a63-SegmentedControl-item[data-active] {
196
+ color: var(--a63-segment-primary-foreground, var(--a63-action-primary-foreground));
197
+ }
198
+
199
+ /* ── Sizes (reuse the control ramp) ────────────────────────────────────── */
200
+ /* Each block overrides --segment-inset; --segment-active-radius intentionally
201
+ re-derives from it via lazy var resolution, so it is NOT re-declared here. */
202
+
203
+ .a63-SegmentedControl[data-size='sm'] {
204
+ --segment-content-lh: var(--typography-xs-line-height);
205
+ --segment-height: max(
206
+ calc(var(--a63-control-height-sm) * var(--a63-density-scale, 1)),
207
+ var(--a63-control-min-size),
208
+ var(--segment-content-floor)
209
+ );
210
+ --segment-inset: 2px;
211
+ --segment-font-size: var(--a63-control-font-size-sm);
212
+ --segment-item-padding: var(--a63-control-padding-inline-sm);
213
+ }
214
+
215
+ .a63-SegmentedControl[data-size='lg'] {
216
+ --segment-content-lh: var(--typography-base-line-height);
217
+ --segment-height: max(
218
+ calc(var(--a63-control-height-lg) * var(--a63-density-scale, 1)),
219
+ var(--a63-control-min-size-lg, var(--a63-control-min-size)),
220
+ var(--segment-content-floor)
221
+ );
222
+ --segment-inset: 4px;
223
+ --segment-font-size: var(--a63-control-font-size-lg);
224
+ --segment-item-padding: var(--a63-control-padding-inline-lg);
225
+ }
226
+ .a63-SegmentedControl[data-size='lg'] .a63-SegmentedControl-item {
227
+ min-width: var(--a63-control-min-target-lg, var(--a63-control-min-target));
228
+ }
229
+
230
+ @media (prefers-reduced-motion: reduce) {
231
+ .a63-SegmentedControl-item,
232
+ .a63-SegmentedControl-indicator {
233
+ transition: none;
234
+ }
235
+ }
@@ -0,0 +1,261 @@
1
+ /*
2
+ * Select recipe — field-shaped trigger + menu-backed option popup.
3
+ *
4
+ * Popup chrome is the shared MENU recipe (`.a63-Menu-popup` on the surface;
5
+ * `.a63-Menu-item` / label / separator on rows). Select keeps only structural
6
+ * deltas: field trigger, scroll arrows, and the grid check-indicator item.
7
+ */
8
+
9
+ .a63-Select-trigger {
10
+ --select-background: var(--a63-field-background, var(--a63-surface-control));
11
+ --select-border: var(--a63-field-border, var(--a63-border-control));
12
+ --select-radius: var(--a63-field-radius, var(--a63-control-radius));
13
+ --select-shadow: var(--a63-field-shadow);
14
+ --select-focus-ring: var(--a63-field-focus-ring, var(--a63-focus-ring));
15
+ --select-focus-border: var(
16
+ --a63-field-focus-border,
17
+ color-mix(in oklch, var(--a63-action-primary) 62%, var(--a63-border-control))
18
+ );
19
+ /* Content floor — see button.css for the full rationale. */
20
+ --select-content-lh: var(--typography-sm-line-height);
21
+ --select-content-floor: calc(var(--select-content-lh) + 2 * var(--a63-space-0_5));
22
+ --select-height: max(
23
+ calc(var(--a63-control-height-md) * var(--a63-density-scale, 1)),
24
+ var(--a63-control-min-size),
25
+ var(--select-content-floor)
26
+ );
27
+ --select-padding-inline: var(--a63-control-padding-inline-md);
28
+ --select-font-size: var(--a63-control-font-size-md);
29
+ --select-icon-size: var(--a63-control-icon-size-md);
30
+ --select-gap: var(--a63-control-gap);
31
+
32
+ box-sizing: border-box;
33
+ display: inline-flex;
34
+ align-items: center;
35
+ justify-content: space-between;
36
+ gap: var(--select-gap);
37
+ width: 100%;
38
+ min-width: 9rem;
39
+ height: var(--select-height);
40
+ min-height: var(--select-height);
41
+ padding-inline: var(--select-padding-inline);
42
+ border: var(--a63-control-border-width) solid var(--select-border);
43
+ border-radius: var(--select-radius);
44
+ background: var(--select-background);
45
+ box-shadow: var(--select-shadow);
46
+ color: var(--a63-text-primary);
47
+ font-family: var(--a63-control-font-family);
48
+ font-size: max(var(--select-font-size), var(--a63-editable-font-size-min, 0px));
49
+ font-weight: var(--a63-control-font-weight);
50
+ line-height: 1;
51
+ text-align: start;
52
+ appearance: none;
53
+ cursor: pointer;
54
+ touch-action: manipulation;
55
+ user-select: none;
56
+ outline: none;
57
+ transition:
58
+ border-color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
59
+ box-shadow var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
60
+ }
61
+
62
+ @media (hover: hover) and (pointer: fine) {
63
+ .a63-Select-trigger:hover:not([data-disabled]) {
64
+ border-color: color-mix(in oklch, var(--select-border), var(--a63-text-primary) 18%);
65
+ }
66
+ }
67
+
68
+ .a63-Select-trigger:focus-visible {
69
+ border-color: var(--select-focus-border);
70
+ box-shadow:
71
+ var(--select-shadow),
72
+ 0 0 0 var(--a63-control-focus-ring-width) var(--select-focus-ring);
73
+ }
74
+
75
+ .a63-Select-trigger[data-disabled] {
76
+ cursor: not-allowed;
77
+ opacity: 0.56;
78
+ }
79
+
80
+ .a63-Select-trigger[data-size='sm'] {
81
+ --select-content-lh: var(--typography-xs-line-height);
82
+ --select-height: max(
83
+ calc(var(--a63-control-height-sm) * var(--a63-density-scale, 1)),
84
+ var(--a63-control-min-size),
85
+ var(--select-content-floor)
86
+ );
87
+ --select-padding-inline: var(--a63-control-padding-inline-sm);
88
+ --select-font-size: var(--a63-control-font-size-sm);
89
+ --select-icon-size: var(--a63-control-icon-size-sm);
90
+ --select-gap: var(--a63-space-1_5);
91
+ }
92
+
93
+ .a63-Select-trigger[data-size='lg'] {
94
+ --select-content-lh: var(--typography-base-line-height);
95
+ --select-height: max(
96
+ calc(var(--a63-control-height-lg) * var(--a63-density-scale, 1)),
97
+ var(--a63-control-min-size-lg, var(--a63-control-min-size)),
98
+ var(--select-content-floor)
99
+ );
100
+ --select-padding-inline: var(--a63-control-padding-inline-lg);
101
+ --select-font-size: var(--a63-control-font-size-lg);
102
+ --select-icon-size: var(--a63-control-icon-size-lg);
103
+ }
104
+
105
+ .a63-Select-value {
106
+ flex: 1;
107
+ min-width: 0;
108
+ overflow: hidden;
109
+ text-align: start;
110
+ text-overflow: ellipsis;
111
+ white-space: nowrap;
112
+ }
113
+
114
+ .a63-Select-value[data-placeholder] {
115
+ color: var(--a63-text-secondary);
116
+ }
117
+
118
+ .a63-Select-icon {
119
+ display: inline-flex;
120
+ flex: none;
121
+ color: var(--a63-text-secondary);
122
+ }
123
+
124
+ .a63-Select-icon svg {
125
+ width: var(--select-icon-size);
126
+ height: var(--select-icon-size);
127
+ }
128
+
129
+ /* ── Popup shell (motion + arrows; paint is on .a63-Menu-popup surface) ── */
130
+
131
+ .a63-Select-positioner {
132
+ z-index: var(--z-layer-menu, var(--z-layer-popover, 999));
133
+ }
134
+
135
+ .a63-Select-popup {
136
+ box-sizing: border-box;
137
+ /* No overflow:hidden — the surface owns clipping; clipping here would cut
138
+ the shared Menu-popup elevation (box-shadow) on the child plate. */
139
+ transform-origin: var(--transform-origin);
140
+ transition:
141
+ opacity var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
142
+ transform var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
143
+ }
144
+
145
+ .a63-Select-popup[data-starting-style],
146
+ .a63-Select-popup[data-ending-style] {
147
+ opacity: 0;
148
+ transform: scale(0.96);
149
+ }
150
+
151
+ /*
152
+ * Surface hosts `.a63-Menu-popup` for shared menu chrome (padding, gap, paint).
153
+ * Only override scroll ownership — the List scrolls; arrows stay outside.
154
+ */
155
+ .a63-Select-surface.a63-Menu-popup {
156
+ position: relative;
157
+ max-height: var(--available-height);
158
+ min-width: var(--anchor-width);
159
+ overflow: hidden;
160
+ }
161
+
162
+ .a63-Select-scroll-arrow {
163
+ z-index: var(--z-layer-menu, var(--z-layer-popover, 999));
164
+ display: flex;
165
+ width: 100%;
166
+ height: max(
167
+ calc(var(--a63-control-height-xs) * var(--a63-density-scale, 1)),
168
+ var(--a63-control-min-size)
169
+ );
170
+ align-items: center;
171
+ justify-content: center;
172
+ color: var(--a63-menu-label-foreground, var(--a63-text-secondary));
173
+ cursor: default;
174
+ }
175
+
176
+ .a63-Select-scroll-arrow[data-direction='up'] {
177
+ top: 0;
178
+ }
179
+
180
+ .a63-Select-scroll-arrow[data-direction='down'] {
181
+ bottom: 0;
182
+ }
183
+
184
+ .a63-Select-scroll-arrow svg {
185
+ width: 1em;
186
+ height: 1em;
187
+ }
188
+
189
+ /* List scrolls inside the padded Menu surface — no second padding inset. */
190
+ .a63-Select-list {
191
+ display: flex;
192
+ flex: 1 1 auto;
193
+ flex-direction: column;
194
+ gap: var(--a63-menu-gap, 0.125rem);
195
+ min-width: 0;
196
+ min-height: 0;
197
+ padding: 0;
198
+ overflow-x: hidden;
199
+ overflow-y: auto;
200
+ }
201
+
202
+ /* ── Item (grid check column; chrome from .a63-Menu-item) ──────────────── */
203
+
204
+ .a63-Select-item {
205
+ display: grid;
206
+ grid-template-columns: 1rem 1fr;
207
+ gap: var(--a63-menu-item-gap, var(--a63-space-2));
208
+ /* Menu-item uses flex; Select needs the indicator column. */
209
+ align-items: center;
210
+ padding-inline-end: var(--a63-space-4);
211
+ cursor: pointer;
212
+ }
213
+
214
+ .a63-Select-item[data-selected] {
215
+ font-weight: 500;
216
+ }
217
+
218
+ .a63-Select-item-indicator {
219
+ display: inline-flex;
220
+ grid-column: 1;
221
+ align-items: center;
222
+ justify-content: center;
223
+ pointer-events: none;
224
+ }
225
+
226
+ /* Beat `.a63-Menu-item svg` so the check keeps the selected-indicator tone. */
227
+ .a63-Select-item-indicator,
228
+ .a63-Select-item-indicator svg {
229
+ width: 0.875rem;
230
+ height: 0.875rem;
231
+ color: var(--a63-menu-selected-indicator, var(--a63-action-primary));
232
+ }
233
+
234
+ .a63-Select-item-text {
235
+ grid-column: 2;
236
+ min-width: 0;
237
+ overflow: hidden;
238
+ text-overflow: ellipsis;
239
+ white-space: nowrap;
240
+ }
241
+
242
+ .a63-Select-item[data-highlighted] .a63-Select-item-indicator,
243
+ .a63-Select-item[data-highlighted] .a63-Select-item-indicator svg {
244
+ color: var(--a63-menu-highlight-foreground, var(--a63-text-primary));
245
+ }
246
+
247
+ .a63-Menu-popup[data-tone='primary'] .a63-Select-item[data-highlighted] .a63-Select-item-indicator,
248
+ .a63-Menu-popup[data-tone='primary']
249
+ .a63-Select-item[data-highlighted]
250
+ .a63-Select-item-indicator
251
+ svg {
252
+ color: var(--a63-menu-highlight-primary-foreground, var(--a63-action-primary-foreground));
253
+ }
254
+
255
+ /* Group label / separator: Menu recipe owns chrome; Select keeps the slot class. */
256
+
257
+ @media (prefers-reduced-motion: reduce) {
258
+ .a63-Select-popup {
259
+ transition: none;
260
+ }
261
+ }
@@ -0,0 +1,43 @@
1
+ /*
2
+ * Separator recipe — a visual divider. Faithful to prod @atom63/ui separator.tsx:
3
+ * a solid 1px hairline (default) or a soft edge-to-edge gradient fade, in either
4
+ * orientation. Base UI sets `data-orientation`; we recolor with --a63-* tokens.
5
+ */
6
+
7
+ .a63-Separator {
8
+ flex-shrink: 0;
9
+ border: none;
10
+ background-color: var(--a63-border-subtle);
11
+ }
12
+
13
+ /* ── Orientation (solid) ───────────────────────────────────────────────── */
14
+ .a63-Separator[data-orientation='horizontal'] {
15
+ width: 100%;
16
+ height: 1px;
17
+ }
18
+ .a63-Separator[data-orientation='vertical'] {
19
+ align-self: stretch;
20
+ width: 1px;
21
+ height: 100%;
22
+ }
23
+
24
+ /* ── Gradient fade ─────────────────────────────────────────────────────── */
25
+ .a63-Separator[data-variant='gradient'] {
26
+ background-color: transparent;
27
+ }
28
+ .a63-Separator[data-variant='gradient'][data-orientation='horizontal'] {
29
+ background-image: linear-gradient(
30
+ to right,
31
+ transparent,
32
+ color-mix(in oklch, var(--a63-border-subtle) 60%, transparent),
33
+ transparent
34
+ );
35
+ }
36
+ .a63-Separator[data-variant='gradient'][data-orientation='vertical'] {
37
+ background-image: linear-gradient(
38
+ to bottom,
39
+ transparent,
40
+ color-mix(in oklch, var(--a63-border-subtle) 60%, transparent),
41
+ transparent
42
+ );
43
+ }