chop-logic-components 1.0.7 → 1.0.8
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/containers/form/Form.styled.d.ts +4 -0
- package/dist/components/containers/grid/Grid.styled.d.ts +26 -7
- package/dist/components/containers/grid/elements/Body.d.ts +2 -1
- package/dist/components/containers/grid/elements/Checkbox.d.ts +2 -0
- package/dist/components/containers/grid/elements/ColumnGroup.d.ts +2 -1
- package/dist/components/containers/grid/elements/DataCell.d.ts +2 -0
- package/dist/components/containers/grid/elements/Head.d.ts +2 -1
- package/dist/components/containers/grid/elements/HeaderCell.d.ts +2 -0
- package/dist/components/containers/grid/elements/Row.d.ts +2 -0
- package/dist/components/containers/grid/elements/SelectAllRowsCell.d.ts +2 -0
- package/dist/components/containers/grid/elements/SelectRowCell.d.ts +2 -0
- package/dist/components/containers/tabs/Tabs.styled.d.ts +6 -2
- package/dist/components/containers/tabs/elements/TabButton.d.ts +2 -1
- package/dist/components/containers/tabs/elements/TabContent.d.ts +2 -1
- package/dist/components/containers/tabs/elements/TabList.d.ts +1 -9
- package/dist/components/inputs/button/Button.styled.d.ts +7 -1
- package/dist/components/inputs/checkbox/Checkbox.styled.d.ts +3 -0
- package/dist/components/inputs/multi-select/elements/Combobox.d.ts +2 -13
- package/dist/components/inputs/multi-select/elements/Option.d.ts +2 -6
- package/dist/components/inputs/numeric/NumericInput.styled.d.ts +5 -1
- package/dist/components/inputs/select/elements/Combobox.d.ts +1 -12
- package/dist/components/inputs/select/elements/Dropdown.d.ts +1 -11
- package/dist/components/inputs/text/TextInput.styled.d.ts +5 -1
- package/dist/components/modals/alert/Alert.styled.d.ts +9 -2
- package/dist/components/modals/dialog/Dialog.styled.d.ts +12 -3
- package/dist/components/modals/dialog/elements/Header.d.ts +2 -0
- package/dist/components/modals/tooltip/Tooltip.styled.d.ts +5 -1
- package/dist/contexts/chop-logic-theme-context.d.ts +11 -0
- package/dist/contexts/index.d.ts +1 -0
- package/dist/elements/error-message/ErrorMessage.d.ts +2 -0
- package/dist/elements/error-message/ErrorMessage.styled.d.ts +3 -0
- package/dist/elements/input-inner-button/InputInnerButton.d.ts +2 -0
- package/dist/elements/input-inner-button/InputInnerButton.styled.d.ts +5 -1
- package/dist/elements/label/Label.d.ts +2 -0
- package/dist/elements/label/Label.styled.d.ts +5 -1
- package/dist/elements/styled/Select.styled.d.ts +15 -4
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/use-chop-logic-theme/index.d.ts +1 -0
- package/dist/index.cjs.js +320 -320
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.es.js +8421 -8343
- package/dist/index.es.js.map +1 -1
- package/dist/types/components/_common.d.ts +0 -1
- package/dist/types/components/alert.d.ts +2 -0
- package/dist/types/components/dialog.d.ts +2 -0
- package/dist/types/components/multi-select.d.ts +19 -0
- package/dist/types/components/select.d.ts +25 -0
- package/dist/types/components/tabs.d.ts +10 -0
- package/dist/utils/get-chop-logic-theme.d.ts +1 -1
- package/package.json +3 -2
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
import { ChopLogicTheme } from '../../../types';
|
|
2
|
+
|
|
1
3
|
export declare const StyledForm: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, {
|
|
2
4
|
$columns: number;
|
|
5
|
+
$theme: ChopLogicTheme;
|
|
3
6
|
}>> & string;
|
|
4
7
|
export declare const StyledFormButtonContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
5
8
|
$columns: number;
|
|
9
|
+
$theme: ChopLogicTheme;
|
|
6
10
|
}>> & string;
|
|
@@ -1,18 +1,37 @@
|
|
|
1
|
+
import { ChopLogicTheme } from '../../../types';
|
|
2
|
+
|
|
1
3
|
export declare const StyledGrid: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, never>> & string;
|
|
2
|
-
export declare const StyledGridHeader: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export declare const
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
export declare const StyledGridHeader: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, {
|
|
5
|
+
$theme: ChopLogicTheme;
|
|
6
|
+
}>> & string;
|
|
7
|
+
export declare const StyledGridBody: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, {
|
|
8
|
+
$theme: ChopLogicTheme;
|
|
9
|
+
}>> & string;
|
|
10
|
+
export declare const StyledGridHeaderCell: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, {
|
|
11
|
+
$theme: ChopLogicTheme;
|
|
12
|
+
}>> & string;
|
|
13
|
+
export declare const StyledGridHeaderRow: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, {
|
|
14
|
+
$theme: ChopLogicTheme;
|
|
15
|
+
}>> & string;
|
|
16
|
+
export declare const StyledGridCell: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, {
|
|
17
|
+
$theme: ChopLogicTheme;
|
|
18
|
+
}>> & string;
|
|
19
|
+
export declare const StyledGridCaption: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, {
|
|
20
|
+
$theme: ChopLogicTheme;
|
|
21
|
+
}>> & string;
|
|
8
22
|
export declare const StyledGridRow: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, {
|
|
9
23
|
$selected: boolean;
|
|
24
|
+
$theme: ChopLogicTheme;
|
|
10
25
|
}>> & string;
|
|
11
26
|
export declare const StyledGridColumn: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ColHTMLAttributes<HTMLTableColElement>, HTMLTableColElement>, {
|
|
12
27
|
$isFirst: boolean;
|
|
13
28
|
$highlighted: boolean;
|
|
29
|
+
$theme: ChopLogicTheme;
|
|
14
30
|
}>> & string;
|
|
15
31
|
export declare const StyledGridCheckboxWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
16
32
|
$disabled: boolean;
|
|
33
|
+
$theme: ChopLogicTheme;
|
|
34
|
+
}>> & string;
|
|
35
|
+
export declare const StyledGridCheckboxInput: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {
|
|
36
|
+
$theme: ChopLogicTheme;
|
|
17
37
|
}>> & string;
|
|
18
|
-
export declare const StyledGridCheckboxInput: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>> & string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { ChopLogicGridColumn, ChopLogicGridItem, RenderDataItemCallback } from '../../../../types';
|
|
2
|
+
import { ChopLogicGridColumn, ChopLogicGridItem, ChopLogicTheme, RenderDataItemCallback } from '../../../../types';
|
|
3
3
|
|
|
4
4
|
type ChopLogicGridBodyProps = {
|
|
5
5
|
data: ChopLogicGridItem[];
|
|
@@ -9,6 +9,7 @@ type ChopLogicGridBodyProps = {
|
|
|
9
9
|
deselectRowById: (id: string) => void;
|
|
10
10
|
renderDataItem?: RenderDataItemCallback;
|
|
11
11
|
selectable: boolean;
|
|
12
|
+
theme: ChopLogicTheme;
|
|
12
13
|
};
|
|
13
14
|
declare const ChopLogicGridBody: React.FC<ChopLogicGridBodyProps>;
|
|
14
15
|
export default ChopLogicGridBody;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { ChopLogicTheme } from '../../../../types';
|
|
2
3
|
|
|
3
4
|
type ChopLogicGridCheckboxProps = React.InputHTMLAttributes<HTMLInputElement> & {
|
|
4
5
|
label: string;
|
|
6
|
+
theme: ChopLogicTheme;
|
|
5
7
|
};
|
|
6
8
|
declare const GridCheckbox: React.FC<ChopLogicGridCheckboxProps>;
|
|
7
9
|
export default GridCheckbox;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { ChopLogicGridColumn } from '../../../../types';
|
|
2
|
+
import { ChopLogicGridColumn, ChopLogicTheme } from '../../../../types';
|
|
3
3
|
|
|
4
4
|
declare const GridColumnGroup: React.FC<{
|
|
5
5
|
columns: ChopLogicGridColumn[];
|
|
6
6
|
selectable: boolean;
|
|
7
|
+
theme: ChopLogicTheme;
|
|
7
8
|
}>;
|
|
8
9
|
export default GridColumnGroup;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { ChopLogicGridColumn } from '../../../../types';
|
|
2
|
+
import { ChopLogicGridColumn, ChopLogicTheme } from '../../../../types';
|
|
3
3
|
|
|
4
4
|
type ChopLogicGridHeadProps = {
|
|
5
5
|
columns: ChopLogicGridColumn[];
|
|
@@ -9,6 +9,7 @@ type ChopLogicGridHeadProps = {
|
|
|
9
9
|
isAllCheckboxDisabled?: boolean;
|
|
10
10
|
selectAll: () => void;
|
|
11
11
|
deselectAll: () => void;
|
|
12
|
+
theme: ChopLogicTheme;
|
|
12
13
|
};
|
|
13
14
|
declare const ChopLogicGridHead: React.FC<ChopLogicGridHeadProps>;
|
|
14
15
|
export default ChopLogicGridHead;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { ChopLogicTheme } from '../../../../types';
|
|
2
3
|
|
|
3
4
|
export type GridRowProps = {
|
|
4
5
|
rowId: string;
|
|
@@ -8,6 +9,7 @@ export type GridRowProps = {
|
|
|
8
9
|
selectable: boolean;
|
|
9
10
|
values: (string | React.ReactElement)[];
|
|
10
11
|
disabled?: boolean;
|
|
12
|
+
theme: ChopLogicTheme;
|
|
11
13
|
};
|
|
12
14
|
declare const GridRow: React.FC<GridRowProps>;
|
|
13
15
|
export default GridRow;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { ChopLogicTheme } from '../../../../types';
|
|
2
3
|
|
|
3
4
|
type SelectAllGridRowsCheckbox = {
|
|
4
5
|
gridId: string;
|
|
@@ -6,6 +7,7 @@ type SelectAllGridRowsCheckbox = {
|
|
|
6
7
|
selectAll: () => void;
|
|
7
8
|
deselectAll: () => void;
|
|
8
9
|
disabled?: boolean;
|
|
10
|
+
theme: ChopLogicTheme;
|
|
9
11
|
};
|
|
10
12
|
declare const SelectAllRowsCell: React.FC<SelectAllGridRowsCheckbox>;
|
|
11
13
|
export default SelectAllRowsCell;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { ChopLogicTheme } from '../../../../types';
|
|
2
3
|
|
|
3
4
|
type SelectAllGridRowsCheckbox = {
|
|
4
5
|
rowId: string;
|
|
@@ -6,6 +7,7 @@ type SelectAllGridRowsCheckbox = {
|
|
|
6
7
|
selectRowById: (id: string) => void;
|
|
7
8
|
deselectRowById: (id: string) => void;
|
|
8
9
|
disabled?: boolean;
|
|
10
|
+
theme: ChopLogicTheme;
|
|
9
11
|
};
|
|
10
12
|
declare const SelectGridRowCell: React.FC<SelectAllGridRowsCheckbox>;
|
|
11
13
|
export default SelectGridRowCell;
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
import { ChopLogicTabsMode } from '../../../types';
|
|
1
|
+
import { ChopLogicTabsMode, ChopLogicTheme } from '../../../types';
|
|
2
2
|
|
|
3
3
|
export declare const StyledTabButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
4
4
|
$selected: boolean;
|
|
5
5
|
$disabled: boolean;
|
|
6
6
|
$mode: ChopLogicTabsMode;
|
|
7
|
+
$theme: ChopLogicTheme;
|
|
8
|
+
}>> & string;
|
|
9
|
+
export declare const StyledTabContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
10
|
+
$theme: ChopLogicTheme;
|
|
7
11
|
}>> & string;
|
|
8
|
-
export declare const StyledTabContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
9
12
|
export declare const StyledTabList: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
10
13
|
$mode: ChopLogicTabsMode;
|
|
14
|
+
$theme: ChopLogicTheme;
|
|
11
15
|
}>> & string;
|
|
12
16
|
export declare const StyledTabsContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
13
17
|
$mode: ChopLogicTabsMode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { ChopLogicTabsMode } from '../../../../types';
|
|
2
|
+
import { ChopLogicTabsMode, ChopLogicTheme } from '../../../../types';
|
|
3
3
|
|
|
4
4
|
type ChopLogicTabButtonProps = {
|
|
5
5
|
title: string;
|
|
@@ -9,6 +9,7 @@ type ChopLogicTabButtonProps = {
|
|
|
9
9
|
isSelected: boolean;
|
|
10
10
|
mode: ChopLogicTabsMode;
|
|
11
11
|
isDisabled?: boolean;
|
|
12
|
+
theme: ChopLogicTheme;
|
|
12
13
|
};
|
|
13
14
|
declare const ChopLogicTabButton: React.FC<ChopLogicTabButtonProps>;
|
|
14
15
|
export default ChopLogicTabButton;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { ChopLogicTabItem } from '../../../../types';
|
|
2
|
+
import { ChopLogicTabItem, ChopLogicTheme } from '../../../../types';
|
|
3
3
|
|
|
4
4
|
declare const ChopLogicTabContent: React.FC<{
|
|
5
5
|
tabs: ChopLogicTabItem[];
|
|
6
6
|
selectedTabId: string;
|
|
7
|
+
theme: ChopLogicTheme;
|
|
7
8
|
}>;
|
|
8
9
|
export default ChopLogicTabContent;
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ChopLogicTabListProps } from '../../../../types';
|
|
3
3
|
|
|
4
|
-
type ChopLogicTabListProps = {
|
|
5
|
-
tabs: ChopLogicTabItem[];
|
|
6
|
-
tabIds: string[];
|
|
7
|
-
onTabSelect: (id: string) => void;
|
|
8
|
-
selectedTabId: string;
|
|
9
|
-
tabPanelIds: string[];
|
|
10
|
-
mode: ChopLogicTabsMode;
|
|
11
|
-
};
|
|
12
4
|
declare const ChopLogicTabList: React.FC<ChopLogicTabListProps>;
|
|
13
5
|
export default ChopLogicTabList;
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
+
import { ChopLogicTheme } from '../../../types';
|
|
2
|
+
|
|
1
3
|
export declare const Styled3DButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
2
4
|
$extended: boolean;
|
|
5
|
+
$theme: ChopLogicTheme;
|
|
3
6
|
}>> & string;
|
|
4
7
|
export declare const StyledFlatButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
5
8
|
$extended: boolean;
|
|
9
|
+
$theme: ChopLogicTheme;
|
|
10
|
+
}>> & string;
|
|
11
|
+
export declare const StyledIconButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
12
|
+
$theme: ChopLogicTheme;
|
|
6
13
|
}>> & string;
|
|
7
|
-
export declare const StyledIconButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { ChopLogicTheme } from '../../../types';
|
|
2
|
+
|
|
1
3
|
export declare const StyledCheckbox: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
2
4
|
$disabled: boolean;
|
|
5
|
+
$theme: ChopLogicTheme;
|
|
3
6
|
}>> & string;
|
|
@@ -1,16 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { MultiSelectComboboxProps } from '../../../../types';
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
opened: boolean;
|
|
6
|
-
disabled: boolean;
|
|
7
|
-
required: boolean;
|
|
8
|
-
onClick: () => void;
|
|
9
|
-
comboboxId: string;
|
|
10
|
-
dropdownId: string;
|
|
11
|
-
values?: MultiSelectValue[];
|
|
12
|
-
placeholder?: string;
|
|
13
|
-
name: string;
|
|
14
|
-
};
|
|
15
|
-
declare const SelectCombobox: React.FC<SelectComboboxProps>;
|
|
4
|
+
declare const SelectCombobox: React.FC<MultiSelectComboboxProps>;
|
|
16
5
|
export default SelectCombobox;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { MultiSelectOptionProps } from '../../../../types';
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
value: MultiSelectValue;
|
|
6
|
-
onSelect: (id: string) => void;
|
|
7
|
-
};
|
|
8
|
-
declare const SelectOption: React.FC<SelectOptionProps>;
|
|
4
|
+
declare const SelectOption: React.FC<MultiSelectOptionProps>;
|
|
9
5
|
export default SelectOption;
|
|
@@ -1 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { ChopLogicTheme } from '../../../types';
|
|
2
|
+
|
|
3
|
+
export declare const StyledNumericInput: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
4
|
+
$theme: ChopLogicTheme;
|
|
5
|
+
}>> & string;
|
|
@@ -1,16 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { SelectComboboxProps } from '../../../../types';
|
|
3
3
|
|
|
4
|
-
type SelectComboboxProps = {
|
|
5
|
-
opened: boolean;
|
|
6
|
-
disabled: boolean;
|
|
7
|
-
required: boolean;
|
|
8
|
-
onClick: () => void;
|
|
9
|
-
comboboxId: string;
|
|
10
|
-
dropdownId: string;
|
|
11
|
-
selected?: SelectValue;
|
|
12
|
-
placeholder?: string;
|
|
13
|
-
name: string;
|
|
14
|
-
};
|
|
15
4
|
declare const SelectCombobox: React.FC<SelectComboboxProps>;
|
|
16
5
|
export default SelectCombobox;
|
|
@@ -1,15 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { SelectDropdownProps } from '../../../../types';
|
|
3
3
|
|
|
4
|
-
type SelectDropdownProps = {
|
|
5
|
-
options: SelectValue[];
|
|
6
|
-
opened: boolean;
|
|
7
|
-
dropdownId: string;
|
|
8
|
-
comboboxId: string;
|
|
9
|
-
onClose: () => void;
|
|
10
|
-
selected?: SelectValue;
|
|
11
|
-
onSelect: (id: string) => void;
|
|
12
|
-
onClear: () => void;
|
|
13
|
-
};
|
|
14
4
|
declare const SelectDropdown: React.FC<SelectDropdownProps>;
|
|
15
5
|
export default SelectDropdown;
|
|
@@ -1 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { ChopLogicTheme } from '../../../types';
|
|
2
|
+
|
|
3
|
+
export declare const StyledTextInput: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
4
|
+
$theme: ChopLogicTheme;
|
|
5
|
+
}>> & string;
|
|
@@ -1,5 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import { ChopLogicTheme } from '../../../types';
|
|
2
|
+
|
|
3
|
+
export declare const StyledAlertHeader: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, {
|
|
4
|
+
$theme: ChopLogicTheme;
|
|
5
|
+
}>> & string;
|
|
2
6
|
export declare const StyledAlertWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
3
7
|
$isClosing: boolean;
|
|
8
|
+
$theme: ChopLogicTheme;
|
|
9
|
+
}>> & string;
|
|
10
|
+
export declare const StyledAlertContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
11
|
+
$theme: ChopLogicTheme;
|
|
4
12
|
}>> & string;
|
|
5
|
-
export declare const StyledAlertContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -1,6 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
import { ChopLogicTheme } from '../../../types';
|
|
2
|
+
|
|
3
|
+
export declare const StyledDialogLayout: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
4
|
+
$theme: ChopLogicTheme;
|
|
5
|
+
}>> & string;
|
|
2
6
|
export declare const StyledDialogBackground: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
3
7
|
$isClosing: boolean;
|
|
8
|
+
$theme: ChopLogicTheme;
|
|
9
|
+
}>> & string;
|
|
10
|
+
export declare const StyledDialogHeader: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, {
|
|
11
|
+
$theme: ChopLogicTheme;
|
|
12
|
+
}>> & string;
|
|
13
|
+
export declare const StyledDialogContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
14
|
+
$theme: ChopLogicTheme;
|
|
4
15
|
}>> & string;
|
|
5
|
-
export declare const StyledDialogHeader: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
|
|
6
|
-
export declare const StyledDialogContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { ChopLogicTheme } from '../../../../types';
|
|
2
3
|
|
|
3
4
|
declare const ChopLogicModalLayoutHeader: React.FC<{
|
|
4
5
|
title: string;
|
|
5
6
|
onClose: () => void;
|
|
7
|
+
theme: ChopLogicTheme;
|
|
6
8
|
}>;
|
|
7
9
|
export default ChopLogicModalLayoutHeader;
|
|
@@ -1 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { ChopLogicTheme } from '../../../types';
|
|
2
|
+
|
|
3
|
+
export declare const StyledTooltip: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
4
|
+
$theme: ChopLogicTheme;
|
|
5
|
+
}>> & string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ChopLogicTheme } from '../types';
|
|
3
|
+
|
|
4
|
+
type ChopLogicThemeContextProps = {
|
|
5
|
+
mode: 'light' | 'dark';
|
|
6
|
+
setMode?: (mode: 'light' | 'dark') => void;
|
|
7
|
+
customTheme?: Partial<ChopLogicTheme>;
|
|
8
|
+
setCustomTheme?: (customTheme: ChopLogicTheme) => void;
|
|
9
|
+
};
|
|
10
|
+
export declare const ChopLogicThemeContext: React.Context<ChopLogicThemeContextProps>;
|
|
11
|
+
export {};
|
package/dist/contexts/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { ChopLogicTheme } from '../../types';
|
|
2
3
|
|
|
3
4
|
type ChopLogicErrorMessageProps = {
|
|
4
5
|
errorId: string;
|
|
@@ -6,6 +7,7 @@ type ChopLogicErrorMessageProps = {
|
|
|
6
7
|
message?: string;
|
|
7
8
|
testId?: string;
|
|
8
9
|
style?: React.CSSProperties;
|
|
10
|
+
theme: ChopLogicTheme;
|
|
9
11
|
};
|
|
10
12
|
declare const ChopLogicErrorMessage: React.FC<ChopLogicErrorMessageProps>;
|
|
11
13
|
export default ChopLogicErrorMessage;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { ChopLogicTheme } from '../../types';
|
|
2
|
+
|
|
1
3
|
export declare const StyledErrorMessage: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
2
4
|
$visible: boolean;
|
|
5
|
+
$theme: ChopLogicTheme;
|
|
3
6
|
}>> & string;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { ChopLogicIconName } from '../../enums';
|
|
3
|
+
import { ChopLogicTheme } from '../../types';
|
|
3
4
|
|
|
4
5
|
type ClearInputButtonProps = {
|
|
5
6
|
onClick: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
6
7
|
label: string;
|
|
7
8
|
icon: ChopLogicIconName;
|
|
8
9
|
disabled?: boolean;
|
|
10
|
+
theme: ChopLogicTheme;
|
|
9
11
|
};
|
|
10
12
|
declare const InputInnerButton: React.FC<ClearInputButtonProps>;
|
|
11
13
|
export default InputInnerButton;
|
|
@@ -1 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { ChopLogicTheme } from '../../types';
|
|
2
|
+
|
|
3
|
+
export declare const StyledInputInnerButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
4
|
+
$theme: ChopLogicTheme;
|
|
5
|
+
}>> & string;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { default as React, PropsWithChildren } from 'react';
|
|
2
|
+
import { ChopLogicTheme } from '../../types';
|
|
2
3
|
|
|
3
4
|
type ChopLogicLabelProps = {
|
|
4
5
|
label: string;
|
|
5
6
|
required: boolean;
|
|
6
7
|
inputId: string;
|
|
8
|
+
theme: ChopLogicTheme;
|
|
7
9
|
isTextHidden?: boolean;
|
|
8
10
|
icon?: React.ReactElement;
|
|
9
11
|
iconPosition?: 'left' | 'right';
|
|
@@ -1 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { ChopLogicTheme } from '../../types';
|
|
2
|
+
|
|
3
|
+
export declare const StyledLabel: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, {
|
|
4
|
+
$theme: ChopLogicTheme;
|
|
5
|
+
}>> & string;
|
|
@@ -1,9 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { ChopLogicTheme } from '../../types';
|
|
2
|
+
|
|
3
|
+
export declare const StyledSelect: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
4
|
+
$theme: ChopLogicTheme;
|
|
5
|
+
}>> & string;
|
|
6
|
+
export declare const StyledSelectCombobox: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
7
|
+
$theme: ChopLogicTheme;
|
|
8
|
+
}>> & string;
|
|
3
9
|
export declare const StyledSelectDropdown: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLUListElement>, HTMLUListElement>, {
|
|
4
10
|
$opened: boolean;
|
|
11
|
+
$theme: ChopLogicTheme;
|
|
12
|
+
}>> & string;
|
|
13
|
+
export declare const StyledSelectOption: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, {
|
|
14
|
+
$theme: ChopLogicTheme;
|
|
5
15
|
}>> & string;
|
|
6
|
-
export declare const
|
|
7
|
-
|
|
16
|
+
export declare const StyledMultiSelectOption: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<Omit<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "$theme"> & {
|
|
17
|
+
$theme: ChopLogicTheme;
|
|
18
|
+
}, "ref"> & {
|
|
8
19
|
ref?: ((instance: HTMLLIElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLLIElement> | null | undefined;
|
|
9
20
|
}, never>> & string;
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useChopLogicTheme: () => import('../..').ChopLogicTheme;
|