@bysages/svelte 0.4.2 → 0.4.3

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 (143) hide show
  1. package/dist/{Accordion-DF1vzXDg.mjs → Accordion-DUUod-V6.mjs} +1 -1
  2. package/dist/{Calendar-CWaU4MGJ.mjs → Calendar-MQdoAnJK.mjs} +1 -1
  3. package/dist/{Carousel-BWWwu5Ma.mjs → Carousel-DNMQMvm6.mjs} +1 -1
  4. package/dist/{Checkbox-BZb8IR25.mjs → Checkbox-z4EXYH9a.mjs} +1 -1
  5. package/dist/{ChevronIcon-C-MKLsfA.mjs → ChevronIcon-hvMd0d_i.mjs} +1 -1
  6. package/dist/{Clipboard-DBgbIGjV.mjs → Clipboard-Bdui0U6I.mjs} +1 -1
  7. package/dist/{Collapsible-CZ8qFLzP.mjs → Collapsible-CDwjsDwH.mjs} +1 -1
  8. package/dist/{ColorPicker-D6PGvfQf.mjs → ColorPicker-BBc8-TIN.mjs} +1 -1
  9. package/dist/{Combobox-Ba2u_SqJ.mjs → Combobox-8BSw_3Ab.mjs} +1 -1
  10. package/dist/{DatePicker-Dm81GmmF.mjs → DatePicker-DJDUqjiE.mjs} +1 -1
  11. package/dist/{Dialog-BbDr030S.mjs → Dialog-91oyw8Pi.mjs} +1 -1
  12. package/dist/{Drawer-C1r1wz3V.mjs → Drawer-DkFAYikg.mjs} +1 -1
  13. package/dist/{Editable-hjSbhWMK.mjs → Editable-lC-REFTP.mjs} +1 -1
  14. package/dist/{FileUpload-C6JBpvet.mjs → FileUpload-7LgqVD7x.mjs} +1 -1
  15. package/dist/{FloatingPanel-2z-iuVPc.mjs → FloatingPanel-DJG3Drow.mjs} +1 -1
  16. package/dist/{ImageViewer-8tDJvkkb.mjs → ImageViewer-s41DessS.mjs} +1 -1
  17. package/dist/{InternalIcon-CbfKieOs.mjs → InternalIcon-Dr81WIG1.mjs} +1 -1
  18. package/dist/{JsonTreeViewTree-DkusAr3j.mjs → JsonTreeViewTree-DkD987Zf.mjs} +1 -1
  19. package/dist/{Listbox-gAL5Q59b.mjs → Listbox-C-u5WxHv.mjs} +1 -1
  20. package/dist/{Menu-BiwHDpdz.mjs → Menu-DA7CeDYL.mjs} +1 -1
  21. package/dist/{NumberInput-B2gPYuJX.mjs → NumberInput-BDbTmUgg.mjs} +1 -1
  22. package/dist/{Pagination-f8XiX-Cs.mjs → Pagination-BmFNV_Vu.mjs} +1 -1
  23. package/dist/{PasswordInput-BhlJF3Jd.mjs → PasswordInput-Cas4e19J.mjs} +1 -1
  24. package/dist/{Popover-Dl-QAFG_.mjs → Popover-BQeFwet4.mjs} +1 -1
  25. package/dist/{RatingGroup-DTVzY6BA.mjs → RatingGroup-DSzJ56Yw.mjs} +1 -1
  26. package/dist/{Select-5AJHEmMi.mjs → Select-D9XgciuN.mjs} +1 -1
  27. package/dist/{Swap-CfgxrCzJ.mjs → Swap-CkhKz3Ue.mjs} +1 -1
  28. package/dist/{TagsInput-DVuAOpBt.mjs → TagsInput-BPrJLeuZ.mjs} +1 -1
  29. package/dist/{Toast-BHSRo7N7.mjs → Toast-mxbydOO8.mjs} +1 -1
  30. package/dist/{ToggleGroup-DgBoC0hi.mjs → ToggleGroup-BfW1gjVm.mjs} +1 -1
  31. package/dist/{TreeViewNodeCheckbox-DGfG5yIl.mjs → TreeViewNodeCheckbox-t2i6iaiq.mjs} +1 -1
  32. package/dist/{ai-attachments-nFUAAXoM.mjs → ai-attachments-ksKxDHG2.mjs} +1 -1
  33. package/dist/{ai-prompt-input-z0j3gpgu.mjs → ai-prompt-input-CMVRbC0T.mjs} +2 -2
  34. package/dist/{ai-reasoning-C2Ffu52i.mjs → ai-reasoning-DA6bWwlo.mjs} +1 -1
  35. package/dist/{ai-response-Bczv0TaC.mjs → ai-response-DrsGpVej.mjs} +1 -1
  36. package/dist/{ai-tool-DuhNqTWQ.mjs → ai-tool-Dew8XiYk.mjs} +1 -1
  37. package/dist/{alert-Cji6_TKm.mjs → alert-pTPh9zID.mjs} +1 -1
  38. package/dist/{back-top-WBPZ45WG.mjs → back-top-FpXkOE3N.mjs} +1 -1
  39. package/dist/{banner-vdEHwWWw.mjs → banner-CXrEuEc1.mjs} +1 -1
  40. package/dist/{cascade-select-CWjvNB4G.mjs → cascade-select-BhdGSRCa.mjs} +1 -1
  41. package/dist/{checkbox-group-JVSnrwhR.mjs → checkbox-group-DESN0Y8Y.mjs} +1 -1
  42. package/dist/components/accordion/index.d.mts +1 -1
  43. package/dist/components/accordion/index.mjs +1 -1
  44. package/dist/components/ai/index.mjs +4 -4
  45. package/dist/components/ai-attachments/index.mjs +1 -1
  46. package/dist/components/ai-prompt-input/index.mjs +1 -1
  47. package/dist/components/ai-reasoning/index.mjs +1 -1
  48. package/dist/components/ai-response/index.mjs +1 -1
  49. package/dist/components/ai-tool/index.mjs +1 -1
  50. package/dist/components/alert/index.mjs +1 -1
  51. package/dist/components/back-top/index.mjs +1 -1
  52. package/dist/components/banner/index.mjs +1 -1
  53. package/dist/components/calendar/index.d.mts +1 -1
  54. package/dist/components/calendar/index.mjs +1 -1
  55. package/dist/components/carousel/index.d.mts +1 -1
  56. package/dist/components/carousel/index.mjs +1 -1
  57. package/dist/components/cascade-select/index.mjs +1 -1
  58. package/dist/components/checkbox/index.d.mts +1 -1
  59. package/dist/components/checkbox/index.mjs +1 -1
  60. package/dist/components/checkbox-group/index.mjs +1 -1
  61. package/dist/components/clipboard/index.d.mts +1 -1
  62. package/dist/components/clipboard/index.mjs +1 -1
  63. package/dist/components/collapsible/index.d.mts +1 -1
  64. package/dist/components/collapsible/index.mjs +1 -1
  65. package/dist/components/color-picker/index.d.mts +1 -1
  66. package/dist/components/color-picker/index.mjs +1 -1
  67. package/dist/components/combobox/index.d.mts +1 -1
  68. package/dist/components/combobox/index.mjs +1 -1
  69. package/dist/components/date-picker/index.d.mts +1 -1
  70. package/dist/components/date-picker/index.mjs +1 -1
  71. package/dist/components/dialog/index.d.mts +1 -1
  72. package/dist/components/dialog/index.mjs +1 -1
  73. package/dist/components/drawer/index.d.mts +1 -1
  74. package/dist/components/drawer/index.mjs +1 -1
  75. package/dist/components/dynamic-input/index.mjs +1 -1
  76. package/dist/components/editable/index.d.mts +1 -1
  77. package/dist/components/editable/index.mjs +1 -1
  78. package/dist/components/file-upload/index.d.mts +1 -1
  79. package/dist/components/file-upload/index.mjs +1 -1
  80. package/dist/components/floating-panel/index.d.mts +1 -1
  81. package/dist/components/floating-panel/index.mjs +1 -1
  82. package/dist/components/image/index.mjs +1 -1
  83. package/dist/components/image-viewer/index.d.mts +1 -1
  84. package/dist/components/image-viewer/index.mjs +1 -1
  85. package/dist/components/json-tree-view/index.d.mts +1 -1
  86. package/dist/components/json-tree-view/index.mjs +1 -1
  87. package/dist/components/listbox/index.d.mts +1 -1
  88. package/dist/components/listbox/index.mjs +1 -1
  89. package/dist/components/media-player/index.mjs +1 -1
  90. package/dist/components/menu/index.d.mts +1 -1
  91. package/dist/components/menu/index.mjs +1 -1
  92. package/dist/components/number-input/index.d.mts +1 -1
  93. package/dist/components/number-input/index.mjs +1 -1
  94. package/dist/components/order-list/index.mjs +1 -1
  95. package/dist/components/pagination/index.d.mts +1 -1
  96. package/dist/components/pagination/index.mjs +1 -1
  97. package/dist/components/password-input/index.d.mts +1 -1
  98. package/dist/components/password-input/index.mjs +1 -1
  99. package/dist/components/popover/index.d.mts +1 -1
  100. package/dist/components/popover/index.mjs +1 -1
  101. package/dist/components/rating-group/index.d.mts +1 -1
  102. package/dist/components/rating-group/index.mjs +1 -1
  103. package/dist/components/result/index.mjs +1 -1
  104. package/dist/components/select/index.d.mts +1 -1
  105. package/dist/components/select/index.mjs +1 -1
  106. package/dist/components/split-button/index.mjs +1 -1
  107. package/dist/components/swap/index.d.mts +1 -1
  108. package/dist/components/swap/index.mjs +1 -1
  109. package/dist/components/table/index.mjs +1 -1
  110. package/dist/components/tag/index.mjs +1 -1
  111. package/dist/components/tags-input/index.d.mts +1 -1
  112. package/dist/components/tags-input/index.mjs +1 -1
  113. package/dist/components/toast/index.d.mts +1 -1
  114. package/dist/components/toast/index.mjs +1 -1
  115. package/dist/components/toggle-group/index.d.mts +1 -1
  116. package/dist/components/toggle-group/index.mjs +1 -1
  117. package/dist/components/transfer/index.mjs +1 -1
  118. package/dist/components/tree-select/index.mjs +1 -1
  119. package/dist/components/tree-view/index.d.mts +1 -1
  120. package/dist/components/tree-view/index.mjs +1 -1
  121. package/dist/{dynamic-input-BDF0xRDd.mjs → dynamic-input-BpzL0Fe-.mjs} +1 -1
  122. package/dist/generative/index.d.mts +47 -0
  123. package/dist/generative/index.mjs +1899 -0
  124. package/dist/{icon-C6ohnKuW.mjs → icon-CKL_BxrZ.mjs} +7 -1
  125. package/dist/{image-BCYdfhgr.mjs → image-BpWDMvNm.mjs} +1 -1
  126. package/dist/{index-C4FVU8_3.d.mts → index-BudqX93u.d.mts} +1 -1
  127. package/dist/{index-DTYHFIbh.d.mts → index-BwUGTQag.d.mts} +1 -1
  128. package/dist/{index-BEZCr62O.d.mts → index-CGk6TYb-.d.mts} +1 -1
  129. package/dist/{index-CFxAJ3UH.d.mts → index-DyAQSYqR.d.mts} +1 -1
  130. package/dist/{index-BDEuWWx7.d.mts → index-FmT_lwS7.d.mts} +1 -1
  131. package/dist/{index-M2f9hz3z.d.mts → index-njppQnYT.d.mts} +1 -1
  132. package/dist/index.d.mts +6 -6
  133. package/dist/index.mjs +21 -21
  134. package/dist/{media-player-085Q_gL8.mjs → media-player-DEXKLoUX.mjs} +2 -2
  135. package/dist/{order-list-DtAaQ6VS.mjs → order-list-C8O2NdGR.mjs} +1 -1
  136. package/dist/{result-CwLNxqk-.mjs → result-BRbQTUeW.mjs} +2 -1
  137. package/dist/{select-CqOZTmfR.mjs → select-CVMOvviD.mjs} +2 -2
  138. package/dist/{split-button-18nv8J3q.mjs → split-button-BEgDY4EZ.mjs} +1 -1
  139. package/dist/{table-LfPEezF-.mjs → table-HzpYIOst.mjs} +3 -3
  140. package/dist/{tag-S2DR-cEP.mjs → tag-CXAD4ox2.mjs} +47 -28
  141. package/dist/{transfer-kGHh9bJH.mjs → transfer-CnfoiJ8O.mjs} +1 -1
  142. package/dist/{tree-select-BRQjFrHA.mjs → tree-select-CR2-Jskd.mjs} +1 -1
  143. package/package.json +2 -2
@@ -15,5 +15,11 @@ function iconHtml(name, attrs = {}, extraBody = "") {
15
15
  };
16
16
  return `<svg${Object.entries(attributes).map(([key, value]) => ` ${key}="${value}"`).join("")}>${icon.body + extraBody}</svg>`;
17
17
  }
18
+ /** The curated icon's drawing body, for composed marks that share one svg. */
19
+ function iconBody(name) {
20
+ const icon = getIcon(name);
21
+ if (!icon) throw new Error(`Unknown icon "${name}" in the curated core registry`);
22
+ return icon.body;
23
+ }
18
24
  //#endregion
19
- export { iconHtml as t };
25
+ export { iconHtml as n, iconBody as t };
@@ -1,5 +1,5 @@
1
1
  import { n as withSelfRoot } from "./family-CzLaku1F.mjs";
2
- import { t as InternalIcon } from "./InternalIcon-CbfKieOs.mjs";
2
+ import { t as InternalIcon } from "./InternalIcon-Dr81WIG1.mjs";
3
3
  import "svelte/internal/disclose-version";
4
4
  import * as $ from "svelte/internal/client";
5
5
  import { injectComponentStyle } from "@bysages/core/styling";
@@ -1,4 +1,4 @@
1
- import { n as SelectRoot, t as Select$2 } from "./Select-5AJHEmMi.mjs";
1
+ import { n as SelectRoot, t as Select$2 } from "./Select-D9XgciuN.mjs";
2
2
  import { Select } from "@ark-ui/svelte/select";
3
3
  import { HTMLAttributes } from "svelte/elements";
4
4
  //#region src/components/select/native-props.d.ts
@@ -1,4 +1,4 @@
1
- import { n as ListboxRoot, t as Listbox$2 } from "./Listbox-gAL5Q59b.mjs";
1
+ import { n as ListboxRoot, t as Listbox$2 } from "./Listbox-C-u5WxHv.mjs";
2
2
  import { CollectionItem, Listbox, ListboxRootProps } from "@ark-ui/svelte/listbox";
3
3
  //#region src/components/listbox/props.d.ts
4
4
  type ListboxRootProps$1 = ListboxRootProps<CollectionItem> & {
@@ -1,4 +1,4 @@
1
- import { t as Calendar$1 } from "./Calendar-CWaU4MGJ.mjs";
1
+ import { t as Calendar$1 } from "./Calendar-MQdoAnJK.mjs";
2
2
  import { Snippet } from "svelte";
3
3
  import { DatePicker, DatePickerRootProps } from "@ark-ui/svelte/date-picker";
4
4
  import { HTMLAttributes } from "svelte/elements";
@@ -1,4 +1,4 @@
1
- import { i as TreeViewBranchIndicator, n as TreeView$2, r as TreeViewRoot, t as TreeViewNodeCheckbox } from "./TreeViewNodeCheckbox-DGfG5yIl.mjs";
1
+ import { i as TreeViewBranchIndicator, n as TreeView$2, r as TreeViewRoot, t as TreeViewNodeCheckbox } from "./TreeViewNodeCheckbox-t2i6iaiq.mjs";
2
2
  import { TreeNode } from "@ark-ui/svelte/collection";
3
3
  import { TreeView, TreeViewRootProps } from "@ark-ui/svelte/tree-view";
4
4
  //#region src/components/tree-view/props.d.ts
@@ -1,4 +1,4 @@
1
- import { n as ClipboardRoot, t as Clipboard$2 } from "./Clipboard-DBgbIGjV.mjs";
1
+ import { n as ClipboardRoot, t as Clipboard$2 } from "./Clipboard-Bdui0U6I.mjs";
2
2
  import { Clipboard, ClipboardRootProps } from "@ark-ui/svelte/clipboard";
3
3
  //#region src/components/clipboard/props.d.ts
4
4
  type ClipboardRootProps$1 = ClipboardRootProps & {
@@ -1,4 +1,4 @@
1
- import { n as ImagePreview, t as ImageViewer$1 } from "./ImageViewer-8tDJvkkb.mjs";
1
+ import { n as ImagePreview, t as ImageViewer$1 } from "./ImageViewer-s41DessS.mjs";
2
2
  import { Dialog } from "./components/dialog/index.mjs";
3
3
  import { Snippet } from "svelte";
4
4
  import { HTMLAttributes } from "svelte/elements";
package/dist/index.d.mts CHANGED
@@ -38,7 +38,7 @@ import { a as BreadcrumbListProps, i as BreadcrumbLinkProps, n as BreadcrumbCurr
38
38
  import { Browser } from "./components/browser/index.mjs";
39
39
  import { n as ButtonGroupProps, t as ButtonGroup } from "./index-evrdvWRI.mjs";
40
40
  import { n as ButtonProps, t as Button } from "./index-DCpx_Rui.mjs";
41
- import { n as CalendarProps, t as Calendar } from "./index-BEZCr62O.mjs";
41
+ import { n as CalendarProps, t as Calendar } from "./index-CGk6TYb-.mjs";
42
42
  import { a as CardTitleProps, i as CardProps, n as CardDescriptionProps, r as CardPartProps, t as Card } from "./index-BHlsL8ta.mjs";
43
43
  import { Carousel } from "./components/carousel/index.mjs";
44
44
  import { n as CascadeSelectNode, r as CascadeSelectProps, t as CascadeSelect } from "./index-LXovbafa.mjs";
@@ -46,7 +46,7 @@ import { n as CheckboxGroupProps, r as CheckboxOption, t as CheckboxGroup } from
46
46
  import { Checkbox } from "./components/checkbox/index.mjs";
47
47
  import { n as ChipProps, t as Chip } from "./index-fIWQxtE9.mjs";
48
48
  import { ClientOnly, ClientOnlyProps } from "./components/client-only/index.mjs";
49
- import { n as ClipboardRootProps, t as Clipboard } from "./index-BDEuWWx7.mjs";
49
+ import { n as ClipboardRootProps, t as Clipboard } from "./index-FmT_lwS7.mjs";
50
50
  import { Collapsible } from "./components/collapsible/index.mjs";
51
51
  import { CollectionItem, CollectionOptions, FilePathTreeNode, FlatTreeNode, GridCollection, GridCollectionOptions, ListCollection, TreeCollection, TreeCollectionOptions, TreeNode, UseAsyncListProps, UseAsyncListReturn, UseListCollectionProps, UseListCollectionReturn, UseListSelectionProps, UseListSelectionReturn, createFileTreeCollection, createGridCollection, createListCollection, createTreeCollection, useAsyncList, useListCollection, useListSelection } from "./components/collection/index.mjs";
52
52
  import { ColorPicker } from "./components/color-picker/index.mjs";
@@ -82,7 +82,7 @@ import { Highlight } from "./components/highlight/index.mjs";
82
82
  import { HoverCard } from "./components/hover-card/index.mjs";
83
83
  import { n as IconProps, t as Icon } from "./index-DEWaAoNb.mjs";
84
84
  import { ImageCropper } from "./components/image-cropper/index.mjs";
85
- import { n as ImageViewerPreviewProps, r as ImageViewerProps, t as ImageViewer } from "./index-M2f9hz3z.mjs";
85
+ import { n as ImageViewerPreviewProps, r as ImageViewerProps, t as ImageViewer } from "./index-njppQnYT.mjs";
86
86
  import { n as ImageProps, t as Image } from "./index-C-sa4baY.mjs";
87
87
  import { n as InputGroupAddonProps, r as InputGroupProps, t as InputGroup } from "./index-DKfQGayE.mjs";
88
88
  import { n as InputProps, t as Input } from "./index-Dq4bm9bV.mjs";
@@ -91,7 +91,7 @@ import { n as KbdProps, t as Kbd } from "./index-C6UrUbj8.mjs";
91
91
  import { a as LayoutSiderProps, i as LayoutRegionProps, n as LayoutContext, r as LayoutProps, t as Layout } from "./index-BahdqXg4.mjs";
92
92
  import { n as LinkProps, t as Link } from "./index-CvDp7tiS.mjs";
93
93
  import { a as ListLeadingProps, i as ListItemProps, n as ListActionsProps, o as ListProps, r as ListContentProps, t as List } from "./index-C0aalhwd.mjs";
94
- import { n as ListboxRootProps, t as Listbox } from "./index-DTYHFIbh.mjs";
94
+ import { n as ListboxRootProps, t as Listbox } from "./index-BwUGTQag.mjs";
95
95
  import { Marquee } from "./components/marquee/index.mjs";
96
96
  import { n as MasonryProps, t as Masonry } from "./index-DC6AI8rV.mjs";
97
97
  import { a as MediaTextTrackOption, i as MediaSourceOption, n as Video, r as MediaPlayerProps, t as Audio } from "./index-9GiGGnGa.mjs";
@@ -116,7 +116,7 @@ import { RatingGroup } from "./components/rating-group/index.mjs";
116
116
  import { Result } from "./components/result/index.mjs";
117
117
  import { ScrollArea } from "./components/scroll-area/index.mjs";
118
118
  import { SegmentGroup } from "./components/segment-group/index.mjs";
119
- import { i as NativeSelectProps, n as Select, r as NativeSelectOption, t as NativeSelect } from "./index-C4FVU8_3.mjs";
119
+ import { i as NativeSelectProps, n as Select, r as NativeSelectOption, t as NativeSelect } from "./index-BudqX93u.mjs";
120
120
  import { n as SeparatorProps, t as Separator } from "./index-D61_Lx9o.mjs";
121
121
  import { SignaturePad } from "./components/signature-pad/index.mjs";
122
122
  import { n as SkeletonProps, t as Skeleton } from "./index-C0b8N_Aa.mjs";
@@ -147,7 +147,7 @@ import { Tooltip } from "./components/tooltip/index.mjs";
147
147
  import { Tour, TourInteractOutsideEvent, TourPointerDownOutsideEvent, TourStepDetails } from "./components/tour/index.mjs";
148
148
  import { n as TransferItem, r as TransferProps, t as Transfer } from "./index-DWlpILHb.mjs";
149
149
  import { n as TreeSelectNode, r as TreeSelectProps, t as TreeSelect } from "./index-DAnDXxRZ.mjs";
150
- import { n as TreeViewRootProps, t as TreeView } from "./index-CFxAJ3UH.mjs";
150
+ import { n as TreeViewRootProps, t as TreeView } from "./index-DyAQSYqR.mjs";
151
151
  import { n as TypographyPartProps, t as Typography } from "./index-CZ0P3C6E.mjs";
152
152
  import { n as UserProps, t as User } from "./index-CYtinraa.mjs";
153
153
  import { n as VirtualListProps, t as VirtualList } from "./index-BKZC0MtK.mjs";
package/dist/index.mjs CHANGED
@@ -7,34 +7,34 @@ import { Field } from "./components/field/index.mjs";
7
7
  import { n as MentionsVessel, t as Mentions } from "./mentions-fRKivTvN.mjs";
8
8
  import { t as useMentions } from "./use-mentions-DeF_38di.mjs";
9
9
  import { n as useConfig } from "./context-Da-QMQRq.mjs";
10
- import { t as AiPromptInput } from "./ai-prompt-input-z0j3gpgu.mjs";
10
+ import { t as AiPromptInput } from "./ai-prompt-input-CMVRbC0T.mjs";
11
11
  import { Collapsible } from "./components/collapsible/index.mjs";
12
- import { t as AiReasoning } from "./ai-reasoning-C2Ffu52i.mjs";
13
- import { t as AiResponse } from "./ai-response-Bczv0TaC.mjs";
12
+ import { t as AiReasoning } from "./ai-reasoning-DA6bWwlo.mjs";
13
+ import { t as AiResponse } from "./ai-response-DrsGpVej.mjs";
14
14
  import { n as AiSources, t as AiSource } from "./ai-source-2eYEEt6r.mjs";
15
15
  import { t as AiSuggestion } from "./ai-suggestion-BtlG02Sz.mjs";
16
- import { t as AiTool } from "./ai-tool-DuhNqTWQ.mjs";
16
+ import { t as AiTool } from "./ai-tool-Dew8XiYk.mjs";
17
17
  import { i as Ai$1, n as AiContent, r as AiActions, t as AiLoader } from "./AiLoader-C7LALoXc.mjs";
18
18
  import { Ai } from "./components/ai/index.mjs";
19
- import { n as Attachments, t as Attachment } from "./ai-attachments-nFUAAXoM.mjs";
20
- import { t as Alert } from "./alert-Cji6_TKm.mjs";
19
+ import { n as Attachments, t as Attachment } from "./ai-attachments-ksKxDHG2.mjs";
20
+ import { t as Alert } from "./alert-pTPh9zID.mjs";
21
21
  import { t as AutoComplete } from "./autocomplete-b65dChlK.mjs";
22
22
  import { AngleSlider } from "./components/angle-slider/index.mjs";
23
23
  import { t as AspectRatio } from "./aspect-ratio-CIjPsfel.mjs";
24
24
  import { Avatar } from "./components/avatar/index.mjs";
25
25
  import { t as AvatarGroup } from "./avatar-group-BL7PyLo1.mjs";
26
- import { t as BackTop } from "./back-top-WBPZ45WG.mjs";
26
+ import { t as BackTop } from "./back-top-FpXkOE3N.mjs";
27
27
  import { t as Badge } from "./badge-N_KoQG_c.mjs";
28
28
  import { t as BlockUI } from "./block-ui-CHajwHI5.mjs";
29
29
  import { t as Breadcrumb } from "./breadcrumb-g68_HJ2W.mjs";
30
30
  import { t as ButtonGroup } from "./button-group-D9mgSVlR.mjs";
31
- import { t as Banner } from "./banner-vdEHwWWw.mjs";
31
+ import { t as Banner } from "./banner-CXrEuEc1.mjs";
32
32
  import { Calendar } from "./components/calendar/index.mjs";
33
33
  import { t as Card } from "./card-DPVT_VaK.mjs";
34
- import { t as CascadeSelect } from "./cascade-select-CWjvNB4G.mjs";
34
+ import { t as CascadeSelect } from "./cascade-select-BhdGSRCa.mjs";
35
35
  import { Carousel } from "./components/carousel/index.mjs";
36
36
  import { Checkbox } from "./components/checkbox/index.mjs";
37
- import { t as CheckboxGroup } from "./checkbox-group-JVSnrwhR.mjs";
37
+ import { t as CheckboxGroup } from "./checkbox-group-DESN0Y8Y.mjs";
38
38
  import { t as Chip } from "./chip-DputaHcF.mjs";
39
39
  import { ClientOnly } from "./components/client-only/index.mjs";
40
40
  import { Clipboard } from "./components/clipboard/index.mjs";
@@ -54,7 +54,7 @@ import { Dialog } from "./components/dialog/index.mjs";
54
54
  import { DownloadTrigger, useDownload } from "./components/download-trigger/index.mjs";
55
55
  import { Drawer } from "./components/drawer/index.mjs";
56
56
  import { Input } from "./components/input/index.mjs";
57
- import { t as DynamicInput } from "./dynamic-input-BDF0xRDd.mjs";
57
+ import { t as DynamicInput } from "./dynamic-input-BpzL0Fe-.mjs";
58
58
  import { Editable } from "./components/editable/index.mjs";
59
59
  import { t as Ellipsis } from "./ellipsis-ChktH2CQ.mjs";
60
60
  import { t as Empty } from "./empty-CINZ_PLj.mjs";
@@ -70,7 +70,7 @@ import { t as Grid } from "./grid-CinYh-s4.mjs";
70
70
  import { Highlight } from "./components/highlight/index.mjs";
71
71
  import { HoverCard } from "./components/hover-card/index.mjs";
72
72
  import { t as Icon } from "./icon-BF1JO1ek.mjs";
73
- import { t as Image } from "./image-BCYdfhgr.mjs";
73
+ import { t as Image } from "./image-BpWDMvNm.mjs";
74
74
  import { ImageCropper } from "./components/image-cropper/index.mjs";
75
75
  import { ImageViewer } from "./components/image-viewer/index.mjs";
76
76
  import { t as InputGroup } from "./input-group-B-F5Gpvl.mjs";
@@ -86,7 +86,7 @@ import { Menu } from "./components/menu/index.mjs";
86
86
  import { Menubar } from "./components/menubar/index.mjs";
87
87
  import { t as Meter } from "./meter-BUcdK4Ln.mjs";
88
88
  import { NavigationMenu } from "./components/navigation-menu/index.mjs";
89
- import { t as OrderList } from "./order-list-DtAaQ6VS.mjs";
89
+ import { t as OrderList } from "./order-list-C8O2NdGR.mjs";
90
90
  import { NumberInput } from "./components/number-input/index.mjs";
91
91
  import { Pagination } from "./components/pagination/index.mjs";
92
92
  import { PasswordInput } from "./components/password-input/index.mjs";
@@ -101,12 +101,12 @@ import { RadioGroup } from "./components/radio-group/index.mjs";
101
101
  import { RatingGroup } from "./components/rating-group/index.mjs";
102
102
  import { ScrollArea } from "./components/scroll-area/index.mjs";
103
103
  import { SegmentGroup } from "./components/segment-group/index.mjs";
104
- import { n as Select, t as NativeSelect } from "./select-CqOZTmfR.mjs";
104
+ import { n as Select, t as NativeSelect } from "./select-CVMOvviD.mjs";
105
105
  import { t as Separator } from "./separator-I0MEoHjO.mjs";
106
106
  import { SignaturePad } from "./components/signature-pad/index.mjs";
107
107
  import { t as Skeleton } from "./skeleton-BHn0Emeh.mjs";
108
108
  import { Slider } from "./components/slider/index.mjs";
109
- import { t as SplitButton } from "./split-button-18nv8J3q.mjs";
109
+ import { t as SplitButton } from "./split-button-BEgDY4EZ.mjs";
110
110
  import { Splitter } from "./components/splitter/index.mjs";
111
111
  import { t as Stack } from "./stack-uMjCwn_2.mjs";
112
112
  import { t as PageHeader } from "./page-header-ByucbXX7.mjs";
@@ -115,8 +115,8 @@ import { t as Stat } from "./stat-DQ-5P4Gr.mjs";
115
115
  import { Steps } from "./components/steps/index.mjs";
116
116
  import { Swap } from "./components/swap/index.mjs";
117
117
  import { Switch } from "./components/switch/index.mjs";
118
- import { n as FlexRender, r as createColumnHelper, t as DataTable } from "./table-LfPEezF-.mjs";
119
- import { t as Tag } from "./tag-S2DR-cEP.mjs";
118
+ import { n as FlexRender, r as createColumnHelper, t as DataTable } from "./table-HzpYIOst.mjs";
119
+ import { t as Tag } from "./tag-CXAD4ox2.mjs";
120
120
  import { Tabs } from "./components/tabs/index.mjs";
121
121
  import { t as Terminal } from "./terminal-DQAU6DW7.mjs";
122
122
  import { TagsInput } from "./components/tags-input/index.mjs";
@@ -128,12 +128,12 @@ import { Toc } from "./components/toc/index.mjs";
128
128
  import { Toggle } from "./components/toggle/index.mjs";
129
129
  import { t as Toolbar } from "./toolbar-BTM5B0Nt.mjs";
130
130
  import { t as Typography } from "./typography-DUWj7wex.mjs";
131
- import { t as Transfer } from "./transfer-kGHh9bJH.mjs";
131
+ import { t as Transfer } from "./transfer-CnfoiJ8O.mjs";
132
132
  import { ToggleGroup } from "./components/toggle-group/index.mjs";
133
133
  import { Tooltip } from "./components/tooltip/index.mjs";
134
134
  import { t as useTour } from "./use-tour-BfS5dCZb.mjs";
135
135
  import { Tour } from "./components/tour/index.mjs";
136
- import { t as TreeSelect } from "./tree-select-BRQjFrHA.mjs";
136
+ import { t as TreeSelect } from "./tree-select-CR2-Jskd.mjs";
137
137
  import { TreeView } from "./components/tree-view/index.mjs";
138
138
  import { t as User } from "./user--GneY3yN.mjs";
139
139
  import { t as VirtualList } from "./virtual-list-h85_wJw5.mjs";
@@ -142,8 +142,8 @@ import { t as Spotlight } from "./spotlight-Apoc1iQX.mjs";
142
142
  import { t as Dock } from "./dock-BFyqUHAo.mjs";
143
143
  import { t as Browser } from "./browser-KnMt333t.mjs";
144
144
  import { t as Bento } from "./bento-ChsvZJOE.mjs";
145
- import { t as Result } from "./result-CwLNxqk-.mjs";
146
- import { n as Video, t as Audio } from "./media-player-085Q_gL8.mjs";
145
+ import { t as Result } from "./result-BRbQTUeW.mjs";
146
+ import { n as Video, t as Audio } from "./media-player-DEXKLoUX.mjs";
147
147
  import { t as formatMediaTime } from "./use-media-controls-BYYG0DgO.mjs";
148
148
  export * from "@bysages/core";
149
149
  export { Accordion, AiAction as Action, AiAction, Affix, Ai, AiActions, Attachment as AiAttachment, Attachment, Attachments as AiAttachments, Attachments, AiContent, Ai$1 as AiConversation, AiLoader, AiMessage, AiMessage as Message, AiPromptInput, AiPromptInput as PromptInput, AiReasoning, AiReasoning as Reasoning, AiResponse, AiResponse as Response, AiSource, AiSource as Source, AiSources, AiSources as Sources, AiSuggestion, AiSuggestion as Suggestion, AiTool, AiTool as Tool, Alert, AngleSlider, AspectRatio, Audio, AutoComplete, Avatar, AvatarGroup, BackTop, Badge, Banner, Bento, BlockUI, Breadcrumb, Browser, Button, ButtonGroup, Calendar, Card, Carousel, CascadeSelect, Checkbox, CheckboxGroup, Chip, ClientOnly, Clipboard, Collapsible, ColorPicker, Combobox, Command, Comment, ConfigProvider, Container, DataTable, DataView, DateInput, DatePicker, DeferredContent, Descriptions, Dialog, Dock, DownloadTrigger, Drawer, DynamicInput, Editable, Ellipsis, Empty, FLOAT_BUTTON_KEY, 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, 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, createField, createFileTreeCollection, createForm, createGridCollection, createListCollection, createToaster, createTreeCollection, formatMediaTime, splitPresenceProps, useAsyncList, useConfig, useDownload, useField, useForm, useListCollection, useListSelection, useMentions, usePresence, usePresenceContext, useTour };
@@ -1,6 +1,6 @@
1
1
  import { t as defineFamily } from "./family-CzLaku1F.mjs";
2
- import { t as InternalIcon } from "./InternalIcon-CbfKieOs.mjs";
3
- import { n as Select } from "./select-CqOZTmfR.mjs";
2
+ import { t as InternalIcon } from "./InternalIcon-Dr81WIG1.mjs";
3
+ import { n as Select } from "./select-CVMOvviD.mjs";
4
4
  import { n as useMediaControls, t as formatMediaTime } from "./use-media-controls-BYYG0DgO.mjs";
5
5
  import "svelte/internal/disclose-version";
6
6
  import * as $ from "svelte/internal/client";
@@ -1,5 +1,5 @@
1
1
  import { n as withSelfRoot } from "./family-CzLaku1F.mjs";
2
- import { t as iconHtml } from "./icon-C6ohnKuW.mjs";
2
+ import { n as iconHtml } from "./icon-CKL_BxrZ.mjs";
3
3
  import { n as useComponentMessages } from "./messages-DNzA55pH.mjs";
4
4
  import "svelte/internal/disclose-version";
5
5
  import * as $ from "svelte/internal/client";
@@ -1,3 +1,4 @@
1
+ import { t as iconBody } from "./icon-CKL_BxrZ.mjs";
1
2
  import "svelte/internal/disclose-version";
2
3
  import * as $ from "svelte/internal/client";
3
4
  import { injectComponentStyle } from "@bysages/core/styling";
@@ -92,7 +93,7 @@ function ResultIcon($$anchor, $$props) {
92
93
  $.push($$props, true);
93
94
  injectComponentStyle("result");
94
95
  let rest = $.rest_props($$props, rest_excludes$1);
95
- const MARK = "<g data-for=\"success\"><path d=\"M20 6 9 17l-5-5\"/></g><g data-for=\"warning\"><path d=\"M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0Z\"/><path d=\"M12 9v4\"/><path d=\"M12 17h.01\"/></g><g data-for=\"danger\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"m15 9-6 6\"/><path d=\"m9 9 6 6\"/></g><g data-for=\"info\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"M12 16v-4\"/><path d=\"M12 8h.01\"/></g>";
96
+ const MARK = `<g data-for="success">${iconBody("check")}</g><g data-for="warning">${iconBody("triangle-alert")}</g><g data-for="danger">${iconBody("circle-x")}</g><g data-for="info">${iconBody("info")}</g>`;
96
97
  var div = root_1();
97
98
  $.attribute_effect(div, () => ({
98
99
  ...rest,
@@ -1,6 +1,6 @@
1
1
  import { n as withSelfRoot, t as defineFamily } from "./family-CzLaku1F.mjs";
2
- import { t as InternalIcon } from "./InternalIcon-CbfKieOs.mjs";
3
- import { n as SelectRoot, t as Select$2 } from "./Select-5AJHEmMi.mjs";
2
+ import { t as InternalIcon } from "./InternalIcon-Dr81WIG1.mjs";
3
+ import { n as SelectRoot, t as Select$2 } from "./Select-D9XgciuN.mjs";
4
4
  import "svelte/internal/disclose-version";
5
5
  import * as $ from "svelte/internal/client";
6
6
  import { injectComponentStyle } from "@bysages/core/styling";
@@ -1,5 +1,5 @@
1
1
  import { n as withSelfRoot } from "./family-CzLaku1F.mjs";
2
- import { t as InternalIcon } from "./InternalIcon-CbfKieOs.mjs";
2
+ import { t as InternalIcon } from "./InternalIcon-Dr81WIG1.mjs";
3
3
  import { t as Button } from "./button-Cl45zjdj.mjs";
4
4
  import { n as useComponentMessages } from "./messages-DNzA55pH.mjs";
5
5
  import "svelte/internal/disclose-version";
@@ -1,9 +1,9 @@
1
1
  import { n as withSelfRoot } from "./family-CzLaku1F.mjs";
2
- import { t as iconHtml } from "./icon-C6ohnKuW.mjs";
3
- import { t as InternalIcon } from "./InternalIcon-CbfKieOs.mjs";
2
+ import { n as iconHtml } from "./icon-CKL_BxrZ.mjs";
3
+ import { t as InternalIcon } from "./InternalIcon-Dr81WIG1.mjs";
4
4
  import { n as useComponentMessages, t as formatMessage } from "./messages-DNzA55pH.mjs";
5
5
  import { Pagination } from "./components/pagination/index.mjs";
6
- import { n as Select$1 } from "./select-CqOZTmfR.mjs";
6
+ import { n as Select$1 } from "./select-CVMOvviD.mjs";
7
7
  import "svelte/internal/disclose-version";
8
8
  import * as $ from "svelte/internal/client";
9
9
  import { injectComponentStyle } from "@bysages/core/styling";
@@ -1,5 +1,5 @@
1
1
  import { n as withSelfRoot } from "./family-CzLaku1F.mjs";
2
- import { t as InternalIcon } from "./InternalIcon-CbfKieOs.mjs";
2
+ import { t as InternalIcon } from "./InternalIcon-Dr81WIG1.mjs";
3
3
  import "svelte/internal/disclose-version";
4
4
  import * as $ from "svelte/internal/client";
5
5
  import { injectComponentStyle } from "@bysages/core/styling";
@@ -18,8 +18,8 @@ var rest_excludes = /* @__PURE__ */ new Set([
18
18
  "onClose",
19
19
  "children"
20
20
  ]);
21
- var root = $.from_html(`<span data-scope="tag" data-part="close" aria-hidden="true"><!></span>`);
22
- var root_1 = $.from_html(`<button><!> <!></button>`);
21
+ var root = $.from_html(`<span><button type="button" data-scope="tag" data-part="check"><!></button> <button type="button" data-scope="tag" data-part="close" aria-label="Remove"><!></button></span>`);
22
+ var root_1 = $.from_html(`<button><!></button>`);
23
23
  var root_2 = $.from_html(`<button type="button" data-scope="tag" data-part="close" aria-label="Remove"><!></button>`);
24
24
  var root_3 = $.from_html(`<span><!> <!></span>`);
25
25
  function Tag$1($$anchor, $$props) {
@@ -41,9 +41,39 @@ function Tag$1($$anchor, $$props) {
41
41
  }
42
42
  var fragment = $.comment();
43
43
  var node = $.first_child(fragment);
44
+ var consequent = ($$anchor) => {
45
+ var span = root();
46
+ $.attribute_effect(span, () => ({
47
+ ...rest,
48
+ "data-scope": "tag",
49
+ "data-part": "root",
50
+ "data-tone": tone(),
51
+ "data-variant": variant(),
52
+ "data-checkable": "true",
53
+ "data-checked": $.get(isChecked) || void 0,
54
+ "data-disabled": disabled() || void 0
55
+ }));
56
+ var button = $.child(span);
57
+ var node_1 = $.child(button);
58
+ $.snippet(node_1, () => $$props.children ?? $.noop);
59
+ $.reset(button);
60
+ var button_1 = $.sibling(button, 2);
61
+ var node_2 = $.child(button_1);
62
+ InternalIcon(node_2, { name: "x" });
63
+ $.reset(button_1);
64
+ $.reset(span);
65
+ $.template_effect(() => {
66
+ $.set_attribute(button, "aria-pressed", $.get(isChecked));
67
+ button.disabled = disabled();
68
+ button_1.disabled = disabled();
69
+ });
70
+ $.delegated("click", button, toggle);
71
+ $.delegated("click", button_1, dismiss);
72
+ $.append($$anchor, span);
73
+ };
44
74
  var consequent_1 = ($$anchor) => {
45
- var button = root_1();
46
- $.attribute_effect(button, () => ({
75
+ var button_2 = root_1();
76
+ $.attribute_effect(button_2, () => ({
47
77
  ...rest,
48
78
  type: "button",
49
79
  "data-scope": "tag",
@@ -57,22 +87,10 @@ function Tag$1($$anchor, $$props) {
57
87
  disabled: disabled(),
58
88
  onclick: toggle
59
89
  }));
60
- var node_1 = $.child(button);
61
- $.snippet(node_1, () => $$props.children ?? $.noop);
62
- var node_2 = $.sibling(node_1, 2);
63
- var consequent = ($$anchor) => {
64
- var span = root();
65
- var node_3 = $.child(span);
66
- InternalIcon(node_3, { name: "x" });
67
- $.reset(span);
68
- $.delegated("click", span, dismiss);
69
- $.append($$anchor, span);
70
- };
71
- $.if(node_2, ($$render) => {
72
- if (closable()) $$render(consequent);
73
- });
74
- $.reset(button);
75
- $.append($$anchor, button);
90
+ var node_3 = $.child(button_2);
91
+ $.snippet(node_3, () => $$props.children ?? $.noop);
92
+ $.reset(button_2);
93
+ $.append($$anchor, button_2);
76
94
  };
77
95
  var alternate = ($$anchor) => {
78
96
  var span_1 = root_3();
@@ -89,13 +107,13 @@ function Tag$1($$anchor, $$props) {
89
107
  $.snippet(node_4, () => $$props.children ?? $.noop);
90
108
  var node_5 = $.sibling(node_4, 2);
91
109
  var consequent_2 = ($$anchor) => {
92
- var button_1 = root_2();
93
- var node_6 = $.child(button_1);
110
+ var button_3 = root_2();
111
+ var node_6 = $.child(button_3);
94
112
  InternalIcon(node_6, { name: "x" });
95
- $.reset(button_1);
96
- $.template_effect(() => button_1.disabled = disabled());
97
- $.delegated("click", button_1, dismiss);
98
- $.append($$anchor, button_1);
113
+ $.reset(button_3);
114
+ $.template_effect(() => button_3.disabled = disabled());
115
+ $.delegated("click", button_3, dismiss);
116
+ $.append($$anchor, button_3);
99
117
  };
100
118
  $.if(node_5, ($$render) => {
101
119
  if (closable()) $$render(consequent_2);
@@ -104,7 +122,8 @@ function Tag$1($$anchor, $$props) {
104
122
  $.append($$anchor, span_1);
105
123
  };
106
124
  $.if(node, ($$render) => {
107
- if (checkable()) $$render(consequent_1);
125
+ if (checkable() && closable()) $$render(consequent);
126
+ else if (checkable()) $$render(consequent_1, 1);
108
127
  else $$render(alternate, -1);
109
128
  });
110
129
  $.append($$anchor, fragment);
@@ -1,5 +1,5 @@
1
1
  import { n as withSelfRoot } from "./family-CzLaku1F.mjs";
2
- import { t as InternalIcon } from "./InternalIcon-CbfKieOs.mjs";
2
+ import { t as InternalIcon } from "./InternalIcon-Dr81WIG1.mjs";
3
3
  import { t as Button } from "./button-Cl45zjdj.mjs";
4
4
  import { n as useComponentMessages, t as formatMessage } from "./messages-DNzA55pH.mjs";
5
5
  import { Input } from "./components/input/index.mjs";
@@ -1,5 +1,5 @@
1
1
  import { n as withSelfRoot } from "./family-CzLaku1F.mjs";
2
- import { t as InternalIcon } from "./InternalIcon-CbfKieOs.mjs";
2
+ import { t as InternalIcon } from "./InternalIcon-Dr81WIG1.mjs";
3
3
  import { n as useComponentMessages } from "./messages-DNzA55pH.mjs";
4
4
  import { t as Input } from "./Input-DLfLshYU.mjs";
5
5
  import "svelte/internal/disclose-version";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bysages/svelte",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "By Sages Elements components for Svelte — styled by the paper-and-ink design tokens",
5
5
  "keywords": [
6
6
  "accessible",
@@ -52,7 +52,7 @@
52
52
  "@tanstack/svelte-virtual": "3.13.40",
53
53
  "@zag-js/cascade-select": "1.45.0",
54
54
  "@zag-js/svelte": "1.45.0",
55
- "@bysages/core": "0.4.2"
55
+ "@bysages/core": "0.4.3"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@json-render/core": "0.21.0",