@bysages/react 0.4.2 → 0.4.4

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 (71) hide show
  1. package/dist/{ai-response-nhDOlELQ.mjs → ai-response-CjjjprMY.mjs} +10 -3
  2. package/dist/{chevron-a2nIZKN4.mjs → chevron-BA7kV9m7.mjs} +1 -1
  3. package/dist/components/accordion/index.mjs +1 -1
  4. package/dist/components/ai/index.mjs +1 -1
  5. package/dist/components/ai-attachments/index.mjs +1 -1
  6. package/dist/components/ai-prompt-input/index.mjs +1 -1
  7. package/dist/components/ai-reasoning/index.mjs +1 -1
  8. package/dist/components/ai-response/index.mjs +1 -1
  9. package/dist/components/ai-tool/index.mjs +1 -1
  10. package/dist/components/alert/index.mjs +1 -1
  11. package/dist/components/avatar/index.d.mts +12 -2
  12. package/dist/components/avatar/index.mjs +18 -3
  13. package/dist/components/back-top/index.mjs +1 -1
  14. package/dist/components/banner/index.d.mts +16 -2
  15. package/dist/components/banner/index.mjs +19 -3
  16. package/dist/components/breadcrumb/index.d.mts +15 -1
  17. package/dist/components/breadcrumb/index.mjs +20 -2
  18. package/dist/components/calendar/index.mjs +1 -1
  19. package/dist/components/carousel/index.mjs +1 -1
  20. package/dist/components/cascade-select/index.mjs +1 -1
  21. package/dist/components/checkbox/index.mjs +1 -1
  22. package/dist/components/checkbox-group/index.mjs +1 -1
  23. package/dist/components/clipboard/index.mjs +1 -1
  24. package/dist/components/collapsible/index.mjs +1 -1
  25. package/dist/components/color-picker/index.d.mts +2 -0
  26. package/dist/components/color-picker/index.mjs +36 -22
  27. package/dist/components/combobox/index.mjs +1 -1
  28. package/dist/components/date-picker/index.mjs +1 -1
  29. package/dist/components/dialog/index.mjs +1 -1
  30. package/dist/components/drawer/index.mjs +1 -1
  31. package/dist/components/dynamic-input/index.mjs +1 -1
  32. package/dist/components/editable/index.mjs +1 -1
  33. package/dist/components/file-upload/index.mjs +2 -6
  34. package/dist/components/float-button/index.d.mts +22 -1
  35. package/dist/components/float-button/index.mjs +28 -2
  36. package/dist/components/floating-panel/index.mjs +6 -1
  37. package/dist/components/image/index.mjs +1 -1
  38. package/dist/components/image-viewer/index.mjs +1 -1
  39. package/dist/components/json-tree-view/index.mjs +1 -1
  40. package/dist/components/listbox/index.mjs +1 -1
  41. package/dist/components/media-player/index.mjs +1 -1
  42. package/dist/components/menu/index.mjs +1 -1
  43. package/dist/components/number-input/index.mjs +1 -1
  44. package/dist/components/order-list/index.mjs +1 -1
  45. package/dist/components/pagination/index.mjs +1 -1
  46. package/dist/components/password-input/index.mjs +1 -1
  47. package/dist/components/popover/index.mjs +1 -1
  48. package/dist/components/rating-group/index.mjs +1 -1
  49. package/dist/components/result/index.mjs +2 -1
  50. package/dist/components/select/index.mjs +1 -1
  51. package/dist/components/signature-pad/index.mjs +1 -1
  52. package/dist/components/split-button/index.mjs +1 -1
  53. package/dist/components/swap/index.mjs +1 -1
  54. package/dist/components/table/index.mjs +2 -2
  55. package/dist/components/tag/index.mjs +14 -8
  56. package/dist/components/tags-input/index.mjs +1 -1
  57. package/dist/components/toast/index.mjs +15 -2
  58. package/dist/components/toggle-group/index.mjs +1 -1
  59. package/dist/components/transfer/index.mjs +1 -1
  60. package/dist/components/tree-select/index.mjs +1 -1
  61. package/dist/components/tree-view/index.mjs +1 -1
  62. package/dist/generative/index.d.mts +53 -0
  63. package/dist/generative/index.mjs +735 -0
  64. package/dist/icon-Cri0-7-x.mjs +38 -0
  65. package/dist/{image-viewer-B-hKFkEw.mjs → image-viewer-D4FuYrk6.mjs} +1 -1
  66. package/dist/index.d.mts +5 -5
  67. package/dist/index.mjs +4 -4
  68. package/dist/{media-player-DjVvo1_7.mjs → media-player-C0WcjVI-.mjs} +2 -2
  69. package/dist/{select-i9UZsQCU.mjs → select-D_soVdWK.mjs} +1 -1
  70. package/package.json +2 -2
  71. package/dist/icon-BALgGtNK.mjs +0 -18
@@ -0,0 +1,38 @@
1
+ import { getIcon } from "@bysages/core/icons";
2
+ import { jsx } from "react/jsx-runtime";
3
+ //#region src/internal/icon.tsx
4
+ /** Render a curated registry icon as a bare svg element — the components
5
+ * own default icons. No span shell: the part rules size the svg directly.
6
+ * Extra body appends after the icon's own body, for composed marks. */
7
+ function iconNode(name, attrs = {}, extraBody = "") {
8
+ const icon = getIcon(name);
9
+ if (!icon) throw new Error(`Unknown icon "${name}" in the curated core registry`);
10
+ return /* @__PURE__ */ jsx("svg", {
11
+ viewBox: `0 0 ${icon.width} ${icon.height}`,
12
+ "aria-hidden": "true",
13
+ ...attrs,
14
+ dangerouslySetInnerHTML: { __html: icon.body + extraBody }
15
+ });
16
+ }
17
+ /** The curated icon's drawing body, for composed marks that share one svg. */
18
+ function iconBody(name) {
19
+ const icon = getIcon(name);
20
+ if (!icon) throw new Error(`Unknown icon "${name}" in the curated core registry`);
21
+ return icon.body;
22
+ }
23
+ /** The same curated icon as an HTML string, for enhancements that write
24
+ * innerHTML rather than mount elements. */
25
+ function iconHtml(name, attrs = {}, extraBody = "") {
26
+ const icon = getIcon(name);
27
+ if (!icon) throw new Error(`Unknown icon "${name}" in the curated core registry`);
28
+ const attributes = {
29
+ width: String(icon.width),
30
+ height: String(icon.height),
31
+ viewBox: `0 0 ${icon.width} ${icon.height}`,
32
+ "aria-hidden": "true",
33
+ ...attrs
34
+ };
35
+ return `<svg${Object.entries(attributes).map(([key, value]) => ` ${key}="${value}"`).join("")}>${icon.body + extraBody}</svg>`;
36
+ }
37
+ //#endregion
38
+ export { iconHtml as n, iconNode as r, iconBody as t };
@@ -1,4 +1,4 @@
1
- import { t as iconNode } from "./icon-BALgGtNK.mjs";
1
+ import { r as iconNode } from "./icon-Cri0-7-x.mjs";
2
2
  import { t as useElementId } from "./id-C37UYLwJ.mjs";
3
3
  import { n as useComponentMessages } from "./messages-1jJWtaYU.mjs";
4
4
  import { Button } from "./components/button/index.mjs";
package/dist/index.d.mts CHANGED
@@ -18,13 +18,13 @@ import { AspectRatio, AspectRatioProps } from "./components/aspect-ratio/index.m
18
18
  import { Combobox } from "./components/combobox/index.mjs";
19
19
  import { AutoComplete, AutoCompleteProps } from "./components/autocomplete/index.mjs";
20
20
  import { AvatarGroup, AvatarGroupProps } from "./components/avatar-group/index.mjs";
21
- import { Avatar, AvatarProps, AvatarSize } from "./components/avatar/index.mjs";
21
+ import { Avatar, AvatarFacadeProps, AvatarProps, AvatarSize } from "./components/avatar/index.mjs";
22
22
  import { BackTop, BackTopProps } from "./components/back-top/index.mjs";
23
23
  import { Badge, BadgeProps } from "./components/badge/index.mjs";
24
- import { Banner, BannerRootProps, BannerStatus } from "./components/banner/index.mjs";
24
+ import { Banner, BannerFacadeProps, BannerRootProps, BannerStatus } from "./components/banner/index.mjs";
25
25
  import { Bento, BentoCell, BentoCellProps, BentoProps, BentoRoot } from "./components/bento/index.mjs";
26
26
  import { BlockUI, BlockUIProps } from "./components/block-ui/index.mjs";
27
- import { Breadcrumb } from "./components/breadcrumb/index.mjs";
27
+ import { Breadcrumb, BreadcrumbFacadeProps, BreadcrumbItem } from "./components/breadcrumb/index.mjs";
28
28
  import { Browser, BrowserBody, BrowserDots, BrowserPartProps, BrowserRoot, BrowserTitleBar, BrowserUrlBar } from "./components/browser/index.mjs";
29
29
  import { ButtonGroup, ButtonGroupProps } from "./components/button-group/index.mjs";
30
30
  import { Button, ButtonProps } from "./components/button/index.mjs";
@@ -60,7 +60,7 @@ import { Empty } from "./components/empty/index.mjs";
60
60
  import { Field } from "./components/field/index.mjs";
61
61
  import { Fieldset } from "./components/fieldset/index.mjs";
62
62
  import { FileUpload } from "./components/file-upload/index.mjs";
63
- import { FLOAT_BUTTON_CONTEXT, FloatButton, FloatButtonContextValue, FloatButtonPlacement, FloatButtonRootProps, FloatButtonSize } from "./components/float-button/index.mjs";
63
+ import { FLOAT_BUTTON_CONTEXT, FloatButton, FloatButtonAction, FloatButtonContextValue, FloatButtonFacadeProps, FloatButtonPlacement, FloatButtonRootProps, FloatButtonSize } from "./components/float-button/index.mjs";
64
64
  import { FloatingPanel, FloatingPanelFacadeProps } from "./components/floating-panel/index.mjs";
65
65
  import { FocusTrap, FocusTrapBaseProps, FocusTrapProps } from "./components/focus-trap/index.mjs";
66
66
  import { FieldApi, Form, FormApi, FormField, FormFieldProps, FormProps, useField, useForm } from "./components/form/index.mjs";
@@ -141,4 +141,4 @@ import { User, UserProps } from "./components/user/index.mjs";
141
141
  import { VirtualList, VirtualListProps } from "./components/virtual-list/index.mjs";
142
142
  import { Watermark, WatermarkProps } from "./components/watermark/index.mjs";
143
143
  export * from "@bysages/core";
144
- export { Accordion, AccordionFacadeProps, AccordionItem, Action, Action as AiAction, ActionProps, Affix, AffixProps, Ai, AiActions, Attachment as AiAttachment, Attachment, Attachments as AiAttachments, Attachments, AiContent, Message as AiMessage, Message, PromptInput as AiPromptInput, PromptInput, Reasoning as AiReasoning, Reasoning, Response as AiResponse, Response, Source as AiSource, Source, Sources as AiSources, Sources, Suggestion as AiSuggestion, Suggestion, Tool as AiTool, Tool, Alert, AlertProps, AlertStatus, AngleSlider, AngleSliderFacadeProps, AspectRatio, AspectRatioProps, AttachmentProps, Audio, AutoComplete, AutoCompleteProps, Avatar, AvatarGroup, AvatarGroupProps, AvatarProps, AvatarSize, BackTop, BackTopProps, Badge, BadgeProps, Banner, BannerRootProps, BannerStatus, Bento, BentoCell, BentoCellProps, BentoProps, BentoRoot, BlockUI, BlockUIProps, Breadcrumb, Browser, BrowserBody, BrowserDots, BrowserPartProps, BrowserRoot, BrowserTitleBar, BrowserUrlBar, Button, ButtonGroup, ButtonGroupProps, ButtonProps, Calendar, CalendarProps, Card, Carousel, CascadeSelect, CascadeSelectNode, CascadeSelectProps, Checkbox, CheckboxFacadeProps, CheckboxGroup, CheckboxGroupProps, CheckboxOption, Chip, ChipProps, ClientOnly, type ClientOnlyProps, Clipboard, Collapsible, CollapsibleFacadeProps, type CollectionItem, type CollectionOptions, ColorPicker, type ColumnDef, Combobox, Command, CommandEntry, CommandProps, Comment, CommentProps, ConfigContext, ConfigDensity, ConfigProvider, ConfigProviderProps, ConfigScene, Container, ContainerProps, type CreateToasterReturn, DataTable, DataTableProps, type DataUIPart, DataView, DataViewProps, DateInput, type DateInputFocusChangeDetails, type DateInputValueChangeDetails, DatePicker, type DatePickerFocusChangeDetails, type DatePickerOpenChangeDetails, type DatePickerValueChangeDetails, type DatePickerViewChangeDetails, type DatePickerVisibleRangeChangeDetails, DeferredContent, DeferredContentProps, Descriptions, DescriptionsItemData, DescriptionsRoot, DescriptionsRootProps, Dialog, DialogFacadeProps, type DialogOpenChangeDetails, Dock, DockItem, DockItemProps, DockProps, DockRoot, DownloadTrigger, type DownloadTriggerBaseProps, type DownloadTriggerProps, type DownloadableData, Drawer, DrawerFacadeProps, DynamicInput, DynamicInputProps, Editable, Ellipsis, EllipsisProps, Empty, FLOAT_BUTTON_CONTEXT, Field, type FieldApi, Fieldset, type FilePathTreeNode, type FileUIPart, FileUpload, type FlatTreeNode, FlexRender, FloatButton, FloatButtonContextValue, FloatButtonPlacement, FloatButtonRootProps, FloatButtonSize, FloatingPanel, FloatingPanelFacadeProps, FocusTrap, type FocusTrapBaseProps, type FocusTrapProps, Form, type FormApi, FormField, FormFieldProps, FormProps, Format, Frame, Grid, type GridCollection, type GridCollectionOptions, GridProps, Highlight, HoverCard, HoverCardFacadeProps, Icon, IconProps, Image, ImageCropper, ImageCropperFacadeProps, ImageProps, ImageViewer, ImageViewerProps, Input, InputGroup, InputGroupPartProps, InputProps, JsonTreeView, Kbd, KbdProps, Layout, LayoutContextValue, LayoutResizeHandlers, LayoutRootProps, LayoutSiderProps, LayoutSiderState, Link, LinkProps, List, type ListCollection, ListContentProps, ListRootProps, Listbox, Marquee, Masonry, MasonryProps, type MediaPlayerProps, type MediaSourceOption, type MediaTextTrackOption, MentionEntry, Mentions, MentionsProps, MentionsVessel, MentionsVesselProps, Menu, MenuFacadeProps, MenuItemOption, Menubar, MenubarEntry, MenubarGroup, MenubarProps, MessageProps, Meter, MeterRootProps, NativeSelect, type NativeSelectOption, type NativeSelectProps, NavigationMenu, NavigationMenuFacadeProps, NavigationMenuLinkOption, NumberInput, OrderList, OrderListProps, OrderOption, PageHeader, Pagination, PasswordInput, PinInput, Popconfirm, PopconfirmProps, Popover, PopoverFacadeProps, Presence, type PresenceBaseProps, type PresenceProps, PresenceProvider, Progress, ProgressGroup, ProgressGroupProps, ProgressSegment, PromptInputProps, QrCode, RadioGroup, RadioGroupFacadeProps, RadioGroupItem, RatingGroup, RatingGroupFacadeProps, ReasoningProps, type ReasoningUIPart, ResponseProps, Result, ResultIcon, ResultRoot, ResultRootProps, ScrollArea, SegmentGroup, SegmentGroupFacadeProps, SegmentGroupItem, Select, SelectFacadeProps, Separator, SeparatorProps, SignaturePad, Skeleton, SkeletonProps, Slider, SliderFacadeProps, type SortingState, type SourceDocumentUIPart, SourceProps, type SourceUrlUIPart, SourcesProps, Spinner, SpinnerProps, SplitButton, SplitButtonEntry, SplitButtonProps, Splitter, SplitterFacadeProps, SplitterItem, Spotlight, SpotlightProps, Stack, StackProps, Stat, StatDeltaProps, type StepStartUIPart, Steps, StepsFacadeProps, StepsItem, SuggestionProps, Swap, Switch, SwitchFacadeProps, Tabs, TabsFacadeProps, TabsItem, Tag, TagProps, TagsInput, Terminal, TerminalProps, type TextUIPart, Textarea, TextareaProps, Timeline, Timer, Toast, Toaster, Toc, TocFacadeProps, Toggle, ToggleFacadeProps, ToggleGroup, ToggleGroupFacadeProps, ToggleGroupItem, ToolProps, ToolStatus, type ToolUIPart, Toolbar, ToolbarProps, Tooltip, TooltipFacadeProps, Tour, TourFacadeProps, type TourInteractOutsideEvent, type TourPointerDownOutsideEvent, type TourStepDetails, Transfer, TransferItem, TransferProps, type TreeCollection, type TreeCollectionOptions, type TreeNode, TreeSelect, TreeSelectNode, TreeSelectProps, TreeView, Typography, type UIMessage, type UIMessagePart, type UseAsyncListProps, type UseAsyncListReturn, type UseDownloadProps, type UseDownloadReturn, type UseListCollectionProps, type UseListCollectionReturn, type UseListSelectionProps, type UseListSelectionReturn, type UseMentionsHandlers, type UseMentionsOptions, type UsePresenceContext, type UsePresenceProps, type UsePresenceReturn, User, UserProps, Video, VirtualList, VirtualListProps, Watermark, WatermarkProps, createColumnHelper, createFileTreeCollection, createGridCollection, createToaster, createTreeCollection, formatMediaTime, useAsyncList, useConfig, useDownload, useField, useForm, useListCollection, useListSelection, useMentions, usePresence, usePresenceContext, useTour };
144
+ export { Accordion, AccordionFacadeProps, AccordionItem, Action, Action as AiAction, ActionProps, Affix, AffixProps, Ai, AiActions, Attachment as AiAttachment, Attachment, Attachments as AiAttachments, Attachments, AiContent, Message as AiMessage, Message, PromptInput as AiPromptInput, PromptInput, Reasoning as AiReasoning, Reasoning, Response as AiResponse, Response, Source as AiSource, Source, Sources as AiSources, Sources, Suggestion as AiSuggestion, Suggestion, Tool as AiTool, Tool, Alert, AlertProps, AlertStatus, AngleSlider, AngleSliderFacadeProps, AspectRatio, AspectRatioProps, AttachmentProps, Audio, AutoComplete, AutoCompleteProps, Avatar, AvatarFacadeProps, AvatarGroup, AvatarGroupProps, AvatarProps, AvatarSize, BackTop, BackTopProps, Badge, BadgeProps, Banner, BannerFacadeProps, BannerRootProps, BannerStatus, Bento, BentoCell, BentoCellProps, BentoProps, BentoRoot, BlockUI, BlockUIProps, Breadcrumb, BreadcrumbFacadeProps, BreadcrumbItem, Browser, BrowserBody, BrowserDots, BrowserPartProps, BrowserRoot, BrowserTitleBar, BrowserUrlBar, Button, ButtonGroup, ButtonGroupProps, ButtonProps, Calendar, CalendarProps, Card, Carousel, CascadeSelect, CascadeSelectNode, CascadeSelectProps, Checkbox, CheckboxFacadeProps, CheckboxGroup, CheckboxGroupProps, CheckboxOption, Chip, ChipProps, ClientOnly, type ClientOnlyProps, Clipboard, Collapsible, CollapsibleFacadeProps, type CollectionItem, type CollectionOptions, ColorPicker, type ColumnDef, Combobox, Command, CommandEntry, CommandProps, Comment, CommentProps, ConfigContext, ConfigDensity, ConfigProvider, ConfigProviderProps, ConfigScene, Container, ContainerProps, type CreateToasterReturn, DataTable, DataTableProps, type DataUIPart, DataView, DataViewProps, DateInput, type DateInputFocusChangeDetails, type DateInputValueChangeDetails, DatePicker, type DatePickerFocusChangeDetails, type DatePickerOpenChangeDetails, type DatePickerValueChangeDetails, type DatePickerViewChangeDetails, type DatePickerVisibleRangeChangeDetails, DeferredContent, DeferredContentProps, Descriptions, DescriptionsItemData, DescriptionsRoot, DescriptionsRootProps, Dialog, DialogFacadeProps, type DialogOpenChangeDetails, Dock, DockItem, DockItemProps, DockProps, DockRoot, DownloadTrigger, type DownloadTriggerBaseProps, type DownloadTriggerProps, type DownloadableData, Drawer, DrawerFacadeProps, DynamicInput, DynamicInputProps, Editable, Ellipsis, EllipsisProps, Empty, FLOAT_BUTTON_CONTEXT, Field, type FieldApi, Fieldset, type FilePathTreeNode, type FileUIPart, FileUpload, type FlatTreeNode, FlexRender, FloatButton, FloatButtonAction, FloatButtonContextValue, FloatButtonFacadeProps, FloatButtonPlacement, FloatButtonRootProps, FloatButtonSize, FloatingPanel, FloatingPanelFacadeProps, FocusTrap, type FocusTrapBaseProps, type FocusTrapProps, Form, type FormApi, FormField, FormFieldProps, FormProps, Format, Frame, Grid, type GridCollection, type GridCollectionOptions, GridProps, Highlight, HoverCard, HoverCardFacadeProps, Icon, IconProps, Image, ImageCropper, ImageCropperFacadeProps, ImageProps, ImageViewer, ImageViewerProps, Input, InputGroup, InputGroupPartProps, InputProps, JsonTreeView, Kbd, KbdProps, Layout, LayoutContextValue, LayoutResizeHandlers, LayoutRootProps, LayoutSiderProps, LayoutSiderState, Link, LinkProps, List, type ListCollection, ListContentProps, ListRootProps, Listbox, Marquee, Masonry, MasonryProps, type MediaPlayerProps, type MediaSourceOption, type MediaTextTrackOption, MentionEntry, Mentions, MentionsProps, MentionsVessel, MentionsVesselProps, Menu, MenuFacadeProps, MenuItemOption, Menubar, MenubarEntry, MenubarGroup, MenubarProps, MessageProps, Meter, MeterRootProps, NativeSelect, type NativeSelectOption, type NativeSelectProps, NavigationMenu, NavigationMenuFacadeProps, NavigationMenuLinkOption, NumberInput, OrderList, OrderListProps, OrderOption, PageHeader, Pagination, PasswordInput, PinInput, Popconfirm, PopconfirmProps, Popover, PopoverFacadeProps, Presence, type PresenceBaseProps, type PresenceProps, PresenceProvider, Progress, ProgressGroup, ProgressGroupProps, ProgressSegment, PromptInputProps, QrCode, RadioGroup, RadioGroupFacadeProps, RadioGroupItem, RatingGroup, RatingGroupFacadeProps, ReasoningProps, type ReasoningUIPart, ResponseProps, Result, ResultIcon, ResultRoot, ResultRootProps, ScrollArea, SegmentGroup, SegmentGroupFacadeProps, SegmentGroupItem, Select, SelectFacadeProps, Separator, SeparatorProps, SignaturePad, Skeleton, SkeletonProps, Slider, SliderFacadeProps, type SortingState, type SourceDocumentUIPart, SourceProps, type SourceUrlUIPart, SourcesProps, Spinner, SpinnerProps, SplitButton, SplitButtonEntry, SplitButtonProps, Splitter, SplitterFacadeProps, SplitterItem, Spotlight, SpotlightProps, Stack, StackProps, Stat, StatDeltaProps, type StepStartUIPart, Steps, StepsFacadeProps, StepsItem, SuggestionProps, Swap, Switch, SwitchFacadeProps, Tabs, TabsFacadeProps, TabsItem, Tag, TagProps, TagsInput, Terminal, TerminalProps, type TextUIPart, Textarea, TextareaProps, Timeline, Timer, Toast, Toaster, Toc, TocFacadeProps, Toggle, ToggleFacadeProps, ToggleGroup, ToggleGroupFacadeProps, ToggleGroupItem, ToolProps, ToolStatus, type ToolUIPart, Toolbar, ToolbarProps, Tooltip, TooltipFacadeProps, Tour, TourFacadeProps, type TourInteractOutsideEvent, type TourPointerDownOutsideEvent, type TourStepDetails, Transfer, TransferItem, TransferProps, type TreeCollection, type TreeCollectionOptions, type TreeNode, TreeSelect, TreeSelectNode, TreeSelectProps, TreeView, Typography, type UIMessage, type UIMessagePart, type UseAsyncListProps, type UseAsyncListReturn, type UseDownloadProps, type UseDownloadReturn, type UseListCollectionProps, type UseListCollectionReturn, type UseListSelectionProps, type UseListSelectionReturn, type UseMentionsHandlers, type UseMentionsOptions, type UsePresenceContext, type UsePresenceProps, type UsePresenceReturn, User, UserProps, Video, VirtualList, VirtualListProps, Watermark, WatermarkProps, createColumnHelper, createFileTreeCollection, createGridCollection, createToaster, createTreeCollection, formatMediaTime, useAsyncList, useConfig, useDownload, useField, useForm, useListCollection, useListSelection, useMentions, usePresence, usePresenceContext, useTour };
package/dist/index.mjs CHANGED
@@ -10,7 +10,7 @@ import { n as MentionsVessel, r as useMentions, t as Mentions } from "./mentions
10
10
  import { AiPromptInput as PromptInput } from "./components/ai-prompt-input/index.mjs";
11
11
  import { Collapsible } from "./components/collapsible/index.mjs";
12
12
  import { AiReasoning as Reasoning } from "./components/ai-reasoning/index.mjs";
13
- import { t as Response } from "./ai-response-nhDOlELQ.mjs";
13
+ import { t as Response } from "./ai-response-CjjjprMY.mjs";
14
14
  import { AiSource as Source, AiSources as Sources } from "./components/ai-source/index.mjs";
15
15
  import { AiSuggestion as Suggestion } from "./components/ai-suggestion/index.mjs";
16
16
  import { AiTool as Tool } from "./components/ai-tool/index.mjs";
@@ -75,7 +75,7 @@ import { HoverCard } from "./components/hover-card/index.mjs";
75
75
  import { Icon } from "./components/icon/index.mjs";
76
76
  import { Image } from "./components/image/index.mjs";
77
77
  import { ImageCropper } from "./components/image-cropper/index.mjs";
78
- import { t as ImageViewer } from "./image-viewer-B-hKFkEw.mjs";
78
+ import { t as ImageViewer } from "./image-viewer-D4FuYrk6.mjs";
79
79
  import { InputGroup } from "./components/input-group/index.mjs";
80
80
  import { JsonTreeView } from "./components/json-tree-view/index.mjs";
81
81
  import { Kbd } from "./components/kbd/index.mjs";
@@ -104,7 +104,7 @@ import { RatingGroup } from "./components/rating-group/index.mjs";
104
104
  import { Result, ResultIcon, ResultRoot } from "./components/result/index.mjs";
105
105
  import { ScrollArea } from "./components/scroll-area/index.mjs";
106
106
  import { SegmentGroup } from "./components/segment-group/index.mjs";
107
- import { n as NativeSelect, t as Select } from "./select-i9UZsQCU.mjs";
107
+ import { n as NativeSelect, t as Select } from "./select-D_soVdWK.mjs";
108
108
  import { Separator } from "./components/separator/index.mjs";
109
109
  import { SignaturePad } from "./components/signature-pad/index.mjs";
110
110
  import { Skeleton } from "./components/skeleton/index.mjs";
@@ -139,6 +139,6 @@ import { Typography } from "./components/typography/index.mjs";
139
139
  import { User } from "./components/user/index.mjs";
140
140
  import { VirtualList } from "./components/virtual-list/index.mjs";
141
141
  import { Watermark } from "./components/watermark/index.mjs";
142
- import { n as Video, r as formatMediaTime, t as Audio } from "./media-player-DjVvo1_7.mjs";
142
+ import { n as Video, r as formatMediaTime, t as Audio } from "./media-player-C0WcjVI-.mjs";
143
143
  export * from "@bysages/core";
144
144
  export { Accordion, Action, Action as AiAction, Affix, Ai, AiActions, Attachment as AiAttachment, Attachment, Attachments as AiAttachments, Attachments, AiContent, Message as AiMessage, Message, PromptInput as AiPromptInput, PromptInput, Reasoning as AiReasoning, Reasoning, Response as AiResponse, Response, Source as AiSource, Source, Sources as AiSources, Sources, Suggestion as AiSuggestion, Suggestion, Tool as AiTool, Tool, Alert, AngleSlider, AspectRatio, Audio, AutoComplete, Avatar, AvatarGroup, BackTop, Badge, Banner, Bento, BentoCell, BentoRoot, BlockUI, Breadcrumb, Browser, BrowserBody, BrowserDots, BrowserRoot, BrowserTitleBar, BrowserUrlBar, Button, ButtonGroup, Calendar, Card, Carousel, CascadeSelect, Checkbox, CheckboxGroup, Chip, ClientOnly, Clipboard, Collapsible, ColorPicker, Combobox, Command, Comment, ConfigProvider, Container, DataTable, DataView, DateInput, DatePicker, DeferredContent, Descriptions, DescriptionsRoot, Dialog, Dock, DockItem, DockRoot, DownloadTrigger, Drawer, DynamicInput, Editable, Ellipsis, Empty, FLOAT_BUTTON_CONTEXT, Field, Fieldset, FileUpload, FlexRender, FloatButton, FloatingPanel, FocusTrap, Form, FormField, Format, Frame, Grid, Highlight, HoverCard, Icon, Image, ImageCropper, ImageViewer, Input, InputGroup, JsonTreeView, Kbd, Layout, Link, List, Listbox, Marquee, Masonry, Mentions, MentionsVessel, Menu, Menubar, Meter, NativeSelect, NavigationMenu, NumberInput, OrderList, PageHeader, Pagination, PasswordInput, PinInput, Popconfirm, Popover, Presence, PresenceProvider, Progress, ProgressGroup, QrCode, RadioGroup, RatingGroup, Result, ResultIcon, ResultRoot, ScrollArea, SegmentGroup, Select, Separator, SignaturePad, Skeleton, Slider, Spinner, SplitButton, Splitter, Spotlight, Stack, Stat, Steps, Swap, Switch, Tabs, Tag, TagsInput, Terminal, Textarea, Timeline, Timer, Toast, Toaster, Toc, Toggle, ToggleGroup, Toolbar, Tooltip, Tour, Transfer, TreeSelect, TreeView, Typography, User, Video, VirtualList, Watermark, createColumnHelper, createFileTreeCollection, createGridCollection, createToaster, createTreeCollection, formatMediaTime, useAsyncList, useConfig, useDownload, useField, useForm, useListCollection, useListSelection, useMentions, usePresence, usePresenceContext, useTour };
@@ -1,5 +1,5 @@
1
- import { t as iconNode } from "./icon-BALgGtNK.mjs";
2
- import { t as Select } from "./select-i9UZsQCU.mjs";
1
+ import { r as iconNode } from "./icon-Cri0-7-x.mjs";
2
+ import { t as Select } from "./select-D_soVdWK.mjs";
3
3
  import { injectComponentStyle } from "@bysages/core/styling";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  import { createContext, useCallback, useContext, useEffect, useRef, useState } from "react";
@@ -1,4 +1,4 @@
1
- import { t as iconNode } from "./icon-BALgGtNK.mjs";
1
+ import { r as iconNode } from "./icon-Cri0-7-x.mjs";
2
2
  import { t as useElementId } from "./id-C37UYLwJ.mjs";
3
3
  import { injectComponentStyle } from "@bysages/core/styling";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bysages/react",
3
- "version": "0.4.2",
3
+ "version": "0.4.4",
4
4
  "description": "By Sages Elements components for React — styled by the paper-and-ink design tokens",
5
5
  "keywords": [
6
6
  "accessible",
@@ -53,7 +53,7 @@
53
53
  "@tanstack/react-virtual": "3.14.14",
54
54
  "@zag-js/cascade-select": "1.45.0",
55
55
  "@zag-js/react": "1.45.0",
56
- "@bysages/core": "0.4.2"
56
+ "@bysages/core": "0.4.4"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@json-render/core": "0.21.0",
@@ -1,18 +0,0 @@
1
- import { getIcon } from "@bysages/core/icons";
2
- import { jsx } from "react/jsx-runtime";
3
- //#region src/internal/icon.tsx
4
- /** Render a curated registry icon as a bare svg element — the components
5
- * own default icons. No span shell: the part rules size the svg directly.
6
- * Extra body appends after the icon's own body, for composed marks. */
7
- function iconNode(name, attrs = {}, extraBody = "") {
8
- const icon = getIcon(name);
9
- if (!icon) throw new Error(`Unknown icon "${name}" in the curated core registry`);
10
- return /* @__PURE__ */ jsx("svg", {
11
- viewBox: `0 0 ${icon.width} ${icon.height}`,
12
- "aria-hidden": "true",
13
- ...attrs,
14
- dangerouslySetInnerHTML: { __html: icon.body + extraBody }
15
- });
16
- }
17
- //#endregion
18
- export { iconNode as t };