@work-rjkashyap/unified-ui 0.3.3 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +105 -0
- package/LICENSE +21 -0
- package/dist/components/accordion.cjs +225 -0
- package/dist/components/accordion.d.cts +157 -0
- package/dist/components/accordion.d.ts +157 -0
- package/dist/components/accordion.mjs +199 -0
- package/dist/components/alert-dialog.cjs +246 -0
- package/dist/components/alert-dialog.d.cts +61 -0
- package/dist/components/alert-dialog.d.ts +61 -0
- package/dist/components/alert-dialog.mjs +218 -0
- package/dist/components/alert.cjs +401 -0
- package/dist/components/alert.d.cts +217 -0
- package/dist/components/alert.d.ts +217 -0
- package/dist/components/alert.mjs +374 -0
- package/dist/components/aspect-ratio.cjs +45 -0
- package/dist/components/aspect-ratio.d.cts +10 -0
- package/dist/components/aspect-ratio.d.ts +10 -0
- package/dist/components/aspect-ratio.mjs +23 -0
- package/dist/components/avatar.cjs +348 -0
- package/dist/components/avatar.d.cts +198 -0
- package/dist/components/avatar.d.ts +198 -0
- package/dist/components/avatar.mjs +329 -0
- package/dist/components/badge.cjs +325 -0
- package/dist/components/badge.d.cts +259 -0
- package/dist/components/badge.d.ts +259 -0
- package/dist/components/badge.mjs +298 -0
- package/dist/components/banner.cjs +147 -0
- package/dist/components/banner.d.cts +31 -0
- package/dist/components/banner.d.ts +31 -0
- package/dist/components/banner.mjs +122 -0
- package/dist/components/breadcrumb.cjs +266 -0
- package/dist/components/breadcrumb.d.cts +159 -0
- package/dist/components/breadcrumb.d.ts +159 -0
- package/dist/components/breadcrumb.mjs +235 -0
- package/dist/components/button.cjs +254 -0
- package/dist/components/button.d.cts +126 -0
- package/dist/components/button.d.ts +126 -0
- package/dist/components/button.mjs +229 -0
- package/dist/components/calendar.cjs +511 -0
- package/dist/components/calendar.d.cts +94 -0
- package/dist/components/calendar.d.ts +94 -0
- package/dist/components/calendar.mjs +492 -0
- package/dist/components/card.cjs +234 -0
- package/dist/components/card.d.cts +190 -0
- package/dist/components/card.d.ts +190 -0
- package/dist/components/card.mjs +210 -0
- package/dist/components/carousel.cjs +234 -0
- package/dist/components/carousel.d.cts +30 -0
- package/dist/components/carousel.d.ts +30 -0
- package/dist/components/carousel.mjs +217 -0
- package/dist/components/chart.cjs +122 -0
- package/dist/components/chart.d.cts +103 -0
- package/dist/components/chart.d.ts +103 -0
- package/dist/components/chart.mjs +96 -0
- package/dist/components/checkbox.cjs +318 -0
- package/dist/components/checkbox.d.cts +182 -0
- package/dist/components/checkbox.d.ts +182 -0
- package/dist/components/checkbox.mjs +296 -0
- package/dist/components/code-highlight.cjs +335 -0
- package/dist/components/code-highlight.d.cts +18 -0
- package/dist/components/code-highlight.d.ts +18 -0
- package/dist/components/code-highlight.mjs +308 -0
- package/dist/components/code.cjs +265 -0
- package/dist/components/code.d.cts +40 -0
- package/dist/components/code.d.ts +40 -0
- package/dist/components/code.mjs +243 -0
- package/dist/components/collapsible.cjs +143 -0
- package/dist/components/collapsible.d.cts +159 -0
- package/dist/components/collapsible.d.ts +159 -0
- package/dist/components/collapsible.mjs +123 -0
- package/dist/components/color-picker.cjs +348 -0
- package/dist/components/color-picker.d.cts +35 -0
- package/dist/components/color-picker.d.ts +35 -0
- package/dist/components/color-picker.mjs +331 -0
- package/dist/components/combobox.cjs +584 -0
- package/dist/components/combobox.d.cts +183 -0
- package/dist/components/combobox.d.ts +183 -0
- package/dist/components/combobox.mjs +571 -0
- package/dist/components/command.cjs +329 -0
- package/dist/components/command.d.cts +97 -0
- package/dist/components/command.d.ts +97 -0
- package/dist/components/command.mjs +311 -0
- package/dist/components/confirm-dialog.cjs +100 -0
- package/dist/components/confirm-dialog.d.cts +25 -0
- package/dist/components/confirm-dialog.d.ts +25 -0
- package/dist/components/confirm-dialog.mjs +86 -0
- package/dist/components/context-menu.cjs +325 -0
- package/dist/components/context-menu.d.cts +259 -0
- package/dist/components/context-menu.d.ts +259 -0
- package/dist/components/context-menu.mjs +290 -0
- package/dist/components/copy-button.cjs +203 -0
- package/dist/components/copy-button.d.cts +22 -0
- package/dist/components/copy-button.d.ts +22 -0
- package/dist/components/copy-button.mjs +178 -0
- package/dist/components/data-list.cjs +140 -0
- package/dist/components/data-list.d.cts +36 -0
- package/dist/components/data-list.d.ts +36 -0
- package/dist/components/data-list.mjs +113 -0
- package/dist/components/data-table-toolbar.cjs +338 -0
- package/dist/components/data-table-toolbar.d.cts +84 -0
- package/dist/components/data-table-toolbar.d.ts +84 -0
- package/dist/components/data-table-toolbar.mjs +320 -0
- package/dist/components/data-table.cjs +1324 -0
- package/dist/components/data-table.d.cts +349 -0
- package/dist/components/data-table.d.ts +349 -0
- package/dist/components/data-table.mjs +1323 -0
- package/dist/components/date-picker.cjs +282 -0
- package/dist/components/date-picker.d.cts +97 -0
- package/dist/components/date-picker.d.ts +97 -0
- package/dist/components/date-picker.mjs +258 -0
- package/dist/components/dialog.cjs +319 -0
- package/dist/components/dialog.d.cts +74 -0
- package/dist/components/dialog.d.ts +74 -0
- package/dist/components/dialog.mjs +292 -0
- package/dist/components/drawer.cjs +262 -0
- package/dist/components/drawer.d.cts +113 -0
- package/dist/components/drawer.d.ts +113 -0
- package/dist/components/drawer.mjs +230 -0
- package/dist/components/dropdown-menu.cjs +328 -0
- package/dist/components/dropdown-menu.d.cts +95 -0
- package/dist/components/dropdown-menu.d.ts +95 -0
- package/dist/components/dropdown-menu.mjs +293 -0
- package/dist/components/empty-state.cjs +123 -0
- package/dist/components/empty-state.d.cts +15 -0
- package/dist/components/empty-state.d.ts +15 -0
- package/dist/components/empty-state.mjs +99 -0
- package/dist/components/file-upload.cjs +442 -0
- package/dist/components/file-upload.d.cts +35 -0
- package/dist/components/file-upload.d.ts +35 -0
- package/dist/components/file-upload.mjs +423 -0
- package/dist/components/form-field.cjs +191 -0
- package/dist/components/form-field.d.cts +163 -0
- package/dist/components/form-field.d.ts +163 -0
- package/dist/components/form-field.mjs +167 -0
- package/dist/components/hover-card.cjs +99 -0
- package/dist/components/hover-card.d.cts +28 -0
- package/dist/components/hover-card.d.ts +28 -0
- package/dist/components/hover-card.mjs +75 -0
- package/dist/components/image-gallery.cjs +359 -0
- package/dist/components/image-gallery.d.cts +46 -0
- package/dist/components/image-gallery.d.ts +46 -0
- package/dist/components/image-gallery.mjs +340 -0
- package/dist/components/index.cjs +719 -0
- package/dist/components/index.d.cts +84 -0
- package/dist/components/index.d.ts +84 -0
- package/dist/components/index.mjs +771 -0
- package/dist/components/infinite-scroll.cjs +95 -0
- package/dist/components/infinite-scroll.d.cts +54 -0
- package/dist/components/infinite-scroll.d.ts +54 -0
- package/dist/components/infinite-scroll.mjs +71 -0
- package/dist/components/input-group.cjs +202 -0
- package/dist/components/input-group.d.cts +22 -0
- package/dist/components/input-group.d.ts +22 -0
- package/dist/components/input-group.mjs +178 -0
- package/dist/components/input.cjs +318 -0
- package/dist/components/input.d.cts +99 -0
- package/dist/components/input.d.ts +99 -0
- package/dist/components/input.mjs +296 -0
- package/dist/components/kbd.cjs +69 -0
- package/dist/components/kbd.d.cts +25 -0
- package/dist/components/kbd.d.ts +25 -0
- package/dist/components/kbd.mjs +44 -0
- package/dist/components/label.cjs +138 -0
- package/dist/components/label.d.cts +91 -0
- package/dist/components/label.d.ts +91 -0
- package/dist/components/label.mjs +113 -0
- package/dist/components/markdown.cjs +179 -0
- package/dist/components/markdown.d.cts +41 -0
- package/dist/components/markdown.d.ts +41 -0
- package/dist/components/markdown.mjs +155 -0
- package/dist/components/menubar.cjs +365 -0
- package/dist/components/menubar.d.cts +88 -0
- package/dist/components/menubar.d.ts +88 -0
- package/dist/components/menubar.mjs +329 -0
- package/dist/components/navigation-menu.cjs +280 -0
- package/dist/components/navigation-menu.d.cts +123 -0
- package/dist/components/navigation-menu.d.ts +123 -0
- package/dist/components/navigation-menu.mjs +250 -0
- package/dist/components/number-input.cjs +419 -0
- package/dist/components/number-input.d.cts +111 -0
- package/dist/components/number-input.d.ts +111 -0
- package/dist/components/number-input.mjs +400 -0
- package/dist/components/pagination.cjs +322 -0
- package/dist/components/pagination.d.cts +119 -0
- package/dist/components/pagination.d.ts +119 -0
- package/dist/components/pagination.mjs +297 -0
- package/dist/components/pin-input.cjs +321 -0
- package/dist/components/pin-input.d.cts +112 -0
- package/dist/components/pin-input.d.ts +112 -0
- package/dist/components/pin-input.mjs +303 -0
- package/dist/components/popover.cjs +194 -0
- package/dist/components/popover.d.cts +108 -0
- package/dist/components/popover.d.ts +108 -0
- package/dist/components/popover.mjs +168 -0
- package/dist/components/progress.cjs +237 -0
- package/dist/components/progress.d.cts +137 -0
- package/dist/components/progress.d.ts +137 -0
- package/dist/components/progress.mjs +211 -0
- package/dist/components/radio.cjs +344 -0
- package/dist/components/radio.d.cts +145 -0
- package/dist/components/radio.d.ts +145 -0
- package/dist/components/radio.mjs +320 -0
- package/dist/components/resizable.cjs +121 -0
- package/dist/components/resizable.d.cts +23 -0
- package/dist/components/resizable.d.ts +23 -0
- package/dist/components/resizable.mjs +99 -0
- package/dist/components/scroll-area.cjs +168 -0
- package/dist/components/scroll-area.d.cts +131 -0
- package/dist/components/scroll-area.d.ts +131 -0
- package/dist/components/scroll-area.mjs +143 -0
- package/dist/components/search-input.cjs +261 -0
- package/dist/components/search-input.d.cts +26 -0
- package/dist/components/search-input.d.ts +26 -0
- package/dist/components/search-input.mjs +243 -0
- package/dist/components/select.cjs +320 -0
- package/dist/components/select.d.cts +55 -0
- package/dist/components/select.d.ts +55 -0
- package/dist/components/select.mjs +288 -0
- package/dist/components/separator.cjs +193 -0
- package/dist/components/separator.d.cts +92 -0
- package/dist/components/separator.d.ts +92 -0
- package/dist/components/separator.mjs +170 -0
- package/dist/components/sheet.cjs +399 -0
- package/dist/components/sheet.d.cts +219 -0
- package/dist/components/sheet.d.ts +219 -0
- package/dist/components/sheet.mjs +379 -0
- package/dist/components/sidebar.cjs +1077 -0
- package/dist/components/sidebar.d.cts +733 -0
- package/dist/components/sidebar.d.ts +733 -0
- package/dist/components/sidebar.mjs +1033 -0
- package/dist/components/skeleton.cjs +210 -0
- package/dist/components/skeleton.d.cts +202 -0
- package/dist/components/skeleton.d.ts +202 -0
- package/dist/components/skeleton.mjs +182 -0
- package/dist/components/slider.cjs +319 -0
- package/dist/components/slider.d.cts +82 -0
- package/dist/components/slider.d.ts +82 -0
- package/dist/components/slider.mjs +296 -0
- package/dist/components/sonner.cjs +119 -0
- package/dist/components/sonner.d.cts +60 -0
- package/dist/components/sonner.d.ts +60 -0
- package/dist/components/sonner.mjs +94 -0
- package/dist/components/spinner.cjs +238 -0
- package/dist/components/spinner.d.cts +101 -0
- package/dist/components/spinner.d.ts +101 -0
- package/dist/components/spinner.mjs +213 -0
- package/dist/components/stat.cjs +180 -0
- package/dist/components/stat.d.cts +21 -0
- package/dist/components/stat.d.ts +21 -0
- package/dist/components/stat.mjs +161 -0
- package/dist/components/steps.cjs +228 -0
- package/dist/components/steps.d.cts +76 -0
- package/dist/components/steps.d.ts +76 -0
- package/dist/components/steps.mjs +207 -0
- package/dist/components/switch.cjs +243 -0
- package/dist/components/switch.d.cts +90 -0
- package/dist/components/switch.d.ts +90 -0
- package/dist/components/switch.mjs +228 -0
- package/dist/components/table.cjs +381 -0
- package/dist/components/table.d.cts +181 -0
- package/dist/components/table.d.ts +181 -0
- package/dist/components/table.mjs +349 -0
- package/dist/components/tabs.cjs +326 -0
- package/dist/components/tabs.d.cts +154 -0
- package/dist/components/tabs.d.ts +154 -0
- package/dist/components/tabs.mjs +304 -0
- package/dist/components/textarea.cjs +258 -0
- package/dist/components/textarea.d.cts +112 -0
- package/dist/components/textarea.d.ts +112 -0
- package/dist/components/textarea.mjs +233 -0
- package/dist/components/theme-toggle.cjs +282 -0
- package/dist/components/theme-toggle.d.cts +58 -0
- package/dist/components/theme-toggle.d.ts +58 -0
- package/dist/components/theme-toggle.mjs +258 -0
- package/dist/components/timeline.cjs +178 -0
- package/dist/components/timeline.d.cts +41 -0
- package/dist/components/timeline.d.ts +41 -0
- package/dist/components/timeline.mjs +157 -0
- package/dist/components/toast.cjs +546 -0
- package/dist/components/toast.d.cts +169 -0
- package/dist/components/toast.d.ts +169 -0
- package/dist/components/toast.mjs +528 -0
- package/dist/components/toggle-group.cjs +204 -0
- package/dist/components/toggle-group.d.cts +215 -0
- package/dist/components/toggle-group.d.ts +215 -0
- package/dist/components/toggle-group.mjs +180 -0
- package/dist/components/toggle.cjs +155 -0
- package/dist/components/toggle.d.cts +100 -0
- package/dist/components/toggle.d.ts +100 -0
- package/dist/components/toggle.mjs +130 -0
- package/dist/components/tooltip.cjs +155 -0
- package/dist/components/tooltip.d.cts +129 -0
- package/dist/components/tooltip.d.ts +129 -0
- package/dist/components/tooltip.mjs +132 -0
- package/dist/components/tree-view.cjs +450 -0
- package/dist/components/tree-view.d.cts +67 -0
- package/dist/components/tree-view.d.ts +67 -0
- package/dist/components/tree-view.mjs +433 -0
- package/dist/components/video-player.cjs +344 -0
- package/dist/components/video-player.d.cts +34 -0
- package/dist/components/video-player.d.ts +34 -0
- package/dist/components/video-player.mjs +320 -0
- package/dist/components/virtual-list.cjs +153 -0
- package/dist/components/virtual-list.d.cts +53 -0
- package/dist/components/virtual-list.d.ts +53 -0
- package/dist/components/virtual-list.mjs +136 -0
- package/dist/components/visually-hidden.cjs +43 -0
- package/dist/components/visually-hidden.d.cts +9 -0
- package/dist/components/visually-hidden.d.ts +9 -0
- package/dist/components/visually-hidden.mjs +21 -0
- package/dist/index.cjs +1081 -1933
- package/dist/index.d.cts +99 -11
- package/dist/index.d.ts +99 -11
- package/dist/index.mjs +1138 -16
- package/dist/motion/hooks.cjs +98 -0
- package/dist/motion/hooks.d.cts +32 -0
- package/dist/motion/hooks.d.ts +32 -0
- package/dist/motion/hooks.mjs +70 -0
- package/dist/motion/index.cjs +157 -0
- package/dist/motion/index.d.cts +5 -0
- package/dist/motion/index.d.ts +5 -0
- package/dist/motion/index.mjs +137 -0
- package/dist/motion/presets.cjs +609 -0
- package/dist/{motion.d.ts → motion/presets.d.cts} +1 -30
- package/dist/{motion.d.cts → motion/presets.d.ts} +1 -30
- package/dist/{chunk-PLRSH37T.mjs → motion/presets.mjs} +119 -126
- package/dist/primitives/container.cjs +88 -0
- package/dist/primitives/container.d.cts +82 -0
- package/dist/primitives/container.d.ts +82 -0
- package/dist/primitives/container.mjs +64 -0
- package/dist/primitives/divider.cjs +74 -0
- package/dist/primitives/divider.d.cts +30 -0
- package/dist/primitives/divider.d.ts +30 -0
- package/dist/primitives/divider.mjs +50 -0
- package/dist/primitives/index.cjs +54 -0
- package/dist/primitives/index.d.cts +6 -0
- package/dist/primitives/index.d.ts +6 -0
- package/dist/primitives/index.mjs +33 -0
- package/dist/primitives/stack.cjs +167 -0
- package/dist/primitives/stack.d.cts +132 -0
- package/dist/primitives/stack.d.ts +132 -0
- package/dist/primitives/stack.mjs +142 -0
- package/dist/primitives/typography.cjs +260 -0
- package/dist/primitives/typography.d.cts +157 -0
- package/dist/primitives/typography.d.ts +157 -0
- package/dist/primitives/typography.mjs +229 -0
- package/dist/theme/contract.cjs +246 -0
- package/dist/theme/contract.d.cts +76 -0
- package/dist/theme/contract.d.ts +76 -0
- package/dist/theme/contract.mjs +221 -0
- package/dist/theme/customizer-store.cjs +266 -0
- package/dist/theme/customizer-store.d.cts +76 -0
- package/dist/theme/customizer-store.d.ts +76 -0
- package/dist/theme/customizer-store.mjs +261 -0
- package/dist/theme/customizer.cjs +812 -0
- package/dist/theme/customizer.d.cts +13 -0
- package/dist/theme/customizer.d.ts +13 -0
- package/dist/theme/customizer.mjs +803 -0
- package/dist/theme/index.cjs +105 -0
- package/dist/theme/index.d.cts +13 -0
- package/dist/theme/index.d.ts +13 -0
- package/dist/theme/index.mjs +87 -0
- package/dist/theme/presets.cjs +1205 -0
- package/dist/theme/presets.d.cts +232 -0
- package/dist/theme/presets.d.ts +232 -0
- package/dist/theme/presets.mjs +1175 -0
- package/dist/theme/provider.cjs +122 -0
- package/dist/theme/provider.d.cts +57 -0
- package/dist/theme/provider.d.ts +57 -0
- package/dist/theme/provider.mjs +104 -0
- package/dist/{chunk-IVZAB7BV.mjs → tokens/colors.cjs} +212 -86
- package/dist/{z-index-Dd8IllRx.d.cts → tokens/colors.d.cts} +235 -72
- package/dist/{z-index-Dd8IllRx.d.ts → tokens/colors.d.ts} +235 -72
- package/dist/{chunk-ZBGR7MUW.cjs → tokens/colors.mjs} +165 -104
- package/dist/tokens/index.cjs +96 -0
- package/dist/tokens/index.d.cts +7 -0
- package/dist/tokens/index.d.ts +7 -0
- package/dist/tokens/index.mjs +71 -0
- package/dist/{chunk-XCKK6P46.cjs → tokens/motion.cjs} +46 -18
- package/dist/{motion-D9wQbcKL.d.cts → tokens/motion.d.cts} +1 -1
- package/dist/{motion-D9wQbcKL.d.ts → tokens/motion.d.ts} +1 -1
- package/dist/{chunk-EZ2L3XPS.mjs → tokens/motion.mjs} +16 -10
- package/dist/tokens/radius.cjs +41 -0
- package/dist/tokens/radius.d.cts +18 -0
- package/dist/tokens/radius.d.ts +18 -0
- package/dist/tokens/radius.mjs +17 -0
- package/dist/tokens/shadows.cjs +57 -0
- package/dist/tokens/shadows.d.cts +32 -0
- package/dist/tokens/shadows.d.ts +32 -0
- package/dist/tokens/shadows.mjs +32 -0
- package/dist/tokens/spacing.cjs +51 -0
- package/dist/tokens/spacing.d.cts +26 -0
- package/dist/tokens/spacing.d.ts +26 -0
- package/dist/{chunk-NMPHV6ZD.mjs → tokens/spacing.mjs} +4 -4
- package/dist/{chunk-ECIGDEAH.cjs → tokens/typography.cjs} +43 -16
- package/dist/{typography-DlvVjEdE.d.ts → tokens/typography.d.cts} +1 -1
- package/dist/{typography-DlvVjEdE.d.cts → tokens/typography.d.ts} +1 -1
- package/dist/{chunk-ITBG42M5.mjs → tokens/typography.mjs} +14 -9
- package/dist/tokens/z-index.cjs +47 -0
- package/dist/tokens/z-index.d.cts +24 -0
- package/dist/tokens/z-index.d.ts +24 -0
- package/dist/tokens/z-index.mjs +23 -0
- package/dist/utils/cn.cjs +102 -0
- package/dist/utils/cn.d.cts +84 -0
- package/dist/utils/cn.d.ts +84 -0
- package/dist/{chunk-ZT3PCXDF.mjs → utils/cn.mjs} +14 -7
- package/dist/{chunk-33QEKXRQ.cjs → utils/contrast.cjs} +68 -38
- package/dist/utils/contrast.d.cts +209 -0
- package/dist/utils/contrast.d.ts +209 -0
- package/dist/{chunk-5NZDQWRV.mjs → utils/contrast.mjs} +27 -18
- package/dist/utils/focus-ring.cjs +81 -0
- package/dist/utils/focus-ring.d.cts +80 -0
- package/dist/utils/focus-ring.d.ts +80 -0
- package/dist/utils/focus-ring.mjs +47 -0
- package/dist/utils/index.cjs +107 -0
- package/dist/utils/index.d.cts +6 -0
- package/dist/utils/index.d.ts +6 -0
- package/dist/utils/index.mjs +88 -0
- package/dist/utils/types.cjs +38 -0
- package/dist/utils/types.d.cts +187 -0
- package/dist/utils/types.d.ts +187 -0
- package/dist/utils/types.mjs +13 -0
- package/package.json +191 -191
- package/dist/chunk-2JFREULQ.cjs +0 -29
- package/dist/chunk-3EHT6IOA.cjs +0 -49
- package/dist/chunk-4ON3M3OM.cjs +0 -73
- package/dist/chunk-5TP7J7T4.cjs +0 -1766
- package/dist/chunk-A2DGHQL2.cjs +0 -21808
- package/dist/chunk-EQWESXRH.mjs +0 -1735
- package/dist/chunk-F4JJFWWU.cjs +0 -604
- package/dist/chunk-FUWXGHWQ.cjs +0 -468
- package/dist/chunk-MBYCK2JJ.mjs +0 -37
- package/dist/chunk-OHEH57BV.mjs +0 -455
- package/dist/chunk-XAIUX2YS.mjs +0 -21477
- package/dist/components.cjs +0 -1247
- package/dist/components.d.cts +0 -7881
- package/dist/components.d.ts +0 -7881
- package/dist/components.mjs +0 -6
- package/dist/motion.cjs +0 -264
- package/dist/motion.mjs +0 -3
- package/dist/primitives.cjs +0 -57
- package/dist/primitives.d.cts +0 -390
- package/dist/primitives.d.ts +0 -390
- package/dist/primitives.mjs +0 -4
- package/dist/theme.cjs +0 -131
- package/dist/theme.d.cts +0 -414
- package/dist/theme.d.ts +0 -414
- package/dist/theme.mjs +0 -6
- package/dist/tokens.cjs +0 -137
- package/dist/tokens.d.cts +0 -30
- package/dist/tokens.d.ts +0 -30
- package/dist/tokens.mjs +0 -4
- package/dist/utils.cjs +0 -164
- package/dist/utils.d.cts +0 -525
- package/dist/utils.d.ts +0 -525
- package/dist/utils.mjs +0 -3
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { cn } from "../utils/cn";
|
|
4
|
+
import { Menubar as MenubarPrimitive } from "radix-ui";
|
|
5
|
+
import {
|
|
6
|
+
forwardRef
|
|
7
|
+
} from "react";
|
|
8
|
+
function CheckIcon({ className }) {
|
|
9
|
+
return /* @__PURE__ */ jsx(
|
|
10
|
+
"svg",
|
|
11
|
+
{
|
|
12
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
13
|
+
width: "12",
|
|
14
|
+
height: "12",
|
|
15
|
+
viewBox: "0 0 24 24",
|
|
16
|
+
fill: "none",
|
|
17
|
+
stroke: "currentColor",
|
|
18
|
+
strokeWidth: "2.5",
|
|
19
|
+
strokeLinecap: "round",
|
|
20
|
+
strokeLinejoin: "round",
|
|
21
|
+
className,
|
|
22
|
+
"aria-hidden": "true",
|
|
23
|
+
children: /* @__PURE__ */ jsx("polyline", { points: "20 6 9 17 4 12" })
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
function DotIcon({ className }) {
|
|
28
|
+
return /* @__PURE__ */ jsx(
|
|
29
|
+
"svg",
|
|
30
|
+
{
|
|
31
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
32
|
+
width: "12",
|
|
33
|
+
height: "12",
|
|
34
|
+
viewBox: "0 0 24 24",
|
|
35
|
+
fill: "currentColor",
|
|
36
|
+
className,
|
|
37
|
+
"aria-hidden": "true",
|
|
38
|
+
children: /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "4" })
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
function ChevronRightIcon({ className }) {
|
|
43
|
+
return /* @__PURE__ */ jsx(
|
|
44
|
+
"svg",
|
|
45
|
+
{
|
|
46
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
47
|
+
width: "12",
|
|
48
|
+
height: "12",
|
|
49
|
+
viewBox: "0 0 24 24",
|
|
50
|
+
fill: "none",
|
|
51
|
+
stroke: "currentColor",
|
|
52
|
+
strokeWidth: "2",
|
|
53
|
+
strokeLinecap: "round",
|
|
54
|
+
strokeLinejoin: "round",
|
|
55
|
+
className,
|
|
56
|
+
"aria-hidden": "true",
|
|
57
|
+
children: /* @__PURE__ */ jsx("path", { d: "m9 18 6-6-6-6" })
|
|
58
|
+
}
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
const menuItemBase = [
|
|
62
|
+
"relative flex w-full cursor-pointer select-none items-center",
|
|
63
|
+
"rounded-sm py-1.5 px-2",
|
|
64
|
+
"text-sm leading-5 outline-none",
|
|
65
|
+
"transition-colors duration-fast ease-standard",
|
|
66
|
+
"focus:bg-muted",
|
|
67
|
+
"data-[disabled]:pointer-events-none data-[disabled]:opacity-50"
|
|
68
|
+
];
|
|
69
|
+
const menuContentBase = [
|
|
70
|
+
"z-[var(--z-dropdown)]",
|
|
71
|
+
"min-w-[10rem]",
|
|
72
|
+
"overflow-hidden",
|
|
73
|
+
"rounded-md",
|
|
74
|
+
"border border-border",
|
|
75
|
+
"bg-background",
|
|
76
|
+
"p-1",
|
|
77
|
+
"shadow-lg",
|
|
78
|
+
"text-foreground",
|
|
79
|
+
"data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
80
|
+
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
81
|
+
"data-[side=top]:slide-in-from-bottom-2",
|
|
82
|
+
"data-[side=bottom]:slide-in-from-top-2",
|
|
83
|
+
"data-[side=left]:slide-in-from-right-2",
|
|
84
|
+
"data-[side=right]:slide-in-from-left-2"
|
|
85
|
+
];
|
|
86
|
+
const Menubar = forwardRef(function Menubar2({ className, ...rest }, ref) {
|
|
87
|
+
return /* @__PURE__ */ jsx(
|
|
88
|
+
MenubarPrimitive.Root,
|
|
89
|
+
{
|
|
90
|
+
ref,
|
|
91
|
+
className: cn(
|
|
92
|
+
"flex h-9 items-center gap-1",
|
|
93
|
+
"rounded-md border border-border",
|
|
94
|
+
"bg-background px-1",
|
|
95
|
+
"shadow-sm",
|
|
96
|
+
className
|
|
97
|
+
),
|
|
98
|
+
"data-ds": "",
|
|
99
|
+
"data-ds-component": "menubar",
|
|
100
|
+
...rest
|
|
101
|
+
}
|
|
102
|
+
);
|
|
103
|
+
});
|
|
104
|
+
Menubar.displayName = "Menubar";
|
|
105
|
+
function MenubarMenu({ children, ...rest }) {
|
|
106
|
+
return /* @__PURE__ */ jsx(MenubarPrimitive.Menu, { ...rest, children });
|
|
107
|
+
}
|
|
108
|
+
MenubarMenu.displayName = "MenubarMenu";
|
|
109
|
+
const MenubarTrigger = forwardRef(function MenubarTrigger2({ className, ...rest }, ref) {
|
|
110
|
+
return /* @__PURE__ */ jsx(
|
|
111
|
+
MenubarPrimitive.Trigger,
|
|
112
|
+
{
|
|
113
|
+
ref,
|
|
114
|
+
className: cn(
|
|
115
|
+
"flex cursor-pointer select-none items-center rounded-sm",
|
|
116
|
+
"px-3 py-1 text-sm font-medium outline-none",
|
|
117
|
+
"transition-colors duration-fast ease-standard",
|
|
118
|
+
"hover:bg-muted hover:text-foreground",
|
|
119
|
+
"focus:bg-muted focus:text-foreground",
|
|
120
|
+
"data-[state=open]:bg-muted data-[state=open]:text-foreground",
|
|
121
|
+
className
|
|
122
|
+
),
|
|
123
|
+
"data-ds": "",
|
|
124
|
+
"data-ds-component": "menubar-trigger",
|
|
125
|
+
...rest
|
|
126
|
+
}
|
|
127
|
+
);
|
|
128
|
+
});
|
|
129
|
+
MenubarTrigger.displayName = "MenubarTrigger";
|
|
130
|
+
const MenubarContent = forwardRef(function MenubarContent2({
|
|
131
|
+
className,
|
|
132
|
+
align = "start",
|
|
133
|
+
alignOffset = -4,
|
|
134
|
+
sideOffset = 8,
|
|
135
|
+
children,
|
|
136
|
+
...rest
|
|
137
|
+
}, ref) {
|
|
138
|
+
return /* @__PURE__ */ jsx(MenubarPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
139
|
+
MenubarPrimitive.Content,
|
|
140
|
+
{
|
|
141
|
+
ref,
|
|
142
|
+
align,
|
|
143
|
+
alignOffset,
|
|
144
|
+
sideOffset,
|
|
145
|
+
className: cn(...menuContentBase, className),
|
|
146
|
+
"data-ds": "",
|
|
147
|
+
"data-ds-component": "menubar-content",
|
|
148
|
+
...rest,
|
|
149
|
+
children
|
|
150
|
+
}
|
|
151
|
+
) });
|
|
152
|
+
});
|
|
153
|
+
MenubarContent.displayName = "MenubarContent";
|
|
154
|
+
const MenubarItem = forwardRef(function MenubarItem2({ className, variant = "default", icon, inset, children, ...rest }, ref) {
|
|
155
|
+
return /* @__PURE__ */ jsxs(
|
|
156
|
+
MenubarPrimitive.Item,
|
|
157
|
+
{
|
|
158
|
+
ref,
|
|
159
|
+
className: cn(
|
|
160
|
+
...menuItemBase,
|
|
161
|
+
inset && "pl-8",
|
|
162
|
+
variant === "danger" && "text-destructive focus:bg-destructive/10 focus:text-destructive",
|
|
163
|
+
className
|
|
164
|
+
),
|
|
165
|
+
"data-ds": "",
|
|
166
|
+
"data-ds-component": "menubar-item",
|
|
167
|
+
"data-ds-variant": variant,
|
|
168
|
+
...rest,
|
|
169
|
+
children: [
|
|
170
|
+
icon && /* @__PURE__ */ jsx("span", { className: "mr-2 flex size-4 shrink-0 items-center justify-center", children: icon }),
|
|
171
|
+
children
|
|
172
|
+
]
|
|
173
|
+
}
|
|
174
|
+
);
|
|
175
|
+
});
|
|
176
|
+
MenubarItem.displayName = "MenubarItem";
|
|
177
|
+
const MenubarCheckboxItem = forwardRef(function MenubarCheckboxItem2({ className, children, checked, ...rest }, ref) {
|
|
178
|
+
return /* @__PURE__ */ jsxs(
|
|
179
|
+
MenubarPrimitive.CheckboxItem,
|
|
180
|
+
{
|
|
181
|
+
ref,
|
|
182
|
+
checked,
|
|
183
|
+
className: cn(...menuItemBase, "pl-8", className),
|
|
184
|
+
"data-ds": "",
|
|
185
|
+
"data-ds-component": "menubar-checkbox-item",
|
|
186
|
+
...rest,
|
|
187
|
+
children: [
|
|
188
|
+
/* @__PURE__ */ jsx("span", { className: "absolute left-2 flex size-4 items-center justify-center", children: /* @__PURE__ */ jsx(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, { className: "text-foreground" }) }) }),
|
|
189
|
+
children
|
|
190
|
+
]
|
|
191
|
+
}
|
|
192
|
+
);
|
|
193
|
+
});
|
|
194
|
+
MenubarCheckboxItem.displayName = "MenubarCheckboxItem";
|
|
195
|
+
const MenubarRadioGroup = forwardRef(function MenubarRadioGroup2({ className, ...rest }, ref) {
|
|
196
|
+
return /* @__PURE__ */ jsx(
|
|
197
|
+
MenubarPrimitive.RadioGroup,
|
|
198
|
+
{
|
|
199
|
+
ref,
|
|
200
|
+
className: cn(className),
|
|
201
|
+
...rest
|
|
202
|
+
}
|
|
203
|
+
);
|
|
204
|
+
});
|
|
205
|
+
MenubarRadioGroup.displayName = "MenubarRadioGroup";
|
|
206
|
+
const MenubarRadioItem = forwardRef(function MenubarRadioItem2({ className, children, ...rest }, ref) {
|
|
207
|
+
return /* @__PURE__ */ jsxs(
|
|
208
|
+
MenubarPrimitive.RadioItem,
|
|
209
|
+
{
|
|
210
|
+
ref,
|
|
211
|
+
className: cn(...menuItemBase, "pl-8", className),
|
|
212
|
+
"data-ds": "",
|
|
213
|
+
"data-ds-component": "menubar-radio-item",
|
|
214
|
+
...rest,
|
|
215
|
+
children: [
|
|
216
|
+
/* @__PURE__ */ jsx("span", { className: "absolute left-2 flex size-4 items-center justify-center", children: /* @__PURE__ */ jsx(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(DotIcon, { className: "text-foreground" }) }) }),
|
|
217
|
+
children
|
|
218
|
+
]
|
|
219
|
+
}
|
|
220
|
+
);
|
|
221
|
+
});
|
|
222
|
+
MenubarRadioItem.displayName = "MenubarRadioItem";
|
|
223
|
+
const MenubarLabel = forwardRef(function MenubarLabel2({ className, inset, ...rest }, ref) {
|
|
224
|
+
return /* @__PURE__ */ jsx(
|
|
225
|
+
MenubarPrimitive.Label,
|
|
226
|
+
{
|
|
227
|
+
ref,
|
|
228
|
+
className: cn(
|
|
229
|
+
"px-2 py-1.5 text-xs font-semibold text-muted-foreground uppercase tracking-wider",
|
|
230
|
+
inset && "pl-8",
|
|
231
|
+
className
|
|
232
|
+
),
|
|
233
|
+
"data-ds": "",
|
|
234
|
+
"data-ds-component": "menubar-label",
|
|
235
|
+
...rest
|
|
236
|
+
}
|
|
237
|
+
);
|
|
238
|
+
});
|
|
239
|
+
MenubarLabel.displayName = "MenubarLabel";
|
|
240
|
+
const MenubarSeparator = forwardRef(function MenubarSeparator2({ className, ...rest }, ref) {
|
|
241
|
+
return /* @__PURE__ */ jsx(
|
|
242
|
+
MenubarPrimitive.Separator,
|
|
243
|
+
{
|
|
244
|
+
ref,
|
|
245
|
+
className: cn("-mx-1 my-1 h-px bg-border", className),
|
|
246
|
+
"data-ds": "",
|
|
247
|
+
"data-ds-component": "menubar-separator",
|
|
248
|
+
...rest
|
|
249
|
+
}
|
|
250
|
+
);
|
|
251
|
+
});
|
|
252
|
+
MenubarSeparator.displayName = "MenubarSeparator";
|
|
253
|
+
const MenubarGroup = forwardRef(function MenubarGroup2({ className, ...rest }, ref) {
|
|
254
|
+
return /* @__PURE__ */ jsx(MenubarPrimitive.Group, { ref, className: cn(className), ...rest });
|
|
255
|
+
});
|
|
256
|
+
MenubarGroup.displayName = "MenubarGroup";
|
|
257
|
+
function MenubarSub({ children, ...rest }) {
|
|
258
|
+
return /* @__PURE__ */ jsx(MenubarPrimitive.Sub, { ...rest, children });
|
|
259
|
+
}
|
|
260
|
+
MenubarSub.displayName = "MenubarSub";
|
|
261
|
+
const MenubarSubTrigger = forwardRef(function MenubarSubTrigger2({ className, inset, icon, children, ...rest }, ref) {
|
|
262
|
+
return /* @__PURE__ */ jsxs(
|
|
263
|
+
MenubarPrimitive.SubTrigger,
|
|
264
|
+
{
|
|
265
|
+
ref,
|
|
266
|
+
className: cn(
|
|
267
|
+
...menuItemBase,
|
|
268
|
+
"data-[state=open]:bg-muted",
|
|
269
|
+
inset && "pl-8",
|
|
270
|
+
className
|
|
271
|
+
),
|
|
272
|
+
"data-ds": "",
|
|
273
|
+
"data-ds-component": "menubar-sub-trigger",
|
|
274
|
+
...rest,
|
|
275
|
+
children: [
|
|
276
|
+
icon && /* @__PURE__ */ jsx("span", { className: "mr-2 flex size-4 shrink-0 items-center justify-center", children: icon }),
|
|
277
|
+
children,
|
|
278
|
+
/* @__PURE__ */ jsx(ChevronRightIcon, { className: "ml-auto text-muted-foreground" })
|
|
279
|
+
]
|
|
280
|
+
}
|
|
281
|
+
);
|
|
282
|
+
});
|
|
283
|
+
MenubarSubTrigger.displayName = "MenubarSubTrigger";
|
|
284
|
+
const MenubarSubContent = forwardRef(function MenubarSubContent2({ className, children, ...rest }, ref) {
|
|
285
|
+
return /* @__PURE__ */ jsx(MenubarPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
286
|
+
MenubarPrimitive.SubContent,
|
|
287
|
+
{
|
|
288
|
+
ref,
|
|
289
|
+
className: cn(...menuContentBase, className),
|
|
290
|
+
"data-ds": "",
|
|
291
|
+
"data-ds-component": "menubar-sub-content",
|
|
292
|
+
...rest,
|
|
293
|
+
children
|
|
294
|
+
}
|
|
295
|
+
) });
|
|
296
|
+
});
|
|
297
|
+
MenubarSubContent.displayName = "MenubarSubContent";
|
|
298
|
+
function MenubarShortcut({ className, children }) {
|
|
299
|
+
return /* @__PURE__ */ jsx(
|
|
300
|
+
"span",
|
|
301
|
+
{
|
|
302
|
+
className: cn(
|
|
303
|
+
"ml-auto pl-4 text-xs tracking-widest text-muted-foreground",
|
|
304
|
+
className
|
|
305
|
+
),
|
|
306
|
+
"data-ds": "",
|
|
307
|
+
"data-ds-component": "menubar-shortcut",
|
|
308
|
+
children
|
|
309
|
+
}
|
|
310
|
+
);
|
|
311
|
+
}
|
|
312
|
+
MenubarShortcut.displayName = "MenubarShortcut";
|
|
313
|
+
export {
|
|
314
|
+
Menubar,
|
|
315
|
+
MenubarCheckboxItem,
|
|
316
|
+
MenubarContent,
|
|
317
|
+
MenubarGroup,
|
|
318
|
+
MenubarItem,
|
|
319
|
+
MenubarLabel,
|
|
320
|
+
MenubarMenu,
|
|
321
|
+
MenubarRadioGroup,
|
|
322
|
+
MenubarRadioItem,
|
|
323
|
+
MenubarSeparator,
|
|
324
|
+
MenubarShortcut,
|
|
325
|
+
MenubarSub,
|
|
326
|
+
MenubarSubContent,
|
|
327
|
+
MenubarSubTrigger,
|
|
328
|
+
MenubarTrigger
|
|
329
|
+
};
|
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
var navigation_menu_exports = {};
|
|
21
|
+
__export(navigation_menu_exports, {
|
|
22
|
+
NavigationMenu: () => NavigationMenu,
|
|
23
|
+
NavigationMenuCardLink: () => NavigationMenuCardLink,
|
|
24
|
+
NavigationMenuContent: () => NavigationMenuContent,
|
|
25
|
+
NavigationMenuIndicator: () => NavigationMenuIndicator,
|
|
26
|
+
NavigationMenuItem: () => NavigationMenuItem,
|
|
27
|
+
NavigationMenuLink: () => NavigationMenuLink,
|
|
28
|
+
NavigationMenuList: () => NavigationMenuList,
|
|
29
|
+
NavigationMenuTrigger: () => NavigationMenuTrigger,
|
|
30
|
+
NavigationMenuViewport: () => NavigationMenuViewport
|
|
31
|
+
});
|
|
32
|
+
module.exports = __toCommonJS(navigation_menu_exports);
|
|
33
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
34
|
+
var import_cn = require("../utils/cn");
|
|
35
|
+
var import_radix_ui = require("radix-ui");
|
|
36
|
+
var import_react = require("react");
|
|
37
|
+
function ChevronDownIcon({ className }) {
|
|
38
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
39
|
+
"svg",
|
|
40
|
+
{
|
|
41
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
42
|
+
width: "12",
|
|
43
|
+
height: "12",
|
|
44
|
+
viewBox: "0 0 24 24",
|
|
45
|
+
fill: "none",
|
|
46
|
+
stroke: "currentColor",
|
|
47
|
+
strokeWidth: "2",
|
|
48
|
+
strokeLinecap: "round",
|
|
49
|
+
strokeLinejoin: "round",
|
|
50
|
+
className,
|
|
51
|
+
"aria-hidden": "true",
|
|
52
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "m6 9 6 6 6-6" })
|
|
53
|
+
}
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
const NavigationMenu = (0, import_react.forwardRef)(function NavigationMenu2({ className, children, ...rest }, ref) {
|
|
57
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
58
|
+
import_radix_ui.NavigationMenu.Root,
|
|
59
|
+
{
|
|
60
|
+
ref,
|
|
61
|
+
className: (0, import_cn.cn)(
|
|
62
|
+
"relative z-10 flex max-w-max flex-1 items-center justify-center",
|
|
63
|
+
className
|
|
64
|
+
),
|
|
65
|
+
"data-ds": "",
|
|
66
|
+
"data-ds-component": "navigation-menu",
|
|
67
|
+
...rest,
|
|
68
|
+
children: [
|
|
69
|
+
children,
|
|
70
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(NavigationMenuViewport, {})
|
|
71
|
+
]
|
|
72
|
+
}
|
|
73
|
+
);
|
|
74
|
+
});
|
|
75
|
+
NavigationMenu.displayName = "NavigationMenu";
|
|
76
|
+
const NavigationMenuList = (0, import_react.forwardRef)(function NavigationMenuList2({ className, ...rest }, ref) {
|
|
77
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
78
|
+
import_radix_ui.NavigationMenu.List,
|
|
79
|
+
{
|
|
80
|
+
ref,
|
|
81
|
+
className: (0, import_cn.cn)(
|
|
82
|
+
"group flex flex-1 list-none items-center justify-center gap-1",
|
|
83
|
+
className
|
|
84
|
+
),
|
|
85
|
+
"data-ds": "",
|
|
86
|
+
"data-ds-component": "navigation-menu-list",
|
|
87
|
+
...rest
|
|
88
|
+
}
|
|
89
|
+
);
|
|
90
|
+
});
|
|
91
|
+
NavigationMenuList.displayName = "NavigationMenuList";
|
|
92
|
+
const NavigationMenuItem = (0, import_react.forwardRef)(function NavigationMenuItem2({ className, ...rest }, ref) {
|
|
93
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
94
|
+
import_radix_ui.NavigationMenu.Item,
|
|
95
|
+
{
|
|
96
|
+
ref,
|
|
97
|
+
className: (0, import_cn.cn)("relative", className),
|
|
98
|
+
"data-ds": "",
|
|
99
|
+
"data-ds-component": "navigation-menu-item",
|
|
100
|
+
...rest
|
|
101
|
+
}
|
|
102
|
+
);
|
|
103
|
+
});
|
|
104
|
+
NavigationMenuItem.displayName = "NavigationMenuItem";
|
|
105
|
+
const NavigationMenuTrigger = (0, import_react.forwardRef)(function NavigationMenuTrigger2({ className, children, ...rest }, ref) {
|
|
106
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
107
|
+
import_radix_ui.NavigationMenu.Trigger,
|
|
108
|
+
{
|
|
109
|
+
ref,
|
|
110
|
+
className: (0, import_cn.cn)(
|
|
111
|
+
"group inline-flex h-9 w-max items-center justify-center",
|
|
112
|
+
"rounded-md px-4 py-2",
|
|
113
|
+
"bg-background",
|
|
114
|
+
"text-sm font-medium",
|
|
115
|
+
"transition-colors duration-fast ease-standard",
|
|
116
|
+
"hover:bg-muted hover:text-foreground",
|
|
117
|
+
"focus:bg-muted focus:text-foreground focus:outline-none",
|
|
118
|
+
"disabled:pointer-events-none disabled:opacity-50",
|
|
119
|
+
"data-[active]:bg-muted/50",
|
|
120
|
+
"data-[state=open]:bg-muted/50",
|
|
121
|
+
className
|
|
122
|
+
),
|
|
123
|
+
"data-ds": "",
|
|
124
|
+
"data-ds-component": "navigation-menu-trigger",
|
|
125
|
+
...rest,
|
|
126
|
+
children: [
|
|
127
|
+
children,
|
|
128
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
129
|
+
ChevronDownIcon,
|
|
130
|
+
{
|
|
131
|
+
className: (0, import_cn.cn)(
|
|
132
|
+
"relative top-px ml-1 shrink-0 text-muted-foreground",
|
|
133
|
+
"transition-transform duration-200 ease-standard",
|
|
134
|
+
"group-data-[state=open]:rotate-180"
|
|
135
|
+
),
|
|
136
|
+
"aria-hidden": "true"
|
|
137
|
+
}
|
|
138
|
+
)
|
|
139
|
+
]
|
|
140
|
+
}
|
|
141
|
+
);
|
|
142
|
+
});
|
|
143
|
+
NavigationMenuTrigger.displayName = "NavigationMenuTrigger";
|
|
144
|
+
const NavigationMenuContent = (0, import_react.forwardRef)(function NavigationMenuContent2({ className, ...rest }, ref) {
|
|
145
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
146
|
+
import_radix_ui.NavigationMenu.Content,
|
|
147
|
+
{
|
|
148
|
+
ref,
|
|
149
|
+
className: (0, import_cn.cn)(
|
|
150
|
+
"left-0 top-0 w-full",
|
|
151
|
+
"md:absolute md:w-auto",
|
|
152
|
+
// Animations
|
|
153
|
+
"data-[motion^=from-]:animate-in data-[motion^=from-]:fade-in",
|
|
154
|
+
"data-[motion^=to-]:animate-out data-[motion^=to-]:fade-out",
|
|
155
|
+
"data-[motion=from-end]:slide-in-from-right-52",
|
|
156
|
+
"data-[motion=from-start]:slide-in-from-left-52",
|
|
157
|
+
"data-[motion=to-end]:slide-out-to-right-52",
|
|
158
|
+
"data-[motion=to-start]:slide-out-to-left-52",
|
|
159
|
+
className
|
|
160
|
+
),
|
|
161
|
+
"data-ds": "",
|
|
162
|
+
"data-ds-component": "navigation-menu-content",
|
|
163
|
+
...rest
|
|
164
|
+
}
|
|
165
|
+
);
|
|
166
|
+
});
|
|
167
|
+
NavigationMenuContent.displayName = "NavigationMenuContent";
|
|
168
|
+
const NavigationMenuLink = (0, import_react.forwardRef)(function NavigationMenuLink2({ className, active, ...rest }, ref) {
|
|
169
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
170
|
+
import_radix_ui.NavigationMenu.Link,
|
|
171
|
+
{
|
|
172
|
+
ref,
|
|
173
|
+
active,
|
|
174
|
+
className: (0, import_cn.cn)(
|
|
175
|
+
"inline-flex h-9 w-max items-center justify-center",
|
|
176
|
+
"rounded-md px-4 py-2",
|
|
177
|
+
"bg-background",
|
|
178
|
+
"text-sm font-medium",
|
|
179
|
+
"transition-colors duration-fast ease-standard",
|
|
180
|
+
"hover:bg-muted hover:text-foreground",
|
|
181
|
+
"focus:bg-muted focus:text-foreground focus:outline-none",
|
|
182
|
+
"disabled:pointer-events-none disabled:opacity-50",
|
|
183
|
+
"data-[active]:bg-muted/50",
|
|
184
|
+
className
|
|
185
|
+
),
|
|
186
|
+
"data-ds": "",
|
|
187
|
+
"data-ds-component": "navigation-menu-link",
|
|
188
|
+
...rest
|
|
189
|
+
}
|
|
190
|
+
);
|
|
191
|
+
});
|
|
192
|
+
NavigationMenuLink.displayName = "NavigationMenuLink";
|
|
193
|
+
const NavigationMenuViewport = (0, import_react.forwardRef)(function NavigationMenuViewport2({ className, ...rest }, ref) {
|
|
194
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: (0, import_cn.cn)("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
195
|
+
import_radix_ui.NavigationMenu.Viewport,
|
|
196
|
+
{
|
|
197
|
+
ref,
|
|
198
|
+
className: (0, import_cn.cn)(
|
|
199
|
+
"origin-top-center",
|
|
200
|
+
"relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)]",
|
|
201
|
+
"w-full overflow-hidden rounded-md border border-border",
|
|
202
|
+
"bg-background shadow-lg",
|
|
203
|
+
"md:w-[var(--radix-navigation-menu-viewport-width)]",
|
|
204
|
+
// Animations
|
|
205
|
+
"data-[state=open]:animate-in data-[state=open]:zoom-in-90",
|
|
206
|
+
"data-[state=closed]:animate-out data-[state=closed]:zoom-out-95",
|
|
207
|
+
className
|
|
208
|
+
),
|
|
209
|
+
"data-ds": "",
|
|
210
|
+
"data-ds-component": "navigation-menu-viewport",
|
|
211
|
+
...rest
|
|
212
|
+
}
|
|
213
|
+
) });
|
|
214
|
+
});
|
|
215
|
+
NavigationMenuViewport.displayName = "NavigationMenuViewport";
|
|
216
|
+
const NavigationMenuIndicator = (0, import_react.forwardRef)(function NavigationMenuIndicator2({ className, ...rest }, ref) {
|
|
217
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
218
|
+
import_radix_ui.NavigationMenu.Indicator,
|
|
219
|
+
{
|
|
220
|
+
ref,
|
|
221
|
+
className: (0, import_cn.cn)(
|
|
222
|
+
"top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden",
|
|
223
|
+
"data-[state=visible]:animate-in data-[state=visible]:fade-in",
|
|
224
|
+
"data-[state=hidden]:animate-out data-[state=hidden]:fade-out",
|
|
225
|
+
className
|
|
226
|
+
),
|
|
227
|
+
"data-ds": "",
|
|
228
|
+
"data-ds-component": "navigation-menu-indicator",
|
|
229
|
+
...rest,
|
|
230
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
|
|
231
|
+
}
|
|
232
|
+
);
|
|
233
|
+
});
|
|
234
|
+
NavigationMenuIndicator.displayName = "NavigationMenuIndicator";
|
|
235
|
+
function NavigationMenuCardLink({
|
|
236
|
+
icon,
|
|
237
|
+
title,
|
|
238
|
+
description,
|
|
239
|
+
href,
|
|
240
|
+
active,
|
|
241
|
+
className
|
|
242
|
+
}) {
|
|
243
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
244
|
+
import_radix_ui.NavigationMenu.Link,
|
|
245
|
+
{
|
|
246
|
+
href,
|
|
247
|
+
active,
|
|
248
|
+
className: (0, import_cn.cn)(
|
|
249
|
+
"group block select-none space-y-1 rounded-md p-3",
|
|
250
|
+
"leading-none no-underline outline-none",
|
|
251
|
+
"transition-colors duration-fast ease-standard",
|
|
252
|
+
"hover:bg-muted focus:bg-muted",
|
|
253
|
+
"data-[active]:bg-muted/50",
|
|
254
|
+
className
|
|
255
|
+
),
|
|
256
|
+
"data-ds": "",
|
|
257
|
+
"data-ds-component": "navigation-menu-card-link",
|
|
258
|
+
children: [
|
|
259
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
260
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "flex size-5 shrink-0 items-center justify-center text-foreground", children: icon }),
|
|
261
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "text-sm font-medium leading-none text-foreground", children: title })
|
|
262
|
+
] }),
|
|
263
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "line-clamp-2 text-xs leading-snug text-muted-foreground", children: description })
|
|
264
|
+
]
|
|
265
|
+
}
|
|
266
|
+
);
|
|
267
|
+
}
|
|
268
|
+
NavigationMenuCardLink.displayName = "NavigationMenuCardLink";
|
|
269
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
270
|
+
0 && (module.exports = {
|
|
271
|
+
NavigationMenu,
|
|
272
|
+
NavigationMenuCardLink,
|
|
273
|
+
NavigationMenuContent,
|
|
274
|
+
NavigationMenuIndicator,
|
|
275
|
+
NavigationMenuItem,
|
|
276
|
+
NavigationMenuLink,
|
|
277
|
+
NavigationMenuList,
|
|
278
|
+
NavigationMenuTrigger,
|
|
279
|
+
NavigationMenuViewport
|
|
280
|
+
});
|