@alextheman/components 6.0.0 → 6.1.1
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/index.d.ts +24 -24
- package/package.json +34 -27
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CollapseProps } from "@mui/material/Collapse";
|
|
2
2
|
import * as react0 from "react";
|
|
3
3
|
import { CSSProperties, ComponentProps, ComponentType, Dispatch, ElementType, JSX, ReactNode, Ref, SetStateAction } from "react";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime12 from "react/jsx-runtime";
|
|
5
5
|
import { AlertColor } from "@mui/material/Alert";
|
|
6
6
|
import { PaletteMode, SxProps, Theme } from "@mui/material/styles";
|
|
7
7
|
import { OptionalOnCondition } from "@alextheman/utility";
|
|
@@ -40,10 +40,10 @@ declare function CollapsableItem({
|
|
|
40
40
|
openIcon,
|
|
41
41
|
closedIcon,
|
|
42
42
|
useDefaultStyling
|
|
43
|
-
}: CollapsableItemProps):
|
|
43
|
+
}: CollapsableItemProps): react_jsx_runtime12.JSX.Element;
|
|
44
44
|
//#endregion
|
|
45
45
|
//#region src/components/DarkModeToggle.d.ts
|
|
46
|
-
declare function DarkModeToggle():
|
|
46
|
+
declare function DarkModeToggle(): react_jsx_runtime12.JSX.Element;
|
|
47
47
|
//#endregion
|
|
48
48
|
//#region src/components/DropdownMenu.d.ts
|
|
49
49
|
interface DropdownMenuProps {
|
|
@@ -65,7 +65,7 @@ declare function DropdownMenu({
|
|
|
65
65
|
isClosedIcon,
|
|
66
66
|
onOpen,
|
|
67
67
|
onClose
|
|
68
|
-
}: DropdownMenuProps):
|
|
68
|
+
}: DropdownMenuProps): react_jsx_runtime12.JSX.Element;
|
|
69
69
|
//#endregion
|
|
70
70
|
//#region src/components/ExternalLink.d.ts
|
|
71
71
|
interface ExternalLinkProps extends Omit<LinkProps, "to" | "target" | "rel"> {
|
|
@@ -79,7 +79,7 @@ declare function ExternalLink({
|
|
|
79
79
|
children,
|
|
80
80
|
ref,
|
|
81
81
|
...linkProps
|
|
82
|
-
}: ExternalLinkProps):
|
|
82
|
+
}: ExternalLinkProps): react_jsx_runtime12.JSX.Element;
|
|
83
83
|
//#endregion
|
|
84
84
|
//#region src/components/FileInput.d.ts
|
|
85
85
|
declare const FileType: {
|
|
@@ -108,7 +108,7 @@ declare function FileInput({
|
|
|
108
108
|
accept,
|
|
109
109
|
useDropzone,
|
|
110
110
|
...buttonProps
|
|
111
|
-
}: FileInputProps):
|
|
111
|
+
}: FileInputProps): react_jsx_runtime12.JSX.Element;
|
|
112
112
|
//#endregion
|
|
113
113
|
//#region src/components/FileInputList.d.ts
|
|
114
114
|
interface FileInputListProps extends Omit<FileInputProps, "onFileInput"> {
|
|
@@ -119,7 +119,7 @@ declare function FileInputList({
|
|
|
119
119
|
files,
|
|
120
120
|
setFiles,
|
|
121
121
|
...fileInputProps
|
|
122
|
-
}: FileInputListProps):
|
|
122
|
+
}: FileInputListProps): react_jsx_runtime12.JSX.Element;
|
|
123
123
|
//#endregion
|
|
124
124
|
//#region src/components/IconWithPopover.d.ts
|
|
125
125
|
interface IconWithPopoverProps {
|
|
@@ -137,7 +137,7 @@ declare function IconWithPopover({
|
|
|
137
137
|
onClose,
|
|
138
138
|
iconProps,
|
|
139
139
|
children
|
|
140
|
-
}: IconWithPopoverProps):
|
|
140
|
+
}: IconWithPopoverProps): react_jsx_runtime12.JSX.Element;
|
|
141
141
|
//#endregion
|
|
142
142
|
//#region src/components/InternalLink.d.ts
|
|
143
143
|
interface InternalLinkProps extends Omit<LinkProps, "href"> {
|
|
@@ -151,7 +151,7 @@ declare function InternalLink({
|
|
|
151
151
|
children,
|
|
152
152
|
ref,
|
|
153
153
|
...linkProps
|
|
154
|
-
}: InternalLinkProps):
|
|
154
|
+
}: InternalLinkProps): react_jsx_runtime12.JSX.Element;
|
|
155
155
|
//#endregion
|
|
156
156
|
//#region src/components/ListItemInternalLink.d.ts
|
|
157
157
|
interface ListItemInternalLinkProps extends Omit<ListItemButtonProps, "href"> {
|
|
@@ -161,7 +161,7 @@ interface ListItemInternalLinkProps extends Omit<ListItemButtonProps, "href"> {
|
|
|
161
161
|
declare function ListItemInternalLink({
|
|
162
162
|
children,
|
|
163
163
|
...listItemButtonProps
|
|
164
|
-
}: ListItemInternalLinkProps):
|
|
164
|
+
}: ListItemInternalLinkProps): react_jsx_runtime12.JSX.Element;
|
|
165
165
|
//#endregion
|
|
166
166
|
//#region src/types/ContextHookOptions.d.ts
|
|
167
167
|
interface ContextHookOptions<S extends boolean = true> {
|
|
@@ -203,7 +203,7 @@ declare function LoaderProvider<T>({
|
|
|
203
203
|
children,
|
|
204
204
|
loadingComponent,
|
|
205
205
|
...contextProps
|
|
206
|
-
}: LoaderProviderProps<T>):
|
|
206
|
+
}: LoaderProviderProps<T>): react_jsx_runtime12.JSX.Element;
|
|
207
207
|
//#endregion
|
|
208
208
|
//#region src/providers/LoaderProvider/LoaderData.d.ts
|
|
209
209
|
interface LoaderDataProps<T> {
|
|
@@ -221,7 +221,7 @@ declare function LoaderData<T>({
|
|
|
221
221
|
children,
|
|
222
222
|
dataParser: loaderDataParser,
|
|
223
223
|
loadingComponent
|
|
224
|
-
}: LoaderDataProps<T>):
|
|
224
|
+
}: LoaderDataProps<T>): react_jsx_runtime12.JSX.Element;
|
|
225
225
|
//#endregion
|
|
226
226
|
//#region src/providers/LoaderProvider/LoaderError.d.ts
|
|
227
227
|
interface LoaderErrorBaseProps {
|
|
@@ -256,7 +256,7 @@ declare function LoaderError({
|
|
|
256
256
|
nullComponent,
|
|
257
257
|
nullableComponent,
|
|
258
258
|
logError: propsLogError
|
|
259
|
-
}: LoaderErrorProps): string | number | bigint | boolean |
|
|
259
|
+
}: LoaderErrorProps): string | number | bigint | boolean | react_jsx_runtime12.JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react0.ReactPortal | react0.ReactElement<unknown, string | react0.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | null | undefined;
|
|
260
260
|
//#endregion
|
|
261
261
|
//#region src/providers/ModeProvider.d.ts
|
|
262
262
|
interface ModeContextValue {
|
|
@@ -273,7 +273,7 @@ interface ModeProviderProps {
|
|
|
273
273
|
declare function ModeProvider({
|
|
274
274
|
children,
|
|
275
275
|
mode: modeProp
|
|
276
|
-
}: ModeProviderProps):
|
|
276
|
+
}: ModeProviderProps): react_jsx_runtime12.JSX.Element;
|
|
277
277
|
//#endregion
|
|
278
278
|
//#region src/providers/ScreenSizeProvider.d.ts
|
|
279
279
|
interface ScreenSizeProps {
|
|
@@ -293,7 +293,7 @@ declare function ScreenSizeProvider({
|
|
|
293
293
|
children,
|
|
294
294
|
largeScreenWidth,
|
|
295
295
|
largeScreenHeight
|
|
296
|
-
}: ScreenSizeProps):
|
|
296
|
+
}: ScreenSizeProps): react_jsx_runtime12.JSX.Element;
|
|
297
297
|
//#endregion
|
|
298
298
|
//#region src/providers/SnackbarProvider.d.ts
|
|
299
299
|
interface SnackbarProviderProps {
|
|
@@ -309,7 +309,7 @@ declare function useSnackbar<Strict extends boolean = true>({
|
|
|
309
309
|
declare function SnackbarProvider({
|
|
310
310
|
children,
|
|
311
311
|
autoHideDuration
|
|
312
|
-
}: SnackbarProviderProps):
|
|
312
|
+
}: SnackbarProviderProps): react_jsx_runtime12.JSX.Element;
|
|
313
313
|
//#endregion
|
|
314
314
|
//#region src/components/Loader.d.ts
|
|
315
315
|
type LoaderProps<T> = Omit<LoaderProviderProps<T>, "children"> & Omit<LoaderErrorProps, "errorComponent" | "children"> & Omit<LoaderDataProps<T>, "showOnError" | "onUndefined" | "onNull" | "onNullable">;
|
|
@@ -324,7 +324,7 @@ declare function Loader<T>({
|
|
|
324
324
|
nullableComponent,
|
|
325
325
|
loadingComponent,
|
|
326
326
|
...loaderProviderProps
|
|
327
|
-
}: LoaderProps<T>):
|
|
327
|
+
}: LoaderProps<T>): react_jsx_runtime12.JSX.Element;
|
|
328
328
|
//#endregion
|
|
329
329
|
//#region src/components/NavigationBottom.d.ts
|
|
330
330
|
interface NavItemBottom {
|
|
@@ -340,7 +340,7 @@ interface NavigationBottomProps {
|
|
|
340
340
|
declare function NavigationBottom({
|
|
341
341
|
children,
|
|
342
342
|
navItems
|
|
343
|
-
}: NavigationBottomProps):
|
|
343
|
+
}: NavigationBottomProps): react_jsx_runtime12.JSX.Element;
|
|
344
344
|
//#endregion
|
|
345
345
|
//#region src/components/NavigationDrawer.d.ts
|
|
346
346
|
interface NavMenuItem {
|
|
@@ -362,7 +362,7 @@ declare function NavigationDrawer({
|
|
|
362
362
|
navItems,
|
|
363
363
|
children,
|
|
364
364
|
headerElements
|
|
365
|
-
}: NavigationDrawerProps):
|
|
365
|
+
}: NavigationDrawerProps): react_jsx_runtime12.JSX.Element;
|
|
366
366
|
//#endregion
|
|
367
367
|
//#region src/components/PopoverText.d.ts
|
|
368
368
|
interface PopoverTextProps extends TypographyProps {
|
|
@@ -372,7 +372,7 @@ declare function PopoverText({
|
|
|
372
372
|
text,
|
|
373
373
|
sx,
|
|
374
374
|
...typographyProps
|
|
375
|
-
}: PopoverTextProps):
|
|
375
|
+
}: PopoverTextProps): react_jsx_runtime12.JSX.Element;
|
|
376
376
|
//#endregion
|
|
377
377
|
//#region src/components/ReactPlayground.d.ts
|
|
378
378
|
interface ReactPlaygroundProps extends ComponentProps<typeof LiveProvider> {
|
|
@@ -382,7 +382,7 @@ declare function ReactPlayground({
|
|
|
382
382
|
code,
|
|
383
383
|
previewStyles,
|
|
384
384
|
...liveProviderProps
|
|
385
|
-
}: ReactPlaygroundProps):
|
|
385
|
+
}: ReactPlaygroundProps): react_jsx_runtime12.JSX.Element;
|
|
386
386
|
//#endregion
|
|
387
387
|
//#region src/components/SkeletonRow.d.ts
|
|
388
388
|
interface SkeletonRowProps {
|
|
@@ -390,7 +390,7 @@ interface SkeletonRowProps {
|
|
|
390
390
|
}
|
|
391
391
|
declare function SkeletonRow({
|
|
392
392
|
columns
|
|
393
|
-
}: SkeletonRowProps):
|
|
393
|
+
}: SkeletonRowProps): react_jsx_runtime12.JSX.Element;
|
|
394
394
|
//#endregion
|
|
395
395
|
//#region src/components/SubmitButton.d.ts
|
|
396
396
|
interface SubmitButtonProps extends Omit<ButtonProps, "type"> {
|
|
@@ -401,7 +401,7 @@ declare function SubmitButton({
|
|
|
401
401
|
disableClean,
|
|
402
402
|
label,
|
|
403
403
|
...buttonProps
|
|
404
|
-
}: SubmitButtonProps):
|
|
404
|
+
}: SubmitButtonProps): react_jsx_runtime12.JSX.Element;
|
|
405
405
|
//#endregion
|
|
406
406
|
//#region src/components/SwitchWithIcons.d.ts
|
|
407
407
|
interface SwitchWithIconsProps extends Omit<SwitchProps, "icon" | "checkedIcon"> {
|
|
@@ -420,7 +420,7 @@ declare function SwitchWithIcons({
|
|
|
420
420
|
uncheckedIcon: UncheckedIcon,
|
|
421
421
|
uncheckedIconStyles,
|
|
422
422
|
...switchProps
|
|
423
|
-
}: SwitchWithIconsProps):
|
|
423
|
+
}: SwitchWithIconsProps): react_jsx_runtime12.JSX.Element;
|
|
424
424
|
//#endregion
|
|
425
425
|
//#region src/hooks/useHash.d.ts
|
|
426
426
|
declare function useHash<S extends string>(initialHash: S | undefined): [S, Dispatch<SetStateAction<S>>];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alextheman/components",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.1.1",
|
|
4
4
|
"description": "A package containing common React components used across my projects",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -17,54 +17,61 @@
|
|
|
17
17
|
],
|
|
18
18
|
"scripts": {
|
|
19
19
|
"build": "tsdown",
|
|
20
|
-
"change-major": "
|
|
21
|
-
"change-minor": "
|
|
22
|
-
"change-patch": "
|
|
23
|
-
"create-local-package": "
|
|
24
|
-
"format": "
|
|
20
|
+
"change-major": "pnpm version major -m \"Change version number to v%s\n\nThe changes associated with this version may remove certain features and/or change existing features in such a way that would require users to heavily refactor their code. Please see the associated commits with this pull request for more information on what changed.\"",
|
|
21
|
+
"change-minor": "pnpm version minor -m \"Change version number to v%s\"",
|
|
22
|
+
"change-patch": "pnpm version patch -m \"Change version number to v%s\"",
|
|
23
|
+
"create-local-package": "pnpm run build && rm -f alextheman-components-*.tgz && pnpm pack",
|
|
24
|
+
"format": "pnpm run format-prettier && pnpm run format-eslint",
|
|
25
25
|
"format-eslint": "eslint --fix --suppress-all \"src/**/*.{ts,tsx}\" \"package.json\" && rm -f eslint-suppressions.json",
|
|
26
|
-
"format-prettier": "
|
|
26
|
+
"format-prettier": "pnpm run format-prettier-typescript && pnpm run format-prettier-javascript",
|
|
27
27
|
"format-prettier-javascript": "prettier --write \"./**/*.js\"",
|
|
28
28
|
"format-prettier-typescript": "prettier --write --parser typescript \"./**/*.{ts,tsx}\"",
|
|
29
|
-
"lint": "
|
|
29
|
+
"lint": "pnpm run lint-tsc && pnpm run lint-eslint && pnpm run lint-prettier",
|
|
30
30
|
"lint-eslint": "eslint \"src/**/*.{ts,tsx}\" \"package.json\"",
|
|
31
|
-
"lint-prettier": "
|
|
31
|
+
"lint-prettier": "pnpm run lint-prettier-typescript && pnpm run lint-prettier-javascript",
|
|
32
32
|
"lint-prettier-javascript": "prettier --check \"./**/*.js\"",
|
|
33
33
|
"lint-prettier-typescript": "prettier --check --parser typescript \"./**/*.{ts,tsx}\"",
|
|
34
34
|
"lint-tsc": "tsc --noEmit",
|
|
35
35
|
"prepare": "husky",
|
|
36
36
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
37
|
-
"update-dependencies": "bash -c '
|
|
38
|
-
"
|
|
39
|
-
"use-
|
|
40
|
-
"use-local-eslint-plugin": "npm --prefix ../eslint-plugin run create-local-package && npm uninstall @alextheman/eslint-plugin && npm install --save-dev ../eslint-plugin/alextheman-eslint-plugin-*.tgz"
|
|
37
|
+
"update-dependencies": "bash -c 'pnpx npm-check-updates -p pnpm -u \"$@\" && pnpm install' --",
|
|
38
|
+
"use-live-eslint-plugin": "pnpm uninstall @alextheman/eslint-plugin && pnpm install --save-dev @alextheman/eslint-plugin",
|
|
39
|
+
"use-local-eslint-plugin": "npm --prefix ../eslint-plugin run create-local-package && pnpm uninstall @alextheman/eslint-plugin && pnpm install --save-dev ../eslint-plugin/alextheman-eslint-plugin-*.tgz"
|
|
41
40
|
},
|
|
42
41
|
"dependencies": {
|
|
43
|
-
"@alextheman/utility": "^
|
|
42
|
+
"@alextheman/utility": "^3.3.2",
|
|
44
43
|
"common-tags": "^1.8.2",
|
|
45
44
|
"react-live": "^4.1.8"
|
|
46
45
|
},
|
|
47
46
|
"devDependencies": {
|
|
48
|
-
"@alextheman/eslint-plugin": "^
|
|
47
|
+
"@alextheman/eslint-plugin": "^4.2.3",
|
|
48
|
+
"@emotion/react": "^11.14.0",
|
|
49
|
+
"@emotion/styled": "^11.14.1",
|
|
50
|
+
"@mui/icons-material": "^7.3.5",
|
|
51
|
+
"@mui/material": "^7.3.5",
|
|
49
52
|
"@types/common-tags": "^1.8.4",
|
|
50
53
|
"@types/node": "^24.10.1",
|
|
51
|
-
"@types/react": "^19.2.
|
|
54
|
+
"@types/react": "^19.2.7",
|
|
52
55
|
"eslint": "^9.39.1",
|
|
53
56
|
"globals": "^16.5.0",
|
|
54
57
|
"husky": "^9.1.7",
|
|
55
|
-
"prettier": "^3.
|
|
58
|
+
"prettier": "^3.7.2",
|
|
59
|
+
"react": "^19.2.0",
|
|
60
|
+
"react-hook-form": "^7.67.0",
|
|
61
|
+
"react-router-dom": "^7.9.6",
|
|
56
62
|
"styled-components": "^6.1.19",
|
|
57
|
-
"tsdown": "^0.16.
|
|
63
|
+
"tsdown": "^0.16.8",
|
|
58
64
|
"typescript": "^5.9.3",
|
|
59
|
-
"typescript-eslint": "^8.
|
|
65
|
+
"typescript-eslint": "^8.48.0"
|
|
60
66
|
},
|
|
61
67
|
"peerDependencies": {
|
|
62
|
-
"@emotion/react": "
|
|
63
|
-
"@emotion/styled": "
|
|
64
|
-
"@mui/icons-material": "
|
|
65
|
-
"@mui/material": "
|
|
66
|
-
"react": "
|
|
67
|
-
"react-hook-form": "
|
|
68
|
-
"react-router-dom": "
|
|
69
|
-
}
|
|
68
|
+
"@emotion/react": ">=11.0.0",
|
|
69
|
+
"@emotion/styled": ">=11.0.0",
|
|
70
|
+
"@mui/icons-material": ">=7.0.0",
|
|
71
|
+
"@mui/material": ">=7.0.0",
|
|
72
|
+
"react": ">=19.0.0",
|
|
73
|
+
"react-hook-form": ">=7.66.0",
|
|
74
|
+
"react-router-dom": ">=7.0.0"
|
|
75
|
+
},
|
|
76
|
+
"packageManager": "pnpm@10.24.0+sha512.01ff8ae71b4419903b65c60fb2dc9d34cf8bb6e06d03bde112ef38f7a34d6904c424ba66bea5cdcf12890230bf39f9580473140ed9c946fef328b6e5238a345a"
|
|
70
77
|
}
|