@cognite/aura 0.3.4 → 1.46104.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 +264 -0
- package/DESIGN.md +638 -281
- package/LICENSE +21 -0
- package/README.md +48 -13
- package/dist/colors-deprecated.css +587 -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 +125 -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.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.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.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.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.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.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.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 +259 -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.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.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 +7 -7
- package/dist/components/ui/core/data-grid/data-grid-cell.js +23 -0
- package/dist/components/ui/core/data-grid/data-grid-cell.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 +41 -0
- package/dist/components/ui/core/data-grid/data-grid-filter-panel.js +273 -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 +70 -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 +15 -15
- package/dist/components/ui/core/data-grid/data-grid-row.js +105 -0
- package/dist/components/ui/core/data-grid/data-grid-row.js.map +1 -0
- package/dist/components/ui/core/data-grid/data-grid.d.ts +85 -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 +404 -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 -3
- package/dist/components/ui/core/data-grid/data-grid.utils.js +51 -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 +4 -0
- package/dist/components/ui/core/data-grid/index.js +5 -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.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.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 +9 -9
- package/dist/components/ui/core/message/message-response-default-streamdown-controls.js +19 -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 +453 -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.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 +27 -26
- package/dist/components/ui/core/select/select.js +213 -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.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.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.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/switch/switch.d.ts +9 -9
- 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.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.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.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 +24 -12
- 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 +50 -11
- package/src/components/ui/core/button/button.md +93 -0
|
@@ -1,59 +1,88 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { IconChevronDown
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
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
|
-
...d,
|
|
55
|
-
children: u ?? i
|
|
56
|
-
}) }) : null;
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Collapsible as CollapsiblePrimitive } from "@base-ui/react/collapsible";
|
|
3
|
+
import { IconChevronDown, IconMist } from "@tabler/icons-react";
|
|
4
|
+
import { cn } from "../../../../lib/utils.js";
|
|
5
|
+
import { InlineCitation, InlineCitationLink } from "../inline-citation/inline-citation.js";
|
|
6
|
+
const Sources = ({ className, title, children, collapsible = false, defaultOpen = false, open, onOpenChange, ...props })=>{
|
|
7
|
+
const hideTitle = title === false || title === 'false';
|
|
8
|
+
const titleNode = title === undefined || title === true ? /*#__PURE__*/ _jsx(SourcesTitle, {}) : title;
|
|
9
|
+
if (collapsible) {
|
|
10
|
+
return /*#__PURE__*/ _jsx(CollapsiblePrimitive.Root, {
|
|
11
|
+
open: open,
|
|
12
|
+
defaultOpen: defaultOpen,
|
|
13
|
+
onOpenChange: onOpenChange,
|
|
14
|
+
children: /*#__PURE__*/ _jsxs("div", {
|
|
15
|
+
"data-slot": "sources",
|
|
16
|
+
className: cn('flex flex-col gap-2 py-2', className),
|
|
17
|
+
...props,
|
|
18
|
+
children: [
|
|
19
|
+
!hideTitle ? /*#__PURE__*/ _jsxs(CollapsiblePrimitive.Trigger, {
|
|
20
|
+
"data-slot": "sources-trigger",
|
|
21
|
+
className: "group/sources-trigger flex w-fit items-center gap-2 outline-none",
|
|
22
|
+
children: [
|
|
23
|
+
titleNode,
|
|
24
|
+
/*#__PURE__*/ _jsx(IconChevronDown, {
|
|
25
|
+
className: "size-4 shrink-0 text-muted-foreground transition-transform duration-200 group-data-panel-open/sources-trigger:rotate-180"
|
|
26
|
+
})
|
|
27
|
+
]
|
|
28
|
+
}) : null,
|
|
29
|
+
/*#__PURE__*/ _jsx(CollapsiblePrimitive.Panel, {
|
|
30
|
+
"data-slot": "sources-items",
|
|
31
|
+
className: "h-(--collapsible-panel-height) overflow-hidden transition-all duration-200 ease-out data-ending-style:h-0 data-starting-style:h-0",
|
|
32
|
+
children: /*#__PURE__*/ _jsx("div", {
|
|
33
|
+
className: "flex flex-wrap gap-2 pt-2 [&>*]:min-w-0",
|
|
34
|
+
children: children
|
|
35
|
+
})
|
|
36
|
+
})
|
|
37
|
+
]
|
|
38
|
+
})
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
return /*#__PURE__*/ _jsxs("div", {
|
|
42
|
+
"data-slot": "sources",
|
|
43
|
+
className: cn('flex flex-col gap-2 py-2', className),
|
|
44
|
+
...props,
|
|
45
|
+
children: [
|
|
46
|
+
!hideTitle ? titleNode : null,
|
|
47
|
+
/*#__PURE__*/ _jsx("div", {
|
|
48
|
+
"data-slot": "sources-items",
|
|
49
|
+
className: "flex flex-wrap gap-2 [&>*]:min-w-0",
|
|
50
|
+
children: children
|
|
51
|
+
})
|
|
52
|
+
]
|
|
53
|
+
});
|
|
57
54
|
};
|
|
58
|
-
|
|
59
|
-
|
|
55
|
+
const SourcesTitle = ({ className, title = 'Sources', children, ...props })=>/*#__PURE__*/ _jsxs("div", {
|
|
56
|
+
"data-slot": "sources-title",
|
|
57
|
+
className: cn('flex items-center gap-2 text-base leading-5 tracking-tighter text-muted-foreground', className),
|
|
58
|
+
...props,
|
|
59
|
+
children: [
|
|
60
|
+
/*#__PURE__*/ _jsx(IconMist, {
|
|
61
|
+
className: "size-4 shrink-0"
|
|
62
|
+
}),
|
|
63
|
+
children ?? /*#__PURE__*/ _jsx("span", {
|
|
64
|
+
children: title
|
|
65
|
+
})
|
|
66
|
+
]
|
|
67
|
+
});
|
|
68
|
+
const Source = ({ href, url, title, variant = 'decorative-1', target = '_blank', icon, className, children, ...props })=>{
|
|
69
|
+
const sourceHref = href || url;
|
|
70
|
+
if (!sourceHref) {
|
|
71
|
+
return null;
|
|
72
|
+
}
|
|
73
|
+
return /*#__PURE__*/ _jsx(InlineCitation, {
|
|
74
|
+
children: /*#__PURE__*/ _jsx(InlineCitationLink, {
|
|
75
|
+
"data-slot": "source",
|
|
76
|
+
href: sourceHref,
|
|
77
|
+
target: target,
|
|
78
|
+
variant: variant,
|
|
79
|
+
icon: icon,
|
|
80
|
+
className: className,
|
|
81
|
+
...props,
|
|
82
|
+
children: children ?? title
|
|
83
|
+
})
|
|
84
|
+
});
|
|
85
|
+
};
|
|
86
|
+
export { Source, Sources, SourcesTitle };
|
|
87
|
+
|
|
88
|
+
//# sourceMappingURL=sources.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/components/ui/core/sources/sources.tsx"],"sourcesContent":["import type { ComponentProps, ReactNode } from 'react';\n\nimport { Collapsible as CollapsiblePrimitive } from '@base-ui/react/collapsible';\nimport { IconChevronDown, IconMist } from '@tabler/icons-react';\n\nimport { cn } from '../../../../lib/utils';\nimport {\n InlineCitation,\n InlineCitationLink,\n} from '../inline-citation/inline-citation';\n\ntype SourcesProps = Omit<ComponentProps<'div'>, 'title'> & {\n title?: ReactNode | boolean;\n collapsible?: boolean;\n defaultOpen?: boolean;\n open?: boolean;\n onOpenChange?: (open: boolean) => void;\n};\n\nconst Sources = ({\n className,\n title,\n children,\n collapsible = false,\n defaultOpen = false,\n open,\n onOpenChange,\n ...props\n}: SourcesProps): ReactNode => {\n const hideTitle = title === false || title === 'false';\n const titleNode =\n title === undefined || title === true ? <SourcesTitle /> : title;\n\n if (collapsible) {\n return (\n <CollapsiblePrimitive.Root\n open={open}\n defaultOpen={defaultOpen}\n onOpenChange={onOpenChange}\n >\n <div\n data-slot=\"sources\"\n className={cn('flex flex-col gap-2 py-2', className)}\n {...props}\n >\n {!hideTitle ? (\n <CollapsiblePrimitive.Trigger\n data-slot=\"sources-trigger\"\n className=\"group/sources-trigger flex w-fit items-center gap-2 outline-none\"\n >\n {titleNode}\n <IconChevronDown className=\"size-4 shrink-0 text-muted-foreground transition-transform duration-200 group-data-panel-open/sources-trigger:rotate-180\" />\n </CollapsiblePrimitive.Trigger>\n ) : null}\n <CollapsiblePrimitive.Panel\n data-slot=\"sources-items\"\n className=\"h-(--collapsible-panel-height) overflow-hidden transition-all duration-200 ease-out data-ending-style:h-0 data-starting-style:h-0\"\n >\n <div className=\"flex flex-wrap gap-2 pt-2 [&>*]:min-w-0\">\n {children}\n </div>\n </CollapsiblePrimitive.Panel>\n </div>\n </CollapsiblePrimitive.Root>\n );\n }\n\n return (\n <div\n data-slot=\"sources\"\n className={cn('flex flex-col gap-2 py-2', className)}\n {...props}\n >\n {!hideTitle ? titleNode : null}\n <div\n data-slot=\"sources-items\"\n className=\"flex flex-wrap gap-2 [&>*]:min-w-0\"\n >\n {children}\n </div>\n </div>\n );\n};\n\ntype SourcesTitleProps = ComponentProps<'div'> & {\n title?: string;\n};\n\nconst SourcesTitle = ({\n className,\n title = 'Sources',\n children,\n ...props\n}: SourcesTitleProps): ReactNode => (\n <div\n data-slot=\"sources-title\"\n className={cn(\n 'flex items-center gap-2 text-base leading-5 tracking-tighter text-muted-foreground',\n className\n )}\n {...props}\n >\n <IconMist className=\"size-4 shrink-0\" />\n {children ?? <span>{title}</span>}\n </div>\n);\n\ntype SourceProps = ComponentProps<typeof InlineCitationLink> & {\n title?: string;\n url?: string;\n};\n\nconst Source = ({\n href,\n url,\n title,\n variant = 'decorative-1',\n target = '_blank',\n icon,\n className,\n children,\n ...props\n}: SourceProps): ReactNode => {\n const sourceHref = href || url;\n\n if (!sourceHref) {\n return null;\n }\n\n return (\n <InlineCitation>\n <InlineCitationLink\n data-slot=\"source\"\n href={sourceHref}\n target={target}\n variant={variant}\n icon={icon}\n className={className}\n {...props}\n >\n {children ?? title}\n </InlineCitationLink>\n </InlineCitation>\n );\n};\n\nexport { Source, Sources, SourcesTitle };\n"],"names":["Collapsible","CollapsiblePrimitive","IconChevronDown","IconMist","cn","InlineCitation","InlineCitationLink","Sources","className","title","children","collapsible","defaultOpen","open","onOpenChange","props","hideTitle","titleNode","undefined","SourcesTitle","Root","div","data-slot","Trigger","Panel","span","Source","href","url","variant","target","icon","sourceHref"],"mappings":";AAEA,SAASA,eAAeC,oBAAoB,QAAQ,6BAA6B;AACjF,SAASC,eAAe,EAAEC,QAAQ,QAAQ,sBAAsB;AAEhE,SAASC,EAAE,QAAQ,2BAAwB;AAC3C,SACEC,cAAc,EACdC,kBAAkB,QACb,wCAAqC;AAU5C,MAAMC,UAAU,CAAC,EACfC,SAAS,EACTC,KAAK,EACLC,QAAQ,EACRC,cAAc,KAAK,EACnBC,cAAc,KAAK,EACnBC,IAAI,EACJC,YAAY,EACZ,GAAGC,OACU;IACb,MAAMC,YAAYP,UAAU,SAASA,UAAU;IAC/C,MAAMQ,YACJR,UAAUS,aAAaT,UAAU,qBAAO,KAACU,oBAAkBV;IAE7D,IAAIE,aAAa;QACf,qBACE,KAACV,qBAAqBmB,IAAI;YACxBP,MAAMA;YACND,aAAaA;YACbE,cAAcA;sBAEd,cAAA,MAACO;gBACCC,aAAU;gBACVd,WAAWJ,GAAG,4BAA4BI;gBACzC,GAAGO,KAAK;;oBAER,CAACC,0BACA,MAACf,qBAAqBsB,OAAO;wBAC3BD,aAAU;wBACVd,WAAU;;4BAETS;0CACD,KAACf;gCAAgBM,WAAU;;;yBAE3B;kCACJ,KAACP,qBAAqBuB,KAAK;wBACzBF,aAAU;wBACVd,WAAU;kCAEV,cAAA,KAACa;4BAAIb,WAAU;sCACZE;;;;;;IAMb;IAEA,qBACE,MAACW;QACCC,aAAU;QACVd,WAAWJ,GAAG,4BAA4BI;QACzC,GAAGO,KAAK;;YAER,CAACC,YAAYC,YAAY;0BAC1B,KAACI;gBACCC,aAAU;gBACVd,WAAU;0BAETE;;;;AAIT;AAMA,MAAMS,eAAe,CAAC,EACpBX,SAAS,EACTC,QAAQ,SAAS,EACjBC,QAAQ,EACR,GAAGK,OACe,iBAClB,MAACM;QACCC,aAAU;QACVd,WAAWJ,GACT,sFACAI;QAED,GAAGO,KAAK;;0BAET,KAACZ;gBAASK,WAAU;;YACnBE,0BAAY,KAACe;0BAAMhB;;;;AASxB,MAAMiB,SAAS,CAAC,EACdC,IAAI,EACJC,GAAG,EACHnB,KAAK,EACLoB,UAAU,cAAc,EACxBC,SAAS,QAAQ,EACjBC,IAAI,EACJvB,SAAS,EACTE,QAAQ,EACR,GAAGK,OACS;IACZ,MAAMiB,aAAaL,QAAQC;IAE3B,IAAI,CAACI,YAAY;QACf,OAAO;IACT;IAEA,qBACE,KAAC3B;kBACC,cAAA,KAACC;YACCgB,aAAU;YACVK,MAAMK;YACNF,QAAQA;YACRD,SAASA;YACTE,MAAMA;YACNvB,WAAWA;YACV,GAAGO,KAAK;sBAERL,YAAYD;;;AAIrB;AAEA,SAASiB,MAAM,EAAEnB,OAAO,EAAEY,YAAY,GAAG"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ForwardRefExoticComponent, RefAttributes, ComponentRef } from
|
|
2
|
-
import { Switch as SwitchPrimitive } from
|
|
3
|
-
type SwitchProps = Omit<SwitchPrimitive.Root.Props,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { type ForwardRefExoticComponent, type RefAttributes, type ComponentRef } from "react";
|
|
2
|
+
import { Switch as SwitchPrimitive } from "@base-ui/react/switch";
|
|
3
|
+
type SwitchProps = Omit<SwitchPrimitive.Root.Props, "children"> & {
|
|
4
|
+
label?: string;
|
|
5
|
+
textLeft?: boolean;
|
|
6
|
+
textRight?: boolean;
|
|
7
|
+
checkedText?: string;
|
|
8
|
+
uncheckedText?: string;
|
|
9
9
|
};
|
|
10
|
-
declare const Switch: ForwardRefExoticComponent<Omit<SwitchProps,
|
|
10
|
+
declare const Switch: ForwardRefExoticComponent<Omit<SwitchProps, "ref"> & RefAttributes<ComponentRef<typeof SwitchPrimitive.Root>>>;
|
|
11
11
|
export { Switch };
|
|
@@ -1,62 +1,84 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
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
|
-
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef, useId } from "react";
|
|
3
|
+
import { Switch as SwitchPrimitive } from "@base-ui/react/switch";
|
|
4
|
+
import { cn, focusRing } from "../../../../lib/utils.js";
|
|
5
|
+
import { Label } from "../label/label.js";
|
|
6
|
+
const Switch = /*#__PURE__*/ forwardRef(({ className, disabled, id, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, label, textLeft, textRight, checkedText = 'On', uncheckedText = 'Off', ...props }, ref)=>{
|
|
7
|
+
const generatedId = useId();
|
|
8
|
+
const resolvedTextLeft = Boolean(textLeft);
|
|
9
|
+
const resolvedTextRight = Boolean(textRight);
|
|
10
|
+
const showStateText = resolvedTextLeft || resolvedTextRight;
|
|
11
|
+
const showSplitStateText = resolvedTextLeft && resolvedTextRight;
|
|
12
|
+
const resolvedId = id ?? (label || showStateText ? generatedId : undefined);
|
|
13
|
+
const switchNode = /*#__PURE__*/ _jsx(SwitchPrimitive.Root, {
|
|
14
|
+
ref: ref,
|
|
15
|
+
"data-slot": "switch",
|
|
16
|
+
id: resolvedId,
|
|
17
|
+
disabled: disabled,
|
|
18
|
+
"aria-label": ariaLabel,
|
|
19
|
+
"aria-labelledby": ariaLabelledBy,
|
|
20
|
+
className: cn('group/switch peer inline-flex h-5 w-10 shrink-0 cursor-pointer items-center rounded-md border border-emphasized p-0.5 transition-colors outline-none', 'bg-base-background hover:bg-base-background-hover', 'data-checked:border-transparent data-checked:bg-primary-background data-checked:hover:bg-primary-background-hover', 'data-disabled:cursor-not-allowed data-disabled:border-transparent data-disabled:bg-base-background-disabled data-disabled:hover:bg-base-background-disabled', 'data-disabled:data-checked:bg-base-background-disabled data-disabled:data-checked:hover:bg-base-background-disabled', focusRing, className),
|
|
21
|
+
...props,
|
|
22
|
+
children: /*#__PURE__*/ _jsx(SwitchPrimitive.Thumb, {
|
|
23
|
+
"data-slot": "switch-thumb",
|
|
24
|
+
className: cn('pointer-events-none block size-4 translate-x-0 rounded-sm bg-muted-foreground ring-0 shadow-none transition-[transform,background-color]', 'group-hover/switch:group-not-data-[disabled]/switch:bg-medium-foreground-hover', 'data-checked:translate-x-[19px]', 'group-not-data-[disabled]/switch:data-checked:bg-base-background', 'group-not-data-[disabled]/switch:data-checked:group-hover/switch:bg-base-background', 'group-data-[disabled]/switch:bg-base-foreground-disabled', 'group-data-[disabled]/switch:group-hover/switch:bg-base-foreground-disabled')
|
|
25
|
+
})
|
|
26
|
+
});
|
|
27
|
+
if (!label && !showStateText) {
|
|
28
|
+
return switchNode;
|
|
29
|
+
}
|
|
30
|
+
return /*#__PURE__*/ _jsxs("div", {
|
|
31
|
+
className: "inline-flex items-center gap-3",
|
|
32
|
+
children: [
|
|
33
|
+
label ? /*#__PURE__*/ _jsx(Label, {
|
|
34
|
+
htmlFor: resolvedId,
|
|
35
|
+
className: "pb-0",
|
|
36
|
+
children: label
|
|
37
|
+
}) : null,
|
|
38
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
39
|
+
className: "inline-flex items-center gap-1",
|
|
40
|
+
children: [
|
|
41
|
+
switchNode,
|
|
42
|
+
resolvedTextLeft ? /*#__PURE__*/ _jsx("label", {
|
|
43
|
+
htmlFor: resolvedId,
|
|
44
|
+
"aria-hidden": "true",
|
|
45
|
+
className: cn('order-first text-sm leading-4.5 tracking-tight cursor-pointer', 'peer-disabled:text-base-foreground-disabled peer-disabled:cursor-not-allowed', showSplitStateText ? 'text-base-foreground font-medium peer-data-checked:text-muted-foreground peer-data-checked:font-normal' : 'text-muted-foreground'),
|
|
46
|
+
children: showSplitStateText ? uncheckedText : /*#__PURE__*/ _jsxs(_Fragment, {
|
|
47
|
+
children: [
|
|
48
|
+
/*#__PURE__*/ _jsx("span", {
|
|
49
|
+
className: "hidden peer-data-checked:inline",
|
|
50
|
+
children: checkedText
|
|
51
|
+
}),
|
|
52
|
+
/*#__PURE__*/ _jsx("span", {
|
|
53
|
+
className: "inline peer-data-checked:hidden",
|
|
54
|
+
children: uncheckedText
|
|
55
|
+
})
|
|
56
|
+
]
|
|
57
|
+
})
|
|
58
|
+
}) : null,
|
|
59
|
+
resolvedTextRight ? /*#__PURE__*/ _jsx("label", {
|
|
60
|
+
htmlFor: resolvedId,
|
|
61
|
+
"aria-hidden": "true",
|
|
62
|
+
className: cn('text-sm leading-4.5 tracking-tight cursor-pointer', 'peer-disabled:text-base-foreground-disabled peer-disabled:cursor-not-allowed', showSplitStateText ? 'text-muted-foreground peer-data-checked:text-base-foreground peer-data-checked:font-medium' : 'text-muted-foreground'),
|
|
63
|
+
children: showSplitStateText ? checkedText : /*#__PURE__*/ _jsxs(_Fragment, {
|
|
64
|
+
children: [
|
|
65
|
+
/*#__PURE__*/ _jsx("span", {
|
|
66
|
+
className: "hidden peer-data-checked:inline",
|
|
67
|
+
children: checkedText
|
|
68
|
+
}),
|
|
69
|
+
/*#__PURE__*/ _jsx("span", {
|
|
70
|
+
className: "inline peer-data-checked:hidden",
|
|
71
|
+
children: uncheckedText
|
|
72
|
+
})
|
|
73
|
+
]
|
|
74
|
+
})
|
|
75
|
+
}) : null
|
|
76
|
+
]
|
|
77
|
+
})
|
|
78
|
+
]
|
|
79
|
+
});
|
|
59
80
|
});
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
81
|
+
Switch.displayName = 'Switch';
|
|
82
|
+
export { Switch };
|
|
83
|
+
|
|
84
|
+
//# sourceMappingURL=switch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/components/ui/core/switch/switch.tsx"],"sourcesContent":["import {\n type ForwardRefExoticComponent,\n type RefAttributes,\n type ComponentRef,\n forwardRef,\n useId,\n} from 'react';\n\nimport { Switch as SwitchPrimitive } from '@base-ui/react/switch';\n\nimport { cn, focusRing } from '../../../../lib/utils';\nimport { Label } from '../label/label';\n\ntype SwitchProps = Omit<SwitchPrimitive.Root.Props, 'children'> & {\n label?: string;\n textLeft?: boolean;\n textRight?: boolean;\n checkedText?: string;\n uncheckedText?: string;\n};\n\nconst Switch: ForwardRefExoticComponent<\n Omit<SwitchProps, 'ref'> &\n RefAttributes<ComponentRef<typeof SwitchPrimitive.Root>>\n> = forwardRef<ComponentRef<typeof SwitchPrimitive.Root>, SwitchProps>(\n (\n {\n className,\n disabled,\n id,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledBy,\n label,\n textLeft,\n textRight,\n checkedText = 'On',\n uncheckedText = 'Off',\n ...props\n },\n ref\n ) => {\n const generatedId = useId();\n const resolvedTextLeft = Boolean(textLeft);\n const resolvedTextRight = Boolean(textRight);\n const showStateText = resolvedTextLeft || resolvedTextRight;\n const showSplitStateText = resolvedTextLeft && resolvedTextRight;\n const resolvedId = id ?? (label || showStateText ? generatedId : undefined);\n\n const switchNode = (\n <SwitchPrimitive.Root\n ref={ref}\n data-slot=\"switch\"\n id={resolvedId}\n disabled={disabled}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledBy}\n className={cn(\n 'group/switch peer inline-flex h-5 w-10 shrink-0 cursor-pointer items-center rounded-md border border-emphasized p-0.5 transition-colors outline-none',\n 'bg-base-background hover:bg-base-background-hover',\n 'data-checked:border-transparent data-checked:bg-primary-background data-checked:hover:bg-primary-background-hover',\n 'data-disabled:cursor-not-allowed data-disabled:border-transparent data-disabled:bg-base-background-disabled data-disabled:hover:bg-base-background-disabled',\n 'data-disabled:data-checked:bg-base-background-disabled data-disabled:data-checked:hover:bg-base-background-disabled',\n focusRing,\n className\n )}\n {...props}\n >\n <SwitchPrimitive.Thumb\n data-slot=\"switch-thumb\"\n className={cn(\n 'pointer-events-none block size-4 translate-x-0 rounded-sm bg-muted-foreground ring-0 shadow-none transition-[transform,background-color]',\n 'group-hover/switch:group-not-data-[disabled]/switch:bg-medium-foreground-hover',\n 'data-checked:translate-x-[19px]',\n 'group-not-data-[disabled]/switch:data-checked:bg-base-background',\n 'group-not-data-[disabled]/switch:data-checked:group-hover/switch:bg-base-background',\n 'group-data-[disabled]/switch:bg-base-foreground-disabled',\n 'group-data-[disabled]/switch:group-hover/switch:bg-base-foreground-disabled'\n )}\n />\n </SwitchPrimitive.Root>\n );\n\n if (!label && !showStateText) {\n return switchNode;\n }\n\n return (\n <div className=\"inline-flex items-center gap-3\">\n {label ? (\n <Label htmlFor={resolvedId} className=\"pb-0\">\n {label}\n </Label>\n ) : null}\n <div className=\"inline-flex items-center gap-1\">\n {switchNode}\n {resolvedTextLeft ? (\n <label\n htmlFor={resolvedId}\n aria-hidden=\"true\"\n className={cn(\n 'order-first text-sm leading-4.5 tracking-tight cursor-pointer',\n 'peer-disabled:text-base-foreground-disabled peer-disabled:cursor-not-allowed',\n showSplitStateText\n ? 'text-base-foreground font-medium peer-data-checked:text-muted-foreground peer-data-checked:font-normal'\n : 'text-muted-foreground'\n )}\n >\n {showSplitStateText ? (\n uncheckedText\n ) : (\n <>\n <span className=\"hidden peer-data-checked:inline\">\n {checkedText}\n </span>\n <span className=\"inline peer-data-checked:hidden\">\n {uncheckedText}\n </span>\n </>\n )}\n </label>\n ) : null}\n {resolvedTextRight ? (\n <label\n htmlFor={resolvedId}\n aria-hidden=\"true\"\n className={cn(\n 'text-sm leading-4.5 tracking-tight cursor-pointer',\n 'peer-disabled:text-base-foreground-disabled peer-disabled:cursor-not-allowed',\n showSplitStateText\n ? 'text-muted-foreground peer-data-checked:text-base-foreground peer-data-checked:font-medium'\n : 'text-muted-foreground'\n )}\n >\n {showSplitStateText ? (\n checkedText\n ) : (\n <>\n <span className=\"hidden peer-data-checked:inline\">\n {checkedText}\n </span>\n <span className=\"inline peer-data-checked:hidden\">\n {uncheckedText}\n </span>\n </>\n )}\n </label>\n ) : null}\n </div>\n </div>\n );\n }\n);\nSwitch.displayName = 'Switch';\n\nexport { Switch };\n"],"names":["forwardRef","useId","Switch","SwitchPrimitive","cn","focusRing","Label","className","disabled","id","ariaLabel","ariaLabelledBy","label","textLeft","textRight","checkedText","uncheckedText","props","ref","generatedId","resolvedTextLeft","Boolean","resolvedTextRight","showStateText","showSplitStateText","resolvedId","undefined","switchNode","Root","data-slot","aria-label","aria-labelledby","Thumb","div","htmlFor","aria-hidden","span","displayName"],"mappings":";AAAA,SAIEA,UAAU,EACVC,KAAK,QACA,QAAQ;AAEf,SAASC,UAAUC,eAAe,QAAQ,wBAAwB;AAElE,SAASC,EAAE,EAAEC,SAAS,QAAQ,2BAAwB;AACtD,SAASC,KAAK,QAAQ,oBAAiB;AAUvC,MAAMJ,uBAGFF,WACF,CACE,EACEO,SAAS,EACTC,QAAQ,EACRC,EAAE,EACF,cAAcC,SAAS,EACvB,mBAAmBC,cAAc,EACjCC,KAAK,EACLC,QAAQ,EACRC,SAAS,EACTC,cAAc,IAAI,EAClBC,gBAAgB,KAAK,EACrB,GAAGC,OACJ,EACDC;IAEA,MAAMC,cAAclB;IACpB,MAAMmB,mBAAmBC,QAAQR;IACjC,MAAMS,oBAAoBD,QAAQP;IAClC,MAAMS,gBAAgBH,oBAAoBE;IAC1C,MAAME,qBAAqBJ,oBAAoBE;IAC/C,MAAMG,aAAahB,MAAOG,CAAAA,SAASW,gBAAgBJ,cAAcO,SAAQ;IAEzE,MAAMC,2BACJ,KAACxB,gBAAgByB,IAAI;QACnBV,KAAKA;QACLW,aAAU;QACVpB,IAAIgB;QACJjB,UAAUA;QACVsB,cAAYpB;QACZqB,mBAAiBpB;QACjBJ,WAAWH,GACT,wJACA,qDACA,qHACA,+JACA,uHACAC,WACAE;QAED,GAAGU,KAAK;kBAET,cAAA,KAACd,gBAAgB6B,KAAK;YACpBH,aAAU;YACVtB,WAAWH,GACT,4IACA,kFACA,mCACA,oEACA,uFACA,4DACA;;;IAMR,IAAI,CAACQ,SAAS,CAACW,eAAe;QAC5B,OAAOI;IACT;IAEA,qBACE,MAACM;QAAI1B,WAAU;;YACZK,sBACC,KAACN;gBAAM4B,SAAST;gBAAYlB,WAAU;0BACnCK;iBAED;0BACJ,MAACqB;gBAAI1B,WAAU;;oBACZoB;oBACAP,iCACC,KAACR;wBACCsB,SAAST;wBACTU,eAAY;wBACZ5B,WAAWH,GACT,iEACA,gFACAoB,qBACI,2GACA;kCAGLA,qBACCR,8BAEA;;8CACE,KAACoB;oCAAK7B,WAAU;8CACbQ;;8CAEH,KAACqB;oCAAK7B,WAAU;8CACbS;;;;yBAKP;oBACHM,kCACC,KAACV;wBACCsB,SAAST;wBACTU,eAAY;wBACZ5B,WAAWH,GACT,qDACA,gFACAoB,qBACI,+FACA;kCAGLA,qBACCT,4BAEA;;8CACE,KAACqB;oCAAK7B,WAAU;8CACbQ;;8CAEH,KAACqB;oCAAK7B,WAAU;8CACbS;;;;yBAKP;;;;;AAIZ;AAEFd,OAAOmC,WAAW,GAAG;AAErB,SAASnC,MAAM,GAAG"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ComponentMeta } from
|
|
1
|
+
import type { ComponentMeta } from "../../../../lib/types";
|
|
2
2
|
export declare const SwitchMetadata: ComponentMeta;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export const SwitchMetadata = {
|
|
2
|
+
name: 'Switch',
|
|
3
|
+
status: 'draft',
|
|
4
|
+
description: 'A toggle switch component built on Base UI Switch.',
|
|
5
|
+
llmUsage: 'Use `<Switch checked={checked} onCheckedChange={setChecked}>` for boolean toggles, and optionally pass `label` with `textLeft` and/or `textRight` to render Figma-style switch state text on either or both sides.'
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
//# sourceMappingURL=switch.metadata.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/components/ui/core/switch/switch.metadata.ts"],"sourcesContent":["import type { ComponentMeta } from '../../../../lib/types';\n\nexport const SwitchMetadata: ComponentMeta = {\n name: 'Switch',\n status: 'draft',\n description: 'A toggle switch component built on Base UI Switch.',\n llmUsage:\n 'Use `<Switch checked={checked} onCheckedChange={setChecked}>` for boolean toggles, and optionally pass `label` with `textLeft` and/or `textRight` to render Figma-style switch state text on either or both sides.',\n};\n"],"names":["SwitchMetadata","name","status","description","llmUsage"],"mappings":"AAEA,OAAO,MAAMA,iBAAgC;IAC3CC,MAAM;IACNC,QAAQ;IACRC,aAAa;IACbC,UACE;AACJ,EAAE"}
|
|
@@ -1,27 +1,29 @@
|
|
|
1
|
-
import { ForwardRefExoticComponent, RefAttributes, ComponentProps, ReactNode } from
|
|
2
|
-
import { TabsRootProps
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { type ForwardRefExoticComponent, type RefAttributes, type ComponentProps, type ReactNode } from "react";
|
|
2
|
+
import type { TabsRootProps } from "@base-ui/react/tabs";
|
|
3
|
+
import { Tabs as TabsPrimitive } from "@base-ui/react/tabs";
|
|
4
|
+
import { type VariantProps } from "class-variance-authority";
|
|
5
|
+
import type { ClassProp } from "class-variance-authority/types";
|
|
5
6
|
interface TabsListVariantProps {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
orientation?: "horizontal" | "vertical" | null;
|
|
8
|
+
size?: "small" | "default" | null;
|
|
9
|
+
fullWidth?: boolean | null;
|
|
9
10
|
}
|
|
10
11
|
declare const tabsListVariants: (props?: (TabsListVariantProps & ClassProp) | undefined) => string;
|
|
11
12
|
interface TabsTriggerVariantProps {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
stateTone?: 'default' | null;
|
|
13
|
+
size?: "small" | "default" | null;
|
|
14
|
+
stateTone?: "default" | null;
|
|
15
15
|
}
|
|
16
16
|
declare const tabsTriggerVariants: (props?: (TabsTriggerVariantProps & ClassProp) | undefined) => string;
|
|
17
|
-
declare const Tabs: ForwardRefExoticComponent<Omit<TabsRootProps,
|
|
18
|
-
type TabsListProps = TabsPrimitive.List.Props & VariantProps<typeof tabsListVariants
|
|
19
|
-
|
|
17
|
+
declare const Tabs: ForwardRefExoticComponent<Omit<TabsRootProps, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
18
|
+
type TabsListProps = TabsPrimitive.List.Props & VariantProps<typeof tabsListVariants> & {
|
|
19
|
+
showSeparator?: boolean;
|
|
20
|
+
};
|
|
21
|
+
declare const TabsList: ForwardRefExoticComponent<Omit<TabsListProps, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
20
22
|
type TabsTriggerProps = TabsPrimitive.Tab.Props & VariantProps<typeof tabsTriggerVariants> & {
|
|
21
|
-
|
|
23
|
+
badge?: ReactNode;
|
|
22
24
|
};
|
|
23
|
-
declare const TabsTrigger: ForwardRefExoticComponent<Omit<TabsTriggerProps,
|
|
24
|
-
declare const TabsLabel: ForwardRefExoticComponent<ComponentProps<
|
|
25
|
+
declare const TabsTrigger: ForwardRefExoticComponent<Omit<TabsTriggerProps, "ref"> & RefAttributes<HTMLElement>>;
|
|
26
|
+
declare const TabsLabel: ForwardRefExoticComponent<ComponentProps<"span"> & RefAttributes<HTMLSpanElement>>;
|
|
25
27
|
type TabsPanelProps = TabsPrimitive.Panel.Props;
|
|
26
|
-
declare const TabsPanel: ForwardRefExoticComponent<Omit<TabsPanelProps,
|
|
27
|
-
export { Tabs, TabsLabel, TabsList, TabsPanel, TabsTrigger, tabsListVariants, tabsTriggerVariants
|
|
28
|
+
declare const TabsPanel: ForwardRefExoticComponent<Omit<TabsPanelProps, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
29
|
+
export { Tabs, TabsLabel, TabsList, TabsPanel, TabsTrigger, tabsListVariants, tabsTriggerVariants };
|