@cognite/aura 0.3.4 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +274 -0
- package/DESIGN.md +664 -281
- package/LICENSE +21 -0
- package/README.md +48 -13
- package/dist/colors-deprecated.css +618 -0
- package/dist/colors.css +803 -830
- package/dist/components/index.d.ts +63 -57
- package/dist/components/index.js +62 -59
- package/dist/components/index.js.map +1 -0
- package/dist/components/ui/core/accordion/accordion.d.ts +19 -18
- package/dist/components/ui/core/accordion/accordion.js +99 -78
- package/dist/components/ui/core/accordion/accordion.js.map +1 -0
- package/dist/components/ui/core/action-toolbar/action-toolbar-motion.d.ts +8 -0
- package/dist/components/ui/core/action-toolbar/action-toolbar-motion.js +132 -0
- package/dist/components/ui/core/action-toolbar/action-toolbar-motion.js.map +1 -0
- package/dist/components/ui/core/action-toolbar/action-toolbar.d.ts +31 -31
- package/dist/components/ui/core/action-toolbar/action-toolbar.js +156 -106
- package/dist/components/ui/core/action-toolbar/action-toolbar.js.map +1 -0
- package/dist/components/ui/core/alert/alert.d.ts +25 -25
- package/dist/components/ui/core/alert/alert.gallery.d.ts +2 -0
- package/dist/components/ui/core/alert/alert.gallery.js +54 -0
- package/dist/components/ui/core/alert/alert.gallery.js.map +1 -0
- package/dist/components/ui/core/alert/alert.js +181 -152
- package/dist/components/ui/core/alert/alert.js.map +1 -0
- package/dist/components/ui/core/avatar/avatar.d.ts +10 -9
- package/dist/components/ui/core/avatar/avatar.gallery.d.ts +2 -0
- package/dist/components/ui/core/avatar/avatar.gallery.js +67 -0
- package/dist/components/ui/core/avatar/avatar.gallery.js.map +1 -0
- package/dist/components/ui/core/avatar/avatar.js +75 -65
- package/dist/components/ui/core/avatar/avatar.js.map +1 -0
- package/dist/components/ui/core/badge/badge.d.ts +13 -12
- package/dist/components/ui/core/badge/badge.gallery.d.ts +2 -0
- package/dist/components/ui/core/badge/badge.gallery.js +64 -0
- package/dist/components/ui/core/badge/badge.gallery.js.map +1 -0
- package/dist/components/ui/core/badge/badge.js +88 -72
- package/dist/components/ui/core/badge/badge.js.map +1 -0
- package/dist/components/ui/core/banner/banner.d.ts +18 -18
- package/dist/components/ui/core/banner/banner.gallery.d.ts +2 -0
- package/dist/components/ui/core/banner/banner.gallery.js +56 -0
- package/dist/components/ui/core/banner/banner.gallery.js.map +1 -0
- package/dist/components/ui/core/banner/banner.js +179 -142
- package/dist/components/ui/core/banner/banner.js.map +1 -0
- package/dist/components/ui/core/breadcrumb/breadcrumb.d.ts +12 -12
- package/dist/components/ui/core/breadcrumb/breadcrumb.gallery.d.ts +2 -0
- package/dist/components/ui/core/breadcrumb/breadcrumb.gallery.js +31 -0
- package/dist/components/ui/core/breadcrumb/breadcrumb.gallery.js.map +1 -0
- package/dist/components/ui/core/breadcrumb/breadcrumb.js +139 -104
- package/dist/components/ui/core/breadcrumb/breadcrumb.js.map +1 -0
- package/dist/components/ui/core/button/button.d.ts +7 -7
- package/dist/components/ui/core/button/button.gallery.d.ts +2 -0
- package/dist/components/ui/core/button/button.gallery.js +76 -0
- package/dist/components/ui/core/button/button.gallery.js.map +1 -0
- package/dist/components/ui/core/button/button.js +57 -47
- package/dist/components/ui/core/button/button.js.map +1 -0
- package/dist/components/ui/core/button-group/button-group.d.ts +9 -9
- package/dist/components/ui/core/button-group/button-group.gallery.d.ts +2 -0
- package/dist/components/ui/core/button-group/button-group.gallery.js +62 -0
- package/dist/components/ui/core/button-group/button-group.gallery.js.map +1 -0
- package/dist/components/ui/core/button-group/button-group.js +50 -40
- package/dist/components/ui/core/button-group/button-group.js.map +1 -0
- package/dist/components/ui/core/calendar/calendar-header.d.ts +7 -7
- package/dist/components/ui/core/calendar/calendar-header.js +102 -63
- package/dist/components/ui/core/calendar/calendar-header.js.map +1 -0
- package/dist/components/ui/core/calendar/calendar-utils.d.ts +30 -30
- package/dist/components/ui/core/calendar/calendar-utils.js +116 -39
- package/dist/components/ui/core/calendar/calendar-utils.js.map +1 -0
- package/dist/components/ui/core/calendar/calendar.d.ts +10 -10
- package/dist/components/ui/core/calendar/calendar.js +95 -66
- package/dist/components/ui/core/calendar/calendar.js.map +1 -0
- package/dist/components/ui/core/calendar/constants.js +3 -0
- package/dist/components/ui/core/calendar/constants.js.map +1 -0
- package/dist/components/ui/core/card/card.d.ts +20 -20
- package/dist/components/ui/core/card/card.js +133 -104
- package/dist/components/ui/core/card/card.js.map +1 -0
- package/dist/components/ui/core/chart/chart.d.ts +55 -53
- package/dist/components/ui/core/chart/chart.js +196 -116
- package/dist/components/ui/core/chart/chart.js.map +1 -0
- package/dist/components/ui/core/chart/index.d.ts +2 -2
- package/dist/components/ui/core/chart/index.js +3 -2
- package/dist/components/ui/core/chart/index.js.map +1 -0
- package/dist/components/ui/core/checkbox/checkbox.d.ts +9 -9
- package/dist/components/ui/core/checkbox/checkbox.gallery.d.ts +2 -0
- package/dist/components/ui/core/checkbox/checkbox.gallery.js +36 -0
- package/dist/components/ui/core/checkbox/checkbox.gallery.js.map +1 -0
- package/dist/components/ui/core/checkbox/checkbox.js +88 -68
- package/dist/components/ui/core/checkbox/checkbox.js.map +1 -0
- package/dist/components/ui/core/checkbox/checkbox.metadata.d.ts +1 -1
- package/dist/components/ui/core/checkbox/checkbox.metadata.js +6 -7
- package/dist/components/ui/core/checkbox/checkbox.metadata.js.map +1 -0
- package/dist/components/ui/core/code-block/code-block.d.ts +19 -19
- package/dist/components/ui/core/code-block/code-block.js +260 -175
- package/dist/components/ui/core/code-block/code-block.js.map +1 -0
- package/dist/components/ui/core/collapsible/collapsible.d.ts +5 -5
- package/dist/components/ui/core/collapsible/collapsible.gallery.d.ts +2 -0
- package/dist/components/ui/core/collapsible/collapsible.gallery.js +39 -0
- package/dist/components/ui/core/collapsible/collapsible.gallery.js.map +1 -0
- package/dist/components/ui/core/collapsible/collapsible.js +36 -30
- package/dist/components/ui/core/collapsible/collapsible.js.map +1 -0
- package/dist/components/ui/core/combobox/combobox.d.ts +13 -13
- package/dist/components/ui/core/combobox/combobox.js +89 -40
- package/dist/components/ui/core/combobox/combobox.js.map +1 -0
- package/dist/components/ui/core/command/command.d.ts +20 -18
- package/dist/components/ui/core/command/command.js +137 -85
- package/dist/components/ui/core/command/command.js.map +1 -0
- package/dist/components/ui/core/conversation/conversation.d.ts +14 -0
- package/dist/components/ui/core/conversation/conversation.js +51 -0
- package/dist/components/ui/core/conversation/conversation.js.map +1 -0
- package/dist/components/ui/core/count/count.d.ts +8 -6
- package/dist/components/ui/core/count/count.gallery.d.ts +2 -0
- package/dist/components/ui/core/count/count.gallery.js +55 -0
- package/dist/components/ui/core/count/count.gallery.js.map +1 -0
- package/dist/components/ui/core/count/count.js +51 -21
- package/dist/components/ui/core/count/count.js.map +1 -0
- package/dist/components/ui/core/data-grid/data-grid-cell.d.ts +5 -7
- package/dist/components/ui/core/data-grid/data-grid-cell.js +19 -0
- package/dist/components/ui/core/data-grid/data-grid-cell.js.map +1 -0
- package/dist/components/ui/core/data-grid/data-grid-column-filter.d.ts +4 -0
- package/dist/components/ui/core/data-grid/data-grid-column-filter.js +13 -0
- package/dist/components/ui/core/data-grid/data-grid-column-filter.js.map +1 -0
- package/dist/components/ui/core/data-grid/data-grid-column-resizer.d.ts +8 -0
- package/dist/components/ui/core/data-grid/data-grid-column-resizer.js +25 -0
- package/dist/components/ui/core/data-grid/data-grid-column-resizer.js.map +1 -0
- package/dist/components/ui/core/data-grid/data-grid-filter-clauses.d.ts +14 -0
- package/dist/components/ui/core/data-grid/data-grid-filter-clauses.js +36 -0
- package/dist/components/ui/core/data-grid/data-grid-filter-clauses.js.map +1 -0
- package/dist/components/ui/core/data-grid/data-grid-filter-panel.d.ts +43 -0
- package/dist/components/ui/core/data-grid/data-grid-filter-panel.js +287 -0
- package/dist/components/ui/core/data-grid/data-grid-filter-panel.js.map +1 -0
- package/dist/components/ui/core/data-grid/data-grid-footer.d.ts +6 -0
- package/dist/components/ui/core/data-grid/data-grid-footer.js +34 -0
- package/dist/components/ui/core/data-grid/data-grid-footer.js.map +1 -0
- package/dist/components/ui/core/data-grid/data-grid-header-row.d.ts +10 -10
- package/dist/components/ui/core/data-grid/data-grid-header-row.js +86 -0
- package/dist/components/ui/core/data-grid/data-grid-header-row.js.map +1 -0
- package/dist/components/ui/core/data-grid/data-grid-header.d.ts +11 -0
- package/dist/components/ui/core/data-grid/data-grid-header.js +67 -0
- package/dist/components/ui/core/data-grid/data-grid-header.js.map +1 -0
- package/dist/components/ui/core/data-grid/data-grid-row.d.ts +13 -15
- package/dist/components/ui/core/data-grid/data-grid-row.js +118 -0
- package/dist/components/ui/core/data-grid/data-grid-row.js.map +1 -0
- package/dist/components/ui/core/data-grid/data-grid-selection-state.d.ts +15 -0
- package/dist/components/ui/core/data-grid/data-grid-selection-state.js +32 -0
- package/dist/components/ui/core/data-grid/data-grid-selection-state.js.map +1 -0
- package/dist/components/ui/core/data-grid/data-grid-selection-toolbar.d.ts +11 -0
- package/dist/components/ui/core/data-grid/data-grid-selection-toolbar.js +129 -0
- package/dist/components/ui/core/data-grid/data-grid-selection-toolbar.js.map +1 -0
- package/dist/components/ui/core/data-grid/data-grid-selection.types.d.ts +24 -0
- package/dist/components/ui/core/data-grid/data-grid-selection.types.js +3 -0
- package/dist/components/ui/core/data-grid/data-grid-selection.types.js.map +1 -0
- package/dist/components/ui/core/data-grid/data-grid.d.ts +125 -35
- package/dist/components/ui/core/data-grid/data-grid.fixtures.d.ts +7 -7
- package/dist/components/ui/core/data-grid/data-grid.fixtures.js +139 -0
- package/dist/components/ui/core/data-grid/data-grid.fixtures.js.map +1 -0
- package/dist/components/ui/core/data-grid/data-grid.js +542 -0
- package/dist/components/ui/core/data-grid/data-grid.js.map +1 -0
- package/dist/components/ui/core/data-grid/data-grid.utils.d.ts +3 -4
- package/dist/components/ui/core/data-grid/data-grid.utils.js +53 -0
- package/dist/components/ui/core/data-grid/data-grid.utils.js.map +1 -0
- package/dist/components/ui/core/data-grid/index.d.ts +6 -0
- package/dist/components/ui/core/data-grid/index.js +6 -0
- package/dist/components/ui/core/data-grid/index.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/date-picker/date-picker.d.ts +11 -13
- package/dist/components/ui/core/date-time-pickers/date-picker/date-picker.js +85 -61
- package/dist/components/ui/core/date-time-pickers/date-picker/date-picker.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/date-picker/index.d.ts +3 -3
- package/dist/components/ui/core/date-time-pickers/date-picker/index.js +3 -0
- package/dist/components/ui/core/date-time-pickers/date-picker/index.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/date-picker/types.d.ts +14 -14
- package/dist/components/ui/core/date-time-pickers/date-picker/types.js +3 -0
- package/dist/components/ui/core/date-time-pickers/date-picker/types.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/date-picker/use-date-picker.d.ts +2 -2
- package/dist/components/ui/core/date-time-pickers/date-picker/use-date-picker.js +51 -36
- package/dist/components/ui/core/date-time-pickers/date-picker/use-date-picker.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/date-range-picker/date-range-picker.d.ts +11 -13
- package/dist/components/ui/core/date-time-pickers/date-range-picker/date-range-picker.js +89 -64
- package/dist/components/ui/core/date-time-pickers/date-range-picker/date-range-picker.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/date-range-picker/index.d.ts +3 -3
- package/dist/components/ui/core/date-time-pickers/date-range-picker/index.js +3 -0
- package/dist/components/ui/core/date-time-pickers/date-range-picker/index.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/date-range-picker/types.d.ts +20 -20
- package/dist/components/ui/core/date-time-pickers/date-range-picker/types.js +3 -0
- package/dist/components/ui/core/date-time-pickers/date-range-picker/types.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/date-range-picker/use-date-range-picker.d.ts +4 -4
- package/dist/components/ui/core/date-time-pickers/date-range-picker/use-date-range-picker.js +95 -60
- package/dist/components/ui/core/date-time-pickers/date-range-picker/use-date-range-picker.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/date-time-picker/date-time-picker.d.ts +15 -0
- package/dist/components/ui/core/date-time-pickers/date-time-picker/date-time-picker.js +120 -0
- package/dist/components/ui/core/date-time-pickers/date-time-picker/date-time-picker.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/date-time-picker/index.d.ts +3 -1
- package/dist/components/ui/core/date-time-pickers/date-time-picker/index.js +3 -0
- package/dist/components/ui/core/date-time-pickers/date-time-picker/index.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/date-time-picker/types.d.ts +25 -32
- package/dist/components/ui/core/date-time-pickers/date-time-picker/types.js +3 -0
- package/dist/components/ui/core/date-time-pickers/date-time-picker/types.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/date-time-picker/use-date-time-picker.d.ts +2 -2
- package/dist/components/ui/core/date-time-pickers/date-time-picker/use-date-time-picker.js +78 -0
- package/dist/components/ui/core/date-time-pickers/date-time-picker/use-date-time-picker.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/date-time-range-picker/date-time-range-picker.d.ts +13 -15
- package/dist/components/ui/core/date-time-pickers/date-time-range-picker/date-time-range-picker.js +165 -119
- package/dist/components/ui/core/date-time-pickers/date-time-range-picker/date-time-range-picker.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/date-time-range-picker/index.d.ts +3 -3
- package/dist/components/ui/core/date-time-pickers/date-time-range-picker/index.js +3 -0
- package/dist/components/ui/core/date-time-pickers/date-time-range-picker/index.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/date-time-range-picker/types.d.ts +37 -37
- package/dist/components/ui/core/date-time-pickers/date-time-range-picker/types.js +3 -0
- package/dist/components/ui/core/date-time-pickers/date-time-range-picker/types.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/date-time-range-picker/use-date-time-range-picker.d.ts +3 -3
- package/dist/components/ui/core/date-time-pickers/date-time-range-picker/use-date-time-range-picker.js +163 -104
- package/dist/components/ui/core/date-time-pickers/date-time-range-picker/use-date-time-range-picker.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/index.d.ts +17 -12
- package/dist/components/ui/core/date-time-pickers/index.js +10 -6
- package/dist/components/ui/core/date-time-pickers/index.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/shared/am-pm-scroll/am-pm-scroll.d.ts +5 -5
- package/dist/components/ui/core/date-time-pickers/shared/am-pm-scroll/am-pm-scroll.js +52 -42
- package/dist/components/ui/core/date-time-pickers/shared/am-pm-scroll/am-pm-scroll.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/shared/constants.d.ts +6 -1
- package/dist/components/ui/core/date-time-pickers/shared/constants.js +23 -0
- package/dist/components/ui/core/date-time-pickers/shared/constants.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/shared/date-time-input/date-time-input.d.ts +16 -15
- package/dist/components/ui/core/date-time-pickers/shared/date-time-input/date-time-input.js +87 -64
- package/dist/components/ui/core/date-time-pickers/shared/date-time-input/date-time-input.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/shared/date-time-input/range-input-display.d.ts +10 -9
- package/dist/components/ui/core/date-time-pickers/shared/date-time-input/range-input-display.js +89 -38
- package/dist/components/ui/core/date-time-pickers/shared/date-time-input/range-input-display.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/shared/hooks/use-popover-state.d.ts +5 -5
- package/dist/components/ui/core/date-time-pickers/shared/hooks/use-popover-state.js +34 -23
- package/dist/components/ui/core/date-time-pickers/shared/hooks/use-popover-state.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/shared/hooks/use-range-date-state.d.ts +23 -23
- package/dist/components/ui/core/date-time-pickers/shared/hooks/use-range-date-state.js +95 -52
- package/dist/components/ui/core/date-time-pickers/shared/hooks/use-range-date-state.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/shared/hooks/use-range-step-manager.d.ts +5 -5
- package/dist/components/ui/core/date-time-pickers/shared/hooks/use-range-step-manager.js +22 -18
- package/dist/components/ui/core/date-time-pickers/shared/hooks/use-range-step-manager.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/shared/hooks/use-single-date-state.d.ts +19 -19
- package/dist/components/ui/core/date-time-pickers/shared/hooks/use-single-date-state.js +41 -24
- package/dist/components/ui/core/date-time-pickers/shared/hooks/use-single-date-state.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/shared/hooks/use-time-state.d.ts +13 -13
- package/dist/components/ui/core/date-time-pickers/shared/hooks/use-time-state.js +33 -24
- package/dist/components/ui/core/date-time-pickers/shared/hooks/use-time-state.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/shared/scroll-cell-classes.d.ts +5 -5
- package/dist/components/ui/core/date-time-pickers/shared/scroll-cell-classes.js +9 -4
- package/dist/components/ui/core/date-time-pickers/shared/scroll-cell-classes.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/shared/shortcuts-panel/shortcuts-panel.d.ts +13 -9
- package/dist/components/ui/core/date-time-pickers/shared/shortcuts-panel/shortcuts-panel.js +22 -17
- package/dist/components/ui/core/date-time-pickers/shared/shortcuts-panel/shortcuts-panel.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/shared/time-picker-panel/index.d.ts +2 -2
- package/dist/components/ui/core/date-time-pickers/shared/time-picker-panel/index.js +3 -0
- package/dist/components/ui/core/date-time-pickers/shared/time-picker-panel/index.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/shared/time-picker-panel/time-picker-panel.d.ts +13 -13
- package/dist/components/ui/core/date-time-pickers/shared/time-picker-panel/time-picker-panel.js +49 -40
- package/dist/components/ui/core/date-time-pickers/shared/time-picker-panel/time-picker-panel.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/shared/time-picker-scroll/time-picker-scroll.d.ts +7 -7
- package/dist/components/ui/core/date-time-pickers/shared/time-picker-scroll/time-picker-scroll.js +41 -34
- package/dist/components/ui/core/date-time-pickers/shared/time-picker-scroll/time-picker-scroll.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/time-picker/index.d.ts +3 -3
- package/dist/components/ui/core/date-time-pickers/time-picker/index.js +3 -0
- package/dist/components/ui/core/date-time-pickers/time-picker/index.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/time-picker/time-picker.d.ts +12 -14
- package/dist/components/ui/core/date-time-pickers/time-picker/time-picker.js +99 -79
- package/dist/components/ui/core/date-time-pickers/time-picker/time-picker.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/time-picker/types.d.ts +20 -20
- package/dist/components/ui/core/date-time-pickers/time-picker/types.js +3 -0
- package/dist/components/ui/core/date-time-pickers/time-picker/types.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/time-picker/use-time-picker.d.ts +2 -2
- package/dist/components/ui/core/date-time-pickers/time-picker/use-time-picker.js +63 -41
- package/dist/components/ui/core/date-time-pickers/time-picker/use-time-picker.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/time-range-picker/index.d.ts +3 -1
- package/dist/components/ui/core/date-time-pickers/time-range-picker/index.js +3 -0
- package/dist/components/ui/core/date-time-pickers/time-range-picker/index.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/time-range-picker/time-range-picker.d.ts +14 -0
- package/dist/components/ui/core/date-time-pickers/time-range-picker/time-range-picker.js +115 -0
- package/dist/components/ui/core/date-time-pickers/time-range-picker/time-range-picker.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/time-range-picker/types.d.ts +30 -36
- package/dist/components/ui/core/date-time-pickers/time-range-picker/types.js +3 -0
- package/dist/components/ui/core/date-time-pickers/time-range-picker/types.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/time-range-picker/use-time-range-picker.d.ts +2 -2
- package/dist/components/ui/core/date-time-pickers/time-range-picker/use-time-range-picker.js +145 -0
- package/dist/components/ui/core/date-time-pickers/time-range-picker/use-time-range-picker.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/utils/date-input.d.ts +56 -0
- package/dist/components/ui/core/date-time-pickers/utils/date-input.js +67 -0
- package/dist/components/ui/core/date-time-pickers/utils/date-input.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/utils/date-range-utils.d.ts +18 -18
- package/dist/components/ui/core/date-time-pickers/utils/date-range-utils.js +42 -0
- package/dist/components/ui/core/date-time-pickers/utils/date-range-utils.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/utils/format-utils.d.ts +31 -29
- package/dist/components/ui/core/date-time-pickers/utils/format-utils.js +56 -0
- package/dist/components/ui/core/date-time-pickers/utils/format-utils.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/utils/segment-utils.d.ts +21 -21
- package/dist/components/ui/core/date-time-pickers/utils/segment-utils.js +170 -0
- package/dist/components/ui/core/date-time-pickers/utils/segment-utils.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/utils/time-utils.d.ts +28 -28
- package/dist/components/ui/core/date-time-pickers/utils/time-utils.js +88 -7
- package/dist/components/ui/core/date-time-pickers/utils/time-utils.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/utils/time-validation.d.ts +17 -17
- package/dist/components/ui/core/date-time-pickers/utils/time-validation.js +43 -0
- package/dist/components/ui/core/date-time-pickers/utils/time-validation.js.map +1 -0
- package/dist/components/ui/core/dialog/dialog.d.ts +12 -9
- package/dist/components/ui/core/dialog/dialog.js +90 -82
- package/dist/components/ui/core/dialog/dialog.js.map +1 -0
- package/dist/components/ui/core/dropdown-menu/dropdown-menu.d.ts +22 -19
- package/dist/components/ui/core/dropdown-menu/dropdown-menu.js +204 -149
- package/dist/components/ui/core/dropdown-menu/dropdown-menu.js.map +1 -0
- package/dist/components/ui/core/empty-state/empty-state.context.d.ts +4 -4
- package/dist/components/ui/core/empty-state/empty-state.context.js +8 -5
- package/dist/components/ui/core/empty-state/empty-state.context.js.map +1 -0
- package/dist/components/ui/core/empty-state/empty-state.d.ts +14 -14
- package/dist/components/ui/core/empty-state/empty-state.js +96 -82
- package/dist/components/ui/core/empty-state/empty-state.js.map +1 -0
- package/dist/components/ui/core/helper-text/helper-text.d.ts +7 -7
- package/dist/components/ui/core/helper-text/helper-text.js +55 -36
- package/dist/components/ui/core/helper-text/helper-text.js.map +1 -0
- package/dist/components/ui/core/hover-card/hover-card.d.ts +7 -6
- package/dist/components/ui/core/hover-card/hover-card.js +56 -52
- package/dist/components/ui/core/hover-card/hover-card.js.map +1 -0
- package/dist/components/ui/core/inline-citation/inline-citation.d.ts +26 -25
- package/dist/components/ui/core/inline-citation/inline-citation.js +121 -97
- package/dist/components/ui/core/inline-citation/inline-citation.js.map +1 -0
- package/dist/components/ui/core/input/input.d.ts +2 -2
- package/dist/components/ui/core/input/input.gallery.d.ts +2 -0
- package/dist/components/ui/core/input/input.gallery.js +89 -0
- package/dist/components/ui/core/input/input.gallery.js.map +1 -0
- package/dist/components/ui/core/input/input.js +15 -13
- package/dist/components/ui/core/input/input.js.map +1 -0
- package/dist/components/ui/core/input-group/input-group.d.ts +25 -14
- package/dist/components/ui/core/input-group/input-group.js +149 -76
- package/dist/components/ui/core/input-group/input-group.js.map +1 -0
- package/dist/components/ui/core/item/item.d.ts +20 -0
- package/dist/components/ui/core/item/item.js +93 -0
- package/dist/components/ui/core/item/item.js.map +1 -0
- package/dist/components/ui/core/kbd/kbd.d.ts +3 -3
- package/dist/components/ui/core/kbd/kbd.js +24 -20
- package/dist/components/ui/core/kbd/kbd.js.map +1 -0
- package/dist/components/ui/core/label/label.d.ts +3 -3
- package/dist/components/ui/core/label/label.gallery.d.ts +2 -0
- package/dist/components/ui/core/label/label.gallery.js +57 -0
- package/dist/components/ui/core/label/label.gallery.js.map +1 -0
- package/dist/components/ui/core/label/label.js +33 -26
- package/dist/components/ui/core/label/label.js.map +1 -0
- package/dist/components/ui/core/loader/loader.d.ts +6 -6
- package/dist/components/ui/core/loader/loader.js +97 -80
- package/dist/components/ui/core/loader/loader.js.map +1 -0
- package/dist/components/ui/core/message/message-response-default-streamdown-controls.d.ts +8 -9
- package/dist/components/ui/core/message/message-response-default-streamdown-controls.js +18 -12
- package/dist/components/ui/core/message/message-response-default-streamdown-controls.js.map +1 -0
- package/dist/components/ui/core/message/message-response-math-plugin.d.ts +3 -0
- package/dist/components/ui/core/message/message-response-math-plugin.js +6 -0
- package/dist/components/ui/core/message/message-response-math-plugin.js.map +1 -0
- package/dist/components/ui/core/message/message.d.ts +27 -23
- package/dist/components/ui/core/message/message.js +458 -316
- package/dist/components/ui/core/message/message.js.map +1 -0
- package/dist/components/ui/core/overflow-list/overflow-list.d.ts +21 -0
- package/dist/components/ui/core/overflow-list/overflow-list.js +197 -0
- package/dist/components/ui/core/overflow-list/overflow-list.js.map +1 -0
- package/dist/components/ui/core/overflow-list/overflow-list.utils.d.ts +37 -35
- package/dist/components/ui/core/overflow-list/overflow-list.utils.js +206 -0
- package/dist/components/ui/core/overflow-list/overflow-list.utils.js.map +1 -0
- package/dist/components/ui/core/pagination/pagination-size-context.d.ts +2 -2
- package/dist/components/ui/core/pagination/pagination-size-context.js +6 -5
- package/dist/components/ui/core/pagination/pagination-size-context.js.map +1 -0
- package/dist/components/ui/core/pagination/pagination-teleport.d.ts +9 -9
- package/dist/components/ui/core/pagination/pagination-teleport.js +127 -84
- package/dist/components/ui/core/pagination/pagination-teleport.js.map +1 -0
- package/dist/components/ui/core/pagination/pagination-teleport.utils.js +6 -6
- package/dist/components/ui/core/pagination/pagination-teleport.utils.js.map +1 -0
- package/dist/components/ui/core/pagination/pagination.d.ts +39 -39
- package/dist/components/ui/core/pagination/pagination.js +294 -234
- package/dist/components/ui/core/pagination/pagination.js.map +1 -0
- package/dist/components/ui/core/popover/popover.d.ts +12 -11
- package/dist/components/ui/core/popover/popover.js +104 -89
- package/dist/components/ui/core/popover/popover.js.map +1 -0
- package/dist/components/ui/core/progress/progress.d.ts +9 -8
- package/dist/components/ui/core/progress/progress.js +50 -35
- package/dist/components/ui/core/progress/progress.js.map +1 -0
- package/dist/components/ui/core/prompt-input/prompt-input.d.ts +27 -27
- package/dist/components/ui/core/prompt-input/prompt-input.js +342 -271
- package/dist/components/ui/core/prompt-input/prompt-input.js.map +1 -0
- package/dist/components/ui/core/radio-group/radio-group.d.ts +12 -12
- package/dist/components/ui/core/radio-group/radio-group.gallery.d.ts +2 -0
- package/dist/components/ui/core/radio-group/radio-group.gallery.js +44 -0
- package/dist/components/ui/core/radio-group/radio-group.gallery.js.map +1 -0
- package/dist/components/ui/core/radio-group/radio-group.js +88 -58
- package/dist/components/ui/core/radio-group/radio-group.js.map +1 -0
- package/dist/components/ui/core/reasoning/reasoning.d.ts +7 -7
- package/dist/components/ui/core/reasoning/reasoning.js +68 -56
- package/dist/components/ui/core/reasoning/reasoning.js.map +1 -0
- package/dist/components/ui/core/scroll-area/scroll-area.d.ts +4 -4
- package/dist/components/ui/core/scroll-area/scroll-area.js +50 -40
- package/dist/components/ui/core/scroll-area/scroll-area.js.map +1 -0
- package/dist/components/ui/core/search/search.d.ts +8 -8
- package/dist/components/ui/core/search/search.js +122 -76
- package/dist/components/ui/core/search/search.js.map +1 -0
- package/dist/components/ui/core/segmented-control/segmented-control.d.ts +17 -11
- package/dist/components/ui/core/segmented-control/segmented-control.js +204 -108
- package/dist/components/ui/core/segmented-control/segmented-control.js.map +1 -0
- package/dist/components/ui/core/select/select.d.ts +33 -26
- package/dist/components/ui/core/select/select.js +262 -168
- package/dist/components/ui/core/select/select.js.map +1 -0
- package/dist/components/ui/core/separator/separator.d.ts +2 -2
- package/dist/components/ui/core/separator/separator.gallery.d.ts +2 -0
- package/dist/components/ui/core/separator/separator.gallery.js +63 -0
- package/dist/components/ui/core/separator/separator.gallery.js.map +1 -0
- package/dist/components/ui/core/separator/separator.js +13 -13
- package/dist/components/ui/core/separator/separator.js.map +1 -0
- package/dist/components/ui/core/shimmer/shimmer.d.ts +8 -8
- package/dist/components/ui/core/shimmer/shimmer.js +64 -40
- package/dist/components/ui/core/shimmer/shimmer.js.map +1 -0
- package/dist/components/ui/core/skeleton/skeleton.d.ts +2 -2
- package/dist/components/ui/core/skeleton/skeleton.gallery.d.ts +2 -0
- package/dist/components/ui/core/skeleton/skeleton.gallery.js +22 -0
- package/dist/components/ui/core/skeleton/skeleton.gallery.js.map +1 -0
- package/dist/components/ui/core/skeleton/skeleton.js +13 -13
- package/dist/components/ui/core/skeleton/skeleton.js.map +1 -0
- package/dist/components/ui/core/slider/slider.d.ts +7 -7
- package/dist/components/ui/core/slider/slider.gallery.d.ts +2 -0
- package/dist/components/ui/core/slider/slider.gallery.js +62 -0
- package/dist/components/ui/core/slider/slider.gallery.js.map +1 -0
- package/dist/components/ui/core/slider/slider.js +51 -39
- package/dist/components/ui/core/slider/slider.js.map +1 -0
- package/dist/components/ui/core/sonner-toast/sonner-toast.d.ts +2 -2
- package/dist/components/ui/core/sonner-toast/sonner-toast.js +67 -54
- package/dist/components/ui/core/sonner-toast/sonner-toast.js.map +1 -0
- package/dist/components/ui/core/sources/sources.d.ts +12 -12
- package/dist/components/ui/core/sources/sources.js +87 -58
- package/dist/components/ui/core/sources/sources.js.map +1 -0
- package/dist/components/ui/core/status-text/status-text.d.ts +4 -0
- package/dist/components/ui/core/status-text/status-text.js +14 -0
- package/dist/components/ui/core/status-text/status-text.js.map +1 -0
- package/dist/components/ui/core/switch/switch.d.ts +9 -9
- package/dist/components/ui/core/switch/switch.gallery.d.ts +2 -0
- package/dist/components/ui/core/switch/switch.gallery.js +67 -0
- package/dist/components/ui/core/switch/switch.gallery.js.map +1 -0
- package/dist/components/ui/core/switch/switch.js +83 -61
- package/dist/components/ui/core/switch/switch.js.map +1 -0
- package/dist/components/ui/core/switch/switch.metadata.d.ts +1 -1
- package/dist/components/ui/core/switch/switch.metadata.js +8 -0
- package/dist/components/ui/core/switch/switch.metadata.js.map +1 -0
- package/dist/components/ui/core/tabs/tabs.d.ts +20 -18
- package/dist/components/ui/core/tabs/tabs.js +176 -147
- package/dist/components/ui/core/tabs/tabs.js.map +1 -0
- package/dist/components/ui/core/tabs/tabs.utils.d.ts +1 -1
- package/dist/components/ui/core/tabs/tabs.utils.js +10 -6
- package/dist/components/ui/core/tabs/tabs.utils.js.map +1 -0
- package/dist/components/ui/core/textarea/textarea.d.ts +2 -2
- package/dist/components/ui/core/textarea/textarea.gallery.d.ts +2 -0
- package/dist/components/ui/core/textarea/textarea.gallery.js +51 -0
- package/dist/components/ui/core/textarea/textarea.gallery.js.map +1 -0
- package/dist/components/ui/core/textarea/textarea.js +13 -13
- package/dist/components/ui/core/textarea/textarea.js.map +1 -0
- package/dist/components/ui/core/toggle/toggle.d.ts +9 -9
- package/dist/components/ui/core/toggle/toggle.gallery.d.ts +2 -0
- package/dist/components/ui/core/toggle/toggle.gallery.js +32 -0
- package/dist/components/ui/core/toggle/toggle.gallery.js.map +1 -0
- package/dist/components/ui/core/toggle/toggle.js +60 -54
- package/dist/components/ui/core/toggle/toggle.js.map +1 -0
- package/dist/components/ui/core/tool/tool.d.ts +18 -18
- package/dist/components/ui/core/tool/tool.js +167 -126
- package/dist/components/ui/core/tool/tool.js.map +1 -0
- package/dist/components/ui/core/toolbar/toolbar.d.ts +37 -0
- package/dist/components/ui/core/toolbar/toolbar.js +171 -0
- package/dist/components/ui/core/toolbar/toolbar.js.map +1 -0
- package/dist/components/ui/core/tooltip/tooltip.d.ts +8 -7
- package/dist/components/ui/core/tooltip/tooltip.gallery.d.ts +2 -0
- package/dist/components/ui/core/tooltip/tooltip.gallery.js +52 -0
- package/dist/components/ui/core/tooltip/tooltip.gallery.js.map +1 -0
- package/dist/components/ui/core/tooltip/tooltip.js +53 -46
- package/dist/components/ui/core/tooltip/tooltip.js.map +1 -0
- package/dist/components/ui/core/topbar/topbar.d.ts +26 -26
- package/dist/components/ui/core/topbar/topbar.js +160 -105
- package/dist/components/ui/core/topbar/topbar.js.map +1 -0
- package/dist/components/ui/core/tree/tree.d.ts +20 -0
- package/dist/components/ui/core/tree/tree.js +100 -0
- package/dist/components/ui/core/tree/tree.js.map +1 -0
- package/dist/eslint/index.d.ts +5 -5
- package/dist/eslint/index.js +9 -5
- package/dist/eslint/index.js.map +1 -0
- package/dist/eslint/no-overriding-styles.d.ts +1 -1
- package/dist/eslint/no-overriding-styles.js +341 -201
- package/dist/eslint/no-overriding-styles.js.map +1 -0
- package/dist/icons/index.d.ts +1 -1
- package/dist/icons/index.js +2 -0
- package/dist/icons/index.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/ai/types.d.ts +43 -43
- package/dist/lib/ai/types.js +3 -0
- package/dist/lib/ai/types.js.map +1 -0
- package/dist/lib/decorative-variant-classes.d.ts +53 -0
- package/dist/lib/decorative-variant-classes.js +58 -0
- package/dist/lib/decorative-variant-classes.js.map +1 -0
- package/dist/lib/highlight-code.d.ts +11 -8
- package/dist/lib/highlight-code.js +58 -40
- package/dist/lib/highlight-code.js.map +1 -0
- package/dist/lib/portal-container-context.d.ts +1 -1
- package/dist/lib/portal-container-context.js +8 -8
- package/dist/lib/portal-container-context.js.map +1 -0
- package/dist/lib/shared-theme-from-url.d.ts +13 -0
- package/dist/lib/shared-theme-from-url.js +61 -0
- package/dist/lib/shared-theme-from-url.js.map +1 -0
- package/dist/lib/style-scope.d.ts +2 -2
- package/dist/lib/style-scope.js +6 -6
- package/dist/lib/style-scope.js.map +1 -0
- package/dist/lib/theme-share-url.d.ts +31 -0
- package/dist/lib/theme-share-url.js +116 -0
- package/dist/lib/theme-share-url.js.map +1 -0
- package/dist/lib/types.d.ts +39 -39
- package/dist/lib/types.js +3 -0
- package/dist/lib/types.js.map +1 -0
- package/dist/lib/use-controllable-state.d.ts +4 -7
- package/dist/lib/use-controllable-state.js +34 -21
- package/dist/lib/use-controllable-state.js.map +1 -0
- package/dist/lib/utils.d.ts +63 -34
- package/dist/lib/utils.js +134 -32
- package/dist/lib/utils.js.map +1 -0
- package/dist/styles.css +2 -1
- package/dist/styles.source.css +46 -16
- package/dist/utils/assign-ref.d.ts +3 -0
- package/dist/utils/assign-ref.js +13 -0
- package/dist/utils/assign-ref.js.map +1 -0
- package/package.json +53 -14
- package/src/components/ui/core/alert/alert.md +46 -0
- package/src/components/ui/core/avatar/avatar.md +30 -0
- package/src/components/ui/core/badge/badge.md +32 -0
- package/src/components/ui/core/banner/banner.md +51 -0
- package/src/components/ui/core/breadcrumb/breadcrumb.md +45 -0
- package/src/components/ui/core/button/button.md +93 -0
- package/src/components/ui/core/button-group/button-group.md +38 -0
- package/src/components/ui/core/checkbox/checkbox.md +37 -0
- package/src/components/ui/core/collapsible/collapsible.md +42 -0
- package/src/components/ui/core/count/count.md +33 -0
- package/src/components/ui/core/input/input.md +48 -0
- package/src/components/ui/core/label/label.md +35 -0
- package/src/components/ui/core/radio-group/radio-group.md +38 -0
- package/src/components/ui/core/separator/separator.md +32 -0
- package/src/components/ui/core/skeleton/skeleton.md +33 -0
- package/src/components/ui/core/slider/slider.md +41 -0
- package/src/components/ui/core/switch/switch.md +26 -0
- package/src/components/ui/core/textarea/textarea.md +42 -0
- package/src/components/ui/core/toggle/toggle.md +39 -0
- package/src/components/ui/core/tooltip/tooltip.md +41 -0
|
@@ -1,26 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { forwardRef
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
|
+
import { cn } from "../../../../lib/utils.js";
|
|
4
|
+
const Label = /*#__PURE__*/ forwardRef(({ className, children, required = false, ...props }, ref)=>{
|
|
5
|
+
return /*#__PURE__*/ _jsxs("label", {
|
|
6
|
+
ref: ref,
|
|
7
|
+
"data-slot": "label",
|
|
8
|
+
className: cn('flex items-center pb-2 text-sm font-medium leading-4.5 tracking-normal text-muted-foreground select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:cursor-not-allowed group-data-[disabled=true]:text-base-foreground-disabled', className),
|
|
9
|
+
...props,
|
|
10
|
+
children: [
|
|
11
|
+
children,
|
|
12
|
+
required ? /*#__PURE__*/ _jsx("span", {
|
|
13
|
+
"data-slot": "label-required-indicator",
|
|
14
|
+
className: "inline-block shrink-0 self-start pt-0.5",
|
|
15
|
+
children: /*#__PURE__*/ _jsx("svg", {
|
|
16
|
+
"aria-hidden": "true",
|
|
17
|
+
width: "5",
|
|
18
|
+
height: "8",
|
|
19
|
+
viewBox: "0 0 5 8",
|
|
20
|
+
fill: "currentColor",
|
|
21
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
22
|
+
children: /*#__PURE__*/ _jsx("path", {
|
|
23
|
+
d: "M2.01082 7.19387L2.09648 5.29125L0.491434 6.32372L0 5.46709L1.70424 4.59693L0 3.72678L0.491434 2.87015L2.09648 3.90261L2.01082 2H2.98918L2.90352 3.90261L4.50857 2.87015L5 3.72678L3.29576 4.59693L5 5.46709L4.50857 6.32372L2.90352 5.29125L2.98918 7.19387H2.01082Z"
|
|
24
|
+
})
|
|
25
|
+
})
|
|
26
|
+
}) : null
|
|
27
|
+
]
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
Label.displayName = 'Label';
|
|
31
|
+
export { Label };
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=label.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/components/ui/core/label/label.tsx"],"sourcesContent":["import {\n type ComponentProps,\n type ForwardRefExoticComponent,\n type RefAttributes,\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n} from 'react';\n\nimport { cn } from '../../../../lib/utils';\n\ntype LabelProps = ComponentPropsWithoutRef<'label'> & {\n required?: boolean;\n};\n\nconst Label: ForwardRefExoticComponent<\n ComponentProps<'label'> & {\n required?: boolean;\n } & RefAttributes<HTMLLabelElement>\n> = forwardRef<ComponentRef<'label'>, LabelProps>(\n ({ className, children, required = false, ...props }, ref) => {\n return (\n <label\n ref={ref}\n data-slot=\"label\"\n className={cn(\n 'flex items-center pb-2 text-sm font-medium leading-4.5 tracking-normal text-muted-foreground select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:cursor-not-allowed group-data-[disabled=true]:text-base-foreground-disabled',\n className\n )}\n {...props}\n >\n {children}\n {required ? (\n <span\n data-slot=\"label-required-indicator\"\n className=\"inline-block shrink-0 self-start pt-0.5\"\n >\n <svg\n aria-hidden=\"true\"\n width=\"5\"\n height=\"8\"\n viewBox=\"0 0 5 8\"\n fill=\"currentColor\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path d=\"M2.01082 7.19387L2.09648 5.29125L0.491434 6.32372L0 5.46709L1.70424 4.59693L0 3.72678L0.491434 2.87015L2.09648 3.90261L2.01082 2H2.98918L2.90352 3.90261L4.50857 2.87015L5 3.72678L3.29576 4.59693L5 5.46709L4.50857 6.32372L2.90352 5.29125L2.98918 7.19387H2.01082Z\" />\n </svg>\n </span>\n ) : null}\n </label>\n );\n }\n);\n\nLabel.displayName = 'Label';\n\nexport { Label };\n"],"names":["forwardRef","cn","Label","className","children","required","props","ref","label","data-slot","span","svg","aria-hidden","width","height","viewBox","fill","xmlns","path","d","displayName"],"mappings":";AAAA,SAMEA,UAAU,QACL,QAAQ;AAEf,SAASC,EAAE,QAAQ,2BAAwB;AAM3C,MAAMC,sBAIFF,WACF,CAAC,EAAEG,SAAS,EAAEC,QAAQ,EAAEC,WAAW,KAAK,EAAE,GAAGC,OAAO,EAAEC;IACpD,qBACE,MAACC;QACCD,KAAKA;QACLE,aAAU;QACVN,WAAWF,GACT,kQACAE;QAED,GAAGG,KAAK;;YAERF;YACAC,yBACC,KAACK;gBACCD,aAAU;gBACVN,WAAU;0BAEV,cAAA,KAACQ;oBACCC,eAAY;oBACZC,OAAM;oBACNC,QAAO;oBACPC,SAAQ;oBACRC,MAAK;oBACLC,OAAM;8BAEN,cAAA,KAACC;wBAAKC,GAAE;;;iBAGV;;;AAGV;AAGFjB,MAAMkB,WAAW,GAAG;AAEpB,SAASlB,KAAK,GAAG"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ForwardRefExoticComponent, RefAttributes, HTMLAttributes } from
|
|
1
|
+
import { type ForwardRefExoticComponent, type RefAttributes, type HTMLAttributes } from "react";
|
|
2
2
|
type LoaderSharedProps = HTMLAttributes<HTMLDivElement>;
|
|
3
3
|
interface InlineLoaderProps extends LoaderSharedProps {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
variant?: "inline";
|
|
5
|
+
size?: number;
|
|
6
6
|
}
|
|
7
7
|
interface PageLoaderProps extends LoaderSharedProps {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
variant: "page";
|
|
9
|
+
header: string;
|
|
10
|
+
description?: string;
|
|
11
11
|
}
|
|
12
12
|
type LoaderProps = InlineLoaderProps | PageLoaderProps;
|
|
13
13
|
declare const Loader: ForwardRefExoticComponent<LoaderProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -1,81 +1,98 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { forwardRef
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
|
+
import { cn } from "../../../../lib/utils.js";
|
|
4
|
+
const LoaderGlyph = ({ size = 16, className, strokeClassName })=>{
|
|
5
|
+
return /*#__PURE__*/ _jsxs("svg", {
|
|
6
|
+
"aria-hidden": "true",
|
|
7
|
+
focusable: "false",
|
|
8
|
+
className: cn('overflow-visible', strokeClassName, className),
|
|
9
|
+
height: size,
|
|
10
|
+
viewBox: "0 0 167 216",
|
|
11
|
+
width: size,
|
|
12
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
13
|
+
children: [
|
|
14
|
+
/*#__PURE__*/ _jsx("rect", {
|
|
15
|
+
className: "aura-loader-rect aura-loader-rect-1",
|
|
16
|
+
"data-slot": "loader-rect",
|
|
17
|
+
x: "10",
|
|
18
|
+
y: "10",
|
|
19
|
+
width: "98",
|
|
20
|
+
height: "196",
|
|
21
|
+
rx: "49",
|
|
22
|
+
fill: "transparent",
|
|
23
|
+
stroke: "currentColor",
|
|
24
|
+
strokeWidth: "20",
|
|
25
|
+
strokeLinecap: "round"
|
|
26
|
+
}),
|
|
27
|
+
/*#__PURE__*/ _jsx("rect", {
|
|
28
|
+
className: "aura-loader-rect aura-loader-rect-2",
|
|
29
|
+
"data-slot": "loader-rect",
|
|
30
|
+
x: "59",
|
|
31
|
+
y: "10",
|
|
32
|
+
width: "98",
|
|
33
|
+
height: "196",
|
|
34
|
+
rx: "49",
|
|
35
|
+
fill: "transparent",
|
|
36
|
+
stroke: "currentColor",
|
|
37
|
+
strokeWidth: "20",
|
|
38
|
+
strokeLinecap: "round"
|
|
39
|
+
})
|
|
40
|
+
]
|
|
41
|
+
});
|
|
42
|
+
};
|
|
43
|
+
const isPageLoaderProps = (props)=>{
|
|
44
|
+
return props.variant === 'page';
|
|
45
|
+
};
|
|
46
|
+
const Loader = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
47
|
+
const className = props.className;
|
|
48
|
+
const role = props.role ?? 'status';
|
|
49
|
+
const ariaLabel = props['aria-label'] ?? 'Loading';
|
|
50
|
+
if (!isPageLoaderProps(props)) {
|
|
51
|
+
const { size = 16, variant: _variant, className: _className, role: _role, 'aria-label': _ariaLabel, ...divProps } = props;
|
|
52
|
+
return /*#__PURE__*/ _jsx("div", {
|
|
53
|
+
ref: ref,
|
|
54
|
+
"data-slot": "loader",
|
|
55
|
+
role: role,
|
|
56
|
+
"aria-label": ariaLabel,
|
|
57
|
+
className: cn('inline-flex items-center justify-center', className),
|
|
58
|
+
...divProps,
|
|
59
|
+
children: /*#__PURE__*/ _jsx(LoaderGlyph, {
|
|
60
|
+
size: size,
|
|
61
|
+
strokeClassName: "text-current"
|
|
62
|
+
})
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
const { variant: _variant, className: _className, role: _role, 'aria-label': _ariaLabel, header, description, ...divProps } = props;
|
|
66
|
+
return /*#__PURE__*/ _jsxs("div", {
|
|
67
|
+
ref: ref,
|
|
68
|
+
"data-slot": "loader",
|
|
69
|
+
role: role,
|
|
70
|
+
"aria-label": ariaLabel,
|
|
71
|
+
className: cn('text-foreground flex h-[11.5rem] w-80 flex-col items-center justify-center gap-2', className),
|
|
72
|
+
...divProps,
|
|
73
|
+
children: [
|
|
74
|
+
/*#__PURE__*/ _jsx(LoaderGlyph, {
|
|
75
|
+
size: 112,
|
|
76
|
+
className: "size-28",
|
|
77
|
+
strokeClassName: "text-current"
|
|
78
|
+
}),
|
|
79
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
80
|
+
className: "flex w-full flex-col items-center justify-center gap-1 text-center",
|
|
81
|
+
children: [
|
|
82
|
+
/*#__PURE__*/ _jsx("p", {
|
|
83
|
+
className: "text-lg font-medium leading-6 tracking-tightest text-foreground",
|
|
84
|
+
children: header
|
|
85
|
+
}),
|
|
86
|
+
description && /*#__PURE__*/ _jsx("p", {
|
|
87
|
+
className: "w-full text-sm leading-[18px] tracking-tight text-secondary-foreground",
|
|
88
|
+
children: description
|
|
89
|
+
})
|
|
90
|
+
]
|
|
91
|
+
})
|
|
92
|
+
]
|
|
93
|
+
});
|
|
78
94
|
});
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
95
|
+
Loader.displayName = 'Loader';
|
|
96
|
+
export { Loader };
|
|
97
|
+
|
|
98
|
+
//# sourceMappingURL=loader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/components/ui/core/loader/loader.tsx"],"sourcesContent":["import {\n type ForwardRefExoticComponent,\n type RefAttributes,\n type ComponentRef,\n type HTMLAttributes,\n forwardRef,\n} from 'react';\n\nimport { cn } from '../../../../lib/utils';\n\ninterface LoaderGlyphProps {\n size?: number;\n className?: string;\n strokeClassName?: string;\n}\n\nconst LoaderGlyph = ({\n size = 16,\n className,\n strokeClassName,\n}: LoaderGlyphProps) => {\n return (\n <svg\n aria-hidden=\"true\"\n focusable=\"false\"\n className={cn('overflow-visible', strokeClassName, className)}\n height={size}\n viewBox=\"0 0 167 216\"\n width={size}\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <rect\n className=\"aura-loader-rect aura-loader-rect-1\"\n data-slot=\"loader-rect\"\n x=\"10\"\n y=\"10\"\n width=\"98\"\n height=\"196\"\n rx=\"49\"\n fill=\"transparent\"\n stroke=\"currentColor\"\n strokeWidth=\"20\"\n strokeLinecap=\"round\"\n />\n <rect\n className=\"aura-loader-rect aura-loader-rect-2\"\n data-slot=\"loader-rect\"\n x=\"59\"\n y=\"10\"\n width=\"98\"\n height=\"196\"\n rx=\"49\"\n fill=\"transparent\"\n stroke=\"currentColor\"\n strokeWidth=\"20\"\n strokeLinecap=\"round\"\n />\n </svg>\n );\n};\n\ntype LoaderSharedProps = HTMLAttributes<HTMLDivElement>;\n\ninterface InlineLoaderProps extends LoaderSharedProps {\n variant?: 'inline';\n size?: number;\n}\n\ninterface PageLoaderProps extends LoaderSharedProps {\n variant: 'page';\n header: string;\n description?: string;\n}\n\ntype LoaderProps = InlineLoaderProps | PageLoaderProps;\n\nconst isPageLoaderProps = (props: LoaderProps): props is PageLoaderProps => {\n return props.variant === 'page';\n};\n\nconst Loader: ForwardRefExoticComponent<\n LoaderProps & RefAttributes<HTMLDivElement>\n> = forwardRef<ComponentRef<'div'>, LoaderProps>((props, ref) => {\n const className = props.className;\n const role = props.role ?? 'status';\n const ariaLabel = props['aria-label'] ?? 'Loading';\n\n if (!isPageLoaderProps(props)) {\n const {\n size = 16,\n variant: _variant,\n className: _className,\n role: _role,\n 'aria-label': _ariaLabel,\n ...divProps\n } = props;\n\n return (\n <div\n ref={ref}\n data-slot=\"loader\"\n role={role}\n aria-label={ariaLabel}\n className={cn('inline-flex items-center justify-center', className)}\n {...divProps}\n >\n <LoaderGlyph size={size} strokeClassName=\"text-current\" />\n </div>\n );\n }\n\n const {\n variant: _variant,\n className: _className,\n role: _role,\n 'aria-label': _ariaLabel,\n header,\n description,\n ...divProps\n } = props;\n\n return (\n <div\n ref={ref}\n data-slot=\"loader\"\n role={role}\n aria-label={ariaLabel}\n className={cn(\n 'text-foreground flex h-[11.5rem] w-80 flex-col items-center justify-center gap-2',\n className\n )}\n {...divProps}\n >\n <LoaderGlyph\n size={112}\n className=\"size-28\"\n strokeClassName=\"text-current\"\n />\n\n <div className=\"flex w-full flex-col items-center justify-center gap-1 text-center\">\n <p className=\"text-lg font-medium leading-6 tracking-tightest text-foreground\">\n {header}\n </p>\n {description && (\n <p className=\"w-full text-sm leading-[18px] tracking-tight text-secondary-foreground\">\n {description}\n </p>\n )}\n </div>\n </div>\n );\n});\n\nLoader.displayName = 'Loader';\n\nexport { Loader };\nexport type { LoaderProps };\n"],"names":["forwardRef","cn","LoaderGlyph","size","className","strokeClassName","svg","aria-hidden","focusable","height","viewBox","width","xmlns","rect","data-slot","x","y","rx","fill","stroke","strokeWidth","strokeLinecap","isPageLoaderProps","props","variant","Loader","ref","role","ariaLabel","_variant","_className","_role","_ariaLabel","divProps","div","aria-label","header","description","p","displayName"],"mappings":";AAAA,SAKEA,UAAU,QACL,QAAQ;AAEf,SAASC,EAAE,QAAQ,2BAAwB;AAQ3C,MAAMC,cAAc,CAAC,EACnBC,OAAO,EAAE,EACTC,SAAS,EACTC,eAAe,EACE;IACjB,qBACE,MAACC;QACCC,eAAY;QACZC,WAAU;QACVJ,WAAWH,GAAG,oBAAoBI,iBAAiBD;QACnDK,QAAQN;QACRO,SAAQ;QACRC,OAAOR;QACPS,OAAM;;0BAEN,KAACC;gBACCT,WAAU;gBACVU,aAAU;gBACVC,GAAE;gBACFC,GAAE;gBACFL,OAAM;gBACNF,QAAO;gBACPQ,IAAG;gBACHC,MAAK;gBACLC,QAAO;gBACPC,aAAY;gBACZC,eAAc;;0BAEhB,KAACR;gBACCT,WAAU;gBACVU,aAAU;gBACVC,GAAE;gBACFC,GAAE;gBACFL,OAAM;gBACNF,QAAO;gBACPQ,IAAG;gBACHC,MAAK;gBACLC,QAAO;gBACPC,aAAY;gBACZC,eAAc;;;;AAItB;AAiBA,MAAMC,oBAAoB,CAACC;IACzB,OAAOA,MAAMC,OAAO,KAAK;AAC3B;AAEA,MAAMC,uBAEFzB,WAA6C,CAACuB,OAAOG;IACvD,MAAMtB,YAAYmB,MAAMnB,SAAS;IACjC,MAAMuB,OAAOJ,MAAMI,IAAI,IAAI;IAC3B,MAAMC,YAAYL,KAAK,CAAC,aAAa,IAAI;IAEzC,IAAI,CAACD,kBAAkBC,QAAQ;QAC7B,MAAM,EACJpB,OAAO,EAAE,EACTqB,SAASK,QAAQ,EACjBzB,WAAW0B,UAAU,EACrBH,MAAMI,KAAK,EACX,cAAcC,UAAU,EACxB,GAAGC,UACJ,GAAGV;QAEJ,qBACE,KAACW;YACCR,KAAKA;YACLZ,aAAU;YACVa,MAAMA;YACNQ,cAAYP;YACZxB,WAAWH,GAAG,2CAA2CG;YACxD,GAAG6B,QAAQ;sBAEZ,cAAA,KAAC/B;gBAAYC,MAAMA;gBAAME,iBAAgB;;;IAG/C;IAEA,MAAM,EACJmB,SAASK,QAAQ,EACjBzB,WAAW0B,UAAU,EACrBH,MAAMI,KAAK,EACX,cAAcC,UAAU,EACxBI,MAAM,EACNC,WAAW,EACX,GAAGJ,UACJ,GAAGV;IAEJ,qBACE,MAACW;QACCR,KAAKA;QACLZ,aAAU;QACVa,MAAMA;QACNQ,cAAYP;QACZxB,WAAWH,GACT,oFACAG;QAED,GAAG6B,QAAQ;;0BAEZ,KAAC/B;gBACCC,MAAM;gBACNC,WAAU;gBACVC,iBAAgB;;0BAGlB,MAAC6B;gBAAI9B,WAAU;;kCACb,KAACkC;wBAAElC,WAAU;kCACVgC;;oBAEFC,6BACC,KAACC;wBAAElC,WAAU;kCACViC;;;;;;AAMb;AAEAZ,OAAOc,WAAW,GAAG;AAErB,SAASd,MAAM,GAAG"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { ControlsConfig } from
|
|
1
|
+
import type { ControlsConfig } from "streamdown";
|
|
2
2
|
/**
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
*/
|
|
3
|
+
* Default Streamdown `controls` for assistant markdown (`MessageResponse`).
|
|
4
|
+
*
|
|
5
|
+
* - **Mermaid:** Copy, download, pan/zoom and fullscreen are on (AX-117, AX-118, KCIH-1232).
|
|
6
|
+
* Fullscreen renders into the Aura portal container so it stays inside the Aura style scope.
|
|
7
|
+
* - **Code / table:** Off so chat keeps a simpler surface.
|
|
8
|
+
* Callers may override via the `controls` prop on `MessageResponse`.
|
|
9
|
+
*/
|
|
11
10
|
export declare const MESSAGE_RESPONSE_DEFAULT_STREAMDOWN_CONTROLS: Exclude<ControlsConfig, boolean>;
|
|
@@ -1,13 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Default Streamdown `controls` for assistant markdown (`MessageResponse`).
|
|
3
|
+
*
|
|
4
|
+
* - **Mermaid:** Copy, download, pan/zoom and fullscreen are on (AX-117, AX-118, KCIH-1232).
|
|
5
|
+
* Fullscreen renders into the Aura portal container so it stays inside the Aura style scope.
|
|
6
|
+
* - **Code / table:** Off so chat keeps a simpler surface.
|
|
7
|
+
* Callers may override via the `controls` prop on `MessageResponse`.
|
|
8
|
+
*/ export const MESSAGE_RESPONSE_DEFAULT_STREAMDOWN_CONTROLS = {
|
|
9
|
+
code: false,
|
|
10
|
+
table: false,
|
|
11
|
+
mermaid: {
|
|
12
|
+
copy: true,
|
|
13
|
+
download: true,
|
|
14
|
+
fullscreen: true,
|
|
15
|
+
panZoom: true
|
|
16
|
+
}
|
|
11
17
|
};
|
|
12
|
-
|
|
13
|
-
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=message-response-default-streamdown-controls.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/components/ui/core/message/message-response-default-streamdown-controls.ts"],"sourcesContent":["import type { ControlsConfig } from 'streamdown';\n\n/**\n * Default Streamdown `controls` for assistant markdown (`MessageResponse`).\n *\n * - **Mermaid:** Copy, download, pan/zoom and fullscreen are on (AX-117, AX-118, KCIH-1232).\n * Fullscreen renders into the Aura portal container so it stays inside the Aura style scope.\n * - **Code / table:** Off so chat keeps a simpler surface.\n * Callers may override via the `controls` prop on `MessageResponse`.\n */\nexport const MESSAGE_RESPONSE_DEFAULT_STREAMDOWN_CONTROLS: Exclude<\n ControlsConfig,\n boolean\n> = {\n code: false,\n table: false,\n mermaid: {\n copy: true,\n download: true,\n fullscreen: true,\n panZoom: true,\n },\n};\n"],"names":["MESSAGE_RESPONSE_DEFAULT_STREAMDOWN_CONTROLS","code","table","mermaid","copy","download","fullscreen","panZoom"],"mappings":"AAEA;;;;;;;CAOC,GACD,OAAO,MAAMA,+CAGT;IACFC,MAAM;IACNC,OAAO;IACPC,SAAS;QACPC,MAAM;QACNC,UAAU;QACVC,YAAY;QACZC,SAAS;IACX;AACF,EAAE"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { createMathPlugin } from "@streamdown/math";
|
|
2
|
+
/** KaTeX plugin for consumers that explicitly opt into math rendering. */ export const MESSAGE_RESPONSE_MATH_PLUGIN = createMathPlugin({
|
|
3
|
+
singleDollarTextMath: true
|
|
4
|
+
});
|
|
5
|
+
|
|
6
|
+
//# sourceMappingURL=message-response-math-plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/components/ui/core/message/message-response-math-plugin.ts"],"sourcesContent":["import { createMathPlugin } from '@streamdown/math';\n\n/** KaTeX plugin for consumers that explicitly opt into math rendering. */\nexport const MESSAGE_RESPONSE_MATH_PLUGIN: ReturnType<typeof createMathPlugin> =\n createMathPlugin({\n singleDollarTextMath: true,\n });\n"],"names":["createMathPlugin","MESSAGE_RESPONSE_MATH_PLUGIN","singleDollarTextMath"],"mappings":"AAAA,SAASA,gBAAgB,QAAQ,mBAAmB;AAEpD,wEAAwE,GACxE,OAAO,MAAMC,+BACXD,iBAAiB;IACfE,sBAAsB;AACxB,GAAG"}
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { ComponentProps, HTMLAttributes, ReactNode } from
|
|
2
|
-
import { JSX } from
|
|
3
|
-
import { Streamdown } from
|
|
4
|
-
import { FileUIPart, UIMessage } from
|
|
5
|
-
import { Avatar, AvatarIcon } from
|
|
6
|
-
import { Button } from
|
|
1
|
+
import type { ComponentProps, HTMLAttributes, ReactNode } from "react";
|
|
2
|
+
import type { JSX } from "react/jsx-runtime";
|
|
3
|
+
import { Streamdown } from "streamdown";
|
|
4
|
+
import type { FileUIPart, UIMessage } from "../../../../lib/ai/types";
|
|
5
|
+
import { Avatar, AvatarIcon } from "../avatar/avatar";
|
|
6
|
+
import { Button } from "../button/button";
|
|
7
7
|
type MessageProps = HTMLAttributes<HTMLDivElement> & {
|
|
8
|
-
|
|
8
|
+
isResponse?: boolean;
|
|
9
9
|
};
|
|
10
10
|
declare const Message: ({ className, isResponse, ...props }: MessageProps) => ReactNode;
|
|
11
11
|
type MessageContentProps = HTMLAttributes<HTMLDivElement>;
|
|
12
12
|
declare const MessageContent: ({ children, className, ...props }: MessageContentProps) => ReactNode;
|
|
13
13
|
type MessageAvatarProps = ComponentProps<typeof Avatar> & {
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
avatarUrl?: string;
|
|
15
|
+
name?: string;
|
|
16
16
|
};
|
|
17
17
|
declare const MessageAvatar: ({ avatarUrl, name, className, children, variant, sizes, ...props }: MessageAvatarProps) => ReactNode;
|
|
18
18
|
type MessageAvatarIconProps = ComponentProps<typeof AvatarIcon>;
|
|
19
19
|
declare const MessageAvatarIcon: (props: MessageAvatarIconProps) => ReactNode;
|
|
20
|
-
type MessageActionsProps = ComponentProps<
|
|
20
|
+
type MessageActionsProps = ComponentProps<"div">;
|
|
21
21
|
declare const MessageActions: ({ className, children, ...props }: MessageActionsProps) => ReactNode;
|
|
22
22
|
type MessageActionProps = ComponentProps<typeof Button> & {
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
tooltip?: string;
|
|
24
|
+
label?: string;
|
|
25
25
|
};
|
|
26
26
|
declare const MessageAction: ({ tooltip, children, label, className, variant, size, ...props }: MessageActionProps) => ReactNode;
|
|
27
27
|
type MessageBranchProps = HTMLAttributes<HTMLDivElement> & {
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
defaultBranch?: number;
|
|
29
|
+
onBranchChange?: (branchIndex: number) => void;
|
|
30
30
|
};
|
|
31
31
|
declare const MessageBranch: ({ defaultBranch, onBranchChange, className, ...props }: MessageBranchProps) => ReactNode;
|
|
32
32
|
type MessageBranchContentProps = HTMLAttributes<HTMLDivElement>;
|
|
33
33
|
declare const MessageBranchContent: ({ children, ...props }: MessageBranchContentProps) => ReactNode[];
|
|
34
34
|
type MessageBranchSelectorProps = HTMLAttributes<HTMLDivElement> & {
|
|
35
|
-
|
|
35
|
+
from: UIMessage["role"];
|
|
36
36
|
};
|
|
37
37
|
declare const MessageBranchSelector: ({ ...props }: MessageBranchSelectorProps) => ReactNode;
|
|
38
38
|
type MessageBranchPreviousProps = ComponentProps<typeof Button>;
|
|
@@ -41,16 +41,20 @@ type MessageBranchNextProps = ComponentProps<typeof Button>;
|
|
|
41
41
|
declare const MessageBranchNext: ({ children, ...props }: MessageBranchNextProps) => ReactNode;
|
|
42
42
|
type MessageBranchPageProps = HTMLAttributes<HTMLSpanElement>;
|
|
43
43
|
declare const MessageBranchPage: ({ className, ...props }: MessageBranchPageProps) => ReactNode;
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
/** Streamdown discards unrecognised props, so these go on a wrapper instead. */
|
|
45
|
+
type MessageResponseHostProps = Pick<HTMLAttributes<HTMLDivElement>, "id" | "role" | "aria-label" | "aria-labelledby" | "aria-describedby"> & {
|
|
46
|
+
"data-testid"?: string;
|
|
47
|
+
};
|
|
48
|
+
type MessageResponseProps = ComponentProps<typeof Streamdown> & MessageResponseHostProps;
|
|
49
|
+
declare const MessageResponse: ({ id, role, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, "data-testid": dataTestId, ...props }: MessageResponseProps) => JSX.Element;
|
|
46
50
|
type MessageAttachmentProps = HTMLAttributes<HTMLDivElement> & {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
51
|
+
data: FileUIPart;
|
|
52
|
+
className?: string;
|
|
53
|
+
onRemove?: () => void;
|
|
50
54
|
};
|
|
51
55
|
declare function MessageAttachment({ data, className, onRemove, ...props }: MessageAttachmentProps): ReactNode;
|
|
52
|
-
type MessageAttachmentsProps = ComponentProps<
|
|
56
|
+
type MessageAttachmentsProps = ComponentProps<"div">;
|
|
53
57
|
declare function MessageAttachments({ children, className, ...props }: MessageAttachmentsProps): ReactNode;
|
|
54
|
-
type MessageToolbarProps = ComponentProps<
|
|
58
|
+
type MessageToolbarProps = ComponentProps<"div">;
|
|
55
59
|
declare const MessageToolbar: ({ className, children, ...props }: MessageToolbarProps) => ReactNode;
|
|
56
|
-
export { Message, MessageAction, MessageActions, MessageAttachment, MessageAttachments, MessageAvatar, MessageAvatarIcon, MessageBranch, MessageBranchContent, MessageBranchNext, MessageBranchPage, MessageBranchPrevious, MessageBranchSelector, MessageContent, MessageResponse, MessageToolbar
|
|
60
|
+
export { Message, MessageAction, MessageActions, MessageAttachment, MessageAttachments, MessageAvatar, MessageAvatarIcon, MessageBranch, MessageBranchContent, MessageBranchNext, MessageBranchPage, MessageBranchPrevious, MessageBranchSelector, MessageContent, MessageResponse, MessageToolbar };
|