@popmenu/admin-ui 0.127.0 → 0.128.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (203) hide show
  1. package/build/cjs/components/Alert/index.d.ts +2 -2
  2. package/build/cjs/components/AlertDialog/AlertDialog.d.ts +1 -1
  3. package/build/cjs/components/AlertDialog/index.d.ts +2 -2
  4. package/build/cjs/components/AlertDialogHeader/index.d.ts +1 -1
  5. package/build/cjs/components/AlertTitle/index.d.ts +1 -1
  6. package/build/cjs/components/Button/ButtonProps.d.ts +1 -1
  7. package/build/cjs/components/Button/ButtonStyles.d.ts +1 -1
  8. package/build/cjs/components/Button/index.d.ts +2 -2
  9. package/build/cjs/components/Button/util/deriveButtonProps.d.ts +1 -1
  10. package/build/cjs/components/ButtonGroup/ButtonGroup.d.ts +1 -1
  11. package/build/cjs/components/ButtonGroup/index.d.ts +2 -2
  12. package/build/cjs/components/Dialog/index.d.ts +2 -1
  13. package/build/cjs/components/DialogActions/index.d.ts +1 -1
  14. package/build/cjs/components/DialogContent/index.d.ts +2 -1
  15. package/build/cjs/components/DialogTitle/index.d.ts +2 -1
  16. package/build/cjs/components/FeatureIntro/FeatureIntroProps.d.ts +0 -1
  17. package/build/cjs/components/FeatureIntro/index.d.ts +2 -2
  18. package/build/cjs/components/FullScreenStepper/FullScreenStepperContext.d.ts +0 -1
  19. package/build/cjs/components/FullScreenStepper/FullScreenStepperProps.d.ts +10 -11
  20. package/build/cjs/components/FullScreenStepper/index.d.ts +1 -1
  21. package/build/cjs/components/FullScreenStepperActions/index.d.ts +2 -2
  22. package/build/cjs/components/FullScreenStepperActions/util/StepperActionsCancelButton.d.ts +1 -1
  23. package/build/cjs/components/FullScreenStepperActions/util/StepperActionsNextButton.d.ts +1 -1
  24. package/build/cjs/components/FullScreenStepperActions/util/StepperActionsPreviousButton.d.ts +1 -1
  25. package/build/cjs/components/FullScreenStepperActions/util/augmentButtonProps.d.ts +1 -1
  26. package/build/cjs/components/FullScreenStepperContent/index.d.ts +1 -1
  27. package/build/cjs/components/FullScreenStepperHeader/index.d.ts +1 -1
  28. package/build/cjs/components/FullScreenStepperProgress/index.d.ts +1 -1
  29. package/build/cjs/components/List/List.d.ts +0 -1
  30. package/build/cjs/components/List/index.d.ts +1 -1
  31. package/build/cjs/components/PageSectionTitle/PageSectionTitle.d.ts +0 -1
  32. package/build/cjs/components/SelectableCard/index.d.ts +2 -2
  33. package/build/cjs/components/SettingsIndexCard/SettingsIndexCardProps.d.ts +1 -1
  34. package/build/cjs/components/SettingsIndexCard/SettingsIndexCardStyles.d.ts +1 -1
  35. package/build/cjs/components/SettingsIndexCard/index.d.ts +1 -1
  36. package/build/cjs/components/SettingsIndexCardGroup/SettingsIndexCardGroup.d.ts +0 -1
  37. package/build/cjs/components/StandardListItem/StandardListItem.d.ts +0 -1
  38. package/build/cjs/components/StandardListItem/index.d.ts +1 -1
  39. package/build/cjs/components/Toast/index.d.ts +2 -2
  40. package/build/cjs/components/index.d.ts +27 -26
  41. package/build/cjs/hooks/useDialog.d.ts +0 -1
  42. package/build/cjs/hooks/useFullScreenStepperContext.d.ts +1 -1
  43. package/build/cjs/index.js +431 -459
  44. package/build/cjs/index.js.map +1 -1
  45. package/build/cjs/theme/adminDarkTheme.d.ts +1 -1
  46. package/build/esm/components/Alert/Alert.js +14 -15
  47. package/build/esm/components/Alert/Alert.js.map +1 -1
  48. package/build/esm/components/Alert/AlertStyles.js +5 -8
  49. package/build/esm/components/Alert/AlertStyles.js.map +1 -1
  50. package/build/esm/components/Alert/index.d.ts +2 -2
  51. package/build/esm/components/AlertDialog/AlertDialog.d.ts +1 -1
  52. package/build/esm/components/AlertDialog/AlertDialog.js +6 -7
  53. package/build/esm/components/AlertDialog/AlertDialog.js.map +1 -1
  54. package/build/esm/components/AlertDialog/AlertDialogStyles.js +3 -3
  55. package/build/esm/components/AlertDialog/AlertDialogStyles.js.map +1 -1
  56. package/build/esm/components/AlertDialog/index.d.ts +2 -2
  57. package/build/esm/components/AlertDialogHeader/AlertDialogHeader.js +3 -4
  58. package/build/esm/components/AlertDialogHeader/AlertDialogHeader.js.map +1 -1
  59. package/build/esm/components/AlertDialogHeader/index.d.ts +1 -1
  60. package/build/esm/components/AlertTitle/AlertTitle.js +3 -4
  61. package/build/esm/components/AlertTitle/AlertTitle.js.map +1 -1
  62. package/build/esm/components/AlertTitle/index.d.ts +1 -1
  63. package/build/esm/components/Button/Button.js +12 -7
  64. package/build/esm/components/Button/Button.js.map +1 -1
  65. package/build/esm/components/Button/ButtonProps.d.ts +1 -1
  66. package/build/esm/components/Button/ButtonStyles.d.ts +1 -1
  67. package/build/esm/components/Button/ButtonStyles.js +52 -53
  68. package/build/esm/components/Button/ButtonStyles.js.map +1 -1
  69. package/build/esm/components/Button/index.d.ts +2 -2
  70. package/build/esm/components/Button/util/deriveButtonProps.d.ts +1 -1
  71. package/build/esm/components/Button/util/deriveButtonProps.js +3 -3
  72. package/build/esm/components/Button/util/deriveButtonProps.js.map +1 -1
  73. package/build/esm/components/ButtonGroup/ButtonGroup.d.ts +1 -1
  74. package/build/esm/components/ButtonGroup/ButtonGroup.js +16 -13
  75. package/build/esm/components/ButtonGroup/ButtonGroup.js.map +1 -1
  76. package/build/esm/components/ButtonGroup/ButtonGroupStyles.js +5 -5
  77. package/build/esm/components/ButtonGroup/ButtonGroupStyles.js.map +1 -1
  78. package/build/esm/components/ButtonGroup/index.d.ts +2 -2
  79. package/build/esm/components/Dialog/index.d.ts +2 -1
  80. package/build/esm/components/DialogActions/DialogActions.js +8 -12
  81. package/build/esm/components/DialogActions/DialogActions.js.map +1 -1
  82. package/build/esm/components/DialogActions/index.d.ts +1 -1
  83. package/build/esm/components/DialogContent/index.d.ts +2 -1
  84. package/build/esm/components/DialogTitle/index.d.ts +2 -1
  85. package/build/esm/components/FeatureIntro/FeatureIntro.js +9 -10
  86. package/build/esm/components/FeatureIntro/FeatureIntro.js.map +1 -1
  87. package/build/esm/components/FeatureIntro/FeatureIntroProps.d.ts +0 -1
  88. package/build/esm/components/FeatureIntro/FeatureIntroStyles.js +12 -15
  89. package/build/esm/components/FeatureIntro/FeatureIntroStyles.js.map +1 -1
  90. package/build/esm/components/FeatureIntro/index.d.ts +2 -2
  91. package/build/esm/components/FullScreenStepper/FullScreenStepper.js +43 -74
  92. package/build/esm/components/FullScreenStepper/FullScreenStepper.js.map +1 -1
  93. package/build/esm/components/FullScreenStepper/FullScreenStepperContext.d.ts +0 -1
  94. package/build/esm/components/FullScreenStepper/FullScreenStepperContext.js +1 -1
  95. package/build/esm/components/FullScreenStepper/FullScreenStepperContext.js.map +1 -1
  96. package/build/esm/components/FullScreenStepper/FullScreenStepperProps.d.ts +10 -11
  97. package/build/esm/components/FullScreenStepper/index.d.ts +1 -1
  98. package/build/esm/components/FullScreenStepperActions/FullScreenStepperActions.js +6 -7
  99. package/build/esm/components/FullScreenStepperActions/FullScreenStepperActions.js.map +1 -1
  100. package/build/esm/components/FullScreenStepperActions/FullScreenStepperActionsStyles.js +4 -4
  101. package/build/esm/components/FullScreenStepperActions/FullScreenStepperActionsStyles.js.map +1 -1
  102. package/build/esm/components/FullScreenStepperActions/index.d.ts +2 -2
  103. package/build/esm/components/FullScreenStepperActions/util/StepperActionsCancelButton.d.ts +1 -1
  104. package/build/esm/components/FullScreenStepperActions/util/StepperActionsCancelButton.js +4 -5
  105. package/build/esm/components/FullScreenStepperActions/util/StepperActionsCancelButton.js.map +1 -1
  106. package/build/esm/components/FullScreenStepperActions/util/StepperActionsNextButton.d.ts +1 -1
  107. package/build/esm/components/FullScreenStepperActions/util/StepperActionsNextButton.js +8 -9
  108. package/build/esm/components/FullScreenStepperActions/util/StepperActionsNextButton.js.map +1 -1
  109. package/build/esm/components/FullScreenStepperActions/util/StepperActionsPreviousButton.d.ts +1 -1
  110. package/build/esm/components/FullScreenStepperActions/util/StepperActionsPreviousButton.js +4 -5
  111. package/build/esm/components/FullScreenStepperActions/util/StepperActionsPreviousButton.js.map +1 -1
  112. package/build/esm/components/FullScreenStepperActions/util/StepperActionsStatusText.js +4 -4
  113. package/build/esm/components/FullScreenStepperActions/util/StepperActionsStatusText.js.map +1 -1
  114. package/build/esm/components/FullScreenStepperActions/util/augmentButtonProps.d.ts +1 -1
  115. package/build/esm/components/FullScreenStepperActions/util/augmentButtonProps.js +11 -24
  116. package/build/esm/components/FullScreenStepperActions/util/augmentButtonProps.js.map +1 -1
  117. package/build/esm/components/FullScreenStepperContent/FullScreenStepperContent.js +3 -4
  118. package/build/esm/components/FullScreenStepperContent/FullScreenStepperContent.js.map +1 -1
  119. package/build/esm/components/FullScreenStepperContent/index.d.ts +1 -1
  120. package/build/esm/components/FullScreenStepperHeader/FullScreenStepperHeader.js +3 -3
  121. package/build/esm/components/FullScreenStepperHeader/FullScreenStepperHeader.js.map +1 -1
  122. package/build/esm/components/FullScreenStepperHeader/FullScreenStepperHeaderStyles.js +18 -21
  123. package/build/esm/components/FullScreenStepperHeader/FullScreenStepperHeaderStyles.js.map +1 -1
  124. package/build/esm/components/FullScreenStepperHeader/index.d.ts +1 -1
  125. package/build/esm/components/FullScreenStepperProgress/FullScreenStepperProgress.js +2 -2
  126. package/build/esm/components/FullScreenStepperProgress/FullScreenStepperProgress.js.map +1 -1
  127. package/build/esm/components/FullScreenStepperProgress/FullScreenStepperProgressStyles.js +9 -9
  128. package/build/esm/components/FullScreenStepperProgress/FullScreenStepperProgressStyles.js.map +1 -1
  129. package/build/esm/components/FullScreenStepperProgress/index.d.ts +1 -1
  130. package/build/esm/components/List/List.d.ts +0 -1
  131. package/build/esm/components/List/List.js +4 -6
  132. package/build/esm/components/List/List.js.map +1 -1
  133. package/build/esm/components/List/index.d.ts +1 -1
  134. package/build/esm/components/List/styles.js +3 -3
  135. package/build/esm/components/List/styles.js.map +1 -1
  136. package/build/esm/components/Page/Page.js +3 -4
  137. package/build/esm/components/Page/Page.js.map +1 -1
  138. package/build/esm/components/PageBody/PageBody.js +3 -4
  139. package/build/esm/components/PageBody/PageBody.js.map +1 -1
  140. package/build/esm/components/PageSection/PageSection.js +4 -5
  141. package/build/esm/components/PageSection/PageSection.js.map +1 -1
  142. package/build/esm/components/PageSection/PageSectionStyles.js +8 -14
  143. package/build/esm/components/PageSection/PageSectionStyles.js.map +1 -1
  144. package/build/esm/components/PageSectionHead/PageSectionHead.js +4 -5
  145. package/build/esm/components/PageSectionHead/PageSectionHead.js.map +1 -1
  146. package/build/esm/components/PageSectionTitle/PageSectionTitle.d.ts +0 -1
  147. package/build/esm/components/PageSectionTitle/PageSectionTitle.js +4 -5
  148. package/build/esm/components/PageSectionTitle/PageSectionTitle.js.map +1 -1
  149. package/build/esm/components/PageSectionTitle/styles.js +2 -2
  150. package/build/esm/components/PageSectionTitle/styles.js.map +1 -1
  151. package/build/esm/components/PageSections/PageSections.js +3 -4
  152. package/build/esm/components/PageSections/PageSections.js.map +1 -1
  153. package/build/esm/components/SelectableCard/SelectableCard.js +7 -8
  154. package/build/esm/components/SelectableCard/SelectableCard.js.map +1 -1
  155. package/build/esm/components/SelectableCard/SelectableCardStyles.js +8 -20
  156. package/build/esm/components/SelectableCard/SelectableCardStyles.js.map +1 -1
  157. package/build/esm/components/SelectableCard/index.d.ts +2 -2
  158. package/build/esm/components/SettingsIndexCard/SettingsIndexCard.js +6 -7
  159. package/build/esm/components/SettingsIndexCard/SettingsIndexCard.js.map +1 -1
  160. package/build/esm/components/SettingsIndexCard/SettingsIndexCardProps.d.ts +1 -1
  161. package/build/esm/components/SettingsIndexCard/SettingsIndexCardStyles.d.ts +1 -1
  162. package/build/esm/components/SettingsIndexCard/SettingsIndexCardStyles.js +3 -3
  163. package/build/esm/components/SettingsIndexCard/SettingsIndexCardStyles.js.map +1 -1
  164. package/build/esm/components/SettingsIndexCard/index.d.ts +1 -1
  165. package/build/esm/components/SettingsIndexCardGroup/SettingsIndexCardGroup.d.ts +0 -1
  166. package/build/esm/components/SettingsIndexCardGroup/SettingsIndexCardGroup.js +3 -4
  167. package/build/esm/components/SettingsIndexCardGroup/SettingsIndexCardGroup.js.map +1 -1
  168. package/build/esm/components/StandardListItem/StandardListItem.d.ts +0 -1
  169. package/build/esm/components/StandardListItem/StandardListItem.js +7 -8
  170. package/build/esm/components/StandardListItem/StandardListItem.js.map +1 -1
  171. package/build/esm/components/StandardListItem/index.d.ts +1 -1
  172. package/build/esm/components/Toast/Toast.js +4 -6
  173. package/build/esm/components/Toast/Toast.js.map +1 -1
  174. package/build/esm/components/Toast/ToastStyles.js +2 -2
  175. package/build/esm/components/Toast/ToastStyles.js.map +1 -1
  176. package/build/esm/components/Toast/index.d.ts +2 -2
  177. package/build/esm/components/index.d.ts +27 -26
  178. package/build/esm/hooks/useDialog.d.ts +0 -1
  179. package/build/esm/hooks/useDialog.js +7 -7
  180. package/build/esm/hooks/useDialog.js.map +1 -1
  181. package/build/esm/hooks/useFullScreenStepperContext.d.ts +1 -1
  182. package/build/esm/hooks/useFullScreenStepperContext.js +1 -1
  183. package/build/esm/hooks/useFullScreenStepperContext.js.map +1 -1
  184. package/build/esm/hooks/useSelectableCard.js +11 -13
  185. package/build/esm/hooks/useSelectableCard.js.map +1 -1
  186. package/build/esm/theme/adminDarkTheme.d.ts +1 -1
  187. package/build/esm/theme/adminDarkTheme.js +19 -5
  188. package/build/esm/theme/adminDarkTheme.js.map +1 -1
  189. package/build/esm/theme/adminLightTheme.js +19 -5
  190. package/build/esm/theme/adminLightTheme.js.map +1 -1
  191. package/build/esm/theme/breakpoints.js +1 -1
  192. package/build/esm/theme/breakpoints.js.map +1 -1
  193. package/build/esm/theme/customThemeProperties.js +20 -14
  194. package/build/esm/theme/customThemeProperties.js.map +1 -1
  195. package/build/esm/theme/overrides.js +1 -1
  196. package/build/esm/theme/overrides.js.map +1 -1
  197. package/build/esm/theme/palette.js +4 -4
  198. package/build/esm/theme/palette.js.map +1 -1
  199. package/build/esm/theme/props.js +1 -1
  200. package/build/esm/theme/props.js.map +1 -1
  201. package/build/esm/theme/typography.js +2 -2
  202. package/build/esm/theme/typography.js.map +1 -1
  203. package/package.json +3 -4
@@ -1,27 +1,14 @@
1
- import { __assign, __awaiter, __generator } from 'tslib';
2
-
3
- var augmentButtonProps = function (internalProps, externalProps, setStepCursor, stepCursor, incrementor) {
4
- if (externalProps === void 0) { externalProps = {}; }
5
- var mergedProps = __assign(__assign({}, internalProps), externalProps);
6
- mergedProps.onClick = function () { return __awaiter(void 0, void 0, void 0, function () {
7
- return __generator(this, function (_a) {
8
- switch (_a.label) {
9
- case 0:
10
- if (!(typeof externalProps.onClick === 'function')) return [3 /*break*/, 2];
11
- return [4 /*yield*/, externalProps.onClick({})];
12
- case 1:
13
- _a.sent();
14
- setStepCursor(stepCursor + incrementor);
15
- return [3 /*break*/, 3];
16
- case 2:
17
- if (typeof internalProps.onClick === 'function') {
18
- internalProps.onClick();
19
- }
20
- _a.label = 3;
21
- case 3: return [2 /*return*/];
22
- }
23
- });
24
- }); };
1
+ const augmentButtonProps = (internalProps, externalProps = {}, setStepCursor, stepCursor, incrementor) => {
2
+ const mergedProps = { ...internalProps, ...externalProps };
3
+ mergedProps.onClick = async () => {
4
+ if (typeof externalProps.onClick === 'function') {
5
+ await externalProps.onClick({});
6
+ setStepCursor(stepCursor + incrementor);
7
+ }
8
+ else if (typeof internalProps.onClick === 'function') {
9
+ internalProps.onClick();
10
+ }
11
+ };
25
12
  return mergedProps;
26
13
  };
27
14
 
@@ -1 +1 @@
1
- {"version":3,"file":"augmentButtonProps.js","sources":["../../../../../src/components/FullScreenStepperActions/util/augmentButtonProps.ts"],"sourcesContent":["import React from 'react'\n\nimport { ButtonProps } from '../../Button'\nimport { SetStepCursor, StepCursor } from '../../FullScreenStepper/FullScreenStepperProps'\n\nexport const augmentButtonProps = (\n internalProps: { onClick?: () => Promise<void> },\n externalProps: ButtonProps = {},\n setStepCursor: SetStepCursor,\n stepCursor: StepCursor,\n incrementor: number,\n): ButtonProps => {\n const mergedProps = { ...internalProps, ...externalProps }\n mergedProps.onClick = async () => {\n if (typeof externalProps.onClick === 'function') {\n await externalProps.onClick({} as React.MouseEvent<HTMLButtonElement, MouseEvent>)\n setStepCursor(stepCursor + incrementor)\n } else if (typeof internalProps.onClick === 'function') {\n internalProps.onClick()\n }\n }\n return mergedProps\n}\n"],"names":[],"mappings":";;AAKO,IAAM,kBAAkB,GAAG,UAChC,aAAgD,EAChD,aAA+B,EAC/B,aAA4B,EAC5B,UAAsB,EACtB,WAAmB,EAAA;AAHnB,IAAA,IAAA,aAAA,KAAA,MAAA,EAAA,EAAA,aAA+B,GAAA,EAAA,CAAA;AAK/B,IAAA,IAAM,WAAW,GAAQ,QAAA,CAAA,QAAA,CAAA,EAAA,EAAA,aAAa,CAAK,EAAA,aAAa,CAAE;IAC1D,WAAW,CAAC,OAAO,GAAG,YAAA,EAAA,OAAA,SAAA,CAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,YAAA;;;;0BAChB,OAAO,aAAa,CAAC,OAAO,KAAK,UAAU,CAAA,EAA3C,OAA2C,CAAA,CAAA,YAAA,CAAA,CAAA;AAC7C,oBAAA,OAAA,CAAA,CAAA,YAAM,aAAa,CAAC,OAAO,CAAC,EAAqD,CAAC,CAAA;;AAAlF,oBAAA,EAAA,CAAA,IAAA,EAAkF;AAClF,oBAAA,aAAa,CAAC,UAAU,GAAG,WAAW,CAAC;;;AAClC,oBAAA,IAAI,OAAO,aAAa,CAAC,OAAO,KAAK,UAAU,EAAE;wBACtD,aAAa,CAAC,OAAO,EAAE;AACxB;;;;;SACF;AACD,IAAA,OAAO,WAAW;AACpB;;;;"}
1
+ {"version":3,"file":"augmentButtonProps.js","sources":["../../../../../src/components/FullScreenStepperActions/util/augmentButtonProps.ts"],"sourcesContent":["import React from 'react'\n\nimport { ButtonProps } from '../../Button'\nimport { SetStepCursor, StepCursor } from '../../FullScreenStepper/FullScreenStepperProps'\n\nexport const augmentButtonProps = (\n internalProps: { onClick?: () => Promise<void> },\n externalProps: ButtonProps = {},\n setStepCursor: SetStepCursor,\n stepCursor: StepCursor,\n incrementor: number,\n): ButtonProps => {\n const mergedProps = { ...internalProps, ...externalProps }\n mergedProps.onClick = async () => {\n if (typeof externalProps.onClick === 'function') {\n await externalProps.onClick({} as React.MouseEvent<HTMLButtonElement, MouseEvent>)\n setStepCursor(stepCursor + incrementor)\n } else if (typeof internalProps.onClick === 'function') {\n internalProps.onClick()\n }\n }\n return mergedProps\n}\n"],"names":[],"mappings":"AAKa,MAAA,kBAAkB,GAAG,CAChC,aAAgD,EAChD,aAAA,GAA6B,EAAE,EAC/B,aAA4B,EAC5B,UAAsB,EACtB,WAAmB,KACJ;IACf,MAAM,WAAW,GAAG,EAAE,GAAG,aAAa,EAAE,GAAG,aAAa,EAAE;AAC1D,IAAA,WAAW,CAAC,OAAO,GAAG,YAAW;AAC/B,QAAA,IAAI,OAAO,aAAa,CAAC,OAAO,KAAK,UAAU,EAAE;AAC/C,YAAA,MAAM,aAAa,CAAC,OAAO,CAAC,EAAqD,CAAC;AAClF,YAAA,aAAa,CAAC,UAAU,GAAG,WAAW,CAAC;;AAClC,aAAA,IAAI,OAAO,aAAa,CAAC,OAAO,KAAK,UAAU,EAAE;YACtD,aAAa,CAAC,OAAO,EAAE;;AAE3B,KAAC;AACD,IAAA,OAAO,WAAW;AACpB;;;;"}
@@ -1,10 +1,9 @@
1
- import { __rest, __assign } from 'tslib';
2
1
  import React from 'react';
3
2
  import { Box } from '@popmenu/common-ui';
4
3
 
5
- var FullScreenStepperContent = function (props) {
6
- props.name; var boxProps = __rest(props, ["name"]);
7
- return (React.createElement(Box, __assign({ py: 8 }, boxProps), props.children));
4
+ const FullScreenStepperContent = (props) => {
5
+ const { name: remove, ...boxProps } = props;
6
+ return (React.createElement(Box, { py: 8, ...boxProps }, props.children));
8
7
  };
9
8
 
10
9
  export { FullScreenStepperContent };
@@ -1 +1 @@
1
- {"version":3,"file":"FullScreenStepperContent.js","sources":["../../../../src/components/FullScreenStepperContent/FullScreenStepperContent.tsx"],"sourcesContent":["import React, { FC } from 'react'\nimport { Box, BoxProps } from '@popmenu/common-ui'\n\nexport const FullScreenStepperContent: FC<BoxProps & { name: string }> = (props) => {\n const { name: remove, ...boxProps } = props\n return (\n <Box py={8} {...boxProps}>\n {props.children}\n </Box>\n )\n}\n"],"names":[],"mappings":";;;;AAGO,IAAM,wBAAwB,GAAoC,UAAC,KAAK,EAAA;IACvC,KAAK,CAAvB,IAAA,CAAA,KAAK,QAAQ,GAAA,MAAA,CAAK,KAAK,EAArC,CAA6B,MAAA,CAAA;AACnC,IAAA,QACE,KAAA,CAAA,aAAA,CAAC,GAAG,EAAA,QAAA,CAAA,EAAC,EAAE,EAAE,CAAC,EAAM,EAAA,QAAQ,GACrB,KAAK,CAAC,QAAQ,CACX;AAEV;;;;"}
1
+ {"version":3,"file":"FullScreenStepperContent.js","sources":["../../../../src/components/FullScreenStepperContent/FullScreenStepperContent.tsx"],"sourcesContent":["import React, { FC } from 'react'\nimport { Box, BoxProps } from '@popmenu/common-ui'\n\nexport const FullScreenStepperContent: FC<BoxProps & { name: string }> = (props) => {\n const { name: remove, ...boxProps } = props\n return (\n <Box py={8} {...boxProps}>\n {props.children}\n </Box>\n )\n}\n"],"names":[],"mappings":";;;AAGa,MAAA,wBAAwB,GAAoC,CAAC,KAAK,KAAI;IACjF,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,QAAQ,EAAE,GAAG,KAAK;AAC3C,IAAA,QACE,KAAA,CAAA,aAAA,CAAC,GAAG,EAAA,EAAC,EAAE,EAAE,CAAC,EAAM,GAAA,QAAQ,IACrB,KAAK,CAAC,QAAQ,CACX;AAEV;;;;"}
@@ -1 +1 @@
1
- export { FullScreenStepperContent as default } from './FullScreenStepperContent';
1
+ export { FullScreenStepperContent } from './FullScreenStepperContent';
@@ -4,9 +4,9 @@ import { X } from '@popmenu/web-icons';
4
4
  import { FullScreenStepperProgress } from '../FullScreenStepperProgress/FullScreenStepperProgress.js';
5
5
  import { useFullScreenStepperHeaderStyles } from './FullScreenStepperHeaderStyles.js';
6
6
 
7
- var FullScreenStepperHeader = function (props) {
8
- var stepCount = props.stepCount, stepCursor = props.stepCursor, step = props.step, onClose = props.onClose;
9
- var classes = useFullScreenStepperHeaderStyles(props);
7
+ const FullScreenStepperHeader = (props) => {
8
+ const { stepCount, stepCursor, step, onClose } = props;
9
+ const classes = useFullScreenStepperHeaderStyles(props);
10
10
  return (React.createElement(Box, { className: classes.root },
11
11
  React.createElement(Typography, { variant: "h6" }, step.title),
12
12
  React.createElement(Typography, null,
@@ -1 +1 @@
1
- {"version":3,"file":"FullScreenStepperHeader.js","sources":["../../../../src/components/FullScreenStepperHeader/FullScreenStepperHeader.tsx"],"sourcesContent":["import React, { FC } from 'react'\n\nimport { Box, Typography, IconButton, Icon } from '@popmenu/common-ui'\nimport { X as XIcon } from '@popmenu/web-icons'\nimport FullScreenStepperProgress from '../FullScreenStepperProgress'\nimport { useFullScreenStepperHeaderStyles } from './FullScreenStepperHeaderStyles'\nimport { FullScreenStepperHeaderProps } from './FullScreenStepperHeaderProps'\n\nexport const FullScreenStepperHeader: FC<FullScreenStepperHeaderProps> = (props) => {\n const { stepCount, stepCursor, step, onClose } = props\n const classes = useFullScreenStepperHeaderStyles(props)\n return (\n <Box className={classes.root}>\n <Typography variant=\"h6\">{step.title}</Typography>\n <Typography>\n {stepCursor} of {stepCount}\n </Typography>\n <IconButton className={classes.closeButton} onClick={onClose}>\n <Icon icon={XIcon} />\n </IconButton>\n <FullScreenStepperProgress stepCount={stepCount} stepCursor={stepCursor} />\n </Box>\n )\n}\n"],"names":["XIcon"],"mappings":";;;;;;AAQO,IAAM,uBAAuB,GAAqC,UAAC,KAAK,EAAA;AACrE,IAAA,IAAA,SAAS,GAAgC,KAAK,UAArC,EAAE,UAAU,GAAoB,KAAK,CAAA,UAAzB,EAAE,IAAI,GAAc,KAAK,CAAnB,IAAA,EAAE,OAAO,GAAK,KAAK,QAAV;AAC5C,IAAA,IAAM,OAAO,GAAG,gCAAgC,CAAC,KAAK,CAAC;IACvD,QACE,oBAAC,GAAG,EAAA,EAAC,SAAS,EAAE,OAAO,CAAC,IAAI,EAAA;QAC1B,KAAC,CAAA,aAAA,CAAA,UAAU,IAAC,OAAO,EAAC,IAAI,EAAE,EAAA,IAAI,CAAC,KAAK,CAAc;AAClD,QAAA,KAAA,CAAA,aAAA,CAAC,UAAU,EAAA,IAAA;YACR,UAAU;;AAAM,YAAA,SAAS,CACf;QACb,KAAC,CAAA,aAAA,CAAA,UAAU,EAAC,EAAA,SAAS,EAAE,OAAO,CAAC,WAAW,EAAE,OAAO,EAAE,OAAO,EAAA;AAC1D,YAAA,KAAA,CAAA,aAAA,CAAC,IAAI,EAAC,EAAA,IAAI,EAAEA,CAAK,GAAI,CACV;AACb,QAAA,KAAA,CAAA,aAAA,CAAC,yBAAyB,EAAA,EAAC,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAA,CAAI,CACvE;AAEV;;;;"}
1
+ {"version":3,"file":"FullScreenStepperHeader.js","sources":["../../../../src/components/FullScreenStepperHeader/FullScreenStepperHeader.tsx"],"sourcesContent":["import React, { FC } from 'react'\n\nimport { Box, Icon, IconButton, Typography } from '@popmenu/common-ui'\nimport { X as XIcon } from '@popmenu/web-icons'\nimport { FullScreenStepperProgress } from '../FullScreenStepperProgress'\nimport { FullScreenStepperHeaderProps } from './FullScreenStepperHeaderProps'\nimport { useFullScreenStepperHeaderStyles } from './FullScreenStepperHeaderStyles'\n\nexport const FullScreenStepperHeader: FC<FullScreenStepperHeaderProps> = (props) => {\n const { stepCount, stepCursor, step, onClose } = props\n const classes = useFullScreenStepperHeaderStyles(props)\n return (\n <Box className={classes.root}>\n <Typography variant=\"h6\">{step.title}</Typography>\n <Typography>\n {stepCursor} of {stepCount}\n </Typography>\n <IconButton className={classes.closeButton} onClick={onClose}>\n <Icon icon={XIcon} />\n </IconButton>\n <FullScreenStepperProgress stepCount={stepCount} stepCursor={stepCursor} />\n </Box>\n )\n}\n"],"names":["XIcon"],"mappings":";;;;;;AAQa,MAAA,uBAAuB,GAAqC,CAAC,KAAK,KAAI;IACjF,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,KAAK;AACtD,IAAA,MAAM,OAAO,GAAG,gCAAgC,CAAC,KAAK,CAAC;IACvD,QACE,oBAAC,GAAG,EAAA,EAAC,SAAS,EAAE,OAAO,CAAC,IAAI,EAAA;QAC1B,KAAC,CAAA,aAAA,CAAA,UAAU,IAAC,OAAO,EAAC,IAAI,EAAE,EAAA,IAAI,CAAC,KAAK,CAAc;AAClD,QAAA,KAAA,CAAA,aAAA,CAAC,UAAU,EAAA,IAAA;YACR,UAAU;;AAAM,YAAA,SAAS,CACf;QACb,KAAC,CAAA,aAAA,CAAA,UAAU,EAAC,EAAA,SAAS,EAAE,OAAO,CAAC,WAAW,EAAE,OAAO,EAAE,OAAO,EAAA;AAC1D,YAAA,KAAA,CAAA,aAAA,CAAC,IAAI,EAAC,EAAA,IAAI,EAAEA,CAAK,GAAI,CACV;AACb,QAAA,KAAA,CAAA,aAAA,CAAC,yBAAyB,EAAA,EAAC,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAA,CAAI,CACvE;AAEV;;;;"}
@@ -1,26 +1,23 @@
1
1
  import { makeStyles } from '@material-ui/core';
2
2
 
3
- var useFullScreenStepperHeaderStyles = makeStyles(function (_a) {
4
- var spacing = _a.spacing;
5
- return ({
6
- closeButton: {
7
- position: 'absolute',
8
- right: 0,
9
- top: 0,
10
- },
11
- root: {
12
- alignItems: 'center',
13
- background: 'white',
14
- display: 'flex',
15
- flexDirection: 'column',
16
- justifyContent: 'center',
17
- padding: spacing(1.5, 0),
18
- position: 'sticky',
19
- top: 0,
20
- zIndex: 3,
21
- },
22
- });
23
- });
3
+ const useFullScreenStepperHeaderStyles = makeStyles(({ spacing }) => ({
4
+ closeButton: {
5
+ position: 'absolute',
6
+ right: 0,
7
+ top: 0,
8
+ },
9
+ root: {
10
+ alignItems: 'center',
11
+ background: 'white',
12
+ display: 'flex',
13
+ flexDirection: 'column',
14
+ justifyContent: 'center',
15
+ padding: spacing(1.5, 0),
16
+ position: 'sticky',
17
+ top: 0,
18
+ zIndex: 3,
19
+ },
20
+ }));
24
21
 
25
22
  export { useFullScreenStepperHeaderStyles };
26
23
  //# sourceMappingURL=FullScreenStepperHeaderStyles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FullScreenStepperHeaderStyles.js","sources":["../../../../src/components/FullScreenStepperHeader/FullScreenStepperHeaderStyles.ts"],"sourcesContent":["import { makeStyles, Theme } from '@material-ui/core'\n\nimport { FullScreenStepperHeaderProps } from './FullScreenStepperHeaderProps'\n\nexport const useFullScreenStepperHeaderStyles = makeStyles<Theme, FullScreenStepperHeaderProps>(({ spacing }) => ({\n closeButton: {\n position: 'absolute',\n right: 0,\n top: 0,\n },\n root: {\n alignItems: 'center',\n background: 'white',\n display: 'flex',\n flexDirection: 'column',\n justifyContent: 'center',\n padding: spacing(1.5, 0),\n position: 'sticky',\n top: 0,\n zIndex: 3,\n },\n}))\n"],"names":[],"mappings":";;AAIa,IAAA,gCAAgC,GAAG,UAAU,CAAsC,UAAC,EAAW,EAAA;AAAT,IAAA,IAAA,OAAO,GAAA,EAAA,CAAA,OAAA;AAAO,IAAA,QAAC;AAChH,QAAA,WAAW,EAAE;AACX,YAAA,QAAQ,EAAE,UAAU;AACpB,YAAA,KAAK,EAAE,CAAC;AACR,YAAA,GAAG,EAAE,CAAC;AACP,SAAA;AACD,QAAA,IAAI,EAAE;AACJ,YAAA,UAAU,EAAE,QAAQ;AACpB,YAAA,UAAU,EAAE,OAAO;AACnB,YAAA,OAAO,EAAE,MAAM;AACf,YAAA,aAAa,EAAE,QAAQ;AACvB,YAAA,cAAc,EAAE,QAAQ;AACxB,YAAA,OAAO,EAAE,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;AACxB,YAAA,QAAQ,EAAE,QAAQ;AAClB,YAAA,GAAG,EAAE,CAAC;AACN,YAAA,MAAM,EAAE,CAAC;AACV,SAAA;KACF;AAjBgH,CAiB/G;;;;"}
1
+ {"version":3,"file":"FullScreenStepperHeaderStyles.js","sources":["../../../../src/components/FullScreenStepperHeader/FullScreenStepperHeaderStyles.ts"],"sourcesContent":["import { makeStyles, Theme } from '@material-ui/core'\n\nimport { FullScreenStepperHeaderProps } from './FullScreenStepperHeaderProps'\n\nexport const useFullScreenStepperHeaderStyles = makeStyles<Theme, FullScreenStepperHeaderProps>(({ spacing }) => ({\n closeButton: {\n position: 'absolute',\n right: 0,\n top: 0,\n },\n root: {\n alignItems: 'center',\n background: 'white',\n display: 'flex',\n flexDirection: 'column',\n justifyContent: 'center',\n padding: spacing(1.5, 0),\n position: 'sticky',\n top: 0,\n zIndex: 3,\n },\n}))\n"],"names":[],"mappings":";;AAIO,MAAM,gCAAgC,GAAG,UAAU,CAAsC,CAAC,EAAE,OAAO,EAAE,MAAM;AAChH,IAAA,WAAW,EAAE;AACX,QAAA,QAAQ,EAAE,UAAU;AACpB,QAAA,KAAK,EAAE,CAAC;AACR,QAAA,GAAG,EAAE,CAAC;AACP,KAAA;AACD,IAAA,IAAI,EAAE;AACJ,QAAA,UAAU,EAAE,QAAQ;AACpB,QAAA,UAAU,EAAE,OAAO;AACnB,QAAA,OAAO,EAAE,MAAM;AACf,QAAA,aAAa,EAAE,QAAQ;AACvB,QAAA,cAAc,EAAE,QAAQ;AACxB,QAAA,OAAO,EAAE,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;AACxB,QAAA,QAAQ,EAAE,QAAQ;AAClB,QAAA,GAAG,EAAE,CAAC;AACN,QAAA,MAAM,EAAE,CAAC;AACV,KAAA;AACF,CAAA,CAAC;;;;"}
@@ -1 +1 @@
1
- export { FullScreenStepperHeader as default } from './FullScreenStepperHeader';
1
+ export { FullScreenStepperHeader } from './FullScreenStepperHeader';
@@ -2,8 +2,8 @@ import React from 'react';
2
2
  import { Box } from '@popmenu/common-ui';
3
3
  import { useFullScreenStepperProgressStyles } from './FullScreenStepperProgressStyles.js';
4
4
 
5
- var FullScreenStepperProgress = function (props) {
6
- var classes = useFullScreenStepperProgressStyles(props);
5
+ const FullScreenStepperProgress = (props) => {
6
+ const classes = useFullScreenStepperProgressStyles(props);
7
7
  return (React.createElement(Box, { className: classes.track },
8
8
  React.createElement(Box, { className: classes.progress })));
9
9
  };
@@ -1 +1 @@
1
- {"version":3,"file":"FullScreenStepperProgress.js","sources":["../../../../src/components/FullScreenStepperProgress/FullScreenStepperProgress.tsx"],"sourcesContent":["import React, { FC } from 'react'\n\nimport { Box } from '@popmenu/common-ui'\nimport { useFullScreenStepperProgressStyles } from './FullScreenStepperProgressStyles'\nimport { FullScreenStepperProgressProps } from './FullScreenStepperProgressProps'\n\nexport const FullScreenStepperProgress: FC<FullScreenStepperProgressProps> = (props) => {\n const classes = useFullScreenStepperProgressStyles(props)\n return (\n <Box className={classes.track}>\n <Box className={classes.progress} />\n </Box>\n )\n}\n"],"names":[],"mappings":";;;;AAMO,IAAM,yBAAyB,GAAuC,UAAC,KAAK,EAAA;AACjF,IAAA,IAAM,OAAO,GAAG,kCAAkC,CAAC,KAAK,CAAC;IACzD,QACE,oBAAC,GAAG,EAAA,EAAC,SAAS,EAAE,OAAO,CAAC,KAAK,EAAA;QAC3B,KAAC,CAAA,aAAA,CAAA,GAAG,EAAC,EAAA,SAAS,EAAE,OAAO,CAAC,QAAQ,EAAA,CAAI,CAChC;AAEV;;;;"}
1
+ {"version":3,"file":"FullScreenStepperProgress.js","sources":["../../../../src/components/FullScreenStepperProgress/FullScreenStepperProgress.tsx"],"sourcesContent":["import React, { FC } from 'react'\n\nimport { Box } from '@popmenu/common-ui'\nimport { useFullScreenStepperProgressStyles } from './FullScreenStepperProgressStyles'\nimport { FullScreenStepperProgressProps } from './FullScreenStepperProgressProps'\n\nexport const FullScreenStepperProgress: FC<FullScreenStepperProgressProps> = (props) => {\n const classes = useFullScreenStepperProgressStyles(props)\n return (\n <Box className={classes.track}>\n <Box className={classes.progress} />\n </Box>\n )\n}\n"],"names":[],"mappings":";;;;AAMa,MAAA,yBAAyB,GAAuC,CAAC,KAAK,KAAI;AACrF,IAAA,MAAM,OAAO,GAAG,kCAAkC,CAAC,KAAK,CAAC;IACzD,QACE,oBAAC,GAAG,EAAA,EAAC,SAAS,EAAE,OAAO,CAAC,KAAK,EAAA;QAC3B,KAAC,CAAA,aAAA,CAAA,GAAG,EAAC,EAAA,SAAS,EAAE,OAAO,CAAC,QAAQ,EAAA,CAAI,CAChC;AAEV;;;;"}
@@ -1,8 +1,8 @@
1
1
  import { makeStyles } from '@material-ui/core';
2
2
 
3
- var getBorderRadius = function (theme, props) {
4
- var stepCursor = props.stepCursor, stepCount = props.stepCount;
5
- var isFinalStep = stepCursor / stepCount === 1;
3
+ const getBorderRadius = (theme, props) => {
4
+ const { stepCursor, stepCount } = props;
5
+ const isFinalStep = stepCursor / stepCount === 1;
6
6
  if (isFinalStep) {
7
7
  return 0;
8
8
  }
@@ -10,15 +10,15 @@ var getBorderRadius = function (theme, props) {
10
10
  return theme.spacing(0.5);
11
11
  }
12
12
  };
13
- var useFullScreenStepperProgressStyles = makeStyles(function (theme) { return ({
13
+ const useFullScreenStepperProgressStyles = makeStyles((theme) => ({
14
14
  progress: {
15
- width: function (props) { return (props.stepCursor / props.stepCount) * 100 + "%"; },
15
+ width: (props) => `${(props.stepCursor / props.stepCount) * 100}%`,
16
16
  transition: 'all 500ms',
17
17
  height: theme.spacing(1),
18
18
  // @ts-expect-error: Theme includes extended properties
19
- background: "linear-gradient(45deg, " + theme.palette.primary.gradientStart + ", " + theme.palette.primary.gradientEnd + ")",
20
- borderEndEndRadius: function (props) { return getBorderRadius(theme, props); },
21
- borderStartEndRadius: function (props) { return getBorderRadius(theme, props); },
19
+ background: `linear-gradient(45deg, ${theme.palette.primary.gradientStart}, ${theme.palette.primary.gradientEnd})`,
20
+ borderEndEndRadius: (props) => getBorderRadius(theme, props),
21
+ borderStartEndRadius: (props) => getBorderRadius(theme, props),
22
22
  },
23
23
  track: {
24
24
  position: 'absolute',
@@ -30,7 +30,7 @@ var useFullScreenStepperProgressStyles = makeStyles(function (theme) { return ({
30
30
  background: theme.palette.grey[100],
31
31
  zIndex: 2,
32
32
  },
33
- }); });
33
+ }));
34
34
 
35
35
  export { useFullScreenStepperProgressStyles };
36
36
  //# sourceMappingURL=FullScreenStepperProgressStyles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FullScreenStepperProgressStyles.js","sources":["../../../../src/components/FullScreenStepperProgress/FullScreenStepperProgressStyles.ts"],"sourcesContent":["import { makeStyles, Theme } from '@material-ui/core'\nimport { FullScreenStepperProgressProps } from './FullScreenStepperProgressProps'\n\nconst getBorderRadius = (theme: Theme, props: FullScreenStepperProgressProps) => {\n const { stepCursor, stepCount } = props\n const isFinalStep = stepCursor / stepCount === 1\n if (isFinalStep) {\n return 0\n } else {\n return theme.spacing(0.5)\n }\n}\n\nexport const useFullScreenStepperProgressStyles = makeStyles<Theme, FullScreenStepperProgressProps>((theme) => ({\n progress: {\n width: (props) => `${(props.stepCursor / props.stepCount) * 100}%`,\n transition: 'all 500ms',\n height: theme.spacing(1),\n // @ts-expect-error: Theme includes extended properties\n background: `linear-gradient(45deg, ${theme.palette.primary.gradientStart}, ${theme.palette.primary.gradientEnd})`,\n borderEndEndRadius: (props) => getBorderRadius(theme, props),\n borderStartEndRadius: (props) => getBorderRadius(theme, props),\n },\n track: {\n position: 'absolute',\n bottom: 0,\n display: 'flex',\n alignItems: 'center',\n width: '100%',\n height: theme.spacing(0.5),\n background: theme.palette.grey[100],\n zIndex: 2,\n },\n}))\n"],"names":[],"mappings":";;AAGA,IAAM,eAAe,GAAG,UAAC,KAAY,EAAE,KAAqC,EAAA;IAClE,IAAA,UAAU,GAAgB,KAAK,CAAA,UAArB,EAAE,SAAS,GAAK,KAAK,CAAA,SAAV;AAC7B,IAAA,IAAM,WAAW,GAAG,UAAU,GAAG,SAAS,KAAK,CAAC;AAChD,IAAA,IAAI,WAAW,EAAE;AACf,QAAA,OAAO,CAAC;AACT;AAAM,SAAA;AACL,QAAA,OAAO,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC;AAC1B;AACH,CAAC;AAEY,IAAA,kCAAkC,GAAG,UAAU,CAAwC,UAAC,KAAK,EAAK,EAAA,QAAC;AAC9G,IAAA,QAAQ,EAAE;AACR,QAAA,KAAK,EAAE,UAAC,KAAK,IAAK,OAAG,CAAC,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,SAAS,IAAI,GAAG,GAAA,GAAG,GAAA;AAClE,QAAA,UAAU,EAAE,WAAW;AACvB,QAAA,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;;AAExB,QAAA,UAAU,EAAE,yBAA0B,GAAA,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,aAAa,GAAA,IAAA,GAAK,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,WAAW,GAAG,GAAA;AAClH,QAAA,kBAAkB,EAAE,UAAC,KAAK,EAAA,EAAK,OAAA,eAAe,CAAC,KAAK,EAAE,KAAK,CAAC,CAAA,EAAA;AAC5D,QAAA,oBAAoB,EAAE,UAAC,KAAK,EAAA,EAAK,OAAA,eAAe,CAAC,KAAK,EAAE,KAAK,CAAC,CAAA,EAAA;AAC/D,KAAA;AACD,IAAA,KAAK,EAAE;AACL,QAAA,QAAQ,EAAE,UAAU;AACpB,QAAA,MAAM,EAAE,CAAC;AACT,QAAA,OAAO,EAAE,MAAM;AACf,QAAA,UAAU,EAAE,QAAQ;AACpB,QAAA,KAAK,EAAE,MAAM;AACb,QAAA,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC;QAC1B,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC;AACnC,QAAA,MAAM,EAAE,CAAC;AACV,KAAA;CACF,EAAC,EAAA;;;;"}
1
+ {"version":3,"file":"FullScreenStepperProgressStyles.js","sources":["../../../../src/components/FullScreenStepperProgress/FullScreenStepperProgressStyles.ts"],"sourcesContent":["import { makeStyles, Theme } from '@material-ui/core'\nimport { FullScreenStepperProgressProps } from './FullScreenStepperProgressProps'\n\nconst getBorderRadius = (theme: Theme, props: FullScreenStepperProgressProps) => {\n const { stepCursor, stepCount } = props\n const isFinalStep = stepCursor / stepCount === 1\n if (isFinalStep) {\n return 0\n } else {\n return theme.spacing(0.5)\n }\n}\n\nexport const useFullScreenStepperProgressStyles = makeStyles<Theme, FullScreenStepperProgressProps>((theme) => ({\n progress: {\n width: (props) => `${(props.stepCursor / props.stepCount) * 100}%`,\n transition: 'all 500ms',\n height: theme.spacing(1),\n // @ts-expect-error: Theme includes extended properties\n background: `linear-gradient(45deg, ${theme.palette.primary.gradientStart}, ${theme.palette.primary.gradientEnd})`,\n borderEndEndRadius: (props) => getBorderRadius(theme, props),\n borderStartEndRadius: (props) => getBorderRadius(theme, props),\n },\n track: {\n position: 'absolute',\n bottom: 0,\n display: 'flex',\n alignItems: 'center',\n width: '100%',\n height: theme.spacing(0.5),\n background: theme.palette.grey[100],\n zIndex: 2,\n },\n}))\n"],"names":[],"mappings":";;AAGA,MAAM,eAAe,GAAG,CAAC,KAAY,EAAE,KAAqC,KAAI;AAC9E,IAAA,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,KAAK;AACvC,IAAA,MAAM,WAAW,GAAG,UAAU,GAAG,SAAS,KAAK,CAAC;IAChD,IAAI,WAAW,EAAE;AACf,QAAA,OAAO,CAAC;;SACH;AACL,QAAA,OAAO,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC;;AAE7B,CAAC;AAEY,MAAA,kCAAkC,GAAG,UAAU,CAAwC,CAAC,KAAK,MAAM;AAC9G,IAAA,QAAQ,EAAE;AACR,QAAA,KAAK,EAAE,CAAC,KAAK,KAAK,GAAG,CAAC,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,SAAS,IAAI,GAAG,CAAG,CAAA,CAAA;AAClE,QAAA,UAAU,EAAE,WAAW;AACvB,QAAA,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;;AAExB,QAAA,UAAU,EAAE,CAA0B,uBAAA,EAAA,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,aAAa,CAAA,EAAA,EAAK,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,WAAW,CAAG,CAAA,CAAA;QAClH,kBAAkB,EAAE,CAAC,KAAK,KAAK,eAAe,CAAC,KAAK,EAAE,KAAK,CAAC;QAC5D,oBAAoB,EAAE,CAAC,KAAK,KAAK,eAAe,CAAC,KAAK,EAAE,KAAK,CAAC;AAC/D,KAAA;AACD,IAAA,KAAK,EAAE;AACL,QAAA,QAAQ,EAAE,UAAU;AACpB,QAAA,MAAM,EAAE,CAAC;AACT,QAAA,OAAO,EAAE,MAAM;AACf,QAAA,UAAU,EAAE,QAAQ;AACpB,QAAA,KAAK,EAAE,MAAM;AACb,QAAA,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC;QAC1B,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC;AACnC,QAAA,MAAM,EAAE,CAAC;AACV,KAAA;AACF,CAAA,CAAC;;;;"}
@@ -1 +1 @@
1
- export { FullScreenStepperProgress as default } from './FullScreenStepperProgress';
1
+ export { FullScreenStepperProgress } from './FullScreenStepperProgress';
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { ListProps } from './ListProps';
3
2
  export declare const List: (props: ListProps) => JSX.Element;
@@ -1,14 +1,12 @@
1
- import { __rest, __assign } from 'tslib';
2
1
  import React from 'react';
3
2
  import classNames from 'classnames';
4
3
  import { List as List$1 } from '@material-ui/core';
5
4
  import { useStyles } from './styles.js';
6
5
 
7
- var List = function (props) {
8
- var _a;
9
- var children = props.children, uncontained = props.uncontained, className = props.className, restProps = __rest(props, ["children", "uncontained", "className"]);
10
- var classes = useStyles(props);
11
- return (React.createElement(List$1, __assign({ classes: classes, className: classNames((_a = {}, _a[classes.uncontained] = uncontained, _a), className) }, restProps), children));
6
+ const List = (props) => {
7
+ const { children, uncontained, className, ...restProps } = props;
8
+ const classes = useStyles(props);
9
+ return (React.createElement(List$1, { classes: classes, className: classNames({ [classes.uncontained]: uncontained }, className), ...restProps }, children));
12
10
  };
13
11
 
14
12
  export { List };
@@ -1 +1 @@
1
- {"version":3,"file":"List.js","sources":["../../../../src/components/List/List.tsx"],"sourcesContent":["import React from 'react'\nimport classNames from 'classnames'\nimport { List as MuiList } from '@material-ui/core'\n\nimport { ListProps } from './ListProps'\nimport { useStyles } from './styles'\n\nexport const List = (props: ListProps) => {\n const { children, uncontained, className, ...restProps } = props\n const classes = useStyles(props)\n return (\n <MuiList classes={classes} className={classNames({ [classes.uncontained]: uncontained }, className)} {...restProps}>\n {children}\n </MuiList>\n )\n}\n"],"names":["MuiList"],"mappings":";;;;;;AAOO,IAAM,IAAI,GAAG,UAAC,KAAgB,EAAA;;IAC3B,IAAA,QAAQ,GAA2C,KAAK,CAAA,QAAhD,EAAE,WAAW,GAA8B,KAAK,CAAnC,WAAA,EAAE,SAAS,GAAmB,KAAK,UAAxB,EAAK,SAAS,UAAK,KAAK,EAA1D,CAAkD,UAAA,EAAA,aAAA,EAAA,WAAA,CAAA,CAAF;AACtD,IAAA,IAAM,OAAO,GAAG,SAAS,CAAC,KAAK,CAAC;IAChC,QACE,KAAC,CAAA,aAAA,CAAAA,MAAO,EAAC,QAAA,CAAA,EAAA,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAG,EAAA,GAAA,EAAA,EAAA,EAAA,CAAC,OAAO,CAAC,WAAW,CAAA,GAAG,WAAW,EAAA,EAAA,GAAI,SAAS,CAAC,EAAM,EAAA,SAAS,CAC/G,EAAA,QAAQ,CACD;AAEd;;;;"}
1
+ {"version":3,"file":"List.js","sources":["../../../../src/components/List/List.tsx"],"sourcesContent":["import React from 'react'\nimport classNames from 'classnames'\nimport { List as MuiList } from '@material-ui/core'\n\nimport { ListProps } from './ListProps'\nimport { useStyles } from './styles'\n\nexport const List = (props: ListProps) => {\n const { children, uncontained, className, ...restProps } = props\n const classes = useStyles(props)\n return (\n <MuiList classes={classes} className={classNames({ [classes.uncontained]: uncontained }, className)} {...restProps}>\n {children}\n </MuiList>\n )\n}\n"],"names":["MuiList"],"mappings":";;;;;AAOa,MAAA,IAAI,GAAG,CAAC,KAAgB,KAAI;AACvC,IAAA,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,GAAG,SAAS,EAAE,GAAG,KAAK;AAChE,IAAA,MAAM,OAAO,GAAG,SAAS,CAAC,KAAK,CAAC;AAChC,IAAA,QACE,KAAA,CAAA,aAAA,CAACA,MAAO,EAAA,EAAC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,UAAU,CAAC,EAAE,CAAC,OAAO,CAAC,WAAW,GAAG,WAAW,EAAE,EAAE,SAAS,CAAC,EAAA,GAAM,SAAS,EAAA,EAC/G,QAAQ,CACD;AAEd;;;;"}
@@ -1,2 +1,2 @@
1
1
  export { List } from './List';
2
- export { ListProps } from './ListProps';
2
+ export type { ListProps } from './ListProps';
@@ -1,13 +1,13 @@
1
1
  import { makeStyles } from '@material-ui/core';
2
2
 
3
- var useStyles = makeStyles(function (theme) { return ({
3
+ const useStyles = makeStyles((theme) => ({
4
4
  root: {
5
5
  '&$uncontained > li > *:first-child': {
6
6
  background: theme.palette.background.paper,
7
7
  borderRadius: theme.spacing(1),
8
8
  },
9
9
  '& > li > *:first-child': {
10
- borderBottom: "1px solid " + theme.palette.grey[300],
10
+ borderBottom: `1px solid ${theme.palette.grey[300]}`,
11
11
  },
12
12
  '& > li:last-child > *:first-child': {
13
13
  borderBottom: 'none',
@@ -18,7 +18,7 @@ var useStyles = makeStyles(function (theme) { return ({
18
18
  flexDirection: 'column',
19
19
  gap: 16,
20
20
  },
21
- }); });
21
+ }));
22
22
 
23
23
  export { useStyles };
24
24
  //# sourceMappingURL=styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","sources":["../../../../src/components/List/styles.ts"],"sourcesContent":["import { makeStyles, Theme } from '@material-ui/core'\n\nimport { ListProps } from './ListProps'\n\nexport const useStyles = makeStyles<Theme, ListProps>((theme) => ({\n root: {\n '&$uncontained > li > *:first-child': {\n background: theme.palette.background.paper,\n borderRadius: theme.spacing(1),\n },\n '& > li > *:first-child': {\n borderBottom: `1px solid ${theme.palette.grey[300]}`,\n },\n '& > li:last-child > *:first-child': {\n borderBottom: 'none',\n },\n },\n uncontained: {\n display: 'flex',\n flexDirection: 'column',\n gap: 16,\n },\n}))\n"],"names":[],"mappings":";;AAIa,IAAA,SAAS,GAAG,UAAU,CAAmB,UAAC,KAAK,EAAK,EAAA,QAAC;AAChE,IAAA,IAAI,EAAE;AACJ,QAAA,oCAAoC,EAAE;AACpC,YAAA,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,KAAK;AAC1C,YAAA,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;AAC/B,SAAA;AACD,QAAA,wBAAwB,EAAE;YACxB,YAAY,EAAE,eAAa,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAG;AACrD,SAAA;AACD,QAAA,mCAAmC,EAAE;AACnC,YAAA,YAAY,EAAE,MAAM;AACrB,SAAA;AACF,KAAA;AACD,IAAA,WAAW,EAAE;AACX,QAAA,OAAO,EAAE,MAAM;AACf,QAAA,aAAa,EAAE,QAAQ;AACvB,QAAA,GAAG,EAAE,EAAE;AACR,KAAA;CACF,EAAC,EAAA;;;;"}
1
+ {"version":3,"file":"styles.js","sources":["../../../../src/components/List/styles.ts"],"sourcesContent":["import { makeStyles, Theme } from '@material-ui/core'\n\nimport { ListProps } from './ListProps'\n\nexport const useStyles = makeStyles<Theme, ListProps>((theme) => ({\n root: {\n '&$uncontained > li > *:first-child': {\n background: theme.palette.background.paper,\n borderRadius: theme.spacing(1),\n },\n '& > li > *:first-child': {\n borderBottom: `1px solid ${theme.palette.grey[300]}`,\n },\n '& > li:last-child > *:first-child': {\n borderBottom: 'none',\n },\n },\n uncontained: {\n display: 'flex',\n flexDirection: 'column',\n gap: 16,\n },\n}))\n"],"names":[],"mappings":";;AAIa,MAAA,SAAS,GAAG,UAAU,CAAmB,CAAC,KAAK,MAAM;AAChE,IAAA,IAAI,EAAE;AACJ,QAAA,oCAAoC,EAAE;AACpC,YAAA,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,KAAK;AAC1C,YAAA,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;AAC/B,SAAA;AACD,QAAA,wBAAwB,EAAE;YACxB,YAAY,EAAE,CAAa,UAAA,EAAA,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAE,CAAA;AACrD,SAAA;AACD,QAAA,mCAAmC,EAAE;AACnC,YAAA,YAAY,EAAE,MAAM;AACrB,SAAA;AACF,KAAA;AACD,IAAA,WAAW,EAAE;AACX,QAAA,OAAO,EAAE,MAAM;AACf,QAAA,aAAa,EAAE,QAAQ;AACvB,QAAA,GAAG,EAAE,EAAE;AACR,KAAA;AACF,CAAA,CAAC;;;;"}
@@ -1,10 +1,9 @@
1
- import { __rest, __assign } from 'tslib';
2
1
  import React from 'react';
3
2
  import { Box } from '@popmenu/common-ui';
4
3
 
5
- var Page = function (props) {
6
- var children = props.children, restProps = __rest(props, ["children"]);
7
- return (React.createElement(Box, __assign({ marginTop: 8, display: "flex", alignItems: "center", flexDirection: "column" }, restProps), children));
4
+ const Page = (props) => {
5
+ const { children, ...restProps } = props;
6
+ return (React.createElement(Box, { marginTop: 8, display: "flex", alignItems: "center", flexDirection: "column", ...restProps }, children));
8
7
  };
9
8
 
10
9
  export { Page };
@@ -1 +1 @@
1
- {"version":3,"file":"Page.js","sources":["../../../../src/components/Page/Page.tsx"],"sourcesContent":["import React, { HTMLAttributes, PropsWithChildren } from 'react'\nimport { Box } from '@popmenu/common-ui'\n\nexport const Page = (props: PropsWithChildren<HTMLAttributes<HTMLElement>>) => {\n const { children, ...restProps } = props\n return (\n <Box marginTop={8} display=\"flex\" alignItems=\"center\" flexDirection=\"column\" {...restProps}>\n {children}\n </Box>\n )\n}\n"],"names":[],"mappings":";;;;AAGO,IAAM,IAAI,GAAG,UAAC,KAAqD,EAAA;IAChE,IAAA,QAAQ,GAAmB,KAAK,CAAxB,QAAA,EAAK,SAAS,GAAA,MAAA,CAAK,KAAK,EAAlC,CAA0B,UAAA,CAAA,CAAF;IAC9B,QACE,KAAC,CAAA,aAAA,CAAA,GAAG,EAAC,QAAA,CAAA,EAAA,SAAS,EAAE,CAAC,EAAE,OAAO,EAAC,MAAM,EAAC,UAAU,EAAC,QAAQ,EAAC,aAAa,EAAC,QAAQ,EAAK,EAAA,SAAS,CACvF,EAAA,QAAQ,CACL;AAEV;;;;"}
1
+ {"version":3,"file":"Page.js","sources":["../../../../src/components/Page/Page.tsx"],"sourcesContent":["import React, { HTMLAttributes, PropsWithChildren } from 'react'\nimport { Box } from '@popmenu/common-ui'\n\nexport const Page = (props: PropsWithChildren<HTMLAttributes<HTMLElement>>) => {\n const { children, ...restProps } = props\n return (\n <Box marginTop={8} display=\"flex\" alignItems=\"center\" flexDirection=\"column\" {...restProps}>\n {children}\n </Box>\n )\n}\n"],"names":[],"mappings":";;;AAGa,MAAA,IAAI,GAAG,CAAC,KAAqD,KAAI;IAC5E,MAAM,EAAE,QAAQ,EAAE,GAAG,SAAS,EAAE,GAAG,KAAK;IACxC,QACE,KAAC,CAAA,aAAA,CAAA,GAAG,EAAC,EAAA,SAAS,EAAE,CAAC,EAAE,OAAO,EAAC,MAAM,EAAC,UAAU,EAAC,QAAQ,EAAC,aAAa,EAAC,QAAQ,EAAK,GAAA,SAAS,EACvF,EAAA,QAAQ,CACL;AAEV;;;;"}
@@ -1,10 +1,9 @@
1
- import { __rest, __assign } from 'tslib';
2
1
  import React from 'react';
3
2
  import { Box } from '@popmenu/common-ui';
4
3
 
5
- var PageBody = function (props) {
6
- var children = props.children, restProps = __rest(props, ["children"]);
7
- return (React.createElement(Box, __assign({ py: 2, px: 5.5, maxWidth: 1100, width: "100%" }, restProps), children));
4
+ const PageBody = (props) => {
5
+ const { children, ...restProps } = props;
6
+ return (React.createElement(Box, { py: 2, px: 5.5, maxWidth: 1100, width: "100%", ...restProps }, children));
8
7
  };
9
8
 
10
9
  export { PageBody };
@@ -1 +1 @@
1
- {"version":3,"file":"PageBody.js","sources":["../../../../src/components/PageBody/PageBody.tsx"],"sourcesContent":["import React, { HTMLAttributes, PropsWithChildren } from 'react'\nimport { Box } from '@popmenu/common-ui'\n\nexport const PageBody = (props: PropsWithChildren<HTMLAttributes<HTMLElement>>) => {\n const { children, ...restProps } = props\n return (\n <Box py={2} px={5.5} maxWidth={1100} width=\"100%\" {...restProps}>\n {children}\n </Box>\n )\n}\n"],"names":[],"mappings":";;;;AAGO,IAAM,QAAQ,GAAG,UAAC,KAAqD,EAAA;IACpE,IAAA,QAAQ,GAAmB,KAAK,CAAxB,QAAA,EAAK,SAAS,GAAA,MAAA,CAAK,KAAK,EAAlC,CAA0B,UAAA,CAAA,CAAF;IAC9B,QACE,KAAC,CAAA,aAAA,CAAA,GAAG,EAAC,QAAA,CAAA,EAAA,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAC,MAAM,EAAK,EAAA,SAAS,CAC5D,EAAA,QAAQ,CACL;AAEV;;;;"}
1
+ {"version":3,"file":"PageBody.js","sources":["../../../../src/components/PageBody/PageBody.tsx"],"sourcesContent":["import React, { HTMLAttributes, PropsWithChildren } from 'react'\nimport { Box } from '@popmenu/common-ui'\n\nexport const PageBody = (props: PropsWithChildren<HTMLAttributes<HTMLElement>>) => {\n const { children, ...restProps } = props\n return (\n <Box py={2} px={5.5} maxWidth={1100} width=\"100%\" {...restProps}>\n {children}\n </Box>\n )\n}\n"],"names":[],"mappings":";;;AAGa,MAAA,QAAQ,GAAG,CAAC,KAAqD,KAAI;IAChF,MAAM,EAAE,QAAQ,EAAE,GAAG,SAAS,EAAE,GAAG,KAAK;IACxC,QACE,KAAC,CAAA,aAAA,CAAA,GAAG,EAAC,EAAA,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAC,MAAM,EAAK,GAAA,SAAS,EAC5D,EAAA,QAAQ,CACL;AAEV;;;;"}
@@ -1,12 +1,11 @@
1
- import { __rest, __assign } from 'tslib';
2
1
  import React, { forwardRef } from 'react';
3
2
  import { Card, CardContent } from '@popmenu/common-ui';
4
3
  import { usePageSectionStyles } from './PageSectionStyles.js';
5
4
 
6
- var PageSection = forwardRef(function (props, ref) {
7
- var children = props.children; props.uncontained; var restProps = __rest(props, ["children", "uncontained"]);
8
- var classes = usePageSectionStyles(props);
9
- return (React.createElement(Card, __assign({ classes: { root: classes.root }, ref: ref }, restProps),
5
+ const PageSection = forwardRef((props, ref) => {
6
+ const { children, uncontained, ...restProps } = props;
7
+ const classes = usePageSectionStyles(props);
8
+ return (React.createElement(Card, { classes: { root: classes.root }, ref: ref, ...restProps },
10
9
  React.createElement(CardContent, { classes: { root: classes.cardContent } }, children)));
11
10
  });
12
11
  PageSection.displayName = 'PageSection';
@@ -1 +1 @@
1
- {"version":3,"file":"PageSection.js","sources":["../../../../src/components/PageSection/PageSection.tsx"],"sourcesContent":["import React, { forwardRef } from 'react'\nimport { Card, CardContent } from '@popmenu/common-ui'\nimport { PageSectionProps } from './PageSectionProps'\nimport { usePageSectionStyles } from './PageSectionStyles'\n\nexport const PageSection = forwardRef<HTMLDivElement, PageSectionProps>((props, ref) => {\n const { children, uncontained, ...restProps } = props\n const classes = usePageSectionStyles(props)\n return (\n <Card classes={{ root: classes.root }} ref={ref} {...restProps}>\n <CardContent classes={{ root: classes.cardContent }}>{children}</CardContent>\n </Card>\n )\n})\n\nPageSection.displayName = 'PageSection'\n"],"names":[],"mappings":";;;;;IAKa,WAAW,GAAG,UAAU,CAAmC,UAAC,KAAK,EAAE,GAAG,EAAA;AACzE,IAAA,IAAA,QAAQ,GAAgC,KAAK,CAArC,QAAA,CAAA,CAAgC,KAAK,CAAxB,WAAA,CAAA,KAAK,SAAS,GAAK,MAAA,CAAA,KAAK,EAA/C,CAAA,UAAA,EAAA,aAAA,CAAuC;AAC7C,IAAA,IAAM,OAAO,GAAG,oBAAoB,CAAC,KAAK,CAAC;AAC3C,IAAA,QACE,KAAC,CAAA,aAAA,CAAA,IAAI,aAAC,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,EAAE,GAAG,EAAE,GAAG,IAAM,SAAS,CAAA;AAC5D,QAAA,KAAA,CAAA,aAAA,CAAC,WAAW,EAAC,EAAA,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,WAAW,EAAE,EAAG,EAAA,QAAQ,CAAe,CACxE;AAEX,CAAC;AAED,WAAW,CAAC,WAAW,GAAG,aAAa;;;;"}
1
+ {"version":3,"file":"PageSection.js","sources":["../../../../src/components/PageSection/PageSection.tsx"],"sourcesContent":["import React, { forwardRef } from 'react'\nimport { Card, CardContent } from '@popmenu/common-ui'\nimport { PageSectionProps } from './PageSectionProps'\nimport { usePageSectionStyles } from './PageSectionStyles'\n\nexport const PageSection = forwardRef<HTMLDivElement, PageSectionProps>((props, ref) => {\n const { children, uncontained, ...restProps } = props\n const classes = usePageSectionStyles(props)\n return (\n <Card classes={{ root: classes.root }} ref={ref} {...restProps}>\n <CardContent classes={{ root: classes.cardContent }}>{children}</CardContent>\n </Card>\n )\n})\n\nPageSection.displayName = 'PageSection'\n"],"names":[],"mappings":";;;;AAKa,MAAA,WAAW,GAAG,UAAU,CAAmC,CAAC,KAAK,EAAE,GAAG,KAAI;IACrF,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,GAAG,SAAS,EAAE,GAAG,KAAK;AACrD,IAAA,MAAM,OAAO,GAAG,oBAAoB,CAAC,KAAK,CAAC;AAC3C,IAAA,QACE,KAAC,CAAA,aAAA,CAAA,IAAI,IAAC,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,EAAE,GAAG,EAAE,GAAG,KAAM,SAAS,EAAA;AAC5D,QAAA,KAAA,CAAA,aAAA,CAAC,WAAW,EAAC,EAAA,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,WAAW,EAAE,EAAG,EAAA,QAAQ,CAAe,CACxE;AAEX,CAAC;AAED,WAAW,CAAC,WAAW,GAAG,aAAa;;;;"}
@@ -1,19 +1,13 @@
1
1
  import { makeStyles } from '@material-ui/core';
2
2
 
3
- var usePageSectionStyles = makeStyles(function (_a) {
4
- var spacing = _a.spacing;
5
- return ({
6
- root: {
7
- background: function (_a) {
8
- var uncontained = _a.uncontained;
9
- return (uncontained ? 'transparent' : undefined);
10
- },
11
- },
12
- cardContent: {
13
- padding: spacing(4),
14
- },
15
- });
16
- });
3
+ const usePageSectionStyles = makeStyles(({ spacing }) => ({
4
+ root: {
5
+ background: ({ uncontained }) => (uncontained ? 'transparent' : undefined),
6
+ },
7
+ cardContent: {
8
+ padding: spacing(4),
9
+ },
10
+ }));
17
11
 
18
12
  export { usePageSectionStyles };
19
13
  //# sourceMappingURL=PageSectionStyles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PageSectionStyles.js","sources":["../../../../src/components/PageSection/PageSectionStyles.ts"],"sourcesContent":["import { makeStyles, Theme } from '@material-ui/core'\nimport { PageSectionProps } from './PageSectionProps'\n\nexport const usePageSectionStyles = makeStyles<Theme, PageSectionProps>(({ spacing }) => ({\n root: {\n background: ({ uncontained }) => (uncontained ? 'transparent' : undefined),\n },\n cardContent: {\n padding: spacing(4),\n },\n}))\n"],"names":[],"mappings":";;AAGa,IAAA,oBAAoB,GAAG,UAAU,CAA0B,UAAC,EAAW,EAAA;AAAT,IAAA,IAAA,OAAO,GAAA,EAAA,CAAA,OAAA;AAAO,IAAA,QAAC;AACxF,QAAA,IAAI,EAAE;YACJ,UAAU,EAAE,UAAC,EAAe,EAAA;AAAb,gBAAA,IAAA,WAAW,GAAA,EAAA,CAAA,WAAA;gBAAO,QAAC,WAAW,GAAG,aAAa,GAAG,SAAS;aAAC;AAC3E,SAAA;AACD,QAAA,WAAW,EAAE;AACX,YAAA,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;AACpB,SAAA;KACF;AAPwF,CAOvF;;;;"}
1
+ {"version":3,"file":"PageSectionStyles.js","sources":["../../../../src/components/PageSection/PageSectionStyles.ts"],"sourcesContent":["import { makeStyles, Theme } from '@material-ui/core'\nimport { PageSectionProps } from './PageSectionProps'\n\nexport const usePageSectionStyles = makeStyles<Theme, PageSectionProps>(({ spacing }) => ({\n root: {\n background: ({ uncontained }) => (uncontained ? 'transparent' : undefined),\n },\n cardContent: {\n padding: spacing(4),\n },\n}))\n"],"names":[],"mappings":";;AAGO,MAAM,oBAAoB,GAAG,UAAU,CAA0B,CAAC,EAAE,OAAO,EAAE,MAAM;AACxF,IAAA,IAAI,EAAE;AACJ,QAAA,UAAU,EAAE,CAAC,EAAE,WAAW,EAAE,MAAM,WAAW,GAAG,aAAa,GAAG,SAAS,CAAC;AAC3E,KAAA;AACD,IAAA,WAAW,EAAE;AACX,QAAA,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;AACpB,KAAA;AACF,CAAA,CAAC;;;;"}
@@ -1,12 +1,11 @@
1
- import { __rest, __assign } from 'tslib';
2
1
  import React from 'react';
3
2
  import { Box } from '@popmenu/common-ui';
4
3
  import { useTheme } from '@material-ui/core';
5
4
 
6
- var PageSectionHead = function (props) {
7
- var children = props.children, restProps = __rest(props, ["children"]);
8
- var theme = useTheme();
9
- return (React.createElement(Box, __assign({ fontSize: theme.typography.h5.fontSize, mb: "1em", display: "flex", justifyContent: "space-between" }, restProps), children));
5
+ const PageSectionHead = (props) => {
6
+ const { children, ...restProps } = props;
7
+ const theme = useTheme();
8
+ return (React.createElement(Box, { fontSize: theme.typography.h5.fontSize, mb: "1em", display: "flex", justifyContent: "space-between", ...restProps }, children));
10
9
  };
11
10
 
12
11
  export { PageSectionHead };
@@ -1 +1 @@
1
- {"version":3,"file":"PageSectionHead.js","sources":["../../../../src/components/PageSectionHead/PageSectionHead.tsx"],"sourcesContent":["import React, { HTMLAttributes, PropsWithChildren } from 'react'\nimport { Box } from '@popmenu/common-ui'\nimport { useTheme } from '@material-ui/core'\n\nexport const PageSectionHead = (props: PropsWithChildren<HTMLAttributes<HTMLElement>>) => {\n const { children, ...restProps } = props\n const theme = useTheme()\n return (\n <Box fontSize={theme.typography.h5.fontSize} mb=\"1em\" display=\"flex\" justifyContent=\"space-between\" {...restProps}>\n {children}\n </Box>\n )\n}\n"],"names":[],"mappings":";;;;;AAIO,IAAM,eAAe,GAAG,UAAC,KAAqD,EAAA;IAC3E,IAAA,QAAQ,GAAmB,KAAK,CAAxB,QAAA,EAAK,SAAS,GAAA,MAAA,CAAK,KAAK,EAAlC,CAA0B,UAAA,CAAA,CAAF;AAC9B,IAAA,IAAM,KAAK,GAAG,QAAQ,EAAE;AACxB,IAAA,QACE,KAAA,CAAA,aAAA,CAAC,GAAG,EAAA,QAAA,CAAA,EAAC,QAAQ,EAAE,KAAK,CAAC,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,EAAE,EAAC,KAAK,EAAC,OAAO,EAAC,MAAM,EAAC,cAAc,EAAC,eAAe,EAAA,EAAK,SAAS,CAAA,EAC9G,QAAQ,CACL;AAEV;;;;"}
1
+ {"version":3,"file":"PageSectionHead.js","sources":["../../../../src/components/PageSectionHead/PageSectionHead.tsx"],"sourcesContent":["import React, { HTMLAttributes, PropsWithChildren } from 'react'\nimport { Box } from '@popmenu/common-ui'\nimport { useTheme } from '@material-ui/core'\n\nexport const PageSectionHead = (props: PropsWithChildren<HTMLAttributes<HTMLElement>>) => {\n const { children, ...restProps } = props\n const theme = useTheme()\n return (\n <Box fontSize={theme.typography.h5.fontSize} mb=\"1em\" display=\"flex\" justifyContent=\"space-between\" {...restProps}>\n {children}\n </Box>\n )\n}\n"],"names":[],"mappings":";;;;AAIa,MAAA,eAAe,GAAG,CAAC,KAAqD,KAAI;IACvF,MAAM,EAAE,QAAQ,EAAE,GAAG,SAAS,EAAE,GAAG,KAAK;AACxC,IAAA,MAAM,KAAK,GAAG,QAAQ,EAAE;AACxB,IAAA,QACE,KAAA,CAAA,aAAA,CAAC,GAAG,EAAA,EAAC,QAAQ,EAAE,KAAK,CAAC,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,EAAE,EAAC,KAAK,EAAC,OAAO,EAAC,MAAM,EAAC,cAAc,EAAC,eAAe,EAAA,GAAK,SAAS,EAAA,EAC9G,QAAQ,CACL;AAEV;;;;"}
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { TypographyProps } from '@popmenu/common-ui';
3
2
  export declare const PageSectionTitle: (props: TypographyProps) => JSX.Element;
@@ -1,12 +1,11 @@
1
- import { __rest, __assign } from 'tslib';
2
1
  import React from 'react';
3
2
  import { Typography } from '@popmenu/common-ui';
4
3
  import { useStyles } from './styles.js';
5
4
 
6
- var PageSectionTitle = function (props) {
7
- var children = props.children, restProps = __rest(props, ["children"]);
8
- var classes = useStyles();
9
- return (React.createElement(Typography, __assign({ classes: classes, gutterBottom: true, variant: "h5" }, restProps), children));
5
+ const PageSectionTitle = (props) => {
6
+ const { children, ...restProps } = props;
7
+ const classes = useStyles();
8
+ return (React.createElement(Typography, { classes: classes, gutterBottom: true, variant: "h5", ...restProps }, children));
10
9
  };
11
10
 
12
11
  export { PageSectionTitle };
@@ -1 +1 @@
1
- {"version":3,"file":"PageSectionTitle.js","sources":["../../../../src/components/PageSectionTitle/PageSectionTitle.tsx"],"sourcesContent":["import React from 'react'\nimport { Typography, TypographyProps } from '@popmenu/common-ui'\n\nimport { useStyles } from './styles'\n\nexport const PageSectionTitle = (props: TypographyProps) => {\n const { children, ...restProps } = props\n const classes = useStyles()\n return (\n <Typography classes={classes} gutterBottom variant=\"h5\" {...restProps}>\n {children}\n </Typography>\n )\n}\n"],"names":[],"mappings":";;;;;AAKO,IAAM,gBAAgB,GAAG,UAAC,KAAsB,EAAA;IAC7C,IAAA,QAAQ,GAAmB,KAAK,CAAxB,QAAA,EAAK,SAAS,GAAA,MAAA,CAAK,KAAK,EAAlC,CAA0B,UAAA,CAAA,CAAF;AAC9B,IAAA,IAAM,OAAO,GAAG,SAAS,EAAE;AAC3B,IAAA,QACE,KAAC,CAAA,aAAA,CAAA,UAAU,aAAC,OAAO,EAAE,OAAO,EAAE,YAAY,QAAC,OAAO,EAAC,IAAI,EAAK,EAAA,SAAS,GAClE,QAAQ,CACE;AAEjB;;;;"}
1
+ {"version":3,"file":"PageSectionTitle.js","sources":["../../../../src/components/PageSectionTitle/PageSectionTitle.tsx"],"sourcesContent":["import React from 'react'\nimport { Typography, TypographyProps } from '@popmenu/common-ui'\n\nimport { useStyles } from './styles'\n\nexport const PageSectionTitle = (props: TypographyProps) => {\n const { children, ...restProps } = props\n const classes = useStyles()\n return (\n <Typography classes={classes} gutterBottom variant=\"h5\" {...restProps}>\n {children}\n </Typography>\n )\n}\n"],"names":[],"mappings":";;;;AAKa,MAAA,gBAAgB,GAAG,CAAC,KAAsB,KAAI;IACzD,MAAM,EAAE,QAAQ,EAAE,GAAG,SAAS,EAAE,GAAG,KAAK;AACxC,IAAA,MAAM,OAAO,GAAG,SAAS,EAAE;AAC3B,IAAA,QACE,KAAC,CAAA,aAAA,CAAA,UAAU,IAAC,OAAO,EAAE,OAAO,EAAE,YAAY,QAAC,OAAO,EAAC,IAAI,EAAK,GAAA,SAAS,IAClE,QAAQ,CACE;AAEjB;;;;"}
@@ -1,10 +1,10 @@
1
1
  import { makeStyles } from '@material-ui/core';
2
2
 
3
- var useStyles = makeStyles(function () { return ({
3
+ const useStyles = makeStyles(() => ({
4
4
  gutterBottom: {
5
5
  marginBottom: '1em',
6
6
  },
7
- }); });
7
+ }));
8
8
 
9
9
  export { useStyles };
10
10
  //# sourceMappingURL=styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","sources":["../../../../src/components/PageSectionTitle/styles.ts"],"sourcesContent":["import { makeStyles } from '@material-ui/core'\n\nexport const useStyles = makeStyles(() => ({\n gutterBottom: {\n marginBottom: '1em',\n },\n}))\n"],"names":[],"mappings":";;IAEa,SAAS,GAAG,UAAU,CAAC,YAAA,EAAM,QAAC;AACzC,IAAA,YAAY,EAAE;AACZ,QAAA,YAAY,EAAE,KAAK;AACpB,KAAA;CACF,EAAC,EAAA;;;;"}
1
+ {"version":3,"file":"styles.js","sources":["../../../../src/components/PageSectionTitle/styles.ts"],"sourcesContent":["import { makeStyles } from '@material-ui/core'\n\nexport const useStyles = makeStyles(() => ({\n gutterBottom: {\n marginBottom: '1em',\n },\n}))\n"],"names":[],"mappings":";;MAEa,SAAS,GAAG,UAAU,CAAC,OAAO;AACzC,IAAA,YAAY,EAAE;AACZ,QAAA,YAAY,EAAE,KAAK;AACpB,KAAA;AACF,CAAA,CAAC;;;;"}
@@ -1,10 +1,9 @@
1
- import { __rest, __assign } from 'tslib';
2
1
  import React from 'react';
3
2
  import { Box } from '@popmenu/common-ui';
4
3
 
5
- var PageSections = function (props) {
6
- var children = props.children, restProps = __rest(props, ["children"]);
7
- return (React.createElement(Box, __assign({ display: "flex", flexDirection: "column", gridGap: 16 }, restProps), children));
4
+ const PageSections = (props) => {
5
+ const { children, ...restProps } = props;
6
+ return (React.createElement(Box, { display: "flex", flexDirection: "column", gridGap: 16, ...restProps }, children));
8
7
  };
9
8
 
10
9
  export { PageSections };
@@ -1 +1 @@
1
- {"version":3,"file":"PageSections.js","sources":["../../../../src/components/PageSections/PageSections.tsx"],"sourcesContent":["import React, { HTMLAttributes, PropsWithChildren } from 'react'\nimport { Box } from '@popmenu/common-ui'\n\nexport const PageSections = (props: PropsWithChildren<HTMLAttributes<HTMLElement>>) => {\n const { children, ...restProps } = props\n return (\n <Box display=\"flex\" flexDirection=\"column\" gridGap={16} {...restProps}>\n {children}\n </Box>\n )\n}\n"],"names":[],"mappings":";;;;AAGO,IAAM,YAAY,GAAG,UAAC,KAAqD,EAAA;IACxE,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,aAAa,EAAC,QAAQ,EAAC,OAAO,EAAE,EAAE,EAAA,EAAM,SAAS,CAClE,EAAA,QAAQ,CACL;AAEV;;;;"}
1
+ {"version":3,"file":"PageSections.js","sources":["../../../../src/components/PageSections/PageSections.tsx"],"sourcesContent":["import React, { HTMLAttributes, PropsWithChildren } from 'react'\nimport { Box } from '@popmenu/common-ui'\n\nexport const PageSections = (props: PropsWithChildren<HTMLAttributes<HTMLElement>>) => {\n const { children, ...restProps } = props\n return (\n <Box display=\"flex\" flexDirection=\"column\" gridGap={16} {...restProps}>\n {children}\n </Box>\n )\n}\n"],"names":[],"mappings":";;;AAGa,MAAA,YAAY,GAAG,CAAC,KAAqD,KAAI;IACpF,MAAM,EAAE,QAAQ,EAAE,GAAG,SAAS,EAAE,GAAG,KAAK;IACxC,QACE,oBAAC,GAAG,EAAA,EAAC,OAAO,EAAC,MAAM,EAAC,aAAa,EAAC,QAAQ,EAAC,OAAO,EAAE,EAAE,EAAA,GAAM,SAAS,EAClE,EAAA,QAAQ,CACL;AAEV;;;;"}
@@ -1,18 +1,17 @@
1
- import { __rest, __assign } from 'tslib';
2
1
  import React from 'react';
3
2
  import { Card, CardActionArea, Icon, CardContent } from '@popmenu/common-ui';
4
3
  import { CheckCircle, Circle } from '@popmenu/web-icons';
5
4
  import { useSelectableCardStyles } from './SelectableCardStyles.js';
6
5
 
7
- var SelectableCard = function (props) {
8
- var children = props.children, selectedProp = props.selected, _a = props.selection, selection = _a === void 0 ? [] : _a, onClick = props.onClick, value = props.value, labelId = props.labelId, CardActionAreaProps = props.CardActionAreaProps, muiProps = __rest(props, ["children", "selected", "selection", "onClick", "value", "labelId", "CardActionAreaProps"]);
9
- var selected = typeof selectedProp === 'boolean' ? selectedProp : selection.includes(value);
10
- var classes = useSelectableCardStyles(__assign(__assign({}, props), { selected: selected }));
11
- var handleClick = function () {
6
+ const SelectableCard = (props) => {
7
+ const { children, selected: selectedProp, selection = [], onClick, value, labelId, CardActionAreaProps, ...muiProps } = props;
8
+ const selected = typeof selectedProp === 'boolean' ? selectedProp : selection.includes(value);
9
+ const classes = useSelectableCardStyles({ ...props, selected });
10
+ const handleClick = () => {
12
11
  onClick(value);
13
12
  };
14
- return (React.createElement(Card, __assign({ classes: { root: classes.root } }, muiProps),
15
- React.createElement(CardActionArea, __assign({ onClick: handleClick, classes: { focusHighlight: classes.focusHighlight }, role: "checkbox", "aria-checked": selected, "aria-labelledby": labelId }, CardActionAreaProps),
13
+ return (React.createElement(Card, { classes: { root: classes.root }, ...muiProps },
14
+ React.createElement(CardActionArea, { onClick: handleClick, classes: { focusHighlight: classes.focusHighlight }, role: "checkbox", "aria-checked": selected, "aria-labelledby": labelId, ...CardActionAreaProps },
16
15
  React.createElement(Icon, { className: classes.icon, icon: selected ? CheckCircle : Circle, size: "medium" }),
17
16
  React.createElement(CardContent, { classes: { root: classes.cardContent } }, children))));
18
17
  };