@epilot/spark-ui 1.0.0-alpha.1 → 1.0.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/NOTICE +2 -0
- package/README.md +7 -1
- package/dist/chunk-aJGBMT86.cjs +29 -0
- package/dist/components/accordion.cjs +57 -0
- package/dist/components/accordion.cjs.map +1 -0
- package/dist/components/accordion.d.cts +45 -0
- package/dist/components/accordion.d.ts +45 -0
- package/dist/components/accordion.js +51 -0
- package/dist/components/accordion.js.map +1 -0
- package/dist/components/alert-dialog.cjs +137 -0
- package/dist/components/alert-dialog.cjs.map +1 -0
- package/dist/components/alert-dialog.d.cts +63 -0
- package/dist/components/alert-dialog.d.ts +63 -0
- package/dist/components/alert-dialog.js +123 -0
- package/dist/components/alert-dialog.js.map +1 -0
- package/dist/components/attachment.cjs +119 -0
- package/dist/components/attachment.cjs.map +1 -0
- package/dist/components/attachment.d.cts +67 -0
- package/dist/components/attachment.d.ts +67 -0
- package/dist/components/attachment.js +108 -0
- package/dist/components/attachment.js.map +1 -0
- package/dist/components/badge.cjs +20 -0
- package/dist/components/badge.cjs.map +1 -0
- package/dist/components/badge.d.cts +12 -0
- package/dist/components/badge.d.ts +12 -0
- package/dist/components/badge.js +17 -0
- package/dist/components/badge.js.map +1 -0
- package/dist/components/bar-chart.cjs +519 -0
- package/dist/components/bar-chart.cjs.map +1 -0
- package/dist/components/bar-chart.d.cts +83 -0
- package/dist/components/bar-chart.d.ts +83 -0
- package/dist/components/bar-chart.js +517 -0
- package/dist/components/bar-chart.js.map +1 -0
- package/dist/components/battery-progress-row.cjs +140 -0
- package/dist/components/battery-progress-row.cjs.map +1 -0
- package/dist/components/battery-progress-row.d.cts +78 -0
- package/dist/components/battery-progress-row.d.ts +78 -0
- package/dist/components/battery-progress-row.js +129 -0
- package/dist/components/battery-progress-row.js.map +1 -0
- package/dist/components/breadcrumbs.cjs +65 -0
- package/dist/components/breadcrumbs.cjs.map +1 -0
- package/dist/components/breadcrumbs.d.cts +44 -0
- package/dist/components/breadcrumbs.d.ts +44 -0
- package/dist/components/breadcrumbs.js +58 -0
- package/dist/components/breadcrumbs.js.map +1 -0
- package/dist/components/bubble.cjs +84 -0
- package/dist/components/bubble.cjs.map +1 -0
- package/dist/components/bubble.d.cts +41 -0
- package/dist/components/bubble.d.ts +41 -0
- package/dist/components/bubble.js +78 -0
- package/dist/components/bubble.js.map +1 -0
- package/dist/components/button.cjs +54 -0
- package/dist/components/button.cjs.map +1 -0
- package/dist/components/button.d.cts +34 -0
- package/dist/components/button.d.ts +34 -0
- package/dist/components/button.js +50 -0
- package/dist/components/button.js.map +1 -0
- package/dist/components/calendar.cjs +58 -0
- package/dist/components/calendar.cjs.map +1 -0
- package/dist/components/calendar.d.cts +17 -0
- package/dist/components/calendar.d.ts +17 -0
- package/dist/components/calendar.js +55 -0
- package/dist/components/calendar.js.map +1 -0
- package/dist/components/callout.cjs +95 -0
- package/dist/components/callout.cjs.map +1 -0
- package/dist/components/callout.d.cts +39 -0
- package/dist/components/callout.d.ts +39 -0
- package/dist/components/callout.js +88 -0
- package/dist/components/callout.js.map +1 -0
- package/dist/components/card.cjs +86 -0
- package/dist/components/card.cjs.map +1 -0
- package/dist/components/card.d.cts +28 -0
- package/dist/components/card.d.ts +28 -0
- package/dist/components/card.js +76 -0
- package/dist/components/card.js.map +1 -0
- package/dist/components/chart.cjs +93 -0
- package/dist/components/chart.cjs.map +1 -0
- package/dist/components/chart.d.cts +83 -0
- package/dist/components/chart.d.ts +83 -0
- package/dist/components/chart.js +88 -0
- package/dist/components/chart.js.map +1 -0
- package/dist/components/checkbox.cjs +37 -0
- package/dist/components/checkbox.cjs.map +1 -0
- package/dist/components/checkbox.d.cts +22 -0
- package/dist/components/checkbox.d.ts +22 -0
- package/dist/components/checkbox.js +34 -0
- package/dist/components/checkbox.js.map +1 -0
- package/dist/components/circular-gauge.cjs +74 -0
- package/dist/components/circular-gauge.cjs.map +1 -0
- package/dist/components/circular-gauge.d.cts +38 -0
- package/dist/components/circular-gauge.d.ts +38 -0
- package/dist/components/circular-gauge.js +71 -0
- package/dist/components/circular-gauge.js.map +1 -0
- package/dist/components/day-of-week-picker.cjs +123 -0
- package/dist/components/day-of-week-picker.cjs.map +1 -0
- package/dist/components/day-of-week-picker.d.cts +39 -0
- package/dist/components/day-of-week-picker.d.ts +39 -0
- package/dist/components/day-of-week-picker.js +119 -0
- package/dist/components/day-of-week-picker.js.map +1 -0
- package/dist/components/device-card.cjs +118 -0
- package/dist/components/device-card.cjs.map +1 -0
- package/dist/components/device-card.d.cts +71 -0
- package/dist/components/device-card.d.ts +71 -0
- package/dist/components/device-card.js +104 -0
- package/dist/components/device-card.js.map +1 -0
- package/dist/components/dialog.cjs +115 -0
- package/dist/components/dialog.cjs.map +1 -0
- package/dist/components/dialog.d.cts +45 -0
- package/dist/components/dialog.d.ts +45 -0
- package/dist/components/dialog.js +103 -0
- package/dist/components/dialog.js.map +1 -0
- package/dist/components/donut-chart.cjs +71 -0
- package/dist/components/donut-chart.cjs.map +1 -0
- package/dist/components/donut-chart.d.cts +22 -0
- package/dist/components/donut-chart.d.ts +22 -0
- package/dist/components/donut-chart.js +69 -0
- package/dist/components/donut-chart.js.map +1 -0
- package/dist/components/drawer.cjs +95 -0
- package/dist/components/drawer.cjs.map +1 -0
- package/dist/components/drawer.d.cts +46 -0
- package/dist/components/drawer.d.ts +46 -0
- package/dist/components/drawer.js +83 -0
- package/dist/components/drawer.js.map +1 -0
- package/dist/components/dropdown-menu.cjs +165 -0
- package/dist/components/dropdown-menu.cjs.map +1 -0
- package/dist/components/dropdown-menu.d.cts +93 -0
- package/dist/components/dropdown-menu.d.ts +93 -0
- package/dist/components/dropdown-menu.js +148 -0
- package/dist/components/dropdown-menu.js.map +1 -0
- package/dist/components/empty-state.cjs +35 -0
- package/dist/components/empty-state.cjs.map +1 -0
- package/dist/components/empty-state.d.cts +22 -0
- package/dist/components/empty-state.d.ts +22 -0
- package/dist/components/empty-state.js +33 -0
- package/dist/components/empty-state.js.map +1 -0
- package/dist/components/energy-bar-chart.cjs +23 -0
- package/dist/components/energy-bar-chart.cjs.map +1 -0
- package/dist/components/energy-bar-chart.d.cts +43 -0
- package/dist/components/energy-bar-chart.d.ts +43 -0
- package/dist/components/energy-bar-chart.js +21 -0
- package/dist/components/energy-bar-chart.js.map +1 -0
- package/dist/components/energy-breakdown.cjs +81 -0
- package/dist/components/energy-breakdown.cjs.map +1 -0
- package/dist/components/energy-breakdown.d.cts +26 -0
- package/dist/components/energy-breakdown.d.ts +26 -0
- package/dist/components/energy-breakdown.js +79 -0
- package/dist/components/energy-breakdown.js.map +1 -0
- package/dist/components/energy-history-chart.cjs +56 -0
- package/dist/components/energy-history-chart.cjs.map +1 -0
- package/dist/components/energy-history-chart.d.cts +58 -0
- package/dist/components/energy-history-chart.d.ts +58 -0
- package/dist/components/energy-history-chart.js +54 -0
- package/dist/components/energy-history-chart.js.map +1 -0
- package/dist/components/feed-in-hero.cjs +56 -0
- package/dist/components/feed-in-hero.cjs.map +1 -0
- package/dist/components/feed-in-hero.d.cts +33 -0
- package/dist/components/feed-in-hero.d.ts +33 -0
- package/dist/components/feed-in-hero.js +51 -0
- package/dist/components/feed-in-hero.js.map +1 -0
- package/dist/components/field.cjs +257 -0
- package/dist/components/field.cjs.map +1 -0
- package/dist/components/field.d.cts +104 -0
- package/dist/components/field.d.ts +104 -0
- package/dist/components/field.js +243 -0
- package/dist/components/field.js.map +1 -0
- package/dist/components/icon.cjs +35 -0
- package/dist/components/icon.cjs.map +1 -0
- package/dist/components/icon.d.cts +27 -0
- package/dist/components/icon.d.ts +27 -0
- package/dist/components/icon.js +32 -0
- package/dist/components/icon.js.map +1 -0
- package/dist/components/info-block.cjs +75 -0
- package/dist/components/info-block.cjs.map +1 -0
- package/dist/components/info-block.d.cts +20 -0
- package/dist/components/info-block.d.ts +20 -0
- package/dist/components/info-block.js +65 -0
- package/dist/components/info-block.js.map +1 -0
- package/dist/components/input-group.cjs +164 -0
- package/dist/components/input-group.cjs.map +1 -0
- package/dist/components/input-group.d.cts +32 -0
- package/dist/components/input-group.d.ts +32 -0
- package/dist/components/input-group.js +158 -0
- package/dist/components/input-group.js.map +1 -0
- package/dist/components/input-otp.cjs +113 -0
- package/dist/components/input-otp.cjs.map +1 -0
- package/dist/components/input-otp.d.cts +22 -0
- package/dist/components/input-otp.d.ts +22 -0
- package/dist/components/input-otp.js +111 -0
- package/dist/components/input-otp.js.map +1 -0
- package/dist/components/input.cjs +112 -0
- package/dist/components/input.cjs.map +1 -0
- package/dist/components/input.d.cts +21 -0
- package/dist/components/input.d.ts +21 -0
- package/dist/components/input.js +109 -0
- package/dist/components/input.js.map +1 -0
- package/dist/components/label.cjs +18 -0
- package/dist/components/label.cjs.map +1 -0
- package/dist/components/label.d.cts +10 -0
- package/dist/components/label.d.ts +10 -0
- package/dist/components/label.js +15 -0
- package/dist/components/label.js.map +1 -0
- package/dist/components/layout.cjs +15 -0
- package/dist/components/layout.cjs.map +1 -0
- package/dist/components/layout.d.cts +12 -0
- package/dist/components/layout.d.ts +13 -0
- package/dist/components/layout.js +14 -0
- package/dist/components/layout.js.map +1 -0
- package/dist/components/line-chart.cjs +310 -0
- package/dist/components/line-chart.cjs.map +1 -0
- package/dist/components/line-chart.d.cts +71 -0
- package/dist/components/line-chart.d.ts +71 -0
- package/dist/components/line-chart.js +307 -0
- package/dist/components/line-chart.js.map +1 -0
- package/dist/components/list.cjs +132 -0
- package/dist/components/list.cjs.map +1 -0
- package/dist/components/list.d.cts +72 -0
- package/dist/components/list.d.ts +72 -0
- package/dist/components/list.js +122 -0
- package/dist/components/list.js.map +1 -0
- package/dist/components/marker.cjs +52 -0
- package/dist/components/marker.cjs.map +1 -0
- package/dist/components/marker.d.cts +29 -0
- package/dist/components/marker.d.ts +29 -0
- package/dist/components/marker.js +46 -0
- package/dist/components/marker.js.map +1 -0
- package/dist/components/message-scroller.cjs +73 -0
- package/dist/components/message-scroller.cjs.map +1 -0
- package/dist/components/message-scroller.d.cts +39 -0
- package/dist/components/message-scroller.d.ts +39 -0
- package/dist/components/message-scroller.js +62 -0
- package/dist/components/message-scroller.js.map +1 -0
- package/dist/components/message.cjs +60 -0
- package/dist/components/message.cjs.map +1 -0
- package/dist/components/message.d.cts +36 -0
- package/dist/components/message.d.ts +36 -0
- package/dist/components/message.js +52 -0
- package/dist/components/message.js.map +1 -0
- package/dist/components/metering-row.cjs +43 -0
- package/dist/components/metering-row.cjs.map +1 -0
- package/dist/components/metering-row.d.cts +32 -0
- package/dist/components/metering-row.d.ts +32 -0
- package/dist/components/metering-row.js +38 -0
- package/dist/components/metering-row.js.map +1 -0
- package/dist/components/money-saved-block.cjs +87 -0
- package/dist/components/money-saved-block.cjs.map +1 -0
- package/dist/components/money-saved-block.d.cts +57 -0
- package/dist/components/money-saved-block.d.ts +57 -0
- package/dist/components/money-saved-block.js +79 -0
- package/dist/components/money-saved-block.js.map +1 -0
- package/dist/components/number-flow.cjs +44 -0
- package/dist/components/number-flow.cjs.map +1 -0
- package/dist/components/number-flow.d.cts +4 -0
- package/dist/components/number-flow.d.ts +4 -0
- package/dist/components/number-flow.js +42 -0
- package/dist/components/number-flow.js.map +1 -0
- package/dist/components/on-off-button.cjs +36 -0
- package/dist/components/on-off-button.cjs.map +1 -0
- package/dist/components/on-off-button.d.cts +20 -0
- package/dist/components/on-off-button.d.ts +20 -0
- package/dist/components/on-off-button.js +34 -0
- package/dist/components/on-off-button.js.map +1 -0
- package/dist/components/onboarding-layout.cjs +68 -0
- package/dist/components/onboarding-layout.cjs.map +1 -0
- package/dist/components/onboarding-layout.d.cts +46 -0
- package/dist/components/onboarding-layout.d.ts +46 -0
- package/dist/components/onboarding-layout.js +60 -0
- package/dist/components/onboarding-layout.js.map +1 -0
- package/dist/components/page-header.cjs +50 -0
- package/dist/components/page-header.cjs.map +1 -0
- package/dist/components/page-header.d.cts +26 -0
- package/dist/components/page-header.d.ts +26 -0
- package/dist/components/page-header.js +44 -0
- package/dist/components/page-header.js.map +1 -0
- package/dist/components/page-spinner.cjs +19 -0
- package/dist/components/page-spinner.cjs.map +1 -0
- package/dist/components/page-spinner.d.cts +14 -0
- package/dist/components/page-spinner.d.ts +14 -0
- package/dist/components/page-spinner.js +17 -0
- package/dist/components/page-spinner.js.map +1 -0
- package/dist/components/period-tabs.cjs +79 -0
- package/dist/components/period-tabs.cjs.map +1 -0
- package/dist/components/period-tabs.d.cts +51 -0
- package/dist/components/period-tabs.d.ts +51 -0
- package/dist/components/period-tabs.js +73 -0
- package/dist/components/period-tabs.js.map +1 -0
- package/dist/components/popover.cjs +62 -0
- package/dist/components/popover.cjs.map +1 -0
- package/dist/components/popover.d.cts +29 -0
- package/dist/components/popover.d.ts +29 -0
- package/dist/components/popover.js +56 -0
- package/dist/components/popover.js.map +1 -0
- package/dist/components/power-history-chart.cjs +358 -0
- package/dist/components/power-history-chart.cjs.map +1 -0
- package/dist/components/power-history-chart.d.cts +54 -0
- package/dist/components/power-history-chart.d.ts +54 -0
- package/dist/components/power-history-chart.js +355 -0
- package/dist/components/power-history-chart.js.map +1 -0
- package/dist/components/power-history.cjs +115 -0
- package/dist/components/power-history.cjs.map +1 -0
- package/dist/components/power-history.d.cts +42 -0
- package/dist/components/power-history.d.ts +43 -0
- package/dist/components/power-history.js +114 -0
- package/dist/components/power-history.js.map +1 -0
- package/dist/components/power-network.cjs +530 -0
- package/dist/components/power-network.cjs.map +1 -0
- package/dist/components/power-network.d.cts +77 -0
- package/dist/components/power-network.d.ts +77 -0
- package/dist/components/power-network.js +523 -0
- package/dist/components/power-network.js.map +1 -0
- package/dist/components/progress.cjs +34 -0
- package/dist/components/progress.cjs.map +1 -0
- package/dist/components/progress.d.cts +17 -0
- package/dist/components/progress.d.ts +17 -0
- package/dist/components/progress.js +31 -0
- package/dist/components/progress.js.map +1 -0
- package/dist/components/radio-card-group.cjs +69 -0
- package/dist/components/radio-card-group.cjs.map +1 -0
- package/dist/components/radio-card-group.d.cts +21 -0
- package/dist/components/radio-card-group.d.ts +21 -0
- package/dist/components/radio-card-group.js +65 -0
- package/dist/components/radio-card-group.js.map +1 -0
- package/dist/components/radio.cjs +34 -0
- package/dist/components/radio.cjs.map +1 -0
- package/dist/components/radio.d.cts +21 -0
- package/dist/components/radio.d.ts +21 -0
- package/dist/components/radio.js +30 -0
- package/dist/components/radio.js.map +1 -0
- package/dist/components/reparent.cjs +55 -0
- package/dist/components/reparent.cjs.map +1 -0
- package/dist/components/reparent.d.cts +29 -0
- package/dist/components/reparent.d.ts +29 -0
- package/dist/components/reparent.js +49 -0
- package/dist/components/reparent.js.map +1 -0
- package/dist/components/sankey-chart.cjs +221 -0
- package/dist/components/sankey-chart.cjs.map +1 -0
- package/dist/components/sankey-chart.d.cts +58 -0
- package/dist/components/sankey-chart.d.ts +58 -0
- package/dist/components/sankey-chart.js +218 -0
- package/dist/components/sankey-chart.js.map +1 -0
- package/dist/components/schedule-editor.cjs +82 -0
- package/dist/components/schedule-editor.cjs.map +1 -0
- package/dist/components/schedule-editor.d.cts +25 -0
- package/dist/components/schedule-editor.d.ts +25 -0
- package/dist/components/schedule-editor.js +72 -0
- package/dist/components/schedule-editor.js.map +1 -0
- package/dist/components/schedule-list.cjs +110 -0
- package/dist/components/schedule-list.cjs.map +1 -0
- package/dist/components/schedule-list.d.cts +29 -0
- package/dist/components/schedule-list.d.ts +29 -0
- package/dist/components/schedule-list.js +99 -0
- package/dist/components/schedule-list.js.map +1 -0
- package/dist/components/scroll-area.cjs +53 -0
- package/dist/components/scroll-area.cjs.map +1 -0
- package/dist/components/scroll-area.d.cts +26 -0
- package/dist/components/scroll-area.d.ts +26 -0
- package/dist/components/scroll-area.js +44 -0
- package/dist/components/scroll-area.js.map +1 -0
- package/dist/components/select.cjs +136 -0
- package/dist/components/select.cjs.map +1 -0
- package/dist/components/select.d.cts +63 -0
- package/dist/components/select.d.ts +63 -0
- package/dist/components/select.js +124 -0
- package/dist/components/select.js.map +1 -0
- package/dist/components/separator.cjs +38 -0
- package/dist/components/separator.cjs.map +1 -0
- package/dist/components/separator.d.cts +13 -0
- package/dist/components/separator.d.ts +13 -0
- package/dist/components/separator.js +35 -0
- package/dist/components/separator.js.map +1 -0
- package/dist/components/series-legend.cjs +39 -0
- package/dist/components/series-legend.cjs.map +1 -0
- package/dist/components/series-legend.d.cts +31 -0
- package/dist/components/series-legend.d.ts +31 -0
- package/dist/components/series-legend.js +37 -0
- package/dist/components/series-legend.js.map +1 -0
- package/dist/components/sheet.cjs +102 -0
- package/dist/components/sheet.cjs.map +1 -0
- package/dist/components/sheet.d.cts +46 -0
- package/dist/components/sheet.d.ts +46 -0
- package/dist/components/sheet.js +90 -0
- package/dist/components/sheet.js.map +1 -0
- package/dist/components/skeleton.cjs +24 -0
- package/dist/components/skeleton.cjs.map +1 -0
- package/dist/components/skeleton.d.cts +24 -0
- package/dist/components/skeleton.d.ts +24 -0
- package/dist/components/skeleton.js +21 -0
- package/dist/components/skeleton.js.map +1 -0
- package/dist/components/slider.cjs +276 -0
- package/dist/components/slider.cjs.map +1 -0
- package/dist/components/slider.d.cts +150 -0
- package/dist/components/slider.d.ts +150 -0
- package/dist/components/slider.js +266 -0
- package/dist/components/slider.js.map +1 -0
- package/dist/components/smart-toggle-button.cjs +28 -0
- package/dist/components/smart-toggle-button.cjs.map +1 -0
- package/dist/components/smart-toggle-button.d.cts +18 -0
- package/dist/components/smart-toggle-button.d.ts +18 -0
- package/dist/components/smart-toggle-button.js +26 -0
- package/dist/components/smart-toggle-button.js.map +1 -0
- package/dist/components/solar-forecast-chart.cjs +105 -0
- package/dist/components/solar-forecast-chart.cjs.map +1 -0
- package/dist/components/solar-forecast-chart.d.cts +66 -0
- package/dist/components/solar-forecast-chart.d.ts +66 -0
- package/dist/components/solar-forecast-chart.js +99 -0
- package/dist/components/solar-forecast-chart.js.map +1 -0
- package/dist/components/sortable-list.cjs +69 -0
- package/dist/components/sortable-list.cjs.map +1 -0
- package/dist/components/sortable-list.d.cts +46 -0
- package/dist/components/sortable-list.d.ts +46 -0
- package/dist/components/sortable-list.js +67 -0
- package/dist/components/sortable-list.js.map +1 -0
- package/dist/components/spinner.cjs +42 -0
- package/dist/components/spinner.cjs.map +1 -0
- package/dist/components/spinner.d.cts +15 -0
- package/dist/components/spinner.d.ts +15 -0
- package/dist/components/spinner.js +39 -0
- package/dist/components/spinner.js.map +1 -0
- package/dist/components/stat-card.cjs +58 -0
- package/dist/components/stat-card.cjs.map +1 -0
- package/dist/components/stat-card.d.cts +36 -0
- package/dist/components/stat-card.d.ts +36 -0
- package/dist/components/stat-card.js +50 -0
- package/dist/components/stat-card.js.map +1 -0
- package/dist/components/stepper.cjs +79 -0
- package/dist/components/stepper.cjs.map +1 -0
- package/dist/components/stepper.d.cts +33 -0
- package/dist/components/stepper.d.ts +33 -0
- package/dist/components/stepper.js +76 -0
- package/dist/components/stepper.js.map +1 -0
- package/dist/components/switch.cjs +22 -0
- package/dist/components/switch.cjs.map +1 -0
- package/dist/components/switch.d.cts +28 -0
- package/dist/components/switch.d.ts +28 -0
- package/dist/components/switch.js +20 -0
- package/dist/components/switch.js.map +1 -0
- package/dist/components/tabs.cjs +175 -0
- package/dist/components/tabs.cjs.map +1 -0
- package/dist/components/tabs.d.cts +45 -0
- package/dist/components/tabs.d.ts +45 -0
- package/dist/components/tabs.js +167 -0
- package/dist/components/tabs.js.map +1 -0
- package/dist/components/theme.cjs +6 -0
- package/dist/components/theme.d.cts +38 -0
- package/dist/components/theme.d.ts +38 -0
- package/dist/components/theme.js +4 -0
- package/dist/components/thumbnail.cjs +54 -0
- package/dist/components/thumbnail.cjs.map +1 -0
- package/dist/components/thumbnail.d.cts +34 -0
- package/dist/components/thumbnail.d.ts +34 -0
- package/dist/components/thumbnail.js +51 -0
- package/dist/components/thumbnail.js.map +1 -0
- package/dist/components/time-picker.cjs +55 -0
- package/dist/components/time-picker.cjs.map +1 -0
- package/dist/components/time-picker.d.cts +41 -0
- package/dist/components/time-picker.d.ts +41 -0
- package/dist/components/time-picker.js +51 -0
- package/dist/components/time-picker.js.map +1 -0
- package/dist/components/toast.cjs +99 -0
- package/dist/components/toast.cjs.map +1 -0
- package/dist/components/toast.d.cts +18 -0
- package/dist/components/toast.d.ts +18 -0
- package/dist/components/toast.js +95 -0
- package/dist/components/toast.js.map +1 -0
- package/dist/components/tooltip.cjs +75 -0
- package/dist/components/tooltip.cjs.map +1 -0
- package/dist/components/tooltip.d.cts +47 -0
- package/dist/components/tooltip.d.ts +47 -0
- package/dist/components/tooltip.js +67 -0
- package/dist/components/tooltip.js.map +1 -0
- package/dist/components/typography.cjs +52 -0
- package/dist/components/typography.cjs.map +1 -0
- package/dist/components/typography.d.cts +32 -0
- package/dist/components/typography.d.ts +32 -0
- package/dist/components/typography.js +45 -0
- package/dist/components/typography.js.map +1 -0
- package/dist/hooks/use-container-width.cjs +22 -0
- package/dist/hooks/use-container-width.cjs.map +1 -0
- package/dist/hooks/use-container-width.d.cts +7 -0
- package/dist/hooks/use-container-width.d.ts +7 -0
- package/dist/hooks/use-container-width.js +20 -0
- package/dist/hooks/use-container-width.js.map +1 -0
- package/dist/icons/index.cjs +7 -0
- package/dist/icons/index.d.cts +4 -0
- package/dist/icons/index.d.ts +4 -0
- package/dist/icons/index.js +3 -0
- package/dist/icons/material-symbol.cjs +105 -0
- package/dist/icons/material-symbol.cjs.map +1 -0
- package/dist/icons/material-symbol.d.cts +23 -0
- package/dist/icons/material-symbol.d.ts +23 -0
- package/dist/icons/material-symbol.js +100 -0
- package/dist/icons/material-symbol.js.map +1 -0
- package/dist/input-box-variants-BMDdwvqg.cjs +40 -0
- package/dist/input-box-variants-BMDdwvqg.cjs.map +1 -0
- package/dist/input-box-variants-Dr1K7uYE.js +28 -0
- package/dist/input-box-variants-Dr1K7uYE.js.map +1 -0
- package/dist/number-flow-DMJouddg.d.cts +15 -0
- package/dist/number-flow-DSbucQ_K.d.ts +15 -0
- package/dist/styles/index.css +223 -0
- package/dist/styles/internal.css +5 -0
- package/dist/styles/material-symbol.css +22 -0
- package/dist/styles/spark-default.css +883 -0
- package/dist/styles/theme.css +542 -0
- package/dist/styles/utilities.css +557 -0
- package/dist/theme-B3WtiByA.js +574 -0
- package/dist/theme-B3WtiByA.js.map +1 -0
- package/dist/theme-C9_OSe0S.cjs +592 -0
- package/dist/theme-C9_OSe0S.cjs.map +1 -0
- package/dist/theme-types-DoROIXpi.d.ts +30 -0
- package/dist/theme-types-r20EJfEC.d.cts +30 -0
- package/dist/tones-DjgKOX3s.d.cts +8 -0
- package/dist/tones-DyCkL71h.d.ts +8 -0
- package/dist/utils/build-sankey-nodes.cjs +59 -0
- package/dist/utils/build-sankey-nodes.cjs.map +1 -0
- package/dist/utils/build-sankey-nodes.d.cts +27 -0
- package/dist/utils/build-sankey-nodes.d.ts +27 -0
- package/dist/utils/build-sankey-nodes.js +58 -0
- package/dist/utils/build-sankey-nodes.js.map +1 -0
- package/dist/utils/chars.cjs +18 -0
- package/dist/utils/chars.cjs.map +1 -0
- package/dist/utils/chars.d.cts +10 -0
- package/dist/utils/chars.d.ts +10 -0
- package/dist/utils/chars.js +14 -0
- package/dist/utils/chars.js.map +1 -0
- package/dist/utils/cn.cjs +10 -0
- package/dist/utils/cn.d.cts +4 -0
- package/dist/utils/cn.d.ts +4 -0
- package/dist/utils/cn.js +3 -0
- package/dist/utils/date-mask.cjs +45 -0
- package/dist/utils/date-mask.cjs.map +1 -0
- package/dist/utils/date-mask.d.cts +17 -0
- package/dist/utils/date-mask.d.ts +17 -0
- package/dist/utils/date-mask.js +41 -0
- package/dist/utils/date-mask.js.map +1 -0
- package/dist/utils/format.cjs +57 -0
- package/dist/utils/format.cjs.map +1 -0
- package/dist/utils/format.d.cts +23 -0
- package/dist/utils/format.d.ts +23 -0
- package/dist/utils/format.js +47 -0
- package/dist/utils/format.js.map +1 -0
- package/package.json +79 -49
- package/dist/index.cjs +0 -303
- package/dist/index.cjs.map +0 -1
- package/dist/index.css +0 -1
- package/dist/index.d.cts +0 -75
- package/dist/index.d.ts +0 -75
- package/dist/index.js +0 -255
- package/dist/index.js.map +0 -1
- package/dist/styles.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-mask.js","names":[],"sources":["../../src/utils/date-mask.ts"],"sourcesContent":["// Helpers for a typeable date field: mask keystrokes into DD.MM.YYYY, parse the\n// masked value into a Date, and format a picked Date back into the masked value.\n\n// While typing, a completed group (2 or 4 digits) gets a trailing separator so\n// the next group flows. While deleting, the trailing separator is kept only if\n// the raw value still ends with one — so backspace lands on `DD.MM.` first, then\n// removes the separator on the next press, one character at a time.\nexport function maskDateInput(\n value: string,\n { separator = '.', deleting = false }: MaskOptions = {},\n): string {\n const digits = value.replace(/\\D/g, '').slice(0, 8)\n let out = digits.slice(0, 2)\n if (digits.length > 2) out += separator + digits.slice(2, 4)\n if (digits.length > 4) out += separator + digits.slice(4, 8)\n const groupComplete = digits.length === 2 || digits.length === 4\n const keepTrailing = deleting ? /[./-]$/.test(value) : true\n if (groupComplete && keepTrailing) out += separator\n return out\n}\n\n// Accepts any of `.` `/` `-` as separators; rejects impossible dates (32.01.2020).\nexport function parseTypedDate(value: string): Date | undefined {\n const parts = value.trim().split(/[./-]/).map(Number)\n if (parts.length !== 3 || parts.some(Number.isNaN)) return undefined\n const [day, month, year] = parts as [number, number, number]\n const parsed = new Date(year, month - 1, day)\n const valid =\n parsed.getFullYear() === year &&\n parsed.getMonth() === month - 1 &&\n parsed.getDate() === day\n return valid ? parsed : undefined\n}\n\n// Caret position after TYPING: after the typed digit, flowing past a\n// separator into the next group. (For deletions, keep the raw caret instead —\n// the mask's separator positions are fixed, so it maps directly and backspace\n// can cross separators without looping.)\nexport function maskedDateCaret(masked: string, digitsBefore: number): number {\n let digits = 0\n let index = 0\n while (index < masked.length && digits < digitsBefore) {\n if (/\\d/.test(masked[index]!)) digits++\n index++\n }\n while (index < masked.length && /\\D/.test(masked[index]!)) index++\n return index\n}\n\nexport function formatTypedDate(date: Date, separator = '.'): string {\n const pad = (n: number) => String(n).padStart(2, '0')\n return [\n pad(date.getDate()),\n pad(date.getMonth() + 1),\n date.getFullYear(),\n ].join(separator)\n}\n\ninterface MaskOptions {\n separator?: string\n deleting?: boolean\n}\n"],"mappings":";;AAOA,SAAgB,cACd,OACA,EAAE,YAAY,KAAK,WAAW,UAAuB,EAAE,EAC/C;CACR,MAAM,SAAS,MAAM,QAAQ,OAAO,GAAG,CAAC,MAAM,GAAG,EAAE;CACnD,IAAI,MAAM,OAAO,MAAM,GAAG,EAAE;AAC5B,KAAI,OAAO,SAAS,EAAG,QAAO,YAAY,OAAO,MAAM,GAAG,EAAE;AAC5D,KAAI,OAAO,SAAS,EAAG,QAAO,YAAY,OAAO,MAAM,GAAG,EAAE;CAC5D,MAAM,gBAAgB,OAAO,WAAW,KAAK,OAAO,WAAW;CAC/D,MAAM,eAAe,WAAW,SAAS,KAAK,MAAM,GAAG;AACvD,KAAI,iBAAiB,aAAc,QAAO;AAC1C,QAAO;;AAIT,SAAgB,eAAe,OAAiC;CAC9D,MAAM,QAAQ,MAAM,MAAM,CAAC,MAAM,QAAQ,CAAC,IAAI,OAAO;AACrD,KAAI,MAAM,WAAW,KAAK,MAAM,KAAK,OAAO,MAAM,CAAE,QAAO,KAAA;CAC3D,MAAM,CAAC,KAAK,OAAO,QAAQ;CAC3B,MAAM,SAAS,IAAI,KAAK,MAAM,QAAQ,GAAG,IAAI;AAK7C,QAHE,OAAO,aAAa,KAAK,QACzB,OAAO,UAAU,KAAK,QAAQ,KAC9B,OAAO,SAAS,KAAK,MACR,SAAS,KAAA;;AAO1B,SAAgB,gBAAgB,QAAgB,cAA8B;CAC5E,IAAI,SAAS;CACb,IAAI,QAAQ;AACZ,QAAO,QAAQ,OAAO,UAAU,SAAS,cAAc;AACrD,MAAI,KAAK,KAAK,OAAO,OAAQ,CAAE;AAC/B;;AAEF,QAAO,QAAQ,OAAO,UAAU,KAAK,KAAK,OAAO,OAAQ,CAAE;AAC3D,QAAO;;AAGT,SAAgB,gBAAgB,MAAY,YAAY,KAAa;CACnE,MAAM,OAAO,MAAc,OAAO,EAAE,CAAC,SAAS,GAAG,IAAI;AACrD,QAAO;EACL,IAAI,KAAK,SAAS,CAAC;EACnB,IAAI,KAAK,UAAU,GAAG,EAAE;EACxB,KAAK,aAAa;EACnB,CAAC,KAAK,UAAU"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
require("./chars.cjs");
|
|
4
|
+
//#region src/utils/format.ts
|
|
5
|
+
function getDocumentLang() {
|
|
6
|
+
return typeof document === "undefined" ? void 0 : document.documentElement.lang || void 0;
|
|
7
|
+
}
|
|
8
|
+
const localeNumberFormat = (options) => {
|
|
9
|
+
const cache = /* @__PURE__ */ new Map();
|
|
10
|
+
return { format: (value) => {
|
|
11
|
+
const locale = getDocumentLang();
|
|
12
|
+
const key = locale ?? "";
|
|
13
|
+
let formatter = cache.get(key);
|
|
14
|
+
if (!formatter) {
|
|
15
|
+
formatter = new Intl.NumberFormat(locale, options);
|
|
16
|
+
cache.set(key, formatter);
|
|
17
|
+
}
|
|
18
|
+
return formatter.format(value);
|
|
19
|
+
} };
|
|
20
|
+
};
|
|
21
|
+
const decimalsFormat = (decimals) => localeNumberFormat({ maximumFractionDigits: decimals });
|
|
22
|
+
const integerFormat = decimalsFormat(0);
|
|
23
|
+
const oneDecimalFormat = decimalsFormat(1);
|
|
24
|
+
const twoDecimalFormat = decimalsFormat(2);
|
|
25
|
+
const formatThousands = (n) => integerFormat.format(n);
|
|
26
|
+
const formatEnergy = (v) => {
|
|
27
|
+
if (v >= 1e6) return `${twoDecimalFormat.format(v / 1e3)} MWh`;
|
|
28
|
+
if (v >= 1e3) return `${integerFormat.format(v)} kWh`;
|
|
29
|
+
if (v >= 10) return `${oneDecimalFormat.format(v)} kWh`;
|
|
30
|
+
return `${twoDecimalFormat.format(v)} kWh`;
|
|
31
|
+
};
|
|
32
|
+
const formatPower = (value, { signed = false } = {}) => {
|
|
33
|
+
if (value == null) return "—";
|
|
34
|
+
const rounded = Math.round(value);
|
|
35
|
+
return `${signed && rounded > 0 ? "+" : ""}${integerFormat.format(rounded)} W`;
|
|
36
|
+
};
|
|
37
|
+
const formatPercent = (value) => {
|
|
38
|
+
if (value == null) return "—";
|
|
39
|
+
return `${integerFormat.format(value)} %`;
|
|
40
|
+
};
|
|
41
|
+
const formatRatio = (value) => {
|
|
42
|
+
if (value == null) return "—";
|
|
43
|
+
return `${integerFormat.format(value * 100)} %`;
|
|
44
|
+
};
|
|
45
|
+
//#endregion
|
|
46
|
+
exports.decimalsFormat = decimalsFormat;
|
|
47
|
+
exports.formatEnergy = formatEnergy;
|
|
48
|
+
exports.formatPercent = formatPercent;
|
|
49
|
+
exports.formatPower = formatPower;
|
|
50
|
+
exports.formatRatio = formatRatio;
|
|
51
|
+
exports.formatThousands = formatThousands;
|
|
52
|
+
exports.integerFormat = integerFormat;
|
|
53
|
+
exports.localeNumberFormat = localeNumberFormat;
|
|
54
|
+
exports.oneDecimalFormat = oneDecimalFormat;
|
|
55
|
+
exports.twoDecimalFormat = twoDecimalFormat;
|
|
56
|
+
|
|
57
|
+
//# sourceMappingURL=format.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format.cjs","names":[],"sources":["../../src/utils/format.ts"],"sourcesContent":["import { EM_DASH, NARROW_NBSP } from './chars'\n\ninterface LocaleNumberFormat {\n format: (value: number) => string\n}\n\nfunction getDocumentLang(): string | undefined {\n return typeof document === 'undefined'\n ? undefined\n : document.documentElement.lang || undefined\n}\n\nconst localeNumberFormat = (\n options?: Intl.NumberFormatOptions,\n): LocaleNumberFormat => {\n const cache = new Map<string, Intl.NumberFormat>()\n return {\n format: (value) => {\n const locale = getDocumentLang()\n const key = locale ?? ''\n let formatter = cache.get(key)\n if (!formatter) {\n formatter = new Intl.NumberFormat(locale, options)\n cache.set(key, formatter)\n }\n return formatter.format(value)\n },\n }\n}\n\nconst decimalsFormat = (decimals: number) =>\n localeNumberFormat({ maximumFractionDigits: decimals })\n\nconst integerFormat = decimalsFormat(0)\nconst oneDecimalFormat = decimalsFormat(1)\nconst twoDecimalFormat = decimalsFormat(2)\n\nconst formatThousands = (n: number) => integerFormat.format(n)\n\nconst formatEnergy = (v: number) => {\n if (v >= 1_000_000) {\n return `${twoDecimalFormat.format(v / 1000)}${NARROW_NBSP}MWh`\n }\n if (v >= 1_000) return `${integerFormat.format(v)}${NARROW_NBSP}kWh`\n if (v >= 10) return `${oneDecimalFormat.format(v)}${NARROW_NBSP}kWh`\n return `${twoDecimalFormat.format(v)}${NARROW_NBSP}kWh`\n}\n\nconst formatPower = (\n value: number | null,\n { signed = false }: { signed?: boolean } = {},\n): string => {\n if (value == null) return EM_DASH\n const rounded = Math.round(value)\n const sign = signed && rounded > 0 ? '+' : ''\n return `${sign}${integerFormat.format(rounded)}${NARROW_NBSP}W`\n}\n\nconst formatPercent = (value: number | null): string => {\n if (value == null) return EM_DASH\n return `${integerFormat.format(value)}${NARROW_NBSP}%`\n}\n\nconst formatRatio = (value: number | null): string => {\n if (value == null) return EM_DASH\n return `${integerFormat.format(value * 100)}${NARROW_NBSP}%`\n}\n\nexport {\n formatThousands,\n formatEnergy,\n formatPower,\n formatPercent,\n formatRatio,\n localeNumberFormat,\n decimalsFormat,\n integerFormat,\n oneDecimalFormat,\n twoDecimalFormat,\n}\n"],"mappings":";;;;AAMA,SAAS,kBAAsC;AAC7C,QAAO,OAAO,aAAa,cACvB,KAAA,IACA,SAAS,gBAAgB,QAAQ,KAAA;;AAGvC,MAAM,sBACJ,YACuB;CACvB,MAAM,wBAAQ,IAAI,KAAgC;AAClD,QAAO,EACL,SAAS,UAAU;EACjB,MAAM,SAAS,iBAAiB;EAChC,MAAM,MAAM,UAAU;EACtB,IAAI,YAAY,MAAM,IAAI,IAAI;AAC9B,MAAI,CAAC,WAAW;AACd,eAAY,IAAI,KAAK,aAAa,QAAQ,QAAQ;AAClD,SAAM,IAAI,KAAK,UAAU;;AAE3B,SAAO,UAAU,OAAO,MAAM;IAEjC;;AAGH,MAAM,kBAAkB,aACtB,mBAAmB,EAAE,uBAAuB,UAAU,CAAC;AAEzD,MAAM,gBAAgB,eAAe,EAAE;AACvC,MAAM,mBAAmB,eAAe,EAAE;AAC1C,MAAM,mBAAmB,eAAe,EAAE;AAE1C,MAAM,mBAAmB,MAAc,cAAc,OAAO,EAAE;AAE9D,MAAM,gBAAgB,MAAc;AAClC,KAAI,KAAK,IACP,QAAO,GAAG,iBAAiB,OAAO,IAAI,IAAK;AAE7C,KAAI,KAAK,IAAO,QAAO,GAAG,cAAc,OAAO,EAAE;AACjD,KAAI,KAAK,GAAI,QAAO,GAAG,iBAAiB,OAAO,EAAE;AACjD,QAAO,GAAG,iBAAiB,OAAO,EAAE;;AAGtC,MAAM,eACJ,OACA,EAAE,SAAS,UAAgC,EAAE,KAClC;AACX,KAAI,SAAS,KAAM,QAAA;CACnB,MAAM,UAAU,KAAK,MAAM,MAAM;AAEjC,QAAO,GADM,UAAU,UAAU,IAAI,MAAM,KAC1B,cAAc,OAAO,QAAQ;;AAGhD,MAAM,iBAAiB,UAAiC;AACtD,KAAI,SAAS,KAAM,QAAA;AACnB,QAAO,GAAG,cAAc,OAAO,MAAM;;AAGvC,MAAM,eAAe,UAAiC;AACpD,KAAI,SAAS,KAAM,QAAA;AACnB,QAAO,GAAG,cAAc,OAAO,QAAQ,IAAI"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
//#region src/utils/format.d.ts
|
|
4
|
+
interface LocaleNumberFormat {
|
|
5
|
+
format: (value: number) => string;
|
|
6
|
+
}
|
|
7
|
+
declare const localeNumberFormat: (options?: Intl.NumberFormatOptions) => LocaleNumberFormat;
|
|
8
|
+
declare const decimalsFormat: (decimals: number) => LocaleNumberFormat;
|
|
9
|
+
declare const integerFormat: LocaleNumberFormat;
|
|
10
|
+
declare const oneDecimalFormat: LocaleNumberFormat;
|
|
11
|
+
declare const twoDecimalFormat: LocaleNumberFormat;
|
|
12
|
+
declare const formatThousands: (n: number) => string;
|
|
13
|
+
declare const formatEnergy: (v: number) => string;
|
|
14
|
+
declare const formatPower: (value: number | null, {
|
|
15
|
+
signed
|
|
16
|
+
}?: {
|
|
17
|
+
signed?: boolean;
|
|
18
|
+
}) => string;
|
|
19
|
+
declare const formatPercent: (value: number | null) => string;
|
|
20
|
+
declare const formatRatio: (value: number | null) => string;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { decimalsFormat, formatEnergy, formatPercent, formatPower, formatRatio, formatThousands, integerFormat, localeNumberFormat, oneDecimalFormat, twoDecimalFormat };
|
|
23
|
+
//# sourceMappingURL=format.d.cts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
//#region src/utils/format.d.ts
|
|
4
|
+
interface LocaleNumberFormat {
|
|
5
|
+
format: (value: number) => string;
|
|
6
|
+
}
|
|
7
|
+
declare const localeNumberFormat: (options?: Intl.NumberFormatOptions) => LocaleNumberFormat;
|
|
8
|
+
declare const decimalsFormat: (decimals: number) => LocaleNumberFormat;
|
|
9
|
+
declare const integerFormat: LocaleNumberFormat;
|
|
10
|
+
declare const oneDecimalFormat: LocaleNumberFormat;
|
|
11
|
+
declare const twoDecimalFormat: LocaleNumberFormat;
|
|
12
|
+
declare const formatThousands: (n: number) => string;
|
|
13
|
+
declare const formatEnergy: (v: number) => string;
|
|
14
|
+
declare const formatPower: (value: number | null, {
|
|
15
|
+
signed
|
|
16
|
+
}?: {
|
|
17
|
+
signed?: boolean;
|
|
18
|
+
}) => string;
|
|
19
|
+
declare const formatPercent: (value: number | null) => string;
|
|
20
|
+
declare const formatRatio: (value: number | null) => string;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { decimalsFormat, formatEnergy, formatPercent, formatPower, formatRatio, formatThousands, integerFormat, localeNumberFormat, oneDecimalFormat, twoDecimalFormat };
|
|
23
|
+
//# sourceMappingURL=format.d.ts.map
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "./chars.js";
|
|
3
|
+
//#region src/utils/format.ts
|
|
4
|
+
function getDocumentLang() {
|
|
5
|
+
return typeof document === "undefined" ? void 0 : document.documentElement.lang || void 0;
|
|
6
|
+
}
|
|
7
|
+
const localeNumberFormat = (options) => {
|
|
8
|
+
const cache = /* @__PURE__ */ new Map();
|
|
9
|
+
return { format: (value) => {
|
|
10
|
+
const locale = getDocumentLang();
|
|
11
|
+
const key = locale ?? "";
|
|
12
|
+
let formatter = cache.get(key);
|
|
13
|
+
if (!formatter) {
|
|
14
|
+
formatter = new Intl.NumberFormat(locale, options);
|
|
15
|
+
cache.set(key, formatter);
|
|
16
|
+
}
|
|
17
|
+
return formatter.format(value);
|
|
18
|
+
} };
|
|
19
|
+
};
|
|
20
|
+
const decimalsFormat = (decimals) => localeNumberFormat({ maximumFractionDigits: decimals });
|
|
21
|
+
const integerFormat = decimalsFormat(0);
|
|
22
|
+
const oneDecimalFormat = decimalsFormat(1);
|
|
23
|
+
const twoDecimalFormat = decimalsFormat(2);
|
|
24
|
+
const formatThousands = (n) => integerFormat.format(n);
|
|
25
|
+
const formatEnergy = (v) => {
|
|
26
|
+
if (v >= 1e6) return `${twoDecimalFormat.format(v / 1e3)} MWh`;
|
|
27
|
+
if (v >= 1e3) return `${integerFormat.format(v)} kWh`;
|
|
28
|
+
if (v >= 10) return `${oneDecimalFormat.format(v)} kWh`;
|
|
29
|
+
return `${twoDecimalFormat.format(v)} kWh`;
|
|
30
|
+
};
|
|
31
|
+
const formatPower = (value, { signed = false } = {}) => {
|
|
32
|
+
if (value == null) return "—";
|
|
33
|
+
const rounded = Math.round(value);
|
|
34
|
+
return `${signed && rounded > 0 ? "+" : ""}${integerFormat.format(rounded)} W`;
|
|
35
|
+
};
|
|
36
|
+
const formatPercent = (value) => {
|
|
37
|
+
if (value == null) return "—";
|
|
38
|
+
return `${integerFormat.format(value)} %`;
|
|
39
|
+
};
|
|
40
|
+
const formatRatio = (value) => {
|
|
41
|
+
if (value == null) return "—";
|
|
42
|
+
return `${integerFormat.format(value * 100)} %`;
|
|
43
|
+
};
|
|
44
|
+
//#endregion
|
|
45
|
+
export { decimalsFormat, formatEnergy, formatPercent, formatPower, formatRatio, formatThousands, integerFormat, localeNumberFormat, oneDecimalFormat, twoDecimalFormat };
|
|
46
|
+
|
|
47
|
+
//# sourceMappingURL=format.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format.js","names":[],"sources":["../../src/utils/format.ts"],"sourcesContent":["import { EM_DASH, NARROW_NBSP } from './chars'\n\ninterface LocaleNumberFormat {\n format: (value: number) => string\n}\n\nfunction getDocumentLang(): string | undefined {\n return typeof document === 'undefined'\n ? undefined\n : document.documentElement.lang || undefined\n}\n\nconst localeNumberFormat = (\n options?: Intl.NumberFormatOptions,\n): LocaleNumberFormat => {\n const cache = new Map<string, Intl.NumberFormat>()\n return {\n format: (value) => {\n const locale = getDocumentLang()\n const key = locale ?? ''\n let formatter = cache.get(key)\n if (!formatter) {\n formatter = new Intl.NumberFormat(locale, options)\n cache.set(key, formatter)\n }\n return formatter.format(value)\n },\n }\n}\n\nconst decimalsFormat = (decimals: number) =>\n localeNumberFormat({ maximumFractionDigits: decimals })\n\nconst integerFormat = decimalsFormat(0)\nconst oneDecimalFormat = decimalsFormat(1)\nconst twoDecimalFormat = decimalsFormat(2)\n\nconst formatThousands = (n: number) => integerFormat.format(n)\n\nconst formatEnergy = (v: number) => {\n if (v >= 1_000_000) {\n return `${twoDecimalFormat.format(v / 1000)}${NARROW_NBSP}MWh`\n }\n if (v >= 1_000) return `${integerFormat.format(v)}${NARROW_NBSP}kWh`\n if (v >= 10) return `${oneDecimalFormat.format(v)}${NARROW_NBSP}kWh`\n return `${twoDecimalFormat.format(v)}${NARROW_NBSP}kWh`\n}\n\nconst formatPower = (\n value: number | null,\n { signed = false }: { signed?: boolean } = {},\n): string => {\n if (value == null) return EM_DASH\n const rounded = Math.round(value)\n const sign = signed && rounded > 0 ? '+' : ''\n return `${sign}${integerFormat.format(rounded)}${NARROW_NBSP}W`\n}\n\nconst formatPercent = (value: number | null): string => {\n if (value == null) return EM_DASH\n return `${integerFormat.format(value)}${NARROW_NBSP}%`\n}\n\nconst formatRatio = (value: number | null): string => {\n if (value == null) return EM_DASH\n return `${integerFormat.format(value * 100)}${NARROW_NBSP}%`\n}\n\nexport {\n formatThousands,\n formatEnergy,\n formatPower,\n formatPercent,\n formatRatio,\n localeNumberFormat,\n decimalsFormat,\n integerFormat,\n oneDecimalFormat,\n twoDecimalFormat,\n}\n"],"mappings":";;;AAMA,SAAS,kBAAsC;AAC7C,QAAO,OAAO,aAAa,cACvB,KAAA,IACA,SAAS,gBAAgB,QAAQ,KAAA;;AAGvC,MAAM,sBACJ,YACuB;CACvB,MAAM,wBAAQ,IAAI,KAAgC;AAClD,QAAO,EACL,SAAS,UAAU;EACjB,MAAM,SAAS,iBAAiB;EAChC,MAAM,MAAM,UAAU;EACtB,IAAI,YAAY,MAAM,IAAI,IAAI;AAC9B,MAAI,CAAC,WAAW;AACd,eAAY,IAAI,KAAK,aAAa,QAAQ,QAAQ;AAClD,SAAM,IAAI,KAAK,UAAU;;AAE3B,SAAO,UAAU,OAAO,MAAM;IAEjC;;AAGH,MAAM,kBAAkB,aACtB,mBAAmB,EAAE,uBAAuB,UAAU,CAAC;AAEzD,MAAM,gBAAgB,eAAe,EAAE;AACvC,MAAM,mBAAmB,eAAe,EAAE;AAC1C,MAAM,mBAAmB,eAAe,EAAE;AAE1C,MAAM,mBAAmB,MAAc,cAAc,OAAO,EAAE;AAE9D,MAAM,gBAAgB,MAAc;AAClC,KAAI,KAAK,IACP,QAAO,GAAG,iBAAiB,OAAO,IAAI,IAAK;AAE7C,KAAI,KAAK,IAAO,QAAO,GAAG,cAAc,OAAO,EAAE;AACjD,KAAI,KAAK,GAAI,QAAO,GAAG,iBAAiB,OAAO,EAAE;AACjD,QAAO,GAAG,iBAAiB,OAAO,EAAE;;AAGtC,MAAM,eACJ,OACA,EAAE,SAAS,UAAgC,EAAE,KAClC;AACX,KAAI,SAAS,KAAM,QAAA;CACnB,MAAM,UAAU,KAAK,MAAM,MAAM;AAEjC,QAAO,GADM,UAAU,UAAU,IAAI,MAAM,KAC1B,cAAc,OAAO,QAAQ;;AAGhD,MAAM,iBAAiB,UAAiC;AACtD,KAAI,SAAS,KAAM,QAAA;AACnB,QAAO,GAAG,cAAc,OAAO,MAAM;;AAGvC,MAAM,eAAe,UAAiC;AACpD,KAAI,SAAS,KAAM,QAAA;AACnB,QAAO,GAAG,cAAc,OAAO,QAAQ,IAAI"}
|
package/package.json
CHANGED
|
@@ -1,64 +1,94 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot/spark-ui",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.3",
|
|
4
4
|
"description": "React UI component library from Spark SDK",
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
".": {
|
|
12
|
-
"types": "./dist/index.d.ts",
|
|
13
|
-
"import": "./dist/index.js",
|
|
14
|
-
"require": "./dist/index.cjs"
|
|
15
|
-
},
|
|
16
|
-
"./styles": "./dist/index.css",
|
|
17
|
-
"./package.json": "./package.json"
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"author": "epilot",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/epilot/spark-sdk.git",
|
|
10
|
+
"directory": "packages/ui"
|
|
18
11
|
},
|
|
19
12
|
"files": [
|
|
20
13
|
"dist",
|
|
14
|
+
"LICENSE",
|
|
15
|
+
"NOTICE",
|
|
21
16
|
"README.md"
|
|
22
17
|
],
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"
|
|
18
|
+
"type": "module",
|
|
19
|
+
"sideEffects": [
|
|
20
|
+
"**/*.css"
|
|
21
|
+
],
|
|
22
|
+
"exports": {
|
|
23
|
+
"./styles": "./dist/styles/index.css",
|
|
24
|
+
"./spark-default": "./dist/styles/spark-default.css",
|
|
25
|
+
"./utils/*": {
|
|
26
|
+
"types": "./dist/utils/*.d.ts",
|
|
27
|
+
"default": "./dist/utils/*.js"
|
|
28
|
+
},
|
|
29
|
+
"./icons/*": {
|
|
30
|
+
"types": "./dist/icons/*.d.ts",
|
|
31
|
+
"default": "./dist/icons/*.js"
|
|
32
|
+
},
|
|
33
|
+
"./*": {
|
|
34
|
+
"types": "./dist/components/*.d.ts",
|
|
35
|
+
"default": "./dist/components/*.js"
|
|
36
|
+
}
|
|
29
37
|
},
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"@base-ui/react": "^1.6.0",
|
|
40
|
+
"@daypicker/react": "^10.0.1",
|
|
41
|
+
"@dnd-kit/core": "^6.3.1",
|
|
42
|
+
"@dnd-kit/modifiers": "^9.0.0",
|
|
43
|
+
"@dnd-kit/sortable": "^10.0.0",
|
|
44
|
+
"@dnd-kit/utilities": "^3.2.2",
|
|
45
|
+
"@number-flow/react": "^0.6.0",
|
|
46
|
+
"@radix-ui/colors": "^3.0.0",
|
|
47
|
+
"@shadcn/react": "^0.2.1",
|
|
48
|
+
"@visx/curve": "^4.0.0-alpha.11",
|
|
49
|
+
"@visx/event": "^4.0.0-alpha.11",
|
|
50
|
+
"@visx/group": "^4.0.0-alpha.11",
|
|
51
|
+
"@visx/sankey": "^4.0.0-alpha.11",
|
|
52
|
+
"@visx/scale": "^4.0.0-alpha.11",
|
|
53
|
+
"@visx/shape": "^4.0.0-alpha.11",
|
|
54
|
+
"@visx/tooltip": "^4.0.0-alpha.11",
|
|
55
|
+
"@visx/vendor": "^4.0.0-alpha.11",
|
|
56
|
+
"bezier-easing": "^2.1.0",
|
|
57
|
+
"class-variance-authority": "^0.7.1",
|
|
58
|
+
"cnfast": "^0.0.8",
|
|
59
|
+
"colorjs.io": "^0.5.2",
|
|
60
|
+
"sonner": "^2.0.7",
|
|
61
|
+
"vaul": "^1.1.2"
|
|
62
|
+
},
|
|
63
|
+
"devDependencies": {
|
|
64
|
+
"@tailwindcss/postcss": "^4.2.4",
|
|
65
|
+
"@testing-library/dom": "^10.4.0",
|
|
66
|
+
"@testing-library/react": "^16.3.0",
|
|
67
|
+
"@types/react": "^19.2.14",
|
|
68
|
+
"@types/react-dom": "^19.2.3",
|
|
69
|
+
"jsdom": "^29.1.1",
|
|
70
|
+
"postcss": "^8.5.12",
|
|
71
|
+
"react": "^19.2.5",
|
|
72
|
+
"react-dom": "^19.2.5",
|
|
73
|
+
"tailwindcss": "^4.2.4",
|
|
74
|
+
"tw-animate-css": "^1.4.0",
|
|
75
|
+
"typescript": "^6.0.2",
|
|
76
|
+
"vite": "npm:@voidzero-dev/vite-plus-core@latest",
|
|
77
|
+
"vite-plus": "^0.1.20",
|
|
78
|
+
"vitest": "npm:@voidzero-dev/vite-plus-test@latest",
|
|
79
|
+
"vitest-axe": "^0.1.0"
|
|
36
80
|
},
|
|
37
81
|
"peerDependencies": {
|
|
38
82
|
"react": ">=18.0.0",
|
|
39
83
|
"react-dom": ">=18.0.0",
|
|
40
|
-
"tailwindcss": ">=4.
|
|
41
|
-
"tw-animate-css": ">=1.
|
|
42
|
-
},
|
|
43
|
-
"devDependencies": {
|
|
44
|
-
"@tailwindcss/postcss": "^4.1.18",
|
|
45
|
-
"@types/react": "^18.2.0",
|
|
46
|
-
"@types/react-dom": "^18.2.0",
|
|
47
|
-
"postcss": "^8.5.6",
|
|
48
|
-
"react": "^18.2.0",
|
|
49
|
-
"react-dom": "^18.2.0",
|
|
50
|
-
"tailwindcss": "^4.1.18",
|
|
51
|
-
"tsup": "^8.0.0",
|
|
52
|
-
"tw-animate-css": "^1.4.0",
|
|
53
|
-
"typescript": "^5.3.0",
|
|
54
|
-
"vite": "^6.0.0"
|
|
84
|
+
"tailwindcss": ">=4.1.0",
|
|
85
|
+
"tw-animate-css": ">=1.4.0"
|
|
55
86
|
},
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"tailwind-merge": "^3.4.0"
|
|
87
|
+
"scripts": {
|
|
88
|
+
"build": "vp pack",
|
|
89
|
+
"clean": "rm -rf dist",
|
|
90
|
+
"dev": "vp pack --watch",
|
|
91
|
+
"test": "vp test run",
|
|
92
|
+
"typecheck": "tsc --noEmit"
|
|
63
93
|
}
|
|
64
|
-
}
|
|
94
|
+
}
|
package/dist/index.cjs
DELETED
|
@@ -1,303 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var reactSlot = require('@radix-ui/react-slot');
|
|
4
|
-
var classVarianceAuthority = require('class-variance-authority');
|
|
5
|
-
var React2 = require('react');
|
|
6
|
-
var clsx = require('clsx');
|
|
7
|
-
var tailwindMerge = require('tailwind-merge');
|
|
8
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
9
|
-
var DialogPrimitive = require('@radix-ui/react-dialog');
|
|
10
|
-
|
|
11
|
-
function _interopNamespace(e) {
|
|
12
|
-
if (e && e.__esModule) return e;
|
|
13
|
-
var n = Object.create(null);
|
|
14
|
-
if (e) {
|
|
15
|
-
Object.keys(e).forEach(function (k) {
|
|
16
|
-
if (k !== 'default') {
|
|
17
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
18
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function () { return e[k]; }
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
n.default = e;
|
|
26
|
-
return Object.freeze(n);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
var React2__namespace = /*#__PURE__*/_interopNamespace(React2);
|
|
30
|
-
var DialogPrimitive__namespace = /*#__PURE__*/_interopNamespace(DialogPrimitive);
|
|
31
|
-
|
|
32
|
-
function cn(...inputs) {
|
|
33
|
-
return tailwindMerge.twMerge(clsx.clsx(inputs));
|
|
34
|
-
}
|
|
35
|
-
var buttonVariants = classVarianceAuthority.cva(
|
|
36
|
-
`inline-flex items-center justify-center gap-2 whitespace-nowrap cursor-pointer text-base font-medium transition-colors focus-visible:outline-hidden focus-visible:ring focus-visible:ring-offset-2 disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:size-6 [&_svg]:shrink-0`,
|
|
37
|
-
{
|
|
38
|
-
variants: {
|
|
39
|
-
variant: {
|
|
40
|
-
primary: "bg-spark-10 text-accent-contrast focus-visible:bg-spark-9 disabled:bg-spark-a3 disabled:text-spark-a7 hover:bg-spark-9",
|
|
41
|
-
secondary: "bg-spark-a3 text-spark-a12 focus-visible:bg-spark-a4 disabled:bg-slate-a3 disabled:text-spark-a7 hover:bg-spark-a4",
|
|
42
|
-
tertiary: "bg-transparent text-spark-a11 focus-visible:bg-slate-a3 disabled:bg-transparent disabled:text-spark-a7 hover:bg-slate-a3",
|
|
43
|
-
bare: "rounded-none! text-gray outline-hidden!",
|
|
44
|
-
icon: "rounded-md text-spark-a11 focus-visible:bg-slate-a3 hover:bg-slate-a3"
|
|
45
|
-
},
|
|
46
|
-
shape: {
|
|
47
|
-
default: "rounded-[max(var(--spark-rounded-md),var(--spark-rounded-full))]"
|
|
48
|
-
},
|
|
49
|
-
size: {
|
|
50
|
-
small: "min-w-9 px-3 max-sm:h-10 md:h-9",
|
|
51
|
-
default: "h-11 min-w-10 px-3 max-sm:h-12",
|
|
52
|
-
medium: "h-12 min-w-12 px-4"
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
defaultVariants: {
|
|
56
|
-
shape: "default",
|
|
57
|
-
variant: "primary",
|
|
58
|
-
size: "default"
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
);
|
|
62
|
-
var Button = React2__namespace.forwardRef(
|
|
63
|
-
({ className, variant, size, asChild = false, ...props }, ref) => {
|
|
64
|
-
const Comp = asChild ? reactSlot.Slot : "button";
|
|
65
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Comp, { className: cn(buttonVariants({ variant, size, className })), ref, ...props });
|
|
66
|
-
}
|
|
67
|
-
);
|
|
68
|
-
Button.displayName = "Button";
|
|
69
|
-
var Card = React2__namespace.forwardRef(
|
|
70
|
-
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
71
|
-
"div",
|
|
72
|
-
{
|
|
73
|
-
className: cn(
|
|
74
|
-
"relative flex w-full flex-col gap-1 rounded-2xl bg-base-gray-soft p-4",
|
|
75
|
-
className
|
|
76
|
-
),
|
|
77
|
-
ref,
|
|
78
|
-
...props
|
|
79
|
-
}
|
|
80
|
-
)
|
|
81
|
-
);
|
|
82
|
-
Card.displayName = "Card";
|
|
83
|
-
var CardHeader = React2__namespace.forwardRef(
|
|
84
|
-
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("flex items-center gap-4", className), ref, ...props })
|
|
85
|
-
);
|
|
86
|
-
CardHeader.displayName = "CardHeader";
|
|
87
|
-
var CardIcon = React2__namespace.forwardRef(
|
|
88
|
-
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
89
|
-
"div",
|
|
90
|
-
{
|
|
91
|
-
className: cn("flex shrink-0 items-center justify-center text-accent-active", className),
|
|
92
|
-
ref,
|
|
93
|
-
...props
|
|
94
|
-
}
|
|
95
|
-
)
|
|
96
|
-
);
|
|
97
|
-
CardIcon.displayName = "CardIcon";
|
|
98
|
-
var CardTitle = React2__namespace.forwardRef(
|
|
99
|
-
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
100
|
-
"h3",
|
|
101
|
-
{
|
|
102
|
-
className: cn("text-base font-medium leading-5 text-gray", className),
|
|
103
|
-
ref,
|
|
104
|
-
...props
|
|
105
|
-
}
|
|
106
|
-
)
|
|
107
|
-
);
|
|
108
|
-
CardTitle.displayName = "CardTitle";
|
|
109
|
-
var CardDescription = React2__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("p", { className: cn("text-sm leading-5 text-gray-light", className), ref, ...props }));
|
|
110
|
-
CardDescription.displayName = "CardDescription";
|
|
111
|
-
var CardContent = React2__namespace.forwardRef(
|
|
112
|
-
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("", className), ref, ...props })
|
|
113
|
-
);
|
|
114
|
-
CardContent.displayName = "CardContent";
|
|
115
|
-
var CardFooter = React2__namespace.forwardRef(
|
|
116
|
-
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
117
|
-
"div",
|
|
118
|
-
{
|
|
119
|
-
className: cn("flex items-center text-gray justify-end gap-2 pt-2", className),
|
|
120
|
-
ref,
|
|
121
|
-
...props
|
|
122
|
-
}
|
|
123
|
-
)
|
|
124
|
-
);
|
|
125
|
-
CardFooter.displayName = "CardFooter";
|
|
126
|
-
var CardSkeleton = React2__namespace.forwardRef(
|
|
127
|
-
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
128
|
-
"div",
|
|
129
|
-
{
|
|
130
|
-
className: cn(
|
|
131
|
-
"relative flex w-full items-center gap-4 rounded-2xl bg-spark-a3 p-4 opacity-80",
|
|
132
|
-
className
|
|
133
|
-
),
|
|
134
|
-
ref,
|
|
135
|
-
...props,
|
|
136
|
-
children: [
|
|
137
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "size-10 shrink-0 animate-pulse rounded-full bg-base-gray-soft" }),
|
|
138
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-1 flex-col gap-y-2", children: [
|
|
139
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-5 w-1/3 max-w-32 animate-pulse rounded-md bg-base-gray-soft" }),
|
|
140
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-4 w-1/2 max-w-48 animate-pulse rounded-md bg-base-gray-soft" })
|
|
141
|
-
] })
|
|
142
|
-
]
|
|
143
|
-
}
|
|
144
|
-
)
|
|
145
|
-
);
|
|
146
|
-
CardSkeleton.displayName = "CardSkeleton";
|
|
147
|
-
var Dialog = DialogPrimitive__namespace.Root;
|
|
148
|
-
var DialogTrigger = DialogPrimitive__namespace.Trigger;
|
|
149
|
-
var DialogPortal = DialogPrimitive__namespace.Portal;
|
|
150
|
-
var DialogClose = DialogPrimitive__namespace.Close;
|
|
151
|
-
var DialogOverlay = React2__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
152
|
-
DialogPrimitive__namespace.Overlay,
|
|
153
|
-
{
|
|
154
|
-
className: cn(
|
|
155
|
-
"fixed inset-0 z-50 bg-black-a6 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 dark:bg-black-a8",
|
|
156
|
-
className
|
|
157
|
-
),
|
|
158
|
-
"data-overlay": "true",
|
|
159
|
-
ref,
|
|
160
|
-
...props
|
|
161
|
-
}
|
|
162
|
-
));
|
|
163
|
-
DialogOverlay.displayName = DialogPrimitive__namespace.Overlay.displayName;
|
|
164
|
-
var onInteractOutsideHandler = (event) => {
|
|
165
|
-
const target = event.target;
|
|
166
|
-
const isOverlay = target.dataset.overlay === "true";
|
|
167
|
-
if (!isOverlay) event.preventDefault();
|
|
168
|
-
};
|
|
169
|
-
var DialogContent = React2__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
170
|
-
/* @__PURE__ */ jsxRuntime.jsx(DialogOverlay, {}),
|
|
171
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
172
|
-
DialogPrimitive__namespace.Content,
|
|
173
|
-
{
|
|
174
|
-
className: cn(
|
|
175
|
-
"fixed left-[50%] top-[50%] z-50 grid w-[90%] min-w-80 max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 rounded-2xl bg-slate-2 p-6 text-gray shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-50% data-[state=closed]:slide-out-to-top-48% data-[state=open]:slide-in-from-top-48% dark:bg-gray-2 sm:w-1/2",
|
|
176
|
-
className
|
|
177
|
-
),
|
|
178
|
-
onInteractOutside: onInteractOutsideHandler,
|
|
179
|
-
ref,
|
|
180
|
-
...props,
|
|
181
|
-
children
|
|
182
|
-
}
|
|
183
|
-
)
|
|
184
|
-
] }));
|
|
185
|
-
DialogContent.displayName = DialogPrimitive__namespace.Content.displayName;
|
|
186
|
-
var DialogHeader = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("", className), ...props });
|
|
187
|
-
DialogHeader.displayName = "DialogHeader";
|
|
188
|
-
var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
189
|
-
"div",
|
|
190
|
-
{
|
|
191
|
-
className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className),
|
|
192
|
-
...props
|
|
193
|
-
}
|
|
194
|
-
);
|
|
195
|
-
DialogFooter.displayName = "DialogFooter";
|
|
196
|
-
var DialogTitle = React2__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
197
|
-
DialogPrimitive__namespace.Title,
|
|
198
|
-
{
|
|
199
|
-
className: cn("text-lg font-bold text-gray", className),
|
|
200
|
-
ref,
|
|
201
|
-
...props
|
|
202
|
-
}
|
|
203
|
-
));
|
|
204
|
-
DialogTitle.displayName = DialogPrimitive__namespace.Title.displayName;
|
|
205
|
-
var DialogDescription = React2__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
206
|
-
DialogPrimitive__namespace.Description,
|
|
207
|
-
{
|
|
208
|
-
className: cn("text-md text-gray", className),
|
|
209
|
-
ref,
|
|
210
|
-
...props
|
|
211
|
-
}
|
|
212
|
-
));
|
|
213
|
-
DialogDescription.displayName = DialogPrimitive__namespace.Description.displayName;
|
|
214
|
-
var DisplayField = React2__namespace.forwardRef(
|
|
215
|
-
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
216
|
-
"div",
|
|
217
|
-
{
|
|
218
|
-
className: cn(
|
|
219
|
-
"relative flex min-h-12 w-full justify-between gap-2 rounded-2xl bg-base-gray-soft p-4",
|
|
220
|
-
className
|
|
221
|
-
),
|
|
222
|
-
ref,
|
|
223
|
-
...props
|
|
224
|
-
}
|
|
225
|
-
)
|
|
226
|
-
);
|
|
227
|
-
DisplayField.displayName = "DisplayField";
|
|
228
|
-
var DisplayFieldLabel = React2__namespace.forwardRef(
|
|
229
|
-
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
230
|
-
"span",
|
|
231
|
-
{
|
|
232
|
-
className: cn("text-sm font-medium leading-5 text-gray-light wrap-break-word", className),
|
|
233
|
-
ref,
|
|
234
|
-
...props
|
|
235
|
-
}
|
|
236
|
-
)
|
|
237
|
-
);
|
|
238
|
-
DisplayFieldLabel.displayName = "DisplayFieldLabel";
|
|
239
|
-
var DisplayFieldValue = React2__namespace.forwardRef(
|
|
240
|
-
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
241
|
-
"span",
|
|
242
|
-
{
|
|
243
|
-
className: cn(
|
|
244
|
-
"min-h-5 w-full whitespace-pre-wrap text-base tabular-nums leading-5 text-gray",
|
|
245
|
-
className
|
|
246
|
-
),
|
|
247
|
-
ref,
|
|
248
|
-
...props
|
|
249
|
-
}
|
|
250
|
-
)
|
|
251
|
-
);
|
|
252
|
-
DisplayFieldValue.displayName = "DisplayFieldValue";
|
|
253
|
-
var DisplayFieldContent = React2__namespace.forwardRef(
|
|
254
|
-
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("", className), ref, ...props })
|
|
255
|
-
);
|
|
256
|
-
DisplayFieldContent.displayName = "DisplayFieldContent";
|
|
257
|
-
var DisplayFieldSkeleton = React2__namespace.forwardRef(
|
|
258
|
-
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
259
|
-
"div",
|
|
260
|
-
{
|
|
261
|
-
className: cn(
|
|
262
|
-
"relative flex h-20 w-full flex-col gap-y-2 rounded-2xl bg-base-gray-soft p-4 opacity-80",
|
|
263
|
-
className
|
|
264
|
-
),
|
|
265
|
-
ref,
|
|
266
|
-
...props,
|
|
267
|
-
children: [
|
|
268
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-5 w-1/2 max-w-52 animate-pulse rounded-md bg-base-gray-soft" }),
|
|
269
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-5 w-3/4 max-w-72 animate-pulse rounded-md bg-base-gray-soft" })
|
|
270
|
-
]
|
|
271
|
-
}
|
|
272
|
-
)
|
|
273
|
-
);
|
|
274
|
-
DisplayFieldSkeleton.displayName = "DisplayFieldSkeleton";
|
|
275
|
-
|
|
276
|
-
exports.Button = Button;
|
|
277
|
-
exports.Card = Card;
|
|
278
|
-
exports.CardContent = CardContent;
|
|
279
|
-
exports.CardDescription = CardDescription;
|
|
280
|
-
exports.CardFooter = CardFooter;
|
|
281
|
-
exports.CardHeader = CardHeader;
|
|
282
|
-
exports.CardIcon = CardIcon;
|
|
283
|
-
exports.CardSkeleton = CardSkeleton;
|
|
284
|
-
exports.CardTitle = CardTitle;
|
|
285
|
-
exports.Dialog = Dialog;
|
|
286
|
-
exports.DialogClose = DialogClose;
|
|
287
|
-
exports.DialogContent = DialogContent;
|
|
288
|
-
exports.DialogDescription = DialogDescription;
|
|
289
|
-
exports.DialogFooter = DialogFooter;
|
|
290
|
-
exports.DialogHeader = DialogHeader;
|
|
291
|
-
exports.DialogOverlay = DialogOverlay;
|
|
292
|
-
exports.DialogPortal = DialogPortal;
|
|
293
|
-
exports.DialogTitle = DialogTitle;
|
|
294
|
-
exports.DialogTrigger = DialogTrigger;
|
|
295
|
-
exports.DisplayField = DisplayField;
|
|
296
|
-
exports.DisplayFieldContent = DisplayFieldContent;
|
|
297
|
-
exports.DisplayFieldLabel = DisplayFieldLabel;
|
|
298
|
-
exports.DisplayFieldSkeleton = DisplayFieldSkeleton;
|
|
299
|
-
exports.DisplayFieldValue = DisplayFieldValue;
|
|
300
|
-
exports.buttonVariants = buttonVariants;
|
|
301
|
-
exports.cn = cn;
|
|
302
|
-
//# sourceMappingURL=index.cjs.map
|
|
303
|
-
//# sourceMappingURL=index.cjs.map
|