@slotted/react 0.1.0-beta.10 → 0.1.0-beta.11
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/action-bar-z2DPc1Wy.js +285 -0
- package/dist/action-bar.js +1 -1
- package/dist/action-sheet-BnedGewu.js +360 -0
- package/dist/action-sheet.js +1 -1
- package/dist/{alert-BTcqbG8w.js → alert-BTAXJ69M.js} +5 -5
- package/dist/alert.js +1 -1
- package/dist/{app-shell-BlkqQrOx.js → app-shell-Cb_kDBeV.js} +232 -173
- package/dist/app-shell.js +1 -1
- package/dist/{attachment-zlOPJvIm.js → attachment-D1O4qS8H.js} +28 -28
- package/dist/attachment.js +1 -1
- package/dist/{breadcrumb-DCGynpkb.js → breadcrumb-CnFjxxI2.js} +10 -10
- package/dist/breadcrumb.js +1 -1
- package/dist/{button-BCVjdzkn.js → button-D31perSu.js} +2 -2
- package/dist/button.js +2 -2
- package/dist/{calendar-qGUJ-kAy.js → calendar-DZyC1gAT.js} +8 -8
- package/dist/calendar.js +1 -1
- package/dist/{carousel-CjRTu8m7.js → carousel-Dso3gcYd.js} +14 -14
- package/dist/carousel.js +1 -1
- package/dist/cascader-BbajBwsX.js +1157 -0
- package/dist/cascader.js +1 -1
- package/dist/{chart-CPFq3jIE.js → chart-Bb6ctahn.js} +9 -9
- package/dist/chart.js +1 -1
- package/dist/{checkbox-CMY2KIih.js → checkbox-C_8GVtjD.js} +3 -3
- package/dist/{checkbox-group-DzMtLF7f.js → checkbox-group-DXCcusol.js} +2 -2
- package/dist/checkbox-group.js +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/{code-block-Bh_2Eg3M.js → code-block-C4mtsROE.js} +8 -8
- package/dist/code-block.js +1 -1
- package/dist/{color-picker-DlepH5co.js → color-picker-JZPnPb7s.js} +49 -49
- package/dist/color-picker.js +1 -1
- package/dist/{column-manager-CV9tCnKa.js → column-manager-BDUj-WIs.js} +31 -31
- package/dist/column-manager.js +1 -1
- package/dist/combobox-Dn69QwGX.js +904 -0
- package/dist/combobox.js +1 -1
- package/dist/command-palette-Dh1HKz_F.js +744 -0
- package/dist/command-palette.js +1 -1
- package/dist/{context-menu-Dbc0KkFp.js → context-menu-uJjEmAN3.js} +1 -1
- package/dist/context-menu.js +1 -1
- package/dist/{currency-field--wIfgVAx.js → currency-field-lHcrNJ7X.js} +13 -13
- package/dist/currency-field.js +1 -1
- package/dist/{dashboard-grid-D_LbWfdZ.js → dashboard-grid-z-SOm9H0.js} +65 -65
- package/dist/dashboard-grid.js +1 -1
- package/dist/{data-grid-XH5fGoGj.js → data-grid-DQCvXMJA.js} +1330 -1278
- package/dist/data-grid.js +1 -1
- package/dist/data-list-BgdkA3bD.js +587 -0
- package/dist/data-list.js +1 -1
- package/dist/{date-field-BrNyJBiJ.js → date-field-B2lQzE3p.js} +5 -5
- package/dist/date-field.js +1 -1
- package/dist/{date-picker-Nl55so0C.js → date-picker-DpTRb-Y1.js} +16 -16
- package/dist/date-picker.js +1 -1
- package/dist/{date-range-picker-DLkvfUJD.js → date-range-picker-CBUPJep5.js} +17 -17
- package/dist/date-range-picker.js +1 -1
- package/dist/{datetime-field-CZRhRDPb.js → datetime-field-BZ44uJ_B.js} +7 -7
- package/dist/datetime-field.js +1 -1
- package/dist/{datetime-picker-_GHra2WL.js → datetime-picker-BK_bV3Yr.js} +21 -21
- package/dist/datetime-picker.js +1 -1
- package/dist/{datetime-range-picker-Dy1A0Wqy.js → datetime-range-picker-ChdbRgzQ.js} +21 -21
- package/dist/datetime-range-picker.js +1 -1
- package/dist/{description-list-Cc4JYZ-3.js → description-list-CYlfHDwx.js} +11 -11
- package/dist/description-list.js +1 -1
- package/dist/{detail-panel-BI_wHSoz.js → detail-panel-DimjnPI8.js} +91 -91
- package/dist/detail-panel.js +1 -1
- package/dist/{dialog-B6MP7GYI.js → dialog-BB5MdJex.js} +108 -108
- package/dist/dialog.js +1 -1
- package/dist/docs/action-bar.json +4 -4
- package/dist/docs/action-bar.md +3 -3
- package/dist/docs/calendar.md +2 -2
- package/dist/docs/command-palette.json +1 -0
- package/dist/docs/command-palette.md +1 -1
- package/dist/docs/data-grid.examples.md +8 -2
- package/dist/docs/data-grid.json +25 -3
- package/dist/docs/data-grid.md +4 -1
- package/dist/docs/data-grid.props.md +2 -1
- package/dist/docs/detail-panel.json +4 -2
- package/dist/docs/detail-panel.md +15 -5
- package/dist/docs/dialog.json +1 -0
- package/dist/docs/dialog.md +1 -1
- package/dist/docs/drawer.json +6 -4
- package/dist/docs/drawer.md +3 -3
- package/dist/docs/event-calendar.md +2 -2
- package/dist/docs/guidelines/index.md +4 -3
- package/dist/docs/guidelines/layout-alignment.md +17 -7
- package/dist/docs/guidelines/list-pages.md +3 -3
- package/dist/docs/page-header.json +18 -2
- package/dist/docs/page-header.md +5 -3
- package/dist/docs/page.json +1 -0
- package/dist/docs/page.md +1 -1
- package/dist/docs/rating.md +1 -1
- package/dist/docs/section.json +1 -1
- package/dist/docs/section.md +1 -1
- package/dist/docs/skills/compose-screen/SKILL.md +12 -4
- package/dist/docs/skills/review-screen/SKILL.md +20 -18
- package/dist/docs/skills/theme-app/SKILL.md +12 -1
- package/dist/docs/toast.json +1 -0
- package/dist/docs/toast.md +1 -1
- package/dist/docs/tokens.md +1 -1
- package/dist/docs/toolbar.json +1 -1
- package/dist/docs/toolbar.md +1 -1
- package/dist/docs/typography.md +1 -1
- package/dist/{drawer-CkpFlKYa.js → drawer-fyPyxnYQ.js} +216 -206
- package/dist/drawer.js +1 -1
- package/dist/entity-picker-ClyhBTyK.js +1283 -0
- package/dist/entity-picker.js +1 -1
- package/dist/{event-calendar-BDjI5T44.js → event-calendar-COgC24UG.js} +23 -23
- package/dist/event-calendar.js +1 -1
- package/dist/{field-group-CCM2vPKL.js → field-group-Bj-EbPIU.js} +2 -2
- package/dist/field-group.js +1 -1
- package/dist/{field-CzSGs7wo.js → field-tnEZiRLg.js} +19 -19
- package/dist/field.js +1 -1
- package/dist/filter-bar-BRuCz79-.js +1342 -0
- package/dist/filter-bar.js +1 -1
- package/dist/{form-CDq04WDY.js → form-DEcJ7tHf.js} +1 -1
- package/dist/form.js +1 -1
- package/dist/{fullscreen-6GW4naDP.js → fullscreen-BwweNj3-.js} +13 -13
- package/dist/fullscreen.js +1 -1
- package/dist/{hover-card-aadyPXzF.js → hover-card-BWcU37Yp.js} +1 -1
- package/dist/hover-card.js +1 -1
- package/dist/{i18n-DpW8lqJ1.js → i18n-D7xXDd8-.js} +11 -4
- package/dist/i18n.js +1 -1
- package/dist/{icon-button-CRB218_z.js → icon-button-DbSZKGT4.js} +73 -71
- package/dist/{import-export-center-DUrNwRKP.js → import-export-center-CYf0Qxl_.js} +291 -289
- package/dist/import-export-center.js +1 -1
- package/dist/index.js +100 -100
- package/dist/{kbd-Z4YmSPRy.js → kbd-dNz8QHfL.js} +1 -1
- package/dist/kbd.js +1 -1
- package/dist/{link-BsSlZ1ts.js → link-DLPyg54C.js} +5 -5
- package/dist/link.js +1 -1
- package/dist/{listbox-VFcfZT70.js → listbox-BSqx_ARf.js} +1 -1
- package/dist/listbox.js +1 -1
- package/dist/{loading-overlay-BZPBDK4w.js → loading-overlay-BLIrcaoj.js} +9 -9
- package/dist/loading-overlay.js +1 -1
- package/dist/{markdown-BmCU_sOv.js → markdown-DccRb1xf.js} +17 -17
- package/dist/markdown.js +1 -1
- package/dist/{menu-parts-DS9JEUCt.js → menu-parts-CNNHRduK.js} +42 -42
- package/dist/menu.js +1 -1
- package/dist/{menubar-BV43BKep.js → menubar-Bdr6zigi.js} +1 -1
- package/dist/menubar.js +1 -1
- package/dist/message-BkTiWsUp.js +436 -0
- package/dist/message-scroller-akQEtQLn.js +218 -0
- package/dist/message-scroller.js +1 -1
- package/dist/message.js +1 -1
- package/dist/{multi-select-YaxhhH9y.js → multi-select-BvlJIEtz.js} +445 -443
- package/dist/multi-select.js +1 -1
- package/dist/{navigation-menu-parts-B64gKl8B.js → navigation-menu-parts-CEW4fgCo.js} +12 -12
- package/dist/navigation-menu.js +1 -1
- package/dist/{notification-center-Ci-OLWTO.js → notification-center-BQO0Ey3h.js} +40 -40
- package/dist/notification-center.js +1 -1
- package/dist/{number-field-BYQmPyM-.js → number-field-D1MqT8_A.js} +13 -13
- package/dist/number-field.js +1 -1
- package/dist/{otp-input-BKO0WPZc.js → otp-input-Cub9H9Di.js} +1 -1
- package/dist/otp-input.js +1 -1
- package/dist/{page-CfjGviUA.js → page-CwYmBoZQ.js} +1 -1
- package/dist/{page-header-w_PFLnLG.js → page-header-CMxCQqu_.js} +117 -114
- package/dist/page-header.js +1 -1
- package/dist/page.js +1 -1
- package/dist/{pagination-Cm9665gb.js → pagination-IEuos7H1.js} +12 -12
- package/dist/pagination.js +1 -1
- package/dist/{popover-D1krYeP-.js → popover-C7NpEzq6.js} +22 -22
- package/dist/popover.js +1 -1
- package/dist/prompt-composer-Cu8bj1Vb.js +276 -0
- package/dist/prompt-composer.js +1 -1
- package/dist/{prose-Bl5OjXTb.js → prose-CQN4Bqqh.js} +1 -1
- package/dist/prose.js +1 -1
- package/dist/{radio-group-D9VTBLUB.js → radio-group-BHlDgCLk.js} +2 -2
- package/dist/radio-group.js +1 -1
- package/dist/{rating-BRqsV5OF.js → rating-Cr0lXaAV.js} +15 -15
- package/dist/rating.js +1 -1
- package/dist/{saved-views-C_76obIv.js → saved-views-CyLSn8a2.js} +151 -151
- package/dist/saved-views.js +1 -1
- package/dist/{scroll-area-vrm2bbtZ.js → scroll-area-Fr0PmnRS.js} +1 -1
- package/dist/scroll-area.js +1 -1
- package/dist/{segmented-control-5DTOKO3g.js → segmented-control-uPnQYklX.js} +2 -2
- package/dist/segmented-control.js +1 -1
- package/dist/select-C0JYHwBy.js +1020 -0
- package/dist/select.js +1 -1
- package/dist/{side-navigation-MNMSkj9b.js → side-navigation-D8lRpHwj.js} +64 -64
- package/dist/side-navigation.js +1 -1
- package/dist/{skeleton-DyOwgYmF.js → skeleton-DeEOmm1y.js} +1 -1
- package/dist/skeleton.js +1 -1
- package/dist/{slider-OMe1DAC-.js → slider-BSI1xvjw.js} +2 -2
- package/dist/slider.js +1 -1
- package/dist/{sparkline-ChkaLVdY.js → sparkline-CYU4_lCD.js} +1 -1
- package/dist/sparkline.js +1 -1
- package/dist/spinner-ring-DyfaYloA.js +19 -0
- package/dist/{split-button-DbmRwfMC.js → split-button-CkbylOMN.js} +2 -2
- package/dist/split-button.js +1 -1
- package/dist/{stat-card-BSnsTmsq.js → stat-card-CAh4SdeY.js} +16 -16
- package/dist/stat-card.js +1 -1
- package/dist/{status-indicator-CyKhBdvN.js → status-indicator-BVMnpcm8.js} +4 -4
- package/dist/status-indicator.js +1 -1
- package/dist/{stepper-Cw1Auv3n.js → stepper-BLfvMz04.js} +16 -16
- package/dist/stepper.js +1 -1
- package/dist/styles/action-bar.css +1 -1
- package/dist/styles/action-sheet.css +2 -2
- package/dist/styles/button.css +2 -2
- package/dist/styles/cascader.css +2 -2
- package/dist/styles/chart.css +1 -1
- package/dist/styles/column-manager.css +3 -3
- package/dist/styles/command-palette.css +3 -3
- package/dist/styles/dashboard-grid.css +2 -2
- package/dist/styles/data-grid.css +3 -3
- package/dist/styles/data-list.css +2 -2
- package/dist/styles/detail-panel.css +4 -4
- package/dist/styles/dialog.css +1 -1
- package/dist/styles/drawer.css +1 -1
- package/dist/styles/entity-picker.css +1 -1
- package/dist/styles/event-calendar.css +1 -1
- package/dist/styles/filter-bar.css +3 -3
- package/dist/styles/import-export-center.css +4 -4
- package/dist/styles/index.css +12 -12
- package/dist/styles/markdown.css +2 -2
- package/dist/styles/multi-select.css +1 -1
- package/dist/styles/notification-center.css +3 -3
- package/dist/styles/page-header.css +2 -2
- package/dist/styles/page.css +1 -1
- package/dist/styles/prompt-composer.css +1 -1
- package/dist/styles/saved-views.css +2 -2
- package/dist/styles/split-button.css +2 -2
- package/dist/styles/table.css +2 -2
- package/dist/styles/tabs.css +1 -1
- package/dist/styles/timeline.css +1 -1
- package/dist/styles/toast.css +1 -1
- package/dist/styles/tour.css +2 -2
- package/dist/styles/transfer.css +2 -2
- package/dist/styles/upload.css +1 -1
- package/dist/styles/wizard.css +2 -2
- package/dist/styles.css +1 -1
- package/dist/{switch-CQ1rpuKa.js → switch-BHyKHqeI.js} +5 -5
- package/dist/switch.js +1 -1
- package/dist/{table-DpGTPtnb.js → table-C8zOHDcY.js} +30 -30
- package/dist/{table-of-contents-BFVERMZy.js → table-of-contents-BAIuPCdy.js} +8 -8
- package/dist/table-of-contents.js +1 -1
- package/dist/table.js +1 -1
- package/dist/{tag-aX7uyAN0.js → tag-XYGEPUHR.js} +14 -14
- package/dist/tag.js +1 -1
- package/dist/{tags-input-BgpS22sf.js → tags-input-ClYSd-No.js} +40 -40
- package/dist/tags-input.js +1 -1
- package/dist/text-field-Cguj75tn.js +205 -0
- package/dist/text-field.js +1 -1
- package/dist/{textarea-DNCjsQYd.js → textarea-BKsh_jAo.js} +1 -1
- package/dist/textarea.js +1 -1
- package/dist/{time-field-Cm6iBjwH.js → time-field-BIE4WMpS.js} +7 -7
- package/dist/time-field.js +1 -1
- package/dist/{time-picker-Ce18FSO2.js → time-picker-CNfafRDF.js} +18 -18
- package/dist/time-picker.js +1 -1
- package/dist/{time-range-picker-kDnw4PQ3.js → time-range-picker-D7gM_Wno.js} +20 -20
- package/dist/time-range-picker.js +1 -1
- package/dist/timeline-BLadNUkS.js +449 -0
- package/dist/timeline.js +1 -1
- package/dist/{toast-58ex8PDK.js → toast-CjbiXiza.js} +16 -16
- package/dist/toast.js +1 -1
- package/dist/{toggle-group-YxVJlCnI.js → toggle-group-BZmghKac.js} +1 -1
- package/dist/toggle-group.js +1 -1
- package/dist/toolbar-BI4ZepBs.js +243 -0
- package/dist/toolbar.js +1 -1
- package/dist/{top-navigation-DorkYBnR.js → top-navigation-BTZpx5VA.js} +13 -13
- package/dist/top-navigation.js +1 -1
- package/dist/{tour-CwK_m_Jp.js → tour-_CQ1kYov.js} +23 -23
- package/dist/tour.js +1 -1
- package/dist/{transfer-DxGDWIEt.js → transfer-BVhBdIGp.js} +59 -59
- package/dist/transfer.js +1 -1
- package/dist/tree-DfI9UWLA.js +794 -0
- package/dist/tree.js +1 -1
- package/dist/types/action-bar/action-bar-overflow.d.ts.map +1 -1
- package/dist/types/action-bar/action-bar.types.d.ts +2 -2
- package/dist/types/action-sheet/action-sheet-parts.d.ts.map +1 -1
- package/dist/types/app-shell/app-shell-parts.d.ts.map +1 -1
- package/dist/types/app-shell/app-shell.d.ts.map +1 -1
- package/dist/types/app-shell/app-shell.types.d.ts +21 -14
- package/dist/types/app-shell/app-shell.types.d.ts.map +1 -1
- package/dist/types/app-shell/index.d.ts +1 -1
- package/dist/types/app-shell/index.d.ts.map +1 -1
- package/dist/types/button/button-indicator.d.ts.map +1 -1
- package/dist/types/button/spinner-ring.d.ts +8 -0
- package/dist/types/button/spinner-ring.d.ts.map +1 -0
- package/dist/types/cascader/cascader-surface.d.ts.map +1 -1
- package/dist/types/cascader/cascader.d.ts.map +1 -1
- package/dist/types/combobox/combobox-parts.d.ts.map +1 -1
- package/dist/types/command-palette/command-palette.d.ts.map +1 -1
- package/dist/types/data-grid/data-grid-body.d.ts +7 -2
- package/dist/types/data-grid/data-grid-body.d.ts.map +1 -1
- package/dist/types/data-grid/data-grid-context.d.ts +2 -1
- package/dist/types/data-grid/data-grid-context.d.ts.map +1 -1
- package/dist/types/data-grid/data-grid-header.d.ts.map +1 -1
- package/dist/types/data-grid/data-grid.d.ts +1 -1
- package/dist/types/data-grid/data-grid.d.ts.map +1 -1
- package/dist/types/data-grid/data-grid.types.d.ts +12 -0
- package/dist/types/data-grid/data-grid.types.d.ts.map +1 -1
- package/dist/types/data-grid/index.d.ts +1 -1
- package/dist/types/data-grid/index.d.ts.map +1 -1
- package/dist/types/detail-panel/detail-panel-parts.d.ts +2 -1
- package/dist/types/detail-panel/detail-panel-parts.d.ts.map +1 -1
- package/dist/types/drawer/drawer-parts.d.ts.map +1 -1
- package/dist/types/entity-picker/entity-picker-control.d.ts.map +1 -1
- package/dist/types/filter-bar/filter-bar.d.ts.map +1 -1
- package/dist/types/i18n/slotted-provider.d.ts +6 -0
- package/dist/types/i18n/slotted-provider.d.ts.map +1 -1
- package/dist/types/import-export-center/import-export-center.d.ts.map +1 -1
- package/dist/types/message/message-parts.d.ts.map +1 -1
- package/dist/types/message-scroller/message-scroller.d.ts.map +1 -1
- package/dist/types/multi-select/multi-select-parts.d.ts.map +1 -1
- package/dist/types/page-header/page-header-defaults.d.ts +1 -1
- package/dist/types/page-header/page-header-defaults.d.ts.map +1 -1
- package/dist/types/page-header/page-header.d.ts +1 -1
- package/dist/types/page-header/page-header.d.ts.map +1 -1
- package/dist/types/page-header/page-header.types.d.ts +9 -0
- package/dist/types/page-header/page-header.types.d.ts.map +1 -1
- package/dist/types/prompt-composer/prompt-composer.d.ts.map +1 -1
- package/dist/types/select/select-parts.d.ts.map +1 -1
- package/dist/types/text-field/text-field.d.ts.map +1 -1
- package/dist/types/timeline/timeline-parts.d.ts.map +1 -1
- package/dist/types/timeline/timeline.d.ts.map +1 -1
- package/dist/types/toolbar/toolbar-overflow.d.ts.map +1 -1
- package/dist/types/toolbar/toolbar.types.d.ts +2 -2
- package/dist/types/tree/tree-parts.d.ts.map +1 -1
- package/dist/{upload-CEDsfMWz.js → upload-N2-nyO8x.js} +65 -65
- package/dist/upload.js +1 -1
- package/dist/{wizard-B3p7zCSj.js → wizard-CK1x2fs3.js} +16 -16
- package/dist/wizard.js +1 -1
- package/package.json +6 -6
- package/dist/action-bar-CJgBierN.js +0 -283
- package/dist/action-sheet-tRrjm7WQ.js +0 -358
- package/dist/cascader-DqlC1z5b.js +0 -1154
- package/dist/combobox-YWFkxaQ3.js +0 -902
- package/dist/command-palette-DXNq-zKN.js +0 -741
- package/dist/data-list-DZCN_uW1.js +0 -587
- package/dist/entity-picker-CFwLGQeU.js +0 -1281
- package/dist/filter-bar-G50WdRac.js +0 -1340
- package/dist/message-Dtck9RJy.js +0 -434
- package/dist/message-scroller-niUJ8RoL.js +0 -216
- package/dist/prompt-composer-sh_TXKYZ.js +0 -273
- package/dist/select-BFx5EgAa.js +0 -1018
- package/dist/text-field-DL_uhNXV.js +0 -203
- package/dist/timeline-pEL30Jp8.js +0 -446
- package/dist/toolbar-BtIyVbs4.js +0 -241
- package/dist/tree-DbLRyItM.js +0 -792
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { r as e } from "./i18n-D7xXDd8-.js";
|
|
2
|
+
import { n as t, t as n } from "./icon-DjqSEQ-o.js";
|
|
3
3
|
import { i as r, n as i, o as a } from "./progress-indicator-D0acshNn.js";
|
|
4
4
|
import { keyedProps as o } from "@slotted/core/selector-key";
|
|
5
5
|
import { createFocusScope as s, focusTarget as c } from "@slotted/core/focus";
|
|
6
6
|
import { createControllable as l } from "@slotted/core/state";
|
|
7
7
|
import { createContext as u, isValidElement as d, useCallback as f, useContext as p, useEffect as m, useId as h, useImperativeHandle as g, useLayoutEffect as _, useMemo as v, useRef as y, useState as b } from "react";
|
|
8
8
|
import { Fragment as ee, jsx as x, jsxs as te } from "react/jsx-runtime";
|
|
9
|
-
import { createPresence as
|
|
10
|
-
import { setPortalContainer as C } from "@slotted/core/portal";
|
|
11
|
-
import { createDismissableLayer as ne } from "@slotted/core/dismissable-layer";
|
|
9
|
+
import { createPresence as ne } from "@slotted/core/presence";
|
|
12
10
|
import { appShellMessages as re } from "@slotted/core/i18n";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
11
|
+
import { setPortalContainer as ie } from "@slotted/core/portal";
|
|
12
|
+
import { createDismissableLayer as ae } from "@slotted/core/dismissable-layer";
|
|
13
|
+
import { EXTENT_LARGE_STEP_PX as oe, EXTENT_STEP_PX as se, anchorsAtStart as ce, extentAtPoint as le, holdResizeGesture as ue, stepAmountFromPixels as de, stepExtent as fe } from "@slotted/core/extent";
|
|
14
|
+
import { COMPACT_BELOW as pe, clamp as S, createWidthGate as me } from "@slotted/core/measure";
|
|
15
15
|
//#region src/app-shell/app-shell-defaults.tsx
|
|
16
|
-
var
|
|
16
|
+
var he = u({
|
|
17
17
|
asideMode: "auto",
|
|
18
18
|
asideSize: "md",
|
|
19
19
|
canvas: "inset",
|
|
@@ -30,12 +30,12 @@ var pe = u({
|
|
|
30
30
|
scroll: "content",
|
|
31
31
|
separation: "rule"
|
|
32
32
|
});
|
|
33
|
-
function
|
|
34
|
-
return p(
|
|
33
|
+
function C() {
|
|
34
|
+
return p(he);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
let n =
|
|
38
|
-
return /* @__PURE__ */ x(
|
|
36
|
+
function ge({ children: e, ...t }) {
|
|
37
|
+
let n = C();
|
|
38
|
+
return /* @__PURE__ */ x(he.Provider, {
|
|
39
39
|
value: {
|
|
40
40
|
asideMode: t.asideMode ?? n.asideMode,
|
|
41
41
|
asideSize: t.asideSize ?? n.asideSize,
|
|
@@ -58,8 +58,8 @@ function me({ children: e, ...t }) {
|
|
|
58
58
|
}
|
|
59
59
|
//#endregion
|
|
60
60
|
//#region src/app-shell/app-shell-parts.tsx
|
|
61
|
-
function
|
|
62
|
-
let n =
|
|
61
|
+
function w(e, t) {
|
|
62
|
+
let n = L();
|
|
63
63
|
return f((r) => {
|
|
64
64
|
n.nodes[e] = r, typeof t == "function" ? t(r) : t != null && (t.current = r);
|
|
65
65
|
}, [
|
|
@@ -68,68 +68,85 @@ function E(e, t) {
|
|
|
68
68
|
e
|
|
69
69
|
]);
|
|
70
70
|
}
|
|
71
|
-
function
|
|
72
|
-
|
|
71
|
+
function T(e) {
|
|
72
|
+
return f((t) => {
|
|
73
|
+
typeof e == "function" ? e(t) : e != null && (e.current = t);
|
|
74
|
+
}, [e]);
|
|
75
|
+
}
|
|
76
|
+
function E(e) {
|
|
77
|
+
let t = L();
|
|
73
78
|
m(() => t.register(e), [e, t]);
|
|
74
79
|
}
|
|
75
|
-
function
|
|
80
|
+
function D(e, t) {
|
|
76
81
|
return t === void 0 ? null : t(e);
|
|
77
82
|
}
|
|
78
|
-
function
|
|
79
|
-
let s =
|
|
83
|
+
function _e({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
84
|
+
let s = w("banner", n), c = o({
|
|
80
85
|
...a,
|
|
81
86
|
children: e,
|
|
82
87
|
className: t,
|
|
83
88
|
"data-part": "banner",
|
|
84
89
|
style: i
|
|
85
90
|
});
|
|
86
|
-
return
|
|
91
|
+
return D({
|
|
92
|
+
...c,
|
|
93
|
+
ref: s
|
|
94
|
+
}, r) ?? /* @__PURE__ */ x("header", {
|
|
87
95
|
...c,
|
|
88
96
|
ref: s
|
|
89
97
|
});
|
|
90
98
|
}
|
|
91
|
-
function
|
|
99
|
+
function ve({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
92
100
|
let s = o({
|
|
93
101
|
...a,
|
|
94
102
|
children: e,
|
|
95
103
|
className: t,
|
|
96
104
|
"data-part": "brand",
|
|
97
105
|
style: i
|
|
98
|
-
});
|
|
99
|
-
return
|
|
106
|
+
}), c = T(n);
|
|
107
|
+
return D({
|
|
108
|
+
...s,
|
|
109
|
+
ref: c
|
|
110
|
+
}, r) ?? /* @__PURE__ */ x("div", {
|
|
100
111
|
...s,
|
|
101
|
-
ref:
|
|
112
|
+
ref: c
|
|
102
113
|
});
|
|
103
114
|
}
|
|
104
|
-
function
|
|
115
|
+
function ye({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
105
116
|
let s = o({
|
|
106
117
|
...a,
|
|
107
118
|
children: e,
|
|
108
119
|
className: t,
|
|
109
120
|
"data-part": "centre",
|
|
110
121
|
style: i
|
|
111
|
-
});
|
|
112
|
-
return
|
|
122
|
+
}), c = T(n);
|
|
123
|
+
return D({
|
|
113
124
|
...s,
|
|
114
|
-
ref:
|
|
125
|
+
ref: c
|
|
126
|
+
}, r) ?? /* @__PURE__ */ x("div", {
|
|
127
|
+
...s,
|
|
128
|
+
ref: c
|
|
115
129
|
});
|
|
116
130
|
}
|
|
117
|
-
function
|
|
131
|
+
function be({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
118
132
|
let s = o({
|
|
119
133
|
...a,
|
|
120
134
|
children: e,
|
|
121
135
|
className: t,
|
|
122
136
|
"data-part": "actions",
|
|
123
137
|
style: i
|
|
124
|
-
});
|
|
125
|
-
return
|
|
138
|
+
}), c = T(n);
|
|
139
|
+
return D({
|
|
140
|
+
...s,
|
|
141
|
+
ref: c
|
|
142
|
+
}, r) ?? /* @__PURE__ */ x("div", {
|
|
126
143
|
...s,
|
|
127
|
-
ref:
|
|
144
|
+
ref: c
|
|
128
145
|
});
|
|
129
146
|
}
|
|
130
|
-
function
|
|
131
|
-
let l =
|
|
132
|
-
|
|
147
|
+
function xe({ "aria-label": e, children: t, className: n, id: r, ref: i, render: a, style: s, ...c }) {
|
|
148
|
+
let l = L(), u = w("nav", i);
|
|
149
|
+
E("nav");
|
|
133
150
|
let d = o({
|
|
134
151
|
...c,
|
|
135
152
|
"aria-label": e ?? l.t("nav"),
|
|
@@ -139,66 +156,81 @@ function ye({ "aria-label": e, children: t, className: n, id: r, ref: i, render:
|
|
|
139
156
|
id: r ?? l.navId,
|
|
140
157
|
style: s
|
|
141
158
|
});
|
|
142
|
-
return
|
|
159
|
+
return D({
|
|
160
|
+
...d,
|
|
161
|
+
ref: u
|
|
162
|
+
}, a) ?? /* @__PURE__ */ x("nav", {
|
|
143
163
|
...d,
|
|
144
164
|
ref: u
|
|
145
165
|
});
|
|
146
166
|
}
|
|
147
|
-
function
|
|
167
|
+
function Se({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
148
168
|
let s = o({
|
|
149
169
|
...a,
|
|
150
170
|
children: e,
|
|
151
171
|
className: t,
|
|
152
172
|
"data-part": "nav-rail",
|
|
153
173
|
style: i
|
|
154
|
-
});
|
|
155
|
-
return
|
|
174
|
+
}), c = T(n);
|
|
175
|
+
return D({
|
|
176
|
+
...s,
|
|
177
|
+
ref: c
|
|
178
|
+
}, r) ?? /* @__PURE__ */ x("div", {
|
|
156
179
|
...s,
|
|
157
|
-
ref:
|
|
180
|
+
ref: c
|
|
158
181
|
});
|
|
159
182
|
}
|
|
160
|
-
function
|
|
183
|
+
function Ce({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
161
184
|
let s = o({
|
|
162
185
|
...a,
|
|
163
186
|
children: e,
|
|
164
187
|
className: t,
|
|
165
188
|
"data-part": "nav-header",
|
|
166
189
|
style: i
|
|
167
|
-
});
|
|
168
|
-
return
|
|
190
|
+
}), c = T(n);
|
|
191
|
+
return D({
|
|
192
|
+
...s,
|
|
193
|
+
ref: c
|
|
194
|
+
}, r) ?? /* @__PURE__ */ x("div", {
|
|
169
195
|
...s,
|
|
170
|
-
ref:
|
|
196
|
+
ref: c
|
|
171
197
|
});
|
|
172
198
|
}
|
|
173
|
-
function
|
|
199
|
+
function we({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
174
200
|
let s = o({
|
|
175
201
|
...a,
|
|
176
202
|
children: e,
|
|
177
203
|
className: t,
|
|
178
204
|
"data-part": "nav-body",
|
|
179
205
|
style: i
|
|
180
|
-
});
|
|
181
|
-
return
|
|
206
|
+
}), c = T(n);
|
|
207
|
+
return D({
|
|
182
208
|
...s,
|
|
183
|
-
ref:
|
|
209
|
+
ref: c
|
|
210
|
+
}, r) ?? /* @__PURE__ */ x("div", {
|
|
211
|
+
...s,
|
|
212
|
+
ref: c
|
|
184
213
|
});
|
|
185
214
|
}
|
|
186
|
-
function
|
|
215
|
+
function Te({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
187
216
|
let s = o({
|
|
188
217
|
...a,
|
|
189
218
|
children: e,
|
|
190
219
|
className: t,
|
|
191
220
|
"data-part": "nav-footer",
|
|
192
221
|
style: i
|
|
193
|
-
});
|
|
194
|
-
return
|
|
222
|
+
}), c = T(n);
|
|
223
|
+
return D({
|
|
224
|
+
...s,
|
|
225
|
+
ref: c
|
|
226
|
+
}, r) ?? /* @__PURE__ */ x("div", {
|
|
195
227
|
...s,
|
|
196
|
-
ref:
|
|
228
|
+
ref: c
|
|
197
229
|
});
|
|
198
230
|
}
|
|
199
|
-
function
|
|
200
|
-
let c =
|
|
201
|
-
|
|
231
|
+
function O({ children: e, className: t, id: n, ref: r, render: i, style: a, ...s }) {
|
|
232
|
+
let c = L(), l = w("main", r);
|
|
233
|
+
E("main");
|
|
202
234
|
let u = o({
|
|
203
235
|
...c.busy ? { "aria-busy": !0 } : {},
|
|
204
236
|
...s,
|
|
@@ -208,13 +240,16 @@ function we({ children: e, className: t, id: n, ref: r, render: i, style: a, ...
|
|
|
208
240
|
id: n ?? c.mainId,
|
|
209
241
|
style: a
|
|
210
242
|
});
|
|
211
|
-
return
|
|
243
|
+
return D({
|
|
244
|
+
...u,
|
|
245
|
+
ref: l
|
|
246
|
+
}, i) ?? /* @__PURE__ */ x("main", {
|
|
212
247
|
...u,
|
|
213
248
|
ref: l
|
|
214
249
|
});
|
|
215
250
|
}
|
|
216
|
-
function
|
|
217
|
-
let u =
|
|
251
|
+
function k({ delay: e, label: t, loading: n = !0, minDuration: o, onWithdraw: s, size: c, ...l }) {
|
|
252
|
+
let u = L(), d = a(), f = r({
|
|
218
253
|
delay: e ?? d.delay ?? 200,
|
|
219
254
|
loading: n,
|
|
220
255
|
minDuration: o ?? d.minDuration ?? 400,
|
|
@@ -236,9 +271,9 @@ function Te({ delay: e, label: t, loading: n = !0, minDuration: o, onWithdraw: s
|
|
|
236
271
|
})
|
|
237
272
|
});
|
|
238
273
|
}
|
|
239
|
-
function
|
|
240
|
-
let l =
|
|
241
|
-
|
|
274
|
+
function A({ "aria-label": e, children: t, className: n, id: r, ref: i, render: a, style: s, ...c }) {
|
|
275
|
+
let l = L(), u = w("aside", i);
|
|
276
|
+
E("aside");
|
|
242
277
|
let d = l.asideExtent, f = o({
|
|
243
278
|
...c,
|
|
244
279
|
"aria-label": e ?? l.t("aside"),
|
|
@@ -252,25 +287,31 @@ function k({ "aria-label": e, children: t, className: n, id: r, ref: i, render:
|
|
|
252
287
|
"--slotted-app-shell-aside-extent": `${Math.round(d * 1e4) / 100}cqi`
|
|
253
288
|
}
|
|
254
289
|
});
|
|
255
|
-
return
|
|
290
|
+
return D({
|
|
291
|
+
...f,
|
|
292
|
+
ref: u
|
|
293
|
+
}, a) ?? /* @__PURE__ */ x("aside", {
|
|
256
294
|
...f,
|
|
257
295
|
ref: u
|
|
258
296
|
});
|
|
259
297
|
}
|
|
260
|
-
function
|
|
298
|
+
function Ee({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
261
299
|
let s = o({
|
|
262
300
|
...a,
|
|
263
301
|
children: e,
|
|
264
302
|
className: t,
|
|
265
303
|
"data-part": "aside-header",
|
|
266
304
|
style: i
|
|
267
|
-
});
|
|
268
|
-
return
|
|
305
|
+
}), c = T(n);
|
|
306
|
+
return D({
|
|
269
307
|
...s,
|
|
270
|
-
ref:
|
|
308
|
+
ref: c
|
|
309
|
+
}, r) ?? /* @__PURE__ */ x("div", {
|
|
310
|
+
...s,
|
|
311
|
+
ref: c
|
|
271
312
|
});
|
|
272
313
|
}
|
|
273
|
-
function
|
|
314
|
+
function De({ children: e, className: t, inset: n, ref: r, render: i, style: a, ...s }) {
|
|
274
315
|
let c = o({
|
|
275
316
|
...s,
|
|
276
317
|
children: e,
|
|
@@ -278,14 +319,17 @@ function Ee({ children: e, className: t, inset: n, ref: r, render: i, style: a,
|
|
|
278
319
|
...n === void 0 ? {} : { "data-inset": n },
|
|
279
320
|
"data-part": "aside-body",
|
|
280
321
|
style: a
|
|
281
|
-
});
|
|
282
|
-
return
|
|
322
|
+
}), l = T(r);
|
|
323
|
+
return D({
|
|
283
324
|
...c,
|
|
284
|
-
ref:
|
|
325
|
+
ref: l
|
|
326
|
+
}, i) ?? /* @__PURE__ */ x("div", {
|
|
327
|
+
...c,
|
|
328
|
+
ref: l
|
|
285
329
|
});
|
|
286
330
|
}
|
|
287
|
-
var
|
|
288
|
-
function
|
|
331
|
+
var j = typeof document > "u" ? m : _;
|
|
332
|
+
function Oe(e) {
|
|
289
333
|
return e !== null && getComputedStyle(e).direction === "rtl";
|
|
290
334
|
}
|
|
291
335
|
function M(e) {
|
|
@@ -298,10 +342,10 @@ function M(e) {
|
|
|
298
342
|
y: t.y
|
|
299
343
|
};
|
|
300
344
|
}
|
|
301
|
-
var
|
|
302
|
-
function
|
|
303
|
-
let l =
|
|
304
|
-
if (
|
|
345
|
+
var N = 3;
|
|
346
|
+
function ke({ "aria-label": e, className: t, onKeyDown: n, onPointerDown: r, ref: i, render: a, style: s, ...c }) {
|
|
347
|
+
let l = L(), u = y(null), d = y(null), f = y(null), [p, h] = b(void 0), g = l.navSide === "end" ? "start" : "end", _ = l.asideMode === "inline" && l.asideOpen, { asideExtent: v, nodes: ee, root: te } = l;
|
|
348
|
+
if (j(() => {
|
|
305
349
|
let e = ee.aside;
|
|
306
350
|
if (!_ || v !== void 0 || e === null) return;
|
|
307
351
|
let t = () => {
|
|
@@ -318,49 +362,49 @@ function N({ "aria-label": e, className: t, onKeyDown: n, onPointerDown: r, ref:
|
|
|
318
362
|
te,
|
|
319
363
|
_
|
|
320
364
|
]), m(() => () => f.current?.(), []), !_) return null;
|
|
321
|
-
let
|
|
365
|
+
let ne = S(l.asideExtent ?? p ?? l.minAsideExtent, l.minAsideExtent, l.maxAsideExtent), re = (e) => Math.round(S(e, 0, 1) * 100), ie = (e, t) => le({
|
|
322
366
|
point: {
|
|
323
367
|
x: e.clientX,
|
|
324
368
|
y: e.clientY
|
|
325
369
|
},
|
|
326
370
|
rect: t,
|
|
327
|
-
rtl:
|
|
371
|
+
rtl: Oe(u.current),
|
|
328
372
|
side: g
|
|
329
|
-
}),
|
|
373
|
+
}), ae = (e) => {
|
|
330
374
|
if (r?.(e), e.defaultPrevented || e.button !== 0) return;
|
|
331
375
|
let t = M(l.root);
|
|
332
376
|
t === null || t.width <= 0 || (e.preventDefault(), e.currentTarget.setPointerCapture(e.pointerId), e.currentTarget.focus(), d.current = {
|
|
333
377
|
moved: !1,
|
|
334
|
-
offset:
|
|
378
|
+
offset: ne - ie(e, t),
|
|
335
379
|
x: e.clientX
|
|
336
380
|
});
|
|
337
|
-
},
|
|
381
|
+
}, pe = (e) => {
|
|
338
382
|
let t = d.current;
|
|
339
383
|
if (t === null) return;
|
|
340
384
|
let n = M(l.root);
|
|
341
385
|
if (!(n === null || n.width <= 0)) {
|
|
342
386
|
if (!t.moved) {
|
|
343
|
-
if (Math.abs(e.clientX - t.x) <
|
|
344
|
-
t.moved = !0, f.current?.(), f.current =
|
|
387
|
+
if (Math.abs(e.clientX - t.x) < N) return;
|
|
388
|
+
t.moved = !0, f.current?.(), f.current = ue(u.current?.ownerDocument, "col-resize"), l.setAsideDragging(!0);
|
|
345
389
|
}
|
|
346
|
-
l.setAsideExtent(
|
|
390
|
+
l.setAsideExtent(ie(e, n) + t.offset, "pointer", e);
|
|
347
391
|
}
|
|
348
|
-
},
|
|
392
|
+
}, me = (e) => {
|
|
349
393
|
let t = d.current;
|
|
350
394
|
t !== null && (d.current = null, e.currentTarget.hasPointerCapture(e.pointerId) && e.currentTarget.releasePointerCapture(e.pointerId), t.moved && (f.current?.(), f.current = null, l.setAsideDragging(!1)));
|
|
351
|
-
},
|
|
395
|
+
}, he = (e) => {
|
|
352
396
|
if (n?.(e), e.defaultPrevented) return;
|
|
353
|
-
let t =
|
|
397
|
+
let t = ce(g, Oe(u.current)), r = (t) => {
|
|
354
398
|
e.preventDefault();
|
|
355
|
-
let n = M(l.root), r = n === null ? 0 :
|
|
356
|
-
pixels: e.shiftKey ?
|
|
399
|
+
let n = M(l.root), r = n === null ? 0 : de({
|
|
400
|
+
pixels: e.shiftKey ? oe : se,
|
|
357
401
|
rect: n,
|
|
358
402
|
side: g
|
|
359
403
|
});
|
|
360
|
-
l.setAsideExtent(
|
|
404
|
+
l.setAsideExtent(fe({
|
|
361
405
|
amount: r,
|
|
362
406
|
direction: t,
|
|
363
|
-
fraction:
|
|
407
|
+
fraction: ne,
|
|
364
408
|
max: l.maxAsideExtent,
|
|
365
409
|
min: l.minAsideExtent
|
|
366
410
|
}), "keyboard", e);
|
|
@@ -372,72 +416,78 @@ function N({ "aria-label": e, className: t, onKeyDown: n, onPointerDown: r, ref:
|
|
|
372
416
|
case "End": return e.preventDefault(), l.setAsideExtent(l.maxAsideExtent, "keyboard", e);
|
|
373
417
|
default: return;
|
|
374
418
|
}
|
|
375
|
-
},
|
|
419
|
+
}, C = (e) => {
|
|
376
420
|
u.current = e, typeof i == "function" ? i(e) : i && (i.current = e);
|
|
377
|
-
},
|
|
421
|
+
}, ge = o({
|
|
378
422
|
...c,
|
|
379
423
|
"aria-controls": l.asideId,
|
|
380
424
|
"aria-label": e ?? l.t("resizeAside"),
|
|
381
425
|
"aria-orientation": "vertical",
|
|
382
|
-
"aria-valuemax":
|
|
383
|
-
"aria-valuemin":
|
|
384
|
-
"aria-valuenow":
|
|
426
|
+
"aria-valuemax": re(l.maxAsideExtent),
|
|
427
|
+
"aria-valuemin": re(l.minAsideExtent),
|
|
428
|
+
"aria-valuenow": re(ne),
|
|
385
429
|
className: t,
|
|
386
430
|
"data-part": "aside-resizer",
|
|
387
|
-
onKeyDown:
|
|
388
|
-
onLostPointerCapture:
|
|
389
|
-
onPointerDown:
|
|
390
|
-
onPointerMove:
|
|
391
|
-
onPointerUp:
|
|
431
|
+
onKeyDown: he,
|
|
432
|
+
onLostPointerCapture: me,
|
|
433
|
+
onPointerDown: ae,
|
|
434
|
+
onPointerMove: pe,
|
|
435
|
+
onPointerUp: me,
|
|
392
436
|
role: "separator",
|
|
393
437
|
style: s,
|
|
394
438
|
tabIndex: 0
|
|
395
439
|
});
|
|
396
440
|
return a === void 0 ? /* @__PURE__ */ x("div", {
|
|
397
|
-
...
|
|
398
|
-
ref:
|
|
441
|
+
...ge,
|
|
442
|
+
ref: C
|
|
399
443
|
}) : a({
|
|
400
|
-
...
|
|
401
|
-
ref:
|
|
444
|
+
...ge,
|
|
445
|
+
ref: C
|
|
402
446
|
});
|
|
403
447
|
}
|
|
404
|
-
function
|
|
448
|
+
function Ae({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
405
449
|
let s = o({
|
|
406
450
|
...a,
|
|
407
451
|
children: e,
|
|
408
452
|
className: t,
|
|
409
453
|
"data-part": "aside-footer",
|
|
410
454
|
style: i
|
|
411
|
-
});
|
|
412
|
-
return
|
|
455
|
+
}), c = T(n);
|
|
456
|
+
return D({
|
|
413
457
|
...s,
|
|
414
|
-
ref:
|
|
458
|
+
ref: c
|
|
459
|
+
}, r) ?? /* @__PURE__ */ x("div", {
|
|
460
|
+
...s,
|
|
461
|
+
ref: c
|
|
415
462
|
});
|
|
416
463
|
}
|
|
417
|
-
function
|
|
418
|
-
let s =
|
|
464
|
+
function P({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
465
|
+
let s = w("footer", n), c = o({
|
|
419
466
|
...a,
|
|
420
467
|
children: e,
|
|
421
468
|
className: t,
|
|
422
469
|
"data-part": "footer",
|
|
423
470
|
style: i
|
|
424
471
|
});
|
|
425
|
-
return
|
|
472
|
+
return D({
|
|
473
|
+
...c,
|
|
474
|
+
ref: s
|
|
475
|
+
}, r) ?? /* @__PURE__ */ x("footer", {
|
|
426
476
|
...c,
|
|
427
477
|
ref: s
|
|
428
478
|
});
|
|
429
479
|
}
|
|
430
|
-
function
|
|
431
|
-
let h =
|
|
480
|
+
function F({ "aria-controls": e, "aria-label": r, children: i, className: a, id: s, onClick: c, ref: l, render: u, style: d, type: p, ...m }) {
|
|
481
|
+
let h = L(), g = w("toggle", l), _ = f((e) => {
|
|
432
482
|
if (c?.(e), e.defaultPrevented) return;
|
|
433
483
|
let t = e.detail === 0 ? "keyboard" : "pointer";
|
|
434
484
|
h.setOpen(!h.open, t, e.nativeEvent);
|
|
435
485
|
}, [c, h]), v = o({
|
|
436
486
|
...m,
|
|
437
|
-
"aria-controls":
|
|
487
|
+
"aria-controls": e ?? h.navId,
|
|
438
488
|
"aria-expanded": h.open,
|
|
439
489
|
"aria-label": r ?? (h.open ? h.t("close") : h.t("open")),
|
|
440
|
-
children: i ?? /* @__PURE__ */ x(
|
|
490
|
+
children: i ?? /* @__PURE__ */ x(n, { children: /* @__PURE__ */ x(t, { name: h.open ? "panel-close" : "panel-open" }) }),
|
|
441
491
|
className: a,
|
|
442
492
|
"data-part": "nav-toggle",
|
|
443
493
|
id: s ?? h.toggleId,
|
|
@@ -445,22 +495,25 @@ function P({ "aria-controls": n, "aria-label": r, children: i, className: a, id:
|
|
|
445
495
|
style: d,
|
|
446
496
|
type: p ?? "button"
|
|
447
497
|
});
|
|
448
|
-
return
|
|
498
|
+
return D({
|
|
499
|
+
...v,
|
|
500
|
+
ref: g
|
|
501
|
+
}, u) ?? /* @__PURE__ */ x("button", {
|
|
449
502
|
...v,
|
|
450
503
|
ref: g
|
|
451
504
|
});
|
|
452
505
|
}
|
|
453
|
-
function
|
|
454
|
-
let h =
|
|
506
|
+
function I({ "aria-controls": e, "aria-label": r, children: i, className: a, id: s, onClick: c, ref: l, render: u, style: d, type: p, ...m }) {
|
|
507
|
+
let h = L(), g = w("asideToggle", l), _ = f((e) => {
|
|
455
508
|
if (c?.(e), e.defaultPrevented) return;
|
|
456
509
|
let t = e.detail === 0 ? "keyboard" : "pointer";
|
|
457
510
|
h.setAsideOpen(!h.asideOpen, t, e.nativeEvent);
|
|
458
511
|
}, [c, h]), v = o({
|
|
459
512
|
...m,
|
|
460
|
-
"aria-controls":
|
|
513
|
+
"aria-controls": e ?? h.asideId,
|
|
461
514
|
"aria-expanded": h.asideOpen,
|
|
462
515
|
"aria-label": r ?? (h.asideOpen ? h.t("closeAside") : h.t("openAside")),
|
|
463
|
-
children: i ?? /* @__PURE__ */ x(
|
|
516
|
+
children: i ?? /* @__PURE__ */ x(n, { children: /* @__PURE__ */ x(t, { name: h.asideOpen ? "panel-close" : "panel-open" }) }),
|
|
464
517
|
className: a,
|
|
465
518
|
"data-part": "aside-toggle",
|
|
466
519
|
id: s ?? h.asideToggleId,
|
|
@@ -468,31 +521,34 @@ function F({ "aria-controls": n, "aria-label": r, children: i, className: a, id:
|
|
|
468
521
|
style: d,
|
|
469
522
|
type: p ?? "button"
|
|
470
523
|
});
|
|
471
|
-
return
|
|
524
|
+
return D({
|
|
525
|
+
...v,
|
|
526
|
+
ref: g
|
|
527
|
+
}, u) ?? /* @__PURE__ */ x("button", {
|
|
472
528
|
...v,
|
|
473
529
|
ref: g
|
|
474
530
|
});
|
|
475
531
|
}
|
|
476
532
|
//#endregion
|
|
477
533
|
//#region src/app-shell/app-shell.tsx
|
|
478
|
-
var je =
|
|
534
|
+
var je = pe, Me = u(void 0);
|
|
479
535
|
function Ne(e, t) {
|
|
480
536
|
if (Array.isArray(e)) {
|
|
481
537
|
for (let n of e) Ne(n, t);
|
|
482
538
|
return t;
|
|
483
539
|
}
|
|
484
|
-
return !d(e) || e.type ===
|
|
540
|
+
return !d(e) || e.type === R || (e.type === O ? t.main = !0 : e.type === xe ? t.nav = !0 : e.type === A ? t.aside = !0 : Ne(e.props.children, t)), t;
|
|
485
541
|
}
|
|
486
|
-
function
|
|
542
|
+
function L() {
|
|
487
543
|
let e = p(Me);
|
|
488
544
|
if (e === void 0) throw Error("Every app-shell part must be rendered inside AppShell.");
|
|
489
545
|
return e;
|
|
490
546
|
}
|
|
491
|
-
function
|
|
547
|
+
function Pe() {
|
|
492
548
|
return p(Me);
|
|
493
549
|
}
|
|
494
|
-
function
|
|
495
|
-
let k =
|
|
550
|
+
function R({ asideExtent: t, asideMode: n, asideOpen: r, asideSize: i, canvas: a, children: u, className: d, closeOnNavigate: p, collapsedTo: _, defaultAsideExtent: oe, defaultAsideOpen: se, defaultNavOpen: ce, escape: le, back: ue, maxAsideExtent: de, messages: fe, minAsideExtent: pe, modal: he, navMode: ge, navOpen: w, navSide: T, navSize: E, onAsideExtentChange: D, onAsideOpenChange: _e, onNavOpenChange: ve, outsidePress: ye, primary: be, ref: xe, render: Se, scroll: Ce, separation: we, style: Te, ...O }) {
|
|
551
|
+
let k = C(), A = h(), [Ee, De] = b(ce ?? !0), j = w ?? Ee, [Oe, M] = b(se ?? !0), N = r ?? Oe, [ke, Ae] = b(oe), P = t ?? ke, F = S(pe ?? .16, 0, 1), I = S(de ?? .6, F, 1), [L, Pe] = b(!1), R = i ?? k.asideSize, Fe = n ?? k.asideMode, Ie = a ?? k.canvas, z = p ?? k.closeOnNavigate, Le = _ ?? k.collapsedTo, Re = we ?? k.separation, ze = le ?? k.escape, Be = ue ?? k.back, B = he ?? k.modal, Ve = T ?? k.navSide, He = E ?? k.navSize, V = ye ?? k.outsidePress, Ue = be ?? k.primary, We = Ce ?? k.scroll, Ge = ge ?? k.navMode, H = e(re, fe), [U, Ke] = b(null), [W, qe] = b(void 0), G = Ge === "auto" ? W === void 0 ? void 0 : W ? "overlay" : "inline" : Ge, K = Fe === "auto" ? W === void 0 ? void 0 : W ? "overlay" : "inline" : Fe, q = y({
|
|
496
552
|
aside: null,
|
|
497
553
|
asideToggle: null,
|
|
498
554
|
banner: null,
|
|
@@ -519,10 +575,10 @@ function Pe({ asideExtent: e, asideMode: t, asideOpen: r, asideSize: i, canvas:
|
|
|
519
575
|
}))), []), Y = f((e, t, n) => {
|
|
520
576
|
if (e === j) return;
|
|
521
577
|
let r = !1, i = l({
|
|
522
|
-
controlled:
|
|
578
|
+
controlled: w,
|
|
523
579
|
initial: j,
|
|
524
580
|
onRequest: (e) => {
|
|
525
|
-
r = e.cancelled,
|
|
581
|
+
r = e.cancelled, ve?.(e.value, {
|
|
526
582
|
get cancelled() {
|
|
527
583
|
return e.cancelled;
|
|
528
584
|
},
|
|
@@ -537,15 +593,15 @@ function Pe({ asideExtent: e, asideMode: t, asideOpen: r, asideSize: i, canvas:
|
|
|
537
593
|
r || i && De(e);
|
|
538
594
|
}, [
|
|
539
595
|
j,
|
|
540
|
-
|
|
541
|
-
|
|
596
|
+
w,
|
|
597
|
+
ve
|
|
542
598
|
]), X = f((e, t, n) => {
|
|
543
599
|
if (e === N) return;
|
|
544
600
|
let i = !1, a = l({
|
|
545
601
|
controlled: r,
|
|
546
602
|
initial: N,
|
|
547
603
|
onRequest: (e) => {
|
|
548
|
-
i = e.cancelled,
|
|
604
|
+
i = e.cancelled, _e?.(e.value, {
|
|
549
605
|
get cancelled() {
|
|
550
606
|
return e.cancelled;
|
|
551
607
|
},
|
|
@@ -557,19 +613,19 @@ function Pe({ asideExtent: e, asideMode: t, asideOpen: r, asideSize: i, canvas:
|
|
|
557
613
|
});
|
|
558
614
|
}
|
|
559
615
|
}).request(e, t, n);
|
|
560
|
-
i || a &&
|
|
616
|
+
i || a && M(e);
|
|
561
617
|
}, [
|
|
562
618
|
r,
|
|
563
619
|
N,
|
|
564
|
-
|
|
565
|
-
]), tt = f((
|
|
566
|
-
let i =
|
|
620
|
+
_e
|
|
621
|
+
]), tt = f((e, n, r) => {
|
|
622
|
+
let i = e === void 0 ? void 0 : S(e, F, I);
|
|
567
623
|
if (i === P) return;
|
|
568
624
|
let a = !1, o = l({
|
|
569
|
-
controlled:
|
|
625
|
+
controlled: t,
|
|
570
626
|
initial: P,
|
|
571
627
|
onRequest: (e) => {
|
|
572
|
-
a = e.cancelled,
|
|
628
|
+
a = e.cancelled, D?.(e.value, {
|
|
573
629
|
get cancelled() {
|
|
574
630
|
return e.cancelled;
|
|
575
631
|
},
|
|
@@ -583,18 +639,18 @@ function Pe({ asideExtent: e, asideMode: t, asideOpen: r, asideSize: i, canvas:
|
|
|
583
639
|
}).request(i, n, r);
|
|
584
640
|
a || o && Ae(i);
|
|
585
641
|
}, [
|
|
586
|
-
|
|
642
|
+
t,
|
|
587
643
|
P,
|
|
588
|
-
|
|
644
|
+
D,
|
|
589
645
|
I,
|
|
590
646
|
F
|
|
591
|
-
]), nt = Ge === "auto" ||
|
|
647
|
+
]), nt = Ge === "auto" || Fe === "auto";
|
|
592
648
|
m(() => {
|
|
593
649
|
if (U === null || !nt) {
|
|
594
650
|
nt || qe(void 0);
|
|
595
651
|
return;
|
|
596
652
|
}
|
|
597
|
-
let e =
|
|
653
|
+
let e = me(U, {
|
|
598
654
|
at: je,
|
|
599
655
|
onChange: qe
|
|
600
656
|
});
|
|
@@ -611,7 +667,7 @@ function Pe({ asideExtent: e, asideMode: t, asideOpen: r, asideSize: i, canvas:
|
|
|
611
667
|
at.current = e, K !== void 0 && (e && N && (t || W === !0) ? (ot.current = !0, X(!1, "resize")) : n && ot.current && (ot.current = !1, N || X(!0, "resize")));
|
|
612
668
|
}, [K]);
|
|
613
669
|
let st = j && (!Xe || Je.nav), Z = G === "overlay" && j && J.nav, ct = K === "overlay" && N && J.aside, lt = (Z || ct) && B, [ut, dt] = b(lt ? "open" : "unmounted"), Q = y(null);
|
|
614
|
-
Q.current === null && (Q.current =
|
|
670
|
+
Q.current === null && (Q.current = ne({
|
|
615
671
|
present: lt,
|
|
616
672
|
onStatusChange: dt
|
|
617
673
|
})), m(() => {
|
|
@@ -623,11 +679,11 @@ function Pe({ asideExtent: e, asideMode: t, asideOpen: r, asideSize: i, canvas:
|
|
|
623
679
|
let ft = f((e) => {
|
|
624
680
|
Q.current?.setNode(e);
|
|
625
681
|
}, []), pt = f((e, t, n, r) => {
|
|
626
|
-
let i =
|
|
682
|
+
let i = ae(e, {
|
|
627
683
|
...t === null ? {} : { branches: [t] },
|
|
628
684
|
back: B && Be === "close",
|
|
629
685
|
content: e,
|
|
630
|
-
escape:
|
|
686
|
+
escape: ze === "close",
|
|
631
687
|
modal: B,
|
|
632
688
|
onDismiss: (e) => {
|
|
633
689
|
if (e.reason === "outsidePress" && V === "none") return e.cancel();
|
|
@@ -649,7 +705,7 @@ function Pe({ asideExtent: e, asideMode: t, asideOpen: r, asideSize: i, canvas:
|
|
|
649
705
|
};
|
|
650
706
|
}, [
|
|
651
707
|
Be,
|
|
652
|
-
|
|
708
|
+
ze,
|
|
653
709
|
B,
|
|
654
710
|
V
|
|
655
711
|
]);
|
|
@@ -683,18 +739,18 @@ function Pe({ asideExtent: e, asideMode: t, asideOpen: r, asideSize: i, canvas:
|
|
|
683
739
|
X
|
|
684
740
|
]);
|
|
685
741
|
let mt = f((e) => {
|
|
686
|
-
if (
|
|
742
|
+
if (O.onClick?.(e), !Z || !z) return;
|
|
687
743
|
let t = e.target?.closest?.("a[href]");
|
|
688
744
|
t != null && q.current.nav?.contains(t) === !0 && t.getAttribute("aria-disabled") !== "true" && Y(!1, "select", e.nativeEvent);
|
|
689
745
|
}, [
|
|
690
|
-
|
|
746
|
+
O,
|
|
691
747
|
Z,
|
|
692
|
-
|
|
748
|
+
z,
|
|
693
749
|
Y
|
|
694
750
|
]), [ht, gt] = b(null);
|
|
695
751
|
m(() => {
|
|
696
|
-
if (ht !== null) return
|
|
697
|
-
}, [ht]), g(
|
|
752
|
+
if (ht !== null) return ie(ht), () => ie(null, ht.ownerDocument);
|
|
753
|
+
}, [ht]), g(xe, () => ({
|
|
698
754
|
openNav: () => Y(!0, "programmatic"),
|
|
699
755
|
closeNav: () => Y(!1, "programmatic"),
|
|
700
756
|
openAside: () => X(!0, "programmatic"),
|
|
@@ -716,12 +772,12 @@ function Pe({ asideExtent: e, asideMode: t, asideOpen: r, asideSize: i, canvas:
|
|
|
716
772
|
asideId: yt,
|
|
717
773
|
asideMode: K,
|
|
718
774
|
asideOpen: N,
|
|
719
|
-
asideSize:
|
|
775
|
+
asideSize: R,
|
|
720
776
|
asideToggleId: `${A}aside-toggle`,
|
|
721
|
-
canvas:
|
|
722
|
-
closeOnNavigate:
|
|
723
|
-
collapsedTo:
|
|
724
|
-
escape:
|
|
777
|
+
canvas: Ie,
|
|
778
|
+
closeOnNavigate: z,
|
|
779
|
+
collapsedTo: Le,
|
|
780
|
+
escape: ze,
|
|
725
781
|
back: Be,
|
|
726
782
|
busy: Qe,
|
|
727
783
|
mainId: _t,
|
|
@@ -739,7 +795,7 @@ function Pe({ asideExtent: e, asideMode: t, asideOpen: r, asideSize: i, canvas:
|
|
|
739
795
|
register: et,
|
|
740
796
|
root: U,
|
|
741
797
|
scroll: We,
|
|
742
|
-
separation:
|
|
798
|
+
separation: Re,
|
|
743
799
|
setAsideDragging: Pe,
|
|
744
800
|
setBusy: $e,
|
|
745
801
|
setAsideExtent: tt,
|
|
@@ -759,12 +815,12 @@ function Pe({ asideExtent: e, asideMode: t, asideOpen: r, asideSize: i, canvas:
|
|
|
759
815
|
vt,
|
|
760
816
|
et,
|
|
761
817
|
K,
|
|
762
|
-
Fe,
|
|
763
|
-
Le,
|
|
764
818
|
R,
|
|
765
|
-
|
|
766
|
-
Be,
|
|
819
|
+
Ie,
|
|
767
820
|
z,
|
|
821
|
+
Le,
|
|
822
|
+
Be,
|
|
823
|
+
ze,
|
|
768
824
|
G,
|
|
769
825
|
B,
|
|
770
826
|
Ve,
|
|
@@ -772,7 +828,7 @@ function Pe({ asideExtent: e, asideMode: t, asideOpen: r, asideSize: i, canvas:
|
|
|
772
828
|
V,
|
|
773
829
|
Ue,
|
|
774
830
|
We,
|
|
775
|
-
|
|
831
|
+
Re,
|
|
776
832
|
I,
|
|
777
833
|
F,
|
|
778
834
|
U,
|
|
@@ -795,7 +851,7 @@ function Pe({ asideExtent: e, asideMode: t, asideOpen: r, asideSize: i, canvas:
|
|
|
795
851
|
children: H("skipToAside")
|
|
796
852
|
}, "aside"));
|
|
797
853
|
let xt = o({
|
|
798
|
-
...
|
|
854
|
+
...O,
|
|
799
855
|
children: /* @__PURE__ */ te(ee, { children: [
|
|
800
856
|
$.length > 0 ? /* @__PURE__ */ x("div", {
|
|
801
857
|
"data-part": "skip",
|
|
@@ -817,9 +873,9 @@ function Pe({ asideExtent: e, asideMode: t, asideOpen: r, asideSize: i, canvas:
|
|
|
817
873
|
] }),
|
|
818
874
|
className: d,
|
|
819
875
|
...K === void 0 ? {} : { "data-aside-mode": K },
|
|
820
|
-
"data-aside-size":
|
|
821
|
-
"data-canvas":
|
|
822
|
-
"data-collapsed-to":
|
|
876
|
+
"data-aside-size": R,
|
|
877
|
+
"data-canvas": Ie,
|
|
878
|
+
"data-collapsed-to": Le,
|
|
823
879
|
...L ? { "data-dragging": "" } : {},
|
|
824
880
|
...G === void 0 ? {} : { "data-nav-mode": G },
|
|
825
881
|
"data-nav-side": Ve,
|
|
@@ -828,18 +884,21 @@ function Pe({ asideExtent: e, asideMode: t, asideOpen: r, asideSize: i, canvas:
|
|
|
828
884
|
"data-part": "root",
|
|
829
885
|
"data-primary": Ue,
|
|
830
886
|
"data-scroll": We,
|
|
831
|
-
"data-separation":
|
|
887
|
+
"data-separation": Re,
|
|
832
888
|
"data-ui": "app-shell",
|
|
833
889
|
onClick: mt,
|
|
834
|
-
style:
|
|
890
|
+
style: Te
|
|
835
891
|
});
|
|
836
892
|
return /* @__PURE__ */ x(Me.Provider, {
|
|
837
893
|
value: bt,
|
|
838
|
-
children:
|
|
894
|
+
children: Se === void 0 ? /* @__PURE__ */ x("div", {
|
|
895
|
+
...xt,
|
|
896
|
+
ref: Ke
|
|
897
|
+
}) : Se({
|
|
839
898
|
...xt,
|
|
840
899
|
ref: Ke
|
|
841
|
-
})
|
|
900
|
+
})
|
|
842
901
|
});
|
|
843
902
|
}
|
|
844
903
|
//#endregion
|
|
845
|
-
export {
|
|
904
|
+
export { k as C, F as S, C as T, xe as _, be as a, Ce as b, Ae as c, I as d, _e as f, O as g, P as h, Pe as i, Ee as l, ye as m, R as n, A as o, ve as p, L as r, De as s, je as t, ke as u, we as v, ge as w, Se as x, Te as y };
|