@dinachi/cli 1.0.0 → 1.3.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.
- package/CHANGELOG.md +69 -0
- package/dist/index.js +244 -72
- package/package.json +5 -1
- package/templates/accordion/accordion.tsx +5 -1
- package/templates/agent/agent.tsx +35 -18
- package/templates/alert/alert.tsx +345 -0
- package/templates/alert/index.ts +16 -0
- package/templates/alert-dialog/alert-dialog.tsx +14 -3
- package/templates/animated-icon/animated-icon.tsx +1 -0
- package/templates/animated-list/animated-list.tsx +2 -1
- package/templates/animated-tabs/animated-tabs.tsx +4 -0
- package/templates/ask-bar/ask-bar.tsx +1061 -0
- package/templates/ask-bar/index.ts +1 -0
- package/templates/autocomplete/autocomplete.tsx +14 -4
- package/templates/avatar/avatar.tsx +3 -0
- package/templates/badge/badge.tsx +1 -0
- package/templates/breadcrumb/breadcrumb.tsx +606 -0
- package/templates/breadcrumb/index.ts +9 -0
- package/templates/button/button.tsx +1 -0
- package/templates/calendar/calendar.tsx +1155 -0
- package/templates/calendar/index.ts +15 -0
- package/templates/card/card.tsx +6 -1
- package/templates/carousel/carousel.tsx +7 -0
- package/templates/checkbox/checkbox.tsx +1 -0
- package/templates/checkbox-group/checkbox-group.tsx +1 -0
- package/templates/collapsible/collapsible.tsx +3 -1
- package/templates/combobox/combobox.tsx +15 -4
- package/templates/command-items/command-items.tsx +69 -0
- package/templates/command-items/index.ts +1 -0
- package/templates/command-palette/command-palette.tsx +954 -0
- package/templates/command-palette/index.ts +1 -0
- package/templates/compare-slider/compare-slider.tsx +1 -0
- package/templates/comparison-table/comparison-table.tsx +540 -0
- package/templates/comparison-table/index.ts +15 -0
- package/templates/context-menu/context-menu.tsx +61 -14
- package/templates/data-table/data-table.tsx +2077 -0
- package/templates/data-table/index.ts +14 -0
- package/templates/date-picker/date-picker.tsx +527 -0
- package/templates/date-picker/index.ts +2 -0
- package/templates/date-range-picker/date-range-picker.tsx +504 -0
- package/templates/date-range-picker/index.ts +2 -0
- package/templates/detail-list/detail-list.tsx +419 -0
- package/templates/detail-list/index.ts +12 -0
- package/templates/dialog/dialog.tsx +13 -3
- package/templates/drawer/drawer.tsx +19 -6
- package/templates/expandable-card/expandable-card.tsx +5 -1
- package/templates/field/field.tsx +5 -1
- package/templates/fieldset/fieldset.tsx +2 -0
- package/templates/form/form.tsx +1 -0
- package/templates/heat-table/heat-table.tsx +613 -0
- package/templates/heat-table/index.ts +9 -0
- package/templates/hold-to-confirm/hold-to-confirm.tsx +1 -0
- package/templates/input/input.tsx +1 -0
- package/templates/label/label.tsx +1 -0
- package/templates/link/link.tsx +1 -0
- package/templates/load-transition/load-transition.tsx +1 -0
- package/templates/marquee/marquee.tsx +1 -0
- package/templates/menu/menu.tsx +27 -6
- package/templates/menubar/menubar.tsx +15 -3
- package/templates/meter/meter.tsx +5 -1
- package/templates/month-picker/index.ts +1 -0
- package/templates/month-picker/month-picker.tsx +351 -0
- package/templates/navigation-menu/navigation-menu.tsx +13 -2
- package/templates/number-field/number-field.tsx +7 -1
- package/templates/number-ticker/number-ticker.tsx +3 -0
- package/templates/omnibar/index.ts +1 -0
- package/templates/omnibar/omnibar.tsx +1009 -0
- package/templates/otp-field/otp-field.tsx +4 -0
- package/templates/pagination/index.ts +8 -0
- package/templates/pagination/pagination.tsx +389 -0
- package/templates/popover/popover.tsx +19 -5
- package/templates/preview-card/preview-card.tsx +11 -3
- package/templates/progress/progress.tsx +5 -1
- package/templates/progress-ring/progress-ring.tsx +1 -0
- package/templates/radio/radio.tsx +3 -0
- package/templates/scroll-area/scroll-area.tsx +14 -4
- package/templates/scroll-progress/scroll-progress.tsx +1 -0
- package/templates/scroll-reveal/scroll-reveal.tsx +1 -0
- package/templates/select/select.tsx +18 -2
- package/templates/separator/separator.tsx +1 -0
- package/templates/skeleton/skeleton.tsx +1 -0
- package/templates/slider/slider.tsx +7 -0
- package/templates/sortable/sortable.tsx +3 -0
- package/templates/stagger-list/stagger-list.tsx +2 -0
- package/templates/streaming-text/streaming-text.tsx +1 -0
- package/templates/swipeable-row/swipeable-row.tsx +1 -0
- package/templates/switch/switch.tsx +2 -0
- package/templates/table/index.ts +13 -0
- package/templates/table/table.tsx +265 -0
- package/templates/tabs/tabs.tsx +5 -0
- package/templates/text/text.tsx +1 -0
- package/templates/text-morph/text-morph.tsx +2 -0
- package/templates/text-shimmer/text-shimmer.tsx +1 -0
- package/templates/textarea/textarea.tsx +1 -0
- package/templates/time-slots/index.ts +1 -0
- package/templates/time-slots/time-slots.tsx +589 -0
- package/templates/toast/toast.tsx +10 -1
- package/templates/toggle/toggle.tsx +1 -0
- package/templates/toggle-group/toggle-group.tsx +2 -0
- package/templates/toolbar/toolbar.tsx +6 -0
- package/templates/tooltip/tooltip.tsx +9 -3
- package/templates/week-strip/index.ts +1 -0
- package/templates/week-strip/week-strip.tsx +329 -0
- package/templates/year-view/index.ts +1 -0
- package/templates/year-view/year-view.tsx +362 -0
|
@@ -36,6 +36,7 @@ const NavigationMenu = React.forwardRef<
|
|
|
36
36
|
)}
|
|
37
37
|
value={value}
|
|
38
38
|
onValueChange={change}
|
|
39
|
+
data-slot="navigation-menu"
|
|
39
40
|
{...props}
|
|
40
41
|
>
|
|
41
42
|
{children}
|
|
@@ -55,6 +56,7 @@ const NavigationMenuList = React.forwardRef<
|
|
|
55
56
|
"group flex flex-1 list-none items-center justify-center space-x-1",
|
|
56
57
|
className
|
|
57
58
|
)}
|
|
59
|
+
data-slot="navigation-menu-list"
|
|
58
60
|
{...props}
|
|
59
61
|
/>
|
|
60
62
|
))
|
|
@@ -83,7 +85,7 @@ const NavigationMenuItem = React.forwardRef<
|
|
|
83
85
|
|
|
84
86
|
return (
|
|
85
87
|
<NavigationMenuItemAgentContext.Provider value={root ? trigger : null}>
|
|
86
|
-
<BaseNavigationMenu.Item ref={ref} className={className} value={value} {...props} />
|
|
88
|
+
<BaseNavigationMenu.Item ref={ref} className={className} value={value} data-slot="navigation-menu-item" {...props} />
|
|
87
89
|
</NavigationMenuItemAgentContext.Provider>
|
|
88
90
|
)
|
|
89
91
|
})
|
|
@@ -103,6 +105,7 @@ const NavigationMenuTrigger = React.forwardRef<
|
|
|
103
105
|
"data-[popup-open]:bg-accent/50",
|
|
104
106
|
className
|
|
105
107
|
)}
|
|
108
|
+
data-slot="navigation-menu-trigger"
|
|
106
109
|
{...props}
|
|
107
110
|
>
|
|
108
111
|
{children}{" "}
|
|
@@ -127,6 +130,7 @@ const NavigationMenuContent = React.forwardRef<
|
|
|
127
130
|
"data-[starting-style]:opacity-0 data-[ending-style]:opacity-0",
|
|
128
131
|
className
|
|
129
132
|
)}
|
|
133
|
+
data-slot="navigation-menu-content"
|
|
130
134
|
{...props}
|
|
131
135
|
/>
|
|
132
136
|
))
|
|
@@ -147,6 +151,7 @@ const NavigationMenuLink = React.forwardRef<
|
|
|
147
151
|
"focus:bg-accent focus:text-accent-foreground",
|
|
148
152
|
className
|
|
149
153
|
)}
|
|
154
|
+
data-slot="navigation-menu-link"
|
|
150
155
|
{...props}
|
|
151
156
|
/>
|
|
152
157
|
)
|
|
@@ -155,7 +160,7 @@ NavigationMenuLink.displayName = "NavigationMenuLink"
|
|
|
155
160
|
|
|
156
161
|
const NavigationMenuPortal: React.FC<
|
|
157
162
|
React.ComponentProps<typeof BaseNavigationMenu.Portal>
|
|
158
|
-
> = (props) => <BaseNavigationMenu.Portal {...props} />
|
|
163
|
+
> = (props) => <BaseNavigationMenu.Portal data-slot="navigation-menu-portal" {...props} />
|
|
159
164
|
NavigationMenuPortal.displayName = "NavigationMenuPortal"
|
|
160
165
|
|
|
161
166
|
const NavigationMenuPositioner = React.forwardRef<
|
|
@@ -165,6 +170,7 @@ const NavigationMenuPositioner = React.forwardRef<
|
|
|
165
170
|
<BaseNavigationMenu.Positioner
|
|
166
171
|
ref={ref}
|
|
167
172
|
className={cn("absolute left-0 top-full z-50 flex justify-center", className)}
|
|
173
|
+
data-slot="navigation-menu-positioner"
|
|
168
174
|
{...props}
|
|
169
175
|
/>
|
|
170
176
|
))
|
|
@@ -184,6 +190,7 @@ const NavigationMenuPopup = React.forwardRef<
|
|
|
184
190
|
"motion-reduce:data-[starting-style]:scale-100 motion-reduce:data-[ending-style]:scale-100",
|
|
185
191
|
className
|
|
186
192
|
)}
|
|
193
|
+
data-slot="navigation-menu-popup"
|
|
187
194
|
{...props}
|
|
188
195
|
/>
|
|
189
196
|
))
|
|
@@ -202,6 +209,7 @@ const NavigationMenuViewport = React.forwardRef<
|
|
|
202
209
|
style={{
|
|
203
210
|
perspective: "2000px",
|
|
204
211
|
}}
|
|
212
|
+
data-slot="navigation-menu-viewport"
|
|
205
213
|
{...props}
|
|
206
214
|
/>
|
|
207
215
|
))
|
|
@@ -220,6 +228,7 @@ const NavigationMenuArrow = React.forwardRef<
|
|
|
220
228
|
"data-[side=top]:bottom-[-8px] data-[side=top]:rotate-180",
|
|
221
229
|
className
|
|
222
230
|
)}
|
|
231
|
+
data-slot="navigation-menu-arrow"
|
|
223
232
|
{...props}
|
|
224
233
|
>
|
|
225
234
|
{children || (
|
|
@@ -254,6 +263,7 @@ const NavigationMenuBackdrop = React.forwardRef<
|
|
|
254
263
|
"transition-opacity duration-[var(--motion-duration-fast,150ms)] ease-[var(--motion-ease-out,cubic-bezier(0.23,1,0.32,1))]",
|
|
255
264
|
className
|
|
256
265
|
)}
|
|
266
|
+
data-slot="navigation-menu-backdrop"
|
|
257
267
|
{...props}
|
|
258
268
|
/>
|
|
259
269
|
))
|
|
@@ -269,6 +279,7 @@ const NavigationMenuIndicator = React.forwardRef<
|
|
|
269
279
|
"top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden",
|
|
270
280
|
className
|
|
271
281
|
)}
|
|
282
|
+
data-slot="navigation-menu-indicator"
|
|
272
283
|
{...props}
|
|
273
284
|
>
|
|
274
285
|
<div className="relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" />
|
|
@@ -65,7 +65,7 @@ const NumberField = React.forwardRef<HTMLDivElement, NumberFieldProps>(
|
|
|
65
65
|
|
|
66
66
|
return (
|
|
67
67
|
<NumberFieldAgentContext.Provider value={useHasAgent() ? input : null}>
|
|
68
|
-
<NumberFieldPrimitive.Root ref={ref} {...props} value={value} onValueChange={changeValue} />
|
|
68
|
+
<NumberFieldPrimitive.Root ref={ref} data-slot="number-field" {...props} value={value} onValueChange={changeValue} />
|
|
69
69
|
</NumberFieldAgentContext.Provider>
|
|
70
70
|
)
|
|
71
71
|
}
|
|
@@ -78,6 +78,7 @@ const NumberFieldGroup = React.forwardRef<
|
|
|
78
78
|
>(({ className, ...props }, ref) => (
|
|
79
79
|
<NumberFieldPrimitive.Group
|
|
80
80
|
ref={ref}
|
|
81
|
+
data-slot="number-field-group"
|
|
81
82
|
className={cn(
|
|
82
83
|
"inline-flex h-10 w-full items-stretch overflow-hidden rounded-md border border-input bg-background",
|
|
83
84
|
className
|
|
@@ -93,6 +94,7 @@ const NumberFieldInput = React.forwardRef<
|
|
|
93
94
|
>(({ className, ...props }, ref) => (
|
|
94
95
|
<NumberFieldPrimitive.Input
|
|
95
96
|
ref={useMergedRef(ref, React.useContext(NumberFieldAgentContext))}
|
|
97
|
+
data-slot="number-field-input"
|
|
96
98
|
className={cn(
|
|
97
99
|
"w-full bg-transparent px-3 text-sm outline-none placeholder:text-muted-foreground",
|
|
98
100
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
@@ -109,6 +111,7 @@ const NumberFieldIncrement = React.forwardRef<
|
|
|
109
111
|
>(({ className, children, ...props }, ref) => (
|
|
110
112
|
<NumberFieldPrimitive.Increment
|
|
111
113
|
ref={ref}
|
|
114
|
+
data-slot="number-field-increment"
|
|
112
115
|
data-agent-part={useHasAgent() ? "" : undefined}
|
|
113
116
|
className={cn(
|
|
114
117
|
"inline-flex h-full items-center justify-center border-l border-input px-3 text-muted-foreground transition-colors",
|
|
@@ -130,6 +133,7 @@ const NumberFieldDecrement = React.forwardRef<
|
|
|
130
133
|
>(({ className, children, ...props }, ref) => (
|
|
131
134
|
<NumberFieldPrimitive.Decrement
|
|
132
135
|
ref={ref}
|
|
136
|
+
data-slot="number-field-decrement"
|
|
133
137
|
data-agent-part={useHasAgent() ? "" : undefined}
|
|
134
138
|
className={cn(
|
|
135
139
|
"inline-flex h-full items-center justify-center border-r border-input px-3 text-muted-foreground transition-colors",
|
|
@@ -151,6 +155,7 @@ const NumberFieldScrubArea = React.forwardRef<
|
|
|
151
155
|
>(({ className, ...props }, ref) => (
|
|
152
156
|
<NumberFieldPrimitive.ScrubArea
|
|
153
157
|
ref={ref}
|
|
158
|
+
data-slot="number-field-scrub-area"
|
|
154
159
|
className={cn("cursor-ew-resize", className)}
|
|
155
160
|
{...props}
|
|
156
161
|
/>
|
|
@@ -163,6 +168,7 @@ const NumberFieldScrubAreaCursor = React.forwardRef<
|
|
|
163
168
|
>(({ className, ...props }, ref) => (
|
|
164
169
|
<NumberFieldPrimitive.ScrubAreaCursor
|
|
165
170
|
ref={ref}
|
|
171
|
+
data-slot="number-field-scrub-area-cursor"
|
|
166
172
|
className={cn("text-muted-foreground", className)}
|
|
167
173
|
{...props}
|
|
168
174
|
/>
|
|
@@ -396,6 +396,7 @@ const NumberTicker = React.forwardRef<HTMLSpanElement, NumberTickerProps>(
|
|
|
396
396
|
<span
|
|
397
397
|
ref={innerRef}
|
|
398
398
|
className={cn("inline-block tabular-nums tracking-tight", className)}
|
|
399
|
+
data-slot="number-ticker"
|
|
399
400
|
{...props}
|
|
400
401
|
>
|
|
401
402
|
{formatted}
|
|
@@ -408,6 +409,7 @@ const NumberTicker = React.forwardRef<HTMLSpanElement, NumberTickerProps>(
|
|
|
408
409
|
<span
|
|
409
410
|
ref={innerRef}
|
|
410
411
|
className={cn("inline-block tabular-nums tracking-tight", className)}
|
|
412
|
+
data-slot="number-ticker"
|
|
411
413
|
{...props}
|
|
412
414
|
>
|
|
413
415
|
<CounterValue
|
|
@@ -430,6 +432,7 @@ const NumberTicker = React.forwardRef<HTMLSpanElement, NumberTickerProps>(
|
|
|
430
432
|
"inline-flex items-baseline tabular-nums tracking-tight",
|
|
431
433
|
className
|
|
432
434
|
)}
|
|
435
|
+
data-slot="number-ticker"
|
|
433
436
|
{...props}
|
|
434
437
|
>
|
|
435
438
|
{cells.map((cell, i) => {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./omnibar"
|