@atom63/ui-react 0.2.0-beta.12 → 0.2.0-beta.13

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 (58) hide show
  1. package/README.md +12 -0
  2. package/dist/{button-oVOZ5VpA.d.ts → button-DMnQeAEL.d.ts} +2 -1
  3. package/dist/calendar/index.d.ts +2 -1
  4. package/dist/{chunk-CVKG2VJD.js → chunk-IFBF2IA3.js} +14 -5
  5. package/dist/chunk-IFBF2IA3.js.map +1 -0
  6. package/dist/{chunk-CN4A5CNH.js → chunk-RLF45GBS.js} +149 -49
  7. package/dist/chunk-RLF45GBS.js.map +1 -0
  8. package/dist/{chunk-R67OZVA2.js → chunk-WL27K6MO.js} +3 -2
  9. package/dist/chunk-WL27K6MO.js.map +1 -0
  10. package/dist/{chunk-X5L5DEUZ.js → chunk-ZEY2VU4O.js} +3 -3
  11. package/dist/{chunk-X5L5DEUZ.js.map → chunk-ZEY2VU4O.js.map} +1 -1
  12. package/dist/{destination-link-DMLeR-oF.d.ts → destination-link-BHVQyWry.d.ts} +2 -1
  13. package/dist/{index-B06li5uo.d.ts → index-CbgpSG4j.d.ts} +16 -7
  14. package/dist/index.d.ts +77 -26
  15. package/dist/index.js +239 -86
  16. package/dist/index.js.map +1 -1
  17. package/dist/layout/index.d.ts +2 -1
  18. package/dist/media/index.d.ts +5 -4
  19. package/dist/media/index.js +35 -7
  20. package/dist/media/index.js.map +1 -1
  21. package/dist/media/media-lightbox/parts/index.d.ts +5 -4
  22. package/dist/media/media-lightbox/parts/index.js +2 -2
  23. package/dist/preview/index.d.ts +2 -3
  24. package/dist/preview/index.js +1 -1
  25. package/dist/theme/index.d.ts +3 -2
  26. package/dist/theme/index.js +1 -1
  27. package/dist/{types-Dxe5IzjE.d.ts → types-KQLxlHQZ.d.ts} +21 -0
  28. package/package.json +11 -10
  29. package/src/components/alert/alert.css +18 -15
  30. package/src/components/autocomplete/autocomplete.css +20 -4
  31. package/src/components/chat-typing-indicator/chat-typing-indicator.css +22 -0
  32. package/src/components/command/command.css +20 -0
  33. package/src/components/destination-link/destination-link.css +28 -0
  34. package/src/components/drawer/drawer.css +6 -2
  35. package/src/components/empty/empty.css +2 -4
  36. package/src/components/load-more-trigger/load-more-trigger.css +17 -0
  37. package/src/components/marquee/marquee.css +25 -3
  38. package/src/components/menu/menu.css +36 -1
  39. package/src/components/navigation-menu/navigation-menu.css +22 -4
  40. package/src/components/panel-setting-button/panel-setting-button.css +14 -0
  41. package/src/components/progress/progress.css +24 -2
  42. package/src/components/radio/radio.css +14 -0
  43. package/src/components/rating/rating.css +17 -0
  44. package/src/components/segmented-control/segmented-control.css +14 -0
  45. package/src/components/select/select.css +8 -0
  46. package/src/components/separator/separator.css +3 -1
  47. package/src/components/sheet/sheet.css +8 -4
  48. package/src/components/sidebar/sidebar.css +11 -4
  49. package/src/components/switch/switch.css +16 -1
  50. package/src/components/tabs/tabs.css +10 -0
  51. package/src/components/toggle/toggle.css +14 -8
  52. package/src/components/toggle-group/toggle-group.css +9 -0
  53. package/src/media/media-lightbox/media-lightbox.css +31 -1
  54. package/src/styles/recipes.css +1 -0
  55. package/src/styles/utilities.css +3 -0
  56. package/dist/chunk-CN4A5CNH.js.map +0 -1
  57. package/dist/chunk-CVKG2VJD.js.map +0 -1
  58. package/dist/chunk-R67OZVA2.js.map +0 -1
@@ -1,9 +1,9 @@
1
- import { d as MediaLightboxItem, M as MediaLightboxLabels, c as MediaLightboxAppearance, b as MediaLightboxTransition } from '../../../types-Dxe5IzjE.js';
2
- export { e as MediaLightboxItemKind, f as MediaLightboxVideoSource, g as MediaLightboxVideoTrack } from '../../../types-Dxe5IzjE.js';
1
+ import { d as MediaLightboxItem, M as MediaLightboxLabels, c as MediaLightboxAppearance, b as MediaLightboxTransition } from '../../../types-KQLxlHQZ.js';
2
+ export { e as MediaLightboxItemKind, f as MediaLightboxVideoSource, g as MediaLightboxVideoTrack } from '../../../types-KQLxlHQZ.js';
3
3
  import * as React from 'react';
4
4
  import { RefObject, ReactNode } from 'react';
5
5
  import { useRender } from '@base-ui/react/use-render';
6
- import { D as DestinationLink } from '../../../destination-link-DMLeR-oF.js';
6
+ import { DestinationLink } from '../../../index.js';
7
7
  import '@atom63/ui-foundation';
8
8
 
9
9
  /**
@@ -289,4 +289,5 @@ declare const Lightbox: {
289
289
  readonly ZoomOut: typeof LightboxZoomOut;
290
290
  };
291
291
 
292
- export { Lightbox, LightboxAppearanceToggle, type LightboxAppearanceToggleProps, LightboxBackdrop, type LightboxBackdropProps, LightboxCaption, type LightboxCaptionProps, LightboxClose, type LightboxCloseProps, type LightboxConfig, LightboxContent, type LightboxContentProps, LightboxCounter, type LightboxCounterProps, LightboxDestination, type LightboxDestinationProps, LightboxFrame, type LightboxFrameProps, LightboxMedia, LightboxNext, type LightboxNextProps, LightboxPortal, type LightboxPortalProps, LightboxPrevious, type LightboxPreviousProps, type LightboxRefs, LightboxRoot, type LightboxRootProps, LightboxSlide, type LightboxSlideProps, type LightboxSlide$1 as LightboxSlideValue, LightboxSlides, type LightboxSlidesProps, type LightboxState, LightboxStatus, type LightboxStatusProps, LightboxThumbnail, type LightboxThumbnailContextValue, type LightboxThumbnailProps, LightboxThumbnails, type LightboxThumbnailsProps, type LightboxTiming, LightboxViewport, type LightboxViewportProps, LightboxZoom, LightboxZoomIn, type LightboxZoomInProps, type LightboxZoomOptions, LightboxZoomOut, type LightboxZoomOutProps, type LightboxZoomProps, MediaLightboxAppearance, MediaLightboxItem, MediaLightboxLabels, MediaLightboxTransition, useLightboxConfig, useLightboxRefs, useLightboxSlide, useLightboxState, useOptionalLightboxConfig };
292
+ export { Lightbox, LightboxAppearanceToggle, LightboxBackdrop, LightboxCaption, LightboxClose, LightboxContent, LightboxCounter, LightboxDestination, LightboxFrame, LightboxMedia, LightboxNext, LightboxPortal, LightboxPrevious, LightboxRoot, LightboxSlide, LightboxSlides, LightboxStatus, LightboxThumbnail, LightboxThumbnails, LightboxViewport, LightboxZoom, LightboxZoomIn, LightboxZoomOut, MediaLightboxAppearance, MediaLightboxItem, MediaLightboxLabels, MediaLightboxTransition, useLightboxConfig, useLightboxRefs, useLightboxSlide, useLightboxState, useOptionalLightboxConfig };
293
+ export type { LightboxAppearanceToggleProps, LightboxBackdropProps, LightboxCaptionProps, LightboxCloseProps, LightboxConfig, LightboxContentProps, LightboxCounterProps, LightboxDestinationProps, LightboxFrameProps, LightboxNextProps, LightboxPortalProps, LightboxPreviousProps, LightboxRefs, LightboxRootProps, LightboxSlideProps, LightboxSlide$1 as LightboxSlideValue, LightboxSlidesProps, LightboxState, LightboxStatusProps, LightboxThumbnailContextValue, LightboxThumbnailProps, LightboxThumbnailsProps, LightboxTiming, LightboxViewportProps, LightboxZoomInProps, LightboxZoomOptions, LightboxZoomOutProps, LightboxZoomProps };
@@ -1,5 +1,5 @@
1
- export { Lightbox, LightboxAppearanceToggle, LightboxBackdrop, LightboxCaption, LightboxClose, LightboxContent, LightboxCounter, LightboxDestination, LightboxFrame, LightboxMedia, LightboxNext, LightboxPortal, LightboxPrevious, LightboxRoot, LightboxSlide, LightboxSlides, LightboxStatus, LightboxThumbnail, LightboxThumbnails, LightboxViewport, LightboxZoom, LightboxZoomIn, LightboxZoomOut, useLightboxConfig, useLightboxRefs, useLightboxSlide, useLightboxState, useOptionalLightboxConfig } from '../../../chunk-X5L5DEUZ.js';
2
- import '../../../chunk-R67OZVA2.js';
1
+ export { Lightbox, LightboxAppearanceToggle, LightboxBackdrop, LightboxCaption, LightboxClose, LightboxContent, LightboxCounter, LightboxDestination, LightboxFrame, LightboxMedia, LightboxNext, LightboxPortal, LightboxPrevious, LightboxRoot, LightboxSlide, LightboxSlides, LightboxStatus, LightboxThumbnail, LightboxThumbnails, LightboxViewport, LightboxZoom, LightboxZoomIn, LightboxZoomOut, useLightboxConfig, useLightboxRefs, useLightboxSlide, useLightboxState, useOptionalLightboxConfig } from '../../../chunk-ZEY2VU4O.js';
2
+ import '../../../chunk-WL27K6MO.js';
3
3
  import '../../../chunk-UPPHQLZ2.js';
4
4
  import '../../../chunk-AJLHJRK6.js';
5
5
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- export { A as ATOM63_FLYOUT_TRANSITION, a as ATOM63_FLYOUT_TRANSITION_CSS, b as ATOM63_MOTION_EASE, c as ATOM63_MOTION_EASE_CSS, d as ATOM63_OVERLAY_MOTION_DURATION_CSS, e as ATOM63_OVERLAY_MOTION_DURATION_MS, f as ATOM63_OVERLAY_MOTION_EASE, g as ATOM63_OVERLAY_MOTION_EASE_CSS, n as AlertDialogCreateHandle, B as ButtonGroupProvider, $ as CommandCreateHandle, al as DialogCreateHandle, aF as ReactRendererConformanceEvidence, aG as ReactVerifiedContractId, aW as TooltipCreateHandle, a_ as cardLinkClassName, a$ as getReactRendererConformance, b0 as navigationMenuTriggerStyle, b1 as reactRendererConformance, b2 as scrollableListControlClassNames, b3 as selectTriggerDefaultClassName, b4 as useButtonGroupContext } from '../index-B06li5uo.js';
1
+ export { A as ATOM63_FLYOUT_TRANSITION, a as ATOM63_FLYOUT_TRANSITION_CSS, b as ATOM63_MOTION_EASE, c as ATOM63_MOTION_EASE_CSS, d as ATOM63_OVERLAY_MOTION_DURATION_CSS, e as ATOM63_OVERLAY_MOTION_DURATION_MS, f as ATOM63_OVERLAY_MOTION_EASE, g as ATOM63_OVERLAY_MOTION_EASE_CSS, n as AlertDialogCreateHandle, B as ButtonGroupProvider, $ as CommandCreateHandle, al as DialogCreateHandle, aF as ReactRendererConformanceEvidence, aG as ReactVerifiedContractId, aW as TooltipCreateHandle, a_ as cardLinkClassName, a$ as getReactRendererConformance, b0 as navigationMenuTriggerStyle, b1 as reactRendererConformance, b2 as scrollableListControlClassNames, b3 as selectTriggerDefaultClassName, b4 as useButtonGroupContext } from '../index-CbgpSG4j.js';
2
2
  export { Autocomplete as AutocompletePrimitive } from '@base-ui/react/autocomplete';
3
3
  export { Avatar as AvatarPrimitive } from '@base-ui/react/avatar';
4
4
  export { Separator as SeparatorPrimitive } from '@base-ui/react/separator';
@@ -8,9 +8,8 @@ export { Dialog as DialogPrimitive, Dialog as SheetPrimitive } from '@base-ui/re
8
8
  export { AlertDialog as AlertDialogPrimitive } from '@base-ui/react/alert-dialog';
9
9
  export { Tooltip as TooltipPrimitive } from '@base-ui/react/tooltip';
10
10
  import 'react';
11
- import '../button-oVOZ5VpA.js';
11
+ import '../button-DMnQeAEL.js';
12
12
  import '@atom63/ui-foundation';
13
13
  import '@base-ui/react/use-render';
14
- import '@base-ui/react';
15
14
  import '@base-ui/react/navigation-menu';
16
15
  import '@base-ui/react/select';
@@ -1,4 +1,4 @@
1
- export { AlertDialogCreateHandle, AlertDialogPrimitive, AutocompletePrimitive, AvatarPrimitive, ButtonGroupProvider, CommandCreateHandle, DialogCreateHandle, DialogPrimitive, InputPrimitive, ProgressPrimitive, SeparatorPrimitive, SheetPrimitive, TooltipCreateHandle, TooltipPrimitive, cardLinkClassName, getReactRendererConformance, navigationMenuTriggerStyle, reactRendererConformance, scrollableListControlClassNames, selectTriggerDefaultClassName, useButtonGroupContext } from '../chunk-CN4A5CNH.js';
1
+ export { AlertDialogCreateHandle, AlertDialogPrimitive, AutocompletePrimitive, AvatarPrimitive, ButtonGroupProvider, CommandCreateHandle, DialogCreateHandle, DialogPrimitive, InputPrimitive, ProgressPrimitive, SeparatorPrimitive, SheetPrimitive, TooltipCreateHandle, TooltipPrimitive, cardLinkClassName, getReactRendererConformance, navigationMenuTriggerStyle, reactRendererConformance, scrollableListControlClassNames, selectTriggerDefaultClassName, useButtonGroupContext } from '../chunk-RLF45GBS.js';
2
2
  export { ATOM63_FLYOUT_TRANSITION, ATOM63_FLYOUT_TRANSITION_CSS, ATOM63_MOTION_EASE, ATOM63_MOTION_EASE_CSS, ATOM63_OVERLAY_MOTION_DURATION_CSS, ATOM63_OVERLAY_MOTION_DURATION_MS, ATOM63_OVERLAY_MOTION_EASE, ATOM63_OVERLAY_MOTION_EASE_CSS } from '../chunk-R7IQ3IL5.js';
3
3
  import '../chunk-UPPHQLZ2.js';
4
4
  import '../chunk-AJLHJRK6.js';
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { ComponentProps, ReactNode } from 'react';
3
- import { B as Button } from '../button-oVOZ5VpA.js';
3
+ import { Button } from '../index.js';
4
4
  import '@atom63/ui-foundation';
5
5
  import '@base-ui/react/use-render';
6
6
 
@@ -347,4 +347,5 @@ interface VisualChoiceControlProps<T extends string> {
347
347
  }
348
348
  declare function VisualChoiceControl<T extends string>({ className, columns, label, onChange, options, value, }: VisualChoiceControlProps<T>): React.ReactElement;
349
349
 
350
- export { AUTO_FALLBACK_COLOR, AUTO_PRIMARY_ID, AppearanceMenu, type AppearanceMenuProps, AppearanceMenuTrigger, type AppearanceMenuTriggerProps, AppearancePanel, type AppearancePanelProps, AppearanceSection, type AppearanceSectionId, type AppearanceSectionProps, BRAND_OPTIONS, type BrandId, type ColorMode, type CreatePersonalizationControllerOptions, type CreateThemeProviderOptions, type ExtractedColor, FONT_OPTIONS, type FontFamily, ICON_THEME_OPTIONS, type IconTheme, MODE_OPTIONS, OS_OPTIONS, type OsSystem, type PersonalizationController, type PersonalizationOption, type PersonalizationState, RADIUS_OPTIONS, type RadiusScale, RangeTokenControl, type RangeTokenControlProps, SURFACE_OPTIONS, SegmentedTokenControl, type SegmentedTokenControlProps, type SurfaceId, SwatchTokenControl, type SwatchTokenControlProps, THEME_OPTIONS, TYPE_SCALE_OPTIONS, type ThemeContextValue, type ThemeId, type ThemeMode, type ThemeModeOption, type TypeScale, VisualChoiceControl, type VisualChoiceControlProps, type VisualChoiceOption, applyAutoColorRamp, applyPersonalization, clearAutoColorRamp, createPersonalizationController, createThemeProvider, extractDominantColor, isAutoPrimary };
350
+ export { AUTO_FALLBACK_COLOR, AUTO_PRIMARY_ID, AppearanceMenu, AppearanceMenuTrigger, AppearancePanel, AppearanceSection, BRAND_OPTIONS, FONT_OPTIONS, ICON_THEME_OPTIONS, MODE_OPTIONS, OS_OPTIONS, RADIUS_OPTIONS, RangeTokenControl, SURFACE_OPTIONS, SegmentedTokenControl, SwatchTokenControl, THEME_OPTIONS, TYPE_SCALE_OPTIONS, VisualChoiceControl, applyAutoColorRamp, applyPersonalization, clearAutoColorRamp, createPersonalizationController, createThemeProvider, extractDominantColor, isAutoPrimary };
351
+ export type { AppearanceMenuProps, AppearanceMenuTriggerProps, AppearancePanelProps, AppearanceSectionId, AppearanceSectionProps, BrandId, ColorMode, CreatePersonalizationControllerOptions, CreateThemeProviderOptions, ExtractedColor, FontFamily, IconTheme, OsSystem, PersonalizationController, PersonalizationOption, PersonalizationState, RadiusScale, RangeTokenControlProps, SegmentedTokenControlProps, SurfaceId, SwatchTokenControlProps, ThemeContextValue, ThemeId, ThemeMode, ThemeModeOption, TypeScale, VisualChoiceControlProps, VisualChoiceOption };
@@ -1,4 +1,4 @@
1
- import { Slider, SegmentedControl, Frame, FramePanel, FrameFooter } from '../chunk-CVKG2VJD.js';
1
+ import { Slider, SegmentedControl, Frame, FramePanel, FrameFooter } from '../chunk-IFBF2IA3.js';
2
2
  import { ATOM63_FLYOUT_TRANSITION_CSS, Button, ScrollArea } from '../chunk-R7IQ3IL5.js';
3
3
  import { cn } from '../chunk-AJLHJRK6.js';
4
4
  import { useId, useRef, useState, useCallback, useEffect, createContext, useMemo, useContext } from 'react';
@@ -140,6 +140,27 @@ interface MediaLightboxProps {
140
140
  * megabytes of decoded bitmap.
141
141
  */
142
142
  preload?: number;
143
+ /**
144
+ * The caller's own buttons for the item on screen, in a row in the bottom
145
+ * dock, under the caption and above the thumbnails: the thumb zone on a
146
+ * phone. Called per item, so each one can offer different actions; return
147
+ * `null` for none.
148
+ *
149
+ * The row fades with the rest of the chrome (auto-hide and the
150
+ * pull-to-dismiss fade), clears the bottom safe area, and stays inside the
151
+ * focus trap. Presses there never page, zoom or close. Draw the buttons as
152
+ * `Button variant="overlay"`, which holds contrast on the black phone stage
153
+ * and on the themed backdrop above `sm` alike.
154
+ */
155
+ actions?: (item: MediaLightboxItem, index: number) => React.ReactNode;
156
+ /**
157
+ * Extra controls for the item on screen, at the start of the top-right
158
+ * cluster beside Close: one icon button, such as a details toggle, fits
159
+ * best. Called per item; return `null` for none. Same chrome rules as
160
+ * `actions`. Draw it as `Button variant="overlay" shape="round"
161
+ * size="icon-xl"` with an `aria-label` to match the built-in controls.
162
+ */
163
+ toolbar?: (item: MediaLightboxItem, index: number) => React.ReactNode;
143
164
  }
144
165
 
145
166
  export type { MediaLightboxLabels as M, MediaLightboxProps as a, MediaLightboxTransition as b, MediaLightboxAppearance as c, MediaLightboxItem as d, MediaLightboxItemKind as e, MediaLightboxVideoSource as f, MediaLightboxVideoTrack as g };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atom63/ui-react",
3
- "version": "0.2.0-beta.12",
3
+ "version": "0.2.0-beta.13",
4
4
  "description": "React components, layout primitives, media, and theme controls for the Atom63 design system",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -85,6 +85,7 @@
85
85
  "./recipes/connected-panel.css": "./src/components/connected-panel/connected-panel.css",
86
86
  "./recipes/context-menu.css": "./src/components/menu/menu.css",
87
87
  "./recipes/copy-button.css": "./src/components/copy-button/copy-button.css",
88
+ "./recipes/destination-link.css": "./src/components/destination-link/destination-link.css",
88
89
  "./recipes/dialog.css": "./src/components/dialog/dialog.css",
89
90
  "./recipes/drawer.css": "./src/components/drawer/drawer.css",
90
91
  "./recipes/dropdown-menu.css": "./src/components/menu/menu.css",
@@ -153,13 +154,13 @@
153
154
  "embla-carousel-react": "^8.6.0",
154
155
  "input-otp": "^1.4.2",
155
156
  "lucide-react": "^1.70.0",
156
- "motion": "^13.1.1",
157
+ "motion": "^14.14.0",
157
158
  "react-day-picker": "^10.0.2",
158
159
  "react-resizable-panels": "^4.21.0",
159
160
  "sonner": "^2.0.7",
160
161
  "tailwind-merge": "^3.6.0",
161
- "@atom63/ui-foundation": "0.2.0-beta.5",
162
- "@atom63/styles": "0.1.0-beta.8"
162
+ "@atom63/styles": "0.1.0-beta.9",
163
+ "@atom63/ui-foundation": "0.2.0-beta.6"
163
164
  },
164
165
  "peerDependencies": {
165
166
  "react": "^19.1.0",
@@ -181,17 +182,17 @@
181
182
  "eslint-plugin-jsx-a11y": "6.10.2",
182
183
  "eslint-plugin-react-compiler": "19.1.0-rc.2",
183
184
  "eslint-plugin-react-hooks": "7.1.1",
184
- "jsdom": "29.1.1",
185
+ "jsdom": "31.0.1",
185
186
  "react": "^19.3.1",
186
187
  "react-dom": "^19.3.1",
187
188
  "react-hook-form": "^7.91.0",
188
189
  "tailwindcss": "^4.3.5",
189
- "tsup": "^8.3.5",
190
- "typescript": "~5.8.3",
190
+ "tsup": "^9.0.0",
191
+ "typescript": "~6.0.3",
191
192
  "typescript-eslint": "8.72.2",
192
- "vitest": "4.1.11",
193
- "@atom63/tsconfig": "0.1.0",
194
- "@atom63/eslint-config": "0.1.0"
193
+ "vitest": "5.1.1",
194
+ "@atom63/eslint-config": "0.1.0",
195
+ "@atom63/tsconfig": "0.1.0"
195
196
  },
196
197
  "scripts": {
197
198
  "build": "tsup",
@@ -2,9 +2,12 @@
2
2
  * Alert recipe — a status callout. Faithful to prod @atom63/ui alert.tsx: a
3
3
  * bordered status surface that re-flows its columns for a leading icon slot and
4
4
  * a trailing action slot. The default variant is neutral; four semantic tones
5
- * (error/info/success/warning) recolor border/bg/icon from --a63-status-* +
6
- * --a63-action-danger. It uses the SURFACE contract for wrapper treatment;
7
- * controls inside the action slot keep their own action/control styling.
5
+ * (error/info/success/warning) recolor border/bg/icon from --a63-status-*. The
6
+ * action label is text, so it takes a text role (4.5:1), never the 3:1 status
7
+ * accent: error uses --a63-text-danger, the others their status
8
+ * -subtle-foreground step. It uses the SURFACE contract for
9
+ * wrapper treatment; controls inside the action slot keep their own
10
+ * action/control styling.
8
11
  */
9
12
 
10
13
  .a63-Alert {
@@ -100,8 +103,8 @@
100
103
 
101
104
  .a63-Alert-action {
102
105
  position: absolute;
103
- top: var(--alert-action-inset);
104
- right: var(--alert-action-inset);
106
+ inset-block-start: var(--alert-action-inset);
107
+ inset-inline-end: var(--alert-action-inset);
105
108
  display: flex;
106
109
  gap: var(--a63-space-1);
107
110
  }
@@ -129,23 +132,23 @@
129
132
  }
130
133
 
131
134
  .a63-Alert[data-variant='error'] {
132
- --alert-accent: var(--a63-action-danger);
133
- --alert-action-foreground: var(--a63-action-danger);
134
- --alert-action-hover-background: color-mix(in oklch, var(--a63-action-danger) 10%, transparent);
135
+ --alert-accent: var(--a63-status-danger);
136
+ --alert-action-foreground: var(--a63-text-danger);
137
+ --alert-action-hover-background: color-mix(in oklch, var(--a63-status-danger) 10%, transparent);
135
138
 
136
- border-color: color-mix(in oklch, var(--a63-action-danger) 32%, transparent);
137
- background-color: color-mix(in oklch, var(--a63-action-danger) 4%, transparent);
139
+ border-color: color-mix(in oklch, var(--a63-status-danger) 32%, transparent);
140
+ background-color: color-mix(in oklch, var(--a63-status-danger) 4%, transparent);
138
141
  }
139
142
  .a63-Alert[data-variant='error'] > svg {
140
- color: var(--a63-action-danger);
143
+ color: var(--a63-status-danger);
141
144
  }
142
145
  .a63-Alert[data-variant='error'] > [data-slot='alert-icon'] {
143
- color: var(--a63-action-danger);
146
+ color: var(--a63-status-danger);
144
147
  }
145
148
 
146
149
  .a63-Alert[data-variant='info'] {
147
150
  --alert-accent: var(--a63-status-info);
148
- --alert-action-foreground: var(--a63-status-info);
151
+ --alert-action-foreground: var(--a63-status-info-subtle-foreground);
149
152
  --alert-action-hover-background: color-mix(in oklch, var(--a63-status-info) 10%, transparent);
150
153
 
151
154
  border-color: color-mix(in oklch, var(--a63-status-info) 32%, transparent);
@@ -160,7 +163,7 @@
160
163
 
161
164
  .a63-Alert[data-variant='success'] {
162
165
  --alert-accent: var(--a63-status-success);
163
- --alert-action-foreground: var(--a63-status-success);
166
+ --alert-action-foreground: var(--a63-status-success-subtle-foreground);
164
167
  --alert-action-hover-background: color-mix(in oklch, var(--a63-status-success) 10%, transparent);
165
168
 
166
169
  border-color: color-mix(in oklch, var(--a63-status-success) 32%, transparent);
@@ -175,7 +178,7 @@
175
178
 
176
179
  .a63-Alert[data-variant='warning'] {
177
180
  --alert-accent: var(--a63-status-warning);
178
- --alert-action-foreground: var(--a63-status-warning);
181
+ --alert-action-foreground: var(--a63-status-warning-subtle-foreground);
179
182
  --alert-action-hover-background: color-mix(in oklch, var(--a63-status-warning) 12%, transparent);
180
183
 
181
184
  border-color: color-mix(in oklch, var(--a63-status-warning) 32%, transparent);
@@ -20,6 +20,9 @@
20
20
  /* ── Input (field) ─────────────────────────────────────────────────────── */
21
21
 
22
22
  .a63-Autocomplete-input {
23
+ --autocomplete-border: var(--a63-border-input);
24
+ --autocomplete-focus-border: var(--a63-action-primary);
25
+ --autocomplete-focus-ring: var(--a63-control-focus-ring-color, var(--a63-focus-ring));
23
26
  /* Content floor — see button.css. */
24
27
  --autocomplete-content-lh: var(--typography-sm-line-height);
25
28
  --autocomplete-content-floor: calc(var(--autocomplete-content-lh) + 2 * var(--a63-space-0_5));
@@ -32,7 +35,7 @@
32
35
  var(--autocomplete-content-floor)
33
36
  );
34
37
  padding-inline: var(--a63-control-padding-inline-md);
35
- border: var(--a63-control-border-width) solid var(--a63-border-input);
38
+ border: var(--a63-control-border-width) solid var(--autocomplete-border);
36
39
  border-radius: var(--a63-control-radius);
37
40
  background: var(--a63-surface-control);
38
41
  box-shadow: var(--a63-field-shadow);
@@ -49,10 +52,23 @@
49
52
  color: var(--a63-text-tertiary);
50
53
  }
51
54
 
55
+ @media (hover: hover) and (pointer: fine) {
56
+ .a63-Autocomplete-input:hover:not(:disabled) {
57
+ border-color: color-mix(in oklch, var(--autocomplete-border), var(--a63-text-primary) 18%);
58
+ }
59
+ }
60
+
52
61
  .a63-Autocomplete-input:focus-visible {
53
- border-color: var(--a63-action-primary);
54
- outline: var(--a63-control-focus-ring-width) solid
55
- var(--a63-control-focus-ring-color, var(--a63-focus-ring));
62
+ border-color: var(--autocomplete-focus-border);
63
+ outline: var(--a63-control-focus-ring-width) solid var(--autocomplete-focus-ring);
64
+ }
65
+
66
+ /* Invalid: the same danger edge as .a63-Input[data-invalid] (input.css). */
67
+ .a63-Autocomplete-input[data-invalid],
68
+ .a63-Autocomplete-input[aria-invalid='true'] {
69
+ --autocomplete-border: color-mix(in oklch, var(--a63-action-danger) 62%, transparent);
70
+ --autocomplete-focus-border: var(--a63-action-danger);
71
+ --autocomplete-focus-ring: color-mix(in oklch, var(--a63-action-danger) 35%, transparent);
56
72
  }
57
73
 
58
74
  .a63-Autocomplete-input[data-has-start-addon] {
@@ -8,6 +8,7 @@
8
8
  .a63-ChatTypingIndicator {
9
9
  --chat-typing-dot-size: var(--a63-space-2);
10
10
 
11
+ position: relative;
11
12
  display: inline-flex;
12
13
  align-items: center;
13
14
  gap: var(--a63-space-1);
@@ -15,6 +16,18 @@
15
16
  color: var(--a63-text-secondary);
16
17
  }
17
18
 
19
+ .a63-ChatTypingIndicator-label {
20
+ position: absolute;
21
+ width: 1px;
22
+ height: 1px;
23
+ padding: 0;
24
+ margin: -1px;
25
+ overflow: hidden;
26
+ clip: rect(0, 0, 0, 0);
27
+ white-space: nowrap;
28
+ border-width: 0;
29
+ }
30
+
18
31
  .a63-ChatTypingIndicator-dot {
19
32
  inline-size: var(--chat-typing-dot-size);
20
33
  block-size: var(--chat-typing-dot-size);
@@ -59,3 +72,12 @@
59
72
  opacity: 0.85;
60
73
  }
61
74
  }
75
+
76
+ /* Forced colors (Windows High Contrast) replace the dots' fill with Canvas,
77
+ which would hide the indicator's only visible content. */
78
+ @media (forced-colors: active) {
79
+ .a63-ChatTypingIndicator-dot {
80
+ background-color: CanvasText;
81
+ forced-color-adjust: none;
82
+ }
83
+ }
@@ -198,11 +198,31 @@
198
198
  box-shadow: var(--a63-menu-highlight-shadow, none);
199
199
  color: var(--a63-menu-highlight-foreground, var(--a63-text-primary));
200
200
  }
201
+ /* Focus stays in the input, so the highlighted option is the keyboard target
202
+ (the one Enter runs). The fill alone is too faint to mark it (WCAG 1.4.11),
203
+ so it carries the inset focus ring too. */
204
+ .a63-Command-item[data-highlighted]:not([data-disabled]) {
205
+ outline: var(--a63-control-focus-ring-width) solid
206
+ var(--a63-control-focus-ring-color, var(--a63-focus-ring));
207
+ outline-offset: calc(-1 * var(--a63-control-focus-ring-width));
208
+ }
201
209
  .a63-Command-item[data-disabled] {
202
210
  pointer-events: none;
203
211
  opacity: var(--a63-menu-disabled-opacity, 0.56);
204
212
  }
205
213
 
214
+ /* Forced colors (Windows High Contrast) drop the highlight fill, and focus stays
215
+ in the input, so the option Enter runs takes the system selection colours. */
216
+ @media (forced-colors: active) {
217
+ .a63-Command-item[data-highlighted] {
218
+ background-color: Highlight;
219
+ color: HighlightText;
220
+ }
221
+ .a63-Command-item[data-highlighted] :is(svg, .a63-Command-shortcut) {
222
+ color: HighlightText;
223
+ }
224
+ }
225
+
206
226
  /* ── Separator ─────────────────────────────────────────────────────────── */
207
227
  .a63-Command-separator {
208
228
  height: 1px;
@@ -0,0 +1,28 @@
1
+ /*
2
+ * DestinationLink recipe: an inline text link, drawn like the system's other
3
+ * links (field and empty descriptions, Button `link`): primary text with an
4
+ * underline, accent text on hover, and an outline focus ring. The indicator
5
+ * keeps a small gap before it and is not underlined.
6
+ */
7
+
8
+ .a63-DestinationLink {
9
+ border-radius: var(--radius-sm);
10
+ color: var(--a63-text-primary);
11
+ text-decoration: underline;
12
+ text-underline-offset: 4px;
13
+ }
14
+
15
+ .a63-DestinationLink:hover {
16
+ color: var(--a63-text-accent);
17
+ }
18
+
19
+ .a63-DestinationLink:focus-visible {
20
+ outline: var(--a63-control-focus-ring-width) solid
21
+ var(--a63-control-focus-ring-color, var(--a63-focus-ring));
22
+ outline-offset: 2px;
23
+ }
24
+
25
+ .a63-DestinationLink [data-slot='destination-indicator'] {
26
+ margin-inline-start: var(--a63-space-1);
27
+ vertical-align: -0.125em;
28
+ }
@@ -72,12 +72,16 @@
72
72
  display: flex;
73
73
  }
74
74
 
75
+ /* `left` and `right` are physical screen edges, in right-to-left pages too: the
76
+ placement, the closed translate, the safe-area padding and the swipe to
77
+ dismiss all name the same edge. `justify-content: left/right` is physical,
78
+ where flex-start/flex-end would follow the text direction. */
75
79
  .a63-Drawer-viewport[data-side='left'] {
76
- justify-content: flex-start;
80
+ justify-content: left;
77
81
  }
78
82
 
79
83
  .a63-Drawer-viewport[data-side='right'] {
80
- justify-content: flex-end;
84
+ justify-content: right;
81
85
  }
82
86
 
83
87
  .a63-Drawer-content {
@@ -112,13 +112,11 @@
112
112
  gap: 0.375rem;
113
113
  }
114
114
 
115
+ /* A muted ghost Button: it rests in the secondary text colour (4.5:1) and goes
116
+ to full contrast on hover, focus and while expanded. */
115
117
  .a63-Empty-errorToggle.a63-Button {
116
- color: color-mix(in oklch, var(--a63-text-secondary) 60%, transparent);
117
118
  font-size: var(--a63-control-font-size-xs);
118
119
  }
119
- .a63-Empty-errorToggle.a63-Button:hover {
120
- color: var(--a63-text-secondary);
121
- }
122
120
 
123
121
  .a63-Empty-errorBox {
124
122
  position: relative;
@@ -29,6 +29,11 @@
29
29
  --load-more-accent: var(--a63-action-danger);
30
30
  }
31
31
 
32
+ /* Hidden keeps only the empty live region mounted; it takes no space. */
33
+ .a63-LoadMoreTrigger[data-state='hidden'] {
34
+ padding-block: 0;
35
+ }
36
+
32
37
  /* The message form reserves a minimum height so the observer target keeps a
33
38
  stable hit area as it swaps between idle + loading copy. */
34
39
  .a63-LoadMoreTrigger[data-has-message] {
@@ -81,6 +86,7 @@
81
86
  }
82
87
 
83
88
  .a63-LoadMoreTrigger-action {
89
+ position: relative;
84
90
  padding: 0;
85
91
  border: 0;
86
92
  background: transparent;
@@ -90,6 +96,17 @@
90
96
  cursor: pointer;
91
97
  }
92
98
 
99
+ /* The hit area reaches the control minimum target (24px, 44px on coarse
100
+ pointers) without growing the inline text, the way Button does. */
101
+ .a63-LoadMoreTrigger-action::before {
102
+ content: '';
103
+ position: absolute;
104
+ inset: 50%;
105
+ min-width: max(100%, var(--a63-control-min-target));
106
+ min-height: max(100%, var(--a63-control-min-target));
107
+ translate: -50% -50%;
108
+ }
109
+
93
110
  .a63-LoadMoreTrigger-action:focus-visible {
94
111
  border-radius: var(--radius-sm);
95
112
  outline: 2px solid var(--load-more-accent);
@@ -2,14 +2,19 @@
2
2
  * Marquee recipe — an infinitely scrolling strip. The container clips overflow
3
3
  * and lays out `repeat` duplicate tracks; each track scrolls one --gap-adjusted
4
4
  * span via the a63-marquee keyframes (prod's animate-marquee). data-orientation
5
- * switches axis; reverse/paused/pauseOnHover drive the animation play-state.
5
+ * switches axis; reverse/paused/pauseOnHover drive the animation play-state, and
6
+ * .a63-Marquee-control is the built-in pause toggle.
6
7
  * Animation is suppressed under prefers-reduced-motion.
7
8
  */
8
9
 
9
10
  .a63-Marquee {
10
11
  --gap: 1rem;
11
12
  --duration: 40s;
13
+ /* 1 scrolls the tracks left; -1 under dir="rtl", where the duplicate tracks
14
+ lay out to the left and the strip has to scroll right to loop. */
15
+ --marquee-dir: 1;
12
16
 
17
+ position: relative;
13
18
  display: flex;
14
19
  gap: var(--gap);
15
20
  padding: var(--a63-space-2);
@@ -18,6 +23,9 @@
18
23
  .a63-Marquee[data-orientation='horizontal'] {
19
24
  flex-direction: row;
20
25
  }
26
+ .a63-Marquee:dir(rtl) {
27
+ --marquee-dir: -1;
28
+ }
21
29
  .a63-Marquee[data-orientation='vertical'] {
22
30
  flex-direction: column;
23
31
  }
@@ -48,12 +56,25 @@
48
56
  animation-play-state: paused;
49
57
  }
50
58
 
59
+ /* Built-in pause toggle (WCAG 2.2.2), pinned to the inline end over the strip. */
60
+ .a63-Marquee > .a63-Marquee-control {
61
+ position: absolute;
62
+ z-index: 1;
63
+ inset-block-start: 50%;
64
+ inset-inline-end: var(--a63-space-2);
65
+ translate: 0 -50%;
66
+ }
67
+ .a63-Marquee[data-orientation='vertical'] > .a63-Marquee-control {
68
+ inset-block-start: var(--a63-space-2);
69
+ translate: none;
70
+ }
71
+
51
72
  @keyframes a63-marquee {
52
73
  0% {
53
74
  transform: translateX(0);
54
75
  }
55
76
  100% {
56
- transform: translateX(calc(-100% - var(--gap)));
77
+ transform: translateX(calc((-100% - var(--gap)) * var(--marquee-dir)));
57
78
  }
58
79
  }
59
80
 
@@ -73,7 +94,8 @@
73
94
  .a63-Marquee-track {
74
95
  animation: none;
75
96
  }
76
- .a63-Marquee-track:not(:first-child) {
97
+ .a63-Marquee-track:not(:first-child),
98
+ .a63-Marquee-control {
77
99
  display: none;
78
100
  }
79
101
  }
@@ -111,6 +111,22 @@
111
111
  color: var(--a63-menu-highlight-primary-foreground, var(--a63-action-primary-foreground));
112
112
  }
113
113
 
114
+ /* Keyboard focus: an inset ring on top of the highlight, which alone is too
115
+ faint to mark focus (WCAG 1.4.11). Menu and Select items take DOM focus, so
116
+ a pointer hover keeps only the fill. Autocomplete keeps focus in its input
117
+ and marks the option Enter picks with data-highlighted, so that option
118
+ always carries the ring. Inset: the popup clips an outer ring. */
119
+ .a63-Menu-item:focus-visible,
120
+ .a63-Autocomplete-item[data-highlighted] {
121
+ outline: var(--a63-control-focus-ring-width) solid
122
+ var(--a63-control-focus-ring-color, var(--a63-focus-ring));
123
+ outline-offset: calc(-1 * var(--a63-control-focus-ring-width));
124
+ }
125
+ .a63-Menu-popup[data-tone='primary'] .a63-Menu-item:focus-visible,
126
+ .a63-Menu-popup[data-tone='primary'] .a63-Autocomplete-item[data-highlighted] {
127
+ outline-color: var(--a63-menu-highlight-primary-foreground, var(--a63-action-primary-foreground));
128
+ }
129
+
114
130
  .a63-Menu-item[data-disabled] {
115
131
  pointer-events: none;
116
132
  opacity: var(--a63-menu-disabled-opacity);
@@ -184,7 +200,6 @@
184
200
  text-transform: uppercase;
185
201
  letter-spacing: 0;
186
202
  line-height: 1;
187
- opacity: 0.75;
188
203
  }
189
204
 
190
205
  .a63-Menu-label[data-inset] {
@@ -215,3 +230,23 @@
215
230
  transition: none;
216
231
  }
217
232
  }
233
+
234
+ /* Forced colors drop the highlight fill, gloss and shadow, and every row sets
235
+ `outline: none`, so the focused row takes the system selection colours. Each
236
+ selector matches the specificity of the tone or variant rule it overrides. */
237
+ @media (forced-colors: active) {
238
+ .a63-Menu-item[data-highlighted],
239
+ .a63-Menu-item[data-variant][data-highlighted],
240
+ .a63-Menu-popup[data-tone] .a63-Menu-item[data-highlighted],
241
+ .a63-Menu-sub-trigger[data-popup-open],
242
+ .a63-Menu-popup[data-tone] .a63-Menu-sub-trigger[data-popup-open] {
243
+ background-color: Highlight;
244
+ color: HighlightText;
245
+ }
246
+ .a63-Menu-item[data-highlighted] :is(svg, .a63-Menu-shortcut, .a63-Menu-item-indicator),
247
+ .a63-Menu-popup[data-tone] .a63-Menu-item[data-highlighted] :is(svg, .a63-Menu-shortcut),
248
+ .a63-Menu-sub-trigger[data-popup-open] :is(svg, .a63-Menu-sub-icon),
249
+ .a63-Menu-popup[data-tone] .a63-Menu-sub-trigger[data-popup-open] :is(svg, .a63-Menu-sub-icon) {
250
+ color: HighlightText;
251
+ }
252
+ }
@@ -220,22 +220,40 @@
220
220
  color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
221
221
  }
222
222
 
223
- .a63-NavigationMenu-link:focus-visible,
224
- .a63-NavigationMenu-link[data-active] {
225
- background: var(--a63-surface-muted);
226
- }
227
223
  @media (hover: hover) {
228
224
  .a63-NavigationMenu-link:hover {
229
225
  background: var(--a63-surface-muted);
230
226
  }
231
227
  }
232
228
 
229
+ /* Inset, as on the trigger: the content panel clips an outer ring. */
230
+ .a63-NavigationMenu-link:focus-visible {
231
+ outline: var(--a63-control-focus-ring-width) solid
232
+ var(--a63-control-focus-ring-color, var(--a63-focus-ring));
233
+ outline-offset: calc(-1 * var(--a63-control-focus-ring-width));
234
+ }
235
+
236
+ /* The current page: a heavier label, so it reads apart from the hover fill. */
237
+ .a63-NavigationMenu-link[data-active] {
238
+ font-weight: 600;
239
+ }
240
+
233
241
  .a63-NavigationMenu-link svg {
234
242
  flex-shrink: 0;
235
243
  width: 1rem;
236
244
  height: 1rem;
237
245
  }
238
246
 
247
+ /* Forced colors (Windows High Contrast): the open trigger and the current link
248
+ take the system selection colours; focus keeps its outline. */
249
+ @media (forced-colors: active) {
250
+ .a63-NavigationMenu-trigger[data-popup-open],
251
+ .a63-NavigationMenu-link[data-active] {
252
+ background-color: Highlight;
253
+ color: HighlightText;
254
+ }
255
+ }
256
+
239
257
  /* ── Indicator (arrow) ─────────────────────────────────────────────────── */
240
258
 
241
259
  .a63-NavigationMenu-indicator {