@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
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Maxime de Visscher
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,40 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Bridge UI
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The toolkit Bridge and every plugin draw with: its components (Core, Composite, Layout, Template), the behaviours built
|
|
4
|
+
into them (keyboard navigation, focus, drafts, inline edit, empty, loading and error states), the theme tokens, and the
|
|
5
|
+
surface a skin styles or replaces. Like GTK or Qt, it is a framework you customise, not one you rebuild beside: a plugin
|
|
6
|
+
composes Bridge UI and changes its look with themes and skins.
|
|
7
|
+
|
|
8
|
+
Plugins import it as `@bridge/ui`; Bridge serves one copy to every page, the version it has installed. A plugin declares
|
|
9
|
+
the oldest version it needs as a peer: `"@bridge/ui": ">=0.1.0"`.
|
|
10
|
+
|
|
11
|
+
## Versions and updates
|
|
12
|
+
|
|
13
|
+
- One version per Bridge, given to every workspace and every plugin.
|
|
14
|
+
- A Bridge release brings the newest Bridge UI with it. Between two releases, a newer version appears in Admin ›
|
|
15
|
+
Plugins › Marketplace: you apply it by hand, it takes effect when Bridge restarts, and the version before stays
|
|
16
|
+
installed so that one action goes back.
|
|
17
|
+
- Bridge accepts every version before the next major (`0.x`). A major version comes only with a major release of
|
|
18
|
+
Bridge.
|
|
19
|
+
|
|
20
|
+
## Developing it
|
|
21
|
+
|
|
22
|
+
Run a second Bridge on a local copy, never the one you work in:
|
|
23
|
+
|
|
24
|
+
```sh
|
|
25
|
+
bridge start --root ~/.bridge-test/ui --port 4799 --ui /path/to/bridge-ui/packages/ui
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
That Bridge watches the folder and rebuilds the page's copy, its stylesheet and the boot kernel as you edit; the theme
|
|
29
|
+
tokens and the stylesheet compile apply at its next start. A copy that does not build is not served: Bridge starts on
|
|
30
|
+
the installed version and says why in Plugins. `--ui installed` goes back to the installed version.
|
|
31
|
+
|
|
32
|
+
## Entries
|
|
33
|
+
|
|
34
|
+
| Entry | For |
|
|
35
|
+
| ---------------------------------------------------- | ---------------------------------------------------------------------------------------- |
|
|
36
|
+
| `@bridge/ui` | Pages and plugins: the components, hooks and theme API. |
|
|
37
|
+
| `@bridge/ui/testing` | A skin's tests: `checkRendering`. |
|
|
38
|
+
| `@bridge/ui/boot`, `/build`, `/theme-css`, `/themes` | Bridge's host only: the boot kernel's theme rule, the stylesheet compile, the theme CSS. |
|
|
39
|
+
|
|
40
|
+
MIT licence (`LICENSE`); where the first components came from: `SOURCE.md`.
|
package/SOURCE.md
ADDED
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
# Source of `@bridge/ui`
|
|
2
|
+
|
|
3
|
+
Source: mastaui, `packages/core` at commit `5b06fc7` (read with `git show 5b06fc7:<path>`), the owner's own project.
|
|
4
|
+
License: MIT, notice in `./LICENSE` (copied verbatim from `packages/core/LICENSE`).
|
|
5
|
+
Copied once; never re-synced. `package.json`, `tsconfig.json` (browser code) and `tsconfig.node.json` (generator and tests) are Bridge's own.
|
|
6
|
+
|
|
7
|
+
## Copied
|
|
8
|
+
|
|
9
|
+
- `src/components/*` except `theme-switcher` (it needs the runtime theme engine), with their tests and `*.meta.yaml`.
|
|
10
|
+
- `src/lib/*`, `src/test/setup.ts`.
|
|
11
|
+
- `src/theme/{palette,semantic-mapping,generate-tokens}.ts`, `src/theme/palette.test.ts`, `src/theme/palettes/{light,dark}.yaml`.
|
|
12
|
+
- `src/index.ts`.
|
|
13
|
+
|
|
14
|
+
Not copied: `theme-provider`, `use-runtime-palette`, `palettes.ts` (the runtime engine and its TS palette copies), `tokens.css`,
|
|
15
|
+
`tokens.static.css`, `base.css`, `css-contract.test.ts`, the other seven palettes, and the build/lint configs.
|
|
16
|
+
|
|
17
|
+
## Changes (exhaustive)
|
|
18
|
+
|
|
19
|
+
1. **Names.** MastaUI/mastaui → Bridge UI/bridge in comments and strings: `palette.ts`, `semantic-mapping.ts`,
|
|
20
|
+
`generate-tokens.ts`, `lib/legacy-as-child.ts` (`[bridge-ui]` warning prefix), `sortable.tsx` (`bridge-ui-swing` keyframes),
|
|
21
|
+
`tooltip.meta.yaml`, `breadcrumb.meta.yaml`, `palettes/light.yaml` header; `segment-group.meta.yaml` no longer lists ThemeSwitcher.
|
|
22
|
+
2. **Index.** `src/index.ts` drops `ThemeProvider`, `useTheme`, `useRuntimePalette`, the palette engine exports, `PALETTES`,
|
|
23
|
+
and `ThemeSwitcher`; it exports `THEMES`, `DEFAULT_THEME`, `THEME_STORAGE_KEY`, `getTheme`, `setTheme` (new
|
|
24
|
+
`theme/themes.ts`, `theme/set-theme.ts`; `setTheme("system")` forgets the choice, a storage failure is ignored).
|
|
25
|
+
New Node-side export `@bridge/ui/theme-css` (`theme/theme-css.ts`: `generateThemeCss`, `kitSources`) for the host.
|
|
26
|
+
3. **Palette overrides.** `PaletteInput` and `DerivedPalette` gain optional `overrides` (`accentFg`, `sidebar`, `fgMuted`);
|
|
27
|
+
`mapPaletteToTokens` applies them last to `--accent-fg`, `--bg-sidebar`, `--fg-muted`. Without them the output is unchanged.
|
|
28
|
+
4. **Generator.** `generate-tokens.ts` returns the CSS (`generateThemeCss()`, `themeTokens()`) instead of writing `tokens.css`;
|
|
29
|
+
`loadPalette` is exported and reads the YAML keys `accent-fg`, `sidebar`, `fg-muted`; the themes come from `THEMES` (one
|
|
30
|
+
`[data-theme="<id>"]` block each), preceded by the default on `:root` (T3 Code Light, T3 Code Dark under
|
|
31
|
+
`prefers-color-scheme: dark`); every block states its `color-scheme` (upstream: dark only); a palette whose `type`
|
|
32
|
+
differs from `THEMES` is refused; a `[data-slot]`-only reset in `@layer base` replaces Tailwind's preflight; no CLI `main`. Imports use `.ts`
|
|
33
|
+
extensions (the host runs it under Node). Fonts: `--font-sans` is the system stack
|
|
34
|
+
(`-apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif`), `--font-mono` the T3 Code stack; no Inter.
|
|
35
|
+
5. **Palettes.** Added `t3-code-{light,dark}.yaml`, `t3-chat-{light,dark}.yaml` (from the T3 palettes, with overrides: T3 Chat
|
|
36
|
+
sidebar, fg-muted, accent-fg; T3 Code dark accent-fg). For the contrast check (`theme/themes.test.ts`), T3 Chat Dark's red
|
|
37
|
+
is lightened to 58.00%. (Story 3.4 darkened the light themes' yellow to 62.50%; story 3.5 restored it, see 10.)
|
|
38
|
+
Since research-038 (19 October 2026) the palettes are packs in Bridge's `plugins/`: the upstream `light`/`dark` are
|
|
39
|
+
`themes-linear` (`linear-light`, `linear-dark`), the former T3 Code ones are Bridge's default `themes-default`
|
|
40
|
+
(`bridge-light`, `bridge-dark`, the only ones the kit compiles), and `themes-t3code` holds T3 Code's own themes as it
|
|
41
|
+
ships them (T3 Chat's among them).
|
|
42
|
+
6. **Optical centring.** `Button` sizes `sm`/`default`/`lg` get `pb-px` and `[&_svg]:-mb-px` (icon sizes unchanged); `Badge`
|
|
43
|
+
gets `pb-px [&_svg]:-mb-px`; `Label` gets `pb-px`, its dot `-mb-px`. `Label`'s custom colour mixes `in oklab` (was `in oklch`).
|
|
44
|
+
7. **Stale comments.** Dropped or rewritten: Story 13.1/FR64, `docs/typography.md`, and `base.css` references in
|
|
45
|
+
`generate-tokens.ts`; the dts-build note in `lib/legacy-as-child.ts`; Radix and Node 26 in `test/setup.ts`; the uncopied
|
|
46
|
+
Neon/Dark/Dracula themes in `semantic-mapping.ts`'s glow comment.
|
|
47
|
+
8. **Tests.** Each component test starts with `// @vitest-environment jsdom` and `import "../../test/setup"` (Bridge runs Vitest
|
|
48
|
+
without a config or globals); `setup.ts` registers Testing Library's `cleanup` after each test. Added `theme/themes.test.ts`
|
|
49
|
+
and `theme/set-theme.test.ts`. `label.test.tsx` asserts `color-mix(in oklab` (was `color-mix`).
|
|
50
|
+
`tabs.test.tsx` (two tests): the inactive panel is "inert or already unmounted", not "inert": under load Base UI finished
|
|
51
|
+
its exit and unmounted it before the assertion.
|
|
52
|
+
9. **Form components (entry 14).** New, not from mastaui:
|
|
53
|
+
- `components/select` (`Select`, `SelectTrigger`, `SelectValue`, `SelectContent`, `SelectItem`, `SelectGroup`,
|
|
54
|
+
`SelectLabel`, `SelectSeparator`): Base UI Select; structure from the genesis branch's
|
|
55
|
+
`apps/web/src/components/ui/select.tsx` (read with `git show origin/genesis:<path>`), restyled to the kit (trigger =
|
|
56
|
+
`inputVariants` outline, popup = `DropdownMenuContent`, items = `dropdownMenuItemVariants`); inline SVG icons instead of
|
|
57
|
+
lucide; no scroll arrows; the popup drops below the trigger by default; `CSPProvider disableStyleElements` (the page's CSP
|
|
58
|
+
refuses Base UI's inline `<style>`).
|
|
59
|
+
- `components/field` (`Field`, `FieldLabel`, `FieldDescription`, `FieldError`): Base UI Field. Inside a `Field`,
|
|
60
|
+
`Input`, `Textarea`, and `TagInput` render their native element through Base UI's `Field.Control` (`useFieldControl`);
|
|
61
|
+
outside one they are unchanged (`useFieldControl`, exported for custom controls, drops undefined props so they don't
|
|
62
|
+
erase the Field's id or disabled). `FieldError` shows while `<Field invalid>` has a message (Base UI's own error ignores
|
|
63
|
+
that prop), never on a disabled Field.
|
|
64
|
+
- `components/tag-input` (`TagInput`): controlled chips (`Label variant="feature"`, the accent hue) plus an input.
|
|
65
|
+
- `Textarea` gains `variant="outline"` (bordered like `Input variant="outline"`); the borderless variant stays the default.
|
|
66
|
+
Each with a jsdom test and a `*.meta.yaml`.
|
|
67
|
+
The contrast check (`theme/themes.test.ts`) gains `--destructive` on `--bg`/`--bg-surface`, `--fg-muted` on `--bg-surface`,
|
|
68
|
+
and `--label-feature-fg` on `--label-feature-bg` (all ≥ 3); for the last, T3 Chat Dark's `pink-bright` is lightened to
|
|
69
|
+
57.00% (was 54.07%; 2.84 → ≥ 3). `--accent` on `--accent-subtle` is not checked: in T3 Chat Dark it cannot reach 3 while
|
|
70
|
+
`--accent-fg` on `--accent` keeps 4.5, so the chips use the feature label's pair instead of `var(--accent)` text.
|
|
71
|
+
10. **Colour decisions (owner, 2026-09-29; story 3.5).**
|
|
72
|
+
|
|
73
|
+
- Warning split: `--warning` is the original bright yellow again in the three light themes (`light.yaml` 84.96%/76.00%,
|
|
74
|
+
`t3-code-light.yaml` 77.24%/68.24%, `t3-chat-light.yaml` 76.86%/67.86%), for backgrounds, icons, and status dots. New
|
|
75
|
+
token `--warning-text` (Tailwind `text-warning-text`) for warning text: the yellow at 62.50% lightness in light themes (the
|
|
76
|
+
value story 3.4 used), the bright yellow in dark ones (`semantic-mapping.ts`). No kit component prints warning text today
|
|
77
|
+
(no warning Badge or Label variant; the warning Toast colours only its icon), so none changed; a future one uses
|
|
78
|
+
`text-warning-text`. The contrast check drops `--warning` on `--warning-subtle` and checks `--warning-text` on
|
|
79
|
+
`--warning-subtle` and on `--bg` (≥ 3).
|
|
80
|
+
- Tag chips: `TagInput`'s chips keep the `feature` label tokens; their dot uses the new `--label-tag-dot` (Tailwind
|
|
81
|
+
`bg-label-tag-dot`): the feature label's dot in light themes, `--accent` in dark ones.
|
|
82
|
+
- The OVERRIDES test compares Linear Light with upstream minus these two tokens (no yellow substitution any more).
|
|
83
|
+
|
|
84
|
+
11. **Stylesheet scope.** The host compiles one kit stylesheet from the kit's sources and Bridge's own plugins'
|
|
85
|
+
`plugins/**/*.{ts,tsx}` (the shell; tests and `node_modules` left out). A third-party plugin's utility classes are not compiled: it brings its own CSS, or uses
|
|
86
|
+
only classes the kit and the shell already use.
|
|
87
|
+
12. **Seam review (entry 8).** `ScrollArea` wraps its root in `CSPProvider disableStyleElements`, and the generated reset
|
|
88
|
+
carries Base UI's scrollbar-hiding rule (`.base-ui-disable-scrollbar`, in `@layer base`) in place of the inline `<style>`
|
|
89
|
+
the page's CSP refuses. `getInitials` takes the first code point of a word, not the first UTF-16 unit (an emoji title).
|
|
90
|
+
`select.tsx`'s header comment no longer names a branch.
|
|
91
|
+
13. **Sidebar tree (entry 15).** New `components/icon` (`Icon`, `ICON_NAMES`): a curated lucide set by kebab-case name,
|
|
92
|
+
`file` for an unknown or missing one. `lucide-react` 1.48.0 is a kit dependency, bundled into the kit module (only the
|
|
93
|
+
icons named in `icon.tsx`). Its license is ISC ("Copyright (c) 2026 Lucide Icons and Contributors"); four of the icons used
|
|
94
|
+
(`calendar`, `database`, `search`, `terminal`) derive from Feather and carry its MIT notice as well ("Copyright (c)
|
|
95
|
+
2013-present Cole Bemis"); both notices are in `node_modules/lucide-react/LICENSE` and ship with the package.
|
|
96
|
+
`SidebarGroupTrigger`'s inline chevron is extracted into a private `SidebarChevron`, now `aria-hidden`, shared with the
|
|
97
|
+
new parts: `SidebarGroupTrigger` gains `variant="section"` (the `SidebarSection` look, chevron on the right); new
|
|
98
|
+
`SidebarTreeItem` (a tree row: icon or toggle, label button, 12px of indent a level; a click anywhere on the row but the
|
|
99
|
+
toggle selects; the chevron replaces the icon on hover, keyboard focus, and always under `(hover: none)`). `Breadcrumb`
|
|
100
|
+
items gain `onClick`: a non-terminal item with it (and no `href`) is a `<button>`; the last item stays the current page,
|
|
101
|
+
focusable (`tabIndex={-1}`), and takes the focus after an item's button was clicked (the button is usually unmounted).
|
|
102
|
+
`SidebarTreeItem`'s label carries `aria-expanded` when the item has children; a consumer's `onClick` on the row runs
|
|
103
|
+
before `onSelect`, which `preventDefault()` skips. New `SidebarCollapse` (`open`): content that stays mounted and
|
|
104
|
+
animates its height (grid rows `0fr` → `1fr`, opacity, 150ms ease-out, none under reduced motion); closed it is `inert`
|
|
105
|
+
and `aria-hidden`, and `invisible` once the animation ends (open, visibility is inherited, so nested ones stay hidden).
|
|
106
|
+
`SidebarGroupContent` renders through it instead of unmounting when collapsed; the upstream test "does not render when
|
|
107
|
+
collapsed" now asserts the inert, aria-hidden content instead. New `SidebarResizeHandle` (with `SIDEBAR_MIN_WIDTH` 190,
|
|
108
|
+
`SIDEBAR_DEFAULT_WIDTH` 220, `clampSidebarWidth`: 190px to half the viewport), after an earlier Bridge prototype's handle:
|
|
109
|
+
an 8px `role="separator"` (aria values, `tabIndex` 0) on the sidebar's right border, a 2px line on hover and keyboard focus,
|
|
110
|
+
stronger while dragging (kit tokens), pointer-capture drag measured from its positioned container's left edge (the
|
|
111
|
+
page keeps `col-resize` and selects no text meanwhile), ArrowLeft/Right 8px, double-click back to 220px. `Sidebar`'s fixed
|
|
112
|
+
`w-[220px]` becomes `w-(--sidebar-width,220px)` (the upstream test and meta follow): the handle's owner sets the variable.
|
|
113
|
+
Each with tests and meta.
|
|
114
|
+
14. **Sessions chat (Sessions redesign).** `Icon` gains `arrow-up`, `brain`, `check`, `chevron-right`, `square`,
|
|
115
|
+
`square-pen`, `wrench`, and `x` (lucide, same license) for the Sessions view's actions and tool states.
|
|
116
|
+
15. **Combobox (kit gaps, 2026-10-08).** New `components/combobox` (`Combobox`), not from mastaui: one controlled,
|
|
117
|
+
generic single-value picker on Base UI's Combobox, styled as `Select` (frame = `inputVariants` outline, popup =
|
|
118
|
+
`DropdownMenuContent` look, items = `dropdownMenuItemVariants` with a check); `size` `sm` | `default` | `lg` (`lg` by
|
|
119
|
+
default, as `SelectTrigger`). An async `onValueChange` keeps the picked label shown until `value` changes or its
|
|
120
|
+
promise settles. The caller owns
|
|
121
|
+
`items` and may search them on the server (`onInputChange`, `filter={null}`); the default filter is Base UI's
|
|
122
|
+
(`contains` through an `Intl.Collator` at base sensitivity). The input text is controlled so that clearing it or
|
|
123
|
+
Escape never unpicks: it reverts to the value's label. With a jsdom test and a `*.meta.yaml`.
|
|
124
|
+
16. **Picker (kit gaps, 2026-10-08).** New `components/picker` (`Picker`), not from mastaui: a Linear-style property
|
|
125
|
+
menu for detail cards on Base UI's Combobox with the input inside the popup. The trigger is a `buttonVariants`
|
|
126
|
+
`property` pill (the value's icon and label, `placeholder` muted while `null`; `size` `sm` | `default`); the popup has
|
|
127
|
+
the `Combobox` look, a borderless search row and a separator above `dropdownMenuItemVariants` options (icon, label,
|
|
128
|
+
check, number hint). The same data model as `Combobox`: `combobox.tsx` now exports its shared internals
|
|
129
|
+
(`usePendingPick`, `ComboboxOptions` with `leading`/`trailing` slots) to the module only, `Combobox` unchanged. 5 or
|
|
130
|
+
fewer local items: no search row, the list takes the focus. 10 or fewer local options and no search text: 1–9 then 0
|
|
131
|
+
pick (by `event.code`). A printable key on the closed pill opens its search instead of Base UI's typeahead. With a
|
|
132
|
+
jsdom test and a `*.meta.yaml`.
|
|
133
|
+
17. **Design-system storyboard (kit gaps, 2026-10-08).** Found while writing the `design-system` plugin's stories:
|
|
134
|
+
|
|
135
|
+
- New `components/section` (`Section`), not from mastaui: a titled block at three scales (`size` `lg`: an h2 page
|
|
136
|
+
title, text-xl semibold, and a text-sm secondary lead; `default`: an h3 section title, text-sm semibold; `sm`: an h4
|
|
137
|
+
caption, text-xs medium secondary), an optional `description` and header `actions`, then the children; a `<section>`
|
|
138
|
+
labelled by its heading. The kit had no heading typography a plugin could use (plugins cannot add Tailwind classes).
|
|
139
|
+
With a jsdom test and a `*.meta.yaml`.
|
|
140
|
+
- `SortableBoard` no longer injects a `<style>` for its swing keyframes (the page's CSP refused it, a console error on
|
|
141
|
+
every board): `bridge-ui-swing-settle` is in the generated stylesheet (`generate-tokens.ts`, after the toast's).
|
|
142
|
+
- `ResizableHandle` read `data-orientation`, which react-resizable-panels 4 never sets: a vertical group's handle had
|
|
143
|
+
no line and its grip stood sideways. It now turns on the library's `aria-orientation="horizontal"`, and its active
|
|
144
|
+
colour on `data-separator="active"` (was `data-[resize-handle-active]`).
|
|
145
|
+
- `ListItem` sets `text-sm` on the row: plain children were at the page's 16px (only the two-line row sized its text).
|
|
146
|
+
- `Label` is `whitespace-nowrap`: a two-word chip in a narrow column wrapped out of its 18px pill.
|
|
147
|
+
- `Breadcrumb`'s link items are `no-underline` (no preflight: the browser underlined them).
|
|
148
|
+
|
|
149
|
+
18. **Sessions triage (kit gaps, 2026-10-08).** `Icon` gains `pin`, `pin-off`, `undo` (lucide `Undo2`),
|
|
150
|
+
`archive-restore` and `circle-dot`, for the sessions list's pin, un-settle, restore and mark-unread actions.
|
|
151
|
+
`DropdownMenuItem` dims a disabled item (`data-disabled`: 50 % opacity, no pointer events): it looked enabled.
|
|
152
|
+
`Icon` gains `arrow-down` (Move down). `SortableItem`'s `dragFullItem` takes `"pointer"`: the whole item drags with
|
|
153
|
+
the pointer only, without dnd-kit's button role, tab stop and key listener (a pinned session row is a `List` option:
|
|
154
|
+
the role sat between the listbox and the option, and Space on the option picked the row up instead of selecting it).
|
|
155
|
+
A standalone `SortableList` takes `itemLabel`: its announcements name the item and its position, not its id.
|
|
156
|
+
19. **Renderings (research-015 spike, 2026-10-09).** New `kit/kit.tsx`: a registry of renderings packs register
|
|
157
|
+
(`registerRendering`, `KIT_CONTRACT`), chosen on `<html data-kit>` (`setKit`, `useKit`, `useRenderings`). A rendering
|
|
158
|
+
styles the components through the contract: CSS on their attributes (Button gains `data-component`, `data-variant`,
|
|
159
|
+
`data-size`; Input and Textarea `data-variant`, `data-size`; DropdownMenuItem `data-variant`), parts (`KitPart`:
|
|
160
|
+
`checkbox.glyph`), roots (`useKitRoot`: `dialog.content`, through Base UI's `render`) and capabilities
|
|
161
|
+
(`useCapability`: `dialog.dragByTitleBar`, in `dialog/drag.ts`; `scrollArea.stepButtons`, in `scroll-area/steps.tsx`). `kit/check-rendering.tsx` (`@bridge/ui/testing`)
|
|
162
|
+
checks a rendering keeps the contract. The Windows 98 rendering is a pack outside this repository.
|
|
163
|
+
20. **Icon sets (trial, 2026-10-09).** New `components/icon/icon-sets.ts` (`registerIconSet`, `setIconSet`, `getIconSet`,
|
|
164
|
+
`useIconSets`, `useIconSetId`, `ICON_SET_STORAGE_KEY`, `DEFAULT_ICON_SET`): `Icon` draws from the set chosen on
|
|
165
|
+
`<html data-icons>`, a choice beside the rendering and the theme. Lucide is the kit's own and the default; other
|
|
166
|
+
sets are SVG data a plugin registers (`@bridge-app/icons-win98se`, outside this repository). A chosen set not yet
|
|
167
|
+
registered shows an empty box; a name the set lacks is drawn by Lucide.
|
|
168
|
+
21. **ScrollArea above sticky content (2026-10-09).** `ScrollAreaScrollbar` gets `z-20`: a List's sticky group header
|
|
169
|
+
(`z-10`) covered the top of the scrollbar while it scrolled.
|
|
170
|
+
22. **`asChild` shim removed (audit L4-03, 2026-10-18).** `lib/legacy-as-child.ts` (named in 1 and 7) stripped the
|
|
171
|
+
Radix-era `asChild` prop from `Button` and `SidebarItem` and warned about it; no consumer passes it any more, in this
|
|
172
|
+
repository or in `~/Projects/bridge-plugins`, so it and its two calls are gone.
|
|
173
|
+
23. **`ImageField` (research-053 D3, owner-approved, 2026-10-23).** New `components/image-field`, not from mastaui: one
|
|
174
|
+
image a form or a record holds, its thumbnail contained in a fixed frame (`ratio`), its name and size, Upload (the
|
|
175
|
+
picker or a drop, through `DropZone`), Replace, Remove, a `Progress` while it uploads, a refusal in place with its
|
|
176
|
+
hint. It takes `upload` and `viewUrl` callbacks and fetches nothing. With a jsdom test and a `*.meta.yaml`;
|
|
177
|
+
`Thumbnail`'s and `DropZone`'s metas point at it for one image.
|
|
178
|
+
24. **`Wizard` (bridge#126, owner-approved, 2026-10-27).** New `components/wizard`, not from mastaui: a `Dialog` in steps
|
|
179
|
+
(`WizardStep`), one shown at a time; a step goes on by a choice in it (`useWizard().go`) or by its primary button
|
|
180
|
+
(`onSubmit` answers the next step's id, or nothing to close); Back along the steps taken; a busy submit keeps the
|
|
181
|
+
dialog open; a failure stays in its step. `Icon` gains `folder-open`, `folder-plus` and `folder-root`. With a jsdom
|
|
182
|
+
test and a `*.meta.yaml`; `Dialog`'s and `Breadcrumb`'s metas point at it for steps.
|