@salt-ds/lab 1.0.0-alpha.96 → 1.0.0-alpha.98
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/CHANGELOG.md +27 -0
- package/css/salt-lab.css +1 -343
- package/dist-cjs/common-hooks/useSelection.js +6 -3
- package/dist-cjs/common-hooks/useSelection.js.map +1 -1
- package/dist-cjs/index.js +0 -28
- package/dist-cjs/index.js.map +1 -1
- package/dist-cjs/list/useList.js +7 -1
- package/dist-cjs/list/useList.js.map +1 -1
- package/dist-es/common-hooks/useSelection.js +6 -3
- package/dist-es/common-hooks/useSelection.js.map +1 -1
- package/dist-es/index.js +0 -14
- package/dist-es/index.js.map +1 -1
- package/dist-es/list/useList.js +7 -1
- package/dist-es/list/useList.js.map +1 -1
- package/dist-types/index.d.ts +0 -2
- package/package.json +2 -2
- package/dist-cjs/mega-menu/MegaMenu.js +0 -76
- package/dist-cjs/mega-menu/MegaMenu.js.map +0 -1
- package/dist-cjs/mega-menu/MegaMenuActions.css.js +0 -6
- package/dist-cjs/mega-menu/MegaMenuActions.css.js.map +0 -1
- package/dist-cjs/mega-menu/MegaMenuActions.js +0 -33
- package/dist-cjs/mega-menu/MegaMenuActions.js.map +0 -1
- package/dist-cjs/mega-menu/MegaMenuAside.css.js +0 -6
- package/dist-cjs/mega-menu/MegaMenuAside.css.js.map +0 -1
- package/dist-cjs/mega-menu/MegaMenuAside.js +0 -33
- package/dist-cjs/mega-menu/MegaMenuAside.js.map +0 -1
- package/dist-cjs/mega-menu/MegaMenuContent.css.js +0 -6
- package/dist-cjs/mega-menu/MegaMenuContent.css.js.map +0 -1
- package/dist-cjs/mega-menu/MegaMenuContent.js +0 -25
- package/dist-cjs/mega-menu/MegaMenuContent.js.map +0 -1
- package/dist-cjs/mega-menu/MegaMenuContext.js +0 -11
- package/dist-cjs/mega-menu/MegaMenuContext.js.map +0 -1
- package/dist-cjs/mega-menu/MegaMenuGroup.css.js +0 -6
- package/dist-cjs/mega-menu/MegaMenuGroup.css.js.map +0 -1
- package/dist-cjs/mega-menu/MegaMenuGroup.js +0 -40
- package/dist-cjs/mega-menu/MegaMenuGroup.js.map +0 -1
- package/dist-cjs/mega-menu/MegaMenuGroupContext.js +0 -17
- package/dist-cjs/mega-menu/MegaMenuGroupContext.js.map +0 -1
- package/dist-cjs/mega-menu/MegaMenuGroupHeading.css.js +0 -6
- package/dist-cjs/mega-menu/MegaMenuGroupHeading.css.js.map +0 -1
- package/dist-cjs/mega-menu/MegaMenuGroupHeading.js +0 -39
- package/dist-cjs/mega-menu/MegaMenuGroupHeading.js.map +0 -1
- package/dist-cjs/mega-menu/MegaMenuGroups.css.js +0 -6
- package/dist-cjs/mega-menu/MegaMenuGroups.css.js.map +0 -1
- package/dist-cjs/mega-menu/MegaMenuGroups.js +0 -25
- package/dist-cjs/mega-menu/MegaMenuGroups.js.map +0 -1
- package/dist-cjs/mega-menu/MegaMenuList.css.js +0 -6
- package/dist-cjs/mega-menu/MegaMenuList.css.js.map +0 -1
- package/dist-cjs/mega-menu/MegaMenuList.js +0 -43
- package/dist-cjs/mega-menu/MegaMenuList.js.map +0 -1
- package/dist-cjs/mega-menu/MegaMenuListItem.css.js +0 -6
- package/dist-cjs/mega-menu/MegaMenuListItem.css.js.map +0 -1
- package/dist-cjs/mega-menu/MegaMenuListItem.js +0 -45
- package/dist-cjs/mega-menu/MegaMenuListItem.js.map +0 -1
- package/dist-cjs/mega-menu/MegaMenuPanel.css.js +0 -6
- package/dist-cjs/mega-menu/MegaMenuPanel.css.js.map +0 -1
- package/dist-cjs/mega-menu/MegaMenuPanel.js +0 -88
- package/dist-cjs/mega-menu/MegaMenuPanel.js.map +0 -1
- package/dist-cjs/mega-menu/MegaMenuTrigger.js +0 -90
- package/dist-cjs/mega-menu/MegaMenuTrigger.js.map +0 -1
- package/dist-cjs/mega-menu/useMegaMenu.js +0 -15
- package/dist-cjs/mega-menu/useMegaMenu.js.map +0 -1
- package/dist-cjs/mega-menu/useMegaMenuNavigation.js +0 -282
- package/dist-cjs/mega-menu/useMegaMenuNavigation.js.map +0 -1
- package/dist-cjs/mega-menu/usePageMargin.js +0 -22
- package/dist-cjs/mega-menu/usePageMargin.js.map +0 -1
- package/dist-cjs/toolbar-next/ToolbarContentNext.css.js +0 -6
- package/dist-cjs/toolbar-next/ToolbarContentNext.css.js.map +0 -1
- package/dist-cjs/toolbar-next/ToolbarContentNext.js +0 -32
- package/dist-cjs/toolbar-next/ToolbarContentNext.js.map +0 -1
- package/dist-cjs/toolbar-next/ToolbarNext.css.js +0 -6
- package/dist-cjs/toolbar-next/ToolbarNext.css.js.map +0 -1
- package/dist-cjs/toolbar-next/ToolbarNext.js +0 -394
- package/dist-cjs/toolbar-next/ToolbarNext.js.map +0 -1
- package/dist-cjs/toolbar-next/ToolbarNextOverflow.css.js +0 -6
- package/dist-cjs/toolbar-next/ToolbarNextOverflow.css.js.map +0 -1
- package/dist-cjs/toolbar-next/ToolbarNextOverflow.js +0 -706
- package/dist-cjs/toolbar-next/ToolbarNextOverflow.js.map +0 -1
- package/dist-cjs/toolbar-next/ToolbarNextOverflowFloatingBoundary.js +0 -165
- package/dist-cjs/toolbar-next/ToolbarNextOverflowFloatingBoundary.js.map +0 -1
- package/dist-cjs/toolbar-next/TooltrayNext.css.js +0 -6
- package/dist-cjs/toolbar-next/TooltrayNext.css.js.map +0 -1
- package/dist-cjs/toolbar-next/TooltrayNext.js +0 -55
- package/dist-cjs/toolbar-next/TooltrayNext.js.map +0 -1
- package/dist-cjs/toolbar-next/toolbarNextKeyboardUtils.js +0 -409
- package/dist-cjs/toolbar-next/toolbarNextKeyboardUtils.js.map +0 -1
- package/dist-cjs/toolbar-next/toolbarNextUtils.js +0 -215
- package/dist-cjs/toolbar-next/toolbarNextUtils.js.map +0 -1
- package/dist-cjs/toolbar-next/useToolbarNextKeyboardNavigation.js +0 -312
- package/dist-cjs/toolbar-next/useToolbarNextKeyboardNavigation.js.map +0 -1
- package/dist-cjs/toolbar-next/useToolbarNextOverflow.js +0 -745
- package/dist-cjs/toolbar-next/useToolbarNextOverflow.js.map +0 -1
- package/dist-es/mega-menu/MegaMenu.js +0 -74
- package/dist-es/mega-menu/MegaMenu.js.map +0 -1
- package/dist-es/mega-menu/MegaMenuActions.css.js +0 -4
- package/dist-es/mega-menu/MegaMenuActions.css.js.map +0 -1
- package/dist-es/mega-menu/MegaMenuActions.js +0 -31
- package/dist-es/mega-menu/MegaMenuActions.js.map +0 -1
- package/dist-es/mega-menu/MegaMenuAside.css.js +0 -4
- package/dist-es/mega-menu/MegaMenuAside.css.js.map +0 -1
- package/dist-es/mega-menu/MegaMenuAside.js +0 -31
- package/dist-es/mega-menu/MegaMenuAside.js.map +0 -1
- package/dist-es/mega-menu/MegaMenuContent.css.js +0 -4
- package/dist-es/mega-menu/MegaMenuContent.css.js.map +0 -1
- package/dist-es/mega-menu/MegaMenuContent.js +0 -23
- package/dist-es/mega-menu/MegaMenuContent.js.map +0 -1
- package/dist-es/mega-menu/MegaMenuContext.js +0 -9
- package/dist-es/mega-menu/MegaMenuContext.js.map +0 -1
- package/dist-es/mega-menu/MegaMenuGroup.css.js +0 -4
- package/dist-es/mega-menu/MegaMenuGroup.css.js.map +0 -1
- package/dist-es/mega-menu/MegaMenuGroup.js +0 -38
- package/dist-es/mega-menu/MegaMenuGroup.js.map +0 -1
- package/dist-es/mega-menu/MegaMenuGroupContext.js +0 -14
- package/dist-es/mega-menu/MegaMenuGroupContext.js.map +0 -1
- package/dist-es/mega-menu/MegaMenuGroupHeading.css.js +0 -4
- package/dist-es/mega-menu/MegaMenuGroupHeading.css.js.map +0 -1
- package/dist-es/mega-menu/MegaMenuGroupHeading.js +0 -37
- package/dist-es/mega-menu/MegaMenuGroupHeading.js.map +0 -1
- package/dist-es/mega-menu/MegaMenuGroups.css.js +0 -4
- package/dist-es/mega-menu/MegaMenuGroups.css.js.map +0 -1
- package/dist-es/mega-menu/MegaMenuGroups.js +0 -23
- package/dist-es/mega-menu/MegaMenuGroups.js.map +0 -1
- package/dist-es/mega-menu/MegaMenuList.css.js +0 -4
- package/dist-es/mega-menu/MegaMenuList.css.js.map +0 -1
- package/dist-es/mega-menu/MegaMenuList.js +0 -41
- package/dist-es/mega-menu/MegaMenuList.js.map +0 -1
- package/dist-es/mega-menu/MegaMenuListItem.css.js +0 -4
- package/dist-es/mega-menu/MegaMenuListItem.css.js.map +0 -1
- package/dist-es/mega-menu/MegaMenuListItem.js +0 -43
- package/dist-es/mega-menu/MegaMenuListItem.js.map +0 -1
- package/dist-es/mega-menu/MegaMenuPanel.css.js +0 -4
- package/dist-es/mega-menu/MegaMenuPanel.css.js.map +0 -1
- package/dist-es/mega-menu/MegaMenuPanel.js +0 -86
- package/dist-es/mega-menu/MegaMenuPanel.js.map +0 -1
- package/dist-es/mega-menu/MegaMenuTrigger.js +0 -88
- package/dist-es/mega-menu/MegaMenuTrigger.js.map +0 -1
- package/dist-es/mega-menu/useMegaMenu.js +0 -13
- package/dist-es/mega-menu/useMegaMenu.js.map +0 -1
- package/dist-es/mega-menu/useMegaMenuNavigation.js +0 -278
- package/dist-es/mega-menu/useMegaMenuNavigation.js.map +0 -1
- package/dist-es/mega-menu/usePageMargin.js +0 -20
- package/dist-es/mega-menu/usePageMargin.js.map +0 -1
- package/dist-es/toolbar-next/ToolbarContentNext.css.js +0 -4
- package/dist-es/toolbar-next/ToolbarContentNext.css.js.map +0 -1
- package/dist-es/toolbar-next/ToolbarContentNext.js +0 -30
- package/dist-es/toolbar-next/ToolbarContentNext.js.map +0 -1
- package/dist-es/toolbar-next/ToolbarNext.css.js +0 -4
- package/dist-es/toolbar-next/ToolbarNext.css.js.map +0 -1
- package/dist-es/toolbar-next/ToolbarNext.js +0 -392
- package/dist-es/toolbar-next/ToolbarNext.js.map +0 -1
- package/dist-es/toolbar-next/ToolbarNextOverflow.css.js +0 -4
- package/dist-es/toolbar-next/ToolbarNextOverflow.css.js.map +0 -1
- package/dist-es/toolbar-next/ToolbarNextOverflow.js +0 -701
- package/dist-es/toolbar-next/ToolbarNextOverflow.js.map +0 -1
- package/dist-es/toolbar-next/ToolbarNextOverflowFloatingBoundary.js +0 -159
- package/dist-es/toolbar-next/ToolbarNextOverflowFloatingBoundary.js.map +0 -1
- package/dist-es/toolbar-next/TooltrayNext.css.js +0 -4
- package/dist-es/toolbar-next/TooltrayNext.css.js.map +0 -1
- package/dist-es/toolbar-next/TooltrayNext.js +0 -53
- package/dist-es/toolbar-next/TooltrayNext.js.map +0 -1
- package/dist-es/toolbar-next/toolbarNextKeyboardUtils.js +0 -390
- package/dist-es/toolbar-next/toolbarNextKeyboardUtils.js.map +0 -1
- package/dist-es/toolbar-next/toolbarNextUtils.js +0 -211
- package/dist-es/toolbar-next/toolbarNextUtils.js.map +0 -1
- package/dist-es/toolbar-next/useToolbarNextKeyboardNavigation.js +0 -310
- package/dist-es/toolbar-next/useToolbarNextKeyboardNavigation.js.map +0 -1
- package/dist-es/toolbar-next/useToolbarNextOverflow.js +0 -743
- package/dist-es/toolbar-next/useToolbarNextOverflow.js.map +0 -1
- package/dist-types/mega-menu/MegaMenu.d.ts +0 -36
- package/dist-types/mega-menu/MegaMenuActions.d.ts +0 -10
- package/dist-types/mega-menu/MegaMenuAside.d.ts +0 -9
- package/dist-types/mega-menu/MegaMenuContent.d.ts +0 -9
- package/dist-types/mega-menu/MegaMenuContext.d.ts +0 -28
- package/dist-types/mega-menu/MegaMenuGroup.d.ts +0 -9
- package/dist-types/mega-menu/MegaMenuGroupContext.d.ts +0 -12
- package/dist-types/mega-menu/MegaMenuGroupHeading.d.ts +0 -13
- package/dist-types/mega-menu/MegaMenuGroups.d.ts +0 -8
- package/dist-types/mega-menu/MegaMenuList.d.ts +0 -16
- package/dist-types/mega-menu/MegaMenuListItem.d.ts +0 -25
- package/dist-types/mega-menu/MegaMenuPanel.d.ts +0 -8
- package/dist-types/mega-menu/MegaMenuTrigger.d.ts +0 -9
- package/dist-types/mega-menu/index.d.ts +0 -11
- package/dist-types/mega-menu/useMegaMenu.d.ts +0 -6
- package/dist-types/mega-menu/useMegaMenuNavigation.d.ts +0 -16
- package/dist-types/mega-menu/usePageMargin.d.ts +0 -6
- package/dist-types/toolbar-next/ToolbarContentNext.d.ts +0 -11
- package/dist-types/toolbar-next/ToolbarNext.d.ts +0 -12
- package/dist-types/toolbar-next/ToolbarNextOverflow.d.ts +0 -34
- package/dist-types/toolbar-next/ToolbarNextOverflowFloatingBoundary.d.ts +0 -16
- package/dist-types/toolbar-next/TooltrayNext.d.ts +0 -37
- package/dist-types/toolbar-next/index.d.ts +0 -3
- package/dist-types/toolbar-next/toolbarNextKeyboardUtils.d.ts +0 -39
- package/dist-types/toolbar-next/toolbarNextUtils.d.ts +0 -42
- package/dist-types/toolbar-next/useToolbarNextKeyboardNavigation.d.ts +0 -42
- package/dist-types/toolbar-next/useToolbarNextOverflow.d.ts +0 -37
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useToolbarNextOverflow.js","sources":["../src/toolbar-next/useToolbarNextOverflow.ts"],"sourcesContent":["import { ownerWindow, useIsomorphicLayoutEffect } from \"@salt-ds/core\";\nimport { useWindow } from \"@salt-ds/window\";\nimport { useCallback, useEffect, useMemo, useRef, useState } from \"react\";\nimport type { ToolbarContentNextPosition } from \"./ToolbarContentNext\";\nimport {\n buildContentOverflowRenderSlots,\n type ToolbarNextContentModel,\n type ToolbarNextOverflowItem,\n} from \"./toolbarNextUtils\";\n\ninterface OverflowGroupDefinition {\n id: string;\n key: string;\n label: string;\n named: boolean;\n order: number;\n overflowGroup: string;\n contentKey?: string;\n}\n\ninterface CollapseUnit {\n groupKey: string;\n itemIds: string[];\n order: number;\n priority: number;\n}\n\nexport interface ToolbarNextOverflowGroup {\n id: string;\n items: ToolbarNextOverflowItem[];\n key: string;\n label: string;\n named: boolean;\n overflowGroup: string;\n contentKey?: string;\n}\n\ninterface OverflowState {\n overflowGroups: ToolbarNextOverflowGroup[];\n overflowedIds: Set<string>;\n}\n\ninterface UseToolbarNextOverflowProps {\n content: ToolbarNextContentModel[];\n}\n\ntype ObservedWidthTarget =\n | {\n kind: \"container\";\n }\n | {\n id: string;\n kind: \"item\";\n }\n | {\n id: string;\n kind: \"named-trigger\";\n }\n | {\n id: string;\n kind: \"named-trigger-measure\";\n }\n | {\n groupKey: string;\n kind: \"shared-trigger-measure\";\n };\n\nconst emptyOverflowState: OverflowState = {\n overflowGroups: [],\n overflowedIds: new Set<string>(),\n};\n\nconst bandPositions: ToolbarContentNextPosition[] = [\"start\", \"center\", \"end\"];\n// Tolerance for comparing measured content against the available width.\n// `getBoundingClientRect` reports fractional pixels, so summed item, gap, and\n// container measurements can differ by sub-pixel amounts that never visibly\n// overflow. Treating differences below half a CSS pixel as \"fits\" prevents\n// false overflow. Matches the epsilon used by core Tabs for consistency.\nconst WIDTH_EPSILON = 0.5;\n\nfunction measureWidth(element: HTMLElement | null) {\n if (!element) {\n return 0;\n }\n\n const { width } = element.getBoundingClientRect();\n return width;\n}\n\nfunction isVisibleMeasurementElement(element: Element): element is HTMLElement {\n if (!(element instanceof HTMLElement)) {\n return false;\n }\n\n const { width, height } = element.getBoundingClientRect();\n const styles = ownerWindow(element).getComputedStyle(element);\n\n return (\n width > 0 &&\n height > 0 &&\n styles.display !== \"none\" &&\n styles.visibility !== \"hidden\"\n );\n}\n\nfunction measureOverflowItemWidth(element: HTMLElement | null) {\n if (!element) {\n return 0;\n }\n\n const rect = element.getBoundingClientRect();\n let left = rect.left;\n let right = rect.right;\n\n for (const descendant of element.querySelectorAll(\"*\")) {\n if (!isVisibleMeasurementElement(descendant)) {\n continue;\n }\n\n const descendantRect = descendant.getBoundingClientRect();\n left = Math.min(left, descendantRect.left);\n right = Math.max(right, descendantRect.right);\n }\n\n return Math.max(rect.width, right - left);\n}\n\nfunction exceedsAvailableWidth(measuredWidth: number, availableWidth: number) {\n return measuredWidth - availableWidth > WIDTH_EPSILON;\n}\n\nfunction readGap(gapValue: string) {\n return Number.parseFloat(gapValue || \"0\") || 0;\n}\n\nfunction sumFlexWidths(widths: number[], gap: number) {\n if (widths.length === 0) {\n return 0;\n }\n\n return (\n widths.reduce((total, width) => total + width, 0) +\n gap * (widths.length - 1)\n );\n}\n\nfunction buildGroupDefinitions(items: ToolbarNextOverflowItem[]) {\n const groupMap = new Map<string, OverflowGroupDefinition>();\n\n for (const [sequence, item] of items.entries()) {\n if (item.overflowMode === \"none\") {\n continue;\n }\n\n const existing = groupMap.get(item.overflowGroupKey);\n\n if (existing) {\n if (!existing.named && item.overflowGroup === \"shared\") {\n continue;\n }\n\n if (existing.label === item.overflowGroup && item.overflowLabel) {\n existing.label = item.overflowLabel;\n }\n\n continue;\n }\n\n groupMap.set(item.overflowGroupKey, {\n id: `${item.overflowGroupKey}-${sequence}`,\n key: item.overflowGroupKey,\n label:\n item.overflowGroup === \"shared\"\n ? \"More\"\n : (item.overflowLabel ?? item.overflowGroup),\n named: item.overflowGroup !== \"shared\",\n order: sequence,\n overflowGroup: item.overflowGroup,\n contentKey: item.overflowGroup === \"shared\" ? undefined : item.contentKey,\n });\n }\n\n return Array.from(groupMap.values()).sort(\n (left, right) => left.order - right.order,\n );\n}\n\nfunction buildCollapseUnits(items: ToolbarNextOverflowItem[]) {\n const groupedUnits = new Map<string, CollapseUnit>();\n const units: CollapseUnit[] = [];\n\n for (const [sequence, item] of items.entries()) {\n if (item.overflowMode === \"none\") {\n continue;\n }\n\n if (item.overflowMode === \"grouped\" && item.overflowGroup !== \"shared\") {\n const existing = groupedUnits.get(item.overflowGroupKey);\n\n if (existing) {\n existing.itemIds.push(item.id);\n existing.order = Math.max(existing.order, sequence);\n existing.priority = Math.max(existing.priority, item.overflowPriority);\n continue;\n }\n\n const unit: CollapseUnit = {\n groupKey: item.overflowGroupKey,\n itemIds: [item.id],\n order: sequence,\n priority: item.overflowPriority,\n };\n\n groupedUnits.set(item.overflowGroupKey, unit);\n units.push(unit);\n continue;\n }\n\n units.push({\n groupKey: item.overflowGroupKey,\n itemIds: [item.id],\n order: sequence,\n priority: item.overflowPriority,\n });\n }\n\n return units.sort((left, right) => {\n if (left.priority !== right.priority) {\n return right.priority - left.priority;\n }\n\n return right.order - left.order;\n });\n}\n\nfunction areOverflowStatesEqual(previous: OverflowState, next: OverflowState) {\n if (previous.overflowedIds.size !== next.overflowedIds.size) {\n return false;\n }\n\n for (const itemId of previous.overflowedIds) {\n if (!next.overflowedIds.has(itemId)) {\n return false;\n }\n }\n\n if (previous.overflowGroups.length !== next.overflowGroups.length) {\n return false;\n }\n\n return previous.overflowGroups.every((group, index) => {\n const nextGroup = next.overflowGroups[index];\n\n if (\n nextGroup == null ||\n group.id !== nextGroup.id ||\n group.label !== nextGroup.label ||\n group.items.length !== nextGroup.items.length\n ) {\n return false;\n }\n\n return group.items.every((item, itemIndex) => {\n return item.id === nextGroup.items[itemIndex]?.id;\n });\n });\n}\n\ninterface ComputeToolbarNextOverflowStateArgs {\n collapseUnits: CollapseUnit[];\n containerWidth: number;\n groupDefinitions: OverflowGroupDefinition[];\n itemWidths: Map<string, number>;\n items: ToolbarNextOverflowItem[];\n namedTriggerWidths: Map<string, number>;\n content: ToolbarNextContentModel[];\n contentGaps: Map<string, number>;\n rootGap: number;\n triggerWidths: Map<string, number>;\n bandGaps: Map<ToolbarContentNextPosition, number>;\n}\n\nfunction computeToolbarNextOverflowState({\n bandGaps,\n collapseUnits,\n containerWidth,\n groupDefinitions,\n itemWidths,\n items,\n namedTriggerWidths,\n content,\n contentGaps,\n rootGap,\n triggerWidths,\n}: ComputeToolbarNextOverflowStateArgs): OverflowState {\n const hasCenteredLayout = content.some(\n (contentArea) => contentArea.position === \"center\",\n );\n const contentByPosition = bandPositions.reduce<\n Record<ToolbarContentNextPosition, ToolbarNextContentModel[]>\n >(\n (bands, position) => {\n bands[position] = content.filter(\n (contentArea) => contentArea.position === position,\n );\n return bands;\n },\n {\n start: [],\n center: [],\n end: [],\n },\n );\n const overflowedIds = new Set<string>();\n const activeGroups = new Set<string>();\n\n const getContentWidth = (contentArea: ToolbarNextContentModel) => {\n const renderSlots = buildContentOverflowRenderSlots(\n contentArea.items,\n overflowedIds,\n new Set(\n groupDefinitions\n .filter((group) => {\n return (\n group.named &&\n group.contentKey === contentArea.key &&\n activeGroups.has(group.key)\n );\n })\n .map((group) => group.key),\n ),\n );\n const slotWidths: number[] = [];\n\n for (const slot of renderSlots) {\n const width =\n slot.triggerGroupKey != null\n ? namedTriggerWidths.get(slot.item.id)\n : itemWidths.get(slot.item.id);\n\n if (width == null || width <= 0) {\n return null;\n }\n\n slotWidths.push(width);\n }\n\n return sumFlexWidths(slotWidths, contentGaps.get(contentArea.key) ?? 0);\n };\n\n const getBandWidth = (position: ToolbarContentNextPosition) => {\n const bandChildWidths: number[] = [];\n\n for (const contentArea of contentByPosition[position]) {\n const contentWidth = getContentWidth(contentArea);\n\n if (contentWidth == null) {\n return null;\n }\n\n if (contentWidth > 0) {\n bandChildWidths.push(contentWidth);\n }\n }\n\n if (position === \"end\") {\n for (const group of groupDefinitions) {\n if (!group.named && activeGroups.has(group.key)) {\n const width = triggerWidths.get(group.key);\n\n if (width == null || width <= 0) {\n return null;\n }\n\n bandChildWidths.push(width);\n }\n }\n }\n\n return sumFlexWidths(bandChildWidths, bandGaps.get(position) ?? 0);\n };\n\n const getTotalWidth = () => {\n if (hasCenteredLayout) {\n const startBandWidth = getBandWidth(\"start\");\n const centerBandWidth = getBandWidth(\"center\");\n const endBandWidth = getBandWidth(\"end\");\n\n if (\n startBandWidth == null ||\n centerBandWidth == null ||\n endBandWidth == null\n ) {\n return null;\n }\n\n return centerBandWidth + Math.max(startBandWidth, endBandWidth) * 2;\n }\n\n const visibleBandWidths: number[] = [];\n\n for (const position of bandPositions) {\n const bandWidth = getBandWidth(position);\n\n if (bandWidth == null) {\n return null;\n }\n\n if (bandWidth > 0) {\n visibleBandWidths.push(bandWidth);\n }\n }\n\n return sumFlexWidths(visibleBandWidths, rootGap);\n };\n\n const initialWidth = getTotalWidth();\n\n if (initialWidth == null) {\n return emptyOverflowState;\n }\n\n if (exceedsAvailableWidth(initialWidth, containerWidth)) {\n for (const unit of collapseUnits) {\n for (const itemId of unit.itemIds) {\n overflowedIds.add(itemId);\n }\n\n activeGroups.add(unit.groupKey);\n\n const nextWidth = getTotalWidth();\n\n if (nextWidth == null) {\n return emptyOverflowState;\n }\n\n if (!exceedsAvailableWidth(nextWidth, containerWidth)) {\n break;\n }\n }\n }\n\n const overflowGroups = groupDefinitions.reduce<ToolbarNextOverflowGroup[]>(\n (groups, group) => {\n const hiddenItems = items.filter(\n (item) =>\n item.overflowGroupKey === group.key && overflowedIds.has(item.id),\n );\n\n if (hiddenItems.length > 0) {\n groups.push({\n id: group.id,\n items: hiddenItems,\n key: group.key,\n label: group.label,\n named: group.named,\n overflowGroup: group.overflowGroup,\n contentKey: group.contentKey,\n });\n }\n\n return groups;\n },\n [],\n );\n\n return {\n overflowGroups,\n overflowedIds,\n };\n}\n\nexport function useToolbarNextOverflow({\n content,\n}: UseToolbarNextOverflowProps) {\n const targetWindow = useWindow();\n const items = useMemo(\n () => content.flatMap((contentArea) => contentArea.items),\n [content],\n );\n const containerRef = useRef<HTMLDivElement>(null);\n\n const bandRefs = useRef<\n Record<ToolbarContentNextPosition, HTMLDivElement | null>\n >({\n start: null,\n center: null,\n end: null,\n });\n const bandRefCallbacks = useRef(\n new Map<\n ToolbarContentNextPosition,\n (node: HTMLDivElement | null) => void\n >(),\n );\n const contentRefs = useRef<Record<string, HTMLDivElement | null>>({});\n const contentRefCallbacks = useRef(\n new Map<string, (node: HTMLDivElement | null) => void>(),\n );\n const itemRefs = useRef<Record<string, HTMLDivElement | null>>({});\n const itemRefCallbacks = useRef(\n new Map<string, (node: HTMLDivElement | null) => void>(),\n );\n const namedTriggerRefs = useRef<Record<string, HTMLDivElement | null>>({});\n const namedTriggerRefCallbacks = useRef(\n new Map<string, (node: HTMLDivElement | null) => void>(),\n );\n const namedTriggerMeasureRefs = useRef<Record<string, HTMLDivElement | null>>(\n {},\n );\n const namedTriggerMeasureCallbacks = useRef(\n new Map<string, (node: HTMLDivElement | null) => void>(),\n );\n const triggerMeasureRefs = useRef<Record<string, HTMLButtonElement | null>>(\n {},\n );\n const triggerMeasureCallbacks = useRef(\n new Map<string, (node: HTMLButtonElement | null) => void>(),\n );\n const rafRef = useRef<number | null>(null);\n const clearComputingRafRef = useRef<number | null>(null);\n const isComputingRef = useRef(false);\n const pendingMeasureRef = useRef(false);\n const resizeObserverRef = useRef<ResizeObserver | null>(null);\n const observedWidthTargetsRef = useRef(\n new Map<Element, ObservedWidthTarget>(),\n );\n\n const cachedItemWidths = useRef<Record<string, number>>({});\n const cachedNamedTriggerWidths = useRef<Record<string, number>>({});\n const cachedSharedTriggerWidths = useRef<Record<string, number>>({});\n const [overflowState, setOverflowState] =\n useState<OverflowState>(emptyOverflowState);\n\n const namedTriggerItems = useMemo(\n () =>\n items.filter((item) => {\n return item.overflowMode !== \"none\" && item.overflowGroup !== \"shared\";\n }),\n [items],\n );\n\n const groupDefinitions = useMemo(() => buildGroupDefinitions(items), [items]);\n const collapseUnits = useMemo(() => buildCollapseUnits(items), [items]);\n\n const computeOverflow = useCallback((): OverflowState => {\n const container = containerRef.current;\n\n if (!container) {\n return emptyOverflowState;\n }\n\n const containerStyles = ownerWindow(container).getComputedStyle(container);\n const paddingLeft =\n Number.parseFloat(containerStyles.paddingLeft || \"0\") || 0;\n const paddingRight =\n Number.parseFloat(containerStyles.paddingRight || \"0\") || 0;\n const borderLeft =\n Number.parseFloat(containerStyles.borderLeftWidth || \"0\") || 0;\n const borderRight =\n Number.parseFloat(containerStyles.borderRightWidth || \"0\") || 0;\n const containerWidth =\n container.getBoundingClientRect().width -\n paddingLeft -\n paddingRight -\n borderLeft -\n borderRight;\n\n if (containerWidth <= 0) {\n return emptyOverflowState;\n }\n\n const rootGap = readGap(\n containerStyles.columnGap || containerStyles.gap || \"0\",\n );\n const bandGaps = new Map<ToolbarContentNextPosition, number>();\n const contentGaps = new Map<string, number>();\n const itemWidths = new Map<string, number>();\n const namedTriggerWidths = new Map<string, number>();\n const triggerWidths = new Map<string, number>();\n\n for (const position of bandPositions) {\n const bandElement = bandRefs.current[position];\n\n if (!bandElement) {\n bandGaps.set(position, 0);\n continue;\n }\n\n const bandStyles = ownerWindow(bandElement).getComputedStyle(bandElement);\n bandGaps.set(\n position,\n readGap(bandStyles.columnGap || bandStyles.gap || \"0\"),\n );\n }\n\n for (const contentArea of content) {\n const contentElement = contentRefs.current[contentArea.key];\n\n if (!contentElement) {\n return emptyOverflowState;\n }\n\n const contentStyles =\n ownerWindow(contentElement).getComputedStyle(contentElement);\n\n contentGaps.set(\n contentArea.key,\n readGap(contentStyles.columnGap || contentStyles.gap || \"0\"),\n );\n }\n\n for (const item of items) {\n const element = itemRefs.current[item.id];\n\n if (element) {\n const width = measureOverflowItemWidth(element);\n\n if (width > 0) {\n itemWidths.set(item.id, width);\n cachedItemWidths.current[item.id] = width;\n continue;\n }\n }\n\n const cached = cachedItemWidths.current[item.id];\n if (cached != null && cached > 0) {\n itemWidths.set(item.id, cached);\n continue;\n }\n\n return emptyOverflowState;\n }\n\n for (const item of namedTriggerItems) {\n const liveWidth = measureWidth(namedTriggerRefs.current[item.id]);\n\n if (liveWidth > 0) {\n namedTriggerWidths.set(item.id, liveWidth);\n cachedNamedTriggerWidths.current[item.id] = liveWidth;\n continue;\n }\n\n const measureWidthForItem = measureWidth(\n namedTriggerMeasureRefs.current[item.id],\n );\n\n if (measureWidthForItem > 0) {\n namedTriggerWidths.set(item.id, measureWidthForItem);\n cachedNamedTriggerWidths.current[item.id] = measureWidthForItem;\n continue;\n }\n\n const cached = cachedNamedTriggerWidths.current[item.id];\n if (cached != null && cached > 0) {\n namedTriggerWidths.set(item.id, cached);\n continue;\n }\n\n return emptyOverflowState;\n }\n\n for (const group of groupDefinitions.filter((entry) => !entry.named)) {\n const width = measureWidth(triggerMeasureRefs.current[group.key]);\n\n if (width <= 0) {\n const cached = cachedSharedTriggerWidths.current[group.key];\n\n if (cached != null && cached > 0) {\n triggerWidths.set(group.key, cached);\n continue;\n }\n\n return emptyOverflowState;\n }\n\n triggerWidths.set(group.key, width);\n cachedSharedTriggerWidths.current[group.key] = width;\n }\n\n const nextOverflowState = computeToolbarNextOverflowState({\n bandGaps,\n collapseUnits,\n containerWidth,\n groupDefinitions,\n itemWidths,\n items,\n namedTriggerWidths,\n content,\n contentGaps,\n rootGap,\n triggerWidths,\n });\n\n return nextOverflowState;\n }, [collapseUnits, groupDefinitions, items, namedTriggerItems, content]);\n\n const scheduleMeasureRef = useRef<() => void>(() => {});\n\n const scheduleMeasure = useCallback(() => {\n if (!targetWindow) {\n return;\n }\n\n if (isComputingRef.current) {\n pendingMeasureRef.current = true;\n return;\n }\n\n if (rafRef.current != null) {\n targetWindow.cancelAnimationFrame(rafRef.current);\n }\n\n rafRef.current = targetWindow.requestAnimationFrame(() => {\n rafRef.current = null;\n isComputingRef.current = true;\n\n try {\n const nextState = computeOverflow();\n\n setOverflowState((previous) => {\n return areOverflowStatesEqual(previous, nextState)\n ? previous\n : nextState;\n });\n } finally {\n clearComputingRafRef.current = targetWindow.requestAnimationFrame(\n () => {\n clearComputingRafRef.current = null;\n isComputingRef.current = false;\n\n if (pendingMeasureRef.current) {\n pendingMeasureRef.current = false;\n scheduleMeasureRef.current();\n }\n },\n );\n }\n });\n }, [computeOverflow, targetWindow]);\n\n useIsomorphicLayoutEffect(() => {\n scheduleMeasureRef.current = scheduleMeasure;\n\n return () => {\n scheduleMeasureRef.current = () => {};\n };\n }, [scheduleMeasure]);\n\n const getCachedWidthForObservedTarget = useCallback(\n (target: Exclude<ObservedWidthTarget, { kind: \"container\" }>) => {\n switch (target.kind) {\n case \"item\":\n return cachedItemWidths.current[target.id];\n case \"named-trigger\":\n case \"named-trigger-measure\":\n return cachedNamedTriggerWidths.current[target.id];\n case \"shared-trigger-measure\":\n return cachedSharedTriggerWidths.current[target.groupKey];\n }\n },\n [],\n );\n\n const setCachedWidthForObservedTarget = useCallback(\n (\n target: Exclude<ObservedWidthTarget, { kind: \"container\" }>,\n width: number,\n ) => {\n switch (target.kind) {\n case \"item\":\n cachedItemWidths.current[target.id] = width;\n return;\n case \"named-trigger\":\n case \"named-trigger-measure\":\n cachedNamedTriggerWidths.current[target.id] = width;\n return;\n case \"shared-trigger-measure\":\n cachedSharedTriggerWidths.current[target.groupKey] = width;\n return;\n }\n },\n [],\n );\n\n const observeWidthTarget = useCallback(\n (node: Element | null, target: ObservedWidthTarget) => {\n if (!node) {\n return;\n }\n\n observedWidthTargetsRef.current.set(node, target);\n resizeObserverRef.current?.observe(node);\n },\n [],\n );\n\n const unobserveWidthTarget = useCallback((node: Element | null) => {\n if (!node) {\n return;\n }\n\n observedWidthTargetsRef.current.delete(node);\n resizeObserverRef.current?.unobserve(node);\n }, []);\n\n const updateObservedNode = useCallback(\n <TElement extends Element>(\n nodes: Record<string, TElement | null>,\n key: string,\n node: TElement | null,\n target: ObservedWidthTarget,\n ) => {\n const previous = nodes[key];\n\n if (previous === node) {\n return;\n }\n\n if (previous) {\n unobserveWidthTarget(previous);\n }\n\n nodes[key] = node;\n\n if (node) {\n observeWidthTarget(node, target);\n }\n },\n [observeWidthTarget, unobserveWidthTarget],\n );\n\n useIsomorphicLayoutEffect(() => {\n scheduleMeasure();\n }, [scheduleMeasure]);\n\n useEffect(() => {\n const container = containerRef.current;\n\n if (!container) {\n return;\n }\n\n let cancelled = false;\n const win = ownerWindow(container);\n const resizeObserver = new win.ResizeObserver((entries) => {\n let shouldMeasure = false;\n\n for (const entry of entries) {\n const target = observedWidthTargetsRef.current.get(entry.target);\n\n if (!target) {\n continue;\n }\n\n if (target.kind === \"container\") {\n shouldMeasure = true;\n continue;\n }\n\n const nextWidth =\n target.kind === \"item\"\n ? measureOverflowItemWidth(entry.target as HTMLElement)\n : measureWidth(entry.target as HTMLElement);\n\n if (nextWidth <= 0) {\n continue;\n }\n\n const previousWidth = getCachedWidthForObservedTarget(target);\n\n if (previousWidth !== nextWidth) {\n setCachedWidthForObservedTarget(target, nextWidth);\n shouldMeasure = true;\n }\n }\n\n if (shouldMeasure) {\n scheduleMeasureRef.current();\n }\n });\n\n resizeObserverRef.current = resizeObserver;\n observeWidthTarget(container, { kind: \"container\" });\n\n for (const node of observedWidthTargetsRef.current.keys()) {\n resizeObserver.observe(node);\n }\n\n if (win.document.fonts) {\n void win.document.fonts.ready.then(() => {\n if (!cancelled) {\n scheduleMeasureRef.current();\n }\n });\n }\n\n return () => {\n cancelled = true;\n resizeObserverRef.current = null;\n resizeObserver.disconnect();\n\n if (rafRef.current != null) {\n win.cancelAnimationFrame(rafRef.current);\n rafRef.current = null;\n }\n\n if (clearComputingRafRef.current != null) {\n win.cancelAnimationFrame(clearComputingRafRef.current);\n clearComputingRafRef.current = null;\n }\n\n isComputingRef.current = false;\n pendingMeasureRef.current = false;\n };\n }, [\n getCachedWidthForObservedTarget,\n observeWidthTarget,\n setCachedWidthForObservedTarget,\n ]);\n\n const getItemRef = useCallback(\n (id: string) => {\n const existing = itemRefCallbacks.current.get(id);\n\n if (existing) {\n return existing;\n }\n\n const callback = (node: HTMLDivElement | null) => {\n updateObservedNode(itemRefs.current, id, node, {\n id,\n kind: \"item\",\n });\n };\n\n itemRefCallbacks.current.set(id, callback);\n return callback;\n },\n [updateObservedNode],\n );\n\n const getNamedTriggerRef = useCallback(\n (id: string) => {\n const existing = namedTriggerRefCallbacks.current.get(id);\n\n if (existing) {\n return existing;\n }\n\n const callback = (node: HTMLDivElement | null) => {\n updateObservedNode(namedTriggerRefs.current, id, node, {\n id,\n kind: \"named-trigger\",\n });\n };\n\n namedTriggerRefCallbacks.current.set(id, callback);\n return callback;\n },\n [updateObservedNode],\n );\n\n const getNamedTriggerMeasureRef = useCallback(\n (id: string) => {\n const existing = namedTriggerMeasureCallbacks.current.get(id);\n\n if (existing) {\n return existing;\n }\n\n const callback = (node: HTMLDivElement | null) => {\n updateObservedNode(namedTriggerMeasureRefs.current, id, node, {\n id,\n kind: \"named-trigger-measure\",\n });\n };\n\n namedTriggerMeasureCallbacks.current.set(id, callback);\n return callback;\n },\n [updateObservedNode],\n );\n\n const getContentRef = useCallback((contentKey: string) => {\n const existing = contentRefCallbacks.current.get(contentKey);\n\n if (existing) {\n return existing;\n }\n\n const callback = (node: HTMLDivElement | null) => {\n contentRefs.current[contentKey] = node;\n };\n\n contentRefCallbacks.current.set(contentKey, callback);\n return callback;\n }, []);\n const getBandRef = useCallback((position: ToolbarContentNextPosition) => {\n const existing = bandRefCallbacks.current.get(position);\n\n if (existing) {\n return existing;\n }\n\n const callback = (node: HTMLDivElement | null) => {\n bandRefs.current[position] = node;\n };\n\n bandRefCallbacks.current.set(position, callback);\n return callback;\n }, []);\n\n const getTriggerMeasureRef = useCallback(\n (groupKey: string) => {\n const existing = triggerMeasureCallbacks.current.get(groupKey);\n\n if (existing) {\n return existing;\n }\n\n const callback = (node: HTMLButtonElement | null) => {\n updateObservedNode(triggerMeasureRefs.current, groupKey, node, {\n groupKey,\n kind: \"shared-trigger-measure\",\n });\n };\n\n triggerMeasureCallbacks.current.set(groupKey, callback);\n return callback;\n },\n [updateObservedNode],\n );\n\n return {\n containerRef,\n getBandRef,\n getItemRef,\n getNamedTriggerMeasureRef,\n getNamedTriggerRef,\n getContentRef,\n getTriggerMeasureRef,\n isOverflowing: overflowState.overflowGroups.length > 0,\n overflowGroups: overflowState.overflowGroups,\n overflowedIds: overflowState.overflowedIds,\n overflowTriggerGroups: groupDefinitions,\n };\n}\n"],"names":[],"mappings":";;;;;AAmEA,MAAM,kBAAA,GAAoC;AAAA,EACxC,gBAAgB,EAAC;AAAA,EACjB,aAAA,sBAAmB,GAAA;AACrB,CAAA;AAEA,MAAM,aAAA,GAA8C,CAAC,OAAA,EAAS,QAAA,EAAU,KAAK,CAAA;AAM7E,MAAM,aAAA,GAAgB,GAAA;AAEtB,SAAS,aAAa,OAAA,EAA6B;AACjD,EAAA,IAAI,CAAC,OAAA,EAAS;AACZ,IAAA,OAAO,CAAA;AAAA,EACT;AAE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
|
|
4
|
-
*/
|
|
5
|
-
export type MegaMenuPlacement = "bottom" | "bottom-start" | "bottom-end";
|
|
6
|
-
export interface MegaMenuProps {
|
|
7
|
-
/**
|
|
8
|
-
* The content of the mega menu, typically `MegaMenuTrigger` and `MegaMenuPanel`.
|
|
9
|
-
*/
|
|
10
|
-
children?: ReactNode;
|
|
11
|
-
/**
|
|
12
|
-
* Whether the mega menu is open. Use for controlled mode.
|
|
13
|
-
*/
|
|
14
|
-
open?: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Whether the mega menu is initially open. Use for uncontrolled mode.
|
|
17
|
-
* @default false
|
|
18
|
-
*/
|
|
19
|
-
defaultOpen?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Callback fired when the open state changes.
|
|
22
|
-
*/
|
|
23
|
-
onOpenChange?: (open: boolean) => void;
|
|
24
|
-
/**
|
|
25
|
-
* The placement of the mega menu panel relative to the trigger.
|
|
26
|
-
* @default "bottom"
|
|
27
|
-
*/
|
|
28
|
-
placement?: MegaMenuPlacement;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Root of a mega menu, coordinating its trigger and panel.
|
|
32
|
-
*
|
|
33
|
-
* Not intended to be nested inside another floating overlay (e.g. a dialog or
|
|
34
|
-
* popover): the mega menu does not participate in floating-ui's `FloatingTree`
|
|
35
|
-
*/
|
|
36
|
-
export declare function MegaMenu({ children, open, defaultOpen, onOpenChange, placement, }: MegaMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type ComponentPropsWithoutRef, type ReactNode } from "react";
|
|
2
|
-
export interface MegaMenuActionsProps extends ComponentPropsWithoutRef<"div"> {
|
|
3
|
-
/**
|
|
4
|
-
* The content of the actions. Place `MegaMenuActions` inside
|
|
5
|
-
* `MegaMenuContent`, after `MegaMenuGroups`; it renders as a band beneath the
|
|
6
|
-
* groups, spanning their width.
|
|
7
|
-
*/
|
|
8
|
-
children?: ReactNode;
|
|
9
|
-
}
|
|
10
|
-
export declare const MegaMenuActions: import("react").ForwardRefExoticComponent<MegaMenuActionsProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type ComponentPropsWithoutRef, type ReactNode } from "react";
|
|
2
|
-
export interface MegaMenuAsideProps extends ComponentPropsWithoutRef<"aside"> {
|
|
3
|
-
/**
|
|
4
|
-
* The content. Renders to the left of `MegaMenuContent` when placed before
|
|
5
|
-
* it, and to the right when placed after.
|
|
6
|
-
*/
|
|
7
|
-
children?: ReactNode;
|
|
8
|
-
}
|
|
9
|
-
export declare const MegaMenuAside: import("react").ForwardRefExoticComponent<MegaMenuAsideProps & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type ComponentPropsWithoutRef, type ReactNode } from "react";
|
|
2
|
-
export interface MegaMenuContentProps extends ComponentPropsWithoutRef<"div"> {
|
|
3
|
-
/**
|
|
4
|
-
* The content of the mega menu navigation area, typically a `MegaMenuGroups`
|
|
5
|
-
* and an optional `MegaMenuActions`.
|
|
6
|
-
*/
|
|
7
|
-
children?: ReactNode;
|
|
8
|
-
}
|
|
9
|
-
export declare const MegaMenuContent: import("react").ForwardRefExoticComponent<MegaMenuContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { FloatingRootContext } from "@floating-ui/react";
|
|
2
|
-
import type { Dispatch, HTMLProps, MutableRefObject, SetStateAction } from "react";
|
|
3
|
-
import type { MegaMenuPlacement } from "./MegaMenu";
|
|
4
|
-
export interface MegaMenuContextValue {
|
|
5
|
-
/** Whether the mega menu is currently open. */
|
|
6
|
-
openState: boolean;
|
|
7
|
-
/** Toggle or set the open state of the mega menu. */
|
|
8
|
-
setOpen: (open: boolean) => void;
|
|
9
|
-
/** The floating-ui root context for coordinating interactions. */
|
|
10
|
-
floatingRootContext: FloatingRootContext;
|
|
11
|
-
/** The placement of the mega menu panel relative to the trigger. */
|
|
12
|
-
placement: MegaMenuPlacement;
|
|
13
|
-
/** Props getter for the trigger (reference) element. Merges floating-ui interaction props with user props. */
|
|
14
|
-
getReferenceProps: (userProps?: HTMLProps<Element> | undefined) => Record<string, unknown>;
|
|
15
|
-
/** Props getter for the floating panel element. Merges floating-ui interaction props with user props. */
|
|
16
|
-
getFloatingProps: (userProps?: HTMLProps<HTMLElement> | undefined) => Record<string, unknown>;
|
|
17
|
-
/** Ref setter for the floating panel element. */
|
|
18
|
-
setFloating: Dispatch<SetStateAction<HTMLElement | null>>;
|
|
19
|
-
/** Ref setter for the trigger (reference) element. */
|
|
20
|
-
setReference: Dispatch<SetStateAction<HTMLElement | null>>;
|
|
21
|
-
/** Whether the first item should receive focus when the panel opens. */
|
|
22
|
-
focusFirstItemOnOpenRef: MutableRefObject<boolean>;
|
|
23
|
-
/** The id of the mega menu panel, used for aria-controls on the trigger. */
|
|
24
|
-
panelId: string | undefined;
|
|
25
|
-
/** Registers the panel's id so the trigger's aria-controls stays in sync. */
|
|
26
|
-
setPanelId: Dispatch<SetStateAction<string | undefined>>;
|
|
27
|
-
}
|
|
28
|
-
export declare const MegaMenuContext: import("react").Context<MegaMenuContextValue | undefined>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type ComponentPropsWithoutRef, type ReactNode } from "react";
|
|
2
|
-
export interface MegaMenuGroupProps extends ComponentPropsWithoutRef<"div"> {
|
|
3
|
-
/**
|
|
4
|
-
* The content of the mega menu group: a `MegaMenuGroupHeading` and a
|
|
5
|
-
* `MegaMenuList` of `MegaMenuListItem`s.
|
|
6
|
-
*/
|
|
7
|
-
children?: ReactNode;
|
|
8
|
-
}
|
|
9
|
-
export declare const MegaMenuGroup: import("react").ForwardRefExoticComponent<MegaMenuGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export interface MegaMenuGroupContextValue {
|
|
2
|
-
/**
|
|
3
|
-
* The rendered heading's id, used to label the item list via `aria-labelledby`.
|
|
4
|
-
* `undefined` when the group has no `MegaMenuGroupHeading`.
|
|
5
|
-
*/
|
|
6
|
-
headingId: string | undefined;
|
|
7
|
-
/** Register (or clear, with `undefined`) the heading's id. */
|
|
8
|
-
setHeadingId: (id: string | undefined) => void;
|
|
9
|
-
}
|
|
10
|
-
export declare const MegaMenuGroupContext: import("react").Context<MegaMenuGroupContextValue>;
|
|
11
|
-
/** Access the nearest `MegaMenuGroup` context. */
|
|
12
|
-
export declare function useMegaMenuGroup(): MegaMenuGroupContextValue;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type ComponentPropsWithoutRef, type ReactNode } from "react";
|
|
2
|
-
export interface MegaMenuGroupHeadingProps extends ComponentPropsWithoutRef<"h2"> {
|
|
3
|
-
/**
|
|
4
|
-
* The content of the mega menu group heading.
|
|
5
|
-
*/
|
|
6
|
-
children?: ReactNode;
|
|
7
|
-
/**
|
|
8
|
-
* The heading element to render.
|
|
9
|
-
* @default "h3"
|
|
10
|
-
*/
|
|
11
|
-
as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
12
|
-
}
|
|
13
|
-
export declare const MegaMenuGroupHeading: import("react").ForwardRefExoticComponent<MegaMenuGroupHeadingProps & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type ComponentPropsWithoutRef, type ReactNode } from "react";
|
|
2
|
-
export interface MegaMenuGroupsProps extends ComponentPropsWithoutRef<"div"> {
|
|
3
|
-
/**
|
|
4
|
-
* The `MegaMenuGroup` columns of the mega menu.
|
|
5
|
-
*/
|
|
6
|
-
children?: ReactNode;
|
|
7
|
-
}
|
|
8
|
-
export declare const MegaMenuGroups: import("react").ForwardRefExoticComponent<MegaMenuGroupsProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { type PolymorphicComponentPropWithRef } from "@salt-ds/core";
|
|
2
|
-
import { type ElementType, type FunctionComponent, type ReactNode } from "react";
|
|
3
|
-
export type MegaMenuListProps<T extends ElementType = "ul"> = PolymorphicComponentPropWithRef<T, {
|
|
4
|
-
/**
|
|
5
|
-
* The items of the group, typically `MegaMenuListItem` components. Each
|
|
6
|
-
* `MegaMenuListItem` renders its own `<li>`.
|
|
7
|
-
*/
|
|
8
|
-
children?: ReactNode;
|
|
9
|
-
}>;
|
|
10
|
-
type MegaMenuListComponent = <T extends ElementType = "ul">(props: MegaMenuListProps<T>) => ReturnType<FunctionComponent>;
|
|
11
|
-
/**
|
|
12
|
-
* The list of a group's `MegaMenuListItem`s. Renders a `<ul>` by default; pass
|
|
13
|
-
* `as="ol"` for an ordered list.
|
|
14
|
-
*/
|
|
15
|
-
export declare const MegaMenuList: MegaMenuListComponent;
|
|
16
|
-
export {};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { type RenderPropsType } from "@salt-ds/core";
|
|
2
|
-
import { type ComponentPropsWithoutRef, type MouseEventHandler, type ReactNode } from "react";
|
|
3
|
-
export interface MegaMenuListItemProps extends Omit<ComponentPropsWithoutRef<"li">, "onClick"> {
|
|
4
|
-
/**
|
|
5
|
-
* The content of the mega menu item.
|
|
6
|
-
*/
|
|
7
|
-
children?: ReactNode;
|
|
8
|
-
/**
|
|
9
|
-
* Whether the item is the current page. Sets `aria-current="page"`
|
|
10
|
-
*/
|
|
11
|
-
current?: boolean;
|
|
12
|
-
/**
|
|
13
|
-
* Href passed to the link action element.
|
|
14
|
-
*/
|
|
15
|
-
href?: string;
|
|
16
|
-
/**
|
|
17
|
-
* Called when the item's action is activated, before the menu closes.
|
|
18
|
-
*/
|
|
19
|
-
onClick?: MouseEventHandler<HTMLAnchorElement>;
|
|
20
|
-
/**
|
|
21
|
-
* Render prop to enable customization of the underlying action element (e.g. a router `Link`).
|
|
22
|
-
*/
|
|
23
|
-
render?: RenderPropsType["render"];
|
|
24
|
-
}
|
|
25
|
-
export declare const MegaMenuListItem: import("react").ForwardRefExoticComponent<MegaMenuListItemProps & import("react").RefAttributes<HTMLLIElement>>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type ComponentPropsWithoutRef, type ReactNode } from "react";
|
|
2
|
-
export interface MegaMenuPanelProps extends ComponentPropsWithoutRef<"div"> {
|
|
3
|
-
/**
|
|
4
|
-
* The content of the mega menu panel.
|
|
5
|
-
*/
|
|
6
|
-
children?: ReactNode;
|
|
7
|
-
}
|
|
8
|
-
export declare const MegaMenuPanel: import("react").ForwardRefExoticComponent<MegaMenuPanelProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from "react";
|
|
2
|
-
export interface MegaMenuTriggerProps {
|
|
3
|
-
/**
|
|
4
|
-
* The trigger element for the mega menu, typically a `NavigationItem` or `Button`.
|
|
5
|
-
* Wrap each mega menu in its own `<li>` — arrow-key navigation between triggers depends on it.
|
|
6
|
-
*/
|
|
7
|
-
children?: ReactNode;
|
|
8
|
-
}
|
|
9
|
-
export declare const MegaMenuTrigger: import("react").ForwardRefExoticComponent<MegaMenuTriggerProps & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export * from "./MegaMenu";
|
|
2
|
-
export * from "./MegaMenuActions";
|
|
3
|
-
export * from "./MegaMenuAside";
|
|
4
|
-
export * from "./MegaMenuContent";
|
|
5
|
-
export * from "./MegaMenuGroup";
|
|
6
|
-
export * from "./MegaMenuGroupHeading";
|
|
7
|
-
export * from "./MegaMenuGroups";
|
|
8
|
-
export * from "./MegaMenuList";
|
|
9
|
-
export * from "./MegaMenuListItem";
|
|
10
|
-
export * from "./MegaMenuPanel";
|
|
11
|
-
export * from "./MegaMenuTrigger";
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { ElementProps, FloatingRootContext } from "@floating-ui/react";
|
|
2
|
-
export declare const FOCUSABLE_SELECTOR = "a[href], button:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
3
|
-
export interface UseMegaMenuNavigationProps {
|
|
4
|
-
/**
|
|
5
|
-
* Whether the interaction is enabled.
|
|
6
|
-
* @default true
|
|
7
|
-
*/
|
|
8
|
-
enabled?: boolean;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Floating-ui interaction hook for mega menu keyboard navigation. Handles keys
|
|
12
|
-
* on the panel only; the trigger keys are owned by `MegaMenuTrigger`.
|
|
13
|
-
*/
|
|
14
|
-
export declare function useMegaMenuNavigation(context: FloatingRootContext, props?: UseMegaMenuNavigationProps): ElementProps;
|
|
15
|
-
/** Focus the first navigable item inside a mega menu panel, retrying until rendered. */
|
|
16
|
-
export declare function focusFirstItem(panel: HTMLElement, attempt?: number): void;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Resolves the panel's page-margin token to pixels for floating-ui padding, to
|
|
3
|
-
* handle token (`--saltMegaMenuPanel-pageMargin`) override by consumers
|
|
4
|
-
* (edge to edge example).
|
|
5
|
-
*/
|
|
6
|
-
export declare function usePageMargin(referenceEl: HTMLElement | null | undefined): number;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type ComponentPropsWithoutRef } from "react";
|
|
2
|
-
export type ToolbarContentNextPosition = "start" | "center" | "end";
|
|
3
|
-
export interface ToolbarContentNextProps extends ComponentPropsWithoutRef<"div"> {
|
|
4
|
-
/**
|
|
5
|
-
* Controls where the content is placed across the full toolbar.
|
|
6
|
-
* If any content uses `"center"`, `ToolbarNext` reserves symmetric side space
|
|
7
|
-
* so the center band stays on the toolbar midpoint.
|
|
8
|
-
*/
|
|
9
|
-
position: ToolbarContentNextPosition;
|
|
10
|
-
}
|
|
11
|
-
export declare const ToolbarContentNext: import("react").ForwardRefExoticComponent<ToolbarContentNextProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type ComponentPropsWithoutRef } from "react";
|
|
2
|
-
export interface ToolbarNextProps extends ComponentPropsWithoutRef<"div"> {
|
|
3
|
-
/**
|
|
4
|
-
* Visual treatment of the toolbar. Defaults to `"bordered"`.
|
|
5
|
-
*/
|
|
6
|
-
appearance?: "bordered" | "transparent";
|
|
7
|
-
/**
|
|
8
|
-
* Styling variant. Defaults to `"primary"`.
|
|
9
|
-
*/
|
|
10
|
-
variant?: "primary" | "secondary" | "tertiary";
|
|
11
|
-
}
|
|
12
|
-
export declare const ToolbarNext: import("react").ForwardRefExoticComponent<ToolbarNextProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { type RefObject } from "react";
|
|
2
|
-
import { type ToolbarNextFocusMemory } from "./toolbarNextKeyboardUtils";
|
|
3
|
-
import type { ToolbarNextContentModel, ToolbarNextOverflowItem } from "./toolbarNextUtils";
|
|
4
|
-
import type { ToolbarNextOverflowGroup } from "./useToolbarNextOverflow";
|
|
5
|
-
export type ToolbarNextItemHostKind = "main" | "measurement" | "overflow";
|
|
6
|
-
interface ToolbarNextOverflowOwnersProps {
|
|
7
|
-
hostNodes: Record<string, HTMLDivElement | null>;
|
|
8
|
-
items: ToolbarNextOverflowItem[];
|
|
9
|
-
}
|
|
10
|
-
export declare function ToolbarNextOverflowOwners({ hostNodes, items, }: ToolbarNextOverflowOwnersProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export declare function ToolbarNextOverflowTriggerContent({ label, named, }: {
|
|
12
|
-
label: string;
|
|
13
|
-
named: boolean;
|
|
14
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
interface ToolbarNextOverflowMenuProps {
|
|
16
|
-
focusMemoryRef?: RefObject<ToolbarNextFocusMemory | null>;
|
|
17
|
-
getItemHostRef: (id: string, kind: ToolbarNextItemHostKind) => (node: HTMLDivElement | null) => void;
|
|
18
|
-
group: ToolbarNextOverflowGroup;
|
|
19
|
-
onItemFocus?: (itemId: string, controlIndex: number) => void;
|
|
20
|
-
}
|
|
21
|
-
export declare function ToolbarNextOverflowMenu({ focusMemoryRef, getItemHostRef, group, onItemFocus, }: ToolbarNextOverflowMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
export interface ToolbarNextOverflowContentProps {
|
|
23
|
-
focusMemoryRef?: RefObject<ToolbarNextFocusMemory | null>;
|
|
24
|
-
getItemHostRef: (id: string, kind: ToolbarNextItemHostKind) => (node: HTMLDivElement | null) => void;
|
|
25
|
-
getItemRef: (id: string) => (node: HTMLDivElement | null) => void;
|
|
26
|
-
getNamedTriggerRef: (id: string) => (node: HTMLDivElement | null) => void;
|
|
27
|
-
getContentRef: (contentKey: string) => (node: HTMLDivElement | null) => void;
|
|
28
|
-
onItemFocus?: (itemId: string, controlIndex: number) => void;
|
|
29
|
-
overflowGroups: ToolbarNextOverflowGroup[];
|
|
30
|
-
overflowedIds: Set<string>;
|
|
31
|
-
content: ToolbarNextContentModel;
|
|
32
|
-
}
|
|
33
|
-
export declare function ToolbarNextOverflowContent({ content, focusMemoryRef, getItemHostRef, getItemRef, getNamedTriggerRef, getContentRef, onItemFocus, overflowGroups, overflowedIds, }: ToolbarNextOverflowContentProps): import("react/jsx-runtime").JSX.Element;
|
|
34
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from "react";
|
|
2
|
-
interface ToolbarNextOverflowFloatingBoundaryContextValue {
|
|
3
|
-
isTargetInsideBoundary: (boundaryKey: string, target: EventTarget | null) => boolean;
|
|
4
|
-
registerFloatingRoot: (boundaryKey: string, root: HTMLElement) => () => void;
|
|
5
|
-
}
|
|
6
|
-
export declare function ToolbarNextOverflowFloatingBoundaryProvider({ children, }: {
|
|
7
|
-
children: ReactNode;
|
|
8
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export declare function useToolbarNextOverflowFloatingBoundary(): ToolbarNextOverflowFloatingBoundaryContextValue | null;
|
|
10
|
-
export declare function isTargetInsideOverflowBoundary(panelContent: HTMLElement | null, floatingBoundary: ToolbarNextOverflowFloatingBoundaryContextValue | null, boundaryKey: string, target: EventTarget | null): boolean;
|
|
11
|
-
export declare function getToolbarNextOverflowBoundaryKey(host: HTMLElement | null): string | null;
|
|
12
|
-
export declare function ToolbarNextOverflowFloatingComponentProvider({ boundaryKey, children, }: {
|
|
13
|
-
boundaryKey: string | null;
|
|
14
|
-
children: ReactNode;
|
|
15
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export {};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { type ComponentPropsWithoutRef } from "react";
|
|
2
|
-
export type TooltrayNextOverflowMode = "none" | "independent" | "grouped";
|
|
3
|
-
export interface TooltrayNextProps extends Omit<ComponentPropsWithoutRef<"div">, "align"> {
|
|
4
|
-
/**
|
|
5
|
-
* Alignment of the tooltray.
|
|
6
|
-
* - When a `TooltrayNext` is used directly inside `ToolbarNext`, this acts as
|
|
7
|
-
* shorthand for which toolbar band the tray belongs to.
|
|
8
|
-
* - When a `TooltrayNext` is used inside `ToolbarContentNext`, this alignment is
|
|
9
|
-
* local to that content area.
|
|
10
|
-
*
|
|
11
|
-
* Defaults to `"start"`.
|
|
12
|
-
*/
|
|
13
|
-
align?: "start" | "end" | "center";
|
|
14
|
-
/**
|
|
15
|
-
* Controls how this tray participates in `ToolbarNext` overflow.
|
|
16
|
-
*
|
|
17
|
-
* Defaults to `"independent"`.
|
|
18
|
-
*/
|
|
19
|
-
overflowMode?: TooltrayNextOverflowMode;
|
|
20
|
-
/**
|
|
21
|
-
* Higher numbers overflow before lower numbers.
|
|
22
|
-
*
|
|
23
|
-
* Defaults to `0`.
|
|
24
|
-
*/
|
|
25
|
-
overflowPriority?: number;
|
|
26
|
-
/**
|
|
27
|
-
* Collapse this tray into the shared overflow or a named local overflow.
|
|
28
|
-
*
|
|
29
|
-
* Defaults to `"shared"`.
|
|
30
|
-
*/
|
|
31
|
-
overflowGroup?: "shared" | string;
|
|
32
|
-
/**
|
|
33
|
-
* Accessible label for the named overflow trigger.
|
|
34
|
-
*/
|
|
35
|
-
overflowLabel?: string;
|
|
36
|
-
}
|
|
37
|
-
export declare const TooltrayNext: import("react").ForwardRefExoticComponent<TooltrayNextProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import type { ToolbarNextOverflowItem } from "./toolbarNextUtils";
|
|
2
|
-
export declare const TOOLBAR_NEXT_SCOPE_ROOT_ATTR = "data-salt-toolbar-next-scope-root";
|
|
3
|
-
export declare const TOOLBAR_NEXT_ITEM_ATTR = "data-salt-toolbar-next-item-id";
|
|
4
|
-
export declare const TOOLBAR_NEXT_GROUP_KEY_ATTR = "data-salt-toolbar-next-overflow-group-key";
|
|
5
|
-
export declare const TOOLBAR_NEXT_OVERFLOW_TRIGGER_ATTR = "data-salt-toolbar-next-overflow-trigger";
|
|
6
|
-
export declare const toolbarNextFocusableSelector: string;
|
|
7
|
-
export type ToolbarNextFocusMemory = {
|
|
8
|
-
controlIndex: number;
|
|
9
|
-
itemId: string;
|
|
10
|
-
scopeIndex: number;
|
|
11
|
-
type: "item";
|
|
12
|
-
} | {
|
|
13
|
-
groupKey: string;
|
|
14
|
-
scopeIndex: number;
|
|
15
|
-
type: "overflow-trigger";
|
|
16
|
-
} | {
|
|
17
|
-
scopeIndex: number;
|
|
18
|
-
type: "scope";
|
|
19
|
-
};
|
|
20
|
-
export interface ToolbarNextFocusableOptions {
|
|
21
|
-
includeTabIndexMinusOne?: boolean;
|
|
22
|
-
}
|
|
23
|
-
export declare function getClosestToolbarNextScopeRoot(target: EventTarget | null): HTMLElement | null;
|
|
24
|
-
export declare function getToolbarNextItemId(target: Element | null): string | null;
|
|
25
|
-
export declare function isToolbarNextFocusFromPointerTarget(focusTarget: HTMLElement, pointerTarget: EventTarget | null): boolean;
|
|
26
|
-
export declare function getToolbarNextScopeFocusableElements(scopeRoot: HTMLElement, options?: ToolbarNextFocusableOptions): HTMLElement[];
|
|
27
|
-
export declare function getToolbarNextFocusMemory(scopeRoot: HTMLElement, target: HTMLElement, options?: ToolbarNextFocusableOptions): ToolbarNextFocusMemory | null;
|
|
28
|
-
export declare function resolveToolbarNextFocusTarget(scopeRoot: HTMLElement, focusMemory: ToolbarNextFocusMemory | null, { includeTabIndexMinusOne, items, overflowedIds, }?: {
|
|
29
|
-
items?: ToolbarNextOverflowItem[];
|
|
30
|
-
includeTabIndexMinusOne?: boolean;
|
|
31
|
-
overflowedIds?: Set<string>;
|
|
32
|
-
}): HTMLElement | null;
|
|
33
|
-
export declare function getToolbarNextDirectionalMoveTarget(scopeRoot: HTMLElement, target: HTMLElement, key: string, options?: ToolbarNextFocusableOptions): HTMLElement | null;
|
|
34
|
-
export declare function getToolbarNextTabMoveTarget(scopeRoot: HTMLElement, shiftKey: boolean): HTMLElement | null;
|
|
35
|
-
export declare function shouldToolbarNextPreserveNativeTab(target: HTMLElement): boolean;
|
|
36
|
-
export declare function isToolbarNextFocusable(target: HTMLElement, { includeTabIndexMinusOne }?: ToolbarNextFocusableOptions): boolean;
|
|
37
|
-
export declare function focusToolbarNextElement(target: HTMLElement | null | undefined): void;
|
|
38
|
-
export declare function scheduleToolbarNextFocus(target: HTMLElement | null | undefined, targetWindow?: (Window & typeof globalThis) | null | undefined): () => void;
|
|
39
|
-
export declare function getDocumentFocusableElements(ownerDocument: Document): HTMLElement[];
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { type ReactElement, type ReactNode, type Ref } from "react";
|
|
2
|
-
import { type ToolbarContentNextPosition, type ToolbarContentNextProps } from "./ToolbarContentNext";
|
|
3
|
-
import { type TooltrayNextOverflowMode, type TooltrayNextProps } from "./TooltrayNext";
|
|
4
|
-
export type ToolbarNextMode = "explicit" | "flat" | "invalid";
|
|
5
|
-
type ToolbarNextChild = Exclude<ReactNode, boolean | null | undefined>;
|
|
6
|
-
export interface ToolbarNextOverflowItem {
|
|
7
|
-
align: NonNullable<TooltrayNextProps["align"]>;
|
|
8
|
-
element: ReactElement<TooltrayNextProps>;
|
|
9
|
-
id: string;
|
|
10
|
-
leadingDecorations: ReactElement[];
|
|
11
|
-
order: number;
|
|
12
|
-
overflowGroup: string;
|
|
13
|
-
overflowGroupKey: string;
|
|
14
|
-
overflowLabel?: string;
|
|
15
|
-
overflowMode: TooltrayNextOverflowMode;
|
|
16
|
-
overflowPriority: number;
|
|
17
|
-
contentKey: string;
|
|
18
|
-
trailingDecorations: ReactElement[];
|
|
19
|
-
}
|
|
20
|
-
export interface ToolbarNextOverflowRenderSlot {
|
|
21
|
-
item: ToolbarNextOverflowItem;
|
|
22
|
-
overflowed: boolean;
|
|
23
|
-
showLeadingDecorations: boolean;
|
|
24
|
-
showTrailingDecorations: boolean;
|
|
25
|
-
triggerGroupKey?: string;
|
|
26
|
-
}
|
|
27
|
-
export interface ToolbarNextContentModel {
|
|
28
|
-
implicit: boolean;
|
|
29
|
-
items: ToolbarNextOverflowItem[];
|
|
30
|
-
key: string;
|
|
31
|
-
position: ToolbarContentNextPosition;
|
|
32
|
-
props: Omit<ToolbarContentNextProps, "children" | "position">;
|
|
33
|
-
ref: Ref<HTMLDivElement> | null;
|
|
34
|
-
}
|
|
35
|
-
export interface ToolbarNextModel {
|
|
36
|
-
mode: ToolbarNextMode;
|
|
37
|
-
content: ToolbarNextContentModel[];
|
|
38
|
-
}
|
|
39
|
-
export declare function buildContentOverflowRenderSlots(items: ToolbarNextOverflowItem[], overflowedIds: Set<string>, activeNamedGroupKeys: Set<string>): ToolbarNextOverflowRenderSlot[];
|
|
40
|
-
export declare function flattenToolbarChildren(children: ReactNode): ToolbarNextChild[];
|
|
41
|
-
export declare function normalizeToolbarChildren(children: ReactNode): ToolbarNextModel;
|
|
42
|
-
export {};
|