@slotted/react 0.1.0-beta.42 → 0.1.0-beta.43

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 (298) hide show
  1. package/dist/{app-shell-D54YkU7E.js → app-shell-DsWhsSMU.js} +3 -2
  2. package/dist/app-shell.js +1 -1
  3. package/dist/attachment-TZykYNu5.js +300 -0
  4. package/dist/attachment.js +2 -2
  5. package/dist/{avatar-group-bJaZE1_C.js → avatar-group-Bzmmj2HI.js} +2 -1
  6. package/dist/avatar-group.js +1 -1
  7. package/dist/{carousel-B9nMK7Yf.js → carousel-CRNz-T3g.js} +1 -1
  8. package/dist/carousel.js +1 -1
  9. package/dist/{command-palette-C90CzfQi.js → command-palette-Bgf5tfCI.js} +160 -156
  10. package/dist/command-palette.js +1 -1
  11. package/dist/{data-grid-D106baPp.js → data-grid-DUft3rJb.js} +1 -1
  12. package/dist/data-grid.js +1 -1
  13. package/dist/{data-list-BA0xrySM.js → data-list-Dv3orBtf.js} +15 -15
  14. package/dist/data-list.js +1 -1
  15. package/dist/detail-panel-Cke3ZFU3.js +342 -0
  16. package/dist/detail-panel.js +2 -2
  17. package/dist/docs/action-bar.examples.md +768 -0
  18. package/dist/docs/action-bar.json +74 -50
  19. package/dist/docs/action-bar.md +49 -311
  20. package/dist/docs/app-shell.examples.md +1221 -64
  21. package/dist/docs/app-shell.json +92 -60
  22. package/dist/docs/app-shell.md +92 -57
  23. package/dist/docs/attachment.examples.md +689 -0
  24. package/dist/docs/attachment.json +69 -37
  25. package/dist/docs/attachment.md +44 -203
  26. package/dist/docs/avatar-group.json +111 -23
  27. package/dist/docs/avatar-group.md +487 -28
  28. package/dist/docs/button-group.json +98 -2
  29. package/dist/docs/button-group.md +411 -8
  30. package/dist/docs/calendar.examples.md +512 -0
  31. package/dist/docs/calendar.json +72 -24
  32. package/dist/docs/calendar.md +18 -147
  33. package/dist/docs/carousel.examples.md +868 -0
  34. package/dist/docs/carousel.json +58 -50
  35. package/dist/docs/carousel.md +66 -300
  36. package/dist/docs/cascader.examples.md +1269 -0
  37. package/dist/docs/cascader.json +72 -16
  38. package/dist/docs/cascader.md +78 -154
  39. package/dist/docs/chart.examples.md +734 -24
  40. package/dist/docs/chart.json +93 -13
  41. package/dist/docs/chart.md +28 -7
  42. package/dist/docs/clock.json +71 -15
  43. package/dist/docs/clock.md +326 -21
  44. package/dist/docs/code-block.json +79 -55
  45. package/dist/docs/code-block.md +417 -74
  46. package/dist/docs/color-picker.json +60 -12
  47. package/dist/docs/color-picker.md +245 -22
  48. package/dist/docs/column-manager.examples.md +764 -0
  49. package/dist/docs/column-manager.json +68 -12
  50. package/dist/docs/column-manager.md +44 -203
  51. package/dist/docs/command-palette.examples.md +747 -0
  52. package/dist/docs/command-palette.json +48 -24
  53. package/dist/docs/command-palette.md +60 -339
  54. package/dist/docs/currency-field.examples.md +355 -73
  55. package/dist/docs/currency-field.json +96 -64
  56. package/dist/docs/currency-field.md +57 -50
  57. package/dist/docs/dashboard-grid.examples.md +629 -0
  58. package/dist/docs/dashboard-grid.json +64 -16
  59. package/dist/docs/dashboard-grid.md +34 -152
  60. package/dist/docs/data-list.examples.md +1556 -0
  61. package/dist/docs/data-list.json +58 -18
  62. package/dist/docs/data-list.md +139 -224
  63. package/dist/docs/date-field.examples.md +543 -0
  64. package/dist/docs/date-field.json +64 -24
  65. package/dist/docs/date-field.md +22 -168
  66. package/dist/docs/datetime-field.examples.md +699 -0
  67. package/dist/docs/datetime-field.json +79 -31
  68. package/dist/docs/datetime-field.md +24 -269
  69. package/dist/docs/datetime-range-picker.examples.md +682 -0
  70. package/dist/docs/datetime-range-picker.json +117 -61
  71. package/dist/docs/datetime-range-picker.md +59 -224
  72. package/dist/docs/description-list.examples.md +652 -0
  73. package/dist/docs/description-list.json +49 -25
  74. package/dist/docs/description-list.md +33 -188
  75. package/dist/docs/detail-panel.examples.md +1177 -0
  76. package/dist/docs/detail-panel.json +69 -53
  77. package/dist/docs/detail-panel.md +114 -324
  78. package/dist/docs/entity-picker.examples.md +1037 -0
  79. package/dist/docs/entity-picker.json +66 -18
  80. package/dist/docs/entity-picker.md +56 -246
  81. package/dist/docs/event-calendar.examples.md +749 -49
  82. package/dist/docs/event-calendar.json +46 -22
  83. package/dist/docs/event-calendar.md +81 -11
  84. package/dist/docs/field-group.examples.md +554 -0
  85. package/dist/docs/field-group.json +98 -34
  86. package/dist/docs/field-group.md +55 -133
  87. package/dist/docs/filter-bar.examples.md +772 -0
  88. package/dist/docs/filter-bar.json +41 -25
  89. package/dist/docs/filter-bar.md +42 -246
  90. package/dist/docs/form.examples.md +579 -0
  91. package/dist/docs/form.json +87 -39
  92. package/dist/docs/form.md +53 -177
  93. package/dist/docs/fullscreen.examples.md +558 -0
  94. package/dist/docs/fullscreen.json +58 -18
  95. package/dist/docs/fullscreen.md +50 -169
  96. package/dist/docs/highlight.json +57 -25
  97. package/dist/docs/highlight.md +402 -50
  98. package/dist/docs/icon.json +85 -5
  99. package/dist/docs/icon.md +401 -10
  100. package/dist/docs/image.examples.md +670 -0
  101. package/dist/docs/image.json +44 -28
  102. package/dist/docs/image.md +24 -176
  103. package/dist/docs/import-export-center.examples.md +1280 -0
  104. package/dist/docs/import-export-center.json +67 -27
  105. package/dist/docs/import-export-center.md +121 -226
  106. package/dist/docs/list-item.examples.md +769 -0
  107. package/dist/docs/list-item.json +110 -38
  108. package/dist/docs/list-item.md +84 -201
  109. package/dist/docs/listbox.examples.md +858 -0
  110. package/dist/docs/listbox.json +76 -28
  111. package/dist/docs/listbox.md +41 -263
  112. package/dist/docs/markdown.json +79 -55
  113. package/dist/docs/markdown.md +581 -85
  114. package/dist/docs/media-viewer.examples.md +1038 -0
  115. package/dist/docs/media-viewer.json +70 -15
  116. package/dist/docs/media-viewer.md +84 -135
  117. package/dist/docs/message-scroller.examples.md +1193 -0
  118. package/dist/docs/message-scroller.json +41 -17
  119. package/dist/docs/message-scroller.md +80 -134
  120. package/dist/docs/message.examples.md +944 -0
  121. package/dist/docs/message.json +64 -16
  122. package/dist/docs/message.md +34 -326
  123. package/dist/docs/meter.json +58 -26
  124. package/dist/docs/meter.md +312 -32
  125. package/dist/docs/navigation-menu.examples.md +1107 -0
  126. package/dist/docs/navigation-menu.json +57 -41
  127. package/dist/docs/navigation-menu.md +105 -298
  128. package/dist/docs/notification-center.examples.md +1045 -0
  129. package/dist/docs/notification-center.json +71 -15
  130. package/dist/docs/notification-center.md +76 -266
  131. package/dist/docs/otp-input.examples.md +490 -0
  132. package/dist/docs/otp-input.json +65 -25
  133. package/dist/docs/otp-input.md +20 -191
  134. package/dist/docs/page-header.examples.md +1041 -0
  135. package/dist/docs/page-header.json +75 -43
  136. package/dist/docs/page-header.md +79 -291
  137. package/dist/docs/page.examples.md +633 -0
  138. package/dist/docs/page.json +48 -16
  139. package/dist/docs/page.md +62 -129
  140. package/dist/docs/prompt-composer.examples.md +630 -0
  141. package/dist/docs/prompt-composer.json +66 -18
  142. package/dist/docs/prompt-composer.md +35 -161
  143. package/dist/docs/prose.json +69 -37
  144. package/dist/docs/prose.md +393 -75
  145. package/dist/docs/rating.examples.md +525 -0
  146. package/dist/docs/rating.json +92 -28
  147. package/dist/docs/rating.md +27 -241
  148. package/dist/docs/saved-views.examples.md +1108 -0
  149. package/dist/docs/saved-views.json +53 -21
  150. package/dist/docs/saved-views.md +86 -171
  151. package/dist/docs/scroll-area.examples.md +837 -0
  152. package/dist/docs/scroll-area.json +64 -24
  153. package/dist/docs/scroll-area.md +57 -140
  154. package/dist/docs/section.examples.md +676 -0
  155. package/dist/docs/section.json +68 -20
  156. package/dist/docs/section.md +39 -162
  157. package/dist/docs/segmented-control.examples.md +480 -0
  158. package/dist/docs/segmented-control.json +76 -28
  159. package/dist/docs/segmented-control.md +20 -191
  160. package/dist/docs/side-navigation.examples.md +1468 -0
  161. package/dist/docs/side-navigation.json +53 -53
  162. package/dist/docs/side-navigation.md +79 -354
  163. package/dist/docs/slider.examples.md +505 -0
  164. package/dist/docs/slider.json +91 -51
  165. package/dist/docs/slider.md +47 -212
  166. package/dist/docs/sparkline.json +60 -36
  167. package/dist/docs/sparkline.md +447 -71
  168. package/dist/docs/split-button.examples.md +509 -0
  169. package/dist/docs/split-button.json +73 -41
  170. package/dist/docs/split-button.md +64 -194
  171. package/dist/docs/splitter.examples.md +921 -0
  172. package/dist/docs/splitter.json +94 -46
  173. package/dist/docs/splitter.md +75 -182
  174. package/dist/docs/stat-card.examples.md +725 -0
  175. package/dist/docs/stat-card.json +89 -41
  176. package/dist/docs/stat-card.md +55 -227
  177. package/dist/docs/status-indicator.json +80 -32
  178. package/dist/docs/status-indicator.md +409 -65
  179. package/dist/docs/stepper.json +53 -21
  180. package/dist/docs/stepper.md +369 -48
  181. package/dist/docs/table-of-contents.examples.md +550 -0
  182. package/dist/docs/table-of-contents.json +60 -28
  183. package/dist/docs/table-of-contents.md +70 -205
  184. package/dist/docs/tags-input.examples.md +541 -0
  185. package/dist/docs/tags-input.json +64 -16
  186. package/dist/docs/tags-input.md +15 -262
  187. package/dist/docs/time-field.examples.md +587 -0
  188. package/dist/docs/time-field.json +69 -29
  189. package/dist/docs/time-field.md +21 -223
  190. package/dist/docs/time-picker.json +117 -53
  191. package/dist/docs/time-picker.md +499 -54
  192. package/dist/docs/time-range-picker.examples.md +750 -0
  193. package/dist/docs/time-range-picker.json +139 -75
  194. package/dist/docs/time-range-picker.md +63 -225
  195. package/dist/docs/timeline.examples.md +617 -0
  196. package/dist/docs/timeline.json +44 -28
  197. package/dist/docs/timeline.md +34 -208
  198. package/dist/docs/toolbar.json +56 -16
  199. package/dist/docs/toolbar.md +357 -63
  200. package/dist/docs/top-navigation.examples.md +1206 -140
  201. package/dist/docs/top-navigation.json +49 -33
  202. package/dist/docs/top-navigation.md +87 -36
  203. package/dist/docs/tour.examples.md +960 -0
  204. package/dist/docs/tour.json +57 -25
  205. package/dist/docs/tour.md +60 -244
  206. package/dist/docs/transfer.examples.md +631 -0
  207. package/dist/docs/transfer.json +80 -16
  208. package/dist/docs/transfer.md +41 -170
  209. package/dist/docs/typography.json +96 -0
  210. package/dist/docs/typography.md +352 -4
  211. package/dist/docs/upload.examples.md +555 -53
  212. package/dist/docs/upload.json +62 -30
  213. package/dist/docs/upload.md +46 -11
  214. package/dist/docs/wizard.examples.md +1389 -0
  215. package/dist/docs/wizard.json +89 -49
  216. package/dist/docs/wizard.md +122 -263
  217. package/dist/{entity-picker-CC4VoC3p.js → entity-picker-C78f3Z0o.js} +9 -6
  218. package/dist/entity-picker.js +1 -1
  219. package/dist/{event-calendar-CjmF_e0H.js → event-calendar-DJPoCi-O.js} +1 -1
  220. package/dist/event-calendar.js +1 -1
  221. package/dist/{filter-bar-B3QJD7SZ.js → filter-bar-D61wiQFP.js} +1 -1
  222. package/dist/filter-bar.js +1 -1
  223. package/dist/{import-export-center-CW8YVZev.js → import-export-center-mqvmlzwB.js} +44 -36
  224. package/dist/import-export-center.js +1 -1
  225. package/dist/index.js +58 -58
  226. package/dist/{markdown-BdskE4-L.js → markdown-8CtV4k44.js} +2 -2
  227. package/dist/markdown.js +1 -1
  228. package/dist/{media-viewer-zEXcwfEY.js → media-viewer-C_cbuAq-.js} +64 -60
  229. package/dist/media-viewer.js +2 -2
  230. package/dist/message-P91bEGyV.js +455 -0
  231. package/dist/message.js +2 -2
  232. package/dist/{page-header-DmwBGwlm.js → page-header-jeAIQSZM.js} +103 -108
  233. package/dist/page-header.js +1 -1
  234. package/dist/section-CVTQdWBl.js +216 -0
  235. package/dist/section.js +2 -2
  236. package/dist/{segmented-control-CbK7SurB.js → segmented-control-BSMVjukr.js} +1 -1
  237. package/dist/segmented-control.js +1 -1
  238. package/dist/{side-navigation-CKRETc8E.js → side-navigation-BQzBxz2B.js} +179 -179
  239. package/dist/side-navigation.js +1 -1
  240. package/dist/{stat-card-CL3Xe6pV.js → stat-card-BpGZiFbG.js} +12 -14
  241. package/dist/stat-card.js +1 -1
  242. package/dist/{stepper-DHdrANZI.js → stepper-Cxb_tHnA.js} +130 -127
  243. package/dist/stepper.js +2 -2
  244. package/dist/styles/carousel.css +1 -1
  245. package/dist/styles/index.css +1 -1
  246. package/dist/styles.css +1 -1
  247. package/dist/{timeline-BiL2CXfn.js → timeline-ZngK6zLC.js} +9 -6
  248. package/dist/timeline.js +1 -1
  249. package/dist/top-navigation-YSEQzBhD.js +744 -0
  250. package/dist/top-navigation.js +2 -2
  251. package/dist/{transfer-sKUvmEKe.js → transfer-Cv5yQuTN.js} +1 -1
  252. package/dist/transfer.js +1 -1
  253. package/dist/types/attachment/attachment-parts.d.ts +24 -11
  254. package/dist/types/attachment/attachment-parts.d.ts.map +1 -1
  255. package/dist/types/attachment/attachment.d.ts +3 -3
  256. package/dist/types/attachment/attachment.d.ts.map +1 -1
  257. package/dist/types/avatar-group/avatar-group.d.ts.map +1 -1
  258. package/dist/types/carousel/carousel-parts.d.ts +2 -2
  259. package/dist/types/command-palette/command-palette.d.ts.map +1 -1
  260. package/dist/types/data-list/data-list.d.ts.map +1 -1
  261. package/dist/types/detail-panel/detail-panel-parts.d.ts +10 -3
  262. package/dist/types/detail-panel/detail-panel-parts.d.ts.map +1 -1
  263. package/dist/types/detail-panel/detail-panel.d.ts.map +1 -1
  264. package/dist/types/detail-panel/detail-panel.types.d.ts +7 -0
  265. package/dist/types/detail-panel/detail-panel.types.d.ts.map +1 -1
  266. package/dist/types/entity-picker/entity-picker.d.ts.map +1 -1
  267. package/dist/types/import-export-center/import-export-center.d.ts.map +1 -1
  268. package/dist/types/media-viewer/index.d.ts +2 -2
  269. package/dist/types/media-viewer/index.d.ts.map +1 -1
  270. package/dist/types/media-viewer/media-viewer-bar.d.ts +3 -1
  271. package/dist/types/media-viewer/media-viewer-bar.d.ts.map +1 -1
  272. package/dist/types/media-viewer/media-viewer.types.d.ts +1 -0
  273. package/dist/types/media-viewer/media-viewer.types.d.ts.map +1 -1
  274. package/dist/types/message/message-parts.d.ts +7 -0
  275. package/dist/types/message/message-parts.d.ts.map +1 -1
  276. package/dist/types/message/message.d.ts.map +1 -1
  277. package/dist/types/page-header/page-header-parts.d.ts.map +1 -1
  278. package/dist/types/section/section-parts.d.ts +16 -8
  279. package/dist/types/section/section-parts.d.ts.map +1 -1
  280. package/dist/types/section/section.d.ts.map +1 -1
  281. package/dist/types/segmented-control/segmented-control-parts.d.ts.map +1 -1
  282. package/dist/types/side-navigation/side-navigation-parts.d.ts.map +1 -1
  283. package/dist/types/stat-card/stat-card-delta.d.ts.map +1 -1
  284. package/dist/types/stat-card/stat-card-parts.d.ts +3 -3
  285. package/dist/types/stat-card/stat-card-parts.d.ts.map +1 -1
  286. package/dist/types/stepper/stepper-parts.d.ts +11 -2
  287. package/dist/types/stepper/stepper-parts.d.ts.map +1 -1
  288. package/dist/types/stepper/stepper.d.ts.map +1 -1
  289. package/dist/types/timeline/timeline-parts.d.ts.map +1 -1
  290. package/dist/types/top-navigation/top-navigation.d.ts.map +1 -1
  291. package/dist/{wizard-4c0X7Bx_.js → wizard-Dfryz1id.js} +214 -214
  292. package/dist/wizard.js +1 -1
  293. package/package.json +6 -6
  294. package/dist/attachment-MqczA38F.js +0 -292
  295. package/dist/detail-panel-EImAtksY.js +0 -327
  296. package/dist/message-D1Dd6Y2k.js +0 -452
  297. package/dist/section-D_qOfdxR.js +0 -213
  298. package/dist/top-navigation-D8IHPOmm.js +0 -744
@@ -49,17 +49,21 @@ function j({ children: e, ...t }) {
49
49
  "data-part": "bar",
50
50
  "data-part-bar": "",
51
51
  children: e ?? /* @__PURE__ */ _(h, { children: [
52
- /* @__PURE__ */ _("div", {
53
- "data-part": "heading",
54
- "data-part-heading": "",
55
- children: [/* @__PURE__ */ g(N, {}), /* @__PURE__ */ g(P, {})]
56
- }),
57
- /* @__PURE__ */ g(F, {}),
58
- /* @__PURE__ */ g(M, {})
52
+ /* @__PURE__ */ g(M, {}),
53
+ /* @__PURE__ */ g(I, {}),
54
+ /* @__PURE__ */ g(N, {})
59
55
  ] })
60
56
  });
61
57
  }
62
- function M({ children: e, onClick: r, render: i, ...a }) {
58
+ function M({ children: e, ...t }) {
59
+ return /* @__PURE__ */ g("div", {
60
+ ...t,
61
+ "data-part": "heading",
62
+ "data-part-heading": "",
63
+ children: e ?? /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(P, {}), /* @__PURE__ */ g(F, {})] })
64
+ });
65
+ }
66
+ function N({ children: e, onClick: r, render: i, ...a }) {
63
67
  let o = D(), s = {
64
68
  "aria-label": o.t("close"),
65
69
  type: "button",
@@ -73,7 +77,7 @@ function M({ children: e, onClick: r, render: i, ...a }) {
73
77
  };
74
78
  return i === void 0 ? /* @__PURE__ */ g("button", { ...s }) : i(s);
75
79
  }
76
- function N({ children: e, ...t }) {
80
+ function P({ children: e, ...t }) {
77
81
  let n = D(), r = n.item?.name ?? "", { stem: i, extension: a } = b(r);
78
82
  return /* @__PURE__ */ g("h2", {
79
83
  dir: "auto",
@@ -85,7 +89,7 @@ function N({ children: e, ...t }) {
85
89
  children: e ?? /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g("span", { children: i }), a === "" ? null : /* @__PURE__ */ g("span", { children: a })] })
86
90
  });
87
91
  }
88
- function P({ children: e, ...t }) {
92
+ function F({ children: e, ...t }) {
89
93
  let n = D();
90
94
  return n.items.length < 2 ? null : /* @__PURE__ */ g("p", {
91
95
  dir: "auto",
@@ -99,15 +103,15 @@ function P({ children: e, ...t }) {
99
103
  })
100
104
  });
101
105
  }
102
- function F({ children: e, ...t }) {
106
+ function I({ children: e, ...t }) {
103
107
  return /* @__PURE__ */ g("div", {
104
108
  ...t,
105
109
  "data-part": "actions",
106
110
  "data-part-actions": "",
107
- children: e ?? /* @__PURE__ */ g(I, {})
111
+ children: e ?? /* @__PURE__ */ g(L, {})
108
112
  });
109
113
  }
110
- function I({ children: e, render: r, ...i }) {
114
+ function L({ children: e, render: r, ...i }) {
111
115
  let a = D(), o = a.item?.downloadHref;
112
116
  if (o === void 0) return null;
113
117
  let s = a.t("download"), c = {
@@ -123,19 +127,19 @@ function I({ children: e, render: r, ...i }) {
123
127
  }
124
128
  //#endregion
125
129
  //#region src/media-viewer/media-viewer-controls.tsx
126
- function L(e) {
127
- return /* @__PURE__ */ g(z, {
130
+ function R(e) {
131
+ return /* @__PURE__ */ g(B, {
128
132
  ...e,
129
133
  direction: "previous"
130
134
  });
131
135
  }
132
- function R(e) {
133
- return /* @__PURE__ */ g(z, {
136
+ function z(e) {
137
+ return /* @__PURE__ */ g(B, {
134
138
  ...e,
135
139
  direction: "next"
136
140
  });
137
141
  }
138
- function z({ children: e, direction: r, onClick: i, render: a, ...o }) {
142
+ function B({ children: e, direction: r, onClick: i, render: a, ...o }) {
139
143
  let s = D();
140
144
  if (s.items.length < 2) return null;
141
145
  let c = r === "previous" ? s.index <= 0 : s.index >= s.items.length - 1, l = {
@@ -155,7 +159,7 @@ function z({ children: e, direction: r, onClick: i, render: a, ...o }) {
155
159
  };
156
160
  return a === void 0 ? /* @__PURE__ */ g("button", { ...l }) : a(l);
157
161
  }
158
- function B({ children: e, ...t }) {
162
+ function V({ children: e, ...t }) {
159
163
  let n = D();
160
164
  if (n.kind !== "image" || n.status === "error") return null;
161
165
  let { maxZoom: r, minZoom: i, zoomStep: a } = n.limits, o = Math.round(n.zoom * 100), s = (e, t) => {
@@ -168,7 +172,7 @@ function B({ children: e, ...t }) {
168
172
  "data-part": "zoom",
169
173
  "data-part-zoom": "",
170
174
  children: e ?? /* @__PURE__ */ _(h, { children: [
171
- /* @__PURE__ */ g(V, {
175
+ /* @__PURE__ */ g(H, {
172
176
  disabled: n.zoom <= i,
173
177
  glyph: "minus",
174
178
  label: n.t("zoomOut"),
@@ -181,21 +185,21 @@ function B({ children: e, ...t }) {
181
185
  "data-part-zoom-level": "",
182
186
  children: n.t("zoomLevel", { percent: o })
183
187
  }),
184
- /* @__PURE__ */ g(V, {
188
+ /* @__PURE__ */ g(H, {
185
189
  disabled: n.zoom >= r,
186
190
  glyph: "plus",
187
191
  label: n.t("zoomIn"),
188
192
  onClick: (e) => s(n.zoom + a, e),
189
193
  part: "zoom-in"
190
194
  }),
191
- /* @__PURE__ */ g(V, {
195
+ /* @__PURE__ */ g(H, {
192
196
  disabled: n.zoom <= i,
193
197
  glyph: "minimize",
194
198
  label: n.t("fit"),
195
199
  onClick: (e) => s(1, e),
196
200
  part: "fit"
197
201
  }),
198
- /* @__PURE__ */ g(V, {
202
+ /* @__PURE__ */ g(H, {
199
203
  glyph: "rotate-cw",
200
204
  label: n.t("rotate"),
201
205
  onClick: (e) => {
@@ -206,7 +210,7 @@ function B({ children: e, ...t }) {
206
210
  ] })
207
211
  });
208
212
  }
209
- function V({ part: e, glyph: r, label: i, disabled: a, onClick: o }) {
213
+ function H({ part: e, glyph: r, label: i, disabled: a, onClick: o }) {
210
214
  return /* @__PURE__ */ g("button", {
211
215
  "aria-label": i,
212
216
  "data-part": e,
@@ -217,7 +221,7 @@ function V({ part: e, glyph: r, label: i, disabled: a, onClick: o }) {
217
221
  children: /* @__PURE__ */ g(n, { children: /* @__PURE__ */ g(t, { name: r }) })
218
222
  });
219
223
  }
220
- function H({ children: e, ...t }) {
224
+ function U({ children: e, ...t }) {
221
225
  let n = D(), r = e ?? n.item?.caption;
222
226
  return r === void 0 ? null : /* @__PURE__ */ g("p", {
223
227
  dir: "auto",
@@ -227,7 +231,7 @@ function H({ children: e, ...t }) {
227
231
  children: r
228
232
  });
229
233
  }
230
- function U(e) {
234
+ function W(e) {
231
235
  let t = D();
232
236
  return t.items.length < 2 ? null : /* @__PURE__ */ g("div", {
233
237
  role: "group",
@@ -243,7 +247,7 @@ function U(e) {
243
247
  "data-part": "thumbnail",
244
248
  "data-part-thumbnail": "",
245
249
  onClick: (n) => t.requestStep(e.id, "pointer", n),
246
- ref: n ? W : void 0,
250
+ ref: n ? G : void 0,
247
251
  type: "button",
248
252
  children: e.thumbnail === void 0 && !e.type.startsWith("image/") ? null : /* @__PURE__ */ g("img", {
249
253
  alt: "",
@@ -253,7 +257,7 @@ function U(e) {
253
257
  })
254
258
  });
255
259
  }
256
- function W(e) {
260
+ function G(e) {
257
261
  typeof e?.scrollIntoView == "function" && e.scrollIntoView({
258
262
  block: "nearest",
259
263
  inline: "nearest"
@@ -266,7 +270,7 @@ function te() {
266
270
  name: t,
267
271
  type: e.item?.type ?? ""
268
272
  })];
269
- return /* @__PURE__ */ g(K, {
273
+ return /* @__PURE__ */ g(q, {
270
274
  glyph: i,
271
275
  label: n,
272
276
  part: "unsupported",
@@ -274,9 +278,9 @@ function te() {
274
278
  title: e.t("unsupportedTitle")
275
279
  });
276
280
  }
277
- function G() {
281
+ function K() {
278
282
  let e = D();
279
- return /* @__PURE__ */ g(K, {
283
+ return /* @__PURE__ */ g(q, {
280
284
  glyph: e.kind === "image" ? "image-off" : "cloud-off",
281
285
  part: "status",
282
286
  retry: /* @__PURE__ */ _("button", {
@@ -290,7 +294,7 @@ function G() {
290
294
  title: e.t("errorTitle")
291
295
  });
292
296
  }
293
- function K({ part: e, glyph: r, label: i, title: a, sentence: o, retry: s }) {
297
+ function q({ part: e, glyph: r, label: i, title: a, sentence: o, retry: s }) {
294
298
  let c = D();
295
299
  return /* @__PURE__ */ _("div", {
296
300
  "data-error": e === "status" ? "" : void 0,
@@ -306,18 +310,18 @@ function K({ part: e, glyph: r, label: i, title: a, sentence: o, retry: s }) {
306
310
  }),
307
311
  /* @__PURE__ */ g("h3", { children: a }),
308
312
  /* @__PURE__ */ g("p", { children: o }),
309
- /* @__PURE__ */ _("div", { children: [s, /* @__PURE__ */ _(I, { children: [/* @__PURE__ */ g(n, { children: /* @__PURE__ */ g(t, { name: "download" }) }), c.t("download")] })] })
313
+ /* @__PURE__ */ _("div", { children: [s, /* @__PURE__ */ _(L, { children: [/* @__PURE__ */ g(n, { children: /* @__PURE__ */ g(t, { name: "download" }) }), c.t("download")] })] })
310
314
  ]
311
315
  });
312
316
  }
313
317
  //#endregion
314
318
  //#region src/media-viewer/media-viewer-media.tsx
315
- function q() {
319
+ function J() {
316
320
  let e = D(), t = e.item, { kind: n, setStatus: r } = e, i = p(null);
317
321
  return f(() => {
318
322
  let e = i.current?.complete === !0 && i.current.naturalWidth > 0;
319
323
  r(n !== "image" && n !== "text" || e ? "ready" : "loading");
320
- }, [n, r]), t === void 0 ? null : e.status === "error" ? /* @__PURE__ */ g(G, {}) : n === "image" ? /* @__PURE__ */ _("div", {
324
+ }, [n, r]), t === void 0 ? null : e.status === "error" ? /* @__PURE__ */ g(K, {}) : n === "image" ? /* @__PURE__ */ _("div", {
321
325
  "data-loading": e.status === "loading" ? "" : void 0,
322
326
  "data-part": "frame",
323
327
  "data-part-frame": "",
@@ -332,8 +336,8 @@ function q() {
332
336
  ref: i,
333
337
  src: t.src,
334
338
  width: t.width
335
- }), e.status === "loading" ? /* @__PURE__ */ g(J, {}) : null]
336
- }) : n === "text" ? /* @__PURE__ */ g(Y, {}) : n === "pdf" ? /* @__PURE__ */ g("iframe", {
339
+ }), e.status === "loading" ? /* @__PURE__ */ g(Y, {}) : null]
340
+ }) : n === "text" ? /* @__PURE__ */ g(X, {}) : n === "pdf" ? /* @__PURE__ */ g("iframe", {
337
341
  "data-part": "media",
338
342
  "data-part-media": "",
339
343
  src: t.src,
@@ -352,7 +356,7 @@ function q() {
352
356
  src: t.src
353
357
  }) : /* @__PURE__ */ g(te, {});
354
358
  }
355
- function J() {
359
+ function Y() {
356
360
  let e = D();
357
361
  return /* @__PURE__ */ g("div", {
358
362
  "data-part": "status",
@@ -361,7 +365,7 @@ function J() {
361
365
  children: e.t("loading", { name: e.item?.name ?? "" })
362
366
  });
363
367
  }
364
- function Y() {
368
+ function X() {
365
369
  let e = D(), { item: t, setStatus: n } = e, [r, i] = m(null), a = t?.src, o = t?.type ?? "", s = t?.name ?? "";
366
370
  return u(() => {
367
371
  if (a === void 0) return;
@@ -379,7 +383,7 @@ function Y() {
379
383
  n,
380
384
  a,
381
385
  o
382
- ]), r === null ? /* @__PURE__ */ g(J, {}) : /* @__PURE__ */ _("div", {
386
+ ]), r === null ? /* @__PURE__ */ g(Y, {}) : /* @__PURE__ */ _("div", {
383
387
  "data-part": "text",
384
388
  "data-part-text": "",
385
389
  children: [/* @__PURE__ */ g("pre", {
@@ -392,9 +396,9 @@ function Y() {
392
396
  }
393
397
  //#endregion
394
398
  //#region src/media-viewer/media-viewer-stage.tsx
395
- function X({ children: e, ...t }) {
399
+ function Z({ children: e, ...t }) {
396
400
  let n = D(), r = p(n);
397
- return r.current = n, Z(n, r), ne(n), f(() => {
401
+ return r.current = n, ne(n, r), re(n), f(() => {
398
402
  n.handle.current?.update();
399
403
  }), /* @__PURE__ */ g("div", {
400
404
  "aria-label": n.t("label", { name: n.item?.name ?? "" }),
@@ -406,10 +410,10 @@ function X({ children: e, ...t }) {
406
410
  "data-part-stage": "",
407
411
  "data-rotation": String(n.kind === "image" ? n.rotation : 0),
408
412
  ref: n.stage,
409
- children: e ?? /* @__PURE__ */ g(q, {}, `${n.item?.id ?? ""}:${String(n.attempt)}`)
413
+ children: e ?? /* @__PURE__ */ g(J, {}, `${n.item?.id ?? ""}:${String(n.attempt)}`)
410
414
  });
411
415
  }
412
- function Z(e, t) {
416
+ function ne(e, t) {
413
417
  let { handle: n, stage: r } = e;
414
418
  u(() => {
415
419
  let e = r.current, i = e?.closest("[data-ui=\"media-viewer\"]");
@@ -438,7 +442,7 @@ function Z(e, t) {
438
442
  r
439
443
  ]);
440
444
  }
441
- function ne(e) {
445
+ function re(e) {
442
446
  let { index: t, items: n } = e;
443
447
  u(() => {
444
448
  for (let e of [n[t - 1], n[t + 1]]) {
@@ -450,19 +454,19 @@ function ne(e) {
450
454
  }
451
455
  //#endregion
452
456
  //#region src/media-viewer/media-viewer-anatomy.tsx
453
- function re() {
457
+ function ie() {
454
458
  return /* @__PURE__ */ _(h, { children: [
455
459
  /* @__PURE__ */ g(j, {}),
456
- /* @__PURE__ */ g(X, {}),
457
- /* @__PURE__ */ g(L, {}),
460
+ /* @__PURE__ */ g(Z, {}),
458
461
  /* @__PURE__ */ g(R, {}),
459
- /* @__PURE__ */ g(B, {}),
460
- /* @__PURE__ */ g(H, {})
462
+ /* @__PURE__ */ g(z, {}),
463
+ /* @__PURE__ */ g(V, {}),
464
+ /* @__PURE__ */ g(U, {})
461
465
  ] });
462
466
  }
463
467
  //#endregion
464
468
  //#region src/media-viewer/use-media-viewer-state.ts
465
- function ie(e, t) {
469
+ function Q(e, t) {
466
470
  let { items: n } = e, [r, i] = $(e.open, e.defaultOpen ?? !1, e.onOpenChange), [a, o] = $(e.value, e.defaultValue ?? n[0]?.id ?? "", e.onValueChange), [s, l] = $(e.zoom, e.defaultZoom ?? 1, e.onZoomChange), [d, f] = $(e.rotation, e.defaultRotation ?? 0, e.onRotationChange), m = n.findIndex((e) => e.id === a), h = p(n);
467
471
  u(() => {
468
472
  let e = h.current;
@@ -488,7 +492,7 @@ function ie(e, t) {
488
492
  t.minZoom,
489
493
  l
490
494
  ]), _ = c((e, r, i) => {
491
- let s = Q(n, m, e, t.loop);
495
+ let s = ae(n, m, e, t.loop);
492
496
  s !== void 0 && s.id !== a && (o(s.id, r, i), l(1, "select"), f(0, "select"));
493
497
  }, [
494
498
  m,
@@ -511,7 +515,7 @@ function ie(e, t) {
511
515
  requestRotation: f
512
516
  };
513
517
  }
514
- function Q(e, t, n, r) {
518
+ function ae(e, t, n, r) {
515
519
  if (n === "first") return e[0];
516
520
  if (n === "last") return e.at(-1);
517
521
  if (n !== "next" && n !== "previous") return e.find((e) => e.id === n);
@@ -539,14 +543,14 @@ function $(e, t, n) {
539
543
  }
540
544
  //#endregion
541
545
  //#region src/media-viewer/media-viewer.tsx
542
- function ae(t) {
546
+ function oe(t) {
543
547
  let n = k(), r = {
544
548
  minZoom: t.minZoom ?? n.minZoom,
545
549
  maxZoom: t.maxZoom ?? n.maxZoom,
546
550
  zoomStep: t.zoomStep ?? n.zoomStep,
547
551
  loop: t.loop ?? n.loop
548
- }, o = e(ee, t.messages ?? n.messages), s = ie(t, r), [c, l] = m("loading"), [u, f] = m(0), [v, y] = m(null), [b, x] = m(null), S = p(null), C = p(null), T = d();
549
- oe(v, t.container, x), se(s.open, s.item?.id, () => o("announce", {
552
+ }, o = e(ee, t.messages ?? n.messages), s = Q(t, r), [c, l] = m("loading"), [u, f] = m(0), [v, y] = m(null), [b, x] = m(null), S = p(null), C = p(null), T = d();
553
+ se(v, t.container, x), ce(s.open, s.item?.id, () => o("announce", {
550
554
  name: s.item?.name ?? "",
551
555
  index: s.index + 1,
552
556
  count: t.items.length
@@ -596,13 +600,13 @@ function ae(t) {
596
600
  "data-ui": "media-viewer",
597
601
  "data-ui-media-viewer": "",
598
602
  "data-zoomed": D === "image" && s.zoom > 1 ? "" : void 0,
599
- children: t.children ?? /* @__PURE__ */ g(re, {})
603
+ children: t.children ?? /* @__PURE__ */ g(ie, {})
600
604
  })
601
605
  })
602
606
  })
603
607
  })] });
604
608
  }
605
- function oe(e, t, n) {
609
+ function se(e, t, n) {
606
610
  u(() => {
607
611
  if (e === null || t !== void 0) return;
608
612
  let r = v({ origin: e });
@@ -615,7 +619,7 @@ function oe(e, t, n) {
615
619
  n
616
620
  ]);
617
621
  }
618
- function se(e, t, n) {
622
+ function ce(e, t, n) {
619
623
  let r = p(void 0);
620
624
  u(() => {
621
625
  if (!e) {
@@ -626,4 +630,4 @@ function se(e, t, n) {
626
630
  });
627
631
  }
628
632
  //#endregion
629
- export { L as a, F as c, I as d, P as f, D as g, k as h, R as i, j as l, A as m, X as n, U as o, N as p, H as r, B as s, ae as t, M as u };
633
+ export { D as _, R as a, I as c, L as d, M as f, k as g, A as h, z as i, j as l, P as m, Z as n, W as o, F as p, U as r, V as s, oe as t, N as u };
@@ -1,2 +1,2 @@
1
- import { a as e, c as t, d as n, f as r, g as i, h as a, i as o, l as s, m as c, n as l, o as u, p as d, r as f, s as p, t as m, u as h } from "./media-viewer-zEXcwfEY.js";
2
- export { m as MediaViewer, t as MediaViewerActions, s as MediaViewerBar, f as MediaViewerCaption, h as MediaViewerClose, c as MediaViewerDefaultsProvider, n as MediaViewerDownload, o as MediaViewerNext, r as MediaViewerPosition, e as MediaViewerPrevious, l as MediaViewerStage, u as MediaViewerThumbnails, d as MediaViewerTitle, p as MediaViewerZoom, i as useMediaViewer, a as useMediaViewerDefaults };
1
+ import { _ as e, a as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g } from "./media-viewer-C_cbuAq-.js";
2
+ export { h as MediaViewer, n as MediaViewerActions, c as MediaViewerBar, p as MediaViewerCaption, g as MediaViewerClose, o as MediaViewerDefaultsProvider, r as MediaViewerDownload, i as MediaViewerHeading, s as MediaViewerNext, f as MediaViewerPosition, t as MediaViewerPrevious, u as MediaViewerStage, d as MediaViewerThumbnails, l as MediaViewerTitle, m as MediaViewerZoom, e as useMediaViewer, a as useMediaViewerDefaults };