@tetherto/mdk-react-devkit 0.0.0 → 0.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENT_READY.md +265 -0
- package/LICENSE +202 -0
- package/README.md +148 -0
- package/dist/domain/components/active-incidents-card/active-incidents-card.example.d.ts +1 -0
- package/dist/domain/components/active-incidents-card/active-incidents-card.example.js +34 -0
- package/dist/domain/components/active-incidents-card/incident-row.d.ts +21 -0
- package/dist/domain/components/active-incidents-card/incident-row.js +11 -0
- package/dist/domain/components/active-incidents-card/incident-severity.d.ts +10 -0
- package/dist/domain/components/active-incidents-card/incident-severity.js +5 -0
- package/dist/domain/components/active-incidents-card/index.d.ts +79 -0
- package/dist/domain/components/active-incidents-card/index.js +47 -0
- package/dist/domain/components/active-incidents-card/types.d.ts +1 -0
- package/dist/domain/components/active-incidents-card/types.js +1 -0
- package/dist/domain/components/alarm/alarm-contents/alarm-contents.d.ts +18 -0
- package/dist/domain/components/alarm/alarm-contents/alarm-contents.example.d.ts +1 -0
- package/dist/domain/components/alarm/alarm-contents/alarm-contents.example.js +29 -0
- package/dist/domain/components/alarm/alarm-contents/alarm-contents.js +20 -0
- package/dist/domain/components/alarm/alarm-row/alarm-row-constants.d.ts +3 -0
- package/dist/domain/components/alarm/alarm-row/alarm-row-constants.js +13 -0
- package/dist/domain/components/alarm/alarm-row/alarm-row.d.ts +34 -0
- package/dist/domain/components/alarm/alarm-row/alarm-row.example.d.ts +1 -0
- package/dist/domain/components/alarm/alarm-row/alarm-row.example.js +16 -0
- package/dist/domain/components/alarm/alarm-row/alarm-row.js +19 -0
- package/dist/domain/components/alarm/alarm.example.d.ts +1 -0
- package/dist/domain/components/alarm/alarm.example.js +44 -0
- package/dist/domain/components/alarm/index.d.ts +2 -0
- package/dist/domain/components/alarm/index.js +2 -0
- package/dist/domain/components/alerts/alerts-table-columns.d.ts +7 -0
- package/dist/domain/components/alerts/alerts-table-columns.js +71 -0
- package/dist/domain/components/alerts/alerts-table-title/alerts-table-title.d.ts +19 -0
- package/dist/domain/components/alerts/alerts-table-title/alerts-table-title.example.d.ts +1 -0
- package/dist/domain/components/alerts/alerts-table-title/alerts-table-title.example.js +3 -0
- package/dist/domain/components/alerts/alerts-table-title/alerts-table-title.js +11 -0
- package/dist/domain/components/alerts/alerts-types.d.ts +53 -0
- package/dist/domain/components/alerts/alerts-types.js +1 -0
- package/dist/domain/components/alerts/alerts-utils.d.ts +35 -0
- package/dist/domain/components/alerts/alerts-utils.js +179 -0
- package/dist/domain/components/alerts/current-alerts/alert-confirmation-modal/alert-confirmation-modal.d.ts +17 -0
- package/dist/domain/components/alerts/current-alerts/alert-confirmation-modal/alert-confirmation-modal.example.d.ts +1 -0
- package/dist/domain/components/alerts/current-alerts/alert-confirmation-modal/alert-confirmation-modal.example.js +10 -0
- package/dist/domain/components/alerts/current-alerts/alert-confirmation-modal/alert-confirmation-modal.js +11 -0
- package/dist/domain/components/alerts/current-alerts/current-alerts.d.ts +77 -0
- package/dist/domain/components/alerts/current-alerts/current-alerts.example.d.ts +1 -0
- package/dist/domain/components/alerts/current-alerts/current-alerts.example.js +37 -0
- package/dist/domain/components/alerts/current-alerts/current-alerts.js +73 -0
- package/dist/domain/components/alerts/historical-alerts/historical-alerts.d.ts +60 -0
- package/dist/domain/components/alerts/historical-alerts/historical-alerts.example.d.ts +1 -0
- package/dist/domain/components/alerts/historical-alerts/historical-alerts.example.js +40 -0
- package/dist/domain/components/alerts/historical-alerts/historical-alerts.js +49 -0
- package/dist/domain/components/alerts/index.d.ts +9 -0
- package/dist/domain/components/alerts/index.js +9 -0
- package/dist/domain/components/alerts/tag-filter-bar/tag-filter-bar.const.d.ts +6 -0
- package/dist/domain/components/alerts/tag-filter-bar/tag-filter-bar.const.js +43 -0
- package/dist/domain/components/alerts/tag-filter-bar/tag-filter-bar.d.ts +32 -0
- package/dist/domain/components/alerts/tag-filter-bar/tag-filter-bar.example.d.ts +1 -0
- package/dist/domain/components/alerts/tag-filter-bar/tag-filter-bar.example.js +3 -0
- package/dist/domain/components/alerts/tag-filter-bar/tag-filter-bar.js +45 -0
- package/dist/domain/components/alerts/tag-filter-bar/type-filter-map.d.ts +15 -0
- package/dist/domain/components/alerts/tag-filter-bar/type-filter-map.js +36 -0
- package/dist/domain/components/auth/index.d.ts +2 -0
- package/dist/domain/components/auth/index.js +2 -0
- package/dist/domain/components/auth/require-auth/index.d.ts +2 -0
- package/dist/domain/components/auth/require-auth/index.js +1 -0
- package/dist/domain/components/auth/require-auth/require-auth.d.ts +25 -0
- package/dist/domain/components/auth/require-auth/require-auth.example.d.ts +1 -0
- package/dist/domain/components/auth/require-auth/require-auth.example.js +11 -0
- package/dist/domain/components/auth/require-auth/require-auth.js +64 -0
- package/dist/domain/components/auth/sign-in-google-button/index.d.ts +2 -0
- package/dist/domain/components/auth/sign-in-google-button/index.js +1 -0
- package/dist/domain/components/auth/sign-in-google-button/sign-in-google-button.d.ts +60 -0
- package/dist/domain/components/auth/sign-in-google-button/sign-in-google-button.example.d.ts +1 -0
- package/dist/domain/components/auth/sign-in-google-button/sign-in-google-button.example.js +9 -0
- package/dist/domain/components/auth/sign-in-google-button/sign-in-google-button.js +36 -0
- package/dist/domain/components/composite/metric-card/index.d.ts +12 -0
- package/dist/domain/components/composite/metric-card/index.js +18 -0
- package/dist/domain/components/composite/metric-card/metric-card-utils.d.ts +2 -0
- package/dist/domain/components/composite/metric-card/metric-card-utils.js +10 -0
- package/dist/domain/components/composite/metric-card/metric-card.example.d.ts +1 -0
- package/dist/domain/components/composite/metric-card/metric-card.example.js +6 -0
- package/dist/domain/components/composite/metric-card/props.d.ts +47 -0
- package/dist/domain/components/composite/metric-card/props.js +1 -0
- package/dist/domain/components/dashboard/dashboard-date-range-picker/dashboard-date-range-picker.d.ts +30 -0
- package/dist/domain/components/dashboard/dashboard-date-range-picker/dashboard-date-range-picker.example.d.ts +1 -0
- package/dist/domain/components/dashboard/dashboard-date-range-picker/dashboard-date-range-picker.example.js +17 -0
- package/dist/domain/components/dashboard/dashboard-date-range-picker/dashboard-date-range-picker.js +29 -0
- package/dist/domain/components/dashboard/dashboard-date-range-picker/index.d.ts +1 -0
- package/dist/domain/components/dashboard/dashboard-date-range-picker/index.js +1 -0
- package/dist/domain/components/dashboard/export-button/export-button.d.ts +32 -0
- package/dist/domain/components/dashboard/export-button/export-button.example.d.ts +1 -0
- package/dist/domain/components/dashboard/export-button/export-button.example.js +11 -0
- package/dist/domain/components/dashboard/export-button/export-button.js +50 -0
- package/dist/domain/components/dashboard/export-button/index.d.ts +1 -0
- package/dist/domain/components/dashboard/export-button/index.js +1 -0
- package/dist/domain/components/dashboard/index.d.ts +5 -0
- package/dist/domain/components/dashboard/index.js +5 -0
- package/dist/domain/components/dashboard/power-mode-timeline-chart/index.d.ts +2 -0
- package/dist/domain/components/dashboard/power-mode-timeline-chart/index.js +2 -0
- package/dist/domain/components/dashboard/power-mode-timeline-chart/power-mode-timeline-chart.d.ts +44 -0
- package/dist/domain/components/dashboard/power-mode-timeline-chart/power-mode-timeline-chart.example.d.ts +1 -0
- package/dist/domain/components/dashboard/power-mode-timeline-chart/power-mode-timeline-chart.example.js +15 -0
- package/dist/domain/components/dashboard/power-mode-timeline-chart/power-mode-timeline-chart.helper.d.ts +35 -0
- package/dist/domain/components/dashboard/power-mode-timeline-chart/power-mode-timeline-chart.helper.js +94 -0
- package/dist/domain/components/dashboard/power-mode-timeline-chart/power-mode-timeline-chart.js +27 -0
- package/dist/domain/components/dashboard/site-stats-bar/index.d.ts +2 -0
- package/dist/domain/components/dashboard/site-stats-bar/index.js +1 -0
- package/dist/domain/components/dashboard/site-stats-bar/site-stats-bar.d.ts +38 -0
- package/dist/domain/components/dashboard/site-stats-bar/site-stats-bar.example.d.ts +1 -0
- package/dist/domain/components/dashboard/site-stats-bar/site-stats-bar.example.js +10 -0
- package/dist/domain/components/dashboard/site-stats-bar/site-stats-bar.js +41 -0
- package/dist/domain/components/dashboard/timeline-selector/index.d.ts +3 -0
- package/dist/domain/components/dashboard/timeline-selector/index.js +2 -0
- package/dist/domain/components/dashboard/timeline-selector/timeline-options.d.ts +21 -0
- package/dist/domain/components/dashboard/timeline-selector/timeline-options.js +29 -0
- package/dist/domain/components/dashboard/timeline-selector/timeline-selector.d.ts +25 -0
- package/dist/domain/components/dashboard/timeline-selector/timeline-selector.example.d.ts +1 -0
- package/dist/domain/components/dashboard/timeline-selector/timeline-selector.example.js +13 -0
- package/dist/domain/components/dashboard/timeline-selector/timeline-selector.js +24 -0
- package/dist/domain/components/data-box/content-box/content-box.d.ts +24 -0
- package/dist/domain/components/data-box/content-box/content-box.js +14 -0
- package/dist/domain/components/data-box/data-row/data-row.d.ts +31 -0
- package/dist/domain/components/data-box/data-row/data-row.js +22 -0
- package/dist/domain/components/data-box/generic-data-box/generic-data-box.d.ts +40 -0
- package/dist/domain/components/data-box/generic-data-box/generic-data-box.example.d.ts +1 -0
- package/dist/domain/components/data-box/generic-data-box/generic-data-box.example.js +7 -0
- package/dist/domain/components/data-box/generic-data-box/generic-data-box.js +27 -0
- package/dist/domain/components/data-box/index.d.ts +1 -0
- package/dist/domain/components/data-box/index.js +1 -0
- package/dist/domain/components/device-explorer/columns/column-constants.d.ts +4 -0
- package/dist/domain/components/device-explorer/columns/column-constants.js +4 -0
- package/dist/domain/components/device-explorer/columns/miner-columns.d.ts +8 -0
- package/dist/domain/components/device-explorer/columns/miner-columns.js +276 -0
- package/dist/domain/components/device-explorer/components/device-card-col-text/device-card-col-text.d.ts +7 -0
- package/dist/domain/components/device-explorer/components/device-card-col-text/device-card-col-text.js +4 -0
- package/dist/domain/components/device-explorer/components/mining-status-indicator/mining-status-indicator.d.ts +14 -0
- package/dist/domain/components/device-explorer/components/mining-status-indicator/mining-status-indicator.js +39 -0
- package/dist/domain/components/device-explorer/components/status-label/status-label.d.ts +6 -0
- package/dist/domain/components/device-explorer/components/status-label/status-label.js +9 -0
- package/dist/domain/components/device-explorer/device-explorer-table.d.ts +18 -0
- package/dist/domain/components/device-explorer/device-explorer-table.js +12 -0
- package/dist/domain/components/device-explorer/device-explorer-toolbar.d.ts +17 -0
- package/dist/domain/components/device-explorer/device-explorer-toolbar.js +6 -0
- package/dist/domain/components/device-explorer/device-explorer.d.ts +47 -0
- package/dist/domain/components/device-explorer/device-explorer.example.d.ts +1 -0
- package/dist/domain/components/device-explorer/device-explorer.example.js +45 -0
- package/dist/domain/components/device-explorer/device-explorer.js +44 -0
- package/dist/domain/components/device-explorer/hooks/use-filter-state.d.ts +10 -0
- package/dist/domain/components/device-explorer/hooks/use-filter-state.js +52 -0
- package/dist/domain/components/device-explorer/hooks/use-get-available-devices.d.ts +11 -0
- package/dist/domain/components/device-explorer/hooks/use-get-available-devices.js +10 -0
- package/dist/domain/components/device-explorer/index.d.ts +4 -0
- package/dist/domain/components/device-explorer/index.js +4 -0
- package/dist/domain/components/device-explorer/types.d.ts +17 -0
- package/dist/domain/components/device-explorer/types.js +1 -0
- package/dist/domain/components/enabled-disable-toggle/enabled-disable-toggle.d.ts +27 -0
- package/dist/domain/components/enabled-disable-toggle/enabled-disable-toggle.example.d.ts +1 -0
- package/dist/domain/components/enabled-disable-toggle/enabled-disable-toggle.example.js +5 -0
- package/dist/domain/components/enabled-disable-toggle/enabled-disable-toggle.js +18 -0
- package/dist/domain/components/header-actions/alarms-bell-button.d.ts +39 -0
- package/dist/domain/components/header-actions/alarms-bell-button.js +37 -0
- package/dist/domain/components/header-actions/header-actions.example.d.ts +5 -0
- package/dist/domain/components/header-actions/header-actions.example.js +14 -0
- package/dist/domain/components/header-actions/index.d.ts +4 -0
- package/dist/domain/components/header-actions/index.js +2 -0
- package/dist/domain/components/header-actions/profile-menu.d.ts +37 -0
- package/dist/domain/components/header-actions/profile-menu.js +14 -0
- package/dist/domain/components/header-stats/header-consumption-box.d.ts +18 -0
- package/dist/domain/components/header-stats/header-consumption-box.js +19 -0
- package/dist/domain/components/header-stats/header-efficiency-box.d.ts +18 -0
- package/dist/domain/components/header-stats/header-efficiency-box.js +19 -0
- package/dist/domain/components/header-stats/header-hashrate-box.d.ts +30 -0
- package/dist/domain/components/header-stats/header-hashrate-box.js +21 -0
- package/dist/domain/components/header-stats/header-miners-box.d.ts +32 -0
- package/dist/domain/components/header-stats/header-miners-box.js +16 -0
- package/dist/domain/components/header-stats/header-stats-bar.d.ts +12 -0
- package/dist/domain/components/header-stats/header-stats-bar.js +22 -0
- package/dist/domain/components/header-stats/header-stats.example.d.ts +5 -0
- package/dist/domain/components/header-stats/header-stats.example.js +11 -0
- package/dist/domain/components/header-stats/index.d.ts +10 -0
- package/dist/domain/components/header-stats/index.js +5 -0
- package/dist/domain/components/index.d.ts +29 -0
- package/dist/domain/components/index.js +29 -0
- package/dist/domain/components/info-container/info-container.d.ts +38 -0
- package/dist/domain/components/info-container/info-container.example.d.ts +1 -0
- package/dist/domain/components/info-container/info-container.example.js +13 -0
- package/dist/domain/components/info-container/info-container.js +37 -0
- package/dist/domain/components/line-chart-card/index.d.ts +43 -0
- package/dist/domain/components/line-chart-card/index.js +111 -0
- package/dist/domain/components/line-chart-card/line-chart-card.example.d.ts +1 -0
- package/dist/domain/components/line-chart-card/line-chart-card.example.js +33 -0
- package/dist/domain/components/line-chart-card/types.d.ts +121 -0
- package/dist/domain/components/line-chart-card/types.js +1 -0
- package/dist/domain/components/miners-activity-chart/miners-activity-chart.const.d.ts +54 -0
- package/dist/domain/components/miners-activity-chart/miners-activity-chart.const.js +68 -0
- package/dist/domain/components/miners-activity-chart/miners-activity-chart.d.ts +69 -0
- package/dist/domain/components/miners-activity-chart/miners-activity-chart.example.d.ts +1 -0
- package/dist/domain/components/miners-activity-chart/miners-activity-chart.example.js +3 -0
- package/dist/domain/components/miners-activity-chart/miners-activity-chart.js +44 -0
- package/dist/domain/components/mining-pools-panel/format.d.ts +7 -0
- package/dist/domain/components/mining-pools-panel/format.js +21 -0
- package/dist/domain/components/mining-pools-panel/index.d.ts +30 -0
- package/dist/domain/components/mining-pools-panel/index.js +38 -0
- package/dist/domain/components/mining-pools-panel/mining-pools-panel.example.d.ts +1 -0
- package/dist/domain/components/mining-pools-panel/mining-pools-panel.example.js +41 -0
- package/dist/domain/components/mining-pools-panel/types.d.ts +56 -0
- package/dist/domain/components/mining-pools-panel/types.js +1 -0
- package/dist/domain/components/pool-details-card/index.d.ts +56 -0
- package/dist/domain/components/pool-details-card/index.js +29 -0
- package/dist/domain/components/pool-details-card/pool-details-card.example.d.ts +1 -0
- package/dist/domain/components/pool-details-card/pool-details-card.example.js +15 -0
- package/dist/domain/components/pool-details-popover/index.d.ts +43 -0
- package/dist/domain/components/pool-details-popover/index.js +33 -0
- package/dist/domain/components/pool-details-popover/pool-details-popover.example.d.ts +1 -0
- package/dist/domain/components/pool-details-popover/pool-details-popover.example.js +13 -0
- package/dist/domain/components/settings/add-user-modal/add-user-modal.d.ts +30 -0
- package/dist/domain/components/settings/add-user-modal/add-user-modal.example.d.ts +1 -0
- package/dist/domain/components/settings/add-user-modal/add-user-modal.example.js +15 -0
- package/dist/domain/components/settings/add-user-modal/add-user-modal.js +34 -0
- package/dist/domain/components/settings/add-user-modal/index.d.ts +2 -0
- package/dist/domain/components/settings/add-user-modal/index.js +1 -0
- package/dist/domain/components/settings/change-confirmation-modal/change-confirmation-modal.d.ts +32 -0
- package/dist/domain/components/settings/change-confirmation-modal/change-confirmation-modal.example.d.ts +1 -0
- package/dist/domain/components/settings/change-confirmation-modal/change-confirmation-modal.example.js +10 -0
- package/dist/domain/components/settings/change-confirmation-modal/change-confirmation-modal.js +11 -0
- package/dist/domain/components/settings/change-confirmation-modal/index.d.ts +2 -0
- package/dist/domain/components/settings/change-confirmation-modal/index.js +1 -0
- package/dist/domain/components/settings/feature-flags/feature-flags-settings.d.ts +30 -0
- package/dist/domain/components/settings/feature-flags/feature-flags-settings.example.d.ts +1 -0
- package/dist/domain/components/settings/feature-flags/feature-flags-settings.example.js +3 -0
- package/dist/domain/components/settings/feature-flags/feature-flags-settings.js +42 -0
- package/dist/domain/components/settings/feature-flags/index.d.ts +2 -0
- package/dist/domain/components/settings/feature-flags/index.js +1 -0
- package/dist/domain/components/settings/header-controls/header-controls-settings.d.ts +26 -0
- package/dist/domain/components/settings/header-controls/header-controls-settings.example.d.ts +1 -0
- package/dist/domain/components/settings/header-controls/header-controls-settings.example.js +3 -0
- package/dist/domain/components/settings/header-controls/header-controls-settings.js +16 -0
- package/dist/domain/components/settings/header-controls/index.d.ts +3 -0
- package/dist/domain/components/settings/header-controls/index.js +2 -0
- package/dist/domain/components/settings/header-controls/use-header-controls.d.ts +23 -0
- package/dist/domain/components/settings/header-controls/use-header-controls.js +34 -0
- package/dist/domain/components/settings/import-export/import-export-settings.d.ts +31 -0
- package/dist/domain/components/settings/import-export/import-export-settings.example.d.ts +1 -0
- package/dist/domain/components/settings/import-export/import-export-settings.example.js +3 -0
- package/dist/domain/components/settings/import-export/import-export-settings.js +55 -0
- package/dist/domain/components/settings/import-export/index.d.ts +2 -0
- package/dist/domain/components/settings/import-export/index.js +1 -0
- package/dist/domain/components/settings/index.d.ts +8 -0
- package/dist/domain/components/settings/index.js +8 -0
- package/dist/domain/components/settings/manage-user-modal/index.d.ts +2 -0
- package/dist/domain/components/settings/manage-user-modal/index.js +1 -0
- package/dist/domain/components/settings/manage-user-modal/manage-user-modal.d.ts +37 -0
- package/dist/domain/components/settings/manage-user-modal/manage-user-modal.example.d.ts +1 -0
- package/dist/domain/components/settings/manage-user-modal/manage-user-modal.example.js +15 -0
- package/dist/domain/components/settings/manage-user-modal/manage-user-modal.js +65 -0
- package/dist/domain/components/settings/rbac-control/index.d.ts +2 -0
- package/dist/domain/components/settings/rbac-control/index.js +1 -0
- package/dist/domain/components/settings/rbac-control/rbac-control-settings.d.ts +45 -0
- package/dist/domain/components/settings/rbac-control/rbac-control-settings.example.d.ts +1 -0
- package/dist/domain/components/settings/rbac-control/rbac-control-settings.example.js +17 -0
- package/dist/domain/components/settings/rbac-control/rbac-control-settings.js +63 -0
- package/dist/domain/components/settings/settings-dashboard/index.d.ts +2 -0
- package/dist/domain/components/settings/settings-dashboard/index.js +1 -0
- package/dist/domain/components/settings/settings-dashboard/settings-dashboard.d.ts +34 -0
- package/dist/domain/components/settings/settings-dashboard/settings-dashboard.example.d.ts +1 -0
- package/dist/domain/components/settings/settings-dashboard/settings-dashboard.example.js +3 -0
- package/dist/domain/components/settings/settings-dashboard/settings-dashboard.js +15 -0
- package/dist/domain/components/stat-cards/index.d.ts +2 -0
- package/dist/domain/components/stat-cards/index.js +2 -0
- package/dist/domain/components/stat-cards/miner-metric-card/miner-metric-card.d.ts +49 -0
- package/dist/domain/components/stat-cards/miner-metric-card/miner-metric-card.example.d.ts +1 -0
- package/dist/domain/components/stat-cards/miner-metric-card/miner-metric-card.example.js +9 -0
- package/dist/domain/components/stat-cards/miner-metric-card/miner-metric-card.js +63 -0
- package/dist/domain/components/stat-cards/single-stat-card/single-stat-card.d.ts +69 -0
- package/dist/domain/components/stat-cards/single-stat-card/single-stat-card.example.d.ts +1 -0
- package/dist/domain/components/stat-cards/single-stat-card/single-stat-card.example.js +3 -0
- package/dist/domain/components/stat-cards/single-stat-card/single-stat-card.js +26 -0
- package/dist/domain/components/timeframe/report-time-frame-selector/index.d.ts +4 -0
- package/dist/domain/components/timeframe/report-time-frame-selector/index.js +2 -0
- package/dist/domain/components/timeframe/report-time-frame-selector/report-time-frame-selector.d.ts +12 -0
- package/dist/domain/components/timeframe/report-time-frame-selector/report-time-frame-selector.example.d.ts +1 -0
- package/dist/domain/components/timeframe/report-time-frame-selector/report-time-frame-selector.example.js +9 -0
- package/dist/domain/components/timeframe/report-time-frame-selector/report-time-frame-selector.js +30 -0
- package/dist/domain/components/timeframe/report-time-frame-selector/use-report-time-frame-selector-state.d.ts +21 -0
- package/dist/domain/components/timeframe/report-time-frame-selector/use-report-time-frame-selector-state.js +28 -0
- package/dist/domain/components/timeframe/timeframe-controls/index.d.ts +5 -0
- package/dist/domain/components/timeframe/timeframe-controls/index.js +5 -0
- package/dist/domain/components/timeframe/timeframe-controls/timeframe-controls-week-content.d.ts +27 -0
- package/dist/domain/components/timeframe/timeframe-controls/timeframe-controls-week-content.example.d.ts +1 -0
- package/dist/domain/components/timeframe/timeframe-controls/timeframe-controls-week-content.example.js +3 -0
- package/dist/domain/components/timeframe/timeframe-controls/timeframe-controls-week-content.js +21 -0
- package/dist/domain/components/timeframe/timeframe-controls/timeframe-controls.d.ts +12 -0
- package/dist/domain/components/timeframe/timeframe-controls/timeframe-controls.example.d.ts +1 -0
- package/dist/domain/components/timeframe/timeframe-controls/timeframe-controls.example.js +3 -0
- package/dist/domain/components/timeframe/timeframe-controls/timeframe-controls.helper.d.ts +66 -0
- package/dist/domain/components/timeframe/timeframe-controls/timeframe-controls.helper.js +193 -0
- package/dist/domain/components/timeframe/timeframe-controls/timeframe-controls.js +27 -0
- package/dist/domain/components/timeframe/timeframe-controls/timeframe-controls.types.d.ts +61 -0
- package/dist/domain/components/timeframe/timeframe-controls/timeframe-controls.types.js +1 -0
- package/dist/domain/components/timeframe/timeframe-controls/use-timeframe-controls.d.ts +37 -0
- package/dist/domain/components/timeframe/timeframe-controls/use-timeframe-controls.js +184 -0
- package/dist/domain/components/timeframe/use-financial-date-range.d.ts +39 -0
- package/dist/domain/components/timeframe/use-financial-date-range.example.d.ts +1 -0
- package/dist/domain/components/timeframe/use-financial-date-range.example.js +7 -0
- package/dist/domain/components/timeframe/use-financial-date-range.js +131 -0
- package/dist/domain/components/timeline-chart/index.d.ts +2 -0
- package/dist/domain/components/timeline-chart/index.js +2 -0
- package/dist/domain/components/timeline-chart/timeline-bar.d.ts +10 -0
- package/dist/domain/components/timeline-chart/timeline-bar.js +19 -0
- package/dist/domain/components/timeline-chart/timeline-chart.d.ts +24 -0
- package/dist/domain/components/timeline-chart/timeline-chart.example.d.ts +1 -0
- package/dist/domain/components/timeline-chart/timeline-chart.example.js +26 -0
- package/dist/domain/components/timeline-chart/timeline-chart.js +47 -0
- package/dist/domain/components/timeline-chart/timeline-chart.types.d.ts +56 -0
- package/dist/domain/components/timeline-chart/timeline-chart.types.js +1 -0
- package/dist/domain/components/timeline-chart/timeline-legend.d.ts +5 -0
- package/dist/domain/components/timeline-chart/timeline-legend.js +21 -0
- package/dist/domain/components/timeline-chart/timeline-row.d.ts +8 -0
- package/dist/domain/components/timeline-chart/timeline-row.js +28 -0
- package/dist/domain/components/timeline-chart/timeline-visualization.d.ts +7 -0
- package/dist/domain/components/timeline-chart/timeline-visualization.js +47 -0
- package/dist/domain/components/widget-top-row/alarm-info.d.ts +12 -0
- package/dist/domain/components/widget-top-row/alarm-info.js +18 -0
- package/dist/domain/components/widget-top-row/index.d.ts +30 -0
- package/dist/domain/components/widget-top-row/index.js +31 -0
- package/dist/domain/components/widget-top-row/widget-top-row.example.d.ts +1 -0
- package/dist/domain/components/widget-top-row/widget-top-row.example.js +21 -0
- package/dist/domain/constants/actions.d.ts +30 -0
- package/dist/domain/constants/actions.js +37 -0
- package/dist/domain/constants/alerts.d.ts +26 -0
- package/dist/domain/constants/alerts.js +22 -0
- package/dist/domain/constants/charts.d.ts +20 -0
- package/dist/domain/constants/charts.js +20 -0
- package/dist/domain/constants/constants.types.d.ts +10 -0
- package/dist/domain/constants/constants.types.js +1 -0
- package/dist/domain/constants/container-constants.d.ts +11 -0
- package/dist/domain/constants/container-constants.js +10 -0
- package/dist/domain/constants/dates.d.ts +5 -0
- package/dist/domain/constants/dates.js +4 -0
- package/dist/domain/constants/device-constants.d.ts +11 -0
- package/dist/domain/constants/device-constants.js +10 -0
- package/dist/domain/constants/devices.d.ts +8 -0
- package/dist/domain/constants/devices.js +6 -0
- package/dist/domain/constants/header-controls.constants.d.ts +29 -0
- package/dist/domain/constants/header-controls.constants.js +18 -0
- package/dist/domain/constants/index.d.ts +35 -0
- package/dist/domain/constants/index.js +29 -0
- package/dist/domain/constants/miner-constants.d.ts +35 -0
- package/dist/domain/constants/miner-constants.js +23 -0
- package/dist/domain/constants/ranges.d.ts +15 -0
- package/dist/domain/constants/ranges.js +11 -0
- package/dist/domain/constants/role-colors.constants.d.ts +6 -0
- package/dist/domain/constants/role-colors.constants.js +16 -0
- package/dist/domain/constants/settings.constants.d.ts +5 -0
- package/dist/domain/constants/settings.constants.js +5 -0
- package/dist/domain/index.d.ts +30 -0
- package/dist/domain/index.js +29 -0
- package/dist/domain/types/alerts.d.ts +11 -0
- package/dist/domain/types/alerts.js +1 -0
- package/dist/domain/types/device.d.ts +99 -0
- package/dist/domain/types/device.js +1 -0
- package/dist/domain/types/index.d.ts +3 -0
- package/dist/domain/types/index.js +2 -0
- package/dist/domain/types/miner.d.ts +15 -0
- package/dist/domain/types/miner.js +1 -0
- package/dist/domain/utils/chart-data-check.d.ts +77 -0
- package/dist/domain/utils/chart-data-check.js +79 -0
- package/dist/domain/utils/container-utils.d.ts +1 -0
- package/dist/domain/utils/container-utils.js +58 -0
- package/dist/domain/utils/device-utils.d.ts +46 -0
- package/dist/domain/utils/device-utils.js +164 -0
- package/dist/domain/utils/list-view-utils.d.ts +5 -0
- package/dist/domain/utils/list-view-utils.js +1 -0
- package/dist/domain/utils/notification-utils.d.ts +26 -0
- package/dist/domain/utils/notification-utils.js +91 -0
- package/dist/domain/utils/status-utils.d.ts +19 -0
- package/dist/domain/utils/status-utils.js +18 -0
- package/dist/domain/utils/use-notification.d.ts +39 -0
- package/dist/domain/utils/use-notification.js +53 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +20 -0
- package/dist/primitives/components/accordion/accordion.example.d.ts +1 -0
- package/dist/primitives/components/accordion/accordion.example.js +6 -0
- package/dist/primitives/components/accordion/index.d.ts +116 -0
- package/dist/primitives/components/accordion/index.js +94 -0
- package/dist/primitives/components/action-button/action-button.example.d.ts +1 -0
- package/dist/primitives/components/action-button/action-button.example.js +17 -0
- package/dist/primitives/components/action-button/index.d.ts +83 -0
- package/dist/primitives/components/action-button/index.js +55 -0
- package/dist/primitives/components/alert/alert.example.d.ts +1 -0
- package/dist/primitives/components/alert/alert.example.js +6 -0
- package/dist/primitives/components/alert/index.d.ts +52 -0
- package/dist/primitives/components/alert/index.js +35 -0
- package/dist/primitives/components/alert-dialog/alert-dialog.example.d.ts +1 -0
- package/dist/primitives/components/alert-dialog/alert-dialog.example.js +6 -0
- package/dist/primitives/components/alert-dialog/index.d.ts +62 -0
- package/dist/primitives/components/alert-dialog/index.js +84 -0
- package/dist/primitives/components/app-header/app-header.d.ts +23 -0
- package/dist/primitives/components/app-header/app-header.example.d.ts +5 -0
- package/dist/primitives/components/app-header/app-header.example.js +7 -0
- package/dist/primitives/components/app-header/app-header.js +25 -0
- package/dist/primitives/components/app-header/index.d.ts +2 -0
- package/dist/primitives/components/app-header/index.js +1 -0
- package/dist/primitives/components/area-chart/area-canvas.d.ts +9 -0
- package/dist/primitives/components/area-chart/area-canvas.js +11 -0
- package/dist/primitives/components/area-chart/area-chart.example.d.ts +1 -0
- package/dist/primitives/components/area-chart/area-chart.example.js +19 -0
- package/dist/primitives/components/area-chart/index.d.ts +31 -0
- package/dist/primitives/components/area-chart/index.js +51 -0
- package/dist/primitives/components/avatar/avatar.example.d.ts +1 -0
- package/dist/primitives/components/avatar/avatar.example.js +6 -0
- package/dist/primitives/components/avatar/index.d.ts +23 -0
- package/dist/primitives/components/avatar/index.js +29 -0
- package/dist/primitives/components/average-downtime-chart/average-downtime-chart.example.d.ts +1 -0
- package/dist/primitives/components/average-downtime-chart/average-downtime-chart.example.js +7 -0
- package/dist/primitives/components/average-downtime-chart/constants.d.ts +17 -0
- package/dist/primitives/components/average-downtime-chart/constants.js +19 -0
- package/dist/primitives/components/average-downtime-chart/index.d.ts +23 -0
- package/dist/primitives/components/average-downtime-chart/index.js +34 -0
- package/dist/primitives/components/average-downtime-chart/types.d.ts +51 -0
- package/dist/primitives/components/average-downtime-chart/types.js +1 -0
- package/dist/primitives/components/average-downtime-chart/utils.d.ts +39 -0
- package/dist/primitives/components/average-downtime-chart/utils.js +65 -0
- package/dist/primitives/components/badge/badge.example.d.ts +1 -0
- package/dist/primitives/components/badge/badge.example.js +6 -0
- package/dist/primitives/components/badge/index.d.ts +135 -0
- package/dist/primitives/components/badge/index.js +106 -0
- package/dist/primitives/components/bar-chart/bar-canvas.d.ts +11 -0
- package/dist/primitives/components/bar-chart/bar-canvas.js +16 -0
- package/dist/primitives/components/bar-chart/bar-chart.example.d.ts +1 -0
- package/dist/primitives/components/bar-chart/bar-chart.example.js +28 -0
- package/dist/primitives/components/bar-chart/index.d.ts +60 -0
- package/dist/primitives/components/bar-chart/index.js +156 -0
- package/dist/primitives/components/breadcrumbs/breadcrumbs.example.d.ts +1 -0
- package/dist/primitives/components/breadcrumbs/breadcrumbs.example.js +10 -0
- package/dist/primitives/components/breadcrumbs/index.d.ts +48 -0
- package/dist/primitives/components/breadcrumbs/index.js +34 -0
- package/dist/primitives/components/btc-average-price/btc-average-price.example.d.ts +1 -0
- package/dist/primitives/components/btc-average-price/btc-average-price.example.js +6 -0
- package/dist/primitives/components/btc-average-price/constants.d.ts +4 -0
- package/dist/primitives/components/btc-average-price/constants.js +4 -0
- package/dist/primitives/components/btc-average-price/index.d.ts +24 -0
- package/dist/primitives/components/btc-average-price/index.js +15 -0
- package/dist/primitives/components/btc-average-price/utils.d.ts +1 -0
- package/dist/primitives/components/btc-average-price/utils.js +7 -0
- package/dist/primitives/components/button/button.example.d.ts +1 -0
- package/dist/primitives/components/button/button.example.js +6 -0
- package/dist/primitives/components/button/index.d.ts +98 -0
- package/dist/primitives/components/button/index.js +29 -0
- package/dist/primitives/components/card/card.example.d.ts +1 -0
- package/dist/primitives/components/card/card.example.js +6 -0
- package/dist/primitives/components/card/index.d.ts +40 -0
- package/dist/primitives/components/card/index.js +105 -0
- package/dist/primitives/components/cascader/cascader.example.d.ts +1 -0
- package/dist/primitives/components/cascader/cascader.example.js +33 -0
- package/dist/primitives/components/cascader/index.d.ts +197 -0
- package/dist/primitives/components/cascader/index.js +395 -0
- package/dist/primitives/components/chart-container/chart-container.example.d.ts +1 -0
- package/dist/primitives/components/chart-container/chart-container.example.js +29 -0
- package/dist/primitives/components/chart-container/index.d.ts +111 -0
- package/dist/primitives/components/chart-container/index.js +60 -0
- package/dist/primitives/components/chart-stats-footer/chart-stats-footer.example.d.ts +1 -0
- package/dist/primitives/components/chart-stats-footer/chart-stats-footer.example.js +14 -0
- package/dist/primitives/components/chart-stats-footer/index.d.ts +6 -0
- package/dist/primitives/components/chart-stats-footer/index.js +31 -0
- package/dist/primitives/components/chart-stats-footer/types.d.ts +28 -0
- package/dist/primitives/components/chart-stats-footer/types.js +1 -0
- package/dist/primitives/components/checkbox/checkbox.example.d.ts +1 -0
- package/dist/primitives/components/checkbox/checkbox.example.js +10 -0
- package/dist/primitives/components/checkbox/index.d.ts +94 -0
- package/dist/primitives/components/checkbox/index.js +18 -0
- package/dist/primitives/components/currency-toggler/currency-toggler.example.d.ts +1 -0
- package/dist/primitives/components/currency-toggler/currency-toggler.example.js +15 -0
- package/dist/primitives/components/currency-toggler/index.d.ts +48 -0
- package/dist/primitives/components/currency-toggler/index.js +38 -0
- package/dist/primitives/components/data-label/constants.d.ts +8 -0
- package/dist/primitives/components/data-label/constants.js +8 -0
- package/dist/primitives/components/data-label/data-label.example.d.ts +1 -0
- package/dist/primitives/components/data-label/data-label.example.js +10 -0
- package/dist/primitives/components/data-label/index.d.ts +34 -0
- package/dist/primitives/components/data-label/index.js +27 -0
- package/dist/primitives/components/data-table/data-table-body.d.ts +16 -0
- package/dist/primitives/components/data-table/data-table-body.js +44 -0
- package/dist/primitives/components/data-table/data-table-cell-align.d.ts +3 -0
- package/dist/primitives/components/data-table/data-table-cell-align.js +5 -0
- package/dist/primitives/components/data-table/data-table-header.d.ts +7 -0
- package/dist/primitives/components/data-table/data-table-header.js +27 -0
- package/dist/primitives/components/data-table/data-table.constants.d.ts +4 -0
- package/dist/primitives/components/data-table/data-table.constants.js +4 -0
- package/dist/primitives/components/data-table/data-table.d.ts +139 -0
- package/dist/primitives/components/data-table/data-table.example.d.ts +1 -0
- package/dist/primitives/components/data-table/data-table.example.js +16 -0
- package/dist/primitives/components/data-table/data-table.js +154 -0
- package/dist/primitives/components/data-table/index.d.ts +2 -0
- package/dist/primitives/components/data-table/index.js +2 -0
- package/dist/primitives/components/data-table/types.d.ts +1 -0
- package/dist/primitives/components/data-table/types.js +1 -0
- package/dist/primitives/components/date-picker/date-picker.example.d.ts +1 -0
- package/dist/primitives/components/date-picker/date-picker.example.js +11 -0
- package/dist/primitives/components/date-picker/index.d.ts +209 -0
- package/dist/primitives/components/date-picker/index.js +129 -0
- package/dist/primitives/components/detail-legend/detail-legend.example.d.ts +1 -0
- package/dist/primitives/components/detail-legend/detail-legend.example.js +34 -0
- package/dist/primitives/components/detail-legend/index.d.ts +6 -0
- package/dist/primitives/components/detail-legend/index.js +48 -0
- package/dist/primitives/components/detail-legend/types.d.ts +26 -0
- package/dist/primitives/components/detail-legend/types.js +1 -0
- package/dist/primitives/components/dialog/dialog.example.d.ts +1 -0
- package/dist/primitives/components/dialog/dialog.example.js +10 -0
- package/dist/primitives/components/dialog/index.d.ts +86 -0
- package/dist/primitives/components/dialog/index.js +82 -0
- package/dist/primitives/components/divider/divider.example.d.ts +1 -0
- package/dist/primitives/components/divider/divider.example.js +6 -0
- package/dist/primitives/components/divider/index.d.ts +42 -0
- package/dist/primitives/components/divider/index.js +18 -0
- package/dist/primitives/components/doughnut-chart/doughnut-canvas.d.ts +6 -0
- package/dist/primitives/components/doughnut-chart/doughnut-canvas.js +11 -0
- package/dist/primitives/components/doughnut-chart/doughnut-chart.example.d.ts +1 -0
- package/dist/primitives/components/doughnut-chart/doughnut-chart.example.js +17 -0
- package/dist/primitives/components/doughnut-chart/index.d.ts +70 -0
- package/dist/primitives/components/doughnut-chart/index.js +106 -0
- package/dist/primitives/components/dropdown-menu/dropdown-menu.example.d.ts +1 -0
- package/dist/primitives/components/dropdown-menu/dropdown-menu.example.js +11 -0
- package/dist/primitives/components/dropdown-menu/index.d.ts +72 -0
- package/dist/primitives/components/dropdown-menu/index.js +67 -0
- package/dist/primitives/components/empty-state/empty-state.example.d.ts +1 -0
- package/dist/primitives/components/empty-state/empty-state.example.js +6 -0
- package/dist/primitives/components/empty-state/index.d.ts +40 -0
- package/dist/primitives/components/empty-state/index.js +37 -0
- package/dist/primitives/components/error-boundary/error-boundary.example.d.ts +1 -0
- package/dist/primitives/components/error-boundary/error-boundary.example.js +18 -0
- package/dist/primitives/components/error-boundary/index.d.ts +58 -0
- package/dist/primitives/components/error-boundary/index.js +58 -0
- package/dist/primitives/components/error-card/error-card.example.d.ts +1 -0
- package/dist/primitives/components/error-card/error-card.example.js +6 -0
- package/dist/primitives/components/error-card/index.d.ts +35 -0
- package/dist/primitives/components/error-card/index.js +21 -0
- package/dist/primitives/components/form/form-fields.d.ts +270 -0
- package/dist/primitives/components/form/form-fields.js +226 -0
- package/dist/primitives/components/form/form-hooks.d.ts +50 -0
- package/dist/primitives/components/form/form-hooks.js +35 -0
- package/dist/primitives/components/form/form-utils.d.ts +215 -0
- package/dist/primitives/components/form/form-utils.js +286 -0
- package/dist/primitives/components/form/form.example.d.ts +1 -0
- package/dist/primitives/components/form/form.example.js +23 -0
- package/dist/primitives/components/form/index.d.ts +116 -0
- package/dist/primitives/components/form/index.js +128 -0
- package/dist/primitives/components/gauge-chart/constants.d.ts +20 -0
- package/dist/primitives/components/gauge-chart/constants.js +21 -0
- package/dist/primitives/components/gauge-chart/gauge-chart.example.d.ts +1 -0
- package/dist/primitives/components/gauge-chart/gauge-chart.example.js +6 -0
- package/dist/primitives/components/gauge-chart/gauge-svg.d.ts +3 -0
- package/dist/primitives/components/gauge-chart/gauge-svg.js +59 -0
- package/dist/primitives/components/gauge-chart/index.d.ts +75 -0
- package/dist/primitives/components/gauge-chart/index.js +28 -0
- package/dist/primitives/components/gauge-chart/types.d.ts +25 -0
- package/dist/primitives/components/gauge-chart/types.js +1 -0
- package/dist/primitives/components/gauge-chart/utils.d.ts +14 -0
- package/dist/primitives/components/gauge-chart/utils.js +86 -0
- package/dist/primitives/components/heatmap/heatmap-legend.d.ts +5 -0
- package/dist/primitives/components/heatmap/heatmap-legend.js +20 -0
- package/dist/primitives/components/heatmap/heatmap.example.d.ts +1 -0
- package/dist/primitives/components/heatmap/heatmap.example.js +11 -0
- package/dist/primitives/components/heatmap/index.d.ts +28 -0
- package/dist/primitives/components/heatmap/index.js +50 -0
- package/dist/primitives/components/heatmap/types.d.ts +78 -0
- package/dist/primitives/components/heatmap/types.js +1 -0
- package/dist/primitives/components/heatmap/utils.d.ts +9 -0
- package/dist/primitives/components/heatmap/utils.js +22 -0
- package/dist/primitives/components/icons/actions-tick-icon.d.ts +5 -0
- package/dist/primitives/components/icons/actions-tick-icon.js +9 -0
- package/dist/primitives/components/icons/alert-triangle-icon.d.ts +5 -0
- package/dist/primitives/components/icons/alert-triangle-icon.js +9 -0
- package/dist/primitives/components/icons/alerts-nav-icon.d.ts +5 -0
- package/dist/primitives/components/icons/alerts-nav-icon.js +9 -0
- package/dist/primitives/components/icons/arrow-icon.d.ts +18 -0
- package/dist/primitives/components/icons/arrow-icon.js +24 -0
- package/dist/primitives/components/icons/btc-card-icon.d.ts +5 -0
- package/dist/primitives/components/icons/btc-card-icon.js +10 -0
- package/dist/primitives/components/icons/cabinet-widget-nav-icon.d.ts +5 -0
- package/dist/primitives/components/icons/cabinet-widget-nav-icon.js +9 -0
- package/dist/primitives/components/icons/cloudy-icon.d.ts +5 -0
- package/dist/primitives/components/icons/cloudy-icon.js +10 -0
- package/dist/primitives/components/icons/comment-icon-common.d.ts +5 -0
- package/dist/primitives/components/icons/comment-icon-common.js +10 -0
- package/dist/primitives/components/icons/comment-icon.d.ts +5 -0
- package/dist/primitives/components/icons/comment-icon.js +9 -0
- package/dist/primitives/components/icons/consumption-icon.d.ts +5 -0
- package/dist/primitives/components/icons/consumption-icon.js +9 -0
- package/dist/primitives/components/icons/container-widgets-nav-icon.d.ts +5 -0
- package/dist/primitives/components/icons/container-widgets-nav-icon.js +9 -0
- package/dist/primitives/components/icons/cooling-drop-icon.d.ts +5 -0
- package/dist/primitives/components/icons/cooling-drop-icon.js +9 -0
- package/dist/primitives/components/icons/create-icon.d.ts +3 -0
- package/dist/primitives/components/icons/create-icon.js +13 -0
- package/dist/primitives/components/icons/dashboard-nav-icon.d.ts +5 -0
- package/dist/primitives/components/icons/dashboard-nav-icon.js +9 -0
- package/dist/primitives/components/icons/decrease-icon.d.ts +5 -0
- package/dist/primitives/components/icons/decrease-icon.js +9 -0
- package/dist/primitives/components/icons/efficiency-icon.d.ts +5 -0
- package/dist/primitives/components/icons/efficiency-icon.js +9 -0
- package/dist/primitives/components/icons/error-icon.d.ts +3 -0
- package/dist/primitives/components/icons/error-icon.js +2 -0
- package/dist/primitives/components/icons/error-status-icon.d.ts +5 -0
- package/dist/primitives/components/icons/error-status-icon.js +9 -0
- package/dist/primitives/components/icons/explorer-nav-icon.d.ts +5 -0
- package/dist/primitives/components/icons/explorer-nav-icon.js +9 -0
- package/dist/primitives/components/icons/export-icon.d.ts +5 -0
- package/dist/primitives/components/icons/export-icon.js +9 -0
- package/dist/primitives/components/icons/fan-icon.d.ts +5 -0
- package/dist/primitives/components/icons/fan-icon.js +10 -0
- package/dist/primitives/components/icons/farm-alert-icon.d.ts +5 -0
- package/dist/primitives/components/icons/farm-alert-icon.js +9 -0
- package/dist/primitives/components/icons/farm-star-icon.d.ts +5 -0
- package/dist/primitives/components/icons/farm-star-icon.js +9 -0
- package/dist/primitives/components/icons/farms-nav-icon.d.ts +5 -0
- package/dist/primitives/components/icons/farms-nav-icon.js +9 -0
- package/dist/primitives/components/icons/financials-nav-icon.d.ts +5 -0
- package/dist/primitives/components/icons/financials-nav-icon.js +9 -0
- package/dist/primitives/components/icons/fluid-alarm-icon.d.ts +5 -0
- package/dist/primitives/components/icons/fluid-alarm-icon.js +10 -0
- package/dist/primitives/components/icons/frequency-icon.d.ts +5 -0
- package/dist/primitives/components/icons/frequency-icon.js +9 -0
- package/dist/primitives/components/icons/google-icon.d.ts +5 -0
- package/dist/primitives/components/icons/google-icon.js +10 -0
- package/dist/primitives/components/icons/hashrate-card-icon.d.ts +5 -0
- package/dist/primitives/components/icons/hashrate-card-icon.js +9 -0
- package/dist/primitives/components/icons/hashrate-stat-icon.d.ts +5 -0
- package/dist/primitives/components/icons/hashrate-stat-icon.js +9 -0
- package/dist/primitives/components/icons/header-stat-divider-icon.d.ts +18 -0
- package/dist/primitives/components/icons/header-stat-divider-icon.js +22 -0
- package/dist/primitives/components/icons/icons.example.d.ts +1 -0
- package/dist/primitives/components/icons/icons.example.js +8 -0
- package/dist/primitives/components/icons/increase-icon.d.ts +5 -0
- package/dist/primitives/components/icons/increase-icon.js +9 -0
- package/dist/primitives/components/icons/index.d.ts +78 -0
- package/dist/primitives/components/icons/index.js +87 -0
- package/dist/primitives/components/icons/inventory-nav-icon.d.ts +5 -0
- package/dist/primitives/components/icons/inventory-nav-icon.js +9 -0
- package/dist/primitives/components/icons/live-icon.d.ts +5 -0
- package/dist/primitives/components/icons/live-icon.js +10 -0
- package/dist/primitives/components/icons/menu-icon.d.ts +5 -0
- package/dist/primitives/components/icons/menu-icon.js +9 -0
- package/dist/primitives/components/icons/miner-explorer-icon.d.ts +5 -0
- package/dist/primitives/components/icons/miner-explorer-icon.js +9 -0
- package/dist/primitives/components/icons/miner-overview-icon.d.ts +5 -0
- package/dist/primitives/components/icons/miner-overview-icon.js +9 -0
- package/dist/primitives/components/icons/miners-overview-nav-icon.d.ts +5 -0
- package/dist/primitives/components/icons/miners-overview-nav-icon.js +9 -0
- package/dist/primitives/components/icons/miners-stat-icon.d.ts +5 -0
- package/dist/primitives/components/icons/miners-stat-icon.js +9 -0
- package/dist/primitives/components/icons/mining-icon.d.ts +3 -0
- package/dist/primitives/components/icons/mining-icon.js +2 -0
- package/dist/primitives/components/icons/mining-status-icon.d.ts +5 -0
- package/dist/primitives/components/icons/mining-status-icon.js +10 -0
- package/dist/primitives/components/icons/mode-icon.d.ts +5 -0
- package/dist/primitives/components/icons/mode-icon.js +9 -0
- package/dist/primitives/components/icons/notification-bell-icon.d.ts +5 -0
- package/dist/primitives/components/icons/notification-bell-icon.js +9 -0
- package/dist/primitives/components/icons/offline-alarm-icon.d.ts +5 -0
- package/dist/primitives/components/icons/offline-alarm-icon.js +9 -0
- package/dist/primitives/components/icons/offline-icon.d.ts +11 -0
- package/dist/primitives/components/icons/offline-icon.js +10 -0
- package/dist/primitives/components/icons/offline-status-icon.d.ts +5 -0
- package/dist/primitives/components/icons/offline-status-icon.js +9 -0
- package/dist/primitives/components/icons/operations-nav-icon.d.ts +5 -0
- package/dist/primitives/components/icons/operations-nav-icon.js +9 -0
- package/dist/primitives/components/icons/other-alarm-icon.d.ts +5 -0
- package/dist/primitives/components/icons/other-alarm-icon.js +10 -0
- package/dist/primitives/components/icons/partly-cloudy-icon.d.ts +5 -0
- package/dist/primitives/components/icons/partly-cloudy-icon.js +10 -0
- package/dist/primitives/components/icons/pin-icon.d.ts +5 -0
- package/dist/primitives/components/icons/pin-icon.js +9 -0
- package/dist/primitives/components/icons/pool-manager-nav-icon.d.ts +5 -0
- package/dist/primitives/components/icons/pool-manager-nav-icon.js +9 -0
- package/dist/primitives/components/icons/pools-icon.d.ts +5 -0
- package/dist/primitives/components/icons/pools-icon.js +9 -0
- package/dist/primitives/components/icons/power-icon.d.ts +5 -0
- package/dist/primitives/components/icons/power-icon.js +9 -0
- package/dist/primitives/components/icons/pressure-alarm-icon.d.ts +5 -0
- package/dist/primitives/components/icons/pressure-alarm-icon.js +10 -0
- package/dist/primitives/components/icons/production-data-icon.d.ts +5 -0
- package/dist/primitives/components/icons/production-data-icon.js +10 -0
- package/dist/primitives/components/icons/profit-arrow-icon.d.ts +5 -0
- package/dist/primitives/components/icons/profit-arrow-icon.js +9 -0
- package/dist/primitives/components/icons/rain-thunder-icon.d.ts +5 -0
- package/dist/primitives/components/icons/rain-thunder-icon.js +10 -0
- package/dist/primitives/components/icons/rainy-icon.d.ts +5 -0
- package/dist/primitives/components/icons/rainy-icon.js +10 -0
- package/dist/primitives/components/icons/reporting-nav-icon.d.ts +5 -0
- package/dist/primitives/components/icons/reporting-nav-icon.js +9 -0
- package/dist/primitives/components/icons/right-arrow-icon.d.ts +5 -0
- package/dist/primitives/components/icons/right-arrow-icon.js +9 -0
- package/dist/primitives/components/icons/right-navigate-icon.d.ts +5 -0
- package/dist/primitives/components/icons/right-navigate-icon.js +9 -0
- package/dist/primitives/components/icons/scale-control-icon.d.ts +5 -0
- package/dist/primitives/components/icons/scale-control-icon.js +9 -0
- package/dist/primitives/components/icons/settings-header-icon.d.ts +5 -0
- package/dist/primitives/components/icons/settings-header-icon.js +9 -0
- package/dist/primitives/components/icons/settings-nav-icon.d.ts +5 -0
- package/dist/primitives/components/icons/settings-nav-icon.js +9 -0
- package/dist/primitives/components/icons/sign-out-icon.d.ts +5 -0
- package/dist/primitives/components/icons/sign-out-icon.js +9 -0
- package/dist/primitives/components/icons/site-overview-icon.d.ts +5 -0
- package/dist/primitives/components/icons/site-overview-icon.js +9 -0
- package/dist/primitives/components/icons/sleep-icon.d.ts +3 -0
- package/dist/primitives/components/icons/sleep-icon.js +2 -0
- package/dist/primitives/components/icons/sleep-status-icon.d.ts +5 -0
- package/dist/primitives/components/icons/sleep-status-icon.js +9 -0
- package/dist/primitives/components/icons/snowy-icon.d.ts +5 -0
- package/dist/primitives/components/icons/snowy-icon.js +10 -0
- package/dist/primitives/components/icons/sunny-icon.d.ts +5 -0
- package/dist/primitives/components/icons/sunny-icon.js +10 -0
- package/dist/primitives/components/icons/temperature-alarm-icon.d.ts +5 -0
- package/dist/primitives/components/icons/temperature-alarm-icon.js +10 -0
- package/dist/primitives/components/icons/temperature-celsius-icon.d.ts +5 -0
- package/dist/primitives/components/icons/temperature-celsius-icon.js +9 -0
- package/dist/primitives/components/icons/temperature-indicator-icon.d.ts +5 -0
- package/dist/primitives/components/icons/temperature-indicator-icon.js +9 -0
- package/dist/primitives/components/icons/temperature-weather-icon.d.ts +5 -0
- package/dist/primitives/components/icons/temperature-weather-icon.js +10 -0
- package/dist/primitives/components/icons/types.d.ts +21 -0
- package/dist/primitives/components/icons/types.js +1 -0
- package/dist/primitives/components/icons/unpin-icon.d.ts +5 -0
- package/dist/primitives/components/icons/unpin-icon.js +9 -0
- package/dist/primitives/components/icons/user-avatar-icon.d.ts +5 -0
- package/dist/primitives/components/icons/user-avatar-icon.js +9 -0
- package/dist/primitives/components/icons/user-management-nav-icon.d.ts +5 -0
- package/dist/primitives/components/icons/user-management-nav-icon.js +9 -0
- package/dist/primitives/components/icons/volume-off-icon.d.ts +5 -0
- package/dist/primitives/components/icons/volume-off-icon.js +9 -0
- package/dist/primitives/components/icons/volume-on-icon.d.ts +5 -0
- package/dist/primitives/components/icons/volume-on-icon.js +9 -0
- package/dist/primitives/components/indicator/index.d.ts +89 -0
- package/dist/primitives/components/indicator/index.js +42 -0
- package/dist/primitives/components/indicator/indicator.example.d.ts +1 -0
- package/dist/primitives/components/indicator/indicator.example.js +6 -0
- package/dist/primitives/components/input/index.d.ts +63 -0
- package/dist/primitives/components/input/index.js +39 -0
- package/dist/primitives/components/input/input.example.d.ts +1 -0
- package/dist/primitives/components/input/input.example.js +10 -0
- package/dist/primitives/components/label/index.d.ts +20 -0
- package/dist/primitives/components/label/index.js +19 -0
- package/dist/primitives/components/label/label.example.d.ts +1 -0
- package/dist/primitives/components/label/label.example.js +8 -0
- package/dist/primitives/components/labeled-card/index.d.ts +1 -0
- package/dist/primitives/components/labeled-card/index.js +1 -0
- package/dist/primitives/components/labeled-card/labeled-card.d.ts +116 -0
- package/dist/primitives/components/labeled-card/labeled-card.example.d.ts +1 -0
- package/dist/primitives/components/labeled-card/labeled-card.example.js +13 -0
- package/dist/primitives/components/labeled-card/labeled-card.js +37 -0
- package/dist/primitives/components/lazy-tab-wrapper/index.d.ts +29 -0
- package/dist/primitives/components/lazy-tab-wrapper/index.js +51 -0
- package/dist/primitives/components/lazy-tab-wrapper/lazy-tab-wrapper.example.d.ts +1 -0
- package/dist/primitives/components/lazy-tab-wrapper/lazy-tab-wrapper.example.js +18 -0
- package/dist/primitives/components/line-chart/index.d.ts +11 -0
- package/dist/primitives/components/line-chart/index.js +474 -0
- package/dist/primitives/components/line-chart/line-chart.constants.d.ts +51 -0
- package/dist/primitives/components/line-chart/line-chart.constants.js +37 -0
- package/dist/primitives/components/line-chart/line-chart.example.d.ts +1 -0
- package/dist/primitives/components/line-chart/line-chart.example.js +24 -0
- package/dist/primitives/components/line-chart/line-chart.utils.d.ts +54 -0
- package/dist/primitives/components/line-chart/line-chart.utils.js +105 -0
- package/dist/primitives/components/line-chart/types.d.ts +118 -0
- package/dist/primitives/components/line-chart/types.js +1 -0
- package/dist/primitives/components/list-view-filter/index.d.ts +37 -0
- package/dist/primitives/components/list-view-filter/index.js +129 -0
- package/dist/primitives/components/list-view-filter/list-view-filter.example.d.ts +1 -0
- package/dist/primitives/components/list-view-filter/list-view-filter.example.js +54 -0
- package/dist/primitives/components/loader/index.d.ts +76 -0
- package/dist/primitives/components/loader/index.js +28 -0
- package/dist/primitives/components/loader/loader.example.d.ts +1 -0
- package/dist/primitives/components/loader/loader.example.js +6 -0
- package/dist/primitives/components/logs/activity-log-icon.d.ts +8 -0
- package/dist/primitives/components/logs/activity-log-icon.js +25 -0
- package/dist/primitives/components/logs/constants.d.ts +11 -0
- package/dist/primitives/components/logs/constants.js +11 -0
- package/dist/primitives/components/logs/log-dot.d.ts +8 -0
- package/dist/primitives/components/logs/log-dot.js +34 -0
- package/dist/primitives/components/logs/log-item.d.ts +8 -0
- package/dist/primitives/components/logs/log-item.js +20 -0
- package/dist/primitives/components/logs/log-row.d.ts +8 -0
- package/dist/primitives/components/logs/log-row.js +14 -0
- package/dist/primitives/components/logs/logs-card.d.ts +8 -0
- package/dist/primitives/components/logs/logs-card.js +26 -0
- package/dist/primitives/components/logs/logs.example.d.ts +1 -0
- package/dist/primitives/components/logs/logs.example.js +54 -0
- package/dist/primitives/components/logs/types.d.ts +81 -0
- package/dist/primitives/components/logs/types.js +1 -0
- package/dist/primitives/components/mdk-wordmark/index.d.ts +21 -0
- package/dist/primitives/components/mdk-wordmark/index.js +28 -0
- package/dist/primitives/components/mdk-wordmark/mdk-wordmark.example.d.ts +4 -0
- package/dist/primitives/components/mdk-wordmark/mdk-wordmark.example.js +6 -0
- package/dist/primitives/components/min-max-avg/index.d.ts +6 -0
- package/dist/primitives/components/min-max-avg/index.js +30 -0
- package/dist/primitives/components/min-max-avg/min-max-avg.example.d.ts +1 -0
- package/dist/primitives/components/min-max-avg/min-max-avg.example.js +6 -0
- package/dist/primitives/components/min-max-avg/types.d.ts +12 -0
- package/dist/primitives/components/min-max-avg/types.js +1 -0
- package/dist/primitives/components/mosaic/index.d.ts +31 -0
- package/dist/primitives/components/mosaic/index.js +152 -0
- package/dist/primitives/components/mosaic/mosaic.example.d.ts +1 -0
- package/dist/primitives/components/mosaic/mosaic.example.js +6 -0
- package/dist/primitives/components/multi-level-select/index.d.ts +40 -0
- package/dist/primitives/components/multi-level-select/index.js +34 -0
- package/dist/primitives/components/multi-level-select/multi-level-select.example.d.ts +1 -0
- package/dist/primitives/components/multi-level-select/multi-level-select.example.js +10 -0
- package/dist/primitives/components/multi-select/index.d.ts +79 -0
- package/dist/primitives/components/multi-select/index.js +191 -0
- package/dist/primitives/components/multi-select/keyboard-activation.d.ts +4 -0
- package/dist/primitives/components/multi-select/keyboard-activation.js +8 -0
- package/dist/primitives/components/multi-select/multi-select.example.d.ts +1 -0
- package/dist/primitives/components/multi-select/multi-select.example.js +16 -0
- package/dist/primitives/components/not-found-page/index.d.ts +34 -0
- package/dist/primitives/components/not-found-page/index.js +22 -0
- package/dist/primitives/components/not-found-page/not-found-page.example.d.ts +1 -0
- package/dist/primitives/components/not-found-page/not-found-page.example.js +10 -0
- package/dist/primitives/components/operations-energy-cost-chart/constants.d.ts +9 -0
- package/dist/primitives/components/operations-energy-cost-chart/constants.js +10 -0
- package/dist/primitives/components/operations-energy-cost-chart/index.d.ts +20 -0
- package/dist/primitives/components/operations-energy-cost-chart/index.js +33 -0
- package/dist/primitives/components/operations-energy-cost-chart/operations-energy-cost-chart.example.d.ts +1 -0
- package/dist/primitives/components/operations-energy-cost-chart/operations-energy-cost-chart.example.js +6 -0
- package/dist/primitives/components/operations-energy-cost-chart/types.d.ts +32 -0
- package/dist/primitives/components/operations-energy-cost-chart/types.js +1 -0
- package/dist/primitives/components/operations-energy-cost-chart/utils.d.ts +28 -0
- package/dist/primitives/components/operations-energy-cost-chart/utils.js +57 -0
- package/dist/primitives/components/pagination/index.d.ts +72 -0
- package/dist/primitives/components/pagination/index.js +90 -0
- package/dist/primitives/components/pagination/pagination.example.d.ts +1 -0
- package/dist/primitives/components/pagination/pagination.example.js +14 -0
- package/dist/primitives/components/popover/index.d.ts +143 -0
- package/dist/primitives/components/popover/index.js +81 -0
- package/dist/primitives/components/popover/popover.example.d.ts +1 -0
- package/dist/primitives/components/popover/popover.example.js +8 -0
- package/dist/primitives/components/progress/index.d.ts +7 -0
- package/dist/primitives/components/progress/index.js +7 -0
- package/dist/primitives/components/progress/progress.example.d.ts +1 -0
- package/dist/primitives/components/progress/progress.example.js +7 -0
- package/dist/primitives/components/radio/index.d.ts +186 -0
- package/dist/primitives/components/radio/index.js +55 -0
- package/dist/primitives/components/radio/radio.example.d.ts +1 -0
- package/dist/primitives/components/radio/radio.example.js +11 -0
- package/dist/primitives/components/select/index.d.ts +110 -0
- package/dist/primitives/components/select/index.js +96 -0
- package/dist/primitives/components/select/select.example.d.ts +1 -0
- package/dist/primitives/components/select/select.example.js +10 -0
- package/dist/primitives/components/sidebar/helpers.d.ts +3 -0
- package/dist/primitives/components/sidebar/helpers.js +4 -0
- package/dist/primitives/components/sidebar/index.d.ts +8 -0
- package/dist/primitives/components/sidebar/index.js +58 -0
- package/dist/primitives/components/sidebar/menu-item.d.ts +5 -0
- package/dist/primitives/components/sidebar/menu-item.js +97 -0
- package/dist/primitives/components/sidebar/overlay-content.d.ts +5 -0
- package/dist/primitives/components/sidebar/overlay-content.js +12 -0
- package/dist/primitives/components/sidebar/sidebar.example.d.ts +1 -0
- package/dist/primitives/components/sidebar/sidebar.example.js +16 -0
- package/dist/primitives/components/sidebar/types.d.ts +70 -0
- package/dist/primitives/components/sidebar/types.js +1 -0
- package/dist/primitives/components/sidebar/use-sidebar-state.d.ts +18 -0
- package/dist/primitives/components/sidebar/use-sidebar-state.js +85 -0
- package/dist/primitives/components/skeleton/index.d.ts +39 -0
- package/dist/primitives/components/skeleton/index.js +20 -0
- package/dist/primitives/components/skeleton/skeleton.example.d.ts +1 -0
- package/dist/primitives/components/skeleton/skeleton.example.js +6 -0
- package/dist/primitives/components/slider/index.d.ts +7 -0
- package/dist/primitives/components/slider/index.js +7 -0
- package/dist/primitives/components/slider/slider.example.d.ts +1 -0
- package/dist/primitives/components/slider/slider.example.js +65 -0
- package/dist/primitives/components/spinner/index.d.ts +92 -0
- package/dist/primitives/components/spinner/index.js +31 -0
- package/dist/primitives/components/spinner/spinner.example.d.ts +1 -0
- package/dist/primitives/components/spinner/spinner.example.js +8 -0
- package/dist/primitives/components/switch/index.d.ts +88 -0
- package/dist/primitives/components/switch/index.js +18 -0
- package/dist/primitives/components/switch/switch.example.d.ts +1 -0
- package/dist/primitives/components/switch/switch.example.js +10 -0
- package/dist/primitives/components/tabs/index.d.ts +68 -0
- package/dist/primitives/components/tabs/index.js +51 -0
- package/dist/primitives/components/tabs/tabs.example.d.ts +1 -0
- package/dist/primitives/components/tabs/tabs.example.js +8 -0
- package/dist/primitives/components/tag/index.d.ts +44 -0
- package/dist/primitives/components/tag/index.js +20 -0
- package/dist/primitives/components/tag/tag.example.d.ts +1 -0
- package/dist/primitives/components/tag/tag.example.js +6 -0
- package/dist/primitives/components/tag-input/index.d.ts +142 -0
- package/dist/primitives/components/tag-input/index.js +289 -0
- package/dist/primitives/components/tag-input/tag-input.example.d.ts +1 -0
- package/dist/primitives/components/tag-input/tag-input.example.js +18 -0
- package/dist/primitives/components/textarea/index.d.ts +34 -0
- package/dist/primitives/components/textarea/index.js +29 -0
- package/dist/primitives/components/textarea/textarea.example.d.ts +1 -0
- package/dist/primitives/components/textarea/textarea.example.js +6 -0
- package/dist/primitives/components/threshold-line-chart/constants.d.ts +4 -0
- package/dist/primitives/components/threshold-line-chart/constants.js +10 -0
- package/dist/primitives/components/threshold-line-chart/index.d.ts +24 -0
- package/dist/primitives/components/threshold-line-chart/index.js +54 -0
- package/dist/primitives/components/threshold-line-chart/threshold-line-chart.example.d.ts +1 -0
- package/dist/primitives/components/threshold-line-chart/threshold-line-chart.example.js +17 -0
- package/dist/primitives/components/threshold-line-chart/types.d.ts +50 -0
- package/dist/primitives/components/threshold-line-chart/types.js +1 -0
- package/dist/primitives/components/threshold-line-chart/utils.d.ts +18 -0
- package/dist/primitives/components/threshold-line-chart/utils.js +66 -0
- package/dist/primitives/components/toast/index.d.ts +76 -0
- package/dist/primitives/components/toast/index.js +75 -0
- package/dist/primitives/components/toast/toast.example.d.ts +1 -0
- package/dist/primitives/components/toast/toast.example.js +10 -0
- package/dist/primitives/components/tooltip/index.d.ts +127 -0
- package/dist/primitives/components/tooltip/index.js +86 -0
- package/dist/primitives/components/tooltip/tooltip.example.d.ts +1 -0
- package/dist/primitives/components/tooltip/tooltip.example.js +8 -0
- package/dist/primitives/components/typography/index.d.ts +81 -0
- package/dist/primitives/components/typography/index.js +34 -0
- package/dist/primitives/components/typography/typography.example.d.ts +1 -0
- package/dist/primitives/components/typography/typography.example.js +8 -0
- package/dist/primitives/constants/charts.d.ts +27 -0
- package/dist/primitives/constants/charts.js +70 -0
- package/dist/primitives/constants/colors.d.ts +170 -0
- package/dist/primitives/constants/colors.js +201 -0
- package/dist/primitives/constants/index.d.ts +3 -0
- package/dist/primitives/constants/index.js +3 -0
- package/dist/primitives/constants/units.d.ts +56 -0
- package/dist/primitives/constants/units.js +48 -0
- package/dist/primitives/index.d.ts +85 -0
- package/dist/primitives/index.js +93 -0
- package/dist/primitives/theme/index.d.ts +12 -0
- package/dist/primitives/theme/index.js +7 -0
- package/dist/primitives/theme/tokens.d.ts +67 -0
- package/dist/primitives/theme/tokens.js +67 -0
- package/dist/primitives/theme/utils.d.ts +20 -0
- package/dist/primitives/theme/utils.js +47 -0
- package/dist/primitives/types/chart.d.ts +1 -0
- package/dist/primitives/types/chart.js +1 -0
- package/dist/primitives/types/common.d.ts +47 -0
- package/dist/primitives/types/common.js +4 -0
- package/dist/primitives/types/component.d.ts +23 -0
- package/dist/primitives/types/component.js +4 -0
- package/dist/primitives/types/index.d.ts +27 -0
- package/dist/primitives/types/index.js +6 -0
- package/dist/primitives/utils/array.d.ts +56 -0
- package/dist/primitives/utils/array.js +95 -0
- package/dist/primitives/utils/async.d.ts +17 -0
- package/dist/primitives/utils/async.js +23 -0
- package/dist/primitives/utils/chart-options.d.ts +233 -0
- package/dist/primitives/utils/chart-options.js +475 -0
- package/dist/primitives/utils/chart-tooltip.d.ts +37 -0
- package/dist/primitives/utils/chart-tooltip.js +208 -0
- package/dist/primitives/utils/chart.d.ts +93 -0
- package/dist/primitives/utils/chart.js +195 -0
- package/dist/primitives/utils/cn.d.ts +13 -0
- package/dist/primitives/utils/cn.js +15 -0
- package/dist/primitives/utils/color.d.ts +46 -0
- package/dist/primitives/utils/color.js +102 -0
- package/dist/primitives/utils/conversion.d.ts +63 -0
- package/dist/primitives/utils/conversion.js +100 -0
- package/dist/primitives/utils/date.d.ts +56 -0
- package/dist/primitives/utils/date.js +93 -0
- package/dist/primitives/utils/format.d.ts +150 -0
- package/dist/primitives/utils/format.js +272 -0
- package/dist/primitives/utils/index.d.ts +22 -0
- package/dist/primitives/utils/index.js +37 -0
- package/dist/primitives/utils/number.d.ts +132 -0
- package/dist/primitives/utils/number.js +162 -0
- package/dist/primitives/utils/string.d.ts +61 -0
- package/dist/primitives/utils/string.js +106 -0
- package/dist/primitives/utils/time.d.ts +85 -0
- package/dist/primitives/utils/time.js +135 -0
- package/dist/primitives/utils/types.d.ts +55 -0
- package/dist/primitives/utils/types.js +4 -0
- package/dist/primitives/utils/validation.d.ts +23 -0
- package/dist/primitives/utils/validation.js +56 -0
- package/dist/registry.json +1 -0
- package/dist/styles-domain.css +1 -0
- package/dist/styles.css +1 -0
- package/package.json +144 -1
- package/src/domain/components/active-incidents-card/USAGE.md +53 -0
- package/src/domain/components/active-incidents-card/active-incidents-card.example.tsx +41 -0
- package/src/domain/components/active-incidents-card/styles.scss +152 -0
- package/src/domain/components/alarm/USAGE.md +52 -0
- package/src/domain/components/alarm/alarm-contents/USAGE.md +32 -0
- package/src/domain/components/alarm/alarm-contents/alarm-contents.example.tsx +37 -0
- package/src/domain/components/alarm/alarm-contents/alarm-contents.scss +17 -0
- package/src/domain/components/alarm/alarm-row/USAGE.md +45 -0
- package/src/domain/components/alarm/alarm-row/alarm-row.example.tsx +24 -0
- package/src/domain/components/alarm/alarm-row/alarm-row.scss +74 -0
- package/src/domain/components/alarm/alarm.example.tsx +52 -0
- package/src/domain/components/alerts/USAGE.md +37 -0
- package/src/domain/components/alerts/alerts-panel.scss +36 -0
- package/src/domain/components/alerts/alerts-table-columns.scss +13 -0
- package/src/domain/components/alerts/alerts-table-title/USAGE.md +21 -0
- package/src/domain/components/alerts/alerts-table-title/alerts-table-title.example.tsx +8 -0
- package/src/domain/components/alerts/alerts-table-title/alerts-table-title.scss +16 -0
- package/src/domain/components/alerts/current-alerts/USAGE.md +52 -0
- package/src/domain/components/alerts/current-alerts/alert-confirmation-modal/USAGE.md +23 -0
- package/src/domain/components/alerts/current-alerts/alert-confirmation-modal/alert-confirmation-modal.example.tsx +18 -0
- package/src/domain/components/alerts/current-alerts/alert-confirmation-modal/alert-confirmation-modal.scss +14 -0
- package/src/domain/components/alerts/current-alerts/current-alerts.example.tsx +50 -0
- package/src/domain/components/alerts/historical-alerts/USAGE.md +52 -0
- package/src/domain/components/alerts/historical-alerts/historical-alerts.example.tsx +54 -0
- package/src/domain/components/alerts/tag-filter-bar/USAGE.md +30 -0
- package/src/domain/components/alerts/tag-filter-bar/tag-filter-bar.example.tsx +12 -0
- package/src/domain/components/alerts/tag-filter-bar/tag-filter-bar.scss +20 -0
- package/src/domain/components/auth/require-auth/USAGE.md +47 -0
- package/src/domain/components/auth/require-auth/require-auth.example.tsx +16 -0
- package/src/domain/components/auth/sign-in-google-button/USAGE.md +50 -0
- package/src/domain/components/auth/sign-in-google-button/sign-in-google-button.example.tsx +11 -0
- package/src/domain/components/composite/metric-card/USAGE.md +36 -0
- package/src/domain/components/composite/metric-card/metric-card.example.tsx +14 -0
- package/src/domain/components/composite/metric-card/styles.scss +35 -0
- package/src/domain/components/dashboard/dashboard-date-range-picker/USAGE.md +43 -0
- package/src/domain/components/dashboard/dashboard-date-range-picker/dashboard-date-range-picker.example.tsx +18 -0
- package/src/domain/components/dashboard/dashboard-date-range-picker/dashboard-date-range-picker.scss +31 -0
- package/src/domain/components/dashboard/export-button/USAGE.md +39 -0
- package/src/domain/components/dashboard/export-button/export-button.example.tsx +15 -0
- package/src/domain/components/dashboard/export-button/export-button.scss +42 -0
- package/src/domain/components/dashboard/power-mode-timeline-chart/USAGE.md +34 -0
- package/src/domain/components/dashboard/power-mode-timeline-chart/power-mode-timeline-chart.example.tsx +17 -0
- package/src/domain/components/dashboard/site-stats-bar/USAGE.md +40 -0
- package/src/domain/components/dashboard/site-stats-bar/site-stats-bar.example.tsx +20 -0
- package/src/domain/components/dashboard/site-stats-bar/site-stats-bar.scss +20 -0
- package/src/domain/components/dashboard/timeline-selector/USAGE.md +25 -0
- package/src/domain/components/dashboard/timeline-selector/timeline-selector.example.tsx +13 -0
- package/src/domain/components/data-box/content-box/content-box.scss +24 -0
- package/src/domain/components/data-box/data-row/data-row.scss +60 -0
- package/src/domain/components/data-box/generic-data-box/USAGE.md +25 -0
- package/src/domain/components/data-box/generic-data-box/generic-data-box.example.tsx +13 -0
- package/src/domain/components/data-box/generic-data-box/generic-data-box.scss +4 -0
- package/src/domain/components/device-explorer/USAGE.md +83 -0
- package/src/domain/components/device-explorer/components/device-card-col-text/styles.scss +19 -0
- package/src/domain/components/device-explorer/components/mining-status-indicator/styles.scss +9 -0
- package/src/domain/components/device-explorer/components/status-label/styles.scss +27 -0
- package/src/domain/components/device-explorer/device-explorer.example.tsx +60 -0
- package/src/domain/components/device-explorer/styles.scss +113 -0
- package/src/domain/components/enabled-disable-toggle/USAGE.md +29 -0
- package/src/domain/components/enabled-disable-toggle/enabled-disable-toggle.example.tsx +15 -0
- package/src/domain/components/enabled-disable-toggle/enabled-disable-toggle.scss +17 -0
- package/src/domain/components/header-actions/USAGE.md +99 -0
- package/src/domain/components/header-actions/header-actions.example.tsx +22 -0
- package/src/domain/components/header-actions/header-actions.scss +228 -0
- package/src/domain/components/header-stats/USAGE.md +102 -0
- package/src/domain/components/header-stats/header-stats-bar.scss +113 -0
- package/src/domain/components/header-stats/header-stats.example.tsx +27 -0
- package/src/domain/components/info-container/USAGE.md +27 -0
- package/src/domain/components/info-container/info-container.example.tsx +20 -0
- package/src/domain/components/info-container/info-container.scss +32 -0
- package/src/domain/components/line-chart-card/USAGE.md +62 -0
- package/src/domain/components/line-chart-card/line-chart-card.example.tsx +45 -0
- package/src/domain/components/line-chart-card/styles.scss +51 -0
- package/src/domain/components/miners-activity-chart/USAGE.md +46 -0
- package/src/domain/components/miners-activity-chart/miners-activity-chart.example.tsx +15 -0
- package/src/domain/components/miners-activity-chart/miners-activity-chart.scss +90 -0
- package/src/domain/components/mining-pools-panel/USAGE.md +61 -0
- package/src/domain/components/mining-pools-panel/mining-pools-panel.example.tsx +42 -0
- package/src/domain/components/mining-pools-panel/styles.scss +129 -0
- package/src/domain/components/pool-details-card/USAGE.md +39 -0
- package/src/domain/components/pool-details-card/pool-details-card.example.tsx +16 -0
- package/src/domain/components/pool-details-card/styles.scss +88 -0
- package/src/domain/components/pool-details-popover/USAGE.md +26 -0
- package/src/domain/components/pool-details-popover/pool-details-popover.example.tsx +14 -0
- package/src/domain/components/pool-details-popover/styles.scss +49 -0
- package/src/domain/components/settings/add-user-modal/USAGE.md +35 -0
- package/src/domain/components/settings/add-user-modal/add-user-modal.example.tsx +25 -0
- package/src/domain/components/settings/add-user-modal/add-user-modal.scss +9 -0
- package/src/domain/components/settings/change-confirmation-modal/USAGE.md +38 -0
- package/src/domain/components/settings/change-confirmation-modal/change-confirmation-modal.example.tsx +23 -0
- package/src/domain/components/settings/feature-flags/USAGE.md +28 -0
- package/src/domain/components/settings/feature-flags/feature-flags-settings.example.tsx +11 -0
- package/src/domain/components/settings/feature-flags/feature-flags-settings.scss +67 -0
- package/src/domain/components/settings/header-controls/USAGE.md +27 -0
- package/src/domain/components/settings/header-controls/header-controls-settings.example.tsx +11 -0
- package/src/domain/components/settings/header-controls/header-controls-settings.scss +86 -0
- package/src/domain/components/settings/import-export/USAGE.md +27 -0
- package/src/domain/components/settings/import-export/import-export-settings.example.tsx +10 -0
- package/src/domain/components/settings/import-export/import-export-settings.scss +63 -0
- package/src/domain/components/settings/manage-user-modal/USAGE.md +34 -0
- package/src/domain/components/settings/manage-user-modal/manage-user-modal.example.tsx +30 -0
- package/src/domain/components/settings/manage-user-modal/manage-user-modal.scss +94 -0
- package/src/domain/components/settings/rbac-control/USAGE.md +37 -0
- package/src/domain/components/settings/rbac-control/rbac-control-settings.example.tsx +33 -0
- package/src/domain/components/settings/rbac-control/rbac-control-settings.scss +148 -0
- package/src/domain/components/settings/settings-dashboard/USAGE.md +28 -0
- package/src/domain/components/settings/settings-dashboard/settings-dashboard.example.tsx +7 -0
- package/src/domain/components/settings/settings-dashboard/settings-dashboard.scss +28 -0
- package/src/domain/components/stat-cards/miner-metric-card/USAGE.md +38 -0
- package/src/domain/components/stat-cards/miner-metric-card/miner-metric-card.example.tsx +17 -0
- package/src/domain/components/stat-cards/miner-metric-card/miner-metric-card.scss +72 -0
- package/src/domain/components/stat-cards/single-stat-card/USAGE.md +28 -0
- package/src/domain/components/stat-cards/single-stat-card/single-stat-card.example.tsx +10 -0
- package/src/domain/components/stat-cards/single-stat-card/single-stat-card.scss +179 -0
- package/src/domain/components/timeframe/USAGE.md +15 -0
- package/src/domain/components/timeframe/report-time-frame-selector/USAGE.md +27 -0
- package/src/domain/components/timeframe/report-time-frame-selector/report-time-frame-selector.example.tsx +18 -0
- package/src/domain/components/timeframe/report-time-frame-selector/report-time-frame-selector.scss +7 -0
- package/src/domain/components/timeframe/timeframe-controls/USAGE.md +69 -0
- package/src/domain/components/timeframe/timeframe-controls/timeframe-controls-week-content.example.tsx +7 -0
- package/src/domain/components/timeframe/timeframe-controls/timeframe-controls.example.tsx +10 -0
- package/src/domain/components/timeframe/timeframe-controls/timeframe-controls.scss +121 -0
- package/src/domain/components/timeframe/use-financial-date-range.example.tsx +12 -0
- package/src/domain/components/timeline-chart/USAGE.md +52 -0
- package/src/domain/components/timeline-chart/timeline-chart.example.tsx +35 -0
- package/src/domain/components/timeline-chart/timeline-chart.scss +166 -0
- package/src/domain/components/widget-top-row/USAGE.md +48 -0
- package/src/domain/components/widget-top-row/styles.scss +57 -0
- package/src/domain/components/widget-top-row/widget-top-row.example.tsx +28 -0
- package/src/domain/styles/global-colors.scss +7 -0
- package/src/domain/styles/index.scss +80 -0
- package/src/primitives/components/accordion/USAGE.md +72 -0
- package/src/primitives/components/accordion/accordion.example.tsx +37 -0
- package/src/primitives/components/accordion/styles.scss +205 -0
- package/src/primitives/components/action-button/USAGE.md +64 -0
- package/src/primitives/components/action-button/action-button.example.tsx +40 -0
- package/src/primitives/components/action-button/styles.scss +61 -0
- package/src/primitives/components/alert/USAGE.md +51 -0
- package/src/primitives/components/alert/alert.example.tsx +35 -0
- package/src/primitives/components/alert/styles.scss +125 -0
- package/src/primitives/components/alert-dialog/USAGE.md +60 -0
- package/src/primitives/components/alert-dialog/alert-dialog.example.tsx +37 -0
- package/src/primitives/components/app-header/USAGE.md +47 -0
- package/src/primitives/components/app-header/app-header.example.tsx +11 -0
- package/src/primitives/components/app-header/app-header.scss +94 -0
- package/src/primitives/components/area-chart/USAGE.md +22 -0
- package/src/primitives/components/area-chart/area-chart.example.tsx +21 -0
- package/src/primitives/components/area-chart/styles.scss +9 -0
- package/src/primitives/components/avatar/USAGE.md +29 -0
- package/src/primitives/components/avatar/avatar.example.tsx +24 -0
- package/src/primitives/components/avatar/styles.scss +29 -0
- package/src/primitives/components/average-downtime-chart/USAGE.md +41 -0
- package/src/primitives/components/average-downtime-chart/average-downtime-chart.example.tsx +13 -0
- package/src/primitives/components/average-downtime-chart/styles.scss +15 -0
- package/src/primitives/components/badge/USAGE.md +39 -0
- package/src/primitives/components/badge/badge.example.tsx +21 -0
- package/src/primitives/components/badge/styles.scss +265 -0
- package/src/primitives/components/bar-chart/USAGE.md +56 -0
- package/src/primitives/components/bar-chart/bar-chart.example.tsx +35 -0
- package/src/primitives/components/bar-chart/styles.scss +9 -0
- package/src/primitives/components/breadcrumbs/USAGE.md +46 -0
- package/src/primitives/components/breadcrumbs/breadcrumbs.example.tsx +16 -0
- package/src/primitives/components/breadcrumbs/styles.scss +106 -0
- package/src/primitives/components/btc-average-price/USAGE.md +32 -0
- package/src/primitives/components/btc-average-price/btc-average-price.example.tsx +11 -0
- package/src/primitives/components/btc-average-price/styles.scss +22 -0
- package/src/primitives/components/button/USAGE.md +37 -0
- package/src/primitives/components/button/button.example.tsx +23 -0
- package/src/primitives/components/button/styles.scss +181 -0
- package/src/primitives/components/card/USAGE.md +31 -0
- package/src/primitives/components/card/card.example.tsx +21 -0
- package/src/primitives/components/card/styles.scss +73 -0
- package/src/primitives/components/cascader/USAGE.md +77 -0
- package/src/primitives/components/cascader/cascader.example.tsx +52 -0
- package/src/primitives/components/cascader/styles.scss +188 -0
- package/src/primitives/components/chart-container/USAGE.md +78 -0
- package/src/primitives/components/chart-container/chart-container.example.tsx +67 -0
- package/src/primitives/components/chart-container/styles.scss +207 -0
- package/src/primitives/components/chart-stats-footer/USAGE.md +59 -0
- package/src/primitives/components/chart-stats-footer/chart-stats-footer.example.tsx +40 -0
- package/src/primitives/components/chart-stats-footer/styles.scss +86 -0
- package/src/primitives/components/checkbox/USAGE.md +35 -0
- package/src/primitives/components/checkbox/checkbox.example.tsx +30 -0
- package/src/primitives/components/checkbox/styles.scss +227 -0
- package/src/primitives/components/currency-toggler/USAGE.md +47 -0
- package/src/primitives/components/currency-toggler/currency-toggler.example.tsx +26 -0
- package/src/primitives/components/currency-toggler/styles.scss +33 -0
- package/src/primitives/components/data-label/USAGE.md +32 -0
- package/src/primitives/components/data-label/data-label.example.tsx +16 -0
- package/src/primitives/components/data-label/styles.scss +16 -0
- package/src/primitives/components/data-table/USAGE.md +94 -0
- package/src/primitives/components/data-table/data-table.example.tsx +29 -0
- package/src/primitives/components/data-table/styles.scss +226 -0
- package/src/primitives/components/date-picker/USAGE.md +64 -0
- package/src/primitives/components/date-picker/date-picker.example.tsx +18 -0
- package/src/primitives/components/date-picker/styles.scss +461 -0
- package/src/primitives/components/detail-legend/USAGE.md +59 -0
- package/src/primitives/components/detail-legend/detail-legend.example.tsx +50 -0
- package/src/primitives/components/detail-legend/styles.scss +87 -0
- package/src/primitives/components/dialog/USAGE.md +71 -0
- package/src/primitives/components/dialog/dialog.example.tsx +55 -0
- package/src/primitives/components/dialog/styles.scss +176 -0
- package/src/primitives/components/divider/USAGE.md +40 -0
- package/src/primitives/components/divider/divider.example.tsx +26 -0
- package/src/primitives/components/divider/styles.scss +106 -0
- package/src/primitives/components/doughnut-chart/USAGE.md +55 -0
- package/src/primitives/components/doughnut-chart/doughnut-chart.example.tsx +24 -0
- package/src/primitives/components/doughnut-chart/styles.scss +100 -0
- package/src/primitives/components/dropdown-menu/USAGE.md +89 -0
- package/src/primitives/components/dropdown-menu/dropdown-menu.example.tsx +39 -0
- package/src/primitives/components/dropdown-menu/styles.scss +103 -0
- package/src/primitives/components/dropdown-menu/tokens.scss +119 -0
- package/src/primitives/components/empty-state/USAGE.md +29 -0
- package/src/primitives/components/empty-state/empty-state.example.tsx +12 -0
- package/src/primitives/components/empty-state/styles.scss +49 -0
- package/src/primitives/components/error-boundary/USAGE.md +52 -0
- package/src/primitives/components/error-boundary/error-boundary.example.tsx +55 -0
- package/src/primitives/components/error-boundary/styles.scss +37 -0
- package/src/primitives/components/error-card/USAGE.md +28 -0
- package/src/primitives/components/error-card/error-card.example.tsx +32 -0
- package/src/primitives/components/error-card/styles.scss +30 -0
- package/src/primitives/components/form/USAGE.md +165 -0
- package/src/primitives/components/form/form.example.tsx +70 -0
- package/src/primitives/components/form/styles.scss +58 -0
- package/src/primitives/components/gauge-chart/USAGE.md +47 -0
- package/src/primitives/components/gauge-chart/gauge-chart.example.tsx +25 -0
- package/src/primitives/components/gauge-chart/styles.scss +11 -0
- package/src/primitives/components/heatmap/USAGE.md +61 -0
- package/src/primitives/components/heatmap/heatmap.example.tsx +17 -0
- package/src/primitives/components/heatmap/styles.scss +48 -0
- package/src/primitives/components/icons/USAGE.md +76 -0
- package/src/primitives/components/icons/icons.example.tsx +85 -0
- package/src/primitives/components/indicator/USAGE.md +37 -0
- package/src/primitives/components/indicator/indicator.example.tsx +38 -0
- package/src/primitives/components/indicator/styles.scss +132 -0
- package/src/primitives/components/input/USAGE.md +27 -0
- package/src/primitives/components/input/input.example.tsx +23 -0
- package/src/primitives/components/input/styles.scss +160 -0
- package/src/primitives/components/label/USAGE.md +24 -0
- package/src/primitives/components/label/label.example.tsx +13 -0
- package/src/primitives/components/label/styles.scss +15 -0
- package/src/primitives/components/labeled-card/USAGE.md +47 -0
- package/src/primitives/components/labeled-card/labeled-card.example.tsx +50 -0
- package/src/primitives/components/labeled-card/styles.scss +114 -0
- package/src/primitives/components/lazy-tab-wrapper/USAGE.md +42 -0
- package/src/primitives/components/lazy-tab-wrapper/lazy-tab-wrapper.example.tsx +44 -0
- package/src/primitives/components/line-chart/USAGE.md +68 -0
- package/src/primitives/components/line-chart/line-chart.example.tsx +27 -0
- package/src/primitives/components/line-chart/styles.scss +29 -0
- package/src/primitives/components/list-view-filter/USAGE.md +58 -0
- package/src/primitives/components/list-view-filter/list-view-filter.example.tsx +80 -0
- package/src/primitives/components/list-view-filter/styles.scss +54 -0
- package/src/primitives/components/loader/USAGE.md +41 -0
- package/src/primitives/components/loader/loader.example.tsx +20 -0
- package/src/primitives/components/loader/styles.scss +67 -0
- package/src/primitives/components/logs/USAGE.md +103 -0
- package/src/primitives/components/logs/logs.example.tsx +83 -0
- package/src/primitives/components/logs/styles.scss +125 -0
- package/src/primitives/components/mdk-wordmark/USAGE.md +29 -0
- package/src/primitives/components/mdk-wordmark/mdk-wordmark.example.tsx +12 -0
- package/src/primitives/components/mdk-wordmark/mdk-wordmark.scss +27 -0
- package/src/primitives/components/min-max-avg/USAGE.md +35 -0
- package/src/primitives/components/min-max-avg/min-max-avg.example.tsx +8 -0
- package/src/primitives/components/min-max-avg/styles.scss +26 -0
- package/src/primitives/components/mosaic/USAGE.md +69 -0
- package/src/primitives/components/mosaic/mosaic.example.tsx +43 -0
- package/src/primitives/components/mosaic/styles.scss +22 -0
- package/src/primitives/components/multi-level-select/USAGE.md +50 -0
- package/src/primitives/components/multi-level-select/multi-level-select.example.tsx +29 -0
- package/src/primitives/components/multi-level-select/styles.scss +45 -0
- package/src/primitives/components/multi-select/USAGE.md +76 -0
- package/src/primitives/components/multi-select/multi-select.example.tsx +26 -0
- package/src/primitives/components/multi-select/styles.scss +245 -0
- package/src/primitives/components/not-found-page/USAGE.md +36 -0
- package/src/primitives/components/not-found-page/not-found-page.example.tsx +27 -0
- package/src/primitives/components/not-found-page/styles.scss +27 -0
- package/src/primitives/components/operations-energy-cost-chart/USAGE.md +29 -0
- package/src/primitives/components/operations-energy-cost-chart/operations-energy-cost-chart.example.tsx +12 -0
- package/src/primitives/components/operations-energy-cost-chart/styles.scss +22 -0
- package/src/primitives/components/pagination/USAGE.md +43 -0
- package/src/primitives/components/pagination/pagination.example.tsx +23 -0
- package/src/primitives/components/pagination/styles.scss +178 -0
- package/src/primitives/components/popover/USAGE.md +78 -0
- package/src/primitives/components/popover/popover.example.tsx +20 -0
- package/src/primitives/components/popover/styles.scss +162 -0
- package/src/primitives/components/progress/USAGE.md +34 -0
- package/src/primitives/components/progress/progress.example.tsx +22 -0
- package/src/primitives/components/radio/USAGE.md +66 -0
- package/src/primitives/components/radio/radio.example.tsx +36 -0
- package/src/primitives/components/radio/styles.scss +355 -0
- package/src/primitives/components/select/USAGE.md +29 -0
- package/src/primitives/components/select/select.example.tsx +27 -0
- package/src/primitives/components/select/styles.scss +215 -0
- package/src/primitives/components/sidebar/USAGE.md +47 -0
- package/src/primitives/components/sidebar/sidebar.example.tsx +24 -0
- package/src/primitives/components/sidebar/styles.scss +322 -0
- package/src/primitives/components/skeleton/USAGE.md +40 -0
- package/src/primitives/components/skeleton/skeleton.example.tsx +25 -0
- package/src/primitives/components/skeleton/styles.scss +25 -0
- package/src/primitives/components/slider/USAGE.md +38 -0
- package/src/primitives/components/slider/slider.example.tsx +122 -0
- package/src/primitives/components/spinner/USAGE.md +31 -0
- package/src/primitives/components/spinner/spinner.example.tsx +14 -0
- package/src/primitives/components/spinner/styles.scss +245 -0
- package/src/primitives/components/switch/USAGE.md +36 -0
- package/src/primitives/components/switch/styles.scss +212 -0
- package/src/primitives/components/switch/switch.example.tsx +21 -0
- package/src/primitives/components/tabs/USAGE.md +54 -0
- package/src/primitives/components/tabs/styles.scss +119 -0
- package/src/primitives/components/tabs/tabs.example.tsx +25 -0
- package/src/primitives/components/tag/USAGE.md +25 -0
- package/src/primitives/components/tag/styles.scss +37 -0
- package/src/primitives/components/tag/tag.example.tsx +23 -0
- package/src/primitives/components/tag-input/USAGE.md +87 -0
- package/src/primitives/components/tag-input/styles.scss +354 -0
- package/src/primitives/components/tag-input/tag-input.example.tsx +39 -0
- package/src/primitives/components/textarea/USAGE.md +55 -0
- package/src/primitives/components/textarea/styles.scss +84 -0
- package/src/primitives/components/textarea/textarea.example.tsx +37 -0
- package/src/primitives/components/threshold-line-chart/USAGE.md +49 -0
- package/src/primitives/components/threshold-line-chart/threshold-line-chart.example.tsx +22 -0
- package/src/primitives/components/toast/USAGE.md +54 -0
- package/src/primitives/components/toast/styles.scss +324 -0
- package/src/primitives/components/toast/toast.example.tsx +26 -0
- package/src/primitives/components/tooltip/USAGE.md +46 -0
- package/src/primitives/components/tooltip/styles.scss +99 -0
- package/src/primitives/components/tooltip/tooltip.example.tsx +17 -0
- package/src/primitives/components/typography/USAGE.md +50 -0
- package/src/primitives/components/typography/styles.scss +174 -0
- package/src/primitives/components/typography/typography.example.tsx +21 -0
- package/src/primitives/styles/_animations.scss +8 -0
- package/src/primitives/styles/_base.scss +11 -0
- package/src/primitives/styles/_colors.scss +286 -0
- package/src/primitives/styles/_example.scss +34 -0
- package/src/primitives/styles/_fonts.scss +5 -0
- package/src/primitives/styles/_mixins.scss +202 -0
- package/src/primitives/styles/index.scss +72 -0
- package/src/styles-domain.scss +11 -0
- package/src/styles.scss +9 -0
package/AGENT_READY.md
ADDED
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
<!-- markdownlint-disable MD041 -->
|
|
2
|
+
# Agent-ready contract — `@tetherto/mdk-react-devkit`
|
|
3
|
+
|
|
4
|
+
The single source of truth for **what to ship with every public export** so
|
|
5
|
+
AI agents and humans can both consume the devkit reliably. Linked from the
|
|
6
|
+
root [`AGENTS.md`](../../AGENTS.md), referenced by every error the
|
|
7
|
+
`check:agent-ready` CI gate emits, and bundled in the npm tarball so
|
|
8
|
+
downstream agents can read it too.
|
|
9
|
+
|
|
10
|
+
> If you're new to the agent-first design, read [`docs/AGENT_FIRST.md`](../../docs/AGENT_FIRST.md) first, it's the
|
|
11
|
+
> architecture tour. **This file is the contract** every public export must
|
|
12
|
+
> satisfy.
|
|
13
|
+
|
|
14
|
+
## TL;DR
|
|
15
|
+
|
|
16
|
+
Three tiers, one decision:
|
|
17
|
+
|
|
18
|
+
| Tier | Use when… | Must add |
|
|
19
|
+
| ------------- | ---------------------------------------------------- | ------------------------------------------------- |
|
|
20
|
+
| `agent-ready` | LLMs / non-experts pick this component directly | JSDoc summary + `@category` + `@domain` + `@tier` + `@kernelCapability` + `USAGE.md` + `*.example.tsx` |
|
|
21
|
+
| `advanced` | Engineers extending the library use it directly | JSDoc summary + `@category` + `@domain` + `@tier` |
|
|
22
|
+
| `internal` | Implementation detail, never part of the public API | `@tier internal` (the registry generator drops these — no `USAGE.md` or examples required) |
|
|
23
|
+
|
|
24
|
+
```mermaid
|
|
25
|
+
flowchart TD
|
|
26
|
+
ask{"Will an LLM (or non-expert) pick this directly when building a page?"}
|
|
27
|
+
ask -- yes --> agentReady["@tier agent-ready (+ USAGE.md + example + @kernelCapability)"]
|
|
28
|
+
ask -- no --> ask2{"Is it exported for downstream engineers to compose with?"}
|
|
29
|
+
ask2 -- yes --> advanced["@tier advanced"]
|
|
30
|
+
ask2 -- no --> internal["@tier internal (hidden from registry)"]
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Required JSDoc tags
|
|
34
|
+
|
|
35
|
+
| Tag | Required for | Allowed values |
|
|
36
|
+
| ------------------- | ------------------------------------------ | -------------------------------------------------------------- |
|
|
37
|
+
| `@tier` | every public export | `agent-ready` | `advanced` | `internal` |
|
|
38
|
+
| `@category` | tier ≠ `internal` | `charts` | `tables` | `cards` | `forms` | `dialogs` | `navigation` | `layout` | `widgets` | `dashboards` | `actions` | `feedback` | `misc` |
|
|
39
|
+
| `@domain` | tier ≠ `internal` | `mining-operations` | `financial-reporting` | `device-management` | `generic` |
|
|
40
|
+
| `@kernelCapability` | `agent-ready` **with** `@domain ≠ generic` | `hashrate-monitoring` | `pool-performance` | `energy-consumption` | `incident-alerts` | `device-telemetry` | `device-management` | *(extendable)* — required for mining domains, skipped for generic primitives |
|
|
41
|
+
| `@example` | optional, encouraged | inline TSX in the JSDoc |
|
|
42
|
+
|
|
43
|
+
The first paragraph of the JSDoc above an export becomes the registry
|
|
44
|
+
`description`. Keep it ≤ 200 chars; longer prose belongs in co-located
|
|
45
|
+
[`USAGE.md`](src/domain/components/active-incidents-card/USAGE.md)
|
|
46
|
+
next to each export (see skeleton in [`CONTRIBUTING.md`](../../../CONTRIBUTING.md))
|
|
47
|
+
or the filled reference under [Pointers](#pointers).
|
|
48
|
+
|
|
49
|
+
## Paste-ready templates
|
|
50
|
+
|
|
51
|
+
### Agent-ready component
|
|
52
|
+
|
|
53
|
+
```tsx
|
|
54
|
+
/**
|
|
55
|
+
* One-paragraph summary. Describe what the component renders and the
|
|
56
|
+
* canonical use case. Don't list every prop, the registry captures those
|
|
57
|
+
* automatically.
|
|
58
|
+
*
|
|
59
|
+
* @category cards
|
|
60
|
+
* @domain mining-operations
|
|
61
|
+
* @kernelCapability incident-alerts
|
|
62
|
+
* @tier agent-ready
|
|
63
|
+
*/
|
|
64
|
+
export const MyCard = forwardRef<HTMLDivElement, MyCardProps>(
|
|
65
|
+
function MyCard(props, ref) { /* ... */ },
|
|
66
|
+
);
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Plus, next to the component file:
|
|
70
|
+
|
|
71
|
+
```
|
|
72
|
+
my-card/
|
|
73
|
+
index.tsx
|
|
74
|
+
my-card.example.tsx ← runnable example, imports only from "@tetherto/mdk-react-devkit"
|
|
75
|
+
USAGE.md ← summary + props table + minimal example + notes
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
`USAGE.md` skeleton:
|
|
79
|
+
|
|
80
|
+
```markdown
|
|
81
|
+
# MyCard
|
|
82
|
+
|
|
83
|
+
One-paragraph summary of what the component does.
|
|
84
|
+
|
|
85
|
+
## Props
|
|
86
|
+
|
|
87
|
+
| Prop | Status | Type | Default | Description |
|
|
88
|
+
| ----- | -------- | -------- | ------- | ----------------- |
|
|
89
|
+
| `foo` | Required | `string` | — | The primary thing |
|
|
90
|
+
|
|
91
|
+
## Minimal example
|
|
92
|
+
|
|
93
|
+
```tsx
|
|
94
|
+
<MyCard foo="hello" />
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
## Notes
|
|
98
|
+
|
|
99
|
+
- Anything non-obvious about composition, accessibility, performance.
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
> **How this renders — write the prose, let the pipeline own props & examples.**
|
|
103
|
+
> The docs site does **not** render `USAGE.md` verbatim. `<ComponentDoc>`
|
|
104
|
+
> renders the description (from your JSDoc), the props table (from the registry
|
|
105
|
+
> types), and the runnable examples (from `*.example.tsx`) *structurally* from
|
|
106
|
+
> those authoritative sources. To avoid printing the same thing twice, it then
|
|
107
|
+
> strips the leading `# Title`, the `## Props` section, and the
|
|
108
|
+
> `## Example`/`## Examples` section out of your `USAGE.md` before rendering the
|
|
109
|
+
> rest — so only your **intro paragraph and `## Notes`** (and any other prose)
|
|
110
|
+
> reach the page.
|
|
111
|
+
>
|
|
112
|
+
> Practical takeaways when authoring `USAGE.md`:
|
|
113
|
+
> - Put your effort into the **summary and Notes** — composition, gotchas,
|
|
114
|
+
> accessibility, performance. That prose is what the site actually shows, and
|
|
115
|
+
> the pipeline can't generate it.
|
|
116
|
+
> - The `## Props` and example blocks above are **optional and harmless**: the
|
|
117
|
+
> site ignores them, but an agent reading `USAGE.md` straight off disk sees
|
|
118
|
+
> the raw file, so keeping it self-contained still helps. If you keep them,
|
|
119
|
+
> keep them accurate — the props table in the
|
|
120
|
+
> registry (from your types) is the source of truth, not this copy.
|
|
121
|
+
|
|
122
|
+
### Advanced component
|
|
123
|
+
|
|
124
|
+
```tsx
|
|
125
|
+
/**
|
|
126
|
+
* One-paragraph summary aimed at engineers extending the library.
|
|
127
|
+
*
|
|
128
|
+
* @category layout
|
|
129
|
+
* @domain generic
|
|
130
|
+
* @tier advanced
|
|
131
|
+
*/
|
|
132
|
+
export const InternalLayoutHelper = (/* … */) => { /* ... */ };
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
No `USAGE.md`, no example required, JSDoc is enough.
|
|
136
|
+
|
|
137
|
+
### Internal export
|
|
138
|
+
|
|
139
|
+
```tsx
|
|
140
|
+
/** @tier internal */
|
|
141
|
+
export const _privateHelper = () => { /* ... */ };
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
The registry generator drops internal entries entirely. Nothing else
|
|
145
|
+
required, but prefer **not exporting** if it truly is private.
|
|
146
|
+
|
|
147
|
+
### Agent-ready hook
|
|
148
|
+
|
|
149
|
+
```tsx
|
|
150
|
+
/**
|
|
151
|
+
* Read the current device list for the active site. Updates whenever
|
|
152
|
+
* telemetry refresh ticks.
|
|
153
|
+
*
|
|
154
|
+
* @category data
|
|
155
|
+
* @domain device-management
|
|
156
|
+
* @kernelCapability device-management
|
|
157
|
+
* @tier agent-ready
|
|
158
|
+
*
|
|
159
|
+
* @returns devices keyed by id, plus an `isLoading` flag.
|
|
160
|
+
*/
|
|
161
|
+
export const useDevices = (): UseDevicesResult => { /* ... */ };
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
## How the gate runs
|
|
165
|
+
|
|
166
|
+
```bash
|
|
167
|
+
# Locally
|
|
168
|
+
npm run check:agent-ready --workspace @tetherto/mdk-react-devkit
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
```bash
|
|
172
|
+
# As part of the full suite (lint + typecheck + format + agent-ready + tests)
|
|
173
|
+
npm run fullcheck
|
|
174
|
+
# Auto-runs on every PR that touches ui/ or CI infra, as the
|
|
175
|
+
# "🤖 Agent-readiness contract (UI)" job in the root .github/workflows/ci.yml.
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
The check loads [`dist/registry.json`](./dist/registry.json), applies the
|
|
179
|
+
rules above, and compares against
|
|
180
|
+
[`scripts/agent-ready-baseline.json`](scripts/agent-ready-baseline.json):
|
|
181
|
+
|
|
182
|
+
- A violation **not** in the baseline is a hard error (exit 1).
|
|
183
|
+
- A violation **in** the baseline is reported as debt and does not fail the
|
|
184
|
+
build.
|
|
185
|
+
- The baseline can only ever shrink. After fixing a JSDoc gap, run:
|
|
186
|
+
|
|
187
|
+
```bash
|
|
188
|
+
npm run check:agent-ready --workspace @tetherto/mdk-react-devkit -- --update-baseline
|
|
189
|
+
git add packages/react-devkit/scripts/agent-ready-baseline.json
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
To audit total debt locally (ignore the baseline):
|
|
193
|
+
|
|
194
|
+
```bash
|
|
195
|
+
node packages/react-devkit/scripts/check-agent-ready.mjs --no-baseline
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
The `USAGE.md` prop-table policy (`check-usage-proptables.mjs`, also run by
|
|
199
|
+
`check:agent-ready`) works the same way against its own
|
|
200
|
+
[`scripts/usage-proptable-baseline.json`](scripts/usage-proptable-baseline.json).
|
|
201
|
+
That baseline is additionally guarded in root CI by the **🔒 USAGE baseline
|
|
202
|
+
monotonicity** job, which compares it against the pull request base as sets:
|
|
203
|
+
removing a path passes, adding one fails. So the baseline cannot be grown to
|
|
204
|
+
baseline-in a new prop table — it can only shrink as tables migrate to JSDoc.
|
|
205
|
+
|
|
206
|
+
## Error catalogue
|
|
207
|
+
|
|
208
|
+
Every rule emitted by `check:agent-ready` and the one-line fix:
|
|
209
|
+
|
|
210
|
+
| Error id | Fix |
|
|
211
|
+
| --------------------------------------- | -------------------------------------------------------------------------------------------- |
|
|
212
|
+
| `missing-tier` | Add `@tier agent-ready` / `advanced` / `internal`. Every public export must declare its audience |
|
|
213
|
+
| `missing-description` | Add a JSDoc summary above the export — the first paragraph is captured into the registry |
|
|
214
|
+
| `description-too-short` | Replace the auto-generated placeholder with a 1–2 sentence summary. Must be ≥40 chars and not match `"<Name> component."` / `"Use <Name> hook."` templates. |
|
|
215
|
+
| `missing-category` | Add `@category <bucket>` (see "Required JSDoc tags" above for the allowed values) |
|
|
216
|
+
| `missing-domain` | Add `@domain <area>` — one of `mining-operations`, `financial-reporting`, `device-management`, `generic`. |
|
|
217
|
+
| `agent-ready-missing-usage` | Create `USAGE.md` next to the component (summary + props table + minimal example + notes) |
|
|
218
|
+
| `agent-ready-missing-example` | Add `<name>.example.tsx` next to the component (mock data only; imports must use `@tetherto/mdk-react-devkit`). |
|
|
219
|
+
| `agent-ready-missing-kernel-capability` | Add at least one `@kernelCapability <id>` tag so agents can find the component by capability |
|
|
220
|
+
|
|
221
|
+
## Navigating by intent
|
|
222
|
+
|
|
223
|
+
Once a component is `agent-ready`, an LLM can find it via two layered
|
|
224
|
+
surfaces, none of which require model calls:
|
|
225
|
+
|
|
226
|
+
### 1. O(1) lookup indexes ([`dist/registry.json`](./dist/registry.json) → `indexes`)
|
|
227
|
+
|
|
228
|
+
The registry ships indexes alongside the flat arrays:
|
|
229
|
+
|
|
230
|
+
```jsonc
|
|
231
|
+
"indexes": {
|
|
232
|
+
"componentsByName": { "ActiveIncidentsCard": 0, "DataTable": 1, /* … */ },
|
|
233
|
+
"componentsByCategory": { "charts": ["LineChartCard", …], … },
|
|
234
|
+
"componentsByDomain": { "mining-operations": [...], … },
|
|
235
|
+
"componentsByKernelCapability": { "hashrate-monitoring": [...], … },
|
|
236
|
+
"componentsByTier": { "agent-ready": [...] }
|
|
237
|
+
}
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
`componentsByName[<Name>]` returns the index into `components[]` — true O(1).
|
|
241
|
+
The other indexes return arrays of names; agents combine them with the
|
|
242
|
+
`byName` lookup.
|
|
243
|
+
|
|
244
|
+
### 2. Navigating the manifests
|
|
245
|
+
|
|
246
|
+
The deterministic decision flow agents follow — every step is a plain read of
|
|
247
|
+
a `dist/*.json` file:
|
|
248
|
+
|
|
249
|
+
```mermaid
|
|
250
|
+
flowchart TD
|
|
251
|
+
intent["User intent (free text)"] --> step3["registry.json — intersect `indexes`\n(byDomain / byKernelCapability / byCategory)"]
|
|
252
|
+
step3 --> step4["Read the entry's `usageDoc` + `examples`"]
|
|
253
|
+
step4 --> scaffold["Write src/pages/<Name>.tsx + routes.ts entry"]
|
|
254
|
+
scaffold --> verify["tsc --noEmit + oxlint <generated-file>"]
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
## Pointers
|
|
258
|
+
|
|
259
|
+
- Registry schema: [`scripts/registry-types.ts`](scripts/registry-types.ts)
|
|
260
|
+
- Reference for "well-documented agent-ready component":
|
|
261
|
+
[`src/domain/components/active-incidents-card/`](src/domain/components/active-incidents-card/USAGE.md)
|
|
262
|
+
- Reference for "well-documented agent-ready hook" — coming when we tier
|
|
263
|
+
the first hook as `agent-ready`.
|
|
264
|
+
- Downstream usage (consumer apps): [`AGENTS.md`](../../AGENTS.md).
|
|
265
|
+
- Architecture tour: [`docs/AGENT_FIRST.md`](../../docs/AGENT_FIRST.md).
|
package/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright 2026 Tether
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
# @tetherto/mdk-react-devkit
|
|
2
|
+
|
|
3
|
+
The React UI layer of the MDK toolkit. It bundles the generic UI
|
|
4
|
+
primitives and the mining-domain components into a single package whose
|
|
5
|
+
internal layout keeps the two layers clearly separated:
|
|
6
|
+
|
|
7
|
+
> **Contributing or extending the devkit?** Read
|
|
8
|
+
> [`AGENT_READY.md`](AGENT_READY.md) first — it's the contract every public
|
|
9
|
+
> export must satisfy (JSDoc tags, tier system, `USAGE.md` + example
|
|
10
|
+
> requirements). `npm run check:agent-ready` enforces it.
|
|
11
|
+
|
|
12
|
+
> **Building features in a consuming app?** Read the machine-readable
|
|
13
|
+
> manifests — `registry.json` here,
|
|
14
|
+
> `@tetherto/mdk-react-adapter/hooks.json` and
|
|
15
|
+
> `@tetherto/mdk-ui-foundation/stores.json` next door. See
|
|
16
|
+
> [`AGENTS.md`](../../AGENTS.md) for how to navigate them.
|
|
17
|
+
|
|
18
|
+
- [`src/primitives/`](./src/primitives/index.ts) — framework-agnostic-ish UI primitives built on Radix UI,
|
|
19
|
+
design tokens, formatting utilities and types.
|
|
20
|
+
- [`src/domain/`](./src/domain/index.ts) — mining-domain components, presentation
|
|
21
|
+
hooks (under `utils/`), constants, and types. Zustand stores live in
|
|
22
|
+
`@tetherto/mdk-ui-foundation`; store hooks and `MdkProvider` live in
|
|
23
|
+
`@tetherto/mdk-react-adapter`.
|
|
24
|
+
|
|
25
|
+
## Installation
|
|
26
|
+
|
|
27
|
+
This is a workspace package; depend on it from another workspace:
|
|
28
|
+
|
|
29
|
+
```json
|
|
30
|
+
{
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"@tetherto/mdk-react-devkit": "*"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Usage
|
|
38
|
+
|
|
39
|
+
### Subpath imports (preferred — better tree-shaking)
|
|
40
|
+
|
|
41
|
+
```tsx
|
|
42
|
+
import { Button, Dialog } from "@tetherto/mdk-react-devkit/primitives";
|
|
43
|
+
import { useNotification } from "@tetherto/mdk-react-devkit/domain";
|
|
44
|
+
// Store hooks and Query client — not separate devkit subpaths:
|
|
45
|
+
import { devicesStore } from "@tetherto/mdk-ui-foundation";
|
|
46
|
+
import { useDevices, useTimezone } from "@tetherto/mdk-react-adapter";
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Presentation hooks ship on `./domain` (or the top-level barrel), not
|
|
50
|
+
`@tetherto/mdk-react-devkit/hooks` — that subpath is not in [`package.json`](./package.json)
|
|
51
|
+
`exports`.
|
|
52
|
+
|
|
53
|
+
### Top-level barrel
|
|
54
|
+
|
|
55
|
+
```tsx
|
|
56
|
+
import { Button, useNotification } from "@tetherto/mdk-react-devkit";
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### Styles
|
|
60
|
+
|
|
61
|
+
```tsx
|
|
62
|
+
import "@tetherto/mdk-react-devkit/styles.css";
|
|
63
|
+
import "@tetherto/mdk-react-devkit/styles-domain.css"; // only if using domain (mining-domain) components
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Import `styles.css` **first** — it defines the design tokens the domain styles reference.
|
|
67
|
+
Apps that only use primitives (`./primitives`) can omit `styles-domain.css` and ship ~70 KB less CSS.
|
|
68
|
+
|
|
69
|
+
Or in SCSS:
|
|
70
|
+
|
|
71
|
+
```scss
|
|
72
|
+
@use "@tetherto/mdk-react-devkit/styles" as *;
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
See [STYLING.md](../../docs/STYLING.md) for the cascade-layer model, the public design
|
|
76
|
+
tokens (`--mdk-*` custom properties), and supported component-class
|
|
77
|
+
overrides.
|
|
78
|
+
|
|
79
|
+
## Subpath exports
|
|
80
|
+
|
|
81
|
+
| Subpath | Resolves to | Purpose |
|
|
82
|
+
| --- | --- | --- |
|
|
83
|
+
| `.` | `dist/index.{js,d.ts}` | Top-level barrel (`primitives` + `domain`) |
|
|
84
|
+
| `./primitives` | `dist/primitives/index.{js,d.ts}` | Generic UI primitives |
|
|
85
|
+
| `./domain` | `dist/domain/index.{js,d.ts}` | Mining-domain layer: components, presentation hooks, constants, types |
|
|
86
|
+
| `./registry.json` | [`dist/registry.json`](./dist/registry.json) | Machine-readable component + hook registry |
|
|
87
|
+
| `./styles.css` | [`dist/styles.css`](./dist/styles.css) | Design tokens + core primitives (~18 KB gz) |
|
|
88
|
+
| `./styles-domain.css` | [`dist/styles-domain.css`](./dist/styles-domain.css) | Mining-domain component styles (~70 KB gz); import after `styles.css` |
|
|
89
|
+
| `./styles` | [`src/primitives/styles/_mixins.scss`](./src/primitives/styles/_mixins.scss) | SCSS mixins (`@use`) |
|
|
90
|
+
| [`./tokens.scss`](./src/primitives/components/dropdown-menu/tokens.scss) | [`src/primitives/styles/_colors.scss`](./src/primitives/styles/_colors.scss) | Design-token CSS variables (`@use`) |
|
|
91
|
+
| `./src/styles/index.scss` | [`src/domain/styles/index.scss`](./src/domain/styles/index.scss) | Domain SCSS entry (advanced) |
|
|
92
|
+
|
|
93
|
+
For reading `registry.json`, `USAGE.md` files, and examples, see
|
|
94
|
+
[`AGENTS.md`](../../AGENTS.md). Adapter hook and store manifests:
|
|
95
|
+
`@tetherto/mdk-react-adapter/hooks.json`, `@tetherto/mdk-ui-foundation/stores.json`.
|
|
96
|
+
|
|
97
|
+
### Hooks and data (not separate devkit subpaths)
|
|
98
|
+
|
|
99
|
+
| Need | Import from |
|
|
100
|
+
| --- | --- |
|
|
101
|
+
| Store hooks (`useAuth`, `useDevices`, `useTimezone`, …) | `@tetherto/mdk-react-adapter` |
|
|
102
|
+
| Zustand stores outside React | `@tetherto/mdk-ui-foundation` |
|
|
103
|
+
| Presentation hooks (`useNotification`, …) | `@tetherto/mdk-react-devkit/domain` or `.` |
|
|
104
|
+
| TanStack `QueryClient` factory | `@tetherto/mdk-ui-foundation` (`createMdkQueryClient`) |
|
|
105
|
+
|
|
106
|
+
There is no `./hooks` or `./api` export today; those capabilities are reached
|
|
107
|
+
through `./domain`, the adapter, or the foundation package.
|
|
108
|
+
|
|
109
|
+
## Charts: which engine
|
|
110
|
+
|
|
111
|
+
The devkit ships two charting engines, each for a different kind of data:
|
|
112
|
+
|
|
113
|
+
| Data | Use | Engine |
|
|
114
|
+
| --- | --- | --- |
|
|
115
|
+
| A time series: values over time, zoomable, with a time-range selector | `LineChart`, `LineChartCard`, `ThresholdLineChart` | `lightweight-charts` |
|
|
116
|
+
| Categories or parts of a whole: per site, per period, shares | `BarChart`, `AreaChart`, `DoughnutChart`, `AverageDowntimeChart`, `OperationsEnergyCostChart` | Chart.js (`react-chartjs-2`) |
|
|
117
|
+
| A single value against a range | `GaugeChart` | SVG, no chart engine |
|
|
118
|
+
| A grid of cells coloured by value | `Heatmap` | DOM, no chart engine |
|
|
119
|
+
|
|
120
|
+
Wrap any of them in `ChartContainer` for the title, legend, range selector and loading / empty states; `LineChartCard`
|
|
121
|
+
already does. Both engines are code-split into async chunks that load when a chart first renders, so an app that uses only
|
|
122
|
+
one never downloads the other.
|
|
123
|
+
|
|
124
|
+
## Build strategy
|
|
125
|
+
|
|
126
|
+
- **TypeScript** — `tsc -p tsconfig.build.json` emits ESM JS + `.d.ts`
|
|
127
|
+
into `dist/`. A small post-process ([`scripts/strip-style-imports.mjs`](./scripts/strip-style-imports.mjs))
|
|
128
|
+
removes the side-effect `.scss` / `.css` imports from emitted JS
|
|
129
|
+
because styles are in the Vite-built [`dist/styles.css`](./dist/styles.css) and
|
|
130
|
+
[`dist/styles-domain.css`](./dist/styles-domain.css), not in the TS output.
|
|
131
|
+
- **CSS** — Vite compiles two SCSS entry points into [`dist/styles.css`](./dist/styles.css) (design tokens + core primitives) and [`dist/styles-domain.css`](./dist/styles-domain.css) (mining-domain components). PostCSS ([`postcss-mdk-layer.mjs`](./postcss-mdk-layer.mjs)) wraps top-level rules in `@layer mdk` and prepends `@layer base, mdk, app;`.
|
|
132
|
+
- **Registry** — `npm run build:registry` emits [`dist/registry.json`](./dist/registry.json). Run `npm run check:agent-ready` before changing
|
|
133
|
+
public exports (also runs in root `npm run fullcheck`).
|
|
134
|
+
- **SCSS source** — [`_mixins.scss`](./src/primitives/styles/_mixins.scss) and [`_colors.scss`](./src/primitives/styles/_colors.scss) stay exposed as
|
|
135
|
+
subpath exports so downstream apps can `@use` them from their own SCSS.
|
|
136
|
+
|
|
137
|
+
## Development
|
|
138
|
+
|
|
139
|
+
```bash
|
|
140
|
+
npm run dev # watch CSS + TS
|
|
141
|
+
npm run build # build:ts + build:scss + build:registry
|
|
142
|
+
npm run build:ts # TypeScript only
|
|
143
|
+
npm run build:scss # Vite → dist/styles.css + dist/styles-domain.css
|
|
144
|
+
npm run build:registry # dist/registry.json
|
|
145
|
+
npm run check:agent-ready # contract gate (needs registry build)
|
|
146
|
+
npm run typecheck
|
|
147
|
+
npm run test
|
|
148
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ActiveIncidentsCardExample: () => import("react").JSX.Element;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* Runnable example for ActiveIncidentsCard.
|
|
4
|
+
*/
|
|
5
|
+
import { ActiveIncidentsCard } from '@tetherto/mdk-react-devkit';
|
|
6
|
+
const mockItems = [
|
|
7
|
+
{
|
|
8
|
+
id: '1',
|
|
9
|
+
severity: 'critical',
|
|
10
|
+
title: 'Miner 0xA1 offline',
|
|
11
|
+
body: 'No telemetry received in 2 min.',
|
|
12
|
+
subtitle: '2 min ago',
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
id: '2',
|
|
16
|
+
severity: 'high',
|
|
17
|
+
title: 'Container 03 temp >78°C',
|
|
18
|
+
body: 'Sustained above warning threshold.',
|
|
19
|
+
subtitle: '12 min ago',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
id: '3',
|
|
23
|
+
severity: 'medium',
|
|
24
|
+
title: 'Pool latency elevated',
|
|
25
|
+
body: 'Round-trip 220ms (baseline 80ms).',
|
|
26
|
+
subtitle: '1 h ago',
|
|
27
|
+
},
|
|
28
|
+
];
|
|
29
|
+
export const ActiveIncidentsCardExample = () => {
|
|
30
|
+
return (_jsx(ActiveIncidentsCard, { label: "Active Alerts", items: mockItems, onItemClick: (id) => {
|
|
31
|
+
// oxlint-disable-next-line no-console
|
|
32
|
+
console.log(`open alert ${id}`);
|
|
33
|
+
} }));
|
|
34
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { TIncidentSeverity } from './types';
|
|
2
|
+
import type { JSX } from 'react';
|
|
3
|
+
export type TIncidentRowProps = {
|
|
4
|
+
/** Incident identifier; the virtual-list row key and the argument passed to the click handler */
|
|
5
|
+
id: string;
|
|
6
|
+
/** First line of the row */
|
|
7
|
+
title: string;
|
|
8
|
+
/** Third line of the row, under `subtitle` */
|
|
9
|
+
body: string;
|
|
10
|
+
/** Second line of the row, under `title` */
|
|
11
|
+
subtitle: string;
|
|
12
|
+
/** `critical`, `high` or `medium`; sets the colored severity dot beside the row */
|
|
13
|
+
severity: TIncidentSeverity;
|
|
14
|
+
/** Row click handler, called with `id`; in `ActiveIncidentsCard` it is always replaced by `onItemClick` */
|
|
15
|
+
onClick?: (id: string) => void;
|
|
16
|
+
};
|
|
17
|
+
declare function IncidentRow({ id, body, title, onClick, severity, subtitle, }: TIncidentRowProps): JSX.Element;
|
|
18
|
+
declare namespace IncidentRow {
|
|
19
|
+
var displayName: string;
|
|
20
|
+
}
|
|
21
|
+
export { IncidentRow };
|