@bysages/svelte 0.4.1 → 0.4.2

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 (162) hide show
  1. package/dist/{Accordion-BkqRwmjT.mjs → Accordion-DF1vzXDg.mjs} +1 -1
  2. package/dist/Calendar-CWaU4MGJ.mjs +589 -0
  3. package/dist/{Carousel-D-v0Bza0.mjs → Carousel-BWWwu5Ma.mjs} +1 -1
  4. package/dist/{Checkbox-Dt_QeNLA.mjs → Checkbox-BZb8IR25.mjs} +1 -1
  5. package/dist/{ChevronIcon-BrLZJ0NH.mjs → ChevronIcon-C-MKLsfA.mjs} +1 -1
  6. package/dist/{Clipboard-BHy1YrlL.mjs → Clipboard-DBgbIGjV.mjs} +1 -1
  7. package/dist/{Collapsible-DKTSOxEd.mjs → Collapsible-CZ8qFLzP.mjs} +1 -1
  8. package/dist/{ColorPicker-DK1jZSSj.mjs → ColorPicker-D6PGvfQf.mjs} +1 -1
  9. package/dist/{Combobox-BNzikc6h.mjs → Combobox-Ba2u_SqJ.mjs} +1 -1
  10. package/dist/{DatePicker-BGt2KYR_.mjs → DatePicker-Dm81GmmF.mjs} +1 -1
  11. package/dist/{descriptions-DGuEJmgX.mjs → Descriptions-C1qZ05Ph.mjs} +2 -13
  12. package/dist/{Dialog-C_fbKqoA.mjs → Dialog-BbDr030S.mjs} +1 -1
  13. package/dist/{Drawer-DOOnBSMq.mjs → Drawer-C1r1wz3V.mjs} +1 -1
  14. package/dist/{Editable-Btl-QYDY.mjs → Editable-hjSbhWMK.mjs} +1 -1
  15. package/dist/{FileUpload-DHZf3u4d.mjs → FileUpload-C6JBpvet.mjs} +1 -1
  16. package/dist/{FloatingPanel-CkWYZ4MO.mjs → FloatingPanel-2z-iuVPc.mjs} +1 -1
  17. package/dist/{ImageViewer-CuTn5ho6.mjs → ImageViewer-8tDJvkkb.mjs} +1 -1
  18. package/dist/{InternalIcon-Clwbj4MY.mjs → InternalIcon-CbfKieOs.mjs} +1 -1
  19. package/dist/{JsonTreeViewTree-IqoSdRQR.mjs → JsonTreeViewTree-DkusAr3j.mjs} +1 -1
  20. package/dist/{Listbox-BQTnipRA.mjs → Listbox-gAL5Q59b.mjs} +1 -1
  21. package/dist/{Menu-CxPWabm-.mjs → Menu-BiwHDpdz.mjs} +1 -1
  22. package/dist/{NumberInput-FqS47j4x.mjs → NumberInput-B2gPYuJX.mjs} +1 -1
  23. package/dist/Pagination-f8XiX-Cs.mjs +210 -0
  24. package/dist/{PasswordInput-DxtreG-T.mjs → PasswordInput-BhlJF3Jd.mjs} +1 -1
  25. package/dist/{Popover-C2oWItCV.mjs → Popover-Dl-QAFG_.mjs} +1 -1
  26. package/dist/Progress-Byx2qRcT.mjs +191 -0
  27. package/dist/{RatingGroup-Btui4It7.mjs → RatingGroup-DTVzY6BA.mjs} +1 -1
  28. package/dist/{Select-Dv0dqYII.mjs → Select-5AJHEmMi.mjs} +1 -1
  29. package/dist/{StepsItem-BrDhhxjY.mjs → StepsItem-KwQ6SrNR.mjs} +46 -27
  30. package/dist/{Swap-DSxNn2gk.mjs → Swap-CfgxrCzJ.mjs} +1 -1
  31. package/dist/{TagsInput-Bz_NUGXo.mjs → TagsInput-DVuAOpBt.mjs} +1 -1
  32. package/dist/{Toast-B15KZZH0.mjs → Toast-BHSRo7N7.mjs} +1 -1
  33. package/dist/{ToggleGroup-NRzTANnd.mjs → ToggleGroup-DgBoC0hi.mjs} +1 -1
  34. package/dist/{TreeViewNodeCheckbox-l1l6EYyz.mjs → TreeViewNodeCheckbox-DGfG5yIl.mjs} +1 -1
  35. package/dist/{ai-attachments-BuH2tjOv.mjs → ai-attachments-nFUAAXoM.mjs} +1 -1
  36. package/dist/{ai-prompt-input-CV683FB3.mjs → ai-prompt-input-z0j3gpgu.mjs} +59 -54
  37. package/dist/{ai-reasoning-CesP6H0y.mjs → ai-reasoning-C2Ffu52i.mjs} +1 -1
  38. package/dist/{ai-response-Bu-iNsC-.mjs → ai-response-Bczv0TaC.mjs} +1 -1
  39. package/dist/{ai-tool-pBb7sCz2.mjs → ai-tool-DuhNqTWQ.mjs} +1 -1
  40. package/dist/{alert-ClMd57tZ.mjs → alert-Cji6_TKm.mjs} +1 -1
  41. package/dist/{back-top-CJXLTyyZ.mjs → back-top-WBPZ45WG.mjs} +1 -1
  42. package/dist/{banner-fF1_G7qu.mjs → banner-vdEHwWWw.mjs} +1 -1
  43. package/dist/{cascade-select-C4OSlWpx.mjs → cascade-select-CWjvNB4G.mjs} +1 -1
  44. package/dist/{checkbox-group-CZSQvm6H.mjs → checkbox-group-JVSnrwhR.mjs} +1 -1
  45. package/dist/components/accordion/index.d.mts +1 -1
  46. package/dist/components/accordion/index.mjs +1 -1
  47. package/dist/components/ai/index.mjs +4 -4
  48. package/dist/components/ai-attachments/index.mjs +1 -1
  49. package/dist/components/ai-prompt-input/index.mjs +1 -1
  50. package/dist/components/ai-reasoning/index.mjs +1 -1
  51. package/dist/components/ai-response/index.mjs +1 -1
  52. package/dist/components/ai-tool/index.mjs +1 -1
  53. package/dist/components/alert/index.mjs +1 -1
  54. package/dist/components/back-top/index.mjs +1 -1
  55. package/dist/components/banner/index.mjs +1 -1
  56. package/dist/components/calendar/index.d.mts +1 -1
  57. package/dist/components/calendar/index.mjs +9 -1
  58. package/dist/components/carousel/index.d.mts +1 -1
  59. package/dist/components/carousel/index.mjs +1 -1
  60. package/dist/components/cascade-select/index.mjs +1 -1
  61. package/dist/components/checkbox/index.d.mts +1 -1
  62. package/dist/components/checkbox/index.mjs +1 -1
  63. package/dist/components/checkbox-group/index.mjs +1 -1
  64. package/dist/components/chip/index.d.mts +1 -1
  65. package/dist/components/clipboard/index.d.mts +1 -1
  66. package/dist/components/clipboard/index.mjs +1 -1
  67. package/dist/components/collapsible/index.d.mts +1 -1
  68. package/dist/components/collapsible/index.mjs +1 -1
  69. package/dist/components/color-picker/index.d.mts +1 -1
  70. package/dist/components/color-picker/index.mjs +1 -1
  71. package/dist/components/combobox/index.d.mts +1 -1
  72. package/dist/components/combobox/index.mjs +1 -1
  73. package/dist/components/date-picker/index.d.mts +1 -1
  74. package/dist/components/date-picker/index.mjs +1 -1
  75. package/dist/components/descriptions/index.d.mts +1 -1
  76. package/dist/components/descriptions/index.mjs +13 -1
  77. package/dist/components/dialog/index.d.mts +1 -1
  78. package/dist/components/dialog/index.mjs +1 -1
  79. package/dist/components/drawer/index.d.mts +1 -1
  80. package/dist/components/drawer/index.mjs +1 -1
  81. package/dist/components/dynamic-input/index.mjs +1 -1
  82. package/dist/components/editable/index.d.mts +1 -1
  83. package/dist/components/editable/index.mjs +1 -1
  84. package/dist/components/file-upload/index.d.mts +1 -1
  85. package/dist/components/file-upload/index.mjs +1 -1
  86. package/dist/components/floating-panel/index.d.mts +1 -1
  87. package/dist/components/floating-panel/index.mjs +1 -1
  88. package/dist/components/form/index.d.mts +1 -1
  89. package/dist/components/image/index.mjs +1 -1
  90. package/dist/components/image-viewer/index.d.mts +1 -1
  91. package/dist/components/image-viewer/index.mjs +1 -1
  92. package/dist/components/json-tree-view/index.d.mts +1 -1
  93. package/dist/components/json-tree-view/index.mjs +1 -1
  94. package/dist/components/listbox/index.d.mts +1 -1
  95. package/dist/components/listbox/index.mjs +1 -1
  96. package/dist/components/media-player/index.mjs +1 -1
  97. package/dist/components/menu/index.d.mts +1 -1
  98. package/dist/components/menu/index.mjs +1 -1
  99. package/dist/components/number-input/index.d.mts +1 -1
  100. package/dist/components/number-input/index.mjs +1 -1
  101. package/dist/components/order-list/index.mjs +1 -1
  102. package/dist/components/pagination/index.d.mts +1 -1
  103. package/dist/components/pagination/index.mjs +1 -1
  104. package/dist/components/password-input/index.d.mts +1 -1
  105. package/dist/components/password-input/index.mjs +1 -1
  106. package/dist/components/popover/index.d.mts +1 -1
  107. package/dist/components/popover/index.mjs +1 -1
  108. package/dist/components/progress/index.d.mts +1 -1
  109. package/dist/components/progress/index.mjs +1 -1
  110. package/dist/components/rating-group/index.d.mts +1 -1
  111. package/dist/components/rating-group/index.mjs +1 -1
  112. package/dist/components/select/index.d.mts +1 -1
  113. package/dist/components/select/index.mjs +1 -1
  114. package/dist/components/split-button/index.mjs +1 -1
  115. package/dist/components/steps/index.d.mts +1 -1
  116. package/dist/components/steps/index.mjs +1 -1
  117. package/dist/components/swap/index.d.mts +1 -1
  118. package/dist/components/swap/index.mjs +1 -1
  119. package/dist/components/table/index.d.mts +1 -1
  120. package/dist/components/table/index.mjs +1 -1
  121. package/dist/components/tag/index.d.mts +2 -0
  122. package/dist/components/tag/index.mjs +2 -0
  123. package/dist/components/tags-input/index.d.mts +1 -1
  124. package/dist/components/tags-input/index.mjs +1 -1
  125. package/dist/components/toast/index.d.mts +1 -1
  126. package/dist/components/toast/index.mjs +1 -1
  127. package/dist/components/toggle-group/index.d.mts +1 -1
  128. package/dist/components/toggle-group/index.mjs +1 -1
  129. package/dist/components/transfer/index.mjs +1 -1
  130. package/dist/components/tree-select/index.mjs +1 -1
  131. package/dist/components/tree-view/index.d.mts +1 -1
  132. package/dist/components/tree-view/index.mjs +1 -1
  133. package/dist/{dynamic-input-5H3wZSDs.mjs → dynamic-input-BDF0xRDd.mjs} +1 -1
  134. package/dist/{icon-lWVQxDG6.mjs → icon-C6ohnKuW.mjs} +4 -3
  135. package/dist/{image-ojKJgHcu.mjs → image-BCYdfhgr.mjs} +1 -1
  136. package/dist/{index-BfpbvgWG.d.mts → index-BDEuWWx7.d.mts} +1 -1
  137. package/dist/index-BEZCr62O.d.mts +34 -0
  138. package/dist/{index-Cbc4doAM.d.mts → index-BpC1s3zv.d.mts} +6 -10
  139. package/dist/{index-CGKWHB6A.d.mts → index-C4FVU8_3.d.mts} +1 -1
  140. package/dist/{index-DXXhfdQC.d.mts → index-CA0W58ZE.d.mts} +2 -0
  141. package/dist/{index-C785xRlX.d.mts → index-CFxAJ3UH.d.mts} +1 -1
  142. package/dist/index-DQL1l90b.d.mts +42 -0
  143. package/dist/{index-DXw6GBt8.d.mts → index-DTYHFIbh.d.mts} +1 -1
  144. package/dist/index-DkvQPyaW.d.mts +33 -0
  145. package/dist/{index-550dAp3p.d.mts → index-M2f9hz3z.d.mts} +1 -1
  146. package/dist/{index-COWyuYkn.d.mts → index-fIWQxtE9.d.mts} +1 -1
  147. package/dist/index.d.mts +12 -11
  148. package/dist/index.mjs +23 -22
  149. package/dist/{media-player-CfMaLa8v.mjs → media-player-085Q_gL8.mjs} +2 -2
  150. package/dist/{order-list-06iEy0em.mjs → order-list-DtAaQ6VS.mjs} +22 -1
  151. package/dist/{select-E3cvud0r.mjs → select-CqOZTmfR.mjs} +2 -2
  152. package/dist/{split-button-BIkQu0B7.mjs → split-button-18nv8J3q.mjs} +1 -1
  153. package/dist/{table-847YLjld.mjs → table-LfPEezF-.mjs} +6 -4
  154. package/dist/tag-S2DR-cEP.mjs +122 -0
  155. package/dist/{transfer-D4UANNwH.mjs → transfer-kGHh9bJH.mjs} +1 -1
  156. package/dist/{tree-select-CyjhG4ZB.mjs → tree-select-BRQjFrHA.mjs} +1 -1
  157. package/package.json +2 -2
  158. package/dist/Pagination-OpR284GX.mjs +0 -180
  159. package/dist/Progress-ZSXSq5na.mjs +0 -115
  160. package/dist/calendar-D251DqRb.mjs +0 -469
  161. package/dist/index-CMVb7mmq.d.mts +0 -1813
  162. package/dist/index-CuonhYXR.d.mts +0 -21
@@ -91,7 +91,7 @@ var rest_excludes = /* @__PURE__ */ new Set([
91
91
  ]);
92
92
  var root = $.from_html(`<!> <!>`, 1);
93
93
  var root_1 = $.from_html(`<dl><!></dl>`);
94
- function Descriptions$1($$anchor, $$props) {
94
+ function Descriptions($$anchor, $$props) {
95
95
  $.push($$props, true);
96
96
  injectComponentStyle("descriptions");
97
97
  let layout = $.prop($$props, "layout", 3, "horizontal"), bordered = $.prop($$props, "bordered", 3, false), column = $.prop($$props, "column", 3, 1), rest = $.rest_props($$props, rest_excludes);
@@ -156,15 +156,4 @@ function Descriptions$1($$anchor, $$props) {
156
156
  $.pop();
157
157
  }
158
158
  //#endregion
159
- //#region src/components/descriptions/index.ts
160
- /** A ledger laid flat: term and detail pairs in one quiet grid. The
161
- * horizontal layout reads as a table of two columns; the vertical one
162
- * stacks each pair for narrow measures. */
163
- const Descriptions = Object.assign(Descriptions$1, {
164
- Root: Descriptions$1,
165
- Item: DescriptionsItem,
166
- Term: DescriptionsTerm,
167
- Detail: DescriptionsDetail
168
- });
169
- //#endregion
170
- export { Descriptions as t };
159
+ export { DescriptionsDetail as i, DescriptionsTerm as n, DescriptionsItem as r, Descriptions as t };
@@ -1,5 +1,5 @@
1
1
  import { t as useElementId } from "./id-Alz497yI.mjs";
2
- import { t as iconHtml } from "./icon-lWVQxDG6.mjs";
2
+ import { t as iconHtml } from "./icon-C6ohnKuW.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-lWVQxDG6.mjs";
2
+ import { t as iconHtml } from "./icon-C6ohnKuW.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-Clwbj4MY.mjs";
2
+ import { t as InternalIcon } from "./InternalIcon-CbfKieOs.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-Clwbj4MY.mjs";
2
+ import { t as InternalIcon } from "./InternalIcon-CbfKieOs.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-Clwbj4MY.mjs";
2
+ import { t as InternalIcon } from "./InternalIcon-CbfKieOs.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-Clwbj4MY.mjs";
1
+ import { t as InternalIcon } from "./InternalIcon-CbfKieOs.mjs";
2
2
  import { t as Button } from "./button-Cl45zjdj.mjs";
3
3
  import { n as useComponentMessages } from "./messages-DNzA55pH.mjs";
4
4
  import { t as ButtonGroup } from "./button-group-D9mgSVlR.mjs";
@@ -1,4 +1,4 @@
1
- import { t as iconHtml } from "./icon-lWVQxDG6.mjs";
1
+ import { t as iconHtml } from "./icon-C6ohnKuW.mjs";
2
2
  import "svelte/internal/disclose-version";
3
3
  import * as $ from "svelte/internal/client";
4
4
  //#region src/internal/InternalIcon.svelte
@@ -1,5 +1,5 @@
1
1
  import { t as useElementId } from "./id-Alz497yI.mjs";
2
- import { t as InternalIcon } from "./InternalIcon-Clwbj4MY.mjs";
2
+ import { t as InternalIcon } from "./InternalIcon-CbfKieOs.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-Clwbj4MY.mjs";
2
+ import { t as InternalIcon } from "./InternalIcon-CbfKieOs.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-Clwbj4MY.mjs";
2
+ import { t as InternalIcon } from "./InternalIcon-CbfKieOs.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-Clwbj4MY.mjs";
2
+ import { t as InternalIcon } from "./InternalIcon-CbfKieOs.mjs";
3
3
  import "svelte/internal/disclose-version";
4
4
  import * as $ from "svelte/internal/client";
5
5
  import { injectComponentStyle } from "@bysages/core/styling";
@@ -0,0 +1,210 @@
1
+ import { t as useElementId } from "./id-Alz497yI.mjs";
2
+ import { t as InternalIcon } from "./InternalIcon-CbfKieOs.mjs";
3
+ import "svelte/internal/disclose-version";
4
+ import * as $ from "svelte/internal/client";
5
+ import { injectComponentStyle } from "@bysages/core/styling";
6
+ import { Pagination } from "@ark-ui/svelte/pagination";
7
+ //#region src/components/pagination/PaginationRoot.svelte
8
+ var rest_excludes$1 = /* @__PURE__ */ new Set([
9
+ "$$slots",
10
+ "$$events",
11
+ "$$legacy",
12
+ "size",
13
+ "variant",
14
+ "children"
15
+ ]);
16
+ function PaginationRoot($$anchor, $$props) {
17
+ const generatedId = $.props_id();
18
+ $.push($$props, true);
19
+ injectComponentStyle("pagination");
20
+ let size = $.prop($$props, "size", 3, "md"), variant = $.prop($$props, "variant", 3, "default"), rest = $.rest_props($$props, rest_excludes$1);
21
+ const id = $.derived(() => useElementId("pagination", generatedId, $$props.id));
22
+ var fragment = $.comment();
23
+ var node = $.first_child(fragment);
24
+ {
25
+ let $0 = $.derived(() => variant() === "simple" ? variant() : void 0);
26
+ $.component(node, () => Pagination.Root, ($$anchor, ArkPagination_Root) => {
27
+ ArkPagination_Root($$anchor, $.spread_props(() => rest, {
28
+ get id() {
29
+ return $.get(id);
30
+ },
31
+ get "data-size"() {
32
+ return size();
33
+ },
34
+ get "data-variant"() {
35
+ return $.get($0);
36
+ },
37
+ children: ($$anchor, $$slotProps) => {
38
+ var fragment_1 = $.comment();
39
+ var node_1 = $.first_child(fragment_1);
40
+ $.snippet(node_1, () => $$props.children ?? $.noop);
41
+ $.append($$anchor, fragment_1);
42
+ },
43
+ $$slots: { default: true }
44
+ }));
45
+ });
46
+ }
47
+ $.append($$anchor, fragment);
48
+ $.pop();
49
+ }
50
+ //#endregion
51
+ //#region src/components/pagination/Pagination.svelte
52
+ var rest_excludes = /* @__PURE__ */ new Set([
53
+ "$$slots",
54
+ "$$events",
55
+ "$$legacy",
56
+ "page",
57
+ "defaultValue",
58
+ "count",
59
+ "pageSize",
60
+ "defaultPageSize",
61
+ "siblingCount",
62
+ "label",
63
+ "variant",
64
+ "children"
65
+ ]);
66
+ var root = $.from_html(`<span data-scope="pagination" data-part="status"> </span>`);
67
+ var root_1 = $.from_html(`<!> <!> <!> <!>`, 1);
68
+ function Pagination$1($$anchor, $$props) {
69
+ $.push($$props, true);
70
+ const paginationContent = ($$anchor, pagination = $.noop) => {
71
+ var fragment = $.comment();
72
+ var node = $.first_child(fragment);
73
+ var consequent = ($$anchor) => {
74
+ var span = root();
75
+ var text = $.only_child(span);
76
+ $.template_effect(($0, $1) => $.set_text(text, `${$0 ?? ""} / ${$1 ?? ""}`), [() => pagination()().page, () => pagination()().totalPages]);
77
+ $.append($$anchor, span);
78
+ };
79
+ var alternate_1 = ($$anchor) => {
80
+ var fragment_1 = $.comment();
81
+ var node_1 = $.first_child(fragment_1);
82
+ $.each(node_1, 19, () => pagination()().pages, (item, index) => item.type === "page" ? item.value : `ellipsis-${index}`, ($$anchor, item, index) => {
83
+ var fragment_2 = $.comment();
84
+ var node_2 = $.first_child(fragment_2);
85
+ var consequent_1 = ($$anchor) => {
86
+ var fragment_3 = $.comment();
87
+ var node_3 = $.first_child(fragment_3);
88
+ $.component(node_3, () => Pagination.Item, ($$anchor, ArkPagination_Item) => {
89
+ ArkPagination_Item($$anchor, {
90
+ type: "page",
91
+ get value() {
92
+ return $.get(item).value;
93
+ },
94
+ children: ($$anchor, $$slotProps) => {
95
+ $.next();
96
+ var text_1 = $.text();
97
+ $.template_effect(() => $.set_text(text_1, $.get(item).value));
98
+ $.append($$anchor, text_1);
99
+ },
100
+ $$slots: { default: true }
101
+ });
102
+ });
103
+ $.append($$anchor, fragment_3);
104
+ };
105
+ var alternate = ($$anchor) => {
106
+ var fragment_5 = $.comment();
107
+ var node_4 = $.first_child(fragment_5);
108
+ $.component(node_4, () => Pagination.Ellipsis, ($$anchor, ArkPagination_Ellipsis) => {
109
+ ArkPagination_Ellipsis($$anchor, {
110
+ get index() {
111
+ return $.get(index);
112
+ },
113
+ children: ($$anchor, $$slotProps) => {
114
+ $.next();
115
+ var text_2 = $.text("…");
116
+ $.append($$anchor, text_2);
117
+ },
118
+ $$slots: { default: true }
119
+ });
120
+ });
121
+ $.append($$anchor, fragment_5);
122
+ };
123
+ $.if(node_2, ($$render) => {
124
+ if ($.get(item).type === "page") $$render(consequent_1);
125
+ else $$render(alternate, -1);
126
+ });
127
+ $.append($$anchor, fragment_2);
128
+ });
129
+ $.append($$anchor, fragment_1);
130
+ };
131
+ $.if(node, ($$render) => {
132
+ if (variant() === "simple") $$render(consequent);
133
+ else $$render(alternate_1, -1);
134
+ });
135
+ $.append($$anchor, fragment);
136
+ };
137
+ let page = $.prop($$props, "page", 15), count = $.prop($$props, "count", 3, 0), siblingCount = $.prop($$props, "siblingCount", 3, 1), variant = $.prop($$props, "variant", 3, "default"), rest = $.rest_props($$props, rest_excludes);
138
+ PaginationRoot($$anchor, $.spread_props({
139
+ get count() {
140
+ return count();
141
+ },
142
+ get defaultPage() {
143
+ return $$props.defaultValue;
144
+ },
145
+ get pageSize() {
146
+ return $$props.pageSize;
147
+ },
148
+ get defaultPageSize() {
149
+ return $$props.defaultPageSize;
150
+ },
151
+ get siblingCount() {
152
+ return siblingCount();
153
+ },
154
+ get variant() {
155
+ return variant();
156
+ },
157
+ get "aria-label"() {
158
+ return $$props.label;
159
+ }
160
+ }, () => rest, {
161
+ get page() {
162
+ return page();
163
+ },
164
+ set page($$value) {
165
+ page($$value);
166
+ },
167
+ children: ($$anchor, $$slotProps) => {
168
+ var fragment_7 = root_1();
169
+ var node_5 = $.first_child(fragment_7);
170
+ $.component(node_5, () => Pagination.PrevTrigger, ($$anchor, ArkPagination_PrevTrigger) => {
171
+ ArkPagination_PrevTrigger($$anchor, {
172
+ "aria-label": "Previous page",
173
+ children: ($$anchor, $$slotProps) => {
174
+ InternalIcon($$anchor, { name: "chevron-left" });
175
+ },
176
+ $$slots: { default: true }
177
+ });
178
+ });
179
+ var node_6 = $.sibling(node_5, 2);
180
+ {
181
+ const render = ($$anchor, pagination = $.noop) => {
182
+ paginationContent($$anchor, pagination);
183
+ };
184
+ $.component(node_6, () => Pagination.Context, ($$anchor, ArkPagination_Context) => {
185
+ ArkPagination_Context($$anchor, {
186
+ render,
187
+ $$slots: { render: true }
188
+ });
189
+ });
190
+ }
191
+ var node_7 = $.sibling(node_6, 2);
192
+ $.component(node_7, () => Pagination.NextTrigger, ($$anchor, ArkPagination_NextTrigger) => {
193
+ ArkPagination_NextTrigger($$anchor, {
194
+ "aria-label": "Next page",
195
+ children: ($$anchor, $$slotProps) => {
196
+ InternalIcon($$anchor, { name: "chevron-right" });
197
+ },
198
+ $$slots: { default: true }
199
+ });
200
+ });
201
+ var node_8 = $.sibling(node_7, 2);
202
+ $.snippet(node_8, () => $$props.children ?? $.noop);
203
+ $.append($$anchor, fragment_7);
204
+ },
205
+ $$slots: { default: true }
206
+ }));
207
+ $.pop();
208
+ }
209
+ //#endregion
210
+ export { PaginationRoot as n, Pagination$1 as t };
@@ -1,5 +1,5 @@
1
1
  import { t as useElementId } from "./id-Alz497yI.mjs";
2
- import { t as InternalIcon } from "./InternalIcon-Clwbj4MY.mjs";
2
+ import { t as InternalIcon } from "./InternalIcon-CbfKieOs.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-lWVQxDG6.mjs";
2
+ import { t as iconHtml } from "./icon-C6ohnKuW.mjs";
3
3
  import "svelte/internal/disclose-version";
4
4
  import * as $ from "svelte/internal/client";
5
5
  import { injectComponentStyle } from "@bysages/core/styling";
@@ -0,0 +1,191 @@
1
+ import { t as useElementId } from "./id-Alz497yI.mjs";
2
+ import "svelte/internal/disclose-version";
3
+ import * as $ from "svelte/internal/client";
4
+ import { injectComponentStyle } from "@bysages/core/styling";
5
+ import { Progress } from "@ark-ui/svelte/progress";
6
+ //#region src/components/progress/ProgressRoot.svelte
7
+ var rest_excludes$1 = /* @__PURE__ */ new Set([
8
+ "$$slots",
9
+ "$$events",
10
+ "$$legacy",
11
+ "size",
12
+ "children"
13
+ ]);
14
+ function ProgressRoot($$anchor, $$props) {
15
+ const generatedId = $.props_id();
16
+ $.push($$props, true);
17
+ injectComponentStyle("progress");
18
+ let size = $.prop($$props, "size", 3, "md"), rest = $.rest_props($$props, rest_excludes$1);
19
+ const id = $.derived(() => useElementId("progress", generatedId, $$props.id));
20
+ var fragment = $.comment();
21
+ var node = $.first_child(fragment);
22
+ $.component(node, () => Progress.Root, ($$anchor, ArkProgress_Root) => {
23
+ ArkProgress_Root($$anchor, $.spread_props(() => rest, {
24
+ get id() {
25
+ return $.get(id);
26
+ },
27
+ get "data-size"() {
28
+ return size();
29
+ },
30
+ children: ($$anchor, $$slotProps) => {
31
+ var fragment_1 = $.comment();
32
+ var node_1 = $.first_child(fragment_1);
33
+ $.snippet(node_1, () => $$props.children ?? $.noop);
34
+ $.append($$anchor, fragment_1);
35
+ },
36
+ $$slots: { default: true }
37
+ }));
38
+ });
39
+ $.append($$anchor, fragment);
40
+ $.pop();
41
+ }
42
+ //#endregion
43
+ //#region src/components/progress/Progress.svelte
44
+ var rest_excludes = /* @__PURE__ */ new Set([
45
+ "$$slots",
46
+ "$$events",
47
+ "$$legacy",
48
+ "value",
49
+ "defaultValue",
50
+ "min",
51
+ "max",
52
+ "label",
53
+ "variant",
54
+ "size",
55
+ "disabled",
56
+ "children"
57
+ ]);
58
+ var root = $.from_html(`<div data-scope="progress" data-part="view" data-view="dashboard"><div aria-hidden="true" data-scope="progress" data-part="dash-ring"></div> <!></div>`);
59
+ var root_1 = $.from_html(`<!> <!> <!>`, 1);
60
+ function Progress$1($$anchor, $$props) {
61
+ $.push($$props, true);
62
+ let value = $.prop($$props, "value", 15), variant = $.prop($$props, "variant", 3, "linear"), size = $.prop($$props, "size", 3, "md"), disabled = $.prop($$props, "disabled", 3, false), rest = $.rest_props($$props, rest_excludes);
63
+ const dashboardPercent = $.derived(() => {
64
+ const lower = $$props.min ?? 0;
65
+ const upper = $$props.max ?? 100;
66
+ const percent = ((value() ?? $$props.defaultValue ?? lower + (upper - lower) / 2) - lower) / (upper - lower) * 100;
67
+ return !Number.isFinite(percent) ? 0 : Math.min(100, Math.max(0, percent));
68
+ });
69
+ ProgressRoot($$anchor, $.spread_props({
70
+ get defaultValue() {
71
+ return $$props.defaultValue;
72
+ },
73
+ get min() {
74
+ return $$props.min;
75
+ },
76
+ get max() {
77
+ return $$props.max;
78
+ },
79
+ get disabled() {
80
+ return disabled();
81
+ },
82
+ get size() {
83
+ return size();
84
+ },
85
+ get "data-variant"() {
86
+ return variant();
87
+ }
88
+ }, () => rest, {
89
+ get value() {
90
+ return value();
91
+ },
92
+ set value($$value) {
93
+ value($$value);
94
+ },
95
+ children: ($$anchor, $$slotProps) => {
96
+ var fragment_1 = root_1();
97
+ var node = $.first_child(fragment_1);
98
+ var consequent = ($$anchor) => {
99
+ var fragment_2 = $.comment();
100
+ var node_1 = $.first_child(fragment_2);
101
+ $.component(node_1, () => Progress.Label, ($$anchor, ArkProgress_Label) => {
102
+ ArkProgress_Label($$anchor, {
103
+ children: ($$anchor, $$slotProps) => {
104
+ $.next();
105
+ var text = $.text();
106
+ $.template_effect(() => $.set_text(text, $$props.label));
107
+ $.append($$anchor, text);
108
+ },
109
+ $$slots: { default: true }
110
+ });
111
+ });
112
+ $.append($$anchor, fragment_2);
113
+ };
114
+ $.if(node, ($$render) => {
115
+ if ($$props.label) $$render(consequent);
116
+ });
117
+ var node_2 = $.sibling(node, 2);
118
+ var consequent_1 = ($$anchor) => {
119
+ var div = root();
120
+ var div_1 = $.child(div);
121
+ let styles;
122
+ var node_3 = $.sibling(div_1, 2);
123
+ $.component(node_3, () => Progress.ValueText, ($$anchor, ArkProgress_ValueText) => {
124
+ ArkProgress_ValueText($$anchor, {});
125
+ });
126
+ $.reset(div);
127
+ $.template_effect(($0) => styles = $.set_style(div_1, "", styles, { "--percent": $0 }), [() => String($.get(dashboardPercent))]);
128
+ $.append($$anchor, div);
129
+ };
130
+ var consequent_2 = ($$anchor) => {
131
+ var fragment_4 = $.comment();
132
+ var node_4 = $.first_child(fragment_4);
133
+ $.component(node_4, () => Progress.View, ($$anchor, ArkProgress_View) => {
134
+ ArkProgress_View($$anchor, {
135
+ view: "circle",
136
+ children: ($$anchor, $$slotProps) => {
137
+ var fragment_5 = $.comment();
138
+ var node_5 = $.first_child(fragment_5);
139
+ $.component(node_5, () => Progress.Circle, ($$anchor, ArkProgress_Circle) => {
140
+ ArkProgress_Circle($$anchor, {
141
+ children: ($$anchor, $$slotProps) => {
142
+ var fragment_6 = $.comment();
143
+ var node_6 = $.first_child(fragment_6);
144
+ $.component(node_6, () => Progress.CircleRange, ($$anchor, ArkProgress_CircleRange) => {
145
+ ArkProgress_CircleRange($$anchor, {});
146
+ });
147
+ $.append($$anchor, fragment_6);
148
+ },
149
+ $$slots: { default: true }
150
+ });
151
+ });
152
+ $.append($$anchor, fragment_5);
153
+ },
154
+ $$slots: { default: true }
155
+ });
156
+ });
157
+ $.append($$anchor, fragment_4);
158
+ };
159
+ var alternate = ($$anchor) => {
160
+ var fragment_7 = $.comment();
161
+ var node_7 = $.first_child(fragment_7);
162
+ $.component(node_7, () => Progress.Track, ($$anchor, ArkProgress_Track) => {
163
+ ArkProgress_Track($$anchor, {
164
+ children: ($$anchor, $$slotProps) => {
165
+ var fragment_8 = $.comment();
166
+ var node_8 = $.first_child(fragment_8);
167
+ $.component(node_8, () => Progress.Range, ($$anchor, ArkProgress_Range) => {
168
+ ArkProgress_Range($$anchor, {});
169
+ });
170
+ $.append($$anchor, fragment_8);
171
+ },
172
+ $$slots: { default: true }
173
+ });
174
+ });
175
+ $.append($$anchor, fragment_7);
176
+ };
177
+ $.if(node_2, ($$render) => {
178
+ if (variant() === "dashboard") $$render(consequent_1);
179
+ else if (variant() === "circle") $$render(consequent_2, 1);
180
+ else $$render(alternate, -1);
181
+ });
182
+ var node_9 = $.sibling(node_2, 2);
183
+ $.snippet(node_9, () => $$props.children ?? $.noop);
184
+ $.append($$anchor, fragment_1);
185
+ },
186
+ $$slots: { default: true }
187
+ }));
188
+ $.pop();
189
+ }
190
+ //#endregion
191
+ export { ProgressRoot as n, Progress$1 as t };
@@ -1,5 +1,5 @@
1
1
  import { t as useElementId } from "./id-Alz497yI.mjs";
2
- import { t as InternalIcon } from "./InternalIcon-Clwbj4MY.mjs";
2
+ import { t as InternalIcon } from "./InternalIcon-CbfKieOs.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-Clwbj4MY.mjs";
2
+ import { t as InternalIcon } from "./InternalIcon-CbfKieOs.mjs";
3
3
  import "svelte/internal/disclose-version";
4
4
  import * as $ from "svelte/internal/client";
5
5
  import { injectComponentStyle } from "@bysages/core/styling";