apex-design-cli 1.0.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 (66) hide show
  1. package/dist/index.d.ts +1 -0
  2. package/dist/index.js +747 -0
  3. package/package.json +57 -0
  4. package/registry/components/accordion.json +26 -0
  5. package/registry/components/alert.json +25 -0
  6. package/registry/components/avatar.json +26 -0
  7. package/registry/components/badge.json +24 -0
  8. package/registry/components/breadcrumb.json +28 -0
  9. package/registry/components/button.json +25 -0
  10. package/registry/components/card.json +28 -0
  11. package/registry/components/checkbox.json +23 -0
  12. package/registry/components/command.json +31 -0
  13. package/registry/components/dialog.json +32 -0
  14. package/registry/components/divider.json +22 -0
  15. package/registry/components/dropdown-menu.json +36 -0
  16. package/registry/components/empty-state.json +21 -0
  17. package/registry/components/error-message.json +20 -0
  18. package/registry/components/field-group.json +20 -0
  19. package/registry/components/helper-text.json +20 -0
  20. package/registry/components/input.json +21 -0
  21. package/registry/components/label.json +20 -0
  22. package/registry/components/progress.json +22 -0
  23. package/registry/components/radio.json +23 -0
  24. package/registry/components/select.json +32 -0
  25. package/registry/components/spinner.json +20 -0
  26. package/registry/components/switch.json +22 -0
  27. package/registry/components/table.json +27 -0
  28. package/registry/components/tabs.json +25 -0
  29. package/registry/components/textarea.json +21 -0
  30. package/registry/components/theme-toggler.json +24 -0
  31. package/registry/components/toast.json +31 -0
  32. package/registry/components/tooltip.json +26 -0
  33. package/registry/components/use-theme.json +19 -0
  34. package/registry/components/utils.json +21 -0
  35. package/registry/registry.json +35 -0
  36. package/registry/source/accordion.tsx +55 -0
  37. package/registry/source/alert.tsx +102 -0
  38. package/registry/source/avatar.tsx +137 -0
  39. package/registry/source/badge.tsx +38 -0
  40. package/registry/source/breadcrumb.tsx +109 -0
  41. package/registry/source/button.tsx +58 -0
  42. package/registry/source/card.tsx +108 -0
  43. package/registry/source/checkbox.tsx +170 -0
  44. package/registry/source/command.tsx +195 -0
  45. package/registry/source/dialog.tsx +133 -0
  46. package/registry/source/divider.tsx +84 -0
  47. package/registry/source/dropdown-menu.tsx +209 -0
  48. package/registry/source/empty-state.tsx +88 -0
  49. package/registry/source/error-message.tsx +49 -0
  50. package/registry/source/field-group.tsx +53 -0
  51. package/registry/source/helper-text.tsx +40 -0
  52. package/registry/source/input.tsx +219 -0
  53. package/registry/source/label.tsx +60 -0
  54. package/registry/source/progress.tsx +84 -0
  55. package/registry/source/radio.tsx +161 -0
  56. package/registry/source/select.tsx +278 -0
  57. package/registry/source/spinner.tsx +84 -0
  58. package/registry/source/switch.tsx +104 -0
  59. package/registry/source/table.tsx +116 -0
  60. package/registry/source/tabs.tsx +55 -0
  61. package/registry/source/textarea.tsx +129 -0
  62. package/registry/source/theme-toggler.tsx +94 -0
  63. package/registry/source/toast.tsx +166 -0
  64. package/registry/source/tooltip.tsx +55 -0
  65. package/registry/source/use-theme.tsx +102 -0
  66. package/registry/source/utils.ts +13 -0
package/package.json ADDED
@@ -0,0 +1,57 @@
1
+ {
2
+ "name": "apex-design-cli",
3
+ "version": "1.0.0",
4
+ "description": "CLI tool for APEX Design System - Install professional React components with a single command",
5
+ "type": "module",
6
+ "bin": {
7
+ "apex-design-cli": "./dist/index.js"
8
+ },
9
+ "files": [
10
+ "dist",
11
+ "registry"
12
+ ],
13
+ "scripts": {
14
+ "build": "tsup src/index.ts --format esm --dts --clean",
15
+ "dev": "tsup src/index.ts --format esm --watch",
16
+ "start": "node dist/index.js",
17
+ "typecheck": "tsc --noEmit",
18
+ "prepublishOnly": "npm run build"
19
+ },
20
+ "keywords": [
21
+ "design-system",
22
+ "cli",
23
+ "react",
24
+ "components",
25
+ "tailwindcss",
26
+ "apex",
27
+ "ui",
28
+ "shadcn"
29
+ ],
30
+ "author": "Alejandra Mamblona Gomez",
31
+ "license": "MIT",
32
+ "repository": {
33
+ "type": "git",
34
+ "url": "https://github.com/Alehopi/apex-design-cli.git"
35
+ },
36
+ "homepage": "https://github.com/Alehopi/apex-design-cli",
37
+ "publishConfig": {
38
+ "access": "public"
39
+ },
40
+ "dependencies": {
41
+ "chalk": "^5.3.0",
42
+ "commander": "^12.1.0",
43
+ "cosmiconfig": "^9.0.0",
44
+ "execa": "^9.5.2",
45
+ "fs-extra": "^11.2.0",
46
+ "ora": "^8.1.1",
47
+ "prompts": "^2.4.2",
48
+ "zod": "^3.23.8"
49
+ },
50
+ "devDependencies": {
51
+ "@types/fs-extra": "^11.0.4",
52
+ "@types/node": "^22.13.1",
53
+ "@types/prompts": "^2.4.9",
54
+ "tsup": "^8.3.6",
55
+ "typescript": "^5.7.3"
56
+ }
57
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "accordion",
3
+ "type": "registry:ui",
4
+ "title": "Accordion",
5
+ "description": "A vertically stacked set of interactive headings that reveal or hide associated content.",
6
+ "category": "navigation",
7
+ "files": [
8
+ {
9
+ "path": "registry/source/accordion.tsx",
10
+ "target": "components/ui/accordion.tsx"
11
+ }
12
+ ],
13
+ "dependencies": [
14
+ "@radix-ui/react-accordion@^1.0.0",
15
+ "lucide-react@^0.563.0"
16
+ ],
17
+ "registryDependencies": [
18
+ "utils"
19
+ ],
20
+ "exports": [
21
+ "Accordion",
22
+ "AccordionItem",
23
+ "AccordionTrigger",
24
+ "AccordionContent"
25
+ ]
26
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "alert",
3
+ "type": "registry:ui",
4
+ "title": "Alert",
5
+ "description": "Displays a callout for important messages with contextual variants.",
6
+ "category": "feedback",
7
+ "files": [
8
+ {
9
+ "path": "registry/source/alert.tsx",
10
+ "target": "components/ui/alert.tsx"
11
+ }
12
+ ],
13
+ "dependencies": [
14
+ "class-variance-authority@^0.7.1",
15
+ "lucide-react@^0.563.0"
16
+ ],
17
+ "registryDependencies": [
18
+ "utils"
19
+ ],
20
+ "exports": [
21
+ "Alert",
22
+ "AlertTitle",
23
+ "AlertDescription"
24
+ ]
25
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "avatar",
3
+ "type": "registry:ui",
4
+ "title": "Avatar",
5
+ "description": "An image element with a fallback for representing a user.",
6
+ "category": "display",
7
+ "files": [
8
+ {
9
+ "path": "registry/source/avatar.tsx",
10
+ "target": "components/ui/avatar.tsx"
11
+ }
12
+ ],
13
+ "dependencies": [
14
+ "@radix-ui/react-avatar@^1.0.0",
15
+ "class-variance-authority@^0.7.1"
16
+ ],
17
+ "registryDependencies": [
18
+ "utils"
19
+ ],
20
+ "exports": [
21
+ "Avatar",
22
+ "AvatarImage",
23
+ "AvatarFallback",
24
+ "AvatarWithLabel"
25
+ ]
26
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "name": "badge",
3
+ "type": "registry:ui",
4
+ "title": "Badge",
5
+ "description": "Displays a small label or status indicator with contextual variants.",
6
+ "category": "display",
7
+ "files": [
8
+ {
9
+ "path": "registry/source/badge.tsx",
10
+ "target": "components/ui/badge.tsx"
11
+ }
12
+ ],
13
+ "dependencies": [
14
+ "class-variance-authority@^0.7.1"
15
+ ],
16
+ "registryDependencies": [
17
+ "utils"
18
+ ],
19
+ "exports": [
20
+ "Badge",
21
+ "badgeVariants",
22
+ "BadgeProps"
23
+ ]
24
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "breadcrumb",
3
+ "type": "registry:ui",
4
+ "title": "Breadcrumb",
5
+ "description": "A navigation aid that shows the user's current location within a hierarchy.",
6
+ "category": "navigation",
7
+ "files": [
8
+ {
9
+ "path": "registry/source/breadcrumb.tsx",
10
+ "target": "components/ui/breadcrumb.tsx"
11
+ }
12
+ ],
13
+ "dependencies": [
14
+ "lucide-react@^0.563.0"
15
+ ],
16
+ "registryDependencies": [
17
+ "utils"
18
+ ],
19
+ "exports": [
20
+ "Breadcrumb",
21
+ "BreadcrumbList",
22
+ "BreadcrumbItem",
23
+ "BreadcrumbLink",
24
+ "BreadcrumbPage",
25
+ "BreadcrumbSeparator",
26
+ "BreadcrumbEllipsis"
27
+ ]
28
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "button",
3
+ "type": "registry:ui",
4
+ "title": "Button",
5
+ "description": "An interactive element that triggers actions with multiple variants and sizes.",
6
+ "category": "inputs",
7
+ "files": [
8
+ {
9
+ "path": "registry/source/button.tsx",
10
+ "target": "components/ui/button.tsx"
11
+ }
12
+ ],
13
+ "dependencies": [
14
+ "class-variance-authority@^0.7.1",
15
+ "lucide-react@^0.563.0"
16
+ ],
17
+ "registryDependencies": [
18
+ "utils"
19
+ ],
20
+ "exports": [
21
+ "Button",
22
+ "buttonVariants",
23
+ "ButtonProps"
24
+ ]
25
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "card",
3
+ "type": "registry:ui",
4
+ "title": "Card",
5
+ "description": "A container for grouping related content and actions.",
6
+ "category": "display",
7
+ "files": [
8
+ {
9
+ "path": "registry/source/card.tsx",
10
+ "target": "components/ui/card.tsx"
11
+ }
12
+ ],
13
+ "dependencies": [
14
+ "class-variance-authority@^0.7.1"
15
+ ],
16
+ "registryDependencies": [
17
+ "utils"
18
+ ],
19
+ "exports": [
20
+ "Card",
21
+ "CardHeader",
22
+ "CardTitle",
23
+ "CardDescription",
24
+ "CardContent",
25
+ "CardFooter",
26
+ "cardVariants"
27
+ ]
28
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "checkbox",
3
+ "type": "registry:ui",
4
+ "title": "Checkbox",
5
+ "description": "A control that allows the user to toggle between checked and unchecked states.",
6
+ "category": "inputs",
7
+ "files": [
8
+ {
9
+ "path": "registry/source/checkbox.tsx",
10
+ "target": "components/ui/checkbox.tsx"
11
+ }
12
+ ],
13
+ "dependencies": [
14
+ "@radix-ui/react-checkbox@^1.0.0",
15
+ "lucide-react@^0.563.0"
16
+ ],
17
+ "registryDependencies": [
18
+ "utils"
19
+ ],
20
+ "exports": [
21
+ "Checkbox"
22
+ ]
23
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "command",
3
+ "type": "registry:ui",
4
+ "title": "Command",
5
+ "description": "A command palette for searching and executing actions.",
6
+ "category": "overlay",
7
+ "files": [
8
+ {
9
+ "path": "registry/source/command.tsx",
10
+ "target": "components/ui/command.tsx"
11
+ }
12
+ ],
13
+ "dependencies": [
14
+ "cmdk@^1.1.1",
15
+ "lucide-react@^0.563.0"
16
+ ],
17
+ "registryDependencies": [
18
+ "utils"
19
+ ],
20
+ "exports": [
21
+ "Command",
22
+ "CommandDialog",
23
+ "CommandInput",
24
+ "CommandList",
25
+ "CommandEmpty",
26
+ "CommandGroup",
27
+ "CommandItem",
28
+ "CommandShortcut",
29
+ "CommandSeparator"
30
+ ]
31
+ }
@@ -0,0 +1,32 @@
1
+ {
2
+ "name": "dialog",
3
+ "type": "registry:ui",
4
+ "title": "Dialog",
5
+ "description": "A modal window that overlays the main content for focused interactions.",
6
+ "category": "overlay",
7
+ "files": [
8
+ {
9
+ "path": "registry/source/dialog.tsx",
10
+ "target": "components/ui/dialog.tsx"
11
+ }
12
+ ],
13
+ "dependencies": [
14
+ "@radix-ui/react-dialog@^1.0.0",
15
+ "lucide-react@^0.563.0"
16
+ ],
17
+ "registryDependencies": [
18
+ "utils"
19
+ ],
20
+ "exports": [
21
+ "Dialog",
22
+ "DialogPortal",
23
+ "DialogOverlay",
24
+ "DialogClose",
25
+ "DialogTrigger",
26
+ "DialogContent",
27
+ "DialogHeader",
28
+ "DialogFooter",
29
+ "DialogTitle",
30
+ "DialogDescription"
31
+ ]
32
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "divider",
3
+ "type": "registry:ui",
4
+ "title": "Divider",
5
+ "description": "A visual separator between content sections.",
6
+ "category": "display",
7
+ "files": [
8
+ {
9
+ "path": "registry/source/divider.tsx",
10
+ "target": "components/ui/divider.tsx"
11
+ }
12
+ ],
13
+ "dependencies": [
14
+ "@radix-ui/react-separator@^1.0.0"
15
+ ],
16
+ "registryDependencies": [
17
+ "utils"
18
+ ],
19
+ "exports": [
20
+ "Divider"
21
+ ]
22
+ }
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "dropdown-menu",
3
+ "type": "registry:ui",
4
+ "title": "DropdownMenu",
5
+ "description": "A menu that appears on trigger, displaying a list of actions or options.",
6
+ "category": "overlay",
7
+ "files": [
8
+ {
9
+ "path": "registry/source/dropdown-menu.tsx",
10
+ "target": "components/ui/dropdown-menu.tsx"
11
+ }
12
+ ],
13
+ "dependencies": [
14
+ "@radix-ui/react-dropdown-menu@^1.0.0",
15
+ "lucide-react@^0.563.0"
16
+ ],
17
+ "registryDependencies": [
18
+ "utils"
19
+ ],
20
+ "exports": [
21
+ "DropdownMenu",
22
+ "DropdownMenuTrigger",
23
+ "DropdownMenuContent",
24
+ "DropdownMenuItem",
25
+ "DropdownMenuCheckboxItem",
26
+ "DropdownMenuRadioItem",
27
+ "DropdownMenuLabel",
28
+ "DropdownMenuSeparator",
29
+ "DropdownMenuShortcut",
30
+ "DropdownMenuGroup",
31
+ "DropdownMenuSub",
32
+ "DropdownMenuSubContent",
33
+ "DropdownMenuSubTrigger",
34
+ "DropdownMenuRadioGroup"
35
+ ]
36
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "empty-state",
3
+ "type": "registry:ui",
4
+ "title": "EmptyState",
5
+ "description": "A placeholder component displayed when there is no data or content to show.",
6
+ "category": "feedback",
7
+ "files": [
8
+ {
9
+ "path": "registry/source/empty-state.tsx",
10
+ "target": "components/ui/empty-state.tsx"
11
+ }
12
+ ],
13
+ "dependencies": [],
14
+ "registryDependencies": [
15
+ "utils"
16
+ ],
17
+ "exports": [
18
+ "EmptyState",
19
+ "EmptyStateProps"
20
+ ]
21
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "error-message",
3
+ "type": "registry:ui",
4
+ "title": "ErrorMessage",
5
+ "description": "Displays form validation error messages with accessible aria-live announcements.",
6
+ "category": "utility",
7
+ "files": [
8
+ {
9
+ "path": "registry/source/error-message.tsx",
10
+ "target": "components/ui/error-message.tsx"
11
+ }
12
+ ],
13
+ "dependencies": [],
14
+ "registryDependencies": [
15
+ "utils"
16
+ ],
17
+ "exports": [
18
+ "ErrorMessage"
19
+ ]
20
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "field-group",
3
+ "type": "registry:ui",
4
+ "title": "FieldGroup",
5
+ "description": "A grouping container for related form fields with accessible labeling.",
6
+ "category": "utility",
7
+ "files": [
8
+ {
9
+ "path": "registry/source/field-group.tsx",
10
+ "target": "components/ui/field-group.tsx"
11
+ }
12
+ ],
13
+ "dependencies": [],
14
+ "registryDependencies": [
15
+ "utils"
16
+ ],
17
+ "exports": [
18
+ "FieldGroup"
19
+ ]
20
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "helper-text",
3
+ "type": "registry:ui",
4
+ "title": "HelperText",
5
+ "description": "Provides additional guidance or context below form fields.",
6
+ "category": "utility",
7
+ "files": [
8
+ {
9
+ "path": "registry/source/helper-text.tsx",
10
+ "target": "components/ui/helper-text.tsx"
11
+ }
12
+ ],
13
+ "dependencies": [],
14
+ "registryDependencies": [
15
+ "utils"
16
+ ],
17
+ "exports": [
18
+ "HelperText"
19
+ ]
20
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "input",
3
+ "type": "registry:ui",
4
+ "title": "Input",
5
+ "description": "A text input field for capturing user data.",
6
+ "category": "inputs",
7
+ "files": [
8
+ {
9
+ "path": "registry/source/input.tsx",
10
+ "target": "components/ui/input.tsx"
11
+ }
12
+ ],
13
+ "dependencies": [],
14
+ "registryDependencies": [
15
+ "utils"
16
+ ],
17
+ "exports": [
18
+ "Input",
19
+ "InputProps"
20
+ ]
21
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "label",
3
+ "type": "registry:ui",
4
+ "title": "Label",
5
+ "description": "A text label associated with a form control for accessibility.",
6
+ "category": "utility",
7
+ "files": [
8
+ {
9
+ "path": "registry/source/label.tsx",
10
+ "target": "components/ui/label.tsx"
11
+ }
12
+ ],
13
+ "dependencies": [],
14
+ "registryDependencies": [
15
+ "utils"
16
+ ],
17
+ "exports": [
18
+ "Label"
19
+ ]
20
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "progress",
3
+ "type": "registry:ui",
4
+ "title": "Progress",
5
+ "description": "A visual indicator showing the completion status of a task.",
6
+ "category": "feedback",
7
+ "files": [
8
+ {
9
+ "path": "registry/source/progress.tsx",
10
+ "target": "components/ui/progress.tsx"
11
+ }
12
+ ],
13
+ "dependencies": [
14
+ "@radix-ui/react-progress@^1.0.0"
15
+ ],
16
+ "registryDependencies": [
17
+ "utils"
18
+ ],
19
+ "exports": [
20
+ "Progress"
21
+ ]
22
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "radio",
3
+ "type": "registry:ui",
4
+ "title": "Radio",
5
+ "description": "A set of mutually exclusive options where only one can be selected.",
6
+ "category": "inputs",
7
+ "files": [
8
+ {
9
+ "path": "registry/source/radio.tsx",
10
+ "target": "components/ui/radio.tsx"
11
+ }
12
+ ],
13
+ "dependencies": [
14
+ "@radix-ui/react-radio-group@^1.0.0"
15
+ ],
16
+ "registryDependencies": [
17
+ "utils"
18
+ ],
19
+ "exports": [
20
+ "RadioGroup",
21
+ "RadioGroupItem"
22
+ ]
23
+ }
@@ -0,0 +1,32 @@
1
+ {
2
+ "name": "select",
3
+ "type": "registry:ui",
4
+ "title": "Select",
5
+ "description": "A dropdown control for choosing one option from a list.",
6
+ "category": "inputs",
7
+ "files": [
8
+ {
9
+ "path": "registry/source/select.tsx",
10
+ "target": "components/ui/select.tsx"
11
+ }
12
+ ],
13
+ "dependencies": [
14
+ "@radix-ui/react-select@^1.0.0",
15
+ "lucide-react@^0.563.0"
16
+ ],
17
+ "registryDependencies": [
18
+ "utils"
19
+ ],
20
+ "exports": [
21
+ "Select",
22
+ "SelectGroup",
23
+ "SelectValue",
24
+ "SelectTrigger",
25
+ "SelectContent",
26
+ "SelectLabel",
27
+ "SelectItem",
28
+ "SelectSeparator",
29
+ "SelectScrollUpButton",
30
+ "SelectScrollDownButton"
31
+ ]
32
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "spinner",
3
+ "type": "registry:ui",
4
+ "title": "Spinner",
5
+ "description": "An animated loading indicator for asynchronous operations.",
6
+ "category": "feedback",
7
+ "files": [
8
+ {
9
+ "path": "registry/source/spinner.tsx",
10
+ "target": "components/ui/spinner.tsx"
11
+ }
12
+ ],
13
+ "dependencies": [],
14
+ "registryDependencies": [
15
+ "utils"
16
+ ],
17
+ "exports": [
18
+ "Spinner"
19
+ ]
20
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "switch",
3
+ "type": "registry:ui",
4
+ "title": "Switch",
5
+ "description": "A toggle control for switching between on and off states.",
6
+ "category": "inputs",
7
+ "files": [
8
+ {
9
+ "path": "registry/source/switch.tsx",
10
+ "target": "components/ui/switch.tsx"
11
+ }
12
+ ],
13
+ "dependencies": [
14
+ "@radix-ui/react-switch@^1.0.0"
15
+ ],
16
+ "registryDependencies": [
17
+ "utils"
18
+ ],
19
+ "exports": [
20
+ "Switch"
21
+ ]
22
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "table",
3
+ "type": "registry:ui",
4
+ "title": "Table",
5
+ "description": "A structured data display with rows, columns, headers, and captions.",
6
+ "category": "data-display",
7
+ "files": [
8
+ {
9
+ "path": "registry/source/table.tsx",
10
+ "target": "components/ui/table.tsx"
11
+ }
12
+ ],
13
+ "dependencies": [],
14
+ "registryDependencies": [
15
+ "utils"
16
+ ],
17
+ "exports": [
18
+ "Table",
19
+ "TableHeader",
20
+ "TableBody",
21
+ "TableFooter",
22
+ "TableHead",
23
+ "TableRow",
24
+ "TableCell",
25
+ "TableCaption"
26
+ ]
27
+ }