@crisp-ui-kit/crisp 0.5.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -0
- package/dist/accordion.css +9 -1
- package/dist/appshell.css +12 -4
- package/dist/authshell.css +57 -0
- package/dist/authshell.d.ts +7 -0
- package/dist/avatargroup.css +2 -2
- package/dist/badge.css +4 -4
- package/dist/barchart.css +13 -5
- package/dist/board.css +9 -1
- package/dist/bulkbar.css +11 -3
- package/dist/button.css +15 -1
- package/dist/button.d.ts +2 -1
- package/dist/card.css +8 -0
- package/dist/checkbox.css +17 -1
- package/dist/cjs/components/accordion/accordion.js +69 -0
- package/dist/cjs/components/accordion/accordion.recipe.js +26 -0
- package/dist/cjs/components/accordion/index.js +7 -0
- package/dist/cjs/components/avatar/avatar.js +44 -0
- package/dist/cjs/components/avatar/avatar.recipe.js +42 -0
- package/dist/cjs/components/avatar/index.js +7 -0
- package/dist/cjs/components/avatargroup/avatargroup.js +52 -0
- package/dist/cjs/components/avatargroup/avatargroup.recipe.js +18 -0
- package/dist/cjs/components/avatargroup/index.js +7 -0
- package/dist/cjs/components/badge/badge.js +44 -0
- package/dist/cjs/components/badge/badge.recipe.js +68 -0
- package/dist/cjs/components/badge/index.js +7 -0
- package/dist/cjs/components/barchart/barchart.js +45 -0
- package/dist/cjs/components/barchart/barchart.recipe.js +34 -0
- package/dist/cjs/components/barchart/index.js +7 -0
- package/dist/cjs/components/breadcrumb/breadcrumb.js +53 -0
- package/dist/cjs/components/breadcrumb/breadcrumb.recipe.js +21 -0
- package/dist/cjs/components/breadcrumb/index.js +7 -0
- package/dist/cjs/components/bulkbar/bulkbar.js +53 -0
- package/dist/cjs/components/bulkbar/bulkbar.recipe.js +31 -0
- package/dist/cjs/components/bulkbar/index.js +8 -0
- package/dist/cjs/components/button/button.js +62 -0
- package/dist/cjs/components/button/button.recipe.js +58 -0
- package/dist/cjs/components/button/index.js +7 -0
- package/dist/cjs/components/callout/callout.js +25 -0
- package/dist/cjs/components/callout/callout.recipe.js +29 -0
- package/dist/cjs/components/callout/index.js +7 -0
- package/dist/cjs/components/card/card.js +54 -0
- package/dist/cjs/components/card/card.recipe.js +31 -0
- package/dist/cjs/components/card/index.js +10 -0
- package/dist/cjs/components/checkbox/checkbox.js +56 -0
- package/dist/cjs/components/checkbox/checkbox.recipe.js +34 -0
- package/dist/cjs/components/checkbox/index.js +7 -0
- package/dist/cjs/components/columncalc/columncalc.js +139 -0
- package/dist/cjs/components/columncalc/columncalc.recipe.js +33 -0
- package/dist/cjs/components/columncalc/index.js +10 -0
- package/dist/cjs/components/contextmenu/contextmenu.js +78 -0
- package/dist/cjs/components/contextmenu/contextmenu.recipe.js +24 -0
- package/dist/cjs/components/contextmenu/index.js +7 -0
- package/dist/cjs/components/datatable/datatable.js +508 -0
- package/dist/cjs/components/datatable/datatable.recipe.js +113 -0
- package/dist/cjs/components/datatable/index.js +7 -0
- package/dist/cjs/components/datepicker/datepicker.js +153 -0
- package/dist/cjs/components/datepicker/datepicker.recipe.js +180 -0
- package/dist/cjs/components/datepicker/index.js +19 -0
- package/dist/cjs/components/datepickerfield/datepickerfield.js +85 -0
- package/dist/cjs/components/datepickerfield/datepickerfield.recipe.js +44 -0
- package/dist/cjs/components/datepickerfield/index.js +7 -0
- package/dist/cjs/components/dialog/dialog.js +86 -0
- package/dist/cjs/components/dialog/dialog.recipe.js +35 -0
- package/dist/cjs/components/dialog/index.js +9 -0
- package/dist/cjs/components/divider/divider.js +10 -0
- package/dist/cjs/components/divider/divider.recipe.js +17 -0
- package/dist/cjs/components/divider/index.js +7 -0
- package/dist/cjs/components/donutchart/donutchart.js +41 -0
- package/dist/cjs/components/donutchart/donutchart.recipe.js +30 -0
- package/dist/cjs/components/donutchart/index.js +7 -0
- package/dist/cjs/components/drawer/drawer.js +80 -0
- package/dist/cjs/components/drawer/drawer.recipe.js +30 -0
- package/dist/cjs/components/drawer/index.js +9 -0
- package/dist/cjs/components/emptystate/emptystate.js +10 -0
- package/dist/cjs/components/emptystate/emptystate.recipe.js +34 -0
- package/dist/cjs/components/emptystate/index.js +7 -0
- package/dist/cjs/components/formfield/formfield.js +50 -0
- package/dist/cjs/components/formfield/formfield.recipe.js +22 -0
- package/dist/cjs/components/formfield/index.js +7 -0
- package/dist/cjs/components/input/index.js +7 -0
- package/dist/cjs/components/input/input.js +47 -0
- package/dist/cjs/components/input/input.recipe.js +59 -0
- package/dist/cjs/components/kbd/index.js +7 -0
- package/dist/cjs/components/kbd/kbd.js +44 -0
- package/dist/cjs/components/kbd/kbd.recipe.js +23 -0
- package/dist/cjs/components/linechart/index.js +7 -0
- package/dist/cjs/components/linechart/linechart.js +57 -0
- package/dist/cjs/components/linechart/linechart.recipe.js +35 -0
- package/dist/cjs/components/menu/index.js +14 -0
- package/dist/cjs/components/menu/menu-keyboard.js +117 -0
- package/dist/cjs/components/menu/menu.js +144 -0
- package/dist/cjs/components/menu/menu.recipe.js +54 -0
- package/dist/cjs/components/multiselect/index.js +7 -0
- package/dist/cjs/components/multiselect/multiselect.js +161 -0
- package/dist/cjs/components/multiselect/multiselect.recipe.js +71 -0
- package/dist/cjs/components/popover/index.js +7 -0
- package/dist/cjs/components/popover/popover.js +106 -0
- package/dist/cjs/components/popover/popover.recipe.js +21 -0
- package/dist/cjs/components/progress/index.js +7 -0
- package/dist/cjs/components/progress/progress.js +26 -0
- package/dist/cjs/components/progress/progress.recipe.js +20 -0
- package/dist/cjs/components/radiogroup/index.js +8 -0
- package/dist/cjs/components/radiogroup/radiogroup.js +83 -0
- package/dist/cjs/components/radiogroup/radiogroup.recipe.js +40 -0
- package/dist/cjs/components/resizablepanel/index.js +12 -0
- package/dist/cjs/components/resizablepanel/resizablepanel.js +176 -0
- package/dist/cjs/components/resizablepanel/resizablepanel.recipe.js +69 -0
- package/dist/cjs/components/segmented/index.js +7 -0
- package/dist/cjs/components/segmented/segmented.js +95 -0
- package/dist/cjs/components/segmented/segmented.recipe.js +23 -0
- package/dist/cjs/components/select/index.js +7 -0
- package/dist/cjs/components/select/select.js +180 -0
- package/dist/cjs/components/select/select.recipe.js +79 -0
- package/dist/cjs/components/skeleton/index.js +7 -0
- package/dist/cjs/components/skeleton/skeleton.js +13 -0
- package/dist/cjs/components/skeleton/skeleton.recipe.js +17 -0
- package/dist/cjs/components/spinner/index.js +7 -0
- package/dist/cjs/components/spinner/spinner.js +15 -0
- package/dist/cjs/components/spinner/spinner.recipe.js +16 -0
- package/dist/cjs/components/stagebar/index.js +7 -0
- package/dist/cjs/components/stagebar/stagebar.js +26 -0
- package/dist/cjs/components/stagebar/stagebar.recipe.js +17 -0
- package/dist/cjs/components/statcard/index.js +7 -0
- package/dist/cjs/components/statcard/statcard.js +15 -0
- package/dist/cjs/components/statcard/statcard.recipe.js +37 -0
- package/dist/cjs/components/switch/index.js +7 -0
- package/dist/cjs/components/switch/switch.js +58 -0
- package/dist/cjs/components/switch/switch.recipe.js +29 -0
- package/dist/cjs/components/table/index.js +14 -0
- package/dist/cjs/components/table/table.js +66 -0
- package/dist/cjs/components/table/table.recipe.js +43 -0
- package/dist/cjs/components/tabletoolbar/index.js +20 -0
- package/dist/cjs/components/tabletoolbar/tabletoolbar.chrome.js +84 -0
- package/dist/cjs/components/tabletoolbar/tabletoolbar.js +237 -0
- package/dist/cjs/components/tabletoolbar/tabletoolbar.recipe.js +26 -0
- package/dist/cjs/components/tabs/index.js +7 -0
- package/dist/cjs/components/tabs/tabs.js +106 -0
- package/dist/cjs/components/tabs/tabs.recipe.js +36 -0
- package/dist/cjs/components/textarea/index.js +7 -0
- package/dist/cjs/components/textarea/textarea.js +56 -0
- package/dist/cjs/components/textarea/textarea.recipe.js +46 -0
- package/dist/cjs/components/toast/index.js +8 -0
- package/dist/cjs/components/toast/toast.js +95 -0
- package/dist/cjs/components/toast/toast.recipe.js +31 -0
- package/dist/cjs/components/tooltip/index.js +7 -0
- package/dist/cjs/components/tooltip/tooltip.js +95 -0
- package/dist/cjs/components/tooltip/tooltip.recipe.js +16 -0
- package/dist/cjs/components/wheelpicker/index.js +7 -0
- package/dist/cjs/components/wheelpicker/wheelpicker.js +134 -0
- package/dist/cjs/components/wheelpicker/wheelpicker.recipe.js +95 -0
- package/dist/cjs/core/cx.js +8 -0
- package/dist/cjs/core/define.js +6 -0
- package/dist/cjs/core/index.js +11 -0
- package/dist/cjs/core/primitive.js +49 -0
- package/dist/cjs/core/resolve.js +44 -0
- package/dist/cjs/core/types.js +2 -0
- package/dist/cjs/index.js +92 -0
- package/dist/cjs/package.json +3 -0
- package/dist/cjs/product/appshell/appshell.js +104 -0
- package/dist/cjs/product/appshell/appshell.recipe.js +30 -0
- package/dist/cjs/product/appshell/index.js +7 -0
- package/dist/cjs/product/authshell/authshell.js +21 -0
- package/dist/cjs/product/authshell/authshell.recipe.js +67 -0
- package/dist/cjs/product/authshell/index.js +7 -0
- package/dist/cjs/product/board/board.js +78 -0
- package/dist/cjs/product/board/board.recipe.js +31 -0
- package/dist/cjs/product/board/index.js +7 -0
- package/dist/cjs/product/command/command.js +238 -0
- package/dist/cjs/product/command/command.recipe.js +47 -0
- package/dist/cjs/product/command/index.js +8 -0
- package/dist/cjs/product/entitycard/entitycard.js +14 -0
- package/dist/cjs/product/entitycard/entitycard.recipe.js +32 -0
- package/dist/cjs/product/entitycard/index.js +7 -0
- package/dist/cjs/product/flowcanvas/flowcanvas.js +121 -0
- package/dist/cjs/product/flowcanvas/flowcanvas.recipe.js +28 -0
- package/dist/cjs/product/flowcanvas/index.js +7 -0
- package/dist/cjs/product/inbox/inbox.js +16 -0
- package/dist/cjs/product/inbox/inbox.recipe.js +46 -0
- package/dist/cjs/product/inbox/index.js +7 -0
- package/dist/cjs/product/listpage/index.js +8 -0
- package/dist/cjs/product/listpage/listpage.js +25 -0
- package/dist/cjs/product/listpage/listpage.recipe.js +46 -0
- package/dist/cjs/product/navitem/index.js +5 -0
- package/dist/cjs/product/navitem/navitem.js +44 -0
- package/dist/cjs/product/navitem/navitem.recipe.js +36 -0
- package/dist/cjs/product/onboarding/index.js +7 -0
- package/dist/cjs/product/onboarding/onboarding.js +17 -0
- package/dist/cjs/product/onboarding/onboarding.recipe.js +44 -0
- package/dist/cjs/product/recordpage/index.js +7 -0
- package/dist/cjs/product/recordpage/recordpage.js +409 -0
- package/dist/cjs/product/recordpage/recordpage.recipe.js +162 -0
- package/dist/cjs/product/recordpanel/index.js +7 -0
- package/dist/cjs/product/recordpanel/recordpanel.js +83 -0
- package/dist/cjs/product/recordpanel/recordpanel.recipe.js +51 -0
- package/dist/cjs/product/recordstable/company-logos.js +29 -0
- package/dist/cjs/product/recordstable/index.js +10 -0
- package/dist/cjs/product/recordstable/recordstable.js +1092 -0
- package/dist/cjs/product/recordstable/recordstable.recipe.js +152 -0
- package/dist/cjs/product/recordstable/recordstable.tag.js +21 -0
- package/dist/cjs/product/richtext/index.js +7 -0
- package/dist/cjs/product/richtext/richtext.js +147 -0
- package/dist/cjs/product/richtext/richtext.recipe.js +43 -0
- package/dist/cjs/product/settingssection/index.js +7 -0
- package/dist/cjs/product/settingssection/settingssection.js +14 -0
- package/dist/cjs/product/settingssection/settingssection.recipe.js +23 -0
- package/dist/cjs/product/settingsshell/index.js +7 -0
- package/dist/cjs/product/settingsshell/settingsshell.js +59 -0
- package/dist/cjs/product/settingsshell/settingsshell.recipe.js +46 -0
- package/dist/cjs/product/sidebar/index.js +13 -0
- package/dist/cjs/product/sidebar/sidebar.js +148 -0
- package/dist/cjs/product/sidebar/sidebar.recipe.js +46 -0
- package/dist/cjs/product/tasklist/index.js +7 -0
- package/dist/cjs/product/tasklist/tasklist.js +19 -0
- package/dist/cjs/product/tasklist/tasklist.recipe.js +38 -0
- package/dist/cjs/product/trialbanner/index.js +7 -0
- package/dist/cjs/product/trialbanner/trialbanner.js +13 -0
- package/dist/cjs/product/trialbanner/trialbanner.recipe.js +32 -0
- package/dist/cjs/product/viewtoggle/index.js +7 -0
- package/dist/cjs/product/viewtoggle/viewtoggle.js +55 -0
- package/dist/cjs/product/viewtoggle/viewtoggle.recipe.js +27 -0
- package/dist/cjs/tokens/contract.js +21 -0
- package/dist/cjs/tokens/elevation.js +47 -0
- package/dist/cjs/tokens/index.js +18 -0
- package/dist/cjs/tokens/palette.js +63 -0
- package/dist/cjs/tokens/scale.js +70 -0
- package/dist/cjs/tokens/semantic.js +57 -0
- package/dist/columncalc.css +26 -0
- package/dist/columncalc.d.ts +7 -0
- package/dist/command.css +34 -1
- package/dist/contextmenu.css +10 -2
- package/dist/datatable.css +60 -14
- package/dist/datepicker.css +165 -19
- package/dist/datepicker.d.ts +2 -2
- package/dist/datepickerfield.css +27 -0
- package/dist/datepickerfield.d.ts +7 -0
- package/dist/dialog.css +10 -2
- package/dist/donutchart.css +8 -0
- package/dist/drawer.css +13 -5
- package/dist/entitycard.css +10 -2
- package/dist/esm/components/accordion/accordion.js +17 -16
- package/dist/esm/components/accordion/accordion.recipe.js +1 -1
- package/dist/esm/components/avatargroup/avatargroup.js +2 -2
- package/dist/esm/components/avatargroup/avatargroup.recipe.js +2 -2
- package/dist/esm/components/badge/badge.recipe.js +4 -4
- package/dist/esm/components/barchart/barchart.js +15 -2
- package/dist/esm/components/barchart/barchart.recipe.js +10 -5
- package/dist/esm/components/breadcrumb/breadcrumb.js +2 -2
- package/dist/esm/components/bulkbar/bulkbar.js +2 -2
- package/dist/esm/components/bulkbar/bulkbar.recipe.js +4 -4
- package/dist/esm/components/button/button.js +13 -2
- package/dist/esm/components/button/button.recipe.js +20 -4
- package/dist/esm/components/callout/callout.js +2 -2
- package/dist/esm/components/checkbox/checkbox.recipe.js +9 -1
- package/dist/esm/components/columncalc/columncalc.js +100 -0
- package/dist/esm/components/columncalc/columncalc.recipe.js +30 -0
- package/dist/esm/components/columncalc/index.js +1 -0
- package/dist/esm/components/contextmenu/contextmenu.recipe.js +4 -4
- package/dist/esm/components/datatable/datatable.js +276 -49
- package/dist/esm/components/datatable/datatable.recipe.js +54 -16
- package/dist/esm/components/datepicker/datepicker.js +104 -53
- package/dist/esm/components/datepicker/datepicker.recipe.js +170 -25
- package/dist/esm/components/datepicker/index.js +1 -1
- package/dist/esm/components/datepickerfield/datepickerfield.js +49 -0
- package/dist/esm/components/datepickerfield/datepickerfield.recipe.js +41 -0
- package/dist/esm/components/datepickerfield/index.js +2 -0
- package/dist/esm/components/dialog/dialog.js +2 -2
- package/dist/esm/components/dialog/dialog.recipe.js +4 -4
- package/dist/esm/components/divider/divider.js +2 -2
- package/dist/esm/components/donutchart/donutchart.js +2 -2
- package/dist/esm/components/drawer/drawer.js +2 -2
- package/dist/esm/components/drawer/drawer.recipe.js +6 -6
- package/dist/esm/components/emptystate/emptystate.js +2 -2
- package/dist/esm/components/formfield/formfield.js +2 -2
- package/dist/esm/components/input/input.js +6 -3
- package/dist/esm/components/input/input.recipe.js +38 -5
- package/dist/esm/components/linechart/linechart.js +15 -2
- package/dist/esm/components/linechart/linechart.recipe.js +10 -5
- package/dist/esm/components/menu/index.js +1 -0
- package/dist/esm/components/menu/menu-keyboard.js +80 -0
- package/dist/esm/components/menu/menu.js +27 -60
- package/dist/esm/components/menu/menu.recipe.js +5 -5
- package/dist/esm/components/multiselect/multiselect.js +10 -3
- package/dist/esm/components/multiselect/multiselect.recipe.js +8 -8
- package/dist/esm/components/popover/popover.js +2 -2
- package/dist/esm/components/popover/popover.recipe.js +2 -2
- package/dist/esm/components/progress/progress.js +3 -3
- package/dist/esm/components/radiogroup/radiogroup.js +2 -2
- package/dist/esm/components/radiogroup/radiogroup.recipe.js +1 -1
- package/dist/esm/components/resizablepanel/index.js +2 -0
- package/dist/esm/components/resizablepanel/resizablepanel.js +135 -0
- package/dist/esm/components/resizablepanel/resizablepanel.recipe.js +66 -0
- package/dist/esm/components/segmented/segmented.js +2 -2
- package/dist/esm/components/select/select.js +2 -2
- package/dist/esm/components/select/select.recipe.js +6 -6
- package/dist/esm/components/skeleton/skeleton.js +5 -2
- package/dist/esm/components/spinner/spinner.js +3 -2
- package/dist/esm/components/stagebar/stagebar.js +2 -2
- package/dist/esm/components/statcard/statcard.js +2 -2
- package/dist/esm/components/table/table.recipe.js +6 -6
- package/dist/esm/components/tabletoolbar/tabletoolbar.chrome.js +3 -3
- package/dist/esm/components/tabletoolbar/tabletoolbar.js +21 -13
- package/dist/esm/components/tabs/tabs.js +2 -2
- package/dist/esm/components/tabs/tabs.recipe.js +4 -4
- package/dist/esm/components/textarea/textarea.js +5 -5
- package/dist/esm/components/textarea/textarea.recipe.js +16 -4
- package/dist/esm/components/toast/toast.js +4 -4
- package/dist/esm/components/toast/toast.recipe.js +2 -2
- package/dist/esm/components/tooltip/tooltip.js +21 -7
- package/dist/esm/components/wheelpicker/index.js +2 -0
- package/dist/esm/components/wheelpicker/wheelpicker.js +98 -0
- package/dist/esm/components/wheelpicker/wheelpicker.recipe.js +92 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/product/appshell/appshell.js +33 -9
- package/dist/esm/product/appshell/appshell.recipe.js +4 -4
- package/dist/esm/product/authshell/authshell.js +18 -0
- package/dist/esm/product/authshell/authshell.recipe.js +64 -0
- package/dist/esm/product/authshell/index.js +2 -0
- package/dist/esm/product/board/board.js +2 -2
- package/dist/esm/product/board/board.recipe.js +1 -1
- package/dist/esm/product/command/command.js +19 -6
- package/dist/esm/product/command/command.recipe.js +27 -2
- package/dist/esm/product/entitycard/entitycard.js +2 -2
- package/dist/esm/product/entitycard/entitycard.recipe.js +2 -2
- package/dist/esm/product/flowcanvas/flowcanvas.js +4 -4
- package/dist/esm/product/inbox/inbox.recipe.js +1 -1
- package/dist/esm/product/listpage/listpage.recipe.js +3 -3
- package/dist/esm/product/navitem/navitem.recipe.js +13 -1
- package/dist/esm/product/onboarding/onboarding.js +2 -2
- package/dist/esm/product/onboarding/onboarding.recipe.js +2 -2
- package/dist/esm/product/recordpage/recordpage.js +133 -47
- package/dist/esm/product/recordpage/recordpage.recipe.js +19 -17
- package/dist/esm/product/recordpanel/recordpanel.js +4 -4
- package/dist/esm/product/recordpanel/recordpanel.recipe.js +12 -16
- package/dist/esm/product/recordstable/recordstable.js +157 -66
- package/dist/esm/product/recordstable/recordstable.recipe.js +23 -23
- package/dist/esm/product/recordstable/recordstable.tag.js +18 -0
- package/dist/esm/product/richtext/richtext.js +3 -3
- package/dist/esm/product/richtext/richtext.recipe.js +3 -3
- package/dist/esm/product/settingssection/settingssection.js +2 -2
- package/dist/esm/product/settingsshell/settingsshell.js +2 -2
- package/dist/esm/product/settingsshell/settingsshell.recipe.js +7 -2
- package/dist/esm/product/sidebar/sidebar.js +2 -2
- package/dist/esm/product/sidebar/sidebar.recipe.js +27 -2
- package/dist/esm/product/tasklist/tasklist.js +4 -4
- package/dist/esm/product/trialbanner/trialbanner.js +2 -2
- package/dist/esm/product/trialbanner/trialbanner.recipe.js +2 -2
- package/dist/esm/product/viewtoggle/viewtoggle.js +10 -2
- package/dist/esm/product/viewtoggle/viewtoggle.recipe.js +1 -1
- package/dist/esm/tokens/elevation.js +44 -0
- package/dist/esm/tokens/index.js +1 -0
- package/dist/esm/tokens/palette.js +30 -0
- package/dist/esm/tokens/scale.js +7 -0
- package/dist/esm/tokens/semantic.js +24 -0
- package/dist/inbox.css +9 -1
- package/dist/input.css +32 -4
- package/dist/linechart.css +5 -5
- package/dist/listpage.css +11 -3
- package/dist/menu.css +11 -3
- package/dist/multiselect.css +14 -6
- package/dist/native/tokens.d.ts +16 -0
- package/dist/native/tokens.js +221 -0
- package/dist/navitem.css +21 -1
- package/dist/onboarding.css +10 -2
- package/dist/popover.css +8 -0
- package/dist/progress.css +8 -0
- package/dist/radiogroup.css +9 -1
- package/dist/recordpage.css +22 -12
- package/dist/recordpanel.css +25 -15
- package/dist/recordstable.css +37 -23
- package/dist/resizablepanel.css +53 -0
- package/dist/resizablepanel.d.ts +7 -0
- package/dist/richtext.css +11 -3
- package/dist/segmented.css +8 -0
- package/dist/select.css +12 -4
- package/dist/settingsshell.css +15 -2
- package/dist/sidebar.css +34 -1
- package/dist/skeleton.css +8 -0
- package/dist/spinner.css +8 -0
- package/dist/stagebar.css +8 -0
- package/dist/styles.css +2051 -1111
- package/dist/switch.css +8 -0
- package/dist/table.css +14 -6
- package/dist/tabletoolbar.css +8 -0
- package/dist/tabs.css +12 -4
- package/dist/tasklist.css +8 -0
- package/dist/textarea.css +23 -3
- package/dist/toast.css +10 -2
- package/dist/tokens.css +29 -0
- package/dist/tokens.json +217 -0
- package/dist/tooltip.css +8 -0
- package/dist/trialbanner.css +8 -0
- package/dist/types/components/accordion/accordion.d.ts +10 -8
- package/dist/types/components/avatargroup/avatargroup.d.ts +2 -2
- package/dist/types/components/barchart/barchart.d.ts +4 -2
- package/dist/types/components/breadcrumb/breadcrumb.d.ts +2 -2
- package/dist/types/components/bulkbar/bulkbar.d.ts +4 -2
- package/dist/types/components/button/button.d.ts +8 -0
- package/dist/types/components/button/button.recipe.d.ts +12 -0
- package/dist/types/components/callout/callout.d.ts +2 -2
- package/dist/types/components/columncalc/columncalc.d.ts +49 -0
- package/dist/types/components/columncalc/columncalc.recipe.d.ts +3 -0
- package/dist/types/components/columncalc/index.d.ts +1 -0
- package/dist/types/components/datatable/datatable.d.ts +58 -3
- package/dist/types/components/datepicker/datepicker.d.ts +41 -18
- package/dist/types/components/datepicker/datepicker.recipe.d.ts +25 -2
- package/dist/types/components/datepicker/index.d.ts +1 -1
- package/dist/types/components/datepickerfield/datepickerfield.d.ts +35 -0
- package/dist/types/components/datepickerfield/datepickerfield.recipe.d.ts +5 -0
- package/dist/types/components/datepickerfield/index.d.ts +2 -0
- package/dist/types/components/dialog/dialog.d.ts +3 -1
- package/dist/types/components/divider/divider.d.ts +2 -2
- package/dist/types/components/donutchart/donutchart.d.ts +2 -2
- package/dist/types/components/drawer/drawer.d.ts +3 -1
- package/dist/types/components/emptystate/emptystate.d.ts +2 -2
- package/dist/types/components/formfield/formfield.d.ts +7 -4
- package/dist/types/components/input/input.d.ts +8 -2
- package/dist/types/components/linechart/linechart.d.ts +4 -2
- package/dist/types/components/menu/index.d.ts +1 -0
- package/dist/types/components/menu/menu-keyboard.d.ts +33 -0
- package/dist/types/components/menu/menu.d.ts +7 -1
- package/dist/types/components/multiselect/multiselect.d.ts +8 -4
- package/dist/types/components/popover/popover.d.ts +4 -1
- package/dist/types/components/progress/progress.d.ts +2 -2
- package/dist/types/components/radiogroup/radiogroup.d.ts +2 -2
- package/dist/types/components/resizablepanel/index.d.ts +2 -0
- package/dist/types/components/resizablepanel/resizablepanel.d.ts +75 -0
- package/dist/types/components/resizablepanel/resizablepanel.recipe.d.ts +3 -0
- package/dist/types/components/segmented/segmented.d.ts +2 -2
- package/dist/types/components/select/select.d.ts +2 -2
- package/dist/types/components/skeleton/skeleton.d.ts +2 -2
- package/dist/types/components/spinner/spinner.d.ts +2 -2
- package/dist/types/components/stagebar/stagebar.d.ts +2 -2
- package/dist/types/components/statcard/statcard.d.ts +2 -2
- package/dist/types/components/tabletoolbar/tabletoolbar.d.ts +28 -2
- package/dist/types/components/tabs/tabs.d.ts +2 -2
- package/dist/types/components/toast/toast.d.ts +7 -1
- package/dist/types/components/tooltip/tooltip.d.ts +8 -1
- package/dist/types/components/wheelpicker/index.d.ts +2 -0
- package/dist/types/components/wheelpicker/wheelpicker.d.ts +37 -0
- package/dist/types/components/wheelpicker/wheelpicker.recipe.d.ts +26 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/product/appshell/appshell.d.ts +16 -2
- package/dist/types/product/authshell/authshell.d.ts +28 -0
- package/dist/types/product/authshell/authshell.recipe.d.ts +3 -0
- package/dist/types/product/authshell/index.d.ts +2 -0
- package/dist/types/product/board/board.d.ts +2 -2
- package/dist/types/product/command/command.d.ts +25 -1
- package/dist/types/product/entitycard/entitycard.d.ts +2 -2
- package/dist/types/product/flowcanvas/flowcanvas.d.ts +9 -1
- package/dist/types/product/onboarding/onboarding.d.ts +7 -1
- package/dist/types/product/recordpage/recordpage.d.ts +65 -1
- package/dist/types/product/recordpanel/recordpanel.d.ts +8 -2
- package/dist/types/product/recordstable/recordstable.d.ts +90 -1
- package/dist/types/product/recordstable/recordstable.tag.d.ts +10 -0
- package/dist/types/product/richtext/richtext.d.ts +5 -1
- package/dist/types/product/settingssection/settingssection.d.ts +2 -2
- package/dist/types/product/settingsshell/settingsshell.d.ts +6 -2
- package/dist/types/product/sidebar/sidebar.d.ts +8 -0
- package/dist/types/product/tasklist/tasklist.d.ts +5 -1
- package/dist/types/product/trialbanner/trialbanner.d.ts +2 -2
- package/dist/types/product/viewtoggle/viewtoggle.d.ts +11 -5
- package/dist/types/tokens/contract.d.ts +14 -3
- package/dist/types/tokens/elevation.d.ts +44 -0
- package/dist/types/tokens/index.d.ts +1 -0
- package/dist/types/tokens/palette.d.ts +40 -0
- package/dist/types/tokens/scale.d.ts +7 -0
- package/dist/types/tokens/semantic.d.ts +19 -0
- package/dist/viewtoggle.css +9 -1
- package/dist/wheelpicker.css +68 -0
- package/dist/wheelpicker.d.ts +7 -0
- package/package.json +160 -68
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { toolbarChromeBody, toolbarChromeHead, } from "../../components/tabletoolbar/tabletoolbar.chrome.js";
|
|
2
2
|
import { defineRecipe, resolveRecipe } from "../../core/index.js";
|
|
3
3
|
import { contract as c } from "../../tokens/index.js";
|
|
4
|
+
import { recordTagCss } from "./recordstable.tag.js";
|
|
4
5
|
// Attio's record grid, measured: 36px rows, 1px borderSubtle (#eeeff1) grid
|
|
5
6
|
// lines on BOTH axes, sticky checkbox + entity (first) columns, entity = 16px
|
|
6
7
|
// avatar + 14px/500 name, 28px toolbar controls, a floating bulk-action bar.
|
|
@@ -30,13 +31,13 @@ ${toolbarChromeBody("recordstable")}
|
|
|
30
31
|
& .recordstable-scroll::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, ${c.fgPrimary} 34%, transparent); background-clip: padding-box; }
|
|
31
32
|
& .recordstable-scroll::-webkit-scrollbar-corner { background: transparent; }
|
|
32
33
|
& .recordstable-table { table-layout: fixed; border-collapse: separate; border-spacing: 0; }
|
|
33
|
-
& .recordstable-th, & .recordstable-td { position: relative; height: ${c.size.tableRow}; padding: 0 ${c.space["2"]}; border-bottom: 1px solid ${c.borderSubtle}; border-
|
|
34
|
-
& .recordstable-th { position: sticky; top: 0; z-index: 2; height:
|
|
35
|
-
& .recordstable-
|
|
36
|
-
& .recordstable-th-inner { display: flex; align-items: center; gap: ${c.space["1.5"]}; width: 100%; height: 100%; margin: 0; padding: 0; border: none; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-align: left; cursor: pointer; }
|
|
34
|
+
& .recordstable-th, & .recordstable-td { position: relative; height: ${c.size.tableRow}; padding: 0 ${c.space["2"]}; border-bottom: 1px solid ${c.borderSubtle}; border-inline-end: 1px solid ${c.borderSubtle}; text-align: start; white-space: nowrap; overflow: hidden; }
|
|
35
|
+
& .recordstable-th { position: sticky; top: 0; z-index: 2; padding: 0; height: ${c.size.tableHeader}; background: ${c.bgSurface}; font-size: ${c.text.lg}; font-weight: ${c.weight.medium}; letter-spacing: -0.14px; color: color-mix(in srgb, ${c.fgPrimary} 63%, transparent); user-select: none; }
|
|
36
|
+
& .recordstable-th-inner { display: flex; align-items: center; gap: ${c.space["1.5"]}; width: 100%; height: 100%; margin: 0; padding: 0 ${c.space["2"]}; border: none; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-align: start; cursor: pointer; }
|
|
37
37
|
& .recordstable-th-inner svg { flex-shrink: 0; color: color-mix(in srgb, ${c.fgPrimary} 45%, transparent); }
|
|
38
38
|
& .recordstable-th-label { flex: 1; overflow: hidden; text-overflow: ellipsis; }
|
|
39
39
|
& .recordstable-th-rename { width: 100%; min-width: 0; height: 100%; margin: 0; padding: 0; border: none; outline: none; background: none; color: inherit; font: inherit; letter-spacing: inherit; }
|
|
40
|
+
& .recordstable-th-rename:focus { box-shadow: inset 0 0 0 1px ${c.bgBrandSolid}; }
|
|
40
41
|
& .recordstable-sort { flex-shrink: 0; opacity: 0.4; transition: opacity .12s; color: color-mix(in srgb, ${c.fgPrimary} 45%, transparent); }
|
|
41
42
|
& .recordstable-th:hover .recordstable-sort, & .recordstable-th[data-sorted] .recordstable-sort { opacity: 1; }
|
|
42
43
|
& .recordstable-th[data-sorted="desc"] .recordstable-sort svg { transform: rotate(180deg); }
|
|
@@ -72,21 +73,14 @@ ${toolbarChromeBody("recordstable")}
|
|
|
72
73
|
& .recordstable-cell { display: flex; align-items: center; gap: ${c.space["2"]}; height: 100%; min-width: 0; }
|
|
73
74
|
& .recordstable-cell--num { justify-content: flex-end; font-variant-numeric: tabular-nums; }
|
|
74
75
|
& .recordstable-cell--tags { gap: ${c.space["1"]}; }
|
|
75
|
-
|
|
76
|
-
& .recordstable-tag[data-tone="brand"] { background: color-mix(in srgb, ${c.bgBrandSolid} 14%, transparent); color: color-mix(in srgb, ${c.bgBrandSolid} 82%, ${c.fgPrimary}); }
|
|
77
|
-
& .recordstable-tag[data-tone="success"] { background: color-mix(in srgb, ${c.bgSuccess} 16%, transparent); color: color-mix(in srgb, ${c.bgSuccess} 78%, ${c.fgPrimary}); }
|
|
78
|
-
& .recordstable-tag[data-tone="warning"] { background: color-mix(in srgb, ${c.bgWarning} 18%, transparent); color: color-mix(in srgb, ${c.bgWarning} 82%, ${c.fgPrimary}); }
|
|
79
|
-
& .recordstable-tag[data-tone="danger"] { background: color-mix(in srgb, ${c.bgDanger} 15%, transparent); color: color-mix(in srgb, ${c.bgDanger} 80%, ${c.fgPrimary}); }
|
|
80
|
-
& .recordstable-tag[data-tone="purple"] { background: color-mix(in srgb, ${c.bgPurple} 16%, transparent); color: color-mix(in srgb, ${c.bgPurple} 80%, ${c.fgPrimary}); }
|
|
81
|
-
& .recordstable-tag[data-tone="cyan"] { background: color-mix(in srgb, ${c.bgCyan} 18%, transparent); color: color-mix(in srgb, ${c.bgCyan} 82%, ${c.fgPrimary}); }
|
|
82
|
-
& .recordstable-tag[data-tone="orange"] { background: color-mix(in srgb, ${c.bgOrange} 16%, transparent); color: color-mix(in srgb, ${c.bgOrange} 82%, ${c.fgPrimary}); }
|
|
76
|
+
${recordTagCss}
|
|
83
77
|
& .recordstable-muted { color: ${c.fgMuted}; }
|
|
84
78
|
& .recordstable-entity { display: flex; align-items: center; gap: ${c.space["1.5"]}; min-width: 0; color: ${c.fgPrimary}; font-weight: ${c.weight.medium}; text-decoration: none; }
|
|
85
79
|
& .recordstable-entity:hover .recordstable-entity-name { text-decoration: underline; }
|
|
86
80
|
& .recordstable-entity-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
87
|
-
& button.recordstable-entity-name--link { margin: 0; padding: 0; border: none; background: none; font: inherit; color: inherit; letter-spacing: inherit; text-align:
|
|
81
|
+
& button.recordstable-entity-name--link { margin: 0; padding: 0; border: none; background: none; font: inherit; color: inherit; letter-spacing: inherit; text-align: start; cursor: pointer; max-width: 100%; }
|
|
88
82
|
& .recordstable-fav { width: ${c.size.icon}; height: ${c.size.icon}; border-radius: ${c.radius.sm}; flex-shrink: 0; object-fit: cover; background: ${c.bgRaised}; }
|
|
89
|
-
& .recordstable-open { position: absolute;
|
|
83
|
+
& .recordstable-open { position: absolute; inset-inline-end: ${c.space["1"]}; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: none; border-radius: ${c.radius.sm}; background: ${c.bgSurface}; box-shadow: inset 0 0 0 1px ${c.borderDefault}; color: ${c.fgMuted}; font-family: inherit; cursor: pointer; opacity: 0; transition: opacity .12s, background-color .12s; z-index: 3; }
|
|
90
84
|
& .recordstable-open:hover { background: ${c.bgRaised}; color: ${c.fgPrimary}; }
|
|
91
85
|
& tbody tr:hover .recordstable-open { opacity: 1; }
|
|
92
86
|
& .recordstable-link { color: ${c.fgPrimary}; text-decoration: none; overflow: hidden; text-overflow: ellipsis; }
|
|
@@ -94,20 +88,26 @@ ${toolbarChromeBody("recordstable")}
|
|
|
94
88
|
|
|
95
89
|
/* inline edit input */
|
|
96
90
|
& .recordstable-edit { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0 ${c.space["2"]}; border: none; outline: 2px solid ${c.bgBrandSolid}; outline-offset: -2px; border-radius: ${c.radius.sm}; background: ${c.bgSurface}; font-family: inherit; font-size: ${c.text.lg}; color: ${c.fgPrimary}; z-index: 5; }
|
|
97
|
-
& .recordstable-edit--num { text-align:
|
|
91
|
+
& .recordstable-edit--num { text-align: end; font-variant-numeric: tabular-nums; }
|
|
98
92
|
|
|
99
93
|
/* selection / hover / sticky */
|
|
100
94
|
& .recordstable-col-check { width: 40px; min-width: 40px; padding: 0; }
|
|
101
95
|
& .recordstable-check-inner { display: flex; align-items: center; justify-content: center; height: 100%; }
|
|
102
96
|
& .recordstable-col-check, & .recordstable-col-entity { position: sticky; z-index: 3; background: ${c.bgSurface}; }
|
|
103
97
|
& .recordstable-col-check { left: 0; }
|
|
104
|
-
& .recordstable-col-entity { left: 40px; clip-path: inset(0 -
|
|
98
|
+
& .recordstable-col-entity { left: 40px; clip-path: inset(0 -38px 0 0); transition: box-shadow .2s ease; }
|
|
105
99
|
& thead .recordstable-col-check, & thead .recordstable-col-entity { z-index: 4; }
|
|
106
100
|
/* soft shadow on the sticky column edge once the grid is scrolled horizontally */
|
|
107
|
-
& .recordstable-scroll[data-scrolled] .recordstable-col-entity { box-shadow:
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
101
|
+
& .recordstable-scroll[data-scrolled] .recordstable-col-entity { box-shadow: 6px 0 16px 4px rgba(0,0,0,0.12); }
|
|
102
|
+
/* AI-enriched values carry a purple wash. Measured from Attio:
|
|
103
|
+
a full-bleed overlay at #9b69ff 4% (== bgPurple), composited OVER
|
|
104
|
+
whatever row-state background the cell already has, which is why it
|
|
105
|
+
is an ::after and not a background. */
|
|
106
|
+
& .recordstable-td[data-enriched]::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: color-mix(in srgb, ${c.bgPurple} 4%, transparent); }
|
|
107
|
+
& tbody tr:hover .recordstable-td { background: color-mix(in srgb, ${c.fgPrimary} 4%, ${c.bgSurface}); }
|
|
108
|
+
& tbody tr[data-selected] .recordstable-td { background: color-mix(in srgb, ${c.bgBrandSolid} 10%, ${c.bgSurface}); }
|
|
109
|
+
& tbody tr[data-selected]:hover .recordstable-td { background: color-mix(in srgb, ${c.fgPrimary} 4%, color-mix(in srgb, ${c.bgBrandSolid} 10%, ${c.bgSurface})); }
|
|
110
|
+
& .recordstable-th:last-child, & .recordstable-td:last-child { border-inline-end: none; }
|
|
111
111
|
|
|
112
112
|
/* add-row footer */
|
|
113
113
|
& .recordstable-addrow { display: flex; align-items: center; gap: ${c.space["2"]}; width: 100%; height: ${c.size.tableRow}; padding: 0 ${c.space["2"]}; border: none; border-top: 1px solid ${c.borderSubtle}; background: ${c.bgSurface}; color: ${c.fgMuted}; font-family: inherit; font-size: ${c.text.lg}; cursor: pointer; }
|
|
@@ -116,15 +116,15 @@ ${toolbarChromeBody("recordstable")}
|
|
|
116
116
|
& .recordstable-empty { display: flex; align-items: center; justify-content: center; min-height: 320px; padding: ${c.space["8"]} ${c.space["4"]}; }
|
|
117
117
|
|
|
118
118
|
/* summary footer — per-column aggregation, sticky to the bottom */
|
|
119
|
-
& .recordstable-sum { position: sticky; bottom: 0; z-index: 2; height: ${c.size.tableRow}; padding: 0; border-top: 1px solid ${c.borderSubtle}; border-
|
|
119
|
+
& .recordstable-sum { position: sticky; bottom: 0; z-index: 2; height: ${c.size.tableRow}; padding: 0; border-top: 1px solid ${c.borderSubtle}; border-inline-end: 1px solid ${c.borderSubtle}; background: ${c.bgSurface}; }
|
|
120
120
|
& tfoot .recordstable-col-check, & tfoot .recordstable-col-entity { position: sticky; bottom: 0; z-index: 3; }
|
|
121
|
-
& .recordstable-sum:last-child { border-
|
|
121
|
+
& .recordstable-sum:last-child { border-inline-end: none; }
|
|
122
122
|
& .recordstable-sum-btn { display: flex; align-items: center; justify-content: flex-end; gap: ${c.space["1.5"]}; width: 100%; height: 100%; margin: 0; padding: 0 ${c.space["3"]}; border: none; background: none; color: color-mix(in srgb, ${c.fgPrimary} 63%, transparent); font-family: inherit; font-size: ${c.text.lg}; font-weight: ${c.weight.medium}; cursor: pointer; white-space: nowrap; overflow: hidden; }
|
|
123
123
|
& .recordstable-sum-btn:hover { background: ${c.bgRaised}; }
|
|
124
124
|
& .recordstable-sum-label { color: color-mix(in srgb, ${c.fgPrimary} 45%, transparent); text-transform: capitalize; }
|
|
125
125
|
& .recordstable-sum-value { color: ${c.fgPrimary}; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }
|
|
126
126
|
& .recordstable-sumgroup { width: 100%; height: 100%; }
|
|
127
|
-
& .recordstable-pin { flex-shrink: 0; margin-
|
|
127
|
+
& .recordstable-pin { flex-shrink: 0; margin-inline-start: ${c.space["1"]}; color: ${c.bgWarning}; fill: color-mix(in srgb, ${c.bgWarning} 35%, transparent); }
|
|
128
128
|
& .recordstable-sum-btn[data-empty] { opacity: 0; justify-content: flex-start; }
|
|
129
129
|
& .recordstable-sum-btn[data-empty]:hover { opacity: 1; }
|
|
130
130
|
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { contract as c } from "../../tokens/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* The record tag/chip, measured from Attio: 22px tall, `padding: 0 4px`,
|
|
4
|
+
* `border-radius: ${c.radius.chip}`, 14px/20px at weight 500, and a 1px inset ring in the
|
|
5
|
+
* tone's colour.
|
|
6
|
+
*
|
|
7
|
+
* Shared because RecordsTable and RecordPanel render the *same* chip. It used
|
|
8
|
+
* to be pasted into both recipes, and the two copies had already started to
|
|
9
|
+
* drift — adding the measured inset ring meant patching the same rules twice.
|
|
10
|
+
*/
|
|
11
|
+
export const recordTagCss = `& .recordstable-tag { display: inline-flex; align-items: center; height: ${c.size.chip}; padding: 0 ${c.space["1"]}; border-radius: ${c.radius.chip}; font-size: ${c.text.lg}; line-height: 20px; font-weight: ${c.weight.medium}; white-space: nowrap; background: color-mix(in srgb, ${c.fgPrimary} 6%, transparent); color: color-mix(in srgb, ${c.fgPrimary} 82%, transparent); box-shadow: inset 0 0 0 1px ${c.borderSubtle}; }
|
|
12
|
+
& .recordstable-tag[data-tone="brand"] { background: color-mix(in srgb, ${c.bgBrandSolid} 14%, transparent); color: color-mix(in srgb, ${c.bgBrandSolid} 82%, ${c.fgPrimary}); box-shadow: inset 0 0 0 1px color-mix(in srgb, ${c.bgBrandSolid} 30%, transparent); }
|
|
13
|
+
& .recordstable-tag[data-tone="success"] { background: color-mix(in srgb, ${c.bgSuccess} 16%, transparent); color: color-mix(in srgb, ${c.bgSuccess} 78%, ${c.fgPrimary}); box-shadow: inset 0 0 0 1px color-mix(in srgb, ${c.bgSuccess} 30%, transparent); }
|
|
14
|
+
& .recordstable-tag[data-tone="warning"] { background: color-mix(in srgb, ${c.bgWarning} 18%, transparent); color: color-mix(in srgb, ${c.bgWarning} 82%, ${c.fgPrimary}); box-shadow: inset 0 0 0 1px color-mix(in srgb, ${c.bgWarning} 30%, transparent); }
|
|
15
|
+
& .recordstable-tag[data-tone="danger"] { background: color-mix(in srgb, ${c.bgDanger} 15%, transparent); color: color-mix(in srgb, ${c.bgDanger} 80%, ${c.fgPrimary}); box-shadow: inset 0 0 0 1px color-mix(in srgb, ${c.bgDanger} 30%, transparent); }
|
|
16
|
+
& .recordstable-tag[data-tone="purple"] { background: color-mix(in srgb, ${c.bgPurple} 16%, transparent); color: color-mix(in srgb, ${c.bgPurple} 80%, ${c.fgPrimary}); box-shadow: inset 0 0 0 1px color-mix(in srgb, ${c.bgPurple} 30%, transparent); }
|
|
17
|
+
& .recordstable-tag[data-tone="cyan"] { background: color-mix(in srgb, ${c.bgCyan} 18%, transparent); color: color-mix(in srgb, ${c.bgCyan} 82%, ${c.fgPrimary}); box-shadow: inset 0 0 0 1px color-mix(in srgb, ${c.bgCyan} 30%, transparent); }
|
|
18
|
+
& .recordstable-tag[data-tone="orange"] { background: color-mix(in srgb, ${c.bgOrange} 16%, transparent); color: color-mix(in srgb, ${c.bgOrange} 82%, ${c.fgPrimary}); box-shadow: inset 0 0 0 1px color-mix(in srgb, ${c.bgOrange} 30%, transparent); }`;
|
|
@@ -9,7 +9,7 @@ const exec = (cmd, value) => document.execCommand(cmd, false, value);
|
|
|
9
9
|
* that appears over a text selection. Built on contentEditable, dependency-free.
|
|
10
10
|
* Uncontrolled: seed with `defaultTitle`/`defaultHtml`, read via `onChange`.
|
|
11
11
|
*/
|
|
12
|
-
export function RichTextEditor({ defaultTitle = "", defaultHtml = "", titlePlaceholder = "Untitled", placeholder = "Start writing, or press a toolbar button…", onChange, className, }) {
|
|
12
|
+
export function RichTextEditor({ defaultTitle = "", defaultHtml = "", titlePlaceholder = "Untitled", placeholder = "Start writing, or press a toolbar button…", onChange, className, titleLabel = "Title", bodyLabel = "Note body", }) {
|
|
13
13
|
const titleRef = React.useRef(null);
|
|
14
14
|
const bodyRef = React.useRef(null);
|
|
15
15
|
const [bar, setBar] = React.useState(null);
|
|
@@ -100,10 +100,10 @@ export function RichTextEditor({ defaultTitle = "", defaultHtml = "", titlePlace
|
|
|
100
100
|
const keepSel = (e) => e.preventDefault();
|
|
101
101
|
const tool = (key, label, icon, onClick) => (_jsx("button", { type: "button", className: "rte-tool", "aria-label": label, "aria-pressed": !!active[key], "data-active": active[key] ? "" : undefined, onMouseDown: keepSel, onClick: onClick, children: icon }));
|
|
102
102
|
const ic = { size: 15, strokeWidth: 2 };
|
|
103
|
-
return (_jsxs("div", { className: richtextRecipe({ className }), children: [_jsx("div", { ref: titleRef, className: "rte-title", contentEditable: true, suppressContentEditableWarning: true, role: "textbox", tabIndex: 0, "aria-label":
|
|
103
|
+
return (_jsxs("div", { className: richtextRecipe({ className }), children: [_jsx("div", { ref: titleRef, className: "rte-title", contentEditable: true, suppressContentEditableWarning: true, role: "textbox", tabIndex: 0, "aria-label": titleLabel, "data-placeholder": titlePlaceholder, onInput: () => {
|
|
104
104
|
syncEmpty(titleRef.current);
|
|
105
105
|
emit();
|
|
106
|
-
} }), _jsx("div", { ref: bodyRef, className: "rte-body", contentEditable: true, suppressContentEditableWarning: true, role: "textbox", tabIndex: 0, "aria-multiline": "true", "aria-label":
|
|
106
|
+
} }), _jsx("div", { ref: bodyRef, className: "rte-body", contentEditable: true, suppressContentEditableWarning: true, role: "textbox", tabIndex: 0, "aria-multiline": "true", "aria-label": bodyLabel, "data-placeholder": placeholder, onInput: () => {
|
|
107
107
|
syncEmpty(bodyRef.current);
|
|
108
108
|
emit();
|
|
109
109
|
}, onMouseUp: updateBar, onKeyUp: updateBar }), bar && (_jsxs("div", { className: "rte-toolbar", style: { left: bar.x, top: bar.y }, children: [tool("bold", "Bold", _jsx(Bold, { ...ic }), () => run("bold")), tool("italic", "Italic", _jsx(Italic, { ...ic }), () => run("italic")), tool("underline", "Underline", _jsx(Underline, { ...ic }), () => run("underline")), tool("strikeThrough", "Strikethrough", _jsx(Strikethrough, { ...ic }), () => run("strikeThrough")), tool("link", "Link", _jsx(Link2, { ...ic }), addLink), _jsx("span", { className: "rte-tool-sep" }), tool("h1", "Heading 1", _jsx(Heading1, { ...ic }), () => toggleBlock("h1")), tool("h2", "Heading 2", _jsx(Heading2, { ...ic }), () => toggleBlock("h2")), tool("ul", "Bullet list", _jsx(List, { ...ic }), () => run("insertUnorderedList")), tool("ol", "Numbered list", _jsx(ListOrdered, { ...ic }), () => run("insertOrderedList")), tool("blockquote", "Quote", _jsx(Quote, { ...ic }), () => toggleBlock("blockquote"))] }))] }));
|
|
@@ -19,16 +19,16 @@ const config = defineRecipe({
|
|
|
19
19
|
& .rte-body h1 { font-size: ${c.text.xl}; line-height: 28px; font-weight: ${c.weight.semibold}; letter-spacing: -0.3px; margin-top: ${c.space["4"]}; }
|
|
20
20
|
& .rte-body h2 { font-size: 17px; line-height: 24px; font-weight: ${c.weight.semibold}; letter-spacing: -0.2px; margin-top: ${c.space["3"]}; }
|
|
21
21
|
& .rte-body h3 { font-size: ${c.text.lg}; line-height: 20px; font-weight: ${c.weight.semibold}; margin-top: ${c.space["2.5"]}; }
|
|
22
|
-
& .rte-body ul, & .rte-body ol { padding-
|
|
22
|
+
& .rte-body ul, & .rte-body ol { padding-inline-start: ${c.space["5"]}; }
|
|
23
23
|
& .rte-body li { margin-top: ${c.space["1"]}; }
|
|
24
|
-
& .rte-body blockquote { padding-
|
|
24
|
+
& .rte-body blockquote { padding-inline-start: ${c.space["3"]}; border-inline-start: 2px solid ${c.borderDefault}; color: ${c.fgMuted}; }
|
|
25
25
|
& .rte-body code { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; font-size: ${c.text.md}; padding: 1px ${c.space["1"]}; border-radius: ${c.radius.sm}; background: color-mix(in srgb, ${c.fgPrimary} 6%, transparent); }
|
|
26
26
|
& .rte-body a { color: ${c.bgBrandSolid}; text-decoration: underline; text-underline-offset: 2px; }
|
|
27
27
|
& .rte-body strong { font-weight: ${c.weight.semibold}; }
|
|
28
28
|
|
|
29
29
|
& .rte-toolbar { position: fixed; z-index: 70; display: inline-flex; align-items: center; gap: 2px; padding: ${c.space["0.5"]}; border-radius: ${c.radius.md}; background: #20242c; box-shadow: 0 8px 28px -6px rgba(0,0,0,0.36), 0 2px 6px -2px rgba(0,0,0,0.24); transform: translate(-50%, -100%); opacity: 1; transition: opacity 0.1s ease; }
|
|
30
30
|
& .rte-toolbar { @starting-style { opacity: 0; } }
|
|
31
|
-
& .rte-tool { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; margin: 0; border: none; border-radius: ${c.radius.sm}; background: none; color: rgba(255,255,255,0.86); cursor: pointer; transition: background-color .1s; }
|
|
31
|
+
& .rte-tool { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; margin: 0; border: none; border-radius: ${c.radius.sm}; background: none; color: rgba(255,255,255,0.86); font-family: inherit; cursor: pointer; transition: background-color .1s; }
|
|
32
32
|
& .rte-tool:hover { background: rgba(255,255,255,0.12); color: #fff; }
|
|
33
33
|
& .rte-tool[data-active] { color: ${c.bgBrandSolid}; }
|
|
34
34
|
& .rte-tool-sep { width: 1px; height: 16px; margin: 0 2px; background: rgba(255,255,255,0.16); }`,
|
|
@@ -5,7 +5,7 @@ import { settingssectionRecipe } from "./settingssection.recipe.js";
|
|
|
5
5
|
* subtitle and trailing action, then a gapped stack of rows (pair with
|
|
6
6
|
* FormField). Compose several inside a settings content pane.
|
|
7
7
|
*/
|
|
8
|
-
export function SettingsSection({ title, description, action, children, className, }) {
|
|
9
|
-
return (_jsxs("section", { className: settingssectionRecipe({ className }), children: [_jsxs("div", { className: "settingssection-head", children: [_jsxs("div", { className: "settingssection-heading", children: [_jsx("div", { className: "settingssection-title", children: title }), description != null && (_jsx("div", { className: "settingssection-sub", children: description }))] }), action != null && (_jsx("div", { className: "settingssection-action", children: action }))] }), children != null && (_jsx("div", { className: "settingssection-body", children: children }))] }));
|
|
8
|
+
export function SettingsSection({ title, description, action, children, className, ...rest }) {
|
|
9
|
+
return (_jsxs("section", { className: settingssectionRecipe({ className }), ...rest, children: [_jsxs("div", { className: "settingssection-head", children: [_jsxs("div", { className: "settingssection-heading", children: [_jsx("div", { className: "settingssection-title", children: title }), description != null && (_jsx("div", { className: "settingssection-sub", children: description }))] }), action != null && (_jsx("div", { className: "settingssection-action", children: action }))] }), children != null && (_jsx("div", { className: "settingssection-body", children: children }))] }));
|
|
10
10
|
}
|
|
11
11
|
SettingsSection.displayName = "SettingsSection";
|
|
@@ -7,7 +7,7 @@ import { settingsshellRecipe } from "./settingsshell.recipe.js";
|
|
|
7
7
|
* search, grouped items) beside a scrolling content pane. The search filters the
|
|
8
8
|
* nav by label. Fills the height its container gives it.
|
|
9
9
|
*/
|
|
10
|
-
export function SettingsShell({ title = "Settings", onBack, groups, activeItem, onSelect, searchable = true, searchPlaceholder = "Search settings…", children, className, }) {
|
|
10
|
+
export function SettingsShell({ title = "Settings", onBack, groups, activeItem, onSelect, searchable = true, searchPlaceholder = "Search settings…", children, className, navLabel = "Settings", emptyLabel = "No settings found", ...rest }) {
|
|
11
11
|
const [query, setQuery] = React.useState("");
|
|
12
12
|
const q = query.trim().toLowerCase();
|
|
13
13
|
const filtered = q
|
|
@@ -18,6 +18,6 @@ export function SettingsShell({ title = "Settings", onBack, groups, activeItem,
|
|
|
18
18
|
}))
|
|
19
19
|
.filter((g) => g.items.length > 0)
|
|
20
20
|
: groups;
|
|
21
|
-
return (_jsxs("div", { className: settingsshellRecipe({ className }), children: [_jsxs("nav", { className: "settingsshell-nav", "aria-label":
|
|
21
|
+
return (_jsxs("div", { className: settingsshellRecipe({ className }), ...rest, children: [_jsxs("nav", { className: "settingsshell-nav", "aria-label": navLabel, children: [_jsxs("button", { type: "button", className: "settingsshell-back", onClick: onBack, children: [_jsx(ChevronLeft, { size: 16, strokeWidth: 2 }), title] }), searchable && (_jsxs("div", { className: "settingsshell-search", children: [_jsx(Search, { size: 15, strokeWidth: 1.75 }), _jsx("input", { type: "text", placeholder: searchPlaceholder, "aria-label": searchPlaceholder, value: query, onChange: (e) => setQuery(e.target.value) })] })), _jsx("div", { className: "settingsshell-groups", children: filtered.length === 0 ? (_jsx("div", { className: "settingsshell-empty", children: emptyLabel })) : (filtered.map((g, gi) => (_jsxs("div", { className: "settingsshell-group", children: [g.label != null && (_jsx("div", { className: "settingsshell-group-label", children: g.label })), g.items.map((it) => (_jsxs("button", { type: "button", className: "settingsshell-item", "aria-current": it.id === activeItem ? "page" : undefined, "data-active": it.id === activeItem ? "" : undefined, onClick: () => onSelect(it.id), children: [it.icon, _jsx("span", { className: "settingsshell-item-label", children: it.label })] }, it.id)))] }, gi)))) })] }), _jsx("div", { className: "settingsshell-content", children: children })] }));
|
|
22
22
|
}
|
|
23
23
|
SettingsShell.displayName = "SettingsShell";
|
|
@@ -8,12 +8,17 @@ const config = defineRecipe({
|
|
|
8
8
|
base: `display: flex; min-height: 0; box-sizing: border-box; font-family: ${c.font.sans}; color: ${c.fgPrimary};
|
|
9
9
|
-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
|
|
10
10
|
|
|
11
|
-
& .settingsshell-nav { display: flex; flex-direction: column; width: 256px; flex-shrink: 0; min-height: 0; padding: ${c.space["3"]}; border-
|
|
11
|
+
& .settingsshell-nav { display: flex; flex-direction: column; width: 256px; flex-shrink: 0; min-height: 0; padding: ${c.space["3"]}; border-inline-end: 1px solid ${c.borderSubtle}; }
|
|
12
12
|
& .settingsshell-back { display: inline-flex; align-items: center; gap: ${c.space["1.5"]}; height: 28px; padding: 0 ${c.space["1"]}; margin: 0 0 ${c.space["2"]}; border: none; background: none; font-family: inherit; font-size: ${c.text.lg}; font-weight: ${c.weight.semibold}; color: ${c.fgPrimary}; cursor: pointer; border-radius: ${c.radius.md}; }
|
|
13
13
|
& .settingsshell-back svg { color: ${c.fgMuted}; }
|
|
14
14
|
& .settingsshell-back:hover svg { color: ${c.fgPrimary}; }
|
|
15
15
|
|
|
16
16
|
& .settingsshell-search { display: flex; align-items: center; gap: ${c.space["2"]}; height: 32px; margin-bottom: ${c.space["2"]}; padding: 0 ${c.space["2.5"]}; border-radius: ${c.radius.md}; background: ${c.bgSurface}; box-shadow: inset 0 0 0 1px ${c.borderDefault}; color: ${c.fgMuted}; }
|
|
17
|
+
/* The field box owns the ring, so focus has to move it -- the inner
|
|
18
|
+
input kills its own outline. Measured on Attio: a focused field's
|
|
19
|
+
input carries box-shadow: none while its wrapper carries
|
|
20
|
+
inset 0 0 0 1px #266df0. */
|
|
21
|
+
& .settingsshell-search:focus-within { box-shadow: inset 0 0 0 1px ${c.bgBrandSolid}; }
|
|
17
22
|
& .settingsshell-search svg { flex-shrink: 0; }
|
|
18
23
|
& .settingsshell-search input { flex: 1; min-width: 0; border: none; outline: none; background: none; font-family: inherit; font-size: ${c.text.lg}; color: ${c.fgPrimary}; }
|
|
19
24
|
& .settingsshell-search input::placeholder { color: ${c.fgMuted}; }
|
|
@@ -21,7 +26,7 @@ const config = defineRecipe({
|
|
|
21
26
|
& .settingsshell-groups { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: ${c.space["2.5"]}; }
|
|
22
27
|
& .settingsshell-group { display: flex; flex-direction: column; gap: 1px; }
|
|
23
28
|
& .settingsshell-group-label { padding: ${c.space["1"]} ${c.space["2"]}; font-size: ${c.text.sm}; font-weight: ${c.weight.medium}; color: ${c.fgMuted}; }
|
|
24
|
-
& .settingsshell-item { display: flex; align-items: center; gap: ${c.space["2"]}; height: 30px; padding: 0 ${c.space["2"]}; margin: 0; border: none; border-radius: ${c.radius.md}; background: none; font-family: inherit; font-size: ${c.text.lg}; color: ${c.fgPrimary}; text-align:
|
|
29
|
+
& .settingsshell-item { display: flex; align-items: center; gap: ${c.space["2"]}; height: 30px; padding: 0 ${c.space["2"]}; margin: 0; border: none; border-radius: ${c.radius.md}; background: none; font-family: inherit; font-size: ${c.text.lg}; color: ${c.fgPrimary}; text-align: start; cursor: pointer; transition: background-color .12s; }
|
|
25
30
|
& .settingsshell-item svg { flex-shrink: 0; color: ${c.fgMuted}; }
|
|
26
31
|
& .settingsshell-item-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
27
32
|
& .settingsshell-item:hover { background: ${c.bgRaised}; }
|
|
@@ -81,7 +81,7 @@ export const ATTIO_SIDEBAR_FOOTER = {
|
|
|
81
81
|
function SectionHeader({ label, open, onToggle, }) {
|
|
82
82
|
return (_jsxs("button", { type: "button", className: "sidebar-section-header", "data-collapsed": open ? undefined : "", "aria-expanded": open, onClick: onToggle, children: [_jsx(IconChevronMini, {}), _jsx("span", { children: label })] }));
|
|
83
83
|
}
|
|
84
|
-
export const Sidebar = React.forwardRef(({ className, asChild, onToggleCollapse, workspace = ATTIO_SIDEBAR_WORKSPACE, items = ATTIO_SIDEBAR_ITEMS, recordsSection = ATTIO_SIDEBAR_RECORDS_SECTION, listsSection = ATTIO_SIDEBAR_LISTS_SECTION, chatsSection = ATTIO_SIDEBAR_CHATS_SECTION, footer = ATTIO_SIDEBAR_FOOTER, ...props }, ref) => {
|
|
84
|
+
export const Sidebar = React.forwardRef(({ className, asChild, onToggleCollapse, collapseLabel = "Collapse sidebar", inboxLabel = "Inbox", workspace = ATTIO_SIDEBAR_WORKSPACE, items = ATTIO_SIDEBAR_ITEMS, recordsSection = ATTIO_SIDEBAR_RECORDS_SECTION, listsSection = ATTIO_SIDEBAR_LISTS_SECTION, chatsSection = ATTIO_SIDEBAR_CHATS_SECTION, footer = ATTIO_SIDEBAR_FOOTER, ...props }, ref) => {
|
|
85
85
|
const [collapsedSections, setCollapsedSections] = React.useState(() => new Set());
|
|
86
86
|
const [commandOpen, setCommandOpen] = React.useState(false);
|
|
87
87
|
React.useEffect(() => {
|
|
@@ -107,6 +107,6 @@ export const Sidebar = React.forwardRef(({ className, asChild, onToggleCollapse,
|
|
|
107
107
|
return next;
|
|
108
108
|
});
|
|
109
109
|
}, []);
|
|
110
|
-
return (_jsxs(Primitive.div, { ref: ref, asChild: asChild, className: sidebarRecipe({ className }), ...props, children: [_jsxs("div", { className: "sidebar-ws", children: [_jsx(Avatar, { size: "lg", shape: "rounded", tone: workspace.avatarTone, children: workspace.avatarLabel }), _jsx("span", { className: "sidebar-ws-name", children: workspace.name }), _jsx(IconChevronDown, {}), _jsx(Button, { intent: "ghost", size: "sm", shape: "icon", className: "sidebar-ws-collapse", "aria-label":
|
|
110
|
+
return (_jsxs(Primitive.div, { ref: ref, asChild: asChild, className: sidebarRecipe({ className }), ...props, children: [_jsxs("div", { className: "sidebar-ws", children: [_jsx(Avatar, { size: "lg", shape: "rounded", tone: workspace.avatarTone, children: workspace.avatarLabel }), _jsx("span", { className: "sidebar-ws-name", children: workspace.name }), _jsx(IconChevronDown, {}), _jsx(Button, { intent: "ghost", size: "sm", shape: "icon", className: "sidebar-ws-collapse", "aria-label": collapseLabel, onClick: onToggleCollapse, children: _jsx(IconCollapsePanel, {}) })] }), _jsxs("div", { className: "sidebar-searchrow", children: [_jsxs("button", { type: "button", className: "sidebar-search", onClick: () => setCommandOpen(true), children: [_jsx(IconSearch, {}), _jsx("span", { className: "sidebar-search-label", children: "Search" }), _jsx("span", { className: "sidebar-search-kbd", children: "\u2318K" })] }), _jsx(Button, { intent: "neutral", size: "sm", shape: "icon", "aria-label": inboxLabel, children: _jsx(IconInbox, {}) })] }), _jsx("div", { className: "sidebar-divider" }), _jsx("div", { className: "sidebar-section", children: items.map(({ label, icon: ItemIcon, active, trailing }) => (_jsx(NavItem, { href: "#", active: active, icon: _jsx(ItemIcon, {}), trailing: trailing, children: label }, label))) }), _jsx(SectionHeader, { label: recordsSection.label, open: !collapsedSections.has("records"), onToggle: () => toggleSection("records") }), _jsx("div", { className: "sidebar-section", "data-collapsed": collapsedSections.has("records") ? "" : undefined, children: recordsSection.items.map(({ label, tone, glyph: Glyph }) => (_jsx(NavItem, { href: "#", icon: _jsx(Avatar, { size: "sm", shape: "rounded", tone: tone, children: _jsx(Glyph, {}) }), children: label }, label))) }), _jsx(SectionHeader, { label: listsSection.label, open: !collapsedSections.has("lists"), onToggle: () => toggleSection("lists") }), _jsx("div", { className: "sidebar-section", "data-collapsed": collapsedSections.has("lists") ? "" : undefined, children: _jsx("button", { type: "button", className: "sidebar-newlist", children: listsSection.newListLabel }) }), _jsx(SectionHeader, { label: chatsSection.label, open: !collapsedSections.has("chats"), onToggle: () => toggleSection("chats") }), _jsx("div", { className: "sidebar-section", "data-collapsed": collapsedSections.has("chats") ? "" : undefined, children: chatsSection.items.map(({ label, icon: ItemIcon }) => (_jsx(NavItem, { href: "#", icon: _jsx(ItemIcon, {}), children: label }, label))) }), _jsxs("div", { className: "sidebar-footer", children: [_jsx(Button, { intent: "neutral", size: "sm", className: "sidebar-pill", children: footer.gettingStartedLabel }), _jsx(NavItem, { href: "#", icon: _jsx(IconInvite, {}), children: footer.inviteLabel }), _jsx("div", { className: "sidebar-divider" }), _jsxs("div", { className: "sidebar-trial", children: [_jsx("span", { children: footer.trialText }), _jsx(Button, { intent: "neutral", size: "sm", children: footer.trialActionLabel })] })] }), _jsx(Command, { open: commandOpen, onOpenChange: setCommandOpen })] }));
|
|
111
111
|
});
|
|
112
112
|
Sidebar.displayName = "Sidebar";
|
|
@@ -1,8 +1,33 @@
|
|
|
1
1
|
import { defineRecipe, resolveRecipe } from "../../core/index.js";
|
|
2
|
-
import { contract as c } from "../../tokens/index.js";
|
|
2
|
+
import { contract as c, elevation as e } from "../../tokens/index.js";
|
|
3
3
|
const config = defineRecipe({
|
|
4
4
|
name: "sidebar",
|
|
5
|
-
base: `box-sizing: border-box; display: flex; flex-direction: column; width: 275px; height: 100%; background: ${c.bgSidebar}
|
|
5
|
+
base: `box-sizing: border-box; display: flex; flex-direction: column; width: 275px; height: 100%; background: ${c.bgSidebar}
|
|
6
|
+
; border-inline-end: 1px solid ${c.borderSubtle}
|
|
7
|
+
; padding: ${c.space["2"]}
|
|
8
|
+
; font-family: ${c.font.sans}
|
|
9
|
+
; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-y: auto; & .sidebar-section { display: flex; flex-direction: column; gap: ${c.space.px}; margin-top: ${c.space["2"]}; }
|
|
10
|
+
& .sidebar-section[data-collapsed] { display: none; }
|
|
11
|
+
& .sidebar-label { font-size: ${c.text.sm}; font-weight: ${c.weight.medium}; color: ${c.fgMuted}; padding: ${c.space["1.5"]} ${c.space["2"]} ${c.space["0.5"]}; }
|
|
12
|
+
& .sidebar-section-header { display: flex; align-items: center; gap: ${c.space["1"]}; width: 100%; margin: 0; border: none; background: none; padding: ${c.space["1.5"]} ${c.space["2"]} ${c.space["0.5"]}; font-family: ${c.font.sans}; font-size: ${c.text.sm}; font-weight: ${c.weight.medium}; color: ${c.fgMuted}; cursor: pointer; }
|
|
13
|
+
& .sidebar-section-header svg { flex-shrink: 0; transition: transform .15s ease; }
|
|
14
|
+
& .sidebar-section-header[data-collapsed] svg { transform: rotate(-90deg); }
|
|
15
|
+
& .sidebar-ws { display: flex; align-items: center; gap: ${c.space["2"]}; height: ${c.size.header}; padding: 0 ${c.space["2"]}; border-radius: ${c.radius.lg}; cursor: pointer; transition: background-color 0.16s; }
|
|
16
|
+
& .sidebar-ws:hover { background: color-mix(in srgb, ${c.fgPrimary} 5%, transparent); }
|
|
17
|
+
& .sidebar-ws-name { font-size: ${c.text.lg}; font-weight: ${c.weight.semibold}; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
18
|
+
& .sidebar-ws-collapse { margin-inline-start: auto; }
|
|
19
|
+
& .sidebar-searchrow { display: flex; align-items: center; gap: ${c.space["1.5"]}; margin-top: ${c.space["2.5"]}; padding-inline-end: ${c.space["2"]}; }
|
|
20
|
+
& .sidebar-footer { margin-top: auto; display: flex; flex-direction: column; gap: ${c.space["0.5"]}; }
|
|
21
|
+
& .sidebar-trial { display: flex; align-items: center; justify-content: space-between; gap: ${c.space["2"]}; padding: ${c.space["1.5"]} ${c.space["2"]}; font-size: ${c.text.sm}; color: ${c.fgMuted}; }
|
|
22
|
+
& .sidebar-search { box-sizing: border-box; flex: 1; min-width: 0; display: flex; align-items: center; gap: ${c.space["2"]}; height: ${c.size.row}; margin: 0; padding: 0 ${c.space["1"]} 0 ${c.space["2"]}; border: none; border-radius: ${c.radius.md}; background: ${c.bgSurface}; box-shadow: ${e.field}; color: ${c.fgMuted}; font-family: inherit; font-size: ${c.text.lg}; text-align: start; cursor: pointer; transition: background-color 0.14s; }
|
|
23
|
+
& .sidebar-search:hover { background: ${c.bgRaised}; }
|
|
24
|
+
& .sidebar-search-label { flex: 1; color: ${c.fgPrimary}; font-weight: ${c.weight.medium}; }
|
|
25
|
+
& .sidebar-search-kbd { margin-inline-start: auto; display: inline-flex; align-items: center; height: 18px; padding: 0 ${c.space["1"]}; border-radius: ${c.radius.sm}; box-shadow: inset 0 0 0 1px color-mix(in srgb, ${c.fgPrimary} 8%, transparent); color: color-mix(in srgb, ${c.fgPrimary} 50%, transparent); font-size: ${c.text.xs}; }
|
|
26
|
+
& .sidebar-pill { border-radius: ${c.radius.full}; align-self: center; width: auto; height: 32px; padding-inline: ${c.space["4"]}; }
|
|
27
|
+
& .sidebar-divider { height: 0; border: none; border-top: 1px solid ${c.borderSubtle}; margin: ${c.space["2"]} calc(-1 * ${c.space["2"]}) 0; }
|
|
28
|
+
& .sidebar-newlist { box-sizing: border-box; display: flex; align-items: center; justify-content: center; width: 100%; height: ${c.size.row}; border-radius: ${c.radius.md}; border: 1px dashed ${c.borderDefault}; background: transparent; color: ${c.fgMuted}; font-family: ${c.font.sans}; font-size: ${c.text.md}; font-weight: ${c.weight.medium}; cursor: pointer; }
|
|
29
|
+
& .sidebar-newlist:hover { background: ${c.bgRaised}; color: ${c.fgPrimary}; }
|
|
30
|
+
`,
|
|
6
31
|
variants: {},
|
|
7
32
|
defaultVariants: {},
|
|
8
33
|
compoundVariants: [],
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { tasklistRecipe } from "./tasklist.recipe.js";
|
|
3
|
-
function Row({ task, onToggle, }) {
|
|
4
|
-
return (_jsxs("div", { className: "tasklist-row", "data-done": task.done ? "" : undefined, children: [_jsx("input", { type: "checkbox", className: "tasklist-check", checked: !!task.done, "aria-label": task.done ?
|
|
3
|
+
function Row({ task, onToggle, completeLabel, incompleteLabel, }) {
|
|
4
|
+
return (_jsxs("div", { className: "tasklist-row", "data-done": task.done ? "" : undefined, children: [_jsx("input", { type: "checkbox", className: "tasklist-check", checked: !!task.done, "aria-label": task.done ? incompleteLabel : completeLabel, onChange: () => onToggle?.(task.id, !task.done) }), _jsx("span", { className: "tasklist-title", children: task.title }), (task.due != null || task.meta != null) && (_jsxs("span", { className: "tasklist-meta", children: [task.due != null && (_jsx("span", { className: "tasklist-due", "data-overdue": task.overdue ? "" : undefined, children: task.due })), task.meta] }))] }));
|
|
5
5
|
}
|
|
6
6
|
/**
|
|
7
7
|
* A task list — measured from Attio's Tasks page. Optional group headers with a
|
|
8
8
|
* count, then rows of a round complete-checkbox + title + trailing meta.
|
|
9
9
|
* Completed rows strike through; overdue dates go red.
|
|
10
10
|
*/
|
|
11
|
-
export function TaskList({ tasks, groups, onToggle, emptyLabel = "No tasks", className, }) {
|
|
11
|
+
export function TaskList({ tasks, groups, onToggle, emptyLabel = "No tasks", className, completeLabel = "Mark complete", incompleteLabel = "Mark incomplete", }) {
|
|
12
12
|
const resolved = groups ?? (tasks?.length ? [{ label: null, tasks }] : []);
|
|
13
13
|
const total = resolved.reduce((s, g) => s + g.tasks.length, 0);
|
|
14
|
-
return (_jsx("div", { className: tasklistRecipe({ className }), children: total === 0 ? (_jsx("div", { className: "tasklist-empty", children: emptyLabel })) : (resolved.map((g, gi) => (_jsxs("div", { children: [g.label != null && (_jsxs("div", { className: "tasklist-group", children: [g.label, _jsx("span", { className: "tasklist-group-count", children: g.tasks.length })] })), g.tasks.map((t) => (_jsx(Row, { task: t, onToggle: onToggle }, t.id)))] }, gi)))) }));
|
|
14
|
+
return (_jsx("div", { className: tasklistRecipe({ className }), children: total === 0 ? (_jsx("div", { className: "tasklist-empty", children: emptyLabel })) : (resolved.map((g, gi) => (_jsxs("div", { children: [g.label != null && (_jsxs("div", { className: "tasklist-group", children: [g.label, _jsx("span", { className: "tasklist-group-count", children: g.tasks.length })] })), g.tasks.map((t) => (_jsx(Row, { task: t, onToggle: onToggle, completeLabel: completeLabel, incompleteLabel: incompleteLabel }, t.id)))] }, gi)))) }));
|
|
15
15
|
}
|
|
16
16
|
TaskList.displayName = "TaskList";
|
|
@@ -4,7 +4,7 @@ import { trialbannerRecipe } from "./trialbanner.recipe.js";
|
|
|
4
4
|
* A compact trial / upgrade banner — measured from Attio's sidebar footer.
|
|
5
5
|
* Icon + message + an optional small action pill (soft-glow outlined button).
|
|
6
6
|
*/
|
|
7
|
-
export function TrialBanner({ icon, children, action, onAction, tone = "neutral", className, }) {
|
|
8
|
-
return (_jsxs("div", { className: trialbannerRecipe({ className }), "data-tone": tone === "neutral" ? undefined : tone, children: [icon != null && _jsx("span", { className: "trialbanner-icon", children: icon }), _jsx("span", { className: "trialbanner-msg", children: children }), action != null && (_jsx("button", { type: "button", className: "trialbanner-action", onClick: onAction, children: action }))] }));
|
|
7
|
+
export function TrialBanner({ icon, children, action, onAction, tone = "neutral", className, ...rest }) {
|
|
8
|
+
return (_jsxs("div", { className: trialbannerRecipe({ className }), ...rest, "data-tone": tone === "neutral" ? undefined : tone, children: [icon != null && _jsx("span", { className: "trialbanner-icon", children: icon }), _jsx("span", { className: "trialbanner-msg", children: children }), action != null && (_jsx("button", { type: "button", className: "trialbanner-action", onClick: onAction, children: action }))] }));
|
|
9
9
|
}
|
|
10
10
|
TrialBanner.displayName = "TrialBanner";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineRecipe, resolveRecipe } from "../../core/index.js";
|
|
2
|
-
import { contract as c } from "../../tokens/index.js";
|
|
2
|
+
import { contract as c, elevation as e } from "../../tokens/index.js";
|
|
3
3
|
// A compact trial / upgrade banner — measured from Attio's sidebar footer: an
|
|
4
4
|
// icon + a message on the left and a small action pill on the right, in a 28px
|
|
5
5
|
// row. The action uses Attio's soft-glow outlined-button shadow.
|
|
@@ -14,7 +14,7 @@ const config = defineRecipe({
|
|
|
14
14
|
& .trialbanner-msg { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
15
15
|
& .trialbanner-action { display: inline-flex; align-items: center; gap: ${c.space["1"]}; height: 20px; flex-shrink: 0;
|
|
16
16
|
padding: 0 ${c.space["1.5"]}; margin: 0; border: none; border-radius: ${c.radius.sm}; background: ${c.bgSurface};
|
|
17
|
-
box-shadow:
|
|
17
|
+
box-shadow: ${e.fieldNoRing};
|
|
18
18
|
font-family: inherit; font-size: ${c.text.md}; font-weight: ${c.weight.medium}; color: ${c.fgPrimary};
|
|
19
19
|
white-space: nowrap; cursor: pointer; transition: background-color .12s; }
|
|
20
20
|
& .trialbanner-action:hover { background: ${c.bgRaised}; }
|
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
2
3
|
import { viewtoggleRecipe } from "./viewtoggle.recipe.js";
|
|
3
4
|
/**
|
|
4
5
|
* A compact icon toggle — measured from Attio's list/grid switch. A padded track
|
|
5
6
|
* of icon tiles; the selected tile is raised. Use for view-mode switches (list ⇄
|
|
6
7
|
* grid) or any small mutually-exclusive icon choice.
|
|
7
8
|
*/
|
|
8
|
-
export function ViewToggle({ options, value, onChange, "aria-label": ariaLabel, className, }) {
|
|
9
|
-
|
|
9
|
+
export function ViewToggle({ options, value: valueProp, defaultValue, onChange, "aria-label": ariaLabel, className, ...rest }) {
|
|
10
|
+
const [internalValue, setInternalValue] = React.useState(defaultValue);
|
|
11
|
+
const value = valueProp ?? internalValue ?? options[0]?.value;
|
|
12
|
+
const pick = (next) => {
|
|
13
|
+
if (valueProp === undefined)
|
|
14
|
+
setInternalValue(next);
|
|
15
|
+
onChange?.(next);
|
|
16
|
+
};
|
|
17
|
+
return (_jsx("div", { className: viewtoggleRecipe({ className }), ...rest, role: "group", "aria-label": ariaLabel, children: options.map((o) => (_jsx("button", { type: "button", className: "viewtoggle-tile", "aria-pressed": o.value === value, "aria-label": o.label, title: o.label, "data-active": o.value === value ? "" : undefined, onClick: () => pick(o.value), children: o.icon }, o.value))) }));
|
|
10
18
|
}
|
|
11
19
|
ViewToggle.displayName = "ViewToggle";
|
|
@@ -11,7 +11,7 @@ const config = defineRecipe({
|
|
|
11
11
|
|
|
12
12
|
& .viewtoggle-tile { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px;
|
|
13
13
|
padding: 0; margin: 0; border: none; border-radius: ${c.radius.md}; background: none; color: ${c.fgMuted};
|
|
14
|
-
cursor: pointer; transition: background-color .12s, color .12s, box-shadow .12s; }
|
|
14
|
+
font-family: inherit; cursor: pointer; transition: background-color .12s, color .12s, box-shadow .12s; }
|
|
15
15
|
& .viewtoggle-tile:hover { color: ${c.fgPrimary}; }
|
|
16
16
|
& .viewtoggle-tile[data-active] { background: ${c.bgTileActive}; color: ${c.fgPrimary};
|
|
17
17
|
box-shadow: 0 1px 2px -1px ${c.shadowTileActive}; }
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { contract as c } from "./contract.js";
|
|
2
|
+
/**
|
|
3
|
+
* Attio's measured elevation recipes, written **once**.
|
|
4
|
+
*
|
|
5
|
+
* The whole product runs on two elevation tiers plus one control shadow
|
|
6
|
+
* (measured live — see `docs/study/attio-panels.md` §4). Before this module each
|
|
7
|
+
* surface carried its own copy of the string: the tier-1 stack appeared in 9
|
|
8
|
+
* places, the control shadow in 12. Copies drift, and every drift was a real
|
|
9
|
+
* bug — `Drawer`/`RecordPanel` grew invented directional shadows, `BulkBar`'s
|
|
10
|
+
* copy used raw literals and so never darkened in dark mode (AUTHORING.md
|
|
11
|
+
* Lesson 30). Reference the constant; never re-type the value.
|
|
12
|
+
*/
|
|
13
|
+
export const elevation = {
|
|
14
|
+
/**
|
|
15
|
+
* Tier 1 — anything floating and *attached*: menus, popovers, dropdowns,
|
|
16
|
+
* hover-preview cards, the floating sidebar, the record peek, drawers, the
|
|
17
|
+
* bulk bar. Pairs with a 10–12px radius and, for panels, an 8px gutter.
|
|
18
|
+
*/
|
|
19
|
+
floating: `inset 0 0 0 1px ${c.ringPopover}, 0 0 0 1px ${c.shadowPopover1}, 0 4px 8px -4px ${c.shadowPopover2}, 0 4px 12px -2px ${c.shadowPopover3}`,
|
|
20
|
+
/**
|
|
21
|
+
* Tier 2 — the modal frosted bezel (Dialog, Command). Sits on the
|
|
22
|
+
* `bgOverlayFrost` 60% + `blur(15px)` surface at radius 16, wrapping an inner
|
|
23
|
+
* card at radius 12. Attio dims nothing behind it; the blur does the work.
|
|
24
|
+
*/
|
|
25
|
+
modal: `0 8px 28px -6px ${c.shadowOverlay1}, 0 18px 88px -4px ${c.shadowOverlay2}, 0 0 1px ${c.shadowOverlay3}`,
|
|
26
|
+
/**
|
|
27
|
+
* The neutral/outlined control shadow — buttons, inputs, textareas, the
|
|
28
|
+
* sidebar search, record-page actions.
|
|
29
|
+
*
|
|
30
|
+
* The two raw values **are** the measured Attio value (Lessons 22 and 29) and
|
|
31
|
+
* must stay raw. `rgba(0,0,0,0.04)` equals `tileActiveShadow`'s light value by
|
|
32
|
+
* coincidence, not by meaning; tokenizing it would delete a measured layer in
|
|
33
|
+
* dark mode. Only the ring is theme-aware, via `ringNeutral`.
|
|
34
|
+
*/
|
|
35
|
+
field: `inset 0 0 0 1px ${c.ringNeutral}, 0 0 2px rgba(28,40,64,0.18), 0 1px 3px rgba(0,0,0,0.04)`,
|
|
36
|
+
/**
|
|
37
|
+
* The same control shadow **without** the theme-aware ring. Lesson 29 added
|
|
38
|
+
* the ring to the neutral-button family but deliberately left `trialbanner`
|
|
39
|
+
* and `viewtoggle` alone pending their own re-measurement — this constant
|
|
40
|
+
* exists so those surfaces share the value without silently acquiring a ring
|
|
41
|
+
* nobody measured for them.
|
|
42
|
+
*/
|
|
43
|
+
fieldNoRing: `0 0 2px rgba(28,40,64,0.18), 0 1px 3px rgba(0,0,0,0.04)`,
|
|
44
|
+
};
|
package/dist/esm/tokens/index.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
export const palette = {
|
|
2
2
|
gray00: { light: "#ffffff", dark: "#0a0a0a" },
|
|
3
3
|
white: { light: "#ffffff", dark: "#ffffff" },
|
|
4
|
+
// the counterpart to `white`: ink that does NOT flip with the theme, for text
|
|
5
|
+
// on a bright tone fill. Same value as gray900's light side (Attio's measured
|
|
6
|
+
// near-black), named separately because its job is not "primary foreground".
|
|
7
|
+
ink: { light: "#101112", dark: "#101112" },
|
|
4
8
|
gray50: { light: "#f4f4f5", dark: "#101112" },
|
|
5
9
|
gray900: { light: "#101112", dark: "#f5f5f5" },
|
|
6
10
|
line200: { light: "#e4e4e7", dark: "#212224" },
|
|
@@ -21,6 +25,32 @@ export const palette = {
|
|
|
21
25
|
brand600: { light: "#266df0", dark: "#266df0" },
|
|
22
26
|
brand700: { light: "#1f5fd6", dark: "#1f5fd6" },
|
|
23
27
|
red600: { light: "#e5484d", dark: "#ff5a5f" },
|
|
28
|
+
// A red dark enough to carry white text. red600 cannot: white on it is
|
|
29
|
+
// 3.91:1 light / 3.05:1 dark, and the solid button's hover DARKENS the fill
|
|
30
|
+
// (filter: brightness), so dark ink fails there instead (4.49 at hover).
|
|
31
|
+
// Measured from Attio's own stylesheet, which ships this red alongside the
|
|
32
|
+
// #EB3B3B it uses for destructive menu TEXT. Does not flip: a filled
|
|
33
|
+
// destructive control needs the same white-bearing fill in both themes.
|
|
34
|
+
red700: { light: "#ba2525", dark: "#ba2525" },
|
|
35
|
+
// seed-design's field focus ring (stroke-neutral-contrast = gray-1000),
|
|
36
|
+
// measured from @seed-design/css. A high-contrast neutral rather than a brand
|
|
37
|
+
// hue: the ring reads as "this field has focus", not as a state colour.
|
|
38
|
+
fieldFocus: { light: "#1a1c20", dark: "#f3f4f5" },
|
|
39
|
+
// seed-design's wheel picker, measured from @seed-design/css: unselected
|
|
40
|
+
// items sit at fg-disabled (gray-500) and the selection band at
|
|
41
|
+
// bg-neutral-weak (gray-200). The focus ring is their blue-600.
|
|
42
|
+
// seed's fg-disabled (gray-500): unselected wheel rows, unavailable dates
|
|
43
|
+
disabledFg: { light: "#d1d3d8", dark: "#5b606a" },
|
|
44
|
+
// seed's bg-neutral-weak (gray-200): the wheel's selection band, the
|
|
45
|
+
// calendar's today pill, and the bridge under a complete date range
|
|
46
|
+
neutralWeak: { light: "#f3f4f5", dark: "#1d2025" },
|
|
47
|
+
// seed's calendar greys: the selected day's fill and its text, the weekday
|
|
48
|
+
// header row, and the date numerals
|
|
49
|
+
neutralInverted: { light: "#2a3038", dark: "#f3f4f5" },
|
|
50
|
+
onNeutralInverted: { light: "#ffffff", dark: "#16171b" },
|
|
51
|
+
neutralSubtle: { light: "#868b94", dark: "#b0b3ba" },
|
|
52
|
+
neutralMuted: { light: "#555d6d", dark: "#dcdee3" },
|
|
53
|
+
focusRing: { light: "#1e82eb", dark: "#5e98fe" },
|
|
24
54
|
green600: { light: "#1f9d57", dark: "#2ea968" },
|
|
25
55
|
amber600: { light: "#b5730f", dark: "#e0982a" },
|
|
26
56
|
orange600: { light: "#f97514", dark: "#f97514" },
|
package/dist/esm/tokens/scale.js
CHANGED
|
@@ -25,6 +25,7 @@ export const space = {
|
|
|
25
25
|
// Corner radius. sm/md/lg are the three Attio uses on stacked surfaces
|
|
26
26
|
// (inputs, rows, tiles); full is the pill.
|
|
27
27
|
export const radius = {
|
|
28
|
+
chip: "7px", // tag / chip corner — the single most used radius in Attio
|
|
28
29
|
sm: "6px", // chips, badges
|
|
29
30
|
md: "8px", // inputs, search box
|
|
30
31
|
lg: "9px", // rows, tiles, list items
|
|
@@ -36,9 +37,14 @@ export const radius = {
|
|
|
36
37
|
// radius (row height, header height, the nav icon box).
|
|
37
38
|
export const size = {
|
|
38
39
|
icon: "16px", // nav / control glyph box
|
|
40
|
+
chip: "22px", // tag / chip height — Attio's most repeated small control
|
|
39
41
|
row: "28px", // nav item · search · control height
|
|
42
|
+
menuRow: "32px", // overlay row: menu item, select option, bulk-bar button
|
|
40
43
|
tableRow: "36px", // data-grid row height
|
|
44
|
+
tableHeader: "40px", // data-grid header row height
|
|
41
45
|
header: "48px", // workspace-switcher header height
|
|
46
|
+
calendarCell: "48px", // calendar day cell / header rhythm (seed x12)
|
|
47
|
+
calendarPill: "42px", // round day highlight inside a calendar cell
|
|
42
48
|
};
|
|
43
49
|
// Typography — Attio's UI runs entirely on Inter. Sizes measured in the sidebar
|
|
44
50
|
// collapse onto 11/12/13/14/16 (lg = 14px is the default body/label size);
|
|
@@ -57,4 +63,5 @@ export const weight = {
|
|
|
57
63
|
regular: "400",
|
|
58
64
|
medium: "500", // default UI weight
|
|
59
65
|
semibold: "600",
|
|
66
|
+
bold: "700", // seed-design's font-weight-bold, for the seed-styled calendar
|
|
60
67
|
};
|
|
@@ -2,6 +2,10 @@ export const semantic = {
|
|
|
2
2
|
bgBrandSolid: "brand600",
|
|
3
3
|
bgBrandSolidPressed: "brand700",
|
|
4
4
|
fgOnBrand: "white",
|
|
5
|
+
// text on a solid success/warning/danger fill. Those tone tokens BRIGHTEN in
|
|
6
|
+
// dark (they are tuned for tinted backgrounds and coloured text), so white on
|
|
7
|
+
// them drops to 2.42:1 -- dark ink clears AA on every tone in both themes.
|
|
8
|
+
fgOnTone: "ink",
|
|
5
9
|
bgSurface: "gray00",
|
|
6
10
|
bgRaised: "gray50",
|
|
7
11
|
borderDefault: "line200",
|
|
@@ -21,10 +25,30 @@ export const semantic = {
|
|
|
21
25
|
fgPrimary: "gray900",
|
|
22
26
|
fgMuted: "gray400",
|
|
23
27
|
bgDanger: "red600",
|
|
28
|
+
/** Fill for a SOLID destructive control that carries white text. */
|
|
29
|
+
bgDangerSolid: "red700",
|
|
30
|
+
/** The 2px ring a text field shows while focused. */
|
|
31
|
+
strokeFieldFocus: "fieldFocus",
|
|
32
|
+
/** Unavailable/disabled content: unselected wheel rows, unpickable dates. */
|
|
33
|
+
fgDisabled: "disabledFg",
|
|
34
|
+
/** Weak neutral fill: the wheel's band, the calendar's today pill and range bridge. */
|
|
35
|
+
bgNeutralWeak: "neutralWeak",
|
|
36
|
+
/** The selected calendar day's fill, and the text on it. */
|
|
37
|
+
bgNeutralInverted: "neutralInverted",
|
|
38
|
+
fgOnNeutralInverted: "onNeutralInverted",
|
|
39
|
+
/** Weekday header row. */
|
|
40
|
+
fgNeutralSubtle: "neutralSubtle",
|
|
41
|
+
/** Date numerals. */
|
|
42
|
+
fgNeutralMuted: "neutralMuted",
|
|
43
|
+
/** Keyboard focus ring, for controls that show one inside themselves. */
|
|
44
|
+
strokeFocusRing: "focusRing",
|
|
24
45
|
bgSuccess: "green600",
|
|
25
46
|
bgWarning: "amber600",
|
|
26
47
|
bgOrange: "orange600",
|
|
27
48
|
bgCyan: "cyan600",
|
|
28
49
|
bgPurple: "purple600",
|
|
29
50
|
bgSidebar: "graySidebar",
|
|
51
|
+
// #fbfbfb — Attio's subtle raised fill; the active tab pill uses the same
|
|
52
|
+
// value as the sidebar, so it shares the palette entry under a neutral name.
|
|
53
|
+
bgSubtle: "graySidebar",
|
|
30
54
|
};
|