@workday/canvas-kit-react 12.0.5 → 12.0.7
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/button/lib/parts/ButtonLabelIcon.tsx +3 -2
- package/collection/lib/useOverflowListModel.tsx +34 -6
- package/dist/commonjs/action-bar/lib/ActionBar.d.ts +128 -0
- package/dist/commonjs/action-bar/lib/ActionBar.d.ts.map +1 -1
- package/dist/commonjs/action-bar/lib/ActionBarItem.d.ts +8 -0
- package/dist/commonjs/action-bar/lib/ActionBarItem.d.ts.map +1 -1
- package/dist/commonjs/action-bar/lib/ActionBarList.d.ts +8 -0
- package/dist/commonjs/action-bar/lib/ActionBarList.d.ts.map +1 -1
- package/dist/commonjs/action-bar/lib/ActionBarOverflowButton.d.ts +8 -0
- package/dist/commonjs/action-bar/lib/ActionBarOverflowButton.d.ts.map +1 -1
- package/dist/commonjs/action-bar/lib/useActionBarModel.d.ts +124 -0
- package/dist/commonjs/action-bar/lib/useActionBarModel.d.ts.map +1 -1
- package/dist/commonjs/avatar/lib/Avatar.js +21 -21
- package/dist/commonjs/badge/lib/CountBadge.js +3 -3
- package/dist/commonjs/breadcrumbs/lib/Breadcrumbs.d.ts +515 -53
- package/dist/commonjs/breadcrumbs/lib/Breadcrumbs.d.ts.map +1 -1
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsCurrentItem.d.ts +8 -0
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsCurrentItem.d.ts.map +1 -1
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsItem.d.ts +8 -0
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsItem.d.ts.map +1 -1
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsList.d.ts +4 -0
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsList.d.ts.map +1 -1
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsOverflowButton.d.ts +8 -0
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsOverflowButton.d.ts.map +1 -1
- package/dist/commonjs/breadcrumbs/lib/hooks/useBreadcrumbsModel.d.ts +124 -0
- package/dist/commonjs/breadcrumbs/lib/hooks/useBreadcrumbsModel.d.ts.map +1 -1
- package/dist/commonjs/button/lib/BaseButton.js +21 -21
- package/dist/commonjs/button/lib/DeleteButton.js +1 -1
- package/dist/commonjs/button/lib/PrimaryButton.js +2 -2
- package/dist/commonjs/button/lib/SecondaryButton.js +2 -2
- package/dist/commonjs/button/lib/TertiaryButton.js +18 -18
- package/dist/commonjs/button/lib/parts/ButtonLabelIcon.d.ts.map +1 -1
- package/dist/commonjs/button/lib/parts/ButtonLabelIcon.js +2 -1
- package/dist/commonjs/card/lib/Card.js +1 -1
- package/dist/commonjs/card/lib/CardBody.js +1 -1
- package/dist/commonjs/card/lib/CardHeading.js +1 -1
- package/dist/commonjs/checkbox/lib/CheckBackground.js +3 -3
- package/dist/commonjs/checkbox/lib/CheckboxCheck.js +5 -5
- package/dist/commonjs/checkbox/lib/CheckboxContainer.js +1 -1
- package/dist/commonjs/checkbox/lib/CheckboxInput.js +5 -5
- package/dist/commonjs/checkbox/lib/CheckboxRipple.js +1 -1
- package/dist/commonjs/collection/lib/ListBox.js +3 -3
- package/dist/commonjs/collection/lib/useOverflowListItemMeasure.d.ts +4 -0
- package/dist/commonjs/collection/lib/useOverflowListItemMeasure.d.ts.map +1 -1
- package/dist/commonjs/collection/lib/useOverflowListMeasure.d.ts +4 -0
- package/dist/commonjs/collection/lib/useOverflowListMeasure.d.ts.map +1 -1
- package/dist/commonjs/collection/lib/useOverflowListModel.d.ts +125 -1
- package/dist/commonjs/collection/lib/useOverflowListModel.d.ts.map +1 -1
- package/dist/commonjs/collection/lib/useOverflowListModel.js +20 -11
- package/dist/commonjs/collection/lib/useOverflowListTarget.d.ts +4 -0
- package/dist/commonjs/collection/lib/useOverflowListTarget.d.ts.map +1 -1
- package/dist/commonjs/combobox/lib/ComboboxMenuList.js +1 -1
- package/dist/commonjs/common/lib/AccessibleHide.js +1 -1
- package/dist/commonjs/common/lib/CanvasProvider.js +1 -1
- package/dist/commonjs/form-field/lib/FormFieldContainer.js +1 -1
- package/dist/commonjs/form-field/lib/FormFieldField.js +1 -1
- package/dist/commonjs/form-field/lib/FormFieldGroupLabel.js +5 -5
- package/dist/commonjs/form-field/lib/FormFieldGroupList.js +3 -3
- package/dist/commonjs/form-field/lib/FormFieldHint.js +3 -3
- package/dist/commonjs/form-field/lib/FormFieldLabel.js +6 -6
- package/dist/commonjs/form-field/lib/formFieldStencil.js +8 -8
- package/dist/commonjs/icon/lib/AccentIcon.js +2 -2
- package/dist/commonjs/icon/lib/AppletIcon.js +1 -1
- package/dist/commonjs/icon/lib/Graphic.js +2 -2
- package/dist/commonjs/icon/lib/Svg.js +2 -2
- package/dist/commonjs/icon/lib/SystemIcon.js +1 -1
- package/dist/commonjs/icon/lib/SystemIconCircle.js +1 -1
- package/dist/commonjs/loading-dots/lib/LoadingDots.js +3 -3
- package/dist/commonjs/menu/lib/MenuCard.js +1 -1
- package/dist/commonjs/menu/lib/MenuItem.js +1 -1
- package/dist/commonjs/menu/lib/MenuList.js +3 -3
- package/dist/commonjs/menu/lib/MenuOption.js +1 -1
- package/dist/commonjs/modal/lib/ModalBody.js +1 -1
- package/dist/commonjs/modal/lib/ModalCard.js +1 -1
- package/dist/commonjs/modal/lib/ModalHeading.js +1 -1
- package/dist/commonjs/modal/lib/ModalOverflowOverlay.js +1 -1
- package/dist/commonjs/modal/lib/ModalOverlay.js +2 -2
- package/dist/commonjs/popup/lib/PopupBody.js +1 -1
- package/dist/commonjs/popup/lib/PopupCard.js +2 -2
- package/dist/commonjs/popup/lib/PopupCloseIcon.js +1 -1
- package/dist/commonjs/popup/lib/PopupHeading.js +1 -1
- package/dist/commonjs/select/lib/SelectCard.js +1 -1
- package/dist/commonjs/select/lib/SelectInput.js +3 -3
- package/dist/commonjs/switch/lib/Switch.js +7 -7
- package/dist/commonjs/table/lib/Table.js +1 -1
- package/dist/commonjs/table/lib/TableBody.js +1 -1
- package/dist/commonjs/table/lib/TableCaption.js +1 -1
- package/dist/commonjs/table/lib/TableCell.js +1 -1
- package/dist/commonjs/table/lib/TableFooter.js +1 -1
- package/dist/commonjs/table/lib/TableHead.js +1 -1
- package/dist/commonjs/table/lib/TableHeader.js +1 -1
- package/dist/commonjs/table/lib/TableRow.js +1 -1
- package/dist/commonjs/tabs/lib/Tabs.d.ts +146 -0
- package/dist/commonjs/tabs/lib/Tabs.d.ts.map +1 -1
- package/dist/commonjs/tabs/lib/TabsItem.d.ts +8 -0
- package/dist/commonjs/tabs/lib/TabsItem.d.ts.map +1 -1
- package/dist/commonjs/tabs/lib/TabsList.d.ts +8 -0
- package/dist/commonjs/tabs/lib/TabsList.d.ts.map +1 -1
- package/dist/commonjs/tabs/lib/TabsOverflowButton.d.ts +8 -0
- package/dist/commonjs/tabs/lib/TabsOverflowButton.d.ts.map +1 -1
- package/dist/commonjs/tabs/lib/TabsPanel.d.ts +8 -0
- package/dist/commonjs/tabs/lib/TabsPanel.d.ts.map +1 -1
- package/dist/commonjs/tabs/lib/TabsPanels.d.ts +4 -0
- package/dist/commonjs/tabs/lib/TabsPanels.d.ts.map +1 -1
- package/dist/commonjs/tabs/lib/useTabsModel.d.ts +150 -0
- package/dist/commonjs/tabs/lib/useTabsModel.d.ts.map +1 -1
- package/dist/commonjs/text/lib/LabelText.js +6 -6
- package/dist/commonjs/text/lib/Text.js +16 -16
- package/dist/commonjs/text/lib/TypeLevelComponents.js +4 -4
- package/dist/commonjs/text-area/lib/TextArea.js +5 -5
- package/dist/commonjs/text-input/lib/InputGroup.js +6 -6
- package/dist/commonjs/text-input/lib/TextInput.js +5 -5
- package/dist/commonjs/toast/lib/Toast.js +1 -1
- package/dist/commonjs/toast/lib/ToastBody.js +1 -1
- package/dist/commonjs/toast/lib/ToastCloseIcon.js +1 -1
- package/dist/commonjs/toast/lib/ToastIcon.js +1 -1
- package/dist/commonjs/toast/lib/ToastMessage.js +1 -1
- package/dist/es6/action-bar/lib/ActionBar.d.ts +128 -0
- package/dist/es6/action-bar/lib/ActionBar.d.ts.map +1 -1
- package/dist/es6/action-bar/lib/ActionBarItem.d.ts +8 -0
- package/dist/es6/action-bar/lib/ActionBarItem.d.ts.map +1 -1
- package/dist/es6/action-bar/lib/ActionBarList.d.ts +8 -0
- package/dist/es6/action-bar/lib/ActionBarList.d.ts.map +1 -1
- package/dist/es6/action-bar/lib/ActionBarOverflowButton.d.ts +8 -0
- package/dist/es6/action-bar/lib/ActionBarOverflowButton.d.ts.map +1 -1
- package/dist/es6/action-bar/lib/useActionBarModel.d.ts +124 -0
- package/dist/es6/action-bar/lib/useActionBarModel.d.ts.map +1 -1
- package/dist/es6/avatar/lib/Avatar.js +21 -21
- package/dist/es6/badge/lib/CountBadge.js +3 -3
- package/dist/es6/breadcrumbs/lib/Breadcrumbs.d.ts +515 -53
- package/dist/es6/breadcrumbs/lib/Breadcrumbs.d.ts.map +1 -1
- package/dist/es6/breadcrumbs/lib/BreadcrumbsCurrentItem.d.ts +8 -0
- package/dist/es6/breadcrumbs/lib/BreadcrumbsCurrentItem.d.ts.map +1 -1
- package/dist/es6/breadcrumbs/lib/BreadcrumbsItem.d.ts +8 -0
- package/dist/es6/breadcrumbs/lib/BreadcrumbsItem.d.ts.map +1 -1
- package/dist/es6/breadcrumbs/lib/BreadcrumbsList.d.ts +4 -0
- package/dist/es6/breadcrumbs/lib/BreadcrumbsList.d.ts.map +1 -1
- package/dist/es6/breadcrumbs/lib/BreadcrumbsOverflowButton.d.ts +8 -0
- package/dist/es6/breadcrumbs/lib/BreadcrumbsOverflowButton.d.ts.map +1 -1
- package/dist/es6/breadcrumbs/lib/hooks/useBreadcrumbsModel.d.ts +124 -0
- package/dist/es6/breadcrumbs/lib/hooks/useBreadcrumbsModel.d.ts.map +1 -1
- package/dist/es6/button/lib/BaseButton.js +21 -21
- package/dist/es6/button/lib/DeleteButton.js +1 -1
- package/dist/es6/button/lib/PrimaryButton.js +2 -2
- package/dist/es6/button/lib/SecondaryButton.js +2 -2
- package/dist/es6/button/lib/TertiaryButton.js +18 -18
- package/dist/es6/button/lib/parts/ButtonLabelIcon.d.ts.map +1 -1
- package/dist/es6/button/lib/parts/ButtonLabelIcon.js +2 -1
- package/dist/es6/card/lib/Card.js +1 -1
- package/dist/es6/card/lib/CardBody.js +1 -1
- package/dist/es6/card/lib/CardHeading.js +1 -1
- package/dist/es6/checkbox/lib/CheckBackground.js +3 -3
- package/dist/es6/checkbox/lib/CheckboxCheck.js +5 -5
- package/dist/es6/checkbox/lib/CheckboxContainer.js +1 -1
- package/dist/es6/checkbox/lib/CheckboxInput.js +5 -5
- package/dist/es6/checkbox/lib/CheckboxRipple.js +1 -1
- package/dist/es6/collection/lib/ListBox.js +3 -3
- package/dist/es6/collection/lib/useOverflowListItemMeasure.d.ts +4 -0
- package/dist/es6/collection/lib/useOverflowListItemMeasure.d.ts.map +1 -1
- package/dist/es6/collection/lib/useOverflowListMeasure.d.ts +4 -0
- package/dist/es6/collection/lib/useOverflowListMeasure.d.ts.map +1 -1
- package/dist/es6/collection/lib/useOverflowListModel.d.ts +125 -1
- package/dist/es6/collection/lib/useOverflowListModel.d.ts.map +1 -1
- package/dist/es6/collection/lib/useOverflowListModel.js +20 -11
- package/dist/es6/collection/lib/useOverflowListTarget.d.ts +4 -0
- package/dist/es6/collection/lib/useOverflowListTarget.d.ts.map +1 -1
- package/dist/es6/combobox/lib/ComboboxMenuList.js +1 -1
- package/dist/es6/common/lib/AccessibleHide.js +1 -1
- package/dist/es6/common/lib/CanvasProvider.js +1 -1
- package/dist/es6/form-field/lib/FormFieldContainer.js +1 -1
- package/dist/es6/form-field/lib/FormFieldField.js +1 -1
- package/dist/es6/form-field/lib/FormFieldGroupLabel.js +5 -5
- package/dist/es6/form-field/lib/FormFieldGroupList.js +3 -3
- package/dist/es6/form-field/lib/FormFieldHint.js +3 -3
- package/dist/es6/form-field/lib/FormFieldLabel.js +6 -6
- package/dist/es6/form-field/lib/formFieldStencil.js +8 -8
- package/dist/es6/icon/lib/AccentIcon.js +2 -2
- package/dist/es6/icon/lib/AppletIcon.js +1 -1
- package/dist/es6/icon/lib/Graphic.js +2 -2
- package/dist/es6/icon/lib/Svg.js +2 -2
- package/dist/es6/icon/lib/SystemIcon.js +1 -1
- package/dist/es6/icon/lib/SystemIconCircle.js +1 -1
- package/dist/es6/loading-dots/lib/LoadingDots.js +3 -3
- package/dist/es6/menu/lib/MenuCard.js +1 -1
- package/dist/es6/menu/lib/MenuItem.js +1 -1
- package/dist/es6/menu/lib/MenuList.js +3 -3
- package/dist/es6/menu/lib/MenuOption.js +1 -1
- package/dist/es6/modal/lib/ModalBody.js +1 -1
- package/dist/es6/modal/lib/ModalCard.js +1 -1
- package/dist/es6/modal/lib/ModalHeading.js +1 -1
- package/dist/es6/modal/lib/ModalOverflowOverlay.js +1 -1
- package/dist/es6/modal/lib/ModalOverlay.js +2 -2
- package/dist/es6/popup/lib/PopupBody.js +1 -1
- package/dist/es6/popup/lib/PopupCard.js +2 -2
- package/dist/es6/popup/lib/PopupCloseIcon.js +1 -1
- package/dist/es6/popup/lib/PopupHeading.js +1 -1
- package/dist/es6/select/lib/SelectCard.js +1 -1
- package/dist/es6/select/lib/SelectInput.js +3 -3
- package/dist/es6/switch/lib/Switch.js +7 -7
- package/dist/es6/table/lib/Table.js +1 -1
- package/dist/es6/table/lib/TableBody.js +1 -1
- package/dist/es6/table/lib/TableCaption.js +1 -1
- package/dist/es6/table/lib/TableCell.js +1 -1
- package/dist/es6/table/lib/TableFooter.js +1 -1
- package/dist/es6/table/lib/TableHead.js +1 -1
- package/dist/es6/table/lib/TableHeader.js +1 -1
- package/dist/es6/table/lib/TableRow.js +1 -1
- package/dist/es6/tabs/lib/Tabs.d.ts +146 -0
- package/dist/es6/tabs/lib/Tabs.d.ts.map +1 -1
- package/dist/es6/tabs/lib/TabsItem.d.ts +8 -0
- package/dist/es6/tabs/lib/TabsItem.d.ts.map +1 -1
- package/dist/es6/tabs/lib/TabsList.d.ts +8 -0
- package/dist/es6/tabs/lib/TabsList.d.ts.map +1 -1
- package/dist/es6/tabs/lib/TabsOverflowButton.d.ts +8 -0
- package/dist/es6/tabs/lib/TabsOverflowButton.d.ts.map +1 -1
- package/dist/es6/tabs/lib/TabsPanel.d.ts +8 -0
- package/dist/es6/tabs/lib/TabsPanel.d.ts.map +1 -1
- package/dist/es6/tabs/lib/TabsPanels.d.ts +4 -0
- package/dist/es6/tabs/lib/TabsPanels.d.ts.map +1 -1
- package/dist/es6/tabs/lib/useTabsModel.d.ts +150 -0
- package/dist/es6/tabs/lib/useTabsModel.d.ts.map +1 -1
- package/dist/es6/text/lib/LabelText.js +6 -6
- package/dist/es6/text/lib/Text.js +16 -16
- package/dist/es6/text/lib/TypeLevelComponents.js +4 -4
- package/dist/es6/text-area/lib/TextArea.js +5 -5
- package/dist/es6/text-input/lib/InputGroup.js +6 -6
- package/dist/es6/text-input/lib/TextInput.js +5 -5
- package/dist/es6/toast/lib/Toast.js +1 -1
- package/dist/es6/toast/lib/ToastBody.js +1 -1
- package/dist/es6/toast/lib/ToastCloseIcon.js +1 -1
- package/dist/es6/toast/lib/ToastIcon.js +1 -1
- package/dist/es6/toast/lib/ToastMessage.js +1 -1
- package/package.json +4 -4
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import {ButtonSizes} from '../types';
|
|
3
3
|
import {createComponent} from '@workday/canvas-kit-react/common';
|
|
4
4
|
import {SystemIcon, SystemIconProps} from '@workday/canvas-kit-react/icon';
|
|
5
|
+
import {px2rem} from '@workday/canvas-kit-styling';
|
|
5
6
|
|
|
6
7
|
export interface ButtonLabelIconProps extends Partial<SystemIconProps> {
|
|
7
8
|
/**
|
|
@@ -42,8 +43,8 @@ export const ButtonLabelIcon = createComponent('span')({
|
|
|
42
43
|
size={iconSize}
|
|
43
44
|
icon={icon}
|
|
44
45
|
shouldMirror={shouldMirrorIcon}
|
|
45
|
-
width={
|
|
46
|
-
height={
|
|
46
|
+
width={px2rem(iconSize)}
|
|
47
|
+
height={px2rem(iconSize)}
|
|
47
48
|
display="inline-block"
|
|
48
49
|
{...elemProps}
|
|
49
50
|
/>
|
|
@@ -6,10 +6,11 @@ import {Item} from './useBaseListModel';
|
|
|
6
6
|
|
|
7
7
|
export function getHiddenIds(
|
|
8
8
|
containerWidth: number,
|
|
9
|
+
containerGap: number,
|
|
9
10
|
overflowTargetWidth: number,
|
|
10
11
|
itemWidthCache: Record<string, number>,
|
|
11
12
|
selectedIds: string[] | 'all',
|
|
12
|
-
items
|
|
13
|
+
items: Item<any>[]
|
|
13
14
|
): string[] {
|
|
14
15
|
/** Allows us to prioritize showing the selected item */
|
|
15
16
|
let selectedKey: undefined | string;
|
|
@@ -18,17 +19,22 @@ export function getHiddenIds(
|
|
|
18
19
|
/** Tally ids that won't fit inside the container. These will be used by components to hide
|
|
19
20
|
* elements that won't fit in the container */
|
|
20
21
|
const hiddenIds: string[] = [];
|
|
22
|
+
/** Track if gap should be calculated since gap doesn't apply to the width of the first item, only
|
|
23
|
+
* consecutive items */
|
|
24
|
+
let shouldAddGap = false;
|
|
25
|
+
|
|
21
26
|
if (selectedIds !== 'all' && selectedIds.length) {
|
|
22
|
-
if (items
|
|
27
|
+
if (items.length) {
|
|
23
28
|
// If selectedIds[0] is not in items, use the first id from items
|
|
24
29
|
selectedKey = items.find(item => item.id === selectedIds[0]) ? selectedIds[0] : items[0].id;
|
|
25
|
-
} else {
|
|
26
|
-
selectedKey = selectedIds[0];
|
|
27
30
|
}
|
|
28
31
|
}
|
|
29
32
|
|
|
30
33
|
if (
|
|
31
|
-
Object.keys(itemWidthCache).reduce(
|
|
34
|
+
Object.keys(itemWidthCache).reduce(
|
|
35
|
+
(sum, key, index) => sum + itemWidthCache[key] + (index > 0 ? containerGap : 0),
|
|
36
|
+
0
|
|
37
|
+
) <= containerWidth
|
|
32
38
|
) {
|
|
33
39
|
// All items fit, return empty array
|
|
34
40
|
return [];
|
|
@@ -39,6 +45,7 @@ export function getHiddenIds(
|
|
|
39
45
|
} else {
|
|
40
46
|
// at least the selected item and overflow target fit. Update our itemWidth with the sum
|
|
41
47
|
itemWidth += itemWidthCache[selectedKey] + overflowTargetWidth;
|
|
48
|
+
shouldAddGap = true;
|
|
42
49
|
}
|
|
43
50
|
} else {
|
|
44
51
|
itemWidth += overflowTargetWidth;
|
|
@@ -46,7 +53,8 @@ export function getHiddenIds(
|
|
|
46
53
|
|
|
47
54
|
for (const key in itemWidthCache) {
|
|
48
55
|
if (key !== selectedKey) {
|
|
49
|
-
itemWidth += itemWidthCache[key];
|
|
56
|
+
itemWidth += itemWidthCache[key] + (shouldAddGap ? containerGap : 0);
|
|
57
|
+
shouldAddGap = true;
|
|
50
58
|
if (itemWidth > containerWidth) {
|
|
51
59
|
hiddenIds.push(key);
|
|
52
60
|
}
|
|
@@ -75,6 +83,7 @@ export const useOverflowListModel = createModelHook({
|
|
|
75
83
|
const [hiddenIds, setHiddenIds] = React.useState(config.initialHiddenIds);
|
|
76
84
|
const [itemWidthCache, setItemWidthCache] = React.useState<Record<string, number>>({});
|
|
77
85
|
const [containerWidth, setContainerWidth] = React.useState(0);
|
|
86
|
+
const [containerGap, setContainerGap] = React.useState(0);
|
|
78
87
|
const containerWidthRef = React.useRef(0);
|
|
79
88
|
const itemWidthCacheRef = React.useRef(itemWidthCache);
|
|
80
89
|
const [overflowTargetWidth, setOverflowTargetWidth] = React.useState(0);
|
|
@@ -96,6 +105,7 @@ export const useOverflowListModel = createModelHook({
|
|
|
96
105
|
hiddenIds: internalHiddenIds,
|
|
97
106
|
itemWidthCache,
|
|
98
107
|
containerWidth,
|
|
108
|
+
containerGap,
|
|
99
109
|
overflowTargetWidth,
|
|
100
110
|
};
|
|
101
111
|
|
|
@@ -105,6 +115,7 @@ export const useOverflowListModel = createModelHook({
|
|
|
105
115
|
const {selectedIds} = model.selection.select(data.id, state);
|
|
106
116
|
const ids = getHiddenIds(
|
|
107
117
|
containerWidthRef.current,
|
|
118
|
+
containerGap,
|
|
108
119
|
overflowTargetWidthRef.current,
|
|
109
120
|
itemWidthCacheRef.current,
|
|
110
121
|
selectedIds,
|
|
@@ -120,6 +131,21 @@ export const useOverflowListModel = createModelHook({
|
|
|
120
131
|
|
|
121
132
|
const ids = getHiddenIds(
|
|
122
133
|
containerWidthRef.current,
|
|
134
|
+
containerGap,
|
|
135
|
+
overflowTargetWidthRef.current,
|
|
136
|
+
itemWidthCacheRef.current,
|
|
137
|
+
state.selectedIds,
|
|
138
|
+
config.items
|
|
139
|
+
);
|
|
140
|
+
|
|
141
|
+
setHiddenIds(ids);
|
|
142
|
+
},
|
|
143
|
+
setContainerGap(data: {size: number}) {
|
|
144
|
+
setContainerGap(data.size);
|
|
145
|
+
|
|
146
|
+
const ids = getHiddenIds(
|
|
147
|
+
containerWidthRef.current,
|
|
148
|
+
data.size,
|
|
123
149
|
overflowTargetWidthRef.current,
|
|
124
150
|
itemWidthCacheRef.current,
|
|
125
151
|
state.selectedIds,
|
|
@@ -142,6 +168,7 @@ export const useOverflowListModel = createModelHook({
|
|
|
142
168
|
|
|
143
169
|
const ids = getHiddenIds(
|
|
144
170
|
containerWidthRef.current,
|
|
171
|
+
containerGap,
|
|
145
172
|
overflowTargetWidthRef.current,
|
|
146
173
|
itemWidthCacheRef.current,
|
|
147
174
|
state.selectedIds,
|
|
@@ -158,6 +185,7 @@ export const useOverflowListModel = createModelHook({
|
|
|
158
185
|
|
|
159
186
|
const ids = getHiddenIds(
|
|
160
187
|
containerWidthRef.current,
|
|
188
|
+
containerGap,
|
|
161
189
|
overflowTargetWidthRef.current,
|
|
162
190
|
itemWidthCacheRef.current,
|
|
163
191
|
state.selectedIds !== 'all'
|
|
@@ -73,6 +73,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
73
73
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
74
74
|
itemWidthCache: Record<string, number>;
|
|
75
75
|
containerWidth: number;
|
|
76
|
+
containerGap: number;
|
|
76
77
|
overflowTargetWidth: number;
|
|
77
78
|
selectedIds: string[] | "all";
|
|
78
79
|
unselectedIds: string[];
|
|
@@ -104,6 +105,39 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
104
105
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
105
106
|
itemWidthCache: Record<string, number>;
|
|
106
107
|
containerWidth: number;
|
|
108
|
+
containerGap: number;
|
|
109
|
+
overflowTargetWidth: number;
|
|
110
|
+
selectedIds: string[] | "all";
|
|
111
|
+
unselectedIds: string[];
|
|
112
|
+
cursorId: string;
|
|
113
|
+
columnCount: number;
|
|
114
|
+
pageSizeRef: React.MutableRefObject<number>;
|
|
115
|
+
cursorIndexRef: {
|
|
116
|
+
readonly current: number;
|
|
117
|
+
};
|
|
118
|
+
UNSTABLE_virtual: {
|
|
119
|
+
virtualItems: import("../../collection/lib/react-virtual").VirtualItem[];
|
|
120
|
+
totalSize: number;
|
|
121
|
+
scrollToOffset: (index: number, options?: import("../../collection/lib/react-virtual").ScrollToOffsetOptions | undefined) => void;
|
|
122
|
+
scrollToIndex: (index: number, options?: import("../../collection/lib/react-virtual").ScrollToIndexOptions | undefined) => void;
|
|
123
|
+
measure: () => void;
|
|
124
|
+
};
|
|
125
|
+
UNSTABLE_defaultItemHeight: number;
|
|
126
|
+
containerRef: React.RefObject<HTMLDivElement>;
|
|
127
|
+
id: string;
|
|
128
|
+
indexRef: React.MutableRefObject<number>;
|
|
129
|
+
isVirtualized: boolean;
|
|
130
|
+
items: import("../..").Item<any>[];
|
|
131
|
+
}) => void) | undefined;
|
|
132
|
+
onSetContainerGap?: ((data: {
|
|
133
|
+
size: number;
|
|
134
|
+
}, prevState: {
|
|
135
|
+
hiddenIds: string[];
|
|
136
|
+
nonInteractiveIds: string[];
|
|
137
|
+
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
138
|
+
itemWidthCache: Record<string, number>;
|
|
139
|
+
containerWidth: number;
|
|
140
|
+
containerGap: number;
|
|
107
141
|
overflowTargetWidth: number;
|
|
108
142
|
selectedIds: string[] | "all";
|
|
109
143
|
unselectedIds: string[];
|
|
@@ -135,6 +169,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
135
169
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
136
170
|
itemWidthCache: Record<string, number>;
|
|
137
171
|
containerWidth: number;
|
|
172
|
+
containerGap: number;
|
|
138
173
|
overflowTargetWidth: number;
|
|
139
174
|
selectedIds: string[] | "all";
|
|
140
175
|
unselectedIds: string[];
|
|
@@ -167,6 +202,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
167
202
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
168
203
|
itemWidthCache: Record<string, number>;
|
|
169
204
|
containerWidth: number;
|
|
205
|
+
containerGap: number;
|
|
170
206
|
overflowTargetWidth: number;
|
|
171
207
|
selectedIds: string[] | "all";
|
|
172
208
|
unselectedIds: string[];
|
|
@@ -198,6 +234,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
198
234
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
199
235
|
itemWidthCache: Record<string, number>;
|
|
200
236
|
containerWidth: number;
|
|
237
|
+
containerGap: number;
|
|
201
238
|
overflowTargetWidth: number;
|
|
202
239
|
selectedIds: string[] | "all";
|
|
203
240
|
unselectedIds: string[];
|
|
@@ -229,6 +266,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
229
266
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
230
267
|
itemWidthCache: Record<string, number>;
|
|
231
268
|
containerWidth: number;
|
|
269
|
+
containerGap: number;
|
|
232
270
|
overflowTargetWidth: number;
|
|
233
271
|
selectedIds: string[] | "all";
|
|
234
272
|
unselectedIds: string[];
|
|
@@ -260,6 +298,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
260
298
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
261
299
|
itemWidthCache: Record<string, number>;
|
|
262
300
|
containerWidth: number;
|
|
301
|
+
containerGap: number;
|
|
263
302
|
overflowTargetWidth: number;
|
|
264
303
|
selectedIds: string[] | "all";
|
|
265
304
|
unselectedIds: string[];
|
|
@@ -289,6 +328,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
289
328
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
290
329
|
itemWidthCache: Record<string, number>;
|
|
291
330
|
containerWidth: number;
|
|
331
|
+
containerGap: number;
|
|
292
332
|
overflowTargetWidth: number;
|
|
293
333
|
selectedIds: string[] | "all";
|
|
294
334
|
unselectedIds: string[];
|
|
@@ -318,6 +358,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
318
358
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
319
359
|
itemWidthCache: Record<string, number>;
|
|
320
360
|
containerWidth: number;
|
|
361
|
+
containerGap: number;
|
|
321
362
|
overflowTargetWidth: number;
|
|
322
363
|
selectedIds: string[] | "all";
|
|
323
364
|
unselectedIds: string[];
|
|
@@ -347,6 +388,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
347
388
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
348
389
|
itemWidthCache: Record<string, number>;
|
|
349
390
|
containerWidth: number;
|
|
391
|
+
containerGap: number;
|
|
350
392
|
overflowTargetWidth: number;
|
|
351
393
|
selectedIds: string[] | "all";
|
|
352
394
|
unselectedIds: string[];
|
|
@@ -378,6 +420,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
378
420
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
379
421
|
itemWidthCache: Record<string, number>;
|
|
380
422
|
containerWidth: number;
|
|
423
|
+
containerGap: number;
|
|
381
424
|
overflowTargetWidth: number;
|
|
382
425
|
selectedIds: string[] | "all";
|
|
383
426
|
unselectedIds: string[];
|
|
@@ -407,6 +450,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
407
450
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
408
451
|
itemWidthCache: Record<string, number>;
|
|
409
452
|
containerWidth: number;
|
|
453
|
+
containerGap: number;
|
|
410
454
|
overflowTargetWidth: number;
|
|
411
455
|
selectedIds: string[] | "all";
|
|
412
456
|
unselectedIds: string[];
|
|
@@ -436,6 +480,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
436
480
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
437
481
|
itemWidthCache: Record<string, number>;
|
|
438
482
|
containerWidth: number;
|
|
483
|
+
containerGap: number;
|
|
439
484
|
overflowTargetWidth: number;
|
|
440
485
|
selectedIds: string[] | "all";
|
|
441
486
|
unselectedIds: string[];
|
|
@@ -465,6 +510,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
465
510
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
466
511
|
itemWidthCache: Record<string, number>;
|
|
467
512
|
containerWidth: number;
|
|
513
|
+
containerGap: number;
|
|
468
514
|
overflowTargetWidth: number;
|
|
469
515
|
selectedIds: string[] | "all";
|
|
470
516
|
unselectedIds: string[];
|
|
@@ -494,6 +540,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
494
540
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
495
541
|
itemWidthCache: Record<string, number>;
|
|
496
542
|
containerWidth: number;
|
|
543
|
+
containerGap: number;
|
|
497
544
|
overflowTargetWidth: number;
|
|
498
545
|
selectedIds: string[] | "all";
|
|
499
546
|
unselectedIds: string[];
|
|
@@ -523,6 +570,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
523
570
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
524
571
|
itemWidthCache: Record<string, number>;
|
|
525
572
|
containerWidth: number;
|
|
573
|
+
containerGap: number;
|
|
526
574
|
overflowTargetWidth: number;
|
|
527
575
|
selectedIds: string[] | "all";
|
|
528
576
|
unselectedIds: string[];
|
|
@@ -552,6 +600,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
552
600
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
553
601
|
itemWidthCache: Record<string, number>;
|
|
554
602
|
containerWidth: number;
|
|
603
|
+
containerGap: number;
|
|
555
604
|
overflowTargetWidth: number;
|
|
556
605
|
selectedIds: string[] | "all";
|
|
557
606
|
unselectedIds: string[];
|
|
@@ -581,6 +630,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
581
630
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
582
631
|
itemWidthCache: Record<string, number>;
|
|
583
632
|
containerWidth: number;
|
|
633
|
+
containerGap: number;
|
|
584
634
|
overflowTargetWidth: number;
|
|
585
635
|
selectedIds: string[] | "all";
|
|
586
636
|
unselectedIds: string[];
|
|
@@ -610,6 +660,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
610
660
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
611
661
|
itemWidthCache: Record<string, number>;
|
|
612
662
|
containerWidth: number;
|
|
663
|
+
containerGap: number;
|
|
613
664
|
overflowTargetWidth: number;
|
|
614
665
|
selectedIds: string[] | "all";
|
|
615
666
|
unselectedIds: string[];
|
|
@@ -639,6 +690,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
639
690
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
640
691
|
itemWidthCache: Record<string, number>;
|
|
641
692
|
containerWidth: number;
|
|
693
|
+
containerGap: number;
|
|
642
694
|
overflowTargetWidth: number;
|
|
643
695
|
selectedIds: string[] | "all";
|
|
644
696
|
unselectedIds: string[];
|
|
@@ -668,6 +720,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
668
720
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
669
721
|
itemWidthCache: Record<string, number>;
|
|
670
722
|
containerWidth: number;
|
|
723
|
+
containerGap: number;
|
|
671
724
|
overflowTargetWidth: number;
|
|
672
725
|
selectedIds: string[] | "all";
|
|
673
726
|
unselectedIds: string[];
|
|
@@ -700,6 +753,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
700
753
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
701
754
|
itemWidthCache: Record<string, number>;
|
|
702
755
|
containerWidth: number;
|
|
756
|
+
containerGap: number;
|
|
703
757
|
overflowTargetWidth: number;
|
|
704
758
|
selectedIds: string[] | "all";
|
|
705
759
|
unselectedIds: string[];
|
|
@@ -731,6 +785,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
731
785
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
732
786
|
itemWidthCache: Record<string, number>;
|
|
733
787
|
containerWidth: number;
|
|
788
|
+
containerGap: number;
|
|
734
789
|
overflowTargetWidth: number;
|
|
735
790
|
selectedIds: string[] | "all";
|
|
736
791
|
unselectedIds: string[];
|
|
@@ -762,6 +817,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
762
817
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
763
818
|
itemWidthCache: Record<string, number>;
|
|
764
819
|
containerWidth: number;
|
|
820
|
+
containerGap: number;
|
|
765
821
|
overflowTargetWidth: number;
|
|
766
822
|
selectedIds: string[] | "all";
|
|
767
823
|
unselectedIds: string[];
|
|
@@ -794,6 +850,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
794
850
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
795
851
|
itemWidthCache: Record<string, number>;
|
|
796
852
|
containerWidth: number;
|
|
853
|
+
containerGap: number;
|
|
797
854
|
overflowTargetWidth: number;
|
|
798
855
|
selectedIds: string[] | "all";
|
|
799
856
|
unselectedIds: string[];
|
|
@@ -825,6 +882,39 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
825
882
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
826
883
|
itemWidthCache: Record<string, number>;
|
|
827
884
|
containerWidth: number;
|
|
885
|
+
containerGap: number;
|
|
886
|
+
overflowTargetWidth: number;
|
|
887
|
+
selectedIds: string[] | "all";
|
|
888
|
+
unselectedIds: string[];
|
|
889
|
+
cursorId: string;
|
|
890
|
+
columnCount: number;
|
|
891
|
+
pageSizeRef: React.MutableRefObject<number>;
|
|
892
|
+
cursorIndexRef: {
|
|
893
|
+
readonly current: number;
|
|
894
|
+
};
|
|
895
|
+
UNSTABLE_virtual: {
|
|
896
|
+
virtualItems: import("../../collection/lib/react-virtual").VirtualItem[];
|
|
897
|
+
totalSize: number;
|
|
898
|
+
scrollToOffset: (index: number, options?: import("../../collection/lib/react-virtual").ScrollToOffsetOptions | undefined) => void;
|
|
899
|
+
scrollToIndex: (index: number, options?: import("../../collection/lib/react-virtual").ScrollToIndexOptions | undefined) => void;
|
|
900
|
+
measure: () => void;
|
|
901
|
+
};
|
|
902
|
+
UNSTABLE_defaultItemHeight: number;
|
|
903
|
+
containerRef: React.RefObject<HTMLDivElement>;
|
|
904
|
+
id: string;
|
|
905
|
+
indexRef: React.MutableRefObject<number>;
|
|
906
|
+
isVirtualized: boolean;
|
|
907
|
+
items: import("../..").Item<any>[];
|
|
908
|
+
}) => boolean) | undefined;
|
|
909
|
+
shouldSetContainerGap?: ((data: {
|
|
910
|
+
size: number;
|
|
911
|
+
}, state: {
|
|
912
|
+
hiddenIds: string[];
|
|
913
|
+
nonInteractiveIds: string[];
|
|
914
|
+
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
915
|
+
itemWidthCache: Record<string, number>;
|
|
916
|
+
containerWidth: number;
|
|
917
|
+
containerGap: number;
|
|
828
918
|
overflowTargetWidth: number;
|
|
829
919
|
selectedIds: string[] | "all";
|
|
830
920
|
unselectedIds: string[];
|
|
@@ -856,6 +946,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
856
946
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
857
947
|
itemWidthCache: Record<string, number>;
|
|
858
948
|
containerWidth: number;
|
|
949
|
+
containerGap: number;
|
|
859
950
|
overflowTargetWidth: number;
|
|
860
951
|
selectedIds: string[] | "all";
|
|
861
952
|
unselectedIds: string[];
|
|
@@ -888,6 +979,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
888
979
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
889
980
|
itemWidthCache: Record<string, number>;
|
|
890
981
|
containerWidth: number;
|
|
982
|
+
containerGap: number;
|
|
891
983
|
overflowTargetWidth: number;
|
|
892
984
|
selectedIds: string[] | "all";
|
|
893
985
|
unselectedIds: string[];
|
|
@@ -919,6 +1011,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
919
1011
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
920
1012
|
itemWidthCache: Record<string, number>;
|
|
921
1013
|
containerWidth: number;
|
|
1014
|
+
containerGap: number;
|
|
922
1015
|
overflowTargetWidth: number;
|
|
923
1016
|
selectedIds: string[] | "all";
|
|
924
1017
|
unselectedIds: string[];
|
|
@@ -950,6 +1043,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
950
1043
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
951
1044
|
itemWidthCache: Record<string, number>;
|
|
952
1045
|
containerWidth: number;
|
|
1046
|
+
containerGap: number;
|
|
953
1047
|
overflowTargetWidth: number;
|
|
954
1048
|
selectedIds: string[] | "all";
|
|
955
1049
|
unselectedIds: string[];
|
|
@@ -981,6 +1075,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
981
1075
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
982
1076
|
itemWidthCache: Record<string, number>;
|
|
983
1077
|
containerWidth: number;
|
|
1078
|
+
containerGap: number;
|
|
984
1079
|
overflowTargetWidth: number;
|
|
985
1080
|
selectedIds: string[] | "all";
|
|
986
1081
|
unselectedIds: string[];
|
|
@@ -1010,6 +1105,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
1010
1105
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
1011
1106
|
itemWidthCache: Record<string, number>;
|
|
1012
1107
|
containerWidth: number;
|
|
1108
|
+
containerGap: number;
|
|
1013
1109
|
overflowTargetWidth: number;
|
|
1014
1110
|
selectedIds: string[] | "all";
|
|
1015
1111
|
unselectedIds: string[];
|
|
@@ -1039,6 +1135,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
1039
1135
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
1040
1136
|
itemWidthCache: Record<string, number>;
|
|
1041
1137
|
containerWidth: number;
|
|
1138
|
+
containerGap: number;
|
|
1042
1139
|
overflowTargetWidth: number;
|
|
1043
1140
|
selectedIds: string[] | "all";
|
|
1044
1141
|
unselectedIds: string[];
|
|
@@ -1068,6 +1165,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
1068
1165
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
1069
1166
|
itemWidthCache: Record<string, number>;
|
|
1070
1167
|
containerWidth: number;
|
|
1168
|
+
containerGap: number;
|
|
1071
1169
|
overflowTargetWidth: number;
|
|
1072
1170
|
selectedIds: string[] | "all";
|
|
1073
1171
|
unselectedIds: string[];
|
|
@@ -1099,6 +1197,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
1099
1197
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
1100
1198
|
itemWidthCache: Record<string, number>;
|
|
1101
1199
|
containerWidth: number;
|
|
1200
|
+
containerGap: number;
|
|
1102
1201
|
overflowTargetWidth: number;
|
|
1103
1202
|
selectedIds: string[] | "all";
|
|
1104
1203
|
unselectedIds: string[];
|
|
@@ -1128,6 +1227,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
1128
1227
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
1129
1228
|
itemWidthCache: Record<string, number>;
|
|
1130
1229
|
containerWidth: number;
|
|
1230
|
+
containerGap: number;
|
|
1131
1231
|
overflowTargetWidth: number;
|
|
1132
1232
|
selectedIds: string[] | "all";
|
|
1133
1233
|
unselectedIds: string[];
|
|
@@ -1157,6 +1257,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
1157
1257
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
1158
1258
|
itemWidthCache: Record<string, number>;
|
|
1159
1259
|
containerWidth: number;
|
|
1260
|
+
containerGap: number;
|
|
1160
1261
|
overflowTargetWidth: number;
|
|
1161
1262
|
selectedIds: string[] | "all";
|
|
1162
1263
|
unselectedIds: string[];
|
|
@@ -1186,6 +1287,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
1186
1287
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
1187
1288
|
itemWidthCache: Record<string, number>;
|
|
1188
1289
|
containerWidth: number;
|
|
1290
|
+
containerGap: number;
|
|
1189
1291
|
overflowTargetWidth: number;
|
|
1190
1292
|
selectedIds: string[] | "all";
|
|
1191
1293
|
unselectedIds: string[];
|
|
@@ -1215,6 +1317,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
1215
1317
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
1216
1318
|
itemWidthCache: Record<string, number>;
|
|
1217
1319
|
containerWidth: number;
|
|
1320
|
+
containerGap: number;
|
|
1218
1321
|
overflowTargetWidth: number;
|
|
1219
1322
|
selectedIds: string[] | "all";
|
|
1220
1323
|
unselectedIds: string[];
|
|
@@ -1244,6 +1347,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
1244
1347
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
1245
1348
|
itemWidthCache: Record<string, number>;
|
|
1246
1349
|
containerWidth: number;
|
|
1350
|
+
containerGap: number;
|
|
1247
1351
|
overflowTargetWidth: number;
|
|
1248
1352
|
selectedIds: string[] | "all";
|
|
1249
1353
|
unselectedIds: string[];
|
|
@@ -1273,6 +1377,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
1273
1377
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
1274
1378
|
itemWidthCache: Record<string, number>;
|
|
1275
1379
|
containerWidth: number;
|
|
1380
|
+
containerGap: number;
|
|
1276
1381
|
overflowTargetWidth: number;
|
|
1277
1382
|
selectedIds: string[] | "all";
|
|
1278
1383
|
unselectedIds: string[];
|
|
@@ -1302,6 +1407,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
1302
1407
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
1303
1408
|
itemWidthCache: Record<string, number>;
|
|
1304
1409
|
containerWidth: number;
|
|
1410
|
+
containerGap: number;
|
|
1305
1411
|
overflowTargetWidth: number;
|
|
1306
1412
|
selectedIds: string[] | "all";
|
|
1307
1413
|
unselectedIds: string[];
|
|
@@ -1331,6 +1437,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
1331
1437
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
1332
1438
|
itemWidthCache: Record<string, number>;
|
|
1333
1439
|
containerWidth: number;
|
|
1440
|
+
containerGap: number;
|
|
1334
1441
|
overflowTargetWidth: number;
|
|
1335
1442
|
selectedIds: string[] | "all";
|
|
1336
1443
|
unselectedIds: string[];
|
|
@@ -1360,6 +1467,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
1360
1467
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
1361
1468
|
itemWidthCache: Record<string, number>;
|
|
1362
1469
|
containerWidth: number;
|
|
1470
|
+
containerGap: number;
|
|
1363
1471
|
overflowTargetWidth: number;
|
|
1364
1472
|
selectedIds: string[] | "all";
|
|
1365
1473
|
unselectedIds: string[];
|
|
@@ -1389,6 +1497,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
1389
1497
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
1390
1498
|
itemWidthCache: Record<string, number>;
|
|
1391
1499
|
containerWidth: number;
|
|
1500
|
+
containerGap: number;
|
|
1392
1501
|
overflowTargetWidth: number;
|
|
1393
1502
|
selectedIds: string[] | "all";
|
|
1394
1503
|
unselectedIds: string[];
|
|
@@ -1421,6 +1530,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
1421
1530
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
1422
1531
|
itemWidthCache: Record<string, number>;
|
|
1423
1532
|
containerWidth: number;
|
|
1533
|
+
containerGap: number;
|
|
1424
1534
|
overflowTargetWidth: number;
|
|
1425
1535
|
selectedIds: string[] | "all";
|
|
1426
1536
|
unselectedIds: string[];
|
|
@@ -1452,6 +1562,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
1452
1562
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
1453
1563
|
itemWidthCache: Record<string, number>;
|
|
1454
1564
|
containerWidth: number;
|
|
1565
|
+
containerGap: number;
|
|
1455
1566
|
overflowTargetWidth: number;
|
|
1456
1567
|
selectedIds: string[] | "all";
|
|
1457
1568
|
unselectedIds: string[];
|
|
@@ -1483,6 +1594,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
1483
1594
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
1484
1595
|
itemWidthCache: Record<string, number>;
|
|
1485
1596
|
containerWidth: number;
|
|
1597
|
+
containerGap: number;
|
|
1486
1598
|
overflowTargetWidth: number;
|
|
1487
1599
|
selectedIds: string[] | "all";
|
|
1488
1600
|
unselectedIds: string[];
|
|
@@ -1513,6 +1625,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
1513
1625
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
1514
1626
|
itemWidthCache: Record<string, number>;
|
|
1515
1627
|
containerWidth: number;
|
|
1628
|
+
containerGap: number;
|
|
1516
1629
|
overflowTargetWidth: number;
|
|
1517
1630
|
selectedIds: string[] | "all";
|
|
1518
1631
|
unselectedIds: string[];
|
|
@@ -1543,6 +1656,9 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
1543
1656
|
setContainerWidth(data: {
|
|
1544
1657
|
width?: number | undefined;
|
|
1545
1658
|
}): void;
|
|
1659
|
+
setContainerGap(data: {
|
|
1660
|
+
size: number;
|
|
1661
|
+
}): void;
|
|
1546
1662
|
setOverflowTargetWidth(data: {
|
|
1547
1663
|
width: number;
|
|
1548
1664
|
}): void;
|
|
@@ -1686,6 +1802,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
1686
1802
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
1687
1803
|
itemWidthCache: Record<string, number>;
|
|
1688
1804
|
containerWidth: number;
|
|
1805
|
+
containerGap: number;
|
|
1689
1806
|
overflowTargetWidth: number;
|
|
1690
1807
|
selectedIds: string[] | "all";
|
|
1691
1808
|
unselectedIds: string[];
|
|
@@ -1716,6 +1833,9 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
1716
1833
|
setContainerWidth(data: {
|
|
1717
1834
|
width?: number | undefined;
|
|
1718
1835
|
}): void;
|
|
1836
|
+
setContainerGap(data: {
|
|
1837
|
+
size: number;
|
|
1838
|
+
}): void;
|
|
1719
1839
|
setOverflowTargetWidth(data: {
|
|
1720
1840
|
width: number;
|
|
1721
1841
|
}): void;
|
|
@@ -1853,6 +1973,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
1853
1973
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
1854
1974
|
itemWidthCache: Record<string, number>;
|
|
1855
1975
|
containerWidth: number;
|
|
1976
|
+
containerGap: number;
|
|
1856
1977
|
overflowTargetWidth: number;
|
|
1857
1978
|
selectedIds: string[] | "all";
|
|
1858
1979
|
unselectedIds: string[];
|
|
@@ -1883,6 +2004,9 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
1883
2004
|
setContainerWidth(data: {
|
|
1884
2005
|
width?: number | undefined;
|
|
1885
2006
|
}): void;
|
|
2007
|
+
setContainerGap(data: {
|
|
2008
|
+
size: number;
|
|
2009
|
+
}): void;
|
|
1886
2010
|
setOverflowTargetWidth(data: {
|
|
1887
2011
|
width: number;
|
|
1888
2012
|
}): void;
|
|
@@ -2010,6 +2134,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
2010
2134
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
2011
2135
|
itemWidthCache: Record<string, number>;
|
|
2012
2136
|
containerWidth: number;
|
|
2137
|
+
containerGap: number;
|
|
2013
2138
|
overflowTargetWidth: number;
|
|
2014
2139
|
selectedIds: string[] | "all";
|
|
2015
2140
|
unselectedIds: string[];
|
|
@@ -2040,6 +2165,9 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
2040
2165
|
setContainerWidth(data: {
|
|
2041
2166
|
width?: number | undefined;
|
|
2042
2167
|
}): void;
|
|
2168
|
+
setContainerGap(data: {
|
|
2169
|
+
size: number;
|
|
2170
|
+
}): void;
|
|
2043
2171
|
setOverflowTargetWidth(data: {
|
|
2044
2172
|
width: number;
|
|
2045
2173
|
}): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionBar.d.ts","sourceRoot":"","sources":["../../../../action-bar/lib/ActionBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"ActionBar.d.ts","sourceRoot":"","sources":["../../../../action-bar/lib/ActionBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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