@synerise/ds-table-new 0.1.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/CHANGELOG.md +10 -0
- package/LICENSE.md +21 -0
- package/README.md +153 -0
- package/dist/Table.const.d.ts +20 -0
- package/dist/Table.const.js +42 -0
- package/dist/Table.d.ts +3 -0
- package/dist/Table.js +51 -0
- package/dist/Table.styles.d.ts +15 -0
- package/dist/Table.styles.js +29 -0
- package/dist/Table.types.d.ts +359 -0
- package/dist/Table.types.js +1 -0
- package/dist/VirtualTable.d.ts +3 -0
- package/dist/VirtualTable.js +222 -0
- package/dist/components/BaseTable/BaseTable.d.ts +3 -0
- package/dist/components/BaseTable/BaseTable.js +114 -0
- package/dist/components/BaseTable/BaseTable.styles.d.ts +28 -0
- package/dist/components/BaseTable/BaseTable.styles.js +41 -0
- package/dist/components/Cell/Action/ActionCell.d.ts +3 -0
- package/dist/components/Cell/Action/ActionCell.js +16 -0
- package/dist/components/Cell/Action/ActionCell.styles.d.ts +5 -0
- package/dist/components/Cell/Action/ActionCell.styles.js +13 -0
- package/dist/components/Cell/Action/ActionCell.types.d.ts +13 -0
- package/dist/components/Cell/Action/ActionCell.types.js +1 -0
- package/dist/components/Cell/AvatarLabel/AvatarLabel.d.ts +4 -0
- package/dist/components/Cell/AvatarLabel/AvatarLabel.js +42 -0
- package/dist/components/Cell/AvatarLabel/AvatarLabel.styles.d.ts +27 -0
- package/dist/components/Cell/AvatarLabel/AvatarLabel.styles.js +49 -0
- package/dist/components/Cell/AvatarLabel/AvatarLabel.types.d.ts +22 -0
- package/dist/components/Cell/AvatarLabel/AvatarLabel.types.js +1 -0
- package/dist/components/Cell/Copyable/Copyable.styles.d.ts +2 -0
- package/dist/components/Cell/Copyable/Copyable.styles.js +14 -0
- package/dist/components/Cell/Copyable/Copyable.types.d.ts +11 -0
- package/dist/components/Cell/Copyable/Copyable.types.js +1 -0
- package/dist/components/Cell/Copyable/CopyableCell.d.ts +4 -0
- package/dist/components/Cell/Copyable/CopyableCell.js +28 -0
- package/dist/components/Cell/Editable/EditableCell.d.ts +4 -0
- package/dist/components/Cell/Editable/EditableCell.js +30 -0
- package/dist/components/Cell/Editable/EditableCell.styles.d.ts +4 -0
- package/dist/components/Cell/Editable/EditableCell.styles.js +14 -0
- package/dist/components/Cell/Editable/EditableCell.types.d.ts +11 -0
- package/dist/components/Cell/Editable/EditableCell.types.js +1 -0
- package/dist/components/Cell/FlagLabel/FlagLabelCell.d.ts +4 -0
- package/dist/components/Cell/FlagLabel/FlagLabelCell.js +16 -0
- package/dist/components/Cell/FlagLabel/FlagLabelCell.styles.d.ts +1 -0
- package/dist/components/Cell/FlagLabel/FlagLabelCell.styles.js +8 -0
- package/dist/components/Cell/FlagLabel/FlagLabelCell.types.d.ts +11 -0
- package/dist/components/Cell/FlagLabel/FlagLabelCell.types.js +1 -0
- package/dist/components/Cell/IconLabel/IconLabel.d.ts +4 -0
- package/dist/components/Cell/IconLabel/IconLabel.js +15 -0
- package/dist/components/Cell/IconLabel/IconLabel.styles.d.ts +3 -0
- package/dist/components/Cell/IconLabel/IconLabel.styles.js +9 -0
- package/dist/components/Cell/IconLabel/IconLabel.types.d.ts +13 -0
- package/dist/components/Cell/IconLabel/IconLabel.types.js +1 -0
- package/dist/components/Cell/IconTooltipCell/IconTooltipCell.d.ts +4 -0
- package/dist/components/Cell/IconTooltipCell/IconTooltipCell.js +19 -0
- package/dist/components/Cell/IconTooltipCell/IconTooltipCell.styles.d.ts +4 -0
- package/dist/components/Cell/IconTooltipCell/IconTooltipCell.styles.js +13 -0
- package/dist/components/Cell/IconTooltipCell/IconTooltipCell.types.d.ts +16 -0
- package/dist/components/Cell/IconTooltipCell/IconTooltipCell.types.js +1 -0
- package/dist/components/Cell/InputNumber/InputNumberCell.d.ts +4 -0
- package/dist/components/Cell/InputNumber/InputNumberCell.js +11 -0
- package/dist/components/Cell/InputNumber/InputNumberCell.styles.d.ts +3 -0
- package/dist/components/Cell/InputNumber/InputNumberCell.styles.js +11 -0
- package/dist/components/Cell/InputNumber/InputNumberCell.types.d.ts +7 -0
- package/dist/components/Cell/InputNumber/InputNumberCell.types.js +1 -0
- package/dist/components/Cell/LabelsWithShowMore/LabelsWithShowMore.d.ts +5 -0
- package/dist/components/Cell/LabelsWithShowMore/LabelsWithShowMore.js +33 -0
- package/dist/components/Cell/LabelsWithShowMore/LabelsWithShowMore.styles.d.ts +3 -0
- package/dist/components/Cell/LabelsWithShowMore/LabelsWithShowMore.styles.js +18 -0
- package/dist/components/Cell/LabelsWithShowMore/LabelsWithShowMore.types.d.ts +22 -0
- package/dist/components/Cell/LabelsWithShowMore/LabelsWithShowMore.types.js +1 -0
- package/dist/components/Cell/LabelsWithShowMore/Modal/Modal.d.ts +4 -0
- package/dist/components/Cell/LabelsWithShowMore/Modal/Modal.js +37 -0
- package/dist/components/Cell/LabelsWithShowMore/Modal/Modal.types.d.ts +15 -0
- package/dist/components/Cell/LabelsWithShowMore/Modal/Modal.types.js +1 -0
- package/dist/components/Cell/Star/StarCell.d.ts +4 -0
- package/dist/components/Cell/Star/StarCell.js +25 -0
- package/dist/components/Cell/Star/StarCell.styles.d.ts +5 -0
- package/dist/components/Cell/Star/StarCell.styles.js +16 -0
- package/dist/components/Cell/Star/StarCell.types.d.ts +17 -0
- package/dist/components/Cell/Star/StarCell.types.js +1 -0
- package/dist/components/Cell/StatusLabel/StatusLabel.d.ts +4 -0
- package/dist/components/Cell/StatusLabel/StatusLabel.js +18 -0
- package/dist/components/Cell/StatusLabel/StatusLabel.styles.d.ts +4 -0
- package/dist/components/Cell/StatusLabel/StatusLabel.styles.js +13 -0
- package/dist/components/Cell/StatusLabel/StatusLabel.types.d.ts +14 -0
- package/dist/components/Cell/StatusLabel/StatusLabel.types.js +1 -0
- package/dist/components/Cell/TagIcon/TagIcon.d.ts +4 -0
- package/dist/components/Cell/TagIcon/TagIcon.js +10 -0
- package/dist/components/Cell/TagIcon/TagIcon.styles.d.ts +3 -0
- package/dist/components/Cell/TagIcon/TagIcon.styles.js +9 -0
- package/dist/components/Cell/TagIcon/TagIcon.types.d.ts +11 -0
- package/dist/components/Cell/TagIcon/TagIcon.types.js +1 -0
- package/dist/components/Cell/TagsGroup/TagsGroup.d.ts +3 -0
- package/dist/components/Cell/TagsGroup/TagsGroup.js +26 -0
- package/dist/components/Cell/TagsGroup/TagsGroup.styles.d.ts +5 -0
- package/dist/components/Cell/TagsGroup/TagsGroup.styles.js +34 -0
- package/dist/components/Cell/TagsGroup/TagsGroup.types.d.ts +9 -0
- package/dist/components/Cell/TagsGroup/TagsGroup.types.js +1 -0
- package/dist/components/Cell/index.d.ts +26 -0
- package/dist/components/Cell/index.js +28 -0
- package/dist/components/TableBody/TableBody.d.ts +3 -0
- package/dist/components/TableBody/TableBody.js +40 -0
- package/dist/components/TableBody/TableBody.styles.d.ts +2 -0
- package/dist/components/TableBody/TableBody.styles.js +15 -0
- package/dist/components/TableBody/TableBodySkeleton/TableBodySkeleton.d.ts +5 -0
- package/dist/components/TableBody/TableBodySkeleton/TableBodySkeleton.js +42 -0
- package/dist/components/TableBody/TableBodySkeleton/TableBodySkeleton.styles.d.ts +9 -0
- package/dist/components/TableBody/TableBodySkeleton/TableBodySkeleton.styles.js +30 -0
- package/dist/components/TableBody/TableCell/TableCell.d.ts +16 -0
- package/dist/components/TableBody/TableCell/TableCell.js +19 -0
- package/dist/components/TableBody/TableCell/TableCell.styles.d.ts +10 -0
- package/dist/components/TableBody/TableCell/TableCell.styles.js +18 -0
- package/dist/components/TableBody/TableEmptyBody/TableEmptyBody.d.ts +3 -0
- package/dist/components/TableBody/TableEmptyBody/TableEmptyBody.js +18 -0
- package/dist/components/TableBody/TableEmptyBody/TableEmptyBody.styles.d.ts +4 -0
- package/dist/components/TableBody/TableEmptyBody/TableEmptyBody.styles.js +23 -0
- package/dist/components/TableBody/TableRow/InfiniteLoaderRow/ErrorItem.d.ts +8 -0
- package/dist/components/TableBody/TableRow/InfiniteLoaderRow/ErrorItem.js +19 -0
- package/dist/components/TableBody/TableRow/InfiniteLoaderRow/ErrorItem.styles.d.ts +1 -0
- package/dist/components/TableBody/TableRow/InfiniteLoaderRow/ErrorItem.styles.js +8 -0
- package/dist/components/TableBody/TableRow/InfiniteLoaderRow/InfiniteLoaderRow.d.ts +14 -0
- package/dist/components/TableBody/TableRow/InfiniteLoaderRow/InfiniteLoaderRow.js +50 -0
- package/dist/components/TableBody/TableRow/InfiniteLoaderRow/LoadingItem.d.ts +5 -0
- package/dist/components/TableBody/TableRow/InfiniteLoaderRow/LoadingItem.js +10 -0
- package/dist/components/TableBody/TableRow/InfiniteLoaderRow/LoadingItem.styles.d.ts +1 -0
- package/dist/components/TableBody/TableRow/InfiniteLoaderRow/LoadingItem.styles.js +9 -0
- package/dist/components/TableBody/TableRow/InfiniteLoaderRow/NoMoreItem.d.ts +5 -0
- package/dist/components/TableBody/TableRow/InfiniteLoaderRow/NoMoreItem.js +10 -0
- package/dist/components/TableBody/TableRow/TableRow.d.ts +5 -0
- package/dist/components/TableBody/TableRow/TableRow.js +29 -0
- package/dist/components/TableBody/TableRow/TableRow.styles.d.ts +7 -0
- package/dist/components/TableBody/TableRow/TableRow.styles.js +15 -0
- package/dist/components/TableBody/TableRow/TableRowVirtual.d.ts +5 -0
- package/dist/components/TableBody/TableRow/TableRowVirtual.js +88 -0
- package/dist/components/TableBody/TableRowSelection/TableRowSelection.d.ts +3 -0
- package/dist/components/TableBody/TableRowSelection/TableRowSelection.js +39 -0
- package/dist/components/TableColumns/TableColumnSorter/SortIcons/DefaultSortIcon.d.ts +5 -0
- package/dist/components/TableColumns/TableColumnSorter/SortIcons/DefaultSortIcon.js +19 -0
- package/dist/components/TableColumns/TableColumnSorter/SortIcons/StringSortIcon.d.ts +5 -0
- package/dist/components/TableColumns/TableColumnSorter/SortIcons/StringSortIcon.js +19 -0
- package/dist/components/TableColumns/TableColumnSorter/TableColumnSorter.const.d.ts +4 -0
- package/dist/components/TableColumns/TableColumnSorter/TableColumnSorter.const.js +8 -0
- package/dist/components/TableColumns/TableColumnSorter/TableColumnSorter.d.ts +3 -0
- package/dist/components/TableColumns/TableColumnSorter/TableColumnSorter.js +75 -0
- package/dist/components/TableColumns/TableColumnSorter/TableColumnSorter.styles.d.ts +30 -0
- package/dist/components/TableColumns/TableColumnSorter/TableColumnSorter.styles.js +11 -0
- package/dist/components/TableColumns/TableColumns.d.ts +3 -0
- package/dist/components/TableColumns/TableColumns.js +28 -0
- package/dist/components/TableColumns/TableColumns.styles.d.ts +18 -0
- package/dist/components/TableColumns/TableColumns.styles.js +35 -0
- package/dist/components/TableHeader/TableCounter/TableCounter.d.ts +3 -0
- package/dist/components/TableHeader/TableCounter/TableCounter.js +33 -0
- package/dist/components/TableHeader/TableCounter/TableCounter.styles.d.ts +1 -0
- package/dist/components/TableHeader/TableCounter/TableCounter.styles.js +8 -0
- package/dist/components/TableHeader/TableHeader.d.ts +3 -0
- package/dist/components/TableHeader/TableHeader.js +103 -0
- package/dist/components/TableHeader/TableHeader.styles.d.ts +18 -0
- package/dist/components/TableHeader/TableHeader.styles.js +48 -0
- package/dist/components/TableHeader/TableHeaderSelection/TableHeaderSelection.d.ts +3 -0
- package/dist/components/TableHeader/TableHeaderSelection/TableHeaderSelection.js +123 -0
- package/dist/components/TableHeader/TableHeaderSelection/TableHeaderSelection.styles.d.ts +8 -0
- package/dist/components/TableHeader/TableHeaderSelection/TableHeaderSelection.styles.js +21 -0
- package/dist/components/TableHeader/TableLimit/TableLimit.d.ts +3 -0
- package/dist/components/TableHeader/TableLimit/TableLimit.js +50 -0
- package/dist/components/TableHeader/TableLimit/TableLimit.styles.d.ts +4 -0
- package/dist/components/TableHeader/TableLimit/TableLimit.styles.js +24 -0
- package/dist/components/TableHeader/TableLimit/TableLimit.types.d.ts +10 -0
- package/dist/components/TableHeader/TableLimit/TableLimit.types.js +1 -0
- package/dist/components/TableHorizontalScroll/TableHorizontalScroll.d.ts +6 -0
- package/dist/components/TableHorizontalScroll/TableHorizontalScroll.js +41 -0
- package/dist/components/TableHorizontalScroll/TableHorizontalScroll.styles.d.ts +12 -0
- package/dist/components/TableHorizontalScroll/TableHorizontalScroll.styles.js +33 -0
- package/dist/components/TableHorizontalScrollBar/TableHorizontalScrollBar.d.ts +6 -0
- package/dist/components/TableHorizontalScrollBar/TableHorizontalScrollBar.js +11 -0
- package/dist/components/TableHorizontalScrollBar/TableHorizontalScrollBar.styles.d.ts +4 -0
- package/dist/components/TableHorizontalScrollBar/TableHorizontalScrollBar.styles.js +14 -0
- package/dist/components/TablePagination/TablePagination.d.ts +3 -0
- package/dist/components/TablePagination/TablePagination.js +19 -0
- package/dist/components/TablePagination/TablePagination.styles.d.ts +1 -0
- package/dist/components/TablePagination/TablePagination.styles.js +8 -0
- package/dist/contexts/SelectionContext.d.ts +4 -0
- package/dist/contexts/SelectionContext.js +10 -0
- package/dist/contexts/StickyContext.d.ts +8 -0
- package/dist/contexts/StickyContext.js +9 -0
- package/dist/contexts/TableContext.d.ts +11 -0
- package/dist/contexts/TableContext.js +13 -0
- package/dist/hooks/useColumnSizing.d.ts +23 -0
- package/dist/hooks/useColumnSizing.js +95 -0
- package/dist/hooks/useDefaultTexts.d.ts +2 -0
- package/dist/hooks/useDefaultTexts.js +95 -0
- package/dist/hooks/useInfiniteScroll.d.ts +13 -0
- package/dist/hooks/useInfiniteScroll.js +58 -0
- package/dist/hooks/useRowKey.d.ts +4 -0
- package/dist/hooks/useRowKey.js +27 -0
- package/dist/hooks/useScrollSync.d.ts +2 -0
- package/dist/hooks/useScrollSync.js +23 -0
- package/dist/hooks/useTable.d.ts +14 -0
- package/dist/hooks/useTable.js +168 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +50 -0
- package/dist/types/table.d.js +1 -0
- package/dist/types/table.d.ts +28 -0
- package/dist/utils/arrayToTrueMap.d.ts +1 -0
- package/dist/utils/arrayToTrueMap.js +7 -0
- package/dist/utils/calculatePixels.d.ts +1 -0
- package/dist/utils/calculatePixels.js +21 -0
- package/dist/utils/compareKeys.d.ts +1 -0
- package/dist/utils/compareKeys.js +16 -0
- package/dist/utils/getChildrenColumnName.d.ts +1 -0
- package/dist/utils/getChildrenColumnName.js +7 -0
- package/dist/utils/getDefaultSkeletonColumns.d.ts +2 -0
- package/dist/utils/getDefaultSkeletonColumns.js +58 -0
- package/dist/utils/getInfiniteScrollPadding.d.ts +2 -0
- package/dist/utils/getInfiniteScrollPadding.js +13 -0
- package/dist/utils/getIsRevealed.d.ts +5 -0
- package/dist/utils/getIsRevealed.js +9 -0
- package/dist/utils/getPaginationConfig.d.ts +10 -0
- package/dist/utils/getPaginationConfig.js +19 -0
- package/dist/utils/getRecordSelectionStatus.d.ts +5 -0
- package/dist/utils/getRecordSelectionStatus.js +13 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.js +6 -0
- package/dist/utils/isRecordSelectable.d.ts +2 -0
- package/dist/utils/isRecordSelectable.js +14 -0
- package/dist/utils/legacyColumnConfigAdapter.d.ts +3 -0
- package/dist/utils/legacyColumnConfigAdapter.js +113 -0
- package/dist/utils/processColumns.d.ts +3 -0
- package/dist/utils/processColumns.js +24 -0
- package/dist/utils/sort.d.ts +3 -0
- package/dist/utils/sort.js +14 -0
- package/package.json +76 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { IconProps } from '@synerise/ds-icon';
|
|
3
|
+
import { WithHTMLAttributes } from '@synerise/ds-utils';
|
|
4
|
+
export type BaseIconLabelProps = {
|
|
5
|
+
label?: ReactNode;
|
|
6
|
+
icon?: IconProps;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export type IconLabelProps = WithHTMLAttributes<HTMLDivElement, BaseIconLabelProps>;
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated
|
|
12
|
+
*/
|
|
13
|
+
export type Props = IconLabelProps;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IconTooltipCellProps } from './IconTooltipCell.types';
|
|
3
|
+
declare const IconTooltipCell: ({ label, icon, tooltip, tooltipIcon, disabled, ...htmlAttributes }: IconTooltipCellProps) => React.JSX.Element;
|
|
4
|
+
export { IconTooltipCell };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import Icon from "@synerise/ds-icon";
|
|
3
|
+
import Tooltip from "@synerise/ds-tooltip";
|
|
4
|
+
import { IconTooltipCell as IconTooltipCell$1, Label } from "./IconTooltipCell.styles.js";
|
|
5
|
+
const IconTooltipCell = ({
|
|
6
|
+
label,
|
|
7
|
+
icon,
|
|
8
|
+
tooltip = {},
|
|
9
|
+
tooltipIcon,
|
|
10
|
+
disabled,
|
|
11
|
+
...htmlAttributes
|
|
12
|
+
}) => /* @__PURE__ */ jsxs(IconTooltipCell$1, { ...htmlAttributes, isDisabled: disabled, children: [
|
|
13
|
+
icon && /* @__PURE__ */ jsx(Icon, { className: "main-icon", ...icon }),
|
|
14
|
+
label && /* @__PURE__ */ jsx(Label, { children: label }),
|
|
15
|
+
tooltipIcon && /* @__PURE__ */ jsx(Tooltip, { ...tooltip, children: /* @__PURE__ */ jsx(Icon, { className: "tooltip-icon", ...tooltipIcon }) })
|
|
16
|
+
] });
|
|
17
|
+
export {
|
|
18
|
+
IconTooltipCell
|
|
19
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
const IconTooltipCell = /* @__PURE__ */ styled.span.withConfig({
|
|
3
|
+
displayName: "IconTooltipCellstyles__IconTooltipCell",
|
|
4
|
+
componentId: "sc-17a3ek9-0"
|
|
5
|
+
})(["display:flex;flex-direction:row;align-items:center;white-space:nowrap;justify-content:flex-start;", " .main-icon{svg{fill:", ";}}.tooltip-icon{svg{fill:", ";}}"], (props) => props.isDisabled && "opacity: 0.4;", (props) => props.theme.palette["grey-600"], (props) => props.theme.palette["grey-400"]);
|
|
6
|
+
const Label = /* @__PURE__ */ styled.span.withConfig({
|
|
7
|
+
displayName: "IconTooltipCellstyles__Label",
|
|
8
|
+
componentId: "sc-17a3ek9-1"
|
|
9
|
+
})(["margin-left:4px;display:flex;white-space:nowrap;"]);
|
|
10
|
+
export {
|
|
11
|
+
IconTooltipCell,
|
|
12
|
+
Label
|
|
13
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { IconProps } from '@synerise/ds-icon';
|
|
3
|
+
import { TooltipProps } from '@synerise/ds-tooltip';
|
|
4
|
+
import { WithHTMLAttributes } from '@synerise/ds-utils';
|
|
5
|
+
export type BaseIconTooltipCellProps = {
|
|
6
|
+
label?: ReactNode;
|
|
7
|
+
icon?: IconProps;
|
|
8
|
+
tooltipIcon?: IconProps;
|
|
9
|
+
tooltip?: TooltipProps;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
};
|
|
12
|
+
export type IconTooltipCellProps = WithHTMLAttributes<HTMLDivElement, BaseIconTooltipCellProps>;
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated
|
|
15
|
+
*/
|
|
16
|
+
export type Props = IconTooltipCellProps;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import InputNumber from "@synerise/ds-input-number";
|
|
3
|
+
import { InputNumberCell as InputNumberCell$1 } from "./InputNumberCell.styles.js";
|
|
4
|
+
const InputNumberCell = ({
|
|
5
|
+
inputNumberProps,
|
|
6
|
+
disabled,
|
|
7
|
+
...htmlAttributes
|
|
8
|
+
}) => /* @__PURE__ */ jsx(InputNumberCell$1, { ...htmlAttributes, isDisabled: disabled, children: /* @__PURE__ */ jsx(InputNumber, { raw: true, disabled, ...inputNumberProps }) });
|
|
9
|
+
export {
|
|
10
|
+
InputNumberCell
|
|
11
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
const InputNumberCell = /* @__PURE__ */ styled.div.withConfig({
|
|
3
|
+
displayName: "InputNumberCellstyles__InputNumberCell",
|
|
4
|
+
componentId: "sc-84nkjs-0"
|
|
5
|
+
})(["display:flex;flex-direction:row;align-items:center;justify-content:flex-start;", " max-width:100%;min-width:80px;"], (props) => props.isDisabled && `
|
|
6
|
+
opacity: 0.4;
|
|
7
|
+
pointer-events: none;
|
|
8
|
+
`);
|
|
9
|
+
export {
|
|
10
|
+
InputNumberCell
|
|
11
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { InputNumberProps } from '@synerise/ds-input-number';
|
|
2
|
+
import { WithHTMLAttributes } from '@synerise/ds-utils';
|
|
3
|
+
export type BaseInputNumberCellProps = {
|
|
4
|
+
inputNumberProps?: InputNumberProps;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export type InputNumberCellProps = WithHTMLAttributes<HTMLDivElement, BaseInputNumberCellProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { LabelsWithShowMoreProps } from './LabelsWithShowMore.types';
|
|
3
|
+
import { DataSourceType } from './Modal/Modal.types';
|
|
4
|
+
declare const LabelsWithShowMore: ({ items, numberOfVisibleItems, renderItem, labelKey, texts, loading, ...htmlAttributes }: LabelsWithShowMoreProps<DataSourceType>) => React.JSX.Element;
|
|
5
|
+
export { LabelsWithShowMore };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useMemo } from "react";
|
|
3
|
+
import Tooltip from "@synerise/ds-tooltip";
|
|
4
|
+
import { CellWrapper, Labels, MoreInfo } from "./LabelsWithShowMore.styles.js";
|
|
5
|
+
import { DetailsModal } from "./Modal/Modal.js";
|
|
6
|
+
const LabelsWithShowMore = ({
|
|
7
|
+
items,
|
|
8
|
+
numberOfVisibleItems,
|
|
9
|
+
renderItem,
|
|
10
|
+
labelKey,
|
|
11
|
+
texts,
|
|
12
|
+
loading,
|
|
13
|
+
...htmlAttributes
|
|
14
|
+
}) => {
|
|
15
|
+
const [modalVisible, setModalVisible] = useState(false);
|
|
16
|
+
const diff = useMemo(() => {
|
|
17
|
+
return items.length - numberOfVisibleItems;
|
|
18
|
+
}, [items, numberOfVisibleItems]);
|
|
19
|
+
const labels = useMemo(() => {
|
|
20
|
+
return items.slice(0, numberOfVisibleItems).map((item) => item[labelKey]).join(", ");
|
|
21
|
+
}, [items, labelKey, numberOfVisibleItems]);
|
|
22
|
+
return /* @__PURE__ */ jsxs(CellWrapper, { ...htmlAttributes, children: [
|
|
23
|
+
/* @__PURE__ */ jsx(Labels, { children: labels }),
|
|
24
|
+
diff > 0 && /* @__PURE__ */ jsx(Tooltip, { title: `${texts.tooltip}`, children: /* @__PURE__ */ jsxs(MoreInfo, { onClick: () => setModalVisible(true), children: [
|
|
25
|
+
"+",
|
|
26
|
+
diff
|
|
27
|
+
] }) }),
|
|
28
|
+
/* @__PURE__ */ jsx(DetailsModal, { visible: modalVisible, hide: () => setModalVisible(false), items, renderItem, labelKey, texts, loading })
|
|
29
|
+
] });
|
|
30
|
+
};
|
|
31
|
+
export {
|
|
32
|
+
LabelsWithShowMore
|
|
33
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const CellWrapper: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const MoreInfo: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const Labels: import('styled-components').StyledComponent<"span", any, {}, never>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
const CellWrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
3
|
+
displayName: "LabelsWithShowMorestyles__CellWrapper",
|
|
4
|
+
componentId: "sc-553lw5-0"
|
|
5
|
+
})(["display:flex;flex-direction:row;align-items:center;justify-content:flex-start;"]);
|
|
6
|
+
const MoreInfo = /* @__PURE__ */ styled.div.withConfig({
|
|
7
|
+
displayName: "LabelsWithShowMorestyles__MoreInfo",
|
|
8
|
+
componentId: "sc-553lw5-1"
|
|
9
|
+
})(["font-size:11px;margin-left:8px;color:", ";display:flex;align-items:center;justify-content:center;cursor:pointer;position:relative;"], (props) => props.theme.palette["grey-500"]);
|
|
10
|
+
const Labels = /* @__PURE__ */ styled.span.withConfig({
|
|
11
|
+
displayName: "LabelsWithShowMorestyles__Labels",
|
|
12
|
+
componentId: "sc-553lw5-2"
|
|
13
|
+
})(["display:block;text-overflow:ellipsis;overflow:hidden;max-width:calc(100% - 32px);"]);
|
|
14
|
+
export {
|
|
15
|
+
CellWrapper,
|
|
16
|
+
Labels,
|
|
17
|
+
MoreInfo
|
|
18
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Component, ReactNode } from 'react';
|
|
2
|
+
import { WithHTMLAttributes } from '@synerise/ds-utils';
|
|
3
|
+
export type ShowMoreTexts = {
|
|
4
|
+
tooltip: ReactNode;
|
|
5
|
+
searchPlaceholder: string;
|
|
6
|
+
searchClear: string;
|
|
7
|
+
modalTitle: ReactNode;
|
|
8
|
+
records: ReactNode;
|
|
9
|
+
};
|
|
10
|
+
export type BaseLabelsWithShowMoreProps<T extends object> = {
|
|
11
|
+
items: T[];
|
|
12
|
+
numberOfVisibleItems: number;
|
|
13
|
+
labelKey: keyof T;
|
|
14
|
+
renderItem: (label: string, item: T) => JSX.Element | Component;
|
|
15
|
+
texts: ShowMoreTexts;
|
|
16
|
+
loading?: boolean;
|
|
17
|
+
};
|
|
18
|
+
export type LabelsWithShowMoreProps<T extends object> = WithHTMLAttributes<HTMLDivElement, BaseLabelsWithShowMoreProps<T>>;
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated
|
|
21
|
+
*/
|
|
22
|
+
export type Props<T extends object> = LabelsWithShowMoreProps<T>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { DataSourceType, ModalProps } from './Modal.types';
|
|
3
|
+
declare const DetailsModal: ({ visible, hide, items, texts, renderItem, labelKey, loading, }: ModalProps<DataSourceType>) => React.JSX.Element;
|
|
4
|
+
export { DetailsModal };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useMemo } from "react";
|
|
3
|
+
import Modal from "@synerise/ds-modal";
|
|
4
|
+
import SearchInput from "@synerise/ds-search/dist/Elements/SearchInput/SearchInput";
|
|
5
|
+
import { VirtualTable } from "../../../../VirtualTable.js";
|
|
6
|
+
const DetailsModal = ({
|
|
7
|
+
visible,
|
|
8
|
+
hide,
|
|
9
|
+
items,
|
|
10
|
+
texts,
|
|
11
|
+
renderItem,
|
|
12
|
+
labelKey,
|
|
13
|
+
loading
|
|
14
|
+
}) => {
|
|
15
|
+
const [searchQuery, setSearchQuery] = useState("");
|
|
16
|
+
const columns = useMemo(() => [{
|
|
17
|
+
id: labelKey,
|
|
18
|
+
accessorKey: labelKey,
|
|
19
|
+
cell: (info) => renderItem(info.getValue(), info.row.original)
|
|
20
|
+
}], [renderItem, labelKey]);
|
|
21
|
+
const filteredItems = useMemo(() => {
|
|
22
|
+
return searchQuery !== "" ? items.filter((item) => {
|
|
23
|
+
const value = item[labelKey];
|
|
24
|
+
return typeof value === "string" && value.toLowerCase().includes(searchQuery.toLowerCase());
|
|
25
|
+
}) : items;
|
|
26
|
+
}, [items, labelKey, searchQuery]);
|
|
27
|
+
return /* @__PURE__ */ jsx(Modal, { size: "small", visible, title: texts.modalTitle, closable: true, onCancel: hide, bodyStyle: {
|
|
28
|
+
padding: 0
|
|
29
|
+
}, footer: null, children: /* @__PURE__ */ jsx(VirtualTable, { maxHeight: 500, cellHeight: 64, data: filteredItems, title: `${filteredItems.length} ${texts.records}`, columns, isLoading: loading, hideTitleBar: true, rowKey: "key", searchComponent: /* @__PURE__ */ jsx(SearchInput, { clearTooltip: texts.searchClear, placeholder: texts.searchPlaceholder, onChange: (value) => {
|
|
30
|
+
setSearchQuery(value);
|
|
31
|
+
}, value: searchQuery, onClear: () => {
|
|
32
|
+
setSearchQuery("");
|
|
33
|
+
}, closeOnClickOutside: true }), hideColumnNames: true }) });
|
|
34
|
+
};
|
|
35
|
+
export {
|
|
36
|
+
DetailsModal
|
|
37
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ObjectStringKeys } from '@synerise/ds-utils';
|
|
3
|
+
import { ShowMoreTexts } from '../LabelsWithShowMore.types';
|
|
4
|
+
export type DataSourceType = Record<string, any> & {
|
|
5
|
+
key: React.ReactText;
|
|
6
|
+
};
|
|
7
|
+
export type ModalProps<T extends DataSourceType> = {
|
|
8
|
+
visible: boolean;
|
|
9
|
+
items: T[];
|
|
10
|
+
hide: () => void;
|
|
11
|
+
renderItem: (label: string, item: T) => JSX.Element | React.Component;
|
|
12
|
+
labelKey: ObjectStringKeys<T>;
|
|
13
|
+
texts: ShowMoreTexts;
|
|
14
|
+
loading?: boolean;
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo } from "react";
|
|
3
|
+
import { useTheme } from "@synerise/ds-core";
|
|
4
|
+
import Icon, { StarFillM, StarM } from "@synerise/ds-icon";
|
|
5
|
+
import Tooltip from "@synerise/ds-tooltip/dist/Tooltip";
|
|
6
|
+
import { StarCell as StarCell$1, StarredIcon } from "./StarCell.styles.js";
|
|
7
|
+
const StarCell = ({
|
|
8
|
+
children,
|
|
9
|
+
active,
|
|
10
|
+
onClick,
|
|
11
|
+
starTooltip,
|
|
12
|
+
...htmlAttributes
|
|
13
|
+
}) => {
|
|
14
|
+
const theme = useTheme();
|
|
15
|
+
const icon = useMemo(() => {
|
|
16
|
+
return active ? /* @__PURE__ */ jsx(Icon, { component: /* @__PURE__ */ jsx(StarFillM, {}), color: theme.palette["yellow-600"] }) : /* @__PURE__ */ jsx(Icon, { component: /* @__PURE__ */ jsx(StarM, {}), color: theme.palette["grey-300"] });
|
|
17
|
+
}, [active, theme.palette]);
|
|
18
|
+
return /* @__PURE__ */ jsxs(StarCell$1, { ...htmlAttributes, children: [
|
|
19
|
+
/* @__PURE__ */ jsx(Tooltip, { title: starTooltip, children: /* @__PURE__ */ jsx(StarredIcon, { active, component: icon, onClick }) }),
|
|
20
|
+
children
|
|
21
|
+
] });
|
|
22
|
+
};
|
|
23
|
+
export {
|
|
24
|
+
StarCell
|
|
25
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const StarCell: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const StarredIcon: import('styled-components').StyledComponent<import('react').ForwardRefExoticComponent<import('@synerise/ds-icon').BaseIconProps & Omit<import('react').HTMLAttributes<HTMLDivElement>, keyof import('@synerise/ds-icon').BaseIconProps> & import('@synerise/ds-utils').DataAttributes & import('react').RefAttributes<HTMLDivElement>>, any, import('@synerise/ds-icon').BaseIconProps & Omit<import('react').HTMLAttributes<HTMLDivElement>, keyof import('@synerise/ds-icon').BaseIconProps> & import('@synerise/ds-utils').DataAttributes & {
|
|
3
|
+
active?: boolean;
|
|
4
|
+
onClick?: () => void;
|
|
5
|
+
}, never>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
import Icon from "@synerise/ds-icon";
|
|
3
|
+
const StarCell = /* @__PURE__ */ styled.div.withConfig({
|
|
4
|
+
displayName: "StarCellstyles__StarCell",
|
|
5
|
+
componentId: "sc-oacj-0"
|
|
6
|
+
})(["display:flex;align-items:center;justify-content:flex-start;"]);
|
|
7
|
+
const StarredIcon = /* @__PURE__ */ styled(Icon).withConfig({
|
|
8
|
+
displayName: "StarCellstyles__StarredIcon",
|
|
9
|
+
componentId: "sc-oacj-1"
|
|
10
|
+
})(["margin-right:16px;", " &:hover{svg{fill:", ";}}"], (props) => !!props.active && `&.icon.icon1.ds-icon svg {
|
|
11
|
+
fill: ${props.theme.palette["yellow-600"]};
|
|
12
|
+
}`, (props) => props.active ? props.theme.palette["yellow-600"] : props.onClick && props.theme.palette["blue-600"]);
|
|
13
|
+
export {
|
|
14
|
+
StarCell,
|
|
15
|
+
StarredIcon
|
|
16
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { WithHTMLAttributes } from '@synerise/ds-utils';
|
|
3
|
+
export type BaseStarCellProps = {
|
|
4
|
+
children: ReactNode | ReactNode[];
|
|
5
|
+
active?: boolean;
|
|
6
|
+
onClick?: () => void;
|
|
7
|
+
/** @deprecated theme will be read from Theme Provider */
|
|
8
|
+
theme?: {
|
|
9
|
+
[key: string]: string;
|
|
10
|
+
};
|
|
11
|
+
starTooltip?: ReactNode;
|
|
12
|
+
};
|
|
13
|
+
export type StarCellProps = WithHTMLAttributes<HTMLDivElement, BaseStarCellProps>;
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated
|
|
16
|
+
*/
|
|
17
|
+
export type Props = StarCellProps;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import Badge from "@synerise/ds-badge";
|
|
3
|
+
import { StatusLabel, Label } from "./StatusLabel.styles.js";
|
|
4
|
+
const StatusLabelCell = ({
|
|
5
|
+
status,
|
|
6
|
+
label,
|
|
7
|
+
customColor,
|
|
8
|
+
disabled,
|
|
9
|
+
...htmlAttributes
|
|
10
|
+
}) => {
|
|
11
|
+
return /* @__PURE__ */ jsxs(StatusLabel, { isDisabled: disabled, ...htmlAttributes, children: [
|
|
12
|
+
/* @__PURE__ */ jsx(Badge, { customColor, status }),
|
|
13
|
+
/* @__PURE__ */ jsx(Label, { children: label })
|
|
14
|
+
] });
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
StatusLabelCell
|
|
18
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
const StatusLabel = /* @__PURE__ */ styled.div.withConfig({
|
|
3
|
+
displayName: "StatusLabelstyles__StatusLabel",
|
|
4
|
+
componentId: "sc-1jilb6u-0"
|
|
5
|
+
})(["display:flex;align-items:center;justify-content:flex-start;", ""], (props) => props.isDisabled && "opacity: 0.4;");
|
|
6
|
+
const Label = /* @__PURE__ */ styled.span.withConfig({
|
|
7
|
+
displayName: "StatusLabelstyles__Label",
|
|
8
|
+
componentId: "sc-1jilb6u-1"
|
|
9
|
+
})(["color:", ";font-weight:500;font-size:13px;line-height:1.38;"], (props) => props.theme.palette["grey-700"]);
|
|
10
|
+
export {
|
|
11
|
+
Label,
|
|
12
|
+
StatusLabel
|
|
13
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Color, Status } from '@synerise/ds-badge/dist/Badge.types';
|
|
3
|
+
import { WithHTMLAttributes } from '@synerise/ds-utils';
|
|
4
|
+
export type BaseStatusLabelProps = {
|
|
5
|
+
status?: Status;
|
|
6
|
+
label: ReactNode;
|
|
7
|
+
customColor?: Color;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export type StatusLabelProps = WithHTMLAttributes<HTMLDivElement, BaseStatusLabelProps>;
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated
|
|
13
|
+
*/
|
|
14
|
+
export type Props = StatusLabelProps;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { TagIcon } from "./TagIcon.styles.js";
|
|
3
|
+
const TagIconCell = ({
|
|
4
|
+
children,
|
|
5
|
+
disabled,
|
|
6
|
+
...htmlAttributes
|
|
7
|
+
}) => /* @__PURE__ */ jsx(TagIcon, { ...htmlAttributes, isDisabled: disabled, children });
|
|
8
|
+
export {
|
|
9
|
+
TagIconCell
|
|
10
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
import { Tag } from "@synerise/ds-tag/dist/Tag.styles";
|
|
3
|
+
const TagIcon = /* @__PURE__ */ styled.div.withConfig({
|
|
4
|
+
displayName: "TagIconstyles__TagIcon",
|
|
5
|
+
componentId: "sc-y21tnf-0"
|
|
6
|
+
})(["display:flex;flex-direction:row;align-items:center;justify-content:flex-start;", " ", "{margin-right:4px;}"], (props) => props.isDisabled && "opacity: 0.4;", Tag);
|
|
7
|
+
export {
|
|
8
|
+
TagIcon
|
|
9
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { WithHTMLAttributes } from '@synerise/ds-utils';
|
|
3
|
+
export type BaseTagIconProps = {
|
|
4
|
+
children: ReactNode | ReactNode[];
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export type TagIconProps = WithHTMLAttributes<HTMLDivElement, BaseTagIconProps>;
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated
|
|
10
|
+
*/
|
|
11
|
+
export type Props = TagIconProps;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useTheme } from "@synerise/ds-core";
|
|
3
|
+
import Icon, { WarningFillM } from "@synerise/ds-icon";
|
|
4
|
+
import DSSkeleton from "@synerise/ds-skeleton";
|
|
5
|
+
import Tags from "@synerise/ds-tags";
|
|
6
|
+
import { TagsGroupSkeleton, TagsGroupWrapper } from "./TagsGroup.styles.js";
|
|
7
|
+
const TagsGroupCell = ({
|
|
8
|
+
disabled,
|
|
9
|
+
isError,
|
|
10
|
+
isLoading,
|
|
11
|
+
tagsProps,
|
|
12
|
+
...htmlAttributes
|
|
13
|
+
}) => {
|
|
14
|
+
const theme = useTheme();
|
|
15
|
+
const isEmpty = !tagsProps?.selected?.length;
|
|
16
|
+
if (isError) {
|
|
17
|
+
return /* @__PURE__ */ jsx(Icon, { component: /* @__PURE__ */ jsx(WarningFillM, {}), color: theme.palette["red-600"], size: 24 });
|
|
18
|
+
}
|
|
19
|
+
if (isLoading) {
|
|
20
|
+
return /* @__PURE__ */ jsx(TagsGroupSkeleton, { children: /* @__PURE__ */ jsx(DSSkeleton, { size: "M", numberOfSkeletons: 1 }) });
|
|
21
|
+
}
|
|
22
|
+
return /* @__PURE__ */ jsx(TagsGroupWrapper, { ...htmlAttributes, isDisabled: disabled, isEmpty, children: /* @__PURE__ */ jsx(Tags, { maxVisibleTags: 1, disabled, addButtonType: isEmpty ? "icon-label" : "single-icon", ...tagsProps, addable: tagsProps?.addable && !disabled, removable: tagsProps?.removable && !disabled }) });
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
TagsGroupCell
|
|
26
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
import { Container, SelectedTags } from "@synerise/ds-tags/dist/Tags.styles";
|
|
3
|
+
import { AddTagButton } from "@synerise/ds-tags/dist/components/AddTags/AddTags.styles";
|
|
4
|
+
const TagsGroupWrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
5
|
+
displayName: "TagsGroupstyles__TagsGroupWrapper",
|
|
6
|
+
componentId: "sc-up89ky-0"
|
|
7
|
+
})(["min-width:0;", "{margin-bottom:0;}", "{flex-flow:nowrap;}", ""], Container, SelectedTags, (props) => props.isDisabled ? `
|
|
8
|
+
opacity: 0.4;
|
|
9
|
+
pointer-events: none;
|
|
10
|
+
` : `
|
|
11
|
+
${AddTagButton}${AddTagButton}${AddTagButton} svg {
|
|
12
|
+
transition: none;
|
|
13
|
+
}
|
|
14
|
+
${!props.isEmpty && `${AddTagButton} {
|
|
15
|
+
flex-shrink: 0
|
|
16
|
+
}`}
|
|
17
|
+
${AddTagButton}:not(:focus) {
|
|
18
|
+
visibility: hidden;
|
|
19
|
+
}
|
|
20
|
+
tr:hover &,
|
|
21
|
+
.virtual-table-row:hover & {
|
|
22
|
+
${AddTagButton} {
|
|
23
|
+
visibility: visible;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
`);
|
|
27
|
+
const TagsGroupSkeleton = /* @__PURE__ */ styled.div.withConfig({
|
|
28
|
+
displayName: "TagsGroupstyles__TagsGroupSkeleton",
|
|
29
|
+
componentId: "sc-up89ky-1"
|
|
30
|
+
})(["display:flex;align-items:center;width:100%;"]);
|
|
31
|
+
export {
|
|
32
|
+
TagsGroupSkeleton,
|
|
33
|
+
TagsGroupWrapper
|
|
34
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TagsProps } from '@synerise/ds-tags';
|
|
2
|
+
import { WithHTMLAttributes } from '@synerise/ds-utils';
|
|
3
|
+
export type BaseTagsGroupProps = {
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
isLoading?: boolean;
|
|
6
|
+
isError?: boolean;
|
|
7
|
+
tagsProps?: TagsProps;
|
|
8
|
+
};
|
|
9
|
+
export type TagsGroupProps = WithHTMLAttributes<HTMLDivElement, BaseTagsGroupProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export { ActionCell } from './Action/ActionCell';
|
|
2
|
+
export { AvatarLabelCell } from './AvatarLabel/AvatarLabel';
|
|
3
|
+
export { CopyableCell } from './Copyable/CopyableCell';
|
|
4
|
+
export { EditableCell } from './Editable/EditableCell';
|
|
5
|
+
export { FlagLabelCell } from './FlagLabel/FlagLabelCell';
|
|
6
|
+
export { IconLabelCell } from './IconLabel/IconLabel';
|
|
7
|
+
export { IconTooltipCell } from './IconTooltipCell/IconTooltipCell';
|
|
8
|
+
export { InputNumberCell } from './InputNumber/InputNumberCell';
|
|
9
|
+
export { LabelsWithShowMore } from './LabelsWithShowMore/LabelsWithShowMore';
|
|
10
|
+
export { StarCell } from './Star/StarCell';
|
|
11
|
+
export { StatusLabelCell } from './StatusLabel/StatusLabel';
|
|
12
|
+
export { TagIconCell } from './TagIcon/TagIcon';
|
|
13
|
+
export { TagsGroupCell } from './TagsGroup/TagsGroup';
|
|
14
|
+
export type { BaseActionCellProps } from './Action/ActionCell.types';
|
|
15
|
+
export type { BaseAvatarLabelProps } from './AvatarLabel/AvatarLabel.types';
|
|
16
|
+
export type { BaseCopyableCellProps } from './Copyable/Copyable.types';
|
|
17
|
+
export type { BaseEditableCellProps } from './Editable/EditableCell.types';
|
|
18
|
+
export type { BaseFlagLabelProps } from './FlagLabel/FlagLabelCell.types';
|
|
19
|
+
export type { BaseIconLabelProps } from './IconLabel/IconLabel.types';
|
|
20
|
+
export type { BaseIconTooltipCellProps } from './IconTooltipCell/IconTooltipCell.types';
|
|
21
|
+
export type { BaseInputNumberCellProps } from './InputNumber/InputNumberCell.types';
|
|
22
|
+
export type { BaseLabelsWithShowMoreProps } from './LabelsWithShowMore/LabelsWithShowMore.types';
|
|
23
|
+
export type { BaseStarCellProps } from './Star/StarCell.types';
|
|
24
|
+
export type { BaseStatusLabelProps } from './StatusLabel/StatusLabel.types';
|
|
25
|
+
export type { BaseTagIconProps } from './TagIcon/TagIcon.types';
|
|
26
|
+
export type { BaseTagsGroupProps } from './TagsGroup/TagsGroup.types';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ActionCell } from "./Action/ActionCell.js";
|
|
2
|
+
import { AvatarLabelCell } from "./AvatarLabel/AvatarLabel.js";
|
|
3
|
+
import { CopyableCell } from "./Copyable/CopyableCell.js";
|
|
4
|
+
import { EditableCell } from "./Editable/EditableCell.js";
|
|
5
|
+
import { FlagLabelCell } from "./FlagLabel/FlagLabelCell.js";
|
|
6
|
+
import { IconLabelCell } from "./IconLabel/IconLabel.js";
|
|
7
|
+
import { IconTooltipCell } from "./IconTooltipCell/IconTooltipCell.js";
|
|
8
|
+
import { InputNumberCell } from "./InputNumber/InputNumberCell.js";
|
|
9
|
+
import { LabelsWithShowMore } from "./LabelsWithShowMore/LabelsWithShowMore.js";
|
|
10
|
+
import { StarCell } from "./Star/StarCell.js";
|
|
11
|
+
import { StatusLabelCell } from "./StatusLabel/StatusLabel.js";
|
|
12
|
+
import { TagIconCell } from "./TagIcon/TagIcon.js";
|
|
13
|
+
import { TagsGroupCell } from "./TagsGroup/TagsGroup.js";
|
|
14
|
+
export {
|
|
15
|
+
ActionCell,
|
|
16
|
+
AvatarLabelCell,
|
|
17
|
+
CopyableCell,
|
|
18
|
+
EditableCell,
|
|
19
|
+
FlagLabelCell,
|
|
20
|
+
IconLabelCell,
|
|
21
|
+
IconTooltipCell,
|
|
22
|
+
InputNumberCell,
|
|
23
|
+
LabelsWithShowMore,
|
|
24
|
+
StarCell,
|
|
25
|
+
StatusLabelCell,
|
|
26
|
+
TagIconCell,
|
|
27
|
+
TagsGroupCell
|
|
28
|
+
};
|