@astryxdesign/core 0.6.3-canary.4ec26d7 → 0.6.3-canary.533ecc7
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/Avatar/AvatarSizeContext.js +3 -3
- package/dist/AvatarGroup/AvatarGroupContext.d.ts.map +1 -1
- package/dist/AvatarGroup/AvatarGroupContext.js +3 -4
- package/dist/BottomSheet/BottomSheetPanel.d.ts +1 -1
- package/dist/BottomSheet/BottomSheetPanel.d.ts.map +1 -1
- package/dist/BottomSheet/BottomSheetPanel.js +3 -7
- package/dist/Breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.js +3 -4
- package/dist/Button/Button.js +5 -5
- package/dist/ButtonGroup/ButtonGroupContext.d.ts.map +1 -1
- package/dist/ButtonGroup/ButtonGroupContext.js +3 -4
- package/dist/Chat/ChatContext.d.ts +1 -1
- package/dist/Chat/ChatContext.d.ts.map +1 -1
- package/dist/Chat/ChatContext.js +3 -4
- package/dist/CheckboxList/CheckboxListContext.d.ts.map +1 -1
- package/dist/CheckboxList/CheckboxListContext.js +3 -3
- package/dist/Collapsible/CollapsibleGroupContext.d.ts.map +1 -1
- package/dist/Collapsible/CollapsibleGroupContext.js +2 -3
- package/dist/Dialog/Dialog.d.ts +1 -1
- package/dist/Dialog/Dialog.d.ts.map +1 -1
- package/dist/Dialog/Dialog.js +5 -11
- package/dist/DropdownMenu/DropdownMenuContext.d.ts.map +1 -1
- package/dist/DropdownMenu/DropdownMenuContext.js +1 -3
- package/dist/FormLayout/FormLayoutContext.js +3 -3
- package/dist/Icon/IconDefaultSizeContext.d.ts.map +1 -1
- package/dist/Icon/IconDefaultSizeContext.js +3 -4
- package/dist/InputGroup/InputGroupContext.d.ts.map +1 -1
- package/dist/InputGroup/InputGroupContext.js +3 -4
- package/dist/InputGroup/groupStyles.d.ts +1 -1
- package/dist/InputGroup/groupStyles.js +6 -6
- package/dist/Layer/LayerDepthContext.d.ts +1 -1
- package/dist/Layer/LayerDepthContext.js +1 -1
- package/dist/Layer/useLayer.d.ts +1 -1
- package/dist/Layer/useLayer.d.ts.map +1 -1
- package/dist/Layer/useLayer.js +10 -11
- package/dist/Layout/LayoutDividerContext.js +3 -3
- package/dist/Layout/LayoutSlotsContext.js +3 -3
- package/dist/Lightbox/Lightbox.d.ts +1 -1
- package/dist/Lightbox/Lightbox.d.ts.map +1 -1
- package/dist/Lightbox/Lightbox.js +78 -82
- package/dist/List/ListContext.js +3 -3
- package/dist/MetadataList/MetadataListContext.js +3 -3
- package/dist/MobileNav/MobileNav.d.ts.map +1 -1
- package/dist/MobileNav/MobileNav.js +31 -35
- package/dist/NavMenu/NavMenuContext.d.ts.map +1 -1
- package/dist/NavMenu/NavMenuContext.js +2 -3
- package/dist/RadioList/RadioList.d.ts +13 -0
- package/dist/RadioList/RadioList.d.ts.map +1 -1
- package/dist/RadioList/RadioList.js +3 -4
- package/dist/SegmentedControl/SegmentedControlContext.d.ts.map +1 -1
- package/dist/SegmentedControl/SegmentedControlContext.js +3 -4
- package/dist/Selector/SelectorRowLayoutContext.d.ts.map +1 -1
- package/dist/Selector/SelectorRowLayoutContext.js +3 -4
- package/dist/SizeContext/SizeContext.d.ts.map +1 -1
- package/dist/SizeContext/SizeContext.js +3 -4
- package/dist/Stepper/StepperContext.d.ts +1 -1
- package/dist/Stepper/StepperContext.d.ts.map +1 -1
- package/dist/Stepper/StepperContext.js +4 -5
- package/dist/TabList/TabListContext.d.ts.map +1 -1
- package/dist/TabList/TabListContext.js +3 -4
- package/dist/Table/TableContext.js +3 -3
- package/dist/Toast/ToastViewport.d.ts.map +1 -1
- package/dist/Toast/ToastViewport.js +10 -14
- package/dist/ToggleButton/ToggleButtonGroup.d.ts +1 -1
- package/dist/ToggleButton/ToggleButtonGroup.d.ts.map +1 -1
- package/dist/ToggleButton/ToggleButtonGroup.js +3 -4
- package/dist/TopNav/TopNavContext.d.ts.map +1 -1
- package/dist/TopNav/TopNavContext.js +2 -9
- package/dist/astryx.css +3 -10
- package/package.json +3 -3
- package/src/Avatar/AvatarSizeContext.ts +2 -2
- package/src/AvatarGroup/AvatarGroupContext.ts +2 -3
- package/src/BottomSheet/BottomSheetPanel.tsx +2 -5
- package/src/Breadcrumbs/Breadcrumbs.tsx +2 -3
- package/src/Button/Button.tsx +1 -1
- package/src/ButtonGroup/ButtonGroupContext.ts +4 -6
- package/src/Chat/ChatContext.tsx +5 -6
- package/src/CheckboxList/CheckboxListContext.tsx +3 -3
- package/src/Collapsible/CollapsibleGroupContext.tsx +2 -3
- package/src/Dialog/Dialog.doc.mjs +2 -4
- package/src/Dialog/Dialog.tsx +3 -11
- package/src/DropdownMenu/DropdownMenuContext.tsx +1 -3
- package/src/FormLayout/FormLayoutContext.ts +2 -2
- package/src/Icon/IconDefaultSizeContext.ts +2 -3
- package/src/InputGroup/InputGroupContext.ts +2 -3
- package/src/InputGroup/groupStyles.ts +4 -4
- package/src/Layer/Layer.doc.mjs +2 -2
- package/src/Layer/LayerDepthContext.tsx +1 -1
- package/src/Layer/useLayer.doc.mjs +3 -3
- package/src/Layer/useLayer.tsx +10 -7
- package/src/Layout/LayoutDividerContext.ts +2 -2
- package/src/Layout/LayoutSlotsContext.ts +2 -2
- package/src/Lightbox/Lightbox.tsx +100 -124
- package/src/List/ListContext.tsx +2 -2
- package/src/MetadataList/MetadataListContext.tsx +2 -2
- package/src/MobileNav/MobileNav.tsx +31 -36
- package/src/NavMenu/NavMenuContext.tsx +2 -3
- package/src/RadioList/RadioList.tsx +2 -2
- package/src/SegmentedControl/SegmentedControlContext.ts +2 -3
- package/src/Selector/SelectorRowLayoutContext.ts +2 -3
- package/src/SizeContext/SizeContext.ts +2 -3
- package/src/Stepper/StepperContext.ts +2 -3
- package/src/TabList/TabListContext.ts +2 -3
- package/src/Table/TableContext.ts +2 -2
- package/src/Toast/ToastViewport.tsx +13 -22
- package/src/ToggleButton/ToggleButtonGroup.tsx +2 -3
- package/src/TopNav/TopNavContext.ts +3 -9
- package/dist/Layer/layerScopedContext.d.ts +0 -13
- package/dist/Layer/layerScopedContext.d.ts.map +0 -1
- package/dist/Layer/layerScopedContext.js +0 -32
- package/dist/Layer/layerTextReset.stylex.d.ts +0 -33
- package/dist/Layer/layerTextReset.stylex.d.ts.map +0 -1
- package/dist/Layer/layerTextReset.stylex.js +0 -39
- package/src/Layer/layerScopedContext.test.tsx +0 -499
- package/src/Layer/layerScopedContext.tsx +0 -37
- package/src/Layer/layerTextReset.stylex.ts +0 -37
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @file AvatarSizeContext.ts
|
|
7
|
-
* @input
|
|
7
|
+
* @input Uses React createContext
|
|
8
8
|
* @output Exports AvatarSizeContext
|
|
9
9
|
* @position Internal context; provided by Avatar, consumed by sub-components
|
|
10
10
|
*
|
|
11
11
|
* SYNC: When modified, update:
|
|
12
12
|
* - /packages/core/src/Avatar/Avatar.doc.mjs
|
|
13
13
|
*/
|
|
14
|
-
import {
|
|
14
|
+
import { createContext } from 'react';
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* Context that provides the resolved numeric avatar size (in pixels)
|
|
@@ -19,5 +19,5 @@ import { createLayerScopedContext as createContext } from "../Layer/layerScopedC
|
|
|
19
19
|
*
|
|
20
20
|
* Default value of 36 matches the default 'md' avatar size.
|
|
21
21
|
*/
|
|
22
|
-
export const AvatarSizeContext = createContext(36);
|
|
22
|
+
export const AvatarSizeContext = /*#__PURE__*/createContext(36);
|
|
23
23
|
AvatarSizeContext.displayName = 'AvatarSizeContext';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AvatarGroupContext.d.ts","sourceRoot":"","sources":["../../src/AvatarGroup/AvatarGroupContext.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AvatarGroupContext.d.ts","sourceRoot":"","sources":["../../src/AvatarGroup/AvatarGroupContext.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAC,WAAW,EAAE,UAAU,EAAC,MAAM,WAAW,CAAC;AAEvD,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,UAAU,CAAC;IACjB,KAAK,EAAE,WAAW,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,kBAAkB,yDAE9B,CAAC;AAGF,wBAAgB,cAAc,IAAI,uBAAuB,GAAG,IAAI,CAE/D"}
|
|
@@ -3,13 +3,12 @@
|
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* @file AvatarGroupContext.ts
|
|
6
|
-
* @input
|
|
6
|
+
* @input None (pure context definition)
|
|
7
7
|
* @output Exports AvatarGroup context and useAvatarGroup hook
|
|
8
8
|
* @position Shared context; consumed by children for group-aware styling
|
|
9
9
|
*/
|
|
10
|
-
import { use } from 'react';
|
|
11
|
-
|
|
12
|
-
export const AvatarGroupContext = createContext(null);
|
|
10
|
+
import { createContext, use } from 'react';
|
|
11
|
+
export const AvatarGroupContext = /*#__PURE__*/createContext(null);
|
|
13
12
|
AvatarGroupContext.displayName = 'AvatarGroupContext';
|
|
14
13
|
export function useAvatarGroup() {
|
|
15
14
|
return use(AvatarGroupContext);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @file BottomSheetPanel.tsx
|
|
3
|
-
* @input Uses React, StyleX, theme tokens,
|
|
3
|
+
* @input Uses React, StyleX, theme tokens, sheet gestures, shared scroll behavior, and the host label
|
|
4
4
|
* @output Internal BottomSheetPanel with a keyboard-reachable scrolling body and motion-state types
|
|
5
5
|
* @position Shared presentation layer for standalone and switcher BottomSheets
|
|
6
6
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BottomSheetPanel.d.ts","sourceRoot":"","sources":["../../src/BottomSheet/BottomSheetPanel.tsx"],"names":[],"mappings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E,KAAK,EAAE,MAAM,CAAC;IACd,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,KAAK,EACL,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,+BAyRvB;yBA5Se,gBAAgB"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @file BottomSheetPanel.tsx
|
|
7
|
-
* @input Uses React, StyleX, theme tokens,
|
|
7
|
+
* @input Uses React, StyleX, theme tokens, sheet gestures, shared scroll behavior, and the host label
|
|
8
8
|
* @output Internal BottomSheetPanel with a keyboard-reachable scrolling body and motion-state types
|
|
9
9
|
* @position Shared presentation layer for standalone and switcher BottomSheets
|
|
10
10
|
*
|
|
@@ -28,8 +28,6 @@ import "../theme/tokens.stylex.js";
|
|
|
28
28
|
import { borderVars, colorVars, durationVars, easeVars, focusVars, radiusVars, shadowVars, sizeVars, spacingVars } from "../theme/tokens.stylex.js";
|
|
29
29
|
import { mergeProps, themeProps } from "../utils/index.js";
|
|
30
30
|
import { focusOutlineStyles } from "../utils/focusOutline.stylex.js";
|
|
31
|
-
import { layerTextReset } from "../Layer/layerTextReset.stylex.js";
|
|
32
|
-
import { LayerContentBoundary } from "../Layer/layerScopedContext.js";
|
|
33
31
|
import { overlayPaddingReset } from "../Layout/padding.stylex.js";
|
|
34
32
|
import { isValidSnapPoint, resolveSnapPoints } from "./snapOffsets.js";
|
|
35
33
|
import { useMobileKeyboard } from "./useMobileKeyboard.js";
|
|
@@ -455,7 +453,7 @@ export function BottomSheetPanel({
|
|
|
455
453
|
...props,
|
|
456
454
|
ref: setElement,
|
|
457
455
|
tabIndex: tabIndex ?? -1,
|
|
458
|
-
...mergeProps(themeProps('bottom-sheet'), stylex.props(
|
|
456
|
+
...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, {
|
|
459
457
|
['--_sheet-budget']: budget,
|
|
460
458
|
...(isInteractive ? gestureStyle : isRetained ? {
|
|
461
459
|
transform: retainedTransform,
|
|
@@ -489,9 +487,7 @@ export function BottomSheetPanel({
|
|
|
489
487
|
...getContentProps({
|
|
490
488
|
className: "xufnvkl x9f619 x5yr21d x121v3j4"
|
|
491
489
|
}),
|
|
492
|
-
children:
|
|
493
|
-
children: children
|
|
494
|
-
})
|
|
490
|
+
children: children
|
|
495
491
|
})
|
|
496
492
|
})]
|
|
497
493
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @file Breadcrumbs.tsx
|
|
3
|
-
* @input Uses React,
|
|
3
|
+
* @input Uses React, createContext, stylex, theme tokens
|
|
4
4
|
* @output Exports Breadcrumbs component, BreadcrumbsProps, BreadcrumbContext
|
|
5
5
|
* @position Core container component; consumed by index.ts
|
|
6
6
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Breadcrumbs.d.ts","sourceRoot":"","sources":["../../src/Breadcrumbs/Breadcrumbs.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"Breadcrumbs.d.ts","sourceRoot":"","sources":["../../src/Breadcrumbs/Breadcrumbs.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAyB,KAAK,SAAS,EAAC,MAAM,OAAO,CAAC;AAI7D,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAG5C,OAAO,KAAK,EAAC,qBAAqB,EAAC,MAAM,SAAS,CAAC;AAMnD;;;;;;GAMG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,qBAAqB,CAAC;AAM7D,8FAA8F;AAC9F,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,kBAAkB,CAAC;IAC5B,SAAS,EAAE,SAAS,CAAC;CACtB;AAED,eAAO,MAAM,iBAAiB,iDAG5B,CAAC;AAOH,MAAM,WAAW,gBAAiB,SAAQ,SAAS,CAAC,WAAW,CAAC;IAC9D,wCAAwC;IACxC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IAC7B;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AA4BD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,WAAW,CAAC,EAC1B,QAAQ,EACR,SAAe,EACf,OAAmB,EACnB,MAAM,EACN,SAAS,EACT,KAAK,EACL,KAAK,EAAE,cAAc,EACrB,GAAG,EACH,GAAG,IAAI,EACR,EAAE,gBAAgB,+BAwBlB;yBAlCe,WAAW"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @file Breadcrumbs.tsx
|
|
7
|
-
* @input Uses React,
|
|
7
|
+
* @input Uses React, createContext, stylex, theme tokens
|
|
8
8
|
* @output Exports Breadcrumbs component, BreadcrumbsProps, BreadcrumbContext
|
|
9
9
|
* @position Core container component; consumed by index.ts
|
|
10
10
|
*
|
|
@@ -15,8 +15,7 @@
|
|
|
15
15
|
* - /apps/storybook/stories/Breadcrumbs.stories.tsx
|
|
16
16
|
* - /packages/cli/assets/templates/blocks/components/Breadcrumbs/ (showcase blocks)
|
|
17
17
|
*/
|
|
18
|
-
import { useMemo } from 'react';
|
|
19
|
-
import { createLayerScopedContext as createContext } from "../Layer/layerScopedContext.js";
|
|
18
|
+
import { createContext, useMemo } from 'react';
|
|
20
19
|
import * as stylex from '@stylexjs/stylex';
|
|
21
20
|
import "../theme/tokens.stylex.js";
|
|
22
21
|
import { spacingVars } from "../theme/tokens.stylex.js";
|
|
@@ -42,7 +41,7 @@ import { useTranslator } from "../i18n/index.js";
|
|
|
42
41
|
|
|
43
42
|
/** @internal Context for passing variant and separator from Breadcrumbs to BreadcrumbItem. */
|
|
44
43
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
45
|
-
export const BreadcrumbContext = createContext({
|
|
44
|
+
export const BreadcrumbContext = /*#__PURE__*/createContext({
|
|
46
45
|
variant: 'default',
|
|
47
46
|
separator: '/'
|
|
48
47
|
});
|
package/dist/Button/Button.js
CHANGED
|
@@ -254,13 +254,13 @@ const loadingStyles = {
|
|
|
254
254
|
* The leading edge still uses `:first-child` — a member's button always precedes
|
|
255
255
|
* its own layer, so the first button is genuinely `:first-child`.
|
|
256
256
|
*/
|
|
257
|
-
const IS_LAST_ITEM = ':not(:has(~ *:not([popover]):not(template)
|
|
257
|
+
const IS_LAST_ITEM = ':not(:has(~ *:not([popover]):not(template)))';
|
|
258
258
|
const groupStyles = {
|
|
259
259
|
horizontal: {
|
|
260
260
|
krdFHd: "x15mokao x8eehn2",
|
|
261
261
|
kVL7Gh: "xbiv7yw x1xrp5p4",
|
|
262
|
-
kfmiAY: "x1ga7v0g
|
|
263
|
-
kT0f0o: "x16uus16
|
|
262
|
+
kfmiAY: "x1ga7v0g x1tzxhge",
|
|
263
|
+
kT0f0o: "x16uus16 x1rmb4wm",
|
|
264
264
|
k2ei4v: "xgbv0en x1pjv70x",
|
|
265
265
|
kVhnKS: "x1t7ytsu xyf0ibl",
|
|
266
266
|
kGJrpR: "x1j92z86",
|
|
@@ -269,8 +269,8 @@ const groupStyles = {
|
|
|
269
269
|
vertical: {
|
|
270
270
|
krdFHd: "x15mokao x8eehn2",
|
|
271
271
|
kfmiAY: "x1ga7v0g x2qxyot",
|
|
272
|
-
kVL7Gh: "xbiv7yw
|
|
273
|
-
kT0f0o: "x16uus16
|
|
272
|
+
kVL7Gh: "xbiv7yw xturttb",
|
|
273
|
+
kT0f0o: "x16uus16 x1rmb4wm",
|
|
274
274
|
kEafiO: "x11xkdxz x1g31smg",
|
|
275
275
|
kPef9Z: "x13fuv20 x1d9v4yf",
|
|
276
276
|
kLZC3w: "x1pc3f07",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonGroupContext.d.ts","sourceRoot":"","sources":["../../src/ButtonGroup/ButtonGroupContext.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ButtonGroupContext.d.ts","sourceRoot":"","sources":["../../src/ButtonGroup/ButtonGroupContext.ts"],"names":[],"mappings":"AAaA,MAAM,MAAM,sBAAsB,GAAG,YAAY,GAAG,UAAU,CAAC;AAE/D,MAAM,WAAW,uBAAuB;IACtC,WAAW,EAAE,sBAAsB,CAAC;IACpC,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,kBAAkB,yDACsB,CAAC;AAGtD;;;GAGG;AACH,wBAAgB,cAAc,IAAI,uBAAuB,GAAG,IAAI,CAE/D"}
|
|
@@ -4,13 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @file ButtonGroupContext.ts
|
|
7
|
-
* @input
|
|
7
|
+
* @input None (pure context definition)
|
|
8
8
|
* @output Exports ButtonGroup context and useButtonGroup hook
|
|
9
9
|
* @position Shared context; consumed by Button for group-aware styling
|
|
10
10
|
*/
|
|
11
|
-
import { use } from 'react';
|
|
12
|
-
|
|
13
|
-
export const ButtonGroupContext = createContext(null);
|
|
11
|
+
import { createContext, use } from 'react';
|
|
12
|
+
export const ButtonGroupContext = /*#__PURE__*/createContext(null);
|
|
14
13
|
ButtonGroupContext.displayName = 'ButtonGroupContext';
|
|
15
14
|
|
|
16
15
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @file ChatContext.tsx
|
|
3
|
-
* @input
|
|
3
|
+
* @input Uses React createContext
|
|
4
4
|
* @output Exports Chat message/list/composer/layout contexts. The composer
|
|
5
5
|
* context (value + input-control registration) is public composition API,
|
|
6
6
|
* re-exported from Chat/index.ts for custom inputs.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatContext.d.ts","sourceRoot":"","sources":["../../src/Chat/ChatContext.tsx"],"names":[],"mappings":"AAIA;;;;;;;;GAQG;AAEH,OAAO,EAAqB,KAAK,SAAS,EAAC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ChatContext.d.ts","sourceRoot":"","sources":["../../src/Chat/ChatContext.tsx"],"names":[],"mappings":"AAIA;;;;;;;;GAQG;AAEH,OAAO,EAAqB,KAAK,SAAS,EAAC,MAAM,OAAO,CAAC;AAEzD,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,WAAW,GAAG,QAAQ,CAAC;AAChE,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,CAAC;AAE9D,MAAM,WAAW,uBAAuB;IACtC,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AsB,GAAG,IAAI,CAEpE"}
|
package/dist/Chat/ChatContext.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @file ChatContext.tsx
|
|
7
|
-
* @input
|
|
7
|
+
* @input Uses React createContext
|
|
8
8
|
* @output Exports Chat message/list/composer/layout contexts. The composer
|
|
9
9
|
* context (value + input-control registration) is public composition API,
|
|
10
10
|
* re-exported from Chat/index.ts for custom inputs.
|
|
@@ -12,13 +12,12 @@
|
|
|
12
12
|
* ChatComposerInput, ChatSendButton, and custom inputs.
|
|
13
13
|
*/
|
|
14
14
|
import { createContext, use } from 'react';
|
|
15
|
-
|
|
16
|
-
export const ChatMessageContext = createLayerScopedContext(null);
|
|
15
|
+
export const ChatMessageContext = /*#__PURE__*/createContext(null);
|
|
17
16
|
ChatMessageContext.displayName = 'ChatMessageContext';
|
|
18
17
|
export function useChatMessageContext() {
|
|
19
18
|
return use(ChatMessageContext);
|
|
20
19
|
}
|
|
21
|
-
export const ChatListContext =
|
|
20
|
+
export const ChatListContext = /*#__PURE__*/createContext(null);
|
|
22
21
|
ChatListContext.displayName = 'ChatListContext';
|
|
23
22
|
export function useChatListContext() {
|
|
24
23
|
return use(ChatListContext);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckboxListContext.d.ts","sourceRoot":"","sources":["../../src/CheckboxList/CheckboxListContext.tsx"],"names":[],"mappings":"AAaA,MAAM,WAAW,wBAAwB;IACvC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,YAAY,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7D,UAAU,EAAE,OAAO,CAAC;IACpB;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,UAAU,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B;AAED,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"CheckboxListContext.d.ts","sourceRoot":"","sources":["../../src/CheckboxList/CheckboxListContext.tsx"],"names":[],"mappings":"AAaA,MAAM,WAAW,wBAAwB;IACvC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,YAAY,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7D,UAAU,EAAE,OAAO,CAAC;IACpB;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,UAAU,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B;AAED,eAAO,MAAM,mBAAmB,0DACsB,CAAC"}
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @file CheckboxListContext.tsx
|
|
7
|
-
* @input Uses
|
|
7
|
+
* @input Uses React createContext
|
|
8
8
|
* @output Exports CheckboxListContext for parent-child communication
|
|
9
9
|
* @position Internal context; consumed by CheckboxList.tsx and CheckboxListItem.tsx
|
|
10
10
|
*/
|
|
11
|
-
import {
|
|
12
|
-
export const CheckboxListContext =
|
|
11
|
+
import { createContext } from 'react';
|
|
12
|
+
export const CheckboxListContext = /*#__PURE__*/createContext(null);
|
|
13
13
|
CheckboxListContext.displayName = 'CheckboxListContext';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CollapsibleGroupContext.d.ts","sourceRoot":"","sources":["../../src/Collapsible/CollapsibleGroupContext.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CollapsibleGroupContext.d.ts","sourceRoot":"","sources":["../../src/Collapsible/CollapsibleGroupContext.tsx"],"names":[],"mappings":"AAoBA;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C,gDAAgD;IAChD,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;IACnC,8CAA8C;IAC9C,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACjC;AAED;;;GAGG;AACH,eAAO,MAAM,uBAAuB,8DACsB,CAAC;AAG3D;;;;GAIG;AACH,MAAM,MAAM,uBAAuB,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,CAAC;AAE1E;;;;;;GAMG;AACH,MAAM,MAAM,0BAA0B,GAAG,OAAO,GAAG,KAAK,CAAC;AAEzD;;;;GAIG;AACH,MAAM,WAAW,iCAAiC;IAChD,4EAA4E;IAC5E,WAAW,EAAE,OAAO,CAAC;IACrB,yEAAyE;IACzE,OAAO,EAAE,uBAAuB,GAAG,IAAI,CAAC;IACxC;;;;;OAKG;IACH,eAAe,EAAE,0BAA0B,GAAG,IAAI,CAAC;CACpD;AAED;;;;;GAKG;AACH,eAAO,MAAM,mCAAmC,mEACe,CAAC"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @file CollapsibleGroupContext.tsx
|
|
7
|
-
* @input
|
|
7
|
+
* @input Uses React createContext
|
|
8
8
|
* @output Exports CollapsibleGroupContext, CollapsibleGroupContextValue,
|
|
9
9
|
* CollapsibleGroupPresentationContext, CollapsibleGroupPresentationValue,
|
|
10
10
|
* CollapsibleGroupDensity, and CollapsibleChevronPosition types
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
* - /packages/cli/assets/templates/blocks/components/Collapsible/ (showcase blocks)
|
|
17
17
|
*/
|
|
18
18
|
import { createContext } from 'react';
|
|
19
|
-
import { createLayerScopedContext } from "../Layer/layerScopedContext.js";
|
|
20
19
|
|
|
21
20
|
/**
|
|
22
21
|
* Context value provided by CollapsibleGroup to coordinate collapsible children.
|
|
@@ -55,5 +54,5 @@ CollapsibleGroupContext.displayName = 'CollapsibleGroupContext';
|
|
|
55
54
|
* state API is unaffected. Collapsible resets this context around its
|
|
56
55
|
* children so nested collapsibles never inherit row chrome.
|
|
57
56
|
*/
|
|
58
|
-
export const CollapsibleGroupPresentationContext =
|
|
57
|
+
export const CollapsibleGroupPresentationContext = /*#__PURE__*/createContext(null);
|
|
59
58
|
CollapsibleGroupPresentationContext.displayName = 'CollapsibleGroupPresentationContext';
|
package/dist/Dialog/Dialog.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @file Dialog.tsx
|
|
3
|
-
* @input Uses React, DialogHTMLAttributes, ReactNode, container (Layout), DialogContext
|
|
3
|
+
* @input Uses React, DialogHTMLAttributes, ReactNode, container (Layout), DialogContext
|
|
4
4
|
* @output Exports Dialog component, DialogProps, DialogVariant, DialogPurpose types
|
|
5
5
|
* @position Core implementation; consumed by index.ts, tested by Dialog.test.tsx
|
|
6
6
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../src/Dialog/Dialog.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;GAmBG;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":"AAIA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAML,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAuB5C,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAKhD,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,SAAS,CAAC;AAuB9C;;;;;;GAMG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM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C,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,SAAmB,EACnB,QAAQ,EACR,OAAoB,EACpB,OAAgB,EAChB,OAAO,EACP,QAAQ,EACR,MAAM,EACN,SAAS,EACT,KAAK,EACL,GAAG,EACH,GAAG,KAAK,EACT,EAAE,WAAW,sCAiTb;yBAjUe,MAAM"}
|
package/dist/Dialog/Dialog.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @file Dialog.tsx
|
|
7
|
-
* @input Uses React, DialogHTMLAttributes, ReactNode, container (Layout), DialogContext
|
|
7
|
+
* @input Uses React, DialogHTMLAttributes, ReactNode, container (Layout), DialogContext
|
|
8
8
|
* @output Exports Dialog component, DialogProps, DialogVariant, DialogPurpose types
|
|
9
9
|
* @position Core implementation; consumed by index.ts, tested by Dialog.test.tsx
|
|
10
10
|
*
|
|
@@ -25,8 +25,6 @@
|
|
|
25
25
|
import { useCallback, useEffect, useId, useMemo, useRef } from 'react';
|
|
26
26
|
import * as stylex from '@stylexjs/stylex';
|
|
27
27
|
import { useScrollLock } from "../hooks/useScrollLock.js";
|
|
28
|
-
import { layerTextReset } from "../Layer/layerTextReset.stylex.js";
|
|
29
|
-
import { LayerContentBoundary } from "../Layer/layerScopedContext.js";
|
|
30
28
|
import { LayerDepthProvider } from "../Layer/LayerDepthContext.js";
|
|
31
29
|
import { useLayerDismissal } from "../Layer/useLayerDismissal.js";
|
|
32
30
|
import "../theme/tokens.stylex.js";
|
|
@@ -485,12 +483,10 @@ export function Dialog({
|
|
|
485
483
|
...safeProps,
|
|
486
484
|
...mergeProps(themeProps('dialog', {
|
|
487
485
|
variant
|
|
488
|
-
}), stylex.props(
|
|
486
|
+
}), stylex.props(styles.inlineWrapper, overlayPaddingReset.reset, standardSizing && dynamicStyles.sizing(standardSizing.width, standardSizing.maxWidth, standardSizing.maxHeight), isFullscreen && styles.fullscreen, xstyle), className, style),
|
|
489
487
|
"data-testid": props['data-testid'],
|
|
490
488
|
children: /*#__PURE__*/_jsx(LayerDepthProvider, {
|
|
491
|
-
children:
|
|
492
|
-
children: innerContent
|
|
493
|
-
})
|
|
489
|
+
children: innerContent
|
|
494
490
|
})
|
|
495
491
|
});
|
|
496
492
|
}
|
|
@@ -502,7 +498,7 @@ export function Dialog({
|
|
|
502
498
|
...safeProps,
|
|
503
499
|
...mergeProps(themeProps('dialog', {
|
|
504
500
|
variant
|
|
505
|
-
}), focusOutlineProps.focusVisible(
|
|
501
|
+
}), focusOutlineProps.focusVisible(styles.dialog, overlayPaddingReset.reset, isOpen && styles.open, styles.backdrop, standardSizing && dynamicStyles.sizing(standardSizing.width, standardSizing.maxWidth, standardSizing.maxHeight), hasPosition && (() => {
|
|
506
502
|
const o = resolveDialogPositionOffsets(position);
|
|
507
503
|
return dynamicStyles.position(o.top, o.insetInlineStart, o.insetInlineEnd, o.bottom);
|
|
508
504
|
})(), isFullscreen && styles.fullscreen, isFullscreen && isOpen && styles.fullscreenOpen, xstyle), className, style),
|
|
@@ -517,9 +513,7 @@ export function Dialog({
|
|
|
517
513
|
role: 'alertdialog'
|
|
518
514
|
} : undefined),
|
|
519
515
|
children: /*#__PURE__*/_jsx(LayerDepthProvider, {
|
|
520
|
-
children:
|
|
521
|
-
children: innerContent
|
|
522
|
-
})
|
|
516
|
+
children: innerContent
|
|
523
517
|
})
|
|
524
518
|
});
|
|
525
519
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DropdownMenuContext.d.ts","sourceRoot":"","sources":["../../src/DropdownMenu/DropdownMenuContext.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DropdownMenuContext.d.ts","sourceRoot":"","sources":["../../src/DropdownMenu/DropdownMenuContext.tsx"],"names":[],"mappings":"AAgBA,uDAAuD;AACvD,MAAM,MAAM,gBAAgB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAElD,MAAM,WAAW,wBAAwB;IACvC,uEAAuE;IACvE,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,yCAAyC;IACzC,QAAQ,EAAE,gBAAgB,CAAC;CAC5B;AAED,eAAO,MAAM,mBAAmB,0DACsB,CAAC;AAGvD;;;GAGG;AACH,wBAAgB,sBAAsB,IAAI,wBAAwB,GAAG,IAAI,CAExE;AAMD,MAAM,WAAW,kCAAkC;IACjD,iDAAiD;IACjD,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,uEAAuE;IACvE,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,qEAAqE;IACrE,gBAAgB,EAAE,OAAO,CAAC;CAC3B;AAED,eAAO,MAAM,6BAA6B,oEACsB,CAAC;AAGjE;;;GAGG;AACH,wBAAgB,gCAAgC,IAAI,kCAAkC,GAAG,IAAI,CAE5F"}
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @file DropdownMenuContext.tsx
|
|
7
|
-
* @input Layer-scoped React context
|
|
8
7
|
* @output Exports context and hook for compound-component menu coordination
|
|
9
8
|
* @position Internal; used by DropdownMenu and DropdownMenuItem
|
|
10
9
|
*
|
|
@@ -13,11 +12,10 @@
|
|
|
13
12
|
* items don't need to register themselves.
|
|
14
13
|
*/
|
|
15
14
|
import { createContext, use } from 'react';
|
|
16
|
-
import { createLayerScopedContext } from "../Layer/layerScopedContext.js";
|
|
17
15
|
|
|
18
16
|
/** Menu size, derived from the trigger button size. */
|
|
19
17
|
|
|
20
|
-
export const DropdownMenuContext =
|
|
18
|
+
export const DropdownMenuContext = /*#__PURE__*/createContext(null);
|
|
21
19
|
DropdownMenuContext.displayName = 'DropdownMenuContext';
|
|
22
20
|
|
|
23
21
|
/**
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @file FormLayoutContext.ts
|
|
7
|
-
* @input
|
|
7
|
+
* @input Uses React createContext
|
|
8
8
|
* @output Exports FormLayoutContext, FormLayoutDirection, and FormOptionality types
|
|
9
9
|
* @position Context for form layout direction + default-optionality detection
|
|
10
10
|
*
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* - /packages/core/src/Field/FieldLabel.tsx (indicator resolution)
|
|
14
14
|
* - /packages/core/src/FormLayout/index.ts (exports if types change)
|
|
15
15
|
*/
|
|
16
|
-
import {
|
|
16
|
+
import { createContext } from 'react';
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* Direction of form field arrangement.
|
|
@@ -40,7 +40,7 @@ import { createLayerScopedContext as createContext } from "../Layer/layerScopedC
|
|
|
40
40
|
* for spatial arrangement, and `defaultOptionality` so a field can suppress the
|
|
41
41
|
* indicator that merely restates the form-wide default.
|
|
42
42
|
*/
|
|
43
|
-
export const FormLayoutContext = createContext({
|
|
43
|
+
export const FormLayoutContext = /*#__PURE__*/createContext({
|
|
44
44
|
direction: 'vertical'
|
|
45
45
|
});
|
|
46
46
|
FormLayoutContext.displayName = 'FormLayoutContext';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconDefaultSizeContext.d.ts","sourceRoot":"","sources":["../../src/Icon/IconDefaultSizeContext.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IconDefaultSizeContext.d.ts","sourceRoot":"","sources":["../../src/Icon/IconDefaultSizeContext.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAKhD,eAAO,MAAM,uBAAuB,6DAAkC,CAAC;AAEvE,wBAAgB,WAAW,CAAC,IAAI,EAAE,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAGhE"}
|
|
@@ -4,13 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @file IconDefaultSizeContext.ts
|
|
7
|
-
* @input Uses
|
|
7
|
+
* @input Uses React context and an optional Icon size prop
|
|
8
8
|
* @output Supplies a component-owned default size to descendant Icon instances
|
|
9
9
|
* @position Internal Icon sizing context; consumed by Icon and icon-slot owners
|
|
10
10
|
*/
|
|
11
|
-
import { use } from 'react';
|
|
12
|
-
|
|
13
|
-
const IconDefaultSizeContext = createContext(null);
|
|
11
|
+
import { createContext, use } from 'react';
|
|
12
|
+
const IconDefaultSizeContext = /*#__PURE__*/createContext(null);
|
|
14
13
|
IconDefaultSizeContext.displayName = 'IconDefaultSizeContext';
|
|
15
14
|
export const IconDefaultSizeProvider = IconDefaultSizeContext.Provider;
|
|
16
15
|
export function useIconSize(size) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputGroupContext.d.ts","sourceRoot":"","sources":["../../src/InputGroup/InputGroupContext.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"InputGroupContext.d.ts","sourceRoot":"","sources":["../../src/InputGroup/InputGroupContext.ts"],"names":[],"mappings":"AAaA,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,IAAI,CAAC;IAChB,sEAAsE;IACtE,OAAO,EAAE,MAAM,CAAC;IAChB,sFAAsF;IACtF,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,eAAO,MAAM,iBAAiB,wDAE7B,CAAC;AAGF;;;GAGG;AACH,wBAAgB,aAAa,IAAI,sBAAsB,GAAG,IAAI,CAE7D"}
|
|
@@ -4,13 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @file InputGroupContext.ts
|
|
7
|
-
* @input
|
|
7
|
+
* @input React createContext/use
|
|
8
8
|
* @output Exports InputGroup context and useInputGroup hook
|
|
9
9
|
* @position Shared context; consumed by input components for group-aware styling and ARIA associations
|
|
10
10
|
*/
|
|
11
|
-
import { use } from 'react';
|
|
12
|
-
|
|
13
|
-
export const InputGroupContext = createContext(null);
|
|
11
|
+
import { createContext, use } from 'react';
|
|
12
|
+
export const InputGroupContext = /*#__PURE__*/createContext(null);
|
|
14
13
|
InputGroupContext.displayName = 'InputGroupContext';
|
|
15
14
|
|
|
16
15
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @file groupStyles.ts
|
|
3
|
-
* @input Uses StyleX, theme tokens
|
|
3
|
+
* @input Uses StyleX, theme tokens
|
|
4
4
|
* @output Exports shared group-aware styles for input components
|
|
5
5
|
* @position Shared styles consumed by InputGroup-compatible controls
|
|
6
6
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @file groupStyles.ts
|
|
5
|
-
* @input Uses StyleX, theme tokens
|
|
5
|
+
* @input Uses StyleX, theme tokens
|
|
6
6
|
* @output Exports shared group-aware styles for input components
|
|
7
7
|
* @position Shared styles consumed by InputGroup-compatible controls
|
|
8
8
|
*/
|
|
@@ -12,9 +12,9 @@ import "../theme/tokens.stylex.js";
|
|
|
12
12
|
import { radiusVars, borderVars } from "../theme/tokens.stylex.js";
|
|
13
13
|
|
|
14
14
|
// A grouped control may be followed by context-layer infrastructure rather
|
|
15
|
-
// than another control.
|
|
16
|
-
//
|
|
17
|
-
const IS_LAST_ITEM = ':not(:has(~ *:not([popover]):not(template)
|
|
15
|
+
// than another control. Neither the inert marker nor the popover is a visual
|
|
16
|
+
// group member, so skip both when finding the trailing edge.
|
|
17
|
+
const IS_LAST_ITEM = ':not(:has(~ *:not([popover]):not(template)))';
|
|
18
18
|
export const groupStyles = {
|
|
19
19
|
inGroup: {
|
|
20
20
|
kUk6DE: "x98rzlu",
|
|
@@ -23,8 +23,8 @@ export const groupStyles = {
|
|
|
23
23
|
keTefX: "xd10s4z x1pwwqoy",
|
|
24
24
|
krdFHd: "x15mokao x8eehn2",
|
|
25
25
|
kVL7Gh: "xbiv7yw x1xrp5p4",
|
|
26
|
-
kfmiAY: "x1ga7v0g
|
|
27
|
-
kT0f0o: "x16uus16
|
|
26
|
+
kfmiAY: "x1ga7v0g x1tzxhge",
|
|
27
|
+
kT0f0o: "x16uus16 x1rmb4wm",
|
|
28
28
|
kXnDq0: "x1rm9qnc",
|
|
29
29
|
$$css: true
|
|
30
30
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @file LayerDepthContext.tsx
|
|
7
|
-
* @input React
|
|
7
|
+
* @input React context
|
|
8
8
|
* @output Exports LayerDepthContext, useLayerDepth, LayerDepthProvider
|
|
9
9
|
* @position Layer system; how the dismissal stack learns which layer is nested
|
|
10
10
|
* inside which.
|
package/dist/Layer/useLayer.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @file useLayer.tsx
|
|
3
|
-
* @input Uses React hooks, Popover API, CSS anchor positioning,
|
|
3
|
+
* @input Uses React hooks, Popover API, CSS anchor positioning, typography tokens
|
|
4
4
|
* @output Exports the public useLayer hook plus internal trigger helpers.
|
|
5
5
|
* @position Core layer utility; used by useHoverCard, useTooltip, etc.
|
|
6
6
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLayer.d.ts","sourceRoot":"","sources":["../../src/Layer/useLayer.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,EAOZ,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,EAOZ,KAAK,SAAS,EACd,KAAK,WAAW,EACjB,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAC,YAAY,EAAC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