@jcsoftdev/ui 0.1.7 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +114 -0
- package/README.md +28 -7
- package/THIRD_PARTY_NOTICES.md +66 -0
- package/dist/ai/attachment/attachment.d.ts +5 -1
- package/dist/ai/attachment/attachment.js +18 -7
- package/dist/ai/chain-of-thought/chain-of-thought.d.ts +5 -1
- package/dist/ai/chain-of-thought/chain-of-thought.js +61 -39
- package/dist/ai/chat-list/chat-list.d.ts +5 -1
- package/dist/ai/chat-list/chat-list.js +98 -59
- package/dist/ai/chat-message/chat-message.d.ts +5 -1
- package/dist/ai/chat-message/chat-message.js +31 -11
- package/dist/ai/code-block/code-block.d.ts +5 -1
- package/dist/ai/code-block/code-block.js +37 -19
- package/dist/ai/conversation/conversation.d.ts +5 -1
- package/dist/ai/conversation/conversation.js +23 -5
- package/dist/ai/internal/disclosure.d.ts +3 -1
- package/dist/ai/internal/disclosure.js +7 -3
- package/dist/ai/loader/loader.d.ts +5 -1
- package/dist/ai/loader/loader.js +6 -4
- package/dist/ai/markdown/markdown.d.ts +5 -1
- package/dist/ai/markdown/markdown.js +86 -56
- package/dist/ai/message-actions/message-actions.js +1 -1
- package/dist/ai/prompt-input/prompt-input.d.ts +5 -1
- package/dist/ai/prompt-input/prompt-input.js +73 -41
- package/dist/ai/source/source.d.ts +5 -1
- package/dist/ai/source/source.js +35 -8
- package/dist/ai/tool-call/tool-call.d.ts +5 -1
- package/dist/ai/tool-call/tool-call.js +43 -21
- package/dist/atoms/avatar/avatar.d.ts +7 -3
- package/dist/atoms/avatar/avatar.js +54 -7
- package/dist/atoms/avatar/index.d.ts +1 -1
- package/dist/atoms/avatar-group/avatar-group.d.ts +3 -6
- package/dist/atoms/avatar-group/avatar-group.js +8 -2
- package/dist/atoms/big-date/big-date.js +2 -2
- package/dist/atoms/button/button.d.ts +19 -1
- package/dist/atoms/button/button.js +26 -14
- package/dist/atoms/button/index.d.ts +1 -1
- package/dist/atoms/button/index.js +8 -2
- package/dist/atoms/checkbox/checkbox.d.ts +16 -4
- package/dist/atoms/checkbox/checkbox.js +103 -15
- package/dist/atoms/checkbox/index.d.ts +1 -1
- package/dist/atoms/chip/chip.d.ts +2 -0
- package/dist/atoms/chip/chip.js +5 -4
- package/dist/atoms/chip/index.d.ts +1 -1
- package/dist/atoms/chip/index.js +3 -2
- package/dist/atoms/icon/icon-map.d.ts +39 -39
- package/dist/atoms/icon/icon-map.js +1 -1
- package/dist/atoms/icon/icon.d.ts +5 -6
- package/dist/atoms/icon/icon.js +3 -3
- package/dist/atoms/internal/status-icons.js +1 -1
- package/dist/atoms/led/index.d.ts +1 -1
- package/dist/atoms/led/led.d.ts +7 -3
- package/dist/atoms/led/led.js +25 -11
- package/dist/atoms/progress/index.d.ts +1 -1
- package/dist/atoms/progress/progress.d.ts +8 -3
- package/dist/atoms/progress/progress.js +38 -10
- package/dist/atoms/radio-group/index.d.ts +1 -1
- package/dist/atoms/radio-group/radio-group-primitive.d.ts +24 -0
- package/dist/atoms/radio-group/radio-group-primitive.js +156 -0
- package/dist/atoms/radio-group/radio-group.d.ts +8 -4
- package/dist/atoms/radio-group/radio-group.js +34 -11
- package/dist/atoms/status-dot/index.d.ts +1 -1
- package/dist/atoms/status-dot/status-dot.d.ts +7 -3
- package/dist/atoms/status-dot/status-dot.js +26 -16
- package/dist/atoms/status-pill/index.d.ts +1 -1
- package/dist/atoms/status-pill/status-pill.d.ts +7 -3
- package/dist/atoms/status-pill/status-pill.js +13 -4
- package/dist/atoms/switch/index.d.ts +1 -1
- package/dist/atoms/switch/switch.d.ts +15 -4
- package/dist/atoms/switch/switch.js +90 -14
- package/dist/atoms/trend-chip/index.d.ts +1 -1
- package/dist/atoms/trend-chip/trend-chip.d.ts +5 -1
- package/dist/atoms/trend-chip/trend-chip.js +13 -4
- package/dist/brand/logo-forge.js +1 -1
- package/dist/calendar/day-chip/day-chip.d.ts +9 -2
- package/dist/calendar/day-chip/day-chip.js +9 -6
- package/dist/calendar/day-chip/index.d.ts +1 -1
- package/dist/calendar/day-chip/index.js +3 -2
- package/dist/calendar/event-block/event-block.d.ts +10 -3
- package/dist/calendar/event-block/event-block.js +23 -10
- package/dist/calendar/event-block/index.d.ts +1 -1
- package/dist/calendar/event-block/index.js +6 -2
- package/dist/calendar/month-view/index.d.ts +1 -1
- package/dist/calendar/month-view/month-view.d.ts +5 -1
- package/dist/calendar/month-view/month-view.js +56 -30
- package/dist/calendar/timeline-view/index.d.ts +1 -1
- package/dist/calendar/timeline-view/timeline-view.d.ts +5 -1
- package/dist/calendar/timeline-view/timeline-view.js +21 -7
- package/dist/calendar/week-view/index.d.ts +1 -1
- package/dist/calendar/week-view/week-view.d.ts +5 -1
- package/dist/calendar/week-view/week-view.js +144 -113
- package/dist/charts/bar-chart/bar-race-chart.js +4 -4
- package/dist/charts/bubble-map/bubble-map.js +1 -1
- package/dist/charts/bullet-chart/bullet-chart.js +2 -2
- package/dist/charts/candlestick-chart/candlestick-chart.js +3 -3
- package/dist/charts/chart-grid/chart-grid.js +2 -2
- package/dist/charts/chord-chart/chord-chart.js +1 -1
- package/dist/charts/choropleth-map/choropleth-map.js +1 -1
- package/dist/charts/core/axes.js +3 -3
- package/dist/charts/core/breadcrumb.js +1 -1
- package/dist/charts/core/cartesian/annotations.js +3 -3
- package/dist/charts/core/cartesian/cartesian-chart.js +1 -1
- package/dist/charts/core/cartesian/category-group-axis.js +1 -1
- package/dist/charts/core/cartesian/ink-layer.js +1 -1
- package/dist/charts/core/cartesian/marks.js +1 -1
- package/dist/charts/core/chart-states.js +2 -2
- package/dist/charts/core/distribution/layout.js +1 -1
- package/dist/charts/core/distribution/marks.js +2 -2
- package/dist/charts/core/distribution/xy-points.js +4 -4
- package/dist/charts/core/export-menu.js +1 -1
- package/dist/charts/core/legend.js +2 -2
- package/dist/charts/core/tooltip.d.ts +5 -1
- package/dist/charts/core/tooltip.js +18 -8
- package/dist/charts/crossfilter/crossfilter.js +4 -4
- package/dist/charts/donut-chart/donut-chart.js +78 -32
- package/dist/charts/dumbbell-chart/dumbbell-chart.js +5 -5
- package/dist/charts/fill-gauge-chart/fill-gauge-chart.js +1 -1
- package/dist/charts/funnel-chart/funnel-chart.js +6 -6
- package/dist/charts/gantt-chart/gantt-chart.js +7 -7
- package/dist/charts/gantt-chart/gantt-marks.js +5 -5
- package/dist/charts/gauge-chart/gauge-chart.js +4 -4
- package/dist/charts/globe-chart/globe-chart.js +1 -1
- package/dist/charts/heatmap-chart/heatmap-grid.js +7 -7
- package/dist/charts/hierarchy-morph/hierarchy-morph.js +3 -3
- package/dist/charts/histogram/histogram.js +1 -1
- package/dist/charts/icicle-chart/icicle-chart.js +2 -2
- package/dist/charts/isotype-rows/isotype-rows.js +3 -3
- package/dist/charts/lollipop-chart/lollipop-chart.js +1 -1
- package/dist/charts/maps/geo/map-data-table.js +3 -3
- package/dist/charts/maps/geo/map-legend.js +5 -5
- package/dist/charts/maps/geo/map-viewport.js +1 -1
- package/dist/charts/parliament-chart/parliament-chart.js +2 -2
- package/dist/charts/pictogram-chart/pictogram-chart.js +1 -1
- package/dist/charts/polar-area-chart/polar-area-chart.js +2 -2
- package/dist/charts/progress-units/progress-units.js +1 -1
- package/dist/charts/radar-chart/radar-chart.js +1 -1
- package/dist/charts/radial-bar-chart/radial-bar-chart.js +1 -1
- package/dist/charts/sankey-chart/sankey-chart.js +5 -5
- package/dist/charts/slope-chart/slope-chart.js +1 -1
- package/dist/charts/sparkline/sparkline.js +1 -1
- package/dist/charts/stock-chart/stock-chart.js +1 -1
- package/dist/charts/stock-chart/stock-drawing-layer.js +4 -4
- package/dist/charts/stock-chart/stock-plot.js +3 -3
- package/dist/charts/stream-graph/stream-graph.js +1 -1
- package/dist/charts/sunburst-chart/sunburst-chart.js +1 -1
- package/dist/charts/timeline-chart/timeline-chart.js +3 -3
- package/dist/charts/tree-chart/tree-card.js +6 -6
- package/dist/charts/tree-chart/tree-chart.js +5 -5
- package/dist/charts/treemap-chart/treemap-chart.js +3 -3
- package/dist/charts/waterfall-chart/waterfall-chart.js +2 -2
- package/dist/containers/action-bar/action-bar.d.ts +5 -1
- package/dist/containers/action-bar/action-bar.js +26 -8
- package/dist/containers/action-bar/index.d.ts +1 -1
- package/dist/containers/banner/banner.d.ts +5 -1
- package/dist/containers/banner/banner.js +20 -5
- package/dist/containers/card/card.js +1 -1
- package/dist/containers/carousel/carousel.d.ts +6 -2
- package/dist/containers/carousel/carousel.js +38 -20
- package/dist/containers/carousel/index.d.ts +1 -1
- package/dist/containers/comment/comment.js +1 -1
- package/dist/containers/confirm-action/confirm-action.d.ts +5 -1
- package/dist/containers/confirm-action/confirm-action.js +30 -9
- package/dist/containers/data-grid/chart-panel.js +4 -4
- package/dist/containers/data-grid/column-menu.js +12 -12
- package/dist/containers/data-grid/data-grid.demos.js +13 -13
- package/dist/containers/data-grid/data-grid.js +37 -37
- package/dist/containers/data-grid/data-grid.samples.js +1 -1
- package/dist/containers/data-grid/filter-builder-editor.js +6 -6
- package/dist/containers/data-grid/formula-bar.js +4 -4
- package/dist/containers/data-grid/grid-toolbar.js +6 -6
- package/dist/containers/data-grid/spreadsheet.demos.d.ts +1 -1
- package/dist/containers/data-grid/spreadsheet.demos.js +1 -1
- package/dist/containers/data-grid/tool-panel.js +11 -11
- package/dist/containers/description-list/description-list.js +1 -1
- package/dist/containers/facts/facts.js +2 -2
- package/dist/containers/file-tree/file-tree.d.ts +5 -1
- package/dist/containers/file-tree/file-tree.js +81 -57
- package/dist/containers/file-tree/index.d.ts +1 -1
- package/dist/containers/generic-row/generic-row.js +3 -3
- package/dist/containers/hbars/hbars.js +5 -5
- package/dist/containers/item-card-group/index.d.ts +1 -1
- package/dist/containers/item-card-group/item-card-group.d.ts +5 -1
- package/dist/containers/item-card-group/item-card-group.js +88 -43
- package/dist/containers/kanban/index.d.ts +1 -1
- package/dist/containers/kanban/kanban.d.ts +5 -1
- package/dist/containers/kanban/kanban.js +74 -23
- package/dist/containers/kpi/kpi.d.ts +7 -4
- package/dist/containers/kpi/kpi.js +21 -7
- package/dist/containers/kpi-group/index.d.ts +1 -1
- package/dist/containers/kpi-group/kpi-group.d.ts +5 -1
- package/dist/containers/kpi-group/kpi-group.js +55 -27
- package/dist/containers/page-header/page-header.js +2 -2
- package/dist/containers/responsive-list/responsive-list.d.ts +5 -1
- package/dist/containers/responsive-list/responsive-list.js +83 -37
- package/dist/containers/settings-layout/settings-layout.js +1 -1
- package/dist/containers/settings-row/settings-row.d.ts +5 -1
- package/dist/containers/settings-row/settings-row.js +7 -5
- package/dist/containers/table/table.js +5 -5
- package/dist/containers/timeline/index.d.ts +1 -1
- package/dist/containers/timeline/timeline.d.ts +5 -1
- package/dist/containers/timeline/timeline.js +65 -14
- package/dist/dashboards/layout.js +2 -2
- package/dist/forms/accent-picker/accent-picker.d.ts +7 -4
- package/dist/forms/accent-picker/accent-picker.js +13 -6
- package/dist/forms/accent-picker/index.d.ts +1 -1
- package/dist/forms/checkbox-button-group/checkbox-button-group.d.ts +6 -2
- package/dist/forms/checkbox-button-group/checkbox-button-group.js +12 -2
- package/dist/forms/checkbox-button-group/index.d.ts +1 -1
- package/dist/forms/dropzone/dropzone.d.ts +5 -1
- package/dist/forms/dropzone/dropzone.js +26 -6
- package/dist/forms/dropzone/index.d.ts +1 -1
- package/dist/forms/emoji-picker/emoji-picker.d.ts +5 -1
- package/dist/forms/emoji-picker/emoji-picker.js +55 -24
- package/dist/forms/emoji-picker/index.d.ts +1 -1
- package/dist/forms/emoji-reaction-button/emoji-reaction-button.d.ts +9 -2
- package/dist/forms/emoji-reaction-button/emoji-reaction-button.js +24 -10
- package/dist/forms/emoji-reaction-button/index.d.ts +1 -1
- package/dist/forms/field/field.d.ts +7 -4
- package/dist/forms/field/field.js +31 -8
- package/dist/forms/field/index.d.ts +1 -1
- package/dist/forms/inline-select/inline-select.js +1 -1
- package/dist/forms/input-icon/index.d.ts +1 -1
- package/dist/forms/input-icon/input-icon.d.ts +6 -2
- package/dist/forms/input-icon/input-icon.js +7 -4
- package/dist/forms/internal/button-option.d.ts +4 -1
- package/dist/forms/internal/button-option.js +13 -5
- package/dist/forms/native-select/index.d.ts +1 -1
- package/dist/forms/native-select/native-select.d.ts +5 -1
- package/dist/forms/native-select/native-select.js +8 -3
- package/dist/forms/number-stepper/index.d.ts +1 -1
- package/dist/forms/number-stepper/index.js +3 -1
- package/dist/forms/number-stepper/number-stepper.d.ts +5 -1
- package/dist/forms/number-stepper/number-stepper.js +17 -5
- package/dist/forms/pin-input/index.d.ts +1 -1
- package/dist/forms/pin-input/pin-input.d.ts +5 -1
- package/dist/forms/pin-input/pin-input.js +52 -34
- package/dist/forms/radio-button-group/index.d.ts +1 -1
- package/dist/forms/radio-button-group/radio-button-group.d.ts +6 -2
- package/dist/forms/radio-button-group/radio-button-group.js +7 -2
- package/dist/forms/rating/index.d.ts +1 -1
- package/dist/forms/rating/rating.d.ts +5 -1
- package/dist/forms/rating/rating.js +23 -8
- package/dist/forms/select/select.js +1 -1
- package/dist/forms/slider/index.d.ts +1 -1
- package/dist/forms/slider/slider.d.ts +4 -0
- package/dist/forms/slider/slider.js +45 -8
- package/dist/i18n/strings.d.ts +3 -0
- package/dist/i18n/strings.js +4 -2
- package/dist/icons/alert-triangle.d.ts +1 -0
- package/dist/icons/alert-triangle.js +4 -0
- package/dist/icons/archive.d.ts +2 -0
- package/dist/icons/archive.js +12 -0
- package/dist/icons/armchair.d.ts +2 -0
- package/dist/icons/armchair.js +13 -0
- package/dist/icons/arrow-down-right.d.ts +2 -0
- package/dist/icons/arrow-down-right.js +11 -0
- package/dist/icons/arrow-down-to-line.d.ts +2 -0
- package/dist/icons/arrow-down-to-line.js +12 -0
- package/dist/icons/arrow-down.d.ts +2 -0
- package/dist/icons/arrow-down.js +11 -0
- package/dist/icons/arrow-left-to-line.d.ts +2 -0
- package/dist/icons/arrow-left-to-line.js +12 -0
- package/dist/icons/arrow-left.d.ts +2 -0
- package/dist/icons/arrow-left.js +11 -0
- package/dist/icons/arrow-right-to-line.d.ts +2 -0
- package/dist/icons/arrow-right-to-line.js +12 -0
- package/dist/icons/arrow-right.d.ts +2 -0
- package/dist/icons/arrow-right.js +11 -0
- package/dist/icons/arrow-up-from-line.d.ts +2 -0
- package/dist/icons/arrow-up-from-line.js +12 -0
- package/dist/icons/arrow-up-right.d.ts +2 -0
- package/dist/icons/arrow-up-right.js +11 -0
- package/dist/icons/arrow-up-to-line.d.ts +2 -0
- package/dist/icons/arrow-up-to-line.js +12 -0
- package/dist/icons/arrow-up.d.ts +2 -0
- package/dist/icons/arrow-up.js +11 -0
- package/dist/icons/banknote.d.ts +2 -0
- package/dist/icons/banknote.js +12 -0
- package/dist/icons/bar-chart2.d.ts +1 -0
- package/dist/icons/bar-chart2.js +4 -0
- package/dist/icons/bar-chart3.d.ts +1 -0
- package/dist/icons/bar-chart3.js +4 -0
- package/dist/icons/bell.d.ts +2 -0
- package/dist/icons/bell.js +11 -0
- package/dist/icons/bold.d.ts +2 -0
- package/dist/icons/bold.js +8 -0
- package/dist/icons/book-open.d.ts +2 -0
- package/dist/icons/book-open.js +11 -0
- package/dist/icons/boxes.d.ts +2 -0
- package/dist/icons/boxes.js +21 -0
- package/dist/icons/brain.d.ts +2 -0
- package/dist/icons/brain.js +17 -0
- package/dist/icons/calculator.d.ts +2 -0
- package/dist/icons/calculator.js +19 -0
- package/dist/icons/calendar-check.d.ts +2 -0
- package/dist/icons/calendar-check.js +14 -0
- package/dist/icons/calendar-clock.d.ts +2 -0
- package/dist/icons/calendar-clock.js +15 -0
- package/dist/icons/calendar-days.d.ts +2 -0
- package/dist/icons/calendar-days.js +19 -0
- package/dist/icons/calendar-plus.d.ts +2 -0
- package/dist/icons/calendar-plus.js +15 -0
- package/dist/icons/calendar-x.d.ts +2 -0
- package/dist/icons/calendar-x.js +15 -0
- package/dist/icons/calendar.d.ts +2 -0
- package/dist/icons/calendar.js +13 -0
- package/dist/icons/camera.d.ts +2 -0
- package/dist/icons/camera.js +11 -0
- package/dist/icons/chart-column.d.ts +2 -0
- package/dist/icons/chart-column.js +13 -0
- package/dist/icons/chart-no-axes-column.d.ts +2 -0
- package/dist/icons/chart-no-axes-column.js +12 -0
- package/dist/icons/check-check.d.ts +2 -0
- package/dist/icons/check-check.js +11 -0
- package/dist/icons/check-circle2.d.ts +1 -0
- package/dist/icons/check-circle2.js +4 -0
- package/dist/icons/check.d.ts +2 -0
- package/dist/icons/check.js +8 -0
- package/dist/icons/chevron-down.d.ts +2 -0
- package/dist/icons/chevron-down.js +8 -0
- package/dist/icons/chevron-left.d.ts +2 -0
- package/dist/icons/chevron-left.js +8 -0
- package/dist/icons/chevron-right.d.ts +2 -0
- package/dist/icons/chevron-right.js +8 -0
- package/dist/icons/chevrons-left.d.ts +2 -0
- package/dist/icons/chevrons-left.js +11 -0
- package/dist/icons/chevrons-right.d.ts +2 -0
- package/dist/icons/chevrons-right.js +11 -0
- package/dist/icons/chevrons-up-down.d.ts +2 -0
- package/dist/icons/chevrons-up-down.js +11 -0
- package/dist/icons/circle-alert.d.ts +2 -0
- package/dist/icons/circle-alert.js +12 -0
- package/dist/icons/circle-check.d.ts +2 -0
- package/dist/icons/circle-check.js +11 -0
- package/dist/icons/circle-x.d.ts +2 -0
- package/dist/icons/circle-x.js +12 -0
- package/dist/icons/clipboard-list.d.ts +2 -0
- package/dist/icons/clipboard-list.js +15 -0
- package/dist/icons/clock.d.ts +2 -0
- package/dist/icons/clock.js +11 -0
- package/dist/icons/coins.d.ts +2 -0
- package/dist/icons/coins.js +13 -0
- package/dist/icons/columns-3.d.ts +2 -0
- package/dist/icons/columns-3.js +12 -0
- package/dist/icons/construction.d.ts +2 -0
- package/dist/icons/construction.js +17 -0
- package/dist/icons/copy.d.ts +2 -0
- package/dist/icons/copy.js +11 -0
- package/dist/icons/credit-card.d.ts +2 -0
- package/dist/icons/credit-card.js +12 -0
- package/dist/icons/download.d.ts +2 -0
- package/dist/icons/download.js +12 -0
- package/dist/icons/ellipsis-vertical.d.ts +2 -0
- package/dist/icons/ellipsis-vertical.js +12 -0
- package/dist/icons/external-link.d.ts +2 -0
- package/dist/icons/external-link.js +12 -0
- package/dist/icons/eye-off.d.ts +2 -0
- package/dist/icons/eye-off.js +13 -0
- package/dist/icons/face-slightly-smiling-plus.d.ts +2 -0
- package/dist/icons/face-slightly-smiling-plus.js +15 -0
- package/dist/icons/face-slightly-smiling.d.ts +2 -0
- package/dist/icons/face-slightly-smiling.js +13 -0
- package/dist/icons/file-code.d.ts +2 -0
- package/dist/icons/file-code.js +13 -0
- package/dist/icons/file-image.d.ts +2 -0
- package/dist/icons/file-image.js +13 -0
- package/dist/icons/file-spreadsheet.d.ts +2 -0
- package/dist/icons/file-spreadsheet.js +15 -0
- package/dist/icons/file-text.d.ts +2 -0
- package/dist/icons/file-text.js +14 -0
- package/dist/icons/file.d.ts +2 -0
- package/dist/icons/file.js +11 -0
- package/dist/icons/filter.d.ts +1 -0
- package/dist/icons/filter.js +4 -0
- package/dist/icons/folder-open.d.ts +2 -0
- package/dist/icons/folder-open.js +8 -0
- package/dist/icons/folder.d.ts +2 -0
- package/dist/icons/folder.js +8 -0
- package/dist/icons/funnel.d.ts +2 -0
- package/dist/icons/funnel.js +8 -0
- package/dist/icons/grip-vertical.d.ts +2 -0
- package/dist/icons/grip-vertical.js +15 -0
- package/dist/icons/heading-2.d.ts +2 -0
- package/dist/icons/heading-2.js +13 -0
- package/dist/icons/icon-base.d.ts +14 -0
- package/dist/icons/icon-base.js +39 -0
- package/dist/icons/inbox.d.ts +2 -0
- package/dist/icons/inbox.js +11 -0
- package/dist/icons/index.d.ts +145 -0
- package/dist/icons/index.js +291 -0
- package/dist/icons/info.d.ts +2 -0
- package/dist/icons/info.js +12 -0
- package/dist/icons/italic.d.ts +2 -0
- package/dist/icons/italic.js +12 -0
- package/dist/icons/landmark.d.ts +2 -0
- package/dist/icons/landmark.js +15 -0
- package/dist/icons/layers.d.ts +2 -0
- package/dist/icons/layers.js +12 -0
- package/dist/icons/layout-dashboard.d.ts +2 -0
- package/dist/icons/layout-dashboard.js +13 -0
- package/dist/icons/layout-grid.d.ts +2 -0
- package/dist/icons/layout-grid.js +13 -0
- package/dist/icons/link-2.d.ts +2 -0
- package/dist/icons/link-2.js +12 -0
- package/dist/icons/list-checks.d.ts +2 -0
- package/dist/icons/list-checks.js +14 -0
- package/dist/icons/list-filter.d.ts +2 -0
- package/dist/icons/list-filter.js +12 -0
- package/dist/icons/list-ordered.d.ts +2 -0
- package/dist/icons/list-ordered.js +15 -0
- package/dist/icons/list.d.ts +2 -0
- package/dist/icons/list.js +15 -0
- package/dist/icons/loader-circle.d.ts +2 -0
- package/dist/icons/loader-circle.js +8 -0
- package/dist/icons/lock.d.ts +2 -0
- package/dist/icons/lock.js +11 -0
- package/dist/icons/log-out.d.ts +2 -0
- package/dist/icons/log-out.js +12 -0
- package/dist/icons/map-pin.d.ts +2 -0
- package/dist/icons/map-pin.js +11 -0
- package/dist/icons/menu.d.ts +2 -0
- package/dist/icons/menu.js +12 -0
- package/dist/icons/message-circle.d.ts +2 -0
- package/dist/icons/message-circle.js +8 -0
- package/dist/icons/message-square.d.ts +2 -0
- package/dist/icons/message-square.js +8 -0
- package/dist/icons/minus.d.ts +2 -0
- package/dist/icons/minus.js +8 -0
- package/dist/icons/moon.d.ts +2 -0
- package/dist/icons/moon.js +8 -0
- package/dist/icons/move-horizontal.d.ts +2 -0
- package/dist/icons/move-horizontal.js +12 -0
- package/dist/icons/octagon-x.d.ts +2 -0
- package/dist/icons/octagon-x.js +12 -0
- package/dist/icons/package.d.ts +2 -0
- package/dist/icons/package.js +13 -0
- package/dist/icons/panel-right.d.ts +2 -0
- package/dist/icons/panel-right.js +11 -0
- package/dist/icons/paperclip.d.ts +2 -0
- package/dist/icons/paperclip.js +8 -0
- package/dist/icons/pause.d.ts +2 -0
- package/dist/icons/pause.js +11 -0
- package/dist/icons/pen-line.d.ts +2 -0
- package/dist/icons/pen-line.js +11 -0
- package/dist/icons/pencil.d.ts +2 -0
- package/dist/icons/pencil.js +11 -0
- package/dist/icons/phone.d.ts +2 -0
- package/dist/icons/phone.js +8 -0
- package/dist/icons/pin-off.d.ts +2 -0
- package/dist/icons/pin-off.js +13 -0
- package/dist/icons/play.d.ts +2 -0
- package/dist/icons/play.js +8 -0
- package/dist/icons/plus.d.ts +2 -0
- package/dist/icons/plus.js +11 -0
- package/dist/icons/redo-2.d.ts +2 -0
- package/dist/icons/redo-2.js +11 -0
- package/dist/icons/refresh-cw.d.ts +2 -0
- package/dist/icons/refresh-cw.js +13 -0
- package/dist/icons/rotate-ccw.d.ts +2 -0
- package/dist/icons/rotate-ccw.js +11 -0
- package/dist/icons/scan-barcode.d.ts +2 -0
- package/dist/icons/scan-barcode.js +16 -0
- package/dist/icons/scissors.d.ts +2 -0
- package/dist/icons/scissors.js +14 -0
- package/dist/icons/scroll-text.d.ts +2 -0
- package/dist/icons/scroll-text.js +13 -0
- package/dist/icons/search.d.ts +2 -0
- package/dist/icons/search.js +11 -0
- package/dist/icons/send.d.ts +2 -0
- package/dist/icons/send.js +11 -0
- package/dist/icons/settings.d.ts +2 -0
- package/dist/icons/settings.js +11 -0
- package/dist/icons/shield.d.ts +2 -0
- package/dist/icons/shield.js +8 -0
- package/dist/icons/shopping-bag.d.ts +2 -0
- package/dist/icons/shopping-bag.js +12 -0
- package/dist/icons/shopping-cart.d.ts +2 -0
- package/dist/icons/shopping-cart.js +13 -0
- package/dist/icons/sliders-horizontal.d.ts +2 -0
- package/dist/icons/sliders-horizontal.js +18 -0
- package/dist/icons/smartphone.d.ts +2 -0
- package/dist/icons/smartphone.js +11 -0
- package/dist/icons/smile-plus.d.ts +1 -0
- package/dist/icons/smile-plus.js +4 -0
- package/dist/icons/smile.d.ts +1 -0
- package/dist/icons/smile.js +4 -0
- package/dist/icons/sparkles.d.ts +2 -0
- package/dist/icons/sparkles.js +13 -0
- package/dist/icons/square.d.ts +2 -0
- package/dist/icons/square.js +8 -0
- package/dist/icons/star.d.ts +2 -0
- package/dist/icons/star.js +8 -0
- package/dist/icons/sun.d.ts +2 -0
- package/dist/icons/sun.js +18 -0
- package/dist/icons/tags.d.ts +2 -0
- package/dist/icons/tags.js +12 -0
- package/dist/icons/thumbs-down.d.ts +2 -0
- package/dist/icons/thumbs-down.js +11 -0
- package/dist/icons/thumbs-up.d.ts +2 -0
- package/dist/icons/thumbs-up.js +11 -0
- package/dist/icons/trash.d.ts +2 -0
- package/dist/icons/trash.js +14 -0
- package/dist/icons/trash2.d.ts +1 -0
- package/dist/icons/trash2.js +4 -0
- package/dist/icons/triangle-alert.d.ts +2 -0
- package/dist/icons/triangle-alert.js +12 -0
- package/dist/icons/truck.d.ts +2 -0
- package/dist/icons/truck.js +14 -0
- package/dist/icons/underline.d.ts +2 -0
- package/dist/icons/underline.js +11 -0
- package/dist/icons/undo-2.d.ts +2 -0
- package/dist/icons/undo-2.js +11 -0
- package/dist/icons/unlink.d.ts +2 -0
- package/dist/icons/unlink.js +15 -0
- package/dist/icons/upload.d.ts +2 -0
- package/dist/icons/upload.js +12 -0
- package/dist/icons/user-check.d.ts +2 -0
- package/dist/icons/user-check.js +12 -0
- package/dist/icons/user-cog.d.ts +2 -0
- package/dist/icons/user-cog.js +20 -0
- package/dist/icons/user-plus.d.ts +2 -0
- package/dist/icons/user-plus.js +13 -0
- package/dist/icons/user-round.d.ts +2 -0
- package/dist/icons/user-round.js +11 -0
- package/dist/icons/user.d.ts +2 -0
- package/dist/icons/user.js +11 -0
- package/dist/icons/users.d.ts +2 -0
- package/dist/icons/users.js +13 -0
- package/dist/icons/video.d.ts +2 -0
- package/dist/icons/video.js +11 -0
- package/dist/icons/wallet.d.ts +2 -0
- package/dist/icons/wallet.js +11 -0
- package/dist/icons/wrench.d.ts +2 -0
- package/dist/icons/wrench.js +8 -0
- package/dist/icons/x.d.ts +2 -0
- package/dist/icons/x.js +11 -0
- package/dist/icons/xcircle.d.ts +1 -0
- package/dist/icons/xcircle.js +4 -0
- package/dist/icons/xoctagon.d.ts +1 -0
- package/dist/icons/xoctagon.js +4 -0
- package/dist/navigation/floating-toc/floating-toc.d.ts +5 -1
- package/dist/navigation/floating-toc/floating-toc.js +42 -23
- package/dist/navigation/floating-toc/index.d.ts +1 -1
- package/dist/navigation/segmented/segmented.d.ts +19 -7
- package/dist/navigation/segmented/segmented.js +84 -19
- package/dist/navigation/stepper/index.d.ts +1 -1
- package/dist/navigation/stepper/stepper.d.ts +7 -3
- package/dist/navigation/stepper/stepper.js +17 -6
- package/dist/navigation/tabs/tabs.d.ts +28 -11
- package/dist/navigation/tabs/tabs.js +134 -14
- package/dist/overlays/context-menu/context-menu.d.ts +5 -5
- package/dist/overlays/context-menu/context-menu.js +5 -8
- package/dist/overlays/dialog/dialog.d.ts +11 -6
- package/dist/overlays/dialog/dialog.js +18 -10
- package/dist/overlays/dialog/index.d.ts +1 -1
- package/dist/overlays/dialog/index.js +2 -0
- package/dist/overlays/drawer/drawer.d.ts +12 -7
- package/dist/overlays/drawer/drawer.js +24 -11
- package/dist/overlays/drawer/index.d.ts +1 -1
- package/dist/overlays/drawer/index.js +2 -0
- package/dist/overlays/dropdown-menu/dropdown-menu.d.ts +26 -10
- package/dist/overlays/dropdown-menu/dropdown-menu.js +89 -20
- package/dist/overlays/dropdown-menu/index.d.ts +1 -1
- package/dist/overlays/dropdown-menu/index.js +12 -0
- package/dist/overlays/hover-card/hover-card.d.ts +2 -2
- package/dist/overlays/hover-card/hover-card.js +3 -3
- package/dist/overlays/popover/index.d.ts +1 -1
- package/dist/overlays/popover/index.js +2 -0
- package/dist/overlays/popover/popover.d.ts +11 -9
- package/dist/overlays/popover/popover.js +6 -3
- package/dist/overlays/toaster/index.d.ts +1 -1
- package/dist/overlays/toaster/index.js +4 -1
- package/dist/overlays/toaster/toast-store.d.ts +39 -0
- package/dist/overlays/toaster/toast-store.js +63 -0
- package/dist/overlays/toaster/toast.d.ts +11 -0
- package/dist/overlays/toaster/toast.js +10 -0
- package/dist/overlays/toaster/toaster.d.ts +24 -5
- package/dist/overlays/toaster/toaster.js +218 -16
- package/dist/palette/command-palette/command-palette.d.ts +6 -2
- package/dist/palette/command-palette/command-palette.js +94 -44
- package/dist/palette/command-palette/index.d.ts +1 -1
- package/dist/primitives/command/command.d.ts +82 -0
- package/dist/primitives/command/command.js +488 -0
- package/dist/primitives/command/score.d.ts +15 -0
- package/dist/primitives/command/score.js +73 -0
- package/dist/primitives/command/store.d.ts +89 -0
- package/dist/primitives/command/store.js +205 -0
- package/dist/primitives/dialog/dialog.d.ts +38 -0
- package/dist/primitives/dialog/dialog.js +251 -0
- package/dist/primitives/focusable.d.ts +21 -0
- package/dist/primitives/focusable.js +59 -0
- package/dist/primitives/global-singleton.d.ts +5 -0
- package/dist/primitives/global-singleton.js +9 -0
- package/dist/primitives/hide-others.d.ts +14 -0
- package/dist/primitives/hide-others.js +79 -0
- package/dist/primitives/index.d.ts +25 -0
- package/dist/primitives/index.js +30 -0
- package/dist/primitives/layer-stack.d.ts +8 -0
- package/dist/primitives/layer-stack.js +23 -0
- package/dist/primitives/menu/grace.d.ts +17 -0
- package/dist/primitives/menu/grace.js +27 -0
- package/dist/primitives/menu/menu.d.ts +97 -0
- package/dist/primitives/menu/menu.js +871 -0
- package/dist/primitives/menu/navigation.d.ts +6 -0
- package/dist/primitives/menu/navigation.js +12 -0
- package/dist/primitives/menu/typeahead.d.ts +6 -0
- package/dist/primitives/menu/typeahead.js +16 -0
- package/dist/primitives/pointer-events-lock.d.ts +15 -0
- package/dist/primitives/pointer-events-lock.js +37 -0
- package/dist/primitives/popover/popover.d.ts +33 -0
- package/dist/primitives/popover/popover.js +244 -0
- package/dist/primitives/popper/geometry.d.ts +67 -0
- package/dist/primitives/popper/geometry.js +143 -0
- package/dist/primitives/popper/popper.d.ts +44 -0
- package/dist/primitives/popper/popper.js +313 -0
- package/dist/primitives/portal.d.ts +6 -0
- package/dist/primitives/portal.js +20 -0
- package/dist/primitives/scroll-lock.d.ts +4 -0
- package/dist/primitives/scroll-lock.js +92 -0
- package/dist/primitives/use-dismissable-layer.d.ts +37 -0
- package/dist/primitives/use-dismissable-layer.js +113 -0
- package/dist/primitives/use-focus-scope.d.ts +22 -0
- package/dist/primitives/use-focus-scope.js +91 -0
- package/dist/primitives/use-layer.d.ts +2 -0
- package/dist/primitives/use-layer.js +14 -0
- package/dist/primitives/use-presence.d.ts +14 -0
- package/dist/primitives/use-presence.js +87 -0
- package/dist/rich-text/index.d.ts +1 -1
- package/dist/rich-text/rich-text-editor.d.ts +5 -1
- package/dist/rich-text/rich-text-editor.js +42 -10
- package/dist/shell/app-shell/app-shell.d.ts +3 -4
- package/dist/shell/app-shell/app-shell.js +4 -2
- package/dist/shell/sidebar/index.d.ts +1 -1
- package/dist/shell/sidebar/sidebar.d.ts +5 -1
- package/dist/shell/sidebar/sidebar.js +49 -37
- package/dist/shell/topbar/index.d.ts +1 -1
- package/dist/shell/topbar/topbar.d.ts +5 -1
- package/dist/shell/topbar/topbar.js +91 -45
- package/dist/showcase/controls-bento.js +2 -2
- package/dist/showcase/kit-tiles.js +1 -1
- package/dist/showcase/operations-bento.js +1 -1
- package/dist/showcase/shell.js +1 -1
- package/dist/states/empty-state/empty-state.js +2 -2
- package/dist/states/error-state/error-state.js +4 -4
- package/dist/states/forbidden-state/forbidden-state.js +2 -2
- package/dist/states/offline-banner/offline-banner.js +1 -1
- package/dist/utils/class-groups.d.ts +20 -0
- package/dist/utils/class-groups.js +809 -0
- package/dist/utils/class-merge.d.ts +17 -0
- package/dist/utils/class-merge.js +187 -0
- package/dist/utils/class-names.d.ts +9 -0
- package/dist/utils/class-names.js +0 -0
- package/dist/utils/class-tokens.generated.d.ts +8 -0
- package/dist/utils/class-tokens.generated.js +98 -0
- package/dist/utils/class-validators.d.ts +27 -0
- package/dist/utils/class-validators.js +78 -0
- package/dist/utils/cn.d.ts +33 -2
- package/dist/utils/cn.js +43 -82
- package/dist/utils/compose.d.ts +7 -0
- package/dist/utils/compose.js +15 -0
- package/dist/utils/form-bubble.d.ts +30 -0
- package/dist/utils/form-bubble.js +120 -0
- package/dist/utils/index.d.ts +2 -1
- package/dist/utils/index.js +7 -1
- package/dist/utils/roving-focus.d.ts +42 -0
- package/dist/utils/roving-focus.js +67 -0
- package/dist/utils/slot.d.ts +16 -0
- package/dist/utils/slot.js +74 -0
- package/dist/utils/use-controllable-state.d.ts +13 -0
- package/dist/utils/use-controllable-state.js +32 -0
- package/icons/LICENSE-lucide +43 -0
- package/icons/README.md +15 -0
- package/icons/aliases.json +12 -0
- package/icons/svg/archive.svg +5 -0
- package/icons/svg/armchair.svg +6 -0
- package/icons/svg/arrow-down-right.svg +4 -0
- package/icons/svg/arrow-down-to-line.svg +5 -0
- package/icons/svg/arrow-down.svg +4 -0
- package/icons/svg/arrow-left-to-line.svg +5 -0
- package/icons/svg/arrow-left.svg +4 -0
- package/icons/svg/arrow-right-to-line.svg +5 -0
- package/icons/svg/arrow-right.svg +4 -0
- package/icons/svg/arrow-up-from-line.svg +5 -0
- package/icons/svg/arrow-up-right.svg +4 -0
- package/icons/svg/arrow-up-to-line.svg +5 -0
- package/icons/svg/arrow-up.svg +4 -0
- package/icons/svg/banknote.svg +5 -0
- package/icons/svg/bell.svg +4 -0
- package/icons/svg/bold.svg +3 -0
- package/icons/svg/book-open.svg +4 -0
- package/icons/svg/boxes.svg +14 -0
- package/icons/svg/brain.svg +10 -0
- package/icons/svg/calculator.svg +12 -0
- package/icons/svg/calendar-check.svg +7 -0
- package/icons/svg/calendar-clock.svg +8 -0
- package/icons/svg/calendar-days.svg +12 -0
- package/icons/svg/calendar-plus.svg +8 -0
- package/icons/svg/calendar-x.svg +8 -0
- package/icons/svg/calendar.svg +6 -0
- package/icons/svg/camera.svg +4 -0
- package/icons/svg/chart-column.svg +6 -0
- package/icons/svg/chart-no-axes-column.svg +5 -0
- package/icons/svg/check-check.svg +4 -0
- package/icons/svg/check.svg +3 -0
- package/icons/svg/chevron-down.svg +3 -0
- package/icons/svg/chevron-left.svg +3 -0
- package/icons/svg/chevron-right.svg +3 -0
- package/icons/svg/chevrons-left.svg +4 -0
- package/icons/svg/chevrons-right.svg +4 -0
- package/icons/svg/chevrons-up-down.svg +4 -0
- package/icons/svg/circle-alert.svg +5 -0
- package/icons/svg/circle-check.svg +4 -0
- package/icons/svg/circle-x.svg +5 -0
- package/icons/svg/clipboard-list.svg +8 -0
- package/icons/svg/clock.svg +4 -0
- package/icons/svg/coins.svg +6 -0
- package/icons/svg/columns-3.svg +5 -0
- package/icons/svg/construction.svg +10 -0
- package/icons/svg/copy.svg +4 -0
- package/icons/svg/credit-card.svg +5 -0
- package/icons/svg/download.svg +5 -0
- package/icons/svg/ellipsis-vertical.svg +5 -0
- package/icons/svg/external-link.svg +5 -0
- package/icons/svg/eye-off.svg +6 -0
- package/icons/svg/face-slightly-smiling-plus.svg +8 -0
- package/icons/svg/face-slightly-smiling.svg +6 -0
- package/icons/svg/file-code.svg +6 -0
- package/icons/svg/file-image.svg +6 -0
- package/icons/svg/file-spreadsheet.svg +8 -0
- package/icons/svg/file-text.svg +7 -0
- package/icons/svg/file.svg +4 -0
- package/icons/svg/folder-open.svg +3 -0
- package/icons/svg/folder.svg +3 -0
- package/icons/svg/funnel.svg +3 -0
- package/icons/svg/grip-vertical.svg +8 -0
- package/icons/svg/heading-2.svg +6 -0
- package/icons/svg/inbox.svg +4 -0
- package/icons/svg/info.svg +5 -0
- package/icons/svg/italic.svg +5 -0
- package/icons/svg/landmark.svg +8 -0
- package/icons/svg/layers.svg +5 -0
- package/icons/svg/layout-dashboard.svg +6 -0
- package/icons/svg/layout-grid.svg +6 -0
- package/icons/svg/link-2.svg +5 -0
- package/icons/svg/list-checks.svg +7 -0
- package/icons/svg/list-filter.svg +5 -0
- package/icons/svg/list-ordered.svg +8 -0
- package/icons/svg/list.svg +8 -0
- package/icons/svg/loader-circle.svg +3 -0
- package/icons/svg/lock.svg +4 -0
- package/icons/svg/log-out.svg +5 -0
- package/icons/svg/map-pin.svg +4 -0
- package/icons/svg/menu.svg +5 -0
- package/icons/svg/message-circle.svg +3 -0
- package/icons/svg/message-square.svg +3 -0
- package/icons/svg/minus.svg +3 -0
- package/icons/svg/moon.svg +3 -0
- package/icons/svg/move-horizontal.svg +5 -0
- package/icons/svg/octagon-x.svg +5 -0
- package/icons/svg/package.svg +6 -0
- package/icons/svg/panel-right.svg +4 -0
- package/icons/svg/paperclip.svg +3 -0
- package/icons/svg/pause.svg +4 -0
- package/icons/svg/pen-line.svg +4 -0
- package/icons/svg/pencil.svg +4 -0
- package/icons/svg/phone.svg +3 -0
- package/icons/svg/pin-off.svg +6 -0
- package/icons/svg/play.svg +3 -0
- package/icons/svg/plus.svg +4 -0
- package/icons/svg/redo-2.svg +4 -0
- package/icons/svg/refresh-cw.svg +6 -0
- package/icons/svg/rotate-ccw.svg +4 -0
- package/icons/svg/scan-barcode.svg +9 -0
- package/icons/svg/scissors.svg +7 -0
- package/icons/svg/scroll-text.svg +6 -0
- package/icons/svg/search.svg +4 -0
- package/icons/svg/send.svg +4 -0
- package/icons/svg/settings.svg +4 -0
- package/icons/svg/shield.svg +3 -0
- package/icons/svg/shopping-bag.svg +5 -0
- package/icons/svg/shopping-cart.svg +6 -0
- package/icons/svg/sliders-horizontal.svg +11 -0
- package/icons/svg/smartphone.svg +4 -0
- package/icons/svg/sparkles.svg +6 -0
- package/icons/svg/square.svg +3 -0
- package/icons/svg/star.svg +3 -0
- package/icons/svg/sun.svg +11 -0
- package/icons/svg/tags.svg +5 -0
- package/icons/svg/thumbs-down.svg +4 -0
- package/icons/svg/thumbs-up.svg +4 -0
- package/icons/svg/trash.svg +7 -0
- package/icons/svg/triangle-alert.svg +5 -0
- package/icons/svg/truck.svg +7 -0
- package/icons/svg/underline.svg +4 -0
- package/icons/svg/undo-2.svg +4 -0
- package/icons/svg/unlink.svg +8 -0
- package/icons/svg/upload.svg +5 -0
- package/icons/svg/user-check.svg +5 -0
- package/icons/svg/user-cog.svg +13 -0
- package/icons/svg/user-plus.svg +6 -0
- package/icons/svg/user-round.svg +4 -0
- package/icons/svg/user.svg +4 -0
- package/icons/svg/users.svg +6 -0
- package/icons/svg/video.svg +4 -0
- package/icons/svg/wallet.svg +4 -0
- package/icons/svg/wrench.svg +3 -0
- package/icons/svg/x.svg +4 -0
- package/package.json +26 -24
- package/scripts/build-theme.mjs +8 -0
- package/src/ai/attachment/attachment.tsx +28 -5
- package/src/ai/chain-of-thought/chain-of-thought.tsx +47 -10
- package/src/ai/chat-list/chat-list.tsx +55 -10
- package/src/ai/chat-message/chat-message.tsx +25 -6
- package/src/ai/code-block/code-block.tsx +28 -7
- package/src/ai/conversation/conversation.tsx +24 -5
- package/src/ai/internal/disclosure.tsx +8 -2
- package/src/ai/loader/loader.tsx +14 -3
- package/src/ai/markdown/markdown.tsx +80 -35
- package/src/ai/message-actions/message-actions.tsx +1 -1
- package/src/ai/prompt-input/prompt-input.tsx +50 -10
- package/src/ai/source/source.tsx +44 -7
- package/src/ai/tool-call/tool-call.tsx +47 -12
- package/src/atoms/avatar/avatar.tsx +77 -12
- package/src/atoms/avatar/index.ts +1 -1
- package/src/atoms/avatar-group/avatar-group.tsx +7 -9
- package/src/atoms/big-date/big-date.tsx +2 -2
- package/src/atoms/button/button.tsx +42 -14
- package/src/atoms/button/index.ts +4 -0
- package/src/atoms/checkbox/checkbox.tsx +119 -18
- package/src/atoms/checkbox/index.ts +1 -1
- package/src/atoms/chip/chip.tsx +4 -3
- package/src/atoms/chip/index.ts +1 -1
- package/src/atoms/icon/icon-map.ts +4 -4
- package/src/atoms/icon/icon.tsx +7 -8
- package/src/atoms/internal/status-icons.tsx +1 -1
- package/src/atoms/led/index.ts +1 -1
- package/src/atoms/led/led.tsx +21 -6
- package/src/atoms/progress/index.ts +1 -1
- package/src/atoms/progress/progress.tsx +52 -13
- package/src/atoms/radio-group/index.ts +1 -0
- package/src/atoms/radio-group/radio-group-primitive.tsx +196 -0
- package/src/atoms/radio-group/radio-group.tsx +48 -14
- package/src/atoms/status-dot/index.ts +1 -0
- package/src/atoms/status-dot/status-dot.tsx +18 -5
- package/src/atoms/status-pill/index.ts +1 -1
- package/src/atoms/status-pill/status-pill.tsx +21 -6
- package/src/atoms/switch/index.ts +1 -1
- package/src/atoms/switch/switch.tsx +102 -15
- package/src/atoms/trend-chip/index.ts +1 -1
- package/src/atoms/trend-chip/trend-chip.tsx +17 -4
- package/src/brand/logo-forge.tsx +1 -1
- package/src/calendar/day-chip/day-chip.tsx +16 -6
- package/src/calendar/day-chip/index.ts +1 -1
- package/src/calendar/event-block/event-block.tsx +44 -9
- package/src/calendar/event-block/index.ts +6 -1
- package/src/calendar/month-view/index.ts +1 -1
- package/src/calendar/month-view/month-view.tsx +37 -6
- package/src/calendar/timeline-view/index.ts +1 -1
- package/src/calendar/timeline-view/timeline-view.tsx +26 -7
- package/src/calendar/week-view/index.ts +1 -1
- package/src/calendar/week-view/week-view.tsx +50 -10
- package/src/charts/README.md +1 -1
- package/src/charts/bar-chart/bar-race-chart.tsx +4 -4
- package/src/charts/bubble-map/bubble-map.tsx +1 -1
- package/src/charts/bullet-chart/bullet-chart.tsx +2 -2
- package/src/charts/candlestick-chart/candlestick-chart.tsx +3 -3
- package/src/charts/chart-grid/chart-grid.tsx +2 -2
- package/src/charts/chord-chart/chord-chart.tsx +1 -1
- package/src/charts/choropleth-map/choropleth-map.tsx +1 -1
- package/src/charts/core/axes.tsx +3 -3
- package/src/charts/core/breadcrumb.tsx +1 -1
- package/src/charts/core/cartesian/annotations.tsx +3 -3
- package/src/charts/core/cartesian/cartesian-chart.tsx +1 -1
- package/src/charts/core/cartesian/category-group-axis.tsx +1 -1
- package/src/charts/core/cartesian/ink-layer.tsx +1 -1
- package/src/charts/core/cartesian/marks.tsx +1 -1
- package/src/charts/core/chart-states.tsx +2 -2
- package/src/charts/core/distribution/layout.ts +1 -1
- package/src/charts/core/distribution/marks.tsx +2 -2
- package/src/charts/core/distribution/xy-points.tsx +4 -4
- package/src/charts/core/export-menu.tsx +1 -1
- package/src/charts/core/legend.tsx +2 -2
- package/src/charts/core/tooltip.tsx +21 -8
- package/src/charts/crossfilter/crossfilter.tsx +4 -4
- package/src/charts/donut-chart/donut-chart.tsx +90 -36
- package/src/charts/dumbbell-chart/dumbbell-chart.tsx +5 -5
- package/src/charts/fill-gauge-chart/fill-gauge-chart.tsx +1 -1
- package/src/charts/funnel-chart/funnel-chart.tsx +6 -6
- package/src/charts/gantt-chart/gantt-chart.tsx +7 -7
- package/src/charts/gantt-chart/gantt-marks.tsx +6 -6
- package/src/charts/gauge-chart/gauge-chart.tsx +4 -4
- package/src/charts/globe-chart/globe-chart.tsx +1 -1
- package/src/charts/heatmap-chart/heatmap-grid.tsx +7 -7
- package/src/charts/hierarchy-morph/hierarchy-morph.tsx +3 -3
- package/src/charts/histogram/histogram.tsx +1 -1
- package/src/charts/icicle-chart/icicle-chart.tsx +2 -2
- package/src/charts/isotype-rows/isotype-rows.tsx +3 -3
- package/src/charts/lollipop-chart/lollipop-chart.tsx +1 -1
- package/src/charts/maps/geo/map-data-table.tsx +3 -3
- package/src/charts/maps/geo/map-legend.tsx +5 -5
- package/src/charts/maps/geo/map-viewport.tsx +1 -1
- package/src/charts/parliament-chart/parliament-chart.tsx +2 -2
- package/src/charts/pictogram-chart/pictogram-chart.tsx +1 -1
- package/src/charts/polar-area-chart/polar-area-chart.tsx +2 -2
- package/src/charts/progress-units/progress-units.tsx +1 -1
- package/src/charts/radar-chart/radar-chart.tsx +1 -1
- package/src/charts/radial-bar-chart/radial-bar-chart.tsx +1 -1
- package/src/charts/sankey-chart/sankey-chart.tsx +5 -5
- package/src/charts/slope-chart/slope-chart.tsx +1 -1
- package/src/charts/sparkline/sparkline.tsx +1 -1
- package/src/charts/stock-chart/stock-chart.tsx +1 -1
- package/src/charts/stock-chart/stock-drawing-layer.tsx +4 -4
- package/src/charts/stock-chart/stock-plot.tsx +3 -3
- package/src/charts/stream-graph/stream-graph.tsx +1 -1
- package/src/charts/sunburst-chart/sunburst-chart.tsx +1 -1
- package/src/charts/timeline-chart/timeline-chart.tsx +3 -3
- package/src/charts/tree-chart/tree-card.tsx +6 -6
- package/src/charts/tree-chart/tree-chart.tsx +5 -5
- package/src/charts/treemap-chart/treemap-chart.tsx +3 -3
- package/src/charts/waterfall-chart/waterfall-chart.tsx +2 -2
- package/src/containers/action-bar/action-bar.tsx +21 -4
- package/src/containers/action-bar/index.ts +1 -1
- package/src/containers/banner/banner.tsx +19 -5
- package/src/containers/card/card.tsx +1 -1
- package/src/containers/carousel/carousel.tsx +38 -10
- package/src/containers/carousel/index.ts +1 -1
- package/src/containers/comment/comment.tsx +1 -1
- package/src/containers/confirm-action/confirm-action.tsx +41 -8
- package/src/containers/data-grid/chart-panel.tsx +4 -4
- package/src/containers/data-grid/column-menu.tsx +14 -14
- package/src/containers/data-grid/data-grid.demos.tsx +13 -13
- package/src/containers/data-grid/data-grid.samples.tsx +1 -1
- package/src/containers/data-grid/data-grid.tsx +38 -38
- package/src/containers/data-grid/filter-builder-editor.tsx +6 -6
- package/src/containers/data-grid/formula-bar.tsx +4 -4
- package/src/containers/data-grid/grid-toolbar.tsx +7 -7
- package/src/containers/data-grid/spreadsheet.demos.tsx +1 -1
- package/src/containers/data-grid/tool-panel.tsx +11 -11
- package/src/containers/description-list/description-list.tsx +1 -1
- package/src/containers/facts/facts.tsx +2 -2
- package/src/containers/file-tree/file-tree.tsx +30 -9
- package/src/containers/file-tree/index.ts +1 -1
- package/src/containers/generic-row/generic-row.tsx +3 -3
- package/src/containers/hbars/hbars.tsx +5 -5
- package/src/containers/item-card-group/index.ts +1 -0
- package/src/containers/item-card-group/item-card-group.tsx +65 -13
- package/src/containers/kanban/index.ts +1 -1
- package/src/containers/kanban/kanban.tsx +67 -11
- package/src/containers/kpi/kpi.tsx +26 -8
- package/src/containers/kpi-group/index.ts +1 -1
- package/src/containers/kpi-group/kpi-group.tsx +37 -8
- package/src/containers/page-header/page-header.tsx +2 -2
- package/src/containers/responsive-list/responsive-list.tsx +57 -10
- package/src/containers/settings-layout/settings-layout.tsx +1 -1
- package/src/containers/settings-row/settings-row.tsx +20 -5
- package/src/containers/table/table.tsx +5 -5
- package/src/containers/timeline/index.ts +1 -0
- package/src/containers/timeline/timeline.tsx +68 -12
- package/src/dashboards/layout.tsx +2 -2
- package/src/forms/accent-picker/accent-picker.tsx +23 -13
- package/src/forms/accent-picker/index.ts +1 -0
- package/src/forms/checkbox-button-group/checkbox-button-group.tsx +19 -2
- package/src/forms/checkbox-button-group/index.ts +1 -0
- package/src/forms/dropzone/dropzone.tsx +27 -5
- package/src/forms/dropzone/index.ts +1 -0
- package/src/forms/emoji-picker/emoji-picker.tsx +50 -10
- package/src/forms/emoji-picker/index.ts +1 -1
- package/src/forms/emoji-reaction-button/emoji-reaction-button.tsx +35 -8
- package/src/forms/emoji-reaction-button/index.ts +2 -0
- package/src/forms/field/field.tsx +38 -9
- package/src/forms/field/index.ts +1 -1
- package/src/forms/inline-select/inline-select.tsx +1 -1
- package/src/forms/input-icon/index.ts +1 -1
- package/src/forms/input-icon/input-icon.tsx +13 -5
- package/src/forms/internal/button-option.tsx +15 -5
- package/src/forms/native-select/index.ts +1 -0
- package/src/forms/native-select/native-select.tsx +13 -3
- package/src/forms/number-stepper/index.ts +5 -1
- package/src/forms/number-stepper/number-stepper.tsx +18 -5
- package/src/forms/pin-input/index.ts +1 -1
- package/src/forms/pin-input/pin-input.tsx +22 -3
- package/src/forms/radio-button-group/index.ts +1 -0
- package/src/forms/radio-button-group/radio-button-group.tsx +14 -2
- package/src/forms/rating/index.ts +1 -1
- package/src/forms/rating/rating.tsx +27 -8
- package/src/forms/select/select.tsx +1 -1
- package/src/forms/slider/index.ts +1 -0
- package/src/forms/slider/slider.tsx +46 -6
- package/src/i18n/strings.ts +3 -0
- package/src/icons/alert-triangle.tsx +3 -0
- package/src/icons/archive.tsx +13 -0
- package/src/icons/armchair.tsx +14 -0
- package/src/icons/arrow-down-right.tsx +12 -0
- package/src/icons/arrow-down-to-line.tsx +13 -0
- package/src/icons/arrow-down.tsx +12 -0
- package/src/icons/arrow-left-to-line.tsx +13 -0
- package/src/icons/arrow-left.tsx +12 -0
- package/src/icons/arrow-right-to-line.tsx +13 -0
- package/src/icons/arrow-right.tsx +12 -0
- package/src/icons/arrow-up-from-line.tsx +13 -0
- package/src/icons/arrow-up-right.tsx +12 -0
- package/src/icons/arrow-up-to-line.tsx +13 -0
- package/src/icons/arrow-up.tsx +12 -0
- package/src/icons/banknote.tsx +13 -0
- package/src/icons/bar-chart2.tsx +3 -0
- package/src/icons/bar-chart3.tsx +3 -0
- package/src/icons/bell.tsx +12 -0
- package/src/icons/bold.tsx +11 -0
- package/src/icons/book-open.tsx +12 -0
- package/src/icons/boxes.tsx +22 -0
- package/src/icons/brain.tsx +18 -0
- package/src/icons/calculator.tsx +20 -0
- package/src/icons/calendar-check.tsx +15 -0
- package/src/icons/calendar-clock.tsx +16 -0
- package/src/icons/calendar-days.tsx +20 -0
- package/src/icons/calendar-plus.tsx +16 -0
- package/src/icons/calendar-x.tsx +16 -0
- package/src/icons/calendar.tsx +14 -0
- package/src/icons/camera.tsx +12 -0
- package/src/icons/chart-column.tsx +14 -0
- package/src/icons/chart-no-axes-column.tsx +13 -0
- package/src/icons/check-check.tsx +12 -0
- package/src/icons/check-circle2.tsx +3 -0
- package/src/icons/check.tsx +11 -0
- package/src/icons/chevron-down.tsx +11 -0
- package/src/icons/chevron-left.tsx +11 -0
- package/src/icons/chevron-right.tsx +11 -0
- package/src/icons/chevrons-left.tsx +12 -0
- package/src/icons/chevrons-right.tsx +12 -0
- package/src/icons/chevrons-up-down.tsx +12 -0
- package/src/icons/circle-alert.tsx +13 -0
- package/src/icons/circle-check.tsx +12 -0
- package/src/icons/circle-x.tsx +13 -0
- package/src/icons/clipboard-list.tsx +16 -0
- package/src/icons/clock.tsx +12 -0
- package/src/icons/coins.tsx +14 -0
- package/src/icons/columns-3.tsx +13 -0
- package/src/icons/construction.tsx +18 -0
- package/src/icons/copy.tsx +12 -0
- package/src/icons/credit-card.tsx +13 -0
- package/src/icons/download.tsx +13 -0
- package/src/icons/ellipsis-vertical.tsx +13 -0
- package/src/icons/external-link.tsx +13 -0
- package/src/icons/eye-off.tsx +14 -0
- package/src/icons/face-slightly-smiling-plus.tsx +16 -0
- package/src/icons/face-slightly-smiling.tsx +14 -0
- package/src/icons/file-code.tsx +14 -0
- package/src/icons/file-image.tsx +14 -0
- package/src/icons/file-spreadsheet.tsx +16 -0
- package/src/icons/file-text.tsx +15 -0
- package/src/icons/file.tsx +12 -0
- package/src/icons/filter.tsx +3 -0
- package/src/icons/folder-open.tsx +11 -0
- package/src/icons/folder.tsx +11 -0
- package/src/icons/funnel.tsx +11 -0
- package/src/icons/grip-vertical.tsx +16 -0
- package/src/icons/heading-2.tsx +14 -0
- package/src/icons/icon-base.tsx +51 -0
- package/src/icons/inbox.tsx +12 -0
- package/src/icons/index.ts +146 -0
- package/src/icons/info.tsx +13 -0
- package/src/icons/italic.tsx +13 -0
- package/src/icons/landmark.tsx +16 -0
- package/src/icons/layers.tsx +13 -0
- package/src/icons/layout-dashboard.tsx +14 -0
- package/src/icons/layout-grid.tsx +14 -0
- package/src/icons/link-2.tsx +13 -0
- package/src/icons/list-checks.tsx +15 -0
- package/src/icons/list-filter.tsx +13 -0
- package/src/icons/list-ordered.tsx +16 -0
- package/src/icons/list.tsx +16 -0
- package/src/icons/loader-circle.tsx +11 -0
- package/src/icons/lock.tsx +12 -0
- package/src/icons/log-out.tsx +13 -0
- package/src/icons/map-pin.tsx +12 -0
- package/src/icons/menu.tsx +13 -0
- package/src/icons/message-circle.tsx +11 -0
- package/src/icons/message-square.tsx +11 -0
- package/src/icons/minus.tsx +11 -0
- package/src/icons/moon.tsx +11 -0
- package/src/icons/move-horizontal.tsx +13 -0
- package/src/icons/octagon-x.tsx +13 -0
- package/src/icons/package.tsx +14 -0
- package/src/icons/panel-right.tsx +12 -0
- package/src/icons/paperclip.tsx +11 -0
- package/src/icons/pause.tsx +12 -0
- package/src/icons/pen-line.tsx +12 -0
- package/src/icons/pencil.tsx +12 -0
- package/src/icons/phone.tsx +11 -0
- package/src/icons/pin-off.tsx +14 -0
- package/src/icons/play.tsx +11 -0
- package/src/icons/plus.tsx +12 -0
- package/src/icons/redo-2.tsx +12 -0
- package/src/icons/refresh-cw.tsx +14 -0
- package/src/icons/rotate-ccw.tsx +12 -0
- package/src/icons/scan-barcode.tsx +17 -0
- package/src/icons/scissors.tsx +15 -0
- package/src/icons/scroll-text.tsx +14 -0
- package/src/icons/search.tsx +12 -0
- package/src/icons/send.tsx +12 -0
- package/src/icons/settings.tsx +12 -0
- package/src/icons/shield.tsx +11 -0
- package/src/icons/shopping-bag.tsx +13 -0
- package/src/icons/shopping-cart.tsx +14 -0
- package/src/icons/sliders-horizontal.tsx +19 -0
- package/src/icons/smartphone.tsx +12 -0
- package/src/icons/smile-plus.tsx +3 -0
- package/src/icons/smile.tsx +3 -0
- package/src/icons/sparkles.tsx +14 -0
- package/src/icons/square.tsx +11 -0
- package/src/icons/star.tsx +11 -0
- package/src/icons/sun.tsx +19 -0
- package/src/icons/tags.tsx +13 -0
- package/src/icons/thumbs-down.tsx +12 -0
- package/src/icons/thumbs-up.tsx +12 -0
- package/src/icons/trash.tsx +15 -0
- package/src/icons/trash2.tsx +3 -0
- package/src/icons/triangle-alert.tsx +13 -0
- package/src/icons/truck.tsx +15 -0
- package/src/icons/underline.tsx +12 -0
- package/src/icons/undo-2.tsx +12 -0
- package/src/icons/unlink.tsx +16 -0
- package/src/icons/upload.tsx +13 -0
- package/src/icons/user-check.tsx +13 -0
- package/src/icons/user-cog.tsx +21 -0
- package/src/icons/user-plus.tsx +14 -0
- package/src/icons/user-round.tsx +12 -0
- package/src/icons/user.tsx +12 -0
- package/src/icons/users.tsx +14 -0
- package/src/icons/video.tsx +12 -0
- package/src/icons/wallet.tsx +12 -0
- package/src/icons/wrench.tsx +11 -0
- package/src/icons/x.tsx +12 -0
- package/src/icons/xcircle.tsx +3 -0
- package/src/icons/xoctagon.tsx +3 -0
- package/src/navigation/floating-toc/floating-toc.tsx +25 -5
- package/src/navigation/floating-toc/index.ts +1 -1
- package/src/navigation/segmented/segmented.tsx +106 -18
- package/src/navigation/stepper/index.ts +1 -1
- package/src/navigation/stepper/stepper.tsx +22 -6
- package/src/navigation/tabs/tabs.tsx +190 -23
- package/src/overlays/context-menu/context-menu.tsx +9 -14
- package/src/overlays/dialog/dialog.tsx +24 -12
- package/src/overlays/dialog/index.ts +2 -0
- package/src/overlays/drawer/drawer.tsx +29 -13
- package/src/overlays/drawer/index.ts +2 -0
- package/src/overlays/dropdown-menu/dropdown-menu.tsx +107 -28
- package/src/overlays/dropdown-menu/index.ts +9 -0
- package/src/overlays/hover-card/hover-card.tsx +4 -4
- package/src/overlays/popover/index.ts +1 -0
- package/src/overlays/popover/popover.tsx +10 -7
- package/src/overlays/toaster/index.ts +9 -1
- package/src/overlays/toaster/toast-store.ts +100 -0
- package/src/overlays/toaster/toast.ts +18 -0
- package/src/overlays/toaster/toaster.tsx +277 -18
- package/src/palette/command-palette/command-palette.tsx +65 -15
- package/src/palette/command-palette/index.ts +1 -0
- package/src/primitives/command/command.tsx +621 -0
- package/src/primitives/command/score.ts +104 -0
- package/src/primitives/command/store.ts +280 -0
- package/src/primitives/dialog/dialog.tsx +316 -0
- package/src/primitives/focusable.ts +85 -0
- package/src/primitives/global-singleton.ts +10 -0
- package/src/primitives/hide-others.ts +116 -0
- package/src/primitives/index.ts +42 -0
- package/src/primitives/layer-stack.ts +27 -0
- package/src/primitives/menu/grace.ts +40 -0
- package/src/primitives/menu/menu.tsx +1129 -0
- package/src/primitives/menu/navigation.ts +15 -0
- package/src/primitives/menu/typeahead.ts +22 -0
- package/src/primitives/pointer-events-lock.ts +48 -0
- package/src/primitives/popover/popover.tsx +316 -0
- package/src/primitives/popper/geometry.ts +250 -0
- package/src/primitives/popper/popper.tsx +434 -0
- package/src/primitives/portal.tsx +23 -0
- package/src/primitives/scroll-lock.ts +114 -0
- package/src/primitives/use-dismissable-layer.ts +171 -0
- package/src/primitives/use-focus-scope.ts +127 -0
- package/src/primitives/use-layer.ts +14 -0
- package/src/primitives/use-presence.ts +111 -0
- package/src/rich-text/index.ts +1 -0
- package/src/rich-text/rich-text-editor.tsx +57 -10
- package/src/shell/app-shell/app-shell.tsx +6 -4
- package/src/shell/sidebar/index.ts +1 -0
- package/src/shell/sidebar/sidebar.tsx +32 -6
- package/src/shell/topbar/index.ts +1 -1
- package/src/shell/topbar/topbar.tsx +57 -10
- package/src/showcase/controls-bento.tsx +2 -2
- package/src/showcase/kit-tiles.tsx +1 -1
- package/src/showcase/operations-bento.tsx +1 -1
- package/src/showcase/shell.tsx +1 -1
- package/src/states/empty-state/empty-state.tsx +2 -2
- package/src/states/error-state/error-state.tsx +4 -4
- package/src/states/forbidden-state/forbidden-state.tsx +2 -2
- package/src/states/offline-banner/offline-banner.tsx +1 -1
- package/src/utils/class-groups.ts +851 -0
- package/src/utils/class-merge.ts +248 -0
- package/src/utils/class-names.ts +9 -0
- package/src/utils/class-tokens.generated.ts +101 -0
- package/src/utils/class-validators.ts +69 -0
- package/src/utils/cn.ts +82 -87
- package/src/utils/compose.ts +19 -0
- package/src/utils/form-bubble.tsx +147 -0
- package/src/utils/index.ts +9 -1
- package/src/utils/roving-focus.ts +116 -0
- package/src/utils/slot.tsx +91 -0
- package/src/utils/use-controllable-state.ts +47 -0
- package/styles/Theme.kt +1 -1
- package/styles/theme.css +15 -0
- package/styles/tokens.css +1 -1
- package/tokens/default.json +18 -2
|
@@ -17,6 +17,8 @@ export interface ChartTooltipProps {
|
|
|
17
17
|
y: number;
|
|
18
18
|
/** Width of the container; the tooltip prefers the left of the anchor past 60% and never leaves it. */
|
|
19
19
|
containerWidth: number;
|
|
20
|
+
/** Height of the container; when given, the card is kept inside it vertically too. */
|
|
21
|
+
containerHeight?: number;
|
|
20
22
|
title?: ReactNode;
|
|
21
23
|
rows: readonly TooltipRow[];
|
|
22
24
|
/** Wrapped sentence under the title, for notes that are not series values. */
|
|
@@ -33,6 +35,8 @@ export interface ChartTooltipProps {
|
|
|
33
35
|
* always stays inside the container: it takes the side of the anchor with
|
|
34
36
|
* room, and is clamped to the edges when neither side fits (narrow charts).
|
|
35
37
|
*/
|
|
36
|
-
export declare function ChartTooltip({ x, y, containerWidth, title, rows, body, side, className, }: ChartTooltipProps): import("react").JSX.Element;
|
|
38
|
+
export declare function ChartTooltip({ x, y, containerWidth, containerHeight, title, rows, body, side, className, }: ChartTooltipProps): import("react").JSX.Element;
|
|
37
39
|
/** Left edge of a tooltip `width` wide next to anchor `x`, kept inside `containerWidth`. */
|
|
38
40
|
export declare function tooltipLeft(x: number, width: number, containerWidth: number, side?: "left" | "right"): number;
|
|
41
|
+
/** Vertical centre of a card `height` tall at anchor `y`, kept inside `containerHeight` when it fits. */
|
|
42
|
+
export declare function tooltipCenterY(y: number, height: number, containerHeight: number): number;
|
|
@@ -9,6 +9,7 @@ function ChartTooltip({
|
|
|
9
9
|
x,
|
|
10
10
|
y,
|
|
11
11
|
containerWidth,
|
|
12
|
+
containerHeight,
|
|
12
13
|
title,
|
|
13
14
|
rows,
|
|
14
15
|
body,
|
|
@@ -16,28 +17,31 @@ function ChartTooltip({
|
|
|
16
17
|
className
|
|
17
18
|
}) {
|
|
18
19
|
const ref = useRef(null);
|
|
19
|
-
const [size, setSize] = useState(0);
|
|
20
|
+
const [size, setSize] = useState({ width: 0, height: 0 });
|
|
20
21
|
useIsomorphicLayoutEffect(() => {
|
|
21
|
-
const
|
|
22
|
-
|
|
22
|
+
const width = ref.current?.offsetWidth ?? 0;
|
|
23
|
+
const height = ref.current?.offsetHeight ?? 0;
|
|
24
|
+
if (Math.abs(width - size.width) > 0.5 || Math.abs(height - size.height) > 0.5)
|
|
25
|
+
setSize({ width, height });
|
|
23
26
|
});
|
|
24
|
-
const left = tooltipLeft(x, size, containerWidth, side);
|
|
27
|
+
const left = tooltipLeft(x, size.width, containerWidth, side);
|
|
28
|
+
const top = containerHeight == null ? y : tooltipCenterY(y, size.height, containerHeight);
|
|
25
29
|
return /* @__PURE__ */ jsxs(
|
|
26
30
|
"div",
|
|
27
31
|
{
|
|
28
32
|
ref,
|
|
29
33
|
"aria-hidden": "true",
|
|
30
34
|
className: cn(
|
|
31
|
-
"pointer-events-none absolute top-0 left-0 z-10 min-w-
|
|
35
|
+
"pointer-events-none absolute top-0 left-0 z-10 min-w-30 rounded-popover surface-overlay px-3 py-2.5 text-fs-120 shadow-overlay",
|
|
32
36
|
"motion-safe:transition-transform motion-safe:duration-100 motion-safe:ease-out",
|
|
33
37
|
className
|
|
34
38
|
),
|
|
35
39
|
style: {
|
|
36
40
|
maxWidth: Math.max(120, Math.min(260, containerWidth - EDGE * 2)),
|
|
37
|
-
transform: `translate3d(${Math.round(left)}px, ${Math.round(
|
|
41
|
+
transform: `translate3d(${Math.round(left)}px, ${Math.round(top)}px, 0) translateY(-50%)`
|
|
38
42
|
},
|
|
39
43
|
children: [
|
|
40
|
-
title ? /* @__PURE__ */ jsx("div", { className: "mb-1.5 font-bold text-
|
|
44
|
+
title ? /* @__PURE__ */ jsx("div", { className: "mb-1.5 font-bold text-fs-120 text-ink", children: title }) : null,
|
|
41
45
|
body ? /* @__PURE__ */ jsx("div", { className: "text-ink-2 leading-snug", children: body }) : null,
|
|
42
46
|
/* @__PURE__ */ jsx("div", { className: "flex flex-col gap-1", children: rows.map((row) => /* @__PURE__ */ jsxs(
|
|
43
47
|
"div",
|
|
@@ -52,7 +56,7 @@ function ChartTooltip({
|
|
|
52
56
|
{
|
|
53
57
|
className: cn(
|
|
54
58
|
"size-2.5 shrink-0",
|
|
55
|
-
row.shape === "line" || row.shape === "dashed" || row.shape === "dot" ? "rounded-pill" : "rounded-
|
|
59
|
+
row.shape === "line" || row.shape === "dashed" || row.shape === "dot" ? "rounded-pill" : "rounded-xs"
|
|
56
60
|
),
|
|
57
61
|
style: { background: row.color }
|
|
58
62
|
}
|
|
@@ -77,7 +81,13 @@ function tooltipLeft(x, width, containerWidth, side) {
|
|
|
77
81
|
const chosen = preferLeft && fitsLeft ? leftSide : fitsRight ? right : fitsLeft ? leftSide : right;
|
|
78
82
|
return Math.max(EDGE, Math.min(chosen, containerWidth - width - EDGE));
|
|
79
83
|
}
|
|
84
|
+
function tooltipCenterY(y, height, containerHeight) {
|
|
85
|
+
const min = height / 2 + EDGE;
|
|
86
|
+
const max = containerHeight - height / 2 - EDGE;
|
|
87
|
+
return max < min ? containerHeight / 2 : Math.max(min, Math.min(y, max));
|
|
88
|
+
}
|
|
80
89
|
export {
|
|
81
90
|
ChartTooltip,
|
|
91
|
+
tooltipCenterY,
|
|
82
92
|
tooltipLeft
|
|
83
93
|
};
|
|
@@ -91,8 +91,8 @@ function ChartHeader({
|
|
|
91
91
|
const owned = typeof dimension === "string" ? [dimension] : dimension;
|
|
92
92
|
const own = owned.some((id) => xf.filters[id] != null);
|
|
93
93
|
return /* @__PURE__ */ jsxs("div", { className: "mb-1 flex min-w-0 flex-wrap items-baseline justify-between gap-x-3 gap-y-1", children: [
|
|
94
|
-
/* @__PURE__ */ jsx("h3", { className: "m-0 min-w-0 truncate font-bold text-
|
|
95
|
-
/* @__PURE__ */ jsxs("div", { className: "flex shrink-0 items-center gap-2 font-semibold text-
|
|
94
|
+
/* @__PURE__ */ jsx("h3", { className: "m-0 min-w-0 truncate font-bold text-fs-130 text-ink", children: title }),
|
|
95
|
+
/* @__PURE__ */ jsxs("div", { className: "flex shrink-0 items-center gap-2 font-semibold text-fs-120 text-ink-3 tabular-nums", children: [
|
|
96
96
|
/* @__PURE__ */ jsx("span", { "aria-live": "polite", children: labels.count(records, xf.total) }),
|
|
97
97
|
own ? /* @__PURE__ */ jsx(
|
|
98
98
|
"button",
|
|
@@ -101,7 +101,7 @@ function ChartHeader({
|
|
|
101
101
|
onClick: () => {
|
|
102
102
|
for (const id of owned) xf.clear(id);
|
|
103
103
|
},
|
|
104
|
-
className: "cursor-pointer rounded-button border-0 bg-surface-2 px-2 py-0.5 font-semibold text-
|
|
104
|
+
className: "cursor-pointer rounded-button border-0 bg-surface-2 px-2 py-0.5 font-semibold text-fs-110 text-ink-2 hover:text-ink",
|
|
105
105
|
children: labels.clear
|
|
106
106
|
}
|
|
107
107
|
) : null
|
|
@@ -316,7 +316,7 @@ function CrossfilterSummary({
|
|
|
316
316
|
{
|
|
317
317
|
type: "button",
|
|
318
318
|
onClick: () => xf.clear(),
|
|
319
|
-
className: "cursor-pointer rounded-button border-0 bg-surface-2 px-3 py-1 font-semibold text-
|
|
319
|
+
className: "cursor-pointer rounded-button border-0 bg-surface-2 px-3 py-1 font-semibold text-fs-120 text-ink-2 hover:text-ink",
|
|
320
320
|
children: labels.clearAll
|
|
321
321
|
}
|
|
322
322
|
) : null
|
|
@@ -236,13 +236,21 @@ function DonutPlot({
|
|
|
236
236
|
const from = semi ? -Math.PI / 2 : degToRad(startAngle);
|
|
237
237
|
const to = semi ? Math.PI / 2 : from + TAU;
|
|
238
238
|
const pad = gap / Math.max(1, (inner2 + radius2) / (variant === "pie" ? 1.6 : 2));
|
|
239
|
-
const
|
|
240
|
-
|
|
241
|
-
(_, index) => visible2.some((entry) => entry.index === index) ? shown[index] ?? 0 : 0
|
|
242
|
-
),
|
|
243
|
-
{ startAngle: from, endAngle: to, padAngle: pad }
|
|
239
|
+
const values = items.map(
|
|
240
|
+
(_, index) => visible2.some((entry) => entry.index === index) ? shown[index] ?? 0 : 0
|
|
244
241
|
);
|
|
245
|
-
|
|
242
|
+
const slices2 = sliceAngles(values, { startAngle: from, endAngle: to, padAngle: pad });
|
|
243
|
+
const hits2 = sliceAngles(values, { startAngle: from, endAngle: to });
|
|
244
|
+
return {
|
|
245
|
+
visible: visible2.map((entry) => entry.index),
|
|
246
|
+
sum: sum2,
|
|
247
|
+
radius: radius2,
|
|
248
|
+
inner: inner2,
|
|
249
|
+
cx: cx2,
|
|
250
|
+
cy: cy2,
|
|
251
|
+
slices: slices2,
|
|
252
|
+
hits: hits2
|
|
253
|
+
};
|
|
246
254
|
}, [
|
|
247
255
|
items,
|
|
248
256
|
shown,
|
|
@@ -257,7 +265,7 @@ function DonutPlot({
|
|
|
257
265
|
gap,
|
|
258
266
|
startAngle
|
|
259
267
|
]);
|
|
260
|
-
const { visible, sum, radius, inner, cx, cy, slices } = geometry;
|
|
268
|
+
const { visible, sum, radius, inner, cx, cy, slices, hits } = geometry;
|
|
261
269
|
const nav = useIndexNavigation(visible.length, { wrap: true });
|
|
262
270
|
const activeIndex = nav.active != null ? visible[nav.active] ?? null : null;
|
|
263
271
|
const legendIndex = state.highlighted ? items.findIndex((item) => item.datum.id === state.highlighted) : -1;
|
|
@@ -276,6 +284,19 @@ function DonutPlot({
|
|
|
276
284
|
),
|
|
277
285
|
[slices, cx, cy, inner, radius, cornerRadius]
|
|
278
286
|
);
|
|
287
|
+
const hitPaths = useMemo(
|
|
288
|
+
() => hits.map(
|
|
289
|
+
(hit) => hit.fraction > 0 ? arcPath({
|
|
290
|
+
cx,
|
|
291
|
+
cy,
|
|
292
|
+
innerRadius: inner,
|
|
293
|
+
outerRadius: radius + Math.max(0, explode),
|
|
294
|
+
startAngle: hit.start,
|
|
295
|
+
endAngle: hit.end
|
|
296
|
+
}) : ""
|
|
297
|
+
),
|
|
298
|
+
[hits, cx, cy, inner, radius, explode]
|
|
299
|
+
);
|
|
279
300
|
const outsideLabels = useMemo(() => {
|
|
280
301
|
if (!outside) return [];
|
|
281
302
|
const lines = outside === "both" ? 2 : 1;
|
|
@@ -405,7 +426,6 @@ function DonutPlot({
|
|
|
405
426
|
const item = items[index];
|
|
406
427
|
const path = paths[index];
|
|
407
428
|
if (!item || !path) return null;
|
|
408
|
-
const position = visible.indexOf(index);
|
|
409
429
|
const focused = focusIndex === index;
|
|
410
430
|
const dimmed = focusIndex != null && !focused;
|
|
411
431
|
const shift = focused ? polarPoint(0, 0, explode, slice.mid) : { x: 0, y: 0 };
|
|
@@ -418,11 +438,7 @@ function DonutPlot({
|
|
|
418
438
|
dx: shift.x,
|
|
419
439
|
dy: shift.y,
|
|
420
440
|
originX: cx,
|
|
421
|
-
originY: cy
|
|
422
|
-
clickable: onSliceClick != null,
|
|
423
|
-
onEnter: (event) => nav.hover(position, event),
|
|
424
|
-
onLeave: nav.leave,
|
|
425
|
-
onClick: onSliceClick ? () => onSliceClick(item.datum) : void 0
|
|
441
|
+
originY: cy
|
|
426
442
|
},
|
|
427
443
|
item.datum.id
|
|
428
444
|
);
|
|
@@ -456,7 +472,7 @@ function DonutPlot({
|
|
|
456
472
|
x: label.x,
|
|
457
473
|
y: label.y,
|
|
458
474
|
textAnchor: label.side > 0 ? "start" : "end",
|
|
459
|
-
className: "text-
|
|
475
|
+
className: "text-fs-110",
|
|
460
476
|
children: label.lines === 2 ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
461
477
|
/* @__PURE__ */ jsx("tspan", { x: label.x, dy: "-0.25em", className: "fill-ink-2 font-medium", children: truncate(label.name, maxChars) }),
|
|
462
478
|
/* @__PURE__ */ jsx("tspan", { x: label.x, dy: "1.35em", className: "fill-ink font-bold tabular-nums", children: label.percent })
|
|
@@ -478,6 +494,22 @@ function DonutPlot({
|
|
|
478
494
|
label.id
|
|
479
495
|
);
|
|
480
496
|
}),
|
|
497
|
+
hitPaths.map((d, index) => {
|
|
498
|
+
const item = items[index];
|
|
499
|
+
if (!item || !d) return null;
|
|
500
|
+
const position = visible.indexOf(index);
|
|
501
|
+
return /* @__PURE__ */ jsx(
|
|
502
|
+
SliceHitArea,
|
|
503
|
+
{
|
|
504
|
+
d,
|
|
505
|
+
clickable: onSliceClick != null,
|
|
506
|
+
onEnter: (event) => nav.hover(position, event),
|
|
507
|
+
onLeave: nav.leave,
|
|
508
|
+
onClick: onSliceClick ? () => onSliceClick(item.datum) : void 0
|
|
509
|
+
},
|
|
510
|
+
item.datum.id
|
|
511
|
+
);
|
|
512
|
+
}),
|
|
481
513
|
showCenter ? /* @__PURE__ */ jsxs("g", { "data-fade": "", ...DECORATIVE, textAnchor: "middle", className: "pointer-events-none", children: [
|
|
482
514
|
/* @__PURE__ */ jsx(
|
|
483
515
|
"text",
|
|
@@ -528,7 +560,17 @@ function DonutPlot({
|
|
|
528
560
|
className: "pointer-events-none absolute inset-0 rounded-xs outline-none focus-visible:outline-2 focus-visible:outline-accent-ink focus-visible:outline-offset-2"
|
|
529
561
|
}
|
|
530
562
|
),
|
|
531
|
-
tooltip && anchor && rows.length ? /* @__PURE__ */ jsx(
|
|
563
|
+
tooltip && anchor && rows.length ? /* @__PURE__ */ jsx(
|
|
564
|
+
ChartTooltip,
|
|
565
|
+
{
|
|
566
|
+
x: anchor.x,
|
|
567
|
+
y: anchor.y,
|
|
568
|
+
containerWidth: width,
|
|
569
|
+
containerHeight: height,
|
|
570
|
+
rows,
|
|
571
|
+
side: tipSide
|
|
572
|
+
}
|
|
573
|
+
) : null
|
|
532
574
|
] });
|
|
533
575
|
}
|
|
534
576
|
const SliceMark = memo(function SliceMark2({
|
|
@@ -538,19 +580,32 @@ const SliceMark = memo(function SliceMark2({
|
|
|
538
580
|
dx,
|
|
539
581
|
dy,
|
|
540
582
|
originX,
|
|
541
|
-
originY
|
|
542
|
-
clickable,
|
|
543
|
-
onEnter,
|
|
544
|
-
onLeave,
|
|
545
|
-
onClick
|
|
583
|
+
originY
|
|
546
584
|
}) {
|
|
585
|
+
return /* @__PURE__ */ jsx(
|
|
586
|
+
"path",
|
|
587
|
+
{
|
|
588
|
+
"data-slice": "",
|
|
589
|
+
d,
|
|
590
|
+
className: "pointer-events-none motion-safe:transition-[transform,opacity] motion-safe:duration-200 motion-safe:ease-out",
|
|
591
|
+
style: {
|
|
592
|
+
fill: paint,
|
|
593
|
+
opacity: dimmed ? 0.4 : 1,
|
|
594
|
+
transform: `translate(${Math.round(dx * 100) / 100}px, ${Math.round(dy * 100) / 100}px)`,
|
|
595
|
+
transformOrigin: `${originX}px ${originY}px`
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
);
|
|
599
|
+
});
|
|
600
|
+
function SliceHitArea({ d, clickable, onEnter, onLeave, onClick }) {
|
|
547
601
|
return (
|
|
548
602
|
// biome-ignore lint/a11y/noStaticElementInteractions: pointer hover only; keyboard goes through the chart slider.
|
|
549
603
|
/* @__PURE__ */ jsx(
|
|
550
604
|
"path",
|
|
551
605
|
{
|
|
552
|
-
"data-slice": "",
|
|
606
|
+
"data-slice-hit": "",
|
|
553
607
|
d,
|
|
608
|
+
fill: "transparent",
|
|
554
609
|
onPointerEnter: onEnter,
|
|
555
610
|
onPointerMove: onEnter,
|
|
556
611
|
onPointerLeave: onLeave,
|
|
@@ -558,20 +613,11 @@ const SliceMark = memo(function SliceMark2({
|
|
|
558
613
|
onClick: (event) => {
|
|
559
614
|
if (event.detail === 0) onClick?.();
|
|
560
615
|
},
|
|
561
|
-
className: cn(
|
|
562
|
-
"motion-safe:transition-[transform,opacity] motion-safe:duration-200 motion-safe:ease-out",
|
|
563
|
-
clickable && "cursor-pointer"
|
|
564
|
-
),
|
|
565
|
-
style: {
|
|
566
|
-
fill: paint,
|
|
567
|
-
opacity: dimmed ? 0.4 : 1,
|
|
568
|
-
transform: `translate(${Math.round(dx * 100) / 100}px, ${Math.round(dy * 100) / 100}px)`,
|
|
569
|
-
transformOrigin: `${originX}px ${originY}px`
|
|
570
|
-
}
|
|
616
|
+
className: cn(clickable && "cursor-pointer")
|
|
571
617
|
}
|
|
572
618
|
)
|
|
573
619
|
);
|
|
574
|
-
}
|
|
620
|
+
}
|
|
575
621
|
const PATTERN_KINDS = 5;
|
|
576
622
|
function SlicePattern({ id, kind, color }) {
|
|
577
623
|
const motif = { fill: "var(--surface)", fillOpacity: 0.5 };
|
|
@@ -443,7 +443,7 @@ function DumbbellPlot({
|
|
|
443
443
|
"g",
|
|
444
444
|
{
|
|
445
445
|
"data-fade": "",
|
|
446
|
-
className: "font-bold text-
|
|
446
|
+
className: "font-bold text-fs-110 tabular-nums",
|
|
447
447
|
style: { fill: "var(--ink-2)", opacity: dimmed ? 0.4 : 1 },
|
|
448
448
|
children: row.values.map((value, index) => /* @__PURE__ */ jsx(
|
|
449
449
|
"text",
|
|
@@ -465,7 +465,7 @@ function DumbbellPlot({
|
|
|
465
465
|
x: cx,
|
|
466
466
|
y: -10,
|
|
467
467
|
textAnchor: "middle",
|
|
468
|
-
className: "font-bold text-
|
|
468
|
+
className: "font-bold text-fs-120 tabular-nums",
|
|
469
469
|
style: { fill: deltaColor(row), opacity: dimmed ? 0.4 : 1 },
|
|
470
470
|
children: changeText(row, delta, fmt)
|
|
471
471
|
}
|
|
@@ -497,7 +497,7 @@ function DumbbellPlot({
|
|
|
497
497
|
y: cy,
|
|
498
498
|
dy: "0.34em",
|
|
499
499
|
textAnchor: "end",
|
|
500
|
-
className: "font-semibold text-
|
|
500
|
+
className: "font-semibold text-fs-120",
|
|
501
501
|
style: {
|
|
502
502
|
fill: active === i ? "var(--ink)" : "var(--ink-2)",
|
|
503
503
|
opacity: dimmed ? 0.5 : 1
|
|
@@ -509,7 +509,7 @@ function DumbbellPlot({
|
|
|
509
509
|
"g",
|
|
510
510
|
{
|
|
511
511
|
"data-fade": "",
|
|
512
|
-
className: "font-bold text-
|
|
512
|
+
className: "font-bold text-fs-110 tabular-nums",
|
|
513
513
|
style: { fill: "var(--ink-2)", opacity: dimmed ? 0.4 : 1 },
|
|
514
514
|
children: row.values.length === 2 ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
515
515
|
/* @__PURE__ */ jsx("text", { x: lowPx - 12, y: cy, dy: "0.34em", textAnchor: "end", children: fmt(
|
|
@@ -538,7 +538,7 @@ function DumbbellPlot({
|
|
|
538
538
|
y: cy,
|
|
539
539
|
dy: "0.34em",
|
|
540
540
|
textAnchor: "end",
|
|
541
|
-
className: "font-bold text-
|
|
541
|
+
className: "font-bold text-fs-120 tabular-nums",
|
|
542
542
|
style: { fill: deltaColor(row), opacity: dimmed ? 0.4 : 1 },
|
|
543
543
|
children: changeText(row, delta, fmt)
|
|
544
544
|
}
|
|
@@ -106,7 +106,7 @@ function FillGaugeChart({
|
|
|
106
106
|
"div",
|
|
107
107
|
{
|
|
108
108
|
"aria-hidden": "true",
|
|
109
|
-
className: "absolute truncate px-1 text-center font-semibold text-
|
|
109
|
+
className: "absolute truncate px-1 text-center font-semibold text-fs-120 text-ink-2",
|
|
110
110
|
style: {
|
|
111
111
|
left: column * cellWidth,
|
|
112
112
|
top: blockTop(row) + size + 2,
|
|
@@ -274,10 +274,10 @@ function FunnelPlot({
|
|
|
274
274
|
style: { stroke: "var(--ink-3)", strokeOpacity: 0.5 }
|
|
275
275
|
}
|
|
276
276
|
),
|
|
277
|
-
/* @__PURE__ */ jsx("text", { x, y: shape.cy - 3, className: "fill-ink-2 font-medium text-
|
|
278
|
-
/* @__PURE__ */ jsxs("text", { x, y: shape.cy + 12, className: "text-
|
|
277
|
+
/* @__PURE__ */ jsx("text", { x, y: shape.cy - 3, className: "fill-ink-2 font-medium text-fs-110", children: truncate(datum.name, maxChars2) }),
|
|
278
|
+
/* @__PURE__ */ jsxs("text", { x, y: shape.cy + 12, className: "text-fs-120", children: [
|
|
279
279
|
/* @__PURE__ */ jsx("tspan", { className: "fill-ink font-bold tabular-nums", children: format(datum.value) }),
|
|
280
|
-
/* @__PURE__ */ jsxs("tspan", { className: "fill-ink-3 text-
|
|
280
|
+
/* @__PURE__ */ jsxs("tspan", { className: "fill-ink-3 text-fs-110 tabular-nums", children: [
|
|
281
281
|
" ",
|
|
282
282
|
formatPercent(shape.stage.ofFirst, { decimals: 0 })
|
|
283
283
|
] })
|
|
@@ -302,7 +302,7 @@ function FunnelPlot({
|
|
|
302
302
|
x: shape.cx,
|
|
303
303
|
y: 16,
|
|
304
304
|
textAnchor: "middle",
|
|
305
|
-
className: "fill-ink-2 font-medium text-
|
|
305
|
+
className: "fill-ink-2 font-medium text-fs-110",
|
|
306
306
|
children: truncate(datum.name, maxChars)
|
|
307
307
|
}
|
|
308
308
|
),
|
|
@@ -312,7 +312,7 @@ function FunnelPlot({
|
|
|
312
312
|
x: shape.cx,
|
|
313
313
|
y: 32,
|
|
314
314
|
textAnchor: "middle",
|
|
315
|
-
className: "fill-ink font-bold text-
|
|
315
|
+
className: "fill-ink font-bold text-fs-120 tabular-nums",
|
|
316
316
|
children: truncate(format(datum.value), maxChars + 2)
|
|
317
317
|
}
|
|
318
318
|
)
|
|
@@ -351,7 +351,7 @@ function FunnelPlot({
|
|
|
351
351
|
x,
|
|
352
352
|
y: y + 4,
|
|
353
353
|
textAnchor: "middle",
|
|
354
|
-
className: cn("fill-ink-2 font-bold text-
|
|
354
|
+
className: cn("fill-ink-2 font-bold text-fs-105 tabular-nums"),
|
|
355
355
|
children: formatPercent(conversion, { decimals: 0 })
|
|
356
356
|
}
|
|
357
357
|
)
|
|
@@ -747,7 +747,7 @@ function GanttBody({
|
|
|
747
747
|
"aria-label": texts.zoomLevels[level2],
|
|
748
748
|
onClick: () => onZoom(level2),
|
|
749
749
|
className: cn(
|
|
750
|
-
"cursor-pointer rounded-button px-2 py-1 font-semibold text-
|
|
750
|
+
"cursor-pointer rounded-button px-2 py-1 font-semibold text-fs-115 outline-none focus-visible:outline-2 focus-visible:outline-accent-ink @md/chart:px-3",
|
|
751
751
|
zoom === level2 ? "bg-surface text-ink shadow-xs" : "text-ink-3 hover:text-ink"
|
|
752
752
|
),
|
|
753
753
|
children: [
|
|
@@ -758,7 +758,7 @@ function GanttBody({
|
|
|
758
758
|
level2
|
|
759
759
|
))
|
|
760
760
|
] }),
|
|
761
|
-
critical || baselines ? /* @__PURE__ */ jsxs("ul", { className: "m-0 hidden min-w-0 list-none items-center gap-3 p-0 text-
|
|
761
|
+
critical || baselines ? /* @__PURE__ */ jsxs("ul", { className: "m-0 hidden min-w-0 list-none items-center gap-3 p-0 text-fs-115 text-ink-3 @xl/chart:flex", children: [
|
|
762
762
|
critical ? /* @__PURE__ */ jsxs("li", { className: "flex items-center gap-1.5 whitespace-nowrap", children: [
|
|
763
763
|
/* @__PURE__ */ jsx(
|
|
764
764
|
"span",
|
|
@@ -827,7 +827,7 @@ function GanttBody({
|
|
|
827
827
|
{
|
|
828
828
|
type: "button",
|
|
829
829
|
onClick: () => scrollToTime(todayTime, true),
|
|
830
|
-
className: "shrink-0 cursor-pointer rounded-button border-divider bg-surface-control px-3 py-1 font-semibold text-
|
|
830
|
+
className: "shrink-0 cursor-pointer rounded-button border-divider bg-surface-control px-3 py-1 font-semibold text-fs-115 text-ink-2 outline-none hover:bg-surface-2 focus-visible:outline-2 focus-visible:outline-accent-ink",
|
|
831
831
|
children: texts.today
|
|
832
832
|
}
|
|
833
833
|
) : null
|
|
@@ -864,7 +864,7 @@ function GanttBody({
|
|
|
864
864
|
"div",
|
|
865
865
|
{
|
|
866
866
|
"aria-hidden": "true",
|
|
867
|
-
className: "flex w-full items-center font-semibold text-
|
|
867
|
+
className: "flex w-full items-center font-semibold text-fs-110 text-ink-3",
|
|
868
868
|
style: { height: HEADER_HEIGHT / 2 },
|
|
869
869
|
children: [
|
|
870
870
|
/* @__PURE__ */ jsx("span", { className: "min-w-0 flex-1 truncate px-3", children: texts.tasks }),
|
|
@@ -930,7 +930,7 @@ function GanttBody({
|
|
|
930
930
|
}
|
|
931
931
|
},
|
|
932
932
|
className: cn(
|
|
933
|
-
"flex items-center text-
|
|
933
|
+
"flex items-center text-fs-120 outline-none focus-visible:bg-accent-soft focus-visible:shadow-[inset_2px_0_0_var(--accent-word)]",
|
|
934
934
|
activeIndex === i && "bg-[var(--chart-grid)]"
|
|
935
935
|
),
|
|
936
936
|
style: { height: rowHeight, boxShadow: "inset 0 -1px 0 var(--chart-grid)" },
|
|
@@ -980,7 +980,7 @@ function GanttBody({
|
|
|
980
980
|
"span",
|
|
981
981
|
{
|
|
982
982
|
"aria-hidden": "true",
|
|
983
|
-
className: "size-2 shrink-0 rotate-45 rounded-
|
|
983
|
+
className: "size-2 shrink-0 rotate-45 rounded-xs",
|
|
984
984
|
style: { background: row.task.color ?? "var(--ink)" }
|
|
985
985
|
}
|
|
986
986
|
) : null,
|
|
@@ -1001,7 +1001,7 @@ function GanttBody({
|
|
|
1001
1001
|
"span",
|
|
1002
1002
|
{
|
|
1003
1003
|
"aria-hidden": "true",
|
|
1004
|
-
className: "shrink-0 truncate pr-3 text-right text-
|
|
1004
|
+
className: "shrink-0 truncate pr-3 text-right text-fs-115 text-ink-3 tabular-nums",
|
|
1005
1005
|
style: { width: COLUMN_WIDTH[column] },
|
|
1006
1006
|
children: column === "start" ? columnDate(row.start) : column === "end" ? row.task.milestone && !row.parent ? "" : columnDate(withTime ? row.end : displayEnd(row.start, row.end)) : row.task.milestone && !row.parent ? "" : formatPercent(row.progress, { decimals: 0 })
|
|
1007
1007
|
},
|
|
@@ -64,7 +64,7 @@ const TimelineHeader = memo(function TimelineHeader2({
|
|
|
64
64
|
x,
|
|
65
65
|
y: HEADER_ROW / 2,
|
|
66
66
|
dy: "0.34em",
|
|
67
|
-
className: "fill-ink-2 font-semibold text-
|
|
67
|
+
className: "fill-ink-2 font-semibold text-fs-115",
|
|
68
68
|
children: cell.label
|
|
69
69
|
}
|
|
70
70
|
) : null
|
|
@@ -100,7 +100,7 @@ const TimelineHeader = memo(function TimelineHeader2({
|
|
|
100
100
|
y: HEADER_ROW + HEADER_ROW / 2,
|
|
101
101
|
dy: "0.34em",
|
|
102
102
|
textAnchor: "middle",
|
|
103
|
-
className: "fill-ink-3 font-medium text-
|
|
103
|
+
className: "fill-ink-3 font-medium text-fs-105 tabular-nums",
|
|
104
104
|
children: cell.label
|
|
105
105
|
}
|
|
106
106
|
) : null
|
|
@@ -124,7 +124,7 @@ const TimelineHeader = memo(function TimelineHeader2({
|
|
|
124
124
|
y: 8,
|
|
125
125
|
dy: "0.34em",
|
|
126
126
|
textAnchor: "middle",
|
|
127
|
-
className: "font-bold text-
|
|
127
|
+
className: "font-bold text-fs-100",
|
|
128
128
|
style: { fill: "var(--surface)" },
|
|
129
129
|
children: todayLabel
|
|
130
130
|
}
|
|
@@ -441,7 +441,7 @@ function BarLabel({
|
|
|
441
441
|
y,
|
|
442
442
|
dy: "0.34em",
|
|
443
443
|
textAnchor: end ? "end" : void 0,
|
|
444
|
-
className: outside ? `pointer-events-none fill-ink-2 text-
|
|
444
|
+
className: outside ? `pointer-events-none fill-ink-2 text-fs-110 ${strong ? "font-bold" : "font-medium"}` : "pointer-events-none font-semibold text-fs-110",
|
|
445
445
|
style: outside ? void 0 : { fill: onFill ? "var(--surface)" : "var(--ink)" },
|
|
446
446
|
children: text
|
|
447
447
|
}
|
|
@@ -580,7 +580,7 @@ const AnnotationLayer = memo(function AnnotationLayer2({
|
|
|
580
580
|
x: item.x0 + 10,
|
|
581
581
|
y: y + 7.5,
|
|
582
582
|
dy: "0.34em",
|
|
583
|
-
className: "fill-ink font-semibold text-
|
|
583
|
+
className: "fill-ink font-semibold text-fs-105",
|
|
584
584
|
children: item.label
|
|
585
585
|
}
|
|
586
586
|
)
|
|
@@ -341,7 +341,7 @@ function GaugePlot({
|
|
|
341
341
|
textAnchor: "middle",
|
|
342
342
|
dominantBaseline: "central",
|
|
343
343
|
...DECORATIVE,
|
|
344
|
-
className: "fill-ink-3 font-medium text-
|
|
344
|
+
className: "fill-ink-3 font-medium text-fs-100 tabular-nums",
|
|
345
345
|
children: format(tick.v)
|
|
346
346
|
},
|
|
347
347
|
tick.v
|
|
@@ -374,7 +374,7 @@ function GaugePlot({
|
|
|
374
374
|
x: minPoint.x,
|
|
375
375
|
y: minPoint.y + band / 2 + 15,
|
|
376
376
|
textAnchor: "middle",
|
|
377
|
-
className: "fill-ink-3 font-semibold text-
|
|
377
|
+
className: "fill-ink-3 font-semibold text-fs-110 tabular-nums",
|
|
378
378
|
children: format(min)
|
|
379
379
|
}
|
|
380
380
|
),
|
|
@@ -384,7 +384,7 @@ function GaugePlot({
|
|
|
384
384
|
x: maxPoint.x,
|
|
385
385
|
y: maxPoint.y + band / 2 + 15,
|
|
386
386
|
textAnchor: "middle",
|
|
387
|
-
className: "fill-ink-3 font-semibold text-
|
|
387
|
+
className: "fill-ink-3 font-semibold text-fs-110 tabular-nums",
|
|
388
388
|
children: format(max)
|
|
389
389
|
}
|
|
390
390
|
)
|
|
@@ -415,7 +415,7 @@ function GaugePlot({
|
|
|
415
415
|
{
|
|
416
416
|
x: cx,
|
|
417
417
|
y: labelY,
|
|
418
|
-
className: "font-bold text-
|
|
418
|
+
className: "font-bold text-fs-110",
|
|
419
419
|
style: { fill: valueColor },
|
|
420
420
|
children: active.label
|
|
421
421
|
}
|
|
@@ -419,7 +419,7 @@ function GlobePlot({
|
|
|
419
419
|
};
|
|
420
420
|
const activeRegion = hover?.kind === "region" ? regions[hover.index] : void 0;
|
|
421
421
|
const activePoint = hover?.kind === "point" ? points[hover.index] : void 0;
|
|
422
|
-
const buttonClass = "inline-flex h-7 cursor-pointer items-center rounded-button border-0 bg-surface-2 px-3 font-semibold text-
|
|
422
|
+
const buttonClass = "inline-flex h-7 cursor-pointer items-center rounded-button border-0 bg-surface-2 px-3 font-semibold text-fs-120 text-ink-2 outline-none hover:bg-sunken hover:text-ink focus-visible:outline-2 focus-visible:outline-accent-ink";
|
|
423
423
|
return /* @__PURE__ */ jsxs("div", { className: "relative", style: { width, height }, children: [
|
|
424
424
|
/* @__PURE__ */ jsxs(
|
|
425
425
|
"div",
|
|
@@ -250,7 +250,7 @@ function HeatmapGrid({
|
|
|
250
250
|
textAnchor: "end",
|
|
251
251
|
dominantBaseline: "central",
|
|
252
252
|
className: cn(
|
|
253
|
-
"select-none text-
|
|
253
|
+
"select-none text-fs-110 transition-[fill] duration-150",
|
|
254
254
|
lit?.row === row ? "fill-ink font-bold" : "fill-ink-3 font-semibold"
|
|
255
255
|
),
|
|
256
256
|
children: estimateTextWidth(label, 11) > left - 10 ? `${label.slice(0, Math.max(1, Math.floor((left - 14) / 6.4)))}\u2026` : label
|
|
@@ -264,7 +264,7 @@ function HeatmapGrid({
|
|
|
264
264
|
y: TOP - 8,
|
|
265
265
|
textAnchor: square && !honeycomb ? "start" : "middle",
|
|
266
266
|
className: cn(
|
|
267
|
-
"select-none text-
|
|
267
|
+
"select-none text-fs-110 transition-[fill] duration-150",
|
|
268
268
|
lit?.column === index ? "fill-ink font-bold" : "fill-ink-3 font-semibold"
|
|
269
269
|
),
|
|
270
270
|
children: label
|
|
@@ -300,7 +300,7 @@ function HeatmapGrid({
|
|
|
300
300
|
y: c.y,
|
|
301
301
|
textAnchor: "middle",
|
|
302
302
|
dominantBaseline: "central",
|
|
303
|
-
className: "pointer-events-none select-none font-bold text-
|
|
303
|
+
className: "pointer-events-none select-none font-bold text-fs-110 tabular-nums",
|
|
304
304
|
style: { fill: inkOn(stop?.strength ?? 0) },
|
|
305
305
|
children: text
|
|
306
306
|
}
|
|
@@ -334,7 +334,7 @@ function HeatmapGrid({
|
|
|
334
334
|
y: y + ch / 2,
|
|
335
335
|
textAnchor: "middle",
|
|
336
336
|
dominantBaseline: "central",
|
|
337
|
-
className: "pointer-events-none select-none font-bold text-
|
|
337
|
+
className: "pointer-events-none select-none font-bold text-fs-110 tabular-nums",
|
|
338
338
|
style: {
|
|
339
339
|
fill: inkOn(stop?.strength ?? 0),
|
|
340
340
|
opacity: dimmed ? 0.5 : 1
|
|
@@ -441,7 +441,7 @@ function HeatmapLegend({
|
|
|
441
441
|
format
|
|
442
442
|
}) {
|
|
443
443
|
if (ranges && ranges.length > 0) {
|
|
444
|
-
return /* @__PURE__ */ jsx("ul", { className: "@md/chart:-order-1 m-0 flex list-none flex-wrap @md/chart:justify-end gap-x-3 gap-y-1 p-0 text-
|
|
444
|
+
return /* @__PURE__ */ jsx("ul", { className: "@md/chart:-order-1 m-0 flex list-none flex-wrap @md/chart:justify-end gap-x-3 gap-y-1 p-0 text-fs-120", children: ranges.map((range, index) => /* @__PURE__ */ jsxs(
|
|
445
445
|
"li",
|
|
446
446
|
{
|
|
447
447
|
className: "inline-flex min-w-0 items-center gap-1.5 font-semibold text-ink-2",
|
|
@@ -450,7 +450,7 @@ function HeatmapLegend({
|
|
|
450
450
|
"span",
|
|
451
451
|
{
|
|
452
452
|
"aria-hidden": "true",
|
|
453
|
-
className: "size-2.5 shrink-0 rounded-
|
|
453
|
+
className: "size-2.5 shrink-0 rounded-xs",
|
|
454
454
|
style: {
|
|
455
455
|
background: rangeColor(range, index, ranges.length).color
|
|
456
456
|
}
|
|
@@ -466,7 +466,7 @@ function HeatmapLegend({
|
|
|
466
466
|
"div",
|
|
467
467
|
{
|
|
468
468
|
"aria-hidden": "true",
|
|
469
|
-
className: "@md/chart:-order-1 flex w-full max-w-[260px] @md/chart:self-end flex-col gap-1 text-
|
|
469
|
+
className: "@md/chart:-order-1 flex w-full max-w-[260px] @md/chart:self-end flex-col gap-1 text-fs-110 text-ink-3 tabular-nums",
|
|
470
470
|
children: [
|
|
471
471
|
/* @__PURE__ */ jsx(
|
|
472
472
|
"span",
|
|
@@ -83,7 +83,7 @@ function HierarchyMorph({
|
|
|
83
83
|
"aria-pressed": current === option,
|
|
84
84
|
onClick: () => choose(option),
|
|
85
85
|
className: cn(
|
|
86
|
-
"cursor-pointer rounded-button border px-3 py-1 text-
|
|
86
|
+
"cursor-pointer rounded-button border px-3 py-1 text-fs-120 font-semibold outline-none focus-visible:outline-2 focus-visible:outline-accent-ink focus-visible:outline-offset-2",
|
|
87
87
|
current === option ? "border-transparent bg-accent-soft text-accent-ink" : "border-line bg-transparent text-ink-3 hover:text-ink"
|
|
88
88
|
),
|
|
89
89
|
children: labels[option]
|
|
@@ -280,7 +280,7 @@ function MorphPlot({
|
|
|
280
280
|
x: slot.x,
|
|
281
281
|
y: slot.y,
|
|
282
282
|
dominantBaseline: "central",
|
|
283
|
-
className: cn("text-
|
|
283
|
+
className: cn("text-fs-110", slot.group ? "font-bold" : "font-semibold"),
|
|
284
284
|
style: { fill: inkOn(strength), opacity: treemapOpacity },
|
|
285
285
|
children: treemapText
|
|
286
286
|
}
|
|
@@ -292,7 +292,7 @@ function MorphPlot({
|
|
|
292
292
|
y: shape.sectorCenter.y,
|
|
293
293
|
textAnchor: "middle",
|
|
294
294
|
dominantBaseline: "central",
|
|
295
|
-
className: "font-semibold text-
|
|
295
|
+
className: "font-semibold text-fs-110",
|
|
296
296
|
style: { fill: inkOn(strength), opacity: sectorOpacity },
|
|
297
297
|
children: sectorText
|
|
298
298
|
}
|