@jarrodmedrano/ui 0.1.0
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 +108 -0
- package/dist/components/auth/providers.cjs +83 -0
- package/dist/components/auth/providers.cjs.map +1 -0
- package/dist/components/auth/providers.d.ts +19 -0
- package/dist/components/auth/providers.d.ts.map +1 -0
- package/dist/components/auth/providers.js +59 -0
- package/dist/components/auth/providers.js.map +1 -0
- package/dist/components/card/back-button.cjs +45 -0
- package/dist/components/card/back-button.cjs.map +1 -0
- package/dist/components/card/back-button.d.ts +7 -0
- package/dist/components/card/back-button.d.ts.map +1 -0
- package/dist/components/card/back-button.js +11 -0
- package/dist/components/card/back-button.js.map +1 -0
- package/dist/components/card/card-wrapper.cjs +56 -0
- package/dist/components/card/card-wrapper.cjs.map +1 -0
- package/dist/components/card/card-wrapper.d.ts +11 -0
- package/dist/components/card/card-wrapper.d.ts.map +1 -0
- package/dist/components/card/card-wrapper.js +36 -0
- package/dist/components/card/card-wrapper.js.map +1 -0
- package/dist/components/card/header.cjs +52 -0
- package/dist/components/card/header.cjs.map +1 -0
- package/dist/components/card/header.d.ts +8 -0
- package/dist/components/card/header.d.ts.map +1 -0
- package/dist/components/card/header.js +18 -0
- package/dist/components/card/header.js.map +1 -0
- package/dist/components/combobox/ComboList.cjs +78 -0
- package/dist/components/combobox/ComboList.cjs.map +1 -0
- package/dist/components/combobox/ComboList.d.ts +14 -0
- package/dist/components/combobox/ComboList.d.ts.map +1 -0
- package/dist/components/combobox/ComboList.js +61 -0
- package/dist/components/combobox/ComboList.js.map +1 -0
- package/dist/components/combobox/index.cjs +119 -0
- package/dist/components/combobox/index.cjs.map +1 -0
- package/dist/components/combobox/index.d.ts +6 -0
- package/dist/components/combobox/index.d.ts.map +1 -0
- package/dist/components/combobox/index.js +101 -0
- package/dist/components/combobox/index.js.map +1 -0
- package/dist/components/dashboard/account-select.cjs +69 -0
- package/dist/components/dashboard/account-select.cjs.map +1 -0
- package/dist/components/dashboard/account-select.d.ts +12 -0
- package/dist/components/dashboard/account-select.d.ts.map +1 -0
- package/dist/components/dashboard/account-select.js +41 -0
- package/dist/components/dashboard/account-select.js.map +1 -0
- package/dist/components/dashboard/account-switcher.cjs +72 -0
- package/dist/components/dashboard/account-switcher.cjs.map +1 -0
- package/dist/components/dashboard/account-switcher.d.ts +12 -0
- package/dist/components/dashboard/account-switcher.d.ts.map +1 -0
- package/dist/components/dashboard/account-switcher.js +44 -0
- package/dist/components/dashboard/account-switcher.js.map +1 -0
- package/dist/components/dashboard/sidebar/CollapsibleSection.cjs +100 -0
- package/dist/components/dashboard/sidebar/CollapsibleSection.cjs.map +1 -0
- package/dist/components/dashboard/sidebar/CollapsibleSection.d.ts +3 -0
- package/dist/components/dashboard/sidebar/CollapsibleSection.d.ts.map +1 -0
- package/dist/components/dashboard/sidebar/CollapsibleSection.js +81 -0
- package/dist/components/dashboard/sidebar/CollapsibleSection.js.map +1 -0
- package/dist/components/dashboard/sidebar/CollapsibleSection.styles.cjs +77 -0
- package/dist/components/dashboard/sidebar/CollapsibleSection.styles.cjs.map +1 -0
- package/dist/components/dashboard/sidebar/CollapsibleSection.styles.d.ts +9 -0
- package/dist/components/dashboard/sidebar/CollapsibleSection.styles.d.ts.map +1 -0
- package/dist/components/dashboard/sidebar/CollapsibleSection.styles.js +40 -0
- package/dist/components/dashboard/sidebar/CollapsibleSection.styles.js.map +1 -0
- package/dist/components/dashboard/sidebar/EntityList.cjs +121 -0
- package/dist/components/dashboard/sidebar/EntityList.cjs.map +1 -0
- package/dist/components/dashboard/sidebar/EntityList.d.ts +3 -0
- package/dist/components/dashboard/sidebar/EntityList.d.ts.map +1 -0
- package/dist/components/dashboard/sidebar/EntityList.js +87 -0
- package/dist/components/dashboard/sidebar/EntityList.js.map +1 -0
- package/dist/components/dashboard/sidebar/EntityList.styles.cjs +95 -0
- package/dist/components/dashboard/sidebar/EntityList.styles.cjs.map +1 -0
- package/dist/components/dashboard/sidebar/EntityList.styles.d.ts +14 -0
- package/dist/components/dashboard/sidebar/EntityList.styles.d.ts.map +1 -0
- package/dist/components/dashboard/sidebar/EntityList.styles.js +57 -0
- package/dist/components/dashboard/sidebar/EntityList.styles.js.map +1 -0
- package/dist/components/dashboard/sidebar/SectionHeader.cjs +99 -0
- package/dist/components/dashboard/sidebar/SectionHeader.cjs.map +1 -0
- package/dist/components/dashboard/sidebar/SectionHeader.d.ts +3 -0
- package/dist/components/dashboard/sidebar/SectionHeader.d.ts.map +1 -0
- package/dist/components/dashboard/sidebar/SectionHeader.js +81 -0
- package/dist/components/dashboard/sidebar/SectionHeader.js.map +1 -0
- package/dist/components/dashboard/sidebar/SectionHeader.styles.cjs +116 -0
- package/dist/components/dashboard/sidebar/SectionHeader.styles.cjs.map +1 -0
- package/dist/components/dashboard/sidebar/SectionHeader.styles.d.ts +18 -0
- package/dist/components/dashboard/sidebar/SectionHeader.styles.d.ts.map +1 -0
- package/dist/components/dashboard/sidebar/SectionHeader.styles.js +77 -0
- package/dist/components/dashboard/sidebar/SectionHeader.styles.js.map +1 -0
- package/dist/components/dashboard/sidebar/index.cjs +41 -0
- package/dist/components/dashboard/sidebar/index.cjs.map +1 -0
- package/dist/components/dashboard/sidebar/index.d.ts +6 -0
- package/dist/components/dashboard/sidebar/index.d.ts.map +1 -0
- package/dist/components/dashboard/sidebar/index.js +12 -0
- package/dist/components/dashboard/sidebar/index.js.map +1 -0
- package/dist/components/dashboard/sidebar/sidebar.cjs +50 -0
- package/dist/components/dashboard/sidebar/sidebar.cjs.map +1 -0
- package/dist/components/dashboard/sidebar/sidebar.d.ts +15 -0
- package/dist/components/dashboard/sidebar/sidebar.d.ts.map +1 -0
- package/dist/components/dashboard/sidebar/sidebar.js +26 -0
- package/dist/components/dashboard/sidebar/sidebar.js.map +1 -0
- package/dist/components/dashboard/sidebar/tabs.cjs +52 -0
- package/dist/components/dashboard/sidebar/tabs.cjs.map +1 -0
- package/dist/components/dashboard/sidebar/tabs.d.ts +3 -0
- package/dist/components/dashboard/sidebar/tabs.d.ts.map +1 -0
- package/dist/components/dashboard/sidebar/tabs.js +37 -0
- package/dist/components/dashboard/sidebar/tabs.js.map +1 -0
- package/dist/components/dashboard/sidebar/types.cjs +17 -0
- package/dist/components/dashboard/sidebar/types.cjs.map +1 -0
- package/dist/components/dashboard/sidebar/types.d.ts +36 -0
- package/dist/components/dashboard/sidebar/types.d.ts.map +1 -0
- package/dist/components/dashboard/sidebar/types.js +1 -0
- package/dist/components/dashboard/sidebar/types.js.map +1 -0
- package/dist/components/dashboard/sidebar-nav.cjs +99 -0
- package/dist/components/dashboard/sidebar-nav.cjs.map +1 -0
- package/dist/components/dashboard/sidebar-nav.d.ts +24 -0
- package/dist/components/dashboard/sidebar-nav.d.ts.map +1 -0
- package/dist/components/dashboard/sidebar-nav.js +75 -0
- package/dist/components/dashboard/sidebar-nav.js.map +1 -0
- package/dist/components/dashboard/utils/build-nav.cjs +103 -0
- package/dist/components/dashboard/utils/build-nav.cjs.map +1 -0
- package/dist/components/dashboard/utils/build-nav.d.ts +7 -0
- package/dist/components/dashboard/utils/build-nav.d.ts.map +1 -0
- package/dist/components/dashboard/utils/build-nav.js +78 -0
- package/dist/components/dashboard/utils/build-nav.js.map +1 -0
- package/dist/components/dashboard/utils.cjs +2 -0
- package/dist/components/dashboard/utils.cjs.map +1 -0
- package/dist/components/dashboard/utils.d.ts +1 -0
- package/dist/components/dashboard/utils.d.ts.map +1 -0
- package/dist/components/dashboard/utils.js +1 -0
- package/dist/components/dashboard/utils.js.map +1 -0
- package/dist/components/dashboard/with-dashboard.cjs +189 -0
- package/dist/components/dashboard/with-dashboard.cjs.map +1 -0
- package/dist/components/dashboard/with-dashboard.d.ts +6 -0
- package/dist/components/dashboard/with-dashboard.d.ts.map +1 -0
- package/dist/components/dashboard/with-dashboard.js +175 -0
- package/dist/components/dashboard/with-dashboard.js.map +1 -0
- package/dist/components/detail/DetailLayout.styles.cjs +116 -0
- package/dist/components/detail/DetailLayout.styles.cjs.map +1 -0
- package/dist/components/detail/DetailLayout.styles.d.ts +18 -0
- package/dist/components/detail/DetailLayout.styles.d.ts.map +1 -0
- package/dist/components/detail/DetailLayout.styles.js +74 -0
- package/dist/components/detail/DetailLayout.styles.js.map +1 -0
- package/dist/components/detail/index.cjs +45 -0
- package/dist/components/detail/index.cjs.map +1 -0
- package/dist/components/detail/index.d.ts +2 -0
- package/dist/components/detail/index.d.ts.map +1 -0
- package/dist/components/detail/index.js +23 -0
- package/dist/components/detail/index.js.map +1 -0
- package/dist/components/flowbite/card-images.cjs +104 -0
- package/dist/components/flowbite/card-images.cjs.map +1 -0
- package/dist/components/flowbite/card-images.d.ts +3 -0
- package/dist/components/flowbite/card-images.d.ts.map +1 -0
- package/dist/components/flowbite/card-images.js +84 -0
- package/dist/components/flowbite/card-images.js.map +1 -0
- package/dist/components/flowbite/gallery.cjs +53 -0
- package/dist/components/flowbite/gallery.cjs.map +1 -0
- package/dist/components/flowbite/gallery.d.ts +3 -0
- package/dist/components/flowbite/gallery.d.ts.map +1 -0
- package/dist/components/flowbite/gallery.js +23 -0
- package/dist/components/flowbite/gallery.js.map +1 -0
- package/dist/components/flowbite/masonry.cjs +73 -0
- package/dist/components/flowbite/masonry.cjs.map +1 -0
- package/dist/components/flowbite/masonry.d.ts +13 -0
- package/dist/components/flowbite/masonry.d.ts.map +1 -0
- package/dist/components/flowbite/masonry.js +43 -0
- package/dist/components/flowbite/masonry.js.map +1 -0
- package/dist/components/flowbite/search-hero.cjs +109 -0
- package/dist/components/flowbite/search-hero.cjs.map +1 -0
- package/dist/components/flowbite/search-hero.d.ts +6 -0
- package/dist/components/flowbite/search-hero.d.ts.map +1 -0
- package/dist/components/flowbite/search-hero.js +89 -0
- package/dist/components/flowbite/search-hero.js.map +1 -0
- package/dist/components/generic/copyright.cjs +32 -0
- package/dist/components/generic/copyright.cjs.map +1 -0
- package/dist/components/generic/copyright.d.ts +4 -0
- package/dist/components/generic/copyright.d.ts.map +1 -0
- package/dist/components/generic/copyright.js +8 -0
- package/dist/components/generic/copyright.js.map +1 -0
- package/dist/components/generic/icons.cjs +186 -0
- package/dist/components/generic/icons.cjs.map +1 -0
- package/dist/components/generic/icons.d.ts +19 -0
- package/dist/components/generic/icons.d.ts.map +1 -0
- package/dist/components/generic/icons.js +164 -0
- package/dist/components/generic/icons.js.map +1 -0
- package/dist/components/header/header.cjs +130 -0
- package/dist/components/header/header.cjs.map +1 -0
- package/dist/components/header/header.d.ts +14 -0
- package/dist/components/header/header.d.ts.map +1 -0
- package/dist/components/header/header.js +106 -0
- package/dist/components/header/header.js.map +1 -0
- package/dist/components/header/internal/main-nav.cjs +65 -0
- package/dist/components/header/internal/main-nav.cjs.map +1 -0
- package/dist/components/header/internal/main-nav.d.ts +4 -0
- package/dist/components/header/internal/main-nav.d.ts.map +1 -0
- package/dist/components/header/internal/main-nav.js +31 -0
- package/dist/components/header/internal/main-nav.js.map +1 -0
- package/dist/components/header/internal/mobile-nav.cjs +209 -0
- package/dist/components/header/internal/mobile-nav.cjs.map +1 -0
- package/dist/components/header/internal/mobile-nav.d.ts +2 -0
- package/dist/components/header/internal/mobile-nav.d.ts.map +1 -0
- package/dist/components/header/internal/mobile-nav.js +177 -0
- package/dist/components/header/internal/mobile-nav.js.map +1 -0
- package/dist/components/header/internal/mode-toggle.cjs +73 -0
- package/dist/components/header/internal/mode-toggle.cjs.map +1 -0
- package/dist/components/header/internal/mode-toggle.d.ts +8 -0
- package/dist/components/header/internal/mode-toggle.d.ts.map +1 -0
- package/dist/components/header/internal/mode-toggle.js +54 -0
- package/dist/components/header/internal/mode-toggle.js.map +1 -0
- package/dist/components/header/internal/site-header.cjs +62 -0
- package/dist/components/header/internal/site-header.cjs.map +1 -0
- package/dist/components/header/internal/site-header.d.ts +15 -0
- package/dist/components/header/internal/site-header.d.ts.map +1 -0
- package/dist/components/header/internal/site-header.js +38 -0
- package/dist/components/header/internal/site-header.js.map +1 -0
- package/dist/components/header/langbutton/langbutton.cjs +54 -0
- package/dist/components/header/langbutton/langbutton.cjs.map +1 -0
- package/dist/components/header/langbutton/langbutton.d.ts +4 -0
- package/dist/components/header/langbutton/langbutton.d.ts.map +1 -0
- package/dist/components/header/langbutton/langbutton.js +35 -0
- package/dist/components/header/langbutton/langbutton.js.map +1 -0
- package/dist/components/header/userbutton/user-dropdown.cjs +72 -0
- package/dist/components/header/userbutton/user-dropdown.cjs.map +1 -0
- package/dist/components/header/userbutton/user-dropdown.d.ts +10 -0
- package/dist/components/header/userbutton/user-dropdown.d.ts.map +1 -0
- package/dist/components/header/userbutton/user-dropdown.js +64 -0
- package/dist/components/header/userbutton/user-dropdown.js.map +1 -0
- package/dist/components/header/userbutton/userbutton.cjs +50 -0
- package/dist/components/header/userbutton/userbutton.cjs.map +1 -0
- package/dist/components/header/userbutton/userbutton.d.ts +10 -0
- package/dist/components/header/userbutton/userbutton.d.ts.map +1 -0
- package/dist/components/header/userbutton/userbutton.js +16 -0
- package/dist/components/header/userbutton/userbutton.js.map +1 -0
- package/dist/components/hooks/use-page-nav.cjs +89 -0
- package/dist/components/hooks/use-page-nav.cjs.map +1 -0
- package/dist/components/hooks/use-page-nav.d.ts +5 -0
- package/dist/components/hooks/use-page-nav.d.ts.map +1 -0
- package/dist/components/hooks/use-page-nav.js +61 -0
- package/dist/components/hooks/use-page-nav.js.map +1 -0
- package/dist/components/hooks/use-user-entities.cjs +30 -0
- package/dist/components/hooks/use-user-entities.cjs.map +1 -0
- package/dist/components/hooks/use-user-entities.d.ts +2 -0
- package/dist/components/hooks/use-user-entities.d.ts.map +1 -0
- package/dist/components/hooks/use-user-entities.js +6 -0
- package/dist/components/hooks/use-user-entities.js.map +1 -0
- package/dist/components/icons/apple.cjs +47 -0
- package/dist/components/icons/apple.cjs.map +1 -0
- package/dist/components/icons/apple.d.ts +2 -0
- package/dist/components/icons/apple.d.ts.map +1 -0
- package/dist/components/icons/apple.js +23 -0
- package/dist/components/icons/apple.js.map +1 -0
- package/dist/components/icons/facebook.cjs +49 -0
- package/dist/components/icons/facebook.cjs.map +1 -0
- package/dist/components/icons/facebook.d.ts +2 -0
- package/dist/components/icons/facebook.d.ts.map +1 -0
- package/dist/components/icons/facebook.js +25 -0
- package/dist/components/icons/facebook.js.map +1 -0
- package/dist/components/icons/github.cjs +49 -0
- package/dist/components/icons/github.cjs.map +1 -0
- package/dist/components/icons/github.d.ts +2 -0
- package/dist/components/icons/github.d.ts.map +1 -0
- package/dist/components/icons/github.js +25 -0
- package/dist/components/icons/github.js.map +1 -0
- package/dist/components/icons/google.cjs +49 -0
- package/dist/components/icons/google.cjs.map +1 -0
- package/dist/components/icons/google.d.ts +2 -0
- package/dist/components/icons/google.d.ts.map +1 -0
- package/dist/components/icons/google.js +25 -0
- package/dist/components/icons/google.js.map +1 -0
- package/dist/components/icons/logo.cjs +49 -0
- package/dist/components/icons/logo.cjs.map +1 -0
- package/dist/components/icons/logo.d.ts +4 -0
- package/dist/components/icons/logo.d.ts.map +1 -0
- package/dist/components/icons/logo.js +25 -0
- package/dist/components/icons/logo.js.map +1 -0
- package/dist/components/lightbox/GallerySection.cjs +53 -0
- package/dist/components/lightbox/GallerySection.cjs.map +1 -0
- package/dist/components/lightbox/GallerySection.d.ts +12 -0
- package/dist/components/lightbox/GallerySection.d.ts.map +1 -0
- package/dist/components/lightbox/GallerySection.js +29 -0
- package/dist/components/lightbox/GallerySection.js.map +1 -0
- package/dist/components/lightbox/ImageLightbox.cjs +244 -0
- package/dist/components/lightbox/ImageLightbox.cjs.map +1 -0
- package/dist/components/lightbox/ImageLightbox.d.ts +3 -0
- package/dist/components/lightbox/ImageLightbox.d.ts.map +1 -0
- package/dist/components/lightbox/ImageLightbox.js +220 -0
- package/dist/components/lightbox/ImageLightbox.js.map +1 -0
- package/dist/components/lightbox/ImageLightbox.types.cjs +17 -0
- package/dist/components/lightbox/ImageLightbox.types.cjs.map +1 -0
- package/dist/components/lightbox/ImageLightbox.types.d.ts +28 -0
- package/dist/components/lightbox/ImageLightbox.types.d.ts.map +1 -0
- package/dist/components/lightbox/ImageLightbox.types.js +1 -0
- package/dist/components/lightbox/ImageLightbox.types.js.map +1 -0
- package/dist/components/lightbox/index.cjs +38 -0
- package/dist/components/lightbox/index.cjs.map +1 -0
- package/dist/components/lightbox/index.d.ts +8 -0
- package/dist/components/lightbox/index.d.ts.map +1 -0
- package/dist/components/lightbox/index.js +11 -0
- package/dist/components/lightbox/index.js.map +1 -0
- package/dist/components/lightbox/useEntityLightbox.cjs +57 -0
- package/dist/components/lightbox/useEntityLightbox.cjs.map +1 -0
- package/dist/components/lightbox/useEntityLightbox.d.ts +25 -0
- package/dist/components/lightbox/useEntityLightbox.d.ts.map +1 -0
- package/dist/components/lightbox/useEntityLightbox.js +33 -0
- package/dist/components/lightbox/useEntityLightbox.js.map +1 -0
- package/dist/components/lightbox/useLightbox.cjs +59 -0
- package/dist/components/lightbox/useLightbox.cjs.map +1 -0
- package/dist/components/lightbox/useLightbox.d.ts +9 -0
- package/dist/components/lightbox/useLightbox.d.ts.map +1 -0
- package/dist/components/lightbox/useLightbox.js +35 -0
- package/dist/components/lightbox/useLightbox.js.map +1 -0
- package/dist/components/search/search.cjs +71 -0
- package/dist/components/search/search.cjs.map +1 -0
- package/dist/components/search/search.d.ts +2 -0
- package/dist/components/search/search.d.ts.map +1 -0
- package/dist/components/search/search.js +63 -0
- package/dist/components/search/search.js.map +1 -0
- package/dist/components/tailwind/contact.cjs +380 -0
- package/dist/components/tailwind/contact.cjs.map +1 -0
- package/dist/components/tailwind/contact.d.ts +2 -0
- package/dist/components/tailwind/contact.d.ts.map +1 -0
- package/dist/components/tailwind/contact.js +356 -0
- package/dist/components/tailwind/contact.js.map +1 -0
- package/dist/components/tailwind/content-page.cjs +58 -0
- package/dist/components/tailwind/content-page.cjs.map +1 -0
- package/dist/components/tailwind/content-page.d.ts +18 -0
- package/dist/components/tailwind/content-page.d.ts.map +1 -0
- package/dist/components/tailwind/content-page.js +32 -0
- package/dist/components/tailwind/content-page.js.map +1 -0
- package/dist/components/tailwind/feature.cjs +95 -0
- package/dist/components/tailwind/feature.cjs.map +1 -0
- package/dist/components/tailwind/feature.d.ts +2 -0
- package/dist/components/tailwind/feature.d.ts.map +1 -0
- package/dist/components/tailwind/feature.js +75 -0
- package/dist/components/tailwind/feature.js.map +1 -0
- package/dist/components/tailwind/featurelist.cjs +99 -0
- package/dist/components/tailwind/featurelist.cjs.map +1 -0
- package/dist/components/tailwind/featurelist.d.ts +2 -0
- package/dist/components/tailwind/featurelist.d.ts.map +1 -0
- package/dist/components/tailwind/featurelist.js +65 -0
- package/dist/components/tailwind/featurelist.js.map +1 -0
- package/dist/components/tailwind/footer.cjs +104 -0
- package/dist/components/tailwind/footer.cjs.map +1 -0
- package/dist/components/tailwind/footer.d.ts +2 -0
- package/dist/components/tailwind/footer.d.ts.map +1 -0
- package/dist/components/tailwind/footer.js +80 -0
- package/dist/components/tailwind/footer.js.map +1 -0
- package/dist/components/tailwind/hero.cjs +130 -0
- package/dist/components/tailwind/hero.cjs.map +1 -0
- package/dist/components/tailwind/hero.d.ts +22 -0
- package/dist/components/tailwind/hero.d.ts.map +1 -0
- package/dist/components/tailwind/hero.js +106 -0
- package/dist/components/tailwind/hero.js.map +1 -0
- package/dist/components/tailwind/pricing.cjs +214 -0
- package/dist/components/tailwind/pricing.cjs.map +1 -0
- package/dist/components/tailwind/pricing.d.ts +6 -0
- package/dist/components/tailwind/pricing.d.ts.map +1 -0
- package/dist/components/tailwind/pricing.js +190 -0
- package/dist/components/tailwind/pricing.js.map +1 -0
- package/dist/components/tailwind/privacy.cjs +138 -0
- package/dist/components/tailwind/privacy.cjs.map +1 -0
- package/dist/components/tailwind/privacy.d.ts +2 -0
- package/dist/components/tailwind/privacy.d.ts.map +1 -0
- package/dist/components/tailwind/privacy.js +114 -0
- package/dist/components/tailwind/privacy.js.map +1 -0
- package/dist/components/tailwind/providerIcons.cjs +48 -0
- package/dist/components/tailwind/providerIcons.cjs.map +1 -0
- package/dist/components/tailwind/providerIcons.d.ts +4 -0
- package/dist/components/tailwind/providerIcons.d.ts.map +1 -0
- package/dist/components/tailwind/providerIcons.js +24 -0
- package/dist/components/tailwind/providerIcons.js.map +1 -0
- package/dist/components/ui/avatar.cjs +120 -0
- package/dist/components/ui/avatar.cjs.map +1 -0
- package/dist/components/ui/avatar.d.ts +7 -0
- package/dist/components/ui/avatar.d.ts.map +1 -0
- package/dist/components/ui/avatar.js +86 -0
- package/dist/components/ui/avatar.js.map +1 -0
- package/dist/components/ui/breadcrumb.cjs +63 -0
- package/dist/components/ui/breadcrumb.cjs.map +1 -0
- package/dist/components/ui/breadcrumb.d.ts +10 -0
- package/dist/components/ui/breadcrumb.d.ts.map +1 -0
- package/dist/components/ui/breadcrumb.js +29 -0
- package/dist/components/ui/breadcrumb.js.map +1 -0
- package/dist/components/ui/button.cjs +105 -0
- package/dist/components/ui/button.cjs.map +1 -0
- package/dist/components/ui/button.d.ts +11 -0
- package/dist/components/ui/button.d.ts.map +1 -0
- package/dist/components/ui/button.js +82 -0
- package/dist/components/ui/button.js.map +1 -0
- package/dist/components/ui/card.cjs +129 -0
- package/dist/components/ui/card.cjs.map +1 -0
- package/dist/components/ui/card.d.ts +9 -0
- package/dist/components/ui/card.d.ts.map +1 -0
- package/dist/components/ui/card.js +102 -0
- package/dist/components/ui/card.js.map +1 -0
- package/dist/components/ui/checkbox.cjs +98 -0
- package/dist/components/ui/checkbox.cjs.map +1 -0
- package/dist/components/ui/checkbox.d.ts +5 -0
- package/dist/components/ui/checkbox.d.ts.map +1 -0
- package/dist/components/ui/checkbox.js +66 -0
- package/dist/components/ui/checkbox.js.map +1 -0
- package/dist/components/ui/command.cjs +200 -0
- package/dist/components/ui/command.cjs.map +1 -0
- package/dist/components/ui/command.d.ts +83 -0
- package/dist/components/ui/command.d.ts.map +1 -0
- package/dist/components/ui/command.js +160 -0
- package/dist/components/ui/command.js.map +1 -0
- package/dist/components/ui/dialog.cjs +204 -0
- package/dist/components/ui/dialog.cjs.map +1 -0
- package/dist/components/ui/dialog.d.ts +14 -0
- package/dist/components/ui/dialog.d.ts.map +1 -0
- package/dist/components/ui/dialog.js +163 -0
- package/dist/components/ui/dialog.js.map +1 -0
- package/dist/components/ui/drawer.cjs +191 -0
- package/dist/components/ui/drawer.cjs.map +1 -0
- package/dist/components/ui/drawer.d.ts +14 -0
- package/dist/components/ui/drawer.d.ts.map +1 -0
- package/dist/components/ui/drawer.js +160 -0
- package/dist/components/ui/drawer.js.map +1 -0
- package/dist/components/ui/dropdown-menu.cjs +323 -0
- package/dist/components/ui/dropdown-menu.cjs.map +1 -0
- package/dist/components/ui/dropdown-menu.d.ts +26 -0
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/components/ui/dropdown-menu.js +277 -0
- package/dist/components/ui/dropdown-menu.js.map +1 -0
- package/dist/components/ui/input.cjs +72 -0
- package/dist/components/ui/input.cjs.map +1 -0
- package/dist/components/ui/input.d.ts +4 -0
- package/dist/components/ui/input.d.ts.map +1 -0
- package/dist/components/ui/input.js +50 -0
- package/dist/components/ui/input.js.map +1 -0
- package/dist/components/ui/label.cjs +85 -0
- package/dist/components/ui/label.cjs.map +1 -0
- package/dist/components/ui/label.d.ts +5 -0
- package/dist/components/ui/label.d.ts.map +1 -0
- package/dist/components/ui/label.js +53 -0
- package/dist/components/ui/label.js.map +1 -0
- package/dist/components/ui/menubar.cjs +351 -0
- package/dist/components/ui/menubar.cjs.map +1 -0
- package/dist/components/ui/menubar.d.ts +27 -0
- package/dist/components/ui/menubar.d.ts.map +1 -0
- package/dist/components/ui/menubar.js +304 -0
- package/dist/components/ui/menubar.js.map +1 -0
- package/dist/components/ui/navigation-menu.cjs +257 -0
- package/dist/components/ui/navigation-menu.cjs.map +1 -0
- package/dist/components/ui/navigation-menu.d.ts +15 -0
- package/dist/components/ui/navigation-menu.d.ts.map +1 -0
- package/dist/components/ui/navigation-menu.js +217 -0
- package/dist/components/ui/navigation-menu.js.map +1 -0
- package/dist/components/ui/popover.cjs +109 -0
- package/dist/components/ui/popover.cjs.map +1 -0
- package/dist/components/ui/popover.d.ts +8 -0
- package/dist/components/ui/popover.d.ts.map +1 -0
- package/dist/components/ui/popover.js +74 -0
- package/dist/components/ui/popover.js.map +1 -0
- package/dist/components/ui/resizable.cjs +124 -0
- package/dist/components/ui/resizable.cjs.map +1 -0
- package/dist/components/ui/resizable.d.ts +26 -0
- package/dist/components/ui/resizable.d.ts.map +1 -0
- package/dist/components/ui/resizable.js +90 -0
- package/dist/components/ui/resizable.js.map +1 -0
- package/dist/components/ui/scroll-area.cjs +132 -0
- package/dist/components/ui/scroll-area.cjs.map +1 -0
- package/dist/components/ui/scroll-area.d.ts +6 -0
- package/dist/components/ui/scroll-area.d.ts.map +1 -0
- package/dist/components/ui/scroll-area.js +99 -0
- package/dist/components/ui/scroll-area.js.map +1 -0
- package/dist/components/ui/select.cjs +254 -0
- package/dist/components/ui/select.cjs.map +1 -0
- package/dist/components/ui/select.d.ts +14 -0
- package/dist/components/ui/select.d.ts.map +1 -0
- package/dist/components/ui/select.js +213 -0
- package/dist/components/ui/select.js.map +1 -0
- package/dist/components/ui/sheet.cjs +203 -0
- package/dist/components/ui/sheet.cjs.map +1 -0
- package/dist/components/ui/sheet.d.ts +14 -0
- package/dist/components/ui/sheet.d.ts.map +1 -0
- package/dist/components/ui/sheet.js +164 -0
- package/dist/components/ui/sheet.js.map +1 -0
- package/dist/components/ui/skeleton.cjs +66 -0
- package/dist/components/ui/skeleton.cjs.map +1 -0
- package/dist/components/ui/skeleton.d.ts +3 -0
- package/dist/components/ui/skeleton.d.ts.map +1 -0
- package/dist/components/ui/skeleton.js +44 -0
- package/dist/components/ui/skeleton.js.map +1 -0
- package/dist/components/ui/spinner.cjs +128 -0
- package/dist/components/ui/spinner.cjs.map +1 -0
- package/dist/components/ui/spinner.d.ts +12 -0
- package/dist/components/ui/spinner.d.ts.map +1 -0
- package/dist/components/ui/spinner.js +105 -0
- package/dist/components/ui/spinner.js.map +1 -0
- package/dist/components/ui/switch.cjs +98 -0
- package/dist/components/ui/switch.cjs.map +1 -0
- package/dist/components/ui/switch.d.ts +5 -0
- package/dist/components/ui/switch.d.ts.map +1 -0
- package/dist/components/ui/switch.js +66 -0
- package/dist/components/ui/switch.js.map +1 -0
- package/dist/components/ui/tabs.cjs +136 -0
- package/dist/components/ui/tabs.cjs.map +1 -0
- package/dist/components/ui/tabs.d.ts +8 -0
- package/dist/components/ui/tabs.d.ts.map +1 -0
- package/dist/components/ui/tabs.js +101 -0
- package/dist/components/ui/tabs.js.map +1 -0
- package/dist/components/ui/textarea.cjs +69 -0
- package/dist/components/ui/textarea.cjs.map +1 -0
- package/dist/components/ui/textarea.d.ts +4 -0
- package/dist/components/ui/textarea.d.ts.map +1 -0
- package/dist/components/ui/textarea.js +47 -0
- package/dist/components/ui/textarea.js.map +1 -0
- package/dist/components/ui/toast.cjs +169 -0
- package/dist/components/ui/toast.cjs.map +1 -0
- package/dist/components/ui/toast.d.ts +15 -0
- package/dist/components/ui/toast.d.ts.map +1 -0
- package/dist/components/ui/toast.js +131 -0
- package/dist/components/ui/toast.js.map +1 -0
- package/dist/components/ui/toaster.cjs +78 -0
- package/dist/components/ui/toaster.cjs.map +1 -0
- package/dist/components/ui/toaster.d.ts +2 -0
- package/dist/components/ui/toaster.d.ts.map +1 -0
- package/dist/components/ui/toaster.js +63 -0
- package/dist/components/ui/toaster.js.map +1 -0
- package/dist/components/ui/tooltip.cjs +126 -0
- package/dist/components/ui/tooltip.cjs.map +1 -0
- package/dist/components/ui/tooltip.d.ts +8 -0
- package/dist/components/ui/tooltip.d.ts.map +1 -0
- package/dist/components/ui/tooltip.js +91 -0
- package/dist/components/ui/tooltip.js.map +1 -0
- package/dist/components/ui/use-toast.cjs +187 -0
- package/dist/components/ui/use-toast.cjs.map +1 -0
- package/dist/components/ui/use-toast.d.ts +45 -0
- package/dist/components/ui/use-toast.d.ts.map +1 -0
- package/dist/components/ui/use-toast.js +153 -0
- package/dist/components/ui/use-toast.js.map +1 -0
- package/dist/components/upgrade-prompt/UpgradePrompt.cjs +80 -0
- package/dist/components/upgrade-prompt/UpgradePrompt.cjs.map +1 -0
- package/dist/components/upgrade-prompt/UpgradePrompt.d.ts +12 -0
- package/dist/components/upgrade-prompt/UpgradePrompt.d.ts.map +1 -0
- package/dist/components/upgrade-prompt/UpgradePrompt.js +46 -0
- package/dist/components/upgrade-prompt/UpgradePrompt.js.map +1 -0
- package/dist/components/upgrade-prompt/index.cjs +29 -0
- package/dist/components/upgrade-prompt/index.cjs.map +1 -0
- package/dist/components/upgrade-prompt/index.d.ts +3 -0
- package/dist/components/upgrade-prompt/index.d.ts.map +1 -0
- package/dist/components/upgrade-prompt/index.js +5 -0
- package/dist/components/upgrade-prompt/index.js.map +1 -0
- package/dist/config/docs.d.ts +8 -0
- package/dist/config/docs.d.ts.map +1 -0
- package/dist/config/site.d.ts +12 -0
- package/dist/config/site.d.ts.map +1 -0
- package/dist/hooks/useRecaptcha.d.ts +16 -0
- package/dist/hooks/useRecaptcha.d.ts.map +1 -0
- package/dist/lib/utils.cjs +48 -0
- package/dist/lib/utils.cjs.map +1 -0
- package/dist/lib/utils.d.cjs +17 -0
- package/dist/lib/utils.d.cjs.map +1 -0
- package/dist/lib/utils.d.js +1 -0
- package/dist/lib/utils.d.js.map +1 -0
- package/dist/lib/utils.d.ts +5 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/utils.js +22 -0
- package/dist/lib/utils.js.map +1 -0
- package/dist/styles.css +178 -0
- package/dist/types/nav.cjs +17 -0
- package/dist/types/nav.cjs.map +1 -0
- package/dist/types/nav.d.ts +17 -0
- package/dist/types/nav.d.ts.map +1 -0
- package/dist/types/nav.js +1 -0
- package/dist/types/nav.js.map +1 -0
- package/dist/types/sitemap.cjs +17 -0
- package/dist/types/sitemap.cjs.map +1 -0
- package/dist/types/sitemap.d.ts +19 -0
- package/dist/types/sitemap.d.ts.map +1 -0
- package/dist/types/sitemap.js +1 -0
- package/dist/types/sitemap.js.map +1 -0
- package/dist/types/unist.cjs +17 -0
- package/dist/types/unist.cjs.map +1 -0
- package/dist/types/unist.js +1 -0
- package/dist/types/unist.js.map +1 -0
- package/package.json +91 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var user_dropdown_exports = {};
|
|
20
|
+
__export(user_dropdown_exports, {
|
|
21
|
+
default: () => user_dropdown_default
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(user_dropdown_exports);
|
|
24
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
|
+
var import_dropdown_menu = require("../../ui/dropdown-menu");
|
|
26
|
+
var import_avatar = require("../../ui/avatar");
|
|
27
|
+
const links = ["stories", "characters", "locations", "timelines"];
|
|
28
|
+
const UserLinks = ({ user }) => {
|
|
29
|
+
const handle = (user == null ? void 0 : user.username) || (user == null ? void 0 : user.id);
|
|
30
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: links.map((link) => {
|
|
31
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("a", { href: `/${handle}/${link}`, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dropdown_menu.DropdownMenuItem, { children: link }) }, "user" + link);
|
|
32
|
+
}) });
|
|
33
|
+
};
|
|
34
|
+
const CreateLinks = () => {
|
|
35
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: links.map((link) => {
|
|
36
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("a", { href: `/create/${link}`, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dropdown_menu.DropdownMenuItem, { children: link }) }, "create" + link);
|
|
37
|
+
}) });
|
|
38
|
+
};
|
|
39
|
+
const UserDropdown = ({
|
|
40
|
+
user,
|
|
41
|
+
logOut
|
|
42
|
+
}) => {
|
|
43
|
+
var _a;
|
|
44
|
+
const handle = (user == null ? void 0 : user.username) || (user == null ? void 0 : user.id);
|
|
45
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_dropdown_menu.DropdownMenu, { children: [
|
|
46
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dropdown_menu.DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_avatar.Avatar, { "data-tour": "user-profile", className: "h-9 w-9 cursor-pointer", children: [
|
|
47
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_avatar.AvatarImage, { src: (user == null ? void 0 : user.image) || "", alt: (user == null ? void 0 : user.name) || "User" }),
|
|
48
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_avatar.AvatarFallback, { children: (_a = user == null ? void 0 : user.name) == null ? void 0 : _a.split("")[0] })
|
|
49
|
+
] }) }),
|
|
50
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_dropdown_menu.DropdownMenuContent, { className: "w-56", children: [
|
|
51
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dropdown_menu.DropdownMenuLabel, { children: user == null ? void 0 : user.name }),
|
|
52
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dropdown_menu.DropdownMenuSeparator, {}),
|
|
53
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dropdown_menu.DropdownMenuGroup, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("a", { href: `/${handle}`, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dropdown_menu.DropdownMenuItem, { children: "Profile" }) }) }),
|
|
54
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dropdown_menu.DropdownMenuSeparator, {}),
|
|
55
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_dropdown_menu.DropdownMenuGroup, { children: [
|
|
56
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(UserLinks, { user }),
|
|
57
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_dropdown_menu.DropdownMenuSub, { children: [
|
|
58
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dropdown_menu.DropdownMenuSubTrigger, { children: "Create New" }),
|
|
59
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dropdown_menu.DropdownMenuPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_dropdown_menu.DropdownMenuSubContent, { children: [
|
|
60
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(CreateLinks, {}),
|
|
61
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dropdown_menu.DropdownMenuSeparator, {}),
|
|
62
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("a", { href: `/create/`, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dropdown_menu.DropdownMenuItem, { children: "More..." }) })
|
|
63
|
+
] }) })
|
|
64
|
+
] })
|
|
65
|
+
] }),
|
|
66
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dropdown_menu.DropdownMenuSeparator, {}),
|
|
67
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dropdown_menu.DropdownMenuItem, { onClick: logOut, children: "Log out" })
|
|
68
|
+
] })
|
|
69
|
+
] });
|
|
70
|
+
};
|
|
71
|
+
var user_dropdown_default = UserDropdown;
|
|
72
|
+
//# sourceMappingURL=user-dropdown.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../components/header/userbutton/user-dropdown.tsx"],"sourcesContent":["import {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuPortal,\n DropdownMenuSeparator,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuTrigger,\n} from '../../ui/dropdown-menu'\nimport { Avatar, AvatarFallback, AvatarImage } from '../../ui/avatar'\nconst links = ['stories', 'characters', 'locations', 'timelines']\nimport React from 'react'\nimport { User } from '@auth/core/types'\n\ntype UserWithUsername = User & { username?: string | null }\n\nconst UserLinks: ({\n user,\n}: {\n user: UserWithUsername\n}) => React.JSX.Element = ({ user }: { user: UserWithUsername }) => {\n const handle = user?.username || user?.id\n return (\n <>\n {links.map((link) => {\n return (\n <a key={'user' + link} href={`/${handle}/${link}`}>\n <DropdownMenuItem>{link}</DropdownMenuItem>\n </a>\n )\n })}\n </>\n )\n}\n\nconst CreateLinks = () => {\n return (\n <>\n {links.map((link) => {\n return (\n <a key={'create' + link} href={`/create/${link}`}>\n <DropdownMenuItem>{link}</DropdownMenuItem>\n </a>\n )\n })}\n </>\n )\n}\n\nconst UserDropdown = ({\n user,\n logOut,\n}: {\n user: UserWithUsername\n logOut: () => void\n}) => {\n const handle = user?.username || user?.id\n return (\n <DropdownMenu>\n <DropdownMenuTrigger asChild>\n <Avatar data-tour=\"user-profile\" className=\"h-9 w-9 cursor-pointer\">\n <AvatarImage src={user?.image || ''} alt={user?.name || 'User'} />\n <AvatarFallback>{user?.name?.split('')[0]}</AvatarFallback>\n </Avatar>\n </DropdownMenuTrigger>\n <DropdownMenuContent className=\"w-56\">\n <DropdownMenuLabel>{user?.name}</DropdownMenuLabel>\n <DropdownMenuSeparator />\n <DropdownMenuGroup>\n <a href={`/${handle}`}>\n <DropdownMenuItem>Profile</DropdownMenuItem>\n </a>\n </DropdownMenuGroup>\n <DropdownMenuSeparator />\n <DropdownMenuGroup>\n <UserLinks user={user} />\n <DropdownMenuSub>\n <DropdownMenuSubTrigger>Create New</DropdownMenuSubTrigger>\n <DropdownMenuPortal>\n <DropdownMenuSubContent>\n <CreateLinks />\n <DropdownMenuSeparator />\n <a href={`/create/`}>\n <DropdownMenuItem>More...</DropdownMenuItem>\n </a>\n </DropdownMenuSubContent>\n </DropdownMenuPortal>\n </DropdownMenuSub>\n </DropdownMenuGroup>\n <DropdownMenuSeparator />\n <DropdownMenuItem onClick={logOut}>Log out</DropdownMenuItem>\n </DropdownMenuContent>\n </DropdownMenu>\n )\n}\n\nexport default UserDropdown\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA2BI;AA3BJ,2BAYO;AACP,oBAAoD;AACpD,MAAM,QAAQ,CAAC,WAAW,cAAc,aAAa,WAAW;AAMhE,MAAM,YAIoB,CAAC,EAAE,KAAK,MAAkC;AAClE,QAAM,UAAS,6BAAM,cAAY,6BAAM;AACvC,SACE,2EACG,gBAAM,IAAI,CAAC,SAAS;AACnB,WACE,4CAAC,OAAsB,MAAM,IAAI,MAAM,IAAI,IAAI,IAC7C,sDAAC,yCAAkB,gBAAK,KADlB,SAAS,IAEjB;AAAA,EAEJ,CAAC,GACH;AAEJ;AAEA,MAAM,cAAc,MAAM;AACxB,SACE,2EACG,gBAAM,IAAI,CAAC,SAAS;AACnB,WACE,4CAAC,OAAwB,MAAM,WAAW,IAAI,IAC5C,sDAAC,yCAAkB,gBAAK,KADlB,WAAW,IAEnB;AAAA,EAEJ,CAAC,GACH;AAEJ;AAEA,MAAM,eAAe,CAAC;AAAA,EACpB;AAAA,EACA;AACF,MAGM;AA3DN;AA4DE,QAAM,UAAS,6BAAM,cAAY,6BAAM;AACvC,SACE,6CAAC,qCACC;AAAA,gDAAC,4CAAoB,SAAO,MAC1B,uDAAC,wBAAO,aAAU,gBAAe,WAAU,0BACzC;AAAA,kDAAC,6BAAY,MAAK,6BAAM,UAAS,IAAI,MAAK,6BAAM,SAAQ,QAAQ;AAAA,MAChE,4CAAC,gCAAgB,6CAAM,SAAN,mBAAY,MAAM,IAAI,IAAG;AAAA,OAC5C,GACF;AAAA,IACA,6CAAC,4CAAoB,WAAU,QAC7B;AAAA,kDAAC,0CAAmB,uCAAM,MAAK;AAAA,MAC/B,4CAAC,8CAAsB;AAAA,MACvB,4CAAC,0CACC,sDAAC,OAAE,MAAM,IAAI,MAAM,IACjB,sDAAC,yCAAiB,qBAAO,GAC3B,GACF;AAAA,MACA,4CAAC,8CAAsB;AAAA,MACvB,6CAAC,0CACC;AAAA,oDAAC,aAAU,MAAY;AAAA,QACvB,6CAAC,wCACC;AAAA,sDAAC,+CAAuB,wBAAU;AAAA,UAClC,4CAAC,2CACC,uDAAC,+CACC;AAAA,wDAAC,eAAY;AAAA,YACb,4CAAC,8CAAsB;AAAA,YACvB,4CAAC,OAAE,MAAM,YACP,sDAAC,yCAAiB,qBAAO,GAC3B;AAAA,aACF,GACF;AAAA,WACF;AAAA,SACF;AAAA,MACA,4CAAC,8CAAsB;AAAA,MACvB,4CAAC,yCAAiB,SAAS,QAAQ,qBAAO;AAAA,OAC5C;AAAA,KACF;AAEJ;AAEA,IAAO,wBAAQ;","names":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { User } from '@auth/core/types';
|
|
2
|
+
type UserWithUsername = User & {
|
|
3
|
+
username?: string | null;
|
|
4
|
+
};
|
|
5
|
+
declare const UserDropdown: ({ user, logOut, }: {
|
|
6
|
+
user: UserWithUsername;
|
|
7
|
+
logOut: () => void;
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default UserDropdown;
|
|
10
|
+
//# sourceMappingURL=user-dropdown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-dropdown.d.ts","sourceRoot":"","sources":["../../../../components/header/userbutton/user-dropdown.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAEvC,KAAK,gBAAgB,GAAG,IAAI,GAAG;IAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAAA;AAmC3D,QAAA,MAAM,YAAY,sBAGf;IACD,IAAI,EAAE,gBAAgB,CAAA;IACtB,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB,4CAuCA,CAAA;AAED,eAAe,YAAY,CAAA"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import {
|
|
3
|
+
DropdownMenu,
|
|
4
|
+
DropdownMenuContent,
|
|
5
|
+
DropdownMenuGroup,
|
|
6
|
+
DropdownMenuItem,
|
|
7
|
+
DropdownMenuLabel,
|
|
8
|
+
DropdownMenuPortal,
|
|
9
|
+
DropdownMenuSeparator,
|
|
10
|
+
DropdownMenuSub,
|
|
11
|
+
DropdownMenuSubContent,
|
|
12
|
+
DropdownMenuSubTrigger,
|
|
13
|
+
DropdownMenuTrigger
|
|
14
|
+
} from "../../ui/dropdown-menu";
|
|
15
|
+
import { Avatar, AvatarFallback, AvatarImage } from "../../ui/avatar";
|
|
16
|
+
const links = ["stories", "characters", "locations", "timelines"];
|
|
17
|
+
const UserLinks = ({ user }) => {
|
|
18
|
+
const handle = (user == null ? void 0 : user.username) || (user == null ? void 0 : user.id);
|
|
19
|
+
return /* @__PURE__ */ jsx(Fragment, { children: links.map((link) => {
|
|
20
|
+
return /* @__PURE__ */ jsx("a", { href: `/${handle}/${link}`, children: /* @__PURE__ */ jsx(DropdownMenuItem, { children: link }) }, "user" + link);
|
|
21
|
+
}) });
|
|
22
|
+
};
|
|
23
|
+
const CreateLinks = () => {
|
|
24
|
+
return /* @__PURE__ */ jsx(Fragment, { children: links.map((link) => {
|
|
25
|
+
return /* @__PURE__ */ jsx("a", { href: `/create/${link}`, children: /* @__PURE__ */ jsx(DropdownMenuItem, { children: link }) }, "create" + link);
|
|
26
|
+
}) });
|
|
27
|
+
};
|
|
28
|
+
const UserDropdown = ({
|
|
29
|
+
user,
|
|
30
|
+
logOut
|
|
31
|
+
}) => {
|
|
32
|
+
var _a;
|
|
33
|
+
const handle = (user == null ? void 0 : user.username) || (user == null ? void 0 : user.id);
|
|
34
|
+
return /* @__PURE__ */ jsxs(DropdownMenu, { children: [
|
|
35
|
+
/* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(Avatar, { "data-tour": "user-profile", className: "h-9 w-9 cursor-pointer", children: [
|
|
36
|
+
/* @__PURE__ */ jsx(AvatarImage, { src: (user == null ? void 0 : user.image) || "", alt: (user == null ? void 0 : user.name) || "User" }),
|
|
37
|
+
/* @__PURE__ */ jsx(AvatarFallback, { children: (_a = user == null ? void 0 : user.name) == null ? void 0 : _a.split("")[0] })
|
|
38
|
+
] }) }),
|
|
39
|
+
/* @__PURE__ */ jsxs(DropdownMenuContent, { className: "w-56", children: [
|
|
40
|
+
/* @__PURE__ */ jsx(DropdownMenuLabel, { children: user == null ? void 0 : user.name }),
|
|
41
|
+
/* @__PURE__ */ jsx(DropdownMenuSeparator, {}),
|
|
42
|
+
/* @__PURE__ */ jsx(DropdownMenuGroup, { children: /* @__PURE__ */ jsx("a", { href: `/${handle}`, children: /* @__PURE__ */ jsx(DropdownMenuItem, { children: "Profile" }) }) }),
|
|
43
|
+
/* @__PURE__ */ jsx(DropdownMenuSeparator, {}),
|
|
44
|
+
/* @__PURE__ */ jsxs(DropdownMenuGroup, { children: [
|
|
45
|
+
/* @__PURE__ */ jsx(UserLinks, { user }),
|
|
46
|
+
/* @__PURE__ */ jsxs(DropdownMenuSub, { children: [
|
|
47
|
+
/* @__PURE__ */ jsx(DropdownMenuSubTrigger, { children: "Create New" }),
|
|
48
|
+
/* @__PURE__ */ jsx(DropdownMenuPortal, { children: /* @__PURE__ */ jsxs(DropdownMenuSubContent, { children: [
|
|
49
|
+
/* @__PURE__ */ jsx(CreateLinks, {}),
|
|
50
|
+
/* @__PURE__ */ jsx(DropdownMenuSeparator, {}),
|
|
51
|
+
/* @__PURE__ */ jsx("a", { href: `/create/`, children: /* @__PURE__ */ jsx(DropdownMenuItem, { children: "More..." }) })
|
|
52
|
+
] }) })
|
|
53
|
+
] })
|
|
54
|
+
] }),
|
|
55
|
+
/* @__PURE__ */ jsx(DropdownMenuSeparator, {}),
|
|
56
|
+
/* @__PURE__ */ jsx(DropdownMenuItem, { onClick: logOut, children: "Log out" })
|
|
57
|
+
] })
|
|
58
|
+
] });
|
|
59
|
+
};
|
|
60
|
+
var user_dropdown_default = UserDropdown;
|
|
61
|
+
export {
|
|
62
|
+
user_dropdown_default as default
|
|
63
|
+
};
|
|
64
|
+
//# sourceMappingURL=user-dropdown.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../components/header/userbutton/user-dropdown.tsx"],"sourcesContent":["import {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuPortal,\n DropdownMenuSeparator,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuTrigger,\n} from '../../ui/dropdown-menu'\nimport { Avatar, AvatarFallback, AvatarImage } from '../../ui/avatar'\nconst links = ['stories', 'characters', 'locations', 'timelines']\nimport React from 'react'\nimport { User } from '@auth/core/types'\n\ntype UserWithUsername = User & { username?: string | null }\n\nconst UserLinks: ({\n user,\n}: {\n user: UserWithUsername\n}) => React.JSX.Element = ({ user }: { user: UserWithUsername }) => {\n const handle = user?.username || user?.id\n return (\n <>\n {links.map((link) => {\n return (\n <a key={'user' + link} href={`/${handle}/${link}`}>\n <DropdownMenuItem>{link}</DropdownMenuItem>\n </a>\n )\n })}\n </>\n )\n}\n\nconst CreateLinks = () => {\n return (\n <>\n {links.map((link) => {\n return (\n <a key={'create' + link} href={`/create/${link}`}>\n <DropdownMenuItem>{link}</DropdownMenuItem>\n </a>\n )\n })}\n </>\n )\n}\n\nconst UserDropdown = ({\n user,\n logOut,\n}: {\n user: UserWithUsername\n logOut: () => void\n}) => {\n const handle = user?.username || user?.id\n return (\n <DropdownMenu>\n <DropdownMenuTrigger asChild>\n <Avatar data-tour=\"user-profile\" className=\"h-9 w-9 cursor-pointer\">\n <AvatarImage src={user?.image || ''} alt={user?.name || 'User'} />\n <AvatarFallback>{user?.name?.split('')[0]}</AvatarFallback>\n </Avatar>\n </DropdownMenuTrigger>\n <DropdownMenuContent className=\"w-56\">\n <DropdownMenuLabel>{user?.name}</DropdownMenuLabel>\n <DropdownMenuSeparator />\n <DropdownMenuGroup>\n <a href={`/${handle}`}>\n <DropdownMenuItem>Profile</DropdownMenuItem>\n </a>\n </DropdownMenuGroup>\n <DropdownMenuSeparator />\n <DropdownMenuGroup>\n <UserLinks user={user} />\n <DropdownMenuSub>\n <DropdownMenuSubTrigger>Create New</DropdownMenuSubTrigger>\n <DropdownMenuPortal>\n <DropdownMenuSubContent>\n <CreateLinks />\n <DropdownMenuSeparator />\n <a href={`/create/`}>\n <DropdownMenuItem>More...</DropdownMenuItem>\n </a>\n </DropdownMenuSubContent>\n </DropdownMenuPortal>\n </DropdownMenuSub>\n </DropdownMenuGroup>\n <DropdownMenuSeparator />\n <DropdownMenuItem onClick={logOut}>Log out</DropdownMenuItem>\n </DropdownMenuContent>\n </DropdownMenu>\n )\n}\n\nexport default UserDropdown\n"],"mappings":"AA2BI,mBAIQ,KAiCJ,YArCJ;AA3BJ;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,QAAQ,gBAAgB,mBAAmB;AACpD,MAAM,QAAQ,CAAC,WAAW,cAAc,aAAa,WAAW;AAMhE,MAAM,YAIoB,CAAC,EAAE,KAAK,MAAkC;AAClE,QAAM,UAAS,6BAAM,cAAY,6BAAM;AACvC,SACE,gCACG,gBAAM,IAAI,CAAC,SAAS;AACnB,WACE,oBAAC,OAAsB,MAAM,IAAI,MAAM,IAAI,IAAI,IAC7C,8BAAC,oBAAkB,gBAAK,KADlB,SAAS,IAEjB;AAAA,EAEJ,CAAC,GACH;AAEJ;AAEA,MAAM,cAAc,MAAM;AACxB,SACE,gCACG,gBAAM,IAAI,CAAC,SAAS;AACnB,WACE,oBAAC,OAAwB,MAAM,WAAW,IAAI,IAC5C,8BAAC,oBAAkB,gBAAK,KADlB,WAAW,IAEnB;AAAA,EAEJ,CAAC,GACH;AAEJ;AAEA,MAAM,eAAe,CAAC;AAAA,EACpB;AAAA,EACA;AACF,MAGM;AA3DN;AA4DE,QAAM,UAAS,6BAAM,cAAY,6BAAM;AACvC,SACE,qBAAC,gBACC;AAAA,wBAAC,uBAAoB,SAAO,MAC1B,+BAAC,UAAO,aAAU,gBAAe,WAAU,0BACzC;AAAA,0BAAC,eAAY,MAAK,6BAAM,UAAS,IAAI,MAAK,6BAAM,SAAQ,QAAQ;AAAA,MAChE,oBAAC,kBAAgB,6CAAM,SAAN,mBAAY,MAAM,IAAI,IAAG;AAAA,OAC5C,GACF;AAAA,IACA,qBAAC,uBAAoB,WAAU,QAC7B;AAAA,0BAAC,qBAAmB,uCAAM,MAAK;AAAA,MAC/B,oBAAC,yBAAsB;AAAA,MACvB,oBAAC,qBACC,8BAAC,OAAE,MAAM,IAAI,MAAM,IACjB,8BAAC,oBAAiB,qBAAO,GAC3B,GACF;AAAA,MACA,oBAAC,yBAAsB;AAAA,MACvB,qBAAC,qBACC;AAAA,4BAAC,aAAU,MAAY;AAAA,QACvB,qBAAC,mBACC;AAAA,8BAAC,0BAAuB,wBAAU;AAAA,UAClC,oBAAC,sBACC,+BAAC,0BACC;AAAA,gCAAC,eAAY;AAAA,YACb,oBAAC,yBAAsB;AAAA,YACvB,oBAAC,OAAE,MAAM,YACP,8BAAC,oBAAiB,qBAAO,GAC3B;AAAA,aACF,GACF;AAAA,WACF;AAAA,SACF;AAAA,MACA,oBAAC,yBAAsB;AAAA,MACvB,oBAAC,oBAAiB,SAAS,QAAQ,qBAAO;AAAA,OAC5C;AAAA,KACF;AAEJ;AAEA,IAAO,wBAAQ;","names":[]}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __export = (target, all) => {
|
|
10
|
+
for (var name in all)
|
|
11
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from))
|
|
16
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
+
}
|
|
19
|
+
return to;
|
|
20
|
+
};
|
|
21
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
+
mod
|
|
28
|
+
));
|
|
29
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
+
var userbutton_exports = {};
|
|
31
|
+
__export(userbutton_exports, {
|
|
32
|
+
UserButton: () => UserButton
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(userbutton_exports);
|
|
35
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
36
|
+
var import_user_dropdown = __toESM(require("./user-dropdown"), 1);
|
|
37
|
+
const UserButton = ({
|
|
38
|
+
user,
|
|
39
|
+
signOut
|
|
40
|
+
}) => {
|
|
41
|
+
return user ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_user_dropdown.default, { user, logOut: signOut }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("a", { href: "/signin", className: "text-sm font-semibold leading-6 text-white", children: [
|
|
42
|
+
"Log in ",
|
|
43
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { "aria-hidden": "true", children: "\u2192" })
|
|
44
|
+
] });
|
|
45
|
+
};
|
|
46
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
47
|
+
0 && (module.exports = {
|
|
48
|
+
UserButton
|
|
49
|
+
});
|
|
50
|
+
//# sourceMappingURL=userbutton.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../components/header/userbutton/userbutton.tsx"],"sourcesContent":["'use client'\nimport UserDropdown from './user-dropdown'\nimport { User } from '@auth/core/types'\n\ntype UserWithUsername = User & { username?: string | null }\n\nexport const UserButton = ({\n user,\n signOut,\n}: {\n user: UserWithUsername | undefined\n signOut: () => Promise<void>\n}) => {\n return user ? (\n <UserDropdown user={user} logOut={signOut} />\n ) : (\n <a href=\"/signin\" className=\"text-sm font-semibold leading-6 text-white\">\n Log in <span aria-hidden=\"true\">→</span>\n </a>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAcI;AAbJ,2BAAyB;AAKlB,MAAM,aAAa,CAAC;AAAA,EACzB;AAAA,EACA;AACF,MAGM;AACJ,SAAO,OACL,4CAAC,qBAAAA,SAAA,EAAa,MAAY,QAAQ,SAAS,IAE3C,6CAAC,OAAE,MAAK,WAAU,WAAU,8CAA6C;AAAA;AAAA,IAChE,4CAAC,UAAK,eAAY,QAAO,oBAAM;AAAA,KACxC;AAEJ;","names":["UserDropdown"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { User } from '@auth/core/types';
|
|
2
|
+
type UserWithUsername = User & {
|
|
3
|
+
username?: string | null;
|
|
4
|
+
};
|
|
5
|
+
export declare const UserButton: ({ user, signOut, }: {
|
|
6
|
+
user: UserWithUsername | undefined;
|
|
7
|
+
signOut: () => Promise<void>;
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=userbutton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"userbutton.d.ts","sourceRoot":"","sources":["../../../../components/header/userbutton/userbutton.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAEvC,KAAK,gBAAgB,GAAG,IAAI,GAAG;IAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAAA;AAE3D,eAAO,MAAM,UAAU,uBAGpB;IACD,IAAI,EAAE,gBAAgB,GAAG,SAAS,CAAA;IAClC,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;CAC7B,4CAQA,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import UserDropdown from "./user-dropdown";
|
|
4
|
+
const UserButton = ({
|
|
5
|
+
user,
|
|
6
|
+
signOut
|
|
7
|
+
}) => {
|
|
8
|
+
return user ? /* @__PURE__ */ jsx(UserDropdown, { user, logOut: signOut }) : /* @__PURE__ */ jsxs("a", { href: "/signin", className: "text-sm font-semibold leading-6 text-white", children: [
|
|
9
|
+
"Log in ",
|
|
10
|
+
/* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: "\u2192" })
|
|
11
|
+
] });
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
UserButton
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=userbutton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../components/header/userbutton/userbutton.tsx"],"sourcesContent":["'use client'\nimport UserDropdown from './user-dropdown'\nimport { User } from '@auth/core/types'\n\ntype UserWithUsername = User & { username?: string | null }\n\nexport const UserButton = ({\n user,\n signOut,\n}: {\n user: UserWithUsername | undefined\n signOut: () => Promise<void>\n}) => {\n return user ? (\n <UserDropdown user={user} logOut={signOut} />\n ) : (\n <a href=\"/signin\" className=\"text-sm font-semibold leading-6 text-white\">\n Log in <span aria-hidden=\"true\">→</span>\n </a>\n )\n}\n"],"mappings":";AAcI,cAEA,YAFA;AAbJ,OAAO,kBAAkB;AAKlB,MAAM,aAAa,CAAC;AAAA,EACzB;AAAA,EACA;AACF,MAGM;AACJ,SAAO,OACL,oBAAC,gBAAa,MAAY,QAAQ,SAAS,IAE3C,qBAAC,OAAE,MAAK,WAAU,WAAU,8CAA6C;AAAA;AAAA,IAChE,oBAAC,UAAK,eAAY,QAAO,oBAAM;AAAA,KACxC;AAEJ;","names":[]}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var use_page_nav_exports = {};
|
|
30
|
+
__export(use_page_nav_exports, {
|
|
31
|
+
usePageNav: () => usePageNav
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(use_page_nav_exports);
|
|
34
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
|
+
var import_build_nav = require("../dashboard/utils/build-nav");
|
|
36
|
+
var import_build_nav2 = require("../dashboard/utils/build-nav");
|
|
37
|
+
var import_utils = require("../../lib/utils");
|
|
38
|
+
var import_link = __toESM(require("next/link"), 1);
|
|
39
|
+
var import_react = require("react");
|
|
40
|
+
var import_dropdown_menu = require("../ui/dropdown-menu");
|
|
41
|
+
const usePageNav = (sitemap, pathname, t, userId) => {
|
|
42
|
+
const [pages, setPages] = (0, import_react.useState)([]);
|
|
43
|
+
(0, import_react.useEffect)(() => {
|
|
44
|
+
const keyIndex = (0, import_build_nav2.createKeyIndex)(sitemap);
|
|
45
|
+
const reducedPages = (0, import_build_nav.createPagesSubNav)(keyIndex, "pages", {});
|
|
46
|
+
setPages(reducedPages);
|
|
47
|
+
}, [userId]);
|
|
48
|
+
return {
|
|
49
|
+
pages: pages == null ? void 0 : pages.map(
|
|
50
|
+
(page) => {
|
|
51
|
+
var _a;
|
|
52
|
+
return (page == null ? void 0 : page.children) ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_dropdown_menu.DropdownMenu, { children: [
|
|
53
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dropdown_menu.DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
54
|
+
import_link.default,
|
|
55
|
+
{
|
|
56
|
+
href: page == null ? void 0 : page.href,
|
|
57
|
+
className: (0, import_utils.cn)(
|
|
58
|
+
"hover:text-foreground/80 transition-colors",
|
|
59
|
+
pathname === (page == null ? void 0 : page.href) ? "text-foreground" : "text-foreground/60"
|
|
60
|
+
),
|
|
61
|
+
children: t(page == null ? void 0 : page.title)
|
|
62
|
+
},
|
|
63
|
+
page == null ? void 0 : page.title
|
|
64
|
+
) }),
|
|
65
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dropdown_menu.DropdownMenuContent, { className: "w-56", children: (_a = page == null ? void 0 : page.children) == null ? void 0 : _a.map((link) => {
|
|
66
|
+
var _a2;
|
|
67
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dropdown_menu.DropdownMenuGroup, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_link.default, { href: `${(_a2 = link == null ? void 0 : link.href) == null ? void 0 : _a2.replace(":user", userId || "")}`, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dropdown_menu.DropdownMenuItem, { children: t(link == null ? void 0 : link.title) }) }) }, link == null ? void 0 : link.title);
|
|
68
|
+
}) })
|
|
69
|
+
] }, page == null ? void 0 : page.title) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
70
|
+
import_link.default,
|
|
71
|
+
{
|
|
72
|
+
href: page == null ? void 0 : page.href,
|
|
73
|
+
className: (0, import_utils.cn)(
|
|
74
|
+
"hover:text-foreground/80 transition-colors",
|
|
75
|
+
pathname === (page == null ? void 0 : page.href) ? "text-foreground" : "text-foreground/60"
|
|
76
|
+
),
|
|
77
|
+
children: t(page == null ? void 0 : page.title)
|
|
78
|
+
},
|
|
79
|
+
page == null ? void 0 : page.title
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
)
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
86
|
+
0 && (module.exports = {
|
|
87
|
+
usePageNav
|
|
88
|
+
});
|
|
89
|
+
//# sourceMappingURL=use-page-nav.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../components/hooks/use-page-nav.tsx"],"sourcesContent":["import { createPagesSubNav } from '../dashboard/utils/build-nav'\nimport { createKeyIndex } from '../dashboard/utils/build-nav'\nimport { cn } from '../../lib/utils'\nimport Link from 'next/link'\nimport { ReactElement, useEffect, useState } from 'react'\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuTrigger,\n} from '../ui/dropdown-menu'\nimport { Sitemap } from '../../types/sitemap'\n\nexport const usePageNav = (\n sitemap: Sitemap,\n pathname: string,\n t: (key: string) => string,\n userId?: string,\n) => {\n const [pages, setPages] = useState([])\n\n useEffect(() => {\n const keyIndex = createKeyIndex(sitemap)\n const reducedPages = createPagesSubNav(keyIndex, 'pages', {})\n setPages(reducedPages)\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [userId])\n\n return {\n pages: pages?.map(\n (page: { title: string; href: string; children?: ReactElement[] }) => {\n return page?.children ? (\n <DropdownMenu key={page?.title}>\n <DropdownMenuTrigger asChild>\n <Link\n key={page?.title}\n href={page?.href}\n className={cn(\n 'hover:text-foreground/80 transition-colors',\n pathname === page?.href\n ? 'text-foreground'\n : 'text-foreground/60',\n )}\n >\n {t(page?.title)}\n </Link>\n </DropdownMenuTrigger>\n <DropdownMenuContent className=\"w-56\">\n {page?.children?.map((link: any) => (\n <DropdownMenuGroup key={link?.title}>\n <Link href={`${link?.href?.replace(':user', userId || '')}`}>\n <DropdownMenuItem>{t(link?.title)}</DropdownMenuItem>\n </Link>\n </DropdownMenuGroup>\n ))}\n </DropdownMenuContent>\n </DropdownMenu>\n ) : (\n <Link\n key={page?.title}\n href={page?.href}\n className={cn(\n 'hover:text-foreground/80 transition-colors',\n pathname === page?.href\n ? 'text-foreground'\n : 'text-foreground/60',\n )}\n >\n {t(page?.title)}\n </Link>\n )\n },\n ),\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAiCU;AAjCV,uBAAkC;AAClC,IAAAA,oBAA+B;AAC/B,mBAAmB;AACnB,kBAAiB;AACjB,mBAAkD;AAClD,2BAMO;AAGA,MAAM,aAAa,CACxB,SACA,UACA,GACA,WACG;AACH,QAAM,CAAC,OAAO,QAAQ,QAAI,uBAAS,CAAC,CAAC;AAErC,8BAAU,MAAM;AACd,UAAM,eAAW,kCAAe,OAAO;AACvC,UAAM,mBAAe,oCAAkB,UAAU,SAAS,CAAC,CAAC;AAC5D,aAAS,YAAY;AAAA,EAEvB,GAAG,CAAC,MAAM,CAAC;AAEX,SAAO;AAAA,IACL,OAAO,+BAAO;AAAA,MACZ,CAAC,SAAqE;AA/B5E;AAgCQ,gBAAO,6BAAM,YACX,6CAAC,qCACC;AAAA,sDAAC,4CAAoB,SAAO,MAC1B;AAAA,YAAC,YAAAC;AAAA,YAAA;AAAA,cAEC,MAAM,6BAAM;AAAA,cACZ,eAAW;AAAA,gBACT;AAAA,gBACA,cAAa,6BAAM,QACf,oBACA;AAAA,cACN;AAAA,cAEC,YAAE,6BAAM,KAAK;AAAA;AAAA,YATT,6BAAM;AAAA,UAUb,GACF;AAAA,UACA,4CAAC,4CAAoB,WAAU,QAC5B,6CAAM,aAAN,mBAAgB,IAAI,CAAC,SAAW;AAjD/C,gBAAAC;AAkDgB,+DAAC,0CACC,sDAAC,YAAAD,SAAA,EAAK,MAAM,IAAGC,MAAA,6BAAM,SAAN,gBAAAA,IAAY,QAAQ,SAAS,UAAU,GAAG,IACvD,sDAAC,yCAAkB,YAAE,6BAAM,KAAK,GAAE,GACpC,KAHsB,6BAAM,KAI9B;AAAA,cAEJ;AAAA,aAvBiB,6BAAM,KAwBzB,IAEA;AAAA,UAAC,YAAAD;AAAA,UAAA;AAAA,YAEC,MAAM,6BAAM;AAAA,YACZ,eAAW;AAAA,cACT;AAAA,cACA,cAAa,6BAAM,QACf,oBACA;AAAA,YACN;AAAA,YAEC,YAAE,6BAAM,KAAK;AAAA;AAAA,UATT,6BAAM;AAAA,QAUb;AAAA,MAEJ;AAAA;AAAA,EAEJ;AACF;","names":["import_build_nav","Link","_a"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-page-nav.d.ts","sourceRoot":"","sources":["../../../components/hooks/use-page-nav.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAE7C,eAAO,MAAM,UAAU,YACZ,OAAO,YACN,MAAM,KACb,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,WACjB,MAAM;;CAyDhB,CAAA"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { createPagesSubNav } from "../dashboard/utils/build-nav";
|
|
3
|
+
import { createKeyIndex } from "../dashboard/utils/build-nav";
|
|
4
|
+
import { cn } from "../../lib/utils";
|
|
5
|
+
import Link from "next/link";
|
|
6
|
+
import { useEffect, useState } from "react";
|
|
7
|
+
import {
|
|
8
|
+
DropdownMenu,
|
|
9
|
+
DropdownMenuContent,
|
|
10
|
+
DropdownMenuGroup,
|
|
11
|
+
DropdownMenuItem,
|
|
12
|
+
DropdownMenuTrigger
|
|
13
|
+
} from "../ui/dropdown-menu";
|
|
14
|
+
const usePageNav = (sitemap, pathname, t, userId) => {
|
|
15
|
+
const [pages, setPages] = useState([]);
|
|
16
|
+
useEffect(() => {
|
|
17
|
+
const keyIndex = createKeyIndex(sitemap);
|
|
18
|
+
const reducedPages = createPagesSubNav(keyIndex, "pages", {});
|
|
19
|
+
setPages(reducedPages);
|
|
20
|
+
}, [userId]);
|
|
21
|
+
return {
|
|
22
|
+
pages: pages == null ? void 0 : pages.map(
|
|
23
|
+
(page) => {
|
|
24
|
+
var _a;
|
|
25
|
+
return (page == null ? void 0 : page.children) ? /* @__PURE__ */ jsxs(DropdownMenu, { children: [
|
|
26
|
+
/* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
27
|
+
Link,
|
|
28
|
+
{
|
|
29
|
+
href: page == null ? void 0 : page.href,
|
|
30
|
+
className: cn(
|
|
31
|
+
"hover:text-foreground/80 transition-colors",
|
|
32
|
+
pathname === (page == null ? void 0 : page.href) ? "text-foreground" : "text-foreground/60"
|
|
33
|
+
),
|
|
34
|
+
children: t(page == null ? void 0 : page.title)
|
|
35
|
+
},
|
|
36
|
+
page == null ? void 0 : page.title
|
|
37
|
+
) }),
|
|
38
|
+
/* @__PURE__ */ jsx(DropdownMenuContent, { className: "w-56", children: (_a = page == null ? void 0 : page.children) == null ? void 0 : _a.map((link) => {
|
|
39
|
+
var _a2;
|
|
40
|
+
return /* @__PURE__ */ jsx(DropdownMenuGroup, { children: /* @__PURE__ */ jsx(Link, { href: `${(_a2 = link == null ? void 0 : link.href) == null ? void 0 : _a2.replace(":user", userId || "")}`, children: /* @__PURE__ */ jsx(DropdownMenuItem, { children: t(link == null ? void 0 : link.title) }) }) }, link == null ? void 0 : link.title);
|
|
41
|
+
}) })
|
|
42
|
+
] }, page == null ? void 0 : page.title) : /* @__PURE__ */ jsx(
|
|
43
|
+
Link,
|
|
44
|
+
{
|
|
45
|
+
href: page == null ? void 0 : page.href,
|
|
46
|
+
className: cn(
|
|
47
|
+
"hover:text-foreground/80 transition-colors",
|
|
48
|
+
pathname === (page == null ? void 0 : page.href) ? "text-foreground" : "text-foreground/60"
|
|
49
|
+
),
|
|
50
|
+
children: t(page == null ? void 0 : page.title)
|
|
51
|
+
},
|
|
52
|
+
page == null ? void 0 : page.title
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
)
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
export {
|
|
59
|
+
usePageNav
|
|
60
|
+
};
|
|
61
|
+
//# sourceMappingURL=use-page-nav.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../components/hooks/use-page-nav.tsx"],"sourcesContent":["import { createPagesSubNav } from '../dashboard/utils/build-nav'\nimport { createKeyIndex } from '../dashboard/utils/build-nav'\nimport { cn } from '../../lib/utils'\nimport Link from 'next/link'\nimport { ReactElement, useEffect, useState } from 'react'\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuTrigger,\n} from '../ui/dropdown-menu'\nimport { Sitemap } from '../../types/sitemap'\n\nexport const usePageNav = (\n sitemap: Sitemap,\n pathname: string,\n t: (key: string) => string,\n userId?: string,\n) => {\n const [pages, setPages] = useState([])\n\n useEffect(() => {\n const keyIndex = createKeyIndex(sitemap)\n const reducedPages = createPagesSubNav(keyIndex, 'pages', {})\n setPages(reducedPages)\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [userId])\n\n return {\n pages: pages?.map(\n (page: { title: string; href: string; children?: ReactElement[] }) => {\n return page?.children ? (\n <DropdownMenu key={page?.title}>\n <DropdownMenuTrigger asChild>\n <Link\n key={page?.title}\n href={page?.href}\n className={cn(\n 'hover:text-foreground/80 transition-colors',\n pathname === page?.href\n ? 'text-foreground'\n : 'text-foreground/60',\n )}\n >\n {t(page?.title)}\n </Link>\n </DropdownMenuTrigger>\n <DropdownMenuContent className=\"w-56\">\n {page?.children?.map((link: any) => (\n <DropdownMenuGroup key={link?.title}>\n <Link href={`${link?.href?.replace(':user', userId || '')}`}>\n <DropdownMenuItem>{t(link?.title)}</DropdownMenuItem>\n </Link>\n </DropdownMenuGroup>\n ))}\n </DropdownMenuContent>\n </DropdownMenu>\n ) : (\n <Link\n key={page?.title}\n href={page?.href}\n className={cn(\n 'hover:text-foreground/80 transition-colors',\n pathname === page?.href\n ? 'text-foreground'\n : 'text-foreground/60',\n )}\n >\n {t(page?.title)}\n </Link>\n )\n },\n ),\n }\n}\n"],"mappings":"AAiCU,SAEI,KAFJ;AAjCV,SAAS,yBAAyB;AAClC,SAAS,sBAAsB;AAC/B,SAAS,UAAU;AACnB,OAAO,UAAU;AACjB,SAAuB,WAAW,gBAAgB;AAClD;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAGA,MAAM,aAAa,CACxB,SACA,UACA,GACA,WACG;AACH,QAAM,CAAC,OAAO,QAAQ,IAAI,SAAS,CAAC,CAAC;AAErC,YAAU,MAAM;AACd,UAAM,WAAW,eAAe,OAAO;AACvC,UAAM,eAAe,kBAAkB,UAAU,SAAS,CAAC,CAAC;AAC5D,aAAS,YAAY;AAAA,EAEvB,GAAG,CAAC,MAAM,CAAC;AAEX,SAAO;AAAA,IACL,OAAO,+BAAO;AAAA,MACZ,CAAC,SAAqE;AA/B5E;AAgCQ,gBAAO,6BAAM,YACX,qBAAC,gBACC;AAAA,8BAAC,uBAAoB,SAAO,MAC1B;AAAA,YAAC;AAAA;AAAA,cAEC,MAAM,6BAAM;AAAA,cACZ,WAAW;AAAA,gBACT;AAAA,gBACA,cAAa,6BAAM,QACf,oBACA;AAAA,cACN;AAAA,cAEC,YAAE,6BAAM,KAAK;AAAA;AAAA,YATT,6BAAM;AAAA,UAUb,GACF;AAAA,UACA,oBAAC,uBAAoB,WAAU,QAC5B,6CAAM,aAAN,mBAAgB,IAAI,CAAC,SAAW;AAjD/C,gBAAAA;AAkDgB,uCAAC,qBACC,8BAAC,QAAK,MAAM,IAAGA,MAAA,6BAAM,SAAN,gBAAAA,IAAY,QAAQ,SAAS,UAAU,GAAG,IACvD,8BAAC,oBAAkB,YAAE,6BAAM,KAAK,GAAE,GACpC,KAHsB,6BAAM,KAI9B;AAAA,cAEJ;AAAA,aAvBiB,6BAAM,KAwBzB,IAEA;AAAA,UAAC;AAAA;AAAA,YAEC,MAAM,6BAAM;AAAA,YACZ,WAAW;AAAA,cACT;AAAA,cACA,cAAa,6BAAM,QACf,oBACA;AAAA,YACN;AAAA,YAEC,YAAE,6BAAM,KAAK;AAAA;AAAA,UATT,6BAAM;AAAA,QAUb;AAAA,MAEJ;AAAA;AAAA,EAEJ;AACF;","names":["_a"]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var use_user_entities_exports = {};
|
|
20
|
+
__export(use_user_entities_exports, {
|
|
21
|
+
useUserEntities: () => useUserEntities
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(use_user_entities_exports);
|
|
24
|
+
const useUserEntities = () => {
|
|
25
|
+
};
|
|
26
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
27
|
+
0 && (module.exports = {
|
|
28
|
+
useUserEntities
|
|
29
|
+
});
|
|
30
|
+
//# sourceMappingURL=use-user-entities.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../components/hooks/use-user-entities.tsx"],"sourcesContent":["export const useUserEntities = () => {}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,kBAAkB,MAAM;AAAC;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-user-entities.d.ts","sourceRoot":"","sources":["../../../components/hooks/use-user-entities.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,YAAW,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../components/hooks/use-user-entities.tsx"],"sourcesContent":["export const useUserEntities = () => {}\n"],"mappings":"AAAO,MAAM,kBAAkB,MAAM;AAAC;","names":[]}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var apple_exports = {};
|
|
20
|
+
__export(apple_exports, {
|
|
21
|
+
AppleIcon: () => AppleIcon
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(apple_exports);
|
|
24
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
|
+
const AppleIcon = () => {
|
|
26
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
27
|
+
"svg",
|
|
28
|
+
{
|
|
29
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
30
|
+
viewBox: "0 0 256 315",
|
|
31
|
+
width: "18",
|
|
32
|
+
height: "18",
|
|
33
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
34
|
+
"path",
|
|
35
|
+
{
|
|
36
|
+
d: "M213.803 167.03c.442 47.58 41.74 63.413 42.197 63.615c-.35 1.116-6.599 22.563-21.757 44.716c-13.104 19.153-26.705 38.235-48.13 38.63c-21.05.388-27.82-12.483-51.888-12.483c-24.061 0-31.582 12.088-51.51 12.871c-20.68.783-36.428-20.71-49.64-39.793c-27-39.033-47.633-110.3-19.928-158.406c13.763-23.89 38.36-39.017 65.056-39.405c20.307-.387 39.475 13.662 51.889 13.662c12.406 0 35.699-16.895 60.186-14.414c10.25.427 39.026 4.14 57.503 31.186c-1.49.923-34.335 20.044-33.978 59.822M174.24 50.199c10.98-13.29 18.369-31.79 16.353-50.199c-15.826.636-34.962 10.546-46.314 23.828c-10.173 11.763-19.082 30.589-16.678 48.633c17.64 1.365 35.66-8.964 46.64-22.262",
|
|
37
|
+
fill: "#cbd5e1"
|
|
38
|
+
}
|
|
39
|
+
)
|
|
40
|
+
}
|
|
41
|
+
);
|
|
42
|
+
};
|
|
43
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
44
|
+
0 && (module.exports = {
|
|
45
|
+
AppleIcon
|
|
46
|
+
});
|
|
47
|
+
//# sourceMappingURL=apple.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../components/icons/apple.tsx"],"sourcesContent":["export const AppleIcon = () => {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 256 315\"\n width=\"18\"\n height=\"18\"\n >\n <path\n d=\"M213.803 167.03c.442 47.58 41.74 63.413 42.197 63.615c-.35 1.116-6.599 22.563-21.757 44.716c-13.104 19.153-26.705 38.235-48.13 38.63c-21.05.388-27.82-12.483-51.888-12.483c-24.061 0-31.582 12.088-51.51 12.871c-20.68.783-36.428-20.71-49.64-39.793c-27-39.033-47.633-110.3-19.928-158.406c13.763-23.89 38.36-39.017 65.056-39.405c20.307-.387 39.475 13.662 51.889 13.662c12.406 0 35.699-16.895 60.186-14.414c10.25.427 39.026 4.14 57.503 31.186c-1.49.923-34.335 20.044-33.978 59.822M174.24 50.199c10.98-13.29 18.369-31.79 16.353-50.199c-15.826.636-34.962 10.546-46.314 23.828c-10.173 11.763-19.082 30.589-16.678 48.633c17.64 1.365 35.66-8.964 46.64-22.262\"\n fill=\"#cbd5e1\"\n />\n </svg>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAQM;AARC,MAAM,YAAY,MAAM;AAC7B,SACE;AAAA,IAAC;AAAA;AAAA,MACC,OAAM;AAAA,MACN,SAAQ;AAAA,MACR,OAAM;AAAA,MACN,QAAO;AAAA,MAEP;AAAA,QAAC;AAAA;AAAA,UACC,GAAE;AAAA,UACF,MAAK;AAAA;AAAA,MACP;AAAA;AAAA,EACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apple.d.ts","sourceRoot":"","sources":["../../../components/icons/apple.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,+CAcrB,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
const AppleIcon = () => {
|
|
3
|
+
return /* @__PURE__ */ jsx(
|
|
4
|
+
"svg",
|
|
5
|
+
{
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
+
viewBox: "0 0 256 315",
|
|
8
|
+
width: "18",
|
|
9
|
+
height: "18",
|
|
10
|
+
children: /* @__PURE__ */ jsx(
|
|
11
|
+
"path",
|
|
12
|
+
{
|
|
13
|
+
d: "M213.803 167.03c.442 47.58 41.74 63.413 42.197 63.615c-.35 1.116-6.599 22.563-21.757 44.716c-13.104 19.153-26.705 38.235-48.13 38.63c-21.05.388-27.82-12.483-51.888-12.483c-24.061 0-31.582 12.088-51.51 12.871c-20.68.783-36.428-20.71-49.64-39.793c-27-39.033-47.633-110.3-19.928-158.406c13.763-23.89 38.36-39.017 65.056-39.405c20.307-.387 39.475 13.662 51.889 13.662c12.406 0 35.699-16.895 60.186-14.414c10.25.427 39.026 4.14 57.503 31.186c-1.49.923-34.335 20.044-33.978 59.822M174.24 50.199c10.98-13.29 18.369-31.79 16.353-50.199c-15.826.636-34.962 10.546-46.314 23.828c-10.173 11.763-19.082 30.589-16.678 48.633c17.64 1.365 35.66-8.964 46.64-22.262",
|
|
14
|
+
fill: "#cbd5e1"
|
|
15
|
+
}
|
|
16
|
+
)
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
AppleIcon
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=apple.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../components/icons/apple.tsx"],"sourcesContent":["export const AppleIcon = () => {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 256 315\"\n width=\"18\"\n height=\"18\"\n >\n <path\n d=\"M213.803 167.03c.442 47.58 41.74 63.413 42.197 63.615c-.35 1.116-6.599 22.563-21.757 44.716c-13.104 19.153-26.705 38.235-48.13 38.63c-21.05.388-27.82-12.483-51.888-12.483c-24.061 0-31.582 12.088-51.51 12.871c-20.68.783-36.428-20.71-49.64-39.793c-27-39.033-47.633-110.3-19.928-158.406c13.763-23.89 38.36-39.017 65.056-39.405c20.307-.387 39.475 13.662 51.889 13.662c12.406 0 35.699-16.895 60.186-14.414c10.25.427 39.026 4.14 57.503 31.186c-1.49.923-34.335 20.044-33.978 59.822M174.24 50.199c10.98-13.29 18.369-31.79 16.353-50.199c-15.826.636-34.962 10.546-46.314 23.828c-10.173 11.763-19.082 30.589-16.678 48.633c17.64 1.365 35.66-8.964 46.64-22.262\"\n fill=\"#cbd5e1\"\n />\n </svg>\n )\n}\n"],"mappings":"AAQM;AARC,MAAM,YAAY,MAAM;AAC7B,SACE;AAAA,IAAC;AAAA;AAAA,MACC,OAAM;AAAA,MACN,SAAQ;AAAA,MACR,OAAM;AAAA,MACN,QAAO;AAAA,MAEP;AAAA,QAAC;AAAA;AAAA,UACC,GAAE;AAAA,UACF,MAAK;AAAA;AAAA,MACP;AAAA;AAAA,EACF;AAEJ;","names":[]}
|