@yuhuanowo/yunui 0.1.8 → 0.2.1

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.
@@ -0,0 +1,46 @@
1
+ import * as React from 'react';
2
+ import { ReactNode } from 'react';
3
+
4
+ declare const GithubIcon: () => React.JSX.Element;
5
+ declare const InstagramIcon: () => React.JSX.Element;
6
+ declare const DiscordIcon: () => React.JSX.Element;
7
+ interface FooterLink {
8
+ /** Link text. */
9
+ label: string;
10
+ /** Destination href. */
11
+ href: string;
12
+ }
13
+ interface FooterSection {
14
+ /** Column heading. */
15
+ title: string;
16
+ /** Links in this column. */
17
+ links: FooterLink[];
18
+ }
19
+ interface FooterSocial {
20
+ /** Icon to render (e.g. {@link GithubIcon}). */
21
+ icon: ReactNode;
22
+ /** Destination href (external links open in a new tab). */
23
+ href: string;
24
+ /** Accessible label for the link. */
25
+ label: string;
26
+ }
27
+ interface FooterProps {
28
+ /** Brand name shown next to the logo. */
29
+ appName: string;
30
+ /** Logo image src. @defaultValue "/favicon.ico" */
31
+ logoSrc?: string;
32
+ /** Where the logo links to. @defaultValue "/" */
33
+ homeHref?: string;
34
+ /** Short brand tagline under the logo. */
35
+ tagline?: string;
36
+ /** Link columns. */
37
+ sections?: FooterSection[];
38
+ /** Social/icon links shown in the bottom bar. */
39
+ social?: FooterSocial[];
40
+ /** Defaults to `© <year> <appName>. All rights reserved.` */
41
+ copyright?: string;
42
+ }
43
+ /** Site footer: brand block, link columns, copyright line, and social icons. */
44
+ declare function Footer({ appName, logoSrc, homeHref, tagline, sections, social, copyright, }: FooterProps): React.JSX.Element;
45
+
46
+ export { DiscordIcon as D, Footer as F, GithubIcon as G, InstagramIcon as I, type FooterLink as a, type FooterProps as b, type FooterSection as c, type FooterSocial as d };
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,12 +201,227 @@ 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`.
205
422
  * @defaultValue "default"
206
423
  */
207
- variant?: /** @deprecated alias of `primary` */ "default" | "primary" | "secondary" | "ghost" | "accent" | "outline" | "amber" | /** @deprecated alias of `destructive` */ "red" | "destructive";
424
+ variant?: /** @deprecated alias of `primary` */ "default" | "primary" | "secondary" | "ghost" | "accent" | /** Solid fill from the runtime-themeable brand token (data-brand). */ "brand" | "outline" | "amber" | /** @deprecated alias of `destructive` */ "red" | "destructive";
208
425
  /** Size: `sm`, `md` (default), `lg`, or `icon` (square 40×40). */
209
426
  size?: "sm" | "md" | "lg" | "icon";
210
427
  /** Show a spinner before the children and disable the button while busy. */
@@ -651,4 +868,54 @@ 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
+ /**
872
+ * Runtime theming for YunUI's token system.
873
+ *
874
+ * The design tokens (styles/tokens.css) are driven by data-* attributes on a
875
+ * root element. Switching a role's palette is a single attribute change — no
876
+ * rebuild, instant, and it cascades to every component/utility that consumes the
877
+ * semantic tokens (e.g. the `bg-brand-solid-strong` / `text-accent-on-background-*`
878
+ * utilities). Light/dark itself is still owned by your theme manager (e.g.
879
+ * next-themes via the `.dark` class); this layer governs brand/accent/neutral
880
+ * palette + solid/surface style.
881
+ *
882
+ * import { applyTheme, useYunUITheme, YUNUI_PALETTES } from "@yuhuanowo/yunui";
883
+ * applyTheme({ brand: "emerald", accent: "violet" }); // imperative
884
+ * const [theme, setTheme] = useYunUITheme({ brand: "blue" }); // React, persisted
885
+ */
886
+ type YunUIPalette = "gray" | "sand" | "slate" | "mint" | "rose" | "dusk" | "red" | "orange" | "yellow" | "moss" | "green" | "emerald" | "aqua" | "cyan" | "blue" | "indigo" | "violet" | "magenta" | "pink";
887
+ /** How solid (filled) surfaces derive their color. */
888
+ type YunUISolid = "color" | "contrast" | "inverse";
889
+ /** Whether elevated surfaces are opaque or frosted. */
890
+ type YunUISurface = "filled" | "translucent";
891
+ /** Color scheme — usually managed by your theme manager, exposed here for completeness. */
892
+ type YunUIColorScheme = "light" | "dark";
893
+ interface YunUITheme {
894
+ /** Primary brand palette. */
895
+ brand?: YunUIPalette;
896
+ /** Secondary accent palette. */
897
+ accent?: YunUIPalette;
898
+ /** Neutral/gray palette (typically gray, sand, or slate). */
899
+ neutral?: YunUIPalette;
900
+ solid?: YunUISolid;
901
+ surface?: YunUISurface;
902
+ theme?: YunUIColorScheme;
903
+ }
904
+ /** All palettes available to the brand/accent/neutral roles (for building pickers). */
905
+ declare const YUNUI_PALETTES: YunUIPalette[];
906
+ /**
907
+ * Apply theme attributes to an element (defaults to <html>). Only the keys you
908
+ * pass are written; pass `null` for a key to clear it. Safe to call on the
909
+ * server (no-ops when there is no document and no explicit element).
910
+ */
911
+ declare function applyTheme(theme: Partial<Record<keyof YunUITheme, string | null>>, el?: HTMLElement | null): void;
912
+ /** Read the current theme attributes back off an element (defaults to <html>). */
913
+ declare function readTheme(el?: HTMLElement | null): YunUITheme;
914
+ /**
915
+ * React hook for runtime theming. Returns the current theme and a setter that
916
+ * merges a patch, applies it to <html>, and persists to localStorage. On mount
917
+ * it hydrates from localStorage (falling back to `defaults`) and applies it.
918
+ */
919
+ declare function useYunUITheme(defaults?: YunUITheme): [YunUITheme, (patch: YunUITheme) => void];
920
+
921
+ 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, YUNUI_PALETTES, type YunUIColorScheme, type YunUIPalette, type YunUISolid, type YunUISurface, type YunUITheme, applyTheme, cn, fadeIn, readTheme, staggerContainer, staggerItem, toast, useBodyScrollLock, useEscapeKey, useModalBehavior, useYunUITheme };
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-EFIELFBW.js';
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, YUNUI_PALETTES, applyTheme, fadeIn, readTheme, staggerContainer, staggerItem, toast, useBodyScrollLock, useEscapeKey, useModalBehavior, useYunUITheme } from './chunk-KTA7HC4V.js';
3
3
  export { ThemeToggle, cn } from './chunk-N7JHOWGR.js';
4
4
  import './chunk-T37N6OZA.js';
5
5
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,6 @@
1
1
  import * as React$1 from 'react';
2
2
  import React__default, { ElementType, ReactNode } from 'react';
3
+ export { F as Footer, a as FooterLink, b as FooterProps, c as FooterSection, d as FooterSocial } from './footer-BoFu7Wqq.js';
3
4
 
4
5
  declare function BackgroundEffects(): React$1.JSX.Element;
5
6
 
package/dist/patterns.js CHANGED
@@ -1,6 +1,7 @@
1
1
  "use client";
2
- import { Button, Card, Badge, Avatar, AvatarImage, AvatarFallback, IconButton, Spinner } from './chunk-EFIELFBW.js';
3
- import { copyToClipboard } from './chunk-WASCOOVD.js';
2
+ import { Button, Card, Badge, Avatar, AvatarImage, AvatarFallback, IconButton, Spinner } from './chunk-KTA7HC4V.js';
3
+ import { copyToClipboard } from './chunk-FOP7I6N3.js';
4
+ export { Footer } from './chunk-FOP7I6N3.js';
4
5
  import { cn } from './chunk-N7JHOWGR.js';
5
6
  import { useYunUI } from './chunk-T37N6OZA.js';
6
7
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
@@ -214,7 +215,7 @@ var codeSnippets = {
214
215
  python: `import openai
215
216
 
216
217
  client = openai.OpenAI(
217
- base_url="https://api.yunxin.ai/v1",
218
+ base_url="https://api.example.com/v1",
218
219
  api_key="your_api_key"
219
220
  )
220
221
 
@@ -227,7 +228,7 @@ print(response.choices[0].message.content)`,
227
228
  javascript: `import OpenAI from 'openai';
228
229
 
229
230
  const client = new OpenAI({
230
- baseURL: 'https://api.yunxin.ai/v1',
231
+ baseURL: 'https://api.example.com/v1',
231
232
  apiKey: 'your_api_key'
232
233
  });
233
234
 
@@ -237,7 +238,7 @@ const response = await client.chat.completions.create({
237
238
  });
238
239
 
239
240
  console.log(response.choices[0].message.content);`,
240
- curl: `curl https://api.yunxin.ai/v1/chat/completions \\
241
+ curl: `curl https://api.example.com/v1/chat/completions \\
241
242
  -H "Authorization: Bearer your_api_key" \\
242
243
  -H "Content-Type: application/json" \\
243
244
  -d '{