@astryxdesign/core 0.4.5-canary.3ed227e → 0.4.5-canary.4aacbbe
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.
- package/dist/BottomSheet/BottomSheetPanel.d.ts.map +1 -1
- package/dist/BottomSheet/BottomSheetPanel.js +2 -5
- package/dist/Dialog/Dialog.d.ts.map +1 -1
- package/dist/Dialog/Dialog.js +3 -11
- package/dist/Layer/useLayer.d.ts.map +1 -1
- package/dist/Layer/useLayer.js +3 -2
- package/dist/Layout/container.stylex.d.ts +4 -2
- package/dist/Layout/container.stylex.d.ts.map +1 -1
- package/dist/Layout/container.stylex.js +19 -11
- package/dist/Layout/index.d.ts +1 -0
- package/dist/Layout/index.d.ts.map +1 -1
- package/dist/Layout/index.js +4 -0
- package/dist/Layout/padding.stylex.d.ts +75 -12
- package/dist/Layout/padding.stylex.d.ts.map +1 -1
- package/dist/Layout/padding.stylex.js +77 -12
- package/dist/Lightbox/Lightbox.d.ts.map +1 -1
- package/dist/Lightbox/Lightbox.js +2 -1
- package/dist/MobileNav/MobileNav.d.ts.map +1 -1
- package/dist/MobileNav/MobileNav.js +2 -5
- package/dist/Popover/usePopover.d.ts.map +1 -1
- package/dist/Popover/usePopover.js +0 -4
- package/dist/astryx.css +24 -19
- package/package.json +2 -2
- package/src/BottomSheet/BottomSheetPanel.tsx +2 -4
- package/src/Dialog/Dialog.tsx +3 -8
- package/src/Layer/useLayer.tsx +13 -2
- package/src/Layout/container.stylex.ts +11 -3
- package/src/Layout/index.ts +4 -0
- package/src/Layout/overlayPaddingReset.test.tsx +222 -0
- package/src/Layout/padding.stylex.ts +78 -12
- package/src/Lightbox/Lightbox.tsx +2 -1
- package/src/MobileNav/MobileNav.tsx +2 -4
- package/src/Popover/usePopover.tsx +0 -4
- package/src/Section/Section.test.tsx +16 -4
- package/src/theme/derivedVarRegistry.test.ts +3 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BottomSheetPanel.d.ts","sourceRoot":"","sources":["../../src/BottomSheet/BottomSheetPanel.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAOL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"BottomSheetPanel.d.ts","sourceRoot":"","sources":["../../src/BottomSheet/BottomSheetPanel.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAOL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAa5C,OAAO,EAGL,KAAK,oBAAoB,EAC1B,MAAM,eAAe,CAAC;AAIvB,QAAA,MAAM,cAAc;;;;CAIV,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,MAAM,OAAO,cAAc,CAAC;AAC5D,YAAY,EAAC,oBAAoB,EAAC,CAAC;AA4InC,MAAM,MAAM,sBAAsB,GAChC,UAAU,GAAG,UAAU,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEjD,MAAM,MAAM,qBAAqB,GAC7B;IAAC,IAAI,EAAE,QAAQ,CAAA;CAAC,GAChB;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAC,GACjC;IACE,IAAI,EAAE,UAAU,CAAC;IACjB,MAAM,EAAE,SAAS,GAAG,UAAU,GAAG,QAAQ,CAAC;IAC1C,eAAe,EAAE,MAAM,CAAC;CACzB,GACD;IAAC,IAAI,EAAE,SAAS,CAAA;CAAC,CAAC;AAEtB,UAAU,qBAAsB,SAAQ,SAAS,CAAC,cAAc,CAAC;IAC/D,+CAA+C;IAC/C,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IAChC,KAAK,EAAE,qBAAqB,CAAC;IAC7B,MAAM,EAAE,iBAAiB,GAAG,MAAM,GAAG,MAAM,CAAC;IAC5C,QAAQ,EAAE,SAAS,CAAC;IACpB,UAAU,CAAC,EAAE,aAAa,CAAC,oBAAoB,CAAC,CAAC;IACjD,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,gFAAgF;IAChF,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,cAAc,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI,KAAK,IAAI,CAAC;IAC3D,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,sBAAsB,KAAK,IAAI,CAAC;IACzD,gBAAgB,CAAC,EAAE,CAAC,MAAM,EAAE,sBAAsB,KAAK,IAAI,CAAC;CAC7D;AA+GD,4EAA4E;AAC5E,wBAAgB,gBAAgB,CAAC,EAC/B,GAAG,EACH,KAAK,EACL,MAAM,EACN,QAAQ,EACR,UAAU,EACV,SAAS,EACT,KAAK,EACL,QAAQ,EACR,MAAM,EACN,qBAA4B,EAC5B,kBAA0B,EAC1B,SAAS,EACT,cAAc,EACd,eAAe,EACf,aAAa,EACb,gBAAgB,EAChB,GAAG,KAAK,EACT,EAAE,qBAAqB,+BAyQvB;yBA3Re,gBAAgB"}
|
|
@@ -26,6 +26,7 @@ import { useDevWarning } from "../hooks/index.js";
|
|
|
26
26
|
import "../theme/tokens.stylex.js";
|
|
27
27
|
import { colorVars, durationVars, easeVars, radiusVars, shadowVars, sizeVars, spacingVars } from "../theme/tokens.stylex.js";
|
|
28
28
|
import { mergeProps, themeProps } from "../utils/index.js";
|
|
29
|
+
import { overlayPaddingReset } from "../Layout/padding.stylex.js";
|
|
29
30
|
import { isValidSnapPoint, resolveSnapPoints } from "./snapOffsets.js";
|
|
30
31
|
import { useMobileKeyboard } from "./useMobileKeyboard.js";
|
|
31
32
|
import { useSheetGestures } from "./useSheetGestures.js";
|
|
@@ -81,10 +82,6 @@ const styles = {
|
|
|
81
82
|
kzqmXN: "xh8yej3",
|
|
82
83
|
ks0D6T: "x11gisft",
|
|
83
84
|
kWkggS: "x10xzikg",
|
|
84
|
-
"--container-padding-inline-start": "xrhngw9",
|
|
85
|
-
"--container-padding-inline-end": "xjsfl84",
|
|
86
|
-
"--container-padding-block-start": "x1047aw6",
|
|
87
|
-
"--container-padding-block-end": "xax9j7h",
|
|
88
85
|
krdFHd: "x81l70g",
|
|
89
86
|
kfmiAY: "x7hs6f1",
|
|
90
87
|
kGVxlE: "x1kcpxr7",
|
|
@@ -409,7 +406,7 @@ export function BottomSheetPanel({
|
|
|
409
406
|
...props,
|
|
410
407
|
ref: setElement,
|
|
411
408
|
tabIndex: tabIndex ?? -1,
|
|
412
|
-
...mergeProps(themeProps('bottom-sheet'), stylex.props(styles.sheet, height === 'hug' ? styles.hugHeight : styles.budget, isClosing && styles.sheetClosing, isFading && styles.sheetFading, isInactive && styles.sheetInactive, xstyle), className, {
|
|
409
|
+
...mergeProps(themeProps('bottom-sheet'), stylex.props(styles.sheet, overlayPaddingReset.reset, height === 'hug' ? styles.hugHeight : styles.budget, isClosing && styles.sheetClosing, isFading && styles.sheetFading, isInactive && styles.sheetInactive, xstyle), className, {
|
|
413
410
|
['--_sheet-budget']: budget,
|
|
414
411
|
...(isInteractive ? gestureStyle : isRetained ? {
|
|
415
412
|
transform: retainedTransform,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../src/Dialog/Dialog.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAML,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../src/Dialog/Dialog.tsx"],"names":[],"mappings":"A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AAM,GAAG,MAAM,CAAC;IAE5B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC;IAEpC;;;;;OAKG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC;IAExB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC;IAExB;;;;OAIG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IAEtB;;;OAGG;IACH,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,MAAM,CAAC,EACrB,MAAM,EACN,QAAgB,EAChB,YAAY,EACZ,KAAW,EACX,SAAkB,EAClB,QAAQ,EACR,OAAoB,EACpB,OAAgB,EAChB,OAAO,EACP,QAAQ,EACR,MAAM,EACN,SAAS,EACT,KAAK,EACL,GAAG,EACH,GAAG,KAAK,EACT,EAAE,WAAW,sCA6Sb;yBA7Te,MAAM"}
|
package/dist/Dialog/Dialog.js
CHANGED
|
@@ -23,7 +23,7 @@ import { isImeKeyEvent } from "../utils/ime.js";
|
|
|
23
23
|
import "../theme/tokens.stylex.js";
|
|
24
24
|
import { colorVars, radiusVars, durationVars, easeVars, shadowVars } from "../theme/tokens.stylex.js";
|
|
25
25
|
import { container } from "../Layout/container.stylex.js";
|
|
26
|
-
import { paddingStyles, containerPaddingInlineVarStyles, containerPaddingBlockStartVarStyles, containerPaddingBlockEndVarStyles, spacingStepToToken } from "../Layout/padding.stylex.js";
|
|
26
|
+
import { paddingStyles, containerPaddingInlineVarStyles, containerPaddingBlockStartVarStyles, containerPaddingBlockEndVarStyles, spacingStepToToken, overlayPaddingReset } from "../Layout/padding.stylex.js";
|
|
27
27
|
import { mergeProps, mergeRefs } from "../utils/index.js";
|
|
28
28
|
import { devWarn } from "../utils/devWarning.js";
|
|
29
29
|
import { DialogContext } from "./DialogContext.js";
|
|
@@ -84,10 +84,6 @@ const styles = {
|
|
|
84
84
|
kmVPX3: "x1717udv",
|
|
85
85
|
kWkggS: "x10xzikg",
|
|
86
86
|
"--_dialog-radius": "xvuvksw",
|
|
87
|
-
"--container-padding-inline-start": "xrhngw9",
|
|
88
|
-
"--container-padding-inline-end": "xjsfl84",
|
|
89
|
-
"--container-padding-block-start": "x1047aw6",
|
|
90
|
-
"--container-padding-block-end": "xax9j7h",
|
|
91
87
|
kaIpWk: "xuacgfc",
|
|
92
88
|
kGVxlE: "x1kcpxr7",
|
|
93
89
|
k1xSpc: "x1s85apg",
|
|
@@ -134,10 +130,6 @@ const styles = {
|
|
|
134
130
|
kmVPX3: "x1717udv",
|
|
135
131
|
kWkggS: "x10xzikg",
|
|
136
132
|
"--_dialog-radius": "xvuvksw",
|
|
137
|
-
"--container-padding-inline-start": "xrhngw9",
|
|
138
|
-
"--container-padding-inline-end": "xjsfl84",
|
|
139
|
-
"--container-padding-block-start": "x1047aw6",
|
|
140
|
-
"--container-padding-block-end": "xax9j7h",
|
|
141
133
|
kaIpWk: "xuacgfc",
|
|
142
134
|
kGVxlE: "x1kcpxr7",
|
|
143
135
|
k1xSpc: "x78zum5",
|
|
@@ -443,7 +435,7 @@ export function Dialog({
|
|
|
443
435
|
...safeProps,
|
|
444
436
|
...mergeProps(themeProps('dialog', {
|
|
445
437
|
variant
|
|
446
|
-
}), stylex.props(styles.inlineWrapper, !isFullscreen && dynamicStyles.sizing(width, maxHeight), isFullscreen && styles.fullscreen, xstyle), className, style),
|
|
438
|
+
}), stylex.props(styles.inlineWrapper, overlayPaddingReset.reset, !isFullscreen && dynamicStyles.sizing(width, maxHeight), isFullscreen && styles.fullscreen, xstyle), className, style),
|
|
447
439
|
"data-testid": props['data-testid'],
|
|
448
440
|
children: innerContent
|
|
449
441
|
});
|
|
@@ -456,7 +448,7 @@ export function Dialog({
|
|
|
456
448
|
...safeProps,
|
|
457
449
|
...mergeProps(themeProps('dialog', {
|
|
458
450
|
variant
|
|
459
|
-
}), focusOutlineProps.focusVisible(styles.dialog, isOpen && styles.open, styles.backdrop, !isFullscreen && dynamicStyles.sizing(width, maxHeight), hasPosition && (() => {
|
|
451
|
+
}), focusOutlineProps.focusVisible(styles.dialog, overlayPaddingReset.reset, isOpen && styles.open, styles.backdrop, !isFullscreen && dynamicStyles.sizing(width, maxHeight), hasPosition && (() => {
|
|
460
452
|
const o = resolveDialogPositionOffsets(position);
|
|
461
453
|
return dynamicStyles.position(o.top, o.insetInlineStart, o.insetInlineEnd, o.bottom);
|
|
462
454
|
})(), isFullscreen && styles.fullscreen, xstyle), className, style),
|
|
@@ -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;
|
|
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;AAgDnD;;;;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,QAAQ,GAAG,QAAQ,CAAC;IAClC;;;OAGG;IACH,SAAS,CAAC,EAAE,cAAc,CAAC;IAC3B;;;OAGG;IACH,SAAS,CAAC,EAAE,cAAc,CAAC;IA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ayerPortalTarget } 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
|
|
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
|
|
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
|
|
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
|
-
|
|
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": "
|
|
154
|
+
"--container-padding-inline-start": "x19lemt0",
|
|
147
155
|
$$css: true
|
|
148
156
|
},
|
|
149
157
|
containerPaddingInlineEnd: {
|
|
150
|
-
"--container-padding-inline-end": "
|
|
158
|
+
"--container-padding-inline-end": "xu1wldr",
|
|
151
159
|
$$css: true
|
|
152
160
|
},
|
|
153
161
|
containerPaddingBlockStart: {
|
|
154
|
-
"--container-padding-block-start": "
|
|
162
|
+
"--container-padding-block-start": "xnw7zt4",
|
|
155
163
|
$$css: true
|
|
156
164
|
},
|
|
157
165
|
containerPaddingBlockEnd: {
|
|
158
|
-
"--container-padding-block-end": "
|
|
166
|
+
"--container-padding-block-end": "xek4msv",
|
|
159
167
|
$$css: true
|
|
160
168
|
},
|
|
161
169
|
layoutPaddingOuterX: {
|
|
162
|
-
"--layout-padding-outer-x": "
|
|
170
|
+
"--layout-padding-outer-x": "x15i0zw9",
|
|
163
171
|
$$css: true
|
|
164
172
|
},
|
|
165
173
|
layoutPaddingOuterY: {
|
|
166
|
-
"--layout-padding-outer-y": "
|
|
174
|
+
"--layout-padding-outer-y": "x1vw4zgg",
|
|
167
175
|
$$css: true
|
|
168
176
|
},
|
|
169
177
|
layoutPaddingInnerX: {
|
|
170
|
-
"--layout-padding-inner-x": "
|
|
178
|
+
"--layout-padding-inner-x": "x1v3gmnx",
|
|
171
179
|
$$css: true
|
|
172
180
|
},
|
|
173
181
|
layoutPaddingInnerY: {
|
|
174
|
-
"--layout-padding-inner-y": "
|
|
182
|
+
"--layout-padding-inner-y": "x15yx5hm",
|
|
175
183
|
$$css: true
|
|
176
184
|
}
|
|
177
185
|
};
|
package/dist/Layout/index.d.ts
CHANGED
|
@@ -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;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Layout/index.ts"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AAGH,OAAO,EAAC,SAAS,EAAC,MAAM,oBAAoB,CAAC;AAC7C,YAAY,EACV,kBAAkB,EAClB,gBAAgB,EAChB,YAAY,GACb,MAAM,oBAAoB,CAAC;AAI5B,OAAO,EAAC,mBAAmB,EAAC,MAAM,kBAAkB,CAAC;AAGrD,OAAO,EAAC,YAAY,EAAE,cAAc,EAAC,MAAM,2BAA2B,CAAC;AAGvE,OAAO,EAAC,KAAK,EAAC,MAAM,uBAAuB,CAAC;AAC5C,YAAY,E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AqB,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"}
|
package/dist/Layout/index.js
CHANGED
|
@@ -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
|
|
|
@@ -628,44 +628,107 @@ export declare const paddingBlockEndStyles: Readonly<{
|
|
|
628
628
|
}>;
|
|
629
629
|
}>;
|
|
630
630
|
/**
|
|
631
|
-
* Propagation styles for
|
|
631
|
+
* Propagation styles for `--_section-padding-propagated`.
|
|
632
632
|
* When a parent section sets explicit padding, this propagates the value
|
|
633
633
|
* through the CSS custom property cascade so nested sections that use
|
|
634
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.
|
|
635
644
|
*/
|
|
636
645
|
export declare const sectionPaddingPropagationStyles: Readonly<{
|
|
637
646
|
readonly 0: Readonly<{
|
|
638
|
-
readonly '--
|
|
647
|
+
readonly '--_section-padding-propagated': stylex.StyleXClassNameFor<"--_section-padding-propagated", "0px">;
|
|
639
648
|
}>;
|
|
640
649
|
readonly 0.5: Readonly<{
|
|
641
|
-
readonly '--
|
|
650
|
+
readonly '--_section-padding-propagated': stylex.StyleXClassNameFor<"--_section-padding-propagated", "2px">;
|
|
642
651
|
}>;
|
|
643
652
|
readonly 1: Readonly<{
|
|
644
|
-
readonly '--
|
|
653
|
+
readonly '--_section-padding-propagated': stylex.StyleXClassNameFor<"--_section-padding-propagated", "4px">;
|
|
645
654
|
}>;
|
|
646
655
|
readonly 1.5: Readonly<{
|
|
647
|
-
readonly '--
|
|
656
|
+
readonly '--_section-padding-propagated': stylex.StyleXClassNameFor<"--_section-padding-propagated", "6px">;
|
|
648
657
|
}>;
|
|
649
658
|
readonly 2: Readonly<{
|
|
650
|
-
readonly '--
|
|
659
|
+
readonly '--_section-padding-propagated': stylex.StyleXClassNameFor<"--_section-padding-propagated", "8px">;
|
|
651
660
|
}>;
|
|
652
661
|
readonly 3: Readonly<{
|
|
653
|
-
readonly '--
|
|
662
|
+
readonly '--_section-padding-propagated': stylex.StyleXClassNameFor<"--_section-padding-propagated", "12px">;
|
|
654
663
|
}>;
|
|
655
664
|
readonly 4: Readonly<{
|
|
656
|
-
readonly '--
|
|
665
|
+
readonly '--_section-padding-propagated': stylex.StyleXClassNameFor<"--_section-padding-propagated", "16px">;
|
|
657
666
|
}>;
|
|
658
667
|
readonly 5: Readonly<{
|
|
659
|
-
readonly '--
|
|
668
|
+
readonly '--_section-padding-propagated': stylex.StyleXClassNameFor<"--_section-padding-propagated", "20px">;
|
|
660
669
|
}>;
|
|
661
670
|
readonly 6: Readonly<{
|
|
662
|
-
readonly '--
|
|
671
|
+
readonly '--_section-padding-propagated': stylex.StyleXClassNameFor<"--_section-padding-propagated", "24px">;
|
|
663
672
|
}>;
|
|
664
673
|
readonly 8: Readonly<{
|
|
665
|
-
readonly '--
|
|
674
|
+
readonly '--_section-padding-propagated': stylex.StyleXClassNameFor<"--_section-padding-propagated", "32px">;
|
|
666
675
|
}>;
|
|
667
676
|
readonly 10: Readonly<{
|
|
668
|
-
readonly '--
|
|
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">;
|
|
669
732
|
}>;
|
|
670
733
|
}>;
|
|
671
734
|
//# sourceMappingURL=padding.stylex.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"padding.stylex.d.ts","sourceRoot":"","sources":["../../src/Layout/padding.stylex.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;;;;;;;;;;;;;;;;;;EAYvC,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6C9B,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6C7B,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYnC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYjC,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAY/C,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAY7C,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYlC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYhC,CAAC;AAEH;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAY1C,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;EAc9B,CAAC"}
|
|
@@ -812,54 +812,119 @@ export const paddingBlockEndStyles = {
|
|
|
812
812
|
};
|
|
813
813
|
|
|
814
814
|
/**
|
|
815
|
-
* Propagation styles for
|
|
815
|
+
* Propagation styles for `--_section-padding-propagated`.
|
|
816
816
|
* When a parent section sets explicit padding, this propagates the value
|
|
817
817
|
* through the CSS custom property cascade so nested sections that use
|
|
818
818
|
* useThemeDefault inherit the parent's padding instead of the theme default.
|
|
819
|
+
*
|
|
820
|
+
* This is deliberately NOT the public `--astryx-section-padding` token. The
|
|
821
|
+
* two carry different authority: the public token is the THEME's section
|
|
822
|
+
* padding, set once at the theme root, while this one is one ancestor
|
|
823
|
+
* Section's padding, propagated down the tree. An overlay has to drop the
|
|
824
|
+
* inherited value at its boundary (see {@link overlayPaddingReset}) without
|
|
825
|
+
* dropping the theme's — impossible while both live under one name.
|
|
826
|
+
* `container.stylex.ts` reads this ahead of the public token, so a propagated
|
|
827
|
+
* value still wins over the theme for nested sections, as before.
|
|
819
828
|
*/
|
|
820
829
|
export const sectionPaddingPropagationStyles = {
|
|
821
830
|
"0": {
|
|
822
|
-
"--
|
|
831
|
+
"--_section-padding-propagated": "x7mo41q",
|
|
823
832
|
$$css: true
|
|
824
833
|
},
|
|
825
834
|
"1": {
|
|
826
|
-
"--
|
|
835
|
+
"--_section-padding-propagated": "x1j3iakl",
|
|
827
836
|
$$css: true
|
|
828
837
|
},
|
|
829
838
|
"2": {
|
|
830
|
-
"--
|
|
839
|
+
"--_section-padding-propagated": "xezgk69",
|
|
831
840
|
$$css: true
|
|
832
841
|
},
|
|
833
842
|
"3": {
|
|
834
|
-
"--
|
|
843
|
+
"--_section-padding-propagated": "x1wtz8uf",
|
|
835
844
|
$$css: true
|
|
836
845
|
},
|
|
837
846
|
"4": {
|
|
838
|
-
"--
|
|
847
|
+
"--_section-padding-propagated": "x5wdj8h",
|
|
839
848
|
$$css: true
|
|
840
849
|
},
|
|
841
850
|
"5": {
|
|
842
|
-
"--
|
|
851
|
+
"--_section-padding-propagated": "xgjndll",
|
|
843
852
|
$$css: true
|
|
844
853
|
},
|
|
845
854
|
"6": {
|
|
846
|
-
"--
|
|
855
|
+
"--_section-padding-propagated": "x15i4jqh",
|
|
847
856
|
$$css: true
|
|
848
857
|
},
|
|
849
858
|
"8": {
|
|
850
|
-
"--
|
|
859
|
+
"--_section-padding-propagated": "xmb9lpv",
|
|
851
860
|
$$css: true
|
|
852
861
|
},
|
|
853
862
|
"10": {
|
|
854
|
-
"--
|
|
863
|
+
"--_section-padding-propagated": "x4h2jfd",
|
|
855
864
|
$$css: true
|
|
856
865
|
},
|
|
857
866
|
"0.5": {
|
|
858
|
-
"--
|
|
867
|
+
"--_section-padding-propagated": "x2ccaqq",
|
|
859
868
|
$$css: true
|
|
860
869
|
},
|
|
861
870
|
"1.5": {
|
|
862
|
-
"--
|
|
871
|
+
"--_section-padding-propagated": "xxa843v",
|
|
872
|
+
$$css: true
|
|
873
|
+
}
|
|
874
|
+
};
|
|
875
|
+
|
|
876
|
+
/**
|
|
877
|
+
* Padding-variable reset for overlay roots (Dialog, BottomSheet, Drawer,
|
|
878
|
+
* MobileNav, Lightbox, and every layer surface).
|
|
879
|
+
*
|
|
880
|
+
* ## Why an overlay needs this
|
|
881
|
+
*
|
|
882
|
+
* The container padding system talks to descendants through inherited custom
|
|
883
|
+
* properties: a padded container announces its padding, and children read the
|
|
884
|
+
* value either to apply it or to cancel it with a negative margin
|
|
885
|
+
* (`Section`, `Divider`, `Layout`, `Table`).
|
|
886
|
+
*
|
|
887
|
+
* Inheritance follows the DOM, but an overlay leaves its parent's visual box —
|
|
888
|
+
* a fixed/top-layer `<dialog>` is a DOM descendant of the padded page while
|
|
889
|
+
* being nowhere near it on screen. It inherits values describing padding that
|
|
890
|
+
* is not there, and its content compensates against phantom space: a `Section`
|
|
891
|
+
* inside a 640px sheet rendered 672px wide and hung off both edges (#5208).
|
|
892
|
+
*
|
|
893
|
+
* Two families leak, and they need opposite treatments:
|
|
894
|
+
*
|
|
895
|
+
* - `--container-padding-*` -> `0px`. Descendants SUBTRACT these (bleed
|
|
896
|
+
* margins). The overlay root has no padding of its own to escape, so the
|
|
897
|
+
* honest answer is zero. Nested containers that do set padding (a Dialog's
|
|
898
|
+
* content wrapper) re-announce their own values below this point, so
|
|
899
|
+
* legitimate edge-to-edge bleed inside the overlay is unaffected.
|
|
900
|
+
* - `--layout-padding-*` and `--_section-padding-propagated` -> `initial`.
|
|
901
|
+
* Descendants ADD these, so zeroing them would strip padding rather than
|
|
902
|
+
* restore it. `initial` makes each guaranteed-invalid, so readers fall
|
|
903
|
+
* through their own `var(…, fallback)` chain and land on the theme default —
|
|
904
|
+
* which is what an overlay at the top of the tree should show.
|
|
905
|
+
*
|
|
906
|
+
* `initial` is also why propagation moved off `--astryx-section-padding`: that
|
|
907
|
+
* name is public theme surface, set at the theme root, and making it invalid
|
|
908
|
+
* here would blank the theme's own section padding inside every overlay.
|
|
909
|
+
*
|
|
910
|
+
* Apply on the overlay's outermost styled element.
|
|
911
|
+
*
|
|
912
|
+
* @example
|
|
913
|
+
* ```
|
|
914
|
+
* <dialog {...stylex.props(styles.dialog, overlayPaddingReset.reset)} />
|
|
915
|
+
* ```
|
|
916
|
+
*/
|
|
917
|
+
export const overlayPaddingReset = {
|
|
918
|
+
reset: {
|
|
919
|
+
"--container-padding-inline-start": "xrhngw9",
|
|
920
|
+
"--container-padding-inline-end": "xjsfl84",
|
|
921
|
+
"--container-padding-block-start": "x1047aw6",
|
|
922
|
+
"--container-padding-block-end": "xax9j7h",
|
|
923
|
+
"--layout-padding-outer-x": "xdt8ak2",
|
|
924
|
+
"--layout-padding-outer-y": "x1rs4lu4",
|
|
925
|
+
"--layout-padding-inner-x": "x1qfll2g",
|
|
926
|
+
"--layout-padding-inner-y": "xyvxpqs",
|
|
927
|
+
"--_section-padding-propagated": "x1f17rg1",
|
|
863
928
|
$$css: true
|
|
864
929
|
}
|
|
865
930
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Lightbox.d.ts","sourceRoot":"","sources":["../../src/Lightbox/Lightbox.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAOL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AASf,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc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YAAY,EACZ,KAAK,EACL,KAAK,EAAE,eAAe,EACtB,YAAgB,EAChB,aAAa,EACb,OAAe,EACf,WAAmB,EACnB,MAAM,EACN,SAAS,EACT,KAAK,EACL,GAAG,EACH,OAAO,EAAE,WAAW,EACpB,SAAS,EAAE,aAAa,EACxB,GAAG,KAAK,EACT,EAAE,aAAa,sCA6Yf;yBA7Ze,QAAQ"}
|
|
@@ -27,6 +27,7 @@ import { useIsomorphicLayoutEffect } from "../hooks/useIsomorphicLayoutEffect.js
|
|
|
27
27
|
import { mergeProps, mergeRefs, rtlStyles } from "../utils/index.js";
|
|
28
28
|
import { themeProps } from "../utils/themeProps.js";
|
|
29
29
|
import { focusOutlineStyles } from "../utils/focusOutline.stylex.js";
|
|
30
|
+
import { overlayPaddingReset } from "../Layout/padding.stylex.js";
|
|
30
31
|
import { useTranslator } from "../i18n/index.js";
|
|
31
32
|
|
|
32
33
|
/**
|
|
@@ -448,7 +449,7 @@ export function Lightbox({
|
|
|
448
449
|
onKeyDownProp?.(e);
|
|
449
450
|
},
|
|
450
451
|
"aria-label": currentItem.alt || t('@astryx.lightbox.mediaViewer'),
|
|
451
|
-
...mergeProps(themeProps('lightbox'), stylex.props(styles.dialog, xstyle), className, style),
|
|
452
|
+
...mergeProps(themeProps('lightbox'), stylex.props(styles.dialog, overlayPaddingReset.reset, xstyle), className, style),
|
|
452
453
|
...props,
|
|
453
454
|
children: /*#__PURE__*/_jsxs("div", {
|
|
454
455
|
ref: containerRef,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MobileNav.d.ts","sourceRoot":"","sources":["../../src/MobileNav/MobileNav.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,EAOL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"MobileNav.d.ts","sourceRoot":"","sources":["../../src/MobileNav/MobileNav.tsx"],"names":[],"mappings":"AAIA;;;;;;;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
|
|
36
36
|
import { useAppShellMobile } from "../AppShell/AppShellMobileContext.js";
|
|
37
37
|
import { holdScrollbarGutter } from "../hooks/scrollbarGutter.js";
|
|
38
38
|
import { mergeProps, mergeRefs, composeEventHandlers } from "../utils/index.js";
|
|
39
|
+
import { overlayPaddingReset } from "../Layout/padding.stylex.js";
|
|
39
40
|
import { themeProps } from "../utils/themeProps.js";
|
|
40
41
|
import { useTranslator } from "../i18n/index.js";
|
|
41
42
|
|
|
@@ -90,10 +91,6 @@ const styles = {
|
|
|
90
91
|
kXwgrk: "xdt5ytf",
|
|
91
92
|
kWkggS: "x10xzikg",
|
|
92
93
|
kB7OPa: "x9f619",
|
|
93
|
-
"--container-padding-inline-start": "xrhngw9",
|
|
94
|
-
"--container-padding-inline-end": "xjsfl84",
|
|
95
|
-
"--container-padding-block-start": "x1047aw6",
|
|
96
|
-
"--container-padding-block-end": "xax9j7h",
|
|
97
94
|
kVQacm: "xb3r6kr",
|
|
98
95
|
k1ekBW: "x11xpdln",
|
|
99
96
|
kIyJzY: "x80gvsz",
|
|
@@ -376,7 +373,7 @@ export function MobileNav({
|
|
|
376
373
|
id: dialogId,
|
|
377
374
|
...mergeProps(themeProps('mobile-nav', {
|
|
378
375
|
side: resolvedSide
|
|
379
|
-
}), stylex.props(styles.dialog, isOpen && styles.open, styles.backdrop, isOpen && styles.backdropOpen, xstyle), className, style),
|
|
376
|
+
}), stylex.props(styles.dialog, overlayPaddingReset.reset, isOpen && styles.open, styles.backdrop, isOpen && styles.backdropOpen, xstyle), className, style),
|
|
380
377
|
...rest,
|
|
381
378
|
"data-testid": testId,
|
|
382
379
|
"aria-label": label ?? (typeof header === 'string' ? header : t('@astryx.mobileNav.navigation')),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePopover.d.ts","sourceRoot":"","sources":["../../src/Popover/usePopover.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,EAAiC,KAAK,SAA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AACH,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,UAAU,EAAE,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAC;IAE7C;;;;OAIG;IACH,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAEnD;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;;OAIG;IACH,IAAI,EAAE,CAAC,OAAO,CAAC,EAAE;QAAC,aAAa,CAAC,EAAE,OAAO,CAAA;KAAC,KAAK,IAAI,CAAC;IAEpD;;OAEG;IACH,IAAI,EAAE,MAAM,IAAI,CAAC;IAEjB;;OAEG;IACH,MAAM,EAAE,MAAM,IAAI,CAAC;IAEnB;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;;;;;;;;;OAWG;IACH,MAAM,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,KAAK,CAAC,EAAE,kBAAkB,KAAK,SAAS,CAAC;IAEvE;;OAEG;IACH,YAAY,EAAE;QACZ,eAAe,EAAE,QAAQ,GAAG,MAAM,CAAC;QACnC,eAAe,EAAE,OAAO,CAAC;QACzB,eAAe,EAAE,MAAM,CAAC;KACzB,CAAC;CACH;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,wBAAgB,UAAU,CAAC,OAAO,GAAE,iBAAsB,GAAG,gBAAgB,CA2K5E"}
|
|
@@ -31,10 +31,6 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
31
31
|
const styles = {
|
|
32
32
|
surface: {
|
|
33
33
|
kWkggS: "x1prclbq",
|
|
34
|
-
"--container-padding-inline-start": "xrhngw9",
|
|
35
|
-
"--container-padding-inline-end": "xjsfl84",
|
|
36
|
-
"--container-padding-block-start": "x1047aw6",
|
|
37
|
-
"--container-padding-block-end": "xax9j7h",
|
|
38
34
|
kaIpWk: "x1hviunn",
|
|
39
35
|
kGVxlE: "x1i5ehqx",
|
|
40
36
|
$$css: true
|