@astryxdesign/core 0.7.2-canary.db3a2e7 → 0.7.2-canary.e2909cf

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 (143) hide show
  1. package/dist/AspectRatio/AspectRatio.d.ts +6 -8
  2. package/dist/AspectRatio/AspectRatio.d.ts.map +1 -1
  3. package/dist/AspectRatio/AspectRatio.js +44 -3
  4. package/dist/CheckboxInput/CheckboxInput.d.ts +1 -1
  5. package/dist/CheckboxInput/CheckboxInput.d.ts.map +1 -1
  6. package/dist/CheckboxInput/CheckboxInput.js +3 -1
  7. package/dist/CheckboxList/CheckboxListItem.d.ts +9 -1
  8. package/dist/CheckboxList/CheckboxListItem.d.ts.map +1 -1
  9. package/dist/CheckboxList/CheckboxListItem.js +4 -2
  10. package/dist/Dialog/Dialog.d.ts.map +1 -1
  11. package/dist/Dialog/Dialog.js +20 -8
  12. package/dist/Drawer/Drawer.d.ts +191 -0
  13. package/dist/Drawer/Drawer.d.ts.map +1 -0
  14. package/dist/Drawer/Drawer.js +382 -0
  15. package/dist/Drawer/DrawerHeader.d.ts +85 -0
  16. package/dist/Drawer/DrawerHeader.d.ts.map +1 -0
  17. package/dist/Drawer/DrawerHeader.js +134 -0
  18. package/dist/Drawer/index.d.ts +11 -0
  19. package/dist/Drawer/index.d.ts.map +1 -0
  20. package/dist/Drawer/index.js +11 -0
  21. package/dist/Drawer/useDrawerDialogPresence.d.ts +42 -0
  22. package/dist/Drawer/useDrawerDialogPresence.d.ts.map +1 -0
  23. package/dist/Drawer/useDrawerDialogPresence.js +236 -0
  24. package/dist/DropdownMenu/DropdownMenuDivider.d.ts +5 -3
  25. package/dist/DropdownMenu/DropdownMenuDivider.d.ts.map +1 -1
  26. package/dist/DropdownMenu/DropdownMenuDivider.js +7 -3
  27. package/dist/EmptyState/EmptyState.d.ts.map +1 -1
  28. package/dist/EmptyState/EmptyState.js +4 -10
  29. package/dist/Item/Item.d.ts +6 -2
  30. package/dist/Item/Item.d.ts.map +1 -1
  31. package/dist/Item/Item.js +19 -4
  32. package/dist/Layer/useLayer.d.ts.map +1 -1
  33. package/dist/Layer/useLayer.js +7 -1
  34. package/dist/Layer/useLayerDismissal.d.ts +1 -1
  35. package/dist/Layer/useLayerDismissal.js +1 -1
  36. package/dist/Layout/container.stylex.d.ts +5 -5
  37. package/dist/Layout/container.stylex.js +4 -4
  38. package/dist/List/List.d.ts +46 -19
  39. package/dist/List/List.d.ts.map +1 -1
  40. package/dist/List/List.js +28 -10
  41. package/dist/List/ListContext.d.ts +8 -3
  42. package/dist/List/ListContext.d.ts.map +1 -1
  43. package/dist/List/ListContext.js +7 -2
  44. package/dist/List/ListItem.d.ts +13 -5
  45. package/dist/List/ListItem.d.ts.map +1 -1
  46. package/dist/List/ListItem.js +21 -8
  47. package/dist/List/index.d.ts +1 -1
  48. package/dist/List/index.d.ts.map +1 -1
  49. package/dist/Markdown/Markdown.d.ts.map +1 -1
  50. package/dist/Markdown/Markdown.js +8 -1
  51. package/dist/RadioList/RadioListItem.d.ts +9 -1
  52. package/dist/RadioList/RadioListItem.d.ts.map +1 -1
  53. package/dist/RadioList/RadioListItem.js +2 -0
  54. package/dist/TabList/TabMenu.d.ts +2 -2
  55. package/dist/TabList/TabMenu.d.ts.map +1 -1
  56. package/dist/TabList/TabMenu.js +6 -3
  57. package/dist/astryx.css +24 -2
  58. package/dist/hooks/useEntryAnimation.d.ts +2 -1
  59. package/dist/hooks/useEntryAnimation.d.ts.map +1 -1
  60. package/dist/hooks/useEntryAnimation.js +14 -12
  61. package/dist/hooks/useIsHydrating.d.ts +6 -0
  62. package/dist/hooks/useIsHydrating.d.ts.map +1 -0
  63. package/dist/hooks/useIsHydrating.js +30 -0
  64. package/dist/index.d.ts +1 -0
  65. package/dist/index.d.ts.map +1 -1
  66. package/dist/index.js +1 -0
  67. package/dist/theme/derivedVarRegistry.d.ts.map +1 -1
  68. package/dist/theme/derivedVarRegistry.js +0 -3
  69. package/dist/utils/plainDate.d.ts.map +1 -1
  70. package/dist/utils/plainDate.js +15 -9
  71. package/package.json +8 -3
  72. package/src/AspectRatio/AspectRatio.test.tsx +44 -43
  73. package/src/AspectRatio/AspectRatio.tsx +38 -18
  74. package/src/AspectRatio/__tests__/AspectRatioFitLayers.a11y.browser.spec.ts +157 -0
  75. package/src/CheckboxInput/CheckboxInput.test.tsx +34 -0
  76. package/src/CheckboxInput/CheckboxInput.tsx +3 -1
  77. package/src/CheckboxList/CheckboxList.test.tsx +22 -0
  78. package/src/CheckboxList/CheckboxListItem.doc.mjs +16 -0
  79. package/src/CheckboxList/CheckboxListItem.tsx +10 -0
  80. package/src/Dialog/Dialog.test.tsx +46 -0
  81. package/src/Dialog/Dialog.tsx +20 -7
  82. package/src/Dialog/__tests__/Dialog.a11y.known-failures.ts +0 -14
  83. package/src/Drawer/Drawer.doc.mjs +472 -0
  84. package/src/Drawer/Drawer.spec.md +357 -0
  85. package/src/Drawer/Drawer.test.tsx +1300 -0
  86. package/src/Drawer/Drawer.tsx +613 -0
  87. package/src/Drawer/DrawerDirection.test.tsx +127 -0
  88. package/src/Drawer/DrawerHeader.doc.mjs +293 -0
  89. package/src/Drawer/DrawerHeader.test.tsx +102 -0
  90. package/src/Drawer/DrawerHeader.tsx +235 -0
  91. package/src/Drawer/__tests__/DrawerAudit.a11y.chromium.spec.ts +401 -0
  92. package/src/Drawer/__tests__/DrawerHeaderAudit.a11y.chromium.spec.ts +297 -0
  93. package/src/Drawer/index.ts +13 -0
  94. package/src/Drawer/useDrawerDialogPresence.ts +284 -0
  95. package/src/DropdownMenu/DropdownMenu.test.tsx +21 -12
  96. package/src/DropdownMenu/DropdownMenuDivider.doc.mjs +2 -2
  97. package/src/DropdownMenu/DropdownMenuDivider.tsx +9 -5
  98. package/src/DropdownMenu/__tests__/Menu.a11y.chromium.spec.ts +145 -0
  99. package/src/DropdownMenu/__tests__/Menu.a11y.known-failures.ts +26 -0
  100. package/src/DropdownMenu/__tests__/Menu.a11y.renders.tsx +65 -0
  101. package/src/DropdownMenu/__tests__/Menu.a11y.states.ts +138 -0
  102. package/src/DropdownMenu/__tests__/Menu.a11y.test.tsx +136 -0
  103. package/src/EmptyState/EmptyState.doc.mjs +3 -2
  104. package/src/EmptyState/EmptyState.spec.md +189 -0
  105. package/src/EmptyState/EmptyState.test.tsx +74 -3
  106. package/src/EmptyState/EmptyState.tsx +4 -8
  107. package/src/Item/Item.doc.mjs +12 -8
  108. package/src/Item/Item.spec.md +226 -0
  109. package/src/Item/Item.test.tsx +61 -0
  110. package/src/Item/Item.tsx +40 -4
  111. package/src/Layer/layerViewportInset.test.ts +1 -0
  112. package/src/Layer/useLayer.tsx +10 -1
  113. package/src/Layer/useLayerDismissal.ts +1 -1
  114. package/src/Layout/container.stylex.ts +6 -6
  115. package/src/List/List.doc.mjs +14 -1
  116. package/src/List/List.spec.md +129 -77
  117. package/src/List/List.test.tsx +163 -94
  118. package/src/List/List.tsx +74 -18
  119. package/src/List/ListContext.tsx +9 -3
  120. package/src/List/ListItem.doc.mjs +16 -0
  121. package/src/List/ListItem.tsx +56 -27
  122. package/src/List/index.ts +1 -1
  123. package/src/Markdown/Markdown.tsx +14 -1
  124. package/src/RadioList/RadioList.test.tsx +22 -0
  125. package/src/RadioList/RadioListItem.doc.mjs +16 -0
  126. package/src/RadioList/RadioListItem.tsx +10 -1
  127. package/src/TabList/TabList.spec.md +57 -44
  128. package/src/TabList/TabList.test.tsx +67 -0
  129. package/src/TabList/TabMenu.doc.mjs +4 -3
  130. package/src/TabList/TabMenu.tsx +7 -4
  131. package/src/Tooltip/Tooltip.test.tsx +31 -0
  132. package/src/TreeList/TreeList.spec.md +29 -17
  133. package/src/hooks/useEntryAnimation.doc.mjs +4 -4
  134. package/src/hooks/useEntryAnimation.ssr.test.tsx +143 -0
  135. package/src/hooks/useEntryAnimation.ts +15 -16
  136. package/src/hooks/useIsHydrating.test.tsx +70 -0
  137. package/src/hooks/useIsHydrating.ts +31 -0
  138. package/src/index.ts +1 -0
  139. package/src/reset.css +0 -29
  140. package/src/theme/derivedVarRegistry.test.ts +3 -3
  141. package/src/theme/derivedVarRegistry.ts +0 -3
  142. package/src/utils/plainDate.test.ts +37 -1
  143. package/src/utils/plainDate.ts +15 -5
package/dist/astryx.css CHANGED
@@ -12,6 +12,7 @@
12
12
  @property --x---layout-alignment-width { syntax: "*"; inherits: false;}
13
13
  @property --x---layout-content-width { syntax: "*"; inherits: false;}
14
14
  @property --x-126w13d { syntax: "*"; inherits: false;}
15
+ @property --x-1xmrurk { syntax: "*"; inherits: false;}
15
16
  @property --x-4drmnv { syntax: "*"; inherits: false;}
16
17
  @property --x-animationDelay { syntax: "*"; inherits: false;}
17
18
  @property --x-aspectRatio { syntax: "*"; inherits: false;}
@@ -21,6 +22,7 @@
21
22
  @property --x-color { syntax: "*"; inherits: false;}
22
23
  @property --x-counterReset { syntax: "*"; inherits: false;}
23
24
  @property --x-fontSize { syntax: "*"; inherits: false;}
25
+ @property --x-fqzwsx { syntax: "*"; inherits: false;}
24
26
  @property --x-gap { syntax: "*"; inherits: false;}
25
27
  @property --x-gridAutoRows { syntax: "*"; inherits: false;}
26
28
  @property --x-gridTemplateColumns { syntax: "*"; inherits: false;}
@@ -132,6 +134,7 @@
132
134
  .xqxtgf4{--_input-clear-hit-content:none}
133
135
  .xtoycft{--_input-clear-hit-inset:0px}
134
136
  .xqlix59{--_item-description-color:var(--color-error)}
137
+ .x1nwg5ib{--_item-inset-inline:0px}
135
138
  .xw1s368{--_item-inset-inline:var(--spacing-2)}
136
139
  .x1ytau7y{--_item-inset-inline:var(--spacing-3)}
137
140
  .xufyqxy{--_item-label-color:var(--color-error)}
@@ -1051,6 +1054,7 @@
1051
1054
  .xxydokm:not(#\#):not(#\#):not(#\#){hyphens:manual}
1052
1055
  .xtijo5x:not(#\#):not(#\#):not(#\#){inset-inline-end:0}
1053
1056
  .xz03a8w:not(#\#):not(#\#):not(#\#){inset-inline-end:2px}
1057
+ .x1woyocn:not(#\#):not(#\#):not(#\#){inset-inline-end:auto}
1054
1058
  .x13oyzgk:not(#\#):not(#\#):not(#\#){inset-inline-end:var(--_textarea-inline-padding)}
1055
1059
  .xu9ngte:not(#\#):not(#\#):not(#\#){inset-inline-end:var(--astryx-layer-inset-inline-end,0px)}
1056
1060
  .xy3asu9:not(#\#):not(#\#):not(#\#){inset-inline-end:var(--spacing-1)}
@@ -1109,13 +1113,13 @@
1109
1113
  .x3ct3a4:not(#\#):not(#\#):not(#\#){list-style-type:none}
1110
1114
  .x14z9mp:not(#\#):not(#\#):not(#\#){margin-inline-end:0}
1111
1115
  .x11t971q:not(#\#):not(#\#):not(#\#){margin-inline-end:auto}
1112
- .x1cphv78:not(#\#):not(#\#):not(#\#){margin-inline-end:calc(-1 * min(var(--_item-inset-inline),var(--container-padding-inline-end,0px)))}
1113
1116
  .x1fcf3bl:not(#\#):not(#\#):not(#\#){margin-inline-end:calc(-1 * var(--container-padding-inline-end,0px))}
1114
1117
  .x1kpg4um:not(#\#):not(#\#):not(#\#){margin-inline-end:calc(-1 * var(--layout-padding-inner-x,var(--spacing-4)))}
1115
1118
  .xkd40ry:not(#\#):not(#\#):not(#\#){margin-inline-end:calc(-1 * var(--spacing-1))}
1116
1119
  .x3kzqx6:not(#\#):not(#\#):not(#\#){margin-inline-end:calc(-1 * var(--spacing-2))}
1117
1120
  .xmequkd:not(#\#):not(#\#):not(#\#){margin-inline-end:calc(var(--spacing-1) * -1)}
1118
1121
  .x144kxal:not(#\#):not(#\#):not(#\#){margin-inline-end:calc(calc(var(--spacing-4) + max(var(--astryx-layer-inset-inline-start, 0px), var(--astryx-layer-inset-inline-end, 0px))));margin-inline-end:calc(calc(max(var(--spacing-4), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)) + max(var(--astryx-layer-inset-inline-start, 0px), var(--astryx-layer-inset-inline-end, 0px))))}
1122
+ .x2gtn1o:not(#\#):not(#\#):not(#\#){margin-inline-end:max(var(--container-padding-inline-end,0px) - var(--_item-inset-inline),0px)}
1119
1123
  .xnur1sd:not(#\#):not(#\#):not(#\#){margin-inline-end:var(--spacing-1)}
1120
1124
  .x1pezmd8:not(#\#):not(#\#):not(#\#){margin-inline-end:var(--spacing-2)}
1121
1125
  .x1c9tiao:not(#\#):not(#\#):not(#\#){margin-inline-end:var(--x-marginInlineEnd)}
@@ -1123,7 +1127,6 @@
1123
1127
  .x1qfufaz:not(#\#):not(#\#):not(#\#){margin-inline-start:-8px}
1124
1128
  .x1lziwak:not(#\#):not(#\#):not(#\#){margin-inline-start:0}
1125
1129
  .xvc5jky:not(#\#):not(#\#):not(#\#){margin-inline-start:auto}
1126
- .x1t1czy8:not(#\#):not(#\#):not(#\#){margin-inline-start:calc(-1 * min(var(--_item-inset-inline),var(--container-padding-inline-start,0px)))}
1127
1130
  .xd10s4z:not(#\#):not(#\#):not(#\#){margin-inline-start:calc(-1 * var(--border-width))}
1128
1131
  .xojxgvx:not(#\#):not(#\#):not(#\#){margin-inline-start:calc(-1 * var(--container-padding-inline-start,0px))}
1129
1132
  .x1wim8z0:not(#\#):not(#\#):not(#\#){margin-inline-start:calc(-1 * var(--layout-padding-inner-x,var(--spacing-4)))}
@@ -1135,6 +1138,7 @@
1135
1138
  .x1xrm450:not(#\#):not(#\#):not(#\#){margin-inline-start:calc(var(--spacing-2) - var(--spacing-1) + 1px)}
1136
1139
  .x6w1cxl:not(#\#):not(#\#):not(#\#){margin-inline-start:calc(var(--spacing-3) + var(--border-width) + var(--spacing-4))}
1137
1140
  .xpdk1p0:not(#\#):not(#\#):not(#\#){margin-inline-start:calc(calc(var(--spacing-4) + max(var(--astryx-layer-inset-inline-start, 0px), var(--astryx-layer-inset-inline-end, 0px))));margin-inline-start:calc(calc(max(var(--spacing-4), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)) + max(var(--astryx-layer-inset-inline-start, 0px), var(--astryx-layer-inset-inline-end, 0px))))}
1141
+ .xch736x:not(#\#):not(#\#):not(#\#){margin-inline-start:max(var(--container-padding-inline-start,0px) - var(--_item-inset-inline),0px)}
1138
1142
  .x13hpdyo:not(#\#):not(#\#):not(#\#){margin-inline-start:var(--_avatar-group-overlap)}
1139
1143
  .x12vn87o:not(#\#):not(#\#):not(#\#){margin-inline-start:var(--_tree-indent,0px)}
1140
1144
  .xladpz9:not(#\#):not(#\#):not(#\#){margin-inline-start:var(--spacing-0-5)}
@@ -1189,6 +1193,7 @@
1189
1193
  .x12frdag:not(#\#):not(#\#):not(#\#){padding-inline-end:calc(var(--container-padding-inline-end) - var(--border-width))}
1190
1194
  .x1ahicqp:not(#\#):not(#\#):not(#\#){padding-inline-end:max(var(--container-padding-inline-end,0px),calc((100cqi - var(--layout-alignment-width)) / 2 + var(--container-padding-inline-end,0px)))}
1191
1195
  .xy07wb4:not(#\#):not(#\#):not(#\#){padding-inline-end:max(var(--container-padding-inline-end,0px),calc(100cqi - var(--layout-alignment-width) + var(--container-padding-inline-end,0px)))}
1196
+ .x1pyz5s7:not(#\#):not(#\#):not(#\#){padding-inline-end:max(var(--container-padding-inline-end,0px),var(--_item-inset-inline))}
1192
1197
  .x1g0rcpp:not(#\#):not(#\#):not(#\#){padding-inline-end:max(var(--spacing-4),env(safe-area-inset-right,0px))}
1193
1198
  .x1p6hqjl:not(#\#):not(#\#):not(#\#){padding-inline-end:var(--_tokenizer-end-lane-reserve,0px)}
1194
1199
  .x1by8st6:not(#\#):not(#\#):not(#\#){padding-inline-end:var(--astryx-dialog-padding-inline-end,var(--astryx-dialog-padding-inline,var(--astryx-dialog-padding,max(var(--spacing-4),env(safe-area-inset-right,0px)))))}
@@ -1220,6 +1225,7 @@
1220
1225
  .x2a0j69:not(#\#):not(#\#):not(#\#){padding-inline-start:calc(var(--spacing-2) - var(--spacing-1) + 1px)}
1221
1226
  .xhlv5e7:not(#\#):not(#\#):not(#\#){padding-inline-start:max(var(--container-padding-inline-start,0px),calc((100cqi - var(--layout-alignment-width)) / 2 + var(--container-padding-inline-start,0px)))}
1222
1227
  .xxjme2g:not(#\#):not(#\#):not(#\#){padding-inline-start:max(var(--container-padding-inline-start,0px),calc(100cqi - var(--layout-alignment-width) + var(--container-padding-inline-start,0px)))}
1228
+ .xua885n:not(#\#):not(#\#):not(#\#){padding-inline-start:max(var(--container-padding-inline-start,0px),var(--_item-inset-inline))}
1223
1229
  .xf4btlh:not(#\#):not(#\#):not(#\#){padding-inline-start:max(var(--spacing-4),env(safe-area-inset-left,0px))}
1224
1230
  .xqmdmw:not(#\#):not(#\#):not(#\#){padding-inline-start:var(--astryx-dialog-padding-inline-start,var(--astryx-dialog-padding-inline,var(--astryx-dialog-padding,max(var(--spacing-4),env(safe-area-inset-left,0px)))))}
1225
1231
  .x1jni19p:not(#\#):not(#\#):not(#\#){padding-inline-start:var(--astryx-number-input-padding-inline-start,var(--astryx-number-input-padding-inline,var(--astryx-number-input-padding,var(--spacing-2))))}
@@ -1477,6 +1483,8 @@
1477
1483
  .x1nwey30:is([dir="rtl"] *):not(#\#):not(#\#):not(#\#){mask-image:linear-gradient(to left,transparent var(--_tab-strip-bleed),black calc(var(--_tab-strip-bleed) + var(--spacing-8)))}
1478
1484
  .x8ulde1:is([dir="rtl"] *):not(#\#):not(#\#):not(#\#){mask-image:linear-gradient(to right,transparent 0%,rgba(0,0,0,.3) 2px,black var(--spacing-1))}
1479
1485
  .x1rxa4r8:is([dir="rtl"] *):not(#\#):not(#\#):not(#\#){mask-image:linear-gradient(to right,transparent var(--_tab-strip-bleed),black calc(var(--_tab-strip-bleed) + var(--spacing-8)))}
1486
+ .x16lv2iq:not([stylex-hack]) > :is(img, video):not(#\#):not(#\#):not(#\#){object-fit:contain}
1487
+ .x492jj3:not([stylex-hack]) > :is(img, video):not(#\#):not(#\#):not(#\#){object-fit:cover}
1480
1488
  .x1euntei:focus-within:not(#\#):not(#\#):not(#\#){opacity:1}
1481
1489
  .x25t5g8:focus-visible:not(#\#):not(#\#):not(#\#){opacity:1}
1482
1490
  .xof6bs:is(th:hover *):not(#\#):not(#\#):not(#\#){opacity:1}
@@ -1532,6 +1540,8 @@
1532
1540
  .xxdn8bs:has(> div > .astryx-layout-content):not(#\#):not(#\#):not(#\#){padding-inline-end:max(0px,calc((100% - var(--layout-content-width)) / 2))}
1533
1541
  .xmnmr5y:has(.astryx-nav-icon):not(#\#):not(#\#):not(#\#){padding-inline-start:0}
1534
1542
  .x1vvd0s7:has(> div > .astryx-layout-content):not(#\#):not(#\#):not(#\#){padding-inline-start:max(0px,calc((100% - var(--layout-content-width)) / 2))}
1543
+ .xbw113y:dir(rtl):not(#\#):not(#\#):not(#\#){transform:translateX(-100%)}
1544
+ .x1eqdj8u:dir(rtl):not(#\#):not(#\#):not(#\#){transform:translateX(100%)}
1535
1545
  .x1xrp5p4:first-child:not(#\#):not(#\#):not(#\#){border-end-start-radius:var(--radius-element)}
1536
1546
  .xyf0ibl:first-child:not(#\#):not(#\#):not(#\#){border-inline-start-style:none}
1537
1547
  .x1pjv70x:first-child:not(#\#):not(#\#):not(#\#){border-inline-start-width:0}
@@ -1884,6 +1894,7 @@
1884
1894
  .x1j85h84:not(#\#):not(#\#):not(#\#):not(#\#){padding-bottom:1px}
1885
1895
  .x1wkw6tp:not(#\#):not(#\#):not(#\#):not(#\#){padding-bottom:calc(env(safe-area-inset-bottom,0px) + 48px)}
1886
1896
  .x9jihrk:not(#\#):not(#\#):not(#\#):not(#\#){padding-bottom:calc(var(--_chat-composer-padding) + var(--_chat-composer-radius))}
1897
+ .xvmia7e:not(#\#):not(#\#):not(#\#):not(#\#){padding-bottom:calc(var(--container-padding-block-end,0px) + env(safe-area-inset-bottom,0px))}
1887
1898
  .xbv1mwh:not(#\#):not(#\#):not(#\#):not(#\#){padding-bottom:calc(var(--container-padding-block-end) - var(--border-width))}
1888
1899
  .xxbfulo:not(#\#):not(#\#):not(#\#):not(#\#){padding-bottom:calc(var(--spacing-3) + var(--radius-chat))}
1889
1900
  .xwhchk8:not(#\#):not(#\#):not(#\#):not(#\#){padding-bottom:max(var(--_tab-strip-bleed),calc(-1 * var(--_tab-indicator-bottom,-1px)))}
@@ -2004,14 +2015,17 @@
2004
2015
  .xgc8j7m:not(#\#):not(#\#):not(#\#):not(#\#){width:var(--spacing-8)}
2005
2016
  .xta46cu:not(#\#):not(#\#):not(#\#):not(#\#){width:var(--text-large-size)}
2006
2017
  .x5livx5:not(#\#):not(#\#):not(#\#):not(#\#){width:var(--text-supporting-size)}
2018
+ .x11ymkkh:not(#\#):not(#\#):not(#\#):not(#\#){width:var(--x-1xmrurk)}
2007
2019
  .x1uyokj7:not(#\#):not(#\#):not(#\#):not(#\#){width:var(--x-inlineSize)}
2008
2020
  .x5lhr3w:not(#\#):not(#\#):not(#\#):not(#\#){width:var(--x-width)}
2009
2021
  .x1wp2rvj.x1wp2rvj:where(.x139im0d:last-child *):not(#\#):not(#\#):not(#\#):not(#\#){border-bottom-width:0}
2022
+ .x1m6kvgq:not([stylex-hack]) > *:not(#\#):not(#\#):not(#\#):not(#\#){height:100%}
2010
2023
  .x1vonza8.x1vonza8:where(.astryx-input-group > *):not(#\#):not(#\#):not(#\#):not(#\#){height:100%}
2011
2024
  .x132qfvm:focus-within:not(#\#):not(#\#):not(#\#):not(#\#){height:auto}
2012
2025
  .xsg11nj.xsg11nj:where(.x-default-marker:has(> .astryx-layout-footer:not([data-divider])) *):not(#\#):not(#\#):not(#\#):not(#\#){padding-bottom:0}
2013
2026
  .x1ioh5az.x1ioh5az:where(.x-default-marker:has(> .astryx-layout-header:not([data-divider])) *):not(#\#):not(#\#):not(#\#):not(#\#){padding-top:0}
2014
2027
  .x1kw28su:focus-within:not(#\#):not(#\#):not(#\#):not(#\#){padding-top:var(--spacing-1)}
2028
+ .xyz6fim:not([stylex-hack]) > *:not(#\#):not(#\#):not(#\#):not(#\#){width:100%}
2015
2029
  .x10okhzq:focus-within:not(#\#):not(#\#):not(#\#):not(#\#){width:auto}
2016
2030
  .x5du68j:has(~ * [data-chat-name]):not(#\#):not(#\#):not(#\#):not(#\#){margin-top:var(--spacing-5)}
2017
2031
  .xzzx6db:has([role="radio"]:not([aria-label])):not(#\#):not(#\#):not(#\#):not(#\#){max-width:100%}
@@ -2041,6 +2055,7 @@
2041
2055
  @media (pointer: coarse){.x1xrq5m.x1xrq5m:not(#\#):not(#\#):not(#\#):not(#\#){min-width:44px}}
2042
2056
  @media (pointer: coarse){.xngvp7v.xngvp7v:not(#\#):not(#\#):not(#\#):not(#\#){min-width:44px}}
2043
2057
  @media (any-pointer: coarse){.x1c4064q.x1c4064q:not(#\#):not(#\#):not(#\#):not(#\#){width:24px}}
2058
+ @media (max-width: 640px){.xci7e5a.xci7e5a:not(#\#):not(#\#):not(#\#):not(#\#){width:var(--x-fqzwsx)}}
2044
2059
  @supports (-webkit-touch-callout: none){@media (pointer: coarse){.x9w4715.x9w4715.x9w4715:not(#\#):not(#\#):not(#\#):not(#\#){height:calc(max(1rem,var(--text-body-size)) * var(--text-body-leading));height:1lh}}}
2045
2060
  .x8s9nux[data-astryx-press="fading"]:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){animation-duration:.2s}
2046
2061
  .xziyay6[data-astryx-press="fading"]:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){animation-fill-mode:both}
@@ -2073,6 +2088,8 @@
2073
2088
  .xubczrd.xubczrd:where(:not(:disabled,[aria-disabled="true"]))[data-astryx-press="fading"]:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){background-image:var(--_press-paint-image)}
2074
2089
  @starting-style{.x1lymnkk.x1lymnkk:is([dir="rtl"] *):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){transform:translateX(-100%)}}
2075
2090
  @starting-style{.x14gflnl.x14gflnl:is([dir="rtl"] *):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){transform:translateX(100%)}}
2091
+ @starting-style{.xrxqmjf.xrxqmjf:dir(rtl):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){transform:translateX(-100%)}}
2092
+ @starting-style{.x1r0dqvm.x1r0dqvm:dir(rtl):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){transform:translateX(100%)}}
2076
2093
  @media (forced-colors: active){.x1pjcgc3.x1pjcgc3[data-astryx-press="fading"]:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){background-color:Highlight}}
2077
2094
  @media (forced-colors: active){.x1r4mieh.x1r4mieh[data-astryx-press="on"]:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){background-color:Highlight}}
2078
2095
  .x1k48kgn:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{border-radius:inherit}
@@ -2083,6 +2100,7 @@
2083
2100
  .xd54j2p:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{inset-block:0}
2084
2101
  .xpsyfx0:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::-webkit-date-and-time-value{margin-block:0}
2085
2102
  .x1qqcexc:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::-webkit-date-and-time-value{margin-inline:0}
2103
+ .x1xb3ux:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{overflow:hidden}
2086
2104
  .x1x4c3m6:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::-webkit-date-and-time-value{padding-block:0}
2087
2105
  .xtbxizx:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::-webkit-datetime-edit{padding-block:0}
2088
2106
  @starting-style{.x5rzir7.x5rzir7:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){padding-bottom:0}}
@@ -2110,6 +2128,7 @@
2110
2128
  .xeyghm5:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::placeholder{color:var(--color-text-secondary)}
2111
2129
  .x1cpjm7i:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{content:""}
2112
2130
  .x1s928wv:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{content:""}
2131
+ .x4jt1l0:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{content:"\200B";content:"\200B" / ""}
2113
2132
  .x46gnpd:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{content:attr(data-line)}
2114
2133
  .x1mls8ih:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{content:counter(astryx-list, lower-alpha) "."}
2115
2134
  .xdaf9gw:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{content:counter(astryx-list, lower-roman) "."}
@@ -2118,6 +2137,7 @@
2118
2137
  .xhkezso:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{display:block}
2119
2138
  .xolhmmf:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::-webkit-calendar-picker-indicator{display:none}
2120
2139
  .x3nzp0f:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{font-family:var(--font-family-code)}
2140
+ .x1899uy6:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{font-size:var(--text-body-size)}
2121
2141
  .xekda60:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{inset-inline-end:-2px}
2122
2142
  .x1unh1gc:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{inset-inline-end:0}
2123
2143
  .xvw6utc:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{inset-inline-start:-2px}
@@ -2125,6 +2145,7 @@
2125
2145
  .x1km86hw:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{inset-inline-start:calc(var(--spacing-4) + var(--_codeblock-gutter-width) + var(--spacing-3))}
2126
2146
  .x15bqym3:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::-webkit-datetime-edit{line-height:inherit}
2127
2147
  .x1f74mqm:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::-webkit-date-and-time-value{line-height:inherit}
2148
+ .x1xcinxp:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{line-height:var(--text-body-leading)}
2128
2149
  .xph5o2a:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::backdrop{opacity:0}
2129
2150
  .xb3n6bw:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::backdrop{opacity:1}
2130
2151
  .xni466t:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::backdrop{opacity:var(--_sheet-scrim-opacity,1)}
@@ -2183,6 +2204,7 @@
2183
2204
  .xec4aax:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::-webkit-date-and-time-value{min-height:0}
2184
2205
  .x51xajf:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{top:-2px}
2185
2206
  .x1m1drc7:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{top:0}
2207
+ .xk9ib7f:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{width:0}
2186
2208
  .xkj6t0a:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{width:0}
2187
2209
  .xzkji8o:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{width:6px}
2188
2210
  .xi8c0p9:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{width:var(--indicator-width,1px)}
@@ -4,7 +4,8 @@ export type EntryAnimationPreset = 'slideDown' | 'slideUp' | 'fadeIn' | 'scaleIn
4
4
  * Returns a StyleX style for animating an element on mount.
5
5
  *
6
6
  * Only animates when the element is dynamically inserted after the initial
7
- * page paint. Elements rendered on page load are not animated.
7
+ * page paint. Elements rendered on page load, including server-rendered
8
+ * elements while they hydrate, are not animated.
8
9
  *
9
10
  * @example
10
11
  * ```
@@ -1 +1 @@
1
- {"version":3,"file":"useEntryAnimation.d.ts","sourceRoot":"","sources":["../../src/hooks/useEntryAnimation.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,kBAAkB,CAAC;AAoFnD,MAAM,MAAM,oBAAoB,GAC5B,WAAW,GACX,SAAS,GACT,QAAQ,GACR,SAAS,CAAC;AAEd;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,GAAE,oBAAkC,GACzC,YAAY,GAAG,IAAI,CAGrB"}
1
+ {"version":3,"file":"useEntryAnimation.d.ts","sourceRoot":"","sources":["../../src/hooks/useEntryAnimation.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,kBAAkB,CAAC;AAgFnD,MAAM,MAAM,oBAAoB,GAC9B,WAAW,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEjD;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,GAAE,oBAAkC,GACzC,YAAY,GAAG,IAAI,CAMrB"}
@@ -4,28 +4,26 @@
4
4
 
5
5
  /**
6
6
  * @file useEntryAnimation.ts
7
- * @input Uses React, StyleX, theme tokens
7
+ * @input Uses React, StyleX, theme tokens, useIsHydrating
8
8
  * @output Exports useEntryAnimation hook for mount-only entry animations
9
9
  * @position Hook utility; consumed by FieldStatus and available to consumers
10
10
  *
11
11
  * Provides entry animations for conditionally rendered elements.
12
12
  * Only animates when the element is dynamically mounted after the initial
13
13
  * page paint — statically rendered elements on page load are not animated.
14
+ * Server-rendered elements hydrate without the entry style and never play it
15
+ * (spec:AST-013 FR13).
14
16
  */
15
17
  import { useState } from 'react';
16
18
  import * as stylex from '@stylexjs/stylex';
17
19
  import "../theme/tokens.stylex.js";
18
20
  import { durationVars, easeVars, spacingVars } from "../theme/tokens.stylex.js";
21
+ import { useIsHydrating } from "./useIsHydrating.js";
19
22
 
20
- // Track whether the initial page paint has completed.
21
- // Elements rendered on page load should not animate;
22
- // only dynamically inserted ones should.
23
- //
24
- // NOTE: This module is marked 'use client' so it never runs on the server.
25
- // If the directive is removed, this flag will always be false during SSR,
26
- // and useState(() => initialPaintComplete) will capture false — meaning
27
- // animations won't run after hydration. Keep 'use client' or add an
28
- // effect-based fallback if SSR support is needed.
23
+ // Track whether the initial page paint has completed, so elements a
24
+ // client-only root renders on page load do not animate; only dynamically
25
+ // inserted ones should. Server-rendered elements are covered by
26
+ // useIsHydrating instead: hydration can run after this flag turns true.
29
27
  let initialPaintComplete = false;
30
28
  if (typeof window !== 'undefined') {
31
29
  requestAnimationFrame(() => {
@@ -70,7 +68,8 @@ const styles = {
70
68
  * Returns a StyleX style for animating an element on mount.
71
69
  *
72
70
  * Only animates when the element is dynamically inserted after the initial
73
- * page paint. Elements rendered on page load are not animated.
71
+ * page paint. Elements rendered on page load, including server-rendered
72
+ * elements while they hydrate, are not animated.
74
73
  *
75
74
  * @example
76
75
  * ```
@@ -79,6 +78,9 @@ const styles = {
79
78
  * ```
80
79
  */
81
80
  export function useEntryAnimation(preset = 'slideDown') {
82
- const [animate] = useState(() => initialPaintComplete);
81
+ const isHydrating = useIsHydrating();
82
+ // Captured once: a hydrated element must not start animating when React
83
+ // re-renders it with the client snapshot after hydration.
84
+ const [animate] = useState(() => !isHydrating && initialPaintComplete);
83
85
  return animate ? styles[preset] : null;
84
86
  }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Returns `true` during server render and during the client render that
3
+ * hydrates server HTML; `false` in every other client render.
4
+ */
5
+ export declare function useIsHydrating(): boolean;
6
+ //# sourceMappingURL=useIsHydrating.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useIsHydrating.d.ts","sourceRoot":"","sources":["../../src/hooks/useIsHydrating.ts"],"names":[],"mappings":"AAwBA;;;GAGG;AACH,wBAAgB,cAAc,IAAI,OAAO,CAExC"}
@@ -0,0 +1,30 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ 'use client';
4
+
5
+ /**
6
+ * @file useIsHydrating.ts
7
+ * @input Uses React useSyncExternalStore
8
+ * @output Exports useIsHydrating (internal; not re-exported from hooks/index.ts)
9
+ * @position Internal utility; read by useEntryAnimation so markup that
10
+ * hydrates server HTML matches the server (spec:AST-013 FR9, FR13)
11
+ *
12
+ * React renders with the server snapshot on the server and again in the
13
+ * client render that hydrates server HTML, then re-renders with the client
14
+ * snapshot. Code that must render the server's markup while hydrating reads
15
+ * this instead of a first-paint flag, timer, animation frame, or mount Effect.
16
+ */
17
+ import { useSyncExternalStore } from 'react';
18
+
19
+ // Nothing ever changes, so there is nothing to subscribe to.
20
+ const subscribe = () => () => {};
21
+ const getSnapshot = () => false;
22
+ const getServerSnapshot = () => true;
23
+
24
+ /**
25
+ * Returns `true` during server render and during the client render that
26
+ * hydrates server HTML; `false` in every other client render.
27
+ */
28
+ export function useIsHydrating() {
29
+ return useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
30
+ }
package/dist/index.d.ts CHANGED
@@ -84,6 +84,7 @@ export * from './AlertDialog';
84
84
  export * from './Dialog';
85
85
  export * from './ContextMenu';
86
86
  export * from './DropdownMenu';
87
+ export * from './Drawer';
87
88
  export * from './MoreMenu';
88
89
  export * from './InteractiveRoleContext';
89
90
  export * from './SizeContext';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AAGH,YAAY,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AAG3C,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,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,SAAS,CAAC;AAGxB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAG1B,cAAc,gBAAgB,CAAC;AAG/B,cAAc,SAAS,CAAC;AAGxB,cAAc,SAAS,CAAC;AAGxB,YAAY,EAAC,YAAY,EAAC,MAAM,QAAQ,CAAC;AACzC,cAAc,SAAS,CAAC;AAGxB,cAAc,QAAQ,CAAC"}
package/dist/index.js CHANGED
@@ -93,6 +93,7 @@ export * from "./AlertDialog/index.js";
93
93
  export * from "./Dialog/index.js";
94
94
  export * from "./ContextMenu/index.js";
95
95
  export * from "./DropdownMenu/index.js";
96
+ export * from "./Drawer/index.js";
96
97
  export * from "./MoreMenu/index.js";
97
98
  export * from "./InteractiveRoleContext/index.js";
98
99
  export * from "./SizeContext/index.js";
@@ -1 +1 @@
1
- {"version":3,"file":"derivedVarRegistry.d.ts","sourceRoot":"","sources":["../../src/theme/derivedVarRegistry.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;GAgBG;AAEH,MAAM,WAAW,eAAe;IAC9B,2EAA2E;IAC3E,QAAQ,EAAE,MAAM,CAAC;IACjB,2EAA2E;IAC3E,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,iFAAiF;IACjF,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,EAAE,CAqDhE,CAAC;AAEF,wBAAgB,cAAc,CAC5B,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,GACf,eAAe,EAAE,CAMnB"}
1
+ {"version":3,"file":"derivedVarRegistry.d.ts","sourceRoot":"","sources":["../../src/theme/derivedVarRegistry.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;GAgBG;AAEH,MAAM,WAAW,eAAe;IAC9B,2EAA2E;IAC3E,QAAQ,EAAE,MAAM,CAAC;IACjB,2EAA2E;IAC3E,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,iFAAiF;IACjF,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,EAAE,CAkDhE,CAAC;AAEF,wBAAgB,cAAc,CAC5B,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,GACf,eAAe,EAAE,CAMnB"}
@@ -63,9 +63,6 @@ export const derivedVarRegistry = {
63
63
  property: 'padding',
64
64
  expand: 'container'
65
65
  }],
66
- // Drawer lives in @astryxdesign/lab; its doc source of truth is
67
- // packages/lab/src/Drawer/Drawer.doc.mjs, outside this package's consistency
68
- // scan. defineTheme.test.ts pins the expansion instead.
69
66
  drawer: [{
70
67
  property: 'padding',
71
68
  expand: 'container'
@@ -1 +1 @@
1
- {"version":3,"file":"plainDate.d.ts","sourceRoot":"","sources":["../../src/utils/plainDate.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AAEH,OAAO,KAAK,EAAC,aAAa,EAAE,SAAS,EAAC,MAAM,aAAa,CAAC;AAC1D,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,eAAe,CAAC;AAE1C,YAAY,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AAE3C,wBAAgB,eAAe,CAC7B,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,EACb,GAAG,EAAE,MAAM,GACV,SAAS,CAcX;AAED,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,aAAa,GAAG,SAAS,CAG9D;AAED,wBAAgB,cAAc,CAAC,EAAE,EAAE,SAAS,GAAG,aAAa,CAK3D;AAED,wBAAgB,eAAe,CAAC,EAAE,EAAE,SAAS,GAAG,IAAI,CAMnD;AAED,wBAAgB,iBAAiB,CAAC,CAAC,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GAAG,cAAc,GAAG,aAAa,CAAC;AAExD;;;;;;;;GAQG;AACH,eAAO,MAAM,0BAA0B,EAAE,MAAM,CAC7C,OAAO,CAAC,gBAAgB,EAAE,aAAa,CAAC,EACxC,IAAI,CAAC,qBAAqB,CAK3B,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,EAAE,EAAE,SAAS,EACb,MAAM,EAAE,gBAAgB,EACxB,MAAM,GAAE,MAAa,GACpB,MAAM,CAKR"}
@@ -202,15 +202,21 @@ export function plainDateSetEndOfWeekExclusive(pd, weekStartsOn) {
202
202
  return plainDateAddDays(plainDateSetStartOfWeek(pd, weekStartsOn), 7);
203
203
  }
204
204
  export function plainDateGetWeekNumber(pd) {
205
- const d = plainDateToDate(pd);
206
- const dayNum = d.getDay() || 7;
207
- d.setDate(d.getDate() + 4 - dayNum);
208
- const yearStart = plainDateToDate({
209
- year: d.getFullYear(),
210
- month: 1,
211
- day: 1
212
- });
213
- return Math.ceil(((d.getTime() - yearStart.getTime()) / 86400000 + 1) / 7);
205
+ // ISO week number: ceil(day-of-year of the week's Thursday / 7). Computed
206
+ // entirely on UTC anchors — the same DST immunity plainDateDiffDays relies
207
+ // on — because mixing local-time instants leaks the host zone's DST offset
208
+ // into the day count. When Jan 1 is a Friday (so every Thursday's day-of-year
209
+ // is an exact multiple of 7), a one-hour offset from a zone whose DST ends
210
+ // after New Year rounds a whole week up: Sydney, Auckland and Santiago users
211
+ // saw week 15 for the week that is ISO week 14. utcTime keeps years 1-99
212
+ // as given, like the other Calendar date helpers.
213
+ const msPerDay = 24 * 60 * 60 * 1000;
214
+ const utcMidnight = utcTime(pd.year, pd.month - 1, pd.day);
215
+ const dayNum = new Date(utcMidnight).getUTCDay() || 7;
216
+ const thursday = utcMidnight + (4 - dayNum) * msPerDay;
217
+ const yearStart = utcTime(new Date(thursday).getUTCFullYear(), 0, 1);
218
+ const dayOfYear = (thursday - yearStart) / msPerDay + 1;
219
+ return Math.ceil(dayOfYear / 7);
214
220
  }
215
221
 
216
222
  // e.g. "Wednesday, May 21, 2026" (locale-dependent)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astryxdesign/core",
3
- "version": "0.7.2-canary.db3a2e7",
3
+ "version": "0.7.2-canary.e2909cf",
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",
@@ -329,6 +329,11 @@
329
329
  "types": "./dist/Divider/index.d.ts",
330
330
  "default": "./dist/Divider/index.js"
331
331
  },
332
+ "./Drawer": {
333
+ "source": "./src/Drawer/index.ts",
334
+ "types": "./dist/Drawer/index.d.ts",
335
+ "default": "./dist/Drawer/index.js"
336
+ },
332
337
  "./DropdownMenu": {
333
338
  "source": "./src/DropdownMenu/index.ts",
334
339
  "types": "./dist/DropdownMenu/index.d.ts",
@@ -787,8 +792,8 @@
787
792
  "react-dom": ">=19.0.0"
788
793
  },
789
794
  "devDependencies": {
790
- "@astryxdesign/a11y-spec": "0.7.2-canary.db3a2e7",
791
- "@astryxdesign/cli": "0.7.2-canary.db3a2e7",
795
+ "@astryxdesign/a11y-spec": "0.7.2-canary.e2909cf",
796
+ "@astryxdesign/cli": "0.7.2-canary.e2909cf",
792
797
  "@babel/cli": "^7.29.7",
793
798
  "@babel/core": "^7.29.7",
794
799
  "@babel/preset-react": "^7.29.7",
@@ -9,7 +9,7 @@
9
9
  * SYNC: When AspectRatio.tsx changes, update tests to match new behavior
10
10
  */
11
11
 
12
- import {describe, it, expect, vi, beforeAll} from 'vitest';
12
+ import {describe, it, expect, vi} from 'vitest';
13
13
  import {render, screen} from '@testing-library/react';
14
14
  import {AspectRatio} from './AspectRatio';
15
15
 
@@ -230,9 +230,8 @@ describe('AspectRatio', () => {
230
230
  <img src="test.jpg" alt="Test" data-testid="image" />
231
231
  </AspectRatio>,
232
232
  );
233
- // The marker sits on the child's actual parent, so the reset.css
234
- // sizing rules are direct-child selectors with no dependence on
235
- // AspectRatio's internal structure.
233
+ // Earlier releases documented the marker, so it stays on the child's
234
+ // direct parent for product CSS that targets it.
236
235
  const wrapper = screen.getByTestId('image').parentElement;
237
236
  expect(wrapper).toHaveAttribute(
238
237
  'data-astryx-aspect-ratio-override',
@@ -274,8 +273,11 @@ describe('AspectRatio', () => {
274
273
  );
275
274
  const wrapper = screen.getByTestId('image').parentElement;
276
275
  expect(wrapper).not.toHaveAttribute('data-astryx-aspect-ratio-override');
277
- // Without the marker, none of the reset.css fit rules can match, so
278
- // existing self-styled children render exactly as before.
276
+ // Without fit the wrapper carries no child-sizing styles, so existing
277
+ // self-styled children render exactly as before.
278
+ expect(wrapper?.className).not.toContain('childFill');
279
+ expect(wrapper?.className).not.toContain('childCover');
280
+ expect(wrapper?.className).not.toContain('childContain');
279
281
  expect(screen.getByTestId('image')).not.toHaveAttribute('class');
280
282
  });
281
283
 
@@ -292,13 +294,37 @@ describe('AspectRatio', () => {
292
294
  </AspectRatio>,
293
295
  );
294
296
  const image = screen.getByTestId('image');
295
- // Fit styling is pure CSS (zero-specificity reset rules); the child's
296
- // own className/style pass through untouched and always win, so
297
- // children that already size themselves keep their behavior.
297
+ // Fit styling is a direct-child rule on the wrapper; the child's own
298
+ // className/style pass through untouched, and an inline style still
299
+ // wins over it.
298
300
  expect(image.className).toBe('consumer-class');
299
301
  expect(image.style.objectFit).toBe('contain');
300
302
  });
301
303
 
304
+ it('sizes the child from the wrapper with fit="cover"', () => {
305
+ render(
306
+ <AspectRatio ratio={16 / 9} fit="cover">
307
+ <img src="test.jpg" alt="Test" data-testid="image" />
308
+ </AspectRatio>,
309
+ );
310
+ const wrapper = screen.getByTestId('image').parentElement;
311
+ expect(wrapper?.className).toContain('childFill');
312
+ expect(wrapper?.className).toContain('childCover');
313
+ expect(wrapper?.className).not.toContain('childContain');
314
+ });
315
+
316
+ it('sizes the child from the wrapper with fit="contain"', () => {
317
+ render(
318
+ <AspectRatio ratio={16 / 9} fit="contain">
319
+ <img src="test.jpg" alt="Test" data-testid="image" />
320
+ </AspectRatio>,
321
+ );
322
+ const wrapper = screen.getByTestId('image').parentElement;
323
+ expect(wrapper?.className).toContain('childFill');
324
+ expect(wrapper?.className).toContain('childContain');
325
+ expect(wrapper?.className).not.toContain('childCover');
326
+ });
327
+
302
328
  it('centers the child via the wrapper with fit="center"', () => {
303
329
  render(
304
330
  <AspectRatio ratio={16 / 9} fit="center">
@@ -309,6 +335,7 @@ describe('AspectRatio', () => {
309
335
  expect(image).not.toHaveAttribute('class');
310
336
  const wrapper = image.parentElement;
311
337
  expect(wrapper?.className).toContain('childCenter');
338
+ expect(wrapper?.className).not.toContain('childFill');
312
339
  });
313
340
 
314
341
  it('does not center the wrapper for other fit values', () => {
@@ -353,45 +380,19 @@ describe('AspectRatio', () => {
353
380
  });
354
381
  });
355
382
 
356
- describe('reset.css fit baseline rules', () => {
357
- // The cover/contain child sizing ships as zero-specificity baseline
358
- // rules in reset.css keyed on the data-astryx-aspect-ratio-override
359
- // marker the component sets on the child's direct parent. These
360
- // assertions keep the stylesheet in sync with the component contract.
361
- let resetCSS: string;
362
-
363
- beforeAll(async () => {
383
+ describe('reset.css', () => {
384
+ it('carries no AspectRatio rules', async () => {
385
+ // fit ships with the component's StyleX styles in `astryx-base`. A
386
+ // rule in reset.css sits below the layer the documented Tailwind
387
+ // setups give preflight, whose `img, video { height: auto }` would
388
+ // undo the fill.
364
389
  const fs = await import('fs');
365
390
  const path = await import('path');
366
- resetCSS = fs.readFileSync(
391
+ const resetCSS = fs.readFileSync(
367
392
  path.resolve(__dirname, '../reset.css'),
368
393
  'utf-8',
369
394
  );
370
- });
371
-
372
- it('sizes the child to fill the box for cover and contain', () => {
373
- const fillMatch = resetCSS.match(
374
- /:where\(\[data-astryx-aspect-ratio-override="cover"\], \[data-astryx-aspect-ratio-override="contain"\]\)\s*>\s*:where\(\*\)\s*\{([^}]+)\}/,
375
- );
376
- expect(fillMatch).not.toBeNull();
377
- expect(fillMatch![1]).toContain('width: 100%');
378
- expect(fillMatch![1]).toContain('height: 100%');
379
- });
380
-
381
- it('crops media with object-fit: cover for fit="cover"', () => {
382
- const coverMatch = resetCSS.match(
383
- /:where\(\[data-astryx-aspect-ratio-override="cover"\]\)\s*>\s*:where\(img, video\)\s*\{([^}]+)\}/,
384
- );
385
- expect(coverMatch).not.toBeNull();
386
- expect(coverMatch![1]).toContain('object-fit: cover');
387
- });
388
-
389
- it('letterboxes media with object-fit: contain for fit="contain"', () => {
390
- const containMatch = resetCSS.match(
391
- /:where\(\[data-astryx-aspect-ratio-override="contain"\]\)\s*>\s*:where\(img, video\)\s*\{([^}]+)\}/,
392
- );
393
- expect(containMatch).not.toBeNull();
394
- expect(containMatch![1]).toContain('object-fit: contain');
395
+ expect(resetCSS).not.toContain('aspect-ratio-override');
395
396
  });
396
397
  });
397
398
  });