viewkitjs 0.22.0 → 0.23.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.
Files changed (203) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/package.json +2 -4
  3. package/views/dist/contract.d.ts +6 -289
  4. package/views/dist/contract.js +1 -96
  5. package/views/dist/controls/atoms.d.ts +8 -0
  6. package/views/dist/controls/atoms.js +8 -0
  7. package/views/dist/controls/button/tokens.d.ts +351 -0
  8. package/views/dist/controls/button/tokens.js +90 -0
  9. package/views/dist/controls/checkbox/checkbox.d.ts +28 -0
  10. package/views/dist/controls/checkbox/checkbox.js +15 -0
  11. package/views/dist/controls/checkbox/looks.d.ts +3 -0
  12. package/views/dist/controls/checkbox/looks.js +8 -0
  13. package/views/dist/controls/checkbox/map-checkbox.d.ts +2 -0
  14. package/views/dist/controls/checkbox/map-checkbox.js +5 -0
  15. package/views/dist/controls/checkbox/tokens.d.ts +131 -0
  16. package/views/dist/controls/checkbox/tokens.js +35 -0
  17. package/views/dist/controls/checkbox.css +133 -0
  18. package/views/dist/controls/controls.d.ts +12 -3
  19. package/views/dist/controls/controls.js +13 -1
  20. package/views/dist/controls/field/field.d.ts +94 -0
  21. package/views/dist/controls/field/field.js +46 -0
  22. package/views/dist/controls/field/looks.d.ts +13 -0
  23. package/views/dist/controls/field/looks.js +22 -0
  24. package/views/dist/controls/field/tokens.d.ts +75 -0
  25. package/views/dist/controls/field/tokens.js +21 -0
  26. package/views/dist/controls/field.css +98 -0
  27. package/views/dist/controls/glass-button/glass-button.d.ts +40 -0
  28. package/views/dist/controls/glass-button/glass-button.js +16 -0
  29. package/views/dist/controls/glass-button/looks.d.ts +4 -0
  30. package/views/dist/controls/glass-button/looks.js +4 -0
  31. package/views/dist/controls/glass-button/tokens.d.ts +127 -0
  32. package/views/dist/controls/glass-button/tokens.js +34 -0
  33. package/views/dist/controls/glass-button.css +111 -0
  34. package/views/dist/controls/index.d.ts +26 -0
  35. package/views/dist/controls/index.js +25 -0
  36. package/views/dist/controls/inline-input/inline-input.d.ts +14 -0
  37. package/views/dist/controls/inline-input/inline-input.js +10 -0
  38. package/views/dist/controls/inline-input/looks.d.ts +3 -0
  39. package/views/dist/controls/inline-input/looks.js +16 -0
  40. package/views/dist/controls/inline-input/tokens.d.ts +79 -0
  41. package/views/dist/controls/inline-input/tokens.js +22 -0
  42. package/views/dist/controls/inline-input.css +78 -0
  43. package/views/dist/controls/input/autofill.d.ts +25 -0
  44. package/views/dist/controls/input/autofill.js +17 -0
  45. package/views/dist/controls/input/input.d.ts +119 -0
  46. package/views/dist/controls/input/input.js +127 -0
  47. package/views/dist/controls/input/looks.d.ts +41 -0
  48. package/views/dist/controls/input/looks.js +48 -0
  49. package/views/dist/controls/input/map-input.d.ts +2 -0
  50. package/views/dist/controls/input/map-input.js +5 -0
  51. package/views/dist/controls/input/tokens.d.ts +171 -0
  52. package/views/dist/controls/input/tokens.js +45 -0
  53. package/views/dist/controls/input.css +381 -0
  54. package/views/dist/controls/internal/anchor.d.ts +16 -0
  55. package/views/dist/controls/internal/anchor.js +8 -0
  56. package/views/dist/controls/internal/close-reason.d.ts +5 -0
  57. package/views/dist/controls/internal/close-reason.js +2 -0
  58. package/views/dist/controls/internal/popup-host.d.ts +7 -0
  59. package/views/dist/controls/internal/popup-host.js +10 -0
  60. package/views/dist/controls/internal/scroll.d.ts +11 -0
  61. package/views/dist/controls/internal/scroll.js +14 -0
  62. package/views/dist/controls/kbd/kbd.d.ts +13 -0
  63. package/views/dist/controls/kbd/kbd.js +10 -0
  64. package/views/dist/controls/kbd/looks.d.ts +4 -0
  65. package/views/dist/controls/kbd/looks.js +4 -0
  66. package/views/dist/controls/kbd/tokens.d.ts +47 -0
  67. package/views/dist/controls/kbd/tokens.js +14 -0
  68. package/views/dist/controls/kbd.css +46 -0
  69. package/views/dist/controls/number-field/number-field.d.ts +48 -0
  70. package/views/dist/controls/number-field/number-field.js +34 -0
  71. package/views/dist/controls/number-field/tokens.d.ts +47 -0
  72. package/views/dist/controls/number-field/tokens.js +14 -0
  73. package/views/dist/controls/number-field.css +54 -0
  74. package/views/dist/controls/option/atom-tag.d.ts +6 -0
  75. package/views/dist/controls/option/atom-tag.js +6 -0
  76. package/views/dist/controls/option/looks.d.ts +7 -0
  77. package/views/dist/controls/option/looks.js +21 -0
  78. package/views/dist/controls/option/option.d.ts +35 -0
  79. package/views/dist/controls/option/option.js +32 -0
  80. package/views/dist/controls/option/tokens.d.ts +223 -0
  81. package/views/dist/controls/option/tokens.js +58 -0
  82. package/views/dist/controls/option.css +92 -0
  83. package/views/dist/controls/phone-header/header-bar.d.ts +18 -0
  84. package/views/dist/controls/phone-header/header-bar.js +9 -0
  85. package/views/dist/controls/phone-header/looks.d.ts +4 -0
  86. package/views/dist/controls/phone-header/looks.js +4 -0
  87. package/views/dist/controls/phone-header/soft-edge.d.ts +5 -0
  88. package/views/dist/controls/phone-header/soft-edge.js +3 -0
  89. package/views/dist/controls/phone-header/tokens.d.ts +59 -0
  90. package/views/dist/controls/phone-header/tokens.js +17 -0
  91. package/views/dist/controls/phone-header.css +51 -0
  92. package/views/dist/controls/popover/looks.d.ts +4 -0
  93. package/views/dist/controls/popover/looks.js +10 -0
  94. package/views/dist/controls/popover/map-popover.d.ts +3 -0
  95. package/views/dist/controls/popover/map-popover.js +5 -0
  96. package/views/dist/controls/popover/popover.d.ts +74 -0
  97. package/views/dist/controls/popover/popover.js +106 -0
  98. package/views/dist/controls/popover/tokens.d.ts +83 -0
  99. package/views/dist/controls/popover/tokens.js +23 -0
  100. package/views/dist/controls/popover.css +94 -0
  101. package/views/dist/controls/scrollbar/scrollbar.d.ts +10 -0
  102. package/views/dist/controls/scrollbar/scrollbar.js +143 -0
  103. package/views/dist/controls/scrollbar/tokens.d.ts +43 -0
  104. package/views/dist/controls/scrollbar/tokens.js +13 -0
  105. package/views/dist/controls/scrollbar.css +47 -0
  106. package/views/dist/controls/sheet/bottom-sheet.d.ts +98 -0
  107. package/views/dist/controls/sheet/bottom-sheet.js +372 -0
  108. package/views/dist/controls/sheet/forms.d.ts +38 -0
  109. package/views/dist/controls/sheet/forms.js +26 -0
  110. package/views/dist/controls/sheet/looks.d.ts +4 -0
  111. package/views/dist/controls/sheet/looks.js +10 -0
  112. package/views/dist/controls/sheet/map-sheet.d.ts +3 -0
  113. package/views/dist/controls/sheet/map-sheet.js +12 -0
  114. package/views/dist/controls/sheet/spring.d.ts +22 -0
  115. package/views/dist/controls/sheet/spring.js +48 -0
  116. package/views/dist/controls/sheet/tokens.d.ts +143 -0
  117. package/views/dist/controls/sheet/tokens.js +38 -0
  118. package/views/dist/controls/sheet.css +220 -0
  119. package/views/dist/controls/spinner/tokens.d.ts +55 -0
  120. package/views/dist/controls/spinner/tokens.js +16 -0
  121. package/views/dist/controls/status/atom-status-badge.d.ts +10 -0
  122. package/views/dist/controls/status/atom-status-badge.js +13 -0
  123. package/views/dist/controls/status/looks.d.ts +4 -0
  124. package/views/dist/controls/status/looks.js +22 -0
  125. package/views/dist/controls/status/marks.d.ts +26 -0
  126. package/views/dist/controls/status/marks.js +73 -0
  127. package/views/dist/controls/status/status.d.ts +43 -0
  128. package/views/dist/controls/status/status.js +26 -0
  129. package/views/dist/controls/status/tokens.d.ts +407 -0
  130. package/views/dist/controls/status/tokens.js +104 -0
  131. package/views/dist/controls/status.css +164 -0
  132. package/views/dist/controls/switch/looks.d.ts +4 -0
  133. package/views/dist/controls/switch/looks.js +19 -0
  134. package/views/dist/controls/switch/switch.d.ts +15 -0
  135. package/views/dist/controls/switch/switch.js +11 -0
  136. package/views/dist/controls/switch/tokens.d.ts +139 -0
  137. package/views/dist/controls/switch/tokens.js +37 -0
  138. package/views/dist/controls/switch.css +169 -0
  139. package/views/dist/controls/tag/atom-cell-more.d.ts +3 -0
  140. package/views/dist/controls/tag/atom-cell-more.js +5 -0
  141. package/views/dist/controls/tag/looks.d.ts +4 -0
  142. package/views/dist/controls/tag/looks.js +4 -0
  143. package/views/dist/controls/tag/tag.d.ts +25 -0
  144. package/views/dist/controls/tag/tag.js +19 -0
  145. package/views/dist/controls/tag/tokens.d.ts +63 -0
  146. package/views/dist/controls/tag/tokens.js +18 -0
  147. package/views/dist/controls/tag.css +81 -0
  148. package/views/dist/controls/toggle/looks.d.ts +3 -0
  149. package/views/dist/controls/toggle/looks.js +12 -0
  150. package/views/dist/controls/toggle/toggle.d.ts +47 -0
  151. package/views/dist/controls/toggle/toggle.js +23 -0
  152. package/views/dist/controls/toggle/tokens.d.ts +55 -0
  153. package/views/dist/controls/toggle/tokens.js +16 -0
  154. package/views/dist/controls/toggle.css +67 -0
  155. package/views/dist/controls/tokens.d.ts +16 -0
  156. package/views/dist/controls/tokens.js +45 -0
  157. package/views/dist/controls/tooltip/looks.d.ts +4 -0
  158. package/views/dist/controls/tooltip/looks.js +4 -0
  159. package/views/dist/controls/tooltip/map-tooltip.d.ts +3 -0
  160. package/views/dist/controls/tooltip/map-tooltip.js +5 -0
  161. package/views/dist/controls/tooltip/tokens.d.ts +75 -0
  162. package/views/dist/controls/tooltip/tokens.js +21 -0
  163. package/views/dist/controls/tooltip/tooltip.d.ts +54 -0
  164. package/views/dist/controls/tooltip/tooltip.js +78 -0
  165. package/views/dist/controls/tooltip.css +94 -0
  166. package/views/dist/grid/chrome/GridTable.js +21 -19
  167. package/views/dist/grid/chrome/grid-row-window.js +3 -0
  168. package/views/dist/grid/chrome/useGridColumnLayout.d.ts +4 -1
  169. package/views/dist/grid/chrome/useGridColumnLayout.js +17 -2
  170. package/views/dist/grid/chrome/useGridFittedWidths.d.ts +29 -0
  171. package/views/dist/grid/chrome/useGridFittedWidths.js +46 -0
  172. package/views/dist/looks/index.d.ts +15 -0
  173. package/views/dist/looks/index.js +15 -0
  174. package/views/dist/looks/pieces.js +36 -2
  175. package/views/dist/model/column-schema.d.ts +3 -2
  176. package/views/dist/model/column-state.d.ts +11 -1
  177. package/views/dist/model/column-state.js +8 -2
  178. package/views/dist/styles.css +1930 -7
  179. package/views/dist/styles.unlayered.css +1930 -7
  180. package/views/docs/contract.md +5 -97
  181. package/views/docs/controls/button.md +93 -0
  182. package/views/docs/controls/checkbox.md +38 -0
  183. package/views/docs/controls/field.md +26 -0
  184. package/views/docs/controls/glass-button.md +37 -0
  185. package/views/docs/controls/inline-input.md +27 -0
  186. package/views/docs/controls/input.md +48 -0
  187. package/views/docs/controls/kbd.md +17 -0
  188. package/views/docs/controls/number-field.md +17 -0
  189. package/views/docs/controls/option.md +61 -0
  190. package/views/docs/controls/phone-header.md +20 -0
  191. package/views/docs/controls/popover.md +26 -0
  192. package/views/docs/controls/scrollbar.md +16 -0
  193. package/views/docs/controls/sheet.md +41 -0
  194. package/views/docs/controls/spinner.md +19 -0
  195. package/views/docs/controls/status.md +107 -0
  196. package/views/docs/controls/switch.md +40 -0
  197. package/views/docs/controls/tag.md +21 -0
  198. package/views/docs/controls/toggle.md +19 -0
  199. package/views/docs/controls/tooltip.md +24 -0
  200. package/views/docs/getting-started.md +1 -1
  201. package/views/docs/reference/controls.md +173 -2
  202. package/views/docs/reference/looks.md +67 -2
  203. package/views/docs/reference/views.md +7 -2
@@ -0,0 +1,14 @@
1
+ export const KBD_TOKENS = [
2
+ { name: "--vk-border-bold", kind: "colour", outright: "--border-bold" },
3
+ { name: "--vk-raised", kind: "colour", outright: "--surface-raised" },
4
+ { name: "--vk-fg-subtle", kind: "colour", outright: "--text-subtle" },
5
+ { name: "--vk-fg-subtlest", kind: "colour", outright: "--text-subtlest" },
6
+ { name: "--vk-border-width", kind: "size", outright: "--border-width" },
7
+ { name: "--vk-corner-smoothing", kind: "size", outright: "--corner-smoothing" },
8
+ { name: "--vk-font-sans", kind: "size", outright: "--font-sans" },
9
+ { name: "--vk-font-size-xs", kind: "size", outright: "--text-xs" },
10
+ { name: "--vk-font-weight-medium", kind: "size", outright: "--font-weight-medium" },
11
+ { name: "--vk-radius-sm", kind: "size", outright: "--radius-sm" },
12
+ { name: "--vk-spacing", kind: "size", outright: "--spacing" },
13
+ ];
14
+ export const KBD_PRIVATE = ["--kbd-"];
@@ -0,0 +1,46 @@
1
+ /* The Kbd: a key to press, drawn as a key. Every value it draws with is a public name (controls/kbd/tokens.ts); this file
2
+ only says which name each part takes. What an app sets once is a data attribute on the frame around it (looks.ts):
3
+
4
+ data-kbd-smoothing app · smooth · round its corners: following --vk-corner-smoothing, or set apart
5
+
6
+ The rules sit in the components layer, so a utility class on a key still wins. */
7
+ @layer components {
8
+
9
+ /* ── A key: a 20px cap on the raised ground, half the radius's corners, its bottom edge twice as heavy so
10
+ it reads as a key; its label in the quieter text colour ───────────────────────────────────────────── */
11
+ .o-kbd {
12
+ --kbd-edge: var(--vk-border-bold); --kbd-rr: min(var(--vk-radius-sm), var(--vk-spacing) * 2.5);
13
+ display: inline-grid; place-items: center; box-sizing: border-box;
14
+ min-width: calc(var(--vk-spacing) * 5); height: calc(var(--vk-spacing) * 5); padding: 0 calc(var(--vk-spacing) * 1.25);
15
+ border: var(--vk-border-width) solid var(--kbd-edge); border-bottom-width: calc(var(--vk-border-width) * 2);
16
+ border-radius: var(--vk-radius-sm);
17
+ background-color: var(--vk-raised); color: var(--vk-fg-subtle);
18
+ font-family: var(--vk-font-sans); font-size: var(--vk-font-size-xs); line-height: 1; font-weight: var(--vk-font-weight-medium); font-variant-numeric: tabular-nums;
19
+ vertical-align: calc(var(--vk-spacing) * 0.25);
20
+ }
21
+
22
+ /* ── Corner smoothing: The app's, with nothing set, follows --vk-corner-smoothing (Round is 0), Smooth and Round set the key
23
+ apart. Under Smooth or The app's the key is drawn with the smooth outline (smooth.css), eased on its 20px side, in every
24
+ browser that knows shape(); one that doesn't keeps the corners above, and so does Round. Nothing stands outside a key (no
25
+ ring, no shadow, no pressing area), so it is clipped itself, and its edge, which the outline would cut, is a ring of its own
26
+ along the curve (::before), over its border box, its foot twice as heavy. The Tooltip draws its own small key
27
+ (tooltip.css), which stays as it draws: at 16px with a 3px corner a smooth one can't be told from a round one. ─── */
28
+ .o-kbd { --smooth-amount: var(--vk-corner-smoothing); }
29
+ [data-kbd-smoothing="smooth"] .o-kbd { --smooth-amount: initial; }
30
+ @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)) {
31
+ .o-kbd:not([data-kbd-smoothing="round"] *, .o-tooltip *) {
32
+ --kbd-fit: min(var(--kbd-rr), var(--vk-spacing) * 5 / (2 + 2 * var(--smooth-amount, 0.7))); --smooth-t: var(--kbd-fit); --smooth-side: calc(var(--vk-spacing) * 5);
33
+ position: relative; isolation: isolate; border-color: transparent; clip-path: shape(var(--smooth-outline));
34
+ }
35
+ .o-kbd:not([data-kbd-smoothing="round"] *, .o-tooltip *)::before {
36
+ --smooth-t: max(0px, var(--kbd-fit) - var(--vk-border-width)); --smooth-b: max(0px, var(--kbd-fit) - var(--vk-border-width) * 2);
37
+ --smooth-in: var(--vk-border-width); --smooth-foot: calc(100% - var(--vk-border-width));
38
+ content: ""; position: absolute; inset: calc(var(--vk-border-width) * -1) calc(var(--vk-border-width) * -1) calc(var(--vk-border-width) * -2);
39
+ z-index: -1; pointer-events: none; background-color: var(--kbd-edge); clip-path: shape(var(--smooth-ring));
40
+ }
41
+ }
42
+
43
+ /* ── Pressed together, side by side 3px apart; one after the other, "then" between them ──────────────── */
44
+ .o-keys { display: inline-flex; align-items: center; gap: calc(var(--vk-spacing) * 0.75); font: inherit; }
45
+ .o-keys-then { margin: 0 calc(var(--vk-spacing) * 1); font-size: var(--vk-font-size-xs); color: var(--vk-fg-subtlest); }
46
+ }
@@ -0,0 +1,48 @@
1
+ import * as React from "react";
2
+ import { NumberField as BaseNumberField } from "@base-ui/react/number-field";
3
+ import { type InputSize } from "../input/input.js";
4
+ import type { InputOwnLook } from "../input/looks.js";
5
+ export interface NumberFieldProps extends Omit<BaseNumberField.Root.Props, "className" | "render" | "children" | "style" | "onKeyDown" | "onFocus" | "onBlur" | "autoFocus" | "placeholder"> {
6
+ /** Its height, as the Input's (InputSize): md 36 unless said; every field takes 44 on the phone. */
7
+ size?: InputSize;
8
+ /** What stands before the value, in the field's start side: a currency ("€"), an icon. */
9
+ before?: React.ReactNode;
10
+ /** What stands after the value, in the field's end side, before its steppers: a unit ("%", "kg", "days"). */
11
+ after?: React.ReactNode;
12
+ /** Its steppers. The Input's buttons, Decrease then Increase, at its end: shown from 32px up and never in a cell (no room)
13
+ * unless said (true), and never on a field that is read only; a 24 or 28px field has no room for them, as the Input's own
14
+ * buttons, and its keys still step it. Or "arrows": up over down at its end, as a number's editor draws them, at every size and
15
+ * in a cell too, hidden (their room kept) until the field is edited and always shown in a cell, never on a field that is read
16
+ * only; Shift and a press steps by largeStep. false: none. */
17
+ steppers?: boolean | "arrows";
18
+ /** Where its value stands: at its start unless said, or at its end, as a number in a table's column. Its digits line up either way. */
19
+ align?: "start" | "end";
20
+ /** A drag on its unit (before or after) changes it, by its step per few pixels: off unless said. */
21
+ scrub?: boolean;
22
+ /** The input's own words when it is empty. Never the label's job. */
23
+ placeholder?: string;
24
+ "aria-label"?: string;
25
+ "aria-labelledby"?: string;
26
+ "aria-describedby"?: string;
27
+ /** On its input: an app that runs its own keys first. */
28
+ onKeyDown?: React.KeyboardEventHandler<HTMLInputElement>;
29
+ onFocus?: React.FocusEventHandler<HTMLInputElement>;
30
+ onBlur?: React.FocusEventHandler<HTMLInputElement>;
31
+ autoFocus?: boolean;
32
+ /** Whether the browser and the password managers may fill it: on unless said. Off for a box holding someone else's
33
+ * details (a record's), so nothing offers the user's own (useAutofill). */
34
+ autofill?: boolean;
35
+ /** A box's own look, on its field: its options, whole, winning over its frame's. */
36
+ look?: InputOwnLook;
37
+ /** How it stands, its kind, which its place picks: in its field unless said; Soft, its field
38
+ * in the Soft look as its own whatever the app picks for its Inputs (the Input's Soft); inline, typed into where it stands, its group the inline input's, as its
39
+ * frame picks it, its size and look meaning nothing; or bare: the control alone, where its place
40
+ * frames it, Base UI's root standing aside, with no sides, steppers or arrows, its size and look meaning nothing. */
41
+ chrome?: "field" | "soft" | "inline" | "bare";
42
+ className?: string;
43
+ style?: React.CSSProperties;
44
+ }
45
+ /** A number typed in, stepped or bounded: the Input's own field with its steppers, a minimum, a maximum and a step,
46
+ * and a unit or a currency beside the value. Alone, or inside a Field, which gives it its label and its note or
47
+ * its error. */
48
+ export declare const NumberField: React.ForwardRefExoticComponent<Omit<NumberFieldProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,34 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import { NumberField as BaseNumberField } from "@base-ui/react/number-field";
4
+ import { cx } from "../../internal/cx.js";
5
+ import { InlineInputGroup } from "../inline-input/inline-input.js";
6
+ import { useAutofill } from "../input/autofill.js";
7
+ import { InputGroup, InputGroupAddon, InputGroupButton } from "../input/input.js";
8
+ function Mark({ paths }) {
9
+ return (_jsx("svg", { width: 15, height: 15, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: paths.map((d) => _jsx("path", { d: d }, d)) }));
10
+ }
11
+ const MINUS = ["M5 12l14 0"], PLUS = ["M12 5l0 14", "M5 12l14 0"];
12
+ function pageKeys(e, on) {
13
+ if (!on || (e.key !== "PageUp" && e.key !== "PageDown") || e.altKey || e.ctrlKey || e.metaKey || e.nativeEvent.isComposing)
14
+ return;
15
+ e.preventDefault();
16
+ e.currentTarget.dispatchEvent(new KeyboardEvent("keydown", { key: e.key === "PageUp" ? "ArrowUp" : "ArrowDown", shiftKey: true, bubbles: true, cancelable: true }));
17
+ }
18
+ const UP_MARK = _jsx("svg", { viewBox: "0 0 8 5", "aria-hidden": "true", children: _jsx("path", { d: "M0 5h8l-4-5z" }) }), DOWN_MARK = _jsx("svg", { viewBox: "0 0 8 5", "aria-hidden": "true", children: _jsx("path", { d: "M0 0h8l-4 5z" }) });
19
+ const DRAG = _jsx("svg", { viewBox: "0 0 24 24", "aria-hidden": "true", children: _jsx("path", { d: "M8 7l-5 5l5 5M16 7l5 5l-5 5M3 12h18" }) });
20
+ export const NumberField = React.forwardRef(function NumberField({ size = "md", before, after, steppers, align = "start", scrub = false, placeholder, "aria-label": label, "aria-labelledby": labelledBy, "aria-describedby": describedBy, onKeyDown, onFocus, onBlur, autoFocus, autofill = true, look, chrome, className, style, disabled, readOnly, ...root }, ref) {
21
+ const fill = useAutofill();
22
+ const arrows = steppers === "arrows" && !readOnly;
23
+ const stepped = steppers !== "arrows" && (steppers ?? (size !== "2xs" && size !== "xs" && !readOnly && chrome !== "inline"));
24
+ const side = (where, what) => what == null ? null : scrub
25
+ ? _jsxs(BaseNumberField.ScrubArea, { className: "o-number-scrub", render: (props) => _jsx(InputGroupAddon, { side: where, ...props, children: props.children }), children: [what, _jsx(BaseNumberField.ScrubAreaCursor, { className: "o-number-cursor", children: DRAG })] }, where)
26
+ : _jsx(InputGroupAddon, { side: where, children: what }, where);
27
+ const input = (_jsx(BaseNumberField.Input, { className: cx("o-input-control o-input-num", align === "end" && "o-number-end"), ...fill(autofill), placeholder: placeholder, "aria-label": label, "aria-labelledby": labelledBy, "aria-describedby": describedBy, autoFocus: autoFocus, onKeyDown: (e) => { onKeyDown?.(e); if (!e.defaultPrevented)
28
+ pageKeys(e, !disabled && !readOnly); }, onFocus: onFocus, onBlur: onBlur }));
29
+ if (chrome === "bare")
30
+ return (_jsx(BaseNumberField.Root, { ref: ref, className: cx("o-number o-number-bare", className), style: style, disabled: disabled, readOnly: readOnly, "data-kit": "number-field", ...root, children: input }));
31
+ return (_jsx(BaseNumberField.Root, { ref: ref, className: cx("o-number", className), style: style, disabled: disabled, readOnly: readOnly, "data-kit": "number-field", ...root, children: _jsxs(BaseNumberField.Group, { render: (props) => chrome === "inline"
32
+ ? _jsx(InlineInputGroup, { ...props, children: props.children })
33
+ : _jsx(InputGroup, { size: size, look: look, chrome: chrome === "soft" ? "soft" : undefined, ...props, children: props.children }), children: [side("start", before), input, side("end", after), stepped && (_jsxs(InputGroupAddon, { side: "end", className: "o-number-steps", children: [_jsx(BaseNumberField.Decrement, { render: _jsx(InputGroupButton, { icon: _jsx(Mark, { paths: MINUS }) }) }), _jsx(BaseNumberField.Increment, { render: _jsx(InputGroupButton, { icon: _jsx(Mark, { paths: PLUS }) }) })] })), arrows && (_jsxs(InputGroupAddon, { side: "end", className: "o-number-arrows", children: [_jsx(BaseNumberField.Increment, { className: "o-number-arrow", "aria-label": "Increase", children: UP_MARK }), _jsx(BaseNumberField.Decrement, { className: "o-number-arrow", "aria-label": "Decrease", children: DOWN_MARK })] }))] }) }));
34
+ });
@@ -0,0 +1,47 @@
1
+ export declare const NUMBER_FIELD_TOKENS: readonly [{
2
+ readonly name: "--vk-border-width";
3
+ readonly kind: "size";
4
+ readonly outright: "--border-width";
5
+ }, {
6
+ readonly name: "--vk-duration-fast";
7
+ readonly kind: "motion";
8
+ readonly outright: "--duration-fast";
9
+ }, {
10
+ readonly name: "--vk-ease-out";
11
+ readonly kind: "motion";
12
+ readonly outright: "--ease-out";
13
+ }, {
14
+ readonly name: "--vk-fg";
15
+ readonly kind: "colour";
16
+ readonly outright: "--text";
17
+ }, {
18
+ readonly name: "--vk-fg-disabled";
19
+ readonly kind: "colour";
20
+ readonly outright: "--text-disabled";
21
+ }, {
22
+ readonly name: "--vk-fg-subtle";
23
+ readonly kind: "colour";
24
+ readonly outright: "--text-subtle";
25
+ }, {
26
+ readonly name: "--vk-ground";
27
+ readonly kind: "colour";
28
+ readonly outright: "--surface";
29
+ }, {
30
+ readonly name: "--vk-overlay-pressed";
31
+ readonly kind: "colour";
32
+ readonly outright: "--surface-overlay-pressed";
33
+ }, {
34
+ readonly name: "--vk-overlay-selected";
35
+ readonly kind: "colour";
36
+ readonly outright: "--surface-overlay-selected";
37
+ }, {
38
+ readonly name: "--vk-radius-xs";
39
+ readonly kind: "size";
40
+ readonly outright: "--radius-xs";
41
+ }, {
42
+ readonly name: "--vk-spacing";
43
+ readonly kind: "size";
44
+ readonly outright: "--spacing";
45
+ }];
46
+ /** The prefixes of the number field's own machinery, set and read by it alone: not public. */
47
+ export declare const NUMBER_FIELD_PRIVATE: readonly ["--number-"];
@@ -0,0 +1,14 @@
1
+ export const NUMBER_FIELD_TOKENS = [
2
+ { name: "--vk-border-width", kind: "size", outright: "--border-width" },
3
+ { name: "--vk-duration-fast", kind: "motion", outright: "--duration-fast" },
4
+ { name: "--vk-ease-out", kind: "motion", outright: "--ease-out" },
5
+ { name: "--vk-fg", kind: "colour", outright: "--text" },
6
+ { name: "--vk-fg-disabled", kind: "colour", outright: "--text-disabled" },
7
+ { name: "--vk-fg-subtle", kind: "colour", outright: "--text-subtle" },
8
+ { name: "--vk-ground", kind: "colour", outright: "--surface" },
9
+ { name: "--vk-overlay-pressed", kind: "colour", outright: "--surface-overlay-pressed" },
10
+ { name: "--vk-overlay-selected", kind: "colour", outright: "--surface-overlay-selected" },
11
+ { name: "--vk-radius-xs", kind: "size", outright: "--radius-xs" },
12
+ { name: "--vk-spacing", kind: "size", outright: "--spacing" },
13
+ ];
14
+ export const NUMBER_FIELD_PRIVATE = ["--number-"];
@@ -0,0 +1,54 @@
1
+ /* The Number field. Its field, its sides, its buttons and every look are the Input's own (input.css): this file
2
+ holds only what is its own. Every value it draws with is a public name. Base UI marks a stepper
3
+ data-disabled at its bound, and the field data-scrubbing while its unit is dragged.
4
+
5
+ The rules sit in the components layer, so a utility class on it still wins. */
6
+ @layer components {
7
+
8
+ .o-number { min-width: 0; }
9
+ /* 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. */
10
+ .o-number-bare { display: contents; }
11
+
12
+ /* ── Its steppers, Decrease then Increase, at its end. On the phone each keeps the Input's 28px button and takes a
13
+ 44px target round it, the two set apart so their targets never meet. ─────────────────────────────────────── */
14
+ /* Named with the addon it is, so its gap wins over the addon's own wherever the stylesheets stand in the page. */
15
+ .o-input-addon.o-number-steps { gap: calc(var(--vk-spacing) * 0.5); }
16
+ .o-number-steps > .o-button { position: relative; }
17
+ @media (width < 640px) {
18
+ .o-input-addon.o-number-steps:where(:not([data-computer-host], [data-computer-host] *)) { gap: calc(var(--vk-spacing) * 4); }
19
+ .o-number-steps > .o-button:where(:not([data-computer-host], [data-computer-host] *))::before { content: ""; position: absolute; top: 50%; left: 50%; width: calc(var(--vk-spacing) * 11); height: calc(var(--vk-spacing) * 11); translate: -50% -50%; }
20
+ }
21
+ @container o-phone (width < 640px) {
22
+ .o-input-addon.o-number-steps { gap: calc(var(--vk-spacing) * 4); }
23
+ .o-number-steps > .o-button::before { content: ""; position: absolute; top: 50%; left: 50%; width: calc(var(--vk-spacing) * 11); height: calc(var(--vk-spacing) * 11); translate: -50% -50%; }
24
+ }
25
+
26
+ /* ── Its arrows, up over down at its end, as the Number editor's: 12 × 20 on the overlay's pressed fill, which stays seen in
27
+ dark, --number-arrows-room from what stands before them, 2px unless said, whatever the group's gap (--input-group-gap).
28
+ Each fills its row (the side centres what it holds
29
+ otherwise). Hidden until the field is edited, their room kept so the value never moves; a group in a cell is never .o-input,
30
+ so there they always show, the box standing only while it is edited. ───────────────────────────────────────────────────── */
31
+ .o-input-addon.o-number-arrows {
32
+ display: grid; grid-template-rows: 1fr 1fr; align-items: stretch; gap: 0; width: calc(var(--vk-spacing) * 3); height: calc(var(--vk-spacing) * 5);
33
+ margin-inline-start: calc(var(--number-arrows-room, calc(var(--vk-spacing) / 2)) - var(--input-group-gap, calc(var(--vk-spacing) * 1.5))); border-radius: var(--vk-radius-xs); overflow: hidden; background-color: var(--vk-overlay-pressed); cursor: default;
34
+ }
35
+ .o-input:not(:focus-within) > .o-number-arrows { visibility: hidden; }
36
+ /* In the Inline input the arrows stand as everything beside the value does, its gap from it, in the box's own colour,
37
+ always shown: the box stands only while it is edited. */
38
+ .o-inline-input-group > .o-input-addon.o-number-arrows { margin-inline-start: 0; color: inherit; }
39
+ .o-number-arrow {
40
+ display: grid; place-items: center; margin: 0; padding: 0; border: 0; background-color: transparent; color: var(--vk-fg-subtle); cursor: default;
41
+ transition: background-color var(--vk-duration-fast) var(--vk-ease-out), color var(--vk-duration-fast) var(--vk-ease-out);
42
+ }
43
+ @media (hover: hover) { .o-number-arrow:hover { background-color: var(--vk-overlay-selected); color: var(--vk-fg); } }
44
+ .o-number-arrow[data-disabled] { background-color: transparent; color: var(--vk-fg-disabled); }
45
+ .o-number-arrow > svg { width: calc(var(--vk-spacing) * 2); height: calc(var(--vk-spacing) * 1.25); fill: currentColor; }
46
+
47
+ /* ── Its value at its end, as a number in a table's column; its digits line up either way (.o-input-num). ──────────── */
48
+ .o-input-control.o-number-end { text-align: end; }
49
+
50
+ /* ── A unit that is dragged to change it: the pointer says so, and while it drags, the cursor Base UI draws. ─── */
51
+ .o-number-scrub { cursor: ew-resize; touch-action: none; }
52
+ .o-number-cursor { display: flex; color: var(--vk-fg); filter: drop-shadow(0 0 var(--vk-border-width) var(--vk-ground)); pointer-events: none; }
53
+ .o-number-cursor > svg { width: calc(var(--vk-spacing) * 5); height: calc(var(--vk-spacing) * 5); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
54
+ }
@@ -0,0 +1,6 @@
1
+ import type { ViewsTagProps } from "../../atoms/types.js";
2
+ import type { OptionColour } from "./looks.js";
3
+ /** A value's colour as ViewKit names it, as the Option's: ViewKit's gray is the Option's grey, the rest the same. */
4
+ export declare const colourOf: (color: string | undefined) => OptionColour | undefined;
5
+ /** The Tag atom: the Option in the value's colour. */
6
+ export declare function OptionTag({ label, color, leading, onRemove, className }: ViewsTagProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Option } from "./option.js";
3
+ export const colourOf = (color) => (color === "gray" ? "grey" : color);
4
+ export function OptionTag({ label, color, leading, onRemove, className }) {
5
+ return _jsx(Option, { colour: colourOf(color), icon: leading ?? undefined, onRemove: onRemove, className: className, children: label });
6
+ }
@@ -0,0 +1,7 @@
1
+ import type { PieceLooks } from "../../looks/looks.js";
2
+ /** A value's own colour: one of the seven label hues, or grey. */
3
+ export type OptionColour = "blue" | "green" | "amber" | "red" | "purple" | "pink" | "teal" | "grey";
4
+ export declare const optionColours: readonly OptionColour[];
5
+ export type OptionLookOptionId = "colour" | "height" | "radius" | "smoothing" | "edge";
6
+ /** The Option's options and looks. */
7
+ export declare const OPTION_LOOKS: PieceLooks<OptionLookOptionId>;
@@ -0,0 +1,21 @@
1
+ export const optionColours = ["blue", "green", "amber", "red", "purple", "pink", "teal", "grey"];
2
+ const options = [
3
+ { id: "colour", name: "Colour", def: "pill", values: [{ id: "none", name: "No colour" }, { id: "dot", name: "Dot" }, { id: "pill", name: "Pill" }, { id: "flat", name: "Flat fill" }] },
4
+ { id: "height", name: "Height", def: "22", kind: "steps", values: ["20", "22", "24"].map((id) => ({ id, name: id })) },
5
+ { id: "radius", name: "Corners", def: "lg", kind: "steps", values: ["xs", "sm", "md", "lg", "full"].map((id) => ({ id, name: id === "full" ? "Full" : id })) },
6
+ { id: "smoothing", name: "Corner smoothing", def: "app", values: [{ id: "app", name: "The app's" }, { id: "smooth", name: "Smooth" }, { id: "round", name: "Round" }] },
7
+ { id: "edge", name: "Edge", def: "strong", values: [{ id: "strong", name: "Strong" }, { id: "subtle", name: "Subtle" }, { id: "fill", name: "Grey fill" }] },
8
+ ];
9
+ const SHAPE = { height: "22", radius: "md", smoothing: "app", edge: "strong" };
10
+ export const OPTION_LOOKS = {
11
+ id: "option",
12
+ name: "Option",
13
+ options,
14
+ looks: [
15
+ { id: "none", name: "No colour", picks: { colour: "none", ...SHAPE } },
16
+ { id: "dot", name: "Linear's dot", picks: { colour: "dot", ...SHAPE } },
17
+ { id: "pill", name: "Attio's pill", picks: { colour: "pill", ...SHAPE } },
18
+ { id: "flat", name: "Notion's flat fill", picks: { colour: "flat", ...SHAPE } },
19
+ { id: "shadcn", name: "shadcn's Badge", picks: { colour: "none", height: "20", radius: "full", smoothing: "app", edge: "subtle" } },
20
+ ],
21
+ };
@@ -0,0 +1,35 @@
1
+ import { useRender } from "@base-ui/react/use-render";
2
+ import * as React from "react";
3
+ import { type OptionColour } from "./looks.js";
4
+ export interface OptionProps {
5
+ children?: React.ReactNode;
6
+ /** A value's own colour: drawn only in a colour look (looks.ts); left out, or a colour it lacks, the Option is plain. */
7
+ colour?: OptionColour;
8
+ /** The rest of a row's values, "+2". */
9
+ count?: number;
10
+ /** While editing: a remove button named "Remove <option>". */
11
+ onRemove?: () => void;
12
+ /** md, 22 high, in a list or a field on a computer; lg, 28 high, in a phone's row, its words a step larger. */
13
+ size?: "md" | "lg";
14
+ className?: string;
15
+ /** At its start: the value's own mark, an icon (12px, 14 in a phone's row); quiet, or in its colour where a colour look
16
+ * draws one, in place of the dot. */
17
+ icon?: React.ReactNode;
18
+ /** At its end: what a press does (a chevron that opens its choices, an arrow to another site), quieter; left out while editing. */
19
+ iconEnd?: React.ReactNode;
20
+ /** Drawn as another element, a link above all (`<a href>`, or a router's): Base UI's render. Never while editing (its
21
+ * remove button can't stand in a link), and never on a count. */
22
+ render?: useRender.RenderProp;
23
+ }
24
+ /** One value of a select or multi-select field, in a plain edge, or in its colour where a colour look draws it. What else it
25
+ * is given (a chip's keys and marks, when a select draws it in its field) goes on its edge. */
26
+ export declare const Option: React.ForwardRefExoticComponent<OptionProps & Omit<React.HTMLAttributes<HTMLSpanElement>, keyof OptionProps> & React.RefAttributes<HTMLSpanElement>>;
27
+ /** A field's values as they show on a record or in a list: each as an Option, in its colour where `colours` gives one, the
28
+ * first `max` then a count for the rest; with none, a dash. Two values may share their words (two people of one name):
29
+ * each stands as its own chip. */
30
+ export declare function Options({ values, max, colours, className }: {
31
+ values: string[];
32
+ max?: number;
33
+ colours?: Partial<Record<string, OptionColour>>;
34
+ className?: string;
35
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,32 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useRender } from "@base-ui/react/use-render";
3
+ import * as React from "react";
4
+ import { cx } from "../../internal/cx.js";
5
+ import { TagCut, TagRemove } from "../tag/tag.js";
6
+ import { optionColours } from "./looks.js";
7
+ export const Option = React.forwardRef(function Option({ children, colour, count, onRemove, size, icon, iconEnd, render, className, ...props }, ref) {
8
+ const word = typeof children === "string" ? children : undefined;
9
+ const shown = onRemove ? undefined : render;
10
+ const link = React.isValidElement(shown) && shown.props.href != null;
11
+ const element = useRender({
12
+ defaultTagName: "span", render: shown, ref, enabled: count == null,
13
+ props: {
14
+ className: cx("o-tag o-option", size === "lg" && "o-option-lg", className), title: word, "data-kit": "option",
15
+ "data-colour": colour && optionColours.includes(colour) ? colour : undefined, ...(link ? { "data-link": "" } : {}), ...props,
16
+ children: _jsxs(_Fragment, { children: [_jsx(TagCut, {}), icon != null && _jsx("span", { className: "o-option-icon", "data-side": "start", "aria-hidden": "true", children: icon }), _jsx("span", { className: "o-tag-word", children: children }), iconEnd != null && !onRemove && _jsx("span", { className: "o-option-icon", "data-side": "end", "aria-hidden": "true", children: iconEnd }), onRemove && _jsx(TagRemove, { word: word, onRemove: onRemove })] }),
17
+ },
18
+ });
19
+ if (count != null)
20
+ return _jsxs("span", { ref: ref, className: cx("o-tag o-tag-count o-option", size === "lg" && "o-option-lg", className), "data-kit": "option", ...props, children: [_jsx(TagCut, {}), "+", count] });
21
+ return element;
22
+ });
23
+ export function Options({ values, max, colours, className }) {
24
+ if (!values.length)
25
+ return _jsx("span", { className: cx("o-option-none", className), children: "\u2014" });
26
+ const shown = max != null && values.length > max ? values.slice(0, max) : values, rest = values.length - shown.length;
27
+ return _jsxs("span", { className: cx("o-options", className), children: [keyed(shown).map(([key, v]) => _jsx(Option, { colour: colours?.[v], children: v }, key)), rest > 0 && _jsx(Option, { count: rest })] });
28
+ }
29
+ const keyed = (values) => {
30
+ const seen = new Map();
31
+ return values.map((v) => { const n = seen.get(v) ?? 0; seen.set(v, n + 1); return [n ? `${v}\u0000${n}` : v, v]; });
32
+ };
@@ -0,0 +1,223 @@
1
+ export declare const OPTION_TOKENS: readonly [{
2
+ readonly name: "--vk-border";
3
+ readonly kind: "colour";
4
+ readonly outright: "--border";
5
+ }, {
6
+ readonly name: "--vk-border-brand";
7
+ readonly kind: "colour";
8
+ readonly outright: "--border-focused";
9
+ }, {
10
+ readonly name: "--vk-fg-subtle";
11
+ readonly kind: "colour";
12
+ readonly outright: "--text-subtle";
13
+ }, {
14
+ readonly name: "--vk-fg-subtlest";
15
+ readonly kind: "colour";
16
+ readonly outright: "--text-subtlest";
17
+ }, {
18
+ readonly name: "--vk-hovered";
19
+ readonly kind: "colour";
20
+ readonly outright: "--surface-hovered";
21
+ }, {
22
+ readonly name: "--vk-label-amber";
23
+ readonly kind: "colour";
24
+ readonly outright: "--label-amber";
25
+ }, {
26
+ readonly name: "--vk-label-amber-edge";
27
+ readonly kind: "colour";
28
+ readonly outright: "--label-amber-edge";
29
+ }, {
30
+ readonly name: "--vk-label-amber-fill";
31
+ readonly kind: "colour";
32
+ readonly outright: "--label-amber-fill";
33
+ }, {
34
+ readonly name: "--vk-label-amber-soft";
35
+ readonly kind: "colour";
36
+ readonly outright: "--label-amber-soft";
37
+ }, {
38
+ readonly name: "--vk-label-amber-strong";
39
+ readonly kind: "colour";
40
+ readonly outright: "--label-amber-strong";
41
+ }, {
42
+ readonly name: "--vk-label-blue";
43
+ readonly kind: "colour";
44
+ readonly outright: "--label-blue";
45
+ }, {
46
+ readonly name: "--vk-label-blue-edge";
47
+ readonly kind: "colour";
48
+ readonly outright: "--label-blue-edge";
49
+ }, {
50
+ readonly name: "--vk-label-blue-fill";
51
+ readonly kind: "colour";
52
+ readonly outright: "--label-blue-fill";
53
+ }, {
54
+ readonly name: "--vk-label-blue-soft";
55
+ readonly kind: "colour";
56
+ readonly outright: "--label-blue-soft";
57
+ }, {
58
+ readonly name: "--vk-label-blue-strong";
59
+ readonly kind: "colour";
60
+ readonly outright: "--label-blue-strong";
61
+ }, {
62
+ readonly name: "--vk-label-green";
63
+ readonly kind: "colour";
64
+ readonly outright: "--label-green";
65
+ }, {
66
+ readonly name: "--vk-label-green-edge";
67
+ readonly kind: "colour";
68
+ readonly outright: "--label-green-edge";
69
+ }, {
70
+ readonly name: "--vk-label-green-fill";
71
+ readonly kind: "colour";
72
+ readonly outright: "--label-green-fill";
73
+ }, {
74
+ readonly name: "--vk-label-green-soft";
75
+ readonly kind: "colour";
76
+ readonly outright: "--label-green-soft";
77
+ }, {
78
+ readonly name: "--vk-label-green-strong";
79
+ readonly kind: "colour";
80
+ readonly outright: "--label-green-strong";
81
+ }, {
82
+ readonly name: "--vk-label-pink";
83
+ readonly kind: "colour";
84
+ readonly outright: "--label-pink";
85
+ }, {
86
+ readonly name: "--vk-label-pink-edge";
87
+ readonly kind: "colour";
88
+ readonly outright: "--label-pink-edge";
89
+ }, {
90
+ readonly name: "--vk-label-pink-fill";
91
+ readonly kind: "colour";
92
+ readonly outright: "--label-pink-fill";
93
+ }, {
94
+ readonly name: "--vk-label-pink-soft";
95
+ readonly kind: "colour";
96
+ readonly outright: "--label-pink-soft";
97
+ }, {
98
+ readonly name: "--vk-label-pink-strong";
99
+ readonly kind: "colour";
100
+ readonly outright: "--label-pink-strong";
101
+ }, {
102
+ readonly name: "--vk-label-purple";
103
+ readonly kind: "colour";
104
+ readonly outright: "--label-purple";
105
+ }, {
106
+ readonly name: "--vk-label-purple-edge";
107
+ readonly kind: "colour";
108
+ readonly outright: "--label-purple-edge";
109
+ }, {
110
+ readonly name: "--vk-label-purple-fill";
111
+ readonly kind: "colour";
112
+ readonly outright: "--label-purple-fill";
113
+ }, {
114
+ readonly name: "--vk-label-purple-soft";
115
+ readonly kind: "colour";
116
+ readonly outright: "--label-purple-soft";
117
+ }, {
118
+ readonly name: "--vk-label-purple-strong";
119
+ readonly kind: "colour";
120
+ readonly outright: "--label-purple-strong";
121
+ }, {
122
+ readonly name: "--vk-label-red";
123
+ readonly kind: "colour";
124
+ readonly outright: "--label-red";
125
+ }, {
126
+ readonly name: "--vk-label-red-edge";
127
+ readonly kind: "colour";
128
+ readonly outright: "--label-red-edge";
129
+ }, {
130
+ readonly name: "--vk-label-red-fill";
131
+ readonly kind: "colour";
132
+ readonly outright: "--label-red-fill";
133
+ }, {
134
+ readonly name: "--vk-label-red-soft";
135
+ readonly kind: "colour";
136
+ readonly outright: "--label-red-soft";
137
+ }, {
138
+ readonly name: "--vk-label-red-strong";
139
+ readonly kind: "colour";
140
+ readonly outright: "--label-red-strong";
141
+ }, {
142
+ readonly name: "--vk-label-teal";
143
+ readonly kind: "colour";
144
+ readonly outright: "--label-teal";
145
+ }, {
146
+ readonly name: "--vk-label-teal-edge";
147
+ readonly kind: "colour";
148
+ readonly outright: "--label-teal-edge";
149
+ }, {
150
+ readonly name: "--vk-label-teal-fill";
151
+ readonly kind: "colour";
152
+ readonly outright: "--label-teal-fill";
153
+ }, {
154
+ readonly name: "--vk-label-teal-soft";
155
+ readonly kind: "colour";
156
+ readonly outright: "--label-teal-soft";
157
+ }, {
158
+ readonly name: "--vk-label-teal-strong";
159
+ readonly kind: "colour";
160
+ readonly outright: "--label-teal-strong";
161
+ }, {
162
+ readonly name: "--vk-neutral";
163
+ readonly kind: "colour";
164
+ readonly outright: "--background-neutral";
165
+ }, {
166
+ readonly name: "--vk-neutral-hovered";
167
+ readonly kind: "colour";
168
+ readonly outright: "--background-neutral-hovered";
169
+ }, {
170
+ readonly name: "--vk-pressed";
171
+ readonly kind: "colour";
172
+ readonly outright: "--surface-pressed";
173
+ }, {
174
+ readonly name: "--vk-focus-offset";
175
+ readonly kind: "size";
176
+ readonly outright: "--focus-offset";
177
+ }, {
178
+ readonly name: "--vk-focus-width";
179
+ readonly kind: "size";
180
+ readonly outright: "--focus-width";
181
+ }, {
182
+ readonly name: "--vk-font-size-sm";
183
+ readonly kind: "size";
184
+ readonly outright: "--text-sm";
185
+ }, {
186
+ readonly name: "--vk-radius-full";
187
+ readonly kind: "size";
188
+ readonly outright: "--radius-full";
189
+ }, {
190
+ readonly name: "--vk-radius-lg";
191
+ readonly kind: "size";
192
+ readonly outright: "--radius-lg";
193
+ }, {
194
+ readonly name: "--vk-radius-sm";
195
+ readonly kind: "size";
196
+ readonly outright: "--radius-sm";
197
+ }, {
198
+ readonly name: "--vk-radius-xs";
199
+ readonly kind: "size";
200
+ readonly outright: "--radius-xs";
201
+ }, {
202
+ readonly name: "--vk-spacing";
203
+ readonly kind: "size";
204
+ readonly outright: "--spacing";
205
+ }, {
206
+ readonly name: "--vk-duration-fast";
207
+ readonly kind: "motion";
208
+ readonly outright: "--duration-fast";
209
+ }, {
210
+ readonly name: "--vk-duration-instant";
211
+ readonly kind: "motion";
212
+ readonly outright: "--duration-instant";
213
+ }, {
214
+ readonly name: "--vk-ease-out";
215
+ readonly kind: "motion";
216
+ readonly outright: "--ease-out";
217
+ }, {
218
+ readonly name: "--vk-press-scale";
219
+ readonly kind: "motion";
220
+ readonly outright: "--press-scale";
221
+ }];
222
+ /** The prefixes of the Option's own machinery, set and read by it alone: not public. */
223
+ export declare const OPTION_PRIVATE: readonly ["--o-option-"];