@canmingir/link 1.2.27 → 1.2.30

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 (60) hide show
  1. package/package.json +9 -5
  2. package/src/assets/illustrations/avatar-shape.jsx +6 -7
  3. package/src/assets/illustrations/booking-illustration.jsx +4 -14
  4. package/src/assets/illustrations/check-in-illustration.jsx +4 -10
  5. package/src/assets/illustrations/check-out-illustration.jsx +4 -3
  6. package/src/assets/illustrations/coming-soon-illustration.jsx +4 -17
  7. package/src/assets/illustrations/forbidden-illustration.jsx +4 -12
  8. package/src/assets/illustrations/maintenance-illustration.jsx +4 -24
  9. package/src/assets/illustrations/motivation-illustration.jsx +4 -9
  10. package/src/assets/illustrations/order-complete-illustration.jsx +4 -12
  11. package/src/assets/illustrations/page-not-found-illustration.jsx +4 -9
  12. package/src/assets/illustrations/seo-illustration.jsx +4 -16
  13. package/src/assets/illustrations/sever-error-illustration.jsx +4 -21
  14. package/src/assets/illustrations/upgrade-storage-illustration.jsx +4 -20
  15. package/src/assets/illustrations/upload-illustration.jsx +4 -81
  16. package/src/components/TopNavBar/TopNavBar.jsx +6 -2
  17. package/src/components/file-thumbnail/file-thumbnail.jsx +5 -6
  18. package/src/components/label/label.jsx +0 -4
  19. package/src/components/nav-section/horizontal/nav-section-horizontal.jsx +5 -6
  20. package/src/components/settings/drawer/layout-options.jsx +5 -4
  21. package/src/components/settings/drawer/presets-options.jsx +6 -5
  22. package/src/components/settings/drawer/settings-drawer.jsx +7 -4
  23. package/src/components/settings/drawer/stretch-options.jsx +5 -5
  24. package/src/layouts/DashboardLayout/header.jsx +5 -4
  25. package/src/layouts/DashboardLayout/nav-mini.jsx +5 -7
  26. package/src/layouts/DashboardLayout/nav-vertical.jsx +11 -11
  27. package/src/layouts/FullScreenLayout/FullScreenLayout.jsx +5 -1
  28. package/src/layouts/FullScreenLayout/nav-vertical.jsx +11 -11
  29. package/src/layouts/MainLayout/footer.jsx +7 -7
  30. package/src/layouts/MainLayout/header.jsx +3 -2
  31. package/src/layouts/MainLayout/nav/desktop/nav-list.jsx +8 -8
  32. package/src/layouts/MainLayout/nav/mobile/index.jsx +7 -6
  33. package/src/layouts/TwoSideLayout/TwoSideLayout.jsx +9 -3
  34. package/src/layouts/auth/classic.jsx +6 -6
  35. package/src/layouts/auth/modern.jsx +3 -4
  36. package/src/layouts/common/ProjectBar/index.jsx +13 -11
  37. package/src/layouts/common/header-sim.jsx +3 -2
  38. package/src/layouts/common/header-simple.jsx +6 -3
  39. package/src/layouts/common/notifications-popover/index.jsx +18 -13
  40. package/src/layouts/common/notifications-popover/notification-item.jsx +28 -16
  41. package/src/lib/APIPath/APIPath.jsx +2 -2
  42. package/src/lib/APITree/APITree.jsx +3 -1
  43. package/src/lib/AddItemWizard/AddItemWizard.jsx +21 -10
  44. package/src/lib/CustomBreadcrumbs/CustomBreadcrumbs.jsx +3 -2
  45. package/src/lib/Flow/layouts/CardLayout.jsx +4 -3
  46. package/src/lib/Flow/nodes/DefaultCard.jsx +6 -8
  47. package/src/lib/IconSelector/IconSelector.jsx +5 -1
  48. package/src/lib/ItemSummary/ItemSummary.jsx +11 -6
  49. package/src/lib/ItemSummary/ItemsSummary.jsx +38 -26
  50. package/src/lib/Label/Label.jsx +0 -4
  51. package/src/lib/ResourceMenu/ResourceMenu.jsx +3 -1
  52. package/src/lib/SparkleInput/SparkleInput.jsx +31 -28
  53. package/src/lib/TableSelectedAction/TableSelectedAction.jsx +7 -8
  54. package/src/pages/ConfigError.jsx +3 -1
  55. package/src/theme/index.jsx +47 -48
  56. package/src/theme/overrides/components/loading-button.js +5 -5
  57. package/src/theme/overrides/default-props.jsx +17 -11
  58. package/src/widgets/Login/CognitoLogin.jsx +61 -53
  59. package/src/widgets/Login/DemoLogin.jsx +34 -31
  60. package/src/widgets/SettingsDialog.jsx +45 -19
@@ -105,11 +105,14 @@ export function defaultProps(theme) {
105
105
  },
106
106
  MuiCardHeader: {
107
107
  defaultProps: {
108
- titleTypographyProps: { variant: "h6" },
109
- subheaderTypographyProps: {
110
- variant: "body2",
111
- marginTop: theme.spacing(0.5),
112
- },
108
+ slotProps: {
109
+ title: { variant: "h6" },
110
+
111
+ subheader: {
112
+ variant: "body2",
113
+ marginTop: theme.spacing(0.5),
114
+ }
115
+ }
113
116
  },
114
117
  },
115
118
  MuiChip: {
@@ -134,12 +137,15 @@ export function defaultProps(theme) {
134
137
  },
135
138
  MuiListItemText: {
136
139
  defaultProps: {
137
- primaryTypographyProps: {
138
- typography: "subtitle2",
139
- },
140
- secondaryTypographyProps: {
141
- component: "span",
142
- },
140
+ slotProps: {
141
+ primary: {
142
+ typography: "subtitle2",
143
+ },
144
+
145
+ secondary: {
146
+ component: "span",
147
+ }
148
+ }
143
149
  },
144
150
  },
145
151
  MuiPaper: {
@@ -180,28 +180,33 @@ export default function CognitoLogin() {
180
180
  )}
181
181
  </Box>
182
182
 
183
- <Typography variant="h4" fontWeight={700} gutterBottom>
183
+ <Typography variant="h4" gutterBottom sx={{
184
+ fontWeight: 700
185
+ }}>
184
186
  {titles[mode].heading}
185
187
  </Typography>
186
- <Typography variant="body2" color="text.secondary">
188
+ <Typography variant="body2" sx={{
189
+ color: "text.secondary"
190
+ }}>
187
191
  {titles[mode].sub}
188
192
  </Typography>
189
193
  </Box>
190
-
191
194
  <Stack spacing={2}>
192
195
  <TextField
193
196
  label="Email"
194
197
  value={email}
195
198
  onChange={(e) => setEmail(e.target.value)}
196
199
  fullWidth
197
- InputProps={{
198
- startAdornment: (
199
- <InputAdornment position="start">
200
- <EmailOutlined sx={{ color: "text.secondary", fontSize: 22 }} />
201
- </InputAdornment>
202
- ),
203
- }}
204
200
  sx={inputSx}
201
+ slotProps={{
202
+ input: {
203
+ startAdornment: (
204
+ <InputAdornment position="start">
205
+ <EmailOutlined sx={{ color: "text.secondary", fontSize: 22 }} />
206
+ </InputAdornment>
207
+ ),
208
+ }
209
+ }}
205
210
  />
206
211
 
207
212
  {mode !== "confirm" && (
@@ -211,17 +216,19 @@ export default function CognitoLogin() {
211
216
  value={password}
212
217
  onChange={(e) => setPassword(e.target.value)}
213
218
  fullWidth
214
- InputProps={{
215
- startAdornment: (
216
- <InputAdornment position="start">
217
- <LockOutlined
218
- sx={{ color: "text.secondary", fontSize: 22 }}
219
- />
220
- </InputAdornment>
221
- ),
222
- endAdornment: passwordAdornment,
223
- }}
224
219
  sx={inputSx}
220
+ slotProps={{
221
+ input: {
222
+ startAdornment: (
223
+ <InputAdornment position="start">
224
+ <LockOutlined
225
+ sx={{ color: "text.secondary", fontSize: 22 }}
226
+ />
227
+ </InputAdornment>
228
+ ),
229
+ endAdornment: passwordAdornment,
230
+ }
231
+ }}
225
232
  />
226
233
  )}
227
234
 
@@ -232,28 +239,30 @@ export default function CognitoLogin() {
232
239
  value={confirmPassword}
233
240
  onChange={(e) => setConfirmPassword(e.target.value)}
234
241
  fullWidth
235
- InputProps={{
236
- startAdornment: (
237
- <InputAdornment position="start">
238
- <LockOutlined
239
- sx={{ color: "text.secondary", fontSize: 22 }}
240
- />
241
- </InputAdornment>
242
- ),
243
- endAdornment: (
244
- <InputAdornment position="end">
245
- <IconButton
246
- onClick={() => setShowConfirmPassword(!showConfirmPassword)}
247
- edge="end"
248
- size="small"
249
- tabIndex={-1}
250
- >
251
- {showConfirmPassword ? <VisibilityOff /> : <Visibility />}
252
- </IconButton>
253
- </InputAdornment>
254
- ),
255
- }}
256
242
  sx={inputSx}
243
+ slotProps={{
244
+ input: {
245
+ startAdornment: (
246
+ <InputAdornment position="start">
247
+ <LockOutlined
248
+ sx={{ color: "text.secondary", fontSize: 22 }}
249
+ />
250
+ </InputAdornment>
251
+ ),
252
+ endAdornment: (
253
+ <InputAdornment position="end">
254
+ <IconButton
255
+ onClick={() => setShowConfirmPassword(!showConfirmPassword)}
256
+ edge="end"
257
+ size="small"
258
+ tabIndex={-1}
259
+ >
260
+ {showConfirmPassword ? <VisibilityOff /> : <Visibility />}
261
+ </IconButton>
262
+ </InputAdornment>
263
+ ),
264
+ }
265
+ }}
257
266
  />
258
267
  )}
259
268
 
@@ -263,20 +272,21 @@ export default function CognitoLogin() {
263
272
  value={code}
264
273
  onChange={(e) => setCode(e.target.value)}
265
274
  fullWidth
266
- InputProps={{
267
- startAdornment: (
268
- <InputAdornment position="start">
269
- <CheckOutlined
270
- sx={{ color: "text.secondary", fontSize: 22 }}
271
- />
272
- </InputAdornment>
273
- ),
274
- }}
275
275
  sx={inputSx}
276
+ slotProps={{
277
+ input: {
278
+ startAdornment: (
279
+ <InputAdornment position="start">
280
+ <CheckOutlined
281
+ sx={{ color: "text.secondary", fontSize: 22 }}
282
+ />
283
+ </InputAdornment>
284
+ ),
285
+ }
286
+ }}
276
287
  />
277
288
  )}
278
289
  </Stack>
279
-
280
290
  {mode === "login" && (
281
291
  <Stack spacing={1.5}>
282
292
  <Button
@@ -297,7 +307,6 @@ export default function CognitoLogin() {
297
307
  </Button>
298
308
  </Stack>
299
309
  )}
300
-
301
310
  {mode === "signup" && (
302
311
  <Stack spacing={1.5}>
303
312
  <Button
@@ -318,7 +327,6 @@ export default function CognitoLogin() {
318
327
  </Button>
319
328
  </Stack>
320
329
  )}
321
-
322
330
  {mode === "confirm" && (
323
331
  <Button
324
332
  variant="contained"
@@ -62,13 +62,6 @@ export default function DemoLogin() {
62
62
  value={username}
63
63
  onChange={(e) => setUsername(e.target.value)}
64
64
  fullWidth
65
- InputProps={{
66
- startAdornment: (
67
- <InputAdornment position="start">
68
- <PersonOutline sx={{ color: "text.secondary", fontSize: 22 }} />
69
- </InputAdornment>
70
- ),
71
- }}
72
65
  sx={{
73
66
  "& .MuiOutlinedInput-root": {
74
67
  fontSize: "1rem",
@@ -80,6 +73,15 @@ export default function DemoLogin() {
80
73
  },
81
74
  },
82
75
  }}
76
+ slotProps={{
77
+ input: {
78
+ startAdornment: (
79
+ <InputAdornment position="start">
80
+ <PersonOutline sx={{ color: "text.secondary", fontSize: 22 }} />
81
+ </InputAdornment>
82
+ ),
83
+ }
84
+ }}
83
85
  />
84
86
 
85
87
  <TextField
@@ -88,25 +90,6 @@ export default function DemoLogin() {
88
90
  value={password}
89
91
  onChange={(e) => setPassword(e.target.value)}
90
92
  fullWidth
91
- InputProps={{
92
- startAdornment: (
93
- <InputAdornment position="start">
94
- <LockOutlined sx={{ color: "text.secondary", fontSize: 22 }} />
95
- </InputAdornment>
96
- ),
97
- endAdornment: (
98
- <InputAdornment position="end">
99
- <IconButton
100
- onClick={() => setShowPassword(!showPassword)}
101
- edge="end"
102
- size="small"
103
- tabIndex={-1}
104
- >
105
- {showPassword ? <VisibilityOff /> : <Visibility />}
106
- </IconButton>
107
- </InputAdornment>
108
- ),
109
- }}
110
93
  sx={{
111
94
  "& .MuiOutlinedInput-root": {
112
95
  fontSize: "1rem",
@@ -123,9 +106,29 @@ export default function DemoLogin() {
123
106
  handleLogin();
124
107
  }
125
108
  }}
109
+ slotProps={{
110
+ input: {
111
+ startAdornment: (
112
+ <InputAdornment position="start">
113
+ <LockOutlined sx={{ color: "text.secondary", fontSize: 22 }} />
114
+ </InputAdornment>
115
+ ),
116
+ endAdornment: (
117
+ <InputAdornment position="end">
118
+ <IconButton
119
+ onClick={() => setShowPassword(!showPassword)}
120
+ edge="end"
121
+ size="small"
122
+ tabIndex={-1}
123
+ >
124
+ {showPassword ? <VisibilityOff /> : <Visibility />}
125
+ </IconButton>
126
+ </InputAdornment>
127
+ ),
128
+ }
129
+ }}
126
130
  />
127
131
  </Stack>
128
-
129
132
  <Button
130
133
  variant="contained"
131
134
  onClick={handleLogin}
@@ -153,7 +156,6 @@ export default function DemoLogin() {
153
156
  >
154
157
  Sign in
155
158
  </Button>
156
-
157
159
  <Box
158
160
  sx={{
159
161
  mt: 1,
@@ -167,9 +169,10 @@ export default function DemoLogin() {
167
169
  >
168
170
  <Typography
169
171
  variant="caption"
170
- color="text.secondary"
171
- sx={{ fontSize: "0.8125rem" }}
172
- >
172
+ sx={{
173
+ color: "text.secondary",
174
+ fontSize: "0.8125rem"
175
+ }}>
173
176
  Demo credentials:{" "}
174
177
  <Box component="strong" sx={{ color: "text.primary" }}>
175
178
  admin / admin
@@ -167,11 +167,13 @@ function SettingsDialog({ handleClose, open }) {
167
167
  maxWidth={"md"}
168
168
  onClose={() => handleClose()}
169
169
  sx={{ bgcolor: "custom.darkDialogBg", zIndex: 2147483647 }}
170
- PaperProps={{
171
- style: {
172
- color: "white",
173
- minHeight: 600,
174
- },
170
+ slotProps={{
171
+ paper: {
172
+ style: {
173
+ color: "white",
174
+ minHeight: 600,
175
+ },
176
+ }
175
177
  }}
176
178
  >
177
179
  <DialogContent>
@@ -212,9 +214,13 @@ const Permission = () => {
212
214
  }, [event, event2]);
213
215
 
214
216
  return (
215
- <Stack direction="column" spacing={2} p={2}>
217
+ <Stack direction="column" spacing={2} sx={{
218
+ p: 2
219
+ }}>
216
220
  <Typography variant="h6">Users</Typography>
217
- <Typography variant="subtitle2" color="text.secondary">
221
+ <Typography variant="subtitle2" sx={{
222
+ color: "text.secondary"
223
+ }}>
218
224
  Users with access to the project.
219
225
  </Typography>
220
226
  <List>
@@ -300,9 +306,13 @@ const Settings = () => {
300
306
  };
301
307
 
302
308
  return (
303
- <Stack direction="column" spacing={2} p={2}>
309
+ <Stack direction="column" spacing={2} sx={{
310
+ p: 2
311
+ }}>
304
312
  <Typography variant="h6">Settings</Typography>
305
- <Typography variant="subtitle2" color="text.secondary">
313
+ <Typography variant="subtitle2" sx={{
314
+ color: "text.secondary"
315
+ }}>
306
316
  Configure your application settings.
307
317
  </Typography>
308
318
  <List>
@@ -363,7 +373,9 @@ const About = () => {
363
373
  const description = pkg.description;
364
374
 
365
375
  return (
366
- <Stack direction="column" spacing={2} p={2}>
376
+ <Stack direction="column" spacing={2} sx={{
377
+ p: 2
378
+ }}>
367
379
  <Box
368
380
  sx={{
369
381
  p: 3,
@@ -374,7 +386,9 @@ const About = () => {
374
386
  "linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01))",
375
387
  }}
376
388
  >
377
- <Stack direction="row" spacing={2.5} alignItems="center">
389
+ <Stack direction="row" spacing={2.5} sx={{
390
+ alignItems: "center"
391
+ }}>
378
392
  <Avatar
379
393
  src={iconSrc}
380
394
  variant="rounded"
@@ -390,16 +404,20 @@ const About = () => {
390
404
  </Avatar>
391
405
 
392
406
  <Box sx={{ flex: 1, minWidth: 0 }}>
393
- <Typography variant="h5" fontWeight={600}>
407
+ <Typography variant="h5" sx={{
408
+ fontWeight: 600
409
+ }}>
394
410
  {appName.toUpperCase()}
395
411
  </Typography>
396
412
 
397
413
  {description && (
398
414
  <Typography
399
415
  variant="body2"
400
- color="text.secondary"
401
- sx={{ mt: 0.5, maxWidth: 520 }}
402
- >
416
+ sx={{
417
+ color: "text.secondary",
418
+ mt: 0.5,
419
+ maxWidth: 520
420
+ }}>
403
421
  {description}
404
422
  </Typography>
405
423
  )}
@@ -442,7 +460,9 @@ const About = () => {
442
460
  textAlign: "center",
443
461
  }}
444
462
  >
445
- <Typography variant="caption" color="text.secondary">
463
+ <Typography variant="caption" sx={{
464
+ color: "text.secondary"
465
+ }}>
446
466
  © 2026 greycollar.ai. All rights reserved.
447
467
  </Typography>
448
468
  </Box>
@@ -453,11 +473,17 @@ const About = () => {
453
473
 
454
474
  const InfoRow = ({ label, value, link }) => {
455
475
  return (
456
- <Stack direction="row" spacing={1.5} alignItems="center">
457
- <Typography variant="body2" color="text.secondary" sx={{ minWidth: 110 }}>
476
+ <Stack direction="row" spacing={1.5} sx={{
477
+ alignItems: "center"
478
+ }}>
479
+ <Typography
480
+ variant="body2"
481
+ sx={{
482
+ color: "text.secondary",
483
+ minWidth: 110
484
+ }}>
458
485
  {label}
459
486
  </Typography>
460
-
461
487
  {link ? (
462
488
  <Link href={link} target="_blank" rel="noreferrer" underline="hover">
463
489
  {value}