@bridgebrew/ui 0.0.0-stage → 0.1.10-next.79
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/LICENSE +21 -0
- package/README.md +39 -2
- package/SOURCE.md +182 -0
- package/dist/build.js +871 -0
- package/dist/theme-css.js +896 -0
- package/dist/themes.js +69 -0
- package/dist/types/build/stylesheet.d.ts +31 -0
- package/dist/types/components/composite/command/command.d.ts +94 -0
- package/dist/types/components/composite/command/index.d.ts +2 -0
- package/dist/types/components/composite/draft-bar/draft-bar.d.ts +12 -0
- package/dist/types/components/composite/draft-bar/index.d.ts +2 -0
- package/dist/types/components/composite/image-field/image-field.d.ts +33 -0
- package/dist/types/components/composite/image-field/index.d.ts +2 -0
- package/dist/types/components/composite/list/index.d.ts +3 -0
- package/dist/types/components/composite/list/list-swipe.d.ts +28 -0
- package/dist/types/components/composite/list/list.d.ts +95 -0
- package/dist/types/components/composite/picker/index.d.ts +2 -0
- package/dist/types/components/composite/picker/picker.d.ts +44 -0
- package/dist/types/components/composite/prompt-field/index.d.ts +2 -0
- package/dist/types/components/composite/prompt-field/prompt-field.d.ts +18 -0
- package/dist/types/components/composite/properties/index.d.ts +2 -0
- package/dist/types/components/composite/properties/properties.d.ts +24 -0
- package/dist/types/components/composite/snooze-menu/index.d.ts +4 -0
- package/dist/types/components/composite/snooze-menu/presets.d.ts +36 -0
- package/dist/types/components/composite/snooze-menu/snooze-menu.d.ts +27 -0
- package/dist/types/components/composite/tag-input/index.d.ts +2 -0
- package/dist/types/components/composite/tag-input/tag-input.d.ts +22 -0
- package/dist/types/components/composite/wizard/index.d.ts +2 -0
- package/dist/types/components/composite/wizard/wizard.d.ts +53 -0
- package/dist/types/components/core/avatar/avatar.d.ts +16 -0
- package/dist/types/components/core/avatar/index.d.ts +2 -0
- package/dist/types/components/core/badge/badge.d.ts +8 -0
- package/dist/types/components/core/badge/index.d.ts +2 -0
- package/dist/types/components/core/breadcrumb/breadcrumb.d.ts +21 -0
- package/dist/types/components/core/breadcrumb/index.d.ts +2 -0
- package/dist/types/components/core/bullets/bullets.d.ts +15 -0
- package/dist/types/components/core/bullets/index.d.ts +2 -0
- package/dist/types/components/core/button/button.d.ts +14 -0
- package/dist/types/components/core/button/index.d.ts +2 -0
- package/dist/types/components/core/card/card.d.ts +16 -0
- package/dist/types/components/core/card/index.d.ts +2 -0
- package/dist/types/components/core/checkbox/checkbox.d.ts +15 -0
- package/dist/types/components/core/checkbox/index.d.ts +2 -0
- package/dist/types/components/core/cluster/cluster.d.ts +5 -0
- package/dist/types/components/core/cluster/index.d.ts +1 -0
- package/dist/types/components/core/code-block/code-block.d.ts +18 -0
- package/dist/types/components/core/code-block/index.d.ts +2 -0
- package/dist/types/components/core/collapsible/collapsible.d.ts +8 -0
- package/dist/types/components/core/collapsible/index.d.ts +1 -0
- package/dist/types/components/core/colour-picker/colour-picker.d.ts +25 -0
- package/dist/types/components/core/colour-picker/index.d.ts +4 -0
- package/dist/types/components/core/combobox/combobox.d.ts +63 -0
- package/dist/types/components/core/combobox/index.d.ts +2 -0
- package/dist/types/components/core/detail/detail.d.ts +12 -0
- package/dist/types/components/core/detail/index.d.ts +1 -0
- package/dist/types/components/core/dialog/dialog.d.ts +43 -0
- package/dist/types/components/core/dialog/drag.d.ts +4 -0
- package/dist/types/components/core/dialog/index.d.ts +2 -0
- package/dist/types/components/core/drop-zone/drop-zone.d.ts +23 -0
- package/dist/types/components/core/drop-zone/index.d.ts +2 -0
- package/dist/types/components/core/dropdown-menu/dropdown-menu.d.ts +78 -0
- package/dist/types/components/core/dropdown-menu/index.d.ts +2 -0
- package/dist/types/components/core/editable-field/editable-field.d.ts +42 -0
- package/dist/types/components/core/editable-field/index.d.ts +2 -0
- package/dist/types/components/core/empty-state/empty-state.d.ts +11 -0
- package/dist/types/components/core/empty-state/index.d.ts +2 -0
- package/dist/types/components/core/field/field.d.ts +31 -0
- package/dist/types/components/core/field/index.d.ts +2 -0
- package/dist/types/components/core/icon/icon-sets.d.ts +38 -0
- package/dist/types/components/core/icon/icon.d.ts +14 -0
- package/dist/types/components/core/icon/index.d.ts +2 -0
- package/dist/types/components/core/input/index.d.ts +4 -0
- package/dist/types/components/core/input/input.d.ts +22 -0
- package/dist/types/components/core/input/textarea.d.ts +8 -0
- package/dist/types/components/core/kbd/index.d.ts +2 -0
- package/dist/types/components/core/kbd/kbd.d.ts +7 -0
- package/dist/types/components/core/label/index.d.ts +2 -0
- package/dist/types/components/core/label/label.d.ts +13 -0
- package/dist/types/components/core/main-content/index.d.ts +2 -0
- package/dist/types/components/core/main-content/main-content.d.ts +18 -0
- package/dist/types/components/core/pane/index.d.ts +1 -0
- package/dist/types/components/core/pane/pane.d.ts +12 -0
- package/dist/types/components/core/pick-menu/index.d.ts +4 -0
- package/dist/types/components/core/pick-menu/pick-menu.d.ts +57 -0
- package/dist/types/components/core/pick-menu/tag-menu.d.ts +19 -0
- package/dist/types/components/core/popover/index.d.ts +2 -0
- package/dist/types/components/core/popover/popover.d.ts +22 -0
- package/dist/types/components/core/progress/index.d.ts +2 -0
- package/dist/types/components/core/progress/progress.d.ts +13 -0
- package/dist/types/components/core/resizable/index.d.ts +2 -0
- package/dist/types/components/core/resizable/resizable.d.ts +15 -0
- package/dist/types/components/core/resizable/use-remembered-layout.d.ts +31 -0
- package/dist/types/components/core/screen-link/index.d.ts +2 -0
- package/dist/types/components/core/screen-link/screen-link.d.ts +52 -0
- package/dist/types/components/core/scroll-area/index.d.ts +2 -0
- package/dist/types/components/core/scroll-area/scroll-area.d.ts +13 -0
- package/dist/types/components/core/scroll-area/steps.d.ts +5 -0
- package/dist/types/components/core/section/index.d.ts +2 -0
- package/dist/types/components/core/section/section.d.ts +16 -0
- package/dist/types/components/core/segment-group/index.d.ts +2 -0
- package/dist/types/components/core/segment-group/segment-group.d.ts +24 -0
- package/dist/types/components/core/select/index.d.ts +2 -0
- package/dist/types/components/core/select/select.d.ts +39 -0
- package/dist/types/components/core/skeleton/index.d.ts +2 -0
- package/dist/types/components/core/skeleton/skeleton.d.ts +13 -0
- package/dist/types/components/core/slider/index.d.ts +2 -0
- package/dist/types/components/core/slider/slider.d.ts +9 -0
- package/dist/types/components/core/sortable/index.d.ts +2 -0
- package/dist/types/components/core/sortable/sortable.d.ts +53 -0
- package/dist/types/components/core/split-view/index.d.ts +2 -0
- package/dist/types/components/core/split-view/split-view.d.ts +28 -0
- package/dist/types/components/core/status-icon/index.d.ts +2 -0
- package/dist/types/components/core/status-icon/status-icon.d.ts +13 -0
- package/dist/types/components/core/table/collapsible-rows.d.ts +7 -0
- package/dist/types/components/core/table/expand-toggle.d.ts +10 -0
- package/dist/types/components/core/table/group-header.d.ts +14 -0
- package/dist/types/components/core/table/index.d.ts +8 -0
- package/dist/types/components/core/table/table.d.ts +31 -0
- package/dist/types/components/core/tabs/index.d.ts +2 -0
- package/dist/types/components/core/tabs/tabs.d.ts +20 -0
- package/dist/types/components/core/tag-pill/index.d.ts +2 -0
- package/dist/types/components/core/tag-pill/tag-pill.d.ts +25 -0
- package/dist/types/components/core/thumbnail/index.d.ts +2 -0
- package/dist/types/components/core/thumbnail/thumbnail.d.ts +23 -0
- package/dist/types/components/core/toast/index.d.ts +2 -0
- package/dist/types/components/core/toast/toast.d.ts +88 -0
- package/dist/types/components/core/toggle/index.d.ts +2 -0
- package/dist/types/components/core/toggle/toggle.d.ts +9 -0
- package/dist/types/components/core/toggle-group/index.d.ts +2 -0
- package/dist/types/components/core/toggle-group/toggle-group.d.ts +21 -0
- package/dist/types/components/core/tooltip/index.d.ts +2 -0
- package/dist/types/components/core/tooltip/tooltip.d.ts +33 -0
- package/dist/types/components/layout/multi-pane/index.d.ts +4 -0
- package/dist/types/components/layout/multi-pane/list-detail.d.ts +17 -0
- package/dist/types/components/layout/multi-pane/multi-pane.d.ts +34 -0
- package/dist/types/components/layout/single-pane/index.d.ts +2 -0
- package/dist/types/components/layout/single-pane/single-pane.d.ts +11 -0
- package/dist/types/components/shell/app-shell/app-shell.d.ts +12 -0
- package/dist/types/components/shell/app-shell/index.d.ts +2 -0
- package/dist/types/components/shell/sidebar/index.d.ts +2 -0
- package/dist/types/components/shell/sidebar/sidebar-group.d.ts +45 -0
- package/dist/types/components/shell/sidebar/sidebar-item.d.ts +19 -0
- package/dist/types/components/shell/sidebar/sidebar-resize-handle.d.ts +17 -0
- package/dist/types/components/shell/sidebar/sidebar-tree.d.ts +42 -0
- package/dist/types/components/shell/sidebar/sidebar.d.ts +27 -0
- package/dist/types/components/template/address-book-template/address-book-template.d.ts +15 -0
- package/dist/types/components/template/address-book-template/index.d.ts +2 -0
- package/dist/types/components/template/mail-template/index.d.ts +2 -0
- package/dist/types/components/template/mail-template/mail-template.d.ts +11 -0
- package/dist/types/components/template/use-narrow.d.ts +3 -0
- package/dist/types/index.d.ts +149 -0
- package/dist/types/kit/check-rendering.d.ts +3 -0
- package/dist/types/kit/kit.d.ts +76 -0
- package/dist/types/lib/clipboard.d.ts +5 -0
- package/dist/types/lib/dates.d.ts +9 -0
- package/dist/types/lib/json.d.ts +26 -0
- package/dist/types/lib/keys.d.ts +15 -0
- package/dist/types/lib/utils.d.ts +2 -0
- package/dist/types/lib/view-scope.d.ts +22 -0
- package/dist/types/profile/profile.d.ts +34 -0
- package/dist/types/theme/appearance.d.ts +31 -0
- package/dist/types/theme/boot.d.ts +3 -0
- package/dist/types/theme/client-appearance-react.d.ts +3 -0
- package/dist/types/theme/client-appearance.d.ts +69 -0
- package/dist/types/theme/generate-tokens.d.ts +45 -0
- package/dist/types/theme/pack-themes-react.d.ts +24 -0
- package/dist/types/theme/palette.d.ts +111 -0
- package/dist/types/theme/semantic-mapping.d.ts +28 -0
- package/dist/types/theme/set-theme.d.ts +30 -0
- package/dist/types/theme/theme-colours.d.ts +14 -0
- package/dist/types/theme/theme-css.d.ts +3 -0
- package/dist/types/theme/themes.d.ts +63 -0
- package/dist/types/theme/wallpaper-sheet.d.ts +16 -0
- package/dist/types/theme/wallpaper-theme-react.d.ts +7 -0
- package/dist/types/theme/wallpaper-theme.d.ts +37 -0
- package/package.json +87 -3
- package/src/build/stylesheet.ts +128 -0
- package/src/components/composite/command/command.meta.yaml +74 -0
- package/src/components/composite/command/command.tsx +939 -0
- package/src/components/composite/command/index.ts +17 -0
- package/src/components/composite/draft-bar/draft-bar.meta.yaml +19 -0
- package/src/components/composite/draft-bar/draft-bar.tsx +57 -0
- package/src/components/composite/draft-bar/index.ts +2 -0
- package/src/components/composite/image-field/image-field.meta.yaml +69 -0
- package/src/components/composite/image-field/image-field.tsx +267 -0
- package/src/components/composite/image-field/index.ts +2 -0
- package/src/components/composite/list/index.ts +18 -0
- package/src/components/composite/list/list-swipe.tsx +163 -0
- package/src/components/composite/list/list.meta.yaml +238 -0
- package/src/components/composite/list/list.tsx +868 -0
- package/src/components/composite/picker/index.ts +2 -0
- package/src/components/composite/picker/picker.meta.yaml +103 -0
- package/src/components/composite/picker/picker.tsx +276 -0
- package/src/components/composite/prompt-field/index.ts +2 -0
- package/src/components/composite/prompt-field/prompt-field.meta.yaml +60 -0
- package/src/components/composite/prompt-field/prompt-field.tsx +81 -0
- package/src/components/composite/properties/index.ts +9 -0
- package/src/components/composite/properties/properties.meta.yaml +56 -0
- package/src/components/composite/properties/properties.tsx +132 -0
- package/src/components/composite/snooze-menu/index.ts +11 -0
- package/src/components/composite/snooze-menu/presets.ts +169 -0
- package/src/components/composite/snooze-menu/snooze-menu.meta.yaml +58 -0
- package/src/components/composite/snooze-menu/snooze-menu.tsx +146 -0
- package/src/components/composite/tag-input/index.ts +2 -0
- package/src/components/composite/tag-input/tag-input.meta.yaml +51 -0
- package/src/components/composite/tag-input/tag-input.tsx +404 -0
- package/src/components/composite/wizard/index.ts +2 -0
- package/src/components/composite/wizard/wizard.meta.yaml +73 -0
- package/src/components/composite/wizard/wizard.tsx +256 -0
- package/src/components/core/avatar/avatar.meta.yaml +71 -0
- package/src/components/core/avatar/avatar.tsx +92 -0
- package/src/components/core/avatar/index.ts +2 -0
- package/src/components/core/badge/badge.meta.yaml +34 -0
- package/src/components/core/badge/badge.tsx +23 -0
- package/src/components/core/badge/index.ts +2 -0
- package/src/components/core/breadcrumb/breadcrumb.meta.yaml +45 -0
- package/src/components/core/breadcrumb/breadcrumb.tsx +110 -0
- package/src/components/core/breadcrumb/index.ts +2 -0
- package/src/components/core/bullets/bullets.meta.yaml +37 -0
- package/src/components/core/bullets/bullets.tsx +60 -0
- package/src/components/core/bullets/index.ts +2 -0
- package/src/components/core/button/button.meta.yaml +91 -0
- package/src/components/core/button/button.tsx +93 -0
- package/src/components/core/button/index.ts +2 -0
- package/src/components/core/card/card.meta.yaml +94 -0
- package/src/components/core/card/card.tsx +54 -0
- package/src/components/core/card/index.ts +2 -0
- package/src/components/core/checkbox/checkbox.meta.yaml +59 -0
- package/src/components/core/checkbox/checkbox.tsx +106 -0
- package/src/components/core/checkbox/index.ts +2 -0
- package/src/components/core/cluster/cluster.meta.yaml +4 -0
- package/src/components/core/cluster/cluster.tsx +17 -0
- package/src/components/core/cluster/index.ts +1 -0
- package/src/components/core/code-block/code-block.meta.yaml +30 -0
- package/src/components/core/code-block/code-block.tsx +93 -0
- package/src/components/core/code-block/index.ts +2 -0
- package/src/components/core/collapsible/collapsible.meta.yaml +34 -0
- package/src/components/core/collapsible/collapsible.tsx +54 -0
- package/src/components/core/collapsible/index.ts +1 -0
- package/src/components/core/colour-picker/colour-picker.meta.yaml +52 -0
- package/src/components/core/colour-picker/colour-picker.tsx +314 -0
- package/src/components/core/colour-picker/index.ts +4 -0
- package/src/components/core/combobox/combobox.meta.yaml +75 -0
- package/src/components/core/combobox/combobox.tsx +288 -0
- package/src/components/core/combobox/index.ts +2 -0
- package/src/components/core/detail/detail.meta.yaml +13 -0
- package/src/components/core/detail/detail.tsx +73 -0
- package/src/components/core/detail/index.ts +1 -0
- package/src/components/core/dialog/dialog.meta.yaml +95 -0
- package/src/components/core/dialog/dialog.tsx +254 -0
- package/src/components/core/dialog/drag.ts +40 -0
- package/src/components/core/dialog/index.ts +25 -0
- package/src/components/core/drop-zone/drop-zone.meta.yaml +55 -0
- package/src/components/core/drop-zone/drop-zone.tsx +146 -0
- package/src/components/core/drop-zone/index.ts +2 -0
- package/src/components/core/dropdown-menu/dropdown-menu.meta.yaml +118 -0
- package/src/components/core/dropdown-menu/dropdown-menu.tsx +407 -0
- package/src/components/core/dropdown-menu/index.ts +32 -0
- package/src/components/core/editable-field/editable-field.meta.yaml +120 -0
- package/src/components/core/editable-field/editable-field.tsx +346 -0
- package/src/components/core/editable-field/index.ts +2 -0
- package/src/components/core/empty-state/empty-state.meta.yaml +21 -0
- package/src/components/core/empty-state/empty-state.tsx +42 -0
- package/src/components/core/empty-state/index.ts +2 -0
- package/src/components/core/field/field.meta.yaml +37 -0
- package/src/components/core/field/field.tsx +100 -0
- package/src/components/core/field/index.ts +9 -0
- package/src/components/core/icon/curated-names.json +107 -0
- package/src/components/core/icon/icon-sets.ts +109 -0
- package/src/components/core/icon/icon.meta.yaml +30 -0
- package/src/components/core/icon/icon.tsx +93 -0
- package/src/components/core/icon/index.ts +2 -0
- package/src/components/core/input/index.ts +4 -0
- package/src/components/core/input/input.meta.yaml +98 -0
- package/src/components/core/input/input.tsx +133 -0
- package/src/components/core/input/textarea.meta.yaml +79 -0
- package/src/components/core/input/textarea.tsx +63 -0
- package/src/components/core/kbd/index.ts +2 -0
- package/src/components/core/kbd/kbd.meta.yaml +12 -0
- package/src/components/core/kbd/kbd.tsx +29 -0
- package/src/components/core/label/index.ts +2 -0
- package/src/components/core/label/label.meta.yaml +55 -0
- package/src/components/core/label/label.tsx +72 -0
- package/src/components/core/main-content/index.ts +2 -0
- package/src/components/core/main-content/main-content.meta.yaml +23 -0
- package/src/components/core/main-content/main-content.tsx +49 -0
- package/src/components/core/pane/index.ts +1 -0
- package/src/components/core/pane/pane.meta.yaml +13 -0
- package/src/components/core/pane/pane.tsx +64 -0
- package/src/components/core/pick-menu/index.ts +4 -0
- package/src/components/core/pick-menu/pick-menu.meta.yaml +36 -0
- package/src/components/core/pick-menu/pick-menu.tsx +348 -0
- package/src/components/core/pick-menu/tag-menu.meta.yaml +7 -0
- package/src/components/core/pick-menu/tag-menu.tsx +79 -0
- package/src/components/core/popover/index.ts +2 -0
- package/src/components/core/popover/popover.meta.yaml +16 -0
- package/src/components/core/popover/popover.tsx +66 -0
- package/src/components/core/progress/index.ts +2 -0
- package/src/components/core/progress/progress.meta.yaml +47 -0
- package/src/components/core/progress/progress.tsx +56 -0
- package/src/components/core/resizable/index.ts +13 -0
- package/src/components/core/resizable/resizable.meta.yaml +110 -0
- package/src/components/core/resizable/resizable.tsx +125 -0
- package/src/components/core/resizable/use-remembered-layout.ts +261 -0
- package/src/components/core/screen-link/index.ts +2 -0
- package/src/components/core/screen-link/screen-link.meta.yaml +34 -0
- package/src/components/core/screen-link/screen-link.tsx +100 -0
- package/src/components/core/scroll-area/index.ts +2 -0
- package/src/components/core/scroll-area/scroll-area.meta.yaml +72 -0
- package/src/components/core/scroll-area/scroll-area.tsx +95 -0
- package/src/components/core/scroll-area/steps.tsx +72 -0
- package/src/components/core/section/index.ts +2 -0
- package/src/components/core/section/section.meta.yaml +72 -0
- package/src/components/core/section/section.tsx +93 -0
- package/src/components/core/segment-group/index.ts +2 -0
- package/src/components/core/segment-group/segment-group.meta.yaml +71 -0
- package/src/components/core/segment-group/segment-group.tsx +166 -0
- package/src/components/core/select/index.ts +20 -0
- package/src/components/core/select/select.meta.yaml +48 -0
- package/src/components/core/select/select.tsx +226 -0
- package/src/components/core/skeleton/index.ts +2 -0
- package/src/components/core/skeleton/skeleton.meta.yaml +50 -0
- package/src/components/core/skeleton/skeleton.tsx +71 -0
- package/src/components/core/slider/index.ts +2 -0
- package/src/components/core/slider/slider.meta.yaml +55 -0
- package/src/components/core/slider/slider.tsx +46 -0
- package/src/components/core/sortable/index.ts +16 -0
- package/src/components/core/sortable/sortable.meta.yaml +125 -0
- package/src/components/core/sortable/sortable.tsx +471 -0
- package/src/components/core/split-view/index.ts +2 -0
- package/src/components/core/split-view/split-view.meta.yaml +85 -0
- package/src/components/core/split-view/split-view.tsx +193 -0
- package/src/components/core/status-icon/index.ts +2 -0
- package/src/components/core/status-icon/status-icon.meta.yaml +64 -0
- package/src/components/core/status-icon/status-icon.tsx +94 -0
- package/src/components/core/table/collapsible-rows.tsx +30 -0
- package/src/components/core/table/expand-toggle.tsx +58 -0
- package/src/components/core/table/group-header.tsx +35 -0
- package/src/components/core/table/index.ts +26 -0
- package/src/components/core/table/table.meta.yaml +67 -0
- package/src/components/core/table/table.tsx +166 -0
- package/src/components/core/tabs/index.ts +2 -0
- package/src/components/core/tabs/tabs.meta.yaml +57 -0
- package/src/components/core/tabs/tabs.tsx +74 -0
- package/src/components/core/tag-pill/index.ts +2 -0
- package/src/components/core/tag-pill/tag-pill.meta.yaml +19 -0
- package/src/components/core/tag-pill/tag-pill.tsx +102 -0
- package/src/components/core/thumbnail/index.ts +2 -0
- package/src/components/core/thumbnail/thumbnail.meta.yaml +59 -0
- package/src/components/core/thumbnail/thumbnail.tsx +162 -0
- package/src/components/core/toast/index.ts +12 -0
- package/src/components/core/toast/toast.meta.yaml +93 -0
- package/src/components/core/toast/toast.tsx +763 -0
- package/src/components/core/toggle/index.ts +2 -0
- package/src/components/core/toggle/toggle.meta.yaml +53 -0
- package/src/components/core/toggle/toggle.tsx +44 -0
- package/src/components/core/toggle-group/index.ts +2 -0
- package/src/components/core/toggle-group/toggle-group.meta.yaml +59 -0
- package/src/components/core/toggle-group/toggle-group.tsx +68 -0
- package/src/components/core/tooltip/index.ts +7 -0
- package/src/components/core/tooltip/tooltip.meta.yaml +93 -0
- package/src/components/core/tooltip/tooltip.tsx +198 -0
- package/src/components/layout/multi-pane/index.ts +4 -0
- package/src/components/layout/multi-pane/list-detail.tsx +45 -0
- package/src/components/layout/multi-pane/multi-pane.meta.yaml +67 -0
- package/src/components/layout/multi-pane/multi-pane.tsx +158 -0
- package/src/components/layout/single-pane/index.ts +2 -0
- package/src/components/layout/single-pane/single-pane.meta.yaml +35 -0
- package/src/components/layout/single-pane/single-pane.tsx +48 -0
- package/src/components/shell/app-shell/app-shell.meta.yaml +65 -0
- package/src/components/shell/app-shell/app-shell.tsx +61 -0
- package/src/components/shell/app-shell/index.ts +2 -0
- package/src/components/shell/sidebar/index.ts +35 -0
- package/src/components/shell/sidebar/sidebar-group.tsx +254 -0
- package/src/components/shell/sidebar/sidebar-item.tsx +88 -0
- package/src/components/shell/sidebar/sidebar-resize-handle.tsx +101 -0
- package/src/components/shell/sidebar/sidebar-tree.tsx +325 -0
- package/src/components/shell/sidebar/sidebar.meta.yaml +126 -0
- package/src/components/shell/sidebar/sidebar.tsx +142 -0
- package/src/components/template/address-book-template/address-book-template.meta.yaml +22 -0
- package/src/components/template/address-book-template/address-book-template.tsx +201 -0
- package/src/components/template/address-book-template/index.ts +2 -0
- package/src/components/template/mail-template/index.ts +2 -0
- package/src/components/template/mail-template/mail-template.meta.yaml +22 -0
- package/src/components/template/mail-template/mail-template.tsx +731 -0
- package/src/components/template/use-narrow.ts +18 -0
- package/src/index.ts +505 -0
- package/src/kit/check-rendering.tsx +130 -0
- package/src/kit/kit.tsx +177 -0
- package/src/lib/clipboard.ts +27 -0
- package/src/lib/dates.ts +13 -0
- package/src/lib/json.ts +59 -0
- package/src/lib/keys.ts +54 -0
- package/src/lib/utils.ts +12 -0
- package/src/lib/view-scope.tsx +60 -0
- package/src/profile/profile.ts +238 -0
- package/src/theme/appearance.ts +198 -0
- package/src/theme/boot.ts +6 -0
- package/src/theme/client-appearance-react.ts +14 -0
- package/src/theme/client-appearance.ts +284 -0
- package/src/theme/generate-tokens.ts +658 -0
- package/src/theme/pack-themes-react.ts +107 -0
- package/src/theme/palette.ts +301 -0
- package/src/theme/semantic-mapping.ts +165 -0
- package/src/theme/set-theme.ts +162 -0
- package/src/theme/theme-colours.ts +60 -0
- package/src/theme/theme-css.ts +15 -0
- package/src/theme/themes.ts +133 -0
- package/src/theme/wallpaper-sheet.ts +58 -0
- package/src/theme/wallpaper-theme-react.ts +60 -0
- package/src/theme/wallpaper-theme.ts +231 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { arrayMove } from "@dnd-kit/sortable";
|
|
3
|
+
interface MoveEvent {
|
|
4
|
+
itemId: string;
|
|
5
|
+
fromContainerId: string;
|
|
6
|
+
toContainerId: string;
|
|
7
|
+
fromIndex: number;
|
|
8
|
+
toIndex: number;
|
|
9
|
+
}
|
|
10
|
+
interface SortableDragState {
|
|
11
|
+
/** ID of the item currently being dragged, or null */
|
|
12
|
+
activeId: string | null;
|
|
13
|
+
/** ID of the container currently being hovered over, or null */
|
|
14
|
+
overContainerId: string | null;
|
|
15
|
+
}
|
|
16
|
+
declare function useSortableDragState(): SortableDragState;
|
|
17
|
+
interface SortableBoardProps {
|
|
18
|
+
onMove?: (event: MoveEvent) => void;
|
|
19
|
+
children: React.ReactNode;
|
|
20
|
+
/** Render function for the drag overlay content. Receives the active item id. */
|
|
21
|
+
renderOverlay?: (activeId: string) => React.ReactNode;
|
|
22
|
+
className?: string;
|
|
23
|
+
}
|
|
24
|
+
interface SortableListProps {
|
|
25
|
+
id: string;
|
|
26
|
+
items: string[];
|
|
27
|
+
onReorder?: (items: string[]) => void;
|
|
28
|
+
/** An item's name in screen reader announcements (standalone list); the id when absent. */
|
|
29
|
+
itemLabel?: (id: string) => string;
|
|
30
|
+
orientation?: "vertical" | "horizontal";
|
|
31
|
+
children: React.ReactNode;
|
|
32
|
+
className?: string;
|
|
33
|
+
}
|
|
34
|
+
declare function SortableList({ id, items, onReorder, itemLabel, orientation, children, className, }: SortableListProps): React.JSX.Element;
|
|
35
|
+
declare function SortableBoard(props: SortableBoardProps): React.JSX.Element;
|
|
36
|
+
interface SortableItemProps {
|
|
37
|
+
id: string;
|
|
38
|
+
disabled?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* When true, the entire item is the drag activator. When false (default), only a DragHandle child activates drag.
|
|
41
|
+
* `"pointer"`: the entire item drags with the pointer only, adding no role, tab stop or key handling, for an item that
|
|
42
|
+
* is itself a control (a list option): offer another way to reorder from the keyboard.
|
|
43
|
+
*/
|
|
44
|
+
dragFullItem?: boolean | "pointer";
|
|
45
|
+
children: React.ReactNode;
|
|
46
|
+
className?: string;
|
|
47
|
+
}
|
|
48
|
+
declare function SortableItem({ id, disabled, dragFullItem, children, className, }: SortableItemProps): React.JSX.Element;
|
|
49
|
+
interface DragHandleProps extends React.ComponentProps<"button"> {
|
|
50
|
+
}
|
|
51
|
+
declare function DragHandle({ className, ...props }: DragHandleProps): React.JSX.Element;
|
|
52
|
+
export { SortableBoard, SortableList, SortableItem, DragHandle, useSortableDragState, arrayMove };
|
|
53
|
+
export type { SortableBoardProps, SortableListProps, SortableItemProps, DragHandleProps, SortableDragState, MoveEvent, };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
type Orientation = "horizontal" | "vertical";
|
|
3
|
+
interface SplitViewProps extends React.ComponentProps<"div"> {
|
|
4
|
+
/** `horizontal`: the panes side by side; `vertical`: one above the other (shadcn's `orientation`). */
|
|
5
|
+
orientation?: Orientation;
|
|
6
|
+
/** Its handles drag (default); off, the sizes stay as given and the handles are dividers. */
|
|
7
|
+
resizable?: boolean;
|
|
8
|
+
/** `<plugin>/<screen>/<split>@v<n>`: the sizes a user dragged, kept per workspace in their profile (research-049). */
|
|
9
|
+
storageKey?: string;
|
|
10
|
+
}
|
|
11
|
+
declare function SplitView({ orientation, resizable, storageKey, className, children, ...props }: SplitViewProps): React.JSX.Element;
|
|
12
|
+
interface SplitPaneProps extends React.ComponentProps<"div"> {
|
|
13
|
+
/** Its size at first: `"25%"`, `"240px"`; none: a share of what the sized panes leave. */
|
|
14
|
+
defaultSize?: string;
|
|
15
|
+
/** Its least size, the same units. */
|
|
16
|
+
minSize?: string;
|
|
17
|
+
/** Its greatest size, the same units. */
|
|
18
|
+
maxSize?: string;
|
|
19
|
+
}
|
|
20
|
+
declare function SplitPane({ defaultSize, minSize, maxSize, id, className, style, children, ...props }: SplitPaneProps): React.JSX.Element;
|
|
21
|
+
interface SplitHandleProps {
|
|
22
|
+
/** A visible grip on the handle (shadcn's `withHandle`); a fixed view's divider has none. */
|
|
23
|
+
withHandle?: boolean;
|
|
24
|
+
className?: string;
|
|
25
|
+
}
|
|
26
|
+
declare function SplitHandle({ withHandle, className }: SplitHandleProps): React.JSX.Element;
|
|
27
|
+
export { SplitView, SplitPane, SplitHandle };
|
|
28
|
+
export type { SplitViewProps, SplitPaneProps, SplitHandleProps };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
type Status = "backlog" | "todo" | "in-progress" | "in-review" | "done" | "cancelled" | "error" | "warning" | "resolved";
|
|
4
|
+
declare const statusIconVariants: (props?: ({
|
|
5
|
+
status?: "backlog" | "cancelled" | "done" | "error" | "in-progress" | "in-review" | "resolved" | "todo" | "warning" | null | undefined;
|
|
6
|
+
size?: "default" | "sm" | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
|
+
interface StatusIconProps extends Omit<React.ComponentProps<"span">, "children">, Omit<VariantProps<typeof statusIconVariants>, "status"> {
|
|
9
|
+
status: Status;
|
|
10
|
+
}
|
|
11
|
+
declare function StatusIcon({ className, status, size, "aria-label": ariaLabel, ...props }: StatusIconProps): React.JSX.Element;
|
|
12
|
+
export { StatusIcon, statusIconVariants };
|
|
13
|
+
export type { Status as StatusIconStatus, StatusIconProps };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
interface CollapsibleRowsProps extends React.ComponentProps<"div"> {
|
|
3
|
+
expanded: boolean;
|
|
4
|
+
}
|
|
5
|
+
declare function CollapsibleRows({ className, expanded, children, ...props }: CollapsibleRowsProps): React.JSX.Element;
|
|
6
|
+
export { CollapsibleRows };
|
|
7
|
+
export type { CollapsibleRowsProps };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
declare const expandToggleVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
4
|
+
interface ExpandToggleProps extends Omit<React.ComponentProps<"button">, "children">, VariantProps<typeof expandToggleVariants> {
|
|
5
|
+
expanded: boolean;
|
|
6
|
+
onExpandedChange: (expanded: boolean) => void;
|
|
7
|
+
}
|
|
8
|
+
declare function ExpandToggle({ className, expanded, onExpandedChange, onClick, ...props }: ExpandToggleProps): React.JSX.Element;
|
|
9
|
+
export { ExpandToggle, expandToggleVariants };
|
|
10
|
+
export type { ExpandToggleProps };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
declare const groupHeaderVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
4
|
+
interface GroupHeaderProps extends Omit<React.ComponentProps<"div">, "children">, VariantProps<typeof groupHeaderVariants> {
|
|
5
|
+
/** Status icon or any ReactNode to display before the label */
|
|
6
|
+
icon?: React.ReactNode;
|
|
7
|
+
/** Group label text (e.g., "In Progress") */
|
|
8
|
+
label: string;
|
|
9
|
+
/** Item count — omit to hide count entirely */
|
|
10
|
+
count?: number;
|
|
11
|
+
}
|
|
12
|
+
declare function GroupHeader({ className, icon, label, count, ...props }: GroupHeaderProps): React.JSX.Element;
|
|
13
|
+
export { GroupHeader, groupHeaderVariants };
|
|
14
|
+
export type { GroupHeaderProps };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { Table, tableVariants, TableHeader, TableBody, TableFooter, TableRow, tableRowVariants, TableHead, TableCell, } from "./table";
|
|
2
|
+
export type { TableProps, TableHeaderProps, TableBodyProps, TableFooterProps, TableRowProps, TableHeadProps, TableCellProps, } from "./table";
|
|
3
|
+
export { ExpandToggle, expandToggleVariants } from "./expand-toggle";
|
|
4
|
+
export type { ExpandToggleProps } from "./expand-toggle";
|
|
5
|
+
export { GroupHeader, groupHeaderVariants } from "./group-header";
|
|
6
|
+
export type { GroupHeaderProps } from "./group-header";
|
|
7
|
+
export { CollapsibleRows } from "./collapsible-rows";
|
|
8
|
+
export type { CollapsibleRowsProps } from "./collapsible-rows";
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
declare const tableVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
4
|
+
interface TableProps extends React.ComponentProps<"div">, VariantProps<typeof tableVariants> {
|
|
5
|
+
/** CSS grid-template-columns, e.g. "auto 1fr 120px" */
|
|
6
|
+
columns?: string;
|
|
7
|
+
}
|
|
8
|
+
declare function Table({ className, columns, ...props }: TableProps): React.JSX.Element;
|
|
9
|
+
interface TableHeaderProps extends React.ComponentProps<"div"> {
|
|
10
|
+
}
|
|
11
|
+
declare function TableHeader({ className, ...props }: TableHeaderProps): React.JSX.Element;
|
|
12
|
+
interface TableBodyProps extends React.ComponentProps<"div"> {
|
|
13
|
+
}
|
|
14
|
+
declare function TableBody({ className, ...props }: TableBodyProps): React.JSX.Element;
|
|
15
|
+
interface TableFooterProps extends React.ComponentProps<"div"> {
|
|
16
|
+
}
|
|
17
|
+
declare function TableFooter({ className, ...props }: TableFooterProps): React.JSX.Element;
|
|
18
|
+
declare const tableRowVariants: (props?: ({
|
|
19
|
+
size?: "default" | "sm" | null | undefined;
|
|
20
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
21
|
+
interface TableRowProps extends React.ComponentProps<"div">, VariantProps<typeof tableRowVariants> {
|
|
22
|
+
}
|
|
23
|
+
declare function TableRow({ className, size, style, ...props }: TableRowProps): React.JSX.Element;
|
|
24
|
+
interface TableHeadProps extends React.ComponentProps<"div"> {
|
|
25
|
+
}
|
|
26
|
+
declare function TableHead({ className, ...props }: TableHeadProps): React.JSX.Element;
|
|
27
|
+
interface TableCellProps extends React.ComponentProps<"div"> {
|
|
28
|
+
}
|
|
29
|
+
declare function TableCell({ className, ...props }: TableCellProps): React.JSX.Element;
|
|
30
|
+
export { Table, tableVariants, TableHeader, TableBody, TableFooter, TableRow, tableRowVariants, TableHead, TableCell, };
|
|
31
|
+
export type { TableProps, TableHeaderProps, TableBodyProps, TableFooterProps, TableRowProps, TableHeadProps, TableCellProps, };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { Tabs as TabsPrimitive } from "@base-ui/react/tabs";
|
|
3
|
+
import { type VariantProps } from "class-variance-authority";
|
|
4
|
+
interface TabsProps extends React.ComponentProps<typeof TabsPrimitive.Root> {
|
|
5
|
+
}
|
|
6
|
+
declare function Tabs({ className, ...props }: TabsProps): React.JSX.Element;
|
|
7
|
+
declare const tabsListVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
8
|
+
interface TabsListProps extends React.ComponentProps<typeof TabsPrimitive.List>, VariantProps<typeof tabsListVariants> {
|
|
9
|
+
}
|
|
10
|
+
declare function TabsList({ className, ...props }: TabsListProps): React.JSX.Element;
|
|
11
|
+
interface TabsTriggerProps extends React.ComponentProps<typeof TabsPrimitive.Tab> {
|
|
12
|
+
/** Optional count displayed as muted text next to label */
|
|
13
|
+
count?: number;
|
|
14
|
+
}
|
|
15
|
+
declare function TabsTrigger({ className, children, count, ...props }: TabsTriggerProps): React.JSX.Element;
|
|
16
|
+
interface TabsContentProps extends React.ComponentProps<typeof TabsPrimitive.Panel> {
|
|
17
|
+
}
|
|
18
|
+
declare function TabsContent({ className, ...props }: TabsContentProps): React.JSX.Element;
|
|
19
|
+
export { Tabs, TabsList, tabsListVariants, TabsTrigger, TabsContent };
|
|
20
|
+
export type { TabsProps, TabsListProps, TabsTriggerProps, TabsContentProps };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/** A tag's colour, from its name (any case): always the same for the same tag. */
|
|
3
|
+
declare function tagColor(name: string): string;
|
|
4
|
+
interface TagPillProps extends React.ComponentProps<"span"> {
|
|
5
|
+
name: string;
|
|
6
|
+
/** `sm`: a list row's (20px). */
|
|
7
|
+
size?: "sm" | "default";
|
|
8
|
+
}
|
|
9
|
+
declare function TagPill({ name, size, className, ...props }: TagPillProps): React.JSX.Element;
|
|
10
|
+
/** A tag's coloured dot alone (a menu's option, a filter chip). */
|
|
11
|
+
declare function TagDot({ name, className, ...props }: React.ComponentProps<"span"> & {
|
|
12
|
+
name: string;
|
|
13
|
+
}): React.JSX.Element;
|
|
14
|
+
/** A record's tags (research-033's mockup): pills that wrap, then the + that opens the tag menu (no step back onto
|
|
15
|
+
* the column's edge after a pill). */
|
|
16
|
+
declare function TagList({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
17
|
+
interface FilterChipProps extends Omit<React.ComponentProps<"button">, "onClick"> {
|
|
18
|
+
/** The tag the list is filtered by. */
|
|
19
|
+
name: string;
|
|
20
|
+
onRemove: () => void;
|
|
21
|
+
}
|
|
22
|
+
/** A list's filter in its footer (research-033's mockup): the tag's dot and name, a ✕; a click removes it. */
|
|
23
|
+
declare function FilterChip({ name, onRemove, className, ...props }: FilterChipProps): React.JSX.Element;
|
|
24
|
+
export { TagPill, TagDot, TagList, FilterChip, tagColor };
|
|
25
|
+
export type { TagPillProps, FilterChipProps };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
type ThumbnailKind = "image" | "video" | "folder" | "file";
|
|
3
|
+
interface ThumbnailProps extends Omit<React.ComponentProps<"div">, "onOpen"> {
|
|
4
|
+
/** The image or video's URL (`image` and `video`). */
|
|
5
|
+
src?: string;
|
|
6
|
+
/** What the tile shows: a picture, a video's first frame, a folder or a file. */
|
|
7
|
+
kind: ThumbnailKind;
|
|
8
|
+
/** The tile's accessible name and the name truncated under it. */
|
|
9
|
+
name: string;
|
|
10
|
+
/** Opens the media or the file; a click or Enter. */
|
|
11
|
+
onOpen?: () => void;
|
|
12
|
+
/** Draws the ring (the tile a grid has selected). */
|
|
13
|
+
selected?: boolean;
|
|
14
|
+
/** A corner mark top right (a pin, "public"). */
|
|
15
|
+
badge?: React.ReactNode;
|
|
16
|
+
/** An actions trigger top right, shown on hover or focus (a menu). */
|
|
17
|
+
menu?: React.ReactNode;
|
|
18
|
+
}
|
|
19
|
+
/** A square tile of a media or file grid (extracted from the session gallery): a picture, a video's first frame
|
|
20
|
+
* with its play badge, a folder or a file, the name truncated below. */
|
|
21
|
+
declare function Thumbnail({ src, kind, name, onOpen, selected, badge, menu, className, ...props }: ThumbnailProps): React.JSX.Element;
|
|
22
|
+
export { Thumbnail };
|
|
23
|
+
export type { ThumbnailKind, ThumbnailProps };
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { FollowEvent } from "../screen-link/screen-link";
|
|
3
|
+
type ToastVariant = "success" | "error" | "warning" | "info";
|
|
4
|
+
interface ToastData {
|
|
5
|
+
id: string;
|
|
6
|
+
title: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
variant?: ToastVariant;
|
|
9
|
+
action?: {
|
|
10
|
+
label: string;
|
|
11
|
+
/** `event`: the click (a fix that opens a screen follows it, research-048); none from ⌘Z or another surface. */
|
|
12
|
+
onClick: (event?: FollowEvent) => void;
|
|
13
|
+
/** The action undoes what the toast says (research-033's mockup): ⌘Z (Ctrl+Z) runs the last such action, its toast
|
|
14
|
+
* shown or gone (the 20 last ones are kept), and the button shows ⌘Z. */
|
|
15
|
+
undo?: boolean;
|
|
16
|
+
};
|
|
17
|
+
/** A second, quiet text button after `action`; its `onClick` runs and the toast stays. */
|
|
18
|
+
secondary?: {
|
|
19
|
+
label: string;
|
|
20
|
+
onClick: () => void;
|
|
21
|
+
};
|
|
22
|
+
/** Text a small Copy button (beside the close one) writes with `copyText`; absent: no button. */
|
|
23
|
+
copy?: string;
|
|
24
|
+
/** Milliseconds before it fades away (3000 by default); `Infinity`: it stays until dismissed. */
|
|
25
|
+
duration?: number;
|
|
26
|
+
/** Draws a bar along the bottom edge that drains over `duration` (finite only) — an Undo toast shows how long is left. */
|
|
27
|
+
countdown?: boolean;
|
|
28
|
+
/** A toast with the key of one shown replaces it in place (a repeated failure does not stack). */
|
|
29
|
+
key?: string;
|
|
30
|
+
/** `false`: no close button, the toast stays until its action changes what it says (a page to reload). */
|
|
31
|
+
dismissible?: boolean;
|
|
32
|
+
/** Called once it goes by `dismiss` (its close button, Escape, its duration over), not when replaced by key. */
|
|
33
|
+
onClose?: () => void;
|
|
34
|
+
}
|
|
35
|
+
type ToastInput = Omit<ToastData, "id">;
|
|
36
|
+
/** A toast as another surface draws it (`ToastStack`): its action a label only, which that surface reports by id; a
|
|
37
|
+
* `secondary`'s callback cannot cross to another surface, so it is left out (`copy` is a plain string and stays). */
|
|
38
|
+
type ToastShown = Omit<ToastData, "action" | "secondary" | "onClose"> & {
|
|
39
|
+
action?: {
|
|
40
|
+
label: string;
|
|
41
|
+
undo?: boolean;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
/** What `ToastItem` draws: a shown toast, plus the provider's own `secondary` (the sink's surfaces leave it out). */
|
|
45
|
+
type ToastDrawn = ToastShown & {
|
|
46
|
+
secondary?: ToastData["secondary"];
|
|
47
|
+
};
|
|
48
|
+
/** Another surface for a provider's toasts (an app's own view over a page that cannot show them): the provider draws
|
|
49
|
+
* none and hands their list to `show` on each change (an empty one when the sink goes); `subscribe` brings back what
|
|
50
|
+
* was used there, by toast id: its action (`"action"`, run as in the page) or its dismissal (`"dismiss"`). */
|
|
51
|
+
interface ToastSink {
|
|
52
|
+
show: (toasts: readonly ToastData[]) => void;
|
|
53
|
+
subscribe: (listener: (id: string, used: "action" | "dismiss") => void) => () => void;
|
|
54
|
+
}
|
|
55
|
+
declare const toastVariants: (props?: ({
|
|
56
|
+
variant?: "error" | "info" | "success" | "warning" | null | undefined;
|
|
57
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
58
|
+
interface ToastActionProps extends React.ComponentProps<"button"> {
|
|
59
|
+
}
|
|
60
|
+
declare function ToastAction({ className, ...props }: ToastActionProps): React.JSX.Element;
|
|
61
|
+
interface ToastContextValue {
|
|
62
|
+
toast: (input: ToastInput) => string;
|
|
63
|
+
dismiss: (id: string) => void;
|
|
64
|
+
/** Runs the last undo action not used yet (what ⌘Z does); `false` when there is none. */
|
|
65
|
+
undo: () => boolean;
|
|
66
|
+
}
|
|
67
|
+
interface ToastProviderProps {
|
|
68
|
+
children: React.ReactNode;
|
|
69
|
+
/** Given: the toasts go to it instead of being drawn here. */
|
|
70
|
+
sink?: ToastSink | undefined;
|
|
71
|
+
}
|
|
72
|
+
declare function ToastProvider({ children, sink }: ToastProviderProps): React.JSX.Element;
|
|
73
|
+
interface ToastStackProps {
|
|
74
|
+
toasts: readonly ToastDrawn[];
|
|
75
|
+
/** A toast's action button used. */
|
|
76
|
+
onAction: (id: string, event?: FollowEvent) => void;
|
|
77
|
+
/** Its close button used, or its duration over. */
|
|
78
|
+
onDismiss: (id: string) => void;
|
|
79
|
+
className?: string;
|
|
80
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
81
|
+
}
|
|
82
|
+
/** Toasts drawn as given, newest at the bottom: the provider's own stack, or another surface's for a sink's toasts
|
|
83
|
+
* (it runs their timers and reports what is used by id). Nothing when there are none. A toast fading out carries
|
|
84
|
+
* `data-leaving`. */
|
|
85
|
+
declare function ToastStack({ toasts, onAction, onDismiss, className, ref }: ToastStackProps): React.JSX.Element | null;
|
|
86
|
+
declare function useToast(): ToastContextValue;
|
|
87
|
+
export { ToastProvider, ToastAction, ToastStack, toastVariants, useToast };
|
|
88
|
+
export type { ToastProviderProps, ToastStackProps, ToastShown, ToastSink, ToastActionProps, ToastData, ToastInput, ToastVariant, ToastContextValue, };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { Switch as SwitchPrimitive } from "@base-ui/react/switch";
|
|
3
|
+
import { type VariantProps } from "class-variance-authority";
|
|
4
|
+
declare const toggleVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
5
|
+
interface ToggleProps extends Omit<React.ComponentProps<typeof SwitchPrimitive.Root>, "render" | "nativeButton">, VariantProps<typeof toggleVariants> {
|
|
6
|
+
}
|
|
7
|
+
declare function Toggle({ className, ...props }: ToggleProps): React.JSX.Element;
|
|
8
|
+
export { Toggle, toggleVariants };
|
|
9
|
+
export type { ToggleProps };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
interface ToggleGroupItem {
|
|
3
|
+
value: string;
|
|
4
|
+
label: React.ReactNode;
|
|
5
|
+
/** The item's full name, shown in the browser's tooltip (a weekday's "Monday" for "M"). */
|
|
6
|
+
title?: string;
|
|
7
|
+
}
|
|
8
|
+
interface ToggleGroupProps {
|
|
9
|
+
items: ToggleGroupItem[];
|
|
10
|
+
value: string[];
|
|
11
|
+
onValueChange: (value: string[]) => void;
|
|
12
|
+
"aria-label": string;
|
|
13
|
+
/** Height, as SegmentGroup's and Button's (h-sm, h-md, h-lg). Defaults to `default` (h-md). */
|
|
14
|
+
size?: "sm" | "default" | "lg";
|
|
15
|
+
className?: string;
|
|
16
|
+
}
|
|
17
|
+
/** A multiple-choice toggle group, drawn as SegmentGroup is: several quiet buttons in one track, each independently
|
|
18
|
+
* pressed (weekdays, filters). Base UI's ToggleGroup keeps the pressed set and its keyboard behaviour. */
|
|
19
|
+
declare function ToggleGroup({ className, size, items, value, onValueChange, ...props }: ToggleGroupProps): React.JSX.Element;
|
|
20
|
+
export { ToggleGroup };
|
|
21
|
+
export type { ToggleGroupProps, ToggleGroupItem };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { Tooltip as TooltipPrimitive } from "@base-ui/react/tooltip";
|
|
3
|
+
interface TooltipProviderProps extends React.ComponentProps<typeof TooltipPrimitive.Provider> {
|
|
4
|
+
}
|
|
5
|
+
declare function TooltipProvider({ delay, timeout, ...props }: TooltipProviderProps): React.JSX.Element;
|
|
6
|
+
interface TooltipProps extends React.ComponentProps<typeof TooltipPrimitive.Root> {
|
|
7
|
+
}
|
|
8
|
+
declare function Tooltip(props: TooltipProps): React.JSX.Element;
|
|
9
|
+
interface TooltipTriggerProps extends React.ComponentProps<typeof TooltipPrimitive.Trigger> {
|
|
10
|
+
}
|
|
11
|
+
declare function TooltipTrigger({ className, "aria-describedby": ariaDescribedByProp, ...props }: TooltipTriggerProps): React.JSX.Element;
|
|
12
|
+
interface TooltipContentProps extends React.ComponentProps<typeof TooltipPrimitive.Popup> {
|
|
13
|
+
/** Which side of the trigger to position against (lives on Base UI's Positioner) */
|
|
14
|
+
side?: "top" | "right" | "bottom" | "left";
|
|
15
|
+
/** Distance from the trigger in px (lives on Base UI's Positioner) */
|
|
16
|
+
sideOffset?: React.ComponentProps<typeof TooltipPrimitive.Positioner>["sideOffset"];
|
|
17
|
+
/** Alignment against the trigger (lives on Base UI's Positioner) */
|
|
18
|
+
align?: React.ComponentProps<typeof TooltipPrimitive.Positioner>["align"];
|
|
19
|
+
/** Offset along the alignment axis (lives on Base UI's Positioner) */
|
|
20
|
+
alignOffset?: React.ComponentProps<typeof TooltipPrimitive.Positioner>["alignOffset"];
|
|
21
|
+
/** Minimum distance from the viewport edges (lives on Base UI's Positioner) */
|
|
22
|
+
collisionPadding?: React.ComponentProps<typeof TooltipPrimitive.Positioner>["collisionPadding"];
|
|
23
|
+
/** A second, lighter line under the message (e.g. an action hint such as "Click to retry"). */
|
|
24
|
+
hint?: React.ReactNode;
|
|
25
|
+
}
|
|
26
|
+
declare function TooltipContent({ className, sideOffset, side, align, alignOffset, collisionPadding, hint, id, style, children, ...props }: TooltipContentProps): React.JSX.Element;
|
|
27
|
+
/** An icon-only control with its tooltip (the kit's rule for lossy glyphs): `<Tip label="Filter"><Button …/></Tip>`. */
|
|
28
|
+
declare function Tip({ label, children }: {
|
|
29
|
+
label: React.ReactNode;
|
|
30
|
+
children: React.ReactElement;
|
|
31
|
+
}): React.JSX.Element;
|
|
32
|
+
export { TooltipProvider, Tooltip, TooltipTrigger, TooltipContent, Tip };
|
|
33
|
+
export type { TooltipProps, TooltipProviderProps, TooltipTriggerProps, TooltipContentProps };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
import { type MultiPaneProps } from "./multi-pane";
|
|
3
|
+
interface ListDetailProps extends Omit<MultiPaneProps, "nav" | "main" | "aside" | "mode" | "defaultNavSize"> {
|
|
4
|
+
list: React.ReactNode;
|
|
5
|
+
detail: React.ReactNode;
|
|
6
|
+
mode?: "split" | "list" | "detail";
|
|
7
|
+
/** The list's starting width (`"320px"` by default). */
|
|
8
|
+
defaultListSize?: string;
|
|
9
|
+
/** Ignored: the record keeps 380px at least. */
|
|
10
|
+
detailMinSize?: string;
|
|
11
|
+
}
|
|
12
|
+
/** @deprecated MultiPane's `multiPaneNarrowWidth`. */
|
|
13
|
+
declare const listDetailNarrowWidth = 640;
|
|
14
|
+
/** @deprecated MultiPane, `nav` and `main`. */
|
|
15
|
+
declare function ListDetail({ list, detail, mode, defaultListSize, detailMinSize: _ignored, ...props }: ListDetailProps): React.JSX.Element;
|
|
16
|
+
export { ListDetail, listDetailNarrowWidth };
|
|
17
|
+
export type { ListDetailProps };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { ResizablePanelGroup } from "../../core/resizable";
|
|
3
|
+
type PaneName = "nav" | "main" | "aside";
|
|
4
|
+
/** Under this width (px) of its box, MultiPane shows its first pane alone (the container query says the same). */
|
|
5
|
+
declare const multiPaneNarrowWidth = 640;
|
|
6
|
+
/** Under this width (px) of its box, three MultiPane leave their `aside` out. */
|
|
7
|
+
declare const multiPaneAsideWidth = 800;
|
|
8
|
+
interface MultiPaneProps extends Omit<React.ComponentProps<"div">, "children"> {
|
|
9
|
+
/** The left pane (a list, folders); none: `main` on the left. */
|
|
10
|
+
nav?: React.ReactNode;
|
|
11
|
+
/** The pane that takes the room. */
|
|
12
|
+
main: React.ReactNode;
|
|
13
|
+
/** The right pane (a record, properties); none: `main` on the right. */
|
|
14
|
+
aside?: React.ReactNode;
|
|
15
|
+
/** `split`: the panes side by side; a pane's name: that pane alone at any width (a window showing it). */
|
|
16
|
+
mode?: "split" | PaneName;
|
|
17
|
+
/** When room runs out, the panes leave from the right (default); off for a screen that cannot open them elsewhere
|
|
18
|
+
* yet. */
|
|
19
|
+
collapse?: boolean;
|
|
20
|
+
/** `nav`'s starting width (`"25%"`, `"320px"`): dragged from there, a double-click on the edge back to it. */
|
|
21
|
+
defaultNavSize?: string;
|
|
22
|
+
/** `aside`'s starting width (`"25%"`, `"380px"`). */
|
|
23
|
+
defaultAsideSize?: string;
|
|
24
|
+
/** `<plugin>/<screen>/<split>@v<n>`: the sizes a user dragged, kept per workspace in their profile (research-049). */
|
|
25
|
+
storageKey?: string;
|
|
26
|
+
/** The panes that scroll their content (the kit's ScrollArea, as a frame's `scrolling`); the others (default) leave
|
|
27
|
+
* it to their content (a Pane's body, a Detail). */
|
|
28
|
+
scroll?: PaneName[];
|
|
29
|
+
/** Its group's props (a customization owner's data attribute). */
|
|
30
|
+
groupProps?: Omit<React.ComponentProps<typeof ResizablePanelGroup>, "orientation" | "children">;
|
|
31
|
+
}
|
|
32
|
+
declare function MultiPane({ nav, main, aside, mode, collapse, defaultNavSize, defaultAsideSize, storageKey, groupProps, scroll, className, ...props }: MultiPaneProps): React.JSX.Element;
|
|
33
|
+
export { MultiPane, multiPaneNarrowWidth, multiPaneAsideWidth };
|
|
34
|
+
export type { MultiPaneProps };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type MainContentProps } from "../../core/main-content";
|
|
3
|
+
interface SinglePaneProps extends React.ComponentProps<"div"> {
|
|
4
|
+
/** MainContent's width: `read` (default) 720px centred, `wide` 1040px, `full` the whole width. */
|
|
5
|
+
width?: MainContentProps["width"];
|
|
6
|
+
/** Its content scrolls in the pane (the kit's ScrollArea); off (default), the content fits it and scrolls itself. */
|
|
7
|
+
scroll?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare function SinglePane({ width, scroll, className, children, ...props }: SinglePaneProps): React.JSX.Element;
|
|
10
|
+
export { SinglePane };
|
|
11
|
+
export type { SinglePaneProps };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
declare const appShellVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
4
|
+
interface AppShellProps extends React.ComponentProps<"div">, VariantProps<typeof appShellVariants> {
|
|
5
|
+
/** Optional global toolbar rendered above both sidebar and main content */
|
|
6
|
+
header?: React.ReactNode;
|
|
7
|
+
/** Optional sidebar content rendered in a fixed-width aside on the left */
|
|
8
|
+
sidebar?: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
declare function AppShell({ className, header, sidebar, children, ...props }: AppShellProps): React.JSX.Element;
|
|
11
|
+
export { AppShell, appShellVariants };
|
|
12
|
+
export type { AppShellProps };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { Sidebar, sidebarVariants, SidebarContent, SidebarHeader, SidebarSection, SidebarItem, sidebarItemVariants, SidebarFooter, SidebarGroup, SidebarGroupTrigger, SidebarGroupContent, SidebarTree, SidebarTreeItem, SidebarCollapse, SidebarResizeHandle, SIDEBAR_MIN_WIDTH, SIDEBAR_DEFAULT_WIDTH, clampSidebarWidth, } from "./sidebar";
|
|
2
|
+
export type { SidebarProps, SidebarContentProps, SidebarHeaderProps, SidebarSectionProps, SidebarItemProps, SidebarFooterProps, SidebarGroupProps, SidebarGroupTriggerProps, SidebarGroupContentProps, SidebarTreeProps, SidebarTreeItemProps, SidebarCollapseProps, SidebarResizeHandleProps, } from "./sidebar";
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
interface SidebarGroupProps extends React.ComponentProps<"div"> {
|
|
3
|
+
/** Initial expanded state (uncontrolled) */
|
|
4
|
+
defaultExpanded?: boolean;
|
|
5
|
+
/** Controlled expanded state */
|
|
6
|
+
expanded?: boolean;
|
|
7
|
+
/** Callback when expanded state changes */
|
|
8
|
+
onExpandedChange?: (expanded: boolean) => void;
|
|
9
|
+
}
|
|
10
|
+
declare function SidebarGroup({ className, defaultExpanded, expanded: controlledExpanded, onExpandedChange: controlledOnChange, ...props }: SidebarGroupProps): React.JSX.Element;
|
|
11
|
+
/** Points down when `expanded`, otherwise right (`closed="left"`: left, for a chevron on the right edge). */
|
|
12
|
+
declare function SidebarChevron({ expanded, closed, }: {
|
|
13
|
+
expanded: boolean;
|
|
14
|
+
closed?: "left" | "right";
|
|
15
|
+
}): React.JSX.Element;
|
|
16
|
+
/** Whether React renders anything for `node` (`cond && <Badge />` gives `false`). */
|
|
17
|
+
declare const renders: (node: React.ReactNode) => boolean;
|
|
18
|
+
/** A row's trailing content: out of its button's name, its description instead (`aria-describedby`). */
|
|
19
|
+
declare function SidebarTrailing({ id, className, children, }: {
|
|
20
|
+
id: string;
|
|
21
|
+
className?: string;
|
|
22
|
+
children: React.ReactNode;
|
|
23
|
+
}): React.JSX.Element;
|
|
24
|
+
interface SidebarGroupTriggerProps extends Omit<React.ComponentProps<"button">, "color"> {
|
|
25
|
+
/** Optional team dot color (hex string) */
|
|
26
|
+
teamDot?: string;
|
|
27
|
+
/** `section`: a collapsible SidebarSection, its small caps label with the chevron on the right. */
|
|
28
|
+
variant?: "group" | "section";
|
|
29
|
+
/** Shown at the right end, before a section's chevron (a count, a status icon): the button's
|
|
30
|
+
* description, not its name. Non-interactive: it sits inside the button. */
|
|
31
|
+
trailing?: React.ReactNode;
|
|
32
|
+
}
|
|
33
|
+
declare function SidebarGroupTrigger({ className, children, teamDot, variant, trailing, ...props }: SidebarGroupTriggerProps): React.JSX.Element;
|
|
34
|
+
interface SidebarCollapseProps extends React.ComponentProps<"div"> {
|
|
35
|
+
open: boolean;
|
|
36
|
+
}
|
|
37
|
+
/** Content that opens and closes with a short height animation (the grid-rows trick), staying mounted.
|
|
38
|
+
* Closed, it is `inert` and `aria-hidden` (out of the tab order and the accessibility tree, as if
|
|
39
|
+
* unmounted) and, once the animation ends, `invisible`; opening shows it at once. */
|
|
40
|
+
declare function SidebarCollapse({ open, className, children, ...props }: SidebarCollapseProps): React.JSX.Element;
|
|
41
|
+
interface SidebarGroupContentProps extends React.ComponentProps<"div"> {
|
|
42
|
+
}
|
|
43
|
+
declare function SidebarGroupContent({ className, ...props }: SidebarGroupContentProps): React.JSX.Element;
|
|
44
|
+
export { SidebarGroup, SidebarGroupTrigger, SidebarGroupContent, SidebarCollapse, SidebarChevron, SidebarTrailing, renders, };
|
|
45
|
+
export type { SidebarGroupProps, SidebarGroupTriggerProps, SidebarGroupContentProps, SidebarCollapseProps, };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
4
|
+
declare const sidebarItemVariants: (props?: ({
|
|
5
|
+
active?: boolean | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
interface SidebarItemProps extends Omit<React.ComponentProps<"button">, "color">, VariantProps<typeof sidebarItemVariants> {
|
|
8
|
+
/** Replace the rendered element (for router links, etc.), e.g. render={<a href="…" />} */
|
|
9
|
+
render?: useRender.RenderProp;
|
|
10
|
+
/** Optional icon displayed before label */
|
|
11
|
+
icon?: React.ReactNode;
|
|
12
|
+
/** Optional count displayed as Badge on the right */
|
|
13
|
+
count?: number;
|
|
14
|
+
/** Optional team dot color (hex string) */
|
|
15
|
+
teamDot?: string;
|
|
16
|
+
}
|
|
17
|
+
declare function SidebarItem({ className, children, icon, count, teamDot, active, render, ref, ...props }: SidebarItemProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
18
|
+
export { SidebarItem, sidebarItemVariants };
|
|
19
|
+
export type { SidebarItemProps };
|