viewkitjs 0.39.0 → 0.40.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 +65 -0
- package/MIGRATION.md +25 -0
- package/fields/dist/derived.d.ts +7 -0
- package/fields/dist/derived.js +4 -0
- package/fields/dist/index.d.ts +1 -1
- package/fields/dist/index.js +1 -1
- package/fields/dist/messages.d.ts +5 -1
- package/fields/dist/messages.js +3 -0
- package/fields/dist/query/evaluate.d.ts +7 -1
- package/fields/dist/query/evaluate.js +8 -5
- package/fields/dist/query/filter.d.ts +7 -0
- package/fields/dist/query/filter.js +7 -1
- package/fields/dist/query/kit.d.ts +3 -2
- package/fields/dist/query/kit.js +1 -1
- package/fields/dist/query/layer.d.ts +6 -0
- package/fields/dist/query/layer.js +3 -0
- package/fields/dist/query/number.d.ts +3 -2
- package/fields/dist/query/number.js +5 -3
- package/fields/dist/query/read-rule.d.ts +1 -1
- package/fields/dist/query/read-rule.js +3 -0
- package/fields/docs/guides/queries.md +28 -24
- package/fields/docs/reference/fields.md +1 -0
- package/fields/docs/reference/query.md +6 -4
- package/package.json +2 -4
- package/postgres/dist/check.js +3 -1
- package/postgres/dist/definitions/storage.d.ts +3 -1
- package/postgres/dist/definitions/storage.js +3 -1
- package/postgres/dist/definitions/stored.js +13 -2
- package/postgres/dist/map.d.ts +5 -1
- package/postgres/dist/map.js +4 -0
- package/postgres/dist/records.js +6 -1
- package/postgres/docs/guides/definitions.md +1 -1
- package/postgres/docs/guides/field-map.md +2 -2
- package/postgres/docs/reference/postgres.md +1 -1
- package/views/dist/contract.d.ts +20 -2
- package/views/dist/contract.js +27 -0
- package/views/dist/controls/avatar.css +1 -1
- package/views/dist/controls/customize/map-customize-body.js +1 -1
- package/views/dist/controls/field/field.d.ts +2 -14
- package/views/dist/controls/field/field.js +4 -9
- package/views/dist/controls/filter-editor/filter-editor.d.ts +2 -0
- package/views/dist/controls/filter-editor/filter-editor.js +5 -2
- package/views/dist/controls/filter-editor/how.d.ts +8 -0
- package/views/dist/controls/filter-editor/map-filter-body.d.ts +4 -2
- package/views/dist/controls/filter-editor/map-filter-body.js +17 -8
- package/views/dist/controls/filter-editor/map-rules.d.ts +4 -3
- package/views/dist/controls/filter-editor/map-rules.js +5 -2
- package/views/dist/controls/filter-editor/parts.d.ts +14 -1
- package/views/dist/controls/filter-editor/parts.js +14 -0
- package/views/dist/controls/filter-editor.css +4 -1
- package/views/dist/controls/index.d.ts +0 -3
- package/views/dist/controls/index.js +0 -3
- package/views/dist/controls/input.css +1 -1
- package/views/dist/controls/menu-list.css +1 -1
- package/views/dist/controls/picker/looks.d.ts +1 -1
- package/views/dist/controls/picker.css +2 -2
- package/views/dist/controls/press.css +0 -1
- package/views/dist/controls/radio/radio.d.ts +1 -1
- package/views/dist/controls/radio/radio.js +1 -16
- package/views/dist/controls/sheet/bottom-sheet.d.ts +2 -2
- package/views/dist/controls/sheet/bottom-sheet.js +31 -24
- package/views/dist/controls/text-editor.css +5 -3
- package/views/dist/controls/tokens.js +0 -6
- package/views/dist/controls/toolbar/toolbar.js +2 -2
- package/views/dist/field-row/editors/RowTextEditor.js +4 -1
- package/views/dist/filters/duration-bound.d.ts +7 -0
- package/views/dist/filters/duration-bound.js +9 -0
- package/views/dist/filters/filter-model.d.ts +4 -0
- package/views/dist/filters/number-refused.d.ts +8 -0
- package/views/dist/filters/number-refused.js +4 -0
- package/views/dist/grid/chrome/grid-table-props.d.ts +4 -1
- package/views/dist/grid/chrome/useGridTableInteractionModel.js +12 -2
- package/views/dist/grid/core/clipboard-model.js +42 -8
- package/views/dist/grid/core/commit-model.d.ts +3 -0
- package/views/dist/grid/core/editing-controller.d.ts +29 -1
- package/views/dist/grid/core/editing-controller.js +142 -12
- package/views/dist/grid/core/pending-reconciliation.d.ts +14 -0
- package/views/dist/grid/core/pending-reconciliation.js +20 -8
- package/views/dist/grid/core/save-path.d.ts +4 -2
- package/views/dist/grid/core/save-path.js +1 -1
- package/views/dist/grid/core/spreadsheet-operations.js +43 -5
- package/views/dist/grid/core/useGridEditing.d.ts +5 -1
- package/views/dist/grid/core/useGridEditing.js +4 -4
- package/views/dist/grid/core/written-alongside.d.ts +16 -0
- package/views/dist/grid/core/written-alongside.js +30 -0
- package/views/dist/grid/grid.css +1 -1
- package/views/dist/grid/index.d.ts +1 -1
- package/views/dist/grid/looks.d.ts +2 -2
- package/views/dist/internal/before-paint.d.ts +5 -0
- package/views/dist/internal/before-paint.js +17 -0
- package/views/dist/internal/field-rows.d.ts +0 -8
- package/views/dist/internal/field-rows.js +1 -3
- package/views/dist/list/bar-keys.d.ts +3 -0
- package/views/dist/list/bar-keys.js +1 -0
- package/views/dist/list/buttons/clear-save.js +6 -2
- package/views/dist/list/buttons/new.d.ts +1 -1
- package/views/dist/list/buttons/new.js +14 -2
- package/views/dist/list/buttons/shared.d.ts +7 -1
- package/views/dist/list/buttons/shared.js +8 -2
- package/views/dist/list/buttons/views.js +6 -4
- package/views/dist/list/edits.d.ts +3 -1
- package/views/dist/list/layer.d.ts +13 -3
- package/views/dist/list/layer.js +13 -3
- package/views/dist/list/line.d.ts +5 -2
- package/views/dist/list/line.js +11 -3
- package/views/dist/list/list.d.ts +7 -1
- package/views/dist/list/list.js +2 -2
- package/views/dist/list/panels/filter-bar.d.ts +1 -1
- package/views/dist/list/panels/filter-bar.js +9 -3
- package/views/dist/list/panels/shared.d.ts +3 -2
- package/views/dist/list/panels/shared.js +5 -2
- package/views/dist/list/root-base.d.ts +2 -1
- package/views/dist/list/root-base.js +5 -3
- package/views/dist/list/root.d.ts +1 -1
- package/views/dist/list/store.d.ts +10 -0
- package/views/dist/list/store.js +8 -1
- package/views/dist/list/toolbar-model.d.ts +4 -0
- package/views/dist/list/toolbar-model.js +19 -1
- package/views/dist/list/toolbar.js +2 -1
- package/views/dist/list/views.d.ts +1 -1
- package/views/dist/list/views.js +4 -1
- package/views/dist/looks/index.d.ts +0 -1
- package/views/dist/looks/index.js +0 -1
- package/views/dist/looks/looks.d.ts +1 -1
- package/views/dist/looks/pieces.js +0 -2
- package/views/dist/model/column-filters.js +10 -3
- package/views/dist/model/view-rules.js +1 -0
- package/views/dist/panels/filter/NumberFilterBody.js +6 -8
- package/views/dist/panels/labels.js +7 -2
- package/views/dist/panels/model.d.ts +3 -0
- package/views/dist/panels/react/filter/filter-body.js +5 -1
- package/views/dist/panels/react/toolbar/ToolbarBarSorts.js +28 -1
- package/views/dist/panels/react/toolbar/ToolbarButton.d.ts +1 -1
- package/views/dist/panels/react/toolbar/ToolbarButton.js +5 -3
- package/views/dist/panels/react/toolbar/context.d.ts +4 -0
- package/views/dist/panels/react/toolbar/context.js +1 -0
- package/views/dist/panels/react/toolbar/use-give-way.js +2 -2
- package/views/dist/panels/settings/filter-groups.js +5 -0
- package/views/dist/panels/settings/input.d.ts +11 -0
- package/views/dist/panels/settings/layout.js +26 -0
- package/views/dist/panels/settings/person.d.ts +15 -0
- package/views/dist/panels/settings/person.js +6 -0
- package/views/dist/panels/toolbar/page-resets.js +14 -3
- package/views/dist/provider/components.d.ts +12 -3
- package/views/dist/styles.css +16 -260
- package/views/dist/styles.unlayered.css +16 -260
- package/views/docs/contract.md +9 -7
- package/views/docs/controls/field.md +1 -1
- package/views/docs/guides/looks.md +1 -1
- package/views/docs/guides/the-grid.md +4 -2
- package/views/docs/guides/toolbar-parts.md +337 -0
- package/views/docs/index.md +4 -0
- package/views/docs/reference/controls.md +3 -41
- package/views/docs/reference/grid.md +4 -3
- package/views/docs/reference/list.md +24 -13
- package/views/docs/reference/looks.md +12 -15
- package/views/docs/reference/panels.md +1 -1
- package/views/docs/reference/react.md +3 -3
- package/views/docs/reference/views.md +1 -1
- package/views/dist/controls/setting-row/looks.d.ts +0 -10
- package/views/dist/controls/setting-row/looks.js +0 -22
- package/views/dist/controls/setting-row/setting-row.d.ts +0 -102
- package/views/dist/controls/setting-row/setting-row.js +0 -135
- package/views/dist/controls/setting-row/tokens.d.ts +0 -156
- package/views/dist/controls/setting-row/tokens.js +0 -41
- package/views/dist/controls/setting-row.css +0 -216
- package/views/dist/controls/switch-row/switch-row.d.ts +0 -1
- package/views/dist/controls/switch-row/switch-row.js +0 -1
- package/views/dist/controls/switch-row/tokens.d.ts +0 -39
- package/views/dist/controls/switch-row/tokens.js +0 -12
- package/views/dist/controls/switch-row.css +0 -35
- package/views/dist/controls/tag-field/tag-field.d.ts +0 -24
- package/views/dist/controls/tag-field/tag-field.js +0 -25
- package/views/dist/controls/tag-field/tokens.d.ts +0 -23
- package/views/dist/controls/tag-field/tokens.js +0 -8
- package/views/dist/controls/tag-field.css +0 -32
- package/views/docs/controls/setting-row.md +0 -44
- package/views/docs/controls/switch-row.md +0 -15
- package/views/docs/controls/tag-field.md +0 -11
|
@@ -112,6 +112,9 @@ function markOf(column) {
|
|
|
112
112
|
function wholeOf(column, part) {
|
|
113
113
|
return part === undefined && column.field && isIntegerField(column.field) ? { integer: true } : {};
|
|
114
114
|
}
|
|
115
|
+
function durationOf(column, part) {
|
|
116
|
+
return part === undefined && column.format?.style === "duration" ? { duration: column.format.unit ?? "ms" } : {};
|
|
117
|
+
}
|
|
115
118
|
function spokenOf(input) {
|
|
116
119
|
const messages = input.filterData?.messages ?? input.resolve;
|
|
117
120
|
const conventions = input.filterData?.conventions ?? input.conventions;
|
|
@@ -167,6 +170,7 @@ function editorFields(input) {
|
|
|
167
170
|
type: valueTypeOf(column.field),
|
|
168
171
|
...markOf(column),
|
|
169
172
|
...wholeOf(column, part),
|
|
173
|
+
...durationOf(column, part),
|
|
170
174
|
},
|
|
171
175
|
];
|
|
172
176
|
});
|
|
@@ -180,6 +184,7 @@ function editorFields(input) {
|
|
|
180
184
|
type: valueTypeOf(column.field),
|
|
181
185
|
...markOf(column),
|
|
182
186
|
...wholeOf(column),
|
|
187
|
+
...durationOf(column),
|
|
183
188
|
}));
|
|
184
189
|
return {
|
|
185
190
|
key: relationFilterKey(key),
|
|
@@ -34,6 +34,17 @@ export type SettingsPanelsInput<Row> = {
|
|
|
34
34
|
onChange: (change: ListSettingsChange) => void;
|
|
35
35
|
/** Each change to the person's layer: only the keys it names. */
|
|
36
36
|
onLayerChange: (patch: ListPersonalLayer) => void;
|
|
37
|
+
/** What the app lets the person set in their own Customize: Layout's Filter bar row (on a computer, where no bar
|
|
38
|
+
* standing by its button is placed) and its Button words row, each written to their layer alone. */
|
|
39
|
+
person?: {
|
|
40
|
+
bar?: boolean;
|
|
41
|
+
words?: boolean;
|
|
42
|
+
};
|
|
43
|
+
/** The settings stand on a phone: Layout leaves out the Filter bar row, as a phone draws no filter bar. */
|
|
44
|
+
phone?: boolean;
|
|
45
|
+
/** When the filter bar stands while the person picked none: a placed bar's own `shows` (`button`, its button
|
|
46
|
+
* shows it: no Filter bar row), else the toolbar's `bar`. Default `added`. */
|
|
47
|
+
barDefault?: "added" | "always" | "button";
|
|
37
48
|
/** The reader's own list defaults (vertical borders). */
|
|
38
49
|
defaults?: ListDefaults;
|
|
39
50
|
/** The app's words; the package's English when absent. */
|
|
@@ -194,6 +194,32 @@ export function settingsLayout(input) {
|
|
|
194
194
|
if (value !== layer.phoneLayout)
|
|
195
195
|
onLayerChange({ phoneLayout: value });
|
|
196
196
|
};
|
|
197
|
+
const toolbar = layer.toolbar ?? {};
|
|
198
|
+
const barDefault = input.barDefault ?? "added";
|
|
199
|
+
if (input.person?.bar && !input.phone && barDefault !== "button") {
|
|
200
|
+
choices.push({
|
|
201
|
+
key: "bar",
|
|
202
|
+
label: word("views.panels.person-bar"),
|
|
203
|
+
value: toolbar.bar ?? barDefault,
|
|
204
|
+
options: ["added", "always"].map((value) => ({ value, label: word(`views.panels.person-bar-${value}`) })),
|
|
205
|
+
onChange: (value) => {
|
|
206
|
+
if (value !== (toolbar.bar ?? barDefault))
|
|
207
|
+
onLayerChange({ toolbar: { ...toolbar, bar: value } });
|
|
208
|
+
},
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
if (input.person?.words) {
|
|
212
|
+
choices.push({
|
|
213
|
+
key: "words",
|
|
214
|
+
label: word("views.panels.person-words"),
|
|
215
|
+
value: toolbar.words ?? "both",
|
|
216
|
+
options: ["both", "icon", "word"].map((value) => ({ value, label: word(`views.panels.person-words-${value}`) })),
|
|
217
|
+
onChange: (value) => {
|
|
218
|
+
if (value !== (toolbar.words ?? "both"))
|
|
219
|
+
onLayerChange({ toolbar: { ...toolbar, words: value } });
|
|
220
|
+
},
|
|
221
|
+
});
|
|
222
|
+
}
|
|
197
223
|
return {
|
|
198
224
|
label: word("views.panels.layout"),
|
|
199
225
|
value: settings.layout,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ListPersonalLayer } from "viewkitjs/fields/query";
|
|
2
|
+
/** What the app lets the person set in their own Customize: when the filter bar stands, the buttons' words. */
|
|
3
|
+
export type ListPersonSwitch = {
|
|
4
|
+
bar?: boolean;
|
|
5
|
+
words?: boolean;
|
|
6
|
+
};
|
|
7
|
+
/** The toolbar keys of their layer that count: the bar where the app lets them set it and on a computer, the words where the
|
|
8
|
+
* app lets them set them. */
|
|
9
|
+
export declare function toolbarCounts(layer: ListPersonalLayer, { phone, person }?: {
|
|
10
|
+
phone?: boolean;
|
|
11
|
+
person?: ListPersonSwitch;
|
|
12
|
+
}): {
|
|
13
|
+
bar: boolean;
|
|
14
|
+
words: boolean;
|
|
15
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { applySettingsChange, settingsChange, } from "viewkitjs/fields/query";
|
|
2
2
|
import { columnsReset } from "../../model/settings-columns.js";
|
|
3
|
+
import { toolbarCounts } from "../settings/person.js";
|
|
3
4
|
import { settingsCleared } from "./clear.js";
|
|
4
5
|
const KEYS = {
|
|
5
6
|
layout: ["layout", "look", "board", "calendar"],
|
|
@@ -9,10 +10,20 @@ const KEYS = {
|
|
|
9
10
|
group: ["group"],
|
|
10
11
|
};
|
|
11
12
|
const PAGES = Object.keys(KEYS);
|
|
12
|
-
function layerPart(page, layer, phone) {
|
|
13
|
+
function layerPart(page, layer, phone, person) {
|
|
13
14
|
if (page === "layout") {
|
|
14
15
|
const look = Object.keys(layer.look ?? {}).length > 0, phoneLayout = phone && layer.phoneLayout !== undefined;
|
|
15
|
-
|
|
16
|
+
const counts = toolbarCounts(layer, { phone, ...(person && { person }) });
|
|
17
|
+
const toolbar = counts.bar || counts.words;
|
|
18
|
+
if (!look && !phoneLayout && !toolbar)
|
|
19
|
+
return null;
|
|
20
|
+
return {
|
|
21
|
+
look: {},
|
|
22
|
+
...(phone && { phoneLayout: undefined }),
|
|
23
|
+
...(toolbar && {
|
|
24
|
+
toolbar: { ...layer.toolbar, ...(counts.bar && { bar: undefined }), ...(counts.words && { words: undefined }) },
|
|
25
|
+
}),
|
|
26
|
+
};
|
|
16
27
|
}
|
|
17
28
|
if (page === "columns")
|
|
18
29
|
return Object.keys(layer.widths ?? {}).length > 0 ? { widths: {} } : null;
|
|
@@ -54,7 +65,7 @@ export function pageResets(input, saved, { cleared = false, phone = false } = {}
|
|
|
54
65
|
const change = page === "columns"
|
|
55
66
|
? columnsBack(settings.columns, cleared ? applySettingsChange(settings, columnsReset(settings, input.columns)).columns : baseline.columns)
|
|
56
67
|
: only(towards, KEYS[page]);
|
|
57
|
-
const part = layerPart(page, layer, phone);
|
|
68
|
+
const part = layerPart(page, layer, phone, input.person);
|
|
58
69
|
if (change || part)
|
|
59
70
|
out[page] = { change, layer: part };
|
|
60
71
|
}
|
|
@@ -729,7 +729,8 @@ export type ViewsBodyStep = {
|
|
|
729
729
|
/** Which of the sort editor's menus a function is handed (VK-1063): a rule's ⋯ (a phone's and the narrow form's: a computer's rule
|
|
730
730
|
* has × and no ⋯), its `field` the sort's key (`rules[].value`), `index` its place; or a set-aside rule's ⋯, its `field` the
|
|
731
731
|
* rule's stored `fieldKey`. Or (VK-1065) `row`, the buttons at a rule's end (× `delete` on a computer, ⋯ `more` elsewhere and on a
|
|
732
|
-
* set-aside rule, `aside: true`); `foot`, Add sort and Clear (`add`, `clear`).
|
|
732
|
+
* set-aside rule, `aside: true`); `foot`, Add sort and Clear (`add`, `clear`). A rule's `row` with `place: "bar"` (VK-1107) is its pill on
|
|
733
|
+
* the filter bar (`ListFilterBar sorts="yes"`): its × `delete`, its field and direction staying the pill's. */
|
|
733
734
|
export type ViewsSortEditorItemsContext = ({
|
|
734
735
|
menu: "rule";
|
|
735
736
|
field: string;
|
|
@@ -741,6 +742,7 @@ export type ViewsSortEditorItemsContext = ({
|
|
|
741
742
|
menu: "row";
|
|
742
743
|
field: string;
|
|
743
744
|
index: number;
|
|
745
|
+
place?: "bar";
|
|
744
746
|
} | {
|
|
745
747
|
menu: "row";
|
|
746
748
|
field: string;
|
|
@@ -921,6 +923,9 @@ export type ViewsFilterBodyField = {
|
|
|
921
923
|
far?: readonly ViewsFilterBodyField[];
|
|
922
924
|
/** A number field that holds whole numbers only (`isIntegerField`): your body's box takes whole numbers. Absent, any. */
|
|
923
925
|
integer?: true;
|
|
926
|
+
/** A number kept as a duration, in this unit (milliseconds unless the field says seconds): your body's box reads and writes
|
|
927
|
+
* a duration (`1m 30s`, a bare number in seconds), and a rule keeps its bound in this unit. Absent, a plain number. */
|
|
928
|
+
duration?: "ms" | "s";
|
|
924
929
|
/** A choice field's values (a status's, a select's, a person's, a record's), or a place's country's names (its `countryCode`
|
|
925
930
|
* part, VK-735), each as the Picker draws it, where ViewKit holds
|
|
926
931
|
* them as the list opens: your body may list them in the rule's value box. Absent where its values are read on demand, or the
|
|
@@ -981,13 +986,17 @@ export type ViewsFilterBodyProps = {
|
|
|
981
986
|
* it was as the sheet opened) and ✓, for your body's own head. Absent on a computer, and under `head`, where the
|
|
982
987
|
* sheet holds them. */
|
|
983
988
|
actions?: ViewsSheetActions;
|
|
984
|
-
/** ViewKit's own words for a rule, as the filter bar words it: its field, its way and its value (null with none yet)
|
|
985
|
-
*
|
|
989
|
+
/** ViewKit's own words for a rule, as the filter bar words it: its field, its way and its value (null with none yet), and
|
|
990
|
+
* why it filters nothing where ViewKit refuses it (`refused`). For a rule your body has no words of its own for (set
|
|
991
|
+
* aside, a way you don't draw), and for every rule's `refused`. `relation`: the relation's field key, for a
|
|
986
992
|
* far rule. */
|
|
987
993
|
ruleWords?: (rule: FilterRule, relation?: string) => {
|
|
988
994
|
field: string;
|
|
989
995
|
way: string;
|
|
990
996
|
value: string | null;
|
|
997
|
+
/** Why the rule filters nothing though whole, in words, for under its value (a number compared across several
|
|
998
|
+
* currencies). Absent for most rules. */
|
|
999
|
+
refused?: string;
|
|
991
1000
|
};
|
|
992
1001
|
/** On a phone: tell the sheet you stand on a step of your own (a box's list, Add filter's fields), and hand null once you
|
|
993
1002
|
* are back. The sheet's head shows the step's title, Back in ✕'s place and ✓; Escape calls onBack; a swipe still closes
|
package/views/dist/styles.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! viewkitjs 0.
|
|
1
|
+
/*! viewkitjs 0.40.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 {
|
|
@@ -508,7 +508,7 @@
|
|
|
508
508
|
line as a record's icon is; a mark with no colour of its own (Codex's, Grok's) takes the text's ink, as the canvas drew it. */
|
|
509
509
|
.o-avatar-agent .o-avatar-letters svg { fill: var(--vk-fg); stroke: none; }
|
|
510
510
|
/* On a phone an agent's square on its own colour stands bold, as iOS draws an app's tile (round 3 of the settings canvas): the hue
|
|
511
|
-
under a white letter, as
|
|
511
|
+
under a white letter, as iOS's Settings draws its icons; grey the quietest ink. A thing's, the workspace's included,
|
|
512
512
|
keeps the hue's fill. */
|
|
513
513
|
.o-avatar.o-avatar-agent[data-colour]:where([data-vk-phone] *) { color: var(--vk-fg-inverse); }
|
|
514
514
|
.o-avatar.o-avatar-agent[data-colour="blue"]:where([data-vk-phone] *) { background-color: var(--vk-label-blue); }
|
|
@@ -2089,7 +2089,10 @@ button.o-field-row { cursor: pointer; }
|
|
|
2089
2089
|
/* ── VK-827: a group that excludes its matches says so over its rules; a relation rule's block is a group's well with a head, its
|
|
2090
2090
|
relation's name and its quantifier's box, laid out as ViewKit's own block (Mihai, 29 Nov 2026: built from the kit's parts); a
|
|
2091
2091
|
group's ⋮ ends its foot, after Delete group, as a rule's ends its row ─────────────────────────────────────────────────────── */
|
|
2092
|
-
|
|
2092
|
+
/* Why a whole rule filters nothing (VK-17), on a line of its own under the rule's boxes. */
|
|
2093
|
+
.o-filter-editor-boxes:has(> .o-filter-editor-note) { flex-wrap: wrap; }
|
|
2094
|
+
.o-filter-editor-note { flex: 1 1 100%; }
|
|
2095
|
+
.o-filter-editor-excluded, .o-filter-editor-note {
|
|
2093
2096
|
margin: 0; color: var(--vk-fg-subtle); font-size: var(--vk-font-size-xs); font-weight: var(--vk-font-weight-medium);
|
|
2094
2097
|
line-height: calc(var(--vk-font-size-xs) * var(--vk-line-height-xs));
|
|
2095
2098
|
}
|
|
@@ -3787,7 +3790,7 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
|
|
|
3787
3790
|
.o-picker .o-list-main { flex: 0 1 auto; }
|
|
3788
3791
|
.o-picker .o-list-line { flex: 1 1 0; min-width: 0; }
|
|
3789
3792
|
[data-picker-line="below"] .o-picker .o-list-text { display: grid; gap: var(--vk-border-width); }
|
|
3790
|
-
/* Below is the default
|
|
3793
|
+
/* Below is the default: where no frame picks a second line, at the picked rule's weight. */
|
|
3791
3794
|
.o-picker:not([data-picker-line] *) .o-list-text { display: grid; gap: var(--vk-border-width); }
|
|
3792
3795
|
|
|
3793
3796
|
/* The check in the brand's circle at a row's end (Held: Check, Attio's), seen only on the row the field holds. */
|
|
@@ -3971,7 +3974,7 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
|
|
|
3971
3974
|
.o-picker-message-text { flex: 0 1 auto; }
|
|
3972
3975
|
[data-picker-doing="start"] .o-picker-message { justify-content: flex-start; text-align: left; }
|
|
3973
3976
|
[data-picker-doing="start"] .o-picker-message-text { flex: 1; }
|
|
3974
|
-
/* At the start is the default
|
|
3977
|
+
/* At the start is the default: where no frame picks what the list is doing, at the picked rules' weight. */
|
|
3975
3978
|
.o-picker-message:not([data-picker-doing] *) { justify-content: flex-start; text-align: left; }
|
|
3976
3979
|
.o-picker-message-text:not([data-picker-doing] *) { flex: 1; }
|
|
3977
3980
|
.o-picker-more { 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); }
|
|
@@ -4189,7 +4192,6 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
|
|
|
4189
4192
|
.o-input-addon:is([data-side="start"], [data-side="end"]) > .o-button { --pressing-room-x: calc(var(--vk-spacing) * 0.75); }
|
|
4190
4193
|
.o-input-addon:is([data-side="top"], [data-side="bottom"]) > .o-button { --pressing-room-x: calc(var(--vk-spacing) * 0.5); }
|
|
4191
4194
|
:is(.o-check:not(.o-check-row), .o-radio):not(.o-radio-row > *, :has(.o-choice-note)):is(:has(+ :is(.o-check, .o-radio)), :is(.o-check, .o-radio) + *) > :is(.o-check-box, .o-radio-ring) { --pressing-room-y: calc(var(--vk-spacing) * 2); }
|
|
4192
|
-
.o-tag-field .o-tag-remove { --pressing-room-x: calc(var(--vk-spacing) * 0.75); --pressing-room-y: calc(var(--vk-spacing) * 1.5); }
|
|
4193
4195
|
.o-select-chips .o-tag-remove { --pressing-room-x: calc(var(--vk-spacing) * 0.5); --pressing-room-y: calc(var(--vk-spacing) * 1); }
|
|
4194
4196
|
/* Options side by side, 6px apart in a row and between their lines: a link half that each way. */
|
|
4195
4197
|
.o-options > .o-option[data-link] { --pressing-room-x: calc(var(--vk-spacing) * 0.75); --pressing-room-y: calc(var(--vk-spacing) * 0.75); }
|
|
@@ -4655,200 +4657,6 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
|
|
|
4655
4657
|
|
|
4656
4658
|
@media (prefers-reduced-motion: reduce) { .o-select-chevron { transition: none; } }
|
|
4657
4659
|
|
|
4658
|
-
/* ── The options: each value sets the card's or the rows' own names, read below ─────────────────────────────────────── */
|
|
4659
|
-
:where([data-setting-row-card="raised"]) .o-setting-rows { --setting-rows-edge: var(--vk-border-subtle); --setting-rows-ground: var(--vk-raised); }
|
|
4660
|
-
:where([data-setting-row-rows="roomy"]) :is(.o-setting-rows, .o-setting-row) {
|
|
4661
|
-
--setting-rows-pad: calc(var(--vk-spacing) * 3) calc(var(--vk-spacing) * 4.5); --setting-rows-height: calc(var(--vk-spacing) * 16);
|
|
4662
|
-
--setting-rows-side: calc(var(--vk-spacing) * 16);
|
|
4663
|
-
}
|
|
4664
|
-
.o-setting-rows.o-setting-rows-danger { --setting-rows-edge: var(--vk-border-danger); }
|
|
4665
|
-
/* Edged (Linear's): the card on its ground with a firm edge; its danger zone's plain, only its action red. */
|
|
4666
|
-
:where([data-setting-row-card="edged"]) .o-setting-rows { --setting-rows-edge: var(--vk-border); --setting-rows-ground: var(--vk-raised); }
|
|
4667
|
-
:where([data-setting-row-card="edged"]) .o-setting-rows.o-setting-rows-danger { --setting-rows-edge: var(--vk-border); }
|
|
4668
|
-
/* Inset (Linear's): 60 tall at least, 15 by 16, the line between rows inset 16 at each end. */
|
|
4669
|
-
:where([data-setting-row-rows="inset"]) :is(.o-setting-rows, .o-setting-row) {
|
|
4670
|
-
--setting-rows-pad: calc(var(--vk-spacing) * 3.75) calc(var(--vk-spacing) * 4); --setting-rows-height: calc(var(--vk-spacing) * 15);
|
|
4671
|
-
--setting-rows-side: calc(var(--vk-spacing) * 15);
|
|
4672
|
-
}
|
|
4673
|
-
|
|
4674
|
-
/* ── The card, on a computer: the rows in a box, a line between each ───────────────────────────────────────────────── */
|
|
4675
|
-
.o-setting-rows:not(.o-field-rows) {
|
|
4676
|
-
display: grid; border: var(--vk-border-width) solid var(--setting-rows-edge, var(--vk-border)); border-radius: var(--vk-radius-lg); overflow: hidden;
|
|
4677
|
-
background-color: var(--setting-rows-ground, transparent);
|
|
4678
|
-
}
|
|
4679
|
-
|
|
4680
|
-
/* ── A row, on a computer: its start, its words, its end ───────────────────────────────────────────────────────────── */
|
|
4681
|
-
.o-setting-row:not(.o-field-row) {
|
|
4682
|
-
display: flex; align-items: center; justify-content: space-between; gap: calc(var(--vk-spacing) * 4); box-sizing: border-box;
|
|
4683
|
-
min-height: var(--setting-rows-height, auto); margin: 0; padding: var(--setting-rows-pad, calc(var(--vk-spacing) * 3.5) calc(var(--vk-spacing) * 4));
|
|
4684
|
-
border: 0; border-top: var(--vk-border-width) solid var(--vk-border-subtle);
|
|
4685
|
-
-webkit-tap-highlight-color: transparent; transition: background-color var(--vk-duration-fast) var(--vk-ease-out);
|
|
4686
|
-
}
|
|
4687
|
-
.o-setting-row:not(.o-field-row):first-child { border-top: 0; }
|
|
4688
|
-
.o-setting-row:not(.o-field-row) > .o-choice-text { flex: 1 1 auto; }
|
|
4689
|
-
.o-setting-row:not(.o-field-row) .o-choice-label { font-weight: var(--vk-font-weight-medium); }
|
|
4690
|
-
/* The row that is a press as a whole: the one opening its page (a button). A switch's row is not: only its Switch switches it
|
|
4691
|
-
(KIT-969), so it takes no pointer and no ground under it. */
|
|
4692
|
-
button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: left; background-color: transparent; }
|
|
4693
|
-
.o-setting-row[data-setting-row-kind="open"]:not(.o-field-row) { cursor: pointer; }
|
|
4694
|
-
@media (hover: hover) { .o-setting-row[data-setting-row-kind="open"]:not(.o-field-row):hover { background-color: var(--vk-hovered); } }
|
|
4695
|
-
.o-setting-row[data-setting-row-kind="open"]:not(.o-field-row)[data-locked] { cursor: not-allowed; background-color: transparent; }
|
|
4696
|
-
|
|
4697
|
-
/* Its start: a mark as given; an icon in its box. */
|
|
4698
|
-
.o-setting-row > :not(.o-choice-text, .o-setting-row-press) { flex: none; }
|
|
4699
|
-
.o-setting-row-icon {
|
|
4700
|
-
display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: calc(var(--vk-spacing) * 8); height: calc(var(--vk-spacing) * 8);
|
|
4701
|
-
border: var(--vk-border-width) solid var(--vk-border-subtle); border-radius: var(--vk-radius-md); background-color: var(--vk-raised); color: var(--vk-fg-subtle);
|
|
4702
|
-
}
|
|
4703
|
-
.o-setting-row-icon > svg { width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); }
|
|
4704
|
-
|
|
4705
|
-
/* Its end: the reason, then the control; the Select 220 wide; the value and ›. */
|
|
4706
|
-
.o-setting-row-end { display: flex; align-items: center; gap: calc(var(--vk-spacing) * 2); margin-left: auto; min-width: 0; }
|
|
4707
|
-
.o-setting-row-select { width: calc(var(--vk-spacing) * 55); }
|
|
4708
|
-
.o-setting-row-select .o-select-field { width: 100%; }
|
|
4709
|
-
.o-setting-row-reason { font-size: var(--vk-font-size-xs); line-height: calc(var(--vk-font-size-xs) * var(--vk-line-height-xs)); color: var(--vk-fg-subtlest); }
|
|
4710
|
-
.o-setting-row-reason + .o-switch { margin-left: calc(var(--vk-spacing) * -2); }
|
|
4711
|
-
.o-setting-row-value { 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); }
|
|
4712
|
-
.o-setting-row-chevron { flex: none; width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); color: var(--vk-fg-subtlest); }
|
|
4713
|
-
/* Locked: its control greyed (a switch keeps its own locked state), its words as they are. */
|
|
4714
|
-
.o-setting-row[data-locked] :is(.o-setting-row-select, .o-button, .o-setting-row-value, .o-setting-row-chevron) { opacity: var(--vk-opacity-off); }
|
|
4715
|
-
|
|
4716
|
-
/* A lone row: bare, no card, no line, no room round it. */
|
|
4717
|
-
.o-setting-row[data-alone]:not(.o-field-row) { min-height: 0; padding: 0; border-top: 0; background-color: transparent; }
|
|
4718
|
-
|
|
4719
|
-
/* ── Linear's values on a computer ─────────────────────────────────────────────────────────────────────────────────── */
|
|
4720
|
-
/* Edged: a lone row a card of its own, the rows' room in it; an icon on a grey tile, no edge. */
|
|
4721
|
-
:where([data-setting-row-card="edged"]) .o-setting-row[data-alone]:not(.o-field-row) {
|
|
4722
|
-
min-height: var(--setting-rows-height, auto); padding: var(--setting-rows-pad, calc(var(--vk-spacing) * 3.5) calc(var(--vk-spacing) * 4));
|
|
4723
|
-
border: var(--vk-border-width) solid var(--vk-border); border-radius: var(--vk-radius-lg); background-color: var(--vk-raised);
|
|
4724
|
-
}
|
|
4725
|
-
:where([data-setting-row-card="edged"]) .o-setting-row-icon:not(:where([data-vk-phone], [data-vk-phone] *)) {
|
|
4726
|
-
border: 0; border-radius: var(--vk-radius-sm); background-color: var(--vk-neutral);
|
|
4727
|
-
}
|
|
4728
|
-
:where([data-setting-row-card="edged"]) .o-setting-row-icon:not(:where([data-vk-phone], [data-vk-phone] *)) > svg { width: calc(var(--vk-spacing) * 3.5); height: calc(var(--vk-spacing) * 3.5); }
|
|
4729
|
-
/* Inset: the line between rows from 16 in to 16 short, drawn under a row's own ground. */
|
|
4730
|
-
:where([data-setting-row-rows="inset"]) .o-setting-rows:not(.o-field-rows) > :is(.o-setting-row, .o-field) { border-top: 0; }
|
|
4731
|
-
:where([data-setting-row-rows="inset"]) .o-setting-rows:not(.o-field-rows) > * + :is(.o-setting-row, .o-field) {
|
|
4732
|
-
background-image: linear-gradient(var(--vk-border-subtle), var(--vk-border-subtle)); background-repeat: no-repeat;
|
|
4733
|
-
background-size: calc(100% - var(--vk-spacing) * 8) var(--vk-border-width); background-position: calc(var(--vk-spacing) * 4) 0;
|
|
4734
|
-
}
|
|
4735
|
-
/* Words: an action as its words, the row's own press, 28 tall, in the text colour, red where it can't be undone; its icon alone
|
|
4736
|
-
a 24 press in the subtle text. */
|
|
4737
|
-
.o-setting-row:not(.o-field-row) .o-setting-row-act {
|
|
4738
|
-
display: inline-flex; align-items: center; justify-content: center; min-height: calc(var(--vk-spacing) * 7); margin: 0;
|
|
4739
|
-
padding: 0 calc(var(--vk-spacing) * 1.75); border: 0; border-radius: var(--vk-radius-sm); font: inherit; font-size: var(--vk-font-size-sm);
|
|
4740
|
-
line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm)); font-weight: var(--vk-font-weight-medium); white-space: nowrap;
|
|
4741
|
-
color: var(--vk-fg); background-color: transparent; cursor: pointer; transition: background-color var(--vk-duration-fast) var(--vk-ease-out);
|
|
4742
|
-
}
|
|
4743
|
-
.o-setting-row:not(.o-field-row) .o-setting-row-act[data-kind="danger"] { color: var(--vk-danger); }
|
|
4744
|
-
.o-setting-row:not(.o-field-row) .o-setting-row-act[data-icon] { width: calc(var(--vk-spacing) * 6); min-height: calc(var(--vk-spacing) * 6); padding: 0; color: var(--vk-fg-subtle); }
|
|
4745
|
-
.o-setting-row:not(.o-field-row) .o-setting-row-act > svg { width: calc(var(--vk-spacing) * 3.5); height: calc(var(--vk-spacing) * 3.5); }
|
|
4746
|
-
@media (hover: hover) { .o-setting-row:not(.o-field-row) .o-setting-row-act:hover:not(:disabled) { background-color: var(--vk-hovered); } }
|
|
4747
|
-
.o-setting-row:not(.o-field-row) .o-setting-row-act:disabled { cursor: not-allowed; opacity: var(--vk-opacity-off); }
|
|
4748
|
-
/* A state as a dot in its colour and its words in the text colour; with no colour, its words alone. */
|
|
4749
|
-
.o-setting-row-said {
|
|
4750
|
-
display: inline-flex; align-items: center; gap: calc(var(--vk-spacing) * 1.5); white-space: nowrap; color: var(--vk-fg);
|
|
4751
|
-
font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm));
|
|
4752
|
-
}
|
|
4753
|
-
.o-setting-row-dot { flex: none; width: calc(var(--vk-spacing) * 1.5); height: calc(var(--vk-spacing) * 1.5); border-radius: var(--vk-radius-full); background-color: var(--setting-row-dot, var(--vk-fg-subtlest)); }
|
|
4754
|
-
.o-setting-row-dot[data-colour="blue"] { --setting-row-dot: var(--vk-label-blue); }
|
|
4755
|
-
.o-setting-row-dot[data-colour="green"] { --setting-row-dot: var(--vk-label-green); }
|
|
4756
|
-
.o-setting-row-dot[data-colour="amber"] { --setting-row-dot: var(--vk-label-amber); }
|
|
4757
|
-
.o-setting-row-dot[data-colour="red"] { --setting-row-dot: var(--vk-label-red); }
|
|
4758
|
-
.o-setting-row-dot[data-colour="purple"] { --setting-row-dot: var(--vk-label-purple); }
|
|
4759
|
-
.o-setting-row-dot[data-colour="pink"] { --setting-row-dot: var(--vk-label-pink); }
|
|
4760
|
-
.o-setting-row-dot[data-colour="teal"] { --setting-row-dot: var(--vk-label-teal); }
|
|
4761
|
-
/* A locked row under Words: its words greyed, its reason at the row's size. */
|
|
4762
|
-
:where([data-setting-row-end="words"]) .o-setting-row[data-locked]:not(.o-field-row) :is(.o-choice-label, .o-choice-note) { color: var(--vk-fg-subtlest); }
|
|
4763
|
-
:where([data-setting-row-end="words"]) .o-setting-row:not(.o-field-row) .o-setting-row-reason { font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm)); }
|
|
4764
|
-
/* At the end: a Field in the card is its row (field.tsx), its error red in its note's place, its Input or InputGroup 256 wide at
|
|
4765
|
-
the row's end, 64 tall at least under Inset, 16 above and below; every select at a row's end as wide as its value. */
|
|
4766
|
-
.o-setting-row-field > .o-choice-text { flex: 1 1 auto; min-width: 0; }
|
|
4767
|
-
.o-setting-row-field .o-setting-row-error { color: var(--vk-danger); }
|
|
4768
|
-
.o-setting-row-field > .o-setting-row-end > :is(.o-input, .o-input-group) { width: calc(var(--vk-spacing) * 64); }
|
|
4769
|
-
:where([data-setting-row-rows="inset"]) .o-setting-row-field { --setting-rows-height: calc(var(--vk-spacing) * 16); --setting-rows-pad: calc(var(--vk-spacing) * 4); }
|
|
4770
|
-
:where([data-setting-row-fields="end"]) :is(.o-setting-row-select, .o-setting-row-end .o-select) { width: auto; }
|
|
4771
|
-
:where([data-setting-row-fields="end"]) :is(.o-setting-row-select, .o-setting-row-end .o-select) .o-select-field { width: auto; }
|
|
4772
|
-
/* Boxes: a Field placed in a computer's card stands as a row, the rows' room round it and the line above it. */
|
|
4773
|
-
.o-setting-rows:not(.o-field-rows) > .o-field { box-sizing: border-box; padding: var(--setting-rows-pad, calc(var(--vk-spacing) * 3.5) calc(var(--vk-spacing) * 4)); border-top: var(--vk-border-width) solid var(--vk-border-subtle); }
|
|
4774
|
-
.o-setting-rows:not(.o-field-rows) > .o-field:first-child { border-top: 0; }
|
|
4775
|
-
|
|
4776
|
-
/* ── On a phone: Field rows' card and rows; a setting's words, value and › in them ─────────────────────────────────── */
|
|
4777
|
-
.o-setting-row.o-field-row > .o-choice-text { flex: 1 1 auto; }
|
|
4778
|
-
.o-setting-row-press {
|
|
4779
|
-
display: flex; flex: 1 1 auto; align-items: center; gap: calc(var(--vk-spacing) * 3); align-self: stretch; min-width: 0; margin: 0; padding: 0;
|
|
4780
|
-
border: 0; font: inherit; color: inherit; text-align: left; background-color: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent;
|
|
4781
|
-
}
|
|
4782
|
-
.o-setting-row.o-field-row .o-setting-row-end { flex: 0 1 auto; }
|
|
4783
|
-
.o-setting-row.o-field-row .o-setting-row-value { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
|
|
4784
|
-
.o-setting-rows-danger.o-field-rows :is(.o-choice-label, .o-setting-row-icon) { color: var(--vk-danger); }
|
|
4785
|
-
.o-setting-row.o-field-row .o-setting-row-end { gap: calc(var(--vk-spacing) * 3); }
|
|
4786
|
-
.o-setting-row.o-field-row .o-setting-row-value { max-width: calc(var(--vk-spacing) * 47.5); color: var(--vk-fg-subtlest); }
|
|
4787
|
-
.o-setting-row-chevron[data-phone] {
|
|
4788
|
-
width: calc(var(--vk-spacing) * 2.25); height: calc(var(--vk-spacing) * 3.75); margin: 0 calc(var(--vk-spacing) * 0.5) 0 calc(var(--vk-spacing) * 0.25); color: var(--vk-icon-disclosure);
|
|
4789
|
-
}
|
|
4790
|
-
/* One group, one way: a card where any row has a start (an icon, or a mark) gives every row the start's room, 28 an icon's or 32
|
|
4791
|
-
when a mark stands in it, so every row's words stand in one line; and each row's rule starts at the words, as iOS's Settings. */
|
|
4792
|
-
.o-setting-rows.o-field-rows:has(> .o-setting-row[data-setting-row-start]) { --setting-rows-start: calc(var(--vk-spacing) * 7); }
|
|
4793
|
-
.o-setting-rows.o-field-rows:has(> .o-setting-row[data-setting-row-start="mark"]) { --setting-rows-start: calc(var(--vk-spacing) * 8); }
|
|
4794
|
-
.o-setting-rows.o-field-rows:has(> .o-setting-row[data-setting-row-start]) > .o-setting-row:not([data-setting-row-start]) { padding-left: calc(var(--vk-spacing) * 7 + var(--setting-rows-start)); }
|
|
4795
|
-
.o-setting-rows.o-field-rows:has(> .o-setting-row[data-setting-row-start]) > .o-setting-row + .o-setting-row {
|
|
4796
|
-
background-position: calc(var(--vk-spacing) * 7 + var(--setting-rows-start)) 0;
|
|
4797
|
-
background-size: calc(100% - var(--vk-spacing) * 7 - var(--setting-rows-start) - var(--field-rows-line-end, 0px)) var(--vk-border-width);
|
|
4798
|
-
}
|
|
4799
|
-
/* A button's words at the row's end, a press of their own, a finger's height. */
|
|
4800
|
-
.o-setting-row-act {
|
|
4801
|
-
display: inline-flex; align-items: center; min-height: calc(var(--vk-spacing) * 11); margin: 0; padding: 0; border: 0; border-radius: var(--vk-radius-md);
|
|
4802
|
-
font: inherit; font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm)); white-space: nowrap; color: var(--vk-fg-brand); background-color: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent;
|
|
4803
|
-
}
|
|
4804
|
-
.o-setting-row-act:focus-visible { outline: var(--vk-focus-width) solid var(--vk-border-brand); outline-offset: var(--vk-focus-offset); }
|
|
4805
|
-
.o-setting-row-act:disabled { cursor: not-allowed; }
|
|
4806
|
-
/* A lone row: the row the press, its name in the link colour. */
|
|
4807
|
-
.o-setting-row.o-field-row[data-alone] .o-choice-label { color: var(--vk-fg-brand); }
|
|
4808
|
-
/* Locked: faded, but its line (the reason) kept; its Switch fades itself (switch.css). */
|
|
4809
|
-
.o-setting-row.o-field-row[data-locked] :is(.o-choice-label, .o-setting-row-icon, .o-setting-row-value, .o-setting-row-chevron, .o-setting-row-act),
|
|
4810
|
-
.o-setting-row.o-field-row[data-locked] > :first-child:not(.o-choice-text, .o-setting-row-press),
|
|
4811
|
-
.o-setting-row.o-field-row[data-locked] > .o-setting-row-press > :first-child:not(.o-choice-text) { opacity: var(--vk-opacity-off); }
|
|
4812
|
-
|
|
4813
|
-
/* ── Its icon on a phone, by the Icon option: Line, nothing picked, the glyph alone in the subtle text in a 28 box; Tile, a white
|
|
4814
|
-
glyph on a 28 tile of the colour the app passed (data-colour, a label colour), grey when it passed none. The danger zone's
|
|
4815
|
-
icons stay lines. Drawn wherever it stands on a phone, a row's start or a list's (SettingIcon). ─────────────────────────── */
|
|
4816
|
-
.o-setting-row-icon:where([data-vk-phone], [data-vk-phone] *) {
|
|
4817
|
-
width: calc(var(--vk-spacing) * 7); height: calc(var(--vk-spacing) * 7); border: 0; border-radius: 0; background-color: transparent; color: var(--vk-fg-subtle);
|
|
4818
|
-
}
|
|
4819
|
-
.o-setting-row-icon:where([data-vk-phone], [data-vk-phone] *) > svg { width: calc(var(--vk-spacing) * 5.5); height: calc(var(--vk-spacing) * 5.5); stroke-width: calc(var(--vk-spacing) * 0.4); }
|
|
4820
|
-
:where([data-setting-row-icon="tile"]) .o-setting-row-icon:where([data-vk-phone], [data-vk-phone] *):not(.o-setting-rows-danger *) {
|
|
4821
|
-
border-radius: var(--vk-radius-md); background-color: var(--setting-row-tile, var(--vk-fg-subtlest)); color: var(--vk-fg-inverse);
|
|
4822
|
-
}
|
|
4823
|
-
:where([data-setting-row-icon="tile"]) .o-setting-row-icon:where([data-vk-phone], [data-vk-phone] *):not(.o-setting-rows-danger *) > svg { width: calc(var(--vk-spacing) * 4.5); height: calc(var(--vk-spacing) * 4.5); stroke-width: calc(var(--vk-spacing) * 0.5); }
|
|
4824
|
-
.o-setting-row-icon[data-colour="blue"] { --setting-row-tile: var(--vk-label-blue); }
|
|
4825
|
-
.o-setting-row-icon[data-colour="green"] { --setting-row-tile: var(--vk-label-green); }
|
|
4826
|
-
.o-setting-row-icon[data-colour="amber"] { --setting-row-tile: var(--vk-label-amber); }
|
|
4827
|
-
.o-setting-row-icon[data-colour="red"] { --setting-row-tile: var(--vk-label-red); }
|
|
4828
|
-
.o-setting-row-icon[data-colour="purple"] { --setting-row-tile: var(--vk-label-purple); }
|
|
4829
|
-
.o-setting-row-icon[data-colour="pink"] { --setting-row-tile: var(--vk-label-pink); }
|
|
4830
|
-
.o-setting-row-icon[data-colour="teal"] { --setting-row-tile: var(--vk-label-teal); }
|
|
4831
|
-
|
|
4832
|
-
@media (prefers-reduced-motion: reduce) { .o-setting-row { transition: none; } }
|
|
4833
|
-
|
|
4834
|
-
/* ── The card's corners smooth: following the token corner-smoothing, drawn with the smooth outline (smooth.css) in every
|
|
4835
|
-
browser that knows shape(); one that doesn't keeps the corners above. Its round part is fitted to its smallest row, as a
|
|
4836
|
-
control's is. Nothing stands outside it (its rows were hidden past its edge), so it is clipped itself, its rows with it; its
|
|
4837
|
-
edge is a ring along the curve over its rows (::after), in the card's edge colour. ── */
|
|
4838
|
-
@supports (clip-path: shape(evenodd from 0 0, curve by 1px 1px with 1px 0 / 1px 0, close, move to 0 0, hline to 1px, close)) and (width: calc(tan(atan2(1px, 1px)) * 1px)) {
|
|
4839
|
-
.o-setting-rows:not(.o-field-rows), :where([data-setting-row-card="edged"]) .o-setting-row[data-alone]:not(.o-field-row) {
|
|
4840
|
-
--smooth-amount: var(--vk-corner-smoothing);
|
|
4841
|
-
--setting-rows-fit: min(var(--vk-radius-lg), var(--setting-rows-side, calc(var(--vk-spacing) * 7 + var(--vk-font-size-sm) * var(--vk-line-height-sm))) / (2 + 2 * var(--smooth-amount, 0.7)));
|
|
4842
|
-
--smooth-t: var(--setting-rows-fit); --smooth-side: var(--setting-rows-side, calc(var(--vk-spacing) * 7 + var(--vk-font-size-sm) * var(--vk-line-height-sm)));
|
|
4843
|
-
position: relative; overflow: visible; border-color: transparent; border-radius: var(--setting-rows-fit); clip-path: shape(var(--smooth-outline));
|
|
4844
|
-
}
|
|
4845
|
-
.o-setting-rows:not(.o-field-rows)::after, :where([data-setting-row-card="edged"]) .o-setting-row[data-alone]:not(.o-field-row)::after {
|
|
4846
|
-
--smooth-t: max(0px, var(--setting-rows-fit) - var(--vk-border-width)); --smooth-in: var(--vk-border-width);
|
|
4847
|
-
content: ""; position: absolute; inset: calc(var(--vk-border-width) * -1); z-index: 1; pointer-events: none;
|
|
4848
|
-
background-color: var(--setting-rows-edge, var(--vk-border)); clip-path: shape(var(--smooth-ring));
|
|
4849
|
-
}
|
|
4850
|
-
}
|
|
4851
|
-
|
|
4852
4660
|
.o-sheet, .o-sheet-backdrop, .o-sheet-below {
|
|
4853
4661
|
--sheet-spring: var(--vk-spring-quick); --sheet-spring-ease: var(--vk-ease-spring-quick); --sheet-spring-time: var(--vk-duration-spring-quick);
|
|
4854
4662
|
}
|
|
@@ -5419,34 +5227,6 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
5419
5227
|
row's, its mark and its height as above. */
|
|
5420
5228
|
.o-status.vk-status-row { font-size: inherit; }
|
|
5421
5229
|
|
|
5422
|
-
/* ── Settings rows: the words on the left, the switch on the right, in a bordered box ──────────────── */
|
|
5423
|
-
.o-switch-rows { display: grid; border: var(--vk-border-width) solid var(--vk-border); border-radius: var(--vk-radius-lg); overflow: hidden; }
|
|
5424
|
-
.o-switch-row {
|
|
5425
|
-
display: flex; align-items: center; justify-content: space-between; gap: calc(var(--vk-spacing) * 4);
|
|
5426
|
-
padding: calc(var(--vk-spacing) * 3.5) calc(var(--vk-spacing) * 4); border-top: var(--vk-border-width) solid var(--vk-border-subtle);
|
|
5427
|
-
-webkit-tap-highlight-color: transparent;
|
|
5428
|
-
}
|
|
5429
|
-
.o-switch-row:first-child { border-top: 0; }
|
|
5430
|
-
.o-switch-row .o-choice-label { font-weight: var(--vk-font-weight-medium); }
|
|
5431
|
-
/* ── The rows' card smooth: following the token corner-smoothing, drawn with the smooth outline (smooth.css) in every browser
|
|
5432
|
-
that knows shape(); one that doesn't keeps the corners above. Its round part is fitted to one row, as a control's is.
|
|
5433
|
-
Nothing stands outside it (its rows were hidden past its edge), so it is clipped itself, its rows with it, hiding nothing
|
|
5434
|
-
more; its edge is a ring along the curve over its rows (::after), as the Kbd's is. The Switch itself, a pill, stays as it
|
|
5435
|
-
draws. ── */
|
|
5436
|
-
@supports (clip-path: shape(evenodd from 0 0, curve by 1px 1px with 1px 0 / 1px 0, close, move to 0 0, hline to 1px, close)) and (width: calc(tan(atan2(1px, 1px)) * 1px)) {
|
|
5437
|
-
.o-switch-rows {
|
|
5438
|
-
--smooth-amount: var(--vk-corner-smoothing); --rows-card-side: calc(var(--vk-spacing) * 7 + var(--vk-font-size-sm) * var(--vk-line-height-sm));
|
|
5439
|
-
--rows-card-fit: min(var(--vk-radius-lg), var(--rows-card-side) / (2 + 2 * var(--smooth-amount, 0.7)));
|
|
5440
|
-
--smooth-t: var(--rows-card-fit); --smooth-side: var(--rows-card-side);
|
|
5441
|
-
position: relative; overflow: visible; border-color: transparent; border-radius: var(--rows-card-fit); clip-path: shape(var(--smooth-outline));
|
|
5442
|
-
}
|
|
5443
|
-
.o-switch-rows::after {
|
|
5444
|
-
--smooth-t: max(0px, var(--rows-card-fit) - var(--vk-border-width)); --smooth-in: var(--vk-border-width);
|
|
5445
|
-
content: ""; position: absolute; inset: calc(var(--vk-border-width) * -1); z-index: 1; pointer-events: none;
|
|
5446
|
-
background-color: var(--vk-border); clip-path: shape(var(--smooth-ring));
|
|
5447
|
-
}
|
|
5448
|
-
}
|
|
5449
|
-
|
|
5450
5230
|
/* ── Slim (after shadcn), the shape the others start from: a track 18 × 32 barely larger than its 16 thumb, 1 from its edge, with no
|
|
5451
5231
|
edge of its own; off, the field edge's grey; on, the brand ─────────────────────────────────────────────────────── */
|
|
5452
5232
|
.o-switch {
|
|
@@ -5602,32 +5382,6 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
5602
5382
|
|
|
5603
5383
|
@media (prefers-reduced-motion: reduce) { .o-switch::before, .o-switch-thumb, .o-switch-fill, .o-switch-i, .o-switch-o, .o-switch-word { transition: none; } }
|
|
5604
5384
|
|
|
5605
|
-
/* ── In a field: the tags before the caret, wrapping onto more lines as they grow; its words the Input's size, the box as tall
|
|
5606
|
-
as its words, on the tags' line. Its rules outweigh the Input's (input.css may come after this file). On a phone (the
|
|
5607
|
-
group's own mark, `data-vk-phone`) the field takes the phone's 44. ── */
|
|
5608
|
-
.o-input.o-input-group.o-tag-field { flex-wrap: wrap; height: auto; min-height: calc(var(--vk-spacing) * 9); padding-block: calc(var(--vk-spacing) * 1.5); }
|
|
5609
|
-
.o-input.o-input-group.o-tag-field:where([data-vk-phone], [data-vk-phone] *) { min-height: calc(var(--vk-spacing) * 11); padding-block: calc(var(--vk-spacing) * 2.5); }
|
|
5610
|
-
.o-input-control.o-tag-field-input { align-self: center; min-width: calc(var(--vk-spacing) * 20); }
|
|
5611
|
-
|
|
5612
|
-
/* ── In a row of Field rows (VK-978; the settings canvas, round 3: look-ios.mjs .tok, .caret): the card's row as iOS draws a To
|
|
5613
|
-
field. Its tokens fill the row from its words' inset, 6 apart, 12 above and below, wrapping as they grow, the caret after the
|
|
5614
|
-
last (the Input typed in place, input.css). Its label names the box but stands out of sight: its place titles the group. Each
|
|
5615
|
-
token is the Tag as iOS draws it: 30 tall, a pill on the neutral ground, no edge, no icon and no smoothing, the row's words in the normal
|
|
5616
|
-
weight, as wide as the row lets it; its remove button stays, quiet. Its rules outweigh the box's and the phone's above, and
|
|
5617
|
-
the Tag's own. ── */
|
|
5618
|
-
.o-field.o-field-row.o-tag-field-row { position: relative; }
|
|
5619
|
-
.o-tag-field-row > .o-field-row-label { position: absolute; width: var(--vk-border-width); height: var(--vk-border-width); overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
|
5620
|
-
.o-input.o-input-inrow.o-tag-field.o-tag-field { flex-wrap: wrap; align-content: center; gap: calc(var(--vk-spacing) * 1.5); min-height: 0; padding-block: calc(var(--vk-spacing) * 3); }
|
|
5621
|
-
.o-input.o-input-inrow.o-tag-field > .o-tag.o-tag {
|
|
5622
|
-
--tag-h: calc(var(--vk-spacing) * 7.5); --tag-r: var(--vk-radius-full);
|
|
5623
|
-
max-width: 100%; padding: 0 calc(var(--vk-spacing) * 2.5); border-radius: var(--tag-r); background-color: var(--vk-neutral); box-shadow: none;
|
|
5624
|
-
font-size: inherit; font-weight: var(--vk-font-weight-normal);
|
|
5625
|
-
}
|
|
5626
|
-
/* A pill has no corner to smooth: the token paints its own ground, and its cut (the smooth ground and edge) stands down. */
|
|
5627
|
-
.o-input-inrow.o-tag-field > .o-tag > :is(.o-tag-cut, .o-tag-icon) { display: none; }
|
|
5628
|
-
/* Once a token stands, the caret alone after it: the placeholder only asks while the row is empty. */
|
|
5629
|
-
.o-input-inrow.o-tag-field:has(> .o-tag) > .o-tag-field-input::placeholder { color: transparent; }
|
|
5630
|
-
|
|
5631
5385
|
/* ── A tag: 22px, its edge drawn inside, the icon then the word; a long word cut at 200px. Its ground, edge, height and corner
|
|
5632
5386
|
are variables, which the Option's looks and states set, so its cut draws them under Smooth: --tag-ground (none),
|
|
5633
5387
|
--tag-edge, --tag-h, --tag-r, and --tag-rr, the corner its height leaves room for; --tag-shadow: none where a look draws no
|
|
@@ -5796,9 +5550,11 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
5796
5550
|
row's box (the popover marked data-field-row-long-editor, field-row/editors/RowTextEditor.tsx), the popover its only frame. The
|
|
5797
5551
|
box is the popover's whole content: no edge, ring or ground of its own, its words as far from its edge as the row's box holds
|
|
5798
5552
|
them (--vk-field-row-box-h and -x, undeclared 32 and 8), so its first line stands where the row's words stood. It is as tall as its
|
|
5799
|
-
text up to the editor's most height (--vk-editor-max-h, the popover's own cap; undeclared, 320), then it scrolls.
|
|
5800
|
-
row's
|
|
5801
|
-
|
|
5553
|
+
text up to the editor's most height (--vk-editor-max-h, the popover's own cap; undeclared, 320), then it scrolls. The popover's
|
|
5554
|
+
corners are the row box's own, so nothing of the box shows round them (VK-1110): the box's rounded-md, or under the Field's Box
|
|
5555
|
+
(data-field-row-long-editor="box") its corner, --vk-field-row-box-r (undeclared 8). (0,5,0): over the row's place. ──────────── */
|
|
5556
|
+
.o-popover[data-field-row-long-editor] { --popover-pad: 0px; --popover-corners: var(--vk-radius-md); }
|
|
5557
|
+
.o-popover[data-field-row-long-editor="box"] { --popover-corners: var(--vk-field-row-box-r, calc(var(--vk-spacing) * 2)); }
|
|
5802
5558
|
[data-field-row-long-editor] .o-text-editor[data-text-place="row"][data-text-form="computer"] {
|
|
5803
5559
|
--inline-input-row: var(--vk-field-row-box-h, calc(var(--vk-spacing) * 8)); --inline-input-edge: 0px; --inline-input-ring: 0px;
|
|
5804
5560
|
}
|
|
@@ -8856,6 +8612,9 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
8856
8612
|
.\[\&\:\:-webkit-search-decoration\]\:appearance-none::-webkit-search-decoration {
|
|
8857
8613
|
appearance: none;
|
|
8858
8614
|
}
|
|
8615
|
+
.\[\&\:not\(\:has\(\>\:not\(\[data-toolbar-spacer\]\,\[hidden\]\,\[data-toolbar-item\]\:empty\)\)\)\]\:hidden:not(:has( > :not([data-toolbar-spacer], [hidden], [data-toolbar-item]:empty))) {
|
|
8616
|
+
display: none;
|
|
8617
|
+
}
|
|
8859
8618
|
.\[\&\>span\]\:underline-offset-\(--vk-underline-offset\,3px\) > span {
|
|
8860
8619
|
text-underline-offset: var(--vk-underline-offset,3px);
|
|
8861
8620
|
}
|
|
@@ -9365,8 +9124,6 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
9365
9124
|
--vk-scrollbar-thumb: hsl(210 1% 82%);
|
|
9366
9125
|
--vk-scrollbar-thumb-hovered: hsl(210 1% 72%);
|
|
9367
9126
|
--vk-scrollbar-hold: 1000ms;
|
|
9368
|
-
--vk-icon-disclosure: hsl(210 1% 72%);
|
|
9369
|
-
--vk-opacity-off: 0.45;
|
|
9370
9127
|
--vk-backdrop-sheet: hsl(214 30% 10% / 0.3);
|
|
9371
9128
|
--vk-backdrop-sheet-light: hsl(214 30% 10% / 0.15);
|
|
9372
9129
|
--vk-backdrop-stacked: hsl(214 30% 10% / 0.2);
|
|
@@ -9608,7 +9365,6 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
9608
9365
|
--vk-header: hsl(210 6% 7%);
|
|
9609
9366
|
--vk-scrollbar-thumb: hsl(210 2% 26.5%);
|
|
9610
9367
|
--vk-scrollbar-thumb-hovered: hsl(210 1% 37%);
|
|
9611
|
-
--vk-icon-disclosure: hsl(210 1% 37%);
|
|
9612
9368
|
--vk-backdrop-sheet: hsl(0 0% 0% / 0.45);
|
|
9613
9369
|
--vk-backdrop-sheet-light: hsl(0 0% 0% / 0.22);
|
|
9614
9370
|
--vk-backdrop-stacked: hsl(0 0% 0% / 0.3);
|