@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.
- package/dist/{app-shell-D54YkU7E.js → app-shell-DsWhsSMU.js} +3 -2
- package/dist/app-shell.js +1 -1
- package/dist/attachment-TZykYNu5.js +300 -0
- package/dist/attachment.js +2 -2
- package/dist/{avatar-group-bJaZE1_C.js → avatar-group-Bzmmj2HI.js} +2 -1
- package/dist/avatar-group.js +1 -1
- package/dist/{carousel-B9nMK7Yf.js → carousel-CRNz-T3g.js} +1 -1
- package/dist/carousel.js +1 -1
- package/dist/{command-palette-C90CzfQi.js → command-palette-Bgf5tfCI.js} +160 -156
- package/dist/command-palette.js +1 -1
- package/dist/{data-grid-D106baPp.js → data-grid-DUft3rJb.js} +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/{data-list-BA0xrySM.js → data-list-Dv3orBtf.js} +15 -15
- package/dist/data-list.js +1 -1
- package/dist/detail-panel-Cke3ZFU3.js +342 -0
- package/dist/detail-panel.js +2 -2
- package/dist/docs/action-bar.examples.md +768 -0
- package/dist/docs/action-bar.json +74 -50
- package/dist/docs/action-bar.md +49 -311
- package/dist/docs/app-shell.examples.md +1221 -64
- package/dist/docs/app-shell.json +92 -60
- package/dist/docs/app-shell.md +92 -57
- package/dist/docs/attachment.examples.md +689 -0
- package/dist/docs/attachment.json +69 -37
- package/dist/docs/attachment.md +44 -203
- package/dist/docs/avatar-group.json +111 -23
- package/dist/docs/avatar-group.md +487 -28
- package/dist/docs/button-group.json +98 -2
- package/dist/docs/button-group.md +411 -8
- package/dist/docs/calendar.examples.md +512 -0
- package/dist/docs/calendar.json +72 -24
- package/dist/docs/calendar.md +18 -147
- package/dist/docs/carousel.examples.md +868 -0
- package/dist/docs/carousel.json +58 -50
- package/dist/docs/carousel.md +66 -300
- package/dist/docs/cascader.examples.md +1269 -0
- package/dist/docs/cascader.json +72 -16
- package/dist/docs/cascader.md +78 -154
- package/dist/docs/chart.examples.md +734 -24
- package/dist/docs/chart.json +93 -13
- package/dist/docs/chart.md +28 -7
- package/dist/docs/clock.json +71 -15
- package/dist/docs/clock.md +326 -21
- package/dist/docs/code-block.json +79 -55
- package/dist/docs/code-block.md +417 -74
- package/dist/docs/color-picker.json +60 -12
- package/dist/docs/color-picker.md +245 -22
- package/dist/docs/column-manager.examples.md +764 -0
- package/dist/docs/column-manager.json +68 -12
- package/dist/docs/column-manager.md +44 -203
- package/dist/docs/command-palette.examples.md +747 -0
- package/dist/docs/command-palette.json +48 -24
- package/dist/docs/command-palette.md +60 -339
- package/dist/docs/currency-field.examples.md +355 -73
- package/dist/docs/currency-field.json +96 -64
- package/dist/docs/currency-field.md +57 -50
- package/dist/docs/dashboard-grid.examples.md +629 -0
- package/dist/docs/dashboard-grid.json +64 -16
- package/dist/docs/dashboard-grid.md +34 -152
- package/dist/docs/data-list.examples.md +1556 -0
- package/dist/docs/data-list.json +58 -18
- package/dist/docs/data-list.md +139 -224
- package/dist/docs/date-field.examples.md +543 -0
- package/dist/docs/date-field.json +64 -24
- package/dist/docs/date-field.md +22 -168
- package/dist/docs/datetime-field.examples.md +699 -0
- package/dist/docs/datetime-field.json +79 -31
- package/dist/docs/datetime-field.md +24 -269
- package/dist/docs/datetime-range-picker.examples.md +682 -0
- package/dist/docs/datetime-range-picker.json +117 -61
- package/dist/docs/datetime-range-picker.md +59 -224
- package/dist/docs/description-list.examples.md +652 -0
- package/dist/docs/description-list.json +49 -25
- package/dist/docs/description-list.md +33 -188
- package/dist/docs/detail-panel.examples.md +1177 -0
- package/dist/docs/detail-panel.json +69 -53
- package/dist/docs/detail-panel.md +114 -324
- package/dist/docs/entity-picker.examples.md +1037 -0
- package/dist/docs/entity-picker.json +66 -18
- package/dist/docs/entity-picker.md +56 -246
- package/dist/docs/event-calendar.examples.md +749 -49
- package/dist/docs/event-calendar.json +46 -22
- package/dist/docs/event-calendar.md +81 -11
- package/dist/docs/field-group.examples.md +554 -0
- package/dist/docs/field-group.json +98 -34
- package/dist/docs/field-group.md +55 -133
- package/dist/docs/filter-bar.examples.md +772 -0
- package/dist/docs/filter-bar.json +41 -25
- package/dist/docs/filter-bar.md +42 -246
- package/dist/docs/form.examples.md +579 -0
- package/dist/docs/form.json +87 -39
- package/dist/docs/form.md +53 -177
- package/dist/docs/fullscreen.examples.md +558 -0
- package/dist/docs/fullscreen.json +58 -18
- package/dist/docs/fullscreen.md +50 -169
- package/dist/docs/highlight.json +57 -25
- package/dist/docs/highlight.md +402 -50
- package/dist/docs/icon.json +85 -5
- package/dist/docs/icon.md +401 -10
- package/dist/docs/image.examples.md +670 -0
- package/dist/docs/image.json +44 -28
- package/dist/docs/image.md +24 -176
- package/dist/docs/import-export-center.examples.md +1280 -0
- package/dist/docs/import-export-center.json +67 -27
- package/dist/docs/import-export-center.md +121 -226
- package/dist/docs/list-item.examples.md +769 -0
- package/dist/docs/list-item.json +110 -38
- package/dist/docs/list-item.md +84 -201
- package/dist/docs/listbox.examples.md +858 -0
- package/dist/docs/listbox.json +76 -28
- package/dist/docs/listbox.md +41 -263
- package/dist/docs/markdown.json +79 -55
- package/dist/docs/markdown.md +581 -85
- package/dist/docs/media-viewer.examples.md +1038 -0
- package/dist/docs/media-viewer.json +70 -15
- package/dist/docs/media-viewer.md +84 -135
- package/dist/docs/message-scroller.examples.md +1193 -0
- package/dist/docs/message-scroller.json +41 -17
- package/dist/docs/message-scroller.md +80 -134
- package/dist/docs/message.examples.md +944 -0
- package/dist/docs/message.json +64 -16
- package/dist/docs/message.md +34 -326
- package/dist/docs/meter.json +58 -26
- package/dist/docs/meter.md +312 -32
- package/dist/docs/navigation-menu.examples.md +1107 -0
- package/dist/docs/navigation-menu.json +57 -41
- package/dist/docs/navigation-menu.md +105 -298
- package/dist/docs/notification-center.examples.md +1045 -0
- package/dist/docs/notification-center.json +71 -15
- package/dist/docs/notification-center.md +76 -266
- package/dist/docs/otp-input.examples.md +490 -0
- package/dist/docs/otp-input.json +65 -25
- package/dist/docs/otp-input.md +20 -191
- package/dist/docs/page-header.examples.md +1041 -0
- package/dist/docs/page-header.json +75 -43
- package/dist/docs/page-header.md +79 -291
- package/dist/docs/page.examples.md +633 -0
- package/dist/docs/page.json +48 -16
- package/dist/docs/page.md +62 -129
- package/dist/docs/prompt-composer.examples.md +630 -0
- package/dist/docs/prompt-composer.json +66 -18
- package/dist/docs/prompt-composer.md +35 -161
- package/dist/docs/prose.json +69 -37
- package/dist/docs/prose.md +393 -75
- package/dist/docs/rating.examples.md +525 -0
- package/dist/docs/rating.json +92 -28
- package/dist/docs/rating.md +27 -241
- package/dist/docs/saved-views.examples.md +1108 -0
- package/dist/docs/saved-views.json +53 -21
- package/dist/docs/saved-views.md +86 -171
- package/dist/docs/scroll-area.examples.md +837 -0
- package/dist/docs/scroll-area.json +64 -24
- package/dist/docs/scroll-area.md +57 -140
- package/dist/docs/section.examples.md +676 -0
- package/dist/docs/section.json +68 -20
- package/dist/docs/section.md +39 -162
- package/dist/docs/segmented-control.examples.md +480 -0
- package/dist/docs/segmented-control.json +76 -28
- package/dist/docs/segmented-control.md +20 -191
- package/dist/docs/side-navigation.examples.md +1468 -0
- package/dist/docs/side-navigation.json +53 -53
- package/dist/docs/side-navigation.md +79 -354
- package/dist/docs/slider.examples.md +505 -0
- package/dist/docs/slider.json +91 -51
- package/dist/docs/slider.md +47 -212
- package/dist/docs/sparkline.json +60 -36
- package/dist/docs/sparkline.md +447 -71
- package/dist/docs/split-button.examples.md +509 -0
- package/dist/docs/split-button.json +73 -41
- package/dist/docs/split-button.md +64 -194
- package/dist/docs/splitter.examples.md +921 -0
- package/dist/docs/splitter.json +94 -46
- package/dist/docs/splitter.md +75 -182
- package/dist/docs/stat-card.examples.md +725 -0
- package/dist/docs/stat-card.json +89 -41
- package/dist/docs/stat-card.md +55 -227
- package/dist/docs/status-indicator.json +80 -32
- package/dist/docs/status-indicator.md +409 -65
- package/dist/docs/stepper.json +53 -21
- package/dist/docs/stepper.md +369 -48
- package/dist/docs/table-of-contents.examples.md +550 -0
- package/dist/docs/table-of-contents.json +60 -28
- package/dist/docs/table-of-contents.md +70 -205
- package/dist/docs/tags-input.examples.md +541 -0
- package/dist/docs/tags-input.json +64 -16
- package/dist/docs/tags-input.md +15 -262
- package/dist/docs/time-field.examples.md +587 -0
- package/dist/docs/time-field.json +69 -29
- package/dist/docs/time-field.md +21 -223
- package/dist/docs/time-picker.json +117 -53
- package/dist/docs/time-picker.md +499 -54
- package/dist/docs/time-range-picker.examples.md +750 -0
- package/dist/docs/time-range-picker.json +139 -75
- package/dist/docs/time-range-picker.md +63 -225
- package/dist/docs/timeline.examples.md +617 -0
- package/dist/docs/timeline.json +44 -28
- package/dist/docs/timeline.md +34 -208
- package/dist/docs/toolbar.json +56 -16
- package/dist/docs/toolbar.md +357 -63
- package/dist/docs/top-navigation.examples.md +1206 -140
- package/dist/docs/top-navigation.json +49 -33
- package/dist/docs/top-navigation.md +87 -36
- package/dist/docs/tour.examples.md +960 -0
- package/dist/docs/tour.json +57 -25
- package/dist/docs/tour.md +60 -244
- package/dist/docs/transfer.examples.md +631 -0
- package/dist/docs/transfer.json +80 -16
- package/dist/docs/transfer.md +41 -170
- package/dist/docs/typography.json +96 -0
- package/dist/docs/typography.md +352 -4
- package/dist/docs/upload.examples.md +555 -53
- package/dist/docs/upload.json +62 -30
- package/dist/docs/upload.md +46 -11
- package/dist/docs/wizard.examples.md +1389 -0
- package/dist/docs/wizard.json +89 -49
- package/dist/docs/wizard.md +122 -263
- package/dist/{entity-picker-CC4VoC3p.js → entity-picker-C78f3Z0o.js} +9 -6
- package/dist/entity-picker.js +1 -1
- package/dist/{event-calendar-CjmF_e0H.js → event-calendar-DJPoCi-O.js} +1 -1
- package/dist/event-calendar.js +1 -1
- package/dist/{filter-bar-B3QJD7SZ.js → filter-bar-D61wiQFP.js} +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/{import-export-center-CW8YVZev.js → import-export-center-mqvmlzwB.js} +44 -36
- package/dist/import-export-center.js +1 -1
- package/dist/index.js +58 -58
- package/dist/{markdown-BdskE4-L.js → markdown-8CtV4k44.js} +2 -2
- package/dist/markdown.js +1 -1
- package/dist/{media-viewer-zEXcwfEY.js → media-viewer-C_cbuAq-.js} +64 -60
- package/dist/media-viewer.js +2 -2
- package/dist/message-P91bEGyV.js +455 -0
- package/dist/message.js +2 -2
- package/dist/{page-header-DmwBGwlm.js → page-header-jeAIQSZM.js} +103 -108
- package/dist/page-header.js +1 -1
- package/dist/section-CVTQdWBl.js +216 -0
- package/dist/section.js +2 -2
- package/dist/{segmented-control-CbK7SurB.js → segmented-control-BSMVjukr.js} +1 -1
- package/dist/segmented-control.js +1 -1
- package/dist/{side-navigation-CKRETc8E.js → side-navigation-BQzBxz2B.js} +179 -179
- package/dist/side-navigation.js +1 -1
- package/dist/{stat-card-CL3Xe6pV.js → stat-card-BpGZiFbG.js} +12 -14
- package/dist/stat-card.js +1 -1
- package/dist/{stepper-DHdrANZI.js → stepper-Cxb_tHnA.js} +130 -127
- package/dist/stepper.js +2 -2
- package/dist/styles/carousel.css +1 -1
- package/dist/styles/index.css +1 -1
- package/dist/styles.css +1 -1
- package/dist/{timeline-BiL2CXfn.js → timeline-ZngK6zLC.js} +9 -6
- package/dist/timeline.js +1 -1
- package/dist/top-navigation-YSEQzBhD.js +744 -0
- package/dist/top-navigation.js +2 -2
- package/dist/{transfer-sKUvmEKe.js → transfer-Cv5yQuTN.js} +1 -1
- package/dist/transfer.js +1 -1
- package/dist/types/attachment/attachment-parts.d.ts +24 -11
- package/dist/types/attachment/attachment-parts.d.ts.map +1 -1
- package/dist/types/attachment/attachment.d.ts +3 -3
- package/dist/types/attachment/attachment.d.ts.map +1 -1
- package/dist/types/avatar-group/avatar-group.d.ts.map +1 -1
- package/dist/types/carousel/carousel-parts.d.ts +2 -2
- package/dist/types/command-palette/command-palette.d.ts.map +1 -1
- package/dist/types/data-list/data-list.d.ts.map +1 -1
- package/dist/types/detail-panel/detail-panel-parts.d.ts +10 -3
- package/dist/types/detail-panel/detail-panel-parts.d.ts.map +1 -1
- package/dist/types/detail-panel/detail-panel.d.ts.map +1 -1
- package/dist/types/detail-panel/detail-panel.types.d.ts +7 -0
- package/dist/types/detail-panel/detail-panel.types.d.ts.map +1 -1
- package/dist/types/entity-picker/entity-picker.d.ts.map +1 -1
- package/dist/types/import-export-center/import-export-center.d.ts.map +1 -1
- package/dist/types/media-viewer/index.d.ts +2 -2
- package/dist/types/media-viewer/index.d.ts.map +1 -1
- package/dist/types/media-viewer/media-viewer-bar.d.ts +3 -1
- package/dist/types/media-viewer/media-viewer-bar.d.ts.map +1 -1
- package/dist/types/media-viewer/media-viewer.types.d.ts +1 -0
- package/dist/types/media-viewer/media-viewer.types.d.ts.map +1 -1
- package/dist/types/message/message-parts.d.ts +7 -0
- package/dist/types/message/message-parts.d.ts.map +1 -1
- package/dist/types/message/message.d.ts.map +1 -1
- package/dist/types/page-header/page-header-parts.d.ts.map +1 -1
- package/dist/types/section/section-parts.d.ts +16 -8
- package/dist/types/section/section-parts.d.ts.map +1 -1
- package/dist/types/section/section.d.ts.map +1 -1
- package/dist/types/segmented-control/segmented-control-parts.d.ts.map +1 -1
- package/dist/types/side-navigation/side-navigation-parts.d.ts.map +1 -1
- package/dist/types/stat-card/stat-card-delta.d.ts.map +1 -1
- package/dist/types/stat-card/stat-card-parts.d.ts +3 -3
- package/dist/types/stat-card/stat-card-parts.d.ts.map +1 -1
- package/dist/types/stepper/stepper-parts.d.ts +11 -2
- package/dist/types/stepper/stepper-parts.d.ts.map +1 -1
- package/dist/types/stepper/stepper.d.ts.map +1 -1
- package/dist/types/timeline/timeline-parts.d.ts.map +1 -1
- package/dist/types/top-navigation/top-navigation.d.ts.map +1 -1
- package/dist/{wizard-4c0X7Bx_.js → wizard-Dfryz1id.js} +214 -214
- package/dist/wizard.js +1 -1
- package/package.json +6 -6
- package/dist/attachment-MqczA38F.js +0 -292
- package/dist/detail-panel-EImAtksY.js +0 -327
- package/dist/message-D1Dd6Y2k.js +0 -452
- package/dist/section-D_qOfdxR.js +0 -213
- package/dist/top-navigation-D8IHPOmm.js +0 -744
package/dist/wizard.js
CHANGED
|
@@ -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 "./wizard-
|
|
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 "./wizard-Dfryz1id.js";
|
|
2
2
|
export { r as WIZARD_FALLBACK, m as Wizard, l as WizardActions, f as WizardCancel, o as WizardComplete, d as WizardDefaultsProvider, e as WizardDraftStatus, u as WizardEdit, p as WizardNext, t as WizardPrevious, s as WizardSaveDraft, h as WizardSkip, n as WizardStep, a as useWizard, c as useWizardDefaults, i as useWizardStep };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slotted/react",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.43",
|
|
4
4
|
"description": "Slotted UI components for React, one subpath per family.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"slotted",
|
|
@@ -566,17 +566,17 @@
|
|
|
566
566
|
"./*/styles.css": "./dist/styles/*.css"
|
|
567
567
|
},
|
|
568
568
|
"peerDependencies": {
|
|
569
|
-
"@slotted/core": "0.1.0-beta.
|
|
570
|
-
"@slotted/theme": "0.1.0-beta.
|
|
569
|
+
"@slotted/core": "0.1.0-beta.43",
|
|
570
|
+
"@slotted/theme": "0.1.0-beta.43",
|
|
571
571
|
"react": ">=19.2.0 <20",
|
|
572
572
|
"react-dom": ">=19.2.0 <20"
|
|
573
573
|
},
|
|
574
574
|
"devDependencies": {
|
|
575
575
|
"@slotted/agent-docs": "0.0.0",
|
|
576
|
-
"@slotted/core": "0.1.0-beta.
|
|
576
|
+
"@slotted/core": "0.1.0-beta.43",
|
|
577
577
|
"@slotted/storybook-workbench": "0.0.0",
|
|
578
|
-
"@slotted/styles": "0.1.0-beta.
|
|
579
|
-
"@slotted/theme": "0.1.0-beta.
|
|
578
|
+
"@slotted/styles": "0.1.0-beta.43",
|
|
579
|
+
"@slotted/theme": "0.1.0-beta.43",
|
|
580
580
|
"@storybook/react-vite": "10.5.10",
|
|
581
581
|
"@testing-library/jest-dom": "7.0.1",
|
|
582
582
|
"@testing-library/react": "16.3.3",
|
|
@@ -1,292 +0,0 @@
|
|
|
1
|
-
import { n as e, r as t } from "./i18n-D7xXDd8-.js";
|
|
2
|
-
import { n, t as r } from "./icon-D04-_QFA.js";
|
|
3
|
-
import { n as i } from "./progress-indicator-DRr0Gj6w.js";
|
|
4
|
-
import { n as a, r as o, t as s } from "./attachment-kinds-x-DEOvCy.js";
|
|
5
|
-
import { keyedProps as c } from "@slotted/core/selector-key";
|
|
6
|
-
import { createRemovalFocus as l } from "@slotted/core/focus";
|
|
7
|
-
import { createContext as u, useCallback as d, useContext as f, useEffect as p, useId as m, useMemo as h, useRef as g, useState as _ } from "react";
|
|
8
|
-
import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
9
|
-
import { attachmentMessages as x } from "@slotted/core/i18n";
|
|
10
|
-
import { fileKind as S, formatBytes as C, splitName as w } from "@slotted/core/upload";
|
|
11
|
-
//#region src/attachment/attachment-defaults.tsx
|
|
12
|
-
var T = u({
|
|
13
|
-
layout: "list",
|
|
14
|
-
orientation: "horizontal",
|
|
15
|
-
size: "md"
|
|
16
|
-
});
|
|
17
|
-
function E() {
|
|
18
|
-
return f(T);
|
|
19
|
-
}
|
|
20
|
-
function D({ children: e, ...t }) {
|
|
21
|
-
let n = E();
|
|
22
|
-
return /* @__PURE__ */ y(T.Provider, {
|
|
23
|
-
value: {
|
|
24
|
-
layout: t.layout ?? n.layout,
|
|
25
|
-
orientation: t.orientation ?? n.orientation,
|
|
26
|
-
size: t.size ?? n.size
|
|
27
|
-
},
|
|
28
|
-
children: e
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
//#endregion
|
|
32
|
-
//#region src/attachment/attachment.tsx
|
|
33
|
-
var O = u(null), k = u(null);
|
|
34
|
-
function A() {
|
|
35
|
-
let e = f(k);
|
|
36
|
-
if (e === null) throw Error("An Attachment part is rendered outside an Attachment.");
|
|
37
|
-
return e;
|
|
38
|
-
}
|
|
39
|
-
function j(e, t) {
|
|
40
|
-
typeof e == "function" ? e(t) : e != null && (e.current = t);
|
|
41
|
-
}
|
|
42
|
-
function M({ layout: e, orientation: t, ref: n, render: r, size: i, ...a }) {
|
|
43
|
-
let o = E(), u = e ?? o.layout, f = t ?? o.orientation, p = i ?? o.size, m = g(null), _ = d((e) => {
|
|
44
|
-
if (m.current?.(), m.current = null, e !== null) {
|
|
45
|
-
let t = l(e, { itemSelector: s });
|
|
46
|
-
m.current = () => t.destroy();
|
|
47
|
-
}
|
|
48
|
-
j(n, e);
|
|
49
|
-
}, [n]), v = c({
|
|
50
|
-
tabIndex: -1,
|
|
51
|
-
...a,
|
|
52
|
-
"data-layout": u,
|
|
53
|
-
"data-orientation": f,
|
|
54
|
-
"data-part": "group",
|
|
55
|
-
"data-size": p,
|
|
56
|
-
"data-ui": "attachment",
|
|
57
|
-
ref: _
|
|
58
|
-
}), b = h(() => ({
|
|
59
|
-
layout: u,
|
|
60
|
-
orientation: t,
|
|
61
|
-
size: i
|
|
62
|
-
}), [
|
|
63
|
-
t,
|
|
64
|
-
u,
|
|
65
|
-
i
|
|
66
|
-
]);
|
|
67
|
-
return /* @__PURE__ */ y(O.Provider, {
|
|
68
|
-
value: b,
|
|
69
|
-
children: r === void 0 ? /* @__PURE__ */ y("ul", { ...v }) : r(v)
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
function N({ disabled: n = !1, file: r, invalid: i = !1, loading: a = !1, messages: o, onKeyDown: s, onRemove: l, orientation: u, render: p, size: h, ...g }) {
|
|
73
|
-
let v = E(), b = f(O), C = m(), T = e(), D = t(x, o), A = h ?? b?.size ?? v.size, j = u ?? b?.orientation ?? v.orientation, M = S({
|
|
74
|
-
name: r.name,
|
|
75
|
-
type: r.type ?? ""
|
|
76
|
-
}), { stem: N, extension: P } = w(r.name), F = l !== void 0, [I, L] = _({
|
|
77
|
-
detail: null,
|
|
78
|
-
message: null
|
|
79
|
-
}), R = d((e, t) => {
|
|
80
|
-
L((n) => n[e] === t ? n : {
|
|
81
|
-
...n,
|
|
82
|
-
[e]: t
|
|
83
|
-
});
|
|
84
|
-
}, []), z = d((e, t) => {
|
|
85
|
-
n || l?.({
|
|
86
|
-
reason: e,
|
|
87
|
-
file: r,
|
|
88
|
-
source: t
|
|
89
|
-
});
|
|
90
|
-
}, [
|
|
91
|
-
n,
|
|
92
|
-
r,
|
|
93
|
-
l
|
|
94
|
-
]), B = {
|
|
95
|
-
describe: R,
|
|
96
|
-
described: I,
|
|
97
|
-
disabled: n,
|
|
98
|
-
extension: P,
|
|
99
|
-
file: r,
|
|
100
|
-
ids: {
|
|
101
|
-
detail: `${C}-detail`,
|
|
102
|
-
message: `${C}-message`
|
|
103
|
-
},
|
|
104
|
-
invalid: i,
|
|
105
|
-
kind: M,
|
|
106
|
-
loading: a,
|
|
107
|
-
locale: T,
|
|
108
|
-
orientation: j,
|
|
109
|
-
removable: F,
|
|
110
|
-
request: z,
|
|
111
|
-
stem: N,
|
|
112
|
-
t: D
|
|
113
|
-
}, V = c({
|
|
114
|
-
...g,
|
|
115
|
-
...a ? { "aria-busy": !0 } : {},
|
|
116
|
-
...n ? { "data-disabled": "" } : {},
|
|
117
|
-
...i ? { "data-invalid": "" } : {},
|
|
118
|
-
...a ? { "data-loading": "" } : {},
|
|
119
|
-
"data-kind": M,
|
|
120
|
-
"data-orientation": j,
|
|
121
|
-
"data-part": "root",
|
|
122
|
-
"data-size": A,
|
|
123
|
-
"data-ui": "attachment",
|
|
124
|
-
onKeyDown: (e) => {
|
|
125
|
-
if (s?.(e), !F || n || e.defaultPrevented || e.repeat || e.key !== "Backspace" && e.key !== "Delete") return;
|
|
126
|
-
let t = e.target;
|
|
127
|
-
t.isContentEditable || t.closest("input, textarea, select") !== null || (e.preventDefault(), z("keyboard", e));
|
|
128
|
-
}
|
|
129
|
-
}), H = p === void 0 ? y(b === null ? "div" : "li", { ...V }) : p(V);
|
|
130
|
-
return /* @__PURE__ */ y(k.Provider, {
|
|
131
|
-
value: B,
|
|
132
|
-
children: H
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
function P(e, t) {
|
|
136
|
-
let { describe: n, ids: r } = A(), i = t ?? r[e];
|
|
137
|
-
return p(() => (n(e, i), () => n(e, null)), [
|
|
138
|
-
n,
|
|
139
|
-
i,
|
|
140
|
-
e
|
|
141
|
-
]), i;
|
|
142
|
-
}
|
|
143
|
-
//#endregion
|
|
144
|
-
//#region src/attachment/attachment-parts.tsx
|
|
145
|
-
function F({ children: e, render: t, src: i, ...s }) {
|
|
146
|
-
let l = A(), [u, d] = _(null), f = i !== void 0 && u !== i, p = c({
|
|
147
|
-
"aria-hidden": !0,
|
|
148
|
-
...s,
|
|
149
|
-
children: e ?? (f ? /* @__PURE__ */ y("img", {
|
|
150
|
-
alt: "",
|
|
151
|
-
decoding: "async",
|
|
152
|
-
loading: "lazy",
|
|
153
|
-
onError: () => d(i),
|
|
154
|
-
src: i
|
|
155
|
-
}) : /* @__PURE__ */ y(r, { children: /* @__PURE__ */ y(n, { name: a[l.kind] }) })),
|
|
156
|
-
"data-extension": o(l.extension, l.t("noExtension")),
|
|
157
|
-
"data-kind": l.kind,
|
|
158
|
-
"data-part": "preview"
|
|
159
|
-
});
|
|
160
|
-
return t === void 0 ? /* @__PURE__ */ y("span", { ...p }) : t(p);
|
|
161
|
-
}
|
|
162
|
-
function I({ render: e, ...t }) {
|
|
163
|
-
let n = c({
|
|
164
|
-
...t,
|
|
165
|
-
"data-part": "body"
|
|
166
|
-
});
|
|
167
|
-
return e === void 0 ? /* @__PURE__ */ y("div", { ...n }) : e(n);
|
|
168
|
-
}
|
|
169
|
-
function L({ children: e, render: t, ...n }) {
|
|
170
|
-
let { extension: r, stem: i } = A(), a = c({
|
|
171
|
-
dir: "auto",
|
|
172
|
-
...n,
|
|
173
|
-
children: e ?? /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y("span", {
|
|
174
|
-
"data-part": "name",
|
|
175
|
-
"data-part-name": "",
|
|
176
|
-
children: i
|
|
177
|
-
}), r === "" ? null : /* @__PURE__ */ y("span", {
|
|
178
|
-
"data-part": "extension",
|
|
179
|
-
"data-part-extension": "",
|
|
180
|
-
children: r
|
|
181
|
-
})] }),
|
|
182
|
-
"data-part": "filename"
|
|
183
|
-
});
|
|
184
|
-
return t === void 0 ? /* @__PURE__ */ y("span", { ...a }) : t(a);
|
|
185
|
-
}
|
|
186
|
-
function R(e) {
|
|
187
|
-
let t = A(), n = [
|
|
188
|
-
...e === void 0 ? [] : [e],
|
|
189
|
-
...t.described.detail === null ? [] : [t.described.detail],
|
|
190
|
-
...t.described.message === null ? [] : [t.described.message]
|
|
191
|
-
];
|
|
192
|
-
return {
|
|
193
|
-
attachment: t,
|
|
194
|
-
blocked: t.disabled || t.loading,
|
|
195
|
-
describedBy: n.length === 0 ? void 0 : n.join(" ")
|
|
196
|
-
};
|
|
197
|
-
}
|
|
198
|
-
function z({ "aria-describedby": e, children: t, render: n, type: r = "button", ...i }) {
|
|
199
|
-
let { attachment: a, blocked: o, describedBy: s } = R(e), l = c({
|
|
200
|
-
title: a.file.name,
|
|
201
|
-
...i,
|
|
202
|
-
...s === void 0 ? {} : { "aria-describedby": s },
|
|
203
|
-
children: t ?? /* @__PURE__ */ y(L, {}),
|
|
204
|
-
"data-part": "trigger",
|
|
205
|
-
disabled: o || i.disabled === !0,
|
|
206
|
-
type: r
|
|
207
|
-
});
|
|
208
|
-
return n === void 0 ? /* @__PURE__ */ y("button", { ...l }) : n(l);
|
|
209
|
-
}
|
|
210
|
-
function B({ "aria-describedby": e, children: t, onClick: n, render: r, ...i }) {
|
|
211
|
-
let { attachment: a, blocked: o, describedBy: s } = R(e), l = c({
|
|
212
|
-
title: a.file.name,
|
|
213
|
-
...i,
|
|
214
|
-
...s === void 0 ? {} : { "aria-describedby": s },
|
|
215
|
-
...o ? { "aria-disabled": !0 } : {},
|
|
216
|
-
children: t ?? /* @__PURE__ */ y(L, {}),
|
|
217
|
-
"data-part": "trigger",
|
|
218
|
-
onClick: (e) => {
|
|
219
|
-
if (o) {
|
|
220
|
-
e.preventDefault();
|
|
221
|
-
return;
|
|
222
|
-
}
|
|
223
|
-
n?.(e);
|
|
224
|
-
}
|
|
225
|
-
});
|
|
226
|
-
return r === void 0 ? /* @__PURE__ */ y("a", { ...l }) : r(l);
|
|
227
|
-
}
|
|
228
|
-
function V({ children: e, id: t, render: n, ...r }) {
|
|
229
|
-
let i = A(), a = P("detail", t), o = i.file.size, s = c({
|
|
230
|
-
...r,
|
|
231
|
-
id: a,
|
|
232
|
-
children: e ?? (o === void 0 ? null : C(o, i.locale)),
|
|
233
|
-
"data-part": "detail"
|
|
234
|
-
});
|
|
235
|
-
return n === void 0 ? /* @__PURE__ */ y("p", { ...s }) : n(s);
|
|
236
|
-
}
|
|
237
|
-
function H({ id: e, render: t, ...n }) {
|
|
238
|
-
let r = P("message", e), i = c({
|
|
239
|
-
...n,
|
|
240
|
-
id: r,
|
|
241
|
-
"data-part": "message"
|
|
242
|
-
});
|
|
243
|
-
return t === void 0 ? /* @__PURE__ */ y("p", { ...i }) : t(i);
|
|
244
|
-
}
|
|
245
|
-
function U({ render: e, value: t, ...n }) {
|
|
246
|
-
let r = A(), a = c({
|
|
247
|
-
...n,
|
|
248
|
-
children: /* @__PURE__ */ y(i, {
|
|
249
|
-
hideLabel: !0,
|
|
250
|
-
label: r.file.name,
|
|
251
|
-
size: "sm",
|
|
252
|
-
tone: r.invalid ? "danger" : "accent",
|
|
253
|
-
value: t ?? null
|
|
254
|
-
}),
|
|
255
|
-
"data-part": "progress"
|
|
256
|
-
});
|
|
257
|
-
return e === void 0 ? /* @__PURE__ */ y("div", { ...a }) : e(a);
|
|
258
|
-
}
|
|
259
|
-
function W({ render: e, ...t }) {
|
|
260
|
-
let n = c({
|
|
261
|
-
...t,
|
|
262
|
-
"data-part": "actions"
|
|
263
|
-
});
|
|
264
|
-
return e === void 0 ? /* @__PURE__ */ y("div", { ...n }) : e(n);
|
|
265
|
-
}
|
|
266
|
-
function G({ render: e, type: t = "button", ...n }) {
|
|
267
|
-
let r = A(), i = c({
|
|
268
|
-
...n,
|
|
269
|
-
"data-part": "action",
|
|
270
|
-
disabled: r.disabled || n.disabled === !0,
|
|
271
|
-
type: t
|
|
272
|
-
});
|
|
273
|
-
return e === void 0 ? /* @__PURE__ */ y("button", { ...i }) : e(i);
|
|
274
|
-
}
|
|
275
|
-
function K({ "aria-label": e, children: t, onClick: i, render: a, type: o = "button", ...s }) {
|
|
276
|
-
let l = A();
|
|
277
|
-
if (!l.removable) return null;
|
|
278
|
-
let u = c({
|
|
279
|
-
...s,
|
|
280
|
-
"aria-label": e ?? l.t("remove", { name: l.file.name }),
|
|
281
|
-
children: t ?? /* @__PURE__ */ y(r, { children: /* @__PURE__ */ y(n, { name: "x" }) }),
|
|
282
|
-
"data-part": "remove",
|
|
283
|
-
disabled: l.disabled || s.disabled === !0,
|
|
284
|
-
onClick: (e) => {
|
|
285
|
-
i?.(e), !e.defaultPrevented && l.request("remove", e);
|
|
286
|
-
},
|
|
287
|
-
type: o
|
|
288
|
-
});
|
|
289
|
-
return a === void 0 ? /* @__PURE__ */ y("button", { ...u }) : a(u);
|
|
290
|
-
}
|
|
291
|
-
//#endregion
|
|
292
|
-
export { L as a, F as c, z as d, N as f, E as g, D as h, V as i, U as l, A as m, W as n, B as o, M as p, I as r, H as s, G as t, K as u };
|
|
@@ -1,327 +0,0 @@
|
|
|
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-DmwBGwlm.js";
|
|
7
|
-
import { c as o, d as s, l as c, o as l, r as u, s as d, t as f } from "./section-D_qOfdxR.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 { createContext as y, useCallback as b, useContext as x, useEffect as S, useImperativeHandle as C, useMemo as te, useRef as w, useState as T } from "react";
|
|
12
|
-
import { Fragment as E, jsx as D, jsxs as O } from "react/jsx-runtime";
|
|
13
|
-
import { detailPanelMessages as k } from "@slotted/core/i18n";
|
|
14
|
-
import { findScrollParent as A } from "@slotted/core/sticky-header";
|
|
15
|
-
//#region src/detail-panel/detail-panel-defaults.tsx
|
|
16
|
-
var j = y({
|
|
17
|
-
aside: "end",
|
|
18
|
-
layout: "stacked",
|
|
19
|
-
level: "2",
|
|
20
|
-
mount: "active",
|
|
21
|
-
scroll: "ancestor",
|
|
22
|
-
size: "md"
|
|
23
|
-
});
|
|
24
|
-
function M() {
|
|
25
|
-
return x(j);
|
|
26
|
-
}
|
|
27
|
-
function N({ children: e, ...t }) {
|
|
28
|
-
let n = M();
|
|
29
|
-
return /* @__PURE__ */ D(j.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.tsx
|
|
43
|
-
var P = y(void 0);
|
|
44
|
-
function F() {
|
|
45
|
-
let e = x(P);
|
|
46
|
-
if (e === void 0) throw Error("A DetailPanel part must be rendered inside DetailPanel.");
|
|
47
|
-
return e;
|
|
48
|
-
}
|
|
49
|
-
var I = ":scope > [data-ui=\"page-header\"] [data-part=\"heading\"]";
|
|
50
|
-
function ne(e) {
|
|
51
|
-
return [...e].sort((e, t) => {
|
|
52
|
-
if (e.element === null || t.element === null) return 0;
|
|
53
|
-
let n = e.element.compareDocumentPosition(t.element);
|
|
54
|
-
return n & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : n & Node.DOCUMENT_POSITION_PRECEDING ? 1 : 0;
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
function L({ "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: x, scroll: E, section: j, size: N, status: F, style: L, ...R }) {
|
|
58
|
-
let z = M(), B = i(), V = o ?? z.aside, H = d ?? z.layout, U = f ?? z.level, re = h ?? z.mount, W = E ?? z.scroll, G = N ?? z.size, ie = F ?? "ready", K = p === !0, ae = e(k, m), [q, oe] = T(null), [se, ce] = T(void 0), [J, le] = T(() => /* @__PURE__ */ new Map()), [ue, de] = T(void 0), [fe, pe] = T(l), me = j ?? fe, he = te(() => ne(J.values()), [J]), Y = me ?? (H === "tabs" ? he[0]?.name : void 0), ge = w(/* @__PURE__ */ new Set());
|
|
59
|
-
Y !== void 0 && ge.current.add(Y);
|
|
60
|
-
let X = w({
|
|
61
|
-
current: Y,
|
|
62
|
-
onSectionChange: g,
|
|
63
|
-
section: j
|
|
64
|
-
});
|
|
65
|
-
X.current = {
|
|
66
|
-
current: Y,
|
|
67
|
-
onSectionChange: g,
|
|
68
|
-
section: j
|
|
69
|
-
};
|
|
70
|
-
let Z = b((e, t, n) => {
|
|
71
|
-
if (e === X.current.current) return;
|
|
72
|
-
let r = !1, i = ee({
|
|
73
|
-
controlled: X.current.section,
|
|
74
|
-
initial: X.current.current,
|
|
75
|
-
onRequest: (e) => {
|
|
76
|
-
X.current.onSectionChange?.(e.value, e), r = e.cancelled;
|
|
77
|
-
}
|
|
78
|
-
}).request(e, t, n);
|
|
79
|
-
r || i && pe(e);
|
|
80
|
-
}, []), _e = b((e) => (le((t) => new Map(t).set(e.name, e)), () => {
|
|
81
|
-
le((t) => {
|
|
82
|
-
if (t.get(e.name) !== e) return t;
|
|
83
|
-
let n = new Map(t);
|
|
84
|
-
return n.delete(e.name), n;
|
|
85
|
-
});
|
|
86
|
-
}), []), ve = b((e) => {
|
|
87
|
-
de(() => e);
|
|
88
|
-
}, []);
|
|
89
|
-
S(() => {
|
|
90
|
-
if (q === null || t !== void 0 || n !== void 0) return;
|
|
91
|
-
let e = q.querySelector(I);
|
|
92
|
-
ce(e?.id || void 0);
|
|
93
|
-
}, [
|
|
94
|
-
q,
|
|
95
|
-
t,
|
|
96
|
-
n,
|
|
97
|
-
_,
|
|
98
|
-
K
|
|
99
|
-
]);
|
|
100
|
-
let Q = b(() => {
|
|
101
|
-
let e = q?.querySelector(I);
|
|
102
|
-
e && (e.hasAttribute("tabindex") || e.setAttribute("tabindex", "-1"), e.focus({ preventScroll: !0 }));
|
|
103
|
-
}, [q]), ye = b(() => q === null ? null : W === "self" ? q : A(q), [q, W]), be = w(_);
|
|
104
|
-
S(() => {
|
|
105
|
-
if (be.current === _ || (be.current = _, q === null)) return;
|
|
106
|
-
let e = q.ownerDocument.activeElement;
|
|
107
|
-
e !== null && q.contains(e) && (ye()?.scrollTo({ top: 0 }), Q());
|
|
108
|
-
}, [
|
|
109
|
-
_,
|
|
110
|
-
q,
|
|
111
|
-
ye,
|
|
112
|
-
Q
|
|
113
|
-
]);
|
|
114
|
-
let $ = w(void 0);
|
|
115
|
-
S(() => {
|
|
116
|
-
H === "stacked" && Y !== void 0 && $.current !== Y && ($.current = Y, J.get(Y)?.element?.scrollIntoView({ block: "start" }));
|
|
117
|
-
}, [
|
|
118
|
-
Y,
|
|
119
|
-
J,
|
|
120
|
-
H
|
|
121
|
-
]), C(y, () => ({
|
|
122
|
-
get element() {
|
|
123
|
-
return q;
|
|
124
|
-
},
|
|
125
|
-
focus: Q,
|
|
126
|
-
scrollToSection: (e) => {
|
|
127
|
-
$.current = void 0, Z(e, "programmatic", void 0);
|
|
128
|
-
}
|
|
129
|
-
}), [
|
|
130
|
-
q,
|
|
131
|
-
Q,
|
|
132
|
-
Z
|
|
133
|
-
]);
|
|
134
|
-
let xe = {
|
|
135
|
-
aside: V,
|
|
136
|
-
attachIdentify: ve,
|
|
137
|
-
current: Y,
|
|
138
|
-
identify: ue,
|
|
139
|
-
layout: H,
|
|
140
|
-
level: U,
|
|
141
|
-
loading: K,
|
|
142
|
-
mount: re,
|
|
143
|
-
register: _e,
|
|
144
|
-
sections: he,
|
|
145
|
-
seen: (e) => ge.current.has(e),
|
|
146
|
-
select: Z,
|
|
147
|
-
size: G,
|
|
148
|
-
status: ie,
|
|
149
|
-
t: ae
|
|
150
|
-
}, Se = v({
|
|
151
|
-
...R,
|
|
152
|
-
...t === void 0 ? n === void 0 ? se === void 0 ? K ? { "aria-label": ae("loading") } : {} : { "aria-labelledby": se } : { "aria-labelledby": n } : { "aria-label": t },
|
|
153
|
-
...K ? {
|
|
154
|
-
"aria-busy": !0,
|
|
155
|
-
"data-loading": ""
|
|
156
|
-
} : {},
|
|
157
|
-
children: /* @__PURE__ */ O(a, {
|
|
158
|
-
level: U,
|
|
159
|
-
size: G,
|
|
160
|
-
children: [s, u != null && u !== !1 ? /* @__PURE__ */ D("footer", {
|
|
161
|
-
"data-part": "footer",
|
|
162
|
-
"data-part-footer": "",
|
|
163
|
-
children: /* @__PURE__ */ D(r, {
|
|
164
|
-
inset: B?.inset,
|
|
165
|
-
size: B?.width,
|
|
166
|
-
children: u
|
|
167
|
-
})
|
|
168
|
-
}) : null]
|
|
169
|
-
}),
|
|
170
|
-
className: c,
|
|
171
|
-
"data-aside": V,
|
|
172
|
-
..._ === void 0 ? {} : { "data-key": String(_) },
|
|
173
|
-
"data-layout": H,
|
|
174
|
-
"data-level": U,
|
|
175
|
-
"data-mount": re,
|
|
176
|
-
"data-part": "root",
|
|
177
|
-
"data-scroll": W,
|
|
178
|
-
"data-size": G,
|
|
179
|
-
"data-status": ie,
|
|
180
|
-
"data-ui": "detail-panel",
|
|
181
|
-
style: L
|
|
182
|
-
});
|
|
183
|
-
return /* @__PURE__ */ D(P.Provider, {
|
|
184
|
-
value: xe,
|
|
185
|
-
children: x === void 0 ? /* @__PURE__ */ D("article", {
|
|
186
|
-
...Se,
|
|
187
|
-
ref: oe
|
|
188
|
-
}) : x({
|
|
189
|
-
...Se,
|
|
190
|
-
ref: oe
|
|
191
|
-
})
|
|
192
|
-
});
|
|
193
|
-
}
|
|
194
|
-
//#endregion
|
|
195
|
-
//#region src/detail-panel/detail-panel-parts.tsx
|
|
196
|
-
var R = 3, z = 4;
|
|
197
|
-
function B({ aside: e, banner: t, children: a, className: o, message: s, ref: c, render: l, style: u, ...d }) {
|
|
198
|
-
let f = F(), p = i(), m = f.status === "ready", h = f.aside !== "none" && (e !== void 0 || f.loading), g = v({
|
|
199
|
-
...d,
|
|
200
|
-
children: /* @__PURE__ */ O(r, {
|
|
201
|
-
inset: p?.inset,
|
|
202
|
-
size: p?.width,
|
|
203
|
-
children: [t != null && t !== !1 ? /* @__PURE__ */ D("div", {
|
|
204
|
-
"data-part": "banner",
|
|
205
|
-
"data-part-banner": "",
|
|
206
|
-
children: t
|
|
207
|
-
}) : null, m ? /* @__PURE__ */ O("div", {
|
|
208
|
-
"data-part": "columns",
|
|
209
|
-
"data-part-columns": "",
|
|
210
|
-
children: [/* @__PURE__ */ D("div", {
|
|
211
|
-
"data-part": "main",
|
|
212
|
-
"data-part-main": "",
|
|
213
|
-
children: a
|
|
214
|
-
}), h ? /* @__PURE__ */ D("aside", {
|
|
215
|
-
"data-part": "aside",
|
|
216
|
-
"data-part-aside": "",
|
|
217
|
-
"aria-label": f.t("aside"),
|
|
218
|
-
children: f.loading ? /* @__PURE__ */ D(n, {
|
|
219
|
-
lines: z,
|
|
220
|
-
inlineSize: "60%"
|
|
221
|
-
}) : e
|
|
222
|
-
}) : null]
|
|
223
|
-
}) : /* @__PURE__ */ D("div", {
|
|
224
|
-
"data-part": "message",
|
|
225
|
-
"data-part-message": "",
|
|
226
|
-
children: s
|
|
227
|
-
})]
|
|
228
|
-
}),
|
|
229
|
-
className: o,
|
|
230
|
-
"data-part": "body",
|
|
231
|
-
style: u
|
|
232
|
-
});
|
|
233
|
-
return l === void 0 ? /* @__PURE__ */ D("div", {
|
|
234
|
-
...g,
|
|
235
|
-
ref: c
|
|
236
|
-
}) : l(g);
|
|
237
|
-
}
|
|
238
|
-
function V({ actions: e, children: r, className: i, count: a, disabled: p, label: m, name: h, ref: g, render: _, style: ee, ...y }) {
|
|
239
|
-
let x = F(), C = w(null), te = b((e) => {
|
|
240
|
-
C.current = e, typeof g == "function" ? g(e) : g && (g.current = e);
|
|
241
|
-
}, [g]), { register: T } = x;
|
|
242
|
-
S(() => T({
|
|
243
|
-
name: h,
|
|
244
|
-
label: m,
|
|
245
|
-
count: a,
|
|
246
|
-
disabled: p,
|
|
247
|
-
element: C.current
|
|
248
|
-
}), [
|
|
249
|
-
T,
|
|
250
|
-
h,
|
|
251
|
-
m,
|
|
252
|
-
a,
|
|
253
|
-
p
|
|
254
|
-
]);
|
|
255
|
-
let k = x.current === h, A = x.layout === "tabs", j = A ? x.identify?.(h) : void 0, M = !A || x.mount === "eager" || k || x.mount === "lazy" && x.seen(h), N = a === void 0 ? null : /* @__PURE__ */ D(t, {
|
|
256
|
-
count: a,
|
|
257
|
-
shape: "pill",
|
|
258
|
-
size: "sm",
|
|
259
|
-
tone: "secondary",
|
|
260
|
-
variant: "soft"
|
|
261
|
-
}), P = x.loading ? /* @__PURE__ */ D(n, { lines: R }) : null, I = v({
|
|
262
|
-
...y,
|
|
263
|
-
...j === void 0 ? {} : {
|
|
264
|
-
"aria-labelledby": j.tabId,
|
|
265
|
-
id: j.panelId
|
|
266
|
-
},
|
|
267
|
-
children: A ? /* @__PURE__ */ O(E, { children: [e != null && e !== !1 ? /* @__PURE__ */ D("div", {
|
|
268
|
-
"data-part": "section-actions",
|
|
269
|
-
"data-part-section-actions": "",
|
|
270
|
-
children: e
|
|
271
|
-
}) : null, M ? P ?? r : null] }) : /* @__PURE__ */ O(s, {
|
|
272
|
-
level: String(Math.min(Number(x.level) + 1, 6)),
|
|
273
|
-
size: x.size,
|
|
274
|
-
children: [/* @__PURE__ */ O(l, { children: [/* @__PURE__ */ O(c, { children: [/* @__PURE__ */ D(d, { children: m }), N === null ? null : /* @__PURE__ */ D(o, { children: N })] }), e != null && e !== !1 ? /* @__PURE__ */ D(f, { children: e }) : null] }), /* @__PURE__ */ D(u, { children: P ?? r })]
|
|
275
|
-
}),
|
|
276
|
-
className: i,
|
|
277
|
-
...k ? { "data-current": "" } : {},
|
|
278
|
-
"data-name": h,
|
|
279
|
-
"data-part": "section",
|
|
280
|
-
...A ? {
|
|
281
|
-
hidden: !k,
|
|
282
|
-
role: "tabpanel",
|
|
283
|
-
tabIndex: 0
|
|
284
|
-
} : {},
|
|
285
|
-
style: ee
|
|
286
|
-
});
|
|
287
|
-
return _ === void 0 ? /* @__PURE__ */ D("div", {
|
|
288
|
-
...I,
|
|
289
|
-
ref: te
|
|
290
|
-
}) : _(I);
|
|
291
|
-
}
|
|
292
|
-
function H() {
|
|
293
|
-
let e = h(), t = F(), n = w(e.identify);
|
|
294
|
-
n.current = e.identify;
|
|
295
|
-
let { attachIdentify: r } = t;
|
|
296
|
-
return S(() => (r((e) => n.current(e)), () => r(void 0)), [r]), null;
|
|
297
|
-
}
|
|
298
|
-
function U({ children: e, label: n }) {
|
|
299
|
-
let r = F();
|
|
300
|
-
return r.layout === "tabs" ? /* @__PURE__ */ O(p, {
|
|
301
|
-
onValueChange: (e, t) => {
|
|
302
|
-
r.select(e, t.reason, t.source);
|
|
303
|
-
},
|
|
304
|
-
track: "none",
|
|
305
|
-
value: r.current,
|
|
306
|
-
children: [
|
|
307
|
-
/* @__PURE__ */ D(H, {}),
|
|
308
|
-
/* @__PURE__ */ D(g, {
|
|
309
|
-
"aria-label": n,
|
|
310
|
-
children: r.sections.map((e) => /* @__PURE__ */ O(_, {
|
|
311
|
-
disabled: e.disabled,
|
|
312
|
-
value: e.name,
|
|
313
|
-
children: [e.label, e.count === void 0 ? null : /* @__PURE__ */ O(E, { children: [" ", /* @__PURE__ */ D(t, {
|
|
314
|
-
count: e.count,
|
|
315
|
-
shape: "pill",
|
|
316
|
-
size: "sm",
|
|
317
|
-
tone: "secondary",
|
|
318
|
-
variant: "soft"
|
|
319
|
-
})] })]
|
|
320
|
-
}, e.name))
|
|
321
|
-
}),
|
|
322
|
-
e != null && e !== !1 ? /* @__PURE__ */ D(m, { children: e }) : null
|
|
323
|
-
]
|
|
324
|
-
}) : null;
|
|
325
|
-
}
|
|
326
|
-
//#endregion
|
|
327
|
-
export { F as a, L as i, V as n, N as o, U as r, M as s, B as t };
|