@espressif/dashboard-ui-components 1.9.1 → 1.11.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/CHANGELOG.md +179 -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 +159 -63
- 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 +15 -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.d.ts +1 -1
- 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-ABBHGIFI.js +0 -733
- package/dist/chunk-HIUBSBAP.js +0 -59
- package/dist/chunk-OKB2WTX7.js +0 -363
- package/dist/chunk-P6F6UWV2.js +0 -323
- package/dist/chunk-TRTQSARU.js +0 -31
- package/dist/chunk-VU4CZ76T.js +0 -43
- package/dist/chunk-XFYL5IZU.js +0 -69604
- package/dist/chunk-XW6Z6VO4.js +0 -505
- package/dist/chunk-ZFYUONPY.js +0 -4321
- 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/chunk-HIUBSBAP.js
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { ProgressBar } from './chunk-XFYL5IZU.js';
|
|
2
|
-
import { Card, CardContent } from './chunk-ABBHGIFI.js';
|
|
3
|
-
import { Tooltip2 } from './chunk-ZFYUONPY.js';
|
|
4
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
5
|
-
|
|
6
|
-
function CopyrightCard({
|
|
7
|
-
text,
|
|
8
|
-
logoSrc,
|
|
9
|
-
logoAlt = "Logo",
|
|
10
|
-
href,
|
|
11
|
-
logoOnly = false
|
|
12
|
-
}) {
|
|
13
|
-
const handleClick = () => {
|
|
14
|
-
if (href) {
|
|
15
|
-
window.open(href, "_blank", "noopener,noreferrer");
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
const copyrightText = /* @__PURE__ */ jsx("div", { className: "flex items-center gap-1.5 text-sm text-muted-foreground", children: /* @__PURE__ */ jsx("span", { children: text }) });
|
|
19
|
-
if (logoOnly && logoSrc) {
|
|
20
|
-
return /* @__PURE__ */ jsx(Tooltip2, { content: copyrightText, children: /* @__PURE__ */ jsx(
|
|
21
|
-
"div",
|
|
22
|
-
{
|
|
23
|
-
className: "inline-block cursor-pointer",
|
|
24
|
-
onClick: handleClick,
|
|
25
|
-
children: /* @__PURE__ */ jsx(
|
|
26
|
-
"img",
|
|
27
|
-
{
|
|
28
|
-
src: logoSrc,
|
|
29
|
-
alt: logoAlt,
|
|
30
|
-
className: "h-5 w-5 object-contain"
|
|
31
|
-
}
|
|
32
|
-
)
|
|
33
|
-
}
|
|
34
|
-
) });
|
|
35
|
-
}
|
|
36
|
-
return /* @__PURE__ */ jsx(
|
|
37
|
-
Card,
|
|
38
|
-
{
|
|
39
|
-
className: "border p-2 cursor-pointer hover:bg-accent/50 transition-colors",
|
|
40
|
-
onClick: handleClick,
|
|
41
|
-
children: /* @__PURE__ */ jsxs(CardContent, { className: "flex items-center gap-4 p-0", children: [
|
|
42
|
-
logoSrc && /* @__PURE__ */ jsx(
|
|
43
|
-
"img",
|
|
44
|
-
{
|
|
45
|
-
src: logoSrc,
|
|
46
|
-
alt: logoAlt,
|
|
47
|
-
className: "h-5 w-5 object-contain"
|
|
48
|
-
}
|
|
49
|
-
),
|
|
50
|
-
copyrightText
|
|
51
|
-
] })
|
|
52
|
-
}
|
|
53
|
-
);
|
|
54
|
-
}
|
|
55
|
-
function PageLoader() {
|
|
56
|
-
return /* @__PURE__ */ jsx("div", { className: "flex min-h-screen items-center justify-center bg-background", children: /* @__PURE__ */ jsx("div", { className: "flex flex-col items-center gap-4 w-full max-w-sm", children: /* @__PURE__ */ jsx(ProgressBar, { showFakeProgress: true, className: "w-full" }) }) });
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export { CopyrightCard, PageLoader };
|
package/dist/chunk-OKB2WTX7.js
DELETED
|
@@ -1,363 +0,0 @@
|
|
|
1
|
-
import { cn } from './chunk-VU4CZ76T.js';
|
|
2
|
-
import * as React9 from 'react';
|
|
3
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
4
|
-
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
5
|
-
import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
|
|
6
|
-
import { Slot } from '@radix-ui/react-slot';
|
|
7
|
-
import { cva } from 'class-variance-authority';
|
|
8
|
-
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
9
|
-
import { ChevronRight, MoreHorizontal } from 'lucide-react';
|
|
10
|
-
|
|
11
|
-
function useControlledState(props) {
|
|
12
|
-
const { value, defaultValue, onChange } = props;
|
|
13
|
-
const isControlled = value !== void 0;
|
|
14
|
-
const [internalState, setInternalState] = React9.useState(
|
|
15
|
-
isControlled ? value : defaultValue
|
|
16
|
-
);
|
|
17
|
-
React9.useEffect(() => {
|
|
18
|
-
if (isControlled) setInternalState(value);
|
|
19
|
-
}, [isControlled, value]);
|
|
20
|
-
const setState = React9.useCallback(
|
|
21
|
-
(next, ...args) => {
|
|
22
|
-
if (!isControlled) setInternalState(next);
|
|
23
|
-
onChange?.(next, ...args);
|
|
24
|
-
},
|
|
25
|
-
[isControlled, onChange]
|
|
26
|
-
);
|
|
27
|
-
return [isControlled ? value : internalState, setState];
|
|
28
|
-
}
|
|
29
|
-
function getStrictContext(name) {
|
|
30
|
-
const Context = React9.createContext(void 0);
|
|
31
|
-
const Provider = ({
|
|
32
|
-
value,
|
|
33
|
-
children
|
|
34
|
-
}) => /* @__PURE__ */ jsx(Context.Provider, { value, children });
|
|
35
|
-
const useSafeContext = () => {
|
|
36
|
-
const ctx = React9.useContext(Context);
|
|
37
|
-
if (ctx === void 0) {
|
|
38
|
-
throw new Error(`useContext must be used within ${name ?? "a Provider"}`);
|
|
39
|
-
}
|
|
40
|
-
return ctx;
|
|
41
|
-
};
|
|
42
|
-
return [Provider, useSafeContext];
|
|
43
|
-
}
|
|
44
|
-
var Avatar = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
45
|
-
AvatarPrimitive.Root,
|
|
46
|
-
{
|
|
47
|
-
ref,
|
|
48
|
-
className: cn(
|
|
49
|
-
"relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",
|
|
50
|
-
className
|
|
51
|
-
),
|
|
52
|
-
...props
|
|
53
|
-
}
|
|
54
|
-
));
|
|
55
|
-
Avatar.displayName = AvatarPrimitive.Root.displayName;
|
|
56
|
-
var AvatarImage = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
57
|
-
AvatarPrimitive.Image,
|
|
58
|
-
{
|
|
59
|
-
ref,
|
|
60
|
-
className: cn("aspect-square h-full w-full", className),
|
|
61
|
-
...props
|
|
62
|
-
}
|
|
63
|
-
));
|
|
64
|
-
AvatarImage.displayName = AvatarPrimitive.Image.displayName;
|
|
65
|
-
var AvatarFallback = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
66
|
-
AvatarPrimitive.Fallback,
|
|
67
|
-
{
|
|
68
|
-
ref,
|
|
69
|
-
className: cn(
|
|
70
|
-
"flex h-full w-full items-center justify-center rounded-full bg-muted",
|
|
71
|
-
className
|
|
72
|
-
),
|
|
73
|
-
...props
|
|
74
|
-
}
|
|
75
|
-
));
|
|
76
|
-
AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
|
|
77
|
-
var AvatarBadge = React9.forwardRef(
|
|
78
|
-
({ className, variant = "dot", children, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
79
|
-
"span",
|
|
80
|
-
{
|
|
81
|
-
ref,
|
|
82
|
-
className: cn(
|
|
83
|
-
"pointer-events-none absolute bottom-0 right-0 z-10 box-border rounded-full border-2 border-background shadow-sm",
|
|
84
|
-
variant === "dot" ? "h-2.5 w-2.5" : "flex h-4 w-4 items-center justify-center bg-background text-foreground [&>svg]:h-2.5 [&>svg]:w-2.5",
|
|
85
|
-
className
|
|
86
|
-
),
|
|
87
|
-
...props,
|
|
88
|
-
children
|
|
89
|
-
}
|
|
90
|
-
)
|
|
91
|
-
);
|
|
92
|
-
AvatarBadge.displayName = "AvatarBadge";
|
|
93
|
-
function parseDatasetValue(value) {
|
|
94
|
-
if (value === null) return null;
|
|
95
|
-
if (value === "" || value === "true") return true;
|
|
96
|
-
if (value === "false") return false;
|
|
97
|
-
return value;
|
|
98
|
-
}
|
|
99
|
-
function useDataState(key, forwardedRef, onChange) {
|
|
100
|
-
const localRef = React9.useRef(null);
|
|
101
|
-
React9.useImperativeHandle(forwardedRef, () => localRef.current);
|
|
102
|
-
const getSnapshot = () => {
|
|
103
|
-
const el = localRef.current;
|
|
104
|
-
return el ? parseDatasetValue(el.getAttribute(`data-${key}`)) : null;
|
|
105
|
-
};
|
|
106
|
-
const subscribe = (callback) => {
|
|
107
|
-
const el = localRef.current;
|
|
108
|
-
if (!el) return () => {
|
|
109
|
-
};
|
|
110
|
-
const observer = new MutationObserver((records) => {
|
|
111
|
-
for (const record of records) {
|
|
112
|
-
if (record.attributeName === `data-${key}`) {
|
|
113
|
-
callback();
|
|
114
|
-
break;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
});
|
|
118
|
-
observer.observe(el, {
|
|
119
|
-
attributes: true,
|
|
120
|
-
attributeFilter: [`data-${key}`]
|
|
121
|
-
});
|
|
122
|
-
return () => observer.disconnect();
|
|
123
|
-
};
|
|
124
|
-
const value = React9.useSyncExternalStore(subscribe, getSnapshot);
|
|
125
|
-
React9.useEffect(() => {
|
|
126
|
-
if (onChange) onChange(value);
|
|
127
|
-
}, [value, onChange]);
|
|
128
|
-
return [value, localRef];
|
|
129
|
-
}
|
|
130
|
-
var Collapsible = CollapsiblePrimitive.Root;
|
|
131
|
-
var CollapsibleTrigger2 = CollapsiblePrimitive.CollapsibleTrigger;
|
|
132
|
-
var CollapsibleContent2 = React9.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
133
|
-
CollapsiblePrimitive.CollapsibleContent,
|
|
134
|
-
{
|
|
135
|
-
ref,
|
|
136
|
-
className: "grid data-[state=open]:animate-collapsible-down data-[state=closed]:animate-collapsible-up",
|
|
137
|
-
...props,
|
|
138
|
-
children: /* @__PURE__ */ jsx("div", { className: cn("overflow-hidden", className), children })
|
|
139
|
-
}
|
|
140
|
-
));
|
|
141
|
-
CollapsibleContent2.displayName = "CollapsibleContent";
|
|
142
|
-
var buttonVariants = cva(
|
|
143
|
-
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
144
|
-
{
|
|
145
|
-
variants: {
|
|
146
|
-
variant: {
|
|
147
|
-
default: "shadow",
|
|
148
|
-
outline: "border bg-background shadow-sm",
|
|
149
|
-
ghost: "",
|
|
150
|
-
link: "underline-offset-4 hover:underline"
|
|
151
|
-
},
|
|
152
|
-
size: {
|
|
153
|
-
default: "h-9 px-4 py-2",
|
|
154
|
-
sm: "h-8 rounded-md px-3 text-xs",
|
|
155
|
-
lg: "h-10 rounded-md px-8",
|
|
156
|
-
icon: "h-9 w-9"
|
|
157
|
-
}
|
|
158
|
-
},
|
|
159
|
-
defaultVariants: {
|
|
160
|
-
variant: "default",
|
|
161
|
-
size: "default"
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
);
|
|
165
|
-
var Button = React9.forwardRef(
|
|
166
|
-
({ className, variant, size, asChild = false, ...props }, ref) => {
|
|
167
|
-
const Comp = asChild ? Slot : "button";
|
|
168
|
-
return /* @__PURE__ */ jsx(
|
|
169
|
-
Comp,
|
|
170
|
-
{
|
|
171
|
-
className: cn(buttonVariants({ variant, size, className })),
|
|
172
|
-
ref,
|
|
173
|
-
...props
|
|
174
|
-
}
|
|
175
|
-
);
|
|
176
|
-
}
|
|
177
|
-
);
|
|
178
|
-
Button.displayName = "Button";
|
|
179
|
-
var MOBILE_BREAKPOINT = 768;
|
|
180
|
-
function useIsMobile() {
|
|
181
|
-
const [isMobile, setIsMobile] = React9.useState(void 0);
|
|
182
|
-
React9.useEffect(() => {
|
|
183
|
-
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
|
184
|
-
const onChange = () => {
|
|
185
|
-
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
186
|
-
};
|
|
187
|
-
mql.addEventListener("change", onChange);
|
|
188
|
-
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
189
|
-
return () => mql.removeEventListener("change", onChange);
|
|
190
|
-
}, []);
|
|
191
|
-
return !!isMobile;
|
|
192
|
-
}
|
|
193
|
-
var Separator = React9.forwardRef(
|
|
194
|
-
({
|
|
195
|
-
className,
|
|
196
|
-
orientation = "horizontal",
|
|
197
|
-
decorative = true,
|
|
198
|
-
label,
|
|
199
|
-
stackLabel = false,
|
|
200
|
-
labelClassName,
|
|
201
|
-
...props
|
|
202
|
-
}, ref) => {
|
|
203
|
-
if (!label) {
|
|
204
|
-
return /* @__PURE__ */ jsx(
|
|
205
|
-
SeparatorPrimitive.Root,
|
|
206
|
-
{
|
|
207
|
-
ref,
|
|
208
|
-
decorative,
|
|
209
|
-
orientation,
|
|
210
|
-
className: cn(
|
|
211
|
-
"shrink-0 bg-border",
|
|
212
|
-
orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
|
|
213
|
-
className
|
|
214
|
-
),
|
|
215
|
-
...props
|
|
216
|
-
}
|
|
217
|
-
);
|
|
218
|
-
}
|
|
219
|
-
const isHorizontal = orientation === "horizontal";
|
|
220
|
-
return /* @__PURE__ */ jsxs(
|
|
221
|
-
"div",
|
|
222
|
-
{
|
|
223
|
-
ref,
|
|
224
|
-
role: "separator",
|
|
225
|
-
"aria-orientation": orientation,
|
|
226
|
-
"data-orientation": orientation,
|
|
227
|
-
className: cn(
|
|
228
|
-
"flex items-center gap-3",
|
|
229
|
-
isHorizontal ? "w-full" : "flex-col h-full",
|
|
230
|
-
className
|
|
231
|
-
),
|
|
232
|
-
...props,
|
|
233
|
-
children: [
|
|
234
|
-
/* @__PURE__ */ jsx(
|
|
235
|
-
"div",
|
|
236
|
-
{
|
|
237
|
-
"aria-hidden": "true",
|
|
238
|
-
className: cn(
|
|
239
|
-
"shrink-0 bg-border flex-1",
|
|
240
|
-
isHorizontal ? "h-[1px]" : "w-[1px]"
|
|
241
|
-
)
|
|
242
|
-
}
|
|
243
|
-
),
|
|
244
|
-
/* @__PURE__ */ jsx(
|
|
245
|
-
"span",
|
|
246
|
-
{
|
|
247
|
-
className: cn(
|
|
248
|
-
"text-xs font-medium text-muted-foreground shrink-0 select-none",
|
|
249
|
-
!isHorizontal && stackLabel && "[writing-mode:vertical-lr] [text-orientation:upright]",
|
|
250
|
-
labelClassName
|
|
251
|
-
),
|
|
252
|
-
children: label
|
|
253
|
-
}
|
|
254
|
-
),
|
|
255
|
-
/* @__PURE__ */ jsx(
|
|
256
|
-
"div",
|
|
257
|
-
{
|
|
258
|
-
"aria-hidden": "true",
|
|
259
|
-
className: cn(
|
|
260
|
-
"shrink-0 bg-border flex-1",
|
|
261
|
-
isHorizontal ? "h-[1px]" : "w-[1px]"
|
|
262
|
-
)
|
|
263
|
-
}
|
|
264
|
-
)
|
|
265
|
-
]
|
|
266
|
-
}
|
|
267
|
-
);
|
|
268
|
-
}
|
|
269
|
-
);
|
|
270
|
-
Separator.displayName = "Separator";
|
|
271
|
-
function Skeleton({
|
|
272
|
-
className,
|
|
273
|
-
...props
|
|
274
|
-
}) {
|
|
275
|
-
return /* @__PURE__ */ jsx(
|
|
276
|
-
"div",
|
|
277
|
-
{
|
|
278
|
-
className: cn("animate-pulse rounded-md bg-primary/10", className),
|
|
279
|
-
...props
|
|
280
|
-
}
|
|
281
|
-
);
|
|
282
|
-
}
|
|
283
|
-
var Breadcrumb = React9.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx("nav", { ref, "aria-label": "breadcrumb", ...props }));
|
|
284
|
-
Breadcrumb.displayName = "Breadcrumb";
|
|
285
|
-
var BreadcrumbList = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
286
|
-
"ol",
|
|
287
|
-
{
|
|
288
|
-
ref,
|
|
289
|
-
className: cn(
|
|
290
|
-
"flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",
|
|
291
|
-
className
|
|
292
|
-
),
|
|
293
|
-
...props
|
|
294
|
-
}
|
|
295
|
-
));
|
|
296
|
-
BreadcrumbList.displayName = "BreadcrumbList";
|
|
297
|
-
var BreadcrumbItem = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
298
|
-
"li",
|
|
299
|
-
{
|
|
300
|
-
ref,
|
|
301
|
-
className: cn("inline-flex items-center gap-1.5", className),
|
|
302
|
-
...props
|
|
303
|
-
}
|
|
304
|
-
));
|
|
305
|
-
BreadcrumbItem.displayName = "BreadcrumbItem";
|
|
306
|
-
var BreadcrumbLink = React9.forwardRef(({ asChild, className, ...props }, ref) => {
|
|
307
|
-
const Comp = asChild ? Slot : "a";
|
|
308
|
-
return /* @__PURE__ */ jsx(
|
|
309
|
-
Comp,
|
|
310
|
-
{
|
|
311
|
-
ref,
|
|
312
|
-
className: cn("transition-colors hover:text-foreground", className),
|
|
313
|
-
...props
|
|
314
|
-
}
|
|
315
|
-
);
|
|
316
|
-
});
|
|
317
|
-
BreadcrumbLink.displayName = "BreadcrumbLink";
|
|
318
|
-
var BreadcrumbPage = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
319
|
-
"span",
|
|
320
|
-
{
|
|
321
|
-
ref,
|
|
322
|
-
role: "link",
|
|
323
|
-
"aria-disabled": "true",
|
|
324
|
-
"aria-current": "page",
|
|
325
|
-
className: cn("font-normal text-foreground", className),
|
|
326
|
-
...props
|
|
327
|
-
}
|
|
328
|
-
));
|
|
329
|
-
BreadcrumbPage.displayName = "BreadcrumbPage";
|
|
330
|
-
var BreadcrumbSeparator = ({
|
|
331
|
-
children,
|
|
332
|
-
className,
|
|
333
|
-
...props
|
|
334
|
-
}) => /* @__PURE__ */ jsx(
|
|
335
|
-
"li",
|
|
336
|
-
{
|
|
337
|
-
role: "presentation",
|
|
338
|
-
"aria-hidden": "true",
|
|
339
|
-
className: cn("[&>svg]:w-3.5 [&>svg]:h-3.5", className),
|
|
340
|
-
...props,
|
|
341
|
-
children: children ?? /* @__PURE__ */ jsx(ChevronRight, {})
|
|
342
|
-
}
|
|
343
|
-
);
|
|
344
|
-
BreadcrumbSeparator.displayName = "BreadcrumbSeparator";
|
|
345
|
-
var BreadcrumbEllipsis = ({
|
|
346
|
-
className,
|
|
347
|
-
...props
|
|
348
|
-
}) => /* @__PURE__ */ jsxs(
|
|
349
|
-
"span",
|
|
350
|
-
{
|
|
351
|
-
role: "presentation",
|
|
352
|
-
"aria-hidden": "true",
|
|
353
|
-
className: cn("flex h-9 w-9 items-center justify-center", className),
|
|
354
|
-
...props,
|
|
355
|
-
children: [
|
|
356
|
-
/* @__PURE__ */ jsx(MoreHorizontal, { className: "h-4 w-4" }),
|
|
357
|
-
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "More" })
|
|
358
|
-
]
|
|
359
|
-
}
|
|
360
|
-
);
|
|
361
|
-
BreadcrumbEllipsis.displayName = "BreadcrumbElipssis";
|
|
362
|
-
|
|
363
|
-
export { Avatar, AvatarBadge, AvatarFallback, AvatarImage, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, Separator, Skeleton, buttonVariants, getStrictContext, useControlledState, useDataState, useIsMobile };
|