@leapdevuk/component-toolbox 0.0.95 → 0.0.97
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/accordion/Accordion.d.ts +3 -0
- package/dist/components/accordion/index.d.ts +1 -0
- package/dist/components/accordiondetails/AccordionDetails.d.ts +3 -0
- package/dist/components/accordiondetails/index.d.ts +1 -0
- package/dist/components/accordionsummary/AccordionSummary.d.ts +6 -0
- package/dist/components/accordionsummary/index.d.ts +1 -0
- package/dist/components/accordiontable/AccordionTable.d.ts +14 -0
- package/dist/components/accordiontable/index.d.ts +1 -0
- package/dist/components/alert/Alert.d.ts +3 -0
- package/dist/components/alert/index.d.ts +1 -0
- package/dist/components/autocomplete/Autocomplete.d.ts +10 -0
- package/dist/components/autocomplete/index.d.ts +1 -0
- package/dist/components/box/Box.d.ts +3 -0
- package/dist/components/box/index.d.ts +1 -0
- package/dist/components/buttongroup/ButtonGroup.d.ts +3 -0
- package/dist/components/buttongroup/index.d.ts +1 -0
- package/dist/components/checkbox/Checkbox.d.ts +9 -0
- package/dist/components/checkbox/index.d.ts +1 -0
- package/dist/components/chip/Chip.d.ts +3 -0
- package/dist/components/chip/index.d.ts +1 -0
- package/dist/components/drawer/Drawer.d.ts +10 -0
- package/dist/components/drawer/index.d.ts +1 -0
- package/dist/components/iconbutton/IconButton.d.ts +3 -0
- package/dist/components/iconbutton/index.d.ts +1 -0
- package/dist/components/index.d.ts +26 -2
- package/dist/components/inputadornment/InputAdornment.d.ts +3 -0
- package/dist/components/inputadornment/index.d.ts +1 -0
- package/dist/components/inputlabel/InputLabel.d.ts +3 -0
- package/dist/components/inputlabel/index.d.ts +1 -0
- package/dist/components/list/List.d.ts +3 -0
- package/dist/components/list/index.d.ts +1 -0
- package/dist/components/listitembutton/ListItemButton.d.ts +3 -0
- package/dist/components/listitembutton/index.d.ts +1 -0
- package/dist/components/menu/Menu.d.ts +3 -0
- package/dist/components/menu/index.d.ts +1 -0
- package/dist/components/menuitem/MenuItem.d.ts +3 -0
- package/dist/components/menuitem/index.d.ts +1 -0
- package/dist/components/numberdisplay/NumberDisplay.d.ts +2 -2
- package/dist/components/select/Select.d.ts +2 -15
- package/dist/components/snackbar/Snackbar.d.ts +3 -0
- package/dist/components/snackbar/index.d.ts +1 -0
- package/dist/components/staffavatar/StaffAvatar.d.ts +7 -0
- package/dist/components/staffavatar/index.d.ts +1 -0
- package/dist/components/svgicon/SvgIcon.d.ts +3 -0
- package/dist/components/svgicon/index.d.ts +1 -0
- package/dist/components/textareaautosize/TextareaAutosize.d.ts +3 -0
- package/dist/components/textareaautosize/index.d.ts +1 -0
- package/dist/components/textfield/Textfield.d.ts +3 -0
- package/dist/components/textfield/index.d.ts +1 -0
- package/dist/components/tooltip/Tooltip.d.ts +3 -0
- package/dist/components/tooltip/index.d.ts +1 -0
- package/dist/components/typography/Typography.d.ts +2 -2
- package/dist/images/checkbox-checked-icon.d.ts +6 -0
- package/dist/images/checkbox-icon.d.ts +2 -0
- package/dist/images/doc-icon.d.ts +2 -0
- package/dist/images/excel-icon.d.ts +2 -0
- package/dist/images/index.d.ts +12 -0
- package/dist/images/pdf-icon.d.ts +2 -0
- package/dist/images/question-icon.d.ts +2 -0
- package/dist/images/undo-icon.d.ts +6 -0
- package/dist/index.cjs.js +38 -38
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +8131 -7886
- package/dist/index.es.js.map +1 -1
- package/package.json +26 -26
- /package/dist/components/datagrid/{header-row.d.ts → HeaderRow.d.ts} +0 -0
- /package/dist/components/daterangepicker/{date-action-pill.d.ts → DateActionPill.d.ts} +0 -0
- /package/dist/{components/datepicker → images}/calendar-icon.d.ts +0 -0
- /package/dist/{components/dialog/images → images}/info-icon.d.ts +0 -0
- /package/dist/{components/dialog/images → images}/leap-icon.d.ts +0 -0
- /package/dist/{components/dialog/images → images}/warning-icon.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as LCTAccordion } from './Accordion';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as LCTAccordionDetails } from './AccordionDetails';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const LCTAccordionSummary: import('@emotion/styled').StyledComponent<import('@mui/material').AccordionSummaryOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
2
|
+
ref?: ((instance: HTMLDivElement | 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<HTMLDivElement> | null | undefined;
|
|
3
|
+
}, "className" | "style" | "classes" | "children" | "sx" | "disabled" | "tabIndex" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "expandIcon"> & {
|
|
4
|
+
component?: React.ElementType;
|
|
5
|
+
} & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
6
|
+
export default LCTAccordionSummary;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as LCTAccordionSummary } from './AccordionSummary';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { GridRowParams } from '@mui/x-data-grid-pro';
|
|
2
|
+
import { GridInitialStatePro } from '@mui/x-data-grid-pro/models/gridStatePro';
|
|
3
|
+
interface IAccordionTableProps {
|
|
4
|
+
maxHeight: any;
|
|
5
|
+
rows: any[];
|
|
6
|
+
columns: any;
|
|
7
|
+
initialState?: GridInitialStatePro | undefined;
|
|
8
|
+
onRowDoubleClick?: (params: GridRowParams<any>) => void;
|
|
9
|
+
id: (row: any) => any;
|
|
10
|
+
rowHeight?: number;
|
|
11
|
+
headerHeight?: number;
|
|
12
|
+
}
|
|
13
|
+
declare const LCTAccordionTable: import('@emotion/styled').StyledComponent<IAccordionTableProps & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
14
|
+
export default LCTAccordionTable;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as LCTAccordionTable } from './AccordionTable';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as LCTAlert } from './Alert';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AutocompleteRenderInputParams, SxProps, Theme } from '@mui/material';
|
|
2
|
+
interface IAutocompleteProps {
|
|
3
|
+
renderInput: (params: AutocompleteRenderInputParams) => React.ReactNode;
|
|
4
|
+
sx?: SxProps<Theme>;
|
|
5
|
+
getOptionLabel?: ((option: string) => string) | undefined;
|
|
6
|
+
onChange?: (event: React.SyntheticEvent, value: string) => void;
|
|
7
|
+
renderOption?: (props: React.HTMLAttributes<HTMLLIElement>, value: string) => React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
declare const LCTAutocomplete: (props: IAutocompleteProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default LCTAutocomplete;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as LCTAutocomplete } from './Autocomplete';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as LCTBox } from './Box';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as LCTButtonGroup } from './ButtonGroup';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as LCTCheckbox } from './Checkbox';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as LCTChip } from './Chip';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DrawerProps } from '@mui/material';
|
|
2
|
+
interface IDrawerProps extends DrawerProps {
|
|
3
|
+
leftContent: React.ReactNode;
|
|
4
|
+
rightContent: React.ReactNode;
|
|
5
|
+
height: number | string;
|
|
6
|
+
defaultDrawerWidth: number;
|
|
7
|
+
minDrawerWidth?: number;
|
|
8
|
+
}
|
|
9
|
+
declare const LCTDrawer: (props: IDrawerProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default LCTDrawer;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as LCTDrawer } from './Drawer';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as LCTIconButton } from './IconButton';
|
|
@@ -1,14 +1,38 @@
|
|
|
1
|
+
export * from './accordion';
|
|
2
|
+
export * from './accordiondetails';
|
|
3
|
+
export * from './accordionsummary';
|
|
4
|
+
export * from './accordiontable';
|
|
5
|
+
export * from './alert';
|
|
1
6
|
export * from './appbar';
|
|
7
|
+
export * from './autocomplete';
|
|
8
|
+
export * from './box';
|
|
2
9
|
export * from './button';
|
|
10
|
+
export * from './buttongroup';
|
|
11
|
+
export * from './checkbox';
|
|
12
|
+
export * from './chip';
|
|
3
13
|
export * from './currencyinput';
|
|
14
|
+
export * from './datagrid';
|
|
4
15
|
export * from './datepicker';
|
|
5
16
|
export * from './daterangepicker';
|
|
6
|
-
export * from './datagrid';
|
|
7
17
|
export * from './dialog';
|
|
8
|
-
export * from './
|
|
18
|
+
export * from './drawer';
|
|
9
19
|
export * from './footer';
|
|
20
|
+
export * from './formdialog';
|
|
21
|
+
export * from './iconbutton';
|
|
22
|
+
export * from './inputadornment';
|
|
23
|
+
export * from './inputlabel';
|
|
24
|
+
export * from './list';
|
|
25
|
+
export * from './listitembutton';
|
|
10
26
|
export * from './loader';
|
|
27
|
+
export * from './menu';
|
|
28
|
+
export * from './menuitem';
|
|
11
29
|
export * from './numberdisplay';
|
|
12
30
|
export * from './numberinput';
|
|
13
31
|
export * from './select';
|
|
32
|
+
export * from './snackbar';
|
|
33
|
+
export * from './staffavatar';
|
|
34
|
+
export * from './svgicon';
|
|
35
|
+
export * from './textareaautosize';
|
|
36
|
+
export * from './textfield';
|
|
37
|
+
export * from './tooltip';
|
|
14
38
|
export * from './typography';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as LCTInputAdornment } from './InputAdornment';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as LCTInputLabel } from './InputLabel';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as LCTList } from './List';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as LCTListItemButton } from './ListItemButton';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as LCTMenu } from './Menu';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as LCTMenuItem } from './MenuItem';
|
|
@@ -6,8 +6,8 @@ interface IProps {
|
|
|
6
6
|
hideNoValue?: boolean;
|
|
7
7
|
notCurrency?: boolean;
|
|
8
8
|
showNegative?: boolean;
|
|
9
|
-
|
|
9
|
+
prefix?: string;
|
|
10
10
|
value?: number;
|
|
11
11
|
}
|
|
12
|
-
declare const LCTNumberDisplay: ({ align, bold, color, displayAsQty, hideNoValue, notCurrency, showNegative,
|
|
12
|
+
declare const LCTNumberDisplay: ({ align, bold, color, displayAsQty, hideNoValue, notCurrency, showNegative, prefix, value, }: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
export default LCTNumberDisplay;
|
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
value: string;
|
|
4
|
-
}
|
|
5
|
-
interface IProps {
|
|
6
|
-
autoComplete?: boolean;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
fullWidth?: boolean;
|
|
9
|
-
id: string;
|
|
10
|
-
items: ISelectItem[];
|
|
11
|
-
onUpdate: (value: string | null) => void;
|
|
12
|
-
size?: "small" | "medium";
|
|
13
|
-
value: string | null;
|
|
14
|
-
}
|
|
15
|
-
declare const LCTSelect: ({ autoComplete, disabled, fullWidth, id, items, onUpdate, size, value, ...props }: IProps) => import("react/jsx-runtime").JSX.Element | undefined;
|
|
1
|
+
import { SelectProps } from '@mui/material';
|
|
2
|
+
declare const LCTSelect: (props: SelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
3
|
export default LCTSelect;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as LCTSnackbar } from './Snackbar';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as LCTStaffAvatar } from './StaffAvatar';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as LCTSvgIcon } from './SvgIcon';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as LCTTextareaAutosize } from './TextareaAutosize';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as LCTTextfield } from './Textfield';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as LCTTooltip } from './Tooltip';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const LCTTypography: (props:
|
|
1
|
+
import { TypographyProps } from '@mui/material/Typography';
|
|
2
|
+
declare const LCTTypography: (props: TypographyProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default LCTTypography;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from './bin-icon';
|
|
2
|
+
export * from './calendar-icon';
|
|
3
|
+
export * from './checkbox-checked-icon';
|
|
4
|
+
export * from './checkbox-icon';
|
|
5
|
+
export * from './doc-icon';
|
|
6
|
+
export * from './excel-icon';
|
|
7
|
+
export * from './info-icon';
|
|
8
|
+
export * from './leap-icon';
|
|
9
|
+
export * from './pdf-icon';
|
|
10
|
+
export * from './question-icon';
|
|
11
|
+
export * from './undo-icon';
|
|
12
|
+
export * from './warning-icon';
|