@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,185 @@
1
+ /*
2
+ * Toggle recipe — a quiet bistate pressable. Geometry reuses --a63-control-*.
3
+ * Pressed fill/treatment comes from the segment/toggle contracts — NOT Button
4
+ * chrome (no specular ::after panel, no tinted depth-drop). Joined gel styling
5
+ * lives on ToggleGroup (`.a63-ToggleGroup .a63-Toggle`), not on standalone Toggle.
6
+ */
7
+
8
+ .a63-Toggle {
9
+ /* Content floor — see button.css for the full rationale. */
10
+ --toggle-content-lh: var(--typography-sm-line-height);
11
+ --toggle-content-floor: calc(var(--toggle-content-lh) + 2 * var(--a63-space-0_5));
12
+ --toggle-height: max(
13
+ calc(var(--a63-control-height-md) * var(--a63-density-scale, 1)),
14
+ var(--a63-control-min-size),
15
+ var(--toggle-content-floor)
16
+ );
17
+ --toggle-padding-inline: var(--a63-control-padding-inline-md);
18
+ --toggle-icon-size: var(--a63-control-font-size-md);
19
+ --toggle-background: var(--a63-toggle-background, transparent);
20
+ --toggle-foreground: var(--a63-toggle-foreground, var(--a63-text-primary));
21
+ --toggle-hover-background: var(
22
+ --a63-toggle-hover-background,
23
+ var(--a63-segment-hover-background, var(--a63-surface-control-hover))
24
+ );
25
+ --toggle-on-background: var(
26
+ --a63-toggle-on-background,
27
+ var(--a63-segment-selected-background, var(--a63-surface-muted))
28
+ );
29
+ --toggle-on-foreground: var(
30
+ --a63-toggle-on-foreground,
31
+ var(--a63-segment-selected-foreground, var(--a63-text-primary))
32
+ );
33
+ --toggle-primary-background: var(
34
+ --a63-toggle-primary-background,
35
+ var(--a63-segment-primary-background, var(--a63-selection-accent, var(--a63-action-primary)))
36
+ );
37
+ --toggle-primary-foreground: var(
38
+ --a63-toggle-primary-foreground,
39
+ var(--a63-segment-primary-foreground, var(--a63-action-primary-foreground))
40
+ );
41
+ --toggle-border-width: var(--a63-toggle-border-width, var(--a63-control-border-width));
42
+ --toggle-radius: var(--a63-toggle-radius, var(--radius-md));
43
+ --toggle-gloss: none;
44
+ --toggle-shadow: 0 0 0 transparent;
45
+
46
+ position: relative;
47
+ box-sizing: border-box;
48
+ display: inline-flex;
49
+ flex: none;
50
+ align-items: center;
51
+ justify-content: center;
52
+ gap: var(--a63-toggle-gap, var(--a63-control-gap));
53
+ min-width: var(--toggle-height);
54
+ padding-inline: var(--toggle-padding-inline);
55
+ height: var(--toggle-height);
56
+ padding-block: 0;
57
+ appearance: none;
58
+ border: var(--toggle-border-width) solid transparent;
59
+ border-radius: var(--toggle-radius);
60
+ background-color: var(--toggle-background);
61
+ background-image: var(--toggle-gloss);
62
+ box-shadow: var(--toggle-shadow);
63
+ color: var(--toggle-foreground);
64
+ font-family: var(--a63-control-font-family);
65
+ font-size: var(--a63-control-font-size-md);
66
+ font-weight: var(--a63-control-font-weight);
67
+ line-height: 1;
68
+ text-shadow: var(--a63-toggle-text-shadow, none);
69
+ white-space: nowrap;
70
+ cursor: pointer;
71
+ user-select: none;
72
+ outline: none;
73
+ transition:
74
+ background-color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
75
+ background-image var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
76
+ box-shadow var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
77
+ color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
78
+ }
79
+
80
+ .a63-Toggle-content {
81
+ position: relative;
82
+ z-index: 1;
83
+ display: inline-flex;
84
+ align-items: center;
85
+ justify-content: center;
86
+ gap: inherit;
87
+ /* Was `overflow: hidden` on the root, which clipped the hit-area pseudo below.
88
+ The root's background/gloss is already clipped by its own border-radius, so
89
+ only the label ever needed clipping. */
90
+ overflow: hidden;
91
+ transition: transform var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
92
+ }
93
+
94
+ /* Interaction floor without inflating the rendered box — the same pattern
95
+ checkbox/radio/switch use. Absolutely positioned so it stays out of the
96
+ inline-flex layout; a tap on it still hits the toggle, since it is a child. */
97
+ .a63-Toggle::before {
98
+ content: '';
99
+ position: absolute;
100
+ inset: 50%;
101
+ min-width: var(--a63-control-min-target);
102
+ min-height: var(--a63-control-min-target);
103
+ translate: -50% -50%;
104
+ }
105
+
106
+ .a63-Toggle:active:not([data-disabled]) .a63-Toggle-content {
107
+ transform: scale(0.96);
108
+ }
109
+
110
+ .a63-Toggle :where(svg) {
111
+ width: var(--toggle-icon-size);
112
+ height: var(--toggle-icon-size);
113
+ flex: none;
114
+ opacity: 0.8;
115
+ pointer-events: none;
116
+ }
117
+
118
+ .a63-Toggle[data-pressed] :where(svg) {
119
+ opacity: 1;
120
+ }
121
+
122
+ /* ── States (standalone) ───────────────────────────────────────────────── */
123
+
124
+ .a63-Toggle:hover:not([data-pressed]):not([data-disabled]) {
125
+ background-color: var(--toggle-hover-background);
126
+ color: var(--a63-segment-hover-foreground, var(--a63-text-primary));
127
+ }
128
+
129
+ .a63-Toggle:focus-visible {
130
+ box-shadow:
131
+ var(--toggle-shadow),
132
+ 0 0 0 var(--a63-control-focus-ring-width)
133
+ var(--a63-control-focus-ring-color, var(--a63-focus-ring));
134
+ }
135
+
136
+ .a63-Toggle[data-pressed][data-tone='neutral'] {
137
+ --toggle-shadow: var(--a63-toggle-shadow, none);
138
+ background-color: var(--toggle-on-background);
139
+ color: var(--toggle-on-foreground);
140
+ }
141
+
142
+ .a63-Toggle[data-pressed][data-tone='accent'] {
143
+ --toggle-shadow: var(--a63-toggle-shadow, none);
144
+ background-color: var(--toggle-primary-background);
145
+ color: var(--toggle-primary-foreground);
146
+ }
147
+
148
+ .a63-Toggle[data-disabled] {
149
+ cursor: not-allowed;
150
+ opacity: var(--a63-toggle-disabled-opacity, var(--a63-segment-disabled-opacity, 0.56));
151
+ }
152
+
153
+ /* ── Sizes ─────────────────────────────────────────────────────────────── */
154
+
155
+ .a63-Toggle[data-size='sm'] {
156
+ --toggle-content-lh: var(--typography-xs-line-height);
157
+ --toggle-height: max(
158
+ calc(var(--a63-control-height-sm) * var(--a63-density-scale, 1)),
159
+ var(--a63-control-min-size),
160
+ var(--toggle-content-floor)
161
+ );
162
+ --toggle-padding-inline: var(--a63-control-padding-inline-sm);
163
+ --toggle-icon-size: var(--a63-control-font-size-sm);
164
+ font-size: var(--a63-control-font-size-sm);
165
+ }
166
+
167
+ .a63-Toggle[data-size='lg'] {
168
+ --toggle-content-lh: var(--typography-base-line-height);
169
+ --toggle-height: max(
170
+ calc(var(--a63-control-height-lg) * var(--a63-density-scale, 1)),
171
+ var(--a63-control-min-size-lg, var(--a63-control-min-size)),
172
+ var(--toggle-content-floor)
173
+ );
174
+ --toggle-padding-inline: var(--a63-control-padding-inline-lg);
175
+ --toggle-icon-size: var(--a63-control-font-size-lg);
176
+ min-width: var(--a63-control-min-target-lg, var(--a63-control-min-target));
177
+ font-size: var(--a63-control-font-size-lg);
178
+ }
179
+
180
+ @media (prefers-reduced-motion: reduce) {
181
+ .a63-Toggle,
182
+ .a63-Toggle-content {
183
+ transition: none;
184
+ }
185
+ }
@@ -0,0 +1,102 @@
1
+ /*
2
+ * ToggleGroup recipe — ALWAYS a joined/welded segmented bar (Figma 432:1335).
3
+ * Each item owns its gel fill/border; the group welds seams + first/last radii.
4
+ * Gapped independent toggles are composed as standalone `Toggle`s, not a group.
5
+ */
6
+
7
+ .a63-ToggleGroup {
8
+ display: inline-flex;
9
+ gap: var(--a63-segment-gap, 0);
10
+ border-radius: var(--a63-segment-radius, var(--radius-md));
11
+ background: transparent;
12
+ box-shadow: none;
13
+ }
14
+
15
+ .a63-ToggleGroup[data-orientation='vertical'] {
16
+ flex-direction: column;
17
+ align-items: stretch;
18
+ }
19
+
20
+ /* Joined cell chrome — segment gel tokens (aqua mid-line, retro bevel, …). */
21
+ .a63-ToggleGroup .a63-Toggle {
22
+ border-radius: 0;
23
+ border-color: var(--a63-segment-track-border, var(--a63-border-subtle));
24
+ background-color: var(--a63-segment-background, var(--a63-surface-muted));
25
+ background-image: var(--a63-segment-gloss, none);
26
+ color: var(--a63-segment-foreground, var(--a63-text-secondary));
27
+ filter: none;
28
+ }
29
+
30
+ .a63-ToggleGroup .a63-Toggle-content {
31
+ filter: drop-shadow(0 1px 0 color-mix(in oklch, black 5%, transparent));
32
+ }
33
+
34
+ .a63-ToggleGroup .a63-Toggle:hover:not([data-pressed]):not([data-disabled]) {
35
+ background-color: var(--a63-segment-background, var(--a63-surface-muted));
36
+ color: var(--a63-segment-hover-foreground, var(--a63-text-primary));
37
+ }
38
+
39
+ .a63-ToggleGroup .a63-Toggle[data-pressed][data-tone='neutral'] {
40
+ background-color: var(--a63-segment-selected-background, var(--a63-surface-overlay));
41
+ background-image: var(--a63-segment-selected-gloss, none);
42
+ box-shadow: var(--a63-segment-selected-shadow, none);
43
+ color: var(--a63-segment-selected-foreground, var(--a63-text-primary));
44
+ }
45
+
46
+ .a63-ToggleGroup .a63-Toggle[data-pressed][data-tone='accent'] {
47
+ background-color: var(--a63-segment-primary-background, var(--a63-action-primary));
48
+ background-image: var(--a63-segment-selected-gloss, none);
49
+ box-shadow: var(--a63-segment-primary-shadow, var(--a63-segment-selected-shadow, none));
50
+ color: var(--a63-segment-primary-foreground, var(--a63-action-primary-foreground));
51
+ }
52
+
53
+ .a63-ToggleGroup .a63-Toggle:focus-visible {
54
+ box-shadow:
55
+ var(--a63-segment-selected-shadow, none),
56
+ 0 0 0 var(--a63-control-focus-ring-width)
57
+ var(--a63-control-focus-ring-color, var(--a63-focus-ring));
58
+ }
59
+
60
+ .a63-ToggleGroup[data-orientation='horizontal'] .a63-Toggle:first-child {
61
+ border-start-start-radius: var(--a63-segment-radius, var(--radius-md));
62
+ border-end-start-radius: var(--a63-segment-radius, var(--radius-md));
63
+ }
64
+
65
+ .a63-ToggleGroup[data-orientation='horizontal'] .a63-Toggle:last-child {
66
+ border-start-end-radius: var(--a63-segment-radius, var(--radius-md));
67
+ border-end-end-radius: var(--a63-segment-radius, var(--radius-md));
68
+ }
69
+
70
+ .a63-ToggleGroup[data-orientation='horizontal'] .a63-Toggle:not(:first-child) {
71
+ border-inline-start-width: 0;
72
+ }
73
+
74
+ .a63-ToggleGroup[data-orientation='vertical'] .a63-Toggle:first-child {
75
+ border-start-start-radius: var(--a63-segment-radius, var(--radius-md));
76
+ border-start-end-radius: var(--a63-segment-radius, var(--radius-md));
77
+ }
78
+
79
+ .a63-ToggleGroup[data-orientation='vertical'] .a63-Toggle:last-child {
80
+ border-end-start-radius: var(--a63-segment-radius, var(--radius-md));
81
+ border-end-end-radius: var(--a63-segment-radius, var(--radius-md));
82
+ }
83
+
84
+ .a63-ToggleGroup[data-orientation='vertical'] .a63-Toggle:not(:first-child) {
85
+ border-block-start-width: 0;
86
+ }
87
+
88
+ /* ── Separator ─────────────────────────────────────────────────────────── */
89
+
90
+ .a63-ToggleGroup-separator {
91
+ flex: none;
92
+ align-self: stretch;
93
+ background-color: var(--a63-segment-seam, var(--a63-border-subtle));
94
+ }
95
+
96
+ .a63-ToggleGroup-separator[data-orientation='vertical'] {
97
+ width: var(--a63-toggle-border-width, var(--a63-control-border-width));
98
+ }
99
+
100
+ .a63-ToggleGroup-separator[data-orientation='horizontal'] {
101
+ height: var(--a63-toggle-border-width, var(--a63-control-border-width));
102
+ }
@@ -0,0 +1,133 @@
1
+ /*
2
+ * Tooltip recipe — the OVERLAY archetype (a hover/focus-activated label popup),
3
+ * a consumer of the overlay contract alongside the Select popup + HoverCard. Its
4
+ * elevation reads the --a63-overlay-shadow lever; bg (--a63-surface-overlay),
5
+ * border (--a63-border-subtle), radius (--radius-md), stacking (--z-layer-tooltip
6
+ * → --z-layer-popover) and entrance motion (--a63-control-feedback-*) resolve
7
+ * from semantics/foundation at the use-site. No new --a63-* tokens.
8
+ *
9
+ * Positioner + viewport keep prod @atom63/ui handle behavior: sized to floating
10
+ * vars, animated reposition between adjacent triggers, and previous/current
11
+ * content crossfade when TooltipCreateHandle swaps labels.
12
+ */
13
+
14
+ .a63-Tooltip-positioner {
15
+ z-index: var(--z-layer-tooltip, var(--z-layer-popover, 999));
16
+ width: var(--positioner-width);
17
+ max-width: var(--available-width);
18
+ height: var(--positioner-height);
19
+ transition:
20
+ top var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
21
+ left var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
22
+ right var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
23
+ bottom var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
24
+ transform var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
25
+ }
26
+
27
+ .a63-Tooltip-positioner[data-instant] {
28
+ transition: none;
29
+ }
30
+
31
+ [data-slot='tooltip-trigger'] {
32
+ touch-action: manipulation;
33
+ }
34
+
35
+ .a63-Tooltip-popup {
36
+ position: relative;
37
+ box-sizing: border-box;
38
+ display: flex;
39
+ width: var(--popup-width, auto);
40
+ max-width: min(
41
+ 18rem,
42
+ var(--available-width),
43
+ calc(
44
+ 100dvw - var(--a63-safe-area-left, 0px) - var(--a63-safe-area-right, 0px) - 2 *
45
+ var(--a63-space-4)
46
+ )
47
+ );
48
+ height: var(--popup-height, auto);
49
+ border: var(--a63-overlay-border-width) var(--a63-overlay-border-style) var(--a63-border-subtle);
50
+ border-radius: var(--a63-overlay-radius, var(--radius-md));
51
+ background-color: var(--a63-surface-overlay);
52
+ background-image: var(--a63-overlay-gloss), var(--a63-overlay-texture-image);
53
+ background-clip: padding-box;
54
+ background-blend-mode: normal, var(--a63-overlay-texture-blend);
55
+ backdrop-filter: var(--a63-overlay-backdrop);
56
+ box-shadow: var(--a63-overlay-inner-shadow, none), var(--a63-overlay-shadow);
57
+ color: var(--a63-text-primary);
58
+ font-family: var(--a63-control-font-family);
59
+ font-size: var(--a63-control-font-size-sm);
60
+ line-height: 1.35;
61
+ text-align: start;
62
+ text-wrap: balance;
63
+ transform-origin: var(--transform-origin);
64
+ transition:
65
+ opacity var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
66
+ transform var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
67
+ width var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
68
+ height var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
69
+ }
70
+
71
+ .a63-Tooltip-popup[data-starting-style],
72
+ .a63-Tooltip-popup[data-ending-style] {
73
+ opacity: 0;
74
+ transform: scale(0.98);
75
+ }
76
+
77
+ .a63-Tooltip-popup[data-instant] {
78
+ transition: none;
79
+ }
80
+
81
+ .a63-Tooltip-viewport {
82
+ --a63-tooltip-viewport-inline-padding: var(--a63-space-2);
83
+
84
+ position: relative;
85
+ box-sizing: border-box;
86
+ width: 100%;
87
+ height: 100%;
88
+ padding-block: var(--a63-space-unit);
89
+ padding-inline: var(--a63-tooltip-viewport-inline-padding);
90
+ overflow: clip;
91
+ overflow-wrap: anywhere;
92
+ }
93
+
94
+ .a63-Tooltip-viewport[data-instant] {
95
+ transition: none;
96
+ }
97
+
98
+ /* Handle swaps: keep outgoing/incoming label widths aligned while crossfading. */
99
+ .a63-Tooltip-viewport [data-previous],
100
+ .a63-Tooltip-viewport [data-current] {
101
+ width: calc(
102
+ var(--popup-width) - 2 * var(--a63-tooltip-viewport-inline-padding) -
103
+ var(--a63-overlay-border-width) - var(--a63-overlay-border-width)
104
+ );
105
+ opacity: 1;
106
+ transition: opacity var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
107
+ }
108
+
109
+ .a63-Tooltip-viewport [data-previous] {
110
+ overflow: hidden;
111
+ text-overflow: ellipsis;
112
+ white-space: nowrap;
113
+ }
114
+
115
+ .a63-Tooltip-viewport [data-current][data-starting-style],
116
+ .a63-Tooltip-viewport [data-current][data-ending-style],
117
+ .a63-Tooltip-viewport [data-previous][data-starting-style],
118
+ .a63-Tooltip-viewport [data-previous][data-ending-style] {
119
+ opacity: 0;
120
+ }
121
+
122
+ .a63-Tooltip-viewport p {
123
+ margin: 0;
124
+ }
125
+
126
+ @media (prefers-reduced-motion: reduce) {
127
+ .a63-Tooltip-positioner,
128
+ .a63-Tooltip-popup,
129
+ .a63-Tooltip-viewport [data-previous],
130
+ .a63-Tooltip-viewport [data-current] {
131
+ transition: none;
132
+ }
133
+ }
@@ -0,0 +1,171 @@
1
+ /*
2
+ * Controls that float on top of the photo.
3
+ *
4
+ * The photo's colors are unknowable, and — now that the backdrop follows the
5
+ * theme too — so is whatever sits behind the letterboxing gutter these
6
+ * controls can also land on. Tinting a translucent surface off of "whatever
7
+ * is behind it" (the first cut of this) fails the moment that backing is
8
+ * light: a white tint on a light backdrop is a white smudge. These controls
9
+ * carry their own opaque-enough backplate instead, dark regardless of theme
10
+ * or photo, so contrast never depends on what they're floating over.
11
+ */
12
+ [data-slot='media-lightbox'] {
13
+ --a63-lightbox-on-media-fg: #fff;
14
+ --a63-lightbox-on-media-surface: rgb(0 0 0 / 0.55);
15
+ --a63-lightbox-on-media-surface-hover: rgb(0 0 0 / 0.7);
16
+ --a63-lightbox-on-media-border: rgb(255 255 255 / 0.16);
17
+ --a63-lightbox-on-media-ring: rgb(255 255 255 / 0.85);
18
+ }
19
+
20
+ /*
21
+ * The glass-tone controls in the top-right cluster, and the capsule the zoom
22
+ * pair shares. Same overlay-contract material as
23
+ * `.a63-media-lightbox-zoom-cursor` — border, gloss, blur, shadow — so a dark scrim still reads as an object
24
+ * sitting on a dark photo or a near-black dark-theme backdrop, not a flat
25
+ * smudge. Background-color (not `background`) so Tailwind's `bg-*` never has
26
+ * to out-specificity this for the disabled/hover states, which stay on the
27
+ * class the rest of the button's utilities already share.
28
+ */
29
+ .a63-media-lightbox-on-media {
30
+ border: var(--a63-overlay-border-width) var(--a63-overlay-border-style)
31
+ var(--a63-lightbox-on-media-border);
32
+ background-color: var(--a63-lightbox-on-media-surface);
33
+ background-image: var(--a63-overlay-gloss), var(--a63-overlay-texture-image);
34
+ background-blend-mode: normal, var(--a63-overlay-texture-blend);
35
+ backdrop-filter: var(--a63-overlay-backdrop);
36
+ box-shadow: var(--a63-overlay-inner-shadow, none), var(--a63-overlay-shadow);
37
+ color: var(--a63-lightbox-on-media-fg);
38
+ }
39
+
40
+ .a63-media-lightbox-on-media:hover {
41
+ background-color: var(--a63-lightbox-on-media-surface-hover);
42
+ }
43
+
44
+ /*
45
+ * MediaLightbox — view-transition morph.
46
+ *
47
+ * Scoped to `.a63-media-lightbox-vt`, which the lightbox puts on <html> only for
48
+ * the duration of its own transition, so route and theme transitions keep their
49
+ * own timing. `*-in` / `*-out` split open from close: the same UA snapshots
50
+ * mean opposite things on the way back.
51
+ */
52
+
53
+ .a63-media-lightbox-vt::view-transition-group(root) {
54
+ animation: none;
55
+ }
56
+
57
+ .a63-media-lightbox-vt::view-transition-new(root) {
58
+ animation: none;
59
+ mix-blend-mode: normal;
60
+ }
61
+
62
+ /*
63
+ * Opening: hide the outgoing page so it cannot plus-lighter-zoom under the
64
+ * photo. Closing: fade the lightbox overlay out over the morph — snapping it
65
+ * off (`display: none`) left a hitch where the dim was gone and the tile had
66
+ * not arrived yet.
67
+ */
68
+ .a63-media-lightbox-vt-in::view-transition-old(root) {
69
+ display: none;
70
+ }
71
+
72
+ .a63-media-lightbox-vt-out::view-transition-old(root) {
73
+ animation-duration: var(--a63-lightbox-vt-duration, 360ms);
74
+ animation-timing-function: var(
75
+ --a63-lightbox-vt-easing,
76
+ var(--a63-motion-ease-emphasized, cubic-bezier(0.32, 0.72, 0, 1))
77
+ );
78
+ mix-blend-mode: normal;
79
+ }
80
+
81
+ .a63-media-lightbox-vt::view-transition-group(a63-media-lightbox-media) {
82
+ overflow: clip;
83
+ animation-duration: var(--a63-lightbox-vt-duration, 360ms);
84
+ animation-timing-function: var(
85
+ --a63-lightbox-vt-easing,
86
+ var(--a63-motion-ease-emphasized, cubic-bezier(0.32, 0.72, 0, 1))
87
+ );
88
+ z-index: 1;
89
+ }
90
+
91
+ .a63-media-lightbox-vt-out::view-transition-group(a63-media-lightbox-media) {
92
+ border-radius: var(--a63-lightbox-morph-radius, var(--radius-lg, 8px));
93
+ }
94
+
95
+ .a63-media-lightbox-vt::view-transition-image-pair(a63-media-lightbox-media) {
96
+ isolation: isolate;
97
+ }
98
+
99
+ .a63-media-lightbox-vt::view-transition-old(a63-media-lightbox-media),
100
+ .a63-media-lightbox-vt::view-transition-new(a63-media-lightbox-media) {
101
+ height: 100%;
102
+ width: 100%;
103
+ mix-blend-mode: normal;
104
+ object-position: center;
105
+ }
106
+
107
+ /*
108
+ * Open: tile (cover) uncrops into the frame (contain).
109
+ * Close: the frame (contain) recrops into the tile (cover). Using the open
110
+ * pairing on the way back recropped the large photo mid-flight.
111
+ */
112
+ .a63-media-lightbox-vt-in::view-transition-old(a63-media-lightbox-media),
113
+ .a63-media-lightbox-vt-out::view-transition-new(a63-media-lightbox-media) {
114
+ object-fit: cover;
115
+ }
116
+
117
+ .a63-media-lightbox-vt-in::view-transition-new(a63-media-lightbox-media),
118
+ .a63-media-lightbox-vt-out::view-transition-old(a63-media-lightbox-media) {
119
+ object-fit: contain;
120
+ }
121
+
122
+ @media (prefers-reduced-motion: reduce) {
123
+ .a63-media-lightbox-vt::view-transition-group(a63-media-lightbox-media),
124
+ .a63-media-lightbox-vt::view-transition-old(a63-media-lightbox-media),
125
+ .a63-media-lightbox-vt::view-transition-new(a63-media-lightbox-media),
126
+ .a63-media-lightbox-vt-out::view-transition-old(root) {
127
+ animation: none;
128
+ }
129
+ }
130
+
131
+ /*
132
+ * Name isolation. `startViewTransition` snapshots the whole document, so any
133
+ * element that already carries a `view-transition-name` — a route transition,
134
+ * a theme swap, a widget morph — would be captured as its own group and paint
135
+ * over the lightbox. While the lightbox owns the transition, nothing else does.
136
+ */
137
+ .a63-media-lightbox-vt *:not([data-a63-morph-target]) {
138
+ view-transition-name: none;
139
+ }
140
+
141
+ .a63-media-lightbox-vt [data-a63-morph-target] {
142
+ view-transition-name: a63-media-lightbox-media !important;
143
+ }
144
+
145
+ /*
146
+ * Pointer-following plus on the enlarge target — same overlay surface as
147
+ * Carousel's cursorIndicator, instead of the system zoom cursor.
148
+ */
149
+ [data-zoom-cursor-active] {
150
+ cursor: none;
151
+ }
152
+
153
+ .a63-media-lightbox-zoom-cursor {
154
+ pointer-events: none;
155
+ position: absolute;
156
+ z-index: 2;
157
+ display: flex;
158
+ width: max(2.5rem, var(--a63-control-min-target, 2.75rem));
159
+ height: max(2.5rem, var(--a63-control-min-target, 2.75rem));
160
+ transform: translate(-50%, -50%);
161
+ align-items: center;
162
+ justify-content: center;
163
+ border: var(--a63-overlay-border-width) var(--a63-overlay-border-style) var(--a63-border-subtle);
164
+ border-radius: var(--a63-overlay-radius, var(--radius-full, 9999px));
165
+ background-color: var(--a63-surface-overlay);
166
+ background-image: var(--a63-overlay-gloss), var(--a63-overlay-texture-image);
167
+ background-blend-mode: normal, var(--a63-overlay-texture-blend);
168
+ backdrop-filter: var(--a63-overlay-backdrop);
169
+ box-shadow: var(--a63-overlay-inner-shadow, none), var(--a63-overlay-shadow);
170
+ color: var(--a63-text-primary);
171
+ }
@@ -0,0 +1,3 @@
1
+ @import '@atom63/styles';
2
+ @import './reset.css';
3
+ @import './recipes.css';
@@ -0,0 +1,70 @@
1
+ /*
2
+ * All DS component recipes (the `.a63-*` class styles), WITHOUT the @atom63/styles
3
+ * foundation or reset. Consumers that already load the foundation (e.g. atom63.io
4
+ * loads @atom63/styles in its own entry) import THIS to get every recipe in one
5
+ * shot — so a new primitive's recipe propagates automatically, no hand-kept list.
6
+ * The full `@atom63/ui-react/styles.css` = @atom63/styles + reset + this file.
7
+ */
8
+ @import '../components/alert/alert.css' layer(components);
9
+ @import '../components/badge/badge.css' layer(components);
10
+ @import '../components/button/button.css' layer(components);
11
+ @import '../components/card/card.css' layer(components);
12
+ @import '../components/carousel/carousel.css' layer(components);
13
+ @import '../components/checkbox/checkbox.css' layer(components);
14
+ @import '../components/collapsible/collapsible.css' layer(components);
15
+ @import '../components/command/command.css' layer(components);
16
+ @import '../components/connected-panel/connected-panel.css' layer(components);
17
+ @import '../components/menu/menu.css' layer(components);
18
+ @import '../components/drawer/drawer.css' layer(components);
19
+ @import '../components/feedback-state/feedback-state.css' layer(components);
20
+ @import '../components/frame/frame.css' layer(components);
21
+ @import '../components/load-more-trigger/load-more-trigger.css' layer(components);
22
+ @import '../components/hover-card/hover-card.css' layer(components);
23
+ @import '../components/input-otp/input-otp.css' layer(components);
24
+ @import '../components/input/input.css' layer(components);
25
+ @import '../components/kbd/kbd.css' layer(components);
26
+ @import '../components/label/label.css' layer(components);
27
+ @import '../components/radio/radio.css' layer(components);
28
+ @import '../components/scroll-area/scroll-area.css' layer(components);
29
+ @import '../components/popover/popover.css' layer(components);
30
+ @import '../components/scrollable-list/scrollable-list.css' layer(components);
31
+ @import '../components/segmented-control/segmented-control.css' layer(components);
32
+ @import '../components/select/select.css' layer(components);
33
+ @import '../components/separator/separator.css' layer(components);
34
+ @import '../components/sheet/sheet.css' layer(components);
35
+ @import '../components/slider/slider.css' layer(components);
36
+ @import '../components/skeleton/skeleton.css' layer(components);
37
+ @import '../components/switch/switch.css' layer(components);
38
+ @import '../components/tabs/tabs.css' layer(components);
39
+ @import '../components/text-ticker/text-ticker.css' layer(components);
40
+ @import '../components/textarea/textarea.css' layer(components);
41
+ @import '../components/toggle/toggle.css' layer(components);
42
+ @import '../components/tooltip/tooltip.css' layer(components);
43
+ @import '../components/toggle-group/toggle-group.css' layer(components);
44
+ @import '../components/alert-dialog/alert-dialog.css' layer(components);
45
+ @import '../components/avatar/avatar.css' layer(components);
46
+ @import '../components/breadcrumb/breadcrumb.css' layer(components);
47
+ @import '../components/button-group/button-group.css' layer(components);
48
+ @import '../components/copy-button/copy-button.css' layer(components);
49
+ @import '../components/dialog/dialog.css' layer(components);
50
+ @import '../components/empty/empty.css' layer(components);
51
+ @import '../components/item/item.css' layer(components);
52
+ @import '../components/marquee/marquee.css' layer(components);
53
+ @import '../components/pagination/pagination.css' layer(components);
54
+ @import '../components/progress/progress.css' layer(components);
55
+ @import '../components/table/table.css' layer(components);
56
+ @import '../components/accordion/accordion.css' layer(components);
57
+ @import '../components/autocomplete/autocomplete.css' layer(components);
58
+ @import '../components/calendar/calendar.css' layer(components);
59
+ @import '../components/field/field.css' layer(components);
60
+ @import '../components/form/form.css' layer(components);
61
+ @import '../components/menubar/menubar.css' layer(components);
62
+ @import '../components/navigation-menu/navigation-menu.css' layer(components);
63
+ @import '../components/panel-setting-button/panel-setting-button.css' layer(components);
64
+ @import '../components/preview-card/preview-card.css' layer(components);
65
+ @import '../components/resizable/resizable.css' layer(components);
66
+ @import '../components/sidebar/sidebar.css' layer(components);
67
+ @import '../components/sidebar-nav-tree/sidebar-nav-tree.css' layer(components);
68
+ /* Document-level ::view-transition pseudos — deliberately unlayered so they are
69
+ not outranked by an app's own transition rules. */
70
+ @import '../media/media-lightbox/media-lightbox.css';
@@ -0,0 +1,22 @@
1
+ /* Scoped reset lives in @layer base so component recipes (@layer components)
2
+ and consumer utilities (@layer utilities) both override it. */
3
+ @layer base {
4
+ .a63-UIProvider,
5
+ .a63-UIProvider *,
6
+ .a63-UIProvider *::before,
7
+ .a63-UIProvider *::after {
8
+ box-sizing: border-box;
9
+ }
10
+
11
+ .a63-UIProvider {
12
+ min-width: 0;
13
+ color: var(--a63-text-primary);
14
+ font-family: var(--font-family-sans);
15
+ font-size: var(--typography-sm-font-size);
16
+ line-height: var(--typography-sm-line-height);
17
+ }
18
+
19
+ .a63-UIProvider :where(button, input, textarea, select) {
20
+ font: inherit;
21
+ }
22
+ }