@astryxdesign/core 0.7.8-canary.ccfadbe → 0.7.8-canary.da689f9

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 (131) hide show
  1. package/dist/Calendar/Calendar.d.ts.map +1 -1
  2. package/dist/Calendar/Calendar.js +3 -6
  3. package/dist/Calendar/getWeekdayHeaderNames.d.ts +16 -0
  4. package/dist/Calendar/getWeekdayHeaderNames.d.ts.map +1 -0
  5. package/dist/Calendar/getWeekdayHeaderNames.js +70 -0
  6. package/dist/Calendar/hooks/useCalendarDays.d.ts.map +1 -1
  7. package/dist/Calendar/hooks/useCalendarDays.js +2 -10
  8. package/dist/Calendar/{standaloneShortWeekdayNames.generated.d.ts → weekdayHeaderNames.generated.d.ts} +14 -14
  9. package/dist/Calendar/weekdayHeaderNames.generated.d.ts.map +1 -0
  10. package/dist/Calendar/{standaloneShortWeekdayNames.generated.js → weekdayHeaderNames.generated.js} +12 -12
  11. package/dist/Chat/ChatComposerInput.d.ts.map +1 -1
  12. package/dist/Chat/ChatComposerInput.js +2 -1
  13. package/dist/DateInput/TouchDateField.d.ts.map +1 -1
  14. package/dist/DateInput/TouchDateField.js +8 -30
  15. package/dist/DateTimeInput/TouchDateTimeField.d.ts.map +1 -1
  16. package/dist/DateTimeInput/TouchDateTimeField.js +8 -10
  17. package/dist/Layer/useLayer.js +1 -1
  18. package/dist/Layout/index.d.ts +1 -1
  19. package/dist/Layout/index.d.ts.map +1 -1
  20. package/dist/Layout/index.js +1 -1
  21. package/dist/Layout/layoutReset.js +1 -1
  22. package/dist/Layout/overlayPaddingReset.stylex.d.ts +68 -0
  23. package/dist/Layout/overlayPaddingReset.stylex.d.ts.map +1 -0
  24. package/dist/Layout/overlayPaddingReset.stylex.js +72 -0
  25. package/dist/Layout/padding.stylex.d.ts +5 -129
  26. package/dist/Layout/padding.stylex.d.ts.map +1 -1
  27. package/dist/Layout/padding.stylex.js +9 -143
  28. package/dist/Layout/paddingStyles.stylex.d.ts +83 -0
  29. package/dist/Layout/paddingStyles.stylex.d.ts.map +1 -0
  30. package/dist/Layout/paddingStyles.stylex.js +99 -0
  31. package/dist/Lightbox/Lightbox.js +1 -1
  32. package/dist/MobileNav/MobileNav.js +1 -1
  33. package/dist/MultiSelector/MultiSelector.d.ts.map +1 -1
  34. package/dist/MultiSelector/MultiSelector.js +2 -1
  35. package/dist/NumberInput/NumberInput.d.ts.map +1 -1
  36. package/dist/NumberInput/NumberInput.js +2 -1
  37. package/dist/Popover/usePopover.js +2 -2
  38. package/dist/PowerSearch/PowerSearch.d.ts +2 -2
  39. package/dist/PowerSearch/PowerSearch.js +1 -1
  40. package/dist/PowerSearch/PowerSearchEditPopover.d.ts.map +1 -1
  41. package/dist/PowerSearch/PowerSearchEditPopover.js +18 -4
  42. package/dist/PowerSearch/PowerSearchToken.d.ts.map +1 -1
  43. package/dist/PowerSearch/PowerSearchToken.js +1 -5
  44. package/dist/PowerSearch/PowerSearchValueEditor.d.ts.map +1 -1
  45. package/dist/PowerSearch/PowerSearchValueEditor.js +84 -7
  46. package/dist/PowerSearch/formatFilterValue.d.ts +2 -7
  47. package/dist/PowerSearch/formatFilterValue.d.ts.map +1 -1
  48. package/dist/PowerSearch/formatFilterValue.js +2 -15
  49. package/dist/PowerSearch/formatTokenValue.d.ts.map +1 -1
  50. package/dist/PowerSearch/formatTokenValue.js +3 -4
  51. package/dist/PowerSearch/powerSearchDateZone.d.ts +5 -1
  52. package/dist/PowerSearch/powerSearchDateZone.d.ts.map +1 -1
  53. package/dist/PowerSearch/powerSearchDateZone.js +22 -2
  54. package/dist/PowerSearch/types.d.ts +6 -1
  55. package/dist/PowerSearch/types.d.ts.map +1 -1
  56. package/dist/Selector/Selector.d.ts.map +1 -1
  57. package/dist/Selector/Selector.js +2 -1
  58. package/dist/Slider/Slider.d.ts.map +1 -1
  59. package/dist/Slider/Slider.js +16 -11
  60. package/dist/Stepper/Stepper.d.ts.map +1 -1
  61. package/dist/Stepper/Stepper.js +10 -15
  62. package/dist/TextArea/TextArea.d.ts.map +1 -1
  63. package/dist/TextArea/TextArea.js +2 -1
  64. package/dist/TextInput/TextInput.d.ts.map +1 -1
  65. package/dist/TextInput/TextInput.js +2 -1
  66. package/dist/Timestamp/formatInstant.d.ts.map +1 -1
  67. package/dist/Timestamp/formatInstant.js +1 -23
  68. package/dist/Tokenizer/Tokenizer.js +1 -1
  69. package/dist/astryx.css +1 -0
  70. package/dist/hooks/useIsomorphicLayoutEffect.d.ts +2 -2
  71. package/dist/hooks/useIsomorphicLayoutEffect.d.ts.map +1 -1
  72. package/dist/utils/disabledInteraction.d.ts +10 -2
  73. package/dist/utils/disabledInteraction.d.ts.map +1 -1
  74. package/dist/utils/disabledInteraction.js +16 -2
  75. package/dist/utils/focusReturn.d.ts +7 -25
  76. package/dist/utils/focusReturn.d.ts.map +1 -1
  77. package/dist/utils/focusReturn.js +8 -29
  78. package/dist/utils/index.d.ts +1 -1
  79. package/dist/utils/index.d.ts.map +1 -1
  80. package/dist/utils/index.js +1 -1
  81. package/dist/utils/isFocusDetached.d.ts +27 -0
  82. package/dist/utils/isFocusDetached.d.ts.map +1 -0
  83. package/dist/utils/isFocusDetached.js +32 -0
  84. package/dist/utils/plainDate.d.ts +23 -0
  85. package/dist/utils/plainDate.d.ts.map +1 -1
  86. package/dist/utils/plainDate.js +49 -4
  87. package/package.json +4 -4
  88. package/src/Calendar/Calendar.tsx +4 -7
  89. package/src/Calendar/getWeekdayHeaderNames.ts +88 -0
  90. package/src/Calendar/hooks/useCalendarDays.ts +5 -10
  91. package/src/Calendar/{standaloneShortWeekdayNames.generated.ts → weekdayHeaderNames.generated.ts} +14 -14
  92. package/src/Chat/ChatComposerInput.tsx +2 -7
  93. package/src/DateInput/TouchDateField.tsx +5 -32
  94. package/src/DateTimeInput/TouchDateTimeField.tsx +6 -13
  95. package/src/Layer/useLayer.tsx +1 -1
  96. package/src/Layout/index.ts +1 -1
  97. package/src/Layout/layoutReset.ts +1 -1
  98. package/src/Layout/overlayPaddingReset.stylex.ts +73 -0
  99. package/src/Layout/padding.stylex.ts +9 -133
  100. package/src/Layout/paddingStyles.stylex.ts +87 -0
  101. package/src/Lightbox/Lightbox.tsx +1 -1
  102. package/src/MobileNav/MobileNav.tsx +1 -1
  103. package/src/MultiSelector/MultiSelector.tsx +2 -7
  104. package/src/NumberInput/NumberInput.tsx +2 -7
  105. package/src/Popover/usePopover.tsx +2 -2
  106. package/src/PowerSearch/PowerSearch.doc.mjs +2 -2
  107. package/src/PowerSearch/PowerSearch.tsx +3 -3
  108. package/src/PowerSearch/PowerSearchEditPopover.tsx +26 -3
  109. package/src/PowerSearch/PowerSearchToken.tsx +1 -6
  110. package/src/PowerSearch/PowerSearchValueEditor.tsx +102 -7
  111. package/src/PowerSearch/formatFilterValue.ts +2 -18
  112. package/src/PowerSearch/formatTokenValue.ts +9 -11
  113. package/src/PowerSearch/powerSearchDateZone.ts +32 -1
  114. package/src/PowerSearch/types.ts +6 -1
  115. package/src/Selector/Selector.tsx +2 -7
  116. package/src/Slider/Slider.tsx +20 -11
  117. package/src/Stepper/Stepper.tsx +10 -27
  118. package/src/TextArea/TextArea.tsx +2 -7
  119. package/src/TextInput/TextInput.tsx +2 -7
  120. package/src/Timestamp/formatInstant.ts +1 -33
  121. package/src/Tokenizer/Tokenizer.tsx +1 -1
  122. package/src/utils/disabledInteraction.ts +23 -2
  123. package/src/utils/focusReturn.ts +8 -31
  124. package/src/utils/index.ts +1 -1
  125. package/src/utils/isFocusDetached.ts +34 -0
  126. package/src/utils/plainDate.ts +59 -4
  127. package/dist/Calendar/getStandaloneShortWeekdayNames.d.ts +0 -14
  128. package/dist/Calendar/getStandaloneShortWeekdayNames.d.ts.map +0 -1
  129. package/dist/Calendar/getStandaloneShortWeekdayNames.js +0 -26
  130. package/dist/Calendar/standaloneShortWeekdayNames.generated.d.ts.map +0 -1
  131. package/src/Calendar/getStandaloneShortWeekdayNames.ts +0 -38
@@ -1 +1 @@
1
-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AI,CAAC,EAAE,QAAQ,CAAC;IAEhB,mFAAmF;IACnF,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;IAE7B,0CAA0C;IAC1C,YAAY,CAAC,EAAE,aAAa,CAAC;IAE7B,qCAAqC;IACrC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,IAAI,KAAK,IAAI,CAAC;CAC9D;AAED,UAAU,kBAAmB,SAAQ,iBAAiB;IACpD,qBAAqB;IACrB,IAAI,EAAE,OAAO,CAAC;IAEd,8DAA8D;IAC9D,KAAK,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;IAEzB,0CAA0C;IAC1C,YAAY,CAAC,EAAE,SAAS,CAAC;IAEzB,sCAAsC;IACtC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;CACvC;AAED,MAAM,MAAM,aAAa,GAAG,mBAAmB,GAAG,kBAAkB,CAAC;AAqBrE;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAC,EAAC,GAAG,EAAE,GAAG,KAAK,EAAC,EAAE,aAAa,+BAkhBtD;yBAlhBe,QAAQ"}
@@ -31,6 +31,7 @@ import { focusOutlineProps } from "../utils/focusOutline.stylex.js";
31
31
  import { interactionOverlayStyles } from "../utils/interactionOverlay.stylex.js";
32
32
  import { usePressFeedback } from "../hooks/usePressFeedback.js";
33
33
  import { getInitialFocusDate } from "./getInitialFocusDate.js";
34
+ import { getWeekdayHeaders } from "./getWeekdayHeaderNames.js";
34
35
  import { computeDayCellState, computeRangeRounding, computePreviewRounding, computeDayNeighborContinuity, isEndpoint } from "./dayCellUtils.js";
35
36
 
36
37
  // =============================================================================
@@ -540,18 +541,14 @@ function MonthGrid({
540
541
  // Use hooks for days generation and constraints
541
542
  const {
542
543
  days,
543
- weeks,
544
- dayNames
544
+ weeks
545
545
  } = useCalendarDays({
546
546
  year,
547
547
  month: month.month,
548
548
  weekStartsOn,
549
549
  hasVariableRowCount
550
550
  });
551
- const dayNameHeaders = useMemo(() => dayNames.map((name, offset) => ({
552
- dayOfWeek: (weekStartsOn + offset) % 7,
553
- name
554
- })), [dayNames, weekStartsOn]);
551
+ const dayNameHeaders = useMemo(() => getWeekdayHeaders(locale, weekStartsOn), [locale, weekStartsOn]);
555
552
  const rangeAnchor = useMemo(() => mode === 'range' && rangeSelectionStart ? plainDateFromISO(rangeSelectionStart) : null, [mode, rangeSelectionStart]);
556
553
  const {
557
554
  isDateDisabled
@@ -0,0 +1,16 @@
1
+ import type { DayOfWeek } from '../utils/dateTypes.js';
2
+ /** The longest abbreviated name a header row takes; the generator uses the same. */
3
+ export declare const MAX_ABBREVIATED_HEADER_LENGTH = 4;
4
+ /** One weekday header cell: its day of week (a stable key, since narrow names repeat) and its name. */
5
+ export interface WeekdayHeader {
6
+ dayOfWeek: DayOfWeek;
7
+ name: string;
8
+ }
9
+ /**
10
+ * The seven weekday headers for a locale, in column order for the week that
11
+ * starts on `weekStartsOn`. Unicode extensions are ignored.
12
+ */
13
+ export declare function getWeekdayHeaders(locale: string, weekStartsOn?: DayOfWeek): WeekdayHeader[];
14
+ /** The names alone, in the same order as `getWeekdayHeaders`. */
15
+ export declare function getWeekdayHeaderNames(locale: string, weekStartsOn?: DayOfWeek): string[];
16
+ //# sourceMappingURL=getWeekdayHeaderNames.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getWeekdayHeaderNames.d.ts","sourceRoot":"","sources":["../../src/Calendar/getWeekdayHeaderNames.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,oBAAoB,CAAC;AAWlD,oFAAoF;AACpF,eAAO,MAAM,6BAA6B,IAAI,CAAC;AAqC/C,uGAAuG;AACvG,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,SAAS,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,MAAM,EACd,YAAY,GAAE,SAAa,GAC1B,aAAa,EAAE,CAMjB;AAED,iEAAiE;AACjE,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,MAAM,EACd,YAAY,GAAE,SAAa,GAC1B,MAAM,EAAE,CAEV"}
@@ -0,0 +1,70 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ /**
4
+ * @file getWeekdayHeaderNames.ts
5
+ * @input Generated CLDR weekday header table and the shared date formatter
6
+ * @output Private resolver for one locale's weekday header row
7
+ * @position Package-internal pure utility for the Calendar grid and the
8
+ * DateInput and DateTimeInput bottom sheets; not exported from the package
9
+ */
10
+
11
+ import { characterCount } from "../utils/characters.js";
12
+ import { plainDateWeekdayNames } from "../utils/plainDate.js";
13
+ import { weekdayHeaderNamesByLocale } from "./weekdayHeaderNames.generated.js";
14
+ const weekdayNamesByLocale = weekdayHeaderNamesByLocale;
15
+ const englishWeekdayNames = weekdayNamesByLocale.en;
16
+
17
+ /** The longest abbreviated name a header row takes; the generator uses the same. */
18
+ export const MAX_ABBREVIATED_HEADER_LENGTH = 4;
19
+ function fitsHeader(names) {
20
+ return names.every(name => characterCount(name) <= MAX_ABBREVIATED_HEADER_LENGTH);
21
+ }
22
+
23
+ /**
24
+ * A language with no generated row keeps its own words. `Intl` has no CLDR
25
+ * short width, so names too long for the column fall to the narrow width.
26
+ */
27
+ function sundayFirstNames(locale) {
28
+ let parsed;
29
+ try {
30
+ parsed = new Intl.Locale(locale);
31
+ } catch {
32
+ return englishWeekdayNames;
33
+ }
34
+ const generated = weekdayNamesByLocale[parsed.baseName] ?? weekdayNamesByLocale[parsed.language];
35
+ if (generated != null) {
36
+ return generated;
37
+ }
38
+ const abbreviated = plainDateWeekdayNames(parsed.baseName);
39
+ if (abbreviated == null) {
40
+ return englishWeekdayNames;
41
+ }
42
+ if (fitsHeader(abbreviated)) {
43
+ return abbreviated;
44
+ }
45
+ return plainDateWeekdayNames(parsed.baseName, 'narrow') ?? englishWeekdayNames;
46
+ }
47
+
48
+ /** One weekday header cell: its day of week (a stable key, since narrow names repeat) and its name. */
49
+
50
+ /**
51
+ * The seven weekday headers for a locale, in column order for the week that
52
+ * starts on `weekStartsOn`. Unicode extensions are ignored.
53
+ */
54
+ export function getWeekdayHeaders(locale, weekStartsOn = 0) {
55
+ const names = sundayFirstNames(locale);
56
+ return Array.from({
57
+ length: 7
58
+ }, (_, offset) => {
59
+ const dayOfWeek = (weekStartsOn + offset) % 7;
60
+ return {
61
+ dayOfWeek,
62
+ name: names[dayOfWeek]
63
+ };
64
+ });
65
+ }
66
+
67
+ /** The names alone, in the same order as `getWeekdayHeaders`. */
68
+ export function getWeekdayHeaderNames(locale, weekStartsOn = 0) {
69
+ return getWeekdayHeaders(locale, weekStartsOn).map(header => header.name);
70
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"useCalendarDays.d.ts","sourceRoot":"","sources":["../../../src/Calendar/hooks/useCalendarDays.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAC,SAAS,EAAE,aAAa,EAAC,MAAM,uBAAuB,CAAC;AACpE,OAAO,EACL,KAAK,SAAS,EAKf,MAAM,uBAAuB,CAAC;AAI/B;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,iCAAiC;IACjC,IAAI,EAAE,SAAS,CAAC;IAChB,mCAAmC;IACnC,GAAG,EAAE,aAAa,CAAC;IACnB,oDAAoD;IACpD,SAAS,EAAE,OAAO,CAAC;IACnB,4BAA4B;IAC5B,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,oCAAoC;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,sDAAsD;IACtD,KAAK,EAAE,MAAM,CAAC;IACd,sDAAsD;IACtD,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,uDAAuD;IACvD,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,mDAAmD;IACnD,IAAI,EAAE,WAAW,EAAE,CAAC;IACpB,8BAA8B;IAC9B,KAAK,EAAE,WAAW,EAAE,EAAE,CAAC;IACvB,yCAAyC;IACzC,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,wCAAwC;IACxC,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,sBAAsB,GAC9B,qBAAqB,CAgFvB"}
1
+ {"version":3,"file":"useCalendarDays.d.ts","sourceRoot":"","sources":["../../../src/Calendar/hooks/useCalendarDays.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAC,SAAS,EAAE,aAAa,EAAC,MAAM,uBAAuB,CAAC;AACpE,OAAO,EACL,KAAK,SAAS,EAKf,MAAM,uBAAuB,CAAC;AAI/B;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,iCAAiC;IACjC,IAAI,EAAE,SAAS,CAAC;IAChB,mCAAmC;IACnC,GAAG,EAAE,aAAa,CAAC;IACnB,oDAAoD;IACpD,SAAS,EAAE,OAAO,CAAC;IACnB,4BAA4B;IAC5B,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,oCAAoC;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,sDAAsD;IACtD,KAAK,EAAE,MAAM,CAAC;IACd,sDAAsD;IACtD,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,uDAAuD;IACvD,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,mDAAmD;IACnD,IAAI,EAAE,WAAW,EAAE,CAAC;IACpB,8BAA8B;IAC9B,KAAK,EAAE,WAAW,EAAE,EAAE,CAAC;IACvB,yCAAyC;IACzC,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,wCAAwC;IACxC,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,sBAAsB,GAC9B,qBAAqB,CA2EvB"}
@@ -14,7 +14,7 @@
14
14
  import { useMemo } from 'react';
15
15
  import { plainDateToISO, getDaysInMonth, plainDateDayOfWeek, plainDateAddDays } from "../../utils/plainDate.js";
16
16
  import { useLocale } from "../../i18n/index.js";
17
- import { getStandaloneShortWeekdayNames } from "../getStandaloneShortWeekdayNames.js";
17
+ import { getWeekdayHeaderNames } from "../getWeekdayHeaderNames.js";
18
18
 
19
19
  /**
20
20
  * Represents a single day in the calendar grid.
@@ -77,15 +77,7 @@ export function useCalendarDays(options) {
77
77
  totalCells
78
78
  };
79
79
  }, [year, month, weekStartsOn, hasVariableRowCount]);
80
-
81
- // Generated strings avoid Date anchors, so weekday headers cannot shift with
82
- // the runtime timezone. Keep numeric indices as the rotation source of truth.
83
- const dayNames = useMemo(() => {
84
- const names = getStandaloneShortWeekdayNames(locale);
85
- return Array.from({
86
- length: 7
87
- }, (_, index) => names[(index + weekStartsOn) % 7]);
88
- }, [locale, weekStartsOn]);
80
+ const dayNames = useMemo(() => getWeekdayHeaderNames(locale, weekStartsOn), [locale, weekStartsOn]);
89
81
 
90
82
  // Generate days array
91
83
  const days = useMemo(() => {
@@ -2,7 +2,7 @@
2
2
  * @generated by scripts/generate-cldr-weekdays.mjs from Unicode CLDR 48.2.0.
3
3
  * Do not edit by hand. Run `pnpm generate:cldr-weekdays` instead.
4
4
  */
5
- export type StandaloneShortWeekdayNames = readonly [
5
+ export type WeekdayHeaderNames = readonly [
6
6
  string,
7
7
  string,
8
8
  string,
@@ -11,37 +11,37 @@ export type StandaloneShortWeekdayNames = readonly [
11
11
  string,
12
12
  string
13
13
  ];
14
- export declare const standaloneShortWeekdayNamesByLocale: {
14
+ export declare const weekdayHeaderNamesByLocale: {
15
15
  readonly af: readonly ["So.", "Ma.", "Di.", "Wo.", "Do.", "Vr.", "Sa."];
16
16
  readonly ar: readonly ["أحد", "إثنين", "ثلاثاء", "أربعاء", "خميس", "جمعة", "سبت"];
17
17
  readonly 'ar-SA': readonly ["أحد", "إثنين", "ثلاثاء", "أربعاء", "خميس", "جمعة", "سبت"];
18
18
  readonly ca: readonly ["dg.", "dl.", "dt.", "dc.", "dj.", "dv.", "ds."];
19
19
  readonly cs: readonly ["ne", "po", "út", "st", "čt", "pá", "so"];
20
20
  readonly da: readonly ["sø.", "ma.", "ti.", "on.", "to.", "fr.", "lø."];
21
- readonly de: readonly ["So.", "Mo.", "Di.", "Mi.", "Do.", "Fr.", "Sa."];
22
- readonly el: readonly ["Κυ", "Δε", "Τρ", "Τε", "Πέ", "Πα", "Σά"];
23
- readonly en: readonly ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"];
24
- readonly es: readonly ["DO", "LU", "MA", "MI", "JU", "VI", "SA"];
21
+ readonly de: readonly ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"];
22
+ readonly el: readonly ["Κυρ", "Δευ", "Τρί", "Τετ", "Πέμ", "Παρ", "Σάβ"];
23
+ readonly en: readonly ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
24
+ readonly es: readonly ["dom", "lun", "mar", "mié", "jue", "vie", "sáb"];
25
25
  readonly fi: readonly ["su", "ma", "ti", "ke", "to", "pe", "la"];
26
- readonly fr: readonly ["di", "lu", "ma", "me", "je", "ve", "sa"];
26
+ readonly fr: readonly ["dim.", "lun.", "mar.", "mer.", "jeu.", "ven.", "sam."];
27
27
  readonly he: readonly ["א׳", "ב׳", "ג׳", "ד׳", "ה׳", "ו׳", "ש׳"];
28
28
  readonly hu: readonly ["V", "H", "K", "Sze", "Cs", "P", "Szo"];
29
29
  readonly it: readonly ["dom", "lun", "mar", "mer", "gio", "ven", "sab"];
30
30
  readonly ja: readonly ["日", "月", "火", "水", "木", "金", "土"];
31
31
  readonly ko: readonly ["일", "월", "화", "수", "목", "금", "토"];
32
32
  readonly nl: readonly ["zo", "ma", "di", "wo", "do", "vr", "za"];
33
- readonly no: readonly ["sø.", "ma.", "ti.", "on.", "to.", "fr.", "lø."];
33
+ readonly no: readonly ["søn.", "man.", "tir.", "ons.", "tor.", "fre.", "lør."];
34
34
  readonly pl: readonly ["nie", "pon", "wto", "śro", "czw", "pią", "sob"];
35
35
  readonly pt: readonly ["dom.", "seg.", "ter.", "qua.", "qui.", "sex.", "sáb."];
36
36
  readonly 'pt-PT': readonly ["dom.", "seg.", "ter.", "qua.", "qui.", "sex.", "sáb."];
37
- readonly ro: readonly ["du.", "lu.", "ma.", "mi.", "joi", "vi.", "sâ."];
37
+ readonly ro: readonly ["dum.", "lun.", "mar.", "mie.", "joi", "vin.", "sâm."];
38
38
  readonly ru: readonly ["вс", "пн", "вт", "ср", "чт", "пт", "сб"];
39
- readonly sr: readonly ["не", "по", "ут", "ср", "че", "пе", "су"];
40
- readonly sv: readonly ["sö", "må", "ti", "on", "to", "fr", "lö"];
41
- readonly tr: readonly ["Pa", "Pt", "Sa", "Ça", "Pe", "Cu", "Ct"];
39
+ readonly sr: readonly ["нед", "пон", "уто", "сре", "чет", "пет", "суб"];
40
+ readonly sv: readonly ["sön", "mån", "tis", "ons", "tors", "fre", "lör"];
41
+ readonly tr: readonly ["Paz", "Pzt", "Sal", "Çar", "Per", "Cum", "Cmt"];
42
42
  readonly uk: readonly ["нд", "пн", "вт", "ср", "чт", "пт", "сб"];
43
43
  readonly vi: readonly ["CN", "T2", "T3", "T4", "T5", "T6", "T7"];
44
44
  readonly zh: readonly ["周日", "周一", "周二", "周三", "周四", "周五", "周六"];
45
- readonly 'zh-TW': readonly ["日", "一", "二", "三", "四", "五", "六"];
45
+ readonly 'zh-TW': readonly ["週日", "週一", "週二", "週三", "週四", "週五", "週六"];
46
46
  };
47
- //# sourceMappingURL=standaloneShortWeekdayNames.generated.d.ts.map
47
+ //# sourceMappingURL=weekdayHeaderNames.generated.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"weekdayHeaderNames.generated.d.ts","sourceRoot":"","sources":["../../src/Calendar/weekdayHeaderNames.generated.ts"],"names":[],"mappings":"AAEA;;;GAGG;AAEH,MAAM,MAAM,kBAAkB,GAAG,SAAS;IACxC,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;CACP,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgC0B,CAAC"}
@@ -5,36 +5,36 @@
5
5
  * Do not edit by hand. Run `pnpm generate:cldr-weekdays` instead.
6
6
  */
7
7
 
8
- export const standaloneShortWeekdayNamesByLocale = {
8
+ export const weekdayHeaderNamesByLocale = {
9
9
  af: ['So.', 'Ma.', 'Di.', 'Wo.', 'Do.', 'Vr.', 'Sa.'],
10
10
  ar: ['أحد', 'إثنين', 'ثلاثاء', 'أربعاء', 'خميس', 'جمعة', 'سبت'],
11
11
  'ar-SA': ['أحد', 'إثنين', 'ثلاثاء', 'أربعاء', 'خميس', 'جمعة', 'سبت'],
12
12
  ca: ['dg.', 'dl.', 'dt.', 'dc.', 'dj.', 'dv.', 'ds.'],
13
13
  cs: ['ne', 'po', 'út', 'st', 'čt', 'pá', 'so'],
14
14
  da: ['sø.', 'ma.', 'ti.', 'on.', 'to.', 'fr.', 'lø.'],
15
- de: ['So.', 'Mo.', 'Di.', 'Mi.', 'Do.', 'Fr.', 'Sa.'],
16
- el: ['Κυ', 'Δε', 'Τρ', 'Τε', 'Πέ', 'Πα', 'Σά'],
17
- en: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
18
- es: ['DO', 'LU', 'MA', 'MI', 'JU', 'VI', 'SA'],
15
+ de: ['So', 'Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa'],
16
+ el: ['Κυρ', 'Δευ', 'Τρί', 'Τετ', 'Πέμ', 'Παρ', 'Σάβ'],
17
+ en: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
18
+ es: ['dom', 'lun', 'mar', 'mié', 'jue', 'vie', 'sáb'],
19
19
  fi: ['su', 'ma', 'ti', 'ke', 'to', 'pe', 'la'],
20
- fr: ['di', 'lu', 'ma', 'me', 'je', 've', 'sa'],
20
+ fr: ['dim.', 'lun.', 'mar.', 'mer.', 'jeu.', 'ven.', 'sam.'],
21
21
  he: ['א׳', 'ב׳', 'ג׳', 'ד׳', 'ה׳', 'ו׳', 'ש׳'],
22
22
  hu: ['V', 'H', 'K', 'Sze', 'Cs', 'P', 'Szo'],
23
23
  it: ['dom', 'lun', 'mar', 'mer', 'gio', 'ven', 'sab'],
24
24
  ja: ['日', '月', '火', '水', '木', '金', '土'],
25
25
  ko: ['일', '월', '화', '수', '목', '금', '토'],
26
26
  nl: ['zo', 'ma', 'di', 'wo', 'do', 'vr', 'za'],
27
- no: ['sø.', 'ma.', 'ti.', 'on.', 'to.', 'fr.', 'lø.'],
27
+ no: ['søn.', 'man.', 'tir.', 'ons.', 'tor.', 'fre.', 'lør.'],
28
28
  pl: ['nie', 'pon', 'wto', 'śro', 'czw', 'pią', 'sob'],
29
29
  pt: ['dom.', 'seg.', 'ter.', 'qua.', 'qui.', 'sex.', 'sáb.'],
30
30
  'pt-PT': ['dom.', 'seg.', 'ter.', 'qua.', 'qui.', 'sex.', 'sáb.'],
31
- ro: ['du.', 'lu.', 'ma.', 'mi.', 'joi', 'vi.', 'sâ.'],
31
+ ro: ['dum.', 'lun.', 'mar.', 'mie.', 'joi', 'vin.', 'sâm.'],
32
32
  ru: ['вс', 'пн', 'вт', 'ср', 'чт', 'пт', 'сб'],
33
- sr: ['не', 'по', 'ут', 'ср', 'че', 'пе', 'су'],
34
- sv: ['sö', 'må', 'ti', 'on', 'to', 'fr', 'lö'],
35
- tr: ['Pa', 'Pt', 'Sa', 'Ça', 'Pe', 'Cu', 'Ct'],
33
+ sr: ['нед', 'пон', 'уто', 'сре', 'чет', 'пет', 'суб'],
34
+ sv: ['sön', 'mån', 'tis', 'ons', 'tors', 'fre', 'lör'],
35
+ tr: ['Paz', 'Pzt', 'Sal', 'Çar', 'Per', 'Cum', 'Cmt'],
36
36
  uk: ['нд', 'пн', 'вт', 'ср', 'чт', 'пт', 'сб'],
37
37
  vi: ['CN', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7'],
38
38
  zh: ['周日', '周一', '周二', '周三', '周四', '周五', '周六'],
39
- 'zh-TW': ['日', '一', '二', '三', '四', '五', '六']
39
+ 'zh-TW': ['週日', '週一', '週二', '週三', '週四', '週五', '週六']
40
40
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ChatComposerInput.d.ts","sourceRoot":"","sources":["../../src/Chat/ChatComposerInput.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,EAML,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,cAAc,EAEpB,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAC,cAAc,EAAE,YAAY,EAAC,MAAM,oBAAoB,CAAC;AAqBrE,OAAO,EAEL,KAAK,yBAAyB,EAC/B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAQ,KAAK,UAAU,EAAC,MAAM,UAAU,CAAC;AAGhD,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,0BAA0B,CAAC;AAa3D,mEAAmE;AACnE,MAAM,WAAW,uBAAuB;IACtC,iEAAiE;IACjE,WAAW,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,MAAM,GAAG,SAAS,CAAC;IAC9D,6EAA6E;IAC7E,WAAW,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,uDAAuD;IACvD,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,sBAAsB;IACtB,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,uCAAuC;IACvC,QAAQ,EAAE,MAAM,MAA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AAC,EAAE,CAAC,KAAK,EAAE,aAAa,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;IAC3D;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B;AAwGD,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,+BAonB9D;yBApnBe,iBAAiB;;;AA4nBjC,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,6BAA6B,+BAkB5E;yBAlBe,wBAAwB"}
@@ -40,6 +40,7 @@ import { useChatPasteAsToken } from "./useChatPasteAsToken.js";
40
40
  import { Badge } from "../Badge/index.js";
41
41
  import { useChatComposerContext } from "./ChatContext.js";
42
42
  import { themeProps } from "../utils/themeProps.js";
43
+ import { withholdCallerHandlers } from "../utils/disabledInteraction.js";
43
44
  import { registerEnglishFallback, useComponentTranslator } from "../i18n/useComponentTranslator.js";
44
45
  import english from "../i18n/generated-english/Chat/ChatComposerInput.generated.js";
45
46
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
@@ -158,7 +159,7 @@ export function ChatComposerInput(props) {
158
159
  } = props;
159
160
  // Keep focus/blur observation available, but do not forward activation or
160
161
  // editing callbacks from the disabled root (including capture handlers).
161
- const rootProps = isDisabled ? Object.fromEntries(Object.entries(rest).filter(([key]) => !/^on[A-Z]/.test(key) || /^on(Focus|Blur)/.test(key))) : rest;
162
+ const rootProps = withholdCallerHandlers(rest, isDisabled);
162
163
  const label = labelFromProps ?? t('@astryx.chat.composerInput.label');
163
164
  const placeholder = placeholderFromProps ?? composerCtx?.placeholder ?? t('@astryx.chat.composer.placeholder');
164
165
  const composerOnChange = composerCtx?.onChange;
@@ -1 +1 @@
1
- {"version":3,"file":"TouchDateField.d.ts","sourceRoot":"","sources":["../../src/DateInput/TouchDateField.tsx"],"names":[],"mappings":"AAiEA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;AAwehD;;;GAGG;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,WAAW,EAAE,oBAAoB,EACjC,IAAI,EAAE,QAAQ,EACd,MAAM,EACN,aAA0B,EAC1B,YAAY,EACZ,QAAgB,EAIhB,cAAc,EAAE,eAAe,EAC/B,YAAY,EAAE,gBAAoB,EAClC,MAAoB,EACpB,KAAK,EACL,eAAe,EACf,kBAAkB,EAClB,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,YAAY,EACZ,GAAG,EACH,GAAG,SAAS,EACb,EAAE,cAAc,+BAixBhB;yBArzBe,cAAc"}
1
+ {"version":3,"file":"TouchDateField.d.ts","sourceRoot":"","sources":["../../src/DateInput/TouchDateField.tsx"],"names":[],"mappings":"AAiEA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;AAuehD;;;GAGG;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,WAAW,EAAE,oBAAoB,EACjC,IAAI,EAAE,QAAQ,EACd,MAAM,EACN,aAA0B,EAC1B,YAAY,EACZ,QAAgB,EAIhB,cAAc,EAAE,eAAe,EAC/B,YAAY,EAAE,gBAAoB,EAClC,MAAoB,EACpB,KAAK,EACL,eAAe,EACf,kBAAkB,EAClB,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,YAAY,EACZ,GAAG,EACH,GAAG,SAAS,EACb,EAAE,cAAc,+BAuvBhB;yBA3xBe,cAAc"}
@@ -70,12 +70,13 @@ import "../theme/tokens.stylex.js";
70
70
  import { colorVars, spacingVars, radiusVars, sizeVars, borderVars, fontWeightVars, typeScaleVars, typographyVars, durationVars, easeVars } from "../theme/tokens.stylex.js";
71
71
  import { useTooltip } from "../Tooltip/index.js";
72
72
  import { VisuallyHidden } from "../VisuallyHidden/index.js";
73
- import { focusOutlineStyles, getInputARIA, isImeKeyEvent, mergeProps, rtlStyles, themeProps, formatSharedDate, plainDateFromISO, plainDateToday, plainDateFormat, DATE_FORMAT_WEEKDAY_ONLY } from "../utils/index.js";
73
+ import { focusOutlineStyles, getInputARIA, isImeKeyEvent, mergeProps, rtlStyles, themeProps, formatSharedDate, plainDateFromISO, plainDateToday } from "../utils/index.js";
74
74
  import { plainDateFormatStandaloneMonthYear } from "../utils/plainDate.js";
75
75
  import { chainEventHandlers } from "../utils/chainEventHandlers.js";
76
76
  import { interactionOverlayStyles } from "../utils/interactionOverlay.stylex.js";
77
77
  import { usePressFeedback } from "../hooks/usePressFeedback.js";
78
78
  import { normalizeDayOfWeek } from "../utils/dateTypes.js";
79
+ import { getWeekdayHeaders } from "../Calendar/getWeekdayHeaderNames.js";
79
80
  import { MonthScroller } from "./MonthScroller.js";
80
81
  import { MonthYearWheels } from "./MonthYearWheels.js";
81
82
  import { DEFAULT_MONTH_REACH, clampIndex, fromMonthIndex, monthIndexOf } from "./monthGeometry.js";
@@ -343,33 +344,7 @@ export function TouchDateField({
343
344
  year,
344
345
  month
345
346
  } = fromMonthIndex(monthIndex);
346
-
347
- /**
348
- * Three-letter weekday names — "Sun", not Calendar's "Su".
349
- *
350
- * The sheet is full width and the columns are ~51px, so there is room for
351
- * the form people actually read, and a picker operated by thumb should not
352
- * make anyone decode "Tu" against "Th".
353
- *
354
- * This is CLDR's `abbreviated` width, which `Intl` produces natively — no
355
- * truncation, so the 28 non-English locales stay correct rather than being
356
- * sliced to three characters. (Verified against the CLDR tables for all 30
357
- * locales in the catalog.) Calendar's 2-letter row is CLDR's *short* width,
358
- * which `Intl` cannot express, which is exactly why that surface needs a
359
- * generated table and this one does not.
360
- *
361
- * Built here rather than taken from `useCalendarDays`, which supplies the
362
- * short form for Calendar's own header. The rotation matches: day 4 of
363
- * January 1970 was a Sunday, so offsetting from it by `weekStartsOn` walks
364
- * the week in the same order the panes lay out their columns.
365
- */
366
- const dayNames = useMemo(() => Array.from({
367
- length: 7
368
- }, (_, offset) => plainDateFormat({
369
- year: 1970,
370
- month: 1,
371
- day: 4 + (weekStartsOn + offset) % 7
372
- }, DATE_FORMAT_WEEKDAY_ONLY, locale)), [locale, weekStartsOn]);
347
+ const weekdayHeaders = useMemo(() => getWeekdayHeaders(locale, weekStartsOn), [locale, weekStartsOn]);
373
348
  const monthYearLabel = plainDateFormatStandaloneMonthYear({
374
349
  year,
375
350
  month,
@@ -690,12 +665,15 @@ export function TouchDateField({
690
665
  className: "xrvj5dj x1mzazjb x6k0iem x6s0dn4 x1jl3cmp xuedmi6 xcj1dhv xzg1mie xlshs6z xg01cxk"
691
666
  }
692
667
  }[!!isWheelOpen << 0],
693
- children: dayNames.map(name => /*#__PURE__*/_jsx("div", {
668
+ children: weekdayHeaders.map(({
669
+ dayOfWeek,
670
+ name
671
+ }) => /*#__PURE__*/_jsx("div", {
694
672
  ...{
695
673
  className: "x2b8uid x141an7d x1sodnla xv1l7n4"
696
674
  },
697
675
  children: name
698
- }, name))
676
+ }, dayOfWeek))
699
677
  }), /*#__PURE__*/_jsxs("div", {
700
678
  ...{
701
679
  className: "xrvj5dj xm8gem x1n2onr6"
@@ -1 +1 @@
1
- {"version":3,"file":"TouchDateTimeField.d.ts","sourceRoot":"","sources":["../../src/DateTimeInput/TouchDateTimeField.tsx"],"names":[],"mappings":"AA6GA,OAAO,KAAK,EAAC,kBAAkB,EAAoB,MAAM,iBAAiB,CAAC;AAoV3E,wBAAgB,kBAAkB,CAAC,EACjC,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,UAAkB,EAClB,UAAkB,EAElB,aAAa,EAAE,cAAc,EAC7B,kBAAkB,EAAE,mBAAmB,EACvC,QAAgB,EAChB,WAAW,EAAE,oBAAoB,EACjC,eAAe,EAAE,wBAAwB,EACzC,SAAS,EACT,IAAI,EAAE,QAAQ,EACd,MAAM,EACN,YAAY,EAEZ,cAAc,EAAE,eAAe,EAC/B,YAAY,EAAE,gBAAoB,EAClC,KAAK,EACL,eAAe,EACf,kBAAkB,EAClB,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,YAAY,EACZ,GAAG,EACH,GAAG,SAAS,EACb,EAAE,kBAAkB,+BAggCpB;yBAviCe,kBAAkB"}
1
+ {"version":3,"file":"TouchDateTimeField.d.ts","sourceRoot":"","sources":["../../src/DateTimeInput/TouchDateTimeField.tsx"],"names":[],"mappings":"AA6GA,OAAO,KAAK,EAAC,kBAAkB,EAAoB,MAAM,iBAAiB,CAAC;AAoV3E,wBAAgB,kBAAkB,CAAC,EACjC,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,UAAkB,EAClB,UAAkB,EAElB,aAAa,EAAE,cAAc,EAC7B,kBAAkB,EAAE,mBAAmB,EACvC,QAAgB,EAChB,WAAW,EAAE,oBAAoB,EACjC,eAAe,EAAE,wBAAwB,EACzC,SAAS,EACT,IAAI,EAAE,QAAQ,EACd,MAAM,EACN,YAAY,EAEZ,cAAc,EAAE,eAAe,EAC/B,YAAY,EAAE,gBAAoB,EAClC,KAAK,EACL,eAAe,EACf,kBAAkB,EAClB,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,YAAY,EACZ,GAAG,EACH,GAAG,SAAS,EACb,EAAE,kBAAkB,+BAy/BpB;yBAhiCe,kBAAkB"}
@@ -45,10 +45,11 @@ import { rtlStyles } from "../utils/rtlStyles.js";
45
45
  import { themeProps } from "../utils/themeProps.js";
46
46
  import { normalizeDayOfWeek } from "../utils/dateTypes.js";
47
47
  import { formatLocaleTime } from "../utils/timeFormat.js";
48
+ import { getWeekdayHeaders } from "../Calendar/getWeekdayHeaderNames.js";
48
49
  import { formatISOTime, isImeKeyEvent, isRenderable, isTimeInRange, clampTime, mergeProps, parseISOTime } from "../utils/index.js";
49
50
  import { chainEventHandlers } from "../utils/chainEventHandlers.js";
50
51
  import { joinAriaIDs } from "../utils/inputAria.js";
51
- import { DATE_FORMAT_LONG, DATE_FORMAT_WEEKDAY_ONLY, plainDateFormat, plainDateFromISO, plainDateToday } from "../utils/plainDate.js";
52
+ import { DATE_FORMAT_LONG, plainDateFormat, plainDateFromISO, plainDateToday } from "../utils/plainDate.js";
52
53
  import { plainDateFormatStandaloneMonthYear } from "../utils/plainDate.js";
53
54
  import { MonthScroller } from "../DateInput/MonthScroller.js";
54
55
  import { MonthYearWheels } from "../DateInput/MonthYearWheels.js";
@@ -398,13 +399,7 @@ export function TouchDateTimeField({
398
399
  } = fromMonthIndex(monthIndex);
399
400
  const canStepBack = monthIndex > minMonthIndex;
400
401
  const canStepForward = monthIndex < maxMonthIndex;
401
- const dayNames = useMemo(() => Array.from({
402
- length: 7
403
- }, (_, offset) => plainDateFormat({
404
- year: 1970,
405
- month: 1,
406
- day: 4 + (weekStartsOn + offset) % 7
407
- }, DATE_FORMAT_WEEKDAY_ONLY, locale)), [weekStartsOn, locale]);
402
+ const weekdayHeaders = useMemo(() => getWeekdayHeaders(locale, weekStartsOn), [locale, weekStartsOn]);
408
403
  const monthYearLabel = plainDateFormatStandaloneMonthYear({
409
404
  year,
410
405
  month,
@@ -757,12 +752,15 @@ export function TouchDateTimeField({
757
752
  ...{
758
753
  className: "xrvj5dj x1mzazjb x6k0iem x6s0dn4"
759
754
  },
760
- children: dayNames.map(name => /*#__PURE__*/_jsx("div", {
755
+ children: weekdayHeaders.map(({
756
+ dayOfWeek,
757
+ name
758
+ }) => /*#__PURE__*/_jsx("div", {
761
759
  ...{
762
760
  className: "x2b8uid x141an7d x1sodnla xv1l7n4"
763
761
  },
764
762
  children: name
765
- }, name))
763
+ }, dayOfWeek))
766
764
  }), /*#__PURE__*/_jsx(MonthScroller, {
767
765
  handleRef: scrollerHandleRef,
768
766
  minMonthIndex: minMonthIndex,
@@ -31,7 +31,7 @@ import { afterPopoverOperations, isBrowserHideInFlight, isPopoverOperationInFlig
31
31
  import { preserveAnimations } from "./preserveAnimations.js";
32
32
  import { useLayerContext } from "./LayerContext.js";
33
33
  import { useIsomorphicLayoutEffect } from "../hooks/useIsomorphicLayoutEffect.js";
34
- import { overlayPaddingReset } from "../Layout/padding.stylex.js";
34
+ import { overlayPaddingReset } from "../Layout/overlayPaddingReset.stylex.js";
35
35
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
36
36
  const _temp = {
37
37
  keoZOQ: "x1vhfslr",
@@ -8,7 +8,7 @@
8
8
  */
9
9
  export { container } from './container.stylex.js';
10
10
  export type { ContainerComponent, ContainerOptions, SpacingToken, } from './container.stylex.js';
11
- export { overlayPaddingReset } from './padding.stylex.js';
11
+ export { overlayPaddingReset } from './overlayPaddingReset.stylex.js';
12
12
  export { edgeCompSlot, EDGE_COMP_ATTR } from './edgeCompensation.stylex.js';
13
13
  export { stack } from '../Stack/stack.stylex.js';
14
14
  export type { StackOptions, StackDirection, StackCrossAlignment, StackMainAlignment, StackWrap, SpacingStep, } from '../Stack/stack.stylex.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Layout/index.ts"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AAGH,OAAO,EAAC,SAAS,EAAC,MAAM,oBAAoB,CAAC;AAC7C,YAAY,EACV,kBAAkB,EAClB,gBAAgB,EAChB,YAAY,GACb,MAAM,oBAAoB,CAAC;AAI5B,OAAO,EAAC,mBAAmB,EAAC,MAAM,kBAAkB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,OAAO,EAAC,MAAM,YAAY,CAAC;AACnC,YAAY,EAAC,YAAY,EAAE,cAAc,EAAC,MAAM,YAAY,CAAC;AAE7D,YAAY,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAG9C,OAAO,EAAC,MAAM,EAAC,MAAM,UAAU,CAAC;AAChC,YAAY,EAAC,WAAW,EAAE,YAAY,EAAC,MAAM,UAAU,CAAC;AAExD,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAC5C,YAAY,EAAC,iBAAiB,EAAC,MAAM,gBAAgB,CAAC;AAEtD,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAC5C,YAAY,EAAC,iBAAiB,EAAC,MAAM,gBAAgB,CAAC;AAEtD,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,YAAY,EAAC,kBAAkB,EAAC,MAAM,iBAAiB,CAAC;AAExD,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAC1C,YAAY,EAAC,gBAAgB,EAAC,MAAM,eAAe,CAAC;AAEpD,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AACtD,YAAY,EAAC,UAAU,EAAC,MAAM,qBAAqB,CAAC;AAEpD,OAAO,EAAC,oBAAoB,EAAC,MAAM,wBAAwB,CAAC;AAC5D,YAAY,EAAC,yBAAyB,EAAC,MAAM,wBAAwB,CAAC"}
@@ -15,7 +15,7 @@
15
15
  export { container } from "./container.stylex.js";
16
16
  // Overlay padding-variable reset (applied on overlay roots so the container
17
17
  // padding system does not cross a fixed/top-layer boundary)
18
- export { overlayPaddingReset } from "./padding.stylex.js";
18
+ export { overlayPaddingReset } from "./overlayPaddingReset.stylex.js";
19
19
 
20
20
  // Edge compensation utility
21
21
  export { edgeCompSlot, EDGE_COMP_ATTR } from "./edgeCompensation.stylex.js";
@@ -18,7 +18,7 @@
18
18
  */
19
19
 
20
20
  import * as stylex from '@stylexjs/stylex';
21
- import { overlayPaddingReset } from "./padding.stylex.js";
21
+ import { overlayPaddingReset } from "./overlayPaddingReset.stylex.js";
22
22
  const resetBeyondOverlays = {
23
23
  root: {
24
24
  "--layout-content-width": "x1vpwbdg",
@@ -0,0 +1,68 @@
1
+ /**
2
+ * @file overlayPaddingReset.stylex.ts
3
+ * @input Uses @stylexjs/stylex
4
+ * @output overlayPaddingReset: the container padding boundary at an overlay's root
5
+ * @position Layout utility, re-exported by padding.stylex.ts and Layout/index.ts.
6
+ * Its own module so an overlay's eager code (useLayer) imports it without
7
+ * padding.stylex.ts: a lazily loaded overlay that uses the container padding
8
+ * styles there then keeps them out of the eager chunk it shares with this
9
+ * module.
10
+ */
11
+ import * as stylex from '@stylexjs/stylex';
12
+ /**
13
+ * Padding-variable reset for overlay roots (Dialog, BottomSheet, Drawer,
14
+ * MobileNav, Lightbox, and every layer surface).
15
+ *
16
+ * ## Why an overlay needs this
17
+ *
18
+ * The container padding system talks to descendants through inherited custom
19
+ * properties: a padded container announces its padding, and children read the
20
+ * value either to apply it or to cancel it with a negative margin
21
+ * (`Section`, `Divider`, `Layout`, `Table`).
22
+ *
23
+ * Inheritance follows the DOM, but an overlay leaves its parent's visual box —
24
+ * a fixed/top-layer `<dialog>` is a DOM descendant of the padded page while
25
+ * being nowhere near it on screen. It inherits values describing padding that
26
+ * is not there, and its content compensates against phantom space: a `Section`
27
+ * inside a 640px sheet rendered 672px wide and hung off both edges.
28
+ *
29
+ * Two families leak, and they need opposite treatments:
30
+ *
31
+ * - `--container-padding-*` -> `0px`. Descendants SUBTRACT these (bleed
32
+ * margins). The overlay root has no padding of its own to escape, so the
33
+ * honest answer is zero. Nested containers that do set padding (a Dialog's
34
+ * content wrapper) re-announce their own values below this point, so
35
+ * legitimate edge-to-edge bleed inside the overlay is unaffected.
36
+ * - `--layout-padding-*` and `--_section-padding-propagated` -> `initial`.
37
+ * Descendants ADD these, so zeroing them would strip padding rather than
38
+ * restore it. `initial` makes each guaranteed-invalid, so readers fall
39
+ * through their own `var(…, fallback)` chain and land on the theme default —
40
+ * which is what an overlay at the top of the tree should show.
41
+ *
42
+ * `initial` is also why propagation moved off `--astryx-section-padding`: that
43
+ * name is public theme surface, set at the theme root, and making it invalid
44
+ * here would blank the theme's own section padding inside every overlay.
45
+ *
46
+ * Apply on the overlay's outermost styled element.
47
+ *
48
+ * @example
49
+ * ```
50
+ * <dialog {...stylex.props(styles.dialog, overlayPaddingReset.reset)} />
51
+ * ```
52
+ */
53
+ export declare const overlayPaddingReset: Readonly<{
54
+ readonly reset: Readonly<{
55
+ readonly '--container-padding-inline-start': stylex.StyleXClassNameFor<"--container-padding-inline-start", "0px">;
56
+ readonly '--container-padding-inline-end': stylex.StyleXClassNameFor<"--container-padding-inline-end", "0px">;
57
+ readonly '--container-padding-block-start': stylex.StyleXClassNameFor<"--container-padding-block-start", "0px">;
58
+ readonly '--container-padding-block-end': stylex.StyleXClassNameFor<"--container-padding-block-end", "0px">;
59
+ readonly '--layout-padding-outer-x': stylex.StyleXClassNameFor<"--layout-padding-outer-x", "initial">;
60
+ readonly '--layout-padding-outer-y': stylex.StyleXClassNameFor<"--layout-padding-outer-y", "initial">;
61
+ readonly '--layout-padding-own-outer-x': stylex.StyleXClassNameFor<"--layout-padding-own-outer-x", "initial">;
62
+ readonly '--layout-padding-own-outer-y': stylex.StyleXClassNameFor<"--layout-padding-own-outer-y", "initial">;
63
+ readonly '--layout-padding-inner-x': stylex.StyleXClassNameFor<"--layout-padding-inner-x", "initial">;
64
+ readonly '--layout-padding-inner-y': stylex.StyleXClassNameFor<"--layout-padding-inner-y", "initial">;
65
+ readonly '--_section-padding-propagated': stylex.StyleXClassNameFor<"--_section-padding-propagated", "initial">;
66
+ }>;
67
+ }>;
68
+ //# sourceMappingURL=overlayPaddingReset.stylex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"overlayPaddingReset.stylex.d.ts","sourceRoot":"","sources":["../../src/Layout/overlayPaddingReset.stylex.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AAEH,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAC;AAE3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;EAgB9B,CAAC"}