greenole-design-system 1.1.75 → 1.1.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Filter/Filter.stories.d.ts +1 -0
- package/dist/components/Filter/Filter.styles.d.ts +1 -0
- package/dist/components/Filter/Filter.types.d.ts +2 -0
- package/dist/components/Table/Table.types.d.ts +8 -0
- package/dist/components/Tabs/Tabs.stories.d.ts +1 -0
- package/dist/components/Tabs/Tabs.types.d.ts +2 -2
- package/dist/greenole-design-system.cjs.js +191 -187
- package/dist/greenole-design-system.js +2407 -2374
- package/dist/greenole.css +15 -0
- package/dist/index.css +1 -1
- package/package.json +1 -1
|
@@ -3,6 +3,7 @@ export declare const FilterButton: import('styled-components/dist/types').IStyle
|
|
|
3
3
|
$isOpen: boolean;
|
|
4
4
|
$width?: string | number;
|
|
5
5
|
$height?: string | number;
|
|
6
|
+
$borderless?: boolean;
|
|
6
7
|
}>> & string;
|
|
7
8
|
export declare const FilterButtonLabel: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
8
9
|
$placeholderColor?: string;
|
|
@@ -3,6 +3,7 @@ import { THookTypes } from '../../utils/i18n/types';
|
|
|
3
3
|
export interface FilterItemOption {
|
|
4
4
|
label: string;
|
|
5
5
|
value: string;
|
|
6
|
+
onChange?: (checked: boolean, option: FilterItemOption, item: FilterItem) => void;
|
|
6
7
|
}
|
|
7
8
|
export interface FilterItem {
|
|
8
9
|
label?: string;
|
|
@@ -32,4 +33,5 @@ export interface FilterProps {
|
|
|
32
33
|
placeholderColor?: string;
|
|
33
34
|
placeholderFontSize?: string | number;
|
|
34
35
|
icon?: ReactNode;
|
|
36
|
+
borderless?: boolean;
|
|
35
37
|
}
|
|
@@ -49,6 +49,14 @@ interface BaseTableProps<T = any> {
|
|
|
49
49
|
items: FilterItem[];
|
|
50
50
|
initialValues?: FilterSelectedValues;
|
|
51
51
|
label?: string;
|
|
52
|
+
borderless?: boolean;
|
|
53
|
+
icon?: ReactNode;
|
|
54
|
+
usePortal?: boolean;
|
|
55
|
+
container?: HTMLElement | null;
|
|
56
|
+
width?: string | number;
|
|
57
|
+
height?: string | number;
|
|
58
|
+
placeholderColor?: string;
|
|
59
|
+
placeholderFontSize?: string | number;
|
|
52
60
|
};
|
|
53
61
|
onFilterChange?: (output: FilterOutput) => void;
|
|
54
62
|
rowActions?: TableRowAction<T>[];
|
|
@@ -4,6 +4,7 @@ declare const meta: Meta<typeof Tabs>;
|
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof Tabs>;
|
|
6
6
|
export declare const Default: Story;
|
|
7
|
+
export declare const WithoutContent: Story;
|
|
7
8
|
export declare const WithRightElements: Story;
|
|
8
9
|
export declare const DefaultMobile: Story;
|
|
9
10
|
export declare const WithRightElementsMobile: Story;
|
|
@@ -2,10 +2,10 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
import { THookTypes } from '../../utils/i18n/types';
|
|
3
3
|
export interface TabType {
|
|
4
4
|
label: ReactNode;
|
|
5
|
-
children
|
|
5
|
+
children?: ReactNode;
|
|
6
6
|
}
|
|
7
7
|
export interface TabsType {
|
|
8
|
-
children
|
|
8
|
+
children?: ReactNode;
|
|
9
9
|
defaultIndex?: number;
|
|
10
10
|
selectedIndex?: number;
|
|
11
11
|
isMobile?: boolean;
|