@hanzo/ui 4.9.0 → 5.0.1
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/README.md +192 -185
- package/assets/ai-icons.tsx +207 -0
- package/assets/crypto.tsx +33 -0
- package/assets/file-type-icon.tsx +66 -0
- package/assets/file.tsx +45 -0
- package/assets/general.tsx +2318 -0
- package/assets/hanzo-logo.svg +9 -0
- package/assets/hanzo-logo.tsx +17 -0
- package/assets/index.ts +122 -0
- package/assets/index.tsx +4 -0
- package/assets/llm-provider.tsx +1094 -0
- package/bin/cli.js +100 -0
- package/bin/create-registry.js +108 -0
- package/bin/mcp.js +403 -0
- package/bin/npx-registry-mcp.js +15 -0
- package/bin/registry-mcp-wrapper.sh +19 -0
- package/bin/registry-mcp.js +100 -0
- package/bin/start-mcp-server.sh +22 -0
- package/bin/test-mcp.sh +52 -0
- package/bin/update-registry.js +196 -0
- package/blocks/auth/index.ts +6 -0
- package/blocks/auth/login-2fa.tsx +165 -0
- package/blocks/auth/login-basic.tsx +94 -0
- package/blocks/auth/login-social.tsx +148 -0
- package/blocks/auth/magic-link.tsx +129 -0
- package/blocks/auth/password-reset.tsx +97 -0
- package/blocks/auth/signup.tsx +157 -0
- package/blocks/components/accordian-block.tsx +48 -0
- package/blocks/components/block-component-props.ts +11 -0
- package/blocks/components/bullet-cards-block.tsx +46 -0
- package/blocks/components/card-block/index.tsx +171 -0
- package/blocks/components/card-block/link-out-button.tsx +20 -0
- package/blocks/components/card-block/util.ts +28 -0
- package/blocks/components/carte-blanche-block/index.tsx +127 -0
- package/blocks/components/carte-blanche-block/variant-content-left.tsx +49 -0
- package/blocks/components/content.tsx +70 -0
- package/blocks/components/cta-block.tsx +115 -0
- package/blocks/components/enh-heading-block.tsx +204 -0
- package/blocks/components/grid-block/grid-block-mutator.ts +12 -0
- package/blocks/components/grid-block/index.tsx +83 -0
- package/blocks/components/grid-block/mutator-registry.ts +10 -0
- package/blocks/components/grid-block/table-borders.mutator.ts +47 -0
- package/blocks/components/group-block.tsx +83 -0
- package/blocks/components/heading-block.tsx +88 -0
- package/blocks/components/image-block.tsx +111 -0
- package/blocks/components/index.ts +30 -0
- package/blocks/components/screenful-block/content.tsx +123 -0
- package/blocks/components/screenful-block/index.tsx +107 -0
- package/blocks/components/screenful-block/poster-background.tsx +34 -0
- package/blocks/components/screenful-block/video-background.tsx +45 -0
- package/blocks/components/space-block.tsx +66 -0
- package/blocks/components/video-block.tsx +138 -0
- package/blocks/data-display/activity-feed.tsx +242 -0
- package/blocks/data-display/data-table.tsx +235 -0
- package/blocks/data-display/stats-grid.tsx +194 -0
- package/blocks/def/accordian-block.ts +14 -0
- package/blocks/def/block.ts +7 -0
- package/blocks/def/bullet-cards-block.ts +22 -0
- package/blocks/def/card-block.ts +22 -0
- package/blocks/def/carte-blanche-block.ts +21 -0
- package/blocks/def/cta-block.ts +19 -0
- package/blocks/def/element-block.ts +11 -0
- package/blocks/def/enh-heading-block.ts +44 -0
- package/blocks/def/grid-block.ts +16 -0
- package/blocks/def/group-block.ts +11 -0
- package/blocks/def/heading-block.ts +15 -0
- package/blocks/def/image-block.ts +31 -0
- package/blocks/def/index.ts +35 -0
- package/blocks/def/screenful-block.ts +54 -0
- package/blocks/def/space-block.ts +64 -0
- package/blocks/def/video-block.ts +9 -0
- package/blocks/ecommerce/checkout.tsx +242 -0
- package/blocks/ecommerce/index.ts +7 -0
- package/blocks/ecommerce/product-detail.tsx +257 -0
- package/blocks/ecommerce/product-grid.tsx +148 -0
- package/blocks/ecommerce/shopping-cart.tsx +181 -0
- package/blocks/index.ts +2 -0
- package/blocks/marketing/cta-section.tsx +207 -0
- package/blocks/marketing/faq.tsx +159 -0
- package/blocks/marketing/features-grid.tsx +156 -0
- package/blocks/marketing/hero-section.tsx +192 -0
- package/blocks/marketing/index.ts +6 -0
- package/blocks/marketing/pricing-table.tsx +121 -0
- package/blocks/marketing/testimonials.tsx +196 -0
- package/components/index.ts +9 -0
- package/dist/index.js +9070 -1089
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8695 -45
- package/dist/index.mjs.map +1 -1
- package/dist/tailwind.js +2025 -0
- package/dist/tailwind.js.map +1 -0
- package/dist/tailwind.mjs +2013 -0
- package/dist/tailwind.mjs.map +1 -0
- package/dist/types.js +59 -0
- package/dist/types.js.map +1 -0
- package/dist/types.mjs +53 -0
- package/dist/types.mjs.map +1 -0
- package/dist/utils.js +30 -0
- package/dist/utils.js.map +1 -0
- package/dist/utils.mjs +26 -0
- package/dist/utils.mjs.map +1 -0
- package/frameworks/core/index.ts +6 -0
- package/frameworks/core/utils/index.ts +64 -0
- package/frameworks/react/components/button.tsx +26 -0
- package/frameworks/react/components/index.ts +5 -0
- package/frameworks/react/hooks/index.ts +5 -0
- package/frameworks/react/index.ts +9 -0
- package/frameworks/react/package.json +8 -0
- package/frameworks/react/utils/index.ts +2 -0
- package/frameworks/react-native/index.ts +9 -0
- package/frameworks/react-native/package.json +8 -0
- package/frameworks/registry.json +371 -0
- package/frameworks/setup.sh +69 -0
- package/frameworks/svelte/index.ts +9 -0
- package/frameworks/svelte/package.json +8 -0
- package/frameworks/tracker.json +1854 -0
- package/frameworks/vue/index.ts +9 -0
- package/frameworks/vue/package.json +8 -0
- package/helpers/file.ts +33 -0
- package/helpers/memoization.ts +40 -0
- package/package.json +272 -153
- package/primitives/accordion.tsx +74 -0
- package/primitives/action-button.tsx +42 -0
- package/primitives/alert-dialog.tsx +185 -0
- package/primitives/alert.tsx +74 -0
- package/primitives/apply-typography.tsx +55 -0
- package/primitives/aspect-ratio.tsx +5 -0
- package/primitives/avatar.tsx +57 -0
- package/primitives/background-beams.tsx +142 -0
- package/primitives/badge.tsx +45 -0
- package/primitives/breadcrumb.tsx +130 -0
- package/primitives/breakpoint-indicator.tsx +19 -0
- package/primitives/button.tsx +72 -0
- package/primitives/calendar.tsx +72 -0
- package/primitives/card.tsx +97 -0
- package/primitives/carousel.tsx +238 -0
- package/primitives/chat/chat-input-area.tsx +88 -0
- package/primitives/chat/chat-input.tsx +71 -0
- package/primitives/chat/files-preview.tsx +331 -0
- package/primitives/chat/index.ts +6 -0
- package/primitives/chat/json-form.tsx +8 -0
- package/primitives/chat/message-list.tsx +308 -0
- package/primitives/chat/message.tsx +569 -0
- package/primitives/chat/sqlite-preview.tsx +215 -0
- package/primitives/checkbox.tsx +32 -0
- package/primitives/collapsible.tsx +9 -0
- package/primitives/combobox.tsx +239 -0
- package/primitives/command.tsx +151 -0
- package/primitives/context-menu.tsx +206 -0
- package/primitives/copy-to-clipboard-icon.tsx +60 -0
- package/primitives/dialog-video-controller.tsx +38 -0
- package/primitives/dialog.tsx +128 -0
- package/primitives/dot-pattern.tsx +57 -0
- package/primitives/dots-loader.tsx +13 -0
- package/primitives/drawer.tsx +113 -0
- package/primitives/dropdown-menu.tsx +199 -0
- package/primitives/error-message.tsx +19 -0
- package/primitives/file-uploader.tsx +203 -0
- package/primitives/form.tsx +185 -0
- package/primitives/hover-card.tsx +28 -0
- package/primitives/icons/github.tsx +14 -0
- package/primitives/icons/index.ts +18 -0
- package/primitives/icons/youtube-logo.tsx +59 -0
- package/primitives/index-client.ts +4 -0
- package/primitives/index-common.ts +304 -0
- package/primitives/index-next.ts +4 -0
- package/primitives/input-otp.tsx +65 -0
- package/primitives/input.tsx +128 -0
- package/primitives/label.tsx +21 -0
- package/primitives/list-adaptor.ts +12 -0
- package/primitives/list-box.tsx +74 -0
- package/primitives/loading-spinner.tsx +33 -0
- package/primitives/markdown-preview.tsx +612 -0
- package/primitives/mermaid.tsx +191 -0
- package/primitives/navigation-menu.tsx +147 -0
- package/primitives/next/image.tsx +91 -0
- package/primitives/next/index.ts +7 -0
- package/primitives/next/inline-icon.tsx +36 -0
- package/primitives/next/link-element.tsx +109 -0
- package/primitives/next/mdx-link.tsx +22 -0
- package/primitives/next/media-stack.tsx +52 -0
- package/primitives/next/nav-items.tsx +45 -0
- package/primitives/next/youtube-embed.tsx +83 -0
- package/primitives/pagination.tsx +117 -0
- package/primitives/popover.tsx +34 -0
- package/primitives/pretty-json-print.tsx +28 -0
- package/primitives/progress.tsx +27 -0
- package/primitives/prompt-textarea.tsx +72 -0
- package/primitives/qr-code.tsx +112 -0
- package/primitives/radio-group.tsx +42 -0
- package/primitives/resizable.tsx +47 -0
- package/primitives/scroll-area.tsx +57 -0
- package/primitives/search-input.tsx +66 -0
- package/primitives/select.tsx +122 -0
- package/primitives/separator.tsx +26 -0
- package/primitives/sheet.tsx +139 -0
- package/primitives/skeleton.tsx +18 -0
- package/primitives/slider.tsx +63 -0
- package/primitives/sonner.tsx +35 -0
- package/primitives/step-indicator.tsx +69 -0
- package/primitives/stepper.tsx +272 -0
- package/primitives/switch.tsx +27 -0
- package/primitives/table.tsx +105 -0
- package/primitives/tabs.tsx +50 -0
- package/primitives/text-area.tsx +26 -0
- package/primitives/text-link.tsx +27 -0
- package/primitives/textarea.tsx +64 -0
- package/primitives/textfield.tsx +78 -0
- package/primitives/toast.tsx +30 -0
- package/primitives/toggle-group.tsx +63 -0
- package/primitives/toggle.tsx +44 -0
- package/primitives/tooltip.tsx +47 -0
- package/primitives/video-player.tsx +23 -0
- package/src/button.ts +1 -0
- package/src/hooks/index.ts +7 -0
- package/src/hooks/use-click-away.ts +31 -0
- package/src/hooks/use-combined-refs.ts +22 -0
- package/src/hooks/use-copy-clipboard.ts +30 -0
- package/src/hooks/use-debounce.ts +17 -0
- package/src/hooks/use-fill-ids.ts +25 -0
- package/src/hooks/use-map.ts +26 -0
- package/src/hooks/use-measure.ts +42 -0
- package/src/hooks/use-reverse-video-playback.ts +43 -0
- package/src/hooks/use-scroll-restoration.ts +50 -0
- package/src/index-lean.ts +87 -0
- package/src/index.ts +54 -0
- package/src/mcp/README.md +141 -0
- package/src/mcp/enhanced-server.ts +1208 -0
- package/src/mcp/index.ts +518 -0
- package/src/mcp/package.json +10 -0
- package/src/registry/api.ts +164 -0
- package/src/registry/index.ts +60 -0
- package/src/registry/package.json +10 -0
- package/src/utils.ts +19 -0
- package/style/drawer.css +163 -0
- package/style/globals.css +13 -0
- package/style/hanzo-common.css +31 -0
- package/style/hanzo-default-colors.css +82 -0
- package/style/theme-provider.tsx +20 -0
- package/tailwind/colors.tailwind.js +53 -0
- package/tailwind/fontFamily.tailwind.ts +7 -0
- package/tailwind/fontSize.tailwind.ts +13 -0
- package/tailwind/index.ts +7 -0
- package/tailwind/safelist.tailwind.js +26 -0
- package/tailwind/screens.tailwind.js +8 -0
- package/tailwind/spacing.tailwind.js +65 -0
- package/tailwind/tailwind.config.hanzo-preset.d.ts +5 -0
- package/tailwind/tailwind.config.hanzo-preset.js +915 -0
- package/tailwind/tw-font-desc.ts +15 -0
- package/tailwind/typo-plugin/get-plugin-styles.js +679 -0
- package/tailwind/typo-plugin/index.d.ts +9 -0
- package/tailwind/typo-plugin/index.js +141 -0
- package/tailwind/typo-plugin/utils.js +60 -0
- package/tailwind/typography-test.mdx +35 -0
- package/tailwind/z-index.tailwind.js +71 -0
- package/types/animation-def.ts +3 -0
- package/types/breakpoints.ts +11 -0
- package/types/bullet-item.ts +10 -0
- package/types/button-def.ts +39 -0
- package/types/dimensions.ts +8 -0
- package/types/grid-def.ts +56 -0
- package/types/image-def.ts +32 -0
- package/types/index.ts +30 -0
- package/types/link-def.ts +56 -0
- package/types/media-stack-def.ts +31 -0
- package/types/t-shirt-size.ts +5 -0
- package/types/tshirt-dimensions.ts +20 -0
- package/types/video-def.ts +25 -0
- package/util/blob.ts +33 -0
- package/util/copy-to-clipboard.ts +17 -0
- package/util/create-shadow-root.ts +22 -0
- package/util/date.ts +84 -0
- package/util/debounce.ts +11 -0
- package/util/file.ts +15 -0
- package/util/format-and-abbreviate-as-currency.ts +125 -0
- package/util/format-text.ts +34 -0
- package/util/format-to-max-char.ts +68 -0
- package/util/index-client.ts +3 -0
- package/util/index.ts +112 -0
- package/util/number-abbreviate.ts +49 -0
- package/util/specifier.ts +43 -0
- package/util/spread-to-transform.ts +25 -0
- package/util/step-animation.ts +90 -0
- package/util/timing.ts +3 -0
- package/util/toasts.tsx +17 -0
- package/util/two-way-map.ts +19 -0
- package/CHANGELOG.md +0 -184
- package/LICENSE +0 -21
- package/dist/ai/index.js +0 -53
- package/dist/ai/index.js.map +0 -1
- package/dist/ai/index.mjs +0 -4
- package/dist/ai/index.mjs.map +0 -1
- package/dist/blocks/index.js +0 -983
- package/dist/blocks/index.js.map +0 -1
- package/dist/blocks/index.mjs +0 -945
- package/dist/blocks/index.mjs.map +0 -1
- package/dist/calendar/index.js +0 -14
- package/dist/calendar/index.js.map +0 -1
- package/dist/calendar/index.mjs +0 -5
- package/dist/calendar/index.mjs.map +0 -1
- package/dist/carousel/index.js +0 -220
- package/dist/carousel/index.js.map +0 -1
- package/dist/carousel/index.mjs +0 -191
- package/dist/carousel/index.mjs.map +0 -1
- package/dist/charts/index.js +0 -945
- package/dist/charts/index.js.map +0 -1
- package/dist/charts/index.mjs +0 -901
- package/dist/charts/index.mjs.map +0 -1
- package/dist/chunk-26T4V5QU.mjs +0 -111
- package/dist/chunk-26T4V5QU.mjs.map +0 -1
- package/dist/chunk-2A5KXDLJ.js +0 -22
- package/dist/chunk-2A5KXDLJ.js.map +0 -1
- package/dist/chunk-2CJ4HMF4.js +0 -79
- package/dist/chunk-2CJ4HMF4.js.map +0 -1
- package/dist/chunk-2OIQKC5E.js +0 -236
- package/dist/chunk-2OIQKC5E.js.map +0 -1
- package/dist/chunk-2X3KSYBN.js +0 -44
- package/dist/chunk-2X3KSYBN.js.map +0 -1
- package/dist/chunk-3PBQGYR7.mjs +0 -100
- package/dist/chunk-3PBQGYR7.mjs.map +0 -1
- package/dist/chunk-3POQQ6L7.js +0 -62
- package/dist/chunk-3POQQ6L7.js.map +0 -1
- package/dist/chunk-4B47GITH.mjs +0 -28
- package/dist/chunk-4B47GITH.mjs.map +0 -1
- package/dist/chunk-4BC2OH6B.js +0 -129
- package/dist/chunk-4BC2OH6B.js.map +0 -1
- package/dist/chunk-5AQSGH4R.js +0 -130
- package/dist/chunk-5AQSGH4R.js.map +0 -1
- package/dist/chunk-5IHRJFOO.mjs +0 -102
- package/dist/chunk-5IHRJFOO.mjs.map +0 -1
- package/dist/chunk-5LDGR7YN.mjs +0 -28
- package/dist/chunk-5LDGR7YN.mjs.map +0 -1
- package/dist/chunk-5MCN3VYM.mjs +0 -23
- package/dist/chunk-5MCN3VYM.mjs.map +0 -1
- package/dist/chunk-6AVAMRMB.mjs +0 -47
- package/dist/chunk-6AVAMRMB.mjs.map +0 -1
- package/dist/chunk-6H62JRNM.mjs +0 -120
- package/dist/chunk-6H62JRNM.mjs.map +0 -1
- package/dist/chunk-6KCII3F6.mjs +0 -126
- package/dist/chunk-6KCII3F6.mjs.map +0 -1
- package/dist/chunk-7EHB43BJ.js +0 -155
- package/dist/chunk-7EHB43BJ.js.map +0 -1
- package/dist/chunk-7LRD23Q5.js +0 -191
- package/dist/chunk-7LRD23Q5.js.map +0 -1
- package/dist/chunk-7SAHKOJG.mjs +0 -45
- package/dist/chunk-7SAHKOJG.mjs.map +0 -1
- package/dist/chunk-A3D2YZK3.js +0 -50
- package/dist/chunk-A3D2YZK3.js.map +0 -1
- package/dist/chunk-AL4QFH7V.js +0 -63
- package/dist/chunk-AL4QFH7V.js.map +0 -1
- package/dist/chunk-B3WFEG6U.js +0 -69
- package/dist/chunk-B3WFEG6U.js.map +0 -1
- package/dist/chunk-BDZQJ6GK.js +0 -242
- package/dist/chunk-BDZQJ6GK.js.map +0 -1
- package/dist/chunk-BRWFYRGX.js +0 -61
- package/dist/chunk-BRWFYRGX.js.map +0 -1
- package/dist/chunk-C5DNTLBO.js +0 -53
- package/dist/chunk-C5DNTLBO.js.map +0 -1
- package/dist/chunk-CRALRACO.js +0 -54
- package/dist/chunk-CRALRACO.js.map +0 -1
- package/dist/chunk-CVACQJRM.js +0 -149
- package/dist/chunk-CVACQJRM.js.map +0 -1
- package/dist/chunk-DEIUKFPZ.mjs +0 -63
- package/dist/chunk-DEIUKFPZ.mjs.map +0 -1
- package/dist/chunk-DN2AEEA2.js +0 -13
- package/dist/chunk-DN2AEEA2.js.map +0 -1
- package/dist/chunk-DTNRWU4B.mjs +0 -35
- package/dist/chunk-DTNRWU4B.mjs.map +0 -1
- package/dist/chunk-DXIUEWRJ.mjs +0 -31
- package/dist/chunk-DXIUEWRJ.mjs.map +0 -1
- package/dist/chunk-DYFV66JX.mjs +0 -54
- package/dist/chunk-DYFV66JX.mjs.map +0 -1
- package/dist/chunk-F3WMAHXV.mjs +0 -86
- package/dist/chunk-F3WMAHXV.mjs.map +0 -1
- package/dist/chunk-F4RWPBBB.js +0 -79
- package/dist/chunk-F4RWPBBB.js.map +0 -1
- package/dist/chunk-FEGAPM6U.js +0 -194
- package/dist/chunk-FEGAPM6U.js.map +0 -1
- package/dist/chunk-G5TS56PW.mjs +0 -160
- package/dist/chunk-G5TS56PW.mjs.map +0 -1
- package/dist/chunk-GG6VGOEN.mjs +0 -590
- package/dist/chunk-GG6VGOEN.mjs.map +0 -1
- package/dist/chunk-GLAMGK32.mjs +0 -54
- package/dist/chunk-GLAMGK32.mjs.map +0 -1
- package/dist/chunk-GNMMUJXD.mjs +0 -200
- package/dist/chunk-GNMMUJXD.mjs.map +0 -1
- package/dist/chunk-GNPBULLS.mjs +0 -600
- package/dist/chunk-GNPBULLS.mjs.map +0 -1
- package/dist/chunk-GTE2DELE.js +0 -65
- package/dist/chunk-GTE2DELE.js.map +0 -1
- package/dist/chunk-GUQAFFTH.js +0 -94
- package/dist/chunk-GUQAFFTH.js.map +0 -1
- package/dist/chunk-H5VOYZHT.mjs +0 -34
- package/dist/chunk-H5VOYZHT.mjs.map +0 -1
- package/dist/chunk-HR6PBOGG.mjs +0 -59
- package/dist/chunk-HR6PBOGG.mjs.map +0 -1
- package/dist/chunk-HROONQS3.js +0 -55
- package/dist/chunk-HROONQS3.js.map +0 -1
- package/dist/chunk-IAO7SOQ3.mjs +0 -56
- package/dist/chunk-IAO7SOQ3.mjs.map +0 -1
- package/dist/chunk-K2QKU3K6.mjs +0 -40
- package/dist/chunk-K2QKU3K6.mjs.map +0 -1
- package/dist/chunk-KEUZZCCP.js +0 -53
- package/dist/chunk-KEUZZCCP.js.map +0 -1
- package/dist/chunk-KJXSLTG7.mjs +0 -73
- package/dist/chunk-KJXSLTG7.mjs.map +0 -1
- package/dist/chunk-L5AFUCVH.mjs +0 -26
- package/dist/chunk-L5AFUCVH.mjs.map +0 -1
- package/dist/chunk-LB3I52KZ.mjs +0 -42
- package/dist/chunk-LB3I52KZ.mjs.map +0 -1
- package/dist/chunk-LN75MJQ2.js +0 -71
- package/dist/chunk-LN75MJQ2.js.map +0 -1
- package/dist/chunk-LRBOFJUV.js +0 -60
- package/dist/chunk-LRBOFJUV.js.map +0 -1
- package/dist/chunk-MMNYRBOU.js +0 -157
- package/dist/chunk-MMNYRBOU.js.map +0 -1
- package/dist/chunk-MO65YF6P.js +0 -236
- package/dist/chunk-MO65YF6P.js.map +0 -1
- package/dist/chunk-N4KHP5FC.mjs +0 -33
- package/dist/chunk-N4KHP5FC.mjs.map +0 -1
- package/dist/chunk-NP2J7AB7.mjs +0 -121
- package/dist/chunk-NP2J7AB7.mjs.map +0 -1
- package/dist/chunk-OLR6SGYO.js +0 -57
- package/dist/chunk-OLR6SGYO.js.map +0 -1
- package/dist/chunk-ON7NQ4DY.js +0 -21
- package/dist/chunk-ON7NQ4DY.js.map +0 -1
- package/dist/chunk-PE3VFRLV.mjs +0 -198
- package/dist/chunk-PE3VFRLV.mjs.map +0 -1
- package/dist/chunk-Q7LOOIE5.mjs +0 -8
- package/dist/chunk-Q7LOOIE5.mjs.map +0 -1
- package/dist/chunk-QFA6U75G.mjs +0 -51
- package/dist/chunk-QFA6U75G.mjs.map +0 -1
- package/dist/chunk-QJQPT4WX.js +0 -638
- package/dist/chunk-QJQPT4WX.js.map +0 -1
- package/dist/chunk-QKHQPBSR.mjs +0 -20
- package/dist/chunk-QKHQPBSR.mjs.map +0 -1
- package/dist/chunk-SJD4XRFJ.mjs +0 -141
- package/dist/chunk-SJD4XRFJ.mjs.map +0 -1
- package/dist/chunk-SOOJLU4C.mjs +0 -19
- package/dist/chunk-SOOJLU4C.mjs.map +0 -1
- package/dist/chunk-T66B5IM5.js +0 -51
- package/dist/chunk-T66B5IM5.js.map +0 -1
- package/dist/chunk-T7RPZDO4.js +0 -645
- package/dist/chunk-T7RPZDO4.js.map +0 -1
- package/dist/chunk-TGRMDGTV.mjs +0 -38
- package/dist/chunk-TGRMDGTV.mjs.map +0 -1
- package/dist/chunk-TH2UKMCO.mjs +0 -11
- package/dist/chunk-TH2UKMCO.mjs.map +0 -1
- package/dist/chunk-TMV45OKE.mjs +0 -113
- package/dist/chunk-TMV45OKE.mjs.map +0 -1
- package/dist/chunk-TUJ7EVEK.js +0 -171
- package/dist/chunk-TUJ7EVEK.js.map +0 -1
- package/dist/chunk-ULNWDOI7.js +0 -122
- package/dist/chunk-ULNWDOI7.js.map +0 -1
- package/dist/chunk-UNUTTHCH.mjs +0 -210
- package/dist/chunk-UNUTTHCH.mjs.map +0 -1
- package/dist/chunk-VJMI6BG4.mjs +0 -10
- package/dist/chunk-VJMI6BG4.mjs.map +0 -1
- package/dist/chunk-VZVOB5MG.mjs +0 -26
- package/dist/chunk-VZVOB5MG.mjs.map +0 -1
- package/dist/chunk-WD67O22C.js +0 -50
- package/dist/chunk-WD67O22C.js.map +0 -1
- package/dist/chunk-WYPMLIJN.js +0 -53
- package/dist/chunk-WYPMLIJN.js.map +0 -1
- package/dist/chunk-X32I34NH.js +0 -109
- package/dist/chunk-X32I34NH.js.map +0 -1
- package/dist/chunk-X5MOZ3YL.js +0 -65
- package/dist/chunk-X5MOZ3YL.js.map +0 -1
- package/dist/chunk-Y4JVIPQZ.mjs +0 -31
- package/dist/chunk-Y4JVIPQZ.mjs.map +0 -1
- package/dist/chunk-Y6WOV2LZ.js +0 -95
- package/dist/chunk-Y6WOV2LZ.js.map +0 -1
- package/dist/chunk-YAEN5SCU.mjs +0 -41
- package/dist/chunk-YAEN5SCU.mjs.map +0 -1
- package/dist/chunk-YH6XDF3N.js +0 -121
- package/dist/chunk-YH6XDF3N.js.map +0 -1
- package/dist/chunk-YJKA4D75.mjs +0 -124
- package/dist/chunk-YJKA4D75.mjs.map +0 -1
- package/dist/chunk-ZANAF7WB.js +0 -88
- package/dist/chunk-ZANAF7WB.js.map +0 -1
- package/dist/chunk-ZDBWNPLO.js +0 -30
- package/dist/chunk-ZDBWNPLO.js.map +0 -1
- package/dist/chunk-ZDT2IOK2.js +0 -56
- package/dist/chunk-ZDT2IOK2.js.map +0 -1
- package/dist/chunk-ZKGVLTSI.js +0 -25
- package/dist/chunk-ZKGVLTSI.js.map +0 -1
- package/dist/chunk-ZLELESO7.js +0 -34
- package/dist/chunk-ZLELESO7.js.map +0 -1
- package/dist/chunk-ZUFUEQTX.mjs +0 -157
- package/dist/chunk-ZUFUEQTX.mjs.map +0 -1
- package/dist/chunk-ZZZWRQQE.mjs +0 -42
- package/dist/chunk-ZZZWRQQE.mjs.map +0 -1
- package/dist/command/index.js +0 -138
- package/dist/command/index.js.map +0 -1
- package/dist/command/index.mjs +0 -128
- package/dist/command/index.mjs.map +0 -1
- package/dist/components/accordion.js +0 -25
- package/dist/components/accordion.js.map +0 -1
- package/dist/components/accordion.mjs +0 -4
- package/dist/components/accordion.mjs.map +0 -1
- package/dist/components/alert.js +0 -21
- package/dist/components/alert.js.map +0 -1
- package/dist/components/alert.mjs +0 -4
- package/dist/components/alert.mjs.map +0 -1
- package/dist/components/aspect-ratio.js +0 -12
- package/dist/components/aspect-ratio.js.map +0 -1
- package/dist/components/aspect-ratio.mjs +0 -3
- package/dist/components/aspect-ratio.mjs.map +0 -1
- package/dist/components/avatar.js +0 -21
- package/dist/components/avatar.js.map +0 -1
- package/dist/components/avatar.mjs +0 -4
- package/dist/components/avatar.mjs.map +0 -1
- package/dist/components/badge.js +0 -17
- package/dist/components/badge.js.map +0 -1
- package/dist/components/badge.mjs +0 -4
- package/dist/components/badge.mjs.map +0 -1
- package/dist/components/breadcrumb.js +0 -37
- package/dist/components/breadcrumb.js.map +0 -1
- package/dist/components/breadcrumb.mjs +0 -4
- package/dist/components/breadcrumb.mjs.map +0 -1
- package/dist/components/button.js +0 -17
- package/dist/components/button.js.map +0 -1
- package/dist/components/button.mjs +0 -4
- package/dist/components/button.mjs.map +0 -1
- package/dist/components/card.js +0 -37
- package/dist/components/card.js.map +0 -1
- package/dist/components/card.mjs +0 -4
- package/dist/components/card.mjs.map +0 -1
- package/dist/components/checkbox.js +0 -13
- package/dist/components/checkbox.js.map +0 -1
- package/dist/components/checkbox.mjs +0 -4
- package/dist/components/checkbox.mjs.map +0 -1
- package/dist/components/collapsible.js +0 -20
- package/dist/components/collapsible.js.map +0 -1
- package/dist/components/collapsible.mjs +0 -3
- package/dist/components/collapsible.mjs.map +0 -1
- package/dist/components/context-menu.js +0 -69
- package/dist/components/context-menu.js.map +0 -1
- package/dist/components/context-menu.mjs +0 -4
- package/dist/components/context-menu.mjs.map +0 -1
- package/dist/components/dialog.js +0 -49
- package/dist/components/dialog.js.map +0 -1
- package/dist/components/dialog.mjs +0 -4
- package/dist/components/dialog.mjs.map +0 -1
- package/dist/components/drawer.js +0 -49
- package/dist/components/drawer.js.map +0 -1
- package/dist/components/drawer.mjs +0 -4
- package/dist/components/drawer.mjs.map +0 -1
- package/dist/components/dropdown-menu.js +0 -69
- package/dist/components/dropdown-menu.js.map +0 -1
- package/dist/components/dropdown-menu.mjs +0 -4
- package/dist/components/dropdown-menu.mjs.map +0 -1
- package/dist/components/form.js +0 -42
- package/dist/components/form.js.map +0 -1
- package/dist/components/form.mjs +0 -5
- package/dist/components/form.mjs.map +0 -1
- package/dist/components/hover-card.js +0 -21
- package/dist/components/hover-card.js.map +0 -1
- package/dist/components/hover-card.mjs +0 -4
- package/dist/components/hover-card.mjs.map +0 -1
- package/dist/components/index.js +0 -1047
- package/dist/components/index.js.map +0 -1
- package/dist/components/index.mjs +0 -46
- package/dist/components/index.mjs.map +0 -1
- package/dist/components/input-otp.js +0 -25
- package/dist/components/input-otp.js.map +0 -1
- package/dist/components/input-otp.mjs +0 -4
- package/dist/components/input-otp.mjs.map +0 -1
- package/dist/components/input.js +0 -13
- package/dist/components/input.js.map +0 -1
- package/dist/components/input.mjs +0 -4
- package/dist/components/input.mjs.map +0 -1
- package/dist/components/label.js +0 -13
- package/dist/components/label.js.map +0 -1
- package/dist/components/label.mjs +0 -4
- package/dist/components/label.mjs.map +0 -1
- package/dist/components/menubar.js +0 -73
- package/dist/components/menubar.js.map +0 -1
- package/dist/components/menubar.mjs +0 -4
- package/dist/components/menubar.mjs.map +0 -1
- package/dist/components/navigation-menu.js +0 -45
- package/dist/components/navigation-menu.js.map +0 -1
- package/dist/components/navigation-menu.mjs +0 -4
- package/dist/components/navigation-menu.mjs.map +0 -1
- package/dist/components/pagination.js +0 -38
- package/dist/components/pagination.js.map +0 -1
- package/dist/components/pagination.mjs +0 -5
- package/dist/components/pagination.mjs.map +0 -1
- package/dist/components/popover.js +0 -25
- package/dist/components/popover.js.map +0 -1
- package/dist/components/popover.mjs +0 -4
- package/dist/components/popover.mjs.map +0 -1
- package/dist/components/progress.js +0 -13
- package/dist/components/progress.js.map +0 -1
- package/dist/components/progress.mjs +0 -4
- package/dist/components/progress.mjs.map +0 -1
- package/dist/components/radio-group.js +0 -17
- package/dist/components/radio-group.js.map +0 -1
- package/dist/components/radio-group.mjs +0 -4
- package/dist/components/radio-group.mjs.map +0 -1
- package/dist/components/resizable.js +0 -21
- package/dist/components/resizable.js.map +0 -1
- package/dist/components/resizable.mjs +0 -4
- package/dist/components/resizable.mjs.map +0 -1
- package/dist/components/scroll-area.js +0 -17
- package/dist/components/scroll-area.js.map +0 -1
- package/dist/components/scroll-area.mjs +0 -4
- package/dist/components/scroll-area.mjs.map +0 -1
- package/dist/components/select.js +0 -49
- package/dist/components/select.js.map +0 -1
- package/dist/components/select.mjs +0 -4
- package/dist/components/select.mjs.map +0 -1
- package/dist/components/separator.js +0 -13
- package/dist/components/separator.js.map +0 -1
- package/dist/components/separator.mjs +0 -4
- package/dist/components/separator.mjs.map +0 -1
- package/dist/components/sheet.js +0 -49
- package/dist/components/sheet.js.map +0 -1
- package/dist/components/sheet.mjs +0 -4
- package/dist/components/sheet.mjs.map +0 -1
- package/dist/components/sidebar.js +0 -111
- package/dist/components/sidebar.js.map +0 -1
- package/dist/components/sidebar.mjs +0 -10
- package/dist/components/sidebar.mjs.map +0 -1
- package/dist/components/skeleton.js +0 -13
- package/dist/components/skeleton.js.map +0 -1
- package/dist/components/skeleton.mjs +0 -4
- package/dist/components/skeleton.mjs.map +0 -1
- package/dist/components/slider.js +0 -13
- package/dist/components/slider.js.map +0 -1
- package/dist/components/slider.mjs +0 -4
- package/dist/components/slider.mjs.map +0 -1
- package/dist/components/switch.js +0 -13
- package/dist/components/switch.js.map +0 -1
- package/dist/components/switch.mjs +0 -4
- package/dist/components/switch.mjs.map +0 -1
- package/dist/components/table.js +0 -41
- package/dist/components/table.js.map +0 -1
- package/dist/components/table.mjs +0 -4
- package/dist/components/table.mjs.map +0 -1
- package/dist/components/tabs.js +0 -25
- package/dist/components/tabs.js.map +0 -1
- package/dist/components/tabs.mjs +0 -4
- package/dist/components/tabs.mjs.map +0 -1
- package/dist/components/textarea.js +0 -13
- package/dist/components/textarea.js.map +0 -1
- package/dist/components/textarea.mjs +0 -4
- package/dist/components/textarea.mjs.map +0 -1
- package/dist/components/toast.js +0 -37
- package/dist/components/toast.js.map +0 -1
- package/dist/components/toast.mjs +0 -4
- package/dist/components/toast.mjs.map +0 -1
- package/dist/components/toggle-group.js +0 -18
- package/dist/components/toggle-group.js.map +0 -1
- package/dist/components/toggle-group.mjs +0 -5
- package/dist/components/toggle-group.mjs.map +0 -1
- package/dist/components/toggle.js +0 -17
- package/dist/components/toggle.js.map +0 -1
- package/dist/components/toggle.mjs +0 -4
- package/dist/components/toggle.mjs.map +0 -1
- package/dist/components/tooltip.js +0 -25
- package/dist/components/tooltip.js.map +0 -1
- package/dist/components/tooltip.mjs +0 -4
- package/dist/components/tooltip.mjs.map +0 -1
- package/dist/effects/index.js +0 -162
- package/dist/effects/index.js.map +0 -1
- package/dist/effects/index.mjs +0 -156
- package/dist/effects/index.mjs.map +0 -1
- package/dist/lib/utils.js +0 -12
- package/dist/lib/utils.js.map +0 -1
- package/dist/lib/utils.mjs +0 -3
- package/dist/lib/utils.mjs.map +0 -1
- package/dist/markdown/index.js +0 -669
- package/dist/markdown/index.js.map +0 -1
- package/dist/markdown/index.mjs +0 -635
- package/dist/markdown/index.mjs.map +0 -1
- package/dist/qr/index.js +0 -101
- package/dist/qr/index.js.map +0 -1
- package/dist/qr/index.mjs +0 -98
- package/dist/qr/index.mjs.map +0 -1
- package/dist/upload/index.js +0 -166
- package/dist/upload/index.js.map +0 -1
- package/dist/upload/index.mjs +0 -163
- package/dist/upload/index.mjs.map +0 -1
- package/publish.sh +0 -27
package/dist/chunk-T7RPZDO4.js
DELETED
|
@@ -1,645 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkKEUZZCCP_js = require('./chunk-KEUZZCCP.js');
|
|
4
|
-
var chunk7EHB43BJ_js = require('./chunk-7EHB43BJ.js');
|
|
5
|
-
var chunkON7NQ4DY_js = require('./chunk-ON7NQ4DY.js');
|
|
6
|
-
var chunkZKGVLTSI_js = require('./chunk-ZKGVLTSI.js');
|
|
7
|
-
var chunkT66B5IM5_js = require('./chunk-T66B5IM5.js');
|
|
8
|
-
var chunkCRALRACO_js = require('./chunk-CRALRACO.js');
|
|
9
|
-
var chunkDN2AEEA2_js = require('./chunk-DN2AEEA2.js');
|
|
10
|
-
var React2 = require('react');
|
|
11
|
-
var reactSlot = require('@radix-ui/react-slot');
|
|
12
|
-
var classVarianceAuthority = require('class-variance-authority');
|
|
13
|
-
var lucideReact = require('lucide-react');
|
|
14
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
15
|
-
|
|
16
|
-
function _interopNamespace(e) {
|
|
17
|
-
if (e && e.__esModule) return e;
|
|
18
|
-
var n = Object.create(null);
|
|
19
|
-
if (e) {
|
|
20
|
-
Object.keys(e).forEach(function (k) {
|
|
21
|
-
if (k !== 'default') {
|
|
22
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
23
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
24
|
-
enumerable: true,
|
|
25
|
-
get: function () { return e[k]; }
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
n.default = e;
|
|
31
|
-
return Object.freeze(n);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
var React2__namespace = /*#__PURE__*/_interopNamespace(React2);
|
|
35
|
-
|
|
36
|
-
function useMediaQuery(query) {
|
|
37
|
-
const [value, setValue] = React2__namespace.useState(false);
|
|
38
|
-
React2__namespace.useEffect(() => {
|
|
39
|
-
function onChange(event) {
|
|
40
|
-
setValue(event.matches);
|
|
41
|
-
}
|
|
42
|
-
const result = matchMedia(query);
|
|
43
|
-
result.addEventListener("change", onChange);
|
|
44
|
-
setValue(result.matches);
|
|
45
|
-
return () => result.removeEventListener("change", onChange);
|
|
46
|
-
}, [query]);
|
|
47
|
-
return value;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
// src/hooks/use-mobile.ts
|
|
51
|
-
function useIsMobile() {
|
|
52
|
-
return useMediaQuery("(max-width: 767px)");
|
|
53
|
-
}
|
|
54
|
-
var SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
55
|
-
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
56
|
-
var SIDEBAR_WIDTH = "16rem";
|
|
57
|
-
var SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
58
|
-
var SIDEBAR_WIDTH_ICON = "3rem";
|
|
59
|
-
var SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
60
|
-
var SidebarContext = React2__namespace.createContext(null);
|
|
61
|
-
function useSidebar() {
|
|
62
|
-
const context = React2__namespace.useContext(SidebarContext);
|
|
63
|
-
if (!context) {
|
|
64
|
-
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
65
|
-
}
|
|
66
|
-
return context;
|
|
67
|
-
}
|
|
68
|
-
var SidebarProvider = React2__namespace.forwardRef(
|
|
69
|
-
({
|
|
70
|
-
defaultOpen = true,
|
|
71
|
-
open: openProp,
|
|
72
|
-
onOpenChange: setOpenProp,
|
|
73
|
-
className,
|
|
74
|
-
style,
|
|
75
|
-
children,
|
|
76
|
-
...props
|
|
77
|
-
}, ref) => {
|
|
78
|
-
const isMobile = useIsMobile();
|
|
79
|
-
const [openMobile, setOpenMobile] = React2__namespace.useState(false);
|
|
80
|
-
const [_open, _setOpen] = React2__namespace.useState(defaultOpen);
|
|
81
|
-
const open = openProp ?? _open;
|
|
82
|
-
const setOpen = React2__namespace.useCallback(
|
|
83
|
-
(value) => {
|
|
84
|
-
const openState = typeof value === "function" ? value(open) : value;
|
|
85
|
-
if (setOpenProp) {
|
|
86
|
-
setOpenProp(openState);
|
|
87
|
-
} else {
|
|
88
|
-
_setOpen(openState);
|
|
89
|
-
}
|
|
90
|
-
document.cookie = `${SIDEBAR_COOKIE_NAME}=${openState}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`;
|
|
91
|
-
},
|
|
92
|
-
[setOpenProp, open]
|
|
93
|
-
);
|
|
94
|
-
const toggleSidebar = React2__namespace.useCallback(() => {
|
|
95
|
-
return isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2);
|
|
96
|
-
}, [isMobile, setOpen, setOpenMobile]);
|
|
97
|
-
React2__namespace.useEffect(() => {
|
|
98
|
-
const handleKeyDown = (event) => {
|
|
99
|
-
if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
|
|
100
|
-
event.preventDefault();
|
|
101
|
-
toggleSidebar();
|
|
102
|
-
}
|
|
103
|
-
};
|
|
104
|
-
window.addEventListener("keydown", handleKeyDown);
|
|
105
|
-
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
106
|
-
}, [toggleSidebar]);
|
|
107
|
-
const state = open ? "expanded" : "collapsed";
|
|
108
|
-
const contextValue = React2__namespace.useMemo(
|
|
109
|
-
() => ({
|
|
110
|
-
state,
|
|
111
|
-
open,
|
|
112
|
-
setOpen,
|
|
113
|
-
isMobile,
|
|
114
|
-
openMobile,
|
|
115
|
-
setOpenMobile,
|
|
116
|
-
toggleSidebar
|
|
117
|
-
}),
|
|
118
|
-
[state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]
|
|
119
|
-
);
|
|
120
|
-
return /* @__PURE__ */ jsxRuntime.jsx(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxRuntime.jsx(chunkT66B5IM5_js.TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
121
|
-
"div",
|
|
122
|
-
{
|
|
123
|
-
style: {
|
|
124
|
-
"--sidebar-width": SIDEBAR_WIDTH,
|
|
125
|
-
"--sidebar-width-icon": SIDEBAR_WIDTH_ICON,
|
|
126
|
-
...style
|
|
127
|
-
},
|
|
128
|
-
className: chunkDN2AEEA2_js.cn(
|
|
129
|
-
"group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",
|
|
130
|
-
className
|
|
131
|
-
),
|
|
132
|
-
ref,
|
|
133
|
-
...props,
|
|
134
|
-
children
|
|
135
|
-
}
|
|
136
|
-
) }) });
|
|
137
|
-
}
|
|
138
|
-
);
|
|
139
|
-
SidebarProvider.displayName = "SidebarProvider";
|
|
140
|
-
var Sidebar = React2__namespace.forwardRef(
|
|
141
|
-
({
|
|
142
|
-
side = "left",
|
|
143
|
-
variant = "sidebar",
|
|
144
|
-
collapsible = "offcanvas",
|
|
145
|
-
className,
|
|
146
|
-
children,
|
|
147
|
-
...props
|
|
148
|
-
}, ref) => {
|
|
149
|
-
const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
|
150
|
-
if (collapsible === "none") {
|
|
151
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
152
|
-
"div",
|
|
153
|
-
{
|
|
154
|
-
className: chunkDN2AEEA2_js.cn(
|
|
155
|
-
"flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",
|
|
156
|
-
className
|
|
157
|
-
),
|
|
158
|
-
ref,
|
|
159
|
-
...props,
|
|
160
|
-
children
|
|
161
|
-
}
|
|
162
|
-
);
|
|
163
|
-
}
|
|
164
|
-
if (isMobile) {
|
|
165
|
-
return /* @__PURE__ */ jsxRuntime.jsx(chunk7EHB43BJ_js.Sheet, { open: openMobile, onOpenChange: setOpenMobile, ...props, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
166
|
-
chunk7EHB43BJ_js.SheetContent,
|
|
167
|
-
{
|
|
168
|
-
"data-sidebar": "sidebar",
|
|
169
|
-
"data-mobile": "true",
|
|
170
|
-
className: "w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",
|
|
171
|
-
style: {
|
|
172
|
-
"--sidebar-width": SIDEBAR_WIDTH_MOBILE
|
|
173
|
-
},
|
|
174
|
-
side,
|
|
175
|
-
children: [
|
|
176
|
-
/* @__PURE__ */ jsxRuntime.jsxs(chunk7EHB43BJ_js.SheetHeader, { className: "sr-only", children: [
|
|
177
|
-
/* @__PURE__ */ jsxRuntime.jsx(chunk7EHB43BJ_js.SheetTitle, { children: "Sidebar" }),
|
|
178
|
-
/* @__PURE__ */ jsxRuntime.jsx(chunk7EHB43BJ_js.SheetDescription, { children: "Displays the mobile sidebar." })
|
|
179
|
-
] }),
|
|
180
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-full w-full flex-col", children })
|
|
181
|
-
]
|
|
182
|
-
}
|
|
183
|
-
) });
|
|
184
|
-
}
|
|
185
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
186
|
-
"div",
|
|
187
|
-
{
|
|
188
|
-
ref,
|
|
189
|
-
className: "group peer hidden text-sidebar-foreground md:block",
|
|
190
|
-
"data-state": state,
|
|
191
|
-
"data-collapsible": state === "collapsed" ? collapsible : "",
|
|
192
|
-
"data-variant": variant,
|
|
193
|
-
"data-side": side,
|
|
194
|
-
children: [
|
|
195
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
196
|
-
"div",
|
|
197
|
-
{
|
|
198
|
-
className: chunkDN2AEEA2_js.cn(
|
|
199
|
-
"relative w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear",
|
|
200
|
-
"group-data-[collapsible=offcanvas]:w-0",
|
|
201
|
-
"group-data-[side=right]:rotate-180",
|
|
202
|
-
variant === "floating" || variant === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]" : "group-data-[collapsible=icon]:w-[--sidebar-width-icon]"
|
|
203
|
-
)
|
|
204
|
-
}
|
|
205
|
-
),
|
|
206
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
207
|
-
"div",
|
|
208
|
-
{
|
|
209
|
-
className: chunkDN2AEEA2_js.cn(
|
|
210
|
-
"fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex",
|
|
211
|
-
side === "left" ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]" : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",
|
|
212
|
-
// Adjust the padding for floating and inset variants.
|
|
213
|
-
variant === "floating" || variant === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]" : "group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",
|
|
214
|
-
className
|
|
215
|
-
),
|
|
216
|
-
...props,
|
|
217
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
218
|
-
"div",
|
|
219
|
-
{
|
|
220
|
-
"data-sidebar": "sidebar",
|
|
221
|
-
className: "flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",
|
|
222
|
-
children
|
|
223
|
-
}
|
|
224
|
-
)
|
|
225
|
-
}
|
|
226
|
-
)
|
|
227
|
-
]
|
|
228
|
-
}
|
|
229
|
-
);
|
|
230
|
-
}
|
|
231
|
-
);
|
|
232
|
-
Sidebar.displayName = "Sidebar";
|
|
233
|
-
var SidebarTrigger = React2__namespace.forwardRef(({ className, onClick, ...props }, ref) => {
|
|
234
|
-
const { toggleSidebar } = useSidebar();
|
|
235
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
236
|
-
chunkCRALRACO_js.Button,
|
|
237
|
-
{
|
|
238
|
-
ref,
|
|
239
|
-
"data-sidebar": "trigger",
|
|
240
|
-
variant: "ghost",
|
|
241
|
-
size: "icon",
|
|
242
|
-
className: chunkDN2AEEA2_js.cn("h-7 w-7", className),
|
|
243
|
-
onClick: (event) => {
|
|
244
|
-
onClick?.(event);
|
|
245
|
-
toggleSidebar();
|
|
246
|
-
},
|
|
247
|
-
...props,
|
|
248
|
-
children: [
|
|
249
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.PanelLeft, {}),
|
|
250
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
251
|
-
]
|
|
252
|
-
}
|
|
253
|
-
);
|
|
254
|
-
});
|
|
255
|
-
SidebarTrigger.displayName = "SidebarTrigger";
|
|
256
|
-
var SidebarRail = React2__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
257
|
-
const { toggleSidebar } = useSidebar();
|
|
258
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
259
|
-
"button",
|
|
260
|
-
{
|
|
261
|
-
ref,
|
|
262
|
-
"data-sidebar": "rail",
|
|
263
|
-
"aria-label": "Toggle Sidebar",
|
|
264
|
-
tabIndex: -1,
|
|
265
|
-
onClick: toggleSidebar,
|
|
266
|
-
title: "Toggle Sidebar",
|
|
267
|
-
className: chunkDN2AEEA2_js.cn(
|
|
268
|
-
"absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex",
|
|
269
|
-
"[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize",
|
|
270
|
-
"[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
|
|
271
|
-
"group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar",
|
|
272
|
-
"[[data-side=left][data-collapsible=offcanvas]_&]:-right-2",
|
|
273
|
-
"[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",
|
|
274
|
-
className
|
|
275
|
-
),
|
|
276
|
-
...props
|
|
277
|
-
}
|
|
278
|
-
);
|
|
279
|
-
});
|
|
280
|
-
SidebarRail.displayName = "SidebarRail";
|
|
281
|
-
var SidebarInset = React2__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
282
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
283
|
-
"main",
|
|
284
|
-
{
|
|
285
|
-
ref,
|
|
286
|
-
className: chunkDN2AEEA2_js.cn(
|
|
287
|
-
"relative flex w-full flex-1 flex-col bg-background",
|
|
288
|
-
"md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",
|
|
289
|
-
className
|
|
290
|
-
),
|
|
291
|
-
...props
|
|
292
|
-
}
|
|
293
|
-
);
|
|
294
|
-
});
|
|
295
|
-
SidebarInset.displayName = "SidebarInset";
|
|
296
|
-
var SidebarInput = React2__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
297
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
298
|
-
chunkZKGVLTSI_js.Input,
|
|
299
|
-
{
|
|
300
|
-
ref,
|
|
301
|
-
"data-sidebar": "input",
|
|
302
|
-
className: chunkDN2AEEA2_js.cn(
|
|
303
|
-
"h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",
|
|
304
|
-
className
|
|
305
|
-
),
|
|
306
|
-
...props
|
|
307
|
-
}
|
|
308
|
-
);
|
|
309
|
-
});
|
|
310
|
-
SidebarInput.displayName = "SidebarInput";
|
|
311
|
-
var SidebarHeader = React2__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
312
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
313
|
-
"div",
|
|
314
|
-
{
|
|
315
|
-
ref,
|
|
316
|
-
"data-sidebar": "header",
|
|
317
|
-
className: chunkDN2AEEA2_js.cn("flex flex-col gap-2 p-2", className),
|
|
318
|
-
...props
|
|
319
|
-
}
|
|
320
|
-
);
|
|
321
|
-
});
|
|
322
|
-
SidebarHeader.displayName = "SidebarHeader";
|
|
323
|
-
var SidebarFooter = React2__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
324
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
325
|
-
"div",
|
|
326
|
-
{
|
|
327
|
-
ref,
|
|
328
|
-
"data-sidebar": "footer",
|
|
329
|
-
className: chunkDN2AEEA2_js.cn("flex flex-col gap-2 p-2", className),
|
|
330
|
-
...props
|
|
331
|
-
}
|
|
332
|
-
);
|
|
333
|
-
});
|
|
334
|
-
SidebarFooter.displayName = "SidebarFooter";
|
|
335
|
-
var SidebarSeparator = React2__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
336
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
337
|
-
chunkKEUZZCCP_js.Separator,
|
|
338
|
-
{
|
|
339
|
-
ref,
|
|
340
|
-
"data-sidebar": "separator",
|
|
341
|
-
className: chunkDN2AEEA2_js.cn("mx-2 w-auto bg-sidebar-border", className),
|
|
342
|
-
...props
|
|
343
|
-
}
|
|
344
|
-
);
|
|
345
|
-
});
|
|
346
|
-
SidebarSeparator.displayName = "SidebarSeparator";
|
|
347
|
-
var SidebarContent = React2__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
348
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
349
|
-
"div",
|
|
350
|
-
{
|
|
351
|
-
ref,
|
|
352
|
-
"data-sidebar": "content",
|
|
353
|
-
className: chunkDN2AEEA2_js.cn(
|
|
354
|
-
"flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",
|
|
355
|
-
className
|
|
356
|
-
),
|
|
357
|
-
...props
|
|
358
|
-
}
|
|
359
|
-
);
|
|
360
|
-
});
|
|
361
|
-
SidebarContent.displayName = "SidebarContent";
|
|
362
|
-
var SidebarGroup = React2__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
363
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
364
|
-
"div",
|
|
365
|
-
{
|
|
366
|
-
ref,
|
|
367
|
-
"data-sidebar": "group",
|
|
368
|
-
className: chunkDN2AEEA2_js.cn("relative flex w-full min-w-0 flex-col p-2", className),
|
|
369
|
-
...props
|
|
370
|
-
}
|
|
371
|
-
);
|
|
372
|
-
});
|
|
373
|
-
SidebarGroup.displayName = "SidebarGroup";
|
|
374
|
-
var SidebarGroupLabel = React2__namespace.forwardRef(({ className, asChild = false, ...props }, ref) => {
|
|
375
|
-
const Comp = asChild ? reactSlot.Slot : "div";
|
|
376
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
377
|
-
Comp,
|
|
378
|
-
{
|
|
379
|
-
ref,
|
|
380
|
-
"data-sidebar": "group-label",
|
|
381
|
-
className: chunkDN2AEEA2_js.cn(
|
|
382
|
-
"flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
383
|
-
"group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",
|
|
384
|
-
className
|
|
385
|
-
),
|
|
386
|
-
...props
|
|
387
|
-
}
|
|
388
|
-
);
|
|
389
|
-
});
|
|
390
|
-
SidebarGroupLabel.displayName = "SidebarGroupLabel";
|
|
391
|
-
var SidebarGroupAction = React2__namespace.forwardRef(({ className, asChild = false, ...props }, ref) => {
|
|
392
|
-
const Comp = asChild ? reactSlot.Slot : "button";
|
|
393
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
394
|
-
Comp,
|
|
395
|
-
{
|
|
396
|
-
ref,
|
|
397
|
-
"data-sidebar": "group-action",
|
|
398
|
-
className: chunkDN2AEEA2_js.cn(
|
|
399
|
-
"absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
400
|
-
// Increases the hit area of the button on mobile.
|
|
401
|
-
"after:absolute after:-inset-2 after:md:hidden",
|
|
402
|
-
"group-data-[collapsible=icon]:hidden",
|
|
403
|
-
className
|
|
404
|
-
),
|
|
405
|
-
...props
|
|
406
|
-
}
|
|
407
|
-
);
|
|
408
|
-
});
|
|
409
|
-
SidebarGroupAction.displayName = "SidebarGroupAction";
|
|
410
|
-
var SidebarGroupContent = React2__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
411
|
-
"div",
|
|
412
|
-
{
|
|
413
|
-
ref,
|
|
414
|
-
"data-sidebar": "group-content",
|
|
415
|
-
className: chunkDN2AEEA2_js.cn("w-full text-sm", className),
|
|
416
|
-
...props
|
|
417
|
-
}
|
|
418
|
-
));
|
|
419
|
-
SidebarGroupContent.displayName = "SidebarGroupContent";
|
|
420
|
-
var SidebarMenu = React2__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
421
|
-
"ul",
|
|
422
|
-
{
|
|
423
|
-
ref,
|
|
424
|
-
"data-sidebar": "menu",
|
|
425
|
-
className: chunkDN2AEEA2_js.cn("flex w-full min-w-0 flex-col gap-1", className),
|
|
426
|
-
...props
|
|
427
|
-
}
|
|
428
|
-
));
|
|
429
|
-
SidebarMenu.displayName = "SidebarMenu";
|
|
430
|
-
var SidebarMenuItem = React2__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
431
|
-
"li",
|
|
432
|
-
{
|
|
433
|
-
ref,
|
|
434
|
-
"data-sidebar": "menu-item",
|
|
435
|
-
className: chunkDN2AEEA2_js.cn("group/menu-item relative", className),
|
|
436
|
-
...props
|
|
437
|
-
}
|
|
438
|
-
));
|
|
439
|
-
SidebarMenuItem.displayName = "SidebarMenuItem";
|
|
440
|
-
var sidebarMenuButtonVariants = classVarianceAuthority.cva(
|
|
441
|
-
"peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
|
|
442
|
-
{
|
|
443
|
-
variants: {
|
|
444
|
-
variant: {
|
|
445
|
-
default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
|
|
446
|
-
outline: "bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"
|
|
447
|
-
},
|
|
448
|
-
size: {
|
|
449
|
-
default: "h-8 text-sm",
|
|
450
|
-
sm: "h-7 text-xs",
|
|
451
|
-
lg: "h-12 text-sm group-data-[collapsible=icon]:!p-0"
|
|
452
|
-
}
|
|
453
|
-
},
|
|
454
|
-
defaultVariants: {
|
|
455
|
-
variant: "default",
|
|
456
|
-
size: "default"
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
);
|
|
460
|
-
var SidebarMenuButton = React2__namespace.forwardRef(
|
|
461
|
-
({
|
|
462
|
-
asChild = false,
|
|
463
|
-
isActive = false,
|
|
464
|
-
variant = "default",
|
|
465
|
-
size = "default",
|
|
466
|
-
tooltip,
|
|
467
|
-
className,
|
|
468
|
-
...props
|
|
469
|
-
}, ref) => {
|
|
470
|
-
const Comp = asChild ? reactSlot.Slot : "button";
|
|
471
|
-
const { isMobile, state } = useSidebar();
|
|
472
|
-
const button = /* @__PURE__ */ jsxRuntime.jsx(
|
|
473
|
-
Comp,
|
|
474
|
-
{
|
|
475
|
-
ref,
|
|
476
|
-
"data-sidebar": "menu-button",
|
|
477
|
-
"data-size": size,
|
|
478
|
-
"data-active": isActive,
|
|
479
|
-
className: chunkDN2AEEA2_js.cn(sidebarMenuButtonVariants({ variant, size }), className),
|
|
480
|
-
...props
|
|
481
|
-
}
|
|
482
|
-
);
|
|
483
|
-
if (!tooltip) {
|
|
484
|
-
return button;
|
|
485
|
-
}
|
|
486
|
-
if (typeof tooltip === "string") {
|
|
487
|
-
tooltip = {
|
|
488
|
-
children: tooltip
|
|
489
|
-
};
|
|
490
|
-
}
|
|
491
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(chunkT66B5IM5_js.Tooltip, { children: [
|
|
492
|
-
/* @__PURE__ */ jsxRuntime.jsx(chunkT66B5IM5_js.TooltipTrigger, { asChild: true, children: button }),
|
|
493
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
494
|
-
chunkT66B5IM5_js.TooltipContent,
|
|
495
|
-
{
|
|
496
|
-
side: "right",
|
|
497
|
-
align: "center",
|
|
498
|
-
hidden: state !== "collapsed" || isMobile,
|
|
499
|
-
...tooltip
|
|
500
|
-
}
|
|
501
|
-
)
|
|
502
|
-
] });
|
|
503
|
-
}
|
|
504
|
-
);
|
|
505
|
-
SidebarMenuButton.displayName = "SidebarMenuButton";
|
|
506
|
-
var SidebarMenuAction = React2__namespace.forwardRef(({ className, asChild = false, showOnHover = false, ...props }, ref) => {
|
|
507
|
-
const Comp = asChild ? reactSlot.Slot : "button";
|
|
508
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
509
|
-
Comp,
|
|
510
|
-
{
|
|
511
|
-
ref,
|
|
512
|
-
"data-sidebar": "menu-action",
|
|
513
|
-
className: chunkDN2AEEA2_js.cn(
|
|
514
|
-
"absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0",
|
|
515
|
-
// Increases the hit area of the button on mobile.
|
|
516
|
-
"after:absolute after:-inset-2 after:md:hidden",
|
|
517
|
-
"peer-data-[size=sm]/menu-button:top-1",
|
|
518
|
-
"peer-data-[size=default]/menu-button:top-1.5",
|
|
519
|
-
"peer-data-[size=lg]/menu-button:top-2.5",
|
|
520
|
-
"group-data-[collapsible=icon]:hidden",
|
|
521
|
-
showOnHover && "group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",
|
|
522
|
-
className
|
|
523
|
-
),
|
|
524
|
-
...props
|
|
525
|
-
}
|
|
526
|
-
);
|
|
527
|
-
});
|
|
528
|
-
SidebarMenuAction.displayName = "SidebarMenuAction";
|
|
529
|
-
var SidebarMenuBadge = React2__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
530
|
-
"div",
|
|
531
|
-
{
|
|
532
|
-
ref,
|
|
533
|
-
"data-sidebar": "menu-badge",
|
|
534
|
-
className: chunkDN2AEEA2_js.cn(
|
|
535
|
-
"pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground",
|
|
536
|
-
"peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground",
|
|
537
|
-
"peer-data-[size=sm]/menu-button:top-1",
|
|
538
|
-
"peer-data-[size=default]/menu-button:top-1.5",
|
|
539
|
-
"peer-data-[size=lg]/menu-button:top-2.5",
|
|
540
|
-
"group-data-[collapsible=icon]:hidden",
|
|
541
|
-
className
|
|
542
|
-
),
|
|
543
|
-
...props
|
|
544
|
-
}
|
|
545
|
-
));
|
|
546
|
-
SidebarMenuBadge.displayName = "SidebarMenuBadge";
|
|
547
|
-
var SidebarMenuSkeleton = React2__namespace.forwardRef(({ className, showIcon = false, ...props }, ref) => {
|
|
548
|
-
const width = React2__namespace.useMemo(() => {
|
|
549
|
-
return `${Math.floor(Math.random() * 40) + 50}%`;
|
|
550
|
-
}, []);
|
|
551
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
552
|
-
"div",
|
|
553
|
-
{
|
|
554
|
-
ref,
|
|
555
|
-
"data-sidebar": "menu-skeleton",
|
|
556
|
-
className: chunkDN2AEEA2_js.cn("flex h-8 items-center gap-2 rounded-md px-2", className),
|
|
557
|
-
...props,
|
|
558
|
-
children: [
|
|
559
|
-
showIcon && /* @__PURE__ */ jsxRuntime.jsx(
|
|
560
|
-
chunkON7NQ4DY_js.Skeleton,
|
|
561
|
-
{
|
|
562
|
-
className: "size-4 rounded-md",
|
|
563
|
-
"data-sidebar": "menu-skeleton-icon"
|
|
564
|
-
}
|
|
565
|
-
),
|
|
566
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
567
|
-
chunkON7NQ4DY_js.Skeleton,
|
|
568
|
-
{
|
|
569
|
-
className: "h-4 max-w-[--skeleton-width] flex-1",
|
|
570
|
-
"data-sidebar": "menu-skeleton-text",
|
|
571
|
-
style: {
|
|
572
|
-
"--skeleton-width": width
|
|
573
|
-
}
|
|
574
|
-
}
|
|
575
|
-
)
|
|
576
|
-
]
|
|
577
|
-
}
|
|
578
|
-
);
|
|
579
|
-
});
|
|
580
|
-
SidebarMenuSkeleton.displayName = "SidebarMenuSkeleton";
|
|
581
|
-
var SidebarMenuSub = React2__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
582
|
-
"ul",
|
|
583
|
-
{
|
|
584
|
-
ref,
|
|
585
|
-
"data-sidebar": "menu-sub",
|
|
586
|
-
className: chunkDN2AEEA2_js.cn(
|
|
587
|
-
"mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5",
|
|
588
|
-
"group-data-[collapsible=icon]:hidden",
|
|
589
|
-
className
|
|
590
|
-
),
|
|
591
|
-
...props
|
|
592
|
-
}
|
|
593
|
-
));
|
|
594
|
-
SidebarMenuSub.displayName = "SidebarMenuSub";
|
|
595
|
-
var SidebarMenuSubItem = React2__namespace.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("li", { ref, ...props }));
|
|
596
|
-
SidebarMenuSubItem.displayName = "SidebarMenuSubItem";
|
|
597
|
-
var SidebarMenuSubButton = React2__namespace.forwardRef(({ asChild = false, size = "md", isActive, className, ...props }, ref) => {
|
|
598
|
-
const Comp = asChild ? reactSlot.Slot : "a";
|
|
599
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
600
|
-
Comp,
|
|
601
|
-
{
|
|
602
|
-
ref,
|
|
603
|
-
"data-sidebar": "menu-sub-button",
|
|
604
|
-
"data-size": size,
|
|
605
|
-
"data-active": isActive,
|
|
606
|
-
className: chunkDN2AEEA2_js.cn(
|
|
607
|
-
"flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground",
|
|
608
|
-
"data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",
|
|
609
|
-
size === "sm" && "text-xs",
|
|
610
|
-
size === "md" && "text-sm",
|
|
611
|
-
"group-data-[collapsible=icon]:hidden",
|
|
612
|
-
className
|
|
613
|
-
),
|
|
614
|
-
...props
|
|
615
|
-
}
|
|
616
|
-
);
|
|
617
|
-
});
|
|
618
|
-
SidebarMenuSubButton.displayName = "SidebarMenuSubButton";
|
|
619
|
-
|
|
620
|
-
exports.Sidebar = Sidebar;
|
|
621
|
-
exports.SidebarContent = SidebarContent;
|
|
622
|
-
exports.SidebarFooter = SidebarFooter;
|
|
623
|
-
exports.SidebarGroup = SidebarGroup;
|
|
624
|
-
exports.SidebarGroupAction = SidebarGroupAction;
|
|
625
|
-
exports.SidebarGroupContent = SidebarGroupContent;
|
|
626
|
-
exports.SidebarGroupLabel = SidebarGroupLabel;
|
|
627
|
-
exports.SidebarHeader = SidebarHeader;
|
|
628
|
-
exports.SidebarInput = SidebarInput;
|
|
629
|
-
exports.SidebarInset = SidebarInset;
|
|
630
|
-
exports.SidebarMenu = SidebarMenu;
|
|
631
|
-
exports.SidebarMenuAction = SidebarMenuAction;
|
|
632
|
-
exports.SidebarMenuBadge = SidebarMenuBadge;
|
|
633
|
-
exports.SidebarMenuButton = SidebarMenuButton;
|
|
634
|
-
exports.SidebarMenuItem = SidebarMenuItem;
|
|
635
|
-
exports.SidebarMenuSkeleton = SidebarMenuSkeleton;
|
|
636
|
-
exports.SidebarMenuSub = SidebarMenuSub;
|
|
637
|
-
exports.SidebarMenuSubButton = SidebarMenuSubButton;
|
|
638
|
-
exports.SidebarMenuSubItem = SidebarMenuSubItem;
|
|
639
|
-
exports.SidebarProvider = SidebarProvider;
|
|
640
|
-
exports.SidebarRail = SidebarRail;
|
|
641
|
-
exports.SidebarSeparator = SidebarSeparator;
|
|
642
|
-
exports.SidebarTrigger = SidebarTrigger;
|
|
643
|
-
exports.useSidebar = useSidebar;
|
|
644
|
-
//# sourceMappingURL=chunk-T7RPZDO4.js.map
|
|
645
|
-
//# sourceMappingURL=chunk-T7RPZDO4.js.map
|