@yuhuanowo/yunui 0.2.7 → 0.2.9

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/dist/index.d.ts CHANGED
@@ -197,10 +197,14 @@ interface ComboboxProps {
197
197
  allowCustom?: boolean;
198
198
  /** Label template for the "create new" row; `{value}` is replaced with the typed text. */
199
199
  creatableText?: string;
200
+ /** When set, the "create new" row only appears for inputs passing this test. */
201
+ creatableFilter?: (input: string) => boolean;
202
+ /** Glyph shown on the "create new" row (default `+`). */
203
+ creatableIcon?: ReactNode;
200
204
  }
201
205
  /** Searchable, optionally creatable combobox — type to filter, Enter to pick or create.
202
206
  * For long lists where users type to narrow; see `Select`'s doc for "which select do I use". */
203
- declare function Combobox({ options, value, onChange, placeholder, className, disabled, allowCustom, creatableText, }: ComboboxProps): React$1.JSX.Element;
207
+ declare function Combobox({ options, value, onChange, placeholder, className, disabled, allowCustom, creatableText, creatableFilter, creatableIcon, }: ComboboxProps): React$1.JSX.Element;
204
208
 
205
209
  /**
206
210
  * Radix Accordion root — a vertically stacked set of collapsible sections.
@@ -476,7 +480,7 @@ interface NumberInputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputEle
476
480
  declare const NumberInput: React$1.ForwardRefExoticComponent<NumberInputProps & React$1.RefAttributes<HTMLInputElement>>;
477
481
  /** Inline keyboard-key / shortcut display, e.g. `<Kbd>⌘</Kbd><Kbd>K</Kbd>`. */
478
482
  declare function Kbd({ className, ...props }: React$1.HTMLAttributes<HTMLElement>): React$1.JSX.Element;
479
- interface SearchInputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "type"> {
483
+ interface SearchInputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "type" | "size"> {
480
484
  /** Current query (controlled). */
481
485
  value?: string;
482
486
  /** Called with the new query string — also called with `""` when cleared. */
@@ -485,6 +489,8 @@ interface SearchInputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputEle
485
489
  clearable?: boolean;
486
490
  /** Accessible label for the clear button (English default). */
487
491
  clearLabel?: string;
492
+ /** Field size — `sm` for toolbars/dropdowns, `md` standalone. @defaultValue "md" */
493
+ size?: "sm" | "md";
488
494
  }
489
495
  /**
490
496
  * Canonical search field: a leading magnifier with the right padding so typed
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AnimatedNumber, Avatar, AvatarFallback, AvatarGroup, 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, InlineCode, Input, Kbd, Label, Marquee, Modal, MotionDiv, MotionSpan, NavTabs, NumberInput, PageLoader, Pagination, PasswordInput, Popover, PopoverClose, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, RegenerateConfirmModal, Row, SearchInput, SegmentedSelect, Select, SelectContent, SelectGroup, SelectItem, SelectTrigger, SelectValue, Separator, Sheet, ShinyButton, Skeleton, Slider, Spinner, Stack, StatusIndicator, Steps, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tag, 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, useFocusTrap, useModalBehavior, useYunUITheme } from './chunk-EROX7LXU.js';
2
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AnimatedNumber, Avatar, AvatarFallback, AvatarGroup, 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, InlineCode, Input, Kbd, Label, Marquee, Modal, MotionDiv, MotionSpan, NavTabs, NumberInput, PageLoader, Pagination, PasswordInput, Popover, PopoverClose, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, RegenerateConfirmModal, Row, SearchInput, SegmentedSelect, Select, SelectContent, SelectGroup, SelectItem, SelectTrigger, SelectValue, Separator, Sheet, ShinyButton, Skeleton, Slider, Spinner, Stack, StatusIndicator, Steps, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tag, 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, useFocusTrap, useModalBehavior, useYunUITheme } from './chunk-WJ56QWWZ.js';
3
3
  export { ThemeToggle, cn } from './chunk-TFZKMJGF.js';
4
4
  import './chunk-U2LNRVMI.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-EROX7LXU.js';
2
+ import { Button, Card, Badge, Avatar, AvatarImage, AvatarFallback, IconButton, Spinner } from './chunk-WJ56QWWZ.js';
3
3
  import { copyToClipboard } from './chunk-BO6CDGJS.js';
4
4
  export { Footer } from './chunk-BO6CDGJS.js';
5
5
  import { cn } from './chunk-TFZKMJGF.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuhuanowo/yunui",
3
- "version": "0.2.7",
3
+ "version": "0.2.9",
4
4
  "description": "A versioned React 19 + Tailwind v4 design system — tokens, primitives, patterns, and AI components, in one package.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
package/styles/yunui.css CHANGED
@@ -528,14 +528,16 @@ body {
528
528
  box-shadow: var(--shadow-md);
529
529
  }
530
530
 
531
- /* Lay a card out as a column so its footer can pin to the bottom. In a grid of
532
- equal-height cards (align-items: stretch, the default), every footer then lines
533
- up no matter how much body content each card has — fixes the "footer floats in
534
- a short card" problem once, here, instead of per call site. */
531
+ /* Lay a card out as a column so its footer can pin to the bottom. In a grid the
532
+ cards are already stretched to equal height (align-items: stretch, the default),
533
+ so every footer lines up no matter how much body content each card has — fixes
534
+ the "footer floats in a short card" problem once, here, instead of per call site.
535
+ NOTE: deliberately NO `height: 100%` — an explicit height overrides the grid's
536
+ stretch and, when the grid's own height is indefinite, collapses the card back
537
+ to content height (re-introducing the bug). Stretch alone is the robust path. */
535
538
  .card-col {
536
539
  display: flex;
537
540
  flex-direction: column;
538
- height: 100%;
539
541
  }
540
542
 
541
543
  /* Footer pinned to the bottom of a `.card-col`, with the standard hairline rule.