@fattureincloud/fic-design-system 0.6.2-temp-table → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/accordion-new/Accordion.d.ts +12 -0
- package/dist/components/accordion-new/accordion-new.stories.d.ts +4 -0
- package/dist/components/accordion-new/components/AccordionIcon.d.ts +3 -0
- package/dist/components/accordion-new/components/AccordionItem.d.ts +3 -0
- package/dist/components/accordion-new/components/styled.d.ts +8 -0
- package/dist/components/accordion-new/index.d.ts +3 -0
- package/dist/components/accordion-new/types.d.ts +58 -0
- package/dist/components/accordion-new/utils.d.ts +10 -0
- package/dist/components/checkbox/Checkbox.d.ts +15 -0
- package/dist/components/checkbox/checkbox.stories.d.ts +1 -0
- package/dist/components/checkbox/checkboxPalette.d.ts +16 -0
- package/dist/components/checkbox/components/Input.d.ts +9 -0
- package/dist/components/checkbox/components/Label.d.ts +8 -0
- package/dist/components/checkbox/hooks/useCheckboxValue.d.ts +11 -0
- package/dist/components/checkbox/index.d.ts +4 -0
- package/dist/components/checkbox/types.d.ts +19 -0
- package/dist/components/checkbox/utils.d.ts +24 -0
- package/dist/components/dropdown/DropdownImpl.d.ts +1 -1
- package/dist/components/dropdown/types.d.ts +0 -1
- package/dist/components/form/fileUploader/fileTypes.d.ts +3 -0
- package/dist/components/form/fileUploader/hooks/useIcon.d.ts +4 -0
- package/dist/components/form/fileUploader/hooks/useTexts.d.ts +3 -0
- package/dist/components/form/inputText/InputText.d.ts +1 -0
- package/dist/components/form/inputText/components/InputElement.d.ts +1 -0
- package/dist/components/form/inputText/types.d.ts +3 -2
- package/dist/components/form/select/components/types.d.ts +10 -0
- package/dist/components/form/textArea/TextArea.d.ts +3 -3
- package/dist/components/form/textArea/components/TextAreaElement.d.ts +2 -2
- package/dist/components/inputText/components/icons.d.ts +8 -0
- package/dist/components/inputText/components/inputContainer.d.ts +1 -0
- package/dist/components/inputText/components/messages.d.ts +2 -0
- package/dist/components/inputText/components/wrapperTextArea.d.ts +1 -0
- package/dist/components/inputText/icons.d.ts +9 -0
- package/dist/components/inputText/index.d.ts +3 -0
- package/dist/components/inputText/inputText.stories.d.ts +1 -0
- package/dist/components/inputText/inputTextStyledWrapper.d.ts +2 -0
- package/dist/components/inputText/sideText.d.ts +6 -0
- package/dist/components/inputText/typings/enums.d.ts +17 -0
- package/dist/components/inputText/typings/inputText.d.ts +43 -0
- package/dist/components/inputText/utils.d.ts +8 -0
- package/dist/components/modals/stepModal/components/StepModalBody.d.ts +1 -1
- package/dist/components/modals/stepModal/components/StepModalFooter.d.ts +1 -1
- package/dist/components/modals/stepModal/components/StepModalHeader.d.ts +1 -1
- package/dist/components/modals/stepModal/types.d.ts +3 -0
- package/dist/components/pagination/Pagination.d.ts +1 -0
- package/dist/components/pagination/pagination.stories.d.ts +2 -1
- package/dist/components/pagination/styled.d.ts +4 -3
- package/dist/components/pagination/types.d.ts +4 -14
- package/dist/components/select/hooks/constants.d.ts +4613 -0
- package/dist/components/select/hooks/useCustomSelectStyle.d.ts +4 -0
- package/dist/components/select/index.d.ts +4 -0
- package/dist/components/select/select.stories.d.ts +1 -0
- package/dist/components/select/typings/select.d.ts +22 -0
- package/dist/components/stepBar/components/singleStep.d.ts +3 -0
- package/dist/components/stepBar/components/styledStepBarWrapper.d.ts +2 -0
- package/dist/components/stepBar/index.d.ts +2 -0
- package/dist/components/stepBar/stepBar.d.ts +7 -0
- package/dist/components/stepBar/stepBar.stories.d.ts +1 -0
- package/dist/components/stepBar/types.d.ts +15 -0
- package/dist/components/table/components/actionLink.d.ts +3 -0
- package/dist/components/table/components/actions/actionsContainer.d.ts +1 -0
- package/dist/components/table/components/actions/actionsPopUp.d.ts +12 -0
- package/dist/components/table/components/actions/actionsPopUpButton.d.ts +8 -0
- package/dist/components/table/components/actions/actionsPopUpUnderlay.d.ts +3 -0
- package/dist/components/table/components/components/headDesktop.d.ts +15 -0
- package/dist/components/table/components/components/listMobile.d.ts +15 -0
- package/dist/components/table/components/components/rowDesktop.d.ts +18 -0
- package/dist/components/table/components/customizationModal/customizationsModal.d.ts +10 -0
- package/dist/components/table/components/customizationModal/index.d.ts +2 -0
- package/dist/components/table/components/customizationModal/styledWrapper.d.ts +3 -0
- package/dist/components/table/components/customizationModal/useDnd.d.ts +8 -0
- package/dist/components/table/components/customizationModal/utils.d.ts +6 -0
- package/dist/components/table/components/emptySet.d.ts +10 -0
- package/dist/components/table/components/linearBackground.d.ts +1 -0
- package/dist/components/table/components/loadingContent.d.ts +7 -0
- package/dist/components/table/components/{Pagination.d.ts → pagination.d.ts} +0 -0
- package/dist/components/table/components/sortIcon.d.ts +2 -0
- package/dist/components/table/components/styledWrapper.d.ts +3 -0
- package/dist/components/table/components/unstyledTable.d.ts +11 -0
- package/dist/components/table/{Table.d.ts → table.d.ts} +0 -0
- package/dist/components/table/typings/main.d.ts +92 -0
- package/dist/components/table/utils/configPersistency.d.ts +14 -0
- package/dist/components/textButton/TextButton.d.ts +12 -0
- package/dist/components/textButton/index.d.ts +2 -0
- package/dist/components/textButton/textButton.stories.d.ts +1 -0
- package/dist/components/toast/typings/toast.d.ts +0 -2
- package/dist/components/tooltip/Tooltip.d.ts +1 -3
- package/dist/components/tooltips/components/message.d.ts +12 -0
- package/dist/components/tooltips/components/styledTooltipWrapper.d.ts +1 -0
- package/dist/components/tooltips/index.d.ts +2 -0
- package/dist/components/tooltips/tooltips.d.ts +15 -0
- package/dist/components/tooltips/tooltips.stories.d.ts +1 -0
- package/dist/components/tooltips/types.d.ts +25 -0
- package/dist/index.d.ts +1 -2
- package/dist/index.esm.js +5 -26
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4 -25
- package/dist/index.js.map +1 -1
- package/dist/styles/elevations.d.ts +7 -0
- package/dist/utils/FICNumbers.d.ts +11 -0
- package/package.json +1 -2
- package/dist/components/form/datepicker/hooks/useDatePickerValues.d.ts +0 -13
- package/dist/components/form/inputText/components/codeInput/CodeInput.d.ts +0 -4
- package/dist/components/form/inputText/components/codeInput/styled.d.ts +0 -29
- package/dist/components/form/inputText/components/codeInput/useCodeInputHooks.d.ts +0 -11
- package/dist/components/form/inputText/components/telephoneInput/TelephoneInput.d.ts +0 -4
- package/dist/components/form/inputText/components/telephoneInput/countriesTelephonePrefixes.d.ts +0 -7
- package/dist/components/form/inputText/components/telephoneInput/styled.d.ts +0 -2
- package/dist/components/newTable/Table.d.ts +0 -32
- package/dist/components/newTable/components/action/favorite/Favorite.d.ts +0 -14
- package/dist/components/newTable/components/action/favorite/index.d.ts +0 -1
- package/dist/components/newTable/components/action/favorite/styled.d.ts +0 -4
- package/dist/components/newTable/components/action/settings/ColumnsSettings/ColumnItem/ColumnItem.d.ts +0 -8
- package/dist/components/newTable/components/action/settings/ColumnsSettings/ColumnItem/styled.d.ts +0 -4
- package/dist/components/newTable/components/action/settings/ColumnsSettings/ColumnsSettings.d.ts +0 -8
- package/dist/components/newTable/components/action/settings/ColumnsSettings/DraggableContent/DraggableContent.d.ts +0 -7
- package/dist/components/newTable/components/action/settings/ColumnsSettings/index.d.ts +0 -2
- package/dist/components/newTable/components/action/settings/ColumnsSettings/styled.d.ts +0 -4
- package/dist/components/newTable/components/action/settings/DropdownSettings/DropdownSettings.d.ts +0 -7
- package/dist/components/newTable/components/action/settings/DropdownSettings/index.d.ts +0 -1
- package/dist/components/newTable/components/action/settings/DropdownSettings/styled.d.ts +0 -4
- package/dist/components/newTable/components/action/settings/RowHeightSettings/RowHeightSettings.d.ts +0 -10
- package/dist/components/newTable/components/action/settings/RowHeightSettings/index.d.ts +0 -1
- package/dist/components/newTable/components/action/settings/RowHeightSettings/styled.d.ts +0 -2
- package/dist/components/newTable/components/action/settings/Settings.d.ts +0 -8
- package/dist/components/newTable/components/action/settings/hooks/index.d.ts +0 -2
- package/dist/components/newTable/components/action/settings/hooks/useColumnValues.d.ts +0 -8
- package/dist/components/newTable/components/action/settings/hooks/useDropdownSettingsValues.d.ts +0 -13
- package/dist/components/newTable/components/action/settings/index.d.ts +0 -1
- package/dist/components/newTable/components/action/settings/styled.d.ts +0 -2
- package/dist/components/newTable/components/action/toggle/Toggle.d.ts +0 -14
- package/dist/components/newTable/components/action/toggle/constants.d.ts +0 -3
- package/dist/components/newTable/components/action/toggle/index.d.ts +0 -1
- package/dist/components/newTable/components/action/toggle/styled.d.ts +0 -5
- package/dist/components/newTable/components/body/Body.d.ts +0 -9
- package/dist/components/newTable/components/bulkBar/BulkBar.d.ts +0 -9
- package/dist/components/newTable/components/bulkBar/styled.d.ts +0 -10
- package/dist/components/newTable/components/cell/Cell.d.ts +0 -12
- package/dist/components/newTable/components/cell/customActionCell/CustomActionCell.d.ts +0 -12
- package/dist/components/newTable/components/cell/customActionCell/DropdownActionCell.d.ts +0 -10
- package/dist/components/newTable/components/cell/customActionCell/PrimaryActionCell.d.ts +0 -9
- package/dist/components/newTable/components/cell/customActionCell/index.d.ts +0 -3
- package/dist/components/newTable/components/cell/customActionCell/styled.d.ts +0 -4
- package/dist/components/newTable/components/cell/customCell/CustomCell.d.ts +0 -11
- package/dist/components/newTable/components/cell/customCell/CustomInput.d.ts +0 -9
- package/dist/components/newTable/components/cell/customCell/TextAreaPopup.d.ts +0 -9
- package/dist/components/newTable/components/cell/customCell/constants.d.ts +0 -1
- package/dist/components/newTable/components/cell/customCell/index.d.ts +0 -1
- package/dist/components/newTable/components/cell/customCell/styled.d.ts +0 -7
- package/dist/components/newTable/components/cell/hooks/index.d.ts +0 -1
- package/dist/components/newTable/components/cell/hooks/useCellValues.d.ts +0 -16
- package/dist/components/newTable/components/cell/loadingCell/LoadingCell.d.ts +0 -7
- package/dist/components/newTable/components/cell/loadingCell/index.d.ts +0 -1
- package/dist/components/newTable/components/cell/styled.d.ts +0 -20
- package/dist/components/newTable/components/footer/Footer.d.ts +0 -7
- package/dist/components/newTable/components/header/Header.d.ts +0 -10
- package/dist/components/newTable/components/header/headerCell/ActionHeaderCell.d.ts +0 -8
- package/dist/components/newTable/components/header/headerCell/HeaderCell.d.ts +0 -12
- package/dist/components/newTable/components/header/headerCell/styled.d.ts +0 -9
- package/dist/components/newTable/components/header/hooks/index.d.ts +0 -2
- package/dist/components/newTable/components/header/hooks/useActionHeaderValues.d.ts +0 -16
- package/dist/components/newTable/components/header/hooks/useHeaderValues.d.ts +0 -14
- package/dist/components/newTable/components/row/Row.d.ts +0 -10
- package/dist/components/newTable/components/row/styled.d.ts +0 -6
- package/dist/components/newTable/components/utils.d.ts +0 -10
- package/dist/components/newTable/constants.d.ts +0 -2
- package/dist/components/newTable/hooks/useColumnPinning.d.ts +0 -8
- package/dist/components/newTable/hooks/usePagination.d.ts +0 -9
- package/dist/components/newTable/index.d.ts +0 -2
- package/dist/components/newTable/providers/TableProvider/TableProvider.d.ts +0 -5
- package/dist/components/newTable/providers/TableProvider/index.d.ts +0 -3
- package/dist/components/newTable/providers/TableProvider/types.d.ts +0 -10
- package/dist/components/newTable/stories/actions.d.ts +0 -4
- package/dist/components/newTable/stories/columns.d.ts +0 -3
- package/dist/components/newTable/stories/data.d.ts +0 -2
- package/dist/components/newTable/stories/styled.d.ts +0 -1
- package/dist/components/newTable/stories/types.d.ts +0 -9
- package/dist/components/newTable/styled.d.ts +0 -9
- package/dist/components/newTable/table.stories.d.ts +0 -6
- package/dist/components/newTable/types.d.ts +0 -170
- package/dist/components/newTable/utils.d.ts +0 -8
- package/dist/components/table/components/ActionsCell.d.ts +0 -10
- package/dist/components/table/components/SortIndicator.d.ts +0 -6
- package/dist/components/table/components/TableBody.d.ts +0 -14
- package/dist/components/table/components/TableFoot.d.ts +0 -2
- package/dist/components/table/components/TableHeader.d.ts +0 -7
- package/dist/components/table/components/tableBody/TableBodyLoader.d.ts +0 -7
- package/dist/components/table/components/tableBody/styled.d.ts +0 -3
@@ -0,0 +1,11 @@
|
|
1
|
+
export declare class FICNumbers {
|
2
|
+
qtyPrecision: number;
|
3
|
+
parse: (string: string, strict?: boolean) => number;
|
4
|
+
randomBetween: (min: number, max: number) => number;
|
5
|
+
nSign: (num: number) => 0 | 1 | -1;
|
6
|
+
roundToDigit: (num: number, digits: number) => number;
|
7
|
+
roundToTwo: (num: number) => number;
|
8
|
+
roundSignificative: (n: number, digits?: number) => number;
|
9
|
+
dotsToCommas: (txt: string) => string;
|
10
|
+
commasToDots: (txt: string) => string;
|
11
|
+
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fattureincloud/fic-design-system",
|
3
|
-
"version": "0.6.
|
3
|
+
"version": "0.6.3",
|
4
4
|
"description": "Fatture in Cloud and Danea design system",
|
5
5
|
"repository": "git@bitbucket.org:fattureincloud/design-system.git",
|
6
6
|
"license": "MIT",
|
@@ -60,7 +60,6 @@
|
|
60
60
|
"@fortawesome/pro-solid-svg-icons": "~5.15.4",
|
61
61
|
"@fortawesome/react-fontawesome": "0.1.14",
|
62
62
|
"@popperjs/core": "^2.6.0",
|
63
|
-
"@tanstack/react-table": "^8.5.13",
|
64
63
|
"@types/react": "^17.0.37",
|
65
64
|
"@types/react-select": "^4.0.18",
|
66
65
|
"date-fns": "^2.28.0",
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import { Dispatch, SetStateAction } from 'react';
|
2
|
-
interface ReturnType {
|
3
|
-
date: Date | null;
|
4
|
-
setDate: Dispatch<SetStateAction<Date | null>>;
|
5
|
-
value: string | null;
|
6
|
-
setValue: Dispatch<SetStateAction<string | null>>;
|
7
|
-
}
|
8
|
-
interface Props {
|
9
|
-
initialDate?: Date | null;
|
10
|
-
initialValue?: string | null;
|
11
|
-
}
|
12
|
-
declare const useDatePickerValues: ({ initialDate, initialValue }?: Props) => ReturnType;
|
13
|
-
export default useDatePickerValues;
|
@@ -1,29 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
export declare const CodeInputWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
3
|
-
gap: number | undefined;
|
4
|
-
}, never>;
|
5
|
-
export declare const InputWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
6
|
-
export declare const SingleNumberInput: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../../../common/types").CommonFormTypes & {
|
7
|
-
className?: string | undefined;
|
8
|
-
name?: string | undefined;
|
9
|
-
onFocus?: import("react").FocusEventHandler<HTMLInputElement> | undefined;
|
10
|
-
onBlur?: import("react").FocusEventHandler<HTMLInputElement> | undefined;
|
11
|
-
onChange?: import("react").ChangeEventHandler<HTMLInputElement> | undefined;
|
12
|
-
onKeyDown?: import("react").KeyboardEventHandler<HTMLInputElement> | undefined;
|
13
|
-
onKeyPress?: import("react").KeyboardEventHandler<HTMLInputElement> | undefined;
|
14
|
-
onKeyUp?: import("react").KeyboardEventHandler<HTMLInputElement> | undefined;
|
15
|
-
autoFocus?: boolean | undefined;
|
16
|
-
required?: boolean | undefined;
|
17
|
-
} & {
|
18
|
-
actionIcon?: import("../../../../icon").IconProps | undefined;
|
19
|
-
inputType?: "number" | "text" | "password" | undefined;
|
20
|
-
isPrefilled?: boolean | undefined;
|
21
|
-
isTransparent?: boolean | undefined;
|
22
|
-
leadingIcon?: import("../../../../icon").IconProps | undefined;
|
23
|
-
placeholder?: import("react").ReactText | undefined;
|
24
|
-
setValue?: import("react").Dispatch<import("react").SetStateAction<string>> | undefined;
|
25
|
-
strict?: boolean | undefined;
|
26
|
-
tooltip?: import("../../../../tooltip").TooltipProps | undefined;
|
27
|
-
unitDropdownProps?: import("../UnitDropdown").UnitDropdownProps | undefined;
|
28
|
-
value?: string | number | null | undefined;
|
29
|
-
} & import("react").RefAttributes<HTMLInputElement | null>>, import("styled-components").DefaultTheme, {}, never>;
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import { Dispatch, SetStateAction } from 'react';
|
2
|
-
import { CodeInputProps } from '../../types';
|
3
|
-
declare type CodInputHooks = {
|
4
|
-
handleInput: (v: string) => void;
|
5
|
-
handlePaste: (e: React.ClipboardEvent) => void;
|
6
|
-
refs: React.MutableRefObject<(HTMLInputElement | null)[]>;
|
7
|
-
setCurrentIndex: Dispatch<SetStateAction<number>>;
|
8
|
-
values: (string | null)[];
|
9
|
-
};
|
10
|
-
declare const useCodeInputHooks: ({ fieldsCount, onChange, status, }: Omit<CodeInputProps, 'helper' | 'className'>) => CodInputHooks;
|
11
|
-
export default useCodeInputHooks;
|
@@ -1,2 +0,0 @@
|
|
1
|
-
export declare const SelectWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
2
|
-
export declare const InputWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
@@ -1,32 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { TableProps } from './types';
|
3
|
-
/**
|
4
|
-
* Component Props:
|
5
|
-
* @param {T[]} data Array of data to display
|
6
|
-
* @param {ColumnsType<T>[]} columns Columns configurations
|
7
|
-
* @param {boolean} isSelectable Allow to select rows
|
8
|
-
* @param {function} onRowSelectionChange Callback called when rows selection changes
|
9
|
-
* @param {function} onSort Callback called on column sort change
|
10
|
-
* @param {number[]} favorites Array of favorites
|
11
|
-
* @param {function} onFavoritesChange Callback called on favorite change
|
12
|
-
* @param {number[]} toggles Array of toggles index
|
13
|
-
* @param {function} onTogglesChange Callback called on toggles change
|
14
|
-
* @param {RowSize} headerSize Set header height
|
15
|
-
* @param {RowSize} rowSize Set row height
|
16
|
-
* @param {boolean} sortable Makes all columns sortable, sort can be disabled for a single column inside columns definition
|
17
|
-
* @param {boolean} sortDescFirst If true, all sorts will default to descending as their first toggle state.
|
18
|
-
* @param {boolean} enableSettings Used to enable table settings
|
19
|
-
* @param {SettingsDropdownConfig} settingsDropdownConfig Define dropdown settings configuration
|
20
|
-
* @param {RowActions<T>} rowActions Used to define primary and dropdown actions
|
21
|
-
* @param {BulkAction<T>} bulkActions Used to define bulk bar actions
|
22
|
-
* @param {boolean} isLoading Loading table state
|
23
|
-
* @param {AllSelectedCTA} allSelectedCTA clickable text that appears when all rows are selected
|
24
|
-
* @param {boolean} noPagination Flag used to disable pagination
|
25
|
-
* @param {number} pageSize Define the page size to use in every page
|
26
|
-
* @param {number} listSize Total data row counter
|
27
|
-
* @param {string} paginationPreviousText Pagination previous button text
|
28
|
-
* @param {string} paginationNextText Pagination next button text
|
29
|
-
* @param {function} onPaginationChange Callback to handle server side pagination
|
30
|
-
*/
|
31
|
-
declare const Table: <T>({ data, columns, isSelectable, onRowSelectionChange, favorites, onFavoritesChange, toggles, onTogglesChange, rowSize, headerSize, isFavoritesSortable, isTogglesSortable, sortable, sortDescFirst, enableSettings, settingsDropdownConfig, rowActions, bulkActions, isLoading, allSelectedCTA, noPagination, pageSize: pageLength, listSize, paginationPreviousText, paginationNextText, onPaginationChange, uniqueId, onSort, }: TableProps<T>) => JSX.Element;
|
32
|
-
export default Table;
|
@@ -1,14 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
interface FavoriteProps {
|
3
|
-
checked?: boolean;
|
4
|
-
disabled?: boolean;
|
5
|
-
onChange?: (checked: boolean) => void;
|
6
|
-
}
|
7
|
-
/**
|
8
|
-
* Component Props:
|
9
|
-
* @param {boolean} checked Used to set favorite icon status
|
10
|
-
* @param {boolean} disabled Disable the favorite icon
|
11
|
-
* @param {function} onChange Callback on favorite icon click
|
12
|
-
*/
|
13
|
-
declare const Favorite: ({ checked, onChange }: FavoriteProps) => JSX.Element;
|
14
|
-
export default Favorite;
|
@@ -1 +0,0 @@
|
|
1
|
-
export { default as Favorite } from './Favorite';
|
@@ -1,4 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
export declare const Icon: import("styled-components").StyledComponent<({ className, color, icon, isDisabled, onClick, type }: import("../../../../buttons").IconButtonProps) => JSX.Element, import("styled-components").DefaultTheme, {
|
3
|
-
checked: boolean;
|
4
|
-
}, never>;
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import { Column } from '@tanstack/react-table';
|
2
|
-
import React from 'react';
|
3
|
-
declare type ColumnItemProps<T> = {
|
4
|
-
column: Column<T, unknown>;
|
5
|
-
onDragStart: (event: React.DragEvent<HTMLDivElement>, parent: HTMLDivElement) => void;
|
6
|
-
} & Omit<React.HTMLProps<HTMLDivElement>, 'onDragStart'>;
|
7
|
-
declare const ColumnItem: <T>({ column, draggable, onDragStart, onDragOver, onDragEnd }: ColumnItemProps<T>) => JSX.Element;
|
8
|
-
export default ColumnItem;
|
package/dist/components/newTable/components/action/settings/ColumnsSettings/ColumnItem/styled.d.ts
DELETED
@@ -1,4 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
export declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
3
|
-
export declare const IconContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
4
|
-
export declare const Icon: import("styled-components").StyledComponent<({ className, color, icon, isDisabled, onClick, type }: import("../../../../../../buttons").IconButtonProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
package/dist/components/newTable/components/action/settings/ColumnsSettings/ColumnsSettings.d.ts
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { Table } from '@tanstack/react-table';
|
3
|
-
interface ColumnsSettingsProps<T> {
|
4
|
-
table: Table<T>;
|
5
|
-
visibleColumnsLabel: string;
|
6
|
-
}
|
7
|
-
declare const ColumnsSettings: <T>({ table, visibleColumnsLabel }: ColumnsSettingsProps<T>) => JSX.Element;
|
8
|
-
export default ColumnsSettings;
|
@@ -1,4 +0,0 @@
|
|
1
|
-
export declare const CustomAccordion: import("styled-components").StyledComponent<import("../../../../../accordions/types").TAccordion, import("styled-components").DefaultTheme, {}, never>;
|
2
|
-
export declare const Title: import("styled-components").StyledComponent<"h6", import("styled-components").DefaultTheme, {}, never>;
|
3
|
-
export declare const Body: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
4
|
-
export declare const Divider: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
package/dist/components/newTable/components/action/settings/DropdownSettings/DropdownSettings.d.ts
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { Header } from '@tanstack/react-table';
|
3
|
-
interface DropdownSettingsProps<T> {
|
4
|
-
header: Header<T, unknown>;
|
5
|
-
}
|
6
|
-
declare const DropdownSettings: <T>({ header }: DropdownSettingsProps<T>) => JSX.Element;
|
7
|
-
export default DropdownSettings;
|
@@ -1 +0,0 @@
|
|
1
|
-
export { default as DropdownSettings } from './DropdownSettings';
|
@@ -1,4 +0,0 @@
|
|
1
|
-
export declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
2
|
-
export declare const Title: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
3
|
-
export declare const TitleText: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
4
|
-
export declare const IconContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
package/dist/components/newTable/components/action/settings/RowHeightSettings/RowHeightSettings.d.ts
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
interface RowHeightSettingsProps {
|
3
|
-
isDisabled?: boolean;
|
4
|
-
rowHeightLabel: string;
|
5
|
-
unspecifiedRowsLabel: string;
|
6
|
-
smallRowsLabel: string;
|
7
|
-
largeRowsLabel: string;
|
8
|
-
}
|
9
|
-
declare const RowHeightSettings: ({ rowHeightLabel, unspecifiedRowsLabel, smallRowsLabel, largeRowsLabel, isDisabled, }: RowHeightSettingsProps) => JSX.Element;
|
10
|
-
export default RowHeightSettings;
|
@@ -1 +0,0 @@
|
|
1
|
-
export { default as RowHeightSettings } from './RowHeightSettings';
|
@@ -1,2 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
export declare const Radio: import("styled-components").StyledComponent<({ onChange, helper, initialSelection, options, ...otherProps }: import("../../../../../form/radioGroup").RadioGroupProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
@@ -1,8 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { Header } from '@tanstack/react-table';
|
3
|
-
interface SettingsProps<T> {
|
4
|
-
header: Header<T, unknown>;
|
5
|
-
onOpen?: (isOpen: boolean) => void;
|
6
|
-
}
|
7
|
-
declare const Settings: <T>({ header, onOpen }: SettingsProps<T>) => JSX.Element;
|
8
|
-
export default Settings;
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import { Column } from '@tanstack/react-table';
|
2
|
-
interface ReturnType<T> {
|
3
|
-
rightActions: Column<T, unknown>[];
|
4
|
-
leftActions: Column<T, unknown>[];
|
5
|
-
accessorColumns: Column<T, unknown>[];
|
6
|
-
}
|
7
|
-
export declare const useColumnValues: <T>(allColumns: Column<T, unknown>[]) => ReturnType<T>;
|
8
|
-
export {};
|
package/dist/components/newTable/components/action/settings/hooks/useDropdownSettingsValues.d.ts
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
import { Header, Table } from '@tanstack/react-table';
|
2
|
-
interface ReturnType<T> {
|
3
|
-
table: Table<T>;
|
4
|
-
isTableEmpty: boolean;
|
5
|
-
displaySettingsLabel: string;
|
6
|
-
visibleColumnsLabel: string;
|
7
|
-
rowHeightLabel: string;
|
8
|
-
smallRowsLabel: string;
|
9
|
-
largeRowsLabel: string;
|
10
|
-
unspecifiedRowsLabel: string;
|
11
|
-
}
|
12
|
-
export declare const useDropdownSettingsValues: <T>(header: Header<T, unknown>) => ReturnType<T>;
|
13
|
-
export {};
|
@@ -1 +0,0 @@
|
|
1
|
-
export { default as Settings } from './Settings';
|
@@ -1,14 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
interface ToggleProps {
|
3
|
-
checked?: boolean;
|
4
|
-
disabled?: boolean;
|
5
|
-
onChange?: (checked: boolean) => void;
|
6
|
-
}
|
7
|
-
/**
|
8
|
-
* Component Props:
|
9
|
-
* @param {boolean} checked Used to set toggle status
|
10
|
-
* @param {boolean} disabled Disable the toggle
|
11
|
-
* @param {function} onChange Callback on toggle click
|
12
|
-
*/
|
13
|
-
declare const Toggle: ({ checked, disabled, onChange }: ToggleProps) => JSX.Element;
|
14
|
-
export default Toggle;
|
@@ -1 +0,0 @@
|
|
1
|
-
export { default as Toggle } from './Toggle';
|
@@ -1,5 +0,0 @@
|
|
1
|
-
export declare const Wrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
2
|
-
export declare const Slider: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {
|
3
|
-
disabled: boolean;
|
4
|
-
}, never>;
|
5
|
-
export declare const Input: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, {}, never>;
|
@@ -1,9 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { Row } from '@tanstack/react-table';
|
3
|
-
import { TableProps } from '../../types';
|
4
|
-
interface BodyProps<T> extends Pick<TableProps<T>, 'rowSize'> {
|
5
|
-
rows: Row<T>[];
|
6
|
-
isLoading?: boolean;
|
7
|
-
}
|
8
|
-
declare const Body: <T>({ rows, rowSize, isLoading }: BodyProps<T>) => JSX.Element;
|
9
|
-
export default Body;
|
@@ -1,9 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { AllSelectedCTA, BulkAction } from '../../types';
|
3
|
-
interface BulkBarProps<T> {
|
4
|
-
selectedRowData: T[];
|
5
|
-
bulkBarActions?: BulkAction<T>[];
|
6
|
-
allSelectedCTA?: AllSelectedCTA;
|
7
|
-
}
|
8
|
-
declare const BulkBar: <T>({ selectedRowData, bulkBarActions, allSelectedCTA }: BulkBarProps<T>) => JSX.Element;
|
9
|
-
export default BulkBar;
|
@@ -1,10 +0,0 @@
|
|
1
|
-
export declare const BulkBarWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
2
|
-
shown?: boolean | undefined;
|
3
|
-
allSelectedShown?: boolean | undefined;
|
4
|
-
}, never>;
|
5
|
-
export declare const BulkBarContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
6
|
-
export declare const AllSelectedCTAContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
7
|
-
shown?: boolean | undefined;
|
8
|
-
}, never>;
|
9
|
-
export declare const BulkActionsWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
10
|
-
export declare const SelectionCounter: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
@@ -1,12 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { Cell as TCell, Row } from '@tanstack/react-table';
|
3
|
-
import { RowSize } from '../../types';
|
4
|
-
interface Props<T> {
|
5
|
-
cell: TCell<T, unknown>;
|
6
|
-
row: Row<T>;
|
7
|
-
hover?: boolean;
|
8
|
-
rowSize?: RowSize;
|
9
|
-
isLoading?: boolean;
|
10
|
-
}
|
11
|
-
declare const Cell: <T>({ cell, row, hover, rowSize, isLoading }: Props<T>) => JSX.Element;
|
12
|
-
export default Cell;
|
@@ -1,12 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { Column, Row } from '@tanstack/react-table';
|
3
|
-
import { ActionColumnDef, ActionType } from '../../../types';
|
4
|
-
interface Props<T> extends ActionColumnDef<T> {
|
5
|
-
row: Row<T>;
|
6
|
-
actionType: ActionType;
|
7
|
-
isFavorite?: boolean;
|
8
|
-
isToggled?: boolean;
|
9
|
-
column: Column<T, unknown>;
|
10
|
-
}
|
11
|
-
declare const CustomActionCell: <T>({ actionType, row, isFavorite, isToggled, onActionChange, rowActions, column, }: Props<T>) => JSX.Element;
|
12
|
-
export default CustomActionCell;
|
@@ -1,10 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { Row } from '@tanstack/react-table';
|
3
|
-
import { RowAction } from '../../../types';
|
4
|
-
interface Props<T> {
|
5
|
-
row: Row<T>;
|
6
|
-
dropdown: RowAction<T>[];
|
7
|
-
onOpen?: (isOpen: boolean) => void;
|
8
|
-
}
|
9
|
-
declare const DropdownActionCell: <T>({ dropdown, row, onOpen }: Props<T>) => JSX.Element;
|
10
|
-
export default DropdownActionCell;
|
@@ -1,9 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { Row } from '@tanstack/react-table';
|
3
|
-
import { PrimaryAction } from '../../../types';
|
4
|
-
interface Props<T> {
|
5
|
-
row: Row<T>;
|
6
|
-
primary: PrimaryAction<T>;
|
7
|
-
}
|
8
|
-
declare const PrimaryActionCell: <T>({ primary, row }: Props<T>) => JSX.Element;
|
9
|
-
export default PrimaryActionCell;
|
@@ -1,4 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
export declare const ActionCell: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
3
|
-
export declare const TextBtn: import("styled-components").StyledComponent<({ className, color, fullWidth, href, iconLeft, iconRight, isDisabled, isLoading, onClick, size, target, text, type, }: import("../../../../buttons").ButtonProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
4
|
-
export declare const IconBtn: import("styled-components").StyledComponent<({ className, color, icon, isDisabled, onClick, type }: import("../../../../buttons").IconButtonProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
@@ -1,11 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { CellContext, Row } from '@tanstack/react-table';
|
3
|
-
import { AccessorColumnDef, ActionColumnDef, AdditionalColumnDef, CustomCellProps, RowSize } from '../../../types';
|
4
|
-
declare type Props<CellProps> = {
|
5
|
-
row: Row<CellProps>;
|
6
|
-
context: CellContext<CellProps, unknown>;
|
7
|
-
hover?: boolean;
|
8
|
-
rowSize?: RowSize;
|
9
|
-
} & CustomCellProps & AccessorColumnDef<CellProps> & ActionColumnDef<CellProps> & AdditionalColumnDef;
|
10
|
-
declare const CustomCell: <CellProps>({ content, isEditable, tag, unitSymbol, headline, leadingIcon, avatar, actionType, row, rowSize, onActionChange, isFavorite, isToggled, hover, onChange, trailingMicroTag, minWidth, rowActions, context, }: Props<CellProps>) => JSX.Element;
|
11
|
-
export default CustomCell;
|
@@ -1,9 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { Row } from '@tanstack/react-table';
|
3
|
-
import { AccessorColumnDef, AdditionalColumnDef, CustomCellProps } from '../../../types';
|
4
|
-
declare type CustomInputProps<CellProps> = {
|
5
|
-
row: Row<CellProps>;
|
6
|
-
hover?: boolean;
|
7
|
-
} & CustomCellProps & Omit<AccessorColumnDef<CellProps>, 'isEditable'> & AdditionalColumnDef;
|
8
|
-
declare const CustomInput: <CellProps>({ hover, onChange, row, unitSymbol, content, }: CustomInputProps<CellProps>) => JSX.Element;
|
9
|
-
export default CustomInput;
|
@@ -1,9 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { Row } from '@tanstack/react-table';
|
3
|
-
import { AccessorColumnDef, CustomCellProps } from '../../../types';
|
4
|
-
declare type TextAreaPopupProps<CellProps> = {
|
5
|
-
row: Row<CellProps>;
|
6
|
-
onBlur: () => void;
|
7
|
-
} & CustomCellProps & Omit<AccessorColumnDef<CellProps>, 'isEditable'>;
|
8
|
-
declare const TextAreaPopup: <CellProps>({ onChange, row, content, onBlur }: TextAreaPopupProps<CellProps>) => JSX.Element;
|
9
|
-
export default TextAreaPopup;
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare const TEXTAREA_HEIGHT = 100;
|
@@ -1 +0,0 @@
|
|
1
|
-
export { default as CustomCell } from './CustomCell';
|
@@ -1,7 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
export declare const InputsWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
3
|
-
export declare const TextAreaWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
4
|
-
export declare const IconsWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
5
|
-
export declare const StyledIcon: import("styled-components").StyledComponent<({ onClick, isDisabled, ...props }: import("../../../../icon").IconProps) => JSX.Element, import("styled-components").DefaultTheme, {
|
6
|
-
confirm?: boolean | undefined;
|
7
|
-
}, never>;
|
@@ -1 +0,0 @@
|
|
1
|
-
export { default as useCellValues } from './useCellValues';
|
@@ -1,16 +0,0 @@
|
|
1
|
-
import { Cell as TCell, Row } from '@tanstack/react-table';
|
2
|
-
import { ActionType, CustomCellProps, RowActions } from '../../../types';
|
3
|
-
interface CellValues<T> {
|
4
|
-
isFavorite: boolean;
|
5
|
-
isToggled: boolean;
|
6
|
-
isEditable: boolean;
|
7
|
-
content?: string | number;
|
8
|
-
unitSymbol?: string;
|
9
|
-
actionType: ActionType;
|
10
|
-
values: CustomCellProps;
|
11
|
-
onActionChange?: (id: string) => void;
|
12
|
-
minWidth?: number;
|
13
|
-
rowActions?: RowActions<T>;
|
14
|
-
}
|
15
|
-
declare const useCellValues: <T>(cell: TCell<T, unknown>, row: Row<T>) => CellValues<T>;
|
16
|
-
export default useCellValues;
|
@@ -1 +0,0 @@
|
|
1
|
-
export { default as LoadingCell } from './LoadingCell';
|
@@ -1,20 +0,0 @@
|
|
1
|
-
export declare const Td: import("styled-components").StyledComponent<"td", import("styled-components").DefaultTheme, {}, never>;
|
2
|
-
export declare const Wrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
3
|
-
export declare const LeadingIconContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
4
|
-
export declare const AvatarContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
5
|
-
export declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
6
|
-
hasMeasureUnit?: boolean | undefined;
|
7
|
-
}, never>;
|
8
|
-
export declare const Content: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
9
|
-
hasMeasureUnit?: boolean | undefined;
|
10
|
-
headline?: boolean | undefined;
|
11
|
-
truncate?: boolean | undefined;
|
12
|
-
}, never>;
|
13
|
-
export declare const UnitContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
14
|
-
headline?: boolean | undefined;
|
15
|
-
}, never>;
|
16
|
-
export declare const MicroTagContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
17
|
-
export declare const InputTextWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
18
|
-
hasMeasureUnit?: boolean | undefined;
|
19
|
-
}, never>;
|
20
|
-
export declare const ContentContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
@@ -1,10 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { HeaderGroup } from '@tanstack/react-table';
|
3
|
-
import { OnSort, RowSize } from '../../types';
|
4
|
-
interface HeaderProps<T> {
|
5
|
-
headerGroup: HeaderGroup<T>[];
|
6
|
-
headerSize?: RowSize;
|
7
|
-
onSort?: OnSort<T>;
|
8
|
-
}
|
9
|
-
declare const Header: <T>({ headerGroup, headerSize, onSort }: HeaderProps<T>) => JSX.Element;
|
10
|
-
export default Header;
|
@@ -1,8 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { Header } from '@tanstack/react-table';
|
3
|
-
interface CustomHeaderCellProps<T> {
|
4
|
-
header: Header<T, unknown>;
|
5
|
-
onOpen?: (isOpen: boolean) => void;
|
6
|
-
}
|
7
|
-
declare const ActionHeaderCell: <T>({ header, onOpen }: CustomHeaderCellProps<T>) => JSX.Element;
|
8
|
-
export default ActionHeaderCell;
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import { Header, SortDirection } from '@tanstack/react-table';
|
2
|
-
import { default as React } from 'react';
|
3
|
-
import { CustomSorted, OnSort, RowSize } from '../../../types';
|
4
|
-
interface HeaderCellProps<T> {
|
5
|
-
header: Header<T, unknown>;
|
6
|
-
headerSize?: RowSize;
|
7
|
-
onSort?: OnSort<T>;
|
8
|
-
customSorted?: false | SortDirection;
|
9
|
-
setCustomSorted?: React.Dispatch<React.SetStateAction<CustomSorted<T> | undefined>>;
|
10
|
-
}
|
11
|
-
declare const HeaderCell: <T>({ header, headerSize, onSort, customSorted, setCustomSorted, }: HeaderCellProps<T>) => JSX.Element;
|
12
|
-
export default HeaderCell;
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import { RowSize } from '../../../types';
|
2
|
-
export declare const TextHeaderCell: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
3
|
-
export declare const Th: import("styled-components").StyledComponent<"td", import("styled-components").DefaultTheme, {
|
4
|
-
size?: RowSize | undefined;
|
5
|
-
minWidth?: number | undefined;
|
6
|
-
sortable: boolean;
|
7
|
-
}, never>;
|
8
|
-
export declare const TextHeaderCellWrapper: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
9
|
-
export declare const ActionCell: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|