@dashadmin/dash-admin 1.3.51 → 1.3.52

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 (55) hide show
  1. package/dist/components/avatar/Avatar.js +10 -1
  2. package/dist/components/currency/Format.js +3 -1
  3. package/dist/components/i18n/BridgedLocalesMenuButton.js +4 -2
  4. package/dist/components/misc/NoResults.js +3 -1
  5. package/dist/components/permission/PermissionsSelector.js +34 -14
  6. package/dist/components/permission/PermissionsSelectorList.js +11 -1
  7. package/dist/components/selects/RASearchableSelect.js +8 -6
  8. package/dist/components/selects/RASearchableSelectChips.js +8 -6
  9. package/dist/components/selects/SearchableSelect.js +8 -6
  10. package/dist/components/subscription/PlanAddonsSettings.js +88 -17
  11. package/dist/components/subscription/PlanAuditLog.js +41 -21
  12. package/dist/components/subscription/PlanFeaturesSettings.js +35 -6
  13. package/dist/components/subscription/PlanMetadataSettings.js +78 -42
  14. package/dist/components/subscription/PlanPricesSettings.js +20 -8
  15. package/dist/components/tenant/TenantSelector.js +8 -6
  16. package/dist/components/user/UserPreferences.js +77 -22
  17. package/dist/pages/DASHLightWeightLogin.js +7 -5
  18. package/dist/pages/Profile.js +5 -3
  19. package/dist/pages/RecoverPassword.js +28 -14
  20. package/dist/schemas/subscription/components/SubscriptionPaymentHistory.js +14 -2
  21. package/dist/schemas/subscription/components/SubscriptionPlanFeatures.js +37 -25
  22. package/dist/schemas/subscription/components/SubscriptionPlanPreview.js +47 -28
  23. package/dist/schemas/subscription/components/SubscriptionPlanStats.js +127 -37
  24. package/package.json +3 -3
  25. package/src/components/avatar/Avatar.tsx +8 -4
  26. package/src/components/currency/Format.tsx +8 -6
  27. package/src/components/i18n/BridgedLocalesMenuButton.tsx +4 -2
  28. package/src/components/misc/DASHGlobalErrorHandler.tsx +1 -1
  29. package/src/components/misc/NoResults.tsx +7 -4
  30. package/src/components/permission/AvailablePermissionsContext.tsx +1 -1
  31. package/src/components/permission/PermissionsSelector.tsx +48 -33
  32. package/src/components/permission/PermissionsSelectorList.tsx +7 -2
  33. package/src/components/selects/RASearchableSelect.tsx +22 -19
  34. package/src/components/selects/RASearchableSelectChips.tsx +23 -19
  35. package/src/components/selects/SearchableSelect.tsx +22 -18
  36. package/src/components/subscription/PlanAddonsSettings.tsx +61 -20
  37. package/src/components/subscription/PlanAuditLog.tsx +22 -8
  38. package/src/components/subscription/PlanFeaturesSettings.tsx +28 -8
  39. package/src/components/subscription/PlanMetadataSettings.tsx +29 -7
  40. package/src/components/subscription/PlanPricesSettings.tsx +30 -18
  41. package/src/components/tenant/TenantAttributesContext.tsx +1 -1
  42. package/src/components/tenant/TenantSelector.tsx +20 -17
  43. package/src/components/tenant/TenantSettingsContext.tsx +1 -1
  44. package/src/components/user/UserPreferences.tsx +56 -21
  45. package/src/contexts/SystemRequestsCache.tsx +1 -1
  46. package/src/default-theme/menu/AppMenuComponents/expanded/CollapsableSidebarMenu.tsx +3 -3
  47. package/src/default-theme/menu/SidebarActions.tsx +6 -6
  48. package/src/pages/DASHLightWeightLogin.tsx +8 -7
  49. package/src/pages/Profile.tsx +10 -9
  50. package/src/pages/RecoverPassword.tsx +15 -6
  51. package/src/schemas/subscription/components/SubscriptionPaymentHistory.tsx +9 -2
  52. package/src/schemas/subscription/components/SubscriptionPlanFeatures.tsx +10 -3
  53. package/src/schemas/subscription/components/SubscriptionPlanPreview.tsx +25 -12
  54. package/src/schemas/subscription/components/SubscriptionPlanStats.tsx +64 -14
  55. package/src/theme/AppSidebarLogo.tsx +7 -7
@@ -67,7 +67,12 @@ const StatsView: React.FC<IDashAutoAdminCustomFieldComponent> = ({ method, attri
67
67
 
68
68
  if (loading) {
69
69
  return (
70
- <Box display="flex" justifyContent="center" p={4}>
70
+ <Box
71
+ sx={{
72
+ display: "flex",
73
+ justifyContent: "center",
74
+ p: 4
75
+ }}>
71
76
  <CircularProgress />
72
77
  </Box>
73
78
  );
@@ -86,13 +91,18 @@ const StatsView: React.FC<IDashAutoAdminCustomFieldComponent> = ({ method, attri
86
91
  <Typography variant="h6" gutterBottom>
87
92
  Estadísticas del Plan
88
93
  </Typography>
89
-
94
+
90
95
  <Grid container spacing={2}>
91
96
  {/* @ts-ignore - Grid API compatibility issue */}
92
97
  <Grid component="div" item size={{ xs: 12, sm: 6, md: 3 }}>
93
98
  <Card>
94
99
  <CardContent>
95
- <Box display="flex" alignItems="center" mb={1}>
100
+ <Box
101
+ sx={{
102
+ display: "flex",
103
+ alignItems: "center",
104
+ mb: 1
105
+ }}>
96
106
  <PeopleIcon color="primary" sx={{ mr: 1 }} />
97
107
  <Typography variant="h6" color="primary">
98
108
  {stats.total_subscriptions}
@@ -109,9 +119,16 @@ const StatsView: React.FC<IDashAutoAdminCustomFieldComponent> = ({ method, attri
109
119
  <Grid component="div" item size={{ xs: 12, sm: 6, md: 3 }}>
110
120
  <Card>
111
121
  <CardContent>
112
- <Box display="flex" alignItems="center" mb={1}>
122
+ <Box
123
+ sx={{
124
+ display: "flex",
125
+ alignItems: "center",
126
+ mb: 1
127
+ }}>
113
128
  <TrendingUpIcon color="success" sx={{ mr: 1 }} />
114
- <Typography variant="h6" color="success.main">
129
+ <Typography variant="h6" sx={{
130
+ color: "success.main"
131
+ }}>
115
132
  {stats.active_subscriptions}
116
133
  </Typography>
117
134
  </Box>
@@ -126,9 +143,16 @@ const StatsView: React.FC<IDashAutoAdminCustomFieldComponent> = ({ method, attri
126
143
  <Grid component="div" item size={{ xs: 12, sm: 6, md: 3 }}>
127
144
  <Card>
128
145
  <CardContent>
129
- <Box display="flex" alignItems="center" mb={1}>
146
+ <Box
147
+ sx={{
148
+ display: "flex",
149
+ alignItems: "center",
150
+ mb: 1
151
+ }}>
130
152
  <TimelineIcon color="info" sx={{ mr: 1 }} />
131
- <Typography variant="h6" color="info.main">
153
+ <Typography variant="h6" sx={{
154
+ color: "info.main"
155
+ }}>
132
156
  {stats.trial_subscriptions}
133
157
  </Typography>
134
158
  </Box>
@@ -143,8 +167,15 @@ const StatsView: React.FC<IDashAutoAdminCustomFieldComponent> = ({ method, attri
143
167
  <Grid component="div" item size={{ xs: 12, sm: 6, md: 3 }}>
144
168
  <Card>
145
169
  <CardContent>
146
- <Box display="flex" alignItems="center" mb={1}>
147
- <Typography variant="h6" color="error.main">
170
+ <Box
171
+ sx={{
172
+ display: "flex",
173
+ alignItems: "center",
174
+ mb: 1
175
+ }}>
176
+ <Typography variant="h6" sx={{
177
+ color: "error.main"
178
+ }}>
148
179
  {stats.cancelled_subscriptions}
149
180
  </Typography>
150
181
  </Box>
@@ -159,9 +190,16 @@ const StatsView: React.FC<IDashAutoAdminCustomFieldComponent> = ({ method, attri
159
190
  <Grid component="div" item size={{ xs: 12, sm: 6 }}>
160
191
  <Card>
161
192
  <CardContent>
162
- <Box display="flex" alignItems="center" mb={1}>
193
+ <Box
194
+ sx={{
195
+ display: "flex",
196
+ alignItems: "center",
197
+ mb: 1
198
+ }}>
163
199
  <MoneyIcon color="success" sx={{ mr: 1 }} />
164
- <Typography variant="h6" color="success.main">
200
+ <Typography variant="h6" sx={{
201
+ color: "success.main"
202
+ }}>
165
203
  {formatCurrency(stats.total_revenue)}
166
204
  </Typography>
167
205
  </Box>
@@ -176,7 +214,12 @@ const StatsView: React.FC<IDashAutoAdminCustomFieldComponent> = ({ method, attri
176
214
  <Grid component="div" item size={{ xs: 12, sm: 6 }}>
177
215
  <Card>
178
216
  <CardContent>
179
- <Box display="flex" alignItems="center" mb={1}>
217
+ <Box
218
+ sx={{
219
+ display: "flex",
220
+ alignItems: "center",
221
+ mb: 1
222
+ }}>
180
223
  <MoneyIcon color="primary" sx={{ mr: 1 }} />
181
224
  <Typography variant="h6" color="primary">
182
225
  {formatCurrency(stats.monthly_revenue)}
@@ -193,7 +236,12 @@ const StatsView: React.FC<IDashAutoAdminCustomFieldComponent> = ({ method, attri
193
236
  <Grid component="div" item size={12}>
194
237
  <Card>
195
238
  <CardContent>
196
- <Box display="flex" alignItems="center" justifyContent="space-between">
239
+ <Box
240
+ sx={{
241
+ display: "flex",
242
+ alignItems: "center",
243
+ justifyContent: "space-between"
244
+ }}>
197
245
  <Box>
198
246
  <Typography variant="h6">
199
247
  Tasa de Conversión
@@ -213,7 +261,9 @@ const StatsView: React.FC<IDashAutoAdminCustomFieldComponent> = ({ method, attri
213
261
  </Grid>
214
262
  </Grid>
215
263
 
216
- <Box mt={3}>
264
+ <Box sx={{
265
+ mt: 3
266
+ }}>
217
267
  <Typography variant="h6" gutterBottom>
218
268
  Información Adicional
219
269
  </Typography>
@@ -25,24 +25,24 @@ const AppSidebarLogo: React.FC<IAppSidebarLogo> = ({
25
25
  }*/
26
26
 
27
27
  return (
28
- <div className='dash-layout-sider-header'>
29
- {!sidebarExpanded ? (
28
+ <div className='dash-layout-sider-header'>
29
+ {!sidebarExpanded ? (
30
30
  // @ts-ignore - AppLogo props compatibility issue
31
- <AppLogo type='logo' logoBig={logo} squaredLogo={squaredLogo} />
31
+ (<AppLogo type='logo' logoBig={logo} squaredLogo={squaredLogo} />)
32
32
  ) : (
33
33
  // @ts-ignore - AppLogo props compatibility issue
34
- <AppLogo type='iso' logoBig={logo} squaredLogo={squaredLogo} />
34
+ (<AppLogo type='iso' logoBig={logo} squaredLogo={squaredLogo} />)
35
35
  )}
36
36
 
37
- {/*<Link to="/" className="dash-site-logo">
37
+ {/*<Link to="/" className="dash-site-logo">
38
38
  {navStyle === NAV_STYLE_NO_HEADER_MINI_SIDEBAR && width >= TAB_SIZE ?
39
39
  <img alt="lo" src={("/assets/images/w-logo.png")}/> :
40
40
  themeType === THEME_TYPE_LIGHT ?
41
41
  <img alt="logo1" src={("/assets/images/logo-white.png")}/> :
42
42
  <img alt="logo2" src={("/assets/images/logo.png")}/>}
43
43
  </Link>*/}
44
- </div>
45
- );
44
+ </div>
45
+ );
46
46
  };
47
47
 
48
48
  export default AppSidebarLogo;