@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,146 @@
|
|
|
1
|
+
import { jsx as t, jsxs as T } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as V } from "react";
|
|
3
|
+
import { twMerge as d } from "tailwind-merge";
|
|
4
|
+
import { fieldWrapperClassName as q, Field as B } from "../Field/Field.js";
|
|
5
|
+
import { useField as G } from "../Field/useField.js";
|
|
6
|
+
import { InputButton as N } from "../InputButton/InputButton.js";
|
|
7
|
+
import { InputIcon as E } from "../InputIcon/InputIcon.js";
|
|
8
|
+
import { KeyboardShortcut as J } from "../KeyboardShortcut/KeyboardShortcut.js";
|
|
9
|
+
const O = d(q, "items-center h-[38px]"), Q = "lydia-input w-full border-0 px-1.5 text-gray-900 text-left placeholder:text-gray-400 focus:outline-none sm:text-sm/6 h-full flex items-center leading-[38px]", U = V(
|
|
10
|
+
({
|
|
11
|
+
// Basic props
|
|
12
|
+
label: A,
|
|
13
|
+
helpText: c,
|
|
14
|
+
helpTextId: k,
|
|
15
|
+
errorMessage: u,
|
|
16
|
+
errorId: C,
|
|
17
|
+
cornerHint: m,
|
|
18
|
+
cornerHintId: P,
|
|
19
|
+
// Styling props
|
|
20
|
+
className: W,
|
|
21
|
+
wrapperClassName: j,
|
|
22
|
+
labelClassName: L,
|
|
23
|
+
inputClassName: M,
|
|
24
|
+
// State
|
|
25
|
+
variant: p = "default",
|
|
26
|
+
// Icon props
|
|
27
|
+
leadingIcon: f,
|
|
28
|
+
trailingIcon: g,
|
|
29
|
+
// Button props
|
|
30
|
+
leadingButton: x,
|
|
31
|
+
trailingButton: y,
|
|
32
|
+
// Keyboard shortcut
|
|
33
|
+
keyboardShortcut: h,
|
|
34
|
+
// Advanced customization
|
|
35
|
+
leadingElement: z,
|
|
36
|
+
trailingElement: F,
|
|
37
|
+
// Backward compatibility
|
|
38
|
+
hideContainer: l = !1,
|
|
39
|
+
// Input props
|
|
40
|
+
id: $,
|
|
41
|
+
"aria-describedby": D,
|
|
42
|
+
...e
|
|
43
|
+
}, H) => {
|
|
44
|
+
const v = p === "error", K = p === "success", { ids: r, controlProps: R } = G({
|
|
45
|
+
id: $,
|
|
46
|
+
helpTextId: k,
|
|
47
|
+
errorId: C,
|
|
48
|
+
cornerHintId: P,
|
|
49
|
+
helpText: c,
|
|
50
|
+
errorMessage: u,
|
|
51
|
+
cornerHint: m,
|
|
52
|
+
invalid: v,
|
|
53
|
+
describedBy: D,
|
|
54
|
+
framed: !l
|
|
55
|
+
});
|
|
56
|
+
let i = "", n = "";
|
|
57
|
+
v ? (i = "outline-danger-300 focus-within:outline-danger-600", n = "text-danger-900 placeholder:text-danger-300") : K && (i = "outline-success-300 focus-within:outline-success-600", n = "text-success-900 placeholder:text-success-400");
|
|
58
|
+
const s = z || (x ? /* @__PURE__ */ t(N, { position: "leading", ...x }) : null) || (f ? /* @__PURE__ */ t(E, { position: "leading", children: f }) : null), a = F || (y ? /* @__PURE__ */ t(N, { position: "trailing", ...y }) : null) || (h ? /* @__PURE__ */ t(J, { shortcut: h }) : null) || (g ? /* @__PURE__ */ t(E, { position: "trailing", children: g }) : null);
|
|
59
|
+
let w = "", I = "";
|
|
60
|
+
s && (w = "pl-10 sm:pl-9"), a && (I = "pr-10 sm:pr-9");
|
|
61
|
+
let b = "";
|
|
62
|
+
e.type === "date" && (b = `pr-8 ${!e.value || e.value === "" ? "text-gray-400" : "text-gray-900"} placeholder:text-gray-400`);
|
|
63
|
+
const S = () => /* @__PURE__ */ t(
|
|
64
|
+
"div",
|
|
65
|
+
{
|
|
66
|
+
className: `pointer-events-none absolute right-1.5 top-1/2 -translate-y-1/2 ${e.disabled ? "text-gray-300" : "text-gray-400"}`,
|
|
67
|
+
children: /* @__PURE__ */ t(
|
|
68
|
+
"svg",
|
|
69
|
+
{
|
|
70
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
71
|
+
fill: "none",
|
|
72
|
+
viewBox: "0 0 24 24",
|
|
73
|
+
strokeWidth: 1.5,
|
|
74
|
+
stroke: "currentColor",
|
|
75
|
+
className: "size-5 sm:size-4",
|
|
76
|
+
children: /* @__PURE__ */ t(
|
|
77
|
+
"path",
|
|
78
|
+
{
|
|
79
|
+
strokeLinecap: "round",
|
|
80
|
+
strokeLinejoin: "round",
|
|
81
|
+
d: "M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 7.5v11.25m-18 0A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75m-18 0v-7.5A2.25 2.25 0 0 1 5.25 9h13.5A2.25 2.25 0 0 1 21 11.25v7.5"
|
|
82
|
+
}
|
|
83
|
+
)
|
|
84
|
+
}
|
|
85
|
+
)
|
|
86
|
+
}
|
|
87
|
+
), o = /* @__PURE__ */ T(
|
|
88
|
+
"div",
|
|
89
|
+
{
|
|
90
|
+
className: d(
|
|
91
|
+
O,
|
|
92
|
+
i,
|
|
93
|
+
s || a || e.type === "date" ? "grid grid-cols-1 pl-0 relative" : "",
|
|
94
|
+
e.disabled ? "bg-gray-50 outline-gray-200 cursor-not-allowed" : "",
|
|
95
|
+
l ? "mt-0" : "",
|
|
96
|
+
j
|
|
97
|
+
),
|
|
98
|
+
children: [
|
|
99
|
+
s,
|
|
100
|
+
/* @__PURE__ */ t(
|
|
101
|
+
"input",
|
|
102
|
+
{
|
|
103
|
+
ref: H,
|
|
104
|
+
type: e.type || "text",
|
|
105
|
+
className: d(
|
|
106
|
+
Q,
|
|
107
|
+
n,
|
|
108
|
+
s || a || e.type === "date" ? "col-start-1 row-start-1" : "",
|
|
109
|
+
w,
|
|
110
|
+
I,
|
|
111
|
+
e.type === "date" ? b : "",
|
|
112
|
+
e.type === "date" ? "calendar-icon-right" : "",
|
|
113
|
+
e.disabled ? "text-gray-500 placeholder:text-gray-400" : "",
|
|
114
|
+
M
|
|
115
|
+
),
|
|
116
|
+
...R,
|
|
117
|
+
...e
|
|
118
|
+
}
|
|
119
|
+
),
|
|
120
|
+
e.type === "date" && /* @__PURE__ */ t(S, {}),
|
|
121
|
+
a
|
|
122
|
+
]
|
|
123
|
+
}
|
|
124
|
+
);
|
|
125
|
+
return l || l ? o : /* @__PURE__ */ t(
|
|
126
|
+
B,
|
|
127
|
+
{
|
|
128
|
+
controlId: r.control,
|
|
129
|
+
helpTextId: r.help,
|
|
130
|
+
errorId: r.error,
|
|
131
|
+
cornerHintId: r.cornerHint,
|
|
132
|
+
label: A,
|
|
133
|
+
labelClassName: L,
|
|
134
|
+
cornerHint: m,
|
|
135
|
+
helpText: c,
|
|
136
|
+
errorMessage: u,
|
|
137
|
+
className: W,
|
|
138
|
+
children: o
|
|
139
|
+
}
|
|
140
|
+
);
|
|
141
|
+
}
|
|
142
|
+
);
|
|
143
|
+
U.displayName = "Input";
|
|
144
|
+
export {
|
|
145
|
+
U as Input
|
|
146
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Input, type InputProps } from "./Input.js";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ComponentProps, ReactNode } from "react";
|
|
2
|
+
export interface InputAddonProps extends ComponentProps<"div"> {
|
|
3
|
+
/**
|
|
4
|
+
* Position of the addon relative to the input
|
|
5
|
+
*/
|
|
6
|
+
position?: "leading" | "trailing";
|
|
7
|
+
/**
|
|
8
|
+
* Render inside the input's outline rather than as a box beside it
|
|
9
|
+
*/
|
|
10
|
+
inline?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Addon content, such as a protocol prefix, a currency or a unit
|
|
13
|
+
*/
|
|
14
|
+
children?: ReactNode;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Leading or trailing decoration for an input, such as a `https://` prefix, a `USD` suffix or a
|
|
18
|
+
* `+1` dialling code. Unlike InputIcon it stays in the accessibility tree, since its content
|
|
19
|
+
* carries meaning; give it an `id` and point the input's `aria-describedby` at it.
|
|
20
|
+
*/
|
|
21
|
+
export declare function InputAddon({ children, className, position, inline, ...props }: InputAddonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { twMerge as d } from "tailwind-merge";
|
|
3
|
+
function o({ children: r, className: s, position: t = "leading", inline: e = !1, ...l }) {
|
|
4
|
+
const a = d(
|
|
5
|
+
"flex items-center",
|
|
6
|
+
!e && "bg-white outline-1 -outline-offset-1 outline-gray-300 py-1.5 text-gray-500 sm:text-sm/6 h-[38px] px-3",
|
|
7
|
+
e && "shrink-0 text-gray-500 select-none sm:text-sm/6 h-full leading-[38px]",
|
|
8
|
+
!e && t === "leading" && "rounded-l-sm",
|
|
9
|
+
!e && t === "trailing" && "rounded-r-sm",
|
|
10
|
+
e && t === "leading" && "pr-2",
|
|
11
|
+
e && t === "trailing" && "pl-2",
|
|
12
|
+
s
|
|
13
|
+
);
|
|
14
|
+
return /* @__PURE__ */ m("div", { className: a, ...l, children: r });
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
o as InputAddon
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./InputAddon.js";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import { type ButtonProps } from "../../Buttons/index.js";
|
|
3
|
+
export interface InputButtonProps extends Omit<ButtonProps, "size"> {
|
|
4
|
+
/**
|
|
5
|
+
* Position of the button relative to the input
|
|
6
|
+
*/
|
|
7
|
+
position?: "trailing" | "leading";
|
|
8
|
+
/**
|
|
9
|
+
* Optional icon to display in the button
|
|
10
|
+
*/
|
|
11
|
+
icon?: ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* Children content (button text)
|
|
14
|
+
*/
|
|
15
|
+
children?: ReactNode;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Button component designed for use within input fields
|
|
19
|
+
* Uses the project's Button component as a base with input-specific styling
|
|
20
|
+
*/
|
|
21
|
+
export declare function InputButton({ children, className, position, icon, variant, ...props }: InputButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { jsxs as u } from "react/jsx-runtime";
|
|
2
|
+
import { twMerge as l } from "tailwind-merge";
|
|
3
|
+
import { Button as m } from "../../Buttons/Button.js";
|
|
4
|
+
function c({
|
|
5
|
+
children: t,
|
|
6
|
+
className: r,
|
|
7
|
+
position: n = "trailing",
|
|
8
|
+
icon: e,
|
|
9
|
+
variant: o = "secondary",
|
|
10
|
+
...i
|
|
11
|
+
}) {
|
|
12
|
+
const p = l(
|
|
13
|
+
// Base input button styles
|
|
14
|
+
"h-[38px] flex items-center gap-x-1.5 px-3",
|
|
15
|
+
// Position-specific border radius
|
|
16
|
+
n === "trailing" && "rounded-l-none",
|
|
17
|
+
n === "leading" && "rounded-r-none",
|
|
18
|
+
// Override default Button padding since we need specific height
|
|
19
|
+
"!py-0",
|
|
20
|
+
r
|
|
21
|
+
);
|
|
22
|
+
return /* @__PURE__ */ u(m, { variant: o, className: p, ...i, children: [
|
|
23
|
+
e,
|
|
24
|
+
t
|
|
25
|
+
] });
|
|
26
|
+
}
|
|
27
|
+
export {
|
|
28
|
+
c as InputButton
|
|
29
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./InputButton.js";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ComponentProps, ReactNode } from "react";
|
|
2
|
+
export interface InputIconProps extends ComponentProps<"div"> {
|
|
3
|
+
/**
|
|
4
|
+
* Position of the icon
|
|
5
|
+
*/
|
|
6
|
+
position: "leading" | "trailing";
|
|
7
|
+
/**
|
|
8
|
+
* Optional size of the icon (default: normal)
|
|
9
|
+
*/
|
|
10
|
+
size?: "normal" | "small";
|
|
11
|
+
/**
|
|
12
|
+
* Icon content (usually an SVG or icon component)
|
|
13
|
+
*/
|
|
14
|
+
children: ReactNode;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Icon component for input fields
|
|
18
|
+
* Positions icons at the leading or trailing edge of input fields
|
|
19
|
+
*/
|
|
20
|
+
export declare function InputIcon({ children, className, position, size, ...props }: InputIconProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { twMerge as o } from "tailwind-merge";
|
|
3
|
+
function c({ children: t, className: n, position: e, size: r = "normal", ...s }) {
|
|
4
|
+
const a = o(
|
|
5
|
+
"pointer-events-none col-start-1 row-start-1 self-center text-gray-400",
|
|
6
|
+
e === "leading" && "ml-3",
|
|
7
|
+
e === "trailing" && "mr-3 justify-self-end",
|
|
8
|
+
r === "normal" && "size-5",
|
|
9
|
+
r === "small" && "sm:size-4",
|
|
10
|
+
n
|
|
11
|
+
);
|
|
12
|
+
return /* @__PURE__ */ l("div", { className: a, "aria-hidden": "true", ...s, children: t });
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
c as InputIcon
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./InputIcon.js";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ComponentProps } from "react";
|
|
2
|
+
export interface KeyboardShortcutProps extends ComponentProps<"kbd"> {
|
|
3
|
+
/**
|
|
4
|
+
* Shortcut keys to display
|
|
5
|
+
*/
|
|
6
|
+
shortcut: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* A keyboard shortcut display component
|
|
10
|
+
* Shows keyboard shortcut keys in a styled format
|
|
11
|
+
*/
|
|
12
|
+
export declare function KeyboardShortcut({ shortcut, className, ...props }: KeyboardShortcutProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { twMerge as o } from "tailwind-merge";
|
|
3
|
+
function d({ shortcut: r, className: t, ...n }) {
|
|
4
|
+
return /* @__PURE__ */ e("div", { className: "flex items-center h-full py-1.5 pr-1.5", children: /* @__PURE__ */ e(
|
|
5
|
+
"kbd",
|
|
6
|
+
{
|
|
7
|
+
className: o(
|
|
8
|
+
"inline-flex items-center rounded-sm border border-gray-200 px-1 font-sans text-xs text-gray-500",
|
|
9
|
+
t
|
|
10
|
+
),
|
|
11
|
+
...n,
|
|
12
|
+
children: r
|
|
13
|
+
}
|
|
14
|
+
) });
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
d as KeyboardShortcut
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./KeyboardShortcut.js";
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { jsxs as n, jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { twMerge as t } from "tailwind-merge";
|
|
3
|
+
import { useChoiceInputId as f } from "../choiceInput.js";
|
|
4
|
+
function d({
|
|
5
|
+
name: i,
|
|
6
|
+
label: s = void 0,
|
|
7
|
+
checked: l = void 0,
|
|
8
|
+
containerProps: o = {},
|
|
9
|
+
labelProps: a = {},
|
|
10
|
+
disabled: r = !1,
|
|
11
|
+
...e
|
|
12
|
+
}) {
|
|
13
|
+
const m = f(e.id);
|
|
14
|
+
return /* @__PURE__ */ n(
|
|
15
|
+
"div",
|
|
16
|
+
{
|
|
17
|
+
...o,
|
|
18
|
+
className: t(
|
|
19
|
+
"flex items-center gap-x-3 w-full",
|
|
20
|
+
r ? "" : "cursor-pointer",
|
|
21
|
+
o.className
|
|
22
|
+
),
|
|
23
|
+
children: [
|
|
24
|
+
/* @__PURE__ */ c(
|
|
25
|
+
"input",
|
|
26
|
+
{
|
|
27
|
+
name: i,
|
|
28
|
+
type: "radio",
|
|
29
|
+
checked: l,
|
|
30
|
+
disabled: r,
|
|
31
|
+
...e,
|
|
32
|
+
id: m,
|
|
33
|
+
className: t(
|
|
34
|
+
"lydia-input h-4 w-4 border-gray-300 text-primary-600 focus:ring-primary-600",
|
|
35
|
+
r ? "opacity-60" : "cursor-pointer",
|
|
36
|
+
e.className
|
|
37
|
+
)
|
|
38
|
+
}
|
|
39
|
+
),
|
|
40
|
+
/* @__PURE__ */ c(
|
|
41
|
+
"label",
|
|
42
|
+
{
|
|
43
|
+
htmlFor: m,
|
|
44
|
+
...a,
|
|
45
|
+
className: t(
|
|
46
|
+
"block text-sm font-medium leading-6 text-gray-900 flex-1",
|
|
47
|
+
r ? "text-gray-400" : "cursor-pointer",
|
|
48
|
+
a.className
|
|
49
|
+
),
|
|
50
|
+
children: s ?? i
|
|
51
|
+
}
|
|
52
|
+
)
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
export {
|
|
58
|
+
d as Radio
|
|
59
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Radio.js";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ComponentProps } from "react";
|
|
2
|
+
export interface SearchInputProps extends Omit<ComponentProps<"input">, "onChange"> {
|
|
3
|
+
label?: string;
|
|
4
|
+
placeHolder?: string;
|
|
5
|
+
setSearch?: (value: string) => void;
|
|
6
|
+
className?: string;
|
|
7
|
+
search?: string | null;
|
|
8
|
+
}
|
|
9
|
+
export declare const SearchInput: ({ label, setSearch, className, placeHolder, search, id, ...moreProps }: SearchInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { jsxs as i, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { useId as y, useRef as x, useState as w, useEffect as N } from "react";
|
|
3
|
+
import { twMerge as b } from "tailwind-merge";
|
|
4
|
+
import { KeyboardShortcut as C } from "../KeyboardShortcut/KeyboardShortcut.js";
|
|
5
|
+
const v = "w-full", k = "mt-2 space-x-1 py-1 pl-1.5 flex text-base items-center rounded ring-1 text-gray-900 ring-inset ring-gray-200 placeholder:text-gray-400 focus-within:ring-2 focus-within:ring-inset focus-within:ring-primary-600", E = "lydia-input overflow-ellipsis w-full border-0 p-0 focus:outline-none focus:ring-0 ml-1", I = "inset-y-0 right-0 flex hover:cursor-pointer", K = "block text-sm font-medium leading-6 text-gray-900", B = ({
|
|
6
|
+
label: a,
|
|
7
|
+
setSearch: e,
|
|
8
|
+
className: c,
|
|
9
|
+
placeHolder: u,
|
|
10
|
+
search: r,
|
|
11
|
+
id: m,
|
|
12
|
+
...f
|
|
13
|
+
}) => {
|
|
14
|
+
const p = y(), o = m ?? p, s = x(null), [d, l] = w(r ?? "");
|
|
15
|
+
N(() => {
|
|
16
|
+
l(r ?? "");
|
|
17
|
+
}, [r]);
|
|
18
|
+
const g = (t) => {
|
|
19
|
+
t.key === "Enter" && e && e(t.currentTarget.value);
|
|
20
|
+
}, h = () => {
|
|
21
|
+
s.current && e && e(s.current.value);
|
|
22
|
+
};
|
|
23
|
+
return /* @__PURE__ */ i("div", { className: b(v, c), children: [
|
|
24
|
+
a && /* @__PURE__ */ n("label", { htmlFor: o, className: K, children: a }),
|
|
25
|
+
/* @__PURE__ */ i("div", { className: k, children: [
|
|
26
|
+
/* @__PURE__ */ n(
|
|
27
|
+
"input",
|
|
28
|
+
{
|
|
29
|
+
ref: s,
|
|
30
|
+
type: "text",
|
|
31
|
+
autoComplete: "off",
|
|
32
|
+
name: "search",
|
|
33
|
+
id: o,
|
|
34
|
+
placeholder: u,
|
|
35
|
+
onKeyDown: g,
|
|
36
|
+
value: d,
|
|
37
|
+
onChange: (t) => l(t.target.value),
|
|
38
|
+
className: E,
|
|
39
|
+
...f
|
|
40
|
+
}
|
|
41
|
+
),
|
|
42
|
+
/* @__PURE__ */ n("button", { type: "button", "aria-label": "Search with Enter", onClick: h, className: I, children: /* @__PURE__ */ n(C, { shortcut: "Enter" }) })
|
|
43
|
+
] })
|
|
44
|
+
] });
|
|
45
|
+
};
|
|
46
|
+
export {
|
|
47
|
+
B as SearchInput
|
|
48
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { ComponentProps, FC } from "react";
|
|
2
|
+
export type Mark = number | {
|
|
3
|
+
value: number;
|
|
4
|
+
label: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
};
|
|
7
|
+
export interface RangeSliderProps {
|
|
8
|
+
min?: number;
|
|
9
|
+
max?: number;
|
|
10
|
+
defaultValue?: {
|
|
11
|
+
min?: number;
|
|
12
|
+
max?: number;
|
|
13
|
+
};
|
|
14
|
+
value?: {
|
|
15
|
+
min?: number;
|
|
16
|
+
max?: number;
|
|
17
|
+
};
|
|
18
|
+
step?: number;
|
|
19
|
+
onChange?: (value: {
|
|
20
|
+
min?: number;
|
|
21
|
+
max?: number;
|
|
22
|
+
}) => void;
|
|
23
|
+
onPointerUp?: (value: {
|
|
24
|
+
min?: number;
|
|
25
|
+
max?: number;
|
|
26
|
+
}) => void;
|
|
27
|
+
thumbSize?: string;
|
|
28
|
+
marks?: Mark[];
|
|
29
|
+
/**
|
|
30
|
+
* What the range bounds, for the names of its two thumbs: "Response time,
|
|
31
|
+
* minimum" and "Response time, maximum". Without it they are "Minimum" and
|
|
32
|
+
* "Maximum", which still tells the two apart.
|
|
33
|
+
*/
|
|
34
|
+
label?: string;
|
|
35
|
+
className?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* RangeSlider component for selecting min and max values within a range
|
|
39
|
+
*/
|
|
40
|
+
export declare const RangeSlider: FC<RangeSliderProps & Omit<ComponentProps<"div">, "onPointerUp" | "defaultValue">>;
|