@leapdevuk/component-toolbox 0.2.2 → 0.3.2
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/README.md +1 -1
- package/dist/CHANGELOG.md +74 -0
- package/dist/components/accordion/Accordion.d.ts +1 -1
- package/dist/components/accordiondetails/AccordionDetails.d.ts +1 -1
- package/dist/components/accordionsummary/AccordionSummary.d.ts +2 -2
- package/dist/components/alert/Alert.d.ts +1 -1
- package/dist/components/autocomplete/Autocomplete.d.ts +1 -1
- package/dist/components/avatargroup/AvatarGroup.d.ts +1 -1
- package/dist/components/box/Box.d.ts +1 -1
- package/dist/components/button/Button.d.ts +1 -1
- package/dist/components/buttongroup/ButtonGroup.d.ts +1 -1
- package/dist/components/chip/Chip.d.ts +1 -1
- package/dist/components/divider/Divider.d.ts +1 -1
- package/dist/components/drawer/Drawer.d.ts +1 -1
- package/dist/components/formcontrollabel/FormControlLabel.d.ts +1 -1
- package/dist/components/grid/Grid.d.ts +1 -1
- package/dist/components/iconbutton/IconButton.d.ts +1 -1
- package/dist/components/inputadornment/InputAdornment.d.ts +1 -1
- package/dist/components/inputlabel/InputLabel.d.ts +1 -1
- package/dist/components/list/List.d.ts +1 -1
- package/dist/components/listitem/ListItem.d.ts +1 -1
- package/dist/components/listitembutton/ListItemButton.d.ts +1 -1
- package/dist/components/listitemtext/ListItemText.d.ts +1 -1
- package/dist/components/menu/Menu.d.ts +1 -1
- package/dist/components/menuitem/MenuItem.d.ts +1 -1
- package/dist/components/numberdisplay/NumberDisplay.d.ts +1 -1
- package/dist/components/numberinput/NumberInput.d.ts +1 -1
- package/dist/components/select/Select.d.ts +1 -1
- package/dist/components/snackbar/Snackbar.d.ts +1 -1
- package/dist/components/staffavatar/StaffAvatar.d.ts +1 -1
- package/dist/components/svgicon/SvgIcon.d.ts +1 -1
- package/dist/components/tab/Tab.d.ts +1 -1
- package/dist/components/tabs/Tabs.d.ts +1 -1
- package/dist/components/textareaautosize/TextareaAutosize.d.ts +1 -1
- package/dist/components/textfield/Textfield.d.ts +1 -1
- package/dist/components/tooltip/Tooltip.d.ts +1 -1
- package/dist/components/typography/Typography.d.ts +1 -1
- package/dist/images/calendar-icon.d.ts +1 -1
- package/dist/images/checkbox-icon.d.ts +1 -1
- package/dist/images/comment-icon.d.ts +1 -1
- package/dist/images/doc-icon.d.ts +1 -1
- package/dist/images/email-icon.d.ts +1 -1
- package/dist/images/email-received-icon.d.ts +1 -1
- package/dist/images/email-sent-icon.d.ts +1 -1
- package/dist/images/excel-icon.d.ts +1 -1
- package/dist/images/image-icon.d.ts +1 -1
- package/dist/images/info-icon.d.ts +1 -1
- package/dist/images/leap-icon.d.ts +1 -1
- package/dist/images/pdf-icon.d.ts +1 -1
- package/dist/images/question-icon.d.ts +1 -1
- package/dist/images/unknown-doc-icon.d.ts +1 -1
- package/dist/images/warning-icon.d.ts +1 -1
- package/dist/index.cjs.js +4 -103
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +2866 -12400
- package/dist/index.es.js.map +1 -1
- package/package.json +63 -63
package/README.md
CHANGED
package/dist/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,79 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.2 (2026-11-17)
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
- **Peer dependency subpaths are now kept external.** The Rollup `external` option matched
|
|
8
|
+
only exact package names, so subpath imports such as `react/jsx-runtime`,
|
|
9
|
+
`@mui/material/styles` and `date-fns/format` were being inlined into the bundle. Two
|
|
10
|
+
consequences for consuming applications:
|
|
11
|
+
- The inlined CJS form of `react/jsx-runtime` calls `require("react")`, which throws at
|
|
12
|
+
runtime in a browser.
|
|
13
|
+
- Duplicate copies of MUI and date-fns internals were shipped, so a consuming app could
|
|
14
|
+
end up with two MUI theme contexts and two React runtimes.
|
|
15
|
+
|
|
16
|
+
Bundle size drops accordingly:
|
|
17
|
+
|
|
18
|
+
| Output | Before | After |
|
|
19
|
+
| --- | ---: | ---: |
|
|
20
|
+
| `index.es.js` | 322.45 kB | **113.85 kB** |
|
|
21
|
+
| `index.cjs.js` | 247.13 kB | **93.92 kB** |
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
|
|
25
|
+
- Vite config now imports `package.json` as a default import with an explicit
|
|
26
|
+
`with { type: "json" }` attribute, so it is compatible with Vite's native config loader
|
|
27
|
+
(planned to become the default in a future major). Removes a build warning; build output
|
|
28
|
+
is unchanged by this part.
|
|
29
|
+
|
|
30
|
+
## 0.3.1 (2026-11-17)
|
|
31
|
+
|
|
32
|
+
### Features
|
|
33
|
+
|
|
34
|
+
- Dependencies updated. No peer **major** moved, so this release is not breaking for
|
|
35
|
+
consuming applications.
|
|
36
|
+
- `@leapdev/leap-host` 4.3.0 → 4.4.0 (peer, minor)
|
|
37
|
+
- `@mui/x-data-grid-pro`, `@mui/x-date-pickers-pro`, `@mui/x-license` 9.17.0 → 9.18.0 (peer, minor)
|
|
38
|
+
- `vite` 8.3.8, `jsdom` 31.0.1, `prettier` 3.10.1, `@typescript-eslint/*` 8.73.0 (dev)
|
|
39
|
+
|
|
40
|
+
### Notes
|
|
41
|
+
|
|
42
|
+
- TypeScript remains held at **6.0.3** and ESLint at **9.39.5**. Both were re-checked this
|
|
43
|
+
release and remain blocked: `@typescript-eslint` 8.73.0 still peers `>=4.8.4 <6.1.0`
|
|
44
|
+
(no v9 published), and `eslint-plugin-react` is still 7.37.5 peering `^9.7`.
|
|
45
|
+
|
|
46
|
+
## 0.3.0 (2026-11-04)
|
|
47
|
+
|
|
48
|
+
### Breaking Changes
|
|
49
|
+
|
|
50
|
+
- **MUI upgraded to 9.5.0** (from 7.3.6) and **MUI X to 9.17.0** (from 8.29.2). These are
|
|
51
|
+
`peerDependencies`, so consuming apps must upgrade in lockstep. Notable MUI 9 changes
|
|
52
|
+
that affect code using this toolbox:
|
|
53
|
+
- `LCTMenuItem` now throws if rendered outside `LCTMenu`/`MenuList`.
|
|
54
|
+
- `LCTTab` now throws if rendered outside `LCTTabs`.
|
|
55
|
+
- `LCTTypography`'s `color` prop no longer accepts an arbitrary CSS colour (e.g. a hex)
|
|
56
|
+
— only theme palette tokens. Use `sx={{ color: "#..." }}` instead.
|
|
57
|
+
- Top-level system props on `Box`/`Typography` (`maxHeight`, `textAlign`, `fontWeight`)
|
|
58
|
+
must move into `sx`.
|
|
59
|
+
- `PaperProps` is replaced by `slotProps.paper` on `Drawer` and `Menu`.
|
|
60
|
+
- `@leapdev/leap-host` upgraded to 4.3.0, `react`/`react-dom` to 19.3.1.
|
|
61
|
+
|
|
62
|
+
### Features
|
|
63
|
+
|
|
64
|
+
- `LCTLoader`'s spinner is now exposed to assistive technology. MUI 9's `Backdrop` no
|
|
65
|
+
longer sets `aria-hidden`, closing a gap where screen-reader users got no indication
|
|
66
|
+
the app was loading.
|
|
67
|
+
- Build toolchain updated: Vite 8, Vitest 5, TypeScript 6, jsdom 30.
|
|
68
|
+
|
|
69
|
+
### Notes
|
|
70
|
+
|
|
71
|
+
- TypeScript is held at **6.0.3**: `@typescript-eslint` has no release supporting TS 7
|
|
72
|
+
(latest 8.72.1 peers `>=4.8.4 <6.1.0`). TS 7 also requires the `@typescript/typescript6`
|
|
73
|
+
companion for `.d.ts` generation.
|
|
74
|
+
- ESLint is held at **9.39.5**: `eslint-plugin-react` 7.37.5 peers `^9.7` and does not
|
|
75
|
+
support ESLint 10.
|
|
76
|
+
|
|
3
77
|
## 0.1.9 (2026-08-20)
|
|
4
78
|
|
|
5
79
|
### Bug Fixes
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { AccordionDetailsProps } from '@mui/material';
|
|
2
|
-
declare const LCTAccordionDetails: (props: AccordionDetailsProps) => import(
|
|
2
|
+
declare const LCTAccordionDetails: (props: AccordionDetailsProps) => import('react').JSX.Element;
|
|
3
3
|
export default LCTAccordionDetails;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const LCTAccordionSummary: import('@emotion/styled').StyledComponent<import('@mui/material').AccordionSummaryOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps,
|
|
2
|
-
component?: React.ElementType;
|
|
1
|
+
declare const LCTAccordionSummary: import('@emotion/styled').StyledComponent<import('@mui/material').AccordionSummaryOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, keyof import('@mui/material').AccordionSummaryOwnProps> & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "className" | "style" | "classes" | "children" | "sx" | "disabled" | "slots" | "slotProps" | "tabIndex" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "nativeButton" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "type" | "expandIcon"> & {
|
|
2
|
+
component?: React.ElementType | undefined;
|
|
3
3
|
} & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
4
4
|
export default LCTAccordionSummary;
|
|
@@ -8,5 +8,5 @@ interface IAutocompleteProps {
|
|
|
8
8
|
options: string[];
|
|
9
9
|
value: string | undefined;
|
|
10
10
|
}
|
|
11
|
-
declare const LCTAutocomplete: (props: IAutocompleteProps) => import(
|
|
11
|
+
declare const LCTAutocomplete: (props: IAutocompleteProps) => import('react').JSX.Element;
|
|
12
12
|
export default LCTAutocomplete;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { AvatarGroupProps } from '@mui/material';
|
|
2
|
-
declare const LCTAvatarGroup: (props: AvatarGroupProps) => import(
|
|
2
|
+
declare const LCTAvatarGroup: (props: AvatarGroupProps) => import('react').JSX.Element;
|
|
3
3
|
export default LCTAvatarGroup;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ButtonGroupProps } from '@mui/material';
|
|
2
|
-
declare const LCTButtonGroup: (props: ButtonGroupProps) => import(
|
|
2
|
+
declare const LCTButtonGroup: (props: ButtonGroupProps) => import('react').JSX.Element;
|
|
3
3
|
export default LCTButtonGroup;
|
|
@@ -6,5 +6,5 @@ interface IDrawerProps extends DrawerProps {
|
|
|
6
6
|
defaultDrawerWidth: number;
|
|
7
7
|
minDrawerWidth?: number;
|
|
8
8
|
}
|
|
9
|
-
declare const LCTDrawer: (props: IDrawerProps) => import(
|
|
9
|
+
declare const LCTDrawer: (props: IDrawerProps) => import('react').JSX.Element;
|
|
10
10
|
export default LCTDrawer;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FormControlLabelProps } from '@mui/material';
|
|
2
|
-
declare const LCTFormControlLabel: (props: FormControlLabelProps) => import(
|
|
2
|
+
declare const LCTFormControlLabel: (props: FormControlLabelProps) => import('react').JSX.Element;
|
|
3
3
|
export default LCTFormControlLabel;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { InputAdornmentProps } from '@mui/material';
|
|
2
|
-
declare const LCTInputAdornment: (props: InputAdornmentProps) => import(
|
|
2
|
+
declare const LCTInputAdornment: (props: InputAdornmentProps) => import('react').JSX.Element;
|
|
3
3
|
export default LCTInputAdornment;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ListItemOwnProps } from '@mui/material/ListItem';
|
|
2
|
-
declare const LCTListItem: (props: ListItemOwnProps) => import(
|
|
2
|
+
declare const LCTListItem: (props: ListItemOwnProps) => import('react').JSX.Element;
|
|
3
3
|
export default LCTListItem;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ListItemButtonProps } from '@mui/material';
|
|
2
|
-
declare const LCTListItemButton: (props: ListItemButtonProps) => import(
|
|
2
|
+
declare const LCTListItemButton: (props: ListItemButtonProps) => import('react').JSX.Element;
|
|
3
3
|
export default LCTListItemButton;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TypographyProps } from '@mui/material/Typography';
|
|
2
|
-
declare const LCTListItemText: (props: TypographyProps) => import(
|
|
2
|
+
declare const LCTListItemText: (props: TypographyProps) => import('react').JSX.Element;
|
|
3
3
|
export default LCTListItemText;
|
|
@@ -10,5 +10,5 @@ interface IProps {
|
|
|
10
10
|
prefix?: string;
|
|
11
11
|
value?: number;
|
|
12
12
|
}
|
|
13
|
-
declare const LCTNumberDisplay: ({ align, bold, color, displayAsQty, hideNoValue, noValueText, notCurrency, showNegative, prefix, value, }: IProps) => import(
|
|
13
|
+
declare const LCTNumberDisplay: ({ align, bold, color, displayAsQty, hideNoValue, noValueText, notCurrency, showNegative, prefix, value, }: IProps) => import('react').JSX.Element;
|
|
14
14
|
export default LCTNumberDisplay;
|
|
@@ -8,5 +8,5 @@ interface IProps {
|
|
|
8
8
|
value?: number;
|
|
9
9
|
width?: number;
|
|
10
10
|
}
|
|
11
|
-
declare const LCTNumberInput: ({ autoFocus, disabled, placeholder, size, updater, value, width, ...props }: IProps) => import(
|
|
11
|
+
declare const LCTNumberInput: ({ autoFocus, disabled, placeholder, size, updater, value, width, ...props }: IProps) => import('react').JSX.Element;
|
|
12
12
|
export default LCTNumberInput;
|
|
@@ -8,5 +8,5 @@ type ISelectProps = SelectProps & {
|
|
|
8
8
|
originalValue?: string[];
|
|
9
9
|
fullList?: string[];
|
|
10
10
|
};
|
|
11
|
-
declare const LCTSelect: (props: ISelectProps) => import(
|
|
11
|
+
declare const LCTSelect: (props: ISelectProps) => import('react').JSX.Element;
|
|
12
12
|
export default LCTSelect;
|
|
@@ -3,5 +3,5 @@ interface IStaffAvatarProps {
|
|
|
3
3
|
hideMargin?: boolean;
|
|
4
4
|
fullName?: string;
|
|
5
5
|
}
|
|
6
|
-
declare const LCTStaffAvatar: (props: IStaffAvatarProps) => import(
|
|
6
|
+
declare const LCTStaffAvatar: (props: IStaffAvatarProps) => import('react').JSX.Element;
|
|
7
7
|
export default LCTStaffAvatar;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TextareaAutosizeProps } from '@mui/material';
|
|
2
|
-
declare const LCTTextareaAutosize: (props: TextareaAutosizeProps) => import(
|
|
2
|
+
declare const LCTTextareaAutosize: (props: TextareaAutosizeProps) => import('react').JSX.Element;
|
|
3
3
|
export default LCTTextareaAutosize;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TypographyProps } from '@mui/material/Typography';
|
|
2
|
-
declare const LCTTypography: (props: TypographyProps) => import(
|
|
2
|
+
declare const LCTTypography: (props: TypographyProps) => import('react').JSX.Element;
|
|
3
3
|
export default LCTTypography;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare function CalendarIcon(): import(
|
|
1
|
+
declare function CalendarIcon(): import('react').JSX.Element;
|
|
2
2
|
export default CalendarIcon;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare function CheckboxIcon(): import(
|
|
1
|
+
declare function CheckboxIcon(): import('react').JSX.Element;
|
|
2
2
|
export default CheckboxIcon;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const CommentIcon: () => import(
|
|
1
|
+
declare const CommentIcon: () => import('react').JSX.Element;
|
|
2
2
|
export default CommentIcon;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare function DocIcon(): import(
|
|
1
|
+
declare function DocIcon(): import('react').JSX.Element;
|
|
2
2
|
export default DocIcon;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare function EmailIcon(): import(
|
|
1
|
+
declare function EmailIcon(): import('react').JSX.Element;
|
|
2
2
|
export default EmailIcon;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare function EmailReceivedIcon(): import(
|
|
1
|
+
declare function EmailReceivedIcon(): import('react').JSX.Element;
|
|
2
2
|
export default EmailReceivedIcon;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare function EmailSentIcon(): import(
|
|
1
|
+
declare function EmailSentIcon(): import('react').JSX.Element;
|
|
2
2
|
export default EmailSentIcon;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare function ExcelIcon(): import(
|
|
1
|
+
declare function ExcelIcon(): import('react').JSX.Element;
|
|
2
2
|
export default ExcelIcon;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare function ImageIcon(): import(
|
|
1
|
+
declare function ImageIcon(): import('react').JSX.Element;
|
|
2
2
|
export default ImageIcon;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare function InfoIcon(): import(
|
|
1
|
+
declare function InfoIcon(): import('react').JSX.Element;
|
|
2
2
|
export default InfoIcon;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare function LEAPIcon(): import(
|
|
1
|
+
declare function LEAPIcon(): import('react').JSX.Element;
|
|
2
2
|
export default LEAPIcon;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const PDFIcon: () => import(
|
|
1
|
+
declare const PDFIcon: () => import('react').JSX.Element;
|
|
2
2
|
export default PDFIcon;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare function QuestionIcon(): import(
|
|
1
|
+
declare function QuestionIcon(): import('react').JSX.Element;
|
|
2
2
|
export default QuestionIcon;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare function UnknownDocIcon(): import(
|
|
1
|
+
declare function UnknownDocIcon(): import('react').JSX.Element;
|
|
2
2
|
export default UnknownDocIcon;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare function WarningIcon(): import(
|
|
1
|
+
declare function WarningIcon(): import('react').JSX.Element;
|
|
2
2
|
export default WarningIcon;
|