@popmenu/admin-ui 0.126.0 → 0.126.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (230) hide show
  1. package/build/esm/components/Alert/Alert.d.ts +3 -0
  2. package/build/esm/components/Alert/Alert.js +41 -0
  3. package/build/esm/components/Alert/Alert.js.map +1 -0
  4. package/build/{components → esm/components}/Alert/AlertProps.d.ts +14 -14
  5. package/build/{components → esm/components}/Alert/AlertStyles.d.ts +2 -2
  6. package/build/esm/components/Alert/AlertStyles.js +21 -0
  7. package/build/esm/components/Alert/AlertStyles.js.map +1 -0
  8. package/build/{components → esm/components}/Alert/index.d.ts +2 -2
  9. package/build/esm/components/AlertDialog/AlertDialog.d.ts +3 -0
  10. package/build/esm/components/AlertDialog/AlertDialog.js +32 -0
  11. package/build/esm/components/AlertDialog/AlertDialog.js.map +1 -0
  12. package/build/{components → esm/components}/AlertDialog/AlertDialogProps.d.ts +26 -26
  13. package/build/esm/components/AlertDialog/AlertDialogStyles.d.ts +2 -0
  14. package/build/esm/components/AlertDialog/AlertDialogStyles.js +29 -0
  15. package/build/esm/components/AlertDialog/AlertDialogStyles.js.map +1 -0
  16. package/build/{components → esm/components}/AlertDialog/index.d.ts +2 -2
  17. package/build/{components → esm/components}/AlertDialogHeader/AlertDialogHeader.d.ts +3 -3
  18. package/build/esm/components/AlertDialogHeader/AlertDialogHeader.js +13 -0
  19. package/build/esm/components/AlertDialogHeader/AlertDialogHeader.js.map +1 -0
  20. package/build/{components → esm/components}/AlertDialogHeader/index.d.ts +1 -1
  21. package/build/{components → esm/components}/AlertTitle/AlertTitle.d.ts +3 -3
  22. package/build/esm/components/AlertTitle/AlertTitle.js +17 -0
  23. package/build/esm/components/AlertTitle/AlertTitle.js.map +1 -0
  24. package/build/{components → esm/components}/AlertTitle/index.d.ts +2 -2
  25. package/build/{components → esm/components}/Button/Button.d.ts +11 -11
  26. package/build/esm/components/Button/Button.js +22 -0
  27. package/build/esm/components/Button/Button.js.map +1 -0
  28. package/build/{components → esm/components}/Button/ButtonProps.d.ts +8 -8
  29. package/build/{components → esm/components}/Button/ButtonStyles.d.ts +7 -7
  30. package/build/esm/components/Button/ButtonStyles.js +123 -0
  31. package/build/esm/components/Button/ButtonStyles.js.map +1 -0
  32. package/build/{components → esm/components}/Button/index.d.ts +2 -2
  33. package/build/{components → esm/components}/Button/util/deriveButtonProps.d.ts +5 -5
  34. package/build/esm/components/Button/util/deriveButtonProps.js +42 -0
  35. package/build/esm/components/Button/util/deriveButtonProps.js.map +1 -0
  36. package/build/esm/components/ButtonGroup/ButtonGroup.d.ts +3 -0
  37. package/build/esm/components/ButtonGroup/ButtonGroup.js +28 -0
  38. package/build/esm/components/ButtonGroup/ButtonGroup.js.map +1 -0
  39. package/build/{components → esm/components}/ButtonGroup/ButtonGroupProps.d.ts +8 -8
  40. package/build/{components → esm/components}/ButtonGroup/ButtonGroupStyles.d.ts +2 -2
  41. package/build/esm/components/ButtonGroup/ButtonGroupStyles.js +28 -0
  42. package/build/esm/components/ButtonGroup/ButtonGroupStyles.js.map +1 -0
  43. package/build/{components → esm/components}/ButtonGroup/index.d.ts +2 -2
  44. package/build/{components → esm/components}/Dialog/index.d.ts +1 -1
  45. package/build/{components → esm/components}/DialogActions/DialogActions.d.ts +3 -3
  46. package/build/esm/components/DialogActions/DialogActions.js +20 -0
  47. package/build/esm/components/DialogActions/DialogActions.js.map +1 -0
  48. package/build/{components → esm/components}/DialogActions/index.d.ts +2 -2
  49. package/build/{components → esm/components}/DialogContent/index.d.ts +1 -1
  50. package/build/{components → esm/components}/DialogTitle/index.d.ts +1 -1
  51. package/build/{components → esm/components}/FeatureIntro/FeatureIntro.d.ts +3 -3
  52. package/build/esm/components/FeatureIntro/FeatureIntro.js +27 -0
  53. package/build/esm/components/FeatureIntro/FeatureIntro.js.map +1 -0
  54. package/build/{components → esm/components}/FeatureIntro/FeatureIntroProps.d.ts +22 -22
  55. package/build/{components → esm/components}/FeatureIntro/FeatureIntroStyles.d.ts +2 -2
  56. package/build/esm/components/FeatureIntro/FeatureIntroStyles.js +20 -0
  57. package/build/esm/components/FeatureIntro/FeatureIntroStyles.js.map +1 -0
  58. package/build/{components → esm/components}/FeatureIntro/index.d.ts +2 -2
  59. package/build/{components → esm/components}/FullScreenStepper/FullScreenStepper.d.ts +8 -8
  60. package/build/esm/components/FullScreenStepper/FullScreenStepper.js +105 -0
  61. package/build/esm/components/FullScreenStepper/FullScreenStepper.js.map +1 -0
  62. package/build/{components → esm/components}/FullScreenStepper/FullScreenStepperContext.d.ts +6 -6
  63. package/build/esm/components/FullScreenStepper/FullScreenStepperContext.js +6 -0
  64. package/build/esm/components/FullScreenStepper/FullScreenStepperContext.js.map +1 -0
  65. package/build/{components → esm/components}/FullScreenStepper/FullScreenStepperProps.d.ts +68 -68
  66. package/build/{components → esm/components}/FullScreenStepper/index.d.ts +3 -3
  67. package/build/{components → esm/components}/FullScreenStepper/types/index.d.ts +25 -25
  68. package/build/{components → esm/components}/FullScreenStepperActions/FullScreenStepperActions.d.ts +3 -3
  69. package/build/esm/components/FullScreenStepperActions/FullScreenStepperActions.js +26 -0
  70. package/build/esm/components/FullScreenStepperActions/FullScreenStepperActions.js.map +1 -0
  71. package/build/{components → esm/components}/FullScreenStepperActions/FullScreenStepperActionsProps.d.ts +22 -22
  72. package/build/{components → esm/components}/FullScreenStepperActions/FullScreenStepperActionsStyles.d.ts +2 -2
  73. package/build/esm/components/FullScreenStepperActions/FullScreenStepperActionsStyles.js +29 -0
  74. package/build/esm/components/FullScreenStepperActions/FullScreenStepperActionsStyles.js.map +1 -0
  75. package/build/{components → esm/components}/FullScreenStepperActions/index.d.ts +2 -2
  76. package/build/{components → esm/components}/FullScreenStepperActions/util/StepperActionsCancelButton.d.ts +11 -11
  77. package/build/esm/components/FullScreenStepperActions/util/StepperActionsCancelButton.js +13 -0
  78. package/build/esm/components/FullScreenStepperActions/util/StepperActionsCancelButton.js.map +1 -0
  79. package/build/{components → esm/components}/FullScreenStepperActions/util/StepperActionsNextButton.d.ts +12 -12
  80. package/build/esm/components/FullScreenStepperActions/util/StepperActionsNextButton.js +17 -0
  81. package/build/esm/components/FullScreenStepperActions/util/StepperActionsNextButton.js.map +1 -0
  82. package/build/{components → esm/components}/FullScreenStepperActions/util/StepperActionsPreviousButton.d.ts +11 -11
  83. package/build/esm/components/FullScreenStepperActions/util/StepperActionsPreviousButton.js +13 -0
  84. package/build/esm/components/FullScreenStepperActions/util/StepperActionsPreviousButton.js.map +1 -0
  85. package/build/{components → esm/components}/FullScreenStepperActions/util/StepperActionsStatusText.d.ts +4 -4
  86. package/build/esm/components/FullScreenStepperActions/util/StepperActionsStatusText.js +17 -0
  87. package/build/esm/components/FullScreenStepperActions/util/StepperActionsStatusText.js.map +1 -0
  88. package/build/{components → esm/components}/FullScreenStepperActions/util/augmentButtonProps.d.ts +5 -5
  89. package/build/esm/components/FullScreenStepperActions/util/augmentButtonProps.js +29 -0
  90. package/build/esm/components/FullScreenStepperActions/util/augmentButtonProps.js.map +1 -0
  91. package/build/{components → esm/components}/FullScreenStepperContent/FullScreenStepperContent.d.ts +5 -5
  92. package/build/esm/components/FullScreenStepperContent/FullScreenStepperContent.js +11 -0
  93. package/build/esm/components/FullScreenStepperContent/FullScreenStepperContent.js.map +1 -0
  94. package/build/{components → esm/components}/FullScreenStepperContent/index.d.ts +1 -1
  95. package/build/{components → esm/components}/FullScreenStepperHeader/FullScreenStepperHeader.d.ts +3 -3
  96. package/build/esm/components/FullScreenStepperHeader/FullScreenStepperHeader.js +22 -0
  97. package/build/esm/components/FullScreenStepperHeader/FullScreenStepperHeader.js.map +1 -0
  98. package/build/{components → esm/components}/FullScreenStepperHeader/FullScreenStepperHeaderProps.d.ts +8 -8
  99. package/build/{components → esm/components}/FullScreenStepperHeader/FullScreenStepperHeaderStyles.d.ts +2 -2
  100. package/build/esm/components/FullScreenStepperHeader/FullScreenStepperHeaderStyles.js +26 -0
  101. package/build/esm/components/FullScreenStepperHeader/FullScreenStepperHeaderStyles.js.map +1 -0
  102. package/build/{components → esm/components}/FullScreenStepperHeader/index.d.ts +1 -1
  103. package/build/{components → esm/components}/FullScreenStepperProgress/FullScreenStepperProgress.d.ts +3 -3
  104. package/build/esm/components/FullScreenStepperProgress/FullScreenStepperProgress.js +12 -0
  105. package/build/esm/components/FullScreenStepperProgress/FullScreenStepperProgress.js.map +1 -0
  106. package/build/{components → esm/components}/FullScreenStepperProgress/FullScreenStepperProgressProps.d.ts +5 -5
  107. package/build/{components → esm/components}/FullScreenStepperProgress/FullScreenStepperProgressStyles.d.ts +2 -2
  108. package/build/esm/components/FullScreenStepperProgress/FullScreenStepperProgressStyles.js +36 -0
  109. package/build/esm/components/FullScreenStepperProgress/FullScreenStepperProgressStyles.js.map +1 -0
  110. package/build/{components → esm/components}/FullScreenStepperProgress/index.d.ts +1 -1
  111. package/build/{components → esm/components}/List/List.d.ts +3 -3
  112. package/build/esm/components/List/List.js +15 -0
  113. package/build/esm/components/List/List.js.map +1 -0
  114. package/build/{components → esm/components}/List/ListProps.d.ts +4 -4
  115. package/build/{components → esm/components}/List/index.d.ts +2 -2
  116. package/build/{components → esm/components}/List/styles.d.ts +2 -2
  117. package/build/esm/components/List/styles.js +24 -0
  118. package/build/esm/components/List/styles.js.map +1 -0
  119. package/build/{components → esm/components}/Page/Page.d.ts +2 -2
  120. package/build/esm/components/Page/Page.js +11 -0
  121. package/build/esm/components/Page/Page.js.map +1 -0
  122. package/build/{components → esm/components}/Page/index.d.ts +1 -1
  123. package/build/{components → esm/components}/PageBody/PageBody.d.ts +2 -2
  124. package/build/esm/components/PageBody/PageBody.js +11 -0
  125. package/build/esm/components/PageBody/PageBody.js.map +1 -0
  126. package/build/{components → esm/components}/PageBody/index.d.ts +1 -1
  127. package/build/{components → esm/components}/PageSection/PageSection.d.ts +3 -3
  128. package/build/esm/components/PageSection/PageSection.js +15 -0
  129. package/build/esm/components/PageSection/PageSection.js.map +1 -0
  130. package/build/{components → esm/components}/PageSection/PageSectionProps.d.ts +5 -5
  131. package/build/{components → esm/components}/PageSection/PageSectionStyles.d.ts +2 -2
  132. package/build/esm/components/PageSection/PageSectionStyles.js +19 -0
  133. package/build/esm/components/PageSection/PageSectionStyles.js.map +1 -0
  134. package/build/{components → esm/components}/PageSection/index.d.ts +1 -1
  135. package/build/{components → esm/components}/PageSectionHead/PageSectionHead.d.ts +2 -2
  136. package/build/esm/components/PageSectionHead/PageSectionHead.js +13 -0
  137. package/build/esm/components/PageSectionHead/PageSectionHead.js.map +1 -0
  138. package/build/{components → esm/components}/PageSectionHead/index.d.ts +1 -1
  139. package/build/{components → esm/components}/PageSectionTitle/PageSectionTitle.d.ts +3 -3
  140. package/build/esm/components/PageSectionTitle/PageSectionTitle.js +13 -0
  141. package/build/esm/components/PageSectionTitle/PageSectionTitle.js.map +1 -0
  142. package/build/{components → esm/components}/PageSectionTitle/index.d.ts +1 -1
  143. package/build/{components → esm/components}/PageSectionTitle/styles.d.ts +1 -1
  144. package/build/esm/components/PageSectionTitle/styles.js +10 -0
  145. package/build/esm/components/PageSectionTitle/styles.js.map +1 -0
  146. package/build/{components → esm/components}/PageSections/PageSections.d.ts +2 -2
  147. package/build/esm/components/PageSections/PageSections.js +11 -0
  148. package/build/esm/components/PageSections/PageSections.js.map +1 -0
  149. package/build/{components → esm/components}/PageSections/index.d.ts +1 -1
  150. package/build/{components → esm/components}/SelectableCard/SelectableCard.d.ts +3 -3
  151. package/build/esm/components/SelectableCard/SelectableCard.js +22 -0
  152. package/build/esm/components/SelectableCard/SelectableCard.js.map +1 -0
  153. package/build/{components → esm/components}/SelectableCard/SelectableCardProps.d.ts +18 -18
  154. package/build/{components → esm/components}/SelectableCard/SelectableCardStyles.d.ts +2 -2
  155. package/build/esm/components/SelectableCard/SelectableCardStyles.js +47 -0
  156. package/build/esm/components/SelectableCard/SelectableCardStyles.js.map +1 -0
  157. package/build/{components → esm/components}/SelectableCard/index.d.ts +2 -2
  158. package/build/{components → esm/components}/SettingsIndexCard/SettingsIndexCard.d.ts +11 -11
  159. package/build/esm/components/SettingsIndexCard/SettingsIndexCard.js +24 -0
  160. package/build/esm/components/SettingsIndexCard/SettingsIndexCard.js.map +1 -0
  161. package/build/{components → esm/components}/SettingsIndexCard/SettingsIndexCardProps.d.ts +20 -20
  162. package/build/{components → esm/components}/SettingsIndexCard/SettingsIndexCardStyles.d.ts +2 -2
  163. package/build/esm/components/SettingsIndexCard/SettingsIndexCardStyles.js +21 -0
  164. package/build/esm/components/SettingsIndexCard/SettingsIndexCardStyles.js.map +1 -0
  165. package/build/{components → esm/components}/SettingsIndexCard/index.d.ts +2 -2
  166. package/build/{components → esm/components}/SettingsIndexCardGroup/SettingsIndexCardGroup.d.ts +3 -3
  167. package/build/esm/components/SettingsIndexCardGroup/SettingsIndexCardGroup.js +11 -0
  168. package/build/esm/components/SettingsIndexCardGroup/SettingsIndexCardGroup.js.map +1 -0
  169. package/build/{components → esm/components}/SettingsIndexCardGroup/index.d.ts +1 -1
  170. package/build/{components → esm/components}/StandardListItem/StandardListItem.d.ts +9 -9
  171. package/build/esm/components/StandardListItem/StandardListItem.js +40 -0
  172. package/build/esm/components/StandardListItem/StandardListItem.js.map +1 -0
  173. package/build/{components → esm/components}/StandardListItem/StandardListItemProps.d.ts +25 -25
  174. package/build/{components → esm/components}/StandardListItem/index.d.ts +2 -2
  175. package/build/{components → esm/components}/Toast/Toast.d.ts +3 -3
  176. package/build/esm/components/Toast/Toast.js +20 -0
  177. package/build/esm/components/Toast/Toast.js.map +1 -0
  178. package/build/{components → esm/components}/Toast/ToastProps.d.ts +10 -10
  179. package/build/{components → esm/components}/Toast/ToastStyles.d.ts +2 -2
  180. package/build/esm/components/Toast/ToastStyles.js +16 -0
  181. package/build/esm/components/Toast/ToastStyles.js.map +1 -0
  182. package/build/{components → esm/components}/Toast/index.d.ts +2 -2
  183. package/build/{components → esm/components}/index.d.ts +27 -27
  184. package/build/{hooks → esm/hooks}/index.d.ts +3 -3
  185. package/build/{hooks → esm/hooks}/useDialog.d.ts +12 -12
  186. package/build/esm/hooks/useDialog.js +13 -0
  187. package/build/esm/hooks/useDialog.js.map +1 -0
  188. package/build/{hooks → esm/hooks}/useFullScreenStepperContext.d.ts +2 -2
  189. package/build/esm/hooks/useFullScreenStepperContext.js +8 -0
  190. package/build/esm/hooks/useFullScreenStepperContext.js.map +1 -0
  191. package/build/{hooks → esm/hooks}/useSelectableCard.d.ts +24 -24
  192. package/build/esm/hooks/useSelectableCard.js +50 -0
  193. package/build/esm/hooks/useSelectableCard.js.map +1 -0
  194. package/build/{index.d.ts → esm/index.d.ts} +3 -3
  195. package/build/esm/index.js +32 -0
  196. package/build/esm/index.js.map +1 -0
  197. package/build/{theme → esm/theme}/adminDarkTheme.d.ts +252 -227
  198. package/build/esm/theme/adminDarkTheme.js +13 -0
  199. package/build/esm/theme/adminDarkTheme.js.map +1 -0
  200. package/build/{theme → esm/theme}/adminLightTheme.d.ts +253 -228
  201. package/build/esm/theme/adminLightTheme.js +13 -0
  202. package/build/esm/theme/adminLightTheme.js.map +1 -0
  203. package/build/{theme → esm/theme}/breakpoints.d.ts +9 -9
  204. package/build/esm/theme/breakpoints.js +12 -0
  205. package/build/esm/theme/breakpoints.js.map +1 -0
  206. package/build/{theme → esm/theme}/customThemeProperties.d.ts +63 -63
  207. package/build/esm/theme/customThemeProperties.js +54 -0
  208. package/build/esm/theme/customThemeProperties.js.map +1 -0
  209. package/build/{theme → esm/theme}/index.d.ts +2 -2
  210. package/build/{theme → esm/theme}/overrides.d.ts +30 -30
  211. package/build/esm/theme/overrides.js +35 -0
  212. package/build/esm/theme/overrides.js.map +1 -0
  213. package/build/{theme → esm/theme}/palette.d.ts +128 -128
  214. package/build/esm/theme/palette.js +131 -0
  215. package/build/esm/theme/palette.js.map +1 -0
  216. package/build/{theme → esm/theme}/props.d.ts +8 -8
  217. package/build/esm/theme/props.js +11 -0
  218. package/build/esm/theme/props.js.map +1 -0
  219. package/build/{theme → esm/theme}/typography.d.ts +61 -61
  220. package/build/esm/theme/typography.js +65 -0
  221. package/build/esm/theme/typography.js.map +1 -0
  222. package/build/index.js +1143 -2327
  223. package/build/index.js.map +1 -1
  224. package/package.json +8 -8
  225. package/build/components/Alert/Alert.d.ts +0 -3
  226. package/build/components/AlertDialog/AlertDialog.d.ts +0 -3
  227. package/build/components/AlertDialog/AlertDialogStyles.d.ts +0 -2
  228. package/build/components/ButtonGroup/ButtonGroup.d.ts +0 -3
  229. package/build/index.es.js +0 -2375
  230. package/build/index.es.js.map +0 -1
@@ -1,18 +1,18 @@
1
- import { Ref } from 'react';
2
- import { CardProps as MuiCardProps } from '@material-ui/core/Card';
3
- import { CardActionAreaProps } from '@material-ui/core';
4
- export interface SelectableCardProps extends Omit<MuiCardProps, 'onClick'> {
5
- /** Id of the DOM node serving as the label of the input. */
6
- labelId: string;
7
- /** Sets card selection state. */
8
- selected?: boolean;
9
- /** A reference to selection state managing a group of SelectableCards. */
10
- selection?: Array<string>;
11
- /** The value of a card in respects to selection state. */
12
- value: string;
13
- /** Callback for when the SelectableCard is clicked. */
14
- onClick: (value: string) => void;
15
- /** Props passed to the CardActionArea rendered by SelectableCard. */
16
- CardActionAreaProps?: CardActionAreaProps;
17
- ref?: (instance: HTMLDivElement) => void | Ref<HTMLDivElement> | null;
18
- }
1
+ import { Ref } from 'react';
2
+ import { CardProps as MuiCardProps } from '@material-ui/core/Card';
3
+ import { CardActionAreaProps } from '@material-ui/core';
4
+ export interface SelectableCardProps extends Omit<MuiCardProps, 'onClick'> {
5
+ /** Id of the DOM node serving as the label of the input. */
6
+ labelId: string;
7
+ /** Sets card selection state. */
8
+ selected?: boolean;
9
+ /** A reference to selection state managing a group of SelectableCards. */
10
+ selection?: Array<string>;
11
+ /** The value of a card in respects to selection state. */
12
+ value: string;
13
+ /** Callback for when the SelectableCard is clicked. */
14
+ onClick: (value: string) => void;
15
+ /** Props passed to the CardActionArea rendered by SelectableCard. */
16
+ CardActionAreaProps?: CardActionAreaProps;
17
+ ref?: (instance: HTMLDivElement) => void | Ref<HTMLDivElement> | null;
18
+ }
@@ -1,2 +1,2 @@
1
- import { SelectableCardProps } from './SelectableCardProps';
2
- export declare const useSelectableCardStyles: (props: SelectableCardProps) => import("@material-ui/styles").ClassNameMap<string>;
1
+ import { SelectableCardProps } from './SelectableCardProps';
2
+ export declare const useSelectableCardStyles: (props: SelectableCardProps) => import("@material-ui/styles").ClassNameMap<string>;
@@ -0,0 +1,47 @@
1
+ import { makeStyles, lighten } from '@material-ui/core/styles';
2
+
3
+ var useSelectableCardStyles = makeStyles(function (theme) {
4
+ var _a = theme.palette, info = _a.info, grey = _a.grey, getContrastText = _a.getContrastText, spacing = theme.spacing;
5
+ var selectedBackgroundColor = lighten(theme.palette.info.light, 0.9);
6
+ var backgroundColor = theme.palette.surface.light;
7
+ return {
8
+ root: {
9
+ position: 'relative',
10
+ border: function (_a) {
11
+ var selected = _a.selected;
12
+ return (selected ? "1px solid " + info.light : "1px solid " + grey[700]);
13
+ },
14
+ backgroundColor: function (_a) {
15
+ var selected = _a.selected;
16
+ return (selected ? selectedBackgroundColor : backgroundColor);
17
+ },
18
+ color: function (_a) {
19
+ var selected = _a.selected;
20
+ return (selected ? getContrastText(selectedBackgroundColor) : getContrastText(backgroundColor));
21
+ },
22
+ transition: 'none',
23
+ },
24
+ cardContent: {
25
+ display: 'flex',
26
+ flexDirection: 'column',
27
+ alignItems: 'center',
28
+ justifyContent: 'center',
29
+ marginTop: spacing(2.5),
30
+ },
31
+ icon: {
32
+ position: 'absolute',
33
+ top: spacing(2),
34
+ left: spacing(2),
35
+ color: function (_a) {
36
+ var selected = _a.selected;
37
+ return (selected ? info.main : grey[700]);
38
+ },
39
+ },
40
+ focusHighlight: {
41
+ backgroundColor: 'inherit',
42
+ },
43
+ };
44
+ });
45
+
46
+ export { useSelectableCardStyles };
47
+ //# sourceMappingURL=SelectableCardStyles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectableCardStyles.js","sources":["../../../../src/components/SelectableCard/SelectableCardStyles.ts"],"sourcesContent":["import { makeStyles, Theme, lighten } from '@material-ui/core/styles'\n\nimport { SelectableCardProps } from './SelectableCardProps'\n\nexport const useSelectableCardStyles = makeStyles<Theme, SelectableCardProps>((theme) => {\n const {\n palette: { info, grey, getContrastText },\n spacing,\n } = theme\n const selectedBackgroundColor = lighten(theme.palette.info.light, 0.9)\n const backgroundColor = theme.palette.surface.light\n return {\n root: {\n position: 'relative',\n border: ({ selected }) => (selected ? `1px solid ${info.light}` : `1px solid ${grey[700]}`),\n backgroundColor: ({ selected }) => (selected ? selectedBackgroundColor : backgroundColor),\n color: ({ selected }) => (selected ? getContrastText(selectedBackgroundColor) : getContrastText(backgroundColor)),\n transition: 'none',\n },\n cardContent: {\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n justifyContent: 'center',\n marginTop: spacing(2.5),\n },\n icon: {\n position: 'absolute',\n top: spacing(2),\n left: spacing(2),\n color: ({ selected }) => (selected ? info.main : grey[700]),\n },\n focusHighlight: {\n backgroundColor: 'inherit',\n },\n }\n})\n"],"names":[],"mappings":";;AAIa,IAAA,uBAAuB,GAAG,UAAU,CAA6B,UAAC,KAAK,EAAA;AAEhF,IAAA,IAAA,KAEE,KAAK,CAAA,OAFiC,EAA7B,IAAI,UAAA,EAAE,IAAI,GAAA,EAAA,CAAA,IAAA,EAAE,eAAe,GAAA,EAAA,CAAA,eAAA,EACtC,OAAO,GACL,KAAK,QADA;AAET,IAAA,IAAM,uBAAuB,GAAG,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,GAAG,CAAC;IACtE,IAAM,eAAe,GAAG,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK;IACnD,OAAO;AACL,QAAA,IAAI,EAAE;AACJ,YAAA,QAAQ,EAAE,UAAU;YACpB,MAAM,EAAE,UAAC,EAAY,EAAA;AAAV,gBAAA,IAAA,QAAQ,GAAA,EAAA,CAAA,QAAA;AAAO,gBAAA,QAAC,QAAQ,GAAG,eAAa,IAAI,CAAC,KAAO,GAAG,YAAA,GAAa,IAAI,CAAC,GAAG,CAAG;aAAC;YAC3F,eAAe,EAAE,UAAC,EAAY,EAAA;AAAV,gBAAA,IAAA,QAAQ,GAAA,EAAA,CAAA,QAAA;gBAAO,QAAC,QAAQ,GAAG,uBAAuB,GAAG,eAAe;aAAC;YACzF,KAAK,EAAE,UAAC,EAAY,EAAA;AAAV,gBAAA,IAAA,QAAQ,GAAA,EAAA,CAAA,QAAA;AAAO,gBAAA,QAAC,QAAQ,GAAG,eAAe,CAAC,uBAAuB,CAAC,GAAG,eAAe,CAAC,eAAe,CAAC;aAAC;AACjH,YAAA,UAAU,EAAE,MAAM;AACnB,SAAA;AACD,QAAA,WAAW,EAAE;AACX,YAAA,OAAO,EAAE,MAAM;AACf,YAAA,aAAa,EAAE,QAAQ;AACvB,YAAA,UAAU,EAAE,QAAQ;AACpB,YAAA,cAAc,EAAE,QAAQ;AACxB,YAAA,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC;AACxB,SAAA;AACD,QAAA,IAAI,EAAE;AACJ,YAAA,QAAQ,EAAE,UAAU;AACpB,YAAA,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC;AACf,YAAA,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;YAChB,KAAK,EAAE,UAAC,EAAY,EAAA;AAAV,gBAAA,IAAA,QAAQ,GAAA,EAAA,CAAA,QAAA;AAAO,gBAAA,QAAC,QAAQ,GAAG,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC;aAAC;AAC5D,SAAA;AACD,QAAA,cAAc,EAAE;AACd,YAAA,eAAe,EAAE,SAAS;AAC3B,SAAA;KACF;AACH,CAAC;;;;"}
@@ -1,2 +1,2 @@
1
- export { SelectableCard as default } from './SelectableCard';
2
- export { SelectableCardProps } from './SelectableCardProps';
1
+ export { SelectableCard as default } from './SelectableCard';
2
+ export { SelectableCardProps } from './SelectableCardProps';
@@ -1,11 +1,11 @@
1
- import React from 'react';
2
- import { SettingsIndexCardProps } from './SettingsIndexCardProps';
3
- interface SettingsIndexCardType {
4
- <C extends React.ElementType = 'a'>(props: SettingsIndexCardProps<C> & {
5
- component?: C;
6
- }): React.ReactElement;
7
- defaultProps?: Partial<SettingsIndexCardProps>;
8
- displayName?: string;
9
- }
10
- export declare const SettingsIndexCard: SettingsIndexCardType;
11
- export {};
1
+ import React from 'react';
2
+ import { SettingsIndexCardProps } from './SettingsIndexCardProps';
3
+ interface SettingsIndexCardType {
4
+ <C extends React.ElementType = 'a'>(props: SettingsIndexCardProps<C> & {
5
+ component?: C;
6
+ }): React.ReactElement;
7
+ defaultProps?: Partial<SettingsIndexCardProps>;
8
+ displayName?: string;
9
+ }
10
+ export declare const SettingsIndexCard: SettingsIndexCardType;
11
+ export {};
@@ -0,0 +1,24 @@
1
+ import { __rest, __assign } from 'tslib';
2
+ import React, { forwardRef } from 'react';
3
+ import { ButtonBase, Card, CardContent, Box, Icon, Typography } from '@popmenu/common-ui';
4
+ import { Help } from '@popmenu/web-icons';
5
+ import { useSettingsIndexCardStyles } from './SettingsIndexCardStyles.js';
6
+
7
+ // eslint-disable-next-line react/display-name -- false positive
8
+ var SettingsIndexCard = forwardRef(function (props, ref) {
9
+ var title = props.title, description = props.description, Icon$1 = props.Icon, onClick = props.onClick, statusLabel = props.statusLabel, restProps = __rest(props, ["title", "description", "Icon", "onClick", "statusLabel"]);
10
+ var classes = useSettingsIndexCardStyles(props);
11
+ var showStatusLabel = (statusLabel === null || statusLabel === void 0 ? void 0 : statusLabel.text) && (statusLabel === null || statusLabel === void 0 ? void 0 : statusLabel.color);
12
+ return (React.createElement(ButtonBase, __assign({ onClick: onClick, ref: ref }, restProps),
13
+ React.createElement(Card, { classes: { root: classes.cardRoot } },
14
+ React.createElement(CardContent, { classes: { root: classes.cardContentRoot } },
15
+ React.createElement(Box, { fontSize: "32px", display: "flex", justifyContent: 'space-between', alignItems: "center", paddingBottom: 2 },
16
+ React.createElement(Icon, { icon: Icon$1 || Help, size: "inherit" }),
17
+ showStatusLabel && (React.createElement(Typography, { weight: "semi-bold", variant: "body2", color: statusLabel === null || statusLabel === void 0 ? void 0 : statusLabel.color }, statusLabel === null || statusLabel === void 0 ? void 0 : statusLabel.text))),
18
+ React.createElement(Typography, { align: "left", variant: "h6", gutterBottom: true }, title),
19
+ description && (React.createElement(Typography, { align: "left", variant: "body2", color: "grey.700" }, description))))));
20
+ });
21
+ SettingsIndexCard.displayName = 'SettingsIndexCard';
22
+
23
+ export { SettingsIndexCard };
24
+ //# sourceMappingURL=SettingsIndexCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SettingsIndexCard.js","sources":["../../../../src/components/SettingsIndexCard/SettingsIndexCard.tsx"],"sourcesContent":["import React, { forwardRef } from 'react'\nimport { ButtonBase, Card, CardContent, Typography } from '@popmenu/common-ui'\nimport { SettingsIndexCardProps } from './SettingsIndexCardProps'\nimport { Icon as CommonIcon, Box } from '@popmenu/common-ui'\nimport { Help } from '@popmenu/web-icons'\nimport { useSettingsIndexCardStyles } from './SettingsIndexCardStyles'\n\ninterface SettingsIndexCardType {\n <C extends React.ElementType = 'a'>(props: SettingsIndexCardProps<C> & { component?: C }): React.ReactElement\n defaultProps?: Partial<SettingsIndexCardProps>\n displayName?: string\n}\n\n// eslint-disable-next-line react/display-name -- false positive\nexport const SettingsIndexCard = forwardRef<HTMLButtonElement, SettingsIndexCardProps>((props, ref) => {\n const { title, description, Icon, onClick, statusLabel, ...restProps } = props\n const classes = useSettingsIndexCardStyles(props)\n const showStatusLabel = statusLabel?.text && statusLabel?.color\n return (\n <ButtonBase onClick={onClick} ref={ref} {...restProps}>\n <Card classes={{ root: classes.cardRoot }}>\n <CardContent classes={{ root: classes.cardContentRoot }}>\n <Box fontSize=\"32px\" display=\"flex\" justifyContent={'space-between'} alignItems=\"center\" paddingBottom={2}>\n <CommonIcon icon={Icon || Help} size=\"inherit\" />\n {showStatusLabel && (\n <Typography weight=\"semi-bold\" variant=\"body2\" color={statusLabel?.color}>\n {statusLabel?.text}\n </Typography>\n )}\n </Box>\n <Typography align=\"left\" variant=\"h6\" gutterBottom>\n {title}\n </Typography>\n {description && (\n <Typography align=\"left\" variant=\"body2\" color=\"grey.700\">\n {description}\n </Typography>\n )}\n </CardContent>\n </Card>\n </ButtonBase>\n )\n}) as SettingsIndexCardType\n\nSettingsIndexCard.displayName = 'SettingsIndexCard'\n"],"names":["Icon","CommonIcon"],"mappings":";;;;;;AAaA;IACa,iBAAiB,GAAG,UAAU,CAA4C,UAAC,KAAK,EAAE,GAAG,EAAA;AACxF,IAAA,IAAA,KAAK,GAA4D,KAAK,CAAA,KAAjE,EAAE,WAAW,GAA+C,KAAK,CAApD,WAAA,EAAEA,MAAI,GAAyC,KAAK,CAA9C,IAAA,EAAE,OAAO,GAAgC,KAAK,CAAA,OAArC,EAAE,WAAW,GAAmB,KAAK,CAAA,WAAxB,EAAK,SAAS,GAAK,MAAA,CAAA,KAAK,EAAxE,CAAA,OAAA,EAAA,aAAA,EAAA,MAAA,EAAA,SAAA,EAAA,aAAA,CAAgE,CAAF;AACpE,IAAA,IAAM,OAAO,GAAG,0BAA0B,CAAC,KAAK,CAAC;AACjD,IAAA,IAAM,eAAe,GAAG,CAAA,WAAW,KAAX,IAAA,IAAA,WAAW,uBAAX,WAAW,CAAE,IAAI,MAAI,WAAW,aAAX,WAAW,KAAA,MAAA,GAAA,MAAA,GAAX,WAAW,CAAE,KAAK,CAAA;AAC/D,IAAA,QACE,KAAA,CAAA,aAAA,CAAC,UAAU,EAAA,QAAA,CAAA,EAAC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,EAAA,EAAM,SAAS,CAAA;QACnD,KAAC,CAAA,aAAA,CAAA,IAAI,EAAC,EAAA,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,QAAQ,EAAE,EAAA;YACvC,KAAC,CAAA,aAAA,CAAA,WAAW,EAAC,EAAA,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,eAAe,EAAE,EAAA;gBACrD,KAAC,CAAA,aAAA,CAAA,GAAG,IAAC,QAAQ,EAAC,MAAM,EAAC,OAAO,EAAC,MAAM,EAAC,cAAc,EAAE,eAAe,EAAE,UAAU,EAAC,QAAQ,EAAC,aAAa,EAAE,CAAC,EAAA;oBACvG,KAAC,CAAA,aAAA,CAAAC,IAAU,EAAC,EAAA,IAAI,EAAED,MAAI,IAAI,IAAI,EAAE,IAAI,EAAC,SAAS,EAAG,CAAA;AAChD,oBAAA,eAAe,KACd,KAAC,CAAA,aAAA,CAAA,UAAU,IAAC,MAAM,EAAC,WAAW,EAAC,OAAO,EAAC,OAAO,EAAC,KAAK,EAAE,WAAW,KAAX,IAAA,IAAA,WAAW,KAAX,MAAA,GAAA,MAAA,GAAA,WAAW,CAAE,KAAK,IACrE,WAAW,KAAA,IAAA,IAAX,WAAW,KAAA,MAAA,GAAA,MAAA,GAAX,WAAW,CAAE,IAAI,CACP,CACd,CACG;AACN,gBAAA,KAAA,CAAA,aAAA,CAAC,UAAU,EAAA,EAAC,KAAK,EAAC,MAAM,EAAC,OAAO,EAAC,IAAI,EAAC,YAAY,EAAA,IAAA,EAAA,EAC/C,KAAK,CACK;gBACZ,WAAW,KACV,KAAA,CAAA,aAAA,CAAC,UAAU,EAAA,EAAC,KAAK,EAAC,MAAM,EAAC,OAAO,EAAC,OAAO,EAAC,KAAK,EAAC,UAAU,EAAA,EACtD,WAAW,CACD,CACd,CACW,CACT,CACI;AAEjB,CAAC;AAED,iBAAiB,CAAC,WAAW,GAAG,mBAAmB;;;;"}
@@ -1,20 +1,20 @@
1
- import { ThemeColors } from '@popmenu/common-ui/build/components/Typography/TypographyProps';
2
- import React from 'react';
3
- import { ButtonBaseProps } from '@material-ui/core';
4
- export declare type SettingsIndexCardProps<C extends React.ElementType = 'button'> = ButtonBaseProps<C, {
5
- component?: C;
6
- }> & {
7
- /** The icon from @popmenu/web-icons to be rendered */
8
- Icon?: React.FC<React.SVGProps<SVGSVGElement>>;
9
- /** Sets the title of the card */
10
- title: string;
11
- /** Displays the given card description */
12
- description?: string;
13
- /** Event callback for the Card click event */
14
- onClick?: (event: any) => void;
15
- /** Sets the text and color of the label */
16
- statusLabel?: {
17
- text: string;
18
- color: ThemeColors;
19
- };
20
- };
1
+ import { ButtonBaseProps } from '@material-ui/core';
2
+ import { ThemeColors } from '@popmenu/common-ui';
3
+ import React from 'react';
4
+ export declare type SettingsIndexCardProps<C extends React.ElementType = 'button'> = ButtonBaseProps<C, {
5
+ component?: C;
6
+ }> & {
7
+ /** The icon from @popmenu/web-icons to be rendered */
8
+ Icon?: React.FC<React.SVGProps<SVGSVGElement>>;
9
+ /** Sets the title of the card */
10
+ title: string;
11
+ /** Displays the given card description */
12
+ description?: string;
13
+ /** Event callback for the Card click event */
14
+ onClick?: (event: any) => void;
15
+ /** Sets the text and color of the label */
16
+ statusLabel?: {
17
+ text: string;
18
+ color: ThemeColors;
19
+ };
20
+ };
@@ -1,2 +1,2 @@
1
- import { SettingsIndexCardProps } from './SettingsIndexCardProps';
2
- export declare const useSettingsIndexCardStyles: (props: SettingsIndexCardProps) => import("@material-ui/styles").ClassNameMap<string>;
1
+ import { SettingsIndexCardProps } from './SettingsIndexCardProps';
2
+ export declare const useSettingsIndexCardStyles: (props: SettingsIndexCardProps<"button">) => import("@material-ui/styles").ClassNameMap<string>;
@@ -0,0 +1,21 @@
1
+ import { makeStyles } from '@material-ui/core/styles';
2
+
3
+ var useSettingsIndexCardStyles = makeStyles(function (theme) { return ({
4
+ cardRoot: {
5
+ border: "1px solid " + theme.palette.grey[300],
6
+ alignSelf: 'stretch',
7
+ flexGrow: 1,
8
+ '&:hover': {
9
+ backgroundColor: '#52B7FF1A',
10
+ },
11
+ },
12
+ cardContentRoot: {
13
+ padding: theme.spacing(4),
14
+ '&:last-child': {
15
+ paddingBottom: theme.spacing(4),
16
+ },
17
+ },
18
+ }); });
19
+
20
+ export { useSettingsIndexCardStyles };
21
+ //# sourceMappingURL=SettingsIndexCardStyles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SettingsIndexCardStyles.js","sources":["../../../../src/components/SettingsIndexCard/SettingsIndexCardStyles.ts"],"sourcesContent":["import { makeStyles, Theme } from '@material-ui/core/styles'\n\nimport { SettingsIndexCardProps } from './SettingsIndexCardProps'\n\nexport const useSettingsIndexCardStyles = makeStyles<Theme, SettingsIndexCardProps>((theme) => ({\n cardRoot: {\n border: `1px solid ${theme.palette.grey[300]}`,\n alignSelf: 'stretch',\n flexGrow: 1,\n '&:hover': {\n backgroundColor: '#52B7FF1A',\n },\n },\n cardContentRoot: {\n padding: theme.spacing(4),\n '&:last-child': {\n paddingBottom: theme.spacing(4),\n },\n },\n}))\n"],"names":[],"mappings":";;AAIa,IAAA,0BAA0B,GAAG,UAAU,CAAgC,UAAC,KAAK,EAAK,EAAA,QAAC;AAC9F,IAAA,QAAQ,EAAE;QACR,MAAM,EAAE,eAAa,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAG;AAC9C,QAAA,SAAS,EAAE,SAAS;AACpB,QAAA,QAAQ,EAAE,CAAC;AACX,QAAA,SAAS,EAAE;AACT,YAAA,eAAe,EAAE,WAAW;AAC7B,SAAA;AACF,KAAA;AACD,IAAA,eAAe,EAAE;AACf,QAAA,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;AACzB,QAAA,cAAc,EAAE;AACd,YAAA,aAAa,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;AAChC,SAAA;AACF,KAAA;CACF,EAAC,EAAA;;;;"}
@@ -1,2 +1,2 @@
1
- export { SettingsIndexCard } from './SettingsIndexCard';
2
- export { SettingsIndexCardProps } from './SettingsIndexCardProps';
1
+ export { SettingsIndexCard } from './SettingsIndexCard';
2
+ export { SettingsIndexCardProps } from './SettingsIndexCardProps';
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- import { BoxProps } from '@popmenu/common-ui';
3
- export declare const SettingsIndexCardGroup: (props: BoxProps) => JSX.Element;
1
+ /// <reference types="react" />
2
+ import { BoxProps } from '@popmenu/common-ui';
3
+ export declare const SettingsIndexCardGroup: (props: BoxProps) => JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { __rest, __assign } from 'tslib';
2
+ import React from 'react';
3
+ import { Box } from '@popmenu/common-ui';
4
+
5
+ var SettingsIndexCardGroup = function (props) {
6
+ var children = props.children, restProps = __rest(props, ["children"]);
7
+ return (React.createElement(Box, __assign({ display: "grid", gridGap: 16, gridTemplateColumns: "repeat(auto-fill, minmax(250px, 1fr))" }, restProps), children));
8
+ };
9
+
10
+ export { SettingsIndexCardGroup };
11
+ //# sourceMappingURL=SettingsIndexCardGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SettingsIndexCardGroup.js","sources":["../../../../src/components/SettingsIndexCardGroup/SettingsIndexCardGroup.tsx"],"sourcesContent":["import React from 'react'\nimport { Box, BoxProps } from '@popmenu/common-ui'\n\nexport const SettingsIndexCardGroup = (props: BoxProps) => {\n const { children, ...restProps } = props\n return (\n <Box display=\"grid\" gridGap={16} gridTemplateColumns=\"repeat(auto-fill, minmax(250px, 1fr))\" {...restProps}>\n {children}\n </Box>\n )\n}\n"],"names":[],"mappings":";;;;AAGO,IAAM,sBAAsB,GAAG,UAAC,KAAe,EAAA;IAC5C,IAAA,QAAQ,GAAmB,KAAK,CAAxB,QAAA,EAAK,SAAS,GAAA,MAAA,CAAK,KAAK,EAAlC,CAA0B,UAAA,CAAA,CAAF;IAC9B,QACE,oBAAC,GAAG,EAAA,QAAA,CAAA,EAAC,OAAO,EAAC,MAAM,EAAC,OAAO,EAAE,EAAE,EAAE,mBAAmB,EAAC,uCAAuC,EAAA,EAAK,SAAS,CACvG,EAAA,QAAQ,CACL;AAEV;;;;"}
@@ -1 +1 @@
1
- export { SettingsIndexCardGroup } from './SettingsIndexCardGroup';
1
+ export { SettingsIndexCardGroup } from './SettingsIndexCardGroup';
@@ -1,9 +1,9 @@
1
- /// <reference types="react" />
2
- import { StandardListItemProps } from './StandardListItemProps';
3
- /**
4
- * TODO
5
- * - clean props util
6
- * - Avatar size and shape
7
- */
8
- export declare const StandardListItem: (props: StandardListItemProps) => JSX.Element;
9
- export declare const Test: () => JSX.Element;
1
+ /// <reference types="react" />
2
+ import { StandardListItemProps } from './StandardListItemProps';
3
+ /**
4
+ * TODO
5
+ * - clean props util
6
+ * - Avatar size and shape
7
+ */
8
+ export declare const StandardListItem: (props: StandardListItemProps) => JSX.Element;
9
+ export declare const Test: () => JSX.Element;
@@ -0,0 +1,40 @@
1
+ import { __rest, __assign } from 'tslib';
2
+ import React from 'react';
3
+ import { makeStyles, ListItem, ListItemAvatar, ListItemText, Chip, ListItemSecondaryAction, IconButton } from '@material-ui/core';
4
+ import { Avatar, Icon, Typography } from '@popmenu/common-ui';
5
+
6
+ var useStyles = makeStyles(function (theme) { return ({
7
+ chipRoot: {
8
+ marginRight: theme.spacing(4),
9
+ cursor: 'pointer',
10
+ },
11
+ body: {
12
+ paddingTop: '4px',
13
+ },
14
+ listItemText: {
15
+ marginRight: '32px',
16
+ },
17
+ }); });
18
+ /**
19
+ * TODO
20
+ * - clean props util
21
+ * - Avatar size and shape
22
+ */
23
+ var StandardListItem = function (props) {
24
+ props.itemId; var title = props.title, meta = props.meta, body = props.body, image = props.image, status = props.status, secondaryAction = props.secondaryAction, onClick = props.onClick, restProps = __rest(props, ["itemId", "title", "meta", "body", "image", "status", "secondaryAction", "onClick"]);
25
+ var classes = useStyles(props);
26
+ return (React.createElement(ListItem, __assign({ button: Boolean(onClick), onClick: function (e) { return onClick && onClick(e, props); } }, restProps),
27
+ image && (React.createElement(ListItemAvatar, null,
28
+ React.createElement(Avatar, { src: image.src, alt: image.alt }, image.Icon && React.createElement(Icon, { icon: image.Icon })))),
29
+ React.createElement(ListItemText, { disableTypography: true, className: classes.listItemText },
30
+ React.createElement(Typography, { variant: "h6" }, title),
31
+ meta && (React.createElement(Typography, { variant: "body2", color: "secondary.light" }, meta)),
32
+ body && (React.createElement(Typography, { variant: "body2", color: "grey.700", className: classes.body }, body))),
33
+ status && (React.createElement(Chip, { classes: { root: classes.chipRoot }, icon: status.Icon && React.createElement(Icon, { icon: status.Icon }), label: status.text })),
34
+ secondaryAction && (React.createElement(ListItemSecondaryAction, null,
35
+ React.createElement(IconButton, { style: { color: 'black' }, "aria-label": secondaryAction['aria-label'], onClick: function (e) { return secondaryAction.onClick(e, props); } },
36
+ React.createElement(Icon, { icon: secondaryAction.Icon }))))));
37
+ };
38
+
39
+ export { StandardListItem };
40
+ //# sourceMappingURL=StandardListItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StandardListItem.js","sources":["../../../../src/components/StandardListItem/StandardListItem.tsx"],"sourcesContent":["import React from 'react'\nimport {\n Chip,\n IconButton,\n ListItem as MuiListItem,\n ListItemAvatar,\n ListItemSecondaryAction,\n ListItemText,\n makeStyles,\n} from '@material-ui/core'\nimport { Avatar, Icon, Typography } from '@popmenu/common-ui'\nimport { StandardListItemProps } from './StandardListItemProps'\n\nconst useStyles = makeStyles((theme) => ({\n chipRoot: {\n marginRight: theme.spacing(4),\n cursor: 'pointer',\n },\n body: {\n paddingTop: '4px',\n },\n listItemText: {\n marginRight: '32px',\n },\n}))\n\n/**\n * TODO\n * - clean props util\n * - Avatar size and shape\n */\n\nexport const StandardListItem = (props: StandardListItemProps) => {\n const { itemId, title, meta, body, image, status, secondaryAction, onClick, ...restProps } = props\n const classes = useStyles(props)\n return (\n <MuiListItem button={Boolean(onClick) as any} onClick={(e) => onClick && onClick(e, props)} {...restProps}>\n {image && (\n <ListItemAvatar>\n <Avatar src={image.src} alt={image.alt}>\n {image.Icon && <Icon icon={image.Icon} />}\n </Avatar>\n </ListItemAvatar>\n )}\n <ListItemText disableTypography className={classes.listItemText}>\n <Typography variant=\"h6\">{title}</Typography>\n {meta && (\n <Typography variant=\"body2\" color=\"secondary.light\">\n {meta}\n </Typography>\n )}\n {body && (\n <Typography variant=\"body2\" color=\"grey.700\" className={classes.body}>\n {body}\n </Typography>\n )}\n </ListItemText>\n {status && (\n <Chip\n classes={{ root: classes.chipRoot }}\n icon={status.Icon && <Icon icon={status.Icon} />}\n label={status.text}\n />\n )}\n {secondaryAction && (\n <ListItemSecondaryAction>\n <IconButton\n style={{ color: 'black' }}\n aria-label={secondaryAction['aria-label']}\n onClick={(e) => secondaryAction.onClick(e, props)}\n >\n <Icon icon={secondaryAction.Icon} />\n </IconButton>\n </ListItemSecondaryAction>\n )}\n </MuiListItem>\n )\n}\n\nexport const Test = () => <MuiListItem button={undefined} />\n"],"names":["MuiListItem"],"mappings":";;;;;AAaA,IAAM,SAAS,GAAG,UAAU,CAAC,UAAC,KAAK,EAAA,EAAK,QAAC;AACvC,IAAA,QAAQ,EAAE;AACR,QAAA,WAAW,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;AAC7B,QAAA,MAAM,EAAE,SAAS;AAClB,KAAA;AACD,IAAA,IAAI,EAAE;AACJ,QAAA,UAAU,EAAE,KAAK;AAClB,KAAA;AACD,IAAA,YAAY,EAAE;AACZ,QAAA,WAAW,EAAE,MAAM;AACpB,KAAA;CACF,EAAC,EAAA,CAAC;AAEH;;;;AAIG;AAEI,IAAM,gBAAgB,GAAG,UAAC,KAA4B,EAAA;IACkC,KAAK,CAAA,MAApF,MAAE,KAAK,GAAwE,KAAK,CAA7E,KAAA,CAAA,CAAE,IAAI,GAAkE,KAAK,KAAvE,CAAE,CAAA,IAAI,GAA4D,KAAK,CAAA,IAAjE,CAAE,CAAA,KAAK,GAAqD,KAAK,MAA1D,CAAE,CAAA,MAAM,GAA6C,KAAK,CAAA,MAAlD,EAAE,eAAe,GAA4B,KAAK,CAAjC,eAAA,CAAA,CAAE,OAAO,GAAmB,KAAK,QAAxB,CAAK,CAAA,SAAS,UAAK,KAAK,EAA5F,CAAoF,QAAA,EAAA,OAAA,EAAA,MAAA,EAAA,MAAA,EAAA,OAAA,EAAA,QAAA,EAAA,iBAAA,EAAA,SAAA,CAAA;AAC1F,IAAA,IAAM,OAAO,GAAG,SAAS,CAAC,KAAK,CAAC;AAChC,IAAA,QACE,KAAA,CAAA,aAAA,CAACA,QAAW,EAAA,QAAA,CAAA,EAAC,MAAM,EAAE,OAAO,CAAC,OAAO,CAAQ,EAAE,OAAO,EAAE,UAAC,CAAC,EAAA,EAAK,OAAA,OAAO,IAAI,OAAO,CAAC,CAAC,EAAE,KAAK,CAAC,CAAA,EAAA,EAAA,EAAM,SAAS,CAAA;QACtG,KAAK,KACJ,KAAA,CAAA,aAAA,CAAC,cAAc,EAAA,IAAA;AACb,YAAA,KAAA,CAAA,aAAA,CAAC,MAAM,EAAA,EAAC,GAAG,EAAE,KAAK,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,CAAC,GAAG,EAAA,EACnC,KAAK,CAAC,IAAI,IAAI,KAAC,CAAA,aAAA,CAAA,IAAI,EAAC,EAAA,IAAI,EAAE,KAAK,CAAC,IAAI,EAAI,CAAA,CAClC,CACM,CAClB;QACD,KAAC,CAAA,aAAA,CAAA,YAAY,IAAC,iBAAiB,EAAA,IAAA,EAAC,SAAS,EAAE,OAAO,CAAC,YAAY,EAAA;AAC7D,YAAA,KAAA,CAAA,aAAA,CAAC,UAAU,EAAC,EAAA,OAAO,EAAC,IAAI,EAAA,EAAE,KAAK,CAAc;AAC5C,YAAA,IAAI,KACH,KAAC,CAAA,aAAA,CAAA,UAAU,IAAC,OAAO,EAAC,OAAO,EAAC,KAAK,EAAC,iBAAiB,EAChD,EAAA,IAAI,CACM,CACd;YACA,IAAI,KACH,KAAC,CAAA,aAAA,CAAA,UAAU,IAAC,OAAO,EAAC,OAAO,EAAC,KAAK,EAAC,UAAU,EAAC,SAAS,EAAE,OAAO,CAAC,IAAI,EACjE,EAAA,IAAI,CACM,CACd,CACY;AACd,QAAA,MAAM,KACL,KAAA,CAAA,aAAA,CAAC,IAAI,EAAA,EACH,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,QAAQ,EAAE,EACnC,IAAI,EAAE,MAAM,CAAC,IAAI,IAAI,KAAC,CAAA,aAAA,CAAA,IAAI,EAAC,EAAA,IAAI,EAAE,MAAM,CAAC,IAAI,EAAA,CAAI,EAChD,KAAK,EAAE,MAAM,CAAC,IAAI,GAClB,CACH;QACA,eAAe,KACd,KAAA,CAAA,aAAA,CAAC,uBAAuB,EAAA,IAAA;AACtB,YAAA,KAAA,CAAA,aAAA,CAAC,UAAU,EAAA,EACT,KAAK,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,EAAA,YAAA,EACb,eAAe,CAAC,YAAY,CAAC,EACzC,OAAO,EAAE,UAAC,CAAC,EAAK,EAAA,OAAA,eAAe,CAAC,OAAO,CAAC,CAAC,EAAE,KAAK,CAAC,GAAA,EAAA;AAEjD,gBAAA,KAAA,CAAA,aAAA,CAAC,IAAI,EAAA,EAAC,IAAI,EAAE,eAAe,CAAC,IAAI,EAAA,CAAI,CACzB,CACW,CAC3B,CACW;AAElB;;;;"}
@@ -1,25 +1,25 @@
1
- import { FC, MouseEvent as ReactMouseEvent, SVGProps } from 'react';
2
- import { ListItemProps } from '@material-ui/core';
3
- export interface StandardListItemProps extends Omit<ListItemProps, 'onClick'> {
4
- title: string;
5
- itemId?: string | number;
6
- meta?: string;
7
- body?: string;
8
- image?: {
9
- src?: string;
10
- alt?: string;
11
- Icon?: FC<SVGProps<SVGSVGElement>>;
12
- shape?: 'circle' | 'square';
13
- };
14
- status?: {
15
- text: string;
16
- severity?: string;
17
- Icon?: FC<SVGProps<SVGSVGElement>>;
18
- };
19
- secondaryAction?: {
20
- Icon: FC<SVGProps<SVGSVGElement>>;
21
- 'aria-label': string;
22
- onClick: (event: ReactMouseEvent<HTMLButtonElement, MouseEvent>, listItem: StandardListItemProps) => void;
23
- };
24
- onClick?: (event: ReactMouseEvent<HTMLButtonElement | HTMLLIElement, MouseEvent>, listItem: StandardListItemProps) => void;
25
- }
1
+ import { FC, MouseEvent as ReactMouseEvent, SVGProps } from 'react';
2
+ import { ListItemProps } from '@material-ui/core';
3
+ export interface StandardListItemProps extends Omit<ListItemProps, 'onClick'> {
4
+ title: string;
5
+ itemId?: string | number;
6
+ meta?: string;
7
+ body?: string;
8
+ image?: {
9
+ src?: string;
10
+ alt?: string;
11
+ Icon?: FC<SVGProps<SVGSVGElement>>;
12
+ shape?: 'circle' | 'square';
13
+ };
14
+ status?: {
15
+ text: string;
16
+ severity?: string;
17
+ Icon?: FC<SVGProps<SVGSVGElement>>;
18
+ };
19
+ secondaryAction?: {
20
+ Icon: FC<SVGProps<SVGSVGElement>>;
21
+ 'aria-label': string;
22
+ onClick: (event: ReactMouseEvent<HTMLButtonElement, MouseEvent>, listItem: StandardListItemProps) => void;
23
+ };
24
+ onClick?: (event: ReactMouseEvent<HTMLButtonElement | HTMLLIElement, MouseEvent>, listItem: StandardListItemProps) => void;
25
+ }
@@ -1,2 +1,2 @@
1
- export { StandardListItem } from './StandardListItem';
2
- export { StandardListItemProps } from './StandardListItemProps';
1
+ export { StandardListItem } from './StandardListItem';
2
+ export { StandardListItemProps } from './StandardListItemProps';
@@ -1,3 +1,3 @@
1
- import { FC } from 'react';
2
- import { ToastProps } from './ToastProps';
3
- export declare const Toast: FC<ToastProps>;
1
+ import { FC } from 'react';
2
+ import { ToastProps } from './ToastProps';
3
+ export declare const Toast: FC<ToastProps>;
@@ -0,0 +1,20 @@
1
+ import { __rest, __assign } from 'tslib';
2
+ import React from 'react';
3
+ import MuiSnackbar from '@material-ui/core/Snackbar';
4
+ import { Alert } from '../Alert/Alert.js';
5
+ import { useToastStyles } from './ToastStyles.js';
6
+
7
+ var Toast = function (props) {
8
+ var children = props.children, AlertProps = props.AlertProps, severity = props.severity, muiProps = __rest(props, ["children", "AlertProps", "severity"]);
9
+ var classes = useToastStyles(props);
10
+ return (React.createElement(MuiSnackbar, __assign({ ClickAwayListenerProps: { mouseEvent: false } }, muiProps),
11
+ React.createElement(Alert, __assign({ className: classes.root, action: null, severity: severity }, AlertProps), children)));
12
+ };
13
+ Toast.defaultProps = {
14
+ AlertProps: {},
15
+ autoHideDuration: 5000,
16
+ };
17
+ Toast.displayName = 'Toast';
18
+
19
+ export { Toast };
20
+ //# sourceMappingURL=Toast.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Toast.js","sources":["../../../../src/components/Toast/Toast.tsx"],"sourcesContent":["import React, { FC } from 'react'\nimport MuiSnackbar from '@material-ui/core/Snackbar'\n\nimport Alert from '../Alert'\nimport { useToastStyles } from './ToastStyles'\nimport { ToastProps } from './ToastProps'\n\nexport const Toast: FC<ToastProps> = (props) => {\n const { children, AlertProps, severity, ...muiProps } = props\n const classes = useToastStyles(props)\n return (\n <MuiSnackbar ClickAwayListenerProps={{ mouseEvent: false }} {...muiProps}>\n <Alert className={classes.root} action={null} severity={severity} {...AlertProps}>\n {children}\n </Alert>\n </MuiSnackbar>\n )\n}\n\nToast.defaultProps = {\n AlertProps: {},\n autoHideDuration: 5000,\n}\n\nToast.displayName = 'Toast'\n"],"names":[],"mappings":";;;;;;AAOO,IAAM,KAAK,GAAmB,UAAC,KAAK,EAAA;IACjC,IAAA,QAAQ,GAAwC,KAAK,CAAA,QAA7C,EAAE,UAAU,GAA4B,KAAK,CAAjC,UAAA,EAAE,QAAQ,GAAkB,KAAK,SAAvB,EAAK,QAAQ,UAAK,KAAK,EAAvD,CAA+C,UAAA,EAAA,YAAA,EAAA,UAAA,CAAA,CAAF;AACnD,IAAA,IAAM,OAAO,GAAG,cAAc,CAAC,KAAK,CAAC;AACrC,IAAA,QACE,KAAA,CAAA,aAAA,CAAC,WAAW,EAAA,QAAA,CAAA,EAAC,sBAAsB,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,EAAA,EAAM,QAAQ,CAAA;QACtE,KAAC,CAAA,aAAA,CAAA,KAAK,aAAC,SAAS,EAAE,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAM,EAAA,UAAU,GAC7E,QAAQ,CACH,CACI;AAElB;AAEA,KAAK,CAAC,YAAY,GAAG;AACnB,IAAA,UAAU,EAAE,EAAE;AACd,IAAA,gBAAgB,EAAE,IAAI;CACvB;AAED,KAAK,CAAC,WAAW,GAAG,OAAO;;;;"}
@@ -1,10 +1,10 @@
1
- import { SnackbarProps } from '@material-ui/core/Snackbar';
2
- import { AlertProps as MuiAlertProps } from '@material-ui/lab/Alert';
3
- export interface ToastProps extends SnackbarProps {
4
- /** Applied to the built in [Alert](?path=/docs/admin-ui-alert--props) Component. */
5
- AlertProps?: Omit<MuiAlertProps, 'ref'>;
6
- /** The severity of the Alert. */
7
- severity: 'error' | 'warning' | 'info' | 'success';
8
- /** @ignore */
9
- ref?: SnackbarProps['ref'];
10
- }
1
+ import { SnackbarProps } from '@material-ui/core/Snackbar';
2
+ import { AlertProps as MuiAlertProps } from '@material-ui/lab/Alert';
3
+ export interface ToastProps extends SnackbarProps {
4
+ /** Applied to the built in [Alert](?path=/docs/admin-ui-alert--props) Component. */
5
+ AlertProps?: Omit<MuiAlertProps, 'ref'>;
6
+ /** The severity of the Alert. */
7
+ severity: 'error' | 'warning' | 'info' | 'success';
8
+ /** @ignore */
9
+ ref?: SnackbarProps['ref'];
10
+ }
@@ -1,2 +1,2 @@
1
- import { ToastProps } from './ToastProps';
2
- export declare const useToastStyles: (props: ToastProps) => import("@material-ui/styles").ClassNameMap<string>;
1
+ import { ToastProps } from './ToastProps';
2
+ export declare const useToastStyles: (props: ToastProps) => import("@material-ui/styles").ClassNameMap<string>;
@@ -0,0 +1,16 @@
1
+ import { makeStyles } from '@material-ui/core/styles';
2
+
3
+ var useToastStyles = makeStyles(function (theme) { return ({
4
+ root: {
5
+ boxSizing: 'border-box',
6
+ padding: theme.spacing(0, 1.5),
7
+ /** TODO: design to define responsive width value. */
8
+ width: '350px',
9
+ '& > div:first-child': {
10
+ alignItems: 'center',
11
+ },
12
+ },
13
+ }); });
14
+
15
+ export { useToastStyles };
16
+ //# sourceMappingURL=ToastStyles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ToastStyles.js","sources":["../../../../src/components/Toast/ToastStyles.ts"],"sourcesContent":["import { makeStyles, Theme } from '@material-ui/core/styles'\n\nimport { ToastProps } from './ToastProps'\n\nexport const useToastStyles = makeStyles<Theme, ToastProps>((theme) => ({\n root: {\n boxSizing: 'border-box',\n padding: theme.spacing(0, 1.5),\n /** TODO: design to define responsive width value. */\n width: '350px',\n '& > div:first-child': {\n alignItems: 'center',\n },\n },\n}))\n"],"names":[],"mappings":";;AAIa,IAAA,cAAc,GAAG,UAAU,CAAoB,UAAC,KAAK,EAAK,EAAA,QAAC;AACtE,IAAA,IAAI,EAAE;AACJ,QAAA,SAAS,EAAE,YAAY;QACvB,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,EAAE,GAAG,CAAC;;AAE9B,QAAA,KAAK,EAAE,OAAO;AACd,QAAA,qBAAqB,EAAE;AACrB,YAAA,UAAU,EAAE,QAAQ;AACrB,SAAA;AACF,KAAA;CACF,EAAC,EAAA;;;;"}
@@ -1,2 +1,2 @@
1
- export { Toast as default } from './Toast';
2
- export { ToastProps } from './ToastProps';
1
+ export { Toast as default } from './Toast';
2
+ export { ToastProps } from './ToastProps';
@@ -1,27 +1,27 @@
1
- export { default as Alert, AlertProps } from './Alert';
2
- export { default as AlertDialog, AlertDialogProps } from './AlertDialog';
3
- export { default as AlertDialogHeader } from './AlertDialogHeader';
4
- export { default as AlertTitle, AlertTitleProps } from './AlertTitle';
5
- export { default as Button, ButtonProps } from './Button';
6
- export { default as ButtonGroup, ButtonGroupProps } from './ButtonGroup';
7
- export { default as FeatureIntro, FeatureIntroProps } from './FeatureIntro';
8
- export { default as FullScreenStepper, FullScreenStepperProps, FullScreenStepperContext } from './FullScreenStepper';
9
- export { default as FullScreenStepperActions, FullScreenStepperActionsProps } from './FullScreenStepperActions';
10
- export { default as FullScreenStepperContent } from './FullScreenStepperContent';
11
- export { default as SelectableCard, SelectableCardProps } from './SelectableCard';
12
- export { default as Toast, ToastProps } from './Toast';
13
- export { DialogTitle, DialogTitleProps } from './DialogTitle';
14
- export { DialogActions, DialogActionsProps } from './DialogActions';
15
- export { Dialog, DialogProps } from './Dialog';
16
- export { DialogContent, DialogContentProps } from './DialogContent';
17
- export { Page } from './Page';
18
- export { PageBody } from './PageBody';
19
- export { PageSection } from './PageSection';
20
- export { PageSections } from './PageSections';
21
- export { PageSectionHead } from './PageSectionHead';
22
- export { PageSectionTitle } from './PageSectionTitle';
23
- export { SettingsIndexCardGroup } from './SettingsIndexCardGroup';
24
- export { SettingsIndexCard, SettingsIndexCardProps } from './SettingsIndexCard';
25
- export { List, ListProps } from './List';
26
- export { StandardListItem, StandardListItemProps } from './StandardListItem';
27
- export { Switch, SwitchProps, TextField, TextFieldProps, MenuItem, MenuItemProps, CircularProgress, CircularProgressProps, } from '@material-ui/core';
1
+ export { default as Alert, AlertProps } from './Alert';
2
+ export { default as AlertDialog, AlertDialogProps } from './AlertDialog';
3
+ export { default as AlertDialogHeader } from './AlertDialogHeader';
4
+ export { default as AlertTitle, AlertTitleProps } from './AlertTitle';
5
+ export { default as Button, ButtonProps } from './Button';
6
+ export { default as ButtonGroup, ButtonGroupProps } from './ButtonGroup';
7
+ export { default as FeatureIntro, FeatureIntroProps } from './FeatureIntro';
8
+ export { default as FullScreenStepper, FullScreenStepperProps, FullScreenStepperContext } from './FullScreenStepper';
9
+ export { default as FullScreenStepperActions, FullScreenStepperActionsProps } from './FullScreenStepperActions';
10
+ export { default as FullScreenStepperContent } from './FullScreenStepperContent';
11
+ export { default as SelectableCard, SelectableCardProps } from './SelectableCard';
12
+ export { default as Toast, ToastProps } from './Toast';
13
+ export { DialogTitle, DialogTitleProps } from './DialogTitle';
14
+ export { DialogActions, DialogActionsProps } from './DialogActions';
15
+ export { Dialog, DialogProps } from './Dialog';
16
+ export { DialogContent, DialogContentProps } from './DialogContent';
17
+ export { Page } from './Page';
18
+ export { PageBody } from './PageBody';
19
+ export { PageSection } from './PageSection';
20
+ export { PageSections } from './PageSections';
21
+ export { PageSectionHead } from './PageSectionHead';
22
+ export { PageSectionTitle } from './PageSectionTitle';
23
+ export { SettingsIndexCardGroup } from './SettingsIndexCardGroup';
24
+ export { SettingsIndexCard, SettingsIndexCardProps } from './SettingsIndexCard';
25
+ export { List, ListProps } from './List';
26
+ export { StandardListItem, StandardListItemProps } from './StandardListItem';
27
+ export { Switch, SwitchProps, TextField, TextFieldProps, MenuItem, MenuItemProps, CircularProgress, CircularProgressProps, } from '@material-ui/core';
@@ -1,3 +1,3 @@
1
- export { useFullScreenStepperContext } from './useFullScreenStepperContext';
2
- export { useSelectableCard } from './useSelectableCard';
3
- export { useDialog } from './useDialog';
1
+ export { useFullScreenStepperContext } from './useFullScreenStepperContext';
2
+ export { useSelectableCard } from './useSelectableCard';
3
+ export { useDialog } from './useDialog';
@@ -1,12 +1,12 @@
1
- /// <reference types="react" />
2
- export declare const useDialog: () => ({
3
- onClick: () => void;
4
- } | {
5
- open: boolean;
6
- onClose: () => void;
7
- } | {
8
- open: boolean;
9
- setOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
10
- toggle: () => void;
11
- close: () => void;
12
- })[];
1
+ /// <reference types="react" />
2
+ export declare const useDialog: () => ({
3
+ onClick: () => void;
4
+ } | {
5
+ open: boolean;
6
+ onClose: () => void;
7
+ } | {
8
+ open: boolean;
9
+ setOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
10
+ toggle: () => void;
11
+ close: () => void;
12
+ })[];
@@ -0,0 +1,13 @@
1
+ import { useState } from 'react';
2
+
3
+ var useDialog = function () {
4
+ var _a = useState(false), open = _a[0], setOpen = _a[1];
5
+ var toggle = function () { return setOpen(function (current) { return !current; }); };
6
+ var close = function () { return setOpen(false); };
7
+ var triggerProps = { onClick: toggle };
8
+ var dialogProps = { open: open, onClose: close };
9
+ return [triggerProps, dialogProps, { open: open, setOpen: setOpen, toggle: toggle, close: close }];
10
+ };
11
+
12
+ export { useDialog };
13
+ //# sourceMappingURL=useDialog.js.map