@crisp-ui-kit/crisp 0.54.5 → 0.54.7
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/dist/authshell.css +4 -0
- package/dist/authshell.layered.css +4 -0
- package/dist/cjs/components/datatable/datatable.js +28 -5
- package/dist/cjs/components/datatable/datatable.recipe.js +6 -0
- package/dist/cjs/components/personchip/personchip.js +7 -3
- package/dist/cjs/components/tabletoolbar/tabletoolbar.chrome.js +10 -1
- package/dist/cjs/components/tabletoolbar/tabletoolbar.js +9 -3
- package/dist/cjs/components/tooltip/tooltip.js +2 -2
- package/dist/cjs/components/tooltip/tooltip.recipe.js +37 -0
- package/dist/cjs/product/authshell/authshell.js +1 -1
- package/dist/cjs/product/authshell/authshell.recipe.js +18 -0
- package/dist/cjs/product/recordstable/recordstable.js +12 -3
- package/dist/cjs/product/richtext/richtext.js +31 -4
- package/dist/datatable.css +8 -4
- package/dist/datatable.layered.css +8 -4
- package/dist/esm/components/datatable/datatable.js +28 -5
- package/dist/esm/components/datatable/datatable.recipe.js +6 -0
- package/dist/esm/components/personchip/personchip.js +7 -3
- package/dist/esm/components/tabletoolbar/tabletoolbar.chrome.js +10 -1
- package/dist/esm/components/tabletoolbar/tabletoolbar.js +10 -4
- package/dist/esm/components/tooltip/tooltip.js +2 -2
- package/dist/esm/components/tooltip/tooltip.recipe.js +37 -0
- package/dist/esm/product/authshell/authshell.js +1 -1
- package/dist/esm/product/authshell/authshell.recipe.js +18 -0
- package/dist/esm/product/recordstable/recordstable.js +12 -3
- package/dist/esm/product/richtext/richtext.js +31 -4
- package/dist/recordstable.css +2 -1
- package/dist/recordstable.layered.css +2 -1
- package/dist/styles.css +23 -6
- package/dist/styles.layered.css +23 -6
- package/dist/tabletoolbar.css +2 -1
- package/dist/tabletoolbar.layered.css +2 -1
- package/dist/tooltip.css +7 -0
- package/dist/tooltip.d.ts +2 -2
- package/dist/tooltip.layered.css +7 -0
- package/dist/types/components/datatable/datatable.d.ts +50 -11
- package/dist/types/components/personchip/personchip.d.ts +14 -2
- package/dist/types/components/tabletoolbar/tabletoolbar.d.ts +4 -2
- package/dist/types/components/tooltip/tooltip.d.ts +16 -0
- package/dist/types/components/tooltip/tooltip.recipe.d.ts +30 -2
- package/dist/types/product/authshell/authshell.d.ts +4 -1
- package/dist/types/product/recordstable/recordstable.d.ts +12 -0
- package/package.json +1 -1
package/dist/styles.layered.css
CHANGED
|
@@ -680,10 +680,14 @@
|
|
|
680
680
|
& .crisp-datatable-tag[data-tone="orange"] { background: color-mix(in srgb, var(--crisp-bg-orange) 16%, transparent); color: color-mix(in srgb, var(--crisp-bg-orange) 82%, var(--crisp-fg-primary)); }
|
|
681
681
|
& .crisp-datatable-num { font-variant-numeric: tabular-nums; }
|
|
682
682
|
& .crisp-datatable-muted { color: var(--crisp-fg-muted); }
|
|
683
|
-
/*
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
683
|
+
/* url/email cell types (#654) -- same measured values as RecordsTable's own .crisp-recordstable-link, which this mirrors: no underline at rest, underline on hover, own-colour text rather than a browser-blue link. */
|
|
684
|
+
& .crisp-datatable-link { color: var(--crisp-fg-primary); text-decoration: none; overflow: hidden; text-overflow: ellipsis; }
|
|
685
|
+
& .crisp-datatable-link:hover { text-decoration: underline; }
|
|
686
|
+
/* row drag-to-reorder -- a Settings > Objects > Attributes screen measures a leading 20px grip column, a 16px grip icon, and the row's own
|
|
687
|
+
hairline doubling as the drop indicator (it tints toward the brand
|
|
688
|
+
colour as the active drop target). The affordance + geometry are
|
|
689
|
+
measured; the drag MECHANISM is crisp's existing house idiom -- HTML5 draggable + dataTransfer, the same one column reorder already uses (RecordsTable's reorderColumn) -- not a proprietary
|
|
690
|
+
pointer-events implementation. */
|
|
687
691
|
& .crisp-datatable-col-grip { width: 20px; padding: 0; text-align: center; }
|
|
688
692
|
& .crisp-datatable-grip { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 100%; margin: 0; border: none; border-radius: 0; background: none; font-family: inherit; color: var(--crisp-fg-muted); cursor: grab; }
|
|
689
693
|
& .crisp-datatable-grip:active { cursor: grabbing; }
|
|
@@ -1743,7 +1747,7 @@
|
|
|
1743
1747
|
& .crisp-tabletoolbar-sort-learn { display: inline-flex; align-items: center; gap: var(--crisp-space-1-5); font-size: var(--crisp-text-lg); color: color-mix(in srgb, var(--crisp-fg-primary) 63%, transparent); text-decoration: none; }
|
|
1744
1748
|
& .crisp-tabletoolbar-sort-learn svg { flex-shrink: 0; }
|
|
1745
1749
|
& .crisp-tabletoolbar-sort-learn:hover { color: var(--crisp-fg-primary); }
|
|
1746
|
-
& .crisp-tabletoolbar-menu-item { display: flex; align-items: center; gap: var(--crisp-space-1-5); width: 100%; height: var(--crisp-size-menuRow); margin: 0; padding: 0 var(--crisp-space-2); border: none; background: none; border-radius: var(--crisp-radius-md); font-family: inherit; font-size: var(--crisp-text-lg); color: var(--crisp-fg-primary); text-align: left; cursor: pointer; }
|
|
1750
|
+
& .crisp-tabletoolbar-menu-item { display: flex; align-items: center; gap: var(--crisp-space-1-5); width: 100%; height: var(--crisp-size-menuRow); margin: 0; padding: 0 var(--crisp-space-2); border: none; background: none; border-radius: var(--crisp-radius-md); font-family: inherit; font-size: var(--crisp-text-lg); line-height: 20px; font-weight: var(--crisp-weight-medium); color: var(--crisp-fg-primary); text-align: left; cursor: pointer; }
|
|
1747
1751
|
& .crisp-tabletoolbar-menu-item:hover { background: var(--crisp-bg-raised); }
|
|
1748
1752
|
& .crisp-tabletoolbar-menu-item:disabled { opacity: 0.4; cursor: default; }
|
|
1749
1753
|
& .crisp-tabletoolbar-menu-item:disabled:hover { background: none; }
|
|
@@ -1756,6 +1760,7 @@
|
|
|
1756
1760
|
& .crisp-tabletoolbar-menu--right { left: auto; right: 0; }
|
|
1757
1761
|
& .crisp-tabletoolbar-menu--fixed { position: fixed; top: auto; left: auto; z-index: 40; }
|
|
1758
1762
|
& .crisp-tabletoolbar-menu--hdr { min-width: 200px; }
|
|
1763
|
+
& .crisp-tabletoolbar-menu--op { min-width: 134px; }
|
|
1759
1764
|
& .crisp-tabletoolbar-menu-item--danger { color: var(--crisp-bg-danger); }
|
|
1760
1765
|
& .crisp-tabletoolbar-menu-item--danger svg { color: var(--crisp-bg-danger); }
|
|
1761
1766
|
& .crisp-tabletoolbar-menu-item--danger:hover { background: color-mix(in srgb, var(--crisp-bg-danger) 10%, transparent); }
|
|
@@ -1893,6 +1898,13 @@
|
|
|
1893
1898
|
.crisp-tooltip {
|
|
1894
1899
|
position: fixed; z-index: 70; box-sizing: border-box; pointer-events: none; max-width: 260px; padding: var(--crisp-space-1-5) var(--crisp-space-2); border-radius: var(--crisp-radius-md); background: #101112; color: #eeeff1; font-family: var(--crisp-font-sans); font-size: var(--crisp-text-sm); font-weight: var(--crisp-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;
|
|
1895
1900
|
@starting-style { opacity: 0; }
|
|
1901
|
+
& .crisp-tooltip-reference-row { display: inline-flex; align-items: center; gap: var(--crisp-space-1); }
|
|
1902
|
+
}
|
|
1903
|
+
.crisp-tooltip--variant_plain {
|
|
1904
|
+
|
|
1905
|
+
}
|
|
1906
|
+
.crisp-tooltip--variant_reference {
|
|
1907
|
+
box-shadow: rgba(0,0,0,0) 0 0 0 1px inset, rgba(28,40,64,0.18) 0 0 2px 0, rgba(0,0,0,0.04) 0 1px 3px 0;
|
|
1896
1908
|
}
|
|
1897
1909
|
|
|
1898
1910
|
@media (prefers-reduced-motion: reduce) {
|
|
@@ -1967,14 +1979,18 @@
|
|
|
1967
1979
|
|
|
1968
1980
|
.crisp-authshell {
|
|
1969
1981
|
min-height: 100%; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; position: relative; background: var(--crisp-bg-surface); font-family: var(--crisp-font-sans); font-size: var(--crisp-text-lg); line-height: 20px; color: var(--crisp-fg-primary); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
|
|
1982
|
+
&[data-single-pane] { justify-content: center; }
|
|
1970
1983
|
& .crisp-authshell-progress { position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--crisp-border-default); }
|
|
1971
1984
|
& .crisp-authshell-progress-fill { height: 2px; background: var(--crisp-fg-primary); border-radius: 4px; transition: width .2s; }
|
|
1972
1985
|
& .crisp-authshell-logo { margin-top: var(--crisp-space-8); height: 24px; display: flex; align-items: center; }
|
|
1973
1986
|
& .crisp-authshell-card { margin-top: var(--crisp-space-6); display: flex; height: 692px; border-radius: 20px; border: 1px solid var(--crisp-border-subtle); overflow: hidden; }
|
|
1987
|
+
&[data-single-pane] .crisp-authshell-card { height: auto; border: none; border-radius: 0; overflow: visible; }
|
|
1974
1988
|
& .crisp-authshell-pane { flex: 0 0 564px; padding: 72px; display: flex; flex-direction: column; box-sizing: border-box; }
|
|
1989
|
+
&[data-single-pane] .crisp-authshell-pane { flex: 0 0 auto; padding: 0; }
|
|
1975
1990
|
& .crisp-authshell-preview { flex: 0 0 564px; padding: 96px 64px; background: var(--crisp-bg-subtle); border-inline-start: 1px solid color-mix(in srgb, var(--crisp-fg-primary) 5%, transparent); position: relative; overflow: hidden; box-sizing: border-box; }
|
|
1976
1991
|
& .crisp-authshell-preview::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(color-mix(in srgb, var(--crisp-bg-subtle) 0%, transparent) 0%, var(--crisp-bg-subtle) 100%); pointer-events: none; }
|
|
1977
1992
|
& .crisp-authshell-body { width: 420px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--crisp-space-8); align-items: center; }
|
|
1993
|
+
&[data-single-pane] .crisp-authshell-body { width: 360px; }
|
|
1978
1994
|
& .crisp-authshell-title { font-size: 20px; line-height: 24px; font-weight: var(--crisp-weight-semibold); letter-spacing: -0.4px; color: var(--crisp-fg-primary); align-self: stretch; }
|
|
1979
1995
|
& .crisp-authshell-form { align-self: stretch; display: flex; flex-direction: column; gap: 28px; }
|
|
1980
1996
|
& .crisp-authshell-footer { margin-top: var(--crisp-space-6); display: flex; align-items: center; gap: var(--crisp-space-1); font-size: var(--crisp-text-sm); line-height: 16px; color: color-mix(in srgb, var(--crisp-fg-primary) 63%, transparent); }
|
|
@@ -2739,7 +2755,7 @@
|
|
|
2739
2755
|
& .crisp-recordstable-sort-learn { display: inline-flex; align-items: center; gap: var(--crisp-space-1-5); font-size: var(--crisp-text-lg); color: color-mix(in srgb, var(--crisp-fg-primary) 63%, transparent); text-decoration: none; }
|
|
2740
2756
|
& .crisp-recordstable-sort-learn svg { flex-shrink: 0; }
|
|
2741
2757
|
& .crisp-recordstable-sort-learn:hover { color: var(--crisp-fg-primary); }
|
|
2742
|
-
& .crisp-recordstable-menu-item { display: flex; align-items: center; gap: var(--crisp-space-1-5); width: 100%; height: var(--crisp-size-menuRow); margin: 0; padding: 0 var(--crisp-space-2); border: none; background: none; border-radius: var(--crisp-radius-md); font-family: inherit; font-size: var(--crisp-text-lg); color: var(--crisp-fg-primary); text-align: left; cursor: pointer; }
|
|
2758
|
+
& .crisp-recordstable-menu-item { display: flex; align-items: center; gap: var(--crisp-space-1-5); width: 100%; height: var(--crisp-size-menuRow); margin: 0; padding: 0 var(--crisp-space-2); border: none; background: none; border-radius: var(--crisp-radius-md); font-family: inherit; font-size: var(--crisp-text-lg); line-height: 20px; font-weight: var(--crisp-weight-medium); color: var(--crisp-fg-primary); text-align: left; cursor: pointer; }
|
|
2743
2759
|
& .crisp-recordstable-menu-item:hover { background: var(--crisp-bg-raised); }
|
|
2744
2760
|
& .crisp-recordstable-menu-item:disabled { opacity: 0.4; cursor: default; }
|
|
2745
2761
|
& .crisp-recordstable-menu-item:disabled:hover { background: none; }
|
|
@@ -2752,6 +2768,7 @@
|
|
|
2752
2768
|
& .crisp-recordstable-menu--right { left: auto; right: 0; }
|
|
2753
2769
|
& .crisp-recordstable-menu--fixed { position: fixed; top: auto; left: auto; z-index: 40; }
|
|
2754
2770
|
& .crisp-recordstable-menu--hdr { min-width: 200px; }
|
|
2771
|
+
& .crisp-recordstable-menu--op { min-width: 134px; }
|
|
2755
2772
|
& .crisp-recordstable-menu-item--danger { color: var(--crisp-bg-danger); }
|
|
2756
2773
|
& .crisp-recordstable-menu-item--danger svg { color: var(--crisp-bg-danger); }
|
|
2757
2774
|
& .crisp-recordstable-menu-item--danger:hover { background: color-mix(in srgb, var(--crisp-bg-danger) 10%, transparent); }
|
package/dist/tabletoolbar.css
CHANGED
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
& .crisp-tabletoolbar-sort-learn { display: inline-flex; align-items: center; gap: var(--crisp-space-1-5); font-size: var(--crisp-text-lg); color: color-mix(in srgb, var(--crisp-fg-primary) 63%, transparent); text-decoration: none; }
|
|
40
40
|
& .crisp-tabletoolbar-sort-learn svg { flex-shrink: 0; }
|
|
41
41
|
& .crisp-tabletoolbar-sort-learn:hover { color: var(--crisp-fg-primary); }
|
|
42
|
-
& .crisp-tabletoolbar-menu-item { display: flex; align-items: center; gap: var(--crisp-space-1-5); width: 100%; height: var(--crisp-size-menuRow); margin: 0; padding: 0 var(--crisp-space-2); border: none; background: none; border-radius: var(--crisp-radius-md); font-family: inherit; font-size: var(--crisp-text-lg); color: var(--crisp-fg-primary); text-align: left; cursor: pointer; }
|
|
42
|
+
& .crisp-tabletoolbar-menu-item { display: flex; align-items: center; gap: var(--crisp-space-1-5); width: 100%; height: var(--crisp-size-menuRow); margin: 0; padding: 0 var(--crisp-space-2); border: none; background: none; border-radius: var(--crisp-radius-md); font-family: inherit; font-size: var(--crisp-text-lg); line-height: 20px; font-weight: var(--crisp-weight-medium); color: var(--crisp-fg-primary); text-align: left; cursor: pointer; }
|
|
43
43
|
& .crisp-tabletoolbar-menu-item:hover { background: var(--crisp-bg-raised); }
|
|
44
44
|
& .crisp-tabletoolbar-menu-item:disabled { opacity: 0.4; cursor: default; }
|
|
45
45
|
& .crisp-tabletoolbar-menu-item:disabled:hover { background: none; }
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
& .crisp-tabletoolbar-menu--right { left: auto; right: 0; }
|
|
53
53
|
& .crisp-tabletoolbar-menu--fixed { position: fixed; top: auto; left: auto; z-index: 40; }
|
|
54
54
|
& .crisp-tabletoolbar-menu--hdr { min-width: 200px; }
|
|
55
|
+
& .crisp-tabletoolbar-menu--op { min-width: 134px; }
|
|
55
56
|
& .crisp-tabletoolbar-menu-item--danger { color: var(--crisp-bg-danger); }
|
|
56
57
|
& .crisp-tabletoolbar-menu-item--danger svg { color: var(--crisp-bg-danger); }
|
|
57
58
|
& .crisp-tabletoolbar-menu-item--danger:hover { background: color-mix(in srgb, var(--crisp-bg-danger) 10%, transparent); }
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
& .crisp-tabletoolbar-sort-learn { display: inline-flex; align-items: center; gap: var(--crisp-space-1-5); font-size: var(--crisp-text-lg); color: color-mix(in srgb, var(--crisp-fg-primary) 63%, transparent); text-decoration: none; }
|
|
41
41
|
& .crisp-tabletoolbar-sort-learn svg { flex-shrink: 0; }
|
|
42
42
|
& .crisp-tabletoolbar-sort-learn:hover { color: var(--crisp-fg-primary); }
|
|
43
|
-
& .crisp-tabletoolbar-menu-item { display: flex; align-items: center; gap: var(--crisp-space-1-5); width: 100%; height: var(--crisp-size-menuRow); margin: 0; padding: 0 var(--crisp-space-2); border: none; background: none; border-radius: var(--crisp-radius-md); font-family: inherit; font-size: var(--crisp-text-lg); color: var(--crisp-fg-primary); text-align: left; cursor: pointer; }
|
|
43
|
+
& .crisp-tabletoolbar-menu-item { display: flex; align-items: center; gap: var(--crisp-space-1-5); width: 100%; height: var(--crisp-size-menuRow); margin: 0; padding: 0 var(--crisp-space-2); border: none; background: none; border-radius: var(--crisp-radius-md); font-family: inherit; font-size: var(--crisp-text-lg); line-height: 20px; font-weight: var(--crisp-weight-medium); color: var(--crisp-fg-primary); text-align: left; cursor: pointer; }
|
|
44
44
|
& .crisp-tabletoolbar-menu-item:hover { background: var(--crisp-bg-raised); }
|
|
45
45
|
& .crisp-tabletoolbar-menu-item:disabled { opacity: 0.4; cursor: default; }
|
|
46
46
|
& .crisp-tabletoolbar-menu-item:disabled:hover { background: none; }
|
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
& .crisp-tabletoolbar-menu--right { left: auto; right: 0; }
|
|
54
54
|
& .crisp-tabletoolbar-menu--fixed { position: fixed; top: auto; left: auto; z-index: 40; }
|
|
55
55
|
& .crisp-tabletoolbar-menu--hdr { min-width: 200px; }
|
|
56
|
+
& .crisp-tabletoolbar-menu--op { min-width: 134px; }
|
|
56
57
|
& .crisp-tabletoolbar-menu-item--danger { color: var(--crisp-bg-danger); }
|
|
57
58
|
& .crisp-tabletoolbar-menu-item--danger svg { color: var(--crisp-bg-danger); }
|
|
58
59
|
& .crisp-tabletoolbar-menu-item--danger:hover { background: color-mix(in srgb, var(--crisp-bg-danger) 10%, transparent); }
|
package/dist/tooltip.css
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
.crisp-tooltip {
|
|
2
2
|
position: fixed; z-index: 70; box-sizing: border-box; pointer-events: none; max-width: 260px; padding: var(--crisp-space-1-5) var(--crisp-space-2); border-radius: var(--crisp-radius-md); background: #101112; color: #eeeff1; font-family: var(--crisp-font-sans); font-size: var(--crisp-text-sm); font-weight: var(--crisp-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;
|
|
3
3
|
@starting-style { opacity: 0; }
|
|
4
|
+
& .crisp-tooltip-reference-row { display: inline-flex; align-items: center; gap: var(--crisp-space-1); }
|
|
5
|
+
}
|
|
6
|
+
.crisp-tooltip--variant_plain {
|
|
7
|
+
|
|
8
|
+
}
|
|
9
|
+
.crisp-tooltip--variant_reference {
|
|
10
|
+
box-shadow: rgba(0,0,0,0) 0 0 0 1px inset, rgba(28,40,64,0.18) 0 0 2px 0, rgba(0,0,0,0.04) 0 1px 3px 0;
|
|
4
11
|
}
|
|
5
12
|
|
|
6
13
|
@media (prefers-reduced-motion: reduce) {
|
package/dist/tooltip.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { RecipeFn } from "../core/types";
|
|
2
2
|
|
|
3
3
|
export interface TooltipVariants {
|
|
4
|
-
|
|
4
|
+
variant?: "plain" | "reference";
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
export declare const tooltipRecipe: RecipeFn<{
|
|
7
|
+
export declare const tooltipRecipe: RecipeFn<{ variant: { plain: string; reference: string } }>;
|
package/dist/tooltip.layered.css
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
.crisp-tooltip {
|
|
3
3
|
position: fixed; z-index: 70; box-sizing: border-box; pointer-events: none; max-width: 260px; padding: var(--crisp-space-1-5) var(--crisp-space-2); border-radius: var(--crisp-radius-md); background: #101112; color: #eeeff1; font-family: var(--crisp-font-sans); font-size: var(--crisp-text-sm); font-weight: var(--crisp-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;
|
|
4
4
|
@starting-style { opacity: 0; }
|
|
5
|
+
& .crisp-tooltip-reference-row { display: inline-flex; align-items: center; gap: var(--crisp-space-1); }
|
|
6
|
+
}
|
|
7
|
+
.crisp-tooltip--variant_plain {
|
|
8
|
+
|
|
9
|
+
}
|
|
10
|
+
.crisp-tooltip--variant_reference {
|
|
11
|
+
box-shadow: rgba(0,0,0,0) 0 0 0 1px inset, rgba(28,40,64,0.18) 0 0 2px 0, rgba(0,0,0,0.04) 0 1px 3px 0;
|
|
5
12
|
}
|
|
6
13
|
|
|
7
14
|
@media (prefers-reduced-motion: reduce) {
|
|
@@ -22,7 +22,20 @@ export type DataEditableOption = {
|
|
|
22
22
|
* `editor: "select"`. */
|
|
23
23
|
avatar?: string;
|
|
24
24
|
};
|
|
25
|
-
export type DataCellType = "text" | "entity" | "tags" | "status" | "date" | "datetime" | "number" | "currency"
|
|
25
|
+
export type DataCellType = "text" | "entity" | "tags" | "status" | "date" | "datetime" | "number" | "currency"
|
|
26
|
+
/** Opens `https://{value}` in a new tab -- matches RecordsTable's own
|
|
27
|
+
* `url` type exactly (crisp/#654): `color: fgPrimary`, no underline at
|
|
28
|
+
* rest, underline on hover. A click stops propagation, same as an
|
|
29
|
+
* `entity` column's `onEntityClick` link, so it doesn't also fire the
|
|
30
|
+
* row's own `onRowClick`. */
|
|
31
|
+
| "url"
|
|
32
|
+
/** Opens `mailto:{value}`, same link styling as `url`. Attio confirms
|
|
33
|
+
* this is a distinct column type ("Primary email address", checklist
|
|
34
|
+
* G-042), but its editor was never opened live in the measured
|
|
35
|
+
* workspace -- this type is display-only for now; editing still falls
|
|
36
|
+
* through to the plain-text editor every other non-number/date type
|
|
37
|
+
* gets, not a dedicated one (see #597 for when that's measured). */
|
|
38
|
+
| "email";
|
|
26
39
|
export type DataTableColumn<T> = {
|
|
27
40
|
key: string;
|
|
28
41
|
/** Truncates with an ellipsis when it's wider than the column (#534: a
|
|
@@ -35,6 +48,17 @@ export type DataTableColumn<T> = {
|
|
|
35
48
|
type?: DataCellType;
|
|
36
49
|
/** A leading field-type icon in the header (matches RecordsTable). */
|
|
37
50
|
icon?: IconType;
|
|
51
|
+
/** This column's values reference another type of record (e.g. a
|
|
52
|
+
* "Primary location" column of Country records). When the header
|
|
53
|
+
* overflows, its `Tooltip` appends this type's icon and name after the
|
|
54
|
+
* label and switches to Attio's second, reference-column tooltip chrome
|
|
55
|
+
* (crisp#580) — distinct from `icon` above, which is the column's own
|
|
56
|
+
* field-type glyph shown in the header row itself, not inside the
|
|
57
|
+
* tooltip. Omit for a plain column; the tooltip stays label-only (#534). */
|
|
58
|
+
referencedType?: {
|
|
59
|
+
icon: IconType;
|
|
60
|
+
label: string;
|
|
61
|
+
};
|
|
38
62
|
/** Currency symbol for `currency` columns (default "$"). */
|
|
39
63
|
symbol?: string;
|
|
40
64
|
/** Allow drag-to-resize on this column (default true). */
|
|
@@ -51,17 +75,25 @@ export type DataTableColumn<T> = {
|
|
|
51
75
|
editable?: boolean;
|
|
52
76
|
/** The inline editor an `editable` column opens. Omitted: a plain field
|
|
53
77
|
* inferred from `type` (number/date/datetime/text). `"select"`/
|
|
54
|
-
* `"reference"` render crisp's own `Select` the same way — at
|
|
55
|
-
* cell shows the column's `render`/formatted value like every
|
|
56
|
-
* editable type (#453), and double-click (or Enter on the selected
|
|
78
|
+
* `"reference"`/`"actor"` render crisp's own `Select` the same way — at
|
|
79
|
+
* rest the cell shows the column's `render`/formatted value like every
|
|
80
|
+
* other editable type (#453), and double-click (or Enter on the selected
|
|
57
81
|
* cell) opens the picker; choosing a value commits and closes it,
|
|
58
|
-
* Escape cancels. `select` reads `options`; `reference`
|
|
59
|
-
* `refOptions` and
|
|
82
|
+
* Escape cancels. `select` reads `options`; `reference`/`actor` both
|
|
83
|
+
* read `refOptions` and are search-enabled, the same searchable-`Select`
|
|
60
84
|
* shape as `RecordsTable`'s own `ReferenceCell`. `"switch"` is the one
|
|
61
85
|
* exception — ALWAYS its own live widget, no double-click gate, since
|
|
62
86
|
* flipping the toggle IS the commit gesture and there's no meaningfully
|
|
63
|
-
* different "rest" display for a boolean.
|
|
64
|
-
|
|
87
|
+
* different "rest" display for a boolean.
|
|
88
|
+
*
|
|
89
|
+
* `"actor"` (crisp/#654, checklist G-039) is `"reference"` with Attio's
|
|
90
|
+
* own measured person-picker copy as the default instead of a generic
|
|
91
|
+
* one: `refSearchPlaceholder` defaults to "Search people…" and the
|
|
92
|
+
* empty-search state reads "No users" rather than `Select`'s own
|
|
93
|
+
* generic "No results" — both still overridable the normal way.
|
|
94
|
+
* Otherwise identical to `reference`: same `refOptions` shape, same
|
|
95
|
+
* `onCreateReference`/`createLabel` "Create X" row. */
|
|
96
|
+
editor?: "select" | "switch" | "reference" | "actor";
|
|
65
97
|
/** Options for `editor: "select"` (value/label, an optional `color` a
|
|
66
98
|
* caller's own `render` can read) — same shape as RecordsTable's
|
|
67
99
|
* `Column.options` for its `status` picker. */
|
|
@@ -72,10 +104,17 @@ export type DataTableColumn<T> = {
|
|
|
72
104
|
* RecordsTable's own `ReferenceCell`, which this picker mirrors. */
|
|
73
105
|
refOptions?: DataEditableOption[];
|
|
74
106
|
/** Placeholder for `editor: "reference"`'s search input. Defaults to
|
|
75
|
-
* `Select`'s own generic "Search…" — a generic primitive
|
|
76
|
-
* Attio's own copy ("Search records..."), which is
|
|
77
|
-
* text, not a crisp-measured value.
|
|
107
|
+
* `Select`'s own generic "Search…" for `reference` — a generic primitive
|
|
108
|
+
* doesn't hardcode Attio's own copy ("Search records..."), which is
|
|
109
|
+
* workspace/object text, not a crisp-measured value. `editor: "actor"`
|
|
110
|
+
* defaults this to the measured "Search people…" instead (still
|
|
111
|
+
* overridable here). */
|
|
78
112
|
refSearchPlaceholder?: string;
|
|
113
|
+
/** `editor: "reference"`/`"actor"`'s empty-search-results text. Defaults
|
|
114
|
+
* to `Select`'s own generic "No results" for `reference`; `"actor"`
|
|
115
|
+
* defaults this to the measured "No users" (checklist G-039 — a real
|
|
116
|
+
* empty-search state on an empty query, not an error). */
|
|
117
|
+
refEmptyLabel?: string;
|
|
79
118
|
/** Adds a trailing "Create {createLabel}" row to `editor: "reference"`'s
|
|
80
119
|
* picker (Attio's own always has one, #449) — rendered only when this is
|
|
81
120
|
* provided. Picking it hands back the picker's current search text, e.g.
|
|
@@ -11,6 +11,14 @@ export type PersonChipProps = Omit<React.ComponentPropsWithoutRef<"span">, "chil
|
|
|
11
11
|
* Applied to the name only; the avatar keeps its full-strength tone so
|
|
12
12
|
* the chip still reads as a distinct person, not a disabled control. */
|
|
13
13
|
muted?: boolean;
|
|
14
|
+
/** One more thing after the name that must never shrink or wrap out of
|
|
15
|
+
* view (an icon, a small badge) — a consumer needing this used to wrap
|
|
16
|
+
* `PersonChip` in its own flex row for it, which needed `min-width: 0`
|
|
17
|
+
* of its own to keep shrinking correctly and, missing that, overflowed
|
|
18
|
+
* its container the same way #668 did before that fix (#683). Rendered
|
|
19
|
+
* inside the chip, after the name, so it shares `Chip`'s own flex/
|
|
20
|
+
* shrink layout instead of wrapping it in a second, unconstrained one. */
|
|
21
|
+
trailing?: React.ReactNode;
|
|
14
22
|
className?: string;
|
|
15
23
|
};
|
|
16
24
|
/**
|
|
@@ -29,9 +37,13 @@ export type PersonChipProps = Omit<React.ComponentPropsWithoutRef<"span">, "chil
|
|
|
29
37
|
* Composes `Chip`'s `truncate` CSS directly rather than its string-only
|
|
30
38
|
* auto-wrap (children here is an avatar plus a name, not a single string),
|
|
31
39
|
* so the name gets its own `.crisp-chip-label` span while the avatar stays
|
|
32
|
-
* fixed-size.
|
|
40
|
+
* fixed-size. `trailing` (#683) is the same idea for a consumer's own
|
|
41
|
+
* icon/badge after the name — inside the chip's own flex row rather than a
|
|
42
|
+
* second one a consumer would otherwise wrap this in, which needs its own
|
|
43
|
+
* `min-width: 0` to keep shrinking correctly and, missing that, overflows
|
|
44
|
+
* its container the same way #668 did before `Chip` itself was fixed.
|
|
33
45
|
*/
|
|
34
|
-
export declare function PersonChip({ name, avatar, muted, className, ...props }: PersonChipProps): React.JSX.Element;
|
|
46
|
+
export declare function PersonChip({ name, avatar, muted, trailing, className, ...props }: PersonChipProps): React.JSX.Element;
|
|
35
47
|
export declare namespace PersonChip {
|
|
36
48
|
var displayName: string;
|
|
37
49
|
}
|
|
@@ -95,8 +95,10 @@ export type TableToolbarProps = Omit<React.ComponentPropsWithoutRef<"div">, "chi
|
|
|
95
95
|
/** aria-label on a filter chip's "⋮" kebab (default "Filter options"). */
|
|
96
96
|
filterOptionsLabel?: string;
|
|
97
97
|
/** Label on the filter chip kebab's "Delete filter" action (default
|
|
98
|
-
* "Delete filter") — Attio's own chip kebab (#594) has exactly this
|
|
99
|
-
* item.
|
|
98
|
+
* "Delete filter") — Attio's own chip kebab (#594) has exactly this
|
|
99
|
+
* one item, danger-styled with a leading trash icon. Renamed from
|
|
100
|
+
* "Delete filter" (this prop's original default) after a re-measurement
|
|
101
|
+
* caught the wrong word. */
|
|
100
102
|
deleteFilterLabel?: string;
|
|
101
103
|
/** Label on the "ascending" sort-direction option (default "Ascending"). */
|
|
102
104
|
ascendingLabel?: string;
|
|
@@ -33,6 +33,14 @@ export type TooltipProps = Omit<React.ComponentPropsWithoutRef<"span">, "content
|
|
|
33
33
|
* `ContextMenu`'s.
|
|
34
34
|
*/
|
|
35
35
|
asChild?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Which of Attio's two measured tooltip shadows to use (crisp#580) —
|
|
38
|
+
* background/colour/radius/padding/font are identical between them, only
|
|
39
|
+
* the `box-shadow` differs. `"reference"` is for a reference-column
|
|
40
|
+
* header's tooltip (icon + the referenced type's name); every other
|
|
41
|
+
* tooltip in crisp is `"plain"`, the default.
|
|
42
|
+
*/
|
|
43
|
+
variant?: "plain" | "reference";
|
|
36
44
|
};
|
|
37
45
|
/**
|
|
38
46
|
* A hover/focus tooltip — a dark hint chip measured live. Wraps its
|
|
@@ -85,4 +93,12 @@ export declare const Tooltip: React.ForwardRefExoticComponent<Omit<Omit<React.De
|
|
|
85
93
|
* `ContextMenu`'s.
|
|
86
94
|
*/
|
|
87
95
|
asChild?: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Which of Attio's two measured tooltip shadows to use (crisp#580) —
|
|
98
|
+
* background/colour/radius/padding/font are identical between them, only
|
|
99
|
+
* the `box-shadow` differs. `"reference"` is for a reference-column
|
|
100
|
+
* header's tooltip (icon + the referenced type's name); every other
|
|
101
|
+
* tooltip in crisp is `"plain"`, the default.
|
|
102
|
+
*/
|
|
103
|
+
variant?: "plain" | "reference";
|
|
88
104
|
} & React.RefAttributes<HTMLElement>>;
|
|
@@ -23,9 +23,37 @@ declare const spec: {
|
|
|
23
23
|
readonly decls: {
|
|
24
24
|
readonly opacity: 0;
|
|
25
25
|
};
|
|
26
|
+
}, {
|
|
27
|
+
readonly selector: "& .crisp-tooltip-reference-row";
|
|
28
|
+
readonly decls: {
|
|
29
|
+
readonly display: "inline-flex";
|
|
30
|
+
readonly alignItems: "center";
|
|
31
|
+
readonly gap: `var(--${string})`;
|
|
32
|
+
};
|
|
26
33
|
}];
|
|
34
|
+
readonly variants: {
|
|
35
|
+
readonly variant: {
|
|
36
|
+
readonly plain: {};
|
|
37
|
+
readonly reference: {
|
|
38
|
+
readonly boxShadow: "rgba(0,0,0,0) 0 0 0 1px inset, rgba(28,40,64,0.18) 0 0 2px 0, rgba(0,0,0,0.04) 0 1px 3px 0";
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
readonly defaultVariants: {
|
|
43
|
+
readonly variant: "plain";
|
|
44
|
+
};
|
|
27
45
|
};
|
|
28
|
-
declare const config: import("../..").RecipeConfig<
|
|
29
|
-
|
|
46
|
+
declare const config: import("../..").RecipeConfig<{
|
|
47
|
+
readonly variant: {
|
|
48
|
+
readonly plain: string;
|
|
49
|
+
readonly reference: string;
|
|
50
|
+
};
|
|
51
|
+
}>;
|
|
52
|
+
export declare const tooltipRecipe: import("../..").RecipeFn<{
|
|
53
|
+
readonly variant: {
|
|
54
|
+
readonly plain: string;
|
|
55
|
+
readonly reference: string;
|
|
56
|
+
};
|
|
57
|
+
}>;
|
|
30
58
|
export { spec };
|
|
31
59
|
export default config;
|
|
@@ -8,7 +8,10 @@ export type AuthShellProps = Omit<React.ComponentPropsWithoutRef<"div">, "title"
|
|
|
8
8
|
title?: React.ReactNode;
|
|
9
9
|
/** The form / body content. */
|
|
10
10
|
children: React.ReactNode;
|
|
11
|
-
/** Right-hand product preview. Hidden under 1200px; omit for a single-pane
|
|
11
|
+
/** Right-hand product preview. Hidden under 1200px; omit for a single-pane
|
|
12
|
+
* layout — no card chrome (border/shadow/fixed height), a narrower
|
|
13
|
+
* 360px content column, and the whole shell vertically centred, matching
|
|
14
|
+
* the real single-pane sign-in screen (crisp#653). */
|
|
12
15
|
preview?: React.ReactNode;
|
|
13
16
|
/** Legal / support links under the card. */
|
|
14
17
|
footer?: React.ReactNode;
|
|
@@ -28,6 +28,18 @@ export type Column = {
|
|
|
28
28
|
* enriched values are washed (#9b69ff at 4%). */
|
|
29
29
|
enriched?: boolean;
|
|
30
30
|
icon?: IconType;
|
|
31
|
+
/** This column's values reference another type of record (e.g. a
|
|
32
|
+
* "Primary location" column of Country records). When the header
|
|
33
|
+
* overflows, its `Tooltip` appends this type's icon and name after the
|
|
34
|
+
* label and switches to Attio's second, reference-column tooltip chrome
|
|
35
|
+
* (crisp#580) — distinct from `icon` above (the column's own field-type
|
|
36
|
+
* glyph shown in the header row) and from `refOptions` (the picker's
|
|
37
|
+
* selectable values). Omit for a plain column; the tooltip stays
|
|
38
|
+
* label-only (#534). */
|
|
39
|
+
referencedType?: {
|
|
40
|
+
icon: IconType;
|
|
41
|
+
label: string;
|
|
42
|
+
};
|
|
31
43
|
width?: number;
|
|
32
44
|
/** Currency symbol for `currency` columns (default "$"). */
|
|
33
45
|
symbol?: string;
|