@platformatic/ui-components 0.8.1 → 0.8.2

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.
@@ -0,0 +1,101 @@
1
+ import * as React from 'react'
2
+ import PropTypes from 'prop-types'
3
+ import styles from './Icons.module.css'
4
+ import { COLORS_ICON, SIZES, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
5
+
6
+ const RemoveAppIcon = ({
7
+ color = MAIN_DARK_BLUE,
8
+ size = MEDIUM,
9
+ disabled = false,
10
+ inactive = false
11
+ }) => {
12
+ let className = `${styles.svgClassName} ` + styles[`${color}`]
13
+ if (disabled) {
14
+ className += ` ${styles.iconDisabled}`
15
+ }
16
+ if (inactive) {
17
+ className += ` ${styles.iconInactive}`
18
+ }
19
+ let icon = <></>
20
+
21
+ switch (size) {
22
+ case SMALL:
23
+ icon = (
24
+ <svg
25
+ width={16}
26
+ height={16}
27
+ viewBox='0 0 16 16'
28
+ fill='none'
29
+ xmlns='http://www.w3.org/2000/svg'
30
+ className={className}
31
+ >
32
+ <path d='M2.5 5V10.8722L8 14M8 14L13.5 10.8722V5M8 14V11' stroke='none' strokeLinecap='round' strokeLinejoin='round' />
33
+ <path d='M4.5 6L2.5 4.85711L8 2L13.5 4.85711L11.4538 5.79253' stroke='none' strokeLinecap='round' strokeLinejoin='round' />
34
+ <path d='M6.5 7.5H9.5' stroke='none' strokeLinecap='round' strokeLinejoin='round' />
35
+ <circle cx='8' cy='7.5' r='3.5' stroke='none' />
36
+
37
+ </svg>
38
+ )
39
+ break
40
+ case MEDIUM:
41
+ icon = (
42
+ <svg
43
+ width={24}
44
+ height={24}
45
+ viewBox='0 0 24 24'
46
+ fill='none'
47
+ xmlns='http://www.w3.org/2000/svg'
48
+ className={className}
49
+ >
50
+ <path d='M3.75 7.5V16.3083L12 21M12 21L20.25 16.3083V7.5M12 21V16.5' stroke='none' strokeWidth={1.5} strokeLinecap='round' strokeLinejoin='round' />
51
+ <path d='M6.75 9L3.75 7.28567L12 3L20.25 7.28567L17.1807 8.6888' stroke='none' strokeWidth={1.5} strokeLinecap='round' strokeLinejoin='round' />
52
+ <path d='M9.75 11.25H14.25' stroke='none' strokeWidth={1.5} strokeLinecap='round' strokeLinejoin='round' />
53
+ <circle cx='12' cy='11.25' r='5.25' stroke='none' strokeWidth={1.5} />
54
+ </svg>
55
+ )
56
+ break
57
+ case LARGE:
58
+ icon = (
59
+ <svg
60
+ width={40}
61
+ height={40}
62
+ viewBox='0 0 40 40'
63
+ fill='none'
64
+ xmlns='http://www.w3.org/2000/svg'
65
+ className={className}
66
+ >
67
+ <path d='M6.25 12.5V27.1806L20 35M20 35L33.75 27.1806V12.5M20 35V27.5' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
68
+ <path d='M11.25 15L6.25 12.1428L20 5L33.75 12.1428L28.6345 14.4813' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
69
+ <path d='M16.25 18.75H23.75' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
70
+ <circle cx='20' cy='18.75' r='8.75' stroke='none' strokeWidth={2} />
71
+
72
+ </svg>
73
+ )
74
+ break
75
+
76
+ default:
77
+ break
78
+ }
79
+ return icon
80
+ }
81
+
82
+ RemoveAppIcon.propTypes = {
83
+ /**
84
+ * color of text, icon and borders
85
+ */
86
+ color: PropTypes.oneOf(COLORS_ICON),
87
+ /**
88
+ * Size
89
+ */
90
+ size: PropTypes.oneOf(SIZES),
91
+ /**
92
+ * disabled
93
+ */
94
+ disabled: PropTypes.bool,
95
+ /**
96
+ * inactive
97
+ */
98
+ inactive: PropTypes.bool
99
+ }
100
+
101
+ export default RemoveAppIcon
@@ -17,6 +17,7 @@ import AppDetailsIcon from './AppDetailsIcon'
17
17
  import AppEditIcon from './AppEditIcon'
18
18
  import AppIcon from './AppIcon'
19
19
  import AppListIcon from './AppListIcon'
20
+ import AppMissingIcon from './AppMissingIcon'
20
21
  import AppEmptyIcon from './AppEmptyIcon'
21
22
  import AppSettingsIcon from './AppSettingsIcon'
22
23
  import ApplicationTypeIcon from './ApplicationTypeIcon'
@@ -70,6 +71,7 @@ import CopyPasteIcon from './CopyPasteIcon'
70
71
  import CreditCardIcon from './CreditCardIcon'
71
72
  import ConfigureDatabaseIcon from './ConfigureDatabaseIcon'
72
73
  import CreateAppIcon from './CreateAppIcon'
74
+ import CreatingAppIcon from './CreatingAppIcon'
73
75
  import RunningAppIcon from './RunningAppIcon'
74
76
  import DatabaseIcon from './DatabaseIcon'
75
77
  import DatabaseEditIcon from './DatabaseEditIcon'
@@ -146,6 +148,7 @@ import PreviewPRIcon from './PreviewPRIcon'
146
148
  import PullRequestIcon from './PullRequestIcon'
147
149
  import PullRequestLoadingIcon from './PullRequestLoadingIcon'
148
150
  import RecentAppsIcon from './RecentAppsIcon'
151
+ import RemoveAppIcon from './RemoveAppIcon'
149
152
  import RemoveIcon from './RemoveIcon'
150
153
  import RequestOwnershipIcon from './RequestOwnershipIcon'
151
154
  import RequestsIcon from './RequestsIcon'
@@ -176,7 +179,7 @@ import StackablesIcon from './StackablesIcon'
176
179
  import StackablesPluginIcon from './StackablesPluginIcon'
177
180
  import StackablesTemplateIcon from './StackablesTemplateIcon'
178
181
  import StopIcon from './StopIcon'
179
- import StoppedAppIcon from './StoppedAppIcon'
182
+ import AppStoppedIcon from './AppStoppedIcon'
180
183
  import TableIcon from './TableIcon'
181
184
  import TaxonomyIcon from './TaxonomyIcon'
182
185
  import TerminalIcon from './TerminalIcon'
@@ -218,8 +221,9 @@ export default {
218
221
  AppDetailsIcon,
219
222
  AppEditIcon,
220
223
  AppIcon,
221
- AppListIcon,
222
224
  AppEmptyIcon,
225
+ AppListIcon,
226
+ AppMissingIcon,
223
227
  AppSettingsIcon,
224
228
  ApplicationTypeIcon,
225
229
  AppWorkspace,
@@ -272,6 +276,7 @@ export default {
272
276
  CreditCardIcon,
273
277
  ConfigureDatabaseIcon,
274
278
  CreateAppIcon,
279
+ CreatingAppIcon,
275
280
  RunningAppIcon,
276
281
  DatabaseIcon,
277
282
  DatabaseEditIcon,
@@ -348,6 +353,7 @@ export default {
348
353
  PullRequestIcon,
349
354
  PullRequestLoadingIcon,
350
355
  RecentAppsIcon,
356
+ RemoveAppIcon,
351
357
  RemoveIcon,
352
358
  RequestOwnershipIcon,
353
359
  RequestsIcon,
@@ -361,7 +367,7 @@ export default {
361
367
  ServiceIcon,
362
368
  ServicesWorkingIcon,
363
369
  StopIcon,
364
- StoppedAppIcon,
370
+ AppStoppedIcon,
365
371
  SlotIcon,
366
372
  SwitchIcon,
367
373
  SocialDiscordIcon,