@kitionstage/tessera 0.1.1-stage.6 → 0.1.1-stage.7

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 (71) hide show
  1. package/dist/tokens/index.js +17 -0
  2. package/dist/tokens/index.js.map +1 -1
  3. package/dist/tokens/tokens/base.tokens.json +85 -0
  4. package/dist/tokens/tokens.css +17 -0
  5. package/dist/tokens/types/src/generated/tokens.d.ts +1 -1
  6. package/dist/ui/BarControls.js +2 -2
  7. package/dist/ui/Combobox.js +3 -3
  8. package/dist/ui/DockArea.js +2 -2
  9. package/dist/ui/FloatingPanels.js +2 -2
  10. package/dist/ui/PanelParts.js +2 -2
  11. package/dist/ui/PreviewDialog.js +2 -2
  12. package/dist/ui/Radio.js +10 -0
  13. package/dist/ui/Radio.js.map +1 -0
  14. package/dist/ui/Slider.js +8 -0
  15. package/dist/ui/Slider.js.map +1 -0
  16. package/dist/ui/TransportBar.js +2 -2
  17. package/dist/ui/WorkspaceLayout.js +2 -2
  18. package/dist/ui/chunks/{chunk-3YF4ZYGR.js → chunk-6NMEEOZJ.js} +3 -3
  19. package/dist/ui/chunks/{chunk-LNWKABQM.js → chunk-FVQKIUDF.js} +3 -3
  20. package/dist/ui/chunks/{chunk-RRXKR3NA.js → chunk-GGJACVUZ.js} +2 -2
  21. package/dist/ui/chunks/{chunk-Y4IPPAPE.js → chunk-GS4FJ7WG.js} +27 -14
  22. package/dist/ui/chunks/chunk-GS4FJ7WG.js.map +1 -0
  23. package/dist/ui/chunks/{chunk-ZOITALHV.js → chunk-HM644R34.js} +2 -2
  24. package/dist/ui/chunks/chunk-I75QHXDV.js +40 -0
  25. package/dist/ui/chunks/chunk-I75QHXDV.js.map +1 -0
  26. package/dist/ui/chunks/{chunk-MTDFR4DH.js → chunk-JO2KOQDP.js} +2 -2
  27. package/dist/ui/chunks/{chunk-POZNMNNZ.js → chunk-KEIESK7S.js} +2 -2
  28. package/dist/ui/chunks/{chunk-UBJNXHRF.js → chunk-KVMTXLBR.js} +2 -2
  29. package/dist/ui/chunks/{chunk-VSUQ7UO5.js → chunk-MJWUF4GI.js} +11 -6
  30. package/dist/ui/chunks/chunk-MJWUF4GI.js.map +1 -0
  31. package/dist/ui/chunks/{chunk-6HL3LUO7.js → chunk-NGL7PXI3.js} +106 -20
  32. package/dist/ui/chunks/chunk-NGL7PXI3.js.map +1 -0
  33. package/dist/ui/chunks/{chunk-W2JWOXEG.js → chunk-NWHF4FJL.js} +10 -8
  34. package/dist/ui/chunks/chunk-NWHF4FJL.js.map +1 -0
  35. package/dist/ui/chunks/{chunk-3NTB3WJK.js → chunk-OEJOBDPF.js} +2 -2
  36. package/dist/ui/chunks/{chunk-T4N5DERU.js → chunk-SLN7QDQH.js} +9 -7
  37. package/dist/ui/chunks/chunk-SLN7QDQH.js.map +1 -0
  38. package/dist/ui/chunks/{chunk-IYK77VCV.js → chunk-V2ZBOCUG.js} +2 -2
  39. package/dist/ui/chunks/chunk-XLDBNHFP.js +46 -0
  40. package/dist/ui/chunks/chunk-XLDBNHFP.js.map +1 -0
  41. package/dist/ui/data.js +2 -2
  42. package/dist/ui/formModel.js +3 -3
  43. package/dist/ui/forms.js +2 -2
  44. package/dist/ui/index.js +58 -36
  45. package/dist/ui/navigation.js +6 -4
  46. package/dist/ui/overlays.js +2 -2
  47. package/dist/ui/styles.css +670 -82
  48. package/dist/ui/types/src/BarControls.d.ts +43 -7
  49. package/dist/ui/types/src/Radio.d.ts +70 -0
  50. package/dist/ui/types/src/Slider.d.ts +58 -0
  51. package/dist/ui/types/src/TransportBar.d.ts +8 -1
  52. package/dist/ui/types/src/forms.d.ts +46 -12
  53. package/dist/ui/types/src/index.d.ts +3 -1
  54. package/dist/ui/types/src/navigation.d.ts +13 -1
  55. package/dist/ui/types/src/ui.d.ts +172 -14
  56. package/dist/ui/ui.js +13 -3
  57. package/package.json +1 -1
  58. package/dist/ui/chunks/chunk-6HL3LUO7.js.map +0 -1
  59. package/dist/ui/chunks/chunk-T4N5DERU.js.map +0 -1
  60. package/dist/ui/chunks/chunk-VSUQ7UO5.js.map +0 -1
  61. package/dist/ui/chunks/chunk-W2JWOXEG.js.map +0 -1
  62. package/dist/ui/chunks/chunk-Y4IPPAPE.js.map +0 -1
  63. /package/dist/ui/chunks/{chunk-3YF4ZYGR.js.map → chunk-6NMEEOZJ.js.map} +0 -0
  64. /package/dist/ui/chunks/{chunk-LNWKABQM.js.map → chunk-FVQKIUDF.js.map} +0 -0
  65. /package/dist/ui/chunks/{chunk-RRXKR3NA.js.map → chunk-GGJACVUZ.js.map} +0 -0
  66. /package/dist/ui/chunks/{chunk-ZOITALHV.js.map → chunk-HM644R34.js.map} +0 -0
  67. /package/dist/ui/chunks/{chunk-MTDFR4DH.js.map → chunk-JO2KOQDP.js.map} +0 -0
  68. /package/dist/ui/chunks/{chunk-POZNMNNZ.js.map → chunk-KEIESK7S.js.map} +0 -0
  69. /package/dist/ui/chunks/{chunk-UBJNXHRF.js.map → chunk-KVMTXLBR.js.map} +0 -0
  70. /package/dist/ui/chunks/{chunk-3NTB3WJK.js.map → chunk-OEJOBDPF.js.map} +0 -0
  71. /package/dist/ui/chunks/{chunk-IYK77VCV.js.map → chunk-V2ZBOCUG.js.map} +0 -0
@@ -24,6 +24,23 @@ var TOKENS = [
24
24
  { name: "--kui-ribbon-row", type: "dimension", value: "24px", dark: null, khp: false, description: "A ribbon row" },
25
25
  { name: "--kui-tab-underline", type: "dimension", value: "2px", dark: null, khp: false, description: "The selected tab's underline" },
26
26
  { name: "--kui-tab-selected-weight", type: "fontWeight", value: "600", dark: null, khp: false, description: "The selected tab's font weight" },
27
+ { name: "--kui-control-3xs", type: "dimension", value: "18px", dark: null, khp: false, description: "Control height 3xs: controls in a node editor's 24 px rows" },
28
+ { name: "--kui-control-2xs", type: "dimension", value: "24px", dark: null, khp: false, description: "Control height 2xs: a ribbon row's fields and buttons, as tall as --kui-ribbon-row" },
29
+ { name: "--kui-control-xs", type: "dimension", value: "28px", dark: null, khp: false, description: "Control height xs: dense panels, level with Choice and .kui-field" },
30
+ { name: "--kui-control-sm", type: "dimension", value: "32px", dark: null, khp: false, description: "Control height sm: toolbars and dense rows (the fields' default)" },
31
+ { name: "--kui-control-md", type: "dimension", value: "36px", dark: null, khp: false, description: "Control height md: settings panels and dialogs" },
32
+ { name: "--kui-control-lg", type: "dimension", value: "40px", dark: null, khp: false, description: "Control height lg: forms and calls to action" },
33
+ { name: "--kui-font-size-2xs", type: "dimension", value: "10px", dark: null, khp: false, description: "Type scale 2xs: the smallest marks (a count in a dense row)" },
34
+ { name: "--kui-font-size-xs", type: "dimension", value: "11px", dark: null, khp: false, description: "Type scale xs: ribbon group labels, controls of 3xs height" },
35
+ { name: "--kui-font-size-sm", type: "dimension", value: "12px", dark: null, khp: false, description: "Type scale sm: captions, hints, the status bar, controls of 2xs height" },
36
+ { name: "--kui-font-size-md", type: "dimension", value: "13px", dark: null, khp: false, description: "Type scale md: the editor's body text, controls of xs and sm height" },
37
+ { name: "--kui-font-size-lg", type: "dimension", value: "14px", dark: null, khp: false, description: "Type scale lg: controls of md and lg height, page text" },
38
+ { name: "--kui-font-size-xl", type: "dimension", value: "16px", dark: null, khp: false, description: "Type scale xl: section headings" },
39
+ { name: "--kui-font-size-2xl", type: "dimension", value: "18px", dark: null, khp: false, description: "Type scale 2xl: dialog and page titles" },
40
+ { name: "--kui-font-size-3xl", type: "dimension", value: "20px", dark: null, khp: false, description: "Type scale 3xl: the largest titles" },
41
+ { name: "--kui-radius-xs", type: "dimension", value: "2px", dark: null, khp: false, description: "Radius xs: marks, cells, and small thumbs" },
42
+ { name: "--kui-radius-sm", type: "dimension", value: "4px", dark: null, khp: false, description: "Radius sm: swatches, and controls of 3xs height" },
43
+ { name: "--kui-radius-md", type: "dimension", value: "6px", dark: null, khp: false, description: "Radius md: chips and small tiles (controls take --kit-radius-control)" },
27
44
  { name: "--kui-hover", type: "color", value: "color-mix(in srgb, var(--kit-text) 7%, transparent)", dark: null, khp: false, description: "A control under the pointer: neutral, unlike a pressed toggle's --kit-primary-soft" },
28
45
  { name: "--kui-select-chevron", type: "other", value: `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d5b54' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")`, dark: `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9a7a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")`, khp: false, description: "Chevron-down for drop-downs, in --kit-text-muted (a data URI cannot read a variable)" },
29
46
  { name: "--kui-success", type: "color", value: "#18794e", dark: "#3dd68c", khp: false, description: "Success: done, active, paid (tags, alerts, results); text on its own soft tint" },
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/tokens/generated/tokens.ts","../../src/tokens/index.ts"],"sourcesContent":["// Generated by @kition/tessera-tokens from tokens/*.tokens.json. Do not edit; run `pnpm build:tokens`.\n\n/** Every Tessera CSS variable. */\nexport type TokenName = \"--kit-font-sans\" | \"--kit-font-mono\" | \"--kit-surface\" | \"--kit-surface-muted\" | \"--kit-canvas\" | \"--kit-text\" | \"--kit-text-muted\" | \"--kit-border\" | \"--kit-primary\" | \"--kit-primary-text\" | \"--kit-primary-soft\" | \"--kit-danger\" | \"--kit-radius-control\" | \"--kit-radius-card\" | \"--kit-shadow-card\" | \"--kit-meter-bg\" | \"--kit-meter-ok\" | \"--kit-meter-ok-high\" | \"--kit-meter-warn\" | \"--kit-meter-clip\" | \"--kui-bar-height\" | \"--kui-ribbon-row\" | \"--kui-tab-underline\" | \"--kui-tab-selected-weight\" | \"--kui-hover\" | \"--kui-select-chevron\" | \"--kui-success\" | \"--kui-warning\" | \"--kui-chart-1\" | \"--kui-chart-2\" | \"--kui-chart-3\" | \"--kui-chart-4\" | \"--kui-chart-5\" | \"--kui-chart-6\"\n\n/** A Kit Harness Protocol theme token (Kit UI protocol, section 4). */\nexport type KhpTokenName = \"--kit-font-sans\" | \"--kit-font-mono\" | \"--kit-surface\" | \"--kit-surface-muted\" | \"--kit-canvas\" | \"--kit-text\" | \"--kit-text-muted\" | \"--kit-border\" | \"--kit-primary\" | \"--kit-primary-text\" | \"--kit-primary-soft\" | \"--kit-danger\" | \"--kit-radius-control\" | \"--kit-radius-card\" | \"--kit-shadow-card\"\n\n/** One token: its CSS variable, DTCG type, Paper value, the value under a dark color scheme when it differs, and whether hosts send it. */\nexport type Token = { name: TokenName; type: string; value: string; dark: string | null; khp: boolean; description: string }\n\n/** The Kit UI protocol theme for one skin. */\nexport type SkinTheme = { colorScheme: 'light' | 'dark'; tokens: Record<KhpTokenName, string> }\n\nexport const TOKENS: readonly Token[] = [\n { name: \"--kit-font-sans\", type: \"fontFamily\", value: \"Inter, system-ui, -apple-system, 'SF Pro Text', 'Segoe UI', Roboto, 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', sans-serif\", dark: null, khp: true, description: \"Interface font stack\" },\n { name: \"--kit-font-mono\", type: \"fontFamily\", value: \"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace\", dark: null, khp: true, description: \"Monospace font stack\" },\n { name: \"--kit-surface\", type: \"color\", value: \"#ffffff\", dark: null, khp: true, description: \"Editor background\" },\n { name: \"--kit-surface-muted\", type: \"color\", value: \"#fafaf9\", dark: null, khp: true, description: \"Panels, rails, ribbon background\" },\n { name: \"--kit-canvas\", type: \"color\", value: \"#f6f5f4\", dark: null, khp: true, description: \"Behind the document (pasteboard)\" },\n { name: \"--kit-text\", type: \"color\", value: \"#1a1a1a\", dark: null, khp: true, description: \"Primary text\" },\n { name: \"--kit-text-muted\", type: \"color\", value: \"#5d5b54\", dark: null, khp: true, description: \"Secondary text\" },\n { name: \"--kit-border\", type: \"color\", value: \"#e5e3df\", dark: null, khp: true, description: \"Hairlines and control borders\" },\n { name: \"--kit-primary\", type: \"color\", value: \"#5645d4\", dark: null, khp: true, description: \"Primary action, selection, focus\" },\n { name: \"--kit-primary-text\", type: \"color\", value: \"#ffffff\", dark: null, khp: true, description: \"Text on primary\" },\n { name: \"--kit-primary-soft\", type: \"color\", value: \"rgba(86, 69, 212, 0.1)\", dark: null, khp: true, description: \"Selected and hovered backgrounds\" },\n { name: \"--kit-danger\", type: \"color\", value: \"#e03131\", dark: null, khp: true, description: \"Destructive and error\" },\n { name: \"--kit-radius-control\", type: \"dimension\", value: \"8px\", dark: null, khp: true, description: \"Buttons, inputs\" },\n { name: \"--kit-radius-card\", type: \"dimension\", value: \"12px\", dark: null, khp: true, description: \"Cards, panels, dialogs\" },\n { name: \"--kit-shadow-card\", type: \"shadow\", value: \"0 1px 2px rgba(15, 15, 15, 0.06), 0 4px 16px rgba(15, 15, 15, 0.06)\", dark: null, khp: true, description: \"Card and popover shadow\" },\n { name: \"--kit-meter-bg\", type: \"color\", value: \"#e9e8e4\", dark: \"#000000\", khp: false, description: \"Level meter track\" },\n { name: \"--kit-meter-ok\", type: \"color\", value: \"#2f9e44\", dark: \"#579f51\", khp: false, description: \"Level meter green gradient, at the floor\" },\n { name: \"--kit-meter-ok-high\", type: \"color\", value: \"#40c057\", dark: \"#70dc5d\", khp: false, description: \"Level meter green gradient, at -12 dB\" },\n { name: \"--kit-meter-warn\", type: \"color\", value: \"#e8a200\", dark: \"#f0f04f\", khp: false, description: \"Level meter yellow band\" },\n { name: \"--kit-meter-clip\", type: \"color\", value: \"#e03131\", dark: \"#e34850\", khp: false, description: \"Level meter red band\" },\n { name: \"--kui-bar-height\", type: \"dimension\", value: \"36px\", dark: null, khp: false, description: \"The top strip of both shells\" },\n { name: \"--kui-ribbon-row\", type: \"dimension\", value: \"24px\", dark: null, khp: false, description: \"A ribbon row\" },\n { name: \"--kui-tab-underline\", type: \"dimension\", value: \"2px\", dark: null, khp: false, description: \"The selected tab's underline\" },\n { name: \"--kui-tab-selected-weight\", type: \"fontWeight\", value: \"600\", dark: null, khp: false, description: \"The selected tab's font weight\" },\n { name: \"--kui-hover\", type: \"color\", value: \"color-mix(in srgb, var(--kit-text) 7%, transparent)\", dark: null, khp: false, description: \"A control under the pointer: neutral, unlike a pressed toggle's --kit-primary-soft\" },\n { name: \"--kui-select-chevron\", type: \"other\", value: \"url(\\\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d5b54' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E\\\")\", dark: \"url(\\\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9a7a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E\\\")\", khp: false, description: \"Chevron-down for drop-downs, in --kit-text-muted (a data URI cannot read a variable)\" },\n { name: \"--kui-success\", type: \"color\", value: \"#18794e\", dark: \"#3dd68c\", khp: false, description: \"Success: done, active, paid (tags, alerts, results); text on its own soft tint\" },\n { name: \"--kui-warning\", type: \"color\", value: \"#ad5700\", dark: \"#ffca16\", khp: false, description: \"Warning: pending, needs attention (tags, alerts, results); text on its own soft tint\" },\n { name: \"--kui-chart-1\", type: \"color\", value: \"#5645d4\", dark: \"#8b7ff0\", khp: false, description: \"Chart series 1: lines and their legend swatches, in order\" },\n { name: \"--kui-chart-2\", type: \"color\", value: \"#0d74ce\", dark: \"#70b8ff\", khp: false, description: \"Chart series 2: lines and their legend swatches, in order\" },\n { name: \"--kui-chart-3\", type: \"color\", value: \"#18794e\", dark: \"#3dd68c\", khp: false, description: \"Chart series 3: lines and their legend swatches, in order\" },\n { name: \"--kui-chart-4\", type: \"color\", value: \"#ad5700\", dark: \"#ffca16\", khp: false, description: \"Chart series 4: lines and their legend swatches, in order\" },\n { name: \"--kui-chart-5\", type: \"color\", value: \"#ce2c31\", dark: \"#ff9592\", khp: false, description: \"Chart series 5: lines and their legend swatches, in order\" },\n { name: \"--kui-chart-6\", type: \"color\", value: \"#8145b5\", dark: \"#d19dff\", khp: false, description: \"Chart series 6: lines and their legend swatches, in order\" },\n]\n\nexport const KHP_TOKENS: readonly KhpTokenName[] = [\"--kit-font-sans\", \"--kit-font-mono\", \"--kit-surface\", \"--kit-surface-muted\", \"--kit-canvas\", \"--kit-text\", \"--kit-text-muted\", \"--kit-border\", \"--kit-primary\", \"--kit-primary-text\", \"--kit-primary-soft\", \"--kit-danger\", \"--kit-radius-control\", \"--kit-radius-card\", \"--kit-shadow-card\"]\n\nexport type SkinId = \"paper\" | \"graphite\"\n\n/** Every skin's theme, as a host sends it in `ui/initialize` and `ui/theme`. */\nexport const SKINS: Readonly<Record<SkinId, SkinTheme>> = {\n paper: {\n colorScheme: \"light\",\n tokens: {\n \"--kit-font-sans\": \"Inter, system-ui, -apple-system, 'SF Pro Text', 'Segoe UI', Roboto, 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', sans-serif\",\n \"--kit-font-mono\": \"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace\",\n \"--kit-surface\": \"#ffffff\",\n \"--kit-surface-muted\": \"#fafaf9\",\n \"--kit-canvas\": \"#f6f5f4\",\n \"--kit-text\": \"#1a1a1a\",\n \"--kit-text-muted\": \"#5d5b54\",\n \"--kit-border\": \"#e5e3df\",\n \"--kit-primary\": \"#5645d4\",\n \"--kit-primary-text\": \"#ffffff\",\n \"--kit-primary-soft\": \"rgba(86, 69, 212, 0.1)\",\n \"--kit-danger\": \"#e03131\",\n \"--kit-radius-control\": \"8px\",\n \"--kit-radius-card\": \"12px\",\n \"--kit-shadow-card\": \"0 1px 2px rgba(15, 15, 15, 0.06), 0 4px 16px rgba(15, 15, 15, 0.06)\",\n },\n },\n graphite: {\n colorScheme: \"dark\",\n tokens: {\n \"--kit-font-sans\": \"Inter, system-ui, -apple-system, 'SF Pro Text', 'Segoe UI', Roboto, 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', sans-serif\",\n \"--kit-font-mono\": \"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace\",\n \"--kit-surface\": \"#1b1e23\",\n \"--kit-surface-muted\": \"#22262c\",\n \"--kit-canvas\": \"#15171b\",\n \"--kit-text\": \"#eceff1\",\n \"--kit-text-muted\": \"#a9b0ba\",\n \"--kit-border\": \"#33373e\",\n \"--kit-primary\": \"#8b7ff0\",\n \"--kit-primary-text\": \"#0b0a1f\",\n \"--kit-primary-soft\": \"rgba(86, 69, 212, 0.1)\",\n \"--kit-danger\": \"#e03131\",\n \"--kit-radius-control\": \"8px\",\n \"--kit-radius-card\": \"12px\",\n \"--kit-shadow-card\": \"0 1px 2px rgba(15, 15, 15, 0.06), 0 4px 16px rgba(15, 15, 15, 0.06)\",\n },\n },\n}\n","/**\n * @kition/tessera-tokens: Tessera's design tokens. Import `@kition/tessera-tokens/tokens.css` for\n * the CSS variables (Paper values, plus dark overrides under `[data-color-scheme='dark']`); a host\n * sends a skin's theme with `SKINS.<id>` in the Kit UI protocol's `ui/initialize` and `ui/theme`.\n */\nexport * from './generated/tokens'\nimport { SKINS, type SkinId, type SkinTheme } from './generated/tokens'\n\n/** A skin's theme, or `null` for an unknown id. The theme is a fresh copy the caller may change. */\nexport function skinTheme(id: string): SkinTheme | null {\n const skin = (SKINS as Record<string, SkinTheme>)[id]\n return skin ? { colorScheme: skin.colorScheme, tokens: { ...skin.tokens } } : null\n}\n\nexport const SKIN_IDS = Object.keys(SKINS) as SkinId[]\n"],"mappings":";AAcO,IAAM,SAA2B;AAAA,EACtC,EAAE,MAAM,mBAAmB,MAAM,cAAc,OAAO,qIAAqI,MAAM,MAAM,KAAK,MAAM,aAAa,uBAAuB;AAAA,EACtP,EAAE,MAAM,mBAAmB,MAAM,cAAc,OAAO,oEAAoE,MAAM,MAAM,KAAK,MAAM,aAAa,uBAAuB;AAA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AAmB;AAAA,MACnB,iBAAiB;AAAA,MACjB,uBAAuB;AAAA,MACvB,gBAAgB;AAAA,MAChB,cAAc;AAAA,MACd,oBAAoB;AAAA,MACpB,gBAAgB;AAAA,MAChB,iBAAiB;AAAA,MACjB,sBAAsB;AAAA,MACtB,sBAAsB;AAAA,MACtB,gBAAgB;AAAA,MAChB,wBAAwB;AAAA,MACxB,qBAAqB;AAAA,MACrB,qBAAqB;AAAA,IACvB;AAAA,EACF;AACF;;;ACxFO,SAAS,UAAU,IAA8B;AACtD,QAAM,OAAQ,MAAoC,EAAE;AACpD,SAAO,OAAO,EAAE,aAAa,KAAK,aAAa,QAAQ,EAAE,GAAG,KAAK,OAAO,EAAE,IAAI;AAChF;AAEO,IAAM,WAAW,OAAO,KAAK,KAAK;","names":[]}
1
+ {"version":3,"sources":["../../src/tokens/generated/tokens.ts","../../src/tokens/index.ts"],"sourcesContent":["// Generated by @kition/tessera-tokens from tokens/*.tokens.json. Do not edit; run `pnpm build:tokens`.\n\n/** Every Tessera CSS variable. */\nexport type TokenName = \"--kit-font-sans\" | \"--kit-font-mono\" | \"--kit-surface\" | \"--kit-surface-muted\" | \"--kit-canvas\" | \"--kit-text\" | \"--kit-text-muted\" | \"--kit-border\" | \"--kit-primary\" | \"--kit-primary-text\" | \"--kit-primary-soft\" | \"--kit-danger\" | \"--kit-radius-control\" | \"--kit-radius-card\" | \"--kit-shadow-card\" | \"--kit-meter-bg\" | \"--kit-meter-ok\" | \"--kit-meter-ok-high\" | \"--kit-meter-warn\" | \"--kit-meter-clip\" | \"--kui-bar-height\" | \"--kui-ribbon-row\" | \"--kui-tab-underline\" | \"--kui-tab-selected-weight\" | \"--kui-control-3xs\" | \"--kui-control-2xs\" | \"--kui-control-xs\" | \"--kui-control-sm\" | \"--kui-control-md\" | \"--kui-control-lg\" | \"--kui-font-size-2xs\" | \"--kui-font-size-xs\" | \"--kui-font-size-sm\" | \"--kui-font-size-md\" | \"--kui-font-size-lg\" | \"--kui-font-size-xl\" | \"--kui-font-size-2xl\" | \"--kui-font-size-3xl\" | \"--kui-radius-xs\" | \"--kui-radius-sm\" | \"--kui-radius-md\" | \"--kui-hover\" | \"--kui-select-chevron\" | \"--kui-success\" | \"--kui-warning\" | \"--kui-chart-1\" | \"--kui-chart-2\" | \"--kui-chart-3\" | \"--kui-chart-4\" | \"--kui-chart-5\" | \"--kui-chart-6\"\n\n/** A Kit Harness Protocol theme token (Kit UI protocol, section 4). */\nexport type KhpTokenName = \"--kit-font-sans\" | \"--kit-font-mono\" | \"--kit-surface\" | \"--kit-surface-muted\" | \"--kit-canvas\" | \"--kit-text\" | \"--kit-text-muted\" | \"--kit-border\" | \"--kit-primary\" | \"--kit-primary-text\" | \"--kit-primary-soft\" | \"--kit-danger\" | \"--kit-radius-control\" | \"--kit-radius-card\" | \"--kit-shadow-card\"\n\n/** One token: its CSS variable, DTCG type, Paper value, the value under a dark color scheme when it differs, and whether hosts send it. */\nexport type Token = { name: TokenName; type: string; value: string; dark: string | null; khp: boolean; description: string }\n\n/** The Kit UI protocol theme for one skin. */\nexport type SkinTheme = { colorScheme: 'light' | 'dark'; tokens: Record<KhpTokenName, string> }\n\nexport const TOKENS: readonly Token[] = [\n { name: \"--kit-font-sans\", type: \"fontFamily\", value: \"Inter, system-ui, -apple-system, 'SF Pro Text', 'Segoe UI', Roboto, 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', sans-serif\", dark: null, khp: true, description: \"Interface font stack\" },\n { name: \"--kit-font-mono\", type: \"fontFamily\", value: \"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace\", dark: null, khp: true, description: \"Monospace font stack\" },\n { name: \"--kit-surface\", type: \"color\", value: \"#ffffff\", dark: null, khp: true, description: \"Editor background\" },\n { name: \"--kit-surface-muted\", type: \"color\", value: \"#fafaf9\", dark: null, khp: true, description: \"Panels, rails, ribbon background\" },\n { name: \"--kit-canvas\", type: \"color\", value: \"#f6f5f4\", dark: null, khp: true, description: \"Behind the document (pasteboard)\" },\n { name: \"--kit-text\", type: \"color\", value: \"#1a1a1a\", dark: null, khp: true, description: \"Primary text\" },\n { name: \"--kit-text-muted\", type: \"color\", value: \"#5d5b54\", dark: null, khp: true, description: \"Secondary text\" },\n { name: \"--kit-border\", type: \"color\", value: \"#e5e3df\", dark: null, khp: true, description: \"Hairlines and control borders\" },\n { name: \"--kit-primary\", type: \"color\", value: \"#5645d4\", dark: null, khp: true, description: \"Primary action, selection, focus\" },\n { name: \"--kit-primary-text\", type: \"color\", value: \"#ffffff\", dark: null, khp: true, description: \"Text on primary\" },\n { name: \"--kit-primary-soft\", type: \"color\", value: \"rgba(86, 69, 212, 0.1)\", dark: null, khp: true, description: \"Selected and hovered backgrounds\" },\n { name: \"--kit-danger\", type: \"color\", value: \"#e03131\", dark: null, khp: true, description: \"Destructive and error\" },\n { name: \"--kit-radius-control\", type: \"dimension\", value: \"8px\", dark: null, khp: true, description: \"Buttons, inputs\" },\n { name: \"--kit-radius-card\", type: \"dimension\", value: \"12px\", dark: null, khp: true, description: \"Cards, panels, dialogs\" },\n { name: \"--kit-shadow-card\", type: \"shadow\", value: \"0 1px 2px rgba(15, 15, 15, 0.06), 0 4px 16px rgba(15, 15, 15, 0.06)\", dark: null, khp: true, description: \"Card and popover shadow\" },\n { name: \"--kit-meter-bg\", type: \"color\", value: \"#e9e8e4\", dark: \"#000000\", khp: false, description: \"Level meter track\" },\n { name: \"--kit-meter-ok\", type: \"color\", value: \"#2f9e44\", dark: \"#579f51\", khp: false, description: \"Level meter green gradient, at the floor\" },\n { name: \"--kit-meter-ok-high\", type: \"color\", value: \"#40c057\", dark: \"#70dc5d\", khp: false, description: \"Level meter green gradient, at -12 dB\" },\n { name: \"--kit-meter-warn\", type: \"color\", value: \"#e8a200\", dark: \"#f0f04f\", khp: false, description: \"Level meter yellow band\" },\n { name: \"--kit-meter-clip\", type: \"color\", value: \"#e03131\", dark: \"#e34850\", khp: false, description: \"Level meter red band\" },\n { name: \"--kui-bar-height\", type: \"dimension\", value: \"36px\", dark: null, khp: false, description: \"The top strip of both shells\" },\n { name: \"--kui-ribbon-row\", type: \"dimension\", value: \"24px\", dark: null, khp: false, description: \"A ribbon row\" },\n { name: \"--kui-tab-underline\", type: \"dimension\", value: \"2px\", dark: null, khp: false, description: \"The selected tab's underline\" },\n { name: \"--kui-tab-selected-weight\", type: \"fontWeight\", value: \"600\", dark: null, khp: false, description: \"The selected tab's font weight\" },\n { name: \"--kui-control-3xs\", type: \"dimension\", value: \"18px\", dark: null, khp: false, description: \"Control height 3xs: controls in a node editor's 24 px rows\" },\n { name: \"--kui-control-2xs\", type: \"dimension\", value: \"24px\", dark: null, khp: false, description: \"Control height 2xs: a ribbon row's fields and buttons, as tall as --kui-ribbon-row\" },\n { name: \"--kui-control-xs\", type: \"dimension\", value: \"28px\", dark: null, khp: false, description: \"Control height xs: dense panels, level with Choice and .kui-field\" },\n { name: \"--kui-control-sm\", type: \"dimension\", value: \"32px\", dark: null, khp: false, description: \"Control height sm: toolbars and dense rows (the fields' default)\" },\n { name: \"--kui-control-md\", type: \"dimension\", value: \"36px\", dark: null, khp: false, description: \"Control height md: settings panels and dialogs\" },\n { name: \"--kui-control-lg\", type: \"dimension\", value: \"40px\", dark: null, khp: false, description: \"Control height lg: forms and calls to action\" },\n { name: \"--kui-font-size-2xs\", type: \"dimension\", value: \"10px\", dark: null, khp: false, description: \"Type scale 2xs: the smallest marks (a count in a dense row)\" },\n { name: \"--kui-font-size-xs\", type: \"dimension\", value: \"11px\", dark: null, khp: false, description: \"Type scale xs: ribbon group labels, controls of 3xs height\" },\n { name: \"--kui-font-size-sm\", type: \"dimension\", value: \"12px\", dark: null, khp: false, description: \"Type scale sm: captions, hints, the status bar, controls of 2xs height\" },\n { name: \"--kui-font-size-md\", type: \"dimension\", value: \"13px\", dark: null, khp: false, description: \"Type scale md: the editor's body text, controls of xs and sm height\" },\n { name: \"--kui-font-size-lg\", type: \"dimension\", value: \"14px\", dark: null, khp: false, description: \"Type scale lg: controls of md and lg height, page text\" },\n { name: \"--kui-font-size-xl\", type: \"dimension\", value: \"16px\", dark: null, khp: false, description: \"Type scale xl: section headings\" },\n { name: \"--kui-font-size-2xl\", type: \"dimension\", value: \"18px\", dark: null, khp: false, description: \"Type scale 2xl: dialog and page titles\" },\n { name: \"--kui-font-size-3xl\", type: \"dimension\", value: \"20px\", dark: null, khp: false, description: \"Type scale 3xl: the largest titles\" },\n { name: \"--kui-radius-xs\", type: \"dimension\", value: \"2px\", dark: null, khp: false, description: \"Radius xs: marks, cells, and small thumbs\" },\n { name: \"--kui-radius-sm\", type: \"dimension\", value: \"4px\", dark: null, khp: false, description: \"Radius sm: swatches, and controls of 3xs height\" },\n { name: \"--kui-radius-md\", type: \"dimension\", value: \"6px\", dark: null, khp: false, description: \"Radius md: chips and small tiles (controls take --kit-radius-control)\" },\n { name: \"--kui-hover\", type: \"color\", value: \"color-mix(in srgb, var(--kit-text) 7%, transparent)\", dark: null, khp: false, description: \"A control under the pointer: neutral, unlike a pressed toggle's --kit-primary-soft\" },\n { name: \"--kui-select-chevron\", type: \"other\", value: \"url(\\\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d5b54' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E\\\")\", dark: \"url(\\\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9a7a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E\\\")\", khp: false, description: \"Chevron-down for drop-downs, in --kit-text-muted (a data URI cannot read a variable)\" },\n { name: \"--kui-success\", type: \"color\", value: \"#18794e\", dark: \"#3dd68c\", khp: false, description: \"Success: done, active, paid (tags, alerts, results); text on its own soft tint\" },\n { name: \"--kui-warning\", type: \"color\", value: \"#ad5700\", dark: \"#ffca16\", khp: false, description: \"Warning: pending, needs attention (tags, alerts, results); text on its own soft tint\" },\n { name: \"--kui-chart-1\", type: \"color\", value: \"#5645d4\", dark: \"#8b7ff0\", khp: false, description: \"Chart series 1: lines and their legend swatches, in order\" },\n { name: \"--kui-chart-2\", type: \"color\", value: \"#0d74ce\", dark: \"#70b8ff\", khp: false, description: \"Chart series 2: lines and their legend swatches, in order\" },\n { name: \"--kui-chart-3\", type: \"color\", value: \"#18794e\", dark: \"#3dd68c\", khp: false, description: \"Chart series 3: lines and their legend swatches, in order\" },\n { name: \"--kui-chart-4\", type: \"color\", value: \"#ad5700\", dark: \"#ffca16\", khp: false, description: \"Chart series 4: lines and their legend swatches, in order\" },\n { name: \"--kui-chart-5\", type: \"color\", value: \"#ce2c31\", dark: \"#ff9592\", khp: false, description: \"Chart series 5: lines and their legend swatches, in order\" },\n { name: \"--kui-chart-6\", type: \"color\", value: \"#8145b5\", dark: \"#d19dff\", khp: false, description: \"Chart series 6: lines and their legend swatches, in order\" },\n]\n\nexport const KHP_TOKENS: readonly KhpTokenName[] = [\"--kit-font-sans\", \"--kit-font-mono\", \"--kit-surface\", \"--kit-surface-muted\", \"--kit-canvas\", \"--kit-text\", \"--kit-text-muted\", \"--kit-border\", \"--kit-primary\", \"--kit-primary-text\", \"--kit-primary-soft\", \"--kit-danger\", \"--kit-radius-control\", \"--kit-radius-card\", \"--kit-shadow-card\"]\n\nexport type SkinId = \"paper\" | \"graphite\"\n\n/** Every skin's theme, as a host sends it in `ui/initialize` and `ui/theme`. */\nexport const SKINS: Readonly<Record<SkinId, SkinTheme>> = {\n paper: {\n colorScheme: \"light\",\n tokens: {\n \"--kit-font-sans\": \"Inter, system-ui, -apple-system, 'SF Pro Text', 'Segoe UI', Roboto, 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', sans-serif\",\n \"--kit-font-mono\": \"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace\",\n \"--kit-surface\": \"#ffffff\",\n \"--kit-surface-muted\": \"#fafaf9\",\n \"--kit-canvas\": \"#f6f5f4\",\n \"--kit-text\": \"#1a1a1a\",\n \"--kit-text-muted\": \"#5d5b54\",\n \"--kit-border\": \"#e5e3df\",\n \"--kit-primary\": \"#5645d4\",\n \"--kit-primary-text\": \"#ffffff\",\n \"--kit-primary-soft\": \"rgba(86, 69, 212, 0.1)\",\n \"--kit-danger\": \"#e03131\",\n \"--kit-radius-control\": \"8px\",\n \"--kit-radius-card\": \"12px\",\n \"--kit-shadow-card\": \"0 1px 2px rgba(15, 15, 15, 0.06), 0 4px 16px rgba(15, 15, 15, 0.06)\",\n },\n },\n graphite: {\n colorScheme: \"dark\",\n tokens: {\n \"--kit-font-sans\": \"Inter, system-ui, -apple-system, 'SF Pro Text', 'Segoe UI', Roboto, 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', sans-serif\",\n \"--kit-font-mono\": \"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace\",\n \"--kit-surface\": \"#1b1e23\",\n \"--kit-surface-muted\": \"#22262c\",\n \"--kit-canvas\": \"#15171b\",\n \"--kit-text\": \"#eceff1\",\n \"--kit-text-muted\": \"#a9b0ba\",\n \"--kit-border\": \"#33373e\",\n \"--kit-primary\": \"#8b7ff0\",\n \"--kit-primary-text\": \"#0b0a1f\",\n \"--kit-primary-soft\": \"rgba(86, 69, 212, 0.1)\",\n \"--kit-danger\": \"#e03131\",\n \"--kit-radius-control\": \"8px\",\n \"--kit-radius-card\": \"12px\",\n \"--kit-shadow-card\": \"0 1px 2px rgba(15, 15, 15, 0.06), 0 4px 16px rgba(15, 15, 15, 0.06)\",\n },\n },\n}\n","/**\n * @kition/tessera-tokens: Tessera's design tokens. Import `@kition/tessera-tokens/tokens.css` for\n * the CSS variables (Paper values, plus dark overrides under `[data-color-scheme='dark']`); a host\n * sends a skin's theme with `SKINS.<id>` in the Kit UI protocol's `ui/initialize` and `ui/theme`.\n */\nexport * from './generated/tokens'\nimport { SKINS, type SkinId, type SkinTheme } from './generated/tokens'\n\n/** A skin's theme, or `null` for an unknown id. The theme is a fresh copy the caller may change. */\nexport function skinTheme(id: string): SkinTheme | null {\n const skin = (SKINS as Record<string, SkinTheme>)[id]\n return skin ? { colorScheme: skin.colorScheme, tokens: { ...skin.tokens } } : null\n}\n\nexport const SKIN_IDS = Object.keys(SKINS) as SkinId[]\n"],"mappings":";AAcO,IAAM,SAA2B;AAAA,EACtC,EAAE,MAAM,mBAAmB,MAAM,cAAc,OAAO,qIAAqI,MAAM,MAAM,KAAK,MAAM,aAAa,uBAAuB;AAAA,EACtP,EAAE,MAAM,mBAAmB,MAAM,cAAc,OAAO,oEAAoE,MAAM,MAAM,KAAK,MAAM,aAAa,uBAAuB;AAAA,EACrL,EAAE,MAAM,iBAAiB,MAAM,SAAS,OAAO,WAAW,MAAM,MAAM,KAAK,MAAM,aAAa,oBAAoB;AAAA,EAClH,EAAE,MAAM,uBAAuB,MAAM,SAAS,OAAO,WAAW,MAAM,MAAM,KAAK,MAAM,aAAa,mCAAmC;AAAA,EACvI,EAAE,MAAM,gBAAgB,MAAM,SAAS,OAAO,WAAW,MAAM,MAAM,KAAK,MAAM,aAAa,mCAAmC;AAAA,EAChI,EAAE,MAAM,cAAc,MAAM,SAAS,OAAO,WAAW,MAAM,MAAM,KAAK,MAAM,aAAa,eAAe;AAAA,EAC1G,EAAE,MAAM,oBAAoB,MAAM,SAAS,OAAO,WAAW,MAAM,MAAM,KAAK,MAAM,aAAa,iBAAiB;AAAA,EAClH,EAAE,MAAM,gBAAgB,MAAM,SAAS,OAAO,WAAW,MAAM,MAAM,KAAK,MAAM,aAAa,gCAAgC;AAAA,EAC7H,EAAE,MAAM,iBAAiB,MAAM,SAAS,OAAO,WAAW,MAAM,MAAM,KAAK,MAAM,aAAa,mCAAmC;AAAA,EACjI,EAAE,MAAM,sBAAsB,MAAM,SAAS,OAAO,WAAW,MAAM,MAAM,KAAK,MAAM,aAAa,kBAAkB;AAAA,EACrH,EAAE,MAAM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AO,OAAO,EAAE,aAAa,KAAK,aAAa,QAAQ,EAAE,GAAG,KAAK,OAAO,EAAE,IAAI;AAChF;AAEO,IAAM,WAAW,OAAO,KAAK,KAAK;","names":[]}
@@ -145,6 +145,91 @@
145
145
  "$value": "600",
146
146
  "$description": "The selected tab's font weight"
147
147
  },
148
+ "control-3xs": {
149
+ "$type": "dimension",
150
+ "$value": "18px",
151
+ "$description": "Control height 3xs: controls in a node editor's 24 px rows"
152
+ },
153
+ "control-2xs": {
154
+ "$type": "dimension",
155
+ "$value": "24px",
156
+ "$description": "Control height 2xs: a ribbon row's fields and buttons, as tall as --kui-ribbon-row"
157
+ },
158
+ "control-xs": {
159
+ "$type": "dimension",
160
+ "$value": "28px",
161
+ "$description": "Control height xs: dense panels, level with Choice and .kui-field"
162
+ },
163
+ "control-sm": {
164
+ "$type": "dimension",
165
+ "$value": "32px",
166
+ "$description": "Control height sm: toolbars and dense rows (the fields' default)"
167
+ },
168
+ "control-md": {
169
+ "$type": "dimension",
170
+ "$value": "36px",
171
+ "$description": "Control height md: settings panels and dialogs"
172
+ },
173
+ "control-lg": {
174
+ "$type": "dimension",
175
+ "$value": "40px",
176
+ "$description": "Control height lg: forms and calls to action"
177
+ },
178
+ "font-size-2xs": {
179
+ "$type": "dimension",
180
+ "$value": "10px",
181
+ "$description": "Type scale 2xs: the smallest marks (a count in a dense row)"
182
+ },
183
+ "font-size-xs": {
184
+ "$type": "dimension",
185
+ "$value": "11px",
186
+ "$description": "Type scale xs: ribbon group labels, controls of 3xs height"
187
+ },
188
+ "font-size-sm": {
189
+ "$type": "dimension",
190
+ "$value": "12px",
191
+ "$description": "Type scale sm: captions, hints, the status bar, controls of 2xs height"
192
+ },
193
+ "font-size-md": {
194
+ "$type": "dimension",
195
+ "$value": "13px",
196
+ "$description": "Type scale md: the editor's body text, controls of xs and sm height"
197
+ },
198
+ "font-size-lg": {
199
+ "$type": "dimension",
200
+ "$value": "14px",
201
+ "$description": "Type scale lg: controls of md and lg height, page text"
202
+ },
203
+ "font-size-xl": {
204
+ "$type": "dimension",
205
+ "$value": "16px",
206
+ "$description": "Type scale xl: section headings"
207
+ },
208
+ "font-size-2xl": {
209
+ "$type": "dimension",
210
+ "$value": "18px",
211
+ "$description": "Type scale 2xl: dialog and page titles"
212
+ },
213
+ "font-size-3xl": {
214
+ "$type": "dimension",
215
+ "$value": "20px",
216
+ "$description": "Type scale 3xl: the largest titles"
217
+ },
218
+ "radius-xs": {
219
+ "$type": "dimension",
220
+ "$value": "2px",
221
+ "$description": "Radius xs: marks, cells, and small thumbs"
222
+ },
223
+ "radius-sm": {
224
+ "$type": "dimension",
225
+ "$value": "4px",
226
+ "$description": "Radius sm: swatches, and controls of 3xs height"
227
+ },
228
+ "radius-md": {
229
+ "$type": "dimension",
230
+ "$value": "6px",
231
+ "$description": "Radius md: chips and small tiles (controls take --kit-radius-control)"
232
+ },
148
233
  "hover": {
149
234
  "$type": "color",
150
235
  "$value": "color-mix(in srgb, var(--kit-text) 7%, transparent)",
@@ -24,6 +24,23 @@
24
24
  --kui-ribbon-row: 24px;
25
25
  --kui-tab-underline: 2px;
26
26
  --kui-tab-selected-weight: 600;
27
+ --kui-control-3xs: 18px;
28
+ --kui-control-2xs: 24px;
29
+ --kui-control-xs: 28px;
30
+ --kui-control-sm: 32px;
31
+ --kui-control-md: 36px;
32
+ --kui-control-lg: 40px;
33
+ --kui-font-size-2xs: 10px;
34
+ --kui-font-size-xs: 11px;
35
+ --kui-font-size-sm: 12px;
36
+ --kui-font-size-md: 13px;
37
+ --kui-font-size-lg: 14px;
38
+ --kui-font-size-xl: 16px;
39
+ --kui-font-size-2xl: 18px;
40
+ --kui-font-size-3xl: 20px;
41
+ --kui-radius-xs: 2px;
42
+ --kui-radius-sm: 4px;
43
+ --kui-radius-md: 6px;
27
44
  --kui-hover: color-mix(in srgb, var(--kit-text) 7%, transparent);
28
45
  --kui-select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d5b54' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
29
46
  --kui-success: #18794e;
@@ -1,5 +1,5 @@
1
1
  /** Every Tessera CSS variable. */
2
- export type TokenName = "--kit-font-sans" | "--kit-font-mono" | "--kit-surface" | "--kit-surface-muted" | "--kit-canvas" | "--kit-text" | "--kit-text-muted" | "--kit-border" | "--kit-primary" | "--kit-primary-text" | "--kit-primary-soft" | "--kit-danger" | "--kit-radius-control" | "--kit-radius-card" | "--kit-shadow-card" | "--kit-meter-bg" | "--kit-meter-ok" | "--kit-meter-ok-high" | "--kit-meter-warn" | "--kit-meter-clip" | "--kui-bar-height" | "--kui-ribbon-row" | "--kui-tab-underline" | "--kui-tab-selected-weight" | "--kui-hover" | "--kui-select-chevron" | "--kui-success" | "--kui-warning" | "--kui-chart-1" | "--kui-chart-2" | "--kui-chart-3" | "--kui-chart-4" | "--kui-chart-5" | "--kui-chart-6";
2
+ export type TokenName = "--kit-font-sans" | "--kit-font-mono" | "--kit-surface" | "--kit-surface-muted" | "--kit-canvas" | "--kit-text" | "--kit-text-muted" | "--kit-border" | "--kit-primary" | "--kit-primary-text" | "--kit-primary-soft" | "--kit-danger" | "--kit-radius-control" | "--kit-radius-card" | "--kit-shadow-card" | "--kit-meter-bg" | "--kit-meter-ok" | "--kit-meter-ok-high" | "--kit-meter-warn" | "--kit-meter-clip" | "--kui-bar-height" | "--kui-ribbon-row" | "--kui-tab-underline" | "--kui-tab-selected-weight" | "--kui-control-3xs" | "--kui-control-2xs" | "--kui-control-xs" | "--kui-control-sm" | "--kui-control-md" | "--kui-control-lg" | "--kui-font-size-2xs" | "--kui-font-size-xs" | "--kui-font-size-sm" | "--kui-font-size-md" | "--kui-font-size-lg" | "--kui-font-size-xl" | "--kui-font-size-2xl" | "--kui-font-size-3xl" | "--kui-radius-xs" | "--kui-radius-sm" | "--kui-radius-md" | "--kui-hover" | "--kui-select-chevron" | "--kui-success" | "--kui-warning" | "--kui-chart-1" | "--kui-chart-2" | "--kui-chart-3" | "--kui-chart-4" | "--kui-chart-5" | "--kui-chart-6";
3
3
  /** A Kit Harness Protocol theme token (Kit UI protocol, section 4). */
4
4
  export type KhpTokenName = "--kit-font-sans" | "--kit-font-mono" | "--kit-surface" | "--kit-surface-muted" | "--kit-canvas" | "--kit-text" | "--kit-text-muted" | "--kit-border" | "--kit-primary" | "--kit-primary-text" | "--kit-primary-soft" | "--kit-danger" | "--kit-radius-control" | "--kit-radius-card" | "--kit-shadow-card";
5
5
  /** One token: its CSS variable, DTCG type, Paper value, the value under a dark color scheme when it differs, and whether hosts send it. */
@@ -4,8 +4,8 @@ import {
4
4
  Choice,
5
5
  Hint,
6
6
  Segmented
7
- } from "./chunks/chunk-W2JWOXEG.js";
8
- import "./chunks/chunk-6HL3LUO7.js";
7
+ } from "./chunks/chunk-NWHF4FJL.js";
8
+ import "./chunks/chunk-NGL7PXI3.js";
9
9
  import "./chunks/chunk-Q7J46B63.js";
10
10
  import "./chunks/chunk-FNSLOHKW.js";
11
11
  import "./chunks/chunk-54KOYG5C.js";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  Combobox,
3
3
  MultiSelect
4
- } from "./chunks/chunk-3YF4ZYGR.js";
5
- import "./chunks/chunk-RRXKR3NA.js";
4
+ } from "./chunks/chunk-6NMEEOZJ.js";
5
+ import "./chunks/chunk-GGJACVUZ.js";
6
6
  import "./chunks/chunk-AMQZWUVA.js";
7
- import "./chunks/chunk-6HL3LUO7.js";
7
+ import "./chunks/chunk-NGL7PXI3.js";
8
8
  import "./chunks/chunk-Q7J46B63.js";
9
9
  import "./chunks/chunk-FNSLOHKW.js";
10
10
  import "./chunks/chunk-54KOYG5C.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  DockArea,
3
3
  dockHeights
4
- } from "./chunks/chunk-IYK77VCV.js";
4
+ } from "./chunks/chunk-V2ZBOCUG.js";
5
5
  import "./chunks/chunk-ETJWSPQ2.js";
6
- import "./chunks/chunk-6HL3LUO7.js";
6
+ import "./chunks/chunk-NGL7PXI3.js";
7
7
  import "./chunks/chunk-Q7J46B63.js";
8
8
  import "./chunks/chunk-FNSLOHKW.js";
9
9
  import "./chunks/chunk-54KOYG5C.js";
@@ -3,10 +3,10 @@ import {
3
3
  automaticFloatingPosition,
4
4
  clampFloatingRect,
5
5
  resizeFloatingRect
6
- } from "./chunks/chunk-ZOITALHV.js";
6
+ } from "./chunks/chunk-HM644R34.js";
7
7
  import "./chunks/chunk-FJF6DGMN.js";
8
8
  import "./chunks/chunk-ETJWSPQ2.js";
9
- import "./chunks/chunk-6HL3LUO7.js";
9
+ import "./chunks/chunk-NGL7PXI3.js";
10
10
  import "./chunks/chunk-Q7J46B63.js";
11
11
  import "./chunks/chunk-FNSLOHKW.js";
12
12
  import "./chunks/chunk-54KOYG5C.js";
@@ -4,8 +4,8 @@ import {
4
4
  RenameField,
5
5
  Thumbnail,
6
6
  deviceScale
7
- } from "./chunks/chunk-MTDFR4DH.js";
8
- import "./chunks/chunk-6HL3LUO7.js";
7
+ } from "./chunks/chunk-JO2KOQDP.js";
8
+ import "./chunks/chunk-NGL7PXI3.js";
9
9
  import "./chunks/chunk-Q7J46B63.js";
10
10
  import "./chunks/chunk-FNSLOHKW.js";
11
11
  import "./chunks/chunk-54KOYG5C.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  PreviewDialog
3
- } from "./chunks/chunk-UBJNXHRF.js";
4
- import "./chunks/chunk-6HL3LUO7.js";
3
+ } from "./chunks/chunk-KVMTXLBR.js";
4
+ import "./chunks/chunk-NGL7PXI3.js";
5
5
  import "./chunks/chunk-Q7J46B63.js";
6
6
  import "./chunks/chunk-FNSLOHKW.js";
7
7
  import "./chunks/chunk-54KOYG5C.js";
@@ -0,0 +1,10 @@
1
+ import {
2
+ Radio,
3
+ RadioGroup
4
+ } from "./chunks/chunk-XLDBNHFP.js";
5
+ import "./chunks/chunk-54KOYG5C.js";
6
+ export {
7
+ Radio,
8
+ RadioGroup
9
+ };
10
+ //# sourceMappingURL=Radio.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,8 @@
1
+ import {
2
+ Slider
3
+ } from "./chunks/chunk-I75QHXDV.js";
4
+ import "./chunks/chunk-54KOYG5C.js";
5
+ export {
6
+ Slider
7
+ };
8
+ //# sourceMappingURL=Slider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  TransportBar
3
- } from "./chunks/chunk-T4N5DERU.js";
4
- import "./chunks/chunk-6HL3LUO7.js";
3
+ } from "./chunks/chunk-SLN7QDQH.js";
4
+ import "./chunks/chunk-NGL7PXI3.js";
5
5
  import "./chunks/chunk-Q7J46B63.js";
6
6
  import "./chunks/chunk-FNSLOHKW.js";
7
7
  import "./chunks/chunk-54KOYG5C.js";
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  WorkspaceLayout
3
- } from "./chunks/chunk-3NTB3WJK.js";
3
+ } from "./chunks/chunk-OEJOBDPF.js";
4
4
  import "./chunks/chunk-WMXIY2VO.js";
5
- import "./chunks/chunk-6HL3LUO7.js";
5
+ import "./chunks/chunk-NGL7PXI3.js";
6
6
  import "./chunks/chunk-Q7J46B63.js";
7
7
  import "./chunks/chunk-FNSLOHKW.js";
8
8
  import "./chunks/chunk-54KOYG5C.js";
@@ -7,11 +7,11 @@ import {
7
7
  Popover,
8
8
  PopoverContent,
9
9
  PopoverTrigger
10
- } from "./chunk-RRXKR3NA.js";
10
+ } from "./chunk-GGJACVUZ.js";
11
11
  import {
12
12
  ICON_STROKE,
13
13
  Spinner
14
- } from "./chunk-6HL3LUO7.js";
14
+ } from "./chunk-NGL7PXI3.js";
15
15
  import {
16
16
  useStrings
17
17
  } from "./chunk-Q7J46B63.js";
@@ -100,4 +100,4 @@ export {
100
100
  Combobox,
101
101
  MultiSelect
102
102
  };
103
- //# sourceMappingURL=chunk-3YF4ZYGR.js.map
103
+ //# sourceMappingURL=chunk-6NMEEOZJ.js.map
@@ -2,11 +2,11 @@ import {
2
2
  Popover,
3
3
  PopoverContent,
4
4
  PopoverTrigger
5
- } from "./chunk-RRXKR3NA.js";
5
+ } from "./chunk-GGJACVUZ.js";
6
6
  import {
7
7
  Button,
8
8
  ICON_STROKE
9
- } from "./chunk-6HL3LUO7.js";
9
+ } from "./chunk-NGL7PXI3.js";
10
10
  import {
11
11
  useStrings
12
12
  } from "./chunk-Q7J46B63.js";
@@ -333,4 +333,4 @@ export {
333
333
  DateTimeInput,
334
334
  Popconfirm
335
335
  };
336
- //# sourceMappingURL=chunk-LNWKABQM.js.map
336
+ //# sourceMappingURL=chunk-FVQKIUDF.js.map
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  Button,
6
6
  ICON_STROKE
7
- } from "./chunk-6HL3LUO7.js";
7
+ } from "./chunk-NGL7PXI3.js";
8
8
  import {
9
9
  useStrings
10
10
  } from "./chunk-Q7J46B63.js";
@@ -266,4 +266,4 @@ export {
266
266
  CommandItem,
267
267
  CommandShortcut
268
268
  };
269
- //# sourceMappingURL=chunk-RRXKR3NA.js.map
269
+ //# sourceMappingURL=chunk-GGJACVUZ.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ICON_STROKE
3
- } from "./chunk-6HL3LUO7.js";
3
+ } from "./chunk-NGL7PXI3.js";
4
4
  import {
5
5
  useStrings
6
6
  } from "./chunk-Q7J46B63.js";
@@ -9,10 +9,16 @@ import {
9
9
  import { forwardRef, useId, useLayoutEffect, useRef, useState } from "react";
10
10
  import { ChevronDownIcon, EyeIcon, EyeOffIcon } from "../../icons/react.js";
11
11
  import { jsx, jsxs } from "react/jsx-runtime";
12
- var TextInput = forwardRef(function TextInput2({ size = "sm", invalid, className, prefix, wrapperClassName, ...props }, ref) {
13
- const input = /* @__PURE__ */ jsx("input", { ref, className: join("kui-input", className), "data-size": size, "aria-invalid": invalid || void 0, ...props });
14
- if (prefix === void 0 || prefix === null) return input;
15
- return /* @__PURE__ */ jsxs("span", { className: join("kui-input-affix", wrapperClassName), "data-size": size, children: [
12
+ function placed(inline, width, style) {
13
+ const own = inline || width !== void 0;
14
+ return { inline: own || void 0, style: width === void 0 ? style : { ...style, width } };
15
+ }
16
+ var TextInput = forwardRef(function TextInput2({ size = "sm", invalid, inline, width, className, prefix, wrapperClassName, style, ...props }, ref) {
17
+ const affix = prefix !== void 0 && prefix !== null;
18
+ const place = placed(inline, width, affix ? void 0 : style);
19
+ const input = /* @__PURE__ */ jsx("input", { ref, className: join("kui-input", className), "data-size": size, "data-inline": affix ? void 0 : place.inline, "aria-invalid": invalid || void 0, style: affix ? style : place.style, ...props });
20
+ if (!affix) return input;
21
+ return /* @__PURE__ */ jsxs("span", { className: join("kui-input-affix", wrapperClassName), "data-size": size, "data-inline": place.inline, style: place.style, children: [
16
22
  /* @__PURE__ */ jsx("span", { className: "kui-input-prefix", "aria-hidden": "true", children: prefix }),
17
23
  input
18
24
  ] });
@@ -45,7 +51,7 @@ function useAutoSize(ref, value, options = {}) {
45
51
  element.style.overflowY = maxRows !== void 0 && lines > maxRows ? "auto" : "hidden";
46
52
  }, [ref, value, off, minRows, maxRows]);
47
53
  }
48
- var Textarea = forwardRef(function Textarea2({ invalid, autoSize, className, ...props }, ref) {
54
+ var Textarea = forwardRef(function Textarea2({ invalid, autoSize, size, className, ...props }, ref) {
49
55
  const own = useRef(null);
50
56
  useAutoSize(own, props.value, autoSize ? typeof autoSize === "object" ? autoSize : {} : null);
51
57
  return /* @__PURE__ */ jsx(
@@ -57,16 +63,18 @@ var Textarea = forwardRef(function Textarea2({ invalid, autoSize, className, ...
57
63
  else if (ref) ref.current = element;
58
64
  },
59
65
  className: join("kui-textarea", className),
66
+ "data-size": size,
60
67
  "data-auto-size": autoSize ? true : void 0,
61
68
  "aria-invalid": invalid || void 0,
62
69
  ...props
63
70
  }
64
71
  );
65
72
  });
66
- var Select = forwardRef(function Select2({ size = "sm", invalid, className, children, ...props }, ref) {
67
- return /* @__PURE__ */ jsxs("span", { className: join("kui-select", className), "data-size": size, children: [
73
+ var Select = forwardRef(function Select2({ size = "sm", invalid, inline, width, className, children, ...props }, ref) {
74
+ const place = placed(inline, width);
75
+ return /* @__PURE__ */ jsxs("span", { className: join("kui-select", className), "data-size": size, "data-inline": place.inline, style: place.style, children: [
68
76
  /* @__PURE__ */ jsx("select", { ref, "aria-invalid": invalid || void 0, ...props, children }),
69
- /* @__PURE__ */ jsx(ChevronDownIcon, { className: "kui-select-chevron", size: 14, strokeWidth: ICON_STROKE, "aria-hidden": "true" })
77
+ /* @__PURE__ */ jsx(ChevronDownIcon, { className: "kui-select-chevron", size: size === "3xs" ? 10 : size === "2xs" || size === "xs" ? 12 : 14, strokeWidth: ICON_STROKE, "aria-hidden": "true" })
70
78
  ] });
71
79
  });
72
80
  function Field({ label, hint, error, children, className }) {
@@ -89,7 +97,7 @@ function CardHeader({ className, ...props }) {
89
97
  function CardContent({ className, ...props }) {
90
98
  return /* @__PURE__ */ jsx("div", { className: join("kui-card-content", className), ...props });
91
99
  }
92
- function Disclosure({ title, defaultOpen = false, open: held, onOpenChange, onClose, children, className }) {
100
+ function Disclosure({ title, defaultOpen = false, open: held, onOpenChange, onClose, children, className, testId, triggerProps, ...rest }) {
93
101
  const [own, setOwn] = useState(defaultOpen);
94
102
  const open = held ?? own;
95
103
  const setOpen = (next) => {
@@ -97,15 +105,20 @@ function Disclosure({ title, defaultOpen = false, open: held, onOpenChange, onCl
97
105
  onOpenChange?.(next);
98
106
  };
99
107
  const bodyId = useId();
100
- return /* @__PURE__ */ jsxs("div", { className: join("kui-disclosure", className), "data-open": open || void 0, children: [
108
+ const { className: triggerClassName, onClick: triggerClick, ...trigger } = triggerProps ?? {};
109
+ return /* @__PURE__ */ jsxs("div", { "data-open": open || void 0, "data-testid": testId, ...rest, className: join("kui-disclosure", className), children: [
101
110
  /* @__PURE__ */ jsxs(
102
111
  "button",
103
112
  {
113
+ "data-testid": testId ? `${testId}-trigger` : void 0,
114
+ ...trigger,
104
115
  type: "button",
105
- className: "kui-disclosure-trigger",
116
+ className: join("kui-disclosure-trigger", triggerClassName),
106
117
  "aria-expanded": open,
107
118
  "aria-controls": bodyId,
108
- onClick: () => {
119
+ onClick: (event) => {
120
+ triggerClick?.(event);
121
+ if (event.defaultPrevented) return;
109
122
  setOpen(!open);
110
123
  if (open) onClose?.();
111
124
  },
@@ -134,4 +147,4 @@ export {
134
147
  CardContent,
135
148
  Disclosure
136
149
  };
137
- //# sourceMappingURL=chunk-Y4IPPAPE.js.map
150
+ //# sourceMappingURL=chunk-GS4FJ7WG.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/ui/forms.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/**\n * Form controls and containers for hosts and kit panels: text fields, password, multi-line text,\n * select, a labelled field, cards, and disclosures. Sizes follow the control scale (`ControlSize`):\n * `sm` (32px, toolbars and dense rows, the default), `md` (36px, settings panels), `lg` (40px,\n * forms), and the dense end: `xs` (28px, dense panels), `2xs` (24px, a ribbon row), `3xs` (18px,\n * in a node editor's rows). Styled only through the theme tokens (styles.css, \"Forms\").\n */\nimport { forwardRef, useId, useLayoutEffect, useRef, useState, type ButtonHTMLAttributes, type CSSProperties, type HTMLAttributes, type RefObject, type InputHTMLAttributes, type ReactNode, type SelectHTMLAttributes, type TextareaHTMLAttributes } from 'react'\nimport { ChevronDownIcon, EyeIcon, EyeOffIcon } from '@kition/tessera-icons/react'\nimport { useStrings } from './context'\nimport { ICON_STROKE, type ControlSize } from './ui'\n\ntype Sized = {\n /** Its height on the control scale (`ControlSize`); `sm` (32px) by default. */\n size?: ControlSize\n invalid?: boolean\n /**\n * Sits in a row with text and other controls, as wide as its content or `width`, instead of\n * filling the width of its container (a field in a ribbon or a toolbar).\n */\n inline?: boolean\n /** Its width (a number is px); it then sits inline, as with `inline`. */\n width?: number | string\n}\n\n/** The inline mark and the width style of a sized control. */\nfunction placed(inline: boolean | undefined, width: number | string | undefined, style?: CSSProperties) {\n const own = inline || width !== undefined\n return { inline: own || undefined, style: width === undefined ? style : { ...style, width } }\n}\n\nexport type TextInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'prefix' | 'width'> &\n Sized & {\n /** An icon (or short text) inside the field before the text: a search glass, a person. */\n prefix?: ReactNode\n /** Classes for the box around the field and its prefix (layout: width, margins). */\n wrapperClassName?: string\n }\n\n/** A single-line text field. `invalid` marks it (and `aria-invalid`) after a failed check. */\nexport const TextInput = forwardRef<HTMLInputElement, TextInputProps>(function TextInput({ size = 'sm', invalid, inline, width, className, prefix, wrapperClassName, style, ...props }, ref) {\n const affix = prefix !== undefined && prefix !== null\n const place = placed(inline, width, affix ? undefined : style)\n const input = <input ref={ref} className={join('kui-input', className)} data-size={size} data-inline={affix ? undefined : place.inline} aria-invalid={invalid || undefined} style={affix ? style : place.style} {...props} />\n if (!affix) return input\n return (\n <span className={join('kui-input-affix', wrapperClassName)} data-size={size} data-inline={place.inline} style={place.style}>\n <span className=\"kui-input-prefix\" aria-hidden=\"true\">\n {prefix}\n </span>\n {input}\n </span>\n )\n})\n\nexport type PasswordInputProps = Omit<TextInputProps, 'type' | 'wrapperClassName'> & {\n /** Classes for the box around the field and its show/hide button (layout: width, margins). */\n wrapperClassName?: string\n}\n\n/**\n * A password field with a show/hide button; the button keeps out of the tab order. `className`\n * goes on the field itself, as on TextInput.\n */\nexport const PasswordInput = forwardRef<HTMLInputElement, PasswordInputProps>(function PasswordInput({ size = 'sm', className, wrapperClassName, ...props }, ref) {\n const t = useStrings()\n const [visible, setVisible] = useState(false)\n const label = visible ? t('passwordHide') : t('passwordShow')\n const Icon = visible ? EyeOffIcon : EyeIcon\n return (\n <span className={join('kui-password', wrapperClassName)} data-size={size}>\n <TextInput ref={ref} size={size} className={className} {...props} type={visible ? 'text' : 'password'} />\n <button type=\"button\" className=\"kui-password-toggle\" aria-label={label} title={label} tabIndex={-1} onClick={() => setVisible((value) => !value)}>\n <Icon size={16} strokeWidth={ICON_STROKE} aria-hidden=\"true\" />\n </button>\n </span>\n )\n})\n\nexport type AutoSize = { minRows?: number; maxRows?: number }\n\n/**\n * Grows a text area with its text, between `minRows` and `maxRows` lines (it scrolls past\n * `maxRows`); measured again whenever `value` changes; `null` options leave it alone. For a text\n * area of your own; Textarea takes `autoSize` instead.\n */\nexport function useAutoSize(ref: RefObject<HTMLTextAreaElement | null>, value: unknown, options: AutoSize | null = {}) {\n const off = options === null\n const minRows = options?.minRows ?? 1\n const maxRows = options?.maxRows\n useLayoutEffect(() => {\n const element = ref.current\n if (!element || off) return\n const style = getComputedStyle(element)\n const line = parseFloat(style.lineHeight) || (parseFloat(style.fontSize) || 14) * 1.4\n const padding = (parseFloat(style.paddingTop) || 0) + (parseFloat(style.paddingBottom) || 0)\n const border = (parseFloat(style.borderTopWidth) || 0) + (parseFloat(style.borderBottomWidth) || 0)\n element.style.height = 'auto'\n const lines = Math.ceil((element.scrollHeight - padding) / line)\n const rows = Math.max(minRows, Math.min(maxRows ?? Number.POSITIVE_INFINITY, lines))\n element.style.height = `${rows * line + padding + border}px`\n element.style.overflowY = maxRows !== undefined && lines > maxRows ? 'auto' : 'hidden'\n }, [ref, value, off, minRows, maxRows])\n}\n\nexport type TextareaProps = TextareaHTMLAttributes<HTMLTextAreaElement> & {\n invalid?: boolean\n /** Grows with its text (between `minRows` and `maxRows` lines, when given). */\n autoSize?: boolean | AutoSize\n /**\n * Its text size and padding on the control scale (`ControlSize`), to sit with fields of that\n * size; from `xs` down it is at least one line tall instead of 96px. Without it: 96px tall, the\n * editor's text size.\n */\n size?: ControlSize\n}\n\n/** Multi-line text. */\nexport const Textarea = forwardRef<HTMLTextAreaElement, TextareaProps>(function Textarea({ invalid, autoSize, size, className, ...props }, ref) {\n const own = useRef<HTMLTextAreaElement | null>(null)\n useAutoSize(own, props.value, autoSize ? (typeof autoSize === 'object' ? autoSize : {}) : null)\n return (\n <textarea\n ref={(element) => {\n own.current = element\n if (typeof ref === 'function') ref(element)\n else if (ref) ref.current = element\n }}\n className={join('kui-textarea', className)}\n data-size={size}\n data-auto-size={autoSize ? true : undefined}\n aria-invalid={invalid || undefined}\n {...props}\n />\n )\n})\n\nexport type SelectProps = Omit<SelectHTMLAttributes<HTMLSelectElement>, 'size' | 'width'> & Sized\n\n/**\n * A drop-down. It stays a native select, as kits' do, for the platform's popup and accessibility,\n * drawn as Tessera's control. Children are `<option>`s. `className` and `width` go on the box\n * around the select (`kui-select`); `style` and the other props on the select.\n */\nexport const Select = forwardRef<HTMLSelectElement, SelectProps>(function Select({ size = 'sm', invalid, inline, width, className, children, ...props }, ref) {\n const place = placed(inline, width)\n return (\n <span className={join('kui-select', className)} data-size={size} data-inline={place.inline} style={place.style}>\n <select ref={ref} aria-invalid={invalid || undefined} {...props}>\n {children}\n </select>\n <ChevronDownIcon className=\"kui-select-chevron\" size={size === '3xs' ? 10 : size === '2xs' || size === 'xs' ? 12 : 14} strokeWidth={ICON_STROKE} aria-hidden=\"true\" />\n </span>\n )\n})\n\nexport type FieldProps = {\n label: ReactNode\n /** Help under the control; replaced by `error` when there is one. */\n hint?: ReactNode\n error?: ReactNode\n /** The control. Given a function, it receives the ids to put on it (`id`, `aria-describedby`). */\n children: ReactNode | ((ids: { id: string; describedBy: string | undefined; invalid: boolean }) => ReactNode)\n className?: string\n}\n\n/** A label, a control, and its help or error, wired together for screen readers. */\nexport function Field({ label, hint, error, children, className }: FieldProps) {\n const id = useId()\n const noteId = `${id}-note`\n const note = error ?? hint\n const describedBy = note ? noteId : undefined\n return (\n <div className={join('kui-form-field', className)} data-invalid={error ? true : undefined}>\n <label className=\"kui-form-label\" htmlFor={id}>\n {label}\n </label>\n {typeof children === 'function' ? children({ id, describedBy, invalid: Boolean(error) }) : children}\n {note ? (\n <p id={noteId} className=\"kui-form-note\" role={error ? 'alert' : undefined}>\n {note}\n </p>\n ) : null}\n </div>\n )\n}\n\n/** A product card: 12px radius, a hairline, a light shadow. */\nexport function Card({ className, ...props }: HTMLAttributes<HTMLDivElement>) {\n return <div className={join('kui-card', className)} {...props} />\n}\n\nexport function CardHeader({ className, ...props }: HTMLAttributes<HTMLDivElement>) {\n return <div className={join('kui-card-header', className)} {...props} />\n}\n\nexport function CardContent({ className, ...props }: HTMLAttributes<HTMLDivElement>) {\n return <div className={join('kui-card-content', className)} {...props} />\n}\n\nexport type DisclosureProps = Omit<HTMLAttributes<HTMLDivElement>, 'title' | 'children'> & {\n title: ReactNode\n defaultOpen?: boolean\n /** Open, when the screen holds the state (with `onOpenChange`). */\n open?: boolean\n onOpenChange?: (open: boolean) => void\n /** Called when the person closes it. */\n onClose?: () => void\n children?: ReactNode\n className?: string\n /** The wrapper's test id; the trigger's is `${testId}-trigger` unless `triggerProps` gives one. */\n testId?: string\n /**\n * Attributes for the trigger button: a `title` tooltip, a `data-testid`, `data-*` marks,\n * `aria-*`, handlers. Its own `type`, `aria-expanded` and `aria-controls` stay.\n */\n triggerProps?: Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'type' | 'children'> & { [data: `data-${string}`]: string | number | boolean | undefined }\n}\n\n/**\n * A section that opens and closes under its title. Attributes not listed here (`role`,\n * `aria-label`, `data-*`, `style`) go on the wrapper.\n */\nexport function Disclosure({ title, defaultOpen = false, open: held, onOpenChange, onClose, children, className, testId, triggerProps, ...rest }: DisclosureProps) {\n const [own, setOwn] = useState(defaultOpen)\n const open = held ?? own\n const setOpen = (next: boolean) => {\n if (held === undefined) setOwn(next)\n onOpenChange?.(next)\n }\n const bodyId = useId()\n const { className: triggerClassName, onClick: triggerClick, ...trigger } = triggerProps ?? {}\n return (\n <div data-open={open || undefined} data-testid={testId} {...rest} className={join('kui-disclosure', className)}>\n <button\n data-testid={testId ? `${testId}-trigger` : undefined}\n {...trigger}\n type=\"button\"\n className={join('kui-disclosure-trigger', triggerClassName)}\n aria-expanded={open}\n aria-controls={bodyId}\n onClick={(event) => {\n triggerClick?.(event)\n if (event.defaultPrevented) return\n setOpen(!open)\n if (open) onClose?.()\n }}\n >\n <ChevronDownIcon className=\"kui-disclosure-chevron\" size={16} strokeWidth={ICON_STROKE} aria-hidden=\"true\" />\n <span>{title}</span>\n </button>\n {open ? (\n <div id={bodyId} className=\"kui-disclosure-body\">\n {children}\n </div>\n ) : null}\n </div>\n )\n}\n\nfunction join(...names: (string | undefined | false)[]) {\n return names.filter(Boolean).join(' ')\n}\n"],"mappings":";;;;;;;;AAQA,SAAS,YAAY,OAAO,iBAAiB,QAAQ,gBAAsM;AAC3P,SAAS,iBAAiB,SAAS,kBAAkB;AAmCrC,cAGZ,YAHY;AAjBhB,SAAS,OAAO,QAA6B,OAAoC,OAAuB;AACtG,QAAM,MAAM,UAAU,UAAU;AAChC,SAAO,EAAE,QAAQ,OAAO,QAAW,OAAO,UAAU,SAAY,QAAQ,EAAE,GAAG,OAAO,MAAM,EAAE;AAC9F;AAWO,IAAM,YAAY,WAA6C,SAASA,WAAU,EAAE,OAAO,MAAM,SAAS,QAAQ,OAAO,WAAW,QAAQ,kBAAkB,OAAO,GAAG,MAAM,GAAG,KAAK;AAC3L,QAAM,QAAQ,WAAW,UAAa,WAAW;AACjD,QAAM,QAAQ,OAAO,QAAQ,OAAO,QAAQ,SAAY,KAAK;AAC7D,QAAM,QAAQ,oBAAC,WAAM,KAAU,WAAW,KAAK,aAAa,SAAS,GAAG,aAAW,MAAM,eAAa,QAAQ,SAAY,MAAM,QAAQ,gBAAc,WAAW,QAAW,OAAO,QAAQ,QAAQ,MAAM,OAAQ,GAAG,OAAO;AAC3N,MAAI,CAAC,MAAO,QAAO;AACnB,SACE,qBAAC,UAAK,WAAW,KAAK,mBAAmB,gBAAgB,GAAG,aAAW,MAAM,eAAa,MAAM,QAAQ,OAAO,MAAM,OACnH;AAAA,wBAAC,UAAK,WAAU,oBAAmB,eAAY,QAC5C,kBACH;AAAA,IACC;AAAA,KACH;AAEJ,CAAC;AAWM,I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AI,aAAW,QAAQ,QAAW,eAAa,QAAS,GAAG,MAAM,WAAW,KAAK,kBAAkB,SAAS,GAC3G;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,eAAa,SAAS,GAAG,MAAM,aAAa;AAAA,QAC3C,GAAG;AAAA,QACJ,MAAK;AAAA,QACL,WAAW,KAAK,0BAA0B,gBAAgB;AAAA,QAC1D,iBAAe;AAAA,QACf,iBAAe;AAAA,QACf,SAAS,CAAC,UAAU;AAClB,yBAAe,KAAK;AACpB,cAAI,MAAM,iBAAkB;AAC5B,kBAAQ,CAAC,IAAI;AACb,cAAI,KAAM,WAAU;AAAA,QACtB;AAAA,QAEA;AAAA,8BAAC,mBAAgB,WAAU,0BAAyB,MAAM,IAAI,aAAa,aAAa,eAAY,QAAO;AAAA,UAC3G,oBAAC,UAAM,iBAAM;AAAA;AAAA;AAAA,IACf;AAAA,IACC,OACC,oBAAC,SAAI,IAAI,QAAQ,WAAU,uBACxB,UACH,IACE;AAAA,KACN;AAEJ;AAEA,SAAS,QAAQ,OAAuC;AACtD,SAAO,MAAM,OAAO,OAAO,EAAE,KAAK,GAAG;AACvC;","names":["TextInput","PasswordInput","Textarea","Select"]}
@@ -8,7 +8,7 @@ import {
8
8
  } from "./chunk-ETJWSPQ2.js";
9
9
  import {
10
10
  IconButton
11
- } from "./chunk-6HL3LUO7.js";
11
+ } from "./chunk-NGL7PXI3.js";
12
12
  import {
13
13
  useElements
14
14
  } from "./chunk-Q7J46B63.js";
@@ -281,4 +281,4 @@ export {
281
281
  automaticFloatingPosition,
282
282
  FloatingPanels
283
283
  };
284
- //# sourceMappingURL=chunk-ZOITALHV.js.map
284
+ //# sourceMappingURL=chunk-HM644R34.js.map