@crisp-ui-kit/crisp 0.5.0 → 0.7.1
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 +190 -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 +175 -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 +180 -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 +2061 -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,4 +1,4 @@
|
|
|
1
|
-
export type ProgressProps = {
|
|
1
|
+
export type ProgressProps = React.ComponentPropsWithoutRef<"div"> & {
|
|
2
2
|
/** Current value. */
|
|
3
3
|
value: number;
|
|
4
4
|
/** Maximum value (default 100). */
|
|
@@ -13,7 +13,7 @@ export type ProgressProps = {
|
|
|
13
13
|
* `segments` is set (the "Getting started 3/6" pattern). Reports its state via
|
|
14
14
|
* `role="progressbar"` and the ARIA value attributes.
|
|
15
15
|
*/
|
|
16
|
-
export declare function Progress({ value, max, segments, "aria-label": ariaLabel, className, }: ProgressProps): import("react").JSX.Element;
|
|
16
|
+
export declare function Progress({ value, max, segments, "aria-label": ariaLabel, className, ...rest }: ProgressProps): import("react").JSX.Element;
|
|
17
17
|
export declare namespace Progress {
|
|
18
18
|
var displayName: string;
|
|
19
19
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
export type RadioGroupProps = {
|
|
2
|
+
export type RadioGroupProps = Omit<React.ComponentPropsWithoutRef<"div">, "value" | "defaultValue" | "onChange"> & {
|
|
3
3
|
/** Controlled value. Omit to let the group manage it (see defaultValue). */
|
|
4
4
|
value?: string;
|
|
5
5
|
defaultValue?: string;
|
|
@@ -17,7 +17,7 @@ export type RadioGroupProps = {
|
|
|
17
17
|
* preview cards whose border turns brand when picked (the Theme picker). Arrow
|
|
18
18
|
* keys move between options (roving focus). Controlled or uncontrolled.
|
|
19
19
|
*/
|
|
20
|
-
export declare function RadioGroup({ value, defaultValue, onValueChange, variant, name, className, "aria-label": ariaLabel, children, }: RadioGroupProps): React.JSX.Element;
|
|
20
|
+
export declare function RadioGroup({ value, defaultValue, onValueChange, variant, name, className, "aria-label": ariaLabel, children, ...rest }: RadioGroupProps): React.JSX.Element;
|
|
21
21
|
export declare namespace RadioGroup {
|
|
22
22
|
var displayName: string;
|
|
23
23
|
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { computeDragWidth, percentToWidth, ResizablePanel, type ResizablePanelHandleVariant, type ResizablePanelProps, type ResizablePanelSide, readStoredPercent, widthToPercent, writeStoredPercent, } from "./resizablepanel";
|
|
2
|
+
export { resizablepanelRecipe } from "./resizablepanel.recipe";
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export type ResizablePanelSide = "left" | "right";
|
|
3
|
+
export type ResizablePanelHandleVariant = "panel" | "column";
|
|
4
|
+
/**
|
|
5
|
+
* Drag delta -> next width, in px, signed by which edge of the panel the
|
|
6
|
+
* handle drags from. A left-side panel's handle sits at its *right* edge, so
|
|
7
|
+
* dragging right (positive dx) grows it; a right-side panel's handle sits at
|
|
8
|
+
* its *left* edge, so dragging right shrinks it. Pure so drag math can be
|
|
9
|
+
* unit-tested without a DOM.
|
|
10
|
+
*/
|
|
11
|
+
export declare function computeDragWidth(startWidth: number, startX: number, clientX: number, side: ResizablePanelSide): number;
|
|
12
|
+
/** width (px) -> percentage of the container's width. Pure, unrounded. */
|
|
13
|
+
export declare function widthToPercent(width: number, containerWidth: number): number;
|
|
14
|
+
/** percentage of the container's width -> width (px). Pure, unrounded. */
|
|
15
|
+
export declare function percentToWidth(percent: number, containerWidth: number): number;
|
|
16
|
+
type ReadableStorage = Pick<Storage, "getItem">;
|
|
17
|
+
type WritableStorage = Pick<Storage, "setItem">;
|
|
18
|
+
/**
|
|
19
|
+
* Reads a persisted width percentage, wrapped in try/catch: `localStorage`
|
|
20
|
+
* can throw (private browsing, storage disabled), and a resizable panel
|
|
21
|
+
* failing to *render* over a persistence error would be worse than the
|
|
22
|
+
* panel simply forgetting its width. `storage` defaults to
|
|
23
|
+
* `window.localStorage` and exists as a seam for tests — dropping the
|
|
24
|
+
* try/catch here is the exact failure this must catch.
|
|
25
|
+
*/
|
|
26
|
+
export declare function readStoredPercent(key: string, storage?: ReadableStorage): number | null;
|
|
27
|
+
/** Writes a persisted width percentage, wrapped in try/catch — see {@link readStoredPercent}. */
|
|
28
|
+
export declare function writeStoredPercent(key: string, percent: number, storage?: WritableStorage): void;
|
|
29
|
+
export type ResizablePanelProps = Omit<React.ComponentPropsWithoutRef<"div">, "children" | "onResize"> & {
|
|
30
|
+
/** Which edge of its container the panel is anchored to (default "left"). */
|
|
31
|
+
side?: ResizablePanelSide;
|
|
32
|
+
/** Controlled width, in px. */
|
|
33
|
+
size?: number;
|
|
34
|
+
/** Initial width, in px, when uncontrolled (default 280). */
|
|
35
|
+
defaultSize?: number;
|
|
36
|
+
/** Fires with the final, CSS-clamped width once a drag ends. */
|
|
37
|
+
onSizeChange?: (size: number) => void;
|
|
38
|
+
/** `min-width` in px (default 200). */
|
|
39
|
+
min?: number;
|
|
40
|
+
/**
|
|
41
|
+
* `max-width` — a px number, or a raw CSS expression for callers that need
|
|
42
|
+
* Attio's real clamp, e.g. `max="min(60%, 100% - 350px)"`. Constraints are
|
|
43
|
+
* never re-applied in JS: the handler writes the unclamped drag width, and
|
|
44
|
+
* the browser's own `min-width`/`max-width` resolve the rendered size.
|
|
45
|
+
*/
|
|
46
|
+
max?: number | string;
|
|
47
|
+
/**
|
|
48
|
+
* Layout model: "docked" (default) reserves flow width and sits in-line
|
|
49
|
+
* with a hairline border; "floating" takes the panel out of flow
|
|
50
|
+
* (`position: fixed`, an 8px gutter, r10, the measured floating shadow).
|
|
51
|
+
*/
|
|
52
|
+
floating?: boolean;
|
|
53
|
+
/** Resize-handle geometry — "panel" (default) or "column" (table edges). */
|
|
54
|
+
handleVariant?: ResizablePanelHandleVariant;
|
|
55
|
+
/**
|
|
56
|
+
* Persist width as a percentage of the container under this key (matches
|
|
57
|
+
* Attio: a `%`, not px, so the panel keeps its proportion on resize).
|
|
58
|
+
* Only applies when `size` is uncontrolled.
|
|
59
|
+
*/
|
|
60
|
+
storageKey?: string;
|
|
61
|
+
className?: string;
|
|
62
|
+
children?: React.ReactNode;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Attio's adjustable-panel primitive: a spacer that reserves layout width
|
|
66
|
+
* plus a panel that overlays it, so the panel can move between docked
|
|
67
|
+
* (in-flow) and floating (`position: fixed`, an overlay) without a reflow
|
|
68
|
+
* glitch. Drag the edge handle to resize; constraints are CSS `min-width`/
|
|
69
|
+
* `max-width`, never re-clamped in JS.
|
|
70
|
+
*/
|
|
71
|
+
export declare function ResizablePanel({ side, size, defaultSize, onSizeChange, min, max, floating, handleVariant, storageKey, className, children, ...rest }: ResizablePanelProps): React.JSX.Element;
|
|
72
|
+
export declare namespace ResizablePanel {
|
|
73
|
+
var displayName: string;
|
|
74
|
+
}
|
|
75
|
+
export {};
|
|
@@ -7,7 +7,7 @@ export type SegmentedOption = {
|
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
"aria-label"?: string;
|
|
9
9
|
};
|
|
10
|
-
export type SegmentedProps = {
|
|
10
|
+
export type SegmentedProps = Omit<React.ComponentPropsWithoutRef<"div">, "defaultValue"> & {
|
|
11
11
|
options: SegmentedOption[];
|
|
12
12
|
/** Controlled value. Omit to let the control manage it (see defaultValue). */
|
|
13
13
|
value?: string;
|
|
@@ -21,7 +21,7 @@ export type SegmentedProps = {
|
|
|
21
21
|
* switcher. `role="radiogroup"` over `role="radio"` buttons with roving
|
|
22
22
|
* tabindex and ←/→ (Home/End) keyboard selection.
|
|
23
23
|
*/
|
|
24
|
-
export declare function Segmented({ options, value, defaultValue, onValueChange, "aria-label": ariaLabel, className, }: SegmentedProps): React.JSX.Element;
|
|
24
|
+
export declare function Segmented({ options, value, defaultValue, onValueChange, "aria-label": ariaLabel, className, ...rest }: SegmentedProps): React.JSX.Element;
|
|
25
25
|
export declare namespace Segmented {
|
|
26
26
|
var displayName: string;
|
|
27
27
|
}
|
|
@@ -8,7 +8,7 @@ export type SelectOption = {
|
|
|
8
8
|
color?: string;
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
};
|
|
11
|
-
export type SelectProps = {
|
|
11
|
+
export type SelectProps = Omit<React.ComponentPropsWithoutRef<"div">, "value" | "defaultValue" | "onChange"> & {
|
|
12
12
|
options: SelectOption[];
|
|
13
13
|
/** Controlled value. Omit to let Select manage it (see defaultValue). */
|
|
14
14
|
value?: string;
|
|
@@ -34,7 +34,7 @@ export type SelectProps = {
|
|
|
34
34
|
* "No results" empty state). Full keyboard model — ↑/↓ move, Enter/Space pick,
|
|
35
35
|
* Esc close, Home/End jump, opens upward when tight. Controlled or uncontrolled.
|
|
36
36
|
*/
|
|
37
|
-
export declare function Select({ options, value, defaultValue, onValueChange, placeholder, variant, width, searchable, searchPlaceholder, disabled, className, "aria-label": ariaLabel, id, }: SelectProps): React.JSX.Element;
|
|
37
|
+
export declare function Select({ options, value, defaultValue, onValueChange, placeholder, variant, width, searchable, searchPlaceholder, disabled, className, "aria-label": ariaLabel, id, ...rest }: SelectProps): React.JSX.Element;
|
|
38
38
|
export declare namespace Select {
|
|
39
39
|
var displayName: string;
|
|
40
40
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type SkeletonProps = {
|
|
1
|
+
export type SkeletonProps = React.ComponentPropsWithoutRef<"span"> & {
|
|
2
2
|
width?: number | string;
|
|
3
3
|
height?: number | string;
|
|
4
4
|
/** Render as a circle (avatar placeholder). */
|
|
@@ -7,7 +7,7 @@ export type SkeletonProps = {
|
|
|
7
7
|
className?: string;
|
|
8
8
|
};
|
|
9
9
|
/** A pulsing placeholder block sized to the content it stands in for. */
|
|
10
|
-
export declare function Skeleton({ width, height, circle, radius, className, }: SkeletonProps): import("react").JSX.Element;
|
|
10
|
+
export declare function Skeleton({ width, height, circle, radius, className, ...rest }: SkeletonProps): import("react").JSX.Element;
|
|
11
11
|
export declare namespace Skeleton {
|
|
12
12
|
var displayName: string;
|
|
13
13
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export type SpinnerProps = {
|
|
1
|
+
export type SpinnerProps = React.ComponentPropsWithoutRef<"span"> & {
|
|
2
2
|
/** Diameter in px (default 16). Border scales with it. */
|
|
3
3
|
size?: number;
|
|
4
4
|
"aria-label"?: string;
|
|
5
5
|
className?: string;
|
|
6
6
|
};
|
|
7
7
|
/** A spinning ring indicator. Reports `role="status"` for assistive tech. */
|
|
8
|
-
export declare function Spinner({ size, "aria-label": ariaLabel, className, }: SpinnerProps): import("react").JSX.Element;
|
|
8
|
+
export declare function Spinner({ size, "aria-label": ariaLabel, className, ...rest }: SpinnerProps): import("react").JSX.Element;
|
|
9
9
|
export declare namespace Spinner {
|
|
10
10
|
var displayName: string;
|
|
11
11
|
}
|
|
@@ -3,7 +3,7 @@ export type Stage = {
|
|
|
3
3
|
/** Stage colour (CSS). Defaults to the brand colour. */
|
|
4
4
|
color?: string;
|
|
5
5
|
};
|
|
6
|
-
export type StageBarProps = {
|
|
6
|
+
export type StageBarProps = React.ComponentPropsWithoutRef<"div"> & {
|
|
7
7
|
stages: Stage[];
|
|
8
8
|
/** The current stage, by index or by matching `label`. */
|
|
9
9
|
current: number | string;
|
|
@@ -14,7 +14,7 @@ export type StageBarProps = {
|
|
|
14
14
|
* A pipeline stage bar — measured from Attio's Deal-stage Highlight. Each stage
|
|
15
15
|
* is a segment tinted with its colour; the current stage is at full strength.
|
|
16
16
|
*/
|
|
17
|
-
export declare function StageBar({ stages, current, "aria-label": ariaLabel, className, }: StageBarProps): import("react").JSX.Element;
|
|
17
|
+
export declare function StageBar({ stages, current, "aria-label": ariaLabel, className, ...rest }: StageBarProps): import("react").JSX.Element;
|
|
18
18
|
export declare namespace StageBar {
|
|
19
19
|
var displayName: string;
|
|
20
20
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as React from "react";
|
|
2
|
-
export type StatCardProps = {
|
|
2
|
+
export type StatCardProps = React.ComponentPropsWithoutRef<"div"> & {
|
|
3
3
|
/** Small muted metric name. */
|
|
4
4
|
label: React.ReactNode;
|
|
5
5
|
/** Optional icon shown before the label. */
|
|
@@ -23,7 +23,7 @@ export type StatCardProps = {
|
|
|
23
23
|
* A single-metric KPI tile — measured from Attio's Reports number/insight cards.
|
|
24
24
|
* Label, a large value, and an optional up/down delta pill with a caption.
|
|
25
25
|
*/
|
|
26
|
-
export declare function StatCard({ label, icon, value, delta, deltaSuffix, caption, card, className, }: StatCardProps): React.JSX.Element;
|
|
26
|
+
export declare function StatCard({ label, icon, value, delta, deltaSuffix, caption, card, className, ...rest }: StatCardProps): React.JSX.Element;
|
|
27
27
|
export declare namespace StatCard {
|
|
28
28
|
var displayName: string;
|
|
29
29
|
}
|
|
@@ -21,7 +21,7 @@ export type TableToolbarColumn = {
|
|
|
21
21
|
/** Leading field-type icon, shown in the field pickers. */
|
|
22
22
|
icon?: IconType;
|
|
23
23
|
};
|
|
24
|
-
export type TableToolbarProps = {
|
|
24
|
+
export type TableToolbarProps = Omit<React.ComponentPropsWithoutRef<"div">, "children"> & {
|
|
25
25
|
/** The fields that can be sorted and filtered on. */
|
|
26
26
|
columns: TableToolbarColumn[];
|
|
27
27
|
/** Controlled sorts. Omit to let the toolbar manage them internally. */
|
|
@@ -38,6 +38,32 @@ export type TableToolbarProps = {
|
|
|
38
38
|
children?: React.ReactNode;
|
|
39
39
|
/** Shows a "Learn about sorting" link in the sort popover when set. */
|
|
40
40
|
helpHref?: string;
|
|
41
|
+
/** aria-label on the Sort trigger (default "Sort"). */
|
|
42
|
+
sortLabel?: string;
|
|
43
|
+
/** aria-label on each sort row's drag grip (default "Reorder sort"). */
|
|
44
|
+
reorderSortLabel?: string;
|
|
45
|
+
/** aria-label on a sort row's field select (default "Sort field"). */
|
|
46
|
+
sortFieldLabel?: string;
|
|
47
|
+
/** aria-label on a sort row's direction select (default "Sort direction"). */
|
|
48
|
+
sortDirectionLabel?: string;
|
|
49
|
+
/** aria-label on a sort row's remove control (default "Remove sort"). */
|
|
50
|
+
removeSortLabel?: string;
|
|
51
|
+
/** aria-label on a filter row's field select (default "Filter by field"). */
|
|
52
|
+
filterFieldLabel?: string;
|
|
53
|
+
/** Placeholder in the filter field select (default "Filter by…"). */
|
|
54
|
+
filterFieldPlaceholder?: string;
|
|
55
|
+
/** Placeholder in a filter row's value input (default "Value…"). */
|
|
56
|
+
filterValuePlaceholder?: string;
|
|
57
|
+
/** Label on the "ascending" sort-direction option (default "Ascending"). */
|
|
58
|
+
ascendingLabel?: string;
|
|
59
|
+
/** Label on the "descending" sort-direction option (default "Descending"). */
|
|
60
|
+
descendingLabel?: string;
|
|
61
|
+
/** Text on the sort trigger. Receives the active sorts and the columns, so
|
|
62
|
+
* the sorted-by phrase can be built in the caller's own word order —
|
|
63
|
+
* "Sorted by Name +2" does not survive a template with holes. */
|
|
64
|
+
sortTriggerLabel?: (sorts: ToolbarSort[], columns: TableToolbarColumn[]) => React.ReactNode;
|
|
65
|
+
/** Text on the filter trigger. Receives the number of active filters. */
|
|
66
|
+
filterTriggerLabel?: (activeFilters: number) => React.ReactNode;
|
|
41
67
|
className?: string;
|
|
42
68
|
};
|
|
43
69
|
/**
|
|
@@ -59,5 +85,5 @@ export declare function applySorts<T>(rows: T[], sorts: ToolbarSort[], get?: (ro
|
|
|
59
85
|
* composable version, to put above `DataTable` or any table of your own. Pair
|
|
60
86
|
* it with `applyFilters` / `applySorts` to turn its state into rows.
|
|
61
87
|
*/
|
|
62
|
-
export declare function TableToolbar({ columns, sorts: sortsProp, defaultSorts, onSortsChange, filters: filtersProp, defaultFilters, onFiltersChange, count, children, helpHref, className, }: TableToolbarProps): React.JSX.Element;
|
|
88
|
+
export declare function TableToolbar({ columns, sorts: sortsProp, defaultSorts, onSortsChange, filters: filtersProp, defaultFilters, onFiltersChange, count, children, helpHref, className, sortLabel, reorderSortLabel, sortFieldLabel, sortDirectionLabel, removeSortLabel, filterFieldLabel, filterFieldPlaceholder, filterValuePlaceholder, ascendingLabel, descendingLabel, sortTriggerLabel, filterTriggerLabel, ...rest }: TableToolbarProps): React.JSX.Element;
|
|
63
89
|
export {};
|
|
@@ -8,7 +8,7 @@ export type TabItem = {
|
|
|
8
8
|
badge?: React.ReactNode;
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
};
|
|
11
|
-
export type TabsProps = {
|
|
11
|
+
export type TabsProps = Omit<React.ComponentPropsWithoutRef<"div">, "value" | "defaultValue" | "children"> & {
|
|
12
12
|
tabs: TabItem[];
|
|
13
13
|
/** Controlled active value. Omit to let Tabs manage it (see defaultValue). */
|
|
14
14
|
value?: string;
|
|
@@ -27,7 +27,7 @@ export type TabsProps = {
|
|
|
27
27
|
* Home/End jump); activation follows focus, matching Attio. Controlled via
|
|
28
28
|
* `value`/`onValueChange`, or uncontrolled from `defaultValue`.
|
|
29
29
|
*/
|
|
30
|
-
export declare function Tabs({ tabs, value, defaultValue, onValueChange, leading, children, className, "aria-label": ariaLabel, }: TabsProps): React.JSX.Element;
|
|
30
|
+
export declare function Tabs({ tabs, value, defaultValue, onValueChange, leading, children, className, "aria-label": ariaLabel, ...rest }: TabsProps): React.JSX.Element;
|
|
31
31
|
export declare namespace Tabs {
|
|
32
32
|
var displayName: string;
|
|
33
33
|
}
|
|
@@ -20,9 +20,15 @@ type ToastApi = {
|
|
|
20
20
|
* anywhere to push a notification. Toasts stack bottom-right and auto-dismiss
|
|
21
21
|
* after `duration` (default 4s; 0 keeps them until dismissed).
|
|
22
22
|
*/
|
|
23
|
-
export declare function ToastProvider({ children, duration, }: {
|
|
23
|
+
export declare function ToastProvider({ children, duration, dismissLabel, regionLabel, }: {
|
|
24
24
|
children: React.ReactNode;
|
|
25
25
|
duration?: number;
|
|
26
|
+
/** aria-label on each toast's dismiss button (default "Dismiss"). */
|
|
27
|
+
dismissLabel?: string;
|
|
28
|
+
/** aria-label on the always-mounted notifications region (default
|
|
29
|
+
* "Notifications") — announced to screen readers on every page, whether or
|
|
30
|
+
* not a toast is ever shown. */
|
|
31
|
+
regionLabel?: string;
|
|
26
32
|
}): React.JSX.Element;
|
|
27
33
|
export declare namespace ToastProvider {
|
|
28
34
|
var displayName: string;
|
|
@@ -8,6 +8,13 @@ export type TooltipProps = {
|
|
|
8
8
|
side?: "top" | "bottom";
|
|
9
9
|
/** Delay in ms before showing (default 350). Hides immediately. */
|
|
10
10
|
delay?: number;
|
|
11
|
+
/** Controlled open state. Omit to let Tooltip manage it (see defaultOpen).
|
|
12
|
+
* A controlled tooltip shows at once — `delay` only paces hover. */
|
|
13
|
+
open?: boolean;
|
|
14
|
+
/** Initially open, when uncontrolled. */
|
|
15
|
+
defaultOpen?: boolean;
|
|
16
|
+
/** Fires with the next open state, controlled or not. */
|
|
17
|
+
onOpenChange?: (open: boolean) => void;
|
|
11
18
|
};
|
|
12
19
|
/**
|
|
13
20
|
* A hover/focus tooltip — a dark hint chip measured from Attio. Wraps its
|
|
@@ -15,7 +22,7 @@ export type TooltipProps = {
|
|
|
15
22
|
* and hides on leave / blur / Escape. The bubble is portaled and positioned
|
|
16
23
|
* above the trigger (flipping below near the top edge).
|
|
17
24
|
*/
|
|
18
|
-
export declare function Tooltip({ content, children, side, delay, }: TooltipProps): React.JSX.Element;
|
|
25
|
+
export declare function Tooltip({ content, children, side, delay, open: openProp, defaultOpen, onOpenChange, }: TooltipProps): React.JSX.Element;
|
|
19
26
|
export declare namespace Tooltip {
|
|
20
27
|
var displayName: string;
|
|
21
28
|
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export type WheelPickerOption = {
|
|
3
|
+
value: string;
|
|
4
|
+
label: React.ReactNode;
|
|
5
|
+
};
|
|
6
|
+
export type WheelPickerColumn = {
|
|
7
|
+
/** Identifies the column in `value` / `onValueChange`. */
|
|
8
|
+
key: string;
|
|
9
|
+
options: WheelPickerOption[];
|
|
10
|
+
/** Accessible name for this column's listbox. */
|
|
11
|
+
label: string;
|
|
12
|
+
};
|
|
13
|
+
export type WheelPickerProps = Omit<React.ComponentPropsWithoutRef<"div">, "onChange" | "defaultValue"> & {
|
|
14
|
+
columns: WheelPickerColumn[];
|
|
15
|
+
/** Controlled selection, keyed by column. Omit to let WheelPicker manage it. */
|
|
16
|
+
value?: Record<string, string>;
|
|
17
|
+
/** Initial selection, when uncontrolled. Defaults to each column's first option. */
|
|
18
|
+
defaultValue?: Record<string, string>;
|
|
19
|
+
/** Fires with the next selection on every change, controlled or not. */
|
|
20
|
+
onValueChange?: (value: Record<string, string>) => void;
|
|
21
|
+
size?: "small" | "medium";
|
|
22
|
+
className?: string;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* A scroll-snapping wheel, measured from seed-design. Each column snaps its
|
|
26
|
+
* rows to a centred selection band; the momentum is the browser's own, because
|
|
27
|
+
* the column is an ordinary scroll container with `scroll-snap-type: y
|
|
28
|
+
* mandatory` rather than a JavaScript animation.
|
|
29
|
+
*
|
|
30
|
+
* Keyboard: each column is a `listbox` that takes focus, with ↑/↓ moving the
|
|
31
|
+
* selection, Home/End jumping to the ends, and a visible ring on the selected
|
|
32
|
+
* row for keyboard focus only.
|
|
33
|
+
*/
|
|
34
|
+
export declare function WheelPicker({ columns, value: valueProp, defaultValue, onValueChange, size, className, ...rest }: WheelPickerProps): React.JSX.Element;
|
|
35
|
+
export declare namespace WheelPicker {
|
|
36
|
+
var displayName: string;
|
|
37
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
declare const config: import("../..").RecipeConfig<{
|
|
2
|
+
size: {
|
|
3
|
+
small: string;
|
|
4
|
+
medium: string;
|
|
5
|
+
};
|
|
6
|
+
}>;
|
|
7
|
+
export declare const wheelpickerRecipe: import("../..").RecipeFn<{
|
|
8
|
+
size: {
|
|
9
|
+
small: string;
|
|
10
|
+
medium: string;
|
|
11
|
+
};
|
|
12
|
+
}> & {
|
|
13
|
+
config: import("../..").RecipeConfig<{
|
|
14
|
+
size: {
|
|
15
|
+
small: string;
|
|
16
|
+
medium: string;
|
|
17
|
+
};
|
|
18
|
+
}>;
|
|
19
|
+
meta: {
|
|
20
|
+
medium: {
|
|
21
|
+
height: string;
|
|
22
|
+
itemHeight: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export default config;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -9,9 +9,11 @@ export * from "./components/button";
|
|
|
9
9
|
export * from "./components/callout";
|
|
10
10
|
export * from "./components/card";
|
|
11
11
|
export * from "./components/checkbox";
|
|
12
|
+
export * from "./components/columncalc";
|
|
12
13
|
export * from "./components/contextmenu";
|
|
13
14
|
export * from "./components/datatable";
|
|
14
15
|
export * from "./components/datepicker";
|
|
16
|
+
export * from "./components/datepickerfield";
|
|
15
17
|
export * from "./components/dialog";
|
|
16
18
|
export * from "./components/divider";
|
|
17
19
|
export * from "./components/donutchart";
|
|
@@ -26,6 +28,7 @@ export * from "./components/multiselect";
|
|
|
26
28
|
export * from "./components/popover";
|
|
27
29
|
export * from "./components/progress";
|
|
28
30
|
export * from "./components/radiogroup";
|
|
31
|
+
export * from "./components/resizablepanel";
|
|
29
32
|
export * from "./components/segmented";
|
|
30
33
|
export * from "./components/select";
|
|
31
34
|
export * from "./components/skeleton";
|
|
@@ -39,8 +42,10 @@ export * from "./components/tabs";
|
|
|
39
42
|
export * from "./components/textarea";
|
|
40
43
|
export * from "./components/toast";
|
|
41
44
|
export * from "./components/tooltip";
|
|
45
|
+
export * from "./components/wheelpicker";
|
|
42
46
|
export * from "./core";
|
|
43
47
|
export * from "./product/appshell";
|
|
48
|
+
export * from "./product/authshell";
|
|
44
49
|
export * from "./product/board";
|
|
45
50
|
export * from "./product/command";
|
|
46
51
|
export * from "./product/entitycard";
|
|
@@ -1,13 +1,27 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
export type AppShellProps = {
|
|
2
|
+
export type AppShellProps = Omit<React.ComponentPropsWithoutRef<"div">, "children" | "onResize"> & {
|
|
3
3
|
/**
|
|
4
4
|
* The sidebar, as a render function receiving a `toggleCollapse` callback to
|
|
5
5
|
* wire to your sidebar's collapse control (e.g. `Sidebar`'s
|
|
6
6
|
* `onToggleCollapse`). Make the sidebar fill its pane (`width: 100%`).
|
|
7
7
|
*/
|
|
8
8
|
sidebar: (toggleCollapse: () => void) => React.ReactNode;
|
|
9
|
+
/** Label for the control that reopens a collapsed sidebar. */
|
|
10
|
+
expandLabel?: string;
|
|
9
11
|
children: React.ReactNode;
|
|
12
|
+
/** Controlled sidebar width in px. Omit to let AppShell manage it. */
|
|
13
|
+
width?: number;
|
|
14
|
+
/** Initial width in px when uncontrolled (default 275). */
|
|
10
15
|
defaultWidth?: number;
|
|
16
|
+
/** Fires with the final clamped width once a drag ends — not on every
|
|
17
|
+
* pointer move, matching ResizablePanel's `onSizeChange`. Persist it here. */
|
|
18
|
+
onWidthChange?: (width: number) => void;
|
|
19
|
+
/** Controlled collapsed state. Omit to let AppShell manage it. */
|
|
20
|
+
collapsed?: boolean;
|
|
21
|
+
/** Initially collapsed when uncontrolled (default false). */
|
|
22
|
+
defaultCollapsed?: boolean;
|
|
23
|
+
/** Fires with the next collapsed state, controlled or not. */
|
|
24
|
+
onCollapsedChange?: (collapsed: boolean) => void;
|
|
11
25
|
minWidth?: number;
|
|
12
26
|
maxWidth?: number;
|
|
13
27
|
className?: string;
|
|
@@ -18,7 +32,7 @@ export type AppShellProps = {
|
|
|
18
32
|
* collapse button to slide it away (a floating button brings it back). The
|
|
19
33
|
* sidebar pane clips rather than squishing, so its content never reflows.
|
|
20
34
|
*/
|
|
21
|
-
export declare function AppShell({ sidebar, children, defaultWidth, minWidth, maxWidth, className, }: AppShellProps): React.JSX.Element;
|
|
35
|
+
export declare function AppShell({ sidebar, children, width: widthProp, defaultWidth, onWidthChange, collapsed: collapsedProp, defaultCollapsed, onCollapsedChange, minWidth, maxWidth, className, expandLabel, ...rest }: AppShellProps): React.JSX.Element;
|
|
22
36
|
export declare namespace AppShell {
|
|
23
37
|
var displayName: string;
|
|
24
38
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
export type AuthShellProps = Omit<React.ComponentPropsWithoutRef<"div">, "title"> & {
|
|
3
|
+
/** 0–1. Omit for no progress bar. */
|
|
4
|
+
progress?: number;
|
|
5
|
+
/** Brand mark above the card (measured 96x24). */
|
|
6
|
+
logo?: React.ReactNode;
|
|
7
|
+
/** Card heading. */
|
|
8
|
+
title?: React.ReactNode;
|
|
9
|
+
/** The form / body content. */
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
/** Right-hand product preview. Hidden under 1200px; omit for a single-pane card. */
|
|
12
|
+
preview?: React.ReactNode;
|
|
13
|
+
/** Legal / support links under the card. */
|
|
14
|
+
footer?: React.ReactNode;
|
|
15
|
+
className?: string;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* The Attio welcome/auth layout (app.attio.com/welcome/*) — measured live.
|
|
19
|
+
* A centered page frame: an optional top progress bar, a logo, a two-pane
|
|
20
|
+
* card (the form + an optional product preview, hidden under 1200px), and
|
|
21
|
+
* a footer. Auth-surface Input/FormField/Button treatment (flatter fields,
|
|
22
|
+
* 36px buttons) applies automatically to those crisp components when
|
|
23
|
+
* rendered as `children` — see authshell.recipe.ts.
|
|
24
|
+
*/
|
|
25
|
+
export declare function AuthShell({ progress, logo, title, children, preview, footer, className, ...rest }: AuthShellProps): React.JSX.Element;
|
|
26
|
+
export declare namespace AuthShell {
|
|
27
|
+
var displayName: string;
|
|
28
|
+
}
|
|
@@ -9,7 +9,7 @@ export type BoardCard = {
|
|
|
9
9
|
id: string;
|
|
10
10
|
columnId: string;
|
|
11
11
|
};
|
|
12
|
-
export type BoardProps<T extends BoardCard> = {
|
|
12
|
+
export type BoardProps<T extends BoardCard> = Omit<React.ComponentPropsWithoutRef<"div">, "children"> & {
|
|
13
13
|
columns: BoardColumn[];
|
|
14
14
|
cards: T[];
|
|
15
15
|
/** Called with the next cards after a drag moves one between columns. */
|
|
@@ -26,7 +26,7 @@ export type BoardProps<T extends BoardCard> = {
|
|
|
26
26
|
* (the parent owns the cards, so the move is a controlled state update).
|
|
27
27
|
* Measured from Attio's Deals pipeline.
|
|
28
28
|
*/
|
|
29
|
-
export declare function Board<T extends BoardCard>({ columns, cards, onCardsChange, renderCard, onNewCard, newCardLabel, className, }: BoardProps<T>): React.JSX.Element;
|
|
29
|
+
export declare function Board<T extends BoardCard>({ columns, cards, onCardsChange, renderCard, onNewCard, newCardLabel, className, ...rest }: BoardProps<T>): React.JSX.Element;
|
|
30
30
|
export declare namespace Board {
|
|
31
31
|
var displayName: string;
|
|
32
32
|
}
|
|
@@ -19,6 +19,30 @@ export type CommandProps = {
|
|
|
19
19
|
onOpenChange: (open: boolean) => void;
|
|
20
20
|
items?: CommandItem[];
|
|
21
21
|
placeholder?: string;
|
|
22
|
+
"aria-label"?: string;
|
|
23
|
+
/** Footer hint next to the ↑ ↓ keys (default "Navigate"). */
|
|
24
|
+
navigateLabel?: React.ReactNode;
|
|
25
|
+
/** Footer action-button fallback text, shown while no item is highlighted
|
|
26
|
+
* (once one is, the button mirrors that item's own — already translatable
|
|
27
|
+
* — label instead). Default "Select". */
|
|
28
|
+
selectLabel?: string;
|
|
29
|
+
/** Shown in the list when no item matches the query (default
|
|
30
|
+
* "No matching commands"). */
|
|
31
|
+
emptyLabel?: React.ReactNode;
|
|
32
|
+
/** The search input's text. Omit for internal state (the default) — pass
|
|
33
|
+
* this alongside `onQueryChange` to observe or drive it from outside, e.g.
|
|
34
|
+
* to search the host app's own data (records, transactions, …) and feed
|
|
35
|
+
* matching results back in via `items`. */
|
|
36
|
+
query?: string;
|
|
37
|
+
/** Called with the next query text on every keystroke, and on the
|
|
38
|
+
* open-triggered reset to `""`. Works standalone (without `query`) just to
|
|
39
|
+
* observe what the user typed. */
|
|
40
|
+
onQueryChange?: (query: string) => void;
|
|
41
|
+
/** Whether Command filters `items` against `query` itself (default true).
|
|
42
|
+
* Turn off when `items` is already filtered externally — e.g. driven by
|
|
43
|
+
* `onQueryChange` calling out to search the host app's own data — so
|
|
44
|
+
* results aren't filtered a second time here. */
|
|
45
|
+
filterItems?: boolean;
|
|
22
46
|
};
|
|
23
47
|
/**
|
|
24
48
|
* ⌘K command palette. Composes a Zag dialog machine (modal, focus trap,
|
|
@@ -26,4 +50,4 @@ export type CommandProps = {
|
|
|
26
50
|
* option list) so keyboard/focus correctness comes from the machines, not
|
|
27
51
|
* hand-rolled event handling.
|
|
28
52
|
*/
|
|
29
|
-
export declare function Command({ open, onOpenChange, items, placeholder, }: CommandProps): React.JSX.Element | null;
|
|
53
|
+
export declare function Command({ open, onOpenChange, items, placeholder, "aria-label": ariaLabel, navigateLabel, selectLabel, emptyLabel, query: queryProp, onQueryChange, filterItems, }: CommandProps): React.JSX.Element | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as React from "react";
|
|
2
|
-
export type EntityCardProps = {
|
|
2
|
+
export type EntityCardProps = Omit<React.ComponentPropsWithoutRef<"button">, "children" | "title"> & {
|
|
3
3
|
/** Author row shown at the top (e.g. avatar + name). */
|
|
4
4
|
author?: React.ReactNode;
|
|
5
5
|
title: React.ReactNode;
|
|
@@ -18,7 +18,7 @@ export type EntityCardProps = {
|
|
|
18
18
|
* card with an author row, a title, a clamped excerpt, and a footer row with a
|
|
19
19
|
* right-aligned date. Rendered as a button so the whole card is clickable.
|
|
20
20
|
*/
|
|
21
|
-
export declare function EntityCard({ author, title, excerpt, footer, date, onClick, "aria-label": ariaLabel, className, }: EntityCardProps): React.JSX.Element;
|
|
21
|
+
export declare function EntityCard({ author, title, excerpt, footer, date, onClick, "aria-label": ariaLabel, className, ...rest }: EntityCardProps): React.JSX.Element;
|
|
22
22
|
export declare namespace EntityCard {
|
|
23
23
|
var displayName: string;
|
|
24
24
|
}
|
|
@@ -9,6 +9,14 @@ export type FlowEdge = {
|
|
|
9
9
|
to: string;
|
|
10
10
|
};
|
|
11
11
|
export type FlowCanvasProps<T extends FlowNode> = {
|
|
12
|
+
/** Zoom-out control label. */
|
|
13
|
+
zoomOutLabel?: string;
|
|
14
|
+
/** Zoom-in control label. */
|
|
15
|
+
zoomInLabel?: string;
|
|
16
|
+
/** Reset-view control label. */
|
|
17
|
+
resetLabel?: string;
|
|
18
|
+
/** Accessible title for the edges layer. */
|
|
19
|
+
edgesLabel?: string;
|
|
12
20
|
nodes: T[];
|
|
13
21
|
edges: FlowEdge[];
|
|
14
22
|
/** Called with the next nodes after a node is dragged. */
|
|
@@ -26,7 +34,7 @@ export type FlowCanvasProps<T extends FlowNode> = {
|
|
|
26
34
|
* measured from Attio's Workflows editor. Drag a node to move it (fires
|
|
27
35
|
* `onNodesChange`); drag the background to pan; use the toolbar to zoom.
|
|
28
36
|
*/
|
|
29
|
-
export declare function FlowCanvas<T extends FlowNode>({ nodes, edges, onNodesChange, renderNode, nodeWidth, nodeHeight, "aria-label": ariaLabel, className, }: FlowCanvasProps<T>): React.JSX.Element;
|
|
37
|
+
export declare function FlowCanvas<T extends FlowNode>({ nodes, edges, onNodesChange, renderNode, nodeWidth, nodeHeight, "aria-label": ariaLabel, className, zoomOutLabel, zoomInLabel, resetLabel, edgesLabel, }: FlowCanvasProps<T>): React.JSX.Element;
|
|
30
38
|
export declare namespace FlowCanvas {
|
|
31
39
|
var displayName: string;
|
|
32
40
|
}
|
|
@@ -8,6 +8,12 @@ export type OnboardingStep = {
|
|
|
8
8
|
done?: boolean;
|
|
9
9
|
};
|
|
10
10
|
export type OnboardingChecklistProps = {
|
|
11
|
+
/** Label for the overflow-menu trigger. */
|
|
12
|
+
optionsLabel?: string;
|
|
13
|
+
/** Label for the minimise control. */
|
|
14
|
+
minimizeLabel?: string;
|
|
15
|
+
/** Accessible name for the progress bar. */
|
|
16
|
+
progressLabel?: string;
|
|
11
17
|
title?: React.ReactNode;
|
|
12
18
|
steps: OnboardingStep[];
|
|
13
19
|
/** Subtitle after "N/total steps completed" (default "Keep it up!"). */
|
|
@@ -25,7 +31,7 @@ export type OnboardingChecklistProps = {
|
|
|
25
31
|
* started" widget. Title + optional menu/minimize, a segmented progress bar,
|
|
26
32
|
* and step rows (completed rows strike through with a brand check).
|
|
27
33
|
*/
|
|
28
|
-
export declare function OnboardingChecklist({ title, steps, encouragement, onStepClick, onMenu, onMinimize, className, }: OnboardingChecklistProps): React.JSX.Element;
|
|
34
|
+
export declare function OnboardingChecklist({ title, steps, encouragement, onStepClick, onMenu, onMinimize, className, optionsLabel, minimizeLabel, progressLabel, }: OnboardingChecklistProps): React.JSX.Element;
|
|
29
35
|
export declare namespace OnboardingChecklist {
|
|
30
36
|
var displayName: string;
|
|
31
37
|
}
|