@weasel-js/ui 0.5.1 → 0.7.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 (127) hide show
  1. package/dist/chunks/ActionBar-CiKvEvXi.js +63 -0
  2. package/dist/chunks/ActionBar-CiKvEvXi.js.map +1 -0
  3. package/dist/chunks/ActionsBar-CzU6Of3B.js +94 -0
  4. package/dist/chunks/ActionsBar-CzU6Of3B.js.map +1 -0
  5. package/dist/chunks/Badge-DU8ihE7Z.js +2942 -0
  6. package/dist/chunks/Badge-DU8ihE7Z.js.map +1 -0
  7. package/dist/chunks/Button-9QNIYugK.js +87 -0
  8. package/dist/chunks/Button-9QNIYugK.js.map +1 -0
  9. package/dist/chunks/Callout-Dt0kBIls.js +114 -0
  10. package/dist/chunks/Callout-Dt0kBIls.js.map +1 -0
  11. package/dist/chunks/Checkbox-CtK8H_OQ.js +47 -0
  12. package/dist/chunks/Checkbox-CtK8H_OQ.js.map +1 -0
  13. package/dist/chunks/ColorField-sGLnThpB.js +60 -0
  14. package/dist/chunks/ColorField-sGLnThpB.js.map +1 -0
  15. package/dist/chunks/ComboBox-pH8aDEL2.js +88 -0
  16. package/dist/chunks/ComboBox-pH8aDEL2.js.map +1 -0
  17. package/dist/chunks/CurveEditor-DrORWShU.js +786 -0
  18. package/dist/chunks/CurveEditor-DrORWShU.js.map +1 -0
  19. package/dist/chunks/DataGrid-mUq38k0Q.js +186 -0
  20. package/dist/chunks/DataGrid-mUq38k0Q.js.map +1 -0
  21. package/dist/chunks/Dialog-CQymDCAl.js +58 -0
  22. package/dist/chunks/Dialog-CQymDCAl.js.map +1 -0
  23. package/dist/chunks/Field-BHSu2F3E.js +31 -0
  24. package/dist/chunks/Field-BHSu2F3E.js.map +1 -0
  25. package/dist/chunks/Input-D_Xzgr2b.js +55 -0
  26. package/dist/chunks/Input-D_Xzgr2b.js.map +1 -0
  27. package/dist/chunks/Keycaps-B9dJMYx_.js +397 -0
  28. package/dist/chunks/Keycaps-B9dJMYx_.js.map +1 -0
  29. package/dist/chunks/NumberField-BQmELz32.js +59 -0
  30. package/dist/chunks/NumberField-BQmELz32.js.map +1 -0
  31. package/dist/chunks/OptionsBar-CHOP_CiW.js +98 -0
  32. package/dist/chunks/OptionsBar-CHOP_CiW.js.map +1 -0
  33. package/dist/chunks/Plot2D-CEnhzodm.js +168 -0
  34. package/dist/chunks/Plot2D-CEnhzodm.js.map +1 -0
  35. package/dist/chunks/PointPlotter-D528sBdT.js +16 -0
  36. package/dist/chunks/PointPlotter-D528sBdT.js.map +1 -0
  37. package/dist/chunks/Powerline-C8rddbbK.js +36 -0
  38. package/dist/chunks/Powerline-C8rddbbK.js.map +1 -0
  39. package/dist/chunks/Prefs-snBejOzK.js +238 -0
  40. package/dist/chunks/Prefs-snBejOzK.js.map +1 -0
  41. package/dist/chunks/RadioGroup-Ci-I9NEx.js +49 -0
  42. package/dist/chunks/RadioGroup-Ci-I9NEx.js.map +1 -0
  43. package/dist/chunks/RangeSlider-CW-edtNx.js +52 -0
  44. package/dist/chunks/RangeSlider-CW-edtNx.js.map +1 -0
  45. package/dist/chunks/Select-l7pAkVEG.js +97 -0
  46. package/dist/chunks/Select-l7pAkVEG.js.map +1 -0
  47. package/dist/chunks/SelectionPanel-CMglTgEf.js +303 -0
  48. package/dist/chunks/SelectionPanel-CMglTgEf.js.map +1 -0
  49. package/dist/chunks/Sidebar-BFcBx8QV.js +26 -0
  50. package/dist/chunks/Sidebar-BFcBx8QV.js.map +1 -0
  51. package/dist/chunks/SidebarPanel-CRnSlvee.js +59 -0
  52. package/dist/chunks/SidebarPanel-CRnSlvee.js.map +1 -0
  53. package/dist/chunks/Slider-sUJGgmKR.js +221 -0
  54. package/dist/chunks/Slider-sUJGgmKR.js.map +1 -0
  55. package/dist/chunks/Switch-DxJLMYki.js +27 -0
  56. package/dist/chunks/Switch-DxJLMYki.js.map +1 -0
  57. package/dist/chunks/Tabs-DelDecks.js +41 -0
  58. package/dist/chunks/Tabs-DelDecks.js.map +1 -0
  59. package/dist/chunks/Toast-Bw3XQxmV.js +128 -0
  60. package/dist/chunks/Toast-Bw3XQxmV.js.map +1 -0
  61. package/dist/chunks/ToggleBar-Defj6Asn.js +129 -0
  62. package/dist/chunks/ToggleBar-Defj6Asn.js.map +1 -0
  63. package/dist/chunks/ToolButton-Dk_uJf7N.js +53 -0
  64. package/dist/chunks/ToolButton-Dk_uJf7N.js.map +1 -0
  65. package/dist/chunks/ToolGroup-D8-qdtuw.js +25 -0
  66. package/dist/chunks/ToolGroup-D8-qdtuw.js.map +1 -0
  67. package/dist/chunks/ToolOptionsBar-ChiL-HVA.js +27 -0
  68. package/dist/chunks/ToolOptionsBar-ChiL-HVA.js.map +1 -0
  69. package/dist/chunks/ToolPalette-xKHzPKYf.js +117 -0
  70. package/dist/chunks/ToolPalette-xKHzPKYf.js.map +1 -0
  71. package/dist/chunks/Tooltip-Clgn4trm.js +39 -0
  72. package/dist/chunks/Tooltip-Clgn4trm.js.map +1 -0
  73. package/dist/chunks/keyGlyph-BDH5fqkO.js +22 -0
  74. package/dist/chunks/keyGlyph-BDH5fqkO.js.map +1 -0
  75. package/dist/components/ActionBar/index.js +2 -0
  76. package/dist/components/ActionsBar/index.js +2 -0
  77. package/dist/components/Badge/index.js +2 -0
  78. package/dist/components/Button/index.js +2 -0
  79. package/dist/components/Callout/index.js +2 -0
  80. package/dist/components/Checkbox/index.js +2 -0
  81. package/dist/components/ColorField/index.js +2 -0
  82. package/dist/components/ComboBox/index.js +2 -0
  83. package/dist/components/CurveEditor/index.js +2 -0
  84. package/dist/components/DataGrid/index.js +2 -0
  85. package/dist/components/Dialog/index.js +2 -0
  86. package/dist/components/Field/index.js +2 -0
  87. package/dist/components/Input/index.js +2 -0
  88. package/dist/components/Keycaps/index.js +3 -0
  89. package/dist/components/NumberField/index.js +2 -0
  90. package/dist/components/OptionsBar/index.js +2 -0
  91. package/dist/components/Plot2D/index.js +2 -0
  92. package/dist/components/PointPlotter/index.js +2 -0
  93. package/dist/components/Powerline/index.js +3 -0
  94. package/dist/components/Prefs/index.js +2 -0
  95. package/dist/components/RadioGroup/index.js +2 -0
  96. package/dist/components/RangeSlider/index.js +2 -0
  97. package/dist/components/Select/index.js +2 -0
  98. package/dist/components/SelectionPanel/SelectionPanel.d.ts.map +1 -1
  99. package/dist/components/SelectionPanel/index.d.ts +1 -1
  100. package/dist/components/SelectionPanel/index.d.ts.map +1 -1
  101. package/dist/components/SelectionPanel/index.js +2 -0
  102. package/dist/components/SelectionPanel/model.d.ts +13 -11
  103. package/dist/components/SelectionPanel/model.d.ts.map +1 -1
  104. package/dist/components/Sidebar/index.js +2 -0
  105. package/dist/components/SidebarPanel/index.js +2 -0
  106. package/dist/components/Slider/index.js +2 -0
  107. package/dist/components/Switch/index.js +2 -0
  108. package/dist/components/Tabs/index.js +2 -0
  109. package/dist/components/Toast/index.js +2 -0
  110. package/dist/components/ToggleBar/ToggleBar.d.ts +17 -0
  111. package/dist/components/ToggleBar/ToggleBar.d.ts.map +1 -1
  112. package/dist/components/ToggleBar/index.js +2 -0
  113. package/dist/components/ToolButton/index.js +2 -0
  114. package/dist/components/ToolGroup/index.js +2 -0
  115. package/dist/components/ToolOptionsBar/ToolOptionsBar.d.ts +44 -0
  116. package/dist/components/ToolOptionsBar/ToolOptionsBar.d.ts.map +1 -0
  117. package/dist/components/ToolOptionsBar/index.d.ts +3 -0
  118. package/dist/components/ToolOptionsBar/index.d.ts.map +1 -0
  119. package/dist/components/ToolOptionsBar/index.js +2 -0
  120. package/dist/components/ToolPalette/index.js +2 -0
  121. package/dist/components/Tooltip/index.js +2 -0
  122. package/dist/index.d.ts +1 -0
  123. package/dist/index.d.ts.map +1 -1
  124. package/dist/index.js +50 -6749
  125. package/dist/index.js.map +1 -1
  126. package/dist/style.css +1 -1
  127. package/package.json +8 -4
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ToggleBar-Defj6Asn.js","names":[],"sources":["../../src/components/ToggleBar/ToggleBar.module.css","../../src/components/ToggleBar/ToggleBar.tsx"],"sourcesContent":["/* Aqua-glass segmented control. The track is a pill-shaped well; the\n selected segment becomes a tinted glass cylinder that reads as the same\n \"lozenge\" family as the standalone Button. Visual params come from the\n `--btn-*` custom properties (see Button.module.css) so the Button Lab\n can tune both surfaces with one set of sliders. */\n.root {\n display: inline-flex;\n height: var(--wzl-tb-height, 28px);\n padding: 2px;\n background: linear-gradient(\n 180deg,\n rgba(0, 0, 0, 0.18) 0%,\n rgba(0, 0, 0, 0.05) 100%\n );\n border-radius: 999px;\n /* Clip segments to the track outline so interior corners read crisp and\n the selected segment's glass treatment doesn't paint over the rounded\n outer pixels. */\n overflow: hidden;\n box-shadow:\n inset 0 1px 2px rgba(0, 0, 0, 0.4),\n 0 1px 0 rgba(255, 255, 255, 0.06);\n user-select: none;\n -webkit-user-select: none;\n touch-action: none;\n}\n\n.segment {\n position: relative;\n flex: 1 1 0;\n min-width: 0;\n padding: 0 12px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n background: transparent;\n border: none;\n margin: 0;\n font-family: var(--wzl-font-ui);\n font-weight: 300;\n font-size: var(--btn-fontsize, 14px);\n line-height: 1;\n color: var(--wzl-fg-muted);\n cursor: pointer;\n /* Only round the outer corners of the bar — middle segments stay square\n so the seams between them don't render as facing parentheses. */\n border-radius: 0;\n isolation: isolate;\n overflow: hidden;\n transition: color var(--wzl-motion-fast);\n}\n\n.segment:first-child {\n border-radius: 999px 0 0 999px;\n}\n\n.segment:last-child {\n border-radius: 0 999px 999px 0;\n}\n\n.segment:only-child {\n border-radius: 999px;\n}\n\n.segment:focus-visible {\n outline: 2px solid var(--wzl-accent);\n outline-offset: -2px;\n}\n\n.segment:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n.segment:hover:not(:disabled):not(.segmentSelected) {\n color: var(--wzl-fg);\n}\n\n/* Selected segment — full Aqua glass cylinder. Mirrors Button.variant_primary. */\n.segmentSelected {\n background: linear-gradient(\n 180deg,\n color-mix(in srgb, var(--wzl-accent) var(--btn-top-alpha, 45%), transparent) 0%,\n color-mix(in srgb, var(--wzl-accent) var(--btn-upper-alpha, 70%), transparent) calc(var(--btn-equator, 52%) - var(--btn-equator-spread, 12%)),\n color-mix(in srgb, var(--wzl-accent) var(--btn-equator-tint, 95%), white) var(--btn-equator, 52%),\n var(--wzl-accent) calc(var(--btn-equator, 52%) + var(--btn-equator-spread, 12%) * 1.6),\n color-mix(in srgb, var(--wzl-accent) var(--btn-base-tint, 70%), black) 100%\n );\n backdrop-filter: blur(var(--btn-blur, 6px)) saturate(var(--btn-saturate, 1.3));\n -webkit-backdrop-filter: blur(var(--btn-blur, 6px)) saturate(var(--btn-saturate, 1.3));\n color: var(--wzl-fg-on-accent);\n text-shadow:\n 0 1px 0 rgba(0, 0, 0, var(--btn-text-shadow, 0.35)),\n var(--btn-text-inset-x, 0px) var(--btn-text-inset-y, 1px) 0 rgba(0, 0, 0, var(--btn-text-inset, 0.55)),\n 0 0 6px rgba(0, 0, 0, calc(var(--btn-text-shadow, 0.35) * 0.5));\n box-shadow:\n inset 0 1px 0 rgba(255, 255, 255, var(--btn-inset-hi, 0.42)),\n inset 0 -1px 2px rgba(0, 0, 0, var(--btn-inset-lo, 0.3)),\n 0 0 0 1px rgba(0, 0, 0, var(--btn-rim, 0.22)),\n 0 1px 2px rgba(0, 0, 0, var(--btn-drop-near, 0.3)),\n 0 2px 4px rgba(0, 0, 0, calc(var(--btn-drop-far, 0.18) * 0.8));\n}\n\n/* Specular gloss on the selected segment. Top corners inherit the\n segment's radius so they hug the upper edge cleanly; bottom corners\n are flattened so the gloss ends in a straight line at the equator\n instead of two little curves that read as `)(` brackets. */\n.segmentSelected::before {\n content: '';\n position: absolute;\n inset: 1px 1px var(--btn-gloss-bottom, 50%) 1px;\n border-radius: inherit;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n background: linear-gradient(\n 180deg,\n rgba(255, 255, 255, var(--btn-gloss-top, 0.42)) 0%,\n rgba(255, 255, 255, var(--btn-gloss-mid, 0.12)) 60%,\n rgba(255, 255, 255, 0) 100%\n );\n pointer-events: none;\n z-index: 1;\n}\n\n.segmentSelected > * {\n position: relative;\n z-index: 2;\n}\n\n/* Mixed segment (`aria-pressed=\"mixed\"`) — the sources disagree. Reads as a\n deliberate third state rather than a dimmed \"on\": a flat accent wash with\n none of the selected segment's gloss/cylinder treatment, so it can't be\n mistaken for the glass lozenge at a glance. */\n.segmentMixed {\n background: color-mix(in srgb, var(--wzl-accent) 22%, transparent);\n color: var(--wzl-fg);\n box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--wzl-accent) 45%, transparent);\n}\n\n.segmentMixed:hover:not(:disabled) {\n background: color-mix(in srgb, var(--wzl-accent) 32%, transparent);\n}\n\n.variant_minimal .segmentMixed {\n background: color-mix(in srgb, var(--wzl-accent) 18%, transparent);\n box-shadow: none;\n color: var(--wzl-fg);\n}\n\n/* Small variant — ~60% of the default height, with proportionally reduced\n padding and font. Sized for dense surfaces (lab control panels, inline\n filters, etc.). */\n.size_sm {\n height: 17px;\n padding: 1px;\n}\n\n.size_sm .segment {\n padding: 0 8px;\n font-size: 11px;\n}\n\n/* Minimal variant — strips the pill track, glass selected state, inset\n shadows, and outer padding. Used in dense diagnostic surfaces (dispatch\n trace, lab inspectors) where the bar must read as plain text controls. */\n.variant_minimal {\n height: auto;\n padding: 0;\n background: none;\n border: 1px solid var(--wzl-border, rgba(255, 255, 255, 0.18));\n border-radius: 3px;\n box-shadow: none;\n gap: 0;\n}\n\n.variant_minimal .segment {\n padding: 0 6px;\n font-size: 11px;\n font-weight: 400;\n line-height: 1.4;\n border-radius: 0;\n color: var(--wzl-fg-muted);\n transition: none;\n}\n\n/* Dividers between segments make the mutual-exclusion grouping visible\n without a heavy track. Only the inner edges get a rule — the outer\n border on `.variant_minimal` handles the perimeter. */\n.variant_minimal .segment + .segment {\n border-left: 1px solid var(--wzl-border, rgba(255, 255, 255, 0.18));\n}\n\n.variant_minimal .segment:first-child,\n.variant_minimal .segment:last-child,\n.variant_minimal .segment:only-child {\n border-radius: 0;\n}\n\n.variant_minimal .segment:hover:not(:disabled):not(.segmentSelected) {\n color: var(--wzl-fg);\n background: rgba(255, 255, 255, 0.06);\n}\n\n.variant_minimal .segmentSelected {\n background: none;\n backdrop-filter: none;\n -webkit-backdrop-filter: none;\n color: var(--wzl-accent-fg, var(--wzl-accent));\n text-shadow: none;\n box-shadow: none;\n font-weight: 500;\n}\n\n.variant_minimal .segmentSelected::before {\n content: none;\n}\n","import { useRef, type CSSProperties, type KeyboardEvent as ReactKeyboardEvent, type ReactElement, type ReactNode } from 'react';\nimport s from './ToggleBar.module.css';\n\nexport type ToggleBarItem<V extends string | number = string> = {\n value: V;\n label?: ReactNode;\n ariaLabel?: string;\n disabled?: boolean;\n};\n\nexport type ToggleBarSize = 'sm' | 'md';\nexport type ToggleBarVariant = 'default' | 'minimal';\n\ntype CommonProps = {\n ariaLabel?: string;\n className?: string;\n height?: number;\n /** Size variant. `sm` is ~60% of the default height with reduced padding\n * and font size — sized for dense surfaces like lab control panels. */\n size?: ToggleBarSize;\n /** Visual variant. `minimal` strips the pill track and glass treatment;\n * selection becomes a flat accent. For dense diagnostic surfaces. */\n variant?: ToggleBarVariant;\n};\n\nexport type ToggleBarProps<V extends string | number = string> =\n | (CommonProps & {\n mode?: 'single';\n items: readonly ToggleBarItem<V>[];\n value: V | null;\n onChange: (next: V | null) => void;\n allowDeselect?: boolean;\n })\n | (CommonProps & {\n mode: 'multiple';\n items: readonly ToggleBarItem<V>[];\n value: readonly V[];\n /**\n * Values that are neither on nor off — the sources this bar\n * aggregates disagree (a text range that is bold in part of it, a\n * multi-selection whose nodes differ). Rendered `aria-pressed=\"mixed\"`,\n * the ARIA tri-state a toggle button actually has, rather than\n * `SelectionPanel`'s reduced-opacity-plus-`title` workaround for\n * `Switch`, which has no indeterminate state to render.\n *\n * `value` wins where the two lists overlap, so a caller that can't\n * cheaply keep them disjoint doesn't get an ambiguous segment.\n *\n * Clicking a mixed segment turns it fully **on**, matching the\n * everywhere-else convention (and `toggleFlagInRange`'s rule for a\n * partially-styled text range) that a mixed toggle resolves toward\n * the affirmative rather than clearing.\n */\n mixedValues?: readonly V[];\n onChange: (next: V[]) => void;\n });\n\nfunction firstEnabledIndex(items: readonly ToggleBarItem<string | number>[]): number {\n for (let i = 0; i < items.length; i++) if (!items[i].disabled) return i;\n return -1;\n}\n\nfunction lastEnabledIndex(items: readonly ToggleBarItem<string | number>[]): number {\n for (let i = items.length - 1; i >= 0; i--) if (!items[i].disabled) return i;\n return -1;\n}\n\nfunction nextEnabledIndex(items: readonly ToggleBarItem<string | number>[], from: number): number {\n const n = items.length;\n for (let k = 1; k <= n; k++) {\n const i = (from + k + n) % n;\n if (!items[i].disabled) return i;\n }\n return from;\n}\n\nfunction prevEnabledIndex(items: readonly ToggleBarItem<string | number>[], from: number): number {\n const n = items.length;\n for (let k = 1; k <= n; k++) {\n const i = (from - k + n) % n;\n if (!items[i].disabled) return i;\n }\n return from;\n}\n\nexport function ToggleBar<V extends string | number = string>(props: ToggleBarProps<V>): ReactElement {\n const { items, ariaLabel, className, height, size, variant } = props;\n const mode = props.mode ?? 'single';\n const rootRef = useRef<HTMLDivElement | null>(null);\n\n const isSelected = (value: V): boolean => {\n if (mode === 'multiple') return (props.value as readonly V[]).includes(value);\n return (props.value as V | null) === value;\n };\n\n /** Mixed only in multiple mode, and only where `value` doesn't already\n * claim the segment. Single mode has nothing to be mixed about — its\n * aggregate is one value or none. */\n const isMixed = (value: V): boolean => {\n if (mode !== 'multiple') return false;\n const mixed = (props as { mixedValues?: readonly V[] }).mixedValues;\n return mixed !== undefined && mixed.includes(value) && !isSelected(value);\n };\n\n let tabStopIndex = -1;\n if (mode === 'single') {\n const sel = items.findIndex(it => it.value === (props.value as V | null));\n tabStopIndex = sel >= 0 && !items[sel].disabled ? sel : firstEnabledIndex(items);\n } else {\n tabStopIndex = firstEnabledIndex(items);\n }\n\n const handleClick = (index: number) => () => {\n const item = items[index];\n if (item.disabled) return;\n if (mode === 'multiple') {\n const current = props.value as readonly V[];\n const next = current.includes(item.value)\n ? current.filter(v => v !== item.value)\n : [...current, item.value];\n (props.onChange as (n: V[]) => void)(next);\n } else {\n const current = props.value as V | null;\n if (current === item.value) {\n if ((props as { allowDeselect?: boolean }).allowDeselect) {\n (props.onChange as (n: V | null) => void)(null);\n }\n return;\n }\n (props.onChange as (n: V | null) => void)(item.value);\n }\n };\n\n const focusSegment = (index: number) => {\n const root = rootRef.current;\n if (!root) return;\n const buttons = root.querySelectorAll<HTMLButtonElement>(`.${s.segment}`);\n buttons[index]?.focus();\n };\n\n const handleKeyDown = (index: number) => (e: ReactKeyboardEvent<HTMLButtonElement>) => {\n let nextIndex = -1;\n switch (e.key) {\n case 'ArrowLeft':\n case 'ArrowUp':\n nextIndex = prevEnabledIndex(items, index);\n break;\n case 'ArrowRight':\n case 'ArrowDown':\n nextIndex = nextEnabledIndex(items, index);\n break;\n case 'Home':\n nextIndex = firstEnabledIndex(items);\n break;\n case 'End':\n nextIndex = lastEnabledIndex(items);\n break;\n case ' ':\n case 'Enter':\n if (mode === 'multiple') {\n e.preventDefault();\n handleClick(index)();\n }\n return;\n default:\n return;\n }\n if (nextIndex < 0 || nextIndex === index) return;\n e.preventDefault();\n if (mode === 'single') {\n const item = items[nextIndex];\n (props.onChange as (n: V | null) => void)(item.value);\n }\n focusSegment(nextIndex);\n };\n\n const style: CSSProperties | undefined = height !== undefined\n ? ({ ['--wzl-tb-height' as string]: `${height}px` } as CSSProperties)\n : undefined;\n\n const rootCls = [\n s.root,\n size && s[`size_${size}`],\n variant && s[`variant_${variant}`],\n className,\n ].filter(Boolean).join(' ');\n\n return (\n <div\n ref={rootRef}\n className={rootCls}\n role={mode === 'multiple' ? 'group' : 'radiogroup'}\n aria-label={ariaLabel}\n style={style}\n >\n {items.map((item, i) => {\n const selected = isSelected(item.value);\n const mixed = isMixed(item.value);\n const cls = [s.segment, selected && s.segmentSelected, mixed && s.segmentMixed]\n .filter(Boolean)\n .join(' ');\n return (\n <button\n key={item.value}\n type=\"button\"\n role={mode === 'multiple' ? undefined : 'radio'}\n aria-checked={mode === 'multiple' ? undefined : selected}\n aria-pressed={mode === 'multiple' ? (mixed ? 'mixed' : selected) : undefined}\n aria-label={item.ariaLabel}\n disabled={item.disabled}\n tabIndex={i === tabStopIndex ? 0 : -1}\n className={cls}\n onClick={handleClick(i)}\n onKeyDown={handleKeyDown(i)}\n >\n {item.label}\n </button>\n );\n })}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;ACyDA,SAAS,EAAkB,GAA0D;CACnF,KAAK,IAAI,IAAI,GAAG,IAAI,EAAM,QAAQ,KAAK,IAAI,CAAC,EAAM,GAAG,UAAU,OAAO;CACtE,OAAO;;AAGT,SAAS,EAAiB,GAA0D;CAClF,KAAK,IAAI,IAAI,EAAM,SAAS,GAAG,KAAK,GAAG,KAAK,IAAI,CAAC,EAAM,GAAG,UAAU,OAAO;CAC3E,OAAO;;AAGT,SAAS,EAAiB,GAAkD,GAAsB;CAChG,IAAM,IAAI,EAAM;CAChB,KAAK,IAAI,IAAI,GAAG,KAAK,GAAG,KAAK;EAC3B,IAAM,KAAK,IAAO,IAAI,KAAK;EAC3B,IAAI,CAAC,EAAM,GAAG,UAAU,OAAO;;CAEjC,OAAO;;AAGT,SAAS,EAAiB,GAAkD,GAAsB;CAChG,IAAM,IAAI,EAAM;CAChB,KAAK,IAAI,IAAI,GAAG,KAAK,GAAG,KAAK;EAC3B,IAAM,KAAK,IAAO,IAAI,KAAK;EAC3B,IAAI,CAAC,EAAM,GAAG,UAAU,OAAO;;CAEjC,OAAO;;AAGT,SAAgB,EAA8C,GAAwC;CACpG,IAAM,EAAE,UAAO,cAAW,cAAW,WAAQ,SAAM,eAAY,GACzD,IAAO,EAAM,QAAQ,UACrB,IAAU,EAA8B,KAAK,EAE7C,KAAc,MACd,MAAS,aAAoB,EAAM,MAAuB,SAAS,EAAM,GACrE,EAAM,UAAu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IAEnC;OADA,EAAE,gBAAgB,EACd,MAAS,UAAU;IACrB,IAAM,IAAO,EAAM;IACnB,EAAO,SAAmC,EAAK,MAAM;;GAEvD,EAAa,EAAU;;IAGnB,IAAmC,MAAW,KAAA,IAEhD,KAAA,IADC,EAAG,mBAA8B,GAAG,EAAO,KAAK;CAUrD,OACE,kBAAC,OAAD;EACE,KAAK;EACL,WAVY;GACd,EAAE;GACF,KAAQ,EAAE,QAAQ;GAClB,KAAW,EAAE,WAAW;GACxB;GACD,CAAC,OAAO,QAAQ,CAAC,KAAK,IAKR;EACX,MAAM,MAAS,aAAa,UAAU;EACtC,cAAY;EACL;YAEN,EAAM,KAAK,GAAM,MAAM;GACtB,IAAM,IAAW,EAAW,EAAK,MAAM,EACjC,IAAQ,EAAQ,EAAK,MAAM,EAC3B,IAAM;IAAC,EAAE;IAAS,KAAY,EAAE;IAAiB,KAAS,EAAE;IAAa,CAC5E,OAAO,QAAQ,CACf,KAAK,IAAI;GACZ,OACE,kBAAC,UAAD;IAEE,MAAK;IACL,MAAM,MAAS,aAAa,KAAA,IAAY;IACxC,gBAAc,MAAS,aAAa,KAAA,IAAY;IAChD,gBAAc,MAAS,aAAc,IAAQ,UAAU,IAAY,KAAA;IACnE,cAAY,EAAK;IACjB,UAAU,EAAK;IACf,UAAU,MAAM,IAAe,IAAI;IACnC,WAAW;IACX,SAAS,EAAY,EAAE;IACvB,WAAW,EAAc,EAAE;cAE1B,EAAK;IACC,EAbF,EAAK,MAaH;IAEX;EACE,CAAA"}
@@ -0,0 +1,53 @@
1
+ import { n as e, t } from "./Tooltip-Clgn4trm.js";
2
+ import { Focusable as n } from "react-aria-components";
3
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
4
+ var a = {
5
+ button: "_button_rsrcm_1",
6
+ active: "_active_rsrcm_26",
7
+ icon: "_icon_rsrcm_35",
8
+ label: "_label_rsrcm_37",
9
+ shortcut: "_shortcut_rsrcm_38"
10
+ };
11
+ //#endregion
12
+ //#region src/components/ToolButton/ToolButton.tsx
13
+ function o(o) {
14
+ let { icon: s, label: c, shortcut: l, active: u, disabled: d, ariaDisabled: f, tabbable: p, onClick: m, title: h, className: g } = o, _ = h ?? (l ? `${c} (${l})` : c), v = [
15
+ a.button,
16
+ u && a.active,
17
+ g
18
+ ].filter(Boolean).join(" ");
19
+ return /* @__PURE__ */ i(e, {
20
+ isDisabled: d,
21
+ children: [/* @__PURE__ */ r(n, {
22
+ isDisabled: d,
23
+ children: /* @__PURE__ */ i("button", {
24
+ type: "button",
25
+ tabIndex: p ? 0 : -1,
26
+ className: v,
27
+ "aria-current": u ? "true" : void 0,
28
+ "aria-disabled": f ? "true" : void 0,
29
+ disabled: d,
30
+ onClick: m,
31
+ children: [
32
+ /* @__PURE__ */ r("span", {
33
+ className: a.icon,
34
+ "aria-hidden": "true",
35
+ children: s
36
+ }),
37
+ /* @__PURE__ */ r("span", {
38
+ className: a.label,
39
+ children: c
40
+ }),
41
+ l && /* @__PURE__ */ r("span", {
42
+ className: a.shortcut,
43
+ children: l
44
+ })
45
+ ]
46
+ })
47
+ }), /* @__PURE__ */ r(t, { children: _ })]
48
+ });
49
+ }
50
+ //#endregion
51
+ export { o as t };
52
+
53
+ //# sourceMappingURL=ToolButton-Dk_uJf7N.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ToolButton-Dk_uJf7N.js","names":[],"sources":["../../src/components/ToolButton/ToolButton.module.css","../../src/components/ToolButton/ToolButton.tsx"],"sourcesContent":[".button {\n display: inline-flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 2px;\n min-width: 44px;\n padding: 6px 4px;\n background: transparent;\n border: 1px solid transparent;\n border-radius: 3px;\n color: var(--wzl-text);\n cursor: default;\n font-family: inherit;\n font-size: 10px;\n line-height: 1.1;\n}\n.button:hover:not([disabled]) {\n background: var(--wzl-button-fill-hover);\n color: var(--wzl-button-text);\n}\n.button:focus-visible {\n outline: 2px solid var(--wzl-accent);\n outline-offset: -2px;\n}\n.button.active {\n background: var(--wzl-button-fill-pressed);\n border-color: var(--wzl-accent);\n color: var(--wzl-button-text);\n}\n.button[disabled] {\n opacity: 0.4;\n}\n\n.icon { display: block; }\n.icon > svg { display: block; }\n.label { font-size: 10px; }\n.shortcut {\n color: var(--wzl-text-muted);\n font-family: ui-monospace, SFMono-Regular, Menlo, monospace;\n font-size: 9px;\n}\n","import type { ReactNode } from 'react';\nimport { Focusable } from 'react-aria-components';\nimport { Tooltip, TooltipTrigger } from '../Tooltip';\nimport s from './ToolButton.module.css';\n\nexport interface ToolButtonProps {\n /** Icon node (typically an SVG component). */\n icon: ReactNode;\n /** Human-readable label shown under the icon. */\n label: string;\n /** Optional shortcut hint (e.g. \"V\" or \"⌘Z\"). */\n shortcut?: string;\n /** Selected/active state — toggles the active visual treatment. */\n active?: boolean;\n /** Disabled state — passes through to the underlying button. */\n disabled?: boolean;\n /**\n * When true, sets `aria-disabled=\"true\"` on the button without using the\n * native `disabled` attribute. This keeps the button focusable and reachable\n * by keyboard (roving-tabindex still applies) while marking it as ineligible\n * to screen readers. The caller is responsible for making `onClick` a no-op.\n */\n ariaDisabled?: boolean;\n /**\n * Whether this button is the currently tabbable member of its toolbar.\n * Toolbars use roving tabindex: exactly one button has `tabIndex=0` at\n * a time; the rest are `-1`. Caller manages which.\n */\n tabbable?: boolean;\n /** Click handler. */\n onClick(): void;\n /**\n * Tooltip content. Defaults to `label` (plus `shortcut` if provided).\n */\n title?: string;\n /** Additional class for the root button. */\n className?: string;\n}\n\n/**\n * Generic icon-+-label toolbar button — building block for `ToolPalette`\n * and similar surfaces. Headless about layout direction (parent group\n * supplies flex direction via `ToolGroup`). Theme via `--wzl-*` tokens.\n */\nexport function ToolButton(props: ToolButtonProps) {\n const { icon, label, shortcut, active, disabled, ariaDisabled, tabbable, onClick, title, className } = props;\n const resolvedTitle = title ?? (shortcut ? `${label} (${shortcut})` : label);\n const cls = [s.button, active && s.active, className].filter(Boolean).join(' ');\n return (\n <TooltipTrigger isDisabled={disabled}>\n <Focusable isDisabled={disabled}>\n <button\n type=\"button\"\n tabIndex={tabbable ? 0 : -1}\n className={cls}\n aria-current={active ? 'true' : undefined}\n aria-disabled={ariaDisabled ? 'true' : undefined}\n disabled={disabled}\n onClick={onClick}\n >\n <span className={s.icon} aria-hidden=\"true\">{icon}</span>\n <span className={s.label}>{label}</span>\n {shortcut && <span className={s.shortcut}>{shortcut}</span>}\n </button>\n </Focusable>\n <Tooltip>{resolvedTitle}</Tooltip>\n </TooltipTrigger>\n );\n}\n"],"mappings":";;;;;;;;;;;;AC4CA,SAAgB,EAAW,GAAwB;CACjD,IAAM,EAAE,SAAM,UAAO,aAAU,WAAQ,aAAU,iBAAc,aAAU,YAAS,UAAO,iBAAc,GACjG,IAAgB,MAAU,IAAW,GAAG,EAAM,IAAI,EAAS,KAAK,IAChE,IAAM;EAAC,EAAE;EAAQ,KAAU,EAAE;EAAQ;EAAU,CAAC,OAAO,QAAQ,CAAC,KAAK,IAAI;CAC/E,OACE,kBAAC,GAAD;EAAgB,YAAY;YAA5B,CACE,kBAAC,GAAD;GAAW,YAAY;aACrB,kBAAC,UAAD;IACE,MAAK;IACL,UAAU,IAAW,IAAI;IACzB,WAAW;IACX,gBAAc,IAAS,SAAS,KAAA;IAChC,iBAAe,IAAe,SAAS,KAAA;IAC7B;IACD;cAPX;KASE,kBAAC,QAAD;MAAM,WAAW,EAAE;MAAM,eAAY;gBAAQ;MAAY,CAAA;KACzD,kBAAC,QAAD;MAAM,WAAW,EAAE;gBAAQ;MAAa,CAAA;KACvC,KAAY,kBAAC,QAAD;MAAM,WAAW,EAAE;gBAAW;MAAgB,CAAA;KACpD;;GACC,CAAA,EACZ,kBAAC,GAAD,EAAA,UAAU,GAAwB,CAAA,CACnB"}
@@ -0,0 +1,25 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ var t = {
3
+ group: "_group_o2pho_1",
4
+ horizontal: "_horizontal_o2pho_6"
5
+ };
6
+ //#endregion
7
+ //#region src/components/ToolGroup/ToolGroup.tsx
8
+ function n(n) {
9
+ let { children: r, orientation: i = "vertical", groupKey: a, ariaLabel: o, className: s } = n;
10
+ return /* @__PURE__ */ e("div", {
11
+ className: [
12
+ t.group,
13
+ i === "horizontal" && t.horizontal,
14
+ s
15
+ ].filter(Boolean).join(" "),
16
+ role: "group",
17
+ "data-group": a,
18
+ "aria-label": o,
19
+ children: r
20
+ });
21
+ }
22
+ //#endregion
23
+ export { n as t };
24
+
25
+ //# sourceMappingURL=ToolGroup-D8-qdtuw.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ToolGroup-D8-qdtuw.js","names":[],"sources":["../../src/components/ToolGroup/ToolGroup.module.css","../../src/components/ToolGroup/ToolGroup.tsx"],"sourcesContent":[".group {\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n.group.horizontal {\n flex-direction: row;\n}\n","import type { ReactNode } from 'react';\nimport s from './ToolGroup.module.css';\n\nexport interface ToolGroupProps {\n children: ReactNode;\n /**\n * Lays children along an axis. `'vertical'` (default) stacks them in\n * a column; `'horizontal'` lays them in a row. Independent of the\n * parent toolbar's own orientation.\n */\n orientation?: 'vertical' | 'horizontal';\n /**\n * Optional `data-group` attribute — useful for parents that want to\n * select the group from CSS or tests by name.\n */\n groupKey?: string;\n /** Accessible name for the group (rendered as `aria-label`). */\n ariaLabel?: string;\n className?: string;\n}\n\n/**\n * Generic toolbar group — a `role=\"group\"` flex container that arranges\n * `<ToolButton>`s (or any children) along a chosen axis. No visual chrome\n * beyond layout; theming lives on the buttons.\n */\nexport function ToolGroup(props: ToolGroupProps) {\n const { children, orientation = 'vertical', groupKey, ariaLabel, className } = props;\n const cls = [s.group, orientation === 'horizontal' && s.horizontal, className]\n .filter(Boolean).join(' ');\n return (\n <div className={cls} role=\"group\" data-group={groupKey} aria-label={ariaLabel}>\n {children}\n </div>\n );\n}\n"],"mappings":";;;;;;;AC0BA,SAAgB,EAAU,GAAuB;CAC/C,IAAM,EAAE,aAAU,iBAAc,YAAY,aAAU,cAAW,iBAAc;CAG/E,OACE,kBAAC,OAAD;EAAK,WAHK;GAAC,EAAE;GAAO,MAAgB,gBAAgB,EAAE;GAAY;GAAU,CAC3E,OAAO,QAAQ,CAAC,KAAK,IAEN;EAAK,MAAK;EAAQ,cAAY;EAAU,cAAY;EACjE;EACG,CAAA"}
@@ -0,0 +1,27 @@
1
+ import { jsx as e, jsxs as t } from "react/jsx-runtime";
2
+ var n = {
3
+ root: "_root_zcxef_13",
4
+ label: "_label_zcxef_25",
5
+ controls: "_controls_zcxef_6"
6
+ };
7
+ //#endregion
8
+ //#region src/components/ToolOptionsBar/ToolOptionsBar.tsx
9
+ function r(r) {
10
+ let { label: i, children: a, className: o } = r;
11
+ return /* @__PURE__ */ t("div", {
12
+ className: [n.root, o].filter(Boolean).join(" "),
13
+ role: "toolbar",
14
+ "aria-label": i,
15
+ children: [i !== void 0 && /* @__PURE__ */ e("span", {
16
+ className: n.label,
17
+ children: i
18
+ }), /* @__PURE__ */ e("div", {
19
+ className: n.controls,
20
+ children: a
21
+ })]
22
+ });
23
+ }
24
+ //#endregion
25
+ export { r as t };
26
+
27
+ //# sourceMappingURL=ToolOptionsBar-ChiL-HVA.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ToolOptionsBar-ChiL-HVA.js","names":[],"sources":["../../src/components/ToolOptionsBar/ToolOptionsBar.module.css","../../src/components/ToolOptionsBar/ToolOptionsBar.tsx"],"sourcesContent":["/* Horizontal strip reserved above the workspace for contextual tool\n options. Fixed height so mounting/unmounting content never resizes\n the workspace beneath it — that's the whole reason this row exists\n as permanent chrome rather than an on-demand overlay.\n\n Overflow: when controls exceed the available width, `.controls`\n scrolls horizontally rather than wrapping (which would grow the row\n and defeat the fixed-height guarantee above) or clipping (which\n would hide controls with no way to reach them). A flyout/long-press\n affordance was considered and rejected — grouped, directly visible\n layouts are preferred in this repo. */\n\n.root {\n display: flex;\n align-items: center;\n gap: 8px;\n height: var(--wzl-tb-height, 28px);\n padding: 0 8px;\n background: var(--wzl-panel-bg);\n border-bottom: 1px solid var(--wzl-panel-border);\n color: var(--wzl-text);\n overflow: hidden;\n}\n\n.label {\n flex: 0 0 auto;\n font-size: 11px;\n font-weight: 600;\n text-transform: uppercase;\n letter-spacing: 0.05em;\n color: var(--wzl-text-muted);\n white-space: nowrap;\n}\n\n.controls {\n display: flex;\n align-items: center;\n gap: 6px;\n flex: 1 1 auto;\n min-width: 0;\n height: 100%;\n overflow-x: auto;\n overflow-y: hidden;\n scrollbar-width: thin;\n}\n\n/* Firefox gets a thin scrollbar for free via `scrollbar-width` above.\n * Chromium/WebKit need it spelled out — on a classic (non-overlay)\n * scrollbar theme (default on Windows Chrome/Edge), an unstyled\n * horizontal scrollbar is ~15-17px tall and renders *inside* this box,\n * clipping/off-centering the row's controls. That would reintroduce the\n * exact height instability the scroll-over-wrap overflow choice above\n * exists to avoid — just at the row's inner edge instead of its outer\n * one. Pin it thin and out of the way instead. */\n.controls::-webkit-scrollbar {\n height: 4px;\n}\n.controls::-webkit-scrollbar-track {\n background: transparent;\n}\n.controls::-webkit-scrollbar-thumb {\n background: var(--wzl-panel-border);\n border-radius: 2px;\n}\n","import type { ReactNode } from 'react';\nimport s from './ToolOptionsBar.module.css';\n\nexport interface ToolOptionsBarProps {\n /**\n * Context label for the row — e.g. the active tool's name. Rendered\n * before the children and doubles as the toolbar's `aria-label`. Omit\n * it and the row still renders (it's a permanently reserved slot), just\n * without an accessible name.\n *\n * Using `label` for both the visible text and `aria-label` means a\n * screen reader announces it twice when landing on the toolbar (\"Text,\n * toolbar\", then \"Text\" again when browsing into the visible span).\n * `aria-labelledby` would avoid the echo at the cost of id plumbing and\n * an awkward no-`id`-to-point-at case when `label` is omitted. The\n * double-announcement is common enough for labelled landmark regions\n * that it's left as-is — considered, not missed.\n */\n label?: string;\n children?: ReactNode;\n className?: string;\n}\n\n/**\n * Horizontal strip reserved above the workspace for contextual tool\n * options — its first tenant is the character controls a text tool\n * exposes while a caret range is active. Pure chrome: it renders an\n * optional label and a children slot, nothing else. It knows nothing\n * about text, or about any specific tool — any tool can fill it.\n *\n * The row always renders, even with no `label` and no `children`,\n * because the app reserves its height permanently rather than mounting\n * it on demand — mounting mid-edit would resize the workspace under a\n * canvas that's sized to the page.\n *\n * `role=\"toolbar\"` without roving tabindex: the ARIA authoring practices\n * expect arrow-key roving focus across a toolbar's items, but this\n * component doesn't own or know the shape of its children — they're\n * arbitrary, possibly compound controls (`NumberField`, `Select`,\n * `ColorField`) that already use arrow keys for their own value editing.\n * Imposing roving focus here would fight those controls' own key\n * handling. Tab order falls back to normal DOM order for now; revisit\n * once the first tenant's control set is concrete and a roving-focus\n * contract can be designed in coordination with those controls.\n */\nexport function ToolOptionsBar(props: ToolOptionsBarProps) {\n const { label, children, className } = props;\n const cls = [s.root, className].filter(Boolean).join(' ');\n return (\n <div className={cls} role=\"toolbar\" aria-label={label}>\n {label !== undefined && <span className={s.label}>{label}</span>}\n <div className={s.controls}>{children}</div>\n </div>\n );\n}\n"],"mappings":";;;;;;;;AC6CA,SAAgB,EAAe,GAA4B;CACzD,IAAM,EAAE,UAAO,aAAU,iBAAc;CAEvC,OACE,kBAAC,OAAD;EAAK,WAFK,CAAC,EAAE,MAAM,EAAU,CAAC,OAAO,QAAQ,CAAC,KAAK,IAEnC;EAAK,MAAK;EAAU,cAAY;YAAhD,CACG,MAAU,KAAA,KAAa,kBAAC,QAAD;GAAM,WAAW,EAAE;aAAQ;GAAa,CAAA,EAChE,kBAAC,OAAD;GAAK,WAAW,EAAE;GAAW;GAAe,CAAA,CACxC"}
@@ -0,0 +1,117 @@
1
+ import { t as e } from "./keyGlyph-BDH5fqkO.js";
2
+ import { t } from "./ToolButton-Dk_uJf7N.js";
3
+ import { t as n } from "./ToolGroup-D8-qdtuw.js";
4
+ import { Fragment as r, useRef as i } from "react";
5
+ import { UnknownIcon as a } from "@weasel-js/core";
6
+ import { jsx as o, jsxs as s } from "react/jsx-runtime";
7
+ import { eligibleTool as c } from "@weasel-js/modes";
8
+ var l = {
9
+ palette: "_palette_1ygdo_1",
10
+ horizontal: "_horizontal_1ygdo_11",
11
+ ineligibleBtn: "_ineligibleBtn_1ygdo_16",
12
+ separator: "_separator_1ygdo_21"
13
+ };
14
+ //#endregion
15
+ //#region src/components/ToolPalette/formatShortcut.ts
16
+ function u(t) {
17
+ if (!t) return;
18
+ let n = Array.isArray(t.key) ? t.key[0] : t.key, r = [];
19
+ return t.mod && r.push("⌘"), t.shift === !0 && r.push("⇧"), t.alt && r.push("⌥"), r.push(e(n)), r;
20
+ }
21
+ function d(e) {
22
+ let t = u(e);
23
+ return t ? t.join("") : void 0;
24
+ }
25
+ //#endregion
26
+ //#region src/components/ToolPalette/ToolPalette.tsx
27
+ var f = [
28
+ "select",
29
+ "shape",
30
+ "draw",
31
+ "type",
32
+ "view"
33
+ ], p = "misc";
34
+ function m(e) {
35
+ let t = /* @__PURE__ */ new Map();
36
+ for (let n of e) {
37
+ let e = n.presentation?.group ?? p, r = t.get(e) ?? [];
38
+ r.push(n), t.set(e, r);
39
+ }
40
+ return t;
41
+ }
42
+ function h(e, t) {
43
+ let n = new Set(e.keys()), r = [];
44
+ for (let e of t) n.has(e) && (r.push(e), n.delete(e));
45
+ for (let t of e.keys()) n.has(t) && t !== p && (r.push(t), n.delete(t));
46
+ return n.has(p) && r.push(p), r;
47
+ }
48
+ function g(e) {
49
+ let t = e.presentation?.icon;
50
+ return t == null ? /* @__PURE__ */ o(a, {}) : typeof t == "function" ? t(void 0) : t;
51
+ }
52
+ function _(e) {
53
+ let { tools: a, orientation: u = "vertical", className: p, lookupShortcut: _, modeRegistry: v, groupOrder: y = f } = e, b = m(Object.values(a.registry)), x = h(b, y), S = [
54
+ l.palette,
55
+ u === "horizontal" && l.horizontal,
56
+ p
57
+ ].filter(Boolean).join(" "), C = x.flatMap((e) => b.get(e).map((e) => e.id)), w = a.active && C.includes(a.active) ? a.active : C[0], T = i(null);
58
+ function E(e) {
59
+ let t = e.target;
60
+ if (t.tagName !== "BUTTON") return;
61
+ let n = T.current;
62
+ if (!n) return;
63
+ let r = Array.from(n.querySelectorAll("button")), i = r.indexOf(t);
64
+ if (i < 0) return;
65
+ let a = -1;
66
+ switch (e.key) {
67
+ case "ArrowDown":
68
+ case "ArrowRight":
69
+ a = (i + 1) % r.length;
70
+ break;
71
+ case "ArrowUp":
72
+ case "ArrowLeft":
73
+ a = (i - 1 + r.length) % r.length;
74
+ break;
75
+ case "Home":
76
+ a = 0;
77
+ break;
78
+ case "End":
79
+ a = r.length - 1;
80
+ break;
81
+ }
82
+ a >= 0 && (e.preventDefault(), r[a].focus());
83
+ }
84
+ return /* @__PURE__ */ o("div", {
85
+ ref: T,
86
+ className: S,
87
+ role: "toolbar",
88
+ "aria-label": "Tools",
89
+ onKeyDown: E,
90
+ children: x.map((e, i) => /* @__PURE__ */ s(r, { children: [i > 0 && /* @__PURE__ */ o("div", {
91
+ className: l.separator,
92
+ role: "separator",
93
+ "aria-orientation": u === "horizontal" ? "vertical" : "horizontal"
94
+ }), /* @__PURE__ */ o(n, {
95
+ orientation: u,
96
+ groupKey: e,
97
+ children: b.get(e).map((e) => {
98
+ let n = e.presentation?.label ?? e.id, r = e.presentation?.shortcut ?? d(_ ? _(e.id) : e.keybinding), i = v ? c(v, e) : !0, s = v ? v.current().id : void 0, u = !i && s ? `${n}${r ? ` (${r})` : ""} — disabled in ${s} mode` : void 0;
99
+ return /* @__PURE__ */ o(t, {
100
+ icon: g(e),
101
+ label: n,
102
+ shortcut: r,
103
+ active: a.active === e.id,
104
+ tabbable: e.id === w,
105
+ ariaDisabled: !i,
106
+ className: i ? void 0 : l.ineligibleBtn,
107
+ title: u,
108
+ onClick: i ? () => a.setActive(e.id) : () => {}
109
+ }, e.id);
110
+ })
111
+ })] }, e))
112
+ });
113
+ }
114
+ //#endregion
115
+ export { d as n, u as r, _ as t };
116
+
117
+ //# sourceMappingURL=ToolPalette-xKHzPKYf.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ToolPalette-xKHzPKYf.js","names":[],"sources":["../../src/components/ToolPalette/ToolPalette.module.css","../../src/components/ToolPalette/formatShortcut.ts","../../src/components/ToolPalette/ToolPalette.tsx"],"sourcesContent":[".palette {\n display: flex;\n flex-direction: column;\n gap: 4px;\n background: var(--wzl-panel-bg);\n border: 1px solid var(--wzl-panel-border);\n border-radius: 4px;\n padding: 4px;\n user-select: none;\n}\n.palette.horizontal {\n flex-direction: row;\n}\n\n/* Applied to ineligible tool buttons in the active mode. */\n.ineligibleBtn {\n opacity: 0.35;\n cursor: not-allowed;\n}\n\n.separator {\n background: var(--wzl-panel-border);\n}\n.palette:not(.horizontal) .separator {\n height: 1px;\n margin: 2px 0;\n}\n.palette.horizontal .separator {\n width: 1px;\n margin: 0 2px;\n}\n","import { keyGlyph } from '../Keycaps/keyGlyph';\n\nexport interface ShortcutInput {\n key: string | readonly string[];\n mod?: boolean;\n alt?: boolean;\n shift?: boolean | 'optional';\n}\n\n/** Format a shortcut as an array of display chips, one per key — modifier\n * icons (⌘, ↑, ⌥) followed by the key glyph. UIs that want a boxed\n * per-key look render each chip in its own element. `shift: 'optional'` is\n * treated as falsy. */\nexport function formatShortcutParts(b: ShortcutInput | undefined): readonly string[] | undefined {\n if (!b) return undefined;\n const rawKey = Array.isArray(b.key) ? b.key[0] : (b.key as string);\n const parts: string[] = [];\n if (b.mod) parts.push('⌘');\n if (b.shift === true) parts.push('⇧');\n if (b.alt) parts.push('⌥');\n parts.push(keyGlyph(rawKey));\n return parts;\n}\n\n/** Format a shortcut as a single display string. Order: mod, shift, alt,\n * key. Returns `undefined` for `undefined` input so callers can `??` a\n * fallback. When `key` is an array, the first element is used. `shift: 'optional'`\n * is treated as falsy. */\nexport function formatShortcut(b: ShortcutInput | undefined): string | undefined {\n const parts = formatShortcutParts(b);\n return parts ? parts.join('') : undefined;\n}\n","import { Fragment, useRef, type ReactNode } from 'react';\nimport { UnknownIcon } from '@weasel-js/core';\nimport type { AnyTool, ToolsApi } from '@weasel-js/core';\nimport { eligibleTool, type ModeRegistry } from '@weasel-js/modes';\nimport { ToolButton } from '../ToolButton';\nimport { ToolGroup } from '../ToolGroup';\nimport s from './ToolPalette.module.css';\nimport { formatShortcut, type ShortcutInput } from './formatShortcut';\n\nconst DEFAULT_GROUP_ORDER = ['select', 'shape', 'draw', 'type', 'view'] as const;\nconst MISC = 'misc';\n\nfunction partitionByGroup(list: AnyTool[]): Map<string, AnyTool[]> {\n const groups = new Map<string, AnyTool[]>();\n for (const tool of list) {\n const g = tool.presentation?.group ?? MISC;\n const bucket = groups.get(g) ?? [];\n bucket.push(tool);\n groups.set(g, bucket);\n }\n return groups;\n}\n\nfunction orderedGroupKeys(\n groups: Map<string, AnyTool[]>,\n groupOrder: readonly string[],\n): string[] {\n const seen = new Set(groups.keys());\n const ordered: string[] = [];\n for (const known of groupOrder) {\n if (seen.has(known)) {\n ordered.push(known);\n seen.delete(known);\n }\n }\n // Unknown groups in insertion order (Map preserves it), misc last.\n for (const key of groups.keys()) {\n if (seen.has(key) && key !== MISC) {\n ordered.push(key);\n seen.delete(key);\n }\n }\n if (seen.has(MISC)) ordered.push(MISC);\n return ordered;\n}\n\nfunction resolveIcon(tool: AnyTool): ReactNode {\n const rawIcon = tool.presentation?.icon;\n if (rawIcon == null) return <UnknownIcon />;\n if (typeof rawIcon === 'function') return rawIcon(undefined);\n return rawIcon;\n}\n\nexport interface ToolPaletteProps {\n tools: ToolsApi;\n orientation?: 'vertical' | 'horizontal';\n className?: string;\n /** Derive the keyboard shortcut for a tool button from the action registry.\n * Called with the tool's id; return `undefined` to suppress a chip. When\n * omitted, falls back to `tool.keybinding` (legacy path). */\n lookupShortcut?: (toolId: string) => ShortcutInput | undefined;\n /**\n * Optional mode registry. When provided, tools whose `capabilities` do not\n * match the current mode are rendered greyed-out, aria-disabled, and their\n * onClick is suppressed. When omitted, all tools are treated as eligible\n * (preserves existing behaviour in consumers that haven't wired a registry).\n */\n modeRegistry?: ModeRegistry;\n /**\n * Presentation-group display order. Groups not listed keep their registry\n * insertion order after the listed ones; `misc` always renders last.\n * Defaults to `['select', 'shape', 'draw', 'type', 'view']`.\n */\n groupOrder?: readonly string[];\n}\n\nexport function ToolPalette(props: ToolPaletteProps) {\n const {\n tools, orientation = 'vertical', className, lookupShortcut, modeRegistry,\n groupOrder = DEFAULT_GROUP_ORDER,\n } = props;\n const list = Object.values(tools.registry);\n const groups = partitionByGroup(list);\n const groupKeys = orderedGroupKeys(groups, groupOrder);\n const cls = [s.palette, orientation === 'horizontal' && s.horizontal, className]\n .filter(Boolean).join(' ');\n\n const orderedIds = groupKeys.flatMap((k) => groups.get(k)!.map((t) => t.id));\n const tabbableId = tools.active && orderedIds.includes(tools.active)\n ? tools.active\n : orderedIds[0];\n const rootRef = useRef<HTMLDivElement | null>(null);\n\n function onKeyDown(e: React.KeyboardEvent<HTMLDivElement>) {\n const target = e.target as HTMLElement;\n if (target.tagName !== 'BUTTON') return;\n const root = rootRef.current;\n if (!root) return;\n const buttons = Array.from(root.querySelectorAll<HTMLButtonElement>('button'));\n const i = buttons.indexOf(target as HTMLButtonElement);\n if (i < 0) return;\n\n let next = -1;\n switch (e.key) {\n case 'ArrowDown':\n case 'ArrowRight':\n next = (i + 1) % buttons.length;\n break;\n case 'ArrowUp':\n case 'ArrowLeft':\n next = (i - 1 + buttons.length) % buttons.length;\n break;\n case 'Home':\n next = 0;\n break;\n case 'End':\n next = buttons.length - 1;\n break;\n }\n if (next >= 0) {\n e.preventDefault();\n buttons[next].focus();\n }\n }\n\n return (\n <div\n ref={rootRef}\n className={cls}\n role=\"toolbar\"\n aria-label=\"Tools\"\n onKeyDown={onKeyDown}\n >\n {groupKeys.map((key, i) => (\n <Fragment key={key}>\n {i > 0 && (\n <div\n className={s.separator}\n role=\"separator\"\n aria-orientation={orientation === 'horizontal' ? 'vertical' : 'horizontal'}\n />\n )}\n <ToolGroup orientation={orientation} groupKey={key}>\n {groups.get(key)!.map((tool) => {\n const label = tool.presentation?.label ?? tool.id;\n const shortcut = tool.presentation?.shortcut\n ?? formatShortcut(lookupShortcut ? lookupShortcut(tool.id) : tool.keybinding);\n const enabled = modeRegistry ? eligibleTool(modeRegistry, tool) : true;\n const modeName = modeRegistry ? modeRegistry.current().id : undefined;\n const resolvedTitle = !enabled && modeName\n ? `${label}${shortcut ? ` (${shortcut})` : ''} — disabled in ${modeName} mode`\n : undefined;\n return (\n <ToolButton\n key={tool.id}\n icon={resolveIcon(tool)}\n label={label}\n shortcut={shortcut}\n active={tools.active === tool.id}\n tabbable={tool.id === tabbableId}\n ariaDisabled={!enabled}\n className={!enabled ? s.ineligibleBtn : undefined}\n title={resolvedTitle}\n onClick={enabled ? () => tools.setActive(tool.id) : () => {}}\n />\n );\n })}\n </ToolGroup>\n </Fragment>\n ))}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;ACaA,SAAgB,EAAoB,GAA6D;CAC/F,IAAI,CAAC,GAAG;CACR,IAAM,IAAS,MAAM,QAAQ,EAAE,IAAI,GAAG,EAAE,IAAI,KAAM,EAAE,KAC9C,IAAkB,EAAE;CAK1B,OAJI,EAAE,OAAK,EAAM,KAAK,IAAI,EACtB,EAAE,UAAU,MAAM,EAAM,KAAK,IAAI,EACjC,EAAE,OAAK,EAAM,KAAK,IAAI,EAC1B,EAAM,KAAK,EAAS,EAAO,CAAC,EACrB;;AAOT,SAAgB,EAAe,GAAkD;CAC/E,IAAM,IAAQ,EAAoB,EAAE;CACpC,OAAO,IAAQ,EAAM,KAAK,GAAG,GAAG,KAAA;;;;ACrBlC,IAAM,IAAsB;CAAC;CAAU;CAAS;CAAQ;CAAQ;CAAO,EACjE,IAAO;AAEb,SAAS,EAAiB,GAAyC;CACjE,IAAM,oBAAS,IAAI,KAAwB;CAC3C,KAAK,IAAM,KAAQ,GAAM;EACvB,IAAM,IAAI,EAAK,cAAc,SAAS,GAChC,IAAS,EAAO,IAAI,EAAE,IAAI,EAAE;EAElC,AADA,EAAO,KAAK,EAAK,EACjB,EAAO,IAAI,G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AVK,EAAK,GAUV;KAEJ;GACQ,CAAA,CACH,EAAA,EAlCI,EAkCJ,CACX;EACE,CAAA"}
@@ -0,0 +1,39 @@
1
+ import { OverlayArrow as e, Tooltip as t, TooltipTrigger as n } from "react-aria-components";
2
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
3
+ var a = {
4
+ tooltip: "_tooltip_1km1f_1",
5
+ arrow: "_arrow_1km1f_22"
6
+ };
7
+ //#endregion
8
+ //#region src/components/Tooltip/Tooltip.tsx
9
+ function o(e) {
10
+ let { delay: t = 600, closeDelay: i = 0, ...a } = e;
11
+ return /* @__PURE__ */ r(n, {
12
+ delay: t,
13
+ closeDelay: i,
14
+ ...a
15
+ });
16
+ }
17
+ function s(n) {
18
+ let { children: o, className: s, placement: c = "top", offset: l = 8, ...u } = n;
19
+ return /* @__PURE__ */ i(t, {
20
+ ...u,
21
+ placement: c,
22
+ offset: l,
23
+ className: [a.tooltip, s].filter(Boolean).join(" "),
24
+ children: [/* @__PURE__ */ r(e, {
25
+ className: a.arrow,
26
+ children: /* @__PURE__ */ r("svg", {
27
+ width: 8,
28
+ height: 8,
29
+ viewBox: "0 0 8 8",
30
+ "aria-hidden": "true",
31
+ children: /* @__PURE__ */ r("path", { d: "M0 0 L4 4 L8 0" })
32
+ })
33
+ }), o]
34
+ });
35
+ }
36
+ //#endregion
37
+ export { o as n, s as t };
38
+
39
+ //# sourceMappingURL=Tooltip-Clgn4trm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tooltip-Clgn4trm.js","names":[],"sources":["../../src/components/Tooltip/Tooltip.module.css","../../src/components/Tooltip/Tooltip.tsx"],"sourcesContent":[".tooltip {\n /* Above Dialog overlay (1000) and ToastRegion (1100) — RAC sets no z-index. */\n z-index: 1200;\n background: var(--wzl-surface);\n border: 1px solid var(--wzl-border);\n border-radius: var(--wzl-radius-sm);\n box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);\n color: var(--wzl-fg);\n font-family: var(--wzl-font-ui);\n font-size: 12px;\n line-height: 1.3;\n padding: 4px 8px;\n max-width: 260px;\n transition: opacity var(--wzl-motion-fast);\n}\n\n.tooltip[data-entering],\n.tooltip[data-exiting] {\n opacity: 0;\n}\n\n.arrow svg {\n display: block;\n fill: var(--wzl-surface);\n stroke: var(--wzl-border);\n stroke-width: 1;\n}\n\n.arrow[data-placement='bottom'] svg {\n transform: rotate(180deg);\n}\n\n.arrow[data-placement='left'] svg {\n transform: rotate(-90deg);\n}\n\n.arrow[data-placement='right'] svg {\n transform: rotate(90deg);\n}\n","import type { ReactNode } from 'react';\nimport {\n TooltipTrigger as RACTooltipTrigger,\n Tooltip as RACTooltip,\n OverlayArrow,\n type TooltipProps as RACTooltipProps,\n type TooltipTriggerComponentProps,\n} from 'react-aria-components';\nimport s from './Tooltip.module.css';\n\nexport type TooltipTriggerProps = TooltipTriggerComponentProps;\n\n/**\n * TooltipTrigger with kit defaults: ~600 ms open delay, instant close.\n * Wrap a focusable trigger plus a `<Tooltip>`. Non-RAC triggers (plain\n * `<button>` etc.) must be wrapped in `<Focusable>` from\n * react-aria-components so hover/focus props reach the DOM node.\n *\n * Caveat: while a tooltip is open, react-aria captures the first Escape\n * keydown (document-level, capture phase) to dismiss it — app-level\n * Escape handlers (deselect, cancel gesture) see only the second press.\n */\nexport function TooltipTrigger(props: TooltipTriggerProps) {\n const { delay = 600, closeDelay = 0, ...rest } = props;\n return <RACTooltipTrigger delay={delay} closeDelay={closeDelay} {...rest} />;\n}\n\nexport type TooltipProps = Omit<RACTooltipProps, 'children' | 'className'> & {\n children?: ReactNode;\n className?: string;\n};\n\n/**\n * Tooltip bubble with an arrow pointing at the trigger. Non-interactive\n * content only (ARIA tooltip semantics). Use inside `<TooltipTrigger>`.\n */\nexport function Tooltip(props: TooltipProps) {\n const { children, className, placement = 'top', offset = 8, ...rest } = props;\n return (\n <RACTooltip\n {...rest}\n placement={placement}\n offset={offset}\n className={[s.tooltip, className].filter(Boolean).join(' ')}\n >\n <OverlayArrow className={s.arrow}>\n <svg width={8} height={8} viewBox=\"0 0 8 8\" aria-hidden=\"true\">\n <path d=\"M0 0 L4 4 L8 0\" />\n </svg>\n </OverlayArrow>\n {children}\n </RACTooltip>\n );\n}\n"],"mappings":";;;;;;;;ACsBA,SAAgB,EAAe,GAA4B;CACzD,IAAM,EAAE,WAAQ,KAAK,gBAAa,GAAG,GAAG,MAAS;CACjD,OAAO,kBAAC,GAAD;EAA0B;EAAmB;EAAY,GAAI;EAAQ,CAAA;;AAY9E,SAAgB,EAAQ,GAAqB;CAC3C,IAAM,EAAE,aAAU,cAAW,eAAY,OAAO,YAAS,GAAG,GAAG,MAAS;CACxE,OACE,kBAAC,GAAD;EACE,GAAI;EACO;EACH;EACR,WAAW,CAAC,EAAE,SAAS,EAAU,CAAC,OAAO,QAAQ,CAAC,KAAK,IAAI;YAJ7D,CAME,kBAAC,GAAD;GAAc,WAAW,EAAE;aACzB,kBAAC,OAAD;IAAK,OAAO;IAAG,QAAQ;IAAG,SAAQ;IAAU,eAAY;cACtD,kBAAC,QAAD,EAAM,GAAE,kBAAmB,CAAA;IACvB,CAAA;GACO,CAAA,EACd,EACU"}
@@ -0,0 +1,22 @@
1
+ //#region src/components/Keycaps/keyGlyph.ts
2
+ function e(e) {
3
+ switch (e) {
4
+ case "Escape": return "⎋";
5
+ case "Backspace": return "⌫";
6
+ case "Delete": return "⌦";
7
+ case "ArrowUp": return "↑";
8
+ case "ArrowDown": return "↓";
9
+ case "ArrowLeft": return "←";
10
+ case "ArrowRight": return "→";
11
+ case "Enter":
12
+ case "Return": return "↵";
13
+ case "Tab": return "⇥";
14
+ case " ":
15
+ case "Space": return "␣";
16
+ default: return e.toUpperCase();
17
+ }
18
+ }
19
+ //#endregion
20
+ export { e as t };
21
+
22
+ //# sourceMappingURL=keyGlyph-BDH5fqkO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"keyGlyph-BDH5fqkO.js","names":[],"sources":["../../src/components/Keycaps/keyGlyph.ts"],"sourcesContent":["/** Apple-style glyph for a DOM `KeyboardEvent.key` value. Covers escape,\n * delete/backspace, arrows, enter/return, tab, space. Unknown keys are\n * upper-cased (so `'a'` reads as `A` on a keycap) and returned unchanged\n * otherwise — making this safe to apply uniformly without a `has-glyph`\n * check at the call site. */\nexport function keyGlyph(rawKey: string): string {\n switch (rawKey) {\n case 'Escape': return '⎋';\n case 'Backspace': return '⌫';\n case 'Delete': return '⌦';\n case 'ArrowUp': return '↑';\n case 'ArrowDown': return '↓';\n case 'ArrowLeft': return '←';\n case 'ArrowRight': return '→';\n case 'Enter':\n case 'Return': return '↵';\n case 'Tab': return '⇥';\n case ' ':\n case 'Space': return '␣';\n default: return rawKey.toUpperCase();\n }\n}\n"],"mappings":";AAKA,SAAgB,EAAS,GAAwB;CAC/C,QAAQ,GAAR;EACE,KAAK,UAAU,OAAO;EACtB,KAAK,aAAa,OAAO;EACzB,KAAK,UAAU,OAAO;EACtB,KAAK,WAAW,OAAO;EACvB,KAAK,aAAa,OAAO;EACzB,KAAK,aAAa,OAAO;EACzB,KAAK,cAAc,OAAO;EAC1B,KAAK;EACL,KAAK,UAAU,OAAO;EACtB,KAAK,OAAO,OAAO;EACnB,KAAK;EACL,KAAK,SAAS,OAAO;EACrB,SAAS,OAAO,EAAO,aAAa"}
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../../chunks/ActionBar-CiKvEvXi.js";
2
+ export { e as ActionBar };
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../../chunks/ActionsBar-CzU6Of3B.js";
2
+ export { e as ActionsBar };
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../../chunks/Badge-DU8ihE7Z.js";
2
+ export { e as Badge };
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../../chunks/Button-9QNIYugK.js";
2
+ export { e as Button };
@@ -0,0 +1,2 @@
1
+ import { n as e, t } from "../../chunks/Callout-Dt0kBIls.js";
2
+ export { t as Callout, e as CalloutTrigger };
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../../chunks/Checkbox-CtK8H_OQ.js";
2
+ export { e as Checkbox };
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../../chunks/ColorField-sGLnThpB.js";
2
+ export { e as ColorField };
@@ -0,0 +1,2 @@
1
+ import { n as e, t } from "../../chunks/ComboBox-pH8aDEL2.js";
2
+ export { t as ComboBox, e as ComboBoxItem };
@@ -0,0 +1,2 @@
1
+ import { a as e, i as t, n, o as r, r as i, t as a } from "../../chunks/CurveEditor-DrORWShU.js";
2
+ export { n as CurveEditor, i as LayeredCurveEditor, t as createFunctionLayer, a as createSetCurveOp, e as functionLayerState, r as sampleByInterpolation };
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../../chunks/DataGrid-mUq38k0Q.js";
2
+ export { e as DataGrid };
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../../chunks/Dialog-CQymDCAl.js";
2
+ export { e as Dialog };
@@ -0,0 +1,2 @@
1
+ import { n as e, t } from "../../chunks/Field-BHSu2F3E.js";
2
+ export { t as Field, e as fieldClasses };
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../../chunks/Input-D_Xzgr2b.js";
2
+ export { e as Input };
@@ -0,0 +1,3 @@
1
+ import { a as e, i as t, n, o as r, r as i, t as a } from "../../chunks/Keycaps-B9dJMYx_.js";
2
+ import { t as o } from "../../chunks/keyGlyph-BDH5fqkO.js";
3
+ export { e as KeyCap, t as KeySequence, a as detectPlatform, r as inferKeycapKind, o as keyGlyph, n as keySpecFromKey, i as keySpecsFromMods };
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../../chunks/NumberField-BQmELz32.js";
2
+ export { e as NumberField };
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../../chunks/OptionsBar-CHOP_CiW.js";
2
+ export { e as OptionsBar };
@@ -0,0 +1,2 @@
1
+ import { n as e, r as t, t as n } from "../../chunks/Plot2D-CEnhzodm.js";
2
+ export { n as Plot2D, e as modelToPlot, t as plotToModel };
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../../chunks/PointPlotter-D528sBdT.js";
2
+ export { e as PointPlotter };
@@ -0,0 +1,3 @@
1
+ import { n as e } from "../../chunks/Badge-DU8ihE7Z.js";
2
+ import { t } from "../../chunks/Powerline-C8rddbbK.js";
3
+ export { e as EDGE_PROFILES, t as Powerline };
@@ -0,0 +1,2 @@
1
+ import { a as e, i as t, n, r, t as i } from "../../chunks/Prefs-snBejOzK.js";
2
+ export { i as PrefsDialog, n as PrefsForm, r as isPrefLeaf, t as prefValueAtPath, e as visiblePrefSubtree };
@@ -0,0 +1,2 @@
1
+ import { n as e, t } from "../../chunks/RadioGroup-Ci-I9NEx.js";
2
+ export { t as Radio, e as RadioGroup };
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../../chunks/RangeSlider-CW-edtNx.js";
2
+ export { e as RangeSlider };
@@ -0,0 +1,2 @@
1
+ import { n as e, t } from "../../chunks/Select-l7pAkVEG.js";
2
+ export { t as Select, e as SelectItem };
@@ -1 +1 @@
1
- {"version":3,"file":"SelectionPanel.d.ts","sourceRoot":"","sources":["../../../src/components/SelectionPanel/SelectionPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA4C,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACjF,OAAO,EAEL,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,KAAK,EACV,KAAK,YAAY,EAGjB,KAAK,YAAY,EAElB,MAAM,iBAAiB,CAAC;AAkBzB,MAAM,WAAW,qBAAqB;IACpC,4DAA4D;IAC5D,IAAI,EAAE,MAAM,CAAC;IACb,wEAAwE;IACxE,IAAI,EAAE,YAAY,CAAC;IACnB,qEAAqE;IACrE,KAAK,EAAE,OAAO,CAAC;IACf,sDAAsD;IACtD,KAAK,EAAE,OAAO,CAAC;IACf,yEAAyE;IACzE,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CACpC;AAED,MAAM,MAAM,gBAAgB,GAAG,CAAC,GAAG,EAAE,qBAAqB,KAAK,SAAS,CAAC;AAEzE,MAAM,WAAW,mBAAmB,CAAC,KAAK,EAAE,MAAM,SAAS,MAAM,EAAE,KAAK;IACtE;sEACkE;IAClE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;IACnC,iEAAiE;IACjE,SAAS,EAAE,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;IACzC;0EACsE;IACtE,UAAU,EAAE,SAAS,mBAAmB,EAAE,CAAC;IAC3C;2DACuD;IACvD,OAAO,EAAE,SAAS,gBAAgB,EAAE,CAAC;IACrC;;;uCAGmC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IAC7C,2DAA2D;IAC3D,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IACrC,4CAA4C;IAC5C,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAKD;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,SAAS,MAAM,EAAE,KAAK,EAChE,KAAK,EAAE,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,2CAoGjD"}
1
+ {"version":3,"file":"SelectionPanel.d.ts","sourceRoot":"","sources":["../../../src/components/SelectionPanel/SelectionPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA4C,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACjF,OAAO,EAEL,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,KAAK,EACV,KAAK,YAAY,EAGjB,KAAK,YAAY,EAGlB,MAAM,iBAAiB,CAAC;AAkBzB,MAAM,WAAW,qBAAqB;IACpC,4DAA4D;IAC5D,IAAI,EAAE,MAAM,CAAC;IACb,wEAAwE;IACxE,IAAI,EAAE,YAAY,CAAC;IACnB,qEAAqE;IACrE,KAAK,EAAE,OAAO,CAAC;IACf,sDAAsD;IACtD,KAAK,EAAE,OAAO,CAAC;IACf,yEAAyE;IACzE,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CACpC;AAED,MAAM,MAAM,gBAAgB,GAAG,CAAC,GAAG,EAAE,qBAAqB,KAAK,SAAS,CAAC;AAEzE,MAAM,WAAW,mBAAmB,CAAC,KAAK,EAAE,MAAM,SAAS,MAAM,EAAE,KAAK;IACtE;sEACkE;IAClE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;IACnC,iEAAiE;IACjE,SAAS,EAAE,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;IACzC;0EACsE;IACtE,UAAU,EAAE,SAAS,mBAAmB,EAAE,CAAC;IAC3C;2DACuD;IACvD,OAAO,EAAE,SAAS,gBAAgB,EAAE,CAAC;IACrC;;;uCAGmC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IAC7C,2DAA2D;IAC3D,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IACrC,4CAA4C;IAC5C,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAKD;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,SAAS,MAAM,EAAE,KAAK,EAChE,KAAK,EAAE,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,2CAuGjD"}
@@ -1,3 +1,3 @@
1
1
  export { SelectionPanel, type SelectionPanelProps, type PropertyRenderer, type PropertyRenderContext, } from './SelectionPanel';
2
- export { MIXED, aggregateValue, classifyKind, effectiveSections, kindBreakdown, splitNodePath, type Mixed, type PanelLeaf, type PanelRow, type PanelSection, } from './model';
2
+ export { MIXED, aggregateValue, classifyKind, effectiveSections, kindBreakdown, nodeValueAt, setAtPath, type Mixed, type PanelLeaf, type PanelRow, type PanelSection, } from './model';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SelectionPanel/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,GAC3B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,KAAK,EACL,cAAc,EACd,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,KAAK,KAAK,EACV,KAAK,SAAS,EACd,KAAK,QAAQ,EACb,KAAK,YAAY,GAClB,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SelectionPanel/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,GAC3B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,KAAK,EACL,cAAc,EACd,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,WAAW,EACX,SAAS,EACT,KAAK,KAAK,EACV,KAAK,SAAS,EACd,KAAK,QAAQ,EACb,KAAK,YAAY,GAClB,MAAM,SAAS,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { a as e, c as t, i as n, n as r, o as i, r as a, s as o, t as s } from "../../chunks/SelectionPanel-CMglTgEf.js";
2
+ export { r as MIXED, s as SelectionPanel, a as aggregateValue, n as classifyKind, e as effectiveSections, i as kindBreakdown, o as nodeValueAt, t as setAtPath };
@@ -1,7 +1,6 @@
1
- import type { NodePropertiesEntry, NodeRoutingEntry, SceneNode, ToolPrefLeaf } from '@weasel-js/core';
2
- /** Sentinel for "selected nodes disagree at this path". */
3
- export declare const MIXED: unique symbol;
4
- export type Mixed = typeof MIXED;
1
+ import { MIXED, type Mixed, type NodePropertiesEntry, type NodeRoutingEntry, type SceneNode, type ToolPrefLeaf } from '@weasel-js/core';
2
+ export { MIXED };
3
+ export type { Mixed };
5
4
  export type AnyNode = SceneNode<unknown, string, unknown>;
6
5
  export interface PanelLeaf {
7
6
  /** Dotted node path — the leaf's key in the schema. */
@@ -28,14 +27,17 @@ export declare function classifyKind(node: AnyNode, routing: readonly NodeRoutin
28
27
  * contribute nothing, so their presence collapses the intersection.
29
28
  */
30
29
  export declare function effectiveSections(kinds: readonly string[], entries: readonly NodePropertiesEntry[]): PanelSection[];
31
- /** Split a two-segment node path (`pose.x` / `data.fill`) into its root
32
- * and key. Returns `null` for a dotless path. */
33
- export declare function splitNodePath(path: string): {
34
- head: string;
35
- key: string;
36
- } | null;
37
- /** Read a node value at a two-segment path (`pose.x` / `data.fill`). */
30
+ /** Read a node value at a dotted path of any depth (`pose.x`,
31
+ * `data.style.fontSize`, `data.style.fill.color`). Returns `undefined` if
32
+ * the path is dotless (mirrors `commit`'s no-op on a malformed schema
33
+ * key) or if any intermediate segment is missing or not an object. */
38
34
  export declare function nodeValueAt(node: AnyNode, path: string): unknown;
35
+ /** Immutably set `value` at a dotted path within `root`, cloning each level
36
+ * on the way down so React sees new object identities. Arrays stay arrays
37
+ * (an array intermediate is shallow-copied, not flattened into `{0: ...}`)
38
+ * — this is the write-side twin of `nodeValueAt`, so a schema author who
39
+ * gets a working read gets a working write. */
40
+ export declare function setAtPath(root: object, segments: readonly string[], value: unknown): object;
39
41
  /** Aggregate a path across nodes: the shared value, or `MIXED`. */
40
42
  export declare function aggregateValue(nodes: readonly AnyNode[], path: string): unknown | Mixed;
41
43
  /** `'rect ×2 · text'` — kinds in first-seen order with counts. */
@@ -1 +1 @@
1
- {"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../src/components/SelectionPanel/model.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,mBAAmB,EACnB,gBAAgB,EAChB,SAAS,EAET,YAAY,EACb,MAAM,iBAAiB,CAAC;AAEzB,2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nE,wBAAgB,cAAc,CAC5B,KAAK,EAAE,SAAS,OAAO,EAAE,EACzB,IAAI,EAAE,MAAM,GACX,OAAO,GAAG,KAAK,CAajB;AAED,kEAAkE;AAClE,wBAAgB,aAAa,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAM9D"}
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../../chunks/Sidebar-BFcBx8QV.js";
2
+ export { e as Sidebar };
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../../chunks/SidebarPanel-CRnSlvee.js";
2
+ export { e as SidebarPanel };
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../../chunks/Slider-sUJGgmKR.js";
2
+ export { e as Slider };
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../../chunks/Switch-DxJLMYki.js";
2
+ export { e as Switch };
@@ -0,0 +1,2 @@
1
+ import { i as e, n as t, r as n, t as r } from "../../chunks/Tabs-DelDecks.js";
2
+ export { r as Tab, t as TabList, n as TabPanel, e as Tabs };
@@ -0,0 +1,2 @@
1
+ import { a as e, i as t, n, r, t as i } from "../../chunks/Toast-Bw3XQxmV.js";
2
+ export { n as ToastQueue, i as ToastRegion, r as createToastQueue, t as defaultToastQueue, e as toast };