@astryxdesign/core 0.2.0-canary.ef849b1 → 0.2.0-canary.ef91556

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 (101) hide show
  1. package/README.md +5 -3
  2. package/dist/AvatarGroup/AvatarGroup.d.ts.map +1 -1
  3. package/dist/AvatarGroup/AvatarGroup.js +3 -7
  4. package/dist/Carousel/Carousel.d.ts +53 -2
  5. package/dist/Carousel/Carousel.d.ts.map +1 -1
  6. package/dist/Carousel/Carousel.js +81 -14
  7. package/dist/Carousel/index.d.ts +1 -1
  8. package/dist/Carousel/index.d.ts.map +1 -1
  9. package/dist/CommandPalette/CommandPaletteInput.d.ts +1 -1
  10. package/dist/CommandPalette/CommandPaletteInput.d.ts.map +1 -1
  11. package/dist/CommandPalette/CommandPaletteInput.js +3 -1
  12. package/dist/ComplexSelector/ComplexSelector.d.ts +108 -0
  13. package/dist/ComplexSelector/ComplexSelector.d.ts.map +1 -0
  14. package/dist/ComplexSelector/ComplexSelector.js +316 -0
  15. package/dist/ComplexSelector/index.d.ts +7 -0
  16. package/dist/ComplexSelector/index.d.ts.map +1 -0
  17. package/dist/ComplexSelector/index.js +10 -0
  18. package/dist/ContextMenu/ContextMenu.d.ts +1 -1
  19. package/dist/ContextMenu/ContextMenu.d.ts.map +1 -1
  20. package/dist/ContextMenu/ContextMenu.js +13 -4
  21. package/dist/DropdownMenu/DropdownMenu.d.ts.map +1 -1
  22. package/dist/DropdownMenu/DropdownMenu.js +20 -17
  23. package/dist/Icon/globalIconRegistry.d.ts +42 -2
  24. package/dist/Icon/globalIconRegistry.d.ts.map +1 -1
  25. package/dist/Icon/globalIconRegistry.js +49 -1
  26. package/dist/Icon/index.d.ts +2 -2
  27. package/dist/Icon/index.d.ts.map +1 -1
  28. package/dist/Icon/index.js +1 -1
  29. package/dist/Markdown/Markdown.d.ts.map +1 -1
  30. package/dist/Markdown/Markdown.js +31 -9
  31. package/dist/MultiSelector/MultiSelector.d.ts +12 -3
  32. package/dist/MultiSelector/MultiSelector.d.ts.map +1 -1
  33. package/dist/MultiSelector/MultiSelector.js +99 -20
  34. package/dist/Popover/Popover.d.ts +19 -2
  35. package/dist/Popover/Popover.d.ts.map +1 -1
  36. package/dist/Popover/Popover.js +4 -0
  37. package/dist/Selector/Selector.d.ts +11 -2
  38. package/dist/Selector/Selector.d.ts.map +1 -1
  39. package/dist/Selector/Selector.js +99 -20
  40. package/dist/Timestamp/Timestamp.d.ts +4 -1
  41. package/dist/Timestamp/Timestamp.d.ts.map +1 -1
  42. package/dist/Timestamp/Timestamp.js +76 -5
  43. package/dist/Timestamp/formatInstant.d.ts +3 -3
  44. package/dist/Timestamp/formatInstant.d.ts.map +1 -1
  45. package/dist/Timestamp/formatInstant.js +2 -2
  46. package/dist/Timestamp/tooltipEntries.d.ts +3 -2
  47. package/dist/Timestamp/tooltipEntries.d.ts.map +1 -1
  48. package/dist/Timestamp/tooltipEntries.js +3 -2
  49. package/dist/astryx.css +6 -1
  50. package/dist/astryx.umd.js +50 -50
  51. package/dist/astryx.umd.js.map +4 -4
  52. package/dist/hooks/useGridFocus.d.ts +8 -6
  53. package/dist/hooks/useGridFocus.d.ts.map +1 -1
  54. package/dist/hooks/useListFocus.d.ts +8 -7
  55. package/dist/hooks/useListFocus.d.ts.map +1 -1
  56. package/dist/hooks/useTreeFocus.d.ts.map +1 -1
  57. package/dist/hooks/useTreeFocus.js +13 -2
  58. package/dist/index.d.ts +1 -0
  59. package/dist/index.d.ts.map +1 -1
  60. package/dist/index.js +1 -0
  61. package/package.json +7 -2
  62. package/src/AvatarGroup/AvatarGroup.tsx +2 -6
  63. package/src/Carousel/Carousel.doc.mjs +7 -0
  64. package/src/Carousel/Carousel.test.tsx +232 -1
  65. package/src/Carousel/Carousel.tsx +143 -20
  66. package/src/Carousel/index.ts +1 -1
  67. package/src/CommandPalette/CommandPaletteInput.tsx +4 -0
  68. package/src/ComplexSelector/ComplexSelector.doc.mjs +179 -0
  69. package/src/ComplexSelector/ComplexSelector.test.tsx +156 -0
  70. package/src/ComplexSelector/ComplexSelector.tsx +429 -0
  71. package/src/ComplexSelector/index.ts +17 -0
  72. package/src/ContextMenu/ContextMenu.tsx +16 -4
  73. package/src/DropdownMenu/DropdownMenu.test.tsx +71 -0
  74. package/src/DropdownMenu/DropdownMenu.tsx +20 -17
  75. package/src/Icon/Icon.doc.mjs +1 -0
  76. package/src/Icon/globalIconRegistry.test.tsx +35 -0
  77. package/src/Icon/globalIconRegistry.tsx +68 -5
  78. package/src/Icon/index.ts +2 -0
  79. package/src/Markdown/Markdown.doc.mjs +80 -0
  80. package/src/Markdown/Markdown.test.tsx +92 -0
  81. package/src/Markdown/Markdown.tsx +93 -65
  82. package/src/Markdown/parser.perf.test.ts +47 -35
  83. package/src/MultiSelector/MultiSelector.doc.mjs +32 -7
  84. package/src/MultiSelector/MultiSelector.test.tsx +186 -0
  85. package/src/MultiSelector/MultiSelector.tsx +188 -48
  86. package/src/Popover/Popover.doc.mjs +28 -0
  87. package/src/Popover/Popover.test.tsx +41 -0
  88. package/src/Popover/Popover.tsx +24 -1
  89. package/src/Selector/Selector.doc.mjs +25 -5
  90. package/src/Selector/Selector.test.tsx +163 -0
  91. package/src/Selector/Selector.tsx +187 -48
  92. package/src/Timestamp/Timestamp.doc.mjs +2 -2
  93. package/src/Timestamp/Timestamp.test.tsx +131 -0
  94. package/src/Timestamp/Timestamp.tsx +91 -8
  95. package/src/Timestamp/formatInstant.ts +3 -4
  96. package/src/Timestamp/tooltipEntries.ts +3 -2
  97. package/src/hooks/useGridFocus.ts +8 -6
  98. package/src/hooks/useListFocus.ts +8 -7
  99. package/src/hooks/useTreeFocus.test.tsx +53 -1
  100. package/src/hooks/useTreeFocus.ts +13 -2
  101. package/src/index.ts +1 -0
package/README.md CHANGED
@@ -75,10 +75,12 @@ astryx gap-report # report a missing capability
75
75
 
76
76
  ## Quick Start
77
77
 
78
+ Astryx requires **React 19** or later (`react` and `react-dom` >= 19.0.0 are peer dependencies).
79
+
78
80
  Install Astryx and a theme:
79
81
 
80
82
  ```bash
81
- npm install @astryxdesign/core @astryxdesign/theme-neutral
83
+ npm install @astryxdesign/core @astryxdesign/theme-neutral @stylexjs/stylex
82
84
  ```
83
85
 
84
86
  Then pick your setup below based on your framework and styling approach.
@@ -226,7 +228,7 @@ export default function Page() {
226
228
  Use the pre-built dist alongside StyleX for your own styles.
227
229
 
228
230
  ```bash
229
- npm install @astryxdesign/core @astryxdesign/theme-neutral
231
+ npm install @astryxdesign/core @astryxdesign/theme-neutral @stylexjs/stylex
230
232
  ```
231
233
 
232
234
  **`src/app/globals.css`**
@@ -242,7 +244,7 @@ Providers and layout are the same as the Tailwind example (use `@astryxdesign/th
242
244
  ### Vite
243
245
 
244
246
  ```bash
245
- npm install @astryxdesign/core @astryxdesign/theme-neutral
247
+ npm install @astryxdesign/core @astryxdesign/theme-neutral @stylexjs/stylex
246
248
  ```
247
249
 
248
250
  Same CSS imports and providers as above. No build plugins needed; Astryx ships pre-built.
@@ -1 +1 @@
1
- {"version":3,"file":"AvatarGroup.d.ts","sourceRoot":"","sources":["../../src/AvatarGroup/AvatarGroup.tsx"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAA2B,KAAK,SAAS,EAAC,MAAM,OAAO,CAAC;AAC/D,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAc,KAAK,UAAU,EAAC,MAAM,WAAW,CAAC;AAavD,MAAM,WAAW,gBAAiB,SAAQ,SAAS,CAAC,cAAc,CAAC;IACjE,yCAAyC;IACzC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IAChC;;;OAGG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AASD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,WAAW,CAAC,EAC1B,QAAQ,EACR,IAAW,EACX,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,kBAAkB,EAChC,kBAAkB,EAAE,wBAAwB,EAC5C,SAAS,EACT,OAAO,EACP,MAAM,EACN,SAAS,EACT,KAAK,EACL,GAAG,EACH,GAAG,KAAK,EACT,EAAE,gBAAgB,GAAG,SAAS,CAuE9B;yBApFe,WAAW"}
1
+ {"version":3,"file":"AvatarGroup.d.ts","sourceRoot":"","sources":["../../src/AvatarGroup/AvatarGroup.tsx"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAA2B,KAAK,SAAS,EAAC,MAAM,OAAO,CAAC;AAC/D,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAc,KAAK,UAAU,EAAC,MAAM,WAAW,CAAC;AAavD,MAAM,WAAW,gBAAiB,SAAQ,SAAS,CAAC,cAAc,CAAC;IACjE,yCAAyC;IACzC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IAChC;;;OAGG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AASD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,WAAW,CAAC,EAC1B,QAAQ,EACR,IAAW,EACX,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,kBAAkB,EAChC,kBAAkB,EAAE,wBAAwB,EAC5C,SAAS,EACT,OAAO,EACP,MAAM,EACN,SAAS,EACT,KAAK,EACL,GAAG,EACH,GAAG,KAAK,EACT,EAAE,gBAAgB,GAAG,SAAS,CAmE9B;yBAhFe,WAAW"}
@@ -87,11 +87,9 @@ export function AvatarGroup({
87
87
  }), [size, overlap, numericSize]);
88
88
 
89
89
  // The keyboard hint and roving tab stop only make sense once the group has
90
- // interactive children. Detect their presence (and the writing direction for
91
- // RTL-correct arrow navigation) from the rendered DOM after commit, matching
92
- // how the codebase reads direction elsewhere (`getComputedStyle(el).direction`).
90
+ // interactive children. Detect their presence from the rendered DOM after
91
+ // commit. (Arrow-key direction is auto-detected inside useListFocus.)
93
92
  const [hasInteractiveItems, setHasInteractiveItems] = useState(false);
94
- const [isRtl, setIsRtl] = useState(false);
95
93
 
96
94
  // Single tab stop + roving arrow focus over the group's interactive items.
97
95
  // `itemSelector` targets the shared `[data-avatar-item]` marker stamped on
@@ -105,8 +103,7 @@ export function AvatarGroup({
105
103
  } = useListFocus({
106
104
  itemSelector: '[data-avatar-item]',
107
105
  orientation: 'horizontal',
108
- hasRovingTabIndex: true,
109
- isRtl
106
+ hasRovingTabIndex: true
110
107
  });
111
108
  useIsomorphicLayoutEffect(() => {
112
109
  const root = listRef.current;
@@ -114,7 +111,6 @@ export function AvatarGroup({
114
111
  return;
115
112
  }
116
113
  setHasInteractiveItems(root.querySelector('[data-avatar-item]') != null);
117
- setIsRtl(getComputedStyle(root).direction === 'rtl');
118
114
  });
119
115
  const hintId = useId();
120
116
  const describedBy = [ariaDescribedByFromProps, hasInteractiveItems ? hintId : null].filter(Boolean).join(' ') || undefined;
@@ -5,7 +5,9 @@
5
5
  * @position Horizontal scroll container with fade-edge overflow indication,
6
6
  * optional prev/next buttons on the top layer, scroll-snap, a 1px
7
7
  * visual bleed allowance for child selection indicators, and Shift + wheel
8
- * mapping so mouse users can scroll horizontally. Exposes APG
8
+ * mapping so mouse users can scroll horizontally. Supports optional
9
+ * wrap-around looping and an imperative handle (handleRef) for programmatic
10
+ * scroll control. Exposes APG
9
11
  * carousel semantics: the root is a labelled region with
10
12
  * aria-roledescription="carousel" and each item wrapper is a group with
11
13
  * aria-roledescription="slide" named "Slide N of M".
@@ -18,8 +20,47 @@
18
20
  import { type ReactNode } from 'react';
19
21
  import type { BaseProps } from '../BaseProps';
20
22
  import type { SpacingStep } from '../utils/types';
23
+ /**
24
+ * Imperative control surface for the Carousel, accessed via the `handleRef`
25
+ * prop. Methods drive the same native-scroll machinery as the built-in
26
+ * buttons, so they respect RTL, reduced-motion, and `hasLoop`.
27
+ */
28
+ export interface CarouselHandle {
29
+ /**
30
+ * Scroll forward by roughly one viewport. With `hasLoop`, wraps to the
31
+ * start once the end is reached.
32
+ */
33
+ scrollNext(): void;
34
+ /**
35
+ * Scroll backward by roughly one viewport. With `hasLoop`, wraps to the
36
+ * end once the start is reached.
37
+ */
38
+ scrollPrev(): void;
39
+ /**
40
+ * Scroll the item at the given 0-based index to the start edge. The index
41
+ * is clamped to the item range, and only the carousel scrolls — the page
42
+ * position is left untouched.
43
+ */
44
+ scrollTo(index: number): void;
45
+ /**
46
+ * Whether there is scrollable content past the trailing edge. With
47
+ * `hasLoop`, returns true whenever the content overflows, since wrapping
48
+ * is always available. Reads live state — safe to call in an event handler.
49
+ */
50
+ canScrollNext(): boolean;
51
+ /**
52
+ * Whether there is scrollable content past the leading edge. With
53
+ * `hasLoop`, returns true whenever the content overflows. Reads live state.
54
+ */
55
+ canScrollPrev(): boolean;
56
+ }
21
57
  export interface CarouselProps extends BaseProps<HTMLDivElement> {
22
58
  ref?: React.Ref<HTMLDivElement>;
59
+ /**
60
+ * Imperative handle for programmatic scroll control. Exposes scrollNext,
61
+ * scrollPrev, scrollTo, and the canScrollNext/canScrollPrev queries.
62
+ */
63
+ handleRef?: React.Ref<CarouselHandle>;
23
64
  /** Carousel items — rendered in a horizontal scroll container. */
24
65
  children: ReactNode;
25
66
  /**
@@ -39,6 +80,16 @@ export interface CarouselProps extends BaseProps<HTMLDivElement> {
39
80
  * @default true
40
81
  */
41
82
  hasEdgeFade?: boolean;
83
+ /**
84
+ * Enable wrap-around scrolling. When the content overflows, pressing Next
85
+ * at the end scrolls back to the start, and Prev at the start scrolls to
86
+ * the end — for both the built-in buttons and the imperative handle. The
87
+ * navigation buttons stay visible at both edges instead of hiding, since a
88
+ * scroll is always available. Has no effect when the content fits without
89
+ * overflowing.
90
+ * @default false
91
+ */
92
+ hasLoop?: boolean;
42
93
  /**
43
94
  * Enable scroll-snap on items. Each direct child snaps to the start edge.
44
95
  * @default false
@@ -79,7 +130,7 @@ export interface CarouselProps extends BaseProps<HTMLDivElement> {
79
130
  * </Carousel>
80
131
  * ```
81
132
  */
82
- export declare function Carousel({ ref, children, gap, hasButtons, hasEdgeFade, hasSnap, padding, 'aria-label': ariaLabelFromProps, xstyle, className, style, 'data-testid': testId, ...htmlProps }: CarouselProps): import("react").JSX.Element;
133
+ export declare function Carousel({ ref, handleRef, children, gap, hasButtons, hasEdgeFade, hasLoop, hasSnap, padding, 'aria-label': ariaLabelFromProps, xstyle, className, style, 'data-testid': testId, ...htmlProps }: CarouselProps): import("react").JSX.Element;
83
134
  export declare namespace Carousel {
84
135
  var displayName: string;
85
136
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Carousel.d.ts","sourceRoot":"","sources":["../../src/Carousel/Carousel.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACL,KAAK,SAAS,EAMf,MAAM,OAAO,CAAC;AAef,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAE5C,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAIhD,MAAM,WAAW,aAAc,SAAQ,SAAS,CAAC,cAAc,CAAC;IAC9D,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IAChC,kEAAkE;IAClE,QAAQ,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACpC;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;;OAKG;IACH,WAAW,CAAC,E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KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IACtC,kEAAkE;IAClE,QAAQ,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACpC;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AA+JD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,QAAQ,CAAC,EACvB,GAAG,EACH,SAAS,EACT,QAAQ,EACR,GAAO,EACP,UAAiB,EACjB,WAAkB,EAClB,OAAe,EACf,OAAe,EACf,OAAO,EACP,YAAY,EAAE,kBAAkB,EAChC,MAAM,EACN,SAAS,EACT,KAAK,EACL,aAAa,EAAE,MAAM,EACrB,GAAG,SAAS,EACb,EAAE,aAAa,+BAiRf;yBAjSe,QAAQ"}
@@ -9,7 +9,9 @@
9
9
  * @position Horizontal scroll container with fade-edge overflow indication,
10
10
  * optional prev/next buttons on the top layer, scroll-snap, a 1px
11
11
  * visual bleed allowance for child selection indicators, and Shift + wheel
12
- * mapping so mouse users can scroll horizontally. Exposes APG
12
+ * mapping so mouse users can scroll horizontally. Supports optional
13
+ * wrap-around looping and an imperative handle (handleRef) for programmatic
14
+ * scroll control. Exposes APG
13
15
  * carousel semantics: the root is a labelled region with
14
16
  * aria-roledescription="carousel" and each item wrapper is a group with
15
17
  * aria-roledescription="slide" named "Slide N of M".
@@ -19,7 +21,7 @@
19
21
  * - /apps/storybook/stories/Carousel.stories.tsx
20
22
  * - /packages/cli/assets/templates/blocks/components/Carousel/ (showcase blocks)
21
23
  */
22
- import { useRef, useCallback, useEffect, Children, isValidElement } from 'react';
24
+ import { useRef, useCallback, useEffect, useImperativeHandle, Children, isValidElement } from 'react';
23
25
  import * as stylex from '@stylexjs/stylex';
24
26
  import "../theme/tokens.stylex.js";
25
27
  import { spacingVars, colorVars, shadowVars, radiusVars, durationVars, easeVars } from "../theme/tokens.stylex.js";
@@ -31,6 +33,12 @@ import { isRtlElement } from "../hooks/isRtlElement.js";
31
33
  import { mergeProps, mergeRefs, rtlStyles } from "../utils/index.js";
32
34
  import { themeProps } from "../utils/themeProps.js";
33
35
  import { useTranslator } from "../i18n/index.js";
36
+
37
+ /**
38
+ * Imperative control surface for the Carousel, accessed via the `handleRef`
39
+ * prop. Methods drive the same native-scroll machinery as the built-in
40
+ * buttons, so they respect RTL, reduced-motion, and `hasLoop`.
41
+ */
34
42
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
35
43
  // =============================================================================
36
44
  // Styles
@@ -203,10 +211,12 @@ const paddingStyles = {
203
211
  */
204
212
  export function Carousel({
205
213
  ref,
214
+ handleRef,
206
215
  children,
207
216
  gap = 1,
208
217
  hasButtons = true,
209
218
  hasEdgeFade = true,
219
+ hasLoop = false,
210
220
  hasSnap = false,
211
221
  padding,
212
222
  'aria-label': ariaLabelFromProps,
@@ -222,7 +232,8 @@ export function Carousel({
222
232
  const {
223
233
  scrollRef,
224
234
  overflowStart,
225
- overflowEnd
235
+ overflowEnd,
236
+ hasOverflow
226
237
  } = useScrollOverflow();
227
238
 
228
239
  // Children.toArray drops null/undefined/boolean children and assigns
@@ -277,22 +288,78 @@ export function Carousel({
277
288
  if (!el) {
278
289
  return;
279
290
  }
280
- const firstChild = el.firstElementChild;
281
- const itemWidth = firstChild ? firstChild.offsetWidth : 0;
282
- const amount = el.clientWidth - itemWidth * 0.5;
283
291
  // Respect the user's reduced-motion preference — mirrors the CSS
284
292
  // scroll-behavior override so button-driven scrolling doesn't animate
285
293
  // for users who opted out of motion.
286
294
  const prefersReducedMotion = typeof window !== 'undefined' && typeof window.matchMedia === 'function' && window.matchMedia('(prefers-reduced-motion: reduce)').matches;
295
+ const behavior = prefersReducedMotion ? 'auto' : 'smooth';
296
+ // Under RTL the scroll axis is inverted (start is scrollLeft 0, the end
297
+ // is negative), so flip the physical delta sign.
298
+ const rtlSign = isRtlElement(el) ? -1 : 1;
299
+
300
+ // Wrap-around: when looping over overflowing content, a press that would
301
+ // run past an edge jumps to the opposite edge instead. Overshoot by the
302
+ // full scroll width in the opposite logical direction and let the browser
303
+ // clamp to the far edge — this reuses the same RTL sign convention as a
304
+ // normal scroll, so it stays direction-correct without special-casing.
305
+ if (hasLoop && hasOverflow) {
306
+ const atEnd = direction === 1 && !overflowEnd;
307
+ const atStart = direction === -1 && !overflowStart;
308
+ if (atEnd || atStart) {
309
+ el.scrollBy({
310
+ left: rtlSign * -direction * el.scrollWidth,
311
+ behavior
312
+ });
313
+ return;
314
+ }
315
+ }
316
+ const firstChild = el.firstElementChild;
317
+ const itemWidth = firstChild ? firstChild.offsetWidth : 0;
318
+ const amount = el.clientWidth - itemWidth * 0.5;
287
319
  el.scrollBy({
288
320
  // `direction` is the logical intent (-1 = toward content start, +1 =
289
- // toward content end). Under RTL the scroll axis is inverted (start is
290
- // scrollLeft 0, the end is negative), so flip the physical delta sign.
291
- left: (isRtlElement(el) ? -1 : 1) * direction * Math.max(amount, itemWidth),
321
+ // toward content end).
322
+ left: rtlSign * direction * Math.max(amount, itemWidth),
323
+ behavior
324
+ });
325
+ }, [hasLoop, hasOverflow, overflowStart, overflowEnd]);
326
+ const scrollToIndex = useCallback(index => {
327
+ const el = scrollElRef.current;
328
+ const items = el?.children;
329
+ if (!el || !items || items.length === 0) {
330
+ return;
331
+ }
332
+ const clamped = Math.max(0, Math.min(index, items.length - 1));
333
+ const target = items[clamped];
334
+ const prefersReducedMotion = typeof window !== 'undefined' && typeof window.matchMedia === 'function' && window.matchMedia('(prefers-reduced-motion: reduce)').matches;
335
+ // Bring the item to the start edge by scrolling the container by the
336
+ // measured gap between the item and the container edge. Using scrollBy
337
+ // (not scrollIntoView) keeps the scroll contained to the carousel and
338
+ // never moves ancestors or the page. In RTL the start edge is the right
339
+ // edge, so align the trailing edges instead of the leading ones.
340
+ const containerRect = el.getBoundingClientRect();
341
+ const itemRect = target.getBoundingClientRect();
342
+ const delta = isRtlElement(el) ? itemRect.right - containerRect.right : itemRect.left - containerRect.left;
343
+ el.scrollBy({
344
+ left: delta,
292
345
  behavior: prefersReducedMotion ? 'auto' : 'smooth'
293
346
  });
294
347
  }, []);
295
- const fadeStyle = hasEdgeFade ? overflowStart && overflowEnd ? styles.fadeBoth : overflowStart ? styles.fadeStart : overflowEnd ? styles.fadeEnd : null : null;
348
+ useImperativeHandle(handleRef, () => ({
349
+ scrollNext: () => scrollBy(1),
350
+ scrollPrev: () => scrollBy(-1),
351
+ scrollTo: index => scrollToIndex(index),
352
+ // With loop, either direction is reachable whenever the content
353
+ // overflows; otherwise reflect the live per-edge overflow state.
354
+ canScrollNext: () => hasLoop ? hasOverflow : overflowEnd,
355
+ canScrollPrev: () => hasLoop ? hasOverflow : overflowStart
356
+ }), [scrollBy, scrollToIndex, hasLoop, hasOverflow, overflowStart, overflowEnd]);
357
+
358
+ // With loop, the buttons stay reachable at both edges as long as there's
359
+ // something to scroll; without loop they follow the per-edge overflow state.
360
+ const canScrollStart = hasLoop && hasOverflow ? true : overflowStart;
361
+ const canScrollEnd = hasLoop && hasOverflow ? true : overflowEnd;
362
+ const fadeStyle = hasEdgeFade ? hasLoop && hasOverflow || overflowStart && overflowEnd ? styles.fadeBoth : overflowStart ? styles.fadeStart : overflowEnd ? styles.fadeEnd : null : null;
296
363
 
297
364
  // Self-authored position styles (positioning: 'custom' below): a cover
298
365
  // centered on the anchor, sized to it — direction-neutral by construction.
@@ -341,7 +408,7 @@ export function Carousel({
341
408
  1: {
342
409
  className: "x78zum5 x6s0dn4 xl56j7k x1prclbq xjspbzw x14hfi27 x19991ni xuedmi6 xlr8y92 xuuh30 x1nyx83j xg01cxk x47corl"
343
410
  }
344
- }[!!!overflowStart << 0],
411
+ }[!!!canScrollStart << 0],
345
412
  children: /*#__PURE__*/_jsx(Button, {
346
413
  icon: /*#__PURE__*/_jsx("span", {
347
414
  ...stylex.props(rtlStyles.mirror),
@@ -359,7 +426,7 @@ export function Carousel({
359
426
  // tab order and a11y tree while it's visually hidden, so
360
427
  // keyboard users don't land on an invisible control.
361
428
  ,
362
- isDisabled: !overflowStart,
429
+ isDisabled: !canScrollStart,
363
430
  onClick: () => scrollBy(-1),
364
431
  xstyle: styles.buttonRadiusOverride
365
432
  })
@@ -371,7 +438,7 @@ export function Carousel({
371
438
  1: {
372
439
  className: "x78zum5 x6s0dn4 xl56j7k x1prclbq xjspbzw x14hfi27 x19991ni xuedmi6 xlr8y92 xitnhlw x36dvrd xg01cxk x47corl"
373
440
  }
374
- }[!!!overflowEnd << 0],
441
+ }[!!!canScrollEnd << 0],
375
442
  children: /*#__PURE__*/_jsx(Button, {
376
443
  icon: /*#__PURE__*/_jsx("span", {
377
444
  ...stylex.props(rtlStyles.mirror),
@@ -387,7 +454,7 @@ export function Carousel({
387
454
  // See "Scroll left" — disabled while visually hidden so the
388
455
  // button stays mounted but out of the tab order / a11y tree.
389
456
  ,
390
- isDisabled: !overflowEnd,
457
+ isDisabled: !canScrollEnd,
391
458
  onClick: () => scrollBy(1),
392
459
  xstyle: styles.buttonRadiusOverride
393
460
  })
@@ -5,5 +5,5 @@
5
5
  * @position Public entry point for the Carousel module
6
6
  */
7
7
  export { Carousel } from './Carousel';
8
- export type { CarouselProps } from './Carousel';
8
+ export type { CarouselProps, CarouselHandle } from './Carousel';
9
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Carousel/index.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AAEH,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AACpC,YAAY,EAAC,aAAa,EAAC,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Carousel/index.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AAEH,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AACpC,YAAY,EAAC,aAAa,EAAE,cAAc,EAAC,MAAM,YAAY,CAAC"}
@@ -67,7 +67,7 @@ export interface CommandPaletteInputProps extends Omit<BaseProps<HTMLInputElemen
67
67
  * </CommandPalette>
68
68
  * ```
69
69
  */
70
- export declare function CommandPaletteInput({ value: controlledValue, onValueChange, placeholder: placeholderFromProps, label, hasAutoFocus, endContent, onChange, onKeyDown, ref, xstyle, ...props }: CommandPaletteInputProps): import("react").JSX.Element;
70
+ export declare function CommandPaletteInput({ value: controlledValue, onValueChange, placeholder: placeholderFromProps, label, hasAutoFocus, endContent, onChange, onKeyDown, ref, xstyle, className, style, ...props }: CommandPaletteInputProps): import("react").JSX.Element;
71
71
  export declare namespace CommandPaletteInput {
72
72
  var displayName: string;
73
73
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CommandPaletteInput.d.ts","sourceRoot":"","sources":["../../src/CommandPalette/CommandPaletteInput.tsx"],"names":[],"mappings":"AAGA;;;;;;;;;GASG;AAEH,OAAO,EAAiC,KAAK,SAAS,EAAC,MAAM,OAAO,CAAC;AAarE,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AA2D5C,MAAM,WAAW,wBAAyB,SAAQ,IAAI,CACpD,SAAS,CAAC,gBAAgB,CAAC,EAC3B,UAAU,CACX;IACC,iEAAiE;IACjE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;IAElC;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAExC;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;;;OAIG;IACH,UAAU,CAAC,EAAE,SAAS,CAAC;IAEvB,qDAAqD;IACrD,QAAQ,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;CACvD;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,KAAK,EAAE,eAAe,EACtB,aAAa,EACb,WAAW,EAAE,oBAAoB,EACjC,KAAK,EACL,YAAmB,EACnB,UAAU,EACV,QAAQ,EACR,SAAS,EACT,GAAG,EACH,MAAM,EACN,GAAG,KAAK,EACT,EAAE,wBAAwB,+BAqF1B;yBAjGe,mBAAmB"}
1
+ {"version":3,"file":"CommandPaletteInput.d.ts","sourceRoot":"","sources":["../../src/CommandPalette/CommandPaletteInput.tsx"],"names":[],"mappings":"AAGA;;;;;;;;;GASG;AAEH,OAAO,EAAiC,KAAK,SAAS,EAAC,MAAM,OAAO,CAAC;AAarE,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AA2D5C,MAAM,WAAW,wBAAyB,SAAQ,IAAI,CACpD,SAAS,CAAC,gBAAgB,CAAC,EAC3B,UAAU,CACX;IACC,iEAAiE;IACjE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;IAElC;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAExC;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;;;OAIG;IACH,UAAU,CAAC,EAAE,SAAS,CAAC;IAEvB,qDAAqD;IACrD,QAAQ,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;CACvD;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,KAAK,EAAE,eAAe,EACtB,aAAa,EACb,WAAW,EAAE,oBAAoB,EACjC,KAAK,EACL,YAAmB,EACnB,UAAU,EACV,QAAQ,EACR,SAAS,EACT,GAAG,EACH,MAAM,EACN,SAAS,EACT,KAAK,EACL,GAAG,KAAK,EACT,EAAE,wBAAwB,+BAuF1B;yBArGe,mBAAmB"}
@@ -65,6 +65,8 @@ export function CommandPaletteInput({
65
65
  onKeyDown,
66
66
  ref,
67
67
  xstyle,
68
+ className,
69
+ style,
68
70
  ...props
69
71
  }) {
70
72
  const t = useTranslator();
@@ -100,7 +102,7 @@ export function CommandPaletteInput({
100
102
  ctx?.onKeyDown(e);
101
103
  }, [ctx, onKeyDown]);
102
104
  return /*#__PURE__*/_jsxs("div", {
103
- ...mergeProps(themeProps('command-palette-input'), stylex.props(styles.wrapper, xstyle)),
105
+ ...mergeProps(themeProps('command-palette-input'), stylex.props(styles.wrapper, xstyle), className, style),
104
106
  children: [/*#__PURE__*/_jsx("span", {
105
107
  ...{
106
108
  className: "x78zum5 x6s0dn4 x2lah0s xv1l7n4"
@@ -0,0 +1,108 @@
1
+ /**
2
+ * @file ComplexSelector.tsx
3
+ * @input Uses React, StyleX, Field, usePopover
4
+ * @output Exports ComplexSelector component for custom selector surfaces
5
+ * @position Core implementation; consumed by index.ts
6
+ *
7
+ * SYNC: When modified, update:
8
+ * - /packages/core/src/ComplexSelector/ComplexSelector.doc.mjs
9
+ * - /packages/core/src/ComplexSelector/ComplexSelector.test.tsx
10
+ * - /packages/core/src/ComplexSelector/index.ts
11
+ * - /apps/storybook/stories/ComplexSelector.stories.tsx
12
+ */
13
+ import React, { type ReactNode } from 'react';
14
+ import type { StyleXStyles } from '@stylexjs/stylex';
15
+ import type { BaseProps } from '../BaseProps';
16
+ import { type FieldStatusVariant } from '../Field';
17
+ import type { SizeValue } from '../utils/types';
18
+ export type ComplexSelectorSize = 'sm' | 'md' | 'lg';
19
+ export interface ComplexSelectorRenderState {
20
+ /** Whether the selector surface is open. */
21
+ isOpen: boolean;
22
+ /** Whether changeAction/isLoading is pending. */
23
+ isBusy: boolean;
24
+ /** ID of the trigger button. */
25
+ triggerId: string;
26
+ /** ID of the popup content container. */
27
+ contentId: string;
28
+ }
29
+ export interface ComplexSelectorStatus {
30
+ type: 'warning' | 'error' | 'success';
31
+ message?: string;
32
+ }
33
+ export interface ComplexSelectorProps<Value> extends Omit<BaseProps<HTMLDivElement>, 'children' | 'onChange'> {
34
+ /** Label text for accessibility and the field label. */
35
+ label: string;
36
+ /** Current controlled value. */
37
+ value: Value;
38
+ /** Called when custom content commits a new value. */
39
+ onChange?: (value: Value) => void;
40
+ /** Optional async action after onChange; drives optimistic UI. */
41
+ changeAction?: (value: Value) => void | Promise<void>;
42
+ /** Custom selector surface content rendered inside a dialog popover. */
43
+ children: (value: Value, onChange: (value: Value) => void, close: () => void, state: ComplexSelectorRenderState) => ReactNode;
44
+ /** Label/content shown in the closed trigger. */
45
+ triggerLabel?: ReactNode;
46
+ /** Placeholder shown when triggerLabel is omitted. */
47
+ placeholder?: ReactNode;
48
+ /** Whether to visually hide the field label. */
49
+ isLabelHidden?: boolean;
50
+ /** Helper text displayed below the label. */
51
+ description?: string;
52
+ /** Marks the field optional. */
53
+ isOptional?: boolean;
54
+ /** Marks the field required. */
55
+ isRequired?: boolean;
56
+ /** Disables the selector. */
57
+ isDisabled?: boolean;
58
+ /** Shows loading state on the trigger. */
59
+ isLoading?: boolean;
60
+ /** Validation status. */
61
+ status?: ComplexSelectorStatus;
62
+ /** Status placement. */
63
+ statusVariant?: FieldStatusVariant;
64
+ /** Tooltip text displayed next to the label. */
65
+ labelTooltip?: string;
66
+ /** Trigger and field size. */
67
+ size?: ComplexSelectorSize;
68
+ /** Width of the field. */
69
+ width?: SizeValue;
70
+ /** Popup placement. */
71
+ placement?: 'above' | 'below' | 'start' | 'end';
72
+ /** StyleX styles for the popup content container. */
73
+ contentXstyle?: StyleXStyles;
74
+ /** Test ID for the trigger container. */
75
+ 'data-testid'?: string;
76
+ }
77
+ /**
78
+ * A selector shell for rich, custom selection surfaces.
79
+ *
80
+ * ComplexSelector owns the field, trigger, popover, focus restore, and async
81
+ * change action flow. Consumers provide the dialog content as a render function,
82
+ * using the supplied `value`, `onChange`, and `close` helpers to compose the
83
+ * right accessible structure for the custom selector.
84
+ *
85
+ * @example
86
+ * ```
87
+ * <ComplexSelector
88
+ * label="Fruit"
89
+ * value={value}
90
+ * onChange={setValue}
91
+ * triggerLabel={`${value.fruit} ${value.ripeness}`}>
92
+ * {(value, onChange, close) => (
93
+ * <FruitGrid
94
+ * value={value}
95
+ * onChange={nextValue => {
96
+ * onChange(nextValue);
97
+ * close();
98
+ * }}
99
+ * />
100
+ * )}
101
+ * </ComplexSelector>
102
+ * ```
103
+ */
104
+ export declare function ComplexSelector<Value>({ label, value, onChange, changeAction, children, triggerLabel, placeholder: placeholderFromProps, isLabelHidden, description, isOptional, isRequired, isDisabled, isLoading, status, statusVariant, labelTooltip, size, width, placement, contentXstyle, xstyle, className, style, 'data-testid': testId, ...props }: ComplexSelectorProps<Value>): React.JSX.Element;
105
+ export declare namespace ComplexSelector {
106
+ var displayName: string;
107
+ }
108
+ //# sourceMappingURL=ComplexSelector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ComplexSelector.d.ts","sourceRoot":"","sources":["../../src/ComplexSelector/ComplexSelector.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,EAKZ,KAAK,SAAS,EACf,MAA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