@@ -23,39 +23,43 @@ class PublishCommand extends Command
23
23
24
24
protected array $ fluxComponents = [
25
25
'free ' => [
26
+ 'Accent ' => ['accent ' ],
27
+ 'Badge ' => ['badge ' ],
28
+ 'Breadcrumbs ' => ['breadcrumbs ' ],
26
29
'Button ' => ['button ' ],
30
+ 'Checkbox ' => ['checkbox ' ],
27
31
'Dropdown ' => ['dropdown ' , 'menu ' , 'navmenu ' ],
32
+ 'Field ' => ['fieldset ' , 'legend ' , 'field ' , 'label ' , 'description ' , 'error ' ],
33
+ 'Heading ' => ['heading ' , 'subheading ' , 'text ' , 'link ' ],
28
34
'Icon ' => ['icon ' ],
35
+ 'Input ' => ['input ' ],
36
+ 'Layout ' => ['header ' , 'sidebar ' , 'aside ' , 'main ' , 'footer ' , 'container ' , 'brand ' , 'profile ' , 'spacer ' ],
37
+ 'Modal ' => ['modal ' ],
38
+ 'Navbar ' => ['navbar ' , 'navlist ' ],
39
+ 'Radio ' => ['radio ' ],
29
40
'Separator ' => ['separator ' ],
41
+ 'Select ' => ['select ' ],
42
+ 'Switch ' => ['switch ' ],
43
+ 'Textarea ' => ['textarea ' ],
30
44
'Tooltip ' => ['tooltip ' ],
45
+ 'Typography ' => ['heading ' , 'subheading ' , 'text ' , 'link ' ],
31
46
],
32
47
'pro ' => [
33
48
'Accordion ' => ['accordion ' ],
34
49
'Autocomplete ' => ['autocomplete ' ],
35
- 'Badge ' => ['badge ' ],
36
- 'Breadcrumbs ' => ['breadcrumbs ' ],
50
+ 'Calendar ' => ['calendar ' ],
37
51
'Card ' => ['card ' ],
38
52
'Chart ' => ['chart ' ],
39
53
'Checkbox ' => ['checkbox ' ],
40
54
'Command ' => ['command ' ],
41
55
'Context ' => ['context ' ],
42
- 'Calendar ' => ['calendar ' ],
43
56
'Date picker ' => ['date-picker ' ],
44
- 'Field ' => ['fieldset ' , 'legend ' , 'field ' , 'label ' , 'description ' , 'error ' ],
45
57
'Editor ' => ['editor ' ],
46
- 'Heading ' => ['heading ' , 'subheading ' , 'text ' , 'link ' ],
47
- 'Input ' => ['input ' ],
48
- 'Layout ' => ['header ' , 'sidebar ' , 'aside ' , 'main ' , 'footer ' , 'container ' , 'brand ' , 'profile ' , 'spacer ' ],
49
- 'Modal ' => ['modal ' ],
50
- 'Navbar ' => ['navbar ' , 'navlist ' ],
51
58
'Radio ' => ['radio ' ],
52
- 'Select ' => ['select ' , 'option ' , 'options ' ],
53
- 'Switch ' => ['switch ' ],
54
- 'Table ' => ['table ' , 'columns ' , 'column ' , 'rows ' , 'row ' , 'cell ' , 'pagination ' ],
59
+ 'Select ' => ['select ' ],
55
60
'Tabs ' => ['tabs ' ,'tab ' ],
56
- 'Textarea ' => ['textarea ' ],
61
+ 'Table ' => ['table ' , ' pagination ' , ' avatar ' ],
57
62
'Toast ' => ['toast ' ],
58
- 'Typography ' => ['heading ' , 'subheading ' , 'text ' , 'link ' ],
59
63
],
60
64
];
61
65
@@ -159,12 +163,6 @@ protected function publishDirectory($component, $source, $destination): ?string
159
163
{
160
164
$ filesystem = (new Filesystem );
161
165
162
- if ($ filesystem ->exists ($ destination ) && !$ this ->option ('force ' )) {
163
- warning ("Skipping [ {$ component }]. Directory already exists: {$ destination }" );
164
-
165
- return null ;
166
- }
167
-
168
166
$ filesystem ->copyDirectory ($ source , $ destination );
169
167
170
168
return $ destination ;
0 commit comments