@crisp-ui-kit/crisp 0.2.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 +20 -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/base.css +25 -0
- package/dist/board.css +9 -1
- package/dist/bulkbar.css +11 -3
- package/dist/button.css +16 -2
- 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 +11 -3
- package/dist/datatable.css +106 -0
- package/dist/datatable.d.ts +7 -0
- 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 +11 -3
- 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 +33 -0
- package/dist/esm/components/accordion/accordion.recipe.js +23 -0
- package/dist/esm/components/accordion/index.js +2 -0
- package/dist/esm/components/avatar/avatar.js +8 -0
- package/dist/esm/components/avatar/avatar.recipe.js +39 -0
- package/dist/esm/components/avatar/index.js +2 -0
- package/dist/esm/components/avatargroup/avatargroup.js +16 -0
- package/dist/esm/components/avatargroup/avatargroup.recipe.js +15 -0
- package/dist/esm/components/avatargroup/index.js +2 -0
- package/dist/esm/components/badge/badge.js +8 -0
- package/dist/esm/components/badge/badge.recipe.js +65 -0
- package/dist/esm/components/badge/index.js +2 -0
- package/dist/esm/components/barchart/barchart.js +42 -0
- package/dist/esm/components/barchart/barchart.recipe.js +31 -0
- package/dist/esm/components/barchart/index.js +2 -0
- package/dist/esm/components/breadcrumb/breadcrumb.js +17 -0
- package/dist/esm/components/breadcrumb/breadcrumb.recipe.js +18 -0
- package/dist/esm/components/breadcrumb/index.js +2 -0
- package/dist/esm/components/bulkbar/bulkbar.js +16 -0
- package/dist/esm/components/bulkbar/bulkbar.recipe.js +28 -0
- package/dist/esm/components/bulkbar/index.js +2 -0
- package/dist/esm/components/button/button.js +26 -0
- package/dist/esm/components/button/button.recipe.js +55 -0
- package/dist/esm/components/button/index.js +2 -0
- package/dist/esm/components/callout/callout.js +22 -0
- package/dist/esm/components/callout/callout.recipe.js +26 -0
- package/dist/esm/components/callout/index.js +2 -0
- package/dist/esm/components/card/card.js +15 -0
- package/dist/esm/components/card/card.recipe.js +28 -0
- package/dist/esm/components/card/index.js +2 -0
- package/dist/esm/components/checkbox/checkbox.js +20 -0
- package/dist/esm/components/checkbox/checkbox.recipe.js +31 -0
- package/dist/esm/components/checkbox/index.js +2 -0
- 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.js +42 -0
- package/dist/esm/components/contextmenu/contextmenu.recipe.js +21 -0
- package/dist/esm/components/contextmenu/index.js +2 -0
- package/dist/esm/components/datatable/datatable.js +472 -0
- package/dist/esm/components/datatable/datatable.recipe.js +110 -0
- package/dist/esm/components/datatable/index.js +2 -0
- package/dist/esm/components/datepicker/datepicker.js +108 -0
- package/dist/esm/components/datepicker/datepicker.recipe.js +177 -0
- package/dist/esm/components/datepicker/index.js +2 -0
- 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 +48 -0
- package/dist/esm/components/dialog/dialog.recipe.js +32 -0
- package/dist/esm/components/dialog/index.js +2 -0
- package/dist/esm/components/divider/divider.js +7 -0
- package/dist/esm/components/divider/divider.recipe.js +14 -0
- package/dist/esm/components/divider/index.js +2 -0
- package/dist/esm/components/donutchart/donutchart.js +38 -0
- package/dist/esm/components/donutchart/donutchart.recipe.js +27 -0
- package/dist/esm/components/donutchart/index.js +2 -0
- package/dist/esm/components/drawer/drawer.js +42 -0
- package/dist/esm/components/drawer/drawer.recipe.js +27 -0
- package/dist/esm/components/drawer/index.js +2 -0
- package/dist/esm/components/emptystate/emptystate.js +7 -0
- package/dist/esm/components/emptystate/emptystate.recipe.js +31 -0
- package/dist/esm/components/emptystate/index.js +2 -0
- package/dist/esm/components/formfield/formfield.js +14 -0
- package/dist/esm/components/formfield/formfield.recipe.js +19 -0
- package/dist/esm/components/formfield/index.js +2 -0
- package/dist/esm/components/input/index.js +2 -0
- package/dist/esm/components/input/input.js +11 -0
- package/dist/esm/components/input/input.recipe.js +56 -0
- package/dist/esm/components/kbd/index.js +2 -0
- package/dist/esm/components/kbd/kbd.js +8 -0
- package/dist/esm/components/kbd/kbd.recipe.js +20 -0
- package/dist/esm/components/linechart/index.js +2 -0
- package/dist/esm/components/linechart/linechart.js +54 -0
- package/dist/esm/components/linechart/linechart.recipe.js +32 -0
- package/dist/esm/components/menu/index.js +3 -0
- package/dist/esm/components/menu/menu-keyboard.js +80 -0
- package/dist/esm/components/menu/menu.js +104 -0
- package/dist/esm/components/menu/menu.recipe.js +51 -0
- package/dist/esm/components/multiselect/index.js +2 -0
- package/dist/esm/components/multiselect/multiselect.js +125 -0
- package/dist/esm/components/multiselect/multiselect.recipe.js +68 -0
- package/dist/esm/components/popover/index.js +2 -0
- package/dist/esm/components/popover/popover.js +70 -0
- package/dist/esm/components/popover/popover.recipe.js +18 -0
- package/dist/esm/components/progress/index.js +2 -0
- package/dist/esm/components/progress/progress.js +23 -0
- package/dist/esm/components/progress/progress.recipe.js +17 -0
- package/dist/esm/components/radiogroup/index.js +2 -0
- package/dist/esm/components/radiogroup/radiogroup.js +46 -0
- package/dist/esm/components/radiogroup/radiogroup.recipe.js +37 -0
- 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/index.js +2 -0
- package/dist/esm/components/segmented/segmented.js +59 -0
- package/dist/esm/components/segmented/segmented.recipe.js +20 -0
- package/dist/esm/components/select/index.js +2 -0
- package/dist/esm/components/select/select.js +144 -0
- package/dist/esm/components/select/select.recipe.js +76 -0
- package/dist/esm/components/skeleton/index.js +2 -0
- package/dist/esm/components/skeleton/skeleton.js +10 -0
- package/dist/esm/components/skeleton/skeleton.recipe.js +14 -0
- package/dist/esm/components/spinner/index.js +2 -0
- package/dist/esm/components/spinner/spinner.js +12 -0
- package/dist/esm/components/spinner/spinner.recipe.js +13 -0
- package/dist/esm/components/stagebar/index.js +2 -0
- package/dist/esm/components/stagebar/stagebar.js +23 -0
- package/dist/esm/components/stagebar/stagebar.recipe.js +14 -0
- package/dist/esm/components/statcard/index.js +2 -0
- package/dist/esm/components/statcard/statcard.js +12 -0
- package/dist/esm/components/statcard/statcard.recipe.js +34 -0
- package/dist/esm/components/switch/index.js +2 -0
- package/dist/esm/components/switch/switch.js +22 -0
- package/dist/esm/components/switch/switch.recipe.js +26 -0
- package/dist/esm/components/table/index.js +2 -0
- package/dist/esm/components/table/table.js +30 -0
- package/dist/esm/components/table/table.recipe.js +40 -0
- package/dist/esm/components/tabletoolbar/index.js +2 -0
- package/dist/esm/components/tabletoolbar/tabletoolbar.chrome.js +79 -0
- package/dist/esm/components/tabletoolbar/tabletoolbar.js +199 -0
- package/dist/esm/components/tabletoolbar/tabletoolbar.recipe.js +23 -0
- package/dist/esm/components/tabs/index.js +2 -0
- package/dist/esm/components/tabs/tabs.js +70 -0
- package/dist/esm/components/tabs/tabs.recipe.js +33 -0
- package/dist/esm/components/textarea/index.js +2 -0
- package/dist/esm/components/textarea/textarea.js +20 -0
- package/dist/esm/components/textarea/textarea.recipe.js +43 -0
- package/dist/esm/components/toast/index.js +2 -0
- package/dist/esm/components/toast/toast.js +58 -0
- package/dist/esm/components/toast/toast.recipe.js +28 -0
- package/dist/esm/components/tooltip/index.js +2 -0
- package/dist/esm/components/tooltip/tooltip.js +59 -0
- package/dist/esm/components/tooltip/tooltip.recipe.js +13 -0
- 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/core/cx.js +1 -0
- package/dist/esm/core/define.js +3 -0
- package/dist/esm/core/index.js +4 -0
- package/dist/esm/core/primitive.js +13 -0
- package/dist/esm/core/resolve.js +41 -0
- package/dist/esm/core/types.js +1 -0
- package/dist/esm/index.js +76 -0
- package/dist/esm/product/appshell/appshell.js +68 -0
- package/dist/esm/product/appshell/appshell.recipe.js +27 -0
- package/dist/esm/product/appshell/index.js +2 -0
- 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 +42 -0
- package/dist/esm/product/board/board.recipe.js +28 -0
- package/dist/esm/product/board/index.js +2 -0
- package/dist/esm/product/command/command.js +201 -0
- package/dist/esm/product/command/command.recipe.js +44 -0
- package/dist/esm/product/command/index.js +2 -0
- package/dist/esm/product/entitycard/entitycard.js +11 -0
- package/dist/esm/product/entitycard/entitycard.recipe.js +29 -0
- package/dist/esm/product/entitycard/index.js +2 -0
- package/dist/esm/product/flowcanvas/flowcanvas.js +85 -0
- package/dist/esm/product/flowcanvas/flowcanvas.recipe.js +25 -0
- package/dist/esm/product/flowcanvas/index.js +2 -0
- package/dist/esm/product/inbox/inbox.js +13 -0
- package/dist/esm/product/inbox/inbox.recipe.js +43 -0
- package/dist/esm/product/inbox/index.js +2 -0
- package/dist/esm/product/listpage/index.js +2 -0
- package/dist/esm/product/listpage/listpage.js +21 -0
- package/dist/esm/product/listpage/listpage.recipe.js +43 -0
- package/dist/esm/product/navitem/index.js +1 -0
- package/dist/esm/product/navitem/navitem.js +8 -0
- package/dist/esm/product/navitem/navitem.recipe.js +33 -0
- package/dist/esm/product/onboarding/index.js +2 -0
- package/dist/esm/product/onboarding/onboarding.js +14 -0
- package/dist/esm/product/onboarding/onboarding.recipe.js +41 -0
- package/dist/esm/product/recordpage/index.js +2 -0
- package/dist/esm/product/recordpage/recordpage.js +372 -0
- package/dist/esm/product/recordpage/recordpage.recipe.js +159 -0
- package/dist/esm/product/recordpanel/index.js +2 -0
- package/dist/esm/product/recordpanel/recordpanel.js +47 -0
- package/dist/esm/product/recordpanel/recordpanel.recipe.js +48 -0
- package/dist/esm/product/recordstable/company-logos.js +26 -0
- package/dist/esm/product/recordstable/index.js +2 -0
- package/dist/esm/product/recordstable/recordstable.js +1054 -0
- package/dist/esm/product/recordstable/recordstable.recipe.js +149 -0
- package/dist/esm/product/recordstable/recordstable.tag.js +18 -0
- package/dist/esm/product/richtext/index.js +2 -0
- package/dist/esm/product/richtext/richtext.js +111 -0
- package/dist/esm/product/richtext/richtext.recipe.js +40 -0
- package/dist/esm/product/settingssection/index.js +2 -0
- package/dist/esm/product/settingssection/settingssection.js +11 -0
- package/dist/esm/product/settingssection/settingssection.recipe.js +20 -0
- package/dist/esm/product/settingsshell/index.js +2 -0
- package/dist/esm/product/settingsshell/settingsshell.js +23 -0
- package/dist/esm/product/settingsshell/settingsshell.recipe.js +43 -0
- package/dist/esm/product/sidebar/index.js +2 -0
- package/dist/esm/product/sidebar/sidebar.js +112 -0
- package/dist/esm/product/sidebar/sidebar.recipe.js +43 -0
- package/dist/esm/product/tasklist/index.js +2 -0
- package/dist/esm/product/tasklist/tasklist.js +16 -0
- package/dist/esm/product/tasklist/tasklist.recipe.js +35 -0
- package/dist/esm/product/trialbanner/index.js +2 -0
- package/dist/esm/product/trialbanner/trialbanner.js +10 -0
- package/dist/esm/product/trialbanner/trialbanner.recipe.js +29 -0
- package/dist/esm/product/viewtoggle/index.js +2 -0
- package/dist/esm/product/viewtoggle/viewtoggle.js +19 -0
- package/dist/esm/product/viewtoggle/viewtoggle.recipe.js +24 -0
- package/dist/esm/tokens/contract.js +18 -0
- package/dist/esm/tokens/elevation.js +44 -0
- package/dist/esm/tokens/index.js +5 -0
- package/dist/esm/tokens/palette.js +60 -0
- package/dist/esm/tokens/scale.js +67 -0
- package/dist/esm/tokens/semantic.js +54 -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 +13 -5
- package/dist/multiselect.css +17 -9
- 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 +9 -1
- package/dist/progress.css +8 -0
- package/dist/radiogroup.css +9 -1
- package/dist/recordpage.css +26 -16
- package/dist/recordpanel.css +25 -15
- package/dist/recordstable.css +41 -27
- 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 +22 -8
- package/dist/select.d.ts +2 -1
- 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/statcard.css +6 -0
- package/dist/statcard.d.ts +2 -2
- package/dist/styles.css +2134 -999
- package/dist/switch.css +8 -0
- package/dist/table.css +34 -0
- package/dist/table.d.ts +8 -0
- package/dist/tabletoolbar.css +78 -0
- package/dist/tabletoolbar.d.ts +7 -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 +53 -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 +153 -0
- package/dist/types/components/datatable/datatable.recipe.d.ts +3 -0
- package/dist/types/components/datatable/index.d.ts +2 -0
- 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 +4 -2
- package/dist/types/components/select/select.recipe.d.ts +12 -0
- 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 +7 -2
- package/dist/types/components/statcard/statcard.recipe.d.ts +12 -2
- package/dist/types/components/table/index.d.ts +2 -0
- package/dist/types/components/table/table.d.ts +53 -0
- package/dist/types/components/table/table.recipe.d.ts +21 -0
- package/dist/types/components/tabletoolbar/index.d.ts +2 -0
- package/dist/types/components/tabletoolbar/tabletoolbar.chrome.d.ts +2 -0
- package/dist/types/components/tabletoolbar/tabletoolbar.d.ts +89 -0
- package/dist/types/components/tabletoolbar/tabletoolbar.recipe.d.ts +3 -0
- 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 +8 -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/company-logos.d.ts +1 -0
- package/dist/types/product/recordstable/recordstable.d.ts +131 -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/index.d.ts +1 -1
- package/dist/types/product/sidebar/sidebar.d.ts +93 -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 +26 -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 +88 -0
- package/dist/types/tokens/scale.d.ts +7 -0
- package/dist/types/tokens/semantic.d.ts +31 -0
- package/dist/viewtoggle.css +11 -3
- package/dist/wheelpicker.css +68 -0
- package/dist/wheelpicker.d.ts +7 -0
- package/package.json +351 -9
- package/dist/index.js +0 -9690
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { tasklistRecipe } from "./tasklist.recipe.js";
|
|
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
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* A task list — measured from Attio's Tasks page. Optional group headers with a
|
|
8
|
+
* count, then rows of a round complete-checkbox + title + trailing meta.
|
|
9
|
+
* Completed rows strike through; overdue dates go red.
|
|
10
|
+
*/
|
|
11
|
+
export function TaskList({ tasks, groups, onToggle, emptyLabel = "No tasks", className, completeLabel = "Mark complete", incompleteLabel = "Mark incomplete", }) {
|
|
12
|
+
const resolved = groups ?? (tasks?.length ? [{ label: null, tasks }] : []);
|
|
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, completeLabel: completeLabel, incompleteLabel: incompleteLabel }, t.id)))] }, gi)))) }));
|
|
15
|
+
}
|
|
16
|
+
TaskList.displayName = "TaskList";
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { defineRecipe, resolveRecipe } from "../../core/index.js";
|
|
2
|
+
import { contract as c } from "../../tokens/index.js";
|
|
3
|
+
// A task list — measured from Attio's Tasks page: optional group headers, then
|
|
4
|
+
// rows of a round complete-checkbox + title + trailing meta (due date, record,
|
|
5
|
+
// assignee). Completed rows strike through; overdue due-dates go red.
|
|
6
|
+
const config = defineRecipe({
|
|
7
|
+
name: "tasklist",
|
|
8
|
+
base: `display: flex; flex-direction: column; box-sizing: border-box; font-family: ${c.font.sans};
|
|
9
|
+
-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
|
|
10
|
+
|
|
11
|
+
& .tasklist-group { display: flex; align-items: center; gap: ${c.space["1.5"]}; height: 36px; padding: 0 ${c.space["2"]}; font-size: ${c.text.md}; font-weight: ${c.weight.medium}; color: ${c.fgMuted}; }
|
|
12
|
+
& .tasklist-group-count { display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px; padding: 0 ${c.space["1"]}; border-radius: ${c.radius.sm}; background: color-mix(in srgb, ${c.fgPrimary} 6%, transparent); font-size: ${c.text.xs}; color: ${c.fgMuted}; }
|
|
13
|
+
|
|
14
|
+
& .tasklist-row { display: flex; align-items: center; gap: ${c.space["2.5"]}; height: 52px; padding: 0 ${c.space["2"]}; border-top: 1px solid ${c.borderSubtle}; }
|
|
15
|
+
& .tasklist-row:first-child { border-top: none; }
|
|
16
|
+
|
|
17
|
+
& .tasklist-check { appearance: none; -webkit-appearance: none; box-sizing: border-box; flex-shrink: 0; margin: 0; width: 16px; height: 16px; border: none; border-radius: ${c.radius.full}; background: ${c.bgSurface}; box-shadow: inset 0 0 0 1px color-mix(in srgb, ${c.fgPrimary} 9%, transparent); cursor: pointer; transition: background-color .12s, box-shadow .12s; }
|
|
18
|
+
& .tasklist-check:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, ${c.fgPrimary} 30%, transparent); }
|
|
19
|
+
& .tasklist-check:checked { background: ${c.bgBrandSolid} center / 10px no-repeat; box-shadow: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.5 5 9l4.5-5'/%3E%3C/svg%3E"); }
|
|
20
|
+
& .tasklist-check:focus-visible { outline: 2px solid ${c.bgBrandSolid}; outline-offset: 1px; }
|
|
21
|
+
|
|
22
|
+
& .tasklist-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: ${c.text.lg}; font-weight: ${c.weight.medium}; color: ${c.fgPrimary}; }
|
|
23
|
+
& .tasklist-row[data-done] .tasklist-title { color: ${c.fgMuted}; text-decoration: line-through; }
|
|
24
|
+
|
|
25
|
+
& .tasklist-meta { display: inline-flex; align-items: center; gap: ${c.space["3"]}; flex-shrink: 0; }
|
|
26
|
+
& .tasklist-due { font-size: ${c.text.lg}; color: ${c.fgMuted}; white-space: nowrap; }
|
|
27
|
+
& .tasklist-due[data-overdue] { color: ${c.bgDanger}; }
|
|
28
|
+
|
|
29
|
+
& .tasklist-empty { padding: ${c.space["4"]} ${c.space["2"]}; text-align: center; font-size: ${c.text.md}; color: ${c.fgMuted}; }`,
|
|
30
|
+
variants: {},
|
|
31
|
+
defaultVariants: {},
|
|
32
|
+
compoundVariants: [],
|
|
33
|
+
});
|
|
34
|
+
export const tasklistRecipe = resolveRecipe(config);
|
|
35
|
+
export default config;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { trialbannerRecipe } from "./trialbanner.recipe.js";
|
|
3
|
+
/**
|
|
4
|
+
* A compact trial / upgrade banner — measured from Attio's sidebar footer.
|
|
5
|
+
* Icon + message + an optional small action pill (soft-glow outlined button).
|
|
6
|
+
*/
|
|
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
|
+
}
|
|
10
|
+
TrialBanner.displayName = "TrialBanner";
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { defineRecipe, resolveRecipe } from "../../core/index.js";
|
|
2
|
+
import { contract as c, elevation as e } from "../../tokens/index.js";
|
|
3
|
+
// A compact trial / upgrade banner — measured from Attio's sidebar footer: an
|
|
4
|
+
// icon + a message on the left and a small action pill on the right, in a 28px
|
|
5
|
+
// row. The action uses Attio's soft-glow outlined-button shadow.
|
|
6
|
+
const config = defineRecipe({
|
|
7
|
+
name: "trialbanner",
|
|
8
|
+
base: `display: flex; align-items: center; gap: ${c.space["1.5"]}; box-sizing: border-box; min-height: 28px;
|
|
9
|
+
padding: 0 ${c.space["1"]}; border-radius: ${c.radius.lg}; font-family: ${c.font.sans};
|
|
10
|
+
font-size: ${c.text.lg}; color: ${c.fgPrimary};
|
|
11
|
+
-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
|
|
12
|
+
|
|
13
|
+
& .trialbanner-icon { display: inline-flex; flex-shrink: 0; color: ${c.fgMuted}; }
|
|
14
|
+
& .trialbanner-msg { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
15
|
+
& .trialbanner-action { display: inline-flex; align-items: center; gap: ${c.space["1"]}; height: 20px; flex-shrink: 0;
|
|
16
|
+
padding: 0 ${c.space["1.5"]}; margin: 0; border: none; border-radius: ${c.radius.sm}; background: ${c.bgSurface};
|
|
17
|
+
box-shadow: ${e.fieldNoRing};
|
|
18
|
+
font-family: inherit; font-size: ${c.text.md}; font-weight: ${c.weight.medium}; color: ${c.fgPrimary};
|
|
19
|
+
white-space: nowrap; cursor: pointer; transition: background-color .12s; }
|
|
20
|
+
& .trialbanner-action:hover { background: ${c.bgRaised}; }
|
|
21
|
+
|
|
22
|
+
&[data-tone="warning"] .trialbanner-icon { color: ${c.bgWarning}; }
|
|
23
|
+
&[data-tone="danger"] .trialbanner-icon { color: ${c.bgDanger}; }`,
|
|
24
|
+
variants: {},
|
|
25
|
+
defaultVariants: {},
|
|
26
|
+
compoundVariants: [],
|
|
27
|
+
});
|
|
28
|
+
export const trialbannerRecipe = resolveRecipe(config);
|
|
29
|
+
export default config;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { viewtoggleRecipe } from "./viewtoggle.recipe.js";
|
|
4
|
+
/**
|
|
5
|
+
* A compact icon toggle — measured from Attio's list/grid switch. A padded track
|
|
6
|
+
* of icon tiles; the selected tile is raised. Use for view-mode switches (list ⇄
|
|
7
|
+
* grid) or any small mutually-exclusive icon choice.
|
|
8
|
+
*/
|
|
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))) }));
|
|
18
|
+
}
|
|
19
|
+
ViewToggle.displayName = "ViewToggle";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { defineRecipe, resolveRecipe } from "../../core/index.js";
|
|
2
|
+
import { contract as c } from "../../tokens/index.js";
|
|
3
|
+
// A compact icon toggle — measured from Attio's list/grid switch: a 28px track
|
|
4
|
+
// (radius 10, ~5% ink) padded 2px, holding 24px icon tiles (radius 8). The
|
|
5
|
+
// selected tile gets a raised surface with a soft shadow.
|
|
6
|
+
const config = defineRecipe({
|
|
7
|
+
name: "viewtoggle",
|
|
8
|
+
base: `display: inline-flex; align-items: center; gap: 2px; box-sizing: border-box; padding: 2px;
|
|
9
|
+
border-radius: ${c.radius.lg}; background: color-mix(in srgb, ${c.fgPrimary} 5%, transparent);
|
|
10
|
+
font-family: ${c.font.sans};
|
|
11
|
+
|
|
12
|
+
& .viewtoggle-tile { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px;
|
|
13
|
+
padding: 0; margin: 0; border: none; border-radius: ${c.radius.md}; background: none; color: ${c.fgMuted};
|
|
14
|
+
font-family: inherit; cursor: pointer; transition: background-color .12s, color .12s, box-shadow .12s; }
|
|
15
|
+
& .viewtoggle-tile:hover { color: ${c.fgPrimary}; }
|
|
16
|
+
& .viewtoggle-tile[data-active] { background: ${c.bgTileActive}; color: ${c.fgPrimary};
|
|
17
|
+
box-shadow: 0 1px 2px -1px ${c.shadowTileActive}; }
|
|
18
|
+
& .viewtoggle-tile:focus-visible { outline: 2px solid ${c.bgBrandSolid}; outline-offset: 1px; }`,
|
|
19
|
+
variants: {},
|
|
20
|
+
defaultVariants: {},
|
|
21
|
+
compoundVariants: [],
|
|
22
|
+
});
|
|
23
|
+
export const viewtoggleRecipe = resolveRecipe(config);
|
|
24
|
+
export default config;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { font as fontScale, radius as radiusScale, size as sizeScale, space as spaceScale, text as textScale, weight as weightScale, } from "./scale.js";
|
|
2
|
+
import { semantic } from "./semantic.js";
|
|
3
|
+
const kebab = (s) => s.replace(/[A-Z]/g, (m) => `-${m.toLowerCase()}`);
|
|
4
|
+
const toVar = (key) => `var(--${kebab(key)})`;
|
|
5
|
+
// dots aren't valid in a CSS custom-property name → "2.5" becomes "2-5"
|
|
6
|
+
const scaleVar = (prefix, key) => `var(--${prefix}-${key.replace(/\./g, "-")})`;
|
|
7
|
+
const mapScale = (prefix, scale) => Object.fromEntries(Object.keys(scale).map((k) => [k, scaleVar(prefix, k)]));
|
|
8
|
+
const colors = Object.fromEntries(Object.keys(semantic).map((k) => [k, toVar(k)]));
|
|
9
|
+
// contract = color tokens (theme-flipping) + the dimensional scale
|
|
10
|
+
// (theme-invariant). Recipes read everything through this one import.
|
|
11
|
+
export const contract = Object.assign(colors, {
|
|
12
|
+
space: mapScale("space", spaceScale),
|
|
13
|
+
radius: mapScale("radius", radiusScale),
|
|
14
|
+
size: mapScale("size", sizeScale),
|
|
15
|
+
font: mapScale("font", fontScale),
|
|
16
|
+
text: mapScale("text", textScale),
|
|
17
|
+
weight: mapScale("weight", weightScale),
|
|
18
|
+
});
|
|
@@ -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
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export const palette = {
|
|
2
|
+
gray00: { light: "#ffffff", dark: "#0a0a0a" },
|
|
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" },
|
|
8
|
+
gray50: { light: "#f4f4f5", dark: "#101112" },
|
|
9
|
+
gray900: { light: "#101112", dark: "#f5f5f5" },
|
|
10
|
+
line200: { light: "#e4e4e7", dark: "#212224" },
|
|
11
|
+
line100: { light: "#eeeff1", dark: "#1c1d1f" },
|
|
12
|
+
ringNeutral: { light: "transparent", dark: "#212224" },
|
|
13
|
+
tileActive: { light: "#ffffff", dark: "#101112" },
|
|
14
|
+
tileActiveShadow: { light: "rgba(0,0,0,0.04)", dark: "rgba(0,0,0,0)" },
|
|
15
|
+
overlayFrost: { light: "#ffffff", dark: "#1c1d1f" },
|
|
16
|
+
shadowOverlay1: { light: "rgba(28,40,64,0.12)", dark: "rgba(0,0,0,0.48)" },
|
|
17
|
+
shadowOverlay2: { light: "rgba(28,40,64,0.16)", dark: "rgba(0,0,0,0.64)" },
|
|
18
|
+
shadowOverlay3: { light: "rgba(28,40,64,0.16)", dark: "rgba(0,0,0,0)" },
|
|
19
|
+
popoverBg: { light: "#ffffff", dark: "#17181a" },
|
|
20
|
+
ringPopover: { light: "rgba(0,0,0,0)", dark: "#212224" },
|
|
21
|
+
shadowPopover1: { light: "rgba(28,40,64,0.04)", dark: "rgba(0,0,0,0.16)" },
|
|
22
|
+
shadowPopover2: { light: "rgba(28,40,64,0.12)", dark: "rgba(0,0,0,0.24)" },
|
|
23
|
+
shadowPopover3: { light: "rgba(24,41,75,0.16)", dark: "rgba(0,0,0,0.32)" },
|
|
24
|
+
gray400: { light: "#71717a", dark: "#9a9aa2" },
|
|
25
|
+
brand600: { light: "#266df0", dark: "#266df0" },
|
|
26
|
+
brand700: { light: "#1f5fd6", dark: "#1f5fd6" },
|
|
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" },
|
|
54
|
+
green600: { light: "#1f9d57", dark: "#2ea968" },
|
|
55
|
+
amber600: { light: "#b5730f", dark: "#e0982a" },
|
|
56
|
+
orange600: { light: "#f97514", dark: "#f97514" },
|
|
57
|
+
cyan600: { light: "#00b9eb", dark: "#00b9eb" },
|
|
58
|
+
purple600: { light: "#9b69ff", dark: "#9b69ff" },
|
|
59
|
+
graySidebar: { light: "#fbfbfb", dark: "#0e0f10" },
|
|
60
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
// Dimensional scale — the single source of raw px for spacing, radius, and
|
|
2
|
+
// component sizing. Theme-invariant (identical in light/dark), so it is emitted
|
|
3
|
+
// once into :root, unlike the color tokens which flip per theme.
|
|
4
|
+
//
|
|
5
|
+
// Derived by measuring the live Attio app (not taste): its spacing is a
|
|
6
|
+
// 2px-granular / 4px-base scale — the values 1,2,4,6,8,10,12,16 account for
|
|
7
|
+
// nearly every gap/pad/margin in the sidebar. Radii cluster at 6/8/9 + a pill.
|
|
8
|
+
// Recipes MUST reference these through the contract (`c.space[...]`), never a
|
|
9
|
+
// literal px — this file is the only exception.
|
|
10
|
+
// Spacing: gaps, padding, margins. Keys follow the Tailwind step convention
|
|
11
|
+
// (0.5 = half a 4px step = 2px) so the numbers stay legible to consumers.
|
|
12
|
+
export const space = {
|
|
13
|
+
px: "1px", // hairline — the 1px gap between rows in a dense nav list
|
|
14
|
+
"0.5": "2px",
|
|
15
|
+
"1": "4px",
|
|
16
|
+
"1.5": "6px",
|
|
17
|
+
"2": "8px",
|
|
18
|
+
"2.5": "10px",
|
|
19
|
+
"3": "12px",
|
|
20
|
+
"4": "16px",
|
|
21
|
+
"5": "20px",
|
|
22
|
+
"6": "24px",
|
|
23
|
+
"8": "32px", // overlay / empty-state padding
|
|
24
|
+
};
|
|
25
|
+
// Corner radius. sm/md/lg are the three Attio uses on stacked surfaces
|
|
26
|
+
// (inputs, rows, tiles); full is the pill.
|
|
27
|
+
export const radius = {
|
|
28
|
+
chip: "7px", // tag / chip corner — the single most used radius in Attio
|
|
29
|
+
sm: "6px", // chips, badges
|
|
30
|
+
md: "8px", // inputs, search box
|
|
31
|
+
lg: "9px", // rows, tiles, list items
|
|
32
|
+
xl: "12px", // overlay items (command rows)
|
|
33
|
+
"2xl": "16px", // overlay panels (command surface)
|
|
34
|
+
full: "999px", // pills
|
|
35
|
+
};
|
|
36
|
+
// Component sizing — recurring measured dimensions that are neither spacing nor
|
|
37
|
+
// radius (row height, header height, the nav icon box).
|
|
38
|
+
export const size = {
|
|
39
|
+
icon: "16px", // nav / control glyph box
|
|
40
|
+
chip: "22px", // tag / chip height — Attio's most repeated small control
|
|
41
|
+
row: "28px", // nav item · search · control height
|
|
42
|
+
menuRow: "32px", // overlay row: menu item, select option, bulk-bar button
|
|
43
|
+
tableRow: "36px", // data-grid row height
|
|
44
|
+
tableHeader: "40px", // data-grid header row height
|
|
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
|
|
48
|
+
};
|
|
49
|
+
// Typography — Attio's UI runs entirely on Inter. Sizes measured in the sidebar
|
|
50
|
+
// collapse onto 11/12/13/14/16 (lg = 14px is the default body/label size);
|
|
51
|
+
// weights are 400/500/600 with 500 the UI default.
|
|
52
|
+
export const font = {
|
|
53
|
+
sans: '"Inter", system-ui, -apple-system, "Segoe UI", sans-serif',
|
|
54
|
+
};
|
|
55
|
+
export const text = {
|
|
56
|
+
xs: "11px",
|
|
57
|
+
sm: "12px",
|
|
58
|
+
md: "13px",
|
|
59
|
+
lg: "14px", // default body / nav-label size
|
|
60
|
+
xl: "16px",
|
|
61
|
+
};
|
|
62
|
+
export const weight = {
|
|
63
|
+
regular: "400",
|
|
64
|
+
medium: "500", // default UI weight
|
|
65
|
+
semibold: "600",
|
|
66
|
+
bold: "700", // seed-design's font-weight-bold, for the seed-styled calendar
|
|
67
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export const semantic = {
|
|
2
|
+
bgBrandSolid: "brand600",
|
|
3
|
+
bgBrandSolidPressed: "brand700",
|
|
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",
|
|
9
|
+
bgSurface: "gray00",
|
|
10
|
+
bgRaised: "gray50",
|
|
11
|
+
borderDefault: "line200",
|
|
12
|
+
borderSubtle: "line100",
|
|
13
|
+
ringNeutral: "ringNeutral",
|
|
14
|
+
bgTileActive: "tileActive",
|
|
15
|
+
shadowTileActive: "tileActiveShadow",
|
|
16
|
+
bgOverlayFrost: "overlayFrost",
|
|
17
|
+
shadowOverlay1: "shadowOverlay1",
|
|
18
|
+
shadowOverlay2: "shadowOverlay2",
|
|
19
|
+
shadowOverlay3: "shadowOverlay3",
|
|
20
|
+
bgPopover: "popoverBg",
|
|
21
|
+
ringPopover: "ringPopover",
|
|
22
|
+
shadowPopover1: "shadowPopover1",
|
|
23
|
+
shadowPopover2: "shadowPopover2",
|
|
24
|
+
shadowPopover3: "shadowPopover3",
|
|
25
|
+
fgPrimary: "gray900",
|
|
26
|
+
fgMuted: "gray400",
|
|
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",
|
|
45
|
+
bgSuccess: "green600",
|
|
46
|
+
bgWarning: "amber600",
|
|
47
|
+
bgOrange: "orange600",
|
|
48
|
+
bgCyan: "cyan600",
|
|
49
|
+
bgPurple: "purple600",
|
|
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",
|
|
54
|
+
};
|
package/dist/inbox.css
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
& .inbox-tab[data-active] .inbox-tab-count { color: var(--bg-brand-solid); }
|
|
15
15
|
|
|
16
16
|
& .inbox-list { flex: 1; min-height: 0; overflow-y: auto; padding: var(--space-1); display: flex; flex-direction: column; gap: 1px; }
|
|
17
|
-
& .inbox-row { display: flex; align-items: flex-start; gap: var(--space-2-5); padding: var(--space-2) var(--space-2); margin: 0; border: none; border-radius: var(--radius-md); background: none; font-family: inherit; text-align:
|
|
17
|
+
& .inbox-row { display: flex; align-items: flex-start; gap: var(--space-2-5); padding: var(--space-2) var(--space-2); margin: 0; border: none; border-radius: var(--radius-md); background: none; font-family: inherit; text-align: start; cursor: pointer; transition: background-color .12s; }
|
|
18
18
|
& .inbox-row:hover { background: var(--bg-raised); }
|
|
19
19
|
& .inbox-row-avatar { flex-shrink: 0; margin-top: 1px; }
|
|
20
20
|
& .inbox-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
|
|
@@ -29,3 +29,11 @@
|
|
|
29
29
|
& .inbox-empty-sub { font-size: var(--text-md); line-height: 18px; color: var(--fg-muted); max-width: 260px; }
|
|
30
30
|
& .inbox-empty-action { margin-top: var(--space-2); }
|
|
31
31
|
}
|
|
32
|
+
|
|
33
|
+
@media (prefers-reduced-motion: reduce) {
|
|
34
|
+
.inbox, .inbox * {
|
|
35
|
+
animation-duration: 0.01ms !important;
|
|
36
|
+
animation-iteration-count: 1 !important;
|
|
37
|
+
transition-duration: 0.01ms !important;
|
|
38
|
+
}
|
|
39
|
+
}
|
package/dist/input.css
CHANGED
|
@@ -1,15 +1,43 @@
|
|
|
1
1
|
.input {
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
position: relative; box-sizing: border-box; display: inline-flex; align-items: center;
|
|
4
|
+
width: 100%; background: var(--bg-surface); box-shadow: inset 0 0 0 1px var(--ring-neutral), 0 0 2px rgba(28,40,64,0.18), 0 1px 3px rgba(0,0,0,0.04);
|
|
5
|
+
font-family: var(--font-sans); font-size: var(--text-lg); line-height: 20px;
|
|
6
|
+
|
|
7
|
+
&::after {
|
|
8
|
+
content: ""; position: absolute; inset: 0; border-radius: inherit;
|
|
9
|
+
border: 2px solid transparent; transition: border-color .1s ease;
|
|
10
|
+
pointer-events: none;
|
|
11
|
+
}
|
|
12
|
+
&:focus-within::after { border-color: var(--stroke-field-focus); }
|
|
13
|
+
|
|
14
|
+
& .input-value {
|
|
15
|
+
box-sizing: border-box; flex: 1 1 auto; min-width: 0; width: 100%;
|
|
16
|
+
align-self: stretch; margin: 0; border: none; background: none; outline: none;
|
|
17
|
+
font: inherit; color: var(--fg-primary);
|
|
18
|
+
}
|
|
19
|
+
& .input-value::placeholder { color: var(--fg-muted); }
|
|
20
|
+
& .input-value:disabled { opacity: 0.5; cursor: not-allowed; }
|
|
21
|
+
&:has(.input-value:disabled) { opacity: 1; }
|
|
22
|
+
|
|
3
23
|
}
|
|
4
24
|
.input--size_medium {
|
|
5
|
-
height: 32px;
|
|
25
|
+
height: 32px; border-radius: var(--radius-md); & .input-value { padding-inline: var(--space-2-5); }
|
|
6
26
|
}
|
|
7
27
|
.input--size_large {
|
|
8
|
-
height: 36px; padding-inline: var(--space-3);
|
|
28
|
+
height: 36px; border-radius: 10px; & .input-value { padding-inline: var(--space-3); }
|
|
9
29
|
}
|
|
10
30
|
.input--invalid_true {
|
|
11
|
-
|
|
31
|
+
&::after { border-color: var(--bg-danger); } &:focus-within::after { border-color: var(--bg-danger); }
|
|
12
32
|
}
|
|
13
33
|
.input--invalid_false {
|
|
14
34
|
|
|
15
35
|
}
|
|
36
|
+
|
|
37
|
+
@media (prefers-reduced-motion: reduce) {
|
|
38
|
+
.input, .input * {
|
|
39
|
+
animation-duration: 0.01ms !important;
|
|
40
|
+
animation-iteration-count: 1 !important;
|
|
41
|
+
transition-duration: 0.01ms !important;
|
|
42
|
+
}
|
|
43
|
+
}
|
package/dist/linechart.css
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
.linechart {
|
|
2
|
-
display: flex; flex-direction: column; box-sizing: border-box; font-family: var(--font-sans);
|
|
2
|
+
display: flex; flex-direction: column; box-sizing: border-box; font-family: var(--font-sans); --linechart-yaxis-width: 34px;
|
|
3
3
|
& .linechart-body { display: flex; flex: 1; min-height: 0; }
|
|
4
|
-
& .linechart-yaxis { position: relative; flex-shrink: 0; width:
|
|
5
|
-
& .linechart-ytick { position: absolute;
|
|
4
|
+
& .linechart-yaxis { position: relative; flex-shrink: 0; width: var(--linechart-yaxis-width); }
|
|
5
|
+
& .linechart-ytick { position: absolute; inset-inline-end: var(--space-2); transform: translateY(50%); font-size: var(--text-xs); color: var(--fg-muted); white-space: nowrap; }
|
|
6
6
|
& .linechart-plot { position: relative; flex: 1; min-width: 0; border-bottom: 1px solid var(--border-default); }
|
|
7
7
|
& .linechart-grid { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--border-subtle); pointer-events: none; }
|
|
8
8
|
& .linechart-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
|
|
9
9
|
& .linechart-area { fill: color-mix(in srgb, var(--bg-brand-solid) 12%, transparent); stroke: none; }
|
|
10
10
|
& .linechart-line { fill: none; stroke: var(--bg-brand-solid); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
|
|
11
11
|
& .linechart-dot-html { position: absolute; width: 8px; height: 8px; box-sizing: border-box; border-radius: var(--radius-full); background: var(--bg-surface); border: 2px solid var(--bg-brand-solid); transform: translate(-50%, 50%); pointer-events: auto; }
|
|
12
|
-
& .linechart-xaxis { display: flex; margin-top: var(--space-1-5); padding-
|
|
12
|
+
& .linechart-xaxis { display: flex; margin-top: var(--space-1-5); padding-inline-start: var(--linechart-yaxis-width); }
|
|
13
13
|
& .linechart-xlabel { flex: 1; min-width: 0; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--text-sm); color: var(--fg-muted); }
|
|
14
|
-
& .linechart-axis-title { margin-top: var(--space-1); padding-
|
|
14
|
+
& .linechart-axis-title { margin-top: var(--space-1); padding-inline-start: var(--linechart-yaxis-width); text-align: center; font-size: var(--text-sm); color: var(--fg-muted); }
|
|
15
15
|
}
|
package/dist/listpage.css
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
& .listpage-toolbar { display: flex; align-items: center; gap: var(--space-2); height: 52px; flex-shrink: 0; padding: 0 var(--space-3); }
|
|
6
6
|
& .listpage-toolbar-lead { display: flex; align-items: center; gap: var(--space-2); }
|
|
7
|
-
& .listpage-count { margin-
|
|
7
|
+
& .listpage-count { margin-inline-start: auto; font-size: var(--text-md); color: var(--fg-muted); white-space: nowrap; }
|
|
8
8
|
& .listpage-toolbar-trail { display: flex; align-items: center; gap: var(--space-2); }
|
|
9
|
-
& .listpage-count + .listpage-toolbar-trail { margin-
|
|
9
|
+
& .listpage-count + .listpage-toolbar-trail { margin-inline-start: var(--space-3); }
|
|
10
10
|
|
|
11
11
|
& .listpage-body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 var(--space-3) var(--space-3); }
|
|
12
12
|
|
|
@@ -22,10 +22,18 @@
|
|
|
22
22
|
& .listpage-group { display: flex; align-items: center; gap: var(--space-1-5); height: 36px; padding: 0 var(--space-2); font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--fg-muted); }
|
|
23
23
|
& .listpage-group-count { display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px; padding: 0 var(--space-1); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--fg-primary) 6%, transparent); font-size: var(--text-xs); color: var(--fg-muted); }
|
|
24
24
|
|
|
25
|
-
& .listpage-row { display: flex; align-items: center; gap: var(--space-2-5); width: 100%; height: 52px; padding: 0 var(--space-2); margin: 0; border: none; border-top: 1px solid var(--border-subtle); background: none; font-family: inherit; color: inherit; text-align:
|
|
25
|
+
& .listpage-row { display: flex; align-items: center; gap: var(--space-2-5); width: 100%; height: 52px; padding: 0 var(--space-2); margin: 0; border: none; border-top: 1px solid var(--border-subtle); background: none; font-family: inherit; color: inherit; text-align: start; cursor: pointer; transition: background-color .12s; }
|
|
26
26
|
& .listpage-row:focus-visible { outline: 2px solid var(--bg-brand-solid); outline-offset: -2px; }
|
|
27
27
|
& .listpage-row:hover { background: color-mix(in srgb, var(--fg-primary) 3%, transparent); }
|
|
28
28
|
& .listpage-row-title { font-size: var(--text-lg); font-weight: var(--weight-medium); color: var(--fg-primary); }
|
|
29
29
|
|
|
30
30
|
& .listpage-empty { padding: var(--space-8) var(--space-4); text-align: center; font-size: var(--text-md); color: var(--fg-muted); }
|
|
31
31
|
}
|
|
32
|
+
|
|
33
|
+
@media (prefers-reduced-motion: reduce) {
|
|
34
|
+
.listpage, .listpage * {
|
|
35
|
+
animation-duration: 0.01ms !important;
|
|
36
|
+
animation-iteration-count: 1 !important;
|
|
37
|
+
transition-duration: 0.01ms !important;
|
|
38
|
+
}
|
|
39
|
+
}
|
package/dist/menu.css
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
& .menu-content {
|
|
7
7
|
position: fixed; z-index: 60; box-sizing: border-box; display: flex; flex-direction: column; gap: var(--space-px);
|
|
8
8
|
min-width: 200px; max-height: 360px; overflow-y: auto; padding: var(--space-1);
|
|
9
|
-
border-radius: var(--radius-xl); background: var(--bg-
|
|
10
|
-
box-shadow: inset 0 0 0 1px
|
|
9
|
+
border-radius: var(--radius-xl); background: var(--bg-popover);
|
|
10
|
+
box-shadow: inset 0 0 0 1px var(--ring-popover), 0 0 0 1px var(--shadow-popover1), 0 4px 8px -4px var(--shadow-popover2), 0 4px 12px -2px var(--shadow-popover3);
|
|
11
11
|
transform-origin: top left; opacity: 1; transform: none; transition: opacity .08s ease, transform .08s ease;
|
|
12
12
|
}
|
|
13
13
|
& .menu-content[data-align="end"] { transform-origin: top right; }
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
& .menu-content { @starting-style { opacity: 0; transform: scale(0.97) translateY(-1px); } }
|
|
17
17
|
|
|
18
18
|
& .menu-item {
|
|
19
|
-
box-sizing: border-box; display: flex; align-items: center; gap: var(--space-1-5); width: 100%; height:
|
|
19
|
+
box-sizing: border-box; display: flex; align-items: center; gap: var(--space-1-5); width: 100%; height: var(--size-menuRow); flex-shrink: 0;
|
|
20
20
|
margin: 0; padding: 0 var(--space-2); border: none; background: none; border-radius: var(--radius-md);
|
|
21
|
-
font-family: inherit; font-size: var(--text-lg); color: var(--fg-primary); text-align:
|
|
21
|
+
font-family: inherit; font-size: var(--text-lg); color: var(--fg-primary); text-align: start; cursor: pointer; white-space: nowrap;
|
|
22
22
|
}
|
|
23
23
|
& .menu-item svg { flex-shrink: 0; color: var(--fg-muted); }
|
|
24
24
|
& .menu-item:focus { outline: none; }
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
& .menu-item--danger svg { color: var(--bg-danger); }
|
|
29
29
|
& .menu-item--danger:hover, & .menu-item--danger:focus-visible, & .menu-item--danger[data-highlighted] { background: color-mix(in srgb, var(--bg-danger) 10%, transparent); }
|
|
30
30
|
& .menu-item-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
|
|
31
|
-
& .menu-item-shortcut { flex-shrink: 0; margin-
|
|
31
|
+
& .menu-item-shortcut { flex-shrink: 0; margin-inline-start: var(--space-3); font-size: var(--text-sm); color: var(--fg-muted); letter-spacing: 0.02em; }
|
|
32
32
|
& .menu-item-check { flex-shrink: 0; color: var(--bg-brand-solid); }
|
|
33
33
|
& .menu-item-check--placeholder { width: 15px; }
|
|
34
34
|
|
|
@@ -36,3 +36,11 @@
|
|
|
36
36
|
& .menu-label { padding: var(--space-1-5) var(--space-2) var(--space-0-5); font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--fg-muted); }
|
|
37
37
|
|
|
38
38
|
}
|
|
39
|
+
|
|
40
|
+
@media (prefers-reduced-motion: reduce) {
|
|
41
|
+
.menu, .menu * {
|
|
42
|
+
animation-duration: 0.01ms !important;
|
|
43
|
+
animation-iteration-count: 1 !important;
|
|
44
|
+
transition-duration: 0.01ms !important;
|
|
45
|
+
}
|
|
46
|
+
}
|