h2o-library 1.7.1 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +74 -0
- package/README.md +149 -13
- package/assets/logo.svg +3 -0
- package/dist/charts/charts/index.d.ts +8 -0
- package/dist/charts/charts/src/bar/chart-bar.d.ts +27 -0
- package/dist/charts/charts/src/chart/chart.d.ts +35 -0
- package/dist/charts/charts/src/chart-tooltip-styles.d.ts +4 -0
- package/dist/charts/charts/src/gantt/chart-gantt.d.ts +25 -0
- package/dist/charts/charts/src/heatmap/chart-heatmap.d.ts +18 -0
- package/dist/charts/charts/src/legend/legend.d.ts +19 -0
- package/dist/charts/charts/src/line/chart-line.d.ts +28 -0
- package/dist/charts/charts/src/pie/chart-pie.d.ts +19 -0
- package/dist/charts/charts/src/recharts-tick-props.d.ts +11 -0
- package/dist/charts/charts/src/stat/chart-stat.d.ts +21 -0
- package/dist/charts/components/index.d.ts +36 -0
- package/dist/charts/components/src/accordion/accordion.d.ts +32 -0
- package/dist/charts/components/src/button/button.d.ts +41 -0
- package/dist/charts/components/src/calendar/calendar.d.ts +43 -0
- package/dist/charts/components/src/checkbox/checkbox.d.ts +58 -0
- package/dist/charts/components/src/chip/chip.d.ts +37 -0
- package/dist/charts/components/src/compact-multi-select/compact-multi-select.d.ts +52 -0
- package/dist/charts/components/src/content-switch/content-switch.d.ts +39 -0
- package/dist/charts/components/src/date-picker/date-picker.d.ts +35 -0
- package/dist/charts/components/src/date-range-picker/date-range-picker.d.ts +39 -0
- package/dist/charts/components/src/dropdown/dropdown.d.ts +53 -0
- package/dist/charts/components/src/expandable-table/expandable-table.d.ts +61 -0
- package/dist/charts/components/src/icon/icon-paths.d.ts +3 -0
- package/dist/charts/components/src/icon/icon.d.ts +28 -0
- package/dist/charts/components/src/input/input.d.ts +29 -0
- package/dist/charts/components/src/loader/loader.d.ts +12 -0
- package/dist/charts/components/src/logo/logo.d.ts +12 -0
- package/dist/charts/components/src/message/message.d.ts +34 -0
- package/dist/charts/components/src/modal/modal.d.ts +35 -0
- package/dist/charts/components/src/month-calendar/month-calendar.d.ts +28 -0
- package/dist/charts/components/src/multi-menu/multi-menu.d.ts +39 -0
- package/dist/charts/components/src/multi-select/multi-select.d.ts +49 -0
- package/dist/charts/components/src/pagination/pagination.d.ts +33 -0
- package/dist/charts/components/src/popover/popover.d.ts +53 -0
- package/dist/charts/components/src/radio/radio.d.ts +31 -0
- package/dist/charts/components/src/radio-group/radio-group.d.ts +42 -0
- package/dist/charts/components/src/segmented-toggle/segmented-toggle.d.ts +50 -0
- package/dist/charts/components/src/side-panel/side-panel.d.ts +36 -0
- package/dist/charts/components/src/skeleton/skeleton.d.ts +15 -0
- package/dist/charts/components/src/slider/slider.d.ts +46 -0
- package/dist/charts/components/src/table/table-utils.d.ts +2 -0
- package/dist/charts/components/src/table/table.d.ts +78 -0
- package/dist/charts/components/src/tabs/tabs.d.ts +35 -0
- package/dist/charts/components/src/tag/tag.d.ts +26 -0
- package/dist/charts/components/src/textarea/textarea.d.ts +33 -0
- package/dist/charts/components/src/time-picker/time-picker.d.ts +31 -0
- package/dist/charts/components/src/toast/toast.d.ts +54 -0
- package/dist/charts/components/src/toggle/toggle.d.ts +35 -0
- package/dist/charts/components/src/tooltip/tooltip.d.ts +38 -0
- package/dist/charts/entries/charts.d.ts +4 -0
- package/dist/charts/entries/hooks.d.ts +4 -0
- package/dist/charts/entries/types.d.ts +9 -0
- package/dist/charts/entries/utils.d.ts +5 -0
- package/dist/charts/hooks/index.d.ts +18 -0
- package/dist/charts/hooks/src/use-click-outside.d.ts +13 -0
- package/dist/charts/hooks/src/use-copy-to-clipboard.d.ts +15 -0
- package/dist/charts/hooks/src/use-debounce.d.ts +9 -0
- package/dist/charts/hooks/src/use-dropdown-position.d.ts +10 -0
- package/dist/charts/hooks/src/use-event-listener.d.ts +15 -0
- package/dist/charts/hooks/src/use-focus-trap.d.ts +8 -0
- package/dist/charts/hooks/src/use-hover.d.ts +10 -0
- package/dist/charts/hooks/src/use-idle.d.ts +15 -0
- package/dist/charts/hooks/src/use-interval.d.ts +7 -0
- package/dist/charts/hooks/src/use-key-press.d.ts +13 -0
- package/dist/charts/hooks/src/use-long-press.d.ts +20 -0
- package/dist/charts/hooks/src/use-media-query.d.ts +7 -0
- package/dist/charts/hooks/src/use-mouse.d.ts +12 -0
- package/dist/charts/hooks/src/use-timeout.d.ts +8 -0
- package/dist/charts/hooks/src/use-toast.d.ts +15 -0
- package/dist/charts/hooks/src/use-window-scroll.d.ts +10 -0
- package/dist/charts/hooks/src/use-window-size.d.ts +10 -0
- package/dist/charts/index.cjs.js +2 -0
- package/dist/charts/index.d.ts +4 -0
- package/dist/charts/index.js +2 -0
- package/dist/charts/src/bar/chart-bar.d.ts +27 -0
- package/dist/charts/src/chart/chart.d.ts +35 -0
- package/dist/charts/src/chart-tooltip-styles.d.ts +4 -0
- package/dist/charts/src/gantt/chart-gantt.d.ts +25 -0
- package/dist/charts/src/heatmap/chart-heatmap.d.ts +18 -0
- package/dist/charts/src/legend/legend.d.ts +19 -0
- package/dist/charts/src/line/chart-line.d.ts +28 -0
- package/dist/charts/src/pie/chart-pie.d.ts +19 -0
- package/dist/charts/src/recharts-tick-props.d.ts +11 -0
- package/dist/charts/src/stat/chart-stat.d.ts +21 -0
- package/dist/charts/types/index.d.ts +2 -0
- package/dist/charts/types/src/icon.d.ts +1 -0
- package/dist/charts/utils/index.d.ts +7 -0
- package/dist/charts/utils/src/array.d.ts +24 -0
- package/dist/charts/utils/src/async.d.ts +32 -0
- package/dist/charts/utils/src/cn.d.ts +9 -0
- package/dist/charts/utils/src/format.d.ts +20 -0
- package/dist/charts/utils/src/math.d.ts +22 -0
- package/dist/charts/utils/src/object.d.ts +36 -0
- package/dist/charts/utils/src/string.d.ts +24 -0
- package/dist/components/index.d.ts +36 -41
- package/dist/components/src/accordion/accordion.d.ts +32 -0
- package/dist/components/src/button/button.d.ts +41 -0
- package/dist/components/src/calendar/calendar.d.ts +43 -0
- package/dist/components/src/checkbox/checkbox.d.ts +58 -0
- package/dist/components/src/chip/chip.d.ts +37 -0
- package/dist/components/src/compact-multi-select/compact-multi-select.d.ts +52 -0
- package/dist/components/src/content-switch/content-switch.d.ts +39 -0
- package/dist/components/src/date-picker/date-picker.d.ts +35 -0
- package/dist/components/src/date-range-picker/date-range-picker.d.ts +39 -0
- package/dist/components/src/dropdown/dropdown.d.ts +53 -0
- package/dist/components/src/expandable-table/expandable-table.d.ts +61 -0
- package/dist/components/src/icon/icon-paths.d.ts +3 -0
- package/dist/components/src/icon/icon.d.ts +28 -0
- package/dist/components/src/input/input.d.ts +29 -0
- package/dist/components/src/loader/loader.d.ts +12 -0
- package/dist/components/src/logo/logo.d.ts +12 -0
- package/dist/components/src/message/message.d.ts +34 -0
- package/dist/components/src/modal/modal.d.ts +35 -0
- package/dist/components/src/month-calendar/month-calendar.d.ts +28 -0
- package/dist/components/src/multi-menu/multi-menu.d.ts +39 -0
- package/dist/components/src/multi-select/multi-select.d.ts +49 -0
- package/dist/components/src/pagination/pagination.d.ts +33 -0
- package/dist/components/src/popover/popover.d.ts +53 -0
- package/dist/components/src/radio/radio.d.ts +31 -0
- package/dist/components/src/radio-group/radio-group.d.ts +42 -0
- package/dist/components/src/segmented-toggle/segmented-toggle.d.ts +50 -0
- package/dist/components/src/side-panel/side-panel.d.ts +36 -0
- package/dist/components/src/skeleton/skeleton.d.ts +15 -0
- package/dist/components/src/slider/slider.d.ts +46 -0
- package/dist/components/src/table/table-utils.d.ts +2 -0
- package/dist/components/src/table/table.d.ts +78 -0
- package/dist/components/src/tabs/tabs.d.ts +35 -0
- package/dist/components/src/tag/tag.d.ts +26 -0
- package/dist/components/src/textarea/textarea.d.ts +33 -0
- package/dist/components/src/time-picker/time-picker.d.ts +31 -0
- package/dist/components/src/toast/toast.d.ts +54 -0
- package/dist/components/src/toggle/toggle.d.ts +35 -0
- package/dist/components/src/tooltip/tooltip.d.ts +38 -0
- package/dist/entries/charts.d.ts +4 -0
- package/dist/entries/hooks.d.ts +4 -0
- package/dist/entries/types.d.ts +9 -0
- package/dist/entries/utils.d.ts +5 -0
- package/dist/esm/charts/charts.css +377 -0
- package/dist/esm/charts/index.d.ts +8 -0
- package/dist/esm/charts/src/bar/chart-bar.d.ts +27 -0
- package/dist/esm/charts/src/chart/chart.d.ts +35 -0
- package/dist/esm/charts/src/chart-tooltip-styles.d.ts +4 -0
- package/dist/esm/charts/src/gantt/chart-gantt.d.ts +25 -0
- package/dist/esm/charts/src/heatmap/chart-heatmap.d.ts +18 -0
- package/dist/{css/src → esm/charts/src/legend}/legend.css +6 -1
- package/dist/esm/charts/src/legend/legend.d.ts +19 -0
- package/dist/esm/charts/src/line/chart-line.d.ts +28 -0
- package/dist/esm/charts/src/pie/chart-pie.d.ts +19 -0
- package/dist/esm/charts/src/recharts-tick-props.d.ts +11 -0
- package/dist/esm/charts/src/stat/chart-stat.d.ts +21 -0
- package/dist/esm/components/index.d.ts +36 -41
- package/dist/{css/src → esm/components/src/accordion}/accordion.css +8 -2
- package/dist/esm/components/src/accordion/accordion.d.ts +32 -0
- package/dist/esm/components/src/accordion/accordion.js +2 -0
- package/dist/{css/src → esm/components/src/button}/button.css +19 -8
- package/dist/esm/components/src/button/button.d.ts +41 -0
- package/dist/esm/components/src/button/button.js +2 -0
- package/dist/{css/src → esm/components/src/calendar}/calendar.css +62 -96
- package/dist/esm/components/src/calendar/calendar.d.ts +43 -0
- package/dist/esm/components/src/calendar/calendar.js +2 -0
- package/dist/{css/src → esm/components/src/checkbox}/checkbox.css +97 -19
- package/dist/esm/components/src/checkbox/checkbox.d.ts +58 -0
- package/dist/esm/components/src/checkbox/checkbox.js +2 -0
- package/dist/esm/components/src/chip/chip.css +123 -0
- package/dist/esm/components/src/chip/chip.d.ts +37 -0
- package/dist/esm/components/src/chip/chip.js +2 -0
- package/dist/{css/src → esm/components/src/compact-multi-select}/compact-multi-select.css +14 -38
- package/dist/esm/components/src/compact-multi-select/compact-multi-select.d.ts +52 -0
- package/dist/esm/components/src/compact-multi-select/compact-multi-select.js +2 -0
- package/dist/{css/src → esm/components/src/content-switch}/content-switch.css +17 -1
- package/dist/esm/components/src/content-switch/content-switch.d.ts +39 -0
- package/dist/esm/components/src/content-switch/content-switch.js +2 -0
- package/dist/esm/components/src/date-picker/date-picker.css +160 -0
- package/dist/esm/components/src/date-picker/date-picker.d.ts +35 -0
- package/dist/esm/components/src/date-picker/date-picker.js +2 -0
- package/dist/{css/src → esm/components/src/date-range-picker}/date-range-picker.css +3 -4
- package/dist/esm/components/src/date-range-picker/date-range-picker.d.ts +39 -0
- package/dist/esm/components/src/date-range-picker/date-range-picker.js +2 -0
- package/dist/{css/src → esm/components/src/dropdown}/dropdown.css +26 -13
- package/dist/esm/components/src/dropdown/dropdown.d.ts +53 -0
- package/dist/esm/components/src/dropdown/dropdown.js +2 -0
- package/dist/{css/src → esm/components/src/expandable-table}/expandable-table.css +27 -10
- package/dist/esm/components/src/expandable-table/expandable-table.d.ts +61 -0
- package/dist/esm/components/src/expandable-table/expandable-table.js +2 -0
- package/dist/esm/components/src/icon/icon-paths.d.ts +3 -0
- package/dist/esm/components/src/icon/icon-paths.js +2 -0
- package/dist/esm/components/src/icon/icon.d.ts +28 -0
- package/dist/esm/components/src/icon/icon.js +2 -0
- package/dist/{css/src → esm/components/src/input}/input.css +11 -12
- package/dist/esm/components/src/input/input.d.ts +29 -0
- package/dist/esm/components/src/input/input.js +2 -0
- package/dist/esm/components/src/loader/loader.css +109 -0
- package/dist/esm/components/src/loader/loader.d.ts +12 -0
- package/dist/esm/components/src/loader/loader.js +2 -0
- package/dist/esm/components/src/logo/logo.d.ts +12 -0
- package/dist/esm/components/src/logo/logo.js +2 -0
- package/dist/{css/src → esm/components/src/message}/message.css +21 -0
- package/dist/esm/components/src/message/message.d.ts +34 -0
- package/dist/esm/components/src/message/message.js +2 -0
- package/dist/{css/src → esm/components/src/modal}/modal.css +36 -2
- package/dist/esm/components/src/modal/modal.d.ts +35 -0
- package/dist/esm/components/src/modal/modal.js +2 -0
- package/dist/{css/src → esm/components/src/month-calendar}/month-calendar.css +1 -2
- package/dist/esm/components/src/month-calendar/month-calendar.d.ts +28 -0
- package/dist/esm/components/src/month-calendar/month-calendar.js +2 -0
- package/dist/{css/src → esm/components/src/multi-menu}/multi-menu.css +40 -54
- package/dist/esm/components/src/multi-menu/multi-menu.d.ts +39 -0
- package/dist/esm/components/src/multi-menu/multi-menu.js +2 -0
- package/dist/{css/src → esm/components/src/multi-select}/multi-select.css +94 -2
- package/dist/esm/components/src/multi-select/multi-select.d.ts +49 -0
- package/dist/esm/components/src/multi-select/multi-select.js +2 -0
- package/dist/{css/src → esm/components/src/pagination}/pagination.css +17 -0
- package/dist/esm/components/src/pagination/pagination.d.ts +33 -0
- package/dist/esm/components/src/pagination/pagination.js +2 -0
- package/dist/{css/src → esm/components/src/popover}/popover.css +11 -2
- package/dist/esm/components/src/popover/popover.d.ts +53 -0
- package/dist/esm/components/src/popover/popover.js +2 -0
- package/dist/esm/components/src/radio/radio.css +196 -0
- package/dist/esm/components/src/radio/radio.d.ts +31 -0
- package/dist/esm/components/src/radio/radio.js +2 -0
- package/dist/esm/components/src/radio-group/radio-group.css +93 -0
- package/dist/esm/components/src/radio-group/radio-group.d.ts +42 -0
- package/dist/esm/components/src/radio-group/radio-group.js +2 -0
- package/dist/{css/src → esm/components/src/segmented-toggle}/segmented-toggle.css +1 -1
- package/dist/esm/components/src/segmented-toggle/segmented-toggle.d.ts +50 -0
- package/dist/esm/components/src/segmented-toggle/segmented-toggle.js +2 -0
- package/dist/{css/src → esm/components/src/side-panel}/side-panel.css +62 -9
- package/dist/esm/components/src/side-panel/side-panel.d.ts +36 -0
- package/dist/esm/components/src/side-panel/side-panel.js +2 -0
- package/dist/esm/components/src/skeleton/skeleton.css +79 -0
- package/dist/esm/components/src/skeleton/skeleton.d.ts +15 -0
- package/dist/esm/components/src/skeleton/skeleton.js +2 -0
- package/dist/esm/components/src/slider/slider.css +211 -0
- package/dist/esm/components/src/slider/slider.d.ts +46 -0
- package/dist/esm/components/src/slider/slider.js +2 -0
- package/dist/esm/components/src/table/table-utils.d.ts +2 -0
- package/dist/esm/components/src/table/table-utils.js +2 -0
- package/dist/{css/src → esm/components/src/table}/table.css +5 -9
- package/dist/esm/components/src/table/table.d.ts +78 -0
- package/dist/esm/components/src/table/table.js +2 -0
- package/dist/{css/src → esm/components/src/tabs}/tabs.css +32 -0
- package/dist/esm/components/src/tabs/tabs.d.ts +35 -0
- package/dist/esm/components/src/tabs/tabs.js +2 -0
- package/dist/{css/src → esm/components/src/tag}/tag.css +17 -2
- package/dist/esm/components/src/tag/tag.d.ts +26 -0
- package/dist/esm/components/src/tag/tag.js +2 -0
- package/dist/{css/src → esm/components/src/textarea}/textarea.css +28 -31
- package/dist/esm/components/src/textarea/textarea.d.ts +33 -0
- package/dist/esm/components/src/textarea/textarea.js +2 -0
- package/dist/esm/components/src/time-picker/time-picker.css +249 -0
- package/dist/esm/components/src/time-picker/time-picker.d.ts +31 -0
- package/dist/esm/components/src/time-picker/time-picker.js +2 -0
- package/dist/{css/src → esm/components/src/toast}/toast.css +50 -12
- package/dist/esm/components/src/toast/toast.d.ts +54 -0
- package/dist/esm/components/src/toast/toast.js +2 -0
- package/dist/{css/src → esm/components/src/toggle}/toggle.css +102 -12
- package/dist/esm/components/src/toggle/toggle.d.ts +35 -0
- package/dist/esm/components/src/toggle/toggle.js +2 -0
- package/dist/{css/src → esm/components/src/tooltip}/tooltip.css +47 -7
- package/dist/esm/components/src/tooltip/tooltip.d.ts +38 -0
- package/dist/esm/components/src/tooltip/tooltip.js +2 -0
- package/dist/esm/entries/charts.d.ts +4 -0
- package/dist/esm/entries/hooks.d.ts +4 -0
- package/dist/esm/entries/types.d.ts +9 -0
- package/dist/esm/entries/utils.d.ts +5 -0
- package/dist/esm/hooks/index.d.ts +16 -0
- package/dist/esm/hooks/src/use-click-outside.d.ts +10 -1
- package/dist/esm/hooks/src/use-click-outside.js +2 -0
- package/dist/esm/hooks/src/use-copy-to-clipboard.d.ts +15 -0
- package/dist/esm/hooks/src/use-debounce.d.ts +9 -0
- package/dist/esm/hooks/src/use-dropdown-position.d.ts +10 -0
- package/dist/esm/hooks/src/use-dropdown-position.js +2 -0
- package/dist/esm/hooks/src/use-event-listener.d.ts +15 -0
- package/dist/esm/hooks/src/use-focus-trap.d.ts +8 -0
- package/dist/esm/hooks/src/use-focus-trap.js +2 -0
- package/dist/esm/hooks/src/use-hover.d.ts +10 -0
- package/dist/esm/hooks/src/use-idle.d.ts +15 -0
- package/dist/esm/hooks/src/use-interval.d.ts +7 -0
- package/dist/esm/hooks/src/use-key-press.d.ts +13 -0
- package/dist/esm/hooks/src/use-long-press.d.ts +20 -0
- package/dist/esm/hooks/src/use-media-query.d.ts +6 -0
- package/dist/esm/hooks/src/use-mouse.d.ts +12 -0
- package/dist/esm/hooks/src/use-timeout.d.ts +8 -0
- package/dist/esm/hooks/src/use-toast.d.ts +15 -0
- package/dist/esm/hooks/src/use-window-scroll.d.ts +10 -0
- package/dist/esm/hooks/src/use-window-size.d.ts +10 -0
- package/dist/esm/index.d.ts +0 -4
- package/dist/esm/index.js +1 -23
- package/dist/esm/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.js +2 -0
- package/dist/esm/node_modules/@dnd-kit/core/dist/core.esm.js +2 -0
- package/dist/esm/node_modules/@dnd-kit/sortable/dist/sortable.esm.js +2 -0
- package/dist/esm/node_modules/@dnd-kit/utilities/dist/utilities.esm.js +2 -0
- package/dist/esm/node_modules/clsx/dist/clsx.mjs.js +2 -0
- package/dist/esm/node_modules/tailwind-merge/dist/bundle-mjs.mjs.js +2 -0
- package/dist/esm/node_modules/tslib/tslib.es6.mjs.js +2 -0
- package/dist/esm/styles/index.css +68 -0
- package/dist/esm/types/src/icon.d.ts +1 -1
- package/dist/esm/utils/index.d.ts +7 -2
- package/dist/esm/utils/src/array.d.ts +24 -0
- package/dist/esm/utils/src/async.d.ts +32 -0
- package/dist/esm/utils/src/cn.d.ts +9 -0
- package/dist/esm/utils/src/cn.js +2 -0
- package/dist/esm/utils/src/format.d.ts +20 -0
- package/dist/esm/utils/src/math.d.ts +22 -0
- package/dist/esm/utils/src/math.js +2 -0
- package/dist/esm/utils/src/object.d.ts +36 -0
- package/dist/esm/utils/src/string.d.ts +24 -0
- package/dist/hooks/charts/index.d.ts +8 -0
- package/dist/hooks/charts/src/bar/chart-bar.d.ts +27 -0
- package/dist/hooks/charts/src/chart/chart.d.ts +35 -0
- package/dist/hooks/charts/src/chart-tooltip-styles.d.ts +4 -0
- package/dist/hooks/charts/src/gantt/chart-gantt.d.ts +25 -0
- package/dist/hooks/charts/src/heatmap/chart-heatmap.d.ts +18 -0
- package/dist/hooks/charts/src/legend/legend.d.ts +19 -0
- package/dist/hooks/charts/src/line/chart-line.d.ts +28 -0
- package/dist/hooks/charts/src/pie/chart-pie.d.ts +19 -0
- package/dist/hooks/charts/src/recharts-tick-props.d.ts +11 -0
- package/dist/hooks/charts/src/stat/chart-stat.d.ts +21 -0
- package/dist/hooks/components/index.d.ts +36 -0
- package/dist/hooks/components/src/accordion/accordion.d.ts +32 -0
- package/dist/hooks/components/src/button/button.d.ts +41 -0
- package/dist/hooks/components/src/calendar/calendar.d.ts +43 -0
- package/dist/hooks/components/src/checkbox/checkbox.d.ts +58 -0
- package/dist/hooks/components/src/chip/chip.d.ts +37 -0
- package/dist/hooks/components/src/compact-multi-select/compact-multi-select.d.ts +52 -0
- package/dist/hooks/components/src/content-switch/content-switch.d.ts +39 -0
- package/dist/hooks/components/src/date-picker/date-picker.d.ts +35 -0
- package/dist/hooks/components/src/date-range-picker/date-range-picker.d.ts +39 -0
- package/dist/hooks/components/src/dropdown/dropdown.d.ts +53 -0
- package/dist/hooks/components/src/expandable-table/expandable-table.d.ts +61 -0
- package/dist/hooks/components/src/icon/icon-paths.d.ts +3 -0
- package/dist/hooks/components/src/icon/icon.d.ts +28 -0
- package/dist/hooks/components/src/input/input.d.ts +29 -0
- package/dist/hooks/components/src/loader/loader.d.ts +12 -0
- package/dist/hooks/components/src/logo/logo.d.ts +12 -0
- package/dist/hooks/components/src/message/message.d.ts +34 -0
- package/dist/hooks/components/src/modal/modal.d.ts +35 -0
- package/dist/hooks/components/src/month-calendar/month-calendar.d.ts +28 -0
- package/dist/hooks/components/src/multi-menu/multi-menu.d.ts +39 -0
- package/dist/hooks/components/src/multi-select/multi-select.d.ts +49 -0
- package/dist/hooks/components/src/pagination/pagination.d.ts +33 -0
- package/dist/hooks/components/src/popover/popover.d.ts +53 -0
- package/dist/hooks/components/src/radio/radio.d.ts +31 -0
- package/dist/hooks/components/src/radio-group/radio-group.d.ts +42 -0
- package/dist/hooks/components/src/segmented-toggle/segmented-toggle.d.ts +50 -0
- package/dist/hooks/components/src/side-panel/side-panel.d.ts +36 -0
- package/dist/hooks/components/src/skeleton/skeleton.d.ts +15 -0
- package/dist/hooks/components/src/slider/slider.d.ts +46 -0
- package/dist/hooks/components/src/table/table-utils.d.ts +2 -0
- package/dist/hooks/components/src/table/table.d.ts +78 -0
- package/dist/hooks/components/src/tabs/tabs.d.ts +35 -0
- package/dist/hooks/components/src/tag/tag.d.ts +26 -0
- package/dist/hooks/components/src/textarea/textarea.d.ts +33 -0
- package/dist/hooks/components/src/time-picker/time-picker.d.ts +31 -0
- package/dist/hooks/components/src/toast/toast.d.ts +54 -0
- package/dist/hooks/components/src/toggle/toggle.d.ts +35 -0
- package/dist/hooks/components/src/tooltip/tooltip.d.ts +38 -0
- package/dist/hooks/entries/charts.d.ts +4 -0
- package/dist/hooks/entries/hooks.d.ts +4 -0
- package/dist/hooks/entries/types.d.ts +9 -0
- package/dist/hooks/entries/utils.d.ts +5 -0
- package/dist/hooks/hooks/index.d.ts +18 -0
- package/dist/hooks/hooks/src/use-click-outside.d.ts +13 -0
- package/dist/hooks/hooks/src/use-copy-to-clipboard.d.ts +15 -0
- package/dist/hooks/hooks/src/use-debounce.d.ts +9 -0
- package/dist/hooks/hooks/src/use-dropdown-position.d.ts +10 -0
- package/dist/hooks/hooks/src/use-event-listener.d.ts +15 -0
- package/dist/hooks/hooks/src/use-focus-trap.d.ts +8 -0
- package/dist/hooks/hooks/src/use-hover.d.ts +10 -0
- package/dist/hooks/hooks/src/use-idle.d.ts +15 -0
- package/dist/hooks/hooks/src/use-interval.d.ts +7 -0
- package/dist/hooks/hooks/src/use-key-press.d.ts +13 -0
- package/dist/hooks/hooks/src/use-long-press.d.ts +20 -0
- package/dist/hooks/hooks/src/use-media-query.d.ts +7 -0
- package/dist/hooks/hooks/src/use-mouse.d.ts +12 -0
- package/dist/hooks/hooks/src/use-timeout.d.ts +8 -0
- package/dist/hooks/hooks/src/use-toast.d.ts +15 -0
- package/dist/hooks/hooks/src/use-window-scroll.d.ts +10 -0
- package/dist/hooks/hooks/src/use-window-size.d.ts +10 -0
- package/dist/hooks/index.cjs.js +2 -0
- package/dist/hooks/index.d.ts +4 -2
- package/dist/hooks/index.js +2 -0
- package/dist/hooks/src/use-click-outside.d.ts +10 -1
- package/dist/hooks/src/use-copy-to-clipboard.d.ts +15 -0
- package/dist/hooks/src/use-debounce.d.ts +9 -0
- package/dist/hooks/src/use-dropdown-position.d.ts +10 -0
- package/dist/hooks/src/use-event-listener.d.ts +15 -0
- package/dist/hooks/src/use-focus-trap.d.ts +8 -0
- package/dist/hooks/src/use-hover.d.ts +10 -0
- package/dist/hooks/src/use-idle.d.ts +15 -0
- package/dist/hooks/src/use-interval.d.ts +7 -0
- package/dist/hooks/src/use-key-press.d.ts +13 -0
- package/dist/hooks/src/use-long-press.d.ts +20 -0
- package/dist/hooks/src/use-media-query.d.ts +6 -0
- package/dist/hooks/src/use-mouse.d.ts +12 -0
- package/dist/hooks/src/use-timeout.d.ts +8 -0
- package/dist/hooks/src/use-toast.d.ts +15 -0
- package/dist/hooks/src/use-window-scroll.d.ts +10 -0
- package/dist/hooks/src/use-window-size.d.ts +10 -0
- package/dist/hooks/types/index.d.ts +2 -0
- package/dist/hooks/types/src/icon.d.ts +1 -0
- package/dist/hooks/utils/index.d.ts +7 -0
- package/dist/hooks/utils/src/array.d.ts +24 -0
- package/dist/hooks/utils/src/async.d.ts +32 -0
- package/dist/hooks/utils/src/cn.d.ts +9 -0
- package/dist/hooks/utils/src/format.d.ts +20 -0
- package/dist/hooks/utils/src/math.d.ts +22 -0
- package/dist/hooks/utils/src/object.d.ts +36 -0
- package/dist/hooks/utils/src/string.d.ts +24 -0
- package/dist/index.cjs.js +1 -23
- package/dist/index.css +2 -0
- package/dist/index.d.ts +4 -4
- package/dist/styles/index.css +68 -0
- package/dist/types/charts/index.d.ts +8 -0
- package/dist/types/charts/src/bar/chart-bar.d.ts +27 -0
- package/dist/types/charts/src/chart/chart.d.ts +35 -0
- package/dist/types/charts/src/chart-tooltip-styles.d.ts +4 -0
- package/dist/types/charts/src/gantt/chart-gantt.d.ts +25 -0
- package/dist/types/charts/src/heatmap/chart-heatmap.d.ts +18 -0
- package/dist/types/charts/src/legend/legend.d.ts +19 -0
- package/dist/types/charts/src/line/chart-line.d.ts +28 -0
- package/dist/types/charts/src/pie/chart-pie.d.ts +19 -0
- package/dist/types/charts/src/recharts-tick-props.d.ts +11 -0
- package/dist/types/charts/src/stat/chart-stat.d.ts +21 -0
- package/dist/types/components/index.d.ts +36 -0
- package/dist/types/components/src/accordion/accordion.d.ts +32 -0
- package/dist/types/components/src/button/button.d.ts +41 -0
- package/dist/types/components/src/calendar/calendar.d.ts +43 -0
- package/dist/types/components/src/checkbox/checkbox.d.ts +58 -0
- package/dist/types/components/src/chip/chip.d.ts +37 -0
- package/dist/types/components/src/compact-multi-select/compact-multi-select.d.ts +52 -0
- package/dist/types/components/src/content-switch/content-switch.d.ts +39 -0
- package/dist/types/components/src/date-picker/date-picker.d.ts +35 -0
- package/dist/types/components/src/date-range-picker/date-range-picker.d.ts +39 -0
- package/dist/types/components/src/dropdown/dropdown.d.ts +53 -0
- package/dist/types/components/src/expandable-table/expandable-table.d.ts +61 -0
- package/dist/types/components/src/icon/icon-paths.d.ts +3 -0
- package/dist/types/components/src/icon/icon.d.ts +28 -0
- package/dist/types/components/src/input/input.d.ts +29 -0
- package/dist/types/components/src/loader/loader.d.ts +12 -0
- package/dist/types/components/src/logo/logo.d.ts +12 -0
- package/dist/types/components/src/message/message.d.ts +34 -0
- package/dist/types/components/src/modal/modal.d.ts +35 -0
- package/dist/types/components/src/month-calendar/month-calendar.d.ts +28 -0
- package/dist/types/components/src/multi-menu/multi-menu.d.ts +39 -0
- package/dist/types/components/src/multi-select/multi-select.d.ts +49 -0
- package/dist/types/components/src/pagination/pagination.d.ts +33 -0
- package/dist/types/components/src/popover/popover.d.ts +53 -0
- package/dist/types/components/src/radio/radio.d.ts +31 -0
- package/dist/types/components/src/radio-group/radio-group.d.ts +42 -0
- package/dist/types/components/src/segmented-toggle/segmented-toggle.d.ts +50 -0
- package/dist/types/components/src/side-panel/side-panel.d.ts +36 -0
- package/dist/types/components/src/skeleton/skeleton.d.ts +15 -0
- package/dist/types/components/src/slider/slider.d.ts +46 -0
- package/dist/types/components/src/table/table-utils.d.ts +2 -0
- package/dist/types/components/src/table/table.d.ts +78 -0
- package/dist/types/components/src/tabs/tabs.d.ts +35 -0
- package/dist/types/components/src/tag/tag.d.ts +26 -0
- package/dist/types/components/src/textarea/textarea.d.ts +33 -0
- package/dist/types/components/src/time-picker/time-picker.d.ts +31 -0
- package/dist/types/components/src/toast/toast.d.ts +54 -0
- package/dist/types/components/src/toggle/toggle.d.ts +35 -0
- package/dist/types/components/src/tooltip/tooltip.d.ts +38 -0
- package/dist/types/entries/charts.d.ts +4 -0
- package/dist/types/entries/hooks.d.ts +4 -0
- package/dist/types/entries/types.d.ts +9 -0
- package/dist/types/entries/utils.d.ts +5 -0
- package/dist/types/hooks/index.d.ts +18 -0
- package/dist/types/hooks/src/use-click-outside.d.ts +13 -0
- package/dist/types/hooks/src/use-copy-to-clipboard.d.ts +15 -0
- package/dist/types/hooks/src/use-debounce.d.ts +9 -0
- package/dist/types/hooks/src/use-dropdown-position.d.ts +10 -0
- package/dist/types/hooks/src/use-event-listener.d.ts +15 -0
- package/dist/types/hooks/src/use-focus-trap.d.ts +8 -0
- package/dist/types/hooks/src/use-hover.d.ts +10 -0
- package/dist/types/hooks/src/use-idle.d.ts +15 -0
- package/dist/types/hooks/src/use-interval.d.ts +7 -0
- package/dist/types/hooks/src/use-key-press.d.ts +13 -0
- package/dist/types/hooks/src/use-long-press.d.ts +20 -0
- package/dist/types/hooks/src/use-media-query.d.ts +7 -0
- package/dist/types/hooks/src/use-mouse.d.ts +12 -0
- package/dist/types/hooks/src/use-timeout.d.ts +8 -0
- package/dist/types/hooks/src/use-toast.d.ts +15 -0
- package/dist/types/hooks/src/use-window-scroll.d.ts +10 -0
- package/dist/types/hooks/src/use-window-size.d.ts +10 -0
- package/dist/types/index.cjs.js +2 -0
- package/dist/types/index.d.ts +9 -2
- package/dist/types/index.js +2 -0
- package/dist/types/src/icon.d.ts +1 -1
- package/dist/types/types/index.d.ts +2 -0
- package/dist/types/types/src/icon.d.ts +1 -0
- package/dist/types/utils/index.d.ts +7 -0
- package/dist/types/utils/src/array.d.ts +24 -0
- package/dist/types/utils/src/async.d.ts +32 -0
- package/dist/types/utils/src/cn.d.ts +9 -0
- package/dist/types/utils/src/format.d.ts +20 -0
- package/dist/types/utils/src/math.d.ts +22 -0
- package/dist/types/utils/src/object.d.ts +36 -0
- package/dist/types/utils/src/string.d.ts +24 -0
- package/dist/utils/charts/index.d.ts +8 -0
- package/dist/utils/charts/src/bar/chart-bar.d.ts +27 -0
- package/dist/utils/charts/src/chart/chart.d.ts +35 -0
- package/dist/utils/charts/src/chart-tooltip-styles.d.ts +4 -0
- package/dist/utils/charts/src/gantt/chart-gantt.d.ts +25 -0
- package/dist/utils/charts/src/heatmap/chart-heatmap.d.ts +18 -0
- package/dist/utils/charts/src/legend/legend.d.ts +19 -0
- package/dist/utils/charts/src/line/chart-line.d.ts +28 -0
- package/dist/utils/charts/src/pie/chart-pie.d.ts +19 -0
- package/dist/utils/charts/src/recharts-tick-props.d.ts +11 -0
- package/dist/utils/charts/src/stat/chart-stat.d.ts +21 -0
- package/dist/utils/components/index.d.ts +36 -0
- package/dist/utils/components/src/accordion/accordion.d.ts +32 -0
- package/dist/utils/components/src/button/button.d.ts +41 -0
- package/dist/utils/components/src/calendar/calendar.d.ts +43 -0
- package/dist/utils/components/src/checkbox/checkbox.d.ts +58 -0
- package/dist/utils/components/src/chip/chip.d.ts +37 -0
- package/dist/utils/components/src/compact-multi-select/compact-multi-select.d.ts +52 -0
- package/dist/utils/components/src/content-switch/content-switch.d.ts +39 -0
- package/dist/utils/components/src/date-picker/date-picker.d.ts +35 -0
- package/dist/utils/components/src/date-range-picker/date-range-picker.d.ts +39 -0
- package/dist/utils/components/src/dropdown/dropdown.d.ts +53 -0
- package/dist/utils/components/src/expandable-table/expandable-table.d.ts +61 -0
- package/dist/utils/components/src/icon/icon-paths.d.ts +3 -0
- package/dist/utils/components/src/icon/icon.d.ts +28 -0
- package/dist/utils/components/src/input/input.d.ts +29 -0
- package/dist/utils/components/src/loader/loader.d.ts +12 -0
- package/dist/utils/components/src/logo/logo.d.ts +12 -0
- package/dist/utils/components/src/message/message.d.ts +34 -0
- package/dist/utils/components/src/modal/modal.d.ts +35 -0
- package/dist/utils/components/src/month-calendar/month-calendar.d.ts +28 -0
- package/dist/utils/components/src/multi-menu/multi-menu.d.ts +39 -0
- package/dist/utils/components/src/multi-select/multi-select.d.ts +49 -0
- package/dist/utils/components/src/pagination/pagination.d.ts +33 -0
- package/dist/utils/components/src/popover/popover.d.ts +53 -0
- package/dist/utils/components/src/radio/radio.d.ts +31 -0
- package/dist/utils/components/src/radio-group/radio-group.d.ts +42 -0
- package/dist/utils/components/src/segmented-toggle/segmented-toggle.d.ts +50 -0
- package/dist/utils/components/src/side-panel/side-panel.d.ts +36 -0
- package/dist/utils/components/src/skeleton/skeleton.d.ts +15 -0
- package/dist/utils/components/src/slider/slider.d.ts +46 -0
- package/dist/utils/components/src/table/table-utils.d.ts +2 -0
- package/dist/utils/components/src/table/table.d.ts +78 -0
- package/dist/utils/components/src/tabs/tabs.d.ts +35 -0
- package/dist/utils/components/src/tag/tag.d.ts +26 -0
- package/dist/utils/components/src/textarea/textarea.d.ts +33 -0
- package/dist/utils/components/src/time-picker/time-picker.d.ts +31 -0
- package/dist/utils/components/src/toast/toast.d.ts +54 -0
- package/dist/utils/components/src/toggle/toggle.d.ts +35 -0
- package/dist/utils/components/src/tooltip/tooltip.d.ts +38 -0
- package/dist/utils/entries/charts.d.ts +4 -0
- package/dist/utils/entries/hooks.d.ts +4 -0
- package/dist/utils/entries/types.d.ts +9 -0
- package/dist/utils/entries/utils.d.ts +5 -0
- package/dist/utils/hooks/index.d.ts +18 -0
- package/dist/utils/hooks/src/use-click-outside.d.ts +13 -0
- package/dist/utils/hooks/src/use-copy-to-clipboard.d.ts +15 -0
- package/dist/utils/hooks/src/use-debounce.d.ts +9 -0
- package/dist/utils/hooks/src/use-dropdown-position.d.ts +10 -0
- package/dist/utils/hooks/src/use-event-listener.d.ts +15 -0
- package/dist/utils/hooks/src/use-focus-trap.d.ts +8 -0
- package/dist/utils/hooks/src/use-hover.d.ts +10 -0
- package/dist/utils/hooks/src/use-idle.d.ts +15 -0
- package/dist/utils/hooks/src/use-interval.d.ts +7 -0
- package/dist/utils/hooks/src/use-key-press.d.ts +13 -0
- package/dist/utils/hooks/src/use-long-press.d.ts +20 -0
- package/dist/utils/hooks/src/use-media-query.d.ts +7 -0
- package/dist/utils/hooks/src/use-mouse.d.ts +12 -0
- package/dist/utils/hooks/src/use-timeout.d.ts +8 -0
- package/dist/utils/hooks/src/use-toast.d.ts +15 -0
- package/dist/utils/hooks/src/use-window-scroll.d.ts +10 -0
- package/dist/utils/hooks/src/use-window-size.d.ts +10 -0
- package/dist/utils/index.cjs.js +2 -0
- package/dist/utils/index.d.ts +5 -2
- package/dist/utils/index.js +2 -0
- package/dist/utils/src/array.d.ts +24 -0
- package/dist/utils/src/async.d.ts +32 -0
- package/dist/utils/src/cn.d.ts +9 -0
- package/dist/utils/src/format.d.ts +20 -0
- package/dist/utils/src/math.d.ts +22 -0
- package/dist/utils/src/object.d.ts +36 -0
- package/dist/utils/src/string.d.ts +24 -0
- package/dist/utils/types/index.d.ts +2 -0
- package/dist/utils/types/src/icon.d.ts +1 -0
- package/dist/utils/utils/index.d.ts +7 -0
- package/dist/utils/utils/src/array.d.ts +24 -0
- package/dist/utils/utils/src/async.d.ts +32 -0
- package/dist/utils/utils/src/cn.d.ts +9 -0
- package/dist/utils/utils/src/format.d.ts +20 -0
- package/dist/utils/utils/src/math.d.ts +22 -0
- package/dist/utils/utils/src/object.d.ts +36 -0
- package/dist/utils/utils/src/string.d.ts +24 -0
- package/package.json +66 -6
- package/dist/components/src/accordion.d.ts +0 -13
- package/dist/components/src/button.d.ts +0 -15
- package/dist/components/src/calendar.d.ts +0 -19
- package/dist/components/src/chart-bar.d.ts +0 -26
- package/dist/components/src/chart-heatmap.d.ts +0 -20
- package/dist/components/src/chart-line.d.ts +0 -25
- package/dist/components/src/chart-pie.d.ts +0 -16
- package/dist/components/src/chart-stat.d.ts +0 -20
- package/dist/components/src/chart.d.ts +0 -36
- package/dist/components/src/checkbox.d.ts +0 -18
- package/dist/components/src/chip.d.ts +0 -13
- package/dist/components/src/compact-multi-select.d.ts +0 -25
- package/dist/components/src/content-switch.d.ts +0 -15
- package/dist/components/src/date-range-picker.d.ts +0 -12
- package/dist/components/src/dropdown.d.ts +0 -22
- package/dist/components/src/expandable-table.d.ts +0 -39
- package/dist/components/src/expandable.d.ts +0 -9
- package/dist/components/src/icon.d.ts +0 -9
- package/dist/components/src/input.d.ts +0 -16
- package/dist/components/src/legend.d.ts +0 -17
- package/dist/components/src/loader.d.ts +0 -5
- package/dist/components/src/logo.d.ts +0 -5
- package/dist/components/src/message.d.ts +0 -12
- package/dist/components/src/modal.d.ts +0 -16
- package/dist/components/src/month-calendar.d.ts +0 -10
- package/dist/components/src/multi-menu.d.ts +0 -18
- package/dist/components/src/multi-select.d.ts +0 -18
- package/dist/components/src/pagination.d.ts +0 -14
- package/dist/components/src/popover.d.ts +0 -16
- package/dist/components/src/radio-group.d.ts +0 -17
- package/dist/components/src/radio.d.ts +0 -6
- package/dist/components/src/segmented-toggle.d.ts +0 -20
- package/dist/components/src/side-panel.d.ts +0 -16
- package/dist/components/src/status.d.ts +0 -8
- package/dist/components/src/table.d.ts +0 -43
- package/dist/components/src/tabs.d.ts +0 -10
- package/dist/components/src/tag.d.ts +0 -9
- package/dist/components/src/textarea.d.ts +0 -15
- package/dist/components/src/toast.d.ts +0 -20
- package/dist/components/src/toggle.d.ts +0 -9
- package/dist/components/src/tooltip.d.ts +0 -18
- package/dist/css/index.css +0 -1
- package/dist/css/src/chart.css +0 -76
- package/dist/css/src/charts.css +0 -136
- package/dist/css/src/chip.css +0 -54
- package/dist/css/src/index.css +0 -70
- package/dist/css/src/loader.css +0 -18
- package/dist/css/src/radio-group.css +0 -44
- package/dist/css/src/radio.css +0 -146
- package/dist/css/src/search.css +0 -148
- package/dist/css/src/status.css +0 -31
- package/dist/esm/components/src/accordion.d.ts +0 -13
- package/dist/esm/components/src/button.d.ts +0 -15
- package/dist/esm/components/src/calendar.d.ts +0 -19
- package/dist/esm/components/src/chart-bar.d.ts +0 -26
- package/dist/esm/components/src/chart-heatmap.d.ts +0 -20
- package/dist/esm/components/src/chart-line.d.ts +0 -25
- package/dist/esm/components/src/chart-pie.d.ts +0 -16
- package/dist/esm/components/src/chart-stat.d.ts +0 -20
- package/dist/esm/components/src/chart.d.ts +0 -36
- package/dist/esm/components/src/checkbox.d.ts +0 -18
- package/dist/esm/components/src/chip.d.ts +0 -13
- package/dist/esm/components/src/compact-multi-select.d.ts +0 -25
- package/dist/esm/components/src/content-switch.d.ts +0 -15
- package/dist/esm/components/src/date-range-picker.d.ts +0 -12
- package/dist/esm/components/src/dropdown.d.ts +0 -22
- package/dist/esm/components/src/expandable-table.d.ts +0 -39
- package/dist/esm/components/src/expandable.d.ts +0 -9
- package/dist/esm/components/src/icon.d.ts +0 -9
- package/dist/esm/components/src/input.d.ts +0 -16
- package/dist/esm/components/src/legend.d.ts +0 -17
- package/dist/esm/components/src/loader.d.ts +0 -5
- package/dist/esm/components/src/logo.d.ts +0 -5
- package/dist/esm/components/src/message.d.ts +0 -12
- package/dist/esm/components/src/modal.d.ts +0 -16
- package/dist/esm/components/src/month-calendar.d.ts +0 -10
- package/dist/esm/components/src/multi-menu.d.ts +0 -18
- package/dist/esm/components/src/multi-select.d.ts +0 -18
- package/dist/esm/components/src/pagination.d.ts +0 -14
- package/dist/esm/components/src/popover.d.ts +0 -16
- package/dist/esm/components/src/radio-group.d.ts +0 -17
- package/dist/esm/components/src/radio.d.ts +0 -6
- package/dist/esm/components/src/segmented-toggle.d.ts +0 -20
- package/dist/esm/components/src/side-panel.d.ts +0 -16
- package/dist/esm/components/src/status.d.ts +0 -8
- package/dist/esm/components/src/table.d.ts +0 -43
- package/dist/esm/components/src/tabs.d.ts +0 -10
- package/dist/esm/components/src/tag.d.ts +0 -9
- package/dist/esm/components/src/textarea.d.ts +0 -15
- package/dist/esm/components/src/toast.d.ts +0 -20
- package/dist/esm/components/src/toggle.d.ts +0 -9
- package/dist/esm/components/src/tooltip.d.ts +0 -18
- package/dist/esm/css/index.css +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/index.cjs.js.map +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{jsx as r,jsxs as e,Fragment as t}from"react/jsx-runtime";import o,{useState as l,useCallback as a,useLayoutEffect as n,useRef as c,useId as i,useEffect as h}from"react";import{ResponsiveContainer as d,BarChart as s,CartesianGrid as u,Tooltip as p,Legend as k,Bar as v,Cell as C,XAxis as m,YAxis as y,ComposedChart as M,Area as g,Line as x,PieChart as f,Pie as b,Sector as w}from"recharts";import{createPortal as N}from"react-dom";function $(r,e){var t={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&e.indexOf(o)<0&&(t[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(o=Object.getOwnPropertySymbols(r);l<o.length;l++)e.indexOf(o[l])<0&&Object.prototype.propertyIsEnumerable.call(r,o[l])&&(t[o[l]]=r[o[l]])}return t}"function"==typeof SuppressedError&&SuppressedError;const A={backgroundColor:"hsl(var(--tooltip-dark-bg))",color:"hsl(var(--tooltip-dark-fg))",padding:"0.5rem 0.75rem",borderRadius:"6px",fontSize:"0.8125rem",boxShadow:"0 4px 12px rgba(0,0,0,0.15)",whiteSpace:"nowrap",lineHeight:1.5},S={background:"none",border:"none",padding:0,boxShadow:"none",outline:"none"};Object.assign(Object.assign({},A),{position:"fixed",pointerEvents:"none",zIndex:9999,transform:"translate(-50%, calc(-100% - 10px))"});const z=({active:t,payload:o,label:l,bars:a,hoveredBar:n})=>{var c,i,h;if(!t||!(null==o?void 0:o.length)||!n)return null;const d=o.find((r=>r.dataKey===n.dataKey));if(!d)return null;const s=a.find((r=>r.key===n.dataKey)),u=null!==(c=null==s?void 0:s.unit)&&void 0!==c?c:"",p=null!==(h=null!==(i=null==s?void 0:s.label)&&void 0!==i?i:d.name)&&void 0!==h?h:"";return e("div",{style:A,children:[r("div",{style:{fontSize:"0.75rem",opacity:.8},children:l}),r("div",{children:`${p}: ${d.value}${u?` ${u}`:""}`})]})},H=({x:e,y:t,payload:o,onClick:l})=>r("g",{transform:`translate(${e},${t})`,children:r("text",{x:0,y:0,dy:16,textAnchor:"middle",fill:"hsl(var(--muted-200))",fontSize:12,style:{cursor:l?"pointer":"default"},onClick:l?r=>l(o.value,r):void 0,children:o.value})}),L=({x:e,y:t,payload:o,onClick:l})=>r("g",{transform:`translate(${e},${t})`,children:r("text",{x:0,y:0,dy:4,textAnchor:"end",fill:"hsl(var(--muted-200))",fontSize:12,style:{cursor:l?"pointer":"default"},onClick:l?r=>l(o.value,r):void 0,children:o.value})}),O=({x:e,y:t,payload:o,maxWidth:l,onClick:a})=>r("g",{transform:`translate(${e},${t})`,children:r("foreignObject",{x:-l/2,y:2,width:l,height:22,children:r("div",{title:String(o.value),style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",textAlign:"center",fontSize:12,color:"hsl(var(--muted-200))",padding:"4px 4px 0",cursor:a?"pointer":"default"},onClick:a?r=>a(o.value,r):void 0,onKeyDown:a?r=>{"Enter"!==r.key&&" "!==r.key||(r.preventDefault(),a(o.value,r))}:void 0,role:a?"button":void 0,tabIndex:a?0:void 0,children:String(o.value)})})}),V=({x:e,y:t,payload:o,onClick:l})=>{const a=String(o.value);return r("g",{transform:`translate(${e},${t})`,children:r("foreignObject",{x:-144,y:-16,width:140,height:32,children:r("div",{title:a,className:"bar-chart-y-label",style:{cursor:l?"pointer":"default"},onClick:l?r=>l(o.value,r):void 0,onKeyDown:l?r=>{"Enter"!==r.key&&" "!==r.key||(r.preventDefault(),l(o.value,r))}:void 0,role:l?"button":void 0,tabIndex:l?0:void 0,children:a})})})},E=({data:t,bars:o,layout:n="single",orientation:c="vertical",showGrid:i=!0,showLegend:h=!1,height:M=400,className:g,onXAxisTickClick:x,onYAxisTickClick:f,onBarClick:b})=>{const[w,N]=l(null),[$,A]=l(null),[E,T]=l(0),j=a((r=>T(r)),[]),D=(()=>{const r=(()=>{if("stacked"===n)return Math.max(...t.map((r=>o.reduce(((e,t)=>e+(Number(r[t.key])||0)),0))));if("grouped-stacked"===n){const r=[...new Set(o.filter((r=>r.stackId)).map((r=>r.stackId)))];return r.length?Math.max(...t.map((e=>Math.max(...r.map((r=>o.filter((e=>e.stackId===r)).reduce(((r,t)=>r+(Number(e[t.key])||0)),0))))))):Math.max(...t.map((r=>Math.max(...o.map((e=>Number(r[e.key])||0))))))}return Math.max(...t.map((r=>Math.max(...o.map((e=>Number(r[e.key])||0))))))})();if(0===r)return 5;const e=1.2*r,l=Math.floor(Math.log10(e)),a=Math.pow(10,l),c=e/a;let i;return i=c<=1?1:c<=1.2?1.2:c<=1.5?1.5:c<=2?2:c<=2.5?2.5:c<=3?3:c<=4?4:c<=5?5:c<=6?6:c<=8?8:10,i*a})(),I=()=>{A(null),N(null)},R=r=>"stacked"===n?"a":"grouped-stacked"===n?r.stackId:void 0;return r("div",{className:"bar-chart-container"+(g?` ${g}`:""),children:r(d,{width:"100%",height:M,onResize:j,children:e(s,{data:t,layout:"vertical"===c?"horizontal":"vertical",barGap:"grouped"===n||"grouped-stacked"===n?0:4,margin:{top:5,right:20,left:10,bottom:5},children:[i&&r(u,{stroke:"hsl(var(--muted))",vertical:"horizontal"===c,horizontal:"vertical"===c}),(()=>{if("vertical"===c){const e=Math.max(20,(E-80)/t.length);return r(m,{dataKey:"x",axisLine:!1,tickLine:!1,tick:t=>r(O,Object.assign({},t,{maxWidth:e,onClick:x})),interval:0})}return r(m,{type:"number",axisLine:!1,tickLine:!1,domain:[0,D],tick:e=>r(H,Object.assign({},e,{onClick:x}))})})(),r(y,"vertical"===c?{axisLine:!1,tickLine:!1,tick:e=>r(L,Object.assign({},e,{onClick:f})),domain:[0,D]}:{type:"category",dataKey:"x",axisLine:!1,tickLine:!1,tick:e=>r(V,Object.assign({},e,{onClick:f})),width:148,tickMargin:5,interval:0}),r(p,{cursor:!1,content:r(z,{bars:o,hoveredBar:$}),wrapperStyle:S,position:null!=w?w:void 0,isAnimationActive:!1}),h&&r(k,{}),o.map((e=>{var o;return r(v,{dataKey:e.key,fill:e.color,name:null!==(o=e.label)&&void 0!==o?o:e.key,stackId:R(e),onMouseLeave:I,onClick:b?(r,t,o)=>b(r,t,e.key,o):void 0,style:{cursor:b?"pointer":void 0},children:t.map(((t,o)=>r(C,{onMouseEnter:r=>{const t=r.currentTarget.getBoundingClientRect(),l=r.currentTarget.closest(".recharts-wrapper");if(l){const r=l.getBoundingClientRect();((r,e,t,o,l,a)=>{A({dataKey:r,index:e}),N("vertical"===c?{x:t+l/2,y:o}:{x:t+l,y:o+a/2})})(e.key,o,t.left-r.left,t.top-r.top,t.width,t.height)}}},`cell-${o}`)))},e.key)}))]})})})},T=({cx:e,cy:t,stroke:o,setTooltipPosition:l})=>(n((()=>{void 0!==e&&void 0!==t&&l({x:e,y:t})}),[e,t,l]),r("circle",{cx:e,cy:t,r:6,stroke:"hsl(var(--background))",strokeWidth:2,fill:o})),j=({active:t,payload:o,label:l,lines:a,hoveredDataKey:n,showTooltipLabel:c})=>{var i,h,d;if(!t||!(null==o?void 0:o.length)||!n)return null;const s=o.find((r=>r.dataKey===n));if(!s)return null;const u=a.find((r=>r.key===s.dataKey)),p=null!==(i=null==u?void 0:u.unit)&&void 0!==i?i:"",k=null!==(d=null!==(h=null==u?void 0:u.label)&&void 0!==h?h:s.name)&&void 0!==d?d:"";return e("div",{style:A,children:[c&&r("div",{style:{fontSize:"0.75rem",opacity:.8},children:l}),r("div",{children:`${k}: ${s.value}${p?` ${p}`:""}`})]})},D=({x:e,y:t,payload:o,onClick:l})=>r("g",{transform:`translate(${e},${t})`,children:r("text",{x:0,y:0,dy:4,textAnchor:"end",fill:"hsl(var(--muted-200))",fontSize:12,style:{cursor:l?"pointer":"default"},onClick:l?r=>l(o.value,r):void 0,children:o.value})}),I=({x:e,y:t,payload:o,maxWidth:l,onClick:a})=>r("g",{transform:`translate(${e},${t})`,children:r("foreignObject",{x:-l/2,y:2,width:l,height:22,children:r("div",{title:String(o.value),style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",textAlign:"center",fontSize:12,color:"hsl(var(--muted-200))",padding:"4px 4px 0",cursor:a?"pointer":"default"},onClick:a?r=>a(o.value,r):void 0,onKeyDown:a?r=>{"Enter"!==r.key&&" "!==r.key||(r.preventDefault(),a(o.value,r))}:void 0,role:a?"button":void 0,tabIndex:a?0:void 0,children:String(o.value)})})}),R=({data:t,lines:o,showGrid:n=!0,showLegend:c=!1,showGradient:i=!0,height:h=400,showTooltipLabel:s=!1,className:v,onXAxisTickClick:C,onYAxisTickClick:f,onDataPointClick:b})=>{const[w,N]=l(null),[$,A]=l(null),[z,H]=l(0),L=a((r=>H(r)),[]),O=(()=>{const r=(()=>{let r=0;return t.forEach((e=>{o.forEach((t=>{const o=e[t.key];"number"==typeof o&&o>r&&(r=o)}))})),r})();if(0===r)return 5;const e=1.2*r,l=Math.floor(Math.log10(e)),a=Math.pow(10,l),n=e/a;let c;return c=n<=1?1:n<=1.2?1.2:n<=1.5?1.5:n<=2?2:n<=2.5?2.5:n<=3?3:n<=4?4:n<=5?5:n<=6?6:n<=8?8:10,c*a})();return r("div",{className:"line-chart-container"+(v?` ${v}`:""),children:r(d,{width:"100%",height:h,onResize:L,children:e(M,{data:t,onMouseLeave:()=>{N(null),A(null)},children:[n&&r(u,{stroke:"hsl(var(--muted))",vertical:!1}),r(m,{dataKey:"x",axisLine:!1,tickLine:!1,tick:e=>r(I,Object.assign({},e,{maxWidth:Math.max(20,(z-60)/t.length),onClick:C})),interval:0}),r(y,{axisLine:!1,tickLine:!1,tick:e=>r(D,Object.assign({},e,{onClick:f})),domain:[0,O]}),r(p,{cursor:!1,content:r(j,{lines:o,hoveredDataKey:w,showTooltipLabel:s}),wrapperStyle:S,offset:10,position:null!=$?$:void 0,isAnimationActive:!1}),c&&r(k,{}),i&&r("defs",{children:o.map((t=>e("linearGradient",{id:`colorGradient_${t.key.replace(/\s/g,"")}`,x1:"0",y1:"0",x2:"0",y2:"1",children:[r("stop",{offset:"5%",stopColor:t.color,stopOpacity:.4}),r("stop",{offset:"95%",stopColor:t.color,stopOpacity:0})]},`${t.key}-gradient`)))}),o.map((e=>r(g,{type:"monotone",dataKey:e.key,stroke:"none",fill:i?`url(#colorGradient_${e.key.replace(/\s/g,"")})`:"none",fillOpacity:1,isAnimationActive:!1,connectNulls:!0,activeDot:!1},`${e.key}-fill`))),o.map((e=>{var t;return r(x,{type:"monotone",dataKey:e.key,stroke:e.color,strokeWidth:null!==(t=e.lineWidth)&&void 0!==t?t:2,strokeDasharray:e.dashed?"5 5":"0",dot:!1,activeDot:w===e.key?r(T,{setTooltipPosition:A}):void 0,isAnimationActive:!1,connectNulls:!0},`${e.key}-line`)})),o.map((e=>r(x,{type:"monotone",dataKey:e.key,stroke:"transparent",strokeWidth:20,onMouseOver:()=>N(e.key),dot:!!b&&(t=>r("circle",{cx:t.cx,cy:t.cy,r:10,fill:"transparent",style:{cursor:"pointer"},onClick:r=>{r.stopPropagation(),b(t.payload,t.index,e.key,r)}},`${e.key}-hit-${t.index}`)),activeDot:!1,isAnimationActive:!1,connectNulls:!0},`${e.key}-hover`)))]})})})};function K(r){var e,t,o="";if("string"==typeof r||"number"==typeof r)o+=r;else if("object"==typeof r)if(Array.isArray(r)){var l=r.length;for(e=0;e<l;e++)r[e]&&(t=K(r[e]))&&(o&&(o+=" "),o+=t)}else for(t in r)r[t]&&(o&&(o+=" "),o+=t);return o}function W(){for(var r,e,t=0,o="",l=arguments.length;t<l;t++)(r=arguments[t])&&(e=K(r))&&(o&&(o+=" "),o+=e);return o}const P=({items:t,itemStyle:o="rectangle",direction:l="horizontal",ariaLabel:a,className:n,itemClassName:c,labelClassName:i,colorClassName:h})=>{const d=(e,t)=>{const o={line:{backgroundColor:e},"dashed-line":{borderColor:e},circle:{backgroundColor:e},rectangle:{backgroundColor:e}};return r("div",{className:W("legend-swatch",`legend-swatch--${t}`,h),style:o[t]})};return r("div",{className:W("legend","vertical"===l&&"legend--vertical",n),"aria-label":a,role:a?"region":void 0,children:t.map((t=>{var l;return e("div",{className:W("legend-item",t.onClick&&"legend-item--clickable",c),onClick:t.onClick,role:t.onClick?"button":void 0,tabIndex:t.onClick?0:void 0,onKeyDown:t.onClick?r=>{"Enter"!==r.key&&" "!==r.key||(r.preventDefault(),t.onClick())}:void 0,children:[d(t.color,null!==(l=t.style)&&void 0!==l?l:o),r("span",{className:W("legend-label",i),children:t.label})]},t.label)}))})},B=["hsl(225, 91%, 59%)","hsl(280, 91%, 59%)","hsl(330, 91%, 59%)","hsl(30, 91%, 59%)","hsl(150, 91%, 59%)","hsl(190, 91%, 59%)"],F=e=>{var t,o,l,a,n;const c=Math.PI/180,{startAngle:i,endAngle:h,fill:d}=e,s=Number(null!==(t=e.cx)&&void 0!==t?t:0),u=Number(null!==(o=e.cy)&&void 0!==o?o:0),p=Number(null!==(l=e.innerRadius)&&void 0!==l?l:0),k=Number(null!==(a=e.outerRadius)&&void 0!==a?a:0),v=Number(null!==(n=e.midAngle)&&void 0!==n?n:0),C=s+8*Math.cos(-v*c),m=u+8*Math.sin(-v*c);return r(w,{cx:C,cy:m,innerRadius:p,outerRadius:k+4,startAngle:i,endAngle:h,fill:d})},G=({data:t,variant:o="pie",showLegend:a=!1,height:n=400,showLabels:c=!1,showPercentageInTooltip:i=!1,className:h,onSliceClick:s})=>{const[u,k]=l(void 0),[v,m]=l(null),y=t.map(((r,e)=>{var t;return Object.assign(Object.assign({},r),{color:null!==(t=r.color)&&void 0!==t?t:B[e%B.length]})})),M=y.reduce(((r,e)=>r+e.value),0),g=Math.PI/180;return e("div",{className:`pie-chart-container${s?" pie-chart-clickable":""}${h?` ${h}`:""}`,children:[a&&r(P,{itemStyle:"circle",items:y.map((r=>({label:r.label,color:r.color}))),className:"pie-chart-legend"}),r(d,{width:"100%",height:n,style:{cursor:s?"pointer":void 0},children:e(f,{children:[r(p,{content:({active:t,payload:o})=>{var l;if(!t||!(null==o?void 0:o.length)||void 0===u)return null;const a=o[0].payload,n=null!==(l=a.unit)&&void 0!==l?l:"",c=M>0?(a.value/M*100).toFixed(1):"0";return e("div",{style:A,children:[r("div",{style:{fontSize:"0.75rem",opacity:.8},children:a.label}),r("div",{children:`${a.value}${n?` ${n}`:""}${i?` (${c}%)`:""}`})]})},wrapperStyle:S,position:null!=v?v:void 0,isAnimationActive:!1}),r(b,{data:y,dataKey:"value",nameKey:"label",cx:"50%",cy:"50%",outerRadius:"80%",innerRadius:"donut"===o?"40%":"0%",activeIndex:u,activeShape:F,onMouseEnter:(r,e)=>{var t,o,l,a,n;k(e);const c=Number(null!==(t=r.cx)&&void 0!==t?t:0),i=Number(null!==(o=r.cy)&&void 0!==o?o:0),h=Number(null!==(l=r.midAngle)&&void 0!==l?l:0),d=Number(null!==(a=r.innerRadius)&&void 0!==a?a:0),s=d+(Number(null!==(n=r.outerRadius)&&void 0!==n?n:0)-d)/2,u=c+s*Math.cos(-h*g),p=i+s*Math.sin(-h*g);m({x:u,y:p})},onMouseLeave:()=>{k(void 0),m(null)},style:{cursor:s?"pointer":void 0},onClick:s?(r,e,t)=>s(r,e,t):void 0,labelLine:!1,label:!!c&&(e=>{const{cx:t,cy:o,midAngle:l,innerRadius:a,outerRadius:n,percent:c}=e,i=a+.5*(n-a),h=t+i*Math.cos(-l*g),d=o+i*Math.sin(-l*g);return r("text",{x:h,y:d,fill:"hsl(var(--background))",textAnchor:"middle",dominantBaseline:"central",fontSize:12,children:`${(100*(null!=c?c:0)).toFixed(0)}%`})}),children:y.map(((e,t)=>r(C,{fill:e.color,stroke:"none"},`cell-${t}`)))})]})})]})},U=new Set,X=()=>{U.forEach((r=>r()))},_=({text:o,position:n="top",className:d="",contentClassName:s="",children:u,content:p,variant:k="dark",delay:v=0,maxWidth:C})=>{const[m,y]=l(!1),[M,g]=l({}),[x,f]=l(!1),b=c(null),w=c(null),$=c(),A=i(),S=p||o;h((()=>{f(!0)}),[]);const z=a((()=>{clearTimeout($.current),y(!1)}),[]),H=a((()=>{v>0?$.current=setTimeout((()=>y(!0)),v):y(!0)}),[v]),L=a((()=>{if(!b.current||!w.current)return;const r=b.current.getBoundingClientRect(),e=w.current.getBoundingClientRect();let t=0,o=0;switch(n){case"top":t=r.top-e.height-8,o=r.left+r.width/2-e.width/2;break;case"bottom":t=r.bottom+8,o=r.left+r.width/2-e.width/2;break;case"left":t=r.top+r.height/2-e.height/2,o=r.left-e.width-8;break;case"right":t=r.top+r.height/2-e.height/2,o=r.right+8}g({top:`${t}px`,left:`${o}px`})}),[n]);h((()=>{if(m)return L(),r=z,0===U.size&&"undefined"!=typeof window&&window.addEventListener("scroll",X,{capture:!0,passive:!0}),U.add(r),()=>(r=>{U.delete(r),0===U.size&&"undefined"!=typeof window&&window.removeEventListener("scroll",X,{capture:!0})})(z);var r}),[m,L,z]),h((()=>()=>clearTimeout($.current)),[]);const O=void 0!==C?"number"==typeof C?`${C}px`:C:void 0,V=r("div",{id:A,ref:w,role:"tooltip",className:`tooltip-box tooltip-box--${k}${m?" tooltip-visible":""} ${s}`,"data-position":n,style:Object.assign(Object.assign({},M),O?{maxWidth:O}:{}),children:S});return e(t,{children:[r("div",{ref:b,className:`tooltip-container ${d}`,"aria-describedby":m?A:void 0,onMouseEnter:H,onMouseLeave:z,onFocus:H,onBlur:z,children:u}),x&&N(V,document.body)]})},q=({data:t,showValue:l=!0,showPercentage:a=!1,height:n,className:c,onRowClick:i,onColumnClick:h,onCellClick:d})=>{const{rows:s,columns:u,matrix:p}=t,k=p.flat(),v=Math.max(...k,0),C=r=>({backgroundColor:`hsl(var(--heatmap-hue, 225), var(--heatmap-saturation, 92%), ${(95-50*(v>0?r/v:0)).toFixed(1)}%)`}),m=r=>{const e=v>0?r/v:0;if(95-50*e<65)return{color:"hsl(0, 0%, 100%)"};return{color:`hsl(var(--heatmap-hue, 225), var(--heatmap-saturation, 92%), ${(60-30*e).toFixed(1)}%)`}},y=r=>r.toString().includes(".")?r.toFixed(2):String(r);return r("div",{className:"heatmap-container"+(c?` ${c}`:""),style:{height:n},children:e("div",{className:"heatmap-grid",style:{gridTemplateColumns:`repeat(${u.length+1}, 1fr)`,gridTemplateRows:`auto repeat(${s.length}, 1fr)`},children:[r("div",{className:"heatmap-col-header"}),u.map((e=>r("div",{className:"heatmap-col-tooltip",children:r(_,{text:e,position:"top",className:"heatmap-col-tooltip",children:r("div",{className:"heatmap-col-header heatmap-header-label",style:{cursor:h?"pointer":"default"},onClick:h?r=>h(e,r):void 0,role:h?"button":void 0,tabIndex:h?0:void 0,onKeyDown:h?r=>{"Enter"!==r.key&&" "!==r.key||(r.preventDefault(),h(e,r))}:void 0,children:e})})},e))),s.map(((t,n)=>e(o.Fragment,{children:[r("div",{className:"heatmap-row-tooltip",children:r(_,{text:t,position:"top",className:"heatmap-row-tooltip",children:r("div",{className:"heatmap-row-header heatmap-header-label",style:{cursor:i?"pointer":"default"},onClick:i?r=>i(t,r):void 0,role:i?"button":void 0,tabIndex:i?0:void 0,onKeyDown:i?r=>{"Enter"!==r.key&&" "!==r.key||(r.preventDefault(),i(t,r))}:void 0,children:t})})}),p[n].map(((t,c)=>{const i=s[n],h=u[c],p=v>0?(t/v*100).toFixed(0):"0",k=e("div",{className:"heatmap-cell",style:Object.assign(Object.assign({},C(t)),{cursor:d?"pointer":void 0}),onClick:d?r=>d(i,h,t,r):void 0,onKeyDown:d?r=>{"Enter"!==r.key&&" "!==r.key||(r.preventDefault(),d(i,h,t,r))}:void 0,role:d?"button":void 0,tabIndex:d?0:void 0,children:[l&&r("div",{className:"heatmap-cell-content heatmap-cell-value-container",style:m(t),children:r("span",{children:y(t)})}),a&&r("div",{className:"heatmap-cell-content heatmap-cell-percentage-container",style:m(t),children:e("span",{children:[p,"%"]})})]});return l||a?r(o.Fragment,{children:k},`${n}-${c}`):r(_,{content:e("div",{className:"heatmap-cell-tooltip-content",children:[e("div",{children:["Value: ",y(t)]}),r("div",{children:v>0?`${(t/v*100).toFixed(0)}% of max`:"0% of max"})]}),position:"top",children:k},`${n}-${c}`)}))]},t)))]})})},Y={alert:e(t,{children:[r("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",stroke:"currentColor"}),r("path",{d:"M12 9v4",stroke:"currentColor"}),r("path",{d:"M12 17h.01",stroke:"currentColor"})]}),"align-center":e(t,{children:[r("path",{d:"M21 5H3",stroke:"currentColor"}),r("path",{d:"M17 12H7",stroke:"currentColor"}),r("path",{d:"M19 19H5",stroke:"currentColor"})]}),"align-left":e(t,{children:[r("path",{d:"M21 5H3",stroke:"currentColor"}),r("path",{d:"M15 12H3",stroke:"currentColor"}),r("path",{d:"M17 19H3",stroke:"currentColor"})]}),"align-right":e(t,{children:[r("path",{d:"M21 5H3",stroke:"currentColor"}),r("path",{d:"M21 12H9",stroke:"currentColor"}),r("path",{d:"M21 19H7",stroke:"currentColor"})]}),"arrow-down":e(t,{children:[r("path",{d:"M12 5v14",stroke:"currentColor"}),r("path",{d:"m19 12-7 7-7-7",stroke:"currentColor"})]}),"arrow-down-narrow-wide":e(t,{children:[r("path",{d:"m3 16 4 4 4-4",stroke:"currentColor"}),r("path",{d:"M7 20V4",stroke:"currentColor"}),r("path",{d:"M11 4h4",stroke:"currentColor"}),r("path",{d:"M11 8h7",stroke:"currentColor"}),r("path",{d:"M11 12h10",stroke:"currentColor"})]}),"arrow-down-wide-narrow":e(t,{children:[r("path",{d:"m3 16 4 4 4-4",stroke:"currentColor"}),r("path",{d:"M7 20V4",stroke:"currentColor"}),r("path",{d:"M11 4h10",stroke:"currentColor"}),r("path",{d:"M11 8h7",stroke:"currentColor"}),r("path",{d:"M11 12h4",stroke:"currentColor"})]}),"arrow-left":e(t,{children:[r("path",{d:"m12 19-7-7 7-7",stroke:"currentColor"}),r("path",{d:"M19 12H5",stroke:"currentColor"})]}),"arrow-right":e(t,{children:[r("path",{d:"M5 12h14",stroke:"currentColor"}),r("path",{d:"m12 5 7 7-7 7",stroke:"currentColor"})]}),"arrow-up":e(t,{children:[r("path",{d:"m5 12 7-7 7 7",stroke:"currentColor"}),r("path",{d:"M12 19V5",stroke:"currentColor"})]}),"arrow-up-narrow-wide":e(t,{children:[r("path",{d:"m3 8 4-4 4 4",stroke:"currentColor"}),r("path",{d:"M7 4v16",stroke:"currentColor"}),r("path",{d:"M11 12h4",stroke:"currentColor"}),r("path",{d:"M11 16h7",stroke:"currentColor"}),r("path",{d:"M11 20h10",stroke:"currentColor"})]}),"arrow-up-wide-narrow":e(t,{children:[r("path",{d:"m3 8 4-4 4 4",stroke:"currentColor"}),r("path",{d:"M7 4v16",stroke:"currentColor"}),r("path",{d:"M11 12h10",stroke:"currentColor"}),r("path",{d:"M11 16h7",stroke:"currentColor"}),r("path",{d:"M11 20h4",stroke:"currentColor"})]}),bell:e(t,{children:[r("path",{d:"M10.268 21a2 2 0 0 0 3.464 0",stroke:"currentColor"}),r("path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",stroke:"currentColor"})]}),"bell-ring":e(t,{children:[r("path",{d:"M10.268 21a2 2 0 0 0 3.464 0",stroke:"currentColor"}),r("path",{d:"M22 8c0-2.3-.8-4.3-2-6",stroke:"currentColor"}),r("path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",stroke:"currentColor"}),r("path",{d:"M4 2C2.8 3.7 2 5.7 2 8",stroke:"currentColor"})]}),bold:r("path",{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",stroke:"currentColor"}),building:e(t,{children:[r("path",{d:"M10 12h4",stroke:"currentColor"}),r("path",{d:"M10 8h4",stroke:"currentColor"}),r("path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",stroke:"currentColor"}),r("path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",stroke:"currentColor"}),r("path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",stroke:"currentColor"})]}),calendar:e(t,{children:[r("path",{d:"M8 2v4",stroke:"currentColor"}),r("path",{d:"M16 2v4",stroke:"currentColor"}),r("rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",stroke:"currentColor"}),r("path",{d:"M3 10h18",stroke:"currentColor"}),r("path",{d:"M8 14h.01",stroke:"currentColor"}),r("path",{d:"M12 14h.01",stroke:"currentColor"}),r("path",{d:"M16 14h.01",stroke:"currentColor"}),r("path",{d:"M8 18h.01",stroke:"currentColor"}),r("path",{d:"M12 18h.01",stroke:"currentColor"}),r("path",{d:"M16 18h.01",stroke:"currentColor"})]}),"calendar-check":e(t,{children:[r("path",{d:"M8 2v4",stroke:"currentColor"}),r("path",{d:"M16 2v4",stroke:"currentColor"}),r("rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",stroke:"currentColor"}),r("path",{d:"M3 10h18",stroke:"currentColor"}),r("path",{d:"m9 16 2 2 4-4",stroke:"currentColor"})]}),"calendar-clock":e(t,{children:[r("path",{d:"M16 14v2.2l1.6 1",stroke:"currentColor"}),r("path",{d:"M16 2v4",stroke:"currentColor"}),r("path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",stroke:"currentColor"}),r("path",{d:"M3 10h5",stroke:"currentColor"}),r("path",{d:"M8 2v4",stroke:"currentColor"}),r("circle",{cx:"16",cy:"16",r:"6",stroke:"currentColor"})]}),"calendar-cog":e(t,{children:[r("path",{d:"m15.228 16.852-.923-.383",stroke:"currentColor"}),r("path",{d:"m15.228 19.148-.923.383",stroke:"currentColor"}),r("path",{d:"M16 2v4",stroke:"currentColor"}),r("path",{d:"m16.47 14.305.382.923",stroke:"currentColor"}),r("path",{d:"m16.852 20.772-.383.924",stroke:"currentColor"}),r("path",{d:"m19.148 15.228.383-.923",stroke:"currentColor"}),r("path",{d:"m19.53 21.696-.382-.924",stroke:"currentColor"}),r("path",{d:"m20.772 16.852.924-.383",stroke:"currentColor"}),r("path",{d:"m20.772 19.148.924.383",stroke:"currentColor"}),r("path",{d:"M21 10.592V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6",stroke:"currentColor"}),r("path",{d:"M3 10h18",stroke:"currentColor"}),r("path",{d:"M8 2v4",stroke:"currentColor"}),r("circle",{cx:"18",cy:"18",r:"3",stroke:"currentColor"})]}),"calendar-plus":e(t,{children:[r("path",{d:"M8 2v4",stroke:"currentColor"}),r("path",{d:"M16 2v4",stroke:"currentColor"}),r("rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",stroke:"currentColor"}),r("path",{d:"M3 10h18",stroke:"currentColor"}),r("path",{d:"M10 16h4",stroke:"currentColor"}),r("path",{d:"M12 14v4",stroke:"currentColor"})]}),"calendar-sync":e(t,{children:[r("path",{d:"M11 10v4h4",stroke:"currentColor"}),r("path",{d:"m11 14 1.535-1.605a5 5 0 0 1 8 1.5",stroke:"currentColor"}),r("path",{d:"M16 2v4",stroke:"currentColor"}),r("path",{d:"m21 18-1.535 1.605a5 5 0 0 1-8-1.5",stroke:"currentColor"}),r("path",{d:"M21 22v-4h-4",stroke:"currentColor"}),r("path",{d:"M21 8.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h4.3",stroke:"currentColor"}),r("path",{d:"M3 10h4",stroke:"currentColor"}),r("path",{d:"M8 2v4",stroke:"currentColor"})]}),camera:e(t,{children:[r("path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",stroke:"currentColor"}),r("circle",{cx:"12",cy:"13",r:"3",stroke:"currentColor"})]}),check:r("path",{d:"M20 6 9 17l-5-5",stroke:"currentColor"}),"chevron-down":r("path",{d:"m6 9 6 6 6-6",stroke:"currentColor"}),"chevron-left":r("path",{d:"m15 18-6-6 6-6",stroke:"currentColor"}),"chevron-right":r("path",{d:"m9 18 6-6-6-6",stroke:"currentColor"}),"chevron-up":r("path",{d:"m18 15-6-6-6 6",stroke:"currentColor"}),"chevrons-x":e(t,{children:[r("path",{d:"m9 7-5 5 5 5",stroke:"currentColor"}),r("path",{d:"m15 7 5 5-5 5",stroke:"currentColor"})]}),"chevrons-y":e(t,{children:[r("path",{d:"m7 15 5 5 5-5",stroke:"currentColor"}),r("path",{d:"m7 9 5-5 5 5",stroke:"currentColor"})]}),clock:e(t,{children:[r("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor"}),r("path",{d:"M12 6v6l4 2",stroke:"currentColor"})]}),"clock-alert":e(t,{children:[r("path",{d:"M12 6v6l4 2",stroke:"currentColor"}),r("path",{d:"M20 12v5",stroke:"currentColor"}),r("path",{d:"M20 21h.01",stroke:"currentColor"}),r("path",{d:"M21.25 8.2A10 10 0 1 0 16 21.16",stroke:"currentColor"})]}),close:e(t,{children:[r("path",{d:"M18 6 6 18",stroke:"currentColor"}),r("path",{d:"m6 6 12 12",stroke:"currentColor"})]}),coffee:e(t,{children:[r("path",{d:"M10 2v2",stroke:"currentColor"}),r("path",{d:"M14 2v2",stroke:"currentColor"}),r("path",{d:"M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1",stroke:"currentColor"}),r("path",{d:"M6 2v2",stroke:"currentColor"})]}),comment:e(t,{children:[r("path",{d:"M14 14a2 2 0 0 0 2-2V8h-2",stroke:"currentColor"}),r("path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",stroke:"currentColor"}),r("path",{d:"M8 14a2 2 0 0 0 2-2V8H8",stroke:"currentColor"})]}),"compact-view":e(t,{children:[r("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",stroke:"currentColor"}),r("path",{d:"M21 9H3",stroke:"currentColor"}),r("path",{d:"M21 15H3",stroke:"currentColor"})]}),copy:e(t,{children:[r("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",stroke:"currentColor"}),r("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",stroke:"currentColor"})]}),cut:e(t,{children:[r("circle",{cx:"6",cy:"6",r:"3",stroke:"currentColor"}),r("path",{d:"M8.12 8.12 12 12",stroke:"currentColor"}),r("path",{d:"M20 4 8.12 15.88",stroke:"currentColor"}),r("circle",{cx:"6",cy:"18",r:"3",stroke:"currentColor"}),r("path",{d:"M14.8 14.8 20 20",stroke:"currentColor"})]}),dashboard:e(t,{children:[r("rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",stroke:"currentColor"}),r("rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",stroke:"currentColor"}),r("rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",stroke:"currentColor"}),r("rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",stroke:"currentColor"})]}),"dots-horizontal":e(t,{children:[r("circle",{cx:"12",cy:"12",r:"1",stroke:"currentColor"}),r("circle",{cx:"19",cy:"12",r:"1",stroke:"currentColor"}),r("circle",{cx:"5",cy:"12",r:"1",stroke:"currentColor"})]}),"dots-vertical":e(t,{children:[r("circle",{cx:"12",cy:"12",r:"1",stroke:"currentColor"}),r("circle",{cx:"12",cy:"5",r:"1",stroke:"currentColor"}),r("circle",{cx:"12",cy:"19",r:"1",stroke:"currentColor"})]}),"double-chevron-left":e(t,{children:[r("path",{d:"m11 17-5-5 5-5",stroke:"currentColor"}),r("path",{d:"m18 17-5-5 5-5",stroke:"currentColor"})]}),"double-chevron-right":e(t,{children:[r("path",{d:"m6 17 5-5-5-5",stroke:"currentColor"}),r("path",{d:"m13 17 5-5-5-5",stroke:"currentColor"})]}),download:e(t,{children:[r("path",{d:"M12 15V3",stroke:"currentColor"}),r("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",stroke:"currentColor"}),r("path",{d:"m7 10 5 5 5-5",stroke:"currentColor"})]}),"drag-handle":e(t,{children:[r("circle",{cx:"9",cy:"12",r:"1",stroke:"currentColor"}),r("circle",{cx:"9",cy:"5",r:"1",stroke:"currentColor"}),r("circle",{cx:"9",cy:"19",r:"1",stroke:"currentColor"}),r("circle",{cx:"15",cy:"12",r:"1",stroke:"currentColor"}),r("circle",{cx:"15",cy:"5",r:"1",stroke:"currentColor"}),r("circle",{cx:"15",cy:"19",r:"1",stroke:"currentColor"})]}),edit:e(t,{children:[r("path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",stroke:"currentColor"}),r("path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",stroke:"currentColor"})]}),envelope:e(t,{children:[r("path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",stroke:"currentColor"}),r("rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",stroke:"currentColor"})]}),"external-link":e(t,{children:[r("path",{d:"M15 3h6v6",stroke:"currentColor"}),r("path",{d:"M10 14 21 3",stroke:"currentColor"}),r("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",stroke:"currentColor"})]}),eye:e(t,{children:[r("path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",stroke:"currentColor"}),r("circle",{cx:"12",cy:"12",r:"3",stroke:"currentColor"})]}),"eye-off":e(t,{children:[r("path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",stroke:"currentColor"}),r("path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",stroke:"currentColor"}),r("path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",stroke:"currentColor"}),r("path",{d:"m2 2 20 20",stroke:"currentColor"})]}),file:e(t,{children:[r("path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",stroke:"currentColor"}),r("path",{d:"M14 2v5a1 1 0 0 0 1 1h5",stroke:"currentColor"})]}),"file-code":e(t,{children:[r("path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",stroke:"currentColor"}),r("path",{d:"M14 2v5a1 1 0 0 0 1 1h5",stroke:"currentColor"}),r("path",{d:"m5 16-3 3 3 3",stroke:"currentColor"}),r("path",{d:"m9 22 3-3-3-3",stroke:"currentColor"})]}),filter:e(t,{children:[r("path",{d:"M2 5h20",stroke:"currentColor"}),r("path",{d:"M6 12h12",stroke:"currentColor"}),r("path",{d:"M9 19h6",stroke:"currentColor"})]}),"filter-plus":e(t,{children:[r("path",{d:"M12 5H2",stroke:"currentColor"}),r("path",{d:"M6 12h12",stroke:"currentColor"}),r("path",{d:"M9 19h6",stroke:"currentColor"}),r("path",{d:"M16 5h6",stroke:"currentColor"}),r("path",{d:"M19 8V2",stroke:"currentColor"})]}),flag:r("path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",stroke:"currentColor"}),forbidden:e(t,{children:[r("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor"}),r("path",{d:"M4.929 4.929 19.07 19.071",stroke:"currentColor"})]}),grid:e(t,{children:[r("rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",stroke:"currentColor"}),r("rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",stroke:"currentColor"}),r("rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",stroke:"currentColor"}),r("rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",stroke:"currentColor"})]}),hint:e(t,{children:[r("path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",stroke:"currentColor"}),r("path",{d:"M9 18h6",stroke:"currentColor"}),r("path",{d:"M10 22h4",stroke:"currentColor"})]}),hospital:e(t,{children:[r("path",{d:"M12 7v4",stroke:"currentColor"}),r("path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",stroke:"currentColor"}),r("path",{d:"M14 9h-4",stroke:"currentColor"}),r("path",{d:"M18 11h2a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-9a2 2 0 0 1 2-2h2",stroke:"currentColor"}),r("path",{d:"M18 21V5a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16",stroke:"currentColor"})]}),home:e(t,{children:[r("path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",stroke:"currentColor"}),r("path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",stroke:"currentColor"})]}),image:e(t,{children:[r("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",stroke:"currentColor"}),r("circle",{cx:"9",cy:"9",r:"2",stroke:"currentColor"}),r("path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",stroke:"currentColor"})]}),inbox:e(t,{children:[r("polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",stroke:"currentColor"}),r("path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",stroke:"currentColor"})]}),info:e(t,{children:[r("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor"}),r("path",{d:"M12 16v-4",stroke:"currentColor"}),r("path",{d:"M12 8h.01",stroke:"currentColor"})]}),italic:e(t,{children:[r("line",{x1:"19",x2:"10",y1:"4",y2:"4",stroke:"currentColor"}),r("line",{x1:"14",x2:"5",y1:"20",y2:"20",stroke:"currentColor"}),r("line",{x1:"15",x2:"9",y1:"4",y2:"20",stroke:"currentColor"})]}),layout:e(t,{children:[r("rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",stroke:"currentColor"}),r("rect",{width:"7",height:"7",x:"14",y:"3",rx:"7",stroke:"currentColor"}),r("rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",stroke:"currentColor"}),r("rect",{width:"7",height:"7",x:"3",y:"14",rx:"7",stroke:"currentColor"})]}),library:e(t,{children:[r("path",{d:"m16 6 4 14",stroke:"currentColor"}),r("path",{d:"M12 6v14",stroke:"currentColor"}),r("path",{d:"M8 8v12",stroke:"currentColor"}),r("path",{d:"M4 4v16",stroke:"currentColor"})]}),link:e(t,{children:[r("path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",stroke:"currentColor"}),r("path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",stroke:"currentColor"})]}),list:e(t,{children:[r("path",{d:"M3 5h.01",stroke:"currentColor"}),r("path",{d:"M3 12h.01",stroke:"currentColor"}),r("path",{d:"M3 19h.01",stroke:"currentColor"}),r("path",{d:"M8 5h13",stroke:"currentColor"}),r("path",{d:"M8 12h13",stroke:"currentColor"}),r("path",{d:"M8 19h13",stroke:"currentColor"})]}),"list-ol":e(t,{children:[r("path",{d:"M11 5h10",stroke:"currentColor"}),r("path",{d:"M11 12h10",stroke:"currentColor"}),r("path",{d:"M11 19h10",stroke:"currentColor"}),r("path",{d:"M4 4h1v5",stroke:"currentColor"}),r("path",{d:"M4 9h2",stroke:"currentColor"}),r("path",{d:"M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02",stroke:"currentColor"})]}),"list-ul":e(t,{children:[r("path",{d:"M3 5h18",stroke:"currentColor"}),r("path",{d:"M3 12h18",stroke:"currentColor"}),r("path",{d:"M3 19h18",stroke:"currentColor"})]}),"log-in":e(t,{children:[r("path",{d:"m10 17 5-5-5-5",stroke:"currentColor"}),r("path",{d:"M15 12H3",stroke:"currentColor"}),r("path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",stroke:"currentColor"})]}),"log-out":e(t,{children:[r("path",{d:"m16 17 5-5-5-5",stroke:"currentColor"}),r("path",{d:"M21 12H9",stroke:"currentColor"}),r("path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",stroke:"currentColor"})]}),maximize:e(t,{children:[r("path",{d:"M15 3h6v6",stroke:"currentColor"}),r("path",{d:"m21 3-7 7",stroke:"currentColor"}),r("path",{d:"m3 21 7-7",stroke:"currentColor"}),r("path",{d:"M9 21H3v-6",stroke:"currentColor"})]}),message:r("path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",stroke:"currentColor"}),minimize:e(t,{children:[r("path",{d:"m14 10 7-7",stroke:"currentColor"}),r("path",{d:"M20 10h-6V4",stroke:"currentColor"}),r("path",{d:"m3 21 7-7",stroke:"currentColor"}),r("path",{d:"M4 14h6v6",stroke:"currentColor"})]}),minus:r("path",{d:"M5 12h14",stroke:"currentColor"}),note:e(t,{children:[r("path",{d:"M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z",stroke:"currentColor"}),r("path",{d:"M15 3v5a1 1 0 0 0 1 1h5",stroke:"currentColor"})]}),paste:e(t,{children:[r("path",{d:"M11 14h10",stroke:"currentColor"}),r("path",{d:"M16 4h2a2 2 0 0 1 2 2v1.344",stroke:"currentColor"}),r("path",{d:"m17 18 4-4-4-4",stroke:"currentColor"}),r("path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 1.793-1.113",stroke:"currentColor"}),r("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",stroke:"currentColor"})]}),phone:r("path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",stroke:"currentColor"}),plus:e(t,{children:[r("path",{d:"M5 12h14",stroke:"currentColor"}),r("path",{d:"M12 5v14",stroke:"currentColor"})]}),quote:e(t,{children:[r("path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",stroke:"currentColor"}),r("path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",stroke:"currentColor"})]}),redo:e(t,{children:[r("path",{d:"M21 7v6h-6",stroke:"currentColor"}),r("path",{d:"M3 17a9 9 0 0 1 9-9 9 9 0 0 1 6 2.3l3 2.7",stroke:"currentColor"})]}),refresh:e(t,{children:[r("path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",stroke:"currentColor"}),r("path",{d:"M21 3v5h-5",stroke:"currentColor"}),r("path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",stroke:"currentColor"}),r("path",{d:"M8 16H3v5",stroke:"currentColor"})]}),"relaxed-view":e(t,{children:[r("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",stroke:"currentColor"}),r("path",{d:"M3 12h18",stroke:"currentColor"})]}),search:e(t,{children:[r("path",{d:"m21 21-4.34-4.34",stroke:"currentColor"}),r("circle",{cx:"11",cy:"11",r:"8",stroke:"currentColor"})]}),send:e(t,{children:[r("path",{d:"M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z",stroke:"currentColor"}),r("path",{d:"M6 12h16",stroke:"currentColor"})]}),settings:e(t,{children:[r("path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",stroke:"currentColor"}),r("circle",{cx:"12",cy:"12",r:"3",stroke:"currentColor"})]}),shuffle:e(t,{children:[r("path",{d:"m18 14 4 4-4 4",stroke:"currentColor"}),r("path",{d:"m18 2 4 4-4 4",stroke:"currentColor"}),r("path",{d:"M2 18h1.973a4 4 0 0 0 3.3-1.7l5.454-8.6a4 4 0 0 1 3.3-1.7H22",stroke:"currentColor"}),r("path",{d:"M2 6h1.972a4 4 0 0 1 3.6 2.2",stroke:"currentColor"}),r("path",{d:"M22 18h-6.041a4 4 0 0 1-3.3-1.8l-.359-.45",stroke:"currentColor"})]}),stats:e(t,{children:[r("path",{d:"M3 3v16a2 2 0 0 0 2 2h16",stroke:"currentColor"}),r("path",{d:"M18 17V9",stroke:"currentColor"}),r("path",{d:"M13 17V5",stroke:"currentColor"}),r("path",{d:"M8 17v-3",stroke:"currentColor"})]}),strikethrough:e(t,{children:[r("path",{d:"M16 4H9a3 3 0 0 0-2.83 4",stroke:"currentColor"}),r("path",{d:"M14 12a4 4 0 0 1 0 8H6",stroke:"currentColor"}),r("line",{x1:"4",x2:"20",y1:"12",y2:"12",stroke:"currentColor"})]}),swap:e(t,{children:[r("path",{d:"M8 3 4 7l4 4",stroke:"currentColor"}),r("path",{d:"M4 7h16",stroke:"currentColor"}),r("path",{d:"m16 21 4-4-4-4",stroke:"currentColor"}),r("path",{d:"M20 17H4",stroke:"currentColor"})]}),"swap-vertical":e(t,{children:[r("path",{d:"m3 16 4 4 4-4",stroke:"currentColor"}),r("path",{d:"M7 20V4",stroke:"currentColor"}),r("path",{d:"m21 8-4-4-4 4",stroke:"currentColor"}),r("path",{d:"M17 4v16",stroke:"currentColor"})]}),trash:e(t,{children:[r("path",{d:"M10 11v6",stroke:"currentColor"}),r("path",{d:"M14 11v6",stroke:"currentColor"}),r("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",stroke:"currentColor"}),r("path",{d:"M3 6h18",stroke:"currentColor"}),r("path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",stroke:"currentColor"})]}),underline:e(t,{children:[r("path",{d:"M6 4v6a6 6 0 0 0 12 0V4",stroke:"currentColor"}),r("line",{x1:"4",x2:"20",y1:"20",y2:"20",stroke:"currentColor"})]}),undo:e(t,{children:[r("path",{d:"M3 7v6h6",stroke:"currentColor"}),r("path",{d:"M21 17a9 9 0 0 0-9-9 9 9 0 0 0-6 2.3L3 13",stroke:"currentColor"})]}),upload:e(t,{children:[r("path",{d:"M12 3v12",stroke:"currentColor"}),r("path",{d:"m17 8-5-5-5 5",stroke:"currentColor"}),r("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",stroke:"currentColor"})]}),user:e(t,{children:[r("path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",stroke:"currentColor"}),r("circle",{cx:"12",cy:"7",r:"4",stroke:"currentColor"})]}),"user-check":e(t,{children:[r("path",{d:"m16 11 2 2 4-4",stroke:"currentColor"}),r("path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",stroke:"currentColor"}),r("circle",{cx:"9",cy:"7",r:"4",stroke:"currentColor"})]}),users:e(t,{children:[r("path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",stroke:"currentColor"}),r("path",{d:"M16 3.128a4 4 0 0 1 0 7.744",stroke:"currentColor"}),r("path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",stroke:"currentColor"}),r("circle",{cx:"9",cy:"7",r:"4",stroke:"currentColor"})]}),wand:e(t,{children:[r("path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",stroke:"currentColor"}),r("path",{d:"m14 7 3 3",stroke:"currentColor"}),r("path",{d:"M5 6v4",stroke:"currentColor"}),r("path",{d:"M19 14v4",stroke:"currentColor"}),r("path",{d:"M10 2v2",stroke:"currentColor"}),r("path",{d:"M7 8H3",stroke:"currentColor"}),r("path",{d:"M21 16h-4",stroke:"currentColor"}),r("path",{d:"M11 3H9",stroke:"currentColor"})]}),"zoom-in":e(t,{children:[r("circle",{cx:"11",cy:"11",r:"8",stroke:"currentColor"}),r("line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",stroke:"currentColor"}),r("line",{x1:"11",x2:"11",y1:"8",y2:"14",stroke:"currentColor"}),r("line",{x1:"8",x2:"14",y1:"11",y2:"11",stroke:"currentColor"})]}),"zoom-out":e(t,{children:[r("circle",{cx:"11",cy:"11",r:"8",stroke:"currentColor"}),r("line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",stroke:"currentColor"}),r("line",{x1:"8",x2:"14",y1:"11",y2:"11",stroke:"currentColor"})]}),sort:e(t,{children:[r("path",{d:"M3 5h8",stroke:"currentColor"}),r("path",{d:"M3 12h8",stroke:"currentColor"}),r("path",{d:"M3 19h8",stroke:"currentColor"}),r("path",{d:"m15 8 3-3 3 3",stroke:"currentColor"}),r("path",{d:"m15 16 3 3 3-3",stroke:"currentColor"})]}),sun:e(t,{children:[r("circle",{cx:"12",cy:"12",r:"4",stroke:"currentColor"}),r("path",{d:"M12 2v2",stroke:"currentColor"}),r("path",{d:"M12 20v2",stroke:"currentColor"}),r("path",{d:"m4.93 4.93 1.41 1.41",stroke:"currentColor"}),r("path",{d:"m17.66 17.66 1.41 1.41",stroke:"currentColor"}),r("path",{d:"M2 12h2",stroke:"currentColor"}),r("path",{d:"M20 12h2",stroke:"currentColor"}),r("path",{d:"m6.34 17.66-1.41 1.41",stroke:"currentColor"}),r("path",{d:"m19.07 4.93-1.41 1.41",stroke:"currentColor"})]}),moon:r("path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",stroke:"currentColor"}),tool:r("path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",stroke:"currentColor"}),hook:e(t,{children:[r("path",{d:"m17.586 11.414-5.93 5.93a1 1 0 0 1-8-8l3.137-3.137a.707.707 0 0 1 1.207.5V10",stroke:"currentColor"}),r("path",{d:"M20.414 8.586 22 7",stroke:"currentColor"}),r("circle",{cx:"19",cy:"10",r:"2",stroke:"currentColor"})]}),component:e(t,{children:[r("rect",{width:"18",height:"12",x:"3",y:"8",rx:"1",stroke:"currentColor"}),r("path",{d:"M10 8V5c0-.6-.4-1-1-1H6a1 1 0 0 0-1 1v3",stroke:"currentColor"}),r("path",{d:"M19 8V5c0-.6-.4-1-1-1h-3a1 1 0 0 0-1 1v3",stroke:"currentColor"})]}),"arrow-up-right":e(t,{children:[r("path",{d:"M7 7h10v10",stroke:"currentColor"}),r("path",{d:"M7 17 17 7",stroke:"currentColor"})]}),chart:e(t,{children:[r("path",{d:"M3 3v16a2 2 0 0 0 2 2h16",stroke:"currentColor"}),r("path",{d:"m19 9-5 5-4-4-3 3",stroke:"currentColor"})]}),star:r("path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",stroke:"currentColor"}),sparkles:e(t,{children:[r("path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",stroke:"currentColor"}),r("path",{d:"M20 2v4",stroke:"currentColor"}),r("path",{d:"M22 4h-4",stroke:"currentColor"}),r("circle",{cx:"4",cy:"20",r:"2",stroke:"currentColor"})]}),terminal:e(t,{children:[r("path",{d:"M12 19h8",stroke:"currentColor"}),r("path",{d:"m4 17 6-6-6-6",stroke:"currentColor"})]}),shield:r("path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",stroke:"currentColor"}),code:e(t,{children:[r("path",{d:"m18 16 4-4-4-4",stroke:"currentColor"}),r("path",{d:"m6 8-4 4 4 4",stroke:"currentColor"}),r("path",{d:"m14.5 4-5 16",stroke:"currentColor"})]})},Z=e=>{var t,{icon:o,size:l=24,tooltip:a,tooltipPosition:n="top",tooltipVariant:c="dark",strokeWidth:i=2}=e,h=$(e,["icon","size","tooltip","tooltipPosition","tooltipVariant","strokeWidth"]);const d=null!==(t=Y[o])&&void 0!==t?t:null,s=r("svg",Object.assign({height:l,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"},h,{children:d}));if(null!=a){const e="string"==typeof a?{text:a}:{content:a};return r(_,Object.assign({},e,{position:n,variant:c,children:s}))}return s},J=r=>{if(!r)return"";return r.split(/(?=[A-Z])|[_-]/g).map((r=>r.trim())).filter((r=>r.length>0)).map(((r,e)=>0===e?r.charAt(0).toUpperCase()+r.slice(1).toLowerCase():r.toLowerCase())).join(" ")},Q=["hsl(var(--primary))","hsl(var(--primary-200))","hsl(var(--primary-400))"],rr=["hsl(var(--primary))","hsl(var(--primary-400))"],er=["hsl(225, 91%, 59%)","hsl(280, 91%, 59%)","hsl(330, 91%, 59%)","hsl(30, 91%, 59%)","hsl(150, 91%, 59%)","hsl(190, 91%, 59%)"],tr=t=>{var{type:o,title:l,info:a,description:n,kpis:c,data:i,height:h=400,className:d}=t,s=$(t,["type","title","info","description","kpis","data","height","className"]);return e("div",{className:"chart-container"+(d?` ${d}`:""),children:[e("div",{className:"chart-header",children:[e("div",{className:"chart-header-content",children:[(l||a)&&e("div",{className:"chart-title-container",children:[l&&r("h3",{className:"chart-title",children:l}),a&&r(_,{text:a,position:"top",children:r(Z,{icon:"info",size:16,className:"chart-info-icon"})})]}),n&&r("p",{className:"chart-description",children:n})]}),e("div",{className:"chart-metadata",children:[(null==c?void 0:c.length)?r("div",{className:"chart-kpis",children:c.map(((t,o)=>e("div",{className:"chart-kpi",children:[r("div",{className:"chart-kpi-label",children:t.label}),r("div",{className:"chart-kpi-value",children:t.value})]},o)))}):null,"pie"!==o&&"heatmap"!==o&&r(P,{items:(()=>{switch(o){case"bar":case"line":{const r=i[0];if(!r)return[];const e="line"===o?rr:Q;return Object.keys(r).filter((r=>"x"!==r)).map(((r,t)=>({label:J(r),color:e[t%e.length],style:"line"===o?"line":"rectangle"})))}case"pie":return i.map(((r,e)=>{var t;return{label:J(r.label),color:null!==(t=r.color)&&void 0!==t?t:er[e%er.length],style:"circle"}}));default:return[]}})(),className:"chart-legend"})]})]}),(()=>{switch(o){case"bar":{const e=i,t=s,o=e.length>0?Object.keys(e[0]).filter((r=>"x"!==r)).map(((r,e)=>({key:r,color:Q[e%Q.length],label:r}))):[];return r(E,{data:e,height:h,bars:o,layout:t.layout,orientation:t.orientation,showGrid:!0,showLegend:!1})}case"line":{const e=i,t=e.length>0?Object.keys(e[0]).filter((r=>"x"!==r)).map(((r,e)=>({key:r,color:rr[e%rr.length],label:r}))):[];return r(R,{data:e,height:h,lines:t,showGrid:!0,showLegend:!1,showGradient:!0,showTooltipLabel:!0})}case"pie":{const e=i.map(((r,e)=>{var t;return Object.assign(Object.assign({},r),{color:null!==(t=r.color)&&void 0!==t?t:er[e%er.length]})}));return r(G,{data:e,height:h,showLegend:!0,showLabels:!0})}case"heatmap":return r(q,{data:i,height:h,showValue:!0,showPercentage:!0});default:return null}})()]})};const or=({data:t,headerHeight:o})=>e("div",{className:"stat-chart-difference-col",children:[r("p",{className:"stat-chart-difference-title",style:{height:o},children:"Difference"}),t.map(((t,o)=>{const l=t.value2-t.value1,a=0===t.value1?l>0?100:0:l/t.value1*100,n=l>=0,c=n?"stat-chart-difference-positive":"stat-chart-difference-negative",i=n?"arrow-up":"arrow-down";return e("div",{className:"stat-chart-difference-row",children:[e("span",{className:c,children:[r(Z,{icon:i,size:14}),Math.abs(l).toLocaleString()]}),e("span",{className:c,children:[r(Z,{icon:i,size:14}),Math.abs(Math.round(a)),"%"]})]},o)}))]}),lr=({label:t,labelWidth:o,value:l,rowMax:a,fillColor:n,trackColor:c,showTrack:i,reversed:h=!1,tooltipText:d})=>{const s=a>0?Math.min(l/a*100,100):0,u=r("div",{style:Object.assign({position:"absolute",top:0,bottom:0,width:`${s}%`,backgroundColor:n},h?{right:0}:{left:0})}),p=r(_,{text:d,position:"top",className:"stat-chart-bar-tooltip",children:r("div",{className:"stat-chart-bar-track",style:{backgroundColor:i?c:"hsl(var(--muted-50))"},children:u})});return e("div",{style:{display:"flex",alignItems:"center",gap:"0.625rem",height:48,flexDirection:h?"row-reverse":"row"},children:[!h&&void 0!==t&&r("span",{style:{width:o,flexShrink:0,fontSize:"0.8125rem",color:"hsl(var(--muted-200))",textAlign:"right",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:t,children:t}),p]})},ar=({data:t,compareData:o,primaryColor:l="hsl(var(--primary))",primaryLabel:a,compareColor:n="hsl(225, 65%, 62%)",compareLabel:c,trackColor:i="hsl(var(--primary-muted))",compareTrackColor:h,unit:d,showDifference:s=!1,height:u,className:p})=>{const k=null!=h?h:"hsl(225, 65%, 88%)",v=r=>`${r.toLocaleString()}${d?` ${d}`:""}`;if(!o){const e=t.some((r=>void 0!==r.total)),o=Math.max(...t.map((r=>r.value))),a=function(r){const e=r.reduce(((r,e)=>Math.max(r,e.length)),0),t=Math.ceil(7*e)+8;return Math.min(Math.max(t,48),200)}(t.map((r=>r.label)));return r("div",{className:"stat-chart-container"+(p?` ${p}`:""),style:{height:u},children:t.map((t=>{var n;const c=e?null!==(n=t.total)&&void 0!==n?n:t.value:o;return r(lr,{label:t.label,labelWidth:a,value:t.value,rowMax:c,fillColor:l,trackColor:i,showTrack:e&&void 0!==t.total,tooltipText:v(t.value)},t.label)}))})}const C=t.map((r=>{const e=o.find((e=>e.label===r.label));return e?{label:r.label,current:r,previous:e}:null})).filter((r=>null!==r));if(!C.length)return null;const m=t.some((r=>void 0!==r.total)),y=m?void 0:Math.max(...t.map((r=>r.value)),...o.map((r=>r.value))),M=c||a?32:0,g=C.map((({previous:r,current:e})=>({value1:r.value,value2:e.value})));return e("div",{className:"stat-chart-compare-wrapper"+(p?` ${p}`:""),style:{height:u},children:[e("div",{className:"stat-chart-compare-section",children:[c&&r("div",{className:"stat-chart-compare-label",style:{height:M},children:c}),C.map((({label:e,previous:t})=>{var o;const l=m?null!==(o=t.total)&&void 0!==o?o:t.value:y;return r(lr,{value:t.value,rowMax:l,fillColor:n,trackColor:k,showTrack:m&&void 0!==t.total,reversed:!0,tooltipText:v(t.value)},e)}))]}),r("div",{className:"stat-chart-compare-center",style:{paddingTop:M},children:C.map((({label:e})=>r("div",{className:"stat-chart-compare-center-label",style:{height:48,display:"flex",alignItems:"center",justifyContent:"center"},children:e},e)))}),e("div",{className:"stat-chart-compare-section",children:[a&&r("div",{className:"stat-chart-compare-label",style:{height:M},children:a}),C.map((({label:e,current:t})=>{var o;const a=m?null!==(o=t.total)&&void 0!==o?o:t.value:y;return r(lr,{value:t.value,rowMax:a,fillColor:l,trackColor:i,showTrack:m&&void 0!==t.total,tooltipText:v(t.value)},e)}))]}),s&&r(or,{data:g,headerHeight:M})]})},nr=11;function cr({item:r}){const o=r.rangeEnd-r.rangeStart,l=Math.max(r.barStart,r.rangeStart),a=Math.min(r.barEnd,r.rangeEnd),n=Math.max(0,a-l),c=Math.max(0,r.barEnd-r.rangeEnd),i=r.barEnd-r.barStart,h=o>0?(n/o).toFixed(2):"0.00",d=Math.round(60*c),s=i>0?(c/i).toFixed(2):"0.00";return e("div",{className:"gantt-tooltip-content",children:[e("div",{children:["Range Utilization: ",h]}),c>0&&e(t,{children:[e("div",{children:["Overflow Time: ",d," min"]}),e("div",{children:["Overflow Utilization: ",s]})]})]})}const ir=({data:t,minTime:o=0,maxTime:l=24,tickInterval:n=2,rangeColor:c="hsl(225, 91%, 80%)",barColor:i="hsl(225, 91%, 50%)",overflowColor:h="hsl(350, 80%, 68%)",rangeLabel:d="Range",barLabel:s="Bar",showLegend:u=!0,labelWidth:p,className:k,onRowClick:v})=>{const C=null!=p?p:90,m=l-o,y=a((r=>(r-o)/m*100),[o,m]),M=r=>{const e=Math.floor(r);return`${e}:${Math.round(60*(r-e)).toString().padStart(2,"0")}`},g=[];for(let r=o;r<=l;r+=n)g.push(r);return e("div",{className:"gantt-chart-container"+(k?` ${k}`:""),children:[u&&r(P,{direction:"horizontal",itemStyle:"line",items:[{label:d,color:c},{label:s,color:i}],className:"gantt-chart-legend"}),e("div",{style:{display:"flex",flexDirection:"row"},children:[e("div",{style:{width:C,flexShrink:0},children:[t.map((e=>r("div",{style:{height:44,display:"flex",alignItems:"center",paddingRight:"0.75rem",fontSize:"0.8125rem",color:"hsl(var(--muted-200))"},children:e.label},e.label))),r("div",{style:{height:32,display:"flex",alignItems:"flex-start",paddingTop:10,fontSize:"0.75rem",color:"hsl(var(--muted-200))"},children:"Time"})]}),e("div",{style:{flex:1,minWidth:0,position:"relative"},children:[g.map((e=>r("div",{style:{position:"absolute",left:`${y(e)}%`,top:0,bottom:32,width:1,backgroundColor:"hsl(var(--muted-50))",pointerEvents:"none"}},e))),t.map((t=>{const o=y(t.rangeStart),l=y(t.rangeEnd)-o,a=y(t.barStart),n=Math.min(t.barEnd,t.rangeEnd),d=y(n)-a,s=t.barEnd>t.rangeEnd,u=y(t.rangeEnd),p=y(t.barEnd)-u,k=16.5,C=y(t.barStart),m=y(t.barEnd),M=Math.max(0,m-C),g=M>0;return e("div",{style:{height:44,position:"relative",cursor:v?"pointer":"default"},onClick:v?r=>v(t,r):void 0,onKeyDown:v?r=>{"Enter"!==r.key&&" "!==r.key||(r.preventDefault(),v(t,r))}:void 0,role:v?"button":void 0,tabIndex:v?0:void 0,children:[r("div",{style:{position:"absolute",left:`${o}%`,width:`${Math.max(l,0)}%`,height:16,top:14,backgroundColor:c,borderRadius:8}}),d>0&&r("div",{style:{position:"absolute",left:`${a}%`,width:`${Math.max(d,0)}%`,height:nr,top:k,backgroundColor:i,borderRadius:s?"5.5px 0 0 5.5px":5.5,zIndex:1}}),s&&p>0&&r("div",{style:{position:"absolute",left:`${u}%`,width:`${Math.max(p,0)}%`,height:nr,top:k,background:`linear-gradient(to right, ${i}, ${h})`,borderRadius:"0 5.5px 5.5px 0",zIndex:1}}),g&&r("div",{style:{position:"absolute",left:`${C}%`,width:`${M}%`,top:k,height:nr,zIndex:2},children:r(_,{content:r(cr,{item:t}),position:"top",className:"gantt-bar-tooltip",maxWidth:280,children:r("div",{className:"gantt-bar-tooltip-hit"})})})]},t.label)})),r("div",{style:{height:32,position:"relative",borderTop:"1px solid hsl(var(--muted-50))"},children:g.map((e=>r("div",{style:{position:"absolute",left:`${y(e)}%`,top:8,transform:"translateX(-50%)",fontSize:11,color:"hsl(var(--muted-200))",whiteSpace:"nowrap"},children:M(e)},e)))})]})]})]})};export{E as BarChart,tr as Chart,ir as GanttChart,q as HeatmapChart,P as Legend,R as LineChart,G as PieChart,ar as StatChart};
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
import "../../charts.css";
|
|
3
|
+
export interface BarChartDataPoint {
|
|
4
|
+
x: string;
|
|
5
|
+
[key: string]: number | string;
|
|
6
|
+
}
|
|
7
|
+
export interface BarSeriesConfig {
|
|
8
|
+
key: string;
|
|
9
|
+
label?: string;
|
|
10
|
+
color: string;
|
|
11
|
+
unit?: string;
|
|
12
|
+
stackId?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface BarChartProps {
|
|
15
|
+
data: BarChartDataPoint[];
|
|
16
|
+
bars: BarSeriesConfig[];
|
|
17
|
+
layout?: "single" | "grouped" | "stacked" | "grouped-stacked";
|
|
18
|
+
orientation?: "vertical" | "horizontal";
|
|
19
|
+
showGrid?: boolean;
|
|
20
|
+
showLegend?: boolean;
|
|
21
|
+
height?: number;
|
|
22
|
+
className?: string;
|
|
23
|
+
onXAxisTickClick?: (value: string | number, event: React.MouseEvent) => void;
|
|
24
|
+
onYAxisTickClick?: (value: string | number, event: React.MouseEvent) => void;
|
|
25
|
+
onBarClick?: (dataPoint: BarChartDataPoint, index: number, dataKey: string, event: React.MouseEvent<SVGElement>) => void;
|
|
26
|
+
}
|
|
27
|
+
export declare const BarChart: ({ data, bars, layout, orientation, showGrid, showLegend, height, className, onXAxisTickClick, onYAxisTickClick, onBarClick, }: BarChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import "../../charts.css";
|
|
2
|
+
import type { BarChartDataPoint } from "../bar/chart-bar";
|
|
3
|
+
import type { LineChartDataPoint } from "../line/chart-line";
|
|
4
|
+
import type { PieChartDataPoint } from "../pie/chart-pie";
|
|
5
|
+
import type { HeatmapData } from "../heatmap/chart-heatmap";
|
|
6
|
+
export type ChartKPI = {
|
|
7
|
+
label: string;
|
|
8
|
+
value: string | number;
|
|
9
|
+
};
|
|
10
|
+
type BaseChartData = {
|
|
11
|
+
bar: BarChartDataPoint[];
|
|
12
|
+
line: LineChartDataPoint[];
|
|
13
|
+
pie: PieChartDataPoint[];
|
|
14
|
+
heatmap: HeatmapData;
|
|
15
|
+
};
|
|
16
|
+
export type ChartType = keyof BaseChartData;
|
|
17
|
+
interface BaseChartProps {
|
|
18
|
+
type: ChartType;
|
|
19
|
+
title?: string;
|
|
20
|
+
info?: string;
|
|
21
|
+
description?: string;
|
|
22
|
+
kpis?: ChartKPI[];
|
|
23
|
+
height?: number;
|
|
24
|
+
className?: string;
|
|
25
|
+
}
|
|
26
|
+
type BarChartSpecificProps = {
|
|
27
|
+
layout?: "single" | "grouped" | "stacked" | "grouped-stacked";
|
|
28
|
+
orientation?: "vertical" | "horizontal";
|
|
29
|
+
};
|
|
30
|
+
type ChartTypeSpecificProps<T extends ChartType> = T extends "bar" ? BarChartSpecificProps : Record<string, never>;
|
|
31
|
+
export type ChartProps<T extends ChartType> = BaseChartProps & {
|
|
32
|
+
data: BaseChartData[T];
|
|
33
|
+
} & ChartTypeSpecificProps<T>;
|
|
34
|
+
export declare const Chart: <T extends ChartType>({ type, title, info, description, kpis, data, height, className, ...chartSpecificProps }: ChartProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
import "../../charts.css";
|
|
3
|
+
export interface GanttDataPoint {
|
|
4
|
+
label: string;
|
|
5
|
+
rangeStart: number;
|
|
6
|
+
rangeEnd: number;
|
|
7
|
+
barStart: number;
|
|
8
|
+
barEnd: number;
|
|
9
|
+
}
|
|
10
|
+
export interface GanttChartProps {
|
|
11
|
+
data: GanttDataPoint[];
|
|
12
|
+
minTime?: number;
|
|
13
|
+
maxTime?: number;
|
|
14
|
+
tickInterval?: number;
|
|
15
|
+
rangeColor?: string;
|
|
16
|
+
barColor?: string;
|
|
17
|
+
overflowColor?: string;
|
|
18
|
+
rangeLabel?: string;
|
|
19
|
+
barLabel?: string;
|
|
20
|
+
showLegend?: boolean;
|
|
21
|
+
labelWidth?: number;
|
|
22
|
+
className?: string;
|
|
23
|
+
onRowClick?: (dataPoint: GanttDataPoint, event: React.MouseEvent<HTMLDivElement>) => void;
|
|
24
|
+
}
|
|
25
|
+
export declare const GanttChart: ({ data, minTime, maxTime, tickInterval, rangeColor, barColor, overflowColor, rangeLabel, barLabel, showLegend, labelWidth: labelWidthProp, className, onRowClick, }: GanttChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "../../charts.css";
|
|
3
|
+
export interface HeatmapData {
|
|
4
|
+
rows: string[];
|
|
5
|
+
columns: string[];
|
|
6
|
+
matrix: number[][];
|
|
7
|
+
}
|
|
8
|
+
export interface HeatmapChartProps {
|
|
9
|
+
data: HeatmapData;
|
|
10
|
+
showValue?: boolean;
|
|
11
|
+
showPercentage?: boolean;
|
|
12
|
+
height?: string | number;
|
|
13
|
+
className?: string;
|
|
14
|
+
onRowClick?: (row: string, event: React.MouseEvent<HTMLDivElement>) => void;
|
|
15
|
+
onColumnClick?: (column: string, event: React.MouseEvent<HTMLDivElement>) => void;
|
|
16
|
+
onCellClick?: (row: string, column: string, value: number, event: React.MouseEvent<HTMLDivElement>) => void;
|
|
17
|
+
}
|
|
18
|
+
export declare const HeatmapChart: ({ data, showValue, showPercentage, height, className, onRowClick, onColumnClick, onCellClick, }: HeatmapChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import "./legend.css";
|
|
2
|
+
export type LegendStyle = "line" | "dashed-line" | "rectangle" | "circle";
|
|
3
|
+
export type LegendItem = {
|
|
4
|
+
label: string;
|
|
5
|
+
color: string;
|
|
6
|
+
onClick?: () => void;
|
|
7
|
+
style?: LegendStyle;
|
|
8
|
+
};
|
|
9
|
+
export type LegendProps = {
|
|
10
|
+
items: LegendItem[];
|
|
11
|
+
itemStyle?: LegendStyle;
|
|
12
|
+
direction?: "horizontal" | "vertical";
|
|
13
|
+
ariaLabel?: string;
|
|
14
|
+
className?: string;
|
|
15
|
+
itemClassName?: string;
|
|
16
|
+
labelClassName?: string;
|
|
17
|
+
colorClassName?: string;
|
|
18
|
+
};
|
|
19
|
+
export declare const Legend: ({ items, itemStyle, direction, ariaLabel, className, itemClassName, labelClassName, colorClassName, }: LegendProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
import "../../charts.css";
|
|
3
|
+
export interface LineChartDataPoint {
|
|
4
|
+
x: string;
|
|
5
|
+
[key: string]: number | string | undefined;
|
|
6
|
+
}
|
|
7
|
+
export interface LineSeriesConfig {
|
|
8
|
+
key: string;
|
|
9
|
+
label?: string;
|
|
10
|
+
color: string;
|
|
11
|
+
dashed?: boolean;
|
|
12
|
+
unit?: string;
|
|
13
|
+
lineWidth?: number;
|
|
14
|
+
}
|
|
15
|
+
export interface LineChartProps {
|
|
16
|
+
data: LineChartDataPoint[];
|
|
17
|
+
lines: LineSeriesConfig[];
|
|
18
|
+
showGrid?: boolean;
|
|
19
|
+
showLegend?: boolean;
|
|
20
|
+
showGradient?: boolean;
|
|
21
|
+
height?: number;
|
|
22
|
+
showTooltipLabel?: boolean;
|
|
23
|
+
className?: string;
|
|
24
|
+
onXAxisTickClick?: (value: string | number, event: React.MouseEvent) => void;
|
|
25
|
+
onYAxisTickClick?: (value: string | number, event: React.MouseEvent) => void;
|
|
26
|
+
onDataPointClick?: (point: LineChartDataPoint, index: number, dataKey: string, event: React.MouseEvent<SVGCircleElement>) => void;
|
|
27
|
+
}
|
|
28
|
+
export declare const LineChart: ({ data, lines, showGrid, showLegend, showGradient, height, showTooltipLabel, className, onXAxisTickClick, onYAxisTickClick, onDataPointClick, }: LineChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
import "../../charts.css";
|
|
3
|
+
export interface PieChartDataPoint {
|
|
4
|
+
label: string;
|
|
5
|
+
value: number;
|
|
6
|
+
color?: string;
|
|
7
|
+
unit?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface PieChartProps {
|
|
10
|
+
data: PieChartDataPoint[];
|
|
11
|
+
variant?: "pie" | "donut";
|
|
12
|
+
showLegend?: boolean;
|
|
13
|
+
height?: number;
|
|
14
|
+
showLabels?: boolean;
|
|
15
|
+
showPercentageInTooltip?: boolean;
|
|
16
|
+
className?: string;
|
|
17
|
+
onSliceClick?: (dataPoint: PieChartDataPoint, index: number, event: React.MouseEvent<SVGElement>) => void;
|
|
18
|
+
}
|
|
19
|
+
export declare const PieChart: ({ data, variant, showLegend, height, showLabels, showPercentageInTooltip, className, onSliceClick, }: PieChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Minimal tick props passed by Recharts to XAxis/YAxis `tick` render functions.
|
|
3
|
+
* Recharts may send more fields; we only use these when forwarding to custom ticks.
|
|
4
|
+
*/
|
|
5
|
+
export type RechartsAxisTickProps = {
|
|
6
|
+
x: number;
|
|
7
|
+
y: number;
|
|
8
|
+
payload: {
|
|
9
|
+
value: string | number;
|
|
10
|
+
};
|
|
11
|
+
} & object;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import "../../charts.css";
|
|
2
|
+
export interface StatChartDataPoint {
|
|
3
|
+
label: string;
|
|
4
|
+
value: number;
|
|
5
|
+
total?: number;
|
|
6
|
+
}
|
|
7
|
+
export interface StatChartProps {
|
|
8
|
+
data: StatChartDataPoint[];
|
|
9
|
+
compareData?: StatChartDataPoint[];
|
|
10
|
+
primaryColor?: string;
|
|
11
|
+
primaryLabel?: string;
|
|
12
|
+
compareColor?: string;
|
|
13
|
+
compareLabel?: string;
|
|
14
|
+
trackColor?: string;
|
|
15
|
+
compareTrackColor?: string;
|
|
16
|
+
unit?: string;
|
|
17
|
+
showDifference?: boolean;
|
|
18
|
+
height?: number;
|
|
19
|
+
className?: string;
|
|
20
|
+
}
|
|
21
|
+
export declare const StatChart: ({ data, compareData, primaryColor, primaryLabel, compareColor, compareLabel, trackColor, compareTrackColor, unit, showDifference, height, className, }: StatChartProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type IconType = "alert" | "align-center" | "align-left" | "align-right" | "arrow-down" | "arrow-down-narrow-wide" | "arrow-down-wide-narrow" | "arrow-left" | "arrow-right" | "arrow-up" | "arrow-up-narrow-wide" | "arrow-up-wide-narrow" | "bell" | "bell-ring" | "bold" | "building" | "calendar" | "calendar-check" | "calendar-clock" | "calendar-cog" | "calendar-plus" | "calendar-sync" | "camera" | "check" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "chevrons-x" | "chevrons-y" | "clock" | "clock-alert" | "close" | "coffee" | "comment" | "compact-view" | "copy" | "cut" | "dashboard" | "dots-horizontal" | "dots-vertical" | "double-chevron-left" | "double-chevron-right" | "download" | "drag-handle" | "edit" | "envelope" | "external-link" | "eye" | "eye-off" | "file" | "file-code" | "filter" | "filter-plus" | "flag" | "forbidden" | "grid" | "hint" | "hospital" | "home" | "image" | "inbox" | "info" | "italic" | "layout" | "library" | "link" | "list" | "list-ol" | "list-ul" | "log-in" | "log-out" | "maximize" | "message" | "minimize" | "minus" | "note" | "paste" | "phone" | "plus" | "quote" | "redo" | "refresh" | "relaxed-view" | "search" | "send" | "settings" | "shuffle" | "stats" | "strikethrough" | "swap" | "swap-vertical" | "trash" | "underline" | "undo" | "upload" | "user" | "user-check" | "users" | "wand" | "zoom-in" | "zoom-out" | "sort" | "sun" | "moon" | "tool" | "hook" | "component" | "arrow-up-right" | "chart" | "star" | "sparkles" | "terminal" | "shield" | "code";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @returns A new list with only the first occurrence of each value (uses `Set`, reference equality for objects).
|
|
3
|
+
*/
|
|
4
|
+
export declare function unique<T>(array: readonly T[]): T[];
|
|
5
|
+
/**
|
|
6
|
+
* @param key - Returns a key used to de-dupe; first item wins.
|
|
7
|
+
*/
|
|
8
|
+
export declare function uniqueBy<T, K extends string | number | boolean | bigint | null | undefined>(array: readonly T[], key: (item: T) => K): T[];
|
|
9
|
+
/**
|
|
10
|
+
* @returns Record: each key maps to items in that group.
|
|
11
|
+
*/
|
|
12
|
+
export declare function groupBy<T, K extends string | number | symbol>(array: readonly T[], key: (item: T) => K): Record<K, T[]>;
|
|
13
|
+
/**
|
|
14
|
+
* @returns Tuple `[passing, failing]`.
|
|
15
|
+
*/
|
|
16
|
+
export declare function partition<T>(array: readonly T[], predicate: (item: T) => boolean): [T[], T[]];
|
|
17
|
+
/**
|
|
18
|
+
* Non-mutating sort by a string or number key. `undefined` sorts last in ascending order.
|
|
19
|
+
*/
|
|
20
|
+
export declare function sortBy<T>(array: readonly T[], key: (item: T) => string | number | undefined, order?: "asc" | "desc"): T[];
|
|
21
|
+
/**
|
|
22
|
+
* If `end` is omitted, returns `0..n-1`. Otherwise returns numbers from `start` (inclusive) to `end` (exclusive) with `step`.
|
|
23
|
+
*/
|
|
24
|
+
export declare function range(nOrStart: number, end?: number, step?: number): number[];
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolves after `ms` (or immediately if `ms <= 0`).
|
|
3
|
+
*/
|
|
4
|
+
export declare function sleep(ms: number): Promise<void>;
|
|
5
|
+
export type DebouncedFunction<T extends (...args: never[]) => unknown> = ((...args: Parameters<T>) => void) & {
|
|
6
|
+
cancel: () => void;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Trailing debounce with `cancel()`.
|
|
10
|
+
*/
|
|
11
|
+
export declare function debounce<T extends (...args: never[]) => unknown>(func: T, waitMs: number): DebouncedFunction<T>;
|
|
12
|
+
export type ThrottledFunction<T extends (...args: never[]) => unknown> = ((...args: Parameters<T>) => void) & {
|
|
13
|
+
cancel: () => void;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Throttle with trailing scheduling; `cancel()` clears a pending run.
|
|
17
|
+
*/
|
|
18
|
+
export declare function throttle<T extends (...args: never[]) => unknown>(func: T, waitMs: number): ThrottledFunction<T>;
|
|
19
|
+
export type RetryOptions = {
|
|
20
|
+
attempts: number;
|
|
21
|
+
delay?: number;
|
|
22
|
+
backoff?: number;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Retry async work with optional delay and multiplicative backoff between attempts.
|
|
26
|
+
*/
|
|
27
|
+
export declare function retry<T>(fn: () => Promise<T>, options: RetryOptions): Promise<T>;
|
|
28
|
+
/**
|
|
29
|
+
* Reject with `Error(message)` if `ms` elapses before `promise` settles.
|
|
30
|
+
* Does not cancel the underlying work.
|
|
31
|
+
*/
|
|
32
|
+
export declare function withTimeout<T>(promise: Promise<T>, ms: number, message?: string): Promise<T>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type ClassValue } from "clsx";
|
|
2
|
+
/**
|
|
3
|
+
* Tailwind-friendly `className` combiner. Uses `clsx` for conditional lists and
|
|
4
|
+
* `tailwind-merge` to drop conflicting utility classes.
|
|
5
|
+
*
|
|
6
|
+
* @param inputs - `clsx` input list (strings, objects, arrays, falsy to omit).
|
|
7
|
+
* @returns A single merged `class` string.
|
|
8
|
+
*/
|
|
9
|
+
export declare function cn(...inputs: ClassValue[]): string;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Human-readable file size; binary 1024 scale.
|
|
3
|
+
*/
|
|
4
|
+
export declare function formatBytes(bytes: number, decimals?: number): string;
|
|
5
|
+
/**
|
|
6
|
+
* `Intl.NumberFormat` wrapper. Non-finite returns `String(n)`.
|
|
7
|
+
*/
|
|
8
|
+
export declare function formatNumber(n: number, options?: Intl.NumberFormatOptions, locale?: string): string;
|
|
9
|
+
/**
|
|
10
|
+
* @param value - `Date` or ms timestamp; invalid date yields empty string
|
|
11
|
+
*/
|
|
12
|
+
export declare function formatDate(value: Date | number, options?: Intl.DateTimeFormatOptions, locale?: string): string;
|
|
13
|
+
/**
|
|
14
|
+
* `Intl.RelativeTimeFormat` for value vs base. Uses a coarse best unit.
|
|
15
|
+
*/
|
|
16
|
+
export declare function formatRelative(value: Date | number, base?: Date | number, locale?: string): string;
|
|
17
|
+
/**
|
|
18
|
+
* Same local calendar day.
|
|
19
|
+
*/
|
|
20
|
+
export declare function isSameDay(a: Date, b: Date): boolean;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @param n - Value
|
|
3
|
+
* @param min - Inclusive min (swapped with max if `min > max`)
|
|
4
|
+
* @param max - Inclusive max
|
|
5
|
+
*/
|
|
6
|
+
export declare function clamp(n: number, min: number, max: number): number;
|
|
7
|
+
/**
|
|
8
|
+
* Round to a number of fraction digits.
|
|
9
|
+
*/
|
|
10
|
+
export declare function round(n: number, decimals?: number): number;
|
|
11
|
+
/**
|
|
12
|
+
* Linear interpolation: `a + (b - a) * t`.
|
|
13
|
+
*/
|
|
14
|
+
export declare function lerp(a: number, b: number, t: number): number;
|
|
15
|
+
/**
|
|
16
|
+
* Inclusive or exclusive (open interval) check between min and max.
|
|
17
|
+
*/
|
|
18
|
+
export declare function inRange(n: number, min: number, max: number, exclusive?: boolean): boolean;
|
|
19
|
+
/**
|
|
20
|
+
* safe `toFixed` for non-finite numbers: returns `fallback` instead of `"NaN"`.
|
|
21
|
+
*/
|
|
22
|
+
export declare function toFixedSafe(n: number, fractionDigits?: number, fallback?: string): string;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @param object - Source object.
|
|
3
|
+
* @param keys - Keys to keep on the new object.
|
|
4
|
+
* @returns A new object with only the given keys.
|
|
5
|
+
*/
|
|
6
|
+
export declare function pick<T extends object, K extends keyof T>(object: T, keys: readonly K[]): Pick<T, K>;
|
|
7
|
+
/**
|
|
8
|
+
* @param object - Source object.
|
|
9
|
+
* @param keys - Keys to remove (shallow copy without these keys).
|
|
10
|
+
* @returns A new object without the listed keys.
|
|
11
|
+
*/
|
|
12
|
+
export declare function omit<T extends object, K extends keyof T>(object: T, keys: readonly K[]): Omit<T, K>;
|
|
13
|
+
/**
|
|
14
|
+
* @param value - Any value to test.
|
|
15
|
+
* @returns `true` if `value` is a plain object (including `{}`, not `null`, not a class instance).
|
|
16
|
+
*/
|
|
17
|
+
export declare function isPlainObject(value: unknown): value is Record<string, unknown>;
|
|
18
|
+
/**
|
|
19
|
+
* Shallow merge: later keys overwrite earlier ones. Arrays and nested objects
|
|
20
|
+
* are not deeply merged; use `deepMerge` for plain object trees.
|
|
21
|
+
*
|
|
22
|
+
* @param target - First object; result is a shallow copy of this plus sources.
|
|
23
|
+
* @param sources - Any number of partial objects to merge in order.
|
|
24
|
+
*/
|
|
25
|
+
export declare function merge<T extends object>(target: T, ...sources: Array<Partial<T> | object>): T;
|
|
26
|
+
/**
|
|
27
|
+
* Deep-merge plain objects only. Arrays are treated as values (replaced).
|
|
28
|
+
* `undefined` in the source does not clear an existing value.
|
|
29
|
+
*/
|
|
30
|
+
export declare function deepMerge<T extends object>(target: T, source: object): T;
|
|
31
|
+
/**
|
|
32
|
+
* @param a - First value.
|
|
33
|
+
* @param b - Second value.
|
|
34
|
+
* @returns `true` if both are `Object.is` or share same own enumerable keys with `Object.is` per key.
|
|
35
|
+
*/
|
|
36
|
+
export declare function isShallowEqual(a: unknown, b: unknown): boolean;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @returns First character uppercased, rest unchanged (empty string unchanged).
|
|
3
|
+
*/
|
|
4
|
+
export declare function capitalize(s: string): string;
|
|
5
|
+
/**
|
|
6
|
+
* Title-case by uppercasing the first char of each whitespace-separated word.
|
|
7
|
+
*/
|
|
8
|
+
export declare function toTitleCase(s: string): string;
|
|
9
|
+
/**
|
|
10
|
+
* @param maxLength - Max length of result string including `suffix` when truncating.
|
|
11
|
+
*/
|
|
12
|
+
export declare function truncate(s: string, maxLength: number, suffix?: string): string;
|
|
13
|
+
/**
|
|
14
|
+
* URL-ish slug: lowercase, trim, spaces/underscores to hyphens, strip non a-z0-9 hyphen.
|
|
15
|
+
*/
|
|
16
|
+
export declare function slugify(s: string): string;
|
|
17
|
+
/**
|
|
18
|
+
* `foo_bar` or `foo bar` to `fooBar`.
|
|
19
|
+
*/
|
|
20
|
+
export declare function camelCase(s: string): string;
|
|
21
|
+
/**
|
|
22
|
+
* `fooBar` or `foo bar` to `foo-bar`.
|
|
23
|
+
*/
|
|
24
|
+
export declare function kebabCase(s: string): string;
|