@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
@@ -4,8 +4,8 @@ import { _ as i, g as a, h as o, m as s, n as c, o as l, t as ee } from "./menu-
4
4
  import { n as u } from "./icon-button-N8Madx6i.js";
5
5
  import { t as te } from "./checkbox-DsJhlB5c.js";
6
6
  import { i as d, n as f } from "./skeleton-DeEOmm1y.js";
7
- import { t as p } from "./visually-hidden-BUSrFZ1_.js";
8
- import { n as m, o as ne, r as h, t as re } from "./result-state-Ct9AB01a.js";
7
+ import { t as ne } from "./visually-hidden-BUSrFZ1_.js";
8
+ import { n as p, o as m, r as re, t as h } from "./result-state-Ct9AB01a.js";
9
9
  import { n as ie, r as ae } from "./list-CvwJXjA0.js";
10
10
  import { a as oe, d as se, i as ce, l as le, n as ue, r as de, s as fe, t as pe } from "./list-item-DHKlkY65.js";
11
11
  import { withSelectorKey as me } from "@slotted/core/selector-key";
@@ -234,15 +234,15 @@ function Ye({ activatable: ge, className: _e, columnState: je, columns: b, curre
234
234
  children: [/* @__PURE__ */ v("span", {
235
235
  "aria-hidden": "true",
236
236
  children: "—"
237
- }), /* @__PURE__ */ v(p, { children: D("empty") })]
237
+ }), /* @__PURE__ */ v(ne, { children: D("empty") })]
238
238
  }) : i : o;
239
239
  }
240
240
  function un(e, t) {
241
241
  let i = W.has(e), a = Yt.has(e), o = M !== "none" && K.has(e), s = Be != null && Be === e, c = I.includes(e), l = `${N}-${e}-fields`, ee = V.title ? Me(V.title, t, {
242
242
  locale: O,
243
243
  booleans: k
244
- }) ?? "" : e, u = c ? V.fields : V.fields.slice(0, V.shown), d = V.fields.length - V.shown, f = rt?.(t), p = i || a, m = V.title ? $(V.title, t, e, "title") : e, ne;
245
- ne = f === void 0 ? ge === !0 ? /* @__PURE__ */ v("button", {
244
+ }) ?? "" : e, u = c ? V.fields : V.fields.slice(0, V.shown), d = V.fields.length - V.shown, f = rt?.(t), p = i || a, m = V.title ? $(V.title, t, e, "title") : e, re;
245
+ re = f === void 0 ? ge === !0 ? /* @__PURE__ */ v("button", {
246
246
  "data-part": "title",
247
247
  "data-part-title": "",
248
248
  disabled: p,
@@ -277,7 +277,7 @@ function Ye({ activatable: ge, className: _e, columnState: je, columns: b, curre
277
277
  },
278
278
  children: m
279
279
  });
280
- let h = Ct?.(t), re = M !== "none" || h !== void 0;
280
+ let h = Ct?.(t), ie = M !== "none" || h !== void 0;
281
281
  return /* @__PURE__ */ y(se, {
282
282
  align: "start",
283
283
  current: s ? f === void 0 || "page" : !1,
@@ -290,25 +290,25 @@ function Ye({ activatable: ge, className: _e, columnState: je, columns: b, curre
290
290
  size: j,
291
291
  variant: A,
292
292
  children: [/* @__PURE__ */ y(le, { children: [
293
- re ? /* @__PURE__ */ y(fe, { children: [M === "none" ? null : /* @__PURE__ */ v("span", {
293
+ ie ? /* @__PURE__ */ y(fe, { children: [M === "none" ? null : /* @__PURE__ */ v("span", {
294
294
  "data-part": "selection",
295
295
  "data-part-selection": "",
296
296
  children: /* @__PURE__ */ v(te, {
297
- "aria-label": D("selectRow", { title: ee }),
298
297
  checked: o,
299
298
  disabled: i,
300
299
  onCheckedChange: (t, n) => an(e, Gt.current, n.reason, n.source),
301
300
  onClick: (e) => {
302
301
  Gt.current = e.shiftKey;
303
302
  },
304
- size: j
303
+ size: j,
304
+ children: /* @__PURE__ */ v(ne, { children: D("selectRow", { title: ee }) })
305
305
  })
306
306
  }), h === void 0 ? null : /* @__PURE__ */ v("span", {
307
307
  "data-part": "media",
308
308
  "data-part-media": "",
309
309
  children: h
310
310
  })] }) : null,
311
- /* @__PURE__ */ y(ue, { children: [/* @__PURE__ */ v(oe, { children: ne }), V.subtitle ? /* @__PURE__ */ v(de, { children: $(V.subtitle, t, e, "subtitle") }) : null] }),
311
+ /* @__PURE__ */ y(ue, { children: [/* @__PURE__ */ v(oe, { children: re }), V.subtitle ? /* @__PURE__ */ v(de, { children: $(V.subtitle, t, e, "subtitle") }) : null] }),
312
312
  V.trailing ? /* @__PURE__ */ v(ce, { children: /* @__PURE__ */ v("span", {
313
313
  "data-part": "trailing",
314
314
  "data-part-trailing": "",
@@ -386,12 +386,12 @@ function Ye({ activatable: ge, className: _e, columnState: je, columns: b, curre
386
386
  "data-part": "select-all",
387
387
  "data-part-select-all": "",
388
388
  children: /* @__PURE__ */ v(te, {
389
- "aria-label": D("selectAll", { count: X.length }),
390
389
  checked: Z,
391
390
  disabled: X.length === 0,
392
391
  indeterminate: rn && !Z,
393
392
  onCheckedChange: (e, t) => on(t.source),
394
- size: j
393
+ size: j,
394
+ children: /* @__PURE__ */ v(ne, { children: D("selectAll", { count: X.length }) })
395
395
  })
396
396
  }) : null,
397
397
  /* @__PURE__ */ v("output", {
@@ -513,11 +513,11 @@ function Ye({ activatable: ge, className: _e, columnState: je, columns: b, curre
513
513
  return /* @__PURE__ */ v("div", {
514
514
  "data-part": "empty",
515
515
  "data-part-empty": "",
516
- children: /* @__PURE__ */ y(re, {
516
+ children: /* @__PURE__ */ y(h, {
517
517
  reach: "section",
518
518
  status: e,
519
519
  tabIndex: -1,
520
- children: [/* @__PURE__ */ v(h, { children: /* @__PURE__ */ v(ne, { children: n }) }), e === "no-results" ? /* @__PURE__ */ v(m, { children: /* @__PURE__ */ v(u, {
520
+ children: [/* @__PURE__ */ v(re, { children: /* @__PURE__ */ v(m, { children: n }) }), e === "no-results" ? /* @__PURE__ */ v(p, { children: /* @__PURE__ */ v(u, {
521
521
  onClick: (e) => Kt({
522
522
  ...F,
523
523
  filter: null,
@@ -531,7 +531,7 @@ function Ye({ activatable: ge, className: _e, columnState: je, columns: b, curre
531
531
  tone: "secondary",
532
532
  variant: "outline",
533
533
  children: D("clearFilters")
534
- }) }) : e === "error" && _t ? /* @__PURE__ */ v(m, { children: /* @__PURE__ */ v(u, {
534
+ }) }) : e === "error" && _t ? /* @__PURE__ */ v(p, { children: /* @__PURE__ */ v(u, {
535
535
  onClick: () => _t(),
536
536
  size: "md",
537
537
  tone: "secondary",
package/dist/data-list.js CHANGED
@@ -1,2 +1,2 @@
1
- import { n as e, r as t, t as n } from "./data-list-BA0xrySM.js";
1
+ import { n as e, r as t, t as n } from "./data-list-Dv3orBtf.js";
2
2
  export { n as DataList, e as DataListDefaultsProvider, t as useDataListDefaults };
@@ -0,0 +1,342 @@
1
+ import { r as e } from "./i18n-D7xXDd8-.js";
2
+ import { n as t } from "./badge-DFskjsxA.js";
3
+ import { t as n } from "./skeleton-DeEOmm1y.js";
4
+ import { n as r } from "./container-WoYiHo50.js";
5
+ import { s as i } from "./page-DT8L0iRT.js";
6
+ import { w as a } from "./page-header-jeAIQSZM.js";
7
+ import { d as o, f as s, i as c, l, n as u, o as d, u as f } from "./section-CVTQdWBl.js";
8
+ import { a as p, n as m, o as h, r as g, t as _ } from "./tabs-C-Bc7WmQ.js";
9
+ import { keyedProps as v } from "@slotted/core/selector-key";
10
+ import { createControllable as ee } from "@slotted/core/state";
11
+ import { Children as y, createContext as b, isValidElement as x, useCallback as S, useContext as C, useEffect as w, useImperativeHandle as T, useMemo as E, useRef as D, useState as O } from "react";
12
+ import { Fragment as k, jsx as A, jsxs as j } from "react/jsx-runtime";
13
+ import { detailPanelMessages as M } from "@slotted/core/i18n";
14
+ import { findScrollParent as te } from "@slotted/core/sticky-header";
15
+ //#region src/detail-panel/detail-panel-defaults.tsx
16
+ var N = b({
17
+ aside: "end",
18
+ layout: "stacked",
19
+ level: "2",
20
+ mount: "active",
21
+ scroll: "ancestor",
22
+ size: "md"
23
+ });
24
+ function P() {
25
+ return C(N);
26
+ }
27
+ function F({ children: e, ...t }) {
28
+ let n = P();
29
+ return /* @__PURE__ */ A(N.Provider, {
30
+ value: {
31
+ aside: t.aside ?? n.aside,
32
+ layout: t.layout ?? n.layout,
33
+ level: t.level ?? n.level,
34
+ mount: t.mount ?? n.mount,
35
+ scroll: t.scroll ?? n.scroll,
36
+ size: t.size ?? n.size
37
+ },
38
+ children: e
39
+ });
40
+ }
41
+ //#endregion
42
+ //#region src/detail-panel/detail-panel-parts.tsx
43
+ var ne = 3, I = 4;
44
+ function L({ aside: e, banner: t, children: a, className: o, message: s, ref: c, render: l, style: u, ...d }) {
45
+ let f = V(), p = i(), m = f.status === "ready", h = f.aside !== "none" && (e !== void 0 || f.loading), g = v({
46
+ ...d,
47
+ children: /* @__PURE__ */ j(r, {
48
+ inset: p?.inset,
49
+ size: p?.width,
50
+ children: [t != null && t !== !1 ? /* @__PURE__ */ A("div", {
51
+ "data-part": "banner",
52
+ "data-part-banner": "",
53
+ children: t
54
+ }) : null, m ? /* @__PURE__ */ j("div", {
55
+ "data-part": "columns",
56
+ "data-part-columns": "",
57
+ children: [/* @__PURE__ */ A("div", {
58
+ "data-part": "main",
59
+ "data-part-main": "",
60
+ children: a
61
+ }), h ? /* @__PURE__ */ A("aside", {
62
+ "data-part": "aside",
63
+ "data-part-aside": "",
64
+ "aria-label": f.t("aside"),
65
+ children: f.loading ? /* @__PURE__ */ A(n, {
66
+ lines: I,
67
+ inlineSize: "60%"
68
+ }) : e
69
+ }) : null]
70
+ }) : /* @__PURE__ */ A("div", {
71
+ "data-part": "message",
72
+ "data-part-message": "",
73
+ children: s
74
+ })]
75
+ }),
76
+ className: o,
77
+ "data-part": "body",
78
+ style: u
79
+ });
80
+ return l === void 0 ? /* @__PURE__ */ A("div", {
81
+ ...g,
82
+ ref: c
83
+ }) : l(g);
84
+ }
85
+ function R({ actions: e, children: r, className: i, count: a, disabled: p, label: m, name: h, ref: g, render: _, style: ee, ...y }) {
86
+ let b = V(), x = D(null), C = S((e) => {
87
+ x.current = e, typeof g == "function" ? g(e) : g && (g.current = e);
88
+ }, [g]), { register: T } = b;
89
+ w(() => T({
90
+ name: h,
91
+ label: m,
92
+ count: a,
93
+ disabled: p,
94
+ element: x.current
95
+ }), [
96
+ T,
97
+ h,
98
+ m,
99
+ a,
100
+ p
101
+ ]);
102
+ let E = b.current === h, O = b.layout === "tabs", M = O ? (b.identify ?? b.renderedIdentify.current)?.(h) : void 0, te = !O || b.mount === "eager" || E || b.mount === "lazy" && b.seen(h), N = a === void 0 ? null : /* @__PURE__ */ A(t, {
103
+ count: a,
104
+ shape: "pill",
105
+ size: "sm",
106
+ tone: "secondary",
107
+ variant: "soft"
108
+ }), P = b.loading ? /* @__PURE__ */ A(n, { lines: ne }) : null, F = v({
109
+ ...y,
110
+ ...M === void 0 ? {} : {
111
+ "aria-labelledby": M.tabId,
112
+ id: M.panelId
113
+ },
114
+ children: O ? /* @__PURE__ */ j(k, { children: [e != null && e !== !1 ? /* @__PURE__ */ A("div", {
115
+ "data-part": "section-actions",
116
+ "data-part-section-actions": "",
117
+ children: e
118
+ }) : null, te ? P ?? r : null] }) : /* @__PURE__ */ j(u, {
119
+ level: String(Math.min(Number(b.level) + 1, 6)),
120
+ size: b.size,
121
+ children: [/* @__PURE__ */ j(l, { children: [/* @__PURE__ */ j(s, { children: [/* @__PURE__ */ A(f, { children: m }), N === null ? null : /* @__PURE__ */ A(o, { children: N })] }), e != null && e !== !1 ? /* @__PURE__ */ A(c, { children: e }) : null] }), /* @__PURE__ */ A(d, { children: P ?? r })]
122
+ }),
123
+ className: i,
124
+ ...E ? { "data-current": "" } : {},
125
+ "data-name": h,
126
+ "data-part": "section",
127
+ ...O ? {
128
+ hidden: !E,
129
+ role: "tabpanel",
130
+ tabIndex: 0
131
+ } : {},
132
+ style: ee
133
+ });
134
+ return _ === void 0 ? /* @__PURE__ */ A("div", {
135
+ ...F,
136
+ ref: C
137
+ }) : _(F);
138
+ }
139
+ function re(e) {
140
+ return y.toArray(e).flatMap((e) => {
141
+ if (!x(e)) return [];
142
+ if (e.type !== R) return re(e.props.children);
143
+ let { count: t, disabled: n, label: r, name: i } = e.props;
144
+ return [{
145
+ count: t,
146
+ disabled: n,
147
+ element: null,
148
+ label: r,
149
+ name: i
150
+ }];
151
+ });
152
+ }
153
+ function z() {
154
+ let e = h(), t = V(), n = D(e.identify);
155
+ n.current = e.identify, t.renderedIdentify.current = e.identify;
156
+ let { attachIdentify: r } = t;
157
+ return w(() => (r((e) => n.current(e)), () => r(void 0)), [r]), null;
158
+ }
159
+ function B({ children: e, label: n }) {
160
+ let r = V();
161
+ return r.layout === "tabs" ? /* @__PURE__ */ j(p, {
162
+ onValueChange: (e, t) => {
163
+ r.select(e, t.reason, t.source);
164
+ },
165
+ track: "none",
166
+ value: r.current,
167
+ children: [
168
+ /* @__PURE__ */ A(z, {}),
169
+ /* @__PURE__ */ A(g, {
170
+ "aria-label": n,
171
+ children: r.sections.map((e) => /* @__PURE__ */ j(_, {
172
+ disabled: e.disabled,
173
+ value: e.name,
174
+ children: [e.label, e.count === void 0 ? null : /* @__PURE__ */ j(k, { children: [" ", /* @__PURE__ */ A(t, {
175
+ count: e.count,
176
+ shape: "pill",
177
+ size: "sm",
178
+ tone: "secondary",
179
+ variant: "soft"
180
+ })] })]
181
+ }, e.name))
182
+ }),
183
+ e != null && e !== !1 ? /* @__PURE__ */ A(m, { children: e }) : null
184
+ ]
185
+ }) : null;
186
+ }
187
+ //#endregion
188
+ //#region src/detail-panel/detail-panel.tsx
189
+ var ie = b(void 0);
190
+ function V() {
191
+ let e = C(ie);
192
+ if (e === void 0) throw Error("A DetailPanel part must be rendered inside DetailPanel.");
193
+ return e;
194
+ }
195
+ var ae = ":scope > [data-ui=\"page-header\"] [data-part=\"heading\"]";
196
+ function oe(e) {
197
+ return [...e].sort((e, t) => {
198
+ if (e.element === null || t.element === null) return 0;
199
+ let n = e.element.compareDocumentPosition(t.element);
200
+ return n & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : n & Node.DOCUMENT_POSITION_PRECEDING ? 1 : 0;
201
+ });
202
+ }
203
+ function H({ "aria-label": t, "aria-labelledby": n, aside: o, children: s, className: c, defaultSection: l, footer: u, layout: d, level: f, loading: p, messages: m, mount: h, onSectionChange: g, recordKey: _, ref: y, render: b, scroll: x, section: C, size: k, status: N, style: F, ...ne }) {
204
+ let I = P(), L = i(), R = o ?? I.aside, z = d ?? I.layout, B = f ?? I.level, V = h ?? I.mount, H = x ?? I.scroll, U = k ?? I.size, se = N ?? "ready", W = p === !0, G = e(M, m), [K, ce] = O(null), [le, ue] = O(void 0), [q, de] = O(() => new Map(re(s).map((e) => [e.name, e]))), fe = D(void 0), [pe, me] = O(void 0), [he, ge] = O(l), _e = C ?? he, J = E(() => oe(q.values()), [q]), Y = _e ?? (z === "tabs" ? J[0]?.name : void 0), ve = D(/* @__PURE__ */ new Set());
205
+ Y !== void 0 && ve.current.add(Y);
206
+ let X = D({
207
+ current: Y,
208
+ onSectionChange: g,
209
+ section: C
210
+ });
211
+ X.current = {
212
+ current: Y,
213
+ onSectionChange: g,
214
+ section: C
215
+ };
216
+ let Z = S((e, t, n) => {
217
+ if (e === X.current.current) return;
218
+ let r = !1, i = ee({
219
+ controlled: X.current.section,
220
+ initial: X.current.current,
221
+ onRequest: (e) => {
222
+ X.current.onSectionChange?.(e.value, e), r = e.cancelled;
223
+ }
224
+ }).request(e, t, n);
225
+ r || i && ge(e);
226
+ }, []), ye = S((e) => (de((t) => new Map(t).set(e.name, e)), () => {
227
+ de((t) => {
228
+ if (t.get(e.name) !== e) return t;
229
+ let n = new Map(t);
230
+ return n.delete(e.name), n;
231
+ });
232
+ }), []), be = S((e) => {
233
+ me(() => e);
234
+ }, []);
235
+ w(() => {
236
+ if (K === null || t !== void 0 || n !== void 0) return;
237
+ let e = K.querySelector(ae);
238
+ ue(e?.id || void 0);
239
+ }, [
240
+ K,
241
+ t,
242
+ n,
243
+ _,
244
+ W
245
+ ]);
246
+ let Q = S(() => {
247
+ let e = K?.querySelector(ae);
248
+ e && (e.hasAttribute("tabindex") || e.setAttribute("tabindex", "-1"), e.focus({ preventScroll: !0 }));
249
+ }, [K]), xe = S(() => K === null ? null : H === "self" ? K : te(K), [K, H]), Se = D(_);
250
+ w(() => {
251
+ if (Se.current === _ || (Se.current = _, K === null)) return;
252
+ let e = K.ownerDocument.activeElement;
253
+ e !== null && K.contains(e) && (xe()?.scrollTo({ top: 0 }), Q());
254
+ }, [
255
+ _,
256
+ K,
257
+ xe,
258
+ Q
259
+ ]);
260
+ let $ = D(void 0);
261
+ w(() => {
262
+ z === "stacked" && Y !== void 0 && $.current !== Y && ($.current = Y, q.get(Y)?.element?.scrollIntoView({ block: "start" }));
263
+ }, [
264
+ Y,
265
+ q,
266
+ z
267
+ ]), T(y, () => ({
268
+ get element() {
269
+ return K;
270
+ },
271
+ focus: Q,
272
+ scrollToSection: (e) => {
273
+ $.current = void 0, Z(e, "programmatic", void 0);
274
+ }
275
+ }), [
276
+ K,
277
+ Q,
278
+ Z
279
+ ]);
280
+ let Ce = {
281
+ aside: R,
282
+ attachIdentify: be,
283
+ current: Y,
284
+ identify: pe,
285
+ layout: z,
286
+ level: B,
287
+ loading: W,
288
+ mount: V,
289
+ register: ye,
290
+ renderedIdentify: fe,
291
+ sections: J,
292
+ seen: (e) => ve.current.has(e),
293
+ select: Z,
294
+ size: U,
295
+ status: se,
296
+ t: G
297
+ }, we = v({
298
+ ...ne,
299
+ ...t === void 0 ? n === void 0 ? le === void 0 ? W ? { "aria-label": G("loading") } : {} : { "aria-labelledby": le } : { "aria-labelledby": n } : { "aria-label": t },
300
+ ...W ? {
301
+ "aria-busy": !0,
302
+ "data-loading": ""
303
+ } : {},
304
+ children: /* @__PURE__ */ j(a, {
305
+ level: B,
306
+ size: U,
307
+ children: [s, u != null && u !== !1 ? /* @__PURE__ */ A("footer", {
308
+ "data-part": "footer",
309
+ "data-part-footer": "",
310
+ children: /* @__PURE__ */ A(r, {
311
+ inset: L?.inset,
312
+ size: L?.width,
313
+ children: u
314
+ })
315
+ }) : null]
316
+ }),
317
+ className: c,
318
+ "data-aside": R,
319
+ ..._ === void 0 ? {} : { "data-key": String(_) },
320
+ "data-layout": z,
321
+ "data-level": B,
322
+ "data-mount": V,
323
+ "data-part": "root",
324
+ "data-scroll": H,
325
+ "data-size": U,
326
+ "data-status": se,
327
+ "data-ui": "detail-panel",
328
+ style: F
329
+ });
330
+ return /* @__PURE__ */ A(ie.Provider, {
331
+ value: Ce,
332
+ children: b === void 0 ? /* @__PURE__ */ A("article", {
333
+ ...we,
334
+ ref: ce
335
+ }) : b({
336
+ ...we,
337
+ ref: ce
338
+ })
339
+ });
340
+ }
341
+ //#endregion
342
+ export { B as a, R as i, V as n, F as o, L as r, P as s, H as t };
@@ -1,2 +1,2 @@
1
- import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./detail-panel-EImAtksY.js";
2
- export { t as DetailPanel, o as DetailPanelBody, r as DetailPanelDefaultsProvider, n as DetailPanelSection, i as DetailPanelTabs, e as useDetailPanel, a as useDetailPanelDefaults };
1
+ import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./detail-panel-Cke3ZFU3.js";
2
+ export { o as DetailPanel, i as DetailPanelBody, r as DetailPanelDefaultsProvider, t as DetailPanelSection, e as DetailPanelTabs, n as useDetailPanel, a as useDetailPanelDefaults };