@msqd/lydia 0.0.0-stage → 0.6.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/LICENSE +373 -0
- package/README.md +151 -2
- package/THIRD_PARTY_NOTICES.md +29 -0
- package/dist/Components/Badges/Badge.d.ts +20 -0
- package/dist/Components/Badges/Badge.js +33 -0
- package/dist/Components/Badges/index.d.ts +1 -0
- package/dist/Components/Badges/index.js +4 -0
- package/dist/Components/Buttons/Button.d.ts +8 -0
- package/dist/Components/Buttons/Button.js +30 -0
- package/dist/Components/Buttons/ButtonGroup.d.ts +13 -0
- package/dist/Components/Buttons/ButtonGroup.js +61 -0
- package/dist/Components/Buttons/index.d.ts +2 -0
- package/dist/Components/Buttons/index.js +6 -0
- package/dist/Components/Cards/Card.d.ts +38 -0
- package/dist/Components/Cards/Card.js +31 -0
- package/dist/Components/Cards/StatCard.d.ts +14 -0
- package/dist/Components/Cards/StatCard.js +27 -0
- package/dist/Components/Cards/index.d.ts +2 -0
- package/dist/Components/Cards/index.js +7 -0
- package/dist/Components/Charts/Components/ThinBarChart.d.ts +35 -0
- package/dist/Components/Charts/Components/ThinBarChart.js +41 -0
- package/dist/Components/Charts/Components/WideBarChart.d.ts +48 -0
- package/dist/Components/Charts/Components/WideBarChart.js +50 -0
- package/dist/Components/Charts/Components/index.d.ts +2 -0
- package/dist/Components/Charts/Components/index.js +6 -0
- package/dist/Components/Charts/Hooks/index.d.ts +2 -0
- package/dist/Components/Charts/Hooks/index.js +7 -0
- package/dist/Components/Charts/Hooks/useChartDimensions.d.ts +24 -0
- package/dist/Components/Charts/Hooks/useChartDimensions.js +42 -0
- package/dist/Components/Charts/Hooks/useThemeColors.d.ts +10 -0
- package/dist/Components/Charts/Hooks/useThemeColors.js +51 -0
- package/dist/Components/Charts/SummaryPerformancesChart.d.ts +7 -0
- package/dist/Components/Charts/SummaryPerformancesChart.js +93 -0
- package/dist/Components/Charts/SummaryRateChart.d.ts +9 -0
- package/dist/Components/Charts/SummaryRateChart.js +81 -0
- package/dist/Components/Charts/TransactionsChart.d.ts +6 -0
- package/dist/Components/Charts/TransactionsChart.js +70 -0
- package/dist/Components/Charts/Utils/ChartBarCalculator.d.ts +48 -0
- package/dist/Components/Charts/Utils/ChartBarCalculator.js +66 -0
- package/dist/Components/Charts/Utils/ChartColors.d.ts +13 -0
- package/dist/Components/Charts/Utils/ChartColors.js +10 -0
- package/dist/Components/Charts/Utils/ChartTooltipFormatter.d.ts +43 -0
- package/dist/Components/Charts/Utils/ChartTooltipFormatter.js +57 -0
- package/dist/Components/Charts/Utils/ReactEChartsCore.d.ts +4 -0
- package/dist/Components/Charts/Utils/ReactEChartsCore.js +5 -0
- package/dist/Components/Charts/Utils/ThemeColor.d.ts +21 -0
- package/dist/Components/Charts/Utils/ThemeColor.js +54 -0
- package/dist/Components/Charts/Utils/TimeFormatter.d.ts +9 -0
- package/dist/Components/Charts/Utils/TimeFormatter.js +25 -0
- package/dist/Components/Charts/Utils/escapeTooltipHtml.d.ts +6 -0
- package/dist/Components/Charts/Utils/escapeTooltipHtml.js +5 -0
- package/dist/Components/Charts/Utils/index.d.ts +5 -0
- package/dist/Components/Charts/Utils/index.js +14 -0
- package/dist/Components/Charts/index.d.ts +6 -0
- package/dist/Components/Charts/index.js +29 -0
- package/dist/Components/Colors/Colors.d.ts +19 -0
- package/dist/Components/Colors/Colors.js +154 -0
- package/dist/Components/Colors/index.d.ts +1 -0
- package/dist/Components/Colors/index.js +4 -0
- package/dist/Components/DataTable/DataTable.d.ts +86 -0
- package/dist/Components/DataTable/DataTable.js +122 -0
- package/dist/Components/DataTable/Paginator.d.ts +41 -0
- package/dist/Components/DataTable/Paginator.js +122 -0
- package/dist/Components/DataTable/ProportionBar.d.ts +48 -0
- package/dist/Components/DataTable/ProportionBar.js +20 -0
- package/dist/Components/DataTable/index.d.ts +3 -0
- package/dist/Components/DataTable/index.js +9 -0
- package/dist/Components/Dialog/Dialog.d.ts +49 -0
- package/dist/Components/Dialog/Dialog.js +83 -0
- package/dist/Components/Dialog/Drawer.d.ts +45 -0
- package/dist/Components/Dialog/Drawer.js +120 -0
- package/dist/Components/Dialog/index.d.ts +3 -0
- package/dist/Components/Dialog/index.js +12 -0
- package/dist/Components/Dialog/modal.types.d.ts +47 -0
- package/dist/Components/Dialog/modal.types.js +8 -0
- package/dist/Components/Facets/FacetCount.d.ts +11 -0
- package/dist/Components/Facets/FacetCount.js +8 -0
- package/dist/Components/Facets/FacetCountsCaption.d.ts +16 -0
- package/dist/Components/Facets/FacetCountsCaption.js +14 -0
- package/dist/Components/Facets/FacetInnerLightButton.d.ts +10 -0
- package/dist/Components/Facets/FacetInnerLightButton.js +17 -0
- package/dist/Components/Facets/FacetLabel.d.ts +13 -0
- package/dist/Components/Facets/FacetLabel.js +15 -0
- package/dist/Components/Facets/FacetList.d.ts +40 -0
- package/dist/Components/Facets/FacetList.js +37 -0
- package/dist/Components/Facets/FacetListCard.d.ts +38 -0
- package/dist/Components/Facets/FacetListCard.js +47 -0
- package/dist/Components/Facets/FacetResetLink.d.ts +13 -0
- package/dist/Components/Facets/FacetResetLink.js +23 -0
- package/dist/Components/Facets/Variants/DateRangeFacet.d.ts +47 -0
- package/dist/Components/Facets/Variants/DateRangeFacet.js +51 -0
- package/dist/Components/Facets/Variants/MultipleChoiceFacet.d.ts +67 -0
- package/dist/Components/Facets/Variants/MultipleChoiceFacet.js +200 -0
- package/dist/Components/Facets/Variants/PerformanceFacet.d.ts +61 -0
- package/dist/Components/Facets/Variants/PerformanceFacet.js +77 -0
- package/dist/Components/Facets/Variants/SingleChoiceFacet.d.ts +56 -0
- package/dist/Components/Facets/Variants/SingleChoiceFacet.js +54 -0
- package/dist/Components/Facets/Variants/index.d.ts +8 -0
- package/dist/Components/Facets/Variants/index.js +10 -0
- package/dist/Components/Facets/Variants/nestedValues.d.ts +33 -0
- package/dist/Components/Facets/Variants/nestedValues.js +87 -0
- package/dist/Components/Facets/index.d.ts +15 -0
- package/dist/Components/Facets/index.js +27 -0
- package/dist/Components/Formatter/BodyNotice.d.ts +9 -0
- package/dist/Components/Formatter/BodyNotice.js +21 -0
- package/dist/Components/Formatter/CodeFormatter.d.ts +47 -0
- package/dist/Components/Formatter/CodeFormatter.js +47 -0
- package/dist/Components/Formatter/HeadersDisplay.d.ts +9 -0
- package/dist/Components/Formatter/HeadersDisplay.js +18 -0
- package/dist/Components/Formatter/JsonTreeView.d.ts +27 -0
- package/dist/Components/Formatter/JsonTreeView.js +145 -0
- package/dist/Components/Formatter/PerformanceMetrics.d.ts +27 -0
- package/dist/Components/Formatter/PerformanceMetrics.js +29 -0
- package/dist/Components/Formatter/SyntaxHighlighter.d.ts +11 -0
- package/dist/Components/Formatter/SyntaxHighlighter.js +16 -0
- package/dist/Components/Formatter/VirtualizedCodeView.d.ts +24 -0
- package/dist/Components/Formatter/VirtualizedCodeView.js +47 -0
- package/dist/Components/Formatter/bodyLimits.d.ts +6 -0
- package/dist/Components/Formatter/bodyLimits.js +6 -0
- package/dist/Components/Formatter/index.d.ts +8 -0
- package/dist/Components/Formatter/index.js +16 -0
- package/dist/Components/Formatter/syntaxTheme.d.ts +8 -0
- package/dist/Components/Formatter/syntaxTheme.js +15 -0
- package/dist/Components/Formatter/useCodeHighlighting.d.ts +15 -0
- package/dist/Components/Formatter/useCodeHighlighting.js +47 -0
- package/dist/Components/Formatter/useVirtualization.d.ts +29 -0
- package/dist/Components/Formatter/useVirtualization.js +18 -0
- package/dist/Components/Inputs/Checkbox/Checkbox.d.ts +6 -0
- package/dist/Components/Inputs/Checkbox/Checkbox.js +75 -0
- package/dist/Components/Inputs/Checkbox/index.d.ts +1 -0
- package/dist/Components/Inputs/Checkbox/index.js +4 -0
- package/dist/Components/Inputs/DateRangeSelector/DateRangeSelector.d.ts +48 -0
- package/dist/Components/Inputs/DateRangeSelector/DateRangeSelector.js +71 -0
- package/dist/Components/Inputs/DateRangeSelector/index.d.ts +1 -0
- package/dist/Components/Inputs/DateRangeSelector/index.js +4 -0
- package/dist/Components/Inputs/Field/Field.d.ts +19 -0
- package/dist/Components/Inputs/Field/Field.js +35 -0
- package/dist/Components/Inputs/Field/index.d.ts +2 -0
- package/dist/Components/Inputs/Field/index.js +7 -0
- package/dist/Components/Inputs/Field/useField.d.ts +33 -0
- package/dist/Components/Inputs/Field/useField.js +36 -0
- package/dist/Components/Inputs/Input/Input.d.ts +85 -0
- package/dist/Components/Inputs/Input/Input.js +146 -0
- package/dist/Components/Inputs/Input/index.d.ts +1 -0
- package/dist/Components/Inputs/Input/index.js +4 -0
- package/dist/Components/Inputs/InputAddon/InputAddon.d.ts +21 -0
- package/dist/Components/Inputs/InputAddon/InputAddon.js +18 -0
- package/dist/Components/Inputs/InputAddon/index.d.ts +1 -0
- package/dist/Components/Inputs/InputAddon/index.js +4 -0
- package/dist/Components/Inputs/InputButton/InputButton.d.ts +21 -0
- package/dist/Components/Inputs/InputButton/InputButton.js +29 -0
- package/dist/Components/Inputs/InputButton/index.d.ts +1 -0
- package/dist/Components/Inputs/InputButton/index.js +4 -0
- package/dist/Components/Inputs/InputIcon/InputIcon.d.ts +20 -0
- package/dist/Components/Inputs/InputIcon/InputIcon.js +16 -0
- package/dist/Components/Inputs/InputIcon/index.d.ts +1 -0
- package/dist/Components/Inputs/InputIcon/index.js +4 -0
- package/dist/Components/Inputs/KeyboardShortcut/KeyboardShortcut.d.ts +12 -0
- package/dist/Components/Inputs/KeyboardShortcut/KeyboardShortcut.js +18 -0
- package/dist/Components/Inputs/KeyboardShortcut/index.d.ts +1 -0
- package/dist/Components/Inputs/KeyboardShortcut/index.js +4 -0
- package/dist/Components/Inputs/Radio/Radio.d.ts +3 -0
- package/dist/Components/Inputs/Radio/Radio.js +59 -0
- package/dist/Components/Inputs/Radio/index.d.ts +1 -0
- package/dist/Components/Inputs/Radio/index.js +4 -0
- package/dist/Components/Inputs/SearchInput/SearchInput.d.ts +9 -0
- package/dist/Components/Inputs/SearchInput/SearchInput.js +48 -0
- package/dist/Components/Inputs/SearchInput/index.d.ts +2 -0
- package/dist/Components/Inputs/SearchInput/index.js +4 -0
- package/dist/Components/Inputs/Sliders/RangeSlider.d.ts +40 -0
- package/dist/Components/Inputs/Sliders/RangeSlider.js +160 -0
- package/dist/Components/Inputs/Sliders/index.d.ts +2 -0
- package/dist/Components/Inputs/Sliders/index.js +4 -0
- package/dist/Components/Inputs/Textarea/Textarea.d.ts +56 -0
- package/dist/Components/Inputs/Textarea/Textarea.js +79 -0
- package/dist/Components/Inputs/Textarea/index.d.ts +1 -0
- package/dist/Components/Inputs/Textarea/index.js +4 -0
- package/dist/Components/Inputs/choiceInput.d.ts +12 -0
- package/dist/Components/Inputs/choiceInput.js +8 -0
- package/dist/Components/Inputs/index.d.ts +11 -0
- package/dist/Components/Inputs/index.js +24 -0
- package/dist/Components/Layouts/DefaultLayout.d.ts +30 -0
- package/dist/Components/Layouts/DefaultLayout.js +25 -0
- package/dist/Components/Layouts/index.d.ts +2 -0
- package/dist/Components/Layouts/index.js +4 -0
- package/dist/Components/NavBar/Assets/defaultAvatar.d.ts +4 -0
- package/dist/Components/NavBar/Assets/defaultAvatar.js +28 -0
- package/dist/Components/NavBar/Assets/index.d.ts +2 -0
- package/dist/Components/NavBar/Assets/index.js +4 -0
- package/dist/Components/NavBar/NavBar.d.ts +58 -0
- package/dist/Components/NavBar/NavBar.js +141 -0
- package/dist/Components/NavBar/index.d.ts +1 -0
- package/dist/Components/NavBar/index.js +5 -0
- package/dist/Components/Tabs/Tabs.d.ts +24 -0
- package/dist/Components/Tabs/Tabs.js +69 -0
- package/dist/Components/Tabs/index.d.ts +2 -0
- package/dist/Components/Tabs/index.js +5 -0
- package/dist/Components/Toast/Toast.d.ts +28 -0
- package/dist/Components/Toast/Toast.js +128 -0
- package/dist/Components/Toast/ToastContainer.d.ts +29 -0
- package/dist/Components/Toast/ToastContainer.js +28 -0
- package/dist/Components/Toast/ToastContext.d.ts +103 -0
- package/dist/Components/Toast/ToastContext.js +124 -0
- package/dist/Components/Toast/index.d.ts +3 -0
- package/dist/Components/Toast/index.js +13 -0
- package/dist/Components/Typography/HeadingLevel.d.ts +28 -0
- package/dist/Components/Typography/HeadingLevel.js +20 -0
- package/dist/Components/Typography/Paragraphs.d.ts +8 -0
- package/dist/Components/Typography/Paragraphs.js +6 -0
- package/dist/Components/Typography/Section.d.ts +8 -0
- package/dist/Components/Typography/Section.js +6 -0
- package/dist/Components/Typography/Titles.d.ts +31 -0
- package/dist/Components/Typography/Titles.js +14 -0
- package/dist/Components/Typography/index.d.ts +4 -0
- package/dist/Components/Typography/index.js +17 -0
- package/dist/Components/Utilities/Foldable.d.ts +42 -0
- package/dist/Components/Utilities/Foldable.js +39 -0
- package/dist/Components/Utilities/index.d.ts +2 -0
- package/dist/Components/Utilities/index.js +6 -0
- package/dist/Components/Utilities/useClickOutside.d.ts +21 -0
- package/dist/Components/Utilities/useClickOutside.js +23 -0
- package/dist/Components/index.d.ts +16 -0
- package/dist/Components/index.js +158 -0
- package/dist/Elements/Http/CacheBadge.d.ts +13 -0
- package/dist/Elements/Http/CacheBadge.js +34 -0
- package/dist/Elements/Http/CacheIndicator.d.ts +17 -0
- package/dist/Elements/Http/CacheIndicator.js +47 -0
- package/dist/Elements/Http/RequestMethodBadge.d.ts +5 -0
- package/dist/Elements/Http/RequestMethodBadge.js +13 -0
- package/dist/Elements/Http/ResponseStatusBadge.d.ts +19 -0
- package/dist/Elements/Http/ResponseStatusBadge.js +20 -0
- package/dist/Elements/Http/index.d.ts +4 -0
- package/dist/Elements/Http/index.js +10 -0
- package/dist/Elements/System/CircuitBreakerStatus.d.ts +11 -0
- package/dist/Elements/System/CircuitBreakerStatus.js +98 -0
- package/dist/Elements/System/EndpointNode.d.ts +10 -0
- package/dist/Elements/System/EndpointNode.js +19 -0
- package/dist/Elements/System/EntrypointNode.d.ts +9 -0
- package/dist/Elements/System/EntrypointNode.js +17 -0
- package/dist/Elements/System/NetworkEdges.d.ts +37 -0
- package/dist/Elements/System/NetworkEdges.js +52 -0
- package/dist/Elements/System/NetworkMap.d.ts +33 -0
- package/dist/Elements/System/NetworkMap.js +121 -0
- package/dist/Elements/System/NetworkNode.d.ts +29 -0
- package/dist/Elements/System/NetworkNode.js +31 -0
- package/dist/Elements/System/ProxyNode.d.ts +8 -0
- package/dist/Elements/System/ProxyNode.js +10 -0
- package/dist/Elements/System/index.d.ts +9 -0
- package/dist/Elements/System/index.js +17 -0
- package/dist/Elements/Tpdex/TpdexBadge.d.ts +26 -0
- package/dist/Elements/Tpdex/TpdexBadge.js +36 -0
- package/dist/Elements/Tpdex/index.d.ts +4 -0
- package/dist/Elements/Tpdex/index.js +8 -0
- package/dist/Elements/Transactions/TransactionFiltersCard.d.ts +41 -0
- package/dist/Elements/Transactions/TransactionFiltersCard.js +121 -0
- package/dist/Elements/Transactions/TransactionsExplorerSidebar.d.ts +37 -0
- package/dist/Elements/Transactions/TransactionsExplorerSidebar.js +154 -0
- package/dist/Elements/Transactions/TransactionsFiltersSidebar.d.ts +22 -0
- package/dist/Elements/Transactions/TransactionsFiltersSidebar.js +39 -0
- package/dist/Elements/Transactions/index.d.ts +13 -0
- package/dist/Elements/Transactions/index.js +9 -0
- package/dist/Elements/index.d.ts +18 -0
- package/dist/Elements/index.js +38 -0
- package/dist/Models/Filters/active.d.ts +12 -0
- package/dist/Models/Filters/active.js +10 -0
- package/dist/Models/Filters/dates.d.ts +8 -0
- package/dist/Models/Filters/dates.js +16 -0
- package/dist/Models/Filters/index.d.ts +4 -0
- package/dist/Models/Filters/index.js +13 -0
- package/dist/Models/Filters/read.d.ts +9 -0
- package/dist/Models/Filters/read.js +22 -0
- package/dist/Models/Filters/types.d.ts +50 -0
- package/dist/Models/Filters/types.js +1 -0
- package/dist/Models/Http/body.d.ts +7 -0
- package/dist/Models/Http/body.js +6 -0
- package/dist/Models/Http/contentDisposition.d.ts +7 -0
- package/dist/Models/Http/contentDisposition.js +51 -0
- package/dist/Models/Http/dataUrl.d.ts +12 -0
- package/dist/Models/Http/dataUrl.js +21 -0
- package/dist/Models/Http/headers.d.ts +18 -0
- package/dist/Models/Http/headers.js +7 -0
- package/dist/Models/Http/index.d.ts +2 -0
- package/dist/Models/Http/index.js +6 -0
- package/dist/Models/Http/percent.d.ts +5 -0
- package/dist/Models/Http/percent.js +17 -0
- package/dist/Models/Http/requestTarget.d.ts +11 -0
- package/dist/Models/Http/requestTarget.js +7 -0
- package/dist/Models/System/index.d.ts +1 -0
- package/dist/Models/System/index.js +7 -0
- package/dist/Models/System/types.d.ts +20 -0
- package/dist/Models/System/types.js +48 -0
- package/dist/Models/Tpdex.d.ts +36 -0
- package/dist/Models/Tpdex.js +38 -0
- package/dist/Models/Transactions/Overview.d.ts +19 -0
- package/dist/Models/Transactions/Overview.js +1 -0
- package/dist/Models/Transactions/encoding.d.ts +49 -0
- package/dist/Models/Transactions/encoding.js +26 -0
- package/dist/Models/Transactions/endpoints.d.ts +15 -0
- package/dist/Models/Transactions/endpoints.js +21 -0
- package/dist/Models/Transactions/facets.d.ts +25 -0
- package/dist/Models/Transactions/facets.js +40 -0
- package/dist/Models/Transactions/filtering.d.ts +20 -0
- package/dist/Models/Transactions/filtering.js +34 -0
- package/dist/Models/Transactions/treeDepth.d.ts +2 -0
- package/dist/Models/Transactions/treeDepth.js +4 -0
- package/dist/Models/Transactions/types.d.ts +58 -0
- package/dist/Models/Transactions/types.js +1 -0
- package/dist/Models/index.d.ts +10 -0
- package/dist/Models/index.js +46 -0
- package/dist/Pages/Alerts/AlertsPage.d.ts +18 -0
- package/dist/Pages/Alerts/AlertsPage.js +104 -0
- package/dist/Pages/Alerts/index.d.ts +1 -0
- package/dist/Pages/Alerts/index.js +4 -0
- package/dist/Pages/Explorer/ExplorerPage.d.ts +6 -0
- package/dist/Pages/Explorer/ExplorerPage.js +55 -0
- package/dist/Pages/Explorer/index.d.ts +1 -0
- package/dist/Pages/Explorer/index.js +4 -0
- package/dist/Pages/Overview/OverviewPage.d.ts +11 -0
- package/dist/Pages/Overview/OverviewPage.js +10 -0
- package/dist/Pages/Overview/Sections/Components/TransactionsHistoryView.d.ts +7 -0
- package/dist/Pages/Overview/Sections/Components/TransactionsHistoryView.js +32 -0
- package/dist/Pages/Overview/Sections/Components/index.d.ts +1 -0
- package/dist/Pages/Overview/Sections/Components/index.js +4 -0
- package/dist/Pages/Overview/Sections/HistorySection.d.ts +18 -0
- package/dist/Pages/Overview/Sections/HistorySection.js +21 -0
- package/dist/Pages/Overview/Sections/SummarySection.d.ts +44 -0
- package/dist/Pages/Overview/Sections/SummarySection.js +127 -0
- package/dist/Pages/Overview/index.d.ts +4 -0
- package/dist/Pages/Overview/index.js +8 -0
- package/dist/Pages/SystemPage/SystemPage.d.ts +8 -0
- package/dist/Pages/SystemPage/SystemPage.js +16 -0
- package/dist/Pages/SystemPage/index.d.ts +1 -0
- package/dist/Pages/SystemPage/index.js +4 -0
- package/dist/Pages/Transactions/Detail/Components/DownloadButton.d.ts +33 -0
- package/dist/Pages/Transactions/Detail/Components/DownloadButton.js +62 -0
- package/dist/Pages/Transactions/Detail/Components/TransactionMessage.d.ts +16 -0
- package/dist/Pages/Transactions/Detail/Components/TransactionMessage.js +44 -0
- package/dist/Pages/Transactions/Detail/Components/TransactionMetadata.d.ts +21 -0
- package/dist/Pages/Transactions/Detail/Components/TransactionMetadata.js +127 -0
- package/dist/Pages/Transactions/Detail/Components/index.d.ts +6 -0
- package/dist/Pages/Transactions/Detail/Components/index.js +8 -0
- package/dist/Pages/Transactions/Detail/TransactionsDetailPage.d.ts +8 -0
- package/dist/Pages/Transactions/Detail/TransactionsDetailPage.js +15 -0
- package/dist/Pages/Transactions/Detail/Utils/BodyPreview.d.ts +15 -0
- package/dist/Pages/Transactions/Detail/Utils/BodyPreview.js +30 -0
- package/dist/Pages/Transactions/Detail/Utils/ContentRenderer.d.ts +28 -0
- package/dist/Pages/Transactions/Detail/Utils/ContentRenderer.js +115 -0
- package/dist/Pages/Transactions/Detail/Utils/index.d.ts +4 -0
- package/dist/Pages/Transactions/Detail/Utils/index.js +9 -0
- package/dist/Pages/Transactions/Detail/index.d.ts +4 -0
- package/dist/Pages/Transactions/Detail/index.js +8 -0
- package/dist/Pages/Transactions/List/TransactionsListPage.d.ts +80 -0
- package/dist/Pages/Transactions/List/TransactionsListPage.js +220 -0
- package/dist/Pages/Transactions/List/index.d.ts +4 -0
- package/dist/Pages/Transactions/List/index.js +6 -0
- package/dist/Pages/Transactions/List/useClientSideTransactions.d.ts +38 -0
- package/dist/Pages/Transactions/List/useClientSideTransactions.js +32 -0
- package/dist/Pages/Transactions/index.d.ts +4 -0
- package/dist/Pages/Transactions/index.js +6 -0
- package/dist/Pages/index.d.ts +5 -0
- package/dist/Pages/index.js +18 -0
- package/dist/Settings.d.ts +13 -0
- package/dist/Settings.js +16 -0
- package/dist/css/Components/Formatter/prism.css +79 -0
- package/dist/css/Components/Inputs/Input/Input.css +73 -0
- package/dist/css/Components/Inputs/Sliders/RangeSliderStyles.css +92 -0
- package/dist/css/components.css +6 -0
- package/dist/css/fonts/Lato-Bold.woff2 +0 -0
- package/dist/css/fonts/Lato-BoldItalic.woff2 +0 -0
- package/dist/css/fonts/Lato-Italic.woff2 +0 -0
- package/dist/css/fonts/Lato-Regular.woff2 +0 -0
- package/dist/css/fonts/OFL.txt +93 -0
- package/dist/css/theme.css +109 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +250 -0
- package/dist/logo.svg +1 -0
- package/dist/styles/styles.css +1 -0
- package/package.json +367 -3
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { jsxs as p, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { useState as E } from "react";
|
|
3
|
+
import { twMerge as o } from "tailwind-merge";
|
|
4
|
+
const F = ({ thumbSize: t, className: e, children: a, ...l }) => /* @__PURE__ */ s(
|
|
5
|
+
"div",
|
|
6
|
+
{
|
|
7
|
+
className: o("range-slider relative flex items-center", e),
|
|
8
|
+
style: {
|
|
9
|
+
height: `calc(${t} + 1.6rem)`
|
|
10
|
+
},
|
|
11
|
+
...l,
|
|
12
|
+
children: a
|
|
13
|
+
}
|
|
14
|
+
), G = ({ thumbSize: t, className: e, children: a, ...l }) => /* @__PURE__ */ s(
|
|
15
|
+
"div",
|
|
16
|
+
{
|
|
17
|
+
className: o("relative w-full", e),
|
|
18
|
+
style: {
|
|
19
|
+
height: t
|
|
20
|
+
},
|
|
21
|
+
...l,
|
|
22
|
+
children: a
|
|
23
|
+
}
|
|
24
|
+
), H = ({ thumbSize: t, className: e, children: a, ...l }) => /* @__PURE__ */ s("div", { className: o("w-full absolute", e), style: { height: t }, ...l, children: a }), N = ({ className: t, thumbSize: e = "16px", ...a }) => /* @__PURE__ */ s(
|
|
25
|
+
"input",
|
|
26
|
+
{
|
|
27
|
+
className: o("range-slider-input lydia-input", t),
|
|
28
|
+
style: { "--thumb-size": e },
|
|
29
|
+
type: "range",
|
|
30
|
+
...a
|
|
31
|
+
}
|
|
32
|
+
), J = ({ className: t, children: e, ...a }) => /* @__PURE__ */ s(
|
|
33
|
+
"div",
|
|
34
|
+
{
|
|
35
|
+
className: o("absolute w-full top-1/2 -translate-y-1/2 h-[6px] rounded-[3px] bg-gray-200", t),
|
|
36
|
+
...a,
|
|
37
|
+
children: e
|
|
38
|
+
}
|
|
39
|
+
), K = ({ className: t, ...e }) => /* @__PURE__ */ s("div", { className: o("absolute h-full left-0 top-0 bg-primary-200 opacity-50", t), ...e }), $ = ({ thumbSize: t, thumb: e, className: a, style: l, ...c }) => /* @__PURE__ */ s(
|
|
40
|
+
"div",
|
|
41
|
+
{
|
|
42
|
+
"data-thumb": e,
|
|
43
|
+
className: o(
|
|
44
|
+
"absolute rounded-full bg-primary-900 top-1/2 -translate-x-1/2 -translate-y-1/2 ring-1 ring-white cursor-grab",
|
|
45
|
+
"z-[2]",
|
|
46
|
+
a
|
|
47
|
+
),
|
|
48
|
+
style: {
|
|
49
|
+
width: t,
|
|
50
|
+
height: t,
|
|
51
|
+
transition: "transform 0.15s ease, box-shadow 0.15s ease, ring 0.15s ease",
|
|
52
|
+
...l
|
|
53
|
+
},
|
|
54
|
+
...c
|
|
55
|
+
}
|
|
56
|
+
), O = ({ markClassName: t, className: e, ...a }) => /* @__PURE__ */ s(
|
|
57
|
+
"div",
|
|
58
|
+
{
|
|
59
|
+
className: o(
|
|
60
|
+
"bg-gray-200 absolute top-1/2 -translate-x-1/2 -translate-y-1/2 w-[6px] h-[6px] rounded-full ring-1 ring-white",
|
|
61
|
+
t,
|
|
62
|
+
e
|
|
63
|
+
),
|
|
64
|
+
...a
|
|
65
|
+
}
|
|
66
|
+
), Q = ({ className: t, children: e, ...a }) => /* @__PURE__ */ s(
|
|
67
|
+
"div",
|
|
68
|
+
{
|
|
69
|
+
className: o(
|
|
70
|
+
"absolute top-full -translate-x-1/2 mt-[8px] text-[10px] font-medium whitespace-nowrap select-none",
|
|
71
|
+
t
|
|
72
|
+
),
|
|
73
|
+
...a,
|
|
74
|
+
children: e
|
|
75
|
+
}
|
|
76
|
+
), C = (t, e) => {
|
|
77
|
+
const [a, l] = E(t !== void 0 ? t : e);
|
|
78
|
+
return [a, l];
|
|
79
|
+
}, Z = ({
|
|
80
|
+
min: t = 0,
|
|
81
|
+
max: e = 10,
|
|
82
|
+
defaultValue: a = void 0,
|
|
83
|
+
value: l,
|
|
84
|
+
step: c = 1,
|
|
85
|
+
onChange: d,
|
|
86
|
+
onPointerUp: g,
|
|
87
|
+
thumbSize: r = "16px",
|
|
88
|
+
marks: P,
|
|
89
|
+
label: h,
|
|
90
|
+
className: U,
|
|
91
|
+
...V
|
|
92
|
+
}) => {
|
|
93
|
+
const [R, W] = C(a?.min, t), [D, I] = C(a?.max, e), v = (n) => Math.min(Math.max(n, t), e), u = v(l?.min ?? R), m = v(l?.max ?? D), y = l !== void 0, M = (n) => {
|
|
94
|
+
n.preventDefault(), g && g({ min: u, max: m });
|
|
95
|
+
}, j = (n) => {
|
|
96
|
+
n.preventDefault();
|
|
97
|
+
const i = Math.min(Number(n.target.value), m - c);
|
|
98
|
+
y || W(i), d && d({ min: i, max: m });
|
|
99
|
+
}, L = (n) => {
|
|
100
|
+
n.preventDefault();
|
|
101
|
+
const i = Math.max(Number(n.target.value), u + c);
|
|
102
|
+
y || I(i), d && d({ min: u, max: i });
|
|
103
|
+
}, f = Math.max(0, Math.min(100, (u - t) / (e - t) * 100)), b = Math.max(0, Math.min(100, (m - t) / (e - t) * 100));
|
|
104
|
+
return /* @__PURE__ */ p(F, { thumbSize: r, className: U, ...V, children: [
|
|
105
|
+
/* @__PURE__ */ p(G, { thumbSize: r, children: [
|
|
106
|
+
/* @__PURE__ */ s(
|
|
107
|
+
N,
|
|
108
|
+
{
|
|
109
|
+
"aria-label": h ? `${h}, minimum` : "Minimum",
|
|
110
|
+
value: u,
|
|
111
|
+
min: t,
|
|
112
|
+
max: e,
|
|
113
|
+
step: c,
|
|
114
|
+
onChange: j,
|
|
115
|
+
onPointerUp: M,
|
|
116
|
+
thumbSize: r
|
|
117
|
+
}
|
|
118
|
+
),
|
|
119
|
+
/* @__PURE__ */ s(
|
|
120
|
+
N,
|
|
121
|
+
{
|
|
122
|
+
"aria-label": h ? `${h}, maximum` : "Maximum",
|
|
123
|
+
value: m,
|
|
124
|
+
min: t,
|
|
125
|
+
max: e,
|
|
126
|
+
step: c,
|
|
127
|
+
onChange: L,
|
|
128
|
+
onPointerUp: M,
|
|
129
|
+
thumbSize: r
|
|
130
|
+
}
|
|
131
|
+
)
|
|
132
|
+
] }),
|
|
133
|
+
/* @__PURE__ */ p(H, { thumbSize: r, children: [
|
|
134
|
+
/* @__PURE__ */ p(J, { children: [
|
|
135
|
+
/* @__PURE__ */ s(
|
|
136
|
+
K,
|
|
137
|
+
{
|
|
138
|
+
style: {
|
|
139
|
+
left: `${f}%`,
|
|
140
|
+
width: `${b - f}%`,
|
|
141
|
+
transition: "left 0.02s ease-out, width 0.02s ease-out"
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
),
|
|
145
|
+
P?.map((n, i) => {
|
|
146
|
+
const x = typeof n == "number" ? n : n.value, w = typeof n == "number" ? null : n.label, q = typeof n == "number" ? void 0 : n.className, A = (x - t) / (e - t) * 100, B = x >= u && x <= m;
|
|
147
|
+
return /* @__PURE__ */ p("div", { style: { position: "absolute", left: `${A}%`, top: "50%" }, children: [
|
|
148
|
+
/* @__PURE__ */ s(O, { markClassName: q, className: B ? "bg-primary-200" : void 0 }),
|
|
149
|
+
w && /* @__PURE__ */ s(Q, { children: w })
|
|
150
|
+
] }, i);
|
|
151
|
+
})
|
|
152
|
+
] }),
|
|
153
|
+
/* @__PURE__ */ s($, { thumb: "min", thumbSize: r, style: { left: `${f}%`, transition: "left 0.02s ease-out" } }),
|
|
154
|
+
/* @__PURE__ */ s($, { thumb: "max", thumbSize: r, style: { left: `${b}%`, transition: "left 0.02s ease-out" } })
|
|
155
|
+
] })
|
|
156
|
+
] });
|
|
157
|
+
};
|
|
158
|
+
export {
|
|
159
|
+
Z as RangeSlider
|
|
160
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { type ComponentProps, type ReactNode } from "react";
|
|
2
|
+
export interface TextareaProps extends ComponentProps<"textarea"> {
|
|
3
|
+
/**
|
|
4
|
+
* The label for the textarea field
|
|
5
|
+
*/
|
|
6
|
+
label?: ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Help text to display below the textarea
|
|
9
|
+
*/
|
|
10
|
+
helpText?: ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* ID for the help text element for accessibility
|
|
13
|
+
*/
|
|
14
|
+
helpTextId?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Error message to display below the textarea when in error state
|
|
17
|
+
*/
|
|
18
|
+
errorMessage?: ReactNode;
|
|
19
|
+
/**
|
|
20
|
+
* ID for the error message element for accessibility
|
|
21
|
+
*/
|
|
22
|
+
errorId?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Corner hint text to display in the top right
|
|
25
|
+
*/
|
|
26
|
+
cornerHint?: ReactNode;
|
|
27
|
+
/**
|
|
28
|
+
* ID for the corner hint element for accessibility
|
|
29
|
+
*/
|
|
30
|
+
cornerHintId?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Additional CSS classes for the textarea wrapper
|
|
33
|
+
*/
|
|
34
|
+
wrapperClassName?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Additional CSS classes for the label
|
|
37
|
+
*/
|
|
38
|
+
labelClassName?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Additional CSS classes for the textarea element
|
|
41
|
+
*/
|
|
42
|
+
textareaClassName?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Optional visual variant for the textarea
|
|
45
|
+
*/
|
|
46
|
+
variant?: "default" | "error" | "success";
|
|
47
|
+
/**
|
|
48
|
+
* Whether the container should be hidden
|
|
49
|
+
*/
|
|
50
|
+
hideContainer?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Whether this input has an error (for use inside Input.Group or other custom setups)
|
|
53
|
+
*/
|
|
54
|
+
isError?: boolean;
|
|
55
|
+
}
|
|
56
|
+
export declare const Textarea: import("react").ForwardRefExoticComponent<Omit<TextareaProps, "ref"> & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as T } from "react";
|
|
3
|
+
import { twMerge as a } from "tailwind-merge";
|
|
4
|
+
import { useField as q } from "../Field/useField.js";
|
|
5
|
+
import { fieldWrapperClassName as F, Field as j } from "../Field/Field.js";
|
|
6
|
+
const C = "w-full border-0 px-1.5 py-1.5 text-gray-900 text-left placeholder:text-gray-400 focus:outline-none sm:text-sm/6", E = T(
|
|
7
|
+
({
|
|
8
|
+
label: f,
|
|
9
|
+
helpText: o,
|
|
10
|
+
helpTextId: m,
|
|
11
|
+
errorMessage: l,
|
|
12
|
+
errorId: u,
|
|
13
|
+
cornerHint: d,
|
|
14
|
+
cornerHintId: x,
|
|
15
|
+
className: i,
|
|
16
|
+
wrapperClassName: p,
|
|
17
|
+
labelClassName: h,
|
|
18
|
+
textareaClassName: w,
|
|
19
|
+
variant: y = "default",
|
|
20
|
+
hideContainer: s = !1,
|
|
21
|
+
isError: N = !1,
|
|
22
|
+
id: b,
|
|
23
|
+
"aria-describedby": g,
|
|
24
|
+
...t
|
|
25
|
+
}, I) => {
|
|
26
|
+
const n = y === "error" || N, { ids: e, controlProps: v } = q({
|
|
27
|
+
id: b,
|
|
28
|
+
helpTextId: m,
|
|
29
|
+
errorId: u,
|
|
30
|
+
cornerHintId: x,
|
|
31
|
+
helpText: o,
|
|
32
|
+
errorMessage: l,
|
|
33
|
+
cornerHint: d,
|
|
34
|
+
invalid: n,
|
|
35
|
+
describedBy: g,
|
|
36
|
+
framed: !s
|
|
37
|
+
}), c = /* @__PURE__ */ r(
|
|
38
|
+
"div",
|
|
39
|
+
{
|
|
40
|
+
className: a(
|
|
41
|
+
F,
|
|
42
|
+
n && "outline-danger-500 focus-within:outline-danger-500",
|
|
43
|
+
t.disabled && "opacity-50 cursor-not-allowed",
|
|
44
|
+
p
|
|
45
|
+
),
|
|
46
|
+
children: /* @__PURE__ */ r(
|
|
47
|
+
"textarea",
|
|
48
|
+
{
|
|
49
|
+
className: a(C, w),
|
|
50
|
+
ref: I,
|
|
51
|
+
...v,
|
|
52
|
+
...t
|
|
53
|
+
}
|
|
54
|
+
)
|
|
55
|
+
}
|
|
56
|
+
);
|
|
57
|
+
return s ? /* @__PURE__ */ r("div", { className: a("w-full", i), children: c }) : /* @__PURE__ */ r(
|
|
58
|
+
j,
|
|
59
|
+
{
|
|
60
|
+
controlId: e.control,
|
|
61
|
+
helpTextId: e.help,
|
|
62
|
+
errorId: e.error,
|
|
63
|
+
cornerHintId: e.cornerHint,
|
|
64
|
+
label: f,
|
|
65
|
+
labelClassName: h,
|
|
66
|
+
required: t.required,
|
|
67
|
+
cornerHint: d,
|
|
68
|
+
helpText: o,
|
|
69
|
+
errorMessage: l,
|
|
70
|
+
className: i,
|
|
71
|
+
children: c
|
|
72
|
+
}
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
);
|
|
76
|
+
E.displayName = "Textarea";
|
|
77
|
+
export {
|
|
78
|
+
E as Textarea
|
|
79
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Textarea.js";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ComponentProps, ReactNode } from "react";
|
|
2
|
+
/** Props shared by the controls that pair a native input with a label: `Checkbox` and `Radio`. */
|
|
3
|
+
export interface ChoiceInputProps extends ComponentProps<"input"> {
|
|
4
|
+
name: string;
|
|
5
|
+
label?: string | ReactNode;
|
|
6
|
+
checked?: boolean;
|
|
7
|
+
containerProps?: ComponentProps<"div">;
|
|
8
|
+
labelProps?: ComponentProps<"label">;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}
|
|
11
|
+
/** The id of the input, generated when the consumer passes none. `useId` always runs to keep hook order stable. */
|
|
12
|
+
export declare function useChoiceInputId(id: string | undefined): string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from "./Checkbox/index.js";
|
|
2
|
+
export * from "./Radio/index.js";
|
|
3
|
+
export * from "./Sliders/index.js";
|
|
4
|
+
export * from "./DateRangeSelector/index.js";
|
|
5
|
+
export * from "./Textarea/index.js";
|
|
6
|
+
export * from "./SearchInput/index.js";
|
|
7
|
+
export { Input, type InputProps } from "./Input/index.js";
|
|
8
|
+
export * from "./KeyboardShortcut/index.js";
|
|
9
|
+
export * from "./InputIcon/index.js";
|
|
10
|
+
export * from "./InputButton/index.js";
|
|
11
|
+
export * from "./InputAddon/index.js";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Checkbox as t } from "./Checkbox/Checkbox.js";
|
|
2
|
+
import { DateRangeSelector as p } from "./DateRangeSelector/DateRangeSelector.js";
|
|
3
|
+
import { Input as f } from "./Input/Input.js";
|
|
4
|
+
import { InputAddon as n } from "./InputAddon/InputAddon.js";
|
|
5
|
+
import { InputButton as u } from "./InputButton/InputButton.js";
|
|
6
|
+
import { InputIcon as c } from "./InputIcon/InputIcon.js";
|
|
7
|
+
import { KeyboardShortcut as S } from "./KeyboardShortcut/KeyboardShortcut.js";
|
|
8
|
+
import { Radio as R } from "./Radio/Radio.js";
|
|
9
|
+
import { RangeSlider as g } from "./Sliders/RangeSlider.js";
|
|
10
|
+
import { SearchInput as l } from "./SearchInput/SearchInput.js";
|
|
11
|
+
import { Textarea as y } from "./Textarea/Textarea.js";
|
|
12
|
+
export {
|
|
13
|
+
t as Checkbox,
|
|
14
|
+
p as DateRangeSelector,
|
|
15
|
+
f as Input,
|
|
16
|
+
n as InputAddon,
|
|
17
|
+
u as InputButton,
|
|
18
|
+
c as InputIcon,
|
|
19
|
+
S as KeyboardShortcut,
|
|
20
|
+
R as Radio,
|
|
21
|
+
g as RangeSlider,
|
|
22
|
+
l as SearchInput,
|
|
23
|
+
y as Textarea
|
|
24
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type NavBarProps } from "../NavBar/index.js";
|
|
2
|
+
import { type ReactNode } from "react";
|
|
3
|
+
export interface DefaultLayoutProps {
|
|
4
|
+
/**
|
|
5
|
+
* The content to be rendered inside the layout
|
|
6
|
+
*/
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* Props to be passed to the NavBar component
|
|
10
|
+
*/
|
|
11
|
+
navBarProps?: NavBarProps;
|
|
12
|
+
/**
|
|
13
|
+
* Additional CSS classes for the main content area
|
|
14
|
+
*/
|
|
15
|
+
contentClassName?: string;
|
|
16
|
+
/**
|
|
17
|
+
* The page's title, drawn as its one `h1` in a header band above the
|
|
18
|
+
* content. Without it there is no band, and the page says its own title.
|
|
19
|
+
*/
|
|
20
|
+
title?: ReactNode;
|
|
21
|
+
/**
|
|
22
|
+
* What the page is holding and what acts on it, beside the title. Wraps at
|
|
23
|
+
* narrow widths rather than running off the edge (WCAG 1.4.10).
|
|
24
|
+
*/
|
|
25
|
+
toolbar?: ReactNode;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Default layout with a navbar at the top and a content area
|
|
29
|
+
*/
|
|
30
|
+
export declare function DefaultLayout({ children, navBarProps, contentClassName, title, toolbar, }: DefaultLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsxs as e, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { twMerge as m } from "tailwind-merge";
|
|
4
|
+
import { NavBar as n } from "../NavBar/NavBar.js";
|
|
5
|
+
function f({
|
|
6
|
+
children: i,
|
|
7
|
+
navBarProps: s,
|
|
8
|
+
contentClassName: t = "p-4 sm:p-6 lg:p-8",
|
|
9
|
+
title: l,
|
|
10
|
+
toolbar: a
|
|
11
|
+
}) {
|
|
12
|
+
return /* @__PURE__ */ e("div", { className: "flex flex-col min-h-screen", children: [
|
|
13
|
+
/* @__PURE__ */ r(n, { ...s }),
|
|
14
|
+
/* @__PURE__ */ e("main", { className: m("flex-grow", t), children: [
|
|
15
|
+
l === void 0 ? null : /* @__PURE__ */ e("div", { className: "flex flex-wrap items-baseline gap-3 border-b border-gray-200 bg-white px-4 py-3", children: [
|
|
16
|
+
/* @__PURE__ */ r("h1", { className: "text-base font-semibold", children: l }),
|
|
17
|
+
a === void 0 ? null : /* @__PURE__ */ r("div", { className: "ml-auto flex flex-wrap items-center justify-end gap-3 text-xs text-gray-500", children: a })
|
|
18
|
+
] }),
|
|
19
|
+
i
|
|
20
|
+
] })
|
|
21
|
+
] });
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
f as DefaultLayout
|
|
25
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsxs as e, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
function r({ className: i = "size-8 rounded-full" }) {
|
|
3
|
+
return /* @__PURE__ */ e(
|
|
4
|
+
"svg",
|
|
5
|
+
{
|
|
6
|
+
className: i,
|
|
7
|
+
width: "40",
|
|
8
|
+
height: "40",
|
|
9
|
+
viewBox: "0 0 40 40",
|
|
10
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
11
|
+
"aria-hidden": "true",
|
|
12
|
+
children: [
|
|
13
|
+
/* @__PURE__ */ t("rect", { width: "40", height: "40", rx: "20", fill: "#6366F1" }),
|
|
14
|
+
/* @__PURE__ */ t(
|
|
15
|
+
"path",
|
|
16
|
+
{
|
|
17
|
+
d: "M20 20C23.3137 20 26 17.3137 26 14C26 10.6863 23.3137 8 20 8C16.6863 8 14 10.6863 14 14C14 17.3137 16.6863 20 20 20Z",
|
|
18
|
+
fill: "white"
|
|
19
|
+
}
|
|
20
|
+
),
|
|
21
|
+
/* @__PURE__ */ t("path", { d: "M10 32C10 26.4772 14.4772 22 20 22C25.5228 22 30 26.4772 30 32V33H10V32Z", fill: "white" })
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
r as DefaultAvatar
|
|
28
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { ComponentProps, ComponentType } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Default component for the brand
|
|
4
|
+
*/
|
|
5
|
+
export interface DefaultBrandProps {
|
|
6
|
+
text?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const DefaultBrand: ({ text }: DefaultBrandProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export interface User {
|
|
10
|
+
name: string;
|
|
11
|
+
email: string;
|
|
12
|
+
avatar?: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Component rendering every link of the bar. It must spread its props (`className`, `onClick`,
|
|
16
|
+
* and the attributes the menus inject) on the element it renders.
|
|
17
|
+
*/
|
|
18
|
+
export type LinkComponentType = ComponentType<ComponentProps<"a"> & {
|
|
19
|
+
href: string;
|
|
20
|
+
}>;
|
|
21
|
+
export interface NavigationItem {
|
|
22
|
+
name: string;
|
|
23
|
+
href: string;
|
|
24
|
+
current?: boolean;
|
|
25
|
+
onClick?: React.MouseEventHandler<HTMLAnchorElement>;
|
|
26
|
+
}
|
|
27
|
+
export interface NavBarProps {
|
|
28
|
+
navigation?: NavigationItem[];
|
|
29
|
+
userNavigation?: NavigationItem[];
|
|
30
|
+
/**
|
|
31
|
+
* The signed-in user. Omit it for a signed-out bar: no identity, no avatar and no user menu.
|
|
32
|
+
* The library never invents a user, since a placeholder identity is indistinguishable from a
|
|
33
|
+
* real one to a consumer that has not built authentication yet.
|
|
34
|
+
*/
|
|
35
|
+
user?: User;
|
|
36
|
+
/**
|
|
37
|
+
* Logo to display before the brand. None by default.
|
|
38
|
+
*/
|
|
39
|
+
logo?: React.ReactNode;
|
|
40
|
+
/**
|
|
41
|
+
* Brand to display next to the logo. Can be a string or a ReactNode.
|
|
42
|
+
* By default, shows the text "lydia" through the DefaultBrand component
|
|
43
|
+
*/
|
|
44
|
+
brand?: React.ReactNode;
|
|
45
|
+
/**
|
|
46
|
+
* What the settings control opens. Omit it and no cog is drawn: the bar has no settings of its
|
|
47
|
+
* own to show, and a control that names itself and does nothing is indistinguishable from a
|
|
48
|
+
* working one to whoever reaches for it - the same argument this component already makes about
|
|
49
|
+
* inventing a user.
|
|
50
|
+
*/
|
|
51
|
+
onSettings?: () => void;
|
|
52
|
+
/**
|
|
53
|
+
* Custom Link component used for every navigation and user item.
|
|
54
|
+
* By default, uses standard anchor tags
|
|
55
|
+
*/
|
|
56
|
+
linkComponent?: LinkComponentType;
|
|
57
|
+
}
|
|
58
|
+
export declare function NavBar({ navigation, userNavigation, user, logo, brand, onSettings, linkComponent: LinkComponent, }: NavBarProps): import("react/jsx-runtime").JSX.Element;
|