viewkitjs 0.26.0 → 0.27.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/CHANGELOG.md +24 -0
- package/MIGRATION.md +84 -6
- package/package.json +1 -1
- package/views/dist/contract.d.ts +171 -1
- package/views/dist/contract.js +162 -0
- package/views/dist/controls/compound-editor/map-parts-body.js +2 -1
- package/views/dist/controls/compound-editor/name-parts.js +10 -2
- package/views/dist/controls/compound-editor/place.d.ts +2 -1
- package/views/dist/controls/compound-editor/place.js +2 -0
- package/views/dist/controls/controls.d.ts +8 -0
- package/views/dist/controls/controls.js +8 -0
- package/views/dist/controls/index.d.ts +16 -0
- package/views/dist/controls/index.js +16 -0
- package/views/dist/controls/internal/editor-parts.d.ts +40 -0
- package/views/dist/controls/internal/editor-parts.js +43 -0
- package/views/dist/controls/links-editor/links-editor.d.ts +78 -0
- package/views/dist/controls/links-editor/links-editor.js +308 -0
- package/views/dist/controls/links-editor/links.d.ts +62 -0
- package/views/dist/controls/links-editor/links.js +50 -0
- package/views/dist/controls/links-editor/map-links-body.d.ts +10 -0
- package/views/dist/controls/links-editor/map-links-body.js +71 -0
- package/views/dist/controls/links-editor/tokens.d.ts +71 -0
- package/views/dist/controls/links-editor/tokens.js +20 -0
- package/views/dist/controls/links-editor/words.d.ts +56 -0
- package/views/dist/controls/links-editor/words.js +33 -0
- package/views/dist/controls/links-editor.css +132 -0
- package/views/dist/controls/number-editor/format.d.ts +31 -0
- package/views/dist/controls/number-editor/format.js +79 -0
- package/views/dist/controls/number-editor/looks.d.ts +14 -0
- package/views/dist/controls/number-editor/looks.js +17 -0
- package/views/dist/controls/number-editor/map-number-body.d.ts +16 -0
- package/views/dist/controls/number-editor/map-number-body.js +57 -0
- package/views/dist/controls/number-editor/number-editor.d.ts +72 -0
- package/views/dist/controls/number-editor/number-editor.js +202 -0
- package/views/dist/controls/number-editor/tokens.d.ts +28 -0
- package/views/dist/controls/number-editor/tokens.js +9 -0
- package/views/dist/controls/number-editor/words.d.ts +23 -0
- package/views/dist/controls/number-editor/words.js +13 -0
- package/views/dist/controls/number-editor.css +37 -0
- package/views/dist/controls/number-field/number-field.js +57 -5
- package/views/dist/controls/radio/radio.d.ts +33 -0
- package/views/dist/controls/radio/radio.js +19 -0
- package/views/dist/controls/radio/tokens.d.ts +127 -0
- package/views/dist/controls/radio/tokens.js +34 -0
- package/views/dist/controls/radio.css +104 -0
- package/views/dist/controls/text-editor/phone-number.d.ts +4 -0
- package/views/dist/controls/text-editor/phone-number.js +20 -0
- package/views/dist/controls/text-editor/text-editor.js +2 -19
- package/views/dist/controls/tokens.js +10 -0
- package/views/dist/controls/values-editor/looks.d.ts +16 -0
- package/views/dist/controls/values-editor/looks.js +19 -0
- package/views/dist/controls/values-editor/map-values-body.d.ts +12 -0
- package/views/dist/controls/values-editor/map-values-body.js +71 -0
- package/views/dist/controls/values-editor/tokens.d.ts +132 -0
- package/views/dist/controls/values-editor/tokens.js +35 -0
- package/views/dist/controls/values-editor/values-editor.d.ts +62 -0
- package/views/dist/controls/values-editor/values-editor.js +435 -0
- package/views/dist/controls/values-editor/values.d.ts +71 -0
- package/views/dist/controls/values-editor/values.js +59 -0
- package/views/dist/controls/values-editor/words.d.ts +50 -0
- package/views/dist/controls/values-editor/words.js +29 -0
- package/views/dist/controls/values-editor.css +207 -0
- package/views/dist/controls/views-list/looks.d.ts +13 -0
- package/views/dist/controls/views-list/looks.js +12 -0
- package/views/dist/controls/views-list/map-views-list-body.d.ts +19 -0
- package/views/dist/controls/views-list/map-views-list-body.js +65 -0
- package/views/dist/controls/views-list/rules.d.ts +72 -0
- package/views/dist/controls/views-list/rules.js +4 -0
- package/views/dist/controls/views-list/tokens.d.ts +11 -0
- package/views/dist/controls/views-list/tokens.js +5 -0
- package/views/dist/controls/views-list/views-list.d.ts +44 -0
- package/views/dist/controls/views-list/views-list.js +57 -0
- package/views/dist/controls/views-list/words.d.ts +22 -0
- package/views/dist/controls/views-list/words.js +3 -0
- package/views/dist/controls/views-list.css +8 -0
- package/views/dist/editors/NumberEditor.js +3 -1
- package/views/dist/grid/chrome/GridCellEditors.js +1 -1
- package/views/dist/grid/chrome/GridDateEditor.d.ts +3 -1
- package/views/dist/grid/chrome/GridDateEditor.js +2 -1
- package/views/dist/looks/index.d.ts +3 -0
- package/views/dist/looks/index.js +3 -0
- package/views/dist/looks/pieces.js +6 -0
- package/views/dist/provider/components.d.ts +4 -0
- package/views/dist/styles.css +432 -2
- package/views/dist/styles.unlayered.css +432 -2
- package/views/docs/contract.md +10 -8
- package/views/docs/controls/links-editor.md +25 -0
- package/views/docs/controls/number-editor.md +12 -0
- package/views/docs/controls/radio.md +39 -0
- package/views/docs/controls/values-editor.md +40 -0
- package/views/docs/controls/views-list.md +8 -0
- package/views/docs/reference/controls.md +117 -5
- package/views/docs/reference/looks.md +9 -2
- package/views/docs/reference/react.md +2 -2
|
@@ -128,7 +128,7 @@ function AnchoredEditor({ ctx }) {
|
|
|
128
128
|
? gridClearRefusal(col, ctx.listConfig, messages)
|
|
129
129
|
: refusal(ymd, cellPrevPayload(col, baseline)), onCommit: (ymd) => onCommitCell(row, rowId, col.id, cellPrevPayload(col, baseline), ymd, ymd === "" || gridDateDrawsAtOnce(col)
|
|
130
130
|
? undefined
|
|
131
|
-
: { overlay: false }), onCancel: onCancel, onTab: ctx.onTab }));
|
|
131
|
+
: { overlay: false }), onCancel: onCancel, onTab: ctx.onTab, onEnter: ctx.onEnter }));
|
|
132
132
|
}
|
|
133
133
|
return null;
|
|
134
134
|
}
|
|
@@ -15,7 +15,7 @@ export declare function dayColumnKeepsBrowserClock<Row>(col: ListColumn<Row>): b
|
|
|
15
15
|
* payload is the day. The column's Show-time setting is display only. A cleared
|
|
16
16
|
* date commits "", which the app's write maps to its empty value.
|
|
17
17
|
*/
|
|
18
|
-
export declare function GridDateEditor({ title, initial, dayOnly, browserClock, clearable, seed, refuse, onCommit, onCancel, onTab, }: {
|
|
18
|
+
export declare function GridDateEditor({ title, initial, dayOnly, browserClock, clearable, seed, refuse, onCommit, onCancel, onTab, onEnter, }: {
|
|
19
19
|
/** The field's name: the sheet's title on a phone. */
|
|
20
20
|
title: ReactNode;
|
|
21
21
|
/** The stored value (ISO string) — selects the day + opening month. */
|
|
@@ -38,4 +38,6 @@ export declare function GridDateEditor({ title, initial, dayOnly, browserClock,
|
|
|
38
38
|
refuse?: (value: string) => string | null;
|
|
39
39
|
/** After a Tab out of the panel saves: move to the next cell, or the one before on Shift-Tab. */
|
|
40
40
|
onTab?: (backwards: boolean) => void;
|
|
41
|
+
/** After an Enter saves: move one row down, as a text or number cell does. */
|
|
42
|
+
onEnter?: () => void;
|
|
41
43
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -10,7 +10,7 @@ import { useGridEditSession } from "./grid-edit-session.js";
|
|
|
10
10
|
export function dayColumnKeepsBrowserClock(col) {
|
|
11
11
|
return col.field?.type !== "date" && temporalKindOf(col) === "date";
|
|
12
12
|
}
|
|
13
|
-
export function GridDateEditor({ title, initial, dayOnly = false, browserClock = false, clearable = false, seed, refuse, onCommit, onCancel, onTab, }) {
|
|
13
|
+
export function GridDateEditor({ title, initial, dayOnly = false, browserClock = false, clearable = false, seed, refuse, onCommit, onCancel, onTab, onEnter, }) {
|
|
14
14
|
const editorRef = useRef(null);
|
|
15
15
|
const anchorRef = useRef(null);
|
|
16
16
|
const place = useGridBodyPlace("date", anchorRef);
|
|
@@ -21,6 +21,7 @@ export function GridDateEditor({ title, initial, dayOnly = false, browserClock =
|
|
|
21
21
|
onCommit: (value) => onCommit(value),
|
|
22
22
|
onCancel,
|
|
23
23
|
onTab,
|
|
24
|
+
onEnter,
|
|
24
25
|
});
|
|
25
26
|
return (_jsxs(_Fragment, { children: [_jsx("span", { ref: anchorRef, "aria-hidden": true, className: "pointer-events-none absolute inset-0" }), _jsx(EditorPanel, { session: session, title: title, anchor: anchorRef, align: "start", sideOffset: place, initialFocus: false, panelData: { "data-slot": "vk-grid-editor" }, onPanelClick: (e) => e.stopPropagation(), chrome: "menu", className: "z-90 w-auto", children: _jsx(EditorClockContext.Provider, { value: browserClock ? "browser" : "conventions", children: _jsx(DateEditor, { ref: editorRef, label: typeof title === "string" ? title : undefined, initial: initial, dayOnly: dayOnly, clearable: clearable, seed: seed, focusDate: !sheet, onRequestClose: close }) }) })] }));
|
|
26
27
|
}
|
|
@@ -27,6 +27,9 @@ export { LIST_LOOKS, type ListOptionId } from "../controls/list/looks.js";
|
|
|
27
27
|
export { PICKER_LOOKS, type PickerOptionId } from "../controls/picker/looks.js";
|
|
28
28
|
export { AVATAR_LOOKS, type AvatarLookOptionId } from "../controls/avatar/looks.js";
|
|
29
29
|
export { MENU_LIST_CARD_FRAME } from "../controls/menu-list/looks.js";
|
|
30
|
+
export { VIEWS_LIST_LOOKS, type ViewsListOptionId } from "../controls/views-list/looks.js";
|
|
30
31
|
export { TEXT_EDITOR_LOOKS, type TextEditorLookOptionId } from "../controls/text-editor/looks.js";
|
|
31
32
|
export { DATE_EDITOR_LOOKS, type DateEditorLookOptionId } from "../controls/date-editor/looks.js";
|
|
32
33
|
export { COMPOUND_EDITOR_LOOKS, type CompoundEditorOptionId } from "../controls/compound-editor/looks.js";
|
|
34
|
+
export { NUMBER_EDITOR_LOOKS, type NumberEditorOptionId } from "../controls/number-editor/looks.js";
|
|
35
|
+
export { VALUES_EDITOR_LOOKS, type ValuesEditorOptionId } from "../controls/values-editor/looks.js";
|
|
@@ -23,6 +23,9 @@ export { LIST_LOOKS } from "../controls/list/looks.js";
|
|
|
23
23
|
export { PICKER_LOOKS } from "../controls/picker/looks.js";
|
|
24
24
|
export { AVATAR_LOOKS } from "../controls/avatar/looks.js";
|
|
25
25
|
export { MENU_LIST_CARD_FRAME } from "../controls/menu-list/looks.js";
|
|
26
|
+
export { VIEWS_LIST_LOOKS } from "../controls/views-list/looks.js";
|
|
26
27
|
export { TEXT_EDITOR_LOOKS } from "../controls/text-editor/looks.js";
|
|
27
28
|
export { DATE_EDITOR_LOOKS } from "../controls/date-editor/looks.js";
|
|
28
29
|
export { COMPOUND_EDITOR_LOOKS } from "../controls/compound-editor/looks.js";
|
|
30
|
+
export { NUMBER_EDITOR_LOOKS } from "../controls/number-editor/looks.js";
|
|
31
|
+
export { VALUES_EDITOR_LOOKS } from "../controls/values-editor/looks.js";
|
|
@@ -20,9 +20,12 @@ import { MENU_LIST_LOOKS } from "../controls/menu-list/looks.js";
|
|
|
20
20
|
import { AVATAR_LOOKS } from "../controls/avatar/looks.js";
|
|
21
21
|
import { LIST_LOOKS } from "../controls/list/looks.js";
|
|
22
22
|
import { PICKER_LOOKS } from "../controls/picker/looks.js";
|
|
23
|
+
import { VIEWS_LIST_LOOKS } from "../controls/views-list/looks.js";
|
|
23
24
|
import { TEXT_EDITOR_LOOKS } from "../controls/text-editor/looks.js";
|
|
24
25
|
import { DATE_EDITOR_LOOKS } from "../controls/date-editor/looks.js";
|
|
25
26
|
import { COMPOUND_EDITOR_LOOKS } from "../controls/compound-editor/looks.js";
|
|
27
|
+
import { NUMBER_EDITOR_LOOKS } from "../controls/number-editor/looks.js";
|
|
28
|
+
import { VALUES_EDITOR_LOOKS } from "../controls/values-editor/looks.js";
|
|
26
29
|
export const LOOKS = [
|
|
27
30
|
GRID_LOOKS,
|
|
28
31
|
BUTTON_LOOKS,
|
|
@@ -46,7 +49,10 @@ export const LOOKS = [
|
|
|
46
49
|
LIST_LOOKS,
|
|
47
50
|
PICKER_LOOKS,
|
|
48
51
|
AVATAR_LOOKS,
|
|
52
|
+
VIEWS_LIST_LOOKS,
|
|
49
53
|
TEXT_EDITOR_LOOKS,
|
|
50
54
|
DATE_EDITOR_LOOKS,
|
|
51
55
|
COMPOUND_EDITOR_LOOKS,
|
|
56
|
+
NUMBER_EDITOR_LOOKS,
|
|
57
|
+
VALUES_EDITOR_LOOKS,
|
|
52
58
|
];
|
|
@@ -650,6 +650,10 @@ export type ViewsNumberBodyProps = {
|
|
|
650
650
|
autoFocus: boolean;
|
|
651
651
|
/** `phone`: it stands in a sheet; draw no ✕, ✓ or Cancel of your own (the sheet holds them). */
|
|
652
652
|
form: "computer" | "phone";
|
|
653
|
+
/** In the phone's sheet: tell it you stand on a step of your own (money's currencies, a number's units), and hand
|
|
654
|
+
* `null` once you are back. The sheet's head shows the step's title, Back in ✕'s place and ✓; Escape calls `onBack`;
|
|
655
|
+
* a swipe still closes the whole editor, as ✕ does. Absent on a computer. */
|
|
656
|
+
onStepChange?: (step: ViewsBodyStep | null) => void;
|
|
653
657
|
};
|
|
654
658
|
export type ViewsCollapseProps = {
|
|
655
659
|
open: boolean;
|
package/views/dist/styles.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! viewkitjs 0.
|
|
1
|
+
/*! viewkitjs 0.27.0 · viewkitjs/views/styles.css: ViewKit's look, its defaults the Outright look */
|
|
2
2
|
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
3
3
|
@layer theme, base, components, utilities;
|
|
4
4
|
@layer base {
|
|
@@ -2006,6 +2006,123 @@ textarea.o-input-control.o-input-lines { flex: none; min-height: 0; max-height:
|
|
|
2006
2006
|
.o-keys { display: inline-flex; align-items: center; gap: calc(var(--vk-spacing) * 0.75); font: inherit; }
|
|
2007
2007
|
.o-keys-then { margin: 0 calc(var(--vk-spacing) * 1); font-size: var(--vk-font-size-xs); color: var(--vk-fg-subtlest); }
|
|
2008
2008
|
|
|
2009
|
+
.o-links-editor { position: relative; display: flex; flex-direction: column; min-width: 0; color: var(--vk-fg); font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm)); }
|
|
2010
|
+
.o-links-editor:focus { outline: none; }
|
|
2011
|
+
|
|
2012
|
+
/* ── The search: the shared line across the popup's top, 6 above and below, 4 over the list ─ */
|
|
2013
|
+
.o-links-editor-search { --popup-line-pad-block: calc(var(--vk-spacing) * 1.5); --popup-line-under: var(--vk-spacing); }
|
|
2014
|
+
.o-links-editor-search > svg { flex: none; width: calc(var(--vk-spacing) * 3.75); height: calc(var(--vk-spacing) * 3.75); }
|
|
2015
|
+
.o-input-control.o-links-editor-input { flex: 1; min-width: calc(var(--vk-spacing) * 16); font-size: var(--vk-font-size-sm); }
|
|
2016
|
+
|
|
2017
|
+
/* ── The one list: 10½ rows at most, scrolling as one ─ */
|
|
2018
|
+
/* It scrolls with no bar at all (Mihai, 18 Nov 2026): the browser's own, which macOS draws taking room with a mouse plugged in, hidden. */
|
|
2019
|
+
.o-links-editor-list { display: flex; flex-direction: column; min-height: 0; max-height: calc(10.5 * var(--vk-spacing) * 8); overflow-y: auto; overscroll-behavior: contain; outline: none; scrollbar-width: none; }
|
|
2020
|
+
.o-links-editor-list::-webkit-scrollbar { display: none; }
|
|
2021
|
+
/* A field's list, the Picker in its own Popover: its rows scroll with no bar too, as the editor's list does. */
|
|
2022
|
+
.o-links-editor-pop .o-picker-rows, .o-links-editor-shown .o-picker-rows { scrollbar-width: none; }
|
|
2023
|
+
.o-links-editor-pop .o-picker-rows::-webkit-scrollbar, .o-links-editor-shown .o-picker-rows::-webkit-scrollbar { display: none; }
|
|
2024
|
+
.o-links-editor-list > *, .o-links-editor-adds > * { flex: none; }
|
|
2025
|
+
.o-links-editor-list[data-head] { scroll-padding-top: calc(var(--vk-spacing) * 7); }
|
|
2026
|
+
.o-links-editor-adds { display: flex; flex-direction: column; }
|
|
2027
|
+
|
|
2028
|
+
/* The columns' names and a linked record's row: the same columns, 12 apart. */
|
|
2029
|
+
.o-links-editor-head, .o-links-editor-row { display: flex; align-items: center; gap: calc(var(--vk-spacing) * 3); box-sizing: border-box; min-width: 0; padding: 0 calc(var(--vk-spacing) * 1) 0 calc(var(--vk-spacing) * 2); }
|
|
2030
|
+
.o-links-editor-head {
|
|
2031
|
+
position: sticky; top: 0; z-index: 1; min-height: calc(var(--vk-spacing) * 7);
|
|
2032
|
+
background-color: var(--vk-overlay); color: var(--vk-fg-subtlest); font-size: var(--vk-font-size-xs); line-height: calc(var(--vk-font-size-xs) * var(--vk-line-height-xs));
|
|
2033
|
+
}
|
|
2034
|
+
.o-links-editor-row { min-height: calc(var(--vk-spacing) * 8); }
|
|
2035
|
+
.o-radio-group.o-links-editor-rows, .o-links-editor-rows { display: flex; flex-direction: column; gap: 0; }
|
|
2036
|
+
.o-links-editor-who { flex: 1 1 0; display: flex; align-items: center; gap: calc(var(--vk-spacing) * 2); min-width: calc(var(--vk-spacing) * 38); }
|
|
2037
|
+
.o-links-editor-who > .o-avatar { flex: none; }
|
|
2038
|
+
.o-links-editor-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
2039
|
+
.o-links-editor-cell { flex: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
2040
|
+
.o-links-editor-row > .o-links-editor-cell { color: var(--vk-fg-subtle); }
|
|
2041
|
+
.o-links-editor-cell[data-kind="several"] { width: calc(var(--vk-spacing) * 48); }
|
|
2042
|
+
.o-links-editor-cell:is([data-kind="one"], [data-kind="yes-no"]) { width: calc(var(--vk-spacing) * 10); }
|
|
2043
|
+
/* With one field its column holds its short button, 192 whatever its kind. */
|
|
2044
|
+
.o-links-editor[data-links-fields="one"] .o-links-editor-cell { width: calc(var(--vk-spacing) * 48); }
|
|
2045
|
+
.o-links-editor-lead { flex: none; display: flex; justify-content: center; width: calc(var(--vk-spacing) * 8); }
|
|
2046
|
+
.o-links-editor-head > .o-links-editor-lead { display: block; text-align: center; }
|
|
2047
|
+
.o-links-editor-lead .o-radio-ring { margin-top: 0; }
|
|
2048
|
+
.o-links-editor-end { flex: none; display: flex; justify-content: center; width: calc(var(--vk-spacing) * 6); }
|
|
2049
|
+
|
|
2050
|
+
/* One field: a short quiet button, as wide as its words and its chevron, its words where the column's name starts; none, the
|
|
2051
|
+
field's name in the faintest words; its chevron turns while its list is open. */
|
|
2052
|
+
.o-links-editor-cell:has(> .o-links-editor-short) { overflow: visible; }
|
|
2053
|
+
.o-links-editor-short.o-button { max-width: calc(100% + var(--vk-spacing) * 2); margin-left: calc(var(--vk-spacing) * -2); font-weight: var(--vk-font-weight-normal); color: var(--vk-fg-subtle); }
|
|
2054
|
+
.o-links-editor-short > [data-slot="vk-button-label"] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
2055
|
+
.o-links-editor-short[data-none] { color: var(--vk-fg-subtlest); }
|
|
2056
|
+
.o-links-editor-short > [data-slot="vk-button-icon"] { color: var(--vk-fg-subtlest); transition: rotate var(--vk-duration-fast) var(--vk-ease-out); }
|
|
2057
|
+
.o-links-editor-short:is([data-popup-open], [aria-expanded="true"]) > [data-slot="vk-button-icon"] { rotate: 180deg; }
|
|
2058
|
+
|
|
2059
|
+
/* The records to add: the list's rows, the face before the name. */
|
|
2060
|
+
.o-links-editor-add > .o-avatar { flex: none; }
|
|
2061
|
+
.o-links-editor-add { cursor: pointer; }
|
|
2062
|
+
/* Everything linked, or nothing found: what it says, quiet, in the list's middle. */
|
|
2063
|
+
.o-links-editor-message { padding: calc(var(--vk-spacing) * 3) calc(var(--vk-spacing) * 2); color: var(--vk-fg-subtle); text-align: center; }
|
|
2064
|
+
|
|
2065
|
+
/* A list a page shows standing open: under its button, over the rows, as the Popover would stand it, as wide as its rows. */
|
|
2066
|
+
.o-links-editor .o-links-editor-shown { position: absolute; z-index: var(--vk-layer-popup); width: max-content; min-width: calc(var(--vk-spacing) * 48); max-width: calc(var(--vk-spacing) * 72); }
|
|
2067
|
+
|
|
2068
|
+
/* ── A link's fields, a step inside the popup ─ */
|
|
2069
|
+
.o-links-editor-step-head { --popup-line-under: var(--vk-spacing); --popup-line-pad: calc(var(--vk-spacing) * 2); }
|
|
2070
|
+
.o-links-editor-step-head > .o-avatar { flex: none; }
|
|
2071
|
+
.o-links-editor-step-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: var(--vk-font-weight-medium); }
|
|
2072
|
+
.o-links-editor-fields { display: grid; gap: calc(var(--vk-spacing) * 2); padding: calc(var(--vk-spacing) * 2) calc(var(--vk-spacing) * 2) 0; }
|
|
2073
|
+
.o-links-editor-field { display: flex; align-items: center; gap: calc(var(--vk-spacing) * 3); min-width: 0; min-height: calc(var(--vk-spacing) * 8); }
|
|
2074
|
+
.o-links-editor-field-label { flex: none; width: calc(var(--vk-spacing) * 16); color: var(--vk-fg-subtle); }
|
|
2075
|
+
.o-links-editor-field-control { flex: 1; display: flex; min-width: 0; }
|
|
2076
|
+
.o-links-editor-field-control[data-kind="one"] { flex: none; width: calc(var(--vk-spacing) * 28); }
|
|
2077
|
+
.o-links-editor-field-control > .o-select { width: 100%; }
|
|
2078
|
+
.o-links-editor-step-foot { display: flex; padding: calc(var(--vk-spacing) * 2) 0 0; }
|
|
2079
|
+
|
|
2080
|
+
/* ── On a phone: what the Sheet holds, filling its body: a card per linked record, 12 apart (its head 56, its face 24 and its name,
|
|
2081
|
+
"Lead" on the leading one, ⋯ or the settings button; then its field's row, or what it holds in quiet words); then "Add a
|
|
2082
|
+
company" and the records to add, each its face 40, its name and +; then the search at the foot, over a fade to the ground. Every
|
|
2083
|
+
target 44 at least. ─ */
|
|
2084
|
+
.o-links-editor[data-links-form="phone"] { min-height: var(--links-room, auto); font-size: var(--vk-font-size-base); line-height: calc(var(--vk-font-size-base) * var(--vk-line-height-base)); }
|
|
2085
|
+
.o-links-editor-cards { display: grid; gap: calc(var(--vk-spacing) * 3); }
|
|
2086
|
+
.o-links-editor-card-head { padding-right: calc(var(--vk-spacing) * 1); }
|
|
2087
|
+
.o-links-editor-card-head > .o-avatar { flex: none; }
|
|
2088
|
+
.o-links-editor-card-name { flex: 1; display: flex; align-items: baseline; gap: calc(var(--vk-spacing) * 2); min-width: 0; font-weight: var(--vk-font-weight-medium); }
|
|
2089
|
+
.o-links-editor-card-name > :first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
2090
|
+
.o-links-editor-lead-word { flex: none; color: var(--vk-fg-subtle); font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm)); font-weight: var(--vk-font-weight-normal); }
|
|
2091
|
+
.o-links-editor-more, .o-links-editor[data-links-form="phone"] .o-links-editor-config { flex: none; }
|
|
2092
|
+
.o-links-editor-card-line {
|
|
2093
|
+
margin-top: calc(var(--vk-spacing) * -2); padding: 0 calc(var(--vk-spacing) * 4) calc(var(--vk-spacing) * 3.5) calc(var(--vk-spacing) * 13);
|
|
2094
|
+
color: var(--vk-fg-subtle); font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm));
|
|
2095
|
+
}
|
|
2096
|
+
.o-links-editor-card-line[data-none] { color: var(--vk-fg-subtlest); }
|
|
2097
|
+
/* A field's row: its name, its words at its end, cut with "…", and ›. */
|
|
2098
|
+
.o-links-editor-open-name { flex: none; }
|
|
2099
|
+
.o-links-editor-open-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; color: var(--vk-fg-subtle); }
|
|
2100
|
+
.o-links-editor-open-mark { flex: none; width: calc(var(--vk-spacing) * 4.5); height: calc(var(--vk-spacing) * 4.5); margin-right: calc(var(--vk-spacing) * -1); color: var(--vk-fg-subtlest); }
|
|
2101
|
+
.o-links-editor-label { margin: calc(var(--vk-spacing) * 6) var(--vk-spacing) calc(var(--vk-spacing) * 2); font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm)); color: var(--vk-fg-subtle); }
|
|
2102
|
+
.o-links-editor-add-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
2103
|
+
.o-links-editor-add-mark { flex: none; width: calc(var(--vk-spacing) * 5); height: calc(var(--vk-spacing) * 5); color: var(--vk-fg-subtlest); }
|
|
2104
|
+
.o-links-editor-note { padding: calc(var(--vk-spacing) * 9) calc(var(--vk-spacing) * 4); text-align: center; color: var(--vk-fg-subtle); }
|
|
2105
|
+
|
|
2106
|
+
/* ── A list its editor finds: more records coming as its end comes into sight, the ask again after a failed search, and the create
|
|
2107
|
+
rows after the records to add (a mark before the words where one is handed) ─ */
|
|
2108
|
+
.o-links-editor-loading { display: flex; align-items: center; justify-content: center; gap: calc(var(--vk-spacing) * 2); min-height: calc(var(--vk-spacing) * 8); font-size: var(--vk-font-size-xs); color: var(--vk-fg-subtle); }
|
|
2109
|
+
.o-links-editor[data-links-form="phone"] .o-links-editor-loading { min-height: calc(var(--vk-spacing) * 12); font-size: var(--vk-font-size-sm); }
|
|
2110
|
+
.o-links-editor-retry { margin-inline-start: calc(var(--vk-spacing) * 2); }
|
|
2111
|
+
.o-links-editor-action-mark { flex: none; display: grid; place-items: center; width: calc(var(--vk-spacing) * 5); height: calc(var(--vk-spacing) * 5); color: var(--vk-fg-subtle); }
|
|
2112
|
+
.o-links-editor-action-mark > svg { width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); }
|
|
2113
|
+
.o-links-editor-bar {
|
|
2114
|
+
position: sticky; bottom: calc(-1 * var(--links-under, 0px)); z-index: 1; display: flex; align-items: center;
|
|
2115
|
+
margin-top: auto; margin-bottom: calc(-1 * var(--links-under, 0px)); padding: calc(var(--vk-spacing) * 8) 0 calc(var(--vk-spacing) * 2 + var(--links-under, 0px));
|
|
2116
|
+
background-image: linear-gradient(to bottom, transparent, var(--vk-overlay) calc(var(--vk-spacing) * 8));
|
|
2117
|
+
}
|
|
2118
|
+
.o-links-editor-pill { flex: 1; }
|
|
2119
|
+
/* A link's fields, in the Modal's full Sheet: a field's words at its row's end; a switch at its end; Unlink its own card, in red. */
|
|
2120
|
+
.o-links-editor-fields .o-links-editor-open-value { flex: 1; }
|
|
2121
|
+
.o-links-editor-switch { flex: none; margin-left: auto; }
|
|
2122
|
+
.o-links-editor-fields-foot { margin-top: calc(var(--vk-spacing) * 6); }
|
|
2123
|
+
.o-links-editor-unlink.o-field-row { color: var(--vk-danger); }
|
|
2124
|
+
.o-input-control.o-links-editor-input:where([data-vk-phone], [data-vk-phone] *) { font-size: var(--vk-font-size-base); }
|
|
2125
|
+
|
|
2009
2126
|
/* ── The list's options (a select's options, which name them): set on the
|
|
2010
2127
|
frame around a list as custom properties, which every list inside it reads, the Select's list and the Menu's panel whole, and
|
|
2011
2128
|
the Picker on a computer whole, its rows and its Popover's panel. Each value chooses a token. Unset, a list draws as built.
|
|
@@ -2437,6 +2554,26 @@ textarea.o-input-control.o-input-lines { flex: none; min-height: 0; max-height:
|
|
|
2437
2554
|
.o-button.o-menu-dots:is([data-popup-open], [data-force="hover"], [data-force="open"]) { --button-ground: var(--vk-neutral); color: var(--vk-fg); }
|
|
2438
2555
|
@media (hover: hover) { .o-button.o-menu-dots:hover { --button-ground: var(--vk-neutral); color: var(--vk-fg); } }
|
|
2439
2556
|
|
|
2557
|
+
/* ── A number in its cell: Attio's line of the focus colour, Mihai's ring: the kit's Number field in a cell, filling it ── */
|
|
2558
|
+
.o-number-editor[data-number-form="computer"] { box-sizing: border-box; width: 100%; height: 100%; min-width: 0; color: var(--vk-fg); }
|
|
2559
|
+
.o-number-editor .o-number-editor-field, .o-number-editor .o-number-editor-field > .o-inline-input-group { height: 100%; }
|
|
2560
|
+
/* Where a shell stands it: over its cell, the cell's lines under its edge, as Attio's editor stands; in the ring, the cell. */
|
|
2561
|
+
.o-number-editor-place { position: absolute; inset: calc(var(--vk-border-width) * -1) 0 calc(var(--vk-border-width) * -1) calc(var(--vk-border-width) * -1); }
|
|
2562
|
+
[data-inline-input-edge="ring"] .o-number-editor-place { inset: 0; }
|
|
2563
|
+
|
|
2564
|
+
/* Money's currency at the box's start, a press away; a field with one currency, its sign alone. A percent's % after it. */
|
|
2565
|
+
.o-number-editor-currency { flex: none; margin-right: auto; }
|
|
2566
|
+
/* Attio's: the code, a quiet press away from the currencies, or the code alone where nothing can be pressed. */
|
|
2567
|
+
.o-number-editor-code { flex: none; margin-right: auto; }
|
|
2568
|
+
span.o-number-editor-code { color: var(--vk-fg-subtle); }
|
|
2569
|
+
.o-number-editor-sign, .o-number-editor-unit { flex: none; color: var(--vk-fg-subtle); }
|
|
2570
|
+
.o-number-editor[data-number-form="computer"] .o-number-editor-sign { margin-right: auto; }
|
|
2571
|
+
|
|
2572
|
+
/* ── On a phone: the box and what is under it ───────────────────────────────────────────────────────────────────── */
|
|
2573
|
+
.o-number-editor[data-number-form="phone"] { display: grid; gap: calc(var(--vk-spacing) * 2); }
|
|
2574
|
+
.o-number-editor :is(.o-number-editor-code, .o-number-editor-sign, .o-number-editor-unit, .o-input-addon > .o-button):where([data-vk-phone], [data-vk-phone] *) { font-size: var(--vk-font-size-base); }
|
|
2575
|
+
.o-number-editor .o-input-addon > .o-button.o-number-editor-currency:where([data-vk-phone], [data-vk-phone] *) { font-size: var(--vk-font-size-sm); }
|
|
2576
|
+
|
|
2440
2577
|
.o-number { min-width: 0; }
|
|
2441
2578
|
/* Bare: the control alone, Base UI's root standing aside, so the input is its place's own child, as the Input's bare form. */
|
|
2442
2579
|
.o-number-bare { display: contents; }
|
|
@@ -2934,6 +3071,102 @@ textarea.o-input-control.o-input-lines { flex: none; min-height: 0; max-height:
|
|
|
2934
3071
|
/* Refused, its line turns red; at the foot it has no line under it, and the Values editor's refused line draws its own. */
|
|
2935
3072
|
.o-popup-line[data-bad]:not([data-at="foot"]) { --popup-line-colour: var(--vk-border-danger); }
|
|
2936
3073
|
|
|
3074
|
+
/* ── A group: its choices one under another, 14px apart, or two to four in a row; its name is the FieldSet's
|
|
3075
|
+
legend (field.css) ─────────────────────────────────────────────────────────────────────────────────── */
|
|
3076
|
+
.o-radio-group { display: grid; gap: calc(var(--vk-spacing) * 3.5); }
|
|
3077
|
+
.o-radio-group.o-radio-row { display: flex; flex-wrap: wrap; gap: calc(var(--vk-spacing) * 2) calc(var(--vk-spacing) * 6); }
|
|
3078
|
+
|
|
3079
|
+
/* ── At rest: a 16px ring, see-through; the label 10px to its right presses it ─────────────────────── */
|
|
3080
|
+
.o-radio { position: relative; display: inline-flex; align-items: flex-start; gap: calc(var(--vk-spacing) * 2.5); cursor: pointer; -webkit-tap-highlight-color: transparent; }
|
|
3081
|
+
.o-radio-ring {
|
|
3082
|
+
flex: none; box-sizing: border-box; display: grid; place-items: center;
|
|
3083
|
+
width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); margin-top: calc(var(--vk-spacing) * 0.5);
|
|
3084
|
+
border: var(--vk-border-width) solid var(--vk-border-input); border-radius: var(--vk-radius-full);
|
|
3085
|
+
background-color: var(--vk-input); outline: none;
|
|
3086
|
+
transition: background-color var(--vk-duration-fast) var(--vk-ease-out), border-color var(--vk-duration-fast) var(--vk-ease-out);
|
|
3087
|
+
}
|
|
3088
|
+
/* The dot grows in its middle when the ring is chosen. */
|
|
3089
|
+
.o-radio-dot { width: calc(var(--vk-spacing) * 1.5); height: calc(var(--vk-spacing) * 1.5); border-radius: var(--vk-radius-full); background-color: var(--vk-fg-inverse); scale: 0; transition: scale var(--vk-duration-base) var(--vk-ease-out); }
|
|
3090
|
+
|
|
3091
|
+
/* ── Under the pointer, on the ring or its label: a louder edge; a chosen ring a deeper brand ─────── */
|
|
3092
|
+
/* A hover only on a screen with a pointer (KIT-368: iOS keeps :hover on what was last tapped); a press and the forced state stay out. */
|
|
3093
|
+
.o-radio-ring[data-force="hover"]:not([data-disabled]) { border-color: var(--vk-border-input-hovered); }
|
|
3094
|
+
@media (hover: hover) { .o-radio:hover > .o-radio-ring:not([data-disabled]) { border-color: var(--vk-border-input-hovered); } }
|
|
3095
|
+
|
|
3096
|
+
/* ── On: the brand, with the dot ───────────────────────────────────────────────────────────────────── */
|
|
3097
|
+
.o-radio-ring[data-checked] { border-color: var(--vk-brand); background-color: var(--vk-brand); }
|
|
3098
|
+
.o-radio-ring[data-force="hover"][data-checked]:not([data-disabled]) { border-color: var(--vk-brand-hovered); background-color: var(--vk-brand-hovered); }
|
|
3099
|
+
@media (hover: hover) { .o-radio:hover > .o-radio-ring[data-checked]:not([data-disabled]) { border-color: var(--vk-brand-hovered); background-color: var(--vk-brand-hovered); } }
|
|
3100
|
+
.o-radio-ring[data-checked] .o-radio-dot { scale: 1; background-color: var(--vk-fg-on-brand); }
|
|
3101
|
+
|
|
3102
|
+
/* ── In error (aria-invalid, its Field's error, or a group in error around it): a red edge; chosen, the
|
|
3103
|
+
danger colour fills it. The pointer never takes it away; focus rings it in red; disabled wins. ─── */
|
|
3104
|
+
.o-radio-ring:is([aria-invalid="true"], [data-invalid], .o-fieldset[data-invalid] *):not([data-disabled]),
|
|
3105
|
+
.o-radio-ring[data-force="hover"]:is([aria-invalid="true"], [data-invalid], .o-fieldset[data-invalid] *):not([data-disabled]) { border-color: var(--vk-border-danger); }
|
|
3106
|
+
@media (hover: hover) { .o-radio:hover > .o-radio-ring:is([aria-invalid="true"], [data-invalid], .o-fieldset[data-invalid] *):not([data-disabled]) { border-color: var(--vk-border-danger); } }
|
|
3107
|
+
.o-radio-ring[data-checked]:is([aria-invalid="true"], [data-invalid], .o-fieldset[data-invalid] *):not([data-disabled]) { border-color: var(--vk-danger-bold); background-color: var(--vk-danger-bold); }
|
|
3108
|
+
.o-radio-ring[data-checked]:is([aria-invalid="true"], [data-invalid], .o-fieldset[data-invalid] *):not([data-disabled]) .o-radio-dot { background-color: var(--vk-fg-inverse); }
|
|
3109
|
+
.o-radio-ring[data-force="hover"][data-checked]:is([aria-invalid="true"], [data-invalid], .o-fieldset[data-invalid] *):not([data-disabled]) { border-color: var(--vk-danger-bold-hovered); background-color: var(--vk-danger-bold-hovered); }
|
|
3110
|
+
@media (hover: hover) { .o-radio:hover > .o-radio-ring[data-checked]:is([aria-invalid="true"], [data-invalid], .o-fieldset[data-invalid] *):not([data-disabled]) { border-color: var(--vk-danger-bold-hovered); background-color: var(--vk-danger-bold-hovered); } }
|
|
3111
|
+
.o-radio-ring:is(:focus-visible, [data-force="focus"]):is([aria-invalid="true"], [data-invalid], .o-fieldset[data-invalid] *) { outline-color: var(--vk-border-danger); }
|
|
3112
|
+
|
|
3113
|
+
/* ── Focus: the outline 2px outside the ring ───────────────────────────────────────────────────────── */
|
|
3114
|
+
.o-radio-ring:is(:focus-visible, [data-force="focus"]) { outline: var(--vk-focus-width) solid var(--vk-border-brand); outline-offset: var(--vk-focus-offset); }
|
|
3115
|
+
|
|
3116
|
+
/* ── Disabled: a grey ring, a softer edge, the dot and the label greyed ─────────────────────────────── */
|
|
3117
|
+
.o-radio-ring[data-disabled] { border-color: var(--vk-border-subtle); background-color: var(--vk-neutral); }
|
|
3118
|
+
.o-radio-ring[data-disabled] .o-radio-dot { background-color: var(--vk-fg-disabled); }
|
|
3119
|
+
.o-radio:has(> .o-radio-ring[data-disabled]) { cursor: not-allowed; }
|
|
3120
|
+
.o-radio:has(> .o-radio-ring[data-disabled]) .o-choice-label { color: var(--vk-fg-disabled); }
|
|
3121
|
+
|
|
3122
|
+
/* ── A marked card (KIT-668; the map, UI Kit · doc · list toolbar, parts 51 and 79; the canvas, rounds 5, 6 and 12): a mark
|
|
3123
|
+
in place of the ring, the radio itself still, its name under it and an optional line under that. Its edge the field's;
|
|
3124
|
+
chosen, ringed in the brand, its edge and a hairline just outside it as the map draws it (KIT-816), the mark in the brand, no
|
|
3125
|
+
selected ground; one that can't be picked yet
|
|
3126
|
+
dashed, all of it greyed, with no word under its name (KIT-777), which the arrows pass by. Focus rings the whole card. Each rule
|
|
3127
|
+
carries a class more than choice.css's card, which it draws over. ─────────────────────────────────────────────────── */
|
|
3128
|
+
.o-choice-card.o-radio-marked { flex-direction: column; align-items: flex-start; gap: var(--vk-spacing); padding: calc(var(--vk-spacing) * 3); border-color: var(--vk-border-input); }
|
|
3129
|
+
.o-radio-mark { flex: none; display: grid; place-items: center; color: var(--vk-fg-subtle); outline: none; transition: color var(--vk-duration-fast) var(--vk-ease-out); }
|
|
3130
|
+
.o-radio-mark > svg { width: calc(var(--vk-spacing) * 5); height: calc(var(--vk-spacing) * 5); }
|
|
3131
|
+
.o-choice-card.o-radio-marked:has(> [data-checked]) { border-color: var(--vk-border-selected); box-shadow: 0 0 0 var(--vk-border-width) var(--vk-border-selected); background-color: var(--vk-ground); }
|
|
3132
|
+
.o-radio-mark[data-checked] { color: var(--vk-fg-accent); }
|
|
3133
|
+
.o-choice-card.o-radio-marked:has(> [data-force="hover"]:not([data-checked], [data-disabled])) { background-color: var(--vk-hovered); }
|
|
3134
|
+
.o-choice-card.o-radio-marked:has(> .o-radio-mark:is(:focus-visible, [data-force="focus"])) { outline: var(--vk-focus-width) solid var(--vk-border-brand); outline-offset: var(--vk-focus-offset); }
|
|
3135
|
+
/* Marked cards in a row: two across, as New view's layouts; one under another on a phone. Marked cards, as a row or as tiles, keep
|
|
3136
|
+
room on every side for what stands outside a card's edge, the chosen one's ring and the focus outline, so a holder that clips
|
|
3137
|
+
its sides (the Pane's body) never cuts either (KIT-816); the map's tiles stand as far in. */
|
|
3138
|
+
.o-radio-group.o-radio-row:has(> .o-radio-marked.o-choice-card) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
3139
|
+
.o-radio-group:where(.o-radio-row, .o-radio-tiles):has(> .o-radio-marked.o-choice-card) { padding: calc(var(--vk-focus-width) + var(--vk-focus-offset)); }
|
|
3140
|
+
|
|
3141
|
+
/* ── Tiles: marked cards three across, each centred, its mark over its name in the card's quieter words; chosen, the mark
|
|
3142
|
+
and the name in the brand. On a computer the marks of a row stand on one line, a tile with a line growing under its
|
|
3143
|
+
name; on a phone they stand on one card, each at least 72 tall, what it holds in its middle. ──────────────────────── */
|
|
3144
|
+
.o-radio-group.o-radio-tiles:has(> .o-choice-card) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(var(--vk-spacing) * 1.5); }
|
|
3145
|
+
.o-radio-tiles > .o-choice-card.o-radio-marked {
|
|
3146
|
+
justify-content: flex-start; align-items: center; gap: calc(var(--vk-spacing) * 1.5); padding: calc(var(--vk-spacing) * 2.5) var(--vk-spacing);
|
|
3147
|
+
border-radius: var(--vk-radius-lg); background-color: transparent; color: var(--vk-fg-subtle); text-align: center;
|
|
3148
|
+
}
|
|
3149
|
+
.o-radio-tiles > .o-radio-marked > .o-choice-text { max-width: 100%; }
|
|
3150
|
+
.o-radio-tiles > .o-radio-marked .o-choice-label { font-weight: var(--vk-font-weight-normal); color: inherit; }
|
|
3151
|
+
.o-radio-tiles > .o-radio-marked > .o-radio-mark { color: inherit; }
|
|
3152
|
+
.o-radio-tiles > .o-radio-marked > .o-radio-mark > svg { width: calc(var(--vk-spacing) * 4.5); height: calc(var(--vk-spacing) * 4.5); }
|
|
3153
|
+
.o-radio-tiles > .o-choice-card.o-radio-marked:has(> [data-checked]) { background-color: transparent; color: var(--vk-fg-accent); }
|
|
3154
|
+
@media (hover: hover) { .o-radio-tiles > .o-choice-card.o-radio-marked:hover:not(:has(> :is([data-checked], [data-disabled]))) { background-color: var(--vk-hovered); } }
|
|
3155
|
+
.o-radio-tiles > .o-choice-card.o-radio-marked:has(> [data-force="hover"]:not([data-checked], [data-disabled])) { background-color: var(--vk-hovered); }
|
|
3156
|
+
|
|
3157
|
+
/* ── A marked card that can't be picked yet: dashed, greyed, no ground; it wins over the tiles' colours. ──────────── */
|
|
3158
|
+
.o-choice-card.o-radio-marked:has(> [data-disabled]) { border-style: dashed; border-color: var(--vk-border-input); box-shadow: none; background-color: transparent; cursor: not-allowed; }
|
|
3159
|
+
.o-choice-card.o-radio-marked:has(> [data-disabled]) :is(.o-radio-mark, .o-choice-label, .o-choice-note) { color: var(--vk-fg-disabled); }
|
|
3160
|
+
|
|
3161
|
+
/* On a phone (`data-vk-phone`, the group's own mark from the device, or a phone frame round it): marked cards one under
|
|
3162
|
+
another, tiles on one card. */
|
|
3163
|
+
.o-radio-group.o-radio-row:where([data-vk-phone], [data-vk-phone] *):has(> .o-radio-marked.o-choice-card) { grid-template-columns: minmax(0, 1fr); }
|
|
3164
|
+
.o-radio-group.o-radio-tiles:where([data-vk-phone], [data-vk-phone] *):has(> .o-choice-card) { gap: calc(var(--vk-spacing) * 2); padding: calc(var(--vk-spacing) * 3); border-radius: var(--vk-radius-xl); background-color: var(--vk-overlay-card); }
|
|
3165
|
+
.o-radio-tiles:where([data-vk-phone], [data-vk-phone] *) > .o-choice-card.o-radio-marked { justify-content: center; min-height: calc(var(--vk-spacing) * 18); }
|
|
3166
|
+
.o-radio-tiles:where([data-vk-phone], [data-vk-phone] *) > .o-radio-marked > .o-radio-mark > svg { width: calc(var(--vk-spacing) * 5.5); height: calc(var(--vk-spacing) * 5.5); }
|
|
3167
|
+
|
|
3168
|
+
@media (prefers-reduced-motion: reduce) { .o-radio-ring, .o-radio-dot, .o-radio-mark { transition: none; } }
|
|
3169
|
+
|
|
2937
3170
|
/* Doubled, so a component's own overflow: auto in the same layer never brings the sideways scroll back. */
|
|
2938
3171
|
[data-scrollbar][data-scrollbar] { overflow-x: hidden; }
|
|
2939
3172
|
|
|
@@ -3943,6 +4176,201 @@ textarea.o-input-control.o-input-lines { flex: none; min-height: 0; max-height:
|
|
|
3943
4176
|
background-color: var(--vk-fg); clip-path: shape(var(--smooth-outline));
|
|
3944
4177
|
}
|
|
3945
4178
|
}
|
|
4179
|
+
|
|
4180
|
+
.o-values-editor { position: relative; display: flex; flex-direction: column; min-width: 0; color: var(--vk-fg); font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm)); }
|
|
4181
|
+
.o-values-editor:focus { outline: none; }
|
|
4182
|
+
.o-values-editor svg:where(:not(.o-popup-line > svg)) { flex: none; width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); }
|
|
4183
|
+
/* A fixed value's tick in its circle (the Picker's) stands at 16 here too, wherever the Picker's stylesheet stands in the page. */
|
|
4184
|
+
.o-values-editor .o-picker-circle > svg { width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); }
|
|
4185
|
+
|
|
4186
|
+
/* ── The rows: 34 high, 2 apart ─────────────────────────────────────────────────────────────────────────────────── */
|
|
4187
|
+
.o-values-editor-rows { display: flex; flex-direction: column; gap: calc(var(--vk-spacing) * 0.5); }
|
|
4188
|
+
.o-values-editor-row {
|
|
4189
|
+
position: relative; display: flex; align-items: center; gap: calc(var(--vk-spacing) * 1.5); box-sizing: border-box; height: calc(var(--vk-spacing) * 8.5);
|
|
4190
|
+
padding: 0 calc(var(--vk-spacing) * 2) 0 calc(var(--vk-spacing) * 0.5); border-radius: var(--vk-radius-lg); white-space: nowrap;
|
|
4191
|
+
}
|
|
4192
|
+
/* A hover only on a screen with a pointer (KIT-368: iOS keeps :hover on what was last tapped); a press and the forced state stay out. */
|
|
4193
|
+
@media (hover: hover) { .o-values-editor-row:hover { background-color: var(--vk-overlay-hovered); } }
|
|
4194
|
+
/* Held by its grip, it lifts over the others. */
|
|
4195
|
+
.o-values-editor-row[data-lifted], .o-values-editor [data-lifted] { position: relative; z-index: var(--vk-layer-popup); }
|
|
4196
|
+
.o-values-editor-row[data-lifted] { background-color: var(--vk-overlay); box-shadow: var(--vk-shadow-lg), inset 0 0 0 var(--vk-border-width) var(--vk-border); }
|
|
4197
|
+
.o-values-editor-grip { flex: none; touch-action: none; }
|
|
4198
|
+
.o-values-editor-value:focus-visible, .o-values-editor-label:is(button):not(.o-button):focus-visible, .o-values-editor-minus:not(.o-button):focus-visible {
|
|
4199
|
+
outline: var(--vk-focus-width) solid var(--vk-border-brand); outline-offset: calc(-1 * var(--vk-focus-width));
|
|
4200
|
+
}
|
|
4201
|
+
/* The value: a link to look at; a press edits it. */
|
|
4202
|
+
.o-values-editor-value {
|
|
4203
|
+
min-width: 0; margin: 0; padding: 0; border: 0; background: transparent; font: inherit; text-align: left; cursor: text;
|
|
4204
|
+
overflow: hidden; text-overflow: ellipsis; color: var(--vk-fg-brand); text-decoration: underline; text-underline-offset: calc(var(--vk-spacing) * 0.75); font-variant-numeric: tabular-nums;
|
|
4205
|
+
}
|
|
4206
|
+
.o-values-editor-main {
|
|
4207
|
+
flex: none; display: inline-flex; align-items: center; height: calc(var(--vk-spacing) * 4.5); padding: 0 calc(var(--vk-spacing) * 1.5); border-radius: var(--vk-radius-full);
|
|
4208
|
+
background-color: var(--vk-neutral); color: var(--vk-fg-subtle); font-size: var(--vk-font-size-xs); font-weight: var(--vk-font-weight-medium);
|
|
4209
|
+
}
|
|
4210
|
+
.o-values-editor-label { flex: none; margin-left: auto; color: var(--vk-fg-subtle); font-size: var(--vk-font-size-xs); }
|
|
4211
|
+
.o-values-editor-remove { flex: none; opacity: 0; }
|
|
4212
|
+
.o-values-editor-row:not(:has(.o-values-editor-label)) .o-values-editor-remove { margin-left: auto; }
|
|
4213
|
+
.o-values-editor-remove:focus-visible { opacity: 1; }
|
|
4214
|
+
@media (hover: hover) { .o-values-editor-row:hover .o-values-editor-remove { opacity: 1; } }
|
|
4215
|
+
/* On a touch screen, where no pointer hovers, every row's remove stands always, as the phone form's does (KIT-425). */
|
|
4216
|
+
@media (hover: none) { .o-values-editor-remove { opacity: 1; } }
|
|
4217
|
+
/* A value being edited: the kit's Input in a cell (an InputGroup, its label a Button in its end addon), across the row. */
|
|
4218
|
+
.o-values-editor-rows .o-values-editor-edit { flex: 1; min-width: 0; }
|
|
4219
|
+
|
|
4220
|
+
/* ── The line to add one. Every form's: a row, its words on one line, its icon quieter. In Mihai's look on a computer it is the
|
|
4221
|
+
shared line across a popup's top, at its foot (ViewKit's popup-line.css, through lib/popup-line, data-at="foot"), its measures the line's own (KIT-498), its line over it; a
|
|
4222
|
+
ring in focus, a danger line refused. Attio's (a plus, below) and the phone's (further down) draw their own. ──────────── */
|
|
4223
|
+
.o-values-editor-line { display: flex; align-items: center; box-sizing: border-box; white-space: nowrap; }
|
|
4224
|
+
.o-values-editor-line > svg { color: var(--vk-fg-subtlest); }
|
|
4225
|
+
.o-values-editor-rows + .o-values-editor-error + .o-values-editor-line.o-popup-line, .o-values-editor > .o-values-editor-line.o-popup-line:first-child { margin-top: calc(-1 * var(--popup-line-reach)); }
|
|
4226
|
+
.o-values-editor > .o-values-editor-line.o-popup-line:first-child { border-top: 0; }
|
|
4227
|
+
.o-values-editor > .o-values-editor-line.o-popup-line:first-child::after { content: none; }
|
|
4228
|
+
.o-values-editor-line.o-popup-line:focus-within { box-shadow: inset 0 0 0 var(--vk-focus-width) var(--vk-border-brand); border-radius: 0 0 var(--popover-corners, var(--vk-radius-xl)) var(--popover-corners, var(--vk-radius-xl)); }
|
|
4229
|
+
.o-values-editor > .o-values-editor-line.o-popup-line:first-child:focus-within { border-radius: var(--popover-corners, var(--vk-radius-xl)); }
|
|
4230
|
+
.o-values-editor .o-values-editor-line.o-popup-line[data-bad] { margin-bottom: 0; box-shadow: inset 0 calc(-1 * var(--vk-focus-width)) 0 var(--vk-border-danger); border-radius: 0; }
|
|
4231
|
+
/* The line's box, on a computer and a phone, and each of Mihai's cards' is the kit's Input, bare, its digits lined up (numeric;
|
|
4232
|
+
KIT-483): what it draws is the Input's own, a value cut at rest ending in "…". */
|
|
4233
|
+
.o-values-editor-code { flex: none; }
|
|
4234
|
+
.o-values-editor-prefix { flex: none; color: var(--vk-fg-subtle); font-variant-numeric: tabular-nums; }
|
|
4235
|
+
.o-values-editor-error { margin: calc(var(--vk-spacing) * 2) var(--vk-spacing) 0; font-size: var(--vk-font-size-xs); line-height: calc(var(--vk-font-size-xs) * var(--vk-line-height-xs)); color: var(--vk-danger); }
|
|
4236
|
+
.o-values-editor-rows + .o-values-editor-error { margin: var(--vk-spacing) var(--vk-spacing) 0; }
|
|
4237
|
+
/* A list in the rows' place: a back row, the shared line across a popup's top (ViewKit's popup-line.css, through lib/popup-line), ‹ where the line's icon
|
|
4238
|
+
stands, as the Picker's level (KIT-498), then the Picker. */
|
|
4239
|
+
.o-values-editor-back { font-weight: var(--vk-font-weight-medium); }
|
|
4240
|
+
|
|
4241
|
+
/* ── On a phone, Mihai's look: a card for each value, 56 high, the grip ≡, ⊖, and a line with Add at the foot ──────── */
|
|
4242
|
+
.o-values-editor[data-values-form="phone"] { display: grid; font-size: var(--vk-font-size-base); line-height: calc(var(--vk-font-size-base) * var(--vk-line-height-base)); }
|
|
4243
|
+
/* Its cards and their rows are Field rows' (KIT-622), in the look this editor hands it (values-editor.tsx, MIHAI_CARDS and
|
|
4244
|
+
ATTIO_ROWS); what a row holds and where stays here. */
|
|
4245
|
+
.o-values-editor-card { white-space: nowrap; }
|
|
4246
|
+
.o-values-editor-card .o-values-editor-label { font-size: var(--vk-font-size-sm); }
|
|
4247
|
+
.o-values-editor-minus { flex: none; }
|
|
4248
|
+
/* Its mark, a drawn bar: the span in the Button's label, never the Button's cut (KIT-645: a bare span inside the Button took the
|
|
4249
|
+
cut's two spans too, and ⊖ drew as a red sliver over a white dash). */
|
|
4250
|
+
.o-values-editor-minus > [data-slot="vk-button-label"] > span { display: block; width: calc(var(--vk-spacing) * 2.5); height: calc(var(--vk-spacing) * 0.5); border-radius: var(--vk-radius-full); background-color: var(--vk-fg-inverse); }
|
|
4251
|
+
.o-values-editor [data-lifted] > .o-values-editor-card { background-color: var(--vk-overlay); box-shadow: var(--vk-shadow-lg); }
|
|
4252
|
+
.o-values-editor-adding { display: flex; align-items: center; gap: calc(var(--vk-spacing) * 2.5); }
|
|
4253
|
+
.o-values-editor-new { flex: 1; min-width: 0; }
|
|
4254
|
+
.o-values-editor-new > svg { color: var(--vk-fg-subtlest); }
|
|
4255
|
+
.o-values-editor-new .o-values-editor-prefix { margin-left: calc(var(--vk-spacing) * -1); }
|
|
4256
|
+
|
|
4257
|
+
/* ── Attio's look on a computer (data-values-rows="copy", data-values-line="plus") ──────────────────────────────────── */
|
|
4258
|
+
.o-values-editor[data-values-rows="copy"] .o-values-editor-rows { gap: 0; }
|
|
4259
|
+
.o-values-editor[data-values-rows="copy"] .o-values-editor-row { gap: var(--vk-spacing); height: calc(var(--vk-spacing) * 8); padding: 0 var(--vk-spacing) 0 0; border-radius: var(--vk-radius-md); }
|
|
4260
|
+
@media (hover: hover) { .o-values-editor[data-values-rows="copy"] .o-values-editor-row:hover { background-color: transparent; } }
|
|
4261
|
+
.o-values-editor[data-values-rows="copy"] .o-values-editor-row[data-lifted] { background-color: var(--vk-overlay); }
|
|
4262
|
+
.o-values-editor[data-values-holds="one"] .o-values-editor-row { padding-left: var(--vk-spacing); }
|
|
4263
|
+
/* The value in its pill: the pill shows under the pointer and in focus, and takes its copy's room after the value's end, so the
|
|
4264
|
+
value reads to its last letter, its copy after it (KIT-488, Mihai's pick, 20 Nov 2026: "Make room for it"); only a value too
|
|
4265
|
+
long for its row's room gives way, cut with … before its copy. The row's label and trash stay where they stood. */
|
|
4266
|
+
.o-values-editor-pill {
|
|
4267
|
+
position: relative; display: inline-flex; align-items: center; min-width: 0; max-width: 100%;
|
|
4268
|
+
padding: calc(var(--vk-spacing) * 0.5) calc(var(--vk-spacing) * 1.5); margin-left: calc(var(--vk-spacing) * -0.5); border-radius: var(--vk-radius-sm);
|
|
4269
|
+
}
|
|
4270
|
+
.o-values-editor[data-values-rows="copy"] .o-values-editor-value { display: block; text-decoration-color: var(--vk-brand-subtler); }
|
|
4271
|
+
.o-values-editor-copy { opacity: 0; }
|
|
4272
|
+
.o-values-editor-row:focus-within .o-values-editor-pill { background-color: var(--vk-overlay-hovered); }
|
|
4273
|
+
@media (hover: hover) { .o-values-editor-row:hover .o-values-editor-pill { background-color: var(--vk-overlay-hovered); } }
|
|
4274
|
+
.o-values-editor-row:focus-within .o-values-editor-copy, .o-values-editor-copy[data-copied] { opacity: 1; }
|
|
4275
|
+
@media (hover: hover) { .o-values-editor-row:hover .o-values-editor-copy { opacity: 1; } }
|
|
4276
|
+
.o-values-editor[data-values-rows="copy"] .o-values-editor-row:focus-within .o-values-editor-pill,
|
|
4277
|
+
.o-values-editor[data-values-rows="copy"] .o-values-editor-pill:has(> .o-values-editor-copy[data-copied]) { padding-right: calc(var(--vk-spacing) * 6); }
|
|
4278
|
+
@media (hover: hover) { .o-values-editor[data-values-rows="copy"] .o-values-editor-row:hover .o-values-editor-pill { padding-right: calc(var(--vk-spacing) * 6); } }
|
|
4279
|
+
/* On a touch screen, where no pointer hovers, every value's copy stands always, after the value's end in the pill's own room,
|
|
4280
|
+
every value whole (KIT-444, Mihai's pick D, 13 Nov 2026), as under a pointer (KIT-488). */
|
|
4281
|
+
@media (hover: none) {
|
|
4282
|
+
.o-values-editor-copy { opacity: 1; }
|
|
4283
|
+
.o-values-editor[data-values-rows="copy"] .o-values-editor-pill { padding-right: calc(var(--vk-spacing) * 6); }
|
|
4284
|
+
}
|
|
4285
|
+
/* A long email, on one line: its name cut, its domain whole beside its copy (KIT-455, Mihai's pick C, 13 Nov 2026), on a touch
|
|
4286
|
+
screen and under a pointer alike (KIT-808, Mihai's pick, 20 Nov 2026: "As on the phone"), and in Mihai's look's rows too,
|
|
4287
|
+
beside Main ("Yes, his look too", the same day). */
|
|
4288
|
+
.o-values-editor .o-values-editor-value:has(> .o-values-editor-domain) { display: flex; }
|
|
4289
|
+
.o-values-editor-name { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
|
|
4290
|
+
.o-values-editor-domain { flex: none; white-space: nowrap; }
|
|
4291
|
+
.o-values-editor[data-values-rows="copy"] .o-values-editor-label { color: var(--vk-fg-subtlest); font-size: var(--vk-font-size-sm); }
|
|
4292
|
+
.o-values-editor[data-values-rows="copy"] .o-values-editor-row:not(:has(.o-values-editor-label)) .o-values-editor-remove { margin-left: auto; }
|
|
4293
|
+
.o-values-editor[data-values-rows="copy"] .o-values-editor-row:focus-within .o-values-editor-remove { opacity: 1; }
|
|
4294
|
+
/* A value edited: the in-cell Input's hairline, 2px further out than the row's words. */
|
|
4295
|
+
.o-values-editor[data-values-rows="copy"] .o-values-editor-edit { margin-left: calc(var(--vk-spacing) * -0.5); }
|
|
4296
|
+
|
|
4297
|
+
/* The line: 36 high under a hairline inside the Popover's padding, a + in the grips' column, the caret and no ring. */
|
|
4298
|
+
.o-values-editor[data-values-line="plus"] .o-values-editor-line, .o-values-editor[data-values-line="plus"] .o-values-editor-rows + .o-values-editor-error + .o-values-editor-line {
|
|
4299
|
+
gap: var(--vk-spacing); min-height: calc(var(--vk-spacing) * 10 + var(--vk-border-width)); margin: var(--vk-spacing) 0 0; padding: var(--vk-spacing) 0 0; border-top: var(--vk-border-width) solid var(--vk-border-subtle);
|
|
4300
|
+
box-shadow: none; border-radius: 0;
|
|
4301
|
+
}
|
|
4302
|
+
.o-values-editor[data-values-line="plus"] > .o-values-editor-line:first-child { margin: 0; padding: 0; border-top: 0; }
|
|
4303
|
+
/* In the Popover its hairline is a line inside a floating surface (KIT-863): drawn in from each end as the list's Dividers say, Inset
|
|
4304
|
+
by a row's 8, Rows as wide as the values, Full width to the Popover's edge, inside it, in the Popover's line colour; the first, standing alone, has none. */
|
|
4305
|
+
.o-popover :is(.o-values-editor[data-values-line="plus"] .o-values-editor-line:not(:first-child), .o-values-editor[data-values-line="plus"] .o-values-editor-rows + .o-values-editor-error + .o-values-editor-line) {
|
|
4306
|
+
--values-line-in: calc(var(--vk-spacing) * 2 * var(--dividers-words, 1) - (1 - var(--dividers-rows, 1)) * var(--divider-reach, 0px));
|
|
4307
|
+
position: relative; border-top-color: transparent;
|
|
4308
|
+
}
|
|
4309
|
+
.o-popover :is(.o-values-editor[data-values-line="plus"] .o-values-editor-line:not(:first-child), .o-values-editor[data-values-line="plus"] .o-values-editor-rows + .o-values-editor-error + .o-values-editor-line)::after {
|
|
4310
|
+
content: ""; position: absolute; left: var(--values-line-in); right: var(--values-line-in); top: calc(-1 * var(--vk-border-width)); height: var(--vk-border-width);
|
|
4311
|
+
background-color: var(--divider-colour, var(--vk-border-subtle)); pointer-events: none;
|
|
4312
|
+
}
|
|
4313
|
+
.o-values-editor[data-values-line="plus"] .o-values-editor-line:focus-within, .o-values-editor[data-values-line="plus"] .o-values-editor-line[data-bad] { box-shadow: none; border-radius: 0; }
|
|
4314
|
+
.o-values-editor-plus { flex: none; display: grid; place-items: center; width: calc(var(--vk-spacing) * 6); color: var(--vk-fg-subtle); }
|
|
4315
|
+
.o-values-editor[data-values-line="plus"] .o-values-editor-prefix { color: var(--vk-fg-subtlest); }
|
|
4316
|
+
.o-values-editor[data-values-line="plus"] .o-values-editor-error { margin: var(--vk-spacing) 0 var(--vk-spacing) calc(var(--vk-spacing) * 7); }
|
|
4317
|
+
|
|
4318
|
+
/* ── Attio's look on a phone (data-values-phone="rows"): one card, rows 48 high at 16, each with its grip, its label, its call,
|
|
4319
|
+
write or open and its trash; the line in the card under a line; a refusal's words under the card ─────────────────── */
|
|
4320
|
+
.o-values-editor[data-values-phone="rows"] .o-values-editor-card { white-space: normal; }
|
|
4321
|
+
/* Its row's inside: the grip at its start's edge, its acts at its end, the computer's row height let go. */
|
|
4322
|
+
.o-values-editor[data-values-phone="rows"] .o-values-editor-row { gap: 0; height: auto; padding: 0 var(--vk-spacing) 0 calc(var(--vk-spacing) * 0.5); border-radius: 0; }
|
|
4323
|
+
@media (hover: hover) { .o-values-editor[data-values-phone="rows"] .o-values-editor-row:hover { background-color: transparent; } }
|
|
4324
|
+
.o-values-editor[data-values-phone="rows"] .o-values-editor-row[data-lifted] { background-color: var(--vk-overlay); box-shadow: var(--vk-shadow-lg); }
|
|
4325
|
+
.o-values-editor[data-values-holds="one"][data-values-phone="rows"] .o-values-editor-row { padding-left: calc(var(--vk-spacing) * 3); }
|
|
4326
|
+
.o-values-editor[data-values-phone="rows"] .o-values-editor-value { flex: 0 1 auto; min-width: 0; min-height: calc(var(--vk-spacing) * 11); cursor: text; text-decoration-color: var(--vk-brand-subtler); text-underline-offset: var(--vk-spacing); }
|
|
4327
|
+
.o-values-editor[data-values-phone="rows"] .o-values-editor-label { margin-left: auto; padding-left: calc(var(--vk-spacing) * 2); color: var(--vk-fg-subtlest); font-size: var(--vk-font-size-sm); }
|
|
4328
|
+
.o-values-editor-acts { display: flex; flex: none; margin-left: auto; }
|
|
4329
|
+
.o-values-editor-label + .o-values-editor-acts { margin-left: 0; }
|
|
4330
|
+
.o-values-editor[data-values-phone="rows"] .o-values-editor-remove { opacity: 1; }
|
|
4331
|
+
/* A value edited: the kit's Input in a cell across the row, 4px short of its end; its words the Sheet's, 16 on 24 (KIT-369). */
|
|
4332
|
+
.o-values-editor[data-values-phone="rows"] .o-values-editor-card .o-values-editor-edit { flex: 1; min-width: 0; margin: 0 var(--vk-spacing) 0 0; font-size: inherit; line-height: inherit; }
|
|
4333
|
+
.o-values-editor[data-values-phone="rows"] .o-values-editor-card > .o-values-editor-error { margin: 0 calc(var(--vk-spacing) * 3) calc(var(--vk-spacing) * 2) calc(var(--vk-spacing) * 8.5); font-size: var(--vk-font-size-sm); }
|
|
4334
|
+
.o-values-editor[data-values-phone="rows"] .o-values-editor-line {
|
|
4335
|
+
display: flex; align-items: center; gap: calc(var(--vk-spacing) * 0.5); min-height: calc(var(--vk-spacing) * 12); margin: 0; padding: 0 calc(var(--vk-spacing) * 3) 0 calc(var(--vk-spacing) * 0.5);
|
|
4336
|
+
border-top: var(--vk-border-width) solid var(--vk-border-overlay-card); box-shadow: none; border-radius: 0;
|
|
4337
|
+
}
|
|
4338
|
+
.o-values-editor[data-values-phone="rows"] .o-values-editor-card > .o-values-editor-line:first-child { border-top: 0; }
|
|
4339
|
+
.o-values-editor[data-values-phone="rows"] .o-values-editor-line .o-values-editor-plus { width: calc(var(--vk-spacing) * 8); }
|
|
4340
|
+
.o-values-editor[data-values-phone="rows"] .o-values-editor-line .o-values-editor-plus svg { width: calc(var(--vk-spacing) * 4.5); height: calc(var(--vk-spacing) * 4.5); }
|
|
4341
|
+
.o-values-editor[data-values-phone="rows"] .o-values-editor-line .o-values-editor-prefix { margin-right: var(--vk-spacing); color: var(--vk-fg-subtlest); }
|
|
4342
|
+
.o-values-editor[data-values-phone="rows"] > .o-values-editor-error { margin: calc(var(--vk-spacing) * 2) var(--vk-spacing) 0; font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm)); }
|
|
4343
|
+
|
|
4344
|
+
/* ── Where its buttons stand: the editor's own places, the Button drawing the rest (KIT-492) ─────────────────────────────── */
|
|
4345
|
+
.o-values-editor[data-values-form="computer"]:not([data-values-rows="copy"]) .o-values-editor-row .o-button.o-values-editor-remove { margin: 0 calc(var(--vk-spacing) * -1) 0 0; }
|
|
4346
|
+
.o-values-editor[data-values-form="computer"] .o-values-editor-row:not(:has(.o-values-editor-label)) .o-button.o-values-editor-remove { margin-left: auto; }
|
|
4347
|
+
.o-values-editor[data-values-form="computer"] .o-values-editor-row[data-lifted] .o-button.o-values-editor-grip { cursor: grabbing; }
|
|
4348
|
+
/* Copy after the value's end, in the pill's own room (KIT-444, KIT-488). */
|
|
4349
|
+
.o-values-editor[data-values-form="computer"] .o-values-editor-row .o-button.o-values-editor-copy { position: absolute; top: 50%; right: 0; margin: calc(var(--vk-spacing) * -2.5) 0 0; }
|
|
4350
|
+
.o-values-editor[data-values-form="computer"]:not([data-values-line="plus"]) .o-values-editor-line .o-button.o-values-editor-code { margin: 0 0 0 calc(var(--vk-spacing) * -1); }
|
|
4351
|
+
.o-values-editor[data-values-form="phone"] .o-values-editor-row .o-button.o-values-editor-grip { margin-left: calc(var(--vk-spacing) * -1); }
|
|
4352
|
+
.o-values-editor[data-values-form="phone"] .o-values-editor-row[data-lifted] .o-button.o-values-editor-grip { cursor: grabbing; }
|
|
4353
|
+
.o-values-editor[data-values-form="phone"] .o-values-editor-acts .o-button:is(.o-values-editor-open, .o-values-editor-remove) { margin: 0; }
|
|
4354
|
+
.o-values-editor[data-values-form="phone"] .o-values-editor-line .o-button.o-values-editor-code { margin: 0 0 0 calc(var(--vk-spacing) * 0.5); }
|
|
4355
|
+
.o-values-editor[data-values-form="phone"] .o-values-editor-cards .o-values-editor-card .o-button.o-values-editor-grip { margin-left: calc(var(--vk-spacing) * -1); }
|
|
4356
|
+
.o-values-editor[data-values-form="phone"] .o-values-editor-cards [data-lifted] .o-values-editor-card .o-button.o-values-editor-grip { cursor: grabbing; }
|
|
4357
|
+
.o-values-editor[data-values-form="phone"] .o-values-editor-cards .o-values-editor-card .o-button.o-values-editor-label { margin: 0 0 0 auto; }
|
|
4358
|
+
.o-values-editor[data-values-form="phone"] .o-values-editor-cards .o-values-editor-card .o-button.o-values-editor-minus, .o-values-editor[data-values-form="phone"] .o-values-editor-new .o-button.o-values-editor-code { margin: 0; }
|
|
4359
|
+
|
|
4360
|
+
/* The pressing area under 640px (L2, the kit's own rule for packed targets): half the room to the next target, so no area
|
|
4361
|
+
reaches another. None where they stand flush: across Attio's phone rows and line, and across and up and down the computer's
|
|
4362
|
+
rows (24px buttons in rows of 32 and 34 with no gap); 6px across on Mihai's cards. These need only outweigh press.css's
|
|
4363
|
+
rooms (three classes at most). */
|
|
4364
|
+
.o-values-editor[data-values-form="computer"] .o-values-editor-row .o-button:is(.o-values-editor-grip, .o-values-editor-remove, .o-values-editor-copy),
|
|
4365
|
+
.o-values-editor[data-values-form="computer"] .o-values-editor-edit .o-button.o-values-editor-edit-label { --pressing-room-x: 0px; --pressing-room-y: 0px; }
|
|
4366
|
+
.o-values-editor[data-values-form="computer"] .o-values-editor-line .o-button.o-values-editor-code,
|
|
4367
|
+
.o-values-editor[data-values-phone="rows"] .o-values-editor-card .o-button:is(.o-values-editor-grip, .o-values-editor-open, .o-values-editor-remove, .o-values-editor-code, .o-values-editor-edit-label) { --pressing-room-x: 0px; }
|
|
4368
|
+
.o-values-editor[data-values-phone="cards"] :is(.o-values-editor-cards, .o-values-editor-new) .o-button:is(.o-values-editor-grip, .o-values-editor-label, .o-values-editor-minus, .o-values-editor-code) { --pressing-room-x: calc(var(--vk-spacing) * 1.5); }
|
|
4369
|
+
.o-values-editor :is(.o-values-editor-line-input, .o-values-editor-card-input):where([data-vk-phone], [data-vk-phone] *) { font-size: var(--vk-font-size-base); }
|
|
4370
|
+
.o-views-list { display: contents; }
|
|
4371
|
+
.o-views-list-mark { display: inline-grid; place-items: center; color: var(--vk-fg-subtle); }
|
|
4372
|
+
.o-views-list-mark > svg { width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); }
|
|
4373
|
+
.o-picker[data-picker-form="phone"] .o-views-list-mark > svg { width: calc(var(--vk-spacing) * 5); height: calc(var(--vk-spacing) * 5); }
|
|
3946
4374
|
.\@container {
|
|
3947
4375
|
container-type: inline-size;
|
|
3948
4376
|
}
|
|
@@ -6626,13 +7054,13 @@ textarea.o-input-control.o-input-lines { flex: none; min-height: 0; max-height:
|
|
|
6626
7054
|
--vk-shadow-field-focus-danger: 0 0 10px 0 hsl(3 87% 68% / 0.3);
|
|
6627
7055
|
--vk-shadow-field-hover: 0 1px 1px 0 rgb(16 17 26 / 0.16);
|
|
6628
7056
|
--vk-font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
7057
|
+
--vk-layer-popup: 50;
|
|
6629
7058
|
--vk-overlay-selected: hsl(220 7% 90%);
|
|
6630
7059
|
--vk-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
|
6631
7060
|
--vk-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
|
6632
7061
|
--vk-shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
6633
7062
|
--vk-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
|
|
6634
7063
|
--vk-shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
6635
|
-
--vk-layer-popup: 50;
|
|
6636
7064
|
--vk-label-amber-pressed: hsl(24 86% 35.5%);
|
|
6637
7065
|
--vk-label-blue-pressed: hsl(219 70% 46.5%);
|
|
6638
7066
|
--vk-label-green-pressed: hsl(157 88% 24%);
|
|
@@ -6644,6 +7072,7 @@ textarea.o-input-control.o-input-lines { flex: none; min-height: 0; max-height:
|
|
|
6644
7072
|
--vk-header: hsl(0 0% 100%);
|
|
6645
7073
|
--vk-blur-xs: 4px;
|
|
6646
7074
|
--vk-blur-sm: 8px;
|
|
7075
|
+
--vk-border-selected: hsl(219 90% 65.5%);
|
|
6647
7076
|
--vk-scrollbar-size: 6px;
|
|
6648
7077
|
--vk-scrollbar-inset: 2px;
|
|
6649
7078
|
--vk-scrollbar-thumb: hsl(210 1% 82%);
|
|
@@ -6874,6 +7303,7 @@ textarea.o-input-control.o-input-lines { flex: none; min-height: 0; max-height:
|
|
|
6874
7303
|
--vk-label-purple-pressed: hsl(256 100% 73%);
|
|
6875
7304
|
--vk-shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
|
|
6876
7305
|
--vk-header: hsl(210 6% 7%);
|
|
7306
|
+
--vk-border-selected: hsl(219 66% 47%);
|
|
6877
7307
|
--vk-scrollbar-thumb: hsl(210 2% 26.5%);
|
|
6878
7308
|
--vk-scrollbar-thumb-hovered: hsl(210 1% 37%);
|
|
6879
7309
|
--vk-backdrop-sheet: hsl(0 0% 0% / 0.45);
|