admin-ui-starter-kit 0.4.2 → 0.4.4
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/.agents/skills/admin-ui-consumer-migration/SKILL.md +10 -0
- package/.agents/skills/admin-ui-consumer-migration/references/actions-service.md +236 -0
- package/.agents/skills/component-library-rules/SKILL.md +7 -1
- package/.agents/skills/component-library-rules/references/base-wrapper.md +24 -4
- package/.agents/skills/component-library-rules/references/components/INDEX.json +4 -3
- package/.agents/skills/component-library-rules/references/components/INDEX.md +4 -3
- package/.agents/skills/component-library-rules/references/components/ui__inputs.md +117 -18
- package/.agents/skills/component-library-rules/references/components/ui__layout-primitives.md +71 -0
- package/.agents/skills/component-library-rules/references/components/ui__menus.md +125 -43
- package/.agents/skills/component-library-rules/references/components/ui__overlays.md +117 -42
- package/AGENTS.md +7 -4
- package/CHANGELOG.md +26 -1
- package/COMPONENT_SELECTION.md +10 -1
- package/INTEGRATION.md +47 -0
- package/README.md +62 -5
- package/dist/_shared/accordion-Df1XrCDv.cjs +2 -0
- package/dist/_shared/accordion-Df1XrCDv.cjs.map +1 -0
- package/dist/_shared/accordion-Rzi9wEl6.js +130 -0
- package/dist/_shared/accordion-Rzi9wEl6.js.map +1 -0
- package/dist/_shared/action-menu-CrOJ63Q9.js +96 -0
- package/dist/_shared/action-menu-CrOJ63Q9.js.map +1 -0
- package/dist/_shared/action-menu-D9OowHKx.cjs +2 -0
- package/dist/_shared/action-menu-D9OowHKx.cjs.map +1 -0
- package/dist/_shared/ai-artifact-D4EjKoq6.cjs +3 -0
- package/dist/_shared/ai-artifact-D4EjKoq6.cjs.map +1 -0
- package/dist/_shared/ai-artifact-nlOrSeqT.js +1099 -0
- package/dist/_shared/ai-artifact-nlOrSeqT.js.map +1 -0
- package/dist/_shared/auth-C5HawWvp.cjs +2 -0
- package/dist/_shared/auth-C5HawWvp.cjs.map +1 -0
- package/dist/_shared/auth-DnMEJXP9.js +643 -0
- package/dist/_shared/auth-DnMEJXP9.js.map +1 -0
- package/dist/_shared/badge-6WYAMJwA.js +108 -0
- package/dist/_shared/badge-6WYAMJwA.js.map +1 -0
- package/dist/_shared/badge-CBof1rbF.cjs +2 -0
- package/dist/_shared/badge-CBof1rbF.cjs.map +1 -0
- package/dist/_shared/button-BGKY8UY0.js +173 -0
- package/dist/_shared/button-BGKY8UY0.js.map +1 -0
- package/dist/_shared/button-BI347RlM.cjs +2 -0
- package/dist/_shared/button-BI347RlM.cjs.map +1 -0
- package/dist/_shared/button-DEFoa7-c.cjs +2 -0
- package/dist/_shared/button-DEFoa7-c.cjs.map +1 -0
- package/dist/_shared/button-DlqryxqA.js +46 -0
- package/dist/_shared/button-DlqryxqA.js.map +1 -0
- package/dist/_shared/buttons-PL-TGJ32.js +143 -0
- package/dist/_shared/buttons-PL-TGJ32.js.map +1 -0
- package/dist/_shared/buttons-kVvSD_oI.cjs +2 -0
- package/dist/_shared/buttons-kVvSD_oI.cjs.map +1 -0
- package/dist/_shared/combobox-B4KmDZK0.cjs +2 -0
- package/dist/_shared/combobox-B4KmDZK0.cjs.map +1 -0
- package/dist/_shared/combobox-YUGi3xSc.js +810 -0
- package/dist/_shared/combobox-YUGi3xSc.js.map +1 -0
- package/dist/_shared/comments-GzXdwpq4.js +952 -0
- package/dist/_shared/comments-GzXdwpq4.js.map +1 -0
- package/dist/_shared/comments-Zj_foV1V.cjs +2 -0
- package/dist/_shared/comments-Zj_foV1V.cjs.map +1 -0
- package/dist/_shared/date-picker-Dl91BM3D.js +1361 -0
- package/dist/_shared/date-picker-Dl91BM3D.js.map +1 -0
- package/dist/_shared/date-picker-zFOqtmAS.cjs +2 -0
- package/dist/_shared/date-picker-zFOqtmAS.cjs.map +1 -0
- package/dist/_shared/date-pickers-BBydcIjN.cjs +2 -0
- package/dist/_shared/date-pickers-BBydcIjN.cjs.map +1 -0
- package/dist/_shared/date-pickers-D2OsgV4V.js +330 -0
- package/dist/_shared/date-pickers-D2OsgV4V.js.map +1 -0
- package/dist/_shared/dialog-CCN4tjU9.js +101 -0
- package/dist/_shared/dialog-CCN4tjU9.js.map +1 -0
- package/dist/_shared/dialog-Dd0ENSrU.cjs +2 -0
- package/dist/_shared/dialog-Dd0ENSrU.cjs.map +1 -0
- package/dist/_shared/display-Dhy5ogxC.cjs +2 -0
- package/dist/_shared/display-Dhy5ogxC.cjs.map +1 -0
- package/dist/_shared/display-NBtWdAMl.js +1154 -0
- package/dist/_shared/display-NBtWdAMl.js.map +1 -0
- package/dist/_shared/forms-BweX9Lm8.cjs +2 -0
- package/dist/_shared/forms-BweX9Lm8.cjs.map +1 -0
- package/dist/_shared/forms-L1hyNKpZ.js +3430 -0
- package/dist/_shared/forms-L1hyNKpZ.js.map +1 -0
- package/dist/_shared/header-BSBPtGn4.cjs +2 -0
- package/dist/_shared/header-BSBPtGn4.cjs.map +1 -0
- package/dist/_shared/header-No6GSp4R.js +360 -0
- package/dist/_shared/header-No6GSp4R.js.map +1 -0
- package/dist/_shared/hooks-BkXvZ4py.js +118 -0
- package/dist/_shared/hooks-BkXvZ4py.js.map +1 -0
- package/dist/_shared/hooks-D3SbLBRk.cjs +2 -0
- package/dist/_shared/hooks-D3SbLBRk.cjs.map +1 -0
- package/dist/_shared/mentions-CA1Ka_Bv.cjs +2 -0
- package/dist/_shared/mentions-CA1Ka_Bv.cjs.map +1 -0
- package/dist/_shared/mentions-CdvvLGQG.js +506 -0
- package/dist/_shared/mentions-CdvvLGQG.js.map +1 -0
- package/dist/_shared/metadata-Ckcmar8d.js +235 -0
- package/dist/_shared/metadata-Ckcmar8d.js.map +1 -0
- package/dist/_shared/metadata-DamdYVZL.cjs +2 -0
- package/dist/_shared/metadata-DamdYVZL.cjs.map +1 -0
- package/dist/_shared/navigation-BemwPPC8.cjs +2 -0
- package/dist/_shared/navigation-BemwPPC8.cjs.map +1 -0
- package/dist/_shared/navigation-DY540HB0.js +419 -0
- package/dist/_shared/navigation-DY540HB0.js.map +1 -0
- package/dist/_shared/overlays-CJs_syAu.js +648 -0
- package/dist/_shared/overlays-CJs_syAu.js.map +1 -0
- package/dist/_shared/overlays-DWFEaAog.cjs +2 -0
- package/dist/_shared/overlays-DWFEaAog.cjs.map +1 -0
- package/dist/_shared/page-Cg_gNpyK.js +262 -0
- package/dist/_shared/page-Cg_gNpyK.js.map +1 -0
- package/dist/_shared/page-CpFWQuWU.cjs +2 -0
- package/dist/_shared/page-CpFWQuWU.cjs.map +1 -0
- package/dist/_shared/rich-text-editor-B2VqNi6j.js +620 -0
- package/dist/_shared/rich-text-editor-B2VqNi6j.js.map +1 -0
- package/dist/_shared/rich-text-editor-ChE-pI3N.cjs +2 -0
- package/dist/_shared/rich-text-editor-ChE-pI3N.cjs.map +1 -0
- package/dist/_shared/sheet-BOgUA4fC.cjs +2 -0
- package/dist/_shared/sheet-BOgUA4fC.cjs.map +1 -0
- package/dist/_shared/sheet-DWQuyRRz.js +100 -0
- package/dist/_shared/sheet-DWQuyRRz.js.map +1 -0
- package/dist/_shared/sidebar-BGpi9K_Q.js +389 -0
- package/dist/_shared/sidebar-BGpi9K_Q.js.map +1 -0
- package/dist/_shared/sidebar-BTFfxmNG.cjs +2 -0
- package/dist/_shared/sidebar-BTFfxmNG.cjs.map +1 -0
- package/dist/_shared/sidebar-CC3lcvNX.cjs +2 -0
- package/dist/_shared/sidebar-CC3lcvNX.cjs.map +1 -0
- package/dist/_shared/sidebar-wmztVpnO.js +538 -0
- package/dist/_shared/sidebar-wmztVpnO.js.map +1 -0
- package/dist/_shared/smart-card-B6m7tmt0.cjs +2 -0
- package/dist/_shared/smart-card-B6m7tmt0.cjs.map +1 -0
- package/dist/_shared/smart-card-thLb85Ih.js +361 -0
- package/dist/_shared/smart-card-thLb85Ih.js.map +1 -0
- package/dist/_shared/table-BItnJ8lG.cjs +2 -0
- package/dist/_shared/table-BItnJ8lG.cjs.map +1 -0
- package/dist/_shared/table-D3349b-v.js +1189 -0
- package/dist/_shared/table-D3349b-v.js.map +1 -0
- package/dist/_shared/workspace-BGVeTeJy.js +357 -0
- package/dist/_shared/workspace-BGVeTeJy.js.map +1 -0
- package/dist/_shared/workspace-CWyzTUmE.cjs +2 -0
- package/dist/_shared/workspace-CWyzTUmE.cjs.map +1 -0
- package/dist/components/base/accordion/index.cjs +1 -1
- package/dist/components/base/accordion/index.js +1 -1
- package/dist/components/base/badge/index.cjs +1 -1
- package/dist/components/base/badge/index.js +1 -1
- package/dist/components/base/buttons/index.cjs +1 -1
- package/dist/components/base/buttons/index.js +2 -2
- package/dist/components/base/cards/index.cjs +1 -1
- package/dist/components/base/cards/index.js +1 -1
- package/dist/components/base/carousel/index.cjs +1 -1
- package/dist/components/base/carousel/index.js +1 -1
- package/dist/components/base/combobox/index.cjs +1 -1
- package/dist/components/base/combobox/index.js +1 -1
- package/dist/components/base/date-pickers/index.cjs +1 -1
- package/dist/components/base/date-pickers/index.js +2 -2
- package/dist/components/base/display/alert.d.ts +1 -1
- package/dist/components/base/display/index.cjs +1 -1
- package/dist/components/base/display/index.js +6 -6
- package/dist/components/base/display/metadata/index.cjs +1 -1
- package/dist/components/base/display/metadata/index.js +1 -1
- package/dist/components/base/event-calendar/index.cjs +1 -1
- package/dist/components/base/event-calendar/index.js +41 -41
- package/dist/components/base/forms/index.cjs +1 -1
- package/dist/components/base/forms/index.js +1 -1
- package/dist/components/base/map/index.cjs +1 -1
- package/dist/components/base/map/index.js +31 -31
- package/dist/components/base/navigation/index.cjs +1 -1
- package/dist/components/base/navigation/index.js +2 -2
- package/dist/components/base/sheet/index.cjs +1 -1
- package/dist/components/base/sheet/index.js +1 -1
- package/dist/components/base/sidebar/index.cjs +1 -1
- package/dist/components/base/sidebar/index.js +2 -2
- package/dist/components/base/sidebar/sidebar.d.ts +5 -3
- package/dist/components/base/sidebar/sidebar.d.ts.map +1 -1
- package/dist/components/base/table/index.cjs +1 -1
- package/dist/components/base/table/index.js +1 -1
- package/dist/components/composed/admin/index.cjs +1 -1
- package/dist/components/composed/admin/index.js +47 -47
- package/dist/components/composed/ai/index.cjs +1 -1
- package/dist/components/composed/ai/index.js +105 -105
- package/dist/components/composed/analytics/index.cjs +1 -1
- package/dist/components/composed/analytics/index.js +89 -89
- package/dist/components/composed/cards/index.cjs +1 -1
- package/dist/components/composed/cards/index.js +116 -116
- package/dist/components/composed/commerce/index.cjs +1 -1
- package/dist/components/composed/commerce/index.js +127 -127
- package/dist/components/composed/dark-surfaces/index.cjs +1 -1
- package/dist/components/composed/dark-surfaces/index.js +37 -37
- package/dist/components/composed/data-display/index.cjs +1 -1
- package/dist/components/composed/data-display/index.js +3 -3
- package/dist/components/composed/navigation/index.cjs +1 -1
- package/dist/components/composed/navigation/index.js +55 -55
- package/dist/components/composed/onboarding/index.cjs +1 -1
- package/dist/components/composed/onboarding/index.js +1 -1
- package/dist/components/composed/timelines/index.cjs +1 -1
- package/dist/components/composed/timelines/index.js +2 -2
- package/dist/components/features/activities/index.cjs +1 -1
- package/dist/components/features/activities/index.js +56 -56
- package/dist/components/features/ai-chat/index.cjs +2 -2
- package/dist/components/features/ai-chat/index.js +53 -53
- package/dist/components/features/card/index.cjs +1 -1
- package/dist/components/features/card/index.js +21 -21
- package/dist/components/features/comments/index.cjs +1 -1
- package/dist/components/features/comments/index.js +2 -2
- package/dist/components/features/event-log/index.cjs +1 -1
- package/dist/components/features/event-log/index.js +3 -3
- package/dist/components/features/filters/index.cjs +1 -1
- package/dist/components/features/filters/index.js +143 -143
- package/dist/components/features/global-search/index.cjs +1 -1
- package/dist/components/features/global-search/index.js +57 -57
- package/dist/components/features/kanban/index.cjs +1 -1
- package/dist/components/features/kanban/index.js +14 -14
- package/dist/components/features/media-library/index.cjs +1 -1
- package/dist/components/features/media-library/index.js +178 -178
- package/dist/components/features/mentions/index.cjs +1 -1
- package/dist/components/features/mentions/index.js +1 -1
- package/dist/components/features/overlays/alert-dialog.d.ts +1 -1
- package/dist/components/features/overlays/alert-dialog.d.ts.map +1 -1
- package/dist/components/features/overlays/drawer.d.ts +1 -1
- package/dist/components/features/overlays/drawer.d.ts.map +1 -1
- package/dist/components/features/overlays/index.cjs +1 -1
- package/dist/components/features/overlays/index.js +1 -1
- package/dist/components/features/overlays/overlays.types.d.ts +1 -0
- package/dist/components/features/overlays/overlays.types.d.ts.map +1 -1
- package/dist/components/features/products/index.cjs +1 -1
- package/dist/components/features/products/index.js +124 -124
- package/dist/components/features/rich-text-editor/index.cjs +1 -1
- package/dist/components/features/rich-text-editor/index.js +1 -1
- package/dist/components/features/schema-form/index.cjs +1 -1
- package/dist/components/features/schema-form/index.js +26 -26
- package/dist/components/features/suggestions/index.cjs +1 -1
- package/dist/components/features/suggestions/index.js +1 -1
- package/dist/components/layout/auth/index.cjs +1 -1
- package/dist/components/layout/auth/index.js +1 -1
- package/dist/components/layout/header/index.cjs +1 -1
- package/dist/components/layout/header/index.js +1 -1
- package/dist/components/layout/header/partials/header-search.d.ts.map +1 -1
- package/dist/components/layout/hooks/index.cjs +1 -1
- package/dist/components/layout/hooks/index.js +1 -1
- package/dist/components/layout/index.cjs +1 -1
- package/dist/components/layout/index.js +6 -6
- package/dist/components/layout/page/index.cjs +1 -1
- package/dist/components/layout/page/index.js +1 -1
- package/dist/components/layout/sidebar/components/sidebar-grouped-navigation.d.ts.map +1 -1
- package/dist/components/layout/sidebar/index.cjs +1 -1
- package/dist/components/layout/sidebar/index.js +2 -2
- package/dist/components/layout/workspace/index.cjs +1 -1
- package/dist/components/layout/workspace/index.js +1 -1
- package/dist/components/ui/alert-dialog.d.ts +19 -0
- package/dist/components/ui/alert-dialog.d.ts.map +1 -0
- package/dist/components/ui/alert.d.ts +1 -1
- package/dist/components/ui/aspect-ratio.d.ts +5 -0
- package/dist/components/ui/aspect-ratio.d.ts.map +1 -0
- package/dist/components/ui/badge.d.ts +1 -1
- package/dist/components/ui/button.d.ts +1 -1
- package/dist/components/ui/carousel.d.ts +29 -0
- package/dist/components/ui/carousel.d.ts.map +1 -0
- package/dist/components/ui/direction.d.ts +2 -0
- package/dist/components/ui/direction.d.ts.map +1 -0
- package/dist/components/ui/drawer.d.ts +14 -0
- package/dist/components/ui/drawer.d.ts.map +1 -0
- package/dist/components/ui/field.d.ts +25 -0
- package/dist/components/ui/field.d.ts.map +1 -0
- package/dist/components/ui/input-otp.d.ts +12 -0
- package/dist/components/ui/input-otp.d.ts.map +1 -0
- package/dist/components/ui/kbd.d.ts +4 -0
- package/dist/components/ui/kbd.d.ts.map +1 -0
- package/dist/components/ui/label.d.ts +4 -0
- package/dist/components/ui/label.d.ts.map +1 -0
- package/dist/components/ui/menubar.d.ts +30 -0
- package/dist/components/ui/menubar.d.ts.map +1 -0
- package/dist/components/ui/native-select.d.ts +9 -0
- package/dist/components/ui/native-select.d.ts.map +1 -0
- package/dist/components/ui/navigation-menu.d.ts +12 -0
- package/dist/components/ui/navigation-menu.d.ts.map +1 -0
- package/dist/components/ui/resizable.d.ts +8 -0
- package/dist/components/ui/resizable.d.ts.map +1 -0
- package/dist/services/actions/action-overlay-outlet.d.ts +4 -0
- package/dist/services/actions/action-overlay-outlet.d.ts.map +1 -0
- package/dist/services/actions/action-provider.d.ts +8 -0
- package/dist/services/actions/action-provider.d.ts.map +1 -0
- package/dist/services/actions/action-scope.d.ts +4 -0
- package/dist/services/actions/action-scope.d.ts.map +1 -0
- package/dist/services/actions/action-store.d.ts +44 -0
- package/dist/services/actions/action-store.d.ts.map +1 -0
- package/dist/services/actions/actions.strings.d.ts +3 -0
- package/dist/services/actions/actions.strings.d.ts.map +1 -0
- package/dist/services/actions/actions.types.d.ts +248 -0
- package/dist/services/actions/actions.types.d.ts.map +1 -0
- package/dist/services/actions/hooks.d.ts +8 -0
- package/dist/services/actions/hooks.d.ts.map +1 -0
- package/dist/services/actions/index.cjs +2 -0
- package/dist/services/actions/index.cjs.map +1 -0
- package/dist/services/actions/index.d.ts +8 -0
- package/dist/services/actions/index.d.ts.map +1 -0
- package/dist/services/actions/index.js +562 -0
- package/dist/services/actions/index.js.map +1 -0
- package/dist/showcase/assets/AreaChart-BYEewdc_.js +6 -0
- package/dist/showcase/assets/CSPContext-B11tftuK.js +1 -0
- package/dist/showcase/assets/CompositeItem-Duekeg4m.js +1 -0
- package/dist/showcase/assets/CompositeRoot-BgNU3T7R.js +1 -0
- package/dist/showcase/assets/DialogTrigger-9xWmoeF5.js +1 -0
- package/dist/showcase/assets/FieldItemContext-BSFHjS7g.js +1 -0
- package/dist/showcase/assets/LabelableContext-B3W_70Qk.js +1 -0
- package/dist/showcase/assets/PreviewLayout-nADJqRlP.js +1 -0
- package/dist/showcase/assets/RadioGroup-Bp1VCzxr.js +1 -0
- package/dist/showcase/assets/Separator-9PWX3shz.js +1 -0
- package/dist/showcase/assets/ToolbarRootContext-DwELw9xS.js +1 -0
- package/dist/showcase/assets/accordion-CfqHO9_z.js +171 -0
- package/dist/showcase/assets/accordion-variants-pkPHxkLW.js +1 -0
- package/dist/showcase/assets/action-menu-DFzSuDjI.js +1 -0
- package/dist/showcase/assets/activities-Bo97b2-I.js +501 -0
- package/dist/showcase/assets/activities-feed-card-D77gf27B.js +1 -0
- package/dist/showcase/assets/activity-BUlCWLI8.js +1 -0
- package/dist/showcase/assets/admin-CxTV4kZX.js +80 -0
- package/dist/showcase/assets/ai-Bym5H8bn.js +41 -0
- package/dist/showcase/assets/ai-artifact-DZVl1WmK.js +2 -0
- package/dist/showcase/assets/ai-chat-M3X5-PgT.js +568 -0
- package/dist/showcase/assets/ai-elements-DjppcMBD.js +387 -0
- package/dist/showcase/assets/ai-new-CXnrIi5S.js +167 -0
- package/dist/showcase/assets/ai-tool-call-DyMI8DqD.js +1 -0
- package/dist/showcase/assets/alert-D6Pygy2s.js +62 -0
- package/dist/showcase/assets/alert-DCrWLbEx.js +93 -0
- package/dist/showcase/assets/alert-qTNM0vld.js +1 -0
- package/dist/showcase/assets/api-key-list-CCpuHYHc.js +73 -0
- package/dist/showcase/assets/app-sidebar-CxTRNC5L.js +1 -0
- package/dist/showcase/assets/arrow-down--phuskCV.js +1 -0
- package/dist/showcase/assets/arrow-left-B__WWqyA.js +1 -0
- package/dist/showcase/assets/arrow-right-1-EvXxjB.js +1 -0
- package/dist/showcase/assets/arrow-up-lWotnmo7.js +1 -0
- package/dist/showcase/assets/arrow-up-right-IyQ3oeq0.js +1 -0
- package/dist/showcase/assets/avatar-gugtNx4D.js +57 -0
- package/dist/showcase/assets/avatar-n1nywTlx.js +1 -0
- package/dist/showcase/assets/badge-TuE-u3Hv.js +28 -0
- package/dist/showcase/assets/badge-check-CPDvpVzK.js +1 -0
- package/dist/showcase/assets/bell-DeCVddCA.js +1 -0
- package/dist/showcase/assets/bot-B_vzJEJH.js +1 -0
- package/dist/showcase/assets/box-z4O8t_K5.js +1 -0
- package/dist/showcase/assets/brain-DdKBE4Bh.js +1 -0
- package/dist/showcase/assets/brand-CfW7mgTY.js +36 -0
- package/dist/showcase/assets/breadcrumb-B4TBbKv3.js +52 -0
- package/dist/showcase/assets/breadcrumb-bF_sFVBL.js +1 -0
- package/dist/showcase/assets/breadcrumbs-CBv3EaMX.js +1 -0
- package/dist/showcase/assets/briefcase-ClqzeNt3.js +1 -0
- package/dist/showcase/assets/building-2-BQuWgjZj.js +1 -0
- package/dist/showcase/assets/button-CWKNCI82.js +44 -0
- package/dist/showcase/assets/button-group-BYhxtFwV.js +1 -0
- package/dist/showcase/assets/buttons-mBRyBw3Q.js +270 -0
- package/dist/showcase/assets/calendar-BgloJjlW.js +1 -0
- package/dist/showcase/assets/calendar-CJDWspzi.js +1 -0
- package/dist/showcase/assets/calendar-CgML2kJt.js +16 -0
- package/dist/showcase/assets/calendar-days-C0gTLVnY.js +1 -0
- package/dist/showcase/assets/camera-nIlaz4Sn.js +1 -0
- package/dist/showcase/assets/card-1ncRnRvq.js +1 -0
- package/dist/showcase/assets/card-CcgWzFB-.js +188 -0
- package/dist/showcase/assets/card-primitives-By4-RTuP.js +1 -0
- package/dist/showcase/assets/card-radio-group-DeX3qsRg.js +1 -0
- package/dist/showcase/assets/cards-DdqQr8rY.js +328 -0
- package/dist/showcase/assets/carousel-CV8ltDl8.js +449 -0
- package/dist/showcase/assets/chart-BNzHjskC.js +358 -0
- package/dist/showcase/assets/chart-column-CpTxRLEH.js +1 -0
- package/dist/showcase/assets/checkbox-CZTTm4Dv.js +1 -0
- package/dist/showcase/assets/chevron-down-LWBNHe9S.js +1 -0
- package/dist/showcase/assets/chevron-left-BsshO7nf.js +1 -0
- package/dist/showcase/assets/chevron-right-t68um2_G.js +1 -0
- package/dist/showcase/assets/chevron-up-DjhlESJB.js +1 -0
- package/dist/showcase/assets/chevrons-up-down-ZUo0Do59.js +1 -0
- package/dist/showcase/assets/circle-BL52dLr9.js +1 -0
- package/dist/showcase/assets/circle-alert-CXCt6zxc.js +1 -0
- package/dist/showcase/assets/circle-check-CbiRRw7s.js +1 -0
- package/dist/showcase/assets/circle-check-big-BSgn7lyt.js +1 -0
- package/dist/showcase/assets/circle-dot-WEOpGGJf.js +1 -0
- package/dist/showcase/assets/circle-question-mark-C9hLlsD7.js +1 -0
- package/dist/showcase/assets/circle-x-BT9TJbJC.js +1 -0
- package/dist/showcase/assets/clock-3-CfRK8ckc.js +1 -0
- package/dist/showcase/assets/clock-D-3zf0c1.js +1 -0
- package/dist/showcase/assets/code-xml-CQYKKuBU.js +1 -0
- package/dist/showcase/assets/collapsible-BC0hQvat.js +27 -0
- package/dist/showcase/assets/collapsible-CRVtVDCF.js +1 -0
- package/dist/showcase/assets/combobox-D4VYvYCT.js +696 -0
- package/dist/showcase/assets/command-CxeHT4lL.js +1 -0
- package/dist/showcase/assets/command-Do_t_Zou.js +1 -0
- package/dist/showcase/assets/comment-composer-DoFwvVlq.js +1 -0
- package/dist/showcase/assets/comment-item-CT8UbVeg.js +1 -0
- package/dist/showcase/assets/comments-CqdXrjUn.js +357 -0
- package/dist/showcase/assets/commerce-B9V2Wo_q.js +79 -0
- package/dist/showcase/assets/commerce-extras-CNT3QmAT.js +189 -0
- package/dist/showcase/assets/composite-BXLXcagx.js +1 -0
- package/dist/showcase/assets/contact-card-BLcAXepj.js +65 -0
- package/dist/showcase/assets/content-container-DJVD3ZmI.js +1 -0
- package/dist/showcase/assets/copyable-od17NrMu.js +96 -0
- package/dist/showcase/assets/course-card-CdZQr5yy.js +77 -0
- package/dist/showcase/assets/cpu-B8kRNR1R.js +1 -0
- package/dist/showcase/assets/credit-card-BYMQj03s.js +1 -0
- package/dist/showcase/assets/currency-Cxv3Cp6B.js +149 -0
- package/dist/showcase/assets/dark-surfaces-Cfp58iFb.js +90 -0
- package/dist/showcase/assets/database-DuUABvxU.js +1 -0
- package/dist/showcase/assets/date-block-E9qfY7W7.js +1 -0
- package/dist/showcase/assets/date-picker-I8BdaiiU.js +1 -0
- package/dist/showcase/assets/date-pickers-BLJaqhcS.js +73 -0
- package/dist/showcase/assets/dense-info-Bk1K_7Ww.js +106 -0
- package/dist/showcase/assets/dialog-BuatDnQ9.js +1 -0
- package/dist/showcase/assets/dialog-DCx-LydW.js +1 -0
- package/dist/showcase/assets/display-Bt7busw5.js +403 -0
- package/dist/showcase/assets/dist-BPyBHOXU.js +45 -0
- package/dist/showcase/assets/dollar-sign-qXQSS6Gh.js +1 -0
- package/dist/showcase/assets/download-B2JAmHmJ.js +1 -0
- package/dist/showcase/assets/dropdown-menu-DXT3BZLa.js +1 -0
- package/dist/showcase/assets/dropzone-BKIxDJNy.js +1 -0
- package/dist/showcase/assets/earth-7-Z3Gv2v.js +1 -0
- package/dist/showcase/assets/ellipsis-6Krb3RRW.js +1 -0
- package/dist/showcase/assets/ellipsis-vertical-DeOMIw1J.js +1 -0
- package/dist/showcase/assets/empty-BSYKaeXQ.js +1 -0
- package/dist/showcase/assets/empty-item-YElgv25f.js +49 -0
- package/dist/showcase/assets/empty-state-D-LrvnKF.js +1 -0
- package/dist/showcase/assets/empty-state-dNh1GtVU.js +188 -0
- package/dist/showcase/assets/enhanced-activities-Bw99ItYl.js +361 -0
- package/dist/showcase/assets/enhanced-combobox-CqLZmU3K.js +1 -0
- package/dist/showcase/assets/event-calendar-CcSi7g5A.js +138 -0
- package/dist/showcase/assets/event-log-2uq-eYxh.js +330 -0
- package/dist/showcase/assets/example-CTJ8AdNR.js +1 -0
- package/dist/showcase/assets/external-link-D0gqSa1q.js +1 -0
- package/dist/showcase/assets/eye-CDMCDLei.js +1 -0
- package/dist/showcase/assets/feature-announcement-BlyNck35.js +34 -0
- package/dist/showcase/assets/file-Y5EbzufX.js +1 -0
- package/dist/showcase/assets/file-text-DH1mBuPi.js +1 -0
- package/dist/showcase/assets/filters-BtHF4GSM.js +78 -0
- package/dist/showcase/assets/flag-CJ08LwLY.js +1 -0
- package/dist/showcase/assets/folder-open-DODo2pjy.js +1 -0
- package/dist/showcase/assets/form-field-CHY7jh1q.js +1 -0
- package/dist/showcase/assets/format-DYJqAuDM.js +1 -0
- package/dist/showcase/assets/forms-DgvQQXHO.js +862 -0
- package/dist/showcase/assets/frame-CdKicP4A.js +167 -0
- package/dist/showcase/assets/getPseudoElementBounds-D9-Hr3mO.js +1 -0
- package/dist/showcase/assets/gift-DD8O7cld.js +1 -0
- package/dist/showcase/assets/giftcard-cards-Dp9eYodY.js +85 -0
- package/dist/showcase/assets/git-branch-DZq1Vo2G.js +1 -0
- package/dist/showcase/assets/global-search-BqDotXql.js +215 -0
- package/dist/showcase/assets/global-search-PH6LXqZw.js +1 -0
- package/dist/showcase/assets/globe-mRTwrUxM.js +1 -0
- package/dist/showcase/assets/gradient-card-CaL88YKv.js +58 -0
- package/dist/showcase/assets/hash-DuqvHQHv.js +1 -0
- package/dist/showcase/assets/header-CiNgDop3.js +1 -0
- package/dist/showcase/assets/header-notifications-B9XMBsK_.js +1 -0
- package/dist/showcase/assets/heart-DsGJfnDx.js +1 -0
- package/dist/showcase/assets/house-B504aFIP.js +1 -0
- package/dist/showcase/assets/icon-badge-DMNu8xb5.js +1 -0
- package/dist/showcase/assets/image-C3DaMxmn.js +1 -0
- package/dist/showcase/assets/inbox-BWKQMLMx.js +1 -0
- package/dist/showcase/assets/index-DN3tqopz.css +2 -0
- package/dist/showcase/assets/index-DaYVSqKu.js +10 -0
- package/dist/showcase/assets/inertValue-DrtTkMGx.js +1 -0
- package/dist/showcase/assets/info-_FrGoCay.js +1 -0
- package/dist/showcase/assets/inline-stat-BYu-tiUU.js +1 -0
- package/dist/showcase/assets/input-C96HMHWR.js +1 -0
- package/dist/showcase/assets/input-fMPi7XxI.js +1 -0
- package/dist/showcase/assets/input-group-BZnSgFCn.js +47 -0
- package/dist/showcase/assets/input-group-CVONNP3T.js +1 -0
- package/dist/showcase/assets/inputs-Blh0LJ8-.js +155 -0
- package/dist/showcase/assets/invoice-header-Bpo4iwX3.js +36 -0
- package/dist/showcase/assets/invoice-items-OVIrbG0k.js +36 -0
- package/dist/showcase/assets/invoice-mini-CaOMTiUO.js +14 -0
- package/dist/showcase/assets/invoice-table-BXd_HhUg.js +30 -0
- package/dist/showcase/assets/isSameDay-NBVO9AKF.js +1 -0
- package/dist/showcase/assets/isToday-Bk5HMXWn.js +1 -0
- package/dist/showcase/assets/italic-BOv5bW4H.js +1 -0
- package/dist/showcase/assets/item-B4rdcVVp.js +134 -0
- package/dist/showcase/assets/item-BVt0zZ12.js +1 -0
- package/dist/showcase/assets/item-C4Xk3DC1.js +1 -0
- package/dist/showcase/assets/kanban-BXbelelR.js +186 -0
- package/dist/showcase/assets/label-Cv6wotdv.js +1 -0
- package/dist/showcase/assets/languages-BofyvcCF.js +1 -0
- package/dist/showcase/assets/layers-DJK0t5px.js +1 -0
- package/dist/showcase/assets/layout-app-shell-D_yMonSl.js +608 -0
- package/dist/showcase/assets/layout-auth-BTvSTwUz.js +754 -0
- package/dist/showcase/assets/layout-containers-PMuo__2O.js +101 -0
- package/dist/showcase/assets/layout-header-DQ3zeCHz.js +170 -0
- package/dist/showcase/assets/layout-page-CbvWdHrK.js +122 -0
- package/dist/showcase/assets/layout-primitives-6nsFFIdE.js +34 -0
- package/dist/showcase/assets/layout-sidebar-CKqeVCSY.js +224 -0
- package/dist/showcase/assets/layout-users-Cypq-42s.js +117 -0
- package/dist/showcase/assets/layout-workspace-DiRR8vDv.js +183 -0
- package/dist/showcase/assets/lock-DXmvLEEx.js +1 -0
- package/dist/showcase/assets/lock-keyhole-Cu6M-jjE.js +1 -0
- package/dist/showcase/assets/mail-CXVFHkzh.js +1 -0
- package/dist/showcase/assets/mail-check-BNEu3j2a.js +1 -0
- package/dist/showcase/assets/map-DnE1pFCQ.js +124 -0
- package/dist/showcase/assets/map-pin-CpOVa8IH.js +1 -0
- package/dist/showcase/assets/media-library-C-KfEvm4.js +695 -0
- package/dist/showcase/assets/mention-inline-suggestions-DlmslsfR.js +1 -0
- package/dist/showcase/assets/mentions-C8ZdNFuC.js +138 -0
- package/dist/showcase/assets/menus-B8yUL75K.js +165 -0
- package/dist/showcase/assets/message-square-DNOTaOFs.js +1 -0
- package/dist/showcase/assets/metadata-list-BQAanxM-.js +1 -0
- package/dist/showcase/assets/metadata-list-DL9qgDAp.js +288 -0
- package/dist/showcase/assets/metric-CYi09Ltx.js +1 -0
- package/dist/showcase/assets/metric-bar-CQH1z8T3.js +1 -0
- package/dist/showcase/assets/metric-grid-H1ixqMCI.js +1 -0
- package/dist/showcase/assets/metric-trend-chip-BBzWzFZ-.js +1 -0
- package/dist/showcase/assets/metrics-analytics-bar-C7Z2ITl4.js +44 -0
- package/dist/showcase/assets/metrics-analytics-cards-CZZSWiMn.js +50 -0
- package/dist/showcase/assets/metrics-comparison-BPqz8k30.js +76 -0
- package/dist/showcase/assets/metrics-heatmap-C3NYZAfx.js +27 -0
- package/dist/showcase/assets/metrics-inline-badge-RjHfm7um.js +17 -0
- package/dist/showcase/assets/metrics-kpi-row-DnBjyDH4.js +31 -0
- package/dist/showcase/assets/metrics-micro-grid-CKn405qb.js +42 -0
- package/dist/showcase/assets/metrics-overview-D8YGtdrh.js +192 -0
- package/dist/showcase/assets/metrics-stat-cards-Dxh6cAha.js +54 -0
- package/dist/showcase/assets/minus-20OTSSxf.js +1 -0
- package/dist/showcase/assets/money-display-BoiAMxH8.js +1 -0
- package/dist/showcase/assets/month-year-picker-Bl59Ygq9.js +1 -0
- package/dist/showcase/assets/navigation-B8d2CDU6.js +90 -0
- package/dist/showcase/assets/navigation-D16JX3kL.js +230 -0
- package/dist/showcase/assets/navigation-extras-Dm83uT6i.js +43 -0
- package/dist/showcase/assets/onboarding-checklist-DznDpP9M.js +119 -0
- package/dist/showcase/assets/overlays-CzlSqbFz.js +408 -0
- package/dist/showcase/assets/overlays-DUFqbkb9.js +159 -0
- package/dist/showcase/assets/package-BCXIwEPz.js +1 -0
- package/dist/showcase/assets/package-check-Ol-Cw3j-.js +1 -0
- package/dist/showcase/assets/page-action-button-DpzdSYvw.js +1 -0
- package/dist/showcase/assets/page-header-B_b7SqW8.js +1 -0
- package/dist/showcase/assets/pagination-BPDQo9Dl.js +1 -0
- package/dist/showcase/assets/pagination-PvkEX0qs.js +42 -0
- package/dist/showcase/assets/paperclip-CznEsmLN.js +1 -0
- package/dist/showcase/assets/password-input-CWMY5q3b.js +1 -0
- package/dist/showcase/assets/pencil-Cl9qi90g.js +1 -0
- package/dist/showcase/assets/phone-DbvK_QQJ.js +1 -0
- package/dist/showcase/assets/plus-CO8t66Yo.js +1 -0
- package/dist/showcase/assets/popover-3QIVx9lU.js +1 -0
- package/dist/showcase/assets/popover-Cyg9oYIU.js +1 -0
- package/dist/showcase/assets/popover-menu-DJPHeIL1.js +1 -0
- package/dist/showcase/assets/products-WsU-qdMz.js +407 -0
- package/dist/showcase/assets/progress-C61sf-qt.js +1 -0
- package/dist/showcase/assets/progress-PvTl8Fgf.js +18 -0
- package/dist/showcase/assets/props-table-C8la6vcG.js +1 -0
- package/dist/showcase/assets/props.generated-vFrhDrth.json +38618 -0
- package/dist/showcase/assets/quote-N1_lRDnX.js +1 -0
- package/dist/showcase/assets/receipt-C6a_WyLu.js +1 -0
- package/dist/showcase/assets/receipt-text-CDOh8FAv.js +1 -0
- package/dist/showcase/assets/refresh-cw-D4-ECZ1x.js +1 -0
- package/dist/showcase/assets/resolveAriaLabelledBy-iFo8AzEr.js +1 -0
- package/dist/showcase/assets/resolveValueLabel-DqAP3zJd.js +1 -0
- package/dist/showcase/assets/rich-text-editor-CU0IZpwV.js +143 -0
- package/dist/showcase/assets/rich-text-editor-DCU7mMoO.js +124 -0
- package/dist/showcase/assets/rotate-ccw-Dd5zEmr7.js +1 -0
- package/dist/showcase/assets/save-DDmFSQli.js +1 -0
- package/dist/showcase/assets/schema-form-B7naqMvv.js +325 -0
- package/dist/showcase/assets/scroll-area-CdaYm4UK.js +32 -0
- package/dist/showcase/assets/scroll-area-DwWSHYHB.js +1 -0
- package/dist/showcase/assets/select-CNzpb5ug.js +1 -0
- package/dist/showcase/assets/select-DBXZ_Wzf.js +1 -0
- package/dist/showcase/assets/send-eDm7YMmA.js +1 -0
- package/dist/showcase/assets/separator-4IC9ED7s.js +1 -0
- package/dist/showcase/assets/separator-DPGDsZpG.js +28 -0
- package/dist/showcase/assets/settings-IANZGo2i.js +1 -0
- package/dist/showcase/assets/sheet-2oCce5ae.js +1 -0
- package/dist/showcase/assets/shield-CDZhhvFW.js +1 -0
- package/dist/showcase/assets/shield-alert-5hL3sdf3.js +1 -0
- package/dist/showcase/assets/shield-check-CaO2dhVS.js +1 -0
- package/dist/showcase/assets/shopping-bag-Bt3iK-Bv.js +1 -0
- package/dist/showcase/assets/sidebar-Cds60-PS.js +1 -0
- package/dist/showcase/assets/sidebar.context-CdH_DH9M.js +1 -0
- package/dist/showcase/assets/skeleton-2HajJKO4.js +29 -0
- package/dist/showcase/assets/skeleton-CGEJwPdD.js +1 -0
- package/dist/showcase/assets/slider-BjQViBR0.js +1 -0
- package/dist/showcase/assets/sliders-horizontal-C3JH5WQu.js +1 -0
- package/dist/showcase/assets/smart-card-CHouYi8U.js +1 -0
- package/dist/showcase/assets/sonner-Cog559j7.js +22 -0
- package/dist/showcase/assets/sortable.esm-hUEKsxpQ.js +5 -0
- package/dist/showcase/assets/sparkles-B18eTHVN.js +1 -0
- package/dist/showcase/assets/spinner-BSI97i4D.js +1 -0
- package/dist/showcase/assets/spinner-D0WhVyye.js +30 -0
- package/dist/showcase/assets/spinner-DQmJ7k9y.js +49 -0
- package/dist/showcase/assets/square-pen-CLyDWdhj.js +1 -0
- package/dist/showcase/assets/stacked-avatars-ECnU27uV.js +1 -0
- package/dist/showcase/assets/star-C3mhkpSK.js +1 -0
- package/dist/showcase/assets/startOfDay-ECIxhJGC.js +1 -0
- package/dist/showcase/assets/stringifyLocale-CkHjdQTJ.js +1 -0
- package/dist/showcase/assets/styles-CDD7mDye.js +1 -0
- package/dist/showcase/assets/suggestions-DOW6NBJp.js +126 -0
- package/dist/showcase/assets/switch-D59YKmf6.js +1 -0
- package/dist/showcase/assets/switch-NICmdoPn.js +1 -0
- package/dist/showcase/assets/sync-B8nBZXQ9.js +107 -0
- package/dist/showcase/assets/table-CckompuR.js +382 -0
- package/dist/showcase/assets/table-DtA4-Q0p.js +1 -0
- package/dist/showcase/assets/table-actions-DdoPJTMy.js +1 -0
- package/dist/showcase/assets/tabs-BrC_HxL_.js +1 -0
- package/dist/showcase/assets/tabs-UVxr80vY.js +19 -0
- package/dist/showcase/assets/tags-input-iDfvhzZD.js +1 -0
- package/dist/showcase/assets/text-button-DHFCLCoc.js +1 -0
- package/dist/showcase/assets/text-link-nCLLDcS_.js +1 -0
- package/dist/showcase/assets/textarea-DsSuQHQY.js +1 -0
- package/dist/showcase/assets/textarea-DyGI3Kcn.js +1 -0
- package/dist/showcase/assets/timelines-JmMcH657.js +200 -0
- package/dist/showcase/assets/toggle-group-BZKzMmC8.js +1 -0
- package/dist/showcase/assets/toggles-BSJvy4Tw.js +71 -0
- package/dist/showcase/assets/toggles-group-Bsc6eaWw.js +32 -0
- package/dist/showcase/assets/trash-2-C9AC7Pcv.js +1 -0
- package/dist/showcase/assets/trending-up-CGaDZj0S.js +1 -0
- package/dist/showcase/assets/truck-Dq6heokm.js +1 -0
- package/dist/showcase/assets/typography-ByvwR6Kg.js +223 -0
- package/dist/showcase/assets/ui-badge-BYgJSE_w.js +28 -0
- package/dist/showcase/assets/ui-card-BdueUfow.js +30 -0
- package/dist/showcase/assets/ui-table-CxtCQUsg.js +42 -0
- package/dist/showcase/assets/upload-tray-DKJ8nFZp.js +138 -0
- package/dist/showcase/assets/use-layout-link-CGBQHZon.js +1 -0
- package/dist/showcase/assets/useAnchoredPopupScrollLock-CywAbxVB.js +1 -0
- package/dist/showcase/assets/useAriaLabelledBy-B2bZzE7D.js +1 -0
- package/dist/showcase/assets/useCollapsiblePanel-SLdY_s6S.js +1 -0
- package/dist/showcase/assets/useCompositeItem-g6aCBp84.js +1 -0
- package/dist/showcase/assets/useCompositeListItem-DK0Tpege.js +1 -0
- package/dist/showcase/assets/useControlled-BF8maje6.js +1 -0
- package/dist/showcase/assets/useLabelableId-hdKzFCp2.js +1 -0
- package/dist/showcase/assets/useOpenInteractionType-CnhifZ1E.js +1 -0
- package/dist/showcase/assets/useRender-QhawWhpb.js +1 -0
- package/dist/showcase/assets/useTriggerFocusGuards-Cht7Sa7e.js +1 -0
- package/dist/showcase/assets/useValueChanged-DURO1kfZ.js +1 -0
- package/dist/showcase/assets/user-plus-DbOuTfr7.js +1 -0
- package/dist/showcase/assets/user-u65Fo7k7.js +1 -0
- package/dist/showcase/assets/users-BUb7CmVp.js +1 -0
- package/dist/showcase/assets/valueToPercent-gleKSaFe.js +1 -0
- package/dist/showcase/assets/vendor-profile-wfI3PBuO.js +37 -0
- package/dist/showcase/assets/video-e4hDbTQ2.js +1 -0
- package/dist/showcase/assets/wrench-CBUvtxdr.js +1 -0
- package/dist/showcase/assets/x-oVTJnCJn.js +1 -0
- package/dist/showcase/assets/zap-CzABYL3c.js +1 -0
- package/dist/showcase/index.html +2 -2
- package/dist/style.css +1 -1
- package/package.json +15 -4
- package/scripts/README.md +24 -0
- package/scripts/metadata.json +325 -0
- package/dist/_shared/accordion-BWU7zxlO.cjs +0 -2
- package/dist/_shared/accordion-BWU7zxlO.cjs.map +0 -1
- package/dist/_shared/accordion-DTYKGqWD.js +0 -130
- package/dist/_shared/accordion-DTYKGqWD.js.map +0 -1
- package/dist/_shared/action-menu-BoQnI2UF.cjs +0 -2
- package/dist/_shared/action-menu-BoQnI2UF.cjs.map +0 -1
- package/dist/_shared/action-menu-uyg1Phsn.js +0 -96
- package/dist/_shared/action-menu-uyg1Phsn.js.map +0 -1
- package/dist/_shared/ai-artifact-CY1Jf9gM.cjs +0 -3
- package/dist/_shared/ai-artifact-CY1Jf9gM.cjs.map +0 -1
- package/dist/_shared/ai-artifact-DdlK_l56.js +0 -1099
- package/dist/_shared/ai-artifact-DdlK_l56.js.map +0 -1
- package/dist/_shared/auth-CDjZFJxy.cjs +0 -2
- package/dist/_shared/auth-CDjZFJxy.cjs.map +0 -1
- package/dist/_shared/auth-_udUdWtn.js +0 -643
- package/dist/_shared/auth-_udUdWtn.js.map +0 -1
- package/dist/_shared/badge--o9wFHB_.cjs +0 -2
- package/dist/_shared/badge--o9wFHB_.cjs.map +0 -1
- package/dist/_shared/badge-yGlx9trX.js +0 -108
- package/dist/_shared/badge-yGlx9trX.js.map +0 -1
- package/dist/_shared/button-683R5quQ.js +0 -46
- package/dist/_shared/button-683R5quQ.js.map +0 -1
- package/dist/_shared/button-C1qc97U1.cjs +0 -2
- package/dist/_shared/button-C1qc97U1.cjs.map +0 -1
- package/dist/_shared/button-CjZrRLzR.cjs +0 -2
- package/dist/_shared/button-CjZrRLzR.cjs.map +0 -1
- package/dist/_shared/button-SuocMQFT.js +0 -173
- package/dist/_shared/button-SuocMQFT.js.map +0 -1
- package/dist/_shared/buttons-9YBwevkP.cjs +0 -2
- package/dist/_shared/buttons-9YBwevkP.cjs.map +0 -1
- package/dist/_shared/buttons-BR4BGVYf.js +0 -143
- package/dist/_shared/buttons-BR4BGVYf.js.map +0 -1
- package/dist/_shared/combobox-CpSmiPV8.cjs +0 -2
- package/dist/_shared/combobox-CpSmiPV8.cjs.map +0 -1
- package/dist/_shared/combobox-D01JwyFZ.js +0 -810
- package/dist/_shared/combobox-D01JwyFZ.js.map +0 -1
- package/dist/_shared/comments-D9velZAW.js +0 -952
- package/dist/_shared/comments-D9velZAW.js.map +0 -1
- package/dist/_shared/comments-DyUAKSQu.cjs +0 -2
- package/dist/_shared/comments-DyUAKSQu.cjs.map +0 -1
- package/dist/_shared/date-picker-BnsvBFOZ.cjs +0 -2
- package/dist/_shared/date-picker-BnsvBFOZ.cjs.map +0 -1
- package/dist/_shared/date-picker-TMcjGO26.js +0 -1361
- package/dist/_shared/date-picker-TMcjGO26.js.map +0 -1
- package/dist/_shared/date-pickers-BI4xLjHR.js +0 -330
- package/dist/_shared/date-pickers-BI4xLjHR.js.map +0 -1
- package/dist/_shared/date-pickers-BhaUK5S2.cjs +0 -2
- package/dist/_shared/date-pickers-BhaUK5S2.cjs.map +0 -1
- package/dist/_shared/dialog-A95-614f.js +0 -101
- package/dist/_shared/dialog-A95-614f.js.map +0 -1
- package/dist/_shared/dialog-ivDByBmO.cjs +0 -2
- package/dist/_shared/dialog-ivDByBmO.cjs.map +0 -1
- package/dist/_shared/display-C4n0uuxl.js +0 -1154
- package/dist/_shared/display-C4n0uuxl.js.map +0 -1
- package/dist/_shared/display-oDW0O9yB.cjs +0 -2
- package/dist/_shared/display-oDW0O9yB.cjs.map +0 -1
- package/dist/_shared/forms-CwJci54_.js +0 -3430
- package/dist/_shared/forms-CwJci54_.js.map +0 -1
- package/dist/_shared/forms-E3JkTgcC.cjs +0 -2
- package/dist/_shared/forms-E3JkTgcC.cjs.map +0 -1
- package/dist/_shared/header-BUAddfdE.js +0 -360
- package/dist/_shared/header-BUAddfdE.js.map +0 -1
- package/dist/_shared/header-BnxWOiNm.cjs +0 -2
- package/dist/_shared/header-BnxWOiNm.cjs.map +0 -1
- package/dist/_shared/hooks-MW0UTO3q.cjs +0 -2
- package/dist/_shared/hooks-MW0UTO3q.cjs.map +0 -1
- package/dist/_shared/hooks-ZiPIvs0_.js +0 -118
- package/dist/_shared/hooks-ZiPIvs0_.js.map +0 -1
- package/dist/_shared/mentions-Br-EP9tq.js +0 -506
- package/dist/_shared/mentions-Br-EP9tq.js.map +0 -1
- package/dist/_shared/mentions-DNTsRHJl.cjs +0 -2
- package/dist/_shared/mentions-DNTsRHJl.cjs.map +0 -1
- package/dist/_shared/metadata-CPSQGPJh.cjs +0 -2
- package/dist/_shared/metadata-CPSQGPJh.cjs.map +0 -1
- package/dist/_shared/metadata-qTNAOM7E.js +0 -235
- package/dist/_shared/metadata-qTNAOM7E.js.map +0 -1
- package/dist/_shared/navigation-HnnA6uSV.js +0 -419
- package/dist/_shared/navigation-HnnA6uSV.js.map +0 -1
- package/dist/_shared/navigation-J2g0Tw9D.cjs +0 -2
- package/dist/_shared/navigation-J2g0Tw9D.cjs.map +0 -1
- package/dist/_shared/overlays-CIeniDjj.js +0 -639
- package/dist/_shared/overlays-CIeniDjj.js.map +0 -1
- package/dist/_shared/overlays-Xc_F_Y-E.cjs +0 -2
- package/dist/_shared/overlays-Xc_F_Y-E.cjs.map +0 -1
- package/dist/_shared/page-BFV-KE8H.js +0 -262
- package/dist/_shared/page-BFV-KE8H.js.map +0 -1
- package/dist/_shared/page-UJfWfw2R.cjs +0 -2
- package/dist/_shared/page-UJfWfw2R.cjs.map +0 -1
- package/dist/_shared/rich-text-editor-B6WKHUKC.js +0 -620
- package/dist/_shared/rich-text-editor-B6WKHUKC.js.map +0 -1
- package/dist/_shared/rich-text-editor-Dm-6r_xe.cjs +0 -2
- package/dist/_shared/rich-text-editor-Dm-6r_xe.cjs.map +0 -1
- package/dist/_shared/sheet-BKEfwhCn.js +0 -100
- package/dist/_shared/sheet-BKEfwhCn.js.map +0 -1
- package/dist/_shared/sheet-D4yWgkwC.cjs +0 -2
- package/dist/_shared/sheet-D4yWgkwC.cjs.map +0 -1
- package/dist/_shared/sidebar-BML5ZZ5s.js +0 -537
- package/dist/_shared/sidebar-BML5ZZ5s.js.map +0 -1
- package/dist/_shared/sidebar-Bl_KRk-S.cjs +0 -2
- package/dist/_shared/sidebar-Bl_KRk-S.cjs.map +0 -1
- package/dist/_shared/sidebar-C89O5ho_.cjs +0 -2
- package/dist/_shared/sidebar-C89O5ho_.cjs.map +0 -1
- package/dist/_shared/sidebar-ux-yk-Ph.js +0 -382
- package/dist/_shared/sidebar-ux-yk-Ph.js.map +0 -1
- package/dist/_shared/smart-card-DYZGY_Su.js +0 -361
- package/dist/_shared/smart-card-DYZGY_Su.js.map +0 -1
- package/dist/_shared/smart-card-Df80VF8x.cjs +0 -2
- package/dist/_shared/smart-card-Df80VF8x.cjs.map +0 -1
- package/dist/_shared/table-CBKDA7ZE.js +0 -1189
- package/dist/_shared/table-CBKDA7ZE.js.map +0 -1
- package/dist/_shared/table-CJoxRCWy.cjs +0 -2
- package/dist/_shared/table-CJoxRCWy.cjs.map +0 -1
- package/dist/_shared/workspace-CTjIGCE0.cjs +0 -2
- package/dist/_shared/workspace-CTjIGCE0.cjs.map +0 -1
- package/dist/_shared/workspace-WgJgiSUA.js +0 -357
- package/dist/_shared/workspace-WgJgiSUA.js.map +0 -1
- package/dist/showcase/assets/AreaChart-DUe3j5uB.js +0 -6
- package/dist/showcase/assets/CSPContext-ImKusJJ_.js +0 -1
- package/dist/showcase/assets/CompositeItem-DleE4kTc.js +0 -1
- package/dist/showcase/assets/CompositeRoot-BbNkvtLz.js +0 -1
- package/dist/showcase/assets/DialogTrigger-C0DB0bXw.js +0 -1
- package/dist/showcase/assets/FieldItemContext-CFTR-INZ.js +0 -1
- package/dist/showcase/assets/FormContext-lmjYAh4E.js +0 -1
- package/dist/showcase/assets/LabelableContext-CDv6gSfU.js +0 -1
- package/dist/showcase/assets/PreviewLayout-BG1B5TzA.js +0 -1
- package/dist/showcase/assets/RadioGroup-C-0MNAYY.js +0 -1
- package/dist/showcase/assets/Separator-KsPLUEno.js +0 -1
- package/dist/showcase/assets/ToolbarRootContext-AV8xAl2m.js +0 -1
- package/dist/showcase/assets/accordion-BWkuKg77.js +0 -171
- package/dist/showcase/assets/accordion-variants-CVT_62VO.js +0 -1
- package/dist/showcase/assets/action-menu-BOUHlGba.js +0 -1
- package/dist/showcase/assets/activities-DMDQje7Y.js +0 -501
- package/dist/showcase/assets/activities-feed-card-B8wpu4F3.js +0 -1
- package/dist/showcase/assets/activity-B-FxNryB.js +0 -1
- package/dist/showcase/assets/admin-CAhEeKt_.js +0 -80
- package/dist/showcase/assets/ai-UioEgJ90.js +0 -41
- package/dist/showcase/assets/ai-artifact-CUAlhcSX.js +0 -2
- package/dist/showcase/assets/ai-chat-C_w2PSmy.js +0 -568
- package/dist/showcase/assets/ai-elements-DmxqXR6H.js +0 -387
- package/dist/showcase/assets/ai-new-PG02TWQq.js +0 -167
- package/dist/showcase/assets/ai-tool-call-BaJx1rR4.js +0 -1
- package/dist/showcase/assets/alert-D7n-kQoO.js +0 -93
- package/dist/showcase/assets/alert-DIelf1qF.js +0 -1
- package/dist/showcase/assets/alert-TQCZEcn-.js +0 -62
- package/dist/showcase/assets/api-key-list-CSt4trYG.js +0 -73
- package/dist/showcase/assets/app-sidebar-DixqrLf2.js +0 -1
- package/dist/showcase/assets/arrow-down-CYh_aUsd.js +0 -1
- package/dist/showcase/assets/arrow-left-pYYsNkZE.js +0 -1
- package/dist/showcase/assets/arrow-right-Bf1Tl6D5.js +0 -1
- package/dist/showcase/assets/arrow-up-BhmQRZs9.js +0 -1
- package/dist/showcase/assets/arrow-up-right-CuAsO3-r.js +0 -1
- package/dist/showcase/assets/avatar-5EFTnHEG.js +0 -1
- package/dist/showcase/assets/avatar-DLpnivU0.js +0 -57
- package/dist/showcase/assets/badge-check-BRAVo7dA.js +0 -1
- package/dist/showcase/assets/badge-yFoRqbiq.js +0 -28
- package/dist/showcase/assets/bell-Dt3Nz2y2.js +0 -1
- package/dist/showcase/assets/bot-5Ro5Dayc.js +0 -1
- package/dist/showcase/assets/box-mt6TbZO6.js +0 -1
- package/dist/showcase/assets/brain-736080Wh.js +0 -1
- package/dist/showcase/assets/brand-4K8xsJ91.js +0 -36
- package/dist/showcase/assets/breadcrumb-CAlApdCw.js +0 -1
- package/dist/showcase/assets/breadcrumb-DHeGqoTD.js +0 -52
- package/dist/showcase/assets/breadcrumbs-D_lniGJs.js +0 -1
- package/dist/showcase/assets/briefcase-B_Uti-Iu.js +0 -1
- package/dist/showcase/assets/building-2-zgcwuzxP.js +0 -1
- package/dist/showcase/assets/button-PmqgeJKm.js +0 -44
- package/dist/showcase/assets/button-group-DAOmmujV.js +0 -1
- package/dist/showcase/assets/buttons-PtpR_v16.js +0 -270
- package/dist/showcase/assets/calendar-BiOGjB7a.js +0 -1
- package/dist/showcase/assets/calendar-C1A98cz0.js +0 -16
- package/dist/showcase/assets/calendar-DTgagmt7.js +0 -1
- package/dist/showcase/assets/calendar-days-pr8kXiTx.js +0 -1
- package/dist/showcase/assets/camera-CGKLOOep.js +0 -1
- package/dist/showcase/assets/card-CFIG8Dgg.js +0 -1
- package/dist/showcase/assets/card-CRd07Iun.js +0 -188
- package/dist/showcase/assets/card-primitives-YgCOqVDI.js +0 -1
- package/dist/showcase/assets/card-radio-group-Du6yaMZ-.js +0 -1
- package/dist/showcase/assets/cards-H7ywhTNM.js +0 -328
- package/dist/showcase/assets/carousel-Dwll5oz1.js +0 -449
- package/dist/showcase/assets/chart-BWnVf-d-.js +0 -358
- package/dist/showcase/assets/chart-column-DjAyOA-t.js +0 -1
- package/dist/showcase/assets/checkbox-fwuAAaUZ.js +0 -1
- package/dist/showcase/assets/chevron-down-CSn8HCwf.js +0 -1
- package/dist/showcase/assets/chevron-left-Ddj6-KOu.js +0 -1
- package/dist/showcase/assets/chevron-right-d-umkBru.js +0 -1
- package/dist/showcase/assets/chevron-up-CeFY6O0I.js +0 -1
- package/dist/showcase/assets/chevrons-up-down-Ck3rUZtc.js +0 -1
- package/dist/showcase/assets/circle-Dy08kACD.js +0 -1
- package/dist/showcase/assets/circle-alert-ysbx8rsZ.js +0 -1
- package/dist/showcase/assets/circle-check-TT7cFQrr.js +0 -1
- package/dist/showcase/assets/circle-check-big-4RnJfeaC.js +0 -1
- package/dist/showcase/assets/circle-dot-CvoDXS-W.js +0 -1
- package/dist/showcase/assets/circle-question-mark-Dbi-WTYN.js +0 -1
- package/dist/showcase/assets/circle-x-c5z6-eYV.js +0 -1
- package/dist/showcase/assets/clock-3-DDEsD4Tb.js +0 -1
- package/dist/showcase/assets/clock-DuBsP5t3.js +0 -1
- package/dist/showcase/assets/code-xml-SoYTMEdm.js +0 -1
- package/dist/showcase/assets/collapsible-Cv3oGVkH.js +0 -27
- package/dist/showcase/assets/collapsible-DagkA3To.js +0 -1
- package/dist/showcase/assets/combobox-CPC4a_MH.js +0 -696
- package/dist/showcase/assets/command-BtaMPVtf.js +0 -45
- package/dist/showcase/assets/command-C37Q471b.js +0 -1
- package/dist/showcase/assets/comment-composer-W0xfh_HP.js +0 -1
- package/dist/showcase/assets/comment-item-Ctcpx1GX.js +0 -1
- package/dist/showcase/assets/comments-BODDdRry.js +0 -357
- package/dist/showcase/assets/commerce-B9MICTY2.js +0 -79
- package/dist/showcase/assets/commerce-extras-DsgnTkBH.js +0 -189
- package/dist/showcase/assets/composite-B-19wwf9.js +0 -1
- package/dist/showcase/assets/contact-card-CqP3YxTq.js +0 -65
- package/dist/showcase/assets/content-container-x2tsQKwH.js +0 -1
- package/dist/showcase/assets/copyable-DH0w0i_h.js +0 -96
- package/dist/showcase/assets/course-card-qpC4JUUM.js +0 -77
- package/dist/showcase/assets/cpu-DjJeD_0Z.js +0 -1
- package/dist/showcase/assets/credit-card-CYgRtM77.js +0 -1
- package/dist/showcase/assets/currency-hguqIjWU.js +0 -149
- package/dist/showcase/assets/dark-surfaces-Cj34O9A0.js +0 -90
- package/dist/showcase/assets/database-BVwSMeGM.js +0 -1
- package/dist/showcase/assets/date-block-LCTDXG5-.js +0 -1
- package/dist/showcase/assets/date-picker-CbYq8wZ7.js +0 -1
- package/dist/showcase/assets/date-pickers-BaSX23MK.js +0 -73
- package/dist/showcase/assets/dense-info-kY1QmtaP.js +0 -106
- package/dist/showcase/assets/dialog-B85US9Ue.js +0 -1
- package/dist/showcase/assets/dialog-iIgfMvTJ.js +0 -1
- package/dist/showcase/assets/display-DTaQWVJp.js +0 -403
- package/dist/showcase/assets/dollar-sign-DlK6XF_v.js +0 -1
- package/dist/showcase/assets/download-B_EY5cGA.js +0 -1
- package/dist/showcase/assets/dropdown-menu-bPWrLPgm.js +0 -1
- package/dist/showcase/assets/dropzone-Bl7RO_Uk.js +0 -1
- package/dist/showcase/assets/earth-C7n2JAYm.js +0 -1
- package/dist/showcase/assets/ellipsis-ntuo3ejh.js +0 -1
- package/dist/showcase/assets/ellipsis-vertical-yH8S83bc.js +0 -1
- package/dist/showcase/assets/empty-CY8f7iFe.js +0 -1
- package/dist/showcase/assets/empty-item-Ct7uCr40.js +0 -49
- package/dist/showcase/assets/empty-state-DlO8SJi8.js +0 -188
- package/dist/showcase/assets/empty-state-IAAUTn6f.js +0 -1
- package/dist/showcase/assets/enhanced-activities-DLwShhof.js +0 -361
- package/dist/showcase/assets/enhanced-combobox-Cs_-wq9p.js +0 -1
- package/dist/showcase/assets/event-calendar-C4KlumlG.js +0 -138
- package/dist/showcase/assets/event-log-BvUU5Rj8.js +0 -330
- package/dist/showcase/assets/example-BIrQab7K.js +0 -1
- package/dist/showcase/assets/external-link-DuJlM_H4.js +0 -1
- package/dist/showcase/assets/eye-CnRPL_H8.js +0 -1
- package/dist/showcase/assets/feature-announcement-0dOcSH7F.js +0 -34
- package/dist/showcase/assets/file-Dc5UHkfE.js +0 -1
- package/dist/showcase/assets/file-text-D3AE37vP.js +0 -1
- package/dist/showcase/assets/filters-CsovNSxS.js +0 -78
- package/dist/showcase/assets/flag-CJJ43K4x.js +0 -1
- package/dist/showcase/assets/folder-open-Dp0sceCi.js +0 -1
- package/dist/showcase/assets/form-field-Cxm4APa9.js +0 -1
- package/dist/showcase/assets/format-bDaUGCSP.js +0 -1
- package/dist/showcase/assets/forms-BrVikK1p.js +0 -862
- package/dist/showcase/assets/frame-CkLEABTd.js +0 -167
- package/dist/showcase/assets/getPseudoElementBounds-Bznj386s.js +0 -1
- package/dist/showcase/assets/gift-Bx8IO1FQ.js +0 -1
- package/dist/showcase/assets/giftcard-cards-CZTXBjv0.js +0 -85
- package/dist/showcase/assets/git-branch-D9jt-u1q.js +0 -1
- package/dist/showcase/assets/global-search-C2R_3Pb3.js +0 -215
- package/dist/showcase/assets/global-search-D9XJ747r.js +0 -1
- package/dist/showcase/assets/globe-BJHI134i.js +0 -1
- package/dist/showcase/assets/gradient-card-CV8w2JG5.js +0 -58
- package/dist/showcase/assets/hash-CtBGoIvf.js +0 -1
- package/dist/showcase/assets/header-B3FSlVv4.js +0 -1
- package/dist/showcase/assets/header-notifications-3VH9lzzJ.js +0 -1
- package/dist/showcase/assets/heart-BWZYF4xJ.js +0 -1
- package/dist/showcase/assets/house-CAQOnHLO.js +0 -1
- package/dist/showcase/assets/icon-badge-CxvxB8Vd.js +0 -1
- package/dist/showcase/assets/image-Byz-p7hT.js +0 -1
- package/dist/showcase/assets/inbox-D4UE_W9O.js +0 -1
- package/dist/showcase/assets/index-ADfexGMA.css +0 -2
- package/dist/showcase/assets/index-Cz4UGUT2.js +0 -10
- package/dist/showcase/assets/inertValue-BVXUUuS4.js +0 -1
- package/dist/showcase/assets/info-DFu8OfxV.js +0 -1
- package/dist/showcase/assets/inline-stat-DqI70yoJ.js +0 -1
- package/dist/showcase/assets/input-BPDdWrB1.js +0 -1
- package/dist/showcase/assets/input-BzafMIDj.js +0 -1
- package/dist/showcase/assets/input-group-BYZYeQ7j.js +0 -1
- package/dist/showcase/assets/input-group-YIWmmLJ6.js +0 -47
- package/dist/showcase/assets/inputs-DjzrYJdb.js +0 -49
- package/dist/showcase/assets/invoice-header-B00JrPAb.js +0 -36
- package/dist/showcase/assets/invoice-items-CUt5D3Wz.js +0 -36
- package/dist/showcase/assets/invoice-mini-CRoaQ9g9.js +0 -14
- package/dist/showcase/assets/invoice-table-DYNnDTQl.js +0 -30
- package/dist/showcase/assets/isSameDay-DVNkwpSk.js +0 -1
- package/dist/showcase/assets/isToday-DZ1HTCty.js +0 -1
- package/dist/showcase/assets/italic-AbetEb3d.js +0 -1
- package/dist/showcase/assets/item-BGA6_5Zh.js +0 -134
- package/dist/showcase/assets/item-BJOYyqeO.js +0 -1
- package/dist/showcase/assets/item-CbiuwbAN.js +0 -1
- package/dist/showcase/assets/kanban-Br-Yz002.js +0 -186
- package/dist/showcase/assets/label-BlCKlLE-.js +0 -1
- package/dist/showcase/assets/languages-CKcUvHnt.js +0 -1
- package/dist/showcase/assets/layers-CakZLRSD.js +0 -1
- package/dist/showcase/assets/layout-app-shell-ukDXqPxC.js +0 -608
- package/dist/showcase/assets/layout-auth-BFza65L3.js +0 -754
- package/dist/showcase/assets/layout-containers-v1jG_b7r.js +0 -101
- package/dist/showcase/assets/layout-header-CqBf9wjY.js +0 -170
- package/dist/showcase/assets/layout-page-WJcljCac.js +0 -122
- package/dist/showcase/assets/layout-sidebar-DL6TLuQC.js +0 -224
- package/dist/showcase/assets/layout-users-B8qpsvV9.js +0 -117
- package/dist/showcase/assets/layout-workspace-iOKZ4-9K.js +0 -183
- package/dist/showcase/assets/lock-Dn4-vUBz.js +0 -1
- package/dist/showcase/assets/lock-keyhole-M6KZ_7RC.js +0 -1
- package/dist/showcase/assets/mail-check-DXqQwivW.js +0 -1
- package/dist/showcase/assets/mail-w1nhszbW.js +0 -1
- package/dist/showcase/assets/map-CquesVXo.js +0 -124
- package/dist/showcase/assets/map-pin-DUl-Lt6t.js +0 -1
- package/dist/showcase/assets/media-library-CCJBQRPu.js +0 -695
- package/dist/showcase/assets/mention-inline-suggestions-DyW6IwL8.js +0 -1
- package/dist/showcase/assets/mentions-Ea4pSJqG.js +0 -138
- package/dist/showcase/assets/menus-CJjtE4fD.js +0 -89
- package/dist/showcase/assets/message-square-B0RnrJV6.js +0 -1
- package/dist/showcase/assets/metadata-list-DkN9yfTj.js +0 -288
- package/dist/showcase/assets/metadata-list-fm8e58ID.js +0 -1
- package/dist/showcase/assets/metric-bar-BydkmggA.js +0 -1
- package/dist/showcase/assets/metric-grid-BKjrYpt9.js +0 -1
- package/dist/showcase/assets/metric-guQTLTAa.js +0 -1
- package/dist/showcase/assets/metric-trend-chip-DehaJ3nC.js +0 -1
- package/dist/showcase/assets/metrics-analytics-bar-YjwFT4ae.js +0 -44
- package/dist/showcase/assets/metrics-analytics-cards-B6DspERM.js +0 -50
- package/dist/showcase/assets/metrics-comparison-Nru5wypZ.js +0 -76
- package/dist/showcase/assets/metrics-heatmap-CcumN0Or.js +0 -27
- package/dist/showcase/assets/metrics-inline-badge-2WB7w9mz.js +0 -17
- package/dist/showcase/assets/metrics-kpi-row-jU3hsB3C.js +0 -31
- package/dist/showcase/assets/metrics-micro-grid-CaJ99RXL.js +0 -42
- package/dist/showcase/assets/metrics-overview-Sa7z6jct.js +0 -192
- package/dist/showcase/assets/metrics-stat-cards-PLvMkA0M.js +0 -54
- package/dist/showcase/assets/minus-OyRBql2C.js +0 -1
- package/dist/showcase/assets/money-display-23DKz-jK.js +0 -1
- package/dist/showcase/assets/month-year-picker-oEoInnKW.js +0 -1
- package/dist/showcase/assets/navigation-Ds60FMAs.js +0 -230
- package/dist/showcase/assets/navigation-Dufz6qnF.js +0 -90
- package/dist/showcase/assets/navigation-extras-DKufT82I.js +0 -43
- package/dist/showcase/assets/onboarding-checklist-DSkS2ktA.js +0 -119
- package/dist/showcase/assets/overlays-BptoR4sm.js +0 -408
- package/dist/showcase/assets/overlays-CVGJ_FEg.js +0 -88
- package/dist/showcase/assets/package-0ZgMoFm1.js +0 -1
- package/dist/showcase/assets/package-check-CT0dhSM8.js +0 -1
- package/dist/showcase/assets/page-action-button-DrHJKFbp.js +0 -1
- package/dist/showcase/assets/page-header-CikNDnqI.js +0 -1
- package/dist/showcase/assets/pagination-CxuA2zkE.js +0 -42
- package/dist/showcase/assets/pagination-DsPLs2Tx.js +0 -1
- package/dist/showcase/assets/paperclip-CDMZ_JAo.js +0 -1
- package/dist/showcase/assets/password-input-BVaUPw7a.js +0 -1
- package/dist/showcase/assets/pencil-BouoJ5x7.js +0 -1
- package/dist/showcase/assets/phone-DCNFH5yg.js +0 -1
- package/dist/showcase/assets/plus-DkHZm34I.js +0 -1
- package/dist/showcase/assets/popover-BSB11Qjp.js +0 -1
- package/dist/showcase/assets/popover-CECpX3MQ.js +0 -1
- package/dist/showcase/assets/popover-menu-CuA8fb7i.js +0 -1
- package/dist/showcase/assets/products-BJHNTW62.js +0 -407
- package/dist/showcase/assets/progress-DGvRQyPS.js +0 -1
- package/dist/showcase/assets/progress-tpxRVOkp.js +0 -18
- package/dist/showcase/assets/props-table-BR-KjRNe.js +0 -1
- package/dist/showcase/assets/props.generated-qdUud3iu.json +0 -38611
- package/dist/showcase/assets/quote-CN-Sodsj.js +0 -1
- package/dist/showcase/assets/receipt-T8B9lscp.js +0 -1
- package/dist/showcase/assets/receipt-text-CeBruM29.js +0 -1
- package/dist/showcase/assets/refresh-cw-DnxNcOMm.js +0 -1
- package/dist/showcase/assets/resolveAriaLabelledBy-B2ZzrlGb.js +0 -1
- package/dist/showcase/assets/resolveValueLabel-CGuVi0Dj.js +0 -1
- package/dist/showcase/assets/rich-text-editor-Bha0lSKT.js +0 -143
- package/dist/showcase/assets/rich-text-editor-NeOPmoZF.js +0 -124
- package/dist/showcase/assets/rotate-ccw-7aUlKQpX.js +0 -1
- package/dist/showcase/assets/save-AT8JlA8E.js +0 -1
- package/dist/showcase/assets/schema-form-BpkVygoO.js +0 -325
- package/dist/showcase/assets/scroll-area-B0wmaMAD.js +0 -32
- package/dist/showcase/assets/scroll-area-CgXTHlpJ.js +0 -1
- package/dist/showcase/assets/select-BG_Iad8E.js +0 -1
- package/dist/showcase/assets/select-t6dryszf.js +0 -1
- package/dist/showcase/assets/send-BzGRF4t-.js +0 -1
- package/dist/showcase/assets/separator-BjGdXNcn.js +0 -1
- package/dist/showcase/assets/separator-DbiGagrP.js +0 -28
- package/dist/showcase/assets/settings-BSRT_96A.js +0 -1
- package/dist/showcase/assets/sheet-CEuKOBxr.js +0 -1
- package/dist/showcase/assets/shield-CcR2q5u_.js +0 -1
- package/dist/showcase/assets/shield-alert-DhbgXV1X.js +0 -1
- package/dist/showcase/assets/shield-check-CRbBJXw2.js +0 -1
- package/dist/showcase/assets/shopping-bag-B5BzpLV5.js +0 -1
- package/dist/showcase/assets/sidebar--2nHUTn3.js +0 -1
- package/dist/showcase/assets/sidebar.context-BCb20eIt.js +0 -1
- package/dist/showcase/assets/skeleton-BeVdks4r.js +0 -1
- package/dist/showcase/assets/skeleton-DijlT51X.js +0 -29
- package/dist/showcase/assets/slider-Cp4m3NTK.js +0 -1
- package/dist/showcase/assets/sliders-horizontal-C8RwUn0S.js +0 -1
- package/dist/showcase/assets/smart-card-B4P_C0nk.js +0 -1
- package/dist/showcase/assets/sonner-CLYYRmEW.js +0 -22
- package/dist/showcase/assets/sortable.esm-CoekVJlU.js +0 -5
- package/dist/showcase/assets/sparkles-DFJmoAFP.js +0 -1
- package/dist/showcase/assets/spinner-CeQHboSs.js +0 -49
- package/dist/showcase/assets/spinner-DMKANM9S.js +0 -30
- package/dist/showcase/assets/spinner-WEI7TMVk.js +0 -1
- package/dist/showcase/assets/square-pen-CfvmmXYo.js +0 -1
- package/dist/showcase/assets/stacked-avatars-CcCnnUrA.js +0 -1
- package/dist/showcase/assets/star-DK5onZCp.js +0 -1
- package/dist/showcase/assets/startOfDay-BuizEr24.js +0 -1
- package/dist/showcase/assets/styles-BStlbPXe.js +0 -1
- package/dist/showcase/assets/suggestions-Cd_XUmz3.js +0 -126
- package/dist/showcase/assets/switch-5f1vwEZ7.js +0 -1
- package/dist/showcase/assets/switch-arjWj-n7.js +0 -1
- package/dist/showcase/assets/sync-DorQdMfx.js +0 -107
- package/dist/showcase/assets/table-ClYkDRAk.js +0 -1
- package/dist/showcase/assets/table-D9q0odD8.js +0 -382
- package/dist/showcase/assets/table-actions-UJbkGb44.js +0 -1
- package/dist/showcase/assets/tabs-BENBPFif.js +0 -19
- package/dist/showcase/assets/tabs-ePpje8sU.js +0 -1
- package/dist/showcase/assets/tags-input-DRlg3zQH.js +0 -1
- package/dist/showcase/assets/text-button-CQvP6Kic.js +0 -1
- package/dist/showcase/assets/text-link-DT-nOORV.js +0 -1
- package/dist/showcase/assets/textarea-BGHGV17m.js +0 -1
- package/dist/showcase/assets/textarea-pstF1OBP.js +0 -1
- package/dist/showcase/assets/timelines-D8y-IyxW.js +0 -200
- package/dist/showcase/assets/toggle-group-BVyFo04r.js +0 -1
- package/dist/showcase/assets/toggles-dhLpAHSR.js +0 -71
- package/dist/showcase/assets/toggles-group-BJ5Jio2p.js +0 -32
- package/dist/showcase/assets/trash-2-OsaEm8cc.js +0 -1
- package/dist/showcase/assets/trending-up-HlQQXTth.js +0 -1
- package/dist/showcase/assets/truck-CvvBxBeB.js +0 -1
- package/dist/showcase/assets/typography-D_99bjSh.js +0 -223
- package/dist/showcase/assets/ui-badge-C1bu7wRu.js +0 -28
- package/dist/showcase/assets/ui-card-Ct1FFUxv.js +0 -30
- package/dist/showcase/assets/ui-table-Dxu9Jjq0.js +0 -42
- package/dist/showcase/assets/upload-tray-BeOBVU1z.js +0 -138
- package/dist/showcase/assets/use-layout-link-BK_oEoBg.js +0 -1
- package/dist/showcase/assets/useAnchoredPopupScrollLock-DLXArfPo.js +0 -1
- package/dist/showcase/assets/useAriaLabelledBy-etINba8U.js +0 -1
- package/dist/showcase/assets/useCollapsiblePanel-BNe9r1t_.js +0 -1
- package/dist/showcase/assets/useCompositeItem-CvG1CBEV.js +0 -1
- package/dist/showcase/assets/useCompositeListItem-CcY0U1bY.js +0 -1
- package/dist/showcase/assets/useControlled-Cpg8gDqb.js +0 -1
- package/dist/showcase/assets/useLabelableId-Czdg4nY8.js +0 -1
- package/dist/showcase/assets/useOpenInteractionType-eyZ6twES.js +0 -1
- package/dist/showcase/assets/useRender-BAZlIYnj.js +0 -1
- package/dist/showcase/assets/useTriggerFocusGuards-C2I8g7TT.js +0 -1
- package/dist/showcase/assets/useValueChanged-Bz3WRSDy.js +0 -1
- package/dist/showcase/assets/user-Bqmz8M16.js +0 -1
- package/dist/showcase/assets/user-plus-MMxrhI4h.js +0 -1
- package/dist/showcase/assets/users-ERTaffcv.js +0 -1
- package/dist/showcase/assets/valueToPercent-B5BHWU68.js +0 -1
- package/dist/showcase/assets/vendor-profile-BAwCE0wP.js +0 -37
- package/dist/showcase/assets/video-DJm0ubTE.js +0 -1
- package/dist/showcase/assets/wrench-gaXnvr_b.js +0 -1
- package/dist/showcase/assets/x-BqJnRkKw.js +0 -1
- package/dist/showcase/assets/zap-DHBVTfYZ.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Er as e,kr as t,r as n,yr as r}from"./example-BIrQab7K.js";import{k as i,n as a,s as o}from"./index-Cz4UGUT2.js";import{t as s}from"./popover-CECpX3MQ.js";import{i as c}from"./command-BtaMPVtf.js";import{a as l,i as u,n as d,r as f,t as p}from"./command-C37Q471b.js";var m=o(),h={primary:`secondary`,success:`success`,warning:`warning`,destructive:`destructive`,info:`info`,secondary:`secondary`},g=({mention:e,resource:t,asLink:n=!0,onClick:i,trailing:o,className:s})=>{if(t?.renderChip)return(0,m.jsx)(m.Fragment,{children:t.renderChip(e)});let c=h[t?.tone??`secondary`]??h.secondary,l=t?.icon,u=(0,m.jsxs)(r,{variant:c,inline:!0,"data-ref-id":e.id,"data-ref-kind":e.kind,className:a(`mention-chip--component`,`align-[-0.15em] cursor-default whitespace-nowrap`,s),children:[l?(0,m.jsx)(l,{className:`size-3 shrink-0`,"aria-hidden":!0}):null,(0,m.jsx)(`span`,{className:`truncate max-w-[14rem]`,children:e.label}),o]});return n&&e.href?(0,m.jsx)(`a`,{href:e.href,target:`_blank`,rel:`noreferrer noopener`,onClick:i,className:`inline align-baseline no-underline hover:opacity-90`,children:u}):i?(0,m.jsx)(`span`,{onClick:i,className:`inline align-baseline`,children:u}):u},_={title:`Insert reference`,searchPlaceholder:`Search…`,empty:`No matches.`,loading:`Searching…`},v={title:`Insert reference`,empty:`No matches.`,loading:`Searching…`};function y({open:r,activeKind:o,setActiveKind:h,kinds:g,resources:v,query:y,setQuery:b,suggestions:x,isLoading:S,onSelect:C,strings:w,className:T}){let E=i(_,w);return r?(0,m.jsxs)(s,{align:`start`,className:a(`mention-picker--component`,`w-72 overflow-hidden p-0`,T),children:[(0,m.jsxs)(`div`,{className:`border-b border-border/60 px-3 py-2`,children:[(0,m.jsx)(e,{size:`xxs`,type:`secondary`,weight:`medium`,className:`uppercase tracking-wide`,children:E.title}),g.length>1&&(0,m.jsx)(`div`,{className:`mt-2 flex flex-wrap gap-1`,children:g.map(e=>{let t=v?.[e],r=t?.icon,i=e===o;return(0,m.jsxs)(n,{type:`button`,variant:i?`primary`:`secondary`,buttonStyle:i?`solid`:`ghost`,size:`xs`,onClick:()=>h(e),className:a(`h-auto gap-1 rounded px-1.5 py-0.5 text-xxs font-medium ring-1 ring-inset transition-colors`,i?`bg-primary text-primary-foreground ring-primary`:`bg-muted text-muted-foreground ring-border/60 hover:bg-muted/80`),children:[r?(0,m.jsx)(r,{className:`size-3`}):null,(0,m.jsx)(`span`,{children:t?.label??String(e)})]},e)})})]}),(0,m.jsxs)(p,{shouldFilter:!1,children:[(0,m.jsx)(c,{placeholder:E.searchPlaceholder,value:y,onValueChange:b}),(0,m.jsxs)(l,{children:[S?(0,m.jsxs)(`div`,{className:`text-muted-foreground flex items-center justify-center gap-2 py-3`,children:[(0,m.jsx)(t,{className:`size-3.5 animate-spin`,"aria-hidden":!0}),(0,m.jsx)(e,{tag:`span`,size:`xs`,type:`secondary`,children:E.loading})]}):null,(0,m.jsx)(d,{children:E.empty}),(0,m.jsx)(f,{children:x.map(t=>{let n=t.kind??o??``;return(0,m.jsx)(u,{value:`${n}:${t.id}`,onSelect:()=>C(t),children:(0,m.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col leading-tight`,children:[(0,m.jsx)(e,{tag:`span`,size:`xs`,weight:`medium`,className:`truncate`,children:t.label}),t.description?(0,m.jsx)(e,{tag:`span`,size:`xxs`,type:`secondary`,className:`mt-0.5 truncate`,children:t.description}):null]})},`${n}:${t.id}`)})})]})]})]}):null}function b({open:r,activeKind:o,setActiveKind:s,kinds:c,resources:l,suggestionsByKind:u,suggestions:d,isLoading:f,query:p,onManualKindChange:h,onSelect:g,strings:_,className:y}){let b=i(v,_);return r?(0,m.jsxs)(`div`,{onMouseDown:e=>e.preventDefault(),className:a(`mention-inline-suggestions--component`,`bg-popover text-popover-foreground absolute left-0 top-full z-40 mt-1 w-80 max-w-[min(theme(spacing.96),100%)]`,`border-border/60 rounded-md border shadow-md ring-1 ring-foreground/[0.04]`,`overflow-hidden`,y),children:[(0,m.jsxs)(`div`,{className:`border-b border-border/60 px-3 py-2`,children:[(0,m.jsxs)(`div`,{className:`flex items-baseline justify-between gap-2`,children:[(0,m.jsx)(e,{size:`xxs`,type:`secondary`,weight:`medium`,className:`uppercase tracking-wide`,children:b.title}),p?(0,m.jsxs)(e,{tag:`span`,size:`xxs`,type:`secondary`,className:`truncate font-mono`,children:[`“`,p,`”`]}):null]}),c.length>1&&(0,m.jsx)(`div`,{className:`mt-2 flex flex-wrap gap-1`,children:c.map(e=>{let t=l?.[e],r=t?.icon,i=e===o,c=u?.[e]?.length??0;return(0,m.jsxs)(n,{type:`button`,variant:i?`primary`:`secondary`,buttonStyle:i?`solid`:`ghost`,size:`xs`,onClick:()=>{s(e),h?.()},className:a(`h-auto gap-1 rounded px-1.5 py-0.5 text-xxs font-medium ring-1 ring-inset transition-colors`,i?`bg-primary text-primary-foreground ring-primary`:c>0?`bg-muted text-foreground ring-border/60 hover:bg-muted/80`:`bg-muted/40 text-muted-foreground ring-border/40 hover:bg-muted/60`),children:[r?(0,m.jsx)(r,{className:`size-3`}):null,(0,m.jsx)(`span`,{children:t?.label??String(e)}),c>0&&(0,m.jsx)(`span`,{className:a(`tabular-nums`,i?`opacity-90`:`opacity-70`),children:c})]},e)})})]}),(0,m.jsxs)(`div`,{className:`max-h-72 overflow-y-auto py-1`,...d.length>0?{role:`listbox`,"aria-label":b.title}:{},children:[f?(0,m.jsxs)(`div`,{className:`text-muted-foreground flex items-center justify-center gap-2 py-3`,children:[(0,m.jsx)(t,{className:`size-3.5 animate-spin`,"aria-hidden":!0}),(0,m.jsx)(e,{tag:`span`,size:`xs`,type:`secondary`,children:b.loading})]}):null,!f&&d.length===0?(0,m.jsx)(`div`,{className:`px-3 py-3`,children:(0,m.jsx)(e,{size:`xs`,type:`secondary`,children:b.empty})}):null,d.map(t=>{let r=t.kind??o??``;return(0,m.jsx)(n,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,size:`sm`,role:`option`,"data-ref-id":`${r}:${t.id}`,onClick:()=>g(t),className:a(`h-auto w-full min-w-0 justify-start gap-2 rounded-none px-3 py-1.5 text-left`,`hover:bg-muted/60 focus-visible:bg-muted/60 transition-colors`),children:(0,m.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col leading-tight`,children:[(0,m.jsx)(e,{tag:`span`,size:`xs`,weight:`medium`,className:`truncate`,children:t.label}),t.description?(0,m.jsx)(e,{tag:`span`,size:`xxs`,type:`secondary`,className:`mt-0.5 truncate`,children:t.description}):null]})},`${r}:${t.id}`)})]})]}):null}export{y as n,g as r,b as t};
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
import{n as e,r as t}from"./chunk-QTnfLwEv.js";import{n}from"./react-dom-Bz4cALsF.js";import{Er as r,hr as i,mr as a,r as o,t as s,yr as c}from"./example-BIrQab7K.js";import{t as l}from"./calendar-days-pr8kXiTx.js";import{t as u}from"./hash-CtBGoIvf.js";import{a as d,s as f}from"./index-Cz4UGUT2.js";import{t as p}from"./props-table-BR-KjRNe.js";import{i as m,t as h}from"./popover-BSB11Qjp.js";import{n as g,r as _,t as v}from"./mention-inline-suggestions-DyW6IwL8.js";var y=d(`user-round`,[[`circle`,{cx:`12`,cy:`8`,r:`5`,key:`1hypcn`}],[`path`,{d:`M20 21a8 8 0 0 0-16 0`,key:`rfgkzh`}]]),b=e({InlineMentionSuggestions:()=>T,MentionPickerPopover:()=>E}),x=t(n(),1),S=f(),C={user:{label:`People`,icon:y,trigger:`@`,tone:`primary`},booking:{label:`Bookings`,icon:l,trigger:`#`,tone:`info`}},w=[{id:`user-1`,kind:`user`,label:`Maya Chen`,description:`Account owner`},{id:`booking-1048`,kind:`booking`,label:`Booking #1048`,description:`Chef table, Jun 24`}];function T(){let[e,t]=(0,x.useState)(`user`),[n,i]=(0,x.useState)(null),a=w.filter(t=>t.kind===e);return(0,S.jsxs)(`div`,{className:`space-y-3`,children:[(0,S.jsxs)(`div`,{className:`relative min-h-44 rounded-md border border-border/60 bg-card p-3`,children:[(0,S.jsxs)(r,{size:`sm`,children:[`Loop `,(0,S.jsx)(`span`,{className:`font-medium text-primary`,children:`@ma`}),` into the booking note.`]}),(0,S.jsx)(v,{open:!0,activeKind:e,setActiveKind:t,kinds:[`user`,`booking`],resources:C,query:`ma`,suggestions:a,suggestionsByKind:{user:w.filter(e=>e.kind===`user`),booking:w.filter(e=>e.kind===`booking`)},isLoading:!1,onSelect:i})]}),n?(0,S.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,S.jsx)(r,{size:`xs`,type:`secondary`,children:`Selected`}),(0,S.jsx)(c,{variant:`secondary`,children:n.label})]}):null]})}function E(){let[e,t]=(0,x.useState)(!1),[n,i]=(0,x.useState)(`user`),[a,s]=(0,x.useState)(``),[c,l]=(0,x.useState)(null),d=w.filter(e=>{let t=n===null||e.kind===n,r=e.label.toLowerCase().includes(a.toLowerCase());return t&&r});return(0,S.jsxs)(`div`,{className:`space-y-3`,children:[(0,S.jsxs)(h,{open:e,onOpenChange:t,children:[(0,S.jsx)(m,{asChild:!0,children:(0,S.jsx)(o,{type:`button`,variant:`secondary`,icon:u,children:`Add reference`})}),(0,S.jsx)(g,{open:e,activeKind:n,setActiveKind:i,kinds:[`user`,`booking`],resources:C,query:a,setQuery:s,suggestions:d,isLoading:!1,onSelect:e=>{l(e),t(!1)}})]}),c?(0,S.jsx)(_,{mention:{id:c.id,kind:c.kind??`user`,label:c.label},resource:C[c.kind??`user`]}):(0,S.jsx)(r,{size:`xs`,type:`secondary`,children:`No reference selected.`})]})}var D=`import { useState } from 'react';
|
|
2
|
-
import { CalendarDays, Hash, UserRound } from 'lucide-react';
|
|
3
|
-
|
|
4
|
-
import { Badge } from '@/components/base/badge';
|
|
5
|
-
import { Button } from '@/components/base/buttons';
|
|
6
|
-
import { Popover, PopoverTrigger } from '@/components/base/popover';
|
|
7
|
-
import {
|
|
8
|
-
MentionChip,
|
|
9
|
-
MentionInlineSuggestions,
|
|
10
|
-
MentionPicker,
|
|
11
|
-
type MentionSuggestion,
|
|
12
|
-
} from '@/components/features/mentions';
|
|
13
|
-
import { Text } from '@/components/typography';
|
|
14
|
-
|
|
15
|
-
type Kind = 'user' | 'booking';
|
|
16
|
-
|
|
17
|
-
const resources = {
|
|
18
|
-
user: {
|
|
19
|
-
label: 'People',
|
|
20
|
-
icon: UserRound,
|
|
21
|
-
trigger: '@',
|
|
22
|
-
tone: 'primary' as const,
|
|
23
|
-
},
|
|
24
|
-
booking: {
|
|
25
|
-
label: 'Bookings',
|
|
26
|
-
icon: CalendarDays,
|
|
27
|
-
trigger: '#',
|
|
28
|
-
tone: 'info' as const,
|
|
29
|
-
},
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
const suggestions: MentionSuggestion<Kind>[] = [
|
|
33
|
-
{
|
|
34
|
-
id: 'user-1',
|
|
35
|
-
kind: 'user',
|
|
36
|
-
label: 'Maya Chen',
|
|
37
|
-
description: 'Account owner',
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
id: 'booking-1048',
|
|
41
|
-
kind: 'booking',
|
|
42
|
-
label: 'Booking #1048',
|
|
43
|
-
description: 'Chef table, Jun 24',
|
|
44
|
-
},
|
|
45
|
-
];
|
|
46
|
-
|
|
47
|
-
export function InlineMentionSuggestions() {
|
|
48
|
-
const [activeKind, setActiveKind] = useState<Kind | null>('user');
|
|
49
|
-
const [selected, setSelected] = useState<MentionSuggestion<Kind> | null>(null);
|
|
50
|
-
const visibleSuggestions = suggestions.filter((item) => item.kind === activeKind);
|
|
51
|
-
|
|
52
|
-
return (
|
|
53
|
-
<div className="space-y-3">
|
|
54
|
-
<div className="relative min-h-44 rounded-md border border-border/60 bg-card p-3">
|
|
55
|
-
<Text size="sm">
|
|
56
|
-
Loop <span className="font-medium text-primary">@ma</span> into the booking note.
|
|
57
|
-
</Text>
|
|
58
|
-
<MentionInlineSuggestions
|
|
59
|
-
open
|
|
60
|
-
activeKind={activeKind}
|
|
61
|
-
setActiveKind={setActiveKind}
|
|
62
|
-
kinds={['user', 'booking']}
|
|
63
|
-
resources={resources}
|
|
64
|
-
query="ma"
|
|
65
|
-
suggestions={visibleSuggestions}
|
|
66
|
-
suggestionsByKind={{
|
|
67
|
-
user: suggestions.filter((item) => item.kind === 'user'),
|
|
68
|
-
booking: suggestions.filter((item) => item.kind === 'booking'),
|
|
69
|
-
}}
|
|
70
|
-
isLoading={false}
|
|
71
|
-
onSelect={setSelected}
|
|
72
|
-
/>
|
|
73
|
-
</div>
|
|
74
|
-
{selected ? (
|
|
75
|
-
<div className="flex items-center gap-2">
|
|
76
|
-
<Text size="xs" type="secondary">
|
|
77
|
-
Selected
|
|
78
|
-
</Text>
|
|
79
|
-
<Badge variant="secondary">{selected.label}</Badge>
|
|
80
|
-
</div>
|
|
81
|
-
) : null}
|
|
82
|
-
</div>
|
|
83
|
-
);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export function MentionPickerPopover() {
|
|
87
|
-
const [open, setOpen] = useState(false);
|
|
88
|
-
const [activeKind, setActiveKind] = useState<Kind | null>('user');
|
|
89
|
-
const [query, setQuery] = useState('');
|
|
90
|
-
const [selected, setSelected] = useState<MentionSuggestion<Kind> | null>(null);
|
|
91
|
-
const filtered = suggestions.filter((item) => {
|
|
92
|
-
const matchesKind = activeKind === null || item.kind === activeKind;
|
|
93
|
-
const matchesQuery = item.label.toLowerCase().includes(query.toLowerCase());
|
|
94
|
-
return matchesKind && matchesQuery;
|
|
95
|
-
});
|
|
96
|
-
|
|
97
|
-
return (
|
|
98
|
-
<div className="space-y-3">
|
|
99
|
-
<Popover open={open} onOpenChange={setOpen}>
|
|
100
|
-
<PopoverTrigger asChild>
|
|
101
|
-
<Button type="button" variant="secondary" icon={Hash}>
|
|
102
|
-
Add reference
|
|
103
|
-
</Button>
|
|
104
|
-
</PopoverTrigger>
|
|
105
|
-
<MentionPicker
|
|
106
|
-
open={open}
|
|
107
|
-
activeKind={activeKind}
|
|
108
|
-
setActiveKind={setActiveKind}
|
|
109
|
-
kinds={['user', 'booking']}
|
|
110
|
-
resources={resources}
|
|
111
|
-
query={query}
|
|
112
|
-
setQuery={setQuery}
|
|
113
|
-
suggestions={filtered}
|
|
114
|
-
isLoading={false}
|
|
115
|
-
onSelect={(item) => {
|
|
116
|
-
setSelected(item);
|
|
117
|
-
setOpen(false);
|
|
118
|
-
}}
|
|
119
|
-
/>
|
|
120
|
-
</Popover>
|
|
121
|
-
{selected ? (
|
|
122
|
-
<MentionChip
|
|
123
|
-
mention={{
|
|
124
|
-
id: selected.id,
|
|
125
|
-
kind: selected.kind ?? 'user',
|
|
126
|
-
label: selected.label,
|
|
127
|
-
}}
|
|
128
|
-
resource={resources[selected.kind ?? 'user']}
|
|
129
|
-
/>
|
|
130
|
-
) : (
|
|
131
|
-
<Text size="xs" type="secondary">
|
|
132
|
-
No reference selected.
|
|
133
|
-
</Text>
|
|
134
|
-
)}
|
|
135
|
-
</div>
|
|
136
|
-
);
|
|
137
|
-
}
|
|
138
|
-
`;function O(e){let t={h4:`h4`,...e.components};return b||A(`Examples`,!1),T||A(`Examples.InlineMentionSuggestions`,!0),E||A(`Examples.MentionPickerPopover`,!0),(0,S.jsxs)(i,{title:`Features · Mentions`,description:`Inline resource references for editors, comments, and event logs. Consumers provide resource registries and search callbacks; the package provides chips, picker UI, inline suggestions, parsing helpers, and headless hooks.`,layer:`features`,status:`ready`,sourcePath:`src/components/features/mentions`,children:[(0,S.jsxs)(a,{title:`Examples`,id:`examples`,children:[(0,S.jsx)(s,{name:`InlineMentionSuggestions`,source:D,children:(0,S.jsx)(T,{})}),(0,S.jsx)(s,{name:`MentionPickerPopover`,source:D,children:(0,S.jsx)(E,{})})]}),(0,S.jsxs)(a,{title:`API`,id:`api`,children:[(0,S.jsx)(t.h4,{children:`MentionInlineSuggestions`}),(0,S.jsx)(p,{component:`MentionInlineSuggestions`}),(0,S.jsx)(t.h4,{children:`MentionPicker`}),(0,S.jsx)(p,{component:`MentionPicker`}),(0,S.jsx)(t.h4,{children:`MentionChip`}),(0,S.jsx)(p,{component:`MentionChip`})]})]})}function k(e={}){let{wrapper:t}=e.components||{};return t?(0,S.jsx)(t,{...e,children:(0,S.jsx)(O,{...e})}):O(e)}function A(e,t){throw Error(`Expected `+(t?`component`:`object`)+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}export{k as default};
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import{n as e,r as t}from"./chunk-QTnfLwEv.js";import{n}from"./react-dom-Bz4cALsF.js";import{An as r,Ar as i,Gn as a,Ht as o,It as s,Ln as c,Sn as l,Un as u,Vt as d,Wt as ee,hr as f,mr as p,pn as te,t as m,ut as h,xn as g,y as ne}from"./example-BIrQab7K.js";import{t as _}from"./square-pen-CfvmmXYo.js";import{t as v}from"./trash-2-OsaEm8cc.js";import{n as y,s as b}from"./index-Cz4UGUT2.js";import{_ as x,a as S,b as C,c as w,d as T,f as E,g as D,h as O,l as k,m as A,o as j,p as M,r as N,t as P,u as re,v as F,y as I}from"./dropdown-menu-bPWrLPgm.js";import{t as ie}from"./Separator-KsPLUEno.js";import{a as L,i as ae,n as oe,o as se,r as R,t as ce}from"./command-BtaMPVtf.js";var z=t(n()),B=b();function V(e){let[t,n]=z.useState({getBoundingClientRect(){return DOMRect.fromRect({width:0,height:0,x:0,y:0})}}),r=z.useRef(null),i=z.useRef(null),a=z.useRef(null),o=z.useRef(null),s=z.useRef(!0),c=z.useRef(null),l=h(),u=z.useMemo(()=>({anchor:t,setAnchor:n,actionsRef:a,backdropRef:r,internalBackdropRef:i,positionerRef:o,allowMouseUpTriggerRef:s,initialCursorPointRef:c,rootId:l}),[t,l]);return(0,B.jsx)(x.Provider,{value:u,children:(0,B.jsx)(I.Provider,{value:void 0,children:(0,B.jsx)(T,{...e})})})}var H=500,U=z.forwardRef(function(e,t){let{render:n,className:i,style:u,...f}=e,{setAnchor:p,actionsRef:m,internalBackdropRef:h,backdropRef:_,positionerRef:v,allowMouseUpTriggerRef:y,initialCursorPointRef:b,rootId:x}=F(!1),{store:S}=C(!1),w=S.useState(`open`),T=S.useState(`disabled`),E=z.useRef(null),D=z.useRef(null),O=c(),k=c(),A=z.useRef(!1);function j(e,t,n){let r=n.type.startsWith(`touch`);b.current={x:e,y:t},p({getBoundingClientRect(){return DOMRect.fromRect({width:r?10:0,height:r?10:0,x:e,y:t})}}),A.current=!1,m.current?.setOpen(!0,o(te,n)),k.start(H,()=>{A.current=!0})}function M(e){T||(y.current=!0,r(e),j(e.clientX,e.clientY,e.nativeEvent),d(s(E.current),`mouseup`,e=>{if(y.current=!1,!A.current)return;k.clear(),A.current=!1;let t=l(e);g(v.current,t)||x&&t&&re(t)===x||m.current?.setOpen(!1,o(ee,e))},{once:!0}))}function N(e){if(!T&&(y.current=!1,e.touches.length===1)){e.stopPropagation();let t=e.touches[0];D.current={x:t.clientX,y:t.clientY},O.start(H,()=>{D.current&&j(D.current.x,D.current.y,e.nativeEvent)})}}function P(e){if(O.isStarted()&&D.current&&e.touches.length===1){let t=e.touches[0],n=Math.abs(t.clientX-D.current.x),r=Math.abs(t.clientY-D.current.y);(n>10||r>10)&&O.clear()}}function I(){O.clear(),D.current=null}return z.useEffect(()=>{function e(e){if(T)return;let t=l(e);(g(E.current,t)||g(h.current,t)||g(_.current,t))&&e.preventDefault()}return d(s(E.current),`contextmenu`,e)},[_,T,h]),a(`div`,e,{state:{open:w},ref:[E,t],props:[{onContextMenu:M,onTouchStart:N,onTouchMove:P,onTouchEnd:I,onTouchCancel:I,style:{WebkitTouchCallout:`none`}},f],stateAttributesMapping:ne})});function W({...e}){return(0,B.jsx)(V,{"data-slot":`context-menu`,...e})}function le({className:e,...t}){return(0,B.jsx)(U,{"data-slot":`context-menu-trigger`,className:y(`select-none`,e),...t})}function ue({className:e,align:t=`start`,alignOffset:n=4,side:r=`right`,sideOffset:i=0,...a}){return(0,B.jsx)(M,{children:(0,B.jsx)(E,{className:`isolate z-50 outline-none`,align:t,alignOffset:n,side:r,sideOffset:i,children:(0,B.jsx)(A,{"data-slot":`context-menu-content`,className:y(`data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground min-w-36 rounded-md p-1 shadow-md ring-1 duration-100 data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2 z-50 max-h-(--available-height) origin-(--transform-origin) overflow-x-hidden overflow-y-auto outline-none`,e),...a})})})}function G({className:e,inset:t,...n}){return(0,B.jsx)(D,{"data-slot":`context-menu-label`,"data-inset":t,className:y(`text-muted-foreground px-2 py-1.5 text-xs font-medium data-[inset]:pl-8`,e),...n})}function K({className:e,inset:t,variant:n=`default`,...r}){return(0,B.jsx)(O,{"data-slot":`context-menu-item`,"data-inset":t,"data-variant":n,className:y(`focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:text-destructive focus:*:[svg]:text-accent-foreground gap-2 rounded-sm px-2 py-1.5 text-sm [&_svg:not([class*='size-'])]:size-4 group/context-menu-item relative flex cursor-default items-center outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0`,e),...r})}function q({className:e,...t}){return(0,B.jsx)(ie,{"data-slot":`context-menu-separator`,className:y(`bg-border -mx-1 my-1 h-px`,e),...t})}var de=e({CommandPalette:()=>X,ContextMenuRightClick:()=>Y,DropdownMenuExample:()=>J});function J(){return(0,B.jsx)(B.Fragment,{children:(0,B.jsxs)(P,{children:[(0,B.jsx)(k,{render:e=>(0,B.jsx)(u,{variant:`outline`,...e,children:`Open menu`})}),(0,B.jsxs)(N,{children:[(0,B.jsx)(j,{children:`Actions`}),(0,B.jsx)(w,{}),(0,B.jsxs)(S,{children:[(0,B.jsx)(_,{className:`size-3.5`}),` Edit`]}),(0,B.jsxs)(S,{children:[(0,B.jsx)(i,{className:`size-3.5`}),` Duplicate`]}),(0,B.jsx)(w,{}),(0,B.jsxs)(S,{variant:`destructive`,children:[(0,B.jsx)(v,{className:`size-3.5`}),` Delete`]})]})]})})}function Y(){return(0,B.jsx)(B.Fragment,{children:(0,B.jsxs)(W,{children:[(0,B.jsx)(le,{children:(0,B.jsx)(`div`,{className:`flex h-24 w-full items-center justify-center rounded-md border border-dashed border-border text-sm text-muted-foreground`,children:`Right-click here`})}),(0,B.jsxs)(ue,{children:[(0,B.jsx)(G,{children:`File`}),(0,B.jsx)(q,{}),(0,B.jsxs)(K,{children:[(0,B.jsx)(_,{className:`size-3.5`}),` Rename`]}),(0,B.jsxs)(K,{children:[(0,B.jsx)(i,{className:`size-3.5`}),` Copy`]}),(0,B.jsx)(q,{}),(0,B.jsxs)(K,{variant:`destructive`,children:[(0,B.jsx)(v,{className:`size-3.5`}),` Delete`]})]})]})})}function X(){return(0,B.jsx)(B.Fragment,{children:(0,B.jsxs)(ce,{className:`rounded-md border border-border`,children:[(0,B.jsx)(ae,{placeholder:`Type a command…`}),(0,B.jsxs)(se,{children:[(0,B.jsx)(oe,{children:`No results.`}),(0,B.jsxs)(R,{heading:`Actions`,children:[(0,B.jsx)(L,{children:`Create order`}),(0,B.jsx)(L,{children:`Add customer`}),(0,B.jsx)(L,{children:`Generate invoice`})]}),(0,B.jsxs)(R,{heading:`Navigation`,children:[(0,B.jsx)(L,{children:`Go to Orders`}),(0,B.jsx)(L,{children:`Go to Settings`})]})]})]})})}var Z=`import { Edit, Trash2, Copy } from 'lucide-react';
|
|
2
|
-
import { Button } from '@/components/ui/button';
|
|
3
|
-
import {
|
|
4
|
-
DropdownMenu,
|
|
5
|
-
DropdownMenuContent,
|
|
6
|
-
DropdownMenuItem,
|
|
7
|
-
DropdownMenuLabel,
|
|
8
|
-
DropdownMenuSeparator,
|
|
9
|
-
DropdownMenuTrigger,
|
|
10
|
-
} from '@/components/ui/dropdown-menu';
|
|
11
|
-
import {
|
|
12
|
-
ContextMenu,
|
|
13
|
-
ContextMenuContent,
|
|
14
|
-
ContextMenuItem,
|
|
15
|
-
ContextMenuLabel,
|
|
16
|
-
ContextMenuSeparator,
|
|
17
|
-
ContextMenuTrigger,
|
|
18
|
-
} from '@/components/ui/context-menu';
|
|
19
|
-
import {
|
|
20
|
-
Command,
|
|
21
|
-
CommandEmpty,
|
|
22
|
-
CommandGroup,
|
|
23
|
-
CommandInput,
|
|
24
|
-
CommandItem,
|
|
25
|
-
CommandList,
|
|
26
|
-
} from '@/components/ui/command';
|
|
27
|
-
|
|
28
|
-
export function DropdownMenuExample() {
|
|
29
|
-
return (
|
|
30
|
-
<>
|
|
31
|
-
<DropdownMenu>
|
|
32
|
-
<DropdownMenuTrigger render={(p) => <Button variant="outline" {...p}>Open menu</Button>} />
|
|
33
|
-
<DropdownMenuContent>
|
|
34
|
-
<DropdownMenuLabel>Actions</DropdownMenuLabel>
|
|
35
|
-
<DropdownMenuSeparator />
|
|
36
|
-
<DropdownMenuItem><Edit className="size-3.5" /> Edit</DropdownMenuItem>
|
|
37
|
-
<DropdownMenuItem><Copy className="size-3.5" /> Duplicate</DropdownMenuItem>
|
|
38
|
-
<DropdownMenuSeparator />
|
|
39
|
-
<DropdownMenuItem variant="destructive"><Trash2 className="size-3.5" /> Delete</DropdownMenuItem>
|
|
40
|
-
</DropdownMenuContent>
|
|
41
|
-
</DropdownMenu>
|
|
42
|
-
</>
|
|
43
|
-
);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export function ContextMenuRightClick() {
|
|
47
|
-
return (
|
|
48
|
-
<>
|
|
49
|
-
<ContextMenu>
|
|
50
|
-
<ContextMenuTrigger>
|
|
51
|
-
<div className="flex h-24 w-full items-center justify-center rounded-md border border-dashed border-border text-sm text-muted-foreground">
|
|
52
|
-
Right-click here
|
|
53
|
-
</div>
|
|
54
|
-
</ContextMenuTrigger>
|
|
55
|
-
<ContextMenuContent>
|
|
56
|
-
<ContextMenuLabel>File</ContextMenuLabel>
|
|
57
|
-
<ContextMenuSeparator />
|
|
58
|
-
<ContextMenuItem><Edit className="size-3.5" /> Rename</ContextMenuItem>
|
|
59
|
-
<ContextMenuItem><Copy className="size-3.5" /> Copy</ContextMenuItem>
|
|
60
|
-
<ContextMenuSeparator />
|
|
61
|
-
<ContextMenuItem variant="destructive"><Trash2 className="size-3.5" /> Delete</ContextMenuItem>
|
|
62
|
-
</ContextMenuContent>
|
|
63
|
-
</ContextMenu>
|
|
64
|
-
</>
|
|
65
|
-
);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export function CommandPalette() {
|
|
69
|
-
return (
|
|
70
|
-
<>
|
|
71
|
-
<Command className="rounded-md border border-border">
|
|
72
|
-
<CommandInput placeholder="Type a command…" />
|
|
73
|
-
<CommandList>
|
|
74
|
-
<CommandEmpty>No results.</CommandEmpty>
|
|
75
|
-
<CommandGroup heading="Actions">
|
|
76
|
-
<CommandItem>Create order</CommandItem>
|
|
77
|
-
<CommandItem>Add customer</CommandItem>
|
|
78
|
-
<CommandItem>Generate invoice</CommandItem>
|
|
79
|
-
</CommandGroup>
|
|
80
|
-
<CommandGroup heading="Navigation">
|
|
81
|
-
<CommandItem>Go to Orders</CommandItem>
|
|
82
|
-
<CommandItem>Go to Settings</CommandItem>
|
|
83
|
-
</CommandGroup>
|
|
84
|
-
</CommandList>
|
|
85
|
-
</Command>
|
|
86
|
-
</>
|
|
87
|
-
);
|
|
88
|
-
}
|
|
89
|
-
`;function Q(e){return de||$(`Examples`,!1),X||$(`Examples.CommandPalette`,!0),Y||$(`Examples.ContextMenuRightClick`,!0),J||$(`Examples.DropdownMenuExample`,!0),(0,B.jsx)(f,{title:`UI · Menus`,description:`DropdownMenu, ContextMenu, Command palette.`,layer:`ui`,status:`ready`,children:(0,B.jsxs)(p,{title:`Examples`,id:`examples`,children:[(0,B.jsx)(m,{name:`DropdownMenuExample`,source:Z,children:(0,B.jsx)(J,{})}),(0,B.jsx)(m,{name:`ContextMenuRightClick`,source:Z,children:(0,B.jsx)(Y,{})}),(0,B.jsx)(m,{name:`CommandPalette`,source:Z,children:(0,B.jsx)(X,{})})]})})}function fe(e={}){let{wrapper:t}=e.components||{};return t?(0,B.jsx)(t,{...e,children:(0,B.jsx)(Q,{...e})}):Q(e)}function $(e,t){throw Error(`Expected `+(t?`component`:`object`)+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}export{fe as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e}from"./index-Cz4UGUT2.js";var t=e(`message-square`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}]]);export{t};
|
|
@@ -1,288 +0,0 @@
|
|
|
1
|
-
import{n as e,r as t}from"./chunk-QTnfLwEv.js";import{n}from"./react-dom-Bz4cALsF.js";import{Ar as r,Er as i,hr as a,jr as ee,mr as o,r as te,t as s,yr as c}from"./example-BIrQab7K.js";import{t as l}from"./badge-check-BRAVo7dA.js";import{t as u}from"./building-2-zgcwuzxP.js";import{t as d}from"./calendar-days-pr8kXiTx.js";import{t as f}from"./clock-DuBsP5t3.js";import{t as ne}from"./credit-card-CYgRtM77.js";import{t as p}from"./external-link-DuJlM_H4.js";import{t as re}from"./git-branch-D9jt-u1q.js";import{t as m}from"./globe-BJHI134i.js";import{t as h}from"./hash-CtBGoIvf.js";import{t as g}from"./mail-w1nhszbW.js";import{t as _}from"./map-pin-DUl-Lt6t.js";import{t as v}from"./phone-DCNFH5yg.js";import{t as y}from"./shield-check-CRbBJXw2.js";import{t as b}from"./user-Bqmz8M16.js";import{a as x,s as ie}from"./index-Cz4UGUT2.js";import{t as ae}from"./props-table-BR-KjRNe.js";import{t as S}from"./smart-card-B4P_C0nk.js";import{r as oe,t as se}from"./avatar-5EFTnHEG.js";import{t as C}from"./metadata-list-fm8e58ID.js";var w=x(`tag`,[[`path`,{d:`M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z`,key:`vktsd0`}],[`circle`,{cx:`7.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`kqv944`}]]),T=e({APISurface:()=>z,Dense4ColumnOverview:()=>K,EmptyStateFallbacksCustomRenderers:()=>X,Example3ColumnWithIcons:()=>q,HorizontalPillSummary:()=>J,RowsReceiptStyle:()=>U,RowsTwoColumnWithHairlines:()=>H,RowsWithIconsTooltips:()=>W,SectionedMultiCard:()=>G,Vertical2ColumnNoIcons:()=>B,VerticalSingleColumnNoIcons:()=>V,WithTitleSeparator:()=>Y}),E=t(n(),1),D=ie();function O({value:e,mono:t=!0}){let[n,a]=(0,E.useState)(!1);return(0,D.jsxs)(te,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,size:`xs`,onClick:()=>{try{navigator.clipboard.writeText(e)}catch{}a(!0),setTimeout(()=>a(!1),1200)},className:`group -ml-1 h-auto gap-1.5 rounded-md px-1 py-0.5 shadow-none transition-colors hover:bg-muted/60`,title:`Copy to clipboard`,children:[(0,D.jsx)(i,{tag:`span`,weight:`medium`,className:t?`font-mono tabular-nums`:`tabular-nums`,children:e}),n?(0,D.jsx)(ee,{className:`size-3 text-success`,"aria-hidden":`true`}):(0,D.jsx)(r,{className:`size-3 text-muted-foreground/50 opacity-0 transition-opacity group-hover:opacity-100`,"aria-hidden":`true`})]})}function k({initials:e,name:t,sub:n}){return(0,D.jsxs)(`span`,{className:`inline-flex items-center gap-2`,children:[(0,D.jsx)(se,{className:`size-6`,children:(0,D.jsx)(oe,{className:`text-xxs font-semibold`,children:e})}),(0,D.jsxs)(`span`,{className:`inline-flex flex-col leading-tight`,children:[(0,D.jsx)(i,{tag:`span`,weight:`medium`,children:t}),!!n&&(0,D.jsx)(i,{tag:`span`,size:`xxs`,type:`secondary`,children:n})]})]})}var A=[{id:`name`,label:`Name`,value:`Sarah Smitha`},{id:`email`,label:`Email`,value:`maria@example.com`},{id:`role`,label:`Role`,value:`Workspace owner`},{id:`joined`,label:`Joined`,value:`March 14, 2025`},{id:`lastSeen`,label:`Last seen`,value:`2 hours ago`},{id:`timezone`,label:`Timezone`,value:`Europe/New York (UTC+02:00)`}],j=[{id:`sku`,label:`SKU`,icon:h,value:(0,D.jsx)(O,{value:`SP-204-WL`}),tooltip:`Internal stock-keeping unit`},{id:`category`,label:`Category`,icon:w,value:(0,D.jsx)(c,{variant:`secondary`,children:`Wellness`})},{id:`status`,label:`Status`,icon:l,value:(0,D.jsx)(c,{variant:`success`,children:`Active`})},{id:`created`,label:`Created`,icon:d,value:`Apr 12, 2026`},{id:`updated`,label:`Last updated`,icon:f,value:`Apr 28, 2026 · 14:32`},{id:`version`,label:`Version`,icon:re,value:(0,D.jsx)(O,{value:`v3.2.1`})}],M=[{id:`id`,label:`Booking ID`,value:(0,D.jsx)(O,{value:`BKG-2026-0412`})},{id:`customer`,label:`Customer`,value:(0,D.jsx)(k,{initials:`MP`,name:`Sarah Smitha`,sub:`maria@example.com`})},{id:`experience`,label:`Experience`,value:`Spa Day Voucher`,description:`Wellness · 90 minutes · 2 guests`},{id:`scheduled`,label:`Scheduled for`,value:`Apr 18, 2026 · 14:00`,description:`Confirmed by SMS`},{id:`status`,label:`Status`,value:(0,D.jsx)(c,{variant:`success`,children:`Paid`})},{id:`amount`,label:`Total`,value:(0,D.jsx)(i,{tag:`span`,weight:`semibold`,className:`tabular-nums`,children:`180.00 USD`})}],N=[{id:`sub`,label:`Subtotal`,value:`180.00 USD`},{id:`tax`,label:`VAT (20%)`,value:`36.00 USD`},{id:`discount`,label:`Discount`,value:(0,D.jsx)(i,{tag:`span`,weight:`medium`,type:`success`,className:`tabular-nums`,children:`−25.00 USD`})},{id:`total`,label:`Total`,value:(0,D.jsx)(i,{tag:`span`,weight:`bold`,className:`tabular-nums`,children:`191.00 USD`})}],P=[{id:`name`,label:`Name`,icon:b,value:`Sarah Smitha`},{id:`email`,label:`Email`,icon:g,value:(0,D.jsx)(O,{value:`maria@example.com`,mono:!1})},{id:`phone`,label:`Phone`,icon:v,value:(0,D.jsx)(O,{value:`+1 888 123 456`})},{id:`address`,label:`Address`,icon:_,value:`ul. Vitosha 24, New York 1000`,description:`USA`}],F=[{id:`card`,label:`Card`,icon:ne,value:`Visa ending 4242`},{id:`billing`,label:`Billing address`,icon:u,value:`ul. Slavyanska 9, Los Angeles`},{id:`verified`,label:`Verified`,icon:y,value:(0,D.jsx)(c,{variant:`success`,children:`Yes`})}],I=[{id:`created`,label:`Created`,value:`Apr 12, 2026`},{id:`by`,label:`By`,value:`Sarah P.`},{id:`version`,label:`Version`,value:`v3.2.1`},{id:`env`,label:`Env`,value:`production`}],L=[{id:`sku`,label:`SKU`,value:`SP-204-WL`},{id:`isbn`,label:`ISBN`,value:null,emptyLabel:`Not assigned`},{id:`barcode`,label:`Barcode`,value:void 0},{id:`website`,label:`Website`,icon:m,render:()=>(0,D.jsxs)(`a`,{href:`#`,className:`inline-flex items-center gap-1 text-primary hover:underline`,children:[(0,D.jsx)(i,{tag:`span`,weight:`medium`,children:`example.com`}),(0,D.jsx)(p,{className:`size-3`,"aria-hidden":`true`})]})}],R=[{id:`plan`,label:`Plan`,value:`Pro Annual`},{id:`seats`,label:`Seats`,value:`12 / 50`},{id:`next`,label:`Next billing`,value:`May 12, 2026`}];function z(){return(0,D.jsx)(D.Fragment,{children:(0,D.jsxs)(i,{type:`secondary`,children:[`Each item: `,(0,D.jsx)(`code`,{className:`rounded bg-muted px-1 py-0.5 text-xs`,children:`{ id, label, value, icon?, tooltip?, description?, render?, emptyLabel? }`}),`. List-level props: `,(0,D.jsx)(`code`,{className:`rounded bg-muted px-1 py-0.5 text-xs`,children:`layout`}),`, `,(0,D.jsx)(`code`,{className:`rounded bg-muted px-1 py-0.5 text-xs`,children:`columns`}),` (1–4), `,(0,D.jsx)(`code`,{className:`rounded bg-muted px-1 py-0.5 text-xs`,children:`dense`}),`, `,(0,D.jsx)(`code`,{className:`rounded bg-muted px-1 py-0.5 text-xs`,children:`title`}),`, `,(0,D.jsx)(`code`,{className:`rounded bg-muted px-1 py-0.5 text-xs`,children:`titleSeparator`}),`, `,(0,D.jsx)(`code`,{className:`rounded bg-muted px-1 py-0.5 text-xs`,children:`separator`}),`. Per-item `,(0,D.jsx)(`code`,{className:`rounded bg-muted px-1 py-0.5 text-xs`,children:`render`}),` escapes the default rendering — perfect for status pills, copyable IDs, links, inline edits.`]})})}function B(){return(0,D.jsx)(D.Fragment,{children:(0,D.jsx)(S,{title:`Account details`,padding:`base`,children:(0,D.jsx)(C,{items:A,columns:2})})})}function V(){return(0,D.jsx)(D.Fragment,{children:(0,D.jsx)(`div`,{className:`max-w-sm rounded-xl border border-border bg-card p-5`,children:(0,D.jsx)(C,{items:A.slice(0,4),columns:1})})})}function H(){return(0,D.jsx)(D.Fragment,{children:(0,D.jsx)(S,{title:`Booking #BKG-2026-0412`,padding:`base`,children:(0,D.jsx)(C,{items:M,layout:`rows`})})})}function U(){return(0,D.jsx)(D.Fragment,{children:(0,D.jsx)(`div`,{className:`max-w-sm rounded-xl border border-border bg-card p-5`,children:(0,D.jsx)(C,{items:N,layout:`rows`,dense:!0})})})}function W(){return(0,D.jsx)(D.Fragment,{children:(0,D.jsx)(S,{title:`Product details`,padding:`base`,children:(0,D.jsx)(C,{items:j,layout:`rows`})})})}function G(){return(0,D.jsx)(D.Fragment,{children:(0,D.jsxs)(`div`,{className:`grid gap-4 lg:grid-cols-2`,children:[(0,D.jsx)(S,{title:`Customer`,children:(0,D.jsx)(C,{items:P,layout:`rows`})}),(0,D.jsx)(S,{title:`Payment`,children:(0,D.jsx)(C,{items:F,layout:`rows`})})]})})}function K(){return(0,D.jsx)(D.Fragment,{children:(0,D.jsx)(`div`,{className:`rounded-xl border border-border bg-card p-5`,children:(0,D.jsx)(C,{items:j,columns:4,dense:!0})})})}function q(){return(0,D.jsx)(D.Fragment,{children:(0,D.jsx)(`div`,{className:`rounded-xl border border-border bg-card p-5`,children:(0,D.jsx)(C,{items:j,columns:3})})})}function J(){return(0,D.jsx)(D.Fragment,{children:(0,D.jsxs)(`div`,{className:`space-y-3`,children:[(0,D.jsx)(`div`,{className:`rounded-lg border border-border bg-card px-4 py-3`,children:(0,D.jsx)(C,{items:I,layout:`horizontal`,separator:`·`})}),(0,D.jsx)(`div`,{className:`rounded-lg border border-border bg-card px-4 py-3`,children:(0,D.jsx)(C,{items:I,layout:`horizontal`,separator:`:`,itemSeparator:!0})}),(0,D.jsx)(`div`,{className:`rounded-lg bg-muted/30 px-4 py-3`,children:(0,D.jsx)(C,{items:R,layout:`horizontal`,separator:`:`,itemSeparator:`•`})})]})})}function Y(){return(0,D.jsx)(D.Fragment,{children:(0,D.jsx)(C,{title:`Inventory metadata`,titleSeparator:!0,items:j,columns:2})})}function X(){return(0,D.jsx)(D.Fragment,{children:(0,D.jsx)(S,{title:`Mixed`,padding:`base`,children:(0,D.jsx)(C,{items:L,layout:`rows`})})})}var Z=`import { useState } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
BadgeCheck,
|
|
4
|
-
Building2,
|
|
5
|
-
CalendarDays,
|
|
6
|
-
Check,
|
|
7
|
-
Clock,
|
|
8
|
-
Copy,
|
|
9
|
-
CreditCard,
|
|
10
|
-
ExternalLink,
|
|
11
|
-
GitBranch,
|
|
12
|
-
Globe,
|
|
13
|
-
Hash,
|
|
14
|
-
Mail,
|
|
15
|
-
MapPin,
|
|
16
|
-
Phone,
|
|
17
|
-
ShieldCheck,
|
|
18
|
-
Tag,
|
|
19
|
-
User,
|
|
20
|
-
} from 'lucide-react';
|
|
21
|
-
import { Avatar, AvatarFallback } from '@/components/base/display/avatar';
|
|
22
|
-
import { Badge } from '@/components/base/badge';
|
|
23
|
-
import { Button } from '@/components/base/buttons';
|
|
24
|
-
import { SmartCard } from '@/components/base/cards';
|
|
25
|
-
import { MetadataList, type MetadataListItem } from '@/components/base/display/metadata';
|
|
26
|
-
import { Text } from '@/components/typography';
|
|
27
|
-
|
|
28
|
-
// ─── Helpers ────────────────────────────────────────────────────────────
|
|
29
|
-
|
|
30
|
-
function CopyableValue({ value, mono = true }: { value: string; mono?: boolean }) {
|
|
31
|
-
const [copied, setCopied] = useState(false);
|
|
32
|
-
return (
|
|
33
|
-
<Button
|
|
34
|
-
type="button"
|
|
35
|
-
variant="secondary"
|
|
36
|
-
buttonStyle="ghost"
|
|
37
|
-
size="xs"
|
|
38
|
-
onClick={() => {
|
|
39
|
-
try { navigator.clipboard.writeText(value); } catch { /* ignore */ }
|
|
40
|
-
setCopied(true);
|
|
41
|
-
setTimeout(() => setCopied(false), 1200);
|
|
42
|
-
}}
|
|
43
|
-
className="group -ml-1 h-auto gap-1.5 rounded-md px-1 py-0.5 shadow-none transition-colors hover:bg-muted/60"
|
|
44
|
-
title="Copy to clipboard"
|
|
45
|
-
>
|
|
46
|
-
<Text tag="span" weight="medium" className={mono ? 'font-mono tabular-nums' : 'tabular-nums'}>{value}</Text>
|
|
47
|
-
{copied ? (
|
|
48
|
-
<Check className="size-3 text-success" aria-hidden="true" />
|
|
49
|
-
) : (
|
|
50
|
-
<Copy className="size-3 text-muted-foreground/50 opacity-0 transition-opacity group-hover:opacity-100" aria-hidden="true" />
|
|
51
|
-
)}
|
|
52
|
-
</Button>
|
|
53
|
-
);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
function PersonValue({ initials, name, sub }: { initials: string; name: string; sub?: string; src?: string }) {
|
|
57
|
-
return (
|
|
58
|
-
<span className="inline-flex items-center gap-2">
|
|
59
|
-
<Avatar className="size-6">
|
|
60
|
-
<AvatarFallback className="text-xxs font-semibold">{initials}</AvatarFallback>
|
|
61
|
-
</Avatar>
|
|
62
|
-
<span className="inline-flex flex-col leading-tight">
|
|
63
|
-
<Text tag="span" weight="medium">{name}</Text>
|
|
64
|
-
{!!sub && <Text tag="span" size="xxs" type="secondary">{sub}</Text>}
|
|
65
|
-
</span>
|
|
66
|
-
</span>
|
|
67
|
-
);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
// ─── Datasets ───────────────────────────────────────────────────────────
|
|
71
|
-
|
|
72
|
-
const SIMPLE_NO_ICONS: MetadataListItem[] = [
|
|
73
|
-
{ id: 'name', label: 'Name', value: 'Sarah Smitha' },
|
|
74
|
-
{ id: 'email', label: 'Email', value: 'maria@example.com' },
|
|
75
|
-
{ id: 'role', label: 'Role', value: 'Workspace owner' },
|
|
76
|
-
{ id: 'joined', label: 'Joined', value: 'March 14, 2025' },
|
|
77
|
-
{ id: 'lastSeen', label: 'Last seen', value: '2 hours ago' },
|
|
78
|
-
{ id: 'timezone', label: 'Timezone', value: 'Europe/New York (UTC+02:00)' },
|
|
79
|
-
];
|
|
80
|
-
|
|
81
|
-
const ENTITY_WITH_ICONS: MetadataListItem[] = [
|
|
82
|
-
{ id: 'sku', label: 'SKU', icon: Hash, value: <CopyableValue value="SP-204-WL" />, tooltip: 'Internal stock-keeping unit' },
|
|
83
|
-
{ id: 'category', label: 'Category', icon: Tag, value: <Badge variant="secondary">Wellness</Badge> },
|
|
84
|
-
{ id: 'status', label: 'Status', icon: BadgeCheck, value: <Badge variant="success">Active</Badge> },
|
|
85
|
-
{ id: 'created', label: 'Created', icon: CalendarDays, value: 'Apr 12, 2026' },
|
|
86
|
-
{ id: 'updated', label: 'Last updated', icon: Clock, value: 'Apr 28, 2026 · 14:32' },
|
|
87
|
-
{ id: 'version', label: 'Version', icon: GitBranch, value: <CopyableValue value="v3.2.1" /> },
|
|
88
|
-
];
|
|
89
|
-
|
|
90
|
-
const ROW_DETAIL: MetadataListItem[] = [
|
|
91
|
-
{ id: 'id', label: 'Booking ID', value: <CopyableValue value="BKG-2026-0412" /> },
|
|
92
|
-
{ id: 'customer', label: 'Customer', value: <PersonValue initials="MP" name="Sarah Smitha" sub="maria@example.com" /> },
|
|
93
|
-
{ id: 'experience', label: 'Experience', value: 'Spa Day Voucher', description: 'Wellness · 90 minutes · 2 guests' },
|
|
94
|
-
{ id: 'scheduled', label: 'Scheduled for', value: 'Apr 18, 2026 · 14:00', description: 'Confirmed by SMS' },
|
|
95
|
-
{ id: 'status', label: 'Status', value: <Badge variant="success">Paid</Badge> },
|
|
96
|
-
{ id: 'amount', label: 'Total', value: <Text tag="span" weight="semibold" className="tabular-nums">180.00 USD</Text> },
|
|
97
|
-
];
|
|
98
|
-
|
|
99
|
-
const RECEIPT_ROWS: MetadataListItem[] = [
|
|
100
|
-
{ id: 'sub', label: 'Subtotal', value: '180.00 USD' },
|
|
101
|
-
{ id: 'tax', label: 'VAT (20%)', value: '36.00 USD' },
|
|
102
|
-
{ id: 'discount', label: 'Discount', value: <Text tag="span" weight="medium" type="success" className="tabular-nums">−25.00 USD</Text> },
|
|
103
|
-
{ id: 'total', label: 'Total', value: <Text tag="span" weight="bold" className="tabular-nums">191.00 USD</Text> },
|
|
104
|
-
];
|
|
105
|
-
|
|
106
|
-
const CONTACT_META: MetadataListItem[] = [
|
|
107
|
-
{ id: 'name', label: 'Name', icon: User, value: 'Sarah Smitha' },
|
|
108
|
-
{ id: 'email', label: 'Email', icon: Mail, value: <CopyableValue value="maria@example.com" mono={false} /> },
|
|
109
|
-
{ id: 'phone', label: 'Phone', icon: Phone, value: <CopyableValue value="+1 888 123 456" /> },
|
|
110
|
-
{ id: 'address', label: 'Address', icon: MapPin, value: 'ul. Vitosha 24, New York 1000', description: 'USA' },
|
|
111
|
-
];
|
|
112
|
-
|
|
113
|
-
const PAYMENT_META: MetadataListItem[] = [
|
|
114
|
-
{ id: 'card', label: 'Card', icon: CreditCard, value: 'Visa ending 4242' },
|
|
115
|
-
{ id: 'billing', label: 'Billing address', icon: Building2, value: 'ul. Slavyanska 9, Los Angeles' },
|
|
116
|
-
{ id: 'verified', label: 'Verified', icon: ShieldCheck, value: <Badge variant="success">Yes</Badge> },
|
|
117
|
-
];
|
|
118
|
-
|
|
119
|
-
const PILL_META: MetadataListItem[] = [
|
|
120
|
-
{ id: 'created', label: 'Created', value: 'Apr 12, 2026' },
|
|
121
|
-
{ id: 'by', label: 'By', value: 'Sarah P.' },
|
|
122
|
-
{ id: 'version', label: 'Version', value: 'v3.2.1' },
|
|
123
|
-
{ id: 'env', label: 'Env', value: 'production' },
|
|
124
|
-
];
|
|
125
|
-
|
|
126
|
-
const EMPTY_META: MetadataListItem[] = [
|
|
127
|
-
{ id: 'sku', label: 'SKU', value: 'SP-204-WL' },
|
|
128
|
-
{ id: 'isbn', label: 'ISBN', value: null, emptyLabel: 'Not assigned' },
|
|
129
|
-
{ id: 'barcode', label: 'Barcode', value: undefined },
|
|
130
|
-
{ id: 'website', label: 'Website', icon: Globe, render: () => (
|
|
131
|
-
<a href="#" className="inline-flex items-center gap-1 text-primary hover:underline">
|
|
132
|
-
<Text tag="span" weight="medium">example.com</Text>
|
|
133
|
-
<ExternalLink className="size-3" aria-hidden="true" />
|
|
134
|
-
</a>
|
|
135
|
-
) },
|
|
136
|
-
];
|
|
137
|
-
|
|
138
|
-
const SHORT_PROFILE: MetadataListItem[] = [
|
|
139
|
-
{ id: 'plan', label: 'Plan', value: 'Pro Annual' },
|
|
140
|
-
{ id: 'seats', label: 'Seats', value: '12 / 50' },
|
|
141
|
-
{ id: 'next', label: 'Next billing', value: 'May 12, 2026' },
|
|
142
|
-
];
|
|
143
|
-
|
|
144
|
-
export function APISurface() {
|
|
145
|
-
return (
|
|
146
|
-
<>
|
|
147
|
-
<Text type="secondary">
|
|
148
|
-
Each item: <code className="rounded bg-muted px-1 py-0.5 text-xs">{'{ id, label, value, icon?, tooltip?, description?, render?, emptyLabel? }'}</code>. List-level props: <code className="rounded bg-muted px-1 py-0.5 text-xs">layout</code>, <code className="rounded bg-muted px-1 py-0.5 text-xs">columns</code> (1–4), <code className="rounded bg-muted px-1 py-0.5 text-xs">dense</code>, <code className="rounded bg-muted px-1 py-0.5 text-xs">title</code>, <code className="rounded bg-muted px-1 py-0.5 text-xs">titleSeparator</code>, <code className="rounded bg-muted px-1 py-0.5 text-xs">separator</code>. Per-item <code className="rounded bg-muted px-1 py-0.5 text-xs">render</code> escapes the default rendering — perfect for status pills, copyable IDs, links, inline edits.
|
|
149
|
-
</Text>
|
|
150
|
-
</>
|
|
151
|
-
);
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
export function Vertical2ColumnNoIcons() {
|
|
155
|
-
return (
|
|
156
|
-
<>
|
|
157
|
-
<SmartCard title="Account details" padding="base">
|
|
158
|
-
<MetadataList items={SIMPLE_NO_ICONS} columns={2} />
|
|
159
|
-
</SmartCard>
|
|
160
|
-
</>
|
|
161
|
-
);
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
export function VerticalSingleColumnNoIcons() {
|
|
165
|
-
return (
|
|
166
|
-
<>
|
|
167
|
-
<div className="max-w-sm rounded-xl border border-border bg-card p-5">
|
|
168
|
-
<MetadataList items={SIMPLE_NO_ICONS.slice(0, 4)} columns={1} />
|
|
169
|
-
</div>
|
|
170
|
-
</>
|
|
171
|
-
);
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
export function RowsTwoColumnWithHairlines() {
|
|
175
|
-
return (
|
|
176
|
-
<>
|
|
177
|
-
<SmartCard title="Booking #BKG-2026-0412" padding="base">
|
|
178
|
-
<MetadataList items={ROW_DETAIL} layout="rows" />
|
|
179
|
-
</SmartCard>
|
|
180
|
-
</>
|
|
181
|
-
);
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
export function RowsReceiptStyle() {
|
|
185
|
-
return (
|
|
186
|
-
<>
|
|
187
|
-
<div className="max-w-sm rounded-xl border border-border bg-card p-5">
|
|
188
|
-
<MetadataList items={RECEIPT_ROWS} layout="rows" dense />
|
|
189
|
-
</div>
|
|
190
|
-
</>
|
|
191
|
-
);
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
export function RowsWithIconsTooltips() {
|
|
195
|
-
return (
|
|
196
|
-
<>
|
|
197
|
-
<SmartCard title="Product details" padding="base">
|
|
198
|
-
<MetadataList items={ENTITY_WITH_ICONS} layout="rows" />
|
|
199
|
-
</SmartCard>
|
|
200
|
-
</>
|
|
201
|
-
);
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
export function SectionedMultiCard() {
|
|
205
|
-
return (
|
|
206
|
-
<>
|
|
207
|
-
<div className="grid gap-4 lg:grid-cols-2">
|
|
208
|
-
<SmartCard title="Customer">
|
|
209
|
-
<MetadataList items={CONTACT_META} layout="rows" />
|
|
210
|
-
</SmartCard>
|
|
211
|
-
<SmartCard title="Payment">
|
|
212
|
-
<MetadataList items={PAYMENT_META} layout="rows" />
|
|
213
|
-
</SmartCard>
|
|
214
|
-
</div>
|
|
215
|
-
</>
|
|
216
|
-
);
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
export function Dense4ColumnOverview() {
|
|
220
|
-
return (
|
|
221
|
-
<>
|
|
222
|
-
<div className="rounded-xl border border-border bg-card p-5">
|
|
223
|
-
<MetadataList items={ENTITY_WITH_ICONS} columns={4} dense />
|
|
224
|
-
</div>
|
|
225
|
-
</>
|
|
226
|
-
);
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
export function Example3ColumnWithIcons() {
|
|
230
|
-
return (
|
|
231
|
-
<>
|
|
232
|
-
<div className="rounded-xl border border-border bg-card p-5">
|
|
233
|
-
<MetadataList items={ENTITY_WITH_ICONS} columns={3} />
|
|
234
|
-
</div>
|
|
235
|
-
</>
|
|
236
|
-
);
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
export function HorizontalPillSummary() {
|
|
240
|
-
return (
|
|
241
|
-
<>
|
|
242
|
-
<div className="space-y-3">
|
|
243
|
-
<div className="rounded-lg border border-border bg-card px-4 py-3">
|
|
244
|
-
<MetadataList items={PILL_META} layout="horizontal" separator="·" />
|
|
245
|
-
</div>
|
|
246
|
-
<div className="rounded-lg border border-border bg-card px-4 py-3">
|
|
247
|
-
<MetadataList items={PILL_META} layout="horizontal" separator=":" itemSeparator />
|
|
248
|
-
</div>
|
|
249
|
-
<div className="rounded-lg bg-muted/30 px-4 py-3">
|
|
250
|
-
<MetadataList items={SHORT_PROFILE} layout="horizontal" separator=":" itemSeparator="•" />
|
|
251
|
-
</div>
|
|
252
|
-
</div>
|
|
253
|
-
</>
|
|
254
|
-
);
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
export function WithTitleSeparator() {
|
|
258
|
-
return (
|
|
259
|
-
<>
|
|
260
|
-
<MetadataList
|
|
261
|
-
title="Inventory metadata"
|
|
262
|
-
titleSeparator
|
|
263
|
-
items={ENTITY_WITH_ICONS}
|
|
264
|
-
columns={2}
|
|
265
|
-
/>
|
|
266
|
-
</>
|
|
267
|
-
);
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
export function EmptyStateFallbacksCustomRenderers() {
|
|
271
|
-
return (
|
|
272
|
-
<>
|
|
273
|
-
<SmartCard title="Mixed" padding="base">
|
|
274
|
-
<MetadataList items={EMPTY_META} layout="rows" />
|
|
275
|
-
</SmartCard>
|
|
276
|
-
</>
|
|
277
|
-
);
|
|
278
|
-
}
|
|
279
|
-
`;function Q(e){let t={code:`code`,p:`p`,pre:`pre`,...e.components};return T||$(`Examples`,!1),z||$(`Examples.APISurface`,!0),K||$(`Examples.Dense4ColumnOverview`,!0),X||$(`Examples.EmptyStateFallbacksCustomRenderers`,!0),q||$(`Examples.Example3ColumnWithIcons`,!0),J||$(`Examples.HorizontalPillSummary`,!0),U||$(`Examples.RowsReceiptStyle`,!0),H||$(`Examples.RowsTwoColumnWithHairlines`,!0),W||$(`Examples.RowsWithIconsTooltips`,!0),G||$(`Examples.SectionedMultiCard`,!0),B||$(`Examples.Vertical2ColumnNoIcons`,!0),V||$(`Examples.VerticalSingleColumnNoIcons`,!0),Y||$(`Examples.WithTitleSeparator`,!0),(0,D.jsxs)(a,{title:`Metadata list`,description:`Flexible label/value list for entity metadata. Three layouts (vertical grid, horizontal pills, two-column rows), per-item icons, tooltips, descriptions, and custom renderers — with first-class empty-state handling.`,layer:`base`,status:`ready`,sourcePath:`src/components/base/display/metadata`,children:[(0,D.jsx)(o,{title:`Overview`,id:`overview`,children:(0,D.jsxs)(t.p,{children:[(0,D.jsx)(t.code,{children:`MetadataList`}),` renders an array of `,(0,D.jsx)(t.code,{children:`{ id, label, value, icon?, tooltip?, description?, render?, emptyLabel? }`}),` items. List-level props pick the
|
|
280
|
-
`,(0,D.jsx)(t.code,{children:`layout`}),` (`,(0,D.jsx)(t.code,{children:`vertical`}),` / `,(0,D.jsx)(t.code,{children:`rows`}),` / `,(0,D.jsx)(t.code,{children:`horizontal`}),`), the `,(0,D.jsx)(t.code,{children:`columns`}),` count (1–4),
|
|
281
|
-
and density. Per-item `,(0,D.jsx)(t.code,{children:`render`}),` escapes the default formatting for status
|
|
282
|
-
pills, copyable IDs, links, or inline edits.`]})}),(0,D.jsxs)(o,{title:`Consumer usage`,id:`usage`,children:[(0,D.jsx)(t.p,{children:`Consumers import metadata primitives from the exact nested package entrypoint:`}),(0,D.jsx)(t.pre,{children:(0,D.jsx)(t.code,{className:`language-tsx`,children:`import { MetadataList } from 'admin-ui-starter-kit/base/display/metadata';
|
|
283
|
-
`})}),(0,D.jsxs)(t.p,{children:[`Use `,(0,D.jsx)(t.code,{children:`MetadataList`}),` for compact facts about a single entity: label/value
|
|
284
|
-
attributes, receipt rows, account properties, audit details, or operational
|
|
285
|
-
summaries. It is intentionally read-heavy and scan-first.`]}),(0,D.jsxs)(t.p,{children:[`Use `,(0,D.jsx)(t.code,{children:`Item`}),` instead when each row represents a separate object or action with a
|
|
286
|
-
title stack, media, and trailing controls. Use `,(0,D.jsx)(t.code,{children:`FormField`}),` when the row contains
|
|
287
|
-
an editable input. Metadata is for describing an entity; Item is for listing
|
|
288
|
-
entities or actions.`]})]}),(0,D.jsx)(o,{title:`API surface`,id:`api-surface`,children:(0,D.jsx)(s,{name:`APISurface`,source:Z,children:(0,D.jsx)(z,{})})}),(0,D.jsxs)(o,{title:`Vertical grid`,id:`vertical`,children:[(0,D.jsx)(s,{name:`Vertical2ColumnNoIcons`,source:Z,children:(0,D.jsx)(B,{})}),(0,D.jsx)(s,{name:`VerticalSingleColumnNoIcons`,source:Z,children:(0,D.jsx)(V,{})}),(0,D.jsx)(s,{name:`Example3ColumnWithIcons`,source:Z,children:(0,D.jsx)(q,{})}),(0,D.jsx)(s,{name:`Dense4ColumnOverview`,source:Z,children:(0,D.jsx)(K,{})})]}),(0,D.jsxs)(o,{title:`Two-column rows`,id:`rows`,children:[(0,D.jsx)(s,{name:`RowsTwoColumnWithHairlines`,source:Z,children:(0,D.jsx)(H,{})}),(0,D.jsx)(s,{name:`RowsReceiptStyle`,source:Z,children:(0,D.jsx)(U,{})}),(0,D.jsx)(s,{name:`RowsWithIconsTooltips`,source:Z,children:(0,D.jsx)(W,{})})]}),(0,D.jsx)(o,{title:`Horizontal pills`,id:`horizontal`,children:(0,D.jsx)(s,{name:`HorizontalPillSummary`,source:Z,children:(0,D.jsx)(J,{})})}),(0,D.jsxs)(o,{title:`Composition`,id:`composition`,children:[(0,D.jsx)(s,{name:`SectionedMultiCard`,source:Z,children:(0,D.jsx)(G,{})}),(0,D.jsx)(s,{name:`WithTitleSeparator`,source:Z,children:(0,D.jsx)(Y,{})}),(0,D.jsx)(s,{name:`EmptyStateFallbacksCustomRenderers`,source:Z,children:(0,D.jsx)(X,{})})]}),(0,D.jsx)(o,{title:`API`,id:`api`,children:(0,D.jsx)(ae,{component:`MetadataList`})})]})}function ce(e={}){let{wrapper:t}=e.components||{};return t?(0,D.jsx)(t,{...e,children:(0,D.jsx)(Q,{...e})}):Q(e)}function $(e,t){throw Error(`Expected `+(t?`component`:`object`)+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}export{ce as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./chunk-QTnfLwEv.js";import{n as t}from"./react-dom-Bz4cALsF.js";import{Er as n,Tr as r,a as i,c as a,o,r as s}from"./example-BIrQab7K.js";import{t as c}from"./info-DFu8OfxV.js";import{k as l,n as u,s as d}from"./index-Cz4UGUT2.js";import{t as f}from"./separator-BjGdXNcn.js";var p=e(t(),1),m={formatInfoAriaLabel:e=>`${e} info`,infoFallback:`Info`},h=d(),g={1:`grid-cols-1`,2:`grid-cols-1 sm:grid-cols-2`,3:`grid-cols-1 sm:grid-cols-2 lg:grid-cols-3`,4:`grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4`},_={start:`justify-start`,end:`justify-end`,center:`justify-center`,between:`justify-between`,around:`justify-around`,evenly:`justify-evenly`},v={start:`items-start`,center:`items-center`,end:`items-end`,baseline:`items-baseline`},y=(e,t)=>e.id?e.id:`metadata-${typeof e.label==`string`?e.label:`${t}`}-${t}`;function b({items:e,columns:t=2,dense:d=!1,emptyLabel:b=`—`,title:x,titleSeparator:S=!1,className:C,gapClassName:w,labelClassName:T,valueClassName:E,descriptionClassName:D,layout:O=`vertical`,justify:k=`start`,align:A=`center`,separator:j=`: `,itemSeparator:M=!1,wrap:N=!0,strings:P}){let F=l(m,P),I=p.useMemo(()=>e.filter(Boolean),[e]);if(p.useEffect(()=>{},[O,I]),I.length===0)return null;let L=g[t]??g[2],R=w??(d?`gap-2`:`gap-3`),z=d?`text-xxs`:`text-xs`,B=`text-sm`,V=x!=null,H=V&&S;if(O===`horizontal`){let e=_[k]??_.start,t=v[A]??v.center,l=typeof M==`string`?M:M?` | `:``,m=d?`gap-2`:`gap-3`,g=N?`flex-wrap`:`flex-nowrap`;return(0,h.jsxs)(`div`,{className:u(`metadata-list--component`,`metadata-list-container`,C),children:[!!V&&(0,h.jsx)(r,{tag:`h6`,className:`mb-1.5 font-medium text-muted-foreground uppercase tracking-wide`,children:x}),!!H&&(0,h.jsx)(f,{className:`mb-2`}),(0,h.jsx)(`div`,{className:u(`flex`,g,e,t,m),children:I.map((e,t)=>{let r=y(e,t),f=e.emptyLabel??b,m=e.value??f,g=e.icon,_=e.tooltip!==null&&e.tooltip!==void 0,v=typeof e.render==`function`,x=l&&t<I.length-1;return(0,h.jsxs)(p.Fragment,{children:[(0,h.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[!!g&&(0,h.jsx)(g,{className:u(`flex-shrink-0`,d?`h-3 w-3`:`h-3.5 w-3.5`,`text-muted-foreground`)}),(0,h.jsx)(n,{size:`xs`,type:`secondary`,className:u(`metadata--field tracking-wide whitespace-nowrap`,z,T),children:e.label}),!!_&&(0,h.jsxs)(i,{children:[(0,h.jsx)(a,{render:t=>(0,h.jsx)(s,{...t,type:`button`,variant:`secondary`,buttonStyle:`ghost`,size:`icon-xs`,className:u(`inline-flex items-center`,t.className),"aria-label":typeof e.label==`string`?F.formatInfoAriaLabel(e.label):F.infoFallback,children:(0,h.jsx)(c,{className:`h-3 w-3 text-muted-foreground cursor-help flex-shrink-0`})})}),(0,h.jsx)(o,{side:`top`,align:`start`,className:`max-w-xs`,children:(0,h.jsx)(n,{type:`inverse`,size:`xs`,children:e.tooltip})})]}),(0,h.jsx)(n,{size:`xs`,type:`secondary`,children:j}),v?e.render?.(e):(0,h.jsx)(n,{weight:`medium`,className:u(B,E),children:m})]}),!!x&&(0,h.jsx)(n,{size:`xs`,type:`secondary`,children:l})]},r)})})]})}if(O===`rows`){let e=d?`py-1.5`:`py-2.5`;return(0,h.jsxs)(`div`,{className:u(`metadata-list--component`,`metadata-list-container`,C),children:[!!V&&(0,h.jsx)(r,{tag:`h6`,className:`font-medium text-muted-foreground uppercase tracking-wide mb-2`,children:x}),!!H&&(0,h.jsx)(f,{className:`mb-2`}),(0,h.jsx)(`dl`,{className:`divide-y divide-border/50`,children:I.map((t,r)=>{let l=y(t,r),f=t.emptyLabel??b,p=t.value??f,m=t.icon,g=t.tooltip!==null&&t.tooltip!==void 0,_=typeof t.render==`function`;return(0,h.jsxs)(`div`,{className:u(`grid items-baseline gap-x-4 gap-y-1 grid-cols-[minmax(120px,1fr)_2fr]`,e),children:[(0,h.jsxs)(`dt`,{className:`flex items-center gap-1.5 min-w-0`,children:[!!m&&(0,h.jsx)(m,{className:u(`flex-shrink-0 text-muted-foreground`,d?`h-3 w-3`:`h-3.5 w-3.5`)}),(0,h.jsx)(n,{type:`secondary`,className:u(`metadata--field truncate tracking-wide`,z,T),children:t.label}),!!g&&(0,h.jsxs)(i,{children:[(0,h.jsx)(a,{render:e=>(0,h.jsx)(s,{...e,type:`button`,variant:`secondary`,buttonStyle:`ghost`,size:`icon-xs`,className:u(`inline-flex items-center`,e.className),"aria-label":typeof t.label==`string`?F.formatInfoAriaLabel(t.label):F.infoFallback,children:(0,h.jsx)(c,{className:`h-3 w-3 text-muted-foreground cursor-help flex-shrink-0`})})}),(0,h.jsx)(o,{side:`top`,align:`start`,className:`max-w-xs`,children:(0,h.jsx)(n,{type:`inverse`,size:`xs`,children:t.tooltip})})]})]}),(0,h.jsxs)(`dd`,{className:`min-w-0`,children:[_?t.render?.(t):(0,h.jsx)(n,{weight:`medium`,className:u(`break-words`,E),children:p}),!!t.description&&(0,h.jsx)(n,{size:`xs`,type:`secondary`,className:u(`mt-0.5`,D),children:t.description})]})]},l)})})]})}return(0,h.jsxs)(`div`,{className:u(`metadata-list--component`,`metadata-list-container`,C),children:[!!V&&(0,h.jsx)(r,{tag:`h6`,className:`mb-1.5 font-medium text-muted-foreground uppercase tracking-wide`,children:x}),!!H&&(0,h.jsx)(f,{className:`mb-2`}),(0,h.jsx)(`div`,{className:u(`grid`,L,R),children:I.map((e,t)=>{let r=y(e,t),l=e.emptyLabel??b,f=e.value??l,p=e.icon,m=e.tooltip!==null&&e.tooltip!==void 0,g=typeof e.render==`function`;return(0,h.jsxs)(`div`,{className:`space-y-0.5`,children:[(0,h.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[!!p&&(0,h.jsx)(p,{className:u(`flex-shrink-0`,d?`h-3 w-3`:`h-3.5 w-3.5`,`text-muted-foreground`)}),(0,h.jsx)(n,{size:`xs`,type:`secondary`,className:u(`metadata--field tracking-wide`,z,T),children:e.label}),!!m&&(0,h.jsxs)(i,{children:[(0,h.jsx)(a,{render:t=>(0,h.jsx)(s,{...t,type:`button`,variant:`secondary`,buttonStyle:`ghost`,size:`icon-xs`,className:u(`inline-flex items-center`,t.className),"aria-label":typeof e.label==`string`?F.formatInfoAriaLabel(e.label):F.infoFallback,children:(0,h.jsx)(c,{className:`h-3 w-3 text-muted-foreground cursor-help flex-shrink-0`})})}),(0,h.jsx)(o,{side:`top`,align:`start`,className:`max-w-xs`,children:(0,h.jsx)(n,{type:`inverse`,size:`xs`,children:e.tooltip})})]})]}),g?e.render?.(e):(0,h.jsx)(n,{weight:`medium`,className:u(B,E),children:f}),!!e.description&&(0,h.jsx)(n,{size:`xs`,type:`secondary`,className:u(D),children:e.description})]},r)})})]})}b.displayName=`MetadataList`;export{b as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Er as e,r as t}from"./example-BIrQab7K.js";import{t as n}from"./calendar-DTgagmt7.js";import{n as r,s as i}from"./index-Cz4UGUT2.js";import{t as a}from"./metric-guQTLTAa.js";var o=i();function s({metrics:i,period:s,onPeriodChange:c,variant:l=`default`,size:u=`sm`,showSparklines:d=!0,showChanges:f=!0,footerText:p,className:m}){let h=(0,o.jsx)(`div`,{className:`grid min-w-0 flex-1 grid-cols-1 divide-y divide-border lg:flex lg:items-stretch lg:divide-x lg:divide-y-0`,children:i.map(e=>(0,o.jsx)(`div`,{className:`min-w-0 px-4 py-2.5 lg:min-w-36 lg:flex-1`,children:(0,o.jsx)(a,{data:e,variant:`default`,size:u,showSparkline:d,showChange:f})},e.id))}),g=!!s&&(0,o.jsx)(`div`,{className:`flex shrink-0 items-center border-b border-border px-3 py-2 lg:border-b-0 lg:py-0`,children:(0,o.jsxs)(t,{variant:`secondary`,buttonStyle:`ghost`,className:`gap-1.5`,onClick:c?()=>c(s.value):void 0,children:[(0,o.jsx)(n,{className:`size-3.5`,"aria-hidden":`true`}),(0,o.jsx)(e,{size:`xs`,weight:`medium`,children:s.label})]})});return l===`gradient`?(0,o.jsxs)(`div`,{className:r(`metric-bar--component`,`w-full`,`rounded-lg bg-gradient-to-r from-primary/8 via-info/5 to-success/8 p-[1px]`,m),children:[(0,o.jsxs)(`div`,{className:`flex min-w-0 flex-col overflow-hidden rounded-radius bg-card lg:flex-row`,children:[g&&(0,o.jsxs)(o.Fragment,{children:[g,(0,o.jsx)(`div`,{className:`hidden w-px bg-border lg:block`,"aria-hidden":`true`})]}),h]}),!!p&&(0,o.jsx)(`div`,{className:`rounded-b-radius border-t border-border/50 bg-card px-4 py-2`,children:(0,o.jsx)(e,{size:`xxs`,type:`discrete`,children:p})})]}):(0,o.jsxs)(`div`,{className:r(`metric-bar--component flex w-full flex-col overflow-hidden rounded-lg border border-border bg-card shadow-sm`,m),children:[(0,o.jsxs)(`div`,{className:`flex min-w-0 flex-col overflow-hidden lg:flex-row`,children:[g&&(0,o.jsxs)(o.Fragment,{children:[g,(0,o.jsx)(`div`,{className:`hidden w-px bg-border lg:block`,"aria-hidden":`true`})]}),h]}),!!p&&(0,o.jsx)(`div`,{className:`border-t border-border/50 px-4 py-2`,children:(0,o.jsx)(e,{size:`xxs`,type:`discrete`,children:p})})]})}s.displayName=`MetricBar`;export{s as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,s as t}from"./index-Cz4UGUT2.js";import{t as n}from"./metric-guQTLTAa.js";var r=t(),i={sm:`gap-2`,md:`gap-3`,lg:`gap-4`};function a(e){return e<=1?`grid-cols-1`:e===2?`grid-cols-1 sm:grid-cols-2`:e===3?`grid-cols-1 sm:grid-cols-2 lg:grid-cols-3`:e===4?`grid-cols-1 sm:grid-cols-2 lg:grid-cols-4`:e===5||e===6?`grid-cols-2 sm:grid-cols-3 lg:grid-cols-6`:`grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4`}var o={1:`grid-cols-1`,2:`grid-cols-1 sm:grid-cols-2`,3:`grid-cols-1 sm:grid-cols-2 lg:grid-cols-3`,4:`grid-cols-1 sm:grid-cols-2 lg:grid-cols-4`,6:`grid-cols-2 sm:grid-cols-3 lg:grid-cols-6`};function s({metrics:t,variant:s=`card`,size:c=`md`,colorScheme:l=`default`,columns:u=`auto`,gap:d=`md`,showSparklines:f=!0,showChanges:p=!0,showIcons:m=!0,loading:h=!1,className:g}){return(0,r.jsx)(`div`,{className:e(`metric-grid--component`,`grid`,u===`auto`?a(t.length):o[u],i[d],g),children:t.map(e=>(0,r.jsx)(n,{data:e,variant:s,size:c,colorScheme:l,showSparkline:f,showChange:p,showIcon:m,loading:h},e.id))})}s.displayName=`MetricGrid`;export{s as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./chunk-QTnfLwEv.js";import{n as t}from"./react-dom-Bz4cALsF.js";import{Er as n,Tr as r}from"./example-BIrQab7K.js";import{t as i}from"./arrow-up-right-CuAsO3-r.js";import{n as a,s as o}from"./index-Cz4UGUT2.js";import{t as s}from"./smart-card-B4P_C0nk.js";import{Zn as c,t as l,u}from"./AreaChart-DUe3j5uB.js";import{t as d}from"./analytics.strings-B9262Jmq.js";import{n as f,t as p}from"./format-metric-value-BTsvOjZQ.js";import{t as m}from"./metric-trend-chip-DehaJ3nC.js";var h=e(t(),1),g=o(),_={positive:`var(--success)`,negative:`var(--destructive)`,neutral:`var(--muted-foreground)`};function v({data:e,trend:t=`neutral`,color:n,className:r,animated:i=!0,"aria-label":o=`Trend sparkline`}){let s=(0,h.useId)(),d=(0,h.useMemo)(()=>`metric-spark-${s.replaceAll(`:`,``)}`,[s]),f=n??_[t],p=(0,h.useMemo)(()=>!Array.isArray(e)||e.length===0?[]:e.map((e,t)=>({i:t,v:e})),[e]);return p.length===0?(0,g.jsx)(`div`,{className:a(`metric-sparkline--component`,`w-full`,r),"aria-hidden":`true`}):(0,g.jsx)(`div`,{className:a(`w-full`,r),role:`img`,"aria-label":o,children:(0,g.jsx)(c,{width:`100%`,height:`100%`,initialDimension:{width:1,height:1},children:(0,g.jsxs)(l,{data:p,margin:{top:2,right:0,bottom:0,left:0},children:[(0,g.jsx)(`defs`,{children:(0,g.jsxs)(`linearGradient`,{id:d,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,g.jsx)(`stop`,{offset:`0%`,stopColor:f,stopOpacity:.25}),(0,g.jsx)(`stop`,{offset:`100%`,stopColor:f,stopOpacity:0})]})}),(0,g.jsx)(u,{type:`monotone`,dataKey:`v`,stroke:f,strokeWidth:1.75,fill:`url(#${d})`,dot:!1,activeDot:!1,isAnimationActive:i,animationDuration:600})]})})})}v.displayName=`MetricSparkline`;var y=({className:e})=>(0,g.jsx)(`div`,{className:a(`animate-pulse rounded bg-muted`,e)});function b({variant:e=`default`,size:t=`md`,className:n}){let r=t===`sm`?`p-3`:t===`lg`?`p-5`:`p-4`;return e===`card`||e===`bordered`||e===`accent`||e===`colored`?(0,g.jsxs)(`div`,{className:a(`metric-skeleton--component`,`rounded-xl border border-border bg-card shadow-sm`,r,n),"aria-busy":`true`,"aria-live":`polite`,children:[(0,g.jsx)(y,{className:`h-3 w-24`}),(0,g.jsx)(y,{className:a(`mt-3`,t===`lg`?`h-9 w-40`:`h-7 w-32`)}),(0,g.jsx)(y,{className:`mt-2 h-3 w-20`}),(0,g.jsx)(y,{className:`mt-3 h-8 w-full`})]}):e===`compact`?(0,g.jsxs)(`div`,{className:a(`flex items-center gap-3`,n),"aria-busy":`true`,children:[(0,g.jsx)(y,{className:`size-9 rounded-lg`}),(0,g.jsxs)(`div`,{className:`flex-1 space-y-1.5`,children:[(0,g.jsx)(y,{className:`h-3 w-20`}),(0,g.jsx)(y,{className:`h-4 w-28`})]}),(0,g.jsx)(y,{className:`h-5 w-12 rounded-full`})]}):e===`minimal`?(0,g.jsxs)(`div`,{className:a(`inline-flex items-baseline gap-2`,n),"aria-busy":`true`,children:[(0,g.jsx)(y,{className:`h-3 w-12`}),(0,g.jsx)(y,{className:`h-3 w-16`})]}):(0,g.jsxs)(`div`,{className:a(`flex flex-col gap-1.5`,r,n),"aria-busy":`true`,children:[(0,g.jsx)(y,{className:`h-3 w-20`}),(0,g.jsx)(y,{className:`h-5 w-28`}),(0,g.jsx)(y,{className:`mt-1 h-6 w-full`})]})}b.displayName=`MetricSkeleton`;var x={default:{border:`border-border`,bg:`bg-card`,bar:`bg-foreground`,dot:`bg-foreground`,ring:`ring-border`},primary:{border:`border-primary/25`,bg:`bg-primary/5`,bar:`bg-primary`,dot:`bg-primary`,ring:`ring-primary/20`},success:{border:`border-success/30`,bg:`bg-success/5`,bar:`bg-success`,dot:`bg-success`,ring:`ring-success/20`},warning:{border:`border-warning/40`,bg:`bg-warning/10`,bar:`bg-warning`,dot:`bg-warning`,ring:`ring-warning/30`},danger:{border:`border-destructive/30`,bg:`bg-destructive/5`,bar:`bg-destructive`,dot:`bg-destructive`,ring:`ring-destructive/20`},info:{border:`border-info/30`,bg:`bg-info/5`,bar:`bg-info`,dot:`bg-info`,ring:`ring-info/20`}},S={sm:`text-sm`,md:`text-lg`,lg:`text-xl`},C={sm:`text-xl`,md:`text-3xl`,lg:`text-4xl`},w={sm:`h-6`,md:`h-8`,lg:`h-10`},T=16;function E(e){let{data:t,variant:r=`default`,size:i=`md`,colorScheme:o=`default`,showSparkline:s=!0,showChange:c=!0,showIcon:l=!0,loading:u=!1,error:m=!1,errorLabel:_,progress:v=0,className:y,"aria-label":x}=e,S=(0,h.useMemo)(()=>p(t),[t]),C=(0,h.useMemo)(()=>f(t),[t]);if(u)return(0,g.jsx)(b,{variant:r,size:i,className:a(`metric--component`,y)});if(m)return(0,g.jsx)(`div`,{className:a(`flex items-center justify-center rounded-lg border border-border bg-card p-4 text-muted-foreground`,y),children:(0,g.jsx)(n,{children:_??d.metricErrorLabel})});let w={data:t,formattedValue:S,trend:C,size:i,showSparkline:s,showChange:c,showIcon:l,colorScheme:o,ariaLabel:x??t.label,className:y};switch(r){case`card`:return(0,g.jsx)(O,{...w});case`compact`:return(0,g.jsx)(k,{...w});case`minimal`:return(0,g.jsx)(A,{...w});case`bordered`:return(0,g.jsx)(j,{...w});case`accent`:return(0,g.jsx)(M,{...w});case`colored`:return(0,g.jsx)(N,{...w,progress:v});default:return(0,g.jsx)(D,{...w})}}E.displayName=`Metric`;function D({data:e,formattedValue:t,trend:i,size:o,showSparkline:s,showChange:c,showIcon:l,ariaLabel:u,className:d}){let f=e.icon;return(0,g.jsxs)(`div`,{className:a(`flex min-w-0 flex-col gap-1`,d),"aria-label":u,children:[(0,g.jsxs)(`div`,{className:`flex items-center gap-1.5 min-w-0 text-muted-foreground`,children:[!!l&&!!f&&(0,g.jsx)(f,{className:`size-3.5 shrink-0`,"aria-hidden":`true`}),(0,g.jsx)(n,{size:`xs`,type:`secondary`,weight:`medium`,className:`truncate`,children:e.label})]}),(0,g.jsx)(r,{tag:`h5`,className:a(`font-bold tabular-nums tracking-tight border-none pb-0 leading-tight truncate`,S[o]),title:t,children:t}),!!c&&!!e.change&&(0,g.jsx)(`div`,{className:`min-w-0`,children:(0,g.jsx)(m,{change:e.change,trend:e.trend,size:o,variant:`compact`})}),!!e.subtitle&&(0,g.jsx)(n,{size:`xs`,type:`secondary`,className:`truncate`,children:e.subtitle}),!!s&&!!e.sparkline?.length&&(0,g.jsx)(v,{data:e.sparkline,trend:i,className:a(`mt-auto`,w[o])}),!!e.footer&&(0,g.jsx)(n,{size:`xxs`,type:`discrete`,className:`truncate`,children:e.footer})]})}function O({data:e,formattedValue:t,trend:i,size:o,showSparkline:c,showChange:l,showIcon:u,ariaLabel:d,className:f}){let p=e.icon,h=!!(e.href||e.onClick),_=o===`sm`?`sm`:o===`lg`?`lg`:`base`,y=(0,g.jsxs)(s,{title:e.label,icon:u&&p?(0,g.jsx)(p,{className:`size-4`,"aria-hidden":`true`}):null,tooltip:e.tooltip,padding:_,className:a(h&&`cursor-pointer transition-shadow hover:shadow-md`,f),"aria-label":d,children:[(0,g.jsxs)(`div`,{className:`flex items-baseline justify-between gap-3`,children:[(0,g.jsx)(r,{tag:o===`sm`?`h5`:o===`lg`?`h3`:`h4`,className:a(`font-bold tabular-nums tracking-tight border-none pb-0 leading-none`,C[o]),children:t}),!!l&&!!e.change&&(0,g.jsx)(m,{change:e.change,trend:e.trend,size:o,variant:`badge`})]}),!!e.subtitle&&(0,g.jsx)(n,{type:`secondary`,className:`mt-2`,children:e.subtitle}),!!c&&!!e.sparkline?.length&&(0,g.jsx)(v,{data:e.sparkline,trend:i,className:a(`mt-3`,o===`lg`?`h-12`:`h-10`)}),!!e.footer&&(0,g.jsx)(n,{size:`xs`,type:`secondary`,className:`mt-2`,children:e.footer})]});return h&&e.onClick?(0,g.jsx)(`div`,{role:`button`,tabIndex:0,onClick:e.onClick,onKeyDown:t=>(t.key===`Enter`||t.key===` `)&&e.onClick?.(),className:`rounded-xl focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/40`,children:y}):y}function k({data:e,formattedValue:t,size:r,showChange:i,showIcon:o,ariaLabel:s,className:c}){let l=e.icon;return(0,g.jsxs)(`div`,{className:a(`flex items-center gap-3`,c),"aria-label":s,children:[!!o&&!!l&&(0,g.jsx)(`span`,{className:`inline-flex size-9 shrink-0 items-center justify-center rounded-lg bg-muted/60 text-muted-foreground`,children:(0,g.jsx)(l,{className:`size-4`,"aria-hidden":`true`})}),(0,g.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,g.jsx)(n,{size:`xs`,type:`secondary`,className:`truncate`,children:e.label}),(0,g.jsx)(n,{tag:`span`,size:r===`sm`?`sm`:`lg`,weight:`bold`,className:`block truncate tabular-nums`,children:t})]}),!!i&&!!e.change&&(0,g.jsx)(m,{change:e.change,trend:e.trend,size:r,variant:`badge`,className:`shrink-0`})]})}function A({data:e,formattedValue:t,size:r,showChange:i,ariaLabel:o,className:s}){return(0,g.jsxs)(`span`,{className:a(`inline-flex items-baseline gap-2`,s),"aria-label":o,children:[(0,g.jsxs)(n,{tag:`span`,size:r===`lg`?`sm`:`xs`,type:`secondary`,children:[e.label,`:`]}),(0,g.jsx)(n,{tag:`span`,size:r===`lg`?`sm`:`xs`,weight:`semibold`,className:`tabular-nums`,children:t}),!!i&&!!e.change&&(0,g.jsx)(m,{change:e.change,trend:e.trend,size:`sm`,variant:`inline`})]})}function j({data:e,formattedValue:t,trend:i,size:o,showSparkline:s,showChange:c,showIcon:l,colorScheme:u,ariaLabel:d,className:f}){let p=e.icon,h=x[u];return(0,g.jsxs)(`div`,{className:a(`flex flex-col gap-3 rounded-xl border p-4 shadow-sm`,h.border,h.bg,f),"aria-label":d,children:[(0,g.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,g.jsxs)(`div`,{className:`flex items-center gap-2 text-muted-foreground`,children:[!!l&&!!p&&(0,g.jsx)(p,{className:`size-4 shrink-0`,"aria-hidden":`true`}),(0,g.jsx)(n,{size:`xs`,type:`secondary`,weight:`medium`,children:e.label})]}),!!c&&!!e.change&&(0,g.jsx)(m,{change:e.change,trend:e.trend,size:o,variant:`badge`})]}),(0,g.jsx)(r,{tag:o===`lg`?`h3`:`h4`,className:a(`font-bold tabular-nums tracking-tight border-none pb-0 leading-none`,C[o]),children:t}),!!e.subtitle&&(0,g.jsx)(n,{size:`xs`,type:`secondary`,children:e.subtitle}),!!s&&!!e.sparkline?.length&&(0,g.jsx)(v,{data:e.sparkline,trend:i,className:w[o]}),!!e.footer&&(0,g.jsx)(n,{size:`xxs`,type:`discrete`,children:e.footer})]})}function M({data:e,formattedValue:t,trend:i,size:o,showSparkline:s,showChange:c,ariaLabel:l,className:u}){let d=e.icon;return(0,g.jsxs)(`div`,{className:a(`dark relative flex flex-col overflow-hidden rounded-lg bg-card text-card-foreground shadow-sm ring-1 ring-border`,u),"aria-label":l,children:[(0,g.jsxs)(`div`,{className:`flex flex-col gap-2 p-5`,children:[(0,g.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,g.jsx)(n,{size:`xs`,type:`secondary`,weight:`medium`,className:`uppercase tracking-wider`,children:e.label}),!!d&&(0,g.jsx)(`span`,{className:`inline-flex size-7 items-center justify-center rounded-lg bg-foreground/[0.08]`,children:(0,g.jsx)(d,{className:`size-3.5 text-muted-foreground`,"aria-hidden":`true`})})]}),(0,g.jsxs)(`div`,{className:`flex items-baseline gap-2.5`,children:[(0,g.jsx)(r,{tag:`h3`,className:a(`font-bold tabular-nums tracking-tight border-none pb-0 leading-none text-foreground`,C[o]),children:t}),!!c&&!!e.change&&(0,g.jsx)(m,{change:e.change,trend:e.trend,size:o,variant:`compact`})]}),!!e.subtitle&&(0,g.jsx)(n,{size:`xs`,type:`secondary`,children:e.subtitle})]}),!!s&&!!e.sparkline?.length&&(0,g.jsx)(v,{data:e.sparkline,trend:i,className:`h-12 w-full`})]})}function N({data:e,formattedValue:t,size:o,showChange:s,colorScheme:c,ariaLabel:l,className:u,progress:d=0}){let f=x[c==="default"?`primary`:c],p=Math.round(Math.min(Math.max(d,0),100)/100*T);return(0,g.jsxs)(`div`,{className:a(`rounded-xl bg-card p-5 shadow-sm border border-border/50`,u),"aria-label":l,children:[(0,g.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,g.jsx)(n,{size:`xs`,type:`secondary`,weight:`medium`,className:`truncate`,children:e.label}),(0,g.jsx)(`span`,{className:a(`size-1.5 rounded-full shrink-0`,f.dot),"aria-hidden":`true`})]}),(0,g.jsxs)(`div`,{className:`mt-2.5 flex items-baseline gap-2`,children:[(0,g.jsx)(r,{tag:`h3`,className:a(`font-bold tabular-nums tracking-tight border-none pb-0 leading-none`,C[o]),children:t}),!!e.subtitle&&(0,g.jsx)(n,{size:`xs`,type:`secondary`,children:e.subtitle})]}),(0,g.jsx)(`div`,{className:`mt-4 flex items-center gap-0.5`,role:`progressbar`,"aria-label":`${e.label} progress`,"aria-valuenow":d,"aria-valuemin":0,"aria-valuemax":100,"aria-valuetext":`${d}%`,children:Array.from({length:T},(e,t)=>(0,g.jsx)(`div`,{className:a(`h-6 w-1.5 rounded-sm transition-colors`,t<p?f.bar:`bg-muted`)},`seg-${t}`))}),!!s&&!!e.change&&(0,g.jsx)(`div`,{className:`mt-3`,children:(0,g.jsx)(m,{change:e.change,trend:e.trend,size:o,variant:`default`})}),!!e.footer&&(0,g.jsxs)(`div`,{className:`mt-2 inline-flex items-center gap-1 text-muted-foreground`,children:[(0,g.jsx)(i,{className:`size-3`,"aria-hidden":`true`}),(0,g.jsx)(n,{size:`xxs`,type:`secondary`,children:e.footer})]})]})}export{b as n,v as r,E as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Er as e}from"./example-BIrQab7K.js";import{t}from"./arrow-down-CYh_aUsd.js";import{t as n}from"./arrow-up-BhmQRZs9.js";import{t as r}from"./minus-OyRBql2C.js";import{n as i,s as a}from"./index-Cz4UGUT2.js";var o=a(),s={positive:{text:`text-success`,badge:`bg-success/10 text-success`,arrow:`text-success`},negative:{text:`text-destructive`,badge:`bg-destructive/10 text-destructive`,arrow:`text-destructive`},neutral:{text:`text-muted-foreground`,badge:`bg-muted text-muted-foreground`,arrow:`text-muted-foreground`}},c={sm:`size-3`,md:`size-3.5`,lg:`size-4`},l={sm:`xxs`,md:`xs`,lg:`sm`},u={sm:`px-1.5 py-0.5`,md:`px-2 py-0.5`,lg:`px-2.5 py-1`};function d(e,t){return e||(t===`up`?`positive`:t===`down`?`negative`:`neutral`)}function f({change:a,trend:f,size:p=`md`,variant:m=`default`,className:h}){let g=d(f,a.direction),_=a.direction===`up`?n:a.direction===`down`?t:r,v=s[g],y=String(a.value),b=a.direction===`up`?`+`:(a.direction,``);return m===`inline`?(0,o.jsxs)(e,{tag:`span`,size:l[p],weight:`medium`,className:i(`metric-trend-chip--component`,v.text,`tabular-nums`,h),children:[b,y]}):m===`compact`?(0,o.jsxs)(`span`,{className:i(`inline-flex items-center gap-0.5`,v.text,h),children:[(0,o.jsx)(_,{className:c[p],strokeWidth:2.5,"aria-hidden":`true`}),(0,o.jsx)(e,{tag:`span`,size:l[p],weight:`semibold`,className:`text-current tabular-nums`,children:y})]}):m===`badge`?(0,o.jsxs)(`span`,{className:i(`inline-flex items-center gap-1 rounded-full font-medium tabular-nums`,v.badge,u[p],h),children:[(0,o.jsx)(_,{className:c[p],strokeWidth:2.5,"aria-hidden":`true`}),(0,o.jsx)(e,{tag:`span`,size:l[p],weight:`semibold`,className:`text-current tabular-nums`,children:y}),!!a.label&&(0,o.jsx)(e,{tag:`span`,size:l[p],className:`text-current opacity-70`,children:a.label})]}):(0,o.jsxs)(`span`,{className:i(`inline-flex items-center gap-1`,v.text,h),children:[(0,o.jsx)(_,{className:c[p],strokeWidth:2.5,"aria-hidden":`true`}),(0,o.jsx)(e,{tag:`span`,size:l[p],weight:`semibold`,className:`tabular-nums`,children:y}),!!a.label&&(0,o.jsx)(e,{tag:`span`,size:l[p],type:`secondary`,children:a.label})]})}f.displayName=`MetricTrendChip`;export{f as t};
|