@crisp-ui-kit/crisp 0.1.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/LICENSE +21 -0
- package/README.md +84 -0
- package/dist/accordion.css +13 -0
- package/dist/accordion.d.ts +7 -0
- package/dist/appshell.css +13 -0
- package/dist/appshell.d.ts +7 -0
- package/dist/avatar.css +39 -0
- package/dist/avatar.d.ts +9 -0
- package/dist/avatargroup.css +5 -0
- package/dist/avatargroup.d.ts +7 -0
- package/dist/badge.css +49 -0
- package/dist/badge.d.ts +9 -0
- package/dist/barchart.css +15 -0
- package/dist/barchart.d.ts +7 -0
- package/dist/board.css +17 -0
- package/dist/board.d.ts +7 -0
- package/dist/breadcrumb.css +9 -0
- package/dist/breadcrumb.d.ts +7 -0
- package/dist/button.css +30 -0
- package/dist/button.d.ts +9 -0
- package/dist/callout.css +16 -0
- package/dist/callout.d.ts +7 -0
- package/dist/card.css +20 -0
- package/dist/card.d.ts +8 -0
- package/dist/checkbox.css +3 -0
- package/dist/checkbox.d.ts +7 -0
- package/dist/command.css +3 -0
- package/dist/command.d.ts +7 -0
- package/dist/contextmenu.css +12 -0
- package/dist/contextmenu.d.ts +7 -0
- package/dist/datepicker.css +21 -0
- package/dist/datepicker.d.ts +7 -0
- package/dist/dialog.css +19 -0
- package/dist/dialog.d.ts +7 -0
- package/dist/divider.css +5 -0
- package/dist/divider.d.ts +7 -0
- package/dist/donutchart.css +16 -0
- package/dist/donutchart.d.ts +7 -0
- package/dist/drawer.css +17 -0
- package/dist/drawer.d.ts +7 -0
- package/dist/emptystate.css +20 -0
- package/dist/emptystate.d.ts +7 -0
- package/dist/entitycard.css +18 -0
- package/dist/entitycard.d.ts +7 -0
- package/dist/flowcanvas.css +15 -0
- package/dist/flowcanvas.d.ts +7 -0
- package/dist/formfield.css +8 -0
- package/dist/formfield.d.ts +7 -0
- package/dist/inbox.css +31 -0
- package/dist/inbox.d.ts +7 -0
- package/dist/index.js +9653 -0
- package/dist/input.css +15 -0
- package/dist/input.d.ts +8 -0
- package/dist/kbd.css +3 -0
- package/dist/kbd.d.ts +7 -0
- package/dist/linechart.css +15 -0
- package/dist/linechart.d.ts +7 -0
- package/dist/listpage.css +31 -0
- package/dist/listpage.d.ts +7 -0
- package/dist/menu.css +38 -0
- package/dist/menu.d.ts +7 -0
- package/dist/multiselect.css +53 -0
- package/dist/multiselect.d.ts +7 -0
- package/dist/navitem.css +3 -0
- package/dist/navitem.d.ts +7 -0
- package/dist/onboarding.css +29 -0
- package/dist/onboarding.d.ts +7 -0
- package/dist/popover.css +6 -0
- package/dist/popover.d.ts +7 -0
- package/dist/progress.css +7 -0
- package/dist/progress.d.ts +7 -0
- package/dist/radiogroup.css +23 -0
- package/dist/radiogroup.d.ts +7 -0
- package/dist/recordpage.css +141 -0
- package/dist/recordpage.d.ts +7 -0
- package/dist/recordpanel.css +38 -0
- package/dist/recordpanel.d.ts +7 -0
- package/dist/recordstable.css +194 -0
- package/dist/recordstable.d.ts +7 -0
- package/dist/richtext.css +28 -0
- package/dist/richtext.d.ts +7 -0
- package/dist/segmented.css +10 -0
- package/dist/segmented.d.ts +7 -0
- package/dist/select.css +56 -0
- package/dist/select.d.ts +7 -0
- package/dist/settingssection.css +9 -0
- package/dist/settingssection.d.ts +7 -0
- package/dist/settingsshell.css +27 -0
- package/dist/settingsshell.d.ts +7 -0
- package/dist/sidebar.css +3 -0
- package/dist/sidebar.d.ts +7 -0
- package/dist/skeleton.css +5 -0
- package/dist/skeleton.d.ts +7 -0
- package/dist/spinner.css +4 -0
- package/dist/spinner.d.ts +7 -0
- package/dist/stagebar.css +4 -0
- package/dist/stagebar.d.ts +7 -0
- package/dist/statcard.css +13 -0
- package/dist/statcard.d.ts +7 -0
- package/dist/styles.css +1421 -0
- package/dist/switch.css +12 -0
- package/dist/switch.d.ts +7 -0
- package/dist/tabs.css +19 -0
- package/dist/tabs.d.ts +7 -0
- package/dist/tasklist.css +24 -0
- package/dist/tasklist.d.ts +7 -0
- package/dist/textarea.css +20 -0
- package/dist/textarea.d.ts +7 -0
- package/dist/toast.css +17 -0
- package/dist/toast.d.ts +7 -0
- package/dist/tokens.css +70 -0
- package/dist/tooltip.css +3 -0
- package/dist/tooltip.d.ts +7 -0
- package/dist/trialbanner.css +18 -0
- package/dist/trialbanner.d.ts +7 -0
- package/dist/types/components/accordion/accordion.d.ts +23 -0
- package/dist/types/components/accordion/accordion.recipe.d.ts +3 -0
- package/dist/types/components/accordion/index.d.ts +2 -0
- package/dist/types/components/avatar/avatar.d.ts +56 -0
- package/dist/types/components/avatar/avatar.recipe.d.ts +69 -0
- package/dist/types/components/avatar/index.d.ts +2 -0
- package/dist/types/components/avatargroup/avatargroup.d.ts +21 -0
- package/dist/types/components/avatargroup/avatargroup.recipe.d.ts +3 -0
- package/dist/types/components/avatargroup/index.d.ts +2 -0
- package/dist/types/components/badge/badge.d.ts +57 -0
- package/dist/types/components/badge/badge.recipe.d.ts +64 -0
- package/dist/types/components/badge/index.d.ts +2 -0
- package/dist/types/components/barchart/barchart.d.ts +30 -0
- package/dist/types/components/barchart/barchart.recipe.d.ts +3 -0
- package/dist/types/components/barchart/index.d.ts +2 -0
- package/dist/types/components/breadcrumb/breadcrumb.d.ts +22 -0
- package/dist/types/components/breadcrumb/breadcrumb.recipe.d.ts +3 -0
- package/dist/types/components/breadcrumb/index.d.ts +2 -0
- package/dist/types/components/button/button.d.ts +57 -0
- package/dist/types/components/button/button.recipe.d.ts +63 -0
- package/dist/types/components/button/index.d.ts +2 -0
- package/dist/types/components/callout/callout.d.ts +20 -0
- package/dist/types/components/callout/callout.recipe.d.ts +3 -0
- package/dist/types/components/callout/index.d.ts +2 -0
- package/dist/types/components/card/card.d.ts +26 -0
- package/dist/types/components/card/card.recipe.d.ts +21 -0
- package/dist/types/components/card/index.d.ts +2 -0
- package/dist/types/components/checkbox/checkbox.d.ts +17 -0
- package/dist/types/components/checkbox/checkbox.recipe.d.ts +11 -0
- package/dist/types/components/checkbox/index.d.ts +2 -0
- package/dist/types/components/contextmenu/contextmenu.d.ts +27 -0
- package/dist/types/components/contextmenu/contextmenu.recipe.d.ts +3 -0
- package/dist/types/components/contextmenu/index.d.ts +2 -0
- package/dist/types/components/datepicker/datepicker.d.ts +22 -0
- package/dist/types/components/datepicker/datepicker.recipe.d.ts +3 -0
- package/dist/types/components/datepicker/index.d.ts +2 -0
- package/dist/types/components/dialog/dialog.d.ts +30 -0
- package/dist/types/components/dialog/dialog.recipe.d.ts +3 -0
- package/dist/types/components/dialog/index.d.ts +2 -0
- package/dist/types/components/divider/divider.d.ts +9 -0
- package/dist/types/components/divider/divider.recipe.d.ts +3 -0
- package/dist/types/components/divider/index.d.ts +2 -0
- package/dist/types/components/donutchart/donutchart.d.ts +32 -0
- package/dist/types/components/donutchart/donutchart.recipe.d.ts +3 -0
- package/dist/types/components/donutchart/index.d.ts +2 -0
- package/dist/types/components/drawer/drawer.d.ts +26 -0
- package/dist/types/components/drawer/drawer.recipe.d.ts +3 -0
- package/dist/types/components/drawer/index.d.ts +2 -0
- package/dist/types/components/emptystate/emptystate.d.ts +19 -0
- package/dist/types/components/emptystate/emptystate.recipe.d.ts +15 -0
- package/dist/types/components/emptystate/index.d.ts +2 -0
- package/dist/types/components/formfield/formfield.d.ts +26 -0
- package/dist/types/components/formfield/formfield.recipe.d.ts +3 -0
- package/dist/types/components/formfield/index.d.ts +2 -0
- package/dist/types/components/input/index.d.ts +2 -0
- package/dist/types/components/input/input.d.ts +32 -0
- package/dist/types/components/input/input.recipe.d.ts +39 -0
- package/dist/types/components/kbd/index.d.ts +2 -0
- package/dist/types/components/kbd/kbd.d.ts +7 -0
- package/dist/types/components/kbd/kbd.recipe.d.ts +12 -0
- package/dist/types/components/linechart/index.d.ts +2 -0
- package/dist/types/components/linechart/linechart.d.ts +35 -0
- package/dist/types/components/linechart/linechart.recipe.d.ts +3 -0
- package/dist/types/components/menu/index.d.ts +2 -0
- package/dist/types/components/menu/menu.d.ts +55 -0
- package/dist/types/components/menu/menu.recipe.d.ts +5 -0
- package/dist/types/components/multiselect/index.d.ts +2 -0
- package/dist/types/components/multiselect/multiselect.d.ts +29 -0
- package/dist/types/components/multiselect/multiselect.recipe.d.ts +5 -0
- package/dist/types/components/popover/index.d.ts +2 -0
- package/dist/types/components/popover/popover.d.ts +23 -0
- package/dist/types/components/popover/popover.recipe.d.ts +3 -0
- package/dist/types/components/progress/index.d.ts +2 -0
- package/dist/types/components/progress/progress.d.ts +19 -0
- package/dist/types/components/progress/progress.recipe.d.ts +3 -0
- package/dist/types/components/radiogroup/index.d.ts +2 -0
- package/dist/types/components/radiogroup/radiogroup.d.ts +35 -0
- package/dist/types/components/radiogroup/radiogroup.recipe.d.ts +5 -0
- package/dist/types/components/segmented/index.d.ts +2 -0
- package/dist/types/components/segmented/segmented.d.ts +27 -0
- package/dist/types/components/segmented/segmented.recipe.d.ts +3 -0
- package/dist/types/components/select/index.d.ts +2 -0
- package/dist/types/components/select/select.d.ts +38 -0
- package/dist/types/components/select/select.recipe.d.ts +20 -0
- package/dist/types/components/skeleton/index.d.ts +2 -0
- package/dist/types/components/skeleton/skeleton.d.ts +13 -0
- package/dist/types/components/skeleton/skeleton.recipe.d.ts +3 -0
- package/dist/types/components/spinner/index.d.ts +2 -0
- package/dist/types/components/spinner/spinner.d.ts +11 -0
- package/dist/types/components/spinner/spinner.recipe.d.ts +3 -0
- package/dist/types/components/stagebar/index.d.ts +2 -0
- package/dist/types/components/stagebar/stagebar.d.ts +20 -0
- package/dist/types/components/stagebar/stagebar.recipe.d.ts +3 -0
- package/dist/types/components/statcard/index.d.ts +2 -0
- package/dist/types/components/statcard/statcard.d.ts +24 -0
- package/dist/types/components/statcard/statcard.recipe.d.ts +3 -0
- package/dist/types/components/switch/index.d.ts +2 -0
- package/dist/types/components/switch/switch.d.ts +19 -0
- package/dist/types/components/switch/switch.recipe.d.ts +14 -0
- package/dist/types/components/tabs/index.d.ts +2 -0
- package/dist/types/components/tabs/tabs.d.ts +33 -0
- package/dist/types/components/tabs/tabs.recipe.d.ts +5 -0
- package/dist/types/components/textarea/index.d.ts +2 -0
- package/dist/types/components/textarea/textarea.d.ts +18 -0
- package/dist/types/components/textarea/textarea.recipe.d.ts +5 -0
- package/dist/types/components/toast/index.d.ts +2 -0
- package/dist/types/components/toast/toast.d.ts +31 -0
- package/dist/types/components/toast/toast.recipe.d.ts +3 -0
- package/dist/types/components/tooltip/index.d.ts +2 -0
- package/dist/types/components/tooltip/tooltip.d.ts +21 -0
- package/dist/types/components/tooltip/tooltip.recipe.d.ts +3 -0
- package/dist/types/core/cx.d.ts +1 -0
- package/dist/types/core/define.d.ts +2 -0
- package/dist/types/core/index.d.ts +5 -0
- package/dist/types/core/primitive.d.ts +11 -0
- package/dist/types/core/resolve.d.ts +2 -0
- package/dist/types/core/types.d.ts +33 -0
- package/dist/types/index.d.ts +58 -0
- package/dist/types/product/appshell/appshell.d.ts +24 -0
- package/dist/types/product/appshell/appshell.recipe.d.ts +10 -0
- package/dist/types/product/appshell/index.d.ts +2 -0
- package/dist/types/product/board/board.d.ts +32 -0
- package/dist/types/product/board/board.recipe.d.ts +3 -0
- package/dist/types/product/board/index.d.ts +2 -0
- package/dist/types/product/command/command.d.ts +29 -0
- package/dist/types/product/command/command.recipe.d.ts +11 -0
- package/dist/types/product/command/index.d.ts +2 -0
- package/dist/types/product/entitycard/entitycard.d.ts +24 -0
- package/dist/types/product/entitycard/entitycard.recipe.d.ts +3 -0
- package/dist/types/product/entitycard/index.d.ts +2 -0
- package/dist/types/product/flowcanvas/flowcanvas.d.ts +32 -0
- package/dist/types/product/flowcanvas/flowcanvas.recipe.d.ts +3 -0
- package/dist/types/product/flowcanvas/index.d.ts +2 -0
- package/dist/types/product/inbox/inbox.d.ts +41 -0
- package/dist/types/product/inbox/inbox.recipe.d.ts +3 -0
- package/dist/types/product/inbox/index.d.ts +2 -0
- package/dist/types/product/listpage/index.d.ts +2 -0
- package/dist/types/product/listpage/listpage.d.ts +46 -0
- package/dist/types/product/listpage/listpage.recipe.d.ts +3 -0
- package/dist/types/product/navitem/index.d.ts +1 -0
- package/dist/types/product/navitem/navitem.d.ts +17 -0
- package/dist/types/product/navitem/navitem.recipe.d.ts +13 -0
- package/dist/types/product/onboarding/index.d.ts +2 -0
- package/dist/types/product/onboarding/onboarding.d.ts +31 -0
- package/dist/types/product/onboarding/onboarding.recipe.d.ts +3 -0
- package/dist/types/product/recordpage/index.d.ts +2 -0
- package/dist/types/product/recordpage/recordpage.d.ts +25 -0
- package/dist/types/product/recordpage/recordpage.recipe.d.ts +5 -0
- package/dist/types/product/recordpanel/index.d.ts +2 -0
- package/dist/types/product/recordpanel/recordpanel.d.ts +19 -0
- package/dist/types/product/recordpanel/recordpanel.recipe.d.ts +10 -0
- package/dist/types/product/recordstable/index.d.ts +2 -0
- package/dist/types/product/recordstable/recordstable.d.ts +63 -0
- package/dist/types/product/recordstable/recordstable.recipe.d.ts +11 -0
- package/dist/types/product/richtext/index.d.ts +2 -0
- package/dist/types/product/richtext/richtext.d.ts +24 -0
- package/dist/types/product/richtext/richtext.recipe.d.ts +3 -0
- package/dist/types/product/settingssection/index.d.ts +2 -0
- package/dist/types/product/settingssection/settingssection.d.ts +18 -0
- package/dist/types/product/settingssection/settingssection.recipe.d.ts +3 -0
- package/dist/types/product/settingsshell/index.d.ts +2 -0
- package/dist/types/product/settingsshell/settingsshell.d.ts +34 -0
- package/dist/types/product/settingsshell/settingsshell.recipe.d.ts +3 -0
- package/dist/types/product/sidebar/index.d.ts +2 -0
- package/dist/types/product/sidebar/sidebar.d.ts +11 -0
- package/dist/types/product/sidebar/sidebar.recipe.d.ts +10 -0
- package/dist/types/product/tasklist/index.d.ts +2 -0
- package/dist/types/product/tasklist/tasklist.d.ts +36 -0
- package/dist/types/product/tasklist/tasklist.recipe.d.ts +3 -0
- package/dist/types/product/trialbanner/index.d.ts +2 -0
- package/dist/types/product/trialbanner/trialbanner.d.ts +21 -0
- package/dist/types/product/trialbanner/trialbanner.recipe.d.ts +3 -0
- package/dist/types/product/viewtoggle/index.d.ts +2 -0
- package/dist/types/product/viewtoggle/viewtoggle.d.ts +24 -0
- package/dist/types/product/viewtoggle/viewtoggle.recipe.d.ts +3 -0
- package/dist/types/tokens/contract.d.ts +27 -0
- package/dist/types/tokens/index.d.ts +5 -0
- package/dist/types/tokens/palette.d.ts +67 -0
- package/dist/types/tokens/scale.d.ts +48 -0
- package/dist/types/tokens/semantic.d.ts +19 -0
- package/dist/viewtoggle.css +13 -0
- package/dist/viewtoggle.d.ts +7 -0
- package/package.json +77 -0
package/dist/switch.css
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
.switch {
|
|
2
|
+
|
|
3
|
+
display: inline-flex; align-items: center; flex-shrink: 0; width: 24px; height: 16px; padding: 0; margin: 0;
|
|
4
|
+
border: none; border-radius: var(--radius-full); background: color-mix(in srgb, var(--fg-primary) 9%, transparent);
|
|
5
|
+
cursor: pointer; transition: background-color .2s ease; -webkit-tap-highlight-color: transparent;
|
|
6
|
+
& .switch-thumb { width: 12px; height: 12px; margin: 0 2px; border-radius: var(--radius-full); background: #fff; transition: transform .2s ease; }
|
|
7
|
+
&[data-checked] { background: var(--bg-brand-solid); }
|
|
8
|
+
&[data-checked] .switch-thumb { transform: translateX(8px); }
|
|
9
|
+
&:focus-visible { outline: 2px solid var(--bg-brand-solid); outline-offset: 2px; }
|
|
10
|
+
&:disabled { opacity: 0.5; cursor: not-allowed; }
|
|
11
|
+
|
|
12
|
+
}
|
package/dist/switch.d.ts
ADDED
package/dist/tabs.css
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
.tabs {
|
|
2
|
+
|
|
3
|
+
display: flex; flex-direction: column; min-height: 0; font-family: var(--font-sans);
|
|
4
|
+
-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
|
|
5
|
+
|
|
6
|
+
& .tabs-list { position: relative; display: flex; align-items: center; gap: var(--space-1); height: 40px; flex-shrink: 0; box-shadow: inset 0 -1px 0 var(--border-subtle); }
|
|
7
|
+
& .tabs-leading { display: inline-flex; align-items: center; margin-right: var(--space-1); }
|
|
8
|
+
& .tabs-tab { position: relative; display: inline-flex; align-items: center; gap: var(--space-1-5); height: 28px; margin: 0; padding: 0 var(--space-2); border: none; background: none; box-shadow: inset 0 0 0 1px transparent; border-radius: var(--radius-md); font-family: inherit; font-size: var(--text-lg); font-weight: var(--weight-medium); letter-spacing: -0.14px; color: var(--fg-muted); cursor: pointer; white-space: nowrap; transition: color .12s ease, background-color .12s ease, box-shadow .12s ease; }
|
|
9
|
+
& .tabs-tab svg { flex-shrink: 0; opacity: 0.85; }
|
|
10
|
+
& .tabs-tab:hover:not([data-selected]) { background: color-mix(in srgb, var(--fg-primary) 4%, transparent); color: var(--fg-primary); }
|
|
11
|
+
& .tabs-tab[data-selected] { color: var(--fg-primary); background: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--border-subtle); }
|
|
12
|
+
& .tabs-tab:focus-visible { outline: 2px solid var(--bg-brand-solid); outline-offset: 1px; }
|
|
13
|
+
& .tabs-tab-badge { 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); font-weight: var(--weight-medium); color: var(--fg-muted); }
|
|
14
|
+
& .tabs-tab[data-selected] .tabs-tab-badge { color: var(--fg-primary); }
|
|
15
|
+
& .tabs-indicator { position: absolute; bottom: 0; left: 0; height: 2px; background: var(--fg-primary); border-radius: 2px 2px 0 0; transition: transform .2s cubic-bezier(.4,0,.2,1), width .2s cubic-bezier(.4,0,.2,1); pointer-events: none; }
|
|
16
|
+
& .tabs-panel { flex: 1; min-height: 0; }
|
|
17
|
+
& .tabs-panel:focus-visible { outline: none; }
|
|
18
|
+
|
|
19
|
+
}
|
package/dist/tabs.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
.tasklist {
|
|
2
|
+
display: flex; flex-direction: column; box-sizing: border-box; font-family: var(--font-sans);
|
|
3
|
+
-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
|
|
4
|
+
|
|
5
|
+
& .tasklist-group { display: flex; align-items: center; gap: var(--space-1-5); height: 36px; padding: 0 var(--space-2); font-size: var(--text-md); font-weight: var(--weight-medium); color: var(--fg-muted); }
|
|
6
|
+
& .tasklist-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); }
|
|
7
|
+
|
|
8
|
+
& .tasklist-row { display: flex; align-items: center; gap: var(--space-2-5); height: 52px; padding: 0 var(--space-2); border-top: 1px solid var(--border-subtle); }
|
|
9
|
+
& .tasklist-row:first-child { border-top: none; }
|
|
10
|
+
|
|
11
|
+
& .tasklist-check { appearance: none; -webkit-appearance: none; box-sizing: border-box; flex-shrink: 0; margin: 0; width: 16px; height: 16px; border: none; border-radius: var(--radius-full); background: var(--bg-surface); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg-primary) 9%, transparent); cursor: pointer; transition: background-color .12s, box-shadow .12s; }
|
|
12
|
+
& .tasklist-check:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg-primary) 30%, transparent); }
|
|
13
|
+
& .tasklist-check:checked { background: var(--bg-brand-solid) 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"); }
|
|
14
|
+
& .tasklist-check:focus-visible { outline: 2px solid var(--bg-brand-solid); outline-offset: 1px; }
|
|
15
|
+
|
|
16
|
+
& .tasklist-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--text-lg); font-weight: var(--weight-medium); color: var(--fg-primary); }
|
|
17
|
+
& .tasklist-row[data-done] .tasklist-title { color: var(--fg-muted); text-decoration: line-through; }
|
|
18
|
+
|
|
19
|
+
& .tasklist-meta { display: inline-flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }
|
|
20
|
+
& .tasklist-due { font-size: var(--text-lg); color: var(--fg-muted); white-space: nowrap; }
|
|
21
|
+
& .tasklist-due[data-overdue] { color: var(--bg-danger); }
|
|
22
|
+
|
|
23
|
+
& .tasklist-empty { padding: var(--space-4) var(--space-2); text-align: center; font-size: var(--text-md); color: var(--fg-muted); }
|
|
24
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
.textarea {
|
|
2
|
+
|
|
3
|
+
position: relative; display: block; width: 100%; font-family: var(--font-sans);
|
|
4
|
+
|
|
5
|
+
& .textarea-field {
|
|
6
|
+
box-sizing: border-box; display: block; width: 100%; min-height: 80px; resize: vertical;
|
|
7
|
+
margin: 0; padding: var(--space-1-5) var(--space-2-5); border: none; border-radius: var(--radius-md);
|
|
8
|
+
background: var(--bg-surface); box-shadow: 0 0 2px rgba(28,40,64,0.18), 0 1px 3px rgba(0,0,0,0.04);
|
|
9
|
+
font-family: inherit; font-size: var(--text-lg); line-height: 20px; color: var(--fg-primary);
|
|
10
|
+
outline: none; transition: box-shadow .15s ease;
|
|
11
|
+
-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
|
|
12
|
+
}
|
|
13
|
+
& .textarea-field::placeholder { color: var(--fg-muted); }
|
|
14
|
+
& .textarea-field:focus { box-shadow: inset 0 0 0 1px var(--bg-brand-solid); }
|
|
15
|
+
& .textarea-field:disabled { opacity: 0.5; cursor: not-allowed; }
|
|
16
|
+
&[data-counted] .textarea-field { padding-bottom: var(--space-5); }
|
|
17
|
+
& .textarea-count { position: absolute; right: var(--space-2-5); bottom: var(--space-1-5); font-size: var(--text-sm); color: var(--fg-muted); pointer-events: none; }
|
|
18
|
+
& .textarea-count[data-over] { color: var(--bg-danger); }
|
|
19
|
+
|
|
20
|
+
}
|
package/dist/toast.css
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
.toast {
|
|
2
|
+
display: contents; font-family: var(--font-sans);
|
|
3
|
+
& .toast-viewport { position: fixed; z-index: 80; right: var(--space-4); bottom: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); width: 360px; max-width: calc(100vw - var(--space-8)); pointer-events: none; }
|
|
4
|
+
& .toast { pointer-events: auto; display: flex; align-items: flex-start; gap: var(--space-2-5); box-sizing: border-box; padding: var(--space-3); border-radius: var(--radius-xl); background: var(--bg-raised); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg-primary) 5%, transparent), 0 8px 28px -6px rgba(28,40,64,0.16), 0 2px 6px -2px rgba(28,40,64,0.10); opacity: 1; transform: translateY(0); transition: opacity 0.15s ease, transform 0.15s ease; @starting-style { opacity: 0; transform: translateY(8px); } }
|
|
5
|
+
& .toast-icon { flex-shrink: 0; margin-top: 1px; display: inline-flex; color: var(--fg-muted); }
|
|
6
|
+
& .toast[data-tone="info"] .toast-icon { color: var(--bg-brand-solid); }
|
|
7
|
+
& .toast[data-tone="success"] .toast-icon { color: var(--bg-success); }
|
|
8
|
+
& .toast[data-tone="warning"] .toast-icon { color: var(--bg-warning); }
|
|
9
|
+
& .toast[data-tone="danger"] .toast-icon { color: var(--bg-danger); }
|
|
10
|
+
& .toast-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
|
|
11
|
+
& .toast-title { font-size: var(--text-md); font-weight: var(--weight-semibold); color: var(--fg-primary); }
|
|
12
|
+
& .toast-desc { font-size: var(--text-md); color: var(--fg-muted); }
|
|
13
|
+
& .toast-action { align-self: flex-start; margin-top: var(--space-1-5); height: 24px; padding: 0 var(--space-2); border: none; border-radius: var(--radius-md); background: color-mix(in srgb, var(--fg-primary) 6%, transparent); color: var(--fg-primary); font-family: inherit; font-size: var(--text-sm); font-weight: var(--weight-medium); cursor: pointer; }
|
|
14
|
+
& .toast-action:hover { background: color-mix(in srgb, var(--fg-primary) 10%, transparent); }
|
|
15
|
+
& .toast-close { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin: -2px -2px 0 0; padding: 0; border: none; border-radius: var(--radius-md); background: none; color: var(--fg-muted); cursor: pointer; }
|
|
16
|
+
& .toast-close:hover { background: color-mix(in srgb, var(--fg-primary) 6%, transparent); color: var(--fg-primary); }
|
|
17
|
+
}
|
package/dist/toast.d.ts
ADDED
package/dist/tokens.css
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--bg-brand-solid: #266df0;
|
|
3
|
+
--bg-brand-solid-pressed: #1f5fd6;
|
|
4
|
+
--fg-on-brand: #ffffff;
|
|
5
|
+
--bg-surface: #ffffff;
|
|
6
|
+
--bg-raised: #f4f4f5;
|
|
7
|
+
--border-default: #e4e4e7;
|
|
8
|
+
--border-subtle: #eeeff1;
|
|
9
|
+
--fg-primary: #101112;
|
|
10
|
+
--fg-muted: #71717a;
|
|
11
|
+
--bg-danger: #e5484d;
|
|
12
|
+
--bg-success: #1f9d57;
|
|
13
|
+
--bg-warning: #b5730f;
|
|
14
|
+
--bg-orange: #f97514;
|
|
15
|
+
--bg-cyan: #00b9eb;
|
|
16
|
+
--bg-purple: #9b69ff;
|
|
17
|
+
--bg-sidebar: #fbfbfb;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
[data-theme="dark"] {
|
|
21
|
+
--bg-brand-solid: #266df0;
|
|
22
|
+
--bg-brand-solid-pressed: #1f5fd6;
|
|
23
|
+
--fg-on-brand: #ffffff;
|
|
24
|
+
--bg-surface: #0a0a0a;
|
|
25
|
+
--bg-raised: #101112;
|
|
26
|
+
--border-default: #212224;
|
|
27
|
+
--border-subtle: #1c1d1f;
|
|
28
|
+
--fg-primary: #f5f5f5;
|
|
29
|
+
--fg-muted: #9a9aa2;
|
|
30
|
+
--bg-danger: #ff5a5f;
|
|
31
|
+
--bg-success: #2ea968;
|
|
32
|
+
--bg-warning: #e0982a;
|
|
33
|
+
--bg-orange: #f97514;
|
|
34
|
+
--bg-cyan: #00b9eb;
|
|
35
|
+
--bg-purple: #9b69ff;
|
|
36
|
+
--bg-sidebar: #0e0f10;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
:root {
|
|
40
|
+
--space-1: 4px;
|
|
41
|
+
--space-2: 8px;
|
|
42
|
+
--space-3: 12px;
|
|
43
|
+
--space-4: 16px;
|
|
44
|
+
--space-5: 20px;
|
|
45
|
+
--space-6: 24px;
|
|
46
|
+
--space-8: 32px;
|
|
47
|
+
--space-px: 1px;
|
|
48
|
+
--space-0-5: 2px;
|
|
49
|
+
--space-1-5: 6px;
|
|
50
|
+
--space-2-5: 10px;
|
|
51
|
+
--radius-sm: 6px;
|
|
52
|
+
--radius-md: 8px;
|
|
53
|
+
--radius-lg: 9px;
|
|
54
|
+
--radius-xl: 12px;
|
|
55
|
+
--radius-2xl: 16px;
|
|
56
|
+
--radius-full: 999px;
|
|
57
|
+
--size-icon: 16px;
|
|
58
|
+
--size-row: 28px;
|
|
59
|
+
--size-tableRow: 36px;
|
|
60
|
+
--size-header: 48px;
|
|
61
|
+
--text-xs: 11px;
|
|
62
|
+
--text-sm: 12px;
|
|
63
|
+
--text-md: 13px;
|
|
64
|
+
--text-lg: 14px;
|
|
65
|
+
--text-xl: 16px;
|
|
66
|
+
--weight-regular: 400;
|
|
67
|
+
--weight-medium: 500;
|
|
68
|
+
--weight-semibold: 600;
|
|
69
|
+
--font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
70
|
+
}
|
package/dist/tooltip.css
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
.tooltip {
|
|
2
|
+
position: fixed; z-index: 70; box-sizing: border-box; pointer-events: none; max-width: 260px; padding: var(--space-1) var(--space-2); border-radius: var(--radius-sm); background: #20242c; color: #fff; font-family: var(--font-sans); font-size: var(--text-sm); font-weight: var(--weight-medium); line-height: 1.45; box-shadow: 0 4px 14px -2px rgba(28,40,64,0.28), 0 0 0 1px rgba(255,255,255,0.04); opacity: 1; transition: opacity 0.12s ease; @starting-style { opacity: 0; }
|
|
3
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
.trialbanner {
|
|
2
|
+
display: flex; align-items: center; gap: var(--space-1-5); box-sizing: border-box; min-height: 28px;
|
|
3
|
+
padding: 0 var(--space-1); border-radius: var(--radius-lg); font-family: var(--font-sans);
|
|
4
|
+
font-size: var(--text-lg); color: var(--fg-primary);
|
|
5
|
+
-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
|
|
6
|
+
|
|
7
|
+
& .trialbanner-icon { display: inline-flex; flex-shrink: 0; color: var(--fg-muted); }
|
|
8
|
+
& .trialbanner-msg { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
9
|
+
& .trialbanner-action { display: inline-flex; align-items: center; gap: var(--space-1); height: 20px; flex-shrink: 0;
|
|
10
|
+
padding: 0 var(--space-1-5); margin: 0; border: none; border-radius: var(--radius-sm); background: var(--bg-surface);
|
|
11
|
+
box-shadow: 0 0 2px rgba(28,40,64,0.18), 0 1px 3px rgba(0,0,0,0.04);
|
|
12
|
+
font-family: inherit; font-size: var(--text-md); font-weight: var(--weight-medium); color: var(--fg-primary);
|
|
13
|
+
white-space: nowrap; cursor: pointer; transition: background-color .12s; }
|
|
14
|
+
& .trialbanner-action:hover { background: var(--bg-raised); }
|
|
15
|
+
|
|
16
|
+
&[data-tone="warning"] .trialbanner-icon { color: var(--bg-warning); }
|
|
17
|
+
&[data-tone="danger"] .trialbanner-icon { color: var(--bg-danger); }
|
|
18
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export type AccordionItemData = {
|
|
3
|
+
value: string;
|
|
4
|
+
title: React.ReactNode;
|
|
5
|
+
content: React.ReactNode;
|
|
6
|
+
};
|
|
7
|
+
export type AccordionProps = {
|
|
8
|
+
items: AccordionItemData[];
|
|
9
|
+
/** Allow multiple panels open at once (default: single). */
|
|
10
|
+
multiple?: boolean;
|
|
11
|
+
/** Initially open value(s). */
|
|
12
|
+
defaultValue?: string | string[];
|
|
13
|
+
className?: string;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* A collapsible section list — measured from Attio's sidebar groups. Single or
|
|
17
|
+
* multiple open; panels animate their height (grid-rows 0fr->1fr). Headers are
|
|
18
|
+
* buttons with `aria-expanded` / `aria-controls`.
|
|
19
|
+
*/
|
|
20
|
+
export declare function Accordion({ items, multiple, defaultValue, className, }: AccordionProps): React.JSX.Element;
|
|
21
|
+
export declare namespace Accordion {
|
|
22
|
+
var displayName: string;
|
|
23
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { VariantProps } from "../../core";
|
|
3
|
+
import { avatarRecipe } from "./avatar.recipe";
|
|
4
|
+
export type AvatarProps = Omit<React.ComponentPropsWithoutRef<"span">, "color"> & VariantProps<typeof avatarRecipe> & {
|
|
5
|
+
asChild?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export declare const Avatar: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref">, "color"> & VariantProps<import("../..").RecipeFn<{
|
|
8
|
+
size: {
|
|
9
|
+
sm: string;
|
|
10
|
+
md: string;
|
|
11
|
+
lg: string;
|
|
12
|
+
xl: string;
|
|
13
|
+
};
|
|
14
|
+
shape: {
|
|
15
|
+
circle: string;
|
|
16
|
+
rounded: string;
|
|
17
|
+
};
|
|
18
|
+
tone: {
|
|
19
|
+
neutral: string;
|
|
20
|
+
brand: string;
|
|
21
|
+
orange: string;
|
|
22
|
+
cyan: string;
|
|
23
|
+
purple: string;
|
|
24
|
+
green: string;
|
|
25
|
+
};
|
|
26
|
+
}> & {
|
|
27
|
+
config: import("../..").RecipeConfig<{
|
|
28
|
+
size: {
|
|
29
|
+
sm: string;
|
|
30
|
+
md: string;
|
|
31
|
+
lg: string;
|
|
32
|
+
xl: string;
|
|
33
|
+
};
|
|
34
|
+
shape: {
|
|
35
|
+
circle: string;
|
|
36
|
+
rounded: string;
|
|
37
|
+
};
|
|
38
|
+
tone: {
|
|
39
|
+
neutral: string;
|
|
40
|
+
brand: string;
|
|
41
|
+
orange: string;
|
|
42
|
+
cyan: string;
|
|
43
|
+
purple: string;
|
|
44
|
+
green: string;
|
|
45
|
+
};
|
|
46
|
+
}>;
|
|
47
|
+
meta: {
|
|
48
|
+
lg: {
|
|
49
|
+
height: string;
|
|
50
|
+
fontSize: string;
|
|
51
|
+
fontWeight: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
}> & {
|
|
55
|
+
asChild?: boolean;
|
|
56
|
+
} & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
declare const config: import("../..").RecipeConfig<{
|
|
2
|
+
size: {
|
|
3
|
+
sm: string;
|
|
4
|
+
md: string;
|
|
5
|
+
lg: string;
|
|
6
|
+
xl: string;
|
|
7
|
+
};
|
|
8
|
+
shape: {
|
|
9
|
+
circle: string;
|
|
10
|
+
rounded: string;
|
|
11
|
+
};
|
|
12
|
+
tone: {
|
|
13
|
+
neutral: string;
|
|
14
|
+
brand: string;
|
|
15
|
+
orange: string;
|
|
16
|
+
cyan: string;
|
|
17
|
+
purple: string;
|
|
18
|
+
green: string;
|
|
19
|
+
};
|
|
20
|
+
}>;
|
|
21
|
+
export declare const avatarRecipe: import("../..").RecipeFn<{
|
|
22
|
+
size: {
|
|
23
|
+
sm: string;
|
|
24
|
+
md: string;
|
|
25
|
+
lg: string;
|
|
26
|
+
xl: string;
|
|
27
|
+
};
|
|
28
|
+
shape: {
|
|
29
|
+
circle: string;
|
|
30
|
+
rounded: string;
|
|
31
|
+
};
|
|
32
|
+
tone: {
|
|
33
|
+
neutral: string;
|
|
34
|
+
brand: string;
|
|
35
|
+
orange: string;
|
|
36
|
+
cyan: string;
|
|
37
|
+
purple: string;
|
|
38
|
+
green: string;
|
|
39
|
+
};
|
|
40
|
+
}> & {
|
|
41
|
+
config: import("../..").RecipeConfig<{
|
|
42
|
+
size: {
|
|
43
|
+
sm: string;
|
|
44
|
+
md: string;
|
|
45
|
+
lg: string;
|
|
46
|
+
xl: string;
|
|
47
|
+
};
|
|
48
|
+
shape: {
|
|
49
|
+
circle: string;
|
|
50
|
+
rounded: string;
|
|
51
|
+
};
|
|
52
|
+
tone: {
|
|
53
|
+
neutral: string;
|
|
54
|
+
brand: string;
|
|
55
|
+
orange: string;
|
|
56
|
+
cyan: string;
|
|
57
|
+
purple: string;
|
|
58
|
+
green: string;
|
|
59
|
+
};
|
|
60
|
+
}>;
|
|
61
|
+
meta: {
|
|
62
|
+
lg: {
|
|
63
|
+
height: string;
|
|
64
|
+
fontSize: string;
|
|
65
|
+
fontWeight: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
export default config;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type AvatarProps } from "../avatar/avatar";
|
|
3
|
+
export type AvatarGroupProps = {
|
|
4
|
+
/** Avatar elements to stack, in order (left on the outside). */
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
/** Show at most this many, then a "+N" overflow chip. */
|
|
7
|
+
max?: number;
|
|
8
|
+
/** Size of the overflow chip; match your avatars' size. */
|
|
9
|
+
size?: AvatarProps["size"];
|
|
10
|
+
className?: string;
|
|
11
|
+
"aria-label"?: string;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* A stack of overlapping avatars with an optional "+N" overflow chip — measured
|
|
15
|
+
* from Attio's team / member rows. Pass `<Avatar>` children; each is ringed in
|
|
16
|
+
* the surface colour so it reads against its neighbour.
|
|
17
|
+
*/
|
|
18
|
+
export declare function AvatarGroup({ children, max, size, className, "aria-label": ariaLabel, }: AvatarGroupProps): React.JSX.Element;
|
|
19
|
+
export declare namespace AvatarGroup {
|
|
20
|
+
var displayName: string;
|
|
21
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { VariantProps } from "../../core";
|
|
3
|
+
import { badgeRecipe } from "./badge.recipe";
|
|
4
|
+
export type BadgeProps = React.ComponentPropsWithoutRef<"span"> & VariantProps<typeof badgeRecipe> & {
|
|
5
|
+
asChild?: boolean;
|
|
6
|
+
/** Show a leading status dot in the tone colour (e.g. "● Enabled"). */
|
|
7
|
+
dot?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare const Badge: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & VariantProps<import("../..").RecipeFn<{
|
|
10
|
+
tone: {
|
|
11
|
+
neutral: string;
|
|
12
|
+
brand: string;
|
|
13
|
+
success: string;
|
|
14
|
+
warning: string;
|
|
15
|
+
danger: string;
|
|
16
|
+
};
|
|
17
|
+
size: {
|
|
18
|
+
small: string;
|
|
19
|
+
medium: string;
|
|
20
|
+
large: string;
|
|
21
|
+
};
|
|
22
|
+
variant: {
|
|
23
|
+
soft: string;
|
|
24
|
+
solid: string;
|
|
25
|
+
};
|
|
26
|
+
}> & {
|
|
27
|
+
config: import("../..").RecipeConfig<{
|
|
28
|
+
tone: {
|
|
29
|
+
neutral: string;
|
|
30
|
+
brand: string;
|
|
31
|
+
success: string;
|
|
32
|
+
warning: string;
|
|
33
|
+
danger: string;
|
|
34
|
+
};
|
|
35
|
+
size: {
|
|
36
|
+
small: string;
|
|
37
|
+
medium: string;
|
|
38
|
+
large: string;
|
|
39
|
+
};
|
|
40
|
+
variant: {
|
|
41
|
+
soft: string;
|
|
42
|
+
solid: string;
|
|
43
|
+
};
|
|
44
|
+
}>;
|
|
45
|
+
meta: {
|
|
46
|
+
medium: {
|
|
47
|
+
height: string;
|
|
48
|
+
borderRadius: string;
|
|
49
|
+
fontSize: string;
|
|
50
|
+
fontWeight: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
}> & {
|
|
54
|
+
asChild?: boolean;
|
|
55
|
+
/** Show a leading status dot in the tone colour (e.g. "● Enabled"). */
|
|
56
|
+
dot?: boolean;
|
|
57
|
+
} & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
declare const config: import("../..").RecipeConfig<{
|
|
2
|
+
tone: {
|
|
3
|
+
neutral: string;
|
|
4
|
+
brand: string;
|
|
5
|
+
success: string;
|
|
6
|
+
warning: string;
|
|
7
|
+
danger: string;
|
|
8
|
+
};
|
|
9
|
+
size: {
|
|
10
|
+
small: string;
|
|
11
|
+
medium: string;
|
|
12
|
+
large: string;
|
|
13
|
+
};
|
|
14
|
+
variant: {
|
|
15
|
+
soft: string;
|
|
16
|
+
solid: string;
|
|
17
|
+
};
|
|
18
|
+
}>;
|
|
19
|
+
export declare const badgeRecipe: import("../..").RecipeFn<{
|
|
20
|
+
tone: {
|
|
21
|
+
neutral: string;
|
|
22
|
+
brand: string;
|
|
23
|
+
success: string;
|
|
24
|
+
warning: string;
|
|
25
|
+
danger: string;
|
|
26
|
+
};
|
|
27
|
+
size: {
|
|
28
|
+
small: string;
|
|
29
|
+
medium: string;
|
|
30
|
+
large: string;
|
|
31
|
+
};
|
|
32
|
+
variant: {
|
|
33
|
+
soft: string;
|
|
34
|
+
solid: string;
|
|
35
|
+
};
|
|
36
|
+
}> & {
|
|
37
|
+
config: import("../..").RecipeConfig<{
|
|
38
|
+
tone: {
|
|
39
|
+
neutral: string;
|
|
40
|
+
brand: string;
|
|
41
|
+
success: string;
|
|
42
|
+
warning: string;
|
|
43
|
+
danger: string;
|
|
44
|
+
};
|
|
45
|
+
size: {
|
|
46
|
+
small: string;
|
|
47
|
+
medium: string;
|
|
48
|
+
large: string;
|
|
49
|
+
};
|
|
50
|
+
variant: {
|
|
51
|
+
soft: string;
|
|
52
|
+
solid: string;
|
|
53
|
+
};
|
|
54
|
+
}>;
|
|
55
|
+
meta: {
|
|
56
|
+
medium: {
|
|
57
|
+
height: string;
|
|
58
|
+
borderRadius: string;
|
|
59
|
+
fontSize: string;
|
|
60
|
+
fontWeight: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
export default config;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
export type BarDatum = {
|
|
3
|
+
label: string;
|
|
4
|
+
value: number;
|
|
5
|
+
};
|
|
6
|
+
export type BarChartProps = {
|
|
7
|
+
data: BarDatum[];
|
|
8
|
+
/** Overall height in px (default 240). */
|
|
9
|
+
height?: number;
|
|
10
|
+
/** Force the axis maximum; otherwise a "nice" max is derived. */
|
|
11
|
+
max?: number;
|
|
12
|
+
/** Number of value gridlines/ticks (default 5, includes 0). */
|
|
13
|
+
ticks?: number;
|
|
14
|
+
/** Bar colour (default brand). */
|
|
15
|
+
color?: string;
|
|
16
|
+
/** Formats axis ticks and bar values. */
|
|
17
|
+
format?: (n: number) => string;
|
|
18
|
+
/** Category-axis title, shown centred below the labels. */
|
|
19
|
+
xAxisTitle?: React.ReactNode;
|
|
20
|
+
"aria-label"?: string;
|
|
21
|
+
className?: string;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* A responsive bar chart — measured from Attio's Reports dashboard. Pure CSS, so
|
|
25
|
+
* it scales with its container. Renders `role="img"` with an accessible summary.
|
|
26
|
+
*/
|
|
27
|
+
export declare function BarChart({ data, height, max, ticks, color, format, xAxisTitle, "aria-label": ariaLabel, className, }: BarChartProps): React.JSX.Element;
|
|
28
|
+
export declare namespace BarChart {
|
|
29
|
+
var displayName: string;
|
|
30
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export type BreadcrumbItem = {
|
|
3
|
+
label: React.ReactNode;
|
|
4
|
+
href?: string;
|
|
5
|
+
icon?: React.ReactNode;
|
|
6
|
+
onClick?: () => void;
|
|
7
|
+
};
|
|
8
|
+
export type BreadcrumbProps = {
|
|
9
|
+
items: BreadcrumbItem[];
|
|
10
|
+
/** Separator between items (default a chevron). */
|
|
11
|
+
separator?: React.ReactNode;
|
|
12
|
+
"aria-label"?: string;
|
|
13
|
+
className?: string;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* A breadcrumb trail — measured from Attio's record-page nav. The last item is
|
|
17
|
+
* marked `aria-current="page"`; earlier items render as links or buttons.
|
|
18
|
+
*/
|
|
19
|
+
export declare function Breadcrumb({ items, separator, "aria-label": ariaLabel, className, }: BreadcrumbProps): React.JSX.Element;
|
|
20
|
+
export declare namespace Breadcrumb {
|
|
21
|
+
var displayName: string;
|
|
22
|
+
}
|