@bysages/svelte 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 (163) hide show
  1. package/dist/{Accordion-DF1vzXDg.mjs → Accordion-DUUod-V6.mjs} +1 -1
  2. package/dist/AvatarFacade-BNErD2uE.mjs +147 -0
  3. package/dist/{banner-vdEHwWWw.mjs → BannerIcon-DpvxwWCc.mjs} +144 -58
  4. package/dist/{breadcrumb-g68_HJ2W.mjs → BreadcrumbList-BdLId9vL.mjs} +133 -59
  5. package/dist/{Calendar-CWaU4MGJ.mjs → Calendar-MQdoAnJK.mjs} +1 -1
  6. package/dist/{Carousel-BWWwu5Ma.mjs → Carousel-DNMQMvm6.mjs} +1 -1
  7. package/dist/{Checkbox-BZb8IR25.mjs → Checkbox-z4EXYH9a.mjs} +1 -1
  8. package/dist/{ChevronIcon-C-MKLsfA.mjs → ChevronIcon-hvMd0d_i.mjs} +1 -1
  9. package/dist/{Clipboard-DBgbIGjV.mjs → Clipboard-Bdui0U6I.mjs} +1 -1
  10. package/dist/{Collapsible-CZ8qFLzP.mjs → Collapsible-t6m_LqHZ.mjs} +2 -2
  11. package/dist/{ColorPicker-D6PGvfQf.mjs → ColorPicker-tGU9q8oC.mjs} +67 -8
  12. package/dist/{Combobox-Ba2u_SqJ.mjs → Combobox-8BSw_3Ab.mjs} +1 -1
  13. package/dist/{DatePicker-Dm81GmmF.mjs → DatePicker-DJDUqjiE.mjs} +1 -1
  14. package/dist/{Dialog-BbDr030S.mjs → Dialog-91oyw8Pi.mjs} +1 -1
  15. package/dist/{Drawer-C1r1wz3V.mjs → Drawer-DkFAYikg.mjs} +1 -1
  16. package/dist/{Editable-hjSbhWMK.mjs → Editable-lC-REFTP.mjs} +1 -1
  17. package/dist/{FileUpload-C6JBpvet.mjs → FileUpload-7LgqVD7x.mjs} +1 -1
  18. package/dist/{float-button-DK8hviBz.mjs → FloatButtonFacade-C8nGcXe0.mjs} +100 -16
  19. package/dist/{FloatingPanel-2z-iuVPc.mjs → FloatingPanel-nsymgBI7.mjs} +30 -18
  20. package/dist/{ImageViewer-8tDJvkkb.mjs → ImageViewer-s41DessS.mjs} +1 -1
  21. package/dist/{InternalIcon-CbfKieOs.mjs → InternalIcon-Dr81WIG1.mjs} +1 -1
  22. package/dist/{JsonTreeViewTree-DkusAr3j.mjs → JsonTreeViewTree-DkD987Zf.mjs} +1 -1
  23. package/dist/{Listbox-gAL5Q59b.mjs → Listbox-C-u5WxHv.mjs} +1 -1
  24. package/dist/{Menu-BiwHDpdz.mjs → Menu-DA7CeDYL.mjs} +1 -1
  25. package/dist/{NumberInput-B2gPYuJX.mjs → NumberInput-BDbTmUgg.mjs} +1 -1
  26. package/dist/{Pagination-f8XiX-Cs.mjs → Pagination-BmFNV_Vu.mjs} +1 -1
  27. package/dist/{PasswordInput-BhlJF3Jd.mjs → PasswordInput-Cas4e19J.mjs} +1 -1
  28. package/dist/{Popover-Dl-QAFG_.mjs → Popover-BQeFwet4.mjs} +1 -1
  29. package/dist/{RatingGroup-DTVzY6BA.mjs → RatingGroup-DSzJ56Yw.mjs} +1 -1
  30. package/dist/{Select-5AJHEmMi.mjs → Select-D4rBviRL.mjs} +2 -2
  31. package/dist/{SignaturePad-Dc5YbZoV.mjs → SignaturePad-DSVTGy9D.mjs} +2 -3
  32. package/dist/{Swap-CfgxrCzJ.mjs → Swap-CkhKz3Ue.mjs} +1 -1
  33. package/dist/{TagsInput-DVuAOpBt.mjs → TagsInput-BPrJLeuZ.mjs} +1 -1
  34. package/dist/{Toast-BHSRo7N7.mjs → Toast-mxbydOO8.mjs} +1 -1
  35. package/dist/{ToggleGroup-DgBoC0hi.mjs → ToggleGroup-BfW1gjVm.mjs} +1 -1
  36. package/dist/{TreeViewNodeCheckbox-DGfG5yIl.mjs → TreeViewNodeCheckbox-t2i6iaiq.mjs} +1 -1
  37. package/dist/{ai-attachments-nFUAAXoM.mjs → ai-attachments-ksKxDHG2.mjs} +1 -1
  38. package/dist/{ai-prompt-input-z0j3gpgu.mjs → ai-prompt-input-CMVRbC0T.mjs} +2 -2
  39. package/dist/{ai-reasoning-C2Ffu52i.mjs → ai-reasoning-DA6bWwlo.mjs} +1 -1
  40. package/dist/{ai-response-Bczv0TaC.mjs → ai-response-DrsGpVej.mjs} +1 -1
  41. package/dist/{ai-tool-DuhNqTWQ.mjs → ai-tool-Dew8XiYk.mjs} +1 -1
  42. package/dist/{alert-Cji6_TKm.mjs → alert-pTPh9zID.mjs} +1 -1
  43. package/dist/{back-top-WBPZ45WG.mjs → back-top-FpXkOE3N.mjs} +1 -1
  44. package/dist/{cascade-select-CWjvNB4G.mjs → cascade-select-BhdGSRCa.mjs} +1 -1
  45. package/dist/{checkbox-group-JVSnrwhR.mjs → checkbox-group-DESN0Y8Y.mjs} +1 -1
  46. package/dist/components/accordion/index.d.mts +1 -1
  47. package/dist/components/accordion/index.mjs +1 -1
  48. package/dist/components/ai/index.mjs +4 -4
  49. package/dist/components/ai-attachments/index.mjs +1 -1
  50. package/dist/components/ai-prompt-input/index.mjs +1 -1
  51. package/dist/components/ai-reasoning/index.mjs +1 -1
  52. package/dist/components/ai-response/index.mjs +1 -1
  53. package/dist/components/ai-tool/index.mjs +1 -1
  54. package/dist/components/alert/index.mjs +1 -1
  55. package/dist/components/avatar/index.d.mts +2 -12
  56. package/dist/components/avatar/index.mjs +2 -2
  57. package/dist/components/back-top/index.mjs +1 -1
  58. package/dist/components/banner/index.d.mts +2 -2
  59. package/dist/components/banner/index.mjs +17 -1
  60. package/dist/components/breadcrumb/index.d.mts +2 -2
  61. package/dist/components/breadcrumb/index.mjs +15 -1
  62. package/dist/components/calendar/index.d.mts +1 -1
  63. package/dist/components/calendar/index.mjs +1 -1
  64. package/dist/components/carousel/index.d.mts +1 -1
  65. package/dist/components/carousel/index.mjs +1 -1
  66. package/dist/components/cascade-select/index.mjs +1 -1
  67. package/dist/components/checkbox/index.d.mts +1 -1
  68. package/dist/components/checkbox/index.mjs +1 -1
  69. package/dist/components/checkbox-group/index.mjs +1 -1
  70. package/dist/components/clipboard/index.d.mts +1 -1
  71. package/dist/components/clipboard/index.mjs +1 -1
  72. package/dist/components/collapsible/index.d.mts +1 -1
  73. package/dist/components/collapsible/index.mjs +1 -1
  74. package/dist/components/color-picker/index.d.mts +1 -1
  75. package/dist/components/color-picker/index.mjs +1 -1
  76. package/dist/components/combobox/index.d.mts +1 -1
  77. package/dist/components/combobox/index.mjs +1 -1
  78. package/dist/components/date-picker/index.d.mts +1 -1
  79. package/dist/components/date-picker/index.mjs +1 -1
  80. package/dist/components/dialog/index.d.mts +1 -1
  81. package/dist/components/dialog/index.mjs +1 -1
  82. package/dist/components/drawer/index.d.mts +1 -1
  83. package/dist/components/drawer/index.mjs +1 -1
  84. package/dist/components/dynamic-input/index.mjs +1 -1
  85. package/dist/components/editable/index.d.mts +1 -1
  86. package/dist/components/editable/index.mjs +1 -1
  87. package/dist/components/file-upload/index.d.mts +1 -1
  88. package/dist/components/file-upload/index.mjs +1 -1
  89. package/dist/components/float-button/index.d.mts +2 -2
  90. package/dist/components/float-button/index.mjs +11 -1
  91. package/dist/components/floating-panel/index.d.mts +1 -1
  92. package/dist/components/floating-panel/index.mjs +1 -1
  93. package/dist/components/image/index.mjs +1 -1
  94. package/dist/components/image-viewer/index.d.mts +1 -1
  95. package/dist/components/image-viewer/index.mjs +1 -1
  96. package/dist/components/json-tree-view/index.d.mts +1 -1
  97. package/dist/components/json-tree-view/index.mjs +1 -1
  98. package/dist/components/listbox/index.d.mts +1 -1
  99. package/dist/components/listbox/index.mjs +1 -1
  100. package/dist/components/media-player/index.mjs +1 -1
  101. package/dist/components/menu/index.d.mts +1 -1
  102. package/dist/components/menu/index.mjs +1 -1
  103. package/dist/components/number-input/index.d.mts +1 -1
  104. package/dist/components/number-input/index.mjs +1 -1
  105. package/dist/components/order-list/index.mjs +1 -1
  106. package/dist/components/pagination/index.d.mts +1 -1
  107. package/dist/components/pagination/index.mjs +1 -1
  108. package/dist/components/password-input/index.d.mts +1 -1
  109. package/dist/components/password-input/index.mjs +1 -1
  110. package/dist/components/popover/index.d.mts +1 -1
  111. package/dist/components/popover/index.mjs +1 -1
  112. package/dist/components/rating-group/index.d.mts +1 -1
  113. package/dist/components/rating-group/index.mjs +1 -1
  114. package/dist/components/result/index.mjs +1 -1
  115. package/dist/components/select/index.d.mts +1 -1
  116. package/dist/components/select/index.mjs +1 -1
  117. package/dist/components/signature-pad/index.d.mts +1 -1
  118. package/dist/components/signature-pad/index.mjs +1 -1
  119. package/dist/components/split-button/index.mjs +1 -1
  120. package/dist/components/swap/index.d.mts +1 -1
  121. package/dist/components/swap/index.mjs +1 -1
  122. package/dist/components/table/index.mjs +1 -1
  123. package/dist/components/tag/index.mjs +1 -1
  124. package/dist/components/tags-input/index.d.mts +1 -1
  125. package/dist/components/tags-input/index.mjs +1 -1
  126. package/dist/components/toast/index.d.mts +1 -1
  127. package/dist/components/toast/index.mjs +1 -1
  128. package/dist/components/toggle-group/index.d.mts +1 -1
  129. package/dist/components/toggle-group/index.mjs +1 -1
  130. package/dist/components/transfer/index.mjs +1 -1
  131. package/dist/components/tree-select/index.mjs +1 -1
  132. package/dist/components/tree-view/index.d.mts +1 -1
  133. package/dist/components/tree-view/index.mjs +1 -1
  134. package/dist/{dynamic-input-BDF0xRDd.mjs → dynamic-input-BpzL0Fe-.mjs} +1 -1
  135. package/dist/generative/index.d.mts +47 -0
  136. package/dist/generative/index.mjs +1692 -0
  137. package/dist/{icon-C6ohnKuW.mjs → icon-CKL_BxrZ.mjs} +7 -1
  138. package/dist/{image-BCYdfhgr.mjs → image-BpWDMvNm.mjs} +1 -1
  139. package/dist/{index-DTYHFIbh.d.mts → index-BwUGTQag.d.mts} +1 -1
  140. package/dist/index-C0CAf6mV.d.mts +47 -0
  141. package/dist/{index-BEZCr62O.d.mts → index-CGk6TYb-.d.mts} +1 -1
  142. package/dist/{index-C4FVU8_3.d.mts → index-CgnQmll5.d.mts} +1 -1
  143. package/dist/index-DeW7Jrci.d.mts +41 -0
  144. package/dist/{index-CFxAJ3UH.d.mts → index-DyAQSYqR.d.mts} +1 -1
  145. package/dist/{index-D8F1dVDW.d.mts → index-FRLzt_CK.d.mts} +31 -5
  146. package/dist/{index-BDEuWWx7.d.mts → index-FmT_lwS7.d.mts} +1 -1
  147. package/dist/index-g_LJvZJ-.d.mts +44 -0
  148. package/dist/{index-M2f9hz3z.d.mts → index-njppQnYT.d.mts} +1 -1
  149. package/dist/index.d.mts +11 -11
  150. package/dist/index.mjs +24 -23
  151. package/dist/{media-player-085Q_gL8.mjs → media-player-DkAUU7NN.mjs} +2 -2
  152. package/dist/{order-list-DtAaQ6VS.mjs → order-list-C8O2NdGR.mjs} +1 -1
  153. package/dist/{result-CwLNxqk-.mjs → result-BRbQTUeW.mjs} +2 -1
  154. package/dist/{select-CqOZTmfR.mjs → select-DuSzjsoK.mjs} +2 -2
  155. package/dist/{split-button-18nv8J3q.mjs → split-button-BEgDY4EZ.mjs} +1 -1
  156. package/dist/{table-LfPEezF-.mjs → table-N8W6Jcaj.mjs} +3 -3
  157. package/dist/{tag-S2DR-cEP.mjs → tag-CXAD4ox2.mjs} +47 -28
  158. package/dist/{transfer-kGHh9bJH.mjs → transfer-CnfoiJ8O.mjs} +1 -1
  159. package/dist/{tree-select-BRQjFrHA.mjs → tree-select-CR2-Jskd.mjs} +1 -1
  160. package/package.json +2 -2
  161. package/dist/Avatar-L9BP2Zwy.mjs +0 -47
  162. package/dist/index-BkK_8C_c.d.mts +0 -29
  163. package/dist/index-Cl8v2k0X.d.mts +0 -36
@@ -3,20 +3,20 @@ import "svelte/internal/disclose-version";
3
3
  import * as $ from "svelte/internal/client";
4
4
  import { injectComponentStyle } from "@bysages/core/styling";
5
5
  //#region src/components/breadcrumb/Breadcrumb.svelte
6
- var rest_excludes$5 = /* @__PURE__ */ new Set([
6
+ var rest_excludes$6 = /* @__PURE__ */ new Set([
7
7
  "$$slots",
8
8
  "$$events",
9
9
  "$$legacy",
10
10
  "aria-label",
11
11
  "children"
12
12
  ]);
13
- var root$5 = $.from_html(`<nav><!></nav>`);
14
- function Breadcrumb$1($$anchor, $$props) {
13
+ var root$6 = $.from_html(`<nav><!></nav>`);
14
+ function Breadcrumb($$anchor, $$props) {
15
15
  $.push($$props, true);
16
16
  injectComponentStyle("breadcrumb");
17
- let rest = $.rest_props($$props, rest_excludes$5);
17
+ let rest = $.rest_props($$props, rest_excludes$6);
18
18
  const messages = useComponentMessages();
19
- var nav = root$5();
19
+ var nav = root$6();
20
20
  $.attribute_effect(nav, ($0) => ({
21
21
  ...rest,
22
22
  "aria-label": $0,
@@ -31,18 +31,18 @@ function Breadcrumb$1($$anchor, $$props) {
31
31
  }
32
32
  //#endregion
33
33
  //#region src/components/breadcrumb/BreadcrumbCurrent.svelte
34
- var rest_excludes$4 = /* @__PURE__ */ new Set([
34
+ var rest_excludes$5 = /* @__PURE__ */ new Set([
35
35
  "$$slots",
36
36
  "$$events",
37
37
  "$$legacy",
38
38
  "children"
39
39
  ]);
40
- var root$4 = $.from_html(`<span><!></span>`);
40
+ var root$5 = $.from_html(`<span><!></span>`);
41
41
  function BreadcrumbCurrent($$anchor, $$props) {
42
42
  $.push($$props, true);
43
43
  injectComponentStyle("breadcrumb");
44
- let rest = $.rest_props($$props, rest_excludes$4);
45
- var span = root$4();
44
+ let rest = $.rest_props($$props, rest_excludes$5);
45
+ var span = root$5();
46
46
  $.attribute_effect(span, () => ({
47
47
  ...rest,
48
48
  "aria-current": "page",
@@ -57,18 +57,18 @@ function BreadcrumbCurrent($$anchor, $$props) {
57
57
  }
58
58
  //#endregion
59
59
  //#region src/components/breadcrumb/BreadcrumbItem.svelte
60
- var rest_excludes$3 = /* @__PURE__ */ new Set([
60
+ var rest_excludes$4 = /* @__PURE__ */ new Set([
61
61
  "$$slots",
62
62
  "$$events",
63
63
  "$$legacy",
64
64
  "children"
65
65
  ]);
66
- var root$3 = $.from_html(`<li><!></li>`);
66
+ var root$4 = $.from_html(`<li><!></li>`);
67
67
  function BreadcrumbItem($$anchor, $$props) {
68
68
  $.push($$props, true);
69
69
  injectComponentStyle("breadcrumb");
70
- let rest = $.rest_props($$props, rest_excludes$3);
71
- var li = root$3();
70
+ let rest = $.rest_props($$props, rest_excludes$4);
71
+ var li = root$4();
72
72
  $.attribute_effect(li, () => ({
73
73
  ...rest,
74
74
  "data-scope": "breadcrumb",
@@ -82,18 +82,18 @@ function BreadcrumbItem($$anchor, $$props) {
82
82
  }
83
83
  //#endregion
84
84
  //#region src/components/breadcrumb/BreadcrumbLink.svelte
85
- var rest_excludes$2 = /* @__PURE__ */ new Set([
85
+ var rest_excludes$3 = /* @__PURE__ */ new Set([
86
86
  "$$slots",
87
87
  "$$events",
88
88
  "$$legacy",
89
89
  "children"
90
90
  ]);
91
- var root$2 = $.from_html(`<a><!></a>`);
91
+ var root$3 = $.from_html(`<a><!></a>`);
92
92
  function BreadcrumbLink($$anchor, $$props) {
93
93
  $.push($$props, true);
94
94
  injectComponentStyle("breadcrumb");
95
- let rest = $.rest_props($$props, rest_excludes$2);
96
- var a = root$2();
95
+ let rest = $.rest_props($$props, rest_excludes$3);
96
+ var a = root$3();
97
97
  $.attribute_effect(a, () => ({
98
98
  ...rest,
99
99
  "data-scope": "breadcrumb",
@@ -106,44 +106,19 @@ function BreadcrumbLink($$anchor, $$props) {
106
106
  $.pop();
107
107
  }
108
108
  //#endregion
109
- //#region src/components/breadcrumb/BreadcrumbList.svelte
110
- var rest_excludes$1 = /* @__PURE__ */ new Set([
111
- "$$slots",
112
- "$$events",
113
- "$$legacy",
114
- "children"
115
- ]);
116
- var root$1 = $.from_html(`<ol><!></ol>`);
117
- function BreadcrumbList($$anchor, $$props) {
118
- $.push($$props, true);
119
- injectComponentStyle("breadcrumb");
120
- let rest = $.rest_props($$props, rest_excludes$1);
121
- var ol = root$1();
122
- $.attribute_effect(ol, () => ({
123
- ...rest,
124
- "data-scope": "breadcrumb",
125
- "data-part": "list"
126
- }));
127
- var node = $.child(ol);
128
- $.snippet(node, () => $$props.children ?? $.noop);
129
- $.reset(ol);
130
- $.append($$anchor, ol);
131
- $.pop();
132
- }
133
- //#endregion
134
109
  //#region src/components/breadcrumb/BreadcrumbSeparator.svelte
135
- var rest_excludes = /* @__PURE__ */ new Set([
110
+ var rest_excludes$2 = /* @__PURE__ */ new Set([
136
111
  "$$slots",
137
112
  "$$events",
138
113
  "$$legacy",
139
114
  "children"
140
115
  ]);
141
- var root = $.from_html(`<span><!></span>`);
116
+ var root$2 = $.from_html(`<span><!></span>`);
142
117
  function BreadcrumbSeparator($$anchor, $$props) {
143
118
  $.push($$props, true);
144
119
  injectComponentStyle("breadcrumb");
145
- let rest = $.rest_props($$props, rest_excludes);
146
- var span = root();
120
+ let rest = $.rest_props($$props, rest_excludes$2);
121
+ var span = root$2();
147
122
  $.attribute_effect(span, () => ({
148
123
  ...rest,
149
124
  "aria-hidden": "true",
@@ -170,17 +145,116 @@ function BreadcrumbSeparator($$anchor, $$props) {
170
145
  $.pop();
171
146
  }
172
147
  //#endregion
173
- //#region src/components/breadcrumb/index.ts
174
- /** A trail of waymarks: Root wraps the nav, List the ordered trail, and
175
- * each Item carries a Link — or the Current page — parted by a quiet
176
- * Separator. Links take href and the rest through attributes. */
177
- const Breadcrumb = Object.assign(Breadcrumb$1, {
178
- Root: Breadcrumb$1,
179
- List: BreadcrumbList,
180
- Item: BreadcrumbItem,
181
- Link: BreadcrumbLink,
182
- Current: BreadcrumbCurrent,
183
- Separator: BreadcrumbSeparator
184
- });
148
+ //#region src/components/breadcrumb/BreadcrumbFacade.svelte
149
+ var rest_excludes$1 = /* @__PURE__ */ new Set([
150
+ "$$slots",
151
+ "$$events",
152
+ "$$legacy",
153
+ "items",
154
+ "label",
155
+ "aria-label"
156
+ ]);
157
+ var root$1 = $.from_html(`<!> <!>`, 1);
158
+ function BreadcrumbFacade($$anchor, $$props) {
159
+ $.push($$props, true);
160
+ injectComponentStyle("breadcrumb");
161
+ let rest = $.rest_props($$props, rest_excludes$1);
162
+ const lastIndex = $.derived(() => $$props.items.length - 1);
163
+ const messages = useComponentMessages();
164
+ {
165
+ let $0 = $.derived(() => $$props.label ?? $$props["aria-label"] ?? messages().breadcrumb.label);
166
+ Breadcrumb($$anchor, $.spread_props({ get "aria-label"() {
167
+ return $.get($0);
168
+ } }, () => rest, {
169
+ children: ($$anchor, $$slotProps) => {
170
+ BreadcrumbList($$anchor, {
171
+ children: ($$anchor, $$slotProps) => {
172
+ var fragment_2 = $.comment();
173
+ var node = $.first_child(fragment_2);
174
+ $.each(node, 17, () => $$props.items, $.index, ($$anchor, item, index) => {
175
+ const text = $.derived(() => typeof $.get(item) === "string" ? $.get(item) : $.get(item).label);
176
+ const href = $.derived(() => typeof $.get(item) === "string" ? void 0 : $.get(item).href);
177
+ var fragment_3 = root$1();
178
+ var node_1 = $.first_child(fragment_3);
179
+ var consequent = ($$anchor) => {
180
+ BreadcrumbSeparator($$anchor, {});
181
+ };
182
+ $.if(node_1, ($$render) => {
183
+ if (index > 0) $$render(consequent);
184
+ });
185
+ BreadcrumbItem($.sibling(node_1, 2), {
186
+ children: ($$anchor, $$slotProps) => {
187
+ var fragment_5 = $.comment();
188
+ var node_3 = $.first_child(fragment_5);
189
+ var consequent_1 = ($$anchor) => {
190
+ BreadcrumbCurrent($$anchor, {
191
+ children: ($$anchor, $$slotProps) => {
192
+ $.next();
193
+ var text_1 = $.text();
194
+ $.template_effect(() => $.set_text(text_1, $.get(text)));
195
+ $.append($$anchor, text_1);
196
+ },
197
+ $$slots: { default: true }
198
+ });
199
+ };
200
+ var alternate = ($$anchor) => {
201
+ BreadcrumbLink($$anchor, {
202
+ get href() {
203
+ return $.get(href);
204
+ },
205
+ children: ($$anchor, $$slotProps) => {
206
+ $.next();
207
+ var text_2 = $.text();
208
+ $.template_effect(() => $.set_text(text_2, $.get(text)));
209
+ $.append($$anchor, text_2);
210
+ },
211
+ $$slots: { default: true }
212
+ });
213
+ };
214
+ $.if(node_3, ($$render) => {
215
+ if (index === $.get(lastIndex)) $$render(consequent_1);
216
+ else $$render(alternate, -1);
217
+ });
218
+ $.append($$anchor, fragment_5);
219
+ },
220
+ $$slots: { default: true }
221
+ });
222
+ $.append($$anchor, fragment_3);
223
+ });
224
+ $.append($$anchor, fragment_2);
225
+ },
226
+ $$slots: { default: true }
227
+ });
228
+ },
229
+ $$slots: { default: true }
230
+ }));
231
+ }
232
+ $.pop();
233
+ }
234
+ //#endregion
235
+ //#region src/components/breadcrumb/BreadcrumbList.svelte
236
+ var rest_excludes = /* @__PURE__ */ new Set([
237
+ "$$slots",
238
+ "$$events",
239
+ "$$legacy",
240
+ "children"
241
+ ]);
242
+ var root = $.from_html(`<ol><!></ol>`);
243
+ function BreadcrumbList$1($$anchor, $$props) {
244
+ $.push($$props, true);
245
+ injectComponentStyle("breadcrumb");
246
+ let rest = $.rest_props($$props, rest_excludes);
247
+ var ol = root();
248
+ $.attribute_effect(ol, () => ({
249
+ ...rest,
250
+ "data-scope": "breadcrumb",
251
+ "data-part": "list"
252
+ }));
253
+ var node = $.child(ol);
254
+ $.snippet(node, () => $$props.children ?? $.noop);
255
+ $.reset(ol);
256
+ $.append($$anchor, ol);
257
+ $.pop();
258
+ }
185
259
  //#endregion
186
- export { Breadcrumb as t };
260
+ export { BreadcrumbItem as a, BreadcrumbLink as i, BreadcrumbFacade as n, BreadcrumbCurrent as o, BreadcrumbSeparator as r, Breadcrumb as s, BreadcrumbList$1 as t };
@@ -1,4 +1,4 @@
1
- import { t as InternalIcon } from "./InternalIcon-CbfKieOs.mjs";
1
+ import { t as InternalIcon } from "./InternalIcon-Dr81WIG1.mjs";
2
2
  import "svelte/internal/disclose-version";
3
3
  import * as $ from "svelte/internal/client";
4
4
  import { injectComponentStyle } from "@bysages/core/styling";
@@ -1,5 +1,5 @@
1
1
  import { t as useElementId } from "./id-Alz497yI.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,5 +1,5 @@
1
1
  import { t as useElementId } from "./id-Alz497yI.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 { t as InternalIcon } from "./InternalIcon-CbfKieOs.mjs";
1
+ import { t as InternalIcon } from "./InternalIcon-Dr81WIG1.mjs";
2
2
  import "svelte/internal/disclose-version";
3
3
  import "svelte/internal/client";
4
4
  import "svelte/internal/flags/legacy";
@@ -1,5 +1,5 @@
1
1
  import { t as useElementId } from "./id-Alz497yI.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,5 +1,5 @@
1
1
  import { t as useElementId } from "./id-Alz497yI.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";
@@ -88,7 +88,7 @@ function Collapsible$1($$anchor, $$props) {
88
88
  $.component(node_1, () => Collapsible.Indicator, ($$anchor, ArkCollapsible_Indicator) => {
89
89
  ArkCollapsible_Indicator($$anchor, {
90
90
  children: ($$anchor, $$slotProps) => {
91
- InternalIcon($$anchor, { name: "chevron-down" });
91
+ InternalIcon($$anchor, { name: "chevron-right" });
92
92
  },
93
93
  $$slots: { default: true }
94
94
  });
@@ -1,5 +1,5 @@
1
1
  import { t as useElementId } from "./id-Alz497yI.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";
@@ -49,6 +49,7 @@ var rest_excludes = /* @__PURE__ */ new Set([
49
49
  "value",
50
50
  "defaultValue",
51
51
  "label",
52
+ "swatches",
52
53
  "disabled",
53
54
  "invalid",
54
55
  "required",
@@ -56,11 +57,11 @@ var rest_excludes = /* @__PURE__ */ new Set([
56
57
  ]);
57
58
  var root = $.from_html(`<!> <!>`, 1);
58
59
  var root_1 = $.from_html(`<!> <!> <!>`, 1);
59
- var root_2 = $.from_html(`<!> <div data-scope="color-picker" data-part="channel-controls"><!> <div data-scope="color-picker" data-part="channel-sliders"><!> <!></div></div> <!>`, 1);
60
+ var root_2 = $.from_html(`<!> <div data-scope="color-picker" data-part="channel-controls"><!> <div data-scope="color-picker" data-part="channel-sliders"><!> <!></div></div> <!> <!>`, 1);
60
61
  var root_3 = $.from_html(`<!> <!> <!> <!> <!>`, 1);
61
62
  function ColorPicker$1($$anchor, $$props) {
62
63
  $.push($$props, true);
63
- let value = $.prop($$props, "value", 15), disabled = $.prop($$props, "disabled", 3, false), invalid = $.prop($$props, "invalid", 3, false), required = $.prop($$props, "required", 3, false), rest = $.rest_props($$props, rest_excludes);
64
+ let value = $.prop($$props, "value", 15), swatches = $.prop($$props, "swatches", 19, () => []), disabled = $.prop($$props, "disabled", 3, false), invalid = $.prop($$props, "invalid", 3, false), required = $.prop($$props, "required", 3, false), rest = $.rest_props($$props, rest_excludes);
64
65
  ColorPickerRoot($$anchor, $.spread_props({
65
66
  get defaultValue() {
66
67
  return $$props.defaultValue;
@@ -219,7 +220,65 @@ function ColorPicker$1($$anchor, $$props) {
219
220
  $.reset(div_1);
220
221
  $.reset(div);
221
222
  var node_20 = $.sibling(div, 2);
222
- $.component(node_20, () => ColorPicker.ChannelInput, ($$anchor, ArkColorPicker_ChannelInput_1) => {
223
+ var consequent_1 = ($$anchor) => {
224
+ var fragment_12 = $.comment();
225
+ var node_21 = $.first_child(fragment_12);
226
+ $.component(node_21, () => ColorPicker.SwatchGroup, ($$anchor, ArkColorPicker_SwatchGroup) => {
227
+ ArkColorPicker_SwatchGroup($$anchor, {
228
+ children: ($$anchor, $$slotProps) => {
229
+ var fragment_13 = $.comment();
230
+ var node_22 = $.first_child(fragment_13);
231
+ $.each(node_22, 16, swatches, (color) => color, ($$anchor, color) => {
232
+ var fragment_14 = $.comment();
233
+ var node_23 = $.first_child(fragment_14);
234
+ $.component(node_23, () => ColorPicker.SwatchTrigger, ($$anchor, ArkColorPicker_SwatchTrigger) => {
235
+ ArkColorPicker_SwatchTrigger($$anchor, {
236
+ get value() {
237
+ return color;
238
+ },
239
+ children: ($$anchor, $$slotProps) => {
240
+ var fragment_15 = $.comment();
241
+ var node_24 = $.first_child(fragment_15);
242
+ $.component(node_24, () => ColorPicker.Swatch, ($$anchor, ArkColorPicker_Swatch) => {
243
+ ArkColorPicker_Swatch($$anchor, {
244
+ get value() {
245
+ return color;
246
+ },
247
+ children: ($$anchor, $$slotProps) => {
248
+ var fragment_16 = $.comment();
249
+ var node_25 = $.first_child(fragment_16);
250
+ $.component(node_25, () => ColorPicker.SwatchIndicator, ($$anchor, ArkColorPicker_SwatchIndicator) => {
251
+ ArkColorPicker_SwatchIndicator($$anchor, {
252
+ children: ($$anchor, $$slotProps) => {
253
+ InternalIcon($$anchor, { name: "check" });
254
+ },
255
+ $$slots: { default: true }
256
+ });
257
+ });
258
+ $.append($$anchor, fragment_16);
259
+ },
260
+ $$slots: { default: true }
261
+ });
262
+ });
263
+ $.append($$anchor, fragment_15);
264
+ },
265
+ $$slots: { default: true }
266
+ });
267
+ });
268
+ $.append($$anchor, fragment_14);
269
+ });
270
+ $.append($$anchor, fragment_13);
271
+ },
272
+ $$slots: { default: true }
273
+ });
274
+ });
275
+ $.append($$anchor, fragment_12);
276
+ };
277
+ $.if(node_20, ($$render) => {
278
+ if (swatches().length > 0) $$render(consequent_1);
279
+ });
280
+ var node_26 = $.sibling(node_20, 2);
281
+ $.component(node_26, () => ColorPicker.ChannelInput, ($$anchor, ArkColorPicker_ChannelInput_1) => {
223
282
  ArkColorPicker_ChannelInput_1($$anchor, { channel: "hex" });
224
283
  });
225
284
  $.append($$anchor, fragment_7);
@@ -232,12 +291,12 @@ function ColorPicker$1($$anchor, $$props) {
232
291
  $$slots: { default: true }
233
292
  });
234
293
  });
235
- var node_21 = $.sibling(node_7, 2);
236
- $.component(node_21, () => ColorPicker.HiddenInput, ($$anchor, ArkColorPicker_HiddenInput) => {
294
+ var node_27 = $.sibling(node_7, 2);
295
+ $.component(node_27, () => ColorPicker.HiddenInput, ($$anchor, ArkColorPicker_HiddenInput) => {
237
296
  ArkColorPicker_HiddenInput($$anchor, {});
238
297
  });
239
- var node_22 = $.sibling(node_21, 2);
240
- $.snippet(node_22, () => $$props.children ?? $.noop);
298
+ var node_28 = $.sibling(node_27, 2);
299
+ $.snippet(node_28, () => $$props.children ?? $.noop);
241
300
  $.append($$anchor, fragment_1);
242
301
  },
243
302
  $$slots: { default: true }
@@ -1,5 +1,5 @@
1
1
  import { t as useElementId } from "./id-Alz497yI.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,5 +1,5 @@
1
1
  import { t as useElementId } from "./id-Alz497yI.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,5 +1,5 @@
1
1
  import { t as useElementId } from "./id-Alz497yI.mjs";
2
- import { t as iconHtml } from "./icon-C6ohnKuW.mjs";
2
+ import { n as iconHtml } from "./icon-CKL_BxrZ.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,5 +1,5 @@
1
1
  import { t as useElementId } from "./id-Alz497yI.mjs";
2
- import { t as iconHtml } from "./icon-C6ohnKuW.mjs";
2
+ import { n as iconHtml } from "./icon-CKL_BxrZ.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,5 +1,5 @@
1
1
  import { t as useElementId } from "./id-Alz497yI.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,5 +1,5 @@
1
1
  import { t as useElementId } from "./id-Alz497yI.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,3 +1,4 @@
1
+ import { t as InternalIcon } from "./InternalIcon-Dr81WIG1.mjs";
1
2
  import { t as Button } from "./button-Cl45zjdj.mjs";
2
3
  import { n as useComponentMessages } from "./messages-DNzA55pH.mjs";
3
4
  import "svelte/internal/disclose-version";
@@ -13,7 +14,7 @@ function useFloatButton() {
13
14
  }
14
15
  //#endregion
15
16
  //#region src/components/float-button/FloatButton.svelte
16
- var rest_excludes = /* @__PURE__ */ new Set([
17
+ var rest_excludes$1 = /* @__PURE__ */ new Set([
17
18
  "$$slots",
18
19
  "$$events",
19
20
  "$$legacy",
@@ -22,11 +23,11 @@ var rest_excludes = /* @__PURE__ */ new Set([
22
23
  "size",
23
24
  "children"
24
25
  ]);
25
- var root$1 = $.from_html(`<div><!></div>`);
26
- function FloatButton$1($$anchor, $$props) {
26
+ var root$2 = $.from_html(`<div><!></div>`);
27
+ function FloatButton($$anchor, $$props) {
27
28
  $.push($$props, true);
28
29
  injectComponentStyle("float-button");
29
- let open = $.prop($$props, "open", 15), placement = $.prop($$props, "placement", 3, "bottom-end"), size = $.prop($$props, "size", 3, "lg"), rest = $.rest_props($$props, rest_excludes);
30
+ let open = $.prop($$props, "open", 15), placement = $.prop($$props, "placement", 3, "bottom-end"), size = $.prop($$props, "size", 3, "lg"), rest = $.rest_props($$props, rest_excludes$1);
30
31
  let localOpen = $.state(false);
31
32
  const isOpen = $.derived(() => open() ?? $.get(localOpen));
32
33
  function setOpen(value) {
@@ -43,7 +44,7 @@ function FloatButton$1($$anchor, $$props) {
43
44
  toggle: () => setOpen(!$.get(isOpen)),
44
45
  close: () => setOpen(false)
45
46
  });
46
- var div = root$1();
47
+ var div = root$2();
47
48
  $.attribute_effect(div, () => ({
48
49
  ...rest,
49
50
  "data-scope": "float-button",
@@ -59,7 +60,7 @@ function FloatButton$1($$anchor, $$props) {
59
60
  }
60
61
  //#endregion
61
62
  //#region src/components/float-button/FloatButtonItem.svelte
62
- var root = $.from_html(`<div data-scope="float-button" data-part="item"><!> <span data-scope="float-button" data-part="item-label" aria-hidden="true"> </span></div>`);
63
+ var root$1 = $.from_html(`<div data-scope="float-button" data-part="item"><!> <span data-scope="float-button" data-part="item-label" aria-hidden="true"> </span></div>`);
63
64
  function FloatButtonItem($$anchor, $$props) {
64
65
  $.push($$props, true);
65
66
  injectComponentStyle("float-button");
@@ -70,7 +71,7 @@ function FloatButtonItem($$anchor, $$props) {
70
71
  md: "sm",
71
72
  sm: "sm"
72
73
  };
73
- var div = root();
74
+ var div = root$1();
74
75
  var node = $.child(div);
75
76
  {
76
77
  let $0 = $.derived(() => context ? STEP_DOWN[context.size] : "md");
@@ -142,13 +143,96 @@ function FloatButtonTrigger($$anchor, $$props) {
142
143
  $.pop();
143
144
  }
144
145
  //#endregion
145
- //#region src/components/float-button/index.ts
146
- /** A floating action and its fanned-out alternatives — FAB and speed
147
- * dial in one family. Root, Trigger, Item. */
148
- const FloatButton = Object.assign(FloatButton$1, {
149
- Root: FloatButton$1,
150
- Trigger: FloatButtonTrigger,
151
- Item: FloatButtonItem
152
- });
146
+ //#region src/components/float-button/FloatButtonFacade.svelte
147
+ var rest_excludes = /* @__PURE__ */ new Set([
148
+ "$$slots",
149
+ "$$events",
150
+ "$$legacy",
151
+ "label",
152
+ "actions",
153
+ "placement",
154
+ "size",
155
+ "defaultOpen",
156
+ "open",
157
+ "children"
158
+ ]);
159
+ var root = $.from_html(`<!> <!>`, 1);
160
+ function FloatButtonFacade($$anchor, $$props) {
161
+ $.push($$props, true);
162
+ injectComponentStyle("float-button");
163
+ let actions = $.prop($$props, "actions", 19, () => []), placement = $.prop($$props, "placement", 3, "bottom-end"), size = $.prop($$props, "size", 3, "lg"), defaultOpen = $.prop($$props, "defaultOpen", 3, false), open = $.prop($$props, "open", 31, () => $.proxy(defaultOpen())), rest = $.rest_props($$props, rest_excludes);
164
+ FloatButton($$anchor, $.spread_props({
165
+ get placement() {
166
+ return placement();
167
+ },
168
+ get size() {
169
+ return size();
170
+ }
171
+ }, () => rest, {
172
+ get open() {
173
+ return open();
174
+ },
175
+ set open($$value) {
176
+ open($$value);
177
+ },
178
+ children: ($$anchor, $$slotProps) => {
179
+ var fragment_1 = $.comment();
180
+ var node = $.first_child(fragment_1);
181
+ var consequent = ($$anchor) => {
182
+ var fragment_2 = $.comment();
183
+ var node_1 = $.first_child(fragment_2);
184
+ $.snippet(node_1, () => $$props.children);
185
+ $.append($$anchor, fragment_2);
186
+ };
187
+ var alternate = ($$anchor) => {
188
+ var fragment_3 = root();
189
+ var node_2 = $.first_child(fragment_3);
190
+ FloatButtonTrigger(node_2, {
191
+ get label() {
192
+ return $$props.label;
193
+ },
194
+ children: ($$anchor, $$slotProps) => {
195
+ InternalIcon($$anchor, { name: "plus" });
196
+ },
197
+ $$slots: { default: true }
198
+ });
199
+ var node_3 = $.sibling(node_2, 2);
200
+ $.each(node_3, 17, actions, $.index, ($$anchor, action) => {
201
+ {
202
+ let $0 = $.derived(() => $.get(action).disabled ?? false);
203
+ FloatButtonItem($$anchor, {
204
+ get label() {
205
+ return $.get(action).label;
206
+ },
207
+ get disabled() {
208
+ return $.get($0);
209
+ },
210
+ get onclick() {
211
+ return $.get(action).onclick;
212
+ },
213
+ children: ($$anchor, $$slotProps) => {
214
+ {
215
+ let $0 = $.derived(() => $.get(action).icon ?? "pencil");
216
+ InternalIcon($$anchor, { get name() {
217
+ return $.get($0);
218
+ } });
219
+ }
220
+ },
221
+ $$slots: { default: true }
222
+ });
223
+ }
224
+ });
225
+ $.append($$anchor, fragment_3);
226
+ };
227
+ $.if(node, ($$render) => {
228
+ if ($$props.children) $$render(consequent);
229
+ else $$render(alternate, -1);
230
+ });
231
+ $.append($$anchor, fragment_1);
232
+ },
233
+ $$slots: { default: true }
234
+ }));
235
+ $.pop();
236
+ }
153
237
  //#endregion
154
- export { FLOAT_BUTTON_KEY as n, FloatButton as t };
238
+ export { FLOAT_BUTTON_KEY as a, FloatButton as i, FloatButtonTrigger as n, FloatButtonItem as r, FloatButtonFacade as t };