@actdim/dynstruct-mui 1.5.5 → 1.5.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.
Files changed (75) hide show
  1. package/dist/Accordion.d.ts +19 -0
  2. package/dist/Accordion.d.ts.map +1 -0
  3. package/dist/Alert.d.ts +18 -0
  4. package/dist/Alert.d.ts.map +1 -0
  5. package/dist/Autocomplete.d.ts +26 -0
  6. package/dist/Autocomplete.d.ts.map +1 -0
  7. package/dist/Avatar.d.ts +18 -0
  8. package/dist/Avatar.d.ts.map +1 -0
  9. package/dist/Badge.d.ts +21 -0
  10. package/dist/Badge.d.ts.map +1 -0
  11. package/dist/Breadcrumbs.d.ts +22 -0
  12. package/dist/Breadcrumbs.d.ts.map +1 -0
  13. package/dist/Button.d.ts +23 -0
  14. package/dist/Button.d.ts.map +1 -0
  15. package/dist/Card.d.ts +21 -0
  16. package/dist/Card.d.ts.map +1 -0
  17. package/dist/Checkbox.d.ts +22 -0
  18. package/dist/Checkbox.d.ts.map +1 -0
  19. package/dist/Chip.d.ts +21 -0
  20. package/dist/Chip.d.ts.map +1 -0
  21. package/dist/CircularProgress.d.ts +19 -0
  22. package/dist/CircularProgress.d.ts.map +1 -0
  23. package/dist/Dialog.d.ts +22 -0
  24. package/dist/Dialog.d.ts.map +1 -0
  25. package/dist/Drawer.d.ts +19 -0
  26. package/dist/Drawer.d.ts.map +1 -0
  27. package/dist/Fab.d.ts +21 -0
  28. package/dist/Fab.d.ts.map +1 -0
  29. package/dist/IconButton.d.ts +21 -0
  30. package/dist/IconButton.d.ts.map +1 -0
  31. package/dist/LinearProgress.d.ts +18 -0
  32. package/dist/LinearProgress.d.ts.map +1 -0
  33. package/dist/List.d.ts +25 -0
  34. package/dist/List.d.ts.map +1 -0
  35. package/dist/Menu.d.ts +24 -0
  36. package/dist/Menu.d.ts.map +1 -0
  37. package/dist/Pagination.d.ts +21 -0
  38. package/dist/Pagination.d.ts.map +1 -0
  39. package/dist/RadioGroup.d.ts +27 -0
  40. package/dist/RadioGroup.d.ts.map +1 -0
  41. package/dist/Rating.d.ts +20 -0
  42. package/dist/Rating.d.ts.map +1 -0
  43. package/dist/Select.d.ts +28 -0
  44. package/dist/Select.d.ts.map +1 -0
  45. package/dist/Skeleton.d.ts +18 -0
  46. package/dist/Skeleton.d.ts.map +1 -0
  47. package/dist/Slider.d.ts +24 -0
  48. package/dist/Slider.d.ts.map +1 -0
  49. package/dist/Snackbar.d.ts +20 -0
  50. package/dist/Snackbar.d.ts.map +1 -0
  51. package/dist/SpeedDial.d.ts +24 -0
  52. package/dist/SpeedDial.d.ts.map +1 -0
  53. package/dist/Stepper.d.ts +23 -0
  54. package/dist/Stepper.d.ts.map +1 -0
  55. package/dist/Switch.d.ts +21 -0
  56. package/dist/Switch.d.ts.map +1 -0
  57. package/dist/Table.d.ts +24 -0
  58. package/dist/Table.d.ts.map +1 -0
  59. package/dist/Tabs.d.ts +25 -0
  60. package/dist/Tabs.d.ts.map +1 -0
  61. package/dist/TextField.d.ts +27 -0
  62. package/dist/TextField.d.ts.map +1 -0
  63. package/dist/Toast.d.ts +36 -0
  64. package/dist/Toast.d.ts.map +1 -0
  65. package/dist/Toast.es.js +135 -0
  66. package/dist/Toast.es.js.map +1 -0
  67. package/dist/ToggleButtonGroup.d.ts +28 -0
  68. package/dist/ToggleButtonGroup.d.ts.map +1 -0
  69. package/dist/Tooltip.d.ts +17 -0
  70. package/dist/Tooltip.d.ts.map +1 -0
  71. package/dist/index.d.ts +35 -0
  72. package/dist/index.d.ts.map +1 -0
  73. package/dist/index.es.js +3 -0
  74. package/dist/index.es.js.map +1 -1
  75. package/package.json +4 -4
@@ -0,0 +1,18 @@
1
+ import { default as React } from 'react';
2
+ import { SkeletonProps as MuiSkeletonProps } 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
+ variant?: MuiSkeletonProps['variant'];
8
+ width?: number | string;
9
+ height?: number | string;
10
+ animation?: MuiSkeletonProps['animation'];
11
+ sx?: MuiSkeletonProps['sx'];
12
+ };
13
+ }>;
14
+ export declare const useSkeleton: (params: ComponentParams<Struct>) => Component<Struct>;
15
+ export type SkeletonStruct = Struct;
16
+ export declare const Skeleton: React.FC<ComponentParams<Struct<BaseAppMsgStruct>>>;
17
+ export {};
18
+ //# sourceMappingURL=Skeleton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Skeleton.d.ts","sourceRoot":"","sources":["../src/Skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAA2B,KAAK,aAAa,IAAI,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAChG,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,CAAC,EAAE,gBAAgB,CAAC,SAAS,CAAC,CAAC;QACtC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QACxB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QACzB,SAAS,CAAC,EAAE,gBAAgB,CAAC,WAAW,CAAC,CAAC;QAC1C,EAAE,CAAC,EAAE,gBAAgB,CAAC,IAAI,CAAC,CAAC;KAC/B,CAAC;CACL,CACJ,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,QAAQ,eAAe,CAAC,MAAM,CAAC,KAAG,SAAS,CAAC,MAAM,CA2B7E,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC;AAEpC,eAAO,MAAM,QAAQ,qDAAuB,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { default as React } from 'react';
2
+ import { SliderProps as MuiSliderProps } 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: number;
8
+ onChange: (value: number) => void;
9
+ min?: number;
10
+ max?: number;
11
+ step?: number;
12
+ marks?: boolean;
13
+ color?: MuiSliderProps['color'];
14
+ size?: MuiSliderProps['size'];
15
+ valueLabelDisplay?: MuiSliderProps['valueLabelDisplay'];
16
+ track?: MuiSliderProps['track'];
17
+ sx?: MuiSliderProps['sx'];
18
+ };
19
+ }>;
20
+ export declare const useSlider: (params: ComponentParams<Struct>) => Component<Struct>;
21
+ export type SliderStruct = Struct;
22
+ export declare const Slider: React.FC<ComponentParams<Struct<BaseAppMsgStruct>>>;
23
+ export {};
24
+ //# sourceMappingURL=Slider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../src/Slider.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,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;QAClC,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC;QAChC,IAAI,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;QAC9B,iBAAiB,CAAC,EAAE,cAAc,CAAC,mBAAmB,CAAC,CAAC;QACxD,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC;QAChC,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,CAwC3E,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC;AAElC,eAAO,MAAM,MAAM,qDAAqB,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { default as React } from 'react';
2
+ import { SnackbarProps as MuiSnackbarProps } 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
+ open: boolean;
8
+ onClose: () => void;
9
+ message: string;
10
+ autoHideDuration?: number | null;
11
+ anchorOrigin?: MuiSnackbarProps['anchorOrigin'];
12
+ action?: React.ReactNode;
13
+ sx?: MuiSnackbarProps['sx'];
14
+ };
15
+ }>;
16
+ export declare const useSnackbar: (params: ComponentParams<Struct>) => Component<Struct>;
17
+ export type SnackbarStruct = Struct;
18
+ export declare const Snackbar: React.FC<ComponentParams<Struct<BaseAppMsgStruct>>>;
19
+ export {};
20
+ //# sourceMappingURL=Snackbar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Snackbar.d.ts","sourceRoot":"","sources":["../src/Snackbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAEH,KAAK,aAAa,IAAI,gBAAgB,EACzC,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,IAAI,EAAE,OAAO,CAAC;QACd,OAAO,EAAE,MAAM,IAAI,CAAC;QACpB,OAAO,EAAE,MAAM,CAAC;QAChB,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QACjC,YAAY,CAAC,EAAE,gBAAgB,CAAC,cAAc,CAAC,CAAC;QAChD,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QACzB,EAAE,CAAC,EAAE,gBAAgB,CAAC,IAAI,CAAC,CAAC;KAC/B,CAAC;CACL,CACJ,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,QAAQ,eAAe,CAAC,MAAM,CAAC,KAAG,SAAS,CAAC,MAAM,CA+B7E,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC;AAEpC,eAAO,MAAM,QAAQ,qDAAuB,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { default as React } from 'react';
2
+ import { SpeedDialProps as MuiSpeedDialProps } from '@mui/material';
3
+ import { ComponentStruct, ComponentParams, Component } from '@actdim/dynstruct/componentModel/contracts';
4
+ import { BaseAppMsgStruct } from '@actdim/dynstruct/appDomain/appContracts';
5
+ export type SpeedDialActionDef = {
6
+ name: string;
7
+ icon: React.FC;
8
+ onClick?: () => void;
9
+ };
10
+ type Struct<TMsgStruct extends BaseAppMsgStruct = BaseAppMsgStruct> = ComponentStruct<TMsgStruct, {
11
+ props: {
12
+ ariaLabel: string;
13
+ actions: SpeedDialActionDef[];
14
+ icon?: React.FC;
15
+ direction?: MuiSpeedDialProps['direction'];
16
+ hidden?: boolean;
17
+ sx?: MuiSpeedDialProps['sx'];
18
+ };
19
+ }>;
20
+ export declare const useSpeedDial: (params: ComponentParams<Struct>) => Component<Struct>;
21
+ export type SpeedDialStruct = Struct;
22
+ export declare const SpeedDial: React.FC<ComponentParams<Struct<BaseAppMsgStruct>>>;
23
+ export {};
24
+ //# sourceMappingURL=SpeedDial.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SpeedDial.d.ts","sourceRoot":"","sources":["../src/SpeedDial.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,MAAM,MAAM,kBAAkB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC;IACf,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,SAAS,EAAE,MAAM,CAAC;QAClB,OAAO,EAAE,kBAAkB,EAAE,CAAC;QAC9B,IAAI,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC;QAChB,SAAS,CAAC,EAAE,iBAAiB,CAAC,WAAW,CAAC,CAAC;QAC3C,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,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,CAqC9E,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC;AAErC,eAAO,MAAM,SAAS,qDAAwB,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { default as React } from 'react';
2
+ import { StepperProps as MuiStepperProps } from '@mui/material';
3
+ import { ComponentStruct, ComponentParams, Component } from '@actdim/dynstruct/componentModel/contracts';
4
+ import { BaseAppMsgStruct } from '@actdim/dynstruct/appDomain/appContracts';
5
+ export type StepDef = {
6
+ label: string;
7
+ optional?: string;
8
+ };
9
+ type Struct<TMsgStruct extends BaseAppMsgStruct = BaseAppMsgStruct> = ComponentStruct<TMsgStruct, {
10
+ props: {
11
+ activeStep: number;
12
+ steps: StepDef[];
13
+ orientation?: MuiStepperProps['orientation'];
14
+ alternativeLabel?: boolean;
15
+ nonLinear?: boolean;
16
+ sx?: MuiStepperProps['sx'];
17
+ };
18
+ }>;
19
+ export declare const useStepper: (params: ComponentParams<Struct>) => Component<Struct>;
20
+ export type StepperStruct = Struct;
21
+ export declare const Stepper: React.FC<ComponentParams<Struct<BaseAppMsgStruct>>>;
22
+ export {};
23
+ //# sourceMappingURL=Stepper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Stepper.d.ts","sourceRoot":"","sources":["../src/Stepper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAKH,KAAK,YAAY,IAAI,eAAe,EACvC,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,OAAO,GAAG;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,KAAK,MAAM,CAAC,UAAU,SAAS,gBAAgB,GAAG,gBAAgB,IAAI,eAAe,CACjF,UAAU,EACV;IACI,KAAK,EAAE;QACH,UAAU,EAAE,MAAM,CAAC;QACnB,KAAK,EAAE,OAAO,EAAE,CAAC;QACjB,WAAW,CAAC,EAAE,eAAe,CAAC,aAAa,CAAC,CAAC;QAC7C,gBAAgB,CAAC,EAAE,OAAO,CAAC;QAC3B,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,EAAE,CAAC,EAAE,eAAe,CAAC,IAAI,CAAC,CAAC;KAC9B,CAAC;CACL,CACJ,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,QAAQ,eAAe,CAAC,MAAM,CAAC,KAAG,SAAS,CAAC,MAAM,CA0C5E,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC;AAEnC,eAAO,MAAM,OAAO,qDAAsB,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { default as React } from 'react';
2
+ import { SwitchProps as MuiSwitchProps, FormControlProps as MuiFormControlProps } 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
+ checked: boolean;
8
+ onChange: (checked: boolean) => void;
9
+ label?: string;
10
+ helperText?: string;
11
+ error?: boolean;
12
+ color?: MuiSwitchProps['color'];
13
+ size?: MuiSwitchProps['size'];
14
+ sx?: MuiFormControlProps['sx'];
15
+ };
16
+ }>;
17
+ export declare const useSwitch: (params: ComponentParams<Struct>) => Component<Struct>;
18
+ export type SwitchStruct = Struct;
19
+ export declare const Switch: React.FC<ComponentParams<Struct<BaseAppMsgStruct>>>;
20
+ export {};
21
+ //# sourceMappingURL=Switch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../src/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAKH,KAAK,WAAW,IAAI,cAAc,EAClC,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,KAAK,MAAM,CAAC,UAAU,SAAS,gBAAgB,GAAG,gBAAgB,IAAI,eAAe,CACjF,UAAU,EACV;IACI,KAAK,EAAE;QACH,OAAO,EAAE,OAAO,CAAC;QACjB,QAAQ,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;QACrC,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC;QAChC,IAAI,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;QAC9B,EAAE,CAAC,EAAE,mBAAmB,CAAC,IAAI,CAAC,CAAC;KAClC,CAAC;CACL,CACJ,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,QAAQ,eAAe,CAAC,MAAM,CAAC,KAAG,SAAS,CAAC,MAAM,CA6C3E,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC;AAElC,eAAO,MAAM,MAAM,qDAAqB,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { default as React } from 'react';
2
+ import { TableProps as MuiTableProps, TableContainerProps as MuiTableContainerProps, TableCellProps as MuiTableCellProps } from '@mui/material';
3
+ import { ComponentStruct, ComponentParams, Component } from '@actdim/dynstruct/componentModel/contracts';
4
+ import { BaseAppMsgStruct } from '@actdim/dynstruct/appDomain/appContracts';
5
+ export type TableColumn = {
6
+ id: string;
7
+ label: string;
8
+ align?: MuiTableCellProps['align'];
9
+ minWidth?: number;
10
+ };
11
+ type Struct<TMsgStruct extends BaseAppMsgStruct = BaseAppMsgStruct> = ComponentStruct<TMsgStruct, {
12
+ props: {
13
+ columns: TableColumn[];
14
+ rows: Record<string, React.ReactNode>[];
15
+ stickyHeader?: boolean;
16
+ size?: MuiTableProps['size'];
17
+ sx?: MuiTableContainerProps['sx'];
18
+ };
19
+ }>;
20
+ export declare const useTable: (params: ComponentParams<Struct>) => Component<Struct>;
21
+ export type TableStruct = Struct;
22
+ export declare const Table: React.FC<ComponentParams<Struct<BaseAppMsgStruct>>>;
23
+ export {};
24
+ //# sourceMappingURL=Table.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../src/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAQH,KAAK,UAAU,IAAI,aAAa,EAChC,KAAK,mBAAmB,IAAI,sBAAsB,EAClD,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,MAAM,MAAM,WAAW,GAAG;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,iBAAiB,CAAC,OAAO,CAAC,CAAC;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,KAAK,MAAM,CAAC,UAAU,SAAS,gBAAgB,GAAG,gBAAgB,IAAI,eAAe,CACjF,UAAU,EACV;IACI,KAAK,EAAE;QACH,OAAO,EAAE,WAAW,EAAE,CAAC;QACvB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC,EAAE,CAAC;QACxC,YAAY,CAAC,EAAE,OAAO,CAAC;QACvB,IAAI,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;QAC7B,EAAE,CAAC,EAAE,sBAAsB,CAAC,IAAI,CAAC,CAAC;KACrC,CAAC;CACL,CACJ,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,QAAQ,eAAe,CAAC,MAAM,CAAC,KAAG,SAAS,CAAC,MAAM,CAgD1E,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC;AAEjC,eAAO,MAAM,KAAK,qDAAoB,CAAC"}
package/dist/Tabs.d.ts ADDED
@@ -0,0 +1,25 @@
1
+ import { default as React } from 'react';
2
+ import { TabsProps as MuiTabsProps } from '@mui/material';
3
+ import { ComponentStruct, ComponentParams, Component } from '@actdim/dynstruct/componentModel/contracts';
4
+ import { BaseAppMsgStruct } from '@actdim/dynstruct/appDomain/appContracts';
5
+ export type TabItem = {
6
+ value: string;
7
+ label: string;
8
+ content?: React.FC;
9
+ disabled?: boolean;
10
+ };
11
+ type Struct<TMsgStruct extends BaseAppMsgStruct = BaseAppMsgStruct> = ComponentStruct<TMsgStruct, {
12
+ props: {
13
+ value: string;
14
+ onChange: (value: string) => void;
15
+ tabs: TabItem[];
16
+ orientation?: MuiTabsProps['orientation'];
17
+ variant?: MuiTabsProps['variant'];
18
+ sx?: MuiTabsProps['sx'];
19
+ };
20
+ }>;
21
+ export declare const useTabs: (params: ComponentParams<Struct>) => Component<Struct>;
22
+ export type TabsStruct = Struct;
23
+ export declare const Tabs: React.FC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27 @@
1
+ import { default as React } from 'react';
2
+ import { 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;
8
+ onChange: (value: string) => void;
9
+ label?: string;
10
+ placeholder?: string;
11
+ helperText?: string;
12
+ error?: boolean;
13
+ type?: string;
14
+ multiline?: boolean;
15
+ rows?: number;
16
+ fullWidth?: boolean;
17
+ variant?: MuiTextFieldProps['variant'];
18
+ size?: MuiTextFieldProps['size'];
19
+ color?: MuiTextFieldProps['color'];
20
+ sx?: MuiTextFieldProps['sx'];
21
+ };
22
+ }>;
23
+ export declare const useTextField: (params: ComponentParams<Struct>) => Component<Struct>;
24
+ export type TextFieldStruct = Struct;
25
+ export declare const TextField: React.FC<ComponentParams<Struct<BaseAppMsgStruct>>>;
26
+ export {};
27
+ //# sourceMappingURL=TextField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../src/TextField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAA6B,KAAK,cAAc,IAAI,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACpG,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,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;QAClC,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,OAAO,CAAC,EAAE,iBAAiB,CAAC,SAAS,CAAC,CAAC;QACvC,IAAI,CAAC,EAAE,iBAAiB,CAAC,MAAM,CAAC,CAAC;QACjC,KAAK,CAAC,EAAE,iBAAiB,CAAC,OAAO,CAAC,CAAC;QACnC,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,CA+C9E,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC;AAErC,eAAO,MAAM,SAAS,qDAAwB,CAAC"}
@@ -0,0 +1,36 @@
1
+ import { default as React } from 'react';
2
+ import { SnackbarProps as MuiSnackbarProps, 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
+ export type ToastItem = {
6
+ id: string;
7
+ message: string;
8
+ title?: string;
9
+ severity?: MuiAlertProps['severity'];
10
+ variant?: MuiAlertProps['variant'];
11
+ autoHideDuration?: number | null;
12
+ action?: React.ReactNode;
13
+ alertSx?: MuiAlertProps['sx'];
14
+ };
15
+ type Struct<TMsgStruct extends BaseAppMsgStruct = BaseAppMsgStruct> = ComponentStruct<TMsgStruct, {
16
+ props: {
17
+ items?: ToastItem[];
18
+ onDismiss?: (id: string) => void;
19
+ open?: boolean;
20
+ onClose?: () => void;
21
+ message?: string;
22
+ title?: string;
23
+ severity?: MuiAlertProps['severity'];
24
+ variant?: MuiAlertProps['variant'];
25
+ autoHideDuration?: number | null;
26
+ anchorOrigin?: MuiSnackbarProps['anchorOrigin'];
27
+ action?: React.ReactNode;
28
+ sx?: MuiSnackbarProps['sx'];
29
+ alertSx?: MuiAlertProps['sx'];
30
+ };
31
+ }>;
32
+ export declare const useToast: (params: ComponentParams<Struct>) => Component<Struct>;
33
+ export type ToastStruct = Struct;
34
+ export declare const Toast: React.FC<ComponentParams<Struct<BaseAppMsgStruct>>>;
35
+ export {};
36
+ //# sourceMappingURL=Toast.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../src/Toast.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAKH,KAAK,aAAa,IAAI,gBAAgB,EACtC,KAAK,UAAU,IAAI,aAAa,EACnC,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,SAAS,GAAG;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IACrC,OAAO,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;IACnC,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,OAAO,CAAC,EAAE,aAAa,CAAC,IAAI,CAAC,CAAC;CACjC,CAAC;AAEF,KAAK,MAAM,CAAC,UAAU,SAAS,gBAAgB,GAAG,gBAAgB,IAAI,eAAe,CACjF,UAAU,EACV;IACI,KAAK,EAAE;QAEH,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC;QACpB,SAAS,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;QAGjC,IAAI,CAAC,EAAE,OAAO,CAAC;QACf,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;QACrB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,QAAQ,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;QACrC,OAAO,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;QACnC,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QACjC,YAAY,CAAC,EAAE,gBAAgB,CAAC,cAAc,CAAC,CAAC;QAChD,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QACzB,EAAE,CAAC,EAAE,gBAAgB,CAAC,IAAI,CAAC,CAAC;QAC5B,OAAO,CAAC,EAAE,aAAa,CAAC,IAAI,CAAC,CAAC;KACjC,CAAC;CACL,CACJ,CAAC;AA8CF,eAAO,MAAM,QAAQ,GAAI,QAAQ,eAAe,CAAC,MAAM,CAAC,KAAG,SAAS,CAAC,MAAM,CA8F1E,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC;AAEjC,eAAO,MAAM,KAAK,qDAAoB,CAAC"}
@@ -0,0 +1,135 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+ import React from "react";
4
+ import { Snackbar, Alert, AlertTitle, Collapse } from "@mui/material";
5
+ import { toReact, useComponent } from "@actdim/dynstruct/componentModel/react/hooks";
6
+ const ToastItemView = /* @__PURE__ */ __name(({ item, onDismiss }) => {
7
+ React.useEffect(() => {
8
+ const duration = item.autoHideDuration ?? 5e3;
9
+ if (duration > 0) {
10
+ const timer = setTimeout(() => {
11
+ onDismiss(item.id);
12
+ }, duration);
13
+ return () => {
14
+ clearTimeout(timer);
15
+ };
16
+ }
17
+ return void 0;
18
+ }, [item.id, item.autoHideDuration, onDismiss]);
19
+ return /* @__PURE__ */ React.createElement(Collapse, { in: true }, /* @__PURE__ */ React.createElement("div", { style: { pointerEvents: "auto" } }, /* @__PURE__ */ React.createElement(
20
+ Alert,
21
+ {
22
+ onClose: /* @__PURE__ */ __name(() => {
23
+ onDismiss(item.id);
24
+ }, "onClose"),
25
+ severity: item.severity || "info",
26
+ variant: item.variant || "filled",
27
+ sx: {
28
+ width: "100%",
29
+ minWidth: "300px",
30
+ boxShadow: 4,
31
+ ...item.alertSx
32
+ },
33
+ action: item.action
34
+ },
35
+ item.title ? /* @__PURE__ */ React.createElement(AlertTitle, null, item.title) : null,
36
+ item.message
37
+ )));
38
+ }, "ToastItemView");
39
+ const useToast = /* @__PURE__ */ __name((params) => {
40
+ let c;
41
+ let m;
42
+ const def = {
43
+ regType: "Toast",
44
+ props: {
45
+ items: void 0,
46
+ onDismiss: void 0,
47
+ open: false,
48
+ onClose: /* @__PURE__ */ __name(() => {
49
+ }, "onClose"),
50
+ message: "",
51
+ title: void 0,
52
+ severity: "info",
53
+ variant: "filled",
54
+ autoHideDuration: 5e3,
55
+ anchorOrigin: { vertical: "bottom", horizontal: "right" },
56
+ action: void 0,
57
+ sx: void 0,
58
+ alertSx: void 0
59
+ },
60
+ view: /* @__PURE__ */ __name(() => {
61
+ if (m.items && m.items.length > 0) {
62
+ const vertical = m.anchorOrigin?.vertical || "bottom";
63
+ const horizontal = m.anchorOrigin?.horizontal || "right";
64
+ const positionStyle = {
65
+ position: "fixed",
66
+ zIndex: 2e3,
67
+ display: "flex",
68
+ flexDirection: vertical === "top" ? "column" : "column-reverse",
69
+ gap: 8,
70
+ maxWidth: "420px",
71
+ width: "calc(100% - 32px)",
72
+ pointerEvents: "none",
73
+ top: vertical === "top" ? 16 : void 0,
74
+ bottom: vertical === "bottom" ? 16 : void 0,
75
+ left: horizontal === "left" ? 16 : horizontal === "center" ? "50%" : void 0,
76
+ right: horizontal === "right" ? 16 : void 0,
77
+ transform: horizontal === "center" ? "translateX(-50%)" : void 0
78
+ };
79
+ return /* @__PURE__ */ React.createElement("div", { style: positionStyle }, m.items.map((item) => {
80
+ return /* @__PURE__ */ React.createElement(
81
+ ToastItemView,
82
+ {
83
+ key: item.id,
84
+ item,
85
+ onDismiss: /* @__PURE__ */ __name((id) => {
86
+ if (m.onDismiss) {
87
+ m.onDismiss(id);
88
+ }
89
+ }, "onDismiss")
90
+ }
91
+ );
92
+ }));
93
+ }
94
+ return /* @__PURE__ */ React.createElement(
95
+ Snackbar,
96
+ {
97
+ open: m.open,
98
+ onClose: /* @__PURE__ */ __name((_, reason) => {
99
+ if (reason === "clickaway") {
100
+ return;
101
+ }
102
+ if (m.onClose) {
103
+ m.onClose();
104
+ }
105
+ }, "onClose"),
106
+ autoHideDuration: m.autoHideDuration,
107
+ anchorOrigin: m.anchorOrigin,
108
+ action: m.action,
109
+ sx: m.sx
110
+ },
111
+ /* @__PURE__ */ React.createElement(
112
+ Alert,
113
+ {
114
+ onClose: m.onClose,
115
+ severity: m.severity,
116
+ variant: m.variant,
117
+ sx: { width: "100%", minWidth: "280px", ...m.alertSx }
118
+ },
119
+ m.title ? /* @__PURE__ */ React.createElement(AlertTitle, null, m.title) : null,
120
+ m.message
121
+ )
122
+ );
123
+ }, "view")
124
+ };
125
+ c = useComponent(def, params);
126
+ m = c.model;
127
+ return c;
128
+ }, "useToast");
129
+ const Toast = toReact(useToast);
130
+ Toast.displayName = "Toast";
131
+ export {
132
+ Toast,
133
+ useToast
134
+ };
135
+ //# sourceMappingURL=Toast.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Toast.es.js","sources":["../src/Toast.tsx"],"sourcesContent":["import React from 'react';\nimport {\n Snackbar as MuiSnackbar,\n Alert as MuiAlert,\n AlertTitle as MuiAlertTitle,\n Collapse,\n type SnackbarProps as MuiSnackbarProps,\n type AlertProps as MuiAlertProps,\n} from '@mui/material';\nimport {\n type ComponentStruct,\n type ComponentDef,\n type ComponentParams,\n type Component,\n type ComponentModel,\n} from '@actdim/dynstruct/componentModel/contracts';\nimport { useComponent, toReact } from '@actdim/dynstruct/componentModel/react/hooks';\nimport { type BaseAppMsgStruct } from '@actdim/dynstruct/appDomain/appContracts';\n\nexport type ToastItem = {\n id: string;\n message: string;\n title?: string;\n severity?: MuiAlertProps['severity'];\n variant?: MuiAlertProps['variant'];\n autoHideDuration?: number | null;\n action?: React.ReactNode;\n alertSx?: MuiAlertProps['sx'];\n};\n\ntype Struct<TMsgStruct extends BaseAppMsgStruct = BaseAppMsgStruct> = ComponentStruct<\n TMsgStruct,\n {\n props: {\n // Stack mode\n items?: ToastItem[];\n onDismiss?: (id: string) => void;\n\n // Single toast mode\n open?: boolean;\n onClose?: () => void;\n message?: string;\n title?: string;\n severity?: MuiAlertProps['severity'];\n variant?: MuiAlertProps['variant'];\n autoHideDuration?: number | null;\n anchorOrigin?: MuiSnackbarProps['anchorOrigin'];\n action?: React.ReactNode;\n sx?: MuiSnackbarProps['sx'];\n alertSx?: MuiAlertProps['sx'];\n };\n }\n>;\n\ntype ToastItemProps = {\n item: ToastItem;\n onDismiss: (id: string) => void;\n};\n\nconst ToastItemView: React.FC<ToastItemProps> = ({ item, onDismiss }) => {\n React.useEffect(() => {\n const duration = item.autoHideDuration ?? 5000;\n if (duration > 0) {\n const timer = setTimeout(() => {\n onDismiss(item.id);\n }, duration);\n return () => {\n clearTimeout(timer);\n };\n }\n return undefined;\n }, [item.id, item.autoHideDuration, onDismiss]);\n\n return (\n <Collapse in={true}>\n <div style={{ pointerEvents: 'auto' }}>\n <MuiAlert\n onClose={() => {\n onDismiss(item.id);\n }}\n severity={item.severity || 'info'}\n variant={item.variant || 'filled'}\n sx={{\n width: '100%',\n minWidth: '300px',\n boxShadow: 4,\n ...item.alertSx,\n }}\n action={item.action}\n >\n {item.title ? <MuiAlertTitle>{item.title}</MuiAlertTitle> : null}\n {item.message}\n </MuiAlert>\n </div>\n </Collapse>\n );\n};\n\nexport const useToast = (params: ComponentParams<Struct>): Component<Struct> => {\n let c: Component<Struct>;\n let m: ComponentModel<Struct>;\n\n const def: ComponentDef<Struct> = {\n regType: 'Toast',\n props: {\n items: undefined,\n onDismiss: undefined,\n open: false,\n onClose: () => {},\n message: '',\n title: undefined,\n severity: 'info',\n variant: 'filled',\n autoHideDuration: 5000,\n anchorOrigin: { vertical: 'bottom', horizontal: 'right' },\n action: undefined,\n sx: undefined,\n alertSx: undefined,\n },\n view: () => {\n if (m.items && m.items.length > 0) {\n const vertical = m.anchorOrigin?.vertical || 'bottom';\n const horizontal = m.anchorOrigin?.horizontal || 'right';\n\n const positionStyle: React.CSSProperties = {\n position: 'fixed',\n zIndex: 2000,\n display: 'flex',\n flexDirection: vertical === 'top' ? 'column' : 'column-reverse',\n gap: 8,\n maxWidth: '420px',\n width: 'calc(100% - 32px)',\n pointerEvents: 'none',\n top: vertical === 'top' ? 16 : undefined,\n bottom: vertical === 'bottom' ? 16 : undefined,\n left: horizontal === 'left' ? 16 : horizontal === 'center' ? '50%' : undefined,\n right: horizontal === 'right' ? 16 : undefined,\n transform: horizontal === 'center' ? 'translateX(-50%)' : undefined,\n };\n\n return (\n <div style={positionStyle}>\n {m.items.map((item) => {\n return (\n <ToastItemView\n key={item.id}\n item={item}\n onDismiss={(id) => {\n if (m.onDismiss) {\n m.onDismiss(id);\n }\n }}\n />\n );\n })}\n </div>\n );\n }\n\n return (\n <MuiSnackbar\n open={m.open}\n onClose={(_, reason) => {\n if (reason === 'clickaway') {\n return;\n }\n if (m.onClose) {\n m.onClose();\n }\n }}\n autoHideDuration={m.autoHideDuration}\n anchorOrigin={m.anchorOrigin}\n action={m.action}\n sx={m.sx}\n >\n <MuiAlert\n onClose={m.onClose}\n severity={m.severity}\n variant={m.variant}\n sx={{ width: '100%', minWidth: '280px', ...m.alertSx }}\n >\n {m.title ? <MuiAlertTitle>{m.title}</MuiAlertTitle> : null}\n {m.message}\n </MuiAlert>\n </MuiSnackbar>\n );\n },\n };\n\n c = useComponent(def, params);\n m = c.model;\n return c;\n};\n\nexport type ToastStruct = Struct;\n\nexport const Toast = toReact(useToast);\nToast.displayName = 'Toast';\r\n"],"names":["MuiAlert","MuiAlertTitle","MuiSnackbar"],"mappings":";;;;;AA2DA,MAAM,gBAA0C,wBAAC,EAAE,MAAM,gBAAgB;AACrE,QAAM,UAAU,MAAM;AAClB,UAAM,WAAW,KAAK,oBAAoB;AAC1C,QAAI,WAAW,GAAG;AACd,YAAM,QAAQ,WAAW,MAAM;AAC3B,kBAAU,KAAK,EAAE;AAAA,MACrB,GAAG,QAAQ;AACX,aAAO,MAAM;AACT,qBAAa,KAAK;AAAA,MACtB;AAAA,IACJ;AACA,WAAO;AAAA,EACX,GAAG,CAAC,KAAK,IAAI,KAAK,kBAAkB,SAAS,CAAC;AAE9C,SACI,sBAAA,cAAC,UAAA,EAAS,IAAI,KAAA,GACV,sBAAA,cAAC,SAAI,OAAO,EAAE,eAAe,OAAA,EAAO,GAChC,sBAAA;AAAA,IAACA;AAAAA,IAAA;AAAA,MACG,SAAS,6BAAM;AACX,kBAAU,KAAK,EAAE;AAAA,MACrB,GAFS;AAAA,MAGT,UAAU,KAAK,YAAY;AAAA,MAC3B,SAAS,KAAK,WAAW;AAAA,MACzB,IAAI;AAAA,QACA,OAAO;AAAA,QACP,UAAU;AAAA,QACV,WAAW;AAAA,QACX,GAAG,KAAK;AAAA,MAAA;AAAA,MAEZ,QAAQ,KAAK;AAAA,IAAA;AAAA,IAEZ,KAAK,QAAQ,sBAAA,cAACC,YAAA,MAAe,KAAK,KAAM,IAAmB;AAAA,IAC3D,KAAK;AAAA,EAAA,CAEd,CACJ;AAER,GArCgD;AAuCzC,MAAM,WAAW,wBAAC,WAAuD;AAC5E,MAAI;AACJ,MAAI;AAEJ,QAAM,MAA4B;AAAA,IAC9B,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,UACG,MAAM,EAAE;AAAA,UACR,SAAS,wBAAC,GAAG,WAAW;AACpB,gBAAI,WAAW,aAAa;AACxB;AAAA,YACJ;AACA,gBAAI,EAAE,SAAS;AACX,gBAAE,QAAA;AAAA,YACN;AAAA,UACJ,GAPS;AAAA,UAQT,kBAAkB,EAAE;AAAA,UACpB,cAAc,EAAE;AAAA,UAChB,QAAQ,EAAE;AAAA,UACV,IAAI,EAAE;AAAA,QAAA;AAAA,QAEN,sBAAA;AAAA,UAACF;AAAAA,UAAA;AAAA,YACG,SAAS,EAAE;AAAA,YACX,UAAU,EAAE;AAAA,YACZ,SAAS,EAAE;AAAA,YACX,IAAI,EAAE,OAAO,QAAQ,UAAU,SAAS,GAAG,EAAE,QAAA;AAAA,UAAQ;AAAA,UAEpD,EAAE,QAAQ,sBAAA,cAACC,YAAA,MAAe,EAAE,KAAM,IAAmB;AAAA,UACrD,EAAE;AAAA,QAAA;AAAA,MACP;AAAA,IAGZ,GAnEM;AAAA,EAmEN;AAGJ,MAAI,aAAa,KAAK,MAAM;AAC5B,MAAI,EAAE;AACN,SAAO;AACX,GA9FwB;AAkGjB,MAAM,QAAQ,QAAQ,QAAQ;AACrC,MAAM,cAAc;"}
@@ -0,0 +1,28 @@
1
+ import { default as React } from 'react';
2
+ import { ToggleButtonGroupProps as MuiToggleButtonGroupProps } from '@mui/material';
3
+ import { ComponentStruct, ComponentParams, Component } from '@actdim/dynstruct/componentModel/contracts';
4
+ import { BaseAppMsgStruct } from '@actdim/dynstruct/appDomain/appContracts';
5
+ export type ToggleItem = {
6
+ value: string;
7
+ label?: React.ReactNode;
8
+ icon?: React.FC;
9
+ disabled?: boolean;
10
+ };
11
+ type Struct<TMsgStruct extends BaseAppMsgStruct = BaseAppMsgStruct> = ComponentStruct<TMsgStruct, {
12
+ props: {
13
+ value: string | string[];
14
+ onChange: (value: string | string[]) => void;
15
+ items: ToggleItem[];
16
+ exclusive?: boolean;
17
+ size?: MuiToggleButtonGroupProps['size'];
18
+ color?: MuiToggleButtonGroupProps['color'];
19
+ orientation?: MuiToggleButtonGroupProps['orientation'];
20
+ fullWidth?: boolean;
21
+ sx?: MuiToggleButtonGroupProps['sx'];
22
+ };
23
+ }>;
24
+ export declare const useToggleButtonGroup: (params: ComponentParams<Struct>) => Component<Struct>;
25
+ export type ToggleButtonGroupStruct = Struct;
26
+ export declare const ToggleButtonGroup: React.FC<ComponentParams<Struct<BaseAppMsgStruct>>>;
27
+ export {};
28
+ //# sourceMappingURL=ToggleButtonGroup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ToggleButtonGroup.d.ts","sourceRoot":"","sources":["../src/ToggleButtonGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAGH,KAAK,sBAAsB,IAAI,yBAAyB,EAC3D,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,UAAU,GAAG;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,IAAI,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,KAAK,MAAM,CAAC,UAAU,SAAS,gBAAgB,GAAG,gBAAgB,IAAI,eAAe,CACjF,UAAU,EACV;IACI,KAAK,EAAE;QACH,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;QACzB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,IAAI,CAAC;QAC7C,KAAK,EAAE,UAAU,EAAE,CAAC;QACpB,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,IAAI,CAAC,EAAE,yBAAyB,CAAC,MAAM,CAAC,CAAC;QACzC,KAAK,CAAC,EAAE,yBAAyB,CAAC,OAAO,CAAC,CAAC;QAC3C,WAAW,CAAC,EAAE,yBAAyB,CAAC,aAAa,CAAC,CAAC;QACvD,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,EAAE,CAAC,EAAE,yBAAyB,CAAC,IAAI,CAAC,CAAC;KACxC,CAAC;CACL,CACJ,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,QAAQ,eAAe,CAAC,MAAM,CAAC,KAAG,SAAS,CAAC,MAAM,CA4CtF,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC;AAE7C,eAAO,MAAM,iBAAiB,qDAAgC,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { default as React } from 'react';
2
+ import { TooltipProps as MuiTooltipProps } 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
+ title: React.ReactNode;
8
+ children: React.FC;
9
+ placement?: MuiTooltipProps['placement'];
10
+ arrow?: boolean;
11
+ };
12
+ }>;
13
+ export declare const useTooltip: (params: ComponentParams<Struct>) => Component<Struct>;
14
+ export type TooltipStruct = Struct;
15
+ export declare const Tooltip: React.FC<ComponentParams<Struct<BaseAppMsgStruct>>>;
16
+ export {};
17
+ //# sourceMappingURL=Tooltip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../src/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAyB,KAAK,YAAY,IAAI,eAAe,EAAE,MAAM,eAAe,CAAC;AAC5F,OAAO,EACH,KAAK,eAAe,EAEpB,KAAK,eAAe,EACpB,KAAK,SAAS,EAEjB,MAAM,4CAA4C,CAAC;AAEpD,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAGjF,KAAK,MAAM,CAAC,UAAU,SAAS,gBAAgB,GAAG,gBAAgB,IAAI,eAAe,CACjF,UAAU,EACV;IACI,KAAK,EAAE;QACH,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;QACvB,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC;QACnB,SAAS,CAAC,EAAE,eAAe,CAAC,WAAW,CAAC,CAAC;QACzC,KAAK,CAAC,EAAE,OAAO,CAAC;KACnB,CAAC;CACL,CACJ,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,QAAQ,eAAe,CAAC,MAAM,CAAC,KAAG,SAAS,CAAC,MAAM,CAwB5E,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC;AAEnC,eAAO,MAAM,OAAO,qDAAsB,CAAC"}
@@ -0,0 +1,35 @@
1
+ export { useAccordion, type AccordionStruct, Accordion } from './Accordion';
2
+ export { useAlert, type AlertStruct, Alert } from './Alert';
3
+ export { useAutocomplete, type AutocompleteStruct, Autocomplete } from './Autocomplete';
4
+ export { useAvatar, type AvatarStruct, Avatar } from './Avatar';
5
+ export { useBadge, type BadgeStruct, Badge } from './Badge';
6
+ export { useBreadcrumbs, type BreadcrumbsStruct, Breadcrumbs } from './Breadcrumbs';
7
+ export { useButton, type ButtonStruct, Button } from './Button';
8
+ export { useCard, type CardStruct, Card } from './Card';
9
+ export { useCheckbox, type CheckboxStruct, Checkbox } from './Checkbox';
10
+ export { useChip, type ChipStruct, Chip } from './Chip';
11
+ export { useCircularProgress, type CircularProgressStruct, CircularProgress } from './CircularProgress';
12
+ export { useDialog, type DialogStruct, Dialog } from './Dialog';
13
+ export { useDrawer, type DrawerStruct, Drawer } from './Drawer';
14
+ export { useFab, type FabStruct, Fab } from './Fab';
15
+ export { useIconButton, type IconButtonStruct, IconButton } from './IconButton';
16
+ export { useLinearProgress, type LinearProgressStruct, LinearProgress } from './LinearProgress';
17
+ export { useList, type ListStruct, List } from './List';
18
+ export { useMenu, type MenuStruct, Menu } from './Menu';
19
+ export { usePagination, type PaginationStruct, Pagination } from './Pagination';
20
+ export { useRadioGroup, type RadioGroupStruct, RadioGroup } from './RadioGroup';
21
+ export { useRating, type RatingStruct, Rating } from './Rating';
22
+ export { useSelect, type SelectStruct, Select } from './Select';
23
+ export { useSkeleton, type SkeletonStruct, Skeleton } from './Skeleton';
24
+ export { useSlider, type SliderStruct, Slider } from './Slider';
25
+ export { useSnackbar, type SnackbarStruct, Snackbar } from './Snackbar';
26
+ export { useSpeedDial, type SpeedDialStruct, SpeedDial } from './SpeedDial';
27
+ export { useStepper, type StepperStruct, Stepper } from './Stepper';
28
+ export { useSwitch, type SwitchStruct, Switch } from './Switch';
29
+ export { useTable, type TableStruct, Table } from './Table';
30
+ export { useTabs, type TabsStruct, Tabs } from './Tabs';
31
+ export { useTextField, type TextFieldStruct, TextField } from './TextField';
32
+ export { useToast, type ToastStruct, type ToastItem, Toast } from './Toast';
33
+ export { useToggleButtonGroup, type ToggleButtonGroupStruct, ToggleButtonGroup } from './ToggleButtonGroup';
34
+ export { useTooltip, type TooltipStruct, Tooltip } from './Tooltip';
35
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,eAAe,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC5E,OAAO,EAAE,QAAQ,EAAE,KAAK,WAAW,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,KAAK,kBAAkB,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACxF,OAAO,EAAE,SAAS,EAAE,KAAK,YAAY,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAChE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useSwitch } from "./Switch.es.js";
29
29
  import { Table, useTable } from "./Table.es.js";
30
30
  import { Tabs, useTabs } from "./Tabs.es.js";
31
31
  import { TextField, useTextField } from "./TextField.es.js";
32
+ import { Toast, useToast } from "./Toast.es.js";
32
33
  import { ToggleButtonGroup, useToggleButtonGroup } from "./ToggleButtonGroup.es.js";
33
34
  import { Tooltip, useTooltip } from "./Tooltip.es.js";
34
35
  export {
@@ -63,6 +64,7 @@ export {
63
64
  Table,
64
65
  Tabs,
65
66
  TextField,
67
+ Toast,
66
68
  ToggleButtonGroup,
67
69
  Tooltip,
68
70
  useAccordion,
@@ -96,6 +98,7 @@ export {
96
98
  useTable,
97
99
  useTabs,
98
100
  useTextField,
101
+ useToast,
99
102
  useToggleButtonGroup,
100
103
  useTooltip
101
104
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@actdim/dynstruct-mui",
3
- "version": "1.5.5",
3
+ "version": "1.5.6",
4
4
  "description": "MUI component wrappers for @actdim/dynstruct",
5
5
  "author": "Pavel Borodaev",
6
6
  "license": "MIT",
@@ -68,9 +68,9 @@
68
68
  "react-router-dom": ">=7.9.4",
69
69
  "rxjs": ">=7.8.2",
70
70
  "uuid": ">=13.0.0",
71
- "@actdim/dynstruct": "1.5.5",
72
- "@actdim/msgmesh": "1.5.5",
73
- "@actdim/utico": "1.5.5"
71
+ "@actdim/dynstruct": "1.5.6",
72
+ "@actdim/msgmesh": "1.5.6",
73
+ "@actdim/utico": "1.5.6"
74
74
  },
75
75
  "devDependencies": {
76
76
  "@faker-js/faker": "^10.4.0",