@espressif/dashboard-ui-components 1.10.0 → 1.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +75 -0
- package/dist/_vendor/@radix-ui/primitive/dist/index.js +9 -0
- package/dist/_vendor/@radix-ui/react-checkbox/dist/index.js +185 -0
- package/dist/_vendor/@radix-ui/react-compose-refs/dist/index.js +28 -0
- package/dist/_vendor/@radix-ui/react-context/dist/index.js +68 -0
- package/dist/_vendor/@radix-ui/react-presence/dist/index.js +127 -0
- package/dist/_vendor/@radix-ui/react-primitive/dist/index.js +42 -0
- package/dist/_vendor/@radix-ui/react-use-controllable-state/dist/index.js +55 -0
- package/dist/_vendor/@radix-ui/react-use-layout-effect/dist/index.js +5 -0
- package/dist/_vendor/@radix-ui/react-use-previous/dist/index.js +17 -0
- package/dist/_vendor/@radix-ui/react-use-size/dist/index.js +39 -0
- package/dist/_vendor/lottie-react/build/index.es.js +537 -0
- package/dist/_vendor/lottie-web/build/player/lottie.js +14149 -0
- package/dist/_virtual/_rolldown/runtime.js +24 -0
- package/dist/assets/illustrations/bulb-cloud-drawing.js +4 -0
- package/dist/assets/illustrations/rm-dashboard-update.js +4 -0
- package/dist/assets/illustrations/rm-data-download.js +4 -0
- package/dist/assets/logos/espressif/espressif-no-text.js +4 -0
- package/dist/assets/logos/espressif/espressif-with-text-dm.js +4 -0
- package/dist/assets/logos/espressif/espressif-with-text.js +4 -0
- package/dist/assets/logos/insights/insights-no-text.js +4 -0
- package/dist/assets/logos/insights/insights-with-text-dm.js +4 -0
- package/dist/assets/logos/insights/insights-with-text.js +4 -0
- package/dist/assets/logos/launchpad/launchpad-no-text-dm.js +4 -0
- package/dist/assets/logos/launchpad/launchpad-no-text.js +4 -0
- package/dist/assets/logos/launchpad/launchpad-with-text-dm.js +4 -0
- package/dist/assets/logos/launchpad/launchpad-with-text.js +4 -0
- package/dist/assets/logos/private-agents/private-agents-no-text.js +4 -0
- package/dist/assets/logos/private-agents/private-agents-with-text-dm.js +4 -0
- package/dist/assets/logos/private-agents/private-agents-with-text.js +4 -0
- package/dist/assets/logos/rainmaker/rainmaker-no-text.js +4 -0
- package/dist/assets/logos/rainmaker/rainmaker-with-text-dm.js +4 -0
- package/dist/assets/logos/rainmaker/rainmaker-with-text.js +4 -0
- package/dist/assets/logos/rainmaker-classic/rainmaker-classic-no-text-dm.js +4 -0
- package/dist/assets/logos/rainmaker-classic/rainmaker-classic-no-text.js +4 -0
- package/dist/assets/logos/rainmaker-classic/rainmaker-classic-with-text-dm.js +4 -0
- package/dist/assets/logos/rainmaker-classic/rainmaker-classic-with-text.js +4 -0
- package/dist/assets/logos/rainmaker-neo/rainmaker-neo-no-text.js +4 -0
- package/dist/assets/logos/rainmaker-neo/rainmaker-neo-with-text-dm.js +4 -0
- package/dist/assets/logos/rainmaker-neo/rainmaker-neo-with-text.js +4 -0
- package/dist/assets/logos/ui-components/ui-components-no-text.js +4 -0
- package/dist/assets/logos/ui-components/ui-components-with-text-dm.js +4 -0
- package/dist/assets/logos/ui-components/ui-components-with-text.js +4 -0
- package/dist/assets/logos/zerocode/zerocode-no-text.js +4 -0
- package/dist/assets/logos/zerocode/zerocode-with-text-dm.js +4 -0
- package/dist/assets/logos/zerocode/zerocode-with-text.js +4 -0
- package/dist/assets/logos/zerocode-ai/zerocode-ai-no-text.js +4 -0
- package/dist/assets/logos/zerocode-ai/zerocode-ai-with-text-dm.js +4 -0
- package/dist/assets/logos/zerocode-ai/zerocode-ai-with-text.js +4 -0
- package/dist/common/animated-rainmaker-logo/animated-rainmaker-logo.constants.js +18 -0
- package/dist/common/animated-rainmaker-logo/animated-rainmaker-logo.js +24 -0
- package/dist/common/animated-rainmaker-logo/rainmaker-c-logo.js +50 -0
- package/dist/common/animated-rainmaker-logo/use-animated-rainmaker-logo-animation.js +85 -0
- package/dist/common/app-logo/app-logo.js +59 -0
- package/dist/common/app-logo/logo-config.js +297 -0
- package/dist/common/copyright-card/copyright-card.js +39 -0
- package/dist/common/footer-card/footer-card.js +22 -0
- package/dist/common/index.js +8 -8
- package/dist/common/my-account-menu/my-account-menu.js +32 -0
- package/dist/common/page-loader/page-loader.js +21 -0
- package/dist/common/profile-card/profile-card.js +26 -0
- package/dist/components/accordion/accordion.js +52 -0
- package/dist/components/advanced-search-box/advanced-search-box.js +106 -0
- package/dist/components/alert/alert.js +85 -0
- package/dist/components/animated-containers/pop-collection-item.js +28 -0
- package/dist/components/async-multi-select/async-multi-select.js +199 -0
- package/dist/components/avatar/avatar.js +41 -0
- package/dist/components/button/button.js +191 -0
- package/dist/components/button/flash-button.js +110 -0
- package/dist/components/button/invert-button.js +13 -0
- package/dist/components/calendar/calendar.js +105 -0
- package/dist/components/cards/animated-card/animated-card-animations.js +57 -0
- package/dist/components/cards/animated-card/animated-card.js +42 -0
- package/dist/components/cards/basic-details-card.js +46 -0
- package/dist/components/cards/collapsible-card.js +48 -0
- package/dist/components/cards/no-data-card/no-data-card.js +30 -0
- package/dist/components/cards/section-card.js +265 -0
- package/dist/components/cards/simple-card.js +24 -0
- package/dist/components/carousel/carousel.js +158 -0
- package/dist/components/chart/area-chart.js +135 -0
- package/dist/components/chart/bar-chart.js +151 -0
- package/dist/components/chart/chart-colors.js +85 -0
- package/dist/components/chart/chart-series-data.js +53 -0
- package/dist/components/chart/chart.js +147 -0
- package/dist/components/chart/chart.types.js +7 -0
- package/dist/components/chart/composed-chart.js +182 -0
- package/dist/components/chart/donut-chart.js +177 -0
- package/dist/components/chart/line-chart.js +137 -0
- package/dist/components/chart/treemap-chart.js +294 -0
- package/dist/components/circular-progress/circular-progress.js +125 -0
- package/dist/components/code-editor/code-editor.js +235 -0
- package/dist/components/code-editor/code-editor.utils.js +122 -0
- package/dist/components/code-editor/use-code-editor-keys.js +79 -0
- package/dist/components/code-editor/use-highlighted-html.js +102 -0
- package/dist/components/confirmation-dialog/confirmation-dialog.js +72 -0
- package/dist/components/content-container/content-container.js +20 -0
- package/dist/components/copiable-text/copiable-text.js +46 -0
- package/dist/components/data-table/data-table.js +186 -0
- package/dist/components/data-table/responsive-columns.js +65 -0
- package/dist/components/data-table/row-actions.js +27 -0
- package/dist/components/data-table/sticky-columns.js +71 -0
- package/dist/components/data-table/table-body.js +57 -0
- package/dist/components/data-table/table-header.js +21 -0
- package/dist/components/date-picker/date-picker.js +95 -0
- package/dist/components/date-range-picker/date-range-picker.js +301 -0
- package/dist/components/date-range-picker/presets.js +174 -0
- package/dist/components/date-time-picker/date-time-picker.js +144 -0
- package/dist/components/date-time-picker/date-time-picker.utils.js +32 -0
- package/dist/components/device-icon/device-icon.config.js +194 -0
- package/dist/components/device-icon/device-icon.js +17 -0
- package/dist/components/device-icon/icons/air-conditioner.js +22 -0
- package/dist/components/device-icon/icons/blind.js +24 -0
- package/dist/components/device-icon/icons/dimmer.js +14 -0
- package/dist/components/device-icon/icons/extension-board.js +42 -0
- package/dist/components/device-icon/icons/fan.js +14 -0
- package/dist/components/device-icon/icons/knob.js +14 -0
- package/dist/components/device-icon/icons/led-strip.js +22 -0
- package/dist/components/device-icon/icons/light.js +14 -0
- package/dist/components/device-icon/icons/refrigerator.js +18 -0
- package/dist/components/device-icon/icons/retro-switch.js +18 -0
- package/dist/components/device-icon/icons/router.js +20 -0
- package/dist/components/device-icon/icons/sensor.js +20 -0
- package/dist/components/device-icon/icons/socket.js +19 -0
- package/dist/components/device-icon/icons/switch.js +19 -0
- package/dist/components/device-icon/icons/thermostat.js +21 -0
- package/dist/components/device-icon/icons/washing-machine.js +22 -0
- package/dist/components/device-icon/match-device.js +61 -0
- package/dist/components/dynamic-list/dynamic-list.js +445 -0
- package/dist/components/error-display/full-size-error/full-size-error.js +20 -0
- package/dist/components/error-display/inline-error/inline-error.js +12 -0
- package/dist/components/file-input/file-input.js +318 -0
- package/dist/components/file-upload/file-upload.js +317 -0
- package/dist/components/filters-bar/filters-bar.js +36 -0
- package/dist/components/fullscreen-dialog/fullscreen-dialog.js +68 -0
- package/dist/components/icon-avatar/icon-avatar.js +130 -0
- package/dist/components/icon-text-action-card/icon-text-action-card.js +190 -0
- package/dist/components/illustration/illustration-registry.js +37 -0
- package/dist/components/illustration/illustration-variants.js +21 -0
- package/dist/components/illustration/illustration.js +68 -0
- package/dist/components/index.d.ts +0 -20
- package/dist/components/index.js +134 -6
- package/dist/components/key-value-manager/key-value-manager-add-popover.js +126 -0
- package/dist/components/key-value-manager/key-value-manager-field.js +47 -0
- package/dist/components/key-value-manager/key-value-manager-table.js +188 -0
- package/dist/components/key-value-manager/key-value-manager.js +111 -0
- package/dist/components/key-value-manager/key-value-manager.props.js +28 -0
- package/dist/components/key-value-manager/key-value-manager.utils.js +21 -0
- package/dist/components/link/link.js +67 -0
- package/dist/components/list/dropdown-list-item.js +60 -0
- package/dist/components/list/list-item.utils.js +76 -0
- package/dist/components/list/list.js +49 -0
- package/dist/components/list/list.props.js +27 -0
- package/dist/components/list/standard-list-item.js +66 -0
- package/dist/components/list-details/list-details-item-button.js +46 -0
- package/dist/components/list-details/list-details-item-dropdown.js +112 -0
- package/dist/components/list-details/list-details-item-strip.js +125 -0
- package/dist/components/list-details/list-details.js +148 -0
- package/dist/components/lottie-animation-container/lottie-animation-container.js +31 -0
- package/dist/components/lottie-animations/animation-data/access-denied.js +3980 -0
- package/dist/components/lottie-animations/animation-data/active.js +825 -0
- package/dist/components/lottie-animations/animation-data/bar-chart.js +610 -0
- package/dist/components/lottie-animations/animation-data/chart-loading.js +5368 -0
- package/dist/components/lottie-animations/animation-data/cloud-download.js +1660 -0
- package/dist/components/lottie-animations/animation-data/cloud-sync.js +932 -0
- package/dist/components/lottie-animations/animation-data/coud-upload.js +7060 -0
- package/dist/components/lottie-animations/animation-data/cross-throb.js +1506 -0
- package/dist/components/lottie-animations/animation-data/dashboard-loading.js +14330 -0
- package/dist/components/lottie-animations/animation-data/error-spread-out.js +5567 -0
- package/dist/components/lottie-animations/animation-data/error.js +1211 -0
- package/dist/components/lottie-animations/animation-data/green-success.js +14826 -0
- package/dist/components/lottie-animations/animation-data/inactive.js +723 -0
- package/dist/components/lottie-animations/animation-data/light.js +2678 -0
- package/dist/components/lottie-animations/animation-data/lock.js +900 -0
- package/dist/components/lottie-animations/animation-data/lock2.js +1686 -0
- package/dist/components/lottie-animations/animation-data/locked.js +641 -0
- package/dist/components/lottie-animations/animation-data/search-error.js +954 -0
- package/dist/components/lottie-animations/animation-data/security.js +4121 -0
- package/dist/components/lottie-animations/animation-data/success.js +404 -0
- package/dist/components/lottie-animations/animation-data/verification-in-progress.js +10138 -0
- package/dist/components/lottie-animations/animation-data/warning.js +843 -0
- package/dist/components/lottie-animations/verification-in-progress/verification-in-progress.js +19 -0
- package/dist/components/markdown-content/markdown-content.components.js +114 -0
- package/dist/components/markdown-content/markdown-content.js +39 -0
- package/dist/components/menu/menu.js +19 -0
- package/dist/components/monospace-content/monospace-content.js +80 -0
- package/dist/components/nav-bar/nav-bar-details-panel.js +51 -0
- package/dist/components/nav-bar/nav-bar-mobile-menu.js +105 -0
- package/dist/components/nav-bar/nav-bar.js +449 -0
- package/dist/components/nav-bar/use-nav-bar-overflow.js +74 -0
- package/dist/components/nav-bar/use-nav-bar-scroll.js +42 -0
- package/dist/components/overflow-badge-list/overflow-badge-list.js +58 -0
- package/dist/components/page-container/page-container-skeleton.js +72 -0
- package/dist/components/page-container/page-container.js +93 -0
- package/dist/components/pagination/pagination.js +96 -0
- package/dist/components/pagination/pagination.props.js +16 -0
- package/dist/components/progress-bar/progress-bar.js +106 -0
- package/dist/components/radio-group/radio-group.js +41 -0
- package/dist/components/requirement-list/requirement-list.js +83 -0
- package/dist/components/scrollable-sections/scrollable-sections.js +270 -0
- package/dist/components/search-box/search-box.js +54 -0
- package/dist/components/search-field-shell.js +24 -0
- package/dist/components/selectable-card-list/checkbox-card-list.js +85 -0
- package/dist/components/selectable-card-list/radio-card-list.js +99 -0
- package/dist/components/selectable-card-list/selectable-card-list-shared.js +135 -0
- package/dist/components/selectable-card-list/selectable-card-list.js +34 -0
- package/dist/components/sidebar/sidebar.js +344 -0
- package/dist/components/sidebar/types.js +6 -0
- package/dist/components/simple-clickable-card/simple-clickable-card-shared.js +309 -0
- package/dist/components/simple-clickable-card/simple-clickable-card.js +106 -0
- package/dist/components/simple-info-card/simple-info-card.js +154 -0
- package/dist/components/simple-list/simple-list.js +146 -0
- package/dist/components/simple-paginated-list/simple-paginated-list.js +178 -0
- package/dist/components/simplified-date/simplified-date.js +56 -0
- package/dist/components/skeletons/table-skeleton.js +16 -0
- package/dist/components/spinner/spinner.js +25 -0
- package/dist/components/stat-card/stat-card.js +206 -0
- package/dist/components/status-badge/status-badge.js +108 -0
- package/dist/components/status-card-list/status-card-list.js +282 -0
- package/dist/components/tag/tag.js +144 -0
- package/dist/components/tag-input/tag-input.js +161 -0
- package/dist/components/text-effects/glitch-effect/glitch-text.js +115 -0
- package/dist/components/text-effects/gradient-text/gradient-text.js +32 -0
- package/dist/components/text-effects/highlight-text/highlight-text.js +35 -0
- package/dist/components/text-effects/parse-text-markup.js +53 -0
- package/dist/components/text-effects/shimmer-text/shimmer-text.js +67 -0
- package/dist/components/time-picker/time-picker.js +23 -0
- package/dist/components/toast/toast.js +126 -0
- package/dist/components/togglable-items-list/togglable-items-list.js +28 -0
- package/dist/components/tooltip/tooltip.js +21 -0
- package/dist/components/transfer-list/transfer-list.js +413 -0
- package/dist/components/truncated-line-with-tooltip/truncated-line-with-tooltip.js +61 -0
- package/dist/components/typography/typography-variants.js +41 -0
- package/dist/components/typography/typography.js +15 -0
- package/dist/components/user-type-badge/user-type-badge.js +40 -0
- package/dist/components/user-type-badge/user-type-badge.registry.js +17 -0
- package/dist/components/vertical-stepper/vertical-stepper.js +171 -0
- package/dist/core/alert.js +33 -0
- package/dist/core/animate-ui/components/animate/code-header.js +30 -0
- package/dist/core/animate-ui/components/animate/code.js +35 -0
- package/dist/core/animate-ui/components/animate/tabs.js +188 -0
- package/dist/core/animate-ui/components/animate/tooltip.js +39 -0
- package/dist/core/animate-ui/components/base/preview-card.js +29 -0
- package/dist/core/animate-ui/components/base/progress.js +32 -0
- package/dist/core/animate-ui/components/base/radio.js +24 -0
- package/dist/core/animate-ui/components/buttons/copy.js +95 -0
- package/dist/core/animate-ui/components/radix/accordion.js +36 -0
- package/dist/core/animate-ui/components/radix/dialog.js +60 -0
- package/dist/core/animate-ui/components/radix/dropdown-menu.js +129 -0
- package/dist/core/animate-ui/components/radix/sheet.js +110 -0
- package/dist/core/animate-ui/components/radix/sidebar.js +416 -0
- package/dist/core/animate-ui/components/radix/switch.js +34 -0
- package/dist/core/animate-ui/components/radix/toggle-group.js +115 -0
- package/dist/core/animate-ui/components/radix/toggle.js +24 -0
- package/dist/core/animate-ui/primitives/animate/code-block.js +131 -0
- package/dist/core/animate-ui/primitives/animate/escape-html.js +7 -0
- package/dist/core/animate-ui/primitives/animate/shiki-highlighter.js +64 -0
- package/dist/core/animate-ui/primitives/animate/slot.js +39 -0
- package/dist/core/animate-ui/primitives/animate/tabs.js +202 -0
- package/dist/core/animate-ui/primitives/animate/tooltip.js +351 -0
- package/dist/core/animate-ui/primitives/base/preview-card.js +107 -0
- package/dist/core/animate-ui/primitives/base/progress.js +60 -0
- package/dist/core/animate-ui/primitives/base/radio.js +83 -0
- package/dist/core/animate-ui/primitives/buttons/button.js +16 -0
- package/dist/core/animate-ui/primitives/effects/highlight.js +407 -0
- package/dist/core/animate-ui/primitives/radix/accordion.js +76 -0
- package/dist/core/animate-ui/primitives/radix/dialog.js +136 -0
- package/dist/core/animate-ui/primitives/radix/dropdown-menu.js +305 -0
- package/dist/core/animate-ui/primitives/radix/sheet.js +165 -0
- package/dist/core/animate-ui/primitives/radix/switch.js +86 -0
- package/dist/core/animate-ui/primitives/radix/toggle-group.js +100 -0
- package/dist/core/animate-ui/primitives/texts/counting-number.js +75 -0
- package/dist/core/avatar.js +32 -0
- package/dist/core/badge.js +27 -0
- package/dist/core/breadcrumb.js +62 -0
- package/dist/core/button/button.js +43 -0
- package/dist/core/button/craft-button.js +78 -0
- package/dist/core/button-group.js +38 -0
- package/dist/core/button.js +40 -0
- package/dist/core/card.js +42 -0
- package/dist/core/carousel/carousel.js +149 -0
- package/dist/core/checkbox/motion-checkbox.js +103 -0
- package/dist/core/collapsible.js +54 -0
- package/dist/core/combobox/combobox.js +85 -0
- package/dist/core/command.js +61 -0
- package/dist/core/field-end-icons.js +36 -0
- package/dist/core/field-label-row.js +33 -0
- package/dist/core/form.js +92 -0
- package/dist/core/hooks/use-controlled-state.js +27 -0
- package/dist/core/hooks/use-data-state.js +39 -0
- package/dist/core/hooks/use-is-in-view.js +18 -0
- package/dist/core/hooks/use-mobile.js +19 -0
- package/dist/core/hooks/use-reveal-on-scroll-up.js +141 -0
- package/dist/core/hooks/use-scroll-overflow.js +50 -0
- package/dist/core/index.js +18 -52
- package/dist/core/input/input-password.js +30 -0
- package/dist/core/input/input.js +147 -0
- package/dist/core/input-otp/input-otp.js +183 -0
- package/dist/core/label.js +15 -0
- package/dist/core/popover.js +31 -0
- package/dist/core/scroll-area.js +42 -0
- package/dist/core/select.js +121 -0
- package/dist/core/separator.js +40 -0
- package/dist/core/skeleton.js +11 -0
- package/dist/core/table.js +59 -0
- package/dist/core/textarea/textarea.js +97 -0
- package/dist/core/utils/get-strict-context.js +18 -0
- package/dist/index.js +148 -9
- package/dist/layouts/entry-layout/entry-layout-bg.js +4 -0
- package/dist/layouts/entry-layout/entry-layout.js +52 -0
- package/dist/layouts/index.js +7 -6
- package/dist/layouts/workspace-layout/account-menu/account-menu.js +108 -0
- package/dist/layouts/workspace-layout/breadcrumbs/derive-breadcrumbs.js +37 -0
- package/dist/layouts/workspace-layout/breadcrumbs/workspace-breadcrumbs.js +22 -0
- package/dist/layouts/workspace-layout/footer/footer.js +15 -0
- package/dist/layouts/workspace-layout/header/header.js +54 -0
- package/dist/layouts/workspace-layout/workspace-layout.js +157 -0
- package/dist/tailwind-preset.js +3 -4
- package/dist/utils/cn.js +8 -0
- package/dist/utils/color.js +72 -0
- package/dist/utils/index.js +3 -2
- package/dist/utils/path-match.js +17 -0
- package/dist/utils/silver-shine.js +63 -0
- package/dist/utils/variant-gradient-underlay.js +45 -0
- package/dist/utils/variant.js +426 -0
- package/package.json +7 -4
- package/dist/chunk-2GDYZAKR.js +0 -505
- package/dist/chunk-ALCWXFUC.js +0 -733
- package/dist/chunk-CDHBLANU.js +0 -59
- package/dist/chunk-LUESSJAF.js +0 -70068
- package/dist/chunk-TMORRNEB.js +0 -323
- package/dist/chunk-TRTQSARU.js +0 -31
- package/dist/chunk-VU4CZ76T.js +0 -43
- package/dist/chunk-XNLCVHBC.js +0 -364
- package/dist/chunk-Z4776NRY.js +0 -4347
- package/src/assets/illustrations/add-to-group.svg +0 -32
- package/src/assets/illustrations/chip.svg +0 -51
- package/src/assets/illustrations/create-new-group.svg +0 -27
- package/src/assets/illustrations/new-ota.svg +0 -61
- package/src/assets/illustrations/secured-key.svg +0 -48
- /package/dist/assets/{entry-layout-bg-JPI7GJ42.webp → entry-layout-bg-DUM0UhT3.webp} +0 -0
package/dist/components/lottie-animations/verification-in-progress/verification-in-progress.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { LottieAnimationContainer } from "../../lottie-animation-container/lottie-animation-container.js";
|
|
2
|
+
import verification_in_progress_default from "../animation-data/verification-in-progress.js";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/lottie-animations/verification-in-progress/verification-in-progress.tsx
|
|
5
|
+
function VerificationInProgress({ title }) {
|
|
6
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
7
|
+
className: "flex flex-col items-center gap-4",
|
|
8
|
+
children: [/* @__PURE__ */ jsx(LottieAnimationContainer, {
|
|
9
|
+
animationData: verification_in_progress_default,
|
|
10
|
+
height: 100,
|
|
11
|
+
width: 100
|
|
12
|
+
}), title != null && title !== "" && /* @__PURE__ */ jsx("p", {
|
|
13
|
+
className: "text-center text-md text-muted-foreground",
|
|
14
|
+
children: title
|
|
15
|
+
})]
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { VerificationInProgress };
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { Separator } from "../../core/separator.js";
|
|
2
|
+
import { Typography } from "../typography/typography.js";
|
|
3
|
+
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "../../core/table.js";
|
|
4
|
+
import { Link } from "../link/link.js";
|
|
5
|
+
import { Code } from "../../core/animate-ui/components/animate/code.js";
|
|
6
|
+
import { isValidElement } from "react";
|
|
7
|
+
import { Fragment as Fragment$1, jsx } from "react/jsx-runtime";
|
|
8
|
+
//#region src/components/markdown-content/markdown-content.components.tsx
|
|
9
|
+
/**
|
|
10
|
+
* Fenced blocks with no language would render as an empty shell, because the library
|
|
11
|
+
* `Code` only draws its body when `lang` is truthy.
|
|
12
|
+
*/
|
|
13
|
+
var FALLBACK_CODE_LANGUAGE = "text";
|
|
14
|
+
var LANGUAGE_CLASS_PATTERN = /language-([\w-]+)/;
|
|
15
|
+
/**
|
|
16
|
+
* Flattens a React subtree back to its text content. Needed because the library `Code`
|
|
17
|
+
* takes the source as a `code` string rather than as children.
|
|
18
|
+
*/
|
|
19
|
+
function toPlainText(node) {
|
|
20
|
+
if (typeof node === "string") return node;
|
|
21
|
+
if (typeof node === "number") return String(node);
|
|
22
|
+
if (Array.isArray(node)) return node.map(toPlainText).join("");
|
|
23
|
+
if (isValidElement(node)) return toPlainText(node.props.children);
|
|
24
|
+
return "";
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* `id` is forwarded on every heading so the `rehype-slug` anchors stay linkable
|
|
28
|
+
* (e.g. `/static/privacy-policy#data-retention`).
|
|
29
|
+
*/
|
|
30
|
+
function createHeading(variant, className) {
|
|
31
|
+
return function MarkdownHeading({ children, id }) {
|
|
32
|
+
return /* @__PURE__ */ jsx(Typography, {
|
|
33
|
+
variant,
|
|
34
|
+
id,
|
|
35
|
+
className,
|
|
36
|
+
children
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Maps markdown elements onto library primitives so rendered documents inherit the same
|
|
42
|
+
* typography, tables and theming as the rest of the app.
|
|
43
|
+
*
|
|
44
|
+
* A plain factory rather than a hook: it takes everything it needs as arguments and holds
|
|
45
|
+
* no state. Internal — not part of the package's public API.
|
|
46
|
+
*/
|
|
47
|
+
function createMarkdownComponents({ linkComponent, colorTheme } = {}) {
|
|
48
|
+
return {
|
|
49
|
+
h1: createHeading("h1", "mt-2"),
|
|
50
|
+
h2: createHeading("h2", "mt-4"),
|
|
51
|
+
h3: createHeading("h3", "mt-3"),
|
|
52
|
+
h4: createHeading("h4", "mt-2"),
|
|
53
|
+
h5: createHeading("h5", "mt-2"),
|
|
54
|
+
h6: createHeading("h6", "mt-2"),
|
|
55
|
+
p: ({ children }) => /* @__PURE__ */ jsx(Typography, {
|
|
56
|
+
variant: "body1",
|
|
57
|
+
children
|
|
58
|
+
}),
|
|
59
|
+
a: ({ children, href }) => {
|
|
60
|
+
if (!href) return /* @__PURE__ */ jsx(Fragment$1, { children });
|
|
61
|
+
return /* @__PURE__ */ jsx(Link, {
|
|
62
|
+
to: href,
|
|
63
|
+
underline: true,
|
|
64
|
+
linkComponent,
|
|
65
|
+
children
|
|
66
|
+
});
|
|
67
|
+
},
|
|
68
|
+
ul: ({ children }) => /* @__PURE__ */ jsx("ul", {
|
|
69
|
+
className: "list-disc space-y-1 pl-6 text-foreground",
|
|
70
|
+
children
|
|
71
|
+
}),
|
|
72
|
+
ol: ({ children }) => /* @__PURE__ */ jsx("ol", {
|
|
73
|
+
className: "list-decimal space-y-1 pl-6 text-foreground",
|
|
74
|
+
children
|
|
75
|
+
}),
|
|
76
|
+
li: ({ children }) => /* @__PURE__ */ jsx("li", {
|
|
77
|
+
className: "text-base leading-relaxed",
|
|
78
|
+
children
|
|
79
|
+
}),
|
|
80
|
+
table: ({ children }) => /* @__PURE__ */ jsx(Table, { children }),
|
|
81
|
+
thead: ({ children }) => /* @__PURE__ */ jsx(TableHeader, { children }),
|
|
82
|
+
tbody: ({ children }) => /* @__PURE__ */ jsx(TableBody, { children }),
|
|
83
|
+
tr: ({ children }) => /* @__PURE__ */ jsx(TableRow, { children }),
|
|
84
|
+
th: ({ children }) => /* @__PURE__ */ jsx(TableHead, { children }),
|
|
85
|
+
td: ({ children }) => /* @__PURE__ */ jsx(TableCell, { children }),
|
|
86
|
+
hr: () => /* @__PURE__ */ jsx(Separator, {}),
|
|
87
|
+
blockquote: ({ children }) => /* @__PURE__ */ jsx("blockquote", {
|
|
88
|
+
className: "border-l-2 border-border pl-4 text-muted-foreground",
|
|
89
|
+
children
|
|
90
|
+
}),
|
|
91
|
+
pre: ({ children }) => {
|
|
92
|
+
const codeElement = isValidElement(children) ? children : null;
|
|
93
|
+
const language = LANGUAGE_CLASS_PATTERN.exec(codeElement?.props.className ?? "")?.[1] ?? FALLBACK_CODE_LANGUAGE;
|
|
94
|
+
return /* @__PURE__ */ jsx(Code, {
|
|
95
|
+
code: toPlainText(codeElement?.props.children ?? children).replace(/\n$/, ""),
|
|
96
|
+
lang: language,
|
|
97
|
+
theme: colorTheme
|
|
98
|
+
});
|
|
99
|
+
},
|
|
100
|
+
code: ({ children }) => /* @__PURE__ */ jsx("code", {
|
|
101
|
+
className: "rounded bg-muted px-1.5 py-0.5 font-mono text-sm",
|
|
102
|
+
children
|
|
103
|
+
}),
|
|
104
|
+
img: ({ src, alt, title }) => /* @__PURE__ */ jsx("img", {
|
|
105
|
+
src: typeof src === "string" ? src : void 0,
|
|
106
|
+
alt: alt ?? "",
|
|
107
|
+
title,
|
|
108
|
+
loading: "lazy",
|
|
109
|
+
className: "max-w-full rounded-md"
|
|
110
|
+
})
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
//#endregion
|
|
114
|
+
export { createMarkdownComponents };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { cn } from "../../utils/cn.js";
|
|
2
|
+
import { createMarkdownComponents } from "./markdown-content.components.js";
|
|
3
|
+
import * as React$1 from "react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import Markdown from "react-markdown";
|
|
6
|
+
import remarkGfm from "remark-gfm";
|
|
7
|
+
import rehypeSlug from "rehype-slug";
|
|
8
|
+
//#region src/components/markdown-content/markdown-content.tsx
|
|
9
|
+
var REMARK_PLUGINS = [remarkGfm];
|
|
10
|
+
var REHYPE_PLUGINS = [rehypeSlug];
|
|
11
|
+
/**
|
|
12
|
+
* Renders markdown using this library's own primitives (`Typography`, `Code`, `Link`,
|
|
13
|
+
* `Table`, `Separator`), so documents inherit the app's typography and theming.
|
|
14
|
+
*
|
|
15
|
+
* GitHub-flavoured markdown (tables, strikethrough, task lists, autolinks) via `remark-gfm`;
|
|
16
|
+
* headings get stable slug `id`s via `rehype-slug`, so `#anchor` links into a document work.
|
|
17
|
+
*
|
|
18
|
+
* `rehype-raw` is deliberately absent: embedded raw HTML is never parsed, so there is no
|
|
19
|
+
* injection surface and no sanitizer to keep in step. Content is expected to be trusted.
|
|
20
|
+
*/
|
|
21
|
+
var MarkdownContent = React$1.forwardRef(function MarkdownContent({ content, linkComponent, colorTheme, className }, ref) {
|
|
22
|
+
const components = React$1.useMemo(() => createMarkdownComponents({
|
|
23
|
+
linkComponent,
|
|
24
|
+
colorTheme
|
|
25
|
+
}), [linkComponent, colorTheme]);
|
|
26
|
+
return /* @__PURE__ */ jsx("div", {
|
|
27
|
+
ref,
|
|
28
|
+
className: cn("flex flex-col gap-4", className),
|
|
29
|
+
children: /* @__PURE__ */ jsx(Markdown, {
|
|
30
|
+
remarkPlugins: REMARK_PLUGINS,
|
|
31
|
+
rehypePlugins: REHYPE_PLUGINS,
|
|
32
|
+
components,
|
|
33
|
+
children: content
|
|
34
|
+
})
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
MarkdownContent.displayName = "MarkdownContent";
|
|
38
|
+
//#endregion
|
|
39
|
+
export { MarkdownContent };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DropdownMenu, DropdownMenuContent, DropdownMenuTrigger } from "../../core/animate-ui/components/radix/dropdown-menu.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/menu/menu.tsx
|
|
5
|
+
function Menu({ children, trigger, align = "end", side = "bottom", sideOffset = 4, minWidth }) {
|
|
6
|
+
return /* @__PURE__ */ jsxs(DropdownMenu, { children: [/* @__PURE__ */ jsx(DropdownMenuTrigger, {
|
|
7
|
+
asChild: true,
|
|
8
|
+
children: trigger
|
|
9
|
+
}), /* @__PURE__ */ jsx(DropdownMenuContent, {
|
|
10
|
+
align,
|
|
11
|
+
side,
|
|
12
|
+
sideOffset,
|
|
13
|
+
className: "",
|
|
14
|
+
style: minWidth ? { minWidth: typeof minWidth === "number" ? `${minWidth}px` : minWidth } : void 0,
|
|
15
|
+
children
|
|
16
|
+
})] });
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { Menu as default };
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { cn } from "../../utils/cn.js";
|
|
2
|
+
import { buttonVariants } from "../../core/animate-ui/components/buttons/copy.js";
|
|
3
|
+
import { inputLabelClassName } from "../../core/field-label-row.js";
|
|
4
|
+
import { Typography } from "../typography/typography.js";
|
|
5
|
+
import { CopiableText } from "../copiable-text/copiable-text.js";
|
|
6
|
+
import { Alert } from "../alert/alert.js";
|
|
7
|
+
import * as React$1 from "react";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { Eye, EyeOff } from "lucide-react";
|
|
10
|
+
//#region src/components/monospace-content/monospace-content.tsx
|
|
11
|
+
/** Action sizes mirror `CopiableText`'s own map, so the unmask toggle matches the copy button. */
|
|
12
|
+
var MONOSPACE_SIZE_STYLES = {
|
|
13
|
+
sm: {
|
|
14
|
+
title: "text-xs",
|
|
15
|
+
value: "text-xs",
|
|
16
|
+
action: "size-5",
|
|
17
|
+
gap: "gap-1.5"
|
|
18
|
+
},
|
|
19
|
+
default: {
|
|
20
|
+
title: "text-sm",
|
|
21
|
+
value: "text-sm",
|
|
22
|
+
action: "size-6",
|
|
23
|
+
gap: "gap-2"
|
|
24
|
+
},
|
|
25
|
+
lg: {
|
|
26
|
+
title: "text-base",
|
|
27
|
+
value: "text-base",
|
|
28
|
+
action: "size-7",
|
|
29
|
+
gap: "gap-2.5"
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
var MonospaceContent = React$1.forwardRef(function MonospaceContent({ title, value, color = "info", mask = false, allowUnmask = true, size = "default", className }, ref) {
|
|
33
|
+
const [revealed, setRevealed] = React$1.useState(false);
|
|
34
|
+
const canUnmask = mask && allowUnmask;
|
|
35
|
+
const masked = mask && !(canUnmask && revealed);
|
|
36
|
+
const sizeStyles = MONOSPACE_SIZE_STYLES[size];
|
|
37
|
+
const unmaskToggle = canUnmask ? /* @__PURE__ */ jsxs("button", {
|
|
38
|
+
type: "button",
|
|
39
|
+
"aria-pressed": !masked,
|
|
40
|
+
onClick: () => setRevealed((prev) => !prev),
|
|
41
|
+
className: cn(buttonVariants({
|
|
42
|
+
variant: "outline",
|
|
43
|
+
size: "sm"
|
|
44
|
+
}), sizeStyles.action),
|
|
45
|
+
children: [masked ? /* @__PURE__ */ jsx(Eye, { "aria-hidden": true }) : /* @__PURE__ */ jsx(EyeOff, { "aria-hidden": true }), /* @__PURE__ */ jsx("span", {
|
|
46
|
+
className: "sr-only",
|
|
47
|
+
children: masked ? "Show value" : "Hide value"
|
|
48
|
+
})]
|
|
49
|
+
}) : void 0;
|
|
50
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
51
|
+
ref,
|
|
52
|
+
className: cn("flex min-w-0 max-w-full flex-col overflow-hidden", sizeStyles.gap, className),
|
|
53
|
+
children: [title != null && (typeof title === "string" ? /* @__PURE__ */ jsx("div", {
|
|
54
|
+
className: cn(inputLabelClassName, sizeStyles.title, "title"),
|
|
55
|
+
children: title
|
|
56
|
+
}) : /* @__PURE__ */ jsx(Typography, {
|
|
57
|
+
variant: "subtitle2",
|
|
58
|
+
as: "div",
|
|
59
|
+
className: cn(inputLabelClassName, sizeStyles.title, "title"),
|
|
60
|
+
children: title
|
|
61
|
+
})), /* @__PURE__ */ jsx(Alert, {
|
|
62
|
+
variant: "soft",
|
|
63
|
+
color,
|
|
64
|
+
type: "info",
|
|
65
|
+
hideIcon: true,
|
|
66
|
+
size,
|
|
67
|
+
className: cn("min-w-0 max-w-full", "content"),
|
|
68
|
+
children: /* @__PURE__ */ jsx(CopiableText, {
|
|
69
|
+
text: value,
|
|
70
|
+
size,
|
|
71
|
+
actions: unmaskToggle,
|
|
72
|
+
alwaysShowActions: mask,
|
|
73
|
+
className: cn("w-full min-w-0 max-w-full font-mono tabular-nums", sizeStyles.value, masked && "select-none [-webkit-text-security:disc]")
|
|
74
|
+
})
|
|
75
|
+
})]
|
|
76
|
+
});
|
|
77
|
+
});
|
|
78
|
+
MonospaceContent.displayName = "MonospaceContent";
|
|
79
|
+
//#endregion
|
|
80
|
+
export { MonospaceContent };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { AnimatePresence, motion } from "motion/react";
|
|
3
|
+
import { createPortal } from "react-dom";
|
|
4
|
+
//#region src/components/nav-bar/nav-bar-details-panel.tsx
|
|
5
|
+
function NavBarDetailsPanel({ item, openDetailsId, onClose, navBottomOffset, navWidth, navLeft }) {
|
|
6
|
+
if (typeof document === "undefined") return null;
|
|
7
|
+
return createPortal(/* @__PURE__ */ jsx(AnimatePresence, { children: openDetailsId && item?.details && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(motion.div, {
|
|
8
|
+
className: "fixed inset-0 z-40 bg-black/20",
|
|
9
|
+
style: { top: navBottomOffset },
|
|
10
|
+
initial: { opacity: 0 },
|
|
11
|
+
animate: { opacity: 1 },
|
|
12
|
+
exit: { opacity: 0 },
|
|
13
|
+
transition: { duration: .15 },
|
|
14
|
+
onClick: onClose,
|
|
15
|
+
"aria-hidden": "true"
|
|
16
|
+
}, `navbar-backdrop-${openDetailsId}`), /* @__PURE__ */ jsx(motion.div, {
|
|
17
|
+
className: "fixed z-50 border-b border-header-border bg-background shadow-lg overflow-hidden",
|
|
18
|
+
style: {
|
|
19
|
+
top: navBottomOffset,
|
|
20
|
+
left: navLeft,
|
|
21
|
+
width: navWidth
|
|
22
|
+
},
|
|
23
|
+
initial: {
|
|
24
|
+
opacity: 0,
|
|
25
|
+
height: 0
|
|
26
|
+
},
|
|
27
|
+
animate: {
|
|
28
|
+
opacity: 1,
|
|
29
|
+
height: "auto"
|
|
30
|
+
},
|
|
31
|
+
exit: {
|
|
32
|
+
opacity: 0,
|
|
33
|
+
height: 0
|
|
34
|
+
},
|
|
35
|
+
transition: {
|
|
36
|
+
duration: .2,
|
|
37
|
+
ease: [
|
|
38
|
+
.25,
|
|
39
|
+
.1,
|
|
40
|
+
.25,
|
|
41
|
+
1
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
45
|
+
className: "mx-auto w-full px-4 lg:px-6 py-6",
|
|
46
|
+
children: item.details
|
|
47
|
+
})
|
|
48
|
+
}, `navbar-panel-${openDetailsId}`)] }) }), document.body);
|
|
49
|
+
}
|
|
50
|
+
//#endregion
|
|
51
|
+
export { NavBarDetailsPanel };
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { cn } from "../../utils/cn.js";
|
|
2
|
+
import { Sheet, SheetContent, SheetHeader, SheetTitle } from "../../core/animate-ui/components/radix/sheet.js";
|
|
3
|
+
import * as React$1 from "react";
|
|
4
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { ChevronDown } from "lucide-react";
|
|
6
|
+
//#region src/components/nav-bar/nav-bar-mobile-menu.tsx
|
|
7
|
+
function NavBarMobileMenu({ items, activeId, onItemClick, open, onOpenChange, linkComponent, title, colorClasses }) {
|
|
8
|
+
const [expandedId, setExpandedId] = React$1.useState(null);
|
|
9
|
+
React$1.useEffect(() => {
|
|
10
|
+
if (!open) setExpandedId(null);
|
|
11
|
+
}, [open]);
|
|
12
|
+
const handleItemClick = (item) => {
|
|
13
|
+
if (item.details) {
|
|
14
|
+
setExpandedId(expandedId === item.id ? null : item.id);
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
onItemClick(item);
|
|
18
|
+
onOpenChange(false);
|
|
19
|
+
};
|
|
20
|
+
return /* @__PURE__ */ jsx(Sheet, {
|
|
21
|
+
open,
|
|
22
|
+
onOpenChange,
|
|
23
|
+
children: /* @__PURE__ */ jsxs(SheetContent, {
|
|
24
|
+
side: "left",
|
|
25
|
+
className: "w-[18rem] p-0",
|
|
26
|
+
showCloseButton: true,
|
|
27
|
+
children: [title && /* @__PURE__ */ jsx(SheetHeader, {
|
|
28
|
+
className: "px-4 pt-4 pb-2",
|
|
29
|
+
children: /* @__PURE__ */ jsx(SheetTitle, { children: title })
|
|
30
|
+
}), /* @__PURE__ */ jsx("nav", {
|
|
31
|
+
className: "flex flex-col py-2",
|
|
32
|
+
"aria-label": "Mobile navigation",
|
|
33
|
+
children: items.map((item) => {
|
|
34
|
+
const isActive = activeId === item.id;
|
|
35
|
+
const isExpanded = expandedId === item.id;
|
|
36
|
+
return /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx(MobileMenuItemTrigger, {
|
|
37
|
+
item,
|
|
38
|
+
isActive,
|
|
39
|
+
isExpanded,
|
|
40
|
+
onClick: () => handleItemClick(item),
|
|
41
|
+
linkComponent,
|
|
42
|
+
colorClasses
|
|
43
|
+
}), item.details && isExpanded && /* @__PURE__ */ jsx("div", {
|
|
44
|
+
className: "px-4 py-3 border-b border-border/50 bg-muted/30 overflow-x-auto text-sm",
|
|
45
|
+
children: item.details
|
|
46
|
+
})] }, item.id);
|
|
47
|
+
})
|
|
48
|
+
})]
|
|
49
|
+
})
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
function MobileMenuItemTrigger({ item, isActive, isExpanded, onClick, linkComponent, colorClasses }) {
|
|
53
|
+
const classes = cn("flex items-center gap-2 min-w-0 w-full px-4 h-11 text-sm font-medium", "text-foreground transition-colors", colorClasses ? colorClasses.hoverBgClass : "hover:bg-foreground/5", isActive && colorClasses && `${colorClasses.textClass} ${colorClasses.bgClass}`, item.disabled && "opacity-50 pointer-events-none");
|
|
54
|
+
const activeStyle = isActive && colorClasses?.textStyle ? {
|
|
55
|
+
...colorClasses.textStyle,
|
|
56
|
+
...colorClasses.bgStyle
|
|
57
|
+
} : void 0;
|
|
58
|
+
const content = /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
59
|
+
item.icon && /* @__PURE__ */ jsx("span", {
|
|
60
|
+
className: "shrink-0",
|
|
61
|
+
children: item.icon
|
|
62
|
+
}),
|
|
63
|
+
/* @__PURE__ */ jsx("span", {
|
|
64
|
+
className: "truncate flex-1 text-left",
|
|
65
|
+
children: item.label
|
|
66
|
+
}),
|
|
67
|
+
item.details && /* @__PURE__ */ jsx(ChevronDown, {
|
|
68
|
+
className: cn("size-4 shrink-0 text-foreground/40 transition-transform duration-200", isExpanded && "rotate-180"),
|
|
69
|
+
"aria-hidden": "true"
|
|
70
|
+
})
|
|
71
|
+
] });
|
|
72
|
+
if (item.details) return /* @__PURE__ */ jsx("button", {
|
|
73
|
+
type: "button",
|
|
74
|
+
className: classes,
|
|
75
|
+
style: activeStyle,
|
|
76
|
+
onClick,
|
|
77
|
+
"aria-expanded": isExpanded,
|
|
78
|
+
disabled: item.disabled,
|
|
79
|
+
children: content
|
|
80
|
+
});
|
|
81
|
+
if (item.href && linkComponent) return /* @__PURE__ */ jsx(linkComponent, {
|
|
82
|
+
to: item.href,
|
|
83
|
+
className: classes,
|
|
84
|
+
style: activeStyle,
|
|
85
|
+
onClick,
|
|
86
|
+
children: content
|
|
87
|
+
});
|
|
88
|
+
if (item.href) return /* @__PURE__ */ jsx("a", {
|
|
89
|
+
href: item.href,
|
|
90
|
+
className: classes,
|
|
91
|
+
style: activeStyle,
|
|
92
|
+
onClick,
|
|
93
|
+
children: content
|
|
94
|
+
});
|
|
95
|
+
return /* @__PURE__ */ jsx("button", {
|
|
96
|
+
type: "button",
|
|
97
|
+
className: classes,
|
|
98
|
+
style: activeStyle,
|
|
99
|
+
onClick,
|
|
100
|
+
disabled: item.disabled,
|
|
101
|
+
children: content
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
//#endregion
|
|
105
|
+
export { NavBarMobileMenu };
|