@startdownnotez404/ui 1.3.5 → 1.3.6
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/AutocompleteField-653233JU.mjs +203 -0
- package/dist/AutocompleteField-653233JU.mjs.map +1 -0
- package/dist/AvatarField-KFASMVZU.mjs +378 -0
- package/dist/AvatarField-KFASMVZU.mjs.map +1 -0
- package/dist/{DateField-ZYMZFHL4.mjs → DateField-CDJ6W6XF.mjs} +19 -7
- package/dist/DateField-CDJ6W6XF.mjs.map +1 -0
- package/dist/DateRangeField-ZWSFT5KV.mjs +118 -0
- package/dist/DateRangeField-ZWSFT5KV.mjs.map +1 -0
- package/dist/{DateTimeField-TPTJ7YIZ.mjs → DateTimeField-SFAF4I6A.mjs} +36 -11
- package/dist/DateTimeField-SFAF4I6A.mjs.map +1 -0
- package/dist/FileUploadField-TSNCSLXX.mjs +101 -0
- package/dist/FileUploadField-TSNCSLXX.mjs.map +1 -0
- package/dist/{JSONEditorField-TMRWGXVR.mjs → JSONEditorField-3KXC2GOG.mjs} +7 -6
- package/dist/{JSONEditorField-TMRWGXVR.mjs.map → JSONEditorField-3KXC2GOG.mjs.map} +1 -1
- package/dist/{PopperMenu-LJ36RPBW.mjs → PopperMenu-PSHLKIEZ.mjs} +26 -12
- package/dist/{PopperMenu-LJ36RPBW.mjs.map → PopperMenu-PSHLKIEZ.mjs.map} +1 -1
- package/dist/{TelField-LOGRVZ4I.mjs → TelField-FRQT2UBJ.mjs} +8 -7
- package/dist/{TelField-LOGRVZ4I.mjs.map → TelField-FRQT2UBJ.mjs.map} +1 -1
- package/dist/TimeField-XVWXBJID.mjs +94 -0
- package/dist/TimeField-XVWXBJID.mjs.map +1 -0
- package/dist/alert.d.mts +148 -18
- package/dist/alert.d.ts +148 -18
- package/dist/alert.js +698 -254
- package/dist/alert.js.map +1 -1
- package/dist/alert.mjs +46 -10
- package/dist/autocomplete.d.mts +438 -4
- package/dist/autocomplete.d.ts +438 -4
- package/dist/autocomplete.js +632 -21
- package/dist/autocomplete.js.map +1 -1
- package/dist/autocomplete.mjs +26 -7
- package/dist/avatar.js +2 -1
- package/dist/avatar.js.map +1 -1
- package/dist/avatar.mjs +12 -11
- package/dist/box.mjs +2 -1
- package/dist/button.mjs +3 -2
- package/dist/chart.mjs +3 -2
- package/dist/checkbox.mjs +3 -2
- package/dist/chunk-2FK24ZPJ.mjs +78 -0
- package/dist/chunk-2FK24ZPJ.mjs.map +1 -0
- package/dist/{chunk-V26V2S3W.mjs → chunk-3O3N6X6D.mjs} +3 -3
- package/dist/{chunk-Y74ALKBL.mjs → chunk-4MSPA7U7.mjs} +11 -9
- package/dist/{chunk-Y74ALKBL.mjs.map → chunk-4MSPA7U7.mjs.map} +1 -1
- package/dist/{chunk-24XDGNJ6.mjs → chunk-4P45Z5LR.mjs} +63 -41
- package/dist/chunk-4P45Z5LR.mjs.map +1 -0
- package/dist/chunk-4SSJY32J.mjs +1182 -0
- package/dist/chunk-4SSJY32J.mjs.map +1 -0
- package/dist/{chunk-XJ2SXC2Q.mjs → chunk-6B6I27TT.mjs} +18 -16
- package/dist/{chunk-XJ2SXC2Q.mjs.map → chunk-6B6I27TT.mjs.map} +1 -1
- package/dist/chunk-6JKMEH2L.mjs +205 -0
- package/dist/chunk-6JKMEH2L.mjs.map +1 -0
- package/dist/{chunk-IN3O4R7Q.mjs → chunk-7O526A2D.mjs} +6 -4
- package/dist/{chunk-IN3O4R7Q.mjs.map → chunk-7O526A2D.mjs.map} +1 -1
- package/dist/chunk-AFLEG5ZC.mjs +28 -0
- package/dist/chunk-AFLEG5ZC.mjs.map +1 -0
- package/dist/{chunk-UGMRJMFZ.mjs → chunk-BO5CU4ZM.mjs} +4 -4
- package/dist/{chunk-JIU5GVM7.mjs → chunk-D4XPNSSI.mjs} +5 -3
- package/dist/{chunk-JIU5GVM7.mjs.map → chunk-D4XPNSSI.mjs.map} +1 -1
- package/dist/chunk-DPIMA5IO.mjs +72 -0
- package/dist/chunk-DPIMA5IO.mjs.map +1 -0
- package/dist/chunk-F2CGFVIZ.mjs +83 -0
- package/dist/chunk-F2CGFVIZ.mjs.map +1 -0
- package/dist/{chunk-R5MKQN6D.mjs → chunk-FBLSJQWK.mjs} +3 -3
- package/dist/{chunk-BGB7JHIU.mjs → chunk-FMGZCOJC.mjs} +5 -3
- package/dist/{chunk-BGB7JHIU.mjs.map → chunk-FMGZCOJC.mjs.map} +1 -1
- package/dist/{chunk-UTVSYS6S.mjs → chunk-FNSIQ2B7.mjs} +18 -6
- package/dist/chunk-FNSIQ2B7.mjs.map +1 -0
- package/dist/{chunk-JWANK42G.mjs → chunk-FUZ2JNTZ.mjs} +3 -3
- package/dist/{chunk-CRYIEYZZ.mjs → chunk-HAJWE62X.mjs} +66 -42
- package/dist/chunk-HAJWE62X.mjs.map +1 -0
- package/dist/{chunk-CWFWRZWU.mjs → chunk-KSN33A6I.mjs} +3 -2
- package/dist/{chunk-CWFWRZWU.mjs.map → chunk-KSN33A6I.mjs.map} +1 -1
- package/dist/chunk-KYTHGFFY.mjs +866 -0
- package/dist/chunk-KYTHGFFY.mjs.map +1 -0
- package/dist/{chunk-QKGCW37O.mjs → chunk-LDFM46LV.mjs} +5 -3
- package/dist/{chunk-QKGCW37O.mjs.map → chunk-LDFM46LV.mjs.map} +1 -1
- package/dist/chunk-LQNDBPHU.mjs +142 -0
- package/dist/chunk-LQNDBPHU.mjs.map +1 -0
- package/dist/{chunk-E3I2VDHZ.mjs → chunk-M2PYXSAF.mjs} +6 -4
- package/dist/{chunk-E3I2VDHZ.mjs.map → chunk-M2PYXSAF.mjs.map} +1 -1
- package/dist/{chunk-DELCADNF.mjs → chunk-ODVKRIVN.mjs} +30 -30
- package/dist/{chunk-HR3A4H4E.mjs → chunk-PEJL2T2K.mjs} +13 -11
- package/dist/{chunk-HR3A4H4E.mjs.map → chunk-PEJL2T2K.mjs.map} +1 -1
- package/dist/{chunk-OGNGPI3M.mjs → chunk-PL55YKT4.mjs} +2 -2
- package/dist/{chunk-S6EZVRZC.mjs → chunk-PNSJC6PC.mjs} +5 -28
- package/dist/chunk-PNSJC6PC.mjs.map +1 -0
- package/dist/{chunk-TDRA5EZI.mjs → chunk-PUREEN2J.mjs} +7 -7
- package/dist/chunk-QFS5CENY.mjs +659 -0
- package/dist/chunk-QFS5CENY.mjs.map +1 -0
- package/dist/chunk-RSN7NH2J.mjs +250 -0
- package/dist/chunk-RSN7NH2J.mjs.map +1 -0
- package/dist/{chunk-UDREPVEY.mjs → chunk-RVSMEZE3.mjs} +12 -78
- package/dist/chunk-RVSMEZE3.mjs.map +1 -0
- package/dist/{chunk-SRWPHN2N.mjs → chunk-S64IYJ6Y.mjs} +2 -2
- package/dist/{chunk-ZG3NQI77.mjs → chunk-SMD7OEUW.mjs} +6 -4
- package/dist/{chunk-ZG3NQI77.mjs.map → chunk-SMD7OEUW.mjs.map} +1 -1
- package/dist/{chunk-NJYNJLT7.mjs → chunk-SWFB3A3G.mjs} +2 -2
- package/dist/{chunk-RXBQ7KXF.mjs → chunk-USXGNKWJ.mjs} +98 -44
- package/dist/chunk-USXGNKWJ.mjs.map +1 -0
- package/dist/{chunk-OJV6V7YZ.mjs → chunk-VL7V52YD.mjs} +27 -20
- package/dist/chunk-VL7V52YD.mjs.map +1 -0
- package/dist/{chunk-2ZZJTBTE.mjs → chunk-WJZ3IYET.mjs} +2 -2
- package/dist/chunk-XAJAMVAG.mjs +1720 -0
- package/dist/chunk-XAJAMVAG.mjs.map +1 -0
- package/dist/chunk-YIJ5QVJ6.mjs +277 -0
- package/dist/chunk-YIJ5QVJ6.mjs.map +1 -0
- package/dist/{chunk-T6AMRENK.mjs → chunk-YRW5NKD7.mjs} +148 -112
- package/dist/chunk-YRW5NKD7.mjs.map +1 -0
- package/dist/chunk-ZMJKG2UI.mjs +71 -0
- package/dist/chunk-ZMJKG2UI.mjs.map +1 -0
- package/dist/confirm.d.mts +48 -0
- package/dist/confirm.d.ts +48 -0
- package/dist/confirm.js +334 -0
- package/dist/confirm.js.map +1 -0
- package/dist/confirm.mjs +20 -0
- package/dist/datePicker.d.mts +256 -14
- package/dist/datePicker.d.ts +256 -14
- package/dist/datePicker.js +1624 -145
- package/dist/datePicker.js.map +1 -1
- package/dist/datePicker.mjs +19 -6
- package/dist/dialog.d.mts +166 -0
- package/dist/dialog.d.ts +166 -0
- package/dist/dialog.js +362 -0
- package/dist/dialog.js.map +1 -0
- package/dist/dialog.mjs +45 -0
- package/dist/emptyState.d.mts +17 -0
- package/dist/emptyState.d.ts +17 -0
- package/dist/emptyState.js +253 -0
- package/dist/emptyState.js.map +1 -0
- package/dist/emptyState.mjs +12 -0
- package/dist/emptyState.mjs.map +1 -0
- package/dist/errorState.d.mts +18 -0
- package/dist/errorState.d.ts +18 -0
- package/dist/{displayFile.js → errorState.js} +107 -156
- package/dist/errorState.js.map +1 -0
- package/dist/errorState.mjs +15 -0
- package/dist/errorState.mjs.map +1 -0
- package/dist/fileUpload.d.mts +197 -0
- package/dist/fileUpload.d.ts +197 -0
- package/dist/fileUpload.js +1483 -0
- package/dist/fileUpload.js.map +1 -0
- package/dist/fileUpload.mjs +65 -0
- package/dist/fileUpload.mjs.map +1 -0
- package/dist/flowMap.mjs +7 -6
- package/dist/flowMap.mjs.map +1 -1
- package/dist/image.js +1195 -429
- package/dist/image.js.map +1 -1
- package/dist/image.mjs +8 -6
- package/dist/index.d.ts +7 -2
- package/dist/index.js +8606 -4087
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +314 -152
- package/dist/inlineError.d.mts +16 -0
- package/dist/inlineError.d.ts +16 -0
- package/dist/inlineError.js +297 -0
- package/dist/inlineError.js.map +1 -0
- package/dist/inlineError.mjs +15 -0
- package/dist/inlineError.mjs.map +1 -0
- package/dist/input.mjs +8 -7
- package/dist/jsonEditor.mjs +3 -2
- package/dist/list.mjs +7 -6
- package/dist/loading.mjs +8 -6
- package/dist/markdown.mjs +7 -6
- package/dist/markdown.mjs.map +1 -1
- package/dist/menu.mjs +9 -8
- package/dist/modal.js +2 -1
- package/dist/modal.js.map +1 -1
- package/dist/modal.mjs +7 -5
- package/dist/process.d.mts +33 -75
- package/dist/process.d.ts +33 -75
- package/dist/process.js +1275 -203
- package/dist/process.js.map +1 -1
- package/dist/process.mjs +12 -9
- package/dist/scrollToLoad.mjs +4 -3
- package/dist/select.mjs +10 -9
- package/dist/skeleton.d.mts +15 -1
- package/dist/skeleton.d.ts +15 -1
- package/dist/skeleton.js +114 -2
- package/dist/skeleton.js.map +1 -1
- package/dist/skeleton.mjs +6 -3
- package/dist/stepper.mjs +4 -3
- package/dist/tab.mjs +10 -9
- package/dist/table.d.mts +269 -85
- package/dist/table.d.ts +269 -85
- package/dist/table.js +5102 -3153
- package/dist/table.js.map +1 -1
- package/dist/table.mjs +21 -19
- package/dist/theme.js +1766 -432
- package/dist/theme.js.map +1 -1
- package/dist/theme.mjs +32 -25
- package/dist/timeline.mjs +4 -3
- package/dist/toast.d.mts +49 -0
- package/dist/toast.d.ts +49 -0
- package/dist/toast.js +175 -0
- package/dist/toast.js.map +1 -0
- package/dist/toast.mjs +9 -0
- package/dist/toast.mjs.map +1 -0
- package/dist/toggleButtonGroup.mjs +3 -2
- package/dist/useForm.d.mts +270 -86
- package/dist/useForm.d.ts +270 -86
- package/dist/useForm.js +4672 -2727
- package/dist/useForm.js.map +1 -1
- package/dist/useForm.mjs +18 -16
- package/dist/useSearch.mjs +13 -12
- package/dist/variablesRenderer.mjs +8 -7
- package/package.json +3 -3
- package/dist/AutocompleteField-ZKNU2IRR.mjs +0 -181
- package/dist/AutocompleteField-ZKNU2IRR.mjs.map +0 -1
- package/dist/AvatarField-SAODT3CZ.mjs +0 -275
- package/dist/AvatarField-SAODT3CZ.mjs.map +0 -1
- package/dist/DateField-ZYMZFHL4.mjs.map +0 -1
- package/dist/DateTimeField-TPTJ7YIZ.mjs.map +0 -1
- package/dist/FileUploadField-NTMWBJER.mjs +0 -78
- package/dist/FileUploadField-NTMWBJER.mjs.map +0 -1
- package/dist/chunk-24XDGNJ6.mjs.map +0 -1
- package/dist/chunk-27KYFU7R.mjs +0 -30
- package/dist/chunk-27KYFU7R.mjs.map +0 -1
- package/dist/chunk-AAH2O24U.mjs +0 -325
- package/dist/chunk-AAH2O24U.mjs.map +0 -1
- package/dist/chunk-CRYIEYZZ.mjs.map +0 -1
- package/dist/chunk-EEH7HACG.mjs +0 -249
- package/dist/chunk-EEH7HACG.mjs.map +0 -1
- package/dist/chunk-EKPULYPU.mjs +0 -497
- package/dist/chunk-EKPULYPU.mjs.map +0 -1
- package/dist/chunk-OJV6V7YZ.mjs.map +0 -1
- package/dist/chunk-RXBQ7KXF.mjs.map +0 -1
- package/dist/chunk-S6EZVRZC.mjs.map +0 -1
- package/dist/chunk-SGCUDWO3.mjs +0 -396
- package/dist/chunk-SGCUDWO3.mjs.map +0 -1
- package/dist/chunk-T6AMRENK.mjs.map +0 -1
- package/dist/chunk-UDREPVEY.mjs.map +0 -1
- package/dist/chunk-UTVSYS6S.mjs.map +0 -1
- package/dist/chunk-XIMFP6RB.mjs +0 -161
- package/dist/chunk-XIMFP6RB.mjs.map +0 -1
- package/dist/displayFile.d.mts +0 -95
- package/dist/displayFile.d.ts +0 -95
- package/dist/displayFile.js.map +0 -1
- package/dist/displayFile.mjs +0 -19
- package/dist/fileUploader.d.mts +0 -86
- package/dist/fileUploader.d.ts +0 -86
- package/dist/fileUploader.js +0 -722
- package/dist/fileUploader.js.map +0 -1
- package/dist/fileUploader.mjs +0 -16
- /package/dist/{chunk-V26V2S3W.mjs.map → chunk-3O3N6X6D.mjs.map} +0 -0
- /package/dist/{chunk-UGMRJMFZ.mjs.map → chunk-BO5CU4ZM.mjs.map} +0 -0
- /package/dist/{chunk-R5MKQN6D.mjs.map → chunk-FBLSJQWK.mjs.map} +0 -0
- /package/dist/{chunk-JWANK42G.mjs.map → chunk-FUZ2JNTZ.mjs.map} +0 -0
- /package/dist/{chunk-DELCADNF.mjs.map → chunk-ODVKRIVN.mjs.map} +0 -0
- /package/dist/{chunk-OGNGPI3M.mjs.map → chunk-PL55YKT4.mjs.map} +0 -0
- /package/dist/{chunk-TDRA5EZI.mjs.map → chunk-PUREEN2J.mjs.map} +0 -0
- /package/dist/{chunk-SRWPHN2N.mjs.map → chunk-S64IYJ6Y.mjs.map} +0 -0
- /package/dist/{chunk-NJYNJLT7.mjs.map → chunk-SWFB3A3G.mjs.map} +0 -0
- /package/dist/{chunk-2ZZJTBTE.mjs.map → chunk-WJZ3IYET.mjs.map} +0 -0
- /package/dist/{displayFile.mjs.map → confirm.mjs.map} +0 -0
- /package/dist/{fileUploader.mjs.map → dialog.mjs.map} +0 -0
package/dist/dialog.d.ts
ADDED
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { DialogProps as DialogProps$1 } from '@mui/material/Dialog';
|
|
3
|
+
import { DialogTitleProps as DialogTitleProps$1 } from '@mui/material/DialogTitle';
|
|
4
|
+
import { DialogContentProps as DialogContentProps$1 } from '@mui/material/DialogContent';
|
|
5
|
+
import { DialogActionsProps as DialogActionsProps$1 } from '@mui/material/DialogActions';
|
|
6
|
+
import { DialogContentTextProps as DialogContentTextProps$1 } from '@mui/material/DialogContentText';
|
|
7
|
+
import { SxProps, Theme } from '@mui/material/styles';
|
|
8
|
+
|
|
9
|
+
type DialogProps = DialogProps$1;
|
|
10
|
+
/**
|
|
11
|
+
* Soft theme-aware Dialog — MUI Dialog API with Confirm/MuiModal quiet chrome.
|
|
12
|
+
*
|
|
13
|
+
* Drop-in for `@mui/material/Dialog` consumers: same props, soft paper
|
|
14
|
+
* (`background.paper` + hairline border) and soft backdrop.
|
|
15
|
+
*
|
|
16
|
+
* [Doc](https://mui.com/material-ui/api/dialog/)
|
|
17
|
+
*/
|
|
18
|
+
declare function Dialog({ className, slotProps, ...rest }: DialogProps): react_jsx_runtime.JSX.Element;
|
|
19
|
+
|
|
20
|
+
type DialogTitleProps = DialogTitleProps$1;
|
|
21
|
+
/**
|
|
22
|
+
* Soft Dialog title — same API as `@mui/material/DialogTitle`.
|
|
23
|
+
*/
|
|
24
|
+
declare function DialogTitle(props: DialogTitleProps): react_jsx_runtime.JSX.Element;
|
|
25
|
+
|
|
26
|
+
type DialogContentProps = DialogContentProps$1;
|
|
27
|
+
/**
|
|
28
|
+
* Soft Dialog content — same API as `@mui/material/DialogContent`.
|
|
29
|
+
*/
|
|
30
|
+
declare function DialogContent(props: DialogContentProps): react_jsx_runtime.JSX.Element;
|
|
31
|
+
|
|
32
|
+
type DialogActionsProps = DialogActionsProps$1;
|
|
33
|
+
/**
|
|
34
|
+
* Soft Dialog actions — same API as `@mui/material/DialogActions`.
|
|
35
|
+
*/
|
|
36
|
+
declare function DialogActions(props: DialogActionsProps): react_jsx_runtime.JSX.Element;
|
|
37
|
+
|
|
38
|
+
type DialogContentTextProps = DialogContentTextProps$1;
|
|
39
|
+
/**
|
|
40
|
+
* Soft Dialog content text — same API as `@mui/material/DialogContentText`.
|
|
41
|
+
*/
|
|
42
|
+
declare function DialogContentText(props: DialogContentTextProps): react_jsx_runtime.JSX.Element;
|
|
43
|
+
|
|
44
|
+
/** Soft dialog paper radius - matches Confirm quiet chrome. */
|
|
45
|
+
declare const DIALOG_PAPER_RADIUS = "16px";
|
|
46
|
+
/** Soft black elevation for light scheme (quiet, no thick chrome). */
|
|
47
|
+
declare const DIALOG_SHADOW_LIGHT = "0 1px 2px rgba(0, 0, 0, 0.10), 0 4px 12px rgba(0, 0, 0, 0.12), 0 10px 24px rgba(0, 0, 0, 0.10)";
|
|
48
|
+
/**
|
|
49
|
+
* Soft black elevation for dark scheme.
|
|
50
|
+
* Avoid palette `shadow-outset-1` here: it uses border-1 grey and reads as a pale halo.
|
|
51
|
+
*/
|
|
52
|
+
declare const DIALOG_SHADOW_DARK = "0 1px 2px rgba(0, 0, 0, 0.45), 0 4px 10px rgba(0, 0, 0, 0.50), 0 12px 28px rgba(0, 0, 0, 0.55)";
|
|
53
|
+
/** Soft/quiet Dialog paper tokens (shared by wrapper sx + theme overrides). */
|
|
54
|
+
declare const dialogPaperTokens: {
|
|
55
|
+
readonly '--dialog-bg': "var(--mui-palette-background-paper)";
|
|
56
|
+
readonly '--dialog-border': "var(--mui-palette-border-1)";
|
|
57
|
+
readonly '--dialog-shadow': "0 1px 2px rgba(0, 0, 0, 0.10), 0 4px 12px rgba(0, 0, 0, 0.12), 0 10px 24px rgba(0, 0, 0, 0.10)";
|
|
58
|
+
readonly backgroundColor: "var(--dialog-bg)";
|
|
59
|
+
readonly backgroundImage: "none";
|
|
60
|
+
readonly borderRadius: "16px";
|
|
61
|
+
readonly border: "1px solid var(--dialog-border)";
|
|
62
|
+
readonly boxShadow: "var(--dialog-shadow)";
|
|
63
|
+
readonly outline: "none";
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* Soft/quiet Dialog paper.
|
|
67
|
+
* Uses elevated `background.paper` (Google-style mid-grey over near-black canvas
|
|
68
|
+
* in dark) with a hairline border - not raw white MUI defaults or thick chrome.
|
|
69
|
+
*/
|
|
70
|
+
declare const dialogPaperSx: SxProps<Theme>;
|
|
71
|
+
/** Soft glass-adjacent backdrop - same language as Confirm. */
|
|
72
|
+
declare const dialogBackdropTokens: {
|
|
73
|
+
readonly backgroundColor: "color-mix(in srgb, var(--mui-palette-common-black, #000) 36%, transparent)";
|
|
74
|
+
readonly backdropFilter: "blur(2px)";
|
|
75
|
+
};
|
|
76
|
+
declare const dialogBackdropSx: SxProps<Theme>;
|
|
77
|
+
declare const dialogTheme: {
|
|
78
|
+
readonly styleOverrides: {
|
|
79
|
+
readonly paper: {
|
|
80
|
+
readonly '[data-mui-color-scheme="dark"] &, [color-scheme="dark"] &': {
|
|
81
|
+
readonly '--dialog-shadow': "0 1px 2px rgba(0, 0, 0, 0.45), 0 4px 10px rgba(0, 0, 0, 0.50), 0 12px 28px rgba(0, 0, 0, 0.55)";
|
|
82
|
+
readonly boxShadow: "0 1px 2px rgba(0, 0, 0, 0.45), 0 4px 10px rgba(0, 0, 0, 0.50), 0 12px 28px rgba(0, 0, 0, 0.55)";
|
|
83
|
+
};
|
|
84
|
+
readonly '--dialog-bg': "var(--mui-palette-background-paper)";
|
|
85
|
+
readonly '--dialog-border': "var(--mui-palette-border-1)";
|
|
86
|
+
readonly '--dialog-shadow': "0 1px 2px rgba(0, 0, 0, 0.10), 0 4px 12px rgba(0, 0, 0, 0.12), 0 10px 24px rgba(0, 0, 0, 0.10)";
|
|
87
|
+
readonly backgroundColor: "var(--dialog-bg)";
|
|
88
|
+
readonly backgroundImage: "none";
|
|
89
|
+
readonly borderRadius: "16px";
|
|
90
|
+
readonly border: "1px solid var(--dialog-border)";
|
|
91
|
+
readonly boxShadow: "var(--dialog-shadow)";
|
|
92
|
+
readonly outline: "none";
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
declare const dialogTitleTheme: {
|
|
97
|
+
readonly styleOverrides: {
|
|
98
|
+
readonly root: {
|
|
99
|
+
readonly fontSize: "1.05rem";
|
|
100
|
+
readonly fontWeight: 600;
|
|
101
|
+
readonly padding: "20px 20px 8px";
|
|
102
|
+
readonly lineHeight: 1.35;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
declare const dialogContentTheme: {
|
|
107
|
+
readonly styleOverrides: {
|
|
108
|
+
readonly root: {
|
|
109
|
+
readonly padding: "8px 20px 12px";
|
|
110
|
+
readonly '&.MuiDialogContent-root:first-of-type': {
|
|
111
|
+
readonly paddingTop: "16px";
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* Soft secondary / Cancel button chrome for DialogActions.
|
|
118
|
+
* Matches Confirm cancel: quiet border-1 + muted text-secondary
|
|
119
|
+
* (not stark white inherit outline in dark).
|
|
120
|
+
*/
|
|
121
|
+
declare const dialogSecondaryButtonSx: {
|
|
122
|
+
textTransform: "none";
|
|
123
|
+
color: string;
|
|
124
|
+
borderColor: string;
|
|
125
|
+
'--button-color': string;
|
|
126
|
+
'--variant-outlinedColor': string;
|
|
127
|
+
'--variant-outlinedBorder': string;
|
|
128
|
+
'&:hover': {
|
|
129
|
+
color: string;
|
|
130
|
+
borderColor: string;
|
|
131
|
+
backgroundColor: string;
|
|
132
|
+
'--button-hover-border-color': string;
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
declare const dialogActionsTheme: {
|
|
136
|
+
readonly styleOverrides: {
|
|
137
|
+
readonly root: {
|
|
138
|
+
readonly padding: "8px 16px 16px";
|
|
139
|
+
readonly gap: "8px";
|
|
140
|
+
readonly '& .MuiButton-outlined.MuiButton-colorInherit': {
|
|
141
|
+
readonly textTransform: "none";
|
|
142
|
+
readonly color: string;
|
|
143
|
+
readonly borderColor: string;
|
|
144
|
+
readonly '--button-color': string;
|
|
145
|
+
readonly '--variant-outlinedColor': string;
|
|
146
|
+
readonly '--variant-outlinedBorder': string;
|
|
147
|
+
readonly '&:hover': {
|
|
148
|
+
color: string;
|
|
149
|
+
borderColor: string;
|
|
150
|
+
backgroundColor: string;
|
|
151
|
+
'--button-hover-border-color': string;
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
declare const dialogContentTextTheme: {
|
|
158
|
+
readonly styleOverrides: {
|
|
159
|
+
readonly root: {
|
|
160
|
+
readonly color: "var(--mui-palette-text-secondary)";
|
|
161
|
+
readonly fontSize: "0.875rem";
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
export { DIALOG_PAPER_RADIUS, DIALOG_SHADOW_DARK, DIALOG_SHADOW_LIGHT, Dialog, DialogActions, type DialogActionsProps, DialogContent, type DialogContentProps, DialogContentText, type DialogContentTextProps, type DialogProps, DialogTitle, type DialogTitleProps, dialogActionsTheme, dialogBackdropSx, dialogBackdropTokens, dialogContentTextTheme, dialogContentTheme, dialogPaperSx, dialogPaperTokens, dialogSecondaryButtonSx, dialogTheme, dialogTitleTheme };
|
package/dist/dialog.js
ADDED
|
@@ -0,0 +1,362 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
9
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
|
+
};
|
|
11
|
+
var __export = (target, all) => {
|
|
12
|
+
for (var name in all)
|
|
13
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
14
|
+
};
|
|
15
|
+
var __copyProps = (to, from, except, desc) => {
|
|
16
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
17
|
+
for (let key of __getOwnPropNames(from))
|
|
18
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
19
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
22
|
+
};
|
|
23
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
24
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
25
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
26
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
27
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
28
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
29
|
+
mod
|
|
30
|
+
));
|
|
31
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
32
|
+
|
|
33
|
+
// node_modules/classnames/index.js
|
|
34
|
+
var require_classnames = __commonJS({
|
|
35
|
+
"node_modules/classnames/index.js"(exports2, module2) {
|
|
36
|
+
"use strict";
|
|
37
|
+
(function() {
|
|
38
|
+
"use strict";
|
|
39
|
+
var hasOwn = {}.hasOwnProperty;
|
|
40
|
+
function classNames() {
|
|
41
|
+
var classes = "";
|
|
42
|
+
for (var i = 0; i < arguments.length; i++) {
|
|
43
|
+
var arg = arguments[i];
|
|
44
|
+
if (arg) {
|
|
45
|
+
classes = appendClass(classes, parseValue(arg));
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
return classes;
|
|
49
|
+
}
|
|
50
|
+
function parseValue(arg) {
|
|
51
|
+
if (typeof arg === "string" || typeof arg === "number") {
|
|
52
|
+
return arg;
|
|
53
|
+
}
|
|
54
|
+
if (typeof arg !== "object") {
|
|
55
|
+
return "";
|
|
56
|
+
}
|
|
57
|
+
if (Array.isArray(arg)) {
|
|
58
|
+
return classNames.apply(null, arg);
|
|
59
|
+
}
|
|
60
|
+
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
|
|
61
|
+
return arg.toString();
|
|
62
|
+
}
|
|
63
|
+
var classes = "";
|
|
64
|
+
for (var key in arg) {
|
|
65
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
|
66
|
+
classes = appendClass(classes, key);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
return classes;
|
|
70
|
+
}
|
|
71
|
+
function appendClass(value, newClass) {
|
|
72
|
+
if (!newClass) {
|
|
73
|
+
return value;
|
|
74
|
+
}
|
|
75
|
+
if (value) {
|
|
76
|
+
return value + " " + newClass;
|
|
77
|
+
}
|
|
78
|
+
return value + newClass;
|
|
79
|
+
}
|
|
80
|
+
if (typeof module2 !== "undefined" && module2.exports) {
|
|
81
|
+
classNames.default = classNames;
|
|
82
|
+
module2.exports = classNames;
|
|
83
|
+
} else if (typeof define === "function" && typeof define.amd === "object" && define.amd) {
|
|
84
|
+
define("classnames", [], function() {
|
|
85
|
+
return classNames;
|
|
86
|
+
});
|
|
87
|
+
} else {
|
|
88
|
+
window.classNames = classNames;
|
|
89
|
+
}
|
|
90
|
+
})();
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
// src/components/elemental/Dialog/index.ts
|
|
95
|
+
var Dialog_exports = {};
|
|
96
|
+
__export(Dialog_exports, {
|
|
97
|
+
DIALOG_PAPER_RADIUS: () => DIALOG_PAPER_RADIUS,
|
|
98
|
+
DIALOG_SHADOW_DARK: () => DIALOG_SHADOW_DARK,
|
|
99
|
+
DIALOG_SHADOW_LIGHT: () => DIALOG_SHADOW_LIGHT,
|
|
100
|
+
Dialog: () => Dialog,
|
|
101
|
+
DialogActions: () => DialogActions,
|
|
102
|
+
DialogContent: () => DialogContent,
|
|
103
|
+
DialogContentText: () => DialogContentText,
|
|
104
|
+
DialogTitle: () => DialogTitle,
|
|
105
|
+
dialogActionsTheme: () => dialogActionsTheme,
|
|
106
|
+
dialogBackdropSx: () => dialogBackdropSx,
|
|
107
|
+
dialogBackdropTokens: () => dialogBackdropTokens,
|
|
108
|
+
dialogContentTextTheme: () => dialogContentTextTheme,
|
|
109
|
+
dialogContentTheme: () => dialogContentTheme,
|
|
110
|
+
dialogPaperSx: () => dialogPaperSx,
|
|
111
|
+
dialogPaperTokens: () => dialogPaperTokens,
|
|
112
|
+
dialogSecondaryButtonSx: () => dialogSecondaryButtonSx,
|
|
113
|
+
dialogTheme: () => dialogTheme,
|
|
114
|
+
dialogTitleTheme: () => dialogTitleTheme
|
|
115
|
+
});
|
|
116
|
+
module.exports = __toCommonJS(Dialog_exports);
|
|
117
|
+
|
|
118
|
+
// src/components/elemental/Dialog/src/Dialog/Dialog.tsx
|
|
119
|
+
var import_Dialog = __toESM(require("@mui/material/Dialog"));
|
|
120
|
+
var import_classnames = __toESM(require_classnames());
|
|
121
|
+
|
|
122
|
+
// src/_utils/_const/classNames.ts
|
|
123
|
+
var CLASSNAMEs = {
|
|
124
|
+
elemental: {
|
|
125
|
+
avatar: {
|
|
126
|
+
// root wrapper for the Avatar component
|
|
127
|
+
root: "Elemental-Avatar",
|
|
128
|
+
// button variant used by AvatarButton and related controls
|
|
129
|
+
button: "Elemental-AvatarButton"
|
|
130
|
+
},
|
|
131
|
+
modal: "Elemental-Modal",
|
|
132
|
+
dialog: "Elemental-Dialog"
|
|
133
|
+
},
|
|
134
|
+
compound: {
|
|
135
|
+
useForm: {
|
|
136
|
+
// class applied to the wrapper around the avatar field inside UseForm
|
|
137
|
+
avatarField: "UseForm-AvatarField"
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
// src/_utils/_func/sx.ts
|
|
143
|
+
function flattenSx(part) {
|
|
144
|
+
if (part == null || typeof part === "boolean") {
|
|
145
|
+
return [];
|
|
146
|
+
}
|
|
147
|
+
if (Array.isArray(part)) {
|
|
148
|
+
return part.flatMap(flattenSx);
|
|
149
|
+
}
|
|
150
|
+
if (typeof part === "function" || typeof part === "object") {
|
|
151
|
+
return [part];
|
|
152
|
+
}
|
|
153
|
+
return [];
|
|
154
|
+
}
|
|
155
|
+
function mergeSx(...parts) {
|
|
156
|
+
const list = parts.flatMap(flattenSx);
|
|
157
|
+
if (list.length === 0) {
|
|
158
|
+
return void 0;
|
|
159
|
+
}
|
|
160
|
+
if (list.length === 1) {
|
|
161
|
+
return list[0];
|
|
162
|
+
}
|
|
163
|
+
return list;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
// src/components/elemental/Dialog/src/Dialog/theme.ts
|
|
167
|
+
var DIALOG_PAPER_RADIUS = "16px";
|
|
168
|
+
var DIALOG_SHADOW_LIGHT = "0 1px 2px rgba(0, 0, 0, 0.10), 0 4px 12px rgba(0, 0, 0, 0.12), 0 10px 24px rgba(0, 0, 0, 0.10)";
|
|
169
|
+
var DIALOG_SHADOW_DARK = "0 1px 2px rgba(0, 0, 0, 0.45), 0 4px 10px rgba(0, 0, 0, 0.50), 0 12px 28px rgba(0, 0, 0, 0.55)";
|
|
170
|
+
var dialogDarkShadowSx = {
|
|
171
|
+
'[data-mui-color-scheme="dark"] &, [color-scheme="dark"] &': {
|
|
172
|
+
"--dialog-shadow": DIALOG_SHADOW_DARK,
|
|
173
|
+
boxShadow: DIALOG_SHADOW_DARK
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
var dialogPaperTokens = {
|
|
177
|
+
"--dialog-bg": "var(--mui-palette-background-paper)",
|
|
178
|
+
"--dialog-border": "var(--mui-palette-border-1)",
|
|
179
|
+
"--dialog-shadow": DIALOG_SHADOW_LIGHT,
|
|
180
|
+
backgroundColor: "var(--dialog-bg)",
|
|
181
|
+
// Kill MUI Paper dark-mode elevation overlay so paper stays a flat soft surface.
|
|
182
|
+
backgroundImage: "none",
|
|
183
|
+
borderRadius: DIALOG_PAPER_RADIUS,
|
|
184
|
+
border: "1px solid var(--dialog-border)",
|
|
185
|
+
boxShadow: "var(--dialog-shadow)",
|
|
186
|
+
outline: "none"
|
|
187
|
+
};
|
|
188
|
+
var dialogPaperSx = {
|
|
189
|
+
...dialogPaperTokens,
|
|
190
|
+
...dialogDarkShadowSx
|
|
191
|
+
};
|
|
192
|
+
var dialogBackdropTokens = {
|
|
193
|
+
backgroundColor: "color-mix(in srgb, var(--mui-palette-common-black, #000) 36%, transparent)",
|
|
194
|
+
backdropFilter: "blur(2px)"
|
|
195
|
+
};
|
|
196
|
+
var dialogBackdropSx = dialogBackdropTokens;
|
|
197
|
+
var dialogTheme = {
|
|
198
|
+
styleOverrides: {
|
|
199
|
+
paper: {
|
|
200
|
+
...dialogPaperTokens,
|
|
201
|
+
...dialogDarkShadowSx
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
};
|
|
205
|
+
var dialogTitleTheme = {
|
|
206
|
+
styleOverrides: {
|
|
207
|
+
root: {
|
|
208
|
+
fontSize: "1.05rem",
|
|
209
|
+
fontWeight: 600,
|
|
210
|
+
padding: "20px 20px 8px",
|
|
211
|
+
lineHeight: 1.35
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
};
|
|
215
|
+
var dialogContentTheme = {
|
|
216
|
+
styleOverrides: {
|
|
217
|
+
root: {
|
|
218
|
+
padding: "8px 20px 12px",
|
|
219
|
+
"&.MuiDialogContent-root:first-of-type": {
|
|
220
|
+
paddingTop: "16px"
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
};
|
|
225
|
+
var dialogSecondaryButtonSx = {
|
|
226
|
+
textTransform: "none",
|
|
227
|
+
color: "var(--mui-palette-text-secondary)",
|
|
228
|
+
borderColor: "var(--mui-palette-border-1)",
|
|
229
|
+
"--button-color": "var(--mui-palette-text-secondary)",
|
|
230
|
+
"--variant-outlinedColor": "var(--mui-palette-text-secondary)",
|
|
231
|
+
"--variant-outlinedBorder": "var(--mui-palette-border-1)",
|
|
232
|
+
"&:hover": {
|
|
233
|
+
color: "var(--mui-palette-text-secondary)",
|
|
234
|
+
borderColor: "var(--mui-palette-border-hover-1)",
|
|
235
|
+
backgroundColor: "var(--mui-palette-background-hover-1)",
|
|
236
|
+
"--button-hover-border-color": "var(--mui-palette-border-hover-1)"
|
|
237
|
+
}
|
|
238
|
+
};
|
|
239
|
+
var dialogActionsTheme = {
|
|
240
|
+
styleOverrides: {
|
|
241
|
+
root: {
|
|
242
|
+
padding: "8px 16px 16px",
|
|
243
|
+
gap: "8px",
|
|
244
|
+
// Soften default Cancel pattern (outlined + inherit) inside Dialog only.
|
|
245
|
+
// Do not restyle primary/error/etc. outlined buttons or global Buttons.
|
|
246
|
+
"& .MuiButton-outlined.MuiButton-colorInherit": {
|
|
247
|
+
...dialogSecondaryButtonSx
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
};
|
|
252
|
+
var dialogContentTextTheme = {
|
|
253
|
+
styleOverrides: {
|
|
254
|
+
root: {
|
|
255
|
+
color: "var(--mui-palette-text-secondary)",
|
|
256
|
+
fontSize: "0.875rem"
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
|
|
261
|
+
// src/components/elemental/Dialog/src/Dialog/Dialog.tsx
|
|
262
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
263
|
+
function resolveSlotProps(slot, ownerState) {
|
|
264
|
+
if (slot == null) return void 0;
|
|
265
|
+
if (typeof slot === "function") {
|
|
266
|
+
return slot(ownerState);
|
|
267
|
+
}
|
|
268
|
+
return slot;
|
|
269
|
+
}
|
|
270
|
+
function Dialog({
|
|
271
|
+
className,
|
|
272
|
+
slotProps,
|
|
273
|
+
...rest
|
|
274
|
+
}) {
|
|
275
|
+
const modalClass = (0, import_classnames.default)(CLASSNAMEs.elemental.dialog, className);
|
|
276
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
277
|
+
import_Dialog.default,
|
|
278
|
+
{
|
|
279
|
+
className: modalClass,
|
|
280
|
+
...rest,
|
|
281
|
+
slotProps: {
|
|
282
|
+
...slotProps,
|
|
283
|
+
paper: (ownerState) => {
|
|
284
|
+
const resolved = resolveSlotProps(slotProps?.paper, ownerState) ?? {};
|
|
285
|
+
const { sx: hostSx, elevation, ...restPaper } = resolved;
|
|
286
|
+
return {
|
|
287
|
+
elevation: elevation ?? 0,
|
|
288
|
+
...restPaper,
|
|
289
|
+
sx: mergeSx(dialogPaperSx, hostSx)
|
|
290
|
+
};
|
|
291
|
+
},
|
|
292
|
+
backdrop: (ownerState) => {
|
|
293
|
+
const resolved = resolveSlotProps(slotProps?.backdrop, ownerState) ?? {};
|
|
294
|
+
const { sx: hostSx, ...restBackdrop } = resolved;
|
|
295
|
+
return {
|
|
296
|
+
...restBackdrop,
|
|
297
|
+
sx: mergeSx(dialogBackdropSx, hostSx)
|
|
298
|
+
};
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
// src/components/elemental/Dialog/src/Dialog/DialogTitle.tsx
|
|
306
|
+
var import_DialogTitle = __toESM(require("@mui/material/DialogTitle"));
|
|
307
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
308
|
+
function DialogTitle(props) {
|
|
309
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_DialogTitle.default, { ...props });
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
// src/components/elemental/Dialog/src/Dialog/DialogContent.tsx
|
|
313
|
+
var import_DialogContent = __toESM(require("@mui/material/DialogContent"));
|
|
314
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
315
|
+
function DialogContent(props) {
|
|
316
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_DialogContent.default, { ...props });
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
// src/components/elemental/Dialog/src/Dialog/DialogActions.tsx
|
|
320
|
+
var import_DialogActions = __toESM(require("@mui/material/DialogActions"));
|
|
321
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
322
|
+
function DialogActions(props) {
|
|
323
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_DialogActions.default, { ...props });
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
// src/components/elemental/Dialog/src/Dialog/DialogContentText.tsx
|
|
327
|
+
var import_DialogContentText = __toESM(require("@mui/material/DialogContentText"));
|
|
328
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
329
|
+
function DialogContentText(props) {
|
|
330
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_DialogContentText.default, { ...props });
|
|
331
|
+
}
|
|
332
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
333
|
+
0 && (module.exports = {
|
|
334
|
+
DIALOG_PAPER_RADIUS,
|
|
335
|
+
DIALOG_SHADOW_DARK,
|
|
336
|
+
DIALOG_SHADOW_LIGHT,
|
|
337
|
+
Dialog,
|
|
338
|
+
DialogActions,
|
|
339
|
+
DialogContent,
|
|
340
|
+
DialogContentText,
|
|
341
|
+
DialogTitle,
|
|
342
|
+
dialogActionsTheme,
|
|
343
|
+
dialogBackdropSx,
|
|
344
|
+
dialogBackdropTokens,
|
|
345
|
+
dialogContentTextTheme,
|
|
346
|
+
dialogContentTheme,
|
|
347
|
+
dialogPaperSx,
|
|
348
|
+
dialogPaperTokens,
|
|
349
|
+
dialogSecondaryButtonSx,
|
|
350
|
+
dialogTheme,
|
|
351
|
+
dialogTitleTheme
|
|
352
|
+
});
|
|
353
|
+
/*! Bundled license information:
|
|
354
|
+
|
|
355
|
+
classnames/index.js:
|
|
356
|
+
(*!
|
|
357
|
+
Copyright (c) 2018 Jed Watson.
|
|
358
|
+
Licensed under the MIT License (MIT), see
|
|
359
|
+
http://jedwatson.github.io/classnames
|
|
360
|
+
*)
|
|
361
|
+
*/
|
|
362
|
+
//# sourceMappingURL=dialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../node_modules/classnames/index.js","../src/components/elemental/Dialog/index.ts","../src/components/elemental/Dialog/src/Dialog/Dialog.tsx","../src/_utils/_const/classNames.ts","../src/_utils/_func/sx.ts","../src/components/elemental/Dialog/src/Dialog/theme.ts","../src/components/elemental/Dialog/src/Dialog/DialogTitle.tsx","../src/components/elemental/Dialog/src/Dialog/DialogContent.tsx","../src/components/elemental/Dialog/src/Dialog/DialogActions.tsx","../src/components/elemental/Dialog/src/Dialog/DialogContentText.tsx"],"sourcesContent":["/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = '';\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (arg) {\n\t\t\t\tclasses = appendClass(classes, parseValue(arg));\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction parseValue (arg) {\n\t\tif (typeof arg === 'string' || typeof arg === 'number') {\n\t\t\treturn arg;\n\t\t}\n\n\t\tif (typeof arg !== 'object') {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (Array.isArray(arg)) {\n\t\t\treturn classNames.apply(null, arg);\n\t\t}\n\n\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\treturn arg.toString();\n\t\t}\n\n\t\tvar classes = '';\n\n\t\tfor (var key in arg) {\n\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\tclasses = appendClass(classes, key);\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction appendClass (value, newClass) {\n\t\tif (!newClass) {\n\t\t\treturn value;\n\t\t}\n\t\n\t\tif (value) {\n\t\t\treturn value + ' ' + newClass;\n\t\t}\n\t\n\t\treturn value + newClass;\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","export * from './src'\n","'use client'\nimport MuiDialog, { type DialogProps as MuiDialogProps } from '@mui/material/Dialog'\nimport classnames from 'classnames'\nimport { CLASSNAMEs } from '@/_utils/_const/classNames'\nimport { mergeSx } from '@/_utils/_func'\nimport { dialogBackdropSx, dialogPaperSx } from './theme'\n\nexport type DialogProps = MuiDialogProps\n\ntype SlotOwnerState = unknown\n\nfunction resolveSlotProps<T extends object>(\n slot: T | ((ownerState: SlotOwnerState) => T) | undefined,\n ownerState: SlotOwnerState,\n): T | undefined {\n if (slot == null) return undefined\n if (typeof slot === 'function') {\n return (slot as (ownerState: SlotOwnerState) => T)(ownerState)\n }\n return slot\n}\n\n/**\n * Soft theme-aware Dialog — MUI Dialog API with Confirm/MuiModal quiet chrome.\n *\n * Drop-in for `@mui/material/Dialog` consumers: same props, soft paper\n * (`background.paper` + hairline border) and soft backdrop.\n *\n * [Doc](https://mui.com/material-ui/api/dialog/)\n */\nexport default function Dialog({\n className,\n slotProps,\n ...rest\n}: DialogProps) {\n const modalClass = classnames(CLASSNAMEs.elemental.dialog, className)\n\n return (\n <MuiDialog\n className={modalClass}\n {...rest}\n slotProps={{\n ...slotProps,\n paper: (ownerState) => {\n const resolved = resolveSlotProps(slotProps?.paper as object | ((o: SlotOwnerState) => object) | undefined, ownerState) ?? {}\n const { sx: hostSx, elevation, ...restPaper } = resolved as {\n sx?: unknown\n elevation?: number\n [key: string]: unknown\n }\n return {\n elevation: elevation ?? 0,\n ...restPaper,\n sx: mergeSx(dialogPaperSx, hostSx as never),\n }\n },\n backdrop: (ownerState) => {\n const resolved = resolveSlotProps(slotProps?.backdrop as object | ((o: SlotOwnerState) => object) | undefined, ownerState) ?? {}\n const { sx: hostSx, ...restBackdrop } = resolved as {\n sx?: unknown\n [key: string]: unknown\n }\n return {\n ...restBackdrop,\n sx: mergeSx(dialogBackdropSx, hostSx as never),\n }\n },\n }}\n />\n )\n}\n","// central registry for CSS class names used throughout the codebase\n//\n// Storing them in one object makes it easy to search for components in tests\n// and debugging tools, and prevents accidental mismatches when strings are\n// copied by hand. Add additional entries here as new components need them.\n\nexport const CLASSNAMEs = {\n elemental: {\n avatar: {\n // root wrapper for the Avatar component\n root: 'Elemental-Avatar',\n // button variant used by AvatarButton and related controls\n button: 'Elemental-AvatarButton',\n },\n modal: 'Elemental-Modal',\n dialog: 'Elemental-Dialog',\n },\n compound: {\n useForm: {\n // class applied to the wrapper around the avatar field inside UseForm\n avatarField: 'UseForm-AvatarField',\n },\n },\n} as const;\n","import type { SxProps, Theme } from '@mui/material/styles'\n\n/** Values accepted by {@link mergeSx}: objects, callbacks, arrays (nested ok), or omitted. */\nexport type SxMergePart =\n | SxProps<Theme>\n | Record<string, unknown>\n | ReadonlyArray<SxMergePart>\n | false\n | null\n | undefined\n\nfunction flattenSx(part: unknown): unknown[] {\n if (part == null || typeof part === 'boolean') {\n return []\n }\n if (Array.isArray(part)) {\n return part.flatMap(flattenSx)\n }\n if (typeof part === 'function' || typeof part === 'object') {\n return [part]\n }\n return []\n}\n\n/**\n * Combine MUI `sx` values into one prop.\n *\n * Nested arrays are flattened (`[base, [a, b]]` → `[base, a, b]`).\n * `null` / `undefined` / `false` entries are dropped. Later parts win,\n * same as MUI's `sx` array merge.\n */\nexport function mergeSx(...parts: SxMergePart[]): SxProps<Theme> | undefined {\n const list = parts.flatMap(flattenSx)\n if (list.length === 0) {\n return undefined\n }\n if (list.length === 1) {\n return list[0] as SxProps<Theme>\n }\n return list as SxProps<Theme>\n}\n","import type { SxProps, Theme } from '@mui/material/styles'\nimport type { MuiComponentTheme } from '@/_utils/_types'\n\n/** Soft dialog paper radius - matches Confirm quiet chrome. */\nexport const DIALOG_PAPER_RADIUS = '16px'\n\n/** Soft black elevation for light scheme (quiet, no thick chrome). */\nexport const DIALOG_SHADOW_LIGHT =\n '0 1px 2px rgba(0, 0, 0, 0.10), 0 4px 12px rgba(0, 0, 0, 0.12), 0 10px 24px rgba(0, 0, 0, 0.10)'\n\n/**\n * Soft black elevation for dark scheme.\n * Avoid palette `shadow-outset-1` here: it uses border-1 grey and reads as a pale halo.\n */\nexport const DIALOG_SHADOW_DARK =\n '0 1px 2px rgba(0, 0, 0, 0.45), 0 4px 10px rgba(0, 0, 0, 0.50), 0 12px 28px rgba(0, 0, 0, 0.55)'\n\nconst dialogDarkShadowSx = {\n '[data-mui-color-scheme=\"dark\"] &, [color-scheme=\"dark\"] &': {\n '--dialog-shadow': DIALOG_SHADOW_DARK,\n boxShadow: DIALOG_SHADOW_DARK,\n },\n} as const\n\n/** Soft/quiet Dialog paper tokens (shared by wrapper sx + theme overrides). */\nexport const dialogPaperTokens = {\n '--dialog-bg': 'var(--mui-palette-background-paper)',\n '--dialog-border': 'var(--mui-palette-border-1)',\n '--dialog-shadow': DIALOG_SHADOW_LIGHT,\n\n backgroundColor: 'var(--dialog-bg)',\n // Kill MUI Paper dark-mode elevation overlay so paper stays a flat soft surface.\n backgroundImage: 'none',\n borderRadius: DIALOG_PAPER_RADIUS,\n border: '1px solid var(--dialog-border)',\n boxShadow: 'var(--dialog-shadow)',\n outline: 'none',\n} as const\n\n/**\n * Soft/quiet Dialog paper.\n * Uses elevated `background.paper` (Google-style mid-grey over near-black canvas\n * in dark) with a hairline border - not raw white MUI defaults or thick chrome.\n */\nexport const dialogPaperSx: SxProps<Theme> = {\n ...dialogPaperTokens,\n ...dialogDarkShadowSx,\n}\n\n/** Soft glass-adjacent backdrop - same language as Confirm. */\nexport const dialogBackdropTokens = {\n backgroundColor:\n 'color-mix(in srgb, var(--mui-palette-common-black, #000) 36%, transparent)',\n backdropFilter: 'blur(2px)',\n} as const\n\nexport const dialogBackdropSx: SxProps<Theme> = dialogBackdropTokens\n\nexport const dialogTheme = {\n styleOverrides: {\n paper: {\n ...dialogPaperTokens,\n ...dialogDarkShadowSx,\n },\n },\n} as const satisfies MuiComponentTheme<'MuiDialog'>\n\nexport const dialogTitleTheme = {\n styleOverrides: {\n root: {\n fontSize: '1.05rem',\n fontWeight: 600,\n padding: '20px 20px 8px',\n lineHeight: 1.35,\n },\n },\n} as const satisfies MuiComponentTheme<'MuiDialogTitle'>\n\nexport const dialogContentTheme = {\n styleOverrides: {\n root: {\n padding: '8px 20px 12px',\n '&.MuiDialogContent-root:first-of-type': {\n paddingTop: '16px',\n },\n },\n },\n} as const satisfies MuiComponentTheme<'MuiDialogContent'>\n\n/**\n * Soft secondary / Cancel button chrome for DialogActions.\n * Matches Confirm cancel: quiet border-1 + muted text-secondary\n * (not stark white inherit outline in dark).\n */\nexport const dialogSecondaryButtonSx = {\n textTransform: 'none' as const,\n color: 'var(--mui-palette-text-secondary)',\n borderColor: 'var(--mui-palette-border-1)',\n '--button-color': 'var(--mui-palette-text-secondary)',\n '--variant-outlinedColor': 'var(--mui-palette-text-secondary)',\n '--variant-outlinedBorder': 'var(--mui-palette-border-1)',\n '&:hover': {\n color: 'var(--mui-palette-text-secondary)',\n borderColor: 'var(--mui-palette-border-hover-1)',\n backgroundColor: 'var(--mui-palette-background-hover-1)',\n '--button-hover-border-color': 'var(--mui-palette-border-hover-1)',\n },\n}\n\nexport const dialogActionsTheme = {\n styleOverrides: {\n root: {\n padding: '8px 16px 16px',\n gap: '8px',\n // Soften default Cancel pattern (outlined + inherit) inside Dialog only.\n // Do not restyle primary/error/etc. outlined buttons or global Buttons.\n '& .MuiButton-outlined.MuiButton-colorInherit': {\n ...dialogSecondaryButtonSx,\n },\n },\n },\n} as const satisfies MuiComponentTheme<'MuiDialogActions'>\n\nexport const dialogContentTextTheme = {\n styleOverrides: {\n root: {\n color: 'var(--mui-palette-text-secondary)',\n fontSize: '0.875rem',\n },\n },\n} as const satisfies MuiComponentTheme<'MuiDialogContentText'>\n","'use client'\nimport MuiDialogTitle, {\n type DialogTitleProps as MuiDialogTitleProps,\n} from '@mui/material/DialogTitle'\n\nexport type DialogTitleProps = MuiDialogTitleProps\n\n/**\n * Soft Dialog title — same API as `@mui/material/DialogTitle`.\n */\nexport default function DialogTitle(props: DialogTitleProps) {\n return <MuiDialogTitle {...props} />\n}\n","'use client'\nimport MuiDialogContent, {\n type DialogContentProps as MuiDialogContentProps,\n} from '@mui/material/DialogContent'\n\nexport type DialogContentProps = MuiDialogContentProps\n\n/**\n * Soft Dialog content — same API as `@mui/material/DialogContent`.\n */\nexport default function DialogContent(props: DialogContentProps) {\n return <MuiDialogContent {...props} />\n}\n","'use client'\nimport MuiDialogActions, {\n type DialogActionsProps as MuiDialogActionsProps,\n} from '@mui/material/DialogActions'\n\nexport type DialogActionsProps = MuiDialogActionsProps\n\n/**\n * Soft Dialog actions — same API as `@mui/material/DialogActions`.\n */\nexport default function DialogActions(props: DialogActionsProps) {\n return <MuiDialogActions {...props} />\n}\n","'use client'\nimport MuiDialogContentText, {\n type DialogContentTextProps as MuiDialogContentTextProps,\n} from '@mui/material/DialogContentText'\n\nexport type DialogContentTextProps = MuiDialogContentTextProps\n\n/**\n * Soft Dialog content text — same API as `@mui/material/DialogContentText`.\n */\nexport default function DialogContentText(props: DialogContentTextProps) {\n return <MuiDialogContentText {...props} />\n}\n"],"mappings":"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","names":["exports","module","classnames","MuiDialog","import_jsx_runtime","MuiDialogTitle","import_jsx_runtime","MuiDialogContent","import_jsx_runtime","MuiDialogActions","import_jsx_runtime","MuiDialogContentText"]}
|
package/dist/dialog.mjs
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DIALOG_PAPER_RADIUS,
|
|
3
|
+
DIALOG_SHADOW_DARK,
|
|
4
|
+
DIALOG_SHADOW_LIGHT,
|
|
5
|
+
Dialog,
|
|
6
|
+
DialogActions,
|
|
7
|
+
DialogContent,
|
|
8
|
+
DialogContentText,
|
|
9
|
+
DialogTitle,
|
|
10
|
+
dialogActionsTheme,
|
|
11
|
+
dialogBackdropSx,
|
|
12
|
+
dialogBackdropTokens,
|
|
13
|
+
dialogContentTextTheme,
|
|
14
|
+
dialogContentTheme,
|
|
15
|
+
dialogPaperSx,
|
|
16
|
+
dialogPaperTokens,
|
|
17
|
+
dialogSecondaryButtonSx,
|
|
18
|
+
dialogTheme,
|
|
19
|
+
dialogTitleTheme
|
|
20
|
+
} from "./chunk-6JKMEH2L.mjs";
|
|
21
|
+
import "./chunk-2FK24ZPJ.mjs";
|
|
22
|
+
import "./chunk-KSN33A6I.mjs";
|
|
23
|
+
import "./chunk-AFLEG5ZC.mjs";
|
|
24
|
+
import "./chunk-FJ6ZGZIA.mjs";
|
|
25
|
+
export {
|
|
26
|
+
DIALOG_PAPER_RADIUS,
|
|
27
|
+
DIALOG_SHADOW_DARK,
|
|
28
|
+
DIALOG_SHADOW_LIGHT,
|
|
29
|
+
Dialog,
|
|
30
|
+
DialogActions,
|
|
31
|
+
DialogContent,
|
|
32
|
+
DialogContentText,
|
|
33
|
+
DialogTitle,
|
|
34
|
+
dialogActionsTheme,
|
|
35
|
+
dialogBackdropSx,
|
|
36
|
+
dialogBackdropTokens,
|
|
37
|
+
dialogContentTextTheme,
|
|
38
|
+
dialogContentTheme,
|
|
39
|
+
dialogPaperSx,
|
|
40
|
+
dialogPaperTokens,
|
|
41
|
+
dialogSecondaryButtonSx,
|
|
42
|
+
dialogTheme,
|
|
43
|
+
dialogTitleTheme
|
|
44
|
+
};
|
|
45
|
+
//# sourceMappingURL=dialog.mjs.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Box from '@mui/material/Box';
|
|
4
|
+
|
|
5
|
+
type EmptyStateProps = {
|
|
6
|
+
icon?: React.ReactNode;
|
|
7
|
+
title: React.ReactNode;
|
|
8
|
+
description?: React.ReactNode;
|
|
9
|
+
action?: React.ReactNode;
|
|
10
|
+
sx?: React.ComponentProps<typeof Box>['sx'];
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Soft empty placeholder with optional icon, description, and action.
|
|
14
|
+
*/
|
|
15
|
+
declare function EmptyState({ icon, title, description, action, sx, }: EmptyStateProps): react_jsx_runtime.JSX.Element;
|
|
16
|
+
|
|
17
|
+
export { EmptyState, type EmptyStateProps };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Box from '@mui/material/Box';
|
|
4
|
+
|
|
5
|
+
type EmptyStateProps = {
|
|
6
|
+
icon?: React.ReactNode;
|
|
7
|
+
title: React.ReactNode;
|
|
8
|
+
description?: React.ReactNode;
|
|
9
|
+
action?: React.ReactNode;
|
|
10
|
+
sx?: React.ComponentProps<typeof Box>['sx'];
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Soft empty placeholder with optional icon, description, and action.
|
|
14
|
+
*/
|
|
15
|
+
declare function EmptyState({ icon, title, description, action, sx, }: EmptyStateProps): react_jsx_runtime.JSX.Element;
|
|
16
|
+
|
|
17
|
+
export { EmptyState, type EmptyStateProps };
|