@wallarm-org/design-system 0.62.0 → 0.63.0
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/components/Breadcrumbs/BreadcrumbsItem.js +1 -0
- package/dist/components/BulkBar/BulkBarSummary.d.ts +4 -14
- package/dist/components/BulkBar/BulkBarSummary.js +15 -46
- package/dist/components/BulkBar/BulkBarSummaryClear.d.ts +7 -0
- package/dist/components/BulkBar/BulkBarSummaryClear.js +25 -0
- package/dist/components/BulkBar/BulkBarSummaryCount.d.ts +13 -0
- package/dist/components/BulkBar/BulkBarSummaryCount.js +18 -0
- package/dist/components/BulkBar/BulkBarSummarySelectAll.d.ts +7 -0
- package/dist/components/BulkBar/BulkBarSummarySelectAll.js +25 -0
- package/dist/components/BulkBar/BulkBarSummarySeparator.d.ts +8 -0
- package/dist/components/BulkBar/BulkBarSummarySeparator.js +12 -0
- package/dist/components/BulkBar/index.d.ts +5 -0
- package/dist/components/BulkBar/index.js +6 -0
- package/dist/components/Calendar/CalendarPresetItem.d.ts +9 -3
- package/dist/components/Calendar/CalendarPresetItem.js +8 -5
- package/dist/components/Calendar/CalendarTrigger.d.ts +12 -3
- package/dist/components/Calendar/CalendarTrigger.js +3 -3
- package/dist/components/Calendar/index.d.ts +1 -1
- package/dist/components/Card/Card.js +2 -0
- package/dist/components/CodeSnippet/CodeSnippetCode.js +9 -2
- package/dist/components/CodeSnippet/CodeSnippetCopyButton.js +1 -1
- package/dist/components/CodeSnippet/CodeSnippetFullscreenButton.js +0 -1
- package/dist/components/CodeSnippet/CodeSnippetRoot.d.ts +8 -1
- package/dist/components/CodeSnippet/CodeSnippetRoot.js +5 -3
- package/dist/components/CodeSnippet/CodeSnippetShowMoreButton.d.ts +12 -0
- package/dist/components/CodeSnippet/{internal/ShowMoreButton.js → CodeSnippetShowMoreButton.js} +15 -9
- package/dist/components/CodeSnippet/CodeSnippetTab.d.ts +3 -6
- package/dist/components/CodeSnippet/CodeSnippetTab.js +5 -7
- package/dist/components/CodeSnippet/CodeSnippetWrapButton.js +0 -1
- package/dist/components/CodeSnippet/InlineCodeSnippet.d.ts +4 -2
- package/dist/components/CodeSnippet/InlineCodeSnippet.js +14 -7
- package/dist/components/CodeSnippet/index.d.ts +2 -1
- package/dist/components/CodeSnippet/index.js +2 -1
- package/dist/components/CodeSnippet/internal/FoldToggle.js +9 -2
- package/dist/components/CodeSnippet/lib/foldUtils.d.ts +6 -0
- package/dist/components/DateRangeInput/DateRangeEndValue.d.ts +9 -2
- package/dist/components/DateRangeInput/DateRangeEndValue.js +3 -2
- package/dist/components/DateRangeInput/DateRangeSegmentGroup.d.ts +12 -1
- package/dist/components/DateRangeInput/DateRangeSegmentGroup.js +24 -6
- package/dist/components/DateRangeInput/DateRangeStartValue.d.ts +11 -4
- package/dist/components/DateRangeInput/DateRangeStartValue.js +3 -2
- package/dist/components/DateRangeInput/index.d.ts +2 -2
- package/dist/components/Drawer/Drawer.d.ts +5 -0
- package/dist/components/Drawer/Drawer.js +3 -1
- package/dist/components/Drawer/DrawerClose.d.ts +3 -2
- package/dist/components/Drawer/DrawerClose.js +6 -3
- package/dist/components/Drawer/DrawerHeader.d.ts +1 -1
- package/dist/components/Drawer/DrawerHeader.js +4 -1
- package/dist/components/Drawer/DrawerResizeHandle.d.ts +7 -2
- package/dist/components/Drawer/DrawerResizeHandle.js +31 -6
- package/dist/components/Drawer/DrawerRoot.d.ts +3 -0
- package/dist/components/Drawer/DrawerRoot.js +3 -1
- package/dist/components/Drawer/DrawerTrigger.d.ts +3 -2
- package/dist/components/Drawer/DrawerTrigger.js +3 -2
- package/dist/components/Drawer/index.d.ts +1 -0
- package/dist/components/DropdownMenu/DropdownMenuCheckboxItem.d.ts +2 -1
- package/dist/components/DropdownMenu/DropdownMenuCheckboxItem.js +2 -2
- package/dist/components/DropdownMenu/DropdownMenuContextTrigger.d.ts +3 -5
- package/dist/components/DropdownMenu/DropdownMenuContextTrigger.js +2 -2
- package/dist/components/DropdownMenu/DropdownMenuItem.d.ts +2 -1
- package/dist/components/DropdownMenu/DropdownMenuItem.js +2 -2
- package/dist/components/DropdownMenu/DropdownMenuRadioGroup.d.ts +2 -1
- package/dist/components/DropdownMenu/DropdownMenuRadioGroup.js +4 -4
- package/dist/components/DropdownMenu/DropdownMenuRadioItem.d.ts +2 -1
- package/dist/components/DropdownMenu/DropdownMenuRadioItem.js +2 -2
- package/dist/components/DropdownMenu/DropdownMenuTrigger.d.ts +3 -5
- package/dist/components/DropdownMenu/DropdownMenuTrigger.js +2 -2
- package/dist/components/DropdownMenu/DropdownMenuTriggerItem.d.ts +4 -4
- package/dist/components/DropdownMenu/DropdownMenuTriggerItem.js +4 -3
- package/dist/components/DropdownMenu/index.d.ts +4 -4
- package/dist/components/NavRail/NavRailItem.d.ts +2 -1
- package/dist/components/NavRail/NavRailItem.js +6 -4
- package/dist/components/Popover/PopoverContent.d.ts +3 -3
- package/dist/components/Popover/PopoverContent.js +4 -8
- package/dist/components/Popover/PopoverTrigger.d.ts +3 -5
- package/dist/components/Popover/PopoverTrigger.js +3 -7
- package/dist/components/Popover/index.d.ts +2 -2
- package/dist/components/SegmentedControl/SegmentedControlItem.d.ts +6 -4
- package/dist/components/SegmentedControl/SegmentedControlItem.js +5 -2
- package/dist/components/SegmentedTabs/SegmentedTabsTrigger.d.ts +5 -3
- package/dist/components/SegmentedTabs/SegmentedTabsTrigger.js +5 -3
- package/dist/components/SegmentedTabs/SegmentedTabsTriggerButton.js +2 -2
- package/dist/components/Select/SelectButton.js +2 -2
- package/dist/components/Select/SelectClearTrigger.d.ts +2 -1
- package/dist/components/Select/SelectClearTrigger.js +2 -2
- package/dist/components/Select/SelectInput/SelectInput.d.ts +4 -1
- package/dist/components/Select/SelectInput/SelectInput.js +3 -2
- package/dist/components/Select/SelectOption.d.ts +2 -1
- package/dist/components/Select/SelectOption.js +2 -2
- package/dist/components/Select/SelectSearchInput.d.ts +3 -2
- package/dist/components/Select/SelectSearchInput.js +3 -2
- package/dist/components/Select/index.d.ts +1 -1
- package/dist/components/Selection/SelectionBulkBar/SelectionBulkBar.d.ts +1 -1
- package/dist/components/Selection/SelectionBulkBar/SelectionBulkBar.js +44 -5
- package/dist/components/Selection/index.d.ts +2 -0
- package/dist/components/Selection/index.js +2 -1
- package/dist/components/Table/Table.js +7 -0
- package/dist/components/Table/TableActionBar/TableActionBar.d.ts +7 -1
- package/dist/components/Table/TableActionBar/TableActionBar.js +6 -2
- package/dist/components/Table/TableActionBar/TableActionBarSelection.d.ts +16 -2
- package/dist/components/Table/TableActionBar/TableActionBarSelection.js +52 -10
- package/dist/components/Table/TableActionBar/index.d.ts +1 -0
- package/dist/components/Table/TableActionBar/index.js +2 -1
- package/dist/components/Table/TableColumnMenu/TableColumnMenu.d.ts +37 -0
- package/dist/components/Table/TableColumnMenu/TableColumnMenu.js +139 -0
- package/dist/components/Table/TableColumnMenu/TableColumnMenuHideItem.d.ts +8 -0
- package/dist/components/Table/TableColumnMenu/TableColumnMenuHideItem.js +27 -0
- package/dist/components/Table/TableColumnMenu/TableColumnMenuMoveLeftItem.d.ts +8 -0
- package/dist/components/Table/TableColumnMenu/TableColumnMenuMoveLeftItem.js +38 -0
- package/dist/components/Table/TableColumnMenu/TableColumnMenuMoveRightItem.d.ts +8 -0
- package/dist/components/Table/TableColumnMenu/TableColumnMenuMoveRightItem.js +39 -0
- package/dist/components/Table/TableColumnMenu/TableColumnMenuPinItem.d.ts +10 -0
- package/dist/components/Table/TableColumnMenu/TableColumnMenuPinItem.js +31 -0
- package/dist/components/Table/TableColumnMenu/TableColumnMenuSortItem.d.ts +17 -0
- package/dist/components/Table/TableColumnMenu/TableColumnMenuSortItem.js +33 -0
- package/dist/components/Table/TableColumnMenu/index.d.ts +6 -0
- package/dist/components/Table/TableColumnMenu/index.js +7 -0
- package/dist/components/Table/TableHeadCell.js +17 -18
- package/dist/components/Table/TableInner/TableInner.d.ts +2 -0
- package/dist/components/Table/TableInner/TableInner.js +21 -12
- package/dist/components/Table/TableInner/TableInnerContainer.d.ts +1 -0
- package/dist/components/Table/TableInner/TableInnerContainer.js +5 -3
- package/dist/components/Table/TableInner/TableInnerWindow.d.ts +1 -0
- package/dist/components/Table/TableInner/TableInnerWindow.js +5 -3
- package/dist/components/Table/TableScrollHandler.d.ts +27 -4
- package/dist/components/Table/TableScrollHandler.js +99 -68
- package/dist/components/Table/TableScrollHandlerContext.d.ts +19 -0
- package/dist/components/Table/TableScrollHandlerContext.js +24 -0
- package/dist/components/Table/TableScrollHandlerSlot.d.ts +8 -0
- package/dist/components/Table/TableScrollHandlerSlot.js +18 -0
- package/dist/components/Table/TableSettingsMenu/TableSettingsMenu.d.ts +18 -2
- package/dist/components/Table/TableSettingsMenu/TableSettingsMenu.js +105 -95
- package/dist/components/Table/TableSettingsMenu/TableSettingsMenuContentContext.d.ts +7 -0
- package/dist/components/Table/TableSettingsMenu/TableSettingsMenuContentContext.js +9 -0
- package/dist/components/Table/TableSettingsMenu/TableSettingsMenuContext.d.ts +15 -0
- package/dist/components/Table/TableSettingsMenu/TableSettingsMenuContext.js +21 -0
- package/dist/components/Table/TableSettingsMenu/TableSettingsMenuItem.d.ts +8 -6
- package/dist/components/Table/TableSettingsMenu/TableSettingsMenuItem.js +17 -11
- package/dist/components/Table/TableSettingsMenu/TableSettingsMenuReset.d.ts +5 -0
- package/dist/components/Table/TableSettingsMenu/TableSettingsMenuReset.js +34 -0
- package/dist/components/Table/TableSettingsMenu/TableSettingsMenuSearch.d.ts +5 -0
- package/dist/components/Table/TableSettingsMenu/TableSettingsMenuSearch.js +17 -0
- package/dist/components/Table/TableSettingsMenu/TableSettingsMenuSlot.d.ts +11 -0
- package/dist/components/Table/TableSettingsMenu/TableSettingsMenuSlot.js +16 -0
- package/dist/components/Table/TableSettingsMenu/index.d.ts +6 -1
- package/dist/components/Table/TableSettingsMenu/index.js +6 -1
- package/dist/components/Table/TableSortTrigger.d.ts +39 -0
- package/dist/components/Table/TableSortTrigger.js +86 -0
- package/dist/components/Table/index.d.ts +6 -2
- package/dist/components/Table/index.js +7 -3
- package/dist/components/Table/lib/collectDirectChildren.d.ts +8 -0
- package/dist/components/Table/lib/collectDirectChildren.js +13 -0
- package/dist/components/Table/lib/containsDirectChild.d.ts +12 -0
- package/dist/components/Table/lib/containsDirectChild.js +12 -0
- package/dist/components/Table/lib/index.d.ts +2 -0
- package/dist/components/Table/lib/index.js +3 -1
- package/dist/components/Tabs/TabsTrigger.d.ts +5 -4
- package/dist/components/Tabs/TabsTrigger.js +3 -2
- package/dist/components/Tag/Tag.js +2 -1
- package/dist/components/Tag/TagClose.d.ts +5 -3
- package/dist/components/Tag/TagClose.js +13 -9
- package/dist/components/Tag/index.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.js +4 -2
- package/dist/components/Tooltip/TooltipContent.d.ts +4 -4
- package/dist/components/Tooltip/TooltipContent.js +3 -3
- package/dist/components/Tooltip/TooltipTrigger.d.ts +4 -4
- package/dist/components/Tooltip/TooltipTrigger.js +2 -2
- package/dist/components/Tooltip/index.d.ts +2 -2
- package/dist/components/Tour/Tour.d.ts +7 -1
- package/dist/components/Tour/Tour.js +8 -2
- package/dist/components/Tour/TourClose.d.ts +6 -2
- package/dist/components/Tour/TourClose.js +6 -6
- package/dist/components/Tour/TourFooter.js +8 -3
- package/dist/components/Tour/TourInner.d.ts +7 -1
- package/dist/components/Tour/TourInner.js +2 -2
- package/dist/components/Tour/index.d.ts +1 -0
- package/dist/components/Tour/index.js +2 -1
- package/dist/components/Tour/types.d.ts +12 -1
- package/dist/hooks/useCopyTooltip.d.ts +1 -3
- package/dist/hooks/useCopyTooltip.js +1 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/metadata/components.json +30183 -16896
- package/dist/utils/testId.d.ts +4 -1
- package/dist/utils/testId.js +2 -1
- package/package.json +1 -1
- package/dist/components/CodeSnippet/internal/ShowMoreButton.d.ts +0 -2
- package/dist/components/Selection/SelectionBulkBar/SelectionBulkBarSummary.d.ts +0 -2
- package/dist/components/Selection/SelectionBulkBar/SelectionBulkBarSummary.js +0 -18
- package/dist/components/Table/TableHeadCellMenu.d.ts +0 -9
- package/dist/components/Table/TableHeadCellMenu.js +0 -174
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
export { BulkBarSummary, BulkBarSummaryClear, type BulkBarSummaryClearProps, BulkBarSummaryCount, type BulkBarSummaryCountProps, type BulkBarSummaryProps, BulkBarSummarySelectAll, type BulkBarSummarySelectAllProps, BulkBarSummarySeparator, } from '../BulkBar';
|
|
1
2
|
export { createTableColumnHelper } from './lib';
|
|
2
3
|
export type { TableColumnHelper } from './lib/createTableColumnHelper';
|
|
3
4
|
export { Table } from './Table';
|
|
4
|
-
export { TableActionBar } from './TableActionBar';
|
|
5
|
+
export { TableActionBar, TableActionBarSelection, type TableActionBarSelectionProps, } from './TableActionBar';
|
|
6
|
+
export { TableColumnMenu, TableColumnMenuHideItem, type TableColumnMenuHideItemProps, TableColumnMenuMoveLeftItem, type TableColumnMenuMoveLeftItemProps, TableColumnMenuMoveRightItem, type TableColumnMenuMoveRightItemProps, TableColumnMenuPinItem, type TableColumnMenuPinItemProps, type TableColumnMenuProps, TableColumnMenuSortItem, type TableColumnMenuSortItemProps, } from './TableColumnMenu';
|
|
5
7
|
export { TableEmptyState } from './TableEmptyState';
|
|
6
|
-
export {
|
|
8
|
+
export { TableScrollHandler, TableScrollHandlerLeft, type TableScrollHandlerLeftProps, type TableScrollHandlerProps, TableScrollHandlerRight, type TableScrollHandlerRightProps, } from './TableScrollHandler';
|
|
9
|
+
export { TableSettingsMenu, TableSettingsMenuItem, type TableSettingsMenuItemProps, type TableSettingsMenuProps, TableSettingsMenuReset, type TableSettingsMenuResetProps, TableSettingsMenuSearch, type TableSettingsMenuSearchProps, } from './TableSettingsMenu';
|
|
10
|
+
export { TableSortTrigger, type TableSortTriggerProps } from './TableSortTrigger';
|
|
7
11
|
export type { TableAccessorColumnDef, TableCellContext, TableColumnBase, TableColumnDef, TableColumnMeta, TableColumnPinningState, TableColumnSizingState, TableDisplayColumnDef, TableExpandedState, TableGroupingState, TableHandle, TableOnChangeFn, TableProps, TableRow, TableRowSelectionState, TableScrollToRowOptions, TableSortingState, TableUpdater, TableVirtualized, TableVisibilityState, } from './types';
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
import { BulkBarSummary, BulkBarSummaryClear, BulkBarSummaryCount, BulkBarSummarySelectAll, BulkBarSummarySeparator } from "../BulkBar/index.js";
|
|
1
2
|
import { createTableColumnHelper } from "./lib/index.js";
|
|
2
3
|
import { Table } from "./Table.js";
|
|
3
|
-
import { TableActionBar } from "./TableActionBar/index.js";
|
|
4
|
+
import { TableActionBar, TableActionBarSelection } from "./TableActionBar/index.js";
|
|
5
|
+
import { TableColumnMenu, TableColumnMenuHideItem, TableColumnMenuMoveLeftItem, TableColumnMenuMoveRightItem, TableColumnMenuPinItem, TableColumnMenuSortItem } from "./TableColumnMenu/index.js";
|
|
4
6
|
import { TableEmptyState } from "./TableEmptyState.js";
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
+
import { TableScrollHandler, TableScrollHandlerLeft, TableScrollHandlerRight } from "./TableScrollHandler.js";
|
|
8
|
+
import { TableSettingsMenu, TableSettingsMenuItem, TableSettingsMenuReset, TableSettingsMenuSearch } from "./TableSettingsMenu/index.js";
|
|
9
|
+
import { TableSortTrigger } from "./TableSortTrigger.js";
|
|
10
|
+
export { BulkBarSummary, BulkBarSummaryClear, BulkBarSummaryCount, BulkBarSummarySelectAll, BulkBarSummarySeparator, Table, TableActionBar, TableActionBarSelection, TableColumnMenu, TableColumnMenuHideItem, TableColumnMenuMoveLeftItem, TableColumnMenuMoveRightItem, TableColumnMenuPinItem, TableColumnMenuSortItem, TableEmptyState, TableScrollHandler, TableScrollHandlerLeft, TableScrollHandlerRight, TableSettingsMenu, TableSettingsMenuItem, TableSettingsMenuReset, TableSettingsMenuSearch, TableSortTrigger, createTableColumnHelper };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type ComponentType, type ReactElement, type ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Collects every element of a given component type appearing as a direct child
|
|
4
|
+
* of `node` — transparently descending into `<>...</>` Fragments (but not
|
|
5
|
+
* arbitrary wrapper elements). Used to gather consumer-supplied override
|
|
6
|
+
* sub-components from a compound component's children.
|
|
7
|
+
*/
|
|
8
|
+
export declare const collectDirectChildren: <P>(node: ReactNode, target: ComponentType<P>) => ReactElement<P>[];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Children, Fragment, isValidElement } from "react";
|
|
2
|
+
const collectDirectChildren = (node, target)=>{
|
|
3
|
+
const result = [];
|
|
4
|
+
for (const child of Children.toArray(node))if (isValidElement(child)) {
|
|
5
|
+
if (child.type === target) result.push(child);
|
|
6
|
+
else if (child.type === Fragment) {
|
|
7
|
+
const fragmentChildren = child.props.children;
|
|
8
|
+
result.push(...collectDirectChildren(fragmentChildren, target));
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
return result;
|
|
12
|
+
};
|
|
13
|
+
export { collectDirectChildren };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type ComponentType, type ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Returns true when `node` has at least one direct child of the given component
|
|
4
|
+
* type — transparently descending into `<>...</>` Fragments but not arbitrary
|
|
5
|
+
* wrapper elements. Matches the "direct child" opt-out contract used by
|
|
6
|
+
* Tour / Dialog / BulkBar and the Table sort / column-menu / settings seams.
|
|
7
|
+
*
|
|
8
|
+
* Short-circuits on the first match and allocates nothing, since callers like
|
|
9
|
+
* `TableHeadCell` run it per column on every header re-render (e.g. horizontal
|
|
10
|
+
* scroll) — see `collectDirectChildren` when the actual elements are needed.
|
|
11
|
+
*/
|
|
12
|
+
export declare const containsDirectChild: (node: ReactNode, target: ComponentType<unknown>) => boolean;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Children, Fragment, isValidElement } from "react";
|
|
2
|
+
const containsDirectChild = (node, target)=>{
|
|
3
|
+
for (const child of Children.toArray(node))if (isValidElement(child)) {
|
|
4
|
+
if (child.type === target) return true;
|
|
5
|
+
if (child.type === Fragment) {
|
|
6
|
+
const fragmentChildren = child.props.children;
|
|
7
|
+
if (containsDirectChild(fragmentChildren, target)) return true;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
return false;
|
|
11
|
+
};
|
|
12
|
+
export { containsDirectChild };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
export { collectDirectChildren } from './collectDirectChildren';
|
|
1
2
|
export { getAlignClass, getExpandBorderClass, SCROLL_EDGE_COOLDOWN_MS, SORT_LABELS, TABLE_END_REACHED_THRESHOLD, TABLE_EXPAND_COLUMN_ID, TABLE_EXPAND_COLUMN_WIDTH, TABLE_MIN_COLUMN_WIDTH, TABLE_PREPEND_SKELETON_ROWS, TABLE_SELECT_COLUMN_ID, TABLE_SELECT_COLUMN_WIDTH, TABLE_SKELETON_ROWS, TABLE_START_REACHED_THRESHOLD, TABLE_VIRTUALIZATION_OVERSCAN, } from './constants';
|
|
3
|
+
export { containsDirectChild } from './containsDirectChild';
|
|
2
4
|
export { createExpandColumn } from './createExpandColumn';
|
|
3
5
|
export { createSelectionColumn } from './createSelectionColumn';
|
|
4
6
|
export { createTableColumnHelper } from './createTableColumnHelper';
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { collectDirectChildren } from "./collectDirectChildren.js";
|
|
1
2
|
import { SCROLL_EDGE_COOLDOWN_MS, SORT_LABELS, TABLE_END_REACHED_THRESHOLD, TABLE_EXPAND_COLUMN_ID, TABLE_EXPAND_COLUMN_WIDTH, TABLE_MIN_COLUMN_WIDTH, TABLE_PREPEND_SKELETON_ROWS, TABLE_SELECT_COLUMN_ID, TABLE_SELECT_COLUMN_WIDTH, TABLE_SKELETON_ROWS, TABLE_START_REACHED_THRESHOLD, TABLE_VIRTUALIZATION_OVERSCAN, getAlignClass, getExpandBorderClass } from "./constants.js";
|
|
3
|
+
import { containsDirectChild } from "./containsDirectChild.js";
|
|
2
4
|
import { createExpandColumn } from "./createExpandColumn.js";
|
|
3
5
|
import { createSelectionColumn } from "./createSelectionColumn.js";
|
|
4
6
|
import { createTableColumnHelper } from "./createTableColumnHelper.js";
|
|
@@ -9,4 +11,4 @@ import { getRowKey } from "./getRowKey.js";
|
|
|
9
11
|
import { isLastPinnedLeft } from "./isLastPinnedLeft.js";
|
|
10
12
|
import { useColumnDnd } from "./useColumnDnd.js";
|
|
11
13
|
import { useContainerWidth } from "./useContainerWidth.js";
|
|
12
|
-
export { SCROLL_EDGE_COOLDOWN_MS, SORT_LABELS, TABLE_END_REACHED_THRESHOLD, TABLE_EXPAND_COLUMN_ID, TABLE_EXPAND_COLUMN_WIDTH, TABLE_MIN_COLUMN_WIDTH, TABLE_PREPEND_SKELETON_ROWS, TABLE_SELECT_COLUMN_ID, TABLE_SELECT_COLUMN_WIDTH, TABLE_SKELETON_ROWS, TABLE_START_REACHED_THRESHOLD, TABLE_VIRTUALIZATION_OVERSCAN, createExpandColumn, createSelectionColumn, createTableColumnHelper, detectDataChange, getAlignClass, getDndStyles, getExpandBorderClass, getPinningStyles, getRowKey, isLastPinnedLeft, useColumnDnd, useContainerWidth };
|
|
14
|
+
export { SCROLL_EDGE_COOLDOWN_MS, SORT_LABELS, TABLE_END_REACHED_THRESHOLD, TABLE_EXPAND_COLUMN_ID, TABLE_EXPAND_COLUMN_WIDTH, TABLE_MIN_COLUMN_WIDTH, TABLE_PREPEND_SKELETON_ROWS, TABLE_SELECT_COLUMN_ID, TABLE_SELECT_COLUMN_WIDTH, TABLE_SKELETON_ROWS, TABLE_START_REACHED_THRESHOLD, TABLE_VIRTUALIZATION_OVERSCAN, collectDirectChildren, containsDirectChild, createExpandColumn, createSelectionColumn, createTableColumnHelper, detectDataChange, getAlignClass, getDndStyles, getExpandBorderClass, getPinningStyles, getRowKey, isLastPinnedLeft, useColumnDnd, useContainerWidth };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import type { FC, FocusEvent, ReactNode } from 'react';
|
|
2
|
-
|
|
1
|
+
import type { ButtonHTMLAttributes, FC, FocusEvent, ReactNode } from 'react';
|
|
2
|
+
import { type TestableProps } from '../../utils/testId';
|
|
3
|
+
type TabsTriggerNativeProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'value' | 'onFocus' | 'children'>;
|
|
4
|
+
export interface TabsTriggerProps extends TabsTriggerNativeProps, TestableProps {
|
|
3
5
|
children: ReactNode;
|
|
4
6
|
value: string;
|
|
5
|
-
disabled?: boolean;
|
|
6
7
|
asChild?: boolean;
|
|
7
|
-
className?: string;
|
|
8
8
|
onFocus?: (e: FocusEvent<HTMLButtonElement>) => void;
|
|
9
9
|
}
|
|
10
10
|
export declare const TabsTrigger: FC<TabsTriggerProps>;
|
|
11
|
+
export {};
|
|
@@ -5,8 +5,8 @@ import { useTestId } from "../../utils/testId.js";
|
|
|
5
5
|
import { tabsTriggerVariants } from "./classes.js";
|
|
6
6
|
import { TABS_SCROLL_BUTTON_WIDTH } from "./constants.js";
|
|
7
7
|
import { useTabsSharedContext } from "./TabsSharedContext/index.js";
|
|
8
|
-
const TabsTrigger = ({ children, value, disabled = false, asChild = false, className, onFocus })=>{
|
|
9
|
-
const testId = useTestId('trigger');
|
|
8
|
+
const TabsTrigger = ({ children, value, disabled = false, asChild = false, className, onFocus, 'data-testid': testIdProp, ...rest })=>{
|
|
9
|
+
const testId = useTestId('trigger', testIdProp);
|
|
10
10
|
const { scrollRef, size } = useTabsSharedContext();
|
|
11
11
|
const handleFocus = (e)=>{
|
|
12
12
|
onFocus?.(e);
|
|
@@ -25,6 +25,7 @@ const TabsTrigger = ({ children, value, disabled = false, asChild = false, class
|
|
|
25
25
|
});
|
|
26
26
|
};
|
|
27
27
|
return /*#__PURE__*/ jsx(Tabs.Trigger, {
|
|
28
|
+
...rest,
|
|
28
29
|
className: cn(tabsTriggerVariants({
|
|
29
30
|
size
|
|
30
31
|
}), className),
|
|
@@ -17,7 +17,8 @@ const Tag = ({ size = 'medium', disabled = false, asChild = false, children, onC
|
|
|
17
17
|
const testId = testIdProp ?? inheritedTestId;
|
|
18
18
|
const Comp = asChild ? Slot : 'div';
|
|
19
19
|
const handleClick = onClick ? (event)=>{
|
|
20
|
-
event.
|
|
20
|
+
const nested = event.target.closest('button, a, [role="button"]');
|
|
21
|
+
if (nested && nested !== event.currentTarget && event.currentTarget.contains(nested)) return;
|
|
21
22
|
onClick(event);
|
|
22
23
|
} : void 0;
|
|
23
24
|
return /*#__PURE__*/ jsx(TestIdProvider, {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import type { FC,
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import type { ButtonHTMLAttributes, FC, ReactNode, Ref } from 'react';
|
|
2
|
+
import { type TestableProps } from '../../utils/testId';
|
|
3
|
+
export interface TagCloseProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children' | 'color'>, TestableProps {
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
ref?: Ref<HTMLButtonElement>;
|
|
4
6
|
}
|
|
5
7
|
export declare const TagClose: FC<TagCloseProps>;
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { X } from "../../icons/index.js";
|
|
3
|
+
import { cn } from "../../utils/cn.js";
|
|
3
4
|
import { useTestId } from "../../utils/testId.js";
|
|
4
|
-
const TagClose = ({
|
|
5
|
-
const testId = useTestId('close');
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
size: "sm",
|
|
5
|
+
const TagClose = ({ children, className, 'data-testid': testIdProp, ref, ...rest })=>{
|
|
6
|
+
const testId = useTestId('close', testIdProp);
|
|
7
|
+
return /*#__PURE__*/ jsx("button", {
|
|
8
|
+
type: "button",
|
|
9
|
+
"aria-label": "Remove tag",
|
|
10
|
+
...rest,
|
|
11
|
+
ref: ref,
|
|
12
12
|
"data-slot": "tag-close",
|
|
13
13
|
"data-testid": testId,
|
|
14
|
-
|
|
14
|
+
className: cn('inline-flex items-center cursor-pointer focus:outline-none', className),
|
|
15
|
+
children: children ?? /*#__PURE__*/ jsx(X, {
|
|
16
|
+
size: "sm"
|
|
17
|
+
})
|
|
15
18
|
});
|
|
16
19
|
};
|
|
20
|
+
TagClose.displayName = 'TagClose';
|
|
17
21
|
export { TagClose };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { Tag, type TagProps } from './Tag';
|
|
2
|
-
export { TagClose } from './TagClose';
|
|
2
|
+
export { TagClose, type TagCloseProps } from './TagClose';
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Tooltip } from "@ark-ui/react/tooltip";
|
|
3
|
-
import { TestIdProvider } from "../../utils/testId.js";
|
|
3
|
+
import { TestIdProvider, useTestId } from "../../utils/testId.js";
|
|
4
4
|
const TOOLTIP_POSITIONING_DEFAULT = {
|
|
5
5
|
offset: {
|
|
6
6
|
mainAxis: 6
|
|
7
7
|
},
|
|
8
8
|
overflowPadding: 8
|
|
9
9
|
};
|
|
10
|
-
const Tooltip_Tooltip = ({ children, open, defaultOpen, onOpenChange, openDelay, closeDelay, closeOnPointerDown, closeOnEscape, closeOnScroll, interactive, disabled, positioning, 'data-testid':
|
|
10
|
+
const Tooltip_Tooltip = ({ children, open, defaultOpen, onOpenChange, openDelay, closeDelay, closeOnPointerDown, closeOnEscape, closeOnScroll, interactive, disabled, positioning, 'data-testid': testIdProp })=>{
|
|
11
|
+
const inheritedTestId = useTestId();
|
|
12
|
+
const testId = testIdProp ?? inheritedTestId;
|
|
11
13
|
const handleOpenChange = (details)=>{
|
|
12
14
|
onOpenChange?.(details.open);
|
|
13
15
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { ComponentPropsWithoutRef,
|
|
1
|
+
import type { ComponentPropsWithoutRef, ComponentRef, FC, Ref } from 'react';
|
|
2
2
|
import { Tooltip as ArkUiTooltip } from '@ark-ui/react/tooltip';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
import { type TestableProps } from '../../utils/testId';
|
|
4
|
+
export type TooltipContentProps = ComponentPropsWithoutRef<typeof ArkUiTooltip.Content> & TestableProps & {
|
|
5
|
+
ref?: Ref<ComponentRef<typeof ArkUiTooltip.Content>>;
|
|
5
6
|
};
|
|
6
7
|
export declare const TooltipContent: FC<TooltipContentProps>;
|
|
7
|
-
export {};
|
|
@@ -23,17 +23,17 @@ const tooltipContentVariants = cva([
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
|
-
const TooltipContent = ({ children, className, ref, ...props })=>{
|
|
27
|
-
const testId = useTestId('content');
|
|
26
|
+
const TooltipContent = ({ children, className, ref, 'data-testid': testIdProp, ...props })=>{
|
|
27
|
+
const testId = useTestId('content', testIdProp);
|
|
28
28
|
return /*#__PURE__*/ jsx(Portal, {
|
|
29
29
|
children: /*#__PURE__*/ jsx(Tooltip.Positioner, {
|
|
30
30
|
children: /*#__PURE__*/ jsx(Tooltip.Content, {
|
|
31
|
+
...props,
|
|
31
32
|
ref: ref,
|
|
32
33
|
"data-testid": testId,
|
|
33
34
|
className: cn(tooltipContentVariants({
|
|
34
35
|
hasNonTextEnd: hasNonTextEnd(children)
|
|
35
36
|
}), className),
|
|
36
|
-
...props,
|
|
37
37
|
children: children
|
|
38
38
|
})
|
|
39
39
|
})
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { ComponentPropsWithoutRef,
|
|
1
|
+
import type { ComponentPropsWithoutRef, ComponentRef, FC, Ref } from 'react';
|
|
2
2
|
import { Tooltip as ArkUiTooltip } from '@ark-ui/react/tooltip';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
import { type TestableProps } from '../../utils/testId';
|
|
4
|
+
export type TooltipTriggerProps = ComponentPropsWithoutRef<typeof ArkUiTooltip.Trigger> & TestableProps & {
|
|
5
|
+
ref?: Ref<ComponentRef<typeof ArkUiTooltip.Trigger>>;
|
|
5
6
|
};
|
|
6
7
|
export declare const TooltipTrigger: FC<TooltipTriggerProps>;
|
|
7
|
-
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Tooltip } from "@ark-ui/react/tooltip";
|
|
3
3
|
import { useTestId } from "../../utils/testId.js";
|
|
4
|
-
const TooltipTrigger = ({ ref, ...props })=>{
|
|
5
|
-
const testId = useTestId('trigger');
|
|
4
|
+
const TooltipTrigger = ({ ref, 'data-testid': testIdProp, ...props })=>{
|
|
5
|
+
const testId = useTestId('trigger', testIdProp);
|
|
6
6
|
return /*#__PURE__*/ jsx(Tooltip.Trigger, {
|
|
7
7
|
ref: ref,
|
|
8
8
|
...props,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { Tooltip, type TooltipProps } from './Tooltip';
|
|
2
|
-
export { TooltipContent } from './TooltipContent';
|
|
3
|
-
export { TooltipTrigger } from './TooltipTrigger';
|
|
2
|
+
export { TooltipContent, type TooltipContentProps } from './TooltipContent';
|
|
3
|
+
export { TooltipTrigger, type TooltipTriggerProps } from './TooltipTrigger';
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type FC, type ReactNode } from 'react';
|
|
2
2
|
import { Tour as ArkUiTour } from '@ark-ui/react';
|
|
3
3
|
import type { TestableProps } from '../../utils/testId';
|
|
4
4
|
export interface TourProps extends Omit<ArkUiTour.RootProps, 'children'>, TestableProps {
|
|
5
|
+
/**
|
|
6
|
+
* Optional override slot for the close control. Pass a `<TourClose>` child
|
|
7
|
+
* (typically with `data-analytics-id`) to suppress the auto-rendered
|
|
8
|
+
* default close button and use the consumer-supplied one in its place.
|
|
9
|
+
*/
|
|
10
|
+
children?: ReactNode;
|
|
5
11
|
}
|
|
6
12
|
export declare const Tour: FC<TourProps>;
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Children, isValidElement } from "react";
|
|
2
3
|
import { Tour } from "@ark-ui/react";
|
|
4
|
+
import { TourClose } from "./TourClose.js";
|
|
3
5
|
import { TourInner } from "./TourInner.js";
|
|
4
|
-
const
|
|
6
|
+
const findCustomClose = (children)=>{
|
|
7
|
+
for (const child of Children.toArray(children))if (/*#__PURE__*/ isValidElement(child) && child.type === TourClose) return child;
|
|
8
|
+
};
|
|
9
|
+
const Tour_Tour = ({ lazyMount = true, unmountOnExit = true, 'data-testid': testId, children, ...props })=>/*#__PURE__*/ jsx(Tour.Root, {
|
|
5
10
|
...props,
|
|
6
11
|
lazyMount: lazyMount,
|
|
7
12
|
unmountOnExit: unmountOnExit,
|
|
8
13
|
children: /*#__PURE__*/ jsx(TourInner, {
|
|
9
|
-
testId: testId
|
|
14
|
+
testId: testId,
|
|
15
|
+
customClose: findCustomClose(children)
|
|
10
16
|
})
|
|
11
17
|
});
|
|
12
18
|
Tour_Tour.displayName = 'Tour';
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import type { FC, Ref } from 'react';
|
|
1
2
|
import { Tour as ArkUiTour } from '@ark-ui/react';
|
|
2
|
-
|
|
3
|
-
export
|
|
3
|
+
import { type TestableProps } from '../../utils/testId';
|
|
4
|
+
export interface TourCloseProps extends Omit<ArkUiTour.CloseTriggerProps, 'children' | 'color'>, TestableProps {
|
|
5
|
+
ref?: Ref<HTMLButtonElement>;
|
|
6
|
+
}
|
|
7
|
+
export declare const TourClose: FC<TourCloseProps>;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef } from "react";
|
|
3
2
|
import { Tour, useTourContext } from "@ark-ui/react";
|
|
4
3
|
import { X } from "../../icons/index.js";
|
|
5
4
|
import { cn } from "../../utils/cn.js";
|
|
6
5
|
import { useTestId } from "../../utils/testId.js";
|
|
7
6
|
import { Button } from "../Button/index.js";
|
|
8
7
|
import { Tooltip, TooltipContent, TooltipTrigger } from "../Tooltip/index.js";
|
|
9
|
-
const TourClose =
|
|
10
|
-
const testId = useTestId('close');
|
|
8
|
+
const TourClose = ({ ref, className, 'data-testid': testIdProp, ...rest })=>{
|
|
9
|
+
const testId = useTestId('close', testIdProp);
|
|
11
10
|
const { step } = useTourContext();
|
|
12
11
|
const type = step?.type === 'dialog' ? 'dialog' : 'tooltip';
|
|
13
12
|
return /*#__PURE__*/ jsxs(Tooltip, {
|
|
14
13
|
children: [
|
|
15
14
|
/*#__PURE__*/ jsx(Tour.CloseTrigger, {
|
|
16
|
-
|
|
17
|
-
className: cn('absolute top-14 right-16'),
|
|
15
|
+
...rest,
|
|
18
16
|
ref: ref,
|
|
17
|
+
"data-testid": testId,
|
|
18
|
+
className: cn('absolute top-14 right-16', className),
|
|
19
19
|
asChild: true,
|
|
20
20
|
children: /*#__PURE__*/ jsx(TooltipTrigger, {
|
|
21
21
|
asChild: true,
|
|
@@ -32,6 +32,6 @@ const TourClose = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
|
32
32
|
})
|
|
33
33
|
]
|
|
34
34
|
});
|
|
35
|
-
}
|
|
35
|
+
};
|
|
36
36
|
TourClose.displayName = 'TourClose';
|
|
37
37
|
export { TourClose };
|
|
@@ -56,16 +56,21 @@ const TourFooter = ()=>{
|
|
|
56
56
|
gap: 8,
|
|
57
57
|
children: preparedActions.map((action, index)=>{
|
|
58
58
|
const isLast = index === preparedActions.length - 1;
|
|
59
|
+
const { label, action: actionType, ...buttonProps } = action;
|
|
59
60
|
return /*#__PURE__*/ jsx(Tour.ActionTrigger, {
|
|
60
|
-
action:
|
|
61
|
+
action: {
|
|
62
|
+
label,
|
|
63
|
+
action: actionType
|
|
64
|
+
},
|
|
61
65
|
asChild: true,
|
|
62
66
|
children: /*#__PURE__*/ jsx(Button, {
|
|
67
|
+
...buttonProps,
|
|
63
68
|
variant: isLast ? 'primary' : 'ghost',
|
|
64
69
|
color: isLast ? 'brand' : 'tooltip' === type ? 'neutral-alt' : 'neutral',
|
|
65
70
|
size: 'dialog' === type ? 'large' : 'small',
|
|
66
|
-
children:
|
|
71
|
+
children: label
|
|
67
72
|
})
|
|
68
|
-
},
|
|
73
|
+
}, label);
|
|
69
74
|
})
|
|
70
75
|
});
|
|
71
76
|
}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
import type { FC } from 'react';
|
|
1
|
+
import type { FC, ReactElement } from 'react';
|
|
2
2
|
export interface TourInnerProps {
|
|
3
3
|
testId?: string;
|
|
4
|
+
/**
|
|
5
|
+
* Optional consumer-supplied close control. When provided, replaces the
|
|
6
|
+
* auto-rendered `<TourClose />` so the consumer can attach analytics or
|
|
7
|
+
* other native HTML attributes to the underlying `<button>`.
|
|
8
|
+
*/
|
|
9
|
+
customClose?: ReactElement;
|
|
4
10
|
}
|
|
5
11
|
export declare const TourInner: FC<TourInnerProps>;
|
|
@@ -11,7 +11,7 @@ import { TourOverlay } from "./TourOverlay.js";
|
|
|
11
11
|
import { TourPositioner } from "./TourPositioner.js";
|
|
12
12
|
import { TourSpotlight } from "./TourSpotlight.js";
|
|
13
13
|
import { TourTitle } from "./TourTitle.js";
|
|
14
|
-
const TourInner = ({ testId })=>{
|
|
14
|
+
const TourInner = ({ testId, customClose })=>{
|
|
15
15
|
const { step } = useTourContext();
|
|
16
16
|
const overlayIsVisible = !!step && false !== step.backdrop;
|
|
17
17
|
return /*#__PURE__*/ jsx(TestIdProvider, {
|
|
@@ -35,7 +35,7 @@ const TourInner = ({ testId })=>{
|
|
|
35
35
|
]
|
|
36
36
|
}),
|
|
37
37
|
/*#__PURE__*/ jsx(TourFooter, {}),
|
|
38
|
-
/*#__PURE__*/ jsx(TourClose, {})
|
|
38
|
+
customClose ?? /*#__PURE__*/ jsx(TourClose, {})
|
|
39
39
|
]
|
|
40
40
|
})
|
|
41
41
|
})
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { type BeaconStepEffectOptions, beaconStepEffect, waitForStepEvent, } from './lib';
|
|
2
2
|
export { Tour, type TourProps } from './Tour';
|
|
3
|
+
export { TourClose, type TourCloseProps } from './TourClose';
|
|
3
4
|
export type { TourStatusChangeDetails, TourStepAction, TourStepChangeDetails, TourStepChangeDetailsExtended, TourStepDetails, TourStepEffectArgs, WaitForStepEventOptions, } from './types';
|
|
4
5
|
export { useTour } from './useTour';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { beaconStepEffect, waitForStepEvent } from "./lib/index.js";
|
|
2
2
|
import { Tour } from "./Tour.js";
|
|
3
|
+
import { TourClose } from "./TourClose.js";
|
|
3
4
|
import { useTour } from "./useTour.js";
|
|
4
|
-
export { Tour, beaconStepEffect, useTour, waitForStepEvent };
|
|
5
|
+
export { Tour, TourClose, beaconStepEffect, useTour, waitForStepEvent };
|
|
@@ -1,7 +1,18 @@
|
|
|
1
|
+
import type { ButtonHTMLAttributes } from 'react';
|
|
1
2
|
import type { Tour as ArkUiTour } from '@ark-ui/react';
|
|
2
3
|
export type TourStepDetails = ArkUiTour.StepDetails;
|
|
3
|
-
export type TourStepAction = ArkUiTour.StepAction;
|
|
4
4
|
export type TourStepEffectArgs = ArkUiTour.StepEffectArgs;
|
|
5
|
+
/**
|
|
6
|
+
* A footer action button definition. Extends Ark UI's `StepAction` (label +
|
|
7
|
+
* action type) with arbitrary native `<button>` HTML attributes so consumers
|
|
8
|
+
* can attach `data-analytics-id`, `data-analytics-props`, `aria-*`, `id`,
|
|
9
|
+
* `onClick`, etc. per action without DS-specific slot props.
|
|
10
|
+
*
|
|
11
|
+
* `color` is excluded because the DS Button uses CVA `color` variants; the
|
|
12
|
+
* native HTML `color` attribute would silently win and break the variant
|
|
13
|
+
* lookup. `children` is excluded because the button label comes from `label`.
|
|
14
|
+
*/
|
|
15
|
+
export type TourStepAction = ArkUiTour.StepAction & Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children' | 'color' | 'action'>;
|
|
5
16
|
export interface WaitForStepEventOptions<T extends HTMLElement = HTMLElement> {
|
|
6
17
|
/** Only advance when the predicate returns `true`. */
|
|
7
18
|
predicate?: (el: T) => boolean;
|
|
@@ -6,9 +6,7 @@ interface UseCopyTooltipReturn {
|
|
|
6
6
|
copied: boolean;
|
|
7
7
|
tooltipOpen: boolean;
|
|
8
8
|
onTooltipOpenChange: (open: boolean) => void;
|
|
9
|
-
handleCopy: (
|
|
10
|
-
stopPropagation: () => void;
|
|
11
|
-
}) => void;
|
|
9
|
+
handleCopy: () => void;
|
|
12
10
|
}
|
|
13
11
|
export declare function useCopyTooltip({ text, enabled, }: UseCopyTooltipOptions): UseCopyTooltipReturn;
|
|
14
12
|
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -58,14 +58,14 @@ export { ScrollArea, ScrollAreaContent, type ScrollAreaContentProps, ScrollAreaC
|
|
|
58
58
|
export { SegmentedControl, SegmentedControlButton, type SegmentedControlButtonProps, SegmentedControlItem, type SegmentedControlItemProps, type SegmentedControlProps, SegmentedControlSeparator, type SegmentedControlSeparatorProps, } from './components/SegmentedControl';
|
|
59
59
|
export { SegmentedTabs, SegmentedTabsButton, SegmentedTabsContent, SegmentedTabsList, SegmentedTabsSeparator, SegmentedTabsTrigger, SegmentedTabsTriggerButton, } from './components/SegmentedTabs';
|
|
60
60
|
export { Select, SelectButton, SelectClearTrigger, SelectContent, SelectFooter, SelectGroup, SelectGroupLabel, SelectHeader, SelectInput, SelectOption, SelectOptionDescription, SelectOptionIndicator, SelectOptionText, SelectPositioner, SelectSearchInput, SelectSeparator, } from './components/Select';
|
|
61
|
-
export { Selection, SelectionAll, type SelectionAllProps, SelectionBulkBar, type SelectionBulkBarPlacement, type SelectionBulkBarProps, SelectionItem, type SelectionItemProps, type SelectionProps, } from './components/Selection';
|
|
61
|
+
export { Selection, SelectionAll, type SelectionAllProps, SelectionBulkBar, type SelectionBulkBarPlacement, type SelectionBulkBarProps, type SelectionContextValue, SelectionItem, type SelectionItemProps, type SelectionProps, useSelectionContext, } from './components/Selection';
|
|
62
62
|
export { Separator, type SeparatorProps } from './components/Separator';
|
|
63
63
|
export { Skeleton, type SkeletonProps } from './components/Skeleton';
|
|
64
64
|
export { SplashScreen, type SplashScreenProps } from './components/SplashScreen';
|
|
65
65
|
export { SplitButton, type SplitButtonProps } from './components/SplitButton';
|
|
66
66
|
export { HStack, type HStackProps, Stack, type StackProps, VStack, type VStackProps, } from './components/Stack';
|
|
67
67
|
export { Switch, SwitchControl, SwitchDescription, type SwitchDescriptionProps, SwitchLabel, type SwitchLabelProps, type SwitchProps, } from './components/Switch';
|
|
68
|
-
export { createTableColumnHelper, Table, type TableAccessorColumnDef, TableActionBar, type TableCellContext, type TableColumnBase, type TableColumnDef, type TableColumnHelper, type TableColumnMeta, type TableColumnPinningState, type TableColumnSizingState, type TableDisplayColumnDef, TableEmptyState, type TableExpandedState, type TableGroupingState, type TableHandle, type TableOnChangeFn, type TableProps, type TableRow, type TableRowSelectionState, type TableScrollToRowOptions, TableSettingsMenu, type TableSortingState, type TableUpdater, type TableVisibilityState, } from './components/Table';
|
|
68
|
+
export { createTableColumnHelper, Table, type TableAccessorColumnDef, TableActionBar, type TableCellContext, type TableColumnBase, type TableColumnDef, type TableColumnHelper, TableColumnMenu, TableColumnMenuHideItem, type TableColumnMenuHideItemProps, TableColumnMenuMoveLeftItem, type TableColumnMenuMoveLeftItemProps, TableColumnMenuMoveRightItem, type TableColumnMenuMoveRightItemProps, TableColumnMenuPinItem, type TableColumnMenuPinItemProps, type TableColumnMenuProps, TableColumnMenuSortItem, type TableColumnMenuSortItemProps, type TableColumnMeta, type TableColumnPinningState, type TableColumnSizingState, type TableDisplayColumnDef, TableEmptyState, type TableExpandedState, type TableGroupingState, type TableHandle, type TableOnChangeFn, type TableProps, type TableRow, type TableRowSelectionState, type TableScrollToRowOptions, TableSettingsMenu, type TableSortingState, TableSortTrigger, type TableSortTriggerProps, type TableUpdater, type TableVisibilityState, } from './components/Table';
|
|
69
69
|
export { Tabs, TabsButton, TabsContent, TabsLineActions, TabsList, TabsSeparator, TabsTrigger, } from './components/Tabs';
|
|
70
70
|
export { Tag, TagClose, type TagProps } from './components/Tag';
|
|
71
71
|
export { Text, type TextProps } from './components/Text';
|
package/dist/index.js
CHANGED
|
@@ -47,14 +47,14 @@ import { ScrollArea, ScrollAreaContent, ScrollAreaCorner, ScrollAreaScrollbar, S
|
|
|
47
47
|
import { SegmentedControl, SegmentedControlButton, SegmentedControlItem, SegmentedControlSeparator } from "./components/SegmentedControl/index.js";
|
|
48
48
|
import { SegmentedTabs, SegmentedTabsButton, SegmentedTabsContent, SegmentedTabsList, SegmentedTabsSeparator, SegmentedTabsTrigger, SegmentedTabsTriggerButton } from "./components/SegmentedTabs/index.js";
|
|
49
49
|
import { Select, SelectButton, SelectClearTrigger, SelectContent, SelectFooter, SelectGroup, SelectGroupLabel, SelectHeader, SelectInput, SelectOption, SelectOptionDescription, SelectOptionIndicator, SelectOptionText, SelectPositioner, SelectSearchInput, SelectSeparator } from "./components/Select/index.js";
|
|
50
|
-
import { Selection, SelectionAll, SelectionBulkBar, SelectionItem } from "./components/Selection/index.js";
|
|
50
|
+
import { Selection, SelectionAll, SelectionBulkBar, SelectionItem, useSelectionContext } from "./components/Selection/index.js";
|
|
51
51
|
import { Separator } from "./components/Separator/index.js";
|
|
52
52
|
import { Skeleton } from "./components/Skeleton/index.js";
|
|
53
53
|
import { SplashScreen } from "./components/SplashScreen/index.js";
|
|
54
54
|
import { SplitButton } from "./components/SplitButton/index.js";
|
|
55
55
|
import { HStack, Stack, VStack } from "./components/Stack/index.js";
|
|
56
56
|
import { Switch, SwitchControl, SwitchDescription, SwitchLabel } from "./components/Switch/index.js";
|
|
57
|
-
import { Table, TableActionBar, TableEmptyState, TableSettingsMenu, createTableColumnHelper } from "./components/Table/index.js";
|
|
57
|
+
import { Table, TableActionBar, TableColumnMenu, TableColumnMenuHideItem, TableColumnMenuMoveLeftItem, TableColumnMenuMoveRightItem, TableColumnMenuPinItem, TableColumnMenuSortItem, TableEmptyState, TableSettingsMenu, TableSortTrigger, createTableColumnHelper } from "./components/Table/index.js";
|
|
58
58
|
import { Tabs, TabsButton, TabsContent, TabsLineActions, TabsList, TabsSeparator, TabsTrigger } from "./components/Tabs/index.js";
|
|
59
59
|
import { Tag, TagClose } from "./components/Tag/index.js";
|
|
60
60
|
import { Text } from "./components/Text/index.js";
|
|
@@ -69,4 +69,4 @@ import { Tour, beaconStepEffect, useTour, waitForStepEvent } from "./components/
|
|
|
69
69
|
import { UtilityPage } from "./components/UtilityPage/index.js";
|
|
70
70
|
import { WallyIcon } from "./components/WallyIcon/index.js";
|
|
71
71
|
import { TestIdProvider, useTestId } from "./utils/testId.js";
|
|
72
|
-
export { Accordion, AccordionActions, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertClose, AlertContent, AlertControls, AlertDescription, AlertIcon, AlertTitle, AnimatedBackground, AppShell, AppShellHeader, AppShellRail, AppShellRemote, Attribute, AttributeActions, AttributeActionsContent, AttributeActionsItem, AttributeActionsTarget, AttributeLabel, AttributeLabelDescription, AttributeLabelInfo, AttributeValue, Badge, Banner, BannerClose, BannerContent, BannerControls, BannerDescription, BannerIcon, BannerLink, BannerTitle, Breadcrumbs, BreadcrumbsEllipsis, BreadcrumbsItem, BreadcrumbsScopeSwitcher, BreadcrumbsSeparator, Button, Calendar, CalendarApplyButton, CalendarBody, CalendarContent, CalendarDate, CalendarDateTime, CalendarDayName, CalendarFooter, CalendarFooterControls, CalendarGrid, CalendarGrids, CalendarHeader, CalendarInputHeader, CalendarKeyboardHints, CalendarPresetItem, CalendarPresets, CalendarProvider, CalendarResetButton, CalendarTrigger, Card, CardContent, CardFooter, CardHeader, CardTitle, Checkbox, CheckboxDescription, CheckboxGroup, CheckboxIndicator, CheckboxLabel, Code, Country, CountryFlag, CountryName, DAY_NAMES, DEFAULT_RANGE_PRESETS, DEFAULT_SINGLE_PRESETS, DateFormatProvider, DateInput, DateRangeEndValue, DateRangeInput, DateRangeProvider, DateRangeSeparator, DateRangeStartValue, Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerFooter, DrawerFooterControls, DrawerHeader, DrawerPositioner, DrawerResizeHandle, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuContent, DropdownMenuContextTrigger, DropdownMenuFooter, DropdownMenuGroup, DropdownMenuInput, DropdownMenuItem, DropdownMenuItemContent, DropdownMenuItemDescription, DropdownMenuItemIcon, DropdownMenuItemText, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuTrigger, DropdownMenuTriggerItem, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, FilterInput, FilterInputChip, FilterInputFieldMenu, FilterInputOperatorMenu, Flex, FormatDateTime, HStack, HTTP_METHODS, HTTP_METHOD_COLOR, Heading, HttpMethod, Input, InputGroup, InputGroupAddon, InputGroupText, Ip, IpAddress, IpCountry, IpList, IpPort, IpProvider, Kbd, KbdGroup, Link, Loader, Logo, MONTH_NAMES, NavRail, NavRailBody, NavRailFooter, NavRailItem, NavRailSeparator, NavRailSkeleton, NumberInput, NumericBadge, OTPInput, OverflowTooltip, OverflowTooltipContent, Page, PageActions, PageContent, PageHeader, PageHostProvider, PageTitle, ParameterPath, Popover, PopoverContent, PopoverTrigger, Progress, RESPONSE_CODE_COLOR, Radio, RadioDescription, RadioGroup, RadioIndicator, RadioLabel, RemoteShell, RemoteShellBreadcrumb, RemoteShellContent, RemoteShellPanel, ResponseCode, ScrollArea, ScrollAreaContent, ScrollAreaCorner, ScrollAreaScrollbar, ScrollAreaViewport, SegmentedControl, SegmentedControlButton, SegmentedControlItem, SegmentedControlSeparator, SegmentedTabs, SegmentedTabsButton, SegmentedTabsContent, SegmentedTabsList, SegmentedTabsSeparator, SegmentedTabsTrigger, SegmentedTabsTriggerButton, Select, SelectButton, SelectClearTrigger, SelectContent, SelectFooter, SelectGroup, SelectGroupLabel, SelectHeader, SelectInput, SelectOption, SelectOptionDescription, SelectOptionIndicator, SelectOptionText, SelectPositioner, SelectSearchInput, SelectSeparator, Selection, SelectionAll, SelectionBulkBar, SelectionItem, Separator, Skeleton, SplashScreen, SplitButton, Stack, Switch, SwitchControl, SwitchDescription, SwitchLabel, Table, TableActionBar, TableEmptyState, TableSettingsMenu, Tabs, TabsButton, TabsContent, TabsLineActions, TabsList, TabsSeparator, TabsTrigger, Tag, TagClose, TestIdProvider, Text, Textarea, ThemeProvider, Time, TimeInput, Toast, ToastActions, Toaster, ToggleButton, Tooltip, TooltipContent, TooltipTrigger, TopHeader, TopHeaderActions, TopHeaderLogo, Tour, UtilityPage, VStack, WallyIcon, ZonedDateTime, beaconStepEffect, cardVariants, createTableColumnHelper, datacenters, drawerContentVariants, drawerPositionerVariants, findFirstLinkPath, formatAsFilter, getLocalTimeZone, getResponseCodeCategory, parseDate, parseDateTime, parseTime, parseZonedDateTime, proxyTypes, pushPathname, sourceLabels, toaster, today, useCalendarContext, useDateFormat, useDateRangeContext, useDrawerContext, useLocationPathname, usePageHost, useRemoteShellContext, useTestId, useTheme, useTour, waitForStepEvent };
|
|
72
|
+
export { Accordion, AccordionActions, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertClose, AlertContent, AlertControls, AlertDescription, AlertIcon, AlertTitle, AnimatedBackground, AppShell, AppShellHeader, AppShellRail, AppShellRemote, Attribute, AttributeActions, AttributeActionsContent, AttributeActionsItem, AttributeActionsTarget, AttributeLabel, AttributeLabelDescription, AttributeLabelInfo, AttributeValue, Badge, Banner, BannerClose, BannerContent, BannerControls, BannerDescription, BannerIcon, BannerLink, BannerTitle, Breadcrumbs, BreadcrumbsEllipsis, BreadcrumbsItem, BreadcrumbsScopeSwitcher, BreadcrumbsSeparator, Button, Calendar, CalendarApplyButton, CalendarBody, CalendarContent, CalendarDate, CalendarDateTime, CalendarDayName, CalendarFooter, CalendarFooterControls, CalendarGrid, CalendarGrids, CalendarHeader, CalendarInputHeader, CalendarKeyboardHints, CalendarPresetItem, CalendarPresets, CalendarProvider, CalendarResetButton, CalendarTrigger, Card, CardContent, CardFooter, CardHeader, CardTitle, Checkbox, CheckboxDescription, CheckboxGroup, CheckboxIndicator, CheckboxLabel, Code, Country, CountryFlag, CountryName, DAY_NAMES, DEFAULT_RANGE_PRESETS, DEFAULT_SINGLE_PRESETS, DateFormatProvider, DateInput, DateRangeEndValue, DateRangeInput, DateRangeProvider, DateRangeSeparator, DateRangeStartValue, Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerFooter, DrawerFooterControls, DrawerHeader, DrawerPositioner, DrawerResizeHandle, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuContent, DropdownMenuContextTrigger, DropdownMenuFooter, DropdownMenuGroup, DropdownMenuInput, DropdownMenuItem, DropdownMenuItemContent, DropdownMenuItemDescription, DropdownMenuItemIcon, DropdownMenuItemText, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuTrigger, DropdownMenuTriggerItem, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, FilterInput, FilterInputChip, FilterInputFieldMenu, FilterInputOperatorMenu, Flex, FormatDateTime, HStack, HTTP_METHODS, HTTP_METHOD_COLOR, Heading, HttpMethod, Input, InputGroup, InputGroupAddon, InputGroupText, Ip, IpAddress, IpCountry, IpList, IpPort, IpProvider, Kbd, KbdGroup, Link, Loader, Logo, MONTH_NAMES, NavRail, NavRailBody, NavRailFooter, NavRailItem, NavRailSeparator, NavRailSkeleton, NumberInput, NumericBadge, OTPInput, OverflowTooltip, OverflowTooltipContent, Page, PageActions, PageContent, PageHeader, PageHostProvider, PageTitle, ParameterPath, Popover, PopoverContent, PopoverTrigger, Progress, RESPONSE_CODE_COLOR, Radio, RadioDescription, RadioGroup, RadioIndicator, RadioLabel, RemoteShell, RemoteShellBreadcrumb, RemoteShellContent, RemoteShellPanel, ResponseCode, ScrollArea, ScrollAreaContent, ScrollAreaCorner, ScrollAreaScrollbar, ScrollAreaViewport, SegmentedControl, SegmentedControlButton, SegmentedControlItem, SegmentedControlSeparator, SegmentedTabs, SegmentedTabsButton, SegmentedTabsContent, SegmentedTabsList, SegmentedTabsSeparator, SegmentedTabsTrigger, SegmentedTabsTriggerButton, Select, SelectButton, SelectClearTrigger, SelectContent, SelectFooter, SelectGroup, SelectGroupLabel, SelectHeader, SelectInput, SelectOption, SelectOptionDescription, SelectOptionIndicator, SelectOptionText, SelectPositioner, SelectSearchInput, SelectSeparator, Selection, SelectionAll, SelectionBulkBar, SelectionItem, Separator, Skeleton, SplashScreen, SplitButton, Stack, Switch, SwitchControl, SwitchDescription, SwitchLabel, Table, TableActionBar, TableColumnMenu, TableColumnMenuHideItem, TableColumnMenuMoveLeftItem, TableColumnMenuMoveRightItem, TableColumnMenuPinItem, TableColumnMenuSortItem, TableEmptyState, TableSettingsMenu, TableSortTrigger, Tabs, TabsButton, TabsContent, TabsLineActions, TabsList, TabsSeparator, TabsTrigger, Tag, TagClose, TestIdProvider, Text, Textarea, ThemeProvider, Time, TimeInput, Toast, ToastActions, Toaster, ToggleButton, Tooltip, TooltipContent, TooltipTrigger, TopHeader, TopHeaderActions, TopHeaderLogo, Tour, UtilityPage, VStack, WallyIcon, ZonedDateTime, beaconStepEffect, cardVariants, createTableColumnHelper, datacenters, drawerContentVariants, drawerPositionerVariants, findFirstLinkPath, formatAsFilter, getLocalTimeZone, getResponseCodeCategory, parseDate, parseDateTime, parseTime, parseZonedDateTime, proxyTypes, pushPathname, sourceLabels, toaster, today, useCalendarContext, useDateFormat, useDateRangeContext, useDrawerContext, useLocationPathname, usePageHost, useRemoteShellContext, useSelectionContext, useTestId, useTheme, useTour, waitForStepEvent };
|