@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
@@ -1,4 +1,4 @@
1
- import { Button, ScrollArea } from './chunk-NBHGMMQN.js';
1
+ import { Button, ScrollArea } from './chunk-R7IQ3IL5.js';
2
2
  import { usePortalContainer } from './chunk-UPPHQLZ2.js';
3
3
  import { cn } from './chunk-AJLHJRK6.js';
4
4
  import { AlertDialog as AlertDialog$1 } from '@base-ui/react/alert-dialog';
@@ -6,19 +6,19 @@ export { AlertDialog as AlertDialogPrimitive } from '@base-ui/react/alert-dialog
6
6
  import { jsx, jsxs } from 'react/jsx-runtime';
7
7
  import { Autocomplete as Autocomplete$1 } from '@base-ui/react/autocomplete';
8
8
  export { Autocomplete as AutocompletePrimitive } from '@base-ui/react/autocomplete';
9
- import { inputContract, avatarContract, separatorContract, buttonGroupContract, cardContract, textareaContract, selectContract, sheetContract } from '@atom63/ui-foundation';
9
+ import { inputContract, avatarContract, separatorContract, buttonGroupContract, cardContract, textareaContract, progressContract, selectContract, sheetContract } from '@atom63/ui-foundation';
10
10
  import { Avatar as Avatar$1 } from '@base-ui/react/avatar';
11
11
  export { Avatar as AvatarPrimitive } from '@base-ui/react/avatar';
12
12
  import { Separator as Separator$1 } from '@base-ui/react/separator';
13
13
  export { Separator as SeparatorPrimitive } from '@base-ui/react/separator';
14
- import * as React3 from 'react';
15
- import { useRef, useState, useCallback, useEffect } from 'react';
14
+ import * as React2 from 'react';
15
+ import { useRef, useState, useCallback, useMemo, useEffect, useLayoutEffect } from 'react';
16
16
  import { mergeProps } from '@base-ui/react/merge-props';
17
17
  import { useRender } from '@base-ui/react/use-render';
18
- import { Dialog as Dialog$1 } from '@base-ui/react/dialog';
19
- export { Dialog as DialogPrimitive, Dialog as SheetPrimitive } from '@base-ui/react/dialog';
20
18
  import { Input as Input$1 } from '@base-ui/react/input';
21
19
  export { Input as InputPrimitive } from '@base-ui/react/input';
20
+ import { Dialog as Dialog$1 } from '@base-ui/react/dialog';
21
+ export { Dialog as DialogPrimitive, Dialog as SheetPrimitive } from '@base-ui/react/dialog';
22
22
  import { NavigationMenu as NavigationMenu$1 } from '@base-ui/react/navigation-menu';
23
23
  import { ChevronDown, ChevronLeft, ChevronRight, ChevronsUpDown, ChevronUp, Check, X } from 'lucide-react';
24
24
  import { Progress as Progress$1 } from '@base-ui/react/progress';
@@ -30,7 +30,16 @@ export { Tooltip as TooltipPrimitive } from '@base-ui/react/tooltip';
30
30
  var AlertDialogCreateHandle = AlertDialog$1.createHandle;
31
31
  var AlertDialog = AlertDialog$1.Root;
32
32
  function AlertDialogPortal(props) {
33
- return /* @__PURE__ */ jsx(AlertDialog$1.Portal, { "data-slot": "alert-dialog-portal", ...props });
33
+ const { container, ...portalProps } = props;
34
+ const contextPortalContainer = usePortalContainer();
35
+ return /* @__PURE__ */ jsx(
36
+ AlertDialog$1.Portal,
37
+ {
38
+ container: container ?? contextPortalContainer,
39
+ "data-slot": "alert-dialog-portal",
40
+ ...portalProps
41
+ }
42
+ );
34
43
  }
35
44
  function AlertDialogTrigger({
36
45
  className,
@@ -223,8 +232,10 @@ function CloseIcon() {
223
232
  ) });
224
233
  }
225
234
  function AutocompleteInput({
235
+ "aria-invalid": ariaInvalid,
226
236
  className,
227
237
  clearProps,
238
+ invalid = false,
228
239
  showClear = false,
229
240
  showTrigger = false,
230
241
  size,
@@ -235,12 +246,15 @@ function AutocompleteInput({
235
246
  const sizeValue = size ?? "default";
236
247
  const dataSize = typeof sizeValue === "number" ? void 0 : sizeValue;
237
248
  const nativeSize = typeof sizeValue === "number" ? sizeValue : void 0;
249
+ const isInvalid = invalid || ariaInvalid === true || ariaInvalid === "true";
250
+ const invalidProps = isInvalid ? { "data-invalid": "" } : null;
238
251
  return /* @__PURE__ */ jsxs(
239
252
  Autocomplete$1.InputGroup,
240
253
  {
241
254
  className: "a63-Autocomplete-input-group",
242
255
  "data-size": dataSize,
243
256
  "data-slot": "autocomplete-input-group",
257
+ ...invalidProps,
244
258
  children: [
245
259
  startAddon ? /* @__PURE__ */ jsx(
246
260
  "div",
@@ -254,10 +268,12 @@ function AutocompleteInput({
254
268
  /* @__PURE__ */ jsx(
255
269
  Autocomplete$1.Input,
256
270
  {
271
+ "aria-invalid": isInvalid ? true : ariaInvalid,
257
272
  className: cn("a63-Autocomplete-input", className),
258
273
  "data-has-start-addon": startAddon ? "" : void 0,
259
274
  "data-slot": "autocomplete-input",
260
275
  size: nativeSize,
276
+ ...invalidProps,
261
277
  ...props
262
278
  }
263
279
  ),
@@ -294,27 +310,35 @@ function AutocompletePopup({
294
310
  sideOffset = 4,
295
311
  ...props
296
312
  }) {
297
- return /* @__PURE__ */ jsx(Autocomplete$1.Portal, { ...portalProps, children: /* @__PURE__ */ jsx(
298
- Autocomplete$1.Positioner,
313
+ const contextPortalContainer = usePortalContainer();
314
+ return /* @__PURE__ */ jsx(
315
+ Autocomplete$1.Portal,
299
316
  {
300
- align,
301
- alignOffset,
302
- anchor,
303
- className: "a63-Autocomplete-positioner",
304
- "data-slot": "autocomplete-positioner",
305
- side,
306
- sideOffset,
307
- children: /* @__PURE__ */ jsx("span", { className: "a63-Autocomplete-surface a63-Menu-popup", children: /* @__PURE__ */ jsx(
308
- Autocomplete$1.Popup,
317
+ ...portalProps,
318
+ container: portalProps?.container ?? contextPortalContainer,
319
+ children: /* @__PURE__ */ jsx(
320
+ Autocomplete$1.Positioner,
309
321
  {
310
- className: cn("a63-Autocomplete-popup", className),
311
- "data-slot": "autocomplete-popup",
312
- ...props,
313
- children
322
+ align,
323
+ alignOffset,
324
+ anchor,
325
+ className: "a63-Autocomplete-positioner",
326
+ "data-slot": "autocomplete-positioner",
327
+ side,
328
+ sideOffset,
329
+ children: /* @__PURE__ */ jsx("span", { className: "a63-Autocomplete-surface a63-Menu-popup", children: /* @__PURE__ */ jsx(
330
+ Autocomplete$1.Popup,
331
+ {
332
+ className: cn("a63-Autocomplete-popup", className),
333
+ "data-slot": "autocomplete-popup",
334
+ ...props,
335
+ children
336
+ }
337
+ ) })
314
338
  }
315
- ) })
339
+ )
316
340
  }
317
- ) });
341
+ );
318
342
  }
319
343
  function AutocompleteItem({
320
344
  children,
@@ -338,8 +362,10 @@ function AutocompleteSeparator({
338
362
  return /* @__PURE__ */ jsx(
339
363
  Autocomplete$1.Separator,
340
364
  {
365
+ "aria-orientation": void 0,
341
366
  className: cn("a63-Menu-separator", "a63-Autocomplete-separator", className),
342
367
  "data-slot": "autocomplete-separator",
368
+ role: "none",
343
369
  ...props
344
370
  }
345
371
  );
@@ -465,6 +491,8 @@ function AutocompleteTrigger({
465
491
  var useAutocompleteFilter = Autocomplete$1.useFilter;
466
492
  function Avatar({
467
493
  className,
494
+ ring = false,
495
+ shape = avatarContract.defaultShape,
468
496
  size = avatarContract.defaultSize,
469
497
  ...props
470
498
  }) {
@@ -472,6 +500,8 @@ function Avatar({
472
500
  Avatar$1.Root,
473
501
  {
474
502
  className: cn("a63-Avatar", className),
503
+ "data-ring": ring === true ? "unseen" : ring || void 0,
504
+ "data-shape": shape,
475
505
  "data-size": size,
476
506
  "data-slot": "avatar",
477
507
  ...props
@@ -548,14 +578,14 @@ function Separator({
548
578
  }
549
579
  );
550
580
  }
551
- var ButtonGroupContext = React3.createContext(false);
581
+ var ButtonGroupContext = React2.createContext(false);
552
582
  function ButtonGroupProvider({
553
583
  children
554
584
  }) {
555
585
  return /* @__PURE__ */ jsx(ButtonGroupContext.Provider, { value: true, children });
556
586
  }
557
587
  function useButtonGroupContext() {
558
- return React3.useContext(ButtonGroupContext);
588
+ return React2.useContext(ButtonGroupContext);
559
589
  }
560
590
  function ButtonGroup({
561
591
  className,
@@ -880,8 +910,218 @@ function useCardCursor(options = {}) {
880
910
  }, []);
881
911
  return { ref, active, onPointerEnter, onPointerMove, onPointerLeave };
882
912
  }
913
+ function Textarea({
914
+ "aria-invalid": ariaInvalid,
915
+ className,
916
+ disabled,
917
+ invalid = false,
918
+ shadow = true,
919
+ size = textareaContract.defaultSize,
920
+ textareaClassName,
921
+ unstyled = false,
922
+ ...props
923
+ }) {
924
+ const isInvalid = invalid || ariaInvalid === true || ariaInvalid === "true";
925
+ return /* @__PURE__ */ jsx(
926
+ "span",
927
+ {
928
+ className: cn("a63-Textarea", className),
929
+ "data-disabled": disabled ? "" : void 0,
930
+ "data-invalid": isInvalid ? "" : void 0,
931
+ "data-shadow": shadow ? void 0 : "false",
932
+ "data-size": size,
933
+ "data-slot": "textarea-control",
934
+ "data-unstyled": unstyled ? "" : void 0,
935
+ children: /* @__PURE__ */ jsx(
936
+ "textarea",
937
+ {
938
+ "aria-invalid": isInvalid ? true : ariaInvalid,
939
+ className: cn("a63-Textarea-field", textareaClassName),
940
+ "data-slot": "textarea",
941
+ disabled,
942
+ ...props
943
+ }
944
+ )
945
+ }
946
+ );
947
+ }
948
+ function isAriaInvalid(value) {
949
+ return value === true || value === "true";
950
+ }
951
+ function Input({
952
+ "aria-invalid": ariaInvalid,
953
+ className,
954
+ disabled,
955
+ inputClassName,
956
+ invalid = false,
957
+ nativeInput = false,
958
+ shadow = true,
959
+ size = inputContract.defaultSize,
960
+ unstyled = false,
961
+ variant = inputContract.defaultVariant,
962
+ ...props
963
+ }) {
964
+ const isInvalid = invalid || isAriaInvalid(ariaInvalid);
965
+ const isNumericSize = typeof size === "number";
966
+ const dataSize = isNumericSize ? inputContract.defaultSize : size;
967
+ const fieldProps = {
968
+ className: cn("a63-Input-field", inputClassName),
969
+ "data-slot": "input",
970
+ disabled,
971
+ size: isNumericSize ? size : void 0,
972
+ "aria-invalid": isInvalid ? true : ariaInvalid
973
+ };
974
+ return /* @__PURE__ */ jsx(
975
+ "span",
976
+ {
977
+ className: cn("a63-Input", className),
978
+ "data-disabled": disabled ? "" : void 0,
979
+ "data-invalid": isInvalid ? "" : void 0,
980
+ "data-shadow": shadow ? void 0 : "false",
981
+ "data-size": dataSize,
982
+ "data-slot": "input-control",
983
+ "data-unstyled": unstyled ? "" : void 0,
984
+ "data-variant": variant,
985
+ children: nativeInput ? /* @__PURE__ */ jsx("input", { ...fieldProps, ...props }) : /* @__PURE__ */ jsx(Input$1, { ...fieldProps, ...props })
986
+ }
987
+ );
988
+ }
989
+ var InputGroupContext = React2.createContext({
990
+ disabled: false,
991
+ invalid: false,
992
+ size: inputContract.defaultSize
993
+ });
994
+ var ADDON_INTERACTIVE_SELECTOR = "button, a, input, select, textarea, [role='button'], [role='combobox'], [role='listbox'], [data-slot='select-trigger']";
995
+ function InputGroup({
996
+ children,
997
+ className,
998
+ disabled = false,
999
+ invalid = false,
1000
+ shadow = true,
1001
+ size = inputContract.defaultSize,
1002
+ variant = inputContract.defaultVariant,
1003
+ ...props
1004
+ }) {
1005
+ const context = React2.useMemo(() => ({ disabled, invalid, size }), [disabled, invalid, size]);
1006
+ return /* @__PURE__ */ jsx(InputGroupContext.Provider, { value: context, children: /* @__PURE__ */ jsx(
1007
+ "div",
1008
+ {
1009
+ className: cn("a63-InputGroup", className),
1010
+ "data-disabled": disabled ? "" : void 0,
1011
+ "data-invalid": invalid ? "" : void 0,
1012
+ "data-shadow": shadow ? void 0 : "false",
1013
+ "data-size": size,
1014
+ "data-slot": "input-group",
1015
+ "data-variant": variant,
1016
+ role: "group",
1017
+ ...props,
1018
+ children
1019
+ }
1020
+ ) });
1021
+ }
1022
+ function InputGroupAddon({
1023
+ align = "inline-start",
1024
+ children,
1025
+ className,
1026
+ onMouseDown,
1027
+ ...props
1028
+ }) {
1029
+ return (
1030
+ // mousedown only delegates focus to the field (the real control); the addon is a decorative slot
1031
+ // eslint-disable-next-line jsx-a11y/no-static-element-interactions -- the input remains the sole interactive control
1032
+ /* @__PURE__ */ jsx(
1033
+ "div",
1034
+ {
1035
+ className: cn("a63-InputGroup-addon", className),
1036
+ "data-align": align,
1037
+ "data-slot": "input-group-addon",
1038
+ onMouseDown: (event) => {
1039
+ onMouseDown?.(event);
1040
+ if (event.defaultPrevented) {
1041
+ return;
1042
+ }
1043
+ const target = event.target;
1044
+ if (target.closest(ADDON_INTERACTIVE_SELECTOR)) {
1045
+ return;
1046
+ }
1047
+ event.preventDefault();
1048
+ const parent = event.currentTarget.parentElement;
1049
+ const field = parent?.querySelector(
1050
+ "input, textarea"
1051
+ );
1052
+ if (field && !parent?.querySelector("input:focus, textarea:focus")) {
1053
+ field.focus();
1054
+ }
1055
+ },
1056
+ ...props,
1057
+ children
1058
+ }
1059
+ )
1060
+ );
1061
+ }
1062
+ function InputGroupInput({
1063
+ disabled,
1064
+ invalid,
1065
+ size,
1066
+ ...props
1067
+ }) {
1068
+ const {
1069
+ disabled: groupDisabled,
1070
+ invalid: groupInvalid,
1071
+ size: groupSize
1072
+ } = React2.useContext(InputGroupContext);
1073
+ return /* @__PURE__ */ jsx(
1074
+ Input,
1075
+ {
1076
+ disabled: disabled ?? groupDisabled,
1077
+ invalid: invalid ?? groupInvalid,
1078
+ size: size ?? groupSize,
1079
+ unstyled: true,
1080
+ ...props
1081
+ }
1082
+ );
1083
+ }
1084
+ function InputGroupTextarea({
1085
+ disabled,
1086
+ ...props
1087
+ }) {
1088
+ const { disabled: groupDisabled, invalid: groupInvalid } = React2.useContext(InputGroupContext);
1089
+ return /* @__PURE__ */ jsx(
1090
+ Textarea,
1091
+ {
1092
+ "aria-invalid": props["aria-invalid"] ?? (groupInvalid || void 0),
1093
+ disabled: disabled ?? groupDisabled,
1094
+ unstyled: true,
1095
+ ...props
1096
+ }
1097
+ );
1098
+ }
1099
+ function InputGroupButton({
1100
+ size = "xs",
1101
+ variant = "ghost",
1102
+ ...props
1103
+ }) {
1104
+ return /* @__PURE__ */ jsx(Button, { "data-slot": "input-group-button", size, variant, ...props });
1105
+ }
1106
+ function InputGroupText({
1107
+ children,
1108
+ className,
1109
+ ...props
1110
+ }) {
1111
+ return /* @__PURE__ */ jsx("span", { className: cn("a63-InputGroup-text", className), "data-slot": "input-group-text", ...props, children });
1112
+ }
883
1113
  var CommandDialog = Dialog$1.Root;
884
- var CommandDialogPortal = Dialog$1.Portal;
1114
+ function CommandDialogPortal(props) {
1115
+ const { container, ...portalProps } = props;
1116
+ const contextPortalContainer = usePortalContainer();
1117
+ return /* @__PURE__ */ jsx(
1118
+ Dialog$1.Portal,
1119
+ {
1120
+ container: container ?? contextPortalContainer,
1121
+ ...portalProps
1122
+ }
1123
+ );
1124
+ }
885
1125
  var CommandCreateHandle = Dialog$1.createHandle;
886
1126
  function CommandDialogTrigger(props) {
887
1127
  return /* @__PURE__ */ jsx(Dialog$1.Trigger, { "data-slot": "command-dialog-trigger", ...props });
@@ -961,11 +1201,13 @@ function SearchIcon() {
961
1201
  }
962
1202
  function CommandInput({
963
1203
  className,
1204
+ endAddon,
1205
+ icon = /* @__PURE__ */ jsx(SearchIcon, {}),
964
1206
  placeholder,
965
1207
  ...props
966
1208
  }) {
967
1209
  return /* @__PURE__ */ jsxs("div", { className: "a63-Command-input-wrapper", "data-slot": "command-input-wrapper", children: [
968
- /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "a63-Command-input-icon", children: /* @__PURE__ */ jsx(SearchIcon, {}) }),
1210
+ icon ? /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "a63-Command-input-icon", children: icon }) : null,
969
1211
  /* @__PURE__ */ jsx(
970
1212
  Autocomplete$1.Input,
971
1213
  {
@@ -976,7 +1218,8 @@ function CommandInput({
976
1218
  placeholder,
977
1219
  ...props
978
1220
  }
979
- )
1221
+ ),
1222
+ endAddon ? /* @__PURE__ */ jsx("span", { className: "a63-Command-input-end", "data-slot": "command-input-end", children: endAddon }) : null
980
1223
  ] });
981
1224
  }
982
1225
  function CommandPanel({
@@ -1101,12 +1344,21 @@ function CommandFooter({
1101
1344
  return /* @__PURE__ */ jsx("div", { className: cn("a63-Command-footer", className), "data-slot": "command-footer", ...props });
1102
1345
  }
1103
1346
  var DialogCreateHandle = Dialog$1.createHandle;
1104
- var DialogModalContext = React3.createContext(true);
1347
+ var DialogModalContext = React2.createContext(true);
1105
1348
  function Dialog(props) {
1106
1349
  return /* @__PURE__ */ jsx(DialogModalContext.Provider, { value: props.modal ?? true, children: /* @__PURE__ */ jsx(Dialog$1.Root, { ...props }) });
1107
1350
  }
1108
1351
  function DialogPortal(props) {
1109
- return /* @__PURE__ */ jsx(Dialog$1.Portal, { "data-slot": "dialog-portal", ...props });
1352
+ const { container, ...portalProps } = props;
1353
+ const contextPortalContainer = usePortalContainer();
1354
+ return /* @__PURE__ */ jsx(
1355
+ Dialog$1.Portal,
1356
+ {
1357
+ container: container ?? contextPortalContainer,
1358
+ "data-slot": "dialog-portal",
1359
+ ...portalProps
1360
+ }
1361
+ );
1110
1362
  }
1111
1363
  function DialogTrigger({
1112
1364
  className,
@@ -1173,7 +1425,7 @@ function DialogPopup({
1173
1425
  portalProps,
1174
1426
  ...props
1175
1427
  }) {
1176
- const modal = React3.useContext(DialogModalContext);
1428
+ const modal = React2.useContext(DialogModalContext);
1177
1429
  const resolvedMobilePlacement = mobilePlacement ?? (bottomStickOnMobile ? "bottom" : "center");
1178
1430
  const stickToBottomOnMobile = resolvedMobilePlacement === "bottom";
1179
1431
  return /* @__PURE__ */ jsxs(DialogPortal, { ...portalProps, children: [
@@ -1197,7 +1449,7 @@ function DialogPopup({
1197
1449
  className: "a63-Dialog-close-button",
1198
1450
  "data-slot": "dialog-close-button",
1199
1451
  ...closeProps,
1200
- children: /* @__PURE__ */ jsx(CloseIcon2, {})
1452
+ children: closeProps?.children ?? /* @__PURE__ */ jsx(CloseIcon2, {})
1201
1453
  }
1202
1454
  )
1203
1455
  ]
@@ -1280,202 +1532,6 @@ function DialogPanel({
1280
1532
  render
1281
1533
  });
1282
1534
  }
1283
- function isAriaInvalid(value) {
1284
- return value === true || value === "true";
1285
- }
1286
- function Input({
1287
- "aria-invalid": ariaInvalid,
1288
- className,
1289
- disabled,
1290
- inputClassName,
1291
- invalid = false,
1292
- nativeInput = false,
1293
- shadow = true,
1294
- size = inputContract.defaultSize,
1295
- unstyled = false,
1296
- ...props
1297
- }) {
1298
- const isInvalid = invalid || isAriaInvalid(ariaInvalid);
1299
- const isNumericSize = typeof size === "number";
1300
- const dataSize = isNumericSize ? inputContract.defaultSize : size;
1301
- const fieldProps = {
1302
- className: cn("a63-Input-field", inputClassName),
1303
- "data-slot": "input",
1304
- disabled,
1305
- size: isNumericSize ? size : void 0,
1306
- "aria-invalid": isInvalid ? true : ariaInvalid
1307
- };
1308
- return /* @__PURE__ */ jsx(
1309
- "span",
1310
- {
1311
- className: cn("a63-Input", className),
1312
- "data-disabled": disabled ? "" : void 0,
1313
- "data-invalid": isInvalid ? "" : void 0,
1314
- "data-shadow": shadow ? void 0 : "false",
1315
- "data-size": dataSize,
1316
- "data-slot": "input-control",
1317
- "data-unstyled": unstyled ? "" : void 0,
1318
- children: nativeInput ? /* @__PURE__ */ jsx("input", { ...fieldProps, ...props }) : /* @__PURE__ */ jsx(Input$1, { ...fieldProps, ...props })
1319
- }
1320
- );
1321
- }
1322
- function Textarea({
1323
- "aria-invalid": ariaInvalid,
1324
- className,
1325
- disabled,
1326
- invalid = false,
1327
- shadow = true,
1328
- size = textareaContract.defaultSize,
1329
- textareaClassName,
1330
- unstyled = false,
1331
- ...props
1332
- }) {
1333
- const isInvalid = invalid || ariaInvalid === true || ariaInvalid === "true";
1334
- return /* @__PURE__ */ jsx(
1335
- "span",
1336
- {
1337
- className: cn("a63-Textarea", className),
1338
- "data-disabled": disabled ? "" : void 0,
1339
- "data-invalid": isInvalid ? "" : void 0,
1340
- "data-shadow": shadow ? void 0 : "false",
1341
- "data-size": size,
1342
- "data-slot": "textarea-control",
1343
- "data-unstyled": unstyled ? "" : void 0,
1344
- children: /* @__PURE__ */ jsx(
1345
- "textarea",
1346
- {
1347
- "aria-invalid": isInvalid ? true : ariaInvalid,
1348
- className: cn("a63-Textarea-field", textareaClassName),
1349
- "data-slot": "textarea",
1350
- disabled,
1351
- ...props
1352
- }
1353
- )
1354
- }
1355
- );
1356
- }
1357
- var InputGroupContext = React3.createContext({
1358
- disabled: false,
1359
- invalid: false,
1360
- size: inputContract.defaultSize
1361
- });
1362
- var ADDON_INTERACTIVE_SELECTOR = "button, a, input, select, textarea, [role='button'], [role='combobox'], [role='listbox'], [data-slot='select-trigger']";
1363
- function InputGroup({
1364
- children,
1365
- className,
1366
- disabled = false,
1367
- invalid = false,
1368
- shadow = true,
1369
- size = inputContract.defaultSize,
1370
- ...props
1371
- }) {
1372
- const context = React3.useMemo(() => ({ disabled, invalid, size }), [disabled, invalid, size]);
1373
- return /* @__PURE__ */ jsx(InputGroupContext.Provider, { value: context, children: /* @__PURE__ */ jsx(
1374
- "div",
1375
- {
1376
- className: cn("a63-InputGroup", className),
1377
- "data-disabled": disabled ? "" : void 0,
1378
- "data-invalid": invalid ? "" : void 0,
1379
- "data-shadow": shadow ? void 0 : "false",
1380
- "data-size": size,
1381
- "data-slot": "input-group",
1382
- role: "group",
1383
- ...props,
1384
- children
1385
- }
1386
- ) });
1387
- }
1388
- function InputGroupAddon({
1389
- align = "inline-start",
1390
- children,
1391
- className,
1392
- onMouseDown,
1393
- ...props
1394
- }) {
1395
- return (
1396
- // mousedown only delegates focus to the field (the real control); the addon is a decorative slot
1397
- // eslint-disable-next-line jsx-a11y/no-static-element-interactions -- the input remains the sole interactive control
1398
- /* @__PURE__ */ jsx(
1399
- "div",
1400
- {
1401
- className: cn("a63-InputGroup-addon", className),
1402
- "data-align": align,
1403
- "data-slot": "input-group-addon",
1404
- onMouseDown: (event) => {
1405
- onMouseDown?.(event);
1406
- if (event.defaultPrevented) {
1407
- return;
1408
- }
1409
- const target = event.target;
1410
- if (target.closest(ADDON_INTERACTIVE_SELECTOR)) {
1411
- return;
1412
- }
1413
- event.preventDefault();
1414
- const parent = event.currentTarget.parentElement;
1415
- const field = parent?.querySelector(
1416
- "input, textarea"
1417
- );
1418
- if (field && !parent?.querySelector("input:focus, textarea:focus")) {
1419
- field.focus();
1420
- }
1421
- },
1422
- ...props,
1423
- children
1424
- }
1425
- )
1426
- );
1427
- }
1428
- function InputGroupInput({
1429
- disabled,
1430
- invalid,
1431
- size,
1432
- ...props
1433
- }) {
1434
- const {
1435
- disabled: groupDisabled,
1436
- invalid: groupInvalid,
1437
- size: groupSize
1438
- } = React3.useContext(InputGroupContext);
1439
- return /* @__PURE__ */ jsx(
1440
- Input,
1441
- {
1442
- disabled: disabled ?? groupDisabled,
1443
- invalid: invalid ?? groupInvalid,
1444
- size: size ?? groupSize,
1445
- unstyled: true,
1446
- ...props
1447
- }
1448
- );
1449
- }
1450
- function InputGroupTextarea({
1451
- disabled,
1452
- ...props
1453
- }) {
1454
- const { disabled: groupDisabled, invalid: groupInvalid } = React3.useContext(InputGroupContext);
1455
- return /* @__PURE__ */ jsx(
1456
- Textarea,
1457
- {
1458
- "aria-invalid": props["aria-invalid"] ?? (groupInvalid || void 0),
1459
- disabled: disabled ?? groupDisabled,
1460
- unstyled: true,
1461
- ...props
1462
- }
1463
- );
1464
- }
1465
- function InputGroupButton({
1466
- size = "xs",
1467
- variant = "ghost",
1468
- ...props
1469
- }) {
1470
- return /* @__PURE__ */ jsx(Button, { "data-slot": "input-group-button", size, variant, ...props });
1471
- }
1472
- function InputGroupText({
1473
- children,
1474
- className,
1475
- ...props
1476
- }) {
1477
- return /* @__PURE__ */ jsx("span", { className: cn("a63-InputGroup-text", className), "data-slot": "input-group-text", ...props, children });
1478
- }
1479
1535
 
1480
1536
  // src/conformance/renderer-conformance.ts
1481
1537
  var reactRendererConformance = [
@@ -1781,6 +1837,16 @@ var reactRendererConformance = [
1781
1837
  ],
1782
1838
  verifiesMotionRecipe: false
1783
1839
  },
1840
+ {
1841
+ contractId: "toggle-group",
1842
+ implementedStates: ["rest", "selected", "disabled"],
1843
+ verifiedSharedOutcomes: [
1844
+ "selection-state-is-visible",
1845
+ "disabled-options-cannot-change-selection"
1846
+ ],
1847
+ verifiedAccessibilityOutcomes: ["exposes-selection", "exposes-disabled-state"],
1848
+ verifiesMotionRecipe: false
1849
+ },
1784
1850
  {
1785
1851
  contractId: "card",
1786
1852
  implementedStates: ["rest", "interactive", "focus-visible"],
@@ -1849,6 +1915,38 @@ var reactRendererConformance = [
1849
1915
  ],
1850
1916
  verifiedAccessibilityOutcomes: ["announces-message", "does-not-trap-focus"],
1851
1917
  verifiesMotionRecipe: true
1918
+ },
1919
+ {
1920
+ contractId: "item",
1921
+ implementedStates: ["rest"],
1922
+ verifiedSharedOutcomes: ["rows-keep-reading-order", "dividers-are-decorative"],
1923
+ verifiedAccessibilityOutcomes: [
1924
+ "preserves-row-order",
1925
+ "hides-dividers-from-assistive-technology"
1926
+ ],
1927
+ verifiesMotionRecipe: false
1928
+ },
1929
+ {
1930
+ contractId: "carousel",
1931
+ implementedStates: ["rest"],
1932
+ verifiedSharedOutcomes: [
1933
+ "one-dot-per-slide",
1934
+ "current-slide-is-marked",
1935
+ "choosing-a-dot-shows-its-slide"
1936
+ ],
1937
+ verifiedAccessibilityOutcomes: ["names-the-indicator", "exposes-the-current-position"],
1938
+ verifiesMotionRecipe: false
1939
+ },
1940
+ {
1941
+ contractId: "message",
1942
+ implementedStates: ["rest"],
1943
+ verifiedSharedOutcomes: [
1944
+ "direction-sets-side-and-fill",
1945
+ "runs-join-at-shared-corners",
1946
+ "status-is-named"
1947
+ ],
1948
+ verifiedAccessibilityOutcomes: ["names-the-sender", "names-the-delivery-status"],
1949
+ verifiesMotionRecipe: false
1852
1950
  }
1853
1951
  ];
1854
1952
  function getReactRendererConformance(contractId) {
@@ -1943,26 +2041,34 @@ function NavigationMenuPositioner({
1943
2041
  sideOffset = 8,
1944
2042
  ...props
1945
2043
  }) {
1946
- return /* @__PURE__ */ jsx(NavigationMenu$1.Portal, { container: portalContainer, "data-slot": "navigation-menu-portal", children: /* @__PURE__ */ jsx(
1947
- NavigationMenu$1.Positioner,
2044
+ const contextPortalContainer = usePortalContainer();
2045
+ return /* @__PURE__ */ jsx(
2046
+ NavigationMenu$1.Portal,
1948
2047
  {
1949
- align,
1950
- alignOffset,
1951
- className: cn("a63-NavigationMenu-positioner", className),
1952
- "data-slot": "navigation-menu-positioner",
1953
- side,
1954
- sideOffset,
1955
- ...props,
2048
+ container: portalContainer ?? contextPortalContainer,
2049
+ "data-slot": "navigation-menu-portal",
1956
2050
  children: /* @__PURE__ */ jsx(
1957
- NavigationMenu$1.Popup,
2051
+ NavigationMenu$1.Positioner,
1958
2052
  {
1959
- className: "a63-NavigationMenu-popup",
1960
- "data-slot": "navigation-menu-popup",
1961
- children: /* @__PURE__ */ jsx(NavigationMenuViewport, {})
2053
+ align,
2054
+ alignOffset,
2055
+ className: cn("a63-NavigationMenu-positioner", className),
2056
+ "data-slot": "navigation-menu-positioner",
2057
+ side,
2058
+ sideOffset,
2059
+ ...props,
2060
+ children: /* @__PURE__ */ jsx(
2061
+ NavigationMenu$1.Popup,
2062
+ {
2063
+ className: "a63-NavigationMenu-popup",
2064
+ "data-slot": "navigation-menu-popup",
2065
+ children: /* @__PURE__ */ jsx(NavigationMenuViewport, {})
2066
+ }
2067
+ )
1962
2068
  }
1963
2069
  )
1964
2070
  }
1965
- ) });
2071
+ );
1966
2072
  }
1967
2073
  function NavigationMenuLink({
1968
2074
  className,
@@ -2007,6 +2113,7 @@ function NavigationMenuViewport({
2007
2113
  function Progress({
2008
2114
  className,
2009
2115
  children,
2116
+ tone = progressContract.defaultTone,
2010
2117
  ...props
2011
2118
  }) {
2012
2119
  return /* @__PURE__ */ jsx(
@@ -2014,6 +2121,7 @@ function Progress({
2014
2121
  {
2015
2122
  className: cn("a63-Progress", className),
2016
2123
  "data-slot": "progress",
2124
+ "data-tone": tone,
2017
2125
  ...props,
2018
2126
  children: children ?? /* @__PURE__ */ jsx(ProgressTrack, { children: /* @__PURE__ */ jsx(ProgressIndicator, {}) })
2019
2127
  }
@@ -2071,6 +2179,19 @@ function ProgressValue({
2071
2179
  }
2072
2180
  );
2073
2181
  }
2182
+
2183
+ // src/lib/merge-refs.ts
2184
+ function mergeRefs(...refs) {
2185
+ return (node) => {
2186
+ for (const ref of refs) {
2187
+ if (typeof ref === "function") {
2188
+ ref(node);
2189
+ } else if (ref) {
2190
+ ref.current = node;
2191
+ }
2192
+ }
2193
+ };
2194
+ }
2074
2195
  var scrollableListControlClassNames = {
2075
2196
  button: "a63-ScrollableList-controlButton",
2076
2197
  icon: "a63-ScrollableList-controlIcon"
@@ -2084,35 +2205,48 @@ function ScrollableList({
2084
2205
  disabled = false,
2085
2206
  draggable = false,
2086
2207
  mask = true,
2087
- wrapLayoutBreakpoint
2208
+ ref,
2209
+ role,
2210
+ scrollEndLabel,
2211
+ scrollStartLabel,
2212
+ style,
2213
+ wrapLayoutBreakpoint,
2214
+ ...props
2088
2215
  }) {
2089
- const [canScrollLeft, setCanScrollLeft] = useState(false);
2090
- const [canScrollRight, setCanScrollRight] = useState(false);
2216
+ const [canScrollStart, setCanScrollStart] = useState(false);
2217
+ const [canScrollEnd, setCanScrollEnd] = useState(false);
2218
+ const [isRtl, setIsRtl] = useState(false);
2091
2219
  const [useWrapLayout, setUseWrapLayout] = useState(false);
2092
2220
  const containerRef = useRef(null);
2093
2221
  const scrollAreaRef = useRef(null);
2222
+ const startButtonRef = useRef(null);
2223
+ const endButtonRef = useRef(null);
2224
+ const rootRef = useMemo(() => mergeRefs(containerRef, ref), [ref]);
2094
2225
  const getViewport = useCallback(() => {
2095
2226
  return scrollAreaRef.current?.querySelector('[data-slot="scroll-area-viewport"]');
2096
2227
  }, []);
2097
2228
  const checkScrollPosition = useCallback(() => {
2098
2229
  const viewport = getViewport();
2099
2230
  if (!viewport) return;
2231
+ const rtl = getComputedStyle(viewport).direction === "rtl";
2100
2232
  const { scrollLeft, scrollWidth, clientWidth } = viewport;
2101
- setCanScrollLeft(scrollLeft > 1);
2102
- setCanScrollRight(scrollLeft < scrollWidth - clientWidth - 1);
2233
+ const offset = rtl ? -scrollLeft : scrollLeft;
2234
+ setIsRtl(rtl);
2235
+ setCanScrollStart(offset > 1);
2236
+ setCanScrollEnd(offset < scrollWidth - clientWidth - 1);
2103
2237
  }, [getViewport]);
2104
2238
  const scrollContent = useCallback(
2105
2239
  (direction) => {
2106
2240
  const viewport = getViewport();
2107
2241
  if (!viewport) return;
2108
- const scrollAmount = viewport.clientWidth * 0.8;
2109
- const targetScroll = viewport.scrollLeft + (direction === "right" ? scrollAmount : -scrollAmount);
2242
+ const scrollAmount = viewport.clientWidth * (isRtl ? -0.8 : 0.8);
2243
+ const targetScroll = viewport.scrollLeft + (direction === "end" ? scrollAmount : -scrollAmount);
2110
2244
  viewport.scrollTo({
2111
2245
  left: targetScroll,
2112
2246
  behavior: window.matchMedia?.("(prefers-reduced-motion: reduce)").matches ? "auto" : "smooth"
2113
2247
  });
2114
2248
  },
2115
- [getViewport]
2249
+ [getViewport, isRtl]
2116
2250
  );
2117
2251
  useEffect(() => {
2118
2252
  if (!wrapLayoutBreakpoint) return;
@@ -2213,18 +2347,30 @@ function ScrollableList({
2213
2347
  resizeObserver.disconnect();
2214
2348
  };
2215
2349
  }, [checkScrollPosition, getViewport, useWrapLayout]);
2350
+ useLayoutEffect(() => {
2351
+ const active = document.activeElement;
2352
+ if (!canScrollEnd && canScrollStart && active === endButtonRef.current) {
2353
+ startButtonRef.current?.focus();
2354
+ } else if (!canScrollStart && canScrollEnd && active === startButtonRef.current) {
2355
+ endButtonRef.current?.focus();
2356
+ }
2357
+ }, [canScrollEnd, canScrollStart]);
2216
2358
  const bleedStyle = contentPad || controlInset ? {
2217
2359
  ...contentPad ? { "--scrollable-list-content-pad": contentPad } : null,
2218
- ...controlInset ? { "--scrollable-list-control-inset": controlInset } : null
2219
- } : void 0;
2360
+ ...controlInset ? { "--scrollable-list-control-inset": controlInset } : null,
2361
+ ...style
2362
+ } : style;
2363
+ const rootRole = role ?? (props["aria-label"] || props["aria-labelledby"] ? "group" : void 0);
2220
2364
  if (wrapLayoutBreakpoint && useWrapLayout) {
2221
2365
  return /* @__PURE__ */ jsx(
2222
2366
  "div",
2223
2367
  {
2368
+ ...props,
2224
2369
  className: cn("a63-ScrollableList", className),
2225
2370
  "data-disabled": disabled || void 0,
2226
2371
  "data-slot": "scrollable-list",
2227
- ref: containerRef,
2372
+ ref: rootRef,
2373
+ role: rootRole,
2228
2374
  style: bleedStyle,
2229
2375
  children: /* @__PURE__ */ jsx("div", { className: "a63-ScrollableList-content", "data-slot": "scrollable-list-content", children })
2230
2376
  }
@@ -2233,11 +2379,13 @@ function ScrollableList({
2233
2379
  return /* @__PURE__ */ jsx(
2234
2380
  "div",
2235
2381
  {
2382
+ ...props,
2236
2383
  className: cn("a63-ScrollableList", className),
2237
2384
  "data-disabled": disabled || void 0,
2238
2385
  "data-draggable": draggable || void 0,
2239
2386
  "data-slot": "scrollable-list",
2240
- ref: containerRef,
2387
+ ref: rootRef,
2388
+ role: rootRole,
2241
2389
  style: bleedStyle,
2242
2390
  children: /* @__PURE__ */ jsxs("div", { className: "a63-ScrollableList-frame", "data-slot": "scrollable-list-frame", children: [
2243
2391
  /* @__PURE__ */ jsx(
@@ -2246,23 +2394,25 @@ function ScrollableList({
2246
2394
  className: "[&_[data-slot=scroll-area-scrollbar][data-orientation=vertical]]:hidden",
2247
2395
  ref: scrollAreaRef,
2248
2396
  scrollFade: mask,
2249
- viewportClassName: "overflow-y-hidden",
2397
+ viewportProps: { style: { overflowY: "hidden" } },
2250
2398
  children: /* @__PURE__ */ jsx("div", { className: "a63-ScrollableList-content", "data-slot": "scrollable-list-content", children })
2251
2399
  }
2252
2400
  ),
2253
- showChevrons && canScrollLeft && !disabled && /* @__PURE__ */ jsx(
2401
+ showChevrons && !disabled && /* @__PURE__ */ jsx(
2254
2402
  "div",
2255
2403
  {
2256
2404
  className: "a63-ScrollableList-control",
2257
- "data-side": "left",
2405
+ "data-side": "start",
2258
2406
  "data-slot": "scrollable-list-control",
2259
- "data-visible": true,
2407
+ "data-visible": canScrollStart || void 0,
2408
+ inert: !canScrollStart,
2260
2409
  children: /* @__PURE__ */ jsx(
2261
2410
  Button,
2262
2411
  {
2263
- "aria-label": "Scroll left",
2412
+ "aria-label": scrollStartLabel ?? (isRtl ? "Scroll right" : "Scroll left"),
2264
2413
  className: scrollableListControlClassNames.button,
2265
- onClick: () => scrollContent("left"),
2414
+ onClick: () => scrollContent("start"),
2415
+ ref: startButtonRef,
2266
2416
  size: "icon-lg",
2267
2417
  type: "button",
2268
2418
  variant: "secondary",
@@ -2271,19 +2421,21 @@ function ScrollableList({
2271
2421
  )
2272
2422
  }
2273
2423
  ),
2274
- showChevrons && canScrollRight && !disabled && /* @__PURE__ */ jsx(
2424
+ showChevrons && !disabled && /* @__PURE__ */ jsx(
2275
2425
  "div",
2276
2426
  {
2277
2427
  className: "a63-ScrollableList-control",
2278
- "data-side": "right",
2428
+ "data-side": "end",
2279
2429
  "data-slot": "scrollable-list-control",
2280
- "data-visible": true,
2430
+ "data-visible": canScrollEnd || void 0,
2431
+ inert: !canScrollEnd,
2281
2432
  children: /* @__PURE__ */ jsx(
2282
2433
  Button,
2283
2434
  {
2284
- "aria-label": "Scroll right",
2435
+ "aria-label": scrollEndLabel ?? (isRtl ? "Scroll left" : "Scroll right"),
2285
2436
  className: scrollableListControlClassNames.button,
2286
- onClick: () => scrollContent("right"),
2437
+ onClick: () => scrollContent("end"),
2438
+ ref: endButtonRef,
2287
2439
  size: "icon-lg",
2288
2440
  type: "button",
2289
2441
  variant: "secondary",
@@ -2299,17 +2451,22 @@ function ScrollableList({
2299
2451
  var Select = Select$1.Root;
2300
2452
  var selectTriggerDefaultClassName = "a63-Select-trigger";
2301
2453
  function SelectTrigger({
2454
+ "aria-invalid": ariaInvalid,
2302
2455
  children,
2303
2456
  className,
2457
+ invalid = false,
2304
2458
  size = selectContract.defaultSize,
2305
2459
  ...props
2306
2460
  }) {
2461
+ const isInvalid = invalid || ariaInvalid === true || ariaInvalid === "true";
2307
2462
  return /* @__PURE__ */ jsxs(
2308
2463
  Select$1.Trigger,
2309
2464
  {
2465
+ "aria-invalid": isInvalid ? true : ariaInvalid,
2310
2466
  className: cn(selectTriggerDefaultClassName, className),
2311
2467
  "data-size": size,
2312
2468
  "data-slot": "select-trigger",
2469
+ ...isInvalid ? { "data-invalid": "" } : null,
2313
2470
  ...props,
2314
2471
  children: [
2315
2472
  children,
@@ -2418,8 +2575,10 @@ function SelectSeparator({
2418
2575
  return /* @__PURE__ */ jsx(
2419
2576
  Select$1.Separator,
2420
2577
  {
2578
+ "aria-orientation": void 0,
2421
2579
  className: cn("a63-Menu-separator", "a63-Select-separator", className),
2422
2580
  "data-slot": "select-separator",
2581
+ role: "none",
2423
2582
  ...props
2424
2583
  }
2425
2584
  );
@@ -2448,16 +2607,16 @@ function setSheetBodyState(open) {
2448
2607
  }
2449
2608
  function Sheet({ onOpenChange, open, defaultOpen, ...props }) {
2450
2609
  const isControlled = open !== void 0;
2451
- const bodyStateRef = React3.useRef(false);
2452
- const syncBodyState = React3.useCallback((nextOpen) => {
2610
+ const bodyStateRef = React2.useRef(false);
2611
+ const syncBodyState = React2.useCallback((nextOpen) => {
2453
2612
  if (bodyStateRef.current === nextOpen) return;
2454
2613
  bodyStateRef.current = nextOpen;
2455
2614
  setSheetBodyState(nextOpen);
2456
2615
  }, []);
2457
- React3.useEffect(() => {
2616
+ React2.useEffect(() => {
2458
2617
  if (isControlled) syncBodyState(open);
2459
2618
  }, [isControlled, open, syncBodyState]);
2460
- React3.useEffect(() => {
2619
+ React2.useEffect(() => {
2461
2620
  if (!isControlled && defaultOpen) syncBodyState(true);
2462
2621
  return () => syncBodyState(false);
2463
2622
  }, [defaultOpen, isControlled, syncBodyState]);
@@ -2477,7 +2636,16 @@ function Sheet({ onOpenChange, open, defaultOpen, ...props }) {
2477
2636
  );
2478
2637
  }
2479
2638
  function SheetPortal(props) {
2480
- return /* @__PURE__ */ jsx(Dialog$1.Portal, { "data-slot": "sheet-portal", ...props });
2639
+ const { container, ...portalProps } = props;
2640
+ const contextPortalContainer = usePortalContainer();
2641
+ return /* @__PURE__ */ jsx(
2642
+ Dialog$1.Portal,
2643
+ {
2644
+ container: container ?? contextPortalContainer,
2645
+ "data-slot": "sheet-portal",
2646
+ ...portalProps
2647
+ }
2648
+ );
2481
2649
  }
2482
2650
  function SheetTrigger({
2483
2651
  className,
@@ -2551,7 +2719,7 @@ function SheetPopup({
2551
2719
  "data-slot": "sheet-close-button",
2552
2720
  render: /* @__PURE__ */ jsx(Button, { size: "icon", variant: "ghost" }),
2553
2721
  ...closeProps,
2554
- children: /* @__PURE__ */ jsx(X, { "aria-hidden": "true" })
2722
+ children: closeProps?.children ?? /* @__PURE__ */ jsx(X, { "aria-hidden": "true" })
2555
2723
  }
2556
2724
  )
2557
2725
  ]
@@ -2673,6 +2841,6 @@ function TooltipPopup({
2673
2841
  ) });
2674
2842
  }
2675
2843
 
2676
- export { AlertDialog, AlertDialogAction, AlertDialogBackdrop, AlertDialogCancel, AlertDialogClose, AlertDialogCreateHandle, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogPopup, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertDialogViewport, Autocomplete, AutocompleteClear, AutocompleteCollection, AutocompleteEmpty, AutocompleteGroup, AutocompleteGroupLabel, AutocompleteInput, AutocompleteItem, AutocompleteList, AutocompletePopup, AutocompleteRow, AutocompleteSeparator, AutocompleteStatus, AutocompleteTrigger, AutocompleteValue, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, ButtonGroup, ButtonGroupProvider, ButtonGroupSeparator, ButtonGroupText, Card, CardAction, CardContent, CardCursorLabel, CardDescription, CardFooter, CardHeader, CardLabel, CardMedia, CardMediaOverlay, CardMediaOverlayBottom, CardMediaOverlayIconButton, CardMediaOverlayImage, CardMediaOverlayScrim, CardMediaOverlayTopRight, CardTags, CardTitle, Command, CommandCollection, CommandCreateHandle, CommandDialog, CommandDialogBackdrop, CommandDialogPopup, CommandDialogPortal, CommandDialogTrigger, CommandDialogViewport, CommandEmpty, CommandFooter, CommandGroup, CommandGroupLabel, CommandInput, CommandItem, CommandList, CommandPanel, CommandSeparator, CommandShortcut, Dialog, DialogBackdrop, DialogClose, DialogCreateHandle, DialogDescription, DialogFooter, DialogHeader, DialogPanel, DialogPopup, DialogPortal, DialogTitle, DialogTrigger, DialogViewport, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuPositioner, NavigationMenuTrigger, NavigationMenuViewport, Progress, ProgressIndicator, ProgressLabel, ProgressTrack, ProgressValue, ScrollableList, Select, SelectContent, SelectGroup, SelectGroupLabel, SelectItem, SelectPopup, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetBackdrop, SheetClose, SheetDescription, SheetFooter, SheetHeader, SheetPanel, SheetPopup, SheetPortal, SheetTitle, SheetTrigger, SheetViewport, Textarea, Tooltip, TooltipCreateHandle, TooltipPopup, TooltipProvider, TooltipTrigger, cardLinkClassName, getReactRendererConformance, navigationMenuTriggerStyle, reactRendererConformance, scrollableListControlClassNames, selectTriggerDefaultClassName, useAutocompleteFilter, useButtonGroupContext, useCardCursor };
2677
- //# sourceMappingURL=chunk-GDUMA6FI.js.map
2678
- //# sourceMappingURL=chunk-GDUMA6FI.js.map
2844
+ export { AlertDialog, AlertDialogAction, AlertDialogBackdrop, AlertDialogCancel, AlertDialogClose, AlertDialogCreateHandle, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogPopup, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertDialogViewport, Autocomplete, AutocompleteClear, AutocompleteCollection, AutocompleteEmpty, AutocompleteGroup, AutocompleteGroupLabel, AutocompleteInput, AutocompleteItem, AutocompleteList, AutocompletePopup, AutocompleteRow, AutocompleteSeparator, AutocompleteStatus, AutocompleteTrigger, AutocompleteValue, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, ButtonGroup, ButtonGroupProvider, ButtonGroupSeparator, ButtonGroupText, Card, CardAction, CardContent, CardCursorLabel, CardDescription, CardFooter, CardHeader, CardLabel, CardMedia, CardMediaOverlay, CardMediaOverlayBottom, CardMediaOverlayIconButton, CardMediaOverlayImage, CardMediaOverlayScrim, CardMediaOverlayTopRight, CardTags, CardTitle, Command, CommandCollection, CommandCreateHandle, CommandDialog, CommandDialogBackdrop, CommandDialogPopup, CommandDialogPortal, CommandDialogTrigger, CommandDialogViewport, CommandEmpty, CommandFooter, CommandGroup, CommandGroupLabel, CommandInput, CommandItem, CommandList, CommandPanel, CommandSeparator, CommandShortcut, Dialog, DialogBackdrop, DialogClose, DialogCreateHandle, DialogDescription, DialogFooter, DialogHeader, DialogPanel, DialogPopup, DialogPortal, DialogTitle, DialogTrigger, DialogViewport, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuPositioner, NavigationMenuTrigger, NavigationMenuViewport, Progress, ProgressIndicator, ProgressLabel, ProgressTrack, ProgressValue, ScrollableList, Select, SelectContent, SelectGroup, SelectGroupLabel, SelectItem, SelectPopup, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetBackdrop, SheetClose, SheetDescription, SheetFooter, SheetHeader, SheetPanel, SheetPopup, SheetPortal, SheetTitle, SheetTrigger, SheetViewport, Textarea, Tooltip, TooltipCreateHandle, TooltipPopup, TooltipProvider, TooltipTrigger, cardLinkClassName, getReactRendererConformance, mergeRefs, navigationMenuTriggerStyle, reactRendererConformance, scrollableListControlClassNames, selectTriggerDefaultClassName, useAutocompleteFilter, useButtonGroupContext, useCardCursor };
2845
+ //# sourceMappingURL=chunk-RLF45GBS.js.map
2846
+ //# sourceMappingURL=chunk-RLF45GBS.js.map