@jcsoftdev/ui 0.1.6 → 0.2.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 +102 -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.js +3 -3
- package/dist/charts/crossfilter/crossfilter.js +4 -4
- package/dist/charts/donut-chart/donut-chart.js +1 -1
- 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 +3 -3
- package/src/charts/crossfilter/crossfilter.tsx +4 -4
- package/src/charts/donut-chart/donut-chart.tsx +1 -1
- 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
|
@@ -23,7 +23,7 @@ function Comment({
|
|
|
23
23
|
role: "note",
|
|
24
24
|
"aria-label": label,
|
|
25
25
|
className: cn(
|
|
26
|
-
"mx-4 mb-3.5 break-words rounded-control px-3 py-2.5 text-
|
|
26
|
+
"mx-4 mb-3.5 break-words rounded-control px-3 py-2.5 text-fs-125",
|
|
27
27
|
toneClasses[tone],
|
|
28
28
|
className
|
|
29
29
|
),
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { type ButtonVariant } from "../../atoms/button/button.js";
|
|
2
|
+
import type { ClassNames } from "../../utils/class-names.js";
|
|
2
3
|
import { type ConfirmResult } from "./model.js";
|
|
4
|
+
export type ConfirmActionPart = "root" | "trigger" | "consequence" | "error" | "actions" | "confirm" | "cancel";
|
|
3
5
|
export interface ConfirmActionProps {
|
|
4
6
|
/** Trigger label, a verb in the user's words ("Cancel order"). */
|
|
5
7
|
label: string;
|
|
@@ -12,6 +14,8 @@ export interface ConfirmActionProps {
|
|
|
12
14
|
onConfirm: () => Promise<ConfirmResult> | Promise<void>;
|
|
13
15
|
triggerVariant?: ButtonVariant;
|
|
14
16
|
className?: string;
|
|
17
|
+
/** Per-part classes merged with `cn`; consumer classes win. `className` still targets the root and is merged last. */
|
|
18
|
+
classNames?: ClassNames<ConfirmActionPart>;
|
|
15
19
|
}
|
|
16
20
|
/** Inline two-step confirmation for a destructive action; no modal, no lost context. */
|
|
17
|
-
export declare function ConfirmAction({ label, consequence, confirmLabel, cancelLabel, onConfirm, triggerVariant, className, }: ConfirmActionProps): import("react").JSX.Element;
|
|
21
|
+
export declare function ConfirmAction({ label, consequence, confirmLabel, cancelLabel, onConfirm, triggerVariant, className, classNames, }: ConfirmActionProps): import("react").JSX.Element;
|
|
@@ -13,7 +13,8 @@ function ConfirmAction({
|
|
|
13
13
|
cancelLabel,
|
|
14
14
|
onConfirm,
|
|
15
15
|
triggerVariant = "secondary",
|
|
16
|
-
className
|
|
16
|
+
className,
|
|
17
|
+
classNames
|
|
17
18
|
}) {
|
|
18
19
|
const strings = useUiStrings();
|
|
19
20
|
const consequenceId = useId();
|
|
@@ -35,32 +36,52 @@ function ConfirmAction({
|
|
|
35
36
|
else setConfirming(false);
|
|
36
37
|
}
|
|
37
38
|
if (!confirming) {
|
|
38
|
-
return /* @__PURE__ */ jsxs("div", { className: cn("flex flex-col gap-2", className), children: [
|
|
39
|
-
failure === null ? null : /* @__PURE__ */ jsx(Banner, { tone: "danger", children: failure }),
|
|
40
|
-
/* @__PURE__ */ jsx(
|
|
39
|
+
return /* @__PURE__ */ jsxs("div", { className: cn("flex flex-col gap-2", classNames?.root, className), children: [
|
|
40
|
+
failure === null ? null : /* @__PURE__ */ jsx(Banner, { tone: "danger", className: classNames?.error, children: failure }),
|
|
41
|
+
/* @__PURE__ */ jsx(
|
|
42
|
+
Button,
|
|
43
|
+
{
|
|
44
|
+
ref: triggerRef,
|
|
45
|
+
variant: triggerVariant,
|
|
46
|
+
className: classNames?.trigger,
|
|
47
|
+
onClick: () => setConfirming(true),
|
|
48
|
+
children: label
|
|
49
|
+
}
|
|
50
|
+
)
|
|
41
51
|
] });
|
|
42
52
|
}
|
|
43
53
|
return /* @__PURE__ */ jsxs(
|
|
44
54
|
"fieldset",
|
|
45
55
|
{
|
|
46
56
|
"aria-describedby": consequenceId,
|
|
47
|
-
className: cn("m-0 flex min-w-0 flex-col gap-3 border-0 p-0", className),
|
|
57
|
+
className: cn("m-0 flex min-w-0 flex-col gap-3 border-0 p-0", classNames?.root, className),
|
|
48
58
|
children: [
|
|
49
59
|
/* @__PURE__ */ jsx("legend", { className: "sr-only", children: label }),
|
|
50
|
-
/* @__PURE__ */ jsx("p", { id: consequenceId, className: "text-body text-ink", children: consequence }),
|
|
51
|
-
failure === null ? null : /* @__PURE__ */ jsx(Banner, { tone: "danger", children: failure }),
|
|
52
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-2", children: [
|
|
60
|
+
/* @__PURE__ */ jsx("p", { id: consequenceId, className: cn("text-body text-ink", classNames?.consequence), children: consequence }),
|
|
61
|
+
failure === null ? null : /* @__PURE__ */ jsx(Banner, { tone: "danger", className: classNames?.error, children: failure }),
|
|
62
|
+
/* @__PURE__ */ jsxs("div", { className: cn("flex flex-wrap gap-2", classNames?.actions), children: [
|
|
53
63
|
/* @__PURE__ */ jsx(
|
|
54
64
|
Button,
|
|
55
65
|
{
|
|
56
66
|
variant: "danger",
|
|
67
|
+
className: classNames?.confirm,
|
|
57
68
|
loading: busy,
|
|
58
69
|
loadingLabel: strings.processing,
|
|
59
70
|
onClick: () => void confirm(),
|
|
60
71
|
children: confirmLabel ?? strings.confirm
|
|
61
72
|
}
|
|
62
73
|
),
|
|
63
|
-
/* @__PURE__ */ jsx(
|
|
74
|
+
/* @__PURE__ */ jsx(
|
|
75
|
+
Button,
|
|
76
|
+
{
|
|
77
|
+
variant: "secondary",
|
|
78
|
+
className: classNames?.cancel,
|
|
79
|
+
disabled: busy,
|
|
80
|
+
autoFocus: true,
|
|
81
|
+
onClick: () => setConfirming(false),
|
|
82
|
+
children: cancelLabel ?? strings.cancel
|
|
83
|
+
}
|
|
84
|
+
)
|
|
64
85
|
] })
|
|
65
86
|
]
|
|
66
87
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { BarChart2, X } from "lucide-react";
|
|
4
3
|
import { useMemo } from "react";
|
|
5
4
|
import { AreaChart } from "../../charts/area-chart/area-chart.js";
|
|
6
5
|
import { BarChart } from "../../charts/bar-chart/bar-chart.js";
|
|
7
6
|
import { LineChart } from "../../charts/line-chart/line-chart.js";
|
|
8
7
|
import { PieChart } from "../../charts/pie-chart/pie-chart.js";
|
|
8
|
+
import { BarChart2, X } from "../../icons/index.js";
|
|
9
9
|
import { cn } from "../../utils/cn.js";
|
|
10
10
|
import {
|
|
11
11
|
availableKinds,
|
|
12
12
|
pieSlices
|
|
13
13
|
} from "./chart-range.js";
|
|
14
|
-
const buttonClass = "inline-flex h-7 items-center rounded-xs px-2 font-[600] text-
|
|
14
|
+
const buttonClass = "inline-flex h-7 items-center rounded-xs px-2 font-[600] text-fs-120 text-ink-3 hover:text-ink aria-pressed:bg-accent-soft aria-pressed:text-accent-ink";
|
|
15
15
|
function ChartPanel({
|
|
16
16
|
data,
|
|
17
17
|
kind,
|
|
@@ -36,7 +36,7 @@ function ChartPanel({
|
|
|
36
36
|
children: [
|
|
37
37
|
/* @__PURE__ */ jsxs("header", { className: "flex flex-wrap items-center gap-2 px-3 pt-2", children: [
|
|
38
38
|
/* @__PURE__ */ jsx(BarChart2, { "aria-hidden": "true", className: "size-4 shrink-0 text-ink-3" }),
|
|
39
|
-
/* @__PURE__ */ jsx("h3", { className: "mr-auto min-w-0 truncate font-[650] text-
|
|
39
|
+
/* @__PURE__ */ jsx("h3", { className: "mr-auto min-w-0 truncate font-[650] text-fs-130 text-ink", children: labels.title }),
|
|
40
40
|
data ? /* @__PURE__ */ jsxs("fieldset", { className: "flex h-control-sm items-center rounded-control border-divider bg-surface-control p-0.5", children: [
|
|
41
41
|
/* @__PURE__ */ jsx("legend", { className: "sr-only", children: labels.kindGroup }),
|
|
42
42
|
kinds.map((option) => /* @__PURE__ */ jsx(
|
|
@@ -104,7 +104,7 @@ function ChartPanel({
|
|
|
104
104
|
valueFormat,
|
|
105
105
|
animate: false
|
|
106
106
|
}
|
|
107
|
-
) }) : /* @__PURE__ */ jsx("p", { className: "px-3 py-6 text-center text-
|
|
107
|
+
) }) : /* @__PURE__ */ jsx("p", { className: "px-3 py-6 text-center text-fs-130 text-ink-3", children: labels.noData })
|
|
108
108
|
]
|
|
109
109
|
}
|
|
110
110
|
);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useId, useState } from "react";
|
|
3
4
|
import {
|
|
4
5
|
ArrowDown,
|
|
5
6
|
ArrowLeft,
|
|
@@ -16,8 +17,7 @@ import {
|
|
|
16
17
|
PinOff,
|
|
17
18
|
Plus,
|
|
18
19
|
X
|
|
19
|
-
} from "
|
|
20
|
-
import { useId, useState } from "react";
|
|
20
|
+
} from "../../icons/index.js";
|
|
21
21
|
import { Popover, PopoverContent, PopoverTrigger } from "../../overlays/popover/popover.js";
|
|
22
22
|
import { cn } from "../../utils/cn.js";
|
|
23
23
|
import {
|
|
@@ -27,8 +27,8 @@ import {
|
|
|
27
27
|
searchOptions,
|
|
28
28
|
toggleSetValues
|
|
29
29
|
} from "./model.js";
|
|
30
|
-
const itemClass = "flex min-h-8 w-full items-center gap-2 rounded-xs px-2 text-left text-
|
|
31
|
-
const inputClass = "h-control-sm w-full min-w-0 rounded-input border-control bg-surface-control px-2 text-
|
|
30
|
+
const itemClass = "flex min-h-8 w-full items-center gap-2 rounded-xs px-2 text-left text-fs-130 text-ink-2 hover:bg-surface-2 hover:text-ink focus-visible:bg-surface-2 focus-visible:text-ink disabled:pointer-events-none disabled:opacity-40 aria-pressed:text-accent-ink [&_svg]:size-3.5 [&_svg]:shrink-0";
|
|
31
|
+
const inputClass = "h-control-sm w-full min-w-0 rounded-input border-control bg-surface-control px-2 text-fs-130 text-ink placeholder:text-ink-3 focus-visible:border-accent focus-visible:outline-none";
|
|
32
32
|
function Item({
|
|
33
33
|
icon: Icon,
|
|
34
34
|
children,
|
|
@@ -42,7 +42,7 @@ function Item({
|
|
|
42
42
|
}
|
|
43
43
|
function Section({ children, label }) {
|
|
44
44
|
return /* @__PURE__ */ jsxs("div", { className: "border-t-divider py-1 first:border-t-0 first:pt-0 last:pb-0", children: [
|
|
45
|
-
label ? /* @__PURE__ */ jsx("p", { className: "px-2 pt-1 pb-1.5 font-[650] text-
|
|
45
|
+
label ? /* @__PURE__ */ jsx("p", { className: "px-2 pt-1 pb-1.5 font-[650] text-fs-110 text-ink-3 uppercase tracking-[.07em]", children: label }) : null,
|
|
46
46
|
children
|
|
47
47
|
] });
|
|
48
48
|
}
|
|
@@ -78,7 +78,7 @@ function SetFilterEditor({
|
|
|
78
78
|
),
|
|
79
79
|
/* @__PURE__ */ jsxs("fieldset", { className: "grid max-h-48 gap-0.5 overflow-y-auto", children: [
|
|
80
80
|
/* @__PURE__ */ jsx("legend", { className: "sr-only", children: `${labels.filter}: ${column.header}` }),
|
|
81
|
-
/* @__PURE__ */ jsxs("label", { className: "flex min-h-7 items-center gap-2 border-b-divider px-1 text-
|
|
81
|
+
/* @__PURE__ */ jsxs("label", { className: "flex min-h-7 items-center gap-2 border-b-divider px-1 text-fs-130 text-ink-2", children: [
|
|
82
82
|
/* @__PURE__ */ jsx(
|
|
83
83
|
"input",
|
|
84
84
|
{
|
|
@@ -93,14 +93,14 @@ function SetFilterEditor({
|
|
|
93
93
|
}
|
|
94
94
|
),
|
|
95
95
|
/* @__PURE__ */ jsx("span", { className: "flex-1", children: labels.selectAllValues }),
|
|
96
|
-
/* @__PURE__ */ jsx("span", { className: "text-
|
|
96
|
+
/* @__PURE__ */ jsx("span", { className: "text-fs-110 text-ink-3 tabular-nums", children: labels.valuesChecked(checked.size, options.length) })
|
|
97
97
|
] }),
|
|
98
|
-
visible.length === 0 ? /* @__PURE__ */ jsx("p", { className: "px-1 py-1.5 text-
|
|
98
|
+
visible.length === 0 ? /* @__PURE__ */ jsx("p", { className: "px-1 py-1.5 text-fs-130 text-ink-3", children: labels.noMatches }) : null,
|
|
99
99
|
visible.map((value, index) => /* @__PURE__ */ jsxs(
|
|
100
100
|
"label",
|
|
101
101
|
{
|
|
102
102
|
htmlFor: `${id}-${index}`,
|
|
103
|
-
className: "flex min-h-7 items-center gap-2 px-1 text-
|
|
103
|
+
className: "flex min-h-7 items-center gap-2 px-1 text-fs-130 text-ink",
|
|
104
104
|
children: [
|
|
105
105
|
/* @__PURE__ */ jsx(
|
|
106
106
|
"input",
|
|
@@ -163,7 +163,7 @@ function FilterEditor({
|
|
|
163
163
|
if (kind === "dateRange") {
|
|
164
164
|
const range = filter?.kind === "dateRange" ? filter : { kind: "dateRange" };
|
|
165
165
|
return /* @__PURE__ */ jsx("div", { className: "grid gap-1.5", children: ["from", "to"].map((end) => /* @__PURE__ */ jsxs("label", { className: "grid grid-cols-[3.5rem_1fr] items-center gap-1.5", children: [
|
|
166
|
-
/* @__PURE__ */ jsx("span", { className: "text-
|
|
166
|
+
/* @__PURE__ */ jsx("span", { className: "text-fs-120 text-ink-3", children: labels[end] }),
|
|
167
167
|
/* @__PURE__ */ jsx(
|
|
168
168
|
"input",
|
|
169
169
|
{
|
|
@@ -195,7 +195,7 @@ function FilterEditor({
|
|
|
195
195
|
};
|
|
196
196
|
return /* @__PURE__ */ jsxs("fieldset", { className: "grid max-h-48 gap-0.5 overflow-y-auto", children: [
|
|
197
197
|
/* @__PURE__ */ jsx("legend", { className: "sr-only", children: `${labels.filter}: ${name}` }),
|
|
198
|
-
/* @__PURE__ */ jsxs("label", { className: "flex min-h-7 items-center gap-2 px-1 text-
|
|
198
|
+
/* @__PURE__ */ jsxs("label", { className: "flex min-h-7 items-center gap-2 px-1 text-fs-130 text-ink-2", children: [
|
|
199
199
|
/* @__PURE__ */ jsx(
|
|
200
200
|
"input",
|
|
201
201
|
{
|
|
@@ -211,7 +211,7 @@ function FilterEditor({
|
|
|
211
211
|
"label",
|
|
212
212
|
{
|
|
213
213
|
htmlFor: `${id}-${index}`,
|
|
214
|
-
className: "flex min-h-7 items-center gap-2 px-1 text-
|
|
214
|
+
className: "flex min-h-7 items-center gap-2 px-1 text-fs-130 text-ink",
|
|
215
215
|
children: [
|
|
216
216
|
/* @__PURE__ */ jsx(
|
|
217
217
|
"input",
|
|
@@ -21,7 +21,7 @@ import { describeFilter, emptyGroup } from "./filter-builder.js";
|
|
|
21
21
|
import { FilterBuilder } from "./filter-builder-editor.js";
|
|
22
22
|
import { DEFAULT_DATA_GRID_LABELS } from "./labels.js";
|
|
23
23
|
import { distinctValues } from "./model.js";
|
|
24
|
-
const note = "text-
|
|
24
|
+
const note = "text-fs-125 text-ink-3";
|
|
25
25
|
function Stack({ children }) {
|
|
26
26
|
return /* @__PURE__ */ jsx("div", { className: "grid gap-2", children });
|
|
27
27
|
}
|
|
@@ -118,7 +118,7 @@ function ExpansionDemo({ density, height }) {
|
|
|
118
118
|
defaultPinned: { left: ["id"] },
|
|
119
119
|
detailHeight: 116,
|
|
120
120
|
defaultExpandedRowIds: ["V-1002"],
|
|
121
|
-
renderDetail: (row) => /* @__PURE__ */ jsx("dl", { className: "grid gap-x-6 gap-y-2 text-
|
|
121
|
+
renderDetail: (row) => /* @__PURE__ */ jsx("dl", { className: "grid gap-x-6 gap-y-2 text-fs-130 @sm/grid:grid-cols-3", children: [
|
|
122
122
|
["Cliente", row.cliente],
|
|
123
123
|
["Barbero", row.barbero],
|
|
124
124
|
["Servicio", row.servicio],
|
|
@@ -126,7 +126,7 @@ function ExpansionDemo({ density, height }) {
|
|
|
126
126
|
["Total", formatCurrency(row.total)],
|
|
127
127
|
["Propina", row.propina ? formatCurrency(row.propina) : "Sin propina"]
|
|
128
128
|
].map(([term, value]) => /* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
|
|
129
|
-
/* @__PURE__ */ jsx("dt", { className: "text-
|
|
129
|
+
/* @__PURE__ */ jsx("dt", { className: "text-fs-110 text-ink-3 uppercase tracking-[.07em]", children: term }),
|
|
130
130
|
/* @__PURE__ */ jsx("dd", { className: "truncate font-[600] text-ink", children: value })
|
|
131
131
|
] }, term)) })
|
|
132
132
|
}
|
|
@@ -207,7 +207,7 @@ function PersistenceGrid({ density, height, onReset }) {
|
|
|
207
207
|
{
|
|
208
208
|
type: "button",
|
|
209
209
|
onClick: reset,
|
|
210
|
-
className: "inline-flex h-control-sm items-center rounded-control border-divider bg-surface-control px-2.5 font-[600] text-
|
|
210
|
+
className: "inline-flex h-control-sm items-center rounded-control border-divider bg-surface-control px-2.5 font-[600] text-fs-125 text-ink-2 hover:border-line-strong hover:text-ink",
|
|
211
211
|
children: "Restablecer todo"
|
|
212
212
|
}
|
|
213
213
|
)
|
|
@@ -262,7 +262,7 @@ function KeyboardDemo({ density }) {
|
|
|
262
262
|
rangeSelection: true,
|
|
263
263
|
defaultPinned: { left: ["producto"] },
|
|
264
264
|
detailHeight: 72,
|
|
265
|
-
renderDetail: (row) => /* @__PURE__ */ jsxs("p", { className: "text-
|
|
265
|
+
renderDetail: (row) => /* @__PURE__ */ jsxs("p", { className: "text-fs-130 text-ink-2", children: [
|
|
266
266
|
row.producto,
|
|
267
267
|
": ",
|
|
268
268
|
row.stock,
|
|
@@ -284,14 +284,14 @@ function KeyboardDemo({ density }) {
|
|
|
284
284
|
)
|
|
285
285
|
}
|
|
286
286
|
),
|
|
287
|
-
/* @__PURE__ */ jsxs("p", { className: "text-
|
|
287
|
+
/* @__PURE__ */ jsxs("p", { className: "text-fs-130 text-ink", "aria-live": "polite", children: [
|
|
288
288
|
"Celda activa: ",
|
|
289
289
|
/* @__PURE__ */ jsx("b", { className: "font-[650]", children: where })
|
|
290
290
|
] }),
|
|
291
|
-
/* @__PURE__ */ jsxs("table", { className: "w-full border-collapse text-left text-
|
|
291
|
+
/* @__PURE__ */ jsxs("table", { className: "w-full border-collapse text-left text-fs-125", children: [
|
|
292
292
|
/* @__PURE__ */ jsx("caption", { className: "sr-only", children: "Atajos de teclado" }),
|
|
293
293
|
/* @__PURE__ */ jsx("tbody", { children: SHORTCUTS.map(([keys, action]) => /* @__PURE__ */ jsxs("tr", { className: "border-t-divider", children: [
|
|
294
|
-
/* @__PURE__ */ jsx("th", { scope: "row", className: "w-1/2 py-1.5 pr-3 font-[600] text-ink", children: /* @__PURE__ */ jsx("kbd", { className: "font-mono text-
|
|
294
|
+
/* @__PURE__ */ jsx("th", { scope: "row", className: "w-1/2 py-1.5 pr-3 font-[600] text-ink", children: /* @__PURE__ */ jsx("kbd", { className: "font-mono text-fs-120", children: keys }) }),
|
|
295
295
|
/* @__PURE__ */ jsx("td", { className: "py-1.5 text-ink-2", children: action })
|
|
296
296
|
] }, keys)) })
|
|
297
297
|
] })
|
|
@@ -314,7 +314,7 @@ function TreeDemo({ density, height }) {
|
|
|
314
314
|
);
|
|
315
315
|
}
|
|
316
316
|
function RequestLog({ entries, label }) {
|
|
317
|
-
return /* @__PURE__ */ jsxs("div", { className: "rounded-card border-card shadow-card p-2 text-
|
|
317
|
+
return /* @__PURE__ */ jsxs("div", { className: "rounded-card border-card shadow-card p-2 text-fs-120 text-ink-2", children: [
|
|
318
318
|
/* @__PURE__ */ jsxs("p", { className: "font-[650] text-ink", children: [
|
|
319
319
|
label,
|
|
320
320
|
": ",
|
|
@@ -364,7 +364,7 @@ function RemotePaginationDemo({ density, height }) {
|
|
|
364
364
|
defaultPinned: { left: ["id"] }
|
|
365
365
|
}
|
|
366
366
|
),
|
|
367
|
-
/* @__PURE__ */ jsxs("label", { className: "flex items-center gap-2 text-
|
|
367
|
+
/* @__PURE__ */ jsxs("label", { className: "flex items-center gap-2 text-fs-130 text-ink", children: [
|
|
368
368
|
/* @__PURE__ */ jsx(
|
|
369
369
|
"input",
|
|
370
370
|
{
|
|
@@ -407,7 +407,7 @@ function InfiniteScrollDemo({ density, height }) {
|
|
|
407
407
|
defaultPinned: { left: ["id"] }
|
|
408
408
|
}
|
|
409
409
|
),
|
|
410
|
-
/* @__PURE__ */ jsxs("label", { className: "flex items-center gap-2 text-
|
|
410
|
+
/* @__PURE__ */ jsxs("label", { className: "flex items-center gap-2 text-fs-130 text-ink", children: [
|
|
411
411
|
/* @__PURE__ */ jsx(
|
|
412
412
|
"input",
|
|
413
413
|
{
|
|
@@ -467,7 +467,7 @@ function FilterBuilderDemo({ density, height }) {
|
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
469
|
),
|
|
470
|
-
/* @__PURE__ */ jsxs("p", { className: "mt-3 border-t-divider pt-2 text-
|
|
470
|
+
/* @__PURE__ */ jsxs("p", { className: "mt-3 border-t-divider pt-2 text-fs-125 text-ink-3", children: [
|
|
471
471
|
text ? `Filtro: ${text}` : "Sin filtro activo.",
|
|
472
472
|
" ",
|
|
473
473
|
/* @__PURE__ */ jsx(
|
|
@@ -545,7 +545,7 @@ function ExportDemo({ density, height }) {
|
|
|
545
545
|
/* @__PURE__ */ jsx(
|
|
546
546
|
"div",
|
|
547
547
|
{
|
|
548
|
-
className: "rounded-card border-card shadow-card p-2 text-
|
|
548
|
+
className: "rounded-card border-card shadow-card p-2 text-fs-120 text-ink-2",
|
|
549
549
|
"aria-live": "polite",
|
|
550
550
|
children: last ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
551
551
|
/* @__PURE__ */ jsxs("p", { className: "font-[650] text-ink", children: [
|
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import {
|
|
4
|
+
lazy,
|
|
5
|
+
Suspense,
|
|
6
|
+
useCallback,
|
|
7
|
+
useEffect,
|
|
8
|
+
useId,
|
|
9
|
+
useLayoutEffect,
|
|
10
|
+
useMemo,
|
|
11
|
+
useRef,
|
|
12
|
+
useState
|
|
13
|
+
} from "react";
|
|
14
|
+
import { Chip } from "../../atoms/chip/chip.js";
|
|
15
|
+
import { formatCurrency, formatNumber } from "../../charts/core/format.js";
|
|
16
|
+
import { Sparkline } from "../../charts/sparkline/sparkline.js";
|
|
3
17
|
import {
|
|
4
18
|
ArrowDown,
|
|
5
19
|
ArrowDownToLine,
|
|
@@ -15,21 +29,7 @@ import {
|
|
|
15
29
|
Copy,
|
|
16
30
|
GripVertical,
|
|
17
31
|
PinOff
|
|
18
|
-
} from "
|
|
19
|
-
import {
|
|
20
|
-
lazy,
|
|
21
|
-
Suspense,
|
|
22
|
-
useCallback,
|
|
23
|
-
useEffect,
|
|
24
|
-
useId,
|
|
25
|
-
useLayoutEffect,
|
|
26
|
-
useMemo,
|
|
27
|
-
useRef,
|
|
28
|
-
useState
|
|
29
|
-
} from "react";
|
|
30
|
-
import { Chip } from "../../atoms/chip/chip.js";
|
|
31
|
-
import { formatCurrency, formatNumber } from "../../charts/core/format.js";
|
|
32
|
-
import { Sparkline } from "../../charts/sparkline/sparkline.js";
|
|
32
|
+
} from "../../icons/index.js";
|
|
33
33
|
import { cn } from "../../utils/cn.js";
|
|
34
34
|
import { computePinOffsets, sanitizePinned } from "../table/pin.js";
|
|
35
35
|
import { rangeToChart } from "./chart-range.js";
|
|
@@ -1651,7 +1651,7 @@ function DataGrid({
|
|
|
1651
1651
|
className: cn(
|
|
1652
1652
|
cellBase,
|
|
1653
1653
|
sticky,
|
|
1654
|
-
"select-none whitespace-nowrap font-[650] text-
|
|
1654
|
+
"select-none whitespace-nowrap font-[650] text-fs-110 text-ink-3 uppercase tracking-[.07em]",
|
|
1655
1655
|
sortable && "cursor-pointer hover:text-ink",
|
|
1656
1656
|
drop === "before" && "shadow-[inset_2px_0_0_var(--accent)]",
|
|
1657
1657
|
drop === "after" && "shadow-[inset_-2px_0_0_var(--accent)]"
|
|
@@ -1669,14 +1669,14 @@ function DataGrid({
|
|
|
1669
1669
|
"span",
|
|
1670
1670
|
{
|
|
1671
1671
|
"aria-hidden": "true",
|
|
1672
|
-
className: "shrink-0 rounded-xs bg-surface-2 px-1 font-[650] text-
|
|
1672
|
+
className: "shrink-0 rounded-xs bg-surface-2 px-1 font-[650] text-fs-100 text-ink-3 normal-case tracking-normal",
|
|
1673
1673
|
children: cellLetter(column.id)
|
|
1674
1674
|
}
|
|
1675
1675
|
) : null,
|
|
1676
1676
|
/* @__PURE__ */ jsx("span", { className: "truncate", title: column.header, children: column.header }),
|
|
1677
1677
|
state ? /* @__PURE__ */ jsxs("span", { className: "inline-flex shrink-0 items-center text-accent-ink", children: [
|
|
1678
1678
|
state.direction === "asc" ? /* @__PURE__ */ jsx(ArrowUp, { "aria-hidden": "true", className: "size-3" }) : /* @__PURE__ */ jsx(ArrowDown, { "aria-hidden": "true", className: "size-3" }),
|
|
1679
|
-
sort.length > 1 ? /* @__PURE__ */ jsx("span", { className: "text-
|
|
1679
|
+
sort.length > 1 ? /* @__PURE__ */ jsx("span", { className: "text-fs-100 tabular-nums", children: state.index + 1 }) : null,
|
|
1680
1680
|
state.index > 0 ? /* @__PURE__ */ jsx("span", { className: "sr-only", children: state.direction === "asc" ? labels.sortAsc : labels.sortDesc }) : null
|
|
1681
1681
|
] }) : null
|
|
1682
1682
|
] }),
|
|
@@ -1770,7 +1770,7 @@ function DataGrid({
|
|
|
1770
1770
|
if (!editing) return null;
|
|
1771
1771
|
const errorId = `${helpId}-error`;
|
|
1772
1772
|
const editorClass = cn(
|
|
1773
|
-
"h-[calc(100%-6px)] w-full min-w-0 rounded-xs border bg-surface px-1.5 text-
|
|
1773
|
+
"h-[calc(100%-6px)] w-full min-w-0 rounded-xs border bg-surface px-1.5 text-fs-130 text-ink outline-none",
|
|
1774
1774
|
editing.error ? "border-danger" : "border-accent"
|
|
1775
1775
|
);
|
|
1776
1776
|
const common = {
|
|
@@ -1813,7 +1813,7 @@ function DataGrid({
|
|
|
1813
1813
|
{
|
|
1814
1814
|
id: errorId,
|
|
1815
1815
|
role: "alert",
|
|
1816
|
-
className: "absolute top-full left-1 z-5 mt-0.5 flex max-w-64 items-center gap-1.5 rounded-xs border border-danger bg-surface px-2 py-1 text-
|
|
1816
|
+
className: "absolute top-full left-1 z-5 mt-0.5 flex max-w-64 items-center gap-1.5 rounded-xs border border-danger bg-surface px-2 py-1 text-fs-120 text-danger shadow-overlay",
|
|
1817
1817
|
children: [
|
|
1818
1818
|
/* @__PURE__ */ jsx(CircleAlert, { "aria-hidden": "true", className: "size-3.5 shrink-0" }),
|
|
1819
1819
|
editing.error
|
|
@@ -1846,7 +1846,7 @@ function DataGrid({
|
|
|
1846
1846
|
tabIndex: labelActive ? 0 : -1,
|
|
1847
1847
|
role: "gridcell",
|
|
1848
1848
|
"aria-expanded": !row.collapsed,
|
|
1849
|
-
className: cn(cellBase, "cursor-pointer overflow-visible text-
|
|
1849
|
+
className: cn(cellBase, "cursor-pointer overflow-visible text-fs-130"),
|
|
1850
1850
|
children: /* @__PURE__ */ jsxs(
|
|
1851
1851
|
"span",
|
|
1852
1852
|
{
|
|
@@ -1874,7 +1874,7 @@ function DataGrid({
|
|
|
1874
1874
|
":"
|
|
1875
1875
|
] }),
|
|
1876
1876
|
/* @__PURE__ */ jsx("span", { className: "min-w-0 truncate", children: row.label }),
|
|
1877
|
-
/* @__PURE__ */ jsx(Chip, { className: "h-5 shrink-0 px-2 text-
|
|
1877
|
+
/* @__PURE__ */ jsx(Chip, { className: "h-5 shrink-0 px-2 text-fs-110", children: row.count })
|
|
1878
1878
|
]
|
|
1879
1879
|
}
|
|
1880
1880
|
)
|
|
@@ -1895,7 +1895,7 @@ function DataGrid({
|
|
|
1895
1895
|
style: pinStyle(position),
|
|
1896
1896
|
className: cn(
|
|
1897
1897
|
cellBase,
|
|
1898
|
-
"cursor-pointer text-
|
|
1898
|
+
"cursor-pointer text-fs-130",
|
|
1899
1899
|
position && "sticky z-1 bg-surface-2",
|
|
1900
1900
|
pinShadow(position),
|
|
1901
1901
|
column && alignClass[columnAlign(column)]
|
|
@@ -2191,7 +2191,7 @@ function DataGrid({
|
|
|
2191
2191
|
onDragOver: reorderAllowed ? (event) => onRowDragOver(event, row.key) : void 0,
|
|
2192
2192
|
onDrop: reorderAllowed ? (event) => onRowDrop(event, row.key) : void 0,
|
|
2193
2193
|
className: cn(
|
|
2194
|
-
"group/row text-
|
|
2194
|
+
"group/row text-fs-130 text-ink hover:bg-surface-2 aria-selected:bg-accent-soft",
|
|
2195
2195
|
"data-[drop=before]:[&>td]:shadow-[inset_0_2px_0_var(--accent)] data-[drop=after]:[&>td]:shadow-[inset_0_-2px_0_var(--accent)]",
|
|
2196
2196
|
"data-[divider=top]:[&>td]:border-b-line-strong"
|
|
2197
2197
|
),
|
|
@@ -2262,7 +2262,7 @@ function DataGrid({
|
|
|
2262
2262
|
{
|
|
2263
2263
|
style: pinStyle(position),
|
|
2264
2264
|
className: cn(
|
|
2265
|
-
"sticky bottom-0 overflow-hidden border-t-divider bg-surface px-3 font-[650] text-
|
|
2265
|
+
"sticky bottom-0 overflow-hidden border-t-divider bg-surface px-3 font-[650] text-fs-130 text-ink @max-sm/grid:px-2",
|
|
2266
2266
|
position ? "z-3" : "z-2",
|
|
2267
2267
|
pinShadow(position),
|
|
2268
2268
|
column && alignClass[columnAlign(column)],
|
|
@@ -2274,7 +2274,7 @@ function DataGrid({
|
|
|
2274
2274
|
": "
|
|
2275
2275
|
] }),
|
|
2276
2276
|
formatAggregate(value, column.aggregate, column)
|
|
2277
|
-
] }) : c === firstDataIndex ? /* @__PURE__ */ jsx("span", { className: "text-
|
|
2277
|
+
] }) : c === firstDataIndex ? /* @__PURE__ */ jsx("span", { className: "text-fs-110 text-ink-3 uppercase tracking-[.07em]", children: labels.total }) : null
|
|
2278
2278
|
},
|
|
2279
2279
|
idOfColumn(entry)
|
|
2280
2280
|
);
|
|
@@ -2338,7 +2338,7 @@ function DataGrid({
|
|
|
2338
2338
|
role: cell.label ? "columnheader" : "presentation",
|
|
2339
2339
|
colSpan: cell.span,
|
|
2340
2340
|
className: cn(
|
|
2341
|
-
"sticky overflow-clip border-b-divider bg-surface px-3 text-center font-[650] text-
|
|
2341
|
+
"sticky overflow-clip border-b-divider bg-surface px-3 text-center font-[650] text-fs-110 text-ink-3 uppercase tracking-[.07em] @max-sm/grid:px-2",
|
|
2342
2342
|
zone === "center" ? "z-2" : "z-3",
|
|
2343
2343
|
cell.label && "border-x"
|
|
2344
2344
|
),
|
|
@@ -2518,7 +2518,7 @@ function DataGrid({
|
|
|
2518
2518
|
"div",
|
|
2519
2519
|
{
|
|
2520
2520
|
role: "alert",
|
|
2521
|
-
className: "flex flex-wrap items-center gap-2 border-b-divider bg-danger-soft px-3 py-2 text-
|
|
2521
|
+
className: "flex flex-wrap items-center gap-2 border-b-divider bg-danger-soft px-3 py-2 text-fs-130 text-danger",
|
|
2522
2522
|
children: [
|
|
2523
2523
|
/* @__PURE__ */ jsx(CircleAlert, { "aria-hidden": "true", className: "size-4 shrink-0" }),
|
|
2524
2524
|
/* @__PURE__ */ jsx("span", { className: "min-w-0 flex-1", children: labels.loadError }),
|
|
@@ -2526,7 +2526,7 @@ function DataGrid({
|
|
|
2526
2526
|
"button",
|
|
2527
2527
|
{
|
|
2528
2528
|
type: "button",
|
|
2529
|
-
className: "rounded-control border border-danger px-2.5 py-1 font-[600] text-
|
|
2529
|
+
className: "rounded-control border border-danger px-2.5 py-1 font-[600] text-fs-125 hover:bg-surface",
|
|
2530
2530
|
onClick: remote.retry,
|
|
2531
2531
|
children: labels.retry
|
|
2532
2532
|
}
|
|
@@ -2612,13 +2612,13 @@ function DataGrid({
|
|
|
2612
2612
|
renderColumns.map((entry) => /* @__PURE__ */ jsx("td", { className: cn(cellBase), children: /* @__PURE__ */ jsx("span", { className: "block h-2.5 w-3/4 rounded-pill bg-surface-2 motion-safe:animate-pulse" }) }, idOfColumn(entry))),
|
|
2613
2613
|
/* @__PURE__ */ jsx("td", { className: "border-b-divider" })
|
|
2614
2614
|
] }, index)
|
|
2615
|
-
)) : bodyLength === 0 ? /* @__PURE__ */ jsx("tr", { "aria-rowindex": groupLevels + 2, children: /* @__PURE__ */ jsx("td", { colSpan, className: "px-4 py-10 text-center text-
|
|
2615
|
+
)) : bodyLength === 0 ? /* @__PURE__ */ jsx("tr", { "aria-rowindex": groupLevels + 2, children: /* @__PURE__ */ jsx("td", { colSpan, className: "px-4 py-10 text-center text-fs-130 text-ink-3", children: /* @__PURE__ */ jsxs("div", { className: "sticky left-0 inline-flex max-w-[calc(100cqw-2rem)] flex-col items-center gap-2", children: [
|
|
2616
2616
|
/* @__PURE__ */ jsx("span", { children: sourceActive && remote.failed ? labels.loadError : emptyFiltered ? labels.emptyFiltered : emptyMessage ?? labels.empty }),
|
|
2617
2617
|
sourceActive && remote.failed ? /* @__PURE__ */ jsx(
|
|
2618
2618
|
"button",
|
|
2619
2619
|
{
|
|
2620
2620
|
type: "button",
|
|
2621
|
-
className: "rounded-control border-divider px-2.5 py-1 font-[600] text-
|
|
2621
|
+
className: "rounded-control border-divider px-2.5 py-1 font-[600] text-fs-125 text-ink-2 hover:text-ink",
|
|
2622
2622
|
onClick: remote.retry,
|
|
2623
2623
|
children: labels.retry
|
|
2624
2624
|
}
|
|
@@ -2626,7 +2626,7 @@ function DataGrid({
|
|
|
2626
2626
|
"button",
|
|
2627
2627
|
{
|
|
2628
2628
|
type: "button",
|
|
2629
|
-
className: "rounded-control border-divider px-2.5 py-1 font-[600] text-
|
|
2629
|
+
className: "rounded-control border-divider px-2.5 py-1 font-[600] text-fs-125 text-ink-2 hover:text-ink",
|
|
2630
2630
|
onClick: () => {
|
|
2631
2631
|
setFiltersState({});
|
|
2632
2632
|
setSearch("");
|
|
@@ -2659,7 +2659,7 @@ function DataGrid({
|
|
|
2659
2659
|
}
|
|
2660
2660
|
)
|
|
2661
2661
|
] }),
|
|
2662
|
-
rangeSelection ? /* @__PURE__ */ jsx("div", { className: "flex flex-wrap items-center gap-x-4 gap-y-1 border-t-divider px-3 py-1.5 text-
|
|
2662
|
+
rangeSelection ? /* @__PURE__ */ jsx("div", { className: "flex flex-wrap items-center gap-x-4 gap-y-1 border-t-divider px-3 py-1.5 text-fs-125 text-ink-2", children: stats && cellRange ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2663
2663
|
/* @__PURE__ */ jsx("span", { className: "font-[650] text-ink", children: labels.rangeCells(rangeCellCount) }),
|
|
2664
2664
|
/* @__PURE__ */ jsxs("span", { children: [
|
|
2665
2665
|
labels.rangeCount,
|
|
@@ -2698,7 +2698,7 @@ function DataGrid({
|
|
|
2698
2698
|
{
|
|
2699
2699
|
type: "button",
|
|
2700
2700
|
onClick: openChart,
|
|
2701
|
-
className: "ml-auto inline-flex h-7 items-center gap-1.5 rounded-control border-divider bg-surface-control px-2 font-[600] text-
|
|
2701
|
+
className: "ml-auto inline-flex h-7 items-center gap-1.5 rounded-control border-divider bg-surface-control px-2 font-[600] text-fs-120 text-ink-2 hover:border-line-strong hover:text-ink [&_svg]:size-3.5",
|
|
2702
2702
|
children: [
|
|
2703
2703
|
/* @__PURE__ */ jsx(BarChart3, { "aria-hidden": "true" }),
|
|
2704
2704
|
labels.chart
|
|
@@ -2711,7 +2711,7 @@ function DataGrid({
|
|
|
2711
2711
|
type: "button",
|
|
2712
2712
|
onClick: copyRange,
|
|
2713
2713
|
className: cn(
|
|
2714
|
-
"inline-flex h-7 items-center gap-1.5 rounded-control border-divider bg-surface-control px-2 font-[600] text-
|
|
2714
|
+
"inline-flex h-7 items-center gap-1.5 rounded-control border-divider bg-surface-control px-2 font-[600] text-fs-120 text-ink-2 hover:border-line-strong hover:text-ink [&_svg]:size-3.5",
|
|
2715
2715
|
!charts && "ml-auto"
|
|
2716
2716
|
),
|
|
2717
2717
|
children: [
|
|
@@ -2778,7 +2778,7 @@ function Pagination({
|
|
|
2778
2778
|
"nav",
|
|
2779
2779
|
{
|
|
2780
2780
|
"aria-label": labels.rowsPerPage,
|
|
2781
|
-
className: "flex flex-wrap items-center justify-end gap-x-3 gap-y-1 border-t-divider px-2 py-1.5 text-
|
|
2781
|
+
className: "flex flex-wrap items-center justify-end gap-x-3 gap-y-1 border-t-divider px-2 py-1.5 text-fs-125 text-ink-2",
|
|
2782
2782
|
children: [
|
|
2783
2783
|
/* @__PURE__ */ jsxs("label", { className: "flex items-center gap-2", children: [
|
|
2784
2784
|
/* @__PURE__ */ jsx("span", { children: labels.rowsPerPage }),
|
|
@@ -2787,7 +2787,7 @@ function Pagination({
|
|
|
2787
2787
|
{
|
|
2788
2788
|
value: pageSize,
|
|
2789
2789
|
onChange: (event) => onPageSize(Number(event.target.value)),
|
|
2790
|
-
className: "h-control-sm rounded-input border-control bg-surface-control px-1.5 text-
|
|
2790
|
+
className: "h-control-sm rounded-input border-control bg-surface-control px-1.5 text-fs-125 text-ink",
|
|
2791
2791
|
children: [.../* @__PURE__ */ new Set([...options, pageSize])].sort((a, b) => a - b).map((size) => /* @__PURE__ */ jsx("option", { value: size, children: size }, size))
|
|
2792
2792
|
}
|
|
2793
2793
|
)
|
|
@@ -72,7 +72,7 @@ const catalogoColumns = [
|
|
|
72
72
|
style: { width: `${percent}%` }
|
|
73
73
|
}
|
|
74
74
|
) }),
|
|
75
|
-
/* @__PURE__ */ jsxs("span", { className: "w-8 text-right text-
|
|
75
|
+
/* @__PURE__ */ jsxs("span", { className: "w-8 text-right text-fs-120 text-ink-2 tabular-nums", children: [
|
|
76
76
|
percent,
|
|
77
77
|
"%"
|
|
78
78
|
] })
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { Plus, Trash2 } from "
|
|
3
|
+
import { Plus, Trash2 } from "../../icons/index.js";
|
|
4
4
|
import { cn } from "../../utils/cn.js";
|
|
5
5
|
import {
|
|
6
6
|
addChild,
|
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
} from "./filter-builder.js";
|
|
15
15
|
import { DEFAULT_DATA_GRID_LABELS } from "./labels.js";
|
|
16
16
|
import { filterKindOf } from "./model.js";
|
|
17
|
-
const fieldClass = "h-control-sm w-full min-w-0 rounded-input border-control bg-surface-control px-2 text-
|
|
18
|
-
const buttonClass = "inline-flex h-control-sm shrink-0 items-center gap-1.5 whitespace-nowrap rounded-control border-divider bg-surface-control px-2.5 font-[600] text-
|
|
17
|
+
const fieldClass = "h-control-sm w-full min-w-0 rounded-input border-control bg-surface-control px-2 text-fs-130 text-ink placeholder:text-ink-3 focus-visible:border-accent focus-visible:outline-none";
|
|
18
|
+
const buttonClass = "inline-flex h-control-sm shrink-0 items-center gap-1.5 whitespace-nowrap rounded-control border-divider bg-surface-control px-2.5 font-[600] text-fs-125 text-ink-2 hover:border-line-strong hover:text-ink [&_svg]:size-3.5";
|
|
19
19
|
function FilterBuilder({
|
|
20
20
|
columns,
|
|
21
21
|
value,
|
|
@@ -64,7 +64,7 @@ function GroupEditor({
|
|
|
64
64
|
type: "button",
|
|
65
65
|
"aria-pressed": group.logic === logic,
|
|
66
66
|
onClick: () => onChange(updateNode(root, group.id, (n) => ({ ...n, logic }))),
|
|
67
|
-
className: "h-full rounded-xs px-2 font-[600] text-
|
|
67
|
+
className: "h-full rounded-xs px-2 font-[600] text-fs-120 text-ink-3 hover:text-ink aria-pressed:bg-accent-soft aria-pressed:text-accent-ink",
|
|
68
68
|
children: logic === "and" ? labels.matchAll : labels.matchAny
|
|
69
69
|
},
|
|
70
70
|
logic
|
|
@@ -107,8 +107,8 @@ function GroupEditor({
|
|
|
107
107
|
}
|
|
108
108
|
)
|
|
109
109
|
] }),
|
|
110
|
-
group.children.length === 0 ? /* @__PURE__ */ jsx("p", { className: "px-1 text-
|
|
111
|
-
index > 0 ? /* @__PURE__ */ jsx("span", { className: "font-[650] text-
|
|
110
|
+
group.children.length === 0 ? /* @__PURE__ */ jsx("p", { className: "px-1 text-fs-125 text-ink-3", children: labels.noConditions }) : /* @__PURE__ */ jsx("ul", { className: "grid gap-2", children: group.children.map((child, index) => /* @__PURE__ */ jsxs("li", { className: "grid gap-1", children: [
|
|
111
|
+
index > 0 ? /* @__PURE__ */ jsx("span", { className: "font-[650] text-fs-110 text-ink-3 uppercase tracking-[.07em]", children: group.logic === "and" ? labels.filterAnd : labels.filterOr }) : null,
|
|
112
112
|
child.type === "group" ? /* @__PURE__ */ jsx(GroupEditor, { group: child, ...context }) : /* @__PURE__ */ jsx(ConditionEditor, { condition: child, ...context })
|
|
113
113
|
] }, child.id)) })
|
|
114
114
|
]
|