@pylonsync/create-pylon 0.3.342 → 0.3.344

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 (128) hide show
  1. package/package.json +1 -1
  2. package/templates/agency/components/ui/badge.tsx +37 -0
  3. package/templates/agency/components/ui/dialog.tsx +110 -0
  4. package/templates/agency/components/ui/input.tsx +30 -0
  5. package/templates/agency/components/ui/label.tsx +21 -0
  6. package/templates/agency/components/ui/select.tsx +39 -0
  7. package/templates/agency/components/ui/table.tsx +124 -0
  8. package/templates/agency/components/ui/textarea.tsx +24 -0
  9. package/templates/agency/package.json +1 -0
  10. package/templates/ai-chat/components/ui/badge.tsx +37 -0
  11. package/templates/ai-chat/components/ui/button.tsx +56 -0
  12. package/templates/ai-chat/components/ui/card.tsx +90 -0
  13. package/templates/ai-chat/components/ui/dialog.tsx +110 -0
  14. package/templates/ai-chat/components/ui/input.tsx +30 -0
  15. package/templates/ai-chat/components/ui/label.tsx +21 -0
  16. package/templates/ai-chat/components/ui/select.tsx +39 -0
  17. package/templates/ai-chat/components/ui/table.tsx +124 -0
  18. package/templates/ai-chat/components/ui/textarea.tsx +24 -0
  19. package/templates/ai-chat/package.json +1 -0
  20. package/templates/ai-studio/components/ui/badge.tsx +37 -0
  21. package/templates/ai-studio/components/ui/button.tsx +56 -0
  22. package/templates/ai-studio/components/ui/card.tsx +90 -0
  23. package/templates/ai-studio/components/ui/dialog.tsx +110 -0
  24. package/templates/ai-studio/components/ui/input.tsx +30 -0
  25. package/templates/ai-studio/components/ui/label.tsx +21 -0
  26. package/templates/ai-studio/components/ui/select.tsx +39 -0
  27. package/templates/ai-studio/components/ui/table.tsx +124 -0
  28. package/templates/ai-studio/components/ui/textarea.tsx +24 -0
  29. package/templates/ai-studio/package.json +1 -0
  30. package/templates/barebones/components/ui/badge.tsx +37 -0
  31. package/templates/barebones/components/ui/dialog.tsx +110 -0
  32. package/templates/barebones/components/ui/input.tsx +30 -0
  33. package/templates/barebones/components/ui/label.tsx +21 -0
  34. package/templates/barebones/components/ui/select.tsx +39 -0
  35. package/templates/barebones/components/ui/table.tsx +124 -0
  36. package/templates/barebones/components/ui/textarea.tsx +24 -0
  37. package/templates/barebones/package.json +1 -0
  38. package/templates/chat/components/ui/badge.tsx +37 -0
  39. package/templates/chat/components/ui/dialog.tsx +110 -0
  40. package/templates/chat/components/ui/input.tsx +30 -0
  41. package/templates/chat/components/ui/label.tsx +21 -0
  42. package/templates/chat/components/ui/select.tsx +39 -0
  43. package/templates/chat/components/ui/table.tsx +124 -0
  44. package/templates/chat/components/ui/textarea.tsx +24 -0
  45. package/templates/chat/package.json +1 -0
  46. package/templates/consumer/components/ui/badge.tsx +37 -0
  47. package/templates/consumer/components/ui/dialog.tsx +110 -0
  48. package/templates/consumer/components/ui/input.tsx +30 -0
  49. package/templates/consumer/components/ui/label.tsx +21 -0
  50. package/templates/consumer/components/ui/select.tsx +39 -0
  51. package/templates/consumer/components/ui/table.tsx +124 -0
  52. package/templates/consumer/components/ui/textarea.tsx +24 -0
  53. package/templates/consumer/package.json +1 -0
  54. package/templates/creator/components/ui/badge.tsx +37 -0
  55. package/templates/creator/components/ui/dialog.tsx +110 -0
  56. package/templates/creator/components/ui/input.tsx +30 -0
  57. package/templates/creator/components/ui/label.tsx +21 -0
  58. package/templates/creator/components/ui/select.tsx +39 -0
  59. package/templates/creator/components/ui/table.tsx +124 -0
  60. package/templates/creator/components/ui/textarea.tsx +24 -0
  61. package/templates/creator/package.json +1 -0
  62. package/templates/default/components/ui/badge.tsx +37 -0
  63. package/templates/default/components/ui/dialog.tsx +110 -0
  64. package/templates/default/components/ui/input.tsx +30 -0
  65. package/templates/default/components/ui/label.tsx +21 -0
  66. package/templates/default/components/ui/select.tsx +39 -0
  67. package/templates/default/components/ui/table.tsx +124 -0
  68. package/templates/default/components/ui/textarea.tsx +24 -0
  69. package/templates/default/package.json +1 -0
  70. package/templates/directory/components/ui/badge.tsx +37 -0
  71. package/templates/directory/components/ui/dialog.tsx +110 -0
  72. package/templates/directory/components/ui/input.tsx +30 -0
  73. package/templates/directory/components/ui/label.tsx +21 -0
  74. package/templates/directory/components/ui/select.tsx +39 -0
  75. package/templates/directory/components/ui/table.tsx +124 -0
  76. package/templates/directory/components/ui/textarea.tsx +24 -0
  77. package/templates/directory/package.json +1 -0
  78. package/templates/local-service/components/ui/badge.tsx +37 -0
  79. package/templates/local-service/components/ui/dialog.tsx +110 -0
  80. package/templates/local-service/components/ui/input.tsx +30 -0
  81. package/templates/local-service/components/ui/label.tsx +21 -0
  82. package/templates/local-service/components/ui/select.tsx +39 -0
  83. package/templates/local-service/components/ui/table.tsx +124 -0
  84. package/templates/local-service/components/ui/textarea.tsx +24 -0
  85. package/templates/local-service/package.json +1 -0
  86. package/templates/marketplace/components/ui/badge.tsx +37 -0
  87. package/templates/marketplace/components/ui/button.tsx +56 -0
  88. package/templates/marketplace/components/ui/card.tsx +90 -0
  89. package/templates/marketplace/components/ui/dialog.tsx +110 -0
  90. package/templates/marketplace/components/ui/input.tsx +30 -0
  91. package/templates/marketplace/components/ui/label.tsx +21 -0
  92. package/templates/marketplace/components/ui/select.tsx +39 -0
  93. package/templates/marketplace/components/ui/table.tsx +124 -0
  94. package/templates/marketplace/components/ui/textarea.tsx +24 -0
  95. package/templates/marketplace/lib/utils.ts +10 -0
  96. package/templates/marketplace/package.json +1 -0
  97. package/templates/restaurant/components/ui/badge.tsx +37 -0
  98. package/templates/restaurant/components/ui/dialog.tsx +110 -0
  99. package/templates/restaurant/components/ui/input.tsx +30 -0
  100. package/templates/restaurant/components/ui/label.tsx +21 -0
  101. package/templates/restaurant/components/ui/select.tsx +39 -0
  102. package/templates/restaurant/components/ui/table.tsx +124 -0
  103. package/templates/restaurant/components/ui/textarea.tsx +24 -0
  104. package/templates/restaurant/package.json +1 -0
  105. package/templates/shop/components/ui/badge.tsx +37 -0
  106. package/templates/shop/components/ui/dialog.tsx +110 -0
  107. package/templates/shop/components/ui/input.tsx +30 -0
  108. package/templates/shop/components/ui/label.tsx +21 -0
  109. package/templates/shop/components/ui/select.tsx +39 -0
  110. package/templates/shop/components/ui/table.tsx +124 -0
  111. package/templates/shop/components/ui/textarea.tsx +24 -0
  112. package/templates/shop/package.json +1 -0
  113. package/templates/todo/components/ui/badge.tsx +37 -0
  114. package/templates/todo/components/ui/dialog.tsx +110 -0
  115. package/templates/todo/components/ui/input.tsx +30 -0
  116. package/templates/todo/components/ui/label.tsx +21 -0
  117. package/templates/todo/components/ui/select.tsx +39 -0
  118. package/templates/todo/components/ui/table.tsx +124 -0
  119. package/templates/todo/components/ui/textarea.tsx +24 -0
  120. package/templates/todo/package.json +1 -0
  121. package/templates/waitlist/components/ui/badge.tsx +37 -0
  122. package/templates/waitlist/components/ui/dialog.tsx +110 -0
  123. package/templates/waitlist/components/ui/input.tsx +30 -0
  124. package/templates/waitlist/components/ui/label.tsx +21 -0
  125. package/templates/waitlist/components/ui/select.tsx +39 -0
  126. package/templates/waitlist/components/ui/table.tsx +124 -0
  127. package/templates/waitlist/components/ui/textarea.tsx +24 -0
  128. package/templates/waitlist/package.json +1 -0
@@ -0,0 +1,124 @@
1
+ import * as React from "react";
2
+
3
+ import { cn } from "@/lib/utils";
4
+
5
+ // The wrapper owns the horizontal scroll so a wide table never widens the page.
6
+ function Table({ className, ...props }: React.HTMLAttributes<HTMLTableElement>) {
7
+ return (
8
+ <div className="relative w-full overflow-x-auto">
9
+ <table
10
+ data-slot="table"
11
+ className={cn("w-full caption-bottom text-sm", className)}
12
+ {...props}
13
+ />
14
+ </div>
15
+ );
16
+ }
17
+
18
+ function TableHeader({
19
+ className,
20
+ ...props
21
+ }: React.HTMLAttributes<HTMLTableSectionElement>) {
22
+ return (
23
+ <thead
24
+ data-slot="table-header"
25
+ className={cn("[&_tr]:border-b", className)}
26
+ {...props}
27
+ />
28
+ );
29
+ }
30
+
31
+ function TableBody({
32
+ className,
33
+ ...props
34
+ }: React.HTMLAttributes<HTMLTableSectionElement>) {
35
+ return (
36
+ <tbody
37
+ data-slot="table-body"
38
+ className={cn("[&_tr:last-child]:border-0", className)}
39
+ {...props}
40
+ />
41
+ );
42
+ }
43
+
44
+ function TableFooter({
45
+ className,
46
+ ...props
47
+ }: React.HTMLAttributes<HTMLTableSectionElement>) {
48
+ return (
49
+ <tfoot
50
+ data-slot="table-footer"
51
+ className={cn("border-t bg-muted/50 font-medium", className)}
52
+ {...props}
53
+ />
54
+ );
55
+ }
56
+
57
+ function TableRow({
58
+ className,
59
+ ...props
60
+ }: React.HTMLAttributes<HTMLTableRowElement>) {
61
+ return (
62
+ <tr
63
+ data-slot="table-row"
64
+ className={cn(
65
+ "border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",
66
+ className,
67
+ )}
68
+ {...props}
69
+ />
70
+ );
71
+ }
72
+
73
+ function TableHead({
74
+ className,
75
+ ...props
76
+ }: React.ThHTMLAttributes<HTMLTableCellElement>) {
77
+ return (
78
+ <th
79
+ data-slot="table-head"
80
+ className={cn(
81
+ "h-10 px-3 text-left align-middle text-xs font-medium text-muted-foreground",
82
+ className,
83
+ )}
84
+ {...props}
85
+ />
86
+ );
87
+ }
88
+
89
+ function TableCell({
90
+ className,
91
+ ...props
92
+ }: React.TdHTMLAttributes<HTMLTableCellElement>) {
93
+ return (
94
+ <td
95
+ data-slot="table-cell"
96
+ className={cn("p-3 align-middle", className)}
97
+ {...props}
98
+ />
99
+ );
100
+ }
101
+
102
+ function TableCaption({
103
+ className,
104
+ ...props
105
+ }: React.HTMLAttributes<HTMLTableCaptionElement>) {
106
+ return (
107
+ <caption
108
+ data-slot="table-caption"
109
+ className={cn("mt-4 text-sm text-muted-foreground", className)}
110
+ {...props}
111
+ />
112
+ );
113
+ }
114
+
115
+ export {
116
+ Table,
117
+ TableHeader,
118
+ TableBody,
119
+ TableFooter,
120
+ TableHead,
121
+ TableRow,
122
+ TableCell,
123
+ TableCaption,
124
+ };
@@ -0,0 +1,24 @@
1
+ import * as React from "react";
2
+
3
+ import { cn } from "@/lib/utils";
4
+
5
+ function Textarea({
6
+ className,
7
+ ...props
8
+ }: React.TextareaHTMLAttributes<HTMLTextAreaElement>) {
9
+ return (
10
+ <textarea
11
+ data-slot="textarea"
12
+ className={cn(
13
+ "flex min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm transition-colors",
14
+ "placeholder:text-muted-foreground",
15
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
16
+ "disabled:cursor-not-allowed disabled:opacity-50",
17
+ className,
18
+ )}
19
+ {...props}
20
+ />
21
+ );
22
+ }
23
+
24
+ export { Textarea };
@@ -23,6 +23,7 @@
23
23
  "clsx": "^2.1.1",
24
24
  "tailwind-merge": "^2.5.0",
25
25
  "lucide-react": "^0.460.0",
26
+ "@radix-ui/react-dialog": "^1.1.4",
26
27
  "@radix-ui/react-slot": "^1.1.0"
27
28
  },
28
29
  "devDependencies": {