@cloud-ru/uikit-product-mobile-toolbar 0.4.3 → 0.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/dist/cjs/components/AdaptiveToolbar/AdaptiveToolbar.d.ts +6 -0
- package/dist/cjs/components/AdaptiveToolbar/AdaptiveToolbar.js +22 -0
- package/dist/cjs/components/AdaptiveToolbar/index.d.ts +1 -0
- package/dist/cjs/components/AdaptiveToolbar/index.js +17 -0
- package/dist/cjs/components/MobileToolbar/MobileToolbar.d.ts +7 -0
- package/dist/cjs/components/MobileToolbar/MobileToolbar.js +51 -0
- package/dist/cjs/components/MobileToolbar/helpers.d.ts +4 -0
- package/dist/cjs/components/MobileToolbar/helpers.js +6 -0
- package/dist/cjs/components/MobileToolbar/hooks.d.ts +12 -0
- package/dist/cjs/components/MobileToolbar/hooks.js +30 -0
- package/dist/cjs/components/MobileToolbar/index.d.ts +1 -0
- package/dist/cjs/components/MobileToolbar/index.js +17 -0
- package/dist/cjs/components/MobileToolbar/styles.module.css +91 -0
- package/dist/cjs/components/MobileToolbar/types.d.ts +44 -0
- package/dist/cjs/components/MobileToolbar/types.js +2 -0
- package/dist/cjs/components/MobileToolbar/typesUtils.d.ts +12 -0
- package/dist/cjs/components/MobileToolbar/typesUtils.js +2 -0
- package/dist/cjs/components/index.d.ts +2 -0
- package/dist/cjs/components/index.js +18 -0
- package/dist/cjs/constants.d.ts +19 -0
- package/dist/cjs/constants.js +22 -0
- package/dist/cjs/helperComponents/BulkActions/BulkActions.d.ts +4 -0
- package/dist/cjs/helperComponents/BulkActions/BulkActions.js +38 -0
- package/dist/cjs/helperComponents/BulkActions/constants.d.ts +4 -0
- package/dist/cjs/helperComponents/BulkActions/constants.js +7 -0
- package/dist/cjs/helperComponents/BulkActions/index.d.ts +3 -0
- package/dist/cjs/helperComponents/BulkActions/index.js +19 -0
- package/dist/cjs/helperComponents/BulkActions/styles.module.css +60 -0
- package/dist/cjs/helperComponents/BulkActions/types.d.ts +28 -0
- package/dist/cjs/helperComponents/BulkActions/types.js +2 -0
- package/dist/cjs/helperComponents/BulkActionsCheckbox/BulkActionsCheckbox.d.ts +6 -0
- package/dist/cjs/helperComponents/BulkActionsCheckbox/BulkActionsCheckbox.js +19 -0
- package/dist/cjs/helperComponents/BulkActionsCheckbox/index.d.ts +1 -0
- package/dist/cjs/helperComponents/BulkActionsCheckbox/index.js +17 -0
- package/dist/cjs/helperComponents/BulkActionsCheckbox/styles.module.css +18 -0
- package/dist/cjs/helperComponents/FilterButton/FilterButton.d.ts +6 -0
- package/dist/cjs/helperComponents/FilterButton/FilterButton.js +13 -0
- package/dist/cjs/helperComponents/FilterButton/index.d.ts +1 -0
- package/dist/cjs/helperComponents/FilterButton/index.js +17 -0
- package/dist/cjs/helperComponents/MoreActions/MoreActions.d.ts +12 -0
- package/dist/cjs/helperComponents/MoreActions/MoreActions.js +34 -0
- package/dist/cjs/helperComponents/MoreActions/constants.d.ts +2 -0
- package/dist/cjs/helperComponents/MoreActions/constants.js +8 -0
- package/dist/cjs/helperComponents/MoreActions/index.d.ts +1 -0
- package/dist/cjs/helperComponents/MoreActions/index.js +17 -0
- package/dist/cjs/helperComponents/Separator/Separator.d.ts +1 -0
- package/dist/cjs/helperComponents/Separator/Separator.js +11 -0
- package/dist/cjs/helperComponents/Separator/index.d.ts +1 -0
- package/dist/cjs/helperComponents/Separator/index.js +17 -0
- package/dist/cjs/helperComponents/Separator/styles.module.css +12 -0
- package/dist/cjs/helperComponents/index.d.ts +5 -0
- package/dist/cjs/helperComponents/index.js +21 -0
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.js +17 -0
- package/dist/esm/components/AdaptiveToolbar/AdaptiveToolbar.d.ts +6 -0
- package/dist/esm/components/AdaptiveToolbar/AdaptiveToolbar.js +19 -0
- package/dist/esm/components/AdaptiveToolbar/index.d.ts +1 -0
- package/dist/esm/components/AdaptiveToolbar/index.js +1 -0
- package/dist/esm/components/MobileToolbar/MobileToolbar.d.ts +7 -0
- package/dist/esm/components/MobileToolbar/MobileToolbar.js +45 -0
- package/dist/esm/components/MobileToolbar/helpers.d.ts +4 -0
- package/dist/esm/components/MobileToolbar/helpers.js +3 -0
- package/dist/esm/components/MobileToolbar/hooks.d.ts +12 -0
- package/dist/esm/components/MobileToolbar/hooks.js +27 -0
- package/dist/esm/components/MobileToolbar/index.d.ts +1 -0
- package/dist/esm/components/MobileToolbar/index.js +1 -0
- package/dist/esm/components/MobileToolbar/styles.module.css +91 -0
- package/dist/esm/components/MobileToolbar/types.d.ts +44 -0
- package/dist/esm/components/MobileToolbar/types.js +1 -0
- package/dist/esm/components/MobileToolbar/typesUtils.d.ts +12 -0
- package/dist/esm/components/MobileToolbar/typesUtils.js +1 -0
- package/dist/esm/components/index.d.ts +2 -0
- package/dist/esm/components/index.js +2 -0
- package/dist/esm/constants.d.ts +19 -0
- package/dist/esm/constants.js +19 -0
- package/dist/esm/helperComponents/BulkActions/BulkActions.d.ts +4 -0
- package/dist/esm/helperComponents/BulkActions/BulkActions.js +32 -0
- package/dist/esm/helperComponents/BulkActions/constants.d.ts +4 -0
- package/dist/esm/helperComponents/BulkActions/constants.js +4 -0
- package/dist/esm/helperComponents/BulkActions/index.d.ts +3 -0
- package/dist/esm/helperComponents/BulkActions/index.js +3 -0
- package/dist/esm/helperComponents/BulkActions/styles.module.css +60 -0
- package/dist/esm/helperComponents/BulkActions/types.d.ts +28 -0
- package/dist/esm/helperComponents/BulkActions/types.js +1 -0
- package/dist/esm/helperComponents/BulkActionsCheckbox/BulkActionsCheckbox.d.ts +6 -0
- package/dist/esm/helperComponents/BulkActionsCheckbox/BulkActionsCheckbox.js +13 -0
- package/dist/esm/helperComponents/BulkActionsCheckbox/index.d.ts +1 -0
- package/dist/esm/helperComponents/BulkActionsCheckbox/index.js +1 -0
- package/dist/esm/helperComponents/BulkActionsCheckbox/styles.module.css +18 -0
- package/dist/esm/helperComponents/FilterButton/FilterButton.d.ts +6 -0
- package/dist/esm/helperComponents/FilterButton/FilterButton.js +10 -0
- package/dist/esm/helperComponents/FilterButton/index.d.ts +1 -0
- package/dist/esm/helperComponents/FilterButton/index.js +1 -0
- package/dist/esm/helperComponents/MoreActions/MoreActions.d.ts +12 -0
- package/dist/esm/helperComponents/MoreActions/MoreActions.js +31 -0
- package/dist/esm/helperComponents/MoreActions/constants.d.ts +2 -0
- package/dist/esm/helperComponents/MoreActions/constants.js +5 -0
- package/dist/esm/helperComponents/MoreActions/index.d.ts +1 -0
- package/dist/esm/helperComponents/MoreActions/index.js +1 -0
- package/dist/esm/helperComponents/Separator/Separator.d.ts +1 -0
- package/dist/esm/helperComponents/Separator/Separator.js +5 -0
- package/dist/esm/helperComponents/Separator/index.d.ts +1 -0
- package/dist/esm/helperComponents/Separator/index.js +1 -0
- package/dist/esm/helperComponents/Separator/styles.module.css +12 -0
- package/dist/esm/helperComponents/index.d.ts +5 -0
- package/dist/esm/helperComponents/index.js +5 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +1 -0
- package/package.json +8 -7
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export const TEST_IDS = {
|
|
2
|
+
main: 'toolbar',
|
|
3
|
+
checkbox: 'toolbar__checkbox',
|
|
4
|
+
confirmAction: 'toolbar__confirm-action',
|
|
5
|
+
rejectAction: 'toolbar__reject-action',
|
|
6
|
+
deleteAction: 'toolbar__delete-action',
|
|
7
|
+
deactivateAction: 'toolbar__deactivate-action',
|
|
8
|
+
disabledAction: 'toolbar__disabled-action',
|
|
9
|
+
bulkActions: 'toolbar__bulk-actions',
|
|
10
|
+
moreBulkActionsButton: 'toolbar__more-bulk-actions-button',
|
|
11
|
+
refreshButton: 'toolbar__refresh-button',
|
|
12
|
+
search: 'toolbar__search',
|
|
13
|
+
filterButton: 'toolbar__filter-button',
|
|
14
|
+
filterRow: 'toolbar__filter-row',
|
|
15
|
+
moreActionsButton: 'toolbar__more-actions-button',
|
|
16
|
+
droplist: 'toolbar__droplist',
|
|
17
|
+
option: 'toolbar__droplist-option',
|
|
18
|
+
after: 'toolbar__after',
|
|
19
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useRef, useState } from 'react';
|
|
3
|
+
import { useLocale } from '@sbercloud/uikit-product-locale';
|
|
4
|
+
import { MobileDroplist } from '@sbercloud/uikit-product-mobile-dropdown';
|
|
5
|
+
import { MobileTooltip } from '@sbercloud/uikit-product-mobile-tooltip';
|
|
6
|
+
import { ButtonFunction } from '@snack-uikit/button';
|
|
7
|
+
import { Counter } from '@snack-uikit/counter';
|
|
8
|
+
import { useDynamicList } from '@snack-uikit/utils';
|
|
9
|
+
import { TEST_IDS } from '../../constants';
|
|
10
|
+
import styles from './styles.module.css';
|
|
11
|
+
export function BulkActions({ actions = [], selectedCount, outline }) {
|
|
12
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
13
|
+
const parentContainerRef = useRef(null);
|
|
14
|
+
const { t } = useLocale('MobileToolbar');
|
|
15
|
+
const { visibleItems, hiddenItems } = useDynamicList({
|
|
16
|
+
items: actions,
|
|
17
|
+
parentContainerRef,
|
|
18
|
+
maxVisibleItems: 3,
|
|
19
|
+
});
|
|
20
|
+
return (_jsxs("div", { className: styles.bulkActionsContainer, "data-outline": outline, children: [_jsx("div", { className: styles.counter, children: selectedCount && _jsx(Counter, { value: selectedCount, appearance: 'primary', color: 'decor' }) }), _jsxs("div", { className: styles.bulkActionsWrapper, "data-test-id": TEST_IDS.bulkActions, ref: parentContainerRef, children: [_jsx("div", { className: styles.smallSeparator }), _jsx("div", { className: styles.bulkActions, children: visibleItems.map(({ label, icon: Icon, onClick, disabled, tooltip, 'data-test-id': testId }) => (_jsx(MobileTooltip, { tip: tooltip, open: tooltip ? undefined : false, placement: 'top', "data-test-id": `${testId}-tooltip`, children: _jsx(ButtonFunction, { className: styles.action, "data-test-id": testId, iconPosition: 'before', icon: _jsx(Icon, {}), label: label, size: 'm', onClick: onClick, disabled: disabled }) }, label))) }), hiddenItems.length > 0 && (_jsx(MobileDroplist, { open: isOpen, onOpenChange: setIsOpen, items: hiddenItems.map(({ label, icon: Icon, onClick, disabled, tooltip, 'data-test-id': testId }) => ({
|
|
21
|
+
id: label,
|
|
22
|
+
content: { option: label },
|
|
23
|
+
beforeContent: _jsx(Icon, {}),
|
|
24
|
+
onClick: () => {
|
|
25
|
+
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
26
|
+
setIsOpen(false);
|
|
27
|
+
},
|
|
28
|
+
disabled,
|
|
29
|
+
itemWrapRender: item => (_jsx(MobileTooltip, { tip: tooltip, open: tooltip ? undefined : false, placement: 'right', "data-test-id": `${testId}-tooltip`, children: item })),
|
|
30
|
+
'data-test-id': testId,
|
|
31
|
+
})), children: _jsx(ButtonFunction, { className: styles.moreActionButton, size: 'm', appearance: 'primary', label: t('more'), "data-test-id": TEST_IDS.moreBulkActionsButton }) }))] })] }));
|
|
32
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
.bulkActionsContainer{
|
|
2
|
+
position:relative;
|
|
3
|
+
display:flex;
|
|
4
|
+
flex-direction:row;
|
|
5
|
+
align-items:center;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.counter{
|
|
9
|
+
display:flex;
|
|
10
|
+
align-items:center;
|
|
11
|
+
justify-content:center;
|
|
12
|
+
flex-shrink:0;
|
|
13
|
+
flex-grow:0;
|
|
14
|
+
width:40px;
|
|
15
|
+
height:40px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.bulkActionsWrapper{
|
|
19
|
+
padding-right:var(--space-toolbar-bulk-action-padding-right, 12px);
|
|
20
|
+
width:100%;
|
|
21
|
+
scrollbar-width:none;
|
|
22
|
+
display:flex;
|
|
23
|
+
flex-grow:1;
|
|
24
|
+
flex-shrink:1;
|
|
25
|
+
justify-content:start;
|
|
26
|
+
align-items:center;
|
|
27
|
+
min-width:0;
|
|
28
|
+
-ms-overflow-style:none;
|
|
29
|
+
}
|
|
30
|
+
.bulkActionsWrapper::-webkit-scrollbar{
|
|
31
|
+
display:none;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.bulkActions{
|
|
35
|
+
gap:var(--space-toolbar-bulk-action-gap, 8px);
|
|
36
|
+
display:flex;
|
|
37
|
+
flex-grow:1;
|
|
38
|
+
flex-shrink:1;
|
|
39
|
+
padding-left:8px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.moreActionButton{
|
|
43
|
+
flex-shrink:0;
|
|
44
|
+
padding-left:4px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.action{
|
|
48
|
+
white-space:nowrap;
|
|
49
|
+
}
|
|
50
|
+
.action[data-full-width]:not([data-variant=icon-only]){
|
|
51
|
+
flex-shrink:0;
|
|
52
|
+
width:auto;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.smallSeparator{
|
|
56
|
+
box-sizing:border-box;
|
|
57
|
+
width:var(--border-width-toolbar-separator, 1px);
|
|
58
|
+
height:16px;
|
|
59
|
+
background-color:var(--sys-neutral-decor-default, #dde0ea);
|
|
60
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { JSXElementConstructor } from 'react';
|
|
2
|
+
import { MobileTooltipProps } from '@sbercloud/uikit-product-mobile-tooltip';
|
|
3
|
+
import { ValueOf, WithSupportProps } from '@snack-uikit/utils';
|
|
4
|
+
import { SELECTION_MODE } from './constants';
|
|
5
|
+
export type SelectionMode = ValueOf<typeof SELECTION_MODE>;
|
|
6
|
+
export type BulkAction = WithSupportProps<{
|
|
7
|
+
label: string;
|
|
8
|
+
icon: JSXElementConstructor<{
|
|
9
|
+
className?: string;
|
|
10
|
+
}>;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
tooltip?: MobileTooltipProps['tip'];
|
|
13
|
+
onClick?(): void;
|
|
14
|
+
}>;
|
|
15
|
+
export type BulkActionsProps = {
|
|
16
|
+
/** Список массовых действий */
|
|
17
|
+
actions?: BulkAction[];
|
|
18
|
+
/** Колбек смены значения чекбокса */
|
|
19
|
+
onCheck?(): void;
|
|
20
|
+
/** Значение чекбокса */
|
|
21
|
+
checked?: boolean;
|
|
22
|
+
/** Состояние частичного выбора */
|
|
23
|
+
indeterminate?: boolean;
|
|
24
|
+
/** Режим выбора @default 'multiple'*/
|
|
25
|
+
selectionMode?: SelectionMode;
|
|
26
|
+
/** Количество выбранных элементов */
|
|
27
|
+
selectedCount?: number;
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback } from 'react';
|
|
3
|
+
import { Checkbox } from '@snack-uikit/toggles';
|
|
4
|
+
import { TEST_IDS } from '../../constants';
|
|
5
|
+
import styles from './styles.module.css';
|
|
6
|
+
export function BulkActionsCheckbox({ onCheck, checked, indeterminate }) {
|
|
7
|
+
const handleKeyDown = useCallback((e) => {
|
|
8
|
+
if (e.key === ' ' || e.key === 'Enter') {
|
|
9
|
+
onCheck === null || onCheck === void 0 ? void 0 : onCheck();
|
|
10
|
+
}
|
|
11
|
+
}, [onCheck]);
|
|
12
|
+
return (_jsx("div", { className: styles.checkboxWrapper, onClick: onCheck, tabIndex: 0, role: 'checkbox', "aria-checked": checked, onKeyDown: handleKeyDown, "data-test-id": TEST_IDS.checkbox, children: _jsx(Checkbox, { size: 's', checked: checked, indeterminate: indeterminate, tabIndex: -1 }) }));
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './BulkActionsCheckbox';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './BulkActionsCheckbox';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
.checkboxWrapper{
|
|
2
|
+
border-radius:var(--radius-toolbar-checkbox, 4px);
|
|
3
|
+
width:var(--size-toolbar-checkbox, 40px);
|
|
4
|
+
height:var(--size-toolbar-checkbox, 40px);
|
|
5
|
+
cursor:pointer;
|
|
6
|
+
position:relative;
|
|
7
|
+
display:flex;
|
|
8
|
+
flex-shrink:0;
|
|
9
|
+
align-items:center;
|
|
10
|
+
justify-content:center;
|
|
11
|
+
box-sizing:border-box;
|
|
12
|
+
}
|
|
13
|
+
.checkboxWrapper:focus-visible{
|
|
14
|
+
outline-width:var(--border-state-focus-s-border-width, 2px);
|
|
15
|
+
outline-style:var(--border-state-focus-s-border-style, solid);
|
|
16
|
+
outline-color:var(--border-state-focus-s-border-color, );
|
|
17
|
+
outline-color:var(--sys-available-complementary, #1c1c24);
|
|
18
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { FilterSVG } from '@sbercloud/uikit-product-icons';
|
|
3
|
+
import { useLocale } from '@sbercloud/uikit-product-locale';
|
|
4
|
+
import { MobileTooltip } from '@sbercloud/uikit-product-mobile-tooltip';
|
|
5
|
+
import { ButtonFunction } from '@snack-uikit/button';
|
|
6
|
+
import { TEST_IDS } from '../../constants';
|
|
7
|
+
export function FilterButton({ open, onOpenChange, numberOfFilters }) {
|
|
8
|
+
const { t } = useLocale('Toolbar');
|
|
9
|
+
return (_jsx(MobileTooltip, { tip: open ? t('hideFilters') : t('showFilters'), children: _jsx(ButtonFunction, { size: 'm', icon: _jsx(FilterSVG, {}), onClick: () => onOpenChange(!open), counter: numberOfFilters ? { value: numberOfFilters, appearance: 'neutral' } : undefined, "data-test-id": TEST_IDS.filterButton }) }));
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './FilterButton';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './FilterButton';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { BaseItemProps } from '@sbercloud/uikit-product-mobile-dropdown';
|
|
3
|
+
type Action = {
|
|
4
|
+
tagLabel?: string;
|
|
5
|
+
icon?: ReactNode;
|
|
6
|
+
} & Pick<BaseItemProps, 'content' | 'disabled' | 'onClick'>;
|
|
7
|
+
export type MoreActionsProps = {
|
|
8
|
+
items?: Action[];
|
|
9
|
+
pinTop?: Action[];
|
|
10
|
+
};
|
|
11
|
+
export declare function MoreActions({ items, pinTop }: MoreActionsProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import { MoreSVG } from '@sbercloud/uikit-product-icons';
|
|
4
|
+
import { MobileDroplist } from '@sbercloud/uikit-product-mobile-dropdown';
|
|
5
|
+
import { ButtonFunction } from '@snack-uikit/button';
|
|
6
|
+
import { Tag } from '@snack-uikit/tag';
|
|
7
|
+
import { TEST_IDS } from '../../constants';
|
|
8
|
+
export function MoreActions({ items = [], pinTop }) {
|
|
9
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
10
|
+
return (_jsx(MobileDroplist, { open: isOpen, "data-test-id": TEST_IDS.droplist, onOpenChange: setIsOpen, scroll: true,
|
|
11
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
12
|
+
// @ts-ignore
|
|
13
|
+
size: 'l', pinTop: pinTop === null || pinTop === void 0 ? void 0 : pinTop.map(item => (Object.assign(Object.assign({}, item), { beforeContent: item.icon, onClick: e => {
|
|
14
|
+
var _a;
|
|
15
|
+
(_a = item.onClick) === null || _a === void 0 ? void 0 : _a.call(item, e);
|
|
16
|
+
setIsOpen(false);
|
|
17
|
+
e.stopPropagation();
|
|
18
|
+
} }))), items: items.map(item => ({
|
|
19
|
+
onClick: e => {
|
|
20
|
+
var _a;
|
|
21
|
+
(_a = item.onClick) === null || _a === void 0 ? void 0 : _a.call(item, e);
|
|
22
|
+
setIsOpen(false);
|
|
23
|
+
e.stopPropagation();
|
|
24
|
+
},
|
|
25
|
+
disabled: item.disabled,
|
|
26
|
+
content: item.content,
|
|
27
|
+
beforeContent: item.icon,
|
|
28
|
+
afterContent: item.tagLabel ? _jsx(Tag, { label: item.tagLabel }) : undefined,
|
|
29
|
+
'data-test-id': TEST_IDS.option,
|
|
30
|
+
})), children: _jsx(ButtonFunction, { icon: _jsx(MoreSVG, { size: 24 }), size: 'm', "data-test-id": TEST_IDS.moreActionsButton }) }));
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MoreActions';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MoreActions';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function Separator(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Separator';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Separator';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
.separatorWrapper{
|
|
2
|
+
padding-top:var(--space-toolbar-separator-padding, 0px);
|
|
3
|
+
padding-bottom:var(--space-toolbar-separator-padding, 0px);
|
|
4
|
+
flex-shrink:0;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.separator{
|
|
8
|
+
box-sizing:border-box;
|
|
9
|
+
width:var(--border-width-toolbar-separator, 1px);
|
|
10
|
+
height:100%;
|
|
11
|
+
background-color:var(--sys-neutral-decor-default, #dde0ea);
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloud-ru/uikit-product-mobile-toolbar",
|
|
3
3
|
"title": "Mobile Toolbar",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.5",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css",
|
|
7
7
|
"*.woff",
|
|
@@ -30,17 +30,18 @@
|
|
|
30
30
|
"name": "Akhremenko Grigorii",
|
|
31
31
|
"url": "https://github.com/AGrigorii"
|
|
32
32
|
},
|
|
33
|
+
"contributors": [],
|
|
33
34
|
"license": "Apache-2.0",
|
|
34
35
|
"publishConfig": {
|
|
35
36
|
"access": "public"
|
|
36
37
|
},
|
|
37
38
|
"scripts": {},
|
|
38
39
|
"dependencies": {
|
|
39
|
-
"@cloud-ru/uikit-product-icons": "15.1.
|
|
40
|
-
"@cloud-ru/uikit-product-mobile-chips": "0.8.
|
|
41
|
-
"@cloud-ru/uikit-product-mobile-dropdown": "0.9.
|
|
42
|
-
"@cloud-ru/uikit-product-mobile-tooltip": "0.4.
|
|
43
|
-
"@cloud-ru/uikit-product-utils": "7.0.
|
|
40
|
+
"@cloud-ru/uikit-product-icons": "15.1.3",
|
|
41
|
+
"@cloud-ru/uikit-product-mobile-chips": "0.8.38",
|
|
42
|
+
"@cloud-ru/uikit-product-mobile-dropdown": "0.9.23",
|
|
43
|
+
"@cloud-ru/uikit-product-mobile-tooltip": "0.4.67",
|
|
44
|
+
"@cloud-ru/uikit-product-utils": "7.0.2",
|
|
44
45
|
"@snack-uikit/button": "0.19.15",
|
|
45
46
|
"@snack-uikit/counter": "0.8.9",
|
|
46
47
|
"@snack-uikit/search-private": "0.4.29",
|
|
@@ -54,5 +55,5 @@
|
|
|
54
55
|
"peerDependencies": {
|
|
55
56
|
"@cloud-ru/uikit-product-locale": "*"
|
|
56
57
|
},
|
|
57
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "bf479ecf7238ef20b78f20acaef439efa535d1a1"
|
|
58
59
|
}
|