@astryxdesign/core 0.4.4 → 0.4.5-canary.1fdecb1

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 (275) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/dist/BottomSheet/BottomSheet.d.ts +11 -2
  3. package/dist/BottomSheet/BottomSheet.d.ts.map +1 -1
  4. package/dist/BottomSheet/BottomSheet.js +4 -0
  5. package/dist/BottomSheet/BottomSheetPanel.d.ts +5 -2
  6. package/dist/BottomSheet/BottomSheetPanel.d.ts.map +1 -1
  7. package/dist/BottomSheet/BottomSheetPanel.js +65 -15
  8. package/dist/BottomSheet/index.d.ts +1 -1
  9. package/dist/BottomSheet/index.d.ts.map +1 -1
  10. package/dist/BottomSheet/snapOffsets.d.ts +57 -20
  11. package/dist/BottomSheet/snapOffsets.d.ts.map +1 -1
  12. package/dist/BottomSheet/snapOffsets.js +106 -30
  13. package/dist/BottomSheet/useSheetGestures.d.ts +13 -8
  14. package/dist/BottomSheet/useSheetGestures.d.ts.map +1 -1
  15. package/dist/BottomSheet/useSheetGestures.js +160 -64
  16. package/dist/Calendar/Calendar.d.ts +17 -0
  17. package/dist/Calendar/Calendar.d.ts.map +1 -1
  18. package/dist/Calendar/Calendar.js +34 -3
  19. package/dist/Calendar/getStandaloneShortWeekdayNames.d.ts +14 -0
  20. package/dist/Calendar/getStandaloneShortWeekdayNames.d.ts.map +1 -0
  21. package/dist/Calendar/getStandaloneShortWeekdayNames.js +26 -0
  22. package/dist/Calendar/hooks/useCalendarConstraints.d.ts +22 -1
  23. package/dist/Calendar/hooks/useCalendarConstraints.d.ts.map +1 -1
  24. package/dist/Calendar/hooks/useCalendarConstraints.js +26 -4
  25. package/dist/Calendar/hooks/useCalendarDays.d.ts.map +1 -1
  26. package/dist/Calendar/hooks/useCalendarDays.js +14 -10
  27. package/dist/Calendar/standaloneShortWeekdayNames.generated.d.ts +47 -0
  28. package/dist/Calendar/standaloneShortWeekdayNames.generated.d.ts.map +1 -0
  29. package/dist/Calendar/standaloneShortWeekdayNames.generated.js +40 -0
  30. package/dist/Center/Center.d.ts +23 -1
  31. package/dist/Center/Center.d.ts.map +1 -1
  32. package/dist/Center/Center.js +12 -6
  33. package/dist/CheckboxInput/CheckboxInput.d.ts.map +1 -1
  34. package/dist/CheckboxInput/CheckboxInput.js +9 -0
  35. package/dist/ComplexSelector/ComplexSelector.d.ts.map +1 -1
  36. package/dist/ComplexSelector/ComplexSelector.js +6 -1
  37. package/dist/DateInput/DateInput.d.ts.map +1 -1
  38. package/dist/DateInput/DateInput.js +6 -1
  39. package/dist/DateRangeInput/DateRangeInput.d.ts +23 -1
  40. package/dist/DateRangeInput/DateRangeInput.d.ts.map +1 -1
  41. package/dist/DateRangeInput/DateRangeInput.js +38 -3
  42. package/dist/DateTimeInput/DateTimeInput.d.ts.map +1 -1
  43. package/dist/DateTimeInput/DateTimeInput.js +7 -2
  44. package/dist/Dialog/Dialog.d.ts.map +1 -1
  45. package/dist/Dialog/Dialog.js +3 -3
  46. package/dist/Field/FieldLabel.d.ts +2 -1
  47. package/dist/Field/FieldLabel.d.ts.map +1 -1
  48. package/dist/Field/FieldLabel.js +21 -3
  49. package/dist/Field/InputClearButton.d.ts +2 -1
  50. package/dist/Field/InputClearButton.d.ts.map +1 -1
  51. package/dist/Field/InputClearButton.js +6 -1
  52. package/dist/FormLayout/FormLayout.d.ts +24 -2
  53. package/dist/FormLayout/FormLayout.d.ts.map +1 -1
  54. package/dist/FormLayout/FormLayout.js +7 -2
  55. package/dist/FormLayout/FormLayoutContext.d.ts +15 -2
  56. package/dist/FormLayout/FormLayoutContext.d.ts.map +1 -1
  57. package/dist/FormLayout/FormLayoutContext.js +19 -4
  58. package/dist/FormLayout/index.d.ts +1 -1
  59. package/dist/FormLayout/index.d.ts.map +1 -1
  60. package/dist/Item/Item.d.ts +9 -1
  61. package/dist/Item/Item.d.ts.map +1 -1
  62. package/dist/Item/Item.js +45 -7
  63. package/dist/Layer/useLayer.d.ts.map +1 -1
  64. package/dist/Layer/useLayer.js +3 -2
  65. package/dist/Layout/container.stylex.d.ts +4 -2
  66. package/dist/Layout/container.stylex.d.ts.map +1 -1
  67. package/dist/Layout/container.stylex.js +19 -11
  68. package/dist/Layout/index.d.ts +1 -0
  69. package/dist/Layout/index.d.ts.map +1 -1
  70. package/dist/Layout/index.js +4 -0
  71. package/dist/Layout/padding.stylex.d.ts +315 -12
  72. package/dist/Layout/padding.stylex.d.ts.map +1 -1
  73. package/dist/Layout/padding.stylex.js +389 -12
  74. package/dist/Lightbox/Lightbox.d.ts.map +1 -1
  75. package/dist/Lightbox/Lightbox.js +2 -1
  76. package/dist/Markdown/Markdown.d.ts +8 -0
  77. package/dist/Markdown/Markdown.d.ts.map +1 -1
  78. package/dist/Markdown/Markdown.js +31 -3
  79. package/dist/Markdown/parser.d.ts +14 -2
  80. package/dist/Markdown/parser.d.ts.map +1 -1
  81. package/dist/Markdown/parser.js +50 -2
  82. package/dist/MobileNav/MobileNav.d.ts +1 -0
  83. package/dist/MobileNav/MobileNav.d.ts.map +1 -1
  84. package/dist/MobileNav/MobileNav.js +24 -6
  85. package/dist/MultiSelector/MultiSelector.d.ts.map +1 -1
  86. package/dist/MultiSelector/MultiSelector.js +6 -1
  87. package/dist/NumberInput/NumberInput.d.ts.map +1 -1
  88. package/dist/NumberInput/NumberInput.js +36 -3
  89. package/dist/Outline/parseOutlineFromMarkdown.d.ts +2 -0
  90. package/dist/Outline/parseOutlineFromMarkdown.d.ts.map +1 -1
  91. package/dist/Outline/parseOutlineFromMarkdown.js +5 -31
  92. package/dist/RadioList/RadioList.d.ts.map +1 -1
  93. package/dist/RadioList/RadioList.js +12 -1
  94. package/dist/Resizable/ResizeHandle.d.ts.map +1 -1
  95. package/dist/Resizable/ResizeHandle.js +3 -3
  96. package/dist/Section/Section.d.ts +36 -1
  97. package/dist/Section/Section.d.ts.map +1 -1
  98. package/dist/Section/Section.js +12 -2
  99. package/dist/Selector/Selector.d.ts +26 -1
  100. package/dist/Selector/Selector.d.ts.map +1 -1
  101. package/dist/Selector/Selector.js +93 -15
  102. package/dist/Selector/SelectorOption.d.ts +14 -1
  103. package/dist/Selector/SelectorOption.d.ts.map +1 -1
  104. package/dist/Selector/SelectorOption.js +6 -0
  105. package/dist/Selector/SelectorRowLayoutContext.d.ts +8 -0
  106. package/dist/Selector/SelectorRowLayoutContext.d.ts.map +1 -0
  107. package/dist/Selector/SelectorRowLayoutContext.js +27 -0
  108. package/dist/Selector/types.d.ts +1 -0
  109. package/dist/Selector/types.d.ts.map +1 -1
  110. package/dist/Slider/Slider.d.ts.map +1 -1
  111. package/dist/Slider/Slider.js +2 -2
  112. package/dist/Stack/Stack.d.ts +23 -1
  113. package/dist/Stack/Stack.d.ts.map +1 -1
  114. package/dist/Stack/Stack.js +12 -6
  115. package/dist/StatusDot/StatusDot.d.ts +43 -3
  116. package/dist/StatusDot/StatusDot.d.ts.map +1 -1
  117. package/dist/StatusDot/StatusDot.js +42 -5
  118. package/dist/Switch/Switch.d.ts.map +1 -1
  119. package/dist/Switch/Switch.js +9 -0
  120. package/dist/Table/plugins/rowExpansion/useTableRowExpansion.d.ts.map +1 -1
  121. package/dist/Table/plugins/rowExpansion/useTableRowExpansion.js +7 -2
  122. package/dist/TextArea/TextArea.d.ts.map +1 -1
  123. package/dist/TextArea/TextArea.js +6 -1
  124. package/dist/TextInput/TextInput.d.ts.map +1 -1
  125. package/dist/TextInput/TextInput.js +6 -1
  126. package/dist/TimeInput/TimeInput.d.ts.map +1 -1
  127. package/dist/TimeInput/TimeInput.js +6 -1
  128. package/dist/astryx.css +40 -21
  129. package/dist/hooks/scrollbarGutter.d.ts +28 -0
  130. package/dist/hooks/scrollbarGutter.d.ts.map +1 -0
  131. package/dist/hooks/scrollbarGutter.js +103 -0
  132. package/dist/hooks/useResolvedRequired.d.ts +19 -0
  133. package/dist/hooks/useResolvedRequired.d.ts.map +1 -0
  134. package/dist/hooks/useResolvedRequired.js +40 -0
  135. package/dist/hooks/useScrollLock.d.ts +4 -0
  136. package/dist/hooks/useScrollLock.d.ts.map +1 -1
  137. package/dist/hooks/useScrollLock.js +13 -1
  138. package/dist/theme/derivedVarRegistry.d.ts.map +1 -1
  139. package/dist/theme/derivedVarRegistry.js +7 -0
  140. package/dist/theme/generateThemeRules.d.ts.map +1 -1
  141. package/dist/theme/generateThemeRules.js +37 -4
  142. package/dist/utils/plainDate.d.ts +6 -0
  143. package/dist/utils/plainDate.d.ts.map +1 -1
  144. package/dist/utils/plainDate.js +12 -0
  145. package/locales/af-ZA.json +958 -0
  146. package/locales/ar-SA.json +998 -0
  147. package/locales/ca-ES.json +974 -0
  148. package/locales/cs-CZ.json +990 -0
  149. package/locales/da-DK.json +966 -0
  150. package/locales/de-DE.json +966 -0
  151. package/locales/el-GR.json +990 -0
  152. package/locales/en.json +8 -0
  153. package/locales/es-ES.json +978 -0
  154. package/locales/fi-FI.json +990 -0
  155. package/locales/fr-FR.json +928 -0
  156. package/locales/he-IL.json +990 -0
  157. package/locales/hu-HU.json +990 -0
  158. package/locales/it-IT.json +978 -0
  159. package/locales/ja-JP.json +998 -0
  160. package/locales/ko-KR.json +990 -0
  161. package/locales/nl-NL.json +954 -0
  162. package/locales/no-NO.json +978 -0
  163. package/locales/pl-PL.json +982 -0
  164. package/locales/pseudo.json +6 -0
  165. package/locales/pt-BR.json +982 -0
  166. package/locales/pt-PT.json +982 -0
  167. package/locales/ro-RO.json +982 -0
  168. package/locales/ru-RU.json +990 -0
  169. package/locales/sr-SP.json +990 -0
  170. package/locales/sv-SE.json +986 -0
  171. package/locales/tr-TR.json +990 -0
  172. package/locales/uk-UA.json +990 -0
  173. package/locales/vi-VN.json +986 -0
  174. package/locales/zh-CN.json +998 -0
  175. package/locales/zh-TW.json +998 -0
  176. package/package.json +3 -3
  177. package/src/BottomSheet/BottomSheet.doc.mjs +36 -3
  178. package/src/BottomSheet/BottomSheet.test.tsx +177 -2
  179. package/src/BottomSheet/BottomSheet.tsx +16 -2
  180. package/src/BottomSheet/BottomSheetPanel.test.tsx +41 -0
  181. package/src/BottomSheet/BottomSheetPanel.tsx +95 -15
  182. package/src/BottomSheet/index.ts +5 -1
  183. package/src/BottomSheet/snapOffsets.test.ts +114 -47
  184. package/src/BottomSheet/snapOffsets.ts +119 -33
  185. package/src/BottomSheet/useSheetGestures.test.ts +113 -15
  186. package/src/BottomSheet/useSheetGestures.ts +196 -100
  187. package/src/Calendar/Calendar.doc.mjs +16 -0
  188. package/src/Calendar/Calendar.test.tsx +137 -0
  189. package/src/Calendar/Calendar.tsx +65 -2
  190. package/src/Calendar/getStandaloneShortWeekdayNames.test.ts +54 -0
  191. package/src/Calendar/getStandaloneShortWeekdayNames.ts +38 -0
  192. package/src/Calendar/hooks/useCalendarConstraints.ts +54 -3
  193. package/src/Calendar/hooks/useCalendarDays.ts +13 -10
  194. package/src/Calendar/standaloneShortWeekdayNames.generated.ts +50 -0
  195. package/src/Center/Center.doc.mjs +48 -0
  196. package/src/Center/Center.test.tsx +158 -0
  197. package/src/Center/Center.tsx +50 -9
  198. package/src/CheckboxInput/CheckboxInput.tsx +6 -0
  199. package/src/ComplexSelector/ComplexSelector.tsx +3 -1
  200. package/src/DateInput/DateInput.tsx +3 -1
  201. package/src/DateRangeInput/DateRangeInput.doc.mjs +16 -0
  202. package/src/DateRangeInput/DateRangeInput.test.tsx +81 -1
  203. package/src/DateRangeInput/DateRangeInput.tsx +72 -1
  204. package/src/DateTimeInput/DateTimeInput.tsx +4 -2
  205. package/src/Dialog/Dialog.test.tsx +24 -0
  206. package/src/Dialog/Dialog.tsx +3 -0
  207. package/src/Field/Field.doc.mjs +1 -0
  208. package/src/Field/FieldLabel.tsx +20 -4
  209. package/src/Field/InputClearButton.test.tsx +25 -0
  210. package/src/Field/InputClearButton.tsx +4 -1
  211. package/src/FormLayout/FormLayout.doc.mjs +13 -0
  212. package/src/FormLayout/FormLayout.test.tsx +181 -4
  213. package/src/FormLayout/FormLayout.tsx +33 -2
  214. package/src/FormLayout/FormLayoutContext.ts +22 -7
  215. package/src/FormLayout/index.ts +1 -1
  216. package/src/Item/Item.doc.mjs +1 -0
  217. package/src/Item/Item.test.tsx +50 -0
  218. package/src/Item/Item.tsx +40 -1
  219. package/src/Layer/useLayer.tsx +13 -2
  220. package/src/Layout/Layout.doc.mjs +18 -0
  221. package/src/Layout/container.stylex.ts +11 -3
  222. package/src/Layout/index.ts +4 -0
  223. package/src/Layout/overlayPaddingReset.test.tsx +222 -0
  224. package/src/Layout/padding.stylex.ts +192 -12
  225. package/src/Lightbox/Lightbox.tsx +2 -1
  226. package/src/Markdown/Markdown.doc.mjs +3 -0
  227. package/src/Markdown/Markdown.test.tsx +78 -0
  228. package/src/Markdown/Markdown.tsx +41 -1
  229. package/src/Markdown/parser.ts +60 -2
  230. package/src/MobileNav/MobileNav.tsx +61 -5
  231. package/src/MobileNav/MobileNavEntryAnimation.test.tsx +212 -0
  232. package/src/MobileNav/MobileNavScrollbarGutter.test.tsx +109 -0
  233. package/src/MultiSelector/MultiSelector.tsx +3 -1
  234. package/src/NumberInput/NumberInput.doc.mjs +24 -0
  235. package/src/NumberInput/NumberInput.test.tsx +138 -0
  236. package/src/NumberInput/NumberInput.tsx +43 -5
  237. package/src/Outline/Outline.doc.mjs +2 -0
  238. package/src/Outline/parseOutlineFromMarkdown.ts +10 -40
  239. package/src/RadioList/RadioList.tsx +9 -1
  240. package/src/Resizable/ResizeHandle.test.tsx +22 -0
  241. package/src/Resizable/ResizeHandle.tsx +9 -3
  242. package/src/Section/Section.doc.mjs +55 -0
  243. package/src/Section/Section.test.tsx +201 -4
  244. package/src/Section/Section.tsx +69 -0
  245. package/src/Selector/Selector.doc.mjs +16 -2
  246. package/src/Selector/Selector.test.tsx +524 -0
  247. package/src/Selector/Selector.tsx +161 -17
  248. package/src/Selector/SelectorOption.doc.mjs +7 -0
  249. package/src/Selector/SelectorOption.tsx +21 -0
  250. package/src/Selector/SelectorRowLayoutContext.ts +32 -0
  251. package/src/Selector/types.ts +4 -4
  252. package/src/Slider/Slider.tsx +10 -0
  253. package/src/Stack/Stack.doc.mjs +72 -0
  254. package/src/Stack/Stack.test.tsx +156 -0
  255. package/src/Stack/Stack.tsx +50 -8
  256. package/src/StatusDot/StatusDot.doc.mjs +13 -0
  257. package/src/StatusDot/StatusDot.test.tsx +115 -8
  258. package/src/StatusDot/StatusDot.tsx +74 -9
  259. package/src/Switch/Switch.tsx +6 -0
  260. package/src/Table/plugins/rowExpansion/useTableRowExpansion.tsx +20 -2
  261. package/src/TextArea/TextArea.tsx +3 -1
  262. package/src/TextInput/TextInput.tsx +3 -1
  263. package/src/TimeInput/TimeInput.tsx +3 -1
  264. package/src/hooks/scrollbarGutter.test.ts +167 -0
  265. package/src/hooks/scrollbarGutter.ts +121 -0
  266. package/src/hooks/useResolvedRequired.ts +42 -0
  267. package/src/hooks/useScrollLock.doc.mjs +4 -4
  268. package/src/hooks/useScrollLock.test.ts +73 -0
  269. package/src/hooks/useScrollLock.ts +14 -0
  270. package/src/theme/derivedVarRegistry.test.ts +14 -3
  271. package/src/theme/derivedVarRegistry.ts +4 -0
  272. package/src/theme/generateThemeRules.test.ts +79 -0
  273. package/src/theme/generateThemeRules.ts +49 -4
  274. package/src/utils/plainDate.test.ts +50 -0
  275. package/src/utils/plainDate.ts +12 -0
package/dist/Item/Item.js CHANGED
@@ -82,6 +82,15 @@ const styles = {
82
82
  kfzvcC: "x47corl",
83
83
  $$css: true
84
84
  },
85
+ inlineLabel: {
86
+ kmuXW: "x2lah0s",
87
+ $$css: true
88
+ },
89
+ inlineDescription: {
90
+ kmuXW: "xs83m0k",
91
+ k7Eaqz: "xeuugli",
92
+ $$css: true
93
+ },
85
94
  label: {
86
95
  kMwMTN: "x5tbw38",
87
96
  kGuDYH: "xjm74w1",
@@ -174,6 +183,7 @@ export function Item({
174
183
  density = 'balanced',
175
184
  labelLines,
176
185
  descriptionLines,
186
+ layout = 'stacked',
177
187
  onClick,
178
188
  interactiveRef,
179
189
  href,
@@ -223,13 +233,17 @@ export function Item({
223
233
  const isStringLabel = typeof label === 'string';
224
234
  const isStringDescription = typeof description === 'string';
225
235
  const labelTruncateStyle = labelLines != null ? labelLines === 1 ? styles.labelSingleTruncate : styles.labelMultiTruncate : isStringLabel ? styles.labelSingleTruncate : null;
226
- const descriptionTruncateStyle = descriptionLines != null ? descriptionLines === 1 ? styles.descriptionSingleTruncate : styles.descriptionMultiTruncate : isStringDescription ? styles.descriptionSingleTruncate : null;
236
+
237
+ // Inline rows are one line by definition, so the description always
238
+ // ellipsizes there — a ReactNode description cannot wrap the row open.
239
+ const isInline = layout === 'inline' && description != null;
240
+ const descriptionTruncateStyle = descriptionLines != null ? descriptionLines === 1 ? styles.descriptionSingleTruncate : styles.descriptionMultiTruncate : isStringDescription || isInline ? styles.descriptionSingleTruncate : null;
227
241
  const labelAndDescription = /*#__PURE__*/_jsxs(_Fragment, {
228
242
  children: [/*#__PURE__*/_jsx("span", {
229
- ...stylex.props(styles.label, labelTruncateStyle, labelLines != null && labelLines > 1 && dynamicStyles.lineClamp(labelLines)),
243
+ ...stylex.props(styles.label, isInline && styles.inlineLabel, labelTruncateStyle, labelLines != null && labelLines > 1 && dynamicStyles.lineClamp(labelLines)),
230
244
  children: label
231
245
  }), description != null && /*#__PURE__*/_jsx("span", {
232
- ...stylex.props(styles.description, descriptionTruncateStyle, descriptionLines != null && descriptionLines > 1 && dynamicStyles.lineClamp(descriptionLines)),
246
+ ...stylex.props(styles.description, isInline && styles.inlineDescription, descriptionTruncateStyle, descriptionLines != null && descriptionLines > 1 && dynamicStyles.lineClamp(descriptionLines)),
233
247
  children: description
234
248
  })]
235
249
  });
@@ -259,10 +273,16 @@ export function Item({
259
273
  0: {
260
274
  className: "x78zum5 xdt5ytf x98rzlu xeuugli x1yc453h"
261
275
  },
276
+ 2: {
277
+ className: "x78zum5 x98rzlu xeuugli x1yc453h x1q0g3np x6s0dn4 x1lfs0n9"
278
+ },
262
279
  1: {
263
280
  className: "x78zum5 xdt5ytf x98rzlu xeuugli x1yc453h xbyyjgo"
281
+ },
282
+ 3: {
283
+ className: "x78zum5 x98rzlu xeuugli x1yc453h x1q0g3np x6s0dn4 x1lfs0n9 xbyyjgo"
264
284
  }
265
- }[!!isDisabled << 0],
285
+ }[!!isInline << 1 | !!isDisabled << 0],
266
286
  children: labelAndDescription
267
287
  }) : href != null ? /*#__PURE__*/_jsx(LinkComponent, {
268
288
  href: href,
@@ -274,10 +294,16 @@ export function Item({
274
294
  0: {
275
295
  className: "xmper1u xln7xf2 x1heor9g x78zum5 xdt5ytf x98rzlu xeuugli x1yc453h x1hl2dhg x1a2a7pz"
276
296
  },
297
+ 2: {
298
+ className: "xmper1u xln7xf2 x1heor9g x78zum5 x98rzlu xeuugli x1yc453h x1hl2dhg x1a2a7pz x1q0g3np x6s0dn4 x1lfs0n9"
299
+ },
277
300
  1: {
278
301
  className: "xmper1u xln7xf2 x1heor9g x78zum5 xdt5ytf x98rzlu xeuugli x1yc453h x1hl2dhg x1a2a7pz xbyyjgo"
302
+ },
303
+ 3: {
304
+ className: "xmper1u xln7xf2 x1heor9g x78zum5 x98rzlu xeuugli x1yc453h x1hl2dhg x1a2a7pz x1q0g3np x6s0dn4 x1lfs0n9 xbyyjgo"
279
305
  }
280
- }[!!isDisabled << 0],
306
+ }[!!isInline << 1 | !!isDisabled << 0],
281
307
  children: labelAndDescription
282
308
  }) : onClick != null ? /*#__PURE__*/_jsx("button", {
283
309
  type: "button",
@@ -287,20 +313,32 @@ export function Item({
287
313
  0: {
288
314
  className: "xmper1u xln7xf2 x1heor9g x78zum5 xdt5ytf x98rzlu xeuugli x1yc453h x1a2a7pz"
289
315
  },
316
+ 2: {
317
+ className: "xmper1u xln7xf2 x1heor9g x78zum5 x98rzlu xeuugli x1yc453h x1a2a7pz x1q0g3np x6s0dn4 x1lfs0n9"
318
+ },
290
319
  1: {
291
320
  className: "xmper1u xln7xf2 x1heor9g x78zum5 xdt5ytf x98rzlu xeuugli x1yc453h x1a2a7pz xbyyjgo"
321
+ },
322
+ 3: {
323
+ className: "xmper1u xln7xf2 x1heor9g x78zum5 x98rzlu xeuugli x1yc453h x1a2a7pz x1q0g3np x6s0dn4 x1lfs0n9 xbyyjgo"
292
324
  }
293
- }[!!isDisabled << 0],
325
+ }[!!isInline << 1 | !!isDisabled << 0],
294
326
  children: labelAndDescription
295
327
  }) : /*#__PURE__*/_jsx("span", {
296
328
  ...{
297
329
  0: {
298
330
  className: "x78zum5 xdt5ytf x98rzlu xeuugli x1yc453h"
299
331
  },
332
+ 2: {
333
+ className: "x78zum5 x98rzlu xeuugli x1yc453h x1q0g3np x6s0dn4 x1lfs0n9"
334
+ },
300
335
  1: {
301
336
  className: "x78zum5 xdt5ytf x98rzlu xeuugli x1yc453h xbyyjgo"
337
+ },
338
+ 3: {
339
+ className: "x78zum5 x98rzlu xeuugli x1yc453h x1q0g3np x6s0dn4 x1lfs0n9 xbyyjgo"
302
340
  }
303
- }[!!isDisabled << 0],
341
+ }[!!isInline << 1 | !!isDisabled << 0],
304
342
  children: labelAndDescription
305
343
  }), endContent != null && /*#__PURE__*/_jsx("span", {
306
344
  ...{
@@ -1 +1 @@
1
- {"version":3,"file":"useLayer.d.ts","sourceRoot":"","sources":["../../src/Layer/useLayer.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,EAMZ,KAAK,SAAS,EACd,KAAK,WAAW,EACjB,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,kBAAkB,CAAC;AA+CnD;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,KAAK,CAAC;AAEjE;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;AAExD;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;;;;;;;;;;;;OAcG;IACH,WAAW,CAAC,EAAE,Q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,IAAI,EAAE,MAAM,IAAI,CAAC;IAEjB;;OAEG;IACH,IAAI,EAAE,MAAM,IAAI,CAAC;IAEjB;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;OAGG;IACH,MAAM,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,gBAAgB,KAAK,SAAS,CAAC;CACrE;AAmFD;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CACrC,SAAS,GAAE,cAAwB,EACnC,SAAS,GAAE,cAAyB,GACnC,MAAM,CAgBR;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,QAAQ,CAAC,OAAO,EAAE,mBAAmB,GAAG,kBAAkB,CAAC;AAC3E,wBAAgB,QAAQ,CAAC,OAAO,EAAE,iBAAiB,GAAG,gBAAgB,CAAC"}
@@ -20,6 +20,7 @@ import { addAnchorName, removeAnchorName } from "./anchorName.js";
20
20
  import { resolveLayerPortalTarget } from "./layerHost.js";
21
21
  import "../theme/tokens.stylex.js";
22
22
  import { typeScaleVars, typographyVars } from "../theme/tokens.stylex.js";
23
+ import { overlayPaddingReset } from "../Layout/padding.stylex.js";
23
24
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
24
25
  const _temp = {
25
26
  keoZOQ: "x1vhfslr",
@@ -453,7 +454,7 @@ export function useLayer(options) {
453
454
  positionTryFallbacks: getPositionTryFallbacks(placement, alignment)
454
455
  };
455
456
  const offsetStyle = positioning === 'anchor' && offset ? placement === 'above' || placement === 'below' ? styles.offsetBlock(toCssLength(offset)) : styles.offsetInline(toCssLength(offset)) : null;
456
- const stylexResult = stylex.props(styles.base, offsetStyle, xstyle);
457
+ const stylexResult = stylex.props(styles.base, overlayPaddingReset.reset, offsetStyle, xstyle);
457
458
  const combinedClassName = extraClassName ? `${extraClassName} ${stylexResult.className ?? ''}` : stylexResult.className;
458
459
 
459
460
  // The marker gives us the actual JSX parent without mounting arbitrary
@@ -496,7 +497,7 @@ export function useLayer(options) {
496
497
  top: y,
497
498
  left: x
498
499
  };
499
- const stylexResult = stylex.props(styles.base, styles.fixed, xstyle);
500
+ const stylexResult = stylex.props(styles.base, overlayPaddingReset.reset, styles.fixed, xstyle);
500
501
  const combinedClassName = extraClassName ? `${extraClassName} ${stylexResult.className ?? ''}` : stylexResult.className;
501
502
  return /*#__PURE__*/_jsx("div", {
502
503
  ref: popoverRefCallback,
@@ -26,8 +26,10 @@
26
26
  * }
27
27
  * ```
28
28
  *
29
- * Internal variables (`--layout-padding-inner-x`, `--container-padding-*`)
30
- * are implementation details and must not be referenced by themes.
29
+ * Internal variables (`--layout-padding-inner-x`, `--container-padding-*`,
30
+ * `--_section-padding-propagated`) are implementation details and must not be
31
+ * referenced by themes. They also do not cross an overlay boundary — see
32
+ * `overlayPaddingReset` in padding.stylex.ts.
31
33
  *
32
34
  * SYNC: When modified, update /packages/core/src/Layout/Layout.doc.mjs
33
35
  */
@@ -1 +1 @@
1
- {"version":3,"file":"container.stylex.d.ts","sourceRoot":"","sources":["../../src/Layout/container.stylex.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAC;AAG3C;;GAEG;AACH,MAAM,MAAM,YAAY,GACpB,UAAU,GACV,YAAY,GACZ,UAAU,GACV,YAAY,GACZ,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,WAAW,GACX,WAAW,GACX,WAAW,CAAC;AAoJhB;;;GAGG;AACH,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIvB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,MAAM,OAAO,kBAAkB,CAAC;AAuKjE,MAAM,WAAW,gBAAgB;IAC/B;;;;;OAKG;IACH,OAAO,CAAC,EAAE,YAAY,CAAC;IAEvB;;;;OAIG;IACH,aAAa,CAAC,EAAE,YAAY,CAAC;IAE7B;;;;OAIG;IACH,aAAa,CAAC,EAAE,YAAY,CAAC;IAE7B;;;;OAIG;IACH,aAAa,CAAC,EAAE,YAAY,CAAC;IAE7B;;;;OAIG;IACH,aAAa,CAAC,EAAE,YAAY,CAAC;IAE7B;;;;;;;;;;;OAWG;IACH,eAAe,CAAC,EAAE,kBAAkB,CAAC;IAErC;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,wBAAgB,SAAS,CAAC,EACxB,OAAoB,EACpB,aAAa,EACb,aAAa,EACb,aAAa,EACb,aAAa,EACb,eAAe,EACf,SAAS,GACV,EAAE,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAyClB"}
1
+ {"version":3,"file":"container.stylex.d.ts","sourceRoot":"","sources":["../../src/Layout/container.stylex.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAC;AAG3C;;GAEG;AACH,MAAM,MAAM,YAAY,GACpB,UAAU,GACV,YAAY,GACZ,UAAU,GACV,YAAY,GACZ,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,WAAW,GACX,WAAW,GACX,WAAW,CAAC;AA0JhB;;;GAGG;AACH,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIvB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,MAAM,OAAO,kBAAkB,CAAC;AAuKjE,MAAM,WAAW,gBAAgB;IAC/B;;;;;OAKG;IACH,OAAO,CAAC,EAAE,YAAY,CAAC;IAEvB;;;;OAIG;IACH,aAAa,CAAC,EAAE,YAAY,CAAC;IAE7B;;;;OAIG;IACH,aAAa,CAAC,EAAE,YAAY,CAAC;IAE7B;;;;OAIG;IACH,aAAa,CAAC,EAAE,YAAY,CAAC;IAE7B;;;;OAIG;IACH,aAAa,CAAC,EAAE,YAAY,CAAC;IAE7B;;;;;;;;;;;OAWG;IACH,eAAe,CAAC,EAAE,kBAAkB,CAAC;IAErC;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,wBAAgB,SAAS,CAAC,EACxB,OAAoB,EACpB,aAAa,EACb,aAAa,EACb,aAAa,EACb,aAAa,EACb,eAAe,EACf,SAAS,GACV,EAAE,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAyClB"}
@@ -28,8 +28,10 @@
28
28
  * }
29
29
  * ```
30
30
  *
31
- * Internal variables (`--layout-padding-inner-x`, `--container-padding-*`)
32
- * are implementation details and must not be referenced by themes.
31
+ * Internal variables (`--layout-padding-inner-x`, `--container-padding-*`,
32
+ * `--_section-padding-propagated`) are implementation details and must not be
33
+ * referenced by themes. They also do not cross an overlay boundary — see
34
+ * `overlayPaddingReset` in padding.stylex.ts.
33
35
  *
34
36
  * SYNC: When modified, update /packages/core/src/Layout/Layout.doc.mjs
35
37
  */
@@ -91,7 +93,13 @@ const cardBlockEnd = `var(--astryx-card-padding-block-end, ${cardShorthand})`;
91
93
  // Section padding chains: --astryx-* then the next specificity level, terminating
92
94
  // at --spacing-4. Built as chained const strings (no function calls) so StyleX
93
95
  // can statically analyze them; see naming.ts for the prefix policy.
94
- const sectionShorthand = `var(--astryx-section-padding, ${SP4})`;
96
+ // `--_section-padding-propagated` (set by an ancestor Section with explicit
97
+ // padding) is read AHEAD of the public theme token, so a propagated value
98
+ // still wins over the theme for nested sections. Splitting the two names is
99
+ // what lets an overlay drop the inherited value at its boundary while keeping
100
+ // the theme's — see `overlayPaddingReset` in padding.stylex.ts.
101
+ const sectionThemeShorthand = `var(--astryx-section-padding, ${SP4})`;
102
+ const sectionShorthand = `var(--_section-padding-propagated, ${sectionThemeShorthand})`;
95
103
  const sectionInline = `var(--astryx-section-padding-inline, ${sectionShorthand})`;
96
104
  const sectionInlineStart = `var(--astryx-section-padding-inline-start, ${sectionInline})`;
97
105
  const sectionInlineEnd = `var(--astryx-section-padding-inline-end, ${sectionInline})`;
@@ -143,35 +151,35 @@ const cardDefaultPaddingStyles = {
143
151
  };
144
152
  const sectionDefaultPaddingStyles = {
145
153
  containerPaddingInlineStart: {
146
- "--container-padding-inline-start": "xrgx2ny",
154
+ "--container-padding-inline-start": "x19lemt0",
147
155
  $$css: true
148
156
  },
149
157
  containerPaddingInlineEnd: {
150
- "--container-padding-inline-end": "xyk0j9o",
158
+ "--container-padding-inline-end": "xu1wldr",
151
159
  $$css: true
152
160
  },
153
161
  containerPaddingBlockStart: {
154
- "--container-padding-block-start": "x876hks",
162
+ "--container-padding-block-start": "xnw7zt4",
155
163
  $$css: true
156
164
  },
157
165
  containerPaddingBlockEnd: {
158
- "--container-padding-block-end": "x1u89lk7",
166
+ "--container-padding-block-end": "xek4msv",
159
167
  $$css: true
160
168
  },
161
169
  layoutPaddingOuterX: {
162
- "--layout-padding-outer-x": "x12sptzx",
170
+ "--layout-padding-outer-x": "x15i0zw9",
163
171
  $$css: true
164
172
  },
165
173
  layoutPaddingOuterY: {
166
- "--layout-padding-outer-y": "xo78phr",
174
+ "--layout-padding-outer-y": "x1vw4zgg",
167
175
  $$css: true
168
176
  },
169
177
  layoutPaddingInnerX: {
170
- "--layout-padding-inner-x": "x1we69p7",
178
+ "--layout-padding-inner-x": "x1v3gmnx",
171
179
  $$css: true
172
180
  },
173
181
  layoutPaddingInnerY: {
174
- "--layout-padding-inner-y": "xsdnkbz",
182
+ "--layout-padding-inner-y": "x15yx5hm",
175
183
  $$css: true
176
184
  }
177
185
  };
@@ -8,6 +8,7 @@
8
8
  */
9
9
  export { container } from './container.stylex';
10
10
  export type { ContainerComponent, ContainerOptions, SpacingToken, } from './container.stylex';
11
+ export { overlayPaddingReset } from './padding.stylex';
11
12
  export { edgeCompSlot, EDGE_COMP_ATTR } from './edgeCompensation.stylex';
12
13
  export { stack } from '../Stack/stack.stylex';
13
14
  export type { StackOptions, StackDirection, StackCrossAlignment, StackMainAlignment, StackWrap, SpacingStep, } from '../Stack/stack.stylex';
@@ -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;AAG5B,OAAO,EAAC,YAAY,EAAE,cAAc,EAAC,MAAM,2BAA2B,CAAC;AAGvE,OAAO,EAAC,KAAK,EAAC,MAAM,uBAAuB,CAAC;AAC5C,YAAY,EACV,YAAY,EACZ,cAAc,EACd,mBAAmB,EACnB,kBAAkB,EAClB,SAAS,EACT,WAAW,GACZ,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAC,SAAS,EAAC,MAAM,2BAA2B,CAAC;AACpD,YAAY,EACV,gBAAgB,EAChB,uBAAuB,EACvB,aAAa,GACd,MAAM,2BAA2B,CAAC;AAGnC,OAAO,EAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAC,MAAM,UAAU,CAAC;AAC1D,YAAY,EACV,UAAU,EACV,cAAc,EACd,WAAW,EACX,WAAW,EACX,cAAc,GACf,MAAM,UAAU,CAAC;AAGlB,OAAO,EAAC,IAAI,EAAC,MAAM,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AO,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"}
@@ -13,6 +13,10 @@
13
13
 
14
14
  // Container utility
15
15
  export { container } from "./container.stylex.js";
16
+ // Overlay padding-variable reset (applied on overlay roots so the container
17
+ // padding system does not cross a fixed/top-layer boundary)
18
+ export { overlayPaddingReset } from "./padding.stylex.js";
19
+
16
20
  // Edge compensation utility
17
21
  export { edgeCompSlot, EDGE_COMP_ATTR } from "./edgeCompensation.stylex.js";
18
22
 
@@ -388,44 +388,347 @@ export declare const paddingBlockStyles: Readonly<{
388
388
  }>;
389
389
  }>;
390
390
  /**
391
- * Propagation styles for --astryx-section-padding.
391
+ * Inline-start-only padding override styles.
392
+ * Use when a component needs to override the inline-start edge independently
393
+ * of inline-end. Logical, so it follows the writing direction (left in LTR,
394
+ * right in RTL).
395
+ */
396
+ export declare const paddingInlineStartStyles: Readonly<{
397
+ readonly 0: Readonly<{
398
+ readonly paddingInlineStart: stylex.StyleXClassNameFor<"paddingInlineStart", "0px">;
399
+ }>;
400
+ readonly 0.5: Readonly<{
401
+ readonly paddingInlineStart: stylex.StyleXClassNameFor<"paddingInlineStart", "2px">;
402
+ }>;
403
+ readonly 1: Readonly<{
404
+ readonly paddingInlineStart: stylex.StyleXClassNameFor<"paddingInlineStart", "4px">;
405
+ }>;
406
+ readonly 1.5: Readonly<{
407
+ readonly paddingInlineStart: stylex.StyleXClassNameFor<"paddingInlineStart", "6px">;
408
+ }>;
409
+ readonly 2: Readonly<{
410
+ readonly paddingInlineStart: stylex.StyleXClassNameFor<"paddingInlineStart", "8px">;
411
+ }>;
412
+ readonly 3: Readonly<{
413
+ readonly paddingInlineStart: stylex.StyleXClassNameFor<"paddingInlineStart", "12px">;
414
+ }>;
415
+ readonly 4: Readonly<{
416
+ readonly paddingInlineStart: stylex.StyleXClassNameFor<"paddingInlineStart", "16px">;
417
+ }>;
418
+ readonly 5: Readonly<{
419
+ readonly paddingInlineStart: stylex.StyleXClassNameFor<"paddingInlineStart", "20px">;
420
+ }>;
421
+ readonly 6: Readonly<{
422
+ readonly paddingInlineStart: stylex.StyleXClassNameFor<"paddingInlineStart", "24px">;
423
+ }>;
424
+ readonly 8: Readonly<{
425
+ readonly paddingInlineStart: stylex.StyleXClassNameFor<"paddingInlineStart", "32px">;
426
+ }>;
427
+ readonly 10: Readonly<{
428
+ readonly paddingInlineStart: stylex.StyleXClassNameFor<"paddingInlineStart", "40px">;
429
+ }>;
430
+ }>;
431
+ /**
432
+ * Inline-end-only padding override styles.
433
+ * The inline-end counterpart of paddingInlineStartStyles.
434
+ */
435
+ export declare const paddingInlineEndStyles: Readonly<{
436
+ readonly 0: Readonly<{
437
+ readonly paddingInlineEnd: stylex.StyleXClassNameFor<"paddingInlineEnd", "0px">;
438
+ }>;
439
+ readonly 0.5: Readonly<{
440
+ readonly paddingInlineEnd: stylex.StyleXClassNameFor<"paddingInlineEnd", "2px">;
441
+ }>;
442
+ readonly 1: Readonly<{
443
+ readonly paddingInlineEnd: stylex.StyleXClassNameFor<"paddingInlineEnd", "4px">;
444
+ }>;
445
+ readonly 1.5: Readonly<{
446
+ readonly paddingInlineEnd: stylex.StyleXClassNameFor<"paddingInlineEnd", "6px">;
447
+ }>;
448
+ readonly 2: Readonly<{
449
+ readonly paddingInlineEnd: stylex.StyleXClassNameFor<"paddingInlineEnd", "8px">;
450
+ }>;
451
+ readonly 3: Readonly<{
452
+ readonly paddingInlineEnd: stylex.StyleXClassNameFor<"paddingInlineEnd", "12px">;
453
+ }>;
454
+ readonly 4: Readonly<{
455
+ readonly paddingInlineEnd: stylex.StyleXClassNameFor<"paddingInlineEnd", "16px">;
456
+ }>;
457
+ readonly 5: Readonly<{
458
+ readonly paddingInlineEnd: stylex.StyleXClassNameFor<"paddingInlineEnd", "20px">;
459
+ }>;
460
+ readonly 6: Readonly<{
461
+ readonly paddingInlineEnd: stylex.StyleXClassNameFor<"paddingInlineEnd", "24px">;
462
+ }>;
463
+ readonly 8: Readonly<{
464
+ readonly paddingInlineEnd: stylex.StyleXClassNameFor<"paddingInlineEnd", "32px">;
465
+ }>;
466
+ readonly 10: Readonly<{
467
+ readonly paddingInlineEnd: stylex.StyleXClassNameFor<"paddingInlineEnd", "40px">;
468
+ }>;
469
+ }>;
470
+ /**
471
+ * Container padding inline-start CSS variable style, set independently of
472
+ * inline-end so a per-edge override keeps edge-compensating children (Card,
473
+ * Divider, a nested Section) compensating against the padding actually
474
+ * applied on that edge.
475
+ */
476
+ export declare const containerPaddingInlineStartVarStyles: Readonly<{
477
+ readonly 0: Readonly<{
478
+ readonly '--container-padding-inline-start': stylex.StyleXClassNameFor<"--container-padding-inline-start", "0px">;
479
+ }>;
480
+ readonly 0.5: Readonly<{
481
+ readonly '--container-padding-inline-start': stylex.StyleXClassNameFor<"--container-padding-inline-start", "2px">;
482
+ }>;
483
+ readonly 1: Readonly<{
484
+ readonly '--container-padding-inline-start': stylex.StyleXClassNameFor<"--container-padding-inline-start", "4px">;
485
+ }>;
486
+ readonly 1.5: Readonly<{
487
+ readonly '--container-padding-inline-start': stylex.StyleXClassNameFor<"--container-padding-inline-start", "6px">;
488
+ }>;
489
+ readonly 2: Readonly<{
490
+ readonly '--container-padding-inline-start': stylex.StyleXClassNameFor<"--container-padding-inline-start", "8px">;
491
+ }>;
492
+ readonly 3: Readonly<{
493
+ readonly '--container-padding-inline-start': stylex.StyleXClassNameFor<"--container-padding-inline-start", "12px">;
494
+ }>;
495
+ readonly 4: Readonly<{
496
+ readonly '--container-padding-inline-start': stylex.StyleXClassNameFor<"--container-padding-inline-start", "16px">;
497
+ }>;
498
+ readonly 5: Readonly<{
499
+ readonly '--container-padding-inline-start': stylex.StyleXClassNameFor<"--container-padding-inline-start", "20px">;
500
+ }>;
501
+ readonly 6: Readonly<{
502
+ readonly '--container-padding-inline-start': stylex.StyleXClassNameFor<"--container-padding-inline-start", "24px">;
503
+ }>;
504
+ readonly 8: Readonly<{
505
+ readonly '--container-padding-inline-start': stylex.StyleXClassNameFor<"--container-padding-inline-start", "32px">;
506
+ }>;
507
+ readonly 10: Readonly<{
508
+ readonly '--container-padding-inline-start': stylex.StyleXClassNameFor<"--container-padding-inline-start", "40px">;
509
+ }>;
510
+ }>;
511
+ /**
512
+ * Container padding inline-end CSS variable style, the counterpart of
513
+ * containerPaddingInlineStartVarStyles.
514
+ */
515
+ export declare const containerPaddingInlineEndVarStyles: Readonly<{
516
+ readonly 0: Readonly<{
517
+ readonly '--container-padding-inline-end': stylex.StyleXClassNameFor<"--container-padding-inline-end", "0px">;
518
+ }>;
519
+ readonly 0.5: Readonly<{
520
+ readonly '--container-padding-inline-end': stylex.StyleXClassNameFor<"--container-padding-inline-end", "2px">;
521
+ }>;
522
+ readonly 1: Readonly<{
523
+ readonly '--container-padding-inline-end': stylex.StyleXClassNameFor<"--container-padding-inline-end", "4px">;
524
+ }>;
525
+ readonly 1.5: Readonly<{
526
+ readonly '--container-padding-inline-end': stylex.StyleXClassNameFor<"--container-padding-inline-end", "6px">;
527
+ }>;
528
+ readonly 2: Readonly<{
529
+ readonly '--container-padding-inline-end': stylex.StyleXClassNameFor<"--container-padding-inline-end", "8px">;
530
+ }>;
531
+ readonly 3: Readonly<{
532
+ readonly '--container-padding-inline-end': stylex.StyleXClassNameFor<"--container-padding-inline-end", "12px">;
533
+ }>;
534
+ readonly 4: Readonly<{
535
+ readonly '--container-padding-inline-end': stylex.StyleXClassNameFor<"--container-padding-inline-end", "16px">;
536
+ }>;
537
+ readonly 5: Readonly<{
538
+ readonly '--container-padding-inline-end': stylex.StyleXClassNameFor<"--container-padding-inline-end", "20px">;
539
+ }>;
540
+ readonly 6: Readonly<{
541
+ readonly '--container-padding-inline-end': stylex.StyleXClassNameFor<"--container-padding-inline-end", "24px">;
542
+ }>;
543
+ readonly 8: Readonly<{
544
+ readonly '--container-padding-inline-end': stylex.StyleXClassNameFor<"--container-padding-inline-end", "32px">;
545
+ }>;
546
+ readonly 10: Readonly<{
547
+ readonly '--container-padding-inline-end': stylex.StyleXClassNameFor<"--container-padding-inline-end", "40px">;
548
+ }>;
549
+ }>;
550
+ /**
551
+ * Block-start-only padding override styles.
552
+ * Use when a component needs to override the block-start (top) edge
553
+ * independently of block-end — e.g. a section that sits under a sticky
554
+ * header and needs less padding above than below.
555
+ */
556
+ export declare const paddingBlockStartStyles: Readonly<{
557
+ readonly 0: Readonly<{
558
+ readonly paddingBlockStart: stylex.StyleXClassNameFor<"paddingBlockStart", "0px">;
559
+ }>;
560
+ readonly 0.5: Readonly<{
561
+ readonly paddingBlockStart: stylex.StyleXClassNameFor<"paddingBlockStart", "2px">;
562
+ }>;
563
+ readonly 1: Readonly<{
564
+ readonly paddingBlockStart: stylex.StyleXClassNameFor<"paddingBlockStart", "4px">;
565
+ }>;
566
+ readonly 1.5: Readonly<{
567
+ readonly paddingBlockStart: stylex.StyleXClassNameFor<"paddingBlockStart", "6px">;
568
+ }>;
569
+ readonly 2: Readonly<{
570
+ readonly paddingBlockStart: stylex.StyleXClassNameFor<"paddingBlockStart", "8px">;
571
+ }>;
572
+ readonly 3: Readonly<{
573
+ readonly paddingBlockStart: stylex.StyleXClassNameFor<"paddingBlockStart", "12px">;
574
+ }>;
575
+ readonly 4: Readonly<{
576
+ readonly paddingBlockStart: stylex.StyleXClassNameFor<"paddingBlockStart", "16px">;
577
+ }>;
578
+ readonly 5: Readonly<{
579
+ readonly paddingBlockStart: stylex.StyleXClassNameFor<"paddingBlockStart", "20px">;
580
+ }>;
581
+ readonly 6: Readonly<{
582
+ readonly paddingBlockStart: stylex.StyleXClassNameFor<"paddingBlockStart", "24px">;
583
+ }>;
584
+ readonly 8: Readonly<{
585
+ readonly paddingBlockStart: stylex.StyleXClassNameFor<"paddingBlockStart", "32px">;
586
+ }>;
587
+ readonly 10: Readonly<{
588
+ readonly paddingBlockStart: stylex.StyleXClassNameFor<"paddingBlockStart", "40px">;
589
+ }>;
590
+ }>;
591
+ /**
592
+ * Block-end-only padding override styles.
593
+ * The block-end counterpart of paddingBlockStartStyles.
594
+ */
595
+ export declare const paddingBlockEndStyles: Readonly<{
596
+ readonly 0: Readonly<{
597
+ readonly paddingBlockEnd: stylex.StyleXClassNameFor<"paddingBlockEnd", "0px">;
598
+ }>;
599
+ readonly 0.5: Readonly<{
600
+ readonly paddingBlockEnd: stylex.StyleXClassNameFor<"paddingBlockEnd", "2px">;
601
+ }>;
602
+ readonly 1: Readonly<{
603
+ readonly paddingBlockEnd: stylex.StyleXClassNameFor<"paddingBlockEnd", "4px">;
604
+ }>;
605
+ readonly 1.5: Readonly<{
606
+ readonly paddingBlockEnd: stylex.StyleXClassNameFor<"paddingBlockEnd", "6px">;
607
+ }>;
608
+ readonly 2: Readonly<{
609
+ readonly paddingBlockEnd: stylex.StyleXClassNameFor<"paddingBlockEnd", "8px">;
610
+ }>;
611
+ readonly 3: Readonly<{
612
+ readonly paddingBlockEnd: stylex.StyleXClassNameFor<"paddingBlockEnd", "12px">;
613
+ }>;
614
+ readonly 4: Readonly<{
615
+ readonly paddingBlockEnd: stylex.StyleXClassNameFor<"paddingBlockEnd", "16px">;
616
+ }>;
617
+ readonly 5: Readonly<{
618
+ readonly paddingBlockEnd: stylex.StyleXClassNameFor<"paddingBlockEnd", "20px">;
619
+ }>;
620
+ readonly 6: Readonly<{
621
+ readonly paddingBlockEnd: stylex.StyleXClassNameFor<"paddingBlockEnd", "24px">;
622
+ }>;
623
+ readonly 8: Readonly<{
624
+ readonly paddingBlockEnd: stylex.StyleXClassNameFor<"paddingBlockEnd", "32px">;
625
+ }>;
626
+ readonly 10: Readonly<{
627
+ readonly paddingBlockEnd: stylex.StyleXClassNameFor<"paddingBlockEnd", "40px">;
628
+ }>;
629
+ }>;
630
+ /**
631
+ * Propagation styles for `--_section-padding-propagated`.
392
632
  * When a parent section sets explicit padding, this propagates the value
393
633
  * through the CSS custom property cascade so nested sections that use
394
634
  * useThemeDefault inherit the parent's padding instead of the theme default.
635
+ *
636
+ * This is deliberately NOT the public `--astryx-section-padding` token. The
637
+ * two carry different authority: the public token is the THEME's section
638
+ * padding, set once at the theme root, while this one is one ancestor
639
+ * Section's padding, propagated down the tree. An overlay has to drop the
640
+ * inherited value at its boundary (see {@link overlayPaddingReset}) without
641
+ * dropping the theme's — impossible while both live under one name.
642
+ * `container.stylex.ts` reads this ahead of the public token, so a propagated
643
+ * value still wins over the theme for nested sections, as before.
395
644
  */
396
645
  export declare const sectionPaddingPropagationStyles: Readonly<{
397
646
  readonly 0: Readonly<{
398
- readonly '--astryx-section-padding': stylex.StyleXClassNameFor<"--astryx-section-padding", "0px">;
647
+ readonly '--_section-padding-propagated': stylex.StyleXClassNameFor<"--_section-padding-propagated", "0px">;
399
648
  }>;
400
649
  readonly 0.5: Readonly<{
401
- readonly '--astryx-section-padding': stylex.StyleXClassNameFor<"--astryx-section-padding", "2px">;
650
+ readonly '--_section-padding-propagated': stylex.StyleXClassNameFor<"--_section-padding-propagated", "2px">;
402
651
  }>;
403
652
  readonly 1: Readonly<{
404
- readonly '--astryx-section-padding': stylex.StyleXClassNameFor<"--astryx-section-padding", "4px">;
653
+ readonly '--_section-padding-propagated': stylex.StyleXClassNameFor<"--_section-padding-propagated", "4px">;
405
654
  }>;
406
655
  readonly 1.5: Readonly<{
407
- readonly '--astryx-section-padding': stylex.StyleXClassNameFor<"--astryx-section-padding", "6px">;
656
+ readonly '--_section-padding-propagated': stylex.StyleXClassNameFor<"--_section-padding-propagated", "6px">;
408
657
  }>;
409
658
  readonly 2: Readonly<{
410
- readonly '--astryx-section-padding': stylex.StyleXClassNameFor<"--astryx-section-padding", "8px">;
659
+ readonly '--_section-padding-propagated': stylex.StyleXClassNameFor<"--_section-padding-propagated", "8px">;
411
660
  }>;
412
661
  readonly 3: Readonly<{
413
- readonly '--astryx-section-padding': stylex.StyleXClassNameFor<"--astryx-section-padding", "12px">;
662
+ readonly '--_section-padding-propagated': stylex.StyleXClassNameFor<"--_section-padding-propagated", "12px">;
414
663
  }>;
415
664
  readonly 4: Readonly<{
416
- readonly '--astryx-section-padding': stylex.StyleXClassNameFor<"--astryx-section-padding", "16px">;
665
+ readonly '--_section-padding-propagated': stylex.StyleXClassNameFor<"--_section-padding-propagated", "16px">;
417
666
  }>;
418
667
  readonly 5: Readonly<{
419
- readonly '--astryx-section-padding': stylex.StyleXClassNameFor<"--astryx-section-padding", "20px">;
668
+ readonly '--_section-padding-propagated': stylex.StyleXClassNameFor<"--_section-padding-propagated", "20px">;
420
669
  }>;
421
670
  readonly 6: Readonly<{
422
- readonly '--astryx-section-padding': stylex.StyleXClassNameFor<"--astryx-section-padding", "24px">;
671
+ readonly '--_section-padding-propagated': stylex.StyleXClassNameFor<"--_section-padding-propagated", "24px">;
423
672
  }>;
424
673
  readonly 8: Readonly<{
425
- readonly '--astryx-section-padding': stylex.StyleXClassNameFor<"--astryx-section-padding", "32px">;
674
+ readonly '--_section-padding-propagated': stylex.StyleXClassNameFor<"--_section-padding-propagated", "32px">;
426
675
  }>;
427
676
  readonly 10: Readonly<{
428
- readonly '--astryx-section-padding': stylex.StyleXClassNameFor<"--astryx-section-padding", "40px">;
677
+ readonly '--_section-padding-propagated': stylex.StyleXClassNameFor<"--_section-padding-propagated", "40px">;
678
+ }>;
679
+ }>;
680
+ /**
681
+ * Padding-variable reset for overlay roots (Dialog, BottomSheet, Drawer,
682
+ * MobileNav, Lightbox, and every layer surface).
683
+ *
684
+ * ## Why an overlay needs this
685
+ *
686
+ * The container padding system talks to descendants through inherited custom
687
+ * properties: a padded container announces its padding, and children read the
688
+ * value either to apply it or to cancel it with a negative margin
689
+ * (`Section`, `Divider`, `Layout`, `Table`).
690
+ *
691
+ * Inheritance follows the DOM, but an overlay leaves its parent's visual box —
692
+ * a fixed/top-layer `<dialog>` is a DOM descendant of the padded page while
693
+ * being nowhere near it on screen. It inherits values describing padding that
694
+ * is not there, and its content compensates against phantom space: a `Section`
695
+ * inside a 640px sheet rendered 672px wide and hung off both edges (#5208).
696
+ *
697
+ * Two families leak, and they need opposite treatments:
698
+ *
699
+ * - `--container-padding-*` -> `0px`. Descendants SUBTRACT these (bleed
700
+ * margins). The overlay root has no padding of its own to escape, so the
701
+ * honest answer is zero. Nested containers that do set padding (a Dialog's
702
+ * content wrapper) re-announce their own values below this point, so
703
+ * legitimate edge-to-edge bleed inside the overlay is unaffected.
704
+ * - `--layout-padding-*` and `--_section-padding-propagated` -> `initial`.
705
+ * Descendants ADD these, so zeroing them would strip padding rather than
706
+ * restore it. `initial` makes each guaranteed-invalid, so readers fall
707
+ * through their own `var(…, fallback)` chain and land on the theme default —
708
+ * which is what an overlay at the top of the tree should show.
709
+ *
710
+ * `initial` is also why propagation moved off `--astryx-section-padding`: that
711
+ * name is public theme surface, set at the theme root, and making it invalid
712
+ * here would blank the theme's own section padding inside every overlay.
713
+ *
714
+ * Apply on the overlay's outermost styled element.
715
+ *
716
+ * @example
717
+ * ```
718
+ * <dialog {...stylex.props(styles.dialog, overlayPaddingReset.reset)} />
719
+ * ```
720
+ */
721
+ export declare const overlayPaddingReset: Readonly<{
722
+ readonly reset: Readonly<{
723
+ readonly '--container-padding-inline-start': stylex.StyleXClassNameFor<"--container-padding-inline-start", "0px">;
724
+ readonly '--container-padding-inline-end': stylex.StyleXClassNameFor<"--container-padding-inline-end", "0px">;
725
+ readonly '--container-padding-block-start': stylex.StyleXClassNameFor<"--container-padding-block-start", "0px">;
726
+ readonly '--container-padding-block-end': stylex.StyleXClassNameFor<"--container-padding-block-end", "0px">;
727
+ readonly '--layout-padding-outer-x': stylex.StyleXClassNameFor<"--layout-padding-outer-x", "initial">;
728
+ readonly '--layout-padding-outer-y': stylex.StyleXClassNameFor<"--layout-padding-outer-y", "initial">;
729
+ readonly '--layout-padding-inner-x': stylex.StyleXClassNameFor<"--layout-padding-inner-x", "initial">;
730
+ readonly '--layout-padding-inner-y': stylex.StyleXClassNameFor<"--layout-padding-inner-y", "initial">;
731
+ readonly '--_section-padding-propagated': stylex.StyleXClassNameFor<"--_section-padding-propagated", "initial">;
429
732
  }>;
430
733
  }>;
431
734
  //# sourceMappingURL=padding.stylex.d.ts.map