greenole-design-system 1.1.94 → 1.1.96
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/base-components/Button/Button.stories.d.ts +3 -0
- package/dist/base-components/Button/Button.styles.d.ts +1 -1
- package/dist/base-components/Button/Button.types.d.ts +0 -2
- package/dist/base-components/DropdownMenu/DropdownMenu.styles.d.ts +7 -5
- package/dist/base-components/DropdownMenu/DropdownMenu.types.d.ts +2 -0
- package/dist/base-components/Loading/Loading.types.d.ts +1 -1
- package/dist/base-components/Loading/loading.styles.d.ts +11 -1
- package/dist/components/Filter/Filter.styles.d.ts +8 -0
- package/dist/components/Filter/Filter.types.d.ts +15 -0
- package/dist/components/Filter/FilterSortMobile.d.ts +4 -0
- package/dist/components/Filter/index.d.ts +2 -1
- package/dist/components/StepperSidebar/StepperSidebar.d.ts +4 -0
- package/dist/components/StepperSidebar/StepperSidebar.stories.d.ts +11 -0
- package/dist/components/StepperSidebar/StepperSidebar.styles.d.ts +32 -0
- package/dist/components/StepperSidebar/StepperSidebar.types.d.ts +24 -0
- package/dist/components/StepperSidebar/index.d.ts +2 -0
- package/dist/components/Table/Table.d.ts +1 -1
- package/dist/components/Table/Table.stories.d.ts +4 -0
- package/dist/components/Table/Table.styles.d.ts +27 -0
- package/dist/components/Table/Table.types.d.ts +12 -0
- package/dist/components/Table/index.d.ts +1 -1
- package/dist/greenole-design-system.cjs.js +1161 -552
- package/dist/greenole-design-system.js +8449 -7088
- package/dist/greenole.css +19 -12
- package/dist/index.css +1 -1
- package/dist/index.d.ts +6 -2
- package/dist/layouts/WizardLayout/WizardLayout.d.ts +4 -0
- package/dist/layouts/WizardLayout/WizardLayout.stories.d.ts +9 -0
- package/dist/layouts/WizardLayout/WizardLayout.story-helpers.d.ts +21 -0
- package/dist/layouts/WizardLayout/WizardLayout.styles.d.ts +37 -0
- package/dist/layouts/WizardLayout/WizardLayout.types.d.ts +58 -0
- package/dist/layouts/WizardLayout/index.d.ts +2 -0
- package/package.json +1 -1
|
@@ -14,3 +14,6 @@ export declare const IconCircle: Story;
|
|
|
14
14
|
export declare const WithIcons: Story;
|
|
15
15
|
export declare const LoadingState: Story;
|
|
16
16
|
export declare const Disabled: Story;
|
|
17
|
+
export declare const VariantMatrix: Story;
|
|
18
|
+
export declare const SizesAndShapes: Story;
|
|
19
|
+
export declare const IconsAndStates: Story;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const ButtonLabel: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
2
2
|
export declare const StyledButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
3
3
|
$variant: "primary" | "secondary" | "tertiary" | "link";
|
|
4
4
|
$size: "sm" | "md" | "lg";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ButtonHTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
import { TypographyVariant } from '../../components/Typography/Typography';
|
|
3
2
|
export type ButtonVariant = "primary" | "secondary" | "tertiary" | "link";
|
|
4
3
|
export type ButtonSize = "sm" | "md" | "lg";
|
|
5
4
|
export type ButtonColor = "default" | "danger";
|
|
@@ -11,7 +10,6 @@ export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
11
10
|
color?: ButtonColor;
|
|
12
11
|
shape?: ButtonShape;
|
|
13
12
|
fullWidth?: boolean;
|
|
14
|
-
typography?: TypographyVariant;
|
|
15
13
|
loading?: boolean;
|
|
16
14
|
iconLeft?: ReactNode;
|
|
17
15
|
iconRight?: ReactNode;
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import { DropdownMenuPositionProps } from './DropdownMenu.types';
|
|
1
|
+
import { DropdownMenuAlign, DropdownMenuPositionProps } from './DropdownMenu.types';
|
|
2
2
|
export declare const DropdownMenuWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
3
|
export declare const DropdownMenuTriggerButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
4
4
|
export declare const DropdownMenuContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
5
5
|
$position: DropdownMenuPositionProps;
|
|
6
|
-
$limit
|
|
7
|
-
$
|
|
8
|
-
$
|
|
6
|
+
$limit: boolean;
|
|
7
|
+
$align: DropdownMenuAlign;
|
|
8
|
+
$usePortal: boolean;
|
|
9
|
+
$visible: boolean;
|
|
9
10
|
}>> & string;
|
|
10
11
|
export declare const DropdownMenuArrow: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
11
12
|
$position: DropdownMenuPositionProps;
|
|
12
|
-
$limit
|
|
13
|
+
$limit: boolean;
|
|
14
|
+
$align: DropdownMenuAlign;
|
|
13
15
|
}>> & string;
|
|
14
16
|
export declare const DropdownMenuContentWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
15
17
|
$showShadow?: boolean;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
export type DropdownMenuAlign = 'start' | 'end';
|
|
2
3
|
export interface DropdownMenuProps {
|
|
3
4
|
children: ReactNode;
|
|
4
5
|
content: ReactNode;
|
|
5
6
|
position?: DropdownMenuPositionProps;
|
|
6
7
|
limit?: boolean;
|
|
8
|
+
align?: DropdownMenuAlign;
|
|
7
9
|
showArrow?: boolean;
|
|
8
10
|
showShadow?: boolean;
|
|
9
11
|
className?: string;
|
|
@@ -5,13 +5,23 @@ export declare const TextContainer: import('styled-components/dist/types').IStyl
|
|
|
5
5
|
export declare const TitleText: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, never>> & string;
|
|
6
6
|
export declare const SubtitleText: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, never>> & string;
|
|
7
7
|
export declare const SpinnerContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const Default: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').SVGProps<SVGSVGElement>, {
|
|
9
9
|
$size: number;
|
|
10
10
|
}>> & string;
|
|
11
11
|
export declare const CSSSpinner: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
12
12
|
$size: number;
|
|
13
13
|
$color: string;
|
|
14
14
|
}>> & string;
|
|
15
|
+
export declare const Spinner: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
16
|
+
$size: number;
|
|
17
|
+
$color: string;
|
|
18
|
+
}>> & string;
|
|
19
|
+
export declare const SpinnerSegment: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
20
|
+
$size: number;
|
|
21
|
+
$color: string;
|
|
22
|
+
$rotation: number;
|
|
23
|
+
$delay: number;
|
|
24
|
+
}>> & string;
|
|
15
25
|
export declare const CompactLoadingContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
16
26
|
export declare const CompactTextContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
17
27
|
export declare const CompactTitle: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, never>> & string;
|
|
@@ -29,3 +29,11 @@ export declare const FilterActionButton: import('styled-components/dist/types').
|
|
|
29
29
|
export declare const CaretIcon: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').SVGProps<SVGSVGElement>, {
|
|
30
30
|
$open: boolean;
|
|
31
31
|
}>> & string;
|
|
32
|
+
export declare const FilterSortMobileTrigger: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
33
|
+
export declare const FilterSortMobileSheet: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
34
|
+
export declare const FilterSortMobileSheetHeader: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
35
|
+
export declare const FilterSortMobileSheetTitle: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>> & string;
|
|
36
|
+
export declare const FilterSortMobileList: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
37
|
+
export declare const FilterSortMobileListItem: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
38
|
+
$selected?: boolean;
|
|
39
|
+
}>> & string;
|
|
@@ -37,3 +37,18 @@ export interface FilterProps {
|
|
|
37
37
|
icon?: ReactNode;
|
|
38
38
|
borderless?: boolean;
|
|
39
39
|
}
|
|
40
|
+
export interface FilterSortMobileOption {
|
|
41
|
+
label: string;
|
|
42
|
+
value: string;
|
|
43
|
+
}
|
|
44
|
+
export interface FilterSortMobileProps {
|
|
45
|
+
options: FilterSortMobileOption[];
|
|
46
|
+
value?: string;
|
|
47
|
+
onChange?: (value: string) => void;
|
|
48
|
+
labelPrefix?: string;
|
|
49
|
+
emptyLabel?: string;
|
|
50
|
+
sheetTitle?: string;
|
|
51
|
+
className?: string;
|
|
52
|
+
disabled?: boolean;
|
|
53
|
+
t?: THookTypes;
|
|
54
|
+
}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export { default as Filter } from './Filter';
|
|
2
|
-
export
|
|
2
|
+
export { default as FilterSortMobile } from './FilterSortMobile';
|
|
3
|
+
export type { FilterProps, FilterItem, FilterItemOption, FilterSelectedValues, FilterOutput, FilterSortMobileProps, FilterSortMobileOption, } from './Filter.types';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { default as StepperSidebar } from './StepperSidebar';
|
|
3
|
+
declare const meta: Meta<typeof StepperSidebar>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof StepperSidebar>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const GuardedSteps: Story;
|
|
8
|
+
export declare const CompletedFlow: Story;
|
|
9
|
+
export declare const MobileViewport: Story;
|
|
10
|
+
export declare const SubtitleAsReactNode: Story;
|
|
11
|
+
export declare const RealisticWorkflowDemo: Story;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare const Sidebar: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
|
|
2
|
+
export declare const Header: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
+
export declare const BackButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
4
|
+
export declare const Title: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>> & string;
|
|
5
|
+
export declare const Subtitle: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, never>> & string;
|
|
6
|
+
export declare const StepsList: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, never>> & string;
|
|
7
|
+
export declare const StepItem: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, never>> & string;
|
|
8
|
+
export declare const IconColumn: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
9
|
+
export declare const Connector: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
10
|
+
$reached: boolean;
|
|
11
|
+
}>> & string;
|
|
12
|
+
export declare const StepNodeButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
13
|
+
$interactive: boolean;
|
|
14
|
+
$isGuardDisabled: boolean;
|
|
15
|
+
}>> & string;
|
|
16
|
+
export declare const CompletedNode: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
17
|
+
export declare const CurrentNode: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
18
|
+
export declare const UpcomingNode: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
19
|
+
export declare const InnerDot: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
20
|
+
$isCurrent?: boolean;
|
|
21
|
+
}>> & string;
|
|
22
|
+
export declare const StepContentButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
23
|
+
$interactive: boolean;
|
|
24
|
+
$isGuardDisabled: boolean;
|
|
25
|
+
}>> & string;
|
|
26
|
+
export declare const StepLabel: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {
|
|
27
|
+
$isDone: boolean;
|
|
28
|
+
$clickable: boolean;
|
|
29
|
+
}>> & string;
|
|
30
|
+
export declare const StepSubtitle: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {
|
|
31
|
+
$clickable: boolean;
|
|
32
|
+
}>> & string;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { THookTypes } from '../../utils/i18n/types';
|
|
3
|
+
export type StepperSidebarStep = {
|
|
4
|
+
id: string;
|
|
5
|
+
label: string;
|
|
6
|
+
subtitle?: ReactNode;
|
|
7
|
+
};
|
|
8
|
+
export type StepperSidebarBaseProps = {
|
|
9
|
+
t?: THookTypes;
|
|
10
|
+
title?: string;
|
|
11
|
+
subtitle?: ReactNode;
|
|
12
|
+
steps: StepperSidebarStep[];
|
|
13
|
+
currentStepId: string;
|
|
14
|
+
};
|
|
15
|
+
export type StepperSidebarInteractionProps = {
|
|
16
|
+
onStepClick?: (stepId: string) => void;
|
|
17
|
+
onBack?: () => void;
|
|
18
|
+
isStepEnabled?: (stepId: string) => boolean;
|
|
19
|
+
backAriaLabel?: string;
|
|
20
|
+
backAriaTarget?: string;
|
|
21
|
+
getStepAriaLabel?: (step: StepperSidebarStep) => string;
|
|
22
|
+
className?: string;
|
|
23
|
+
};
|
|
24
|
+
export type StepperSidebarProps = StepperSidebarBaseProps & StepperSidebarInteractionProps;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { TableProps } from './Table.types';
|
|
3
|
-
declare const Table: <T extends Record<string, any>>({ columns, data, currentPage, totalItems, headerExtra, filterContent, actions, isMobile, itemsPerPage, loading, striped, showSearch, showManageColumns, tableKey, fetchData, queryResult, onPageChange, onItemsPerPageChange, onSearchChange, title, filterConfig, onFilterChange, rowActions, rowActionsLabel, enableRowSelection, rowIdKey, rowIdResolver, onSelectionChange, onCurrentPageDataChange, t: tProp, }: Readonly<TableProps<T>>) => React.JSX.Element;
|
|
3
|
+
declare const Table: <T extends Record<string, any>>({ columns, data, currentPage, totalItems, headerExtra, filterContent, actions, isMobile, itemsPerPage, loading, striped, showSearch, showManageColumns, tableKey, fetchData, queryResult, onPageChange, onItemsPerPageChange, onSearchChange, sortingMode, filteringMode, enableFilterByColumnsMobile, mobileCentralizedFilter, enableFilterByColumns, desktopIntegratedFilter, desktopCentralizedFilter, initialColumnFilters, title, filterConfig, onFilterChange, rowActions, rowActionsLabel, enableRowSelection, rowIdKey, rowIdResolver, onSelectionChange, onCurrentPageDataChange, t: tProp, }: Readonly<TableProps<T>>) => React.JSX.Element;
|
|
4
4
|
export default Table;
|
|
@@ -23,3 +23,7 @@ export declare const WithFilterAndFetchData: Story;
|
|
|
23
23
|
export declare const WithRowActions: Story;
|
|
24
24
|
export declare const WithRowSelection: Story;
|
|
25
25
|
export declare const WithRowSelectionUsingResolver: Story;
|
|
26
|
+
export declare const DesktopVisualizationFilterActive: Story;
|
|
27
|
+
export declare const MobileVisualizationClientSide: Story;
|
|
28
|
+
export declare const MobileVisualizationServerSide: Story;
|
|
29
|
+
export declare const MobileVisualizationSelectorAndActions: Story;
|
|
@@ -15,14 +15,41 @@ export declare const TableHeaderButtons: import('styled-components/dist/types').
|
|
|
15
15
|
$hasTitle?: boolean;
|
|
16
16
|
}>> & string;
|
|
17
17
|
export declare const TableHeaderManageColumns: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
18
|
+
export declare const TableMobileControls: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
19
|
+
export declare const TableMobileSortDirectionButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
20
|
+
export declare const TableMobileSortByWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
21
|
+
export declare const TableMobileFilterButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
22
|
+
export declare const TableMobileFilterSheet: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
23
|
+
export declare const TableMobileFilterSheetHeader: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
24
|
+
export declare const TableMobileFilterSheetTitle: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>> & string;
|
|
25
|
+
export declare const TableMobileFilterSheetSections: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
26
|
+
export declare const TableMobileFilterSheetSection: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
27
|
+
export declare const TableMobileFilterSheetSectionLabel: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, never>> & string;
|
|
28
|
+
export declare const TableMobileFilterSheetActions: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
29
|
+
export declare const TableMobileFilterSheetActionButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
30
|
+
$variant: "reset" | "apply";
|
|
31
|
+
}>> & string;
|
|
18
32
|
export declare const TableHead: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
19
33
|
export declare const TableHeadDropdown: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
20
34
|
export declare const TableContentWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
21
35
|
$hasOpenFilter?: boolean;
|
|
36
|
+
$isMobile?: boolean;
|
|
22
37
|
}>> & string;
|
|
23
38
|
export declare const TableContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, {
|
|
24
39
|
$striped?: boolean;
|
|
25
40
|
}>> & string;
|
|
41
|
+
export declare const MobileTableCards: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
42
|
+
export declare const MobileTableCard: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
|
|
43
|
+
export declare const MobileTableCardTopBar: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
44
|
+
$withSelection?: boolean;
|
|
45
|
+
}>> & string;
|
|
46
|
+
export declare const MobileTableCardSelection: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
47
|
+
export declare const MobileTableCardField: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
48
|
+
export declare const MobileTableCardFieldHeader: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
49
|
+
export declare const MobileTableCardFieldLabel: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
50
|
+
export declare const MobileTableCardFieldValue: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
51
|
+
export declare const MobileTableCardActions: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
52
|
+
export declare const MobileTableEmpty: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
26
53
|
export declare const TableFooter: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
27
54
|
export declare const LoadingWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
28
55
|
export declare const DropdownMenuContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
@@ -30,6 +30,8 @@ export interface TableRowAction<T = any> {
|
|
|
30
30
|
visible?: (row: T) => boolean;
|
|
31
31
|
disabled?: (row: T) => boolean;
|
|
32
32
|
}
|
|
33
|
+
export type TableSortingMode = 'client' | 'server';
|
|
34
|
+
export type TableFilteringMode = 'client' | 'server';
|
|
33
35
|
interface BaseTableProps<T = any> {
|
|
34
36
|
columns: TableColumn[];
|
|
35
37
|
data?: T[];
|
|
@@ -39,6 +41,14 @@ interface BaseTableProps<T = any> {
|
|
|
39
41
|
onPageChange: (page: number) => void;
|
|
40
42
|
onItemsPerPageChange: (items: number) => void;
|
|
41
43
|
onSearchChange?: (value: string) => void;
|
|
44
|
+
sortingMode?: TableSortingMode;
|
|
45
|
+
filteringMode?: TableFilteringMode;
|
|
46
|
+
enableFilterByColumnsMobile?: boolean;
|
|
47
|
+
mobileCentralizedFilter?: boolean;
|
|
48
|
+
enableFilterByColumns?: boolean;
|
|
49
|
+
desktopIntegratedFilter?: boolean;
|
|
50
|
+
desktopCentralizedFilter?: boolean;
|
|
51
|
+
initialColumnFilters?: Record<string, string[]>;
|
|
42
52
|
title?: string;
|
|
43
53
|
searchIconColor?: string;
|
|
44
54
|
sizeSearch?: SearchSize;
|
|
@@ -78,6 +88,8 @@ interface TableWithFetchData<T = any> extends BaseTableProps<T> {
|
|
|
78
88
|
itemsPerPage: number;
|
|
79
89
|
search?: string;
|
|
80
90
|
filters?: Record<string, string[]>;
|
|
91
|
+
sortBy?: string;
|
|
92
|
+
sortDirection?: 'asc' | 'desc';
|
|
81
93
|
}) => Promise<{
|
|
82
94
|
data: T[];
|
|
83
95
|
count: number;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as Table } from './Table';
|
|
2
|
-
export type { TableProps, TableColumn, TableRowAction, TableQueryResult } from './Table.types';
|
|
2
|
+
export type { TableProps, TableColumn, TableRowAction, TableQueryResult, TableSortingMode, TableFilteringMode, } from './Table.types';
|