@astryxdesign/core 0.6.1-canary.bf896f3 → 0.6.1-canary.c87f73f

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 (40) hide show
  1. package/dist/DateRangeInput/DateRangeInput.d.ts +3 -0
  2. package/dist/DateRangeInput/DateRangeInput.d.ts.map +1 -1
  3. package/dist/DateRangeInput/DateRangeInput.js +16 -9
  4. package/dist/Dialog/DialogHeader.d.ts +1 -1
  5. package/dist/Dialog/DialogHeader.d.ts.map +1 -1
  6. package/dist/Dialog/DialogHeader.js +10 -7
  7. package/dist/FileInput/FileInput.d.ts.map +1 -1
  8. package/dist/FileInput/FileInput.js +9 -3
  9. package/dist/Slider/Slider.d.ts.map +1 -1
  10. package/dist/Slider/Slider.js +5 -2
  11. package/dist/Spinner/Spinner.d.ts +1 -1
  12. package/dist/Spinner/Spinner.d.ts.map +1 -1
  13. package/dist/Spinner/Spinner.js +23 -15
  14. package/dist/astryx.css +2 -1
  15. package/locales/en.json +16 -0
  16. package/locales/pseudo.json +12 -0
  17. package/package.json +3 -3
  18. package/scripts/agent-doc-state.mjs +1 -1
  19. package/src/DateRangeInput/DateRangeInput.doc.mjs +35 -7
  20. package/src/DateRangeInput/DateRangeInput.spec.md +203 -0
  21. package/src/DateRangeInput/DateRangeInput.test.tsx +100 -4
  22. package/src/DateRangeInput/DateRangeInput.tsx +29 -20
  23. package/src/Dialog/Dialog.doc.mjs +3 -0
  24. package/src/Dialog/Dialog.spec.md +1 -1
  25. package/src/Dialog/DialogHeader.doc.mjs +38 -0
  26. package/src/Dialog/DialogHeader.test.tsx +49 -0
  27. package/src/Dialog/DialogHeader.tsx +23 -4
  28. package/src/Dialog/modules/DialogHeader.spec.md +152 -0
  29. package/src/FileInput/FileInput.doc.mjs +2 -0
  30. package/src/FileInput/FileInput.spec.md +199 -0
  31. package/src/FileInput/FileInput.test.tsx +14 -0
  32. package/src/FileInput/FileInput.tsx +13 -3
  33. package/src/Slider/Slider.doc.mjs +16 -0
  34. package/src/Slider/Slider.spec.md +61 -47
  35. package/src/Slider/Slider.test.tsx +18 -0
  36. package/src/Slider/Slider.tsx +12 -6
  37. package/src/Spinner/Spinner.doc.mjs +6 -3
  38. package/src/Spinner/Spinner.test.tsx +37 -0
  39. package/src/Spinner/Spinner.tsx +31 -14
  40. package/src/theme/derivedVarRegistry.test.ts +6 -4
@@ -119,6 +119,9 @@ export interface DateRangeInputProps extends Omit<BaseProps, 'onChange' | 'defau
119
119
  minRangeSpan?: number;
120
120
  /**
121
121
  * Preset date ranges shown as quick-select options beside the calendar.
122
+ * A preset is disabled when either endpoint violates `min`, `max`, or
123
+ * `dateConstraints`, or when its span violates `minRangeSpan` or
124
+ * `maxRangeSpan`.
122
125
  */
123
126
  presets?: ReadonlyArray<DateRangePreset>;
124
127
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"DateRangeInput.d.ts","sourceRoot":"","sources":["../../src/DateRangeInput/DateRangeInput.tsx"],"names":[],"mappings":"AAqCA,OAAO,EAGL,KAAK,WAAW,EAKhB,KAAK,kBAAkB,EACxB,MAAM,UAAU,CAAC;AAGlB,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,aAAa,EACnB,MAAM,aAAa,CAAC;AAIrB,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAU9C,YAAY,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AAE3C,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,SAAS,CAAC;CAC3B;AAED,MAAM,MAAM,kBAAkB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEpD,YAAY,EACV,WAAW,IAAI,oBAAoB,EACnC,eAAe,IAAI,wBAAwB,GAC5C,MAAM,UAAU,CAAC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;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,IAAI,CAAC,EAAE,kBAAkB,CAAC;IAE1B;;OAEG;IACH,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,kBAAkB,CAAC;IAEnC;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,cAAc,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IAEvB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,SAAS,GAAG,aAAa,CAAC;CAC1C;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,cAAc,CAAC,EAC7B,KAAK,EACL,aAAqB,EACrB,WAAW,EACX,UAAkB,EAClB,UAAkB,EAClB,UAAkB,EAClB,eAAe,EACf,KAAK,EACL,QAAQ,EACR,YAAY,EACZ,SAAiB,EACjB,GAAG,EACH,GAAG,EACH,eAAe,EACf,YAAY,EACZ,YAAY,EACZ,OAAO,EACP,QAAe,EACf,WAAW,EAAE,oBAAoB,EACjC,IAAI,EAAE,QAAQ,EACd,MAAM,EACN,aAA0B,EAC1B,YAAY,EACZ,cAAkB,EAClB,YAAY,EACZ,KAAK,EACL,MAAM,EACN,SAAS,EACT,KAAK,EACL,GAAG,EACH,GAAG,IAAI,EACR,EAAE,mBAAmB,+BA0RrB;yBA1Te,cAAc"}
1
+ {"version":3,"file":"DateRangeInput.d.ts","sourceRoot":"","sources":["../../src/DateRangeInput/DateRangeInput.tsx"],"names":[],"mappings":"AAqCA,OAAO,EAGL,KAAK,WAAW,EAKhB,KAAK,kBAAkB,EACxB,MAAM,UAAU,CAAC;AAGlB,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,aA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jC,IAAI,EAAE,QAAQ,EACd,MAAM,EACN,aAA0B,EAC1B,YAAY,EACZ,cAAkB,EAClB,YAAY,EACZ,KAAK,EACL,MAAM,EACN,SAAS,EACT,KAAK,EACL,GAAG,EACH,GAAG,IAAI,EACR,EAAE,mBAAmB,+BA+RrB;yBA/Te,cAAc"}
@@ -24,6 +24,7 @@ import { Field, InputClearButton, inputWrapperStyles, inputStatusBorderStyles, i
24
24
  import { Icon } from "../Icon/index.js";
25
25
  import { Spinner } from "../Spinner/index.js";
26
26
  import { Calendar } from "../Calendar/index.js";
27
+ import { useCalendarConstraints } from "../Calendar/hooks/index.js";
27
28
  import { usePopover } from "../Popover/index.js";
28
29
  import { useTooltip } from "../Tooltip/index.js";
29
30
  import { mergeProps } from "../utils/index.js";
@@ -232,6 +233,13 @@ export function DateRangeInput({
232
233
  dialogLabel: t('@astryx.dateRangeInput.dialogLabel'),
233
234
  closeButtonLabel: t('@astryx.dateInput.closeCalendar')
234
235
  });
236
+ const {
237
+ isDateDisabled
238
+ } = useCalendarConstraints({
239
+ min,
240
+ max,
241
+ dateConstraints
242
+ });
235
243
  const fireChange = useCallback(newValue => {
236
244
  if (isBusy) {
237
245
  return;
@@ -257,10 +265,6 @@ export function DateRangeInput({
257
265
  fireChange(range);
258
266
  popover.hide();
259
267
  }, [fireChange, popover]);
260
- const handlePresetClick = useCallback(preset => {
261
- fireChange(preset.getRange());
262
- popover.hide();
263
- }, [fireChange, popover]);
264
268
  const handleClear = useCallback(e => {
265
269
  e.stopPropagation();
266
270
  fireChange(null);
@@ -362,13 +366,13 @@ export function DateRangeInput({
362
366
  children: [presets && presets.length > 0 && /*#__PURE__*/_jsx("div", {
363
367
  role: "group",
364
368
  "aria-label": t('@astryx.dateRangeInput.presetDateRanges'),
365
- ...{
369
+ ...mergeProps(themeProps('date-range-input-presets'), {
366
370
  className: "x78zum5 xdt5ytf xzye2dw x1b2ylru xw8tdv1 x18b5jzi xl0t3rv x1d77m7x"
367
- },
371
+ }),
368
372
  children: presets.map(preset => {
369
373
  const presetRange = preset.getRange();
370
374
  const isActive = isRangeEqual(value, presetRange);
371
- const isPresetDisabled = !isRangeWithinSpan(presetRange, maxRangeSpan, minRangeSpan);
375
+ const isPresetDisabled = !isRangeWithinSpan(presetRange, maxRangeSpan, minRangeSpan) || isDateDisabled(plainDateFromISO(presetRange.start)) || isDateDisabled(plainDateFromISO(presetRange.end));
372
376
  return /*#__PURE__*/_jsx("button", {
373
377
  type: "button"
374
378
  // These presets are independent action buttons navigated by
@@ -379,8 +383,11 @@ export function DateRangeInput({
379
383
  ,
380
384
  "aria-current": isActive ? 'true' : undefined,
381
385
  disabled: isPresetDisabled,
382
- onClick: () => handlePresetClick(preset),
383
- ...stylex.props(focusOutlineStyles.focusVisible, styles.presetButton, isActive && styles.presetButtonActive, isPresetDisabled && styles.presetButtonDisabled),
386
+ onClick: () => handleRangeSelect(presetRange),
387
+ ...mergeProps(themeProps('date-range-input-preset', {
388
+ selected: isActive ? 'selected' : null,
389
+ disabled: isPresetDisabled ? 'disabled' : null
390
+ }), stylex.props(focusOutlineStyles.focusVisible, styles.presetButton, isActive && styles.presetButtonActive, isPresetDisabled && styles.presetButtonDisabled)),
384
391
  children: preset.label
385
392
  }, preset.label);
386
393
  })
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @file DialogHeader.tsx
3
- * @input Uses React, useEffect, useRef, LayoutHeader, Button, Icon, Heading, Text, DialogContext
3
+ * @input Uses React, StyleX, LayoutHeader, Button, Icon, Heading, Text, DialogContext, mergeProps, themeProps
4
4
  * @output Exports DialogHeader component and DialogHeaderProps
5
5
  * @position Dialog header component; used with Dialog and Layout
6
6
  *
@@ -1 +1 @@
1
- {"version":3,"file":"DialogHeader.d.ts","sourceRoot":"","sources":["../../src/Dialog/DialogHeader.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAoB,KAAK,SAAS,EAAC,MAAM,OAAO,CAAC;AAQxD,OAAO,KAAK,E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AC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,OAAO,CAAC;IAE5C;;OAEG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;IAEzB;;OAEG;IACH,UAAU,CAAC,EAAE,SAAS,CAAC;IAEvB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,QAAQ,EACR,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,UAAU,EACV,MAAM,EACN,SAAS,EACT,KAAK,EACL,GAAG,EACH,GAAG,IAAI,EACR,EAAE,iBAAiB,+BAmFnB;yBA/Fe,YAAY"}
@@ -4,7 +4,7 @@
4
4
 
5
5
  /**
6
6
  * @file DialogHeader.tsx
7
- * @input Uses React, useEffect, useRef, LayoutHeader, Button, Icon, Heading, Text, DialogContext
7
+ * @input Uses React, StyleX, LayoutHeader, Button, Icon, Heading, Text, DialogContext, mergeProps, themeProps
8
8
  * @output Exports DialogHeader component and DialogHeaderProps
9
9
  * @position Dialog header component; used with Dialog and Layout
10
10
  *
@@ -24,6 +24,8 @@ import { Button } from "../Button/index.js";
24
24
  import { Icon } from "../Icon/index.js";
25
25
  import { Heading } from "../Heading/Heading.js";
26
26
  import { Text } from "../Text/Text.js";
27
+ import { mergeProps } from "../utils/index.js";
28
+ import { themeProps } from "../utils/themeProps.js";
27
29
  import { useDialogContext } from "./DialogContext.js";
28
30
  import { useTranslator } from "../i18n/index.js";
29
31
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
@@ -92,18 +94,18 @@ export function DialogHeader({
92
94
  style: style,
93
95
  ...rest,
94
96
  children: /*#__PURE__*/_jsxs("div", {
95
- ...{
97
+ ...mergeProps(themeProps('dialog-header'), {
96
98
  className: "x78zum5 x1cy8zhl x1qughib xjcht0a"
97
- },
99
+ }),
98
100
  children: [startContent && /*#__PURE__*/_jsx("div", {
99
101
  ...{
100
102
  className: "x78zum5 x6s0dn4 x1txdalj x2lah0s"
101
103
  },
102
104
  children: startContent
103
105
  }), /*#__PURE__*/_jsxs("div", {
104
- ...{
105
- className: "x98rzlu xeuugli xqixskq"
106
- },
106
+ ...mergeProps(themeProps('dialog-header-title-block'), {
107
+ className: "x78zum5 xdt5ytf xsn7fz1 x98rzlu xeuugli xqixskq"
108
+ }),
107
109
  children: [/*#__PURE__*/_jsx(Heading, {
108
110
  ref: titleRef,
109
111
  id: titleId,
@@ -132,7 +134,8 @@ export function DialogHeader({
132
134
  tooltip: t('@astryx.dialog.close'),
133
135
  icon: /*#__PURE__*/_jsx(Icon, {
134
136
  icon: "close",
135
- color: "inherit"
137
+ color: "inherit",
138
+ ...themeProps('dialog-header-close-icon')
136
139
  }),
137
140
  onClick: () => {
138
141
  onOpenChange?.(false);
@@ -1 +1 @@
1
- {"version":3,"file":"FileInput.d.ts","sourceRoot":"","sources":["../../src/FileInput/FileInput.tsx"],"names":[],"mappings":"AAsCA,OAAO,EAGL,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACxB,MAAM,UAAU,CAAC;AASlB,YAAY,EACV,WAAW,IAAI,eAAe,EAC9B,eAAe,IAAI,mBAAmB,GACvC,MAAM,UAAU,CAAC;AAElB,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAgO9C,MAAM,WAAW,cAAe,SAAQ,IAAI,CAC1C,SAAS,EACT,UAAU,GAAG,cAAc,GAAG,OAAO,CACtC;IACC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;IAClC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,KAAK,EAAE,IAAI,GAAG,IAAI,EAAE,GAAG,IAAI,CAAC;IAC5B;;OAEG;IACH,QAAQ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, VisuallyHidden
8
- * @output Exports FileInput component, FileInputProps, FileInputStatus
8
+ * @output Exports FileInput component, public types, and its root/icon theme targets
9
9
  * @position Core implementation; consumed by index.ts, tested by FileInput.test.tsx
10
10
  *
11
11
  * SYNC: When modified, update these files to stay in sync:
@@ -406,7 +406,10 @@ export function FileInput({
406
406
  children: [/*#__PURE__*/_jsx(Icon, {
407
407
  icon: "arrowUp",
408
408
  size: "md",
409
- color: "secondary"
409
+ color: "secondary",
410
+ ...themeProps('file-input-icon', {
411
+ mode
412
+ })
410
413
  }), /*#__PURE__*/_jsx("span", {
411
414
  ...{
412
415
  className: "x9ynric xjm74w1 x6pjikd xw6l6zx xv1l7n4 x2b8uid x87ps6o"
@@ -432,7 +435,10 @@ export function FileInput({
432
435
  children: [/*#__PURE__*/_jsx(Icon, {
433
436
  icon: "arrowUp",
434
437
  size: "sm",
435
- color: "secondary"
438
+ color: "secondary",
439
+ ...themeProps('file-input-icon', {
440
+ mode
441
+ })
436
442
  }), /*#__PURE__*/_jsx("span", {
437
443
  ...{
438
444
  0: {
@@ -1 +1 @@
1
- {"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../src/Slider/Slider.tsx"],"names":[],"mappings":"AA0CA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAQhD,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAQ9C,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAC3C,SAAS,CAAC,cAAc,CAAC,EACzB,UAAU,CACX;IACC,wCAAwC;IACxC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IAChC,qEAAqE;IACrE,KAAK,EAAE,MAAM,CAAC;IACd,8FAA8F;IAC9F,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,kDAAkD;IAClD,WAAW,CAAC,EAAE,MAAM,CAAC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D;IAClD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;IAC7C,iEAAiE;IACjE,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;IAChD,8CAA8C;IAC9C,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,MAAM,WAAW,GAAG,iBAAiB,GAAG,gBAAgB,CAAC;AAoS/D;;;;;;;;GAQG;AACH,wBAAgB,MAAM,CAAC,EAAC,GAAG,EAAE,GAAG,KAAK,EAAC,EAAE,WAAW,+BA4qBlD;yBA5qBe,MAAM"}
@@ -660,7 +660,10 @@ export function Slider({
660
660
  onPointerMove: handlePointerMove,
661
661
  onPointerUp: handlePointerUp,
662
662
  onPointerCancel: handlePointerUp,
663
- ...{
663
+ ...mergeProps(themeProps('slider-control', {
664
+ orientation,
665
+ disabled: isDisabled ? 'disabled' : null
666
+ }), {
664
667
  0: {
665
668
  className: "x1n2onr6 x78zum5 x6s0dn4 x1iyjqo2 x5ve5x3 x87ps6o xc8icb0 xw4jnvo x1ymw6g xkagaj0 xdt5ytf xl56j7k x1ypdohk x16khyan"
666
669
  },
@@ -673,7 +676,7 @@ export function Slider({
673
676
  3: {
674
677
  className: "x1n2onr6 x78zum5 x6s0dn4 x1iyjqo2 x5ve5x3 x87ps6o xc8icb0 x1qx5ct2 x80b3aj xh8yej3 xbyyjgo xt0e3qv"
675
678
  }
676
- }[!!isHorizontal << 1 | !!isDisabled << 0],
679
+ }[!!isHorizontal << 1 | !!isDisabled << 0]),
677
680
  children: [/*#__PURE__*/_jsx("div", {
678
681
  "aria-hidden": "true",
679
682
  ...mergeProps(themeProps('slider-track', {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @file Spinner.tsx
3
- * @input Uses React, StyleX, SVG rendering
3
+ * @input Uses React, i18n (useTranslator), StyleX, SVG rendering
4
4
  * @output Exports Spinner component, SpinnerProps, SpinnerSize, SpinnerShade types
5
5
  * @position Core implementation of spinner loading indicator
6
6
  *
@@ -1 +1 @@
1
- {"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["../../src/Spinner/Spinner.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAQ,KAAK,SAAS,EAAC,MAAM,OAAO,CAAC;AAG5C,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAyB5C,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;CAKV,CAAC;AA+VF,MAAM,MAAM,WAAW,GAAG,MAAM,OAAO,KAAK,CAAC;AAE7C,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;AAExE,MAAM,WAAW,YAAa,SAAQ,SAAS,CAAC,eAAe,CAAC;IAC9D,wCAAwC;IACxC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;IACjC;;;;;;;;;OASG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB;;;;;;;;;OASG;IACH,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB;;;;;;;;;;;;;OAaG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAMD;;;;;;;;;;;GAWG;AACH,wBAAgB,OAAO,CAAC,EACtB,IAAW,EACX,KAAiB,EACjB,KAAK,EACL,MAAM,EACN,SAAS,EACT,KAAK,EACL,YAAY,EAAE,SAAS,EACvB,aAAa,EAAE,MAAM,EACrB,GAAG,EACH,GAAG,SAAS,EACb,EAAE,YAAY,+BAoHd;yBA/He,OAAO"}
1
+ {"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["../../src/Spinner/Spinner.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAQ,KAAK,SAAS,EAAC,MAAM,OAAO,CAAC;AAG5C,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAuB5C,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;CAKV,CAAC;AA6WF,MAAM,MAAM,WAAW,GAAG,MAAM,OAAO,KAAK,CAAC;AAE7C,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;AAExE,MAAM,WAAW,YAAa,SAAQ,SAAS,CAAC,eAAe,CAAC;IAC9D,wCAAwC;IACxC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;IACjC;;;;;;;;;OASG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB;;;;;;;;;OASG;IACH,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB;;;;;;;;;;;;;OAaG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAMD;;;;;;;;;;;GAWG;AACH,wBAAgB,OAAO,CAAC,EACtB,IAAW,EACX,KAAiB,EACjB,KAAK,EACL,MAAM,EACN,SAAS,EACT,KAAK,EACL,YAAY,EAAE,SAAS,EACvB,aAAa,EAAE,MAAM,EACrB,GAAG,EACH,GAAG,SAAS,EACb,EAAE,YAAY,+BAyHd;yBApIe,OAAO"}
@@ -4,7 +4,7 @@
4
4
 
5
5
  /**
6
6
  * @file Spinner.tsx
7
- * @input Uses React, StyleX, SVG rendering
7
+ * @input Uses React, i18n (useTranslator), StyleX, SVG rendering
8
8
  * @output Exports Spinner component, SpinnerProps, SpinnerSize, SpinnerShade types
9
9
  * @position Core implementation of spinner loading indicator
10
10
  *
@@ -21,6 +21,7 @@ import "../theme/tokens.stylex.js";
21
21
  import { colorVars, durationVars, spacingVars } from "../theme/tokens.stylex.js";
22
22
  import { Text } from "../Text/Text.js";
23
23
  import { mergeProps } from "../utils/index.js";
24
+ import { useTranslator } from "../i18n/index.js";
24
25
  import { themeProps } from "../utils/themeProps.js";
25
26
 
26
27
  // =============================================================================
@@ -28,21 +29,17 @@ import { themeProps } from "../utils/themeProps.js";
28
29
  // =============================================================================
29
30
 
30
31
  /**
31
- * Fraction of the ring the moving arc covers. The canvas ring this replaces
32
- * swept 135deg, not the 270deg its constant's comment claimed.
32
+ * Default fraction of the ring the moving arc covers. The canvas ring this
33
+ * replaces swept 135deg, not the 270deg its constant's comment claimed.
34
+ *
35
+ * Themeable via `--spinner-arc-fraction`, declared alongside the other public
36
+ * vars in `sizeStyles` below. Only the inline `strokeDasharray` attribute
37
+ * (the pre-stylesheet render — see its own comment) still reads this
38
+ * constant directly; the CSS side composes the dash from the live var.
33
39
  */
34
40
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
35
41
  const ARC_FRACTION = 0.375;
36
-
37
- /**
38
- * The dash pattern, per unit of diameter: one arc, then the gap that closes
39
- * the circle. The circumference is `pi x diameter`, so multiplying the
40
- * resolved diameter by these two constants gives exactly the lengths the
41
- * default render has always used, and scales them with a themed diameter.
42
- */
43
42
  const PI = 3.141592653589793;
44
- const ARC_DASH = PI * ARC_FRACTION;
45
- const ARC_GAP = PI * (1 - ARC_FRACTION);
46
43
  const SIZES = {
47
44
  sm: {
48
45
  diameter: 10,
@@ -269,25 +266,33 @@ const styles = {
269
266
  // cost of its own — with nothing declaring the var,
270
267
  // `theme-var-reachability.js` cannot find an element to check, so a documented
271
268
  // var reads as unreachable.
269
+ // Arc fraction is not itself size-dependent, but it declares alongside the
270
+ // two vars that are, on the same per-size condition (`!hasLabel` gate at the
271
+ // call site) — it needs a home on whichever element carries the theme
272
+ // target, and this is the object already wired to be there.
272
273
  const sizeStyles = {
273
274
  sm: {
274
275
  "--spinner-diameter": "x11wm0hx",
275
276
  "--spinner-stroke-width": "xls98ul",
277
+ "--spinner-arc-fraction": "x7o5821",
276
278
  $$css: true
277
279
  },
278
280
  md: {
279
281
  "--spinner-diameter": "x15pu9g6",
280
282
  "--spinner-stroke-width": "xr0wkrm",
283
+ "--spinner-arc-fraction": "x7o5821",
281
284
  $$css: true
282
285
  },
283
286
  lg: {
284
287
  "--spinner-diameter": "x1w424tr",
285
288
  "--spinner-stroke-width": "xr0wkrm",
289
+ "--spinner-arc-fraction": "x7o5821",
286
290
  $$css: true
287
291
  },
288
292
  xl: {
289
293
  "--spinner-diameter": "x1orj1z9",
290
294
  "--spinner-stroke-width": "x7y2bof",
295
+ "--spinner-arc-fraction": "x7o5821",
291
296
  $$css: true
292
297
  }
293
298
  };
@@ -377,6 +382,7 @@ export function Spinner({
377
382
  const arcLength = circumference * ARC_FRACTION;
378
383
  const hasLabel = label != null;
379
384
  const labelId = useId();
385
+ const t = useTranslator();
380
386
 
381
387
  // When a visible string label renders (and no explicit aria-label is set),
382
388
  // name the status element from the visible Text via aria-labelledby instead
@@ -384,8 +390,10 @@ export function Spinner({
384
390
  // announced twice by screen readers (WCAG 4.1.2).
385
391
  const namedByVisibleLabel = hasLabel && typeof label === 'string' && ariaLabel == null;
386
392
 
387
- // Resolve accessible name: explicit aria-label > string label > "Loading"
388
- const resolvedAriaLabel = ariaLabel ?? (typeof label === 'string' ? label : undefined) ?? 'Loading';
393
+ // Resolve accessible name: explicit aria-label > string label > the
394
+ // localized default. The fallback is AT-facing text, so it goes through the
395
+ // translation runtime like visible text does.
396
+ const resolvedAriaLabel = ariaLabel ?? (typeof label === 'string' ? label : undefined) ?? t('@astryx.spinner.loading');
389
397
  const spinner = /*#__PURE__*/_jsx("span", {
390
398
  ref: hasLabel ? undefined : ref,
391
399
  role: "status",
@@ -440,7 +448,7 @@ export function Spinner({
440
448
  ,
441
449
  strokeDasharray: `${arcLength} ${circumference - arcLength}`,
442
450
  ...{
443
- className: "xbh8q5q x1764fhq x1g0ag68 x1owpc8m xio8zfp xgw3ha0 xtve3lm x9tu13d x1vy8frr"
451
+ className: "xbh8q5q x1764fhq x1g0ag68 x1owpc8m xio8zfp xgw3ha0 xtve3lm x9tu13d xdv9ggb"
444
452
  }
445
453
  })]
446
454
  })
package/dist/astryx.css CHANGED
@@ -333,6 +333,7 @@
333
333
  .xnpej1e{--radius-element:var(--radius-full)}
334
334
  .x11rj6l1{--selectable-card-ring-color:var(--color-accent)}
335
335
  .xkce8z9{--separator-display:flex}
336
+ .x7o5821{--spinner-arc-fraction:.375}
336
337
  .x1uzk0gl{--spinner-color:currentColor}
337
338
  .xt1b8mc{--spinner-color:var(--color-accent)}
338
339
  .x13u6jys{--spinner-color:var(--color-on-dark)}
@@ -1173,7 +1174,7 @@
1173
1174
  .x24f09q:not(#\#):not(#\#):not(#\#){scrollbar-gutter:auto}
1174
1175
  .xosa0jh:not(#\#):not(#\#):not(#\#){scrollbar-width:auto}
1175
1176
  .x1rohswg:not(#\#):not(#\#):not(#\#){scrollbar-width:none}
1176
- .x1vy8frr:not(#\#):not(#\#):not(#\#){stroke-dasharray:calc(var(--_spinner-ring-diameter) * 1.1780972450961724) calc(var(--_spinner-ring-diameter) * 1.9634954084936207)}
1177
+ .xdv9ggb:not(#\#):not(#\#):not(#\#){stroke-dasharray:calc(var(--_spinner-ring-diameter) * 3.141592653589793 * var(--spinner-arc-fraction)) calc(var(--_spinner-ring-diameter) * 3.141592653589793 * (1 - var(--spinner-arc-fraction)))}
1177
1178
  .x1owpc8m:not(#\#):not(#\#):not(#\#){stroke-linecap:round}
1178
1179
  .x7bo2k:not(#\#):not(#\#):not(#\#){stroke-opacity:.3}
1179
1180
  .x1smxkh6:not(#\#):not(#\#):not(#\#){stroke-opacity:.302}
package/locales/en.json CHANGED
@@ -447,6 +447,18 @@
447
447
  "defaultMessage": "Next",
448
448
  "description": "Screen-reader-only label on the right-arrow button in a Lightbox (navigates to next media item). Pairs with `lightbox.previous`."
449
449
  },
450
+ "@astryx.chatTypingIndicator.one": {
451
+ "defaultMessage": "{name} is typing…",
452
+ "description": "Politely announced status naming the single person currently typing in a chat. `name` is a display name supplied by the app. Present-progressive form; the trailing ellipsis is the single … character."
453
+ },
454
+ "@astryx.chatTypingIndicator.many": {
455
+ "defaultMessage": "{names} are typing…",
456
+ "description": "Politely announced status when more than one person is typing in a chat. `names` is already joined for the locale by Intl.ListFormat, so translations must not add their own conjunction — place `{names}` where the joined list belongs."
457
+ },
458
+ "@astryx.chatTypingIndicator.others": {
459
+ "defaultMessage": "{count, number} {count, plural, one {other} other {others}}",
460
+ "description": "Overflow element for the chat typing status when three or more people type: the first name is shown and the rest collapse into this phrase, which is then joined to the name by Intl.ListFormat. Renders as the last list item, e.g. \"Ana and 2 others\"."
461
+ },
450
462
  "@astryx.listInput.emptyTitle": {
451
463
  "defaultMessage": "No {itemName}s yet",
452
464
  "description": "EmptyState title shown inside a lab ListInput when its collection has no records. `{itemName}` is the consumer's singular noun for one record (e.g. \"guest\"); the source appends a literal \"s\" to pluralize it, which only works for regular English plurals. If your language cannot pluralize an interpolated noun this way, rephrase around `{itemName}` instead (e.g. \"No {itemName} added yet\")."
@@ -935,6 +947,10 @@
935
947
  "defaultMessage": "Loading",
936
948
  "description": "Screen-reader-only live-region announcement while a Button is in its loading state (spinner shown, action in flight). Progressive sense (\"work in progress\"), not a noun. Kept separate from `typeahead.loading` — translations may diverge."
937
949
  },
950
+ "@astryx.spinner.loading": {
951
+ "defaultMessage": "Loading",
952
+ "description": "Screen-reader-only default name for a standalone Spinner's role=\"status\" element, used when the consumer supplies neither `aria-label` nor a visible string label. Present-progressive form. Kept separate from `button.loading` and `typeahead.loading` — translations may diverge."
953
+ },
938
954
  "@astryx.chatComposerDrawer.expand": {
939
955
  "defaultMessage": "Expand {label}",
940
956
  "description": "Screen-reader-only label on the ChatComposerDrawer toggle when the drawer is collapsed. `{label}` is the drawer's visible name — example: `Expand Attachments`. Pairs with `collapse`."
@@ -335,6 +335,15 @@
335
335
  "@astryx.lightbox.next": {
336
336
  "defaultMessage": "⟦Ñéẋţ⟧"
337
337
  },
338
+ "@astryx.chatTypingIndicator.one": {
339
+ "defaultMessage": "⟦{name} íš ţýþíñĝ…⟧"
340
+ },
341
+ "@astryx.chatTypingIndicator.many": {
342
+ "defaultMessage": "⟦{names} àřé ţýþíñĝ…⟧"
343
+ },
344
+ "@astryx.chatTypingIndicator.others": {
345
+ "defaultMessage": "⟦{count, number} {count, plural, one {other} other {others}}⟧"
346
+ },
338
347
  "@astryx.listInput.emptyTitle": {
339
348
  "defaultMessage": "⟦Ñó {itemName}š ýéţ⟧"
340
349
  },
@@ -701,6 +710,9 @@
701
710
  "@astryx.button.loading": {
702
711
  "defaultMessage": "⟦Łóàðíñĝ⟧"
703
712
  },
713
+ "@astryx.spinner.loading": {
714
+ "defaultMessage": "⟦Łóàðíñĝ⟧"
715
+ },
704
716
  "@astryx.chatComposerDrawer.expand": {
705
717
  "defaultMessage": "⟦Éẋþàñð {label}⟧"
706
718
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astryxdesign/core",
3
- "version": "0.6.1-canary.bf896f3",
3
+ "version": "0.6.1-canary.c87f73f",
4
4
  "displayName": "Astryx Core",
5
5
  "description": "The component library. Accessible, themeable React components with built-in spacing, dark mode, and StyleX styling.",
6
6
  "author": "Meta Open Source",
@@ -672,8 +672,8 @@
672
672
  "react-dom": ">=19.0.0"
673
673
  },
674
674
  "devDependencies": {
675
- "@astryxdesign/a11y-spec": "0.6.1-canary.bf896f3",
676
- "@astryxdesign/cli": "0.6.1-canary.bf896f3",
675
+ "@astryxdesign/a11y-spec": "0.6.1-canary.c87f73f",
676
+ "@astryxdesign/cli": "0.6.1-canary.c87f73f",
677
677
  "@babel/cli": "^7.29.7",
678
678
  "@babel/core": "^7.29.7",
679
679
  "@babel/preset-react": "^7.29.7",
@@ -57,7 +57,7 @@ export const LEGACY_MARKER_END = '<!-- XDS:END -->';
57
57
  * targets are user-chosen and not enumerable here.)
58
58
  */
59
59
  export const AGENT_DOC_PATHS = [
60
- AGENTS_MD, // Codex / ChatGPT / generic
60
+ AGENTS_MD, // Codex / ChatGPT / Muse / generic
61
61
  CLAUDE_MD, // Claude Code (root)
62
62
  CLAUDE_DIR_MD, // Claude Code (.claude/CLAUDE.md)
63
63
  CURSOR_RULES, // Cursor
@@ -114,7 +114,7 @@ export const docs = {
114
114
  name: 'presets',
115
115
  type: 'Array<DateRangePreset>',
116
116
  description:
117
- 'Preset ranges shown as quick-select options beside the calendar.',
117
+ 'Preset ranges shown as quick-select options beside the calendar. A preset is disabled when either endpoint violates min, max, or dateConstraints, or when its span violates minRangeSpan or maxRangeSpan.',
118
118
  },
119
119
  {
120
120
  name: 'hasClear',
@@ -178,9 +178,21 @@ export const docs = {
178
178
  ],
179
179
  theming: {
180
180
  targets: [
181
- {className: 'astryx-date-range-input', visualProps: ['size', 'status'], states: ['disabled']},
181
+ {
182
+ className: 'astryx-date-range-input',
183
+ visualProps: ['size', 'status'],
184
+ states: ['disabled'],
185
+ },
182
186
  {className: 'astryx-date-range-input-toggle-icon', states: ['state']},
183
- {className: 'astryx-date-range-input-clear-icon', deprecatedFor: 'input-clear-icon'},
187
+ {
188
+ className: 'astryx-date-range-input-clear-icon',
189
+ deprecatedFor: 'input-clear-icon',
190
+ },
191
+ {className: 'astryx-date-range-input-presets'},
192
+ {
193
+ className: 'astryx-date-range-input-preset',
194
+ states: ['selected', 'disabled'],
195
+ },
184
196
  ],
185
197
  },
186
198
  usage: {
@@ -230,6 +242,12 @@ export const docs = {
230
242
  description:
231
243
  'Text above the trigger describing what date range is expected.',
232
244
  },
245
+ {
246
+ name: 'Field surface',
247
+ required: true,
248
+ description:
249
+ 'Bordered control containing the calendar toggle, range trigger, and end affordances.',
250
+ },
233
251
  {
234
252
  name: 'Trigger button',
235
253
  required: true,
@@ -252,6 +270,12 @@ export const docs = {
252
270
  required: false,
253
271
  description: 'A list of preset range options beside the calendar.',
254
272
  },
273
+ {
274
+ name: 'Preset button',
275
+ required: false,
276
+ description:
277
+ 'A quick-select action for one preset range, reflecting current and disabled states.',
278
+ },
255
279
  {
256
280
  name: 'Clear button',
257
281
  required: false,
@@ -320,7 +344,8 @@ export const docsDense = {
320
344
  isDisabled: 'disable trigger+picker',
321
345
  disabledMessage:
322
346
  'reason shown in a tooltip on hover/focus when disabled; keeps trigger focusable via aria-disabled',
323
- value: 'selected range {start, end} or null; import DateRange type from @astryxdesign/core/DateRangeInput (do not redeclare)',
347
+ value:
348
+ 'selected range {start, end} or null; import DateRange type from @astryxdesign/core/DateRangeInput (do not redeclare)',
324
349
  onChange: 'callback on range change; null on clear',
325
350
  min: 'min selectable date: ISODateString template literal type (YYYY-MM-DD); use string literal or cast `as ISODateString`',
326
351
  max: 'max selectable date: ISODateString template literal type (YYYY-MM-DD); use string literal or cast `as ISODateString`',
@@ -329,15 +354,18 @@ export const docsDense = {
329
354
  'max days a range may span, both endpoints counted (7 = a 7-day window); caps the window from the picked start. Selection-only; does not rewrite an over-wide value',
330
355
  minRangeSpan:
331
356
  'min days a range must span, both endpoints counted (2 forbids a single-day range); repeated start click commits one day when allowed, otherwise cancels; default 1',
332
- presets: 'preset ranges as quick-select options',
357
+ presets:
358
+ 'preset ranges as quick-select options; disabled when an endpoint or span violates the corresponding constraints',
333
359
  hasClear: 'clear button when range is set (default true)',
334
360
  placeholder: 'placeholder when empty',
335
361
  size: 'trigger size',
336
362
  status: 'error/warning/success status',
337
- statusVariant: 'How status message is placed: attached overlaps below input; detached floats below w/ spacing; tooltip hides the box and shows it on the status icon.',
363
+ statusVariant:
364
+ 'How status message is placed: attached overlaps below input; detached floats below w/ spacing; tooltip hides the box and shows it on the status icon.',
338
365
  labelTooltip: 'tooltip via info icon at label end',
339
366
  numberOfMonths: 'months in calendar (default 2)',
340
- weekStartsOn: 'first day of week in calendar (0=Sunday, or name e.g. "mon")',
367
+ weekStartsOn:
368
+ 'first day of week in calendar (0=Sunday, or name e.g. "mon")',
341
369
  changeAction:
342
370
  'async action fired after onChange; drives optimistic UI updates via useTransition',
343
371
  isLoading: 'loading state; disables interaction + shows a spinner',