@atom63/ui-react 0.2.0-beta.11 → 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 (96) hide show
  1. package/README.md +12 -0
  2. package/dist/button-DMnQeAEL.d.ts +22 -0
  3. package/dist/calendar/index.d.ts +2 -1
  4. package/dist/calendar/index.js +16 -1
  5. package/dist/calendar/index.js.map +1 -1
  6. package/dist/{chunk-J77BAGTA.js → chunk-IFBF2IA3.js} +17 -6
  7. package/dist/chunk-IFBF2IA3.js.map +1 -0
  8. package/dist/{chunk-NBHGMMQN.js → chunk-R7IQ3IL5.js} +26 -4
  9. package/dist/chunk-R7IQ3IL5.js.map +1 -0
  10. package/dist/{chunk-GDUMA6FI.js → chunk-RLF45GBS.js} +443 -275
  11. package/dist/chunk-RLF45GBS.js.map +1 -0
  12. package/dist/{chunk-R67OZVA2.js → chunk-WL27K6MO.js} +3 -2
  13. package/dist/chunk-WL27K6MO.js.map +1 -0
  14. package/dist/{chunk-X5L5DEUZ.js → chunk-ZEY2VU4O.js} +3 -3
  15. package/dist/{chunk-X5L5DEUZ.js.map → chunk-ZEY2VU4O.js.map} +1 -1
  16. package/dist/{destination-link-DMLeR-oF.d.ts → destination-link-BHVQyWry.d.ts} +2 -1
  17. package/dist/{index-BDzW8upQ.d.ts → index-CbgpSG4j.d.ts} +47 -8
  18. package/dist/index.d.ts +513 -141
  19. package/dist/index.js +1126 -235
  20. package/dist/index.js.map +1 -1
  21. package/dist/layout/index.d.ts +73 -1
  22. package/dist/layout/index.js +78 -2
  23. package/dist/layout/index.js.map +1 -1
  24. package/dist/media/index.d.ts +5 -4
  25. package/dist/media/index.js +35 -7
  26. package/dist/media/index.js.map +1 -1
  27. package/dist/media/media-lightbox/parts/index.d.ts +5 -4
  28. package/dist/media/media-lightbox/parts/index.js +2 -2
  29. package/dist/preview/index.d.ts +2 -3
  30. package/dist/preview/index.js +2 -2
  31. package/dist/theme/index.d.ts +3 -2
  32. package/dist/theme/index.js +2 -2
  33. package/dist/{types-Dxe5IzjE.d.ts → types-KQLxlHQZ.d.ts} +21 -0
  34. package/package.json +36 -26
  35. package/src/components/alert/alert.css +21 -18
  36. package/src/components/amount/amount.css +60 -0
  37. package/src/components/app-view/app-view.css +232 -0
  38. package/src/components/autocomplete/autocomplete.css +21 -5
  39. package/src/components/avatar/avatar.css +64 -8
  40. package/src/components/badge/badge.css +65 -0
  41. package/src/components/button/button.css +160 -31
  42. package/src/components/calendar/calendar.css +7 -3
  43. package/src/components/card/card.css +26 -10
  44. package/src/components/carousel/carousel.css +90 -5
  45. package/src/components/chat-composer/chat-composer.css +69 -0
  46. package/src/components/chat-message/chat-message.css +93 -0
  47. package/src/components/chat-steps/chat-steps.css +132 -0
  48. package/src/components/chat-typing-indicator/chat-typing-indicator.css +83 -0
  49. package/src/components/checkbox/checkbox.css +14 -1
  50. package/src/components/command/command.css +35 -5
  51. package/src/components/connected-panel/connected-panel.css +4 -19
  52. package/src/components/destination-link/destination-link.css +28 -0
  53. package/src/components/dialog/dialog.css +2 -2
  54. package/src/components/drawer/drawer.css +15 -2
  55. package/src/components/empty/empty.css +2 -4
  56. package/src/components/field/field.css +14 -9
  57. package/src/components/form/form.css +1 -1
  58. package/src/components/frame/frame.css +1 -1
  59. package/src/components/input/input.css +72 -4
  60. package/src/components/input-otp/input-otp.css +2 -2
  61. package/src/components/item/item.css +72 -2
  62. package/src/components/load-more-trigger/load-more-trigger.css +17 -0
  63. package/src/components/marquee/marquee.css +25 -3
  64. package/src/components/menu/menu.css +36 -1
  65. package/src/components/message/message.css +170 -0
  66. package/src/components/navigation-menu/navigation-menu.css +22 -4
  67. package/src/components/panel-setting-button/panel-setting-button.css +14 -0
  68. package/src/components/progress/progress.css +31 -1
  69. package/src/components/radio/radio.css +32 -5
  70. package/src/components/rating/rating.css +120 -0
  71. package/src/components/resizable/resizable.css +1 -1
  72. package/src/components/scroll-area/scroll-area.css +1 -1
  73. package/src/components/scrollable-list/scrollable-list.css +10 -5
  74. package/src/components/segmented-control/segmented-control.css +14 -0
  75. package/src/components/select/select.css +11 -3
  76. package/src/components/separator/separator.css +3 -1
  77. package/src/components/sheet/sheet.css +8 -4
  78. package/src/components/sidebar/sidebar.css +54 -24
  79. package/src/components/sidebar-nav-tree/sidebar-nav-tree.css +38 -5
  80. package/src/components/slider/slider.css +11 -6
  81. package/src/components/switch/switch.css +30 -11
  82. package/src/components/table/table.css +118 -10
  83. package/src/components/tabs/tabs.css +10 -0
  84. package/src/components/textarea/textarea.css +3 -3
  85. package/src/components/toaster/toaster.css +32 -0
  86. package/src/components/toggle/toggle.css +20 -8
  87. package/src/components/toggle-group/toggle-group.css +79 -1
  88. package/src/media/media-lightbox/media-lightbox.css +32 -2
  89. package/src/styles/recipes.css +10 -0
  90. package/src/styles/reset.css +13 -2
  91. package/src/styles/utilities.css +41 -28
  92. package/dist/button-CfLIHg-R.d.ts +0 -13
  93. package/dist/chunk-GDUMA6FI.js.map +0 -1
  94. package/dist/chunk-J77BAGTA.js.map +0 -1
  95. package/dist/chunk-NBHGMMQN.js.map +0 -1
  96. package/dist/chunk-R67OZVA2.js.map +0 -1
@@ -31,4 +31,5 @@ declare function DestinationIndicator({ className, kind, }: {
31
31
  kind: DestinationKind;
32
32
  }): React.ReactElement;
33
33
 
34
- export { DestinationLink as D, DestinationIndicator as a, type DestinationLinkProps as b };
34
+ export { DestinationLink as D, DestinationIndicator as a };
35
+ export type { DestinationLinkProps as b };
@@ -1,13 +1,12 @@
1
1
  import { AlertDialog as AlertDialog$1 } from '@base-ui/react/alert-dialog';
2
2
  import * as React$1 from 'react';
3
3
  import React__default from 'react';
4
- import { a as ButtonProps } from './button-CfLIHg-R.js';
4
+ import { a as ButtonProps } from './button-DMnQeAEL.js';
5
5
  import { Autocomplete } from '@base-ui/react/autocomplete';
6
6
  import '@base-ui/react/avatar';
7
7
  import '@base-ui/react/separator';
8
8
  import { CardVariant, CardPadding, CardContentPadding, CardLineClamp, DialogMobilePlacement, DialogSize, DialogFooterVariant, CrossRendererContractId, SelectSize } from '@atom63/ui-foundation';
9
9
  import { useRender } from '@base-ui/react/use-render';
10
- import * as _base_ui_react from '@base-ui/react';
11
10
  import { Dialog as Dialog$1 } from '@base-ui/react/dialog';
12
11
  import '@base-ui/react/input';
13
12
  import { NavigationMenu as NavigationMenu$1 } from '@base-ui/react/navigation-menu';
@@ -112,14 +111,20 @@ declare function CardCursorLabel({ className, render, ...props }: useRender.Comp
112
111
  declare const cardLinkClassName = "a63-CardLink";
113
112
 
114
113
  declare const CommandDialog: typeof Dialog$1.Root;
115
- declare const CommandDialogPortal: React$1.ForwardRefExoticComponent<Omit<_base_ui_react.AlertDialogPortalProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
114
+ declare function CommandDialogPortal(props: Dialog$1.Portal.Props): React$1.ReactElement;
116
115
  declare const CommandCreateHandle: typeof Dialog$1.createHandle;
117
116
  declare function CommandDialogTrigger(props: Dialog$1.Trigger.Props): React$1.ReactElement;
118
117
  declare function CommandDialogBackdrop({ className, ...props }: Dialog$1.Backdrop.Props): React$1.ReactElement;
119
118
  declare function CommandDialogViewport({ className, ...props }: Dialog$1.Viewport.Props): React$1.ReactElement;
120
119
  declare function CommandDialogPopup({ className, children, ...props }: Dialog$1.Popup.Props): React$1.ReactElement;
121
120
  declare function Command({ autoHighlight, keepHighlight, ...props }: React$1.ComponentProps<typeof Autocomplete.Root>): React$1.ReactElement;
122
- declare function CommandInput({ className, placeholder, ...props }: React$1.ComponentProps<typeof Autocomplete.Input>): React$1.ReactElement;
121
+ type CommandInputProps = React$1.ComponentProps<typeof Autocomplete.Input> & {
122
+ /** Content after the field, such as a `Kbd` shortcut hint or a clear button. */
123
+ endAddon?: React$1.ReactNode;
124
+ /** Replaces the built-in search icon. Pass `null` to show none. */
125
+ icon?: React$1.ReactNode;
126
+ };
127
+ declare function CommandInput({ className, endAddon, icon, placeholder, ...props }: CommandInputProps): React$1.ReactElement;
123
128
  declare function CommandPanel({ className, children, ...props }: React$1.ComponentProps<'div'>): React$1.ReactElement;
124
129
  declare function CommandList({ className, ...props }: React$1.ComponentProps<typeof Autocomplete.List>): React$1.ReactElement;
125
130
  declare function CommandEmpty({ className, ...props }: React$1.ComponentProps<typeof Autocomplete.Empty>): React$1.ReactElement;
@@ -290,6 +295,12 @@ declare const reactRendererConformance: readonly [{
290
295
  readonly verifiedSharedOutcomes: readonly ["selected-state-is-visible", "activation-toggles-selection", "disabled-prevents-change"];
291
296
  readonly verifiedAccessibilityOutcomes: readonly ["exposes-label", "announces-selected-state", "preserves-button-role"];
292
297
  readonly verifiesMotionRecipe: false;
298
+ }, {
299
+ readonly contractId: "toggle-group";
300
+ readonly implementedStates: readonly ["rest", "selected", "disabled"];
301
+ readonly verifiedSharedOutcomes: readonly ["selection-state-is-visible", "disabled-options-cannot-change-selection"];
302
+ readonly verifiedAccessibilityOutcomes: readonly ["exposes-selection", "exposes-disabled-state"];
303
+ readonly verifiesMotionRecipe: false;
293
304
  }, {
294
305
  readonly contractId: "card";
295
306
  readonly implementedStates: readonly ["rest", "interactive", "focus-visible"];
@@ -326,6 +337,24 @@ declare const reactRendererConformance: readonly [{
326
337
  readonly verifiedSharedOutcomes: readonly ["message-is-announced", "focus-is-not-trapped", "dismissal-respects-motion-preference"];
327
338
  readonly verifiedAccessibilityOutcomes: readonly ["announces-message", "does-not-trap-focus"];
328
339
  readonly verifiesMotionRecipe: true;
340
+ }, {
341
+ readonly contractId: "item";
342
+ readonly implementedStates: readonly ["rest"];
343
+ readonly verifiedSharedOutcomes: readonly ["rows-keep-reading-order", "dividers-are-decorative"];
344
+ readonly verifiedAccessibilityOutcomes: readonly ["preserves-row-order", "hides-dividers-from-assistive-technology"];
345
+ readonly verifiesMotionRecipe: false;
346
+ }, {
347
+ readonly contractId: "carousel";
348
+ readonly implementedStates: readonly ["rest"];
349
+ readonly verifiedSharedOutcomes: readonly ["one-dot-per-slide", "current-slide-is-marked", "choosing-a-dot-shows-its-slide"];
350
+ readonly verifiedAccessibilityOutcomes: readonly ["names-the-indicator", "exposes-the-current-position"];
351
+ readonly verifiesMotionRecipe: false;
352
+ }, {
353
+ readonly contractId: "message";
354
+ readonly implementedStates: readonly ["rest"];
355
+ readonly verifiedSharedOutcomes: readonly ["direction-sets-side-and-fill", "runs-join-at-shared-corners", "status-is-named"];
356
+ readonly verifiedAccessibilityOutcomes: readonly ["names-the-sender", "names-the-delivery-status"];
357
+ readonly verifiesMotionRecipe: false;
329
358
  }];
330
359
  type ReactVerifiedContractId = (typeof reactRendererConformance)[number]['contractId'];
331
360
  declare function getReactRendererConformance(contractId: CrossRendererContractId): ReactRendererConformanceEvidence | undefined;
@@ -356,7 +385,7 @@ declare const scrollableListControlClassNames: {
356
385
  readonly button: "a63-ScrollableList-controlButton";
357
386
  readonly icon: "a63-ScrollableList-controlIcon";
358
387
  };
359
- interface ScrollableListProps {
388
+ interface ScrollableListProps extends Omit<React.ComponentProps<'div'>, 'children' | 'className'> {
360
389
  children: React.ReactNode;
361
390
  className?: string;
362
391
  /**
@@ -377,10 +406,16 @@ interface ScrollableListProps {
377
406
  draggable?: boolean;
378
407
  /** Fade the edges as content overflows (the scroll mask). On by default. */
379
408
  mask?: boolean;
409
+ /** Accessible name of the control that scrolls towards the start
410
+ * (default "Scroll left", or "Scroll right" in right-to-left layouts). */
411
+ scrollStartLabel?: string;
412
+ /** Accessible name of the control that scrolls towards the end
413
+ * (default "Scroll right", or "Scroll left" in right-to-left layouts). */
414
+ scrollEndLabel?: string;
380
415
  showChevrons?: boolean;
381
416
  wrapLayoutBreakpoint?: number;
382
417
  }
383
- declare function ScrollableList({ children, className, contentPad, controlInset, showChevrons, disabled, draggable, mask, wrapLayoutBreakpoint, }: ScrollableListProps): React$1.JSX.Element;
418
+ declare function ScrollableList({ children, className, contentPad, controlInset, showChevrons, disabled, draggable, mask, ref, role, scrollEndLabel, scrollStartLabel, style, wrapLayoutBreakpoint, ...props }: ScrollableListProps): React$1.JSX.Element;
384
419
 
385
420
  declare const Select: typeof Select$1.Root;
386
421
  /**
@@ -391,8 +426,11 @@ declare const Select: typeof Select$1.Root;
391
426
  declare const selectTriggerDefaultClassName = "a63-Select-trigger";
392
427
  type SelectTriggerProps = Select$1.Trigger.Props & {
393
428
  size?: SelectSize;
429
+ /** Draws the danger edge and sets `aria-invalid`, as `Input`'s `invalid` does.
430
+ * `aria-invalid` on its own draws the same state. */
431
+ invalid?: boolean;
394
432
  };
395
- declare function SelectTrigger({ children, className, size, ...props }: SelectTriggerProps): React$1.ReactElement;
433
+ declare function SelectTrigger({ 'aria-invalid': ariaInvalid, children, className, invalid, size, ...props }: SelectTriggerProps): React$1.ReactElement;
396
434
  declare function SelectValue({ className, ...props }: Select$1.Value.Props): React$1.ReactElement;
397
435
  interface SelectPopupProps extends Select$1.Popup.Props {
398
436
  listClassName?: string;
@@ -439,4 +477,5 @@ declare const ATOM63_FLYOUT_TRANSITION_CSS: {
439
477
  readonly easing: "var(--a63-motion-ease-overlay)";
440
478
  };
441
479
 
442
- export { CommandCreateHandle as $, ATOM63_FLYOUT_TRANSITION as A, ButtonGroupProvider as B, Card as C, CardDescription as D, type CardDescriptionProps as E, CardFooter as F, type CardFooterProps as G, CardHeader as H, type CardHeaderProps as I, CardLabel as J, CardMedia as K, CardMediaOverlay as L, CardMediaOverlayBottom as M, CardMediaOverlayIconButton as N, CardMediaOverlayImage as O, type CardMediaOverlayProps as P, CardMediaOverlayScrim as Q, CardMediaOverlayTopRight as R, type CardMediaProps as S, TooltipPopup as T, type CardProps as U, type CardResponsivePadding as V, CardTags as W, CardTitle as X, type CardTitleProps as Y, Command as Z, CommandCollection as _, ATOM63_FLYOUT_TRANSITION_CSS as a, navigationMenuTriggerStyle as a$, CommandDialog as a0, CommandDialogBackdrop as a1, CommandDialogPopup as a2, CommandDialogPortal as a3, CommandDialogTrigger as a4, CommandDialogViewport as a5, CommandEmpty as a6, CommandFooter as a7, CommandGroup as a8, CommandGroupLabel as a9, type NavigationMenuPositionerProps as aA, type NavigationMenuProps as aB, NavigationMenuTrigger as aC, NavigationMenuViewport as aD, type ReactRendererConformanceEvidence as aE, type ReactVerifiedContractId as aF, ScrollableList as aG, type ScrollableListProps as aH, Select as aI, SelectContent as aJ, SelectGroup as aK, SelectGroupLabel as aL, SelectItem as aM, SelectPopup as aN, type SelectPopupProps as aO, SelectSeparator as aP, SelectTrigger as aQ, type SelectTriggerProps as aR, SelectValue as aS, Tooltip as aT, type TooltipContentProps as aU, TooltipCreateHandle as aV, type TooltipPopupProps as aW, TooltipProvider as aX, TooltipTrigger as aY, cardLinkClassName as aZ, getReactRendererConformance as a_, CommandInput as aa, CommandItem as ab, CommandList as ac, CommandPanel as ad, CommandSeparator as ae, CommandShortcut as af, Dialog as ag, DialogBackdrop as ah, DialogClose as ai, DialogPopup as aj, DialogCreateHandle as ak, DialogDescription as al, DialogFooter as am, DialogHeader as an, DialogPanel as ao, DialogPortal as ap, DialogTitle as aq, DialogTrigger as ar, DialogViewport as as, NavigationMenu as at, NavigationMenuContent as au, NavigationMenuIndicator as av, NavigationMenuItem as aw, NavigationMenuLink as ax, NavigationMenuList as ay, NavigationMenuPositioner as az, ATOM63_MOTION_EASE as b, reactRendererConformance as b0, scrollableListControlClassNames as b1, selectTriggerDefaultClassName as b2, useButtonGroupContext as b3, ATOM63_MOTION_EASE_CSS as c, ATOM63_OVERLAY_MOTION_DURATION_CSS as d, ATOM63_OVERLAY_MOTION_DURATION_MS as e, ATOM63_OVERLAY_MOTION_EASE as f, ATOM63_OVERLAY_MOTION_EASE_CSS as g, AlertDialog as h, AlertDialogAction as i, AlertDialogBackdrop as j, AlertDialogCancel as k, AlertDialogClose as l, AlertDialogPopup as m, AlertDialogCreateHandle as n, AlertDialogDescription as o, AlertDialogFooter as p, AlertDialogHeader as q, AlertDialogMedia as r, AlertDialogPortal as s, AlertDialogTitle as t, AlertDialogTrigger as u, AlertDialogViewport as v, CardAction as w, CardContent as x, type CardContentProps as y, CardCursorLabel as z };
480
+ export { CommandCreateHandle as $, ATOM63_FLYOUT_TRANSITION as A, ButtonGroupProvider as B, Card as C, CardDescription as D, CardFooter as F, CardHeader as H, CardLabel as J, CardMedia as K, CardMediaOverlay as L, CardMediaOverlayBottom as M, CardMediaOverlayIconButton as N, CardMediaOverlayImage as O, CardMediaOverlayScrim as Q, CardMediaOverlayTopRight as R, TooltipPopup as T, CardTags as W, CardTitle as X, Command as Z, CommandCollection as _, ATOM63_FLYOUT_TRANSITION_CSS as a, getReactRendererConformance as a$, CommandDialog as a0, CommandDialogBackdrop as a1, CommandDialogPopup as a2, CommandDialogPortal as a3, CommandDialogTrigger as a4, CommandDialogViewport as a5, CommandEmpty as a6, CommandFooter as a7, CommandGroup as a8, CommandGroupLabel as a9, NavigationMenuPositioner as aA, NavigationMenuTrigger as aD, NavigationMenuViewport as aE, ScrollableList as aH, Select as aJ, SelectContent as aK, SelectGroup as aL, SelectGroupLabel as aM, SelectItem as aN, SelectPopup as aO, SelectSeparator as aQ, SelectTrigger as aR, SelectValue as aT, Tooltip as aU, TooltipCreateHandle as aW, TooltipProvider as aY, TooltipTrigger as aZ, cardLinkClassName as a_, CommandInput as aa, CommandItem as ac, CommandList as ad, CommandPanel as ae, CommandSeparator as af, CommandShortcut as ag, Dialog as ah, DialogBackdrop as ai, DialogClose as aj, DialogPopup as ak, DialogCreateHandle as al, DialogDescription as am, DialogFooter as an, DialogHeader as ao, DialogPanel as ap, DialogPortal as aq, DialogTitle as ar, DialogTrigger as as, DialogViewport as at, NavigationMenu as au, NavigationMenuContent as av, NavigationMenuIndicator as aw, NavigationMenuItem as ax, NavigationMenuLink as ay, NavigationMenuList as az, ATOM63_MOTION_EASE as b, navigationMenuTriggerStyle as b0, reactRendererConformance as b1, scrollableListControlClassNames as b2, selectTriggerDefaultClassName as b3, useButtonGroupContext as b4, ATOM63_MOTION_EASE_CSS as c, ATOM63_OVERLAY_MOTION_DURATION_CSS as d, ATOM63_OVERLAY_MOTION_DURATION_MS as e, ATOM63_OVERLAY_MOTION_EASE as f, ATOM63_OVERLAY_MOTION_EASE_CSS as g, AlertDialog as h, AlertDialogAction as i, AlertDialogBackdrop as j, AlertDialogCancel as k, AlertDialogClose as l, AlertDialogPopup as m, AlertDialogCreateHandle as n, AlertDialogDescription as o, AlertDialogFooter as p, AlertDialogHeader as q, AlertDialogMedia as r, AlertDialogPortal as s, AlertDialogTitle as t, AlertDialogTrigger as u, AlertDialogViewport as v, CardAction as w, CardContent as x, CardCursorLabel as z };
481
+ export type { CardDescriptionProps as E, CardFooterProps as G, CardHeaderProps as I, CardMediaOverlayProps as P, CardMediaProps as S, CardProps as U, CardResponsivePadding as V, CardTitleProps as Y, NavigationMenuPositionerProps as aB, NavigationMenuProps as aC, ReactRendererConformanceEvidence as aF, ReactVerifiedContractId as aG, ScrollableListProps as aI, SelectPopupProps as aP, SelectTriggerProps as aS, TooltipContentProps as aV, TooltipPopupProps as aX, CommandInputProps as ab, CardContentProps as y };