themelia-react-ui 2.0.1 → 2.0.3
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/CHANGELOG.md +317 -131
- package/README.md +25 -9
- package/THIRD_PARTY_NOTICES.md +7 -0
- package/dist/{accordion-B6a3vVgA.js → accordion-Cjb6sx0G.js} +14 -13
- package/dist/accordion-Cjb6sx0G.js.map +1 -0
- package/dist/action-menu-CllU52Mm.js +280 -0
- package/dist/action-menu-CllU52Mm.js.map +1 -0
- package/dist/affordance-geometry.generated-tF36bREk.js +140 -0
- package/dist/affordance-geometry.generated-tF36bREk.js.map +1 -0
- package/dist/ai-artifact-DvTwDVyL.js +1148 -0
- package/dist/ai-artifact-DvTwDVyL.js.map +1 -0
- package/dist/{app-shell-ZK5RWdo6.js → app-shell-C4FhvCqF.js} +5 -5
- package/dist/{app-shell-ZK5RWdo6.js.map → app-shell-C4FhvCqF.js.map} +1 -1
- package/dist/attachment-BxDfL2mw.js +246 -0
- package/dist/attachment-BxDfL2mw.js.map +1 -0
- package/dist/{auth-CYxKfo69.js → auth-BGua8ouh.js} +58 -54
- package/dist/auth-BGua8ouh.js.map +1 -0
- package/dist/{avatar-BBnEJIx8.js → avatar-DAPlDvhJ.js} +7 -7
- package/dist/avatar-DAPlDvhJ.js.map +1 -0
- package/dist/{badge-MrKVNzW9.js → badge-HpFqoqSY.js} +40 -40
- package/dist/badge-HpFqoqSY.js.map +1 -0
- package/dist/base/accordion.js +1 -1
- package/dist/base/action-menu.js +1 -1
- package/dist/base/attachment.js +1 -1
- package/dist/base/avatar.js +1 -1
- package/dist/base/badge.js +1 -1
- package/dist/base/batch-action-bar.js +1 -1
- package/dist/base/buttons.js +1 -1
- package/dist/base/cards.js +2 -2
- package/dist/base/carousel.js +40 -36
- package/dist/base/carousel.js.map +1 -1
- package/dist/base/cascader.js +92 -92
- package/dist/base/cascader.js.map +1 -1
- package/dist/base/chart.js +1 -1
- package/dist/base/choice-inputs.js +2 -2
- package/dist/base/code-block.js +1 -1
- package/dist/base/combobox.js +2 -2
- package/dist/base/command.js +1 -1
- package/dist/base/copyable.js +1 -1
- package/dist/base/date-pickers.js +2 -2
- package/dist/base/display.js +6 -6
- package/dist/base/feedback.js +3 -3
- package/dist/base/forms-numeric.js +1 -1
- package/dist/base/forms.js +2 -2
- package/dist/base/inline-edit.js +14 -14
- package/dist/base/inline-edit.js.map +1 -1
- package/dist/base/item.js +1 -1
- package/dist/base/media-gallery.js +1 -1
- package/dist/base/metadata-list.js +1 -1
- package/dist/base/navigation.js +6 -6
- package/dist/base/popover-menu.js +1 -1
- package/dist/base/popover.js +1 -1
- package/dist/base/qr-code.js +1 -1
- package/dist/base/repeaters.js +171 -176
- package/dist/base/repeaters.js.map +1 -1
- package/dist/base/sheet.js +1 -1
- package/dist/base/sidebar.js +1 -1
- package/dist/base/signature-pad.js +6 -6
- package/dist/base/skeleton.js +1 -1
- package/dist/base/spinner.js +79 -2
- package/dist/base/spinner.js.map +1 -0
- package/dist/base/structure.js +1 -1
- package/dist/base/table.js +1 -1
- package/dist/base/text-inputs.js +2 -2
- package/dist/base/toaster.js +46 -45
- package/dist/base/toaster.js.map +1 -1
- package/dist/base/tree.js +1 -1
- package/dist/base/upload-queue.js +1 -1
- package/dist/base/upload.js +3 -3
- package/dist/base/value-inputs.js +1 -1
- package/dist/{batch-action-bar-BZGDG-Si.js → batch-action-bar-DnUJ21NQ.js} +6 -5
- package/dist/batch-action-bar-DnUJ21NQ.js.map +1 -0
- package/dist/blocks/admin.js +42 -42
- package/dist/blocks/admin.js.map +1 -1
- package/dist/blocks/ai.js +260 -240
- package/dist/blocks/ai.js.map +1 -1
- package/dist/blocks/analytics/usage-card.js +1 -1
- package/dist/blocks/analytics.js +620 -585
- package/dist/blocks/analytics.js.map +1 -1
- package/dist/blocks/collaboration.js +1 -1
- package/dist/blocks/commerce/receipt.js +1 -1
- package/dist/blocks/commerce.js +1152 -1109
- package/dist/blocks/commerce.js.map +1 -1
- package/dist/blocks/data-display.js +2 -2
- package/dist/blocks/onboarding.js +48 -39
- package/dist/blocks/onboarding.js.map +1 -1
- package/dist/blocks/planning.js +13 -12
- package/dist/blocks/planning.js.map +1 -1
- package/dist/blocks/timelines.js +1 -1
- package/dist/{breadcrumbs-D5t7I023.js → breadcrumbs-C-oqs1sQ.js} +5 -5
- package/dist/breadcrumbs-C-oqs1sQ.js.map +1 -0
- package/dist/{button-QYwiyhD2.js → button-DVzspB_G.js} +2 -2
- package/dist/{button-QYwiyhD2.js.map → button-DVzspB_G.js.map} +1 -1
- package/dist/{buttons-SbIcm1HJ.js → buttons-DPZekJFu.js} +20 -15
- package/dist/buttons-DPZekJFu.js.map +1 -0
- package/dist/cards-BaBZR-AU.js +68 -0
- package/dist/cards-BaBZR-AU.js.map +1 -0
- package/dist/{chart-QfrARkXl.js → chart-ZOYyK2xG.js} +58 -55
- package/dist/chart-ZOYyK2xG.js.map +1 -0
- package/dist/{checkbox-DhB6K0bK.js → checkbox-AWIhNhmo.js} +2 -2
- package/dist/{checkbox-DhB6K0bK.js.map → checkbox-AWIhNhmo.js.map} +1 -1
- package/dist/{choice-inputs-t6w3ATNz.js → choice-inputs-CNHvARCJ.js} +49 -45
- package/dist/choice-inputs-CNHvARCJ.js.map +1 -0
- package/dist/{code-block-Dgbu-CU3.js → code-block-DeneBJR_.js} +8 -8
- package/dist/code-block-DeneBJR_.js.map +1 -0
- package/dist/{collapsible-D8AEGU1-.js → collapsible-C-_l4hpy.js} +3 -3
- package/dist/{collapsible-D8AEGU1-.js.map → collapsible-C-_l4hpy.js.map} +1 -1
- package/dist/{collection-content-uK16Grv0.js → collection-content-By56pLog.js} +3 -3
- package/dist/{collection-content-uK16Grv0.js.map → collection-content-By56pLog.js.map} +1 -1
- package/dist/combobox-DaHESuiL.js +355 -0
- package/dist/combobox-DaHESuiL.js.map +1 -0
- package/dist/{combobox-DLl0bfiq.js → combobox-Dxo2fAYQ.js} +289 -279
- package/dist/combobox-Dxo2fAYQ.js.map +1 -0
- package/dist/{command-kNR20o7x.js → command-C25VMRII.js} +7 -7
- package/dist/{command-kNR20o7x.js.map → command-C25VMRII.js.map} +1 -1
- package/dist/{comments-BpDuCUUu.js → comments-DD0DUPwJ.js} +114 -105
- package/dist/comments-DD0DUPwJ.js.map +1 -0
- package/dist/components/base/badge/badge.recipes.d.ts +1 -1
- package/dist/components/base/buttons/loader-button.d.ts +2 -1
- package/dist/components/base/cards/card.recipes.d.ts +2 -3
- package/dist/components/base/cards/partials/smart-card-skeleton.d.ts +3 -13
- package/dist/components/base/cards/smart-card.types.d.ts +11 -4
- package/dist/components/base/chart/chart.d.ts +2 -5
- package/dist/components/base/combobox/combobox-field.d.ts +16 -0
- package/dist/components/base/combobox/combobox.strings.d.ts +7 -0
- package/dist/components/base/combobox/index.d.ts +30 -4
- package/dist/components/base/forms/form-sizing.d.ts +11 -3
- package/dist/components/base/navigation/pagination.d.ts +5 -2
- package/dist/components/base/popover/popover.recipes.d.ts +15 -1
- package/dist/components/base/table/index.d.ts +9 -2
- package/dist/components/base/text-inputs/input-group.d.ts +2 -2
- package/dist/components/blocks/ai/ai-shimmer/ai-shimmer.d.ts +1 -1
- package/dist/components/blocks/ai/ai-shimmer/types.d.ts +3 -0
- package/dist/components/blocks/commerce/fulfillment-group/types.d.ts +3 -1
- package/dist/components/blocks/data-display/inline-stat/inline-stat.d.ts +16 -8
- package/dist/components/features/activities/partials/activity-marker.d.ts +6 -3
- package/dist/components/features/appointment-calendar/appointment-calendar.d.ts +5 -0
- package/dist/components/features/appointment-calendar/appointment-calendar.types.d.ts +220 -0
- package/dist/components/features/appointment-calendar/appointment-calendar.utils.d.ts +41 -0
- package/dist/components/features/appointment-calendar/index.d.ts +3 -0
- package/dist/components/features/appointment-calendar/partials/appointment-agenda.d.ts +32 -0
- package/dist/components/features/appointment-calendar/partials/appointment-month.d.ts +13 -0
- package/dist/components/features/combobox/combobox.strings.d.ts +15 -1
- package/dist/components/features/combobox/types.d.ts +4 -0
- package/dist/components/features/media-library/media-library.strings.d.ts +2 -0
- package/dist/components/features/rich-text-editor/index.d.ts +1 -1
- package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +6 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +9 -1
- package/dist/components/features/table/table-header.d.ts +1 -1
- package/dist/components/features/table/table.strings.d.ts +55 -1
- package/dist/components/features/table/table.types.d.ts +17 -4
- package/dist/components/features/theme-tweaker/theme-tweaker.types.d.ts +5 -0
- package/dist/components/primitives/number.d.ts +4 -2
- package/dist/components/primitives/value.d.ts +3 -1
- package/dist/components/typography/text-link.d.ts +4 -0
- package/dist/components/ui/combobox-dismiss.d.ts +16 -0
- package/dist/components/ui/combobox.d.ts +16 -7
- package/dist/components/ui/dialog.d.ts +1 -1
- package/dist/components/ui/item.d.ts +8 -8
- package/dist/components/ui/popover.d.ts +1 -1
- package/dist/components/ui/sheet.d.ts +1 -1
- package/dist/components/ui/tabs.d.ts +1 -1
- package/dist/{containers-DmWiJa2I.js → containers-Mu1LMGV1.js} +2 -2
- package/dist/{containers-DmWiJa2I.js.map → containers-Mu1LMGV1.js.map} +1 -1
- package/dist/{copyable-B3Gwgdqc.js → copyable-ClBuk_UK.js} +4 -4
- package/dist/{copyable-B3Gwgdqc.js.map → copyable-ClBuk_UK.js.map} +1 -1
- package/dist/{data-display-DafIvCl5.js → data-display-DT_khPl_.js} +98 -87
- package/dist/data-display-DT_khPl_.js.map +1 -0
- package/dist/{date-BgK3bTdo.js → date-DCrsDTZc.js} +5 -5
- package/dist/{date-BgK3bTdo.js.map → date-DCrsDTZc.js.map} +1 -1
- package/dist/{date-picker-CF-DtUpF.js → date-picker-B2K3ucWn.js} +594 -593
- package/dist/date-picker-B2K3ucWn.js.map +1 -0
- package/dist/date-pickers-Ds8gLaoP.js +175 -0
- package/dist/date-pickers-Ds8gLaoP.js.map +1 -0
- package/dist/{display-DsQTVzMz.js → display-hAc1HjpI.js} +49 -49
- package/dist/display-hAc1HjpI.js.map +1 -0
- package/dist/dropdown-menu-Cl4X7L5S.js +193 -0
- package/dist/dropdown-menu-Cl4X7L5S.js.map +1 -0
- package/dist/editable-text-recipe-Cn61kEcv.js +10 -0
- package/dist/editable-text-recipe-Cn61kEcv.js.map +1 -0
- package/dist/features/activities.js +398 -375
- package/dist/features/activities.js.map +1 -1
- package/dist/features/ai-chat.js +188 -179
- package/dist/features/ai-chat.js.map +1 -1
- package/dist/features/appointment-calendar.js +683 -0
- package/dist/features/appointment-calendar.js.map +1 -0
- package/dist/features/async-preview.js +109 -107
- package/dist/features/async-preview.js.map +1 -1
- package/dist/features/combobox.js +1 -1
- package/dist/features/comments.js +1 -1
- package/dist/features/data-view.js +137 -137
- package/dist/features/data-view.js.map +1 -1
- package/dist/features/email-composer.js +255 -255
- package/dist/features/email-composer.js.map +1 -1
- package/dist/features/event-calendar.js +254 -248
- package/dist/features/event-calendar.js.map +1 -1
- package/dist/features/filters.js +1 -1
- package/dist/features/global-search.js +35 -32
- package/dist/features/global-search.js.map +1 -1
- package/dist/features/kanban.js +118 -117
- package/dist/features/kanban.js.map +1 -1
- package/dist/features/map.js +233 -231
- package/dist/features/map.js.map +1 -1
- package/dist/features/media-library.js +789 -775
- package/dist/features/media-library.js.map +1 -1
- package/dist/features/mentions.js +1 -1
- package/dist/features/overlays.js +1 -1
- package/dist/features/products.js +922 -902
- package/dist/features/products.js.map +1 -1
- package/dist/features/questionnaire.js +28 -24
- package/dist/features/questionnaire.js.map +1 -1
- package/dist/features/resource-assignment.js +18 -15
- package/dist/features/resource-assignment.js.map +1 -1
- package/dist/features/resource.js +12 -12
- package/dist/features/resource.js.map +1 -1
- package/dist/features/rich-text-editor.js +2 -2
- package/dist/features/schema-form.js +15 -13
- package/dist/features/schema-form.js.map +1 -1
- package/dist/features/suggestions.js +3 -3
- package/dist/features/sync.js +11 -5
- package/dist/features/sync.js.map +1 -1
- package/dist/features/table.js +1 -1
- package/dist/features/theme-tweaker.js +493 -489
- package/dist/features/theme-tweaker.js.map +1 -1
- package/dist/feedback-BYIhtitP.js +239 -0
- package/dist/feedback-BYIhtitP.js.map +1 -0
- package/dist/{field-affordance-recipes-qQeIf4lG.js → field-affordance-recipes-DZhnIL_Y.js} +11 -18
- package/dist/field-affordance-recipes-DZhnIL_Y.js.map +1 -0
- package/dist/{filters-BkHH53uv.js → filters-DJVAveHA.js} +589 -580
- package/dist/filters-DJVAveHA.js.map +1 -0
- package/dist/{form-field-DUt4UxSV.js → form-field-CwH9y77i.js} +6 -5
- package/dist/form-field-CwH9y77i.js.map +1 -0
- package/dist/{form-sizing-By94KzXE.js → form-sizing-BdP_Mf5p.js} +39 -44
- package/dist/form-sizing-BdP_Mf5p.js.map +1 -0
- package/dist/{forms-Bzha-Y3B.js → forms-B9G_xwzi.js} +8 -8
- package/dist/{forms-Bzha-Y3B.js.map → forms-B9G_xwzi.js.map} +1 -1
- package/dist/{forms-numeric-C0bvjRPZ.js → forms-numeric-B_jraJaQ.js} +309 -309
- package/dist/forms-numeric-B_jraJaQ.js.map +1 -0
- package/dist/{header-BOefOKd1.js → header-BSfIEWbI.js} +160 -153
- package/dist/header-BSfIEWbI.js.map +1 -0
- package/dist/{hooks-9k_TtmKh.js → hooks-ClH9thn4.js} +2 -2
- package/dist/{hooks-9k_TtmKh.js.map → hooks-ClH9thn4.js.map} +1 -1
- package/dist/{icon-badge-CAuKupo9.js → icon-badge-DYKIwvOV.js} +4 -4
- package/dist/{icon-badge-CAuKupo9.js.map → icon-badge-DYKIwvOV.js.map} +1 -1
- package/dist/index.js +3 -3
- package/dist/input-CZw8iU99.js +21 -0
- package/dist/input-CZw8iU99.js.map +1 -0
- package/dist/input-DQdEd0YD.js +263 -0
- package/dist/input-DQdEd0YD.js.map +1 -0
- package/dist/{interaction-recipes-CHr0dJUs.js → interaction-recipes-XR9ZpVYL.js} +2 -1
- package/dist/interaction-recipes-XR9ZpVYL.js.map +1 -0
- package/dist/item-K5_ghvze.js +275 -0
- package/dist/item-K5_ghvze.js.map +1 -0
- package/dist/layout/app-shell.js +1 -1
- package/dist/layout/auth.js +1 -1
- package/dist/layout/containers.js +1 -1
- package/dist/layout/header.js +1 -1
- package/dist/layout/hooks.js +1 -1
- package/dist/layout/navigation.js +1 -1
- package/dist/layout/page.js +1 -1
- package/dist/layout/settings.js +1 -1
- package/dist/layout/sidebar.js +2 -2
- package/dist/layout/workspace.js +1 -1
- package/dist/layout.js +10 -10
- package/dist/lib/affordance-geometry.generated.d.ts +71 -0
- package/dist/lib/editable-text-recipe.d.ts +4 -4
- package/dist/lib/field-affordance-recipes.d.ts +2 -2
- package/dist/lib/interaction-recipes.d.ts +5 -0
- package/dist/lib/theme-mode-css.d.ts +7 -0
- package/dist/lib/tone-recipes.d.ts +8 -0
- package/dist/lib/ui-provider/types.d.ts +2 -2
- package/dist/lib/use-popup-focus-recovery.d.ts +8 -0
- package/dist/lib/utils.js +1 -1
- package/dist/{media-gallery-DcTtAaeC.js → media-gallery-3zIVLMWH.js} +8 -8
- package/dist/media-gallery-3zIVLMWH.js.map +1 -0
- package/dist/{mentions-D-uyCh01.js → mentions-CGlEJ15c.js} +144 -142
- package/dist/mentions-CGlEJ15c.js.map +1 -0
- package/dist/{message-CdHgIWKf.js → message-DZ_ruyUV.js} +6 -5
- package/dist/message-DZ_ruyUV.js.map +1 -0
- package/dist/{metadata-list-X5rYAKSB.js → metadata-list-8N16ZMW_.js} +130 -119
- package/dist/metadata-list-8N16ZMW_.js.map +1 -0
- package/dist/{navigation-D3KwXmaq.js → navigation-Bnotn4AQ.js} +19 -19
- package/dist/navigation-Bnotn4AQ.js.map +1 -0
- package/dist/{navigation-HJf5zxlH.js → navigation-BzhHI3lo.js} +36 -35
- package/dist/navigation-BzhHI3lo.js.map +1 -0
- package/dist/{navigation-row-recipes-BVowojQw.js → navigation-row-recipes-BFLCk_Aq.js} +2 -2
- package/dist/{navigation-row-recipes-BVowojQw.js.map → navigation-row-recipes-BFLCk_Aq.js.map} +1 -1
- package/dist/{number-DMhe-Vsk.js → number-DbV1Dija.js} +36 -34
- package/dist/{number-DMhe-Vsk.js.map → number-DbV1Dija.js.map} +1 -1
- package/dist/{overflow-tab-bar-sQHXLlwQ.js → overflow-tab-bar-CWY7Nogn.js} +105 -103
- package/dist/overflow-tab-bar-CWY7Nogn.js.map +1 -0
- package/dist/{overlays-I0axtYA6.js → overlays-tMkF-VAN.js} +282 -278
- package/dist/overlays-tMkF-VAN.js.map +1 -0
- package/dist/{page-B5dTH9gE.js → page-CL9YeH_V.js} +8 -8
- package/dist/{page-B5dTH9gE.js.map → page-CL9YeH_V.js.map} +1 -1
- package/dist/{page-header-commands-DjzFEq3E.js → page-header-commands-DOb6WsfD.js} +5 -5
- package/dist/{page-header-commands-DjzFEq3E.js.map → page-header-commands-DOb6WsfD.js.map} +1 -1
- package/dist/pagination-BL25hu2s.js +158 -0
- package/dist/pagination-BL25hu2s.js.map +1 -0
- package/dist/{popover-Di55PyAI.js → popover-gnTOhbFM.js} +69 -66
- package/dist/popover-gnTOhbFM.js.map +1 -0
- package/dist/popover-menu-Cn9rUkdc.js +100 -0
- package/dist/popover-menu-Cn9rUkdc.js.map +1 -0
- package/dist/{popover.recipes-Bdyhj2db.js → popover.recipes-D3j8R8Yp.js} +17 -10
- package/dist/popover.recipes-D3j8R8Yp.js.map +1 -0
- package/dist/{primitives-B-CkiEMU.js → primitives-BFK08r9M.js} +45 -44
- package/dist/primitives-BFK08r9M.js.map +1 -0
- package/dist/primitives.js +4 -4
- package/dist/{progress-rnS8-uAW.js → progress-B1VnCT0K.js} +5 -5
- package/dist/{progress-rnS8-uAW.js.map → progress-B1VnCT0K.js.map} +1 -1
- package/dist/{receipt-D0oswZ0p.js → receipt-BVSOH3Xo.js} +9 -6
- package/dist/{receipt-D0oswZ0p.js.map → receipt-BVSOH3Xo.js.map} +1 -1
- package/dist/{rich-text-DvGulsNJ.js → rich-text-GOUyKQ-s.js} +3 -3
- package/dist/{rich-text-DvGulsNJ.js.map → rich-text-GOUyKQ-s.js.map} +1 -1
- package/dist/{rich-text-editor-sMU_Scqm.js → rich-text-editor-cRLC-eBK.js} +418 -426
- package/dist/rich-text-editor-cRLC-eBK.js.map +1 -0
- package/dist/rich-text-editor-toolbar-DfXg0-VC.js +94 -0
- package/dist/rich-text-editor-toolbar-DfXg0-VC.js.map +1 -0
- package/dist/{scroll-area-Bt_vXY2b.js → scroll-area-DcI-M1UT.js} +2 -2
- package/dist/{scroll-area-Bt_vXY2b.js.map → scroll-area-DcI-M1UT.js.map} +1 -1
- package/dist/{separator-C8DlRGwF.js → separator-BDV-Y648.js} +3 -3
- package/dist/{separator-C8DlRGwF.js.map → separator-BDV-Y648.js.map} +1 -1
- package/dist/{separator-CYHnjsAb.js → separator-Bom7NsGO.js} +2 -2
- package/dist/{separator-CYHnjsAb.js.map → separator-Bom7NsGO.js.map} +1 -1
- package/dist/services/actions.js +1 -1
- package/dist/{settings-CQW3b-Cu.js → settings-ybnjVwbd.js} +20 -19
- package/dist/settings-ybnjVwbd.js.map +1 -0
- package/dist/{sheet-4SEvVYzA.js → sheet-ijlsjq-n.js} +76 -73
- package/dist/sheet-ijlsjq-n.js.map +1 -0
- package/dist/{sidebar-C7WWR29L.js → sidebar-Db6gkh3U.js} +183 -182
- package/dist/sidebar-Db6gkh3U.js.map +1 -0
- package/dist/{sidebar-d7Dg80ln.js → sidebar-DkTO4VTO.js} +14 -13
- package/dist/{sidebar-d7Dg80ln.js.map → sidebar-DkTO4VTO.js.map} +1 -1
- package/dist/{skeleton-Cz890JZF.js → skeleton-Byjnt7qr.js} +3 -3
- package/dist/{skeleton-Cz890JZF.js.map → skeleton-Byjnt7qr.js.map} +1 -1
- package/dist/smart-card-DiC5aac3.js +604 -0
- package/dist/smart-card-DiC5aac3.js.map +1 -0
- package/dist/{structure-DC2dygdA.js → structure-BmisBK-3.js} +2 -2
- package/dist/{structure-DC2dygdA.js.map → structure-BmisBK-3.js.map} +1 -1
- package/dist/style.css +1 -1
- package/dist/table-BweFy_P9.js +1530 -0
- package/dist/table-BweFy_P9.js.map +1 -0
- package/dist/{table-CIKyLUsy.js → table-DsfzoUia.js} +75 -63
- package/dist/table-DsfzoUia.js.map +1 -0
- package/dist/{tabs-DwBJfjxX.js → tabs-CDocW5D1.js} +14 -13
- package/dist/tabs-CDocW5D1.js.map +1 -0
- package/dist/text-inputs-f9Ia-aCi.js +353 -0
- package/dist/text-inputs-f9Ia-aCi.js.map +1 -0
- package/dist/theme-mode-css-BB-_RYab.js +14 -0
- package/dist/theme-mode-css-BB-_RYab.js.map +1 -0
- package/dist/theme-scope-BJ6eE2xt.js +50 -0
- package/dist/theme-scope-BJ6eE2xt.js.map +1 -0
- package/dist/theme.css +285 -228
- package/dist/themes/green.css +16 -12
- package/dist/timelines-CwM_9IhD.js +457 -0
- package/dist/timelines-CwM_9IhD.js.map +1 -0
- package/dist/{tone-recipes-CPoExcTE.js → tone-recipes-BPsRAvhu.js} +5 -2
- package/dist/tone-recipes-BPsRAvhu.js.map +1 -0
- package/dist/{tooltip-CsfgrfS7.js → tooltip-yiRJUFjp.js} +4 -4
- package/dist/{tooltip-CsfgrfS7.js.map → tooltip-yiRJUFjp.js.map} +1 -1
- package/dist/{tree-BiKhg8AY.js → tree-WnKQzwbq.js} +9 -9
- package/dist/{tree-BiKhg8AY.js.map → tree-WnKQzwbq.js.map} +1 -1
- package/dist/typography/rich-text.js +1 -1
- package/dist/{typography-DTRkE9zL.js → typography-UTnveOEy.js} +6 -6
- package/dist/typography-UTnveOEy.js.map +1 -0
- package/dist/typography.js +2 -2
- package/dist/{ui-provider-1D_NSYzO.js → ui-provider-C_U0Xma4.js} +3 -3
- package/dist/ui-provider-C_U0Xma4.js.map +1 -0
- package/dist/ui-provider.js +2 -2
- package/dist/{upload-BO8-CLN6.js → upload-CXyxmQBP.js} +13 -12
- package/dist/upload-CXyxmQBP.js.map +1 -0
- package/dist/{upload-queue-EOC8g1gf.js → upload-queue-Boscubn9.js} +11 -9
- package/dist/upload-queue-Boscubn9.js.map +1 -0
- package/dist/{usage-card-obRaBskq.js → usage-card-BhO5eqkX.js} +53 -37
- package/dist/usage-card-BhO5eqkX.js.map +1 -0
- package/dist/use-popup-focus-recovery-C0QPvgOR.js +36 -0
- package/dist/use-popup-focus-recovery-C0QPvgOR.js.map +1 -0
- package/dist/{utils-l5LpDw2z.js → utils-BRhFDwuU.js} +59 -44
- package/dist/utils-BRhFDwuU.js.map +1 -0
- package/dist/{value-inputs-TAYMX111.js → value-inputs-TaX4OjNk.js} +268 -252
- package/dist/value-inputs-TaX4OjNk.js.map +1 -0
- package/dist/{value-typography-b8wpz1eX.js → value-typography-BP8OG6h5.js} +2 -2
- package/dist/{value-typography-b8wpz1eX.js.map → value-typography-BP8OG6h5.js.map} +1 -1
- package/dist/{workspace-DH0v0KcB.js → workspace-B-OEm3Kf.js} +34 -33
- package/dist/workspace-B-OEm3Kf.js.map +1 -0
- package/docs/consumer-skill/SKILL.md +3 -3
- package/docs/consumer-skill/references/agents-md.md +1 -1
- package/docs/consumer-skill/references/composition.md +8 -6
- package/docs/consumer-skill/references/installation.md +6 -0
- package/docs/consumer-skill/references/integration.md +4 -3
- package/docs/consumer-skill/references/public-api.json +105 -2
- package/docs/consumer-skill/references/review.md +7 -0
- package/docs/consumer-skill/references/theming.md +71 -6
- package/docs/consumer-skill/references/tokens.json +1 -1
- package/docs/consumer-skill/references/workflows.md +26 -0
- package/docs/consumer-skill/scripts/composition-policy.mjs +3 -2
- package/docs/consumer-skill/scripts/surface-policy.mjs +11 -0
- package/package.json +8 -4
- package/dist/accordion-B6a3vVgA.js.map +0 -1
- package/dist/action-menu-TzCoSlwL.js +0 -280
- package/dist/action-menu-TzCoSlwL.js.map +0 -1
- package/dist/affordance-geometry.generated-B5iu-Mkr.js +0 -69
- package/dist/affordance-geometry.generated-B5iu-Mkr.js.map +0 -1
- package/dist/ai-artifact-BMJdv-6q.js +0 -1115
- package/dist/ai-artifact-BMJdv-6q.js.map +0 -1
- package/dist/attachment-BtfhGm8i.js +0 -245
- package/dist/attachment-BtfhGm8i.js.map +0 -1
- package/dist/auth-CYxKfo69.js.map +0 -1
- package/dist/avatar-BBnEJIx8.js.map +0 -1
- package/dist/badge-MrKVNzW9.js.map +0 -1
- package/dist/batch-action-bar-BZGDG-Si.js.map +0 -1
- package/dist/breadcrumbs-D5t7I023.js.map +0 -1
- package/dist/buttons-SbIcm1HJ.js.map +0 -1
- package/dist/cards-CiiHpKYd.js +0 -66
- package/dist/cards-CiiHpKYd.js.map +0 -1
- package/dist/chart-QfrARkXl.js.map +0 -1
- package/dist/choice-inputs-t6w3ATNz.js.map +0 -1
- package/dist/code-block-Dgbu-CU3.js.map +0 -1
- package/dist/combobox-2Ic8N9bL.js +0 -278
- package/dist/combobox-2Ic8N9bL.js.map +0 -1
- package/dist/combobox-DLl0bfiq.js.map +0 -1
- package/dist/comments-BpDuCUUu.js.map +0 -1
- package/dist/data-display-DafIvCl5.js.map +0 -1
- package/dist/date-picker-CF-DtUpF.js.map +0 -1
- package/dist/date-pickers-BmzxJl5l.js +0 -174
- package/dist/date-pickers-BmzxJl5l.js.map +0 -1
- package/dist/display-DsQTVzMz.js.map +0 -1
- package/dist/dropdown-menu-E2qmdC7o.js +0 -193
- package/dist/dropdown-menu-E2qmdC7o.js.map +0 -1
- package/dist/editable-text-recipe-Bkm6wKHp.js +0 -10
- package/dist/editable-text-recipe-Bkm6wKHp.js.map +0 -1
- package/dist/feedback-qNuMBtRH.js +0 -233
- package/dist/feedback-qNuMBtRH.js.map +0 -1
- package/dist/field-affordance-recipes-qQeIf4lG.js.map +0 -1
- package/dist/filters-BkHH53uv.js.map +0 -1
- package/dist/form-field-DUt4UxSV.js.map +0 -1
- package/dist/form-sizing-By94KzXE.js.map +0 -1
- package/dist/forms-numeric-C0bvjRPZ.js.map +0 -1
- package/dist/header-BOefOKd1.js.map +0 -1
- package/dist/input-DWhBBBww.js +0 -262
- package/dist/input-DWhBBBww.js.map +0 -1
- package/dist/input-Ddi_LSYv.js +0 -20
- package/dist/input-Ddi_LSYv.js.map +0 -1
- package/dist/interaction-recipes-CHr0dJUs.js.map +0 -1
- package/dist/item-DEmDiTlD.js +0 -265
- package/dist/item-DEmDiTlD.js.map +0 -1
- package/dist/media-gallery-DcTtAaeC.js.map +0 -1
- package/dist/mentions-D-uyCh01.js.map +0 -1
- package/dist/message-CdHgIWKf.js.map +0 -1
- package/dist/metadata-list-X5rYAKSB.js.map +0 -1
- package/dist/navigation-D3KwXmaq.js.map +0 -1
- package/dist/navigation-HJf5zxlH.js.map +0 -1
- package/dist/overflow-tab-bar-sQHXLlwQ.js.map +0 -1
- package/dist/overlays-I0axtYA6.js.map +0 -1
- package/dist/pagination-3bPA_a6K.js +0 -149
- package/dist/pagination-3bPA_a6K.js.map +0 -1
- package/dist/popover-Di55PyAI.js.map +0 -1
- package/dist/popover-menu-B71Tn2Qz.js +0 -99
- package/dist/popover-menu-B71Tn2Qz.js.map +0 -1
- package/dist/popover.recipes-Bdyhj2db.js.map +0 -1
- package/dist/primitives-B-CkiEMU.js.map +0 -1
- package/dist/rich-text-editor-sMU_Scqm.js.map +0 -1
- package/dist/rich-text-editor.recipes-CadiF_Uu.js +0 -88
- package/dist/rich-text-editor.recipes-CadiF_Uu.js.map +0 -1
- package/dist/settings-CQW3b-Cu.js.map +0 -1
- package/dist/sheet-4SEvVYzA.js.map +0 -1
- package/dist/sidebar-C7WWR29L.js.map +0 -1
- package/dist/smart-card-lFKxn5Hu.js +0 -595
- package/dist/smart-card-lFKxn5Hu.js.map +0 -1
- package/dist/spinner-fa3h1Aif.js +0 -80
- package/dist/spinner-fa3h1Aif.js.map +0 -1
- package/dist/table-CIKyLUsy.js.map +0 -1
- package/dist/table-CrcLN9Io.js +0 -1458
- package/dist/table-CrcLN9Io.js.map +0 -1
- package/dist/tabs-DwBJfjxX.js.map +0 -1
- package/dist/text-inputs-aaK9wcDT.js +0 -326
- package/dist/text-inputs-aaK9wcDT.js.map +0 -1
- package/dist/theme-scope-kStaAer0.js +0 -39
- package/dist/theme-scope-kStaAer0.js.map +0 -1
- package/dist/timelines-C_SBwHNP.js +0 -442
- package/dist/timelines-C_SBwHNP.js.map +0 -1
- package/dist/tone-recipes-CPoExcTE.js.map +0 -1
- package/dist/typography-DTRkE9zL.js.map +0 -1
- package/dist/ui-provider-1D_NSYzO.js.map +0 -1
- package/dist/upload-BO8-CLN6.js.map +0 -1
- package/dist/upload-queue-EOC8g1gf.js.map +0 -1
- package/dist/usage-card-obRaBskq.js.map +0 -1
- package/dist/utils-l5LpDw2z.js.map +0 -1
- package/dist/value-inputs-TAYMX111.js.map +0 -1
- package/dist/workspace-DH0v0KcB.js.map +0 -1
|
@@ -1,33 +1,34 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { useStrings as e } from "./lib/strings.js";
|
|
3
|
-
import { t } from "./utils-
|
|
4
|
-
import {
|
|
5
|
-
import { t as s } from "./
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { t as v } from "./
|
|
14
|
-
import {
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
3
|
+
import { t } from "./utils-BRhFDwuU.js";
|
|
4
|
+
import { t as n } from "./affordance-geometry.generated-tF36bREk.js";
|
|
5
|
+
import { a as r, c as i, i as a, s as o, t as s } from "./sheet-ijlsjq-n.js";
|
|
6
|
+
import { t as c } from "./separator-Bom7NsGO.js";
|
|
7
|
+
import { c as l, o as u } from "./typography-UTnveOEy.js";
|
|
8
|
+
import { t as d } from "./focus-recipes-B653VaLq.js";
|
|
9
|
+
import { a as f, o as p, s as m } from "./tooltip-yiRJUFjp.js";
|
|
10
|
+
import { t as h } from "./button-DVzspB_G.js";
|
|
11
|
+
import { a as g } from "./surface-recipes-BKRVW8Os.js";
|
|
12
|
+
import { r as _ } from "./skeleton-Byjnt7qr.js";
|
|
13
|
+
import { t as v } from "./input-CZw8iU99.js";
|
|
14
|
+
import { t as y } from "./use-mobile-vaLKwgyf.js";
|
|
15
|
+
import { n as b, r as x, t as S } from "./navigation-row-recipes-BFLCk_Aq.js";
|
|
16
|
+
import * as C from "react";
|
|
17
|
+
import { jsx as w, jsxs as T } from "react/jsx-runtime";
|
|
18
|
+
import { PanelLeftIcon as E } from "lucide-react";
|
|
19
|
+
import { mergeProps as D } from "@base-ui/react/merge-props";
|
|
20
|
+
import { useRender as O } from "@base-ui/react/use-render";
|
|
21
|
+
import { cva as ee } from "class-variance-authority";
|
|
21
22
|
//#region src/components/ui/sidebar.tsx
|
|
22
|
-
var
|
|
23
|
-
function
|
|
24
|
-
let e =
|
|
23
|
+
var te = "sidebar_state", k = 604800, ne = "16rem", re = "3rem", ie = "b", A = C.createContext(null);
|
|
24
|
+
function j() {
|
|
25
|
+
let e = C.useContext(A);
|
|
25
26
|
if (!e) throw Error("useSidebar must be used within a SidebarProvider.");
|
|
26
27
|
return e;
|
|
27
28
|
}
|
|
28
|
-
function
|
|
29
|
-
let u =
|
|
30
|
-
|
|
29
|
+
function ae({ defaultOpen: e = !0, adaptTo: n = "viewport", ref: r, open: i, onOpenChange: a, className: o, style: s, children: c, ...l }) {
|
|
30
|
+
let u = y(), d = C.useRef(null), [f, p] = C.useState();
|
|
31
|
+
C.useEffect(() => {
|
|
31
32
|
let e = d.current;
|
|
32
33
|
if (n !== "container" || !e || typeof ResizeObserver > "u") return;
|
|
33
34
|
let t = () => p(e.getBoundingClientRect().width < 768);
|
|
@@ -35,28 +36,28 @@ function re({ defaultOpen: e = !0, adaptTo: n = "viewport", ref: r, open: i, onO
|
|
|
35
36
|
let r = new ResizeObserver(t);
|
|
36
37
|
return r.observe(e), () => r.disconnect();
|
|
37
38
|
}, [n]);
|
|
38
|
-
let m = u || n === "container" && (f ?? !1), [h, g] =
|
|
39
|
+
let m = u || n === "container" && (f ?? !1), [h, g] = C.useState(!1), [_, v] = C.useState(e), b = i ?? _, x = C.useCallback((e) => {
|
|
39
40
|
let t = typeof e == "function" ? e(b) : e;
|
|
40
|
-
a ? a(t) :
|
|
41
|
-
}, [a, b]),
|
|
41
|
+
a ? a(t) : v(t), document.cookie = `${te}=${t}; path=/; max-age=${k}`;
|
|
42
|
+
}, [a, b]), S = C.useCallback(() => m ? g((e) => !e) : x((e) => !e), [
|
|
42
43
|
m,
|
|
43
44
|
x,
|
|
44
45
|
g
|
|
45
46
|
]);
|
|
46
|
-
|
|
47
|
+
C.useEffect(() => {
|
|
47
48
|
let e = (e) => {
|
|
48
|
-
e.key ===
|
|
49
|
+
e.key === ie && (e.metaKey || e.ctrlKey) && (e.preventDefault(), S());
|
|
49
50
|
};
|
|
50
51
|
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
51
|
-
}, [
|
|
52
|
-
let T = b ? "expanded" : "collapsed", E =
|
|
52
|
+
}, [S]);
|
|
53
|
+
let T = b ? "expanded" : "collapsed", E = C.useMemo(() => ({
|
|
53
54
|
state: T,
|
|
54
55
|
open: b,
|
|
55
56
|
setOpen: x,
|
|
56
57
|
isMobile: m,
|
|
57
58
|
openMobile: h,
|
|
58
59
|
setOpenMobile: g,
|
|
59
|
-
toggleSidebar:
|
|
60
|
+
toggleSidebar: S
|
|
60
61
|
}), [
|
|
61
62
|
T,
|
|
62
63
|
b,
|
|
@@ -64,8 +65,8 @@ function re({ defaultOpen: e = !0, adaptTo: n = "viewport", ref: r, open: i, onO
|
|
|
64
65
|
m,
|
|
65
66
|
h,
|
|
66
67
|
g,
|
|
67
|
-
|
|
68
|
-
]),
|
|
68
|
+
S
|
|
69
|
+
]), D = O({
|
|
69
70
|
defaultTagName: "div",
|
|
70
71
|
ref: r ? [d, r] : d,
|
|
71
72
|
props: {
|
|
@@ -73,22 +74,22 @@ function re({ defaultOpen: e = !0, adaptTo: n = "viewport", ref: r, open: i, onO
|
|
|
73
74
|
"data-slot": "sidebar-wrapper",
|
|
74
75
|
"data-mobile": m,
|
|
75
76
|
style: {
|
|
76
|
-
"--sidebar-width":
|
|
77
|
-
"--sidebar-width-icon":
|
|
77
|
+
"--sidebar-width": ne,
|
|
78
|
+
"--sidebar-width-icon": re,
|
|
78
79
|
...s
|
|
79
80
|
},
|
|
80
81
|
className: t("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full", o),
|
|
81
82
|
children: c
|
|
82
83
|
}
|
|
83
84
|
});
|
|
84
|
-
return /* @__PURE__ */
|
|
85
|
+
return /* @__PURE__ */ w(A.Provider, {
|
|
85
86
|
value: E,
|
|
86
|
-
children:
|
|
87
|
+
children: D
|
|
87
88
|
});
|
|
88
89
|
}
|
|
89
|
-
function
|
|
90
|
-
let { toggleSidebar: i } =
|
|
91
|
-
return /* @__PURE__ */
|
|
90
|
+
function oe({ className: e, onClick: n, ...r }) {
|
|
91
|
+
let { toggleSidebar: i } = j();
|
|
92
|
+
return /* @__PURE__ */ T(h, {
|
|
92
93
|
"data-sidebar": "trigger",
|
|
93
94
|
"data-slot": "sidebar-trigger",
|
|
94
95
|
variant: "ghost",
|
|
@@ -98,15 +99,15 @@ function ie({ className: e, onClick: n, ...r }) {
|
|
|
98
99
|
n?.(e), i();
|
|
99
100
|
},
|
|
100
101
|
...r,
|
|
101
|
-
children: [/* @__PURE__ */
|
|
102
|
+
children: [/* @__PURE__ */ w(E, {}), /* @__PURE__ */ w("span", {
|
|
102
103
|
className: "sr-only",
|
|
103
104
|
children: "Toggle Sidebar"
|
|
104
105
|
})]
|
|
105
106
|
});
|
|
106
107
|
}
|
|
107
|
-
function
|
|
108
|
-
let { toggleSidebar: r } =
|
|
109
|
-
return /* @__PURE__ */
|
|
108
|
+
function se({ className: e, ...n }) {
|
|
109
|
+
let { toggleSidebar: r } = j();
|
|
110
|
+
return /* @__PURE__ */ w("button", {
|
|
110
111
|
"data-sidebar": "rail",
|
|
111
112
|
"data-slot": "sidebar-rail",
|
|
112
113
|
"aria-label": "Toggle Sidebar",
|
|
@@ -117,15 +118,15 @@ function ae({ className: e, ...n }) {
|
|
|
117
118
|
...n
|
|
118
119
|
});
|
|
119
120
|
}
|
|
120
|
-
function
|
|
121
|
-
return /* @__PURE__ */
|
|
121
|
+
function ce({ className: e, ...n }) {
|
|
122
|
+
return /* @__PURE__ */ w("main", {
|
|
122
123
|
"data-slot": "sidebar-inset",
|
|
123
124
|
className: t("bg-background md:peer-data-[variant=inset]:m-space-md md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-radius md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-space-md relative flex w-full flex-1 flex-col", e),
|
|
124
125
|
...n
|
|
125
126
|
});
|
|
126
127
|
}
|
|
127
|
-
function
|
|
128
|
-
return /* @__PURE__ */
|
|
128
|
+
function M({ className: e, ...n }) {
|
|
129
|
+
return /* @__PURE__ */ w(v, {
|
|
129
130
|
"data-slot": "sidebar-input",
|
|
130
131
|
"data-sidebar": "input",
|
|
131
132
|
className: t("bg-background h-8 w-full shadow-none", e),
|
|
@@ -133,7 +134,7 @@ function se({ className: e, ...n }) {
|
|
|
133
134
|
});
|
|
134
135
|
}
|
|
135
136
|
function N({ className: e, ...n }) {
|
|
136
|
-
return /* @__PURE__ */
|
|
137
|
+
return /* @__PURE__ */ w("div", {
|
|
137
138
|
"data-slot": "sidebar-header",
|
|
138
139
|
"data-sidebar": "header",
|
|
139
140
|
className: t("flex flex-col", e),
|
|
@@ -141,7 +142,7 @@ function N({ className: e, ...n }) {
|
|
|
141
142
|
});
|
|
142
143
|
}
|
|
143
144
|
function P({ className: e, ...n }) {
|
|
144
|
-
return /* @__PURE__ */
|
|
145
|
+
return /* @__PURE__ */ w("div", {
|
|
145
146
|
"data-slot": "sidebar-footer",
|
|
146
147
|
"data-sidebar": "footer",
|
|
147
148
|
className: t("flex flex-col", e),
|
|
@@ -149,7 +150,7 @@ function P({ className: e, ...n }) {
|
|
|
149
150
|
});
|
|
150
151
|
}
|
|
151
152
|
function F({ className: e, ...n }) {
|
|
152
|
-
return /* @__PURE__ */
|
|
153
|
+
return /* @__PURE__ */ w(c, {
|
|
153
154
|
"data-slot": "sidebar-separator",
|
|
154
155
|
"data-sidebar": "separator",
|
|
155
156
|
className: t("bg-sidebar-border mx-space-md w-auto", e),
|
|
@@ -157,7 +158,7 @@ function F({ className: e, ...n }) {
|
|
|
157
158
|
});
|
|
158
159
|
}
|
|
159
160
|
function I({ className: e, ...n }) {
|
|
160
|
-
return /* @__PURE__ */
|
|
161
|
+
return /* @__PURE__ */ w("div", {
|
|
161
162
|
"data-slot": "sidebar-content",
|
|
162
163
|
"data-sidebar": "content",
|
|
163
164
|
className: t("gap-space-md flex min-h-0 flex-1 flex-col overflow-auto group-data-[collapsible=icon]:overflow-hidden", e),
|
|
@@ -165,7 +166,7 @@ function I({ className: e, ...n }) {
|
|
|
165
166
|
});
|
|
166
167
|
}
|
|
167
168
|
function L({ className: e, ...n }) {
|
|
168
|
-
return /* @__PURE__ */
|
|
169
|
+
return /* @__PURE__ */ w("div", {
|
|
169
170
|
"data-slot": "sidebar-group",
|
|
170
171
|
"data-sidebar": "group",
|
|
171
172
|
className: t("relative flex w-full min-w-0 flex-col", e),
|
|
@@ -173,9 +174,9 @@ function L({ className: e, ...n }) {
|
|
|
173
174
|
});
|
|
174
175
|
}
|
|
175
176
|
function R({ className: e, render: n, ...r }) {
|
|
176
|
-
return
|
|
177
|
+
return O({
|
|
177
178
|
defaultTagName: "div",
|
|
178
|
-
props:
|
|
179
|
+
props: D({ className: t(`text-sidebar-foreground/70 h-8 rounded-inner text-xs font-medium transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 ${d.sidebar} [&>svg]:size-icon flex shrink-0 items-center outline-hidden [&>svg]:shrink-0`, e) }, r),
|
|
179
180
|
render: n,
|
|
180
181
|
state: {
|
|
181
182
|
slot: "sidebar-group-label",
|
|
@@ -184,9 +185,9 @@ function R({ className: e, render: n, ...r }) {
|
|
|
184
185
|
});
|
|
185
186
|
}
|
|
186
187
|
function z({ className: e, render: n, ...r }) {
|
|
187
|
-
return
|
|
188
|
+
return O({
|
|
188
189
|
defaultTagName: "button",
|
|
189
|
-
props:
|
|
190
|
+
props: D({ className: t(`box-border border-0 bg-transparent font-sans text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 w-5 rounded-inner p-0 ${d.sidebar} [&>svg]:size-icon flex aspect-square items-center justify-center outline-hidden transition-transform [&>svg]:shrink-0 after:absolute after:-inset-2 md:after:hidden group-data-[collapsible=icon]:hidden`, e) }, r),
|
|
190
191
|
render: n,
|
|
191
192
|
state: {
|
|
192
193
|
slot: "sidebar-group-action",
|
|
@@ -195,7 +196,7 @@ function z({ className: e, render: n, ...r }) {
|
|
|
195
196
|
});
|
|
196
197
|
}
|
|
197
198
|
function B({ className: e, ...n }) {
|
|
198
|
-
return /* @__PURE__ */
|
|
199
|
+
return /* @__PURE__ */ w("div", {
|
|
199
200
|
"data-slot": "sidebar-group-content",
|
|
200
201
|
"data-sidebar": "group-content",
|
|
201
202
|
className: t("text-sm w-full", e),
|
|
@@ -203,7 +204,7 @@ function B({ className: e, ...n }) {
|
|
|
203
204
|
});
|
|
204
205
|
}
|
|
205
206
|
function V({ className: e, ...n }) {
|
|
206
|
-
return /* @__PURE__ */
|
|
207
|
+
return /* @__PURE__ */ w("ul", {
|
|
207
208
|
"data-slot": "sidebar-menu",
|
|
208
209
|
"data-sidebar": "menu",
|
|
209
210
|
className: t("m-0 p-0 list-none flex w-full min-w-0 flex-col", e),
|
|
@@ -211,14 +212,14 @@ function V({ className: e, ...n }) {
|
|
|
211
212
|
});
|
|
212
213
|
}
|
|
213
214
|
function H({ className: e, ...n }) {
|
|
214
|
-
return /* @__PURE__ */
|
|
215
|
+
return /* @__PURE__ */ w("li", {
|
|
215
216
|
"data-slot": "sidebar-menu-item",
|
|
216
217
|
"data-sidebar": "menu-item",
|
|
217
218
|
className: t("group/menu-item relative", e),
|
|
218
219
|
...n
|
|
219
220
|
});
|
|
220
221
|
}
|
|
221
|
-
var U =
|
|
222
|
+
var U = ee(t(`box-border border-0 bg-transparent py-0 font-sans no-underline hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground text-left transition-[width,height,padding] group-data-[collapsible=icon]:size-action! ${d.sidebar} data-active:font-medium peer/menu-button flex w-full items-center overflow-hidden outline-hidden group/menu-button disabled:opacity-50 aria-disabled:opacity-50 [&>span:last-child]:truncate [&_svg]:size-icon [&_svg]:shrink-0`, x), {
|
|
222
223
|
variants: {
|
|
223
224
|
variant: {
|
|
224
225
|
default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
|
|
@@ -236,9 +237,9 @@ var U = O(t(`box-border border-0 bg-transparent py-0 font-sans no-underline hove
|
|
|
236
237
|
}
|
|
237
238
|
});
|
|
238
239
|
function W({ render: e, disabled: n = !1, isActive: r = !1, variant: i = "default", size: a = "default", tooltip: o, className: s, ...c }) {
|
|
239
|
-
let { isMobile: l, state: u } =
|
|
240
|
+
let { isMobile: l, state: u } = j(), d = n || c["aria-disabled"] === !0 || c["aria-disabled"] === "true", h = O({
|
|
240
241
|
defaultTagName: "button",
|
|
241
|
-
props:
|
|
242
|
+
props: D({ className: t(U({
|
|
242
243
|
variant: i,
|
|
243
244
|
size: a
|
|
244
245
|
}), s) }, c),
|
|
@@ -249,7 +250,7 @@ function W({ render: e, disabled: n = !1, isActive: r = !1, variant: i = "defaul
|
|
|
249
250
|
size: a,
|
|
250
251
|
active: r
|
|
251
252
|
}
|
|
252
|
-
}), g =
|
|
253
|
+
}), g = d ? C.cloneElement(h, {
|
|
253
254
|
disabled: h.type !== "a" || void 0,
|
|
254
255
|
"aria-disabled": !0,
|
|
255
256
|
tabIndex: -1,
|
|
@@ -259,12 +260,12 @@ function W({ render: e, disabled: n = !1, isActive: r = !1, variant: i = "defaul
|
|
|
259
260
|
onKeyDownCapture: K,
|
|
260
261
|
onKeyUpCapture: K
|
|
261
262
|
}) : h;
|
|
262
|
-
return o ? (typeof o == "string" && (o = { children: o }), /* @__PURE__ */
|
|
263
|
-
disabled:
|
|
264
|
-
children: [/* @__PURE__ */
|
|
265
|
-
disabled:
|
|
263
|
+
return o ? (typeof o == "string" && (o = { children: o }), /* @__PURE__ */ T(f, {
|
|
264
|
+
disabled: d || u !== "collapsed" || l,
|
|
265
|
+
children: [/* @__PURE__ */ w(m, {
|
|
266
|
+
disabled: d,
|
|
266
267
|
render: g
|
|
267
|
-
}), /* @__PURE__ */
|
|
268
|
+
}), /* @__PURE__ */ w(p, {
|
|
268
269
|
side: "right",
|
|
269
270
|
align: "center",
|
|
270
271
|
...o
|
|
@@ -277,10 +278,10 @@ function G(e) {
|
|
|
277
278
|
function K(e) {
|
|
278
279
|
(e.key === "Enter" || e.key === " ") && G(e);
|
|
279
280
|
}
|
|
280
|
-
function
|
|
281
|
-
return
|
|
281
|
+
function le({ className: e, render: n, showOnHover: r = !1, ...i }) {
|
|
282
|
+
return O({
|
|
282
283
|
defaultTagName: "button",
|
|
283
|
-
props:
|
|
284
|
+
props: D({ className: t(`box-border border-0 bg-transparent font-sans text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 aspect-square w-5 rounded-inner p-0 peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1 ${d.sidebar} [&>svg]:size-icon flex items-center justify-center outline-hidden transition-transform group-data-[collapsible=icon]:hidden after:absolute after:-inset-2 md:after:hidden [&_svg]:shrink-0`, r && "peer-data-active/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-open:opacity-100 md:opacity-0", e) }, i),
|
|
284
285
|
render: n,
|
|
285
286
|
state: {
|
|
286
287
|
slot: "sidebar-menu-action",
|
|
@@ -288,34 +289,34 @@ function ce({ className: e, render: n, showOnHover: r = !1, ...i }) {
|
|
|
288
289
|
}
|
|
289
290
|
});
|
|
290
291
|
}
|
|
291
|
-
function
|
|
292
|
-
return /* @__PURE__ */
|
|
292
|
+
function ue({ className: e, ...n }) {
|
|
293
|
+
return /* @__PURE__ */ w("div", {
|
|
293
294
|
"data-slot": "sidebar-menu-badge",
|
|
294
295
|
"data-sidebar": "menu-badge",
|
|
295
296
|
className: t("text-sidebar-foreground peer-hover/menu-button:text-sidebar-accent-foreground peer-data-active/menu-button:text-sidebar-accent-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 rounded-inner px-space-xs text-xs font-medium peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1 flex items-center justify-center tabular-nums select-none group-data-[collapsible=icon]:hidden", e),
|
|
296
297
|
...n
|
|
297
298
|
});
|
|
298
299
|
}
|
|
299
|
-
function
|
|
300
|
-
return /* @__PURE__ */
|
|
300
|
+
function de({ className: e, ...n }) {
|
|
301
|
+
return /* @__PURE__ */ w("ul", {
|
|
301
302
|
"data-slot": "sidebar-menu-sub",
|
|
302
303
|
"data-sidebar": "menu-sub",
|
|
303
304
|
className: t("m-0 p-0 list-none border-sidebar-border mx-space-lg translate-x-px gap-space-xs border-l px-row-x py-row-y group-data-[collapsible=icon]:hidden flex min-w-0 flex-col", e),
|
|
304
305
|
...n
|
|
305
306
|
});
|
|
306
307
|
}
|
|
307
|
-
function
|
|
308
|
-
return /* @__PURE__ */
|
|
308
|
+
function fe({ className: e, ...n }) {
|
|
309
|
+
return /* @__PURE__ */ w("li", {
|
|
309
310
|
"data-slot": "sidebar-menu-sub-item",
|
|
310
311
|
"data-sidebar": "menu-sub-item",
|
|
311
312
|
className: t("group/menu-sub-item relative", e),
|
|
312
313
|
...n
|
|
313
314
|
});
|
|
314
315
|
}
|
|
315
|
-
function
|
|
316
|
-
return
|
|
316
|
+
function pe({ render: e, size: n = "md", isActive: r = !1, className: i, ...a }) {
|
|
317
|
+
return O({
|
|
317
318
|
defaultTagName: "a",
|
|
318
|
-
props:
|
|
319
|
+
props: D({ className: t(`text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground h-action-xs ${d.sidebar} data-[size=md]:text-sm data-[size=sm]:text-xs [&>svg]:size-icon flex -translate-x-px items-center overflow-hidden outline-hidden group-data-[collapsible=icon]:hidden disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:shrink-0`, x, i) }, a),
|
|
319
320
|
render: e,
|
|
320
321
|
state: {
|
|
321
322
|
slot: "sidebar-menu-sub-button",
|
|
@@ -330,9 +331,9 @@ function fe({ render: e, size: n = "md", isActive: r = !1, className: i, ...a })
|
|
|
330
331
|
var q = {
|
|
331
332
|
mobileTitle: "Sidebar",
|
|
332
333
|
mobileDescription: "Displays the mobile sidebar."
|
|
333
|
-
},
|
|
334
|
+
}, me = `font-medium text-sidebar-foreground transition-[background-color,color] hover:bg-sidebar-accent hover:text-sidebar-foreground ${d.sidebar} data-active:bg-sidebar-accent data-active:text-sidebar-foreground data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-foreground`, he = `font-medium text-sidebar-foreground/70 transition-[background-color,color] hover:bg-transparent hover:text-sidebar-foreground ${d.sidebar} data-active:bg-transparent data-active:text-sidebar-foreground data-[active=true]:bg-transparent data-[active=true]:text-sidebar-foreground`, J = C.createContext(void 0), Y = b, X = "group-data-[collapsible=icon]:w-shell-sidebar-icon-padded";
|
|
334
335
|
function Z(e) {
|
|
335
|
-
return typeof e == "string" || typeof e == "number" || typeof e == "bigint" ? /* @__PURE__ */
|
|
336
|
+
return typeof e == "string" || typeof e == "number" || typeof e == "bigint" ? /* @__PURE__ */ w(l, {
|
|
336
337
|
tag: "span",
|
|
337
338
|
size: "inherit",
|
|
338
339
|
weight: "medium",
|
|
@@ -342,7 +343,7 @@ function Z(e) {
|
|
|
342
343
|
}) : e;
|
|
343
344
|
}
|
|
344
345
|
function Q(e) {
|
|
345
|
-
return typeof e == "string" || typeof e == "number" || typeof e == "bigint" ? /* @__PURE__ */
|
|
346
|
+
return typeof e == "string" || typeof e == "number" || typeof e == "bigint" ? /* @__PURE__ */ w(l, {
|
|
346
347
|
tag: "span",
|
|
347
348
|
size: "inherit",
|
|
348
349
|
lineHeight: "snug",
|
|
@@ -350,92 +351,92 @@ function Q(e) {
|
|
|
350
351
|
children: e
|
|
351
352
|
}) : e;
|
|
352
353
|
}
|
|
353
|
-
function
|
|
354
|
+
function ge(e) {
|
|
354
355
|
return e && (typeof e == "string" ? { children: Q(e) } : {
|
|
355
356
|
...e,
|
|
356
357
|
children: Q(e.children)
|
|
357
358
|
});
|
|
358
359
|
}
|
|
359
|
-
function
|
|
360
|
+
function _e(e) {
|
|
360
361
|
return e === "sm" ? "h-action-sm group-data-[collapsible=icon]:size-action-sm!" : e === "lg" ? "h-action-lg group-data-[collapsible=icon]:size-action-lg!" : "h-action group-data-[collapsible=icon]:size-action!";
|
|
361
362
|
}
|
|
362
|
-
function
|
|
363
|
-
return /* @__PURE__ */
|
|
363
|
+
function ve({ className: e, style: n, menuDensity: r, ...i }) {
|
|
364
|
+
return /* @__PURE__ */ w(J.Provider, {
|
|
364
365
|
value: r,
|
|
365
|
-
children: /* @__PURE__ */
|
|
366
|
+
children: /* @__PURE__ */ w(ae, {
|
|
366
367
|
className: t("sidebar-provider--component shell-sidebar-vars", e),
|
|
367
368
|
style: {
|
|
368
369
|
"--sidebar-width": "var(--shell-sidebar-width)",
|
|
369
|
-
"--sidebar-width-icon": "
|
|
370
|
+
"--sidebar-width-icon": "var(--shell-sidebar-width-icon)",
|
|
370
371
|
...n
|
|
371
372
|
},
|
|
372
373
|
...i
|
|
373
374
|
})
|
|
374
375
|
});
|
|
375
376
|
}
|
|
376
|
-
function
|
|
377
|
-
let { isMobile: v, state: y, openMobile: b, setOpenMobile: x } =
|
|
378
|
-
return l === "none" ? /* @__PURE__ */
|
|
377
|
+
function ye({ side: n = "left", variant: c = "sidebar", collapsible: l = "offcanvas", contained: u = !1, className: d, surfaceClassName: f, rootClassName: p, children: m, dir: h, strings: g, ..._ }) {
|
|
378
|
+
let { isMobile: v, state: y, openMobile: b, setOpenMobile: x } = j(), S = e(q, g);
|
|
379
|
+
return l === "none" ? /* @__PURE__ */ w("div", {
|
|
379
380
|
"data-slot": "sidebar",
|
|
380
381
|
dir: h,
|
|
381
382
|
className: t("sidebar--component shell-sidebar-vars flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground", f, p, d),
|
|
382
383
|
..._,
|
|
383
384
|
children: m
|
|
384
|
-
}) : v ? /* @__PURE__ */
|
|
385
|
+
}) : v ? /* @__PURE__ */ w(s, {
|
|
385
386
|
open: b,
|
|
386
387
|
onOpenChange: x,
|
|
387
|
-
children: /* @__PURE__ */
|
|
388
|
+
children: /* @__PURE__ */ T(a, {
|
|
388
389
|
dir: h,
|
|
389
390
|
"data-sidebar": "sidebar",
|
|
390
391
|
"data-slot": "sidebar",
|
|
391
392
|
"data-mobile": "true",
|
|
392
393
|
className: t("sidebar--component shell-sidebar-vars data-[side=left]:w-(--sidebar-width) data-[side=right]:w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden", f, d, p),
|
|
393
|
-
style: { "--sidebar-width": "
|
|
394
|
-
side:
|
|
394
|
+
style: { "--sidebar-width": "var(--shell-sidebar-width-offcanvas)" },
|
|
395
|
+
side: n,
|
|
395
396
|
..._,
|
|
396
|
-
children: [/* @__PURE__ */
|
|
397
|
+
children: [/* @__PURE__ */ T(o, {
|
|
397
398
|
className: "sr-only",
|
|
398
|
-
children: [/* @__PURE__ */
|
|
399
|
-
}), /* @__PURE__ */
|
|
399
|
+
children: [/* @__PURE__ */ w(i, { children: S.mobileTitle }), /* @__PURE__ */ w(r, { children: S.mobileDescription })]
|
|
400
|
+
}), /* @__PURE__ */ w("div", {
|
|
400
401
|
className: "sidebar--surface flex h-full w-full flex-col",
|
|
401
402
|
children: m
|
|
402
403
|
})]
|
|
403
404
|
})
|
|
404
|
-
}) : u ? /* @__PURE__ */
|
|
405
|
+
}) : u ? /* @__PURE__ */ w("div", {
|
|
405
406
|
className: t("sidebar--component shell-sidebar-vars group peer sticky top-0 hidden h-full w-(--sidebar-width) shrink-0 text-sidebar-foreground transition-[width] duration-200 ease-linear md:block", "data-[collapsible=offcanvas]:w-0", c === "floating" || c === "inset" ? "data-[collapsible=icon]:w-shell-sidebar-icon-padded" : "data-[collapsible=icon]:w-(--sidebar-width-icon)", p),
|
|
406
407
|
"data-state": y,
|
|
407
408
|
"data-collapsible": y === "collapsed" ? l : "",
|
|
408
409
|
"data-variant": c,
|
|
409
|
-
"data-side":
|
|
410
|
+
"data-side": n,
|
|
410
411
|
"data-slot": "sidebar",
|
|
411
412
|
dir: h,
|
|
412
|
-
children: /* @__PURE__ */
|
|
413
|
-
className: t("absolute inset-y-0 z-10 hidden h-full w-(--sidebar-width) transition-[transform,width] duration-200 ease-linear md:flex",
|
|
413
|
+
children: /* @__PURE__ */ w("div", {
|
|
414
|
+
className: t("absolute inset-y-0 z-10 hidden h-full w-(--sidebar-width) transition-[transform,width] duration-200 ease-linear md:flex", n === "left" ? "left-0 group-data-[collapsible=offcanvas]:-translate-x-full" : "right-0 group-data-[collapsible=offcanvas]:translate-x-full", c === "floating" || c === "inset" ? t("px-space-md py-space-lg", X) : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)", d),
|
|
414
415
|
..._,
|
|
415
|
-
children: /* @__PURE__ */
|
|
416
|
+
children: /* @__PURE__ */ w("div", {
|
|
416
417
|
"data-sidebar": "sidebar",
|
|
417
418
|
"data-slot": "sidebar-inner",
|
|
418
419
|
className: t("sidebar--surface flex size-full flex-col bg-sidebar group-data-[variant=floating]:rounded-radius group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 group-data-[variant=floating]:ring-sidebar-border", f),
|
|
419
420
|
children: m
|
|
420
421
|
})
|
|
421
422
|
})
|
|
422
|
-
}) : /* @__PURE__ */
|
|
423
|
+
}) : /* @__PURE__ */ T("div", {
|
|
423
424
|
className: t("sidebar--component shell-sidebar-vars group peer hidden text-sidebar-foreground md:block", p),
|
|
424
425
|
"data-state": y,
|
|
425
426
|
"data-collapsible": y === "collapsed" ? l : "",
|
|
426
427
|
"data-variant": c,
|
|
427
|
-
"data-side":
|
|
428
|
+
"data-side": n,
|
|
428
429
|
"data-slot": "sidebar",
|
|
429
430
|
dir: h,
|
|
430
|
-
children: [/* @__PURE__ */
|
|
431
|
+
children: [/* @__PURE__ */ w("div", {
|
|
431
432
|
"data-slot": "sidebar-gap",
|
|
432
433
|
className: t("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear", "group-data-[collapsible=offcanvas]:w-0", "group-data-[side=right]:rotate-180", c === "floating" || c === "inset" ? X : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)")
|
|
433
|
-
}), /* @__PURE__ */
|
|
434
|
+
}), /* @__PURE__ */ w("div", {
|
|
434
435
|
"data-slot": "sidebar-container",
|
|
435
|
-
"data-side":
|
|
436
|
+
"data-side": n,
|
|
436
437
|
className: t("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear data-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)] data-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)] md:flex", c === "floating" || c === "inset" ? t("p-space-md", X) : "border-border group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l", d),
|
|
437
438
|
..._,
|
|
438
|
-
children: /* @__PURE__ */
|
|
439
|
+
children: /* @__PURE__ */ w("div", {
|
|
439
440
|
"data-sidebar": "sidebar",
|
|
440
441
|
"data-slot": "sidebar-inner",
|
|
441
442
|
className: t("sidebar--surface flex size-full flex-col bg-sidebar group-data-[variant=floating]:rounded-radius group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 group-data-[variant=floating]:ring-sidebar-border", f),
|
|
@@ -444,79 +445,79 @@ function ve({ side: s = "left", variant: c = "sidebar", collapsible: l = "offcan
|
|
|
444
445
|
})]
|
|
445
446
|
});
|
|
446
447
|
}
|
|
447
|
-
function
|
|
448
|
-
return /* @__PURE__ */
|
|
448
|
+
function be({ className: e, ...n }) {
|
|
449
|
+
return /* @__PURE__ */ w(N, {
|
|
449
450
|
className: t("sidebar-header--component gap-space-sm px-surface-xs pt-surface-xs", e),
|
|
450
451
|
...n
|
|
451
452
|
});
|
|
452
453
|
}
|
|
453
|
-
function
|
|
454
|
-
return /* @__PURE__ */
|
|
455
|
-
className: t("sidebar-footer--component gap-space-sm p-surface-xs",
|
|
454
|
+
function xe({ className: e, ...n }) {
|
|
455
|
+
return /* @__PURE__ */ w(P, {
|
|
456
|
+
className: t("sidebar-footer--component gap-space-sm p-surface-xs", g.sidebar.footer, e),
|
|
456
457
|
...n
|
|
457
458
|
});
|
|
458
459
|
}
|
|
459
|
-
function
|
|
460
|
-
return /* @__PURE__ */
|
|
460
|
+
function Se({ className: e, ...n }) {
|
|
461
|
+
return /* @__PURE__ */ w(I, {
|
|
461
462
|
className: t("sidebar-content--component min-w-0 gap-space-sm overflow-x-hidden", e),
|
|
462
463
|
...n
|
|
463
464
|
});
|
|
464
465
|
}
|
|
465
|
-
function
|
|
466
|
-
return /* @__PURE__ */
|
|
466
|
+
function Ce({ className: e, ...n }) {
|
|
467
|
+
return /* @__PURE__ */ w(L, {
|
|
467
468
|
className: t("sidebar-group--component px-surface-xs py-space-2xs", e),
|
|
468
469
|
...n
|
|
469
470
|
});
|
|
470
471
|
}
|
|
471
|
-
function
|
|
472
|
-
return /* @__PURE__ */
|
|
472
|
+
function we({ className: e, ...n }) {
|
|
473
|
+
return /* @__PURE__ */ w(B, {
|
|
473
474
|
className: t("sidebar-group-content--component", e),
|
|
474
475
|
...n
|
|
475
476
|
});
|
|
476
477
|
}
|
|
477
|
-
function
|
|
478
|
-
return /* @__PURE__ */
|
|
478
|
+
function Te({ className: e, ...n }) {
|
|
479
|
+
return /* @__PURE__ */ w(z, {
|
|
479
480
|
className: t("sidebar-group-action--component top-space-xs size-action-xs", e),
|
|
480
481
|
...n
|
|
481
482
|
});
|
|
482
483
|
}
|
|
483
|
-
function
|
|
484
|
-
return /* @__PURE__ */
|
|
484
|
+
function Ee({ className: e, ...n }) {
|
|
485
|
+
return /* @__PURE__ */ w(M, {
|
|
485
486
|
className: t("sidebar-input--component h-control-sm px-control-sm text-pxs", e),
|
|
486
487
|
...n
|
|
487
488
|
});
|
|
488
489
|
}
|
|
489
|
-
function
|
|
490
|
-
return /* @__PURE__ */
|
|
490
|
+
function De({ className: e, ...n }) {
|
|
491
|
+
return /* @__PURE__ */ w(F, {
|
|
491
492
|
className: t("sidebar-separator--component mx-space-lg", e),
|
|
492
493
|
...n
|
|
493
494
|
});
|
|
494
495
|
}
|
|
495
|
-
function
|
|
496
|
-
let i =
|
|
497
|
-
return /* @__PURE__ */
|
|
496
|
+
function Oe({ className: e, menuDensity: n, ...r }) {
|
|
497
|
+
let i = C.useContext(J), a = n ?? i, o = Y[a ?? "default"];
|
|
498
|
+
return /* @__PURE__ */ w(J.Provider, {
|
|
498
499
|
value: a,
|
|
499
|
-
children: /* @__PURE__ */
|
|
500
|
+
children: /* @__PURE__ */ w(V, {
|
|
500
501
|
className: t("sidebar-menu--component", o.gap, e),
|
|
501
502
|
...r
|
|
502
503
|
})
|
|
503
504
|
});
|
|
504
505
|
}
|
|
505
|
-
function
|
|
506
|
-
return /* @__PURE__ */
|
|
506
|
+
function ke({ className: e, ...n }) {
|
|
507
|
+
return /* @__PURE__ */ w(H, {
|
|
507
508
|
className: t("sidebar-menu-item--component", e),
|
|
508
509
|
...n
|
|
509
510
|
});
|
|
510
511
|
}
|
|
511
|
-
function
|
|
512
|
-
let r =
|
|
513
|
-
return /* @__PURE__ */
|
|
512
|
+
function Ae({ className: e, ...n }) {
|
|
513
|
+
let r = C.useContext(J) ?? "default";
|
|
514
|
+
return /* @__PURE__ */ w(le, {
|
|
514
515
|
className: t("sidebar-menu-action--component size-action-xs right-auto end-space-2xs! top-action-center! -translate-y-1/2 peer-data-[size=sm]/menu-button:top-action-sm-center! peer-data-[size=lg]/menu-button:top-action-lg-center!", r === "comfortable" ? "peer-data-[sidebar=menu-sub-button]/menu-sub-button:top-action-sm-center!" : "peer-data-[sidebar=menu-sub-button]/menu-sub-button:top-action-xs-center!", e),
|
|
515
516
|
...n
|
|
516
517
|
});
|
|
517
518
|
}
|
|
518
|
-
function
|
|
519
|
-
let o = typeof i == "string" || typeof i == "number" || typeof i == "bigint" ? /* @__PURE__ */
|
|
519
|
+
function je({ className: e, inline: n = !1, size: r = "md", children: i, ...a }) {
|
|
520
|
+
let o = typeof i == "string" || typeof i == "number" || typeof i == "bigint" ? /* @__PURE__ */ w(l, {
|
|
520
521
|
tag: "span",
|
|
521
522
|
size: "xxs",
|
|
522
523
|
weight: "semibold",
|
|
@@ -524,95 +525,95 @@ function ke({ className: e, inline: n = !1, size: r = "md", children: i, ...a })
|
|
|
524
525
|
className: "text-inherit tabular-nums",
|
|
525
526
|
children: i
|
|
526
527
|
}) : i;
|
|
527
|
-
return /* @__PURE__ */
|
|
528
|
+
return /* @__PURE__ */ w(ue, {
|
|
528
529
|
className: t("sidebar-menu-badge--component shrink-0 text-sidebar-foreground", r === "sm" ? "h-4 min-w-4" : r === "lg" ? "h-6 min-w-6" : "h-5 min-w-5", n ? "static ms-auto translate-y-0" : "top-action-center! -translate-y-1/2 peer-data-[size=sm]/menu-button:top-action-sm-center! peer-data-[size=lg]/menu-button:top-action-lg-center!", e),
|
|
529
530
|
...a,
|
|
530
531
|
children: o
|
|
531
532
|
});
|
|
532
533
|
}
|
|
533
|
-
function
|
|
534
|
+
function Me({ className: e, showIcon: n = !1, style: r, width: i, ...a }) {
|
|
534
535
|
let o = i ?? "72%";
|
|
535
|
-
return /* @__PURE__ */
|
|
536
|
+
return /* @__PURE__ */ T("div", {
|
|
536
537
|
"data-slot": "sidebar-menu-skeleton",
|
|
537
538
|
"data-sidebar": "menu-skeleton",
|
|
538
539
|
className: t("sidebar-menu-skeleton--component flex h-action items-center gap-space-md rounded-inner px-control-sm", e),
|
|
539
540
|
style: r,
|
|
540
541
|
...a,
|
|
541
|
-
children: [n ? /* @__PURE__ */
|
|
542
|
+
children: [n ? /* @__PURE__ */ w(_, {
|
|
542
543
|
className: "size-icon rounded-radius-sm",
|
|
543
544
|
"data-sidebar": "menu-skeleton-icon"
|
|
544
|
-
}) : null, /* @__PURE__ */
|
|
545
|
+
}) : null, /* @__PURE__ */ w(_, {
|
|
545
546
|
className: "h-icon-sm flex-1",
|
|
546
547
|
"data-sidebar": "menu-skeleton-text",
|
|
547
548
|
style: { maxWidth: o }
|
|
548
549
|
})]
|
|
549
550
|
});
|
|
550
551
|
}
|
|
551
|
-
function
|
|
552
|
-
let r =
|
|
553
|
-
return /* @__PURE__ */
|
|
554
|
-
className: t("sidebar-menu-sub--component border-l-0 border-s! border-sidebar-border",
|
|
552
|
+
function Ne({ className: e, ...n }) {
|
|
553
|
+
let r = C.useContext(J) ?? "default";
|
|
554
|
+
return /* @__PURE__ */ w(de, {
|
|
555
|
+
className: t("sidebar-menu-sub--component border-l-0 border-s! border-sidebar-border", S, Y[r].childGap, e),
|
|
555
556
|
...n
|
|
556
557
|
});
|
|
557
558
|
}
|
|
558
|
-
function
|
|
559
|
-
return /* @__PURE__ */
|
|
559
|
+
function Pe({ className: e, ...n }) {
|
|
560
|
+
return /* @__PURE__ */ w(fe, {
|
|
560
561
|
className: t("sidebar-menu-sub-item--component", e),
|
|
561
562
|
...n
|
|
562
563
|
});
|
|
563
564
|
}
|
|
564
|
-
function
|
|
565
|
-
return /* @__PURE__ */
|
|
565
|
+
function $({ className: e, ...n }) {
|
|
566
|
+
return /* @__PURE__ */ w(ce, {
|
|
566
567
|
className: t("sidebar-inset--component", e),
|
|
567
568
|
...n
|
|
568
569
|
});
|
|
569
570
|
}
|
|
570
|
-
function
|
|
571
|
-
return /* @__PURE__ */
|
|
571
|
+
function Fe({ className: e, ...n }) {
|
|
572
|
+
return /* @__PURE__ */ w(se, {
|
|
572
573
|
className: t("sidebar-rail--component", e),
|
|
573
574
|
...n
|
|
574
575
|
});
|
|
575
576
|
}
|
|
576
|
-
function
|
|
577
|
-
return /* @__PURE__ */
|
|
577
|
+
function Ie({ className: e, ...n }) {
|
|
578
|
+
return /* @__PURE__ */ w(oe, {
|
|
578
579
|
className: t("sidebar-trigger--component size-action-sm active:translate-y-0!", e),
|
|
579
580
|
...n
|
|
580
581
|
});
|
|
581
582
|
}
|
|
582
|
-
function
|
|
583
|
-
let
|
|
584
|
-
return /* @__PURE__ */
|
|
585
|
-
className: t("sidebar-menu-button--component group-data-[collapsible=icon]:size-action-sm! group-data-[collapsible=icon]:p-space-sm!",
|
|
586
|
-
render:
|
|
587
|
-
size:
|
|
588
|
-
tooltip:
|
|
589
|
-
isActive:
|
|
590
|
-
...
|
|
591
|
-
children: Z(
|
|
583
|
+
function Le({ className: e, render: r, size: i, tooltip: a, children: o, active: s = !1, ...c }) {
|
|
584
|
+
let l = a && !r ? /* @__PURE__ */ w("button", { type: "button" }) : r, u = ge(a), d = C.useContext(J), f = i ?? (d ? Y[d].size : "md"), p = f === "md" ? "default" : f;
|
|
585
|
+
return /* @__PURE__ */ w(W, {
|
|
586
|
+
className: t("sidebar-menu-button--component group-data-[collapsible=icon]:size-action-sm! group-data-[collapsible=icon]:p-space-sm!", x, "group-has-data-[sidebar=menu-action]/menu-item:px-control-sm!", n.menuActionReserve.item, _e(f), me, e),
|
|
587
|
+
render: l,
|
|
588
|
+
size: p,
|
|
589
|
+
tooltip: u,
|
|
590
|
+
isActive: s,
|
|
591
|
+
...c,
|
|
592
|
+
children: Z(o)
|
|
592
593
|
});
|
|
593
594
|
}
|
|
594
|
-
function
|
|
595
|
-
let
|
|
596
|
-
return /* @__PURE__ */
|
|
597
|
-
className: t("sidebar-menu-sub-button--component peer/menu-sub-button translate-x-0
|
|
598
|
-
isActive:
|
|
599
|
-
...
|
|
600
|
-
children: Z(
|
|
595
|
+
function Re({ className: e, children: r, active: i = !1, ...a }) {
|
|
596
|
+
let o = C.useContext(J) ?? "default";
|
|
597
|
+
return /* @__PURE__ */ w(pe, {
|
|
598
|
+
className: t("sidebar-menu-sub-button--component peer/menu-sub-button translate-x-0", n.menuActionReserve.subItem, x, Y[o].childHeight, he, e),
|
|
599
|
+
isActive: i,
|
|
600
|
+
...a,
|
|
601
|
+
children: Z(r)
|
|
601
602
|
});
|
|
602
603
|
}
|
|
603
|
-
function
|
|
604
|
-
let i = typeof n == "string" || typeof n == "number" || typeof n == "bigint" ? /* @__PURE__ */
|
|
605
|
-
return /* @__PURE__ */
|
|
604
|
+
function ze({ className: e, children: n, ...r }) {
|
|
605
|
+
let i = typeof n == "string" || typeof n == "number" || typeof n == "bigint" ? /* @__PURE__ */ w(u, { children: n }) : n;
|
|
606
|
+
return /* @__PURE__ */ w(R, {
|
|
606
607
|
className: t("sidebar-group-label--component h-action-sm px-control-sm group-data-[collapsible=icon]:pointer-events-none", e),
|
|
607
608
|
...r,
|
|
608
609
|
children: i
|
|
609
610
|
});
|
|
610
611
|
}
|
|
611
|
-
var
|
|
612
|
-
function
|
|
613
|
-
return
|
|
612
|
+
var Be = j;
|
|
613
|
+
function Ve() {
|
|
614
|
+
return C.useContext(J);
|
|
614
615
|
}
|
|
615
616
|
//#endregion
|
|
616
|
-
export {
|
|
617
|
+
export { Ie as C, j as D, Ve as E, De as S, Be as T, Ne as _, Te as a, ve as b, be as c, Oe as d, Ae as f, Me as g, ke as h, Ce as i, Ee as l, Le as m, Se as n, we as o, je as p, xe as r, ze as s, ye as t, $ as u, Re as v, q as w, Fe as x, Pe as y };
|
|
617
618
|
|
|
618
|
-
//# sourceMappingURL=sidebar-
|
|
619
|
+
//# sourceMappingURL=sidebar-Db6gkh3U.js.map
|