@yuhuanowo/yunui 0.1.8 → 0.2.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/README.md +22 -5
- package/dist/{chunk-EFIELFBW.js → chunk-YRITK7CC.js} +555 -37
- package/dist/chunk-YRITK7CC.js.map +1 -0
- package/dist/index.d.ts +218 -1
- package/dist/index.js +1 -1
- package/dist/patterns.js +4 -4
- package/dist/patterns.js.map +1 -1
- package/package.json +5 -3
- package/dist/chunk-EFIELFBW.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -13,6 +13,8 @@ import { LucideIcon } from 'lucide-react';
|
|
|
13
13
|
import * as Primitive from '@radix-ui/react-collapsible';
|
|
14
14
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
15
15
|
import { ClassValue } from 'clsx';
|
|
16
|
+
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
17
|
+
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
16
18
|
|
|
17
19
|
/**
|
|
18
20
|
* Modal Size Classes
|
|
@@ -199,6 +201,221 @@ interface ComboboxProps {
|
|
|
199
201
|
/** Searchable, optionally creatable combobox — type to filter, Enter to pick or create. */
|
|
200
202
|
declare function Combobox({ options, value, onChange, placeholder, className, disabled, allowCustom, creatableText, }: ComboboxProps): React$1.JSX.Element;
|
|
201
203
|
|
|
204
|
+
/**
|
|
205
|
+
* Radix Accordion root — a vertically stacked set of collapsible sections.
|
|
206
|
+
*
|
|
207
|
+
* Set `type="single"` for one-at-a-time panels (optionally `collapsible` so the
|
|
208
|
+
* open one can be closed) or `type="multiple"` to allow several open at once.
|
|
209
|
+
* Full keyboard a11y (arrow keys, Home/End, Enter/Space) comes from Radix.
|
|
210
|
+
*/
|
|
211
|
+
declare const Accordion: React$1.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React$1.RefAttributes<HTMLDivElement>>;
|
|
212
|
+
/** A single collapsible section. Give each a unique `value`. */
|
|
213
|
+
declare const AccordionItem: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
214
|
+
/** Clickable header that toggles its section; shows a chevron that rotates when open. */
|
|
215
|
+
declare const AccordionTrigger: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
216
|
+
/**
|
|
217
|
+
* Collapsible panel body. Animates its height open/closed by transitioning the
|
|
218
|
+
* `grid-template-rows` `0fr` → `1fr` track, driven by Radix's
|
|
219
|
+
* `data-state` attribute. Self-contained (no external keyframes required).
|
|
220
|
+
*/
|
|
221
|
+
declare const AccordionContent: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* Radix RadioGroup root — a single-choice set of {@link RadioGroupItem}s.
|
|
225
|
+
*
|
|
226
|
+
* Controlled via `value`/`onValueChange` (or uncontrolled via `defaultValue`).
|
|
227
|
+
* Arrow keys move and select within the group; the whole group is one tab stop.
|
|
228
|
+
*/
|
|
229
|
+
declare const RadioGroup: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
230
|
+
/**
|
|
231
|
+
* A single radio option. Pair with a `<label htmlFor>` via `id`.
|
|
232
|
+
* Renders a ring outline that fills with the primary accent and a center dot
|
|
233
|
+
* when selected — matching YunUI's Checkbox/Switch visual language.
|
|
234
|
+
*/
|
|
235
|
+
declare const RadioGroupItem: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* Supported spacing-scale values (Tailwind's default scale: 1 unit = 0.25rem).
|
|
239
|
+
* A fixed set so the literal classes below are always present for the compiler.
|
|
240
|
+
*/
|
|
241
|
+
type SpacingScale = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 8 | 10 | 12;
|
|
242
|
+
declare const directionMap: {
|
|
243
|
+
readonly row: "flex-row";
|
|
244
|
+
readonly col: "flex-col";
|
|
245
|
+
readonly "row-reverse": "flex-row-reverse";
|
|
246
|
+
readonly "col-reverse": "flex-col-reverse";
|
|
247
|
+
};
|
|
248
|
+
type FlexDirection = keyof typeof directionMap;
|
|
249
|
+
declare const alignMap: {
|
|
250
|
+
readonly start: "items-start";
|
|
251
|
+
readonly center: "items-center";
|
|
252
|
+
readonly end: "items-end";
|
|
253
|
+
readonly stretch: "items-stretch";
|
|
254
|
+
readonly baseline: "items-baseline";
|
|
255
|
+
};
|
|
256
|
+
type Align = keyof typeof alignMap;
|
|
257
|
+
declare const justifyMap: {
|
|
258
|
+
readonly start: "justify-start";
|
|
259
|
+
readonly center: "justify-center";
|
|
260
|
+
readonly end: "justify-end";
|
|
261
|
+
readonly between: "justify-between";
|
|
262
|
+
readonly around: "justify-around";
|
|
263
|
+
readonly evenly: "justify-evenly";
|
|
264
|
+
};
|
|
265
|
+
type Justify = keyof typeof justifyMap;
|
|
266
|
+
/** Supported fixed column/row counts (1–12), mapped to literal grid classes. */
|
|
267
|
+
type GridCount = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
268
|
+
interface FlexProps extends React$1.HTMLAttributes<HTMLElement> {
|
|
269
|
+
/** Main axis direction. @defaultValue "row" */
|
|
270
|
+
direction?: FlexDirection;
|
|
271
|
+
/** Cross-axis alignment (`align-items`). */
|
|
272
|
+
align?: Align;
|
|
273
|
+
/** Main-axis distribution (`justify-content`). */
|
|
274
|
+
justify?: Justify;
|
|
275
|
+
/** Gap between children, on the spacing scale. */
|
|
276
|
+
gap?: SpacingScale;
|
|
277
|
+
/** Allow children to wrap onto multiple lines. */
|
|
278
|
+
wrap?: boolean;
|
|
279
|
+
/** Padding on all sides, on the spacing scale. */
|
|
280
|
+
padding?: SpacingScale;
|
|
281
|
+
/** Horizontal padding (`px`), on the spacing scale. */
|
|
282
|
+
px?: SpacingScale;
|
|
283
|
+
/** Vertical padding (`py`), on the spacing scale. */
|
|
284
|
+
py?: SpacingScale;
|
|
285
|
+
/** Element/tag to render as. @defaultValue "div" */
|
|
286
|
+
as?: React$1.ElementType;
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* Flexbox layout primitive. Maps `direction`/`align`/`justify`/`gap`/`wrap`/
|
|
290
|
+
* padding props to literal Tailwind classes via static maps. Purely
|
|
291
|
+
* presentational — extra props are spread onto the rendered element.
|
|
292
|
+
*/
|
|
293
|
+
declare const Flex: React$1.ForwardRefExoticComponent<FlexProps & React$1.RefAttributes<HTMLElement>>;
|
|
294
|
+
interface GridProps extends React$1.HTMLAttributes<HTMLElement> {
|
|
295
|
+
/** Number of equal columns (1–12). */
|
|
296
|
+
columns?: GridCount;
|
|
297
|
+
/** Number of explicit rows (1–12). */
|
|
298
|
+
rows?: GridCount;
|
|
299
|
+
/** Gap between cells, on the spacing scale. */
|
|
300
|
+
gap?: SpacingScale;
|
|
301
|
+
/** Cross-axis alignment of items within their cells (`align-items`). */
|
|
302
|
+
align?: Align;
|
|
303
|
+
/** Padding on all sides, on the spacing scale. */
|
|
304
|
+
padding?: SpacingScale;
|
|
305
|
+
/** Element/tag to render as. @defaultValue "div" */
|
|
306
|
+
as?: React$1.ElementType;
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* CSS-grid layout primitive. Maps `columns`/`rows`/`gap`/`align`/`padding`
|
|
310
|
+
* to literal Tailwind classes via static maps. Purely presentational.
|
|
311
|
+
*/
|
|
312
|
+
declare const Grid: React$1.ForwardRefExoticComponent<GridProps & React$1.RefAttributes<HTMLElement>>;
|
|
313
|
+
/** Thin wrapper around {@link Flex} fixed to `direction="col"`. */
|
|
314
|
+
declare const Column: React$1.ForwardRefExoticComponent<Omit<FlexProps, "direction"> & React$1.RefAttributes<HTMLElement>>;
|
|
315
|
+
/** Thin wrapper around {@link Flex} fixed to `direction="row"`. */
|
|
316
|
+
declare const Row: React$1.ForwardRefExoticComponent<Omit<FlexProps, "direction"> & React$1.RefAttributes<HTMLElement>>;
|
|
317
|
+
/**
|
|
318
|
+
* Vertical {@link Flex} (`direction="col"`) with a sensible default `gap`.
|
|
319
|
+
* Alias of {@link Column} optimised for stacking content; override `gap` freely.
|
|
320
|
+
*/
|
|
321
|
+
declare const Stack: React$1.ForwardRefExoticComponent<Omit<FlexProps, "direction"> & React$1.RefAttributes<HTMLElement>>;
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* Table root — wraps a `<table>` in an overflow container so wide tables scroll
|
|
325
|
+
* horizontally instead of breaking the layout. `className` is applied to the
|
|
326
|
+
* inner `<table>`; pass `containerClassName` to style the scroll wrapper.
|
|
327
|
+
*/
|
|
328
|
+
declare const Table: React$1.ForwardRefExoticComponent<React$1.TableHTMLAttributes<HTMLTableElement> & {
|
|
329
|
+
/** Class applied to the outer scroll/overflow wrapper. */
|
|
330
|
+
containerClassName?: string;
|
|
331
|
+
} & React$1.RefAttributes<HTMLTableElement>>;
|
|
332
|
+
/** Table header group (`<thead>`); contains the column-header row(s). */
|
|
333
|
+
declare const TableHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
334
|
+
/** Table body group (`<tbody>`); rows are divided by subtle borders. */
|
|
335
|
+
declare const TableBody: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
336
|
+
/** Table footer group (`<tfoot>`); a muted summary row band. */
|
|
337
|
+
declare const TableFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
338
|
+
/** Table row (`<tr>`) with a divider and hover highlight. */
|
|
339
|
+
declare const TableRow: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableRowElement> & React$1.RefAttributes<HTMLTableRowElement>>;
|
|
340
|
+
/** Column header cell (`<th>`): left-aligned, uppercase, muted, small. */
|
|
341
|
+
declare const TableHead: React$1.ForwardRefExoticComponent<React$1.ThHTMLAttributes<HTMLTableCellElement> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
342
|
+
/** Standard data cell (`<td>`). */
|
|
343
|
+
declare const TableCell: React$1.ForwardRefExoticComponent<React$1.TdHTMLAttributes<HTMLTableCellElement> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
344
|
+
/** Caption (`<caption>`) rendered below the table; muted helper text. */
|
|
345
|
+
declare const TableCaption: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableCaptionElement> & React$1.RefAttributes<HTMLTableCaptionElement>>;
|
|
346
|
+
|
|
347
|
+
/** Breadcrumb root: a `<nav>` landmark labelling the trail for screen readers. */
|
|
348
|
+
declare const Breadcrumb: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
|
|
349
|
+
/** Accessible name for the navigation landmark. @defaultValue "Breadcrumb" */
|
|
350
|
+
"aria-label"?: string;
|
|
351
|
+
} & React$1.RefAttributes<HTMLElement>>;
|
|
352
|
+
/** Ordered list (`<ol>`) holding the breadcrumb items. */
|
|
353
|
+
declare const BreadcrumbList: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "ref"> & React$1.RefAttributes<HTMLOListElement>>;
|
|
354
|
+
/** A single breadcrumb item (`<li>`); wrap a link, page, or separator. */
|
|
355
|
+
declare const BreadcrumbItem: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React$1.RefAttributes<HTMLLIElement>>;
|
|
356
|
+
/**
|
|
357
|
+
* A navigable breadcrumb link. Routes through the host app's `Link` adapter
|
|
358
|
+
* (`useYunUI().Link`) so it integrates with the consumer's router; falls back
|
|
359
|
+
* to a plain `<a>` when no provider is present.
|
|
360
|
+
*/
|
|
361
|
+
declare function BreadcrumbLink({ className, href, ...props }: {
|
|
362
|
+
/** Destination URL. */
|
|
363
|
+
href: string;
|
|
364
|
+
children?: React$1.ReactNode;
|
|
365
|
+
className?: string;
|
|
366
|
+
} & Omit<React$1.AnchorHTMLAttributes<HTMLAnchorElement>, "href">): React$1.JSX.Element;
|
|
367
|
+
declare namespace BreadcrumbLink {
|
|
368
|
+
var displayName: string;
|
|
369
|
+
}
|
|
370
|
+
/**
|
|
371
|
+
* The current page in the trail. Non-interactive and marked
|
|
372
|
+
* `aria-current="page"` for assistive tech.
|
|
373
|
+
*/
|
|
374
|
+
declare const BreadcrumbPage: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
375
|
+
/**
|
|
376
|
+
* Visual separator between items (a chevron by default). Hidden from the
|
|
377
|
+
* accessibility tree since it carries no information for screen readers.
|
|
378
|
+
*/
|
|
379
|
+
declare const BreadcrumbSeparator: {
|
|
380
|
+
({ children, className, ...props }: React$1.ComponentPropsWithoutRef<"li">): React$1.JSX.Element;
|
|
381
|
+
displayName: string;
|
|
382
|
+
};
|
|
383
|
+
/**
|
|
384
|
+
* Ellipsis placeholder for collapsed middle items in a long trail.
|
|
385
|
+
*/
|
|
386
|
+
declare const BreadcrumbEllipsis: {
|
|
387
|
+
({ className, ...props }: React$1.ComponentPropsWithoutRef<"span">): React$1.JSX.Element;
|
|
388
|
+
displayName: string;
|
|
389
|
+
};
|
|
390
|
+
|
|
391
|
+
interface PaginationProps extends Omit<React$1.HTMLAttributes<HTMLElement>, "onChange"> {
|
|
392
|
+
/** The active page (1-based). */
|
|
393
|
+
page: number;
|
|
394
|
+
/** Total number of pages. */
|
|
395
|
+
totalPages: number;
|
|
396
|
+
/** Called with the requested page when a control is activated. */
|
|
397
|
+
onPageChange: (page: number) => void;
|
|
398
|
+
/**
|
|
399
|
+
* How many page buttons to show on each side of the current page before
|
|
400
|
+
* collapsing into an ellipsis.
|
|
401
|
+
* @defaultValue 1
|
|
402
|
+
*/
|
|
403
|
+
siblingCount?: number;
|
|
404
|
+
/** Accessible label for the previous-page button. @defaultValue "Go to previous page" */
|
|
405
|
+
previousLabel?: string;
|
|
406
|
+
/** Accessible label for the next-page button. @defaultValue "Go to next page" */
|
|
407
|
+
nextLabel?: string;
|
|
408
|
+
/** Accessible name for the wrapping nav landmark. @defaultValue "Pagination" */
|
|
409
|
+
ariaLabel?: string;
|
|
410
|
+
}
|
|
411
|
+
/**
|
|
412
|
+
* Controlled pagination control. Renders previous/next arrows plus numbered
|
|
413
|
+
* page buttons with ellipsis truncation. The current page is highlighted with
|
|
414
|
+
* the primary accent and exposes `aria-current="page"`; prev/next are disabled
|
|
415
|
+
* at the bounds.
|
|
416
|
+
*/
|
|
417
|
+
declare const Pagination: React$1.ForwardRefExoticComponent<PaginationProps & React$1.RefAttributes<HTMLElement>>;
|
|
418
|
+
|
|
202
419
|
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
203
420
|
/**
|
|
204
421
|
* Visual style. Options: `primary`, `secondary`, `ghost`, `accent`, `outline`, `amber`, `red`/`destructive`.
|
|
@@ -651,4 +868,4 @@ declare function useBodyScrollLock(locked?: boolean): void;
|
|
|
651
868
|
*/
|
|
652
869
|
declare function useModalBehavior(isOpen: boolean, onClose: () => void): void;
|
|
653
870
|
|
|
654
|
-
export { AnimatedNumber, type AnimatedNumberProps, Avatar, AvatarFallback, AvatarImage, Badge, BentoCard, BentoGrid, Button, Card, Checkbox, type CheckboxProps, Collapsible, CollapsibleContent, type CollapsibleContentProps, type CollapsibleProps, CollapsibleTrigger, type CollapsibleTriggerProps, Combobox, type ComboboxOption, ConfirmModal, type ConfirmModalVariant, CustomSelect, DeleteConfirmModal, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, IconButton, Input, Label, Marquee, Modal, MotionDiv, MotionSpan, type NavTab, NavTabs, PageLoader, Popover, PopoverClose, PopoverContent, PopoverTrigger, Progress, RegenerateConfirmModal, type SegmentedOption, SegmentedSelect, Select, SelectContent, SelectGroup, SelectItem, type SelectOption, SelectTrigger, SelectValue, Sheet, ShinyButton, Skeleton, Slider, Spinner, Switch, type SwitchProps, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThemeToggle, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, cn, fadeIn, staggerContainer, staggerItem, toast, useBodyScrollLock, useEscapeKey, useModalBehavior };
|
|
871
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AnimatedNumber, type AnimatedNumberProps, Avatar, AvatarFallback, AvatarImage, Badge, BentoCard, BentoGrid, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Card, Checkbox, type CheckboxProps, Collapsible, CollapsibleContent, type CollapsibleContentProps, type CollapsibleProps, CollapsibleTrigger, type CollapsibleTriggerProps, Column, Combobox, type ComboboxOption, ConfirmModal, type ConfirmModalVariant, CustomSelect, DeleteConfirmModal, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, Flex, type FlexProps, Grid, type GridCount, type GridProps, IconButton, Input, Label, Marquee, Modal, MotionDiv, MotionSpan, type NavTab, NavTabs, PageLoader, Pagination, type PaginationProps, Popover, PopoverClose, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, RegenerateConfirmModal, Row, type SegmentedOption, SegmentedSelect, Select, SelectContent, SelectGroup, SelectItem, type SelectOption, SelectTrigger, SelectValue, Sheet, ShinyButton, Skeleton, Slider, type SpacingScale, Spinner, Stack, Switch, type SwitchProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TableBody as Tbody, TableCell as Td, Textarea, TableFooter as Tfoot, TableHead as Th, TableHeader as Thead, ThemeToggle, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TableRow as Tr, cn, fadeIn, staggerContainer, staggerItem, toast, useBodyScrollLock, useEscapeKey, useModalBehavior };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export { AnimatedNumber, Avatar, AvatarFallback, AvatarImage, Badge, BentoCard, BentoGrid, Button, Card, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, ConfirmModal, CustomSelect, DeleteConfirmModal, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, IconButton, Input, Label, Marquee, Modal, MotionDiv, MotionSpan, NavTabs, PageLoader, Popover, PopoverClose, PopoverContent, PopoverTrigger, Progress, RegenerateConfirmModal, SegmentedSelect, Select, SelectContent, SelectGroup, SelectItem, SelectTrigger, SelectValue, Sheet, ShinyButton, Skeleton, Slider, Spinner, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, fadeIn, staggerContainer, staggerItem, toast, useBodyScrollLock, useEscapeKey, useModalBehavior } from './chunk-
|
|
2
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AnimatedNumber, Avatar, AvatarFallback, AvatarImage, Badge, BentoCard, BentoGrid, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Card, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Column, Combobox, ConfirmModal, CustomSelect, DeleteConfirmModal, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, Flex, Grid, IconButton, Input, Label, Marquee, Modal, MotionDiv, MotionSpan, NavTabs, PageLoader, Pagination, Popover, PopoverClose, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, RegenerateConfirmModal, Row, SegmentedSelect, Select, SelectContent, SelectGroup, SelectItem, SelectTrigger, SelectValue, Sheet, ShinyButton, Skeleton, Slider, Spinner, Stack, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TableBody as Tbody, TableCell as Td, Textarea, TableFooter as Tfoot, TableHead as Th, TableHeader as Thead, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TableRow as Tr, fadeIn, staggerContainer, staggerItem, toast, useBodyScrollLock, useEscapeKey, useModalBehavior } from './chunk-YRITK7CC.js';
|
|
3
3
|
export { ThemeToggle, cn } from './chunk-N7JHOWGR.js';
|
|
4
4
|
import './chunk-T37N6OZA.js';
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
package/dist/patterns.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Button, Card, Badge, Avatar, AvatarImage, AvatarFallback, IconButton, Spinner } from './chunk-
|
|
2
|
+
import { Button, Card, Badge, Avatar, AvatarImage, AvatarFallback, IconButton, Spinner } from './chunk-YRITK7CC.js';
|
|
3
3
|
import { copyToClipboard } from './chunk-WASCOOVD.js';
|
|
4
4
|
import { cn } from './chunk-N7JHOWGR.js';
|
|
5
5
|
import { useYunUI } from './chunk-T37N6OZA.js';
|
|
@@ -214,7 +214,7 @@ var codeSnippets = {
|
|
|
214
214
|
python: `import openai
|
|
215
215
|
|
|
216
216
|
client = openai.OpenAI(
|
|
217
|
-
base_url="https://api.
|
|
217
|
+
base_url="https://api.example.com/v1",
|
|
218
218
|
api_key="your_api_key"
|
|
219
219
|
)
|
|
220
220
|
|
|
@@ -227,7 +227,7 @@ print(response.choices[0].message.content)`,
|
|
|
227
227
|
javascript: `import OpenAI from 'openai';
|
|
228
228
|
|
|
229
229
|
const client = new OpenAI({
|
|
230
|
-
baseURL: 'https://api.
|
|
230
|
+
baseURL: 'https://api.example.com/v1',
|
|
231
231
|
apiKey: 'your_api_key'
|
|
232
232
|
});
|
|
233
233
|
|
|
@@ -237,7 +237,7 @@ const response = await client.chat.completions.create({
|
|
|
237
237
|
});
|
|
238
238
|
|
|
239
239
|
console.log(response.choices[0].message.content);`,
|
|
240
|
-
curl: `curl https://api.
|
|
240
|
+
curl: `curl https://api.example.com/v1/chat/completions \\
|
|
241
241
|
-H "Authorization: Bearer your_api_key" \\
|
|
242
242
|
-H "Content-Type: application/json" \\
|
|
243
243
|
-d '{
|