@actdim/dynstruct-mui 0.9.0
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/LICENSE +21 -0
- package/README.md +91 -0
- package/dist/Accordion.d.ts +19 -0
- package/dist/Accordion.d.ts.map +1 -0
- package/dist/Accordion.es.js +34 -0
- package/dist/Accordion.es.js.map +1 -0
- package/dist/Alert.d.ts +18 -0
- package/dist/Alert.d.ts.map +1 -0
- package/dist/Alert.es.js +32 -0
- package/dist/Alert.es.js.map +1 -0
- package/dist/Autocomplete.d.ts +26 -0
- package/dist/Autocomplete.d.ts.map +1 -0
- package/dist/Autocomplete.es.js +57 -0
- package/dist/Autocomplete.es.js.map +1 -0
- package/dist/Avatar.d.ts +18 -0
- package/dist/Avatar.d.ts.map +1 -0
- package/dist/Avatar.es.js +23 -0
- package/dist/Avatar.es.js.map +1 -0
- package/dist/Badge.d.ts +21 -0
- package/dist/Badge.d.ts.map +1 -0
- package/dist/Badge.es.js +38 -0
- package/dist/Badge.es.js.map +1 -0
- package/dist/Breadcrumbs.d.ts +22 -0
- package/dist/Breadcrumbs.d.ts.map +1 -0
- package/dist/Breadcrumbs.es.js +44 -0
- package/dist/Breadcrumbs.es.js.map +1 -0
- package/dist/Button.d.ts +23 -0
- package/dist/Button.d.ts.map +1 -0
- package/dist/Button.es.js +44 -0
- package/dist/Button.es.js.map +1 -0
- package/dist/Card.d.ts +21 -0
- package/dist/Card.d.ts.map +1 -0
- package/dist/Card.es.js +34 -0
- package/dist/Card.es.js.map +1 -0
- package/dist/Checkbox.d.ts +22 -0
- package/dist/Checkbox.d.ts.map +1 -0
- package/dist/Checkbox.es.js +49 -0
- package/dist/Checkbox.es.js.map +1 -0
- package/dist/Chip.d.ts +21 -0
- package/dist/Chip.d.ts.map +1 -0
- package/dist/Chip.es.js +39 -0
- package/dist/Chip.es.js.map +1 -0
- package/dist/CircularProgress.d.ts +19 -0
- package/dist/CircularProgress.d.ts.map +1 -0
- package/dist/CircularProgress.es.js +34 -0
- package/dist/CircularProgress.es.js.map +1 -0
- package/dist/Dialog.d.ts +22 -0
- package/dist/Dialog.d.ts.map +1 -0
- package/dist/Dialog.es.js +41 -0
- package/dist/Dialog.es.js.map +1 -0
- package/dist/Drawer.d.ts +19 -0
- package/dist/Drawer.d.ts.map +1 -0
- package/dist/Drawer.es.js +35 -0
- package/dist/Drawer.es.js.map +1 -0
- package/dist/Fab.d.ts +21 -0
- package/dist/Fab.d.ts.map +1 -0
- package/dist/Fab.es.js +40 -0
- package/dist/Fab.es.js.map +1 -0
- package/dist/IconButton.d.ts +21 -0
- package/dist/IconButton.d.ts.map +1 -0
- package/dist/IconButton.es.js +40 -0
- package/dist/IconButton.es.js.map +1 -0
- package/dist/LinearProgress.d.ts +18 -0
- package/dist/LinearProgress.d.ts.map +1 -0
- package/dist/LinearProgress.es.js +32 -0
- package/dist/LinearProgress.es.js.map +1 -0
- package/dist/List.d.ts +25 -0
- package/dist/List.d.ts.map +1 -0
- package/dist/List.es.js +24 -0
- package/dist/List.es.js.map +1 -0
- package/dist/Menu.d.ts +24 -0
- package/dist/Menu.d.ts.map +1 -0
- package/dist/Menu.es.js +36 -0
- package/dist/Menu.es.js.map +1 -0
- package/dist/Pagination.d.ts +21 -0
- package/dist/Pagination.d.ts.map +1 -0
- package/dist/Pagination.es.js +40 -0
- package/dist/Pagination.es.js.map +1 -0
- package/dist/RadioGroup.d.ts +27 -0
- package/dist/RadioGroup.d.ts.map +1 -0
- package/dist/RadioGroup.es.js +50 -0
- package/dist/RadioGroup.es.js.map +1 -0
- package/dist/Rating.d.ts +20 -0
- package/dist/Rating.d.ts.map +1 -0
- package/dist/Rating.es.js +37 -0
- package/dist/Rating.es.js.map +1 -0
- package/dist/Select.d.ts +28 -0
- package/dist/Select.d.ts.map +1 -0
- package/dist/Select.es.js +57 -0
- package/dist/Select.es.js.map +1 -0
- package/dist/Skeleton.d.ts +18 -0
- package/dist/Skeleton.d.ts.map +1 -0
- package/dist/Skeleton.es.js +32 -0
- package/dist/Skeleton.es.js.map +1 -0
- package/dist/Slider.d.ts +24 -0
- package/dist/Slider.d.ts.map +1 -0
- package/dist/Slider.es.js +46 -0
- package/dist/Slider.es.js.map +1 -0
- package/dist/Snackbar.d.ts +20 -0
- package/dist/Snackbar.d.ts.map +1 -0
- package/dist/Snackbar.es.js +37 -0
- package/dist/Snackbar.es.js.map +1 -0
- package/dist/SpeedDial.d.ts +24 -0
- package/dist/SpeedDial.d.ts.map +1 -0
- package/dist/SpeedDial.es.js +42 -0
- package/dist/SpeedDial.es.js.map +1 -0
- package/dist/Stepper.d.ts +23 -0
- package/dist/Stepper.d.ts.map +1 -0
- package/dist/Stepper.es.js +40 -0
- package/dist/Stepper.es.js.map +1 -0
- package/dist/Switch.d.ts +21 -0
- package/dist/Switch.d.ts.map +1 -0
- package/dist/Switch.es.js +47 -0
- package/dist/Switch.es.js.map +1 -0
- package/dist/Table.d.ts +24 -0
- package/dist/Table.d.ts.map +1 -0
- package/dist/Table.es.js +31 -0
- package/dist/Table.es.js.map +1 -0
- package/dist/Tabs.d.ts +25 -0
- package/dist/Tabs.d.ts.map +1 -0
- package/dist/Tabs.es.js +44 -0
- package/dist/Tabs.es.js.map +1 -0
- package/dist/TextField.d.ts +27 -0
- package/dist/TextField.d.ts.map +1 -0
- package/dist/TextField.es.js +53 -0
- package/dist/TextField.es.js.map +1 -0
- package/dist/ToggleButtonGroup.d.ts +28 -0
- package/dist/ToggleButtonGroup.d.ts.map +1 -0
- package/dist/ToggleButtonGroup.es.js +44 -0
- package/dist/ToggleButtonGroup.es.js.map +1 -0
- package/dist/Tooltip.d.ts +17 -0
- package/dist/Tooltip.d.ts.map +1 -0
- package/dist/Tooltip.es.js +22 -0
- package/dist/Tooltip.es.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.es.js +2 -0
- package/dist/index.es.js.map +1 -0
- package/package.json +134 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Pavel Borodaev (@actdim/msgmesh)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# @actdim/dynstruct-mui
|
|
2
|
+
|
|
3
|
+
MUI component wrappers for [@actdim/dynstruct](https://github.com/actdim/dynstruct). Each component is a dynstruct hook-constructor — observable props, reactive rendering, MobX-backed state out of the box.
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/@actdim/dynstruct-mui)
|
|
6
|
+
[](https://www.typescriptlang.org/)
|
|
7
|
+
[](LICENSE)
|
|
8
|
+
|
|
9
|
+
## Components
|
|
10
|
+
|
|
11
|
+
| Component | Import |
|
|
12
|
+
|---|---|
|
|
13
|
+
| Accordion | `@actdim/dynstruct-mui/Accordion` |
|
|
14
|
+
| Alert | `@actdim/dynstruct-mui/Alert` |
|
|
15
|
+
| Autocomplete | `@actdim/dynstruct-mui/Autocomplete` |
|
|
16
|
+
| Avatar | `@actdim/dynstruct-mui/Avatar` |
|
|
17
|
+
| Badge | `@actdim/dynstruct-mui/Badge` |
|
|
18
|
+
| Breadcrumbs | `@actdim/dynstruct-mui/Breadcrumbs` |
|
|
19
|
+
| Button | `@actdim/dynstruct-mui/Button` |
|
|
20
|
+
| Card | `@actdim/dynstruct-mui/Card` |
|
|
21
|
+
| Checkbox | `@actdim/dynstruct-mui/Checkbox` |
|
|
22
|
+
| Chip | `@actdim/dynstruct-mui/Chip` |
|
|
23
|
+
| CircularProgress | `@actdim/dynstruct-mui/CircularProgress` |
|
|
24
|
+
| Dialog | `@actdim/dynstruct-mui/Dialog` |
|
|
25
|
+
| Drawer | `@actdim/dynstruct-mui/Drawer` |
|
|
26
|
+
| Fab | `@actdim/dynstruct-mui/Fab` |
|
|
27
|
+
| IconButton | `@actdim/dynstruct-mui/IconButton` |
|
|
28
|
+
| LinearProgress | `@actdim/dynstruct-mui/LinearProgress` |
|
|
29
|
+
| List | `@actdim/dynstruct-mui/List` |
|
|
30
|
+
| Menu | `@actdim/dynstruct-mui/Menu` |
|
|
31
|
+
| Pagination | `@actdim/dynstruct-mui/Pagination` |
|
|
32
|
+
| RadioGroup | `@actdim/dynstruct-mui/RadioGroup` |
|
|
33
|
+
| Rating | `@actdim/dynstruct-mui/Rating` |
|
|
34
|
+
| Select | `@actdim/dynstruct-mui/Select` |
|
|
35
|
+
| Skeleton | `@actdim/dynstruct-mui/Skeleton` |
|
|
36
|
+
| Slider | `@actdim/dynstruct-mui/Slider` |
|
|
37
|
+
| Snackbar | `@actdim/dynstruct-mui/Snackbar` |
|
|
38
|
+
| SpeedDial | `@actdim/dynstruct-mui/SpeedDial` |
|
|
39
|
+
| Stepper | `@actdim/dynstruct-mui/Stepper` |
|
|
40
|
+
| Switch | `@actdim/dynstruct-mui/Switch` |
|
|
41
|
+
| Table | `@actdim/dynstruct-mui/Table` |
|
|
42
|
+
| Tabs | `@actdim/dynstruct-mui/Tabs` |
|
|
43
|
+
| TextField | `@actdim/dynstruct-mui/TextField` |
|
|
44
|
+
| ToggleButtonGroup | `@actdim/dynstruct-mui/ToggleButtonGroup` |
|
|
45
|
+
| Tooltip | `@actdim/dynstruct-mui/Tooltip` |
|
|
46
|
+
|
|
47
|
+
## Installation
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
npm install @actdim/dynstruct-mui
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Peer dependencies: `@actdim/dynstruct`, `@mui/material`, `react`, `mobx`, `mobx-react-lite` — see `package.json` for full list.
|
|
54
|
+
|
|
55
|
+
## Usage
|
|
56
|
+
|
|
57
|
+
```tsx
|
|
58
|
+
import { useButton } from '@actdim/dynstruct-mui/Button';
|
|
59
|
+
|
|
60
|
+
const saveBtn = useButton({
|
|
61
|
+
props: {
|
|
62
|
+
label: 'Save',
|
|
63
|
+
variant: 'contained',
|
|
64
|
+
onClick: () => handleSave(),
|
|
65
|
+
},
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
// In JSX:
|
|
69
|
+
// <saveBtn.view />
|
|
70
|
+
// or via React adapter:
|
|
71
|
+
import { Button } from '@actdim/dynstruct-mui/Button';
|
|
72
|
+
// <Button label="Save" variant="contained" onClick={handleSave} />
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## Development
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
pnpm storybook # run Storybook
|
|
79
|
+
pnpm build # build
|
|
80
|
+
pnpm typecheck # type check
|
|
81
|
+
pnpm lint # lint
|
|
82
|
+
pnpm format # format
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
## License
|
|
86
|
+
|
|
87
|
+
Proprietary — see [LICENSE](LICENSE) for details.
|
|
88
|
+
|
|
89
|
+
## Author
|
|
90
|
+
|
|
91
|
+
Pavel Borodaev — [github.com/actdim/dynstruct-mui](https://github.com/actdim/dynstruct-mui)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { AccordionProps as MuiAccordionProps } from '@mui/material';
|
|
3
|
+
import { ComponentStruct, ComponentParams, Component } from '@actdim/dynstruct/componentModel/contracts';
|
|
4
|
+
import { BaseAppMsgStruct } from '@actdim/dynstruct/appDomain/appContracts';
|
|
5
|
+
type Struct<TMsgStruct extends BaseAppMsgStruct = BaseAppMsgStruct> = ComponentStruct<TMsgStruct, {
|
|
6
|
+
props: {
|
|
7
|
+
summary: React.ReactNode;
|
|
8
|
+
content: React.FC;
|
|
9
|
+
expanded?: boolean;
|
|
10
|
+
onChange?: (expanded: boolean) => void;
|
|
11
|
+
expandIcon?: React.ReactNode;
|
|
12
|
+
sx?: MuiAccordionProps['sx'];
|
|
13
|
+
};
|
|
14
|
+
}>;
|
|
15
|
+
export declare const useAccordion: (params: ComponentParams<Struct>) => Component<Struct>;
|
|
16
|
+
export type AccordionStruct = Struct;
|
|
17
|
+
export declare const Accordion: React.FC<ComponentParams<Struct<BaseAppMsgStruct>>>;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=Accordion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../src/Accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAIH,KAAK,cAAc,IAAI,iBAAiB,EAC3C,MAAM,eAAe,CAAC;AACvB,OAAO,EACH,KAAK,eAAe,EAEpB,KAAK,eAAe,EACpB,KAAK,SAAS,EAEjB,MAAM,4CAA4C,CAAC;AAEpD,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAEjF,KAAK,MAAM,CAAC,UAAU,SAAS,gBAAgB,GAAG,gBAAgB,IAAI,eAAe,CACjF,UAAU,EACV;IACI,KAAK,EAAE;QACH,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;QACzB,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC;QAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;QACvC,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QAC7B,EAAE,CAAC,EAAE,iBAAiB,CAAC,IAAI,CAAC,CAAC;KAChC,CAAC;CACL,CACJ,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,QAAQ,eAAe,CAAC,MAAM,CAAC,KAAG,SAAS,CAAC,MAAM,CAkC9E,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC;AAErC,eAAO,MAAM,SAAS,qDAAwB,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import o from "react";
|
|
2
|
+
import { Accordion as t, AccordionSummary as r, AccordionDetails as a } from "@mui/material";
|
|
3
|
+
import { toReact as i, useComponent as m } from "@actdim/dynstruct/componentModel/react/react";
|
|
4
|
+
const l = (c) => {
|
|
5
|
+
let n, e;
|
|
6
|
+
return n = m({
|
|
7
|
+
regType: "Accordion",
|
|
8
|
+
props: {
|
|
9
|
+
summary: "",
|
|
10
|
+
content: () => null,
|
|
11
|
+
expanded: void 0,
|
|
12
|
+
onChange: void 0,
|
|
13
|
+
expandIcon: void 0,
|
|
14
|
+
sx: void 0
|
|
15
|
+
},
|
|
16
|
+
view: () => /* @__PURE__ */ o.createElement(
|
|
17
|
+
t,
|
|
18
|
+
{
|
|
19
|
+
expanded: e.expanded,
|
|
20
|
+
onChange: e.onChange ? (x, d) => e.onChange(d) : void 0,
|
|
21
|
+
disabled: e.$.isDisabled,
|
|
22
|
+
sx: e.sx
|
|
23
|
+
},
|
|
24
|
+
/* @__PURE__ */ o.createElement(r, { expandIcon: e.expandIcon }, e.summary),
|
|
25
|
+
/* @__PURE__ */ o.createElement(a, null, /* @__PURE__ */ o.createElement(e.content, null))
|
|
26
|
+
)
|
|
27
|
+
}, c), e = n.model, n;
|
|
28
|
+
}, s = i(l);
|
|
29
|
+
s.displayName = "Accordion";
|
|
30
|
+
export {
|
|
31
|
+
s as Accordion,
|
|
32
|
+
l as useAccordion
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=Accordion.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Accordion.es.js","sources":["D:/Src/my/actdim/public/dynstruct-mui/src/Accordion.tsx"],"sourcesContent":null,"names":["useAccordion","params","c","m","useComponent","React","MuiAccordion","_","v","AccordionSummary","AccordionDetails","Accordion","toReact"],"mappings":";;;AA+BO,MAAMA,IAAe,CAACC,MAAuD;AAChF,MAAIC,GACAC;AA6BJ,SAAAD,IAAIE,EA3B8B;AAAA,IAC9B,SAAS;AAAA,IACT,OAAO;AAAA,MACH,SAAS;AAAA,MACT,SAAS,MAAM;AAAA,MACf,UAAU;AAAA,MACV,UAAU;AAAA,MACV,YAAY;AAAA,MACZ,IAAI;AAAA,IAAA;AAAA,IAER,MAAM,MACF,gBAAAC,EAAA;AAAA,MAACC;AAAAA,MAAA;AAAA,QACG,UAAUH,EAAE;AAAA,QACZ,UAAUA,EAAE,WAAW,CAACI,GAAGC,MAAML,EAAE,SAAUK,CAAC,IAAI;AAAA,QAClD,UAAUL,EAAE,EAAE;AAAA,QACd,IAAIA,EAAE;AAAA,MAAA;AAAA,sCAELM,GAAA,EAAiB,YAAYN,EAAE,WAAA,GAC3BA,EAAE,OACP;AAAA,sCACCO,GAAA,MACG,gBAAAL,EAAA,cAACF,EAAE,SAAF,IAAU,CACf;AAAA,IAAA;AAAA,EACJ,GAIcF,CAAM,GAC5BE,IAAID,EAAE,OACCA;AACX,GAIaS,IAAYC,EAAQZ,CAAY;AAC7CW,EAAU,cAAc;"}
|
package/dist/Alert.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { AlertProps as MuiAlertProps } from '@mui/material';
|
|
3
|
+
import { ComponentStruct, ComponentParams, Component } from '@actdim/dynstruct/componentModel/contracts';
|
|
4
|
+
import { BaseAppMsgStruct } from '@actdim/dynstruct/appDomain/appContracts';
|
|
5
|
+
type Struct<TMsgStruct extends BaseAppMsgStruct = BaseAppMsgStruct> = ComponentStruct<TMsgStruct, {
|
|
6
|
+
props: {
|
|
7
|
+
message: string;
|
|
8
|
+
severity?: MuiAlertProps['severity'];
|
|
9
|
+
variant?: MuiAlertProps['variant'];
|
|
10
|
+
onClose?: () => void;
|
|
11
|
+
sx?: MuiAlertProps['sx'];
|
|
12
|
+
};
|
|
13
|
+
}>;
|
|
14
|
+
export declare const useAlert: (params: ComponentParams<Struct>) => Component<Struct>;
|
|
15
|
+
export type AlertStruct = Struct;
|
|
16
|
+
export declare const Alert: React.FC<ComponentParams<Struct<BaseAppMsgStruct>>>;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=Alert.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../src/Alert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAqB,KAAK,UAAU,IAAI,aAAa,EAAE,MAAM,eAAe,CAAC;AACpF,OAAO,EACH,KAAK,eAAe,EAEpB,KAAK,eAAe,EACpB,KAAK,SAAS,EAEjB,MAAM,4CAA4C,CAAC;AAEpD,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAEjF,KAAK,MAAM,CAAC,UAAU,SAAS,gBAAgB,GAAG,gBAAgB,IAAI,eAAe,CACjF,UAAU,EACV;IACI,KAAK,EAAE;QACH,OAAO,EAAE,MAAM,CAAC;QAChB,QAAQ,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;QACrC,OAAO,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;QACnC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;QACrB,EAAE,CAAC,EAAE,aAAa,CAAC,IAAI,CAAC,CAAC;KAC5B,CAAC;CACL,CACJ,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,QAAQ,eAAe,CAAC,MAAM,CAAC,KAAG,SAAS,CAAC,MAAM,CA4B1E,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC;AAEjC,eAAO,MAAM,KAAK,qDAAoB,CAAC"}
|
package/dist/Alert.es.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import o from "react";
|
|
2
|
+
import { Alert as s } from "@mui/material";
|
|
3
|
+
import { toReact as a, useComponent as n } from "@actdim/dynstruct/componentModel/react/react";
|
|
4
|
+
const i = (r) => {
|
|
5
|
+
let t, e;
|
|
6
|
+
return t = n({
|
|
7
|
+
regType: "Alert",
|
|
8
|
+
props: {
|
|
9
|
+
message: "",
|
|
10
|
+
severity: "info",
|
|
11
|
+
variant: "standard",
|
|
12
|
+
onClose: void 0,
|
|
13
|
+
sx: void 0
|
|
14
|
+
},
|
|
15
|
+
view: () => /* @__PURE__ */ o.createElement(
|
|
16
|
+
s,
|
|
17
|
+
{
|
|
18
|
+
severity: e.severity,
|
|
19
|
+
variant: e.variant,
|
|
20
|
+
onClose: e.onClose,
|
|
21
|
+
sx: e.sx
|
|
22
|
+
},
|
|
23
|
+
e.message
|
|
24
|
+
)
|
|
25
|
+
}, r), e = t.model, t;
|
|
26
|
+
}, l = a(i);
|
|
27
|
+
l.displayName = "Alert";
|
|
28
|
+
export {
|
|
29
|
+
l as Alert,
|
|
30
|
+
i as useAlert
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=Alert.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Alert.es.js","sources":["D:/Src/my/actdim/public/dynstruct-mui/src/Alert.tsx"],"sourcesContent":null,"names":["useAlert","params","c","m","useComponent","React","MuiAlert","Alert","toReact"],"mappings":";;;AAyBO,MAAMA,IAAW,CAACC,MAAuD;AAC5E,MAAIC,GACAC;AAuBJ,SAAAD,IAAIE,EArB8B;AAAA,IAC9B,SAAS;AAAA,IACT,OAAO;AAAA,MACH,SAAS;AAAA,MACT,UAAU;AAAA,MACV,SAAS;AAAA,MACT,SAAS;AAAA,MACT,IAAI;AAAA,IAAA;AAAA,IAER,MAAM,MACF,gBAAAC,EAAA;AAAA,MAACC;AAAAA,MAAA;AAAA,QACG,UAAUH,EAAE;AAAA,QACZ,SAASA,EAAE;AAAA,QACX,SAASA,EAAE;AAAA,QACX,IAAIA,EAAE;AAAA,MAAA;AAAA,MAELA,EAAE;AAAA,IAAA;AAAA,EACP,GAIcF,CAAM,GAC5BE,IAAID,EAAE,OACCA;AACX,GAIaK,IAAQC,EAAQR,CAAQ;AACrCO,EAAM,cAAc;"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { AutocompleteProps as MuiAutocompleteProps, TextFieldProps as MuiTextFieldProps } from '@mui/material';
|
|
3
|
+
import { ComponentStruct, ComponentParams, Component } from '@actdim/dynstruct/componentModel/contracts';
|
|
4
|
+
import { BaseAppMsgStruct } from '@actdim/dynstruct/appDomain/appContracts';
|
|
5
|
+
type Struct<TMsgStruct extends BaseAppMsgStruct = BaseAppMsgStruct> = ComponentStruct<TMsgStruct, {
|
|
6
|
+
props: {
|
|
7
|
+
value: string | null;
|
|
8
|
+
onChange: (value: string | null) => void;
|
|
9
|
+
options: string[];
|
|
10
|
+
label?: string;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
helperText?: string;
|
|
13
|
+
error?: boolean;
|
|
14
|
+
loading?: boolean;
|
|
15
|
+
freeSolo?: boolean;
|
|
16
|
+
fullWidth?: boolean;
|
|
17
|
+
variant?: MuiTextFieldProps['variant'];
|
|
18
|
+
size?: MuiAutocompleteProps<string, false, false, false>['size'];
|
|
19
|
+
sx?: MuiAutocompleteProps<string, false, false, false>['sx'];
|
|
20
|
+
};
|
|
21
|
+
}>;
|
|
22
|
+
export declare const useAutocomplete: (params: ComponentParams<Struct>) => Component<Struct>;
|
|
23
|
+
export type AutocompleteStruct = Struct;
|
|
24
|
+
export declare const Autocomplete: React.FC<ComponentParams<Struct<BaseAppMsgStruct>>>;
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=Autocomplete.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Autocomplete.d.ts","sourceRoot":"","sources":["../src/Autocomplete.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAGH,KAAK,iBAAiB,IAAI,oBAAoB,EAC9C,KAAK,cAAc,IAAI,iBAAiB,EAC3C,MAAM,eAAe,CAAC;AACvB,OAAO,EACH,KAAK,eAAe,EAEpB,KAAK,eAAe,EACpB,KAAK,SAAS,EAEjB,MAAM,4CAA4C,CAAC;AAEpD,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAEjF,KAAK,MAAM,CAAC,UAAU,SAAS,gBAAgB,GAAG,gBAAgB,IAAI,eAAe,CACjF,UAAU,EACV;IACI,KAAK,EAAE;QACH,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;QACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;QACzC,OAAO,EAAE,MAAM,EAAE,CAAC;QAClB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,OAAO,CAAC,EAAE,iBAAiB,CAAC,SAAS,CAAC,CAAC;QACvC,IAAI,CAAC,EAAE,oBAAoB,CAAC,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC;QACjE,EAAE,CAAC,EAAE,oBAAoB,CAAC,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC;KAChE,CAAC;CACL,CACJ,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,QAAQ,eAAe,CAAC,MAAM,CAAC,KAAG,SAAS,CAAC,MAAM,CAkDjF,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC;AAExC,eAAO,MAAM,YAAY,qDAA2B,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import t from "react";
|
|
2
|
+
import { Autocomplete as i, TextField as n } from "@mui/material";
|
|
3
|
+
import { toReact as d, useComponent as p } from "@actdim/dynstruct/componentModel/react/react";
|
|
4
|
+
const s = (r) => {
|
|
5
|
+
let o, e;
|
|
6
|
+
return o = p({
|
|
7
|
+
regType: "Autocomplete",
|
|
8
|
+
props: {
|
|
9
|
+
value: null,
|
|
10
|
+
onChange: () => {
|
|
11
|
+
},
|
|
12
|
+
options: [],
|
|
13
|
+
label: void 0,
|
|
14
|
+
placeholder: void 0,
|
|
15
|
+
helperText: void 0,
|
|
16
|
+
error: !1,
|
|
17
|
+
loading: !1,
|
|
18
|
+
freeSolo: !1,
|
|
19
|
+
fullWidth: !1,
|
|
20
|
+
variant: "outlined",
|
|
21
|
+
size: "medium",
|
|
22
|
+
sx: void 0
|
|
23
|
+
},
|
|
24
|
+
view: () => /* @__PURE__ */ t.createElement(
|
|
25
|
+
i,
|
|
26
|
+
{
|
|
27
|
+
value: e.value,
|
|
28
|
+
onChange: (l, a) => e.onChange(a),
|
|
29
|
+
options: e.options,
|
|
30
|
+
loading: e.loading,
|
|
31
|
+
freeSolo: e.freeSolo,
|
|
32
|
+
fullWidth: e.fullWidth,
|
|
33
|
+
size: e.size,
|
|
34
|
+
disabled: e.$.isDisabled,
|
|
35
|
+
readOnly: e.$.isReadOnly,
|
|
36
|
+
sx: e.sx,
|
|
37
|
+
renderInput: (l) => /* @__PURE__ */ t.createElement(
|
|
38
|
+
n,
|
|
39
|
+
{
|
|
40
|
+
...l,
|
|
41
|
+
label: e.label,
|
|
42
|
+
placeholder: e.placeholder,
|
|
43
|
+
error: e.error,
|
|
44
|
+
helperText: e.helperText,
|
|
45
|
+
variant: e.variant
|
|
46
|
+
}
|
|
47
|
+
)
|
|
48
|
+
}
|
|
49
|
+
)
|
|
50
|
+
}, r), e = o.model, o;
|
|
51
|
+
}, m = d(s);
|
|
52
|
+
m.displayName = "Autocomplete";
|
|
53
|
+
export {
|
|
54
|
+
m as Autocomplete,
|
|
55
|
+
s as useAutocomplete
|
|
56
|
+
};
|
|
57
|
+
//# sourceMappingURL=Autocomplete.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Autocomplete.es.js","sources":["D:/Src/my/actdim/public/dynstruct-mui/src/Autocomplete.tsx"],"sourcesContent":null,"names":["useAutocomplete","params","c","m","useComponent","React","MuiAutocomplete","_","newValue","MuiTextField","Autocomplete","toReact"],"mappings":";;;AAsCO,MAAMA,IAAkB,CAACC,MAAuD;AACnF,MAAIC,GACAC;AA6CJ,SAAAD,IAAIE,EA3C8B;AAAA,IAC9B,SAAS;AAAA,IACT,OAAO;AAAA,MACH,OAAO;AAAA,MACP,UAAU,MAAM;AAAA,MAAC;AAAA,MACjB,SAAS,CAAA;AAAA,MACT,OAAO;AAAA,MACP,aAAa;AAAA,MACb,YAAY;AAAA,MACZ,OAAO;AAAA,MACP,SAAS;AAAA,MACT,UAAU;AAAA,MACV,WAAW;AAAA,MACX,SAAS;AAAA,MACT,MAAM;AAAA,MACN,IAAI;AAAA,IAAA;AAAA,IAER,MAAM,MACF,gBAAAC,EAAA;AAAA,MAACC;AAAAA,MAAA;AAAA,QACG,OAAOH,EAAE;AAAA,QACT,UAAU,CAACI,GAAGC,MAAaL,EAAE,SAASK,CAAQ;AAAA,QAC9C,SAASL,EAAE;AAAA,QACX,SAASA,EAAE;AAAA,QACX,UAAUA,EAAE;AAAA,QACZ,WAAWA,EAAE;AAAA,QACb,MAAMA,EAAE;AAAA,QACR,UAAUA,EAAE,EAAE;AAAA,QACd,UAAUA,EAAE,EAAE;AAAA,QACd,IAAIA,EAAE;AAAA,QACN,aAAa,CAACF,MACV,gBAAAI,EAAA;AAAA,UAACI;AAAAA,UAAA;AAAA,YACI,GAAGR;AAAAA,YACJ,OAAOE,EAAE;AAAA,YACT,aAAaA,EAAE;AAAA,YACf,OAAOA,EAAE;AAAA,YACT,YAAYA,EAAE;AAAA,YACd,SAASA,EAAE;AAAA,UAAA;AAAA,QAAA;AAAA,MACf;AAAA,IAAA;AAAA,EAER,GAIcF,CAAM,GAC5BE,IAAID,EAAE,OACCA;AACX,GAIaQ,IAAeC,EAAQX,CAAe;AACnDU,EAAa,cAAc;"}
|
package/dist/Avatar.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { AvatarProps as MuiAvatarProps } from '@mui/material';
|
|
3
|
+
import { ComponentStruct, ComponentParams, Component } from '@actdim/dynstruct/componentModel/contracts';
|
|
4
|
+
import { BaseAppMsgStruct } from '@actdim/dynstruct/appDomain/appContracts';
|
|
5
|
+
type Struct<TMsgStruct extends BaseAppMsgStruct = BaseAppMsgStruct> = ComponentStruct<TMsgStruct, {
|
|
6
|
+
props: {
|
|
7
|
+
src?: string;
|
|
8
|
+
alt?: string;
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
variant?: MuiAvatarProps['variant'];
|
|
11
|
+
sx?: MuiAvatarProps['sx'];
|
|
12
|
+
};
|
|
13
|
+
}>;
|
|
14
|
+
export declare const useAvatar: (params: ComponentParams<Struct>) => Component<Struct>;
|
|
15
|
+
export type AvatarStruct = Struct;
|
|
16
|
+
export declare const Avatar: React.FC<ComponentParams<Struct<BaseAppMsgStruct>>>;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=Avatar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../src/Avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAuB,KAAK,WAAW,IAAI,cAAc,EAAE,MAAM,eAAe,CAAC;AACxF,OAAO,EACH,KAAK,eAAe,EAEpB,KAAK,eAAe,EACpB,KAAK,SAAS,EAEjB,MAAM,4CAA4C,CAAC;AAEpD,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAEjF,KAAK,MAAM,CAAC,UAAU,SAAS,gBAAgB,GAAG,gBAAgB,IAAI,eAAe,CACjF,UAAU,EACV;IACI,KAAK,EAAE;QACH,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,OAAO,CAAC,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC;QACpC,EAAE,CAAC,EAAE,cAAc,CAAC,IAAI,CAAC,CAAC;KAC7B,CAAC;CACL,CACJ,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,QAAQ,eAAe,CAAC,MAAM,CAAC,KAAG,SAAS,CAAC,MAAM,CAuB3E,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC;AAElC,eAAO,MAAM,MAAM,qDAAqB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import e from "react";
|
|
2
|
+
import { Avatar as o } from "@mui/material";
|
|
3
|
+
import { toReact as i, useComponent as c } from "@actdim/dynstruct/componentModel/react/react";
|
|
4
|
+
const s = (t) => {
|
|
5
|
+
let r, a;
|
|
6
|
+
return r = c({
|
|
7
|
+
regType: "Avatar",
|
|
8
|
+
props: {
|
|
9
|
+
src: void 0,
|
|
10
|
+
alt: void 0,
|
|
11
|
+
children: void 0,
|
|
12
|
+
variant: "circular",
|
|
13
|
+
sx: void 0
|
|
14
|
+
},
|
|
15
|
+
view: () => /* @__PURE__ */ e.createElement(o, { src: a.src, alt: a.alt, variant: a.variant, sx: a.sx }, a.children)
|
|
16
|
+
}, t), a = r.model, r;
|
|
17
|
+
}, v = i(s);
|
|
18
|
+
v.displayName = "Avatar";
|
|
19
|
+
export {
|
|
20
|
+
v as Avatar,
|
|
21
|
+
s as useAvatar
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=Avatar.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Avatar.es.js","sources":["D:/Src/my/actdim/public/dynstruct-mui/src/Avatar.tsx"],"sourcesContent":null,"names":["useAvatar","params","c","m","useComponent","React","MuiAvatar","Avatar","toReact"],"mappings":";;;AAyBO,MAAMA,IAAY,CAACC,MAAuD;AAC7E,MAAIC,GACAC;AAkBJ,SAAAD,IAAIE,EAhB8B;AAAA,IAC9B,SAAS;AAAA,IACT,OAAO;AAAA,MACH,KAAK;AAAA,MACL,KAAK;AAAA,MACL,UAAU;AAAA,MACV,SAAS;AAAA,MACT,IAAI;AAAA,IAAA;AAAA,IAER,MAAM,MACF,gBAAAC,EAAA,cAACC,GAAA,EAAU,KAAKH,EAAE,KAAK,KAAKA,EAAE,KAAK,SAASA,EAAE,SAAS,IAAIA,EAAE,MACxDA,EAAE,QACP;AAAA,EAAA,GAIcF,CAAM,GAC5BE,IAAID,EAAE,OACCA;AACX,GAIaK,IAASC,EAAQR,CAAS;AACvCO,EAAO,cAAc;"}
|
package/dist/Badge.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { BadgeProps as MuiBadgeProps } from '@mui/material';
|
|
3
|
+
import { ComponentStruct, ComponentParams, Component } from '@actdim/dynstruct/componentModel/contracts';
|
|
4
|
+
import { BaseAppMsgStruct } from '@actdim/dynstruct/appDomain/appContracts';
|
|
5
|
+
type Struct<TMsgStruct extends BaseAppMsgStruct = BaseAppMsgStruct> = ComponentStruct<TMsgStruct, {
|
|
6
|
+
props: {
|
|
7
|
+
children: React.FC;
|
|
8
|
+
badgeContent?: React.ReactNode;
|
|
9
|
+
color?: MuiBadgeProps['color'];
|
|
10
|
+
variant?: MuiBadgeProps['variant'];
|
|
11
|
+
max?: number;
|
|
12
|
+
invisible?: boolean;
|
|
13
|
+
anchorOrigin?: MuiBadgeProps['anchorOrigin'];
|
|
14
|
+
sx?: MuiBadgeProps['sx'];
|
|
15
|
+
};
|
|
16
|
+
}>;
|
|
17
|
+
export declare const useBadge: (params: ComponentParams<Struct>) => Component<Struct>;
|
|
18
|
+
export type BadgeStruct = Struct;
|
|
19
|
+
export declare const Badge: React.FC<ComponentParams<Struct<BaseAppMsgStruct>>>;
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=Badge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../src/Badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAqB,KAAK,UAAU,IAAI,aAAa,EAAE,MAAM,eAAe,CAAC;AACpF,OAAO,EACH,KAAK,eAAe,EAEpB,KAAK,eAAe,EACpB,KAAK,SAAS,EAEjB,MAAM,4CAA4C,CAAC;AAEpD,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAEjF,KAAK,MAAM,CAAC,UAAU,SAAS,gBAAgB,GAAG,gBAAgB,IAAI,eAAe,CACjF,UAAU,EACV;IACI,KAAK,EAAE;QACH,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC;QACnB,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QAC/B,KAAK,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;QAC/B,OAAO,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;QACnC,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,YAAY,CAAC,EAAE,aAAa,CAAC,cAAc,CAAC,CAAC;QAC7C,EAAE,CAAC,EAAE,aAAa,CAAC,IAAI,CAAC,CAAC;KAC5B,CAAC;CACL,CACJ,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,QAAQ,eAAe,CAAC,MAAM,CAAC,KAAG,SAAS,CAAC,MAAM,CAkC1E,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC;AAEjC,eAAO,MAAM,KAAK,qDAAoB,CAAC"}
|
package/dist/Badge.es.js
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import n from "react";
|
|
2
|
+
import { Badge as t } from "@mui/material";
|
|
3
|
+
import { toReact as i, useComponent as r } from "@actdim/dynstruct/componentModel/react/react";
|
|
4
|
+
const d = (o) => {
|
|
5
|
+
let a, e;
|
|
6
|
+
return a = r({
|
|
7
|
+
regType: "Badge",
|
|
8
|
+
props: {
|
|
9
|
+
children: () => null,
|
|
10
|
+
badgeContent: void 0,
|
|
11
|
+
color: "default",
|
|
12
|
+
variant: "standard",
|
|
13
|
+
max: 99,
|
|
14
|
+
invisible: !1,
|
|
15
|
+
anchorOrigin: void 0,
|
|
16
|
+
sx: void 0
|
|
17
|
+
},
|
|
18
|
+
view: () => /* @__PURE__ */ n.createElement(
|
|
19
|
+
t,
|
|
20
|
+
{
|
|
21
|
+
badgeContent: e.badgeContent,
|
|
22
|
+
color: e.color,
|
|
23
|
+
variant: e.variant,
|
|
24
|
+
max: e.max,
|
|
25
|
+
invisible: e.invisible,
|
|
26
|
+
anchorOrigin: e.anchorOrigin,
|
|
27
|
+
sx: e.sx
|
|
28
|
+
},
|
|
29
|
+
/* @__PURE__ */ n.createElement(e.children, null)
|
|
30
|
+
)
|
|
31
|
+
}, o), e = a.model, a;
|
|
32
|
+
}, l = i(d);
|
|
33
|
+
l.displayName = "Badge";
|
|
34
|
+
export {
|
|
35
|
+
l as Badge,
|
|
36
|
+
d as useBadge
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=Badge.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Badge.es.js","sources":["D:/Src/my/actdim/public/dynstruct-mui/src/Badge.tsx"],"sourcesContent":null,"names":["useBadge","params","c","m","useComponent","React","MuiBadge","Badge","toReact"],"mappings":";;;AA4BO,MAAMA,IAAW,CAACC,MAAuD;AAC5E,MAAIC,GACAC;AA6BJ,SAAAD,IAAIE,EA3B8B;AAAA,IAC9B,SAAS;AAAA,IACT,OAAO;AAAA,MACH,UAAU,MAAM;AAAA,MAChB,cAAc;AAAA,MACd,OAAO;AAAA,MACP,SAAS;AAAA,MACT,KAAK;AAAA,MACL,WAAW;AAAA,MACX,cAAc;AAAA,MACd,IAAI;AAAA,IAAA;AAAA,IAER,MAAM,MACF,gBAAAC,EAAA;AAAA,MAACC;AAAAA,MAAA;AAAA,QACG,cAAcH,EAAE;AAAA,QAChB,OAAOA,EAAE;AAAA,QACT,SAASA,EAAE;AAAA,QACX,KAAKA,EAAE;AAAA,QACP,WAAWA,EAAE;AAAA,QACb,cAAcA,EAAE;AAAA,QAChB,IAAIA,EAAE;AAAA,MAAA;AAAA,MAEN,gBAAAE,EAAA,cAACF,EAAE,UAAF,IAAW;AAAA,IAAA;AAAA,EAChB,GAIcF,CAAM,GAC5BE,IAAID,EAAE,OACCA;AACX,GAIaK,IAAQC,EAAQR,CAAQ;AACrCO,EAAM,cAAc;"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { BreadcrumbsProps as MuiBreadcrumbsProps } from '@mui/material';
|
|
3
|
+
import { ComponentStruct, ComponentParams, Component } from '@actdim/dynstruct/componentModel/contracts';
|
|
4
|
+
import { BaseAppMsgStruct } from '@actdim/dynstruct/appDomain/appContracts';
|
|
5
|
+
export type BreadcrumbItem = {
|
|
6
|
+
label: string;
|
|
7
|
+
href?: string;
|
|
8
|
+
onClick?: () => void;
|
|
9
|
+
};
|
|
10
|
+
type Struct<TMsgStruct extends BaseAppMsgStruct = BaseAppMsgStruct> = ComponentStruct<TMsgStruct, {
|
|
11
|
+
props: {
|
|
12
|
+
items: BreadcrumbItem[];
|
|
13
|
+
separator?: React.ReactNode;
|
|
14
|
+
maxItems?: number;
|
|
15
|
+
sx?: MuiBreadcrumbsProps['sx'];
|
|
16
|
+
};
|
|
17
|
+
}>;
|
|
18
|
+
export declare const useBreadcrumbs: (params: ComponentParams<Struct>) => Component<Struct>;
|
|
19
|
+
export type BreadcrumbsStruct = Struct;
|
|
20
|
+
export declare const Breadcrumbs: React.FC<ComponentParams<Struct<BaseAppMsgStruct>>>;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=Breadcrumbs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Breadcrumbs.d.ts","sourceRoot":"","sources":["../src/Breadcrumbs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAIH,KAAK,gBAAgB,IAAI,mBAAmB,EAC/C,MAAM,eAAe,CAAC;AACvB,OAAO,EACH,KAAK,eAAe,EAEpB,KAAK,eAAe,EACpB,KAAK,SAAS,EAEjB,MAAM,4CAA4C,CAAC;AAEpD,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAEjF,MAAM,MAAM,cAAc,GAAG;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC;AAEF,KAAK,MAAM,CAAC,UAAU,SAAS,gBAAgB,GAAG,gBAAgB,IAAI,eAAe,CACjF,UAAU,EACV;IACI,KAAK,EAAE;QACH,KAAK,EAAE,cAAc,EAAE,CAAC;QACxB,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,EAAE,CAAC,EAAE,mBAAmB,CAAC,IAAI,CAAC,CAAC;KAClC,CAAC;CACL,CACJ,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,QAAQ,eAAe,CAAC,MAAM,CAAC,KAAG,SAAS,CAAC,MAAM,CA4ChF,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC;AAEvC,eAAO,MAAM,WAAW,qDAA0B,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import s from "react";
|
|
2
|
+
import { Breadcrumbs as m, Typography as c, Link as l } from "@mui/material";
|
|
3
|
+
import { toReact as n, useComponent as p } from "@actdim/dynstruct/componentModel/react/react";
|
|
4
|
+
const d = (t) => {
|
|
5
|
+
let a, e;
|
|
6
|
+
return a = p({
|
|
7
|
+
regType: "Breadcrumbs",
|
|
8
|
+
props: {
|
|
9
|
+
items: [],
|
|
10
|
+
separator: void 0,
|
|
11
|
+
maxItems: 8,
|
|
12
|
+
sx: void 0
|
|
13
|
+
},
|
|
14
|
+
view: () => /* @__PURE__ */ s.createElement(
|
|
15
|
+
m,
|
|
16
|
+
{
|
|
17
|
+
separator: e.separator,
|
|
18
|
+
maxItems: e.maxItems,
|
|
19
|
+
"aria-label": "breadcrumb",
|
|
20
|
+
sx: e.sx
|
|
21
|
+
},
|
|
22
|
+
e.items.map(
|
|
23
|
+
(r, o) => o === e.items.length - 1 ? /* @__PURE__ */ s.createElement(c, { key: o, sx: { color: "text.primary" } }, r.label) : /* @__PURE__ */ s.createElement(
|
|
24
|
+
l,
|
|
25
|
+
{
|
|
26
|
+
key: o,
|
|
27
|
+
underline: "hover",
|
|
28
|
+
color: "inherit",
|
|
29
|
+
href: r.href,
|
|
30
|
+
onClick: r.onClick,
|
|
31
|
+
sx: { cursor: r.onClick && !r.href ? "pointer" : void 0 }
|
|
32
|
+
},
|
|
33
|
+
r.label
|
|
34
|
+
)
|
|
35
|
+
)
|
|
36
|
+
)
|
|
37
|
+
}, t), e = a.model, a;
|
|
38
|
+
}, i = n(d);
|
|
39
|
+
i.displayName = "Breadcrumbs";
|
|
40
|
+
export {
|
|
41
|
+
i as Breadcrumbs,
|
|
42
|
+
d as useBreadcrumbs
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=Breadcrumbs.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Breadcrumbs.es.js","sources":["D:/Src/my/actdim/public/dynstruct-mui/src/Breadcrumbs.tsx"],"sourcesContent":null,"names":["useBreadcrumbs","params","c","m","useComponent","React","MuiBreadcrumbs","item","i","Typography","Link","Breadcrumbs","toReact"],"mappings":";;;AAmCO,MAAMA,IAAiB,CAACC,MAAuD;AAClF,MAAIC,GACAC;AAuCJ,SAAAD,IAAIE,EArC8B;AAAA,IAC9B,SAAS;AAAA,IACT,OAAO;AAAA,MACH,OAAO,CAAA;AAAA,MACP,WAAW;AAAA,MACX,UAAU;AAAA,MACV,IAAI;AAAA,IAAA;AAAA,IAER,MAAM,MACF,gBAAAC,EAAA;AAAA,MAACC;AAAAA,MAAA;AAAA,QACG,WAAWH,EAAE;AAAA,QACb,UAAUA,EAAE;AAAA,QACZ,cAAW;AAAA,QACX,IAAIA,EAAE;AAAA,MAAA;AAAA,MAELA,EAAE,MAAM;AAAA,QAAI,CAACI,GAAMC,MAChBA,MAAML,EAAE,MAAM,SAAS,IACnB,gBAAAE,EAAA,cAACI,KAAW,KAAKD,GAAG,IAAI,EAAE,OAAO,iBAAe,GAC3CD,EAAK,KACV,IAEA,gBAAAF,EAAA;AAAA,UAACK;AAAA,UAAA;AAAA,YACG,KAAKF;AAAA,YACL,WAAU;AAAA,YACV,OAAM;AAAA,YACN,MAAMD,EAAK;AAAA,YACX,SAASA,EAAK;AAAA,YACd,IAAI,EAAE,QAAQA,EAAK,WAAW,CAACA,EAAK,OAAO,YAAY,OAAA;AAAA,UAAU;AAAA,UAEhEA,EAAK;AAAA,QAAA;AAAA,MACV;AAAA,IAER;AAAA,EACJ,GAIcN,CAAM,GAC5BE,IAAID,EAAE,OACCA;AACX,GAIaS,IAAcC,EAAQZ,CAAc;AACjDW,EAAY,cAAc;"}
|
package/dist/Button.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ButtonProps as MuiButtonProps } from '@mui/material';
|
|
3
|
+
import { ComponentStruct, ComponentParams, Component } from '@actdim/dynstruct/componentModel/contracts';
|
|
4
|
+
import { BaseAppMsgStruct } from '@actdim/dynstruct/appDomain/appContracts';
|
|
5
|
+
type Struct<TMsgStruct extends BaseAppMsgStruct = BaseAppMsgStruct> = ComponentStruct<TMsgStruct, {
|
|
6
|
+
props: {
|
|
7
|
+
label: string;
|
|
8
|
+
onClick: () => void;
|
|
9
|
+
variant?: MuiButtonProps['variant'];
|
|
10
|
+
color?: MuiButtonProps['color'];
|
|
11
|
+
size?: MuiButtonProps['size'];
|
|
12
|
+
fullWidth?: boolean;
|
|
13
|
+
startIcon?: React.ReactNode;
|
|
14
|
+
endIcon?: React.ReactNode;
|
|
15
|
+
loading?: boolean;
|
|
16
|
+
sx?: MuiButtonProps['sx'];
|
|
17
|
+
};
|
|
18
|
+
}>;
|
|
19
|
+
export declare const useButton: (params: ComponentParams<Struct>) => Component<Struct>;
|
|
20
|
+
export type ButtonStruct = Struct;
|
|
21
|
+
export declare const Button: React.FC<ComponentParams<Struct<BaseAppMsgStruct>>>;
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../src/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAuB,KAAK,WAAW,IAAI,cAAc,EAAE,MAAM,eAAe,CAAC;AACxF,OAAO,EACH,KAAK,eAAe,EAEpB,KAAK,eAAe,EACpB,KAAK,SAAS,EAEjB,MAAM,4CAA4C,CAAC;AAEpD,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAEjF,KAAK,MAAM,CAAC,UAAU,SAAS,gBAAgB,GAAG,gBAAgB,IAAI,eAAe,CACjF,UAAU,EACV;IACI,KAAK,EAAE;QACH,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,IAAI,CAAC;QACpB,OAAO,CAAC,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC;QACpC,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC;QAChC,IAAI,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;QAC9B,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QAC5B,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QAC1B,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,EAAE,CAAC,EAAE,cAAc,CAAC,IAAI,CAAC,CAAC;KAC7B,CAAC;CACL,CACJ,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,QAAQ,eAAe,CAAC,MAAM,CAAC,KAAG,SAAS,CAAC,MAAM,CAuC3E,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC;AAElC,eAAO,MAAM,MAAM,qDAAqB,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import n from "react";
|
|
2
|
+
import { Button as i } from "@mui/material";
|
|
3
|
+
import { toReact as l, useComponent as a } from "@actdim/dynstruct/componentModel/react/react";
|
|
4
|
+
const r = (e) => {
|
|
5
|
+
let t, o;
|
|
6
|
+
return t = a({
|
|
7
|
+
regType: "Button",
|
|
8
|
+
props: {
|
|
9
|
+
label: "",
|
|
10
|
+
onClick: () => {
|
|
11
|
+
},
|
|
12
|
+
variant: "contained",
|
|
13
|
+
color: "primary",
|
|
14
|
+
size: "medium",
|
|
15
|
+
fullWidth: !1,
|
|
16
|
+
startIcon: void 0,
|
|
17
|
+
endIcon: void 0,
|
|
18
|
+
loading: !1,
|
|
19
|
+
sx: void 0
|
|
20
|
+
},
|
|
21
|
+
view: () => /* @__PURE__ */ n.createElement(
|
|
22
|
+
i,
|
|
23
|
+
{
|
|
24
|
+
variant: o.variant,
|
|
25
|
+
color: o.color,
|
|
26
|
+
size: o.size,
|
|
27
|
+
fullWidth: o.fullWidth,
|
|
28
|
+
disabled: o.$.isDisabled,
|
|
29
|
+
loading: o.loading,
|
|
30
|
+
startIcon: o.startIcon,
|
|
31
|
+
endIcon: o.endIcon,
|
|
32
|
+
sx: o.sx,
|
|
33
|
+
onClick: o.onClick
|
|
34
|
+
},
|
|
35
|
+
o.label
|
|
36
|
+
)
|
|
37
|
+
}, e), o = t.model, t;
|
|
38
|
+
}, s = l(r);
|
|
39
|
+
s.displayName = "Button";
|
|
40
|
+
export {
|
|
41
|
+
s as Button,
|
|
42
|
+
r as useButton
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=Button.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.es.js","sources":["D:/Src/my/actdim/public/dynstruct-mui/src/Button.tsx"],"sourcesContent":null,"names":["useButton","params","c","m","useComponent","React","MuiButton","Button","toReact"],"mappings":";;;AA8BO,MAAMA,IAAY,CAACC,MAAuD;AAC7E,MAAIC,GACAC;AAkCJ,SAAAD,IAAIE,EAhC8B;AAAA,IAC9B,SAAS;AAAA,IACT,OAAO;AAAA,MACH,OAAO;AAAA,MACP,SAAS,MAAM;AAAA,MAAC;AAAA,MAChB,SAAS;AAAA,MACT,OAAO;AAAA,MACP,MAAM;AAAA,MACN,WAAW;AAAA,MACX,WAAW;AAAA,MACX,SAAS;AAAA,MACT,SAAS;AAAA,MACT,IAAI;AAAA,IAAA;AAAA,IAER,MAAM,MACF,gBAAAC,EAAA;AAAA,MAACC;AAAAA,MAAA;AAAA,QACG,SAASH,EAAE;AAAA,QACX,OAAOA,EAAE;AAAA,QACT,MAAMA,EAAE;AAAA,QACR,WAAWA,EAAE;AAAA,QACb,UAAUA,EAAE,EAAE;AAAA,QACd,SAASA,EAAE;AAAA,QACX,WAAWA,EAAE;AAAA,QACb,SAASA,EAAE;AAAA,QACX,IAAIA,EAAE;AAAA,QACN,SAASA,EAAE;AAAA,MAAA;AAAA,MAEVA,EAAE;AAAA,IAAA;AAAA,EACP,GAIcF,CAAM,GAC5BE,IAAID,EAAE,OACCA;AACX,GAIaK,IAASC,EAAQR,CAAS;AACvCO,EAAO,cAAc;"}
|
package/dist/Card.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { CardProps as MuiCardProps } from '@mui/material';
|
|
3
|
+
import { ComponentStruct, ComponentParams, Component } from '@actdim/dynstruct/componentModel/contracts';
|
|
4
|
+
import { BaseAppMsgStruct } from '@actdim/dynstruct/appDomain/appContracts';
|
|
5
|
+
type Struct<TMsgStruct extends BaseAppMsgStruct = BaseAppMsgStruct> = ComponentStruct<TMsgStruct, {
|
|
6
|
+
props: {
|
|
7
|
+
content: React.FC;
|
|
8
|
+
title?: React.ReactNode;
|
|
9
|
+
subheader?: React.ReactNode;
|
|
10
|
+
avatar?: React.ReactNode;
|
|
11
|
+
headerAction?: React.FC;
|
|
12
|
+
actions?: React.FC;
|
|
13
|
+
raised?: boolean;
|
|
14
|
+
sx?: MuiCardProps['sx'];
|
|
15
|
+
};
|
|
16
|
+
}>;
|
|
17
|
+
export declare const useCard: (params: ComponentParams<Struct>) => Component<Struct>;
|
|
18
|
+
export type CardStruct = Struct;
|
|
19
|
+
export declare const Card: React.FC<ComponentParams<Struct<BaseAppMsgStruct>>>;
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=Card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../src/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAKH,KAAK,SAAS,IAAI,YAAY,EACjC,MAAM,eAAe,CAAC;AACvB,OAAO,EACH,KAAK,eAAe,EAEpB,KAAK,eAAe,EACpB,KAAK,SAAS,EAEjB,MAAM,4CAA4C,CAAC;AAEpD,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAEjF,KAAK,MAAM,CAAC,UAAU,SAAS,gBAAgB,GAAG,gBAAgB,IAAI,eAAe,CACjF,UAAU,EACV;IACI,KAAK,EAAE;QACH,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC;QAClB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QACxB,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QAC5B,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QACzB,YAAY,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC;QACxB,OAAO,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC;QACnB,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,EAAE,CAAC,EAAE,YAAY,CAAC,IAAI,CAAC,CAAC;KAC3B,CAAC;CACL,CACJ,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,QAAQ,eAAe,CAAC,MAAM,CAAC,KAAG,SAAS,CAAC,MAAM,CAyCzE,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC;AAEhC,eAAO,MAAM,IAAI,qDAAmB,CAAC"}
|