@adea-ai/ui 0.60.4 → 0.61.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/README.md +108 -34
- package/dist/components/composites/account-menu/account-menu.d.ts +48 -0
- package/dist/components/composites/account-menu/account-menu.d.ts.map +1 -0
- package/dist/components/composites/account-menu/account-menu.js +119 -0
- package/dist/components/composites/account-menu/account-menu.js.map +1 -0
- package/dist/components/composites/account-menu/index.d.ts +2 -0
- package/dist/components/composites/account-menu/index.d.ts.map +1 -0
- package/dist/components/composites/list-row/index.d.ts +2 -0
- package/dist/components/composites/list-row/index.d.ts.map +1 -0
- package/dist/components/composites/list-row/list-row.d.ts +44 -0
- package/dist/components/composites/list-row/list-row.d.ts.map +1 -0
- package/dist/components/composites/list-row/list-row.js +124 -0
- package/dist/components/composites/list-row/list-row.js.map +1 -0
- package/dist/components/composites/settings/index.d.ts +2 -0
- package/dist/components/composites/settings/index.d.ts.map +1 -0
- package/dist/components/composites/settings/settings.d.ts +49 -0
- package/dist/components/composites/settings/settings.d.ts.map +1 -0
- package/dist/components/composites/settings/settings.js +148 -0
- package/dist/components/composites/settings/settings.js.map +1 -0
- package/dist/components/composites/stat/index.d.ts +2 -0
- package/dist/components/composites/stat/index.d.ts.map +1 -0
- package/dist/components/composites/stat/stat.d.ts +48 -0
- package/dist/components/composites/stat/stat.d.ts.map +1 -0
- package/dist/components/composites/stat/stat.js +148 -0
- package/dist/components/composites/stat/stat.js.map +1 -0
- package/dist/components/composites/update-dialog/index.d.ts +2 -0
- package/dist/components/composites/update-dialog/index.d.ts.map +1 -0
- package/dist/components/composites/update-dialog/update-dialog.d.ts +108 -0
- package/dist/components/composites/update-dialog/update-dialog.d.ts.map +1 -0
- package/dist/components/composites/update-dialog/update-dialog.js +452 -0
- package/dist/components/composites/update-dialog/update-dialog.js.map +1 -0
- package/dist/components/composites/workspace-mark/index.d.ts +2 -0
- package/dist/components/composites/workspace-mark/index.d.ts.map +1 -0
- package/dist/components/composites/workspace-mark/workspace-mark.d.ts +24 -0
- package/dist/components/composites/workspace-mark/workspace-mark.d.ts.map +1 -0
- package/dist/components/composites/workspace-mark/workspace-mark.js +76 -0
- package/dist/components/composites/workspace-mark/workspace-mark.js.map +1 -0
- package/dist/components/conversation/conversation-avatar.d.ts +21 -0
- package/dist/components/conversation/conversation-avatar.d.ts.map +1 -0
- package/dist/components/conversation/conversation-avatar.js +52 -0
- package/dist/components/conversation/conversation-avatar.js.map +1 -0
- package/dist/components/conversation/conversation-surface.d.ts +27 -0
- package/dist/components/conversation/conversation-surface.d.ts.map +1 -0
- package/dist/components/conversation/conversation-surface.js +118 -0
- package/dist/components/conversation/conversation-surface.js.map +1 -0
- package/dist/components/conversation/index.d.ts +6 -0
- package/dist/components/conversation/index.d.ts.map +1 -0
- package/dist/components/conversation/message-composer.d.ts +70 -0
- package/dist/components/conversation/message-composer.d.ts.map +1 -0
- package/dist/components/conversation/message-composer.js +235 -0
- package/dist/components/conversation/message-composer.js.map +1 -0
- package/dist/components/conversation/message-row.d.ts +101 -0
- package/dist/components/conversation/message-row.d.ts.map +1 -0
- package/dist/components/conversation/message-row.js +389 -0
- package/dist/components/conversation/message-row.js.map +1 -0
- package/dist/components/conversation/thread-panel.d.ts +45 -0
- package/dist/components/conversation/thread-panel.d.ts.map +1 -0
- package/dist/components/conversation/thread-panel.js +123 -0
- package/dist/components/conversation/thread-panel.js.map +1 -0
- package/dist/components/layout/app-shell/app-shell.d.ts +45 -0
- package/dist/components/layout/app-shell/app-shell.d.ts.map +1 -0
- package/dist/components/layout/app-shell/app-shell.js +89 -0
- package/dist/components/layout/app-shell/app-shell.js.map +1 -0
- package/dist/components/layout/app-shell/index.d.ts +2 -0
- package/dist/components/layout/app-shell/index.d.ts.map +1 -0
- package/dist/components/layout/page/index.d.ts +2 -0
- package/dist/components/layout/page/index.d.ts.map +1 -0
- package/dist/components/layout/page/page.d.ts +31 -0
- package/dist/components/layout/page/page.d.ts.map +1 -0
- package/dist/components/layout/page/page.js +143 -0
- package/dist/components/layout/page/page.js.map +1 -0
- package/dist/components/layout/panel/index.d.ts +2 -0
- package/dist/components/layout/panel/index.d.ts.map +1 -0
- package/dist/components/layout/panel/panel.d.ts +44 -0
- package/dist/components/layout/panel/panel.d.ts.map +1 -0
- package/dist/components/layout/panel/panel.js +151 -0
- package/dist/components/layout/panel/panel.js.map +1 -0
- package/dist/components/layout/side-rail/index.d.ts +3 -0
- package/dist/components/layout/side-rail/index.d.ts.map +1 -0
- package/dist/components/layout/side-rail/side-rail-context.d.ts +23 -0
- package/dist/components/layout/side-rail/side-rail-context.d.ts.map +1 -0
- package/dist/components/layout/side-rail/side-rail-context.js +18 -0
- package/dist/components/layout/side-rail/side-rail-context.js.map +1 -0
- package/dist/components/layout/side-rail/side-rail.d.ts +101 -0
- package/dist/components/layout/side-rail/side-rail.d.ts.map +1 -0
- package/dist/components/layout/side-rail/side-rail.js +336 -0
- package/dist/components/layout/side-rail/side-rail.js.map +1 -0
- package/dist/components/layout/sidebar-nav/index.d.ts +2 -0
- package/dist/components/layout/sidebar-nav/index.d.ts.map +1 -0
- package/dist/components/layout/sidebar-nav/sidebar-nav.d.ts +62 -0
- package/dist/components/layout/sidebar-nav/sidebar-nav.d.ts.map +1 -0
- package/dist/components/layout/sidebar-nav/sidebar-nav.js +231 -0
- package/dist/components/layout/sidebar-nav/sidebar-nav.js.map +1 -0
- package/dist/components/layout/status-bar/index.d.ts +2 -0
- package/dist/components/layout/status-bar/index.d.ts.map +1 -0
- package/dist/components/layout/status-bar/status-bar.d.ts +23 -0
- package/dist/components/layout/status-bar/status-bar.d.ts.map +1 -0
- package/dist/components/layout/status-bar/status-bar.js +68 -0
- package/dist/components/layout/status-bar/status-bar.js.map +1 -0
- package/dist/components/layout/top-bar/index.d.ts +2 -0
- package/dist/components/layout/top-bar/index.d.ts.map +1 -0
- package/dist/components/layout/top-bar/top-bar.d.ts +59 -0
- package/dist/components/layout/top-bar/top-bar.d.ts.map +1 -0
- package/dist/components/layout/top-bar/top-bar.js +118 -0
- package/dist/components/layout/top-bar/top-bar.js.map +1 -0
- package/dist/components/motion/index.d.ts +3 -0
- package/dist/components/motion/index.d.ts.map +1 -0
- package/dist/components/motion/index.js +3 -0
- package/dist/components/motion/presence.d.ts +29 -0
- package/dist/components/motion/presence.d.ts.map +1 -0
- package/dist/components/motion/presence.js +10 -0
- package/dist/components/motion/presence.js.map +1 -0
- package/dist/components/theme/appearance-panel.d.ts +25 -0
- package/dist/components/theme/appearance-panel.d.ts.map +1 -0
- package/dist/components/theme/appearance-panel.js +162 -0
- package/dist/components/theme/appearance-panel.js.map +1 -0
- package/dist/components/theme/index.d.ts +5 -0
- package/dist/components/theme/index.d.ts.map +1 -0
- package/dist/components/theme/theme-picker.d.ts +54 -0
- package/dist/components/theme/theme-picker.d.ts.map +1 -0
- package/dist/components/theme/theme-picker.js +156 -0
- package/dist/components/theme/theme-picker.js.map +1 -0
- package/dist/components/theme/theme-provider.d.ts +130 -0
- package/dist/components/theme/theme-provider.d.ts.map +1 -0
- package/dist/components/theme/theme-provider.js +164 -0
- package/dist/components/theme/theme-provider.js.map +1 -0
- package/dist/components/theme/theme-toggle.d.ts +19 -0
- package/dist/components/theme/theme-toggle.d.ts.map +1 -0
- package/dist/components/theme/theme-toggle.js +69 -0
- package/dist/components/theme/theme-toggle.js.map +1 -0
- package/dist/components/ui/accordion/accordion.d.ts +18 -0
- package/dist/components/ui/accordion/accordion.d.ts.map +1 -0
- package/dist/components/ui/accordion/accordion.js +60 -0
- package/dist/components/ui/accordion/accordion.js.map +1 -0
- package/dist/components/ui/accordion/index.d.ts +2 -0
- package/dist/components/ui/accordion/index.d.ts.map +1 -0
- package/dist/components/ui/alert/alert.d.ts +26 -0
- package/dist/components/ui/alert/alert.d.ts.map +1 -0
- package/dist/components/ui/alert/alert.js +89 -0
- package/dist/components/ui/alert/alert.js.map +1 -0
- package/dist/components/ui/alert/index.d.ts +2 -0
- package/dist/components/ui/alert/index.d.ts.map +1 -0
- package/dist/components/ui/alert-dialog/alert-dialog.d.ts +29 -0
- package/dist/components/ui/alert-dialog/alert-dialog.d.ts.map +1 -0
- package/dist/components/ui/alert-dialog/alert-dialog.js +155 -0
- package/dist/components/ui/alert-dialog/alert-dialog.js.map +1 -0
- package/dist/components/ui/alert-dialog/index.d.ts +2 -0
- package/dist/components/ui/alert-dialog/index.d.ts.map +1 -0
- package/dist/components/ui/aspect-ratio/aspect-ratio.d.ts +22 -0
- package/dist/components/ui/aspect-ratio/aspect-ratio.d.ts.map +1 -0
- package/dist/components/ui/aspect-ratio/aspect-ratio.js +29 -0
- package/dist/components/ui/aspect-ratio/aspect-ratio.js.map +1 -0
- package/dist/components/ui/aspect-ratio/index.d.ts +2 -0
- package/dist/components/ui/aspect-ratio/index.d.ts.map +1 -0
- package/dist/components/ui/avatar/avatar.d.ts +41 -0
- package/dist/components/ui/avatar/avatar.d.ts.map +1 -0
- package/dist/components/ui/avatar/avatar.js +106 -0
- package/dist/components/ui/avatar/avatar.js.map +1 -0
- package/dist/components/ui/avatar/index.d.ts +2 -0
- package/dist/components/ui/avatar/index.d.ts.map +1 -0
- package/dist/components/ui/badge/badge.d.ts +22 -0
- package/dist/components/ui/badge/badge.d.ts.map +1 -0
- package/dist/components/ui/badge/badge.js +58 -0
- package/dist/components/ui/badge/badge.js.map +1 -0
- package/dist/components/ui/badge/index.d.ts +2 -0
- package/dist/components/ui/badge/index.d.ts.map +1 -0
- package/dist/components/ui/board/board.d.ts +78 -0
- package/dist/components/ui/board/board.d.ts.map +1 -0
- package/dist/components/ui/board/board.js +200 -0
- package/dist/components/ui/board/board.js.map +1 -0
- package/dist/components/ui/board/index.d.ts +2 -0
- package/dist/components/ui/board/index.d.ts.map +1 -0
- package/dist/components/ui/breadcrumb/breadcrumb.d.ts +24 -0
- package/dist/components/ui/breadcrumb/breadcrumb.d.ts.map +1 -0
- package/dist/components/ui/breadcrumb/breadcrumb.js +109 -0
- package/dist/components/ui/breadcrumb/breadcrumb.js.map +1 -0
- package/dist/components/ui/breadcrumb/index.d.ts +2 -0
- package/dist/components/ui/breadcrumb/index.d.ts.map +1 -0
- package/dist/components/ui/button/button.d.ts +30 -0
- package/dist/components/ui/button/button.d.ts.map +1 -0
- package/dist/components/ui/button/button.js +80 -0
- package/dist/components/ui/button/button.js.map +1 -0
- package/dist/components/ui/button/index.d.ts +2 -0
- package/dist/components/ui/button/index.d.ts.map +1 -0
- package/dist/components/ui/button-group/button-group.d.ts +39 -0
- package/dist/components/ui/button-group/button-group.d.ts.map +1 -0
- package/dist/components/ui/button-group/button-group.js +63 -0
- package/dist/components/ui/button-group/button-group.js.map +1 -0
- package/dist/components/ui/button-group/index.d.ts +2 -0
- package/dist/components/ui/button-group/index.d.ts.map +1 -0
- package/dist/components/ui/calendar/calendar.d.ts +93 -0
- package/dist/components/ui/calendar/calendar.d.ts.map +1 -0
- package/dist/components/ui/calendar/calendar.js +243 -0
- package/dist/components/ui/calendar/calendar.js.map +1 -0
- package/dist/components/ui/calendar/index.d.ts +2 -0
- package/dist/components/ui/calendar/index.d.ts.map +1 -0
- package/dist/components/ui/card/card.d.ts +23 -0
- package/dist/components/ui/card/card.d.ts.map +1 -0
- package/dist/components/ui/card/card.js +98 -0
- package/dist/components/ui/card/card.js.map +1 -0
- package/dist/components/ui/card/index.d.ts +2 -0
- package/dist/components/ui/card/index.d.ts.map +1 -0
- package/dist/components/ui/carousel/carousel.d.ts +66 -0
- package/dist/components/ui/carousel/carousel.d.ts.map +1 -0
- package/dist/components/ui/carousel/carousel.js +178 -0
- package/dist/components/ui/carousel/carousel.js.map +1 -0
- package/dist/components/ui/carousel/index.d.ts +2 -0
- package/dist/components/ui/carousel/index.d.ts.map +1 -0
- package/dist/components/ui/chart/chart.d.ts +154 -0
- package/dist/components/ui/chart/chart.d.ts.map +1 -0
- package/dist/components/ui/chart/chart.js +373 -0
- package/dist/components/ui/chart/chart.js.map +1 -0
- package/dist/components/ui/chart/index.d.ts +2 -0
- package/dist/components/ui/chart/index.d.ts.map +1 -0
- package/dist/components/ui/checkbox/checkbox.d.ts +33 -0
- package/dist/components/ui/checkbox/checkbox.d.ts.map +1 -0
- package/dist/components/ui/checkbox/checkbox.js +76 -0
- package/dist/components/ui/checkbox/checkbox.js.map +1 -0
- package/dist/components/ui/checkbox/index.d.ts +2 -0
- package/dist/components/ui/checkbox/index.d.ts.map +1 -0
- package/dist/components/ui/code-block/code-block.d.ts +75 -0
- package/dist/components/ui/code-block/code-block.d.ts.map +1 -0
- package/dist/components/ui/code-block/code-block.js +186 -0
- package/dist/components/ui/code-block/code-block.js.map +1 -0
- package/dist/components/ui/code-block/index.d.ts +2 -0
- package/dist/components/ui/code-block/index.d.ts.map +1 -0
- package/dist/components/ui/collapsible/collapsible.d.ts +17 -0
- package/dist/components/ui/collapsible/collapsible.d.ts.map +1 -0
- package/dist/components/ui/collapsible/collapsible.js +38 -0
- package/dist/components/ui/collapsible/collapsible.js.map +1 -0
- package/dist/components/ui/collapsible/index.d.ts +2 -0
- package/dist/components/ui/collapsible/index.d.ts.map +1 -0
- package/dist/components/ui/combobox/combobox.d.ts +28 -0
- package/dist/components/ui/combobox/combobox.d.ts.map +1 -0
- package/dist/components/ui/combobox/combobox.js +102 -0
- package/dist/components/ui/combobox/combobox.js.map +1 -0
- package/dist/components/ui/combobox/index.d.ts +2 -0
- package/dist/components/ui/combobox/index.d.ts.map +1 -0
- package/dist/components/ui/command/command.d.ts +53 -0
- package/dist/components/ui/command/command.d.ts.map +1 -0
- package/dist/components/ui/command/command.js +137 -0
- package/dist/components/ui/command/command.js.map +1 -0
- package/dist/components/ui/command/index.d.ts +2 -0
- package/dist/components/ui/command/index.d.ts.map +1 -0
- package/dist/components/ui/context-menu/context-menu.d.ts +32 -0
- package/dist/components/ui/context-menu/context-menu.d.ts.map +1 -0
- package/dist/components/ui/context-menu/context-menu.js +119 -0
- package/dist/components/ui/context-menu/context-menu.js.map +1 -0
- package/dist/components/ui/context-menu/index.d.ts +2 -0
- package/dist/components/ui/context-menu/index.d.ts.map +1 -0
- package/dist/components/ui/detail-panel/detail-panel.d.ts +61 -0
- package/dist/components/ui/detail-panel/detail-panel.d.ts.map +1 -0
- package/dist/components/ui/detail-panel/detail-panel.js +132 -0
- package/dist/components/ui/detail-panel/detail-panel.js.map +1 -0
- package/dist/components/ui/detail-panel/index.d.ts +2 -0
- package/dist/components/ui/detail-panel/index.d.ts.map +1 -0
- package/dist/components/ui/dialog/dialog.d.ts +40 -0
- package/dist/components/ui/dialog/dialog.d.ts.map +1 -0
- package/dist/components/ui/dialog/dialog.js +125 -0
- package/dist/components/ui/dialog/dialog.js.map +1 -0
- package/dist/components/ui/dialog/index.d.ts +2 -0
- package/dist/components/ui/dialog/index.d.ts.map +1 -0
- package/dist/components/ui/diff-block/diff-block.d.ts +95 -0
- package/dist/components/ui/diff-block/diff-block.d.ts.map +1 -0
- package/dist/components/ui/diff-block/diff-block.js +230 -0
- package/dist/components/ui/diff-block/diff-block.js.map +1 -0
- package/dist/components/ui/diff-block/diff-block.test.d.ts +2 -0
- package/dist/components/ui/diff-block/diff-block.test.d.ts.map +1 -0
- package/dist/components/ui/diff-block/index.d.ts +2 -0
- package/dist/components/ui/diff-block/index.d.ts.map +1 -0
- package/dist/components/ui/drawer/drawer.d.ts +39 -0
- package/dist/components/ui/drawer/drawer.d.ts.map +1 -0
- package/dist/components/ui/drawer/drawer.js +106 -0
- package/dist/components/ui/drawer/drawer.js.map +1 -0
- package/dist/components/ui/drawer/index.d.ts +2 -0
- package/dist/components/ui/drawer/index.d.ts.map +1 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts +48 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts.map +1 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu.js +151 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu.js.map +1 -0
- package/dist/components/ui/dropdown-menu/index.d.ts +2 -0
- package/dist/components/ui/dropdown-menu/index.d.ts.map +1 -0
- package/dist/components/ui/empty/empty.d.ts +27 -0
- package/dist/components/ui/empty/empty.d.ts.map +1 -0
- package/dist/components/ui/{empty.js → empty/empty.js} +28 -23
- package/dist/components/ui/empty/empty.js.map +1 -0
- package/dist/components/ui/empty/index.d.ts +2 -0
- package/dist/components/ui/empty/index.d.ts.map +1 -0
- package/dist/components/ui/entity-icon/entity-icon.d.ts +59 -0
- package/dist/components/ui/entity-icon/entity-icon.d.ts.map +1 -0
- package/dist/components/ui/entity-icon/entity-icon.js +145 -0
- package/dist/components/ui/entity-icon/entity-icon.js.map +1 -0
- package/dist/components/ui/entity-icon/index.d.ts +2 -0
- package/dist/components/ui/entity-icon/index.d.ts.map +1 -0
- package/dist/components/ui/field/field.d.ts +39 -0
- package/dist/components/ui/field/field.d.ts.map +1 -0
- package/dist/components/ui/field/field.js +111 -0
- package/dist/components/ui/field/field.js.map +1 -0
- package/dist/components/ui/field/index.d.ts +2 -0
- package/dist/components/ui/field/index.d.ts.map +1 -0
- package/dist/components/ui/hover-card/hover-card.d.ts +17 -0
- package/dist/components/ui/hover-card/hover-card.d.ts.map +1 -0
- package/dist/components/ui/hover-card/hover-card.js +40 -0
- package/dist/components/ui/hover-card/hover-card.js.map +1 -0
- package/dist/components/ui/hover-card/index.d.ts +2 -0
- package/dist/components/ui/hover-card/index.d.ts.map +1 -0
- package/dist/components/ui/input/index.d.ts +2 -0
- package/dist/components/ui/input/index.d.ts.map +1 -0
- package/dist/components/ui/input/input.d.ts +15 -0
- package/dist/components/ui/input/input.d.ts.map +1 -0
- package/dist/components/ui/input/input.js +36 -0
- package/dist/components/ui/input/input.js.map +1 -0
- package/dist/components/ui/input-group/index.d.ts +2 -0
- package/dist/components/ui/input-group/index.d.ts.map +1 -0
- package/dist/components/ui/input-group/input-group.d.ts +34 -0
- package/dist/components/ui/input-group/input-group.d.ts.map +1 -0
- package/dist/components/ui/input-group/input-group.js +93 -0
- package/dist/components/ui/input-group/input-group.js.map +1 -0
- package/dist/components/ui/input-otp/index.d.ts +2 -0
- package/dist/components/ui/input-otp/index.d.ts.map +1 -0
- package/dist/components/ui/input-otp/input-otp.d.ts +37 -0
- package/dist/components/ui/input-otp/input-otp.d.ts.map +1 -0
- package/dist/components/ui/input-otp/input-otp.js +92 -0
- package/dist/components/ui/input-otp/input-otp.js.map +1 -0
- package/dist/components/ui/item/index.d.ts +2 -0
- package/dist/components/ui/item/index.d.ts.map +1 -0
- package/dist/components/ui/item/item.d.ts +49 -0
- package/dist/components/ui/item/item.d.ts.map +1 -0
- package/dist/components/ui/item/item.js +163 -0
- package/dist/components/ui/item/item.js.map +1 -0
- package/dist/components/ui/kbd/index.d.ts +2 -0
- package/dist/components/ui/kbd/index.d.ts.map +1 -0
- package/dist/components/ui/kbd/kbd.d.ts +14 -0
- package/dist/components/ui/kbd/kbd.d.ts.map +1 -0
- package/dist/components/ui/kbd/kbd.js +40 -0
- package/dist/components/ui/kbd/kbd.js.map +1 -0
- package/dist/components/ui/label/index.d.ts +2 -0
- package/dist/components/ui/label/index.d.ts.map +1 -0
- package/dist/components/ui/label/label.d.ts +17 -0
- package/dist/components/ui/label/label.d.ts.map +1 -0
- package/dist/components/ui/label/label.js +33 -0
- package/dist/components/ui/label/label.js.map +1 -0
- package/dist/components/ui/menubar/index.d.ts +2 -0
- package/dist/components/ui/menubar/index.d.ts.map +1 -0
- package/dist/components/ui/menubar/menubar.d.ts +38 -0
- package/dist/components/ui/menubar/menubar.d.ts.map +1 -0
- package/dist/components/ui/menubar/menubar.js +138 -0
- package/dist/components/ui/menubar/menubar.js.map +1 -0
- package/dist/components/ui/modal-dialog/index.d.ts +2 -0
- package/dist/components/ui/modal-dialog/index.d.ts.map +1 -0
- package/dist/components/ui/modal-dialog/modal-dialog.d.ts +35 -0
- package/dist/components/ui/modal-dialog/modal-dialog.d.ts.map +1 -0
- package/dist/components/ui/modal-dialog/modal-dialog.js +78 -0
- package/dist/components/ui/modal-dialog/modal-dialog.js.map +1 -0
- package/dist/components/ui/navigation-menu/index.d.ts +2 -0
- package/dist/components/ui/navigation-menu/index.d.ts.map +1 -0
- package/dist/components/ui/navigation-menu/navigation-menu.d.ts +77 -0
- package/dist/components/ui/navigation-menu/navigation-menu.d.ts.map +1 -0
- package/dist/components/ui/navigation-menu/navigation-menu.js +116 -0
- package/dist/components/ui/navigation-menu/navigation-menu.js.map +1 -0
- package/dist/components/ui/pagination/index.d.ts +2 -0
- package/dist/components/ui/pagination/index.d.ts.map +1 -0
- package/dist/components/ui/pagination/pagination.d.ts +33 -0
- package/dist/components/ui/pagination/pagination.d.ts.map +1 -0
- package/dist/components/ui/pagination/pagination.js +92 -0
- package/dist/components/ui/pagination/pagination.js.map +1 -0
- package/dist/components/ui/popover/index.d.ts +2 -0
- package/dist/components/ui/popover/index.d.ts.map +1 -0
- package/dist/components/ui/popover/popover.d.ts +26 -0
- package/dist/components/ui/popover/popover.d.ts.map +1 -0
- package/dist/components/ui/popover/popover.js +66 -0
- package/dist/components/ui/popover/popover.js.map +1 -0
- package/dist/components/ui/progress/index.d.ts +2 -0
- package/dist/components/ui/progress/index.d.ts.map +1 -0
- package/dist/components/ui/progress/progress.d.ts +29 -0
- package/dist/components/ui/progress/progress.d.ts.map +1 -0
- package/dist/components/ui/progress/progress.js +53 -0
- package/dist/components/ui/progress/progress.js.map +1 -0
- package/dist/components/ui/radio-group/index.d.ts +2 -0
- package/dist/components/ui/radio-group/index.d.ts.map +1 -0
- package/dist/components/ui/radio-group/radio-group.d.ts +26 -0
- package/dist/components/ui/radio-group/radio-group.d.ts.map +1 -0
- package/dist/components/ui/radio-group/radio-group.js +77 -0
- package/dist/components/ui/radio-group/radio-group.js.map +1 -0
- package/dist/components/ui/resizable/index.d.ts +2 -0
- package/dist/components/ui/resizable/index.d.ts.map +1 -0
- package/dist/components/ui/resizable/resizable.d.ts +33 -0
- package/dist/components/ui/resizable/resizable.d.ts.map +1 -0
- package/dist/components/ui/resizable/resizable.js +57 -0
- package/dist/components/ui/resizable/resizable.js.map +1 -0
- package/dist/components/ui/scroll-area/index.d.ts +2 -0
- package/dist/components/ui/scroll-area/index.d.ts.map +1 -0
- package/dist/components/ui/scroll-area/scroll-area.d.ts +26 -0
- package/dist/components/ui/scroll-area/scroll-area.d.ts.map +1 -0
- package/dist/components/ui/scroll-area/scroll-area.js +36 -0
- package/dist/components/ui/scroll-area/scroll-area.js.map +1 -0
- package/dist/components/ui/select/index.d.ts +2 -0
- package/dist/components/ui/select/index.d.ts.map +1 -0
- package/dist/components/ui/select/select.d.ts +63 -0
- package/dist/components/ui/select/select.d.ts.map +1 -0
- package/dist/components/ui/select/select.js +142 -0
- package/dist/components/ui/select/select.js.map +1 -0
- package/dist/components/ui/separator/index.d.ts +2 -0
- package/dist/components/ui/separator/index.d.ts.map +1 -0
- package/dist/components/ui/separator/separator.d.ts +17 -0
- package/dist/components/ui/separator/separator.d.ts.map +1 -0
- package/dist/components/ui/separator/separator.js +24 -0
- package/dist/components/ui/separator/separator.js.map +1 -0
- package/dist/components/ui/sheet/index.d.ts +2 -0
- package/dist/components/ui/sheet/index.d.ts.map +1 -0
- package/dist/components/ui/sheet/sheet.d.ts +32 -0
- package/dist/components/ui/sheet/sheet.d.ts.map +1 -0
- package/dist/components/ui/sheet/sheet.js +118 -0
- package/dist/components/ui/sheet/sheet.js.map +1 -0
- package/dist/components/ui/skeleton/index.d.ts +2 -0
- package/dist/components/ui/skeleton/index.d.ts.map +1 -0
- package/dist/components/ui/skeleton/skeleton.d.ts +15 -0
- package/dist/components/ui/skeleton/skeleton.d.ts.map +1 -0
- package/dist/components/ui/skeleton/skeleton.js +31 -0
- package/dist/components/ui/skeleton/skeleton.js.map +1 -0
- package/dist/components/ui/slider/index.d.ts +2 -0
- package/dist/components/ui/slider/index.d.ts.map +1 -0
- package/dist/components/ui/slider/slider.d.ts +22 -0
- package/dist/components/ui/slider/slider.d.ts.map +1 -0
- package/dist/components/ui/slider/slider.js +59 -0
- package/dist/components/ui/slider/slider.js.map +1 -0
- package/dist/components/ui/spinner/index.d.ts +2 -0
- package/dist/components/ui/spinner/index.d.ts.map +1 -0
- package/dist/components/ui/spinner/spinner.d.ts +25 -0
- package/dist/components/ui/spinner/spinner.d.ts.map +1 -0
- package/dist/components/ui/spinner/spinner.js +57 -0
- package/dist/components/ui/spinner/spinner.js.map +1 -0
- package/dist/components/ui/status-chip/index.d.ts +2 -0
- package/dist/components/ui/status-chip/index.d.ts.map +1 -0
- package/dist/components/ui/status-chip/status-chip.d.ts +70 -0
- package/dist/components/ui/status-chip/status-chip.d.ts.map +1 -0
- package/dist/components/ui/status-chip/status-chip.js +140 -0
- package/dist/components/ui/status-chip/status-chip.js.map +1 -0
- package/dist/components/ui/switch/index.d.ts +2 -0
- package/dist/components/ui/switch/index.d.ts.map +1 -0
- package/dist/components/ui/switch/switch.d.ts +36 -0
- package/dist/components/ui/switch/switch.d.ts.map +1 -0
- package/dist/components/ui/switch/switch.js +74 -0
- package/dist/components/ui/switch/switch.js.map +1 -0
- package/dist/components/ui/table/index.d.ts +2 -0
- package/dist/components/ui/table/index.d.ts.map +1 -0
- package/dist/components/ui/table/table.d.ts +29 -0
- package/dist/components/ui/table/table.d.ts.map +1 -0
- package/dist/components/ui/table/table.js +129 -0
- package/dist/components/ui/table/table.js.map +1 -0
- package/dist/components/ui/tabs/index.d.ts +2 -0
- package/dist/components/ui/tabs/index.d.ts.map +1 -0
- package/dist/components/ui/tabs/tabs.d.ts +23 -0
- package/dist/components/ui/tabs/tabs.d.ts.map +1 -0
- package/dist/components/ui/tabs/tabs.js +43 -0
- package/dist/components/ui/tabs/tabs.js.map +1 -0
- package/dist/components/ui/textarea/index.d.ts +2 -0
- package/dist/components/ui/textarea/index.d.ts.map +1 -0
- package/dist/components/ui/textarea/textarea.d.ts +14 -0
- package/dist/components/ui/textarea/textarea.d.ts.map +1 -0
- package/dist/components/ui/textarea/textarea.js +30 -0
- package/dist/components/ui/textarea/textarea.js.map +1 -0
- package/dist/components/ui/toast/index.d.ts +2 -0
- package/dist/components/ui/toast/index.d.ts.map +1 -0
- package/dist/components/ui/toast/toast.d.ts +68 -0
- package/dist/components/ui/toast/toast.d.ts.map +1 -0
- package/dist/components/ui/toast/toast.js +186 -0
- package/dist/components/ui/toast/toast.js.map +1 -0
- package/dist/components/ui/toggle/index.d.ts +2 -0
- package/dist/components/ui/toggle/index.d.ts.map +1 -0
- package/dist/components/ui/toggle/toggle.d.ts +22 -0
- package/dist/components/ui/toggle/toggle.d.ts.map +1 -0
- package/dist/components/ui/toggle/toggle.js +64 -0
- package/dist/components/ui/toggle/toggle.js.map +1 -0
- package/dist/components/ui/toggle-group/index.d.ts +2 -0
- package/dist/components/ui/toggle-group/index.d.ts.map +1 -0
- package/dist/components/ui/toggle-group/toggle-group.d.ts +35 -0
- package/dist/components/ui/toggle-group/toggle-group.d.ts.map +1 -0
- package/dist/components/ui/toggle-group/toggle-group.js +38 -0
- package/dist/components/ui/toggle-group/toggle-group.js.map +1 -0
- package/dist/components/ui/tooltip/index.d.ts +2 -0
- package/dist/components/ui/tooltip/index.d.ts.map +1 -0
- package/dist/components/ui/tooltip/tooltip.d.ts +18 -0
- package/dist/components/ui/tooltip/tooltip.d.ts.map +1 -0
- package/dist/components/ui/tooltip/tooltip.js +67 -0
- package/dist/components/ui/tooltip/tooltip.js.map +1 -0
- package/dist/index.d.ts +96 -19
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +90 -20
- package/dist/lib/keyed-rows.d.ts +36 -0
- package/dist/lib/keyed-rows.d.ts.map +1 -0
- package/dist/lib/keyed-rows.js +53 -0
- package/dist/lib/keyed-rows.js.map +1 -0
- package/dist/lib/keyed-rows.test.d.ts +2 -0
- package/dist/lib/keyed-rows.test.d.ts.map +1 -0
- package/dist/lib/overlay.d.ts +44 -0
- package/dist/lib/overlay.d.ts.map +1 -0
- package/dist/lib/overlay.js +57 -0
- package/dist/lib/overlay.js.map +1 -0
- package/dist/lib/themes.d.ts +197 -0
- package/dist/lib/themes.d.ts.map +1 -0
- package/dist/lib/themes.js +303 -0
- package/dist/lib/themes.js.map +1 -0
- package/dist/lib/tokens.d.ts +103 -0
- package/dist/lib/tokens.d.ts.map +1 -0
- package/dist/lib/tokens.js +805 -0
- package/dist/lib/tokens.js.map +1 -0
- package/dist/lib/utils.d.ts +27 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/utils.js +61 -3
- package/dist/lib/utils.js.map +1 -0
- package/dist/lib/variants.d.ts +57 -0
- package/dist/lib/variants.d.ts.map +1 -0
- package/dist/lib/variants.js +49 -0
- package/dist/lib/variants.js.map +1 -0
- package/dist/lib/version-notes.d.ts +24 -0
- package/dist/lib/version-notes.d.ts.map +1 -0
- package/dist/lib/version-notes.js +41 -1
- package/dist/lib/version-notes.js.map +1 -0
- package/dist/r/accordion.json +23 -0
- package/dist/r/account-menu.json +25 -0
- package/dist/r/alert-dialog.json +22 -0
- package/dist/r/alert.json +22 -0
- package/dist/r/app-shell.json +20 -0
- package/dist/r/aspect-ratio.json +20 -0
- package/dist/r/avatar.json +20 -0
- package/dist/r/badge.json +22 -0
- package/dist/r/board.json +20 -0
- package/dist/r/breadcrumb.json +22 -0
- package/dist/r/button-group.json +22 -0
- package/dist/r/button.json +22 -0
- package/dist/r/calendar.json +25 -0
- package/dist/r/card.json +20 -0
- package/dist/r/carousel.json +26 -0
- package/dist/r/chart.json +23 -0
- package/dist/r/checkbox.json +23 -0
- package/dist/r/code-block.json +24 -0
- package/dist/r/collapsible.json +22 -0
- package/dist/r/combobox.json +23 -0
- package/dist/r/command.json +23 -0
- package/dist/r/context-menu.json +23 -0
- package/dist/r/conversation.json +48 -0
- package/dist/r/detail-panel.json +24 -0
- package/dist/r/dialog.json +23 -0
- package/dist/r/diff-block.json +20 -0
- package/dist/r/drawer.json +22 -0
- package/dist/r/dropdown-menu.json +23 -0
- package/dist/r/empty.json +20 -0
- package/dist/r/entity-icon.json +20 -0
- package/dist/r/field.json +22 -0
- package/dist/r/hover-card.json +22 -0
- package/dist/r/input-group.json +20 -0
- package/dist/r/input-otp.json +22 -0
- package/dist/r/input.json +20 -0
- package/dist/r/item.json +20 -0
- package/dist/r/kbd.json +20 -0
- package/dist/r/label.json +20 -0
- package/dist/r/list-row.json +22 -0
- package/dist/r/menubar.json +23 -0
- package/dist/r/modal-dialog.json +22 -0
- package/dist/r/navigation-menu.json +23 -0
- package/dist/r/page.json +20 -0
- package/dist/r/pagination.json +23 -0
- package/dist/r/panel.json +20 -0
- package/dist/r/popover.json +22 -0
- package/dist/r/progress.json +22 -0
- package/dist/r/radio-group.json +23 -0
- package/dist/r/registry.json +1676 -0
- package/dist/r/resizable.json +23 -0
- package/dist/r/scroll-area.json +20 -0
- package/dist/r/select.json +23 -0
- package/dist/r/separator.json +22 -0
- package/dist/r/settings.json +20 -0
- package/dist/r/sheet.json +25 -0
- package/dist/r/side-rail.json +27 -0
- package/dist/r/sidebar-nav.json +23 -0
- package/dist/r/skeleton.json +20 -0
- package/dist/r/slider.json +22 -0
- package/dist/r/spinner.json +22 -0
- package/dist/r/stat.json +22 -0
- package/dist/r/status-bar.json +20 -0
- package/dist/r/status-chip.json +22 -0
- package/dist/r/switch.json +22 -0
- package/dist/r/table.json +20 -0
- package/dist/r/tabs.json +22 -0
- package/dist/r/textarea.json +20 -0
- package/dist/r/theme.json +36 -0
- package/dist/r/toast.json +23 -0
- package/dist/r/toggle-group.json +24 -0
- package/dist/r/toggle.json +22 -0
- package/dist/r/tooltip.json +22 -0
- package/dist/r/top-bar.json +20 -0
- package/dist/r/update-dialog.json +27 -0
- package/dist/r/workspace-mark.json +22 -0
- package/package.json +75 -21
- package/registry.json +1676 -0
- package/src/components/composites/account-menu/account-menu.tsx +150 -0
- package/src/components/composites/account-menu/index.ts +1 -0
- package/src/components/composites/list-row/index.ts +1 -0
- package/src/components/composites/list-row/list-row.tsx +116 -0
- package/src/components/composites/settings/index.ts +1 -0
- package/src/components/composites/settings/settings.tsx +142 -0
- package/src/components/composites/stat/index.ts +9 -0
- package/src/components/composites/stat/stat.tsx +155 -0
- package/src/components/composites/update-dialog/index.ts +7 -0
- package/src/components/composites/update-dialog/update-dialog.tsx +529 -0
- package/src/components/composites/workspace-mark/index.ts +1 -0
- package/src/components/composites/workspace-mark/workspace-mark.tsx +72 -0
- package/src/components/conversation/conversation-avatar.tsx +60 -0
- package/src/components/conversation/conversation-surface.tsx +107 -0
- package/src/components/conversation/index.ts +25 -0
- package/src/components/conversation/message-composer.tsx +239 -0
- package/src/components/conversation/message-row.tsx +387 -0
- package/src/components/conversation/thread-panel.tsx +141 -0
- package/src/components/layout/app-shell/app-shell.tsx +92 -0
- package/src/components/layout/app-shell/index.ts +1 -0
- package/src/components/layout/page/index.ts +9 -0
- package/src/components/layout/page/page.tsx +122 -0
- package/src/components/layout/panel/index.ts +12 -0
- package/src/components/layout/panel/panel.tsx +166 -0
- package/src/components/layout/side-rail/index.ts +12 -0
- package/src/components/layout/side-rail/side-rail-context.ts +42 -0
- package/src/components/layout/side-rail/side-rail.tsx +405 -0
- package/src/components/layout/sidebar-nav/index.ts +14 -0
- package/src/components/layout/sidebar-nav/sidebar-nav.tsx +244 -0
- package/src/components/layout/status-bar/index.ts +1 -0
- package/src/components/layout/status-bar/status-bar.tsx +73 -0
- package/src/components/layout/top-bar/index.ts +10 -0
- package/src/components/layout/top-bar/top-bar.tsx +166 -0
- package/src/components/motion/index.ts +2 -0
- package/src/components/motion/presence.tsx +32 -0
- package/src/components/theme/appearance-panel.tsx +179 -0
- package/src/components/theme/index.ts +22 -0
- package/src/components/theme/theme-picker.tsx +174 -0
- package/src/components/theme/theme-provider.tsx +309 -0
- package/src/components/theme/theme-toggle.tsx +64 -0
- package/src/components/ui/accordion/accordion.tsx +66 -0
- package/src/components/ui/accordion/index.ts +1 -0
- package/src/components/ui/alert/alert.tsx +95 -0
- package/src/components/ui/alert/index.ts +1 -0
- package/src/components/ui/alert-dialog/alert-dialog.tsx +176 -0
- package/src/components/ui/alert-dialog/index.ts +13 -0
- package/src/components/ui/aspect-ratio/aspect-ratio.tsx +38 -0
- package/src/components/ui/aspect-ratio/index.ts +1 -0
- package/src/components/ui/avatar/avatar.tsx +114 -0
- package/src/components/ui/avatar/index.ts +9 -0
- package/src/components/ui/badge/badge.tsx +59 -0
- package/src/components/ui/badge/index.ts +1 -0
- package/src/components/ui/board/board.tsx +254 -0
- package/src/components/ui/board/index.ts +10 -0
- package/src/components/ui/breadcrumb/breadcrumb.tsx +117 -0
- package/src/components/ui/breadcrumb/index.ts +9 -0
- package/src/components/ui/button/button.tsx +89 -0
- package/src/components/ui/button/index.ts +1 -0
- package/src/components/ui/button-group/button-group.tsx +92 -0
- package/src/components/ui/button-group/index.ts +6 -0
- package/src/components/ui/calendar/calendar.tsx +277 -0
- package/src/components/ui/calendar/index.ts +1 -0
- package/src/components/ui/card/card.tsx +82 -0
- package/src/components/ui/card/index.ts +10 -0
- package/src/components/ui/carousel/carousel.tsx +209 -0
- package/src/components/ui/carousel/index.ts +1 -0
- package/src/components/ui/chart/chart.tsx +413 -0
- package/src/components/ui/chart/index.ts +17 -0
- package/src/components/ui/checkbox/checkbox.tsx +99 -0
- package/src/components/ui/checkbox/index.ts +1 -0
- package/src/components/ui/code-block/code-block.tsx +238 -0
- package/src/components/ui/code-block/index.ts +1 -0
- package/src/components/ui/collapsible/collapsible.tsx +54 -0
- package/src/components/ui/collapsible/index.ts +1 -0
- package/src/components/ui/combobox/combobox.tsx +142 -0
- package/src/components/ui/combobox/index.ts +10 -0
- package/src/components/ui/command/command.tsx +214 -0
- package/src/components/ui/command/index.ts +12 -0
- package/src/components/ui/context-menu/context-menu.tsx +163 -0
- package/src/components/ui/context-menu/index.ts +15 -0
- package/src/components/ui/detail-panel/detail-panel.tsx +161 -0
- package/src/components/ui/detail-panel/index.ts +9 -0
- package/src/components/ui/dialog/dialog.tsx +138 -0
- package/src/components/ui/dialog/index.ts +14 -0
- package/src/components/ui/diff-block/diff-block.tsx +286 -0
- package/src/components/ui/diff-block/index.ts +11 -0
- package/src/components/ui/drawer/drawer.tsx +144 -0
- package/src/components/ui/drawer/index.ts +13 -0
- package/src/components/ui/dropdown-menu/dropdown-menu.tsx +203 -0
- package/src/components/ui/dropdown-menu/index.ts +18 -0
- package/src/components/ui/empty/empty.tsx +104 -0
- package/src/components/ui/empty/index.ts +10 -0
- package/src/components/ui/entity-icon/entity-icon.tsx +154 -0
- package/src/components/ui/entity-icon/index.ts +1 -0
- package/src/components/ui/field/field.tsx +131 -0
- package/src/components/ui/field/index.ts +11 -0
- package/src/components/ui/hover-card/hover-card.tsx +48 -0
- package/src/components/ui/hover-card/index.ts +1 -0
- package/src/components/ui/input/index.ts +1 -0
- package/src/components/ui/input/input.tsx +41 -0
- package/src/components/ui/input-group/index.ts +8 -0
- package/src/components/ui/input-group/input-group.tsx +111 -0
- package/src/components/ui/input-otp/index.ts +1 -0
- package/src/components/ui/input-otp/input-otp.tsx +108 -0
- package/src/components/ui/item/index.ts +10 -0
- package/src/components/ui/item/item.tsx +146 -0
- package/src/components/ui/kbd/index.ts +1 -0
- package/src/components/ui/kbd/kbd.tsx +42 -0
- package/src/components/ui/label/index.ts +1 -0
- package/src/components/ui/label/label.tsx +36 -0
- package/src/components/ui/menubar/index.ts +16 -0
- package/src/components/ui/menubar/menubar.tsx +190 -0
- package/src/components/ui/modal-dialog/index.ts +1 -0
- package/src/components/ui/modal-dialog/modal-dialog.tsx +95 -0
- package/src/components/ui/navigation-menu/index.ts +13 -0
- package/src/components/ui/navigation-menu/navigation-menu.tsx +229 -0
- package/src/components/ui/pagination/index.ts +8 -0
- package/src/components/ui/pagination/pagination.tsx +144 -0
- package/src/components/ui/popover/index.ts +10 -0
- package/src/components/ui/popover/popover.tsx +81 -0
- package/src/components/ui/progress/index.ts +1 -0
- package/src/components/ui/progress/progress.tsx +67 -0
- package/src/components/ui/radio-group/index.ts +1 -0
- package/src/components/ui/radio-group/radio-group.tsx +78 -0
- package/src/components/ui/resizable/index.ts +6 -0
- package/src/components/ui/resizable/resizable.tsx +74 -0
- package/src/components/ui/scroll-area/index.ts +1 -0
- package/src/components/ui/scroll-area/scroll-area.tsx +66 -0
- package/src/components/ui/select/index.ts +11 -0
- package/src/components/ui/select/select.tsx +188 -0
- package/src/components/ui/separator/index.ts +1 -0
- package/src/components/ui/separator/separator.tsx +40 -0
- package/src/components/ui/sheet/index.ts +13 -0
- package/src/components/ui/sheet/sheet.tsx +132 -0
- package/src/components/ui/skeleton/index.ts +1 -0
- package/src/components/ui/skeleton/skeleton.tsx +28 -0
- package/src/components/ui/slider/index.ts +1 -0
- package/src/components/ui/slider/slider.tsx +81 -0
- package/src/components/ui/spinner/index.ts +1 -0
- package/src/components/ui/spinner/spinner.tsx +58 -0
- package/src/components/ui/status-chip/index.ts +8 -0
- package/src/components/ui/status-chip/status-chip.tsx +142 -0
- package/src/components/ui/switch/index.ts +1 -0
- package/src/components/ui/switch/switch.tsx +100 -0
- package/src/components/ui/table/index.ts +11 -0
- package/src/components/ui/table/table.tsx +125 -0
- package/src/components/ui/tabs/index.ts +8 -0
- package/src/components/ui/tabs/tabs.tsx +77 -0
- package/src/components/ui/textarea/index.ts +1 -0
- package/src/components/ui/textarea/textarea.tsx +36 -0
- package/src/components/ui/toast/index.ts +1 -0
- package/src/components/ui/toast/toast.tsx +220 -0
- package/src/components/ui/toggle/index.ts +1 -0
- package/src/components/ui/toggle/toggle.tsx +60 -0
- package/src/components/ui/toggle-group/index.ts +6 -0
- package/src/components/ui/toggle-group/toggle-group.tsx +66 -0
- package/src/components/ui/tooltip/index.ts +9 -0
- package/src/components/ui/tooltip/tooltip.tsx +102 -0
- package/src/index.ts +154 -0
- package/src/lib/keyed-rows.ts +68 -0
- package/src/lib/overlay.ts +70 -0
- package/src/lib/themes.ts +490 -0
- package/src/lib/tokens.ts +688 -0
- package/src/lib/utils.ts +74 -4
- package/src/lib/variants.ts +62 -0
- package/src/lib/version-notes.ts +35 -0
- package/src/styles/base.css +489 -484
- package/src/styles/fonts.css +26 -0
- package/src/styles/globals.css +14 -3
- package/src/styles/theme.css +838 -229
- package/LICENSE +0 -201
- package/dist/components/account-drawer.d.ts +0 -11
- package/dist/components/account-drawer.js +0 -120
- package/dist/components/appearance.d.ts +0 -261
- package/dist/components/appearance.js +0 -802
- package/dist/components/on-screen-controls.d.ts +0 -8
- package/dist/components/on-screen-controls.js +0 -162
- package/dist/components/scene-settings.d.ts +0 -33
- package/dist/components/scene-settings.js +0 -253
- package/dist/components/theme-preview.d.ts +0 -40
- package/dist/components/theme-preview.js +0 -210
- package/dist/components/theme-provider.d.ts +0 -52
- package/dist/components/theme-provider.js +0 -128
- package/dist/components/theme-swatch.d.ts +0 -12
- package/dist/components/theme-swatch.js +0 -66
- package/dist/components/theme-toggle.d.ts +0 -7
- package/dist/components/theme-toggle.js +0 -64
- package/dist/components/ui/badge.d.ts +0 -8
- package/dist/components/ui/badge.js +0 -34
- package/dist/components/ui/button.d.ts +0 -9
- package/dist/components/ui/button.js +0 -52
- package/dist/components/ui/card.d.ts +0 -4
- package/dist/components/ui/card.js +0 -28
- package/dist/components/ui/dialog.d.ts +0 -15
- package/dist/components/ui/dialog.js +0 -104
- package/dist/components/ui/drawer.d.ts +0 -24
- package/dist/components/ui/drawer.js +0 -120
- package/dist/components/ui/dropdown-menu.d.ts +0 -35
- package/dist/components/ui/dropdown-menu.js +0 -180
- package/dist/components/ui/empty.d.ts +0 -12
- package/dist/components/ui/field.d.ts +0 -25
- package/dist/components/ui/field.js +0 -188
- package/dist/components/ui/input.d.ts +0 -3
- package/dist/components/ui/input.js +0 -22
- package/dist/components/ui/label.d.ts +0 -3
- package/dist/components/ui/label.js +0 -17
- package/dist/components/ui/radio-group.d.ts +0 -5
- package/dist/components/ui/radio-group.js +0 -39
- package/dist/components/ui/separator.d.ts +0 -7
- package/dist/components/ui/separator.js +0 -20
- package/dist/components/ui/skeleton.d.ts +0 -3
- package/dist/components/ui/skeleton.js +0 -17
- package/dist/components/ui/spinner.d.ts +0 -5
- package/dist/components/ui/spinner.js +0 -17
- package/dist/components/ui/switch.d.ts +0 -8
- package/dist/components/ui/switch.js +0 -59
- package/dist/components/ui/tabs.d.ts +0 -11
- package/dist/components/ui/tabs.js +0 -57
- package/dist/components/ui/toggle-group.d.ts +0 -13
- package/dist/components/ui/toggle-group.js +0 -95
- package/dist/components/ui/toggle.d.ts +0 -10
- package/dist/components/ui/toggle.js +0 -41
- package/dist/components/ui/tooltip.d.ts +0 -15
- package/dist/components/ui/tooltip.js +0 -55
- package/dist/components/version-dialog.d.ts +0 -25
- package/dist/components/version-dialog.js +0 -330
- package/dist/components/workspace-brand.d.ts +0 -5
- package/dist/components/workspace-brand.js +0 -13
- package/dist/components/workspace-logo.d.ts +0 -3
- package/dist/components/workspace-logo.js +0 -17
- package/src/components/account-drawer.tsx +0 -114
- package/src/components/appearance.ts +0 -1112
- package/src/components/on-screen-controls.tsx +0 -149
- package/src/components/scene-settings.tsx +0 -199
- package/src/components/theme-preview.tsx +0 -170
- package/src/components/theme-provider.tsx +0 -214
- package/src/components/theme-swatch.tsx +0 -49
- package/src/components/theme-toggle.tsx +0 -48
- package/src/components/ui/badge.tsx +0 -40
- package/src/components/ui/button.tsx +0 -58
- package/src/components/ui/card.tsx +0 -21
- package/src/components/ui/dialog.tsx +0 -132
- package/src/components/ui/drawer.tsx +0 -168
- package/src/components/ui/dropdown-menu.tsx +0 -235
- package/src/components/ui/empty.tsx +0 -97
- package/src/components/ui/field.tsx +0 -220
- package/src/components/ui/input.tsx +0 -20
- package/src/components/ui/label.tsx +0 -19
- package/src/components/ui/radio-group.tsx +0 -41
- package/src/components/ui/separator.tsx +0 -28
- package/src/components/ui/skeleton.tsx +0 -16
- package/src/components/ui/spinner.tsx +0 -20
- package/src/components/ui/switch.tsx +0 -59
- package/src/components/ui/tabs.tsx +0 -76
- package/src/components/ui/toggle-group.tsx +0 -98
- package/src/components/ui/toggle.tsx +0 -42
- package/src/components/ui/tooltip.tsx +0 -61
- package/src/components/version-dialog.tsx +0 -368
- package/src/components/workspace-brand.tsx +0 -18
- package/src/components/workspace-logo.tsx +0 -21
- package/src/index.tsx +0 -53
- package/src/styles/auth-shell.css +0 -167
- package/src/styles/conventional-workspace.css +0 -2858
- package/src/styles/dev-view.css +0 -899
- package/src/styles/workspace-shell.css +0 -82
- package/tsconfig.json +0 -11
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CircleHelp,
|
|
3
|
+
Info,
|
|
4
|
+
LogIn,
|
|
5
|
+
LogOut,
|
|
6
|
+
Megaphone,
|
|
7
|
+
RefreshCw,
|
|
8
|
+
Settings2,
|
|
9
|
+
Smartphone,
|
|
10
|
+
UserRound,
|
|
11
|
+
} from 'lucide-solid'
|
|
12
|
+
import type { JSX } from 'solid-js'
|
|
13
|
+
import { For, Show, splitProps } from 'solid-js'
|
|
14
|
+
import { cn } from '#lib/utils'
|
|
15
|
+
import { Button } from '../../ui/button/button'
|
|
16
|
+
import {
|
|
17
|
+
DropdownMenu,
|
|
18
|
+
DropdownMenuContent,
|
|
19
|
+
DropdownMenuGroup,
|
|
20
|
+
DropdownMenuItem,
|
|
21
|
+
DropdownMenuSeparator,
|
|
22
|
+
DropdownMenuTrigger,
|
|
23
|
+
} from '../../ui/dropdown-menu/dropdown-menu'
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* AccountMenu.
|
|
27
|
+
*
|
|
28
|
+
* The trailing control in a rail or a top bar: the account, the way into settings,
|
|
29
|
+
* and the way out. Every desktop application has one and they are all the same menu,
|
|
30
|
+
* which is why it belongs here rather than being redrawn per app.
|
|
31
|
+
*
|
|
32
|
+
* ## The items are the caller's
|
|
33
|
+
*
|
|
34
|
+
* The menu takes a list rather than hard-coding one. An application adds and removes
|
|
35
|
+
* entries — a mobile hand-off that only makes sense on desktop, a feedback link that
|
|
36
|
+
* only exists once there is somewhere to send it — and a component that decided the
|
|
37
|
+
* list could not be used by two products.
|
|
38
|
+
*
|
|
39
|
+
* `disabled` on an item is deliberately visible rather than hidden: a greyed "Help
|
|
40
|
+
* Center" says the destination is coming, while an absent one says it does not exist.
|
|
41
|
+
*/
|
|
42
|
+
export type AccountMenuItem = {
|
|
43
|
+
id: string
|
|
44
|
+
label: string
|
|
45
|
+
icon?: JSX.Element
|
|
46
|
+
/** A chord drawn at the trailing edge, e.g. `⌘,`. */
|
|
47
|
+
shortcut?: string
|
|
48
|
+
disabled?: boolean
|
|
49
|
+
/** Render only on this platform. Omit to always render. */
|
|
50
|
+
platform?: 'desktop' | 'web'
|
|
51
|
+
onSelect?: () => void
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export type AccountMenuProps = {
|
|
55
|
+
class?: string
|
|
56
|
+
/** The entries above the separator. */
|
|
57
|
+
items: readonly AccountMenuItem[]
|
|
58
|
+
/** Which platform this is rendered on, for items that declare one. */
|
|
59
|
+
platform?: 'desktop' | 'web'
|
|
60
|
+
/** Whether a session exists. Decides the sign-in/sign-out row. */
|
|
61
|
+
authenticated: boolean
|
|
62
|
+
/** Disable the session row while a sign-in or sign-out is in flight. */
|
|
63
|
+
busy?: boolean
|
|
64
|
+
/** The name shown on the trigger's accessible label. */
|
|
65
|
+
label?: string
|
|
66
|
+
onSignIn?: () => void
|
|
67
|
+
onSignOut?: () => void
|
|
68
|
+
/** Fires on hover or focus of the trigger — a chance to prefetch. */
|
|
69
|
+
onIntent?: () => void
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
const FALLBACK_ICONS: Record<string, typeof Settings2> = {
|
|
73
|
+
mobile: Smartphone,
|
|
74
|
+
settings: Settings2,
|
|
75
|
+
about: Info,
|
|
76
|
+
help: CircleHelp,
|
|
77
|
+
feedback: Megaphone,
|
|
78
|
+
updates: RefreshCw,
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function AccountMenu(props: AccountMenuProps) {
|
|
82
|
+
const [local, rest] = splitProps(props, [
|
|
83
|
+
'class',
|
|
84
|
+
'items',
|
|
85
|
+
'platform',
|
|
86
|
+
'authenticated',
|
|
87
|
+
'busy',
|
|
88
|
+
'label',
|
|
89
|
+
'onSignIn',
|
|
90
|
+
'onSignOut',
|
|
91
|
+
'onIntent',
|
|
92
|
+
])
|
|
93
|
+
|
|
94
|
+
const visible = () =>
|
|
95
|
+
local.items.filter((item) => !item.platform || item.platform === (local.platform ?? 'desktop'))
|
|
96
|
+
|
|
97
|
+
return (
|
|
98
|
+
<DropdownMenu modal={false}>
|
|
99
|
+
<DropdownMenuTrigger
|
|
100
|
+
as={Button}
|
|
101
|
+
variant="ghost"
|
|
102
|
+
size="icon-md"
|
|
103
|
+
class={cn('text-muted-foreground', local.class)}
|
|
104
|
+
aria-label={local.label ?? 'Account and settings'}
|
|
105
|
+
onFocus={() => local.onIntent?.()}
|
|
106
|
+
onPointerEnter={() => local.onIntent?.()}
|
|
107
|
+
{...rest}
|
|
108
|
+
>
|
|
109
|
+
<UserRound aria-hidden="true" />
|
|
110
|
+
</DropdownMenuTrigger>
|
|
111
|
+
<DropdownMenuContent side="top" align="start" class="min-w-56">
|
|
112
|
+
<DropdownMenuGroup>
|
|
113
|
+
<For each={visible()}>
|
|
114
|
+
{(item) => (
|
|
115
|
+
<DropdownMenuItem
|
|
116
|
+
disabled={item.disabled}
|
|
117
|
+
onSelect={() => item.onSelect?.()}
|
|
118
|
+
shortcut={item.shortcut}
|
|
119
|
+
>
|
|
120
|
+
{item.icon ?? renderFallbackIcon(item.id)}
|
|
121
|
+
<span>{item.label}</span>
|
|
122
|
+
</DropdownMenuItem>
|
|
123
|
+
)}
|
|
124
|
+
</For>
|
|
125
|
+
</DropdownMenuGroup>
|
|
126
|
+
<DropdownMenuSeparator />
|
|
127
|
+
<DropdownMenuGroup>
|
|
128
|
+
<DropdownMenuItem
|
|
129
|
+
disabled={local.busy}
|
|
130
|
+
onSelect={() => (local.authenticated ? local.onSignOut?.() : local.onSignIn?.())}
|
|
131
|
+
>
|
|
132
|
+
<Show when={local.authenticated} fallback={<LogIn aria-hidden="true" />}>
|
|
133
|
+
<LogOut aria-hidden="true" />
|
|
134
|
+
</Show>
|
|
135
|
+
<span>{local.authenticated ? 'Sign out' : 'Sign in'}</span>
|
|
136
|
+
</DropdownMenuItem>
|
|
137
|
+
</DropdownMenuGroup>
|
|
138
|
+
</DropdownMenuContent>
|
|
139
|
+
</DropdownMenu>
|
|
140
|
+
)
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* A known item id gets its conventional glyph, so a caller that only wants the
|
|
145
|
+
* standard menu does not have to import six icons to get it.
|
|
146
|
+
*/
|
|
147
|
+
function renderFallbackIcon(id: string): JSX.Element {
|
|
148
|
+
const Icon = FALLBACK_ICONS[id]
|
|
149
|
+
return Icon ? <Icon aria-hidden="true" /> : null
|
|
150
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AccountMenu, type AccountMenuItem, type AccountMenuProps } from './account-menu'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ListGroup, ListRow, type ListRowProps } from './list-row'
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import type { PolymorphicProps } from '@kobalte/core/polymorphic'
|
|
2
|
+
import { Polymorphic } from '@kobalte/core/polymorphic'
|
|
3
|
+
import type { ComponentProps, JSX, ValidComponent } from 'solid-js'
|
|
4
|
+
import { Show, splitProps } from 'solid-js'
|
|
5
|
+
import { cn } from '#lib/utils'
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* ListRow.
|
|
9
|
+
*
|
|
10
|
+
* One row in a list of like things: a project, a session, a file, a person. It
|
|
11
|
+
* is the highest-frequency component in an application of this shape, and the
|
|
12
|
+
* one where a half-pixel of drift is most visible — twenty rows of a sidebar
|
|
13
|
+
* make any inconsistency in height or padding obvious.
|
|
14
|
+
*
|
|
15
|
+
* The structure is fixed at four slots — `leading`, `children`, `meta`,
|
|
16
|
+
* `trailing` — so rows that show an avatar, an icon, a status dot, a timestamp
|
|
17
|
+
* and an overflow menu all sit at the same height without the caller doing
|
|
18
|
+
* arithmetic.
|
|
19
|
+
*
|
|
20
|
+
* A row is only interactive when it is given an `as` that can be activated
|
|
21
|
+
* (an anchor, a button) or an `onClick`. Without either it renders as a
|
|
22
|
+
* `div` with no hover treatment, because a hover state on something that does
|
|
23
|
+
* nothing is a lie.
|
|
24
|
+
*/
|
|
25
|
+
export type ListRowProps<T extends ValidComponent = 'div'> = PolymorphicProps<
|
|
26
|
+
T,
|
|
27
|
+
{
|
|
28
|
+
class?: string
|
|
29
|
+
/** Marks the row as current. Sets `aria-current` for a link row. */
|
|
30
|
+
selected?: boolean
|
|
31
|
+
/** Draw the row at the compact height. */
|
|
32
|
+
dense?: boolean
|
|
33
|
+
/** Leading slot: an avatar, an icon, a checkbox. */
|
|
34
|
+
leading?: JSX.Element
|
|
35
|
+
/** Trailing slot: a count, a menu trigger, a timestamp. */
|
|
36
|
+
trailing?: JSX.Element
|
|
37
|
+
/** A dimmed second line under the main content. */
|
|
38
|
+
description?: string
|
|
39
|
+
}
|
|
40
|
+
>
|
|
41
|
+
|
|
42
|
+
export function ListRow<T extends ValidComponent = 'div'>(props: ListRowProps<T>) {
|
|
43
|
+
const [local, rest] = splitProps(props as ListRowProps, [
|
|
44
|
+
'class',
|
|
45
|
+
'selected',
|
|
46
|
+
'dense',
|
|
47
|
+
'leading',
|
|
48
|
+
'trailing',
|
|
49
|
+
'description',
|
|
50
|
+
'children',
|
|
51
|
+
])
|
|
52
|
+
|
|
53
|
+
return (
|
|
54
|
+
<Polymorphic
|
|
55
|
+
as="div"
|
|
56
|
+
aria-current={local.selected ? 'true' : undefined}
|
|
57
|
+
data-selected={local.selected ? '' : undefined}
|
|
58
|
+
class={cn(
|
|
59
|
+
'group/row flex min-w-0 items-center gap-2.5 rounded-md px-2 text-sm',
|
|
60
|
+
'transition-colors ease-out outline-none',
|
|
61
|
+
'focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-primary-subtle',
|
|
62
|
+
{ 'h-row-sm': local.dense, 'h-row-md': !local.dense },
|
|
63
|
+
{
|
|
64
|
+
'bg-primary-subtle text-foreground': local.selected,
|
|
65
|
+
'hover:bg-surface-hover': !local.selected,
|
|
66
|
+
},
|
|
67
|
+
local.class
|
|
68
|
+
)}
|
|
69
|
+
{...(rest as ComponentProps<'div'>)}
|
|
70
|
+
>
|
|
71
|
+
<Show when={local.leading}>
|
|
72
|
+
<span class="flex size-4 shrink-0 items-center justify-center [&_svg]:size-4">
|
|
73
|
+
{local.leading}
|
|
74
|
+
</span>
|
|
75
|
+
</Show>
|
|
76
|
+
<span class="flex min-w-0 flex-1 flex-col">
|
|
77
|
+
<span class="truncate">{local.children}</span>
|
|
78
|
+
<Show when={local.description}>
|
|
79
|
+
<span class="text-muted-foreground truncate text-xs">{local.description}</span>
|
|
80
|
+
</Show>
|
|
81
|
+
</span>
|
|
82
|
+
<Show when={local.trailing}>
|
|
83
|
+
<span class="ms-auto flex shrink-0 items-center gap-1 text-muted-foreground">
|
|
84
|
+
{local.trailing}
|
|
85
|
+
</span>
|
|
86
|
+
</Show>
|
|
87
|
+
</Polymorphic>
|
|
88
|
+
)
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* A group of rows with an optional heading and a scrolling body. The heading is
|
|
93
|
+
* a plain label rather than a control: grouping is for reading, and a
|
|
94
|
+
* disclosure on a list of five rows costs more attention than it saves.
|
|
95
|
+
*/
|
|
96
|
+
export function ListGroup(props: ComponentProps<'div'> & { label?: string; action?: JSX.Element }) {
|
|
97
|
+
const [local, rest] = splitProps(props, ['class', 'label', 'action', 'children'])
|
|
98
|
+
|
|
99
|
+
return (
|
|
100
|
+
<div data-slot="list-group" class={cn('flex flex-col gap-0.5', local.class)} {...rest}>
|
|
101
|
+
<Show when={local.label}>
|
|
102
|
+
<div class="group/list-header flex items-center gap-1 px-2 py-1">
|
|
103
|
+
<span class="min-w-0 flex-1 truncate text-2xs font-medium tracking-wide text-muted-foreground uppercase">
|
|
104
|
+
{local.label}
|
|
105
|
+
</span>
|
|
106
|
+
<Show when={local.action}>
|
|
107
|
+
<span class="shrink-0 opacity-0 transition-opacity ease-out group-hover/list-header:opacity-100 focus-within:opacity-100">
|
|
108
|
+
{local.action}
|
|
109
|
+
</span>
|
|
110
|
+
</Show>
|
|
111
|
+
</div>
|
|
112
|
+
</Show>
|
|
113
|
+
<div class="flex flex-col gap-0.5">{local.children}</div>
|
|
114
|
+
</div>
|
|
115
|
+
)
|
|
116
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SettingsField, SettingsPage, SettingsRow, SettingsSection } from './settings'
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import type { ComponentProps, JSX } from 'solid-js'
|
|
2
|
+
import { Show, splitProps } from 'solid-js'
|
|
3
|
+
import { cn } from '#lib/utils'
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* SettingsSection and SettingsRow.
|
|
7
|
+
*
|
|
8
|
+
* A settings page is the most repetitive surface in any application, and the
|
|
9
|
+
* one where drift is most visible: label sizes, control widths and description
|
|
10
|
+
* placement all wander unless something fixes them.
|
|
11
|
+
*
|
|
12
|
+
* The row is a two-column layout at a fixed label width, so controls line up
|
|
13
|
+
* down the page regardless of how long the labels are. That alignment is the
|
|
14
|
+
* difference between a settings page that reads as designed and one that reads
|
|
15
|
+
* as a form.
|
|
16
|
+
*
|
|
17
|
+
* `SettingsRow` puts the control on the trailing side and the label leading;
|
|
18
|
+
* `SettingsField` stacks them for a control too wide for a row (a textarea, a
|
|
19
|
+
* list). Both share the same label and description treatment.
|
|
20
|
+
*/
|
|
21
|
+
export function SettingsSection(
|
|
22
|
+
props: ComponentProps<'section'> & {
|
|
23
|
+
title: string
|
|
24
|
+
description?: string
|
|
25
|
+
/** A control for the section as a whole, e.g. a master toggle. */
|
|
26
|
+
action?: JSX.Element
|
|
27
|
+
}
|
|
28
|
+
) {
|
|
29
|
+
const [local, rest] = splitProps(props, ['class', 'title', 'description', 'action', 'children'])
|
|
30
|
+
|
|
31
|
+
return (
|
|
32
|
+
<section
|
|
33
|
+
data-slot="settings-section"
|
|
34
|
+
class={cn('flex flex-col gap-4 px-5 py-5', local.class)}
|
|
35
|
+
{...rest}
|
|
36
|
+
>
|
|
37
|
+
<div class="flex items-start justify-between gap-4">
|
|
38
|
+
<div class="flex min-w-0 flex-col gap-0.5">
|
|
39
|
+
<h2 class="text-base font-semibold tracking-tight">{local.title}</h2>
|
|
40
|
+
<Show when={local.description}>
|
|
41
|
+
<p class="max-w-prose text-sm text-muted-foreground text-pretty">{local.description}</p>
|
|
42
|
+
</Show>
|
|
43
|
+
</div>
|
|
44
|
+
<Show when={local.action}>
|
|
45
|
+
<div class="flex shrink-0 items-center gap-2">{local.action}</div>
|
|
46
|
+
</Show>
|
|
47
|
+
</div>
|
|
48
|
+
<div class="divide-y divide-border rounded-xl border border-border">{local.children}</div>
|
|
49
|
+
</section>
|
|
50
|
+
)
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* One setting: a label and description on the leading side, a control on the
|
|
55
|
+
* trailing side.
|
|
56
|
+
*
|
|
57
|
+
* `label` is wired to the control through `aria-labelledby` when the control is
|
|
58
|
+
* not already labelled, so a caller can pass a bare `Switch` and still get an
|
|
59
|
+
* accessible name. The row does not invent an id per render — it derives one
|
|
60
|
+
* from the label, which is stable across renders and readable in a snapshot.
|
|
61
|
+
*/
|
|
62
|
+
export function SettingsRow(
|
|
63
|
+
props: ComponentProps<'div'> & {
|
|
64
|
+
label: string
|
|
65
|
+
description?: string
|
|
66
|
+
/** Render a vertical stack when the control needs the full width. */
|
|
67
|
+
orientation?: 'horizontal' | 'vertical'
|
|
68
|
+
/** Hide the divider this row would otherwise contribute. */
|
|
69
|
+
bare?: boolean
|
|
70
|
+
}
|
|
71
|
+
) {
|
|
72
|
+
const [local, rest] = splitProps(props, [
|
|
73
|
+
'class',
|
|
74
|
+
'label',
|
|
75
|
+
'description',
|
|
76
|
+
'orientation',
|
|
77
|
+
'bare',
|
|
78
|
+
'children',
|
|
79
|
+
])
|
|
80
|
+
|
|
81
|
+
return (
|
|
82
|
+
<div
|
|
83
|
+
data-slot="settings-row"
|
|
84
|
+
class={cn(
|
|
85
|
+
'flex gap-4 p-4',
|
|
86
|
+
local.orientation === 'vertical'
|
|
87
|
+
? 'flex-col'
|
|
88
|
+
: 'flex-col sm:flex-row sm:items-center sm:justify-between',
|
|
89
|
+
local.class
|
|
90
|
+
)}
|
|
91
|
+
{...rest}
|
|
92
|
+
>
|
|
93
|
+
<div class="flex min-w-0 flex-col gap-0.5">
|
|
94
|
+
<div data-slot="settings-row-label" class="text-sm font-medium">
|
|
95
|
+
{local.label}
|
|
96
|
+
</div>
|
|
97
|
+
<Show when={local.description}>
|
|
98
|
+
<p class="max-w-prose text-sm text-muted-foreground text-pretty">{local.description}</p>
|
|
99
|
+
</Show>
|
|
100
|
+
</div>
|
|
101
|
+
<div
|
|
102
|
+
data-slot="settings-row-control"
|
|
103
|
+
class={cn('shrink-0', local.orientation === 'vertical' && 'w-full')}
|
|
104
|
+
>
|
|
105
|
+
{local.children}
|
|
106
|
+
</div>
|
|
107
|
+
</div>
|
|
108
|
+
)
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/** A stacked label-and-control pair, for a control too wide for a row. */
|
|
112
|
+
export function SettingsField(
|
|
113
|
+
props: ComponentProps<'div'> & { label: string; description?: string; htmlFor?: string }
|
|
114
|
+
) {
|
|
115
|
+
const [local, rest] = splitProps(props, ['class', 'label', 'description', 'htmlFor', 'children'])
|
|
116
|
+
|
|
117
|
+
return (
|
|
118
|
+
<div data-slot="settings-field" class={cn('flex flex-col gap-2 p-4', local.class)} {...rest}>
|
|
119
|
+
<div class="flex flex-col gap-0.5">
|
|
120
|
+
<label for={local.htmlFor} class="text-sm font-medium">
|
|
121
|
+
{local.label}
|
|
122
|
+
</label>
|
|
123
|
+
<Show when={local.description}>
|
|
124
|
+
<p class="max-w-prose text-sm text-muted-foreground text-pretty">{local.description}</p>
|
|
125
|
+
</Show>
|
|
126
|
+
</div>
|
|
127
|
+
<div>{local.children}</div>
|
|
128
|
+
</div>
|
|
129
|
+
)
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/** A settings page's scrolling body, with the header sticky at the top. */
|
|
133
|
+
export function SettingsPage(props: ComponentProps<'div'>) {
|
|
134
|
+
const [local, rest] = splitProps(props, ['class'])
|
|
135
|
+
return (
|
|
136
|
+
<div
|
|
137
|
+
data-slot="settings-page"
|
|
138
|
+
class={cn('flex min-h-0 flex-1 flex-col overflow-y-auto', local.class)}
|
|
139
|
+
{...rest}
|
|
140
|
+
/>
|
|
141
|
+
)
|
|
142
|
+
}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { ArrowDownRight, ArrowUpRight } from 'lucide-solid'
|
|
2
|
+
import type { ComponentProps, JSX } from 'solid-js'
|
|
3
|
+
import { Show, splitProps } from 'solid-js'
|
|
4
|
+
import { Dynamic } from 'solid-js/web'
|
|
5
|
+
import { cn } from '#lib/utils'
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Stat.
|
|
9
|
+
*
|
|
10
|
+
* A single measured number with its label and, optionally, its change. The
|
|
11
|
+
* whole component is a decision about honesty: a value shown without its
|
|
12
|
+
* comparison is not information, so `delta` carries the direction, the amount
|
|
13
|
+
* and — through `deltaTone` — whether the direction is *good*. A rising number
|
|
14
|
+
* is not always a rising outcome, and only the caller knows which way is which.
|
|
15
|
+
*
|
|
16
|
+
* `tabular-nums` on the value is what lets two stats in a row be compared
|
|
17
|
+
* without the digits shifting under the reader.
|
|
18
|
+
*/
|
|
19
|
+
export type StatProps = ComponentProps<'div'> & {
|
|
20
|
+
label: string
|
|
21
|
+
value: JSX.Element
|
|
22
|
+
/** A unit or qualifier after the value, e.g. "ms", "of 10". */
|
|
23
|
+
unit?: string
|
|
24
|
+
/** The change, e.g. "+12% from last week". */
|
|
25
|
+
delta?: string
|
|
26
|
+
/** Whether the change is an improvement. Decides the arrow and the colour. */
|
|
27
|
+
deltaTone?: 'up' | 'down' | 'neutral'
|
|
28
|
+
/** Draws the leading accent rule used for a row of headline numbers. */
|
|
29
|
+
accent?: boolean
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export function Stat(props: StatProps) {
|
|
33
|
+
const [local, rest] = splitProps(props, [
|
|
34
|
+
'class',
|
|
35
|
+
'label',
|
|
36
|
+
'value',
|
|
37
|
+
'unit',
|
|
38
|
+
'delta',
|
|
39
|
+
'deltaTone',
|
|
40
|
+
'accent',
|
|
41
|
+
'children',
|
|
42
|
+
])
|
|
43
|
+
|
|
44
|
+
return (
|
|
45
|
+
<div
|
|
46
|
+
data-slot="stat"
|
|
47
|
+
class={cn(
|
|
48
|
+
'flex min-w-0 flex-col gap-1 rounded-lg border border-border bg-card p-3',
|
|
49
|
+
{ 'border-t-2 border-t-primary': local.accent },
|
|
50
|
+
local.class
|
|
51
|
+
)}
|
|
52
|
+
{...rest}
|
|
53
|
+
>
|
|
54
|
+
<div class="text-muted-foreground truncate text-xs font-medium">{local.label}</div>
|
|
55
|
+
<div class="flex items-baseline gap-1">
|
|
56
|
+
<span class="text-xl font-semibold tabular-nums tracking-tight">{local.value}</span>
|
|
57
|
+
<Show when={local.unit}>
|
|
58
|
+
<span class="text-muted-foreground text-xs">{local.unit}</span>
|
|
59
|
+
</Show>
|
|
60
|
+
</div>
|
|
61
|
+
<Show when={local.delta}>
|
|
62
|
+
<div
|
|
63
|
+
class={cn('flex items-center gap-1 text-xs', {
|
|
64
|
+
'text-success': local.deltaTone === 'up',
|
|
65
|
+
'text-destructive': local.deltaTone === 'down',
|
|
66
|
+
'text-muted-foreground': local.deltaTone === undefined || local.deltaTone === 'neutral',
|
|
67
|
+
})}
|
|
68
|
+
>
|
|
69
|
+
<Show when={local.deltaTone === 'up' || local.deltaTone === 'down'}>
|
|
70
|
+
<Dynamic
|
|
71
|
+
component={local.deltaTone === 'down' ? ArrowDownRight : ArrowUpRight}
|
|
72
|
+
aria-hidden="true"
|
|
73
|
+
class="size-3"
|
|
74
|
+
/>
|
|
75
|
+
</Show>
|
|
76
|
+
<span class="tabular-nums">{local.delta}</span>
|
|
77
|
+
</div>
|
|
78
|
+
</Show>
|
|
79
|
+
{local.children}
|
|
80
|
+
</div>
|
|
81
|
+
)
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/** A row of stats that shares one gap and wraps as the window narrows. */
|
|
85
|
+
export function StatGroup(props: ComponentProps<'div'>) {
|
|
86
|
+
const [local, rest] = splitProps(props, ['class'])
|
|
87
|
+
return (
|
|
88
|
+
<div
|
|
89
|
+
data-slot="stat-group"
|
|
90
|
+
class={cn('grid gap-3 sm:grid-cols-2 lg:grid-cols-4', local.class)}
|
|
91
|
+
{...rest}
|
|
92
|
+
/>
|
|
93
|
+
)
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* PropertyList.
|
|
98
|
+
*
|
|
99
|
+
* A definition list for read-only metadata: the details of a file, a session, a
|
|
100
|
+
* build. This is a `<dl>`, not a table and not a grid of divs, because the
|
|
101
|
+
* relationship being expressed is term-and-definition and the platform has an
|
|
102
|
+
* element for exactly that.
|
|
103
|
+
*
|
|
104
|
+
* Values are selectable by default. Metadata is the thing users copy most and
|
|
105
|
+
* get the least often: a commit hash behind a drag-to-select gesture is a small
|
|
106
|
+
* daily failure.
|
|
107
|
+
*/
|
|
108
|
+
export function PropertyList(props: ComponentProps<'dl'>) {
|
|
109
|
+
const [local, rest] = splitProps(props, ['class'])
|
|
110
|
+
return (
|
|
111
|
+
<dl
|
|
112
|
+
data-slot="property-list"
|
|
113
|
+
class={cn('grid grid-cols-[auto_1fr] items-baseline gap-x-4 gap-y-2 text-sm', local.class)}
|
|
114
|
+
{...rest}
|
|
115
|
+
/>
|
|
116
|
+
)
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export function PropertyTerm(props: ComponentProps<'dt'>) {
|
|
120
|
+
const [local, rest] = splitProps(props, ['class'])
|
|
121
|
+
return (
|
|
122
|
+
<dt
|
|
123
|
+
data-slot="property-term"
|
|
124
|
+
class={cn('text-muted-foreground whitespace-nowrap', local.class)}
|
|
125
|
+
{...rest}
|
|
126
|
+
/>
|
|
127
|
+
)
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export function PropertyValue(props: ComponentProps<'dd'>) {
|
|
131
|
+
const [local, rest] = splitProps(props, ['class'])
|
|
132
|
+
return (
|
|
133
|
+
<dd
|
|
134
|
+
data-slot="property-value"
|
|
135
|
+
class={cn('min-w-0 break-words select-text', local.class)}
|
|
136
|
+
{...rest}
|
|
137
|
+
/>
|
|
138
|
+
)
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/** A single term/value pair, for a list built one row at a time. */
|
|
142
|
+
export function PropertyRow(props: ComponentProps<'div'> & { term: string }) {
|
|
143
|
+
const [local, rest] = splitProps(props, ['class', 'term', 'children'])
|
|
144
|
+
|
|
145
|
+
return (
|
|
146
|
+
<div
|
|
147
|
+
data-slot="property-row"
|
|
148
|
+
class={cn('flex items-baseline justify-between gap-4 text-sm', local.class)}
|
|
149
|
+
{...rest}
|
|
150
|
+
>
|
|
151
|
+
<span class="text-muted-foreground shrink-0">{local.term}</span>
|
|
152
|
+
<span class="min-w-0 truncate text-end select-text">{local.children}</span>
|
|
153
|
+
</div>
|
|
154
|
+
)
|
|
155
|
+
}
|