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
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/* The SwitchRow and SwitchRows, as the Outright kit draws them (switch-row/switch-row.tsx): a setting in a settings list, its
|
|
2
|
-
words (choice.css) on the left and the Switch (switch.css) on the right, which alone switches it (KIT-969); the rows in a
|
|
3
|
-
bordered box.
|
|
4
|
-
|
|
5
|
-
The rules sit in the components layer, so a utility class on a row still wins. */
|
|
6
|
-
@layer components {
|
|
7
|
-
|
|
8
|
-
/* ── Settings rows: the words on the left, the switch on the right, in a bordered box ──────────────── */
|
|
9
|
-
.o-switch-rows { display: grid; border: var(--vk-border-width) solid var(--vk-border); border-radius: var(--vk-radius-lg); overflow: hidden; }
|
|
10
|
-
.o-switch-row {
|
|
11
|
-
display: flex; align-items: center; justify-content: space-between; gap: calc(var(--vk-spacing) * 4);
|
|
12
|
-
padding: calc(var(--vk-spacing) * 3.5) calc(var(--vk-spacing) * 4); border-top: var(--vk-border-width) solid var(--vk-border-subtle);
|
|
13
|
-
-webkit-tap-highlight-color: transparent;
|
|
14
|
-
}
|
|
15
|
-
.o-switch-row:first-child { border-top: 0; }
|
|
16
|
-
.o-switch-row .o-choice-label { font-weight: var(--vk-font-weight-medium); }
|
|
17
|
-
/* ── The rows' card smooth: following the token corner-smoothing, drawn with the smooth outline (smooth.css) in every browser
|
|
18
|
-
that knows shape(); one that doesn't keeps the corners above. Its round part is fitted to one row, as a control's is.
|
|
19
|
-
Nothing stands outside it (its rows were hidden past its edge), so it is clipped itself, its rows with it, hiding nothing
|
|
20
|
-
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
|
|
21
|
-
draws. ── */
|
|
22
|
-
@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)) {
|
|
23
|
-
.o-switch-rows {
|
|
24
|
-
--smooth-amount: var(--vk-corner-smoothing); --rows-card-side: calc(var(--vk-spacing) * 7 + var(--vk-font-size-sm) * var(--vk-line-height-sm));
|
|
25
|
-
--rows-card-fit: min(var(--vk-radius-lg), var(--rows-card-side) / (2 + 2 * var(--smooth-amount, 0.7)));
|
|
26
|
-
--smooth-t: var(--rows-card-fit); --smooth-side: var(--rows-card-side);
|
|
27
|
-
position: relative; overflow: visible; border-color: transparent; border-radius: var(--rows-card-fit); clip-path: shape(var(--smooth-outline));
|
|
28
|
-
}
|
|
29
|
-
.o-switch-rows::after {
|
|
30
|
-
--smooth-t: max(0px, var(--rows-card-fit) - var(--vk-border-width)); --smooth-in: var(--vk-border-width);
|
|
31
|
-
content: ""; position: absolute; inset: calc(var(--vk-border-width) * -1); z-index: 1; pointer-events: none;
|
|
32
|
-
background-color: var(--vk-border); clip-path: shape(var(--smooth-ring));
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { type FieldError } from "../field/field.js";
|
|
3
|
-
export interface TagFieldProps {
|
|
4
|
-
/** What the field holds, above it. */
|
|
5
|
-
label: React.ReactNode;
|
|
6
|
-
/** Under the field: what the tags are for, or why it is off. */
|
|
7
|
-
note?: React.ReactNode;
|
|
8
|
-
/** Under the field in place of the note: the fix; several, as a list, each once. */
|
|
9
|
-
error?: FieldError;
|
|
10
|
-
/** Off: nothing typed in, and its tags have no remove button. */
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
defaultValue?: string[];
|
|
13
|
-
/** Tags that stay: drawn first, with no remove button, and Backspace passes them by. One missing from the value is put first. */
|
|
14
|
-
fixed?: string[];
|
|
15
|
-
/** A quiet word after a tag's name, by its name ({ EUR: "main" }). */
|
|
16
|
-
asides?: Record<string, React.ReactNode>;
|
|
17
|
-
onValueChange?: (tags: string[]) => void;
|
|
18
|
-
placeholder?: string;
|
|
19
|
-
className?: string;
|
|
20
|
-
/** Draws a state for a sheet ("hover", "focus"). */
|
|
21
|
-
"data-force"?: string;
|
|
22
|
-
}
|
|
23
|
-
/** Tags inside the Input's field, before the caret, in a Field with its label, note and error. */
|
|
24
|
-
export declare function TagField({ label, note, error, disabled, defaultValue, fixed, asides, onValueChange, placeholder, className, "data-force": force }: TagFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import { cx } from "../../internal/cx.js";
|
|
4
|
-
import { FieldRowsCardContext } from "../../internal/field-rows.js";
|
|
5
|
-
import { Field } from "../field/field.js";
|
|
6
|
-
import { Input, InputGroup } from "../input/input.js";
|
|
7
|
-
import { Tag } from "../tag/tag.js";
|
|
8
|
-
export function TagField({ label, note, error, disabled, defaultValue = [], fixed = [], asides, onValueChange, placeholder = "Add a tag", className, "data-force": force }) {
|
|
9
|
-
const [tags, setTags] = React.useState(() => [...fixed, ...defaultValue.filter((t) => !fixed.includes(t))]), [draft, setDraft] = React.useState("");
|
|
10
|
-
const loose = tags.filter((t) => !fixed.includes(t));
|
|
11
|
-
const set = (next) => { setTags(next); onValueChange?.(next); };
|
|
12
|
-
const inRows = React.useContext(FieldRowsCardContext) != null;
|
|
13
|
-
const add = () => { const w = draft.trim(); if (w && !tags.includes(w))
|
|
14
|
-
set([...tags, w]); setDraft(""); };
|
|
15
|
-
return (_jsx(Field, { label: label, note: note, error: error, disabled: disabled, className: cx(inRows && "o-tag-field-row", className), children: _jsxs(InputGroup, { className: "o-tag-field", "data-force": force, children: [tags.map((t) => _jsx(Tag, { aside: asides?.[t], onRemove: disabled || fixed.includes(t) ? undefined : () => set(tags.filter((x) => x !== t)), children: t }, t)), _jsx(Input, { className: "o-tag-field-input", value: draft, placeholder: placeholder, autoComplete: "off", onChange: (e) => setDraft(e.currentTarget.value), onBlur: add, onKeyDown: (e) => {
|
|
16
|
-
if (e.key === "Enter" || e.key === ",") {
|
|
17
|
-
e.preventDefault();
|
|
18
|
-
add();
|
|
19
|
-
}
|
|
20
|
-
else if (e.key === "Backspace" && !draft && loose.length) {
|
|
21
|
-
const last = loose[loose.length - 1];
|
|
22
|
-
set(tags.filter((x) => x !== last));
|
|
23
|
-
}
|
|
24
|
-
} })] }) }));
|
|
25
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export declare const TAG_FIELD_TOKENS: readonly [{
|
|
2
|
-
readonly name: "--vk-border-width";
|
|
3
|
-
readonly kind: "size";
|
|
4
|
-
readonly outright: "--border-width";
|
|
5
|
-
}, {
|
|
6
|
-
readonly name: "--vk-font-weight-normal";
|
|
7
|
-
readonly kind: "size";
|
|
8
|
-
readonly outright: "--font-weight-normal";
|
|
9
|
-
}, {
|
|
10
|
-
readonly name: "--vk-neutral";
|
|
11
|
-
readonly kind: "colour";
|
|
12
|
-
readonly outright: "--background-neutral";
|
|
13
|
-
}, {
|
|
14
|
-
readonly name: "--vk-radius-full";
|
|
15
|
-
readonly kind: "size";
|
|
16
|
-
readonly outright: "--radius-full";
|
|
17
|
-
}, {
|
|
18
|
-
readonly name: "--vk-spacing";
|
|
19
|
-
readonly kind: "size";
|
|
20
|
-
readonly outright: "--spacing";
|
|
21
|
-
}];
|
|
22
|
-
/** The TagField has no machinery of its own. */
|
|
23
|
-
export declare const TAG_FIELD_PRIVATE: readonly [];
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export const TAG_FIELD_TOKENS = [
|
|
2
|
-
{ name: "--vk-border-width", kind: "size", outright: "--border-width" },
|
|
3
|
-
{ name: "--vk-font-weight-normal", kind: "size", outright: "--font-weight-normal" },
|
|
4
|
-
{ name: "--vk-neutral", kind: "colour", outright: "--background-neutral" },
|
|
5
|
-
{ name: "--vk-radius-full", kind: "size", outright: "--radius-full" },
|
|
6
|
-
{ name: "--vk-spacing", kind: "size", outright: "--spacing" },
|
|
7
|
-
];
|
|
8
|
-
export const TAG_FIELD_PRIVATE = [];
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/* The TagField, as the Outright kit draws it: the Tag in a field (tag-field/tag-field.tsx). The field is the Input's own (an
|
|
2
|
-
InputGroup, so input.css draws its edge, every state and option); the chip is the Tag's (tag.css).
|
|
3
|
-
|
|
4
|
-
The rules sit in the components layer, so a utility class on the field still wins. */
|
|
5
|
-
@layer components {
|
|
6
|
-
|
|
7
|
-
/* ── 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
|
|
8
|
-
as its words, on the tags' line. Its rules outweigh the Input's (input.css may come after this file). On a phone (the
|
|
9
|
-
group's own mark, `data-vk-phone`) the field takes the phone's 44. ── */
|
|
10
|
-
.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); }
|
|
11
|
-
.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); }
|
|
12
|
-
.o-input-control.o-tag-field-input { align-self: center; min-width: calc(var(--vk-spacing) * 20); }
|
|
13
|
-
|
|
14
|
-
/* ── 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
|
|
15
|
-
field. Its tokens fill the row from its words' inset, 6 apart, 12 above and below, wrapping as they grow, the caret after the
|
|
16
|
-
last (the Input typed in place, input.css). Its label names the box but stands out of sight: its place titles the group. Each
|
|
17
|
-
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
|
|
18
|
-
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
|
|
19
|
-
the Tag's own. ── */
|
|
20
|
-
.o-field.o-field-row.o-tag-field-row { position: relative; }
|
|
21
|
-
.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; }
|
|
22
|
-
.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); }
|
|
23
|
-
.o-input.o-input-inrow.o-tag-field > .o-tag.o-tag {
|
|
24
|
-
--tag-h: calc(var(--vk-spacing) * 7.5); --tag-r: var(--vk-radius-full);
|
|
25
|
-
max-width: 100%; padding: 0 calc(var(--vk-spacing) * 2.5); border-radius: var(--tag-r); background-color: var(--vk-neutral); box-shadow: none;
|
|
26
|
-
font-size: inherit; font-weight: var(--vk-font-weight-normal);
|
|
27
|
-
}
|
|
28
|
-
/* A pill has no corner to smooth: the token paints its own ground, and its cut (the smooth ground and edge) stands down. */
|
|
29
|
-
.o-input-inrow.o-tag-field > .o-tag > :is(.o-tag-cut, .o-tag-icon) { display: none; }
|
|
30
|
-
/* Once a token stands, the caret alone after it: the placeholder only asks while the row is empty. */
|
|
31
|
-
.o-input-inrow.o-tag-field:has(> .o-tag) > .o-tag-field-input::placeholder { color: transparent; }
|
|
32
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
# The setting row's tokens
|
|
2
|
-
|
|
3
|
-
Every name the setting row's stylesheet (`setting-row.css`) reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
|
|
4
|
-
|
|
5
|
-
| name | kind | the Outright token | default |
|
|
6
|
-
| ---- | ---- | ------------------ | ------- |
|
|
7
|
-
| `--vk-border` | colour | `border` | `hsl(220 7% 90%)` · dark `hsl(225 7% 15%)` |
|
|
8
|
-
| `--vk-border-subtle` | colour | `border-subtle` | `hsl(0 0% 94%)` · dark `hsl(225 7% 11%)` |
|
|
9
|
-
| `--vk-border-danger` | colour | `border-danger` | `hsl(3 87% 68%)` · dark `hsl(1 55% 46.5%)` |
|
|
10
|
-
| `--vk-hovered` | colour | `surface-hovered` | `hsl(0 0% 96.5%)` · dark `hsl(210 4% 9.5%)` |
|
|
11
|
-
| `--vk-raised` | colour | `surface-raised` | `hsl(0 0% 100%)` · dark `hsl(226 10% 10%)` |
|
|
12
|
-
| `--vk-danger` | colour | `text-danger` | `hsl(0 81% 58%)` |
|
|
13
|
-
| `--vk-fg` | colour | `text` | `hsl(210 6% 7%)` · dark `hsl(210 8% 95%)` |
|
|
14
|
-
| `--vk-fg-subtle` | colour | `text-subtle` | `hsl(0 0% 35%)` · dark `hsl(258 4% 72%)` |
|
|
15
|
-
| `--vk-fg-subtlest` | colour | `text-subtlest` | `hsl(210 1% 53.5%)` · dark `hsl(210 3% 53%)` |
|
|
16
|
-
| `--vk-fg-brand` | colour | `link` | `hsl(219 87% 54%)` · dark `hsl(219 87% 59.5%)` |
|
|
17
|
-
| `--vk-border-brand` | colour | `border-focused` | `hsl(219 90% 65.5%)` · dark `hsl(219 66% 47%)` |
|
|
18
|
-
| `--vk-label-blue` | colour | `label-blue` | `hsl(219 87% 54%)` · dark `hsl(219 87% 59.5%)` |
|
|
19
|
-
| `--vk-label-green` | colour | `label-green` | `hsl(158 98% 26%)` · dark `hsl(158 98% 34%)` |
|
|
20
|
-
| `--vk-label-amber` | colour | `label-amber` | `hsl(25 92% 41%)` |
|
|
21
|
-
| `--vk-label-red` | colour | `label-red` | `hsl(0 81% 58%)` |
|
|
22
|
-
| `--vk-label-purple` | colour | `label-purple` | `hsl(260 100% 64.5%)` · dark `hsl(260 100% 69%)` |
|
|
23
|
-
| `--vk-label-pink` | colour | `label-pink` | `hsl(335 73% 49.5%)` · dark `hsl(335 73% 57.5%)` |
|
|
24
|
-
| `--vk-label-teal` | colour | `label-teal` | `hsl(192 87% 32%)` · dark `hsl(192 87% 40%)` |
|
|
25
|
-
| `--vk-fg-inverse` | colour | `text-inverse` | `hsl(0 0% 100%)` · dark `hsl(210 8% 95%)` |
|
|
26
|
-
| `--vk-neutral` | colour | `background-neutral` | `hsl(0 0% 94%)` · dark `hsl(225 7% 11%)` |
|
|
27
|
-
| `--vk-icon-disclosure` | colour | `icon-disclosure` | `hsl(210 1% 72%)` · dark `hsl(210 1% 37%)` |
|
|
28
|
-
| `--vk-border-width` | size | `border-width` | `1px` |
|
|
29
|
-
| `--vk-corner-smoothing` | size | `corner-smoothing` | `0.7` |
|
|
30
|
-
| `--vk-font-size-sm` | size | `text-sm` | `14px` |
|
|
31
|
-
| `--vk-font-size-xs` | size | `text-xs` | `12px` |
|
|
32
|
-
| `--vk-focus-width` | size | `focus-width` | `2px` |
|
|
33
|
-
| `--vk-focus-offset` | size | `focus-offset` | `2px` |
|
|
34
|
-
| `--vk-font-weight-medium` | size | `font-weight-medium` | `500` |
|
|
35
|
-
| `--vk-line-height-sm` | size | `text-sm--line-height` | `1.4286` |
|
|
36
|
-
| `--vk-line-height-xs` | size | `text-xs--line-height` | `1.3333` |
|
|
37
|
-
| `--vk-radius-lg` | size | `radius-lg` | `10px` |
|
|
38
|
-
| `--vk-radius-md` | size | `radius-md` | `7.5px` |
|
|
39
|
-
| `--vk-radius-sm` | size | `radius-sm` | `5px` |
|
|
40
|
-
| `--vk-radius-full` | size | `radius-full` | `9999px` |
|
|
41
|
-
| `--vk-spacing` | size | `spacing` | `4px` |
|
|
42
|
-
| `--vk-opacity-off` | size | `opacity-off` | `0.45` |
|
|
43
|
-
| `--vk-duration-fast` | motion | `duration-fast` | `150ms` |
|
|
44
|
-
| `--vk-ease-out` | motion | `ease-out` | `cubic-bezier(0, 0, 0.2, 1)` |
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# The SwitchRow's tokens
|
|
2
|
-
|
|
3
|
-
Every name the SwitchRow's and SwitchRows' stylesheet (`switch-row.css`) reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
|
|
4
|
-
|
|
5
|
-
| name | kind | the Outright token | default |
|
|
6
|
-
| ---- | ---- | ------------------ | ------- |
|
|
7
|
-
| `--vk-border` | colour | `border` | `hsl(220 7% 90%)` · dark `hsl(225 7% 15%)` |
|
|
8
|
-
| `--vk-border-subtle` | colour | `border-subtle` | `hsl(0 0% 94%)` · dark `hsl(225 7% 11%)` |
|
|
9
|
-
| `--vk-border-width` | size | `border-width` | `1px` |
|
|
10
|
-
| `--vk-corner-smoothing` | size | `corner-smoothing` | `0.7` |
|
|
11
|
-
| `--vk-font-size-sm` | size | `text-sm` | `14px` |
|
|
12
|
-
| `--vk-font-weight-medium` | size | `font-weight-medium` | `500` |
|
|
13
|
-
| `--vk-line-height-sm` | size | `text-sm--line-height` | `1.4286` |
|
|
14
|
-
| `--vk-radius-lg` | size | `radius-lg` | `10px` |
|
|
15
|
-
| `--vk-spacing` | size | `spacing` | `4px` |
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
# The TagField's tokens
|
|
2
|
-
|
|
3
|
-
Every name the TagField's stylesheet (`tag-field.css`) reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
|
|
4
|
-
|
|
5
|
-
| name | kind | the Outright token | default |
|
|
6
|
-
| ---- | ---- | ------------------ | ------- |
|
|
7
|
-
| `--vk-border-width` | size | `border-width` | `1px` |
|
|
8
|
-
| `--vk-font-weight-normal` | size | `font-weight-normal` | `400` |
|
|
9
|
-
| `--vk-neutral` | colour | `background-neutral` | `hsl(0 0% 94%)` · dark `hsl(225 7% 11%)` |
|
|
10
|
-
| `--vk-radius-full` | size | `radius-full` | `9999px` |
|
|
11
|
-
| `--vk-spacing` | size | `spacing` | `4px` |
|