@crisp-ui-kit/crisp 0.55.3 → 0.55.4

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/styles.css CHANGED
@@ -696,11 +696,19 @@
696
696
  & .crisp-datatable-sort[data-sorted] .crisp-datatable-chevron { opacity: 1; color: var(--crisp-fg-primary); }
697
697
  /* sticky first column(s) + horizontal scroll shadow — RecordsTable's feel */
698
698
  & th[data-sticky], & td[data-sticky] { position: sticky; z-index: 1; background: var(--crisp-bg-surface); }
699
- & th[data-sticky] { z-index: 3;
700
- } /* #554: a footer sticky-column cell sits in the bottom-sticky row (table.recipe.ts's
701
- `tfoot td { z-index: 2 }
702
- `), which `td[data-sticky]`'s own higher-specificity
703
- `z-index: 1` would otherwise undercut -- keep it level with the row it's in. */
699
+ /* `thead th[data-sticky]`, not a bare `th[data-sticky]` (crisp#848, same
700
+ bare-`th` family as #829/#833/#835): this z-index:3 was written for
701
+ the HEADER's own sticky corner cell (sticky column x sticky header), meant to win over everything else. Unscoped, it also matched the primary column's BODY cell -- a real `<th scope="row" data-sticky>`
702
+ since #779 -- giving every scrolled body row's own sticky cell a HIGHER z-index than the sticky FOOTER's (2), so it painted over the
703
+ footer instead of the footer showing through. Confirmed live on a
704
+ real bounded-height, 25-row table (GRC's Risk register): scrolled partway, `elementFromPoint` at the footer's own on-screen cell
705
+ resolved to a body row's `<th>`, not the footer's `<td>`, and that
706
+ `<th>`'s computed z-index read 3. Scoped to `thead`, a body row's
707
+ own sticky `<th>` now falls back to the base rule above (z-index 1,
708
+ correct -- the same as a plain sticky `<td>`), and the footer's own explicit z-index below is unaffected either way. */
709
+ & thead th[data-sticky] { z-index: 3; }
710
+ /* #554: a footer sticky-column cell sits in the bottom-sticky row (table.recipe.ts's
711
+ `tfoot td { z-index: 2 }`), which `td[data-sticky]`'s own higher-specificity `z-index: 1` would otherwise undercut -- keep it level with the row it's in. */
704
712
  & tfoot td[data-sticky] { z-index: 2; }
705
713
  & tbody tr[data-selected] td[data-sticky] { background: color-mix(in srgb, var(--crisp-bg-brand-solid) 10%, var(--crisp-bg-surface)); }
706
714
  & tbody tr:hover td[data-sticky] { background: color-mix(in srgb, var(--crisp-fg-primary) 4%, var(--crisp-bg-surface)); }
@@ -717,103 +725,96 @@
717
725
  & tbody tr[data-selected] td { background: color-mix(in srgb, var(--crisp-bg-brand-solid) 10%, var(--crisp-bg-surface)); }
718
726
  & tbody tr[data-selected]:hover td { background: color-mix(in srgb, var(--crisp-fg-primary) 4%, color-mix(in srgb, var(--crisp-bg-brand-solid) 10%, var(--crisp-bg-surface))); }
719
727
  & .crisp-datatable-editable:hover { background: color-mix(in srgb, var(--crisp-fg-primary) 4%, var(--crisp-bg-surface)); cursor: text; }
720
- /* crisp/#758: AI-enriched column marker, ported from RecordsTable's own already-measured value -- a full-bleed #9b69ff (bgPurple) wash at 4%, composited OVER whatever row-state background the cell already has (hover, selected), which is why it's an ::after overlay and not a
721
- plain background. */
728
+ /* crisp/#758: AI-enriched column marker, ported from RecordsTable's own
729
+ already-measured value -- a full-bleed #9b69ff (bgPurple) wash at 4%,
730
+ composited OVER whatever row-state background the cell already has
731
+ (hover, selected), which is why it's an ::after overlay and not a plain background. */
722
732
  & td[data-enriched]::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: color-mix(in srgb, var(--crisp-bg-purple) 4%, transparent); }
723
733
  & .crisp-datatable-edit { width: 100%; height: 28px; margin: 0; padding: 0 var(--crisp-space-1-5); border: none; border-radius: var(--crisp-radius-sm); background: var(--crisp-bg-surface); box-shadow: inset 0 0 0 1px var(--crisp-bg-brand-solid); font-family: inherit; font-size: var(--crisp-text-lg); color: var(--crisp-fg-primary); outline: none; vertical-align: middle; }
724
734
  & .crisp-datatable-edit:focus { box-shadow: inset 0 0 0 1px var(--crisp-bg-brand-solid); }
725
- /* An async onEdit's in-flight state (#385) -- the field/picker dims and stops accepting input rather than disappearing, so the just-typed or just-chosen value stays visible while its commit is pending. Same treatment Input already gives its own disabled state. */
735
+ /* An async onEdit's in-flight state (#385) -- the field/picker dims and
736
+ stops accepting input rather than disappearing, so the just-typed or
737
+ just-chosen value stays visible while its commit is pending. Same
738
+ treatment Input already gives its own disabled state. */
726
739
  & .crisp-datatable-edit:disabled { opacity: 0.5; cursor: not-allowed; }
727
740
  & .crisp-datatable-edit-pending { flex-shrink: 0; margin-inline-start: var(--crisp-space-1); color: var(--crisp-fg-muted); vertical-align: middle; }
728
- /* The rejection's message, beside the cell's own content -- a sibling in the TableCell, never nested inside a column's own render output, so a
729
- hover-only wrapper (a Tooltip, say) around a custom render can't hide it. Block-level: the row grows to fit it rather than floating over the row below, so it can never end up clipped by the scroll container's overflow the way a position:fixed escape would need
730
- guarding against. */
741
+ /* The rejection's message, beside the cell's own content -- a sibling in
742
+ the TableCell, never nested inside a column's own render output, so a hover-only wrapper (a Tooltip, say) around a custom render can't hide
743
+ it. Block-level: the row grows to fit it rather than floating over
744
+ the row below, so it can never end up clipped by the scroll
745
+ container's overflow the way a position:fixed escape would need guarding against. */
731
746
  & .crisp-datatable-edit-error { display: block; padding: var(--crisp-space-0-5) 0 0; font-size: var(--crisp-text-sm); color: var(--crisp-bg-danger); }
732
- /* editor: "select"/"switch" -- always live, no separate edit mode, so
733
- the cell IS the picker: same chromeless-fill treatment as
734
- RecordsTable's own --picker cells (measured there already; DataTable shares RecordsTable's grid, Golden Rule 0). */
747
+ /* editor: "select"/"switch" -- always live, no separate edit mode, so the cell IS the picker: same chromeless-fill treatment as RecordsTable's own --picker cells (measured there already; DataTable
748
+ shares RecordsTable's grid, Golden Rule 0). */
735
749
  & .crisp-datatable-td--picker { padding: 0; }
736
750
  & .crisp-datatable-edit-picker { display: flex; align-items: center; gap: var(--crisp-space-1); height: var(--crisp-size-tableRow); padding: 0 var(--crisp-space-2); }
737
751
  & .crisp-datatable-edit-picker .crisp-select-trigger { flex: 1; min-width: 0; height: 100%; min-height: 0; border-radius: 0; box-shadow: none; padding: 0; }
738
752
  & .crisp-datatable-td--picker .crisp-datatable-edit-error { padding-inline-start: var(--crisp-space-2); }
739
- /* reference picker: a leading 16px avatar per option, plus a trailing
740
- "Create X" row when the consumer supplies one (#449) -- same measured
741
- values as RecordsTable's own .crisp-recordstable-refoption*. */
753
+ /* reference picker: a leading 16px avatar per option, plus a trailing "Create X" row when the consumer supplies one (#449) -- same measured values as RecordsTable's own .crisp-recordstable-refoption*. */
742
754
  & .crisp-datatable-refoption { display: flex; align-items: center; gap: var(--crisp-space-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
743
755
  & .crisp-datatable-refoption-avatar { flex-shrink: 0; }
744
756
  & .crisp-datatable-refoption--create { color: var(--crisp-fg-muted); }
745
757
  & .crisp-datatable-empty { padding: var(--crisp-space-8) var(--crisp-space-3); text-align: center; color: var(--crisp-fg-muted); font-size: var(--crisp-text-lg); }
746
- /* #826 -- the full-body loading state (a filter/sort re-query, or a fresh page boot), measured live on Attio's Companies grid on both
747
- triggers: icon+text centred in the row-body area, 10px gap, 14px/500
748
- weight/20px line-height, both icon and text in the SAME muted
749
- rgba(0,0,0,0.63) -- the same color-mix figure this file already uses
750
- for other muted text (e.g. -phone-dial). Distinct from the cold
751
- in-place row load (blank, no indicator) and the warm-navigation
752
- per-cell shimmer (#599) -- neither of those swaps the whole body. */
758
+ /* #826 -- the full-body loading state (a filter/sort re-query, or a
759
+ fresh page boot), measured live on Attio's Companies grid on both triggers: icon+text centred in the row-body area, 10px gap, 14px/500 weight/20px line-height, both icon and text in the SAME muted rgba(0,0,0,0.63) -- the same color-mix figure this file already uses for other muted text (e.g. -phone-dial). Distinct from the cold in-place row load (blank, no indicator) and the warm-navigation per-cell shimmer (#599) -- neither of those swaps the whole body. */
753
760
  & .crisp-datatable-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: var(--crisp-space-8) var(--crisp-space-3); color: color-mix(in srgb, var(--crisp-fg-primary) 63%, transparent); font-size: var(--crisp-text-lg); font-weight: var(--crisp-weight-medium); line-height: 20px; }
754
761
  & .crisp-datatable-loading .crisp-spinner { border-top-color: color-mix(in srgb, var(--crisp-fg-primary) 63%, transparent); }
755
- /* #579: click-to-expand overlay for a truncated cell -- a read-only,
756
- full-value card, settled live as click (not Attio's usual hover-expand) and measured position: absolute, unlike this file's
757
- floating chrome (Menu/Select popovers) which portals and escapes the
758
- scroll container. Deliberately NOT the edit-error pattern above
759
- (grow the row, block-level, never clipped): a virtualized grid
760
- assumes a fixed row height for its scroll math (owned by the grid
761
- core, not this cell), so growing a row here would fight it. Anchored
762
- to the SAME column width the cell itself renders at (measured:
763
- Attio's own overlay came out only slightly wider than the triggering cell's clientWidth -- the overshoot is this padding),
764
- wrapping onto as many lines as the value needs; it CAN be clipped by
765
- `.crisp-table-scroll`'s own `overflow: auto` if it grows past the visible viewport, same as the edit-error comment above already notes for any position:absolute escape -- unmeasured against Attio for this exact case, flagged rather than guessed. */
762
+ /* #579: click-to-expand overlay for a truncated cell -- a read-only, full-value card, settled live as click (not Attio's usual
763
+ hover-expand) and measured position: absolute, unlike this file's floating chrome (Menu/Select popovers) which portals and escapes the scroll container. Deliberately NOT the edit-error pattern above (grow the row, block-level, never clipped): a virtualized grid assumes a fixed row height for its scroll math (owned by the grid core, not this cell), so growing a row here would fight it. Anchored to the SAME column width the cell itself renders at (measured: Attio's own overlay came out only slightly wider than the
764
+ triggering cell's clientWidth -- the overshoot is this padding), wrapping onto as many lines as the value needs; it CAN be clipped by `.crisp-table-scroll`'s own `overflow: auto` if it grows past the
765
+ visible viewport, same as the edit-error comment above already
766
+ notes for any position:absolute escape -- unmeasured against Attio
767
+ for this exact case, flagged rather than guessed. */
766
768
  & td[data-cell-expanded] { overflow: visible; z-index: 7; }
767
- & .crisp-datatable-cell-overlay { position: absolute; inset-inline-start: 0; top: 0; width: 100%; box-sizing: border-box; padding: var(--crisp-space-2) var(--crisp-space-3); background: var(--crisp-bg-surface); border: 1px solid var(--crisp-bg-brand-solid); border-radius: 4px; font-family: var(--crisp-font-sans); font-size: var(--crisp-text-lg); line-height: 20px; font-weight: var(--crisp-weight-medium); color: var(--crisp-fg-primary); white-space: normal; word-break: break-word; cursor: default; }
769
+ & .crisp-datatable-cell-overlay {
770
+ position: absolute; inset-inline-start: 0; top: 0; width: 100%; box-sizing: border-box;
771
+ padding: var(--crisp-space-2) var(--crisp-space-3); background: var(--crisp-bg-surface);
772
+ border: 1px solid var(--crisp-bg-brand-solid); border-radius: 4px;
773
+ font-family: var(--crisp-font-sans); font-size: var(--crisp-text-lg); line-height: 20px; font-weight: var(--crisp-weight-medium);
774
+ color: var(--crisp-fg-primary); white-space: normal; word-break: break-word; cursor: default;
775
+ }
768
776
  /* fixed layout so column widths (and resize) are exact — like RecordsTable */
769
777
  & table { table-layout: fixed; }
770
- /* read-only/computed column marker (#596) -- sits just inside the resize handle, same absolute-positioned-against-the-th approach the handle itself uses, since th has zero padding and the button/inner row fills the whole cell with no room left for a trailing sibling. */
778
+ /* read-only/computed column marker (#596) -- sits just inside the
779
+ resize handle, same absolute-positioned-against-the-th approach the
780
+ handle itself uses, since th has zero padding and the button/inner
781
+ row fills the whole cell with no room left for a trailing sibling. */
771
782
  & .crisp-datatable-readonly { position: absolute; top: 50%; inset-inline-end: 11px; transform: translateY(-50%); color: var(--crisp-fg-muted); pointer-events: none; z-index: 5; }
772
783
  /* column resize grip */
773
784
  & .crisp-datatable-resize { position: absolute; top: 0; inset-inline-end: -3px; width: 9px; height: 100%; cursor: col-resize; z-index: 6; touch-action: none; }
774
785
  & .crisp-datatable-resize::after { content: ""; position: absolute; top: 0; inset-inline-start: 3px; width: 2px; height: 100%; background: var(--crisp-bg-brand-solid); opacity: 0; transition: opacity .12s; }
775
786
  & .crisp-datatable-resize:hover::after, & .crisp-datatable-resize[data-resizing]::after { opacity: 1; }
776
- /* crisp/#731 -- column drag-to-reorder. Measured live against Attio's
777
- own grid (the issue's own comment): the dragged header keeps full opacity and the plain `pointer` cursor throughout (Attio draws no ghost and no "grabbing" cursor of its own), so this adds nothing to `[data-dragging]` itself -- the ONLY new paint is the drop-indicator line, a 3px bar in the same measured brand blue the resize handle's
778
- own hover state (above) already uses, positioned on whichever edge of
779
- the hovered header the pointer is closer to. */
787
+ /* crisp/#731 -- column drag-to-reorder. Measured live against Attio's own grid (the issue's own comment): the dragged header keeps full
788
+ opacity and the plain `pointer` cursor throughout (Attio draws no
789
+ ghost and no "grabbing" cursor of its own), so this adds nothing to
790
+ `[data-dragging]` itself -- the ONLY new paint is the drop-indicator
791
+ line, a 3px bar in the same measured brand blue the resize handle's own hover state (above) already uses, positioned on whichever edge of the hovered header the pointer is closer to. */
780
792
  & th[data-dragging] { cursor: pointer; }
781
- & th[data-drop-before]::before, & th[data-drop-after]::after {
782
- content: ""; position: absolute; top: 0; width: 3px; height: 100%;
783
- background: var(--crisp-bg-brand-solid); z-index: 6; pointer-events: none;
784
- }
793
+ & th[data-drop-before]::before, & th[data-drop-after]::after { content: ""; position: absolute; top: 0; width: 3px; height: 100%; background: var(--crisp-bg-brand-solid); z-index: 6; pointer-events: none; }
785
794
  & th[data-drop-before]::before { inset-inline-start: -1.5px; }
786
795
  & th[data-drop-after]::after { inset-inline-end: -1.5px; }
787
796
  /* typed cells — entity (avatar + name), colour-coded tags, numbers, dates */
788
797
  & .crisp-datatable-entity { display: flex; align-items: center; gap: var(--crisp-space-1-5); min-width: 0; color: var(--crisp-fg-primary); font-weight: var(--crisp-weight-medium); }
789
- /* crisp/#601 supersession follow-up -- the same flex-row shape
790
- .crisp-datatable-entity gives its own avatar+name+actions, but
791
- structural only (no entity-specific colour/weight): lets
792
- onOpenComments/onOpenPreview compose alongside ANY column's own content (a custom render, or a non-entity built-in type), not just type: "entity"'s own inline rendering. */
798
+ /* crisp/#601 supersession follow-up -- the same flex-row shape .crisp-datatable-entity gives its own avatar+name+actions, but structural only (no entity-specific colour/weight): lets onOpenComments/onOpenPreview compose alongside ANY column's own
799
+ content (a custom render, or a non-entity built-in type), not just
800
+ type: "entity"'s own inline rendering. */
793
801
  & .crisp-datatable-cell-actions-row { display: flex; align-items: center; gap: var(--crisp-space-1-5); min-width: 0; width: 100%; }
794
- /* crisp/#601, G-050: measured LIVE (getComputedStyle on the name text,
795
- plain hover vs rest) that Attio's underline is unconditional, not a hover reveal -- identical at rest and on hover: text-decoration-color is rgba(0,0,0,0.09), a 9% tint, not the name's own full-contrast text
796
- colour. The previous :hover-gated, full-contrast rule here was itself
797
- unmeasured and wrong in two ways at once. */
802
+ /* crisp/#601, G-050: measured LIVE (getComputedStyle on the name text, plain hover vs rest) that Attio's underline is unconditional, not a
803
+ hover reveal -- identical at rest and on hover: text-decoration-color
804
+ is rgba(0,0,0,0.09), a 9% tint, not the name's own full-contrast text colour. The previous :hover-gated, full-contrast rule here was itself unmeasured and wrong in two ways at once. */
798
805
  & .crisp-datatable-entity-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--crisp-fg-primary) 9%, transparent); }
799
806
  & button.crisp-datatable-entity-name--link { margin: 0; padding: 0; border: none; background: none; font: inherit; color: inherit; letter-spacing: inherit; text-align: start; cursor: pointer; max-width: 100%; }
800
- /* crisp/#601, G-048: two 20px ghost icons, right-aligned in the primary
801
- column, revealed on ROW hover (the issue's own title says "row
802
- hover", and a live check confirmed hovering well past the name -- not just the icons' own hit target -- still reveals them) or
803
- keyboard focus. Measured live: border-radius 6px, icon colour
804
- rgba(0,0,0,0.55) at rest, darkening to the full text colour with a
805
- rgba(0,0,0,0.04) background on the icon's OWN hover -- both expressed as color-mix against fgPrimary so they stay correct in dark mode instead of a literal black that would invert. */
807
+ /* crisp/#601, G-048: two 20px ghost icons, right-aligned in the primary column, revealed on ROW hover (the issue's own title says "row
808
+ hover", and a live check confirmed hovering well past the name --
809
+ not just the icons' own hit target -- still reveals them) or keyboard focus. Measured live: border-radius 6px, icon colour rgba(0,0,0,0.55) at rest, darkening to the full text colour with a rgba(0,0,0,0.04) background on the icon's OWN hover -- both
810
+ expressed as color-mix against fgPrimary so they stay correct in
811
+ dark mode instead of a literal black that would invert. */
806
812
  & .crisp-datatable-entity-actions { display: flex; align-items: center; gap: var(--crisp-space-1-5); margin-inline-start: auto; flex-shrink: 0; opacity: 0; }
807
813
  & tr:hover .crisp-datatable-entity-actions, & .crisp-datatable-entity-actions:focus-within { opacity: 1; }
808
814
  & .crisp-datatable-entity-action { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin: 0; padding: 0; border: none; border-radius: var(--crisp-radius-sm); background: none; font-family: inherit; color: color-mix(in srgb, var(--crisp-fg-primary) 55%, transparent); cursor: pointer; flex-shrink: 0; }
809
815
  & .crisp-datatable-entity-action:hover { background: color-mix(in srgb, var(--crisp-fg-primary) 4%, transparent); color: var(--crisp-fg-primary); }
810
816
  & .crisp-datatable-avatar { width: var(--crisp-size-icon); height: var(--crisp-size-icon); border-radius: var(--crisp-radius-sm); flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; line-height: 1; font-weight: var(--crisp-weight-semibold); text-transform: uppercase; color: var(--crisp-fg-on-brand); background: var(--crisp-bg-brand-solid); }
811
- & .crisp-datatable-avatar[data-tone="success"] { background: var(--crisp-bg-success); }
812
- & .crisp-datatable-avatar[data-tone="warning"] { background: var(--crisp-bg-warning); }
813
- & .crisp-datatable-avatar[data-tone="danger"] { background: var(--crisp-bg-danger); }
814
- & .crisp-datatable-avatar[data-tone="purple"] { background: var(--crisp-bg-purple); }
815
- & .crisp-datatable-avatar[data-tone="cyan"] { background: var(--crisp-bg-cyan); }
816
- & .crisp-datatable-avatar[data-tone="orange"] { background: var(--crisp-bg-orange); }
817
+ & .crisp-datatable-avatar[data-tone="success"] { background: var(--crisp-bg-success); } & .crisp-datatable-avatar[data-tone="warning"] { background: var(--crisp-bg-warning); } & .crisp-datatable-avatar[data-tone="danger"] { background: var(--crisp-bg-danger); } & .crisp-datatable-avatar[data-tone="purple"] { background: var(--crisp-bg-purple); } & .crisp-datatable-avatar[data-tone="cyan"] { background: var(--crisp-bg-cyan); } & .crisp-datatable-avatar[data-tone="orange"] { background: var(--crisp-bg-orange); }
817
818
  & .crisp-datatable-avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
818
819
  & .crisp-datatable-tags { display: flex; align-items: center; gap: var(--crisp-space-1); overflow: hidden; }
819
820
  & .crisp-datatable-tag { display: inline-flex; align-items: center; height: var(--crisp-size-chip); padding: 0 var(--crisp-space-1); border-radius: var(--crisp-radius-chip); font-size: var(--crisp-text-lg); line-height: 20px; font-weight: var(--crisp-weight-medium); white-space: nowrap; background: color-mix(in srgb, var(--crisp-fg-primary) 6%, transparent); color: color-mix(in srgb, var(--crisp-fg-primary) 82%, transparent); }
@@ -826,58 +827,74 @@
826
827
  & .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)); }
827
828
  & .crisp-datatable-num { font-variant-numeric: tabular-nums; }
828
829
  & .crisp-datatable-muted { color: var(--crisp-fg-muted); }
829
- /* crisp#822 -- a date/datetime cell's danger/overdue tone: same token as
830
- TasksTable's own overdue due-date (crisp#462), plain text colour, no fill/weight change. */
830
+ /* crisp#822 -- a date/datetime cell's danger/overdue tone: same token as TasksTable's own overdue due-date (crisp#462), plain text colour, no
831
+ fill/weight change. */
831
832
  & .crisp-datatable-danger { color: var(--crisp-fg-danger); }
832
- /* url/email cell types (#654) -- same measured values as RecordsTable's
833
- own .crisp-recordstable-link, which this mirrors: no underline at
834
- rest, underline on hover, own-colour text rather than a browser-blue
835
- link. */
833
+ /* 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. */
836
834
  & .crisp-datatable-link { color: var(--crisp-fg-primary); text-decoration: none; overflow: hidden; text-overflow: ellipsis; }
837
835
  & .crisp-datatable-link:hover { text-decoration: underline; }
838
- /* phone cell type/editor (#765) -- measured live: the dial-code prefix
839
- is a muted rgba(0,0,0,0.63) at 14px, matching every other muted-text
840
- value already measured elsewhere in this file. */
836
+ /* phone cell type/editor (#765) -- measured live: the dial-code prefix is a muted rgba(0,0,0,0.63) at 14px, matching every other muted-text value already measured elsewhere in this file. */
841
837
  & .crisp-datatable-phone { display: inline-flex; align-items: center; gap: var(--crisp-space-1); }
842
838
  & .crisp-datatable-phone-dial { color: color-mix(in srgb, var(--crisp-fg-primary) 63%, transparent); }
843
839
  & .crisp-datatable-phone-editor { display: flex; align-items: center; gap: var(--crisp-space-1); height: var(--crisp-size-tableRow); padding: 0 var(--crisp-space-2); }
844
840
  & .crisp-datatable-phone-editor input { flex: 1; min-width: 0; }
845
- /* country-picker option row (#842) -- confirmed live: Attio's own popover is plain text, no flag anywhere (not the option row, not the closed trigger), name opaque + dial code muted rgba(0,0,0,0.63) -- the SAME color-mix figure as -phone-dial above. The internal name/dial gap wasn't independently measured this pass (Attio's own two <div>s gave no exact number); reused space["1"], the same gap -phone already uses for its own flag/dial/digits row. */
841
+ /* country-picker option row (#842) -- confirmed live: Attio's own popover
842
+ is plain text, no flag anywhere (not the option row, not the closed
843
+ trigger), name opaque + dial code muted rgba(0,0,0,0.63) -- the SAME
844
+ color-mix figure as -phone-dial above. The internal name/dial gap
845
+ wasn't independently measured this pass (Attio's own two <div>s gave
846
+ no exact number); reused space["1"], the same gap -phone already uses
847
+ for its own flag/dial/digits row. */
846
848
  & .crisp-datatable-country-option { display: flex; align-items: center; gap: var(--crisp-space-1); }
847
849
  & .crisp-datatable-country-dial { color: color-mix(in srgb, var(--crisp-fg-primary) 63%, transparent); }
848
850
  /* multi-value phone (#816) -- confirmed live (a real custom "Multiple
849
851
  values" Phone Number attribute, and the built-in People "Phone
850
- numbers" field): the collapsed cell is a 4px-gap flex row of real tel: links in a measured link blue (~rgb(59,108,232) pixel-sampled; reused as the closest already-tokened blue, brand600, rather than adding a third blue token for a delta this small), underlined, UNLIKE the single-value cell above (plain text, no link, no underline) -- multi-value is the one shape Attio makes into a real link. The cell hard-clips on overflow (no ellipsis -- confirmed live, a second value can end mid-digit with no "..."). */
852
+ numbers" field): the collapsed cell is a 4px-gap flex row of real
853
+ tel: links in a measured link blue (~rgb(59,108,232) pixel-sampled;
854
+ reused as the closest already-tokened blue, brand600, rather than
855
+ adding a third blue token for a delta this small), underlined,
856
+ UNLIKE the single-value cell above (plain text, no link, no
857
+ underline) -- multi-value is the one shape Attio makes into a real
858
+ link. The cell hard-clips on overflow (no ellipsis -- confirmed
859
+ live, a second value can end mid-digit with no "..."). */
851
860
  & .crisp-datatable-phone-multi { display: inline-flex; align-items: center; gap: var(--crisp-space-1); overflow: hidden; }
852
861
  & .crisp-datatable-phone-link { color: var(--crisp-bg-brand-solid); text-decoration: underline; white-space: nowrap; }
853
- /* multi-value editor (#816) -- confirmed live: a stack of committed- value rows (32px = size.menuRow, 5px 8px padding, 8px gap between the grip/value/actions, 16px icons) above one ALWAYS-blank trailing DataPhoneEditor-shaped row -- that blank row is the only "add
854
- another" affordance, there's no separate button for it. The
855
- copy/delete pair reuses .crisp-datatable-entity-action's own hover-reveal chrome (not independently re-measured as its own hit target this pass, only the 16px icon glyphs were). */
862
+ /* multi-value editor (#816) -- confirmed live: a stack of committed-
863
+ value rows (32px = size.menuRow, 5px 8px padding, 8px gap between
864
+ the grip/value/actions, 16px icons) above one ALWAYS-blank trailing
865
+ DataPhoneEditor-shaped row -- that blank row is the only "add
866
+ another" affordance, there's no separate button for it. The copy/delete pair reuses .crisp-datatable-entity-action's own
867
+ hover-reveal chrome (not independently re-measured as its own hit
868
+ target this pass, only the 16px icon glyphs were). */
856
869
  & .crisp-datatable-phone-multi-editor { display: flex; flex-direction: column; }
857
870
  & .crisp-datatable-phone-multi-row { display: flex; align-items: center; gap: var(--crisp-space-2); height: var(--crisp-size-menuRow); padding: 5px var(--crisp-space-2); }
858
871
  & .crisp-datatable-phone-multi-row .crisp-datatable-phone-link { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
859
872
  & .crisp-datatable-phone-multi-grip { color: var(--crisp-fg-muted); flex-shrink: 0; cursor: grab; }
860
873
  & .crisp-datatable-phone-multi-actions { display: flex; align-items: center; gap: var(--crisp-space-1); margin-inline-start: auto; flex-shrink: 0; opacity: 0; }
861
- & .crisp-datatable-phone-multi-row:hover .crisp-datatable-phone-multi-actions, & .crisp-datatable-phone-multi-actions:focus-within { opacity: 1; }
874
+ & .crisp-datatable-phone-multi-row:hover .crisp-datatable-phone-multi-actions,
875
+ & .crisp-datatable-phone-multi-actions:focus-within { opacity: 1; }
862
876
  & .crisp-datatable-phone-multi-action { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin: 0; padding: 0; border: none; border-radius: var(--crisp-radius-sm); background: none; font-family: inherit; color: color-mix(in srgb, var(--crisp-fg-primary) 55%, transparent); cursor: pointer; flex-shrink: 0; }
863
877
  & .crisp-datatable-phone-multi-action:hover { background: color-mix(in srgb, var(--crisp-fg-primary) 4%, transparent); color: var(--crisp-fg-primary); }
864
878
  /* datetime cell editor (#762) -- DatePickerField + TimePicker side by side. */
865
879
  & .crisp-datatable-datetime-editor { display: flex; align-items: center; gap: var(--crisp-space-1); height: var(--crisp-size-tableRow); padding: 0 var(--crisp-space-2); }
866
- /* rating cell type/editor (#760) -- measured live: 16px stars on an 18px pitch (a 2px gap), an empty star at rgba(0,0,0,0.1), a committed/filled star at brand600 (--crisp-bg-brand-solid, an exact match to the measured #266df0), and a distinct hover-preview colour -- rgb(33,91,196) -- that's close to but NOT brand700/bgBrandSolidPressed
867
- (#1f5fd6); kept as its own literal rather than forced onto that token,
868
- since the two were measured stable and different. The read-only svg
869
- and the editable button's own inner svg both carry the crisp-datatable-rating-star class on the svg itself (not the button), so one set of fill rules covers both -- the button only adds its own reset + cursor via a separate -btn class. */
880
+ /* rating cell type/editor (#760) -- measured live: 16px stars on an
881
+ 18px pitch (a 2px gap), an empty star at rgba(0,0,0,0.1), a
882
+ committed/filled star at brand600 (--crisp-bg-brand-solid, an exact
883
+ match to the measured #266df0), and a distinct hover-preview colour
884
+ -- rgb(33,91,196) -- that's close to but NOT brand700/bgBrandSolidPressed (#1f5fd6); kept as its own literal rather than forced onto that token, since the two were measured stable and different. The read-only svg and the editable button's own inner svg both carry the
885
+ crisp-datatable-rating-star class on the svg itself (not the
886
+ button), so one set of fill rules covers both -- the button only
887
+ adds its own reset + cursor via a separate -btn class. */
870
888
  & .crisp-datatable-rating { display: inline-flex; align-items: center; gap: 2px; }
871
889
  & .crisp-datatable-rating-star { display: block; }
872
890
  & .crisp-datatable-rating-star path { fill: rgba(0, 0, 0, 0.1); }
873
891
  & .crisp-datatable-rating-star[data-filled] path { fill: var(--crisp-bg-brand-solid); }
874
892
  & .crisp-datatable-rating-star[data-hovering] path { fill: #215bc4; }
875
893
  & .crisp-datatable-rating-star-btn { display: inline-flex; padding: 0; margin: 0; border: none; background: none; font-family: inherit; cursor: pointer; }
876
- /* row drag-to-reorder -- a Settings > Objects > Attributes screen measures a leading 20px grip column, a 16px grip icon, and the row's own
877
- hairline doubling as the drop indicator (it tints toward the brand
878
- colour as the active drop target). The affordance + geometry are
879
- 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
880
- pointer-events implementation. */
894
+ /* row drag-to-reorder -- a Settings > Objects > Attributes screen measures
895
+ a leading 20px grip column, a 16px grip icon, and the row's own hairline doubling as the drop indicator (it tints toward the brand colour as the active drop target). The affordance + geometry are measured; the drag MECHANISM is crisp's existing house idiom -- HTML5
896
+ draggable + dataTransfer, the same one column reorder already uses
897
+ (RecordsTable's reorderColumn) -- not a proprietary pointer-events implementation. */
881
898
  & .crisp-datatable-col-grip { width: 20px; padding: 0; text-align: center; }
882
899
  & .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; }
883
900
  & .crisp-datatable-grip:active { cursor: grabbing; }